waha-shared 1.0.197 → 1.0.199

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.
@@ -4,36 +4,36 @@ 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.ZodString>;
12
12
  video: z.ZodOptional<z.ZodString>;
13
13
  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
14
  }, "strip", z.ZodTypeAny, {
15
- date: string | Date;
16
15
  title: string;
17
16
  category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
18
17
  platform: "Web Only" | "App Only" | "All";
19
- isDraft: boolean;
20
- seekerFriendly: boolean;
18
+ date?: string | Date | undefined;
21
19
  audio?: string | undefined;
22
20
  video?: string | undefined;
23
21
  author?: string | undefined;
24
22
  image?: string | undefined;
23
+ isDraft?: boolean | undefined;
24
+ seekerFriendly?: boolean | undefined;
25
25
  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
26
  }, {
27
- date: string | Date;
28
27
  title: string;
29
28
  category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
30
29
  platform: "Web Only" | "App Only" | "All";
31
- isDraft: boolean;
32
- seekerFriendly: boolean;
30
+ date?: string | Date | undefined;
33
31
  audio?: string | undefined;
34
32
  video?: string | undefined;
35
33
  author?: string | undefined;
36
34
  image?: string | undefined;
35
+ isDraft?: boolean | undefined;
36
+ seekerFriendly?: boolean | undefined;
37
37
  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
38
  }>;
39
39
  export type Article = z.infer<typeof ArticleSchema>;
@@ -44,36 +44,36 @@ export declare const ResponseArticleSchema: z.ZodObject<{
44
44
  author: z.ZodOptional<z.ZodString>;
45
45
  category: z.ZodEnum<["Case Studies", "Discovering God", "Disciple Making Secrets", "Product Updates", "Books", "Films"]>;
46
46
  image: z.ZodOptional<z.ZodString>;
47
- date: z.ZodUnion<[z.ZodString, z.ZodDate]>;
48
- isDraft: z.ZodBoolean;
49
- seekerFriendly: z.ZodBoolean;
47
+ date: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
48
+ isDraft: z.ZodOptional<z.ZodBoolean>;
49
+ seekerFriendly: z.ZodOptional<z.ZodBoolean>;
50
50
  platform: z.ZodEnum<["Web Only", "App Only", "All"]>;
51
51
  audio: z.ZodOptional<z.ZodString>;
52
52
  video: z.ZodOptional<z.ZodString>;
53
53
  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
54
  }, "strip", z.ZodTypeAny, {
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
- isDraft: boolean;
60
- seekerFriendly: boolean;
58
+ date?: string | Date | undefined;
61
59
  audio?: string | undefined;
62
60
  video?: string | undefined;
63
61
  author?: string | undefined;
64
62
  image?: string | undefined;
63
+ isDraft?: boolean | undefined;
64
+ seekerFriendly?: boolean | undefined;
65
65
  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
66
  }, {
67
- date: string | Date;
68
67
  title: string;
69
68
  category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
70
69
  platform: "Web Only" | "App Only" | "All";
71
- isDraft: boolean;
72
- seekerFriendly: boolean;
70
+ date?: string | Date | undefined;
73
71
  audio?: string | undefined;
74
72
  video?: string | undefined;
75
73
  author?: string | undefined;
76
74
  image?: string | undefined;
75
+ isDraft?: boolean | undefined;
76
+ seekerFriendly?: boolean | undefined;
77
77
  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
78
  }>;
79
79
  body: z.ZodString;
