waha-shared 1.0.192 → 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.
@@ -7,19 +7,6 @@ export declare const MicroLessonSchema: z.ZodObject<{
7
7
  seekerFriendly: z.ZodBoolean;
8
8
  platform: z.ZodEnum<["Web Only", "App Only", "All"]>;
9
9
  campaign: z.ZodOptional<z.ZodString>;
10
- notification: z.ZodOptional<z.ZodObject<{
11
- title: z.ZodString;
12
- body: z.ZodString;
13
- delayInHours: z.ZodNumber;
14
- }, "strip", z.ZodTypeAny, {
15
- title: string;
16
- body: string;
17
- delayInHours: number;
18
- }, {
19
- title: string;
20
- body: string;
21
- delayInHours: number;
22
- }>>;
23
10
  pages: z.ZodArray<z.ZodObject<{
24
11
  heading: z.ZodString;
25
12
  body: z.ZodOptional<z.ZodString>;
@@ -36,10 +23,28 @@ export declare const MicroLessonSchema: z.ZodObject<{
36
23
  }>, "many">>;
37
24
  videoUrl: z.ZodOptional<z.ZodString>;
38
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
+ }>>;
39
39
  }, "strip", z.ZodTypeAny, {
40
40
  heading: string;
41
41
  audio?: string | undefined;
42
42
  body?: string | undefined;
43
+ notification?: {
44
+ title: string;
45
+ body: string;
46
+ delayInHours: number;
47
+ } | undefined;
43
48
  platform?: "Web Only" | "App Only" | "All" | undefined;
44
49
  image?: string | undefined;
45
50
  hasTextInput?: boolean | undefined;
@@ -52,6 +57,11 @@ export declare const MicroLessonSchema: z.ZodObject<{
52
57
  heading: string;
53
58
  audio?: string | undefined;
54
59
  body?: string | undefined;
60
+ notification?: {
61
+ title: string;
62
+ body: string;
63
+ delayInHours: number;
64
+ } | undefined;
55
65
  platform?: "Web Only" | "App Only" | "All" | undefined;
56
66
  image?: string | undefined;
57
67
  hasTextInput?: boolean | undefined;
@@ -71,6 +81,11 @@ export declare const MicroLessonSchema: z.ZodObject<{
71
81
  heading: string;
72
82
  audio?: string | undefined;
73
83
  body?: string | undefined;
84
+ notification?: {
85
+ title: string;
86
+ body: string;
87
+ delayInHours: number;
88
+ } | undefined;
74
89
  platform?: "Web Only" | "App Only" | "All" | undefined;
75
90
  image?: string | undefined;
76
91
  hasTextInput?: boolean | undefined;
@@ -80,11 +95,6 @@ export declare const MicroLessonSchema: z.ZodObject<{
80
95
  }[] | undefined;
81
96
  videoUrl?: string | undefined;
82
97
  }[];
83
- notification?: {
84
- title: string;
85
- body: string;
86
- delayInHours: number;
87
- } | undefined;
88
98
  subtitle?: string | undefined;
89
99
  campaign?: string | undefined;
90
100
  }, {
@@ -97,6 +107,11 @@ export declare const MicroLessonSchema: z.ZodObject<{
97
107
  heading: string;
98
108
  audio?: string | undefined;
99
109
  body?: string | undefined;
110
+ notification?: {
111
+ title: string;
112
+ body: string;
113
+ delayInHours: number;
114
+ } | undefined;
100
115
  platform?: "Web Only" | "App Only" | "All" | undefined;
101
116
  image?: string | undefined;
102
117
  hasTextInput?: boolean | undefined;
@@ -106,11 +121,6 @@ export declare const MicroLessonSchema: z.ZodObject<{
106
121
  }[] | undefined;
107
122
  videoUrl?: string | undefined;
108
123
  }[];
109
- notification?: {
110
- title: string;
111
- body: string;
112
- delayInHours: number;
113
- } | undefined;
114
124
  subtitle?: string | undefined;
115
125
  campaign?: string | undefined;
116
126
  }>;
@@ -125,19 +135,6 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
125
135
  seekerFriendly: z.ZodBoolean;
126
136
  platform: z.ZodEnum<["Web Only", "App Only", "All"]>;
127
137
  campaign: z.ZodOptional<z.ZodString>;
128
- notification: z.ZodOptional<z.ZodObject<{
129
- title: z.ZodString;
130
- body: z.ZodString;
131
- delayInHours: z.ZodNumber;
132
- }, "strip", z.ZodTypeAny, {
133
- title: string;
134
- body: string;
135
- delayInHours: number;
136
- }, {
137
- title: string;
138
- body: string;
139
- delayInHours: number;
140
- }>>;
141
138
  pages: z.ZodArray<z.ZodObject<{
142
139
  heading: z.ZodString;
143
140
  body: z.ZodOptional<z.ZodString>;
@@ -154,10 +151,28 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
154
151
  }>, "many">>;
155
152
  videoUrl: z.ZodOptional<z.ZodString>;
156
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
+ }>>;
157
167
  }, "strip", z.ZodTypeAny, {
158
168
  heading: string;
159
169
  audio?: string | undefined;
160
170
  body?: string | undefined;
171
+ notification?: {
172
+ title: string;
173
+ body: string;
174
+ delayInHours: number;
175
+ } | undefined;
161
176
  platform?: "Web Only" | "App Only" | "All" | undefined;
162
177
  image?: string | undefined;
163
178
  hasTextInput?: boolean | undefined;
@@ -170,6 +185,11 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
170
185
  heading: string;
171
186
  audio?: string | undefined;
172
187
  body?: string | undefined;
188
+ notification?: {
189
+ title: string;
190
+ body: string;
191
+ delayInHours: number;
192
+ } | undefined;
173
193
  platform?: "Web Only" | "App Only" | "All" | undefined;
174
194
  image?: string | undefined;
175
195
  hasTextInput?: boolean | undefined;
@@ -189,6 +209,11 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
189
209
  heading: string;
190
210
  audio?: string | undefined;
191
211
  body?: string | undefined;
212
+ notification?: {
213
+ title: string;
214
+ body: string;
215
+ delayInHours: number;
216
+ } | undefined;
192
217
  platform?: "Web Only" | "App Only" | "All" | undefined;
193
218
  image?: string | undefined;
194
219
  hasTextInput?: boolean | undefined;
@@ -198,11 +223,6 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
198
223
  }[] | undefined;
