waha-shared 1.0.201 → 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 +222 -75
- package/dist/types/articles.js +2 -2
- package/dist/types/microLessons.d.ts +45 -45
- package/dist/types/microLessons.js +2 -13
- package/dist/types/webContent.d.ts +26 -3
- package/dist/types/webContent.js +20 -4
- package/package.json +1 -1
package/dist/types/articles.d.ts
CHANGED
|
@@ -4,36 +4,71 @@ 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
|
-
audio: z.ZodOptional<z.
|
|
12
|
-
|
|
11
|
+
audio: z.ZodOptional<z.ZodObject<{
|
|
12
|
+
audioUrl: z.ZodString;
|
|
13
|
+
loop: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
audioUrl: string;
|
|
16
|
+
loop?: boolean | undefined;
|
|
17
|
+
}, {
|
|
18
|
+
audioUrl: string;
|
|
19
|
+
loop?: boolean | undefined;
|
|
20
|
+
}>>;
|
|
21
|
+
video: z.ZodOptional<z.ZodObject<{
|
|
22
|
+
videoUrl: z.ZodString;
|
|
23
|
+
autoplay: z.ZodOptional<z.ZodBoolean>;
|
|
24
|
+
loop: z.ZodOptional<z.ZodBoolean>;
|
|
25
|
+
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
videoUrl: string;
|
|
27
|
+
loop?: boolean | undefined;
|
|
28
|
+
autoplay?: boolean | undefined;
|
|
29
|
+
}, {
|
|
30
|
+
videoUrl: string;
|
|
31
|
+
loop?: boolean | undefined;
|
|
32
|
+
autoplay?: boolean | undefined;
|
|
33
|
+
}>>;
|
|
13
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"]>>;
|
|
14
35
|
}, "strip", z.ZodTypeAny, {
|
|
15
|
-
date: string | Date;
|
|
16
36
|
title: string;
|
|
17
37
|
category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
|
|
18
38
|
platform: "Web Only" | "App Only" | "All";
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
39
|
+
date?: string | Date | undefined;
|
|
40
|
+
audio?: {
|
|
41
|
+
audioUrl: string;
|
|
42
|
+
loop?: boolean | undefined;
|
|
43
|
+
} | undefined;
|
|
44
|
+
video?: {
|
|
45
|
+
videoUrl: string;
|
|
46
|
+
loop?: boolean | undefined;
|
|
47
|
+
autoplay?: boolean | undefined;
|
|
48
|
+
} | undefined;
|
|
23
49
|
author?: string | undefined;
|
|
24
50
|
image?: string | undefined;
|
|
51
|
+
isDraft?: boolean | undefined;
|
|
52
|
+
seekerFriendly?: boolean | undefined;
|
|
25
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;
|
|
26
54
|
}, {
|
|
27
|
-
date: string | Date;
|
|
28
55
|
title: string;
|
|
29
56
|
category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
|
|
30
57
|
platform: "Web Only" | "App Only" | "All";
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
58
|
+
date?: string | Date | undefined;
|
|
59
|
+
audio?: {
|
|
60
|
+
audioUrl: string;
|
|
61
|
+
loop?: boolean | undefined;
|
|
62
|
+
} | undefined;
|
|
63
|
+
video?: {
|
|
64
|
+
videoUrl: string;
|
|
65
|
+
loop?: boolean | undefined;
|
|
66
|
+
autoplay?: boolean | undefined;
|
|
67
|
+
} | undefined;
|
|
35
68
|
author?: string | undefined;
|
|
36
69
|
image?: string | undefined;
|
|
70
|
+
isDraft?: boolean | undefined;
|
|
71
|
+
seekerFriendly?: boolean | undefined;
|
|
37
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;
|
|
38
73
|
}>;
|
|
39
74
|
export type Article = z.infer<typeof ArticleSchema>;
|
|
@@ -44,36 +79,71 @@ export declare const ResponseArticleSchema: z.ZodObject<{
|
|
|
44
79
|
author: z.ZodOptional<z.ZodString>;
|
|
45
80
|
category: z.ZodEnum<["Case Studies", "Discovering God", "Disciple Making Secrets", "Product Updates", "Books", "Films"]>;
|
|
46
81
|
image: z.ZodOptional<z.ZodString>;
|
|
47
|
-
date: z.ZodUnion<[z.ZodString, z.ZodDate]
|
|
48
|
-
isDraft: z.ZodBoolean
|
|
49
|
-
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>;
|
|
50
85
|
platform: z.ZodEnum<["Web Only", "App Only", "All"]>;
|
|
51
|
-
audio: z.ZodOptional<z.
|
|
52
|
-
|
|
86
|
+
audio: z.ZodOptional<z.ZodObject<{
|
|
87
|
+
audioUrl: z.ZodString;
|
|
88
|
+
loop: z.ZodOptional<z.ZodBoolean>;
|
|
89
|
+
}, "strip", z.ZodTypeAny, {
|
|
90
|
+
audioUrl: string;
|
|
91
|
+
loop?: boolean | undefined;
|
|
92
|
+
}, {
|
|
93
|
+
audioUrl: string;
|
|
94
|
+
loop?: boolean | undefined;
|
|
95
|
+
}>>;
|
|
96
|
+
video: z.ZodOptional<z.ZodObject<{
|
|
97
|
+
videoUrl: z.ZodString;
|
|
98
|
+
autoplay: z.ZodOptional<z.ZodBoolean>;
|
|
99
|
+
loop: z.ZodOptional<z.ZodBoolean>;
|
|
100
|
+
}, "strip", z.ZodTypeAny, {
|
|
101
|
+
videoUrl: string;
|
|
102
|
+
loop?: boolean | undefined;
|
|
103
|
+
autoplay?: boolean | undefined;
|
|
104
|
+
}, {
|
|
105
|
+
videoUrl: string;
|
|
106
|
+
loop?: boolean | undefined;
|
|
107
|
+
autoplay?: boolean | undefined;
|
|
108
|
+
}>>;
|
|
53
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"]>>;
|
|
54
110
|
}, "strip", z.ZodTypeAny, {
|
|
55
|
-
date: string | Date;
|
|
56
111
|
title: string;
|
|
57
112
|
category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
|
|
58
113
|
platform: "Web Only" | "App Only" | "All";
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
114
|
+
date?: string | Date | undefined;
|
|
115
|
+
audio?: {
|
|
116
|
+
audioUrl: string;
|
|
117
|
+
loop?: boolean | undefined;
|
|
118
|
+
} | undefined;
|
|
119
|
+
video?: {
|
|
120
|
+
videoUrl: string;
|
|
121
|
+
loop?: boolean | undefined;
|
|
122
|
+
autoplay?: boolean | undefined;
|
|
123
|
+
} | undefined;
|
|
63
124
|
author?: string | undefined;
|
|
64
125
|
image?: string | undefined;
|
|
126
|
+
isDraft?: boolean | undefined;
|
|
127
|
+
seekerFriendly?: boolean | undefined;
|
|
65
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;
|
|
66
129
|
}, {
|
|
67
|
-
date: string | Date;
|
|
68
130
|
title: string;
|
|
69
131
|
category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
|
|
70
132
|
platform: "Web Only" | "App Only" | "All";
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
133
|
+
date?: string | Date | undefined;
|
|
134
|
+
audio?: {
|
|
135
|
+
audioUrl: string;
|
|
136
|
+
loop?: boolean | undefined;
|
|
137
|
+
} | undefined;
|
|
138
|
+
video?: {
|
|
139
|
+
videoUrl: string;
|
|
140
|
+
loop?: boolean | undefined;
|
|
141
|
+
autoplay?: boolean | undefined;
|
|
142
|
+
} | undefined;
|
|
75
143
|
author?: string | undefined;
|
|
76
144
|
image?: string | undefined;
|
|
145
|
+
isDraft?: boolean | undefined;
|
|
146
|
+
seekerFriendly?: boolean | undefined;
|
|
77
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;
|
|
78
148
|
}>;
|
|
79
149
|
body: z.ZodString;
|
|
@@ -82,16 +152,23 @@ export declare const ResponseArticleSchema: z.ZodObject<{
|
|
|
82
152
|
id: string;
|
|
83
153
|
body: string;
|
|
84
154
|
data: {
|
|
85
|
-
date: string | Date;
|
|
86
155
|
title: string;
|
|
87
156
|
category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
|
|
88
157
|
platform: "Web Only" | "App Only" | "All";
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
158
|
+
date?: string | Date | undefined;
|
|
159
|
+
audio?: {
|
|
160
|
+
audioUrl: string;
|
|
161
|
+
loop?: boolean | undefined;
|
|
162
|
+
} | undefined;
|
|
163
|
+
video?: {
|
|
164
|
+
videoUrl: string;
|
|
165
|
+
loop?: boolean | undefined;
|
|
166
|
+
autoplay?: boolean | undefined;
|
|
167
|
+
} | undefined;
|
|
93
168
|
author?: string | undefined;
|
|
94
169
|
image?: string | undefined;
|
|
170
|
+
isDraft?: boolean | undefined;
|
|
171
|
+
seekerFriendly?: boolean | undefined;
|
|
95
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;
|
|
96
173
|
};
|
|
97
174
|
slug: string;
|
|
@@ -99,16 +176,23 @@ export declare const ResponseArticleSchema: z.ZodObject<{
|
|
|
99
176
|
id: string;
|
|
100
177
|
body: string;
|
|
101
178
|
data: {
|
|
102
|
-
date: string | Date;
|
|
103
179
|
title: string;
|
|
104
180
|
category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
|
|
105
181
|
platform: "Web Only" | "App Only" | "All";
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
182
|
+
date?: string | Date | undefined;
|
|
183
|
+
audio?: {
|
|
184
|
+
audioUrl: string;
|
|
185
|
+
loop?: boolean | undefined;
|
|
186
|
+
} | undefined;
|
|
187
|
+
video?: {
|
|
188
|
+
videoUrl: string;
|
|
189
|
+
loop?: boolean | undefined;
|
|
190
|
+
autoplay?: boolean | undefined;
|
|
191
|
+
} | undefined;
|
|
110
192
|
author?: string | undefined;
|
|
111
193
|
image?: string | undefined;
|
|
194
|
+
isDraft?: boolean | undefined;
|
|
195
|
+
seekerFriendly?: boolean | undefined;
|
|
112
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;
|
|
113
197
|
};
|
|
114
198
|
slug: string;
|
|
@@ -122,36 +206,71 @@ export declare const ArticlesResponseSchema: z.ZodObject<{
|
|
|
122
206
|
author: z.ZodOptional<z.ZodString>;
|
|
123
207
|
category: z.ZodEnum<["Case Studies", "Discovering God", "Disciple Making Secrets", "Product Updates", "Books", "Films"]>;
|
|
124
208
|
image: z.ZodOptional<z.ZodString>;
|
|
125
|
-
date: z.ZodUnion<[z.ZodString, z.ZodDate]
|
|
126
|
-
isDraft: z.ZodBoolean
|
|
127
|
-
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>;
|
|
128
212
|
platform: z.ZodEnum<["Web Only", "App Only", "All"]>;
|
|
129
|
-
audio: z.ZodOptional<z.
|
|
130
|
-
|
|
213
|
+
audio: z.ZodOptional<z.ZodObject<{
|
|
214
|
+
audioUrl: z.ZodString;
|
|
215
|
+
loop: z.ZodOptional<z.ZodBoolean>;
|
|
216
|
+
}, "strip", z.ZodTypeAny, {
|
|
217
|
+
audioUrl: string;
|
|
218
|
+
loop?: boolean | undefined;
|
|
219
|
+
}, {
|
|
220
|
+
audioUrl: string;
|
|
221
|
+
loop?: boolean | undefined;
|
|
222
|
+
}>>;
|
|
223
|
+
video: z.ZodOptional<z.ZodObject<{
|
|
224
|
+
videoUrl: z.ZodString;
|
|
225
|
+
autoplay: z.ZodOptional<z.ZodBoolean>;
|
|
226
|
+
loop: z.ZodOptional<z.ZodBoolean>;
|
|
227
|
+
}, "strip", z.ZodTypeAny, {
|
|
228
|
+
videoUrl: string;
|
|
229
|
+
loop?: boolean | undefined;
|
|
230
|
+
autoplay?: boolean | undefined;
|
|
231
|
+
}, {
|
|
232
|
+
videoUrl: string;
|
|
233
|
+
loop?: boolean | undefined;
|
|
234
|
+
autoplay?: boolean | undefined;
|
|
235
|
+
}>>;
|
|
131
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"]>>;
|
|
132
237
|
}, "strip", z.ZodTypeAny, {
|
|
133
|
-
date: string | Date;
|
|
134
238
|
title: string;
|
|
135
239
|
category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
|
|
136
240
|
platform: "Web Only" | "App Only" | "All";
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
241
|
+
date?: string | Date | undefined;
|
|
242
|
+
audio?: {
|
|
243
|
+
audioUrl: string;
|
|
244
|
+
loop?: boolean | undefined;
|
|
245
|
+
} | undefined;
|
|
246
|
+
video?: {
|
|
247
|
+
videoUrl: string;
|
|
248
|
+
loop?: boolean | undefined;
|
|
249
|
+
autoplay?: boolean | undefined;
|
|
250
|
+
} | undefined;
|
|
141
251
|
author?: string | undefined;
|
|
142
252
|
image?: string | undefined;
|
|
253
|
+
isDraft?: boolean | undefined;
|
|
254
|
+
seekerFriendly?: boolean | undefined;
|
|
143
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;
|
|
144
256
|
}, {
|
|
145
|
-
date: string | Date;
|
|
146
257
|
title: string;
|
|
147
258
|
category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
|
|
148
259
|
platform: "Web Only" | "App Only" | "All";
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
260
|
+
date?: string | Date | undefined;
|
|
261
|
+
audio?: {
|
|
262
|
+
audioUrl: string;
|
|
263
|
+
loop?: boolean | undefined;
|
|
264
|
+
} | undefined;
|
|
265
|
+
video?: {
|
|
266
|
+
videoUrl: string;
|
|
267
|
+
loop?: boolean | undefined;
|
|
268
|
+
autoplay?: boolean | undefined;
|
|
269
|
+
} | undefined;
|
|
153
270
|
author?: string | undefined;
|
|
154
271
|
image?: string | undefined;
|
|
272
|
+
isDraft?: boolean | undefined;
|
|
273
|
+
seekerFriendly?: boolean | undefined;
|
|
155
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;
|
|
156
275
|
}>;
|
|
157
276
|
body: z.ZodString;
|
|
@@ -160,16 +279,23 @@ export declare const ArticlesResponseSchema: z.ZodObject<{
|
|
|
160
279
|
id: string;
|
|
161
280
|
body: string;
|
|
162
281
|
data: {
|
|
163
|
-
date: string | Date;
|
|
164
282
|
title: string;
|
|
165
283
|
category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
|
|
166
284
|
platform: "Web Only" | "App Only" | "All";
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
285
|
+
date?: string | Date | undefined;
|
|
286
|
+
audio?: {
|
|
287
|
+
audioUrl: string;
|
|
288
|
+
loop?: boolean | undefined;
|
|
289
|
+
} | undefined;
|
|
290
|
+
video?: {
|
|
291
|
+
videoUrl: string;
|
|
292
|
+
loop?: boolean | undefined;
|
|
293
|
+
autoplay?: boolean | undefined;
|
|
294
|
+
} | undefined;
|
|
171
295
|
author?: string | undefined;
|
|
172
296
|
image?: string | undefined;
|
|
297
|
+
isDraft?: boolean | undefined;
|
|
298
|
+
seekerFriendly?: boolean | undefined;
|
|
173
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;
|
|
174
300
|
};
|
|
175
301
|
slug: string;
|
|
@@ -177,16 +303,23 @@ export declare const ArticlesResponseSchema: z.ZodObject<{
|
|
|
177
303
|
id: string;
|
|
178
304
|
body: string;
|
|
179
305
|
data: {
|
|
180
|
-
date: string | Date;
|
|
181
306
|
title: string;
|
|
182
307
|
category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
|
|
183
308
|
platform: "Web Only" | "App Only" | "All";
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
309
|
+
date?: string | Date | undefined;
|
|
310
|
+
audio?: {
|
|
311
|
+
audioUrl: string;
|
|
312
|
+
loop?: boolean | undefined;
|
|
313
|
+
} | undefined;
|
|
314
|
+
video?: {
|
|
315
|
+
videoUrl: string;
|
|
316
|
+
loop?: boolean | undefined;
|
|
317
|
+
autoplay?: boolean | undefined;
|
|
318
|
+
} | undefined;
|
|
188
319
|
author?: string | undefined;
|
|
189
320
|
image?: string | undefined;
|
|
321
|
+
isDraft?: boolean | undefined;
|
|
322
|
+
seekerFriendly?: boolean | undefined;
|
|
190
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;
|
|
191
324
|
};
|
|
192
325
|
slug: string;
|
|
@@ -196,16 +329,23 @@ export declare const ArticlesResponseSchema: z.ZodObject<{
|
|
|
196
329
|
id: string;
|
|
197
330
|
body: string;
|
|
198
331
|
data: {
|
|
199
|
-
date: string | Date;
|
|
200
332
|
title: string;
|
|
201
333
|
category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
|
|
202
334
|
platform: "Web Only" | "App Only" | "All";
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
335
|
+
date?: string | Date | undefined;
|
|
336
|
+
audio?: {
|
|
337
|
+
audioUrl: string;
|
|
338
|
+
loop?: boolean | undefined;
|
|
339
|
+
} | undefined;
|
|
340
|
+
video?: {
|
|
341
|
+
videoUrl: string;
|
|
342
|
+
loop?: boolean | undefined;
|
|
343
|
+
autoplay?: boolean | undefined;
|
|
344
|
+
} | undefined;
|
|
207
345
|
author?: string | undefined;
|
|
208
346
|
image?: string | undefined;
|
|
347
|
+
isDraft?: boolean | undefined;
|
|
348
|
+
seekerFriendly?: boolean | undefined;
|
|
209
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;
|
|
210
350
|
};
|
|
211
351
|
slug: string;
|
|
@@ -215,16 +355,23 @@ export declare const ArticlesResponseSchema: z.ZodObject<{
|
|
|
215
355
|
id: string;
|
|
216
356
|
body: string;
|
|
217
357
|
data: {
|
|
218
|
-
date: string | Date;
|
|
219
358
|
title: string;
|
|
220
359
|
category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
|
|
221
360
|
platform: "Web Only" | "App Only" | "All";
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
361
|
+
date?: string | Date | undefined;
|
|
362
|
+
audio?: {
|
|
363
|
+
audioUrl: string;
|
|
364
|
+
loop?: boolean | undefined;
|
|
365
|
+
} | undefined;
|
|
366
|
+
video?: {
|
|
367
|
+
videoUrl: string;
|
|
368
|
+
loop?: boolean | undefined;
|
|
369
|
+
autoplay?: boolean | undefined;
|
|
370
|
+
} | undefined;
|
|
226
371
|
author?: string | undefined;
|
|
227
372
|
image?: string | undefined;
|
|
373
|
+
isDraft?: boolean | undefined;
|
|
374
|
+
seekerFriendly?: boolean | undefined;
|
|
228
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;
|
|
229
376
|
};
|
|
230
377
|
slug: string;
|
package/dist/types/articles.js
CHANGED
|
@@ -22,8 +22,8 @@ exports.ArticleSchema = zod_1.default.object({
|
|
|
22
22
|
isDraft: webContent_1.IsDraftSchema,
|
|
23
23
|
seekerFriendly: webContent_1.SeekerFriendlySchema,
|
|
24
24
|
platform: webContent_1.PlatformSchema,
|
|
25
|
-
audio:
|
|
26
|
-
video:
|
|
25
|
+
audio: webContent_1.AudioSchema,
|
|
26
|
+
video: webContent_1.VideoSchema,
|
|
27
27
|
impactStoryRegion: zod_1.default
|
|
28
28
|
.enum([
|
|
29
29
|
'North America',
|
|
@@ -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
|
};
|
|
@@ -21,19 +21,8 @@ exports.MicroLessonSchema = zod_1.default.object({
|
|
|
21
21
|
heading: zod_1.default.string().describe('The heading of the page'),
|
|
22
22
|
body: zod_1.default.string().optional(),
|
|
23
23
|
image: zod_1.default.string().optional(),
|
|
24
|
-
audio:
|
|
25
|
-
|
|
26
|
-
audioUrl: zod_1.default.string(),
|
|
27
|
-
loop: zod_1.default.boolean().optional(),
|
|
28
|
-
})
|
|
29
|
-
.optional(),
|
|
30
|
-
video: zod_1.default
|
|
31
|
-
.object({
|
|
32
|
-
videoUrl: zod_1.default.string(),
|
|
33
|
-
autoplay: zod_1.default.boolean().optional(),
|
|
34
|
-
loop: zod_1.default.boolean().optional(),
|
|
35
|
-
})
|
|
36
|
-
.optional(),
|
|
24
|
+
audio: webContent_1.AudioSchema,
|
|
25
|
+
video: webContent_1.VideoSchema,
|
|
37
26
|
textInput: zod_1.default
|
|
38
27
|
.object({
|
|
39
28
|
show: zod_1.default.boolean(),
|
|
@@ -1,5 +1,28 @@
|
|
|
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
|
+
export declare const AudioSchema: z.ZodOptional<z.ZodObject<{
|
|
7
|
+
audioUrl: z.ZodString;
|
|
8
|
+
loop: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
audioUrl: string;
|
|
11
|
+
loop?: boolean | undefined;
|
|
12
|
+
}, {
|
|
13
|
+
audioUrl: string;
|
|
14
|
+
loop?: boolean | undefined;
|
|
15
|
+
}>>;
|
|
16
|
+
export declare const VideoSchema: z.ZodOptional<z.ZodObject<{
|
|
17
|
+
videoUrl: z.ZodString;
|
|
18
|
+
autoplay: z.ZodOptional<z.ZodBoolean>;
|
|
19
|
+
loop: z.ZodOptional<z.ZodBoolean>;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
videoUrl: string;
|
|
22
|
+
loop?: boolean | undefined;
|
|
23
|
+
autoplay?: boolean | undefined;
|
|
24
|
+
}, {
|
|
25
|
+
videoUrl: string;
|
|
26
|
+
loop?: boolean | undefined;
|
|
27
|
+
autoplay?: boolean | undefined;
|
|
28
|
+
}>>;
|
package/dist/types/webContent.js
CHANGED
|
@@ -3,17 +3,33 @@ 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.PlatformSchema = exports.SeekerFriendlySchema = exports.IsDraftSchema = exports.DateSchema = void 0;
|
|
6
|
+
exports.VideoSchema = exports.AudioSchema = exports.PlatformSchema = exports.SeekerFriendlySchema = exports.IsDraftSchema = exports.DateSchema = void 0;
|
|
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.');
|
|
23
|
+
exports.AudioSchema = zod_1.default
|
|
24
|
+
.object({
|
|
25
|
+
audioUrl: zod_1.default.string(),
|
|
26
|
+
loop: zod_1.default.boolean().optional(),
|
|
27
|
+
})
|
|
28
|
+
.optional();
|
|
29
|
+
exports.VideoSchema = zod_1.default
|
|
30
|
+
.object({
|
|
31
|
+
videoUrl: zod_1.default.string(),
|
|
32
|
+
autoplay: zod_1.default.boolean().optional(),
|
|
33
|
+
loop: zod_1.default.boolean().optional(),
|
|
34
|
+
})
|
|
35
|
+
.optional();
|