waha-shared 1.0.183 → 1.0.185
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 +15 -15
- package/dist/types/articles.js +1 -1
- package/package.json +1 -1
package/dist/types/articles.d.ts
CHANGED
|
@@ -8,10 +8,10 @@ export declare const ArticleSchema: z.ZodObject<{
|
|
|
8
8
|
seekerFriendly: z.ZodOptional<z.ZodBoolean>;
|
|
9
9
|
audio: z.ZodOptional<z.ZodString>;
|
|
10
10
|
video: z.ZodOptional<z.ZodString>;
|
|
11
|
-
date: z.ZodString
|
|
11
|
+
date: z.ZodUnion<[z.ZodString, z.ZodDate]>;
|
|
12
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
13
|
}, "strip", z.ZodTypeAny, {
|
|
14
|
-
date: string;
|
|
14
|
+
date: string | Date;
|
|
15
15
|
title: string;
|
|
16
16
|
audio?: string | undefined;
|
|
17
17
|
video?: string | undefined;
|
|
@@ -22,7 +22,7 @@ export declare const ArticleSchema: z.ZodObject<{
|
|
|
22
22
|
seekerFriendly?: boolean | undefined;
|
|
23
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
24
|
}, {
|
|
25
|
-
date: string;
|
|
25
|
+
date: string | Date;
|
|
26
26
|
title: string;
|
|
27
27
|
audio?: string | undefined;
|
|
28
28
|
video?: string | undefined;
|
|
@@ -45,10 +45,10 @@ export declare const ResponseArticleSchema: z.ZodObject<{
|
|
|
45
45
|
seekerFriendly: z.ZodOptional<z.ZodBoolean>;
|
|
46
46
|
audio: z.ZodOptional<z.ZodString>;
|
|
47
47
|
video: z.ZodOptional<z.ZodString>;
|
|
48
|
-
date: z.ZodString
|
|
48
|
+
date: z.ZodUnion<[z.ZodString, z.ZodDate]>;
|
|
49
49
|
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"]>>;
|
|
50
50
|
}, "strip", z.ZodTypeAny, {
|
|
51
|
-
date: string;
|
|
51
|
+
date: string | Date;
|
|
52
52
|
title: string;
|
|
53
53
|
audio?: string | undefined;
|
|
54
54
|
video?: string | undefined;
|
|
@@ -59,7 +59,7 @@ export declare const ResponseArticleSchema: z.ZodObject<{
|
|
|
59
59
|
seekerFriendly?: boolean | undefined;
|
|
60
60
|
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;
|
|
61
61
|
}, {
|
|
62
|
-
date: string;
|
|
62
|
+
date: string | Date;
|
|
63
63
|
title: string;
|
|
64
64
|
audio?: string | undefined;
|
|
65
65
|
video?: string | undefined;
|
|
@@ -76,7 +76,7 @@ export declare const ResponseArticleSchema: z.ZodObject<{
|
|
|
76
76
|
id: string;
|
|
77
77
|
body: string;
|
|
78
78
|
data: {
|
|
79
|
-
date: string;
|
|
79
|
+
date: string | Date;
|
|
80
80
|
title: string;
|
|
81
81
|
audio?: string | undefined;
|
|
82
82
|
video?: string | undefined;
|
|
@@ -92,7 +92,7 @@ export declare const ResponseArticleSchema: z.ZodObject<{
|
|
|
92
92
|
id: string;
|
|
93
93
|
body: string;
|
|
94
94
|
data: {
|
|
95
|
-
date: string;
|
|
95
|
+
date: string | Date;
|
|
96
96
|
title: string;
|
|
97
97
|
audio?: string | undefined;
|
|
98
98
|
video?: string | undefined;
|
|
@@ -118,10 +118,10 @@ export declare const ArticlesResponseSchema: z.ZodObject<{
|
|
|
118
118
|
seekerFriendly: z.ZodOptional<z.ZodBoolean>;
|
|
119
119
|
audio: z.ZodOptional<z.ZodString>;
|
|
120
120
|
video: z.ZodOptional<z.ZodString>;
|
|
121
|
-
date: z.ZodString
|
|
121
|
+
date: z.ZodUnion<[z.ZodString, z.ZodDate]>;
|
|
122
122
|
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"]>>;
|
|
123
123
|
}, "strip", z.ZodTypeAny, {
|
|
124
|
-
date: string;
|
|
124
|
+
date: string | Date;
|
|
125
125
|
title: string;
|
|
126
126
|
audio?: string | undefined;
|
|
127
127
|
video?: string | undefined;
|
|
@@ -132,7 +132,7 @@ export declare const ArticlesResponseSchema: z.ZodObject<{
|
|
|
132
132
|
seekerFriendly?: boolean | undefined;
|
|
133
133
|
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;
|
|
134
134
|
}, {
|
|
135
|
-
date: string;
|
|
135
|
+
date: string | Date;
|
|
136
136
|
title: string;
|
|
137
137
|
audio?: string | undefined;
|
|
138
138
|
video?: string | undefined;
|
|
@@ -149,7 +149,7 @@ export declare const ArticlesResponseSchema: z.ZodObject<{
|
|
|
149
149
|
id: string;
|
|
150
150
|
body: string;
|
|
151
151
|
data: {
|
|
152
|
-
date: string;
|
|
152
|
+
date: string | Date;
|
|
153
153
|
title: string;
|
|
154
154
|
audio?: string | undefined;
|
|
155
155
|
video?: string | undefined;
|
|
@@ -165,7 +165,7 @@ export declare const ArticlesResponseSchema: z.ZodObject<{
|
|
|
165
165
|
id: string;
|
|
166
166
|
body: string;
|
|
167
167
|
data: {
|
|
168
|
-
date: string;
|
|
168
|
+
date: string | Date;
|
|
169
169
|
title: string;
|
|
170
170
|
audio?: string | undefined;
|
|
171
171
|
video?: string | undefined;
|
|
@@ -183,7 +183,7 @@ export declare const ArticlesResponseSchema: z.ZodObject<{
|
|
|
183
183
|
id: string;
|
|
184
184
|
body: string;
|
|
185
185
|
data: {
|
|
186
|
-
date: string;
|
|
186
|
+
date: string | Date;
|
|
187
187
|
title: string;
|
|
188
188
|
audio?: string | undefined;
|
|
189
189
|
video?: string | undefined;
|
|
@@ -201,7 +201,7 @@ export declare const ArticlesResponseSchema: z.ZodObject<{
|
|
|
201
201
|
id: string;
|
|
202
202
|
body: string;
|
|
203
203
|
data: {
|
|
204
|
-
date: string;
|
|
204
|
+
date: string | Date;
|
|
205
205
|
title: string;
|
|
206
206
|
audio?: string | undefined;
|
|
207
207
|
video?: string | undefined;
|
package/dist/types/articles.js
CHANGED
|
@@ -21,7 +21,7 @@ exports.ArticleSchema = zod_1.default.object({
|
|
|
21
21
|
audio: zod_1.default.string().optional(),
|
|
22
22
|
video: zod_1.default.string().optional(),
|
|
23
23
|
date: zod_1.default
|
|
24
|
-
.string()
|
|
24
|
+
.union([zod_1.default.string().datetime(), zod_1.default.date()])
|
|
25
25
|
.describe('The date to publish the article. Can be in the future.'),
|
|
26
26
|
impactStoryRegion: zod_1.default
|
|
27
27
|
.enum([
|