waha-shared 1.0.456 → 1.0.458

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 (35) hide show
  1. package/dist/data/bibleStatuses/bibleStatuses.json +198 -196
  2. package/dist/data/bibleTexts/bibleTexts.json +11 -0
  3. package/dist/data/languages/index.d.ts +5 -4
  4. package/dist/data/languages/languages.json +92 -20
  5. package/dist/data/languages/languages.schema.json +83 -3
  6. package/dist/data/languages/languages.zod.d.ts +94 -23
  7. package/dist/data/languages/languages.zod.js +78 -2
  8. package/dist/data/mediaDurations/mediaDurations.json +147 -128
  9. package/dist/data/releaseNotes/releaseNotes.json +56 -2
  10. package/dist/data/translationsApp/index.d.ts +33 -4
  11. package/dist/data/translationsApp/translationsApp.json +1190 -1
  12. package/dist/data/translationsApp/translationsApp.schema.json +85 -23
  13. package/dist/data/translationsApp/translationsApp.zod.d.ts +107 -18
  14. package/dist/data/translationsApp/translationsApp.zod.js +76 -30
  15. package/dist/functions/magicLink.d.ts +12 -22
  16. package/dist/functions/magicLink.js +19 -25
  17. package/dist/functions/sets.js +4 -4
  18. package/dist/functions/userPaths.d.ts +90 -0
  19. package/dist/functions/userPaths.js +55 -0
  20. package/dist/types/analytics.d.ts +3 -1
  21. package/dist/types/bibleChapters.d.ts +8 -0
  22. package/dist/types/bibleChapters.js +2 -1
  23. package/dist/types/bookmarks.d.ts +23 -0
  24. package/dist/types/bookmarks.js +19 -0
  25. package/dist/types/completions.d.ts +32 -1
  26. package/dist/types/completions.js +22 -0
  27. package/dist/types/logs.d.ts +83 -0
  28. package/dist/types/logs.js +52 -0
  29. package/dist/types/meetFavorites.d.ts +10 -0
  30. package/dist/types/meetFavorites.js +11 -0
  31. package/dist/types/notes.d.ts +10 -0
  32. package/dist/types/notes.js +13 -0
  33. package/dist/types/users.d.ts +189 -309
  34. package/dist/types/users.js +152 -135
  35. package/package.json +9 -9
@@ -1,333 +1,174 @@
1
- import { z } from 'zod';
1
+ import z from 'zod';
2
2
  export type FaithJourney = 'seekers' | 'believers' | 'all';
3
3
  export type WahaAppVersion = `${number}.${number}.${number}`;
