@supernova-studio/client 0.54.13 → 0.54.14
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 +317 -130
- package/dist/index.d.ts +317 -130
- package/dist/index.js +112 -126
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2411 -2425
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/dto/design-systems/design-system.ts +21 -1
- package/src/api/payloads/design-systems/update-design-system.ts +13 -2
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DesignSystem, ObjectMeta } from "@supernova-studio/model";
|
|
1
|
+
import { DesignSystem, DesignSystemAccessMode, ObjectMeta } from "@supernova-studio/model";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
|
|
4
4
|
//
|
|
@@ -16,3 +16,23 @@ export const DTODesignSystem = DesignSystem.omit({
|
|
|
16
16
|
});
|
|
17
17
|
|
|
18
18
|
export type DTODesignSystem = z.infer<typeof DTODesignSystem>;
|
|
19
|
+
|
|
20
|
+
export const DTODesignSystemCreateResponse = z.object({
|
|
21
|
+
designSystem: DTODesignSystem,
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
export type DTODesignSystemCreateResponse = z.infer<typeof DTODesignSystemCreateResponse>;
|
|
25
|
+
|
|
26
|
+
//
|
|
27
|
+
// Write
|
|
28
|
+
//
|
|
29
|
+
|
|
30
|
+
export const DTODesignSystemCreateInput = z.object({
|
|
31
|
+
workspaceId: z.string(),
|
|
32
|
+
meta: ObjectMeta.optional(),
|
|
33
|
+
name: z.string().min(2).max(64).optional(),
|
|
34
|
+
description: z.string().max(1024).optional(),
|
|
35
|
+
accessMode: DesignSystemAccessMode.optional(),
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
export type DTODesignSystemCreateInput = z.infer<typeof DTODesignSystemCreateInput>;
|
|
@@ -1,6 +1,17 @@
|
|
|
1
|
+
import { DesignSystem, ObjectMeta } from "@supernova-studio/model";
|
|
1
2
|
import { z } from "zod";
|
|
2
|
-
import { DesignSystemUpdateInput } from "@supernova-studio/model";
|
|
3
3
|
|
|
4
|
-
export const DTODesignSystemUpdateInput =
|
|
4
|
+
export const DTODesignSystemUpdateInput = DesignSystem.partial()
|
|
5
|
+
.omit({
|
|
6
|
+
id: true,
|
|
7
|
+
workspaceId: true,
|
|
8
|
+
createdAt: true,
|
|
9
|
+
updatedAt: true,
|
|
10
|
+
docSlug: true,
|
|
11
|
+
docViewUrl: true,
|
|
12
|
+
})
|
|
13
|
+
.extend({
|
|
14
|
+
meta: ObjectMeta.partial().optional(),
|
|
15
|
+
});
|
|
5
16
|
|
|
6
17
|
export type DTODesignSystemUpdateInput = z.infer<typeof DTODesignSystemUpdateInput>;
|