waha-shared 1.0.207 → 1.0.209

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 (122) hide show
  1. package/dist/data/areas/areas.schema.json +19 -53
  2. package/dist/data/areas/areas.zod.d.ts +15 -12
  3. package/dist/data/aslTimestamps/aslTimestamps.schema.json +18 -11
  4. package/dist/data/aslTimestamps/aslTimestamps.zod.d.ts +4 -34
  5. package/dist/data/bibleAudios/bibleAudios.schema.json +14 -11
  6. package/dist/data/bibleAudios/bibleAudios.zod.d.ts +11 -15
  7. package/dist/data/bibleAudios/bibleAudios.zod.js +5 -4
  8. package/dist/data/bibleAudios/index.d.ts +5 -2
  9. package/dist/data/bibleBooks/bibleBooks.schema.json +71 -50
  10. package/dist/data/bibleBooks/bibleBooks.zod.d.ts +5 -51
  11. package/dist/data/bibleBooks/index.d.ts +2 -2
  12. package/dist/data/bibleChaptersList/bibleChaptersList.schema.json +5 -2
  13. package/dist/data/bibleChaptersList/bibleChaptersList.zod.d.ts +1 -1
  14. package/dist/data/bibleStatuses/bibleStatuses.json +2 -110
  15. package/dist/data/bibleStatuses/bibleStatuses.schema.json +46 -40
  16. package/dist/data/bibleStatuses/bibleStatuses.zod.d.ts +5 -25
  17. package/dist/data/bibleStatuses/bibleStatuses.zod.js +2 -27
  18. package/dist/data/bibleTexts/bibleTexts.schema.json +40 -24
  19. package/dist/data/bibleTexts/bibleTexts.zod.d.ts +11 -39
  20. package/dist/data/bibleTexts/index.d.ts +3 -3
  21. package/dist/data/clones/clones.schema.json +27 -26
  22. package/dist/data/clones/clones.zod.d.ts +2 -24
  23. package/dist/data/clones/clones.zod.js +1 -1
  24. package/dist/data/clones/index.d.ts +3 -3
  25. package/dist/data/countries/countries.schema.json +91 -90
  26. package/dist/data/countries/countries.zod.d.ts +19 -88
  27. package/dist/data/countries/countries.zod.js +49 -138
  28. package/dist/data/countriesAndLanguages/countriesAndLanguages.schema.json +19 -8
  29. package/dist/data/countriesAndLanguages/countriesAndLanguages.zod.d.ts +2 -28
  30. package/dist/data/countriesAndLanguages/index.d.ts +2 -2
  31. package/dist/data/crowdinLanguages/crowdinLanguages.schema.json +13 -4
  32. package/dist/data/crowdinLanguages/crowdinLanguages.zod.d.ts +1 -13
  33. package/dist/data/crowdinLanguages/index.d.ts +1 -1
  34. package/dist/data/curriculumFoundations/curriculumFoundations.schema.json +16 -8
  35. package/dist/data/curriculumFoundations/curriculumFoundations.zod.d.ts +2 -10
  36. package/dist/data/curriculumQuestions/curriculumQuestions.schema.json +24 -13
  37. package/dist/data/curriculumQuestions/curriculumQuestions.zod.d.ts +3 -23
  38. package/dist/data/curriculumTopics/curriculumTopics.schema.json +16 -8
  39. package/dist/data/curriculumTopics/curriculumTopics.zod.d.ts +2 -10
  40. package/dist/data/iosVoiceOverLanguages/iosVoiceOverLanguages.schema.json +5 -2
  41. package/dist/data/iosVoiceOverLanguages/iosVoiceOverLanguages.zod.d.ts +1 -1
  42. package/dist/data/iso6933LanguageCodes/iso6933LanguageCodes.schema.json +8 -2
  43. package/dist/data/iso6933LanguageCodes/iso6933LanguageCodes.zod.js +1 -1
  44. package/dist/data/languageAssets/languageAssets.json +0 -37702
  45. package/dist/data/languageAssets/languageAssets.schema.json +15 -12
  46. package/dist/data/languageAssets/languageAssets.zod.d.ts +1 -1
  47. package/dist/data/languageAssets/languageAssets.zod.js +3 -43
  48. package/dist/data/languages/index.d.ts +8 -4
  49. package/dist/data/languages/languages.json +1 -1
  50. package/dist/data/languages/languages.schema.json +136 -89
  51. package/dist/data/languages/languages.zod.d.ts +194 -116
  52. package/dist/data/languages/languages.zod.js +7 -1
  53. package/dist/data/mediaDurations/mediaDurations.schema.json +21 -14
  54. package/dist/data/mediaDurations/mediaDurations.zod.d.ts +1 -1
  55. package/dist/data/mediaDurations/mediaDurations.zod.js +3 -41
  56. package/dist/data/notification/notification.schema.json +67 -57
  57. package/dist/data/notification/notification.zod.d.ts +15 -39
  58. package/dist/data/notification/notification.zod.js +4 -134
  59. package/dist/data/numeralMaps/numeralMaps.schema.json +62 -62
  60. package/dist/data/numeralMaps/numeralMaps.zod.d.ts +2 -46
  61. package/dist/data/numeralMaps/numeralMaps.zod.js +14 -64
  62. package/dist/data/phoneLanguages/index.d.ts +1 -1
  63. package/dist/data/phoneLanguages/phoneLanguages.schema.json +18 -8
  64. package/dist/data/phoneLanguages/phoneLanguages.zod.d.ts +2 -22
  65. package/dist/data/questions/index.d.ts +1 -1
  66. package/dist/data/questions/questions.schema.json +11 -11
  67. package/dist/data/questions/questions.zod.d.ts +6 -14
  68. package/dist/data/releaseNotes/index.d.ts +1 -1
  69. package/dist/data/releaseNotes/releaseNotes.schema.json +23 -11
  70. package/dist/data/releaseNotes/releaseNotes.zod.d.ts +1 -9
  71. package/dist/data/releaseNotes/releaseNotes.zod.js +1 -1
  72. package/dist/data/screenshots/screenshots.schema.json +12 -6
  73. package/dist/data/screenshots/screenshots.zod.d.ts +1 -5
  74. package/dist/data/scripts/scripts.schema.json +11 -4
  75. package/dist/data/scripts/scripts.zod.d.ts +1 -7
  76. package/dist/data/sets/index.d.ts +2 -2
  77. package/dist/data/sets/sets.schema.json +25 -22
  78. package/dist/data/sets/sets.zod.d.ts +61 -39
  79. package/dist/data/specialIds/specialIds.schema.json +5 -1
  80. package/dist/data/specialIds/specialIds.zod.d.ts +11 -41
  81. package/dist/data/translationsApp/index.d.ts +9 -9
  82. package/dist/data/translationsApp/translationsApp.json +0 -1
  83. package/dist/data/translationsApp/translationsApp.schema.json +667 -668
  84. package/dist/data/translationsApp/translationsApp.zod.d.ts +1 -631
  85. package/dist/data/translationsApp/translationsApp.zod.js +2 -2
  86. package/dist/data/translationsFtb/translationsFtb.json +0 -884
  87. package/dist/data/translationsFtb/translationsFtb.schema.json +147 -149
  88. package/dist/data/translationsFtb/translationsFtb.zod.d.ts +1 -135
  89. package/dist/data/translationsFtb/translationsFtb.zod.js +1 -1
  90. package/dist/data/translationsIntroduction/translationsIntroduction.schema.json +15 -18
  91. package/dist/data/translationsIntroduction/translationsIntroduction.zod.d.ts +2 -160
  92. package/dist/data/translationsIntroduction/translationsIntroduction.zod.js +1 -1
  93. package/dist/data/translationsQuestion/translationsQuestion.json +0 -480
  94. package/dist/data/translationsQuestion/translationsQuestion.schema.json +9 -14
  95. package/dist/data/translationsQuestion/translationsQuestion.zod.js +1 -1
  96. package/dist/data/translationsSet/translationsSet.json +11234 -20793
  97. package/dist/data/translationsSet/translationsSet.schema.json +52 -56
  98. package/dist/data/translationsSet/translationsSet.zod.d.ts +1 -19
  99. package/dist/data/translationsSet/translationsSet.zod.js +4 -4
  100. package/dist/data/translationsSolarSpeaker/translationsSolarSpeaker.schema.json +98 -100
  101. package/dist/data/translationsSolarSpeaker/translationsSolarSpeaker.zod.d.ts +1 -87
  102. package/dist/data/translationsSolarSpeaker/translationsSolarSpeaker.zod.js +1 -1
  103. package/dist/data/translationsSpokenQuestion/translationsSpokenQuestion.json +0 -480
  104. package/dist/data/translationsSpokenQuestion/translationsSpokenQuestion.schema.json +18 -23
  105. package/dist/data/translationsSpokenQuestion/translationsSpokenQuestion.zod.js +1 -1
  106. package/dist/data/youtubePlaylists/youtubePlaylists.schema.json +9 -2
  107. package/dist/data/youtubePlaylists/youtubePlaylists.zod.js +1 -1
  108. package/dist/data/youtubeVideos/youtubeVideos.schema.json +9 -2
  109. package/dist/data/youtubeVideos/youtubeVideos.zod.js +1 -1
  110. package/dist/types/analytics.d.ts +14 -1
  111. package/dist/types/articles.d.ts +93 -343
  112. package/dist/types/bibleChapters.d.ts +13 -91
  113. package/dist/types/bibleChapters.js +1 -1
  114. package/dist/types/feedback.d.ts +3 -41
  115. package/dist/types/feedback.js +1 -1
  116. package/dist/types/microLessons.d.ts +69 -868
  117. package/dist/types/notifications.d.ts +19 -119
  118. package/dist/types/scripturePassages.d.ts +4 -34
  119. package/dist/types/users.d.ts +221 -776
  120. package/dist/types/users.js +2 -1
  121. package/dist/types/webContent.d.ts +8 -20
  122. package/package.json +3 -3
