waha-shared 1.0.193 → 1.0.194

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,23 @@ 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
+ 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
+ }>>;
15
31
  hasTextInput: z.ZodOptional<z.ZodBoolean>;
16
- placeholder: z.ZodOptional<z.ZodString>;
17
32
  radioButtons: z.ZodOptional<z.ZodArray<z.ZodObject<{
18
33
  text: z.ZodString;
19
34
  }, "strip", z.ZodTypeAny, {
@@ -47,8 +62,13 @@ export declare const MicroLessonSchema: z.ZodObject<{
47
62
  } | undefined;
48
63
  platform?: "Web Only" | "App Only" | "All" | undefined;
49
64
  image?: string | undefined;
65
+ textInput?: {
66
+ show: boolean;
67
+ placeholder?: string | undefined;
68
+ showCopyButton?: boolean | undefined;
69
+ prefilledText?: string | undefined;
70
+ } | undefined;
50
71
  hasTextInput?: boolean | undefined;
51
- placeholder?: string | undefined;
52
72
  radioButtons?: {
53
73
  text: string;
54
74
  }[] | undefined;
@@ -64,8 +84,13 @@ export declare const MicroLessonSchema: z.ZodObject<{
64
84
  } | undefined;
65
85
  platform?: "Web Only" | "App Only" | "All" | undefined;
66
86
  image?: string | undefined;
87
+ textInput?: {
88
+ show: boolean;
89
+ placeholder?: string | undefined;
90
+ showCopyButton?: boolean | undefined;
91
+ prefilledText?: string | undefined;
92
+ } | undefined;
67
93
  hasTextInput?: boolean | undefined;
68
- placeholder?: string | undefined;
69
94
  radioButtons?: {
70
95
  text: string;
71
96
  }[] | undefined;
@@ -88,8 +113,13 @@ export declare const MicroLessonSchema: z.ZodObject<{
88
113
  } | undefined;
89
114
  platform?: "Web Only" | "App Only" | "All" | undefined;
90
115
  image?: string | undefined;
116
+ textInput?: {
117
+ show: boolean;
118
+ placeholder?: string | undefined;
119
+ showCopyButton?: boolean | undefined;
120
+ prefilledText?: string | undefined;
121
+ } | undefined;
91
122
  hasTextInput?: boolean | undefined;
92
- placeholder?: string | undefined;
93
123
  radioButtons?: {
94
124
  text: string;
95
125
  }[] | undefined;
@@ -114,8 +144,13 @@ export declare const MicroLessonSchema: z.ZodObject<{
114
144
  } | undefined;
115
145
  platform?: "Web Only" | "App Only" | "All" | undefined;
116
146
  image?: string | undefined;
147
+ textInput?: {
148
+ show: boolean;
149
+ placeholder?: string | undefined;
150
+ showCopyButton?: boolean | undefined;
151
+ prefilledText?: string | undefined;
152
+ } | undefined;
117
153
  hasTextInput?: boolean | undefined;
118
- placeholder?: string | undefined;
119
154
  radioButtons?: {
120
155
  text: string;
121
156
  }[] | undefined;
@@ -140,8 +175,23 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
140
175
  body: z.ZodOptional<z.ZodString>;
141
176
  image: z.ZodOptional<z.ZodString>;
142
177
  audio: z.ZodOptional<z.ZodString>;
178
+ textInput: z.ZodOptional<z.ZodObject<{
179
+ show: z.ZodBoolean;
180
+ placeholder: z.ZodOptional<z.ZodString>;
181
+ showCopyButton: z.ZodOptional<z.ZodBoolean>;
182
+ prefilledText: z.ZodOptional<z.ZodString>;
183
+ }, "strip", z.ZodTypeAny, {
184
+ show: boolean;
185
+ placeholder?: string | undefined;
186
+ showCopyButton?: boolean | undefined;
187
+ prefilledText?: string | undefined;
188
+ }, {
189
+ show: boolean;
190
+ placeholder?: string | undefined;
191
+ showCopyButton?: boolean | undefined;
192
+ prefilledText?: string | undefined;
193
+ }>>;
143
194
  hasTextInput: z.ZodOptional<z.ZodBoolean>;
144
- placeholder: z.ZodOptional<z.ZodString>;
145
195
  radioButtons: z.ZodOptional<z.ZodArray<z.ZodObject<{
146
196
  text: z.ZodString;
147
197
  }, "strip", z.ZodTypeAny, {
@@ -175,8 +225,13 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
175
225
  } | undefined;
176
226
  platform?: "Web Only" | "App Only" | "All" | undefined;
177
227
  image?: string | undefined;
228
+ textInput?: {
229
+ show: boolean;
230
+ placeholder?: string | undefined;
231
+ showCopyButton?: boolean | undefined;
232
+ prefilledText?: string | undefined;
233
+ } | undefined;
178
234
  hasTextInput?: boolean | undefined;
179
- placeholder?: string | undefined;
180
235
  radioButtons?: {
181
236
  text: string;
182
237
  }[] | undefined;
@@ -192,8 +247,13 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
192
247
  } | undefined;
