@digdir/dialogporten-schema 1.61.1 → 1.62.1-0ba6a7c

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/gql-to-js.sh ADDED
@@ -0,0 +1,19 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ INPUT_FILE="schema.verified.graphql"
5
+ OUTPUT_FILE="src/index.js"
6
+ VAR_NAME="schema_verified_graphql"
7
+
8
+ if [[ ! -f "$INPUT_FILE" ]]; then
9
+ echo "Error: $INPUT_FILE not found!"
10
+ exit 1
11
+ fi
12
+
13
+ CLEANED_SCHEMA=$(sed '1s/^\xEF\xBB\xBF//' "$INPUT_FILE" | sed "s/\`/'/g")
14
+
15
+ {
16
+ printf "export const %s = \`" "$VAR_NAME"
17
+ printf "%s" "$CLEANED_SCHEMA"
18
+ printf "\`"
19
+ } > "$OUTPUT_FILE"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digdir/dialogporten-schema",
3
- "version": "1.61.1",
3
+ "version": "1.62.1-0ba6a7c",
4
4
  "description": "GraphQl schema and OpenAPI spec for Dialogporten",
5
5
  "engines": {
6
6
  "node": "22"
@@ -10,16 +10,6 @@
10
10
  "repository": {
11
11
  "url": "git+https://github.com/Altinn/dialogporten.git"
12
12
  },
13
- "scripts": {
14
- "build": "./gql-to-js.js",
15
- "prepublishOnly": "npm run build",
16
- "test": "npm run build && vitest run --test-timeout=10000"
17
- },
18
- "devDependencies": {
19
- "vitest": "3.0.9",
20
- "glob": "11.0.1",
21
- "graphql-tag": "2.12.6"
22
- },
23
13
  "license": "ISC",
24
14
  "type": "module"
25
15
  }
@@ -369,6 +369,10 @@ enum ActivityType {
369
369
  FORM_SUBMITTED
370
370
  "Indicates that a form associated with the dialog has been saved."
371
371
  FORM_SAVED
372
+ "Indicates that a correspondence has been opened."
373
+ CORRESPONDENCE_OPENED
374
+ "Indicates that a correspondence has been confirmed."
375
+ CORRESPONDENCE_CONFIRMED
372
376
  }
373
377
 
374
378
  enum ActorType {
@@ -451,7 +455,7 @@ enum TransmissionType {
451
455
  REQUEST
452
456
  "Critical information about the process"
453
457
  ALERT
454
- "Information about a formal decision (\"resolution\")"
458
+ "Information about a formal decision ('resolution')"
455
459
  DECISION
456
460
  "A normal submission of some information\/form"
457
461
  SUBMISSION
package/src/index.js CHANGED
@@ -369,6 +369,10 @@ enum ActivityType {
369
369
  FORM_SUBMITTED
370
370
  "Indicates that a form associated with the dialog has been saved."
371
371
  FORM_SAVED
372
+ "Indicates that a correspondence has been opened."
373
+ CORRESPONDENCE_OPENED
374
+ "Indicates that a correspondence has been confirmed."
375
+ CORRESPONDENCE_CONFIRMED
372
376
  }
373
377
 
374
378
  enum ActorType {
@@ -91,7 +91,9 @@
91
91
  "SentToSendIn",
92
92
  "SentToPayment",
93
93
  "FormSubmitted",
94
- "FormSaved"
94
+ "FormSaved",
95
+ "CorrespondenceOpened",
96
+ "CorrespondenceConfirmed"
95
97
  ],
96
98
  "type": "string",
97
99
  "x-enumNames": [
@@ -109,7 +111,9 @@
109
111
  "SentToSendIn",
110
112
  "SentToPayment",
111
113
  "FormSubmitted",
112
- "FormSaved"
114
+ "FormSaved",
115
+ "CorrespondenceOpened",
116
+ "CorrespondenceConfirmed"
113
117
  ]
114
118
  },
115
119
  "DialogsEntitiesTransmissions_DialogTransmissionType": {