@supernova-studio/model 0.54.4 → 0.54.5
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 +673 -2631
- package/dist/index.d.ts +673 -2631
- package/dist/index.js +96 -100
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +446 -450
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/dsm/design-system.ts +12 -7
package/package.json
CHANGED
package/src/dsm/design-system.ts
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { nullishToOptional } from "../helpers";
|
|
3
|
-
|
|
3
|
+
|
|
4
|
+
//
|
|
5
|
+
// Enums
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
export const DesignSystemAccessMode = z.enum(["Open", "InviteOnly"]);
|
|
9
|
+
export type DesignSystemAccessMode = z.infer<typeof DesignSystemAccessMode>;
|
|
10
|
+
|
|
11
|
+
//
|
|
12
|
+
// Model
|
|
13
|
+
//
|
|
4
14
|
|
|
5
15
|
export const DesignSystemSwitcher = z.object({
|
|
6
16
|
isEnabled: z.boolean(),
|
|
@@ -23,15 +33,10 @@ export const DesignSystem = z.object({
|
|
|
23
33
|
designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
|
|
24
34
|
isApprovalFeatureEnabled: z.boolean(),
|
|
25
35
|
approvalRequiredForPublishing: z.boolean(),
|
|
36
|
+
accessMode: DesignSystemAccessMode,
|
|
26
37
|
createdAt: z.coerce.date(),
|
|
27
38
|
updatedAt: z.coerce.date(),
|
|
28
39
|
});
|
|
29
40
|
|
|
30
|
-
export const DesignSystemWithWorkspace = z.object({
|
|
31
|
-
designSystem: DesignSystem,
|
|
32
|
-
workspace: Workspace,
|
|
33
|
-
});
|
|
34
|
-
|
|
35
41
|
export type DesignSystemSwitcher = z.infer<typeof DesignSystemSwitcher>;
|
|
36
42
|
export type DesignSystem = z.infer<typeof DesignSystem>;
|
|
37
|
-
export type DesignSystemWithWorkspace = z.infer<typeof DesignSystemWithWorkspace>;
|