waha-shared 1.0.195 → 1.0.197

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 Worksheets = {
119
- name: 'WorksheetNotificationResponse';
118
+ type MicroLessons = {
119
+ name: 'MicroLessonNotificationResponse';
120
120
  payload: {
121
- worksheetId: string;
121
+ microLessonId: string;
122
122
  didApply: boolean;
123
123
  };
124
124
  } | {
125
- name: 'WorksheetStart';
125
+ name: 'MicroLessonStart';
126
126
  payload: {
127
- worksheetId: string;
127
+ microLessonId: string;
128
128
  };
129
129
  } | {
130
- name: 'WorksheetComplete';
130
+ name: 'MicroLessonComplete';
131
131
  payload: {
132
- worksheetId: string;
132
+ microLessonId: string;
133
133
  timeToCompletion: number;
134
134
  };
135
135
  };
136
- export type AnalyticsEvent = Meeting | Share | Misc | Article | Bible | Note | Worksheets;
136
+ export type AnalyticsEvent = Meeting | Share | Misc | Article | Bible | Note | MicroLessons;
137
137
  export {};
@@ -29,11 +29,14 @@ export declare const MicroLessonSchema: z.ZodObject<{
29
29
  prefilledText?: string | undefined;
30
30
  }>>;
31
31
  radioButtons: z.ZodOptional<z.ZodArray<z.ZodObject<{
32
- text: z.ZodString;
32
+ heading: z.ZodOptional<z.ZodString>;
33
+ body: z.ZodOptional<z.ZodString>;
33
34
  }, "strip", z.ZodTypeAny, {
34
- text: string;
35
+ body?: string | undefined;
36
+ heading?: string | undefined;
35
37
  }, {
36
- text: string;
38
+ body?: string | undefined;
39
+ heading?: string | undefined;
37
40
  }>, "many">>;
38
41
  videoUrl: z.ZodOptional<z.ZodString>;
39
42
  platform: z.ZodOptional<z.ZodEnum<["Web Only", "App Only", "All"]>>;
@@ -68,7 +71,8 @@ export declare const MicroLessonSchema: z.ZodObject<{
68
71
  prefilledText?: string | undefined;
69
72
  } | undefined;
70
73
  radioButtons?: {
71
- text: string;
74
+ body?: string | undefined;
75
+ heading?: string | undefined;
72
76
  }[] | undefined;
73
77
  videoUrl?: string | undefined;
74
78
  }, {
@@ -89,7 +93,8 @@ export declare const MicroLessonSchema: z.ZodObject<{
89
93
  prefilledText?: string | undefined;
90
94
  } | undefined;
91
95
  radioButtons?: {
92
- text: string;
96
+ body?: string | undefined;
97
+ heading?: string | undefined;
93
98
  }[] | undefined;
94
99
  videoUrl?: string | undefined;
95
100
  }>, "many">;
@@ -117,7 +122,8 @@ export declare const MicroLessonSchema: z.ZodObject<{
117
122
  prefilledText?: string | undefined;
118
123
  } | undefined;
119
124
  radioButtons?: {
120
- text: string;
125
+ body?: string | undefined;
126
+ heading?: string | undefined;
121
127
  }[] | undefined;
122
128
  videoUrl?: string | undefined;
123
129
  }[];
@@ -147,7 +153,8 @@ export declare const MicroLessonSchema: z.ZodObject<{
147
153
  prefilledText?: string | undefined;
148
154
  } | undefined;
149
155
  radioButtons?: {
150
- text: string;
156
+ body?: string | undefined;
157
+ heading?: string | undefined;
151
158
  }[] | undefined;
152
159
  videoUrl?: string | undefined;
153
160
  }[];
@@ -187,11 +194,14 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
187
194
  prefilledText?: string | undefined;
188
195
  }>>;
189
196
  radioButtons: z.ZodOptional<z.ZodArray<z.ZodObject<{
190
- text: z.ZodString;
197
+ heading: z.ZodOptional<z.ZodString>;
198
+ body: z.ZodOptional<z.ZodString>;
191
199
  }, "strip", z.ZodTypeAny, {
192
- text: string;
200
+ body?: string | undefined;
201
+ heading?: string | undefined;
193
202
  }, {
194
- text: string;
203
+ body?: string | undefined;
204
+ heading?: string | undefined;
195
205
  }>, "many">>;
