@supernova-studio/model 0.59.4 → 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/model",
3
- "version": "0.59.4",
3
+ "version": "0.59.6",
4
4
  "description": "Supernova Data Models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -22,11 +22,18 @@ 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(),
27
+ });
28
+
29
+ export const ExporterPropertyDefinitionEnumOption = z.object({
30
+ label: z.string(),
31
+ description: z.string(),
25
32
  });
26
33
 
27
34
  export const ExporterPropertyDefinitionEnum = PropertyDefinitionBase.extend({
28
35
  type: z.literal(ExporterPropertyType.Enum.Enum),
29
- options: z.string().array(),
36
+ options: z.record(ExporterPropertyDefinitionEnumOption),
30
37
  default: z.string(),
31
38
  });
32
39
 
@@ -82,6 +89,7 @@ export type ExporterPropertyDefinitionNumber = z.infer<typeof ExporterPropertyDe
82
89
  export type ExporterPropertyDefinitionArray = z.infer<typeof ExporterPropertyDefinitionArray>;
83
90
  export type ExporterPropertyDefinitionObject = z.infer<typeof ExporterPropertyDefinitionObject>;
84
91
  export type ExporterPropertyDefinition = z.infer<typeof ExporterPropertyDefinition>;
92
+ export type ExporterPropertyDefinitionEnumOption = z.infer<typeof ExporterPropertyDefinitionEnumOption>;
85
93
  //
86
94
  // Value
87
95
  //