@digdir/dialogporten-schema 1.111.1 → 1.113.0

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.111.1",
3
+ "version": "1.113.0",
4
4
  "description": "GraphQl schema and OpenAPI spec for Dialogporten",
5
5
  "engines": {
6
6
  "node": "24"
@@ -429,8 +429,8 @@ type SearchDialog {
429
429
  "The aggregated status of the dialog."
430
430
  status: DialogStatus!
431
431
  "Indicates whether the dialog contains content that has not been viewed or opened by the user yet."
432
- hasUnopenedContent: Boolean!
433
- "Indicates if this dialog is intended for API consumption only and should not be shown in frontends aimed at humans"
432
+ hasUnopenedContent: Boolean! @deprecated(reason: "Use SeenSinceLastContentUpdate and EndUserContext.SystemLabels instead")
433
+ "Indicates if this dialog is intended for API consumption only and should not be shown in frontends aimed at humans."
434
434
  isApiOnly: Boolean!
435
435
  "The number of transmissions sent by the service owner"
436
436
  fromServiceOwnerTransmissionsCount: Int!
@@ -620,6 +620,8 @@ input SearchDialogInput {
620
620
  contentUpdatedAfter: DateTime
621
621
  "Only return dialogs with content updated before this date"
622
622
  contentUpdatedBefore: DateTime
623
+ "Only return dialogs that have content that has\/hasn't been seen by the user. A dialog is considered seen if it has been retrieved by a user, since it's last content update, and there is no SystemLabel MarkedAsUnopened."
624
+ isContentSeen: Boolean
623
625
  "Only return dialogs updated after this date"
624
626
  updatedAfter: DateTime
625
627
  "Only return dialogs updated before this date"
package/src/index.js CHANGED
@@ -429,8 +429,8 @@ type SearchDialog {
429
429
  "The aggregated status of the dialog."
430
430
  status: DialogStatus!
431
431
  "Indicates whether the dialog contains content that has not been viewed or opened by the user yet."
432
- hasUnopenedContent: Boolean!
433
- "Indicates if this dialog is intended for API consumption only and should not be shown in frontends aimed at humans"
432
+ hasUnopenedContent: Boolean! @deprecated(reason: "Use SeenSinceLastContentUpdate and EndUserContext.SystemLabels instead")
433
+ "Indicates if this dialog is intended for API consumption only and should not be shown in frontends aimed at humans."
434
434
  isApiOnly: Boolean!
435
435
  "The number of transmissions sent by the service owner"
436
436
  fromServiceOwnerTransmissionsCount: Int!
@@ -620,6 +620,8 @@ input SearchDialogInput {
620
620
  contentUpdatedAfter: DateTime
621
621
  "Only return dialogs with content updated before this date"
622
622
  contentUpdatedBefore: DateTime
623
+ "Only return dialogs that have content that has\/hasn't been seen by the user. A dialog is considered seen if it has been retrieved by a user, since it's last content update, and there is no SystemLabel MarkedAsUnopened."
624
+ isContentSeen: Boolean
623
625
  "Only return dialogs updated after this date"
624
626
  updatedAfter: DateTime
625
627
  "Only return dialogs updated before this date"
@@ -25,7 +25,6 @@
25
25
  "Api"
26
26
  ]
27
27
  },
28
- "ContinuationTokenSetOfTOrderDefinitionAndTTarget": {},
29
28
  "DialogEndUserContextsEntities_SystemLabel": {
30
29
  "description": "",
31
30
  "enum": [
@@ -216,7 +215,6 @@
216
215
  "Invalid"
217
216
  ]
218
217
  },
219
- "OrderSetOfTOrderDefinitionAndTTarget": {},
220
218
  "PaginatedListOfV1EndUserDialogsQueriesSearch_Dialog": {
221
219
  "additionalProperties": false,
222
220
  "properties": {
@@ -876,12 +874,12 @@
876
874
  "type": "string"
877
875
  },
878
876
  "fromPartyTransmissionsCount": {
879
- "description": "The number of transmissions sent by a party representative",
877
+ "description": "The number of transmissions sent by a party representative.",
880
878
  "format": "int32",
881
879
  "type": "integer"
882
880
  },
883
881
  "fromServiceOwnerTransmissionsCount": {
884
- "description": "The number of transmissions sent by a service owner",
882
+ "description": "The number of transmissions sent by a service owner.",
885
883
  "format": "int32",
886
884
  "type": "integer"
887
885
  },
@@ -894,8 +892,10 @@
894
892
  "type": "array"
895
893
  },
896
894
  "hasUnopenedContent": {
897
- "description": "Indicates whether the dialog contains content that has not been viewed or opened by the user yet.",
898
- "type": "boolean"
895
+ "deprecated": true,
896
+ "description": "Indicates whether the dialog contains content that has not been viewed or opened by the user yet.\n \nObsolete: A dialog is now considered \u0027seen\u0027 when the dialog has:\n- At least one entry in SeenSinceLastContentUpdate and\n- No system label MarkedAsUnopened.",
897
+ "type": "boolean",
898
+ "x-deprecatedMessage": "Use SeenSinceLastContentUpdate and EndUserContext.SystemLabels instead"
899
899
  },
900
900
  "id": {
901
901
  "description": "The unique identifier for the dialog in UUIDv7 format.",
@@ -1980,8 +1980,10 @@
1980
1980
  "type": "integer"
1981
1981
  },
1982
1982
  "hasUnopenedContent": {
1983
- "description": "Indicates whether the dialog contains content that has not been viewed or opened by the user yet.",
1984
- "type": "boolean"
1983
+ "deprecated": true,
1984
+ "description": "Indicates whether the dialog contains content that has not been viewed or opened by the user yet.\n \nObsolete: A dialog is now considered \u0027seen\u0027 when the dialog has:\n- At least one entry in SeenSinceLastContentUpdate and\n- No system label MarkedAsUnopened.",
1985
+ "type": "boolean",
1986
+ "x-deprecatedMessage": "Use SeenSinceLastContentUpdate and EndUserContext.SystemLabels instead"
1985
1987
  },
1986
1988
  "id": {
1987
1989
  "description": "The unique identifier for the dialog in UUIDv7 format.",
@@ -4871,12 +4873,12 @@
4871
4873
  "type": "string"
4872
4874
  },
4873
4875
  "fromPartyTransmissionsCount": {
4874
- "description": "The number of transmissions sent by a party representative",
4876
+ "description": "The number of transmissions sent by a party representative.",
4875
4877
  "format": "int32",
4876
4878
  "type": "integer"
4877
4879
  },
4878
4880
  "fromServiceOwnerTransmissionsCount": {
4879
- "description": "The number of transmissions sent by the service owner",
4881
+ "description": "The number of transmissions sent by the service owner.",
4880
4882
  "format": "int32",
4881
4883
  "type": "integer"
4882
4884
  },
@@ -4889,8 +4891,10 @@
4889
4891
  "type": "array"
4890
4892
  },
4891
4893
  "hasUnopenedContent": {
4892
- "description": "Indicates whether the dialog contains content that has not been viewed or opened by the user yet.",
4893
- "type": "boolean"
4894
+ "deprecated": true,
4895
+ "description": "Indicates whether the dialog contains content that has not been viewed or opened by the user yet.\n \nObsolete: A dialog is now considered \u0027seen\u0027 when the dialog has:\n- At least one entry in SeenSinceLastContentUpdate and\n- No system label MarkedAsUnopened.",
4896
+ "type": "boolean",
4897
+ "x-deprecatedMessage": "Use SeenSinceLastContentUpdate and EndUserContext.SystemLabels instead"
4894
4898
  },
4895
4899
  "id": {
4896
4900
  "description": "The unique identifier for the dialog in UUIDv7 format.",
@@ -6057,8 +6061,10 @@
6057
6061
  "type": "integer"
6058
6062
  },
6059
6063
  "hasUnopenedContent": {
6060
- "description": "Indicates whether the dialog contains content that has not been viewed or opened by the user yet.",
6061
- "type": "boolean"
6064
+ "deprecated": true,
6065
+ "description": "Indicates whether the dialog contains content that has not been viewed or opened by the user yet.\n \nObsolete: A dialog is now considered \u0027seen\u0027 when the dialog has:\n- At least one entry in SeenSinceLastContentUpdate and\n- No system label MarkedAsUnopened.",
6066
+ "type": "boolean",
6067
+ "x-deprecatedMessage": "Use SeenSinceLastContentUpdate and EndUserContext.SystemLabels instead"
6062
6068
  },
6063
6069
  "id": {
6064
6070
  "description": "The unique identifier for the dialog in UUIDv7 format.",
@@ -7136,6 +7142,15 @@
7136
7142
  "type": "string"
7137
7143
  }
7138
7144
  },
7145
+ {
7146
+ "description": "Only return dialogs that have content that has/hasn\u0027t been seen.\nIf null, no filtering is applied\nIf true, returns dialogs that have been seen\nIf false, returns dialogs that have not been seen\n \nA dialog\u0027s content is considered seen if:\n- It has been visited by the GET .../dialogs/{dialogId} endpoint since the last content update, and\n- It does not have a system label MarkedAsUnopened.",
7147
+ "in": "query",
7148
+ "name": "isContentSeen",
7149
+ "schema": {
7150
+ "nullable": true,
7151
+ "type": "boolean"
7152
+ }
7153
+ },
7139
7154
  {
7140
7155
  "description": "Only return dialogs with due date after this date",
7141
7156
  "in": "query",
@@ -7211,11 +7226,7 @@
7211
7226
  "name": "orderBy",
7212
7227
  "schema": {
7213
7228
  "nullable": true,
7214
- "oneOf": [
7215
- {
7216
- "$ref": "#/components/schemas/OrderSetOfTOrderDefinitionAndTTarget"
7217
- }
7218
- ]
7229
+ "type": "string"
7219
7230
  }
7220
7231
  },
7221
7232
  {
@@ -7224,11 +7235,7 @@
7224
7235
  "name": "continuationToken",
7225
7236
  "schema": {
7226
7237
  "nullable": true,
7227
- "oneOf": [
7228
- {
7229
- "$ref": "#/components/schemas/ContinuationTokenSetOfTOrderDefinitionAndTTarget"
7230
- }
7231
- ]
7238
+ "type": "string"
7232
7239
  }
7233
7240
  },
7234
7241
  {
@@ -8578,6 +8585,15 @@
8578
8585
  "type": "string"
8579
8586
  }
8580
8587
  },