193
248
  platform?: "Web Only" | "App Only" | "All" | undefined;
194
249
  image?: string | undefined;
250
+ textInput?: {
251
+ show: boolean;
252
+ placeholder?: string | undefined;
253
+ showCopyButton?: boolean | undefined;
254
+ prefilledText?: string | undefined;
255
+ } | undefined;
195
256
  hasTextInput?: boolean | undefined;
196
- placeholder?: string | undefined;
197
257
  radioButtons?: {
198
258
  text: string;
199
259
  }[] | undefined;
@@ -216,8 +276,13 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
216
276
  } | undefined;
217
277
  platform?: "Web Only" | "App Only" | "All" | undefined;
218
278
  image?: string | undefined;
279
+ textInput?: {
280
+ show: boolean;
281
+ placeholder?: string | undefined;
282
+ showCopyButton?: boolean | undefined;
283
+ prefilledText?: string | undefined;
284
+ } | undefined;
219
285
  hasTextInput?: boolean | undefined;
220
- placeholder?: string | undefined;
221
286
  radioButtons?: {
222
287
  text: string;
223
288
  }[] | undefined;
@@ -242,8 +307,13 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
242
307
  } | undefined;
243
308
  platform?: "Web Only" | "App Only" | "All" | undefined;
244
309
  image?: string | undefined;
310
+ textInput?: {
311
+ show: boolean;
312
+ placeholder?: string | undefined;
313
+ showCopyButton?: boolean | undefined;
314
+ prefilledText?: string | undefined;
315
+ } | undefined;
245
316
  hasTextInput?: boolean | undefined;
246
- placeholder?: string | undefined;
247
317
  radioButtons?: {
248
318
  text: string;
249
319
  }[] | undefined;
@@ -271,8 +341,13 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
271
341
  } | undefined;
272
342
  platform?: "Web Only" | "App Only" | "All" | undefined;
273
343
  image?: string | undefined;
344
+ textInput?: {
345
+ show: boolean;
346
+ placeholder?: string | undefined;
347
+ showCopyButton?: boolean | undefined;
348
+ prefilledText?: string | undefined;
349
+ } | undefined;
274
350
  hasTextInput?: boolean | undefined;
275
- placeholder?: string | undefined;
276
351
  radioButtons?: {
277
352
  text: string;
278
353
  }[] | undefined;
@@ -300,8 +375,13 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
300
375
  } | undefined;
301
376
  platform?: "Web Only" | "App Only" | "All" | undefined;
302
377
  image?: string | undefined;
378
+ textInput?: {
379
+ show: boolean;
380
+ placeholder?: string | undefined;
381
+ showCopyButton?: boolean | undefined;
382
+ prefilledText?: string | undefined;
383
+ } | undefined;
303
384
  hasTextInput?: boolean | undefined;
304
- placeholder?: string | undefined;
305
385
  radioButtons?: {
306
386
  text: string;
307
387
  }[] | undefined;
