@nikthegeek/dreamsforlittles-shared 0.1.0 → 0.1.2

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.
Files changed (85) hide show
  1. package/dist/access.d.ts +2450 -30
  2. package/dist/access.js +63 -4
  3. package/dist/access.js.map +1 -1
  4. package/dist/admin.d.ts +12635 -1041
  5. package/dist/admin.js +554 -4
  6. package/dist/admin.js.map +1 -1
  7. package/dist/allergy-ladders.d.ts +563 -80
  8. package/dist/allergy-ladders.js +40 -0
  9. package/dist/allergy-ladders.js.map +1 -1
  10. package/dist/analysis.d.ts +68 -46
  11. package/dist/analysis.js +10 -2
  12. package/dist/analysis.js.map +1 -1
  13. package/dist/api.d.ts +12 -5
  14. package/dist/api.js +12 -0
  15. package/dist/api.js.map +1 -1
  16. package/dist/app-feedback.d.ts +322 -0
  17. package/dist/app-feedback.js +58 -0
  18. package/dist/app-feedback.js.map +1 -0
  19. package/dist/auth.d.ts +684 -0
  20. package/dist/auth.js +45 -4
  21. package/dist/auth.js.map +1 -1
  22. package/dist/billing.d.ts +47 -2
  23. package/dist/billing.js +56 -29
  24. package/dist/billing.js.map +1 -1
  25. package/dist/client-notices.d.ts +6114 -0
  26. package/dist/client-notices.js +455 -0
  27. package/dist/client-notices.js.map +1 -0
  28. package/dist/coach.d.ts +20178 -206
  29. package/dist/coach.js +329 -18
  30. package/dist/coach.js.map +1 -1
  31. package/dist/communication-preferences.d.ts +61 -0
  32. package/dist/communication-preferences.js +30 -0
  33. package/dist/communication-preferences.js.map +1 -0
  34. package/dist/enums.d.ts +6 -2
  35. package/dist/enums.js +27 -1
  36. package/dist/enums.js.map +1 -1
  37. package/dist/errors.d.ts +9 -4
  38. package/dist/errors.js +9 -2
  39. package/dist/errors.js.map +1 -1
  40. package/dist/family-invitations.d.ts +2289 -0
  41. package/dist/family-invitations.js +77 -0
  42. package/dist/family-invitations.js.map +1 -0
  43. package/dist/family-profile-artifacts.d.ts +4433 -0
  44. package/dist/family-profile-artifacts.js +192 -0
  45. package/dist/family-profile-artifacts.js.map +1 -0
  46. package/dist/family.d.ts +7902 -294
  47. package/dist/family.js +170 -5
  48. package/dist/family.js.map +1 -1
  49. package/dist/files.d.ts +17 -14
  50. package/dist/files.js +5 -1
  51. package/dist/files.js.map +1 -1
  52. package/dist/getting-started-guides.d.ts +117 -0
  53. package/dist/getting-started-guides.js +25 -0
  54. package/dist/getting-started-guides.js.map +1 -0
  55. package/dist/index.d.ts +14 -0
  56. package/dist/index.js +14 -0
  57. package/dist/index.js.map +1 -1
  58. package/dist/invites.d.ts +252 -0
  59. package/dist/invites.js +2 -0
  60. package/dist/invites.js.map +1 -1
  61. package/dist/mobile-web-releases.d.ts +389 -0
  62. package/dist/mobile-web-releases.js +71 -0
  63. package/dist/mobile-web-releases.js.map +1 -0
  64. package/dist/notification-banners.d.ts +694 -0
  65. package/dist/notification-banners.js +132 -0
  66. package/dist/notification-banners.js.map +1 -0
  67. package/dist/product-analytics.d.ts +5984 -0
  68. package/dist/product-analytics.js +791 -0
  69. package/dist/product-analytics.js.map +1 -0
  70. package/dist/push-devices.d.ts +175 -0
  71. package/dist/push-devices.js +56 -0
  72. package/dist/push-devices.js.map +1 -0
  73. package/dist/realtime.d.ts +604 -0
  74. package/dist/realtime.js +152 -0
  75. package/dist/realtime.js.map +1 -0
  76. package/dist/review-prompt.d.ts +192 -0
  77. package/dist/review-prompt.js +72 -0
  78. package/dist/review-prompt.js.map +1 -0
  79. package/dist/support-faqs.d.ts +103 -0
  80. package/dist/support-faqs.js +24 -0
  81. package/dist/support-faqs.js.map +1 -0
  82. package/dist/support-tickets.d.ts +605 -0
  83. package/dist/support-tickets.js +100 -0
  84. package/dist/support-tickets.js.map +1 -0
  85. package/package.json +6 -1
