waha-shared 1.0.199 → 1.0.200

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.
@@ -115,23 +115,23 @@ type Bible = {
115
115
  name: 'BibleSession';
116
116
  payload: BibleSession;
117
117
  };
118
- type MicroLessons = {
119
- name: 'MicroLessonNotificationResponse';
118
+ type Worksheets = {
119
+ name: 'WorksheetNotificationResponse';
120
120
  payload: {
121
- microLessonId: string;
121
+ worksheetId: string;
122
122
  didApply: boolean;
123
123
  };
124
124
  } | {
125
- name: 'MicroLessonStart';
125
+ name: 'WorksheetStart';
126
126
  payload: {
127
- microLessonId: string;
127
+ worksheetId: string;
128
128
  };
129
129
  } | {
130
- name: 'MicroLessonComplete';
130
+ name: 'WorksheetComplete';
131
131
  payload: {
132
- microLessonId: string;
132
+ worksheetId: string;
133
133
  timeToCompletion: number;
134
134
  };
135
135
  };
136
- export type AnalyticsEvent = Meeting | Share | Misc | Article | Bible | Note | MicroLessons;
136
+ export type AnalyticsEvent = Meeting | Share | Misc | Article | Bible | Note | Worksheets;
137
137
  export {};
@@ -177,7 +177,7 @@ export declare const CompletionEventSchema: z.ZodObject<{
177
177
  manual?: boolean | undefined;
178
178
  }>;
179
179
  export type CompletionEvent = z.infer<typeof CompletionEventSchema>;
180
- declare const MicroLessonAnswerSchema: z.ZodObject<{
180
+ declare const WorksheetAnswerSchema: z.ZodObject<{
181
181
  question: z.ZodString;
182
182
  answer: z.ZodString;
183
183
  }, "strip", z.ZodTypeAny, {
@@ -187,11 +187,11 @@ declare const MicroLessonAnswerSchema: z.ZodObject<{
187
187
  question: string;
188
188
  answer: string;
189
189
  }>;
190
- export type MicroLessonAnswer = z.infer<typeof MicroLessonAnswerSchema>;
191
- declare const MicroLessonCompletionEventSchema: z.ZodObject<{
190
+ export type WorksheetAnswer = z.infer<typeof WorksheetAnswerSchema>;
191
+ declare const WorksheetCompletionEventSchema: z.ZodObject<{
192
192
  startTime: z.ZodNumber;
193
193
  completionTime: z.ZodOptional<z.ZodNumber>;
194
- microLessonId: z.ZodString;
194
+ worksheetId: z.ZodString;
195
195
  answers: z.ZodArray<z.ZodObject<{
196
196
  question: z.ZodString;
197
197
  answer: z.ZodString;
@@ -210,7 +210,7 @@ declare const MicroLessonCompletionEventSchema: z.ZodObject<{
210
210
  feedback: z.ZodOptional<z.ZodString>;
211
211
  }, "strip", z.ZodTypeAny, {
212
212
  startTime: number;
213
- microLessonId: string;
213
+ worksheetId: string;
214
214
  answers: {
215
215
  question: string;
216
216
  answer: string;
@@ -224,7 +224,7 @@ declare const MicroLessonCompletionEventSchema: z.ZodObject<{
224
224
  feedback?: string | undefined;
225
225
  }, {
226
226
  startTime: number;
227
- microLessonId: string;
227
+ worksheetId: string;
228
228
  answers: {
229
229
  question: string;
230
230
  answer: string;
@@ -237,22 +237,22 @@ declare const MicroLessonCompletionEventSchema: z.ZodObject<{
237
237
  notificationText?: string | undefined;
238
238
  feedback?: string | undefined;
239
239
  }>;
240
- export type MicroLessonCompletionEvent = z.infer<typeof MicroLessonCompletionEventSchema>;
241
- 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", "microLesson"]>;
240
+ export type WorksheetCompletionEvent = z.infer<typeof WorksheetCompletionEventSchema>;
241
+ 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"]>;
242
242
  export type WahaShareContent = z.infer<typeof WahaShareContentSchema>;
243
243
  export declare const ShareLogEventSchema: z.ZodObject<{
244
244
  time: z.ZodNumber;
245
- content: z.ZodEnum<["app", "passcode", "lessonAudio", "lessonText", "storyText", "storyAudio", "lessonLink", "setLink", "meetingInvite", "articleLink", "videoLink", "notification", "meetingSchedule", "scriptureText", "mt", "scriptureAudio", "inviteGroup", "lesson", "offlineVersionLink", "note", "customSet", "microLesson"]>;
245
+ content: z.ZodEnum<["app", "passcode", "lessonAudio", "lessonText", "storyText", "storyAudio", "lessonLink", "setLink", "meetingInvite", "articleLink", "videoLink", "notification", "meetingSchedule", "scriptureText", "mt", "scriptureAudio", "inviteGroup", "lesson", "offlineVersionLink", "note", "customSet"]>;
246
246
  lessonId: z.ZodOptional<z.ZodString>;
247
247
  articleSlug: z.ZodOptional<z.ZodString>;
248
248
  }, "strip", z.ZodTypeAny, {
249
249
  time: number;
250
- content: "lesson" | "note" | "setLink" | "lessonLink" | "app" | "passcode" | "lessonAudio" | "lessonText" | "storyText" | "storyAudio" | "meetingInvite" | "articleLink" | "videoLink" | "notification" | "meetingSchedule" | "scriptureText" | "mt" | "scriptureAudio" | "inviteGroup" | "offlineVersionLink" | "customSet" | "microLesson";
250
+ content: "lesson" | "note" | "setLink" | "lessonLink" | "app" | "passcode" | "lessonAudio" | "lessonText" | "storyText" | "storyAudio" | "meetingInvite" | "articleLink" | "videoLink" | "notification" | "meetingSchedule" | "scriptureText" | "mt" | "scriptureAudio" | "inviteGroup" | "offlineVersionLink" | "customSet";
251
251
  lessonId?: string | undefined;
252
252
  articleSlug?: string | undefined;
253
253
  }, {
254
254
  time: number;
255
- content: "lesson" | "note" | "setLink" | "lessonLink" | "app" | "passcode" | "lessonAudio" | "lessonText" | "storyText" | "storyAudio" | "meetingInvite" | "articleLink" | "videoLink" | "notification" | "meetingSchedule" | "scriptureText" | "mt" | "scriptureAudio" | "inviteGroup" | "offlineVersionLink" | "customSet" | "microLesson";
255
+ content: "lesson" | "note" | "setLink" | "lessonLink" | "app" | "passcode" | "lessonAudio" | "lessonText" | "storyText" | "storyAudio" | "meetingInvite" | "articleLink" | "videoLink" | "notification" | "meetingSchedule" | "scriptureText" | "mt" | "scriptureAudio" | "inviteGroup" | "offlineVersionLink" | "customSet";
256
256
  lessonId?: string | undefined;
257
257
  articleSlug?: string | undefined;
258
258
  }>;
@@ -383,17 +383,17 @@ export declare const WahaUserSchema: z.ZodObject<{
383
383
  isDev: z.ZodBoolean;
384
384
  shareLog: z.ZodOptional<z.ZodArray<z.ZodObject<{
385
385
  time: z.ZodNumber;
386
- content: z.ZodEnum<["app", "passcode", "lessonAudio", "lessonText", "storyText", "storyAudio", "lessonLink", "setLink", "meetingInvite", "articleLink", "videoLink", "notification", "meetingSchedule", "scriptureText", "mt", "scriptureAudio", "inviteGroup", "lesson", "offlineVersionLink", "note", "customSet", "microLesson"]>;
386
+ content: z.ZodEnum<["app", "passcode", "lessonAudio", "lessonText", "storyText", "storyAudio", "lessonLink", "setLink", "meetingInvite", "articleLink", "videoLink", "notification", "meetingSchedule", "scriptureText", "mt", "scriptureAudio", "inviteGroup", "lesson", "offlineVersionLink", "note", "customSet"]>;
387
387
  lessonId: z.ZodOptional<z.ZodString>;
388
388
  articleSlug: z.ZodOptional<z.ZodString>;
389
389
  }, "strip", z.ZodTypeAny, {
390
390
  time: number;
391
- content: "lesson" | "note" | "setLink" | "lessonLink" | "app" | "passcode" | "lessonAudio" | "lessonText" | "storyText" | "storyAudio" | "meetingInvite" | "articleLink" | "videoLink" | "notification" | "meetingSchedule" | "scriptureText" | "mt" | "scriptureAudio" | "inviteGroup" | "offlineVersionLink" | "customSet" | "microLesson";
391
+ content: "lesson" | "note" | "setLink" | "lessonLink" | "app" | "passcode" | "lessonAudio" | "lessonText" | "storyText" | "storyAudio" | "meetingInvite" | "articleLink" | "videoLink" | "notification" | "meetingSchedule" | "scriptureText" | "mt" | "scriptureAudio" | "inviteGroup" | "offlineVersionLink" | "customSet";
392
392
  lessonId?: string | undefined;
393
393
  articleSlug?: string | undefined;
394
394
  }, {
395
395
  time: number;
396
- content: "lesson" | "note" | "setLink" | "lessonLink" | "app" | "passcode" | "lessonAudio" | "lessonText" | "storyText" | "storyAudio" | "meetingInvite" | "articleLink" | "videoLink" | "notification" | "meetingSchedule" | "scriptureText" | "mt" | "scriptureAudio" | "inviteGroup" | "offlineVersionLink" | "customSet" | "microLesson";
396
+ content: "lesson" | "note" | "setLink" | "lessonLink" | "app" | "passcode" | "lessonAudio" | "lessonText" | "storyText" | "storyAudio" | "meetingInvite" | "articleLink" | "videoLink" | "notification" | "meetingSchedule" | "scriptureText" | "mt" | "scriptureAudio" | "inviteGroup" | "offlineVersionLink" | "customSet";
397
397
  lessonId?: string | undefined;
398
398
  articleSlug?: string | undefined;
399
399
  }>, "many">>;
@@ -427,10 +427,10 @@ export declare const WahaUserSchema: z.ZodObject<{
427
427
  timeSpent: number;
428
428
  }>, "many">>;
429
429
  activated: z.ZodOptional<z.ZodBoolean>;
430
- microLessonCompletions: z.ZodOptional<z.ZodArray<z.ZodObject<Omit<{
430
+ worksheetCompletions: z.ZodOptional<z.ZodArray<z.ZodObject<Omit<{
431
431
  startTime: z.ZodNumber;
432
432
  completionTime: z.ZodOptional<z.ZodNumber>;
433
- microLessonId: z.ZodString;
433
+ worksheetId: z.ZodString;
434
434
  answers: z.ZodArray<z.ZodObject<{
435
435
  question: z.ZodString;
436
436
  answer: z.ZodString;
@@ -449,7 +449,7 @@ export declare const WahaUserSchema: z.ZodObject<{
449
449
  feedback: z.ZodOptional<z.ZodString>;
450
450
  }, "answers">, "strip", z.ZodTypeAny, {
451
451
  startTime: number;
452
- microLessonId: string;
452
+ worksheetId: string;
453
453
  city?: string | undefined;
454
454
  country?: string | undefined;
455
455
  region?: string | undefined;
@@ -459,7 +459,7 @@ export declare const WahaUserSchema: z.ZodObject<{
459
459
  feedback?: string | undefined;
460
460
  }, {
461
461
  startTime: number;
462
- microLessonId: string;
462
+ worksheetId: string;
463
463
  city?: string | undefined;
464
464
  country?: string | undefined;
465
465
  region?: string | undefined;
@@ -526,7 +526,7 @@ export declare const WahaUserSchema: z.ZodObject<{
526
526
  trainingUnlocked?: boolean | undefined;
527
527
  shareLog?: {
528
528
  time: number;
529
- content: "lesson" | "note" | "setLink" | "lessonLink" | "app" | "passcode" | "lessonAudio" | "lessonText" | "storyText" | "storyAudio" | "meetingInvite" | "articleLink" | "videoLink" | "notification" | "meetingSchedule" | "scriptureText" | "mt" | "scriptureAudio" | "inviteGroup" | "offlineVersionLink" | "customSet" | "microLesson";
529
+ content: "lesson" | "note" | "setLink" | "lessonLink" | "app" | "passcode" | "lessonAudio" | "lessonText" | "storyText" | "storyAudio" | "meetingInvite" | "articleLink" | "videoLink" | "notification" | "meetingSchedule" | "scriptureText" | "mt" | "scriptureAudio" | "inviteGroup" | "offlineVersionLink" | "customSet";
530
530
  lessonId?: string | undefined;
531
531
  articleSlug?: string | undefined;
532
532
  }[] | undefined;
@@ -542,9 +542,9 @@ export declare const WahaUserSchema: z.ZodObject<{
542
542
  timeSpent: number;
543
543
  }[] | undefined;
544
544
  activated?: boolean | undefined;
545
- microLessonCompletions?: {
545
+ worksheetCompletions?: {
546
546
  startTime: number;
547
- microLessonId: string;
547
+ worksheetId: string;
548
548
  city?: string | undefined;
549
549
  country?: string | undefined;
550
550
  region?: string | undefined;
@@ -611,7 +611,7 @@ export declare const WahaUserSchema: z.ZodObject<{
611
611
  trainingUnlocked?: boolean | undefined;
612
612
  shareLog?: {
613
613
  time: number;
614
- content: "lesson" | "note" | "setLink" | "lessonLink" | "app" | "passcode" | "lessonAudio" | "lessonText" | "storyText" | "storyAudio" | "meetingInvite" | "articleLink" | "videoLink" | "notification" | "meetingSchedule" | "scriptureText" | "mt" | "scriptureAudio" | "inviteGroup" | "offlineVersionLink" | "customSet" | "microLesson";
614
+ content: "lesson" | "note" | "setLink" | "lessonLink" | "app" | "passcode" | "lessonAudio" | "lessonText" | "storyText" | "storyAudio" | "meetingInvite" | "articleLink" | "videoLink" | "notification" | "meetingSchedule" | "scriptureText" | "mt" | "scriptureAudio" | "inviteGroup" | "offlineVersionLink" | "customSet";
615
615
  lessonId?: string | undefined;
616
616
  articleSlug?: string | undefined;
617
617
  }[] | undefined;
@@ -627,9 +627,9 @@ export declare const WahaUserSchema: z.ZodObject<{
627
627
  timeSpent: number;
628
628
  }[] | undefined;
629
629
  activated?: boolean | undefined;
630
- microLessonCompletions?: {
630
+ worksheetCompletions?: {
631
631
  startTime: number;
632
- microLessonId: string;
632
+ worksheetId: string;
633
633
  city?: string | undefined;
634
634
  country?: string | undefined;
635
635
  region?: string | undefined;
@@ -734,17 +734,17 @@ export declare const PushEnabledWahaUserSchema: z.ZodObject<Omit<{
734
734
  isDev: z.ZodBoolean;
735
735
  shareLog: z.ZodOptional<z.ZodArray<z.ZodObject<{
736
736
  time: z.ZodNumber;
737
- content: z.ZodEnum<["app", "passcode", "lessonAudio", "lessonText", "storyText", "storyAudio", "lessonLink", "setLink", "meetingInvite", "articleLink", "videoLink", "notification", "meetingSchedule", "scriptureText", "mt", "scriptureAudio", "inviteGroup", "lesson", "offlineVersionLink", "note", "customSet", "microLesson"]>;
737
+ content: z.ZodEnum<["app", "passcode", "lessonAudio", "lessonText", "storyText", "storyAudio", "lessonLink", "setLink", "meetingInvite", "articleLink", "videoLink", "notification", "meetingSchedule", "scriptureText", "mt", "scriptureAudio", "inviteGroup", "lesson", "offlineVersionLink", "note", "customSet"]>;
738
738
  lessonId: z.ZodOptional<z.ZodString>;
739
739
  articleSlug: z.ZodOptional<z.ZodString>;
740
740
  }, "strip", z.ZodTypeAny, {
741
741
  time: number;
742
- content: "lesson" | "note" | "setLink" | "lessonLink" | "app" | "passcode" | "lessonAudio" | "lessonText" | "storyText" | "storyAudio" | "meetingInvite" | "articleLink" | "videoLink" | "notification" | "meetingSchedule" | "scriptureText" | "mt" | "scriptureAudio" | "inviteGroup" | "offlineVersionLink" | "customSet" | "microLesson";
742
+ content: "lesson" | "note" | "setLink" | "lessonLink" | "app" | "passcode" | "lessonAudio" | "lessonText" | "storyText" | "storyAudio" | "meetingInvite" | "articleLink" | "videoLink" | "notification" | "meetingSchedule" | "scriptureText" | "mt" | "scriptureAudio" | "inviteGroup" | "offlineVersionLink" | "customSet";
743
743
  lessonId?: string | undefined;
744
744
  articleSlug?: string | undefined;
745
745
  }, {
746
746
  time: number;
747
- content: "lesson" | "note" | "setLink" | "lessonLink" | "app" | "passcode" | "lessonAudio" | "lessonText" | "storyText" | "storyAudio" | "meetingInvite" | "articleLink" | "videoLink" | "notification" | "meetingSchedule" | "scriptureText" | "mt" | "scriptureAudio" | "inviteGroup" | "offlineVersionLink" | "customSet" | "microLesson";
747
+ content: "lesson" | "note" | "setLink" | "lessonLink" | "app" | "passcode" | "lessonAudio" | "lessonText" | "storyText" | "storyAudio" | "meetingInvite" | "articleLink" | "videoLink" | "notification" | "meetingSchedule" | "scriptureText" | "mt" | "scriptureAudio" | "inviteGroup" | "offlineVersionLink" | "customSet";
748
748
  lessonId?: string | undefined;
749
749
  articleSlug?: string | undefined;
750
750
  }>, "many">>;
@@ -778,10 +778,10 @@ export declare const PushEnabledWahaUserSchema: z.ZodObject<Omit<{
778
778
  timeSpent: number;
779
779
  }>, "many">>;
780
780
  activated: z.ZodOptional<z.ZodBoolean>;
781
- microLessonCompletions: z.ZodOptional<z.ZodArray<z.ZodObject<Omit<{
781
+ worksheetCompletions: z.ZodOptional<z.ZodArray<z.ZodObject<Omit<{
782
782
  startTime: z.ZodNumber;
783
783
  completionTime: z.ZodOptional<z.ZodNumber>;
784
- microLessonId: z.ZodString;
784
+ worksheetId: z.ZodString;
785
785
  answers: z.ZodArray<z.ZodObject<{
786
786
  question: z.ZodString;
787
787
  answer: z.ZodString;
@@ -800,7 +800,7 @@ export declare const PushEnabledWahaUserSchema: z.ZodObject<Omit<{
800
800
  feedback: z.ZodOptional<z.ZodString>;
801
801
  }, "answers">, "strip", z.ZodTypeAny, {
802
802
  startTime: number;
803
- microLessonId: string;
803
+ worksheetId: string;
804
804
  city?: string | undefined;
805
805
  country?: string | undefined;
806
806
  region?: string | undefined;
@@ -810,7 +810,7 @@ export declare const PushEnabledWahaUserSchema: z.ZodObject<Omit<{
810
810
  feedback?: string | undefined;
811
811
  }, {
812
812
  startTime: number;
813
- microLessonId: string;
813
+ worksheetId: string;
814
814
  city?: string | undefined;
815
815
  country?: string | undefined;
816
816
  region?: string | undefined;
@@ -881,7 +881,7 @@ export declare const PushEnabledWahaUserSchema: z.ZodObject<Omit<{
881
881
  trainingUnlocked?: boolean | undefined;
882
882
  shareLog?: {
883
883
  time: number;
884
- content: "lesson" | "note" | "setLink" | "lessonLink" | "app" | "passcode" | "lessonAudio" | "lessonText" | "storyText" | "storyAudio" | "meetingInvite" | "articleLink" | "videoLink" | "notification" | "meetingSchedule" | "scriptureText" | "mt" | "scriptureAudio" | "inviteGroup" | "offlineVersionLink" | "customSet" | "microLesson";
884
+ content: "lesson" | "note" | "setLink" | "lessonLink" | "app" | "passcode" | "lessonAudio" | "lessonText" | "storyText" | "storyAudio" | "meetingInvite" | "articleLink" | "videoLink" | "notification" | "meetingSchedule" | "scriptureText" | "mt" | "scriptureAudio" | "inviteGroup" | "offlineVersionLink" | "customSet";
885
885
  lessonId?: string | undefined;
886
886
  articleSlug?: string | undefined;
887
887
  }[] | undefined;
@@ -897,9 +897,9 @@ export declare const PushEnabledWahaUserSchema: z.ZodObject<Omit<{
897
897
  timeSpent: number;
898
898
  }[] | undefined;
899
899
  activated?: boolean | undefined;
900
- microLessonCompletions?: {
900
+ worksheetCompletions?: {
901
901
  startTime: number;
902
- microLessonId: string;
902
+ worksheetId: string;
903
903
  city?: string | undefined;
904
904
  country?: string | undefined;
905
905
  region?: string | undefined;
@@ -966,7 +966,7 @@ export declare const PushEnabledWahaUserSchema: z.ZodObject<Omit<{
966
966
  trainingUnlocked?: boolean | undefined;
967
967
  shareLog?: {
968
968
  time: number;
969
- content: "lesson" | "note" | "setLink" | "lessonLink" | "app" | "passcode" | "lessonAudio" | "lessonText" | "storyText" | "storyAudio" | "meetingInvite" | "articleLink" | "videoLink" | "notification" | "meetingSchedule" | "scriptureText" | "mt" | "scriptureAudio" | "inviteGroup" | "offlineVersionLink" | "customSet" | "microLesson";
969
+ content: "lesson" | "note" | "setLink" | "lessonLink" | "app" | "passcode" | "lessonAudio" | "lessonText" | "storyText" | "storyAudio" | "meetingInvite" | "articleLink" | "videoLink" | "notification" | "meetingSchedule" | "scriptureText" | "mt" | "scriptureAudio" | "inviteGroup" | "offlineVersionLink" | "customSet";
970
970
  lessonId?: string | undefined;
971
971
  articleSlug?: string | undefined;
972
972
  }[] | undefined;
@@ -982,9 +982,9 @@ export declare const PushEnabledWahaUserSchema: z.ZodObject<Omit<{
982
982
  timeSpent: number;
983
983
  }[] | undefined;
984
984
  activated?: boolean | undefined;
985
- microLessonCompletions?: {
985
+ worksheetCompletions?: {
986
986
  startTime: number;
987
- microLessonId: string;
987
+ worksheetId: string;
988
988
  city?: string | undefined;
989
989
  country?: string | undefined;
990
990
  region?: string | undefined;
@@ -72,15 +72,15 @@ exports.CompletionEventSchema = zod_1.z.object({
72
72
  */
73
73
  manual: zod_1.z.boolean().optional(),
74
74
  });
75
- const MicroLessonAnswerSchema = zod_1.z.object({
75
+ const WorksheetAnswerSchema = zod_1.z.object({
76
76
  question: zod_1.z.string(),
77
77
  answer: zod_1.z.string(),
78
78
  });
79
- const MicroLessonCompletionEventSchema = zod_1.z.object({
79
+ const WorksheetCompletionEventSchema = zod_1.z.object({
80
80
  startTime: zod_1.z.number(),
81
81
  completionTime: zod_1.z.number().optional(),
82
- microLessonId: zod_1.z.string(),
83
- answers: zod_1.z.array(MicroLessonAnswerSchema),
82
+ worksheetId: zod_1.z.string(),
83
+ answers: zod_1.z.array(WorksheetAnswerSchema),
84
84
  country: zod_1.z.string().optional(),
85
85
  region: zod_1.z.string().optional(),
86
86
  city: zod_1.z.string().optional(),
@@ -110,7 +110,6 @@ exports.WahaShareContentSchema = zod_1.z.enum([
110
110
  'offlineVersionLink',
111
111
  'note',
112
112
  'customSet',
113
- 'microLesson',
114
113
  ]);
115
114
  exports.ShareLogEventSchema = zod_1.z.object({
116
115
  time: zod_1.z.number(),
@@ -147,8 +146,8 @@ exports.WahaUserSchema = exports.WahaUserStateSchema.extend({
147
146
  bibleSessions: zod_1.z.array(exports.BibleSessionSchema).optional(),
148
147
  articleSessions: zod_1.z.array(exports.ArticleSessionSchema).optional(),
149
148
  activated: zod_1.z.boolean().optional(),
150
- microLessonCompletions: zod_1.z
151
- .array(MicroLessonCompletionEventSchema.omit({ answers: true }))
149
+ worksheetCompletions: zod_1.z
150
+ .array(WorksheetCompletionEventSchema.omit({ answers: true }))
152
151
  .optional(),
153
152
  });
154
153
  exports.PushEnabledWahaUserSchema = exports.WahaUserSchema.omit({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waha-shared",
3
- "version": "1.0.199",
3
+ "version": "1.0.200",
4
4
  "author": "Waha",
5
5
  "dependencies": {
6
6
  "@types/signale": "^1.4.7",
@@ -1,232 +0,0 @@
1
- import z from 'zod';
2
- export declare const ArticleSchema: z.ZodObject<{
3
- title: z.ZodString;
4
- author: z.ZodOptional<z.ZodString>;
5
- category: z.ZodEnum<["Case Studies", "Discovering God", "Disciple Making Secrets", "Product Updates", "Books", "Films"]>;
6
- image: z.ZodOptional<z.ZodString>;
7
- date: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
8
- isDraft: z.ZodOptional<z.ZodBoolean>;
9
- seekerFriendly: z.ZodOptional<z.ZodBoolean>;
10
- platform: z.ZodEnum<["Web Only", "App Only", "All"]>;
11
- audio: z.ZodOptional<z.ZodString>;
12
- video: z.ZodOptional<z.ZodString>;
13
- impactStoryRegion: z.ZodOptional<z.ZodEnum<["North America", "Latin America and the Caribbean", "Middle East/North Africa", "Sub-Saharan Africa", "Western Europe", "Eastern Europe", "Western Asia", "Southern Asia", "Central Asia", "Southeast Asia", "Eastern Asia", "Oceania"]>>;
14
- }, "strip", z.ZodTypeAny, {
15
- title: string;
16
- category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
17
- platform: "Web Only" | "App Only" | "All";
18
- date?: string | Date | undefined;
19
- audio?: string | undefined;
20
- video?: string | undefined;
21
- author?: string | undefined;
22
- image?: string | undefined;
23
- isDraft?: boolean | undefined;
24
- seekerFriendly?: boolean | undefined;
25
- impactStoryRegion?: "North America" | "Latin America and the Caribbean" | "Middle East/North Africa" | "Sub-Saharan Africa" | "Western Europe" | "Eastern Europe" | "Western Asia" | "Southern Asia" | "Central Asia" | "Southeast Asia" | "Eastern Asia" | "Oceania" | undefined;
26
- }, {
27
- title: string;
28
- category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
29
- platform: "Web Only" | "App Only" | "All";
30
- date?: string | Date | undefined;
31
- audio?: string | undefined;
32
- video?: string | undefined;
33
- author?: string | undefined;
34
- image?: string | undefined;
35
- isDraft?: boolean | undefined;
36
- seekerFriendly?: boolean | undefined;
37
- impactStoryRegion?: "North America" | "Latin America and the Caribbean" | "Middle East/North Africa" | "Sub-Saharan Africa" | "Western Europe" | "Eastern Europe" | "Western Asia" | "Southern Asia" | "Central Asia" | "Southeast Asia" | "Eastern Asia" | "Oceania" | undefined;
38
- }>;
39
- export type Article = z.infer<typeof ArticleSchema>;
40
- export declare const ResponseArticleSchema: z.ZodObject<{
41
- id: z.ZodString;
42
- data: z.ZodObject<{
43
- title: z.ZodString;
44
- author: z.ZodOptional<z.ZodString>;
45
- category: z.ZodEnum<["Case Studies", "Discovering God", "Disciple Making Secrets", "Product Updates", "Books", "Films"]>;
46
- image: z.ZodOptional<z.ZodString>;
47
- date: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
48
- isDraft: z.ZodOptional<z.ZodBoolean>;
49
- seekerFriendly: z.ZodOptional<z.ZodBoolean>;
50
- platform: z.ZodEnum<["Web Only", "App Only", "All"]>;
51
- audio: z.ZodOptional<z.ZodString>;
52
- video: z.ZodOptional<z.ZodString>;
53
- impactStoryRegion: z.ZodOptional<z.ZodEnum<["North America", "Latin America and the Caribbean", "Middle East/North Africa", "Sub-Saharan Africa", "Western Europe", "Eastern Europe", "Western Asia", "Southern Asia", "Central Asia", "Southeast Asia", "Eastern Asia", "Oceania"]>>;
54
- }, "strip", z.ZodTypeAny, {
55
- title: string;
56
- category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
57
- platform: "Web Only" | "App Only" | "All";
58
- date?: string | Date | undefined;
59
- audio?: string | undefined;
60
- video?: string | undefined;
61
- author?: string | undefined;
62
- image?: string | undefined;
63
- isDraft?: boolean | undefined;
64
- seekerFriendly?: boolean | undefined;
65
- impactStoryRegion?: "North America" | "Latin America and the Caribbean" | "Middle East/North Africa" | "Sub-Saharan Africa" | "Western Europe" | "Eastern Europe" | "Western Asia" | "Southern Asia" | "Central Asia" | "Southeast Asia" | "Eastern Asia" | "Oceania" | undefined;
66
- }, {
67
- title: string;
68
- category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
69
- platform: "Web Only" | "App Only" | "All";
70
- date?: string | Date | undefined;
71
- audio?: string | undefined;
72
- video?: string | undefined;
73
- author?: string | undefined;
74
- image?: string | undefined;
75
- isDraft?: boolean | undefined;
76
- seekerFriendly?: boolean | undefined;
77
- impactStoryRegion?: "North America" | "Latin America and the Caribbean" | "Middle East/North Africa" | "Sub-Saharan Africa" | "Western Europe" | "Eastern Europe" | "Western Asia" | "Southern Asia" | "Central Asia" | "Southeast Asia" | "Eastern Asia" | "Oceania" | undefined;
78
- }>;
79
- body: z.ZodString;
80
- slug: z.ZodString;
81
- }, "strip", z.ZodTypeAny, {
82
- id: string;
83
- body: string;
84
- data: {
85
- title: string;
86
- category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
87
- platform: "Web Only" | "App Only" | "All";
88
- date?: string | Date | undefined;
89
- audio?: string | undefined;
90
- video?: string | undefined;
91
- author?: string | undefined;
92
- image?: string | undefined;
93
- isDraft?: boolean | undefined;
94
- seekerFriendly?: boolean | undefined;
95
- impactStoryRegion?: "North America" | "Latin America and the Caribbean" | "Middle East/North Africa" | "Sub-Saharan Africa" | "Western Europe" | "Eastern Europe" | "Western Asia" | "Southern Asia" | "Central Asia" | "Southeast Asia" | "Eastern Asia" | "Oceania" | undefined;
96
- };
97
- slug: string;
98
- }, {
99
- id: string;
100
- body: string;
101
- data: {
102
- title: string;
103
- category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
104
- platform: "Web Only" | "App Only" | "All";
105
- date?: string | Date | undefined;
106
- audio?: string | undefined;
107
- video?: string | undefined;
108
- author?: string | undefined;
109
- image?: string | undefined;
110
- isDraft?: boolean | undefined;
111
- seekerFriendly?: boolean | undefined;
112
- impactStoryRegion?: "North America" | "Latin America and the Caribbean" | "Middle East/North Africa" | "Sub-Saharan Africa" | "Western Europe" | "Eastern Europe" | "Western Asia" | "Southern Asia" | "Central Asia" | "Southeast Asia" | "Eastern Asia" | "Oceania" | undefined;
113
- };
114
- slug: string;
115
- }>;
116
- export type ResponseArticle = z.infer<typeof ResponseArticleSchema>;
117
- export declare const ArticlesResponseSchema: z.ZodObject<{
118
- data: z.ZodArray<z.ZodObject<{
119
- id: z.ZodString;
120
- data: z.ZodObject<{
121
- title: z.ZodString;
122
- author: z.ZodOptional<z.ZodString>;
123
- category: z.ZodEnum<["Case Studies", "Discovering God", "Disciple Making Secrets", "Product Updates", "Books", "Films"]>;
124
- image: z.ZodOptional<z.ZodString>;
125
- date: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
126
- isDraft: z.ZodOptional<z.ZodBoolean>;
127
- seekerFriendly: z.ZodOptional<z.ZodBoolean>;
128
- platform: z.ZodEnum<["Web Only", "App Only", "All"]>;
129
- audio: z.ZodOptional<z.ZodString>;
130
- video: z.ZodOptional<z.ZodString>;
131
- impactStoryRegion: z.ZodOptional<z.ZodEnum<["North America", "Latin America and the Caribbean", "Middle East/North Africa", "Sub-Saharan Africa", "Western Europe", "Eastern Europe", "Western Asia", "Southern Asia", "Central Asia", "Southeast Asia", "Eastern Asia", "Oceania"]>>;
132
- }, "strip", z.ZodTypeAny, {
133
- title: string;
134
- category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
135
- platform: "Web Only" | "App Only" | "All";
136
- date?: string | Date | undefined;
137
- audio?: string | undefined;
138
- video?: string | undefined;
139
- author?: string | undefined;
140
- image?: string | undefined;
141
- isDraft?: boolean | undefined;
142
- seekerFriendly?: boolean | undefined;
143
- impactStoryRegion?: "North America" | "Latin America and the Caribbean" | "Middle East/North Africa" | "Sub-Saharan Africa" | "Western Europe" | "Eastern Europe" | "Western Asia" | "Southern Asia" | "Central Asia" | "Southeast Asia" | "Eastern Asia" | "Oceania" | undefined;
144
- }, {
145
- title: string;
146
- category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
147
- platform: "Web Only" | "App Only" | "All";
148
- date?: string | Date | undefined;
149
- audio?: string | undefined;
150
- video?: string | undefined;
151
- author?: string | undefined;
152
- image?: string | undefined;
153
- isDraft?: boolean | undefined;
154
- seekerFriendly?: boolean | undefined;
155
- impactStoryRegion?: "North America" | "Latin America and the Caribbean" | "Middle East/North Africa" | "Sub-Saharan Africa" | "Western Europe" | "Eastern Europe" | "Western Asia" | "Southern Asia" | "Central Asia" | "Southeast Asia" | "Eastern Asia" | "Oceania" | undefined;
156
- }>;
157
- body: z.ZodString;
158
- slug: z.ZodString;
159
- }, "strip", z.ZodTypeAny, {
160
- id: string;
161
- body: string;
162
- data: {
163
- title: string;
164
- category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
165
- platform: "Web Only" | "App Only" | "All";
166
- date?: string | Date | undefined;
167
- audio?: string | undefined;
168
- video?: string | undefined;
169
- author?: string | undefined;
170
- image?: string | undefined;
171
- isDraft?: boolean | undefined;
172
- seekerFriendly?: boolean | undefined;
173
- impactStoryRegion?: "North America" | "Latin America and the Caribbean" | "Middle East/North Africa" | "Sub-Saharan Africa" | "Western Europe" | "Eastern Europe" | "Western Asia" | "Southern Asia" | "Central Asia" | "Southeast Asia" | "Eastern Asia" | "Oceania" | undefined;
174
- };
175
- slug: string;
176
- }, {
177
- id: string;
178
- body: string;
179
- data: {
180
- title: string;
181
- category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
182
- platform: "Web Only" | "App Only" | "All";
183
- date?: string | Date | undefined;
184
- audio?: string | undefined;
185
- video?: string | undefined;
186
- author?: string | undefined;
187
- image?: string | undefined;
188
- isDraft?: boolean | undefined;
189
- seekerFriendly?: boolean | undefined;
190
- impactStoryRegion?: "North America" | "Latin America and the Caribbean" | "Middle East/North Africa" | "Sub-Saharan Africa" | "Western Europe" | "Eastern Europe" | "Western Asia" | "Southern Asia" | "Central Asia" | "Southeast Asia" | "Eastern Asia" | "Oceania" | undefined;
191
- };
192
- slug: string;
193
- }>, "many">;
194
- }, "strip", z.ZodTypeAny, {
195
- data: {
196
- id: string;
197
- body: string;
198
- data: {
199
- title: string;
200
- category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
201
- platform: "Web Only" | "App Only" | "All";
202
- date?: string | Date | undefined;
203
- audio?: string | undefined;
204
- video?: string | undefined;
205
- author?: string | undefined;
206
- image?: string | undefined;
207
- isDraft?: boolean | undefined;
208
- seekerFriendly?: boolean | undefined;
209
- impactStoryRegion?: "North America" | "Latin America and the Caribbean" | "Middle East/North Africa" | "Sub-Saharan Africa" | "Western Europe" | "Eastern Europe" | "Western Asia" | "Southern Asia" | "Central Asia" | "Southeast Asia" | "Eastern Asia" | "Oceania" | undefined;
210
- };
211
- slug: string;
212
- }[];
213
- }, {
214
- data: {
215
- id: string;
216
- body: string;
217
- data: {
218
- title: string;
219
- category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
220
- platform: "Web Only" | "App Only" | "All";
221
- date?: string | Date | undefined;
222
- audio?: string | undefined;
223
- video?: string | undefined;
224
- author?: string | undefined;
225
- image?: string | undefined;
226
- isDraft?: boolean | undefined;
227
- seekerFriendly?: boolean | undefined;
228
- impactStoryRegion?: "North America" | "Latin America and the Caribbean" | "Middle East/North Africa" | "Sub-Saharan Africa" | "Western Europe" | "Eastern Europe" | "Western Asia" | "Southern Asia" | "Central Asia" | "Southeast Asia" | "Eastern Asia" | "Oceania" | undefined;
229
- };
230
- slug: string;
231
- }[];
232
- }>;
@@ -1,53 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ArticlesResponseSchema = exports.ResponseArticleSchema = exports.ArticleSchema = void 0;
7
- const zod_1 = __importDefault(require("zod"));
8
- const webContent_1 = require("./webContent");
9
- exports.ArticleSchema = zod_1.default.object({
10
- title: zod_1.default.string(),
11
- author: zod_1.default.string().optional(),
12
- category: zod_1.default.enum([
13
- 'Case Studies',
14
- 'Discovering God',
15
- 'Disciple Making Secrets',
16
- 'Product Updates',
17
- 'Books',
18
- 'Films',
19
- ]),
20
- image: zod_1.default.string().optional(),
21
- date: webContent_1.DateSchema,
22
- isDraft: webContent_1.IsDraftSchema,
23
- seekerFriendly: webContent_1.SeekerFriendlySchema,
24
- platform: webContent_1.PlatformSchema,
25
- audio: zod_1.default.string().optional(),
26
- video: zod_1.default.string().optional(),
27
- impactStoryRegion: zod_1.default
28
- .enum([
29
- 'North America',
30
- 'Latin America and the Caribbean',
31
- 'Middle East/North Africa',
32
- 'Sub-Saharan Africa',
33
- 'Western Europe',
34
- 'Eastern Europe',
35
- 'Western Asia',
36
- 'Southern Asia',
37
- 'Central Asia',
38
- 'Southeast Asia',
39
- 'Eastern Asia',
40
- 'Oceania',
41
- ])
42
- .optional()
43
- .describe('If this article is an impact story that should show up on the dashboard, select the region it is associated with.'),
44
- });
45
- exports.ResponseArticleSchema = zod_1.default.object({
46
- id: zod_1.default.string(),
47
- data: exports.ArticleSchema,
48
- body: zod_1.default.string(),
49
- slug: zod_1.default.string(),
50
- });
51
- exports.ArticlesResponseSchema = zod_1.default.object({
52
- data: zod_1.default.array(exports.ResponseArticleSchema),
53
- });