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.
- package/dist/types/articles.d.ts +1 -1
- package/dist/types/articles.js +13 -13
- package/dist/types/microLessons.d.ts +1 -1
- package/dist/types/microLessons.js +29 -29
- package/package.json +1 -1
package/dist/types/articles.d.ts
CHANGED
package/dist/types/articles.js
CHANGED
|
@@ -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
|
|
7
|
+
const v4_1 = __importDefault(require("zod/v4"));
|
|
8
8
|
const webContent_1 = require("./webContent");
|
|
9
|
-
exports.ArticleSchema =
|
|
10
|
-
title:
|
|
11
|
-
author:
|
|
12
|
-
category:
|
|
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:
|
|
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:
|
|
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 =
|
|
46
|
-
id:
|
|
45
|
+
exports.ResponseArticleSchema = v4_1.default.object({
|
|
46
|
+
id: v4_1.default.string(),
|
|
47
47
|
data: exports.ArticleSchema,
|
|
48
|
-
body:
|
|
49
|
-
slug:
|
|
48
|
+
body: v4_1.default.string(),
|
|
49
|
+
slug: v4_1.default.string(),
|
|
50
50
|
});
|
|
51
|
-
exports.ArticlesResponseSchema =
|
|
52
|
-
data:
|
|
51
|
+
exports.ArticlesResponseSchema = v4_1.default.object({
|
|
52
|
+
data: v4_1.default.array(exports.ResponseArticleSchema),
|
|
53
53
|
});
|
|
@@ -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
|
|
7
|
+
const v4_1 = __importDefault(require("zod/v4"));
|
|
8
8
|
const webContent_1 = require("./webContent");
|
|
9
|
-
exports.MicroLessonSchema =
|
|
10
|
-
title:
|
|
11
|
-
subtitle:
|
|
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:
|
|
17
|
-
category:
|
|
18
|
-
campaign:
|
|
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:
|
|
23
|
-
heading:
|
|
24
|
-
body:
|
|
25
|
-
icon:
|
|
26
|
-
image:
|
|
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:
|
|
29
|
+
textInput: v4_1.default
|
|
30
30
|
.object({
|
|
31
|
-
show:
|
|
32
|
-
placeholder:
|
|
33
|
-
showCopyButton:
|
|
34
|
-
prefilledText:
|
|
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:
|
|
38
|
-
.array(
|
|
39
|
-
heading:
|
|
40
|
-
body:
|
|
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:
|
|
44
|
+
notification: v4_1.default
|
|
45
45
|
.object({
|
|
46
|
-
title:
|
|
47
|
-
body:
|
|
48
|
-
delayInHours:
|
|
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 =
|
|
57
|
-
id:
|
|
56
|
+
exports.ResponseMicroLessonSchema = v4_1.default.object({
|
|
57
|
+
id: v4_1.default.string(),
|
|
58
58
|
data: exports.MicroLessonSchema,
|
|
59
59
|
});
|
|
60
|
-
exports.MicroLessonsResponse =
|
|
61
|
-
data:
|
|
60
|
+
exports.MicroLessonsResponse = v4_1.default.object({
|
|
61
|
+
data: v4_1.default.array(exports.ResponseMicroLessonSchema),
|
|
62
62
|
});
|