@supernova-studio/model 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/dist/index.d.mts +1592 -99
- package/dist/index.d.ts +1592 -99
- package/dist/index.js +9 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/export/export-configuration.ts +9 -1
package/package.json
CHANGED
|
@@ -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.
|
|
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
|
//
|