@@ -1,138 +1,38 @@
1
1
  import { z } from 'zod';
2
2
  export declare const PushNotificationPayloadSchema: z.ZodObject<{
3
- /** Optional URL to open when the primary notification action is taken. */
4
3
  actionUrl: z.ZodOptional<z.ZodString>;
5
- /**
6
- * We want the full title, not the push title, to be attached to the
7
- * notification.
8
- */
9
4
  title: z.ZodString;
10
- /**
11
- * We want the full body, not the push body, to be attached to the
12
- * notification.
13
- */
14
5
  body: z.ZodString;
15
6
  titleSource: z.ZodString;
16
7
  bodySource: z.ZodString;
17
8
  verified: z.ZodBoolean;
18
- /**
19
- * Either a remote url to an image to show with the notification or the name
20
- * of a waha icon. See [SVG.tsx](src/components/General/SVG.tsx) for supported
21
- * icons.
22
- */
23
9
  imageUrl: z.ZodOptional<z.ZodString>;
24
10
  wahaUserId: z.ZodOptional<z.ZodString>;
25
- /**
26
- * ISO string date in a special format. See [toIsoString
27
- * function](src/functions/dates.ts).
28
- */
29
11
  date: z.ZodString;
30
- }, "strip", z.ZodTypeAny, {
31
- date: string;
32
- title: string;
33
- body: string;
34
- verified: boolean;
35
- titleSource: string;
36
- bodySource: string;
37
- actionUrl?: string | undefined;
38
- imageUrl?: string | undefined;
39
- wahaUserId?: string | undefined;
40
- }, {
41
- date: string;
42
- title: string;
43
- body: string;
44
- verified: boolean;
45
- titleSource: string;
46
- bodySource: string;
47
- actionUrl?: string | undefined;
48
- imageUrl?: string | undefined;
49
- wahaUserId?: string | undefined;
50
- }>;
12
+ }, z.core.$strip>;
51
13
  export type PushNotificationPayload = z.infer<typeof PushNotificationPayloadSchema>;
