waha-shared 1.0.199 → 1.0.200

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,65 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.MicroLessonsResponse = exports.ResponseMicroLessonSchema = exports.MicroLessonSchema = void 0;
7
- const zod_1 = __importDefault(require("zod"));
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(),
12
- date: webContent_1.DateSchema,
13
- isDraft: webContent_1.IsDraftSchema,
14
- seekerFriendly: webContent_1.SeekerFriendlySchema,
15
- platform: webContent_1.PlatformSchema,
16
- campaign: zod_1.default
17
- .string()
18
- .optional()
19
- .describe('Optional campaign identifier for tracking purposes.'),
20
- pages: zod_1.default.array(zod_1.default.object({
21
- heading: zod_1.default.string().describe('The heading of the page'),
22
- body: zod_1.default.string().optional(),
23
- image: zod_1.default.string().optional(),
24
- audio: zod_1.default.string().optional(),
25
- textInput: zod_1.default
26
- .object({
27
- show: zod_1.default.boolean(),
28
- placeholder: zod_1.default.string().optional(),
29
- showCopyButton: zod_1.default.boolean().optional(),
30
- prefilledText: zod_1.default.string().optional(),
31
- })
32
- .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(),
39
- video: zod_1.default
40
- .object({
41
- videoUrl: zod_1.default.string(),
42
- autoplay: zod_1.default.boolean().optional(),
43
- loop: zod_1.default.boolean().optional(),
44
- })
45
- .optional(),
46
- platform: webContent_1.PlatformSchema.optional(),
47
- notification: zod_1.default
48
- .object({
49
- title: zod_1.default.string(),
50
- body: zod_1.default.string(),
51
- delayInHours: zod_1.default
52
- .number()
53
- .describe('The delay in hours before the notification is sent.'),
54
- })
55
- .optional()
56
- .describe('Optional notification to send after the lesson is completed.'),
57
- })),
58
- });
59
- exports.ResponseMicroLessonSchema = zod_1.default.object({
60
- id: zod_1.default.string(),
61
- data: exports.MicroLessonSchema,
62
- });
63
- exports.MicroLessonsResponse = zod_1.default.object({
64
- data: zod_1.default.array(exports.ResponseMicroLessonSchema),
65
- });
@@ -1,5 +0,0 @@
1
- import z from 'zod';
2
- export declare const DateSchema: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
3
- export declare const IsDraftSchema: z.ZodOptional<z.ZodBoolean>;
4
- export declare const SeekerFriendlySchema: z.ZodOptional<z.ZodBoolean>;
5
- export declare const PlatformSchema: z.ZodEnum<["Web Only", "App Only", "All"]>;
@@ -1,22 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.PlatformSchema = exports.SeekerFriendlySchema = exports.IsDraftSchema = exports.DateSchema = void 0;
7
- const zod_1 = __importDefault(require("zod"));
8
- exports.DateSchema = zod_1.default
9
- .union([zod_1.default.string().datetime(), zod_1.default.date()])
10
- .describe('The date to publish the content. Can be in the future.')
11
- .optional();
12
- exports.IsDraftSchema = zod_1.default
13
- .boolean()
14
- .describe('If this is checked the content will be marked as a draft and only available on the test website.')
15
- .optional();
16
- exports.SeekerFriendlySchema = zod_1.default
17
- .boolean()
18
- .describe('If this is checked the micro lesson will be marked as seeker friendly. Seeker friendly micro lessons will not link back to the website.')
19
- .optional();
20
- exports.PlatformSchema = zod_1.default
21
- .enum(['Web Only', 'App Only', 'All'])
22
- .describe('Set to determine which platform the content is available on.');