waha-shared 1.0.210 → 1.0.211

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.
@@ -1,4 +1,4 @@
1
- import z from 'zod';
1
+ import z from 'zod/v4';
2
2
  export declare const ArticleSchema: z.ZodObject<{
3
3
  title: z.ZodString;
4
4
  author: z.ZodOptional<z.ZodString>;
@@ -4,12 +4,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.ArticlesResponseSchema = exports.ResponseArticleSchema = exports.ArticleSchema = void 0;
7
- const zod_1 = __importDefault(require("zod"));
7
+ const v4_1 = __importDefault(require("zod/v4"));
8
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([
9
+ exports.ArticleSchema = v4_1.default.object({
10
+ title: v4_1.default.string(),
11
+ author: v4_1.default.string().optional(),
12
+ category: v4_1.default.enum([
13
13
  'Case Studies',
14
14
  'Discovering God',
15
15
  'Disciple Making Secrets',
@@ -17,14 +17,14 @@ exports.ArticleSchema = zod_1.default.object({
17
17
  'Books',
18
18
  'Films',
19
19
  ]),
20
- image: zod_1.default.string().optional(),
20
+ image: v4_1.default.string().optional(),
21
21
  date: webContent_1.DateSchema,
22
22
  isDraft: webContent_1.IsDraftSchema,
23
23
  seekerFriendly: webContent_1.SeekerFriendlySchema,
24
24
  platform: webContent_1.PlatformSchema,
25
25
  audio: webContent_1.AudioSchema,
26
26
  video: webContent_1.VideoSchema,
27
- impactStoryRegion: zod_1.default
27
+ impactStoryRegion: v4_1.default
28
28
  .enum([
29
29
  'North America',
30
30
  'Latin America and the Caribbean',
@@ -42,12 +42,12 @@ exports.ArticleSchema = zod_1.default.object({
42
42
  .optional()
43
43
  .describe('If this article is an impact story that should show up on the dashboard, select the region it is associated with.'),
44
44
  });
45
- exports.ResponseArticleSchema = zod_1.default.object({
46
- id: zod_1.default.string(),
45
+ exports.ResponseArticleSchema = v4_1.default.object({
46
+ id: v4_1.default.string(),
47
47
  data: exports.ArticleSchema,
48
- body: zod_1.default.string(),
49
- slug: zod_1.default.string(),
48
+ body: v4_1.default.string(),
49
+ slug: v4_1.default.string(),
50
50
  });
51
- exports.ArticlesResponseSchema = zod_1.default.object({
52
- data: zod_1.default.array(exports.ResponseArticleSchema),
51
+ exports.ArticlesResponseSchema = v4_1.default.object({
52
+ data: v4_1.default.array(exports.ResponseArticleSchema),
53
53
  });
@@ -1,4 +1,4 @@
1
- import z from 'zod';
1
+ import z from 'zod/v4';
2
2
  export declare const MicroLessonSchema: z.ZodObject<{
3
3
  title: z.ZodString;
4
4
  subtitle: z.ZodOptional<z.ZodString>;
@@ -4,48 +4,48 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.MicroLessonsResponse = exports.ResponseMicroLessonSchema = exports.MicroLessonSchema = void 0;
7
- const zod_1 = __importDefault(require("zod"));
7
+ const v4_1 = __importDefault(require("zod/v4"));
8
8
  const webContent_1 = require("./webContent");
9
- exports.MicroLessonSchema = zod_1.default.object({
10
- title: zod_1.default.string(),
11
- subtitle: zod_1.default.string().optional(),
9
+ exports.MicroLessonSchema = v4_1.default.object({
10
+ title: v4_1.default.string(),
11
+ subtitle: v4_1.default.string().optional(),
12
12
  date: webContent_1.DateSchema,
13
13
  isDraft: webContent_1.IsDraftSchema,
14
14
  seekerFriendly: webContent_1.SeekerFriendlySchema,
15
15
  platform: webContent_1.PlatformSchema,
16
- image: zod_1.default.string().optional(),
17
- category: zod_1.default.enum(['Case Studies', 'How Tos']),
18
- campaign: zod_1.default
16
+ image: v4_1.default.string().optional(),
17
+ category: v4_1.default.enum(['Case Studies', 'How Tos']),
18
+ campaign: v4_1.default
19
19
  .string()
20
20
  .optional()
21
21
  .describe('Optional campaign identifier for tracking purposes.'),
22
- pages: zod_1.default.array(zod_1.default.object({
23
- heading: zod_1.default.string().describe('The heading of the page'),
24
- body: zod_1.default.string().optional(),
25
- icon: zod_1.default.string().optional(),
26
- image: zod_1.default.string().optional(),
22
+ pages: v4_1.default.array(v4_1.default.object({
23
+ heading: v4_1.default.string().describe('The heading of the page'),
24
+ body: v4_1.default.string().optional(),
25
+ icon: v4_1.default.string().optional(),
26
+ image: v4_1.default.string().optional(),
27
27
  audio: webContent_1.AudioSchema,
28
28
  video: webContent_1.VideoSchema,
29
- textInput: zod_1.default
29
+ textInput: v4_1.default
30
30
  .object({
31
- show: zod_1.default.boolean(),
32
- placeholder: zod_1.default.string().optional(),
33
- showCopyButton: zod_1.default.boolean().optional(),
34
- prefilledText: zod_1.default.string().optional(),
31
+ show: v4_1.default.boolean(),
32
+ placeholder: v4_1.default.string().optional(),
33
+ showCopyButton: v4_1.default.boolean().optional(),
34
+ prefilledText: v4_1.default.string().optional(),
35
35
  })
36
36
  .optional(),
37
- radioButtons: zod_1.default
38
- .array(zod_1.default.object({
39
- heading: zod_1.default.string().optional(),
40
- body: zod_1.default.string().optional(),
37
+ radioButtons: v4_1.default
38
+ .array(v4_1.default.object({
39
+ heading: v4_1.default.string().optional(),
40
+ body: v4_1.default.string().optional(),
41
41
  }))
42
42
  .optional(),
43
43
  platform: webContent_1.PlatformSchema.optional(),
44
- notification: zod_1.default
44
+ notification: v4_1.default
45
45
  .object({
46
- title: zod_1.default.string(),
47
- body: zod_1.default.string(),
48
- delayInHours: zod_1.default
46
+ title: v4_1.default.string(),
47
+ body: v4_1.default.string(),
48
+ delayInHours: v4_1.default
49
49
  .number()
50
50
  .describe('The delay in hours before the notification is sent.'),
51
51
  })
@@ -53,10 +53,10 @@ exports.MicroLessonSchema = zod_1.default.object({
53
53
  .describe('Optional notification to send after the lesson is completed.'),
54
54
  })),
55
55
  });
56
- exports.ResponseMicroLessonSchema = zod_1.default.object({
57
- id: zod_1.default.string(),
56
+ exports.ResponseMicroLessonSchema = v4_1.default.object({
57
+ id: v4_1.default.string(),
58
58
  data: exports.MicroLessonSchema,
59
59
  });
60
- exports.MicroLessonsResponse = zod_1.default.object({
61
- data: zod_1.default.array(exports.ResponseMicroLessonSchema),
60
+ exports.MicroLessonsResponse = v4_1.default.object({
61
+ data: v4_1.default.array(exports.ResponseMicroLessonSchema),
62
62
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waha-shared",
3
- "version": "1.0.210",
3
+ "version": "1.0.211",
4
4
  "author": "Waha",
5
5
  "dependencies": {
6
6
  "@types/signale": "^1.4.7",