@digdir/dialogporten-schema 1.112.0-12ccdf2 → 1.114.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.112.0-12ccdf2",
3
+ "version": "1.114.0",
4
4
  "description": "GraphQl schema and OpenAPI spec for Dialogporten",
5
5
  "engines": {
6
6
  "node": "24"
@@ -214,7 +214,7 @@ type Dialog {
214
214
  "The aggregated status of the dialog."
215
215
  status: DialogStatus!
216
216
  "Indicates whether the dialog contains content that has not been viewed or opened by the user yet."
217
- hasUnopenedContent: Boolean!
217
+ hasUnopenedContent: Boolean! @deprecated(reason: "Use IsContentSeen instead. See the new field's description for an explanation of the new behavior.")
218
218
  "The number of transmissions sent by the service owner"
219
219
  fromServiceOwnerTransmissionsCount: Int!
220
220
  "The number of transmissions sent by a party representative"
@@ -235,6 +235,8 @@ type Dialog {
235
235
  seenSinceLastUpdate: [SeenLog!]!
236
236
  "The list of seen log entries for the dialog newer than the dialog ContentUpdatedAt date."
237
237
  seenSinceLastContentUpdate: [SeenLog!]!
238
+ "A dialog is considered seen if it has been retrieved by a user since its last content update, and there is no SystemLabel MarkedAsUnopened"
239
+ isContentSeen: Boolean!
238
240
  "The immutable list of transmissions associated with the dialog."
239
241
  transmissions: [Transmission!]!
240
242
  "Metadata about the dialog owned by end-users."
@@ -429,7 +431,7 @@ type SearchDialog {
429
431
  "The aggregated status of the dialog."
430
432
  status: DialogStatus!
431
433
  "Indicates whether the dialog contains content that has not been viewed or opened by the user yet."
432
- hasUnopenedContent: Boolean! @deprecated(reason: "Use SeenSinceLastContentUpdate and EndUserContext.SystemLabels instead")
434
+ hasUnopenedContent: Boolean! @deprecated(reason: "Use IsContentSeen instead. See the new field's description for an explanation of the new behavior.")
433
435
  "Indicates if this dialog is intended for API consumption only and should not be shown in frontends aimed at humans."
434
436
  isApiOnly: Boolean!
435
437
  "The number of transmissions sent by the service owner"
@@ -444,6 +446,8 @@ type SearchDialog {
444
446
  seenSinceLastUpdate: [SeenLog!]!
445
447
  "The list of seen log entries for the dialog newer than the dialog ContentUpdatedAt date."
446
448
  seenSinceLastContentUpdate: [SeenLog!]!
449
+ "A dialog is considered seen if it has been retrieved by a user since its last content update, and there is no SystemLabel MarkedAsUnopened"
450
+ isContentSeen: Boolean!
447
451
  "Metadata about the dialog owned by end-users."
448
452
  endUserContext: EndUserContext!
449
453
  }
package/src/index.js CHANGED
@@ -214,7 +214,7 @@ type Dialog {
214
214
  "The aggregated status of the dialog."
215
215
  status: DialogStatus!
216
216
  "Indicates whether the dialog contains content that has not been viewed or opened by the user yet."
217
- hasUnopenedContent: Boolean!
217
+ hasUnopenedContent: Boolean! @deprecated(reason: "Use IsContentSeen instead. See the new field's description for an explanation of the new behavior.")
218
218
  "The number of transmissions sent by the service owner"
219
219
  fromServiceOwnerTransmissionsCount: Int!
220
220
  "The number of transmissions sent by a party representative"
@@ -235,6 +235,8 @@ type Dialog {
235
235
  seenSinceLastUpdate: [SeenLog!]!
236
236
  "The list of seen log entries for the dialog newer than the dialog ContentUpdatedAt date."
237
237
  seenSinceLastContentUpdate: [SeenLog!]!
238
+ "A dialog is considered seen if it has been retrieved by a user since its last content update, and there is no SystemLabel MarkedAsUnopened"
239
+ isContentSeen: Boolean!
238
240
  "The immutable list of transmissions associated with the dialog."
239
241
  transmissions: [Transmission!]!
240
242
  "Metadata about the dialog owned by end-users."
@@ -429,7 +431,7 @@ type SearchDialog {
429
431
  "The aggregated status of the dialog."
430
432
  status: DialogStatus!
431
433
  "Indicates whether the dialog contains content that has not been viewed or opened by the user yet."
432
- hasUnopenedContent: Boolean! @deprecated(reason: "Use SeenSinceLastContentUpdate and EndUserContext.SystemLabels instead")
434
+ hasUnopenedContent: Boolean! @deprecated(reason: "Use IsContentSeen instead. See the new field's description for an explanation of the new behavior.")
433
435
  "Indicates if this dialog is intended for API consumption only and should not be shown in frontends aimed at humans."
434
436
  isApiOnly: Boolean!
435
437
  "The number of transmissions sent by the service owner"
@@ -444,6 +446,8 @@ type SearchDialog {
444
446
  seenSinceLastUpdate: [SeenLog!]!
445
447
  "The list of seen log entries for the dialog newer than the dialog ContentUpdatedAt date."
446
448
  seenSinceLastContentUpdate: [SeenLog!]!
449
+ "A dialog is considered seen if it has been retrieved by a user since its last content update, and there is no SystemLabel MarkedAsUnopened"
450
+ isContentSeen: Boolean!
447
451
  "Metadata about the dialog owned by end-users."
448
452
  endUserContext: EndUserContext!
449
453
  }
@@ -893,9 +893,9 @@
893
893
  },
894
894
  "hasUnopenedContent": {
895
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.",
896
+ "description": "Indicates whether the dialog contains content that has not been viewed or opened by the user yet.",
897
897
  "type": "boolean",
898
- "x-deprecatedMessage": "Use SeenSinceLastContentUpdate and EndUserContext.SystemLabels instead"
898
+ "x-deprecatedMessage": "Use IsContentSeen instead. See the new field\u0027s description for an explanation of the new behavior."
899
899
  },
900
900
  "id": {
901
901
  "description": "The unique identifier for the dialog in UUIDv7 format.",
@@ -907,6 +907,10 @@
907
907
  "description": "Indicates if this dialog is intended for API consumption only and should not be shown in frontends aimed at humans.",
908
908
  "type": "boolean"
909
909
  },
910
+ "isContentSeen": {
911
+ "description": "A dialog is considered seen if\n- it has been retrieved by a user, since its last content update, and\n- there is no SystemLabels MarkedAsUnopened",
912
+ "type": "boolean"
913
+ },
910
914
  "org": {
911
915
  "description": "The service owner code representing the organization (service owner) related to this dialog.",
912
916
  "example": "ske",
@@ -1981,9 +1985,9 @@
1981
1985
  },
1982
1986
  "hasUnopenedContent": {
1983
1987
  "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.",
1988
+ "description": "Indicates whether the dialog contains content that has not been viewed or opened by the user yet.",
1985
1989
  "type": "boolean",
1986
- "x-deprecatedMessage": "Use SeenSinceLastContentUpdate and EndUserContext.SystemLabels instead"
1990
+ "x-deprecatedMessage": "Use IsContentSeen instead. See the new field\u0027s description for an explanation of the new behavior."
1987
1991
  },
1988
1992
  "id": {
1989
1993
  "description": "The unique identifier for the dialog in UUIDv7 format.",
@@ -1995,6 +1999,10 @@
1995
1999
  "description": "Indicates if this dialog is intended for API consumption only and should not be shown in frontends aimed at humans.\nWhen true, human-readable content like title and summary are not required.",
1996
2000
  "type": "boolean"
1997
2001
  },
2002
+ "isContentSeen": {
2003
+ "description": "A dialog is considered seen if\n- it has been retrieved by a user, since its last content update, and\n- there is no SystemLabels MarkedAsUnopened",
2004
+ "type": "boolean"
2005
+ },
1998
2006
  "latestActivity": {
1999
2007
  "description": "The latest entry in the dialog\u0027s activity log.",
2000
2008
  "nullable": true,
@@ -4892,9 +4900,9 @@
4892
4900
  },
4893
4901
  "hasUnopenedContent": {
4894
4902
  "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.",
4903
+ "description": "Indicates whether the dialog contains content that has not been viewed or opened by the user yet.",
4896
4904
  "type": "boolean",
4897
- "x-deprecatedMessage": "Use SeenSinceLastContentUpdate and EndUserContext.SystemLabels instead"
4905
+ "x-deprecatedMessage": "Use IsContentSeen instead. See the new field\u0027s description for an explanation of the new behavior."
4898
4906
  },
4899
4907
  "id": {
4900
4908
  "description": "The unique identifier for the dialog in UUIDv7 format.",
@@ -4911,6 +4919,10 @@
4911
4919
  "description": "Indicates if this dialog is intended for API consumption only and should not be shown in frontends aimed at humans.",
4912
4920
  "type": "boolean"
4913
4921
  },
4922
+ "isContentSeen": {
4923
+ "description": "A dialog is considered seen if\n- it has been retrieved by a user, since its last content update, and\n- there is no SystemLabels MarkedAsUnopened",
4924
+ "type": "boolean"
4925
+ },
4914
4926
  "org": {
4915
4927
  "description": "The service owner code representing the organization (service owner) related to this dialog.",
4916
4928
  "example": "ske",
@@ -6062,9 +6074,9 @@
6062
6074
  },
6063
6075
  "hasUnopenedContent": {
6064
6076
  "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.",
6077
+ "description": "Indicates whether the dialog contains content that has not been viewed or opened by the user yet.",
6066
6078
  "type": "boolean",
6067
- "x-deprecatedMessage": "Use SeenSinceLastContentUpdate and EndUserContext.SystemLabels instead"
6079
+ "x-deprecatedMessage": "Use IsContentSeen instead. See the new field\u0027s description for an explanation of the new behavior."
6068
6080
  },
6069
6081
  "id": {
6070
6082
  "description": "The unique identifier for the dialog in UUIDv7 format.",
@@ -6076,6 +6088,10 @@
6076
6088
  "description": "Indicates if this dialog is intended for API consumption only and should not be shown in frontends aimed at humans.",
6077
6089
  "type": "boolean"
6078
6090
  },
6091
+ "isContentSeen": {
6092
+ "description": "A dialog is considered seen if\n- it has been retrieved by a user, since its last content update, and\n- there is no SystemLabels MarkedAsUnopened",
6093
+ "type": "boolean"
6094
+ },
6079
6095
  "latestActivity": {
6080
6096
  "description": "The latest entry in the dialog\u0027s activity log.",
6081
6097
  "nullable": true,