52
14
  export declare const PushNotificationRecordSchema: z.ZodObject<{
53
15
  date: z.ZodString;
54
16
  notification: z.ZodObject<{
55
- title: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNever]>>, Record<string, string>, Record<string, string>>;
56
- body: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNever]>>, Record<string, string>, Record<string, string>>;
17
+ title: z.ZodRecord<z.ZodString, z.ZodString>;
18
+ body: z.ZodRecord<z.ZodString, z.ZodString>;
57
19
  actionUrl: z.ZodOptional<z.ZodString>;
58
- countriesToNotSendTo: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
59
- countriesToSendTo: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
60
- faithJourney: z.ZodOptional<z.ZodEnum<["all", "seekers", "believers"]>>;
20
+ countriesToNotSendTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
21
+ countriesToSendTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
22
+ faithJourney: z.ZodOptional<z.ZodEnum<{
23
+ all: "all";
24
+ seekers: "seekers";
25
+ believers: "believers";
26
+ }>>;
61
27
  imageUrl: z.ZodOptional<z.ZodString>;
62
- meetLanguages: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"all">, z.ZodArray<z.ZodString, "many">]>>;
28
+ meetLanguages: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodArray<z.ZodString>]>>;
63
29
  minCompletions: z.ZodOptional<z.ZodNumber>;
