waha-shared 1.0.1 → 1.0.2

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 (293) hide show
  1. package/README.md +2 -2
  2. package/dist/data/bibleAudios.d.ts +8 -0
  3. package/dist/data/bibleAudios.js +8 -0
  4. package/dist/data/bibleAudios.json +394 -0
  5. package/dist/data/bibleResources/bibleBooks.d.ts +3 -0
  6. package/dist/data/bibleResources/bibleBooks.js +7 -0
  7. package/dist/data/bibleResources/bibleBooks.json +6071 -0
  8. package/dist/data/bibleResources/bibleChaptersList.d.ts +2 -0
  9. package/dist/data/bibleResources/bibleChaptersList.js +8 -0
  10. package/dist/data/bibleResources/bibleChaptersList.json +1191 -0
  11. package/dist/data/bibleStatuses.d.ts +7 -0
  12. package/dist/data/bibleStatuses.js +8 -0
  13. package/dist/data/bibleStatuses.json +9196 -0
  14. package/dist/data/bibleTexts.d.ts +16 -0
  15. package/dist/data/bibleTexts.js +8 -0
  16. package/dist/data/bibleTexts.json +527 -0
  17. package/dist/data/countryResources/areas.d.ts +3 -0
  18. package/dist/data/countryResources/areas.js +7 -0
  19. package/dist/data/countryResources/areas.json +74 -0
  20. package/dist/data/countryResources/countries.d.ts +3 -0
  21. package/dist/data/countryResources/countries.js +7 -0
  22. package/dist/data/countryResources/countries.json +3362 -0
  23. package/dist/data/foundationsCurriculums.d.ts +5 -0
  24. package/dist/data/foundationsCurriculums.js +8 -0
  25. package/dist/data/foundationsCurriculums.json +130 -0
  26. package/dist/data/languageResources/countriesAndLanguages.d.ts +13 -0
  27. package/dist/data/languageResources/countriesAndLanguages.js +7 -0
  28. package/dist/data/languageResources/countriesAndLanguages.json +11718 -0
  29. package/dist/data/languageResources/phoneLanguages.d.ts +11 -0
  30. package/dist/data/languageResources/phoneLanguages.js +7 -0
  31. package/dist/data/languageResources/phoneLanguages.json +1532 -0
  32. package/dist/data/languages.d.ts +45 -0
  33. package/dist/data/languages.js +8 -0
  34. package/dist/data/languages.json +7045 -0
  35. package/dist/data/mediaDurations.d.ts +6 -0
  36. package/dist/data/mediaDurations.js +8 -0
  37. package/dist/data/mediaDurations.json +32364 -0
  38. package/dist/data/notification.d.ts +16 -0
  39. package/dist/data/notification.js +8 -0
  40. package/dist/data/notification.json +69 -0
  41. package/dist/data/numeralMaps.d.ts +13 -0
  42. package/dist/data/numeralMaps.js +8 -0
  43. package/dist/data/numeralMaps.json +26 -0
  44. package/dist/data/questions.d.ts +8 -0
  45. package/dist/data/questions.js +8 -0
  46. package/dist/data/questions.json +317 -0
  47. package/dist/data/questionsCurriculums.d.ts +8 -0
  48. package/dist/data/questionsCurriculums.js +8 -0
  49. package/dist/data/questionsCurriculums.json +753 -0
  50. package/dist/data/releaseNotes.d.ts +6 -0
  51. package/dist/data/releaseNotes.js +8 -0
  52. package/dist/data/releaseNotes.json +2381 -0
  53. package/dist/data/screenshots.d.ts +5 -0
  54. package/dist/data/screenshots.js +8 -0
  55. package/dist/data/screenshots.json +17 -0
  56. package/dist/data/sets.d.ts +14 -0
  57. package/dist/data/sets.js +8 -0
  58. package/dist/data/sets.json +12258 -0
  59. package/dist/data/specialIds.d.ts +18 -0
  60. package/dist/data/specialIds.js +7 -0
  61. package/dist/data/specialIds.json +72 -0
  62. package/dist/data/topicsCurriculums.d.ts +5 -0
  63. package/dist/data/topicsCurriculums.js +8 -0
  64. package/dist/data/topicsCurriculums.json +131 -0
  65. package/dist/data/typescript/appTranslations.d.ts +915 -0
  66. package/dist/data/typescript/appTranslations.js +315 -0
  67. package/dist/data/typescript/areas.d.ts +18 -0
  68. package/dist/data/typescript/areas.js +42 -0
  69. package/dist/data/typescript/aslTimestamps.d.ts +43 -0
  70. package/dist/data/typescript/aslTimestamps.js +31 -0
  71. package/dist/data/typescript/bibleAudioAvailableChapters.d.ts +3 -0
  72. package/dist/data/typescript/bibleAudioAvailableChapters.js +36 -0
  73. package/dist/data/typescript/bibleAudios.d.ts +21 -0
  74. package/dist/data/typescript/bibleAudios.js +23 -0
  75. package/dist/data/typescript/bibleBookNames.d.ts +3 -0
  76. package/dist/data/typescript/bibleBookNames.js +98 -0
  77. package/dist/data/typescript/bibleBooks.d.ts +69 -0
  78. package/dist/data/typescript/bibleBooks.js +56 -0
  79. package/dist/data/typescript/bibleChapters.d.ts +49 -0
  80. package/dist/data/typescript/bibleChapters.js +29 -0
  81. package/dist/data/typescript/bibleStatuses.d.ts +28 -0
  82. package/dist/data/typescript/bibleStatuses.js +39 -0
  83. package/dist/data/typescript/bibleTextAvailableChapters.d.ts +3 -0
  84. package/dist/data/typescript/bibleTextAvailableChapters.js +36 -0
  85. package/dist/data/typescript/bibleTexts.d.ts +53 -0
  86. package/dist/data/typescript/bibleTexts.js +54 -0
  87. package/dist/data/typescript/clones.d.ts +36 -0
  88. package/dist/data/typescript/clones.js +28 -0
  89. package/dist/data/typescript/countries.d.ts +98 -0
  90. package/dist/data/typescript/countries.js +149 -0
  91. package/dist/data/typescript/foundationsCurriculums.d.ts +12 -0
  92. package/dist/data/typescript/foundationsCurriculums.js +12 -0
  93. package/dist/data/typescript/introductionTranslations.d.ts +202 -0
  94. package/dist/data/typescript/introductionTranslations.js +53 -0
  95. package/dist/data/typescript/languages.d.ts +148 -0
  96. package/dist/data/typescript/languages.js +302 -0
  97. package/dist/data/typescript/mediaDurations.d.ts +23 -0
  98. package/dist/data/typescript/mediaDurations.js +72 -0
  99. package/dist/data/typescript/notification.d.ts +45 -0
  100. package/dist/data/typescript/notification.js +176 -0
  101. package/dist/data/typescript/numeralMaps.d.ts +58 -0
  102. package/dist/data/typescript/numeralMaps.js +71 -0
  103. package/dist/data/typescript/questionTranslations.d.ts +3 -0
  104. package/dist/data/typescript/questionTranslations.js +5 -0
  105. package/dist/data/typescript/questions.d.ts +21 -0
  106. package/dist/data/typescript/questions.js +18 -0
  107. package/dist/data/typescript/questionsCurriculums.d.ts +27 -0
  108. package/dist/data/typescript/questionsCurriculums.js +19 -0
  109. package/dist/data/typescript/releaseNotes.d.ts +15 -0
  110. package/dist/data/typescript/releaseNotes.js +9 -0
  111. package/dist/data/typescript/screenshots.d.ts +12 -0
  112. package/dist/data/typescript/screenshots.js +49 -0
  113. package/dist/data/typescript/setTranslations.d.ts +27 -0
  114. package/dist/data/typescript/setTranslations.js +32 -0
  115. package/dist/data/typescript/sets.d.ts +49 -0
  116. package/dist/data/typescript/sets.js +88 -0
  117. package/dist/data/typescript/topicsCurriculums.d.ts +12 -0
  118. package/dist/data/typescript/topicsCurriculums.js +12 -0
  119. package/dist/data/youtube/videos.d.ts +2 -0
  120. package/dist/data/youtube/videos.js +7 -0
  121. package/dist/data/youtube/videos.json +262 -0
  122. package/dist/functions/activeCampaign.d.ts +8 -0
  123. package/dist/functions/activeCampaign.js +97 -0
  124. package/dist/functions/bibleChapterUtils.d.ts +15 -0
  125. package/dist/functions/bibleChapterUtils.js +231 -0
  126. package/dist/functions/crowdin.d.ts +24 -0
  127. package/dist/functions/crowdin.js +34 -0
  128. package/dist/functions/languages.d.ts +24 -0
  129. package/dist/functions/languages.js +212 -0
  130. package/dist/functions/scripturePassages.d.ts +47 -0
  131. package/dist/functions/scripturePassages.js +261 -0
  132. package/dist/functions/sets.d.ts +30 -0
  133. package/dist/functions/sets.js +371 -0
  134. package/dist/translations/appTranslations.d.ts +306 -0
  135. package/dist/translations/appTranslations.js +8 -0
  136. package/dist/translations/appTranslations.json +10239 -0
  137. package/dist/translations/introductionTranslations.d.ts +43 -0
  138. package/dist/translations/introductionTranslations.js +8 -0
  139. package/dist/translations/introductionTranslations.json +422 -0
  140. package/dist/translations/questionTranslations.d.ts +2 -0
  141. package/dist/translations/questionTranslations.js +8 -0
  142. package/dist/translations/questionTranslations.json +1472 -0
  143. package/dist/translations/setTranslations.d.ts +10 -0
  144. package/dist/translations/setTranslations.js +8 -0
  145. package/dist/translations/setTranslations.json +30257 -0
  146. package/dist/types/analytics.d.ts +119 -0
  147. package/dist/types/analytics.js +2 -0
  148. package/dist/types/completions.d.ts +8 -0
  149. package/dist/types/completions.js +2 -0
  150. package/dist/types/feedback.d.ts +60 -0
  151. package/dist/types/feedback.js +27 -0
  152. package/dist/types/languages.d.ts +31 -0
  153. package/dist/types/languages.js +2 -0
  154. package/dist/types/notifications.d.ts +128 -0
  155. package/dist/types/notifications.js +30 -0
  156. package/dist/types/sets.d.ts +70 -0
  157. package/dist/types/sets.js +10 -0
  158. package/dist/types/users.d.ts +765 -0
  159. package/dist/types/users.js +137 -0
  160. package/package.json +2 -2
  161. package/.DS_Store +0 -0
  162. package/__init__.py +0 -0
  163. package/copy.ts +0 -37
  164. package/data/README.md +0 -45
  165. package/data/__init__.py +0 -0
  166. package/data/aslTimestamps.json +0 -192788
  167. package/data/bibleAudios.json +0 -394
  168. package/data/bibleAudios.ts +0 -4
  169. package/data/bibleResources/audioBibleLicenses.json +0 -6235
  170. package/data/bibleResources/bibleBooks.json +0 -6071
  171. package/data/bibleResources/bibleBooks.ts +0 -4
  172. package/data/bibleResources/bibleChaptersList.json +0 -1191
  173. package/data/bibleResources/bibleChaptersList.ts +0 -4
  174. package/data/bibleResources/textBibleLicenses.json +0 -14603
  175. package/data/bibleStatuses.json +0 -9196
  176. package/data/bibleStatuses.ts +0 -4
  177. package/data/bibleTexts.json +0 -527
  178. package/data/bibleTexts.ts +0 -4
  179. package/data/clones.json +0 -13
  180. package/data/countryResources/areas.json +0 -74
  181. package/data/countryResources/areas.ts +0 -4
  182. package/data/countryResources/countries.json +0 -3362
  183. package/data/countryResources/countries.ts +0 -4
  184. package/data/foundationsCurriculums.json +0 -130
  185. package/data/foundationsCurriculums.ts +0 -4
  186. package/data/languageResources/countriesAndLanguages.json +0 -11718
  187. package/data/languageResources/countriesAndLanguages.ts +0 -16
  188. package/data/languageResources/crowdinLanguages.json +0 -2172
  189. package/data/languageResources/iosVoiceOverLanguages.json +0 -64
  190. package/data/languageResources/iso6933LanguageCodes.json +0 -7927
  191. package/data/languageResources/mmsLanguages.json +0 -28164
  192. package/data/languageResources/phoneLanguages.json +0 -1532
  193. package/data/languageResources/phoneLanguages.ts +0 -14
  194. package/data/languages.json +0 -7045
  195. package/data/languages.ts +0 -4
  196. package/data/mediaDurations.json +0 -32364
  197. package/data/mediaDurations.ts +0 -4
  198. package/data/notification.json +0 -69
  199. package/data/notification.ts +0 -4
  200. package/data/numeralMaps.json +0 -26
  201. package/data/numeralMaps.ts +0 -4
  202. package/data/orphanedBibleTexts.json +0 -2747
  203. package/data/questions.json +0 -317
  204. package/data/questions.ts +0 -4
  205. package/data/questionsCurriculums.json +0 -753
  206. package/data/questionsCurriculums.ts +0 -4
  207. package/data/releaseNotes.json +0 -2381
  208. package/data/releaseNotes.ts +0 -4
  209. package/data/schemas/appTranslations.schema.json +0 -802
  210. package/data/schemas/areas.schema.json +0 -76
  211. package/data/schemas/aslTimestamps.schema.json +0 -59
  212. package/data/schemas/bibleAudios.schema.json +0 -37
  213. package/data/schemas/bibleBooks.schema.json +0 -112
  214. package/data/schemas/bibleChapters.schema.json +0 -61
  215. package/data/schemas/bibleStatuses.schema.json +0 -41
  216. package/data/schemas/bibleTexts.schema.json +0 -60
  217. package/data/schemas/clones.schema.json +0 -63
  218. package/data/schemas/countries.schema.json +0 -84
  219. package/data/schemas/foundationsCurriculums.schema.json +0 -20
  220. package/data/schemas/introductionTranslations.schema.json +0 -101
  221. package/data/schemas/languages.schema.json +0 -365
  222. package/data/schemas/mediaDurations.schema.json +0 -41
  223. package/data/schemas/notification.schema.json +0 -111
  224. package/data/schemas/numeralMaps.schema.json +0 -57
  225. package/data/schemas/questionTranslations.schema.json +0 -20
  226. package/data/schemas/questions.schema.json +0 -29
  227. package/data/schemas/questionsCurriculums.schema.json +0 -34
  228. package/data/schemas/releaseNotes.schema.json +0 -21
  229. package/data/schemas/screenshots.schema.json +0 -23
  230. package/data/schemas/setTranslations.schema.json +0 -70
  231. package/data/schemas/sets.schema.json +0 -109
  232. package/data/schemas/topicsCurriculums.schema.json +0 -20
  233. package/data/screenshots.json +0 -17
  234. package/data/screenshots.ts +0 -4
  235. package/data/sets.json +0 -12258
  236. package/data/sets.ts +0 -4
  237. package/data/specialIds.json +0 -72
  238. package/data/specialIds.ts +0 -19
  239. package/data/timings/som.json +0 -9150
  240. package/data/topicsCurriculums.json +0 -131
  241. package/data/topicsCurriculums.ts +0 -4
  242. package/data/typescript/appTranslations.ts +0 -322
  243. package/data/typescript/areas.ts +0 -45
  244. package/data/typescript/aslTimestamps.ts +0 -36
  245. package/data/typescript/bibleAudioAvailableChapters.ts +0 -35
  246. package/data/typescript/bibleAudios.ts +0 -32
  247. package/data/typescript/bibleBookNames.ts +0 -97
  248. package/data/typescript/bibleBooks.ts +0 -63
  249. package/data/typescript/bibleChapters.ts +0 -40
  250. package/data/typescript/bibleStatuses.ts +0 -54
  251. package/data/typescript/bibleTextAvailableChapters.ts +0 -35
  252. package/data/typescript/bibleTexts.ts +0 -63
  253. package/data/typescript/clones.ts +0 -35
  254. package/data/typescript/countries.ts +0 -152
  255. package/data/typescript/foundationsCurriculums.ts +0 -15
  256. package/data/typescript/introductionTranslations.ts +0 -60
  257. package/data/typescript/languages.ts +0 -369
  258. package/data/typescript/mediaDurations.ts +0 -89
  259. package/data/typescript/notification.ts +0 -189
  260. package/data/typescript/numeralMaps.ts +0 -74
  261. package/data/typescript/questionTranslations.ts +0 -6
  262. package/data/typescript/questions.ts +0 -25
  263. package/data/typescript/questionsCurriculums.ts +0 -26
  264. package/data/typescript/releaseNotes.ts +0 -10
  265. package/data/typescript/screenshots.ts +0 -52
  266. package/data/typescript/setTranslations.ts +0 -39
  267. package/data/typescript/sets.ts +0 -105
  268. package/data/typescript/topicsCurriculums.ts +0 -15
  269. package/data/youtube/playlists.json +0 -28
  270. package/data/youtube/videos.json +0 -262
  271. package/data/youtube/videos.ts +0 -2
  272. package/functions/activeCampaign.ts +0 -127
  273. package/functions/bibleChapterUtils.ts +0 -241
  274. package/functions/crowdin.ts +0 -51
  275. package/functions/languages.ts +0 -284
  276. package/functions/scripturePassages.ts +0 -368
  277. package/functions/sets.ts +0 -495
  278. package/translations/appTranslations.json +0 -10239
  279. package/translations/appTranslations.ts +0 -4
  280. package/translations/introductionTranslations.json +0 -422
  281. package/translations/introductionTranslations.ts +0 -4
  282. package/translations/questionTranslations.json +0 -1472
  283. package/translations/questionTranslations.ts +0 -4
  284. package/translations/setTranslations.json +0 -30257
  285. package/translations/setTranslations.ts +0 -4
  286. package/translations/spokenQuestionTranslations.json +0 -1472
  287. package/types/analytics.ts +0 -147
  288. package/types/completions.ts +0 -9
  289. package/types/feedback.ts +0 -27
  290. package/types/languages.ts +0 -37
  291. package/types/notifications.ts +0 -37
  292. package/types/sets.ts +0 -84
  293. package/types/users.ts +0 -162
