@digdir/dialogporten-schema 1.16.0-0029f46 → 1.16.0-8214acb

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.16.0-0029f46",
3
+ "version": "1.16.0-8214acb",
4
4
  "description": "GraphQl schema and OpenAPI spec for Dialogporten",
5
5
  "engines": {
6
6
  "node": "20"
@@ -1,5 +1,6 @@
1
1
  schema {
2
2
  query: Queries
3
+ subscription: Subscriptions
3
4
  }
4
5
 
5
6
  interface DialogByIdError {
@@ -129,6 +130,10 @@ type DialogByIdPayload {
129
130
  errors: [DialogByIdError!]!
130
131
  }
131
132
 
133
+ type DialogUpdatedPayload {
134
+ id: UUID!
135
+ }
136
+
132
137
  type GuiAction {
133
138
  id: UUID!
134
139
  action: String!
@@ -201,6 +206,10 @@ type SeenLog {
201
206
  isCurrentEndUser: Boolean!
202
207
  }
203
208
 
209
+ type Subscriptions @authorize(policy: "enduser") {
210
+ dialogUpdated(dialogId: UUID!): DialogUpdatedPayload!
211
+ }
212
+
204
213
  type Transmission {
205
214
  id: UUID!
206
215
  createdAt: DateTime!
package/src/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  export const schema_verified_graphql = `schema {
2
2
  query: Queries
3
+ subscription: Subscriptions
3
4
  }
4
5
 
5
6
  interface DialogByIdError {
@@ -129,6 +130,10 @@ type DialogByIdPayload {
129
130
  errors: [DialogByIdError!]!
130
131
  }
131
132
 
133
+ type DialogUpdatedPayload {
134
+ id: UUID!
135
+ }
136
+
132
137
  type GuiAction {
133
138
  id: UUID!
134
139
  action: String!
@@ -201,6 +206,10 @@ type SeenLog {
201
206
  isCurrentEndUser: Boolean!
202
207
  }
203
208
 
209
+ type Subscriptions @authorize(policy: "enduser") {
210
+ dialogUpdated(dialogId: UUID!): DialogUpdatedPayload!
211
+ }
212
+
204
213
  type Transmission {
205
214
  id: UUID!
206
215
  createdAt: DateTime!