196
206
  videoUrl: z.ZodOptional<z.ZodString>;
197
207
  platform: z.ZodOptional<z.ZodEnum<["Web Only", "App Only", "All"]>>;
@@ -226,7 +236,8 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
226
236
  prefilledText?: string | undefined;
227
237
  } | undefined;
228
238
  radioButtons?: {
229
- text: string;
239
+ body?: string | undefined;
240
+ heading?: string | undefined;
230
241
  }[] | undefined;
231
242
  videoUrl?: string | undefined;
232
243
  }, {
@@ -247,7 +258,8 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
247
258
  prefilledText?: string | undefined;
248
259
  } | undefined;
249
260
  radioButtons?: {
250
- text: string;
261
+ body?: string | undefined;
262
+ heading?: string | undefined;
251
263
  }[] | undefined;
252
264
  videoUrl?: string | undefined;
253
265
  }>, "many">;
@@ -275,7 +287,8 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
275
287
  prefilledText?: string | undefined;
276
288
  } | undefined;
277
289
  radioButtons?: {
278
- text: string;
290
+ body?: string | undefined;
291
+ heading?: string | undefined;
279
292
  }[] | undefined;
280
293
  videoUrl?: string | undefined;
281
294
  }[];
@@ -305,7 +318,8 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
305
318
  prefilledText?: string | undefined;
306
319
  } | undefined;
307
320
  radioButtons?: {
308
- text: string;
321
+ body?: string | undefined;
322
+ heading?: string | undefined;
309
323
  }[] | undefined;
310
324
  videoUrl?: string | undefined;
311
325
  }[];
@@ -338,7 +352,8 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
338
352
  prefilledText?: string | undefined;
339
353
  } | undefined;
340
354
  radioButtons?: {
341
- text: string;
355
+ body?: string | undefined;
356
+ heading?: string | undefined;
342
357
  }[] | undefined;
343
358
  videoUrl?: string | undefined;
344
359
  }[];
@@ -371,7 +386,8 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
371
386
  prefilledText?: string | undefined;
372
387
  } | undefined;
373
388
  radioButtons?: {
374
- text: string;
389
+ body?: string | undefined;
390
+ heading?: string | undefined;
375
391
  }[] | undefined;
376
392
  videoUrl?: string | undefined;
377
393
  }[];
@@ -413,11 +429,14 @@ export declare const MicroLessonsResponse: z.ZodObject<{
413
429
  prefilledText?: string | undefined;
414
430
  }>>;
415
431
  radioButtons: z.ZodOptional<z.ZodArray<z.ZodObject<{
416
- text: z.ZodString;
432
+ heading: z.ZodOptional<z.ZodString>;
433
+ body: z.ZodOptional<z.ZodString>;
417
434
  }, "strip", z.ZodTypeAny, {
418
- text: string;
435
+ body?: string | undefined;
436
+ heading?: string | undefined;
419
437
  }, {
420
- text: string;
438
+ body?: string | undefined;
439
+ heading?: string | undefined;
421
440
  }>, "many">>;
422
441
  videoUrl: z.ZodOptional<z.ZodString>;
423
442
  platform: z.ZodOptional<z.ZodEnum<["Web Only", "App Only", "All"]>>;
@@ -452,7 +471,8 @@ export declare const MicroLessonsResponse: z.ZodObject<{
452
471
  prefilledText?: string | undefined;
453
472
  } | undefined;
454
473
  radioButtons?: {
455
- text: string;
474
+ body?: string | undefined;
475
+ heading?: string | undefined;
456
476
  }[] | undefined;
457
477
  videoUrl?: string | undefined;
458
478
  }, {
@@ -473,7 +493,8 @@ export declare const MicroLessonsResponse: z.ZodObject<{
473
493
  prefilledText?: string | undefined;
474
494
  } | undefined;
475
495
  radioButtons?: {
476
- text: string;
496
+ body?: string | undefined;
497
+ heading?: string | undefined;
477
498
  }[] | undefined;
478
499
  videoUrl?: string | undefined;
479
500
  }>, "many">;
@@ -501,7 +522,8 @@ export declare const MicroLessonsResponse: z.ZodObject<{
501
522
  prefilledText?: string | undefined;
502
523
  } | undefined;
503
524
  radioButtons?: {
504
- text: string;
525
+ body?: string | undefined;
526
+ heading?: string | undefined;
505
527
  }[] | undefined;
