waha-shared 1.0.193 → 1.0.195

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.
@@ -12,8 +12,22 @@ export declare const MicroLessonSchema: z.ZodObject<{
12
12
  body: z.ZodOptional<z.ZodString>;
13
13
  image: z.ZodOptional<z.ZodString>;
14
14
  audio: z.ZodOptional<z.ZodString>;
15
- hasTextInput: z.ZodOptional<z.ZodBoolean>;
16
- placeholder: z.ZodOptional<z.ZodString>;
15
+ textInput: z.ZodOptional<z.ZodObject<{
16
+ show: z.ZodBoolean;
17
+ placeholder: z.ZodOptional<z.ZodString>;
18
+ showCopyButton: z.ZodOptional<z.ZodBoolean>;
19
+ prefilledText: z.ZodOptional<z.ZodString>;
20
+ }, "strip", z.ZodTypeAny, {
21
+ show: boolean;
22
+ placeholder?: string | undefined;
23
+ showCopyButton?: boolean | undefined;
24
+ prefilledText?: string | undefined;
25
+ }, {
26
+ show: boolean;
27
+ placeholder?: string | undefined;
28
+ showCopyButton?: boolean | undefined;
29
+ prefilledText?: string | undefined;
30
+ }>>;
17
31
  radioButtons: z.ZodOptional<z.ZodArray<z.ZodObject<{
18
32
  text: z.ZodString;
19
33
  }, "strip", z.ZodTypeAny, {
@@ -47,8 +61,12 @@ export declare const MicroLessonSchema: z.ZodObject<{
47
61
  } | undefined;
48
62
  platform?: "Web Only" | "App Only" | "All" | undefined;
49
63
  image?: string | undefined;
50
- hasTextInput?: boolean | undefined;
51
- placeholder?: string | undefined;
64
+ textInput?: {
65
+ show: boolean;
66
+ placeholder?: string | undefined;
67
+ showCopyButton?: boolean | undefined;
68
+ prefilledText?: string | undefined;
69
+ } | undefined;
52
70
  radioButtons?: {
53
71
  text: string;
54
72
  }[] | undefined;
@@ -64,8 +82,12 @@ export declare const MicroLessonSchema: z.ZodObject<{
64
82
  } | undefined;
65
83
  platform?: "Web Only" | "App Only" | "All" | undefined;
66
84
  image?: string | undefined;
67
- hasTextInput?: boolean | undefined;
68
- placeholder?: string | undefined;
85
+ textInput?: {
86
+ show: boolean;
87
+ placeholder?: string | undefined;
88
+ showCopyButton?: boolean | undefined;
89
+ prefilledText?: string | undefined;
90
+ } | undefined;
69
91
  radioButtons?: {
70
92
  text: string;
71
93
  }[] | undefined;
@@ -88,8 +110,12 @@ export declare const MicroLessonSchema: z.ZodObject<{
88
110
  } | undefined;
89
111
  platform?: "Web Only" | "App Only" | "All" | undefined;
90
112
  image?: string | undefined;
91
- hasTextInput?: boolean | undefined;
92
- placeholder?: string | undefined;
113
+ textInput?: {
114
+ show: boolean;
115
+ placeholder?: string | undefined;
116
+ showCopyButton?: boolean | undefined;
117
+ prefilledText?: string | undefined;
118
+ } | undefined;
93
119
  radioButtons?: {
94
120
  text: string;
95
121
  }[] | undefined;
@@ -114,8 +140,12 @@ export declare const MicroLessonSchema: z.ZodObject<{
114
140
  } | undefined;
115
141
  platform?: "Web Only" | "App Only" | "All" | undefined;
116
142
  image?: string | undefined;
117
- hasTextInput?: boolean | undefined;
118
- placeholder?: string | undefined;
143
+ textInput?: {
144
+ show: boolean;
145
+ placeholder?: string | undefined;
146
+ showCopyButton?: boolean | undefined;
147
+ prefilledText?: string | undefined;
148
+ } | undefined;
119
149
  radioButtons?: {
120
150
  text: string;
121
151
  }[] | undefined;
@@ -140,8 +170,22 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
140
170
  body: z.ZodOptional<z.ZodString>;
141
171
  image: z.ZodOptional<z.ZodString>;
142
172
  audio: z.ZodOptional<z.ZodString>;
143
- hasTextInput: z.ZodOptional<z.ZodBoolean>;
144
- placeholder: z.ZodOptional<z.ZodString>;
173
+ textInput: z.ZodOptional<z.ZodObject<{
174
+ show: z.ZodBoolean;
175
+ placeholder: z.ZodOptional<z.ZodString>;
176
+ showCopyButton: z.ZodOptional<z.ZodBoolean>;
177
+ prefilledText: z.ZodOptional<z.ZodString>;
178
+ }, "strip", z.ZodTypeAny, {
179
+ show: boolean;
180
+ placeholder?: string | undefined;
181
+ showCopyButton?: boolean | undefined;
182
+ prefilledText?: string | undefined;
183
+ }, {
184
+ show: boolean;
185
+ placeholder?: string | undefined;
186
+ showCopyButton?: boolean | undefined;
187
+ prefilledText?: string | undefined;
188
+ }>>;
145
189
  radioButtons: z.ZodOptional<z.ZodArray<z.ZodObject<{
146
190
  text: z.ZodString;
147
191
  }, "strip", z.ZodTypeAny, {
@@ -175,8 +219,12 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
175
219
  } | undefined;
176
220
  platform?: "Web Only" | "App Only" | "All" | undefined;
177
221
  image?: string | undefined;
178
- hasTextInput?: boolean | undefined;
179
- placeholder?: string | undefined;
222
+ textInput?: {
223
+ show: boolean;
224
+ placeholder?: string | undefined;
225
+ showCopyButton?: boolean | undefined;
226
+ prefilledText?: string | undefined;
227
+ } | undefined;
180
228
  radioButtons?: {
181
229
  text: string;
182
230
  }[] | undefined;
@@ -192,8 +240,12 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
192
240
  } | undefined;
193
241
  platform?: "Web Only" | "App Only" | "All" | undefined;
194
242
  image?: string | undefined;
195
- hasTextInput?: boolean | undefined;
196
- placeholder?: string | undefined;
243
+ textInput?: {
244
+ show: boolean;
245
+ placeholder?: string | undefined;
246
+ showCopyButton?: boolean | undefined;
247
+ prefilledText?: string | undefined;
248
+ } | undefined;
197
249
  radioButtons?: {
198
250
  text: string;
199
251
  }[] | undefined;
@@ -216,8 +268,12 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
216
268
  } | undefined;