64
- pushBody: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNever]>>, Record<string, string>, Record<string, string>>>;
65
- pushTitle: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNever]>>, Record<string, string>, Record<string, string>>>;
66
- pushTokens: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
67
- verified: z.ZodArray<z.ZodString, "many">;
68
- }, "strict", z.ZodTypeAny, {
69
- title: Record<string, string>;
70
- body: Record<string, string>;
71
- verified: string[];
72
- actionUrl?: string | undefined;
73
- countriesToNotSendTo?: string[] | undefined;
74
- countriesToSendTo?: string[] | undefined;
75
- faithJourney?: "all" | "seekers" | "believers" | undefined;
76
- imageUrl?: string | undefined;
77
- meetLanguages?: string[] | "all" | undefined;
78
- minCompletions?: number | undefined;
79
- pushBody?: Record<string, string> | undefined;
80
- pushTitle?: Record<string, string> | undefined;
81
- pushTokens?: string[] | undefined;
82
- }, {
83
- title: Record<string, string>;
84
- body: Record<string, string>;
85
- verified: string[];
86
- actionUrl?: string | undefined;
87
- countriesToNotSendTo?: string[] | undefined;
88
- countriesToSendTo?: string[] | undefined;
89
- faithJourney?: "all" | "seekers" | "believers" | undefined;
90
- imageUrl?: string | undefined;
91
- meetLanguages?: string[] | "all" | undefined;
92
- minCompletions?: number | undefined;
93
- pushBody?: Record<string, string> | undefined;
94
- pushTitle?: Record<string, string> | undefined;
95
- pushTokens?: string[] | undefined;
96
- }>;
97
- receivedTokens: z.ZodArray<z.ZodString, "many">;
98
- receivedUserIds: z.ZodArray<z.ZodString, "many">;
99
- }, "strip", z.ZodTypeAny, {
100
- date: string;
101
- notification: {
102
- title: Record<string, string>;
103
- body: Record<string, string>;
104
- verified: string[];
105
- actionUrl?: string | undefined;
106
- countriesToNotSendTo?: string[] | undefined;
107
- countriesToSendTo?: string[] | undefined;
108
- faithJourney?: "all" | "seekers" | "believers" | undefined;
109
- imageUrl?: string | undefined;
110
- meetLanguages?: string[] | "all" | undefined;
111
- minCompletions?: number | undefined;
112
- pushBody?: Record<string, string> | undefined;
113
- pushTitle?: Record<string, string> | undefined;
114
- pushTokens?: string[] | undefined;
115
- };
116
- receivedTokens: string[];
117
- receivedUserIds: string[];
118
- }, {
119
- date: string;
120
- notification: {
121
- title: Record<string, string>;
122
- body: Record<string, string>;
123
- verified: string[];
124
- actionUrl?: string | undefined;
125
- countriesToNotSendTo?: string[] | undefined;
126
- countriesToSendTo?: string[] | undefined;
127
- faithJourney?: "all" | "seekers" | "believers" | undefined;
128
- imageUrl?: string | undefined;
129
- meetLanguages?: string[] | "all" | undefined;
130
- minCompletions?: number | undefined;
131
- pushBody?: Record<string, string> | undefined;
132
- pushTitle?: Record<string, string> | undefined;
133
- pushTokens?: string[] | undefined;
134
- };
135
- receivedTokens: string[];
136
- receivedUserIds: string[];
137
- }>;
30
+ pushBody: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
31
+ pushTitle: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
32
+ pushTokens: z.ZodOptional<z.ZodArray<z.ZodString>>;
33
+ verified: z.ZodArray<z.ZodString>;
34
+ }, z.core.$strict>;
35
+ receivedTokens: z.ZodArray<z.ZodString>;
36
+ receivedUserIds: z.ZodArray<z.ZodString>;
37
+ }, z.core.$strip>;
138
38
  export type PushNotificationRecord = z.infer<typeof PushNotificationRecordSchema>;
@@ -5,39 +5,9 @@ export declare const ScripturePassageSchema: z.ZodObject<{
5
5
  header: z.ZodString;
6
6
  verses: z.ZodArray<z.ZodObject<{
7
7
  text: z.ZodString;
8
- timings: z.ZodOptional<z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodNull]>>;
9
- uroman: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
8
+ timings: z.ZodOptional<z.ZodUnion<readonly [z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodNull]>>;
9
+ uroman: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
10
10
  verseId: z.ZodString;
11
- }, "strict", z.ZodTypeAny, {
12
- verseId: string;
13
- text: string;
14
- timings?: [number, number] | null | undefined;
15
- uroman?: string | null | undefined;
16
- }, {
17
- verseId: string;
18
- text: string;
19
- timings?: [number, number] | null | undefined;
20
- uroman?: string | null | undefined;
21
- }>, "many">;
22
- }, "strip", z.ZodTypeAny, {
23
- verses: {
24
- verseId: string;
25
- text: string;
26
- timings?: [number, number] | null | undefined;
27
- uroman?: string | null | undefined;
28
- }[];
29
- passageId: string;
30
- bibleId: string;
31
- header: string;
32
- }, {
33
- verses: {
34
- verseId: string;
35
- text: string;
36
- timings?: [number, number] | null | undefined;
37
- uroman?: string | null | undefined;
38
- }[];
39
- passageId: string;
40
- bibleId: string;
41
- header: string;
42
- }>;
11
+ }, z.core.$strict>>;
12
+ }, z.core.$strip>;
43
13
  export type ScripturePassage = z.infer<typeof ScripturePassageSchema>;