@nikthegeek/dreamsforlittles-shared 0.6.2 → 0.9.0

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 (84) hide show
  1. package/dist/access.d.ts +352 -0
  2. package/dist/access.js +2 -1
  3. package/dist/access.js.map +1 -1
  4. package/dist/active-timer-reminders.d.ts +10 -0
  5. package/dist/active-timer-reminders.js +11 -0
  6. package/dist/active-timer-reminders.js.map +1 -0
  7. package/dist/admin.d.ts +1867 -0
  8. package/dist/admin.js +4 -0
  9. package/dist/admin.js.map +1 -1
  10. package/dist/analysis.d.ts +216 -8
  11. package/dist/api.d.ts +5 -5
  12. package/dist/app-feedback.d.ts +266 -0
  13. package/dist/app-feedback.js +6 -2
  14. package/dist/app-feedback.js.map +1 -1
  15. package/dist/branding.d.ts +80 -0
  16. package/dist/branding.js +234 -0
  17. package/dist/branding.js.map +1 -0
  18. package/dist/branding.test.js +101 -0
  19. package/dist/branding.test.js.map +1 -0
  20. package/dist/client-notices.d.ts +133 -133
  21. package/dist/coach-activity-notifications.d.ts +4 -3
  22. package/dist/coach-activity-notifications.js +33 -5
  23. package/dist/coach-activity-notifications.js.map +1 -1
  24. package/dist/coach-activity-notifications.test.d.ts +1 -0
  25. package/dist/coach-activity-notifications.test.js +57 -0
  26. package/dist/coach-activity-notifications.test.js.map +1 -0
  27. package/dist/coach.d.ts +4600 -686
  28. package/dist/coach.js +36 -2
  29. package/dist/coach.js.map +1 -1
  30. package/dist/enums.d.ts +1 -1
  31. package/dist/enums.js +4 -1
  32. package/dist/enums.js.map +1 -1
  33. package/dist/errors.d.ts +8 -4
  34. package/dist/errors.js +12 -0
  35. package/dist/errors.js.map +1 -1
  36. package/dist/family-invitations.d.ts +466 -14
  37. package/dist/family-profile-artifacts.d.ts +802 -58
  38. package/dist/family.d.ts +6425 -1442
  39. package/dist/family.js +214 -10
  40. package/dist/family.js.map +1 -1
  41. package/dist/family.test.d.ts +1 -0
  42. package/dist/family.test.js +207 -0
  43. package/dist/family.test.js.map +1 -0
  44. package/dist/files.d.ts +2 -2
  45. package/dist/getting-started-guides.d.ts +6 -6
  46. package/dist/index.d.ts +5 -1
  47. package/dist/index.js +5 -1
  48. package/dist/index.js.map +1 -1
  49. package/dist/invites.d.ts +98 -0
  50. package/dist/notification-banners.d.ts +76 -14
  51. package/dist/notification-banners.js +20 -2
  52. package/dist/notification-banners.js.map +1 -1
  53. package/dist/notification-banners.test.d.ts +1 -0
  54. package/dist/notification-banners.test.js +28 -0
  55. package/dist/notification-banners.test.js.map +1 -0
  56. package/dist/realtime.d.ts +4 -4
  57. package/dist/subscription-cancellation-feedback.d.ts +539 -0
  58. package/dist/subscription-cancellation-feedback.js +144 -0
  59. package/dist/subscription-cancellation-feedback.js.map +1 -0
  60. package/dist/subscription-cancellation-feedback.test.d.ts +1 -0
  61. package/dist/subscription-cancellation-feedback.test.js +27 -0
  62. package/dist/subscription-cancellation-feedback.test.js.map +1 -0
  63. package/dist/support-attachments.d.ts +320 -0
  64. package/dist/support-attachments.js +108 -0
  65. package/dist/support-attachments.js.map +1 -0
  66. package/dist/support-attachments.test.d.ts +1 -0
  67. package/dist/support-attachments.test.js +35 -0
  68. package/dist/support-attachments.test.js.map +1 -0
  69. package/dist/support-mutation-reconciliation.d.ts +74 -0
  70. package/dist/support-mutation-reconciliation.js +36 -0
  71. package/dist/support-mutation-reconciliation.js.map +1 -0
  72. package/dist/support-mutation-reconciliation.test.d.ts +1 -0
  73. package/dist/support-mutation-reconciliation.test.js +43 -0
  74. package/dist/support-mutation-reconciliation.test.js.map +1 -0
  75. package/dist/support-tickets.d.ts +424 -0
  76. package/dist/support-tickets.js +9 -3
  77. package/dist/support-tickets.js.map +1 -1
  78. package/package.json +1 -1
  79. package/dist/sleep-insights.d.ts +0 -7943
  80. package/dist/sleep-insights.js +0 -231
  81. package/dist/sleep-insights.js.map +0 -1
  82. package/dist/sleep-insights.test.js +0 -124
  83. package/dist/sleep-insights.test.js.map +0 -1
  84. /package/dist/{sleep-insights.test.d.ts → branding.test.d.ts} +0 -0