217
269
  platform?: "Web Only" | "App Only" | "All" | undefined;
218
270
  image?: string | undefined;
219
- hasTextInput?: boolean | undefined;
220
- placeholder?: string | undefined;
271
+ textInput?: {
272
+ show: boolean;
273
+ placeholder?: string | undefined;
274
+ showCopyButton?: boolean | undefined;
275
+ prefilledText?: string | undefined;
276
+ } | undefined;
221
277
  radioButtons?: {
222
278
  text: string;
223
279
  }[] | undefined;
@@ -242,8 +298,12 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
242
298
  } | undefined;
243
299
  platform?: "Web Only" | "App Only" | "All" | undefined;
244
300
  image?: string | undefined;
245
- hasTextInput?: boolean | undefined;
246
- placeholder?: string | undefined;
301
+ textInput?: {
302
+ show: boolean;
303
+ placeholder?: string | undefined;
304
+ showCopyButton?: boolean | undefined;
305
+ prefilledText?: string | undefined;
306
+ } | undefined;
247
307
  radioButtons?: {
248
308
  text: string;
249
309
  }[] | undefined;
@@ -271,8 +331,12 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
271
331
  } | undefined;
272
332
  platform?: "Web Only" | "App Only" | "All" | undefined;
273
333
  image?: string | undefined;
274
- hasTextInput?: boolean | undefined;
275
- placeholder?: string | undefined;
334
+ textInput?: {
335
+ show: boolean;
336
+ placeholder?: string | undefined;
337
+ showCopyButton?: boolean | undefined;
338
+ prefilledText?: string | undefined;
339
+ } | undefined;
276
340
  radioButtons?: {
277
341
  text: string;
278
342
  }[] | undefined;
@@ -300,8 +364,12 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
300
364
  } | undefined;
