@supernova-studio/client 0.59.19 → 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/client",
3
- "version": "0.59.19",
3
+ "version": "0.59.20",
4
4
  "description": "Supernova Data Models",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/index.js",
@@ -19,7 +19,7 @@ export function pipelineToDto(pipeline: Pipeline): DTOPipeline {
19
19
  destinationGithub: pipeline.destinationGithub,
20
20
  destinationGitlab: pipeline.destinationGitlab,
21
21
  destinationS3: pipeline.destinationS3,
22
- exporterConfigurationProperties: pipeline.exporterConfigurationProperties,
22
+ exporterPropertyValues: pipeline.exporterPropertyValues,
23
23
  webhookUrl: pipeline.webhookUrl,
24
24
  latestJobs: [],
25
25
  };
@@ -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 DTOExporterPropertyDefinitionValue = PrimitiveValue.or(ArrayValue).or(ObjectValue);
11
+ export const DTOExporterPropertyValue = PrimitiveValue.or(ArrayValue).or(ObjectValue);
12
12
  export const DTOExporterPropertyType = z.enum(["Enum", "Boolean", "String", "Number", "Array", "Object"]);
13
13
 
14
- export type DTOExporterPropertyDefinitionValue = z.infer<typeof DTOExporterPropertyDefinitionValue>;
14
+ export type DTOExporterPropertyDefinitionValue = z.infer<typeof DTOExporterPropertyValue>;
15
15
  export type DTOExporterPropertyType = z.infer<typeof DTOExporterPropertyType>;
16
16
 
17
17
  //
@@ -101,5 +101,5 @@ export type DTOExporterPropertyDefinitionsResponse = z.infer<typeof DTOExporterP
101
101
  // Value
102
102
  //
103
103
 
104
- export const DTOExporterPropertyDefinitionValueMap = z.record(DTOExporterPropertyDefinitionValue);
105
- export type DTOExporterPropertyDefinitionValueMap = z.infer<typeof DTOExporterPropertyDefinitionValueMap>;
104
+ export const DTOExporterPropertyValueMap = z.record(DTOExporterPropertyValue);
105
+ export type DTOExporterPropertyValueMap = z.infer<typeof DTOExporterPropertyValueMap>;
@@ -11,7 +11,7 @@ import {
11
11
  ObjectMeta,
12
12
  } from "@supernova-studio/model";
13
13
  import { z } from "zod";
14
- import { DTOExporterPropertyDefinitionValueMap } from "./exporter-property";
14
+ import { DTOExporterPropertyValueMap } from "./exporter-property";
15
15
 
16
16
  export const DTOExportJobCreatedBy = z.object({
17
17
  userId: z.string(),
@@ -71,7 +71,7 @@ export const DTOExportJob = z.object({
71
71
  themePersistentId: z.string().optional(),
72
72
  themePersistentIds: z.string().array().optional(),
73
73
 
74
- exporterConfigurationProperties: DTOExporterPropertyDefinitionValueMap.optional(),
74
+ exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
75
75
  });
76
76
 
77
77
  export const DTOExportJobResponse = z.object({
@@ -94,3 +94,20 @@ export type DTOExportJobDestinations = z.infer<typeof DTOExportJobDestinations>;
94
94
  export type DTOExportJobResult = z.infer<typeof DTOExportJobResult>;
95
95
  export type DTOExportJob = z.infer<typeof DTOExportJob>;
96
96
  export type DTOExportJobResponse = z.infer<typeof DTOExportJobResponse>;
97
+
98
+ //
99
+ // Write
100
+ //
101
+
102
+ export const DTOExportJobCreateInput = z.object({
103
+ designSystemId: z.string(),
104
+ designSystemVersionId: z.string(),
105
+ exporterId: z.string(),
106
+ brandId: z.string().optional(),
107
+ themeId: z.string().optional(),
108
+ themePersistentIds: z.string().array().optional(),
109
+ destinations: DTOExportJobDestinations,
110
+ exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
111
+ });
112
+
113
+ export type DTOExportJobCreateInput = z.infer<typeof DTOExportJobCreateInput>;
@@ -1,6 +1,6 @@
1
1
  import { ExportDestinationsMap, PipelineEventType } from "@supernova-studio/model";
2
2
  import { z } from "zod";
3
- import { DTOExporterPropertyDefinitionValueMap } from "./exporter-property";
3
+ import { DTOExporterPropertyValueMap } from "./exporter-property";
4
4
  import { DTOExportJob } from "./job";
5
5
 
6
6
  export const DTOPipelineListQuery = z.object({
@@ -22,7 +22,7 @@ export const DTOPipeline = z.object({
22
22
  themePersistentId: z.string().optional(),
23
23
  themePersistentIds: z.string().array().optional(),
24
24
 
25
- exporterConfigurationProperties: DTOExporterPropertyDefinitionValueMap.optional(),
25
+ exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
26
26
 
27
27
  ...ExportDestinationsMap.shape,
28
28
 
@@ -10,7 +10,7 @@ import {
10
10
  PipelineEventType,
11
11
  } from "@supernova-studio/model";
12
12
  import { z } from "zod";
13
- import { DTOExporterPropertyDefinitionValueMap } from "../../dto/export/exporter-property";
13
+ import { DTOExporterPropertyValueMap } from "../../dto/export/exporter-property";
14
14
 
15
15
  export const DTOPipelineCreateBody = z.object({
16
16
  name: z.string(),
@@ -22,7 +22,7 @@ export const DTOPipelineCreateBody = z.object({
22
22
  themePersistentId: z.string().optional(),
23
23
  themePersistentIds: z.string().array().optional(),
24
24
 
25
- exporterConfigurationProperties: DTOExporterPropertyDefinitionValueMap.optional(),
25
+ exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
26
26
 
27
27
  destination: PipelineDestinationType.optional(),
28
28
  gitQuery: GitObjectsQuery,
@@ -47,7 +47,7 @@ export const DTOPipelineUpdateBody = z.object({
47
47
  themePersistentId: z.string().optional(),
48
48
  themePersistentIds: z.string().array().optional(),
49
49
 
50
- exporterConfigurationProperties: DTOExporterPropertyDefinitionValueMap.optional(),
50
+ exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
51
51
 
52
52
  destination: PipelineDestinationType.optional(),
53
53
  gitQuery: GitObjectsQuery.optional(),