@digdir/dialogporten-schema 1.0.11 → 1.7.1-18a1f6e
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/README.md +19 -0
- package/package.json +1 -1
- package/schema.verified.graphql +3 -4
- package/swagger.verified.json +24 -61
package/README.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Dialogporten Schema Package
|
|
2
|
+
|
|
3
|
+
This npm package contains both the Swagger and GraphQL schema definitions for the Dialogporten API. It is designed to provide developers with the necessary specifications to interact with the Dialogporten API effectively.
|
|
4
|
+
|
|
5
|
+
## Description
|
|
6
|
+
This package includes:
|
|
7
|
+
- **GraphQL Schema (schema.verified.graphql)**: Defines the types, queries, and mutations available in the Dialogporten GraphQL API.
|
|
8
|
+
- **OpenAPI Specification ((swagger.verified.json))**: Provides a detailed description of the RESTful endpoints, parameters, and models used in the Dialogporten API.
|
|
9
|
+
|
|
10
|
+
## Usage
|
|
11
|
+
To use this package, include it in your project dependencies using npm:
|
|
12
|
+
To install the Dialogporten Schema Package in your JavaScript project, follow these steps:
|
|
13
|
+
|
|
14
|
+
1. Ensure you have npm installed. You can check by running `npm -v` in your terminal. If npm is not installed, download and install Node.js from [nodejs.org](https://nodejs.org/), which includes npm.
|
|
15
|
+
|
|
16
|
+
2. Add the Dialogporten Schema Package to your project dependencies. Run the following command in your project directory:
|
|
17
|
+
```bash
|
|
18
|
+
npm install @digdir/dialogporten-schema
|
|
19
|
+
```
|
package/package.json
CHANGED
package/schema.verified.graphql
CHANGED
|
@@ -17,7 +17,7 @@ type Activity {
|
|
|
17
17
|
type: ActivityType!
|
|
18
18
|
relatedActivityId: UUID
|
|
19
19
|
dialogElementId: UUID
|
|
20
|
-
performedBy:
|
|
20
|
+
performedBy: String
|
|
21
21
|
description: [Localization!]!
|
|
22
22
|
}
|
|
23
23
|
|
|
@@ -115,7 +115,7 @@ type Element {
|
|
|
115
115
|
type ElementUrl {
|
|
116
116
|
id: UUID!
|
|
117
117
|
url: URL!
|
|
118
|
-
|
|
118
|
+
mediaType: String
|
|
119
119
|
consumerType: ElementUrlConsumer!
|
|
120
120
|
}
|
|
121
121
|
|
|
@@ -125,8 +125,7 @@ type GuiAction {
|
|
|
125
125
|
url: URL!
|
|
126
126
|
authorizationAttribute: String
|
|
127
127
|
isAuthorized: Boolean!
|
|
128
|
-
|
|
129
|
-
isDeleteAction: Boolean!
|
|
128
|
+
isDeleteDialogAction: Boolean!
|
|
130
129
|
priority: GuiActionPriority!
|
|
131
130
|
title: [Localization!]!
|
|
132
131
|
}
|
package/swagger.verified.json
CHANGED
|
@@ -266,7 +266,7 @@
|
|
|
266
266
|
{
|
|
267
267
|
"Id": "858177cb-8584-4d10-a086-3a5defa7a6c3",
|
|
268
268
|
"Url": "http://example.com/some-url",
|
|
269
|
-
"
|
|
269
|
+
"MediaType": "application/json",
|
|
270
270
|
"ConsumerType": 0
|
|
271
271
|
}
|
|
272
272
|
]
|
|
@@ -278,8 +278,7 @@
|
|
|
278
278
|
"Action": "submit",
|
|
279
279
|
"Url": "https://example.com/some-url",
|
|
280
280
|
"AuthorizationAttribute": null,
|
|
281
|
-
"
|
|
282
|
-
"IsDeleteAction": false,
|
|
281
|
+
"IsDeleteDialogAction": false,
|
|
283
282
|
"Priority": 1,
|
|
284
283
|
"Title": [
|
|
285
284
|
{
|
|
@@ -322,16 +321,7 @@
|
|
|
322
321
|
"Type": 3,
|
|
323
322
|
"RelatedActivityId": null,
|
|
324
323
|
"DialogElementId": null,
|
|
325
|
-
"PerformedBy":
|
|
326
|
-
{
|
|
327
|
-
"Value": "Some performer",
|
|
328
|
-
"CultureCode": "en-us"
|
|
329
|
-
},
|
|
330
|
-
{
|
|
331
|
-
"Value": "En utfører",
|
|
332
|
-
"CultureCode": "nb-no"
|
|
333
|
-
}
|
|
334
|
-
],
|
|
324
|
+
"PerformedBy": "Some performed",
|
|
335
325
|
"Description": [
|
|
336
326
|
{
|
|
337
327
|
"Value": "Some description",
|
|
@@ -2604,7 +2594,7 @@
|
|
|
2604
2594
|
"type": "string",
|
|
2605
2595
|
"format": "uri"
|
|
2606
2596
|
},
|
|
2607
|
-
"
|
|
2597
|
+
"mediaType": {
|
|
2608
2598
|
"type": "string",
|
|
2609
2599
|
"nullable": true
|
|
2610
2600
|
},
|
|
@@ -2645,10 +2635,7 @@
|
|
|
2645
2635
|
"type": "string",
|
|
2646
2636
|
"nullable": true
|
|
2647
2637
|
},
|
|
2648
|
-
"
|
|
2649
|
-
"type": "boolean"
|
|
2650
|
-
},
|
|
2651
|
-
"isDeleteAction": {
|
|
2638
|
+
"isDeleteDialogAction": {
|
|
2652
2639
|
"type": "boolean"
|
|
2653
2640
|
},
|
|
2654
2641
|
"priority": {
|
|
@@ -2809,10 +2796,8 @@
|
|
|
2809
2796
|
"nullable": true
|
|
2810
2797
|
},
|
|
2811
2798
|
"performedBy": {
|
|
2812
|
-
"type": "
|
|
2813
|
-
"
|
|
2814
|
-
"$ref": "#/components/schemas/LocalizationDto"
|
|
2815
|
-
}
|
|
2799
|
+
"type": "string",
|
|
2800
|
+
"nullable": true
|
|
2816
2801
|
},
|
|
2817
2802
|
"description": {
|
|
2818
2803
|
"type": "array",
|
|
@@ -3159,7 +3144,7 @@
|
|
|
3159
3144
|
"type": "string",
|
|
3160
3145
|
"format": "uri"
|
|
3161
3146
|
},
|
|
3162
|
-
"
|
|
3147
|
+
"mediaType": {
|
|
3163
3148
|
"type": "string",
|
|
3164
3149
|
"nullable": true
|
|
3165
3150
|
},
|
|
@@ -3187,10 +3172,7 @@
|
|
|
3187
3172
|
"type": "string",
|
|
3188
3173
|
"nullable": true
|
|
3189
3174
|
},
|
|
3190
|
-
"
|
|
3191
|
-
"type": "boolean"
|
|
3192
|
-
},
|
|
3193
|
-
"isDeleteAction": {
|
|
3175
|
+
"isDeleteDialogAction": {
|
|
3194
3176
|
"type": "boolean"
|
|
3195
3177
|
},
|
|
3196
3178
|
"priority": {
|
|
@@ -3308,11 +3290,8 @@
|
|
|
3308
3290
|
"nullable": true
|
|
3309
3291
|
},
|
|
3310
3292
|
"performedBy": {
|
|
3311
|
-
"type": "
|
|
3312
|
-
"nullable": true
|
|
3313
|
-
"items": {
|
|
3314
|
-
"$ref": "#/components/schemas/LocalizationDto"
|
|
3315
|
-
}
|
|
3293
|
+
"type": "string",
|
|
3294
|
+
"nullable": true
|
|
3316
3295
|
},
|
|
3317
3296
|
"description": {
|
|
3318
3297
|
"type": "array",
|
|
@@ -3504,7 +3483,7 @@
|
|
|
3504
3483
|
"type": "string",
|
|
3505
3484
|
"format": "uri"
|
|
3506
3485
|
},
|
|
3507
|
-
"
|
|
3486
|
+
"mediaType": {
|
|
3508
3487
|
"type": "string",
|
|
3509
3488
|
"nullable": true
|
|
3510
3489
|
},
|
|
@@ -3528,10 +3507,7 @@
|
|
|
3528
3507
|
"type": "string",
|
|
3529
3508
|
"nullable": true
|
|
3530
3509
|
},
|
|
3531
|
-
"
|
|
3532
|
-
"type": "boolean"
|
|
3533
|
-
},
|
|
3534
|
-
"isDeleteAction": {
|
|
3510
|
+
"isDeleteDialogAction": {
|
|
3535
3511
|
"type": "boolean"
|
|
3536
3512
|
},
|
|
3537
3513
|
"priority": {
|
|
@@ -3642,10 +3618,8 @@
|
|
|
3642
3618
|
"nullable": true
|
|
3643
3619
|
},
|
|
3644
3620
|
"performedBy": {
|
|
3645
|
-
"type": "
|
|
3646
|
-
"
|
|
3647
|
-
"$ref": "#/components/schemas/LocalizationDto"
|
|
3648
|
-
}
|
|
3621
|
+
"type": "string",
|
|
3622
|
+
"nullable": true
|
|
3649
3623
|
},
|
|
3650
3624
|
"description": {
|
|
3651
3625
|
"type": "array",
|
|
@@ -3761,10 +3735,8 @@
|
|
|
3761
3735
|
"nullable": true
|
|
3762
3736
|
},
|
|
3763
3737
|
"performedBy": {
|
|
3764
|
-
"type": "
|
|
3765
|
-
"
|
|
3766
|
-
"$ref": "#/components/schemas/LocalizationDto"
|
|
3767
|
-
}
|
|
3738
|
+
"type": "string",
|
|
3739
|
+
"nullable": true
|
|
3768
3740
|
},
|
|
3769
3741
|
"description": {
|
|
3770
3742
|
"type": "array",
|
|
@@ -3997,11 +3969,8 @@
|
|
|
3997
3969
|
"nullable": true
|
|
3998
3970
|
},
|
|
3999
3971
|
"performedBy": {
|
|
4000
|
-
"type": "
|
|
4001
|
-
"nullable": true
|
|
4002
|
-
"items": {
|
|
4003
|
-
"$ref": "#/components/schemas/LocalizationDto"
|
|
4004
|
-
}
|
|
3972
|
+
"type": "string",
|
|
3973
|
+
"nullable": true
|
|
4005
3974
|
},
|
|
4006
3975
|
"description": {
|
|
4007
3976
|
"type": "array",
|
|
@@ -4225,7 +4194,7 @@
|
|
|
4225
4194
|
"type": "string",
|
|
4226
4195
|
"format": "uri"
|
|
4227
4196
|
},
|
|
4228
|
-
"
|
|
4197
|
+
"mediaType": {
|
|
4229
4198
|
"type": "string",
|
|
4230
4199
|
"nullable": true
|
|
4231
4200
|
},
|
|
@@ -4256,10 +4225,7 @@
|
|
|
4256
4225
|
"isAuthorized": {
|
|
4257
4226
|
"type": "boolean"
|
|
4258
4227
|
},
|
|
4259
|
-
"
|
|
4260
|
-
"type": "boolean"
|
|
4261
|
-
},
|
|
4262
|
-
"isDeleteAction": {
|
|
4228
|
+
"isDeleteDialogAction": {
|
|
4263
4229
|
"type": "boolean"
|
|
4264
4230
|
},
|
|
4265
4231
|
"priority": {
|
|
@@ -4380,11 +4346,8 @@
|
|
|
4380
4346
|
"nullable": true
|
|
4381
4347
|
},
|
|
4382
4348
|
"performedBy": {
|
|
4383
|
-
"type": "
|
|
4384
|
-
"nullable": true
|
|
4385
|
-
"items": {
|
|
4386
|
-
"$ref": "#/components/schemas/LocalizationDto"
|
|
4387
|
-
}
|
|
4349
|
+
"type": "string",
|
|
4350
|
+
"nullable": true
|
|
4388
4351
|
},
|
|
4389
4352
|
"description": {
|
|
4390
4353
|
"type": "array",
|
|
@@ -4474,4 +4437,4 @@
|
|
|
4474
4437
|
}
|
|
4475
4438
|
}
|
|
4476
4439
|
}
|
|
4477
|
-
}
|
|
4440
|
+
}
|