@digdir/dialogporten-schema 1.0.11 → 1.7.1-6490625

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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digdir/dialogporten-schema",
3
- "version": "1.0.11",
3
+ "version": "1.7.1-6490625",
4
4
  "description": "GraphQl schema and OpenAPI spec for Dialogporten",
5
5
  "author": "DigDir",
6
6
  "repository": {
@@ -115,7 +115,7 @@ type Element {
115
115
  type ElementUrl {
116
116
  id: UUID!
117
117
  url: URL!
118
- mimeType: String
118
+ mediaType: String
119
119
  consumerType: ElementUrlConsumer!
120
120
  }
121
121
 
@@ -266,7 +266,7 @@
266
266
  {
267
267
  "Id": "858177cb-8584-4d10-a086-3a5defa7a6c3",
268
268
  "Url": "http://example.com/some-url",
269
- "MimeType": "application/json",
269
+ "MediaType": "application/json",
270
270
  "ConsumerType": 0
271
271
  }
272
272
  ]
@@ -2604,7 +2604,7 @@
2604
2604
  "type": "string",
2605
2605
  "format": "uri"
2606
2606
  },
2607
- "mimeType": {
2607
+ "mediaType": {
2608
2608
  "type": "string",
2609
2609
  "nullable": true
2610
2610
  },
@@ -3159,7 +3159,7 @@
3159
3159
  "type": "string",
3160
3160
  "format": "uri"
3161
3161
  },
3162
- "mimeType": {
3162
+ "mediaType": {
3163
3163
  "type": "string",
3164
3164
  "nullable": true
3165
3165
  },
@@ -3504,7 +3504,7 @@
3504
3504
  "type": "string",
3505
3505
  "format": "uri"
3506
3506
  },
3507
- "mimeType": {
3507
+ "mediaType": {
3508
3508
  "type": "string",
3509
3509
  "nullable": true
3510
3510
  },
@@ -4225,7 +4225,7 @@
4225
4225
  "type": "string",
4226
4226
  "format": "uri"
4227
4227
  },
4228
- "mimeType": {
4228
+ "mediaType": {
4229
4229
  "type": "string",
4230
4230
  "nullable": true
4231
4231
  },
@@ -4474,4 +4474,4 @@
4474
4474
  }
4475
4475
  }
4476
4476
  }
4477
- }
4477
+ }