api-arreya-types 1.0.56 → 1.0.57

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.
@@ -3,12 +3,11 @@ export declare const Alert: z.ZodObject<{
3
3
  id: z.ZodString;
4
4
  projectId: z.ZodString;
5
5
  source: z.ZodString;
6
+ enabled: z.ZodBoolean;
6
7
  title: z.ZodString;
7
8
  message: z.ZodString;
8
- color: z.ZodString;
9
- background: z.ZodString;
10
- animation: z.ZodString;
11
- timeout: z.ZodNumber;
9
+ textColor: z.ZodString;
10
+ backgroundColor: z.ZodString;
12
11
  createdAt: z.ZodUnion<[z.ZodDate, z.ZodEffects<z.ZodString, Date, string>]>;
13
12
  updatedAt: z.ZodUnion<[z.ZodDate, z.ZodEffects<z.ZodString, Date, string>]>;
14
13
  }, "strip", z.ZodTypeAny, {
@@ -16,11 +15,10 @@ export declare const Alert: z.ZodObject<{
16
15
  id: string;
17
16
  projectId: string;
18
17
  source: string;
18
+ enabled: boolean;
19
19
  title: string;
20
- color: string;
21
- background: string;
22
- animation: string;
23
- timeout: number;
20
+ textColor: string;
21
+ backgroundColor: string;
24
22
  createdAt: Date;
25
23
  updatedAt: Date;
26
24
  }, {
@@ -28,11 +26,10 @@ export declare const Alert: z.ZodObject<{
28
26
  id: string;
29
27
  projectId: string;
30
28
  source: string;
29
+ enabled: boolean;
31
30
  title: string;
32
- color: string;
33
- background: string;
34
- animation: string;
35
- timeout: number;
31
+ textColor: string;
32
+ backgroundColor: string;
36
33
  createdAt: string | Date;
37
34
  updatedAt: string | Date;
38
35
  }>;
@@ -40,112 +37,98 @@ export type Alert = z.infer<typeof Alert>;
40
37
  export declare const CreateAlert: z.ZodObject<{
41
38
  projectId: z.ZodString;
42
39
  source: z.ZodString;
40
+ enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
43
41
  title: z.ZodString;
44
42
  message: z.ZodString;
45
- color: z.ZodString;
46
- background: z.ZodString;
47
- animation: z.ZodString;
48
- timeout: z.ZodNumber;
43
+ textColor: z.ZodString;
44
+ backgroundColor: z.ZodString;
49
45
  }, "strip", z.ZodTypeAny, {
50
46
  message: string;
51
47
  projectId: string;
52
48
  source: string;
49
+ enabled: boolean;
53
50
  title: string;
54
- color: string;
55
- background: string;
56
- animation: string;
57
- timeout: number;
51
+ textColor: string;
52
+ backgroundColor: string;
58
53
  }, {
59
54
  message: string;
60
55
  projectId: string;
61
56
  source: string;
62
57
  title: string;
63
- color: string;
64
- background: string;
65
- animation: string;
66
- timeout: number;
58
+ textColor: string;
59
+ backgroundColor: string;
60
+ enabled?: boolean | undefined;
67
61
  }>;
68
62
  export declare const UpdateAlert: z.ZodObject<{
69
63
  id: z.ZodString;
70
64
  source: z.ZodString;
65
+ enabled: z.ZodOptional<z.ZodBoolean>;
71
66
  title: z.ZodOptional<z.ZodString>;
72
67
  message: z.ZodOptional<z.ZodString>;
73
- color: z.ZodOptional<z.ZodString>;
74
- background: z.ZodOptional<z.ZodString>;
75
- animation: z.ZodOptional<z.ZodString>;
76
- timeout: z.ZodOptional<z.ZodNumber>;
68
+ textColor: z.ZodOptional<z.ZodString>;
69
+ backgroundColor: z.ZodOptional<z.ZodString>;
77
70
  }, "strip", z.ZodTypeAny, {
78
71
  id: string;
79
72
  source: string;
80
73
  message?: string | undefined;
74
+ enabled?: boolean | undefined;
81
75
  title?: string | undefined;
82
- color?: string | undefined;
83
- background?: string | undefined;
84
- animation?: string | undefined;
85
- timeout?: number | undefined;
76
+ textColor?: string | undefined;
77
+ backgroundColor?: string | undefined;
86
78
  }, {
87
79
  id: string;
88
80
  source: string;
89
81
  message?: string | undefined;
82
+ enabled?: boolean | undefined;
90
83
  title?: string | undefined;
91
- color?: string | undefined;
92
- background?: string | undefined;
93
- animation?: string | undefined;
94
- timeout?: number | undefined;
84
+ textColor?: string | undefined;
85
+ backgroundColor?: string | undefined;
95
86
  }>;
96
87
  export type CreateAlert = z.infer<typeof CreateAlert>;
97
88
  export type UpdateAlert = z.infer<typeof UpdateAlert>;
98
89
  export declare const CreateAlertRequestBody: z.ZodObject<Omit<{
99
90
  projectId: z.ZodString;
100
91
  source: z.ZodString;
92
+ enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
101
93
  title: z.ZodString;
102
94
  message: z.ZodString;
103
- color: z.ZodString;
104
- background: z.ZodString;
105
- animation: z.ZodString;
106
- timeout: z.ZodNumber;
107
- }, "projectId">, "strip", z.ZodTypeAny, {
95
+ textColor: z.ZodString;
96
+ backgroundColor: z.ZodString;
97
+ }, "projectId" | "source">, "strip", z.ZodTypeAny, {
108
98
  message: string;
109
- source: string;
99
+ enabled: boolean;
110
100
  title: string;
111
- color: string;
112
- background: string;
113
- animation: string;
114
- timeout: number;
101
+ textColor: string;
102
+ backgroundColor: string;
115
103
  }, {
116
104
  message: string;
117
- source: string;
118
105
  title: string;
119
- color: string;
120
- background: string;
121
- animation: string;
122
- timeout: number;
106
+ textColor: string;
107
+ backgroundColor: string;
108
+ enabled?: boolean | undefined;
123
109
  }>;
124
110
  export declare const UpdateAlertRequestBody: z.ZodObject<Omit<{
125
111
  id: z.ZodString;
126
112
  source: z.ZodString;
113
+ enabled: z.ZodOptional<z.ZodBoolean>;
127
114
  title: z.ZodOptional<z.ZodString>;
128
115
  message: z.ZodOptional<z.ZodString>;
129
- color: z.ZodOptional<z.ZodString>;
130
- background: z.ZodOptional<z.ZodString>;
131
- animation: z.ZodOptional<z.ZodString>;
132
- timeout: z.ZodOptional<z.ZodNumber>;
116
+ textColor: z.ZodOptional<z.ZodString>;
117
+ backgroundColor: z.ZodOptional<z.ZodString>;
133
118
  }, "id">, "strip", z.ZodTypeAny, {
134
119
  source: string;
135
120
  message?: string | undefined;
121
+ enabled?: boolean | undefined;
136
122
  title?: string | undefined;
137
- color?: string | undefined;
138
- background?: string | undefined;
139
- animation?: string | undefined;
140
- timeout?: number | undefined;
123
+ textColor?: string | undefined;
124
+ backgroundColor?: string | undefined;
141
125
  }, {
142
126
  source: string;
143
127
  message?: string | undefined;
128
+ enabled?: boolean | undefined;
144
129
  title?: string | undefined;
145
- color?: string | undefined;
146
- background?: string | undefined;
147
- animation?: string | undefined;
148
- timeout?: number | undefined;
130
+ textColor?: string | undefined;
131
+ backgroundColor?: string | undefined;
149
132
  }>;
150
133
  export type CreateAlertRequestBody = z.infer<typeof CreateAlertRequestBody>;
151
134
  export type UpdateAlertRequestBody = z.infer<typeof UpdateAlertRequestBody>;
@@ -253,21 +236,21 @@ export declare const ContinuousToneAlert: z.ZodObject<{
253
236
  soundDuration: z.ZodNumber;
254
237
  timeout: z.ZodNumber;
255
238
  }, "strip", z.ZodTypeAny, {
256
- timeout: number;
257
239
  soundEffect: "continuousTone";
258
240
  soundPitch: number;
259
241
  soundDelay: number;
260
242
  soundVolume: number;
261
243
  soundLoop: boolean;
262
244
  soundDuration: number;
263
- }, {
264
245
  timeout: number;
246
+ }, {
265
247
  soundEffect: "continuousTone";
266
248
  soundPitch: number;
267
249
  soundDelay: number;
268
250
  soundVolume: number;
269
251
  soundLoop: boolean;
270
252
  soundDuration: number;
253
+ timeout: number;
271
254
  }>;
272
255
  export declare const SpeechAlert: z.ZodObject<{
273
256
  soundEffect: z.ZodLiteral<"speech">;
@@ -356,11 +339,11 @@ export declare const AlertRequestParams: z.ZodObject<{
356
339
  soundVoice: string;
357
340
  message?: string | null | undefined;
358
341
  title?: string | null | undefined;
342
+ timeout?: number | null | undefined;
343
+ icon?: string | null | undefined;
359
344
  color?: string | null | undefined;
360
345
  background?: string | null | undefined;
361
346
  animation?: string | null | undefined;
362
- timeout?: number | null | undefined;
363
- icon?: string | null | undefined;
364
347
  timeoutUnit?: string | null | undefined;
365
348
  startTime?: Date | null | undefined;
366
349
  endTime?: Date | null | undefined;
@@ -383,11 +366,11 @@ export declare const AlertRequestParams: z.ZodObject<{
383
366
  soundVoice: string;
384
367
  message?: string | null | undefined;
385
368
  title?: string | null | undefined;
369
+ timeout?: number | null | undefined;
370
+ icon?: string | null | undefined;
386
371
  color?: string | null | undefined;
387
372
  background?: string | null | undefined;
388
373
  animation?: string | null | undefined;
389
- timeout?: number | null | undefined;
390
- icon?: string | null | undefined;
391
374
  timeoutUnit?: string | null | undefined;
392
375
  startTime?: string | Date | null | undefined;
393
376
  endTime?: string | Date | null | undefined;
@@ -7,36 +7,33 @@ exports.Alert = zod_1.z.object({
7
7
  id: zod_1.z.string(),
8
8
  projectId: zod_1.z.string(),
9
9
  source: zod_1.z.string(),
10
+ enabled: zod_1.z.boolean(),
10
11
  title: zod_1.z.string(),
11
12
  message: zod_1.z.string(),
12
- color: zod_1.z.string(),
13
- background: zod_1.z.string(),
14
- animation: zod_1.z.string(),
15
- timeout: zod_1.z.number(),
13
+ textColor: zod_1.z.string(),
14
+ backgroundColor: zod_1.z.string(),
16
15
  createdAt: zod_utils_1.zodDate,
17
16
  updatedAt: zod_utils_1.zodDate,
18
17
  });
19
18
  exports.CreateAlert = zod_1.z.object({
20
19
  projectId: zod_1.z.string(),
21
20
  source: zod_1.z.string(),
21
+ enabled: zod_1.z.boolean().optional().default(true),
22
22
  title: zod_1.z.string(),
23
23
  message: zod_1.z.string(),
24
- color: zod_1.z.string(),
25
- background: zod_1.z.string(),
26
- animation: zod_1.z.string(),
27
- timeout: zod_1.z.number(),
24
+ textColor: zod_1.z.string(),
25
+ backgroundColor: zod_1.z.string(),
28
26
  });
29
27
  exports.UpdateAlert = zod_1.z.object({
30
28
  id: zod_1.z.string(),
31
29
  source: zod_1.z.string(),
30
+ enabled: zod_1.z.boolean().optional(),
32
31
  title: zod_1.z.string().optional(),
33
32
  message: zod_1.z.string().optional(),
34
- color: zod_1.z.string().optional(),
35
- background: zod_1.z.string().optional(),
36
- animation: zod_1.z.string().optional(),
37
- timeout: zod_1.z.number().optional(),
33
+ textColor: zod_1.z.string().optional(),
34
+ backgroundColor: zod_1.z.string().optional(),
38
35
  });
39
- exports.CreateAlertRequestBody = exports.CreateAlert.omit({ projectId: true });
36
+ exports.CreateAlertRequestBody = exports.CreateAlert.omit({ projectId: true, source: true });
40
37
  exports.UpdateAlertRequestBody = exports.UpdateAlert.omit({ id: true });
41
38
  // Legacy alert request params
42
39
  var animations = [
@@ -14,9 +14,9 @@ export declare const Page: z.ZodObject<{
14
14
  updatedAt: z.ZodUnion<[z.ZodDate, z.ZodEffects<z.ZodString, Date, string>]>;
15
15
  }, "strip", z.ZodTypeAny, {
16
16
  id: string;
17
- animation: string | null;
18
17
  createdAt: Date;
19
18
  updatedAt: Date;
19
+ animation: string | null;
20
20
  name: string;
21
21
  preview: string;
22
22
  presentationId: string;
@@ -27,9 +27,9 @@ export declare const Page: z.ZodObject<{
27
27
  template: boolean;
28
28
  }, {
29
29
  id: string;
30
- animation: string | null;
31
30
  createdAt: string | Date;
32
31
  updatedAt: string | Date;
32
+ animation: string | null;
33
33
  name: string;
34
34
  preview: string;
35
35
  presentationId: string;
@@ -177,9 +177,9 @@ export declare const PresentationExtended: z.ZodObject<z.objectUtil.extendShape<
177
177
  updatedAt: z.ZodUnion<[z.ZodDate, z.ZodEffects<z.ZodString, Date, string>]>;
178
178
  }, "strip", z.ZodTypeAny, {
179
179
  id: string;
180
- animation: string | null;
181
180
  createdAt: Date;
182
181
  updatedAt: Date;
182
+ animation: string | null;
183
183
  name: string;
184
184
  preview: string;
185
185
  presentationId: string;
@@ -190,9 +190,9 @@ export declare const PresentationExtended: z.ZodObject<z.objectUtil.extendShape<
190
190
  template: boolean;
191
191
  }, {
192
192
  id: string;
193
- animation: string | null;
194
193
  createdAt: string | Date;
195
194
  updatedAt: string | Date;
195
+ animation: string | null;
196
196
  name: string;
197
197
  preview: string;
198
198
  presentationId: string;
@@ -242,9 +242,9 @@ export declare const PresentationExtended: z.ZodObject<z.objectUtil.extendShape<
242
242
  }[];
243
243
  pages: {
244
244
  id: string;
245
- animation: string | null;
246
245
  createdAt: Date;
247
246
  updatedAt: Date;
247
+ animation: string | null;
248
248
  name: string;
249
249
  preview: string;
250
250
  presentationId: string;
@@ -275,9 +275,9 @@ export declare const PresentationExtended: z.ZodObject<z.objectUtil.extendShape<
275
275
  }[];
276
276
  pages: {
277
277
  id: string;
278
- animation: string | null;
279
278
  createdAt: string | Date;
280
279
  updatedAt: string | Date;
280
+ animation: string | null;
281
281
  name: string;
282
282
  preview: string;
283
283
  presentationId: string;
@@ -16,9 +16,9 @@ export declare const BaseSchedule: z.ZodObject<{
16
16
  id: string;
17
17
  projectId: string;
18
18
  title: string;
19
- color: string;
20
19
  createdAt: Date;
21
20
  updatedAt: Date;
21
+ color: string;
22
22
  presentationId: string;
23
23
  start: Date;
24
24
  end: Date;
@@ -29,9 +29,9 @@ export declare const BaseSchedule: z.ZodObject<{
29
29
  id: string;
30
30
  projectId: string;
31
31
  title: string;
32
- color: string;
33
32
  createdAt: string | Date;
34
33
  updatedAt: string | Date;
34
+ color: string;
35
35
  presentationId: string;
36
36
  start: string | Date;
37
37
  end: string | Date;
@@ -61,9 +61,9 @@ export declare const RecurSchedule: z.ZodObject<z.objectUtil.extendShape<{
61
61
  id: string;
62
62
  projectId: string;
63
63
  title: string;
64
- color: string;
65
64
  createdAt: Date;
66
65
  updatedAt: Date;
66
+ color: string;
67
67
  presentationId: string;
68
68
  start: Date;
69
69
  end: Date;
@@ -78,9 +78,9 @@ export declare const RecurSchedule: z.ZodObject<z.objectUtil.extendShape<{
78
78
  id: string;
79
79
  projectId: string;
80
80
  title: string;
81
- color: string;
82
81
  createdAt: string | Date;
83
82
  updatedAt: string | Date;
83
+ color: string;
84
84
  presentationId: string;
85
85
  start: string | Date;
86
86
  end: string | Date;
@@ -114,9 +114,9 @@ export declare const NonRecurSchedule: z.ZodObject<z.objectUtil.extendShape<{
114
114
  id: string;
115
115
  projectId: string;
116
116
  title: string;
117
- color: string;
118
117
  createdAt: Date;
119
118
  updatedAt: Date;
119
+ color: string;
120
120
  presentationId: string;
121
121
  start: Date;
122
122
  end: Date;
@@ -131,9 +131,9 @@ export declare const NonRecurSchedule: z.ZodObject<z.objectUtil.extendShape<{
131
131
  id: string;
132
132
  projectId: string;
133
133
  title: string;
134
- color: string;
135
134
  createdAt: string | Date;
136
135
  updatedAt: string | Date;
136
+ color: string;
137
137
  presentationId: string;
138
138
  start: string | Date;
139
139
  end: string | Date;
@@ -180,9 +180,9 @@ export declare const Schedule: z.ZodDiscriminatedUnion<"recur", [z.ZodObject<z.o
180
180
  id: string;
181
181
  projectId: string;
182
182
  title: string;
183
- color: string;
184
183
  createdAt: Date;
185
184
  updatedAt: Date;
185
+ color: string;
186
186
  presentationId: string;
187
187
  start: Date;
188
188
  end: Date;
@@ -197,9 +197,9 @@ export declare const Schedule: z.ZodDiscriminatedUnion<"recur", [z.ZodObject<z.o
197
197
  id: string;
198
198
  projectId: string;
199
199
  title: string;
200
- color: string;
201
200
  createdAt: string | Date;
202
201
  updatedAt: string | Date;
202
+ color: string;
203
203
  presentationId: string;
204
204
  start: string | Date;
205
205
  end: string | Date;
@@ -245,9 +245,9 @@ export declare const Schedule: z.ZodDiscriminatedUnion<"recur", [z.ZodObject<z.o
245
245
  id: string;
246
246
  projectId: string;
247
247
  title: string;
248
- color: string;
249
248
  createdAt: Date;
250
249
  updatedAt: Date;
250
+ color: string;
251
251
  presentationId: string;
252
252
  start: Date;
253
253
  end: Date;
@@ -262,9 +262,9 @@ export declare const Schedule: z.ZodDiscriminatedUnion<"recur", [z.ZodObject<z.o
262
262
  id: string;
263
263
  projectId: string;
264
264
  title: string;
265
- color: string;
266
265
  createdAt: string | Date;
267
266
  updatedAt: string | Date;
267
+ color: string;
268
268
  presentationId: string;
269
269
  start: string | Date;
270
270
  end: string | Date;
@@ -297,9 +297,9 @@ export declare const ScheduleFromDB: z.ZodObject<{
297
297
  id: string;
298
298
  projectId: string;
299
299
  title: string;
300
- color: string;
301
300
  createdAt: Date;
302
301
  updatedAt: Date;
302
+ color: string;
303
303
  presentationId: string;
304
304
  start: Date;
305
305
  end: Date;
@@ -314,9 +314,9 @@ export declare const ScheduleFromDB: z.ZodObject<{
314
314
  id: string;
315
315
  projectId: string;
316
316
  title: string;
317
- color: string;
318
317
  createdAt: Date;
319
318
  updatedAt: Date;
319
+ color: string;
320
320
  presentationId: string;
321
321
  start: Date;
322
322
  end: Date;
@@ -65,9 +65,9 @@ export declare const Slide: z.ZodObject<{
65
65
  }, "strip", z.ZodTypeAny, {
66
66
  id: string;
67
67
  title: string | null;
68
- timeout: number;
69
68
  createdAt: Date;
70
69
  updatedAt: Date;
70
+ timeout: number;
71
71
  speed: number;
72
72
  order: number;
73
73
  start: Date | null;
@@ -96,9 +96,9 @@ export declare const Slide: z.ZodObject<{
96
96
  }, {
97
97
  id: string;
98
98
  title: string | null;
99
- timeout: number;
100
99
  createdAt: string | Date;
101
100
  updatedAt: string | Date;
101
+ timeout: number;
102
102
  speed: number;
103
103
  order: number;
104
104
  start: string | Date | null;
@@ -193,9 +193,9 @@ export declare const SlideshowExtended: z.ZodObject<z.objectUtil.extendShape<{
193
193
  }, "strip", z.ZodTypeAny, {
194
194
  id: string;
195
195
  title: string | null;
196
- timeout: number;
197
196
  createdAt: Date;
198
197
  updatedAt: Date;
198
+ timeout: number;
199
199
  speed: number;
200
200
  order: number;
201
201
  start: Date | null;
@@ -224,9 +224,9 @@ export declare const SlideshowExtended: z.ZodObject<z.objectUtil.extendShape<{
224
224
  }, {
225
225
  id: string;
226
226
  title: string | null;
227
- timeout: number;
228
227
  createdAt: string | Date;
229
228
  updatedAt: string | Date;
229
+ timeout: number;
230
230
  speed: number;
231
231
  order: number;
232
232
  start: string | Date | null;
@@ -289,9 +289,9 @@ export declare const SlideshowExtended: z.ZodObject<z.objectUtil.extendShape<{
289
289
  slides: {
290
290
  id: string;
291
291
  title: string | null;
292
- timeout: number;
293
292
  createdAt: Date;
294
293
  updatedAt: Date;
294
+ timeout: number;
295
295
  speed: number;
296
296
  order: number;
297
297
  start: Date | null;
@@ -335,9 +335,9 @@ export declare const SlideshowExtended: z.ZodObject<z.objectUtil.extendShape<{
335
335
  slides: {
336
336
  id: string;
337
337
  title: string | null;
338
- timeout: number;
339
338
  createdAt: string | Date;
340
339
  updatedAt: string | Date;
340
+ timeout: number;
341
341
  speed: number;
342
342
  order: number;
343
343
  start: string | Date | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "api-arreya-types",
3
- "version": "1.0.56",
3
+ "version": "1.0.57",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.js",
6
6
  "private": false,