199
224
  videoUrl?: string | undefined;
200
225
  }[];
201
- notification?: {
202
- title: string;
203
- body: string;
204
- delayInHours: number;
205
- } | undefined;
206
226
  subtitle?: string | undefined;
207
227
  campaign?: string | undefined;
208
228
  }, {
@@ -215,6 +235,11 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
215
235
  heading: string;
216
236
  audio?: string | undefined;
217
237
  body?: string | undefined;
238
+ notification?: {
239
+ title: string;
240
+ body: string;
241
+ delayInHours: number;
242
+ } | undefined;
218
243
  platform?: "Web Only" | "App Only" | "All" | undefined;
219
244
  image?: string | undefined;
220
245
  hasTextInput?: boolean | undefined;
@@ -224,11 +249,6 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
224
249
  }[] | undefined;
225
250
  videoUrl?: string | undefined;
226
251
  }[];
227
- notification?: {
228
- title: string;
229
- body: string;
230
- delayInHours: number;
231
- } | undefined;
232
252
  subtitle?: string | undefined;
233
253
  campaign?: string | undefined;
234
254
  }>;
@@ -244,6 +264,11 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
244
264
  heading: string;
245
265
  audio?: string | undefined;
246
266
  body?: string | undefined;
267
+ notification?: {
268
+ title: string;
269
+ body: string;
270
+ delayInHours: number;
271
+ } | undefined;
247
272
  platform?: "Web Only" | "App Only" | "All" | undefined;
248
273
  image?: string | undefined;
249
274
  hasTextInput?: boolean | undefined;
@@ -253,11 +278,6 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
253
278
  }[] | undefined;
254
279
  videoUrl?: string | undefined;
255
280
  }[];
256
- notification?: {
257
- title: string;
258
- body: string;
259
- delayInHours: number;
260
- } | undefined;
261
281
  subtitle?: string | undefined;
262
282
  campaign?: string | undefined;
263
283
  };
@@ -273,6 +293,11 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
273
293
  heading: string;
274
294
  audio?: string | undefined;
275
295
  body?: string | undefined;
296
+ notification?: {
297
+ title: string;
298
+ body: string;
299
+ delayInHours: number;
300
+ } | undefined;
276
301
  platform?: "Web Only" | "App Only" | "All" | undefined;
277
302
  image?: string | undefined;
278
303
  hasTextInput?: boolean | undefined;
@@ -282,11 +307,6 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
282
307
  }[] | undefined;
283
308
  videoUrl?: string | undefined;
284
309
  }[];
285
- notification?: {
286
- title: string;
287
- body: string;
288
- delayInHours: number;
289
- } | undefined;
290
310
  subtitle?: string | undefined;
291
311
  campaign?: string | undefined;
