waha-shared 1.0.202 → 1.0.203
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.
package/dist/types/articles.d.ts
CHANGED
|
@@ -4,9 +4,9 @@ export declare const ArticleSchema: z.ZodObject<{
|
|
|
4
4
|
author: z.ZodOptional<z.ZodString>;
|
|
5
5
|
category: z.ZodEnum<["Case Studies", "Discovering God", "Disciple Making Secrets", "Product Updates", "Books", "Films"]>;
|
|
6
6
|
image: z.ZodOptional<z.ZodString>;
|
|
7
|
-
date: z.ZodUnion<[z.ZodString, z.ZodDate]
|
|
8
|
-
isDraft: z.ZodBoolean
|
|
9
|
-
seekerFriendly: z.ZodBoolean
|
|
7
|
+
date: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
|
|
8
|
+
isDraft: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
+
seekerFriendly: z.ZodOptional<z.ZodBoolean>;
|
|
10
10
|
platform: z.ZodEnum<["Web Only", "App Only", "All"]>;
|
|
11
11
|
audio: z.ZodOptional<z.ZodObject<{
|
|
12
12
|
audioUrl: z.ZodString;
|
|
@@ -33,12 +33,10 @@ export declare const ArticleSchema: z.ZodObject<{
|
|
|
33
33
|
}>>;
|
|
34
34
|
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"]>>;
|
|
35
35
|
}, "strip", z.ZodTypeAny, {
|
|
36
|
-
date: string | Date;
|
|
37
36
|
title: string;
|
|
38
37
|
category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
|
|
39
38
|
platform: "Web Only" | "App Only" | "All";
|
|
40
|
-
|
|
41
|
-
seekerFriendly: boolean;
|
|
39
|
+
date?: string | Date | undefined;
|
|
42
40
|
audio?: {
|
|
43
41
|
audioUrl: string;
|
|
44
42
|
loop?: boolean | undefined;
|
|
@@ -50,14 +48,14 @@ export declare const ArticleSchema: z.ZodObject<{
|
|
|
50
48
|
} | undefined;
|
|
51
49
|
author?: string | undefined;
|
|
52
50
|
image?: string | undefined;
|
|
51
|
+
isDraft?: boolean | undefined;
|
|
52
|
+
seekerFriendly?: boolean | undefined;
|
|
53
53
|
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;
|
|
54
54
|
}, {
|
|
55
|
-
date: string | Date;
|
|
56
55
|
title: string;
|
|
57
56
|
category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
|
|
58
57
|
platform: "Web Only" | "App Only" | "All";
|
|
59
|
-
|
|
60
|
-
seekerFriendly: boolean;
|
|
58
|
+
date?: string | Date | undefined;
|
|
61
59
|
audio?: {
|
|
62
60
|
audioUrl: string;
|
|
63
61
|
loop?: boolean | undefined;
|
|
@@ -69,6 +67,8 @@ export declare const ArticleSchema: z.ZodObject<{
|
|
|
69
67
|
} | undefined;
|
|
70
68
|
author?: string | undefined;
|
|
71
69
|
image?: string | undefined;
|
|
70
|
+
isDraft?: boolean | undefined;
|
|
71
|
+
seekerFriendly?: boolean | undefined;
|
|
72
72
|
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;
|
|
73
73
|
}>;
|
|
74
74
|
export type Article = z.infer<typeof ArticleSchema>;
|
|
@@ -79,9 +79,9 @@ export declare const ResponseArticleSchema: z.ZodObject<{
|
|
|
79
79
|
author: z.ZodOptional<z.ZodString>;
|
|
80
80
|
category: z.ZodEnum<["Case Studies", "Discovering God", "Disciple Making Secrets", "Product Updates", "Books", "Films"]>;
|
|
81
81
|
image: z.ZodOptional<z.ZodString>;
|
|
82
|
-
date: z.ZodUnion<[z.ZodString, z.ZodDate]
|
|
83
|
-
isDraft: z.ZodBoolean
|
|
84
|
-
seekerFriendly: z.ZodBoolean
|
|
82
|
+
date: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
|
|
83
|
+
isDraft: z.ZodOptional<z.ZodBoolean>;
|
|
84
|
+
seekerFriendly: z.ZodOptional<z.ZodBoolean>;
|
|
85
85
|
platform: z.ZodEnum<["Web Only", "App Only", "All"]>;
|
|
86
86
|
audio: z.ZodOptional<z.ZodObject<{
|
|
87
87
|
audioUrl: z.ZodString;
|
|
@@ -108,12 +108,10 @@ export declare const ResponseArticleSchema: z.ZodObject<{
|
|
|
108
108
|
}>>;
|
|
109
109
|
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"]>>;
|
|
110
110
|
}, "strip", z.ZodTypeAny, {
|
|
111
|
-
date: string | Date;
|
|
112
111
|
title: string;
|
|
113
112
|
category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
|
|
114
113
|
platform: "Web Only" | "App Only" | "All";
|
|
115
|
-
|
|
116
|
-
seekerFriendly: boolean;
|
|
114
|
+
date?: string | Date | undefined;
|
|
117
115
|
audio?: {
|
|
118
116
|
audioUrl: string;
|
|
119
117
|
loop?: boolean | undefined;
|
|
@@ -125,14 +123,14 @@ export declare const ResponseArticleSchema: z.ZodObject<{
|
|
|
125
123
|
} | undefined;
|
|
126
124
|
author?: string | undefined;
|
|
127
125
|
image?: string | undefined;
|
|
126
|
+
isDraft?: boolean | undefined;
|
|
127
|
+
seekerFriendly?: boolean | undefined;
|
|
128
128
|
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;
|
|
129
129
|
}, {
|
|
130
|
-
date: string | Date;
|
|
131
130
|
title: string;
|
|
132
131
|
category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
|
|
133
132
|
platform: "Web Only" | "App Only" | "All";
|
|
134
|
-
|
|
135
|
-
seekerFriendly: boolean;
|
|
133
|
+
date?: string | Date | undefined;
|
|
136
134
|
audio?: {
|
|
137
135
|
audioUrl: string;
|
|
138
136
|
loop?: boolean | undefined;
|
|
@@ -144,6 +142,8 @@ export declare const ResponseArticleSchema: z.ZodObject<{
|
|
|
144
142
|
} | undefined;
|
|
145
143
|
author?: string | undefined;
|
|
146
144
|
image?: string | undefined;
|
|
145
|
+
isDraft?: boolean | undefined;
|
|
146
|
+
seekerFriendly?: boolean | undefined;
|
|
147
147
|
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;
|
|
148
148
|
}>;
|
|
149
149
|
body: z.ZodString;
|
|
@@ -152,12 +152,10 @@ export declare const ResponseArticleSchema: z.ZodObject<{
|
|
|
152
152
|
id: string;
|
|
153
153
|
body: string;
|
|
154
154
|
data: {
|
|
155
|
-
date: string | Date;
|
|
156
155
|
title: string;
|
|
157
156
|
category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
|
|
158
157
|
platform: "Web Only" | "App Only" | "All";
|
|
159
|
-
|
|
160
|
-
seekerFriendly: boolean;
|
|
158
|
+
date?: string | Date | undefined;
|
|
161
159
|
audio?: {
|
|
162
160
|
audioUrl: string;
|
|
163
161
|
loop?: boolean | undefined;
|
|
@@ -169,6 +167,8 @@ export declare const ResponseArticleSchema: z.ZodObject<{
|
|
|
169
167
|
} | undefined;
|
|
170
168
|
author?: string | undefined;
|
|
171
169
|
image?: string | undefined;
|
|
170
|
+
isDraft?: boolean | undefined;
|
|
171
|
+
seekerFriendly?: boolean | undefined;
|
|
172
172
|
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;
|
|
173
173
|
};
|
|
174
174
|
slug: string;
|
|
@@ -176,12 +176,10 @@ export declare const ResponseArticleSchema: z.ZodObject<{
|
|
|
176
176
|
id: string;
|
|
177
177
|
body: string;
|
|
178
178
|
data: {
|
|
179
|
-
date: string | Date;
|
|
180
179
|
title: string;
|
|
181
180
|
category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
|
|
182
181
|
platform: "Web Only" | "App Only" | "All";
|
|
183
|
-
|
|
184
|
-
seekerFriendly: boolean;
|
|
182
|
+
date?: string | Date | undefined;
|
|
185
183
|
audio?: {
|
|
186
184
|
audioUrl: string;
|
|
187
185
|
loop?: boolean | undefined;
|
|
@@ -193,6 +191,8 @@ export declare const ResponseArticleSchema: z.ZodObject<{
|
|
|
193
191
|
} | undefined;
|
|
194
192
|
author?: string | undefined;
|
|
195
193
|
image?: string | undefined;
|
|
194
|
+
isDraft?: boolean | undefined;
|
|
195
|
+
seekerFriendly?: boolean | undefined;
|
|
196
196
|
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;
|
|
197
197
|
};
|
|
198
198
|
slug: string;
|
|
@@ -206,9 +206,9 @@ export declare const ArticlesResponseSchema: z.ZodObject<{
|
|
|
206
206
|
author: z.ZodOptional<z.ZodString>;
|
|
207
207
|
category: z.ZodEnum<["Case Studies", "Discovering God", "Disciple Making Secrets", "Product Updates", "Books", "Films"]>;
|
|
208
208
|
image: z.ZodOptional<z.ZodString>;
|
|
209
|
-
date: z.ZodUnion<[z.ZodString, z.ZodDate]
|
|
210
|
-
isDraft: z.ZodBoolean
|
|
211
|
-
seekerFriendly: z.ZodBoolean
|
|
209
|
+
date: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
|
|
210
|
+
isDraft: z.ZodOptional<z.ZodBoolean>;
|
|
211
|
+
seekerFriendly: z.ZodOptional<z.ZodBoolean>;
|
|
212
212
|
platform: z.ZodEnum<["Web Only", "App Only", "All"]>;
|
|
213
213
|
audio: z.ZodOptional<z.ZodObject<{
|
|
214
214
|
audioUrl: z.ZodString;
|
|
@@ -235,12 +235,10 @@ export declare const ArticlesResponseSchema: z.ZodObject<{
|
|
|
235
235
|
}>>;
|
|
236
236
|
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"]>>;
|
|
237
237
|
}, "strip", z.ZodTypeAny, {
|
|
238
|
-
date: string | Date;
|
|
239
238
|
title: string;
|
|
240
239
|
category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
|
|
241
240
|
platform: "Web Only" | "App Only" | "All";
|
|
242
|
-
|
|
243
|
-
seekerFriendly: boolean;
|
|
241
|
+
date?: string | Date | undefined;
|
|
244
242
|
audio?: {
|
|
245
243
|
audioUrl: string;
|
|
246
244
|
loop?: boolean | undefined;
|
|
@@ -252,14 +250,14 @@ export declare const ArticlesResponseSchema: z.ZodObject<{
|
|
|
252
250
|
} | undefined;
|
|
253
251
|
author?: string | undefined;
|
|
254
252
|
image?: string | undefined;
|
|
253
|
+
isDraft?: boolean | undefined;
|
|
254
|
+
seekerFriendly?: boolean | undefined;
|
|
255
255
|
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;
|
|
256
256
|
}, {
|
|
257
|
-
date: string | Date;
|
|
258
257
|
title: string;
|
|
259
258
|
category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
|
|
260
259
|
platform: "Web Only" | "App Only" | "All";
|
|
261
|
-
|
|
262
|
-
seekerFriendly: boolean;
|
|
260
|
+
date?: string | Date | undefined;
|
|
263
261
|
audio?: {
|
|
264
262
|
audioUrl: string;
|
|
265
263
|
loop?: boolean | undefined;
|
|
@@ -271,6 +269,8 @@ export declare const ArticlesResponseSchema: z.ZodObject<{
|
|
|
271
269
|
} | undefined;
|
|
272
270
|
author?: string | undefined;
|
|
273
271
|
image?: string | undefined;
|
|
272
|
+
isDraft?: boolean | undefined;
|
|
273
|
+
seekerFriendly?: boolean | undefined;
|
|
274
274
|
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;
|
|
275
275
|
}>;
|
|
276
276
|
body: z.ZodString;
|
|
@@ -279,12 +279,10 @@ export declare const ArticlesResponseSchema: z.ZodObject<{
|
|
|
279
279
|
id: string;
|
|
280
280
|
body: string;
|
|
281
281
|
data: {
|
|
282
|
-
date: string | Date;
|
|
283
282
|
title: string;
|
|
284
283
|
category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
|
|
285
284
|
platform: "Web Only" | "App Only" | "All";
|
|
286
|
-
|
|
287
|
-
seekerFriendly: boolean;
|
|
285
|
+
date?: string | Date | undefined;
|
|
288
286
|
audio?: {
|
|
289
287
|
audioUrl: string;
|
|
290
288
|
loop?: boolean | undefined;
|
|
@@ -296,6 +294,8 @@ export declare const ArticlesResponseSchema: z.ZodObject<{
|
|
|
296
294
|
} | undefined;
|
|
297
295
|
author?: string | undefined;
|
|
298
296
|
image?: string | undefined;
|
|
297
|
+
isDraft?: boolean | undefined;
|
|
298
|
+
seekerFriendly?: boolean | undefined;
|
|
299
299
|
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;
|
|
300
300
|
};
|
|
301
301
|
slug: string;
|
|
@@ -303,12 +303,10 @@ export declare const ArticlesResponseSchema: z.ZodObject<{
|
|
|
303
303
|
id: string;
|
|
304
304
|
body: string;
|
|
305
305
|
data: {
|
|
306
|
-
date: string | Date;
|
|
307
306
|
title: string;
|
|
308
307
|
category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
|
|
309
308
|
platform: "Web Only" | "App Only" | "All";
|
|
310
|
-
|
|
311
|
-
seekerFriendly: boolean;
|
|
309
|
+
date?: string | Date | undefined;
|
|
312
310
|
audio?: {
|
|
313
311
|
audioUrl: string;
|
|
314
312
|
loop?: boolean | undefined;
|
|
@@ -320,6 +318,8 @@ export declare const ArticlesResponseSchema: z.ZodObject<{
|
|
|
320
318
|
} | undefined;
|
|
321
319
|
author?: string | undefined;
|
|
322
320
|
image?: string | undefined;
|
|
321
|
+
isDraft?: boolean | undefined;
|
|
322
|
+
seekerFriendly?: boolean | undefined;
|
|
323
323
|
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;
|
|
324
324
|
};
|
|
325
325
|
slug: string;
|
|
@@ -329,12 +329,10 @@ export declare const ArticlesResponseSchema: z.ZodObject<{
|
|
|
329
329
|
id: string;
|
|
330
330
|
body: string;
|
|
331
331
|
data: {
|
|
332
|
-
date: string | Date;
|
|
333
332
|
title: string;
|
|
334
333
|
category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
|
|
335
334
|
platform: "Web Only" | "App Only" | "All";
|
|
336
|
-
|
|
337
|
-
seekerFriendly: boolean;
|
|
335
|
+
date?: string | Date | undefined;
|
|
338
336
|
audio?: {
|
|
339
337
|
audioUrl: string;
|
|
340
338
|
loop?: boolean | undefined;
|
|
@@ -346,6 +344,8 @@ export declare const ArticlesResponseSchema: z.ZodObject<{
|
|
|
346
344
|
} | undefined;
|
|
347
345
|
author?: string | undefined;
|
|
348
346
|
image?: string | undefined;
|
|
347
|
+
isDraft?: boolean | undefined;
|
|
348
|
+
seekerFriendly?: boolean | undefined;
|
|
349
349
|
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;
|
|
350
350
|
};
|
|
351
351
|
slug: string;
|
|
@@ -355,12 +355,10 @@ export declare const ArticlesResponseSchema: z.ZodObject<{
|
|
|
355
355
|
id: string;
|
|
356
356
|
body: string;
|
|
357
357
|
data: {
|
|
358
|
-
date: string | Date;
|
|
359
358
|
title: string;
|
|
360
359
|
category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
|
|
361
360
|
platform: "Web Only" | "App Only" | "All";
|
|
362
|
-
|
|
363
|
-
seekerFriendly: boolean;
|
|
361
|
+
date?: string | Date | undefined;
|
|
364
362
|
audio?: {
|
|
365
363
|
audioUrl: string;
|
|
366
364
|
loop?: boolean | undefined;
|
|
@@ -372,6 +370,8 @@ export declare const ArticlesResponseSchema: z.ZodObject<{
|
|
|
372
370
|
} | undefined;
|
|
373
371
|
author?: string | undefined;
|
|
374
372
|
image?: string | undefined;
|
|
373
|
+
isDraft?: boolean | undefined;
|
|
374
|
+
seekerFriendly?: boolean | undefined;
|
|
375
375
|
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;
|
|
376
376
|
};
|
|
377
377
|
slug: string;
|
|
@@ -2,9 +2,9 @@ import z from 'zod';
|
|
|
2
2
|
export declare const MicroLessonSchema: z.ZodObject<{
|
|
3
3
|
title: z.ZodString;
|
|
4
4
|
subtitle: z.ZodOptional<z.ZodString>;
|
|
5
|
-
date: z.ZodUnion<[z.ZodString, z.ZodDate]
|
|
6
|
-
isDraft: z.ZodBoolean
|
|
7
|
-
seekerFriendly: z.ZodBoolean
|
|
5
|
+
date: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
|
|
6
|
+
isDraft: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
+
seekerFriendly: z.ZodOptional<z.ZodBoolean>;
|
|
8
8
|
platform: z.ZodEnum<["Web Only", "App Only", "All"]>;
|
|
9
9
|
campaign: z.ZodOptional<z.ZodString>;
|
|
10
10
|
pages: z.ZodArray<z.ZodObject<{
|
|
@@ -134,11 +134,8 @@ export declare const MicroLessonSchema: z.ZodObject<{
|
|
|
134
134
|
}[] | undefined;
|
|
135
135
|
}>, "many">;
|
|
136
136
|
}, "strip", z.ZodTypeAny, {
|
|
137
|
-
date: string | Date;
|
|
138
137
|
title: string;
|
|
139
138
|
platform: "Web Only" | "App Only" | "All";
|
|
140
|
-
isDraft: boolean;
|
|
141
|
-
seekerFriendly: boolean;
|
|
142
139
|
pages: {
|
|
143
140
|
heading: string;
|
|
144
141
|
audio?: {
|
|
@@ -169,14 +166,14 @@ export declare const MicroLessonSchema: z.ZodObject<{
|
|
|
169
166
|
heading?: string | undefined;
|
|
170
167
|
}[] | undefined;
|
|
171
168
|
}[];
|
|
169
|
+
date?: string | Date | undefined;
|
|
170
|
+
isDraft?: boolean | undefined;
|
|
171
|
+
seekerFriendly?: boolean | undefined;
|
|
172
172
|
subtitle?: string | undefined;
|
|
173
173
|
campaign?: string | undefined;
|
|
174
174
|
}, {
|
|
175
|
-
date: string | Date;
|
|
176
175
|
title: string;
|
|
177
176
|
platform: "Web Only" | "App Only" | "All";
|
|
178
|
-
isDraft: boolean;
|
|
179
|
-
seekerFriendly: boolean;
|
|
180
177
|
pages: {
|
|
181
178
|
heading: string;
|
|
182
179
|
audio?: {
|
|
@@ -207,6 +204,9 @@ export declare const MicroLessonSchema: z.ZodObject<{
|
|
|
207
204
|
heading?: string | undefined;
|
|
208
205
|
}[] | undefined;
|
|
209
206
|
}[];
|
|
207
|
+
date?: string | Date | undefined;
|
|
208
|
+
isDraft?: boolean | undefined;
|
|
209
|
+
seekerFriendly?: boolean | undefined;
|
|
210
210
|
subtitle?: string | undefined;
|
|
211
211
|
campaign?: string | undefined;
|
|
212
212
|
}>;
|
|
@@ -216,9 +216,9 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
|
|
|
216
216
|
data: z.ZodObject<{
|
|
217
217
|
title: z.ZodString;
|
|
218
218
|
subtitle: z.ZodOptional<z.ZodString>;
|
|
219
|
-
date: z.ZodUnion<[z.ZodString, z.ZodDate]
|
|
220
|
-
isDraft: z.ZodBoolean
|
|
221
|
-
seekerFriendly: z.ZodBoolean
|
|
219
|
+
date: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
|
|
220
|
+
isDraft: z.ZodOptional<z.ZodBoolean>;
|
|
221
|
+
seekerFriendly: z.ZodOptional<z.ZodBoolean>;
|
|
222
222
|
platform: z.ZodEnum<["Web Only", "App Only", "All"]>;
|
|
223
223
|
campaign: z.ZodOptional<z.ZodString>;
|
|
224
224
|
pages: z.ZodArray<z.ZodObject<{
|
|
@@ -348,11 +348,8 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
|
|
|
348
348
|
}[] | undefined;
|
|
349
349
|
}>, "many">;
|
|
350
350
|
}, "strip", z.ZodTypeAny, {
|
|
351
|
-
date: string | Date;
|
|
352
351
|
title: string;
|
|
353
352
|
platform: "Web Only" | "App Only" | "All";
|
|
354
|
-
isDraft: boolean;
|
|
355
|
-
seekerFriendly: boolean;
|
|
356
353
|
pages: {
|
|
357
354
|
heading: string;
|
|
358
355
|
audio?: {
|
|
@@ -383,14 +380,14 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
|
|
|
383
380
|
heading?: string | undefined;
|
|
384
381
|
}[] | undefined;
|
|
385
382
|
}[];
|
|
383
|
+
date?: string | Date | undefined;
|
|
384
|
+
isDraft?: boolean | undefined;
|
|
385
|
+
seekerFriendly?: boolean | undefined;
|
|
386
386
|
subtitle?: string | undefined;
|
|
387
387
|
campaign?: string | undefined;
|
|
388
388
|
}, {
|
|
389
|
-
date: string | Date;
|
|
390
389
|
title: string;
|
|
391
390
|
platform: "Web Only" | "App Only" | "All";
|
|
392
|
-
isDraft: boolean;
|
|
393
|
-
seekerFriendly: boolean;
|
|
394
391
|
pages: {
|
|
395
392
|
heading: string;
|
|
396
393
|
audio?: {
|
|
@@ -421,17 +418,17 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
|
|
|
421
418
|
heading?: string | undefined;
|
|
422
419
|
}[] | undefined;
|
|
423
420
|
}[];
|
|
421
|
+
date?: string | Date | undefined;
|
|
422
|
+
isDraft?: boolean | undefined;
|
|
423
|
+
seekerFriendly?: boolean | undefined;
|
|
424
424
|
subtitle?: string | undefined;
|
|
425
425
|
campaign?: string | undefined;
|
|
426
426
|
}>;
|
|
427
427
|
}, "strip", z.ZodTypeAny, {
|
|
428
428
|
id: string;
|
|
429
429
|
data: {
|
|
430
|
-
date: string | Date;
|
|
431
430
|
title: string;
|
|
432
431
|
platform: "Web Only" | "App Only" | "All";
|
|
433
|
-
isDraft: boolean;
|
|
434
|
-
seekerFriendly: boolean;
|
|
435
432
|
pages: {
|
|
436
433
|
heading: string;
|
|
437
434
|
audio?: {
|
|
@@ -462,17 +459,17 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
|
|
|
462
459
|
heading?: string | undefined;
|
|
463
460
|
}[] | undefined;
|
|
464
461
|
}[];
|
|
462
|
+
date?: string | Date | undefined;
|
|
463
|
+
isDraft?: boolean | undefined;
|
|
464
|
+
seekerFriendly?: boolean | undefined;
|
|
465
465
|
subtitle?: string | undefined;
|
|
466
466
|
campaign?: string | undefined;
|
|
467
467
|
};
|
|
468
468
|
}, {
|
|
469
469
|
id: string;
|
|
470
470
|
data: {
|
|
471
|
-
date: string | Date;
|
|
472
471
|
title: string;
|
|
473
472
|
platform: "Web Only" | "App Only" | "All";
|
|
474
|
-
isDraft: boolean;
|
|
475
|
-
seekerFriendly: boolean;
|
|
476
473
|
pages: {
|
|
477
474
|
heading: string;
|
|
478
475
|
audio?: {
|
|
@@ -503,6 +500,9 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
|
|
|
503
500
|
heading?: string | undefined;
|
|
504
501
|
}[] | undefined;
|
|
505
502
|
}[];
|
|
503
|
+
date?: string | Date | undefined;
|
|
504
|
+
isDraft?: boolean | undefined;
|
|
505
|
+
seekerFriendly?: boolean | undefined;
|
|
506
506
|
subtitle?: string | undefined;
|
|
507
507
|
campaign?: string | undefined;
|
|
508
508
|
};
|
|
@@ -514,9 +514,9 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
514
514
|
data: z.ZodObject<{
|
|
515
515
|
title: z.ZodString;
|
|
516
516
|
subtitle: z.ZodOptional<z.ZodString>;
|
|
517
|
-
date: z.ZodUnion<[z.ZodString, z.ZodDate]
|
|
518
|
-
isDraft: z.ZodBoolean
|
|
519
|
-
seekerFriendly: z.ZodBoolean
|
|
517
|
+
date: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
|
|
518
|
+
isDraft: z.ZodOptional<z.ZodBoolean>;
|
|
519
|
+
seekerFriendly: z.ZodOptional<z.ZodBoolean>;
|
|
520
520
|
platform: z.ZodEnum<["Web Only", "App Only", "All"]>;
|
|
521
521
|
campaign: z.ZodOptional<z.ZodString>;
|
|
522
522
|
pages: z.ZodArray<z.ZodObject<{
|
|
@@ -646,11 +646,8 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
646
646
|
}[] | undefined;
|
|
647
647
|
}>, "many">;
|
|
648
648
|
}, "strip", z.ZodTypeAny, {
|
|
649
|
-
date: string | Date;
|
|
650
649
|
title: string;
|
|
651
650
|
platform: "Web Only" | "App Only" | "All";
|
|
652
|
-
isDraft: boolean;
|
|
653
|
-
seekerFriendly: boolean;
|
|
654
651
|
pages: {
|
|
655
652
|
heading: string;
|
|
656
653
|
audio?: {
|
|
@@ -681,14 +678,14 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
681
678
|
heading?: string | undefined;
|
|
682
679
|
}[] | undefined;
|
|
683
680
|
}[];
|
|
681
|
+
date?: string | Date | undefined;
|
|
682
|
+
isDraft?: boolean | undefined;
|
|
683
|
+
seekerFriendly?: boolean | undefined;
|
|
684
684
|
subtitle?: string | undefined;
|
|
685
685
|
campaign?: string | undefined;
|
|
686
686
|
}, {
|
|
687
|
-
date: string | Date;
|
|
688
687
|
title: string;
|
|
689
688
|
platform: "Web Only" | "App Only" | "All";
|
|
690
|
-
isDraft: boolean;
|
|
691
|
-
seekerFriendly: boolean;
|
|
692
689
|
pages: {
|
|
693
690
|
heading: string;
|
|
694
691
|
audio?: {
|
|
@@ -719,17 +716,17 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
719
716
|
heading?: string | undefined;
|
|
720
717
|
}[] | undefined;
|
|
721
718
|
}[];
|
|
719
|
+
date?: string | Date | undefined;
|
|
720
|
+
isDraft?: boolean | undefined;
|
|
721
|
+
seekerFriendly?: boolean | undefined;
|
|
722
722
|
subtitle?: string | undefined;
|
|
723
723
|
campaign?: string | undefined;
|
|
724
724
|
}>;
|
|
725
725
|
}, "strip", z.ZodTypeAny, {
|
|
726
726
|
id: string;
|
|
727
727
|
data: {
|
|
728
|
-
date: string | Date;
|
|
729
728
|
title: string;
|
|
730
729
|
platform: "Web Only" | "App Only" | "All";
|
|
731
|
-
isDraft: boolean;
|
|
732
|
-
seekerFriendly: boolean;
|
|
733
730
|
pages: {
|
|
734
731
|
heading: string;
|
|
735
732
|
audio?: {
|
|
@@ -760,17 +757,17 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
760
757
|
heading?: string | undefined;
|
|
761
758
|
}[] | undefined;
|
|
762
759
|
}[];
|
|
760
|
+
date?: string | Date | undefined;
|
|
761
|
+
isDraft?: boolean | undefined;
|
|
762
|
+
seekerFriendly?: boolean | undefined;
|
|
763
763
|
subtitle?: string | undefined;
|
|
764
764
|
campaign?: string | undefined;
|
|
765
765
|
};
|
|
766
766
|
}, {
|
|
767
767
|
id: string;
|
|
768
768
|
data: {
|
|
769
|
-
date: string | Date;
|
|
770
769
|
title: string;
|
|
771
770
|
platform: "Web Only" | "App Only" | "All";
|
|
772
|
-
isDraft: boolean;
|
|
773
|
-
seekerFriendly: boolean;
|
|
774
771
|
pages: {
|
|
775
772
|
heading: string;
|
|
776
773
|
audio?: {
|
|
@@ -801,6 +798,9 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
801
798
|
heading?: string | undefined;
|
|
802
799
|
}[] | undefined;
|
|
803
800
|
}[];
|
|
801
|
+
date?: string | Date | undefined;
|
|
802
|
+
isDraft?: boolean | undefined;
|
|
803
|
+
seekerFriendly?: boolean | undefined;
|
|
804
804
|
subtitle?: string | undefined;
|
|
805
805
|
campaign?: string | undefined;
|
|
806
806
|
};
|
|
@@ -809,11 +809,8 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
809
809
|
data: {
|
|
810
810
|
id: string;
|
|
811
811
|
data: {
|
|
812
|
-
date: string | Date;
|
|
813
812
|
title: string;
|
|
814
813
|
platform: "Web Only" | "App Only" | "All";
|
|
815
|
-
isDraft: boolean;
|
|
816
|
-
seekerFriendly: boolean;
|
|
817
814
|
pages: {
|
|
818
815
|
heading: string;
|
|
819
816
|
audio?: {
|
|
@@ -844,6 +841,9 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
844
841
|
heading?: string | undefined;
|
|
845
842
|
}[] | undefined;
|
|
846
843
|
}[];
|
|
844
|
+
date?: string | Date | undefined;
|
|
845
|
+
isDraft?: boolean | undefined;
|
|
846
|
+
seekerFriendly?: boolean | undefined;
|
|
847
847
|
subtitle?: string | undefined;
|
|
848
848
|
campaign?: string | undefined;
|
|
849
849
|
};
|
|
@@ -852,11 +852,8 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
852
852
|
data: {
|
|
853
853
|
id: string;
|
|
854
854
|
data: {
|
|
855
|
-
date: string | Date;
|
|
856
855
|
title: string;
|
|
857
856
|
platform: "Web Only" | "App Only" | "All";
|
|
858
|
-
isDraft: boolean;
|
|
859
|
-
seekerFriendly: boolean;
|
|
860
857
|
pages: {
|
|
861
858
|
heading: string;
|
|
862
859
|
audio?: {
|
|
@@ -887,6 +884,9 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
887
884
|
heading?: string | undefined;
|
|
888
885
|
}[] | undefined;
|
|
889
886
|
}[];
|
|
887
|
+
date?: string | Date | undefined;
|
|
888
|
+
isDraft?: boolean | undefined;
|
|
889
|
+
seekerFriendly?: boolean | undefined;
|
|
890
890
|
subtitle?: string | undefined;
|
|
891
891
|
campaign?: string | undefined;
|
|
892
892
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
|
-
export declare const DateSchema: z.ZodUnion<[z.ZodString, z.ZodDate]
|
|
3
|
-
export declare const IsDraftSchema: z.ZodBoolean
|
|
4
|
-
export declare const SeekerFriendlySchema: z.ZodBoolean
|
|
2
|
+
export declare const DateSchema: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
|
|
3
|
+
export declare const IsDraftSchema: z.ZodOptional<z.ZodBoolean>;
|
|
4
|
+
export declare const SeekerFriendlySchema: z.ZodOptional<z.ZodBoolean>;
|
|
5
5
|
export declare const PlatformSchema: z.ZodEnum<["Web Only", "App Only", "All"]>;
|
|
6
6
|
export declare const AudioSchema: z.ZodOptional<z.ZodObject<{
|
|
7
7
|
audioUrl: z.ZodString;
|
package/dist/types/webContent.js
CHANGED
|
@@ -7,13 +7,16 @@ exports.VideoSchema = exports.AudioSchema = exports.PlatformSchema = exports.See
|
|
|
7
7
|
const zod_1 = __importDefault(require("zod"));
|
|
8
8
|
exports.DateSchema = zod_1.default
|
|
9
9
|
.union([zod_1.default.string().datetime(), zod_1.default.date()])
|
|
10
|
-
.describe('The date to publish the content. Can be in the future.')
|
|
10
|
+
.describe('The date to publish the content. Can be in the future.')
|
|
11
|
+
.optional();
|
|
11
12
|
exports.IsDraftSchema = zod_1.default
|
|
12
13
|
.boolean()
|
|
13
|
-
.describe('If this is checked the content will be marked as a draft and only available on the test website.')
|
|
14
|
+
.describe('If this is checked the content will be marked as a draft and only available on the test website.')
|
|
15
|
+
.optional();
|
|
14
16
|
exports.SeekerFriendlySchema = zod_1.default
|
|
15
17
|
.boolean()
|
|
16
|
-
.describe('If this is checked the micro lesson will be marked as seeker friendly. Seeker friendly micro lessons will not link back to the website.')
|
|
18
|
+
.describe('If this is checked the micro lesson will be marked as seeker friendly. Seeker friendly micro lessons will not link back to the website.')
|
|
19
|
+
.optional();
|
|
17
20
|
exports.PlatformSchema = zod_1.default
|
|
18
21
|
.enum(['Web Only', 'App Only', 'All'])
|
|
19
22
|
.describe('Set to determine which platform the content is available on.');
|