waha-shared 1.0.19 → 1.0.21

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 (47) hide show
  1. package/assets/fonts/arabic/Bold.ttf +0 -0
  2. package/assets/fonts/arabic/Regular.ttf +0 -0
  3. package/assets/fonts/burmese/Bold.ttf +0 -0
  4. package/assets/fonts/burmese/Regular.ttf +0 -0
  5. package/assets/fonts/chinese/Bold.ttf +0 -0
  6. package/assets/fonts/chinese/Regular.ttf +0 -0
  7. package/assets/fonts/cyrillic/Bold.ttf +0 -0
  8. package/assets/fonts/cyrillic/Regular.ttf +0 -0
  9. package/assets/fonts/devanagari/Bold.ttf +0 -0
  10. package/assets/fonts/devanagari/Regular.ttf +0 -0
  11. package/assets/fonts/fonts.css +178 -0
  12. package/assets/fonts/japanese/Bold.ttf +0 -0
  13. package/assets/fonts/japanese/Regular.ttf +0 -0
  14. package/assets/fonts/khmer/Bold.ttf +0 -0
  15. package/assets/fonts/khmer/Regular.ttf +0 -0
  16. package/assets/fonts/latin/Bold.ttf +0 -0
  17. package/assets/fonts/latin/Regular.ttf +0 -0
  18. package/assets/fonts/telugu/Bold.ttf +0 -0
  19. package/assets/fonts/telugu/Regular.ttf +0 -0
  20. package/assets/fonts/thai/Bold.ttf +0 -0
  21. package/assets/fonts/thai/Regular.ttf +0 -0
  22. package/assets/fonts/uyghur/Bold.ttf +0 -0
  23. package/assets/fonts/uyghur/Regular.ttf +0 -0
  24. package/dist/data/bibleAudios.json +18 -9
  25. package/dist/data/bibleTexts.json +34 -11
  26. package/dist/data/languages.json +57 -37
  27. package/dist/data/releaseNotes.json +46 -46
  28. package/dist/data/typescript/appTranslations.d.ts +52 -43
  29. package/dist/data/typescript/appTranslations.js +20 -17
  30. package/dist/data/typescript/setTranslations.d.ts +13 -10
  31. package/dist/data/typescript/setTranslations.js +15 -11
  32. package/dist/functions/languages.d.ts +1 -1
  33. package/dist/functions/languages.js +9 -9
  34. package/dist/functions/scripturePassages.d.ts +12 -0
  35. package/dist/functions/scripturePassages.js +1 -0
  36. package/dist/functions/sets.js +4 -0
  37. package/dist/translations/appTranslations.d.ts +17 -14
  38. package/dist/translations/appTranslations.json +1915 -1912
  39. package/dist/translations/setTranslations.d.ts +4 -3
  40. package/dist/translations/setTranslations.json +5211 -5168
  41. package/dist/types/analytics.d.ts +19 -1
  42. package/dist/types/notifications.d.ts +13 -3
  43. package/dist/types/notifications.js +16 -2
  44. package/dist/types/sets.d.ts +1 -0
  45. package/dist/types/users.d.ts +209 -20
  46. package/dist/types/users.js +19 -0
  47. package/package.json +3 -2
@@ -115,5 +115,23 @@ type Bible = {
115
115
  name: 'BibleSession';
116
116
  payload: BibleSession;
117
117
  };
118
- export type AnalyticsEvent = Meeting | Share | Misc | Article | Bible | Note;
118
+ type Worksheets = {
119
+ name: 'WorksheetNotificationResponse';
120
+ payload: {
121
+ worksheetId: string;
122
+ didApply: boolean;
123
+ };
124
+ } | {
125
+ name: 'WorksheetStart';
126
+ payload: {
127
+ worksheetId: string;
128
+ };
129
+ } | {
130
+ name: 'WorksheetComplete';
131
+ payload: {
132
+ worksheetId: string;
133
+ timeToCompletion: number;
134
+ };
135
+ };
136
+ export type AnalyticsEvent = Meeting | Share | Misc | Article | Bible | Note | Worksheets;
119
137
  export {};
@@ -1,5 +1,6 @@
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. */
3
4
  actionUrl: z.ZodOptional<z.ZodString>;
