waha-shared 1.0.181 → 1.0.182
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/types/articles.js +13 -4
- package/dist/types/microLessons.js +21 -6
- package/package.json +1 -1
package/dist/types/articles.js
CHANGED
|
@@ -10,11 +10,19 @@ exports.Article = zod_1.default.object({
|
|
|
10
10
|
author: zod_1.default.string().optional(),
|
|
11
11
|
category: zod_1.default.string().optional(),
|
|
12
12
|
image: zod_1.default.string().optional(),
|
|
13
|
-
isDraft: zod_1.default
|
|
14
|
-
|
|
13
|
+
isDraft: zod_1.default
|
|
14
|
+
.boolean()
|
|
15
|
+
.optional()
|
|
16
|
+
.describe('If this is checked the article will not be published.'),
|
|
17
|
+
seekerFriendly: zod_1.default
|
|
18
|
+
.boolean()
|
|
19
|
+
.optional()
|
|
20
|
+
.describe('If this is checked the article will be marked as seeker sensitive. Seeker sensitive articles will not link back to the website.'),
|
|
15
21
|
audio: zod_1.default.string().optional(),
|
|
16
22
|
video: zod_1.default.string().optional(),
|
|
17
|
-
date: zod_1.default
|
|
23
|
+
date: zod_1.default
|
|
24
|
+
.date()
|
|
25
|
+
.describe('The date to publish the article. Can be in the future.'),
|
|
18
26
|
impactStoryRegion: zod_1.default
|
|
19
27
|
.enum([
|
|
20
28
|
'North America',
|
|
@@ -30,5 +38,6 @@ exports.Article = zod_1.default.object({
|
|
|
30
38
|
'Eastern Asia',
|
|
31
39
|
'Oceania',
|
|
32
40
|
])
|
|
33
|
-
.optional()
|
|
41
|
+
.optional()
|
|
42
|
+
.describe('If this article is an impact story that should show up on the dashboard, select the region it is associated with.'),
|
|
34
43
|
});
|
|
@@ -8,17 +8,32 @@ const zod_1 = __importDefault(require("zod"));
|
|
|
8
8
|
exports.MicroLesson = zod_1.default.object({
|
|
9
9
|
title: zod_1.default.string(),
|
|
10
10
|
subtitle: zod_1.default.string().optional(),
|
|
11
|
-
isDraft: zod_1.default
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
isDraft: zod_1.default
|
|
12
|
+
.boolean()
|
|
13
|
+
.optional()
|
|
14
|
+
.describe('If this is checked the micro lesson will not be published.'),
|
|
15
|
+
seekerSensitive: zod_1.default
|
|
16
|
+
.boolean()
|
|
17
|
+
.optional()
|
|
18
|
+
.describe('If this is checked the micro lesson will be marked as seeker sensitive. Seeker sensitive micro lessons will not link back to the website.'),
|
|
19
|
+
platform: zod_1.default
|
|
20
|
+
.enum(['Web Only', 'App Only', 'Both'])
|
|
21
|
+
.optional()
|
|
22
|
+
.describe('Set to determine which platform the micro lesson is available on.'),
|
|
23
|
+
campaign: zod_1.default
|
|
24
|
+
.string()
|
|
25
|
+
.optional()
|
|
26
|
+
.describe('Optional campaign identifier for tracking purposes.'),
|
|
15
27
|
pages: zod_1.default.array(zod_1.default.object({
|
|
16
|
-
heading: zod_1.default.string(),
|
|
28
|
+
heading: zod_1.default.string().describe('The heading of the page'),
|
|
17
29
|
body: zod_1.default.string().optional(),
|
|
18
30
|
image: zod_1.default.string().optional(),
|
|
19
31
|
audio: zod_1.default.string().optional(),
|
|
20
32
|
hasTextInput: zod_1.default.boolean().optional(),
|
|
21
|
-
placeholder: zod_1.default
|
|
33
|
+
placeholder: zod_1.default
|
|
34
|
+
.string()
|
|
35
|
+
.optional()
|
|
36
|
+
.describe('The placeholder text for the text input field.'),
|
|
22
37
|
radioButtons: zod_1.default.array(zod_1.default.object({ text: zod_1.default.string() })).optional(),
|
|
23
38
|
videoUrl: zod_1.default.string().optional(),
|
|
24
39
|
})),
|