@digdir/dialogporten-schema 1.70.0-517290a → 1.70.0-c708e89
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 +1 -1
- package/schema.verified.graphql +50 -8
- package/src/index.js +50 -8
- package/swagger.verified.json +1418 -818
package/package.json
CHANGED
package/schema.verified.graphql
CHANGED
|
@@ -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,8 +149,8 @@ type Dialog {
|
|
|
124
149
|
createdAt: DateTime!
|
|
125
150
|
updatedAt: DateTime!
|
|
126
151
|
dialogToken: String
|
|
127
|
-
systemLabel: SystemLabel!
|
|
128
152
|
status: DialogStatus!
|
|
153
|
+
hasUnopenedContent: Boolean!
|
|
129
154
|
"Indicates if this dialog is intended for API consumption only and should not be shown in frontends aimed at humans"
|
|
130
155
|
isApiOnly: Boolean!
|
|
131
156
|
content: Content!
|
|
@@ -135,6 +160,7 @@ type Dialog {
|
|
|
135
160
|
activities: [Activity!]!
|
|
136
161
|
seenSinceLastUpdate: [SeenLog!]!
|
|
137
162
|
transmissions: [Transmission!]!
|
|
163
|
+
endUserContext: EndUserContext!
|
|
138
164
|
}
|
|
139
165
|
|
|
140
166
|
type DialogByIdDeleted implements DialogByIdError {
|
|
@@ -163,6 +189,11 @@ type DialogEventPayload {
|
|
|
163
189
|
type: DialogEventType!
|
|
164
190
|
}
|
|
165
191
|
|
|
192
|
+
type EndUserContext {
|
|
193
|
+
revision: UUID!
|
|
194
|
+
systemLabels: [SystemLabel!]!
|
|
195
|
+
}
|
|
196
|
+
|
|
166
197
|
type GuiAction {
|
|
167
198
|
id: UUID!
|
|
168
199
|
action: String!
|
|
@@ -183,6 +214,7 @@ type Localization {
|
|
|
183
214
|
|
|
184
215
|
type Mutations {
|
|
185
216
|
setSystemLabel(input: SetSystemLabelInput!): SetSystemLabelPayload!
|
|
217
|
+
bulkSetSystemLabels(input: BulkSetSystemLabelInput!): BulkSetSystemLabelPayload!
|
|
186
218
|
}
|
|
187
219
|
|
|
188
220
|
type Queries @authorize(policy: "enduser") {
|
|
@@ -193,7 +225,7 @@ type Queries @authorize(policy: "enduser") {
|
|
|
193
225
|
|
|
194
226
|
type SearchContent {
|
|
195
227
|
title: ContentValue!
|
|
196
|
-
summary: ContentValue
|
|
228
|
+
summary: ContentValue
|
|
197
229
|
senderName: ContentValue
|
|
198
230
|
extendedStatus: ContentValue
|
|
199
231
|
}
|
|
@@ -213,12 +245,12 @@ type SearchDialog {
|
|
|
213
245
|
updatedAt: DateTime!
|
|
214
246
|
dueAt: DateTime
|
|
215
247
|
status: DialogStatus!
|
|
216
|
-
systemLabel: SystemLabel!
|
|
217
248
|
"Indicates if this dialog is intended for API consumption only and should not be shown in frontends aimed at humans"
|
|
218
249
|
isApiOnly: Boolean!
|
|
219
250
|
latestActivity: Activity
|
|
220
251
|
content: SearchContent!
|
|
221
252
|
seenSinceLastUpdate: [SeenLog!]!
|
|
253
|
+
endUserContext: EndUserContext!
|
|
222
254
|
}
|
|
223
255
|
|
|
224
256
|
type SearchDialogContinuationTokenParsingError implements SearchDialogError {
|
|
@@ -289,10 +321,20 @@ type Transmission {
|
|
|
289
321
|
|
|
290
322
|
type TransmissionContent {
|
|
291
323
|
title: ContentValue!
|
|
292
|
-
summary: ContentValue
|
|
324
|
+
summary: ContentValue
|
|
293
325
|
contentReference: ContentValue
|
|
294
326
|
}
|
|
295
327
|
|
|
328
|
+
input BulkSetSystemLabelInput {
|
|
329
|
+
dialogs: [DialogRevisionInput!]!
|
|
330
|
+
systemLabels: [SystemLabel!]!
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
input DialogRevisionInput {
|
|
334
|
+
dialogId: UUID!
|
|
335
|
+
enduserContextRevision: UUID
|
|
336
|
+
}
|
|
337
|
+
|
|
296
338
|
input SearchDialogInput {
|
|
297
339
|
"Filter by one or more service owner codes"
|
|
298
340
|
org: [String!]
|
|
@@ -343,7 +385,7 @@ input SearchDialogSortTypeInput {
|
|
|
343
385
|
|
|
344
386
|
input SetSystemLabelInput {
|
|
345
387
|
dialogId: UUID!
|
|
346
|
-
|
|
388
|
+
systemLabels: [SystemLabel!]!
|
|
347
389
|
}
|
|
348
390
|
|
|
349
391
|
enum ActivityType {
|
|
@@ -409,8 +451,6 @@ enum DialogEventType {
|
|
|
409
451
|
}
|
|
410
452
|
|
|
411
453
|
enum DialogStatus {
|
|
412
|
-
"No explicit status. This is the default."
|
|
413
|
-
NOT_APPLICABLE
|
|
414
454
|
"Started. In a serial process, this is used to indicate that, for example, a form filling is ongoing."
|
|
415
455
|
IN_PROGRESS
|
|
416
456
|
"Used to indicate user-initiated dialogs not yet sent."
|
|
@@ -421,6 +461,8 @@ enum DialogStatus {
|
|
|
421
461
|
REQUIRES_ATTENTION
|
|
422
462
|
"The dialogue was completed. This typically means that the dialogue is moved to a GUI archive or similar."
|
|
423
463
|
COMPLETED
|
|
464
|
+
"No explicit status. This is the default."
|
|
465
|
+
NOT_APPLICABLE
|
|
424
466
|
}
|
|
425
467
|
|
|
426
468
|
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,8 +149,8 @@ type Dialog {
|
|
|
124
149
|
createdAt: DateTime!
|
|
125
150
|
updatedAt: DateTime!
|
|
126
151
|
dialogToken: String
|
|
127
|
-
systemLabel: SystemLabel!
|
|
128
152
|
status: DialogStatus!
|
|
153
|
+
hasUnopenedContent: Boolean!
|
|
129
154
|
"Indicates if this dialog is intended for API consumption only and should not be shown in frontends aimed at humans"
|
|
130
155
|
isApiOnly: Boolean!
|
|
131
156
|
content: Content!
|
|
@@ -135,6 +160,7 @@ type Dialog {
|
|
|
135
160
|
activities: [Activity!]!
|
|
136
161
|
seenSinceLastUpdate: [SeenLog!]!
|
|
137
162
|
transmissions: [Transmission!]!
|
|
163
|
+
endUserContext: EndUserContext!
|
|
138
164
|
}
|
|
139
165
|
|
|
140
166
|
type DialogByIdDeleted implements DialogByIdError {
|
|
@@ -163,6 +189,11 @@ type DialogEventPayload {
|
|
|
163
189
|
type: DialogEventType!
|
|
164
190
|
}
|
|
165
191
|
|
|
192
|
+
type EndUserContext {
|
|
193
|
+
revision: UUID!
|
|
194
|
+
systemLabels: [SystemLabel!]!
|
|
195
|
+
}
|
|
196
|
+
|
|
166
197
|
type GuiAction {
|
|
167
198
|
id: UUID!
|
|
168
199
|
action: String!
|
|
@@ -183,6 +214,7 @@ type Localization {
|
|
|
183
214
|
|
|
184
215
|
type Mutations {
|
|
185
216
|
setSystemLabel(input: SetSystemLabelInput!): SetSystemLabelPayload!
|
|
217
|
+
bulkSetSystemLabels(input: BulkSetSystemLabelInput!): BulkSetSystemLabelPayload!
|
|
186
218
|
}
|
|
187
219
|
|
|
188
220
|
type Queries @authorize(policy: "enduser") {
|
|
@@ -193,7 +225,7 @@ type Queries @authorize(policy: "enduser") {
|
|
|
193
225
|
|
|
194
226
|
type SearchContent {
|
|
195
227
|
title: ContentValue!
|
|
196
|
-
summary: ContentValue
|
|
228
|
+
summary: ContentValue
|
|
197
229
|
senderName: ContentValue
|
|
198
230
|
extendedStatus: ContentValue
|
|
199
231
|
}
|
|
@@ -213,12 +245,12 @@ type SearchDialog {
|
|
|
213
245
|
updatedAt: DateTime!
|
|
214
246
|
dueAt: DateTime
|
|
215
247
|
status: DialogStatus!
|
|
216
|
-
systemLabel: SystemLabel!
|
|
217
248
|
"Indicates if this dialog is intended for API consumption only and should not be shown in frontends aimed at humans"
|
|
218
249
|
isApiOnly: Boolean!
|
|
219
250
|
latestActivity: Activity
|
|
220
251
|
content: SearchContent!
|
|
221
252
|
seenSinceLastUpdate: [SeenLog!]!
|
|
253
|
+
endUserContext: EndUserContext!
|
|
222
254
|
}
|
|
223
255
|
|
|
224
256
|
type SearchDialogContinuationTokenParsingError implements SearchDialogError {
|
|
@@ -289,10 +321,20 @@ type Transmission {
|
|
|
289
321
|
|
|
290
322
|
type TransmissionContent {
|
|
291
323
|
title: ContentValue!
|
|
292
|
-
summary: ContentValue
|
|
324
|
+
summary: ContentValue
|
|
293
325
|
contentReference: ContentValue
|
|
294
326
|
}
|
|
295
327
|
|
|
328
|
+
input BulkSetSystemLabelInput {
|
|
329
|
+
dialogs: [DialogRevisionInput!]!
|
|
330
|
+
systemLabels: [SystemLabel!]!
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
input DialogRevisionInput {
|
|
334
|
+
dialogId: UUID!
|
|
335
|
+
enduserContextRevision: UUID
|
|
336
|
+
}
|
|
337
|
+
|
|
296
338
|
input SearchDialogInput {
|
|
297
339
|
"Filter by one or more service owner codes"
|
|
298
340
|
org: [String!]
|
|
@@ -343,7 +385,7 @@ input SearchDialogSortTypeInput {
|
|
|
343
385
|
|
|
344
386
|
input SetSystemLabelInput {
|
|
345
387
|
dialogId: UUID!
|
|
346
|
-
|
|
388
|
+
systemLabels: [SystemLabel!]!
|
|
347
389
|
}
|
|
348
390
|
|
|
349
391
|
enum ActivityType {
|
|
@@ -409,8 +451,6 @@ enum DialogEventType {
|
|
|
409
451
|
}
|
|
410
452
|
|
|
411
453
|
enum DialogStatus {
|
|
412
|
-
"No explicit status. This is the default."
|
|
413
|
-
NOT_APPLICABLE
|
|
414
454
|
"Started. In a serial process, this is used to indicate that, for example, a form filling is ongoing."
|
|
415
455
|
IN_PROGRESS
|
|
416
456
|
"Used to indicate user-initiated dialogs not yet sent."
|
|
@@ -421,6 +461,8 @@ enum DialogStatus {
|
|
|
421
461
|
REQUIRES_ATTENTION
|
|
422
462
|
"The dialogue was completed. This typically means that the dialogue is moved to a GUI archive or similar."
|
|
423
463
|
COMPLETED
|
|
464
|
+
"No explicit status. This is the default."
|
|
465
|
+
NOT_APPLICABLE
|
|
424
466
|
}
|
|
425
467
|
|
|
426
468
|
enum GuiActionPriority {
|