api-arreya-types 1.0.49 → 1.0.52
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/folder.type.d.ts +120 -0
- package/dist/folder.type.js +28 -1
- package/dist/page.type.d.ts +49 -49
- package/dist/page.type.js +11 -11
- package/dist/presentation.type.d.ts +56 -56
- package/dist/presentation.type.js +1 -1
- package/dist/slide.type.d.ts +24 -24
- package/dist/slideshow.type.d.ts +24 -24
- package/dist/template.type.d.ts +40 -40
- package/dist/user.type.d.ts +1 -1
- package/package.json +1 -1
package/dist/folder.type.d.ts
CHANGED
|
@@ -1,8 +1,51 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
export declare const FolderProject: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
folderId: z.ZodString;
|
|
5
|
+
projectId: z.ZodString;
|
|
6
|
+
createdAt: z.ZodUnion<[z.ZodDate, z.ZodEffects<z.ZodString, Date, string>]>;
|
|
7
|
+
updatedAt: z.ZodUnion<[z.ZodDate, z.ZodEffects<z.ZodString, Date, string>]>;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
id: string;
|
|
10
|
+
projectId: string;
|
|
11
|
+
createdAt: Date;
|
|
12
|
+
updatedAt: Date;
|
|
13
|
+
folderId: string;
|
|
14
|
+
}, {
|
|
15
|
+
id: string;
|
|
16
|
+
projectId: string;
|
|
17
|
+
createdAt: string | Date;
|
|
18
|
+
updatedAt: string | Date;
|
|
19
|
+
folderId: string;
|
|
20
|
+
}>;
|
|
21
|
+
export declare const CreateFolderProject: z.ZodObject<{
|
|
22
|
+
folderId: z.ZodString;
|
|
23
|
+
projectId: z.ZodString;
|
|
24
|
+
}, "strip", z.ZodTypeAny, {
|
|
25
|
+
projectId: string;
|
|
26
|
+
folderId: string;
|
|
27
|
+
}, {
|
|
28
|
+
projectId: string;
|
|
29
|
+
folderId: string;
|
|
30
|
+
}>;
|
|
31
|
+
export declare const CreateFolderProjects: z.ZodObject<{
|
|
32
|
+
folderId: z.ZodString;
|
|
33
|
+
projectIds: z.ZodArray<z.ZodString, "many">;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
projectIds: string[];
|
|
36
|
+
folderId: string;
|
|
37
|
+
}, {
|
|
38
|
+
projectIds: string[];
|
|
39
|
+
folderId: string;
|
|
40
|
+
}>;
|
|
41
|
+
export type FolderProject = z.infer<typeof FolderProject>;
|
|
42
|
+
export type CreateFolderProject = z.infer<typeof CreateFolderProject>;
|
|
43
|
+
export type CreateFolderProjects = z.infer<typeof CreateFolderProjects>;
|
|
2
44
|
export declare const Folder: z.ZodObject<{
|
|
3
45
|
id: z.ZodString;
|
|
4
46
|
name: z.ZodString;
|
|
5
47
|
organizationId: z.ZodString;
|
|
48
|
+
allProjects: z.ZodBoolean;
|
|
6
49
|
createdAt: z.ZodUnion<[z.ZodDate, z.ZodEffects<z.ZodString, Date, string>]>;
|
|
7
50
|
updatedAt: z.ZodUnion<[z.ZodDate, z.ZodEffects<z.ZodString, Date, string>]>;
|
|
8
51
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -11,34 +54,99 @@ export declare const Folder: z.ZodObject<{
|
|
|
11
54
|
name: string;
|
|
12
55
|
createdAt: Date;
|
|
13
56
|
updatedAt: Date;
|
|
57
|
+
allProjects: boolean;
|
|
58
|
+
}, {
|
|
59
|
+
organizationId: string;
|
|
60
|
+
id: string;
|
|
61
|
+
name: string;
|
|
62
|
+
createdAt: string | Date;
|
|
63
|
+
updatedAt: string | Date;
|
|
64
|
+
allProjects: boolean;
|
|
65
|
+
}>;
|
|
66
|
+
export declare const FolderWithProjects: z.ZodObject<z.objectUtil.extendShape<{
|
|
67
|
+
id: z.ZodString;
|
|
68
|
+
name: z.ZodString;
|
|
69
|
+
organizationId: z.ZodString;
|
|
70
|
+
allProjects: z.ZodBoolean;
|
|
71
|
+
createdAt: z.ZodUnion<[z.ZodDate, z.ZodEffects<z.ZodString, Date, string>]>;
|
|
72
|
+
updatedAt: z.ZodUnion<[z.ZodDate, z.ZodEffects<z.ZodString, Date, string>]>;
|
|
73
|
+
}, {
|
|
74
|
+
folderProjects: z.ZodArray<z.ZodObject<{
|
|
75
|
+
id: z.ZodString;
|
|
76
|
+
folderId: z.ZodString;
|
|
77
|
+
projectId: z.ZodString;
|
|
78
|
+
createdAt: z.ZodUnion<[z.ZodDate, z.ZodEffects<z.ZodString, Date, string>]>;
|
|
79
|
+
updatedAt: z.ZodUnion<[z.ZodDate, z.ZodEffects<z.ZodString, Date, string>]>;
|
|
80
|
+
}, "strip", z.ZodTypeAny, {
|
|
81
|
+
id: string;
|
|
82
|
+
projectId: string;
|
|
83
|
+
createdAt: Date;
|
|
84
|
+
updatedAt: Date;
|
|
85
|
+
folderId: string;
|
|
86
|
+
}, {
|
|
87
|
+
id: string;
|
|
88
|
+
projectId: string;
|
|
89
|
+
createdAt: string | Date;
|
|
90
|
+
updatedAt: string | Date;
|
|
91
|
+
folderId: string;
|
|
92
|
+
}>, "many">;
|
|
93
|
+
}>, "strip", z.ZodTypeAny, {
|
|
94
|
+
organizationId: string;
|
|
95
|
+
id: string;
|
|
96
|
+
name: string;
|
|
97
|
+
createdAt: Date;
|
|
98
|
+
updatedAt: Date;
|
|
99
|
+
allProjects: boolean;
|
|
100
|
+
folderProjects: {
|
|
101
|
+
id: string;
|
|
102
|
+
projectId: string;
|
|
103
|
+
createdAt: Date;
|
|
104
|
+
updatedAt: Date;
|
|
105
|
+
folderId: string;
|
|
106
|
+
}[];
|
|
14
107
|
}, {
|
|
15
108
|
organizationId: string;
|
|
16
109
|
id: string;
|
|
17
110
|
name: string;
|
|
18
111
|
createdAt: string | Date;
|
|
19
112
|
updatedAt: string | Date;
|
|
113
|
+
allProjects: boolean;
|
|
114
|
+
folderProjects: {
|
|
115
|
+
id: string;
|
|
116
|
+
projectId: string;
|
|
117
|
+
createdAt: string | Date;
|
|
118
|
+
updatedAt: string | Date;
|
|
119
|
+
folderId: string;
|
|
120
|
+
}[];
|
|
20
121
|
}>;
|
|
21
122
|
export declare const CreateFolder: z.ZodObject<{
|
|
22
123
|
name: z.ZodString;
|
|
23
124
|
organizationId: z.ZodString;
|
|
125
|
+
allProjects: z.ZodDefault<z.ZodBoolean>;
|
|
24
126
|
}, "strip", z.ZodTypeAny, {
|
|
25
127
|
organizationId: string;
|
|
26
128
|
name: string;
|
|
129
|
+
allProjects: boolean;
|
|
27
130
|
}, {
|
|
28
131
|
organizationId: string;
|
|
29
132
|
name: string;
|
|
133
|
+
allProjects?: boolean | undefined;
|
|
30
134
|
}>;
|
|
31
135
|
export declare const UpdateFolder: z.ZodObject<{
|
|
32
136
|
id: z.ZodString;
|
|
33
137
|
name: z.ZodOptional<z.ZodString>;
|
|
138
|
+
allProjects: z.ZodOptional<z.ZodBoolean>;
|
|
34
139
|
}, "strip", z.ZodTypeAny, {
|
|
35
140
|
id: string;
|
|
36
141
|
name?: string | undefined;
|
|
142
|
+
allProjects?: boolean | undefined;
|
|
37
143
|
}, {
|
|
38
144
|
id: string;
|
|
39
145
|
name?: string | undefined;
|
|
146
|
+
allProjects?: boolean | undefined;
|
|
40
147
|
}>;
|
|
41
148
|
export type Folder = z.infer<typeof Folder>;
|
|
149
|
+
export type FolderWithProjects = z.infer<typeof FolderWithProjects>;
|
|
42
150
|
export type CreateFolder = z.infer<typeof CreateFolder>;
|
|
43
151
|
export type UpdateFolder = z.infer<typeof UpdateFolder>;
|
|
44
152
|
export declare const FolderIdRequestParams: z.ZodObject<{
|
|
@@ -50,17 +158,29 @@ export declare const FolderIdRequestParams: z.ZodObject<{
|
|
|
50
158
|
}>;
|
|
51
159
|
export declare const CreateFolderRequestBody: z.ZodObject<{
|
|
52
160
|
name: z.ZodString;
|
|
161
|
+
projectIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
162
|
+
allProjects: z.ZodDefault<z.ZodBoolean>;
|
|
53
163
|
}, "strip", z.ZodTypeAny, {
|
|
164
|
+
projectIds: string[];
|
|
54
165
|
name: string;
|
|
166
|
+
allProjects: boolean;
|
|
55
167
|
}, {
|
|
56
168
|
name: string;
|
|
169
|
+
projectIds?: string[] | undefined;
|
|
170
|
+
allProjects?: boolean | undefined;
|
|
57
171
|
}>;
|
|
58
172
|
export type CreateFolderRequestBody = z.infer<typeof CreateFolderRequestBody>;
|
|
59
173
|
export declare const UpdateFolderRequestBody: z.ZodObject<{
|
|
60
174
|
name: z.ZodOptional<z.ZodString>;
|
|
175
|
+
allProjects: z.ZodOptional<z.ZodBoolean>;
|
|
176
|
+
projectIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
61
177
|
}, "strip", z.ZodTypeAny, {
|
|
178
|
+
projectIds?: string[] | undefined;
|
|
62
179
|
name?: string | undefined;
|
|
180
|
+
allProjects?: boolean | undefined;
|
|
63
181
|
}, {
|
|
182
|
+
projectIds?: string[] | undefined;
|
|
64
183
|
name?: string | undefined;
|
|
184
|
+
allProjects?: boolean | undefined;
|
|
65
185
|
}>;
|
|
66
186
|
export type UpdateFolderRequestBody = z.infer<typeof UpdateFolderRequestBody>;
|
package/dist/folder.type.js
CHANGED
|
@@ -1,22 +1,45 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateFolderRequestBody = exports.CreateFolderRequestBody = exports.FolderIdRequestParams = exports.UpdateFolder = exports.CreateFolder = exports.Folder = void 0;
|
|
3
|
+
exports.UpdateFolderRequestBody = exports.CreateFolderRequestBody = exports.FolderIdRequestParams = exports.UpdateFolder = exports.CreateFolder = exports.FolderWithProjects = exports.Folder = exports.CreateFolderProjects = exports.CreateFolderProject = exports.FolderProject = void 0;
|
|
4
4
|
var zod_1 = require("zod");
|
|
5
5
|
var zod_utils_1 = require("./zod-utils");
|
|
6
|
+
// Folder Project
|
|
7
|
+
exports.FolderProject = zod_1.z.object({
|
|
8
|
+
id: zod_1.z.string(),
|
|
9
|
+
folderId: zod_1.z.string(),
|
|
10
|
+
projectId: zod_1.z.string(),
|
|
11
|
+
createdAt: zod_utils_1.zodDate,
|
|
12
|
+
updatedAt: zod_utils_1.zodDate,
|
|
13
|
+
});
|
|
14
|
+
exports.CreateFolderProject = zod_1.z.object({
|
|
15
|
+
folderId: zod_1.z.string(),
|
|
16
|
+
projectId: zod_1.z.string(),
|
|
17
|
+
});
|
|
18
|
+
exports.CreateFolderProjects = zod_1.z.object({
|
|
19
|
+
folderId: zod_1.z.string(),
|
|
20
|
+
projectIds: zod_1.z.array(zod_1.z.string()),
|
|
21
|
+
});
|
|
22
|
+
// Folder
|
|
6
23
|
exports.Folder = zod_1.z.object({
|
|
7
24
|
id: zod_1.z.string(),
|
|
8
25
|
name: zod_1.z.string(),
|
|
9
26
|
organizationId: zod_1.z.string(),
|
|
27
|
+
allProjects: zod_1.z.boolean(),
|
|
10
28
|
createdAt: zod_utils_1.zodDate,
|
|
11
29
|
updatedAt: zod_utils_1.zodDate,
|
|
12
30
|
});
|
|
31
|
+
exports.FolderWithProjects = exports.Folder.extend({
|
|
32
|
+
folderProjects: zod_1.z.array(exports.FolderProject),
|
|
33
|
+
});
|
|
13
34
|
exports.CreateFolder = zod_1.z.object({
|
|
14
35
|
name: zod_1.z.string(),
|
|
15
36
|
organizationId: zod_1.z.string(),
|
|
37
|
+
allProjects: zod_1.z.boolean().default(false),
|
|
16
38
|
});
|
|
17
39
|
exports.UpdateFolder = zod_1.z.object({
|
|
18
40
|
id: zod_1.z.string(),
|
|
19
41
|
name: zod_1.z.string().optional(),
|
|
42
|
+
allProjects: zod_1.z.boolean().optional(),
|
|
20
43
|
});
|
|
21
44
|
// Request
|
|
22
45
|
exports.FolderIdRequestParams = zod_1.z.object({
|
|
@@ -25,8 +48,12 @@ exports.FolderIdRequestParams = zod_1.z.object({
|
|
|
25
48
|
// Create Folder Request
|
|
26
49
|
exports.CreateFolderRequestBody = zod_1.z.object({
|
|
27
50
|
name: zod_1.z.string(),
|
|
51
|
+
projectIds: zod_1.z.array(zod_1.z.string()).optional().default([]),
|
|
52
|
+
allProjects: zod_1.z.boolean().default(false),
|
|
28
53
|
});
|
|
29
54
|
// Update Folder Request
|
|
30
55
|
exports.UpdateFolderRequestBody = zod_1.z.object({
|
|
31
56
|
name: zod_1.z.string().optional(),
|
|
57
|
+
allProjects: zod_1.z.boolean().optional(),
|
|
58
|
+
projectIds: zod_1.z.array(zod_1.z.string()).optional(),
|
|
32
59
|
});
|
package/dist/page.type.d.ts
CHANGED
|
@@ -4,9 +4,9 @@ export declare const Page: z.ZodObject<{
|
|
|
4
4
|
name: z.ZodString;
|
|
5
5
|
presentationId: z.ZodString;
|
|
6
6
|
layout: z.ZodString;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
duration: z.ZodNumber;
|
|
8
|
+
speed: z.ZodNumber;
|
|
9
|
+
animation: z.ZodNullable<z.ZodString>;
|
|
10
10
|
order: z.ZodNumber;
|
|
11
11
|
preview: z.ZodString;
|
|
12
12
|
template: z.ZodBoolean;
|
|
@@ -20,9 +20,9 @@ export declare const Page: z.ZodObject<{
|
|
|
20
20
|
preview: string;
|
|
21
21
|
presentationId: string;
|
|
22
22
|
layout: string;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
duration: number;
|
|
24
|
+
speed: number;
|
|
25
|
+
animation: string | null;
|
|
26
26
|
order: number;
|
|
27
27
|
template: boolean;
|
|
28
28
|
}, {
|
|
@@ -33,9 +33,9 @@ export declare const Page: z.ZodObject<{
|
|
|
33
33
|
preview: string;
|
|
34
34
|
presentationId: string;
|
|
35
35
|
layout: string;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
duration: number;
|
|
37
|
+
speed: number;
|
|
38
|
+
animation: string | null;
|
|
39
39
|
order: number;
|
|
40
40
|
template: boolean;
|
|
41
41
|
}>;
|
|
@@ -44,9 +44,9 @@ export declare const CreatePage: z.ZodObject<{
|
|
|
44
44
|
name: z.ZodString;
|
|
45
45
|
presentationId: z.ZodString;
|
|
46
46
|
layout: z.ZodString;
|
|
47
|
-
duration: z.
|
|
47
|
+
duration: z.ZodNumber;
|
|
48
|
+
speed: z.ZodNumber;
|
|
48
49
|
animation: z.ZodNullable<z.ZodString>;
|
|
49
|
-
speed: z.ZodNullable<z.ZodNumber>;
|
|
50
50
|
order: z.ZodNumber;
|
|
51
51
|
preview: z.ZodString;
|
|
52
52
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -54,20 +54,20 @@ export declare const CreatePage: z.ZodObject<{
|
|
|
54
54
|
preview: string;
|
|
55
55
|
presentationId: string;
|
|
56
56
|
layout: string;
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
duration: number | null;
|
|
57
|
+
duration: number;
|
|
58
|
+
speed: number;
|
|
60
59
|
animation: string | null;
|
|
60
|
+
order: number;
|
|
61
61
|
id?: string | undefined;
|
|
62
62
|
}, {
|
|
63
63
|
name: string;
|
|
64
64
|
preview: string;
|
|
65
65
|
presentationId: string;
|
|
66
66
|
layout: string;
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
duration: number | null;
|
|
67
|
+
duration: number;
|
|
68
|
+
speed: number;
|
|
70
69
|
animation: string | null;
|
|
70
|
+
order: number;
|
|
71
71
|
id?: string | undefined;
|
|
72
72
|
}>;
|
|
73
73
|
export declare const CreatePages: z.ZodArray<z.ZodObject<{
|
|
@@ -75,9 +75,9 @@ export declare const CreatePages: z.ZodArray<z.ZodObject<{
|
|
|
75
75
|
name: z.ZodString;
|
|
76
76
|
presentationId: z.ZodString;
|
|
77
77
|
layout: z.ZodString;
|
|
78
|
-
duration: z.
|
|
78
|
+
duration: z.ZodNumber;
|
|
79
|
+
speed: z.ZodNumber;
|
|
79
80
|
animation: z.ZodNullable<z.ZodString>;
|
|
80
|
-
speed: z.ZodNullable<z.ZodNumber>;
|
|
81
81
|
order: z.ZodNumber;
|
|
82
82
|
preview: z.ZodString;
|
|
83
83
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -85,20 +85,20 @@ export declare const CreatePages: z.ZodArray<z.ZodObject<{
|
|
|
85
85
|
preview: string;
|
|
86
86
|
presentationId: string;
|
|
87
87
|
layout: string;
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
duration: number | null;
|
|
88
|
+
duration: number;
|
|
89
|
+
speed: number;
|
|
91
90
|
animation: string | null;
|
|
91
|
+
order: number;
|
|
92
92
|
id?: string | undefined;
|
|
93
93
|
}, {
|
|
94
94
|
name: string;
|
|
95
95
|
preview: string;
|
|
96
96
|
presentationId: string;
|
|
97
97
|
layout: string;
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
duration: number | null;
|
|
98
|
+
duration: number;
|
|
99
|
+
speed: number;
|
|
101
100
|
animation: string | null;
|
|
101
|
+
order: number;
|
|
102
102
|
id?: string | undefined;
|
|
103
103
|
}>, "many">;
|
|
104
104
|
export declare const UpdatePage: z.ZodObject<{
|
|
@@ -106,9 +106,9 @@ export declare const UpdatePage: z.ZodObject<{
|
|
|
106
106
|
name: z.ZodOptional<z.ZodString>;
|
|
107
107
|
presentationId: z.ZodOptional<z.ZodString>;
|
|
108
108
|
layout: z.ZodOptional<z.ZodString>;
|
|
109
|
-
duration: z.ZodOptional<z.
|
|
109
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
110
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
110
111
|
animation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
111
|
-
speed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
112
112
|
order: z.ZodOptional<z.ZodNumber>;
|
|
113
113
|
preview: z.ZodOptional<z.ZodString>;
|
|
114
114
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -117,20 +117,20 @@ export declare const UpdatePage: z.ZodObject<{
|
|
|
117
117
|
preview?: string | undefined;
|
|
118
118
|
presentationId?: string | undefined;
|
|
119
119
|
layout?: string | undefined;
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
duration?: number | null | undefined;
|
|
120
|
+
duration?: number | undefined;
|
|
121
|
+
speed?: number | undefined;
|
|
123
122
|
animation?: string | null | undefined;
|
|
123
|
+
order?: number | undefined;
|
|
124
124
|
}, {
|
|
125
125
|
id: string;
|
|
126
126
|
name?: string | undefined;
|
|
127
127
|
preview?: string | undefined;
|
|
128
128
|
presentationId?: string | undefined;
|
|
129
129
|
layout?: string | undefined;
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
duration?: number | null | undefined;
|
|
130
|
+
duration?: number | undefined;
|
|
131
|
+
speed?: number | undefined;
|
|
133
132
|
animation?: string | null | undefined;
|
|
133
|
+
order?: number | undefined;
|
|
134
134
|
}>;
|
|
135
135
|
export type Page = z.infer<typeof Page>;
|
|
136
136
|
export type CreatePage = z.infer<typeof CreatePage>;
|
|
@@ -147,9 +147,9 @@ export declare const CreatePageRequestBody: z.ZodObject<{
|
|
|
147
147
|
name: z.ZodString;
|
|
148
148
|
presentationId: z.ZodString;
|
|
149
149
|
layout: z.ZodString;
|
|
150
|
-
duration: z.
|
|
150
|
+
duration: z.ZodNumber;
|
|
151
|
+
speed: z.ZodNumber;
|
|
151
152
|
animation: z.ZodNullable<z.ZodString>;
|
|
152
|
-
speed: z.ZodNullable<z.ZodNumber>;
|
|
153
153
|
order: z.ZodNumber;
|
|
154
154
|
preview: z.ZodString;
|
|
155
155
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -157,28 +157,28 @@ export declare const CreatePageRequestBody: z.ZodObject<{
|
|
|
157
157
|
preview: string;
|
|
158
158
|
presentationId: string;
|
|
159
159
|
layout: string;
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
duration: number | null;
|
|
160
|
+
duration: number;
|
|
161
|
+
speed: number;
|
|
163
162
|
animation: string | null;
|
|
163
|
+
order: number;
|
|
164
164
|
}, {
|
|
165
165
|
name: string;
|
|
166
166
|
preview: string;
|
|
167
167
|
presentationId: string;
|
|
168
168
|
layout: string;
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
duration: number | null;
|
|
169
|
+
duration: number;
|
|
170
|
+
speed: number;
|
|
172
171
|
animation: string | null;
|
|
172
|
+
order: number;
|
|
173
173
|
}>;
|
|
174
174
|
export type CreatePageRequestBody = z.infer<typeof CreatePageRequestBody>;
|
|
175
175
|
export declare const UpdatePageRequestBody: z.ZodObject<{
|
|
176
176
|
id: z.ZodString;
|
|
177
177
|
name: z.ZodOptional<z.ZodString>;
|
|
178
178
|
layout: z.ZodOptional<z.ZodString>;
|
|
179
|
-
duration: z.ZodOptional<z.
|
|
179
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
180
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
180
181
|
animation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
181
|
-
speed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
182
182
|
order: z.ZodOptional<z.ZodNumber>;
|
|
183
183
|
preview: z.ZodOptional<z.ZodString>;
|
|
184
184
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -186,18 +186,18 @@ export declare const UpdatePageRequestBody: z.ZodObject<{
|
|
|
186
186
|
name?: string | undefined;
|
|
187
187
|
preview?: string | undefined;
|
|
188
188
|
layout?: string | undefined;
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
duration?: number | null | undefined;
|
|
189
|
+
duration?: number | undefined;
|
|
190
|
+
speed?: number | undefined;
|
|
192
191
|
animation?: string | null | undefined;
|
|
192
|
+
order?: number | undefined;
|
|
193
193
|
}, {
|
|
194
194
|
id: string;
|
|
195
195
|
name?: string | undefined;
|
|
196
196
|
preview?: string | undefined;
|
|
197
197
|
layout?: string | undefined;
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
duration?: number | null | undefined;
|
|
198
|
+
duration?: number | undefined;
|
|
199
|
+
speed?: number | undefined;
|
|
201
200
|
animation?: string | null | undefined;
|
|
201
|
+
order?: number | undefined;
|
|
202
202
|
}>;
|
|
203
203
|
export type UpdatePageRequestBody = z.infer<typeof UpdatePageRequestBody>;
|
package/dist/page.type.js
CHANGED
|
@@ -9,9 +9,9 @@ exports.Page = zod_1.z.object({
|
|
|
9
9
|
presentationId: zod_1.z.string(),
|
|
10
10
|
layout: zod_1.z.string(),
|
|
11
11
|
// backgroundColor: z.string(),
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
duration: zod_1.z.number(), // speed: z.number().nullable().default(null),
|
|
13
|
+
speed: zod_1.z.number(), // timeout: z.number().nullable().default(null),
|
|
14
|
+
animation: zod_1.z.string().nullable(), // transition: z.number().nullable().default(null),
|
|
15
15
|
order: zod_1.z.number(),
|
|
16
16
|
preview: zod_1.z.string(),
|
|
17
17
|
template: zod_1.z.boolean(),
|
|
@@ -24,9 +24,9 @@ exports.CreatePage = zod_1.z.object({
|
|
|
24
24
|
presentationId: zod_1.z.string(),
|
|
25
25
|
layout: zod_1.z.string(),
|
|
26
26
|
// backgroundColor: z.string(),
|
|
27
|
-
duration: zod_1.z.number()
|
|
27
|
+
duration: zod_1.z.number(), // speed: z.number().nullable().default(null),
|
|
28
|
+
speed: zod_1.z.number(), // timeout: z.number().nullable().default(null),
|
|
28
29
|
animation: zod_1.z.string().nullable(), // transition: z.number().nullable().default(null),
|
|
29
|
-
speed: zod_1.z.number().nullable(), // timeout: z.number().nullable().default(null),
|
|
30
30
|
order: zod_1.z.number(),
|
|
31
31
|
preview: zod_1.z.string(),
|
|
32
32
|
});
|
|
@@ -37,9 +37,9 @@ exports.UpdatePage = zod_1.z.object({
|
|
|
37
37
|
presentationId: zod_1.z.string().optional(),
|
|
38
38
|
layout: zod_1.z.string().optional(),
|
|
39
39
|
// backgroundColor: z.string().optional(),
|
|
40
|
-
duration: zod_1.z.number().
|
|
40
|
+
duration: zod_1.z.number().optional(), // speed: z.number().nullable().optional(),
|
|
41
|
+
speed: zod_1.z.number().optional(), // timeout: z.number().nullable().optional(),
|
|
41
42
|
animation: zod_1.z.string().nullable().optional(), // transition: z.number().nullable().optional(),
|
|
42
|
-
speed: zod_1.z.number().nullable().optional(), // timeout: z.number().nullable().optional(),
|
|
43
43
|
order: zod_1.z.number().optional(),
|
|
44
44
|
preview: zod_1.z.string().optional(),
|
|
45
45
|
});
|
|
@@ -53,9 +53,9 @@ exports.CreatePageRequestBody = zod_1.z.object({
|
|
|
53
53
|
presentationId: zod_1.z.string(),
|
|
54
54
|
layout: zod_1.z.string(),
|
|
55
55
|
// backgroundColor: z.string(),
|
|
56
|
-
duration: zod_1.z.number()
|
|
56
|
+
duration: zod_1.z.number(), // speed: z.number().nullable().default(null),
|
|
57
|
+
speed: zod_1.z.number(), // timeout: z.number().nullable().default(null),
|
|
57
58
|
animation: zod_1.z.string().nullable(), // transition: z.number().nullable().default(null),
|
|
58
|
-
speed: zod_1.z.number().nullable(), // timeout: z.number().nullable().default(null),
|
|
59
59
|
order: zod_1.z.number(),
|
|
60
60
|
preview: zod_1.z.string(),
|
|
61
61
|
});
|
|
@@ -65,9 +65,9 @@ exports.UpdatePageRequestBody = zod_1.z.object({
|
|
|
65
65
|
name: zod_1.z.string().optional(),
|
|
66
66
|
layout: zod_1.z.string().optional(),
|
|
67
67
|
// backgroundColor: z.string().optional(),
|
|
68
|
-
duration: zod_1.z.number().
|
|
68
|
+
duration: zod_1.z.number().optional(), // speed: z.number().nullable().optional(),
|
|
69
|
+
speed: zod_1.z.number().optional(), // timeout: z.number().nullable().optional(),
|
|
69
70
|
animation: zod_1.z.string().nullable().optional(), // transition: z.number().nullable().optional(),
|
|
70
|
-
speed: zod_1.z.number().nullable().optional(), // timeout: z.number().nullable().optional(),
|
|
71
71
|
order: zod_1.z.number().optional(),
|
|
72
72
|
preview: zod_1.z.string().optional(),
|
|
73
73
|
});
|