@supernova-studio/client 0.59.9 → 0.59.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supernova-studio/client",
3
- "version": "0.59.9",
3
+ "version": "0.59.11",
4
4
  "description": "Supernova Data Models",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/index.js",
@@ -7,6 +7,7 @@ export * from "./elements-diff";
7
7
  export * from "./figma-variables";
8
8
  export * from "./import-job";
9
9
  export * from "./members";
10
+ export * from "./redirects";
10
11
  export * from "./role";
11
12
  export * from "./stats";
12
13
  export * from "./version";
@@ -0,0 +1,33 @@
1
+ import { z } from "zod";
2
+
3
+ export const DTOPageRedirectCreateBody = z.object({
4
+ pagePersistentId: z.string(),
5
+ path: z.string(),
6
+ });
7
+
8
+ export const DTOPageRedirectUpdateBody = DTOPageRedirectCreateBody.partial();
9
+
10
+ export const DTOPageRedirect = z.object({
11
+ id: z.string(),
12
+ pagePersistentId: z.string(),
13
+ path: z.string(),
14
+ });
15
+
16
+ export const DTOPageRedirectListResponse = z.object({
17
+ redirects: DTOPageRedirect.array(),
18
+ });
19
+
20
+ export const DTOPageRedirectResponse = z.object({
21
+ redirect: DTOPageRedirect,
22
+ });
23
+
24
+ export const DTOPageRedirectDeleteResponse = z.object({
25
+ success: z.boolean(),
26
+ });
27
+
28
+ export type DTOPageRedirectCreateBody = z.infer<typeof DTOPageRedirectCreateBody>;
29
+ export type DTOPageRedirectUpdateBody = z.infer<typeof DTOPageRedirectUpdateBody>;
30
+ export type DTOPageRedirect = z.infer<typeof DTOPageRedirect>;
31
+ export type DTOPageRedirectListResponse = z.infer<typeof DTOPageRedirectListResponse>;
32
+ export type DTOPageRedirectResponse = z.infer<typeof DTOPageRedirectResponse>;
33
+ export type DTOPageRedirectDeleteResponse = z.infer<typeof DTOPageRedirectDeleteResponse>;
@@ -1,10 +1,11 @@
1
- import { UserOnboardingDepartment, UserOnboardingJobLevel, UserSource } from "@supernova-studio/model";
1
+ import { UserOnboardingDepartment, UserOnboardingJobLevel, UserSource, UserTheme } from "@supernova-studio/model";
2
2
  import { z } from "zod";
3
3
  import { DTOUser, DTOUserProfile } from "./user";
4
4
 
5
5
  export const DTOUserOnboardingDepartment = UserOnboardingDepartment;
6
6
  export const DTOUserOnboardingJobLevel = UserOnboardingJobLevel;
7
7
  export const DTOUserSource = UserSource;
8
+ export const DTOUserTheme = UserTheme;
8
9
 
9
10
  export const DTOUserOnboarding = z.object({
10
11
  companyName: z.string().optional(),
@@ -21,6 +22,7 @@ export const DTOUserOnboarding = z.object({
21
22
 
22
23
  export const DTOAuthenticatedUserProfile = DTOUserProfile.extend({
23
24
  onboarding: DTOUserOnboarding.optional(),
25
+ theme: DTOUserTheme.optional(),
24
26
  });
25
27
 
26
28
  export const DTOAuthenticatedUser = DTOUser.extend({
@@ -37,6 +39,7 @@ export const DTOAuthenticatedUserResponse = z.object({
37
39
  export type DTOUserOnboardingDepartment = z.infer<typeof DTOUserOnboardingDepartment>;
38
40
  export type DTOUserOnboardingJobLevel = z.infer<typeof DTOUserOnboardingJobLevel>;
39
41
  export type DTOUserSource = z.infer<typeof DTOUserSource>;
42
+ export type DTOUserTheme = z.infer<typeof DTOUserTheme>;
40
43
  export type DTOUserOnboarding = z.infer<typeof DTOUserOnboarding>;
41
44
  export type DTOAuthenticatedUserProfile = z.infer<typeof DTOAuthenticatedUserProfile>;
42
45
  export type DTOAuthenticatedUser = z.infer<typeof DTOAuthenticatedUser>;