@digdir/dialogporten-schema 1.70.0-517290a → 1.70.0-9f4cd91

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.70.0-517290a",
3
+ "version": "1.70.0-9f4cd91",
4
4
  "description": "GraphQl schema and OpenAPI spec for Dialogporten",
5
5
  "engines": {
6
6
  "node": "22"
@@ -4,6 +4,10 @@
4
4
  subscription: Subscriptions
5
5
  }
6
6
 
7
+ interface BulkSetSystemLabelError {
8
+ message: String!
9
+ }
10
+
7
11
  interface DialogByIdError {
8
12
  message: String!
9
13
  }
@@ -92,9 +96,30 @@ type AuthorizedSubParty {
92
96
  isAccessManager: Boolean!
93
97
  }
94
98
 
99
+ type BulkSetSystemLabelConcurrencyError implements BulkSetSystemLabelError {
100
+ message: String!
101
+ }
102
+
103
+ type BulkSetSystemLabelDomainError implements BulkSetSystemLabelError {
104
+ message: String!
105
+ }
106
+
107
+ type BulkSetSystemLabelNotFound implements BulkSetSystemLabelError {
108
+ message: String!
109
+ }
110
+
111
+ type BulkSetSystemLabelPayload {
112
+ success: Boolean!
113
+ errors: [BulkSetSystemLabelError!]!
114
+ }
115
+
116
+ type BulkSetSystemLabelValidationError implements BulkSetSystemLabelError {
117
+ message: String!
118
+ }
119
+
95
120
  type Content {
96
121
  title: ContentValue!
97
- summary: ContentValue!
122
+ summary: ContentValue
98
123
  senderName: ContentValue
99
124
  additionalInfo: ContentValue
100
125
  extendedStatus: ContentValue
@@ -124,7 +149,6 @@ type Dialog {
124
149
  createdAt: DateTime!
125
150
  updatedAt: DateTime!
126
151
  dialogToken: String
127
- systemLabel: SystemLabel!
128
152
  status: DialogStatus!
129
153
  "Indicates if this dialog is intended for API consumption only and should not be shown in frontends aimed at humans"
130
154
  isApiOnly: Boolean!
@@ -135,6 +159,7 @@ type Dialog {
135
159
  activities: [Activity!]!
136
160
  seenSinceLastUpdate: [SeenLog!]!
137
161
  transmissions: [Transmission!]!
162
+ endUserContext: EndUserContext!
138
163
  }
139
164
 
140
165
  type DialogByIdDeleted implements DialogByIdError {
@@ -163,6 +188,11 @@ type DialogEventPayload {
163
188
  type: DialogEventType!
164
189
  }
165
190
 
191
+ type EndUserContext {
192
+ revision: UUID!
193
+ systemLabels: [SystemLabel!]!
194
+ }
195
+
166
196
  type GuiAction {
167
197
  id: UUID!
168
198
  action: String!
@@ -183,6 +213,7 @@ type Localization {
183
213
 
184
214
  type Mutations {
185
215
  setSystemLabel(input: SetSystemLabelInput!): SetSystemLabelPayload!
216
+ bulkSetSystemLabels(input: BulkSetSystemLabelInput!): BulkSetSystemLabelPayload!
186
217
  }
187
218
 
188
219
  type Queries @authorize(policy: "enduser") {
@@ -193,7 +224,7 @@ type Queries @authorize(policy: "enduser") {
193
224
 
194
225
  type SearchContent {
195
226
  title: ContentValue!
196
- summary: ContentValue!
227
+ summary: ContentValue
197
228
  senderName: ContentValue
198
229
  extendedStatus: ContentValue
199
230
  }
@@ -213,12 +244,12 @@ type SearchDialog {
213
244
  updatedAt: DateTime!
214
245
  dueAt: DateTime
215
246
  status: DialogStatus!
216
- systemLabel: SystemLabel!
217
247
  "Indicates if this dialog is intended for API consumption only and should not be shown in frontends aimed at humans"
218
248
  isApiOnly: Boolean!
219
249
  latestActivity: Activity
220
250
  content: SearchContent!
221
251
  seenSinceLastUpdate: [SeenLog!]!
252
+ endUserContext: EndUserContext!
222
253
  }
223
254
 
224
255
  type SearchDialogContinuationTokenParsingError implements SearchDialogError {
@@ -289,10 +320,20 @@ type Transmission {
289
320
 
290
321
  type TransmissionContent {
291
322
  title: ContentValue!
292
- summary: ContentValue!
323
+ summary: ContentValue
293
324
  contentReference: ContentValue
294
325
  }
295
326
 
327
+ input BulkSetSystemLabelInput {
328
+ dialogs: [DialogRevisionInput!]!
329
+ systemLabels: [SystemLabel!]!
330
+ }
331
+
332
+ input DialogRevisionInput {
333
+ dialogId: UUID!
334
+ enduserContextRevision: UUID
335
+ }
336
+
296
337
  input SearchDialogInput {
297
338
  "Filter by one or more service owner codes"
298
339
  org: [String!]
@@ -343,7 +384,7 @@ input SearchDialogSortTypeInput {
343
384
 
344
385
  input SetSystemLabelInput {
345
386
  dialogId: UUID!
346
- label: SystemLabel!
387
+ systemLabels: [SystemLabel!]!
347
388
  }
348
389
 
349
390
  enum ActivityType {
@@ -409,8 +450,6 @@ enum DialogEventType {
409
450
  }
410
451
 
411
452
  enum DialogStatus {
412
- "No explicit status. This is the default."
413
- NOT_APPLICABLE
414
453
  "Started. In a serial process, this is used to indicate that, for example, a form filling is ongoing."
415
454
  IN_PROGRESS
416
455
  "Used to indicate user-initiated dialogs not yet sent."
@@ -421,6 +460,8 @@ enum DialogStatus {
421
460
  REQUIRES_ATTENTION
422
461
  "The dialogue was completed. This typically means that the dialogue is moved to a GUI archive or similar."
423
462
  COMPLETED
463
+ "No explicit status. This is the default."
464
+ NOT_APPLICABLE
424
465
  }
425
466
 
426
467
  enum GuiActionPriority {
package/src/index.js CHANGED
@@ -4,6 +4,10 @@ export const schema_verified_graphql = `schema {
4
4
  subscription: Subscriptions
5
5
  }
6
6
 
7
+ interface BulkSetSystemLabelError {
8
+ message: String!
9
+ }
10
+
7
11
  interface DialogByIdError {
8
12
  message: String!
9
13
  }
@@ -92,9 +96,30 @@ type AuthorizedSubParty {
92
96
  isAccessManager: Boolean!
93
97
  }
94
98
 
99
+ type BulkSetSystemLabelConcurrencyError implements BulkSetSystemLabelError {
100
+ message: String!
101
+ }
102
+
103
+ type BulkSetSystemLabelDomainError implements BulkSetSystemLabelError {
104
+ message: String!
105
+ }
106
+
107
+ type BulkSetSystemLabelNotFound implements BulkSetSystemLabelError {
108
+ message: String!
109
+ }
110
+
111
+ type BulkSetSystemLabelPayload {
112
+ success: Boolean!
113
+ errors: [BulkSetSystemLabelError!]!
114
+ }
115
+
116
+ type BulkSetSystemLabelValidationError implements BulkSetSystemLabelError {
117
+ message: String!
118
+ }
119
+
95
120
  type Content {
96
121
  title: ContentValue!
97
- summary: ContentValue!
122
+ summary: ContentValue
98
123
  senderName: ContentValue
99
124
  additionalInfo: ContentValue
100
125
  extendedStatus: ContentValue
@@ -124,7 +149,6 @@ type Dialog {
124
149
  createdAt: DateTime!
125
150
  updatedAt: DateTime!
126
151
  dialogToken: String
127
- systemLabel: SystemLabel!
128
152
  status: DialogStatus!
129
153
  "Indicates if this dialog is intended for API consumption only and should not be shown in frontends aimed at humans"
130
154
  isApiOnly: Boolean!
@@ -135,6 +159,7 @@ type Dialog {
135
159
  activities: [Activity!]!
136
160
  seenSinceLastUpdate: [SeenLog!]!
137
161
  transmissions: [Transmission!]!
162
+ endUserContext: EndUserContext!
138
163
  }
139
164
 
140
165
  type DialogByIdDeleted implements DialogByIdError {
@@ -163,6 +188,11 @@ type DialogEventPayload {
163
188
  type: DialogEventType!
164
189
  }
165
190
 
191
+ type EndUserContext {
192
+ revision: UUID!
193
+ systemLabels: [SystemLabel!]!
194
+ }
195
+
166
196
  type GuiAction {
167
197
  id: UUID!
168
198
  action: String!
@@ -183,6 +213,7 @@ type Localization {
183
213
 
184
214
  type Mutations {
185
215
  setSystemLabel(input: SetSystemLabelInput!): SetSystemLabelPayload!
216
+ bulkSetSystemLabels(input: BulkSetSystemLabelInput!): BulkSetSystemLabelPayload!
186
217
  }
187
218
 
188
219
  type Queries @authorize(policy: "enduser") {
@@ -193,7 +224,7 @@ type Queries @authorize(policy: "enduser") {
193
224
 
194
225
  type SearchContent {
195
226
  title: ContentValue!
196
- summary: ContentValue!
227
+ summary: ContentValue
197
228
  senderName: ContentValue
198
229
  extendedStatus: ContentValue
199
230
  }
@@ -213,12 +244,12 @@ type SearchDialog {
213
244
  updatedAt: DateTime!
214
245
  dueAt: DateTime
215
246
  status: DialogStatus!
216
- systemLabel: SystemLabel!
217
247
  "Indicates if this dialog is intended for API consumption only and should not be shown in frontends aimed at humans"
218
248
  isApiOnly: Boolean!
219
249
  latestActivity: Activity
220
250
  content: SearchContent!
221
251
  seenSinceLastUpdate: [SeenLog!]!
252
+ endUserContext: EndUserContext!
222
253
  }
223
254
 
224
255
  type SearchDialogContinuationTokenParsingError implements SearchDialogError {
@@ -289,10 +320,20 @@ type Transmission {
289
320
 
290
321
  type TransmissionContent {
291
322
  title: ContentValue!
292
- summary: ContentValue!
323
+ summary: ContentValue
293
324
  contentReference: ContentValue
294
325
  }
295
326
 
327
+ input BulkSetSystemLabelInput {
328
+ dialogs: [DialogRevisionInput!]!
329
+ systemLabels: [SystemLabel!]!
330
+ }
331
+
332
+ input DialogRevisionInput {
333
+ dialogId: UUID!
334
+ enduserContextRevision: UUID
335
+ }
336
+
296
337
  input SearchDialogInput {
297
338
  "Filter by one or more service owner codes"
298
339
  org: [String!]
@@ -343,7 +384,7 @@ input SearchDialogSortTypeInput {
343
384
 
344
385
  input SetSystemLabelInput {
345
386
  dialogId: UUID!
346
- label: SystemLabel!
387
+ systemLabels: [SystemLabel!]!
347
388
  }
348
389
 
349
390
  enum ActivityType {
@@ -409,8 +450,6 @@ enum DialogEventType {
409
450
  }
410
451
 
411
452
  enum DialogStatus {
412
- "No explicit status. This is the default."
413
- NOT_APPLICABLE
414
453
  "Started. In a serial process, this is used to indicate that, for example, a form filling is ongoing."
415
454
  IN_PROGRESS
416
455
  "Used to indicate user-initiated dialogs not yet sent."
@@ -421,6 +460,8 @@ enum DialogStatus {
421
460
  REQUIRES_ATTENTION
422
461
  "The dialogue was completed. This typically means that the dialogue is moved to a GUI archive or similar."
423
462
  COMPLETED
463
+ "No explicit status. This is the default."
464
+ NOT_APPLICABLE
424
465
  }
425
466
 
426
467
  enum GuiActionPriority {