@@ -22,9 +22,9 @@ export declare const gettingStartedGuideSchema: z.ZodObject<{
22
22
  }, "strip", z.ZodTypeAny, {
23
23
  updatedAt: string;
24
24
  title: string;
25
- audience: "family" | "coach";
26
25
  fileName: string;
27
26
  contentType: string;
27
+ audience: "family" | "coach";
28
28
  storageBucket: string;
29
29
  storageObjectPath: string;
30
30
  downloadUrl: string;
@@ -34,9 +34,9 @@ export declare const gettingStartedGuideSchema: z.ZodObject<{
34
34
  }, {
35
35
  updatedAt: string;
36
36
  title: string;
37
- audience: "family" | "coach";
38
37
  fileName: string;
39
38
  contentType: string;
39
+ audience: "family" | "coach";
40
40
  storageBucket: string;
41
41
  storageObjectPath: string;
42
42
  downloadUrl: string;
@@ -60,9 +60,9 @@ export declare const gettingStartedGuideResponseSchema: z.ZodObject<{
60
60
  }, "strip", z.ZodTypeAny, {
61
61
  updatedAt: string;
62
62
  title: string;
63
- audience: "family" | "coach";
64
63
  fileName: string;
65
64
  contentType: string;
65
+ audience: "family" | "coach";
66
66
  storageBucket: string;
67
67
  storageObjectPath: string;
68
68
  downloadUrl: string;
@@ -72,9 +72,9 @@ export declare const gettingStartedGuideResponseSchema: z.ZodObject<{
72
72
  }, {
73
73
  updatedAt: string;
74
74
  title: string;
75
- audience: "family" | "coach";
76
75
  fileName: string;
77
76
  contentType: string;
77
+ audience: "family" | "coach";
78
78
  storageBucket: string;
79
79
  storageObjectPath: string;
80
80
  downloadUrl: string;
@@ -86,9 +86,9 @@ export declare const gettingStartedGuideResponseSchema: z.ZodObject<{
86
86
  guide: {
87
87
  updatedAt: string;
88
88
  title: string;
89
- audience: "family" | "coach";
90
89
  fileName: string;
91
90
  contentType: string;
91
+ audience: "family" | "coach";
92
92
  storageBucket: string;
93
93
  storageObjectPath: string;
94
94
  downloadUrl: string;
@@ -100,9 +100,9 @@ export declare const gettingStartedGuideResponseSchema: z.ZodObject<{
100
100
  guide: {
101
101
  updatedAt: string;
102
102
  title: string;
103
- audience: "family" | "coach";
104
103
  fileName: string;
105
104
  contentType: string;
105
+ audience: "family" | "coach";
106
106
  storageBucket: string;
107
107
  storageObjectPath: string;
108
108
  downloadUrl: string;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from "./access.js";
2
+ export * from "./active-timer-reminders.js";
2
3
  export * from "./admin.js";
3
4
  export * from "./analysis.js";
4
5
  export * from "./allergy-ladders.js";
@@ -7,6 +8,7 @@ export * from "./app-feedback.js";
7
8
  export * from "./app-runtime-users.js";
8
9
  export * from "./auth.js";
9
10
  export * from "./billing.js";
11
+ export * from "./branding.js";
10
12
  export * from "./client-notices.js";
11
13
  export * from "./coach.js";
12
14
  export * from "./coach-acquisition.js";
@@ -34,6 +36,8 @@ export * from "./product-analytics.js";
34
36
  export * from "./push-devices.js";
35
37
  export * from "./realtime.js";
36
38
  export * from "./review-prompt.js";
37
- export * from "./sleep-insights.js";
38
39
  export * from "./support-faqs.js";
40
+ export * from "./support-attachments.js";
41
+ export * from "./support-mutation-reconciliation.js";
39
42
  export * from "./support-tickets.js";
43
+ export * from "./subscription-cancellation-feedback.js";
package/dist/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from "./access.js";
2
+ export * from "./active-timer-reminders.js";
2
3
  export * from "./admin.js";
3
4
  export * from "./analysis.js";
4
5
  export * from "./allergy-ladders.js";
@@ -7,6 +8,7 @@ export * from "./app-feedback.js";
7
8
  export * from "./app-runtime-users.js";
8
9
  export * from "./auth.js";
9
10
  export * from "./billing.js";
11
+ export * from "./branding.js";
10
12
  export * from "./client-notices.js";
11
13
  export * from "./coach.js";
12
14
  export * from "./coach-acquisition.js";
@@ -34,7 +36,9 @@ export * from "./product-analytics.js";
34
36
  export * from "./push-devices.js";
35
37
  export * from "./realtime.js";
36
38
  export * from "./review-prompt.js";
37
- export * from "./sleep-insights.js";
38
39
  export * from "./support-faqs.js";
40
+ export * from "./support-attachments.js";
41
+ export * from "./support-mutation-reconciliation.js";
39
42
  export * from "./support-tickets.js";
43
+ export * from "./subscription-cancellation-feedback.js";
40
44
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mCAAmC,CAAC;AAClD,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC;AACxC,cAAc,YAAY,CAAC;AAC3B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mCAAmC,CAAC;AAClD,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC;AACxC,cAAc,YAAY,CAAC;AAC3B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sCAAsC,CAAC;AACrD,cAAc,sBAAsB,CAAC;AACrC,cAAc,yCAAyC,CAAC"}
package/dist/invites.d.ts CHANGED
@@ -139,6 +139,44 @@ export declare const invitePreviewSchema: z.ZodObject<{
139
139
  deepGreenColor?: string | null | undefined;
140
140
  blueColor?: string | null | undefined;
141
141
  }>>>;
142
+ paletteConfig: z.ZodOptional<z.ZodNullable<z.ZodObject<{
143
+ version: z.ZodLiteral<1>;
144
+ colors: z.ZodObject<{
145
+ primary: z.ZodString;
146
+ secondary: z.ZodString;
147
+ highlight: z.ZodOptional<z.ZodNullable<z.ZodString>>;
148
+ contrast: z.ZodOptional<z.ZodNullable<z.ZodString>>;
149
+ }, "strict", z.ZodTypeAny, {
150
+ primary: string;
151
+ secondary: string;
152
+ highlight?: string | null | undefined;
153
+ contrast?: string | null | undefined;
154
+ }, {
155
+ primary: string;
156
+ secondary: string;
157
+ highlight?: string | null | undefined;
158
+ contrast?: string | null | undefined;
159
+ }>;
160
+ schemeId: z.ZodEnum<["balanced", "primaryLed", "secondaryLed", "soft"]>;
161
+ }, "strict", z.ZodTypeAny, {
162
+ version: 1;
163
+ colors: {
164
+ primary: string;
165
+ secondary: string;
166
+ highlight?: string | null | undefined;
167
+ contrast?: string | null | undefined;
168
+ };
169
+ schemeId: "balanced" | "primaryLed" | "secondaryLed" | "soft";
170
+ }, {
171
+ version: 1;
172
+ colors: {
173
+ primary: string;
174
+ secondary: string;
175
+ highlight?: string | null | undefined;
176
+ contrast?: string | null | undefined;
177
+ };
178
+ schemeId: "balanced" | "primaryLed" | "secondaryLed" | "soft";
179
+ }>>>;
142
180
  logoAssetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
143
181
  welcomeMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
144
182
  updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -160,6 +198,16 @@ export declare const invitePreviewSchema: z.ZodObject<{
160
198
  deepGreenColor?: string | null | undefined;
161
199
  blueColor?: string | null | undefined;
162
200
  } | null | undefined;
201
+ paletteConfig?: {
202
+ version: 1;
203
+ colors: {
204
+ primary: string;
205
+ secondary: string;
206
+ highlight?: string | null | undefined;
207
+ contrast?: string | null | undefined;
208
+ };
209
+ schemeId: "balanced" | "primaryLed" | "secondaryLed" | "soft";
210
+ } | null | undefined;
163
211
  logoAssetId?: string | null | undefined;
164
212
  welcomeMessage?: string | null | undefined;
165
213
  updatedAt?: string | null | undefined;
@@ -181,6 +229,16 @@ export declare const invitePreviewSchema: z.ZodObject<{
181
229
  deepGreenColor?: string | null | undefined;
182
230
  blueColor?: string | null | undefined;
183
231
  } | null | undefined;
232
+ paletteConfig?: {
233
+ version: 1;
234
+ colors: {
235
+ primary: string;
236
+ secondary: string;
237
+ highlight?: string | null | undefined;
238
+ contrast?: string | null | undefined;
239
+ };
240
+ schemeId: "balanced" | "primaryLed" | "secondaryLed" | "soft";
241
+ } | null | undefined;
184
242
  logoAssetId?: string | null | undefined;
185
243
  welcomeMessage?: string | null | undefined;
186
244
  updatedAt?: string | null | undefined;
@@ -208,6 +266,16 @@ export declare const invitePreviewSchema: z.ZodObject<{
208
266
  deepGreenColor?: string | null | undefined;
209
267
  blueColor?: string | null | undefined;
210
268
  } | null | undefined;
269
+ paletteConfig?: {
270
+ version: 1;
271
+ colors: {
272
+ primary: string;
273
+ secondary: string;
274
+ highlight?: string | null | undefined;
275
+ contrast?: string | null | undefined;
276
+ };
277
+ schemeId: "balanced" | "primaryLed" | "secondaryLed" | "soft";
278
+ } | null | undefined;
211
279
  logoAssetId?: string | null | undefined;
212
280
  welcomeMessage?: string | null | undefined;
213
281
  updatedAt?: string | null | undefined;
@@ -235,6 +303,16 @@ export declare const invitePreviewSchema: z.ZodObject<{
235
303
  deepGreenColor?: string | null | undefined;
236
304
  blueColor?: string | null | undefined;
237
305
  } | null | undefined;
306
+ paletteConfig?: {
307
+ version: 1;
308
+ colors: {
309
+ primary: string;
310
+ secondary: string;
311
+ highlight?: string | null | undefined;
312
+ contrast?: string | null | undefined;
313
+ };
314
+ schemeId: "balanced" | "primaryLed" | "secondaryLed" | "soft";
315
+ } | null | undefined;
238
316
  logoAssetId?: string | null | undefined;
239
317
  welcomeMessage?: string | null | undefined;
240
318
  updatedAt?: string | null | undefined;
@@ -331,6 +409,16 @@ export declare const invitePreviewSchema: z.ZodObject<{
331
409
  deepGreenColor?: string | null | undefined;
332
410
  blueColor?: string | null | undefined;
333
411
  } | null | undefined;
412
+ paletteConfig?: {
413
+ version: 1;
414
+ colors: {
415
+ primary: string;
416
+ secondary: string;
417
+ highlight?: string | null | undefined;
418
+ contrast?: string | null | undefined;
419
+ };
420
+ schemeId: "balanced" | "primaryLed" | "secondaryLed" | "soft";
421
+ } | null | undefined;
334
422
  logoAssetId?: string | null | undefined;
335
423
  welcomeMessage?: string | null | undefined;
336
424
  updatedAt?: string | null | undefined;
@@ -399,6 +487,16 @@ export declare const invitePreviewSchema: z.ZodObject<{
399
487
  deepGreenColor?: string | null | undefined;
400
488
  blueColor?: string | null | undefined;
401
489
  } | null | undefined;
490
+ paletteConfig?: {
491
+ version: 1;
492
+ colors: {
493
+ primary: string;
494
+ secondary: string;
495
+ highlight?: string | null | undefined;
496
+ contrast?: string | null | undefined;
497
+ };
498
+ schemeId: "balanced" | "primaryLed" | "secondaryLed" | "soft";
499
+ } | null | undefined;
402
500
  logoAssetId?: string | null | undefined;
403
501
  welcomeMessage?: string | null | undefined;
404
502
  updatedAt?: string | null | undefined;
@@ -1,11 +1,17 @@
1
1
  import { z } from "zod";
2
2
  export declare const notificationBannerStatusSchema: z.ZodEnum<["draft", "scheduled", "live", "paused", "expired", "archived"]>;
3
3
  export declare const notificationBannerAudienceSchema: z.ZodEnum<["families", "coaches", "all"]>;
4
- export declare const notificationBannerScopeSchema: z.ZodEnum<["global", "coachClients"]>;
4
+ export declare const notificationBannerScopeSchema: z.ZodEnum<["global", "coachClients", "familyAccessLifecycle"]>;
5
+ export declare const familyAccessLifecycleStageSchema: z.ZodEnum<["supportEnded", "premiumGraceEnded"]>;
5
6
  export declare const notificationBannerPlatformSchema: z.ZodEnum<["ios", "android", "web", "all"]>;
6
7
  export declare const notificationBannerReceiptEventSchema: z.ZodEnum<["seen", "dismissed", "clicked"]>;
7
8
  export declare const notificationBannerStatuses: ["draft", "scheduled", "live", "paused", "expired", "archived"];
8
9
  export declare const notificationBannerAudienceOptions: ["families", "coaches", "all"];
10
+ export declare const familySubscriptionNotificationBannerCtaUrl = "app://subscription";
11
+ export declare const familyAccessLifecyclePushSource = "dreamsforlittles-family-access-lifecycle";
12
+ export declare const familyAccessLifecyclePushSchemaVersion = "1";
13
+ export declare const familyAccessLifecyclePushRoute = "/family";
14
+ export declare const familyAccessLifecyclePushMinimumWrapperVersion = "4.9.0";
9
15
  export declare const normalizeNotificationBannerText: (value?: string | null) => string | null;
10
16
  export declare const notificationBannerWriteRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
11
17
  title: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodString>;
@@ -122,10 +128,13 @@ export declare const notificationBannerStatusUpdateRequestSchema: z.ZodObject<{
122
128
  }>;
123
129
  export declare const notificationBannerEligibleQuerySchema: z.ZodObject<{
124
130
  platform: z.ZodOptional<z.ZodEnum<["ios", "android", "web", "all"]>>;
131
+ familyAccessLifecycle: z.ZodOptional<z.ZodLiteral<"1">>;
125
132
  }, "strict", z.ZodTypeAny, {
126
133
  platform?: "ios" | "android" | "web" | "all" | undefined;
134
+ familyAccessLifecycle?: "1" | undefined;
127
135
  }, {
128
136
  platform?: "ios" | "android" | "web" | "all" | undefined;
137
+ familyAccessLifecycle?: "1" | undefined;
129
138
  }>;
130
139
  export declare const notificationBannerReceiptEventRequestSchema: z.ZodObject<{
131
140
  event: z.ZodEnum<["seen", "dismissed", "clicked"]>;
@@ -148,9 +157,13 @@ export declare const notificationBannerSchema: z.ZodObject<{
148
157
  icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
149
158
  status: z.ZodEnum<["draft", "scheduled", "live", "paused", "expired", "archived"]>;
150
159
  audience: z.ZodEnum<["families", "coaches", "all"]>;
151
- scope: z.ZodEnum<["global", "coachClients"]>;
160
+ scope: z.ZodEnum<["global", "coachClients", "familyAccessLifecycle"]>;
152
161
  organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
153
162
  coachUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
163
+ recipientUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
164
+ sourceEntitlementId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
165
+ lifecycleStage: z.ZodOptional<z.ZodNullable<z.ZodEnum<["supportEnded", "premiumGraceEnded"]>>>;
166
+ systemKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
154
167
  startsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
155
168
  endsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
156
169
  priority: z.ZodNumber;
@@ -181,7 +194,7 @@ export declare const notificationBannerSchema: z.ZodObject<{
181
194
  dismissible: boolean;
182
195
  includeEmails: string[];
183
196
  excludeEmails: string[];
184
- scope: "global" | "coachClients";
197
+ scope: "familyAccessLifecycle" | "global" | "coachClients";
185
198
  message?: string | null | undefined;
186
199
  organizationId?: string | null | undefined;
187
200
  coachUserId?: string | null | undefined;
@@ -192,6 +205,10 @@ export declare const notificationBannerSchema: z.ZodObject<{
192
205
  subtitle?: string | null | undefined;
193
206
  linkText?: string | null | undefined;
194
207
  linkUrl?: string | null | undefined;
208
+ recipientUserId?: string | null | undefined;
209
+ sourceEntitlementId?: string | null | undefined;
210
+ lifecycleStage?: "supportEnded" | "premiumGraceEnded" | null | undefined;
211
+ systemKey?: string | null | undefined;
195
212
  platforms?: ("ios" | "android" | "web" | "all")[] | undefined;
196
213
  publishedBy?: string | null | undefined;
197
214
  }, {
@@ -205,7 +222,7 @@ export declare const notificationBannerSchema: z.ZodObject<{
205
222
  audience: "families" | "coaches" | "all";
206
223
  priority: number;
207
224
  dismissible: boolean;
208
- scope: "global" | "coachClients";
225
+ scope: "familyAccessLifecycle" | "global" | "coachClients";
209
226
  message?: string | null | undefined;
210
227
  organizationId?: string | null | undefined;
211
228
  coachUserId?: string | null | undefined;
@@ -219,6 +236,10 @@ export declare const notificationBannerSchema: z.ZodObject<{
219
236
  linkUrl?: string | null | undefined;
220
237
  includeEmails?: string[] | undefined;
221
238
  excludeEmails?: string[] | undefined;
239
+ recipientUserId?: string | null | undefined;
240
+ sourceEntitlementId?: string | null | undefined;
241
+ lifecycleStage?: "supportEnded" | "premiumGraceEnded" | null | undefined;
242
+ systemKey?: string | null | undefined;
222
243
  platforms?: ("ios" | "android" | "web" | "all")[] | undefined;
223
244
  publishedBy?: string | null | undefined;
224
245
  }>;
@@ -268,9 +289,13 @@ export declare const notificationBannersResponseSchema: z.ZodObject<{
268
289
  icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
269
290
  status: z.ZodEnum<["draft", "scheduled", "live", "paused", "expired", "archived"]>;
270
291
  audience: z.ZodEnum<["families", "coaches", "all"]>;
271
- scope: z.ZodEnum<["global", "coachClients"]>;
292
+ scope: z.ZodEnum<["global", "coachClients", "familyAccessLifecycle"]>;
272
293
  organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
273
294
  coachUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
295
+ recipientUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
296
+ sourceEntitlementId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
297
+ lifecycleStage: z.ZodOptional<z.ZodNullable<z.ZodEnum<["supportEnded", "premiumGraceEnded"]>>>;
298
+ systemKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
274
299
  startsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
275
300
  endsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
276
301
  priority: z.ZodNumber;
@@ -301,7 +326,7 @@ export declare const notificationBannersResponseSchema: z.ZodObject<{
301
326
  dismissible: boolean;
302
327
  includeEmails: string[];
303
328
  excludeEmails: string[];
304
- scope: "global" | "coachClients";
329
+ scope: "familyAccessLifecycle" | "global" | "coachClients";
305
330
  message?: string | null | undefined;
306
331
  organizationId?: string | null | undefined;
307
332
  coachUserId?: string | null | undefined;
@@ -312,6 +337,10 @@ export declare const notificationBannersResponseSchema: z.ZodObject<{
312
337
  subtitle?: string | null | undefined;
313
338
  linkText?: string | null | undefined;
314
339
  linkUrl?: string | null | undefined;
340
+ recipientUserId?: string | null | undefined;
341
+ sourceEntitlementId?: string | null | undefined;
342
+ lifecycleStage?: "supportEnded" | "premiumGraceEnded" | null | undefined;
343
+ systemKey?: string | null | undefined;
315
344
  platforms?: ("ios" | "android" | "web" | "all")[] | undefined;
316
345
  publishedBy?: string | null | undefined;
317
346
  }, {
@@ -325,7 +354,7 @@ export declare const notificationBannersResponseSchema: z.ZodObject<{
325
354
  audience: "families" | "coaches" | "all";
326
355
  priority: number;
327
356
  dismissible: boolean;
328
- scope: "global" | "coachClients";
357
+ scope: "familyAccessLifecycle" | "global" | "coachClients";
329
358
  message?: string | null | undefined;
330
359
  organizationId?: string | null | undefined;
331
360
  coachUserId?: string | null | undefined;
@@ -339,6 +368,10 @@ export declare const notificationBannersResponseSchema: z.ZodObject<{
339
368
  linkUrl?: string | null | undefined;
340
369
  includeEmails?: string[] | undefined;
341
370
  excludeEmails?: string[] | undefined;
371
+ recipientUserId?: string | null | undefined;
372
+ sourceEntitlementId?: string | null | undefined;
373
+ lifecycleStage?: "supportEnded" | "premiumGraceEnded" | null | undefined;
374
+ systemKey?: string | null | undefined;
342
375
  platforms?: ("ios" | "android" | "web" | "all")[] | undefined;
343
376
  publishedBy?: string | null | undefined;
344
377
  }>, "many">;
@@ -357,7 +390,7 @@ export declare const notificationBannersResponseSchema: z.ZodObject<{
357
390
  dismissible: boolean;
358
391
  includeEmails: string[];
359
392
  excludeEmails: string[];
360
- scope: "global" | "coachClients";
393
+ scope: "familyAccessLifecycle" | "global" | "coachClients";
361
394
  message?: string | null | undefined;
362
395
  organizationId?: string | null | undefined;
363
396
  coachUserId?: string | null | undefined;
@@ -368,6 +401,10 @@ export declare const notificationBannersResponseSchema: z.ZodObject<{
368
401
  subtitle?: string | null | undefined;
369
402
  linkText?: string | null | undefined;
370
403
  linkUrl?: string | null | undefined;
404
+ recipientUserId?: string | null | undefined;
405
+ sourceEntitlementId?: string | null | undefined;
406
+ lifecycleStage?: "supportEnded" | "premiumGraceEnded" | null | undefined;
407
+ systemKey?: string | null | undefined;
371
408
  platforms?: ("ios" | "android" | "web" | "all")[] | undefined;
372
409
  publishedBy?: string | null | undefined;
373
410
  }[];
@@ -383,7 +420,7 @@ export declare const notificationBannersResponseSchema: z.ZodObject<{
383
420
  audience: "families" | "coaches" | "all";
384
421
  priority: number;
385
422
  dismissible: boolean;
386
- scope: "global" | "coachClients";
423
+ scope: "familyAccessLifecycle" | "global" | "coachClients";
387
424
  message?: string | null | undefined;
388
425
  organizationId?: string | null | undefined;
389
426
  coachUserId?: string | null | undefined;
@@ -397,6 +434,10 @@ export declare const notificationBannersResponseSchema: z.ZodObject<{
397
434
  linkUrl?: string | null | undefined;
398
435
  includeEmails?: string[] | undefined;
399
436
  excludeEmails?: string[] | undefined;
437
+ recipientUserId?: string | null | undefined;
438
+ sourceEntitlementId?: string | null | undefined;
439
+ lifecycleStage?: "supportEnded" | "premiumGraceEnded" | null | undefined;
440
+ systemKey?: string | null | undefined;
400
441
  platforms?: ("ios" | "android" | "web" | "all")[] | undefined;
401
442
  publishedBy?: string | null | undefined;
402
443
  }[];
@@ -410,9 +451,13 @@ export declare const notificationBannerResponseSchema: z.ZodObject<{
410
451
  icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
411
452
  status: z.ZodEnum<["draft", "scheduled", "live", "paused", "expired", "archived"]>;
412
453
  audience: z.ZodEnum<["families", "coaches", "all"]>;
413
- scope: z.ZodEnum<["global", "coachClients"]>;
454
+ scope: z.ZodEnum<["global", "coachClients", "familyAccessLifecycle"]>;
414
455
  organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
415
456
  coachUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
457
+ recipientUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
458
+ sourceEntitlementId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
459
+ lifecycleStage: z.ZodOptional<z.ZodNullable<z.ZodEnum<["supportEnded", "premiumGraceEnded"]>>>;
460
+ systemKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
416
461
  startsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
417
462
  endsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
418
463
  priority: z.ZodNumber;
@@ -443,7 +488,7 @@ export declare const notificationBannerResponseSchema: z.ZodObject<{
443
488
  dismissible: boolean;
444
489
  includeEmails: string[];
445
490
  excludeEmails: string[];
446
- scope: "global" | "coachClients";
491
+ scope: "familyAccessLifecycle" | "global" | "coachClients";
447
492
  message?: string | null | undefined;
448
493
  organizationId?: string | null | undefined;
449
494
  coachUserId?: string | null | undefined;
@@ -454,6 +499,10 @@ export declare const notificationBannerResponseSchema: z.ZodObject<{
454
499
  subtitle?: string | null | undefined;
455
500
  linkText?: string | null | undefined;
456
501
  linkUrl?: string | null | undefined;
502
+ recipientUserId?: string | null | undefined;
503
+ sourceEntitlementId?: string | null | undefined;
504
+ lifecycleStage?: "supportEnded" | "premiumGraceEnded" | null | undefined;
505
+ systemKey?: string | null | undefined;
457
506
  platforms?: ("ios" | "android" | "web" | "all")[] | undefined;
458
507
  publishedBy?: string | null | undefined;
459
508
  }, {
@@ -467,7 +516,7 @@ export declare const notificationBannerResponseSchema: z.ZodObject<{
467
516
  audience: "families" | "coaches" | "all";
468
517
  priority: number;
469
518
  dismissible: boolean;
470
- scope: "global" | "coachClients";
519
+ scope: "familyAccessLifecycle" | "global" | "coachClients";
471
520
  message?: string | null | undefined;
472
521
  organizationId?: string | null | undefined;
473
522
  coachUserId?: string | null | undefined;
@@ -481,6 +530,10 @@ export declare const notificationBannerResponseSchema: z.ZodObject<{
481
530
  linkUrl?: string | null | undefined;
482
531
  includeEmails?: string[] | undefined;
483
532
  excludeEmails?: string[] | undefined;
533
+ recipientUserId?: string | null | undefined;
534
+ sourceEntitlementId?: string | null | undefined;
535
+ lifecycleStage?: "supportEnded" | "premiumGraceEnded" | null | undefined;
536
+ systemKey?: string | null | undefined;
484
537
  platforms?: ("ios" | "android" | "web" | "all")[] | undefined;
485
538
  publishedBy?: string | null | undefined;
486
539
  }>;
@@ -499,7 +552,7 @@ export declare const notificationBannerResponseSchema: z.ZodObject<{
499
552
  dismissible: boolean;
500
553
  includeEmails: string[];
501
554
  excludeEmails: string[];
502
- scope: "global" | "coachClients";
555
+ scope: "familyAccessLifecycle" | "global" | "coachClients";
503
556
  message?: string | null | undefined;
504
557
  organizationId?: string | null | undefined;
505
558
  coachUserId?: string | null | undefined;
@@ -510,6 +563,10 @@ export declare const notificationBannerResponseSchema: z.ZodObject<{
510
563
  subtitle?: string | null | undefined;
511
564
  linkText?: string | null | undefined;
512
565
  linkUrl?: string | null | undefined;
566
+ recipientUserId?: string | null | undefined;
567
+ sourceEntitlementId?: string | null | undefined;
568
+ lifecycleStage?: "supportEnded" | "premiumGraceEnded" | null | undefined;
569
+ systemKey?: string | null | undefined;
513
570
  platforms?: ("ios" | "android" | "web" | "all")[] | undefined;
514
571
  publishedBy?: string | null | undefined;
515
572
  };
@@ -525,7 +582,7 @@ export declare const notificationBannerResponseSchema: z.ZodObject<{
525
582
  audience: "families" | "coaches" | "all";
526
583
  priority: number;
527
584
  dismissible: boolean;
528
- scope: "global" | "coachClients";
585
+ scope: "familyAccessLifecycle" | "global" | "coachClients";
529
586
  message?: string | null | undefined;
530
587
  organizationId?: string | null | undefined;
531
588
  coachUserId?: string | null | undefined;
@@ -539,6 +596,10 @@ export declare const notificationBannerResponseSchema: z.ZodObject<{
539
596
  linkUrl?: string | null | undefined;
540
597
  includeEmails?: string[] | undefined;
541
598
  excludeEmails?: string[] | undefined;
599
+ recipientUserId?: string | null | undefined;
600
+ sourceEntitlementId?: string | null | undefined;
601
+ lifecycleStage?: "supportEnded" | "premiumGraceEnded" | null | undefined;
602
+ systemKey?: string | null | undefined;
542
603
  platforms?: ("ios" | "android" | "web" | "all")[] | undefined;
543
604
  publishedBy?: string | null | undefined;
544
605
  };
@@ -680,6 +741,7 @@ export declare const notificationBannerReceiptResponseSchema: z.ZodObject<{
680
741
  export type NotificationBannerStatus = z.infer<typeof notificationBannerStatusSchema>;
681
742
  export type NotificationBannerAudience = z.infer<typeof notificationBannerAudienceSchema>;
682
743
  export type NotificationBannerScope = z.infer<typeof notificationBannerScopeSchema>;
744
+ export type FamilyAccessLifecycleStage = z.infer<typeof familyAccessLifecycleStageSchema>;
683
745
  export type NotificationBannerPlatform = z.infer<typeof notificationBannerPlatformSchema>;
684
746
  export type NotificationBannerReceiptEvent = z.infer<typeof notificationBannerReceiptEventSchema>;
685
747
  export type NotificationBannerWriteRequest = z.infer<typeof notificationBannerWriteRequestSchema>;
@@ -9,7 +9,15 @@ export const notificationBannerStatusSchema = z.enum([
9
9
  "archived"
10
10
  ]);
11
11
  export const notificationBannerAudienceSchema = z.enum(["families", "coaches", "all"]);
12
- export const notificationBannerScopeSchema = z.enum(["global", "coachClients"]);
12
+ export const notificationBannerScopeSchema = z.enum([
13
+ "global",
14
+ "coachClients",
15
+ "familyAccessLifecycle"
16
+ ]);
17
+ export const familyAccessLifecycleStageSchema = z.enum([
18
+ "supportEnded",
19
+ "premiumGraceEnded"
20
+ ]);
13
21
  export const notificationBannerPlatformSchema = z.enum([
14
22
  "ios",
15
23
  "android",
@@ -23,6 +31,11 @@ export const notificationBannerReceiptEventSchema = z.enum([
23
31
  ]);
24
32
  export const notificationBannerStatuses = notificationBannerStatusSchema.options;
25
33
  export const notificationBannerAudienceOptions = notificationBannerAudienceSchema.options;
34
+ export const familySubscriptionNotificationBannerCtaUrl = "app://subscription";
35
+ export const familyAccessLifecyclePushSource = "dreamsforlittles-family-access-lifecycle";
36
+ export const familyAccessLifecyclePushSchemaVersion = "1";
37
+ export const familyAccessLifecyclePushRoute = "/family";
38
+ export const familyAccessLifecyclePushMinimumWrapperVersion = "4.9.0";
26
39
  export const normalizeNotificationBannerText = (value) => {
27
40
  const trimmed = value?.trim() ?? "";
28
41
  return trimmed.length > 0 ? trimmed : null;
@@ -66,7 +79,8 @@ export const notificationBannerStatusUpdateRequestSchema = z
66
79
  .strict();
67
80
  export const notificationBannerEligibleQuerySchema = z
68
81
  .object({
69
- platform: notificationBannerPlatformSchema.optional()
82
+ platform: notificationBannerPlatformSchema.optional(),
83
+ familyAccessLifecycle: z.literal("1").optional()
70
84
  })
71
85
  .strict();
72
86
  export const notificationBannerReceiptEventRequestSchema = z
@@ -87,6 +101,10 @@ export const notificationBannerSchema = z.object({
87
101
  scope: notificationBannerScopeSchema,
88
102
  organizationId: idSchema.nullable().optional(),
89
103
  coachUserId: idSchema.nullable().optional(),
104
+ recipientUserId: idSchema.nullable().optional(),
105
+ sourceEntitlementId: idSchema.nullable().optional(),
106
+ lifecycleStage: familyAccessLifecycleStageSchema.nullable().optional(),
107
+ systemKey: z.string().min(1).nullable().optional(),
90
108
  startsAt: nullableIsoDateStringSchema.optional(),
91
109
  endsAt: nullableIsoDateStringSchema.optional(),
92
110
  priority: z.number().int().nonnegative(),
@@ -1 +1 @@
1
- {"version":3,"file":"notification-banners.js","sourceRoot":"","sources":["../src/notification-banners.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,2BAA2B,EAAE,MAAM,UAAU,CAAC;AAEtF,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,CAAC,IAAI,CAAC;IACnD,OAAO;IACP,WAAW;IACX,MAAM;IACN,QAAQ;IACR,SAAS;IACT,UAAU;CACX,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC,CAAC;AAEvF,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC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MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC5C,SAAS,EAAE,mBAAmB;IAC9B,SAAS,EAAE,mBAAmB;CAC/B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,CAAC,MAAM,CAAC;IACxD,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,wBAAwB,CAAC;CAC3C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,CAAC,MAAM,CAAC;IACvD,MAAM,EAAE,wBAAwB;CACjC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,wCAAwC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/D,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,+BAA+B,CAAC;CACnD,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,uCAAuC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9D,OAAO,EAAE,+BAA+B;CACzC,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,28 @@
1
+ import { describe, expect, it } from "vitest";
2
+ import { familyAccessLifecyclePushMinimumWrapperVersion, familyAccessLifecyclePushRoute, familyAccessLifecyclePushSchemaVersion, familyAccessLifecyclePushSource, notificationBannerEligibleQuerySchema } from "./notification-banners.js";
3
+ describe("family access lifecycle notification contract", () => {
4
+ it("requires the explicit current-client capability on banner reads", () => {
5
+ expect(notificationBannerEligibleQuerySchema.parse({
6
+ platform: "ios",
7
+ familyAccessLifecycle: "1"
8
+ })).toEqual({ platform: "ios", familyAccessLifecycle: "1" });
9
+ expect(() => notificationBannerEligibleQuerySchema.parse({
10
+ platform: "ios",
11
+ familyAccessLifecycle: "0"
12
+ })).toThrow();
13
+ });
14
+ it("keeps the native payload version and compatibility boundary stable", () => {
15
+ expect({
16
+ source: familyAccessLifecyclePushSource,
17
+ schemaVersion: familyAccessLifecyclePushSchemaVersion,
18
+ route: familyAccessLifecyclePushRoute,
19
+ minimumWrapperVersion: familyAccessLifecyclePushMinimumWrapperVersion
20
+ }).toEqual({
21
+ source: "dreamsforlittles-family-access-lifecycle",
22
+ schemaVersion: "1",
23
+ route: "/family",
24
+ minimumWrapperVersion: "4.9.0"
25
+ });
26
+ });
27
+ });
28
+ //# sourceMappingURL=notification-banners.test.js.map