waha-shared 1.0.509 → 1.0.511

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.
Files changed (52) hide show
  1. package/README.md +12 -12
  2. package/dist/data/bibleAudios/bibleAudios.json +12 -0
  3. package/dist/data/bibleStatuses/bibleStatuses.json +852 -0
  4. package/dist/data/bibleTexts/bibleTexts.json +11 -0
  5. package/dist/data/countriesAndLanguages/countriesAndLanguages.json +25 -20
  6. package/dist/data/countriesAndLanguages/countriesAndLanguages.schema.json +1 -1
  7. package/dist/data/countriesAndLanguages/countriesAndLanguages.zod.js +1 -1
  8. package/dist/data/languages/index.d.ts +1 -1
  9. package/dist/data/languages/languages.json +18 -11
  10. package/dist/data/languages/languages.schema.json +3 -1
  11. package/dist/data/languages/languages.zod.d.ts +1 -1
  12. package/dist/data/languages/languages.zod.js +6 -1
  13. package/dist/data/mediaDurations/mediaDurations.json +1090 -0
  14. package/dist/data/notification/index.d.ts +2 -2
  15. package/dist/data/notification/notification.schema.json +9 -3
  16. package/dist/data/notification/notification.zod.d.ts +3 -3
  17. package/dist/data/notification/notification.zod.js +4 -6
  18. package/dist/data/phoneLanguages/phoneLanguages.json +32 -0
  19. package/dist/data/releaseNotes/releaseNotes.json +9 -2
  20. package/dist/data/translationsApp/translationsApp.json +878 -8
  21. package/dist/data/translationsFtb/translationsFtb.json +136 -0
  22. package/dist/data/translationsIntroduction/translationsIntroduction.json +31 -31
  23. package/dist/data/translationsQuestion/translationsQuestion.json +64 -0
  24. package/dist/data/translationsSet/translationsSet.json +1661 -83
  25. package/dist/data/translationsSpokenQuestion/translationsSpokenQuestion.json +64 -0
  26. package/dist/functions/activeCampaign.d.ts +6 -0
  27. package/dist/functions/activeCampaign.js +10 -1
  28. package/dist/functions/bibleBooks.d.ts +6 -1
  29. package/dist/functions/bibleBooks.js +6 -1
  30. package/dist/functions/bibles.d.ts +22 -8
  31. package/dist/functions/bibles.js +54 -120
  32. package/dist/functions/crowdin.d.ts +53 -4
  33. package/dist/functions/crowdin.js +55 -43
  34. package/dist/functions/donations.d.ts +40 -0
  35. package/dist/functions/donations.js +135 -0
  36. package/dist/functions/ffmpeg.d.ts +21 -0
  37. package/dist/functions/ffmpeg.js +37 -9
  38. package/dist/functions/languages.d.ts +2 -2
  39. package/dist/functions/languages.js +26 -44
  40. package/dist/functions/scripturePassages.d.ts +9 -5
  41. package/dist/functions/scripturePassages.js +6 -10
  42. package/dist/functions/sets.d.ts +15 -7
  43. package/dist/functions/sets.js +34 -28
  44. package/dist/functions/upload.d.ts +16 -6
  45. package/dist/functions/upload.js +15 -6
  46. package/dist/functions/utils.d.ts +0 -2
  47. package/dist/functions/utils.js +1 -9
  48. package/dist/types/logs.d.ts +2 -2
  49. package/dist/types/notifications.d.ts +3 -3
  50. package/dist/types/sets.d.ts +14 -0
  51. package/dist/types/users.d.ts +1 -1
  52. package/package.json +4 -4
