waha-shared 1.0.181 → 1.0.183

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.
@@ -1,5 +1,5 @@
1
1
  import z from 'zod';
2
- export declare const Article: z.ZodObject<{
2
+ export declare const ArticleSchema: z.ZodObject<{
3
3
  title: z.ZodString;
4
4
  author: z.ZodOptional<z.ZodString>;
5
5
  category: z.ZodOptional<z.ZodString>;
@@ -8,10 +8,10 @@ export declare const Article: z.ZodObject<{
8
8
  seekerFriendly: z.ZodOptional<z.ZodBoolean>;
9
9
  audio: z.ZodOptional<z.ZodString>;
10
10
  video: z.ZodOptional<z.ZodString>;
11
- date: z.ZodDate;
11
+ date: z.ZodString;
12
12
  impactStoryRegion: z.ZodOptional<z.ZodEnum<["North America", "Latin America and the Caribbean", "Middle East/North Africa", "Sub-Saharan Africa", "Western Europe", "Eastern Europe", "Western Asia", "Southern Asia", "Central Asia", "Southeast Asia", "Eastern Asia", "Oceania"]>>;
13
13
  }, "strip", z.ZodTypeAny, {
14
- date: Date;
14
+ date: string;
15
15
  title: string;
16
16
  audio?: string | undefined;
17
17
  video?: string | undefined;
@@ -22,7 +22,7 @@ export declare const Article: z.ZodObject<{
22
22
  seekerFriendly?: boolean | undefined;
23
23
  impactStoryRegion?: "North America" | "Latin America and the Caribbean" | "Middle East/North Africa" | "Sub-Saharan Africa" | "Western Europe" | "Eastern Europe" | "Western Asia" | "Southern Asia" | "Central Asia" | "Southeast Asia" | "Eastern Asia" | "Oceania" | undefined;
24
24
  }, {
25
- date: Date;
25
+ date: string;
26
26
  title: string;
27
27
  audio?: string | undefined;
28
28
  video?: string | undefined;
@@ -33,3 +33,185 @@ export declare const Article: z.ZodObject<{
33
33
  seekerFriendly?: boolean | undefined;
34
34
  impactStoryRegion?: "North America" | "Latin America and the Caribbean" | "Middle East/North Africa" | "Sub-Saharan Africa" | "Western Europe" | "Eastern Europe" | "Western Asia" | "Southern Asia" | "Central Asia" | "Southeast Asia" | "Eastern Asia" | "Oceania" | undefined;
35
35
  }>;
36
+ export type Article = z.infer<typeof ArticleSchema>;
37
+ export declare const ResponseArticleSchema: z.ZodObject<{
38
+ id: z.ZodString;
39
+ data: z.ZodObject<{
40
+ title: z.ZodString;
41
+ author: z.ZodOptional<z.ZodString>;
42
+ category: z.ZodOptional<z.ZodString>;
43
+ image: z.ZodOptional<z.ZodString>;
44
+ isDraft: z.ZodOptional<z.ZodBoolean>;
45
+ seekerFriendly: z.ZodOptional<z.ZodBoolean>;
46
+ audio: z.ZodOptional<z.ZodString>;
47
+ video: z.ZodOptional<z.ZodString>;
48
+ date: z.ZodString;
49
+ impactStoryRegion: z.ZodOptional<z.ZodEnum<["North America", "Latin America and the Caribbean", "Middle East/North Africa", "Sub-Saharan Africa", "Western Europe", "Eastern Europe", "Western Asia", "Southern Asia", "Central Asia", "Southeast Asia", "Eastern Asia", "Oceania"]>>;
50
+ }, "strip", z.ZodTypeAny, {
51
+ date: string;
52
+ title: string;
53
+ audio?: string | undefined;
54
+ video?: string | undefined;
55
+ category?: string | undefined;
56
+ author?: string | undefined;
57
+ image?: string | undefined;
58
+ isDraft?: boolean | undefined;
59
+ seekerFriendly?: boolean | undefined;
60
+ impactStoryRegion?: "North America" | "Latin America and the Caribbean" | "Middle East/North Africa" | "Sub-Saharan Africa" | "Western Europe" | "Eastern Europe" | "Western Asia" | "Southern Asia" | "Central Asia" | "Southeast Asia" | "Eastern Asia" | "Oceania" | undefined;
61
+ }, {
62
+ date: string;
63
+ title: string;
64
+ audio?: string | undefined;
65
+ video?: string | undefined;
66
+ category?: string | undefined;
67
+ author?: string | undefined;
68
+ image?: string | undefined;
69
+ isDraft?: boolean | undefined;
70
+ seekerFriendly?: boolean | undefined;
71
+ impactStoryRegion?: "North America" | "Latin America and the Caribbean" | "Middle East/North Africa" | "Sub-Saharan Africa" | "Western Europe" | "Eastern Europe" | "Western Asia" | "Southern Asia" | "Central Asia" | "Southeast Asia" | "Eastern Asia" | "Oceania" | undefined;
72
+ }>;
73
+ body: z.ZodString;
74
+ slug: z.ZodString;
75
+ }, "strip", z.ZodTypeAny, {
76
+ id: string;
77
+ body: string;
78
+ data: {
79
+ date: string;
80
+ title: string;
81
+ audio?: string | undefined;
82
+ video?: string | undefined;
83
+ category?: string | undefined;
84
+ author?: string | undefined;
85
+ image?: string | undefined;
86
+ isDraft?: boolean | undefined;
87
+ seekerFriendly?: boolean | undefined;
88
+ impactStoryRegion?: "North America" | "Latin America and the Caribbean" | "Middle East/North Africa" | "Sub-Saharan Africa" | "Western Europe" | "Eastern Europe" | "Western Asia" | "Southern Asia" | "Central Asia" | "Southeast Asia" | "Eastern Asia" | "Oceania" | undefined;
89
+ };
90
+ slug: string;
91
+ }, {
92
+ id: string;
93
+ body: string;
94
+ data: {
95
+ date: string;
96
+ title: string;
97
+ audio?: string | undefined;
98
+ video?: string | undefined;
99
+ category?: string | undefined;
100
+ author?: string | undefined;
101
+ image?: string | undefined;
102
+ isDraft?: boolean | undefined;
103
+ seekerFriendly?: boolean | undefined;
104
+ impactStoryRegion?: "North America" | "Latin America and the Caribbean" | "Middle East/North Africa" | "Sub-Saharan Africa" | "Western Europe" | "Eastern Europe" | "Western Asia" | "Southern Asia" | "Central Asia" | "Southeast Asia" | "Eastern Asia" | "Oceania" | undefined;
105
+ };
106
+ slug: string;
107
+ }>;
108
+ export type ResponseArticle = z.infer<typeof ResponseArticleSchema>;
109
+ export declare const ArticlesResponseSchema: z.ZodObject<{
110
+ data: z.ZodArray<z.ZodObject<{
111
+ id: z.ZodString;
112
+ data: z.ZodObject<{
113
+ title: z.ZodString;
114
+ author: z.ZodOptional<z.ZodString>;
115
+ category: z.ZodOptional<z.ZodString>;
116
+ image: z.ZodOptional<z.ZodString>;
117
+ isDraft: z.ZodOptional<z.ZodBoolean>;
118
+ seekerFriendly: z.ZodOptional<z.ZodBoolean>;
119
+ audio: z.ZodOptional<z.ZodString>;
120
+ video: z.ZodOptional<z.ZodString>;
121
+ date: z.ZodString;
122
+ impactStoryRegion: z.ZodOptional<z.ZodEnum<["North America", "Latin America and the Caribbean", "Middle East/North Africa", "Sub-Saharan Africa", "Western Europe", "Eastern Europe", "Western Asia", "Southern Asia", "Central Asia", "Southeast Asia", "Eastern Asia", "Oceania"]>>;
123
+ }, "strip", z.ZodTypeAny, {
124
+ date: string;
125
+ title: string;
126
+ audio?: string | undefined;
127
+ video?: string | undefined;
128
+ category?: string | undefined;
129
+ author?: string | undefined;
130
+ image?: string | undefined;
131
+ isDraft?: boolean | undefined;
132
+ seekerFriendly?: boolean | undefined;
133
+ impactStoryRegion?: "North America" | "Latin America and the Caribbean" | "Middle East/North Africa" | "Sub-Saharan Africa" | "Western Europe" | "Eastern Europe" | "Western Asia" | "Southern Asia" | "Central Asia" | "Southeast Asia" | "Eastern Asia" | "Oceania" | undefined;
134
+ }, {
135
+ date: string;
136
+ title: string;
137
+ audio?: string | undefined;
138
+ video?: string | undefined;
139
+ category?: string | undefined;
140
+ author?: string | undefined;
141
+ image?: string | undefined;
142
+ isDraft?: boolean | undefined;
143
+ seekerFriendly?: boolean | undefined;
144
+ impactStoryRegion?: "North America" | "Latin America and the Caribbean" | "Middle East/North Africa" | "Sub-Saharan Africa" | "Western Europe" | "Eastern Europe" | "Western Asia" | "Southern Asia" | "Central Asia" | "Southeast Asia" | "Eastern Asia" | "Oceania" | undefined;
145
+ }>;
146
+ body: z.ZodString;
147
+ slug: z.ZodString;
148
+ }, "strip", z.ZodTypeAny, {
149
+ id: string;
150
+ body: string;
151
+ data: {
152
+ date: string;
153
+ title: string;
154
+ audio?: string | undefined;
155
+ video?: string | undefined;
156
+ category?: string | undefined;
157
+ author?: string | undefined;
158
+ image?: string | undefined;
159
+ isDraft?: boolean | undefined;
160
+ seekerFriendly?: boolean | undefined;
161
+ impactStoryRegion?: "North America" | "Latin America and the Caribbean" | "Middle East/North Africa" | "Sub-Saharan Africa" | "Western Europe" | "Eastern Europe" | "Western Asia" | "Southern Asia" | "Central Asia" | "Southeast Asia" | "Eastern Asia" | "Oceania" | undefined;
162
+ };
163
+ slug: string;
164
+ }, {
165
+ id: string;
166
+ body: string;
167
+ data: {
168
+ date: string;
169
+ title: string;
170
+ audio?: string | undefined;
171
+ video?: string | undefined;
172
+ category?: string | undefined;
173
+ author?: string | undefined;
174
+ image?: string | undefined;
175
+ isDraft?: boolean | undefined;
176
+ seekerFriendly?: boolean | undefined;
177
+ impactStoryRegion?: "North America" | "Latin America and the Caribbean" | "Middle East/North Africa" | "Sub-Saharan Africa" | "Western Europe" | "Eastern Europe" | "Western Asia" | "Southern Asia" | "Central Asia" | "Southeast Asia" | "Eastern Asia" | "Oceania" | undefined;
178
+ };
179
+ slug: string;
180
+ }>, "many">;
181
+ }, "strip", z.ZodTypeAny, {
182
+ data: {
183
+ id: string;
184
+ body: string;
185
+ data: {
186
+ date: string;
187
+ title: string;
188
+ audio?: string | undefined;
189
+ video?: string | undefined;
190
+ category?: string | undefined;
191
+ author?: string | undefined;
192
+ image?: string | undefined;
193
+ isDraft?: boolean | undefined;
194
+ seekerFriendly?: boolean | undefined;
195
+ impactStoryRegion?: "North America" | "Latin America and the Caribbean" | "Middle East/North Africa" | "Sub-Saharan Africa" | "Western Europe" | "Eastern Europe" | "Western Asia" | "Southern Asia" | "Central Asia" | "Southeast Asia" | "Eastern Asia" | "Oceania" | undefined;
196
+ };
197
+ slug: string;
198
+ }[];
199
+ }, {
200
+ data: {
201
+ id: string;
202
+ body: string;
203
+ data: {
204
+ date: string;
205
+ title: string;
206
+ audio?: string | undefined;
207
+ video?: string | undefined;
208
+ category?: string | undefined;
209
+ author?: string | undefined;
210
+ image?: string | undefined;
211
+ isDraft?: boolean | undefined;
212
+ seekerFriendly?: boolean | undefined;
213
+ impactStoryRegion?: "North America" | "Latin America and the Caribbean" | "Middle East/North Africa" | "Sub-Saharan Africa" | "Western Europe" | "Eastern Europe" | "Western Asia" | "Southern Asia" | "Central Asia" | "Southeast Asia" | "Eastern Asia" | "Oceania" | undefined;
214
+ };
215
+ slug: string;
216
+ }[];
217
+ }>;
@@ -3,18 +3,26 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.Article = void 0;
6
+ exports.ArticlesResponseSchema = exports.ResponseArticleSchema = exports.ArticleSchema = void 0;
7
7
  const zod_1 = __importDefault(require("zod"));
8
- exports.Article = zod_1.default.object({
8
+ exports.ArticleSchema = zod_1.default.object({
9
9
  title: zod_1.default.string(),
10
10
  author: zod_1.default.string().optional(),
11
11
  category: zod_1.default.string().optional(),
12
12
  image: zod_1.default.string().optional(),
13
- isDraft: zod_1.default.boolean().optional(),
14
- seekerFriendly: zod_1.default.boolean().optional(),
13
+ isDraft: zod_1.default
14
+ .boolean()
15
+ .optional()
16
+ .describe('If this is checked the article will not be published.'),
17
+ seekerFriendly: zod_1.default
18
+ .boolean()
19
+ .optional()
20
+ .describe('If this is checked the article will be marked as seeker sensitive. Seeker sensitive articles will not link back to the website.'),
15
21
  audio: zod_1.default.string().optional(),
16
22
  video: zod_1.default.string().optional(),
17
- date: zod_1.default.date(),
23
+ date: zod_1.default
24
+ .string()
25
+ .describe('The date to publish the article. Can be in the future.'),
18
26
  impactStoryRegion: zod_1.default
19
27
  .enum([
20
28
  'North America',
@@ -30,5 +38,15 @@ exports.Article = zod_1.default.object({
30
38
  'Eastern Asia',
31
39
  'Oceania',
32
40
  ])
33
- .optional(),
41
+ .optional()
42
+ .describe('If this article is an impact story that should show up on the dashboard, select the region it is associated with.'),
43
+ });
44
+ exports.ResponseArticleSchema = zod_1.default.object({
45
+ id: zod_1.default.string(),
46
+ data: exports.ArticleSchema,
47
+ body: zod_1.default.string(),
48
+ slug: zod_1.default.string(),
49
+ });
50
+ exports.ArticlesResponseSchema = zod_1.default.object({
51
+ data: zod_1.default.array(exports.ResponseArticleSchema),
34
52
  });
@@ -83,3 +83,315 @@ export declare const MicroLesson: z.ZodObject<{
83
83
  seekerSensitive?: boolean | undefined;
84
84
  campaign?: string | undefined;
85
85
  }>;
86
+ export declare const ResponseMicroLesson: z.ZodObject<{
87
+ id: z.ZodString;
88
+ data: z.ZodObject<{
89
+ title: z.ZodString;
90
+ subtitle: z.ZodOptional<z.ZodString>;
91
+ isDraft: z.ZodOptional<z.ZodBoolean>;
92
+ seekerSensitive: z.ZodOptional<z.ZodBoolean>;
93
+ platform: z.ZodOptional<z.ZodEnum<["Web Only", "App Only", "Both"]>>;
94
+ campaign: z.ZodOptional<z.ZodString>;
95
+ pages: z.ZodArray<z.ZodObject<{
96
+ heading: z.ZodString;
97
+ body: z.ZodOptional<z.ZodString>;
98
+ image: z.ZodOptional<z.ZodString>;
99
+ audio: z.ZodOptional<z.ZodString>;
100
+ hasTextInput: z.ZodOptional<z.ZodBoolean>;
101
+ placeholder: z.ZodOptional<z.ZodString>;
102
+ radioButtons: z.ZodOptional<z.ZodArray<z.ZodObject<{
103
+ text: z.ZodString;
104
+ }, "strip", z.ZodTypeAny, {
105
+ text: string;
106
+ }, {
107
+ text: string;
108
+ }>, "many">>;
109
+ videoUrl: z.ZodOptional<z.ZodString>;
110
+ }, "strip", z.ZodTypeAny, {
111
+ heading: string;
112
+ audio?: string | undefined;
113
+ body?: string | undefined;
114
+ image?: string | undefined;
115
+ hasTextInput?: boolean | undefined;
116
+ placeholder?: string | undefined;
117
+ radioButtons?: {
118
+ text: string;
119
+ }[] | undefined;
120
+ videoUrl?: string | undefined;
121
+ }, {
122
+ heading: string;
123
+ audio?: string | undefined;
124
+ body?: string | undefined;
125
+ image?: string | undefined;
126
+ hasTextInput?: boolean | undefined;
127
+ placeholder?: string | undefined;
128
+ radioButtons?: {
129
+ text: string;
130
+ }[] | undefined;
131
+ videoUrl?: string | undefined;
132
+ }>, "many">;
133
+ }, "strip", z.ZodTypeAny, {
134
+ title: string;
135
+ pages: {
136
+ heading: string;
137
+ audio?: string | undefined;
138
+ body?: string | undefined;
139
+ image?: string | undefined;
140
+ hasTextInput?: boolean | undefined;
141
+ placeholder?: string | undefined;
142
+ radioButtons?: {
143
+ text: string;
144
+ }[] | undefined;
145
+ videoUrl?: string | undefined;
146
+ }[];
147
+ platform?: "Web Only" | "App Only" | "Both" | undefined;
148
+ isDraft?: boolean | undefined;
149
+ subtitle?: string | undefined;
150
+ seekerSensitive?: boolean | undefined;
151
+ campaign?: string | undefined;
152
+ }, {
153
+ title: string;
154
+ pages: {
155
+ heading: string;
156
+ audio?: string | undefined;
157
+ body?: string | undefined;
158
+ image?: string | undefined;
159
+ hasTextInput?: boolean | undefined;
160
+ placeholder?: string | undefined;
161
+ radioButtons?: {
162
+ text: string;
163
+ }[] | undefined;
164
+ videoUrl?: string | undefined;
165
+ }[];
166
+ platform?: "Web Only" | "App Only" | "Both" | undefined;
167
+ isDraft?: boolean | undefined;
168
+ subtitle?: string | undefined;
169
+ seekerSensitive?: boolean | undefined;
170
+ campaign?: string | undefined;
171
+ }>;
172
+ }, "strip", z.ZodTypeAny, {
173
+ id: string;
174
+ data: {
175
+ title: string;
176
+ pages: {
177
+ heading: string;
178
+ audio?: string | undefined;
179
+ body?: string | undefined;
180
+ image?: string | undefined;
181
+ hasTextInput?: boolean | undefined;
182
+ placeholder?: string | undefined;
183
+ radioButtons?: {
184
+ text: string;
185
+ }[] | undefined;
186
+ videoUrl?: string | undefined;
187
+ }[];
188
+ platform?: "Web Only" | "App Only" | "Both" | undefined;
189
+ isDraft?: boolean | undefined;
190
+ subtitle?: string | undefined;
191
+ seekerSensitive?: boolean | undefined;
192
+ campaign?: string | undefined;
193
+ };
194
+ }, {
195
+ id: string;
196
+ data: {
197
+ title: string;
198
+ pages: {
199
+ heading: string;
200
+ audio?: string | undefined;
201
+ body?: string | undefined;
202
+ image?: string | undefined;
203
+ hasTextInput?: boolean | undefined;
204
+ placeholder?: string | undefined;
205
+ radioButtons?: {
206
+ text: string;
207
+ }[] | undefined;
208
+ videoUrl?: string | undefined;
209
+ }[];
210
+ platform?: "Web Only" | "App Only" | "Both" | undefined;
211
+ isDraft?: boolean | undefined;
212
+ subtitle?: string | undefined;
213
+ seekerSensitive?: boolean | undefined;
214
+ campaign?: string | undefined;
215
+ };
216
+ }>;
217
+ export declare const MicroLessonsResponse: z.ZodObject<{
218
+ data: z.ZodArray<z.ZodObject<{
219
+ id: z.ZodString;
220
+ data: z.ZodObject<{
221
+ title: z.ZodString;
222
+ subtitle: z.ZodOptional<z.ZodString>;
223
+ isDraft: z.ZodOptional<z.ZodBoolean>;
224
+ seekerSensitive: z.ZodOptional<z.ZodBoolean>;
225
+ platform: z.ZodOptional<z.ZodEnum<["Web Only", "App Only", "Both"]>>;
226
+ campaign: z.ZodOptional<z.ZodString>;
227
+ pages: z.ZodArray<z.ZodObject<{
228
+ heading: z.ZodString;
229
+ body: z.ZodOptional<z.ZodString>;
230
+ image: z.ZodOptional<z.ZodString>;
231
+ audio: z.ZodOptional<z.ZodString>;
232
+ hasTextInput: z.ZodOptional<z.ZodBoolean>;
233
+ placeholder: z.ZodOptional<z.ZodString>;
234
+ radioButtons: z.ZodOptional<z.ZodArray<z.ZodObject<{
235
+ text: z.ZodString;
236
+ }, "strip", z.ZodTypeAny, {
237
+ text: string;
238
+ }, {
239
+ text: string;
240
+ }>, "many">>;
241
+ videoUrl: z.ZodOptional<z.ZodString>;
242
+ }, "strip", z.ZodTypeAny, {
243
+ heading: string;
244
+ audio?: string | undefined;
245
+ body?: string | undefined;
246
+ image?: string | undefined;
247
+ hasTextInput?: boolean | undefined;
248
+ placeholder?: string | undefined;
249
+ radioButtons?: {
250
+ text: string;
251
+ }[] | undefined;
252
+ videoUrl?: string | undefined;
253
+ }, {
254
+ heading: string;
255
+ audio?: string | undefined;
256
+ body?: string | undefined;
257
+ image?: string | undefined;
258
+ hasTextInput?: boolean | undefined;
259
+ placeholder?: string | undefined;
260
+ radioButtons?: {
261
+ text: string;
262
+ }[] | undefined;
263
+ videoUrl?: string | undefined;
264
+ }>, "many">;
265
+ }, "strip", z.ZodTypeAny, {
266
+ title: string;
267
+ pages: {
268
+ heading: string;
269
+ audio?: string | undefined;
270
+ body?: string | undefined;
271
+ image?: string | undefined;
272
+ hasTextInput?: boolean | undefined;
273
+ placeholder?: string | undefined;
274
+ radioButtons?: {
275
+ text: string;
276
+ }[] | undefined;
277
+ videoUrl?: string | undefined;
278
+ }[];
279
+ platform?: "Web Only" | "App Only" | "Both" | undefined;
280
+ isDraft?: boolean | undefined;
281
+ subtitle?: string | undefined;
282
+ seekerSensitive?: boolean | undefined;
283
+ campaign?: string | undefined;
284
+ }, {
285
+ title: string;
286
+ pages: {
287
+ heading: string;
288
+ audio?: string | undefined;
289
+ body?: string | undefined;
290
+ image?: string | undefined;
291
+ hasTextInput?: boolean | undefined;
292
+ placeholder?: string | undefined;
293
+ radioButtons?: {
294
+ text: string;
295
+ }[] | undefined;
296
+ videoUrl?: string | undefined;
297
+ }[];
298
+ platform?: "Web Only" | "App Only" | "Both" | undefined;
299
+ isDraft?: boolean | undefined;
300
+ subtitle?: string | undefined;
301
+ seekerSensitive?: boolean | undefined;
302
+ campaign?: string | undefined;
303
+ }>;
304
+ }, "strip", z.ZodTypeAny, {
305
+ id: string;
306
+ data: {
307
+ title: string;
308
+ pages: {
309
+ heading: string;
310
+ audio?: string | undefined;
311
+ body?: string | undefined;
312
+ image?: string | undefined;
313
+ hasTextInput?: boolean | undefined;
314
+ placeholder?: string | undefined;
315
+ radioButtons?: {
316
+ text: string;
317
+ }[] | undefined;
318
+ videoUrl?: string | undefined;
319
+ }[];
320
+ platform?: "Web Only" | "App Only" | "Both" | undefined;
321
+ isDraft?: boolean | undefined;
322
+ subtitle?: string | undefined;
323
+ seekerSensitive?: boolean | undefined;
324
+ campaign?: string | undefined;
325
+ };
326
+ }, {
327
+ id: string;
328
+ data: {
329
+ title: string;
330
+ pages: {
331
+ heading: string;
332
+ audio?: string | undefined;
333
+ body?: string | undefined;
334
+ image?: string | undefined;
335
+ hasTextInput?: boolean | undefined;
336
+ placeholder?: string | undefined;
337
+ radioButtons?: {
338
+ text: string;
339
+ }[] | undefined;
340
+ videoUrl?: string | undefined;
341
+ }[];
342
+ platform?: "Web Only" | "App Only" | "Both" | undefined;
343
+ isDraft?: boolean | undefined;
344
+ subtitle?: string | undefined;
345
+ seekerSensitive?: boolean | undefined;
346
+ campaign?: string | undefined;
347
+ };
348
+ }>, "many">;
349
+ }, "strip", z.ZodTypeAny, {
350
+ data: {
351
+ id: string;
352
+ data: {
353
+ title: string;
354
+ pages: {
355
+ heading: string;
356
+ audio?: string | undefined;
357
+ body?: string | undefined;
358
+ image?: string | undefined;
359
+ hasTextInput?: boolean | undefined;
360
+ placeholder?: string | undefined;
361
+ radioButtons?: {
362
+ text: string;
363
+ }[] | undefined;
364
+ videoUrl?: string | undefined;
365
+ }[];
366
+ platform?: "Web Only" | "App Only" | "Both" | undefined;
367
+ isDraft?: boolean | undefined;
368
+ subtitle?: string | undefined;
369
+ seekerSensitive?: boolean | undefined;
370
+ campaign?: string | undefined;
371
+ };
372
+ }[];
373
+ }, {
374
+ data: {
375
+ id: string;
376
+ data: {
377
+ title: string;
378
+ pages: {
379
+ heading: string;
380
+ audio?: string | undefined;
381
+ body?: string | undefined;
382
+ image?: string | undefined;
383
+ hasTextInput?: boolean | undefined;
384
+ placeholder?: string | undefined;
385
+ radioButtons?: {
386
+ text: string;
387
+ }[] | undefined;
388
+ videoUrl?: string | undefined;
389
+ }[];
390
+ platform?: "Web Only" | "App Only" | "Both" | undefined;
391
+ isDraft?: boolean | undefined;
392
+ subtitle?: string | undefined;
393
+ seekerSensitive?: boolean | undefined;
394
+ campaign?: string | undefined;
395
+ };
396
+ }[];
397
+ }>;
@@ -3,23 +3,45 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.MicroLesson = void 0;
6
+ exports.MicroLessonsResponse = exports.ResponseMicroLesson = exports.MicroLesson = void 0;
7
7
  const zod_1 = __importDefault(require("zod"));
8
8
  exports.MicroLesson = zod_1.default.object({
9
9
  title: zod_1.default.string(),
10
10
  subtitle: zod_1.default.string().optional(),
11
- isDraft: zod_1.default.boolean().optional(),
12
- seekerSensitive: zod_1.default.boolean().optional(),
13
- platform: zod_1.default.enum(['Web Only', 'App Only', 'Both']).optional(),
14
- campaign: zod_1.default.string().optional(),
11
+ isDraft: zod_1.default
12
+ .boolean()
13
+ .optional()
14
+ .describe('If this is checked the micro lesson will not be published.'),
15
+ seekerSensitive: zod_1.default
16
+ .boolean()
17
+ .optional()
18
+ .describe('If this is checked the micro lesson will be marked as seeker sensitive. Seeker sensitive micro lessons will not link back to the website.'),
19
+ platform: zod_1.default
20
+ .enum(['Web Only', 'App Only', 'Both'])
21
+ .optional()
22
+ .describe('Set to determine which platform the micro lesson is available on.'),
23
+ campaign: zod_1.default
24
+ .string()
25
+ .optional()
26
+ .describe('Optional campaign identifier for tracking purposes.'),
15
27
  pages: zod_1.default.array(zod_1.default.object({
16
- heading: zod_1.default.string(),
28
+ heading: zod_1.default.string().describe('The heading of the page'),
17
29
  body: zod_1.default.string().optional(),
18
30
  image: zod_1.default.string().optional(),
19
31
  audio: zod_1.default.string().optional(),
20
32
  hasTextInput: zod_1.default.boolean().optional(),
21
- placeholder: zod_1.default.string().optional(),
33
+ placeholder: zod_1.default
34
+ .string()
35
+ .optional()
36
+ .describe('The placeholder text for the text input field.'),
22
37
  radioButtons: zod_1.default.array(zod_1.default.object({ text: zod_1.default.string() })).optional(),
23
38
  videoUrl: zod_1.default.string().optional(),
24
39
  })),
25
40
  });
41
+ exports.ResponseMicroLesson = zod_1.default.object({
42
+ id: zod_1.default.string(),
43
+ data: exports.MicroLesson,
44
+ });
45
+ exports.MicroLessonsResponse = zod_1.default.object({
46
+ data: zod_1.default.array(exports.ResponseMicroLesson),
47
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waha-shared",
3
- "version": "1.0.181",
3
+ "version": "1.0.183",
4
4
  "author": "Waha",
5
5
  "dependencies": {
6
6
  "@types/signale": "^1.4.7",