@digdir/dialogporten-schema 1.7.1 → 1.8.1-96d50fc

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digdir/dialogporten-schema",
3
- "version": "1.7.1",
3
+ "version": "1.8.1-96d50fc",
4
4
  "description": "GraphQl schema and OpenAPI spec for Dialogporten",
5
5
  "author": "DigDir",
6
6
  "repository": {
@@ -16,8 +16,7 @@ type Activity {
16
16
  extendedType: URL
17
17
  type: ActivityType!
18
18
  relatedActivityId: UUID
19
- dialogElementId: UUID
20
- performedBy: [Localization!]
19
+ performedBy: String
21
20
  description: [Localization!]!
22
21
  }
23
22
 
@@ -26,7 +25,6 @@ type ApiAction {
26
25
  action: String!
27
26
  authorizationAttribute: String
28
27
  isAuthorized: Boolean!
29
- dialogElementId: UUID
30
28
  endpoints: [ApiActionEndpoint!]!
31
29
  }
32
30
 
@@ -42,6 +40,18 @@ type ApiActionEndpoint {
42
40
  sunsetAt: DateTime
43
41
  }
44
42
 
43
+ type Attachment {
44
+ id: UUID!
45
+ displayName: [Localization!]!
46
+ urls: [AttachmentUrl!]!
47
+ }
48
+
49
+ type AttachmentUrl {
50
+ id: UUID!
51
+ url: URL!
52
+ consumerType: AttachmentUrlConsumer!
53
+ }
54
+
45
55
  type AuthorizedParty {
46
56
  party: String!
47
57
  name: String!
@@ -57,6 +67,7 @@ type AuthorizedParty {
57
67
  type Content {
58
68
  type: ContentType!
59
69
  value: [Localization!]!
70
+ mediaType: String
60
71
  }
61
72
 
62
73
  type Dialog {
@@ -77,7 +88,7 @@ type Dialog {
77
88
  dialogToken: String
78
89
  status: DialogStatus!
79
90
  content: [Content!]!
80
- elements: [Element!]!
91
+ attachments: [Attachment!]!
81
92
  guiActions: [GuiAction!]!
82
93
  apiActions: [ApiAction!]!
83
94
  activities: [Activity!]!
@@ -101,39 +112,22 @@ type DialogByIdPayload {
101
112
  errors: [DialogByIdError!]!
102
113
  }
103
114
 
104
- type Element {
105
- id: UUID!
106
- type: URL
107
- externalReference: String
108
- authorizationAttribute: String
109
- isAuthorized: Boolean!
110
- relatedDialogElementId: UUID
111
- displayName: [Localization!]!
112
- urls: [ElementUrl!]!
113
- }
114
-
115
- type ElementUrl {
116
- id: UUID!
117
- url: URL!
118
- mimeType: String
119
- consumerType: ElementUrlConsumer!
120
- }
121
-
122
115
  type GuiAction {
123
116
  id: UUID!
124
117
  action: String!
125
118
  url: URL!
126
119
  authorizationAttribute: String
127
120
  isAuthorized: Boolean!
128
- isBackChannel: Boolean!
129
- isDeleteAction: Boolean!
121
+ isDeleteDialogAction: Boolean!
130
122
  priority: GuiActionPriority!
123
+ httpMethod: HttpVerb!
131
124
  title: [Localization!]!
125
+ prompt: [Localization!]
132
126
  }
133
127
 
134
128
  type Localization {
135
129
  value: String!
136
- cultureCode: String!
130
+ languageCode: String!
137
131
  }
138
132
 
139
133
  type Queries @authorize(policy: "enduser") {
@@ -211,8 +205,8 @@ input SearchDialogInput {
211
205
  dueBefore: DateTime
212
206
  "Search string for free text search. Will attempt to fuzzily match in all free text fields in the aggregate"
213
207
  search: String
214
- "Limit free text search to texts with this culture code, e.g. \"nb-NO\". Default: search all culture codes"
215
- searchCultureCode: String
208
+ "Limit free text search to texts with this language code, e.g. 'no', 'en'. Culture codes will be normalized to neutral language codes (ISO 639). Default: search all culture codes"
209
+ searchLanguageCode: String
216
210
  }
217
211
 
218
212
  enum ActivityType {
@@ -236,6 +230,11 @@ enum ApplyPolicy {
236
230
  VALIDATION
237
231
  }
238
232
 
233
+ enum AttachmentUrlConsumer {
234
+ GUI
235
+ API
236
+ }
237
+
239
238
  enum ContentType {
240
239
  TITLE
241
240
  SENDER_NAME
@@ -259,11 +258,6 @@ enum DialogStatus {
259
258
  COMPLETED
260
259
  }
261
260
 
262
- enum ElementUrlConsumer {
263
- GUI
264
- API
265
- }
266
-
267
261
  enum GuiActionPriority {
268
262
  PRIMARY
269
263
  SECONDARY