waha-shared 1.0.191 → 1.0.192

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,6 +7,19 @@ 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
+ }>>;
10
23
  pages: z.ZodArray<z.ZodObject<{
11
24
  heading: z.ZodString;
12
25
  body: z.ZodOptional<z.ZodString>;
@@ -67,6 +80,11 @@ export declare const MicroLessonSchema: z.ZodObject<{
67
80
  }[] | undefined;
68
81
  videoUrl?: string | undefined;
69
82
  }[];
83
+ notification?: {
84
+ title: string;
85
+ body: string;
86
+ delayInHours: number;
87
+ } | undefined;
70
88
  subtitle?: string | undefined;
71
89
  campaign?: string | undefined;
72
90
  }, {
@@ -88,6 +106,11 @@ export declare const MicroLessonSchema: z.ZodObject<{
88
106
  }[] | undefined;
89
107
  videoUrl?: string | undefined;
90
108
  }[];
109
+ notification?: {
110
+ title: string;
111
+ body: string;
112
+ delayInHours: number;
113
+ } | undefined;
91
114
  subtitle?: string | undefined;
92
115
  campaign?: string | undefined;
93
116
  }>;
@@ -102,6 +125,19 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
102
125
  seekerFriendly: z.ZodBoolean;
103
126
  platform: z.ZodEnum<["Web Only", "App Only", "All"]>;
104
127
  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
+ }>>;
105
141
  pages: z.ZodArray<z.ZodObject<{
106
142
  heading: z.ZodString;
107
143
  body: z.ZodOptional<z.ZodString>;
@@ -162,6 +198,11 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
162
198
  }[] | undefined;
163
199
  videoUrl?: string | undefined;
164
200
  }[];
201
+ notification?: {
202
+ title: string;
203
+ body: string;
204
+ delayInHours: number;
205
+ } | undefined;
165
206
  subtitle?: string | undefined;
166
207
  campaign?: string | undefined;
167
208
  }, {
@@ -183,6 +224,11 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
183
224
  }[] | undefined;
184
225
  videoUrl?: string | undefined;
185
226
  }[];
227
+ notification?: {
228
+ title: string;
229
+ body: string;
230
+ delayInHours: number;
231
+ } | undefined;
186
232
  subtitle?: string | undefined;
187
233
  campaign?: string | undefined;
188
234
  }>;
@@ -207,6 +253,11 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
207
253
  }[] | undefined;
208
254
  videoUrl?: string | undefined;
209
255
  }[];
256
+ notification?: {
257
+ title: string;
258
+ body: string;
259
+ delayInHours: number;
260
+ } | undefined;
210
261
  subtitle?: string | undefined;
211
262
  campaign?: string | undefined;
212
263
  };
@@ -231,6 +282,11 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
231
282
  }[] | undefined;
232
283
  videoUrl?: string | undefined;
233
284
  }[];
285
+ notification?: {
286
+ title: string;
287
+ body: string;
288
+ delayInHours: number;
289
+ } | undefined;
234
290
  subtitle?: string | undefined;
235
291
  campaign?: string | undefined;
236
292
  };
@@ -247,6 +303,19 @@ export declare const MicroLessonsResponse: z.ZodObject<{
247
303
  seekerFriendly: z.ZodBoolean;
248
304
  platform: z.ZodEnum<["Web Only", "App Only", "All"]>;
249
305
  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
+ }>>;
250
319
  pages: z.ZodArray<z.ZodObject<{
251
320
  heading: z.ZodString;
252
321
  body: z.ZodOptional<z.ZodString>;
@@ -307,6 +376,11 @@ export declare const MicroLessonsResponse: z.ZodObject<{
307
376
  }[] | undefined;
308
377
  videoUrl?: string | undefined;
309
378
  }[];
379
+ notification?: {
380
+ title: string;
381
+ body: string;
382
+ delayInHours: number;
383
+ } | undefined;
310
384
  subtitle?: string | undefined;
311
385
  campaign?: string | undefined;
312
386
  }, {
@@ -328,6 +402,11 @@ export declare const MicroLessonsResponse: z.ZodObject<{
328
402
  }[] | undefined;
329
403
  videoUrl?: string | undefined;
330
404
  }[];
405
+ notification?: {
406
+ title: string;
407
+ body: string;
408
+ delayInHours: number;
409
+ } | undefined;
331
410
  subtitle?: string | undefined;
332
411
  campaign?: string | undefined;
333
412
  }>;
@@ -352,6 +431,11 @@ export declare const MicroLessonsResponse: z.ZodObject<{
352
431
  }[] | undefined;
353
432
  videoUrl?: string | undefined;
354
433
  }[];
434
+ notification?: {
435
+ title: string;
436
+ body: string;
437
+ delayInHours: number;
438
+ } | undefined;
355
439
  subtitle?: string | undefined;
356
440
  campaign?: string | undefined;
357
441
  };
@@ -376,6 +460,11 @@ export declare const MicroLessonsResponse: z.ZodObject<{
376
460
  }[] | undefined;
377
461
  videoUrl?: string | undefined;
378
462
  }[];
463
+ notification?: {
464
+ title: string;
465
+ body: string;
466
+ delayInHours: number;
467
+ } | undefined;
379
468
  subtitle?: string | undefined;
380
469
  campaign?: string | undefined;
381
470
  };
@@ -402,6 +491,11 @@ export declare const MicroLessonsResponse: z.ZodObject<{
402
491
  }[] | undefined;
403
492
  videoUrl?: string | undefined;
404
493
  }[];
494
+ notification?: {
495
+ title: string;
496
+ body: string;
497
+ delayInHours: number;
498
+ } | undefined;
405
499
  subtitle?: string | undefined;
406
500
  campaign?: string | undefined;
407
501
  };
@@ -428,6 +522,11 @@ export declare const MicroLessonsResponse: z.ZodObject<{
428
522
  }[] | undefined;
429
523
  videoUrl?: string | undefined;
430
524
  }[];
525
+ notification?: {
526
+ title: string;
527
+ body: string;
528
+ delayInHours: number;
529
+ } | undefined;
431
530
  subtitle?: string | undefined;
432
531
  campaign?: string | undefined;
433
532
  };
@@ -17,6 +17,16 @@ 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.'),
20
30
  pages: zod_1.default.array(zod_1.default.object({
21
31
  heading: zod_1.default.string().describe('The heading of the page'),
22
32
  body: zod_1.default.string().optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waha-shared",
3
- "version": "1.0.191",
3
+ "version": "1.0.192",
4
4
  "author": "Waha",
5
5
  "dependencies": {
6
6
  "@types/signale": "^1.4.7",