506
528
  videoUrl?: string | undefined;
507
529
  }[];
@@ -531,7 +553,8 @@ export declare const MicroLessonsResponse: z.ZodObject<{
531
553
  prefilledText?: string | undefined;
532
554
  } | undefined;
533
555
  radioButtons?: {
534
- text: string;
556
+ body?: string | undefined;
557
+ heading?: string | undefined;
535
558
  }[] | undefined;
536
559
  videoUrl?: string | undefined;
537
560
  }[];
@@ -564,7 +587,8 @@ export declare const MicroLessonsResponse: z.ZodObject<{
564
587
  prefilledText?: string | undefined;
565
588
  } | undefined;
566
589
  radioButtons?: {
567
- text: string;
590
+ body?: string | undefined;
591
+ heading?: string | undefined;
568
592
  }[] | undefined;
569
593
  videoUrl?: string | undefined;
570
594
  }[];
@@ -597,7 +621,8 @@ export declare const MicroLessonsResponse: z.ZodObject<{
597
621
  prefilledText?: string | undefined;
598
622
  } | undefined;
599
623
  radioButtons?: {
600
- text: string;
624
+ body?: string | undefined;
625
+ heading?: string | undefined;
601
626
  }[] | undefined;
602
627
  videoUrl?: string | undefined;
603
628
  }[];
@@ -632,7 +657,8 @@ export declare const MicroLessonsResponse: z.ZodObject<{
632
657
  prefilledText?: string | undefined;
633
658
  } | undefined;
634
659
  radioButtons?: {
635
- text: string;
660
+ body?: string | undefined;
661
+ heading?: string | undefined;
636
662
  }[] | undefined;
637
663
  videoUrl?: string | undefined;
638
664
  }[];
@@ -667,7 +693,8 @@ export declare const MicroLessonsResponse: z.ZodObject<{
667
693
  prefilledText?: string | undefined;
668
694
  } | undefined;
669
695
  radioButtons?: {
670
- text: string;
696
+ body?: string | undefined;
697
+ heading?: string | undefined;
671
698
  }[] | undefined;
672
699
  videoUrl?: string | undefined;
673
700
  }[];
@@ -30,7 +30,12 @@ exports.MicroLessonSchema = zod_1.default.object({
30
30
  prefilledText: zod_1.default.string().optional(),
31
31
  })
32
32
  .optional(),
33
- radioButtons: zod_1.default.array(zod_1.default.object({ text: zod_1.default.string() })).optional(),
33
+ radioButtons: zod_1.default
34
+ .array(zod_1.default.object({
35
+ heading: zod_1.default.string().optional(),
36
+ body: zod_1.default.string().optional(),
37
+ }))
38
+ .optional(),
34
39
  videoUrl: zod_1.default.string().optional(),
35
40
  platform: webContent_1.PlatformSchema.optional(),
36
41
  notification: zod_1.default
