waha-shared 1.0.197 → 1.0.198
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/types/articles.d.ts
CHANGED
|
@@ -4,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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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<{
|
|
@@ -99,11 +99,8 @@ export declare const MicroLessonSchema: z.ZodObject<{
|
|
|
99
99
|
videoUrl?: string | undefined;
|
|
100
100
|
}>, "many">;
|
|
101
101
|
}, "strip", z.ZodTypeAny, {
|
|
102
|
-
date: string | Date;
|
|
103
102
|
title: string;
|
|
104
103
|
platform: "Web Only" | "App Only" | "All";
|
|
105
|
-
isDraft: boolean;
|
|
106
|
-
seekerFriendly: boolean;
|
|
107
104
|
pages: {
|
|
108
105
|
heading: string;
|
|
109
106
|
audio?: string | undefined;
|
|
@@ -127,14 +124,14 @@ export declare const MicroLessonSchema: z.ZodObject<{
|
|
|
127
124
|
}[] | undefined;
|
|
128
125
|
videoUrl?: string | undefined;
|
|
129
126
|
}[];
|
|
127
|
+
date?: string | Date | undefined;
|
|
128
|
+
isDraft?: boolean | undefined;
|
|
129
|
+
seekerFriendly?: boolean | undefined;
|
|
130
130
|
subtitle?: string | undefined;
|
|
131
131
|
campaign?: string | undefined;
|
|
132
132
|
}, {
|
|
133
|
-
date: string | Date;
|
|
134
133
|
title: string;
|
|
135
134
|
platform: "Web Only" | "App Only" | "All";
|
|
136
|
-
isDraft: boolean;
|
|
137
|
-
seekerFriendly: boolean;
|
|
138
135
|
pages: {
|
|
139
136
|
heading: string;
|
|
140
137
|
audio?: string | undefined;
|
|
@@ -158,6 +155,9 @@ export declare const MicroLessonSchema: z.ZodObject<{
|
|
|
158
155
|
}[] | undefined;
|
|
159
156
|
videoUrl?: string | undefined;
|
|
160
157
|
}[];
|
|
158
|
+
date?: string | Date | undefined;
|
|
159
|
+
isDraft?: boolean | undefined;
|
|
160
|
+
seekerFriendly?: boolean | undefined;
|
|
161
161
|
subtitle?: string | undefined;
|
|
162
162
|
campaign?: string | undefined;
|
|
163
163
|
}>;
|
|
@@ -167,9 +167,9 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
|
|
|
167
167
|
data: z.ZodObject<{
|
|
168
168
|
title: z.ZodString;
|
|
169
169
|
subtitle: z.ZodOptional<z.ZodString>;
|
|
170
|
-
date: z.ZodUnion<[z.ZodString, z.ZodDate]
|
|
171
|
-
isDraft: z.ZodBoolean
|
|
172
|
-
seekerFriendly: z.ZodBoolean
|
|
170
|
+
date: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
|
|
171
|
+
isDraft: z.ZodOptional<z.ZodBoolean>;
|
|
172
|
+
seekerFriendly: z.ZodOptional<z.ZodBoolean>;
|
|
173
173
|
platform: z.ZodEnum<["Web Only", "App Only", "All"]>;
|
|
174
174
|
campaign: z.ZodOptional<z.ZodString>;
|
|
175
175
|
pages: z.ZodArray<z.ZodObject<{
|
|
@@ -264,11 +264,8 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
|
|
|
264
264
|
videoUrl?: string | undefined;
|
|
265
265
|
}>, "many">;
|
|
266
266
|
}, "strip", z.ZodTypeAny, {
|
|
267
|
-
date: string | Date;
|
|
268
267
|
title: string;
|
|
269
268
|
platform: "Web Only" | "App Only" | "All";
|
|
270
|
-
isDraft: boolean;
|
|
271
|
-
seekerFriendly: boolean;
|
|
272
269
|
pages: {
|
|
273
270
|
heading: string;
|
|
274
271
|
audio?: string | undefined;
|
|
@@ -292,14 +289,14 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
|
|
|
292
289
|
}[] | undefined;
|
|
293
290
|
videoUrl?: string | undefined;
|
|
294
291
|
}[];
|
|
292
|
+
date?: string | Date | undefined;
|
|
293
|
+
isDraft?: boolean | undefined;
|
|
294
|
+
seekerFriendly?: boolean | undefined;
|
|
295
295
|
subtitle?: string | undefined;
|
|
296
296
|
campaign?: string | undefined;
|
|
297
297
|
}, {
|
|
298
|
-
date: string | Date;
|
|
299
298
|
title: string;
|
|
300
299
|
platform: "Web Only" | "App Only" | "All";
|
|
301
|
-
isDraft: boolean;
|
|
302
|
-
seekerFriendly: boolean;
|
|
303
300
|
pages: {
|
|
304
301
|
heading: string;
|
|
305
302
|
audio?: string | undefined;
|
|
@@ -323,17 +320,17 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
|
|
|
323
320
|
}[] | undefined;
|
|
324
321
|
videoUrl?: string | undefined;
|
|
325
322
|
}[];
|
|
323
|
+
date?: string | Date | undefined;
|
|
324
|
+
isDraft?: boolean | undefined;
|
|
325
|
+
seekerFriendly?: boolean | undefined;
|
|
326
326
|
subtitle?: string | undefined;
|
|
327
327
|
campaign?: string | undefined;
|
|
328
328
|
}>;
|
|
329
329
|
}, "strip", z.ZodTypeAny, {
|
|
330
330
|
id: string;
|
|
331
331
|
data: {
|
|
332
|
-
date: string | Date;
|
|
333
332
|
title: string;
|
|
334
333
|
platform: "Web Only" | "App Only" | "All";
|
|
335
|
-
isDraft: boolean;
|
|
336
|
-
seekerFriendly: boolean;
|
|
337
334
|
pages: {
|
|
338
335
|
heading: string;
|
|
339
336
|
audio?: string | undefined;
|
|
@@ -357,17 +354,17 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
|
|
|
357
354
|
}[] | undefined;
|
|
358
355
|
videoUrl?: string | undefined;
|
|
359
356
|
}[];
|
|
357
|
+
date?: string | Date | undefined;
|
|
358
|
+
isDraft?: boolean | undefined;
|
|
359
|
+
seekerFriendly?: boolean | undefined;
|
|
360
360
|
subtitle?: string | undefined;
|
|
361
361
|
campaign?: string | undefined;
|
|
362
362
|
};
|
|
363
363
|
}, {
|
|
364
364
|
id: string;
|
|
365
365
|
data: {
|
|
366
|
-
date: string | Date;
|
|
367
366
|
title: string;
|
|
368
367
|
platform: "Web Only" | "App Only" | "All";
|
|
369
|
-
isDraft: boolean;
|
|
370
|
-
seekerFriendly: boolean;
|
|
371
368
|
pages: {
|
|
372
369
|
heading: string;
|
|
373
370
|
audio?: string | undefined;
|
|
@@ -391,6 +388,9 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
|
|
|
391
388
|
}[] | undefined;
|
|
392
389
|
videoUrl?: string | undefined;
|
|
393
390
|
}[];
|
|
391
|
+
date?: string | Date | undefined;
|
|
392
|
+
isDraft?: boolean | undefined;
|
|
393
|
+
seekerFriendly?: boolean | undefined;
|
|
394
394
|
subtitle?: string | undefined;
|
|
395
395
|
campaign?: string | undefined;
|
|
396
396
|
};
|
|
@@ -402,9 +402,9 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
402
402
|
data: z.ZodObject<{
|
|
403
403
|
title: z.ZodString;
|
|
404
404
|
subtitle: z.ZodOptional<z.ZodString>;
|
|
405
|
-
date: z.ZodUnion<[z.ZodString, z.ZodDate]
|
|
406
|
-
isDraft: z.ZodBoolean
|
|
407
|
-
seekerFriendly: z.ZodBoolean
|
|
405
|
+
date: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
|
|
406
|
+
isDraft: z.ZodOptional<z.ZodBoolean>;
|
|
407
|
+
seekerFriendly: z.ZodOptional<z.ZodBoolean>;
|
|
408
408
|
platform: z.ZodEnum<["Web Only", "App Only", "All"]>;
|
|
409
409
|
campaign: z.ZodOptional<z.ZodString>;
|
|
410
410
|
pages: z.ZodArray<z.ZodObject<{
|
|
@@ -499,11 +499,8 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
499
499
|
videoUrl?: string | undefined;
|
|
500
500
|
}>, "many">;
|
|
501
501
|
}, "strip", z.ZodTypeAny, {
|
|
502
|
-
date: string | Date;
|
|
503
502
|
title: string;
|
|
504
503
|
platform: "Web Only" | "App Only" | "All";
|
|
505
|
-
isDraft: boolean;
|
|
506
|
-
seekerFriendly: boolean;
|
|
507
504
|
pages: {
|
|
508
505
|
heading: string;
|
|
509
506
|
audio?: string | undefined;
|
|
@@ -527,14 +524,14 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
527
524
|
}[] | undefined;
|
|
528
525
|
videoUrl?: string | undefined;
|
|
529
526
|
}[];
|
|
527
|
+
date?: string | Date | undefined;
|
|
528
|
+
isDraft?: boolean | undefined;
|
|
529
|
+
seekerFriendly?: boolean | undefined;
|
|
530
530
|
subtitle?: string | undefined;
|
|
531
531
|
campaign?: string | undefined;
|
|
532
532
|
}, {
|
|
533
|
-
date: string | Date;
|
|
534
533
|
title: string;
|
|
535
534
|
platform: "Web Only" | "App Only" | "All";
|
|
536
|
-
isDraft: boolean;
|
|
537
|
-
seekerFriendly: boolean;
|
|
538
535
|
pages: {
|
|
539
536
|
heading: string;
|
|
540
537
|
audio?: string | undefined;
|
|
@@ -558,17 +555,17 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
558
555
|
}[] | undefined;
|
|
559
556
|
videoUrl?: string | undefined;
|
|
560
557
|
}[];
|
|
558
|
+
date?: string | Date | undefined;
|
|
559
|
+
isDraft?: boolean | undefined;
|
|
560
|
+
seekerFriendly?: boolean | undefined;
|
|
561
561
|
subtitle?: string | undefined;
|
|
562
562
|
campaign?: string | undefined;
|
|
563
563
|
}>;
|
|
564
564
|
}, "strip", z.ZodTypeAny, {
|
|
565
565
|
id: string;
|
|
566
566
|
data: {
|
|
567
|
-
date: string | Date;
|
|
568
567
|
title: string;
|
|
569
568
|
platform: "Web Only" | "App Only" | "All";
|
|
570
|
-
isDraft: boolean;
|
|
571
|
-
seekerFriendly: boolean;
|
|
572
569
|
pages: {
|
|
573
570
|
heading: string;
|
|
574
571
|
audio?: string | undefined;
|
|
@@ -592,17 +589,17 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
592
589
|
}[] | undefined;
|
|
593
590
|
videoUrl?: string | undefined;
|
|
594
591
|
}[];
|
|
592
|
+
date?: string | Date | undefined;
|
|
593
|
+
isDraft?: boolean | undefined;
|
|
594
|
+
seekerFriendly?: boolean | undefined;
|
|
595
595
|
subtitle?: string | undefined;
|
|
596
596
|
campaign?: string | undefined;
|
|
597
597
|
};
|
|
598
598
|
}, {
|
|
599
599
|
id: string;
|
|
600
600
|
data: {
|
|
601
|
-
date: string | Date;
|
|
602
601
|
title: string;
|
|
603
602
|
platform: "Web Only" | "App Only" | "All";
|
|
604
|
-
isDraft: boolean;
|
|
605
|
-
seekerFriendly: boolean;
|
|
606
603
|
pages: {
|
|
607
604
|
heading: string;
|
|
608
605
|
audio?: string | undefined;
|
|
@@ -626,6 +623,9 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
626
623
|
}[] | undefined;
|
|
627
624
|
videoUrl?: string | undefined;
|
|
628
625
|
}[];
|
|
626
|
+
date?: string | Date | undefined;
|
|
627
|
+
isDraft?: boolean | undefined;
|
|
628
|
+
seekerFriendly?: boolean | undefined;
|
|
629
629
|
subtitle?: string | undefined;
|
|
630
630
|
campaign?: string | undefined;
|
|
631
631
|
};
|
|
@@ -634,11 +634,8 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
634
634
|
data: {
|
|
635
635
|
id: string;
|
|
636
636
|
data: {
|
|
637
|
-
date: string | Date;
|
|
638
637
|
title: string;
|
|
639
638
|
platform: "Web Only" | "App Only" | "All";
|
|
640
|
-
isDraft: boolean;
|
|
641
|
-
seekerFriendly: boolean;
|
|
642
639
|
pages: {
|
|
643
640
|
heading: string;
|
|
644
641
|
audio?: string | undefined;
|
|
@@ -662,6 +659,9 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
662
659
|
}[] | undefined;
|
|
663
660
|
videoUrl?: string | undefined;
|
|
664
661
|
}[];
|
|
662
|
+
date?: string | Date | undefined;
|
|
663
|
+
isDraft?: boolean | undefined;
|
|
664
|
+
seekerFriendly?: boolean | undefined;
|
|
665
665
|
subtitle?: string | undefined;
|
|
666
666
|
campaign?: string | undefined;
|
|
667
667
|
};
|
|
@@ -670,11 +670,8 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
670
670
|
data: {
|
|
671
671
|
id: string;
|
|
672
672
|
data: {
|
|
673
|
-
date: string | Date;
|
|
674
673
|
title: string;
|
|
675
674
|
platform: "Web Only" | "App Only" | "All";
|
|
676
|
-
isDraft: boolean;
|
|
677
|
-
seekerFriendly: boolean;
|
|
678
675
|
pages: {
|
|
679
676
|
heading: string;
|
|
680
677
|
audio?: string | undefined;
|
|
@@ -698,6 +695,9 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
698
695
|
}[] | undefined;
|
|
699
696
|
videoUrl?: string | undefined;
|
|
700
697
|
}[];
|
|
698
|
+
date?: string | Date | undefined;
|
|
699
|
+
isDraft?: boolean | undefined;
|
|
700
|
+
seekerFriendly?: boolean | undefined;
|
|
701
701
|
subtitle?: string | undefined;
|
|
702
702
|
campaign?: string | undefined;
|
|
703
703
|
};
|
|
@@ -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"]>;
|
package/dist/types/webContent.js
CHANGED
|
@@ -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.');
|