4
- export declare const DesireId: z.ZodEnum<{
5
- talk_to_others_about_jesus: "talk_to_others_about_jesus";
6
- build_a_team_of_disciple_makers: "build_a_team_of_disciple_makers";
7
- reach_my_entire_people_or_nation_for_god: "reach_my_entire_people_or_nation_for_god";
8
- understand_wahas_impact: "understand_wahas_impact";
9
- understand_how_waha_works: "understand_how_waha_works";
10
- get_coaching: "get_coaching";
11
- see_god_transform_my_community: "see_god_transform_my_community";
12
- discover_whats_in_the_bible: "discover_whats_in_the_bible";
13
- find_hope_in_my_troubles: "find_hope_in_my_troubles";
14
- get_right_with_god: "get_right_with_god";
15
- learn_more_about_jesus: "learn_more_about_jesus";
4
+ export declare const NotificationPermission: z.ZodEnum<{
5
+ granted: "granted";
6
+ undetermined: "undetermined";
7
+ denied: "denied";
16
8
  }>;
17
- export type DesireId = z.infer<typeof DesireId>;
18
- export declare const WahaUserState: z.ZodObject<{
19
- wahaUserId: z.ZodOptional<z.ZodString>;
20
- name: z.ZodOptional<z.ZodString>;
9
+ export type NotificationPermission = z.infer<typeof NotificationPermission>;
10
+ /** User data that is shared across devices. */
11
+ export declare const SharedUserReduxState: z.ZodObject<{
21
12
  email: z.ZodOptional<z.ZodEmail>;
22
13
  location: z.ZodOptional<z.ZodObject<{
23
14
  city: z.ZodOptional<z.ZodString>;
24
15
  country: z.ZodOptional<z.ZodString>;
25
16
  region: z.ZodOptional<z.ZodString>;
26
17
  }, z.core.$strip>>;
18
+ phoneNumber: z.ZodOptional<z.ZodString>;
19
+ isInAGroup: z.ZodOptional<z.ZodBoolean>;
20
+ isSubscribedToEmailUpdates: z.ZodOptional<z.ZodBoolean>;
21
+ hasDonated: z.ZodOptional<z.ZodBoolean>;
22
+ }, z.core.$strip>;
23
+ /**
24
+ * User data that is device-specific.
25
+ */
26
+ export declare const DeviceUserReduxState: z.ZodObject<{
27
27
  pastLocations: z.ZodOptional<z.ZodArray<z.ZodObject<{
28
28
  city: z.ZodOptional<z.ZodString>;
29
29
  country: z.ZodOptional<z.ZodString>;
30
30
  region: z.ZodOptional<z.ZodString>;
31
31
  }, z.core.$strip>>>;
32
- phoneLocation: z.ZodOptional<z.ZodString>;
33
- isSubscribedToEmailUpdates: z.ZodOptional<z.ZodBoolean>;
34
- pushToken: z.ZodOptional<z.ZodString>;
35
- notificationPermission: z.ZodEnum<{
36
- granted: "granted";
37
- undetermined: "undetermined";
38
- denied: "denied";
39
- }>;
40
32
  utm: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
41
- firstOpen: z.ZodOptional<z.ZodNumber>;
42
- finishedOnboarding: z.ZodOptional<z.ZodNumber>;
43
- howFamiliarWithBible: z.ZodOptional<z.ZodNumber>;
44
- followingFor2Years: z.ZodOptional<z.ZodNumber>;
45
- notificationsClicked: z.ZodOptional<z.ZodNumber>;
46
- notificationLinksClicked: z.ZodOptional<z.ZodNumber>;
47
- isBeliever: z.ZodOptional<z.ZodBoolean>;
48
- isInAGroup: z.ZodOptional<z.ZodBoolean>;
49
- desires: z.ZodOptional<z.ZodArray<z.ZodEnum<{
50
- talk_to_others_about_jesus: "talk_to_others_about_jesus";
51
- build_a_team_of_disciple_makers: "build_a_team_of_disciple_makers";
52
- reach_my_entire_people_or_nation_for_god: "reach_my_entire_people_or_nation_for_god";
53
- understand_wahas_impact: "understand_wahas_impact";
54
- understand_how_waha_works: "understand_how_waha_works";
55
- get_coaching: "get_coaching";
56
- see_god_transform_my_community: "see_god_transform_my_community";
57
- discover_whats_in_the_bible: "discover_whats_in_the_bible";
58
- find_hope_in_my_troubles: "find_hope_in_my_troubles";
59
- get_right_with_god: "get_right_with_god";
60
- learn_more_about_jesus: "learn_more_about_jesus";
61
- }>>>;
62
- customDesire: z.ZodOptional<z.ZodString>;
63
- isCCWorker: z.ZodOptional<z.ZodBoolean>;
64
- isAdvocate: z.ZodOptional<z.ZodBoolean>;
65
- phoneNumber: z.ZodOptional<z.ZodString>;
66
33
  engagementScore: z.ZodOptional<z.ZodNumber>;
67
- hasDonated: z.ZodOptional<z.ZodBoolean>;
68
- lastDonationAsk: z.ZodOptional<z.ZodNumber>;
69
- numberOfDonationAsks: z.ZodOptional<z.ZodNumber>;
70
- lastSeenBannerAskNumber: z.ZodOptional<z.ZodNumber>;
71
- onboardingStatus: z.ZodOptional<z.ZodEnum<{
72
- "skipped-from-first": "skipped-from-first";
73
- "skipped-from-second": "skipped-from-second";
74
- "finished-from-first": "finished-from-first";
75
- "finished-from-second": "finished-from-second";
76
- "finished-from-languages": "finished-from-languages";
77
- }>>;
78
- }, z.core.$strip>;
79
- export type WahaUserState = z.infer<typeof WahaUserState>;
80
- export declare const WahaAppVersion: z.ZodString;
81
- export declare const CompletionEvent: z.ZodObject<{
82
- lessonId: z.ZodString;
83
- meetLanguageId: z.ZodString;
84
- time: z.ZodNumber;
85
- country: z.ZodOptional<z.ZodString>;
86
- region: z.ZodOptional<z.ZodString>;
87
- city: z.ZodOptional<z.ZodString>;
88
- manual: z.ZodOptional<z.ZodBoolean>;
89
- howManyObeyed: z.ZodOptional<z.ZodEnum<{
90
- red: "red";
91
- yellow: "yellow";
92
- green: "green";
93
- }>>;
94
- howManyShared: z.ZodOptional<z.ZodEnum<{
95
- red: "red";
96
- yellow: "yellow";
97
- green: "green";
98
- }>>;
99
- }, z.core.$strip>;
100
- export type CompletionEvent = z.infer<typeof CompletionEvent>;
101
- export declare const WahaShareContent: z.ZodEnum<{
102
- lesson: "lesson";
103
- note: "note";
104
- setLink: "setLink";
105
- lessonLink: "lessonLink";
106
- notification: "notification";
107
- app: "app";
108
- passcode: "passcode";
109
- lessonAudio: "lessonAudio";
110
- lessonText: "lessonText";
111
- storyText: "storyText";
112
- storyAudio: "storyAudio";
113
- meetingInvite: "meetingInvite";
114
- meetingInviteOnboarding: "meetingInviteOnboarding";
115
- articleLink: "articleLink";
116
- videoLink: "videoLink";
117
- meetingSchedule: "meetingSchedule";
118
- scriptureText: "scriptureText";
119
- mt: "mt";
120
- scriptureAudio: "scriptureAudio";
121
- inviteGroup: "inviteGroup";
122
- offlineVersionLink: "offlineVersionLink";
123
- customSet: "customSet";
124
- microLesson: "microLesson";
125
- }>;
126
- export type WahaShareContent = z.infer<typeof WahaShareContent>;
127
- export declare const ShareLogEvent: z.ZodObject<{
128
- time: z.ZodNumber;
129
- content: z.ZodEnum<{
130
- lesson: "lesson";
131
- note: "note";
132
- setLink: "setLink";
133
- lessonLink: "lessonLink";
134
- notification: "notification";
135
- app: "app";
136
- passcode: "passcode";
137
- lessonAudio: "lessonAudio";
138
- lessonText: "lessonText";
139
- storyText: "storyText";
140
- storyAudio: "storyAudio";
141
- meetingInvite: "meetingInvite";
142
- meetingInviteOnboarding: "meetingInviteOnboarding";
143
- articleLink: "articleLink";
144
- videoLink: "videoLink";
145
- meetingSchedule: "meetingSchedule";
146
- scriptureText: "scriptureText";
147
- mt: "mt";
148
- scriptureAudio: "scriptureAudio";
149
- inviteGroup: "inviteGroup";
150
- offlineVersionLink: "offlineVersionLink";
151
- customSet: "customSet";
152
- microLesson: "microLesson";
153
- }>;
154
- lessonId: z.ZodOptional<z.ZodString>;
155
- articleSlug: z.ZodOptional<z.ZodString>;
156
- microLessonSlug: z.ZodOptional<z.ZodString>;
157
- }, z.core.$strip>;
158
- export type ShareLogEvent = z.infer<typeof ShareLogEvent>;
159
- export declare const BibleSession: z.ZodObject<{
160
- chapter: z.ZodString;
161
- timeSpent: z.ZodNumber;
162
- startTime: z.ZodNumber;
163
- translation: z.ZodString;
164
- }, z.core.$strip>;
165
- export type BibleSession = z.infer<typeof BibleSession>;
166
- export declare const ArticleSession: z.ZodObject<{
167
- articleSlug: z.ZodString;
168
- timeSpent: z.ZodNumber;
169
- startTime: z.ZodNumber;
34
+ finishedOnboarding: z.ZodOptional<z.ZodNumber>;
35
+ firstOpen: z.ZodOptional<z.ZodNumber>;
170
36
  }, z.core.$strip>;
171
- export type ArticleSession = z.infer<typeof ArticleSession>;
172
- export declare const WahaUser: z.ZodObject<{
173
- wahaUserId: z.ZodOptional<z.ZodString>;
174
- name: z.ZodOptional<z.ZodString>;
37
+ export declare const UserReduxState: z.ZodObject<{
38
+ pastLocations: z.ZodOptional<z.ZodArray<z.ZodObject<{
39
+ city: z.ZodOptional<z.ZodString>;
40
+ country: z.ZodOptional<z.ZodString>;
41
+ region: z.ZodOptional<z.ZodString>;
42
+ }, z.core.$strip>>>;
43
+ utm: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
44
+ engagementScore: z.ZodOptional<z.ZodNumber>;
45
+ finishedOnboarding: z.ZodOptional<z.ZodNumber>;
46
+ firstOpen: z.ZodOptional<z.ZodNumber>;
175
47
  email: z.ZodOptional<z.ZodEmail>;
176
48
  location: z.ZodOptional<z.ZodObject<{
177
49
  city: z.ZodOptional<z.ZodString>;
178
50
  country: z.ZodOptional<z.ZodString>;
179
51
  region: z.ZodOptional<z.ZodString>;
180
52
  }, z.core.$strip>>;
53
+ phoneNumber: z.ZodOptional<z.ZodString>;
54
+ isInAGroup: z.ZodOptional<z.ZodBoolean>;
55
+ isSubscribedToEmailUpdates: z.ZodOptional<z.ZodBoolean>;
56
+ hasDonated: z.ZodOptional<z.ZodBoolean>;
57
+ }, z.core.$strip>;
58
+ export type UserReduxState = z.infer<typeof UserReduxState>;
59
+ export declare const WahaAppVersion: z.ZodString;
60
+ export declare const DevicePlatform: z.ZodEnum<{
61
+ web: "web";
62
+ ios: "ios";
63
+ android: "android";
64
+ macos: "macos";
65
+ windows: "windows";
66
+ }>;
67
+ export type DevicePlatform = z.infer<typeof DevicePlatform>;
68
+ /**
69
+ * Everything known about a single device/install. One doc per device in the
70
+ * `users2/{uid}/devices/{deviceId}` subcollection.
71
+ */
72
+ export declare const DeviceInfo: z.ZodObject<{
181
73
  pastLocations: z.ZodOptional<z.ZodArray<z.ZodObject<{
182
74
  city: z.ZodOptional<z.ZodString>;
183
75
  country: z.ZodOptional<z.ZodString>;
184
76
  region: z.ZodOptional<z.ZodString>;
185
77
  }, z.core.$strip>>>;
78
+ utm: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
79
+ engagementScore: z.ZodOptional<z.ZodNumber>;
80
+ finishedOnboarding: z.ZodOptional<z.ZodNumber>;
81
+ firstOpen: z.ZodOptional<z.ZodNumber>;
186
82
  phoneLocation: z.ZodOptional<z.ZodString>;
187
- isSubscribedToEmailUpdates: z.ZodOptional<z.ZodBoolean>;
188
- notificationPermission: z.ZodEnum<{
83
+ pushToken: z.ZodOptional<z.ZodString>;
84
+ notificationPermission: z.ZodOptional<z.ZodEnum<{
189
85
  granted: "granted";
190
86
  undetermined: "undetermined";
191
87
  denied: "denied";
192
- }>;
193
- utm: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
194
- firstOpen: z.ZodOptional<z.ZodNumber>;
195
- finishedOnboarding: z.ZodOptional<z.ZodNumber>;
196
- howFamiliarWithBible: z.ZodOptional<z.ZodNumber>;
197
- followingFor2Years: z.ZodOptional<z.ZodNumber>;
198
- notificationsClicked: z.ZodOptional<z.ZodNumber>;
199
- notificationLinksClicked: z.ZodOptional<z.ZodNumber>;
200
- isBeliever: z.ZodOptional<z.ZodBoolean>;
201
- isInAGroup: z.ZodOptional<z.ZodBoolean>;
202
- desires: z.ZodOptional<z.ZodArray<z.ZodEnum<{
203
- talk_to_others_about_jesus: "talk_to_others_about_jesus";
204
- build_a_team_of_disciple_makers: "build_a_team_of_disciple_makers";
205
- reach_my_entire_people_or_nation_for_god: "reach_my_entire_people_or_nation_for_god";
206
- understand_wahas_impact: "understand_wahas_impact";
207
- understand_how_waha_works: "understand_how_waha_works";
208
- get_coaching: "get_coaching";
209
- see_god_transform_my_community: "see_god_transform_my_community";
210
- discover_whats_in_the_bible: "discover_whats_in_the_bible";
211
- find_hope_in_my_troubles: "find_hope_in_my_troubles";
212
- get_right_with_god: "get_right_with_god";
213
- learn_more_about_jesus: "learn_more_about_jesus";
214
- }>>>;
215
- customDesire: z.ZodOptional<z.ZodString>;
216
- isCCWorker: z.ZodOptional<z.ZodBoolean>;
217
- isAdvocate: z.ZodOptional<z.ZodBoolean>;
218
- phoneNumber: z.ZodOptional<z.ZodString>;
219
- engagementScore: z.ZodOptional<z.ZodNumber>;
220
- hasDonated: z.ZodOptional<z.ZodBoolean>;
221
- lastDonationAsk: z.ZodOptional<z.ZodNumber>;
222
- numberOfDonationAsks: z.ZodOptional<z.ZodNumber>;
223
- lastSeenBannerAskNumber: z.ZodOptional<z.ZodNumber>;
224
- onboardingStatus: z.ZodOptional<z.ZodEnum<{
225
- "skipped-from-first": "skipped-from-first";
226
- "skipped-from-second": "skipped-from-second";
227
- "finished-from-first": "finished-from-first";
228
- "finished-from-second": "finished-from-second";
229
- "finished-from-languages": "finished-from-languages";
230
88
  }>>;
231
- pushToken: z.ZodOptional<z.ZodString>;
232
- securityModeOn: z.ZodOptional<z.ZodBoolean>;
89
+ platform: z.ZodEnum<{
90
+ web: "web";
91
+ ios: "ios";
92
+ android: "android";
93
+ macos: "macos";
94
+ windows: "windows";
95
+ }>;
96
+ osVersion: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
233
97
  appVersion: z.ZodString;
98
+ securityModeOn: z.ZodBoolean;
234
99
  lastUpdate: z.ZodNumber;
235
- platform: z.ZodString;
236
- completions: z.ZodArray<z.ZodObject<{
237
- lessonId: z.ZodString;
238
- meetLanguageId: z.ZodString;
239
- time: z.ZodNumber;
100
+ }, z.core.$strip>;
101
+ export type DeviceInfo = z.infer<typeof DeviceInfo>;
102
+ export declare const DeviceInfoFields: {
103
+ platform: "platform";
104
+ appVersion: "appVersion";
105
+ pastLocations: "pastLocations";
106
+ utm: "utm";
107
+ engagementScore: "engagementScore";
108
+ finishedOnboarding: "finishedOnboarding";
109
+ firstOpen: "firstOpen";
110
+ phoneLocation: "phoneLocation";
111
+ pushToken: "pushToken";
112
+ notificationPermission: "notificationPermission";
113
+ osVersion: "osVersion";
114
+ securityModeOn: "securityModeOn";
115
+ lastUpdate: "lastUpdate";
116
+ };
117
+ /**
118
+ * User object in Firestore. Subcollections (devices, completions, etc.) are
119
+ * not included in this schema. One doc per user in the `users2/{uid}`
120
+ * collection.
121
+ */
122
+ export declare const WahaUser: z.ZodObject<{
123
+ email: z.ZodOptional<z.ZodEmail>;
124
+ location: z.ZodOptional<z.ZodObject<{
125
+ city: z.ZodOptional<z.ZodString>;
240
126
  country: z.ZodOptional<z.ZodString>;
241
127
  region: z.ZodOptional<z.ZodString>;
242
- city: z.ZodOptional<z.ZodString>;
243
- manual: z.ZodOptional<z.ZodBoolean>;
244
- howManyObeyed: z.ZodOptional<z.ZodEnum<{
245
- red: "red";
246
- yellow: "yellow";
247
- green: "green";
248
- }>>;
249
- howManyShared: z.ZodOptional<z.ZodEnum<{
250
- red: "red";
251
- yellow: "yellow";
252
- green: "green";
253
- }>>;
254
128
  }, z.core.$strip>>;
255
- trainingUnlocked: z.ZodOptional<z.ZodBoolean>;
129
+ phoneNumber: z.ZodOptional<z.ZodString>;
130
+ isInAGroup: z.ZodOptional<z.ZodBoolean>;
131
+ isSubscribedToEmailUpdates: z.ZodOptional<z.ZodBoolean>;
132
+ hasDonated: z.ZodOptional<z.ZodBoolean>;
133
+ wahaUserId: z.ZodString;
134
+ name: z.ZodOptional<z.ZodString>;
135
+ hasAccount: z.ZodBoolean;
256
136
  meet: z.ZodString;
257
- appInterface: z.ZodString;
258
- meetFavorites: z.ZodArray<z.ZodString>;
259
- osVersion: z.ZodNullable<z.ZodString>;
260
137
  isDev: z.ZodBoolean;
261
- shareLog: z.ZodOptional<z.ZodArray<z.ZodObject<{
262
- time: z.ZodNumber;
263
- content: z.ZodEnum<{
264
- lesson: "lesson";
265
- note: "note";
266
- setLink: "setLink";
267
- lessonLink: "lessonLink";
268
- notification: "notification";
269
- app: "app";
270
- passcode: "passcode";
271
- lessonAudio: "lessonAudio";
272
- lessonText: "lessonText";
273
- storyText: "storyText";
274
- storyAudio: "storyAudio";
275
- meetingInvite: "meetingInvite";
276
- meetingInviteOnboarding: "meetingInviteOnboarding";
277
- articleLink: "articleLink";
278
- videoLink: "videoLink";
279
- meetingSchedule: "meetingSchedule";
280
- scriptureText: "scriptureText";
281
- mt: "mt";
282
- scriptureAudio: "scriptureAudio";
283
- inviteGroup: "inviteGroup";
284
- offlineVersionLink: "offlineVersionLink";
285
- customSet: "customSet";
286
- microLesson: "microLesson";
287
- }>;
288
- lessonId: z.ZodOptional<z.ZodString>;
289
- articleSlug: z.ZodOptional<z.ZodString>;
290
- microLessonSlug: z.ZodOptional<z.ZodString>;
291
- }, z.core.$strip>>>;
292
- bibleSessions: z.ZodOptional<z.ZodArray<z.ZodObject<{
293
- chapter: z.ZodString;
294
- timeSpent: z.ZodNumber;
295
- startTime: z.ZodNumber;
296
- translation: z.ZodString;
297
- }, z.core.$strip>>>;
298
- articleSessions: z.ZodOptional<z.ZodArray<z.ZodObject<{
299
- articleSlug: z.ZodString;
300
- timeSpent: z.ZodNumber;
301
- startTime: z.ZodNumber;
302
- }, z.core.$strip>>>;
303
138
  activated: z.ZodOptional<z.ZodBoolean>;
304
- microLessonCompletions: z.ZodOptional<z.ZodArray<z.ZodObject<{
305
- city: z.ZodOptional<z.ZodString>;
306
- country: z.ZodOptional<z.ZodString>;
307
- region: z.ZodOptional<z.ZodString>;
308
- microLessonId: z.ZodString;
309
- userId: z.ZodString;
310
- microLessonTitle: z.ZodString;
311
- languageId: z.ZodString;
312
- campaign: z.ZodOptional<z.ZodString>;
313
- timeStarted: z.ZodNumber;
314
- timeSubmitted: z.ZodNumber;
315
- platform: z.ZodEnum<{
316
- web: "web";
317
- ios: "ios";
318
- android: "android";
319
- }>;
320
- }, z.core.$strip>>>;
321
139
  obedienceScore: z.ZodOptional<z.ZodNumber>;
322
140
  sharingScore: z.ZodOptional<z.ZodNumber>;
141
+ isAdvocate: z.ZodOptional<z.ZodBoolean>;
142
+ isCCWorker: z.ZodOptional<z.ZodBoolean>;
143
+ lastUpdate: z.ZodNumber;
323
144
  }, z.core.$strip>;
324
145
  export type WahaUser = z.infer<typeof WahaUser>;
325
- export declare const PushEnabledWahaUser: z.ZodObject<{
146
+ export declare const WahaUserFields: {
147
+ name: "name";
148
+ email: "email";
149
+ meet: "meet";
150
+ wahaUserId: "wahaUserId";
151
+ location: "location";
152
+ phoneNumber: "phoneNumber";
153
+ isInAGroup: "isInAGroup";
154
+ isSubscribedToEmailUpdates: "isSubscribedToEmailUpdates";
155
+ hasDonated: "hasDonated";
156
+ lastUpdate: "lastUpdate";
157
+ hasAccount: "hasAccount";
158
+ isDev: "isDev";
159
+ activated: "activated";
160
+ obedienceScore: "obedienceScore";
161
+ sharingScore: "sharingScore";
162
+ isAdvocate: "isAdvocate";
163
+ isCCWorker: "isCCWorker";
164
+ };
165
+ /**
166
+ * The legacy user object before version 9.
167
+ */
168
+ export declare const LegacyWahaUser: z.ZodObject<{
169
+ wahaUserId: z.ZodString;
326
170
  name: z.ZodOptional<z.ZodString>;
327
- appInterface: z.ZodString;
328
171
  email: z.ZodOptional<z.ZodEmail>;
329
- meet: z.ZodString;
330
- platform: z.ZodString;
331
172
  location: z.ZodOptional<z.ZodObject<{
332
173
  city: z.ZodOptional<z.ZodString>;
333
174
  country: z.ZodOptional<z.ZodString>;
@@ -340,6 +181,12 @@ export declare const PushEnabledWahaUser: z.ZodObject<{
340
181
  }, z.core.$strip>>>;
341
182
  phoneLocation: z.ZodOptional<z.ZodString>;
342
183
  isSubscribedToEmailUpdates: z.ZodOptional<z.ZodBoolean>;
184
+ pushToken: z.ZodOptional<z.ZodString>;
185
+ notificationPermission: z.ZodOptional<z.ZodEnum<{
186
+ granted: "granted";
187
+ undetermined: "undetermined";
188
+ denied: "denied";
189
+ }>>;
343
190
  utm: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
344
191
  firstOpen: z.ZodOptional<z.ZodNumber>;
345
192
  finishedOnboarding: z.ZodOptional<z.ZodNumber>;
@@ -349,19 +196,6 @@ export declare const PushEnabledWahaUser: z.ZodObject<{
349
196
  notificationLinksClicked: z.ZodOptional<z.ZodNumber>;
350
197
  isBeliever: z.ZodOptional<z.ZodBoolean>;
351
198
  isInAGroup: z.ZodOptional<z.ZodBoolean>;
352
- desires: z.ZodOptional<z.ZodArray<z.ZodEnum<{
353
- talk_to_others_about_jesus: "talk_to_others_about_jesus";
354
- build_a_team_of_disciple_makers: "build_a_team_of_disciple_makers";
355
- reach_my_entire_people_or_nation_for_god: "reach_my_entire_people_or_nation_for_god";
356
- understand_wahas_impact: "understand_wahas_impact";
357
- understand_how_waha_works: "understand_how_waha_works";
358
- get_coaching: "get_coaching";
359
- see_god_transform_my_community: "see_god_transform_my_community";
360
- discover_whats_in_the_bible: "discover_whats_in_the_bible";
361
- find_hope_in_my_troubles: "find_hope_in_my_troubles";
362
- get_right_with_god: "get_right_with_god";
363
- learn_more_about_jesus: "learn_more_about_jesus";
364
- }>>>;
365
199
  customDesire: z.ZodOptional<z.ZodString>;
366
200
  isCCWorker: z.ZodOptional<z.ZodBoolean>;
367
201
  isAdvocate: z.ZodOptional<z.ZodBoolean>;
@@ -371,16 +205,16 @@ export declare const PushEnabledWahaUser: z.ZodObject<{
371
205
  lastDonationAsk: z.ZodOptional<z.ZodNumber>;
372
206
  numberOfDonationAsks: z.ZodOptional<z.ZodNumber>;
373
207
  lastSeenBannerAskNumber: z.ZodOptional<z.ZodNumber>;
374
- onboardingStatus: z.ZodOptional<z.ZodEnum<{
375
- "skipped-from-first": "skipped-from-first";
376
- "skipped-from-second": "skipped-from-second";
377
- "finished-from-first": "finished-from-first";
378
- "finished-from-second": "finished-from-second";
379
- "finished-from-languages": "finished-from-languages";
380
- }>>;
381
208
  securityModeOn: z.ZodOptional<z.ZodBoolean>;
382
209
  appVersion: z.ZodString;
383
210
  lastUpdate: z.ZodNumber;
211
+ platform: z.ZodEnum<{
212
+ web: "web";
213
+ ios: "ios";
214
+ android: "android";
215
+ macos: "macos";
216
+ windows: "windows";
217
+ }>;
384
218
  completions: z.ZodArray<z.ZodObject<{
385
219
  lessonId: z.ZodString;
386
220
  meetLanguageId: z.ZodString;
@@ -401,8 +235,10 @@ export declare const PushEnabledWahaUser: z.ZodObject<{
401
235
  }>>;
402
236
  }, z.core.$strip>>;
403
237
  trainingUnlocked: z.ZodOptional<z.ZodBoolean>;
238
+ meet: z.ZodString;
239
+ appInterface: z.ZodString;
404
240
  meetFavorites: z.ZodArray<z.ZodString>;
405
- osVersion: z.ZodNullable<z.ZodString>;
241
+ osVersion: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
406
242
  isDev: z.ZodBoolean;
407
243
  shareLog: z.ZodOptional<z.ZodArray<z.ZodObject<{
408
244
  time: z.ZodNumber;
@@ -411,7 +247,6 @@ export declare const PushEnabledWahaUser: z.ZodObject<{
411
247
  note: "note";
412
248
  setLink: "setLink";
413
249
  lessonLink: "lessonLink";
414
- notification: "notification";
415
250
  app: "app";
416
251
  passcode: "passcode";
417
252
  lessonAudio: "lessonAudio";
@@ -422,6 +257,7 @@ export declare const PushEnabledWahaUser: z.ZodObject<{
422
257
  meetingInviteOnboarding: "meetingInviteOnboarding";
423
258
  articleLink: "articleLink";
424
259
  videoLink: "videoLink";
260
+ notification: "notification";
425
261
  meetingSchedule: "meetingSchedule";
426
262
  scriptureText: "scriptureText";
427
263
  mt: "mt";
@@ -466,8 +302,52 @@ export declare const PushEnabledWahaUser: z.ZodObject<{
466
302
  }, z.core.$strip>>>;
467
303
  obedienceScore: z.ZodOptional<z.ZodNumber>;
468
304
  sharingScore: z.ZodOptional<z.ZodNumber>;
469
- wahaUserId: z.ZodString;
470
- pushToken: z.ZodString;
471
- notificationPermission: z.ZodLiteral<"granted">;
472
305
  }, z.core.$strip>;
473
- export type PushEnabledWahaUser = z.infer<typeof PushEnabledWahaUser>;
306
+ export type LegacyWahaUser = z.infer<typeof LegacyWahaUser>;
307
+ export declare const LegacyWahaUserFields: {
308
+ name: "name";
309
+ appInterface: "appInterface";
310
+ email: "email";
311
+ meet: "meet";
312
+ completions: "completions";
313
+ meetFavorites: "meetFavorites";
314
+ trainingUnlocked: "trainingUnlocked";
315
+ platform: "platform";
316
+ appVersion: "appVersion";
317
+ wahaUserId: "wahaUserId";
318
+ location: "location";
319
+ phoneNumber: "phoneNumber";
320
+ isInAGroup: "isInAGroup";
321
+ isSubscribedToEmailUpdates: "isSubscribedToEmailUpdates";
322
+ hasDonated: "hasDonated";
323
+ pastLocations: "pastLocations";
324
+ utm: "utm";
325
+ engagementScore: "engagementScore";
326
+ finishedOnboarding: "finishedOnboarding";
327
+ firstOpen: "firstOpen";
328
+ phoneLocation: "phoneLocation";
329
+ pushToken: "pushToken";
330
+ notificationPermission: "notificationPermission";
331
+ osVersion: "osVersion";
332
+ securityModeOn: "securityModeOn";
333
+ lastUpdate: "lastUpdate";
334
+ isDev: "isDev";
335
+ activated: "activated";
336
+ obedienceScore: "obedienceScore";
337
+ sharingScore: "sharingScore";
338
+ isAdvocate: "isAdvocate";
339
+ isCCWorker: "isCCWorker";
340
+ howFamiliarWithBible: "howFamiliarWithBible";
341
+ followingFor2Years: "followingFor2Years";
342
+ notificationsClicked: "notificationsClicked";
343
+ notificationLinksClicked: "notificationLinksClicked";
344
+ isBeliever: "isBeliever";
345
+ customDesire: "customDesire";
346
+ lastDonationAsk: "lastDonationAsk";
347
+ numberOfDonationAsks: "numberOfDonationAsks";
348
+ lastSeenBannerAskNumber: "lastSeenBannerAskNumber";
349
+ shareLog: "shareLog";
350
+ bibleSessions: "bibleSessions";
351
+ articleSessions: "articleSessions";
352
+ microLessonCompletions: "microLessonCompletions";
353
+ };