waha-shared 1.0.178 → 1.0.180
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/data/languages/languages.json +1241 -315
- package/dist/data/translationsFtb/translationsFtb.json +0 -952
- package/dist/data/translationsQuestion/translationsQuestion.json +0 -512
- package/dist/data/translationsSet/translationsSet.json +12365 -22713
- package/dist/data/translationsSpokenQuestion/translationsSpokenQuestion.json +0 -512
- package/dist/types/articles.d.ts +35 -0
- package/dist/types/articles.js +34 -0
- package/dist/types/microLessons.d.ts +80 -0
- package/dist/types/microLessons.js +24 -0
- package/package.json +1 -1
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
export declare const Article: z.ZodObject<{
|
|
3
|
+
title: z.ZodString;
|
|
4
|
+
author: z.ZodOptional<z.ZodString>;
|
|
5
|
+
category: z.ZodOptional<z.ZodString>;
|
|
6
|
+
image: z.ZodOptional<z.ZodString>;
|
|
7
|
+
isDraft: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
+
seekerFriendly: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
+
audio: z.ZodOptional<z.ZodString>;
|
|
10
|
+
video: z.ZodOptional<z.ZodString>;
|
|
11
|
+
date: z.ZodDate;
|
|
12
|
+
impactStoryRegion: z.ZodOptional<z.ZodEnum<["North America", "Latin America and the Caribbean", "Middle East/North Africa", "Sub-Saharan Africa", "Western Europe", "Eastern Europe", "Western Asia", "Southern Asia", "Central Asia", "Southeast Asia", "Eastern Asia", "Oceania"]>>;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
date: Date;
|
|
15
|
+
title: string;
|
|
16
|
+
audio?: string | undefined;
|
|
17
|
+
video?: string | undefined;
|
|
18
|
+
category?: string | undefined;
|
|
19
|
+
author?: string | undefined;
|
|
20
|
+
image?: string | undefined;
|
|
21
|
+
isDraft?: boolean | undefined;
|
|
22
|
+
seekerFriendly?: boolean | undefined;
|
|
23
|
+
impactStoryRegion?: "North America" | "Latin America and the Caribbean" | "Middle East/North Africa" | "Sub-Saharan Africa" | "Western Europe" | "Eastern Europe" | "Western Asia" | "Southern Asia" | "Central Asia" | "Southeast Asia" | "Eastern Asia" | "Oceania" | undefined;
|
|
24
|
+
}, {
|
|
25
|
+
date: Date;
|
|
26
|
+
title: string;
|
|
27
|
+
audio?: string | undefined;
|
|
28
|
+
video?: string | undefined;
|
|
29
|
+
category?: string | undefined;
|
|
30
|
+
author?: string | undefined;
|
|
31
|
+
image?: string | undefined;
|
|
32
|
+
isDraft?: boolean | undefined;
|
|
33
|
+
seekerFriendly?: boolean | undefined;
|
|
34
|
+
impactStoryRegion?: "North America" | "Latin America and the Caribbean" | "Middle East/North Africa" | "Sub-Saharan Africa" | "Western Europe" | "Eastern Europe" | "Western Asia" | "Southern Asia" | "Central Asia" | "Southeast Asia" | "Eastern Asia" | "Oceania" | undefined;
|
|
35
|
+
}>;
|
|
@@ -0,0 +1,34 @@
|
|
|
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.Article = void 0;
|
|
7
|
+
const zod_1 = __importDefault(require("zod"));
|
|
8
|
+
exports.Article = zod_1.default.object({
|
|
9
|
+
title: zod_1.default.string(),
|
|
10
|
+
author: zod_1.default.string().optional(),
|
|
11
|
+
category: zod_1.default.string().optional(),
|
|
12
|
+
image: zod_1.default.string().optional(),
|
|
13
|
+
isDraft: zod_1.default.boolean().optional(),
|
|
14
|
+
seekerFriendly: zod_1.default.boolean().optional(),
|
|
15
|
+
audio: zod_1.default.string().optional(),
|
|
16
|
+
video: zod_1.default.string().optional(),
|
|
17
|
+
date: zod_1.default.date(),
|
|
18
|
+
impactStoryRegion: zod_1.default
|
|
19
|
+
.enum([
|
|
20
|
+
'North America',
|
|
21
|
+
'Latin America and the Caribbean',
|
|
22
|
+
'Middle East/North Africa',
|
|
23
|
+
'Sub-Saharan Africa',
|
|
24
|
+
'Western Europe',
|
|
25
|
+
'Eastern Europe',
|
|
26
|
+
'Western Asia',
|
|
27
|
+
'Southern Asia',
|
|
28
|
+
'Central Asia',
|
|
29
|
+
'Southeast Asia',
|
|
30
|
+
'Eastern Asia',
|
|
31
|
+
'Oceania',
|
|
32
|
+
])
|
|
33
|
+
.optional(),
|
|
34
|
+
});
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
export declare const MicroLesson: z.ZodObject<{
|
|
3
|
+
title: z.ZodString;
|
|
4
|
+
subtitle: z.ZodOptional<z.ZodString>;
|
|
5
|
+
isDraft: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
+
seekerSensitive: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
+
platform: z.ZodOptional<z.ZodEnum<["Web Only", "App Only", "Both"]>>;
|
|
8
|
+
campaign: z.ZodOptional<z.ZodString>;
|
|
9
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
10
|
+
heading: z.ZodOptional<z.ZodString>;
|
|
11
|
+
body: z.ZodOptional<z.ZodString>;
|
|
12
|
+
image: z.ZodOptional<z.ZodString>;
|
|
13
|
+
audio: z.ZodOptional<z.ZodString>;
|
|
14
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
15
|
+
radioButtons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
16
|
+
text: z.ZodString;
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
text: string;
|
|
19
|
+
}, {
|
|
20
|
+
text: string;
|
|
21
|
+
}>, "many">>;
|
|
22
|
+
videoUrl: z.ZodOptional<z.ZodString>;
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
audio?: string | undefined;
|
|
25
|
+
body?: string | undefined;
|
|
26
|
+
image?: string | undefined;
|
|
27
|
+
heading?: string | undefined;
|
|
28
|
+
placeholder?: string | undefined;
|
|
29
|
+
radioButtons?: {
|
|
30
|
+
text: string;
|
|
31
|
+
}[] | undefined;
|
|
32
|
+
videoUrl?: string | undefined;
|
|
33
|
+
}, {
|
|
34
|
+
audio?: string | undefined;
|
|
35
|
+
body?: string | undefined;
|
|
36
|
+
image?: string | undefined;
|
|
37
|
+
heading?: string | undefined;
|
|
38
|
+
placeholder?: string | undefined;
|
|
39
|
+
radioButtons?: {
|
|
40
|
+
text: string;
|
|
41
|
+
}[] | undefined;
|
|
42
|
+
videoUrl?: string | undefined;
|
|
43
|
+
}>, "many">;
|
|
44
|
+
}, "strip", z.ZodTypeAny, {
|
|
45
|
+
title: string;
|
|
46
|
+
pages: {
|
|
47
|
+
audio?: string | undefined;
|
|
48
|
+
body?: string | undefined;
|
|
49
|
+
image?: string | undefined;
|
|
50
|
+
heading?: string | undefined;
|
|
51
|
+
placeholder?: string | undefined;
|
|
52
|
+
radioButtons?: {
|
|
53
|
+
text: string;
|
|
54
|
+
}[] | undefined;
|
|
55
|
+
videoUrl?: string | undefined;
|
|
56
|
+
}[];
|
|
57
|
+
platform?: "Web Only" | "App Only" | "Both" | undefined;
|
|
58
|
+
isDraft?: boolean | undefined;
|
|
59
|
+
subtitle?: string | undefined;
|
|
60
|
+
seekerSensitive?: boolean | undefined;
|
|
61
|
+
campaign?: string | undefined;
|
|
62
|
+
}, {
|
|
63
|
+
title: string;
|
|
64
|
+
pages: {
|
|
65
|
+
audio?: string | undefined;
|
|
66
|
+
body?: string | undefined;
|
|
67
|
+
image?: string | undefined;
|
|
68
|
+
heading?: string | undefined;
|
|
69
|
+
placeholder?: string | undefined;
|
|
70
|
+
radioButtons?: {
|
|
71
|
+
text: string;
|
|
72
|
+
}[] | undefined;
|
|
73
|
+
videoUrl?: string | undefined;
|
|
74
|
+
}[];
|
|
75
|
+
platform?: "Web Only" | "App Only" | "Both" | undefined;
|
|
76
|
+
isDraft?: boolean | undefined;
|
|
77
|
+
subtitle?: string | undefined;
|
|
78
|
+
seekerSensitive?: boolean | undefined;
|
|
79
|
+
campaign?: string | undefined;
|
|
80
|
+
}>;
|
|
@@ -0,0 +1,24 @@
|
|
|
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.MicroLesson = void 0;
|
|
7
|
+
const zod_1 = __importDefault(require("zod"));
|
|
8
|
+
exports.MicroLesson = zod_1.default.object({
|
|
9
|
+
title: zod_1.default.string(),
|
|
10
|
+
subtitle: zod_1.default.string().optional(),
|
|
11
|
+
isDraft: zod_1.default.boolean().optional(),
|
|
12
|
+
seekerSensitive: zod_1.default.boolean().optional(),
|
|
13
|
+
platform: zod_1.default.enum(['Web Only', 'App Only', 'Both']).optional(),
|
|
14
|
+
campaign: zod_1.default.string().optional(),
|
|
15
|
+
pages: zod_1.default.array(zod_1.default.object({
|
|
16
|
+
heading: zod_1.default.string().optional(),
|
|
17
|
+
body: zod_1.default.string().optional(),
|
|
18
|
+
image: zod_1.default.string().optional(),
|
|
19
|
+
audio: zod_1.default.string().optional(),
|
|
20
|
+
placeholder: zod_1.default.string().optional(),
|
|
21
|
+
radioButtons: zod_1.default.array(zod_1.default.object({ text: zod_1.default.string() })).optional(),
|
|
22
|
+
videoUrl: zod_1.default.string().optional(),
|
|
23
|
+
})),
|
|
24
|
+
});
|