waha-shared 1.0.205 → 1.0.206

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,62 +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
- image: zod_1.default.string().optional(),
17
- category: zod_1.default.enum(['Case Studies', 'How Tos']),
18
- campaign: zod_1.default
19
- .string()
20
- .optional()
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(),
27
- audio: webContent_1.AudioSchema,
28
- video: webContent_1.VideoSchema,
29
- textInput: zod_1.default
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(),
35
- })
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(),
41
- }))
42
- .optional(),
43
- platform: webContent_1.PlatformSchema.optional(),
44
- notification: zod_1.default
45
- .object({
46
- title: zod_1.default.string(),
47
- body: zod_1.default.string(),
48
- delayInHours: zod_1.default
49
- .number()
50
- .describe('The delay in hours before the notification is sent.'),
51
- })
52
- .optional()
53
- .describe('Optional notification to send after the lesson is completed.'),
54
- })),
55
- });
56
- exports.ResponseMicroLessonSchema = zod_1.default.object({
57
- id: zod_1.default.string(),
58
- data: exports.MicroLessonSchema,
59
- });
60
- exports.MicroLessonsResponse = zod_1.default.object({
61
- data: zod_1.default.array(exports.ResponseMicroLessonSchema),
62
- });
@@ -1,31 +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"]>;
6
- export declare const AudioSchema: z.ZodOptional<z.ZodObject<{
7
- audioUrl: z.ZodString;
8
- loop: z.ZodOptional<z.ZodBoolean>;
9
- }, "strip", z.ZodTypeAny, {
10
- audioUrl: string;
11
- loop?: boolean | undefined;
12
- }, {
13
- audioUrl: string;
14
- loop?: boolean | undefined;
15
- }>>;
16
- export declare const VideoSchema: z.ZodOptional<z.ZodObject<{
17
- videoUrl: z.ZodString;
18
- autoplay: z.ZodOptional<z.ZodBoolean>;
19
- loop: z.ZodOptional<z.ZodBoolean>;
20
- disableControls: z.ZodOptional<z.ZodBoolean>;
21
- }, "strip", z.ZodTypeAny, {
22
- videoUrl: string;
23
- loop?: boolean | undefined;
24
- autoplay?: boolean | undefined;
25
- disableControls?: boolean | undefined;
26
- }, {
27
- videoUrl: string;
28
- loop?: boolean | undefined;
29
- autoplay?: boolean | undefined;
30
- disableControls?: boolean | undefined;
31
- }>>;
@@ -1,36 +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.VideoSchema = exports.AudioSchema = 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.');
23
- exports.AudioSchema = zod_1.default
24
- .object({
25
- audioUrl: zod_1.default.string(),
26
- loop: zod_1.default.boolean().optional(),
27
- })
28
- .optional();
29
- exports.VideoSchema = zod_1.default
30
- .object({
31
- videoUrl: zod_1.default.string(),
32
- autoplay: zod_1.default.boolean().optional(),
33
- loop: zod_1.default.boolean().optional(),
34
- disableControls: zod_1.default.boolean().optional(),
35
- })
36
- .optional();