@supernova-studio/client 0.22.0 → 0.23.0
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 +445 -282
- package/dist/index.d.ts +445 -282
- package/dist/index.js +15 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +43 -32
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/dto/elements/figma-nodes/index.ts +1 -1
- package/src/api/dto/elements/get-elements-v2.ts +21 -0
- package/src/api/dto/elements/index.ts +1 -0
package/package.json
CHANGED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { DTOFigmaNode } from "./figma-nodes";
|
|
3
|
+
|
|
4
|
+
//
|
|
5
|
+
// Read
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
export const DTOElementGetTypeFilter = z.enum(["FigmaNode"]);
|
|
9
|
+
|
|
10
|
+
export const DTOElementGetQuerySchema = z.object({
|
|
11
|
+
types: z.string().transform(val => val.split(",").map(v => DTOElementGetTypeFilter.parse(v))),
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
export const DTOElementsGetOutput = z.object({
|
|
15
|
+
figmaNodes: z.array(DTOFigmaNode).optional(),
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
export type DTOElementsGetOutput = z.infer<typeof DTOElementsGetOutput>;
|
|
19
|
+
export type DTOElementGetQueryRaw = z.input<typeof DTOElementGetQuerySchema>;
|
|
20
|
+
export type DTOElementGetQueryParsed = z.output<typeof DTOElementGetQuerySchema>;
|
|
21
|
+
export type DTOElementGetTypeFilter = z.infer<typeof DTOElementGetTypeFilter>;
|