@@ -1,13 +1,13 @@
1
1
  export declare const notification: {
2
2
  title: Record<string, string>;
3
3
  body: Record<string, string>;
4
+ faithJourney: "all" | "seekers" | "believers";
5
+ meetLanguages: "all" | string[];
4
6
  verified: string[];
5
7
  actionUrl?: Record<string, string> | undefined;
6
8
  countriesToNotSendTo?: string[] | undefined;
7
9
  countriesToSendTo?: string[] | undefined;
8
- faithJourney?: "all" | "seekers" | "believers" | undefined;
9
10
  imageUrl?: string | undefined;
10
- meetLanguages?: "all" | string[] | undefined;
11
11
  minCompletions?: number | undefined;
12
12
  pushBody?: Record<string, string> | undefined;
13
13
  pushTitle?: Record<string, string> | undefined;
@@ -30,12 +30,12 @@
30
30
  "countriesToNotSendTo": {
31
31
  "type": "array",
32
32
  "items": { "type": "string" },
33
- "description": "Users in any country EXCEPT these will receive the notification. Cannot be defined with `countriesToSendTo`."
33
+ "description": "Users in any country EXCEPT these will receive the notification. If `countriesToSendTo` is also given, these are removed from it."
34
34
  },
35
35
  "countriesToSendTo": {
36
36
  "type": "array",
37
37
  "items": { "type": "string" },
38
- "description": "Only users who have logged activity in the specified countries will receive the notification. To send to users in all countries, don't include this key. Cannot be defined with `countriesToNotSendTo`."
38
+ "description": "Only users who have logged activity in the specified countries will receive the notification. To send to users in all countries, don't include this key. Users also in `countriesToNotSendTo` are still left out."
39
39
  },
40
40
  "faithJourney": {
41
41
  "type": "string",
@@ -76,7 +76,13 @@
76
76
  "description": "List of languages that have had their translation verified. These languages will NOT show the 'translated by AI' message in the app. English should never be included, as its translations are always verified."
77
77
  }
78
78
  },
79
- "required": ["title", "body", "verified"],
79
+ "required": [
80
+ "title",
81
+ "body",
82
+ "faithJourney",
83
+ "meetLanguages",
84
+ "verified"
85
+ ],
80
86
  "additionalProperties": false
81
87
  }
82
88
  },
@@ -6,13 +6,13 @@ export declare const Notification: z.ZodObject<{
6
6
  actionUrl: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
7
7
  countriesToNotSendTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
8
8
  countriesToSendTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
9
- faithJourney: z.ZodOptional<z.ZodEnum<{
9
+ faithJourney: z.ZodEnum<{
10
10
  all: "all";
11
11
  seekers: "seekers";
12
12
  believers: "believers";
13
- }>>;
13
+ }>;
14
14
  imageUrl: z.ZodOptional<z.ZodString>;
15
- meetLanguages: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodArray<z.ZodString>]>>;
15
+ meetLanguages: z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodArray<z.ZodString>]>;
16
16
  minCompletions: z.ZodOptional<z.ZodNumber>;
17
17
  pushBody: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
18
18
  pushTitle: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -13,21 +13,19 @@ exports.Notification = zod_1.z
13
13
  .optional(),
14
14
  countriesToNotSendTo: zod_1.z
15
15
  .array(zod_1.z.string())
16
- .describe('Users in any country EXCEPT these will receive the notification. Cannot be defined with `countriesToSendTo`.')
16
+ .describe('Users in any country EXCEPT these will receive the notification. If `countriesToSendTo` is also given, these are removed from it.')
17
17
  .optional(),
18
18
  countriesToSendTo: zod_1.z
19
19
  .array(zod_1.z.string())
20
- .describe("Only users who have logged activity in the specified countries will receive the notification. To send to users in all countries, don't include this key. Cannot be defined with `countriesToNotSendTo`.")
20
+ .describe("Only users who have logged activity in the specified countries will receive the notification. To send to users in all countries, don't include this key. Users also in `countriesToNotSendTo` are still left out.")
21
21
  .optional(),
22
22
  faithJourney: zod_1.z
23
23
  .enum(['all', 'seekers', 'believers'])
