@digdir/dialogporten-schema 1.17.0 → 1.18.0-162ce9a

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.17.0",
3
+ "version": "1.18.0-162ce9a",
4
4
  "description": "GraphQl schema and OpenAPI spec for Dialogporten",
5
5
  "engines": {
6
6
  "node": "20"
@@ -95,6 +95,8 @@ type Dialog {
95
95
  serviceResourceType: String!
96
96
  party: String!
97
97
  progress: Int
98
+ process: String
99
+ precedingProcess: String
98
100
  extendedStatus: String
99
101
  externalReference: String
100
102
  visibleFrom: DateTime
@@ -130,8 +132,9 @@ type DialogByIdPayload {
130
132
  errors: [DialogByIdError!]!
131
133
  }
132
134
 
133
- type DialogUpdatedPayload {
135
+ type DialogEventPayload {
134
136
  id: UUID!
137
+ type: DialogEventType!
135
138
  }
136
139
 
137
140
  type GuiAction {
@@ -172,6 +175,8 @@ type SearchDialog {
172
175
  serviceResourceType: String!
173
176
  party: String!
174
177
  progress: Int
178
+ process: String
179
+ precedingProcess: String
175
180
  guiAttachmentCount: Int
176
181
  extendedStatus: String
177
182
  createdAt: DateTime!
@@ -207,7 +212,7 @@ type SeenLog {
207
212
  }
208
213
 
209
214
  type Subscriptions @authorize(policy: "enduser") {
210
- dialogUpdated(dialogId: UUID!): DialogUpdatedPayload!
215
+ dialogEvents(dialogId: UUID!): DialogEventPayload!
211
216
  }
212
217
 
213
218
  type Transmission {
@@ -272,6 +277,8 @@ enum ActivityType {
272
277
  PAYMENT_MADE
273
278
  "Indicates that a signature has been provided."
274
279
  SIGNATURE_PROVIDED
280
+ "Refers to a dialog that has been opened."
281
+ DIALOG_OPENED
275
282
  }
276
283
 
277
284
  enum ActorType {
@@ -290,6 +297,11 @@ enum AttachmentUrlConsumer {
290
297
  API
291
298
  }
292
299
 
300
+ enum DialogEventType {
301
+ DIALOG_UPDATED
302
+ DIALOG_DELETED
303
+ }
304
+
293
305
  enum DialogStatus {
294
306
  "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."
295
307
  NEW
@@ -349,4 +361,4 @@ scalar DateTime @specifiedBy(url: "https:\/\/www.graphql-scalars.com\/date-time"
349
361
 
350
362
  scalar URL @specifiedBy(url: "https:\/\/tools.ietf.org\/html\/rfc3986")
351
363
 
352
- scalar UUID @specifiedBy(url: "https:\/\/tools.ietf.org\/html\/rfc4122")
364
+ scalar UUID @specifiedBy(url: "https:\/\/tools.ietf.org\/html\/rfc4122")
package/src/index.js CHANGED
@@ -95,6 +95,8 @@ type Dialog {
95
95
  serviceResourceType: String!
96
96
  party: String!
97
97
  progress: Int
98
+ process: String
99
+ precedingProcess: String
98
100
  extendedStatus: String
99
101
  externalReference: String
100
102
  visibleFrom: DateTime
@@ -130,8 +132,9 @@ type DialogByIdPayload {
130
132
  errors: [DialogByIdError!]!
131
133
  }
132
134
 
133
- type DialogUpdatedPayload {
135
+ type DialogEventPayload {
134
136
  id: UUID!
137
+ type: DialogEventType!
135
138
  }
136
139
 
137
140
  type GuiAction {
@@ -172,6 +175,8 @@ type SearchDialog {
172
175
  serviceResourceType: String!
173
176
  party: String!
174
177
  progress: Int
178
+ process: String
179
+ precedingProcess: String
175
180
  guiAttachmentCount: Int
176
181
  extendedStatus: String
177
182
  createdAt: DateTime!
@@ -207,7 +212,7 @@ type SeenLog {
207
212
  }
208
213
 
209
214
  type Subscriptions @authorize(policy: "enduser") {
210
- dialogUpdated(dialogId: UUID!): DialogUpdatedPayload!
215
+ dialogEvents(dialogId: UUID!): DialogEventPayload!
211
216
  }
212
217
 
213
218
  type Transmission {
@@ -272,6 +277,8 @@ enum ActivityType {
272
277
  PAYMENT_MADE
273
278
  "Indicates that a signature has been provided."
274
279
  SIGNATURE_PROVIDED
280
+ "Refers to a dialog that has been opened."
281
+ DIALOG_OPENED
275
282
  }
276
283
 
277
284
  enum ActorType {
@@ -290,6 +297,11 @@ enum AttachmentUrlConsumer {
290
297
  API
291
298
  }
292
299
 
300
+ enum DialogEventType {
301
+ DIALOG_UPDATED
302
+ DIALOG_DELETED
303
+ }
304
+
293
305
  enum DialogStatus {
294
306
  "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."
295
307
  NEW
@@ -225,6 +225,16 @@
225
225
  "example": "urn:altinn:person:identifier-no:01125512345\nurn:altinn:organization:identifier-no:912345678",
226
226
  "type": "string"
227
227
  },
228
+ "precedingProcess": {
229
+ "description": "Optional preceding process identifier to indicate the business process that preceded the process indicated in the \u0022Process\u0022 field. Cannot be set without also \u0022Process\u0022 being set.",
230
+ "nullable": true,
231
+ "type": "string"
232
+ },
233
+ "process": {
234
+ "description": "Optional process identifier used to indicate a business process this dialog belongs to ",
235
+ "nullable": true,
236
+ "type": "string"
237
+ },
228
238
  "progress": {
229
239
  "description": "Advisory indicator of progress, represented as 1-100 percentage value. 100% representing a dialog that has come\nto a natural completion (successful or not).",
230
240
  "format": "int32",
@@ -842,7 +852,8 @@
842
852
  "Information",
843
853
  "TransmissionOpened",
844
854
  "PaymentMade",
845
- "SignatureProvided"
855
+ "SignatureProvided",
856
+ "DialogOpened"
846
857
  ],
847
858
  "type": "string",
848
859
  "x-enumNames": [
@@ -851,7 +862,8 @@
851
862
  "Information",
852
863
  "TransmissionOpened",
853
864
  "PaymentMade",
854
- "SignatureProvided"
865
+ "SignatureProvided",
866
+ "DialogOpened"
855
867
  ]
856
868
  },
857
869
  "DialogGuiActionPriority_Values": {
@@ -2035,6 +2047,16 @@
2035
2047
  "example": "urn:altinn:person:identifier-no:01125512345\nurn:altinn:organization:identifier-no:912345678",
2036
2048
  "type": "string"
2037
2049
  },
2050
+ "precedingProcess": {
2051
+ "description": "Optional preceding process identifier to indicate the business process that preceded the process indicated in the \u0022Process\u0022 field. Cannot be set without also \u0022Process\u0022 being set.",
2052
+ "nullable": true,
2053
+ "type": "string"
2054
+ },
2055
+ "process": {
2056
+ "description": "Optional process identifier used to indicate a business process this dialog belongs to",
2057
+ "nullable": true,
2058
+ "type": "string"
2059
+ },
2038
2060
  "progress": {
2039
2061
  "description": "Advisory indicator of progress, represented as 1-100 percentage value. 100% representing a dialog that has come\nto a natural completion (successful or not).",
2040
2062
  "format": "int32",
@@ -2178,6 +2200,16 @@
2178
2200
  "example": "urn:altinn:person:identifier-no:01125512345\nurn:altinn:organization:identifier-no:912345678",
2179
2201
  "type": "string"
2180
2202
  },
2203
+ "precedingProcess": {
2204
+ "description": "Optional preceding process identifier to indicate the business process that preceded the process indicated in the \u0022Process\u0022 field. Cannot be set without also \u0022Process\u0022 being set. ",
2205
+ "nullable": true,
2206
+ "type": "string"
2207
+ },
2208
+ "process": {
2209
+ "description": "Optional process identifier used to indicate a business process this dialog belongs to ",
2210
+ "nullable": true,
2211
+ "type": "string"
2212
+ },
2181
2213
  "progress": {
2182
2214
  "description": "Advisory indicator of progress, represented as 1-100 percentage value. 100% representing a dialog that has come\nto a natural completion (successful or not).",
2183
2215
  "format": "int32",
@@ -3108,6 +3140,16 @@
3108
3140
  "example": "urn:altinn:person:identifier-no:01125512345\nurn:altinn:organization:identifier-no:912345678",
3109
3141
  "type": "string"
3110
3142
  },
3143
+ "precedingProcess": {
3144
+ "description": "Optional preceding process identifier to indicate the business process that preceded the process indicated in the \u0022Process\u0022 field. Cannot be set without also \u0022Process\u0022 being set. ",
3145
+ "nullable": true,
3146
+ "type": "string"
3147
+ },
3148
+ "process": {
3149
+ "description": "Optional process identifier used to indicate a business process this dialog belongs to ",
3150
+ "nullable": true,
3151
+ "type": "string"
3152
+ },
3111
3153
  "progress": {
3112
3154
  "description": "Advisory indicator of progress, represented as 1-100 percentage value. 100% representing a dialog that has come\nto a natural completion (successful or not).",
3113
3155
  "format": "int32",
@@ -3207,6 +3249,16 @@
3207
3249
  "example": "urn:altinn:person:identifier-no:01125512345\nurn:altinn:organization:identifier-no:912345678",
3208
3250
  "type": "string"
3209
3251
  },
3252
+ "precedingProcess": {
3253
+ "description": "Optional preceding process identifier to indicate the business process that preceded the process indicated in the \u0022Process\u0022 field. Cannot be set without also \u0022Process\u0022 being set.",
3254
+ "nullable": true,
3255
+ "type": "string"
3256
+ },
3257
+ "process": {
3258
+ "description": "Optional process identifier used to indicate a business process this dialog belongs to",
3259
+ "nullable": true,
3260
+ "type": "string"
3261
+ },
3210
3262
  "progress": {
3211
3263
  "description": "Advisory indicator of progress, represented as 1-100 percentage value. 100% representing a dialog that has come\nto a natural completion (successful or not).",
3212
3264
  "format": "int32",
@@ -4170,6 +4222,15 @@
4170
4222
  "type": "string"
4171
4223
  }
4172
4224
  },
4225
+ {
4226
+ "description": "Filter by process",
4227
+ "in": "query",
4228
+ "name": "process",
4229
+ "schema": {
4230
+ "nullable": true,
4231
+ "type": "string"
4232
+ }
4233
+ },
4173
4234
  {
4174
4235
  "description": "Search string for free text search. Will attempt to fuzzily match in all free text fields in the aggregate",
4175
4236
  "in": "query",
@@ -4821,6 +4882,15 @@
4821
4882
  "type": "string"
4822
4883
  }
4823
4884
  },
4885
+ {
4886
+ "description": "Filter by process",
4887
+ "in": "query",
4888
+ "name": "process",
4889
+ "schema": {
4890
+ "nullable": true,
4891
+ "type": "string"
4892
+ }
4893
+ },
4824
4894
  {
4825
4895
  "description": "Search string for free text search. Will attempt to fuzzily match in all free text fields in the aggregate",
4826
4896
  "in": "query",