waha-shared 1.0.188 → 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
@@ -1,5 +1,5 @@
1
1
  import z from 'zod';
2
- export declare const MicroLesson: z.ZodObject<{
2
+ export declare const MicroLessonSchema: z.ZodObject<{
3
3
  title: z.ZodString;
4
4
  subtitle: z.ZodOptional<z.ZodString>;
5
5
  isDraft: z.ZodOptional<z.ZodBoolean>;
@@ -21,10 +21,12 @@ export declare const MicroLesson: 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 MicroLesson: 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 MicroLesson: 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 MicroLesson: 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;
@@ -83,7 +88,8 @@ export declare const MicroLesson: z.ZodObject<{
83
88
  subtitle?: string | undefined;
84
89
  campaign?: string | undefined;
85
90
  }>;
86
- export declare const ResponseMicroLesson: z.ZodObject<{
91
+ export type MicroLesson = z.infer<typeof MicroLessonSchema>;
92
+ export declare const ResponseMicroLessonSchema: z.ZodObject<{
87
93
  id: z.ZodString;
88
94
  data: z.ZodObject<{
89
95
  title: z.ZodString;
@@ -107,10 +113,12 @@ export declare const ResponseMicroLesson: z.ZodObject<{
107
113
  text: string;
108
114
  }>, "many">>;
109
115
  videoUrl: z.ZodOptional<z.ZodString>;
116
+ platform: z.ZodOptional<z.ZodEnum<["Web Only", "App Only", "All"]>>;
110
117
  }, "strip", z.ZodTypeAny, {
111
118
  heading: string;
112
119
  audio?: string | undefined;
113
120
  body?: string | undefined;
121
+ platform?: "Web Only" | "App Only" | "All" | undefined;
114
122
  image?: string | undefined;
115
123
  hasTextInput?: boolean | undefined;
116
124
  placeholder?: string | undefined;
@@ -122,6 +130,7 @@ export declare const ResponseMicroLesson: z.ZodObject<{
122
130
  heading: string;
123
131
  audio?: string | undefined;
124
132
  body?: string | undefined;
133
+ platform?: "Web Only" | "App Only" | "All" | undefined;
125
134
  image?: string | undefined;
126
135
  hasTextInput?: boolean | undefined;
127
136
  placeholder?: string | undefined;
@@ -138,6 +147,7 @@ export declare const ResponseMicroLesson: z.ZodObject<{
138
147
  heading: string;
139
148
  audio?: string | undefined;
140
149
  body?: string | undefined;
150
+ platform?: "Web Only" | "App Only" | "All" | undefined;
141
151
  image?: string | undefined;
142
152
  hasTextInput?: boolean | undefined;
143
153
  placeholder?: string | undefined;
@@ -157,6 +167,7 @@ export declare const ResponseMicroLesson: z.ZodObject<{
157
167
  heading: string;
158
168
  audio?: string | undefined;
159
169
  body?: string | undefined;
170
+ platform?: "Web Only" | "App Only" | "All" | undefined;
160
171
  image?: string | undefined;
161
172
  hasTextInput?: boolean | undefined;
162
173
  placeholder?: string | undefined;
@@ -179,6 +190,7 @@ export declare const ResponseMicroLesson: z.ZodObject<{
179
190
  heading: string;
180
191
  audio?: string | undefined;
181
192
  body?: string | undefined;
193
+ platform?: "Web Only" | "App Only" | "All" | undefined;
182
194
  image?: string | undefined;
183
195
  hasTextInput?: boolean | undefined;
184
196
  placeholder?: string | undefined;
@@ -201,6 +213,7 @@ export declare const ResponseMicroLesson: z.ZodObject<{
201
213
  heading: string;
202
214
  audio?: string | undefined;
203
215
  body?: string | undefined;
216
+ platform?: "Web Only" | "App Only" | "All" | undefined;
204
217
  image?: string | undefined;
205
218
  hasTextInput?: boolean | undefined;
206
219
  placeholder?: string | undefined;
@@ -214,6 +227,7 @@ export declare const ResponseMicroLesson: z.ZodObject<{
214
227
  campaign?: string | undefined;
215
228
  };
216
229
  }>;
230
+ export type ResponseMicroLesson = z.infer<typeof ResponseMicroLessonSchema>;
217
231
  export declare const MicroLessonsResponse: z.ZodObject<{
218
232
  data: z.ZodArray<z.ZodObject<{
219
233
  id: z.ZodString;
@@ -239,10 +253,12 @@ export declare const MicroLessonsResponse: z.ZodObject<{
239
253
  text: string;
240
254
  }>, "many">>;
241
255
  videoUrl: z.ZodOptional<z.ZodString>;
256
+ platform: z.ZodOptional<z.ZodEnum<["Web Only", "App Only", "All"]>>;
242
257
  }, "strip", z.ZodTypeAny, {
243
258
  heading: string;
244
259
  audio?: string | undefined;
245
260
  body?: string | undefined;
261
+ platform?: "Web Only" | "App Only" | "All" | undefined;
246
262
  image?: string | undefined;
247
263
  hasTextInput?: boolean | undefined;
248
264
  placeholder?: string | undefined;
@@ -254,6 +270,7 @@ export declare const MicroLessonsResponse: z.ZodObject<{
254
270
  heading: string;
255
271
  audio?: string | undefined;
256
272
  body?: string | undefined;
273
+ platform?: "Web Only" | "App Only" | "All" | undefined;
257
274
  image?: string | undefined;
258
275
  hasTextInput?: boolean | undefined;
259
276
  placeholder?: string | undefined;
@@ -270,6 +287,7 @@ export declare const MicroLessonsResponse: z.ZodObject<{
270
287
  heading: string;
271
288
  audio?: string | undefined;
272
289
  body?: string | undefined;
290
+ platform?: "Web Only" | "App Only" | "All" | undefined;
273
291
  image?: string | undefined;
274
292
  hasTextInput?: boolean | undefined;
275
293
  placeholder?: string | undefined;
@@ -289,6 +307,7 @@ export declare const MicroLessonsResponse: z.ZodObject<{
289
307
  heading: string;
290
308
  audio?: string | undefined;
291
309
  body?: string | undefined;
310
+ platform?: "Web Only" | "App Only" | "All" | undefined;
292
311
  image?: string | undefined;
293
312
  hasTextInput?: boolean | undefined;
294
313
  placeholder?: string | undefined;
@@ -311,6 +330,7 @@ export declare const MicroLessonsResponse: z.ZodObject<{
311
330
  heading: string;
312
331
  audio?: string | undefined;
313
332
  body?: string | undefined;
333
+ platform?: "Web Only" | "App Only" | "All" | undefined;
314
334
  image?: string | undefined;
315
335
  hasTextInput?: boolean | undefined;
316
336
  placeholder?: string | undefined;
@@ -333,6 +353,7 @@ export declare const MicroLessonsResponse: z.ZodObject<{
333
353
  heading: string;
334
354
  audio?: string | undefined;
335
355
  body?: string | undefined;
356
+ platform?: "Web Only" | "App Only" | "All" | undefined;
336
357
  image?: string | undefined;
337
358
  hasTextInput?: boolean | undefined;
338
359
  placeholder?: string | undefined;
@@ -357,6 +378,7 @@ export declare const MicroLessonsResponse: z.ZodObject<{
357
378
  heading: string;
358
379
  audio?: string | undefined;
359
380
  body?: string | undefined;
381
+ platform?: "Web Only" | "App Only" | "All" | undefined;
360
382
  image?: string | undefined;
361
383
  hasTextInput?: boolean | undefined;
362
384
  placeholder?: string | undefined;
@@ -381,6 +403,7 @@ export declare const MicroLessonsResponse: z.ZodObject<{
381
403
  heading: string;
382
404
  audio?: string | undefined;
383
405
  body?: string | undefined;
406
+ platform?: "Web Only" | "App Only" | "All" | undefined;
384
407
  image?: string | undefined;
385
408
  hasTextInput?: boolean | undefined;
386
409
  placeholder?: string | undefined;
@@ -3,9 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.MicroLessonsResponse = exports.ResponseMicroLesson = exports.MicroLesson = void 0;
6
+ exports.MicroLessonsResponse = exports.ResponseMicroLessonSchema = exports.MicroLessonSchema = void 0;
7
7
  const zod_1 = __importDefault(require("zod"));
8
- exports.MicroLesson = zod_1.default.object({
8
+ exports.MicroLessonSchema = zod_1.default.object({
9
9
  title: zod_1.default.string(),
10
10
  subtitle: zod_1.default.string().optional(),
11
11
  isDraft: zod_1.default
@@ -34,12 +34,16 @@ exports.MicroLesson = 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
- exports.ResponseMicroLesson = zod_1.default.object({
43
+ exports.ResponseMicroLessonSchema = zod_1.default.object({
40
44
  id: zod_1.default.string(),
41
- data: exports.MicroLesson,
45
+ data: exports.MicroLessonSchema,
42
46
  });
43
47
  exports.MicroLessonsResponse = zod_1.default.object({
44
- data: zod_1.default.array(exports.ResponseMicroLesson),
48
+ data: zod_1.default.array(exports.ResponseMicroLessonSchema),
45
49
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waha-shared",
3
- "version": "1.0.188",
3
+ "version": "1.0.190",
4
4
  "author": "Waha",
5
5
  "dependencies": {
6
6
  "@types/signale": "^1.4.7",