@@ -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 WorksheetAnswerSchema: z.ZodObject<{
180
+ declare const MicroLessonAnswerSchema: z.ZodObject<{
181
181
  question: z.ZodString;
182
182
  answer: z.ZodString;
183
183
  }, "strip", z.ZodTypeAny, {
@@ -187,11 +187,11 @@ declare const WorksheetAnswerSchema: z.ZodObject<{
187
187
  question: string;
188
188
  answer: string;
189
189
  }>;
190
- export type WorksheetAnswer = z.infer<typeof WorksheetAnswerSchema>;
191
- declare const WorksheetCompletionEventSchema: z.ZodObject<{
190
+ export type MicroLessonAnswer = z.infer<typeof MicroLessonAnswerSchema>;
191
+ declare const MicroLessonCompletionEventSchema: z.ZodObject<{
192
192
  startTime: z.ZodNumber;
193
193
  completionTime: z.ZodOptional<z.ZodNumber>;
194
- worksheetId: z.ZodString;
194
+ microLessonId: 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 WorksheetCompletionEventSchema: z.ZodObject<{
210
210
  feedback: z.ZodOptional<z.ZodString>;
211
211
  }, "strip", z.ZodTypeAny, {
212
212
  startTime: number;
213
- worksheetId: string;
213
+ microLessonId: string;
214
214
  answers: {
215
215
  question: string;
216
216
  answer: string;
@@ -224,7 +224,7 @@ declare const WorksheetCompletionEventSchema: z.ZodObject<{
224
224
  feedback?: string | undefined;
225
225
  }, {
226
226
  startTime: number;
227
- worksheetId: string;
227
+ microLessonId: string;
228
228
  answers: {
229
229
  question: string;
230
230
  answer: string;
@@ -237,22 +237,22 @@ declare const WorksheetCompletionEventSchema: z.ZodObject<{
237
237
  notificationText?: string | undefined;
238
238
  feedback?: string | undefined;
239
239
  }>;
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"]>;
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"]>;
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"]>;
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"]>;
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";
250
+ content: "lesson" | "note" | "setLink" | "lessonLink" | "app" | "passcode" | "lessonAudio" | "lessonText" | "storyText" | "storyAudio" | "meetingInvite" | "articleLink" | "videoLink" | "notification" | "meetingSchedule" | "scriptureText" | "mt" | "scriptureAudio" | "inviteGroup" | "offlineVersionLink" | "customSet" | "microLesson";
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";
255
+ content: "lesson" | "note" | "setLink" | "lessonLink" | "app" | "passcode" | "lessonAudio" | "lessonText" | "storyText" | "storyAudio" | "meetingInvite" | "articleLink" | "videoLink" | "notification" | "meetingSchedule" | "scriptureText" | "mt" | "scriptureAudio" | "inviteGroup" | "offlineVersionLink" | "customSet" | "microLesson";
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"]>;
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"]>;
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";
391
+ content: "lesson" | "note" | "setLink" | "lessonLink" | "app" | "passcode" | "lessonAudio" | "lessonText" | "storyText" | "storyAudio" | "meetingInvite" | "articleLink" | "videoLink" | "notification" | "meetingSchedule" | "scriptureText" | "mt" | "scriptureAudio" | "inviteGroup" | "offlineVersionLink" | "customSet" | "microLesson";
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";
396
+ content: "lesson" | "note" | "setLink" | "lessonLink" | "app" | "passcode" | "lessonAudio" | "lessonText" | "storyText" | "storyAudio" | "meetingInvite" | "articleLink" | "videoLink" | "notification" | "meetingSchedule" | "scriptureText" | "mt" | "scriptureAudio" | "inviteGroup" | "offlineVersionLink" | "customSet" | "microLesson";
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
- worksheetCompletions: z.ZodOptional<z.ZodArray<z.ZodObject<Omit<{
430
+ microLessonCompletions: z.ZodOptional<z.ZodArray<z.ZodObject<Omit<{
431
431
  startTime: z.ZodNumber;
432
432
  completionTime: z.ZodOptional<z.ZodNumber>;
433
- worksheetId: z.ZodString;
433
+ microLessonId: 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
- worksheetId: string;
452
+ microLessonId: 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
- worksheetId: string;
462
+ microLessonId: 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";
529
+ content: "lesson" | "note" | "setLink" | "lessonLink" | "app" | "passcode" | "lessonAudio" | "lessonText" | "storyText" | "storyAudio" | "meetingInvite" | "articleLink" | "videoLink" | "notification" | "meetingSchedule" | "scriptureText" | "mt" | "scriptureAudio" | "inviteGroup" | "offlineVersionLink" | "customSet" | "microLesson";
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
- worksheetCompletions?: {
545
+ microLessonCompletions?: {
546
546
  startTime: number;
547
- worksheetId: string;
547
+ microLessonId: 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";
614
+ content: "lesson" | "note" | "setLink" | "lessonLink" | "app" | "passcode" | "lessonAudio" | "lessonText" | "storyText" | "storyAudio" | "meetingInvite" | "articleLink" | "videoLink" | "notification" | "meetingSchedule" | "scriptureText" | "mt" | "scriptureAudio" | "inviteGroup" | "offlineVersionLink" | "customSet" | "microLesson";
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
- worksheetCompletions?: {
630
+ microLessonCompletions?: {
631
631
  startTime: number;
632
- worksheetId: string;
632
+ microLessonId: 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"]>;
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"]>;
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";
742
+ content: "lesson" | "note" | "setLink" | "lessonLink" | "app" | "passcode" | "lessonAudio" | "lessonText" | "storyText" | "storyAudio" | "meetingInvite" | "articleLink" | "videoLink" | "notification" | "meetingSchedule" | "scriptureText" | "mt" | "scriptureAudio" | "inviteGroup" | "offlineVersionLink" | "customSet" | "microLesson";
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";
747
+ content: "lesson" | "note" | "setLink" | "lessonLink" | "app" | "passcode" | "lessonAudio" | "lessonText" | "storyText" | "storyAudio" | "meetingInvite" | "articleLink" | "videoLink" | "notification" | "meetingSchedule" | "scriptureText" | "mt" | "scriptureAudio" | "inviteGroup" | "offlineVersionLink" | "customSet" | "microLesson";
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
- worksheetCompletions: z.ZodOptional<z.ZodArray<z.ZodObject<Omit<{
781
+ microLessonCompletions: z.ZodOptional<z.ZodArray<z.ZodObject<Omit<{
782
782
  startTime: z.ZodNumber;
783
783
  completionTime: z.ZodOptional<z.ZodNumber>;
784
- worksheetId: z.ZodString;
784
+ microLessonId: 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
- worksheetId: string;
803
+ microLessonId: 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
- worksheetId: string;
813
+ microLessonId: 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";
884
+ content: "lesson" | "note" | "setLink" | "lessonLink" | "app" | "passcode" | "lessonAudio" | "lessonText" | "storyText" | "storyAudio" | "meetingInvite" | "articleLink" | "videoLink" | "notification" | "meetingSchedule" | "scriptureText" | "mt" | "scriptureAudio" | "inviteGroup" | "offlineVersionLink" | "customSet" | "microLesson";
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
- worksheetCompletions?: {
900
+ microLessonCompletions?: {
901
901
  startTime: number;
902
- worksheetId: string;
902
+ microLessonId: 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";
969
+ content: "lesson" | "note" | "setLink" | "lessonLink" | "app" | "passcode" | "lessonAudio" | "lessonText" | "storyText" | "storyAudio" | "meetingInvite" | "articleLink" | "videoLink" | "notification" | "meetingSchedule" | "scriptureText" | "mt" | "scriptureAudio" | "inviteGroup" | "offlineVersionLink" | "customSet" | "microLesson";
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
- worksheetCompletions?: {
985
+ microLessonCompletions?: {
986
986
  startTime: number;
987
- worksheetId: string;
987
+ microLessonId: 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 WorksheetAnswerSchema = zod_1.z.object({
75
+ const MicroLessonAnswerSchema = zod_1.z.object({
76
76
  question: zod_1.z.string(),
77
77
  answer: zod_1.z.string(),
78
78
  });
79
- const WorksheetCompletionEventSchema = zod_1.z.object({
79
+ const MicroLessonCompletionEventSchema = zod_1.z.object({
80
80
  startTime: zod_1.z.number(),
81
81
  completionTime: zod_1.z.number().optional(),
82
- worksheetId: zod_1.z.string(),
83
- answers: zod_1.z.array(WorksheetAnswerSchema),
82
+ microLessonId: zod_1.z.string(),
83
+ answers: zod_1.z.array(MicroLessonAnswerSchema),
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,6 +110,7 @@ exports.WahaShareContentSchema = zod_1.z.enum([
110
110
  'offlineVersionLink',
111
111
  'note',
112
112
  'customSet',
113
+ 'microLesson',
113
114
  ]);
114
115
  exports.ShareLogEventSchema = zod_1.z.object({
115
116
  time: zod_1.z.number(),
@@ -146,8 +147,8 @@ exports.WahaUserSchema = exports.WahaUserStateSchema.extend({
146
147
  bibleSessions: zod_1.z.array(exports.BibleSessionSchema).optional(),
147
148
  articleSessions: zod_1.z.array(exports.ArticleSessionSchema).optional(),
148
149
  activated: zod_1.z.boolean().optional(),
149
- worksheetCompletions: zod_1.z
150
- .array(WorksheetCompletionEventSchema.omit({ answers: true }))
150
+ microLessonCompletions: zod_1.z
151
+ .array(MicroLessonCompletionEventSchema.omit({ answers: true }))
151
152
  .optional(),
152
153
  });
153
154
  exports.PushEnabledWahaUserSchema = exports.WahaUserSchema.omit({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waha-shared",
3
- "version": "1.0.195",
3
+ "version": "1.0.197",
4
4
  "author": "Waha",
5
5
  "dependencies": {
6
6
  "@types/signale": "^1.4.7",