4
5
  /**
5
6
  * We want the full title, not the push title, to be attached to the
@@ -14,29 +15,38 @@ export declare const PushNotificationPayloadSchema: z.ZodObject<{
14
15
  titleSource: z.ZodString;
15
16
  bodySource: z.ZodString;
16
17
  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
+ */
17
23
  imageUrl: z.ZodOptional<z.ZodString>;
18
- wahaUserId: z.ZodString;
24
+ wahaUserId: z.ZodOptional<z.ZodString>;
25
+ /**
26
+ * ISO string date in a special format. See [toIsoString
27
+ * function](src/functions/dates.ts).
28
+ */
19
29
  date: z.ZodString;
20
30
  }, "strip", z.ZodTypeAny, {
21
31
  date: string;
22
32
  title: string;
23
33
  body: string;
24
34
  verified: boolean;
25
- wahaUserId: string;
26
35
  titleSource: string;
27
36
  bodySource: string;
28
37
  actionUrl?: string | undefined;
29
38
  imageUrl?: string | undefined;
39
+ wahaUserId?: string | undefined;
30
40
  }, {
31
41
  date: string;
32
42
  title: string;
33
43
  body: string;
34
44
  verified: boolean;
35
- wahaUserId: string;
36
45
  titleSource: string;
37
46
  bodySource: string;
38
47
  actionUrl?: string | undefined;
39
48
  imageUrl?: string | undefined;
49
+ wahaUserId?: string | undefined;
40
50
  }>;
41
51
  export type PushNotificationPayload = z.infer<typeof PushNotificationPayloadSchema>;
