@supernova-studio/model 0.59.15 → 0.59.16

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.15",
3
+ "version": "0.59.16",
4
4
  "description": "Supernova Data Models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,30 +1,24 @@
1
1
  import { ZodTypeDef, z } from "zod";
2
2
  import { FigmaFileStructureNodeBase, FigmaFileStructureOrigin, FigmaFileStructureStatistics } from "../elements";
3
3
  import { ImportModelBase, ImportModelInputBase } from "./base";
4
- import { FigmaPngRenderImportModel, FigmaSvgRenderImportModel } from "./image";
5
4
 
6
5
  //
7
6
  // Nodes Import Model
8
7
  //
9
8
 
10
- const FigmaFileStructureNodeImportModelBase = FigmaFileStructureNodeBase.extend({
11
- png: FigmaPngRenderImportModel,
12
- svg: FigmaSvgRenderImportModel,
13
- });
14
-
15
9
  export const FigmaFileStructureNodeImportModel: z.ZodType<
16
10
  FigmaFileStructureNodeImportModel,
17
11
  ZodTypeDef,
18
12
  FigmaFileStructureNodeImportModelBaseInput
19
- > = FigmaFileStructureNodeImportModelBase.extend({
13
+ > = FigmaFileStructureNodeBase.extend({
20
14
  children: z.lazy(() => FigmaFileStructureNodeImportModel.array()),
21
15
  });
22
16
 
23
- type FigmaFileStructureNodeImportModelBaseInput = z.input<typeof FigmaFileStructureNodeImportModelBase> & {
17
+ type FigmaFileStructureNodeImportModelBaseInput = z.input<typeof FigmaFileStructureNodeBase> & {
24
18
  children: FigmaFileStructureNodeImportModelBaseInput[];
25
19
  };
26
20
 
27
- export type FigmaFileStructureNodeImportModel = z.infer<typeof FigmaFileStructureNodeImportModelBase> & {
21
+ export type FigmaFileStructureNodeImportModel = z.infer<typeof FigmaFileStructureNodeBase> & {
28
22
  children: FigmaFileStructureNodeImportModel[];
29
23
  };
30
24
 
@@ -10,7 +10,7 @@ import { FigmaFileAccessData, FigmaFileDownloadScope } from "./figma-files";
10
10
  export const ImportFunctionInput = z.object({
11
11
  importJobId: z.string(),
12
12
  importContextId: z.string(),
13
- designSystemId: z.string().optional(),
13
+ designSystemId: z.string(),
14
14
  });
15
15
 
16
16
  export type ImportFunctionInput = z.infer<typeof ImportFunctionInput>;