@ndla/types-backend 1.0.149 → 1.0.150

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.
@@ -2358,7 +2358,7 @@ export type components = {
2358
2358
  * @description If specified, set the id to this value. Must start with urn:resourcetype: and be a valid URI. If omitted, an id will be assigned automatically.
2359
2359
  * @example urn:resourcetype:1
2360
2360
  */
2361
- id: string;
2361
+ id: string | null;
2362
2362
  /**
2363
2363
  * @description The name of the resource type
2364
2364
  * @example Lecture
@@ -2564,7 +2564,7 @@ export type components = {
2564
2564
  * Format: date-time
2565
2565
  * @description Timestamp for when version was archived
2566
2566
  */
2567
- archived?: string;
2567
+ archived?: string | null;
2568
2568
  /**
2569
2569
  * Format: date-time
2570
2570
  * @description Timestamp for when version was created
@@ -2585,26 +2585,42 @@ export type components = {
2585
2585
  * Format: date-time
2586
2586
  * @description Timestamp for when version was published
2587
2587
  */
2588
- published?: string;
2588
+ published?: string | null;
2589
2589
  /** @example BETA */
2590
2590
  versionType: components["schemas"]["VersionType"];
2591
2591
  };
2592
2592
  /** @description The new version */
2593
- VersionPostPut: {
2593
+ VersionPost: {
2594
2594
  /**
2595
2595
  * Format: uri
2596
- * @description If specified, set the id to this value. Must start with urn:version: and be a valid URI. If ommitted, an id will be assigned automatically.
2596
+ * @description If specified, set the id to this value. Must start with urn:version: and be a valid URI. If omitted, an id will be assigned automatically.
2597
2597
  * @example urn:version:1
2598
2598
  */
2599
- id?: string;
2600
- /** @description If specified, set the locked property to this value. */
2601
- locked?: boolean;
2599
+ id?: string | null;
2600
+ /** @description If specified, set the locked property to this value */
2601
+ locked?: boolean | null;
2602
2602
  /**
2603
- * @description If specified, set the name to this value.
2603
+ * @description The name of the version
2604
2604
  * @example Beta 2022
2605
2605
  */
2606
2606
  name: string;
2607
2607
  };
2608
+ /** @description The updated version. */
2609
+ VersionPut: {
2610
+ /**
2611
+ * Format: uri
2612
+ * @description If specified, set the id to this value. Must start with urn:version: and be a valid URI. If omitted, an id will be assigned automatically.
2613
+ * @example urn:version:1
2614
+ */
2615
+ id?: string | null;
2616
+ /** @description If specified, set the locked property to this value */
2617
+ locked?: boolean | null;
2618
+ /**
2619
+ * @description If specified, set the name to this value.
2620
+ * @example Beta 2022
2621
+ */
2622
+ name?: string | null;
2623
+ };
2608
2624
  /** @enum {string} */
2609
2625
  VersionType: "BETA" | "PUBLISHED" | "ARCHIVED";
2610
2626
  };
@@ -2655,7 +2671,8 @@ export type Translation = components['schemas']['Translation'];
2655
2671
  export type TranslationPUT = components['schemas']['TranslationPUT'];
2656
2672
  export type UrlMapping = components['schemas']['UrlMapping'];
2657
2673
  export type Version = components['schemas']['Version'];
2658
- export type VersionPostPut = components['schemas']['VersionPostPut'];
2674
+ export type VersionPost = components['schemas']['VersionPost'];
2675
+ export type VersionPut = components['schemas']['VersionPut'];
2659
2676
  export type VersionType = components['schemas']['VersionType'];
2660
2677
  export type ParameterVersionHash = components['parameters']['versionHash'];
2661
2678
  export type HeaderVersionHash = components['headers']['versionHash'];
@@ -8132,7 +8149,7 @@ export interface operations {
8132
8149
  };
8133
8150
  requestBody: {
8134
8151
  content: {
8135
- "application/json": components["schemas"]["VersionPostPut"];
8152
+ "application/json": components["schemas"]["VersionPost"];
8136
8153
  };
8137
8154
  };
8138
8155
  responses: {
@@ -8193,7 +8210,7 @@ export interface operations {
8193
8210
  };
8194
8211
  requestBody: {
8195
8212
  content: {
8196
- "application/json": components["schemas"]["VersionPostPut"];
8213
+ "application/json": components["schemas"]["VersionPost"];
8197
8214
  };
8198
8215
  };
8199
8216
  responses: {
@@ -8244,7 +8261,7 @@ export interface operations {
8244
8261
  };
8245
8262
  requestBody: {
8246
8263
  content: {
8247
- "application/json": components["schemas"]["VersionPostPut"];
8264
+ "application/json": components["schemas"]["VersionPut"];
8248
8265
  };
8249
8266
  };
8250
8267
  responses: {
package/package.json CHANGED
@@ -33,6 +33,6 @@
33
33
  "tsx": "^4.21.0",
34
34
  "typescript": "^5.9.3"
35
35
  },
36
- "version": "1.0.149",
36
+ "version": "1.0.150",
37
37
  "packageManager": "yarn@4.10.3"
38
38
  }