waha-shared 1.0.189 → 1.0.190

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.
@@ -6,6 +6,7 @@ export declare const ArticleSchema: z.ZodObject<{
6
6
  image: z.ZodOptional<z.ZodString>;
7
7
  isDraft: z.ZodOptional<z.ZodBoolean>;
8
8
  seekerFriendly: z.ZodOptional<z.ZodBoolean>;
9
+ platform: z.ZodEnum<["Web Only", "App Only", "All"]>;
9
10
  audio: z.ZodOptional<z.ZodString>;
10
11
  video: z.ZodOptional<z.ZodString>;
11
12
  date: z.ZodUnion<[z.ZodString, z.ZodDate]>;
@@ -14,6 +15,7 @@ export declare const ArticleSchema: z.ZodObject<{
14
15
  date: string | Date;
15
16
  title: string;
16
17
  category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
18
+ platform: "Web Only" | "App Only" | "All";
17
19
  audio?: string | undefined;
18
20
  video?: string | undefined;
19
21
  author?: string | undefined;
@@ -25,6 +27,7 @@ export declare const ArticleSchema: z.ZodObject<{
25
27
  date: string | Date;
26
28
  title: string;
27
29
  category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
30
+ platform: "Web Only" | "App Only" | "All";
28
31
  audio?: string | undefined;
29
32
  video?: string | undefined;
30
33
  author?: string | undefined;
@@ -43,6 +46,7 @@ export declare const ResponseArticleSchema: z.ZodObject<{
43
46
  image: z.ZodOptional<z.ZodString>;
44
47
  isDraft: z.ZodOptional<z.ZodBoolean>;
45
48
  seekerFriendly: z.ZodOptional<z.ZodBoolean>;
49
+ platform: z.ZodEnum<["Web Only", "App Only", "All"]>;
46
50
  audio: z.ZodOptional<z.ZodString>;
47
51
  video: z.ZodOptional<z.ZodString>;
48
52
  date: z.ZodUnion<[z.ZodString, z.ZodDate]>;
@@ -51,6 +55,7 @@ export declare const ResponseArticleSchema: z.ZodObject<{
51
55
  date: string | Date;
52
56
  title: string;
53
57
  category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
58
+ platform: "Web Only" | "App Only" | "All";
54
59
  audio?: string | undefined;
55
60
  video?: string | undefined;
56
61
  author?: string | undefined;
@@ -62,6 +67,7 @@ export declare const ResponseArticleSchema: z.ZodObject<{
62
67
  date: string | Date;
63
68
  title: string;
64
69
  category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
70
+ platform: "Web Only" | "App Only" | "All";
65
71
  audio?: string | undefined;
66
72
  video?: string | undefined;
67
73
  author?: string | undefined;
@@ -79,6 +85,7 @@ export declare const ResponseArticleSchema: z.ZodObject<{
79
85
  date: string | Date;
80
86
  title: string;
81
87
  category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
88
+ platform: "Web Only" | "App Only" | "All";
82
89
  audio?: string | undefined;
83
90
  video?: string | undefined;
84
91
  author?: string | undefined;
@@ -95,6 +102,7 @@ export declare const ResponseArticleSchema: z.ZodObject<{
95
102
  date: string | Date;
96
103
  title: string;
97
104
  category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
105
+ platform: "Web Only" | "App Only" | "All";
98
106
  audio?: string | undefined;
99
107
  video?: string | undefined;
100
108
  author?: string | undefined;
@@ -116,6 +124,7 @@ export declare const ArticlesResponseSchema: z.ZodObject<{
116
124
  image: z.ZodOptional<z.ZodString>;
117
125
  isDraft: z.ZodOptional<z.ZodBoolean>;
118
126
  seekerFriendly: z.ZodOptional<z.ZodBoolean>;
127
+ platform: z.ZodEnum<["Web Only", "App Only", "All"]>;
119
128
  audio: z.ZodOptional<z.ZodString>;
120
129
  video: z.ZodOptional<z.ZodString>;
121
130
  date: z.ZodUnion<[z.ZodString, z.ZodDate]>;
@@ -124,6 +133,7 @@ export declare const ArticlesResponseSchema: z.ZodObject<{
124
133
  date: string | Date;
125
134
  title: string;
126
135
  category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
136
+ platform: "Web Only" | "App Only" | "All";
127
137
  audio?: string | undefined;
128
138
  video?: string | undefined;
129
139
  author?: string | undefined;
@@ -135,6 +145,7 @@ export declare const ArticlesResponseSchema: z.ZodObject<{
135
145
  date: string | Date;
136
146
  title: string;
137
147
  category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
148
+ platform: "Web Only" | "App Only" | "All";
138
149
  audio?: string | undefined;
139
150
  video?: string | undefined;
140
151
  author?: string | undefined;
@@ -152,6 +163,7 @@ export declare const ArticlesResponseSchema: z.ZodObject<{
152
163
  date: string | Date;
153
164
  title: string;
154
165
  category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
166
+ platform: "Web Only" | "App Only" | "All";
155
167
  audio?: string | undefined;
156
168
  video?: string | undefined;
157
169
  author?: string | undefined;
@@ -168,6 +180,7 @@ export declare const ArticlesResponseSchema: z.ZodObject<{
168
180
  date: string | Date;
169
181
  title: string;
170
182
  category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
183
+ platform: "Web Only" | "App Only" | "All";
171
184
  audio?: string | undefined;
172
185
  video?: string | undefined;
173
186
  author?: string | undefined;
@@ -186,6 +199,7 @@ export declare const ArticlesResponseSchema: z.ZodObject<{
186
199
  date: string | Date;
187
200
  title: string;
188
201
  category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
202
+ platform: "Web Only" | "App Only" | "All";
189
203
  audio?: string | undefined;
190
204
  video?: string | undefined;
191
205
  author?: string | undefined;
@@ -204,6 +218,7 @@ export declare const ArticlesResponseSchema: z.ZodObject<{
204
218
  date: string | Date;
205
219
  title: string;
206
220
  category: "Case Studies" | "Discovering God" | "Disciple Making Secrets" | "Product Updates" | "Books" | "Films";
221
+ platform: "Web Only" | "App Only" | "All";
207
222
  audio?: string | undefined;
208
223
  video?: string | undefined;
209
224
  author?: string | undefined;
@@ -25,6 +25,9 @@ exports.ArticleSchema = zod_1.default.object({
25
25
  .boolean()
26
26
  .optional()
27
27
  .describe('If this is checked the article will be marked as seeker sensitive. Seeker sensitive articles will not link back to the website.'),
28
+ platform: zod_1.default
29
+ .enum(['Web Only', 'App Only', 'All'])
30
+ .describe('Set to determine which platform the article is available on.'),
28
31
  audio: zod_1.default.string().optional(),
29
32
  video: zod_1.default.string().optional(),
30
33
  date: zod_1.default
@@ -21,10 +21,12 @@ export declare const MicroLessonSchema: z.ZodObject<{
21
21
  text: string;
22
22
  }>, "many">>;
23
23
  videoUrl: z.ZodOptional<z.ZodString>;
24
+ platform: z.ZodOptional<z.ZodEnum<["Web Only", "App Only", "All"]>>;
24
25
  }, "strip", z.ZodTypeAny, {
25
26
  heading: string;
26
27
  audio?: string | undefined;
27
28
  body?: string | undefined;
29
+ platform?: "Web Only" | "App Only" | "All" | undefined;
28
30
  image?: string | undefined;
29
31
  hasTextInput?: boolean | undefined;
30
32
  placeholder?: string | undefined;
@@ -36,6 +38,7 @@ export declare const MicroLessonSchema: z.ZodObject<{
36
38
  heading: string;
37
39
  audio?: string | undefined;
38
40
  body?: string | undefined;
41
+ platform?: "Web Only" | "App Only" | "All" | undefined;
39
42
  image?: string | undefined;
40
43
  hasTextInput?: boolean | undefined;
41
44
  placeholder?: string | undefined;
@@ -52,6 +55,7 @@ export declare const MicroLessonSchema: z.ZodObject<{
52
55
  heading: string;
53
56
  audio?: string | undefined;
54
57
  body?: string | undefined;
58
+ platform?: "Web Only" | "App Only" | "All" | undefined;
55
59
  image?: string | undefined;
56
60
  hasTextInput?: boolean | undefined;
57
61
  placeholder?: string | undefined;
@@ -71,6 +75,7 @@ export declare const MicroLessonSchema: z.ZodObject<{
71
75
  heading: string;
72
76
  audio?: string | undefined;
73
77
  body?: string | undefined;
78
+ platform?: "Web Only" | "App Only" | "All" | undefined;
74
79
  image?: string | undefined;
75
80
  hasTextInput?: boolean | undefined;
76
81
  placeholder?: string | undefined;
@@ -108,10 +113,12 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
108
113
  text: string;
109
114
  }>, "many">>;
110
115
  videoUrl: z.ZodOptional<z.ZodString>;
116
+ platform: z.ZodOptional<z.ZodEnum<["Web Only", "App Only", "All"]>>;
111
117
  }, "strip", z.ZodTypeAny, {
112
118
  heading: string;
113
119
  audio?: string | undefined;
114
120
  body?: string | undefined;
121
+ platform?: "Web Only" | "App Only" | "All" | undefined;
115
122
  image?: string | undefined;
116
123
  hasTextInput?: boolean | undefined;
117
124
  placeholder?: string | undefined;
@@ -123,6 +130,7 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
123
130
  heading: string;
124
131
  audio?: string | undefined;
125
132
  body?: string | undefined;
133
+ platform?: "Web Only" | "App Only" | "All" | undefined;
126
134
  image?: string | undefined;
127
135
  hasTextInput?: boolean | undefined;
128
136
  placeholder?: string | undefined;
@@ -139,6 +147,7 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
139
147
  heading: string;
140
148
  audio?: string | undefined;
141
149
  body?: string | undefined;
150
+ platform?: "Web Only" | "App Only" | "All" | undefined;
142
151
  image?: string | undefined;
143
152
  hasTextInput?: boolean | undefined;
144
153
  placeholder?: string | undefined;
@@ -158,6 +167,7 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
158
167
  heading: string;
159
168
  audio?: string | undefined;
160
169
  body?: string | undefined;
170
+ platform?: "Web Only" | "App Only" | "All" | undefined;
161
171
  image?: string | undefined;
162
172
  hasTextInput?: boolean | undefined;
163
173
  placeholder?: string | undefined;
@@ -180,6 +190,7 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
180
190
  heading: string;
181
191
  audio?: string | undefined;
182
192
  body?: string | undefined;
193
+ platform?: "Web Only" | "App Only" | "All" | undefined;
183
194
  image?: string | undefined;
184
195
  hasTextInput?: boolean | undefined;
185
196
  placeholder?: string | undefined;
@@ -202,6 +213,7 @@ export declare const ResponseMicroLessonSchema: z.ZodObject<{
202
213
  heading: string;
203
214
  audio?: string | undefined;
204
215
  body?: string | undefined;
216
+ platform?: "Web Only" | "App Only" | "All" | undefined;
205
217
  image?: string | undefined;
206
218
  hasTextInput?: boolean | undefined;
207
219
  placeholder?: string | undefined;
@@ -241,10 +253,12 @@ export declare const MicroLessonsResponse: z.ZodObject<{
241
253
  text: string;
242
254
  }>, "many">>;
243
255
  videoUrl: z.ZodOptional<z.ZodString>;
256
+ platform: z.ZodOptional<z.ZodEnum<["Web Only", "App Only", "All"]>>;
244
257
  }, "strip", z.ZodTypeAny, {
245
258
  heading: string;
246
259
  audio?: string | undefined;
247
260
  body?: string | undefined;
261
+ platform?: "Web Only" | "App Only" | "All" | undefined;
248
262
  image?: string | undefined;
249
263
  hasTextInput?: boolean | undefined;
250
264
  placeholder?: string | undefined;
@@ -256,6 +270,7 @@ export declare const MicroLessonsResponse: z.ZodObject<{
256
270
  heading: string;
257
271
  audio?: string | undefined;
258
272
  body?: string | undefined;
273
+ platform?: "Web Only" | "App Only" | "All" | undefined;
259
274
  image?: string | undefined;
260
275
  hasTextInput?: boolean | undefined;
261
276
  placeholder?: string | undefined;
@@ -272,6 +287,7 @@ export declare const MicroLessonsResponse: z.ZodObject<{
272
287
  heading: string;
273
288
  audio?: string | undefined;
274
289
  body?: string | undefined;
290
+ platform?: "Web Only" | "App Only" | "All" | undefined;
275
291
  image?: string | undefined;
276
292
  hasTextInput?: boolean | undefined;
277
293
  placeholder?: string | undefined;
@@ -291,6 +307,7 @@ export declare const MicroLessonsResponse: z.ZodObject<{
291
307
  heading: string;
292
308
  audio?: string | undefined;
293
309
  body?: string | undefined;
310
+ platform?: "Web Only" | "App Only" | "All" | undefined;
294
311
  image?: string | undefined;
295
312
  hasTextInput?: boolean | undefined;
296
313
  placeholder?: string | undefined;
@@ -313,6 +330,7 @@ export declare const MicroLessonsResponse: z.ZodObject<{
313
330
  heading: string;
314
331
  audio?: string | undefined;
315
332
  body?: string | undefined;
333
+ platform?: "Web Only" | "App Only" | "All" | undefined;
316
334
  image?: string | undefined;
317
335
  hasTextInput?: boolean | undefined;
318
336
  placeholder?: string | undefined;
@@ -335,6 +353,7 @@ export declare const MicroLessonsResponse: z.ZodObject<{
335
353
  heading: string;
336
354
  audio?: string | undefined;
337
355
  body?: string | undefined;
356
+ platform?: "Web Only" | "App Only" | "All" | undefined;
338
357
  image?: string | undefined;
339
358
  hasTextInput?: boolean | undefined;
340
359
  placeholder?: string | undefined;
@@ -359,6 +378,7 @@ export declare const MicroLessonsResponse: z.ZodObject<{
359
378
  heading: string;
360
379
  audio?: string | undefined;
361
380
  body?: string | undefined;
381
+ platform?: "Web Only" | "App Only" | "All" | undefined;
362
382
  image?: string | undefined;
363
383
  hasTextInput?: boolean | undefined;
364
384
  placeholder?: string | undefined;
@@ -383,6 +403,7 @@ export declare const MicroLessonsResponse: z.ZodObject<{
383
403
  heading: string;
384
404
  audio?: string | undefined;
385
405
  body?: string | undefined;
406
+ platform?: "Web Only" | "App Only" | "All" | undefined;
386
407
  image?: string | undefined;
387
408
  hasTextInput?: boolean | undefined;
388
409
  placeholder?: string | undefined;
@@ -34,6 +34,10 @@ exports.MicroLessonSchema = zod_1.default.object({
34
34
  .describe('The placeholder text for the text input field.'),
35
35
  radioButtons: zod_1.default.array(zod_1.default.object({ text: zod_1.default.string() })).optional(),
36
36
  videoUrl: zod_1.default.string().optional(),
37
+ platform: zod_1.default
38
+ .enum(['Web Only', 'App Only', 'All'])
39
+ .optional()
40
+ .describe('Set to determine which platform the page is available on.'),
37
41
  })),
38
42
  });
39
43
  exports.ResponseMicroLessonSchema = zod_1.default.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waha-shared",
3
- "version": "1.0.189",
3
+ "version": "1.0.190",
4
4
  "author": "Waha",
5
5
  "dependencies": {
6
6
  "@types/signale": "^1.4.7",