waha-shared 1.0.362 → 1.0.364
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/assets/fonts/AnekBangla-Bold.woff2 +0 -0
- package/assets/fonts/AnekBangla-Regular.woff2 +0 -0
- package/assets/fonts/AnekTelugu-Bold.woff2 +0 -0
- package/assets/fonts/AnekTelugu-Regular.woff2 +0 -0
- package/assets/fonts/EudoxusSans-Bold.woff2 +0 -0
- package/assets/fonts/EudoxusSans-Regular.woff2 +0 -0
- package/assets/fonts/IBMPlexSansArabic-Bold.woff2 +0 -0
- package/assets/fonts/IBMPlexSansArabic-Regular.woff2 +0 -0
- package/assets/fonts/IBMPlexSansHebrew-Bold.woff2 +0 -0
- package/assets/fonts/IBMPlexSansHebrew-Regular.woff2 +0 -0
- package/assets/fonts/KhmerOSContent-Bold.woff2 +0 -0
- package/assets/fonts/KhmerOSContent-Regular.woff2 +0 -0
- package/assets/fonts/NotoSans-Bold.woff2 +0 -0
- package/assets/fonts/NotoSans-Regular.woff2 +0 -0
- package/assets/fonts/NotoSansDevanagari-Bold.woff2 +0 -0
- package/assets/fonts/NotoSansDevanagari-Regular.woff2 +0 -0
- package/assets/fonts/NotoSansGeorgian-Bold.woff2 +0 -0
- package/assets/fonts/NotoSansGeorgian-Regular.woff2 +0 -0
- package/assets/fonts/NotoSansJP-Bold.woff2 +0 -0
- package/assets/fonts/NotoSansJP-Regular.woff2 +0 -0
- package/assets/fonts/NotoSansKR-Bold.woff2 +0 -0
- package/assets/fonts/NotoSansKR-Regular.woff2 +0 -0
- package/assets/fonts/NotoSansSC-Bold.woff2 +0 -0
- package/assets/fonts/NotoSansSC-Regular.woff2 +0 -0
- package/assets/fonts/NotoSansTamil-Bold.woff2 +0 -0
- package/assets/fonts/NotoSansTamil-Regular.woff2 +0 -0
- package/assets/fonts/NotoSansThai-Bold.woff2 +0 -0
- package/assets/fonts/NotoSansThai-Regular.woff2 +0 -0
- package/assets/fonts/Padauk-Bold.woff2 +0 -0
- package/assets/fonts/Padauk-Regular.woff2 +0 -0
- package/assets/fonts/UKIJTuz-Bold.woff2 +0 -0
- package/assets/fonts/UKIJTuz-Regular.woff2 +0 -0
- package/assets/fonts/fonts.css +64 -32
- package/dist/data/bibleAudios/bibleAudios.json +12 -0
- package/dist/data/bibleStatuses/bibleStatuses.json +6 -0
- package/dist/data/bibleTexts/bibleTexts.json +12 -0
- package/dist/data/languages/languages.json +1 -1
- package/dist/data/languages/languages.zod.d.ts +26 -0
- package/dist/data/languages/languages.zod.js +8 -7
- package/dist/data/notification/index.d.ts +1 -1
- package/dist/data/notification/notification.json +133 -92
- package/dist/data/notification/notification.schema.json +7 -3
- package/dist/data/notification/notification.zod.d.ts +2 -1
- package/dist/data/notification/notification.zod.js +4 -4
- package/dist/data/releaseNotes/releaseNotes.json +49 -2
- package/dist/data/translationsApp/index.d.ts +3 -0
- package/dist/data/translationsApp/translationsApp.json +123 -0
- package/dist/data/translationsApp/translationsApp.schema.json +8 -2
- package/dist/data/translationsApp/translationsApp.zod.d.ts +6 -0
- package/dist/data/translationsApp/translationsApp.zod.js +3 -0
- package/dist/data/translationsQuestion/translationsQuestion.json +2 -2
- package/dist/data/youtubePlaylists/youtubePlaylists.json +1 -0
- package/dist/data/youtubeVideos/youtubeVideos.json +10 -0
- package/dist/functions/languages.js +19 -0
- package/dist/types/articles.d.ts +3 -0
- package/dist/types/languages.d.ts +36 -1
- package/dist/types/languages.js +4 -0
- package/dist/types/microLessons.d.ts +3 -0
- package/dist/types/notifications.d.ts +2 -2
- package/dist/types/notifications.js +1 -2
- package/dist/types/webContent.d.ts +1 -0
- package/dist/types/webContent.js +5 -0
- package/package.json +3 -3
|
@@ -525,7 +525,10 @@
|
|
|
525
525
|
"question_what_brings_you_option_2": { "type": "string" },
|
|
526
526
|
"question_what_brings_you_option_3": { "type": "string" },
|
|
527
527
|
"question_what_brings_you_option_4": { "type": "string" },
|
|
528
|
-
"share_story_audio": { "type": "string" }
|
|
528
|
+
"share_story_audio": { "type": "string" },
|
|
529
|
+
"exit": { "type": "string" },
|
|
530
|
+
"stay": { "type": "string" },
|
|
531
|
+
"popups_exit_micro_lesson": { "type": "string" }
|
|
529
532
|
},
|
|
530
533
|
"required": [
|
|
531
534
|
"name",
|
|
@@ -841,7 +844,10 @@
|
|
|
841
844
|
"filter_micro_lessons",
|
|
842
845
|
"question_placeholder",
|
|
843
846
|
"no_text_available",
|
|
844
|
-
"share_story_audio"
|
|
847
|
+
"share_story_audio",
|
|
848
|
+
"exit",
|
|
849
|
+
"stay",
|
|
850
|
+
"popups_exit_micro_lesson"
|
|
845
851
|
],
|
|
846
852
|
"additionalProperties": false,
|
|
847
853
|
"description": "Translations for a single language (identified by a 3-letter code)_"
|
|
@@ -336,6 +336,9 @@ export declare const LanguageTranslationsApp: z.ZodObject<{
|
|
|
336
336
|
question_what_brings_you_option_3: z.ZodOptional<z.ZodString>;
|
|
337
337
|
question_what_brings_you_option_4: z.ZodOptional<z.ZodString>;
|
|
338
338
|
share_story_audio: z.ZodString;
|
|
339
|
+
exit: z.ZodString;
|
|
340
|
+
stay: z.ZodString;
|
|
341
|
+
popups_exit_micro_lesson: z.ZodString;
|
|
339
342
|
}, z.core.$strip>;
|
|
340
343
|
export type LanguageTranslationsApp = z.infer<typeof LanguageTranslationsApp>;
|
|
341
344
|
export declare const TranslationsApp: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -675,5 +678,8 @@ export declare const TranslationsApp: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
675
678
|
question_what_brings_you_option_3: z.ZodOptional<z.ZodString>;
|
|
676
679
|
question_what_brings_you_option_4: z.ZodOptional<z.ZodString>;
|
|
677
680
|
share_story_audio: z.ZodString;
|
|
681
|
+
exit: z.ZodString;
|
|
682
|
+
stay: z.ZodString;
|
|
683
|
+
popups_exit_micro_lesson: z.ZodString;
|
|
678
684
|
}, z.core.$strip>>;
|
|
679
685
|
export type TranslationsApp = z.infer<typeof TranslationsApp>;
|
|
@@ -342,6 +342,9 @@ exports.LanguageTranslationsApp = zod_1.z.object({
|
|
|
342
342
|
question_what_brings_you_option_3: zod_1.z.string().optional(),
|
|
343
343
|
question_what_brings_you_option_4: zod_1.z.string().optional(),
|
|
344
344
|
share_story_audio: zod_1.z.string(),
|
|
345
|
+
exit: zod_1.z.string(),
|
|
346
|
+
stay: zod_1.z.string(),
|
|
347
|
+
popups_exit_micro_lesson: zod_1.z.string(),
|
|
345
348
|
});
|
|
346
349
|
exports.TranslationsApp = zod_1.z
|
|
347
350
|
.record(zod_1.z.string(), exports.LanguageTranslationsApp.describe('Translations for a single language (identified by a 3-letter code)_'))
|
|
@@ -1487,9 +1487,9 @@
|
|
|
1487
1487
|
"a.015": "Met wie ga je iets delen dat je hebt geleerd van deze bijeenkomst, voordat we elkaar weer ontmoeten?",
|
|
1488
1488
|
"a.016": "Laten we het nu hebben over contact met mensen die God nog niet kennen. Met wie hebben we gesprekken gevoerd sinds onze laatste ontmoeting, en hoe kunnen we voor hen bidden?",
|
|
1489
1489
|
"a.017": "Hoe zoeken we contact met deze mensen en anderen, zodat we deze week goede gesprekken met hen kunnen voeren?",
|
|
1490
|
-
"f.001": "
|
|
1490
|
+
"f.001": "Wat is, gebaseerd op wat er met je is gebeurd sinds onze vorige bijeenkomst, iets waar je dankbaar voor bent?",
|
|
1491
1491
|
"f.002": "Waar heb je deze week stress van gehad, en wat heb je nodig om het beter te laten gaan?",
|
|
1492
|
-
"f.003": "Wat zijn de behoeften van de mensen
|
|
1492
|
+
"f.003": "Wat zijn de behoeften van de mensen om je heen, en hoe kunnen we elkaar helpen om aan die behoeften te voldoen?",
|
|
1493
1493
|
"f.004": "Wat was het verhaal van onze vorige ontmoeting? Wat hebben we geleerd over God en de mensen?",
|
|
1494
1494
|
"f.005": "Tijdens onze laatste bijeenkomst besloot je om iets toe te passen wat je had geleerd. Wat heb je gedaan en hoe is dat gegaan?",
|
|
1495
1495
|
"f.006": "Met wie heb je iets gedeeld uit het vorige verhaal? Hoe reageerden ze?",
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"shi.shi": "PLmYe5bjfx6-llRWXEDdKPl0GywkyXhXD_",
|
|
27
27
|
"spa.spa": "PLmYe5bjfx6-mds-VoCpm3CnpkBUXvf828",
|
|
28
28
|
"swe.swe": "PLmYe5bjfx6-k_ZFdt2UTEbMg7ab7sMJa3",
|
|
29
|
+
"swz.swz": "PLRHj-50L7toY",
|
|
29
30
|
"tha.tha": "PLmYe5bjfx6-nzv-HKq0rIEYj8sJ9ZRE83",
|
|
30
31
|
"tur.tur": "PLmYe5bjfx6-lj0raTAbE4sK2tlZ5Fu5h2",
|
|
31
32
|
"tzm.ara": "PLmYe5bjfx6-k-DF91gl41HPIdtv8t_f_J",
|
|
@@ -224,6 +224,16 @@
|
|
|
224
224
|
"swe.swe.03.009.008.1080.mp4": "0KhjaqdDwvQ",
|
|
225
225
|
"swe.swe.03.009.009.1080.mp4": "B46fL-wvFYw",
|
|
226
226
|
"swe.swe.03.009.010.1080.mp4": "SZb4VAAX_WY",
|
|
227
|
+
"swz.03.009.001.mp4": "ZtDS79gENFQ",
|
|
228
|
+
"swz.03.009.002.mp4": "B5vDraMVrH0",
|
|
229
|
+
"swz.03.009.003.mp4": "FzHIjS5lPH0",
|
|
230
|
+
"swz.swz.03.009.004.1080.mp4": "PJfUxHiTT4E",
|
|
231
|
+
"swz.swz.03.009.005.1080.mp4": "PQhrdC2wes8",
|
|
232
|
+
"swz.swz.03.009.006.1080.mp4": "yZUKDR46gfk",
|
|
233
|
+
"swz.swz.03.009.007.1080.mp4": "XrL9_wGOlsg",
|
|
234
|
+
"swz.swz.03.009.008.1080.mp4": "9iqJuq_CH7k",
|
|
235
|
+
"swz.swz.03.009.009.1080.mp4": "gE6cvQIOjWo",
|
|
236
|
+
"swz.swz.03.009.010.1080.mp4": "TO-JuWyvZbc",
|
|
227
237
|
"tha.03.009.001.mp4": "ImF-uV79Uaw",
|
|
228
238
|
"tha.03.009.002.mp4": "4hCw8Fk8Wsc",
|
|
229
239
|
"tha.03.009.003.mp4": "VhejC6MUBqo",
|
|
@@ -56,6 +56,7 @@ function getLanguageInfo(languageId, options) {
|
|
|
56
56
|
lessonPauses: lessonPauses_1.lessonPauses,
|
|
57
57
|
allBibleIds: [],
|
|
58
58
|
onboardingPassageIds: curriculumOnboarding_1.curriculumOnboarding[0].passages,
|
|
59
|
+
status: { ...languages_1.languages[0].status, dmCourse: 'notStarted' },
|
|
59
60
|
};
|
|
60
61
|
const language = languages_1.languages.find((language) => language.languageId === languageId);
|
|
61
62
|
if (!language) {
|
|
@@ -89,6 +90,23 @@ function getLanguageInfo(languageId, options) {
|
|
|
89
90
|
setIds.push(gdmcSetId);
|
|
90
91
|
}
|
|
91
92
|
}
|
|
93
|
+
let dmCourseStatus = 'notStarted';
|
|
94
|
+
if (language.status.trainingVideos === 'notStarted') {
|
|
95
|
+
if (!language.bridgeLanguages?.trainingVideos) {
|
|
96
|
+
dmCourseStatus = 'notStarted';
|
|
97
|
+
}
|
|
98
|
+
else {
|
|
99
|
+
if (language.status.dbs !== 'launched')
|
|
100
|
+
dmCourseStatus = language.status.dbs;
|
|
101
|
+
else {
|
|
102
|
+
const bridgeLanguageTrainingVideoStatus = languages_1.languages.find((l) => l.languageId === language.bridgeLanguages?.trainingVideos)?.status.trainingVideos ?? 'notStarted';
|
|
103
|
+
dmCourseStatus = bridgeLanguageTrainingVideoStatus;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
else {
|
|
108
|
+
dmCourseStatus = language.status.trainingVideos;
|
|
109
|
+
}
|
|
92
110
|
const toReturn = {
|
|
93
111
|
...language,
|
|
94
112
|
setIds: setIds,
|
|
@@ -112,6 +130,7 @@ function getLanguageInfo(languageId, options) {
|
|
|
112
130
|
lessonPauses: lessonPauses_1.lessonPauses,
|
|
113
131
|
allBibleIds: (0, bibles_1.getAllBibleIds)(language),
|
|
114
132
|
onboardingPassageIds: onboardingCurriculum?.passages ?? defaultReturn.onboardingPassageIds,
|
|
133
|
+
status: { ...language.status, dmCourse: dmCourseStatus },
|
|
115
134
|
};
|
|
116
135
|
return toReturn;
|
|
117
136
|
}
|
package/dist/types/articles.d.ts
CHANGED
|
@@ -36,6 +36,7 @@ export declare const ArticleSchema: z.ZodObject<{
|
|
|
36
36
|
autoplay: z.ZodOptional<z.ZodBoolean>;
|
|
37
37
|
loop: z.ZodOptional<z.ZodBoolean>;
|
|
38
38
|
disableControls: z.ZodOptional<z.ZodBoolean>;
|
|
39
|
+
aspectRatio: z.ZodOptional<z.ZodNumber>;
|
|
39
40
|
}, z.core.$strip>>;
|
|
40
41
|
impactStoryRegion: z.ZodOptional<z.ZodEnum<{
|
|
41
42
|
"North America": "North America";
|
|
@@ -92,6 +93,7 @@ export declare const ResponseArticleSchema: z.ZodObject<{
|
|
|
92
93
|
autoplay: z.ZodOptional<z.ZodBoolean>;
|
|
93
94
|
loop: z.ZodOptional<z.ZodBoolean>;
|
|
94
95
|
disableControls: z.ZodOptional<z.ZodBoolean>;
|
|
96
|
+
aspectRatio: z.ZodOptional<z.ZodNumber>;
|
|
95
97
|
}, z.core.$strip>>;
|
|
96
98
|
impactStoryRegion: z.ZodOptional<z.ZodEnum<{
|
|
97
99
|
"North America": "North America";
|
|
@@ -151,6 +153,7 @@ export declare const ArticlesResponseSchema: z.ZodObject<{
|
|
|
151
153
|
autoplay: z.ZodOptional<z.ZodBoolean>;
|
|
152
154
|
loop: z.ZodOptional<z.ZodBoolean>;
|
|
153
155
|
disableControls: z.ZodOptional<z.ZodBoolean>;
|
|
156
|
+
aspectRatio: z.ZodOptional<z.ZodNumber>;
|
|
154
157
|
}, z.core.$strip>>;
|
|
155
158
|
impactStoryRegion: z.ZodOptional<z.ZodEnum<{
|
|
156
159
|
"North America": "North America";
|
|
@@ -32,7 +32,40 @@ declare const RequiredBridgeLanguages: z.ZodObject<{
|
|
|
32
32
|
onboardingPassages: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
33
33
|
}, z.core.$strip>;
|
|
34
34
|
type RequiredBridgeLanguages = z.infer<typeof RequiredBridgeLanguages>;
|
|
35
|
-
export
|
|
35
|
+
export declare const LanguageInfoStatuses: z.ZodObject<{
|
|
36
|
+
dbs: z.ZodEnum<{
|
|
37
|
+
notStarted: "notStarted";
|
|
38
|
+
inProgress: "inProgress";
|
|
39
|
+
testing: "testing";
|
|
40
|
+
launched: "launched";
|
|
41
|
+
}>;
|
|
42
|
+
trainingVideos: z.ZodEnum<{
|
|
43
|
+
notStarted: "notStarted";
|
|
44
|
+
inProgress: "inProgress";
|
|
45
|
+
testing: "testing";
|
|
46
|
+
launched: "launched";
|
|
47
|
+
}>;
|
|
48
|
+
gdmc: z.ZodEnum<{
|
|
49
|
+
notStarted: "notStarted";
|
|
50
|
+
inProgress: "inProgress";
|
|
51
|
+
testing: "testing";
|
|
52
|
+
launched: "launched";
|
|
53
|
+
}>;
|
|
54
|
+
web: z.ZodEnum<{
|
|
55
|
+
notStarted: "notStarted";
|
|
56
|
+
inProgress: "inProgress";
|
|
57
|
+
testing: "testing";
|
|
58
|
+
launched: "launched";
|
|
59
|
+
}>;
|
|
60
|
+
dmCourse: z.ZodEnum<{
|
|
61
|
+
notStarted: "notStarted";
|
|
62
|
+
inProgress: "inProgress";
|
|
63
|
+
testing: "testing";
|
|
64
|
+
launched: "launched";
|
|
65
|
+
}>;
|
|
66
|
+
}, z.core.$strip>;
|
|
67
|
+
export type LanguageInfoStatuses = z.infer<typeof LanguageInfoStatuses>;
|
|
68
|
+
export interface LanguageInfo extends Omit<Language, 'bible' | 'bibleFallbacks' | 'script' | 'bridgeLanguages' | 'status'> {
|
|
36
69
|
/** The set ids that make up this language's curriculum. */
|
|
37
70
|
setIds: string[];
|
|
38
71
|
/** The question sets available for this language. */
|
|
@@ -66,6 +99,8 @@ export interface LanguageInfo extends Omit<Language, 'bible' | 'bibleFallbacks'
|
|
|
66
99
|
* curriculum (some languages use different psalm numberings).
|
|
67
100
|
*/
|
|
68
101
|
onboardingPassageIds: CurriculumOnboarding[number]['passages'];
|
|
102
|
+
/** The statuses of this language. */
|
|
103
|
+
status: LanguageInfoStatuses;
|
|
69
104
|
}
|
|
70
105
|
export interface MeetTranslations {
|
|
71
106
|
sets: TranslationsSet[string];
|
package/dist/types/languages.js
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LanguageInfoStatuses = void 0;
|
|
3
4
|
const languages_zod_1 = require("../data/languages/languages.zod");
|
|
4
5
|
const RequiredBridgeLanguages = languages_zod_1.BridgeLanguages.required();
|
|
6
|
+
exports.LanguageInfoStatuses = languages_zod_1.LanguageStatuses.extend({
|
|
7
|
+
dmCourse: languages_zod_1.Status.describe("Whether or not the DM course is available for a language. Calculated via a combination of language's dbs status, language's training video status, and language's bridge languages."),
|
|
8
|
+
});
|
|
@@ -53,6 +53,7 @@ export declare const MicroLessonSchema: z.ZodObject<{
|
|
|
53
53
|
autoplay: z.ZodOptional<z.ZodBoolean>;
|
|
54
54
|
loop: z.ZodOptional<z.ZodBoolean>;
|
|
55
55
|
disableControls: z.ZodOptional<z.ZodBoolean>;
|
|
56
|
+
aspectRatio: z.ZodOptional<z.ZodNumber>;
|
|
56
57
|
}, z.core.$strip>>;
|
|
57
58
|
textInput: z.ZodOptional<z.ZodObject<{
|
|
58
59
|
show: z.ZodBoolean;
|
|
@@ -127,6 +128,7 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
|
|
|
127
128
|
autoplay: z.ZodOptional<z.ZodBoolean>;
|
|
128
129
|
loop: z.ZodOptional<z.ZodBoolean>;
|
|
129
130
|
disableControls: z.ZodOptional<z.ZodBoolean>;
|
|
131
|
+
aspectRatio: z.ZodOptional<z.ZodNumber>;
|
|
130
132
|
}, z.core.$strip>>;
|
|
131
133
|
textInput: z.ZodOptional<z.ZodObject<{
|
|
132
134
|
show: z.ZodBoolean;
|
|
@@ -203,6 +205,7 @@ export declare const MicroLessonsResponse: z.ZodObject<{
|
|
|
203
205
|
autoplay: z.ZodOptional<z.ZodBoolean>;
|
|
204
206
|
loop: z.ZodOptional<z.ZodBoolean>;
|
|
205
207
|
disableControls: z.ZodOptional<z.ZodBoolean>;
|
|
208
|
+
aspectRatio: z.ZodOptional<z.ZodNumber>;
|
|
206
209
|
}, z.core.$strip>>;
|
|
207
210
|
textInput: z.ZodOptional<z.ZodObject<{
|
|
208
211
|
show: z.ZodBoolean;
|
|
@@ -6,7 +6,7 @@ export declare const PushNotificationPayloadSchema: z.ZodObject<{
|
|
|
6
6
|
titleSource: z.ZodString;
|
|
7
7
|
bodySource: z.ZodString;
|
|
8
8
|
verified: z.ZodBoolean;
|
|
9
|
-
imageUrl: z.ZodOptional<z.
|
|
9
|
+
imageUrl: z.ZodOptional<z.ZodURL>;
|
|
10
10
|
wahaUserId: z.ZodOptional<z.ZodString>;
|
|
11
11
|
date: z.ZodString;
|
|
12
12
|
}, z.core.$strip>;
|
|
@@ -16,7 +16,7 @@ export declare const PushNotificationRecordSchema: z.ZodObject<{
|
|
|
16
16
|
notification: z.ZodObject<{
|
|
17
17
|
title: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
18
18
|
body: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
19
|
-
actionUrl: z.ZodOptional<z.ZodString
|
|
19
|
+
actionUrl: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
20
20
|
countriesToNotSendTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
21
21
|
countriesToSendTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
22
22
|
faithJourney: z.ZodOptional<z.ZodEnum<{
|
|
@@ -5,7 +5,7 @@ const zod_1 = require("zod");
|
|
|
5
5
|
const notification_zod_1 = require("../data/notification/notification.zod");
|
|
6
6
|
exports.PushNotificationPayloadSchema = zod_1.z.object({
|
|
7
7
|
/** Optional URL to open when the primary notification action is taken. */
|
|
8
|
-
actionUrl:
|
|
8
|
+
actionUrl: notification_zod_1.ActionUrl.optional(),
|
|
9
9
|
/**
|
|
10
10
|
* We want the full title, not the push title, to be attached to the
|
|
11
11
|
* notification.
|
|
@@ -25,7 +25,6 @@ exports.PushNotificationPayloadSchema = zod_1.z.object({
|
|
|
25
25
|
* icons.
|
|
26
26
|
*/
|
|
27
27
|
imageUrl: zod_1.z
|
|
28
|
-
.string()
|
|
29
28
|
.url()
|
|
30
29
|
.optional()
|
|
31
30
|
.describe('URL of an image to show with the notification.'),
|
|
@@ -16,6 +16,7 @@ export declare const VideoSchema: z.ZodOptional<z.ZodObject<{
|
|
|
16
16
|
autoplay: z.ZodOptional<z.ZodBoolean>;
|
|
17
17
|
loop: z.ZodOptional<z.ZodBoolean>;
|
|
18
18
|
disableControls: z.ZodOptional<z.ZodBoolean>;
|
|
19
|
+
aspectRatio: z.ZodOptional<z.ZodNumber>;
|
|
19
20
|
}, z.core.$strip>>;
|
|
20
21
|
export declare const CategorySchema: z.ZodEnum<{
|
|
21
22
|
"Case Studies": "Case Studies";
|
package/dist/types/webContent.js
CHANGED
|
@@ -32,6 +32,11 @@ exports.VideoSchema = zod_1.default
|
|
|
32
32
|
autoplay: zod_1.default.boolean().optional(),
|
|
33
33
|
loop: zod_1.default.boolean().optional(),
|
|
34
34
|
disableControls: zod_1.default.boolean().optional(),
|
|
35
|
+
aspectRatio: zod_1.default
|
|
36
|
+
.number()
|
|
37
|
+
.positive()
|
|
38
|
+
.describe('Width / height of the video. Defaults to 16/9. Use values < 1 for portrait videos (e.g. 9/16).')
|
|
39
|
+
.optional(),
|
|
35
40
|
})
|
|
36
41
|
.describe('Optional video to embed on the page.')
|
|
37
42
|
.optional();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "waha-shared",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.364",
|
|
4
4
|
"author": "Waha",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@types/signale": "^1.4.7",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"scripts": {
|
|
29
29
|
"build": "npx tsc && copyfiles \"data/**/*.json\" dist",
|
|
30
|
-
"update": "yarn build && REGISTRY_VERSION=$(npm view waha-shared version) && npm version $REGISTRY_VERSION --no-git-tag-version --allow-same-version && npm version patch && git add . && git commit -m 'chore: update shared types' && bash -c 'npm publish --access public --registry https://registry.npmjs.org --//registry.npmjs.org/:_authToken=$(grep NPM_TOKEN= ../.env | cut -d \"=\" -f2-)'",
|
|
31
|
-
"updateManual": "(npm whoami || npm login) && yarn build && REGISTRY_VERSION=$(npm view waha-shared version) && npm version $REGISTRY_VERSION --no-git-tag-version --allow-same-version && git add dist package.json && git commit -m 'chore: update shared types' && npm publish"
|
|
30
|
+
"update": "yarn build && REGISTRY_VERSION=$(npm view waha-shared version) && npm version $REGISTRY_VERSION --no-git-tag-version --allow-same-version && npm version patch --no-git-tag-version && git add . && (git commit -m 'chore: update shared types' || true) && bash -c 'npm publish --access public --registry https://registry.npmjs.org --//registry.npmjs.org/:_authToken=$(grep NPM_TOKEN= ../.env | cut -d \"=\" -f2-)'",
|
|
31
|
+
"updateManual": "(npm whoami || npm login) && yarn build && REGISTRY_VERSION=$(npm view waha-shared version) && npm version $REGISTRY_VERSION --no-git-tag-version --allow-same-version && npm version patch --no-git-tag-version && git add dist package.json && (git commit -m 'chore: update shared types' || true) && npm publish"
|
|
32
32
|
}
|
|
33
33
|
}
|