waha-shared 1.0.254 → 1.0.255
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.
- package/dist/data/releaseNotes/releaseNotes.json +91 -2
- package/dist/data/translationsApp/index.d.ts +33 -12
- package/dist/data/translationsApp/translationsApp.json +29 -281
- package/dist/data/translationsApp/translationsApp.schema.json +68 -0
- package/dist/data/translationsApp/translationsApp.zod.d.ts +33 -12
- package/dist/data/translationsApp/translationsApp.zod.js +38 -12
- package/dist/data/translationsQuestion/translationsQuestion.json +2 -2
- package/dist/data/translationsSpokenQuestion/translationsSpokenQuestion.json +3 -3
- package/dist/functions/scripturePassages.d.ts +24 -0
- package/dist/functions/scripturePassages.js +29 -4
- package/dist/types/analytics.d.ts +7 -21
- package/dist/types/articles.d.ts +4 -0
- package/dist/types/articles.js +4 -1
- package/dist/types/microLessons.js +47 -15
- package/dist/types/users.d.ts +34 -41
- package/dist/types/users.js +3 -19
- package/dist/types/webContent.js +2 -0
- package/package.json +1 -1
package/dist/types/users.d.ts
CHANGED
|
@@ -94,32 +94,12 @@ export declare const CompletionEventSchema: z.ZodObject<{
|
|
|
94
94
|
manual: z.ZodOptional<z.ZodBoolean>;
|
|
95
95
|
}, z.core.$strip>;
|
|
96
96
|
export type CompletionEvent = z.infer<typeof CompletionEventSchema>;
|
|
97
|
-
declare const WorksheetAnswerSchema: z.ZodObject<{
|
|
98
|
-
question: z.ZodString;
|
|
99
|
-
answer: z.ZodString;
|
|
100
|
-
}, z.core.$strip>;
|
|
101
|
-
export type WorksheetAnswer = z.infer<typeof WorksheetAnswerSchema>;
|
|
102
|
-
declare const WorksheetCompletionEventSchema: z.ZodObject<{
|
|
103
|
-
startTime: z.ZodNumber;
|
|
104
|
-
completionTime: z.ZodOptional<z.ZodNumber>;
|
|
105
|
-
worksheetId: z.ZodString;
|
|
106
|
-
answers: z.ZodArray<z.ZodObject<{
|
|
107
|
-
question: z.ZodString;
|
|
108
|
-
answer: z.ZodString;
|
|
109
|
-
}, z.core.$strip>>;
|
|
110
|
-
country: z.ZodOptional<z.ZodString>;
|
|
111
|
-
region: z.ZodOptional<z.ZodString>;
|
|
112
|
-
city: z.ZodOptional<z.ZodString>;
|
|
113
|
-
didApply: z.ZodOptional<z.ZodBoolean>;
|
|
114
|
-
notificationText: z.ZodOptional<z.ZodString>;
|
|
115
|
-
feedback: z.ZodOptional<z.ZodString>;
|
|
116
|
-
}, z.core.$strip>;
|
|
117
|
-
export type WorksheetCompletionEvent = z.infer<typeof WorksheetCompletionEventSchema>;
|
|
118
97
|
export declare const WahaShareContentSchema: z.ZodEnum<{
|
|
119
98
|
lesson: "lesson";
|
|
120
99
|
note: "note";
|
|
121
100
|
setLink: "setLink";
|
|
122
101
|
lessonLink: "lessonLink";
|
|
102
|
+
notification: "notification";
|
|
123
103
|
app: "app";
|
|
124
104
|
passcode: "passcode";
|
|
125
105
|
lessonAudio: "lessonAudio";
|
|
@@ -129,7 +109,6 @@ export declare const WahaShareContentSchema: z.ZodEnum<{
|
|
|
129
109
|
meetingInvite: "meetingInvite";
|
|
130
110
|
articleLink: "articleLink";
|
|
131
111
|
videoLink: "videoLink";
|
|
132
|
-
notification: "notification";
|
|
133
112
|
meetingSchedule: "meetingSchedule";
|
|
134
113
|
scriptureText: "scriptureText";
|
|
135
114
|
mt: "mt";
|
|
@@ -147,6 +126,7 @@ export declare const ShareLogEventSchema: z.ZodObject<{
|
|
|
147
126
|
note: "note";
|
|
148
127
|
setLink: "setLink";
|
|
149
128
|
lessonLink: "lessonLink";
|
|
129
|
+
notification: "notification";
|
|
150
130
|
app: "app";
|
|
151
131
|
passcode: "passcode";
|
|
152
132
|
lessonAudio: "lessonAudio";
|
|
@@ -156,7 +136,6 @@ export declare const ShareLogEventSchema: z.ZodObject<{
|
|
|
156
136
|
meetingInvite: "meetingInvite";
|
|
157
137
|
articleLink: "articleLink";
|
|
158
138
|
videoLink: "videoLink";
|
|
159
|
-
notification: "notification";
|
|
160
139
|
meetingSchedule: "meetingSchedule";
|
|
161
140
|
scriptureText: "scriptureText";
|
|
162
141
|
mt: "mt";
|
|
@@ -168,6 +147,7 @@ export declare const ShareLogEventSchema: z.ZodObject<{
|
|
|
168
147
|
}>;
|
|
169
148
|
lessonId: z.ZodOptional<z.ZodString>;
|
|
170
149
|
articleSlug: z.ZodOptional<z.ZodString>;
|
|
150
|
+
microLessonSlug: z.ZodOptional<z.ZodString>;
|
|
171
151
|
}, z.core.$strip>;
|
|
172
152
|
export type ShareLogEvent = z.infer<typeof ShareLogEventSchema>;
|
|
173
153
|
export declare const BibleSessionSchema: z.ZodObject<{
|
|
@@ -269,6 +249,7 @@ export declare const WahaUserSchema: z.ZodObject<{
|
|
|
269
249
|
note: "note";
|
|
270
250
|
setLink: "setLink";
|
|
271
251
|
lessonLink: "lessonLink";
|
|
252
|
+
notification: "notification";
|
|
272
253
|
app: "app";
|
|
273
254
|
passcode: "passcode";
|
|
274
255
|
lessonAudio: "lessonAudio";
|
|
@@ -278,7 +259,6 @@ export declare const WahaUserSchema: z.ZodObject<{
|
|
|
278
259
|
meetingInvite: "meetingInvite";
|
|
279
260
|
articleLink: "articleLink";
|
|
280
261
|
videoLink: "videoLink";
|
|
281
|
-
notification: "notification";
|
|
282
262
|
meetingSchedule: "meetingSchedule";
|
|
283
263
|
scriptureText: "scriptureText";
|
|
284
264
|
mt: "mt";
|
|
@@ -290,6 +270,7 @@ export declare const WahaUserSchema: z.ZodObject<{
|
|
|
290
270
|
}>;
|
|
291
271
|
lessonId: z.ZodOptional<z.ZodString>;
|
|
292
272
|
articleSlug: z.ZodOptional<z.ZodString>;
|
|
273
|
+
microLessonSlug: z.ZodOptional<z.ZodString>;
|
|
293
274
|
}, z.core.$strip>>>;
|
|
294
275
|
bibleSessions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
295
276
|
chapter: z.ZodString;
|
|
@@ -303,16 +284,22 @@ export declare const WahaUserSchema: z.ZodObject<{
|
|
|
303
284
|
startTime: z.ZodNumber;
|
|
304
285
|
}, z.core.$strip>>>;
|
|
305
286
|
activated: z.ZodOptional<z.ZodBoolean>;
|
|
306
|
-
|
|
287
|
+
microLessonCompletions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
307
288
|
city: z.ZodOptional<z.ZodString>;
|
|
308
289
|
country: z.ZodOptional<z.ZodString>;
|
|
309
290
|
region: z.ZodOptional<z.ZodString>;
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
291
|
+
microLessonId: z.ZodString;
|
|
292
|
+
userId: z.ZodString;
|
|
293
|
+
microLessonTitle: z.ZodString;
|
|
294
|
+
languageId: z.ZodString;
|
|
295
|
+
campaign: z.ZodOptional<z.ZodString>;
|
|
296
|
+
timeStarted: z.ZodNumber;
|
|
297
|
+
timeSubmitted: z.ZodNumber;
|
|
298
|
+
platform: z.ZodEnum<{
|
|
299
|
+
web: "web";
|
|
300
|
+
ios: "ios";
|
|
301
|
+
android: "android";
|
|
302
|
+
}>;
|
|
316
303
|
}, z.core.$strip>>>;
|
|
317
304
|
}, z.core.$strip>;
|
|
318
305
|
export declare const PushEnabledWahaUserSchema: z.ZodObject<{
|
|
@@ -320,6 +307,7 @@ export declare const PushEnabledWahaUserSchema: z.ZodObject<{
|
|
|
320
307
|
appInterface: z.ZodString;
|
|
321
308
|
email: z.ZodOptional<z.ZodEmail>;
|
|
322
309
|
meet: z.ZodString;
|
|
310
|
+
platform: z.ZodString;
|
|
323
311
|
location: z.ZodOptional<z.ZodObject<{
|
|
324
312
|
city: z.ZodOptional<z.ZodString>;
|
|
325
313
|
country: z.ZodOptional<z.ZodString>;
|
|
@@ -373,7 +361,6 @@ export declare const PushEnabledWahaUserSchema: z.ZodObject<{
|
|
|
373
361
|
securityModeOn: z.ZodOptional<z.ZodBoolean>;
|
|
374
362
|
appVersion: z.ZodString;
|
|
375
363
|
lastUpdate: z.ZodNumber;
|
|
376
|
-
platform: z.ZodString;
|
|
377
364
|
completions: z.ZodArray<z.ZodObject<{
|
|
378
365
|
lessonId: z.ZodString;
|
|
379
366
|
meetLanguageId: z.ZodString;
|
|
@@ -394,6 +381,7 @@ export declare const PushEnabledWahaUserSchema: z.ZodObject<{
|
|
|
394
381
|
note: "note";
|
|
395
382
|
setLink: "setLink";
|
|
396
383
|
lessonLink: "lessonLink";
|
|
384
|
+
notification: "notification";
|
|
397
385
|
app: "app";
|
|
398
386
|
passcode: "passcode";
|
|
399
387
|
lessonAudio: "lessonAudio";
|
|
@@ -403,7 +391,6 @@ export declare const PushEnabledWahaUserSchema: z.ZodObject<{
|
|
|
403
391
|
meetingInvite: "meetingInvite";
|
|
404
392
|
articleLink: "articleLink";
|
|
405
393
|
videoLink: "videoLink";
|
|
406
|
-
notification: "notification";
|
|
407
394
|
meetingSchedule: "meetingSchedule";
|
|
408
395
|
scriptureText: "scriptureText";
|
|
409
396
|
mt: "mt";
|
|
@@ -415,6 +402,7 @@ export declare const PushEnabledWahaUserSchema: z.ZodObject<{
|
|
|
415
402
|
}>;
|
|
416
403
|
lessonId: z.ZodOptional<z.ZodString>;
|
|
417
404
|
articleSlug: z.ZodOptional<z.ZodString>;
|
|
405
|
+
microLessonSlug: z.ZodOptional<z.ZodString>;
|
|
418
406
|
}, z.core.$strip>>>;
|
|
419
407
|
bibleSessions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
420
408
|
chapter: z.ZodString;
|
|
@@ -428,16 +416,22 @@ export declare const PushEnabledWahaUserSchema: z.ZodObject<{
|
|
|
428
416
|
startTime: z.ZodNumber;
|
|
429
417
|
}, z.core.$strip>>>;
|
|
430
418
|
activated: z.ZodOptional<z.ZodBoolean>;
|
|
431
|
-
|
|
419
|
+
microLessonCompletions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
432
420
|
city: z.ZodOptional<z.ZodString>;
|
|
433
421
|
country: z.ZodOptional<z.ZodString>;
|
|
434
422
|
region: z.ZodOptional<z.ZodString>;
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
423
|
+
microLessonId: z.ZodString;
|
|
424
|
+
userId: z.ZodString;
|
|
425
|
+
microLessonTitle: z.ZodString;
|
|
426
|
+
languageId: z.ZodString;
|
|
427
|
+
campaign: z.ZodOptional<z.ZodString>;
|
|
428
|
+
timeStarted: z.ZodNumber;
|
|
429
|
+
timeSubmitted: z.ZodNumber;
|
|
430
|
+
platform: z.ZodEnum<{
|
|
431
|
+
web: "web";
|
|
432
|
+
ios: "ios";
|
|
433
|
+
android: "android";
|
|
434
|
+
}>;
|
|
441
435
|
}, z.core.$strip>>>;
|
|
442
436
|
wahaUserId: z.ZodString;
|
|
443
437
|
pushToken: z.ZodString;
|
|
@@ -445,4 +439,3 @@ export declare const PushEnabledWahaUserSchema: z.ZodObject<{
|
|
|
445
439
|
}, z.core.$strip>;
|
|
446
440
|
export type PushEnabledWahaUser = z.infer<typeof PushEnabledWahaUserSchema>;
|
|
447
441
|
export type WahaUser = z.infer<typeof WahaUserSchema>;
|
|
448
|
-
export {};
|
package/dist/types/users.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PushEnabledWahaUserSchema = exports.WahaUserSchema = exports.ArticleSessionSchema = exports.BibleSessionSchema = exports.ShareLogEventSchema = exports.WahaShareContentSchema = exports.CompletionEventSchema = exports.WahaAppVersionSchema = exports.WahaUserStateSchema = exports.DesireIdSchema = exports.WahaUserLocationSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const microLessons_1 = require("./microLessons");
|
|
5
6
|
exports.WahaUserLocationSchema = zod_1.z.object({
|
|
6
7
|
city: zod_1.z.string().optional(),
|
|
7
8
|
country: zod_1.z.string().optional(),
|
|
@@ -73,22 +74,6 @@ exports.CompletionEventSchema = zod_1.z.object({
|
|
|
73
74
|
*/
|
|
74
75
|
manual: zod_1.z.boolean().optional(),
|
|
75
76
|
});
|
|
76
|
-
const WorksheetAnswerSchema = zod_1.z.object({
|
|
77
|
-
question: zod_1.z.string(),
|
|
78
|
-
answer: zod_1.z.string(),
|
|
79
|
-
});
|
|
80
|
-
const WorksheetCompletionEventSchema = zod_1.z.object({
|
|
81
|
-
startTime: zod_1.z.number(),
|
|
82
|
-
completionTime: zod_1.z.number().optional(),
|
|
83
|
-
worksheetId: zod_1.z.string(),
|
|
84
|
-
answers: zod_1.z.array(WorksheetAnswerSchema),
|
|
85
|
-
country: zod_1.z.string().optional(),
|
|
86
|
-
region: zod_1.z.string().optional(),
|
|
87
|
-
city: zod_1.z.string().optional(),
|
|
88
|
-
didApply: zod_1.z.boolean().optional(),
|
|
89
|
-
notificationText: zod_1.z.string().optional(),
|
|
90
|
-
feedback: zod_1.z.string().optional(),
|
|
91
|
-
});
|
|
92
77
|
exports.WahaShareContentSchema = zod_1.z.enum([
|
|
93
78
|
'app',
|
|
94
79
|
'passcode',
|
|
@@ -118,6 +103,7 @@ exports.ShareLogEventSchema = zod_1.z.object({
|
|
|
118
103
|
content: exports.WahaShareContentSchema,
|
|
119
104
|
lessonId: zod_1.z.string().optional(),
|
|
120
105
|
articleSlug: zod_1.z.string().optional(),
|
|
106
|
+
microLessonSlug: zod_1.z.string().optional(),
|
|
121
107
|
});
|
|
122
108
|
exports.BibleSessionSchema = zod_1.z.object({
|
|
123
109
|
chapter: zod_1.z.string(),
|
|
@@ -148,9 +134,7 @@ exports.WahaUserSchema = exports.WahaUserStateSchema.extend({
|
|
|
148
134
|
bibleSessions: zod_1.z.array(exports.BibleSessionSchema).optional(),
|
|
149
135
|
articleSessions: zod_1.z.array(exports.ArticleSessionSchema).optional(),
|
|
150
136
|
activated: zod_1.z.boolean().optional(),
|
|
151
|
-
|
|
152
|
-
.array(WorksheetCompletionEventSchema.omit({ answers: true }))
|
|
153
|
-
.optional(),
|
|
137
|
+
microLessonCompletions: zod_1.z.array(microLessons_1.MicroLessonSubmissionSchema).optional(),
|
|
154
138
|
});
|
|
155
139
|
exports.PushEnabledWahaUserSchema = exports.WahaUserSchema.omit({
|
|
156
140
|
wahaUserId: true,
|
package/dist/types/webContent.js
CHANGED
|
@@ -24,6 +24,7 @@ exports.AudioSchema = zod_1.default
|
|
|
24
24
|
audioUrl: zod_1.default.string(),
|
|
25
25
|
loop: zod_1.default.boolean().optional(),
|
|
26
26
|
})
|
|
27
|
+
.describe('Optional audio to embed on the page.')
|
|
27
28
|
.optional();
|
|
28
29
|
exports.VideoSchema = zod_1.default
|
|
29
30
|
.object({
|
|
@@ -32,4 +33,5 @@ exports.VideoSchema = zod_1.default
|
|
|
32
33
|
loop: zod_1.default.boolean().optional(),
|
|
33
34
|
disableControls: zod_1.default.boolean().optional(),
|
|
34
35
|
})
|
|
36
|
+
.describe('Optional video to embed on the page.')
|
|
35
37
|
.optional();
|