Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(breaking): Remove DialogElements, add Attachments #867

Merged
merged 1 commit into from
Jun 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions Digdir.Domain.Dialogporten.sln.DotSettings
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:Boolean x:Key="/Default/UserDictionary/Words/=APPCONFIG/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=dialogelements/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Maskinporten/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Maskinporten/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>
43 changes: 18 additions & 25 deletions docs/schema/V1/schema.verified.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ type Activity {
extendedType: URL
type: ActivityType!
relatedActivityId: UUID
dialogElementId: UUID
performedBy: String
description: [Localization!]!
}
Expand All @@ -26,7 +25,6 @@ type ApiAction {
action: String!
authorizationAttribute: String
isAuthorized: Boolean!
dialogElementId: UUID
endpoints: [ApiActionEndpoint!]!
}

Expand All @@ -42,6 +40,18 @@ type ApiActionEndpoint {
sunsetAt: DateTime
}

type Attachment {
id: UUID!
displayName: [Localization!]!
urls: [AttachmentUrl!]!
}

type AttachmentUrl {
id: UUID!
url: URL!
consumerType: AttachmentUrlConsumer!
}

type AuthorizedParty {
party: String!
name: String!
Expand Down Expand Up @@ -78,7 +88,7 @@ type Dialog {
dialogToken: String
status: DialogStatus!
content: [Content!]!
elements: [Element!]!
attachments: [Attachment!]!
guiActions: [GuiAction!]!
apiActions: [ApiAction!]!
activities: [Activity!]!
Expand All @@ -102,23 +112,6 @@ type DialogByIdPayload {
errors: [DialogByIdError!]!
}

type Element {
id: UUID!
type: URL
externalReference: String
authorizationAttribute: String
isAuthorized: Boolean!
relatedDialogElementId: UUID
displayName: [Localization!]!
urls: [ElementUrl!]!
}

type ElementUrl {
id: UUID!
url: URL!
consumerType: ElementUrlConsumer!
}

type GuiAction {
id: UUID!
action: String!
Expand Down Expand Up @@ -237,6 +230,11 @@ enum ApplyPolicy {
VALIDATION
}

enum AttachmentUrlConsumer {
GUI
API
}

enum ContentType {
TITLE
SENDER_NAME
Expand All @@ -260,11 +258,6 @@ enum DialogStatus {
COMPLETED
}

enum ElementUrlConsumer {
GUI
API
}

enum GuiActionPriority {
PRIMARY
SECONDARY
Expand Down
Loading