@digdir/dialogporten-schema 1.62.0 → 1.62.2
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 +19 -0
- package/package.json +1 -11
- package/schema.verified.graphql +1 -1
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.62.
|
|
3
|
+
"version": "1.62.2",
|
|
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
|
}
|
package/schema.verified.graphql
CHANGED
|
@@ -455,7 +455,7 @@ enum TransmissionType {
|
|
|
455
455
|
REQUEST
|
|
456
456
|
"Critical information about the process"
|
|
457
457
|
ALERT
|
|
458
|
-
"Information about a formal decision (
|
|
458
|
+
"Information about a formal decision ('resolution')"
|
|
459
459
|
DECISION
|
|
460
460
|
"A normal submission of some information\/form"
|
|
461
461
|
SUBMISSION
|