@supernova-studio/model 0.59.15 → 0.59.17
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 +301 -712
- package/dist/index.d.ts +301 -712
- package/dist/index.js +13 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/dsm/import/figma-frames.ts +3 -9
- package/src/dsm/import/support/import-context.ts +1 -1
- package/src/export/export-destinations.ts +11 -0
package/package.json
CHANGED
|
@@ -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
|
-
> =
|
|
13
|
+
> = FigmaFileStructureNodeBase.extend({
|
|
20
14
|
children: z.lazy(() => FigmaFileStructureNodeImportModel.array()),
|
|
21
15
|
});
|
|
22
16
|
|
|
23
|
-
type FigmaFileStructureNodeImportModelBaseInput = z.input<typeof
|
|
17
|
+
type FigmaFileStructureNodeImportModelBaseInput = z.input<typeof FigmaFileStructureNodeBase> & {
|
|
24
18
|
children: FigmaFileStructureNodeImportModelBaseInput[];
|
|
25
19
|
};
|
|
26
20
|
|
|
27
|
-
export type FigmaFileStructureNodeImportModel = z.infer<typeof
|
|
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()
|
|
13
|
+
designSystemId: z.string(),
|
|
14
14
|
});
|
|
15
15
|
|
|
16
16
|
export type ImportFunctionInput = z.infer<typeof ImportFunctionInput>;
|
|
@@ -117,6 +117,16 @@ export const ExportDestinationsMap = z.object({
|
|
|
117
117
|
destinationBitbucket: ExporterDestinationBitbucket.optional(),
|
|
118
118
|
});
|
|
119
119
|
|
|
120
|
+
export const ExportDestinationsMapUpdate = z.object({
|
|
121
|
+
webhookUrl: z.string().nullish(),
|
|
122
|
+
destinationSnDocs: ExporterDestinationDocs.nullish(),
|
|
123
|
+
destinationS3: ExporterDestinationS3.nullish(),
|
|
124
|
+
destinationGithub: ExporterDestinationGithub.nullish(),
|
|
125
|
+
destinationAzure: ExporterDestinationAzure.nullish(),
|
|
126
|
+
destinationGitlab: ExporterDestinationGitlab.nullish(),
|
|
127
|
+
destinationBitbucket: ExporterDestinationBitbucket.nullish(),
|
|
128
|
+
});
|
|
129
|
+
|
|
120
130
|
export type ExportJobDocumentationChanges = z.infer<typeof ExportJobDocumentationChanges>;
|
|
121
131
|
export type ExporterDestinationDocs = z.infer<typeof ExporterDestinationDocs>;
|
|
122
132
|
export type ExporterDestinationS3 = z.infer<typeof ExporterDestinationS3>;
|
|
@@ -125,3 +135,4 @@ export type ExporterDestinationAzure = z.infer<typeof ExporterDestinationAzure>;
|
|
|
125
135
|
export type ExporterDestinationGitlab = z.infer<typeof ExporterDestinationGitlab>;
|
|
126
136
|
export type ExporterDestinationBitbucket = z.infer<typeof ExporterDestinationBitbucket>;
|
|
127
137
|
export type ExportDestinationsMap = z.infer<typeof ExportDestinationsMap>;
|
|
138
|
+
export type ExportDestinationsMapUpdate = z.infer<typeof ExportDestinationsMapUpdate>;
|