waha-shared 1.0.264 → 1.0.265
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 +3 -60
- package/dist/data/areas/areas.schema.json +13 -4
- package/dist/data/areas/index.js +0 -1
- package/dist/data/aslTimestamps/aslTimestamps.schema.json +22 -6
- package/dist/data/aslTimestamps/index.js +0 -1
- package/dist/data/bibleAudios/bibleAudios.schema.json +27 -8
- package/dist/data/bibleAudios/index.js +0 -1
- package/dist/data/bibleBooks/bibleBooks.schema.json +24 -8
- package/dist/data/bibleBooks/index.js +0 -1
- package/dist/data/bibleChaptersList/bibleChaptersList.schema.json +7 -3
- package/dist/data/bibleChaptersList/index.js +0 -1
- package/dist/data/bibleStatuses/bibleStatuses.schema.json +23 -7
- package/dist/data/bibleStatuses/index.js +0 -1
- package/dist/data/bibleTexts/bibleTexts.schema.json +22 -7
- package/dist/data/bibleTexts/index.js +0 -1
- package/dist/data/clones/clones.schema.json +26 -8
- package/dist/data/clones/index.js +0 -1
- package/dist/data/countries/countries.schema.json +28 -8
- package/dist/data/countries/index.js +0 -1
- package/dist/data/countriesAndLanguages/countriesAndLanguages.schema.json +17 -5
- package/dist/data/countriesAndLanguages/index.js +0 -1
- package/dist/data/crowdinLanguages/crowdinLanguages.schema.json +18 -5
- package/dist/data/crowdinLanguages/index.js +0 -1
- package/dist/data/curriculumFoundations/curriculumFoundations.schema.json +21 -7
- package/dist/data/curriculumFoundations/index.js +0 -1
- package/dist/data/curriculumQuestions/curriculumQuestions.schema.json +28 -9
- package/dist/data/curriculumQuestions/index.js +0 -1
- package/dist/data/curriculumTopics/curriculumTopics.schema.json +21 -7
- package/dist/data/curriculumTopics/index.js +0 -1
- package/dist/data/iosVoiceOverLanguages/index.js +0 -1
- package/dist/data/iosVoiceOverLanguages/iosVoiceOverLanguages.schema.json +7 -3
- package/dist/data/iso6933LanguageCodes/index.js +0 -1
- package/dist/data/iso6933LanguageCodes/iso6933LanguageCodes.schema.json +10 -4
- package/dist/data/languageAssets/index.js +0 -1
- package/dist/data/languageAssets/languageAssets.schema.json +14 -5
- package/dist/data/languages/index.js +0 -1
- package/dist/data/languages/languages.json +1 -0
- package/dist/data/languages/languages.schema.json +76 -18
- package/dist/data/mediaDurations/index.js +0 -1
- package/dist/data/mediaDurations/mediaDurations.schema.json +14 -5
- package/dist/data/notification/index.js +0 -1
- package/dist/data/notification/notification.schema.json +71 -20
- package/dist/data/numeralMaps/index.js +0 -1
- package/dist/data/numeralMaps/numeralMaps.schema.json +22 -5
- package/dist/data/phoneLanguages/index.js +0 -1
- package/dist/data/phoneLanguages/phoneLanguages.schema.json +16 -5
- package/dist/data/questions/index.js +0 -1
- package/dist/data/questions/questions.schema.json +24 -7
- package/dist/data/releaseNotes/index.js +0 -1
- package/dist/data/releaseNotes/releaseNotes.schema.json +18 -6
- package/dist/data/screenshots/index.js +0 -1
- package/dist/data/screenshots/screenshots.schema.json +10 -4
- package/dist/data/scripts/index.js +0 -1
- package/dist/data/scripts/scripts.schema.json +20 -7
- package/dist/data/sets/index.js +0 -1
- package/dist/data/sets/sets.schema.json +30 -8
- package/dist/data/specialIds/index.js +0 -1
- package/dist/data/specialIds/specialIds.schema.json +19 -6
- package/dist/data/translationsApp/index.d.ts +11 -10
- package/dist/data/translationsApp/index.js +0 -1
- package/dist/data/translationsApp/translationsApp.json +7 -11676
- package/dist/data/translationsApp/translationsApp.schema.json +1086 -313
- package/dist/data/translationsApp/translationsApp.zod.d.ts +11 -10
- package/dist/data/translationsApp/translationsApp.zod.js +11 -11
- package/dist/data/translationsFtb/index.js +0 -1
- package/dist/data/translationsFtb/translationsFtb.schema.json +274 -70
- package/dist/data/translationsIntroduction/index.js +0 -1
- package/dist/data/translationsIntroduction/translationsIntroduction.schema.json +165 -43
- package/dist/data/translationsQuestion/index.js +0 -1
- package/dist/data/translationsQuestion/translationsQuestion.schema.json +13 -5
- package/dist/data/translationsSet/index.js +0 -1
- package/dist/data/translationsSet/translationsSet.json +0 -789
- package/dist/data/translationsSet/translationsSet.schema.json +36 -11
- package/dist/data/translationsSolarSpeaker/index.js +0 -1
- package/dist/data/translationsSolarSpeaker/translationsSolarSpeaker.schema.json +178 -46
- package/dist/data/translationsSpokenQuestion/index.js +0 -1
- package/dist/data/translationsSpokenQuestion/translationsSpokenQuestion.schema.json +13 -5
- package/dist/data/youtubePlaylists/index.js +0 -1
- package/dist/data/youtubePlaylists/youtubePlaylists.schema.json +10 -4
- package/dist/data/youtubeVideos/index.js +0 -1
- package/dist/data/youtubeVideos/youtubeVideos.schema.json +10 -4
- package/dist/types/analytics.d.ts +12 -26
- package/dist/types/articles.d.ts +0 -28
- package/dist/types/articles.js +9 -5
- package/dist/types/microLessons.d.ts +9 -60
- package/dist/types/microLessons.js +19 -23
- package/dist/types/webContent.d.ts +0 -16
- package/dist/types/webContent.js +1 -20
- package/package.json +1 -1
|
@@ -1,15 +1,4 @@
|
|
|
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>;
|
|
13
2
|
export declare const MicroLessonSchema: z.ZodObject<{
|
|
14
3
|
title: z.ZodString;
|
|
15
4
|
subtitle: z.ZodOptional<z.ZodString>;
|
|
@@ -24,19 +13,7 @@ export declare const MicroLessonSchema: z.ZodObject<{
|
|
|
24
13
|
image: z.ZodOptional<z.ZodString>;
|
|
25
14
|
category: z.ZodEnum<{
|
|
26
15
|
"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";
|
|
32
16
|
"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";
|
|
40
17
|
}>;
|
|
41
18
|
campaign: z.ZodOptional<z.ZodString>;
|
|
42
19
|
pages: z.ZodArray<z.ZodObject<{
|
|
@@ -75,9 +52,9 @@ export declare const MicroLessonSchema: z.ZodObject<{
|
|
|
75
52
|
All: "All";
|
|
76
53
|
}>>;
|
|
77
54
|
notification: z.ZodOptional<z.ZodObject<{
|
|
78
|
-
title: z.
|
|
79
|
-
body: z.
|
|
80
|
-
delayInHours: z.
|
|
55
|
+
title: z.ZodString;
|
|
56
|
+
body: z.ZodString;
|
|
57
|
+
delayInHours: z.ZodNumber;
|
|
81
58
|
}, z.core.$strip>>;
|
|
82
59
|
}, z.core.$strip>>;
|
|
83
60
|
}, z.core.$strip>;
|
|
@@ -98,19 +75,7 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
|
|
|
98
75
|
image: z.ZodOptional<z.ZodString>;
|
|
99
76
|
category: z.ZodEnum<{
|
|
100
77
|
"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";
|
|
106
78
|
"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";
|
|
114
79
|
}>;
|
|
115
80
|
campaign: z.ZodOptional<z.ZodString>;
|
|
116
81
|
pages: z.ZodArray<z.ZodObject<{
|
|
@@ -149,9 +114,9 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
|
|
|
149
114
|
All: "All";
|
|
150
115
|
}>>;
|
|
151
116
|
notification: z.ZodOptional<z.ZodObject<{
|
|
152
|
-
title: z.
|
|
153
|
-
body: z.
|
|
154
|
-
delayInHours: z.
|
|
117
|
+
title: z.ZodString;
|
|
118
|
+
body: z.ZodString;
|
|
119
|
+
delayInHours: z.ZodNumber;
|
|
155
120
|
}, z.core.$strip>>;
|
|
156
121
|
}, z.core.$strip>>;
|
|
157
122
|
}, z.core.$strip>;
|
|
@@ -174,19 +139,7 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
174
139
|
image: z.ZodOptional<z.ZodString>;
|
|
175
140
|
category: z.ZodEnum<{
|
|
176
141
|
"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";
|
|
182
142
|
"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";
|
|
190
143
|
}>;
|
|
191
144
|
campaign: z.ZodOptional<z.ZodString>;
|
|
192
145
|
pages: z.ZodArray<z.ZodObject<{
|
|
@@ -225,9 +178,9 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
225
178
|
All: "All";
|
|
226
179
|
}>>;
|
|
227
180
|
notification: z.ZodOptional<z.ZodObject<{
|
|
228
|
-
title: z.
|
|
229
|
-
body: z.
|
|
230
|
-
delayInHours: z.
|
|
181
|
+
title: z.ZodString;
|
|
182
|
+
body: z.ZodString;
|
|
183
|
+
delayInHours: z.ZodNumber;
|
|
231
184
|
}, z.core.$strip>>;
|
|
232
185
|
}, z.core.$strip>>;
|
|
233
186
|
}, z.core.$strip>;
|
|
@@ -251,7 +204,3 @@ export declare const MicroLessonSubmissionSchema: z.ZodObject<{
|
|
|
251
204
|
}>;
|
|
252
205
|
}, z.core.$strip>;
|
|
253
206
|
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,19 +3,10 @@ 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.
|
|
6
|
+
exports.MicroLessonSubmissionSchema = exports.MicroLessonsResponse = exports.ResponseMicroLessonSchema = exports.MicroLessonSchema = 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
|
-
});
|
|
19
10
|
exports.MicroLessonSchema = v4_1.default.object({
|
|
20
11
|
title: v4_1.default.string(),
|
|
21
12
|
subtitle: v4_1.default.string().optional(),
|
|
@@ -24,13 +15,12 @@ exports.MicroLessonSchema = v4_1.default.object({
|
|
|
24
15
|
seekerFriendly: webContent_1.SeekerFriendlySchema,
|
|
25
16
|
platform: webContent_1.PlatformSchema,
|
|
26
17
|
image: v4_1.default.string().optional(),
|
|
27
|
-
category:
|
|
18
|
+
category: v4_1.default.enum(['Case Studies', 'How Tos']),
|
|
28
19
|
campaign: v4_1.default
|
|
29
20
|
.string()
|
|
30
21
|
.optional()
|
|
31
22
|
.describe('Optional campaign identifier for tracking purposes.'),
|
|
32
|
-
pages: v4_1.default.array(v4_1.default
|
|
33
|
-
.object({
|
|
23
|
+
pages: v4_1.default.array(v4_1.default.object({
|
|
34
24
|
heading: v4_1.default.string().describe('The heading of the page'),
|
|
35
25
|
body: v4_1.default.string().optional(),
|
|
36
26
|
icon: v4_1.default.string().optional(),
|
|
@@ -45,22 +35,31 @@ exports.MicroLessonSchema = v4_1.default.object({
|
|
|
45
35
|
prefilledText: v4_1.default.string().optional(),
|
|
46
36
|
})
|
|
47
37
|
.optional(),
|
|
48
|
-
ctaButton:
|
|
49
|
-
|
|
38
|
+
ctaButton: v4_1.default
|
|
39
|
+
.object({
|
|
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(),
|
|
50
51
|
platform: webContent_1.PlatformSchema.optional(),
|
|
51
52
|
notification: v4_1.default
|
|
52
53
|
.object({
|
|
53
|
-
title: v4_1.default.string()
|
|
54
|
-
body: v4_1.default.string()
|
|
54
|
+
title: v4_1.default.string(),
|
|
55
|
+
body: v4_1.default.string(),
|
|
55
56
|
delayInHours: v4_1.default
|
|
56
57
|
.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
|
-
})
|
|
63
|
-
.describe('The pages of the micro lesson. The last page is always considered the completion page and often contains a CTA button.')),
|
|
62
|
+
})),
|
|
64
63
|
});
|
|
65
64
|
exports.ResponseMicroLessonSchema = v4_1.default.object({
|
|
66
65
|
id: v4_1.default.string(),
|
|
@@ -79,6 +78,3 @@ exports.MicroLessonSubmissionSchema = users_1.WahaUserLocationSchema.extend({
|
|
|
79
78
|
timeSubmitted: v4_1.default.number(),
|
|
80
79
|
platform: v4_1.default.enum(['ios', 'android', 'web']),
|
|
81
80
|
});
|
|
82
|
-
exports.MicroLessonLanguagesResponseSchema = v4_1.default.object({
|
|
83
|
-
data: v4_1.default.array(v4_1.default.string()),
|
|
84
|
-
});
|
|
@@ -17,19 +17,3 @@ 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.
|
|
6
|
+
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,22 +33,3 @@ 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
|
-
]);
|