api-arreya-types 1.0.32 → 1.0.36

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.ts CHANGED
@@ -7,5 +7,7 @@ export * from './page.type';
7
7
  export * from './presentation.type';
8
8
  export * from './project.type';
9
9
  export * from './schedule.type';
10
+ export * from './slide.type';
11
+ export * from './slideshow.type';
10
12
  export * from './template.type';
11
13
  export * from './user.type';
package/dist/index.js CHANGED
@@ -23,5 +23,7 @@ __exportStar(require("./page.type"), exports);
23
23
  __exportStar(require("./presentation.type"), exports);
24
24
  __exportStar(require("./project.type"), exports);
25
25
  __exportStar(require("./schedule.type"), exports);
26
+ __exportStar(require("./slide.type"), exports);
27
+ __exportStar(require("./slideshow.type"), exports);
26
28
  __exportStar(require("./template.type"), exports);
27
29
  __exportStar(require("./user.type"), exports);
@@ -0,0 +1,236 @@
1
+ import { z } from 'zod';
2
+ export declare const Slide: z.ZodObject<{
3
+ id: z.ZodString;
4
+ slideshowId: z.ZodString;
5
+ title: z.ZodString;
6
+ caption: z.ZodString;
7
+ order: z.ZodNumber;
8
+ fileId: z.ZodString;
9
+ speed: z.ZodString;
10
+ transition: z.ZodString;
11
+ timeout: z.ZodNumber;
12
+ start: z.ZodNullable<z.ZodDate>;
13
+ end: z.ZodNullable<z.ZodDate>;
14
+ createdAt: z.ZodUnion<[z.ZodDate, z.ZodEffects<z.ZodString, Date, string>]>;
15
+ updatedAt: z.ZodUnion<[z.ZodDate, z.ZodEffects<z.ZodString, Date, string>]>;
16
+ }, "strip", z.ZodTypeAny, {
17
+ id: string;
18
+ createdAt: Date;
19
+ updatedAt: Date;
20
+ speed: string;
21
+ transition: string;
22
+ timeout: number;
23
+ order: number;
24
+ title: string;
25
+ start: Date | null;
26
+ end: Date | null;
27
+ slideshowId: string;
28
+ caption: string;
29
+ fileId: string;
30
+ }, {
31
+ id: string;
32
+ createdAt: string | Date;
33
+ updatedAt: string | Date;
34
+ speed: string;
35
+ transition: string;
36
+ timeout: number;
37
+ order: number;
38
+ title: string;
39
+ start: Date | null;
40
+ end: Date | null;
41
+ slideshowId: string;
42
+ caption: string;
43
+ fileId: string;
44
+ }>;
45
+ export declare const CreateSlide: z.ZodObject<{
46
+ id: z.ZodOptional<z.ZodString>;
47
+ slideshowId: z.ZodString;
48
+ title: z.ZodString;
49
+ caption: z.ZodString;
50
+ order: z.ZodNumber;
51
+ fileId: z.ZodString;
52
+ speed: z.ZodString;
53
+ transition: z.ZodString;
54
+ timeout: z.ZodNumber;
55
+ start: z.ZodNullable<z.ZodDate>;
56
+ end: z.ZodNullable<z.ZodDate>;
57
+ }, "strip", z.ZodTypeAny, {
58
+ speed: string;
59
+ transition: string;
60
+ timeout: number;
61
+ order: number;
62
+ title: string;
63
+ start: Date | null;
64
+ end: Date | null;
65
+ slideshowId: string;
66
+ caption: string;
67
+ fileId: string;
68
+ id?: string | undefined;
69
+ }, {
70
+ speed: string;
71
+ transition: string;
72
+ timeout: number;
73
+ order: number;
74
+ title: string;
75
+ start: Date | null;
76
+ end: Date | null;
77
+ slideshowId: string;
78
+ caption: string;
79
+ fileId: string;
80
+ id?: string | undefined;
81
+ }>;
82
+ export declare const CreateSlides: z.ZodArray<z.ZodObject<{
83
+ id: z.ZodOptional<z.ZodString>;
84
+ slideshowId: z.ZodString;
85
+ title: z.ZodString;
86
+ caption: z.ZodString;
87
+ order: z.ZodNumber;
88
+ fileId: z.ZodString;
89
+ speed: z.ZodString;
90
+ transition: z.ZodString;
91
+ timeout: z.ZodNumber;
92
+ start: z.ZodNullable<z.ZodDate>;
93
+ end: z.ZodNullable<z.ZodDate>;
94
+ }, "strip", z.ZodTypeAny, {
95
+ speed: string;
96
+ transition: string;
97
+ timeout: number;
98
+ order: number;
99
+ title: string;
100
+ start: Date | null;
101
+ end: Date | null;
102
+ slideshowId: string;
103
+ caption: string;
104
+ fileId: string;
105
+ id?: string | undefined;
106
+ }, {
107
+ speed: string;
108
+ transition: string;
109
+ timeout: number;
110
+ order: number;
111
+ title: string;
112
+ start: Date | null;
113
+ end: Date | null;
114
+ slideshowId: string;
115
+ caption: string;
116
+ fileId: string;
117
+ id?: string | undefined;
118
+ }>, "many">;
119
+ export declare const UpdateSlide: z.ZodObject<{
120
+ id: z.ZodString;
121
+ slideshowId: z.ZodOptional<z.ZodString>;
122
+ title: z.ZodOptional<z.ZodString>;
123
+ caption: z.ZodOptional<z.ZodString>;
124
+ order: z.ZodOptional<z.ZodNumber>;
125
+ fileId: z.ZodOptional<z.ZodString>;
126
+ speed: z.ZodOptional<z.ZodString>;
127
+ transition: z.ZodOptional<z.ZodString>;
128
+ timeout: z.ZodOptional<z.ZodNumber>;
129
+ start: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
130
+ end: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
131
+ }, "strip", z.ZodTypeAny, {
132
+ id: string;
133
+ speed?: string | undefined;
134
+ transition?: string | undefined;
135
+ timeout?: number | undefined;
136
+ order?: number | undefined;
137
+ title?: string | undefined;
138
+ start?: Date | null | undefined;
139
+ end?: Date | null | undefined;
140
+ slideshowId?: string | undefined;
141
+ caption?: string | undefined;
142
+ fileId?: string | undefined;
143
+ }, {
144
+ id: string;
145
+ speed?: string | undefined;
146
+ transition?: string | undefined;
147
+ timeout?: number | undefined;
148
+ order?: number | undefined;
149
+ title?: string | undefined;
150
+ start?: Date | null | undefined;
151
+ end?: Date | null | undefined;
152
+ slideshowId?: string | undefined;
153
+ caption?: string | undefined;
154
+ fileId?: string | undefined;
155
+ }>;
156
+ export type Slide = z.infer<typeof Slide>;
157
+ export type CreateSlide = z.infer<typeof CreateSlide>;
158
+ export type CreateSlides = z.infer<typeof CreateSlides>;
159
+ export type UpdateSlide = z.infer<typeof UpdateSlide>;
160
+ export declare const SlideIdRequestParams: z.ZodObject<{
161
+ id: z.ZodString;
162
+ }, "strip", z.ZodTypeAny, {
163
+ id: string;
164
+ }, {
165
+ id: string;
166
+ }>;
167
+ export declare const CreateSlideRequestBody: z.ZodObject<{
168
+ slideshowId: z.ZodString;
169
+ title: z.ZodString;
170
+ caption: z.ZodString;
171
+ order: z.ZodNumber;
172
+ fileId: z.ZodString;
173
+ speed: z.ZodString;
174
+ transition: z.ZodString;
175
+ timeout: z.ZodNumber;
176
+ start: z.ZodNullable<z.ZodDate>;
177
+ end: z.ZodNullable<z.ZodDate>;
178
+ }, "strip", z.ZodTypeAny, {
179
+ speed: string;
180
+ transition: string;
181
+ timeout: number;
182
+ order: number;
183
+ title: string;
184
+ start: Date | null;
185
+ end: Date | null;
186
+ slideshowId: string;
187
+ caption: string;
188
+ fileId: string;
189
+ }, {
190
+ speed: string;
191
+ transition: string;
192
+ timeout: number;
193
+ order: number;
194
+ title: string;
195
+ start: Date | null;
196
+ end: Date | null;
197
+ slideshowId: string;
198
+ caption: string;
199
+ fileId: string;
200
+ }>;
201
+ export type CreateSlideRequestBody = z.infer<typeof CreateSlideRequestBody>;
202
+ export declare const UpdateSlideRequestBody: z.ZodObject<{
203
+ id: z.ZodString;
204
+ title: z.ZodOptional<z.ZodString>;
205
+ caption: z.ZodOptional<z.ZodString>;
206
+ order: z.ZodOptional<z.ZodNumber>;
207
+ fileId: z.ZodOptional<z.ZodString>;
208
+ speed: z.ZodOptional<z.ZodString>;
209
+ transition: z.ZodOptional<z.ZodString>;
210
+ timeout: z.ZodOptional<z.ZodNumber>;
211
+ start: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
212
+ end: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
213
+ }, "strip", z.ZodTypeAny, {
214
+ id: string;
215
+ speed?: string | undefined;
216
+ transition?: string | undefined;
217
+ timeout?: number | undefined;
218
+ order?: number | undefined;
219
+ title?: string | undefined;
220
+ start?: Date | null | undefined;
221
+ end?: Date | null | undefined;
222
+ caption?: string | undefined;
223
+ fileId?: string | undefined;
224
+ }, {
225
+ id: string;
226
+ speed?: string | undefined;
227
+ transition?: string | undefined;
228
+ timeout?: number | undefined;
229
+ order?: number | undefined;
230
+ title?: string | undefined;
231
+ start?: Date | null | undefined;
232
+ end?: Date | null | undefined;
233
+ caption?: string | undefined;
234
+ fileId?: string | undefined;
235
+ }>;
236
+ export type UpdateSlideRequestBody = z.infer<typeof UpdateSlideRequestBody>;
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateSlideRequestBody = exports.CreateSlideRequestBody = exports.SlideIdRequestParams = exports.UpdateSlide = exports.CreateSlides = exports.CreateSlide = exports.Slide = void 0;
4
+ var zod_1 = require("zod");
5
+ var zod_utils_1 = require("./zod-utils");
6
+ exports.Slide = zod_1.z.object({
7
+ id: zod_1.z.string(),
8
+ slideshowId: zod_1.z.string(),
9
+ title: zod_1.z.string(),
10
+ caption: zod_1.z.string(),
11
+ order: zod_1.z.number(),
12
+ fileId: zod_1.z.string(),
13
+ speed: zod_1.z.string(),
14
+ transition: zod_1.z.string(),
15
+ timeout: zod_1.z.number(),
16
+ start: zod_1.z.date().nullable(),
17
+ end: zod_1.z.date().nullable(),
18
+ createdAt: zod_utils_1.zodDate,
19
+ updatedAt: zod_utils_1.zodDate,
20
+ });
21
+ exports.CreateSlide = zod_1.z.object({
22
+ id: zod_1.z.string().optional(),
23
+ slideshowId: zod_1.z.string(),
24
+ title: zod_1.z.string(),
25
+ caption: zod_1.z.string(),
26
+ order: zod_1.z.number(),
27
+ fileId: zod_1.z.string(),
28
+ speed: zod_1.z.string(),
29
+ transition: zod_1.z.string(),
30
+ timeout: zod_1.z.number(),
31
+ start: zod_1.z.date().nullable(),
32
+ end: zod_1.z.date().nullable(),
33
+ });
34
+ exports.CreateSlides = zod_1.z.array(exports.CreateSlide);
35
+ exports.UpdateSlide = zod_1.z.object({
36
+ id: zod_1.z.string(),
37
+ slideshowId: zod_1.z.string().optional(),
38
+ title: zod_1.z.string().optional(),
39
+ caption: zod_1.z.string().optional(),
40
+ order: zod_1.z.number().optional(),
41
+ fileId: zod_1.z.string().optional(),
42
+ speed: zod_1.z.string().optional(),
43
+ transition: zod_1.z.string().optional(),
44
+ timeout: zod_1.z.number().optional(),
45
+ start: zod_1.z.date().nullable().optional(),
46
+ end: zod_1.z.date().nullable().optional(),
47
+ });
48
+ // Request
49
+ exports.SlideIdRequestParams = zod_1.z.object({
50
+ id: zod_1.z.string(),
51
+ });
52
+ // Create Slide Request
53
+ exports.CreateSlideRequestBody = zod_1.z.object({
54
+ slideshowId: zod_1.z.string(),
55
+ title: zod_1.z.string(),
56
+ caption: zod_1.z.string(),
57
+ order: zod_1.z.number(),
58
+ fileId: zod_1.z.string(),
59
+ speed: zod_1.z.string(),
60
+ transition: zod_1.z.string(),
61
+ timeout: zod_1.z.number(),
62
+ start: zod_1.z.date().nullable(),
63
+ end: zod_1.z.date().nullable(),
64
+ });
65
+ // Update Slide Request
66
+ exports.UpdateSlideRequestBody = zod_1.z.object({
67
+ id: zod_1.z.string(),
68
+ title: zod_1.z.string().optional(),
69
+ caption: zod_1.z.string().optional(),
70
+ order: zod_1.z.number().optional(),
71
+ fileId: zod_1.z.string().optional(),
72
+ speed: zod_1.z.string().optional(),
73
+ transition: zod_1.z.string().optional(),
74
+ timeout: zod_1.z.number().optional(),
75
+ start: zod_1.z.date().nullable().optional(),
76
+ end: zod_1.z.date().nullable().optional(),
77
+ });
@@ -0,0 +1,385 @@
1
+ import { z } from 'zod';
2
+ export declare const SlideshowProject: z.ZodObject<{
3
+ id: z.ZodString;
4
+ projectId: z.ZodString;
5
+ slideshowId: 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
+ createdAt: Date;
11
+ updatedAt: Date;
12
+ projectId: string;
13
+ slideshowId: string;
14
+ }, {
15
+ id: string;
16
+ createdAt: string | Date;
17
+ updatedAt: string | Date;
18
+ projectId: string;
19
+ slideshowId: string;
20
+ }>;
21
+ export declare const CreateSlideshowProject: z.ZodObject<{
22
+ slideshowId: z.ZodString;
23
+ projectId: z.ZodString;
24
+ }, "strip", z.ZodTypeAny, {
25
+ projectId: string;
26
+ slideshowId: string;
27
+ }, {
28
+ projectId: string;
29
+ slideshowId: string;
30
+ }>;
31
+ export declare const CreateSlideshowProjects: z.ZodObject<{
32
+ slideshowId: z.ZodString;
33
+ projectIds: z.ZodArray<z.ZodString, "many">;
34
+ }, "strip", z.ZodTypeAny, {
35
+ projectIds: string[];
36
+ slideshowId: string;
37
+ }, {
38
+ projectIds: string[];
39
+ slideshowId: string;
40
+ }>;
41
+ export type SlideshowProject = z.infer<typeof SlideshowProject>;
42
+ export type CreateSlideshowProject = z.infer<typeof CreateSlideshowProject>;
43
+ export type CreateSlideshowProjects = z.infer<typeof CreateSlideshowProjects>;
44
+ export declare const Slideshow: z.ZodObject<{
45
+ id: z.ZodString;
46
+ accountId: z.ZodString;
47
+ name: z.ZodString;
48
+ allProjects: z.ZodBoolean;
49
+ createdAt: z.ZodUnion<[z.ZodDate, z.ZodEffects<z.ZodString, Date, string>]>;
50
+ updatedAt: z.ZodUnion<[z.ZodDate, z.ZodEffects<z.ZodString, Date, string>]>;
51
+ }, "strip", z.ZodTypeAny, {
52
+ id: string;
53
+ name: string;
54
+ createdAt: Date;
55
+ updatedAt: Date;
56
+ accountId: string;
57
+ allProjects: boolean;
58
+ }, {
59
+ id: string;
60
+ name: string;
61
+ createdAt: string | Date;
62
+ updatedAt: string | Date;
63
+ accountId: string;
64
+ allProjects: boolean;
65
+ }>;
66
+ export declare const SlideshowWithProjects: z.ZodObject<z.objectUtil.extendShape<{
67
+ id: z.ZodString;
68
+ accountId: z.ZodString;
69
+ name: 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
+ slideshowProjects: z.ZodArray<z.ZodObject<{
75
+ id: z.ZodString;
76
+ projectId: z.ZodString;
77
+ slideshowId: 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
+ createdAt: Date;
83
+ updatedAt: Date;
84
+ projectId: string;
85
+ slideshowId: string;
86
+ }, {
87
+ id: string;
88
+ createdAt: string | Date;
89
+ updatedAt: string | Date;
90
+ projectId: string;
91
+ slideshowId: string;
92
+ }>, "many">;
93
+ }>, "strip", z.ZodTypeAny, {
94
+ id: string;
95
+ name: string;
96
+ createdAt: Date;
97
+ updatedAt: Date;
98
+ accountId: string;
99
+ allProjects: boolean;
100
+ slideshowProjects: {
101
+ id: string;
102
+ createdAt: Date;
103
+ updatedAt: Date;
104
+ projectId: string;
105
+ slideshowId: string;
106
+ }[];
107
+ }, {
108
+ id: string;
109
+ name: string;
110
+ createdAt: string | Date;
111
+ updatedAt: string | Date;
112
+ accountId: string;
113
+ allProjects: boolean;
114
+ slideshowProjects: {
115
+ id: string;
116
+ createdAt: string | Date;
117
+ updatedAt: string | Date;
118
+ projectId: string;
119
+ slideshowId: string;
120
+ }[];
121
+ }>;
122
+ export declare const SlideshowExtended: z.ZodObject<z.objectUtil.extendShape<{
123
+ id: z.ZodString;
124
+ accountId: z.ZodString;
125
+ name: z.ZodString;
126
+ allProjects: z.ZodBoolean;
127
+ createdAt: z.ZodUnion<[z.ZodDate, z.ZodEffects<z.ZodString, Date, string>]>;
128
+ updatedAt: z.ZodUnion<[z.ZodDate, z.ZodEffects<z.ZodString, Date, string>]>;
129
+ }, {
130
+ slides: z.ZodArray<z.ZodObject<{
131
+ id: z.ZodString;
132
+ slideshowId: z.ZodString;
133
+ title: z.ZodString;
134
+ caption: z.ZodString;
135
+ order: z.ZodNumber;
136
+ fileId: z.ZodString;
137
+ speed: z.ZodString;
138
+ transition: z.ZodString;
139
+ timeout: z.ZodNumber;
140
+ start: z.ZodNullable<z.ZodDate>;
141
+ end: z.ZodNullable<z.ZodDate>;
142
+ createdAt: z.ZodUnion<[z.ZodDate, z.ZodEffects<z.ZodString, Date, string>]>;
143
+ updatedAt: z.ZodUnion<[z.ZodDate, z.ZodEffects<z.ZodString, Date, string>]>;
144
+ }, "strip", z.ZodTypeAny, {
145
+ id: string;
146
+ createdAt: Date;
147
+ updatedAt: Date;
148
+ speed: string;
149
+ transition: string;
150
+ timeout: number;
151
+ order: number;
152
+ title: string;
153
+ start: Date | null;
154
+ end: Date | null;
155
+ slideshowId: string;
156
+ caption: string;
157
+ fileId: string;
158
+ }, {
159
+ id: string;
160
+ createdAt: string | Date;
161
+ updatedAt: string | Date;
162
+ speed: string;
163
+ transition: string;
164
+ timeout: number;
165
+ order: number;
166
+ title: string;
167
+ start: Date | null;
168
+ end: Date | null;
169
+ slideshowId: string;
170
+ caption: string;
171
+ fileId: string;
172
+ }>, "many">;
173
+ slideshowProjects: z.ZodArray<z.ZodObject<{
174
+ id: z.ZodString;
175
+ projectId: z.ZodString;
176
+ slideshowId: z.ZodString;
177
+ createdAt: z.ZodUnion<[z.ZodDate, z.ZodEffects<z.ZodString, Date, string>]>;
178
+ updatedAt: z.ZodUnion<[z.ZodDate, z.ZodEffects<z.ZodString, Date, string>]>;
179
+ }, "strip", z.ZodTypeAny, {
180
+ id: string;
181
+ createdAt: Date;
182
+ updatedAt: Date;
183
+ projectId: string;
184
+ slideshowId: string;
185
+ }, {
186
+ id: string;
187
+ createdAt: string | Date;
188
+ updatedAt: string | Date;
189
+ projectId: string;
190
+ slideshowId: string;
191
+ }>, "many">;
192
+ }>, "strip", z.ZodTypeAny, {
193
+ id: string;
194
+ name: string;
195
+ createdAt: Date;
196
+ updatedAt: Date;
197
+ accountId: string;
198
+ allProjects: boolean;
199
+ slideshowProjects: {
200
+ id: string;
201
+ createdAt: Date;
202
+ updatedAt: Date;
203
+ projectId: string;
204
+ slideshowId: string;
205
+ }[];
206
+ slides: {
207
+ id: string;
208
+ createdAt: Date;
209
+ updatedAt: Date;
210
+ speed: string;
211
+ transition: string;
212
+ timeout: number;
213
+ order: number;
214
+ title: string;
215
+ start: Date | null;
216
+ end: Date | null;
217
+ slideshowId: string;
218
+ caption: string;
219
+ fileId: string;
220
+ }[];
221
+ }, {
222
+ id: string;
223
+ name: string;
224
+ createdAt: string | Date;
225
+ updatedAt: string | Date;
226
+ accountId: string;
227
+ allProjects: boolean;
228
+ slideshowProjects: {
229
+ id: string;
230
+ createdAt: string | Date;
231
+ updatedAt: string | Date;
232
+ projectId: string;
233
+ slideshowId: string;
234
+ }[];
235
+ slides: {
236
+ id: string;
237
+ createdAt: string | Date;
238
+ updatedAt: string | Date;
239
+ speed: string;
240
+ transition: string;
241
+ timeout: number;
242
+ order: number;
243
+ title: string;
244
+ start: Date | null;
245
+ end: Date | null;
246
+ slideshowId: string;
247
+ caption: string;
248
+ fileId: string;
249
+ }[];
250
+ }>;
251
+ export declare const CreateSlideshow: z.ZodObject<{
252
+ accountId: z.ZodString;
253
+ name: z.ZodString;
254
+ allProjects: z.ZodDefault<z.ZodBoolean>;
255
+ }, "strip", z.ZodTypeAny, {
256
+ name: string;
257
+ accountId: string;
258
+ allProjects: boolean;
259
+ }, {
260
+ name: string;
261
+ accountId: string;
262
+ allProjects?: boolean | undefined;
263
+ }>;
264
+ export declare const UpdateSlideshow: z.ZodObject<{
265
+ id: z.ZodString;
266
+ accountId: z.ZodOptional<z.ZodString>;
267
+ name: z.ZodOptional<z.ZodString>;
268
+ allProjects: z.ZodOptional<z.ZodBoolean>;
269
+ }, "strip", z.ZodTypeAny, {
270
+ id: string;
271
+ name?: string | undefined;
272
+ accountId?: string | undefined;
273
+ allProjects?: boolean | undefined;
274
+ }, {
275
+ id: string;
276
+ name?: string | undefined;
277
+ accountId?: string | undefined;
278
+ allProjects?: boolean | undefined;
279
+ }>;
280
+ export declare const SlideshowIdRequestParams: z.ZodObject<{
281
+ id: z.ZodString;
282
+ }, "strip", z.ZodTypeAny, {
283
+ id: string;
284
+ }, {
285
+ id: string;
286
+ }>;
287
+ export declare const CreateSlideshowRequestBody: z.ZodObject<{
288
+ name: z.ZodString;
289
+ projectIds: z.ZodArray<z.ZodString, "many">;
290
+ allProjects: z.ZodDefault<z.ZodBoolean>;
291
+ }, "strip", z.ZodTypeAny, {
292
+ name: string;
293
+ projectIds: string[];
294
+ allProjects: boolean;
295
+ }, {
296
+ name: string;
297
+ projectIds: string[];
298
+ allProjects?: boolean | undefined;
299
+ }>;
300
+ export declare const UpdateSlideshowRequestBody: z.ZodObject<{
301
+ name: z.ZodOptional<z.ZodString>;
302
+ slides: z.ZodOptional<z.ZodArray<z.ZodObject<{
303
+ id: z.ZodString;
304
+ slideshowId: z.ZodOptional<z.ZodString>;
305
+ title: z.ZodOptional<z.ZodString>;
306
+ caption: z.ZodOptional<z.ZodString>;
307
+ order: z.ZodOptional<z.ZodNumber>;
308
+ fileId: z.ZodOptional<z.ZodString>;
309
+ speed: z.ZodOptional<z.ZodString>;
310
+ transition: z.ZodOptional<z.ZodString>;
311
+ timeout: z.ZodOptional<z.ZodNumber>;
312
+ start: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
313
+ end: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
314
+ }, "strip", z.ZodTypeAny, {
315
+ id: string;
316
+ speed?: string | undefined;
317
+ transition?: string | undefined;
318
+ timeout?: number | undefined;
319
+ order?: number | undefined;
320
+ title?: string | undefined;
321
+ start?: Date | null | undefined;
322
+ end?: Date | null | undefined;
323
+ slideshowId?: string | undefined;
324
+ caption?: string | undefined;
325
+ fileId?: string | undefined;
326
+ }, {
327
+ id: string;
328
+ speed?: string | undefined;
329
+ transition?: string | undefined;
330
+ timeout?: number | undefined;
331
+ order?: number | undefined;
332
+ title?: string | undefined;
333
+ start?: Date | null | undefined;
334
+ end?: Date | null | undefined;
335
+ slideshowId?: string | undefined;
336
+ caption?: string | undefined;
337
+ fileId?: string | undefined;
338
+ }>, "many">>;
339
+ deletedSlideIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
340
+ allProjects: z.ZodOptional<z.ZodBoolean>;
341
+ projectIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
342
+ }, "strip", z.ZodTypeAny, {
343
+ deletedSlideIds: string[];
344
+ name?: string | undefined;
345
+ projectIds?: string[] | undefined;
346
+ allProjects?: boolean | undefined;
347
+ slides?: {
348
+ id: string;
349
+ speed?: string | undefined;
350
+ transition?: string | undefined;
351
+ timeout?: number | undefined;
352
+ order?: number | undefined;
353
+ title?: string | undefined;
354
+ start?: Date | null | undefined;
355
+ end?: Date | null | undefined;
356
+ slideshowId?: string | undefined;
357
+ caption?: string | undefined;
358
+ fileId?: string | undefined;
359
+ }[] | undefined;
360
+ }, {
361
+ name?: string | undefined;
362
+ projectIds?: string[] | undefined;
363
+ allProjects?: boolean | undefined;
364
+ slides?: {
365
+ id: string;
366
+ speed?: string | undefined;
367
+ transition?: string | undefined;
368
+ timeout?: number | undefined;
369
+ order?: number | undefined;
370
+ title?: string | undefined;
371
+ start?: Date | null | undefined;
372
+ end?: Date | null | undefined;
373
+ slideshowId?: string | undefined;
374
+ caption?: string | undefined;
375
+ fileId?: string | undefined;
376
+ }[] | undefined;
377
+ deletedSlideIds?: string[] | undefined;
378
+ }>;
379
+ export type Slideshow = z.infer<typeof Slideshow>;
380
+ export type SlideshowWithProjects = z.infer<typeof SlideshowWithProjects>;
381
+ export type SlideshowExtended = z.infer<typeof SlideshowExtended>;
382
+ export type CreateSlideshow = z.infer<typeof CreateSlideshow>;
383
+ export type UpdateSlideshow = z.infer<typeof UpdateSlideshow>;
384
+ export type CreateSlideshowRequestBody = z.infer<typeof CreateSlideshowRequestBody>;
385
+ export type UpdateSlideshowRequestBody = z.infer<typeof UpdateSlideshowRequestBody>;
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateSlideshowRequestBody = exports.CreateSlideshowRequestBody = exports.SlideshowIdRequestParams = exports.UpdateSlideshow = exports.CreateSlideshow = exports.SlideshowExtended = exports.SlideshowWithProjects = exports.Slideshow = exports.CreateSlideshowProjects = exports.CreateSlideshowProject = exports.SlideshowProject = void 0;
4
+ var zod_1 = require("zod");
5
+ var slide_type_1 = require("./slide.type");
6
+ var zod_utils_1 = require("./zod-utils");
7
+ // Slideshow Project
8
+ exports.SlideshowProject = zod_1.z.object({
9
+ id: zod_1.z.string(),
10
+ projectId: zod_1.z.string(),
11
+ slideshowId: zod_1.z.string(),
12
+ createdAt: zod_utils_1.zodDate,
13
+ updatedAt: zod_utils_1.zodDate,
14
+ });
15
+ exports.CreateSlideshowProject = zod_1.z.object({
16
+ slideshowId: zod_1.z.string(),
17
+ projectId: zod_1.z.string(),
18
+ });
19
+ exports.CreateSlideshowProjects = zod_1.z.object({
20
+ slideshowId: zod_1.z.string(),
21
+ projectIds: zod_1.z.array(zod_1.z.string()),
22
+ });
23
+ // Slideshow
24
+ exports.Slideshow = zod_1.z.object({
25
+ id: zod_1.z.string(),
26
+ accountId: zod_1.z.string(),
27
+ name: zod_1.z.string(),
28
+ allProjects: zod_1.z.boolean(),
29
+ createdAt: zod_utils_1.zodDate,
30
+ updatedAt: zod_utils_1.zodDate,
31
+ });
32
+ exports.SlideshowWithProjects = exports.Slideshow.extend({
33
+ slideshowProjects: zod_1.z.array(exports.SlideshowProject),
34
+ });
35
+ exports.SlideshowExtended = exports.Slideshow.extend({
36
+ slides: zod_1.z.array(slide_type_1.Slide),
37
+ slideshowProjects: zod_1.z.array(exports.SlideshowProject),
38
+ });
39
+ exports.CreateSlideshow = zod_1.z.object({
40
+ accountId: zod_1.z.string(),
41
+ name: zod_1.z.string(),
42
+ allProjects: zod_1.z.boolean().default(true),
43
+ });
44
+ exports.UpdateSlideshow = zod_1.z.object({
45
+ id: zod_1.z.string(),
46
+ accountId: zod_1.z.string().optional(),
47
+ name: zod_1.z.string().optional(),
48
+ allProjects: zod_1.z.boolean().optional(),
49
+ });
50
+ // Request
51
+ exports.SlideshowIdRequestParams = zod_1.z.object({
52
+ id: zod_1.z.string(),
53
+ });
54
+ // Create Slideshow Request
55
+ exports.CreateSlideshowRequestBody = zod_1.z.object({
56
+ name: zod_1.z.string(),
57
+ projectIds: zod_1.z.array(zod_1.z.string()),
58
+ allProjects: zod_1.z.boolean().default(true),
59
+ });
60
+ // Update Slideshow Request
61
+ exports.UpdateSlideshowRequestBody = zod_1.z.object({
62
+ name: zod_1.z.string().optional(),
63
+ slides: zod_1.z.array(slide_type_1.UpdateSlide).optional(),
64
+ deletedSlideIds: zod_1.z.array(zod_1.z.string()).optional().default([]),
65
+ allProjects: zod_1.z.boolean().optional(),
66
+ projectIds: zod_1.z.array(zod_1.z.string()).optional(),
67
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "api-arreya-types",
3
- "version": "1.0.32",
3
+ "version": "1.0.36",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.js",
6
6
  "private": false,