waha-shared 1.0.201 → 1.0.202
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 +177 -30
- package/dist/types/articles.js +2 -2
- package/dist/types/microLessons.js +2 -13
- package/dist/types/webContent.d.ts +23 -0
- package/dist/types/webContent.js +14 -1
- package/package.json +1 -1
package/dist/types/articles.d.ts
CHANGED
|
@@ -8,8 +8,29 @@ export declare const ArticleSchema: z.ZodObject<{
|
|
|
8
8
|
isDraft: z.ZodBoolean;
|
|
9
9
|
seekerFriendly: 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
36
|
date: string | Date;
|
|
@@ -18,8 +39,15 @@ export declare const ArticleSchema: z.ZodObject<{
|
|
|
18
39
|
platform: "Web Only" | "App Only" | "All";
|
|
19
40
|
isDraft: boolean;
|
|
20
41
|
seekerFriendly: boolean;
|
|
21
|
-
audio?:
|
|
22
|
-
|
|
42
|
+
audio?: {
|
|
43
|
+
audioUrl: string;
|
|
44
|
+
loop?: boolean | undefined;
|
|
45
|
+
} | undefined;
|
|
46
|
+
video?: {
|
|
47
|
+
videoUrl: string;
|
|
48
|
+
loop?: boolean | undefined;
|
|
49
|
+
autoplay?: boolean | undefined;
|
|
50
|
+
} | undefined;
|
|
23
51
|
author?: string | undefined;
|
|
24
52
|
image?: string | 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;
|
|
@@ -30,8 +58,15 @@ export declare const ArticleSchema: z.ZodObject<{
|
|
|
30
58
|
platform: "Web Only" | "App Only" | "All";
|
|
31
59
|
isDraft: boolean;
|
|
32
60
|
seekerFriendly: boolean;
|
|
33
|
-
audio?:
|
|
34
|
-
|
|
61
|
+
audio?: {
|
|
62
|
+
audioUrl: string;
|
|
63
|
+
loop?: boolean | undefined;
|
|
64
|
+
} | undefined;
|
|
65
|
+
video?: {
|
|
66
|
+
videoUrl: string;
|
|
67
|
+
loop?: boolean | undefined;
|
|
68
|
+
autoplay?: boolean | undefined;
|
|
69
|
+
} | undefined;
|
|
35
70
|
author?: string | undefined;
|
|
36
71
|
image?: string | 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;
|
|
@@ -48,8 +83,29 @@ export declare const ResponseArticleSchema: z.ZodObject<{
|
|
|
48
83
|
isDraft: z.ZodBoolean;
|
|
49
84
|
seekerFriendly: 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
111
|
date: string | Date;
|
|
@@ -58,8 +114,15 @@ export declare const ResponseArticleSchema: z.ZodObject<{
|
|
|
58
114
|
platform: "Web Only" | "App Only" | "All";
|
|
59
115
|
isDraft: boolean;
|
|
60
116
|
seekerFriendly: boolean;
|
|
61
|
-
audio?:
|
|
62
|
-
|
|
117
|
+
audio?: {
|
|
118
|
+
audioUrl: string;
|
|
119
|
+
loop?: boolean | undefined;
|
|
120
|
+
} | undefined;
|
|
121
|
+
video?: {
|
|
122
|
+
videoUrl: string;
|
|
123
|
+
loop?: boolean | undefined;
|
|
124
|
+
autoplay?: boolean | undefined;
|
|
125
|
+
} | undefined;
|
|
63
126
|
author?: string | undefined;
|
|
64
127
|
image?: string | 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;
|
|
@@ -70,8 +133,15 @@ export declare const ResponseArticleSchema: z.ZodObject<{
|
|
|
70
133
|
platform: "Web Only" | "App Only" | "All";
|
|
71
134
|
isDraft: boolean;
|
|
72
135
|
seekerFriendly: boolean;
|
|
73
|
-
audio?:
|
|
74
|
-
|
|
136
|
+
audio?: {
|
|
137
|
+
audioUrl: string;
|
|
138
|
+
loop?: boolean | undefined;
|
|
139
|
+
} | undefined;
|
|
140
|
+
video?: {
|
|
141
|
+
videoUrl: string;
|
|
142
|
+
loop?: boolean | undefined;
|
|
143
|
+
autoplay?: boolean | undefined;
|
|
144
|
+
} | undefined;
|
|
75
145
|
author?: string | undefined;
|
|
76
146
|
image?: string | 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;
|
|
@@ -88,8 +158,15 @@ export declare const ResponseArticleSchema: z.ZodObject<{
|
|
|
88
158
|
platform: "Web Only" | "App Only" | "All";
|
|
89
159
|
isDraft: boolean;
|
|
90
160
|
seekerFriendly: boolean;
|
|
91
|
-
audio?:
|
|
92
|
-
|
|
161
|
+
audio?: {
|
|
162
|
+
audioUrl: string;
|
|
163
|
+
loop?: boolean | undefined;
|
|
164
|
+
} | undefined;
|
|
165
|
+
video?: {
|
|
166
|
+
videoUrl: string;
|
|
167
|
+
loop?: boolean | undefined;
|
|
168
|
+
autoplay?: boolean | undefined;
|
|
169
|
+
} | undefined;
|
|
93
170
|
author?: string | undefined;
|
|
94
171
|
image?: string | 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;
|
|
@@ -105,8 +182,15 @@ export declare const ResponseArticleSchema: z.ZodObject<{
|
|
|
105
182
|
platform: "Web Only" | "App Only" | "All";
|
|
106
183
|
isDraft: boolean;
|
|
107
184
|
seekerFriendly: boolean;
|
|
108
|
-
audio?:
|
|
109
|
-
|
|
185
|
+
audio?: {
|
|
186
|
+
audioUrl: string;
|
|
187
|
+
loop?: boolean | undefined;
|
|
188
|
+
} | undefined;
|
|
189
|
+
video?: {
|
|
190
|
+
videoUrl: string;
|
|
191
|
+
loop?: boolean | undefined;
|
|
192
|
+
autoplay?: boolean | undefined;
|
|
193
|
+
} | undefined;
|
|
110
194
|
author?: string | undefined;
|
|
111
195
|
image?: string | 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;
|
|
@@ -126,8 +210,29 @@ export declare const ArticlesResponseSchema: z.ZodObject<{
|
|
|
126
210
|
isDraft: z.ZodBoolean;
|
|
127
211
|
seekerFriendly: 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
238
|
date: string | Date;
|
|
@@ -136,8 +241,15 @@ export declare const ArticlesResponseSchema: z.ZodObject<{
|
|
|
136
241
|
platform: "Web Only" | "App Only" | "All";
|
|
137
242
|
isDraft: boolean;
|
|
138
243
|
seekerFriendly: boolean;
|
|
139
|
-
audio?:
|
|
140
|
-
|
|
244
|
+
audio?: {
|
|
245
|
+
audioUrl: string;
|
|
246
|
+
loop?: boolean | undefined;
|
|
247
|
+
} | undefined;
|
|
248
|
+
video?: {
|
|
249
|
+
videoUrl: string;
|
|
250
|
+
loop?: boolean | undefined;
|
|
251
|
+
autoplay?: boolean | undefined;
|
|
252
|
+
} | undefined;
|
|
141
253
|
author?: string | undefined;
|
|
142
254
|
image?: string | 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;
|
|
@@ -148,8 +260,15 @@ export declare const ArticlesResponseSchema: z.ZodObject<{
|
|
|
148
260
|
platform: "Web Only" | "App Only" | "All";
|
|
149
261
|
isDraft: boolean;
|
|
150
262
|
seekerFriendly: boolean;
|
|
151
|
-
audio?:
|
|
152
|
-
|
|
263
|
+
audio?: {
|
|
264
|
+
audioUrl: string;
|
|
265
|
+
loop?: boolean | undefined;
|
|
266
|
+
} | undefined;
|
|
267
|
+
video?: {
|
|
268
|
+
videoUrl: string;
|
|
269
|
+
loop?: boolean | undefined;
|
|
270
|
+
autoplay?: boolean | undefined;
|
|
271
|
+
} | undefined;
|
|
153
272
|
author?: string | undefined;
|
|
154
273
|
image?: string | 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;
|
|
@@ -166,8 +285,15 @@ export declare const ArticlesResponseSchema: z.ZodObject<{
|
|
|
166
285
|
platform: "Web Only" | "App Only" | "All";
|
|
167
286
|
isDraft: boolean;
|
|
168
287
|
seekerFriendly: boolean;
|
|
169
|
-
audio?:
|
|
170
|
-
|
|
288
|
+
audio?: {
|
|
289
|
+
audioUrl: string;
|
|
290
|
+
loop?: boolean | undefined;
|
|
291
|
+
} | undefined;
|
|
292
|
+
video?: {
|
|
293
|
+
videoUrl: string;
|
|
294
|
+
loop?: boolean | undefined;
|
|
295
|
+
autoplay?: boolean | undefined;
|
|
296
|
+
} | undefined;
|
|
171
297
|
author?: string | undefined;
|
|
172
298
|
image?: string | 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;
|
|
@@ -183,8 +309,15 @@ export declare const ArticlesResponseSchema: z.ZodObject<{
|
|
|
183
309
|
platform: "Web Only" | "App Only" | "All";
|
|
184
310
|
isDraft: boolean;
|
|
185
311
|
seekerFriendly: boolean;
|
|
186
|
-
audio?:
|
|
187
|
-
|
|
312
|
+
audio?: {
|
|
313
|
+
audioUrl: string;
|
|
314
|
+
loop?: boolean | undefined;
|
|
315
|
+
} | undefined;
|
|
316
|
+
video?: {
|
|
317
|
+
videoUrl: string;
|
|
318
|
+
loop?: boolean | undefined;
|
|
319
|
+
autoplay?: boolean | undefined;
|
|
320
|
+
} | undefined;
|
|
188
321
|
author?: string | undefined;
|
|
189
322
|
image?: string | 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;
|
|
@@ -202,8 +335,15 @@ export declare const ArticlesResponseSchema: z.ZodObject<{
|
|
|
202
335
|
platform: "Web Only" | "App Only" | "All";
|
|
203
336
|
isDraft: boolean;
|
|
204
337
|
seekerFriendly: boolean;
|
|
205
|
-
audio?:
|
|
206
|
-
|
|
338
|
+
audio?: {
|
|
339
|
+
audioUrl: string;
|
|
340
|
+
loop?: boolean | undefined;
|
|
341
|
+
} | undefined;
|
|
342
|
+
video?: {
|
|
343
|
+
videoUrl: string;
|
|
344
|
+
loop?: boolean | undefined;
|
|
345
|
+
autoplay?: boolean | undefined;
|
|
346
|
+
} | undefined;
|
|
207
347
|
author?: string | undefined;
|
|
208
348
|
image?: string | 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;
|
|
@@ -221,8 +361,15 @@ export declare const ArticlesResponseSchema: z.ZodObject<{
|
|
|
221
361
|
platform: "Web Only" | "App Only" | "All";
|
|
222
362
|
isDraft: boolean;
|
|
223
363
|
seekerFriendly: boolean;
|
|
224
|
-
audio?:
|
|
225
|
-
|
|
364
|
+
audio?: {
|
|
365
|
+
audioUrl: string;
|
|
366
|
+
loop?: boolean | undefined;
|
|
367
|
+
} | undefined;
|
|
368
|
+
video?: {
|
|
369
|
+
videoUrl: string;
|
|
370
|
+
loop?: boolean | undefined;
|
|
371
|
+
autoplay?: boolean | undefined;
|
|
372
|
+
} | undefined;
|
|
226
373
|
author?: string | undefined;
|
|
227
374
|
image?: string | 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;
|
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',
|
|
@@ -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(),
|
|
@@ -3,3 +3,26 @@ export declare const DateSchema: z.ZodUnion<[z.ZodString, z.ZodDate]>;
|
|
|
3
3
|
export declare const IsDraftSchema: z.ZodBoolean;
|
|
4
4
|
export declare const SeekerFriendlySchema: 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,7 +3,7 @@ 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()])
|
|
@@ -17,3 +17,16 @@ exports.SeekerFriendlySchema = zod_1.default
|
|
|
17
17
|
exports.PlatformSchema = zod_1.default
|
|
18
18
|
.enum(['Web Only', 'App Only', 'All'])
|
|
19
19
|
.describe('Set to determine which platform the content is available on.');
|
|
20
|
+
exports.AudioSchema = zod_1.default
|
|
21
|
+
.object({
|
|
22
|
+
audioUrl: zod_1.default.string(),
|
|
23
|
+
loop: zod_1.default.boolean().optional(),
|
|
24
|
+
})
|
|
25
|
+
.optional();
|
|
26
|
+
exports.VideoSchema = zod_1.default
|
|
27
|
+
.object({
|
|
28
|
+
videoUrl: zod_1.default.string(),
|
|
29
|
+
autoplay: zod_1.default.boolean().optional(),
|
|
30
|
+
loop: zod_1.default.boolean().optional(),
|
|
31
|
+
})
|
|
32
|
+
.optional();
|