24
- .describe('Only users who match the specified faith journey status will receive the notification. To send to all users regardless of faith journey, use "all".')
25
- .optional(),
24
+ .describe('Only users who match the specified faith journey status will receive the notification. To send to all users regardless of faith journey, use "all".'),
26
25
  imageUrl: zod_1.z.string().regex(new RegExp('^https://.+$')).optional(),
27
26
  meetLanguages: zod_1.z
28
27
  .union([zod_1.z.literal('all'), zod_1.z.array(zod_1.z.string())])
29
- .describe('Only users who have the specified meet languages as favorites will receive the notification. To send to users across all meet languages, use "all".')
30
- .optional(),
28
+ .describe('Only users who have the specified meet languages as favorites will receive the notification. To send to users across all meet languages, use "all".'),
31
29
  minCompletions: zod_1.z.number().int().optional(),
32
30
  pushBody: zod_1.z
33
31
  .record(zod_1.z.string().regex(new RegExp('^[a-z]{3}$')), zod_1.z.string())
@@ -141,6 +141,10 @@
141
141
  "threeLetterId": "ben",
142
142
  "exonym": "Bengali"
143
143
  },
144
+ {
145
+ "threeLetterId": "bni",
146
+ "exonym": "Bangla, India"
147
+ },
144
148
  {
145
149
  "threeLetterId": "hin",
146
150
  "exonym": "Hindi"
@@ -203,6 +207,26 @@
203
207
  }
204
208
  ]
205
209
  },
210
+ {
211
+ "twoLetterId": "ceb",
212
+ "exonym": "Cebuano",
213
+ "alternatives": [
214
+ {
215
+ "threeLetterId": "ceb",
216
+ "exonym": "Cebuano"
217
+ }
218
+ ]
219
+ },
220
+ {
221
+ "twoLetterId": "ckb",
222
+ "exonym": "Central Kurdish",
223
+ "alternatives": [
224
+ {
225
+ "threeLetterId": "ckb",
226
+ "exonym": "Central Kurdish"
227
+ }
228
+ ]
229
+ },
206
230
  {
207
231
  "twoLetterId": "cs",
208
232
  "exonym": "Czech",
@@ -1037,6 +1061,10 @@
1037
1061
  "threeLetterId": "nep",
1038
1062
  "exonym": "Nepali"
1039
1063
  },
1064
+ {
1065
+ "threeLetterId": "npi",
1066
+ "exonym": "Nepali"
1067
+ },
1040
1068
  {
1041
1069
  "threeLetterId": "hin",
1042
1070
  "exonym": "Hindi"
@@ -1347,6 +1375,10 @@
1347
1375
  "threeLetterId": "swa",
1348
1376
  "exonym": "Swahili"
1349
1377
  },
1378
+ {
1379
+ "threeLetterId": "swz",
1380
+ "exonym": "Swahili"
1381
+ },
1350
1382
  {
1351
1383
  "threeLetterId": "eng",
1352
1384
  "exonym": "English"
@@ -2,8 +2,14 @@
2
2
  "$schema": "./releaseNotes.schema.json",
3
3
  "data": [
4
4
  {
5
- "version": "9.2.0",
5
+ "version": "9.2.1",
6
6
  "showInApp": false,
7
+ "notes": {
8
+ "eng": "Language beta with languages: Italian, Kabyle (Algerian Tamazight), Georgian, North Korean, Hassaniyya Arabic"
9
+ }
10
+ },
11
+ {
12
+ "version": "9.2.0",
7
13
  "notes": {
8
14
  "eng": "Reverted back to using old onboarding.",
9
15
  "ara": "تم الرجوع إلى استخدام الإعداد القديم.",
@@ -47,7 +53,8 @@
47
53
  "ukr": "Повернуто до використання старого онбордингу.",
48
54
  "urd": "پرانی آن بورڈنگ کے استعمال پر واپس آ گئے۔",
49
55
  "zsm": "Kembali menggunakan onboarding lama."
50
- }
56
+ },
57
+ "showInApp": false
51
58
  },
52
59
  {
53
60
  "version": "9.1.2",