waha-shared 1.0.191 → 1.0.193
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 -0
- package/dist/types/microLessons.js +10 -0
- package/package.json +1 -1
|
@@ -23,10 +23,28 @@ export declare const MicroLessonSchema: z.ZodObject<{
|
|
|
23
23
|
}>, "many">>;
|
|
24
24
|
videoUrl: z.ZodOptional<z.ZodString>;
|
|
25
25
|
platform: z.ZodOptional<z.ZodEnum<["Web Only", "App Only", "All"]>>;
|
|
26
|
+
notification: z.ZodOptional<z.ZodObject<{
|
|
27
|
+
title: z.ZodString;
|
|
28
|
+
body: z.ZodString;
|
|
29
|
+
delayInHours: z.ZodNumber;
|
|
30
|
+
}, "strip", z.ZodTypeAny, {
|
|
31
|
+
title: string;
|
|
32
|
+
body: string;
|
|
33
|
+
delayInHours: number;
|
|
34
|
+
}, {
|
|
35
|
+
title: string;
|
|
36
|
+
body: string;
|
|
37
|
+
delayInHours: number;
|
|
38
|
+
}>>;
|
|
26
39
|
}, "strip", z.ZodTypeAny, {
|
|
27
40
|
heading: string;
|
|
28
41
|
audio?: string | undefined;
|
|
29
42
|
body?: string | undefined;
|
|
43
|
+
notification?: {
|
|
44
|
+
title: string;
|
|
45
|
+
body: string;
|
|
46
|
+
delayInHours: number;
|
|
47
|
+
} | undefined;
|
|
30
48
|
platform?: "Web Only" | "App Only" | "All" | undefined;
|
|
31
49
|
image?: string | undefined;
|
|
32
50
|
hasTextInput?: boolean | undefined;
|
|
@@ -39,6 +57,11 @@ export declare const MicroLessonSchema: z.ZodObject<{
|
|
|
39
57
|
heading: string;
|
|
40
58
|
audio?: string | undefined;
|
|
41
59
|
body?: string | undefined;
|
|
60
|
+
notification?: {
|
|
61
|
+
title: string;
|
|
62
|
+
body: string;
|
|
63
|
+
delayInHours: number;
|
|
64
|
+
} | undefined;
|
|
42
65
|
platform?: "Web Only" | "App Only" | "All" | undefined;
|
|
43
66
|
image?: string | undefined;
|
|
44
67
|
hasTextInput?: boolean | undefined;
|
|
@@ -58,6 +81,11 @@ export declare const MicroLessonSchema: z.ZodObject<{
|
|
|
58
81
|
heading: string;
|
|
59
82
|
audio?: string | undefined;
|
|
60
83
|
body?: string | undefined;
|
|
84
|
+
notification?: {
|
|
85
|
+
title: string;
|
|
86
|
+
body: string;
|
|
87
|
+
delayInHours: number;
|
|
88
|
+
} | undefined;
|
|
61
89
|
platform?: "Web Only" | "App Only" | "All" | undefined;
|
|
62
90
|
image?: string | undefined;
|
|
63
91
|
hasTextInput?: boolean | undefined;
|
|
@@ -79,6 +107,11 @@ export declare const MicroLessonSchema: z.ZodObject<{
|
|
|
79
107
|
heading: string;
|
|
80
108
|
audio?: string | undefined;
|
|
81
109
|
body?: string | undefined;
|
|
110
|
+
notification?: {
|
|
111
|
+
title: string;
|
|
112
|
+
body: string;
|
|
113
|
+
delayInHours: number;
|
|
114
|
+
} | undefined;
|
|
82
115
|
platform?: "Web Only" | "App Only" | "All" | undefined;
|
|
83
116
|
image?: string | undefined;
|
|
84
117
|
hasTextInput?: boolean | undefined;
|
|
@@ -118,10 +151,28 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
|
|
|
118
151
|
}>, "many">>;
|
|
119
152
|
videoUrl: z.ZodOptional<z.ZodString>;
|
|
120
153
|
platform: z.ZodOptional<z.ZodEnum<["Web Only", "App Only", "All"]>>;
|
|
154
|
+
notification: z.ZodOptional<z.ZodObject<{
|
|
155
|
+
title: z.ZodString;
|
|
156
|
+
body: z.ZodString;
|
|
157
|
+
delayInHours: z.ZodNumber;
|
|
158
|
+
}, "strip", z.ZodTypeAny, {
|
|
159
|
+
title: string;
|
|
160
|
+
body: string;
|
|
161
|
+
delayInHours: number;
|
|
162
|
+
}, {
|
|
163
|
+
title: string;
|
|
164
|
+
body: string;
|
|
165
|
+
delayInHours: number;
|
|
166
|
+
}>>;
|
|
121
167
|
}, "strip", z.ZodTypeAny, {
|
|
122
168
|
heading: string;
|
|
123
169
|
audio?: string | undefined;
|
|
124
170
|
body?: string | undefined;
|
|
171
|
+
notification?: {
|
|
172
|
+
title: string;
|
|
173
|
+
body: string;
|
|
174
|
+
delayInHours: number;
|
|
175
|
+
} | undefined;
|
|
125
176
|
platform?: "Web Only" | "App Only" | "All" | undefined;
|
|
126
177
|
image?: string | undefined;
|
|
127
178
|
hasTextInput?: boolean | undefined;
|
|
@@ -134,6 +185,11 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
|
|
|
134
185
|
heading: string;
|
|
135
186
|
audio?: string | undefined;
|
|
136
187
|
body?: string | undefined;
|
|
188
|
+
notification?: {
|
|
189
|
+
title: string;
|
|
190
|
+
body: string;
|
|
191
|
+
delayInHours: number;
|
|
192
|
+
} | undefined;
|
|
137
193
|
platform?: "Web Only" | "App Only" | "All" | undefined;
|
|
138
194
|
image?: string | undefined;
|
|
139
195
|
hasTextInput?: boolean | undefined;
|
|
@@ -153,6 +209,11 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
|
|
|
153
209
|
heading: string;
|
|
154
210
|
audio?: string | undefined;
|
|
155
211
|
body?: string | undefined;
|
|
212
|
+
notification?: {
|
|
213
|
+
title: string;
|
|
214
|
+
body: string;
|
|
215
|
+
delayInHours: number;
|
|
216
|
+
} | undefined;
|
|
156
217
|
platform?: "Web Only" | "App Only" | "All" | undefined;
|
|
157
218
|
image?: string | undefined;
|
|
158
219
|
hasTextInput?: boolean | undefined;
|
|
@@ -174,6 +235,11 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
|
|
|
174
235
|
heading: string;
|
|
175
236
|
audio?: string | undefined;
|
|
176
237
|
body?: string | undefined;
|
|
238
|
+
notification?: {
|
|
239
|
+
title: string;
|
|
240
|
+
body: string;
|
|
241
|
+
delayInHours: number;
|
|
242
|
+
} | undefined;
|
|
177
243
|
platform?: "Web Only" | "App Only" | "All" | undefined;
|
|
178
244
|
image?: string | undefined;
|
|
179
245
|
hasTextInput?: boolean | undefined;
|
|
@@ -198,6 +264,11 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
|
|
|
198
264
|
heading: string;
|
|
199
265
|
audio?: string | undefined;
|
|
200
266
|
body?: string | undefined;
|
|
267
|
+
notification?: {
|
|
268
|
+
title: string;
|
|
269
|
+
body: string;
|
|
270
|
+
delayInHours: number;
|
|
271
|
+
} | undefined;
|
|
201
272
|
platform?: "Web Only" | "App Only" | "All" | undefined;
|
|
202
273
|
image?: string | undefined;
|
|
203
274
|
hasTextInput?: boolean | undefined;
|
|
@@ -222,6 +293,11 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
|
|
|
222
293
|
heading: string;
|
|
223
294
|
audio?: string | undefined;
|
|
224
295
|
body?: string | undefined;
|
|
296
|
+
notification?: {
|
|
297
|
+
title: string;
|
|
298
|
+
body: string;
|
|
299
|
+
delayInHours: number;
|
|
300
|
+
} | undefined;
|
|
225
301
|
platform?: "Web Only" | "App Only" | "All" | undefined;
|
|
226
302
|
image?: string | undefined;
|
|
227
303
|
hasTextInput?: boolean | undefined;
|
|
@@ -263,10 +339,28 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
263
339
|
}>, "many">>;
|
|
264
340
|
videoUrl: z.ZodOptional<z.ZodString>;
|
|
265
341
|
platform: z.ZodOptional<z.ZodEnum<["Web Only", "App Only", "All"]>>;
|
|
342
|
+
notification: z.ZodOptional<z.ZodObject<{
|
|
343
|
+
title: z.ZodString;
|
|
344
|
+
body: z.ZodString;
|
|
345
|
+
delayInHours: z.ZodNumber;
|
|
346
|
+
}, "strip", z.ZodTypeAny, {
|
|
347
|
+
title: string;
|
|
348
|
+
body: string;
|
|
349
|
+
delayInHours: number;
|
|
350
|
+
}, {
|
|
351
|
+
title: string;
|
|
352
|
+
body: string;
|
|
353
|
+
delayInHours: number;
|
|
354
|
+
}>>;
|
|
266
355
|
}, "strip", z.ZodTypeAny, {
|
|
267
356
|
heading: string;
|
|
268
357
|
audio?: string | undefined;
|
|
269
358
|
body?: string | undefined;
|
|
359
|
+
notification?: {
|
|
360
|
+
title: string;
|
|
361
|
+
body: string;
|
|
362
|
+
delayInHours: number;
|
|
363
|
+
} | undefined;
|
|
270
364
|
platform?: "Web Only" | "App Only" | "All" | undefined;
|
|
271
365
|
image?: string | undefined;
|
|
272
366
|
hasTextInput?: boolean | undefined;
|
|
@@ -279,6 +373,11 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
279
373
|
heading: string;
|
|
280
374
|
audio?: string | undefined;
|
|
281
375
|
body?: string | undefined;
|
|
376
|
+
notification?: {
|
|
377
|
+
title: string;
|
|
378
|
+
body: string;
|
|
379
|
+
delayInHours: number;
|
|
380
|
+
} | undefined;
|
|
282
381
|
platform?: "Web Only" | "App Only" | "All" | undefined;
|
|
283
382
|
image?: string | undefined;
|
|
284
383
|
hasTextInput?: boolean | undefined;
|
|
@@ -298,6 +397,11 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
298
397
|
heading: string;
|
|
299
398
|
audio?: string | undefined;
|
|
300
399
|
body?: string | undefined;
|
|
400
|
+
notification?: {
|
|
401
|
+
title: string;
|
|
402
|
+
body: string;
|
|
403
|
+
delayInHours: number;
|
|
404
|
+
} | undefined;
|
|
301
405
|
platform?: "Web Only" | "App Only" | "All" | undefined;
|
|
302
406
|
image?: string | undefined;
|
|
303
407
|
hasTextInput?: boolean | undefined;
|
|
@@ -319,6 +423,11 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
319
423
|
heading: string;
|
|
320
424
|
audio?: string | undefined;
|
|
321
425
|
body?: string | undefined;
|
|
426
|
+
notification?: {
|
|
427
|
+
title: string;
|
|
428
|
+
body: string;
|
|
429
|
+
delayInHours: number;
|
|
430
|
+
} | undefined;
|
|
322
431
|
platform?: "Web Only" | "App Only" | "All" | undefined;
|
|
323
432
|
image?: string | undefined;
|
|
324
433
|
hasTextInput?: boolean | undefined;
|
|
@@ -343,6 +452,11 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
343
452
|
heading: string;
|
|
344
453
|
audio?: string | undefined;
|
|
345
454
|
body?: string | undefined;
|
|
455
|
+
notification?: {
|
|
456
|
+
title: string;
|
|
457
|
+
body: string;
|
|
458
|
+
delayInHours: number;
|
|
459
|
+
} | undefined;
|
|
346
460
|
platform?: "Web Only" | "App Only" | "All" | undefined;
|
|
347
461
|
image?: string | undefined;
|
|
348
462
|
hasTextInput?: boolean | undefined;
|
|
@@ -367,6 +481,11 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
367
481
|
heading: string;
|
|
368
482
|
audio?: string | undefined;
|
|
369
483
|
body?: string | undefined;
|
|
484
|
+
notification?: {
|
|
485
|
+
title: string;
|
|
486
|
+
body: string;
|
|
487
|
+
delayInHours: number;
|
|
488
|
+
} | undefined;
|
|
370
489
|
platform?: "Web Only" | "App Only" | "All" | undefined;
|
|
371
490
|
image?: string | undefined;
|
|
372
491
|
hasTextInput?: boolean | undefined;
|
|
@@ -393,6 +512,11 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
393
512
|
heading: string;
|
|
394
513
|
audio?: string | undefined;
|
|
395
514
|
body?: string | undefined;
|
|
515
|
+
notification?: {
|
|
516
|
+
title: string;
|
|
517
|
+
body: string;
|
|
518
|
+
delayInHours: number;
|
|
519
|
+
} | undefined;
|
|
396
520
|
platform?: "Web Only" | "App Only" | "All" | undefined;
|
|
397
521
|
image?: string | undefined;
|
|
398
522
|
hasTextInput?: boolean | undefined;
|
|
@@ -419,6 +543,11 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
419
543
|
heading: string;
|
|
420
544
|
audio?: string | undefined;
|
|
421
545
|
body?: string | undefined;
|
|
546
|
+
notification?: {
|
|
547
|
+
title: string;
|
|
548
|
+
body: string;
|
|
549
|
+
delayInHours: number;
|
|
550
|
+
} | undefined;
|
|
422
551
|
platform?: "Web Only" | "App Only" | "All" | undefined;
|
|
423
552
|
image?: string | undefined;
|
|
424
553
|
hasTextInput?: boolean | undefined;
|
|
@@ -30,6 +30,16 @@ exports.MicroLessonSchema = zod_1.default.object({
|
|
|
30
30
|
radioButtons: zod_1.default.array(zod_1.default.object({ text: zod_1.default.string() })).optional(),
|
|
31
31
|
videoUrl: zod_1.default.string().optional(),
|
|
32
32
|
platform: webContent_1.PlatformSchema.optional(),
|
|
33
|
+
notification: zod_1.default
|
|
34
|
+
.object({
|
|
35
|
+
title: zod_1.default.string(),
|
|
36
|
+
body: zod_1.default.string(),
|
|
37
|
+
delayInHours: zod_1.default
|
|
38
|
+
.number()
|
|
39
|
+
.describe('The delay in hours before the notification is sent.'),
|
|
40
|
+
})
|
|
41
|
+
.optional()
|
|
42
|
+
.describe('Optional notification to send after the lesson is completed.'),
|
|
33
43
|
})),
|
|
34
44
|
});
|
|
35
45
|
exports.ResponseMicroLessonSchema = zod_1.default.object({
|