292
312
  };
@@ -303,19 +323,6 @@ export declare const MicroLessonsResponse: z.ZodObject<{
303
323
  seekerFriendly: z.ZodBoolean;
304
324
  platform: z.ZodEnum<["Web Only", "App Only", "All"]>;
305
325
  campaign: z.ZodOptional<z.ZodString>;
306
- notification: z.ZodOptional<z.ZodObject<{
307
- title: z.ZodString;
308
- body: z.ZodString;
309
- delayInHours: z.ZodNumber;
310
- }, "strip", z.ZodTypeAny, {
311
- title: string;
312
- body: string;
313
- delayInHours: number;
314
- }, {
315
- title: string;
316
- body: string;
317
- delayInHours: number;
318
- }>>;
319
326
  pages: z.ZodArray<z.ZodObject<{
320
327
  heading: z.ZodString;
321
328
  body: z.ZodOptional<z.ZodString>;
@@ -332,10 +339,28 @@ export declare const MicroLessonsResponse: z.ZodObject<{
332
339
  }>, "many">>;
333
340
  videoUrl: z.ZodOptional<z.ZodString>;
334
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
+ }>>;
335
355
  }, "strip", z.ZodTypeAny, {
336
356
  heading: string;
337
357
  audio?: string | undefined;
338
358
  body?: string | undefined;
359
+ notification?: {
360
+ title: string;
361
+ body: string;
362
+ delayInHours: number;
363
+ } | undefined;
339
364
  platform?: "Web Only" | "App Only" | "All" | undefined;
340
365
  image?: string | undefined;
341
366
  hasTextInput?: boolean | undefined;
@@ -348,6 +373,11 @@ export declare const MicroLessonsResponse: z.ZodObject<{
348
373
  heading: string;
349
374
  audio?: string | undefined;
350
375
  body?: string | undefined;
376
+ notification?: {
377
+ title: string;
378
+ body: string;
379
+ delayInHours: number;
380
+ } | undefined;
351
381
  platform?: "Web Only" | "App Only" | "All" | undefined;
352
382
  image?: string | undefined;
353
383
  hasTextInput?: boolean | undefined;
@@ -367,6 +397,11 @@ export declare const MicroLessonsResponse: z.ZodObject<{
367
397
  heading: string;
368
398
  audio?: string | undefined;
369
399
  body?: string | undefined;
400
+ notification?: {
401
+ title: string;
402
+ body: string;
403
+ delayInHours: number;
404
+ } | undefined;
370
405
  platform?: "Web Only" | "App Only" | "All" | undefined;
371
406
  image?: string | undefined;
372
407
  hasTextInput?: boolean | undefined;
@@ -376,11 +411,6 @@ export declare const MicroLessonsResponse: z.ZodObject<{
376
411
  }[] | undefined;
377
412
  videoUrl?: string | undefined;
378
413
  }[];
379
- notification?: {
380
- title: string;
381
- body: string;
382
- delayInHours: number;
383
- } | undefined;
384
414
  subtitle?: string | undefined;
385
415
  campaign?: string | undefined;
386
416
  }, {
@@ -393,6 +423,11 @@ export declare const MicroLessonsResponse: z.ZodObject<{
393
423
  heading: string;
394
424
  audio?: string | undefined;
395
425
  body?: string | undefined;
426
+ notification?: {
427
+ title: string;
428
+ body: string;
429
+ delayInHours: number;
430
+ } | undefined;
396
431
  platform?: "Web Only" | "App Only" | "All" | undefined;
397
432
  image?: string | undefined;
398
433
  hasTextInput?: boolean | undefined;
@@ -402,11 +437,6 @@ export declare const MicroLessonsResponse: z.ZodObject<{
402
437
  }[] | undefined;
403
438
  videoUrl?: string | undefined;
404
439
  }[];
405
- notification?: {
406
- title: string;
407
- body: string;
408
- delayInHours: number;
409
- } | undefined;
410
440
  subtitle?: string | undefined;
411
441
  campaign?: string | undefined;
412
442
  }>;
@@ -422,6 +452,11 @@ export declare const MicroLessonsResponse: z.ZodObject<{
422
452
  heading: string;
423
453
  audio?: string | undefined;
424
454
  body?: string | undefined;
455
+ notification?: {
456
+ title: string;
457
+ body: string;
458
+ delayInHours: number;
459
+ } | undefined;
425
460
  platform?: "Web Only" | "App Only" | "All" | undefined;
426
461
  image?: string | undefined;
427
462
  hasTextInput?: boolean | undefined;
@@ -431,11 +466,6 @@ export declare const MicroLessonsResponse: z.ZodObject<{
431
466
  }[] | undefined;
432
467
  videoUrl?: string | undefined;
433
468
  }[];
434
- notification?: {
435
- title: string;
436
- body: string;
437
- delayInHours: number;
438
- } | undefined;
439
469
  subtitle?: string | undefined;
440
470
  campaign?: string | undefined;
441
471
  };
