api-arreya-types 1.0.16 → 1.0.18
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/device.type.d.ts +76 -4
- package/dist/device.type.js +5 -1
- package/dist/page.type.d.ts +6 -6
- package/dist/page.type.js +2 -2
- package/dist/presentation.type.d.ts +10 -10
- package/dist/template.type.d.ts +12 -12
- package/package.json +1 -1
package/dist/device.type.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { Project } from './project.type';
|
|
3
2
|
export declare const Device: z.ZodObject<{
|
|
4
3
|
id: z.ZodString;
|
|
5
4
|
name: z.ZodNullable<z.ZodString>;
|
|
@@ -31,6 +30,81 @@ export declare const Device: z.ZodObject<{
|
|
|
31
30
|
userAgent: string;
|
|
32
31
|
online: boolean;
|
|
33
32
|
}>;
|
|
33
|
+
export declare const DeviceExtended: z.ZodObject<z.objectUtil.extendShape<{
|
|
34
|
+
id: z.ZodString;
|
|
35
|
+
name: z.ZodNullable<z.ZodString>;
|
|
36
|
+
projectId: z.ZodNullable<z.ZodString>;
|
|
37
|
+
code: z.ZodNullable<z.ZodString>;
|
|
38
|
+
ip: z.ZodString;
|
|
39
|
+
userAgent: z.ZodString;
|
|
40
|
+
online: z.ZodBoolean;
|
|
41
|
+
createdAt: z.ZodDate;
|
|
42
|
+
updatedAt: z.ZodDate;
|
|
43
|
+
}, {
|
|
44
|
+
project: z.ZodNullable<z.ZodObject<{
|
|
45
|
+
id: z.ZodString;
|
|
46
|
+
name: z.ZodString;
|
|
47
|
+
accountId: z.ZodString;
|
|
48
|
+
status: z.ZodString;
|
|
49
|
+
private: z.ZodBoolean;
|
|
50
|
+
createdAt: z.ZodDate;
|
|
51
|
+
updatedAt: z.ZodDate;
|
|
52
|
+
}, "strip", z.ZodTypeAny, {
|
|
53
|
+
id: string;
|
|
54
|
+
name: string;
|
|
55
|
+
status: string;
|
|
56
|
+
private: boolean;
|
|
57
|
+
createdAt: Date;
|
|
58
|
+
updatedAt: Date;
|
|
59
|
+
accountId: string;
|
|
60
|
+
}, {
|
|
61
|
+
id: string;
|
|
62
|
+
name: string;
|
|
63
|
+
status: string;
|
|
64
|
+
private: boolean;
|
|
65
|
+
createdAt: Date;
|
|
66
|
+
updatedAt: Date;
|
|
67
|
+
accountId: string;
|
|
68
|
+
}>>;
|
|
69
|
+
}>, "strip", z.ZodTypeAny, {
|
|
70
|
+
id: string;
|
|
71
|
+
name: string | null;
|
|
72
|
+
createdAt: Date;
|
|
73
|
+
updatedAt: Date;
|
|
74
|
+
code: string | null;
|
|
75
|
+
projectId: string | null;
|
|
76
|
+
ip: string;
|
|
77
|
+
userAgent: string;
|
|
78
|
+
online: boolean;
|
|
79
|
+
project: {
|
|
80
|
+
id: string;
|
|
81
|
+
name: string;
|
|
82
|
+
status: string;
|
|
83
|
+
private: boolean;
|
|
84
|
+
createdAt: Date;
|
|
85
|
+
updatedAt: Date;
|
|
86
|
+
accountId: string;
|
|
87
|
+
} | null;
|
|
88
|
+
}, {
|
|
89
|
+
id: string;
|
|
90
|
+
name: string | null;
|
|
91
|
+
createdAt: Date;
|
|
92
|
+
updatedAt: Date;
|
|
93
|
+
code: string | null;
|
|
94
|
+
projectId: string | null;
|
|
95
|
+
ip: string;
|
|
96
|
+
userAgent: string;
|
|
97
|
+
online: boolean;
|
|
98
|
+
project: {
|
|
99
|
+
id: string;
|
|
100
|
+
name: string;
|
|
101
|
+
status: string;
|
|
102
|
+
private: boolean;
|
|
103
|
+
createdAt: Date;
|
|
104
|
+
updatedAt: Date;
|
|
105
|
+
accountId: string;
|
|
106
|
+
} | null;
|
|
107
|
+
}>;
|
|
34
108
|
export declare const CreateDevice: z.ZodObject<{
|
|
35
109
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
110
|
projectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -92,9 +166,7 @@ export declare const PairDevice: z.ZodObject<{
|
|
|
92
166
|
projectId: string;
|
|
93
167
|
}>;
|
|
94
168
|
export type Device = z.infer<typeof Device>;
|
|
95
|
-
export type DeviceExtended =
|
|
96
|
-
project: Project | null;
|
|
97
|
-
};
|
|
169
|
+
export type DeviceExtended = z.infer<typeof DeviceExtended>;
|
|
98
170
|
export type CreateDevice = z.infer<typeof CreateDevice>;
|
|
99
171
|
export type UpdateDevice = z.infer<typeof UpdateDevice>;
|
|
100
172
|
export type PairDevice = z.infer<typeof PairDevice>;
|
package/dist/device.type.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AddDeviceTagRequestBody = exports.PairDeviceRequestBody = exports.UpdateDeviceRequestBody = exports.CreateDeviceRequestBody = exports.MoveDevicesRequestBody = exports.DeviceIdsRequestBody = exports.DeviceIdRequestParams = exports.PairDevice = exports.UpdateDevice = exports.CreateDevice = exports.Device = void 0;
|
|
3
|
+
exports.AddDeviceTagRequestBody = exports.PairDeviceRequestBody = exports.UpdateDeviceRequestBody = exports.CreateDeviceRequestBody = exports.MoveDevicesRequestBody = exports.DeviceIdsRequestBody = exports.DeviceIdRequestParams = exports.PairDevice = exports.UpdateDevice = exports.CreateDevice = exports.DeviceExtended = exports.Device = void 0;
|
|
4
4
|
var zod_1 = require("zod");
|
|
5
|
+
var project_type_1 = require("./project.type");
|
|
5
6
|
exports.Device = zod_1.z.object({
|
|
6
7
|
id: zod_1.z.string(),
|
|
7
8
|
name: zod_1.z.string().nullable(),
|
|
@@ -13,6 +14,9 @@ exports.Device = zod_1.z.object({
|
|
|
13
14
|
createdAt: zod_1.z.date(),
|
|
14
15
|
updatedAt: zod_1.z.date(),
|
|
15
16
|
});
|
|
17
|
+
exports.DeviceExtended = exports.Device.extend({
|
|
18
|
+
project: project_type_1.Project.nullable(),
|
|
19
|
+
});
|
|
16
20
|
exports.CreateDevice = zod_1.z.object({
|
|
17
21
|
name: zod_1.z.string().nullable().optional(),
|
|
18
22
|
projectId: zod_1.z.string().nullable().optional(),
|
package/dist/page.type.d.ts
CHANGED
|
@@ -113,32 +113,32 @@ export declare const UpdatePage: z.ZodObject<{
|
|
|
113
113
|
presentationId: z.ZodOptional<z.ZodString>;
|
|
114
114
|
layout: z.ZodOptional<z.ZodString>;
|
|
115
115
|
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
116
|
-
duration: z.ZodNumber
|
|
116
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
117
117
|
animation: z.ZodOptional<z.ZodString>;
|
|
118
|
-
speed: z.ZodNumber
|
|
118
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
119
119
|
order: z.ZodOptional<z.ZodNumber>;
|
|
120
120
|
preview: z.ZodOptional<z.ZodString>;
|
|
121
121
|
}, "strip", z.ZodTypeAny, {
|
|
122
122
|
id: string;
|
|
123
|
-
speed: number;
|
|
124
|
-
duration: number;
|
|
125
123
|
name?: string | undefined;
|
|
126
124
|
preview?: string | undefined;
|
|
127
125
|
presentationId?: string | undefined;
|
|
128
126
|
layout?: string | undefined;
|
|
127
|
+
speed?: number | undefined;
|
|
129
128
|
order?: number | undefined;
|
|
130
129
|
backgroundColor?: string | undefined;
|
|
130
|
+
duration?: number | undefined;
|
|
131
131
|
animation?: string | undefined;
|
|
132
132
|
}, {
|
|
133
133
|
id: string;
|
|
134
|
-
speed: number;
|
|
135
|
-
duration: number;
|
|
136
134
|
name?: string | undefined;
|
|
137
135
|
preview?: string | undefined;
|
|
138
136
|
presentationId?: string | undefined;
|
|
139
137
|
layout?: string | undefined;
|
|
138
|
+
speed?: number | undefined;
|
|
140
139
|
order?: number | undefined;
|
|
141
140
|
backgroundColor?: string | undefined;
|
|
141
|
+
duration?: number | undefined;
|
|
142
142
|
animation?: string | undefined;
|
|
143
143
|
}>;
|
|
144
144
|
export type Page = z.infer<typeof Page>;
|
package/dist/page.type.js
CHANGED
|
@@ -36,9 +36,9 @@ exports.UpdatePage = zod_1.z.object({
|
|
|
36
36
|
presentationId: zod_1.z.string().optional(),
|
|
37
37
|
layout: zod_1.z.string().optional(),
|
|
38
38
|
backgroundColor: zod_1.z.string().optional(),
|
|
39
|
-
duration: zod_1.z.number(), // speed: z.number().nullable().optional(),
|
|
39
|
+
duration: zod_1.z.number().optional(), // speed: z.number().nullable().optional(),
|
|
40
40
|
animation: zod_1.z.string().optional(), // transition: z.number().nullable().optional(),
|
|
41
|
-
speed: zod_1.z.number(), // timeout: z.number().nullable().optional(),
|
|
41
|
+
speed: zod_1.z.number().optional(), // timeout: z.number().nullable().optional(),
|
|
42
42
|
order: zod_1.z.number().optional(),
|
|
43
43
|
preview: zod_1.z.string().optional(),
|
|
44
44
|
});
|
|
@@ -221,32 +221,32 @@ export declare const UpdatePresentationRequestBody: z.ZodObject<{
|
|
|
221
221
|
presentationId: z.ZodOptional<z.ZodString>;
|
|
222
222
|
layout: z.ZodOptional<z.ZodString>;
|
|
223
223
|
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
224
|
-
duration: z.ZodNumber
|
|
224
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
225
225
|
animation: z.ZodOptional<z.ZodString>;
|
|
226
|
-
speed: z.ZodNumber
|
|
226
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
227
227
|
order: z.ZodOptional<z.ZodNumber>;
|
|
228
228
|
preview: z.ZodOptional<z.ZodString>;
|
|
229
229
|
}, "strip", z.ZodTypeAny, {
|
|
230
230
|
id: string;
|
|
231
|
-
speed: number;
|
|
232
|
-
duration: number;
|
|
233
231
|
name?: string | undefined;
|
|
234
232
|
preview?: string | undefined;
|
|
235
233
|
presentationId?: string | undefined;
|
|
236
234
|
layout?: string | undefined;
|
|
235
|
+
speed?: number | undefined;
|
|
237
236
|
order?: number | undefined;
|
|
238
237
|
backgroundColor?: string | undefined;
|
|
238
|
+
duration?: number | undefined;
|
|
239
239
|
animation?: string | undefined;
|
|
240
240
|
}, {
|
|
241
241
|
id: string;
|
|
242
|
-
speed: number;
|
|
243
|
-
duration: number;
|
|
244
242
|
name?: string | undefined;
|
|
245
243
|
preview?: string | undefined;
|
|
246
244
|
presentationId?: string | undefined;
|
|
247
245
|
layout?: string | undefined;
|
|
246
|
+
speed?: number | undefined;
|
|
248
247
|
order?: number | undefined;
|
|
249
248
|
backgroundColor?: string | undefined;
|
|
249
|
+
duration?: number | undefined;
|
|
250
250
|
animation?: string | undefined;
|
|
251
251
|
}>, "many">>;
|
|
252
252
|
deletedPageIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -260,14 +260,14 @@ export declare const UpdatePresentationRequestBody: z.ZodObject<{
|
|
|
260
260
|
previewUrl?: string | null | undefined;
|
|
261
261
|
pages?: {
|
|
262
262
|
id: string;
|
|
263
|
-
speed: number;
|
|
264
|
-
duration: number;
|
|
265
263
|
name?: string | undefined;
|
|
266
264
|
preview?: string | undefined;
|
|
267
265
|
presentationId?: string | undefined;
|
|
268
266
|
layout?: string | undefined;
|
|
267
|
+
speed?: number | undefined;
|
|
269
268
|
order?: number | undefined;
|
|
270
269
|
backgroundColor?: string | undefined;
|
|
270
|
+
duration?: number | undefined;
|
|
271
271
|
animation?: string | undefined;
|
|
272
272
|
}[] | undefined;
|
|
273
273
|
}, {
|
|
@@ -279,14 +279,14 @@ export declare const UpdatePresentationRequestBody: z.ZodObject<{
|
|
|
279
279
|
previewUrl?: string | null | undefined;
|
|
280
280
|
pages?: {
|
|
281
281
|
id: string;
|
|
282
|
-
speed: number;
|
|
283
|
-
duration: number;
|
|
284
282
|
name?: string | undefined;
|
|
285
283
|
preview?: string | undefined;
|
|
286
284
|
presentationId?: string | undefined;
|
|
287
285
|
layout?: string | undefined;
|
|
286
|
+
speed?: number | undefined;
|
|
288
287
|
order?: number | undefined;
|
|
289
288
|
backgroundColor?: string | undefined;
|
|
289
|
+
duration?: number | undefined;
|
|
290
290
|
animation?: string | undefined;
|
|
291
291
|
}[] | undefined;
|
|
292
292
|
deletedPageIds?: string[] | undefined;
|
package/dist/template.type.d.ts
CHANGED
|
@@ -201,9 +201,9 @@ export declare const PageTemplateUpdate: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
201
201
|
presentationId: z.ZodOptional<z.ZodString>;
|
|
202
202
|
layout: z.ZodOptional<z.ZodString>;
|
|
203
203
|
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
204
|
-
duration: z.ZodNumber
|
|
204
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
205
205
|
animation: z.ZodOptional<z.ZodString>;
|
|
206
|
-
speed: z.ZodNumber
|
|
206
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
207
207
|
order: z.ZodOptional<z.ZodNumber>;
|
|
208
208
|
preview: z.ZodOptional<z.ZodString>;
|
|
209
209
|
}, {
|
|
@@ -211,26 +211,26 @@ export declare const PageTemplateUpdate: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
211
211
|
}>, "strip", z.ZodTypeAny, {
|
|
212
212
|
id: string;
|
|
213
213
|
type: string;
|
|
214
|
-
speed: number;
|
|
215
|
-
duration: number;
|
|
216
214
|
name?: string | undefined;
|
|
217
215
|
preview?: string | undefined;
|
|
218
216
|
presentationId?: string | undefined;
|
|
219
217
|
layout?: string | undefined;
|
|
218
|
+
speed?: number | undefined;
|
|
220
219
|
order?: number | undefined;
|
|
221
220
|
backgroundColor?: string | undefined;
|
|
221
|
+
duration?: number | undefined;
|
|
222
222
|
animation?: string | undefined;
|
|
223
223
|
}, {
|
|
224
224
|
id: string;
|
|
225
225
|
type: string;
|
|
226
|
-
speed: number;
|
|
227
|
-
duration: number;
|
|
228
226
|
name?: string | undefined;
|
|
229
227
|
preview?: string | undefined;
|
|
230
228
|
presentationId?: string | undefined;
|
|
231
229
|
layout?: string | undefined;
|
|
230
|
+
speed?: number | undefined;
|
|
232
231
|
order?: number | undefined;
|
|
233
232
|
backgroundColor?: string | undefined;
|
|
233
|
+
duration?: number | undefined;
|
|
234
234
|
animation?: string | undefined;
|
|
235
235
|
}>;
|
|
236
236
|
export declare const TemplateUpdate: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
|
|
@@ -273,9 +273,9 @@ export declare const TemplateUpdate: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
273
273
|
presentationId: z.ZodOptional<z.ZodString>;
|
|
274
274
|
layout: z.ZodOptional<z.ZodString>;
|
|
275
275
|
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
276
|
-
duration: z.ZodNumber
|
|
276
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
277
277
|
animation: z.ZodOptional<z.ZodString>;
|
|
278
|
-
speed: z.ZodNumber
|
|
278
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
279
279
|
order: z.ZodOptional<z.ZodNumber>;
|
|
280
280
|
preview: z.ZodOptional<z.ZodString>;
|
|
281
281
|
}, {
|
|
@@ -283,26 +283,26 @@ export declare const TemplateUpdate: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
283
283
|
}>, "strip", z.ZodTypeAny, {
|
|
284
284
|
id: string;
|
|
285
285
|
type: string;
|
|
286
|
-
speed: number;
|
|
287
|
-
duration: number;
|
|
288
286
|
name?: string | undefined;
|
|
289
287
|
preview?: string | undefined;
|
|
290
288
|
presentationId?: string | undefined;
|
|
291
289
|
layout?: string | undefined;
|
|
290
|
+
speed?: number | undefined;
|
|
292
291
|
order?: number | undefined;
|
|
293
292
|
backgroundColor?: string | undefined;
|
|
293
|
+
duration?: number | undefined;
|
|
294
294
|
animation?: string | undefined;
|
|
295
295
|
}, {
|
|
296
296
|
id: string;
|
|
297
297
|
type: string;
|
|
298
|
-
speed: number;
|
|
299
|
-
duration: number;
|
|
300
298
|
name?: string | undefined;
|
|
301
299
|
preview?: string | undefined;
|
|
302
300
|
presentationId?: string | undefined;
|
|
303
301
|
layout?: string | undefined;
|
|
302
|
+
speed?: number | undefined;
|
|
304
303
|
order?: number | undefined;
|
|
305
304
|
backgroundColor?: string | undefined;
|
|
305
|
+
duration?: number | undefined;
|
|
306
306
|
animation?: string | undefined;
|
|
307
307
|
}>]>;
|
|
308
308
|
export type PresentationTemplateUpdate = z.infer<typeof PresentationTemplateUpdate>;
|