@digdir/dialogporten-schema 1.8.1-51eb898 → 1.8.1-5aea32b

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.8.1-51eb898",
3
+ "version": "1.8.1-5aea32b",
4
4
  "description": "GraphQl schema and OpenAPI spec for Dialogporten",
5
5
  "author": "DigDir",
6
6
  "repository": {
@@ -16,17 +16,21 @@ type Activity {
16
16
  extendedType: URL
17
17
  type: ActivityType!
18
18
  relatedActivityId: UUID
19
- dialogElementId: UUID
20
- performedBy: String
19
+ performedBy: Actor!
21
20
  description: [Localization!]!
22
21
  }
23
22
 
23
+ type Actor {
24
+ actorType: ActorType
25
+ actorId: String
26
+ actorName: String
27
+ }
28
+
24
29
  type ApiAction {
25
30
  id: UUID!
26
31
  action: String!
27
32
  authorizationAttribute: String
28
33
  isAuthorized: Boolean!
29
- dialogElementId: UUID
30
34
  endpoints: [ApiActionEndpoint!]!
31
35
  }
32
36
 
@@ -42,6 +46,18 @@ type ApiActionEndpoint {
42
46
  sunsetAt: DateTime
43
47
  }
44
48
 
49
+ type Attachment {
50
+ id: UUID!
51
+ displayName: [Localization!]!
52
+ urls: [AttachmentUrl!]!
53
+ }
54
+
55
+ type AttachmentUrl {
56
+ id: UUID!
57
+ url: URL!
58
+ consumerType: AttachmentUrlConsumer!
59
+ }
60
+
45
61
  type AuthorizedParty {
46
62
  party: String!
47
63
  name: String!
@@ -57,6 +73,7 @@ type AuthorizedParty {
57
73
  type Content {
58
74
  type: ContentType!
59
75
  value: [Localization!]!
76
+ mediaType: String
60
77
  }
61
78
 
62
79
  type Dialog {
@@ -77,7 +94,7 @@ type Dialog {
77
94
  dialogToken: String
78
95
  status: DialogStatus!
79
96
  content: [Content!]!
80
- elements: [Element!]!
97
+ attachments: [Attachment!]!
81
98
  guiActions: [GuiAction!]!
82
99
  apiActions: [ApiAction!]!
83
100
  activities: [Activity!]!
@@ -101,24 +118,6 @@ type DialogByIdPayload {
101
118
  errors: [DialogByIdError!]!
102
119
  }
103
120
 
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
- mediaType: String
119
- consumerType: ElementUrlConsumer!
120
- }
121
-
122
121
  type GuiAction {
123
122
  id: UUID!
124
123
  action: String!
@@ -134,7 +133,7 @@ type GuiAction {
134
133
 
135
134
  type Localization {
136
135
  value: String!
137
- cultureCode: String!
136
+ languageCode: String!
138
137
  }
139
138
 
140
139
  type Queries @authorize(policy: "enduser") {
@@ -180,8 +179,7 @@ type SearchDialogsPayload {
180
179
  type SeenLog {
181
180
  id: UUID!
182
181
  seenAt: DateTime!
183
- endUserIdHash: String!
184
- endUserName: String
182
+ seenBy: Actor!
185
183
  isCurrentEndUser: Boolean!
186
184
  }
187
185
 
@@ -212,8 +210,8 @@ input SearchDialogInput {
212
210
  dueBefore: DateTime
213
211
  "Search string for free text search. Will attempt to fuzzily match in all free text fields in the aggregate"
214
212
  search: String
215
- "Limit free text search to texts with this culture code, e.g. \"nb-NO\". Default: search all culture codes"
216
- searchCultureCode: String
213
+ "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"
214
+ searchLanguageCode: String
217
215
  }
218
216
 
219
217
  enum ActivityType {
@@ -231,40 +229,46 @@ enum ActivityType {
231
229
  FORWARDED
232
230
  }
233
231
 
232
+ enum ActorType {
233
+ PARTY_REPRESENTATIVE
234
+ SERVICE_OWNER
235
+ }
236
+
234
237
  enum ApplyPolicy {
235
238
  BEFORE_RESOLVER
236
239
  AFTER_RESOLVER
237
240
  VALIDATION
238
241
  }
239
242
 
243
+ enum AttachmentUrlConsumer {
244
+ GUI
245
+ API
246
+ }
247
+
240
248
  enum ContentType {
241
249
  TITLE
242
250
  SENDER_NAME
243
251
  SUMMARY
244
252
  ADDITIONAL_INFO
245
253
  EXTENDED_STATUS
254
+ MAIN_CONTENT_REFERENCE
246
255
  }
247
256
 
248
257
  enum DialogStatus {
249
- "New"
258
+ "The dialogue is considered new. Typically used for simple messages that do not require any interaction, or as an initial step for dialogues. This is the default."
250
259
  NEW
251
- "In progress. General status used for dialog services where further user input is expected."
260
+ "Started. In a serial process, this is used to indicate that, for example, a form filling is ongoing."
252
261
  IN_PROGRESS
253
- "Waiting for feedback from the service provider"
254
- WAITING
255
- "The dialog is in a state where it is waiting for signing. Typically the last step after all completion is carried out and validated."
262
+ "Equivalent to \"InProgress\", but will be used by the workspace\/frontend for display purposes."
256
263
  SIGNING
257
- "The dialog was cancelled. This typically removes the dialog from normal GUI views."
258
- CANCELLED
259
- "The dialog was completed. This typically moves the dialog to a GUI archive or similar."
264
+ "For processing by the service owner. In a serial process, this is used after a submission is made."
265
+ PROCESSING
266
+ "Used to indicate that the dialogue is in progress\/under work, but is in a state where the user must do something - for example, correct an error, or other conditions that hinder further processing."
267
+ REQUIRES_ATTENTION
268
+ "The dialogue was completed. This typically means that the dialogue is moved to a GUI archive or similar."
260
269
  COMPLETED
261
270
  }
262
271
 
263
- enum ElementUrlConsumer {
264
- GUI
265
- API
266
- }
267
-
268
272
  enum GuiActionPriority {
269
273
  PRIMARY
270
274
  SECONDARY