@@ -451,6 +481,11 @@ export declare const MicroLessonsResponse: z.ZodObject<{
451
481
  heading: string;
452
482
  audio?: string | undefined;
453
483
  body?: string | undefined;
484
+ notification?: {
485
+ title: string;
486
+ body: string;
487
+ delayInHours: number;
488
+ } | undefined;
454
489
  platform?: "Web Only" | "App Only" | "All" | undefined;
455
490
  image?: string | undefined;
456
491
  hasTextInput?: boolean | undefined;
@@ -460,11 +495,6 @@ export declare const MicroLessonsResponse: z.ZodObject<{
460
495
  }[] | undefined;
461
496
  videoUrl?: string | undefined;
462
497
  }[];
463
- notification?: {
464
- title: string;
465
- body: string;
466
- delayInHours: number;
467
- } | undefined;
468
498
  subtitle?: string | undefined;
469
499
  campaign?: string | undefined;
470
500
  };
@@ -482,6 +512,11 @@ export declare const MicroLessonsResponse: z.ZodObject<{
482
512
  heading: string;
483
513
  audio?: string | undefined;
484
514
  body?: string | undefined;
515
+ notification?: {
516
+ title: string;
517
+ body: string;
518
+ delayInHours: number;
519
+ } | undefined;
485
520
  platform?: "Web Only" | "App Only" | "All" | undefined;
486
521
  image?: string | undefined;
487
522
  hasTextInput?: boolean | undefined;
@@ -491,11 +526,6 @@ export declare const MicroLessonsResponse: z.ZodObject<{
491
526
  }[] | undefined;
492
527
  videoUrl?: string | undefined;
493
528
  }[];
494
- notification?: {
495
- title: string;
496
- body: string;
497
- delayInHours: number;
498
- } | undefined;
499
529
  subtitle?: string | undefined;
500
530
  campaign?: string | undefined;
501
531
  };
@@ -513,6 +543,11 @@ export declare const MicroLessonsResponse: z.ZodObject<{
513
543
  heading: string;
514
544
  audio?: string | undefined;
515
545
  body?: string | undefined;
546
+ notification?: {
547
+ title: string;
548
+ body: string;
549
+ delayInHours: number;
550
+ } | undefined;
516
551
  platform?: "Web Only" | "App Only" | "All" | undefined;
517
552
  image?: string | undefined;
518
553
  hasTextInput?: boolean | undefined;
@@ -522,11 +557,6 @@ export declare const MicroLessonsResponse: z.ZodObject<{
522
557
  }[] | undefined;
523
558
  videoUrl?: string | undefined;
524
559
  }[];
525
- notification?: {
526
- title: string;
527
- body: string;
528
- delayInHours: number;
529
- } | undefined;
530
560
  subtitle?: string | undefined;
531
561
  campaign?: string | undefined;
532
562
  };
@@ -17,16 +17,6 @@ exports.MicroLessonSchema = zod_1.default.object({
17
17
  .string()
18
18
  .optional()
19
19
  .describe('Optional campaign identifier for tracking purposes.'),
20
- notification: zod_1.default
21
- .object({
22
- title: zod_1.default.string(),
23
- body: zod_1.default.string(),
24
- delayInHours: zod_1.default
25
- .number()
26
- .describe('The delay in hours before the notification is sent.'),
27
- })
28
- .optional()
29
- .describe('Optional notification to send after the lesson is completed.'),
30
20
  pages: zod_1.default.array(zod_1.default.object({
31
21
  heading: zod_1.default.string().describe('The heading of the page'),
32
22
  body: zod_1.default.string().optional(),
@@ -40,6 +30,16 @@ exports.MicroLessonSchema = zod_1.default.object({
40
30
  radioButtons: zod_1.default.array(zod_1.default.object({ text: zod_1.default.string() })).optional(),
41
31
  videoUrl: zod_1.default.string().optional(),
42
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.'),
43
43
  })),
44
44
  });
45
45
  exports.ResponseMicroLessonSchema = zod_1.default.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waha-shared",
3
- "version": "1.0.192",
3
+ "version": "1.0.193",
4
4
  "author": "Waha",
5
5
  "dependencies": {
6
6
  "@types/signale": "^1.4.7",