@digdir/dialogporten-schema 1.48.3 → 1.48.5-331d492

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.48.3",
3
+ "version": "1.48.5-331d492",
4
4
  "description": "GraphQl schema and OpenAPI spec for Dialogporten",
5
5
  "engines": {
6
6
  "node": "22"
@@ -372,9 +372,13 @@ enum ActorType {
372
372
  SERVICE_OWNER
373
373
  }
374
374
 
375
+ "Defines when a policy shall be executed."
375
376
  enum ApplyPolicy {
377
+ "Before the resolver was executed."
376
378
  BEFORE_RESOLVER
379
+ "After the resolver was executed."
377
380
  AFTER_RESOLVER
381
+ "The policy is applied in the validation step before the execution."
378
382
  VALIDATION
379
383
  }
380
384
 
@@ -451,8 +455,12 @@ enum TransmissionType {
451
455
  CORRECTION
452
456
  }
453
457
 
458
+ "The authorize directive."
454
459
  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
455
460
 
461
+ "The `@specifiedBy` directive is used within the type system definition language to provide a URL for specifying the behavior of custom scalar definitions."
462
+ directive @specifiedBy("The specifiedBy URL points to a human-readable specification. This field will only read a result for scalar types." url: String!) on SCALAR
463
+
456
464
  "The `DateTime` scalar represents an ISO-8601 compliant date time type."
457
465
  scalar DateTime @specifiedBy(url: "https:\/\/www.graphql-scalars.com\/date-time")
458
466
 
package/src/index.js CHANGED
@@ -372,9 +372,13 @@ enum ActorType {
372
372
  SERVICE_OWNER
373
373
  }
374
374
 
375
+ "Defines when a policy shall be executed."
375
376
  enum ApplyPolicy {
377
+ "Before the resolver was executed."
376
378
  BEFORE_RESOLVER
379
+ "After the resolver was executed."
377
380
  AFTER_RESOLVER
381
+ "The policy is applied in the validation step before the execution."
378
382
  VALIDATION
379
383
  }
380
384
 
@@ -451,8 +455,12 @@ enum TransmissionType {
451
455
  CORRECTION
452
456
  }
453
457
 
458
+ "The authorize directive."
454
459
  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
455
460
 
461
+ "The '@specifiedBy' directive is used within the type system definition language to provide a URL for specifying the behavior of custom scalar definitions."
462
+ directive @specifiedBy("The specifiedBy URL points to a human-readable specification. This field will only read a result for scalar types." url: String!) on SCALAR
463
+
456
464
  "The 'DateTime' scalar represents an ISO-8601 compliant date time type."
457
465
  scalar DateTime @specifiedBy(url: "https:\/\/www.graphql-scalars.com\/date-time")
458
466
 
@@ -6379,6 +6379,72 @@
6379
6379
  ]
6380
6380
  }
6381
6381
  },
6382
+ "/api/v1/serviceowner/dialogs/{dialogId}/actions/restore": {
6383
+ "post": {
6384
+ "description": "Restore a dialog. For more information see the documentation (link TBD). ",
6385
+ "operationId": "V1ServiceOwnerDialogsRestore_RestoreDialog",
6386
+ "parameters": [
6387
+ {
6388
+ "in": "path",
6389
+ "name": "dialogId",
6390
+ "required": true,
6391
+ "schema": {
6392
+ "format": "guid",
6393
+ "type": "string"
6394
+ }
6395
+ },
6396
+ {
6397
+ "in": "header",
6398
+ "name": "if-Match",
6399
+ "schema": {
6400
+ "format": "guid",
6401
+ "nullable": true,
6402
+ "type": "string"
6403
+ }
6404
+ }
6405
+ ],
6406
+ "responses": {
6407
+ "204": {
6408
+ "description": "The dialog aggregate was restored successfully."
6409
+ },
6410
+ "401": {
6411
+ "description": "Unauthorized"
6412
+ },
6413
+ "403": {
6414
+ "description": "Forbidden"
6415
+ },
6416
+ "404": {
6417
+ "content": {
6418
+ "application/problem\u002Bjson": {
6419
+ "schema": {
6420
+ "$ref": "#/components/schemas/ProblemDetails"
6421
+ }
6422
+ }
6423
+ },
6424
+ "description": "The given dialog ID was not found."
6425
+ },
6426
+ "412": {
6427
+ "content": {
6428
+ "application/problem\u002Bjson": {
6429
+ "schema": {
6430
+ "$ref": "#/components/schemas/ProblemDetails"
6431
+ }
6432
+ }
6433
+ },
6434
+ "description": "The supplied If-Match header did not match the current Revision value for the dialog. The request was not applied."
6435
+ }
6436
+ },
6437
+ "security": [
6438
+ {
6439
+ "JWTBearerAuth": []
6440
+ }
6441
+ ],
6442
+ "summary": "Restore a dialog",
6443
+ "tags": [
6444
+ "Serviceowner"
6445
+ ]
6446
+ }
6447
+ },
6382
6448
  "/api/v1/serviceowner/dialogs/{dialogId}/actions/should-send-notification": {
6383
6449
  "get": {
6384
6450
  "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.",