waha-shared 1.0.198 → 1.0.199
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/types/microLessons.d.ts +129 -21
- package/dist/types/microLessons.js +7 -1
- package/package.json +1 -1
|
@@ -38,7 +38,19 @@ export declare const MicroLessonSchema: z.ZodObject<{
|
|
|
38
38
|
body?: string | undefined;
|
|
39
39
|
heading?: string | undefined;
|
|
40
40
|
}>, "many">>;
|
|
41
|
-
|
|
41
|
+
video: z.ZodOptional<z.ZodObject<{
|
|
42
|
+
videoUrl: z.ZodString;
|
|
43
|
+
autoplay: z.ZodOptional<z.ZodBoolean>;
|
|
44
|
+
loop: z.ZodOptional<z.ZodBoolean>;
|
|
45
|
+
}, "strip", z.ZodTypeAny, {
|
|
46
|
+
videoUrl: string;
|
|
47
|
+
autoplay?: boolean | undefined;
|
|
48
|
+
loop?: boolean | undefined;
|
|
49
|
+
}, {
|
|
50
|
+
videoUrl: string;
|
|
51
|
+
autoplay?: boolean | undefined;
|
|
52
|
+
loop?: boolean | undefined;
|
|
53
|
+
}>>;
|
|
42
54
|
platform: z.ZodOptional<z.ZodEnum<["Web Only", "App Only", "All"]>>;
|
|
43
55
|
notification: z.ZodOptional<z.ZodObject<{
|
|
44
56
|
title: z.ZodString;
|
|
@@ -57,6 +69,11 @@ export declare const MicroLessonSchema: z.ZodObject<{
|
|
|
57
69
|
heading: string;
|
|
58
70
|
audio?: string | undefined;
|
|
59
71
|
body?: string | undefined;
|
|
72
|
+
video?: {
|
|
73
|
+
videoUrl: string;
|
|
74
|
+
autoplay?: boolean | undefined;
|
|
75
|
+
loop?: boolean | undefined;
|
|
76
|
+
} | undefined;
|
|
60
77
|
notification?: {
|
|
61
78
|
title: string;
|
|
62
79
|
body: string;
|
|
@@ -74,11 +91,15 @@ export declare const MicroLessonSchema: z.ZodObject<{
|
|
|
74
91
|
body?: string | undefined;
|
|
75
92
|
heading?: string | undefined;
|
|
76
93
|
}[] | undefined;
|
|
77
|
-
videoUrl?: string | undefined;
|
|
78
94
|
}, {
|
|
79
95
|
heading: string;
|
|
80
96
|
audio?: string | undefined;
|
|
81
97
|
body?: string | undefined;
|
|
98
|
+
video?: {
|
|
99
|
+
videoUrl: string;
|
|
100
|
+
autoplay?: boolean | undefined;
|
|
101
|
+
loop?: boolean | undefined;
|
|
102
|
+
} | undefined;
|
|
82
103
|
notification?: {
|
|
83
104
|
title: string;
|
|
84
105
|
body: string;
|
|
@@ -96,7 +117,6 @@ export declare const MicroLessonSchema: z.ZodObject<{
|
|
|
96
117
|
body?: string | undefined;
|
|
97
118
|
heading?: string | undefined;
|
|
98
119
|
}[] | undefined;
|
|
99
|
-
videoUrl?: string | undefined;
|
|
100
120
|
}>, "many">;
|
|
101
121
|
}, "strip", z.ZodTypeAny, {
|
|
102
122
|
title: string;
|
|
@@ -105,6 +125,11 @@ export declare const MicroLessonSchema: z.ZodObject<{
|
|
|
105
125
|
heading: string;
|
|
106
126
|
audio?: string | undefined;
|
|
107
127
|
body?: string | undefined;
|
|
128
|
+
video?: {
|
|
129
|
+
videoUrl: string;
|
|
130
|
+
autoplay?: boolean | undefined;
|
|
131
|
+
loop?: boolean | undefined;
|
|
132
|
+
} | undefined;
|
|
108
133
|
notification?: {
|
|
109
134
|
title: string;
|
|
110
135
|
body: string;
|
|
@@ -122,7 +147,6 @@ export declare const MicroLessonSchema: z.ZodObject<{
|
|
|
122
147
|
body?: string | undefined;
|
|
123
148
|
heading?: string | undefined;
|
|
124
149
|
}[] | undefined;
|
|
125
|
-
videoUrl?: string | undefined;
|
|
126
150
|
}[];
|
|
127
151
|
date?: string | Date | undefined;
|
|
128
152
|
isDraft?: boolean | undefined;
|
|
@@ -136,6 +160,11 @@ export declare const MicroLessonSchema: z.ZodObject<{
|
|
|
136
160
|
heading: string;
|
|
137
161
|
audio?: string | undefined;
|
|
138
162
|
body?: string | undefined;
|
|
163
|
+
video?: {
|
|
164
|
+
videoUrl: string;
|
|
165
|
+
autoplay?: boolean | undefined;
|
|
166
|
+
loop?: boolean | undefined;
|
|
167
|
+
} | undefined;
|
|
139
168
|
notification?: {
|
|
140
169
|
title: string;
|
|
141
170
|
body: string;
|
|
@@ -153,7 +182,6 @@ export declare const MicroLessonSchema: z.ZodObject<{
|
|
|
153
182
|
body?: string | undefined;
|
|
154
183
|
heading?: string | undefined;
|
|
155
184
|
}[] | undefined;
|
|
156
|
-
videoUrl?: string | undefined;
|
|
157
185
|
}[];
|
|
158
186
|
date?: string | Date | undefined;
|
|
159
187
|
isDraft?: boolean | undefined;
|
|
@@ -203,7 +231,19 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
|
|
|
203
231
|
body?: string | undefined;
|
|
204
232
|
heading?: string | undefined;
|
|
205
233
|
}>, "many">>;
|
|
206
|
-
|
|
234
|
+
video: z.ZodOptional<z.ZodObject<{
|
|
235
|
+
videoUrl: z.ZodString;
|
|
236
|
+
autoplay: z.ZodOptional<z.ZodBoolean>;
|
|
237
|
+
loop: z.ZodOptional<z.ZodBoolean>;
|
|
238
|
+
}, "strip", z.ZodTypeAny, {
|
|
239
|
+
videoUrl: string;
|
|
240
|
+
autoplay?: boolean | undefined;
|
|
241
|
+
loop?: boolean | undefined;
|
|
242
|
+
}, {
|
|
243
|
+
videoUrl: string;
|
|
244
|
+
autoplay?: boolean | undefined;
|
|
245
|
+
loop?: boolean | undefined;
|
|
246
|
+
}>>;
|
|
207
247
|
platform: z.ZodOptional<z.ZodEnum<["Web Only", "App Only", "All"]>>;
|
|
208
248
|
notification: z.ZodOptional<z.ZodObject<{
|
|
209
249
|
title: z.ZodString;
|
|
@@ -222,6 +262,11 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
|
|
|
222
262
|
heading: string;
|
|
223
263
|
audio?: string | undefined;
|
|
224
264
|
body?: string | undefined;
|
|
265
|
+
video?: {
|
|
266
|
+
videoUrl: string;
|
|
267
|
+
autoplay?: boolean | undefined;
|
|
268
|
+
loop?: boolean | undefined;
|
|
269
|
+
} | undefined;
|
|
225
270
|
notification?: {
|
|
226
271
|
title: string;
|
|
227
272
|
body: string;
|
|
@@ -239,11 +284,15 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
|
|
|
239
284
|
body?: string | undefined;
|
|
240
285
|
heading?: string | undefined;
|
|
241
286
|
}[] | undefined;
|
|
242
|
-
videoUrl?: string | undefined;
|
|
243
287
|
}, {
|
|
244
288
|
heading: string;
|
|
245
289
|
audio?: string | undefined;
|
|
246
290
|
body?: string | undefined;
|
|
291
|
+
video?: {
|
|
292
|
+
videoUrl: string;
|
|
293
|
+
autoplay?: boolean | undefined;
|
|
294
|
+
loop?: boolean | undefined;
|
|
295
|
+
} | undefined;
|
|
247
296
|
notification?: {
|
|
248
297
|
title: string;
|
|
249
298
|
body: string;
|
|
@@ -261,7 +310,6 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
|
|
|
261
310
|
body?: string | undefined;
|
|
262
311
|
heading?: string | undefined;
|
|
263
312
|
}[] | undefined;
|
|
264
|
-
videoUrl?: string | undefined;
|
|
265
313
|
}>, "many">;
|
|
266
314
|
}, "strip", z.ZodTypeAny, {
|
|
267
315
|
title: string;
|
|
@@ -270,6 +318,11 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
|
|
|
270
318
|
heading: string;
|
|
271
319
|
audio?: string | undefined;
|
|
272
320
|
body?: string | undefined;
|
|
321
|
+
video?: {
|
|
322
|
+
videoUrl: string;
|
|
323
|
+
autoplay?: boolean | undefined;
|
|
324
|
+
loop?: boolean | undefined;
|
|
325
|
+
} | undefined;
|
|
273
326
|
notification?: {
|
|
274
327
|
title: string;
|
|
275
328
|
body: string;
|
|
@@ -287,7 +340,6 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
|
|
|
287
340
|
body?: string | undefined;
|
|
288
341
|
heading?: string | undefined;
|
|
289
342
|
}[] | undefined;
|
|
290
|
-
videoUrl?: string | undefined;
|
|
291
343
|
}[];
|
|
292
344
|
date?: string | Date | undefined;
|
|
293
345
|
isDraft?: boolean | undefined;
|
|
@@ -301,6 +353,11 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
|
|
|
301
353
|
heading: string;
|
|
302
354
|
audio?: string | undefined;
|
|
303
355
|
body?: string | undefined;
|
|
356
|
+
video?: {
|
|
357
|
+
videoUrl: string;
|
|
358
|
+
autoplay?: boolean | undefined;
|
|
359
|
+
loop?: boolean | undefined;
|
|
360
|
+
} | undefined;
|
|
304
361
|
notification?: {
|
|
305
362
|
title: string;
|
|
306
363
|
body: string;
|
|
@@ -318,7 +375,6 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
|
|
|
318
375
|
body?: string | undefined;
|
|
319
376
|
heading?: string | undefined;
|
|
320
377
|
}[] | undefined;
|
|
321
|
-
videoUrl?: string | undefined;
|
|
322
378
|
}[];
|
|
323
379
|
date?: string | Date | undefined;
|
|
324
380
|
isDraft?: boolean | undefined;
|
|
@@ -335,6 +391,11 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
|
|
|
335
391
|
heading: string;
|
|
336
392
|
audio?: string | undefined;
|
|
337
393
|
body?: string | undefined;
|
|
394
|
+
video?: {
|
|
395
|
+
videoUrl: string;
|
|
396
|
+
autoplay?: boolean | undefined;
|
|
397
|
+
loop?: boolean | undefined;
|
|
398
|
+
} | undefined;
|
|
338
399
|
notification?: {
|
|
339
400
|
title: string;
|
|
340
401
|
body: string;
|
|
@@ -352,7 +413,6 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
|
|
|
352
413
|
body?: string | undefined;
|
|
353
414
|
heading?: string | undefined;
|
|
354
415
|
}[] | undefined;
|
|
355
|
-
videoUrl?: string | undefined;
|
|
356
416
|
}[];
|
|
357
417
|
date?: string | Date | undefined;
|
|
358
418
|
isDraft?: boolean | undefined;
|
|
@@ -369,6 +429,11 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
|
|
|
369
429
|
heading: string;
|
|
370
430
|
audio?: string | undefined;
|
|
371
431
|
body?: string | undefined;
|
|
432
|
+
video?: {
|
|
433
|
+
videoUrl: string;
|
|
434
|
+
autoplay?: boolean | undefined;
|
|
435
|
+
loop?: boolean | undefined;
|
|
436
|
+
} | undefined;
|
|
372
437
|
notification?: {
|
|
373
438
|
title: string;
|
|
374
439
|
body: string;
|
|
@@ -386,7 +451,6 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
|
|
|
386
451
|
body?: string | undefined;
|
|
387
452
|
heading?: string | undefined;
|
|
388
453
|
}[] | undefined;
|
|
389
|
-
videoUrl?: string | undefined;
|
|
390
454
|
}[];
|
|
391
455
|
date?: string | Date | undefined;
|
|
392
456
|
isDraft?: boolean | undefined;
|
|
@@ -438,7 +502,19 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
438
502
|
body?: string | undefined;
|
|
439
503
|
heading?: string | undefined;
|
|
440
504
|
}>, "many">>;
|
|
441
|
-
|
|
505
|
+
video: z.ZodOptional<z.ZodObject<{
|
|
506
|
+
videoUrl: z.ZodString;
|
|
507
|
+
autoplay: z.ZodOptional<z.ZodBoolean>;
|
|
508
|
+
loop: z.ZodOptional<z.ZodBoolean>;
|
|
509
|
+
}, "strip", z.ZodTypeAny, {
|
|
510
|
+
videoUrl: string;
|
|
511
|
+
autoplay?: boolean | undefined;
|
|
512
|
+
loop?: boolean | undefined;
|
|
513
|
+
}, {
|
|
514
|
+
videoUrl: string;
|
|
515
|
+
autoplay?: boolean | undefined;
|
|
516
|
+
loop?: boolean | undefined;
|
|
517
|
+
}>>;
|
|
442
518
|
platform: z.ZodOptional<z.ZodEnum<["Web Only", "App Only", "All"]>>;
|
|
443
519
|
notification: z.ZodOptional<z.ZodObject<{
|
|
444
520
|
title: z.ZodString;
|
|
@@ -457,6 +533,11 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
457
533
|
heading: string;
|
|
458
534
|
audio?: string | undefined;
|
|
459
535
|
body?: string | undefined;
|
|
536
|
+
video?: {
|
|
537
|
+
videoUrl: string;
|
|
538
|
+
autoplay?: boolean | undefined;
|
|
539
|
+
loop?: boolean | undefined;
|
|
540
|
+
} | undefined;
|
|
460
541
|
notification?: {
|
|
461
542
|
title: string;
|
|
462
543
|
body: string;
|
|
@@ -474,11 +555,15 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
474
555
|
body?: string | undefined;
|
|
475
556
|
heading?: string | undefined;
|
|
476
557
|
}[] | undefined;
|
|
477
|
-
videoUrl?: string | undefined;
|
|
478
558
|
}, {
|
|
479
559
|
heading: string;
|
|
480
560
|
audio?: string | undefined;
|
|
481
561
|
body?: string | undefined;
|
|
562
|
+
video?: {
|
|
563
|
+
videoUrl: string;
|
|
564
|
+
autoplay?: boolean | undefined;
|
|
565
|
+
loop?: boolean | undefined;
|
|
566
|
+
} | undefined;
|
|
482
567
|
notification?: {
|
|
483
568
|
title: string;
|
|
484
569
|
body: string;
|
|
@@ -496,7 +581,6 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
496
581
|
body?: string | undefined;
|
|
497
582
|
heading?: string | undefined;
|
|
498
583
|
}[] | undefined;
|
|
499
|
-
videoUrl?: string | undefined;
|
|
500
584
|
}>, "many">;
|
|
501
585
|
}, "strip", z.ZodTypeAny, {
|
|
502
586
|
title: string;
|
|
@@ -505,6 +589,11 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
505
589
|
heading: string;
|
|
506
590
|
audio?: string | undefined;
|
|
507
591
|
body?: string | undefined;
|
|
592
|
+
video?: {
|
|
593
|
+
videoUrl: string;
|
|
594
|
+
autoplay?: boolean | undefined;
|
|
595
|
+
loop?: boolean | undefined;
|
|
596
|
+
} | undefined;
|
|
508
597
|
notification?: {
|
|
509
598
|
title: string;
|
|
510
599
|
body: string;
|
|
@@ -522,7 +611,6 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
522
611
|
body?: string | undefined;
|
|
523
612
|
heading?: string | undefined;
|
|
524
613
|
}[] | undefined;
|
|
525
|
-
videoUrl?: string | undefined;
|
|
526
614
|
}[];
|
|
527
615
|
date?: string | Date | undefined;
|
|
528
616
|
isDraft?: boolean | undefined;
|
|
@@ -536,6 +624,11 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
536
624
|
heading: string;
|
|
537
625
|
audio?: string | undefined;
|
|
538
626
|
body?: string | undefined;
|
|
627
|
+
video?: {
|
|
628
|
+
videoUrl: string;
|
|
629
|
+
autoplay?: boolean | undefined;
|
|
630
|
+
loop?: boolean | undefined;
|
|
631
|
+
} | undefined;
|
|
539
632
|
notification?: {
|
|
540
633
|
title: string;
|
|
541
634
|
body: string;
|
|
@@ -553,7 +646,6 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
553
646
|
body?: string | undefined;
|
|
554
647
|
heading?: string | undefined;
|
|
555
648
|
}[] | undefined;
|
|
556
|
-
videoUrl?: string | undefined;
|
|
557
649
|
}[];
|
|
558
650
|
date?: string | Date | undefined;
|
|
559
651
|
isDraft?: boolean | undefined;
|
|
@@ -570,6 +662,11 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
570
662
|
heading: string;
|
|
571
663
|
audio?: string | undefined;
|
|
572
664
|
body?: string | undefined;
|
|
665
|
+
video?: {
|
|
666
|
+
videoUrl: string;
|
|
667
|
+
autoplay?: boolean | undefined;
|
|
668
|
+
loop?: boolean | undefined;
|
|
669
|
+
} | undefined;
|
|
573
670
|
notification?: {
|
|
574
671
|
title: string;
|
|
575
672
|
body: string;
|
|
@@ -587,7 +684,6 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
587
684
|
body?: string | undefined;
|
|
588
685
|
heading?: string | undefined;
|
|
589
686
|
}[] | undefined;
|
|
590
|
-
videoUrl?: string | undefined;
|
|
591
687
|
}[];
|
|
592
688
|
date?: string | Date | undefined;
|
|
593
689
|
isDraft?: boolean | undefined;
|
|
@@ -604,6 +700,11 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
604
700
|
heading: string;
|
|
605
701
|
audio?: string | undefined;
|
|
606
702
|
body?: string | undefined;
|
|
703
|
+
video?: {
|
|
704
|
+
videoUrl: string;
|
|
705
|
+
autoplay?: boolean | undefined;
|
|
706
|
+
loop?: boolean | undefined;
|
|
707
|
+
} | undefined;
|
|
607
708
|
notification?: {
|
|
608
709
|
title: string;
|
|
609
710
|
body: string;
|
|
@@ -621,7 +722,6 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
621
722
|
body?: string | undefined;
|
|
622
723
|
heading?: string | undefined;
|
|
623
724
|
}[] | undefined;
|
|
624
|
-
videoUrl?: string | undefined;
|
|
625
725
|
}[];
|
|
626
726
|
date?: string | Date | undefined;
|
|
627
727
|
isDraft?: boolean | undefined;
|
|
@@ -640,6 +740,11 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
640
740
|
heading: string;
|
|
641
741
|
audio?: string | undefined;
|
|
642
742
|
body?: string | undefined;
|
|
743
|
+
video?: {
|
|
744
|
+
videoUrl: string;
|
|
745
|
+
autoplay?: boolean | undefined;
|
|
746
|
+
loop?: boolean | undefined;
|
|
747
|
+
} | undefined;
|
|
643
748
|
notification?: {
|
|
644
749
|
title: string;
|
|
645
750
|
body: string;
|
|
@@ -657,7 +762,6 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
657
762
|
body?: string | undefined;
|
|
658
763
|
heading?: string | undefined;
|
|
659
764
|
}[] | undefined;
|
|
660
|
-
videoUrl?: string | undefined;
|
|
661
765
|
}[];
|
|
662
766
|
date?: string | Date | undefined;
|
|
663
767
|
isDraft?: boolean | undefined;
|
|
@@ -676,6 +780,11 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
676
780
|
heading: string;
|
|
677
781
|
audio?: string | undefined;
|
|
678
782
|
body?: string | undefined;
|
|
783
|
+
video?: {
|
|
784
|
+
videoUrl: string;
|
|
785
|
+
autoplay?: boolean | undefined;
|
|
786
|
+
loop?: boolean | undefined;
|
|
787
|
+
} | undefined;
|
|
679
788
|
notification?: {
|
|
680
789
|
title: string;
|
|
681
790
|
body: string;
|
|
@@ -693,7 +802,6 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
693
802
|
body?: string | undefined;
|
|
694
803
|
heading?: string | undefined;
|
|
695
804
|
}[] | undefined;
|
|
696
|
-
videoUrl?: string | undefined;
|
|
697
805
|
}[];
|
|
698
806
|
date?: string | Date | undefined;
|
|
699
807
|
isDraft?: boolean | undefined;
|
|
@@ -36,7 +36,13 @@ exports.MicroLessonSchema = zod_1.default.object({
|
|
|
36
36
|
body: zod_1.default.string().optional(),
|
|
37
37
|
}))
|
|
38
38
|
.optional(),
|
|
39
|
-
|
|
39
|
+
video: zod_1.default
|
|
40
|
+
.object({
|
|
41
|
+
videoUrl: zod_1.default.string(),
|
|
42
|
+
autoplay: zod_1.default.boolean().optional(),
|
|
43
|
+
loop: zod_1.default.boolean().optional(),
|
|
44
|
+
})
|
|
45
|
+
.optional(),
|
|
40
46
|
platform: webContent_1.PlatformSchema.optional(),
|
|
41
47
|
notification: zod_1.default
|
|
42
48
|
.object({
|