waha-shared 1.0.190 → 1.0.191
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 +33 -33
- package/dist/types/articles.js +5 -14
- package/dist/types/microLessons.d.ts +30 -15
- package/dist/types/microLessons.js +6 -14
- package/dist/types/webContent.d.ts +5 -0
- package/dist/types/webContent.js +19 -0
- package/package.json +1 -1
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
|
-
|
|
8
|
-
|
|
7
|
+
date: z.ZodUnion<[z.ZodString, z.ZodDate]>;
|
|
8
|
+
isDraft: z.ZodBoolean;
|
|
9
|
+
seekerFriendly: z.ZodBoolean;
|
|
9
10
|
platform: z.ZodEnum<["Web Only", "App Only", "All"]>;
|
|
10
11
|
audio: z.ZodOptional<z.ZodString>;
|
|
11
12
|
video: z.ZodOptional<z.ZodString>;
|
|
12
|
-
date: z.ZodUnion<[z.ZodString, z.ZodDate]>;
|
|
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
15
|
date: string | Date;
|
|
16
16
|
title: string;
|
|
17
17
|
category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
|
|
18
18
|
platform: "Web Only" | "App Only" | "All";
|
|
19
|
+
isDraft: boolean;
|
|
20
|
+
seekerFriendly: boolean;
|
|
19
21
|
audio?: string | undefined;
|
|
20
22
|
video?: string | undefined;
|
|
21
23
|
author?: string | undefined;
|
|
22
24
|
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
27
|
date: string | Date;
|
|
28
28
|
title: string;
|
|
29
29
|
category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
|
|
30
30
|
platform: "Web Only" | "App Only" | "All";
|
|
31
|
+
isDraft: boolean;
|
|
32
|
+
seekerFriendly: boolean;
|
|
31
33
|
audio?: string | undefined;
|
|
32
34
|
video?: string | undefined;
|
|
33
35
|
author?: string | undefined;
|
|
34
36
|
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
|
-
|
|
48
|
-
|
|
47
|
+
date: z.ZodUnion<[z.ZodString, z.ZodDate]>;
|
|
48
|
+
isDraft: z.ZodBoolean;
|
|
49
|
+
seekerFriendly: z.ZodBoolean;
|
|
49
50
|
platform: z.ZodEnum<["Web Only", "App Only", "All"]>;
|
|
50
51
|
audio: z.ZodOptional<z.ZodString>;
|
|
51
52
|
video: z.ZodOptional<z.ZodString>;
|
|
52
|
-
date: z.ZodUnion<[z.ZodString, z.ZodDate]>;
|
|
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
55
|
date: string | Date;
|
|
56
56
|
title: string;
|
|
57
57
|
category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
|
|
58
58
|
platform: "Web Only" | "App Only" | "All";
|
|
59
|
+
isDraft: boolean;
|
|
60
|
+
seekerFriendly: boolean;
|
|
59
61
|
audio?: string | undefined;
|
|
60
62
|
video?: string | undefined;
|
|
61
63
|
author?: string | undefined;
|
|
62
64
|
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
67
|
date: string | Date;
|
|
68
68
|
title: string;
|
|
69
69
|
category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
|
|
70
70
|
platform: "Web Only" | "App Only" | "All";
|
|
71
|
+
isDraft: boolean;
|
|
72
|
+
seekerFriendly: boolean;
|
|
71
73
|
audio?: string | undefined;
|
|
72
74
|
video?: string | undefined;
|
|
73
75
|
author?: string | undefined;
|
|
74
76
|
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;
|
|
@@ -86,12 +86,12 @@ export declare const ResponseArticleSchema: z.ZodObject<{
|
|
|
86
86
|
title: string;
|
|
87
87
|
category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
|
|
88
88
|
platform: "Web Only" | "App Only" | "All";
|
|
89
|
+
isDraft: boolean;
|
|
90
|
+
seekerFriendly: boolean;
|
|
89
91
|
audio?: string | undefined;
|
|
90
92
|
video?: string | undefined;
|
|
91
93
|
author?: string | undefined;
|
|
92
94
|
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;
|
|
@@ -103,12 +103,12 @@ export declare const ResponseArticleSchema: z.ZodObject<{
|
|
|
103
103
|
title: string;
|
|
104
104
|
category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
|
|
105
105
|
platform: "Web Only" | "App Only" | "All";
|
|
106
|
+
isDraft: boolean;
|
|
107
|
+
seekerFriendly: boolean;
|
|
106
108
|
audio?: string | undefined;
|
|
107
109
|
video?: string | undefined;
|
|
108
110
|
author?: string | undefined;
|
|
109
111
|
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
|
-
|
|
126
|
-
|
|
125
|
+
date: z.ZodUnion<[z.ZodString, z.ZodDate]>;
|
|
126
|
+
isDraft: z.ZodBoolean;
|
|
127
|
+
seekerFriendly: z.ZodBoolean;
|
|
127
128
|
platform: z.ZodEnum<["Web Only", "App Only", "All"]>;
|
|
128
129
|
audio: z.ZodOptional<z.ZodString>;
|
|
129
130
|
video: z.ZodOptional<z.ZodString>;
|
|
130
|
-
date: z.ZodUnion<[z.ZodString, z.ZodDate]>;
|
|
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
133
|
date: string | Date;
|
|
134
134
|
title: string;
|
|
135
135
|
category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
|
|
136
136
|
platform: "Web Only" | "App Only" | "All";
|
|
137
|
+
isDraft: boolean;
|
|
138
|
+
seekerFriendly: boolean;
|
|
137
139
|
audio?: string | undefined;
|
|
138
140
|
video?: string | undefined;
|
|
139
141
|
author?: string | undefined;
|
|
140
142
|
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
145
|
date: string | Date;
|
|
146
146
|
title: string;
|
|
147
147
|
category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
|
|
148
148
|
platform: "Web Only" | "App Only" | "All";
|
|
149
|
+
isDraft: boolean;
|
|
150
|
+
seekerFriendly: boolean;
|
|
149
151
|
audio?: string | undefined;
|
|
150
152
|
video?: string | undefined;
|
|
151
153
|
author?: string | undefined;
|
|
152
154
|
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;
|
|
@@ -164,12 +164,12 @@ export declare const ArticlesResponseSchema: z.ZodObject<{
|
|
|
164
164
|
title: string;
|
|
165
165
|
category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
|
|
166
166
|
platform: "Web Only" | "App Only" | "All";
|
|
167
|
+
isDraft: boolean;
|
|
168
|
+
seekerFriendly: boolean;
|
|
167
169
|
audio?: string | undefined;
|
|
168
170
|
video?: string | undefined;
|
|
169
171
|
author?: string | undefined;
|
|
170
172
|
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;
|
|
@@ -181,12 +181,12 @@ export declare const ArticlesResponseSchema: z.ZodObject<{
|
|
|
181
181
|
title: string;
|
|
182
182
|
category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
|
|
183
183
|
platform: "Web Only" | "App Only" | "All";
|
|
184
|
+
isDraft: boolean;
|
|
185
|
+
seekerFriendly: boolean;
|
|
184
186
|
audio?: string | undefined;
|
|
185
187
|
video?: string | undefined;
|
|
186
188
|
author?: string | undefined;
|
|
187
189
|
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;
|
|
@@ -200,12 +200,12 @@ export declare const ArticlesResponseSchema: z.ZodObject<{
|
|
|
200
200
|
title: string;
|
|
201
201
|
category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
|
|
202
202
|
platform: "Web Only" | "App Only" | "All";
|
|
203
|
+
isDraft: boolean;
|
|
204
|
+
seekerFriendly: boolean;
|
|
203
205
|
audio?: string | undefined;
|
|
204
206
|
video?: string | undefined;
|
|
205
207
|
author?: string | undefined;
|
|
206
208
|
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;
|
|
@@ -219,12 +219,12 @@ export declare const ArticlesResponseSchema: z.ZodObject<{
|
|
|
219
219
|
title: string;
|
|
220
220
|
category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
|
|
221
221
|
platform: "Web Only" | "App Only" | "All";
|
|
222
|
+
isDraft: boolean;
|
|
223
|
+
seekerFriendly: boolean;
|
|
222
224
|
audio?: string | undefined;
|
|
223
225
|
video?: string | undefined;
|
|
224
226
|
author?: string | undefined;
|
|
225
227
|
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;
|
package/dist/types/articles.js
CHANGED
|
@@ -5,6 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.ArticlesResponseSchema = exports.ResponseArticleSchema = exports.ArticleSchema = void 0;
|
|
7
7
|
const zod_1 = __importDefault(require("zod"));
|
|
8
|
+
const webContent_1 = require("./webContent");
|
|
8
9
|
exports.ArticleSchema = zod_1.default.object({
|
|
9
10
|
title: zod_1.default.string(),
|
|
10
11
|
author: zod_1.default.string().optional(),
|
|
@@ -17,22 +18,12 @@ exports.ArticleSchema = zod_1.default.object({
|
|
|
17
18
|
'Films',
|
|
18
19
|
]),
|
|
19
20
|
image: zod_1.default.string().optional(),
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
seekerFriendly: zod_1.default
|
|
25
|
-
.boolean()
|
|
26
|
-
.optional()
|
|
27
|
-
.describe('If this is checked the article will be marked as seeker sensitive. Seeker sensitive articles will not link back to the website.'),
|
|
28
|
-
platform: zod_1.default
|
|
29
|
-
.enum(['Web Only', 'App Only', 'All'])
|
|
30
|
-
.describe('Set to determine which platform the article is available on.'),
|
|
21
|
+
date: webContent_1.DateSchema,
|
|
22
|
+
isDraft: webContent_1.IsDraftSchema,
|
|
23
|
+
seekerFriendly: webContent_1.SeekerFriendlySchema,
|
|
24
|
+
platform: webContent_1.PlatformSchema,
|
|
31
25
|
audio: zod_1.default.string().optional(),
|
|
32
26
|
video: zod_1.default.string().optional(),
|
|
33
|
-
date: zod_1.default
|
|
34
|
-
.union([zod_1.default.string().datetime(), zod_1.default.date()])
|
|
35
|
-
.describe('The date to publish the article. Can be in the future.'),
|
|
36
27
|
impactStoryRegion: zod_1.default
|
|
37
28
|
.enum([
|
|
38
29
|
'North America',
|
|
@@ -2,7 +2,8 @@ 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
|
-
|
|
5
|
+
date: z.ZodUnion<[z.ZodString, z.ZodDate]>;
|
|
6
|
+
isDraft: z.ZodBoolean;
|
|
6
7
|
seekerFriendly: z.ZodBoolean;
|
|
7
8
|
platform: z.ZodEnum<["Web Only", "App Only", "All"]>;
|
|
8
9
|
campaign: z.ZodOptional<z.ZodString>;
|
|
@@ -48,8 +49,10 @@ export declare const MicroLessonSchema: z.ZodObject<{
|
|
|
48
49
|
videoUrl?: string | undefined;
|
|
49
50
|
}>, "many">;
|
|
50
51
|
}, "strip", z.ZodTypeAny, {
|
|
52
|
+
date: string | Date;
|
|
51
53
|
title: string;
|
|
52
54
|
platform: "Web Only" | "App Only" | "All";
|
|
55
|
+
isDraft: boolean;
|
|
53
56
|
seekerFriendly: boolean;
|
|
54
57
|
pages: {
|
|
55
58
|
heading: string;
|
|
@@ -64,12 +67,13 @@ export declare const MicroLessonSchema: z.ZodObject<{
|
|
|
64
67
|
}[] | undefined;
|
|
65
68
|
videoUrl?: string | undefined;
|
|
66
69
|
}[];
|
|
67
|
-
isDraft?: boolean | undefined;
|
|
68
70
|
subtitle?: string | undefined;
|
|
69
71
|
campaign?: string | undefined;
|
|
70
72
|
}, {
|
|
73
|
+
date: string | Date;
|
|
71
74
|
title: string;
|
|
72
75
|
platform: "Web Only" | "App Only" | "All";
|
|
76
|
+
isDraft: boolean;
|
|
73
77
|
seekerFriendly: boolean;
|
|
74
78
|
pages: {
|
|
75
79
|
heading: string;
|
|
@@ -84,7 +88,6 @@ export declare const MicroLessonSchema: z.ZodObject<{
|
|
|
84
88
|
}[] | undefined;
|
|
85
89
|
videoUrl?: string | undefined;
|
|
86
90
|
}[];
|
|
87
|
-
isDraft?: boolean | undefined;
|
|
88
91
|
subtitle?: string | undefined;
|
|
89
92
|
campaign?: string | undefined;
|
|
90
93
|
}>;
|
|
@@ -94,7 +97,8 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
|
|
|
94
97
|
data: z.ZodObject<{
|
|
95
98
|
title: z.ZodString;
|
|
96
99
|
subtitle: z.ZodOptional<z.ZodString>;
|
|
97
|
-
|
|
100
|
+
date: z.ZodUnion<[z.ZodString, z.ZodDate]>;
|
|
101
|
+
isDraft: z.ZodBoolean;
|
|
98
102
|
seekerFriendly: z.ZodBoolean;
|
|
99
103
|
platform: z.ZodEnum<["Web Only", "App Only", "All"]>;
|
|
100
104
|
campaign: z.ZodOptional<z.ZodString>;
|
|
@@ -140,8 +144,10 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
|
|
|
140
144
|
videoUrl?: string | undefined;
|
|
141
145
|
}>, "many">;
|
|
142
146
|
}, "strip", z.ZodTypeAny, {
|
|
147
|
+
date: string | Date;
|
|
143
148
|
title: string;
|
|
144
149
|
platform: "Web Only" | "App Only" | "All";
|
|
150
|
+
isDraft: boolean;
|
|
145
151
|
seekerFriendly: boolean;
|
|
146
152
|
pages: {
|
|
147
153
|
heading: string;
|
|
@@ -156,12 +162,13 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
|
|
|
156
162
|
}[] | undefined;
|
|
157
163
|
videoUrl?: string | undefined;
|
|
158
164
|
}[];
|
|
159
|
-
isDraft?: boolean | undefined;
|
|
160
165
|
subtitle?: string | undefined;
|
|
161
166
|
campaign?: string | undefined;
|
|
162
167
|
}, {
|
|
168
|
+
date: string | Date;
|
|
163
169
|
title: string;
|
|
164
170
|
platform: "Web Only" | "App Only" | "All";
|
|
171
|
+
isDraft: boolean;
|
|
165
172
|
seekerFriendly: boolean;
|
|
166
173
|
pages: {
|
|
167
174
|
heading: string;
|
|
@@ -176,15 +183,16 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
|
|
|
176
183
|
}[] | undefined;
|
|
177
184
|
videoUrl?: string | undefined;
|
|
178
185
|
}[];
|
|
179
|
-
isDraft?: boolean | undefined;
|
|
180
186
|
subtitle?: string | undefined;
|
|
181
187
|
campaign?: string | undefined;
|
|
182
188
|
}>;
|
|
183
189
|
}, "strip", z.ZodTypeAny, {
|
|
184
190
|
id: string;
|
|
185
191
|
data: {
|
|
192
|
+
date: string | Date;
|
|
186
193
|
title: string;
|
|
187
194
|
platform: "Web Only" | "App Only" | "All";
|
|
195
|
+
isDraft: boolean;
|
|
188
196
|
seekerFriendly: boolean;
|
|
189
197
|
pages: {
|
|
190
198
|
heading: string;
|
|
@@ -199,15 +207,16 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
|
|
|
199
207
|
}[] | undefined;
|
|
200
208
|
videoUrl?: string | undefined;
|
|
201
209
|
}[];
|
|
202
|
-
isDraft?: boolean | undefined;
|
|
203
210
|
subtitle?: string | undefined;
|
|
204
211
|
campaign?: string | undefined;
|
|
205
212
|
};
|
|
206
213
|
}, {
|
|
207
214
|
id: string;
|
|
208
215
|
data: {
|
|
216
|
+
date: string | Date;
|
|
209
217
|
title: string;
|
|
210
218
|
platform: "Web Only" | "App Only" | "All";
|
|
219
|
+
isDraft: boolean;
|
|
211
220
|
seekerFriendly: boolean;
|
|
212
221
|
pages: {
|
|
213
222
|
heading: string;
|
|
@@ -222,7 +231,6 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
|
|
|
222
231
|
}[] | undefined;
|
|
223
232
|
videoUrl?: string | undefined;
|
|
224
233
|
}[];
|
|
225
|
-
isDraft?: boolean | undefined;
|
|
226
234
|
subtitle?: string | undefined;
|
|
227
235
|
campaign?: string | undefined;
|
|
228
236
|
};
|
|
@@ -234,7 +242,8 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
234
242
|
data: z.ZodObject<{
|
|
235
243
|
title: z.ZodString;
|
|
236
244
|
subtitle: z.ZodOptional<z.ZodString>;
|
|
237
|
-
|
|
245
|
+
date: z.ZodUnion<[z.ZodString, z.ZodDate]>;
|
|
246
|
+
isDraft: z.ZodBoolean;
|
|
238
247
|
seekerFriendly: z.ZodBoolean;
|
|
239
248
|
platform: z.ZodEnum<["Web Only", "App Only", "All"]>;
|
|
240
249
|
campaign: z.ZodOptional<z.ZodString>;
|
|
@@ -280,8 +289,10 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
280
289
|
videoUrl?: string | undefined;
|
|
281
290
|
}>, "many">;
|
|
282
291
|
}, "strip", z.ZodTypeAny, {
|
|
292
|
+
date: string | Date;
|
|
283
293
|
title: string;
|
|
284
294
|
platform: "Web Only" | "App Only" | "All";
|
|
295
|
+
isDraft: boolean;
|
|
285
296
|
seekerFriendly: boolean;
|
|
286
297
|
pages: {
|
|
287
298
|
heading: string;
|
|
@@ -296,12 +307,13 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
296
307
|
}[] | undefined;
|
|
297
308
|
videoUrl?: string | undefined;
|
|
298
309
|
}[];
|
|
299
|
-
isDraft?: boolean | undefined;
|
|
300
310
|
subtitle?: string | undefined;
|
|
301
311
|
campaign?: string | undefined;
|
|
302
312
|
}, {
|
|
313
|
+
date: string | Date;
|
|
303
314
|
title: string;
|
|
304
315
|
platform: "Web Only" | "App Only" | "All";
|
|
316
|
+
isDraft: boolean;
|
|
305
317
|
seekerFriendly: boolean;
|
|
306
318
|
pages: {
|
|
307
319
|
heading: string;
|
|
@@ -316,15 +328,16 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
316
328
|
}[] | undefined;
|
|
317
329
|
videoUrl?: string | undefined;
|
|
318
330
|
}[];
|
|
319
|
-
isDraft?: boolean | undefined;
|
|
320
331
|
subtitle?: string | undefined;
|
|
321
332
|
campaign?: string | undefined;
|
|
322
333
|
}>;
|
|
323
334
|
}, "strip", z.ZodTypeAny, {
|
|
324
335
|
id: string;
|
|
325
336
|
data: {
|
|
337
|
+
date: string | Date;
|
|
326
338
|
title: string;
|
|
327
339
|
platform: "Web Only" | "App Only" | "All";
|
|
340
|
+
isDraft: boolean;
|
|
328
341
|
seekerFriendly: boolean;
|
|
329
342
|
pages: {
|
|
330
343
|
heading: string;
|
|
@@ -339,15 +352,16 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
339
352
|
}[] | undefined;
|
|
340
353
|
videoUrl?: string | undefined;
|
|
341
354
|
}[];
|
|
342
|
-
isDraft?: boolean | undefined;
|
|
343
355
|
subtitle?: string | undefined;
|
|
344
356
|
campaign?: string | undefined;
|
|
345
357
|
};
|
|
346
358
|
}, {
|
|
347
359
|
id: string;
|
|
348
360
|
data: {
|
|
361
|
+
date: string | Date;
|
|
349
362
|
title: string;
|
|
350
363
|
platform: "Web Only" | "App Only" | "All";
|
|
364
|
+
isDraft: boolean;
|
|
351
365
|
seekerFriendly: boolean;
|
|
352
366
|
pages: {
|
|
353
367
|
heading: string;
|
|
@@ -362,7 +376,6 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
362
376
|
}[] | undefined;
|
|
363
377
|
videoUrl?: string | undefined;
|
|
364
378
|
}[];
|
|
365
|
-
isDraft?: boolean | undefined;
|
|
366
379
|
subtitle?: string | undefined;
|
|
367
380
|
campaign?: string | undefined;
|
|
368
381
|
};
|
|
@@ -371,8 +384,10 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
371
384
|
data: {
|
|
372
385
|
id: string;
|
|
373
386
|
data: {
|
|
387
|
+
date: string | Date;
|
|
374
388
|
title: string;
|
|
375
389
|
platform: "Web Only" | "App Only" | "All";
|
|
390
|
+
isDraft: boolean;
|
|
376
391
|
seekerFriendly: boolean;
|
|
377
392
|
pages: {
|
|
378
393
|
heading: string;
|
|
@@ -387,7 +402,6 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
387
402
|
}[] | undefined;
|
|
388
403
|
videoUrl?: string | undefined;
|
|
389
404
|
}[];
|
|
390
|
-
isDraft?: boolean | undefined;
|
|
391
405
|
subtitle?: string | undefined;
|
|
392
406
|
campaign?: string | undefined;
|
|
393
407
|
};
|
|
@@ -396,8 +410,10 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
396
410
|
data: {
|
|
397
411
|
id: string;
|
|
398
412
|
data: {
|
|
413
|
+
date: string | Date;
|
|
399
414
|
title: string;
|
|
400
415
|
platform: "Web Only" | "App Only" | "All";
|
|
416
|
+
isDraft: boolean;
|
|
401
417
|
seekerFriendly: boolean;
|
|
402
418
|
pages: {
|
|
403
419
|
heading: string;
|
|
@@ -412,7 +428,6 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
412
428
|
}[] | undefined;
|
|
413
429
|
videoUrl?: string | undefined;
|
|
414
430
|
}[];
|
|
415
|
-
isDraft?: boolean | undefined;
|
|
416
431
|
subtitle?: string | undefined;
|
|
417
432
|
campaign?: string | undefined;
|
|
418
433
|
};
|
|
@@ -5,19 +5,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.MicroLessonsResponse = exports.ResponseMicroLessonSchema = exports.MicroLessonSchema = void 0;
|
|
7
7
|
const zod_1 = __importDefault(require("zod"));
|
|
8
|
+
const webContent_1 = require("./webContent");
|
|
8
9
|
exports.MicroLessonSchema = zod_1.default.object({
|
|
9
10
|
title: zod_1.default.string(),
|
|
10
11
|
subtitle: zod_1.default.string().optional(),
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
seekerFriendly: zod_1.default
|
|
16
|
-
.boolean()
|
|
17
|
-
.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
|
-
platform: zod_1.default
|
|
19
|
-
.enum(['Web Only', 'App Only', 'All'])
|
|
20
|
-
.describe('Set to determine which platform the micro lesson is available on.'),
|
|
12
|
+
date: webContent_1.DateSchema,
|
|
13
|
+
isDraft: webContent_1.IsDraftSchema,
|
|
14
|
+
seekerFriendly: webContent_1.SeekerFriendlySchema,
|
|
15
|
+
platform: webContent_1.PlatformSchema,
|
|
21
16
|
campaign: zod_1.default
|
|
22
17
|
.string()
|
|
23
18
|
.optional()
|
|
@@ -34,10 +29,7 @@ exports.MicroLessonSchema = zod_1.default.object({
|
|
|
34
29
|
.describe('The placeholder text for the text input field.'),
|
|
35
30
|
radioButtons: zod_1.default.array(zod_1.default.object({ text: zod_1.default.string() })).optional(),
|
|
36
31
|
videoUrl: zod_1.default.string().optional(),
|
|
37
|
-
platform:
|
|
38
|
-
.enum(['Web Only', 'App Only', 'All'])
|
|
39
|
-
.optional()
|
|
40
|
-
.describe('Set to determine which platform the page is available on.'),
|
|
32
|
+
platform: webContent_1.PlatformSchema.optional(),
|
|
41
33
|
})),
|
|
42
34
|
});
|
|
43
35
|
exports.ResponseMicroLessonSchema = zod_1.default.object({
|
|
@@ -0,0 +1,5 @@
|
|
|
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;
|
|
5
|
+
export declare const PlatformSchema: z.ZodEnum<["Web Only", "App Only", "All"]>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.PlatformSchema = exports.SeekerFriendlySchema = exports.IsDraftSchema = exports.DateSchema = void 0;
|
|
7
|
+
const zod_1 = __importDefault(require("zod"));
|
|
8
|
+
exports.DateSchema = zod_1.default
|
|
9
|
+
.union([zod_1.default.string().datetime(), zod_1.default.date()])
|
|
10
|
+
.describe('The date to publish the content. Can be in the future.');
|
|
11
|
+
exports.IsDraftSchema = zod_1.default
|
|
12
|
+
.boolean()
|
|
13
|
+
.describe('If this is checked the content will be marked as a draft and only available on the test website.');
|
|
14
|
+
exports.SeekerFriendlySchema = zod_1.default
|
|
15
|
+
.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.');
|
|
17
|
+
exports.PlatformSchema = zod_1.default
|
|
18
|
+
.enum(['Web Only', 'App Only', 'All'])
|
|
19
|
+
.describe('Set to determine which platform the content is available on.');
|