@supernova-studio/client 0.59.5 → 0.59.6

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.5",
3
+ "version": "0.59.6",
4
4
  "description": "Supernova Data Models",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/index.js",
@@ -22,13 +22,19 @@ const PropertyDefinitionBase = z.object({
22
22
  key: z.string(),
23
23
  title: z.string(),
24
24
  description: z.string(),
25
+ category: z.string().optional(),
26
+ dependsOn: z.record(z.boolean()).optional(),
25
27
  });
26
28
 
27
29
  export type DTOPropertyDefinitionBase = z.infer<typeof PropertyDefinitionBase>;
30
+ export const DTOExporterPropertyDefinitionEnumOption = z.object({
31
+ label: z.string(),
32
+ description: z.string(),
33
+ });
28
34
 
29
35
  export const DTOExporterPropertyDefinitionEnum = PropertyDefinitionBase.extend({
30
36
  type: z.literal(DTOExporterPropertyType.Enum.Enum),
31
- options: z.string().array(),
37
+ options: z.record(DTOExporterPropertyDefinitionEnumOption),
32
38
  default: z.string(),
33
39
  });
34
40
 
@@ -88,6 +94,7 @@ export type DTOExporterPropertyDefinitionNumber = z.infer<typeof DTOExporterProp
88
94
  export type DTOExporterPropertyDefinitionArray = z.infer<typeof DTOExporterPropertyDefinitionArray>;
89
95
  export type DTOExporterPropertyDefinitionObject = z.infer<typeof DTOExporterPropertyDefinitionObject>;
90
96
  export type DTOExporterPropertyDefinition = z.infer<typeof DTOExporterPropertyDefinition>;
97
+ export type DTOExporterPropertyDefinitionEnumOption = z.infer<typeof DTOExporterPropertyDefinitionEnumOption>;
91
98
  export type DTOExporterPropertyDefinitionsResponse = z.infer<typeof DTOExporterPropertyDefinitionsResponse>;
92
99
 
93
100
  //