@supernova-studio/client 0.59.9 → 0.59.10
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 +102 -1
- package/dist/index.d.ts +102 -1
- package/dist/index.js +38 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1783 -1746
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/dto/design-systems/index.ts +1 -0
- package/src/api/dto/design-systems/redirects.ts +33 -0
package/package.json
CHANGED
|
@@ -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>;
|