@@ -328,8 +408,23 @@ export declare const MicroLessonsResponse: z.ZodObject<{
328
408
  body: z.ZodOptional<z.ZodString>;
329
409
  image: z.ZodOptional<z.ZodString>;
330
410
  audio: z.ZodOptional<z.ZodString>;
411
+ textInput: z.ZodOptional<z.ZodObject<{
412
+ show: z.ZodBoolean;
413
+ placeholder: z.ZodOptional<z.ZodString>;
414
+ showCopyButton: z.ZodOptional<z.ZodBoolean>;
415
+ prefilledText: z.ZodOptional<z.ZodString>;
416
+ }, "strip", z.ZodTypeAny, {
417
+ show: boolean;
418
+ placeholder?: string | undefined;
419
+ showCopyButton?: boolean | undefined;
420
+ prefilledText?: string | undefined;
421
+ }, {
422
+ show: boolean;
423
+ placeholder?: string | undefined;
424
+ showCopyButton?: boolean | undefined;
425
+ prefilledText?: string | undefined;
426
+ }>>;
331
427
  hasTextInput: z.ZodOptional<z.ZodBoolean>;
332
- placeholder: z.ZodOptional<z.ZodString>;
333
428
  radioButtons: z.ZodOptional<z.ZodArray<z.ZodObject<{
334
429
  text: z.ZodString;
335
430
  }, "strip", z.ZodTypeAny, {
@@ -363,8 +458,13 @@ export declare const MicroLessonsResponse: z.ZodObject<{
363
458
  } | undefined;
364
459
  platform?: "Web Only" | "App Only" | "All" | undefined;
365
460
  image?: string | undefined;
461
+ textInput?: {
462
+ show: boolean;
463
+ placeholder?: string | undefined;
464
+ showCopyButton?: boolean | undefined;
465
+ prefilledText?: string | undefined;
466
+ } | undefined;
366
467
  hasTextInput?: boolean | undefined;
367
- placeholder?: string | undefined;
368
468
  radioButtons?: {
369
469
  text: string;
370
470
  }[] | undefined;
@@ -380,8 +480,13 @@ export declare const MicroLessonsResponse: z.ZodObject<{
380
480
  } | undefined;
381
481
  platform?: "Web Only" | "App Only" | "All" | undefined;
382
482
  image?: string | undefined;
483
+ textInput?: {
484
+ show: boolean;
485
+ placeholder?: string | undefined;
486
+ showCopyButton?: boolean | undefined;
487
+ prefilledText?: string | undefined;
488
+ } | undefined;
383
489
  hasTextInput?: boolean | undefined;
384
- placeholder?: string | undefined;
385
490
  radioButtons?: {
386
491
  text: string;
387
492
  }[] | undefined;
@@ -404,8 +509,13 @@ export declare const MicroLessonsResponse: z.ZodObject<{
404
509
  } | undefined;
405
510
  platform?: "Web Only" | "App Only" | "All" | undefined;
406
511
  image?: string | undefined;
512
+ textInput?: {
513
+ show: boolean;
514
+ placeholder?: string | undefined;
515
+ showCopyButton?: boolean | undefined;
516
+ prefilledText?: string | undefined;
517
+ } | undefined;
407
518
  hasTextInput?: boolean | undefined;
408
- placeholder?: string | undefined;
409
519
  radioButtons?: {
410
520
  text: string;
411
521
  }[] | undefined;
@@ -430,8 +540,13 @@ export declare const MicroLessonsResponse: z.ZodObject<{
430
540
  } | undefined;
431
541
  platform?: "Web Only" | "App Only" | "All" | undefined;
432
542
  image?: string | undefined;
543
+ textInput?: {
544
+ show: boolean;
545
+ placeholder?: string | undefined;
546
+ showCopyButton?: boolean | undefined;
547
+ prefilledText?: string | undefined;
548
+ } | undefined;
433
549
  hasTextInput?: boolean | undefined;
434
- placeholder?: string | undefined;
435
550
  radioButtons?: {
436
551
  text: string;
437
552
  }[] | undefined;
@@ -459,8 +574,13 @@ export declare const MicroLessonsResponse: z.ZodObject<{
459
574
  } | undefined;
460
575
  platform?: "Web Only" | "App Only" | "All" | undefined;
461
576
  image?: string | undefined;
577
+ textInput?: {
578
+ show: boolean;
579
+ placeholder?: string | undefined;
580
+ showCopyButton?: boolean | undefined;
581
+ prefilledText?: string | undefined;
582
+ } | undefined;
462
583
  hasTextInput?: boolean | undefined;
463
- placeholder?: string | undefined;
464
584
  radioButtons?: {
465
585
  text: string;
466
586
  }[] | undefined;
@@ -488,8 +608,13 @@ export declare const MicroLessonsResponse: z.ZodObject<{
488
608
  } | undefined;
489
609
  platform?: "Web Only" | "App Only" | "All" | undefined;
490
610
  image?: string | undefined;
611
+ textInput?: {
612
+ show: boolean;
613
+ placeholder?: string | undefined;
614
+ showCopyButton?: boolean | undefined;
615
+ prefilledText?: string | undefined;
616
+ } | undefined;
491
617
  hasTextInput?: boolean | undefined;
492
- placeholder?: string | undefined;
493
618
  radioButtons?: {
494
619
  text: string;
495
620
  }[] | undefined;
@@ -519,8 +644,13 @@ export declare const MicroLessonsResponse: z.ZodObject<{
519
644
  } | undefined;
520
645
  platform?: "Web Only" | "App Only" | "All" | undefined;
521
646
  image?: string | undefined;
647
+ textInput?: {
648
+ show: boolean;
649
+ placeholder?: string | undefined;
650
+ showCopyButton?: boolean | undefined;
651
+ prefilledText?: string | undefined;
652
+ } | undefined;
522
653
  hasTextInput?: boolean | undefined;
523
- placeholder?: string | undefined;
524
654
  radioButtons?: {
525
655
  text: string;
526
656
  }[] | undefined;
@@ -550,8 +680,13 @@ export declare const MicroLessonsResponse: z.ZodObject<{
550
680
  } | undefined;
551
681
  platform?: "Web Only" | "App Only" | "All" | undefined;
552
682
  image?: string | undefined;
683
+ textInput?: {
684
+ show: boolean;
685
+ placeholder?: string | undefined;
686
+ showCopyButton?: boolean | undefined;
687
+ prefilledText?: string | undefined;
688
+ } | undefined;
553
689
  hasTextInput?: boolean | undefined;
554
- placeholder?: string | undefined;
555
690
  radioButtons?: {
556
691
  text: string;
557
692
  }[] | undefined;
@@ -22,11 +22,15 @@ 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
+ 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(),
25
33
  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.'),
30
34
  radioButtons: zod_1.default.array(zod_1.default.object({ text: zod_1.default.string() })).optional(),
31
35
  videoUrl: zod_1.default.string().optional(),
32
36
  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.194",
4
4
  "author": "Waha",
5
5
  "dependencies": {
6
6
  "@types/signale": "^1.4.7",