8588
+ {
8589
+ "description": "Only return dialogs that have content that has/hasn\u0027t been seen.\nIf null, no filtering is applied\nIf true, returns dialogs that have been seen\nIf false, returns dialogs that have not been seen\n \nA dialog\u0027s content is considered seen if:\n- It has been visited by the GET .../dialogs/{dialogId} endpoint since the last content update, and\n- It does not have a system label MarkedAsUnopened.",
8590
+ "in": "query",
8591
+ "name": "isContentSeen",
8592
+ "schema": {
8593
+ "nullable": true,
8594
+ "type": "boolean"
8595
+ }
8596
+ },
8581
8597
  {
8582
8598
  "description": "Only return dialogs with due date after this date",
8583
8599
  "in": "query",
@@ -8687,11 +8703,7 @@
8687
8703
  "name": "orderBy",
8688
8704
  "schema": {
8689
8705
  "nullable": true,
8690
- "oneOf": [
8691
- {
8692
- "$ref": "#/components/schemas/OrderSetOfTOrderDefinitionAndTTarget"
8693
- }
8694
- ]
8706
+ "type": "string"
8695
8707
  }
8696
8708
  },
8697
8709
  {
@@ -8700,11 +8712,7 @@
8700
8712
  "name": "continuationToken",
8701
8713
  "schema": {
8702
8714
  "nullable": true,
8703
- "oneOf": [
8704
- {
8705
- "$ref": "#/components/schemas/ContinuationTokenSetOfTOrderDefinitionAndTTarget"
8706
- }
8707
- ]
8715
+ "type": "string"
8708
8716
  }
8709
8717
  },
8710
8718
  {
@@ -11159,11 +11167,7 @@
11159
11167
  "name": "continuationToken",
11160
11168
  "schema": {
11161
11169
  "nullable": true,
11162
- "oneOf": [
11163
- {
11164
- "$ref": "#/components/schemas/ContinuationTokenSetOfTOrderDefinitionAndTTarget"
11165
- }
11166
- ]
11170
+ "type": "string"
11167
11171
  }
11168
11172
  },
11169
11173
  {
@@ -11327,4 +11331,4 @@
11327
11331
  }
11328
11332
  }
11329
11333
  }
11330
- }
11334
+ }