@supernova-studio/model 0.59.18 → 0.59.20

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supernova-studio/model",
3
- "version": "0.59.18",
3
+ "version": "0.59.20",
4
4
  "description": "Supernova Data Models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -7,7 +7,7 @@ export const ExporterPropertyImageValue = z.object({
7
7
  assetUrl: z.string().optional(),
8
8
  });
9
9
 
10
- export const ExporterPropertyValue = z.object({
10
+ export const ExporterConfigurationPropertyValue = z.object({
11
11
  key: z.string(),
12
12
  value: z.union([
13
13
  z.number(),
@@ -23,9 +23,9 @@ export const ExporterPropertyValuesCollection = z.object({
23
23
  id: z.string(),
24
24
  designSystemId: z.string(),
25
25
  exporterId: z.string(),
26
- values: z.array(ExporterPropertyValue),
26
+ values: z.array(ExporterConfigurationPropertyValue),
27
27
  });
28
28
 
29
29
  export type ExporterPropertyImageValue = z.infer<typeof ExporterPropertyImageValue>;
30
- export type ExporterPropertyValue = z.infer<typeof ExporterPropertyValue>;
30
+ export type ExporterConfigurationPropertyValue = z.infer<typeof ExporterConfigurationPropertyValue>;
31
31
  export type ExporterPropertyValuesCollection = z.infer<typeof ExporterPropertyValuesCollection>;
@@ -8,10 +8,10 @@ const PrimitiveValue = z.number().or(z.boolean()).or(z.string());
8
8
  const ArrayValue = z.array(z.string());
9
9
  const ObjectValue = z.record(z.string());
10
10
 
11
- export const ExporterPropertyDefinitionValue = PrimitiveValue.or(ArrayValue).or(ObjectValue);
11
+ export const ExporterPropertyValue = PrimitiveValue.or(ArrayValue).or(ObjectValue);
12
12
  export const ExporterPropertyType = z.enum(["Enum", "Boolean", "String", "Number", "Array", "Object"]);
13
13
 
14
- export type ExporterPropertyDefinitionValue = z.infer<typeof ExporterPropertyDefinitionValue>;
14
+ export type ExporterPropertyDefinitionValue = z.infer<typeof ExporterPropertyValue>;
15
15
  export type ExporterPropertyType = z.infer<typeof ExporterPropertyType>;
16
16
 
17
17
  //
@@ -90,9 +90,10 @@ export type ExporterPropertyDefinitionArray = z.infer<typeof ExporterPropertyDef
90
90
  export type ExporterPropertyDefinitionObject = z.infer<typeof ExporterPropertyDefinitionObject>;
91
91
  export type ExporterPropertyDefinition = z.infer<typeof ExporterPropertyDefinition>;
92
92
  export type ExporterPropertyDefinitionEnumOption = z.infer<typeof ExporterPropertyDefinitionEnumOption>;
93
+
93
94
  //
94
95
  // Value
95
96
  //
96
97
 
97
- export const ExporterPropertyDefinitionValueMap = z.record(ExporterPropertyDefinitionValue);
98
- export type ExporterPropertyDefinitionValueMap = z.infer<typeof ExporterPropertyDefinitionValueMap>;
98
+ export const ExporterPropertyValueMap = z.record(ExporterPropertyValue);
99
+ export type ExporterPropertyValueMap = z.infer<typeof ExporterPropertyValueMap>;
@@ -1,8 +1,8 @@
1
1
  import { z } from "zod";
2
2
  import { PublishedDocEnvironment } from "../dsm";
3
3
  import { DbCreateInputOmit, DbUpdate, nullishToOptional } from "../helpers";
4
+ import { ExporterPropertyValueMap } from "./export-configuration";
4
5
  import { ExportDestinationsMap } from "./export-destinations";
5
- import { ExporterPropertyDefinitionValueMap } from "./export-configuration";
6
6
 
7
7
  //
8
8
  // Enums
@@ -90,7 +90,7 @@ export const ExportJob = z.object({
90
90
  status: ExportJobStatus,
91
91
  result: ExportJobResult.optional(),
92
92
  createdByUserId: z.string().optional(),
93
- exporterConfigurationProperties: ExporterPropertyDefinitionValueMap.optional(),
93
+ exporterPropertyValues: ExporterPropertyValueMap.optional(),
94
94
 
95
95
  // Destinations
96
96
  ...ExportDestinationsMap.shape,
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
- import { ExporterPropertyValue, PublishedDocEnvironment } from "../../dsm";
3
- import { ExporterPropertyDefinitionValueMap } from "../export-configuration";
2
+ import { ExporterConfigurationPropertyValue, PublishedDocEnvironment } from "../../dsm";
3
+ import { ExporterPropertyValueMap } from "../export-configuration";
4
4
 
5
5
  export const ExportJobDocumentationContext = z.object({
6
6
  isSingleVersionDocs: z.boolean(),
@@ -27,8 +27,8 @@ export const ExportJobContext = z.object({
27
27
 
28
28
  export const ExportJobExporterConfiguration = z.object({
29
29
  exporterPackageUrl: z.string(),
30
- exporterPropertyValues: ExporterPropertyValue.array(),
31
- exporterConfigurationProperties: ExporterPropertyDefinitionValueMap.optional(),
30
+ exporterPropertyValues: ExporterConfigurationPropertyValue.array(),
31
+ exporterPropertyValuesV2: ExporterPropertyValueMap.optional(),
32
32
  });
33
33
 
34
34
  export type ExportJobDocumentationContext = z.infer<typeof ExportJobDocumentationContext>;
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
+ import { ExporterPropertyValueMap } from "./export-configuration";
2
3
  import { ExportDestinationsMap } from "./export-destinations";
3
- import { ExporterPropertyDefinitionValueMap } from "./export-configuration";
4
4
 
5
5
  export const PipelineEventType = z.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
6
6
 
@@ -22,7 +22,7 @@ export const Pipeline = z.object({
22
22
  brandPersistentId: z.string().optional(),
23
23
  themePersistentId: z.string().optional(),
24
24
  themePersistentIds: z.string().array().optional(),
25
- exporterConfigurationProperties: ExporterPropertyDefinitionValueMap.optional(),
25
+ exporterPropertyValues: ExporterPropertyValueMap.optional(),
26
26
 
27
27
  // Destinations
28
28
  ...ExportDestinationsMap.shape,
@@ -49,8 +49,6 @@ export const RestoredDocumentationPage = z.object({
49
49
  pageParent: ElementGroup,
50
50
  pageContent: DocumentationPageContentData,
51
51
  contentHash: z.string(),
52
- snapshotId: z.string(),
53
- roomId: z.string().optional(),
54
52
  });
55
53
 
56
54
  export const RestoredDocumentationGroup = z.object({