301
365
  platform?: "Web Only" | "App Only" | "All" | undefined;
302
366
  image?: string | undefined;
303
- hasTextInput?: boolean | undefined;
304
- placeholder?: string | undefined;
367
+ textInput?: {
368
+ show: boolean;
369
+ placeholder?: string | undefined;
370
+ showCopyButton?: boolean | undefined;
371
+ prefilledText?: string | undefined;
372
+ } | undefined;
305
373
  radioButtons?: {
306
374
  text: string;
307
375
  }[] | undefined;
@@ -328,8 +396,22 @@ export declare const MicroLessonsResponse: z.ZodObject<{
328
396
  body: z.ZodOptional<z.ZodString>;
329
397
  image: z.ZodOptional<z.ZodString>;
330
398
  audio: z.ZodOptional<z.ZodString>;
331
- hasTextInput: z.ZodOptional<z.ZodBoolean>;
332
- placeholder: z.ZodOptional<z.ZodString>;
399
+ textInput: z.ZodOptional<z.ZodObject<{
400
+ show: z.ZodBoolean;
401
+ placeholder: z.ZodOptional<z.ZodString>;
402
+ showCopyButton: z.ZodOptional<z.ZodBoolean>;
403
+ prefilledText: z.ZodOptional<z.ZodString>;
404
+ }, "strip", z.ZodTypeAny, {
405
+ show: boolean;
406
+ placeholder?: string | undefined;
407
+ showCopyButton?: boolean | undefined;
408
+ prefilledText?: string | undefined;
409
+ }, {
410
+ show: boolean;
411
+ placeholder?: string | undefined;
412
+ showCopyButton?: boolean | undefined;
413
+ prefilledText?: string | undefined;
414
+ }>>;
333
415
  radioButtons: z.ZodOptional<z.ZodArray<z.ZodObject<{
334
416
  text: z.ZodString;
335
417
  }, "strip", z.ZodTypeAny, {
@@ -363,8 +445,12 @@ export declare const MicroLessonsResponse: z.ZodObject<{
363
445
  } | undefined;
364
446
  platform?: "Web Only" | "App Only" | "All" | undefined;
365
447
  image?: string | undefined;
366
- hasTextInput?: boolean | undefined;
367
- placeholder?: string | undefined;
448
+ textInput?: {
449
+ show: boolean;
450
+ placeholder?: string | undefined;
451
+ showCopyButton?: boolean | undefined;
452
+ prefilledText?: string | undefined;
453
+ } | undefined;
368
454
  radioButtons?: {
369
455
  text: string;
370
456
  }[] | undefined;
@@ -380,8 +466,12 @@ export declare const MicroLessonsResponse: z.ZodObject<{
380
466
  } | undefined;
381
467
  platform?: "Web Only" | "App Only" | "All" | undefined;
382
468
  image?: string | undefined;
383
- hasTextInput?: boolean | undefined;
384
- placeholder?: string | undefined;
469
+ textInput?: {
470
+ show: boolean;
471
+ placeholder?: string | undefined;
472
+ showCopyButton?: boolean | undefined;
473
+ prefilledText?: string | undefined;
474
+ } | undefined;
385
475
  radioButtons?: {
386
476
  text: string;
387
477
  }[] | undefined;
@@ -404,8 +494,12 @@ export declare const MicroLessonsResponse: z.ZodObject<{
404
494
  } | undefined;
405
495
  platform?: "Web Only" | "App Only" | "All" | undefined;
406
496
  image?: string | undefined;
407
- hasTextInput?: boolean | undefined;
408
- placeholder?: string | undefined;
497
+ textInput?: {
498
+ show: boolean;
499
+ placeholder?: string | undefined;
500
+ showCopyButton?: boolean | undefined;
501
+ prefilledText?: string | undefined;
502
+ } | undefined;
409
503
  radioButtons?: {
410
504
  text: string;
411
505
  }[] | undefined;
@@ -430,8 +524,12 @@ export declare const MicroLessonsResponse: z.ZodObject<{
430
524
  } | undefined;
431
525
  platform?: "Web Only" | "App Only" | "All" | undefined;
432
526
  image?: string | undefined;
433
- hasTextInput?: boolean | undefined;
434
- placeholder?: string | undefined;
527
+ textInput?: {
528
+ show: boolean;
529
+ placeholder?: string | undefined;
530
+ showCopyButton?: boolean | undefined;
531
+ prefilledText?: string | undefined;
532
+ } | undefined;
435
533
  radioButtons?: {
436
534
  text: string;
437
535
  }[] | undefined;
@@ -459,8 +557,12 @@ export declare const MicroLessonsResponse: z.ZodObject<{
459
557
  } | undefined;
460
558
  platform?: "Web Only" | "App Only" | "All" | undefined;
461
559
  image?: string | undefined;
462
- hasTextInput?: boolean | undefined;
463
- placeholder?: string | undefined;
560
+ textInput?: {
561
+ show: boolean;
562
+ placeholder?: string | undefined;
563
+ showCopyButton?: boolean | undefined;
564
+ prefilledText?: string | undefined;
565
+ } | undefined;
464
566
  radioButtons?: {
465
567
  text: string;
466
568
  }[] | undefined;
@@ -488,8 +590,12 @@ export declare const MicroLessonsResponse: z.ZodObject<{
488
590
  } | undefined;
489
591
  platform?: "Web Only" | "App Only" | "All" | undefined;
490
592
  image?: string | undefined;
491
- hasTextInput?: boolean | undefined;
492
- placeholder?: string | undefined;
593
+ textInput?: {
594
+ show: boolean;
595
+ placeholder?: string | undefined;
596
+ showCopyButton?: boolean | undefined;
597
+ prefilledText?: string | undefined;
598
+ } | undefined;
493
599
  radioButtons?: {
494
600
  text: string;
495
601
  }[] | undefined;
@@ -519,8 +625,12 @@ export declare const MicroLessonsResponse: z.ZodObject<{
519
625
  } | undefined;
520
626
  platform?: "Web Only" | "App Only" | "All" | undefined;
521
627
  image?: string | undefined;
522
- hasTextInput?: boolean | undefined;
523
- placeholder?: string | undefined;
628
+ textInput?: {
629
+ show: boolean;
630
+ placeholder?: string | undefined;
631
+ showCopyButton?: boolean | undefined;
632
+ prefilledText?: string | undefined;
633
+ } | undefined;
524
634
  radioButtons?: {
525
635
  text: string;
526
636
  }[] | undefined;
@@ -550,8 +660,12 @@ export declare const MicroLessonsResponse: z.ZodObject<{
550
660
  } | undefined;
551
661
  platform?: "Web Only" | "App Only" | "All" | undefined;
552
662
  image?: string | undefined;
553
- hasTextInput?: boolean | undefined;
554
- placeholder?: string | undefined;
663
+ textInput?: {
664
+ show: boolean;
665
+ placeholder?: string | undefined;
666
+ showCopyButton?: boolean | undefined;
667
+ prefilledText?: string | undefined;
668
+ } | undefined;
555
669
  radioButtons?: {
556
670
  text: string;
557
671
  }[] | undefined;
@@ -22,11 +22,14 @@ exports.MicroLessonSchema = zod_1.default.object({
22
22
  body: zod_1.default.string().optional(),
23
23
  image: zod_1.default.string().optional(),
24
24
  audio: zod_1.default.string().optional(),
25
- hasTextInput: zod_1.default.boolean().optional(),
26
- placeholder: zod_1.default
27
- .string()
28
- .optional()
29
- .describe('The placeholder text for the text input field.'),
25
+ textInput: zod_1.default
26
+ .object({
27
+ show: zod_1.default.boolean(),
28
+ placeholder: zod_1.default.string().optional(),
29
+ showCopyButton: zod_1.default.boolean().optional(),
30
+ prefilledText: zod_1.default.string().optional(),
31
+ })
32
+ .optional(),
30
33
  radioButtons: zod_1.default.array(zod_1.default.object({ text: zod_1.default.string() })).optional(),
31
34
  videoUrl: zod_1.default.string().optional(),
32
35
  platform: webContent_1.PlatformSchema.optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waha-shared",
3
- "version": "1.0.193",
3
+ "version": "1.0.195",
4
4
  "author": "Waha",
5
5
  "dependencies": {
6
6
  "@types/signale": "^1.4.7",