@@ -0,0 +1,694 @@
1
+ import { z } from "zod";
2
+ export declare const notificationBannerStatusSchema: z.ZodEnum<["draft", "scheduled", "live", "paused", "expired", "archived"]>;
3
+ export declare const notificationBannerAudienceSchema: z.ZodEnum<["families", "coaches", "all"]>;
4
+ export declare const notificationBannerScopeSchema: z.ZodEnum<["global", "coachClients"]>;
5
+ export declare const notificationBannerPlatformSchema: z.ZodEnum<["ios", "android", "web", "all"]>;
6
+ export declare const notificationBannerReceiptEventSchema: z.ZodEnum<["seen", "dismissed", "clicked"]>;
7
+ export declare const notificationBannerStatuses: ["draft", "scheduled", "live", "paused", "expired", "archived"];
8
+ export declare const notificationBannerAudienceOptions: ["families", "coaches", "all"];
9
+ export declare const normalizeNotificationBannerText: (value?: string | null) => string | null;
10
+ export declare const notificationBannerWriteRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
11
+ title: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodString>;
12
+ subtitle: z.ZodOptional<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodString>>>;
13
+ message: z.ZodOptional<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodString>>>;
14
+ icon: z.ZodOptional<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodString>>>;
15
+ startsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ endsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ priority: z.ZodDefault<z.ZodNumber>;
18
+ dismissible: z.ZodDefault<z.ZodBoolean>;
19
+ pushEnabled: z.ZodDefault<z.ZodBoolean>;
20
+ audience: z.ZodOptional<z.ZodEnum<["families", "coaches", "all"]>>;
21
+ linkText: z.ZodOptional<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodString>>>;
22
+ linkUrl: z.ZodOptional<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodString>>>;
23
+ includeEmails: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodString, "many">>, string[], string[] | undefined>;
24
+ excludeEmails: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodString, "many">>, string[], string[] | undefined>;
25
+ }, "strict", z.ZodTypeAny, {
26
+ title: string;
27
+ priority: number;
28
+ dismissible: boolean;
29
+ pushEnabled: boolean;
30
+ includeEmails: string[];
31
+ excludeEmails: string[];
32
+ message?: string | null | undefined;
33
+ startsAt?: string | null | undefined;
34
+ endsAt?: string | null | undefined;
35
+ icon?: string | null | undefined;
36
+ audience?: "families" | "coaches" | "all" | undefined;
37
+ subtitle?: string | null | undefined;
38
+ linkText?: string | null | undefined;
39
+ linkUrl?: string | null | undefined;
40
+ }, {
41
+ title: string;
42
+ message?: string | null | undefined;
43
+ startsAt?: string | null | undefined;
44
+ endsAt?: string | null | undefined;
45
+ icon?: string | null | undefined;
46
+ audience?: "families" | "coaches" | "all" | undefined;
47
+ subtitle?: string | null | undefined;
48
+ priority?: number | undefined;
49
+ dismissible?: boolean | undefined;
50
+ pushEnabled?: boolean | undefined;
51
+ linkText?: string | null | undefined;
52
+ linkUrl?: string | null | undefined;
53
+ includeEmails?: string[] | undefined;
54
+ excludeEmails?: string[] | undefined;
55
+ }>, {
56
+ title: string;
57
+ priority: number;
58
+ dismissible: boolean;
59
+ pushEnabled: boolean;
60
+ includeEmails: string[];
61
+ excludeEmails: string[];
62
+ message?: string | null | undefined;
63
+ startsAt?: string | null | undefined;
64
+ endsAt?: string | null | undefined;
65
+ icon?: string | null | undefined;
66
+ audience?: "families" | "coaches" | "all" | undefined;
67
+ subtitle?: string | null | undefined;
68
+ linkText?: string | null | undefined;
69
+ linkUrl?: string | null | undefined;
70
+ }, {
71
+ title: string;
72
+ message?: string | null | undefined;
73
+ startsAt?: string | null | undefined;
74
+ endsAt?: string | null | undefined;
75
+ icon?: string | null | undefined;
76
+ audience?: "families" | "coaches" | "all" | undefined;
77
+ subtitle?: string | null | undefined;
78
+ priority?: number | undefined;
79
+ dismissible?: boolean | undefined;
80
+ pushEnabled?: boolean | undefined;
81
+ linkText?: string | null | undefined;
82
+ linkUrl?: string | null | undefined;
83
+ includeEmails?: string[] | undefined;
84
+ excludeEmails?: string[] | undefined;
85
+ }>, {
86
+ title: string;
87
+ priority: number;
88
+ dismissible: boolean;
89
+ pushEnabled: boolean;
90
+ includeEmails: string[];
91
+ excludeEmails: string[];
92
+ message?: string | null | undefined;
93
+ startsAt?: string | null | undefined;
94
+ endsAt?: string | null | undefined;
95
+ icon?: string | null | undefined;
96
+ audience?: "families" | "coaches" | "all" | undefined;
97
+ subtitle?: string | null | undefined;
98
+ linkText?: string | null | undefined;
99
+ linkUrl?: string | null | undefined;
100
+ }, {
101
+ title: string;
102
+ message?: string | null | undefined;
103
+ startsAt?: string | null | undefined;
104
+ endsAt?: string | null | undefined;
105
+ icon?: string | null | undefined;
106
+ audience?: "families" | "coaches" | "all" | undefined;
107
+ subtitle?: string | null | undefined;
108
+ priority?: number | undefined;
109
+ dismissible?: boolean | undefined;
110
+ pushEnabled?: boolean | undefined;
111
+ linkText?: string | null | undefined;
112
+ linkUrl?: string | null | undefined;
113
+ includeEmails?: string[] | undefined;
114
+ excludeEmails?: string[] | undefined;
115
+ }>;
116
+ export declare const notificationBannerStatusUpdateRequestSchema: z.ZodObject<{
117
+ status: z.ZodEnum<["draft", "scheduled", "live", "paused", "expired", "archived"]>;
118
+ }, "strict", z.ZodTypeAny, {
119
+ status: "archived" | "expired" | "paused" | "live" | "scheduled" | "draft";
120
+ }, {
121
+ status: "archived" | "expired" | "paused" | "live" | "scheduled" | "draft";
122
+ }>;
123
+ export declare const notificationBannerEligibleQuerySchema: z.ZodObject<{
124
+ platform: z.ZodOptional<z.ZodEnum<["ios", "android", "web", "all"]>>;
125
+ }, "strict", z.ZodTypeAny, {
126
+ platform?: "ios" | "android" | "all" | "web" | undefined;
127
+ }, {
128
+ platform?: "ios" | "android" | "all" | "web" | undefined;
129
+ }>;
130
+ export declare const notificationBannerReceiptEventRequestSchema: z.ZodObject<{
131
+ event: z.ZodEnum<["seen", "dismissed", "clicked"]>;
132
+ devicePlatform: z.ZodOptional<z.ZodNullable<z.ZodString>>;
133
+ appVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
134
+ }, "strict", z.ZodTypeAny, {
135
+ event: "seen" | "dismissed" | "clicked";
136
+ devicePlatform?: string | null | undefined;
137
+ appVersion?: string | null | undefined;
138
+ }, {
139
+ event: "seen" | "dismissed" | "clicked";
140
+ devicePlatform?: string | null | undefined;
141
+ appVersion?: string | null | undefined;
142
+ }>;
143
+ export declare const notificationBannerSchema: z.ZodObject<{
144
+ id: z.ZodString;
145
+ title: z.ZodString;
146
+ subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
147
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
148
+ icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
149
+ status: z.ZodEnum<["draft", "scheduled", "live", "paused", "expired", "archived"]>;
150
+ audience: z.ZodEnum<["families", "coaches", "all"]>;
151
+ scope: z.ZodEnum<["global", "coachClients"]>;
152
+ organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
153
+ coachUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
154
+ startsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
155
+ endsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
156
+ priority: z.ZodNumber;
157
+ dismissible: z.ZodBoolean;
158
+ pushEnabled: z.ZodDefault<z.ZodBoolean>;
159
+ platforms: z.ZodOptional<z.ZodArray<z.ZodEnum<["ios", "android", "web", "all"]>, "many">>;
160
+ linkText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
161
+ linkUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
162
+ includeEmails: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
163
+ excludeEmails: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
164
+ createdAt: z.ZodString;
165
+ createdBy: z.ZodString;
166
+ updatedAt: z.ZodString;
167
+ updatedBy: z.ZodString;
168
+ publishedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
169
+ publishedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
170
+ }, "strip", z.ZodTypeAny, {
171
+ status: "archived" | "expired" | "paused" | "live" | "scheduled" | "draft";
172
+ id: string;
173
+ createdAt: string;
174
+ updatedAt: string;
175
+ createdBy: string;
176
+ title: string;
177
+ updatedBy: string;
178
+ audience: "families" | "coaches" | "all";
179
+ priority: number;
180
+ dismissible: boolean;
181
+ pushEnabled: boolean;
182
+ includeEmails: string[];
183
+ excludeEmails: string[];
184
+ scope: "global" | "coachClients";
185
+ message?: string | null | undefined;
186
+ organizationId?: string | null | undefined;
187
+ coachUserId?: string | null | undefined;
188
+ startsAt?: string | null | undefined;
189
+ endsAt?: string | null | undefined;
190
+ icon?: string | null | undefined;
191
+ publishedAt?: string | null | undefined;
192
+ subtitle?: string | null | undefined;
193
+ linkText?: string | null | undefined;
194
+ linkUrl?: string | null | undefined;
195
+ platforms?: ("ios" | "android" | "all" | "web")[] | undefined;
196
+ publishedBy?: string | null | undefined;
197
+ }, {
198
+ status: "archived" | "expired" | "paused" | "live" | "scheduled" | "draft";
199
+ id: string;
200
+ createdAt: string;
201
+ updatedAt: string;
202
+ createdBy: string;
203
+ title: string;
204
+ updatedBy: string;
205
+ audience: "families" | "coaches" | "all";
206
+ priority: number;
207
+ dismissible: boolean;
208
+ scope: "global" | "coachClients";
209
+ message?: string | null | undefined;
210
+ organizationId?: string | null | undefined;
211
+ coachUserId?: string | null | undefined;
212
+ startsAt?: string | null | undefined;
213
+ endsAt?: string | null | undefined;
214
+ icon?: string | null | undefined;
215
+ publishedAt?: string | null | undefined;
216
+ subtitle?: string | null | undefined;
217
+ pushEnabled?: boolean | undefined;
218
+ linkText?: string | null | undefined;
219
+ linkUrl?: string | null | undefined;
220
+ includeEmails?: string[] | undefined;
221
+ excludeEmails?: string[] | undefined;
222
+ platforms?: ("ios" | "android" | "all" | "web")[] | undefined;
223
+ publishedBy?: string | null | undefined;
224
+ }>;
225
+ export declare const notificationBannerReceiptSchema: z.ZodObject<{
226
+ id: z.ZodString;
227
+ bannerId: z.ZodString;
228
+ userId: z.ZodString;
229
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
230
+ seenAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
231
+ dismissedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
232
+ clickedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
233
+ devicePlatform: z.ZodOptional<z.ZodNullable<z.ZodString>>;
234
+ appVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
235
+ createdAt: z.ZodString;
236
+ updatedAt: z.ZodString;
237
+ }, "strip", z.ZodTypeAny, {
238
+ id: string;
239
+ createdAt: string;
240
+ updatedAt: string;
241
+ userId: string;
242
+ bannerId: string;
243
+ email?: string | null | undefined;
244
+ devicePlatform?: string | null | undefined;
245
+ appVersion?: string | null | undefined;
246
+ seenAt?: string | null | undefined;
247
+ dismissedAt?: string | null | undefined;
248
+ clickedAt?: string | null | undefined;
249
+ }, {
250
+ id: string;
251
+ createdAt: string;
252
+ updatedAt: string;
253
+ userId: string;
254
+ bannerId: string;
255
+ email?: string | null | undefined;
256
+ devicePlatform?: string | null | undefined;
257
+ appVersion?: string | null | undefined;
258
+ seenAt?: string | null | undefined;
259
+ dismissedAt?: string | null | undefined;
260
+ clickedAt?: string | null | undefined;
261
+ }>;
262
+ export declare const notificationBannersResponseSchema: z.ZodObject<{
263
+ banners: z.ZodArray<z.ZodObject<{
264
+ id: z.ZodString;
265
+ title: z.ZodString;
266
+ subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
267
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
268
+ icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
269
+ status: z.ZodEnum<["draft", "scheduled", "live", "paused", "expired", "archived"]>;
270
+ audience: z.ZodEnum<["families", "coaches", "all"]>;
271
+ scope: z.ZodEnum<["global", "coachClients"]>;
272
+ organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
273
+ coachUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
274
+ startsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
275
+ endsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
276
+ priority: z.ZodNumber;
277
+ dismissible: z.ZodBoolean;
278
+ pushEnabled: z.ZodDefault<z.ZodBoolean>;
279
+ platforms: z.ZodOptional<z.ZodArray<z.ZodEnum<["ios", "android", "web", "all"]>, "many">>;
280
+ linkText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
281
+ linkUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
282
+ includeEmails: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
283
+ excludeEmails: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
284
+ createdAt: z.ZodString;
285
+ createdBy: z.ZodString;
286
+ updatedAt: z.ZodString;
287
+ updatedBy: z.ZodString;
288
+ publishedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
289
+ publishedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
290
+ }, "strip", z.ZodTypeAny, {
291
+ status: "archived" | "expired" | "paused" | "live" | "scheduled" | "draft";
292
+ id: string;
293
+ createdAt: string;
294
+ updatedAt: string;
295
+ createdBy: string;
296
+ title: string;
297
+ updatedBy: string;
298
+ audience: "families" | "coaches" | "all";
299
+ priority: number;
300
+ dismissible: boolean;
301
+ pushEnabled: boolean;
302
+ includeEmails: string[];
303
+ excludeEmails: string[];
304
+ scope: "global" | "coachClients";
305
+ message?: string | null | undefined;
306
+ organizationId?: string | null | undefined;
307
+ coachUserId?: string | null | undefined;
308
+ startsAt?: string | null | undefined;
309
+ endsAt?: string | null | undefined;
310
+ icon?: string | null | undefined;
311
+ publishedAt?: string | null | undefined;
312
+ subtitle?: string | null | undefined;
313
+ linkText?: string | null | undefined;
314
+ linkUrl?: string | null | undefined;
315
+ platforms?: ("ios" | "android" | "all" | "web")[] | undefined;
316
+ publishedBy?: string | null | undefined;
317
+ }, {
318
+ status: "archived" | "expired" | "paused" | "live" | "scheduled" | "draft";
319
+ id: string;
320
+ createdAt: string;
321
+ updatedAt: string;
322
+ createdBy: string;
323
+ title: string;
324
+ updatedBy: string;
325
+ audience: "families" | "coaches" | "all";
326
+ priority: number;
327
+ dismissible: boolean;
328
+ scope: "global" | "coachClients";
329
+ message?: string | null | undefined;
330
+ organizationId?: string | null | undefined;
331
+ coachUserId?: string | null | undefined;
332
+ startsAt?: string | null | undefined;
333
+ endsAt?: string | null | undefined;
334
+ icon?: string | null | undefined;
335
+ publishedAt?: string | null | undefined;
336
+ subtitle?: string | null | undefined;
337
+ pushEnabled?: boolean | undefined;
338
+ linkText?: string | null | undefined;
339
+ linkUrl?: string | null | undefined;
340
+ includeEmails?: string[] | undefined;
341
+ excludeEmails?: string[] | undefined;
342
+ platforms?: ("ios" | "android" | "all" | "web")[] | undefined;
343
+ publishedBy?: string | null | undefined;
344
+ }>, "many">;
345
+ }, "strip", z.ZodTypeAny, {
346
+ banners: {
347
+ status: "archived" | "expired" | "paused" | "live" | "scheduled" | "draft";
348
+ id: string;
349
+ createdAt: string;
350
+ updatedAt: string;
351
+ createdBy: string;
352
+ title: string;
353
+ updatedBy: string;
354
+ audience: "families" | "coaches" | "all";
355
+ priority: number;
356
+ dismissible: boolean;
357
+ pushEnabled: boolean;
358
+ includeEmails: string[];
359
+ excludeEmails: string[];
360
+ scope: "global" | "coachClients";
361
+ message?: string | null | undefined;
362
+ organizationId?: string | null | undefined;
363
+ coachUserId?: string | null | undefined;
364
+ startsAt?: string | null | undefined;
365
+ endsAt?: string | null | undefined;
366
+ icon?: string | null | undefined;
367
+ publishedAt?: string | null | undefined;
368
+ subtitle?: string | null | undefined;
369
+ linkText?: string | null | undefined;
370
+ linkUrl?: string | null | undefined;
371
+ platforms?: ("ios" | "android" | "all" | "web")[] | undefined;
372
+ publishedBy?: string | null | undefined;
373
+ }[];
374
+ }, {
375
+ banners: {
376
+ status: "archived" | "expired" | "paused" | "live" | "scheduled" | "draft";
377
+ id: string;
378
+ createdAt: string;
379
+ updatedAt: string;
380
+ createdBy: string;
381
+ title: string;
382
+ updatedBy: string;
383
+ audience: "families" | "coaches" | "all";
384
+ priority: number;
385
+ dismissible: boolean;
386
+ scope: "global" | "coachClients";
387
+ message?: string | null | undefined;
388
+ organizationId?: string | null | undefined;
389
+ coachUserId?: string | null | undefined;
390
+ startsAt?: string | null | undefined;
391
+ endsAt?: string | null | undefined;
392
+ icon?: string | null | undefined;
393
+ publishedAt?: string | null | undefined;
394
+ subtitle?: string | null | undefined;
395
+ pushEnabled?: boolean | undefined;
396
+ linkText?: string | null | undefined;
397
+ linkUrl?: string | null | undefined;
398
+ includeEmails?: string[] | undefined;
399
+ excludeEmails?: string[] | undefined;
400
+ platforms?: ("ios" | "android" | "all" | "web")[] | undefined;
401
+ publishedBy?: string | null | undefined;
402
+ }[];
403
+ }>;
404
+ export declare const notificationBannerResponseSchema: z.ZodObject<{
405
+ banner: z.ZodObject<{
406
+ id: z.ZodString;
407
+ title: z.ZodString;
408
+ subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
409
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
410
+ icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
411
+ status: z.ZodEnum<["draft", "scheduled", "live", "paused", "expired", "archived"]>;
412
+ audience: z.ZodEnum<["families", "coaches", "all"]>;
413
+ scope: z.ZodEnum<["global", "coachClients"]>;
414
+ organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
415
+ coachUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
416
+ startsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
417
+ endsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
418
+ priority: z.ZodNumber;
419
+ dismissible: z.ZodBoolean;
420
+ pushEnabled: z.ZodDefault<z.ZodBoolean>;
421
+ platforms: z.ZodOptional<z.ZodArray<z.ZodEnum<["ios", "android", "web", "all"]>, "many">>;
422
+ linkText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
423
+ linkUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
424
+ includeEmails: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
425
+ excludeEmails: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
426
+ createdAt: z.ZodString;
427
+ createdBy: z.ZodString;
428
+ updatedAt: z.ZodString;
429
+ updatedBy: z.ZodString;
430
+ publishedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
431
+ publishedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
432
+ }, "strip", z.ZodTypeAny, {
433
+ status: "archived" | "expired" | "paused" | "live" | "scheduled" | "draft";
434
+ id: string;
435
+ createdAt: string;
436
+ updatedAt: string;
437
+ createdBy: string;
438
+ title: string;
439
+ updatedBy: string;
440
+ audience: "families" | "coaches" | "all";
441
+ priority: number;
442
+ dismissible: boolean;
443
+ pushEnabled: boolean;
444
+ includeEmails: string[];
445
+ excludeEmails: string[];
446
+ scope: "global" | "coachClients";
447
+ message?: string | null | undefined;
448
+ organizationId?: string | null | undefined;
449
+ coachUserId?: string | null | undefined;
450
+ startsAt?: string | null | undefined;
451
+ endsAt?: string | null | undefined;
452
+ icon?: string | null | undefined;
453
+ publishedAt?: string | null | undefined;
454
+ subtitle?: string | null | undefined;
455
+ linkText?: string | null | undefined;
456
+ linkUrl?: string | null | undefined;
457
+ platforms?: ("ios" | "android" | "all" | "web")[] | undefined;
458
+ publishedBy?: string | null | undefined;
459
+ }, {
460
+ status: "archived" | "expired" | "paused" | "live" | "scheduled" | "draft";
461
+ id: string;
462
+ createdAt: string;
463
+ updatedAt: string;
464
+ createdBy: string;
465
+ title: string;
466
+ updatedBy: string;
467
+ audience: "families" | "coaches" | "all";
468
+ priority: number;
469
+ dismissible: boolean;
470
+ scope: "global" | "coachClients";
471
+ message?: string | null | undefined;
472
+ organizationId?: string | null | undefined;
473
+ coachUserId?: string | null | undefined;
474
+ startsAt?: string | null | undefined;
475
+ endsAt?: string | null | undefined;
476
+ icon?: string | null | undefined;
477
+ publishedAt?: string | null | undefined;
478
+ subtitle?: string | null | undefined;
479
+ pushEnabled?: boolean | undefined;
480
+ linkText?: string | null | undefined;
481
+ linkUrl?: string | null | undefined;
482
+ includeEmails?: string[] | undefined;
483
+ excludeEmails?: string[] | undefined;
484
+ platforms?: ("ios" | "android" | "all" | "web")[] | undefined;
485
+ publishedBy?: string | null | undefined;
486
+ }>;
487
+ }, "strip", z.ZodTypeAny, {
488
+ banner: {
489
+ status: "archived" | "expired" | "paused" | "live" | "scheduled" | "draft";
490
+ id: string;
491
+ createdAt: string;
492
+ updatedAt: string;
493
+ createdBy: string;
494
+ title: string;
495
+ updatedBy: string;
496
+ audience: "families" | "coaches" | "all";
497
+ priority: number;
498
+ dismissible: boolean;
499
+ pushEnabled: boolean;
500
+ includeEmails: string[];
501
+ excludeEmails: string[];
502
+ scope: "global" | "coachClients";
503
+ message?: string | null | undefined;
504
+ organizationId?: string | null | undefined;
505
+ coachUserId?: string | null | undefined;
506
+ startsAt?: string | null | undefined;
507
+ endsAt?: string | null | undefined;
508
+ icon?: string | null | undefined;
509
+ publishedAt?: string | null | undefined;
510
+ subtitle?: string | null | undefined;
511
+ linkText?: string | null | undefined;
512
+ linkUrl?: string | null | undefined;
513
+ platforms?: ("ios" | "android" | "all" | "web")[] | undefined;
514
+ publishedBy?: string | null | undefined;
515
+ };
516
+ }, {
517
+ banner: {
518
+ status: "archived" | "expired" | "paused" | "live" | "scheduled" | "draft";
519
+ id: string;
520
+ createdAt: string;
521
+ updatedAt: string;
522
+ createdBy: string;
523
+ title: string;
524
+ updatedBy: string;
525
+ audience: "families" | "coaches" | "all";
526
+ priority: number;
527
+ dismissible: boolean;
528
+ scope: "global" | "coachClients";
529
+ message?: string | null | undefined;
530
+ organizationId?: string | null | undefined;
531
+ coachUserId?: string | null | undefined;
532
+ startsAt?: string | null | undefined;
533
+ endsAt?: string | null | undefined;
534
+ icon?: string | null | undefined;
535
+ publishedAt?: string | null | undefined;
536
+ subtitle?: string | null | undefined;
537
+ pushEnabled?: boolean | undefined;
538
+ linkText?: string | null | undefined;
539
+ linkUrl?: string | null | undefined;
540
+ includeEmails?: string[] | undefined;
541
+ excludeEmails?: string[] | undefined;
542
+ platforms?: ("ios" | "android" | "all" | "web")[] | undefined;
543
+ publishedBy?: string | null | undefined;
544
+ };
545
+ }>;
546
+ export declare const notificationBannerReceiptsResponseSchema: z.ZodObject<{
547
+ receipts: z.ZodArray<z.ZodObject<{
548
+ id: z.ZodString;
549
+ bannerId: z.ZodString;
550
+ userId: z.ZodString;
551
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
552
+ seenAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
553
+ dismissedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
554
+ clickedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
555
+ devicePlatform: z.ZodOptional<z.ZodNullable<z.ZodString>>;
556
+ appVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
557
+ createdAt: z.ZodString;
558
+ updatedAt: z.ZodString;
559
+ }, "strip", z.ZodTypeAny, {
560
+ id: string;
561
+ createdAt: string;
562
+ updatedAt: string;
563
+ userId: string;
564
+ bannerId: string;
565
+ email?: string | null | undefined;
566
+ devicePlatform?: string | null | undefined;
567
+ appVersion?: string | null | undefined;
568
+ seenAt?: string | null | undefined;
569
+ dismissedAt?: string | null | undefined;
570
+ clickedAt?: string | null | undefined;
571
+ }, {
572
+ id: string;
573
+ createdAt: string;
574
+ updatedAt: string;
575
+ userId: string;
576
+ bannerId: string;
577
+ email?: string | null | undefined;
578
+ devicePlatform?: string | null | undefined;
579
+ appVersion?: string | null | undefined;
580
+ seenAt?: string | null | undefined;
581
+ dismissedAt?: string | null | undefined;
582
+ clickedAt?: string | null | undefined;
583
+ }>, "many">;
584
+ }, "strip", z.ZodTypeAny, {
585
+ receipts: {
586
+ id: string;
587
+ createdAt: string;
588
+ updatedAt: string;
589
+ userId: string;
590
+ bannerId: string;
591
+ email?: string | null | undefined;
592
+ devicePlatform?: string | null | undefined;
593
+ appVersion?: string | null | undefined;
594
+ seenAt?: string | null | undefined;
595
+ dismissedAt?: string | null | undefined;
596
+ clickedAt?: string | null | undefined;
597
+ }[];
598
+ }, {
599
+ receipts: {
600
+ id: string;
601
+ createdAt: string;
602
+ updatedAt: string;
603
+ userId: string;
604
+ bannerId: string;
605
+ email?: string | null | undefined;
606
+ devicePlatform?: string | null | undefined;
607
+ appVersion?: string | null | undefined;
608
+ seenAt?: string | null | undefined;
609
+ dismissedAt?: string | null | undefined;
610
+ clickedAt?: string | null | undefined;
611
+ }[];
612
+ }>;
613
+ export declare const notificationBannerReceiptResponseSchema: z.ZodObject<{
614
+ receipt: z.ZodObject<{
615
+ id: z.ZodString;
616
+ bannerId: z.ZodString;
617
+ userId: z.ZodString;
618
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
619
+ seenAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
620
+ dismissedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
621
+ clickedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
622
+ devicePlatform: z.ZodOptional<z.ZodNullable<z.ZodString>>;
623
+ appVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
624
+ createdAt: z.ZodString;
625
+ updatedAt: z.ZodString;
626
+ }, "strip", z.ZodTypeAny, {
627
+ id: string;
628
+ createdAt: string;
629
+ updatedAt: string;
630
+ userId: string;
631
+ bannerId: string;
632
+ email?: string | null | undefined;
633
+ devicePlatform?: string | null | undefined;
634
+ appVersion?: string | null | undefined;
635
+ seenAt?: string | null | undefined;
636
+ dismissedAt?: string | null | undefined;
637
+ clickedAt?: string | null | undefined;
638
+ }, {
639
+ id: string;
640
+ createdAt: string;
641
+ updatedAt: string;
642
+ userId: string;
643
+ bannerId: string;
644
+ email?: string | null | undefined;
645
+ devicePlatform?: string | null | undefined;
646
+ appVersion?: string | null | undefined;
647
+ seenAt?: string | null | undefined;
648
+ dismissedAt?: string | null | undefined;
649
+ clickedAt?: string | null | undefined;
650
+ }>;
651
+ }, "strip", z.ZodTypeAny, {
652
+ receipt: {
653
+ id: string;
654
+ createdAt: string;
655
+ updatedAt: string;
656
+ userId: string;
657
+ bannerId: string;
658
+ email?: string | null | undefined;
659
+ devicePlatform?: string | null | undefined;
660
+ appVersion?: string | null | undefined;
661
+ seenAt?: string | null | undefined;
662
+ dismissedAt?: string | null | undefined;
663
+ clickedAt?: string | null | undefined;
664
+ };
665
+ }, {
666
+ receipt: {
667
+ id: string;
668
+ createdAt: string;
669
+ updatedAt: string;
670
+ userId: string;
671
+ bannerId: string;
672
+ email?: string | null | undefined;
673
+ devicePlatform?: string | null | undefined;
674
+ appVersion?: string | null | undefined;
675
+ seenAt?: string | null | undefined;
676
+ dismissedAt?: string | null | undefined;
677
+ clickedAt?: string | null | undefined;
678
+ };
679
+ }>;
680
+ export type NotificationBannerStatus = z.infer<typeof notificationBannerStatusSchema>;
681
+ export type NotificationBannerAudience = z.infer<typeof notificationBannerAudienceSchema>;
682
+ export type NotificationBannerScope = z.infer<typeof notificationBannerScopeSchema>;
683
+ export type NotificationBannerPlatform = z.infer<typeof notificationBannerPlatformSchema>;
684
+ export type NotificationBannerReceiptEvent = z.infer<typeof notificationBannerReceiptEventSchema>;
685
+ export type NotificationBannerWriteRequest = z.infer<typeof notificationBannerWriteRequestSchema>;
686
+ export type NotificationBannerStatusUpdateRequest = z.infer<typeof notificationBannerStatusUpdateRequestSchema>;
687
+ export type NotificationBannerEligibleQuery = z.infer<typeof notificationBannerEligibleQuerySchema>;
688
+ export type NotificationBannerReceiptEventRequest = z.infer<typeof notificationBannerReceiptEventRequestSchema>;
689
+ export type NotificationBanner = z.infer<typeof notificationBannerSchema>;
690
+ export type NotificationBannerReceipt = z.infer<typeof notificationBannerReceiptSchema>;
691
+ export type NotificationBannersResponse = z.infer<typeof notificationBannersResponseSchema>;
692
+ export type NotificationBannerResponse = z.infer<typeof notificationBannerResponseSchema>;
693
+ export type NotificationBannerReceiptsResponse = z.infer<typeof notificationBannerReceiptsResponseSchema>;
694
+ export type NotificationBannerReceiptResponse = z.infer<typeof notificationBannerReceiptResponseSchema>;