@supernova-studio/client 0.54.18 → 0.54.20
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 +2484 -12
- package/dist/index.d.ts +2484 -12
- package/dist/index.js +130 -106
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +550 -526
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/dto/bff/app-bootstrap-data.ts +20 -0
- package/src/api/dto/bff/index.ts +1 -0
- package/src/api/dto/design-systems/design-system.ts +8 -3
- package/src/api/dto/index.ts +1 -0
package/package.json
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { DTOBrand, DTODesignSystem, DTODesignSystemVersion } from "../design-systems";
|
|
3
|
+
import { DTOUserWorkspaceMembership } from "../workspaces";
|
|
4
|
+
|
|
5
|
+
export const DTOAppBootstrapDataQuery = z.object({
|
|
6
|
+
preferredWorkspaceId: z.string().optional(),
|
|
7
|
+
preferredDesignSystemId: z.string().optional(),
|
|
8
|
+
preferredVersionId: z.string().optional(),
|
|
9
|
+
preferredBrandId: z.string().optional(),
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
export const DTOAppBootstrapDataResponse = z.object({
|
|
13
|
+
workspaceMembership: DTOUserWorkspaceMembership.optional(),
|
|
14
|
+
designSystem: DTODesignSystem.optional(),
|
|
15
|
+
version: DTODesignSystemVersion.optional(),
|
|
16
|
+
brand: DTOBrand.optional(),
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
export type DTOAppBootstrapDataQuery = z.infer<typeof DTOAppBootstrapDataQuery>;
|
|
20
|
+
export type DTOAppBootstrapDataResponse = z.infer<typeof DTOAppBootstrapDataResponse>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./app-bootstrap-data";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DesignSystem, DesignSystemAccessMode, ObjectMeta } from "@supernova-studio/model";
|
|
1
|
+
import { DesignSystem, DesignSystemAccessMode, ObjectMeta, WorkspaceRoleSchema } from "@supernova-studio/model";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
|
|
4
4
|
//
|
|
@@ -13,15 +13,20 @@ export const DTODesignSystem = DesignSystem.omit({
|
|
|
13
13
|
meta: ObjectMeta,
|
|
14
14
|
docExporterId: z.string(),
|
|
15
15
|
sources: z.array(z.any()),
|
|
16
|
+
role: WorkspaceRoleSchema.optional(),
|
|
16
17
|
});
|
|
17
18
|
|
|
18
|
-
export type DTODesignSystem = z.infer<typeof DTODesignSystem>;
|
|
19
|
-
|
|
20
19
|
export const DTODesignSystemCreateResponse = z.object({
|
|
21
20
|
designSystem: DTODesignSystem,
|
|
22
21
|
});
|
|
23
22
|
|
|
23
|
+
export const DTODesignSystemsListResponse = z.object({
|
|
24
|
+
designSystems: DTODesignSystem.array(),
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
export type DTODesignSystem = z.infer<typeof DTODesignSystem>;
|
|
24
28
|
export type DTODesignSystemCreateResponse = z.infer<typeof DTODesignSystemCreateResponse>;
|
|
29
|
+
export type DTODesignSystemsListResponse = z.infer<typeof DTODesignSystemsListResponse>;
|
|
25
30
|
|
|
26
31
|
//
|
|
27
32
|
// Write
|