waha-shared 1.0.190 → 1.0.192
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 +129 -15
- package/dist/types/microLessons.js +16 -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,10 +2,24 @@ 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>;
|
|
10
|
+
notification: z.ZodOptional<z.ZodObject<{
|
|
11
|
+
title: z.ZodString;
|
|
12
|
+
body: z.ZodString;
|
|
13
|
+
delayInHours: z.ZodNumber;
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
title: string;
|
|
16
|
+
body: string;
|
|
17
|
+
delayInHours: number;
|
|
18
|
+
}, {
|
|
19
|
+
title: string;
|
|
20
|
+
body: string;
|
|
21
|
+
delayInHours: number;
|
|
22
|
+
}>>;
|
|
9
23
|
pages: z.ZodArray<z.ZodObject<{
|
|
10
24
|
heading: z.ZodString;
|
|
11
25
|
body: z.ZodOptional<z.ZodString>;
|
|
@@ -48,8 +62,10 @@ export declare const MicroLessonSchema: z.ZodObject<{
|
|
|
48
62
|
videoUrl?: string | undefined;
|
|
49
63
|
}>, "many">;
|
|
50
64
|
}, "strip", z.ZodTypeAny, {
|
|
65
|
+
date: string | Date;
|
|
51
66
|
title: string;
|
|
52
67
|
platform: "Web Only" | "App Only" | "All";
|
|
68
|
+
isDraft: boolean;
|
|
53
69
|
seekerFriendly: boolean;
|
|
54
70
|
pages: {
|
|
55
71
|
heading: string;
|
|
@@ -64,12 +80,18 @@ export declare const MicroLessonSchema: z.ZodObject<{
|
|
|
64
80
|
}[] | undefined;
|
|
65
81
|
videoUrl?: string | undefined;
|
|
66
82
|
}[];
|
|
67
|
-
|
|
83
|
+
notification?: {
|
|
84
|
+
title: string;
|
|
85
|
+
body: string;
|
|
86
|
+
delayInHours: number;
|
|
87
|
+
} | undefined;
|
|
68
88
|
subtitle?: string | undefined;
|
|
69
89
|
campaign?: string | undefined;
|
|
70
90
|
}, {
|
|
91
|
+
date: string | Date;
|
|
71
92
|
title: string;
|
|
72
93
|
platform: "Web Only" | "App Only" | "All";
|
|
94
|
+
isDraft: boolean;
|
|
73
95
|
seekerFriendly: boolean;
|
|
74
96
|
pages: {
|
|
75
97
|
heading: string;
|
|
@@ -84,7 +106,11 @@ export declare const MicroLessonSchema: z.ZodObject<{
|
|
|
84
106
|
}[] | undefined;
|
|
85
107
|
videoUrl?: string | undefined;
|
|
86
108
|
}[];
|
|
87
|
-
|
|
109
|
+
notification?: {
|
|
110
|
+
title: string;
|
|
111
|
+
body: string;
|
|
112
|
+
delayInHours: number;
|
|
113
|
+
} | undefined;
|
|
88
114
|
subtitle?: string | undefined;
|
|
89
115
|
campaign?: string | undefined;
|
|
90
116
|
}>;
|
|
@@ -94,10 +120,24 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
|
|
|
94
120
|
data: z.ZodObject<{
|
|
95
121
|
title: z.ZodString;
|
|
96
122
|
subtitle: z.ZodOptional<z.ZodString>;
|
|
97
|
-
|
|
123
|
+
date: z.ZodUnion<[z.ZodString, z.ZodDate]>;
|
|
124
|
+
isDraft: z.ZodBoolean;
|
|
98
125
|
seekerFriendly: z.ZodBoolean;
|
|
99
126
|
platform: z.ZodEnum<["Web Only", "App Only", "All"]>;
|
|
100
127
|
campaign: z.ZodOptional<z.ZodString>;
|
|
128
|
+
notification: z.ZodOptional<z.ZodObject<{
|
|
129
|
+
title: z.ZodString;
|
|
130
|
+
body: z.ZodString;
|
|
131
|
+
delayInHours: z.ZodNumber;
|
|
132
|
+
}, "strip", z.ZodTypeAny, {
|
|
133
|
+
title: string;
|
|
134
|
+
body: string;
|
|
135
|
+
delayInHours: number;
|
|
136
|
+
}, {
|
|
137
|
+
title: string;
|
|
138
|
+
body: string;
|
|
139
|
+
delayInHours: number;
|
|
140
|
+
}>>;
|
|
101
141
|
pages: z.ZodArray<z.ZodObject<{
|
|
102
142
|
heading: z.ZodString;
|
|
103
143
|
body: z.ZodOptional<z.ZodString>;
|
|
@@ -140,8 +180,10 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
|
|
|
140
180
|
videoUrl?: string | undefined;
|
|
141
181
|
}>, "many">;
|
|
142
182
|
}, "strip", z.ZodTypeAny, {
|
|
183
|
+
date: string | Date;
|
|
143
184
|
title: string;
|
|
144
185
|
platform: "Web Only" | "App Only" | "All";
|
|
186
|
+
isDraft: boolean;
|
|
145
187
|
seekerFriendly: boolean;
|
|
146
188
|
pages: {
|
|
147
189
|
heading: string;
|
|
@@ -156,12 +198,18 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
|
|
|
156
198
|
}[] | undefined;
|
|
157
199
|
videoUrl?: string | undefined;
|
|
158
200
|
}[];
|
|
159
|
-
|
|
201
|
+
notification?: {
|
|
202
|
+
title: string;
|
|
203
|
+
body: string;
|
|
204
|
+
delayInHours: number;
|
|
205
|
+
} | undefined;
|
|
160
206
|
subtitle?: string | undefined;
|
|
161
207
|
campaign?: string | undefined;
|
|
162
208
|
}, {
|
|
209
|
+
date: string | Date;
|
|
163
210
|
title: string;
|
|
164
211
|
platform: "Web Only" | "App Only" | "All";
|
|
212
|
+
isDraft: boolean;
|
|
165
213
|
seekerFriendly: boolean;
|
|
166
214
|
pages: {
|
|
167
215
|
heading: string;
|
|
@@ -176,15 +224,21 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
|
|
|
176
224
|
}[] | undefined;
|
|
177
225
|
videoUrl?: string | undefined;
|
|
178
226
|
}[];
|
|
179
|
-
|
|
227
|
+
notification?: {
|
|
228
|
+
title: string;
|
|
229
|
+
body: string;
|
|
230
|
+
delayInHours: number;
|
|
231
|
+
} | undefined;
|
|
180
232
|
subtitle?: string | undefined;
|
|
181
233
|
campaign?: string | undefined;
|
|
182
234
|
}>;
|
|
183
235
|
}, "strip", z.ZodTypeAny, {
|
|
184
236
|
id: string;
|
|
185
237
|
data: {
|
|
238
|
+
date: string | Date;
|
|
186
239
|
title: string;
|
|
187
240
|
platform: "Web Only" | "App Only" | "All";
|
|
241
|
+
isDraft: boolean;
|
|
188
242
|
seekerFriendly: boolean;
|
|
189
243
|
pages: {
|
|
190
244
|
heading: string;
|
|
@@ -199,15 +253,21 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
|
|
|
199
253
|
}[] | undefined;
|
|
200
254
|
videoUrl?: string | undefined;
|
|
201
255
|
}[];
|
|
202
|
-
|
|
256
|
+
notification?: {
|
|
257
|
+
title: string;
|
|
258
|
+
body: string;
|
|
259
|
+
delayInHours: number;
|
|
260
|
+
} | undefined;
|
|
203
261
|
subtitle?: string | undefined;
|
|
204
262
|
campaign?: string | undefined;
|
|
205
263
|
};
|
|
206
264
|
}, {
|
|
207
265
|
id: string;
|
|
208
266
|
data: {
|
|
267
|
+
date: string | Date;
|
|
209
268
|
title: string;
|
|
210
269
|
platform: "Web Only" | "App Only" | "All";
|
|
270
|
+
isDraft: boolean;
|
|
211
271
|
seekerFriendly: boolean;
|
|
212
272
|
pages: {
|
|
213
273
|
heading: string;
|
|
@@ -222,7 +282,11 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
|
|
|
222
282
|
}[] | undefined;
|
|
223
283
|
videoUrl?: string | undefined;
|
|
224
284
|
}[];
|
|
225
|
-
|
|
285
|
+
notification?: {
|
|
286
|
+
title: string;
|
|
287
|
+
body: string;
|
|
288
|
+
delayInHours: number;
|
|
289
|
+
} | undefined;
|
|
226
290
|
subtitle?: string | undefined;
|
|
227
291
|
campaign?: string | undefined;
|
|
228
292
|
};
|
|
@@ -234,10 +298,24 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
234
298
|
data: z.ZodObject<{
|
|
235
299
|
title: z.ZodString;
|
|
236
300
|
subtitle: z.ZodOptional<z.ZodString>;
|
|
237
|
-
|
|
301
|
+
date: z.ZodUnion<[z.ZodString, z.ZodDate]>;
|
|
302
|
+
isDraft: z.ZodBoolean;
|
|
238
303
|
seekerFriendly: z.ZodBoolean;
|
|
239
304
|
platform: z.ZodEnum<["Web Only", "App Only", "All"]>;
|
|
240
305
|
campaign: z.ZodOptional<z.ZodString>;
|
|
306
|
+
notification: z.ZodOptional<z.ZodObject<{
|
|
307
|
+
title: z.ZodString;
|
|
308
|
+
body: z.ZodString;
|
|
309
|
+
delayInHours: z.ZodNumber;
|
|
310
|
+
}, "strip", z.ZodTypeAny, {
|
|
311
|
+
title: string;
|
|
312
|
+
body: string;
|
|
313
|
+
delayInHours: number;
|
|
314
|
+
}, {
|
|
315
|
+
title: string;
|
|
316
|
+
body: string;
|
|
317
|
+
delayInHours: number;
|
|
318
|
+
}>>;
|
|
241
319
|
pages: z.ZodArray<z.ZodObject<{
|
|
242
320
|
heading: z.ZodString;
|
|
243
321
|
body: z.ZodOptional<z.ZodString>;
|
|
@@ -280,8 +358,10 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
280
358
|
videoUrl?: string | undefined;
|
|
281
359
|
}>, "many">;
|
|
282
360
|
}, "strip", z.ZodTypeAny, {
|
|
361
|
+
date: string | Date;
|
|
283
362
|
title: string;
|
|
284
363
|
platform: "Web Only" | "App Only" | "All";
|
|
364
|
+
isDraft: boolean;
|
|
285
365
|
seekerFriendly: boolean;
|
|
286
366
|
pages: {
|
|
287
367
|
heading: string;
|
|
@@ -296,12 +376,18 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
296
376
|
}[] | undefined;
|
|
297
377
|
videoUrl?: string | undefined;
|
|
298
378
|
}[];
|
|
299
|
-
|
|
379
|
+
notification?: {
|
|
380
|
+
title: string;
|
|
381
|
+
body: string;
|
|
382
|
+
delayInHours: number;
|
|
383
|
+
} | undefined;
|
|
300
384
|
subtitle?: string | undefined;
|
|
301
385
|
campaign?: string | undefined;
|
|
302
386
|
}, {
|
|
387
|
+
date: string | Date;
|
|
303
388
|
title: string;
|
|
304
389
|
platform: "Web Only" | "App Only" | "All";
|
|
390
|
+
isDraft: boolean;
|
|
305
391
|
seekerFriendly: boolean;
|
|
306
392
|
pages: {
|
|
307
393
|
heading: string;
|
|
@@ -316,15 +402,21 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
316
402
|
}[] | undefined;
|
|
317
403
|
videoUrl?: string | undefined;
|
|
318
404
|
}[];
|
|
319
|
-
|
|
405
|
+
notification?: {
|
|
406
|
+
title: string;
|
|
407
|
+
body: string;
|
|
408
|
+
delayInHours: number;
|
|
409
|
+
} | undefined;
|
|
320
410
|
subtitle?: string | undefined;
|
|
321
411
|
campaign?: string | undefined;
|
|
322
412
|
}>;
|
|
323
413
|
}, "strip", z.ZodTypeAny, {
|
|
324
414
|
id: string;
|
|
325
415
|
data: {
|
|
416
|
+
date: string | Date;
|
|
326
417
|
title: string;
|
|
327
418
|
platform: "Web Only" | "App Only" | "All";
|
|
419
|
+
isDraft: boolean;
|
|
328
420
|
seekerFriendly: boolean;
|
|
329
421
|
pages: {
|
|
330
422
|
heading: string;
|
|
@@ -339,15 +431,21 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
339
431
|
}[] | undefined;
|
|
340
432
|
videoUrl?: string | undefined;
|
|
341
433
|
}[];
|
|
342
|
-
|
|
434
|
+
notification?: {
|
|
435
|
+
title: string;
|
|
436
|
+
body: string;
|
|
437
|
+
delayInHours: number;
|
|
438
|
+
} | undefined;
|
|
343
439
|
subtitle?: string | undefined;
|
|
344
440
|
campaign?: string | undefined;
|
|
345
441
|
};
|
|
346
442
|
}, {
|
|
347
443
|
id: string;
|
|
348
444
|
data: {
|
|
445
|
+
date: string | Date;
|
|
349
446
|
title: string;
|
|
350
447
|
platform: "Web Only" | "App Only" | "All";
|
|
448
|
+
isDraft: boolean;
|
|
351
449
|
seekerFriendly: boolean;
|
|
352
450
|
pages: {
|
|
353
451
|
heading: string;
|
|
@@ -362,7 +460,11 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
362
460
|
}[] | undefined;
|
|
363
461
|
videoUrl?: string | undefined;
|
|
364
462
|
}[];
|
|
365
|
-
|
|
463
|
+
notification?: {
|
|
464
|
+
title: string;
|
|
465
|
+
body: string;
|
|
466
|
+
delayInHours: number;
|
|
467
|
+
} | undefined;
|
|
366
468
|
subtitle?: string | undefined;
|
|
367
469
|
campaign?: string | undefined;
|
|
368
470
|
};
|
|
@@ -371,8 +473,10 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
371
473
|
data: {
|
|
372
474
|
id: string;
|
|
373
475
|
data: {
|
|
476
|
+
date: string | Date;
|
|
374
477
|
title: string;
|
|
375
478
|
platform: "Web Only" | "App Only" | "All";
|
|
479
|
+
isDraft: boolean;
|
|
376
480
|
seekerFriendly: boolean;
|
|
377
481
|
pages: {
|
|
378
482
|
heading: string;
|
|
@@ -387,7 +491,11 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
387
491
|
}[] | undefined;
|
|
388
492
|
videoUrl?: string | undefined;
|
|
389
493
|
}[];
|
|
390
|
-
|
|
494
|
+
notification?: {
|
|
495
|
+
title: string;
|
|
496
|
+
body: string;
|
|
497
|
+
delayInHours: number;
|
|
498
|
+
} | undefined;
|
|
391
499
|
subtitle?: string | undefined;
|
|
392
500
|
campaign?: string | undefined;
|
|
393
501
|
};
|
|
@@ -396,8 +504,10 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
396
504
|
data: {
|
|
397
505
|
id: string;
|
|
398
506
|
data: {
|
|
507
|
+
date: string | Date;
|
|
399
508
|
title: string;
|
|
400
509
|
platform: "Web Only" | "App Only" | "All";
|
|
510
|
+
isDraft: boolean;
|
|
401
511
|
seekerFriendly: boolean;
|
|
402
512
|
pages: {
|
|
403
513
|
heading: string;
|
|
@@ -412,7 +522,11 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
412
522
|
}[] | undefined;
|
|
413
523
|
videoUrl?: string | undefined;
|
|
414
524
|
}[];
|
|
415
|
-
|
|
525
|
+
notification?: {
|
|
526
|
+
title: string;
|
|
527
|
+
body: string;
|
|
528
|
+
delayInHours: number;
|
|
529
|
+
} | undefined;
|
|
416
530
|
subtitle?: string | undefined;
|
|
417
531
|
campaign?: string | undefined;
|
|
418
532
|
};
|
|
@@ -5,23 +5,28 @@ 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()
|
|
24
19
|
.describe('Optional campaign identifier for tracking purposes.'),
|
|
20
|
+
notification: zod_1.default
|
|
21
|
+
.object({
|
|
22
|
+
title: zod_1.default.string(),
|
|
23
|
+
body: zod_1.default.string(),
|
|
24
|
+
delayInHours: zod_1.default
|
|
25
|
+
.number()
|
|
26
|
+
.describe('The delay in hours before the notification is sent.'),
|
|
27
|
+
})
|
|
28
|
+
.optional()
|
|
29
|
+
.describe('Optional notification to send after the lesson is completed.'),
|
|
25
30
|
pages: zod_1.default.array(zod_1.default.object({
|
|
26
31
|
heading: zod_1.default.string().describe('The heading of the page'),
|
|
27
32
|
body: zod_1.default.string().optional(),
|
|
@@ -34,10 +39,7 @@ exports.MicroLessonSchema = zod_1.default.object({
|
|
|
34
39
|
.describe('The placeholder text for the text input field.'),
|
|
35
40
|
radioButtons: zod_1.default.array(zod_1.default.object({ text: zod_1.default.string() })).optional(),
|
|
36
41
|
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.'),
|
|
42
|
+
platform: webContent_1.PlatformSchema.optional(),
|
|
41
43
|
})),
|
|
42
44
|
});
|
|
43
45
|
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.');
|