@@ -0,0 +1,119 @@
1
+ import type { ArticleSession, BibleSession, WahaShareContent } from './users';
2
+ type Meeting = {
3
+ name: 'OpenPlayScreen';
4
+ payload: {
5
+ isLessonDownloaded: boolean;
6
+ };
7
+ } | {
8
+ name: 'CompleteLesson';
9
+ payload: {
10
+ timeToCompletion: number;
11
+ isAudioFacilitator: boolean;
12
+ };
13
+ } | {
14
+ name: 'ScheduleNextMeeting';
15
+ payload: {
16
+ date: number;
17
+ };
18
+ } | {
19
+ name: 'LeavePlayScreen';
20
+ payload: {
21
+ sessionLength: number;
22
+ endedInCompletion: boolean;
23
+ };
24
+ } | {
25
+ name: 'DbsCast';
26
+ payload: null;
27
+ };
28
+ type Article = {
29
+ name: 'ArticleSession';
30
+ payload: ArticleSession;
31
+ };
32
+ type Share = {
33
+ name: 'Share';
34
+ payload: {
35
+ content: WahaShareContent;
36
+ lessonId?: string;
37
+ };
38
+ };
39
+ type Misc = {
40
+ name: 'UnlockMobilizationTools';
41
+ payload: null;
42
+ } | {
43
+ name: 'EnableSecurityMode';
44
+ payload: null;
45
+ } | {
46
+ name: 'ClearStorage';
47
+ payload: {
48
+ languageToClear: string;
49
+ };
50
+ } | {
51
+ name: 'RequestCode';
52
+ payload: null;
53
+ } | {
54
+ name: 'ClickGiveButton';
55
+ payload: null;
56
+ } | {
57
+ name: 'NotificationOptIn';
58
+ payload: {
59
+ enabled: boolean;
60
+ };
61
+ } | {
62
+ name: 'FinishOnboarding';
63
+ payload: {
64
+ skipped: boolean;
65
+ };
66
+ } | {
67
+ name: 'ClickNotification';
68
+ payload: {
69
+ id: string;
70
+ notificationDate: string;
71
+ };
72
+ } | {
73
+ name: 'ClickNotificationLink';
74
+ payload: {
75
+ id: string;
76
+ notificationDate: string;
77
+ };
78
+ } | {
79
+ name: 'SetInitialLanguages';
80
+ payload: {
81
+ ipCountry: string;
82
+ phoneCountry: string;
83
+ languages: string[];
84
+ };
85
+ } | {
86
+ name: 'ChangeInitialLanguages';
87
+ payload: {
88
+ ipCountry: string;
89
+ phoneCountry: string;
90
+ languages: string[];
91
+ };
92
+ } | {
93
+ name: 'AskForReview';
94
+ payload: null;
95
+ };
96
+ type Note = {
97
+ name: 'MakeNote';
98
+ payload: null;
99
+ } | {
100
+ name: 'EditNote';
101
+ payload: null;
102
+ } | {
103
+ name: 'ViewNotes';
104
+ payload: null;
105
+ } | {
106
+ name: 'SavedNote';
107
+ payload: {
108
+ length: number;
109
+ };
110
+ } | {
111
+ name: 'DeleteNote';
112
+ payload: null;
113
+ };
114
+ type Bible = {
115
+ name: 'BibleSession';
116
+ payload: BibleSession;
117
+ };
118
+ export type AnalyticsEvent = Meeting | Share | Misc | Article | Bible | Note;
119
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import type { CompletionEvent } from './users';
2
+ export interface SetProgress {
3
+ completionEvents: CompletionEvent[];
4
+ uniqueCompletions: CompletionEvent[];
5
+ total: number;
6
+ progress: number;
7
+ percent: number;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,60 @@
1
+ import { z } from 'zod';
2
+ export declare const FeedbackSchema: z.ZodObject<{
3
+ language: z.ZodString;
4
+ appVersion: z.ZodString;
5
+ OS: z.ZodString;
6
+ timeSubmitted: z.ZodNumber;
7
+ formName: z.ZodString;
8
+ country: z.ZodOptional<z.ZodString>;
9
+ city: z.ZodOptional<z.ZodString>;
10
+ lessonId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ wahaUserId: z.ZodOptional<z.ZodString>;
12
+ name: z.ZodOptional<z.ZodString>;
13
+ email: z.ZodString;
14
+ message: z.ZodOptional<z.ZodString>;
15
+ journey: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodBoolean>]>>;
16
+ goals: z.ZodOptional<z.ZodString>;
17
+ hear: z.ZodOptional<z.ZodString>;
18
+ beforeWaha: z.ZodOptional<z.ZodString>;
19
+ godDone: z.ZodOptional<z.ZodString>;
20
+ findOut: z.ZodOptional<z.ZodString>;
21
+ }, "strip", z.ZodTypeAny, {
22
+ language: string;
23
+ email: string;
24
+ appVersion: string;
25
+ OS: string;
26
+ timeSubmitted: number;
27
+ formName: string;
28
+ message?: string | undefined;
29
+ name?: string | undefined;
30
+ city?: string | undefined;
31
+ lessonId?: string | null | undefined;
32
+ country?: string | undefined;
33
+ wahaUserId?: string | undefined;
34
+ journey?: string | Record<string, boolean> | undefined;
35
+ goals?: string | undefined;
36
+ hear?: string | undefined;
37
+ beforeWaha?: string | undefined;
38
+ godDone?: string | undefined;
39
+ findOut?: string | undefined;
40
+ }, {
41
+ language: string;
42
+ email: string;
43
+ appVersion: string;
44
+ OS: string;
45
+ timeSubmitted: number;
46
+ formName: string;
47
+ message?: string | undefined;
48
+ name?: string | undefined;
49
+ city?: string | undefined;
50
+ lessonId?: string | null | undefined;
51
+ country?: string | undefined;
52
+ wahaUserId?: string | undefined;
53
+ journey?: string | Record<string, boolean> | undefined;
54
+ goals?: string | undefined;
55
+ hear?: string | undefined;
56
+ beforeWaha?: string | undefined;
57
+ godDone?: string | undefined;
58
+ findOut?: string | undefined;
59
+ }>;
60
+ export type Feedback = z.infer<typeof FeedbackSchema>;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FeedbackSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.FeedbackSchema = zod_1.z.object({
6
+ language: zod_1.z.string(),
7
+ appVersion: zod_1.z.string(),
8
+ OS: zod_1.z.string(),
9
+ timeSubmitted: zod_1.z.number(),
10
+ formName: zod_1.z.string(),
11
+ country: zod_1.z.string().optional(),
12
+ city: zod_1.z.string().optional(),
13
+ lessonId: zod_1.z.string().nullable().optional(),
14
+ wahaUserId: zod_1.z.string().optional(),
15
+ name: zod_1.z.string().optional(),
16
+ email: zod_1.z.string().email(),
17
+ // For the standard contact us form.
18
+ message: zod_1.z.string().optional(),
19
+ // For the code request form.
20
+ journey: zod_1.z.union([zod_1.z.string(), zod_1.z.record(zod_1.z.string(), zod_1.z.boolean())]).optional(),
21
+ goals: zod_1.z.string().optional(),
22
+ hear: zod_1.z.string().optional(),
23
+ // For the share story form.
24
+ beforeWaha: zod_1.z.string().optional(),
25
+ godDone: zod_1.z.string().optional(),
26
+ findOut: zod_1.z.string().optional(),
27
+ });
@@ -0,0 +1,31 @@
1
+ import type { BibleAudios } from '../data/typescript/bibleAudios';
2
+ import type { BibleTexts } from '../data/typescript/bibleTexts';
3
+ import type { IntroductionTranslations } from '../data/typescript/introductionTranslations';
4
+ import type { Languages } from '../data/typescript/languages';
5
+ import type { QuestionsCurriculums } from '../data/typescript/questionsCurriculums';
6
+ import type { QuestionTranslations } from '../data/typescript/questionTranslations';
7
+ import type { SetTranslations } from '../data/typescript/setTranslations';
8
+ type Language = Languages[number];
9
+ type BibleText = BibleTexts[number];
10
+ type BibleAudio = BibleAudios[number];
11
+ export interface BibleInfo extends Omit<BibleText, 'language' | 'copyright'>, Omit<BibleAudio, 'language' | 'copyright'> {
12
+ language: Language;
13
+ availableTextChapters: string[];
14
+ availableAudioChapters: string[];
15
+ fullCopyright: string;
16
+ bookNames: Record<string, string>;
17
+ }
18
+ export interface LanguageInfo extends Omit<Language, 'bible' | 'bibleFallback'> {
19
+ sets: string[];
20
+ questionSets: QuestionsCurriculums[number]['questionSets'];
21
+ bible: BibleInfo;
22
+ bibleFallback: BibleInfo | undefined;
23
+ trainingVideoLanguage: string;
24
+ isRtl: boolean;
25
+ }
26
+ export interface MeetTranslations {
27
+ sets: SetTranslations[string];
28
+ questions: QuestionTranslations[string];
29
+ introductions: IntroductionTranslations[string];
30
+ }
31
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,128 @@
1
+ import { z } from 'zod';
2
+ export declare const PushNotificationPayloadSchema: z.ZodObject<{
3
+ actionUrl: z.ZodOptional<z.ZodString>;
4
+ /**
5
+ * We want the full title, not the push title, to be attached to the
6
+ * notification.
7
+ */
8
+ title: z.ZodString;
9
+ /**
10
+ * We want the full body, not the push body, to be attached to the
11
+ * notification.
12
+ */
13
+ body: z.ZodString;
14
+ titleSource: z.ZodString;
15
+ bodySource: z.ZodString;
16
+ verified: z.ZodBoolean;
17
+ imageUrl: z.ZodOptional<z.ZodString>;
18
+ wahaUserId: z.ZodString;
19
+ date: z.ZodString;
20
+ }, "strip", z.ZodTypeAny, {
21
+ date: string;
22
+ title: string;
23
+ body: string;
24
+ verified: boolean;
25
+ wahaUserId: string;
26
+ titleSource: string;
27
+ bodySource: string;
28
+ actionUrl?: string | undefined;
29
+ imageUrl?: string | undefined;
30
+ }, {
31
+ date: string;
32
+ title: string;
33
+ body: string;
34
+ verified: boolean;
35
+ wahaUserId: string;
36
+ titleSource: string;
37
+ bodySource: string;
38
+ actionUrl?: string | undefined;
39
+ imageUrl?: string | undefined;
40
+ }>;
41
+ export type PushNotificationPayload = z.infer<typeof PushNotificationPayloadSchema>;
42
+ export declare const PushNotificationRecordSchema: z.ZodObject<{
43
+ date: z.ZodString;
44
+ notification: z.ZodObject<{
45
+ title: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNever]>>, Record<string, string>, Record<string, string>>;
46
+ body: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNever]>>, Record<string, string>, Record<string, string>>;
47
+ actionUrl: z.ZodOptional<z.ZodString>;
48
+ countriesToNotSendTo: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
49
+ countriesToSendTo: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
50
+ faithJourney: z.ZodOptional<z.ZodEnum<["all", "seekers", "believers"]>>;
51
+ imageUrl: z.ZodOptional<z.ZodString>;
52
+ meetLanguages: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"all">, z.ZodArray<z.ZodString, "many">]>>;
53
+ minCompletions: z.ZodOptional<z.ZodNumber>;
54
+ pushBody: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNever]>>, Record<string, string>, Record<string, string>>>;
55
+ pushTitle: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNever]>>, Record<string, string>, Record<string, string>>>;
56
+ pushTokens: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
57
+ verified: z.ZodArray<z.ZodString, "many">;
58
+ }, "strict", z.ZodTypeAny, {
59
+ title: Record<string, string>;
60
+ body: Record<string, string>;
61
+ verified: string[];
62
+ actionUrl?: string | undefined;
63
+ countriesToNotSendTo?: string[] | undefined;
64
+ countriesToSendTo?: string[] | undefined;
65
+ faithJourney?: "all" | "seekers" | "believers" | undefined;
66
+ imageUrl?: string | undefined;
67
+ meetLanguages?: string[] | "all" | undefined;
68
+ minCompletions?: number | undefined;
69
+ pushBody?: Record<string, string> | undefined;
70
+ pushTitle?: Record<string, string> | undefined;
71
+ pushTokens?: string[] | undefined;
72
+ }, {
73
+ title: Record<string, string>;
74
+ body: Record<string, string>;
75
+ verified: string[];
76
+ actionUrl?: string | undefined;
77
+ countriesToNotSendTo?: string[] | undefined;
78
+ countriesToSendTo?: string[] | undefined;
79
+ faithJourney?: "all" | "seekers" | "believers" | undefined;
80
+ imageUrl?: string | undefined;
81
+ meetLanguages?: string[] | "all" | undefined;
82
+ minCompletions?: number | undefined;
83
+ pushBody?: Record<string, string> | undefined;
84
+ pushTitle?: Record<string, string> | undefined;
85
+ pushTokens?: string[] | undefined;
86
+ }>;
87
+ receivedTokens: z.ZodArray<z.ZodString, "many">;
88
+ receivedUserIds: z.ZodArray<z.ZodString, "many">;
89
+ }, "strip", z.ZodTypeAny, {
90
+ date: string;
91
+ notification: {
92
+ title: Record<string, string>;
93
+ body: Record<string, string>;
94
+ verified: string[];
95
+ actionUrl?: string | undefined;
96
+ countriesToNotSendTo?: string[] | undefined;
97
+ countriesToSendTo?: string[] | undefined;
98
+ faithJourney?: "all" | "seekers" | "believers" | undefined;
99
+ imageUrl?: string | undefined;
100
+ meetLanguages?: string[] | "all" | undefined;
101
+ minCompletions?: number | undefined;
102
+ pushBody?: Record<string, string> | undefined;
103
+ pushTitle?: Record<string, string> | undefined;
104
+ pushTokens?: string[] | undefined;
105
+ };
106
+ receivedTokens: string[];
107
+ receivedUserIds: string[];
108
+ }, {
109
+ date: string;
110
+ notification: {
111
+ title: Record<string, string>;
112
+ body: Record<string, string>;
113
+ verified: string[];
114
+ actionUrl?: string | undefined;
115
+ countriesToNotSendTo?: string[] | undefined;
116
+ countriesToSendTo?: string[] | undefined;
117
+ faithJourney?: "all" | "seekers" | "believers" | undefined;
118
+ imageUrl?: string | undefined;
119
+ meetLanguages?: string[] | "all" | undefined;
120
+ minCompletions?: number | undefined;
121
+ pushBody?: Record<string, string> | undefined;
122
+ pushTitle?: Record<string, string> | undefined;
123
+ pushTokens?: string[] | undefined;
124
+ };
125
+ receivedTokens: string[];
126
+ receivedUserIds: string[];
127
+ }>;
128
+ export type PushNotificationRecord = z.infer<typeof PushNotificationRecordSchema>;
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PushNotificationRecordSchema = exports.PushNotificationPayloadSchema = void 0;
4
+ const notification_1 = require("../data/typescript/notification");
5
+ const zod_1 = require("zod");
6
+ exports.PushNotificationPayloadSchema = zod_1.z.object({
7
+ actionUrl: zod_1.z.string().url().optional(),
8
+ /**
9
+ * We want the full title, not the push title, to be attached to the
10
+ * notification.
11
+ */
12
+ title: zod_1.z.string(),
13
+ /**
14
+ * We want the full body, not the push body, to be attached to the
15
+ * notification.
16
+ */
17
+ body: zod_1.z.string(),
18
+ titleSource: zod_1.z.string(),
19
+ bodySource: zod_1.z.string(),
20
+ verified: zod_1.z.boolean(),
21
+ imageUrl: zod_1.z.string().url().optional(),
22
+ wahaUserId: zod_1.z.string(),
23
+ date: zod_1.z.string(),
24
+ });
25
+ exports.PushNotificationRecordSchema = zod_1.z.object({
26
+ date: zod_1.z.string(),
27
+ notification: notification_1.notification,
28
+ receivedTokens: zod_1.z.array(zod_1.z.string()),
29
+ receivedUserIds: zod_1.z.array(zod_1.z.string()),
30
+ });
@@ -0,0 +1,70 @@
1
+ import { type Languages } from '../data/typescript/languages';
2
+ import { type Sets } from '../data/typescript/sets';
3
+ export type Set = Sets[number];
4
+ export type Lesson = Sets[number]['lessons'][number];
5
+ export type SetCategory = 'Foundations' | 'Topics' | 'WahaTraining';
6
+ export interface SetInfo extends Set {
7
+ meetLanguageId: Languages[number]['languageId'];
8
+ category: SetCategory;
9
+ setNumber: string;
10
+ setTitle?: string;
11
+ setSubtitle: string;
12
+ setDescription?: string;
13
+ setTag?: string;
14
+ setLink: string;
15
+ }
16
+ export interface Content {
17
+ languageId: string;
18
+ id: string;
19
+ localFileName: string;
20
+ remoteFileName: string;
21
+ path: string;
22
+ url: string;
23
+ }
24
+ interface BaseInfo {
25
+ lessonNumber: string;
26
+ lessonTitle: string | undefined;
27
+ lessonIntroduction: string | undefined;
28
+ lessonLink: string;
29
+ sections: Section[];
30
+ }
31
+ export interface Section {
32
+ id: string;
33
+ header: string | null;
34
+ text: string;
35
+ isChapter: boolean;
36
+ hasBeep: boolean;
37
+ index: number;
38
+ indexWithinChapter: number;
39
+ chapter: Chapter | null;
40
+ }
41
+ export interface DbsInfo extends BaseInfo, SetInfo, Lesson {
42
+ type: 'dbs';
43
+ full: Content;
44
+ dbsCast: {
45
+ remoteFileName: string;
46
+ url: string;
47
+ };
48
+ lessonIntroduction: string | undefined;
49
+ passagesString: string;
50
+ }
51
+ export interface VideoInfo extends BaseInfo, SetInfo, Lesson {
52
+ type: 'video';
53
+ video: Content;
54
+ lessonSectionHeader: string | undefined;
55
+ lessonSectionBody: string | undefined;
56
+ youtubeLink: string | undefined;
57
+ passagesString: string;
58
+ }
59
+ export interface EqInfo extends BaseInfo, SetInfo, Lesson {
60
+ type: 'eq';
61
+ eq: Content;
62
+ }
63
+ export type LessonInfo = DbsInfo | VideoInfo | EqInfo;
64
+ export declare enum Chapter {
65
+ FELLOWSHIP = "f",
66
+ INTRODUCTION = "i",
67
+ STORY = "s",
68
+ APPLICATION = "a"
69
+ }
70
+ export {};
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Chapter = void 0;
4
+ var Chapter;
5
+ (function (Chapter) {
6
+ Chapter["FELLOWSHIP"] = "f";
7
+ Chapter["INTRODUCTION"] = "i";
8
+ Chapter["STORY"] = "s";
9
+ Chapter["APPLICATION"] = "a";
10
+ })(Chapter || (exports.Chapter = Chapter = {}));