42
52
  export declare const PushNotificationRecordSchema: z.ZodObject<{
@@ -4,6 +4,7 @@ exports.PushNotificationRecordSchema = exports.PushNotificationPayloadSchema = v
4
4
  const zod_1 = require("zod");
5
5
  const notification_1 = require("../data/typescript/notification");
6
6
  exports.PushNotificationPayloadSchema = zod_1.z.object({
7
+ /** Optional URL to open when the primary notification action is taken. */
7
8
  actionUrl: zod_1.z.string().url().optional(),
8
9
  /**
9
10
  * We want the full title, not the push title, to be attached to the
@@ -18,8 +19,21 @@ exports.PushNotificationPayloadSchema = zod_1.z.object({
18
19
  titleSource: zod_1.z.string(),
19
20
  bodySource: zod_1.z.string(),
20
21
  verified: zod_1.z.boolean(),
21
- imageUrl: zod_1.z.string().url().optional(),
22
- wahaUserId: zod_1.z.string(),
22
+ /**
23
+ * Either a remote url to an image to show with the notification or the name
24
+ * of a waha icon. See [SVG.tsx](src/components/General/SVG.tsx) for supported
25
+ * icons.
26
+ */
27
+ imageUrl: zod_1.z
28
+ .string()
29
+ .url()
30
+ .optional()
31
+ .describe('URL of an image to show with the notification.'),
32
+ wahaUserId: zod_1.z.string().optional(),
33
+ /**
34
+ * ISO string date in a special format. See [toIsoString
35
+ * function](src/functions/dates.ts).
36
+ */
23
37
  date: zod_1.z.string(),
24
38
  });
25
39
  exports.PushNotificationRecordSchema = zod_1.z.object({
@@ -47,6 +47,7 @@ export interface DbsInfo extends BaseInfo, SetInfo, Lesson {
47
47
  };
48
48
  lessonIntroduction: string | undefined;
49
49
  passagesString: string;
50
+ sectionTimings: Map<string, number>;
50
51
  }
51
52
  export interface VideoInfo extends BaseInfo, SetInfo, Lesson {
52
53
  type: 'video';
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ export type FaithJourney = 'seekers' | 'believers' | 'all';
2
3
  export declare const WahaUserLocationSchema: z.ZodObject<{
3
4
  city: z.ZodOptional<z.ZodString>;
4
5
  country: z.ZodOptional<z.ZodString>;
@@ -161,6 +162,67 @@ export declare const CompletionEventSchema: z.ZodObject<{
161
162
  manual?: boolean | undefined;
162
163
  }>;
163
164
  export type CompletionEvent = z.infer<typeof CompletionEventSchema>;
165
+ declare const WorksheetAnswerSchema: z.ZodObject<{
166
+ question: z.ZodString;
167
+ answer: z.ZodString;
168
+ }, "strip", z.ZodTypeAny, {
169
+ question: string;
170
+ answer: string;
171
+ }, {
172
+ question: string;
173
+ answer: string;
174
+ }>;
175
+ export type WorksheetAnswer = z.infer<typeof WorksheetAnswerSchema>;
176
+ declare const WorksheetCompletionEventSchema: z.ZodObject<{
177
+ startTime: z.ZodNumber;
178
+ completionTime: z.ZodOptional<z.ZodNumber>;
179
+ worksheetId: z.ZodString;
180
+ answers: z.ZodArray<z.ZodObject<{
181
+ question: z.ZodString;
182
+ answer: z.ZodString;
183
+ }, "strip", z.ZodTypeAny, {
184
+ question: string;
185
+ answer: string;
186
+ }, {
187
+ question: string;
188
+ answer: string;
189
+ }>, "many">;
190
+ country: z.ZodOptional<z.ZodString>;
191
+ region: z.ZodOptional<z.ZodString>;
192
+ city: z.ZodOptional<z.ZodString>;
193
+ didApply: z.ZodOptional<z.ZodBoolean>;
194
+ notificationText: z.ZodOptional<z.ZodString>;
195
+ feedback: z.ZodOptional<z.ZodString>;
196
+ }, "strip", z.ZodTypeAny, {
197
+ startTime: number;
198
+ worksheetId: string;
199
+ answers: {
200
+ question: string;
201
+ answer: string;
202
+ }[];
203
+ city?: string | undefined;
204
+ country?: string | undefined;
205
+ region?: string | undefined;
206
+ completionTime?: number | undefined;
207
+ didApply?: boolean | undefined;
208
+ notificationText?: string | undefined;
209
+ feedback?: string | undefined;
210
+ }, {
211
+ startTime: number;
212
+ worksheetId: string;
213
+ answers: {
214
+ question: string;
215
+ answer: string;
216
+ }[];
217
+ city?: string | undefined;
218
+ country?: string | undefined;
219
+ region?: string | undefined;
220
+ completionTime?: number | undefined;
221
+ didApply?: boolean | undefined;
222
+ notificationText?: string | undefined;
223
+ feedback?: string | undefined;
224
+ }>;
225
+ export type WorksheetCompletionEvent = z.infer<typeof WorksheetCompletionEventSchema>;
164
226
  export declare const WahaShareContentSchema: z.ZodEnum<["app", "passcode", "lessonAudio", "lessonText", "storyText", "storyAudio", "lessonLink", "setLink", "meetingInvite", "articleLink", "videoLink", "notification", "meetingSchedule", "scriptureText", "mt", "scriptureAudio", "inviteGroup", "lesson", "offlineVersionLink", "note", "customSet"]>;
165
227
  export type WahaShareContent = z.infer<typeof WahaShareContentSchema>;
166
228
  export declare const ShareLogEventSchema: z.ZodObject<{
@@ -187,13 +249,13 @@ export declare const BibleSessionSchema: z.ZodObject<{
187
249
  translation: z.ZodString;
188
250
  }, "strip", z.ZodTypeAny, {
189
251
  chapter: string;
190
- timeSpent: number;
191
252
  startTime: number;
253
+ timeSpent: number;
192
254
  translation: string;
193
255
  }, {
194
256
  chapter: string;
195
- timeSpent: number;
196
257
  startTime: number;
258
+ timeSpent: number;
197
259
  translation: string;
198
260
  }>;
199
261
  export type BibleSession = z.infer<typeof BibleSessionSchema>;
@@ -202,13 +264,13 @@ export declare const ArticleSessionSchema: z.ZodObject<{
202
264
  timeSpent: z.ZodNumber;
203
265
  startTime: z.ZodNumber;
204
266
  }, "strip", z.ZodTypeAny, {
267
+ startTime: number;
205
268
  articleSlug: string;
206
269
  timeSpent: number;
207
- startTime: number;
208
270
  }, {
271
+ startTime: number;
209
272
  articleSlug: string;
210
273
  timeSpent: number;
211
- startTime: number;
212
274
  }>;
213
275
  export type ArticleSession = z.infer<typeof ArticleSessionSchema>;
214
276
  export declare const WahaUserSchema: z.ZodObject<{
@@ -322,13 +384,13 @@ export declare const WahaUserSchema: z.ZodObject<{
322
384
  translation: z.ZodString;
323
385
  }, "strip", z.ZodTypeAny, {
324
386
  chapter: string;
325
- timeSpent: number;
326
387
  startTime: number;
388
+ timeSpent: number;
327
389
  translation: string;
328
390
  }, {
329
391
  chapter: string;
330
- timeSpent: number;
331
392
  startTime: number;
393
+ timeSpent: number;
332
394
  translation: string;
333
395
  }>, "many">>;
334
396
  articleSessions: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -336,15 +398,56 @@ export declare const WahaUserSchema: z.ZodObject<{
336
398
  timeSpent: z.ZodNumber;
337
399
  startTime: z.ZodNumber;
338
400
  }, "strip", z.ZodTypeAny, {
401
+ startTime: number;
339
402
  articleSlug: string;
340
403
  timeSpent: number;
341
- startTime: number;
342
404
  }, {
405
+ startTime: number;
343
406
  articleSlug: string;
344
407
  timeSpent: number;
345
- startTime: number;
346
408
  }>, "many">>;
347
409
  activated: z.ZodOptional<z.ZodBoolean>;
410
+ worksheetCompletions: z.ZodOptional<z.ZodArray<z.ZodObject<Omit<{
411
+ startTime: z.ZodNumber;
412
+ completionTime: z.ZodOptional<z.ZodNumber>;
413
+ worksheetId: z.ZodString;
414
+ answers: z.ZodArray<z.ZodObject<{
415
+ question: z.ZodString;
416
+ answer: z.ZodString;
417
+ }, "strip", z.ZodTypeAny, {
418
+ question: string;
419
+ answer: string;
420
+ }, {
421
+ question: string;
422
+ answer: string;
423
+ }>, "many">;
424
+ country: z.ZodOptional<z.ZodString>;
425
+ region: z.ZodOptional<z.ZodString>;
426
+ city: z.ZodOptional<z.ZodString>;
427
+ didApply: z.ZodOptional<z.ZodBoolean>;
428
+ notificationText: z.ZodOptional<z.ZodString>;
429
+ feedback: z.ZodOptional<z.ZodString>;
430
+ }, "answers">, "strip", z.ZodTypeAny, {
431
+ startTime: number;
432
+ worksheetId: string;
433
+ city?: string | undefined;
434
+ country?: string | undefined;
435
+ region?: string | undefined;
436
+ completionTime?: number | undefined;
437
+ didApply?: boolean | undefined;
438
+ notificationText?: string | undefined;
439
+ feedback?: string | undefined;
440
+ }, {
441
+ startTime: number;
442
+ worksheetId: string;
443
+ city?: string | undefined;
444
+ country?: string | undefined;
445
+ region?: string | undefined;
446
+ completionTime?: number | undefined;
447
+ didApply?: boolean | undefined;
448
+ notificationText?: string | undefined;
449
+ feedback?: string | undefined;
450
+ }>, "many">>;
348
451
  }, "strip", z.ZodTypeAny, {
349
452
  appInterface: string;
350
453
  meet: string;
@@ -404,16 +507,27 @@ export declare const WahaUserSchema: z.ZodObject<{
404
507
  }[] | undefined;
405
508
  bibleSessions?: {
406
509
  chapter: string;
407
- timeSpent: number;
408
510
  startTime: number;
511
+ timeSpent: number;
409
512
  translation: string;
410
513
  }[] | undefined;
411
514
  articleSessions?: {
515
+ startTime: number;
412
516
  articleSlug: string;
413
517
  timeSpent: number;
414
- startTime: number;
415
518
  }[] | undefined;
416
519
  activated?: boolean | undefined;
520
+ worksheetCompletions?: {
521
+ startTime: number;
522
+ worksheetId: string;
523
+ city?: string | undefined;
524
+ country?: string | undefined;
525
+ region?: string | undefined;
526
+ completionTime?: number | undefined;
527
+ didApply?: boolean | undefined;
528
+ notificationText?: string | undefined;
529
+ feedback?: string | undefined;
530
+ }[] | undefined;
417
531
  }, {
418
532
  appInterface: string;
419
533
  meet: string;
@@ -473,16 +587,27 @@ export declare const WahaUserSchema: z.ZodObject<{
473
587
  }[] | undefined;
474
588
  bibleSessions?: {
475
589
  chapter: string;
476
- timeSpent: number;
477
590
  startTime: number;
591
+ timeSpent: number;
478
592
  translation: string;
479
593
  }[] | undefined;
480
594
  articleSessions?: {
595
+ startTime: number;
481
596
  articleSlug: string;
482
597
  timeSpent: number;
483
- startTime: number;
484
598
  }[] | undefined;
485
599
  activated?: boolean | undefined;
600
+ worksheetCompletions?: {
601
+ startTime: number;
602
+ worksheetId: string;
603
+ city?: string | undefined;
604
+ country?: string | undefined;
605
+ region?: string | undefined;
606
+ completionTime?: number | undefined;
607
+ didApply?: boolean | undefined;
608
+ notificationText?: string | undefined;
609
+ feedback?: string | undefined;
610
+ }[] | undefined;
486
611
  }>;
487
612
  export declare const PushEnabledWahaUserSchema: z.ZodObject<Omit<{
488
613
  wahaUserId: z.ZodOptional<z.ZodString>;
@@ -595,13 +720,13 @@ export declare const PushEnabledWahaUserSchema: z.ZodObject<Omit<{
595
720
  translation: z.ZodString;
596
721
  }, "strip", z.ZodTypeAny, {
597
722
  chapter: string;
598
- timeSpent: number;
599
723
  startTime: number;
724
+ timeSpent: number;
600
725
  translation: string;
601
726
  }, {
602
727
  chapter: string;
603
- timeSpent: number;
604
728
  startTime: number;
729
+ timeSpent: number;
605
730
  translation: string;
606
731
  }>, "many">>;
607
732
  articleSessions: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -609,15 +734,56 @@ export declare const PushEnabledWahaUserSchema: z.ZodObject<Omit<{
609
734
  timeSpent: z.ZodNumber;
610
735
  startTime: z.ZodNumber;
611
736
  }, "strip", z.ZodTypeAny, {
737
+ startTime: number;
612
738
  articleSlug: string;
613
739
  timeSpent: number;
614
- startTime: number;
615
740
  }, {
741
+ startTime: number;
616
742
  articleSlug: string;
617
743
  timeSpent: number;
618
- startTime: number;
619
744
  }>, "many">>;
620
745
  activated: z.ZodOptional<z.ZodBoolean>;
746
+ worksheetCompletions: z.ZodOptional<z.ZodArray<z.ZodObject<Omit<{
747
+ startTime: z.ZodNumber;
748
+ completionTime: z.ZodOptional<z.ZodNumber>;
749
+ worksheetId: z.ZodString;
750
+ answers: z.ZodArray<z.ZodObject<{
751
+ question: z.ZodString;
752
+ answer: z.ZodString;
753
+ }, "strip", z.ZodTypeAny, {
754
+ question: string;
755
+ answer: string;
756
+ }, {
757
+ question: string;
758
+ answer: string;
759
+ }>, "many">;
760
+ country: z.ZodOptional<z.ZodString>;
761
+ region: z.ZodOptional<z.ZodString>;
762
+ city: z.ZodOptional<z.ZodString>;
763
+ didApply: z.ZodOptional<z.ZodBoolean>;
764
+ notificationText: z.ZodOptional<z.ZodString>;
765
+ feedback: z.ZodOptional<z.ZodString>;
766
+ }, "answers">, "strip", z.ZodTypeAny, {
767
+ startTime: number;
768
+ worksheetId: string;
769
+ city?: string | undefined;
770
+ country?: string | undefined;
771
+ region?: string | undefined;
772
+ completionTime?: number | undefined;
773
+ didApply?: boolean | undefined;
774
+ notificationText?: string | undefined;
775
+ feedback?: string | undefined;
776
+ }, {
777
+ startTime: number;
778
+ worksheetId: string;
779
+ city?: string | undefined;
780
+ country?: string | undefined;
781
+ region?: string | undefined;
782
+ completionTime?: number | undefined;
783
+ didApply?: boolean | undefined;
784
+ notificationText?: string | undefined;
785
+ feedback?: string | undefined;
786
+ }>, "many">>;
621
787
  }, "wahaUserId" | "pushToken" | "notificationPermission"> & {
622
788
  wahaUserId: z.ZodString;
623
789
  pushToken: z.ZodString;
@@ -681,16 +847,27 @@ export declare const PushEnabledWahaUserSchema: z.ZodObject<Omit<{
681
847
  }[] | undefined;
682
848
  bibleSessions?: {
683
849
  chapter: string;
684
- timeSpent: number;
685
850
  startTime: number;
851
+ timeSpent: number;
686
852
  translation: string;
687
853
  }[] | undefined;
688
854
  articleSessions?: {
855
+ startTime: number;
689
856
  articleSlug: string;
690
857
  timeSpent: number;
691
- startTime: number;
692
858
  }[] | undefined;
693
859
  activated?: boolean | undefined;
860
+ worksheetCompletions?: {
861
+ startTime: number;
862
+ worksheetId: string;
863
+ city?: string | undefined;
864
+ country?: string | undefined;
865
+ region?: string | undefined;
866
+ completionTime?: number | undefined;
867
+ didApply?: boolean | undefined;
868
+ notificationText?: string | undefined;
869
+ feedback?: string | undefined;
870
+ }[] | undefined;
694
871
  }, {
695
872
  appInterface: string;
696
873
  meet: string;
@@ -750,16 +927,28 @@ export declare const PushEnabledWahaUserSchema: z.ZodObject<Omit<{
750
927
  }[] | undefined;
751
928
  bibleSessions?: {
752
929
  chapter: string;
753
- timeSpent: number;
754
930
  startTime: number;
931
+ timeSpent: number;
755
932
  translation: string;
756
933
  }[] | undefined;
757
934
  articleSessions?: {
935
+ startTime: number;
758
936
  articleSlug: string;
759
937
  timeSpent: number;
760
- startTime: number;
761
938
  }[] | undefined;
762
939
  activated?: boolean | undefined;
940
+ worksheetCompletions?: {
941
+ startTime: number;
942
+ worksheetId: string;
943
+ city?: string | undefined;
944
+ country?: string | undefined;
945
+ region?: string | undefined;
946
+ completionTime?: number | undefined;
947
+ didApply?: boolean | undefined;
948
+ notificationText?: string | undefined;
949
+ feedback?: string | undefined;
950
+ }[] | undefined;
763
951
  }>;
764
952
  export type PushEnabledWahaUser = z.infer<typeof PushEnabledWahaUserSchema>;
765
953
  export type WahaUser = z.infer<typeof WahaUserSchema>;
954
+ export {};
@@ -67,6 +67,22 @@ exports.CompletionEventSchema = zod_1.z.object({
67
67
  */
68
68
  manual: zod_1.z.boolean().optional(),
69
69
  });
70
+ const WorksheetAnswerSchema = zod_1.z.object({
71
+ question: zod_1.z.string(),
72
+ answer: zod_1.z.string(),
73
+ });
74
+ const WorksheetCompletionEventSchema = zod_1.z.object({
75
+ startTime: zod_1.z.number(),
76
+ completionTime: zod_1.z.number().optional(),
77
+ worksheetId: zod_1.z.string(),
78
+ answers: zod_1.z.array(WorksheetAnswerSchema),
79
+ country: zod_1.z.string().optional(),
80
+ region: zod_1.z.string().optional(),
81
+ city: zod_1.z.string().optional(),
82
+ didApply: zod_1.z.boolean().optional(),
83
+ notificationText: zod_1.z.string().optional(),
84
+ feedback: zod_1.z.string().optional(),
85
+ });
70
86
  exports.WahaShareContentSchema = zod_1.z.enum([
71
87
  'app',
72
88
  'passcode',
@@ -125,6 +141,9 @@ exports.WahaUserSchema = exports.WahaUserStateSchema.extend({
125
141
  bibleSessions: zod_1.z.array(exports.BibleSessionSchema).optional(),
126
142
  articleSessions: zod_1.z.array(exports.ArticleSessionSchema).optional(),
127
143
  activated: zod_1.z.boolean().optional(),
144
+ worksheetCompletions: zod_1.z
145
+ .array(WorksheetCompletionEventSchema.omit({ answers: true }))
146
+ .optional(),
128
147
  });
129
148
  exports.PushEnabledWahaUserSchema = exports.WahaUserSchema.omit({
130
149
  wahaUserId: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waha-shared",
3
- "version": "1.0.19",
3
+ "version": "1.0.21",
4
4
  "author": "Waha",
5
5
  "dependencies": {
6
6
  "@types/signale": "^1.4.7",
@@ -12,7 +12,8 @@
12
12
  "typescript": "~5.9.2"
13
13
  },
14
14
  "files": [
15
- "dist"
15
+ "dist",
16
+ "assets/fonts"
16
17
  ],
17
18
  "license": "MIT"
18
19
  }