waha-shared 1.0.196 → 1.0.197
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/bibleStatuses/bibleStatuses.json +1327 -236
- package/dist/data/languages/languages.json +1241 -315
- package/dist/data/translationsFtb/translationsFtb.json +16 -900
- package/dist/data/translationsQuestion/translationsQuestion.json +31 -511
- package/dist/data/translationsSet/translationsSet.json +12365 -22713
- package/dist/data/translationsSpokenQuestion/translationsSpokenQuestion.json +30 -510
- package/dist/types/analytics.d.ts +8 -8
- package/dist/types/articles.d.ts +232 -0
- package/dist/types/articles.js +53 -0
- package/dist/types/microLessons.d.ts +705 -0
- package/dist/types/microLessons.js +59 -0
- package/dist/types/users.d.ts +37 -37
- package/dist/types/users.js +7 -6
- package/dist/types/webContent.d.ts +5 -0
- package/dist/types/webContent.js +19 -0
- package/package.json +1 -1
|
@@ -115,23 +115,23 @@ type Bible = {
|
|
|
115
115
|
name: 'BibleSession';
|
|
116
116
|
payload: BibleSession;
|
|
117
117
|
};
|
|
118
|
-
type
|
|
119
|
-
name: '
|
|
118
|
+
type MicroLessons = {
|
|
119
|
+
name: 'MicroLessonNotificationResponse';
|
|
120
120
|
payload: {
|
|
121
|
-
|
|
121
|
+
microLessonId: string;
|
|
122
122
|
didApply: boolean;
|
|
123
123
|
};
|
|
124
124
|
} | {
|
|
125
|
-
name: '
|
|
125
|
+
name: 'MicroLessonStart';
|
|
126
126
|
payload: {
|
|
127
|
-
|
|
127
|
+
microLessonId: string;
|
|
128
128
|
};
|
|
129
129
|
} | {
|
|
130
|
-
name: '
|
|
130
|
+
name: 'MicroLessonComplete';
|
|
131
131
|
payload: {
|
|
132
|
-
|
|
132
|
+
microLessonId: string;
|
|
133
133
|
timeToCompletion: number;
|
|
134
134
|
};
|
|
135
135
|
};
|
|
136
|
-
export type AnalyticsEvent = Meeting | Share | Misc | Article | Bible | Note |
|
|
136
|
+
export type AnalyticsEvent = Meeting | Share | Misc | Article | Bible | Note | MicroLessons;
|
|
137
137
|
export {};
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
export declare const ArticleSchema: z.ZodObject<{
|
|
3
|
+
title: z.ZodString;
|
|
4
|
+
author: z.ZodOptional<z.ZodString>;
|
|
5
|
+
category: z.ZodEnum<["Case Studies", "Discovering God", "Disciple Making Secrets", "Product Updates", "Books", "Films"]>;
|
|
6
|
+
image: z.ZodOptional<z.ZodString>;
|
|
7
|
+
date: z.ZodUnion<[z.ZodString, z.ZodDate]>;
|
|
8
|
+
isDraft: z.ZodBoolean;
|
|
9
|
+
seekerFriendly: z.ZodBoolean;
|
|
10
|
+
platform: z.ZodEnum<["Web Only", "App Only", "All"]>;
|
|
11
|
+
audio: z.ZodOptional<z.ZodString>;
|
|
12
|
+
video: z.ZodOptional<z.ZodString>;
|
|
13
|
+
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"]>>;
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
date: string | Date;
|
|
16
|
+
title: string;
|
|
17
|
+
category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
|
|
18
|
+
platform: "Web Only" | "App Only" | "All";
|
|
19
|
+
isDraft: boolean;
|
|
20
|
+
seekerFriendly: boolean;
|
|
21
|
+
audio?: string | undefined;
|
|
22
|
+
video?: string | undefined;
|
|
23
|
+
author?: string | undefined;
|
|
24
|
+
image?: string | undefined;
|
|
25
|
+
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;
|
|
26
|
+
}, {
|
|
27
|
+
date: string | Date;
|
|
28
|
+
title: string;
|
|
29
|
+
category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
|
|
30
|
+
platform: "Web Only" | "App Only" | "All";
|
|
31
|
+
isDraft: boolean;
|
|
32
|
+
seekerFriendly: boolean;
|
|
33
|
+
audio?: string | undefined;
|
|
34
|
+
video?: string | undefined;
|
|
35
|
+
author?: string | undefined;
|
|
36
|
+
image?: string | undefined;
|
|
37
|
+
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;
|
|
38
|
+
}>;
|
|
39
|
+
export type Article = z.infer<typeof ArticleSchema>;
|
|
40
|
+
export declare const ResponseArticleSchema: z.ZodObject<{
|
|
41
|
+
id: z.ZodString;
|
|
42
|
+
data: z.ZodObject<{
|
|
43
|
+
title: z.ZodString;
|
|
44
|
+
author: z.ZodOptional<z.ZodString>;
|
|
45
|
+
category: z.ZodEnum<["Case Studies", "Discovering God", "Disciple Making Secrets", "Product Updates", "Books", "Films"]>;
|
|
46
|
+
image: z.ZodOptional<z.ZodString>;
|
|
47
|
+
date: z.ZodUnion<[z.ZodString, z.ZodDate]>;
|
|
48
|
+
isDraft: z.ZodBoolean;
|
|
49
|
+
seekerFriendly: z.ZodBoolean;
|
|
50
|
+
platform: z.ZodEnum<["Web Only", "App Only", "All"]>;
|
|
51
|
+
audio: z.ZodOptional<z.ZodString>;
|
|
52
|
+
video: z.ZodOptional<z.ZodString>;
|
|
53
|
+
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"]>>;
|
|
54
|
+
}, "strip", z.ZodTypeAny, {
|
|
55
|
+
date: string | Date;
|
|
56
|
+
title: string;
|
|
57
|
+
category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
|
|
58
|
+
platform: "Web Only" | "App Only" | "All";
|
|
59
|
+
isDraft: boolean;
|
|
60
|
+
seekerFriendly: boolean;
|
|
61
|
+
audio?: string | undefined;
|
|
62
|
+
video?: string | undefined;
|
|
63
|
+
author?: string | undefined;
|
|
64
|
+
image?: string | undefined;
|
|
65
|
+
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;
|
|
66
|
+
}, {
|
|
67
|
+
date: string | Date;
|
|
68
|
+
title: string;
|
|
69
|
+
category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
|
|
70
|
+
platform: "Web Only" | "App Only" | "All";
|
|
71
|
+
isDraft: boolean;
|
|
72
|
+
seekerFriendly: boolean;
|
|
73
|
+
audio?: string | undefined;
|
|
74
|
+
video?: string | undefined;
|
|
75
|
+
author?: string | undefined;
|
|
76
|
+
image?: string | undefined;
|
|
77
|
+
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;
|
|
78
|
+
}>;
|
|
79
|
+
body: z.ZodString;
|
|
80
|
+
slug: z.ZodString;
|
|
81
|
+
}, "strip", z.ZodTypeAny, {
|
|
82
|
+
id: string;
|
|
83
|
+
body: string;
|
|
84
|
+
data: {
|
|
85
|
+
date: string | Date;
|
|
86
|
+
title: string;
|
|
87
|
+
category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
|
|
88
|
+
platform: "Web Only" | "App Only" | "All";
|
|
89
|
+
isDraft: boolean;
|
|
90
|
+
seekerFriendly: boolean;
|
|
91
|
+
audio?: string | undefined;
|
|
92
|
+
video?: string | undefined;
|
|
93
|
+
author?: string | undefined;
|
|
94
|
+
image?: string | undefined;
|
|
95
|
+
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;
|
|
96
|
+
};
|
|
97
|
+
slug: string;
|
|
98
|
+
}, {
|
|
99
|
+
id: string;
|
|
100
|
+
body: string;
|
|
101
|
+
data: {
|
|
102
|
+
date: string | Date;
|
|
103
|
+
title: string;
|
|
104
|
+
category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
|
|
105
|
+
platform: "Web Only" | "App Only" | "All";
|
|
106
|
+
isDraft: boolean;
|
|
107
|
+
seekerFriendly: boolean;
|
|
108
|
+
audio?: string | undefined;
|
|
109
|
+
video?: string | undefined;
|
|
110
|
+
author?: string | undefined;
|
|
111
|
+
image?: string | undefined;
|
|
112
|
+
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;
|
|
113
|
+
};
|
|
114
|
+
slug: string;
|
|
115
|
+
}>;
|
|
116
|
+
export type ResponseArticle = z.infer<typeof ResponseArticleSchema>;
|
|
117
|
+
export declare const ArticlesResponseSchema: z.ZodObject<{
|
|
118
|
+
data: z.ZodArray<z.ZodObject<{
|
|
119
|
+
id: z.ZodString;
|
|
120
|
+
data: z.ZodObject<{
|
|
121
|
+
title: z.ZodString;
|
|
122
|
+
author: z.ZodOptional<z.ZodString>;
|
|
123
|
+
category: z.ZodEnum<["Case Studies", "Discovering God", "Disciple Making Secrets", "Product Updates", "Books", "Films"]>;
|
|
124
|
+
image: z.ZodOptional<z.ZodString>;
|
|
125
|
+
date: z.ZodUnion<[z.ZodString, z.ZodDate]>;
|
|
126
|
+
isDraft: z.ZodBoolean;
|
|
127
|
+
seekerFriendly: z.ZodBoolean;
|
|
128
|
+
platform: z.ZodEnum<["Web Only", "App Only", "All"]>;
|
|
129
|
+
audio: z.ZodOptional<z.ZodString>;
|
|
130
|
+
video: z.ZodOptional<z.ZodString>;
|
|
131
|
+
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"]>>;
|
|
132
|
+
}, "strip", z.ZodTypeAny, {
|
|
133
|
+
date: string | Date;
|
|
134
|
+
title: string;
|
|
135
|
+
category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
|
|
136
|
+
platform: "Web Only" | "App Only" | "All";
|
|
137
|
+
isDraft: boolean;
|
|
138
|
+
seekerFriendly: boolean;
|
|
139
|
+
audio?: string | undefined;
|
|
140
|
+
video?: string | undefined;
|
|
141
|
+
author?: string | undefined;
|
|
142
|
+
image?: string | undefined;
|
|
143
|
+
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;
|
|
144
|
+
}, {
|
|
145
|
+
date: string | Date;
|
|
146
|
+
title: string;
|
|
147
|
+
category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
|
|
148
|
+
platform: "Web Only" | "App Only" | "All";
|
|
149
|
+
isDraft: boolean;
|
|
150
|
+
seekerFriendly: boolean;
|
|
151
|
+
audio?: string | undefined;
|
|
152
|
+
video?: string | undefined;
|
|
153
|
+
author?: string | undefined;
|
|
154
|
+
image?: string | undefined;
|
|
155
|
+
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;
|
|
156
|
+
}>;
|
|
157
|
+
body: z.ZodString;
|
|
158
|
+
slug: z.ZodString;
|
|
159
|
+
}, "strip", z.ZodTypeAny, {
|
|
160
|
+
id: string;
|
|
161
|
+
body: string;
|
|
162
|
+
data: {
|
|
163
|
+
date: string | Date;
|
|
164
|
+
title: string;
|
|
165
|
+
category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
|
|
166
|
+
platform: "Web Only" | "App Only" | "All";
|
|
167
|
+
isDraft: boolean;
|
|
168
|
+
seekerFriendly: boolean;
|
|
169
|
+
audio?: string | undefined;
|
|
170
|
+
video?: string | undefined;
|
|
171
|
+
author?: string | undefined;
|
|
172
|
+
image?: string | undefined;
|
|
173
|
+
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;
|
|
174
|
+
};
|
|
175
|
+
slug: string;
|
|
176
|
+
}, {
|
|
177
|
+
id: string;
|
|
178
|
+
body: string;
|
|
179
|
+
data: {
|
|
180
|
+
date: string | Date;
|
|
181
|
+
title: string;
|
|
182
|
+
category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
|
|
183
|
+
platform: "Web Only" | "App Only" | "All";
|
|
184
|
+
isDraft: boolean;
|
|
185
|
+
seekerFriendly: boolean;
|
|
186
|
+
audio?: string | undefined;
|
|
187
|
+
video?: string | undefined;
|
|
188
|
+
author?: string | undefined;
|
|
189
|
+
image?: string | undefined;
|
|
190
|
+
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;
|
|
191
|
+
};
|
|
192
|
+
slug: string;
|
|
193
|
+
}>, "many">;
|
|
194
|
+
}, "strip", z.ZodTypeAny, {
|
|
195
|
+
data: {
|
|
196
|
+
id: string;
|
|
197
|
+
body: string;
|
|
198
|
+
data: {
|
|
199
|
+
date: string | Date;
|
|
200
|
+
title: string;
|
|
201
|
+
category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
|
|
202
|
+
platform: "Web Only" | "App Only" | "All";
|
|
203
|
+
isDraft: boolean;
|
|
204
|
+
seekerFriendly: boolean;
|
|
205
|
+
audio?: string | undefined;
|
|
206
|
+
video?: string | undefined;
|
|
207
|
+
author?: string | undefined;
|
|
208
|
+
image?: string | undefined;
|
|
209
|
+
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;
|
|
210
|
+
};
|
|
211
|
+
slug: string;
|
|
212
|
+
}[];
|
|
213
|
+
}, {
|
|
214
|
+
data: {
|
|
215
|
+
id: string;
|
|
216
|
+
body: string;
|
|
217
|
+
data: {
|
|
218
|
+
date: string | Date;
|
|
219
|
+
title: string;
|
|
220
|
+
category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
|
|
221
|
+
platform: "Web Only" | "App Only" | "All";
|
|
222
|
+
isDraft: boolean;
|
|
223
|
+
seekerFriendly: boolean;
|
|
224
|
+
audio?: string | undefined;
|
|
225
|
+
video?: string | undefined;
|
|
226
|
+
author?: string | undefined;
|
|
227
|
+
image?: string | undefined;
|
|
228
|
+
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;
|
|
229
|
+
};
|
|
230
|
+
slug: string;
|
|
231
|
+
}[];
|
|
232
|
+
}>;
|
|
@@ -0,0 +1,53 @@
|
|
|
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.ArticlesResponseSchema = exports.ResponseArticleSchema = exports.ArticleSchema = void 0;
|
|
7
|
+
const zod_1 = __importDefault(require("zod"));
|
|
8
|
+
const webContent_1 = require("./webContent");
|
|
9
|
+
exports.ArticleSchema = zod_1.default.object({
|
|
10
|
+
title: zod_1.default.string(),
|
|
11
|
+
author: zod_1.default.string().optional(),
|
|
12
|
+
category: zod_1.default.enum([
|
|
13
|
+
'Case Studies',
|
|
14
|
+
'Discovering God',
|
|
15
|
+
'Disciple Making Secrets',
|
|
16
|
+
'Product Updates',
|
|
17
|
+
'Books',
|
|
18
|
+
'Films',
|
|
19
|
+
]),
|
|
20
|
+
image: zod_1.default.string().optional(),
|
|
21
|
+
date: webContent_1.DateSchema,
|
|
22
|
+
isDraft: webContent_1.IsDraftSchema,
|
|
23
|
+
seekerFriendly: webContent_1.SeekerFriendlySchema,
|
|
24
|
+
platform: webContent_1.PlatformSchema,
|
|
25
|
+
audio: zod_1.default.string().optional(),
|
|
26
|
+
video: zod_1.default.string().optional(),
|
|
27
|
+
impactStoryRegion: zod_1.default
|
|
28
|
+
.enum([
|
|
29
|
+
'North America',
|
|
30
|
+
'Latin America and the Caribbean',
|
|
31
|
+
'Middle East/North Africa',
|
|
32
|
+
'Sub-Saharan Africa',
|
|
33
|
+
'Western Europe',
|
|
34
|
+
'Eastern Europe',
|
|
35
|
+
'Western Asia',
|
|
36
|
+
'Southern Asia',
|
|
37
|
+
'Central Asia',
|
|
38
|
+
'Southeast Asia',
|
|
39
|
+
'Eastern Asia',
|
|
40
|
+
'Oceania',
|
|
41
|
+
])
|
|
42
|
+
.optional()
|
|
43
|
+
.describe('If this article is an impact story that should show up on the dashboard, select the region it is associated with.'),
|
|
44
|
+
});
|
|
45
|
+
exports.ResponseArticleSchema = zod_1.default.object({
|
|
46
|
+
id: zod_1.default.string(),
|
|
47
|
+
data: exports.ArticleSchema,
|
|
48
|
+
body: zod_1.default.string(),
|
|
49
|
+
slug: zod_1.default.string(),
|
|
50
|
+
});
|
|
51
|
+
exports.ArticlesResponseSchema = zod_1.default.object({
|
|
52
|
+
data: zod_1.default.array(exports.ResponseArticleSchema),
|
|
53
|
+
});
|