@digdir/dialogporten-schema 1.8.1-d549f19 → 1.8.1-d608ade

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,7 +1,10 @@
1
1
  {
2
2
  "name": "@digdir/dialogporten-schema",
3
- "version": "1.8.1-d549f19",
3
+ "version": "1.8.1-d608ade",
4
4
  "description": "GraphQl schema and OpenAPI spec for Dialogporten",
5
+ "engines": {
6
+ "node": "20"
7
+ },
5
8
  "author": "DigDir",
6
9
  "main": "src/index.js",
7
10
  "repository": {
@@ -13,9 +16,9 @@
13
16
  "test": "npm run build && vitest run --test-timeout=10000"
14
17
  },
15
18
  "devDependencies": {
16
- "vitest": "^1.2.2",
17
- "glob": "^10.3.12",
18
- "graphql-tag": "^2.12.6"
19
+ "vitest": "2.0.4",
20
+ "glob": "11.0.0",
21
+ "graphql-tag": "2.12.6"
19
22
  },
20
23
  "license": "ISC",
21
24
  "type": "module"
@@ -107,6 +107,7 @@ type Dialog {
107
107
  apiActions: [ApiAction!]!
108
108
  activities: [Activity!]!
109
109
  seenSinceLastUpdate: [SeenLog!]!
110
+ transmissions: [Transmission!]!
110
111
  }
111
112
 
112
113
  type DialogByIdDeleted implements DialogByIdError {
@@ -198,6 +199,24 @@ type SeenLog {
198
199
  isCurrentEndUser: Boolean!
199
200
  }
200
201
 
202
+ type Transmission {
203
+ id: UUID!
204
+ createdAt: DateTime!
205
+ authorizationAttribute: String
206
+ isAuthorized: Boolean!
207
+ extendedType: String
208
+ relatedTransmissionId: UUID
209
+ type: TransmissionType!
210
+ sender: Actor!
211
+ content: TransmissionContent!
212
+ attachments: [Attachment!]!
213
+ }
214
+
215
+ type TransmissionContent {
216
+ title: ContentValue!
217
+ summary: ContentValue!
218
+ }
219
+
201
220
  input SearchDialogInput {
202
221
  "Filter by one or more service owner codes"
203
222
  org: [String!]
@@ -230,18 +249,18 @@ input SearchDialogInput {
230
249
  }
231
250
 
232
251
  enum ActivityType {
233
- "Refers to a submission made by a party that has been received by the service provider."
234
- SUBMISSION
235
- "Indicates feedback from the service provider on a submission. Contains a reference to the current submission."
236
- FEEDBACK
237
- "Information from the service provider, not (directly) related to any submission."
252
+ "Refers to a dialog that has been created."
253
+ DIALOG_CREATED
254
+ "Refers to a dialog that has been closed."
255
+ DIALOG_CLOSED
256
+ "Information from the service provider, not (directly) related to any transmission."
238
257
  INFORMATION
239
- "Used to indicate an error situation, typically on a submission. Contains a service-specific activityErrorCode."
240
- ERROR
241
- "Indicates that the dialog is closed for further changes. This typically happens when the dialog is completed or deleted."
242
- CLOSED
243
- "When the dialog is forwarded (delegated access) by someone with access to others."
244
- FORWARDED
258
+ "Refers to a transmission that has been opened."
259
+ TRANSMISSION_OPENED
260
+ "Indicates that payment has been made."
261
+ PAYMENT_MADE
262
+ "Indicates that a signature has been provided."
263
+ SIGNATURE_PROVIDED
245
264
  }
246
265
 
247
266
  enum ActorType {
@@ -293,6 +312,25 @@ enum HttpVerb {
293
312
  CONNECT
294
313
  }
295
314
 
315
+ enum TransmissionType {
316
+ "For general information, not related to any submissions"
317
+ INFORMATION
318
+ "Feedback\/receipt accepting a previous submission"
319
+ ACCEPTANCE
320
+ "Feedback\/error message rejecting a previous submission"
321
+ REJECTION
322
+ "Question\/request for more information"
323
+ REQUEST
324
+ "Critical information about the process"
325
+ ALERT
326
+ "Information about a formal decision (\"resolution\")"
327
+ DECISION
328
+ "A normal submission of some information\/form"
329
+ SUBMISSION
330
+ "A submission correcting\/overriding some previously submitted information"
331
+ CORRECTION
332
+ }
333
+
296
334
  directive @authorize("The name of the authorization policy that determines access to the annotated resource." policy: String "Roles that are allowed to access the annotated resource." roles: [String!] "Defines when when the authorize directive shall be applied.By default the authorize directives are applied during the validation phase." apply: ApplyPolicy! = BEFORE_RESOLVER) repeatable on OBJECT | FIELD_DEFINITION
297
335
 
298
336
  "The `DateTime` scalar represents an ISO-8601 compliant date time type."
package/src/index.js CHANGED
@@ -107,6 +107,7 @@ type Dialog {
107
107
  apiActions: [ApiAction!]!
108
108
  activities: [Activity!]!
109
109
  seenSinceLastUpdate: [SeenLog!]!
110
+ transmissions: [Transmission!]!
110
111
  }
111
112
 
112
113
  type DialogByIdDeleted implements DialogByIdError {
@@ -198,6 +199,24 @@ type SeenLog {
198
199
  isCurrentEndUser: Boolean!
199
200
  }
200
201
 
202
+ type Transmission {
203
+ id: UUID!
204
+ createdAt: DateTime!
205
+ authorizationAttribute: String
206
+ isAuthorized: Boolean!
207
+ extendedType: String
208
+ relatedTransmissionId: UUID
209
+ type: TransmissionType!
210
+ sender: Actor!
211
+ content: TransmissionContent!
212
+ attachments: [Attachment!]!
213
+ }
214
+
215
+ type TransmissionContent {
216
+ title: ContentValue!
217
+ summary: ContentValue!
218
+ }
219
+
201
220
  input SearchDialogInput {
202
221
  "Filter by one or more service owner codes"
203
222
  org: [String!]
@@ -230,18 +249,18 @@ input SearchDialogInput {
230
249
  }
231
250
 
232
251
  enum ActivityType {
233
- "Refers to a submission made by a party that has been received by the service provider."
234
- SUBMISSION
235
- "Indicates feedback from the service provider on a submission. Contains a reference to the current submission."
236
- FEEDBACK
237
- "Information from the service provider, not (directly) related to any submission."
252
+ "Refers to a dialog that has been created."
253
+ DIALOG_CREATED
254
+ "Refers to a dialog that has been closed."
255
+ DIALOG_CLOSED
256
+ "Information from the service provider, not (directly) related to any transmission."
238
257
  INFORMATION
239
- "Used to indicate an error situation, typically on a submission. Contains a service-specific activityErrorCode."
240
- ERROR
241
- "Indicates that the dialog is closed for further changes. This typically happens when the dialog is completed or deleted."
242
- CLOSED
243
- "When the dialog is forwarded (delegated access) by someone with access to others."
244
- FORWARDED
258
+ "Refers to a transmission that has been opened."
259
+ TRANSMISSION_OPENED
260
+ "Indicates that payment has been made."
261
+ PAYMENT_MADE
262
+ "Indicates that a signature has been provided."
263
+ SIGNATURE_PROVIDED
245
264
  }
246
265
 
247
266
  enum ActorType {
@@ -293,6 +312,25 @@ enum HttpVerb {
293
312
  CONNECT
294
313
  }
295
314
 
315
+ enum TransmissionType {
316
+ "For general information, not related to any submissions"
317
+ INFORMATION
318
+ "Feedback\/receipt accepting a previous submission"
319
+ ACCEPTANCE
320
+ "Feedback\/error message rejecting a previous submission"
321
+ REJECTION
322
+ "Question\/request for more information"
323
+ REQUEST
324
+ "Critical information about the process"
325
+ ALERT
326
+ "Information about a formal decision ('resolution')"
327
+ DECISION
328
+ "A normal submission of some information\/form"
329
+ SUBMISSION
330
+ "A submission correcting\/overriding some previously submitted information"
331
+ CORRECTION
332
+ }
333
+
296
334
  directive @authorize("The name of the authorization policy that determines access to the annotated resource." policy: String "Roles that are allowed to access the annotated resource." roles: [String!] "Defines when when the authorize directive shall be applied.By default the authorize directives are applied during the validation phase." apply: ApplyPolicy! = BEFORE_RESOLVER) repeatable on OBJECT | FIELD_DEFINITION
297
335
 
298
336
  "The 'DateTime' scalar represents an ISO-8601 compliant date time type."