waha-shared 1.0.186 → 1.0.188

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.
@@ -2,7 +2,7 @@ import z from 'zod';
2
2
  export declare const ArticleSchema: z.ZodObject<{
3
3
  title: z.ZodString;
4
4
  author: z.ZodOptional<z.ZodString>;
5
- category: z.ZodOptional<z.ZodString>;
5
+ category: z.ZodEnum<["Case Studies", "Discovering God", "Disciple Making Secrets", "Product Updates", "Books", "Films"]>;
6
6
  image: z.ZodOptional<z.ZodString>;
7
7
  isDraft: z.ZodOptional<z.ZodBoolean>;
8
8
  seekerFriendly: z.ZodOptional<z.ZodBoolean>;
@@ -13,9 +13,9 @@ export declare const ArticleSchema: z.ZodObject<{
13
13
  }, "strip", z.ZodTypeAny, {
14
14
  date: string | Date;
15
15
  title: string;
16
+ category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
16
17
  audio?: string | undefined;
17
18
  video?: string | undefined;
18
- category?: string | undefined;
19
19
  author?: string | undefined;
20
20
  image?: string | undefined;
21
21
  isDraft?: boolean | undefined;
@@ -24,9 +24,9 @@ export declare const ArticleSchema: z.ZodObject<{
24
24
  }, {
25
25
  date: string | Date;
26
26
  title: string;
27
+ category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
27
28
  audio?: string | undefined;
28
29
  video?: string | undefined;
29
- category?: string | undefined;
30
30
  author?: string | undefined;
31
31
  image?: string | undefined;
32
32
  isDraft?: boolean | undefined;
@@ -39,7 +39,7 @@ export declare const ResponseArticleSchema: z.ZodObject<{
39
39
  data: z.ZodObject<{
40
40
  title: z.ZodString;
41
41
  author: z.ZodOptional<z.ZodString>;
42
- category: z.ZodOptional<z.ZodString>;
42
+ category: z.ZodEnum<["Case Studies", "Discovering God", "Disciple Making Secrets", "Product Updates", "Books", "Films"]>;
43
43
  image: z.ZodOptional<z.ZodString>;
44
44
  isDraft: z.ZodOptional<z.ZodBoolean>;
45
45
  seekerFriendly: z.ZodOptional<z.ZodBoolean>;
@@ -50,9 +50,9 @@ export declare const ResponseArticleSchema: z.ZodObject<{
50
50
  }, "strip", z.ZodTypeAny, {
51
51
  date: string | Date;
52
52
  title: string;
53
+ category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
53
54
  audio?: string | undefined;
54
55
  video?: string | undefined;
55
- category?: string | undefined;
56
56
  author?: string | undefined;
57
57
  image?: string | undefined;
58
58
  isDraft?: boolean | undefined;
@@ -61,9 +61,9 @@ export declare const ResponseArticleSchema: z.ZodObject<{
61
61
  }, {
62
62
  date: string | Date;
63
63
  title: string;
64
+ category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
64
65
  audio?: string | undefined;
65
66
  video?: string | undefined;
66
- category?: string | undefined;
67
67
  author?: string | undefined;
68
68
  image?: string | undefined;
69
69
  isDraft?: boolean | undefined;
@@ -78,9 +78,9 @@ export declare const ResponseArticleSchema: z.ZodObject<{
78
78
  data: {
79
79
  date: string | Date;
80
80
  title: string;
81
+ category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
81
82
  audio?: string | undefined;
82
83
  video?: string | undefined;
83
- category?: string | undefined;
84
84
  author?: string | undefined;
85
85
  image?: string | undefined;
86
86
  isDraft?: boolean | undefined;
@@ -94,9 +94,9 @@ export declare const ResponseArticleSchema: z.ZodObject<{
94
94
  data: {
95
95
  date: string | Date;
96
96
  title: string;
97
+ category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
97
98
  audio?: string | undefined;
98
99
  video?: string | undefined;
99
- category?: string | undefined;
100
100
  author?: string | undefined;
101
101
  image?: string | undefined;
102
102
  isDraft?: boolean | undefined;
@@ -112,7 +112,7 @@ export declare const ArticlesResponseSchema: z.ZodObject<{
112
112
  data: z.ZodObject<{
113
113
  title: z.ZodString;
114
114
  author: z.ZodOptional<z.ZodString>;
115
- category: z.ZodOptional<z.ZodString>;
115
+ category: z.ZodEnum<["Case Studies", "Discovering God", "Disciple Making Secrets", "Product Updates", "Books", "Films"]>;
116
116
  image: z.ZodOptional<z.ZodString>;
117
117
  isDraft: z.ZodOptional<z.ZodBoolean>;
118
118
  seekerFriendly: z.ZodOptional<z.ZodBoolean>;
@@ -123,9 +123,9 @@ export declare const ArticlesResponseSchema: z.ZodObject<{
123
123
  }, "strip", z.ZodTypeAny, {
124
124
  date: string | Date;
125
125
  title: string;
126
+ category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
126
127
  audio?: string | undefined;
127
128
  video?: string | undefined;
128
- category?: string | undefined;
129
129
  author?: string | undefined;
130
130
  image?: string | undefined;
131
131
  isDraft?: boolean | undefined;
@@ -134,9 +134,9 @@ export declare const ArticlesResponseSchema: z.ZodObject<{
134
134
  }, {
135
135
  date: string | Date;
136
136
  title: string;
137
+ category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
137
138
  audio?: string | undefined;
138
139
  video?: string | undefined;
139
- category?: string | undefined;
140
140
  author?: string | undefined;
141
141
  image?: string | undefined;
142
142
  isDraft?: boolean | undefined;
@@ -151,9 +151,9 @@ export declare const ArticlesResponseSchema: z.ZodObject<{
151
151
  data: {
152
152
  date: string | Date;
153
153
  title: string;
154
+ category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
154
155
  audio?: string | undefined;
155
156
  video?: string | undefined;
156
- category?: string | undefined;
157
157
  author?: string | undefined;
158
158
  image?: string | undefined;
159
159
  isDraft?: boolean | undefined;
@@ -167,9 +167,9 @@ export declare const ArticlesResponseSchema: z.ZodObject<{
167
167
  data: {
168
168
  date: string | Date;
169
169
  title: string;
170
+ category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
170
171
  audio?: string | undefined;
171
172
  video?: string | undefined;
172
- category?: string | undefined;
173
173
  author?: string | undefined;
174
174
  image?: string | undefined;
175
175
  isDraft?: boolean | undefined;
@@ -185,9 +185,9 @@ export declare const ArticlesResponseSchema: z.ZodObject<{
185
185
  data: {
186
186
  date: string | Date;
187
187
  title: string;
188
+ category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
188
189
  audio?: string | undefined;
189
190
  video?: string | undefined;
190
- category?: string | undefined;
191
191
  author?: string | undefined;
192
192
  image?: string | undefined;
193
193
  isDraft?: boolean | undefined;
@@ -203,9 +203,9 @@ export declare const ArticlesResponseSchema: z.ZodObject<{
203
203
  data: {
204
204
  date: string | Date;
205
205
  title: string;
206
+ category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
206
207
  audio?: string | undefined;
207
208
  video?: string | undefined;
208
- category?: string | undefined;
209
209
  author?: string | undefined;
210
210
  image?: string | undefined;
211
211
  isDraft?: boolean | undefined;
@@ -8,7 +8,14 @@ const zod_1 = __importDefault(require("zod"));
8
8
  exports.ArticleSchema = zod_1.default.object({
9
9
  title: zod_1.default.string(),
10
10
  author: zod_1.default.string().optional(),
11
- category: zod_1.default.string().optional(),
11
+ category: zod_1.default.enum([
12
+ 'Case Studies',
13
+ 'Discovering God',
14
+ 'Disciple Making Secrets',
15
+ 'Product Updates',
16
+ 'Books',
17
+ 'Films',
18
+ ]),
12
19
  image: zod_1.default.string().optional(),
13
20
  isDraft: zod_1.default
14
21
  .boolean()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waha-shared",
3
- "version": "1.0.186",
3
+ "version": "1.0.188",
4
4
  "author": "Waha",
5
5
  "dependencies": {
6
6
  "@types/signale": "^1.4.7",