@nikthegeek/dreamsforlittles-shared 0.1.3 → 0.4.1
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.
- package/dist/access.d.ts +360 -12
- package/dist/access.js +9 -2
- package/dist/access.js.map +1 -1
- package/dist/admin.d.ts +89 -65
- package/dist/admin.js +4 -1
- package/dist/admin.js.map +1 -1
- package/dist/api.d.ts +5 -5
- package/dist/app-runtime-users.d.ts +464 -0
- package/dist/app-runtime-users.js +64 -0
- package/dist/app-runtime-users.js.map +1 -0
- package/dist/auth.d.ts +20 -2
- package/dist/auth.js +7 -2
- package/dist/auth.js.map +1 -1
- package/dist/client-notices.d.ts +77 -77
- package/dist/coach-acquisition.d.ts +47 -0
- package/dist/coach-acquisition.js +45 -0
- package/dist/coach-acquisition.js.map +1 -0
- package/dist/coach-activity-notifications.d.ts +16 -16
- package/dist/coach-family-chat.d.ts +1658 -0
- package/dist/coach-family-chat.js +342 -0
- package/dist/coach-family-chat.js.map +1 -0
- package/dist/coach-family-chat.test.d.ts +1 -0
- package/dist/coach-family-chat.test.js +129 -0
- package/dist/coach-family-chat.test.js.map +1 -0
- package/dist/coach-growth.d.ts +706 -0
- package/dist/coach-growth.js +191 -0
- package/dist/coach-growth.js.map +1 -0
- package/dist/coach-growth.test.d.ts +1 -0
- package/dist/coach-growth.test.js +109 -0
- package/dist/coach-growth.test.js.map +1 -0
- package/dist/coach.d.ts +61 -48
- package/dist/coach.js +4 -0
- package/dist/coach.js.map +1 -1
- package/dist/enums.d.ts +1 -1
- package/dist/enums.js +9 -1
- package/dist/enums.js.map +1 -1
- package/dist/errors.d.ts +15 -4
- package/dist/errors.js +33 -0
- package/dist/errors.js.map +1 -1
- package/dist/family-invitations.d.ts +2 -2
- package/dist/family-profile-artifacts.d.ts +28 -28
- package/dist/family.d.ts +1411 -147
- package/dist/family.js +27 -0
- package/dist/family.js.map +1 -1
- package/dist/geography.d.ts +15 -0
- package/dist/geography.js +45 -0
- package/dist/geography.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/invites.d.ts +6 -6
- package/dist/mobile-web-releases.d.ts +14 -14
- package/dist/native-app-updates.d.ts +339 -0
- package/dist/native-app-updates.js +106 -0
- package/dist/native-app-updates.js.map +1 -0
- package/dist/notification-banners.d.ts +12 -12
- package/dist/product-analytics.d.ts +169 -169
- package/dist/product-analytics.js +1 -0
- package/dist/product-analytics.js.map +1 -1
- package/dist/push-devices.d.ts +6 -6
- package/dist/realtime.d.ts +12 -12
- package/dist/support-tickets.d.ts +10 -10
- package/fixtures/coach-family-chat-push-v1.json +104 -0
- package/fixtures/coach-family-chat-push-v1.sha256 +1 -0
- package/package.json +5 -3
package/dist/admin.d.ts
CHANGED
|
@@ -110,21 +110,26 @@ export declare const adminActiveTimerCountsSchema: z.ZodObject<{
|
|
|
110
110
|
sleep: z.ZodNumber;
|
|
111
111
|
breastfeed: z.ZodNumber;
|
|
112
112
|
pumping: z.ZodNumber;
|
|
113
|
+
stale: z.ZodNumber;
|
|
113
114
|
}, "strip", z.ZodTypeAny, {
|
|
114
115
|
total: number;
|
|
115
116
|
sleep: number;
|
|
116
117
|
breastfeed: number;
|
|
117
118
|
pumping: number;
|
|
119
|
+
stale: number;
|
|
118
120
|
}, {
|
|
119
121
|
total: number;
|
|
120
122
|
sleep: number;
|
|
121
123
|
breastfeed: number;
|
|
122
124
|
pumping: number;
|
|
125
|
+
stale: number;
|
|
123
126
|
}>;
|
|
124
127
|
export declare const adminActiveTimerSchema: z.ZodObject<{
|
|
125
128
|
id: z.ZodString;
|
|
126
129
|
activityType: z.ZodEnum<["breastfeed", "sleep", "pumping"]>;
|
|
127
130
|
startedAt: z.ZodString;
|
|
131
|
+
staleAt: z.ZodString;
|
|
132
|
+
isStale: z.ZodBoolean;
|
|
128
133
|
timeZone: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
|
|
129
134
|
localDate: z.ZodNullable<z.ZodString>;
|
|
130
135
|
updatedAt: z.ZodString;
|
|
@@ -162,6 +167,8 @@ export declare const adminActiveTimerSchema: z.ZodObject<{
|
|
|
162
167
|
startedAt: string;
|
|
163
168
|
updatedAt: string;
|
|
164
169
|
activityType: "sleep" | "breastfeed" | "pumping";
|
|
170
|
+
staleAt: string;
|
|
171
|
+
isStale: boolean;
|
|
165
172
|
localDate: string | null;
|
|
166
173
|
baby: {
|
|
167
174
|
id: string;
|
|
@@ -178,6 +185,8 @@ export declare const adminActiveTimerSchema: z.ZodObject<{
|
|
|
178
185
|
startedAt: string;
|
|
179
186
|
updatedAt: string;
|
|
180
187
|
activityType: "sleep" | "breastfeed" | "pumping";
|
|
188
|
+
staleAt: string;
|
|
189
|
+
isStale: boolean;
|
|
181
190
|
localDate: string | null;
|
|
182
191
|
baby: {
|
|
183
192
|
id: string;
|
|
@@ -189,6 +198,8 @@ export declare const adminActiveTimersResponseSchema: z.ZodObject<{
|
|
|
189
198
|
id: z.ZodString;
|
|
190
199
|
activityType: z.ZodEnum<["breastfeed", "sleep", "pumping"]>;
|
|
191
200
|
startedAt: z.ZodString;
|
|
201
|
+
staleAt: z.ZodString;
|
|
202
|
+
isStale: z.ZodBoolean;
|
|
192
203
|
timeZone: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
|
|
193
204
|
localDate: z.ZodNullable<z.ZodString>;
|
|
194
205
|
updatedAt: z.ZodString;
|
|
@@ -226,6 +237,8 @@ export declare const adminActiveTimersResponseSchema: z.ZodObject<{
|
|
|
226
237
|
startedAt: string;
|
|
227
238
|
updatedAt: string;
|
|
228
239
|
activityType: "sleep" | "breastfeed" | "pumping";
|
|
240
|
+
staleAt: string;
|
|
241
|
+
isStale: boolean;
|
|
229
242
|
localDate: string | null;
|
|
230
243
|
baby: {
|
|
231
244
|
id: string;
|
|
@@ -242,6 +255,8 @@ export declare const adminActiveTimersResponseSchema: z.ZodObject<{
|
|
|
242
255
|
startedAt: string;
|
|
243
256
|
updatedAt: string;
|
|
244
257
|
activityType: "sleep" | "breastfeed" | "pumping";
|
|
258
|
+
staleAt: string;
|
|
259
|
+
isStale: boolean;
|
|
245
260
|
localDate: string | null;
|
|
246
261
|
baby: {
|
|
247
262
|
id: string;
|
|
@@ -253,16 +268,19 @@ export declare const adminActiveTimersResponseSchema: z.ZodObject<{
|
|
|
253
268
|
sleep: z.ZodNumber;
|
|
254
269
|
breastfeed: z.ZodNumber;
|
|
255
270
|
pumping: z.ZodNumber;
|
|
271
|
+
stale: z.ZodNumber;
|
|
256
272
|
}, "strip", z.ZodTypeAny, {
|
|
257
273
|
total: number;
|
|
258
274
|
sleep: number;
|
|
259
275
|
breastfeed: number;
|
|
260
276
|
pumping: number;
|
|
277
|
+
stale: number;
|
|
261
278
|
}, {
|
|
262
279
|
total: number;
|
|
263
280
|
sleep: number;
|
|
264
281
|
breastfeed: number;
|
|
265
282
|
pumping: number;
|
|
283
|
+
stale: number;
|
|
266
284
|
}>;
|
|
267
285
|
generatedAt: z.ZodString;
|
|
268
286
|
truncated: z.ZodBoolean;
|
|
@@ -278,6 +296,8 @@ export declare const adminActiveTimersResponseSchema: z.ZodObject<{
|
|
|
278
296
|
startedAt: string;
|
|
279
297
|
updatedAt: string;
|
|
280
298
|
activityType: "sleep" | "breastfeed" | "pumping";
|
|
299
|
+
staleAt: string;
|
|
300
|
+
isStale: boolean;
|
|
281
301
|
localDate: string | null;
|
|
282
302
|
baby: {
|
|
283
303
|
id: string;
|
|
@@ -289,6 +309,7 @@ export declare const adminActiveTimersResponseSchema: z.ZodObject<{
|
|
|
289
309
|
sleep: number;
|
|
290
310
|
breastfeed: number;
|
|
291
311
|
pumping: number;
|
|
312
|
+
stale: number;
|
|
292
313
|
};
|
|
293
314
|
generatedAt: string;
|
|
294
315
|
truncated: boolean;
|
|
@@ -304,6 +325,8 @@ export declare const adminActiveTimersResponseSchema: z.ZodObject<{
|
|
|
304
325
|
startedAt: string;
|
|
305
326
|
updatedAt: string;
|
|
306
327
|
activityType: "sleep" | "breastfeed" | "pumping";
|
|
328
|
+
staleAt: string;
|
|
329
|
+
isStale: boolean;
|
|
307
330
|
localDate: string | null;
|
|
308
331
|
baby: {
|
|
309
332
|
id: string;
|
|
@@ -315,6 +338,7 @@ export declare const adminActiveTimersResponseSchema: z.ZodObject<{
|
|
|
315
338
|
sleep: number;
|
|
316
339
|
breastfeed: number;
|
|
317
340
|
pumping: number;
|
|
341
|
+
stale: number;
|
|
318
342
|
};
|
|
319
343
|
generatedAt: string;
|
|
320
344
|
truncated: boolean;
|
|
@@ -2169,8 +2193,8 @@ export declare const adminAssignmentResponseSchema: z.ZodObject<{
|
|
|
2169
2193
|
premiumGraceActive: z.ZodOptional<z.ZodBoolean>;
|
|
2170
2194
|
disabledReason: z.ZodEnum<["none", "notStarted", "expired", "revoked", "billingInactive", "suspendedOrganization", "noEntitlement"]>;
|
|
2171
2195
|
}, "strip", z.ZodTypeAny, {
|
|
2172
|
-
active: boolean;
|
|
2173
2196
|
disabledReason: "revoked" | "expired" | "none" | "notStarted" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
|
|
2197
|
+
active: boolean;
|
|
2174
2198
|
expiresAt?: string | null | undefined;
|
|
2175
2199
|
organizationId?: string | undefined;
|
|
2176
2200
|
source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
|
|
@@ -2181,8 +2205,8 @@ export declare const adminAssignmentResponseSchema: z.ZodObject<{
|
|
|
2181
2205
|
premiumGraceDaysRemaining?: number | undefined;
|
|
2182
2206
|
premiumGraceActive?: boolean | undefined;
|
|
2183
2207
|
}, {
|
|
2184
|
-
active: boolean;
|
|
2185
2208
|
disabledReason: "revoked" | "expired" | "none" | "notStarted" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
|
|
2209
|
+
active: boolean;
|
|
2186
2210
|
expiresAt?: string | null | undefined;
|
|
2187
2211
|
organizationId?: string | undefined;
|
|
2188
2212
|
source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
|
|
@@ -2235,8 +2259,8 @@ export declare const adminAssignmentResponseSchema: z.ZodObject<{
|
|
|
2235
2259
|
} | undefined;
|
|
2236
2260
|
};
|
|
2237
2261
|
premium: {
|
|
2238
|
-
active: boolean;
|
|
2239
2262
|
disabledReason: "revoked" | "expired" | "none" | "notStarted" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
|
|
2263
|
+
active: boolean;
|
|
2240
2264
|
expiresAt?: string | null | undefined;
|
|
2241
2265
|
organizationId?: string | undefined;
|
|
2242
2266
|
source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
|
|
@@ -2289,8 +2313,8 @@ export declare const adminAssignmentResponseSchema: z.ZodObject<{
|
|
|
2289
2313
|
} | undefined;
|
|
2290
2314
|
};
|
|
2291
2315
|
premium: {
|
|
2292
|
-
active: boolean;
|
|
2293
2316
|
disabledReason: "revoked" | "expired" | "none" | "notStarted" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
|
|
2317
|
+
active: boolean;
|
|
2294
2318
|
expiresAt?: string | null | undefined;
|
|
2295
2319
|
organizationId?: string | undefined;
|
|
2296
2320
|
source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
|
|
@@ -4713,6 +4737,28 @@ export declare const adminCoachViewAsSessionResponseSchema: z.ZodObject<{
|
|
|
4713
4737
|
};
|
|
4714
4738
|
expiresAt: string;
|
|
4715
4739
|
readOnly: boolean;
|
|
4740
|
+
owner: {
|
|
4741
|
+
id: string;
|
|
4742
|
+
authUserId: string;
|
|
4743
|
+
email: string;
|
|
4744
|
+
name: string;
|
|
4745
|
+
defaultRole: "family" | "coach" | "superAdmin";
|
|
4746
|
+
roles: {
|
|
4747
|
+
family: boolean;
|
|
4748
|
+
coach: boolean;
|
|
4749
|
+
superAdmin: boolean;
|
|
4750
|
+
};
|
|
4751
|
+
createdAt: string;
|
|
4752
|
+
profileAssetId?: string | null | undefined;
|
|
4753
|
+
relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
|
|
4754
|
+
timeZone?: string | null | undefined;
|
|
4755
|
+
communicationPreferences?: {
|
|
4756
|
+
hintsTips: boolean;
|
|
4757
|
+
appUpdatesNewFeatures: boolean;
|
|
4758
|
+
promotionsOffers: boolean;
|
|
4759
|
+
} | undefined;
|
|
4760
|
+
communicationPreferencesUpdatedAt?: string | null | undefined;
|
|
4761
|
+
};
|
|
4716
4762
|
organization: {
|
|
4717
4763
|
type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
|
|
4718
4764
|
status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
|
|
@@ -4743,7 +4789,8 @@ export declare const adminCoachViewAsSessionResponseSchema: z.ZodObject<{
|
|
|
4743
4789
|
} | null;
|
|
4744
4790
|
token: string;
|
|
4745
4791
|
adminPortalUrl: string;
|
|
4746
|
-
|
|
4792
|
+
}, {
|
|
4793
|
+
coach: {
|
|
4747
4794
|
id: string;
|
|
4748
4795
|
authUserId: string;
|
|
4749
4796
|
email: string;
|
|
@@ -4765,8 +4812,9 @@ export declare const adminCoachViewAsSessionResponseSchema: z.ZodObject<{
|
|
|
4765
4812
|
} | undefined;
|
|
4766
4813
|
communicationPreferencesUpdatedAt?: string | null | undefined;
|
|
4767
4814
|
};
|
|
4768
|
-
|
|
4769
|
-
|
|
4815
|
+
expiresAt: string;
|
|
4816
|
+
readOnly: boolean;
|
|
4817
|
+
owner: {
|
|
4770
4818
|
id: string;
|
|
4771
4819
|
authUserId: string;
|
|
4772
4820
|
email: string;
|
|
@@ -4788,8 +4836,6 @@ export declare const adminCoachViewAsSessionResponseSchema: z.ZodObject<{
|
|
|
4788
4836
|
} | undefined;
|
|
4789
4837
|
communicationPreferencesUpdatedAt?: string | null | undefined;
|
|
4790
4838
|
};
|
|
4791
|
-
expiresAt: string;
|
|
4792
|
-
readOnly: boolean;
|
|
4793
4839
|
organization: {
|
|
4794
4840
|
type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
|
|
4795
4841
|
status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
|
|
@@ -4820,28 +4866,6 @@ export declare const adminCoachViewAsSessionResponseSchema: z.ZodObject<{
|
|
|
4820
4866
|
} | null;
|
|
4821
4867
|
token: string;
|
|
4822
4868
|
adminPortalUrl: string;
|
|
4823
|
-
owner: {
|
|
4824
|
-
id: string;
|
|
4825
|
-
authUserId: string;
|
|
4826
|
-
email: string;
|
|
4827
|
-
name: string;
|
|
4828
|
-
defaultRole: "family" | "coach" | "superAdmin";
|
|
4829
|
-
roles: {
|
|
4830
|
-
family: boolean;
|
|
4831
|
-
coach: boolean;
|
|
4832
|
-
superAdmin: boolean;
|
|
4833
|
-
};
|
|
4834
|
-
createdAt: string;
|
|
4835
|
-
profileAssetId?: string | null | undefined;
|
|
4836
|
-
relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
|
|
4837
|
-
timeZone?: string | null | undefined;
|
|
4838
|
-
communicationPreferences?: {
|
|
4839
|
-
hintsTips: boolean;
|
|
4840
|
-
appUpdatesNewFeatures: boolean;
|
|
4841
|
-
promotionsOffers: boolean;
|
|
4842
|
-
} | undefined;
|
|
4843
|
-
communicationPreferencesUpdatedAt?: string | null | undefined;
|
|
4844
|
-
};
|
|
4845
4869
|
}>;
|
|
4846
4870
|
export declare const adminInviteCodeResponseSchema: z.ZodObject<{
|
|
4847
4871
|
inviteCode: z.ZodObject<{
|
|
@@ -5369,8 +5393,8 @@ export declare const adminFamilyListItemSchema: z.ZodObject<{
|
|
|
5369
5393
|
premiumGraceActive: z.ZodOptional<z.ZodBoolean>;
|
|
5370
5394
|
disabledReason: z.ZodEnum<["none", "notStarted", "expired", "revoked", "billingInactive", "suspendedOrganization", "noEntitlement"]>;
|
|
5371
5395
|
}, "strip", z.ZodTypeAny, {
|
|
5372
|
-
active: boolean;
|
|
5373
5396
|
disabledReason: "revoked" | "expired" | "none" | "notStarted" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
|
|
5397
|
+
active: boolean;
|
|
5374
5398
|
expiresAt?: string | null | undefined;
|
|
5375
5399
|
organizationId?: string | undefined;
|
|
5376
5400
|
source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
|
|
@@ -5381,8 +5405,8 @@ export declare const adminFamilyListItemSchema: z.ZodObject<{
|
|
|
5381
5405
|
premiumGraceDaysRemaining?: number | undefined;
|
|
5382
5406
|
premiumGraceActive?: boolean | undefined;
|
|
5383
5407
|
}, {
|
|
5384
|
-
active: boolean;
|
|
5385
5408
|
disabledReason: "revoked" | "expired" | "none" | "notStarted" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
|
|
5409
|
+
active: boolean;
|
|
5386
5410
|
expiresAt?: string | null | undefined;
|
|
5387
5411
|
organizationId?: string | undefined;
|
|
5388
5412
|
source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
|
|
@@ -5525,8 +5549,8 @@ export declare const adminFamilyListItemSchema: z.ZodObject<{
|
|
|
5525
5549
|
} | undefined;
|
|
5526
5550
|
} | null;
|
|
5527
5551
|
premium: {
|
|
5528
|
-
active: boolean;
|
|
5529
5552
|
disabledReason: "revoked" | "expired" | "none" | "notStarted" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
|
|
5553
|
+
active: boolean;
|
|
5530
5554
|
expiresAt?: string | null | undefined;
|
|
5531
5555
|
organizationId?: string | undefined;
|
|
5532
5556
|
source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
|
|
@@ -5649,8 +5673,8 @@ export declare const adminFamilyListItemSchema: z.ZodObject<{
|
|
|
5649
5673
|
} | undefined;
|
|
5650
5674
|
} | null;
|
|
5651
5675
|
premium: {
|
|
5652
|
-
active: boolean;
|
|
5653
5676
|
disabledReason: "revoked" | "expired" | "none" | "notStarted" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
|
|
5677
|
+
active: boolean;
|
|
5654
5678
|
expiresAt?: string | null | undefined;
|
|
5655
5679
|
organizationId?: string | undefined;
|
|
5656
5680
|
source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
|
|
@@ -6071,8 +6095,8 @@ export declare const adminFamiliesResponseSchema: z.ZodObject<{
|
|
|
6071
6095
|
premiumGraceActive: z.ZodOptional<z.ZodBoolean>;
|
|
6072
6096
|
disabledReason: z.ZodEnum<["none", "notStarted", "expired", "revoked", "billingInactive", "suspendedOrganization", "noEntitlement"]>;
|
|
6073
6097
|
}, "strip", z.ZodTypeAny, {
|
|
6074
|
-
active: boolean;
|
|
6075
6098
|
disabledReason: "revoked" | "expired" | "none" | "notStarted" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
|
|
6099
|
+
active: boolean;
|
|
6076
6100
|
expiresAt?: string | null | undefined;
|
|
6077
6101
|
organizationId?: string | undefined;
|
|
6078
6102
|
source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
|
|
@@ -6083,8 +6107,8 @@ export declare const adminFamiliesResponseSchema: z.ZodObject<{
|
|
|
6083
6107
|
premiumGraceDaysRemaining?: number | undefined;
|
|
6084
6108
|
premiumGraceActive?: boolean | undefined;
|
|
6085
6109
|
}, {
|
|
6086
|
-
active: boolean;
|
|
6087
6110
|
disabledReason: "revoked" | "expired" | "none" | "notStarted" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
|
|
6111
|
+
active: boolean;
|
|
6088
6112
|
expiresAt?: string | null | undefined;
|
|
6089
6113
|
organizationId?: string | undefined;
|
|
6090
6114
|
source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
|
|
@@ -6227,8 +6251,8 @@ export declare const adminFamiliesResponseSchema: z.ZodObject<{
|
|
|
6227
6251
|
} | undefined;
|
|
6228
6252
|
} | null;
|
|
6229
6253
|
premium: {
|
|
6230
|
-
active: boolean;
|
|
6231
6254
|
disabledReason: "revoked" | "expired" | "none" | "notStarted" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
|
|
6255
|
+
active: boolean;
|
|
6232
6256
|
expiresAt?: string | null | undefined;
|
|
6233
6257
|
organizationId?: string | undefined;
|
|
6234
6258
|
source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
|
|
@@ -6351,8 +6375,8 @@ export declare const adminFamiliesResponseSchema: z.ZodObject<{
|
|
|
6351
6375
|
} | undefined;
|
|
6352
6376
|
} | null;
|
|
6353
6377
|
premium: {
|
|
6354
|
-
active: boolean;
|
|
6355
6378
|
disabledReason: "revoked" | "expired" | "none" | "notStarted" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
|
|
6379
|
+
active: boolean;
|
|
6356
6380
|
expiresAt?: string | null | undefined;
|
|
6357
6381
|
organizationId?: string | undefined;
|
|
6358
6382
|
source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
|
|
@@ -6477,8 +6501,8 @@ export declare const adminFamiliesResponseSchema: z.ZodObject<{
|
|
|
6477
6501
|
} | undefined;
|
|
6478
6502
|
} | null;
|
|
6479
6503
|
premium: {
|
|
6480
|
-
active: boolean;
|
|
6481
6504
|
disabledReason: "revoked" | "expired" | "none" | "notStarted" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
|
|
6505
|
+
active: boolean;
|
|
6482
6506
|
expiresAt?: string | null | undefined;
|
|
6483
6507
|
organizationId?: string | undefined;
|
|
6484
6508
|
source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
|
|
@@ -6603,8 +6627,8 @@ export declare const adminFamiliesResponseSchema: z.ZodObject<{
|
|
|
6603
6627
|
} | undefined;
|
|
6604
6628
|
} | null;
|
|
6605
6629
|
premium: {
|
|
6606
|
-
active: boolean;
|
|
6607
6630
|
disabledReason: "revoked" | "expired" | "none" | "notStarted" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
|
|
6631
|
+
active: boolean;
|
|
6608
6632
|
expiresAt?: string | null | undefined;
|
|
6609
6633
|
organizationId?: string | undefined;
|
|
6610
6634
|
source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
|
|
@@ -7026,8 +7050,8 @@ export declare const adminFamilyResponseSchema: z.ZodObject<{
|
|
|
7026
7050
|
premiumGraceActive: z.ZodOptional<z.ZodBoolean>;
|
|
7027
7051
|
disabledReason: z.ZodEnum<["none", "notStarted", "expired", "revoked", "billingInactive", "suspendedOrganization", "noEntitlement"]>;
|
|
7028
7052
|
}, "strip", z.ZodTypeAny, {
|
|
7029
|
-
active: boolean;
|
|
7030
7053
|
disabledReason: "revoked" | "expired" | "none" | "notStarted" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
|
|
7054
|
+
active: boolean;
|
|
7031
7055
|
expiresAt?: string | null | undefined;
|
|
7032
7056
|
organizationId?: string | undefined;
|
|
7033
7057
|
source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
|
|
@@ -7038,8 +7062,8 @@ export declare const adminFamilyResponseSchema: z.ZodObject<{
|
|
|
7038
7062
|
premiumGraceDaysRemaining?: number | undefined;
|
|
7039
7063
|
premiumGraceActive?: boolean | undefined;
|
|
7040
7064
|
}, {
|
|
7041
|
-
active: boolean;
|
|
7042
7065
|
disabledReason: "revoked" | "expired" | "none" | "notStarted" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
|
|
7066
|
+
active: boolean;
|
|
7043
7067
|
expiresAt?: string | null | undefined;
|
|
7044
7068
|
organizationId?: string | undefined;
|
|
7045
7069
|
source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
|
|
@@ -7182,8 +7206,8 @@ export declare const adminFamilyResponseSchema: z.ZodObject<{
|
|
|
7182
7206
|
} | undefined;
|
|
7183
7207
|
} | null;
|
|
7184
7208
|
premium: {
|
|
7185
|
-
active: boolean;
|
|
7186
7209
|
disabledReason: "revoked" | "expired" | "none" | "notStarted" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
|
|
7210
|
+
active: boolean;
|
|
7187
7211
|
expiresAt?: string | null | undefined;
|
|
7188
7212
|
organizationId?: string | undefined;
|
|
7189
7213
|
source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
|
|
@@ -7306,8 +7330,8 @@ export declare const adminFamilyResponseSchema: z.ZodObject<{
|
|
|
7306
7330
|
} | undefined;
|
|
7307
7331
|
} | null;
|
|
7308
7332
|
premium: {
|
|
7309
|
-
active: boolean;
|
|
7310
7333
|
disabledReason: "revoked" | "expired" | "none" | "notStarted" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
|
|
7334
|
+
active: boolean;
|
|
7311
7335
|
expiresAt?: string | null | undefined;
|
|
7312
7336
|
organizationId?: string | undefined;
|
|
7313
7337
|
source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
|
|
@@ -7432,8 +7456,8 @@ export declare const adminFamilyResponseSchema: z.ZodObject<{
|
|
|
7432
7456
|
} | undefined;
|
|
7433
7457
|
} | null;
|
|
7434
7458
|
premium: {
|
|
7435
|
-
active: boolean;
|
|
7436
7459
|
disabledReason: "revoked" | "expired" | "none" | "notStarted" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
|
|
7460
|
+
active: boolean;
|
|
7437
7461
|
expiresAt?: string | null | undefined;
|
|
7438
7462
|
organizationId?: string | undefined;
|
|
7439
7463
|
source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
|
|
@@ -7558,8 +7582,8 @@ export declare const adminFamilyResponseSchema: z.ZodObject<{
|
|
|
7558
7582
|
} | undefined;
|
|
7559
7583
|
} | null;
|
|
7560
7584
|
premium: {
|
|
7561
|
-
active: boolean;
|
|
7562
7585
|
disabledReason: "revoked" | "expired" | "none" | "notStarted" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
|
|
7586
|
+
active: boolean;
|
|
7563
7587
|
expiresAt?: string | null | undefined;
|
|
7564
7588
|
organizationId?: string | undefined;
|
|
7565
7589
|
source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
|
|
@@ -7844,8 +7868,8 @@ export declare const adminFamilyAssignmentsResponseSchema: z.ZodObject<{
|
|
|
7844
7868
|
premiumGraceActive: z.ZodOptional<z.ZodBoolean>;
|
|
7845
7869
|
disabledReason: z.ZodEnum<["none", "notStarted", "expired", "revoked", "billingInactive", "suspendedOrganization", "noEntitlement"]>;
|
|
7846
7870
|
}, "strip", z.ZodTypeAny, {
|
|
7847
|
-
active: boolean;
|
|
7848
7871
|
disabledReason: "revoked" | "expired" | "none" | "notStarted" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
|
|
7872
|
+
active: boolean;
|
|
7849
7873
|
expiresAt?: string | null | undefined;
|
|
7850
7874
|
organizationId?: string | undefined;
|
|
7851
7875
|
source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
|
|
@@ -7856,8 +7880,8 @@ export declare const adminFamilyAssignmentsResponseSchema: z.ZodObject<{
|
|
|
7856
7880
|
premiumGraceDaysRemaining?: number | undefined;
|
|
7857
7881
|
premiumGraceActive?: boolean | undefined;
|
|
7858
7882
|
}, {
|
|
7859
|
-
active: boolean;
|
|
7860
7883
|
disabledReason: "revoked" | "expired" | "none" | "notStarted" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
|
|
7884
|
+
active: boolean;
|
|
7861
7885
|
expiresAt?: string | null | undefined;
|
|
7862
7886
|
organizationId?: string | undefined;
|
|
7863
7887
|
source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
|
|
@@ -7910,8 +7934,8 @@ export declare const adminFamilyAssignmentsResponseSchema: z.ZodObject<{
|
|
|
7910
7934
|
} | undefined;
|
|
7911
7935
|
};
|
|
7912
7936
|
premium: {
|
|
7913
|
-
active: boolean;
|
|
7914
7937
|
disabledReason: "revoked" | "expired" | "none" | "notStarted" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
|
|
7938
|
+
active: boolean;
|
|
7915
7939
|
expiresAt?: string | null | undefined;
|
|
7916
7940
|
organizationId?: string | undefined;
|
|
7917
7941
|
source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
|
|
@@ -7964,8 +7988,8 @@ export declare const adminFamilyAssignmentsResponseSchema: z.ZodObject<{
|
|
|
7964
7988
|
} | undefined;
|
|
7965
7989
|
};
|
|
7966
7990
|
premium: {
|
|
7967
|
-
active: boolean;
|
|
7968
7991
|
disabledReason: "revoked" | "expired" | "none" | "notStarted" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
|
|
7992
|
+
active: boolean;
|
|
7969
7993
|
expiresAt?: string | null | undefined;
|
|
7970
7994
|
organizationId?: string | undefined;
|
|
7971
7995
|
source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
|
|
@@ -8020,8 +8044,8 @@ export declare const adminFamilyAssignmentsResponseSchema: z.ZodObject<{
|
|
|
8020
8044
|
} | undefined;
|
|
8021
8045
|
};
|
|
8022
8046
|
premium: {
|
|
8023
|
-
active: boolean;
|
|
8024
8047
|
disabledReason: "revoked" | "expired" | "none" | "notStarted" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
|
|
8048
|
+
active: boolean;
|
|
8025
8049
|
expiresAt?: string | null | undefined;
|
|
8026
8050
|
organizationId?: string | undefined;
|
|
8027
8051
|
source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
|
|
@@ -8076,8 +8100,8 @@ export declare const adminFamilyAssignmentsResponseSchema: z.ZodObject<{
|
|
|
8076
8100
|
} | undefined;
|
|
8077
8101
|
};
|
|
8078
8102
|
premium: {
|
|
8079
|
-
active: boolean;
|
|
8080
8103
|
disabledReason: "revoked" | "expired" | "none" | "notStarted" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
|
|
8104
|
+
active: boolean;
|
|
8081
8105
|
expiresAt?: string | null | undefined;
|
|
8082
8106
|
organizationId?: string | undefined;
|
|
8083
8107
|
source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
|
|
@@ -9388,8 +9412,8 @@ export declare const adminBillingFamilyRowSchema: z.ZodObject<{
|
|
|
9388
9412
|
premiumGraceActive: z.ZodOptional<z.ZodBoolean>;
|
|
9389
9413
|
disabledReason: z.ZodEnum<["none", "notStarted", "expired", "revoked", "billingInactive", "suspendedOrganization", "noEntitlement"]>;
|
|
9390
9414
|
}, "strip", z.ZodTypeAny, {
|
|
9391
|
-
active: boolean;
|
|
9392
9415
|
disabledReason: "revoked" | "expired" | "none" | "notStarted" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
|
|
9416
|
+
active: boolean;
|
|
9393
9417
|
expiresAt?: string | null | undefined;
|
|
9394
9418
|
organizationId?: string | undefined;
|
|
9395
9419
|
source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
|
|
@@ -9400,8 +9424,8 @@ export declare const adminBillingFamilyRowSchema: z.ZodObject<{
|
|
|
9400
9424
|
premiumGraceDaysRemaining?: number | undefined;
|
|
9401
9425
|
premiumGraceActive?: boolean | undefined;
|
|
9402
9426
|
}, {
|
|
9403
|
-
active: boolean;
|
|
9404
9427
|
disabledReason: "revoked" | "expired" | "none" | "notStarted" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
|
|
9428
|
+
active: boolean;
|
|
9405
9429
|
expiresAt?: string | null | undefined;
|
|
9406
9430
|
organizationId?: string | undefined;
|
|
9407
9431
|
source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
|
|
@@ -9565,8 +9589,8 @@ export declare const adminBillingFamilyRowSchema: z.ZodObject<{
|
|
|
9565
9589
|
} | undefined;
|
|
9566
9590
|
} | null;
|
|
9567
9591
|
premium: {
|
|
9568
|
-
active: boolean;
|
|
9569
9592
|
disabledReason: "revoked" | "expired" | "none" | "notStarted" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
|
|
9593
|
+
active: boolean;
|
|
9570
9594
|
expiresAt?: string | null | undefined;
|
|
9571
9595
|
organizationId?: string | undefined;
|
|
9572
9596
|
source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
|
|
@@ -9681,8 +9705,8 @@ export declare const adminBillingFamilyRowSchema: z.ZodObject<{
|
|
|
9681
9705
|
} | undefined;
|
|
9682
9706
|
} | null;
|
|
9683
9707
|
premium: {
|
|
9684
|
-
active: boolean;
|
|
9685
9708
|
disabledReason: "revoked" | "expired" | "none" | "notStarted" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
|
|
9709
|
+
active: boolean;
|
|
9686
9710
|
expiresAt?: string | null | undefined;
|
|
9687
9711
|
organizationId?: string | undefined;
|
|
9688
9712
|
source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
|
|
@@ -11180,8 +11204,8 @@ export declare const adminBillingSummaryResponseSchema: z.ZodObject<{
|
|
|
11180
11204
|
premiumGraceActive: z.ZodOptional<z.ZodBoolean>;
|
|
11181
11205
|
disabledReason: z.ZodEnum<["none", "notStarted", "expired", "revoked", "billingInactive", "suspendedOrganization", "noEntitlement"]>;
|
|
11182
11206
|
}, "strip", z.ZodTypeAny, {
|
|
11183
|
-
active: boolean;
|
|
11184
11207
|
disabledReason: "revoked" | "expired" | "none" | "notStarted" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
|
|
11208
|
+
active: boolean;
|
|
11185
11209
|
expiresAt?: string | null | undefined;
|
|
11186
11210
|
organizationId?: string | undefined;
|
|
11187
11211
|
source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
|
|
@@ -11192,8 +11216,8 @@ export declare const adminBillingSummaryResponseSchema: z.ZodObject<{
|
|
|
11192
11216
|
premiumGraceDaysRemaining?: number | undefined;
|
|
11193
11217
|
premiumGraceActive?: boolean | undefined;
|
|
11194
11218
|
}, {
|
|
11195
|
-
active: boolean;
|
|
11196
11219
|
disabledReason: "revoked" | "expired" | "none" | "notStarted" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
|
|
11220
|
+
active: boolean;
|
|
11197
11221
|
expiresAt?: string | null | undefined;
|
|
11198
11222
|
organizationId?: string | undefined;
|
|
11199
11223
|
source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
|
|
@@ -11357,8 +11381,8 @@ export declare const adminBillingSummaryResponseSchema: z.ZodObject<{
|
|
|
11357
11381
|
} | undefined;
|
|
11358
11382
|
} | null;
|
|
11359
11383
|
premium: {
|
|
11360
|
-
active: boolean;
|
|
11361
11384
|
disabledReason: "revoked" | "expired" | "none" | "notStarted" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
|
|
11385
|
+
active: boolean;
|
|
11362
11386
|
expiresAt?: string | null | undefined;
|
|
11363
11387
|
organizationId?: string | undefined;
|
|
11364
11388
|
source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
|
|
@@ -11473,8 +11497,8 @@ export declare const adminBillingSummaryResponseSchema: z.ZodObject<{
|
|
|
11473
11497
|
} | undefined;
|
|
11474
11498
|
} | null;
|
|
11475
11499
|
premium: {
|
|
11476
|
-
active: boolean;
|
|
11477
11500
|
disabledReason: "revoked" | "expired" | "none" | "notStarted" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
|
|
11501
|
+
active: boolean;
|
|
11478
11502
|
expiresAt?: string | null | undefined;
|
|
11479
11503
|
organizationId?: string | undefined;
|
|
11480
11504
|
source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
|
|
@@ -11593,8 +11617,8 @@ export declare const adminBillingSummaryResponseSchema: z.ZodObject<{
|
|
|
11593
11617
|
} | undefined;
|
|
11594
11618
|
} | null;
|
|
11595
11619
|
premium: {
|
|
11596
|
-
active: boolean;
|
|
11597
11620
|
disabledReason: "revoked" | "expired" | "none" | "notStarted" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
|
|
11621
|
+
active: boolean;
|
|
11598
11622
|
expiresAt?: string | null | undefined;
|
|
11599
11623
|
organizationId?: string | undefined;
|
|
11600
11624
|
source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
|
|
@@ -11759,8 +11783,8 @@ export declare const adminBillingSummaryResponseSchema: z.ZodObject<{
|
|
|
11759
11783
|
} | undefined;
|
|
11760
11784
|
} | null;
|
|
11761
11785
|
premium: {
|
|
11762
|
-
active: boolean;
|
|
11763
11786
|
disabledReason: "revoked" | "expired" | "none" | "notStarted" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
|
|
11787
|
+
active: boolean;
|
|
11764
11788
|
expiresAt?: string | null | undefined;
|
|
11765
11789
|
organizationId?: string | undefined;
|
|
11766
11790
|
source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
|
|
@@ -11928,8 +11952,8 @@ export declare const adminBillingSummaryResponseSchema: z.ZodObject<{
|
|
|
11928
11952
|
} | undefined;
|
|
11929
11953
|
} | null;
|
|
11930
11954
|
premium: {
|
|
11931
|
-
active: boolean;
|
|
11932
11955
|
disabledReason: "revoked" | "expired" | "none" | "notStarted" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
|
|
11956
|
+
active: boolean;
|
|
11933
11957
|
expiresAt?: string | null | undefined;
|
|
11934
11958
|
organizationId?: string | undefined;
|
|
11935
11959
|
source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
|
|
@@ -12241,8 +12265,8 @@ export declare const adminBillingSummaryResponseSchema: z.ZodObject<{
|
|
|
12241
12265
|
} | undefined;
|
|
12242
12266
|
} | null;
|
|
12243
12267
|
premium: {
|
|
12244
|
-
active: boolean;
|
|
12245
12268
|
disabledReason: "revoked" | "expired" | "none" | "notStarted" | "billingInactive" | "suspendedOrganization" | "noEntitlement";
|
|
12269
|
+
active: boolean;
|
|
12246
12270
|
expiresAt?: string | null | undefined;
|
|
12247
12271
|
organizationId?: string | undefined;
|
|
12248
12272
|
source?: "platformPractice" | "directSubscription" | "coachInvite" | "manualComp" | undefined;
|
package/dist/admin.js
CHANGED
|
@@ -49,12 +49,15 @@ export const adminActiveTimerCountsSchema = z.object({
|
|
|
49
49
|
total: z.number().int().nonnegative(),
|
|
50
50
|
sleep: z.number().int().nonnegative(),
|
|
51
51
|
breastfeed: z.number().int().nonnegative(),
|
|
52
|
-
pumping: z.number().int().nonnegative()
|
|
52
|
+
pumping: z.number().int().nonnegative(),
|
|
53
|
+
stale: z.number().int().nonnegative()
|
|
53
54
|
});
|
|
54
55
|
export const adminActiveTimerSchema = z.object({
|
|
55
56
|
id: idSchema,
|
|
56
57
|
activityType: timerActivityTypeSchema,
|
|
57
58
|
startedAt: isoDateStringSchema,
|
|
59
|
+
staleAt: isoDateStringSchema,
|
|
60
|
+
isStale: z.boolean(),
|
|
58
61
|
timeZone: ianaTimeZoneSchema.nullable(),
|
|
59
62
|
localDate: z.string().regex(/^\d{4}-\d{2}-\d{2}$/).nullable(),
|
|
60
63
|
updatedAt: isoDateStringSchema,
|