waha-shared 1.0.267 → 1.0.268
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/bibleStatuses/bibleStatuses.json +116 -0
- package/dist/data/languageAssets/languageAssets.json +798 -0
- package/dist/data/languages/languages.json +1 -1
- package/dist/data/mediaDurations/mediaDurations.json +32 -0
- package/dist/data/translationsApp/translationsApp.json +1616 -0
- package/dist/types/location.d.ts +7 -0
- package/dist/types/location.js +9 -0
- package/dist/types/microLessons.js +2 -2
- package/dist/types/users.d.ts +2 -5
- package/dist/types/users.js +4 -7
- package/package.json +1 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const WahaUserLocationSchema: z.ZodObject<{
|
|
3
|
+
city: z.ZodOptional<z.ZodString>;
|
|
4
|
+
country: z.ZodOptional<z.ZodString>;
|
|
5
|
+
region: z.ZodOptional<z.ZodString>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export type WahaUserLocation = z.infer<typeof WahaUserLocationSchema>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WahaUserLocationSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.WahaUserLocationSchema = zod_1.z.object({
|
|
6
|
+
city: zod_1.z.string().optional(),
|
|
7
|
+
country: zod_1.z.string().optional(),
|
|
8
|
+
region: zod_1.z.string().optional(),
|
|
9
|
+
});
|
|
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.MicroLessonLanguagesResponseSchema = exports.MicroLessonSubmissionSchema = exports.MicroLessonsResponse = exports.ResponseMicroLessonSchema = exports.MicroLessonSchema = exports.MicroLessonCtaButtonSchema = exports.MicroLessonRadioButtonSchema = void 0;
|
|
7
7
|
const v4_1 = __importDefault(require("zod/v4"));
|
|
8
|
-
const
|
|
8
|
+
const location_1 = require("./location");
|
|
9
9
|
const webContent_1 = require("./webContent");
|
|
10
10
|
exports.MicroLessonRadioButtonSchema = v4_1.default
|
|
11
11
|
.object({
|
|
@@ -99,7 +99,7 @@ exports.ResponseMicroLessonSchema = v4_1.default.object({
|
|
|
99
99
|
exports.MicroLessonsResponse = v4_1.default.object({
|
|
100
100
|
data: v4_1.default.array(exports.ResponseMicroLessonSchema),
|
|
101
101
|
});
|
|
102
|
-
exports.MicroLessonSubmissionSchema =
|
|
102
|
+
exports.MicroLessonSubmissionSchema = location_1.WahaUserLocationSchema.extend({
|
|
103
103
|
microLessonId: v4_1.default.string(),
|
|
104
104
|
userId: v4_1.default.string(),
|
|
105
105
|
microLessonTitle: v4_1.default.string(),
|
package/dist/types/users.d.ts
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { WahaUserLocationSchema } from './location';
|
|
2
3
|
export type FaithJourney = 'seekers' | 'believers' | 'all';
|
|
3
|
-
export declare const WahaUserLocationSchema: z.ZodObject<{
|
|
4
|
-
city: z.ZodOptional<z.ZodString>;
|
|
5
|
-
country: z.ZodOptional<z.ZodString>;
|
|
6
|
-
region: z.ZodOptional<z.ZodString>;
|
|
7
|
-
}, z.core.$strip>;
|
|
8
4
|
export type WahaUserLocation = z.infer<typeof WahaUserLocationSchema>;
|
|
5
|
+
export { WahaUserLocationSchema };
|
|
9
6
|
export type WahaAppVersion = `${number}.${number}.${number}`;
|
|
10
7
|
export declare const DesireIdSchema: z.ZodEnum<{
|
|
11
8
|
talk_to_others_about_jesus: "talk_to_others_about_jesus";
|
package/dist/types/users.js
CHANGED
|
@@ -2,12 +2,9 @@
|
|
|
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 location_1 = require("./location");
|
|
6
|
+
Object.defineProperty(exports, "WahaUserLocationSchema", { enumerable: true, get: function () { return location_1.WahaUserLocationSchema; } });
|
|
5
7
|
const microLessons_1 = require("./microLessons");
|
|
6
|
-
exports.WahaUserLocationSchema = zod_1.z.object({
|
|
7
|
-
city: zod_1.z.string().optional(),
|
|
8
|
-
country: zod_1.z.string().optional(),
|
|
9
|
-
region: zod_1.z.string().optional(),
|
|
10
|
-
});
|
|
11
8
|
exports.DesireIdSchema = zod_1.z.enum([
|
|
12
9
|
'talk_to_others_about_jesus',
|
|
13
10
|
'build_a_team_of_disciple_makers',
|
|
@@ -25,8 +22,8 @@ exports.WahaUserStateSchema = zod_1.z.object({
|
|
|
25
22
|
wahaUserId: zod_1.z.string().optional(),
|
|
26
23
|
name: zod_1.z.string().optional(),
|
|
27
24
|
email: zod_1.z.email().optional(),
|
|
28
|
-
location:
|
|
29
|
-
pastLocations: zod_1.z.array(
|
|
25
|
+
location: location_1.WahaUserLocationSchema.optional(),
|
|
26
|
+
pastLocations: zod_1.z.array(location_1.WahaUserLocationSchema).optional(),
|
|
30
27
|
phoneLocation: zod_1.z.string().optional(),
|
|
31
28
|
isSubscribedToEmailUpdates: zod_1.z.boolean().optional(),
|
|
32
29
|
pushToken: zod_1.z.string().optional(),
|