@digdir/dialogporten-schema 1.10.0 → 1.11.0-3de6a4f

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.10.0",
3
+ "version": "1.11.0-3de6a4f",
4
4
  "description": "GraphQl schema and OpenAPI spec for Dialogporten",
5
5
  "engines": {
6
6
  "node": "20"
@@ -65,6 +65,7 @@ type AuthorizedParty {
65
65
  partyType: String!
66
66
  isDeleted: Boolean!
67
67
  hasKeyRole: Boolean!
68
+ isCurrentEndUser: Boolean!
68
69
  isMainAdministrator: Boolean!
69
70
  isAccessManager: Boolean!
70
71
  hasOnlyAccessToSubParties: Boolean!
package/src/index.js CHANGED
@@ -65,6 +65,7 @@ type AuthorizedParty {
65
65
  partyType: String!
66
66
  isDeleted: Boolean!
67
67
  hasKeyRole: Boolean!
68
+ isCurrentEndUser: Boolean!
68
69
  isMainAdministrator: Boolean!
69
70
  isAccessManager: Boolean!
70
71
  hasOnlyAccessToSubParties: Boolean!
@@ -265,8 +265,8 @@
265
265
  "tags": [
266
266
  "Serviceowner"
267
267
  ],
268
- "summary": "Gets a single dialog seen log record",
269
- "description": "Gets a single dialog seen log record. For more information see the documentation (link TBD).",
268
+ "summary": "Gets all seen log records for a dialog",
269
+ "description": "Gets all seen log records for a dialog. For more information see the documentation (link TBD).",
270
270
  "operationId": "SearchDialogSeenLogSO",
271
271
  "parameters": [
272
272
  {
@@ -287,7 +287,7 @@
287
287
  "description": "Forbidden"
288
288
  },
289
289
  "200": {
290
- "description": "Successfully returned the dialog seen log record.",
290
+ "description": "Successfully returned the dialog seen log records.",
291
291
  "content": {
292
292
  "application/json": {
293
293
  "schema": {
@@ -413,11 +413,7 @@
413
413
  "content": {
414
414
  "application/json": {
415
415
  "schema": {
416
- "oneOf": [
417
- {
418
- "$ref": "#/components/schemas/UpdateDialogDto"
419
- }
420
- ]
416
+ "$ref": "#/components/schemas/UpdateDialogDto"
421
417
  },
422
418
  "example": {
423
419
  "Progress": 42,
@@ -1354,6 +1350,84 @@
1354
1350
  ]
1355
1351
  }
1356
1352
  },
1353
+ "/api/v1/serviceowner/dialogs/{dialogId}/notification-condition": {
1354
+ "get": {
1355
+ "tags": [
1356
+ "Serviceowner"
1357
+ ],
1358
+ "summary": "Returns a boolean value based on conditions used to determine if a notification is to be sent.",
1359
+ "description": "Used by Altinn Notification only. Takes a dialogId and returns a boolean value based on conditions used to determine if a notification is to be sent.",
1360
+ "operationId": "GetDialogActivityNotificationConditionSO",
1361
+ "parameters": [
1362
+ {
1363
+ "name": "dialogId",
1364
+ "in": "path",
1365
+ "required": true,
1366
+ "schema": {
1367
+ "type": "string",
1368
+ "format": "guid"
1369
+ }
1370
+ },
1371
+ {
1372
+ "name": "conditionType",
1373
+ "in": "query",
1374
+ "required": true,
1375
+ "schema": {
1376
+ "allOf": [
1377
+ {
1378
+ "$ref": "#/components/schemas/NotificationConditionType"
1379
+ }
1380
+ ]
1381
+ }
1382
+ },
1383
+ {
1384
+ "name": "activityType",
1385
+ "in": "query",
1386
+ "required": true,
1387
+ "schema": {
1388
+ "allOf": [
1389
+ {
1390
+ "$ref": "#/components/schemas/DialogActivityType_Values"
1391
+ }
1392
+ ]
1393
+ }
1394
+ },
1395
+ {
1396
+ "name": "transmissionId",
1397
+ "in": "query",
1398
+ "schema": {
1399
+ "type": "string",
1400
+ "format": "guid",
1401
+ "nullable": true
1402
+ }
1403
+ }
1404
+ ],
1405
+ "responses": {
1406
+ "200": {
1407
+ "description": "Successfully returned the notification determination.",
1408
+ "content": {
1409
+ "text/plain": {
1410
+ "schema": {}
1411
+ },
1412
+ "application/json": {
1413
+ "schema": {}
1414
+ }
1415
+ }
1416
+ },
1417
+ "401": {
1418
+ "description": "Missing or invalid authentication token. Requires a Maskinporten-token with the scope \"altinn:system/notifications.condition.check\"."
1419
+ },
1420
+ "403": {
1421
+ "description": "Forbidden"
1422
+ }
1423
+ },
1424
+ "security": [
1425
+ {
1426
+ "JWTBearerAuth": []
1427
+ }
1428
+ ]
1429
+ }
1430
+ },
1357
1431
  "/api/v1/serviceowner/dialogs/{dialogId}/activities/{activityId}": {
1358
1432
  "get": {
1359
1433
  "tags": [
@@ -1552,8 +1626,8 @@
1552
1626
  "tags": [
1553
1627
  "Enduser"
1554
1628
  ],
1555
- "summary": "Gets a single dialog seen log record",
1556
- "description": "Gets a single dialog seen log record. For more information see the documentation (link TBD).",
1629
+ "summary": "Gets all seen log records for a dialog",
1630
+ "description": "Gets all seen log records for a dialog. For more information see the documentation (link TBD).",
1557
1631
  "operationId": "SearchDialogSeenLog",
1558
1632
  "parameters": [
1559
1633
  {
@@ -1574,7 +1648,7 @@
1574
1648
  "description": "Forbidden"
1575
1649
  },
1576
1650
  "200": {
1577
- "description": "Successfully returned the dialog seen log record.",
1651
+ "description": "Successfully returned the dialog seen log records.",
1578
1652
  "content": {
1579
1653
  "application/json": {
1580
1654
  "schema": {
@@ -2228,7 +2302,7 @@
2228
2302
  "additionalProperties": false,
2229
2303
  "properties": {
2230
2304
  "actorType": {
2231
- "$ref": "#/components/schemas/DialogActorType_Values"
2305
+ "$ref": "#/components/schemas/ActorType_Values"
2232
2306
  },
2233
2307
  "actorName": {
2234
2308
  "type": "string"
@@ -2238,7 +2312,7 @@
2238
2312
  }
2239
2313
  }
2240
2314
  },
2241
- "DialogActorType_Values": {
2315
+ "ActorType_Values": {
2242
2316
  "type": "string",
2243
2317
  "description": "",
2244
2318
  "x-enumNames": [
@@ -2892,7 +2966,7 @@
2892
2966
  "additionalProperties": false,
2893
2967
  "properties": {
2894
2968
  "actorType": {
2895
- "$ref": "#/components/schemas/DialogActorType_Values"
2969
+ "$ref": "#/components/schemas/ActorType_Values"
2896
2970
  },
2897
2971
  "actorName": {
2898
2972
  "type": "string",
@@ -3055,7 +3129,7 @@
3055
3129
  "format": "guid"
3056
3130
  },
3057
3131
  "actorType": {
3058
- "$ref": "#/components/schemas/DialogActorType_Values"
3132
+ "$ref": "#/components/schemas/ActorType_Values"
3059
3133
  },
3060
3134
  "actorName": {
3061
3135
  "type": "string",
@@ -3400,7 +3474,7 @@
3400
3474
  "format": "guid"
3401
3475
  },
3402
3476
  "actorType": {
3403
- "$ref": "#/components/schemas/DialogActorType_Values"
3477
+ "$ref": "#/components/schemas/ActorType_Values"
3404
3478
  },
3405
3479
  "actorName": {
3406
3480
  "type": "string"
@@ -3626,7 +3700,7 @@
3626
3700
  "format": "guid"
3627
3701
  },
3628
3702
  "actorType": {
3629
- "$ref": "#/components/schemas/DialogActorType_Values"
3703
+ "$ref": "#/components/schemas/ActorType_Values"
3630
3704
  },
3631
3705
  "actorName": {
3632
3706
  "type": "string",
@@ -3903,7 +3977,7 @@
3903
3977
  "additionalProperties": false,
3904
3978
  "properties": {
3905
3979
  "actorType": {
3906
- "$ref": "#/components/schemas/DialogActorType_Values"
3980
+ "$ref": "#/components/schemas/ActorType_Values"
3907
3981
  },
3908
3982
  "actorName": {
3909
3983
  "type": "string"
@@ -4116,7 +4190,7 @@
4116
4190
  "additionalProperties": false,
4117
4191
  "properties": {
4118
4192
  "actorType": {
4119
- "$ref": "#/components/schemas/DialogActorType_Values"
4193
+ "$ref": "#/components/schemas/ActorType_Values"
4120
4194
  },
4121
4195
  "actorName": {
4122
4196
  "type": "string",
@@ -4171,6 +4245,18 @@
4171
4245
  }
4172
4246
  }
4173
4247
  },
4248
+ "NotificationConditionType": {
4249
+ "type": "string",
4250
+ "description": "",
4251
+ "x-enumNames": [
4252
+ "NotExists",
4253
+ "Exists"
4254
+ ],
4255
+ "enum": [
4256
+ "NotExists",
4257
+ "Exists"
4258
+ ]
4259
+ },
4174
4260
  "GetPartiesDto": {
4175
4261
  "type": "object",
4176
4262
  "additionalProperties": false,
@@ -4202,6 +4288,9 @@
4202
4288
  "hasKeyRole": {
4203
4289
  "type": "boolean"
4204
4290
  },
4291
+ "isCurrentEndUser": {
4292
+ "type": "boolean"
4293
+ },
4205
4294
  "isMainAdministrator": {
4206
4295
  "type": "boolean"
4207
4296
  },
@@ -4440,7 +4529,7 @@
4440
4529
  "format": "guid"
4441
4530
  },
4442
4531
  "actorType": {
4443
- "$ref": "#/components/schemas/DialogActorType_Values"
4532
+ "$ref": "#/components/schemas/ActorType_Values"
4444
4533
  },
4445
4534
  "actorName": {
4446
4535
  "type": "string",
@@ -4769,7 +4858,7 @@
4769
4858
  "format": "guid"
4770
4859
  },
4771
4860
  "actorType": {
4772
- "$ref": "#/components/schemas/DialogActorType_Values"
4861
+ "$ref": "#/components/schemas/ActorType_Values"
4773
4862
  },
4774
4863
  "actorName": {
4775
4864
  "type": "string"
@@ -5001,7 +5090,7 @@
5001
5090
  "format": "guid"
5002
5091
  },
5003
5092
  "actorType": {
5004
- "$ref": "#/components/schemas/DialogActorType_Values"
5093
+ "$ref": "#/components/schemas/ActorType_Values"
5005
5094
  },
5006
5095
  "actorName": {
5007
5096
  "type": "string",
@@ -5109,4 +5198,4 @@
5109
5198
  }
5110
5199
  }
5111
5200
  }
5112
- }
5201
+ }