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.
@@ -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 users_1 = require("./users");
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 = users_1.WahaUserLocationSchema.extend({
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(),
@@ -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";
@@ -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: exports.WahaUserLocationSchema.optional(),
29
- pastLocations: zod_1.z.array(exports.WahaUserLocationSchema).optional(),
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(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waha-shared",
3
- "version": "1.0.267",
3
+ "version": "1.0.268",
4
4
  "author": "Waha",
5
5
  "dependencies": {
6
6
  "@types/signale": "^1.4.7",