@digdir/dialogporten-schema 1.18.0 → 1.18.1-e0c1cf2
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 +9 -3
- package/src/index.js +8 -2
- package/swagger.verified.json +78 -78
package/package.json
CHANGED
package/schema.verified.graphql
CHANGED
|
@@ -132,8 +132,9 @@ type DialogByIdPayload {
|
|
|
132
132
|
errors: [DialogByIdError!]!
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
-
type
|
|
135
|
+
type DialogEventPayload {
|
|
136
136
|
id: UUID!
|
|
137
|
+
type: DialogEventType!
|
|
137
138
|
}
|
|
138
139
|
|
|
139
140
|
type GuiAction {
|
|
@@ -211,7 +212,7 @@ type SeenLog {
|
|
|
211
212
|
}
|
|
212
213
|
|
|
213
214
|
type Subscriptions @authorize(policy: "enduser") {
|
|
214
|
-
|
|
215
|
+
dialogEvents(dialogId: UUID!): DialogEventPayload!
|
|
215
216
|
}
|
|
216
217
|
|
|
217
218
|
type Transmission {
|
|
@@ -296,6 +297,11 @@ enum AttachmentUrlConsumer {
|
|
|
296
297
|
API
|
|
297
298
|
}
|
|
298
299
|
|
|
300
|
+
enum DialogEventType {
|
|
301
|
+
DIALOG_UPDATED
|
|
302
|
+
DIALOG_DELETED
|
|
303
|
+
}
|
|
304
|
+
|
|
299
305
|
enum DialogStatus {
|
|
300
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."
|
|
301
307
|
NEW
|
|
@@ -355,4 +361,4 @@ scalar DateTime @specifiedBy(url: "https:\/\/www.graphql-scalars.com\/date-time"
|
|
|
355
361
|
|
|
356
362
|
scalar URL @specifiedBy(url: "https:\/\/tools.ietf.org\/html\/rfc3986")
|
|
357
363
|
|
|
358
|
-
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
|
@@ -132,8 +132,9 @@ type DialogByIdPayload {
|
|
|
132
132
|
errors: [DialogByIdError!]!
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
-
type
|
|
135
|
+
type DialogEventPayload {
|
|
136
136
|
id: UUID!
|
|
137
|
+
type: DialogEventType!
|
|
137
138
|
}
|
|
138
139
|
|
|
139
140
|
type GuiAction {
|
|
@@ -211,7 +212,7 @@ type SeenLog {
|
|
|
211
212
|
}
|
|
212
213
|
|
|
213
214
|
type Subscriptions @authorize(policy: "enduser") {
|
|
214
|
-
|
|
215
|
+
dialogEvents(dialogId: UUID!): DialogEventPayload!
|
|
215
216
|
}
|
|
216
217
|
|
|
217
218
|
type Transmission {
|
|
@@ -296,6 +297,11 @@ enum AttachmentUrlConsumer {
|
|
|
296
297
|
API
|
|
297
298
|
}
|
|
298
299
|
|
|
300
|
+
enum DialogEventType {
|
|
301
|
+
DIALOG_UPDATED
|
|
302
|
+
DIALOG_DELETED
|
|
303
|
+
}
|
|
304
|
+
|
|
299
305
|
enum DialogStatus {
|
|
300
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."
|
|
301
307
|
NEW
|
package/swagger.verified.json
CHANGED
|
@@ -5561,6 +5561,84 @@
|
|
|
5561
5561
|
]
|
|
5562
5562
|
}
|
|
5563
5563
|
},
|
|
5564
|
+
"/api/v1/serviceowner/dialogs/{dialogId}/actions/should-send-notification": {
|
|
5565
|
+
"get": {
|
|
5566
|
+
"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.",
|
|
5567
|
+
"operationId": "GetDialogActivityNotificationConditionSO",
|
|
5568
|
+
"parameters": [
|
|
5569
|
+
{
|
|
5570
|
+
"in": "path",
|
|
5571
|
+
"name": "dialogId",
|
|
5572
|
+
"required": true,
|
|
5573
|
+
"schema": {
|
|
5574
|
+
"format": "guid",
|
|
5575
|
+
"type": "string"
|
|
5576
|
+
}
|
|
5577
|
+
},
|
|
5578
|
+
{
|
|
5579
|
+
"in": "query",
|
|
5580
|
+
"name": "conditionType",
|
|
5581
|
+
"required": true,
|
|
5582
|
+
"schema": {
|
|
5583
|
+
"allOf": [
|
|
5584
|
+
{
|
|
5585
|
+
"$ref": "#/components/schemas/NotificationConditionType"
|
|
5586
|
+
}
|
|
5587
|
+
]
|
|
5588
|
+
}
|
|
5589
|
+
},
|
|
5590
|
+
{
|
|
5591
|
+
"in": "query",
|
|
5592
|
+
"name": "activityType",
|
|
5593
|
+
"required": true,
|
|
5594
|
+
"schema": {
|
|
5595
|
+
"allOf": [
|
|
5596
|
+
{
|
|
5597
|
+
"$ref": "#/components/schemas/DialogActivityType_Values"
|
|
5598
|
+
}
|
|
5599
|
+
]
|
|
5600
|
+
}
|
|
5601
|
+
},
|
|
5602
|
+
{
|
|
5603
|
+
"in": "query",
|
|
5604
|
+
"name": "transmissionId",
|
|
5605
|
+
"schema": {
|
|
5606
|
+
"format": "guid",
|
|
5607
|
+
"nullable": true,
|
|
5608
|
+
"type": "string"
|
|
5609
|
+
}
|
|
5610
|
+
}
|
|
5611
|
+
],
|
|
5612
|
+
"responses": {
|
|
5613
|
+
"200": {
|
|
5614
|
+
"content": {
|
|
5615
|
+
"application/json": {
|
|
5616
|
+
"schema": {}
|
|
5617
|
+
},
|
|
5618
|
+
"text/plain": {
|
|
5619
|
+
"schema": {}
|
|
5620
|
+
}
|
|
5621
|
+
},
|
|
5622
|
+
"description": "Successfully returned the notification determination."
|
|
5623
|
+
},
|
|
5624
|
+
"401": {
|
|
5625
|
+
"description": "Missing or invalid authentication token. Requires a Maskinporten-token with the scope \u0022altinn:system/notifications.condition.check\u0022."
|
|
5626
|
+
},
|
|
5627
|
+
"403": {
|
|
5628
|
+
"description": "Forbidden"
|
|
5629
|
+
}
|
|
5630
|
+
},
|
|
5631
|
+
"security": [
|
|
5632
|
+
{
|
|
5633
|
+
"JWTBearerAuth": []
|
|
5634
|
+
}
|
|
5635
|
+
],
|
|
5636
|
+
"summary": "Returns a boolean value based on conditions used to determine if a notification is to be sent",
|
|
5637
|
+
"tags": [
|
|
5638
|
+
"Serviceowner"
|
|
5639
|
+
]
|
|
5640
|
+
}
|
|
5641
|
+
},
|
|
5564
5642
|
"/api/v1/serviceowner/dialogs/{dialogId}/activities": {
|
|
5565
5643
|
"get": {
|
|
5566
5644
|
"description": "Gets the list of activities belonging to a dialog",
|
|
@@ -5767,84 +5845,6 @@
|
|
|
5767
5845
|
]
|
|
5768
5846
|
}
|
|
5769
5847
|
},
|
|
5770
|
-
"/api/v1/serviceowner/dialogs/{dialogId}/notification-condition": {
|
|
5771
|
-
"get": {
|
|
5772
|
-
"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.",
|
|
5773
|
-
"operationId": "GetDialogActivityNotificationConditionSO",
|
|
5774
|
-
"parameters": [
|
|
5775
|
-
{
|
|
5776
|
-
"in": "path",
|
|
5777
|
-
"name": "dialogId",
|
|
5778
|
-
"required": true,
|
|
5779
|
-
"schema": {
|
|
5780
|
-
"format": "guid",
|
|
5781
|
-
"type": "string"
|
|
5782
|
-
}
|
|
5783
|
-
},
|
|
5784
|
-
{
|
|
5785
|
-
"in": "query",
|
|
5786
|
-
"name": "conditionType",
|
|
5787
|
-
"required": true,
|
|
5788
|
-
"schema": {
|
|
5789
|
-
"allOf": [
|
|
5790
|
-
{
|
|
5791
|
-
"$ref": "#/components/schemas/NotificationConditionType"
|
|
5792
|
-
}
|
|
5793
|
-
]
|
|
5794
|
-
}
|
|
5795
|
-
},
|
|
5796
|
-
{
|
|
5797
|
-
"in": "query",
|
|
5798
|
-
"name": "activityType",
|
|
5799
|
-
"required": true,
|
|
5800
|
-
"schema": {
|
|
5801
|
-
"allOf": [
|
|
5802
|
-
{
|
|
5803
|
-
"$ref": "#/components/schemas/DialogActivityType_Values"
|
|
5804
|
-
}
|
|
5805
|
-
]
|
|
5806
|
-
}
|
|
5807
|
-
},
|
|
5808
|
-
{
|
|
5809
|
-
"in": "query",
|
|
5810
|
-
"name": "transmissionId",
|
|
5811
|
-
"schema": {
|
|
5812
|
-
"format": "guid",
|
|
5813
|
-
"nullable": true,
|
|
5814
|
-
"type": "string"
|
|
5815
|
-
}
|
|
5816
|
-
}
|
|
5817
|
-
],
|
|
5818
|
-
"responses": {
|
|
5819
|
-
"200": {
|
|
5820
|
-
"content": {
|
|
5821
|
-
"application/json": {
|
|
5822
|
-
"schema": {}
|
|
5823
|
-
},
|
|
5824
|
-
"text/plain": {
|
|
5825
|
-
"schema": {}
|
|
5826
|
-
}
|
|
5827
|
-
},
|
|
5828
|
-
"description": "Successfully returned the notification determination."
|
|
5829
|
-
},
|
|
5830
|
-
"401": {
|
|
5831
|
-
"description": "Missing or invalid authentication token. Requires a Maskinporten-token with the scope \u0022altinn:system/notifications.condition.check\u0022."
|
|
5832
|
-
},
|
|
5833
|
-
"403": {
|
|
5834
|
-
"description": "Forbidden"
|
|
5835
|
-
}
|
|
5836
|
-
},
|
|
5837
|
-
"security": [
|
|
5838
|
-
{
|
|
5839
|
-
"JWTBearerAuth": []
|
|
5840
|
-
}
|
|
5841
|
-
],
|
|
5842
|
-
"summary": "Returns a boolean value based on conditions used to determine if a notification is to be sent",
|
|
5843
|
-
"tags": [
|
|
5844
|
-
"Serviceowner"
|
|
5845
|
-
]
|
|
5846
|
-
}
|
|
5847
|
-
},
|
|
5848
5848
|
"/api/v1/serviceowner/dialogs/{dialogId}/seenlog": {
|
|
5849
5849
|
"get": {
|
|
5850
5850
|
"description": "Gets all seen log records for a dialog. For more information see the documentation (link TBD).",
|