@@ -82,16 +82,16 @@ export declare const ResponseArticleSchema: z.ZodObject<{
82
82
  id: string;
83
83
  body: string;
84
84
  data: {
85
- date: string | Date;
86
85
  title: string;
87
86
  category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
88
87
  platform: "Web Only" | "App Only" | "All";
89
- isDraft: boolean;
90
- seekerFriendly: boolean;
88
+ date?: string | Date | undefined;
91
89
  audio?: string | undefined;
92
90
  video?: string | undefined;
93
91
  author?: string | undefined;
94
92
  image?: string | undefined;
93
+ isDraft?: boolean | undefined;
94
+ seekerFriendly?: boolean | undefined;
95
95
  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
96
  };
97
97
  slug: string;
@@ -99,16 +99,16 @@ export declare const ResponseArticleSchema: z.ZodObject<{
99
99
  id: string;
100
100
  body: string;
101
101
  data: {
102
- date: string | Date;
103
102
  title: string;
104
103
  category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
105
104
  platform: "Web Only" | "App Only" | "All";
106
- isDraft: boolean;
107
- seekerFriendly: boolean;
105
+ date?: string | Date | undefined;
108
106
  audio?: string | undefined;
109
107
  video?: string | undefined;
110
108
  author?: string | undefined;
111
109
  image?: string | undefined;
110
+ isDraft?: boolean | undefined;
111
+ seekerFriendly?: boolean | undefined;
112
112
  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
113
  };
114
114
  slug: string;
@@ -122,36 +122,36 @@ export declare const ArticlesResponseSchema: z.ZodObject<{
122
122
  author: z.ZodOptional<z.ZodString>;
123
123
  category: z.ZodEnum<["Case Studies", "Discovering God", "Disciple Making Secrets", "Product Updates", "Books", "Films"]>;
124
124
  image: z.ZodOptional<z.ZodString>;
125
- date: z.ZodUnion<[z.ZodString, z.ZodDate]>;
126
- isDraft: z.ZodBoolean;
127
- seekerFriendly: z.ZodBoolean;
125
+ date: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
126
+ isDraft: z.ZodOptional<z.ZodBoolean>;
127
+ seekerFriendly: z.ZodOptional<z.ZodBoolean>;
128
128
  platform: z.ZodEnum<["Web Only", "App Only", "All"]>;
129
129
  audio: z.ZodOptional<z.ZodString>;
130
130
  video: z.ZodOptional<z.ZodString>;
131
131
  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
132
  }, "strip", z.ZodTypeAny, {
133
- date: string | Date;
134
133
  title: string;
135
134
  category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
136
135
  platform: "Web Only" | "App Only" | "All";
137
- isDraft: boolean;
138
- seekerFriendly: boolean;
136
+ date?: string | Date | undefined;
139
137
  audio?: string | undefined;
140
138
  video?: string | undefined;
141
139
  author?: string | undefined;
142
140
  image?: string | undefined;
141
+ isDraft?: boolean | undefined;
142
+ seekerFriendly?: boolean | undefined;
143
143
  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
144
  }, {
145
- date: string | Date;
146
145
  title: string;
147
146
  category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
148
147
  platform: "Web Only" | "App Only" | "All";
149
- isDraft: boolean;
150
- seekerFriendly: boolean;
148
+ date?: string | Date | undefined;
151
149
  audio?: string | undefined;
152
150
  video?: string | undefined;
153
151
  author?: string | undefined;
154
152
  image?: string | undefined;
153
+ isDraft?: boolean | undefined;
154
+ seekerFriendly?: boolean | undefined;
155
155
  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
156
  }>;
157
157
  body: z.ZodString;
@@ -160,16 +160,16 @@ export declare const ArticlesResponseSchema: z.ZodObject<{
160
160
  id: string;
161
161
  body: string;
162
162
  data: {
163
- date: string | Date;
164
163
  title: string;
165
164
  category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
166
165
  platform: "Web Only" | "App Only" | "All";
167
- isDraft: boolean;
168
- seekerFriendly: boolean;
166
+ date?: string | Date | undefined;
169
167
  audio?: string | undefined;
170
168
  video?: string | undefined;
171
169
  author?: string | undefined;
172
170
  image?: string | undefined;
171
+ isDraft?: boolean | undefined;
172
+ seekerFriendly?: boolean | undefined;
173
173
  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
174
  };
175
175
  slug: string;
@@ -177,16 +177,16 @@ export declare const ArticlesResponseSchema: z.ZodObject<{
177
177
  id: string;
178
178
  body: string;
179
179
  data: {
180
- date: string | Date;
181
180
  title: string;
182
181
  category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
183
182
  platform: "Web Only" | "App Only" | "All";
184
- isDraft: boolean;
185
- seekerFriendly: boolean;
183
+ date?: string | Date | undefined;
186
184
  audio?: string | undefined;
187
185
  video?: string | undefined;
188
186
  author?: string | undefined;
189
187
  image?: string | undefined;
188
+ isDraft?: boolean | undefined;
189
+ seekerFriendly?: boolean | undefined;
190
190
  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
191
  };
192
192
  slug: string;
@@ -196,16 +196,16 @@ export declare const ArticlesResponseSchema: z.ZodObject<{
196
196
  id: string;
197
197
  body: string;
198
198
  data: {
199
- date: string | Date;
200
199
  title: string;
201
200
  category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
202
201
  platform: "Web Only" | "App Only" | "All";
203
- isDraft: boolean;
204
- seekerFriendly: boolean;
202
+ date?: string | Date | undefined;
205
203
  audio?: string | undefined;
206
204
  video?: string | undefined;
207
205
  author?: string | undefined;
208
206
  image?: string | undefined;
207
+ isDraft?: boolean | undefined;
208
+ seekerFriendly?: boolean | undefined;
209
209
  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
210
  };
211
211
  slug: string;
@@ -215,16 +215,16 @@ export declare const ArticlesResponseSchema: z.ZodObject<{
215
215
  id: string;
216
216
  body: string;
217
217
  data: {
218
- date: string | Date;
219
218
  title: string;
220
219
  category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
221
220
  platform: "Web Only" | "App Only" | "All";
222
- isDraft: boolean;
223
- seekerFriendly: boolean;
221
+ date?: string | Date | undefined;
224
222
  audio?: string | undefined;
225
223
  video?: string | undefined;
226
224
  author?: string | undefined;
227
225
  image?: string | undefined;
226
+ isDraft?: boolean | undefined;
227
+ seekerFriendly?: boolean | undefined;
228
228
  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
229
  };
230
230
  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<{
@@ -38,7 +38,19 @@ export declare const MicroLessonSchema: z.ZodObject<{
38
38
  body?: string | undefined;
39
39
  heading?: string | undefined;
40
40
  }>, "many">>;
41
- videoUrl: z.ZodOptional<z.ZodString>;
41
+ video: z.ZodOptional<z.ZodObject<{
42
+ videoUrl: z.ZodString;
43
+ autoplay: z.ZodOptional<z.ZodBoolean>;
44
+ loop: z.ZodOptional<z.ZodBoolean>;
45
+ }, "strip", z.ZodTypeAny, {
46
+ videoUrl: string;
47
+ autoplay?: boolean | undefined;
48
+ loop?: boolean | undefined;
49
+ }, {
50
+ videoUrl: string;
51
+ autoplay?: boolean | undefined;
52
+ loop?: boolean | undefined;
53
+ }>>;
42
54
  platform: z.ZodOptional<z.ZodEnum<["Web Only", "App Only", "All"]>>;
43
55
  notification: z.ZodOptional<z.ZodObject<{
44
56
  title: z.ZodString;
@@ -57,6 +69,11 @@ export declare const MicroLessonSchema: z.ZodObject<{
57
69
  heading: string;
58
70
  audio?: string | undefined;
59
71
  body?: string | undefined;
72
+ video?: {
73
+ videoUrl: string;
74
+ autoplay?: boolean | undefined;
75
+ loop?: boolean | undefined;
76
+ } | undefined;
60
77
  notification?: {
61
78
  title: string;
62
79
  body: string;
@@ -74,11 +91,15 @@ export declare const MicroLessonSchema: z.ZodObject<{
74
91
  body?: string | undefined;
75
92
  heading?: string | undefined;
76
93
  }[] | undefined;
77
- videoUrl?: string | undefined;
78
94
  }, {
79
95
  heading: string;
80
96
  audio?: string | undefined;
81
97
  body?: string | undefined;
98
+ video?: {
99
+ videoUrl: string;
100
+ autoplay?: boolean | undefined;
101
+ loop?: boolean | undefined;
102
+ } | undefined;
82
103
  notification?: {
83
104
  title: string;
84
105
  body: string;
@@ -96,18 +117,19 @@ export declare const MicroLessonSchema: z.ZodObject<{
96
117
  body?: string | undefined;
97
118
  heading?: string | undefined;
98
119
  }[] | undefined;
99
- videoUrl?: string | undefined;
100
120
  }>, "many">;
101
121
  }, "strip", z.ZodTypeAny, {
102
- date: string | Date;
103
122
  title: string;
104
123
  platform: "Web Only" | "App Only" | "All";
105
- isDraft: boolean;
106
- seekerFriendly: boolean;
107
124
  pages: {
108
125
  heading: string;
109
126
  audio?: string | undefined;
110
127
  body?: string | undefined;
128
+ video?: {
129
+ videoUrl: string;
130
+ autoplay?: boolean | undefined;
131
+ loop?: boolean | undefined;
132
+ } | undefined;
111
133
  notification?: {
112
134
  title: string;
113
135
  body: string;
@@ -125,20 +147,24 @@ export declare const MicroLessonSchema: z.ZodObject<{
125
147
  body?: string | undefined;
126
148
  heading?: string | undefined;
127
149
  }[] | undefined;
128
- videoUrl?: string | undefined;
129
150
  }[];
151
+ date?: string | Date | undefined;
152
+ isDraft?: boolean | undefined;
153
+ seekerFriendly?: boolean | undefined;
130
154
  subtitle?: string | undefined;
131
155
  campaign?: string | undefined;
132
156
  }, {
133
- date: string | Date;
134
157
  title: string;
135
158
  platform: "Web Only" | "App Only" | "All";
136
- isDraft: boolean;
137
- seekerFriendly: boolean;
138
159
  pages: {
139
160
  heading: string;
140
161
  audio?: string | undefined;
141
162
  body?: string | undefined;
163
+ video?: {
164
+ videoUrl: string;
165
+ autoplay?: boolean | undefined;
166
+ loop?: boolean | undefined;
167
+ } | undefined;
142
168
  notification?: {
143
169
  title: string;
144
170
  body: string;
@@ -156,8 +182,10 @@ export declare const MicroLessonSchema: z.ZodObject<{
156
182
  body?: string | undefined;
157
183
  heading?: string | undefined;
158
184
  }[] | undefined;
159
- videoUrl?: string | undefined;
160
185
  }[];
186
+ date?: string | Date | undefined;
187
+ isDraft?: boolean | undefined;
188
+ seekerFriendly?: boolean | undefined;
161
189
  subtitle?: string | undefined;
162
190
  campaign?: string | undefined;
163
191
  }>;
@@ -167,9 +195,9 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
167
195
  data: z.ZodObject<{
168
196
  title: z.ZodString;
169
197
  subtitle: z.ZodOptional<z.ZodString>;
170
- date: z.ZodUnion<[z.ZodString, z.ZodDate]>;
171
- isDraft: z.ZodBoolean;
172
- seekerFriendly: z.ZodBoolean;
198
+ date: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
199
+ isDraft: z.ZodOptional<z.ZodBoolean>;
200
+ seekerFriendly: z.ZodOptional<z.ZodBoolean>;
173
201
  platform: z.ZodEnum<["Web Only", "App Only", "All"]>;
174
202
  campaign: z.ZodOptional<z.ZodString>;
175
203
  pages: z.ZodArray<z.ZodObject<{
@@ -203,7 +231,19 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
203
231
  body?: string | undefined;
204
232
  heading?: string | undefined;
205
233
  }>, "many">>;
206
- videoUrl: z.ZodOptional<z.ZodString>;
234
+ video: z.ZodOptional<z.ZodObject<{
235
+ videoUrl: z.ZodString;
236
+ autoplay: z.ZodOptional<z.ZodBoolean>;
237
+ loop: z.ZodOptional<z.ZodBoolean>;
238
+ }, "strip", z.ZodTypeAny, {
239
+ videoUrl: string;
240
+ autoplay?: boolean | undefined;
241
+ loop?: boolean | undefined;
242
+ }, {
243
+ videoUrl: string;
244
+ autoplay?: boolean | undefined;
245
+ loop?: boolean | undefined;
246
+ }>>;
207
247
  platform: z.ZodOptional<z.ZodEnum<["Web Only", "App Only", "All"]>>;
208
248
  notification: z.ZodOptional<z.ZodObject<{
209
249
  title: z.ZodString;
@@ -222,6 +262,11 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
222
262
  heading: string;
223
263
  audio?: string | undefined;
224
264
  body?: string | undefined;
265
+ video?: {
266
+ videoUrl: string;
267
+ autoplay?: boolean | undefined;
268
+ loop?: boolean | undefined;
269
+ } | undefined;
225
270
  notification?: {
226
271
  title: string;
227
272
  body: string;
@@ -239,11 +284,15 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
239
284
  body?: string | undefined;
240
285
  heading?: string | undefined;
241
286
  }[] | undefined;
242
- videoUrl?: string | undefined;
243
287
  }, {
244
288
  heading: string;
245
289
  audio?: string | undefined;
246
290
  body?: string | undefined;
291
+ video?: {
292
+ videoUrl: string;
293
+ autoplay?: boolean | undefined;
294
+ loop?: boolean | undefined;
295
+ } | undefined;
247
296
  notification?: {
248
297
  title: string;
249
298
  body: string;
@@ -261,18 +310,19 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
261
310
  body?: string | undefined;
262
311
  heading?: string | undefined;
263
312
  }[] | undefined;
264
- videoUrl?: string | undefined;
265
313
  }>, "many">;
266
314
  }, "strip", z.ZodTypeAny, {
267
- date: string | Date;
268
315
  title: string;
269
316
  platform: "Web Only" | "App Only" | "All";
270
- isDraft: boolean;
271
- seekerFriendly: boolean;
272
317
  pages: {
273
318
  heading: string;
274
319
  audio?: string | undefined;
275
320
  body?: string | undefined;
321
+ video?: {
322
+ videoUrl: string;
323
+ autoplay?: boolean | undefined;
324
+ loop?: boolean | undefined;
325
+ } | undefined;
276
326
  notification?: {
277
327
  title: string;
278
328
  body: string;
@@ -290,20 +340,24 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
290
340
  body?: string | undefined;
291
341
  heading?: string | undefined;
292
342
  }[] | undefined;
293
- videoUrl?: string | undefined;
294
343
  }[];
344
+ date?: string | Date | undefined;
345
+ isDraft?: boolean | undefined;
346
+ seekerFriendly?: boolean | undefined;
295
347
  subtitle?: string | undefined;
296
348
  campaign?: string | undefined;
297
349
  }, {
298
- date: string | Date;
299
350
  title: string;
300
351
  platform: "Web Only" | "App Only" | "All";
301
- isDraft: boolean;
302
- seekerFriendly: boolean;
303
352
  pages: {
304
353
  heading: string;
305
354
  audio?: string | undefined;
306
355
  body?: string | undefined;
356
+ video?: {
357
+ videoUrl: string;
358
+ autoplay?: boolean | undefined;
359
+ loop?: boolean | undefined;
360
+ } | undefined;
307
361
  notification?: {
308
362
  title: string;
309
363
  body: string;
@@ -321,23 +375,27 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
321
375
  body?: string | undefined;
322
376
  heading?: string | undefined;
323
377
  }[] | undefined;
324
- videoUrl?: string | undefined;
325
378
  }[];
379
+ date?: string | Date | undefined;
380
+ isDraft?: boolean | undefined;
381
+ seekerFriendly?: boolean | undefined;
326
382
  subtitle?: string | undefined;
327
383
  campaign?: string | undefined;
328
384
  }>;
329
385
  }, "strip", z.ZodTypeAny, {
330
386
  id: string;
331
387
  data: {
332
- date: string | Date;
333
388
  title: string;
334
389
  platform: "Web Only" | "App Only" | "All";
335
- isDraft: boolean;
336
- seekerFriendly: boolean;
337
390
  pages: {
338
391
  heading: string;
339
392
  audio?: string | undefined;
340
393
  body?: string | undefined;
394
+ video?: {
395
+ videoUrl: string;
396
+ autoplay?: boolean | undefined;
397
+ loop?: boolean | undefined;
398
+ } | undefined;
341
399
  notification?: {
342
400
  title: string;
343
401
  body: string;
@@ -355,23 +413,27 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
355
413
  body?: string | undefined;
356
414
  heading?: string | undefined;
357
415
  }[] | undefined;
358
- videoUrl?: string | undefined;
359
416
  }[];
417
+ date?: string | Date | undefined;
418
+ isDraft?: boolean | undefined;
419
+ seekerFriendly?: boolean | undefined;
360
420
  subtitle?: string | undefined;
361
421
  campaign?: string | undefined;
362
422
  };
363
423
  }, {
364
424
  id: string;
365
425
  data: {
366
- date: string | Date;
367
426
  title: string;
368
427
  platform: "Web Only" | "App Only" | "All";
369
- isDraft: boolean;
370
- seekerFriendly: boolean;
371
428
  pages: {
372
429
  heading: string;
373
430
  audio?: string | undefined;
374
431
  body?: string | undefined;
432
+ video?: {
433
+ videoUrl: string;
434
+ autoplay?: boolean | undefined;
435
+ loop?: boolean | undefined;
436
+ } | undefined;
375
437
  notification?: {
376
438
  title: string;
377
439
  body: string;
@@ -389,8 +451,10 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
389
451
  body?: string | undefined;
390
452
  heading?: string | undefined;
391
453
  }[] | undefined;
392
- videoUrl?: string | undefined;
393
454
  }[];
455
+ date?: string | Date | undefined;
456
+ isDraft?: boolean | undefined;
457
+ seekerFriendly?: boolean | undefined;
394
458
  subtitle?: string | undefined;
395
459
  campaign?: string | undefined;
396
460
  };
@@ -402,9 +466,9 @@ export declare const MicroLessonsResponse: z.ZodObject<{
402
466
  data: z.ZodObject<{
403
467
  title: z.ZodString;
404
468
  subtitle: z.ZodOptional<z.ZodString>;
405
- date: z.ZodUnion<[z.ZodString, z.ZodDate]>;
406
- isDraft: z.ZodBoolean;
407
- seekerFriendly: z.ZodBoolean;
469
+ date: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
470
+ isDraft: z.ZodOptional<z.ZodBoolean>;
471
+ seekerFriendly: z.ZodOptional<z.ZodBoolean>;
408
472
  platform: z.ZodEnum<["Web Only", "App Only", "All"]>;
409
473
  campaign: z.ZodOptional<z.ZodString>;
410
474
  pages: z.ZodArray<z.ZodObject<{
@@ -438,7 +502,19 @@ export declare const MicroLessonsResponse: z.ZodObject<{
438
502
  body?: string | undefined;
439
503
  heading?: string | undefined;
440
504
  }>, "many">>;
441
- videoUrl: z.ZodOptional<z.ZodString>;
505
+ video: z.ZodOptional<z.ZodObject<{
506
+ videoUrl: z.ZodString;
507
+ autoplay: z.ZodOptional<z.ZodBoolean>;
508
+ loop: z.ZodOptional<z.ZodBoolean>;
509
+ }, "strip", z.ZodTypeAny, {
510
+ videoUrl: string;
511
+ autoplay?: boolean | undefined;
512
+ loop?: boolean | undefined;
513
+ }, {
514
+ videoUrl: string;
515
+ autoplay?: boolean | undefined;
516
+ loop?: boolean | undefined;
517
+ }>>;
442
518
  platform: z.ZodOptional<z.ZodEnum<["Web Only", "App Only", "All"]>>;
443
519
  notification: z.ZodOptional<z.ZodObject<{
444
520
  title: z.ZodString;
@@ -457,6 +533,11 @@ export declare const MicroLessonsResponse: z.ZodObject<{
457
533
  heading: string;
458
534
  audio?: string | undefined;
459
535
  body?: string | undefined;
536
+ video?: {
537
+ videoUrl: string;
538
+ autoplay?: boolean | undefined;
539
+ loop?: boolean | undefined;
540
+ } | undefined;
460
541
  notification?: {
461
542
  title: string;
462
543
  body: string;
@@ -474,11 +555,15 @@ export declare const MicroLessonsResponse: z.ZodObject<{
474
555
  body?: string | undefined;
475
556
  heading?: string | undefined;
476
557
  }[] | undefined;
477
- videoUrl?: string | undefined;
478
558
  }, {
479
559
  heading: string;
480
560
  audio?: string | undefined;
481
561
  body?: string | undefined;
562
+ video?: {
563
+ videoUrl: string;
564
+ autoplay?: boolean | undefined;
565
+ loop?: boolean | undefined;
566
+ } | undefined;
482
567
  notification?: {
483
568
  title: string;
484
569
  body: string;
@@ -496,18 +581,19 @@ export declare const MicroLessonsResponse: z.ZodObject<{
496
581
  body?: string | undefined;
497
582
  heading?: string | undefined;
498
583
  }[] | undefined;
499
- videoUrl?: string | undefined;
500
584
  }>, "many">;
501
585
  }, "strip", z.ZodTypeAny, {
502
- date: string | Date;
503
586
  title: string;
504
587
  platform: "Web Only" | "App Only" | "All";
505
- isDraft: boolean;
506
- seekerFriendly: boolean;
507
588
  pages: {
508
589
  heading: string;
509
590
  audio?: string | undefined;
510
591
  body?: string | undefined;
592
+ video?: {
593
+ videoUrl: string;
594
+ autoplay?: boolean | undefined;
595
+ loop?: boolean | undefined;
596
+ } | undefined;
511
597
  notification?: {
512
598
  title: string;
513
599
  body: string;
@@ -525,20 +611,24 @@ export declare const MicroLessonsResponse: z.ZodObject<{
525
611
  body?: string | undefined;
526
612
  heading?: string | undefined;
527
613
  }[] | undefined;
528
- videoUrl?: string | undefined;
529
614
  }[];
615
+ date?: string | Date | undefined;
616
+ isDraft?: boolean | undefined;
617
+ seekerFriendly?: boolean | undefined;
530
618
  subtitle?: string | undefined;
531
619
  campaign?: string | undefined;
532
620
  }, {
533
- date: string | Date;
534
621
  title: string;
535
622
  platform: "Web Only" | "App Only" | "All";
536
- isDraft: boolean;
537
- seekerFriendly: boolean;
538
623
  pages: {
539
624
  heading: string;
540
625
  audio?: string | undefined;
541
626
  body?: string | undefined;
627
+ video?: {
628
+ videoUrl: string;
629
+ autoplay?: boolean | undefined;
630
+ loop?: boolean | undefined;
631
+ } | undefined;
542
632
  notification?: {
543
633
  title: string;
544
634
  body: string;
@@ -556,23 +646,27 @@ export declare const MicroLessonsResponse: z.ZodObject<{
556
646
  body?: string | undefined;
557
647
  heading?: string | undefined;
558
648
  }[] | undefined;
559
- videoUrl?: string | undefined;
560
649
  }[];
650
+ date?: string | Date | undefined;
651
+ isDraft?: boolean | undefined;
652
+ seekerFriendly?: boolean | undefined;
561
653
  subtitle?: string | undefined;
562
654
  campaign?: string | undefined;
563
655
  }>;
564
656
  }, "strip", z.ZodTypeAny, {
565
657
  id: string;
566
658
  data: {
567
- date: string | Date;
568
659
  title: string;
569
660
  platform: "Web Only" | "App Only" | "All";
570
- isDraft: boolean;
571
- seekerFriendly: boolean;
572
661
  pages: {
573
662
  heading: string;
574
663
  audio?: string | undefined;
575
664
  body?: string | undefined;
665
+ video?: {
666
+ videoUrl: string;
667
+ autoplay?: boolean | undefined;
668
+ loop?: boolean | undefined;
669
+ } | undefined;
576
670
  notification?: {
577
671
  title: string;
578
672
  body: string;
@@ -590,23 +684,27 @@ export declare const MicroLessonsResponse: z.ZodObject<{
590
684
  body?: string | undefined;
591
685
  heading?: string | undefined;
592
686
  }[] | undefined;
593
- videoUrl?: string | undefined;
594
687
  }[];
688
+ date?: string | Date | undefined;
689
+ isDraft?: boolean | undefined;
690
+ seekerFriendly?: boolean | undefined;
595
691
  subtitle?: string | undefined;
596
692
  campaign?: string | undefined;
597
693
  };
598
694
  }, {
599
695
  id: string;
600
696
  data: {
601
- date: string | Date;
602
697
  title: string;
603
698
  platform: "Web Only" | "App Only" | "All";
604
- isDraft: boolean;
605
- seekerFriendly: boolean;
606
699
  pages: {
607
700
  heading: string;
608
701
  audio?: string | undefined;
609
702
  body?: string | undefined;
703
+ video?: {
704
+ videoUrl: string;
705
+ autoplay?: boolean | undefined;
706
+ loop?: boolean | undefined;
707
+ } | undefined;
610
708
  notification?: {
611
709
  title: string;
612
710
  body: string;
@@ -624,8 +722,10 @@ export declare const MicroLessonsResponse: z.ZodObject<{
624
722
  body?: string | undefined;
625
723
  heading?: string | undefined;
626
724
  }[] | undefined;
627
- videoUrl?: string | undefined;
628
725
  }[];
726
+ date?: string | Date | undefined;
727
+ isDraft?: boolean | undefined;
728
+ seekerFriendly?: boolean | undefined;
629
729
  subtitle?: string | undefined;
630
730
  campaign?: string | undefined;
631
731
  };
@@ -634,15 +734,17 @@ export declare const MicroLessonsResponse: z.ZodObject<{
634
734
  data: {
635
735
  id: string;
636
736
  data: {
637
- date: string | Date;
638
737
  title: string;
639
738
  platform: "Web Only" | "App Only" | "All";
640
- isDraft: boolean;
641
- seekerFriendly: boolean;
642
739
  pages: {
643
740
  heading: string;
644
741
  audio?: string | undefined;
645
742
  body?: string | undefined;
743
+ video?: {
744
+ videoUrl: string;
745
+ autoplay?: boolean | undefined;
746
+ loop?: boolean | undefined;
747
+ } | undefined;
646
748
  notification?: {
647
749
  title: string;
648
750
  body: string;
@@ -660,8 +762,10 @@ export declare const MicroLessonsResponse: z.ZodObject<{
660
762
  body?: string | undefined;
661
763
  heading?: string | undefined;
662
764
  }[] | undefined;
663
- videoUrl?: string | undefined;
664
765
  }[];
766
+ date?: string | Date | undefined;
767
+ isDraft?: boolean | undefined;
768
+ seekerFriendly?: boolean | undefined;
665
769
  subtitle?: string | undefined;
666
770
  campaign?: string | undefined;
667
771
  };
@@ -670,15 +774,17 @@ export declare const MicroLessonsResponse: z.ZodObject<{
670
774
  data: {
671
775
  id: string;
672
776
  data: {
673
- date: string | Date;
674
777
  title: string;
675
778
  platform: "Web Only" | "App Only" | "All";
676
- isDraft: boolean;
677
- seekerFriendly: boolean;
678
779
  pages: {
679
780
  heading: string;
680
781
  audio?: string | undefined;
681
782
  body?: string | undefined;
783
+ video?: {
784
+ videoUrl: string;
785
+ autoplay?: boolean | undefined;
786
+ loop?: boolean | undefined;
787
+ } | undefined;
682
788
  notification?: {
683
789
  title: string;
684
790
  body: string;
@@ -696,8 +802,10 @@ export declare const MicroLessonsResponse: z.ZodObject<{
696
802
  body?: string | undefined;
697
803
  heading?: string | undefined;
698
804
  }[] | undefined;
699
- videoUrl?: string | undefined;
700
805
  }[];
806
+ date?: string | Date | undefined;
807
+ isDraft?: boolean | undefined;
808
+ seekerFriendly?: boolean | undefined;
701
809
  subtitle?: string | undefined;
702
810
  campaign?: string | undefined;
703
811
  };
@@ -36,7 +36,13 @@ exports.MicroLessonSchema = zod_1.default.object({
36
36
  body: zod_1.default.string().optional(),
37
37
  }))
38
38
  .optional(),
39
- videoUrl: zod_1.default.string().optional(),
39
+ video: zod_1.default
40
+ .object({
41
+ videoUrl: zod_1.default.string(),
42
+ autoplay: zod_1.default.boolean().optional(),
43
+ loop: zod_1.default.boolean().optional(),
44
+ })
45
+ .optional(),
40
46
  platform: webContent_1.PlatformSchema.optional(),
41
47
  notification: zod_1.default
42
48
  .object({
@@ -1,5 +1,5 @@
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"]>;
@@ -7,13 +7,16 @@ exports.PlatformSchema = exports.SeekerFriendlySchema = exports.IsDraftSchema =
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.');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waha-shared",
3
- "version": "1.0.197",
3
+ "version": "1.0.199",
4
4
  "author": "Waha",
5
5
  "dependencies": {
6
6
  "@types/signale": "^1.4.7",