waha-shared 1.0.262 → 1.0.264
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/README.md +60 -3
- package/dist/data/areas/areas.schema.json +4 -13
- package/dist/data/areas/index.js +1 -0
- package/dist/data/aslTimestamps/aslTimestamps.schema.json +6 -22
- package/dist/data/aslTimestamps/index.js +1 -0
- package/dist/data/bibleAudios/bibleAudios.schema.json +8 -27
- package/dist/data/bibleAudios/index.js +1 -0
- package/dist/data/bibleBooks/bibleBooks.schema.json +8 -24
- package/dist/data/bibleBooks/index.js +1 -0
- package/dist/data/bibleChaptersList/bibleChaptersList.schema.json +3 -7
- package/dist/data/bibleChaptersList/index.js +1 -0
- package/dist/data/bibleStatuses/bibleStatuses.schema.json +7 -23
- package/dist/data/bibleStatuses/index.js +1 -0
- package/dist/data/bibleTexts/bibleTexts.schema.json +7 -22
- package/dist/data/bibleTexts/index.js +1 -0
- package/dist/data/clones/clones.schema.json +8 -26
- package/dist/data/clones/index.js +1 -0
- package/dist/data/countries/countries.schema.json +8 -28
- package/dist/data/countries/index.js +1 -0
- package/dist/data/countriesAndLanguages/countriesAndLanguages.schema.json +5 -17
- package/dist/data/countriesAndLanguages/index.js +1 -0
- package/dist/data/crowdinLanguages/crowdinLanguages.schema.json +5 -18
- package/dist/data/crowdinLanguages/index.js +1 -0
- package/dist/data/curriculumFoundations/curriculumFoundations.schema.json +7 -21
- package/dist/data/curriculumFoundations/index.js +1 -0
- package/dist/data/curriculumQuestions/curriculumQuestions.schema.json +9 -28
- package/dist/data/curriculumQuestions/index.js +1 -0
- package/dist/data/curriculumTopics/curriculumTopics.schema.json +7 -21
- package/dist/data/curriculumTopics/index.js +1 -0
- package/dist/data/iosVoiceOverLanguages/index.js +1 -0
- package/dist/data/iosVoiceOverLanguages/iosVoiceOverLanguages.schema.json +3 -7
- package/dist/data/iso6933LanguageCodes/index.js +1 -0
- package/dist/data/iso6933LanguageCodes/iso6933LanguageCodes.schema.json +4 -10
- package/dist/data/languageAssets/index.js +1 -0
- package/dist/data/languageAssets/languageAssets.schema.json +5 -14
- package/dist/data/languages/index.js +1 -0
- package/dist/data/languages/languages.json +0 -1
- package/dist/data/languages/languages.schema.json +18 -76
- package/dist/data/mediaDurations/index.js +1 -0
- package/dist/data/mediaDurations/mediaDurations.schema.json +5 -14
- package/dist/data/notification/index.js +1 -0
- package/dist/data/notification/notification.schema.json +20 -71
- package/dist/data/numeralMaps/index.js +1 -0
- package/dist/data/numeralMaps/numeralMaps.schema.json +5 -22
- package/dist/data/phoneLanguages/index.js +1 -0
- package/dist/data/phoneLanguages/phoneLanguages.schema.json +5 -16
- package/dist/data/questions/index.js +1 -0
- package/dist/data/questions/questions.schema.json +7 -24
- package/dist/data/releaseNotes/index.js +1 -0
- package/dist/data/releaseNotes/releaseNotes.schema.json +6 -18
- package/dist/data/screenshots/index.js +1 -0
- package/dist/data/screenshots/screenshots.schema.json +4 -10
- package/dist/data/scripts/index.js +1 -0
- package/dist/data/scripts/scripts.schema.json +7 -20
- package/dist/data/sets/index.js +1 -0
- package/dist/data/sets/sets.schema.json +8 -30
- package/dist/data/specialIds/index.js +1 -0
- package/dist/data/specialIds/specialIds.schema.json +6 -19
- package/dist/data/translationsApp/index.d.ts +10 -11
- package/dist/data/translationsApp/index.js +1 -0
- package/dist/data/translationsApp/translationsApp.json +11676 -7
- package/dist/data/translationsApp/translationsApp.schema.json +313 -1086
- package/dist/data/translationsApp/translationsApp.zod.d.ts +10 -11
- package/dist/data/translationsApp/translationsApp.zod.js +11 -11
- package/dist/data/translationsFtb/index.js +1 -0
- package/dist/data/translationsFtb/translationsFtb.schema.json +70 -274
- package/dist/data/translationsIntroduction/index.js +1 -0
- package/dist/data/translationsIntroduction/translationsIntroduction.schema.json +43 -165
- package/dist/data/translationsQuestion/index.js +1 -0
- package/dist/data/translationsQuestion/translationsQuestion.schema.json +5 -13
- package/dist/data/translationsSet/index.js +1 -0
- package/dist/data/translationsSet/translationsSet.json +789 -0
- package/dist/data/translationsSet/translationsSet.schema.json +11 -36
- package/dist/data/translationsSolarSpeaker/index.js +1 -0
- package/dist/data/translationsSolarSpeaker/translationsSolarSpeaker.schema.json +46 -178
- package/dist/data/translationsSpokenQuestion/index.js +1 -0
- package/dist/data/translationsSpokenQuestion/translationsSpokenQuestion.schema.json +5 -13
- package/dist/data/youtubePlaylists/index.js +1 -0
- package/dist/data/youtubePlaylists/youtubePlaylists.schema.json +4 -10
- package/dist/data/youtubeVideos/index.js +1 -0
- package/dist/data/youtubeVideos/youtubeVideos.schema.json +4 -10
- package/dist/types/analytics.d.ts +26 -12
- package/dist/types/articles.d.ts +28 -0
- package/dist/types/articles.js +5 -9
- package/dist/types/microLessons.d.ts +60 -9
- package/dist/types/microLessons.js +23 -19
- package/dist/types/webContent.d.ts +16 -0
- package/dist/types/webContent.js +20 -1
- package/package.json +1 -1
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
import z from 'zod/v4';
|
|
2
|
+
export declare const MicroLessonRadioButtonSchema: z.ZodObject<{
|
|
3
|
+
heading: z.ZodOptional<z.ZodString>;
|
|
4
|
+
body: z.ZodOptional<z.ZodString>;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export type MicroLessonRadioButton = z.infer<typeof MicroLessonRadioButtonSchema>;
|
|
7
|
+
export declare const MicroLessonCtaButtonSchema: z.ZodObject<{
|
|
8
|
+
show: z.ZodBoolean;
|
|
9
|
+
label: z.ZodString;
|
|
10
|
+
href: z.ZodString;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export type MicroLessonCtaButton = z.infer<typeof MicroLessonCtaButtonSchema>;
|
|
2
13
|
export declare const MicroLessonSchema: z.ZodObject<{
|
|
3
14
|
title: z.ZodString;
|
|
4
15
|
subtitle: z.ZodOptional<z.ZodString>;
|
|
@@ -13,7 +24,19 @@ export declare const MicroLessonSchema: z.ZodObject<{
|
|
|
13
24
|
image: z.ZodOptional<z.ZodString>;
|
|
14
25
|
category: z.ZodEnum<{
|
|
15
26
|
"Case Studies": "Case Studies";
|
|
27
|
+
"Discovering God": "Discovering God";
|
|
28
|
+
"Disciple Making Secrets": "Disciple Making Secrets";
|
|
29
|
+
"Product Updates": "Product Updates";
|
|
30
|
+
Books: "Books";
|
|
31
|
+
Films: "Films";
|
|
16
32
|
"How Tos": "How Tos";
|
|
33
|
+
"Mengenali Tuhan": "Mengenali Tuhan";
|
|
34
|
+
"\u00D6rnek Olay \u00C7al\u0131\u015Fmalar\u0131": "Örnek Olay Çalışmaları";
|
|
35
|
+
"\u00D6\u011Frenci Yeti\u015Ftirme S\u0131rlar\u0131": "Öğrenci Yetiştirme Sırları";
|
|
36
|
+
"Tanr\u0131'y\u0131 Ke\u015Ffetmek": "Tanrı'yı Keşfetmek";
|
|
37
|
+
"Historias de la vida real": "Historias de la vida real";
|
|
38
|
+
"Secretos para hacer disc\u00EDpulos": "Secretos para hacer discípulos";
|
|
39
|
+
"Descubriendo a Dios": "Descubriendo a Dios";
|
|
17
40
|
}>;
|
|
18
41
|
campaign: z.ZodOptional<z.ZodString>;
|
|
19
42
|
pages: z.ZodArray<z.ZodObject<{
|
|
@@ -52,9 +75,9 @@ export declare const MicroLessonSchema: z.ZodObject<{
|
|
|
52
75
|
All: "All";
|
|
53
76
|
}>>;
|
|
54
77
|
notification: z.ZodOptional<z.ZodObject<{
|
|
55
|
-
title: z.ZodString
|
|
56
|
-
body: z.ZodString
|
|
57
|
-
delayInHours: z.ZodNumber
|
|
78
|
+
title: z.ZodOptional<z.ZodString>;
|
|
79
|
+
body: z.ZodOptional<z.ZodString>;
|
|
80
|
+
delayInHours: z.ZodOptional<z.ZodNumber>;
|
|
58
81
|
}, z.core.$strip>>;
|
|
59
82
|
}, z.core.$strip>>;
|
|
60
83
|
}, z.core.$strip>;
|
|
@@ -75,7 +98,19 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
|
|
|
75
98
|
image: z.ZodOptional<z.ZodString>;
|
|
76
99
|
category: z.ZodEnum<{
|
|
77
100
|
"Case Studies": "Case Studies";
|
|
101
|
+
"Discovering God": "Discovering God";
|
|
102
|
+
"Disciple Making Secrets": "Disciple Making Secrets";
|
|
103
|
+
"Product Updates": "Product Updates";
|
|
104
|
+
Books: "Books";
|
|
105
|
+
Films: "Films";
|
|
78
106
|
"How Tos": "How Tos";
|
|
107
|
+
"Mengenali Tuhan": "Mengenali Tuhan";
|
|
108
|
+
"\u00D6rnek Olay \u00C7al\u0131\u015Fmalar\u0131": "Örnek Olay Çalışmaları";
|
|
109
|
+
"\u00D6\u011Frenci Yeti\u015Ftirme S\u0131rlar\u0131": "Öğrenci Yetiştirme Sırları";
|
|
110
|
+
"Tanr\u0131'y\u0131 Ke\u015Ffetmek": "Tanrı'yı Keşfetmek";
|
|
111
|
+
"Historias de la vida real": "Historias de la vida real";
|
|
112
|
+
"Secretos para hacer disc\u00EDpulos": "Secretos para hacer discípulos";
|
|
113
|
+
"Descubriendo a Dios": "Descubriendo a Dios";
|
|
79
114
|
}>;
|
|
80
115
|
campaign: z.ZodOptional<z.ZodString>;
|
|
81
116
|
pages: z.ZodArray<z.ZodObject<{
|
|
@@ -114,9 +149,9 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
|
|
|
114
149
|
All: "All";
|
|
115
150
|
}>>;
|
|
116
151
|
notification: z.ZodOptional<z.ZodObject<{
|
|
117
|
-
title: z.ZodString
|
|
118
|
-
body: z.ZodString
|
|
119
|
-
delayInHours: z.ZodNumber
|
|
152
|
+
title: z.ZodOptional<z.ZodString>;
|
|
153
|
+
body: z.ZodOptional<z.ZodString>;
|
|
154
|
+
delayInHours: z.ZodOptional<z.ZodNumber>;
|
|
120
155
|
}, z.core.$strip>>;
|
|
121
156
|
}, z.core.$strip>>;
|
|
122
157
|
}, z.core.$strip>;
|
|
@@ -139,7 +174,19 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
139
174
|
image: z.ZodOptional<z.ZodString>;
|
|
140
175
|
category: z.ZodEnum<{
|
|
141
176
|
"Case Studies": "Case Studies";
|
|
177
|
+
"Discovering God": "Discovering God";
|
|
178
|
+
"Disciple Making Secrets": "Disciple Making Secrets";
|
|
179
|
+
"Product Updates": "Product Updates";
|
|
180
|
+
Books: "Books";
|
|
181
|
+
Films: "Films";
|
|
142
182
|
"How Tos": "How Tos";
|
|
183
|
+
"Mengenali Tuhan": "Mengenali Tuhan";
|
|
184
|
+
"\u00D6rnek Olay \u00C7al\u0131\u015Fmalar\u0131": "Örnek Olay Çalışmaları";
|
|
185
|
+
"\u00D6\u011Frenci Yeti\u015Ftirme S\u0131rlar\u0131": "Öğrenci Yetiştirme Sırları";
|
|
186
|
+
"Tanr\u0131'y\u0131 Ke\u015Ffetmek": "Tanrı'yı Keşfetmek";
|
|
187
|
+
"Historias de la vida real": "Historias de la vida real";
|
|
188
|
+
"Secretos para hacer disc\u00EDpulos": "Secretos para hacer discípulos";
|
|
189
|
+
"Descubriendo a Dios": "Descubriendo a Dios";
|
|
143
190
|
}>;
|
|
144
191
|
campaign: z.ZodOptional<z.ZodString>;
|
|
145
192
|
pages: z.ZodArray<z.ZodObject<{
|
|
@@ -178,9 +225,9 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
178
225
|
All: "All";
|
|
179
226
|
}>>;
|
|
180
227
|
notification: z.ZodOptional<z.ZodObject<{
|
|
181
|
-
title: z.ZodString
|
|
182
|
-
body: z.ZodString
|
|
183
|
-
delayInHours: z.ZodNumber
|
|
228
|
+
title: z.ZodOptional<z.ZodString>;
|
|
229
|
+
body: z.ZodOptional<z.ZodString>;
|
|
230
|
+
delayInHours: z.ZodOptional<z.ZodNumber>;
|
|
184
231
|
}, z.core.$strip>>;
|
|
185
232
|
}, z.core.$strip>>;
|
|
186
233
|
}, z.core.$strip>;
|
|
@@ -204,3 +251,7 @@ export declare const MicroLessonSubmissionSchema: z.ZodObject<{
|
|
|
204
251
|
}>;
|
|
205
252
|
}, z.core.$strip>;
|
|
206
253
|
export type MicroLessonSubmission = z.infer<typeof MicroLessonSubmissionSchema>;
|
|
254
|
+
export declare const MicroLessonLanguagesResponseSchema: z.ZodObject<{
|
|
255
|
+
data: z.ZodArray<z.ZodString>;
|
|
256
|
+
}, z.core.$strip>;
|
|
257
|
+
export type MicroLessonCategory = z.infer<typeof MicroLessonSchema>['category'];
|
|
@@ -3,10 +3,19 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.MicroLessonSubmissionSchema = exports.MicroLessonsResponse = exports.ResponseMicroLessonSchema = exports.MicroLessonSchema = void 0;
|
|
6
|
+
exports.MicroLessonLanguagesResponseSchema = exports.MicroLessonSubmissionSchema = exports.MicroLessonsResponse = exports.ResponseMicroLessonSchema = exports.MicroLessonSchema = exports.MicroLessonCtaButtonSchema = exports.MicroLessonRadioButtonSchema = void 0;
|
|
7
7
|
const v4_1 = __importDefault(require("zod/v4"));
|
|
8
8
|
const users_1 = require("./users");
|
|
9
9
|
const webContent_1 = require("./webContent");
|
|
10
|
+
exports.MicroLessonRadioButtonSchema = v4_1.default.object({
|
|
11
|
+
heading: v4_1.default.string().optional(),
|
|
12
|
+
body: v4_1.default.string().optional(),
|
|
13
|
+
});
|
|
14
|
+
exports.MicroLessonCtaButtonSchema = v4_1.default.object({
|
|
15
|
+
show: v4_1.default.boolean(),
|
|
16
|
+
label: v4_1.default.string(),
|
|
17
|
+
href: v4_1.default.string(),
|
|
18
|
+
});
|
|
10
19
|
exports.MicroLessonSchema = v4_1.default.object({
|
|
11
20
|
title: v4_1.default.string(),
|
|
12
21
|
subtitle: v4_1.default.string().optional(),
|
|
@@ -15,12 +24,13 @@ exports.MicroLessonSchema = v4_1.default.object({
|
|
|
15
24
|
seekerFriendly: webContent_1.SeekerFriendlySchema,
|
|
16
25
|
platform: webContent_1.PlatformSchema,
|
|
17
26
|
image: v4_1.default.string().optional(),
|
|
18
|
-
category:
|
|
27
|
+
category: webContent_1.CategorySchema,
|
|
19
28
|
campaign: v4_1.default
|
|
20
29
|
.string()
|
|
21
30
|
.optional()
|
|
22
31
|
.describe('Optional campaign identifier for tracking purposes.'),
|
|
23
|
-
pages: v4_1.default.array(v4_1.default
|
|
32
|
+
pages: v4_1.default.array(v4_1.default
|
|
33
|
+
.object({
|
|
24
34
|
heading: v4_1.default.string().describe('The heading of the page'),
|
|
25
35
|
body: v4_1.default.string().optional(),
|
|
26
36
|
icon: v4_1.default.string().optional(),
|
|
@@ -35,31 +45,22 @@ exports.MicroLessonSchema = v4_1.default.object({
|
|
|
35
45
|
prefilledText: v4_1.default.string().optional(),
|
|
36
46
|
})
|
|
37
47
|
.optional(),
|
|
38
|
-
ctaButton:
|
|
39
|
-
|
|
40
|
-
show: v4_1.default.boolean(),
|
|
41
|
-
label: v4_1.default.string(),
|
|
42
|
-
href: v4_1.default.string(),
|
|
43
|
-
})
|
|
44
|
-
.optional(),
|
|
45
|
-
radioButtons: v4_1.default
|
|
46
|
-
.array(v4_1.default.object({
|
|
47
|
-
heading: v4_1.default.string().optional(),
|
|
48
|
-
body: v4_1.default.string().optional(),
|
|
49
|
-
}))
|
|
50
|
-
.optional(),
|
|
48
|
+
ctaButton: exports.MicroLessonCtaButtonSchema.optional(),
|
|
49
|
+
radioButtons: v4_1.default.array(exports.MicroLessonRadioButtonSchema).optional(),
|
|
51
50
|
platform: webContent_1.PlatformSchema.optional(),
|
|
52
51
|
notification: v4_1.default
|
|
53
52
|
.object({
|
|
54
|
-
title: v4_1.default.string(),
|
|
55
|
-
body: v4_1.default.string(),
|
|
53
|
+
title: v4_1.default.string().optional(),
|
|
54
|
+
body: v4_1.default.string().optional(),
|
|
56
55
|
delayInHours: v4_1.default
|
|
57
56
|
.number()
|
|
57
|
+
.optional()
|
|
58
58
|
.describe('The delay in hours before the notification is sent.'),
|
|
59
59
|
})
|
|
60
60
|
.optional()
|
|
61
61
|
.describe('Optional notification to send after the lesson is completed.'),
|
|
62
|
-
})
|
|
62
|
+
})
|
|
63
|
+
.describe('The pages of the micro lesson. The last page is always considered the completion page and often contains a CTA button.')),
|
|
63
64
|
});
|
|
64
65
|
exports.ResponseMicroLessonSchema = v4_1.default.object({
|
|
65
66
|
id: v4_1.default.string(),
|
|
@@ -78,3 +79,6 @@ exports.MicroLessonSubmissionSchema = users_1.WahaUserLocationSchema.extend({
|
|
|
78
79
|
timeSubmitted: v4_1.default.number(),
|
|
79
80
|
platform: v4_1.default.enum(['ios', 'android', 'web']),
|
|
80
81
|
});
|
|
82
|
+
exports.MicroLessonLanguagesResponseSchema = v4_1.default.object({
|
|
83
|
+
data: v4_1.default.array(v4_1.default.string()),
|
|
84
|
+
});
|
|
@@ -17,3 +17,19 @@ export declare const VideoSchema: z.ZodOptional<z.ZodObject<{
|
|
|
17
17
|
loop: z.ZodOptional<z.ZodBoolean>;
|
|
18
18
|
disableControls: z.ZodOptional<z.ZodBoolean>;
|
|
19
19
|
}, z.core.$strip>>;
|
|
20
|
+
export declare const CategorySchema: z.ZodEnum<{
|
|
21
|
+
"Case Studies": "Case Studies";
|
|
22
|
+
"Discovering God": "Discovering God";
|
|
23
|
+
"Disciple Making Secrets": "Disciple Making Secrets";
|
|
24
|
+
"Product Updates": "Product Updates";
|
|
25
|
+
Books: "Books";
|
|
26
|
+
Films: "Films";
|
|
27
|
+
"How Tos": "How Tos";
|
|
28
|
+
"Mengenali Tuhan": "Mengenali Tuhan";
|
|
29
|
+
"\u00D6rnek Olay \u00C7al\u0131\u015Fmalar\u0131": "Örnek Olay Çalışmaları";
|
|
30
|
+
"\u00D6\u011Frenci Yeti\u015Ftirme S\u0131rlar\u0131": "Öğrenci Yetiştirme Sırları";
|
|
31
|
+
"Tanr\u0131'y\u0131 Ke\u015Ffetmek": "Tanrı'yı Keşfetmek";
|
|
32
|
+
"Historias de la vida real": "Historias de la vida real";
|
|
33
|
+
"Secretos para hacer disc\u00EDpulos": "Secretos para hacer discípulos";
|
|
34
|
+
"Descubriendo a Dios": "Descubriendo a Dios";
|
|
35
|
+
}>;
|
package/dist/types/webContent.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.VideoSchema = exports.AudioSchema = exports.PlatformSchema = exports.SeekerFriendlySchema = exports.IsDraftSchema = exports.DateSchema = void 0;
|
|
6
|
+
exports.CategorySchema = exports.VideoSchema = exports.AudioSchema = exports.PlatformSchema = exports.SeekerFriendlySchema = exports.IsDraftSchema = exports.DateSchema = void 0;
|
|
7
7
|
const zod_1 = __importDefault(require("zod"));
|
|
8
8
|
exports.DateSchema = zod_1.default.coerce
|
|
9
9
|
.date()
|
|
@@ -33,3 +33,22 @@ exports.VideoSchema = zod_1.default
|
|
|
33
33
|
disableControls: zod_1.default.boolean().optional(),
|
|
34
34
|
})
|
|
35
35
|
.optional();
|
|
36
|
+
exports.CategorySchema = zod_1.default.enum([
|
|
37
|
+
'Case Studies',
|
|
38
|
+
'Discovering God',
|
|
39
|
+
'Disciple Making Secrets',
|
|
40
|
+
'Product Updates',
|
|
41
|
+
'Books',
|
|
42
|
+
'Films',
|
|
43
|
+
'How Tos',
|
|
44
|
+
// Malay
|
|
45
|
+
'Mengenali Tuhan', // Discovering God
|
|
46
|
+
// Turkish
|
|
47
|
+
'Örnek Olay Çalışmaları', // Case Studies
|
|
48
|
+
'Öğrenci Yetiştirme Sırları', // Disciple Making Secrets
|
|
49
|
+
"Tanrı'yı Keşfetmek", // Discovering God
|
|
50
|
+
// Spanish
|
|
51
|
+
'Historias de la vida real', // Case Studies
|
|
52
|
+
'Secretos para hacer discípulos', // Disciple Making Secrets
|
|
53
|
+
'Descubriendo a Dios', // Discovering God
|
|
54
|
+
]);
|