@nikthegeek/dreamsforlittles-shared 0.13.0 → 0.15.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.
- package/dist/admin.d.ts +293 -0
- package/dist/admin.js +11 -1
- package/dist/admin.js.map +1 -1
- package/dist/api.d.ts +5 -5
- package/dist/booking-system.d.ts +1097 -95
- package/dist/booking-system.js +195 -7
- package/dist/booking-system.js.map +1 -1
- package/dist/booking-system.test.js +149 -2
- package/dist/booking-system.test.js.map +1 -1
- package/dist/calendar-connections.d.ts +2 -2
- package/dist/client-notices.d.ts +77 -77
- package/dist/coach-family-chat.d.ts +16 -16
- package/dist/coach-growth.d.ts +12 -12
- package/dist/coach.d.ts +42 -42
- package/dist/errors.d.ts +10 -4
- package/dist/errors.js +18 -0
- package/dist/errors.js.map +1 -1
- package/dist/family-growth.d.ts +24 -24
- package/dist/family-profile-artifacts.d.ts +210 -99
- package/dist/family-profile-artifacts.js +4 -1
- package/dist/family-profile-artifacts.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/lead-management.d.ts +455 -120
- package/dist/lead-management.js +115 -8
- package/dist/lead-management.js.map +1 -1
- package/dist/lead-management.test.js +78 -1
- package/dist/lead-management.test.js.map +1 -1
- package/dist/product-analytics.d.ts +31 -31
- package/dist/product-analytics.js +3 -0
- package/dist/product-analytics.js.map +1 -1
- package/dist/questionnaire-imports.d.ts +430 -0
- package/dist/questionnaire-imports.js +67 -0
- package/dist/questionnaire-imports.js.map +1 -0
- package/dist/questionnaire-imports.test.d.ts +1 -0
- package/dist/questionnaire-imports.test.js +112 -0
- package/dist/questionnaire-imports.test.js.map +1 -0
- package/dist/questionnaire-photos.d.ts +370 -0
- package/dist/questionnaire-photos.js +65 -0
- package/dist/questionnaire-photos.js.map +1 -0
- package/dist/questionnaire-photos.test.d.ts +1 -0
- package/dist/questionnaire-photos.test.js +78 -0
- package/dist/questionnaire-photos.test.js.map +1 -0
- package/package.json +1 -1
package/dist/admin.d.ts
CHANGED
|
@@ -4383,6 +4383,28 @@ export declare const adminCoachSubscriptionResponseSchema: z.ZodObject<{
|
|
|
4383
4383
|
planId?: string | null | undefined;
|
|
4384
4384
|
};
|
|
4385
4385
|
}>;
|
|
4386
|
+
export declare const adminCoachMembershipSchema: z.ZodObject<{
|
|
4387
|
+
hasAccess: z.ZodBoolean;
|
|
4388
|
+
sourcePlanId: z.ZodNullable<z.ZodString>;
|
|
4389
|
+
resolvedPlanId: z.ZodNullable<z.ZodEnum<["coach-founding", "coach-standard", "coach-premium"]>>;
|
|
4390
|
+
tier: z.ZodNullable<z.ZodEnum<["standard", "premium"]>>;
|
|
4391
|
+
cohort: z.ZodNullable<z.ZodEnum<["founding", "public"]>>;
|
|
4392
|
+
isFoundingMember: z.ZodBoolean;
|
|
4393
|
+
}, "strict", z.ZodTypeAny, {
|
|
4394
|
+
hasAccess: boolean;
|
|
4395
|
+
sourcePlanId: string | null;
|
|
4396
|
+
resolvedPlanId: "coach-founding" | "coach-standard" | "coach-premium" | null;
|
|
4397
|
+
tier: "premium" | "standard" | null;
|
|
4398
|
+
cohort: "founding" | "public" | null;
|
|
4399
|
+
isFoundingMember: boolean;
|
|
4400
|
+
}, {
|
|
4401
|
+
hasAccess: boolean;
|
|
4402
|
+
sourcePlanId: string | null;
|
|
4403
|
+
resolvedPlanId: "coach-founding" | "coach-standard" | "coach-premium" | null;
|
|
4404
|
+
tier: "premium" | "standard" | null;
|
|
4405
|
+
cohort: "founding" | "public" | null;
|
|
4406
|
+
isFoundingMember: boolean;
|
|
4407
|
+
}>;
|
|
4386
4408
|
export declare const adminCoachListItemSchema: z.ZodObject<{
|
|
4387
4409
|
coach: z.ZodObject<{
|
|
4388
4410
|
id: z.ZodString;
|
|
@@ -4720,6 +4742,28 @@ export declare const adminCoachListItemSchema: z.ZodObject<{
|
|
|
4720
4742
|
submittedSubscriptionCadence: z.ZodOptional<z.ZodNullable<z.ZodEnum<["monthly", "sixMonthly", "yearly"]>>>;
|
|
4721
4743
|
submittedSubscriptionCurrentPeriodEndsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4722
4744
|
submittedSubscriptionScheduledCancellationAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4745
|
+
membership: z.ZodObject<{
|
|
4746
|
+
hasAccess: z.ZodBoolean;
|
|
4747
|
+
sourcePlanId: z.ZodNullable<z.ZodString>;
|
|
4748
|
+
resolvedPlanId: z.ZodNullable<z.ZodEnum<["coach-founding", "coach-standard", "coach-premium"]>>;
|
|
4749
|
+
tier: z.ZodNullable<z.ZodEnum<["standard", "premium"]>>;
|
|
4750
|
+
cohort: z.ZodNullable<z.ZodEnum<["founding", "public"]>>;
|
|
4751
|
+
isFoundingMember: z.ZodBoolean;
|
|
4752
|
+
}, "strict", z.ZodTypeAny, {
|
|
4753
|
+
hasAccess: boolean;
|
|
4754
|
+
sourcePlanId: string | null;
|
|
4755
|
+
resolvedPlanId: "coach-founding" | "coach-standard" | "coach-premium" | null;
|
|
4756
|
+
tier: "premium" | "standard" | null;
|
|
4757
|
+
cohort: "founding" | "public" | null;
|
|
4758
|
+
isFoundingMember: boolean;
|
|
4759
|
+
}, {
|
|
4760
|
+
hasAccess: boolean;
|
|
4761
|
+
sourcePlanId: string | null;
|
|
4762
|
+
resolvedPlanId: "coach-founding" | "coach-standard" | "coach-premium" | null;
|
|
4763
|
+
tier: "premium" | "standard" | null;
|
|
4764
|
+
cohort: "founding" | "public" | null;
|
|
4765
|
+
isFoundingMember: boolean;
|
|
4766
|
+
}>;
|
|
4723
4767
|
lastUsedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4724
4768
|
}, "strip", z.ZodTypeAny, {
|
|
4725
4769
|
coach: {
|
|
@@ -4786,6 +4830,14 @@ export declare const adminCoachListItemSchema: z.ZodObject<{
|
|
|
4786
4830
|
} | undefined;
|
|
4787
4831
|
};
|
|
4788
4832
|
submittedSubscriptionStatus: "active" | "trialing" | "pastDue" | "suspended" | "canceled" | "notSubscribed";
|
|
4833
|
+
membership: {
|
|
4834
|
+
hasAccess: boolean;
|
|
4835
|
+
sourcePlanId: string | null;
|
|
4836
|
+
resolvedPlanId: "coach-founding" | "coach-standard" | "coach-premium" | null;
|
|
4837
|
+
tier: "premium" | "standard" | null;
|
|
4838
|
+
cohort: "founding" | "public" | null;
|
|
4839
|
+
isFoundingMember: boolean;
|
|
4840
|
+
};
|
|
4789
4841
|
submittedSubscriptionCadence?: "monthly" | "sixMonthly" | "yearly" | null | undefined;
|
|
4790
4842
|
submittedSubscriptionCurrentPeriodEndsAt?: string | null | undefined;
|
|
4791
4843
|
submittedSubscriptionScheduledCancellationAt?: string | null | undefined;
|
|
@@ -4855,6 +4907,14 @@ export declare const adminCoachListItemSchema: z.ZodObject<{
|
|
|
4855
4907
|
} | undefined;
|
|
4856
4908
|
};
|
|
4857
4909
|
submittedSubscriptionStatus: "active" | "trialing" | "pastDue" | "suspended" | "canceled" | "notSubscribed";
|
|
4910
|
+
membership: {
|
|
4911
|
+
hasAccess: boolean;
|
|
4912
|
+
sourcePlanId: string | null;
|
|
4913
|
+
resolvedPlanId: "coach-founding" | "coach-standard" | "coach-premium" | null;
|
|
4914
|
+
tier: "premium" | "standard" | null;
|
|
4915
|
+
cohort: "founding" | "public" | null;
|
|
4916
|
+
isFoundingMember: boolean;
|
|
4917
|
+
};
|
|
4858
4918
|
submittedSubscriptionCadence?: "monthly" | "sixMonthly" | "yearly" | null | undefined;
|
|
4859
4919
|
submittedSubscriptionCurrentPeriodEndsAt?: string | null | undefined;
|
|
4860
4920
|
submittedSubscriptionScheduledCancellationAt?: string | null | undefined;
|
|
@@ -5198,6 +5258,28 @@ export declare const adminCoachesResponseSchema: z.ZodObject<{
|
|
|
5198
5258
|
submittedSubscriptionCadence: z.ZodOptional<z.ZodNullable<z.ZodEnum<["monthly", "sixMonthly", "yearly"]>>>;
|
|
5199
5259
|
submittedSubscriptionCurrentPeriodEndsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5200
5260
|
submittedSubscriptionScheduledCancellationAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5261
|
+
membership: z.ZodObject<{
|
|
5262
|
+
hasAccess: z.ZodBoolean;
|
|
5263
|
+
sourcePlanId: z.ZodNullable<z.ZodString>;
|
|
5264
|
+
resolvedPlanId: z.ZodNullable<z.ZodEnum<["coach-founding", "coach-standard", "coach-premium"]>>;
|
|
5265
|
+
tier: z.ZodNullable<z.ZodEnum<["standard", "premium"]>>;
|
|
5266
|
+
cohort: z.ZodNullable<z.ZodEnum<["founding", "public"]>>;
|
|
5267
|
+
isFoundingMember: z.ZodBoolean;
|
|
5268
|
+
}, "strict", z.ZodTypeAny, {
|
|
5269
|
+
hasAccess: boolean;
|
|
5270
|
+
sourcePlanId: string | null;
|
|
5271
|
+
resolvedPlanId: "coach-founding" | "coach-standard" | "coach-premium" | null;
|
|
5272
|
+
tier: "premium" | "standard" | null;
|
|
5273
|
+
cohort: "founding" | "public" | null;
|
|
5274
|
+
isFoundingMember: boolean;
|
|
5275
|
+
}, {
|
|
5276
|
+
hasAccess: boolean;
|
|
5277
|
+
sourcePlanId: string | null;
|
|
5278
|
+
resolvedPlanId: "coach-founding" | "coach-standard" | "coach-premium" | null;
|
|
5279
|
+
tier: "premium" | "standard" | null;
|
|
5280
|
+
cohort: "founding" | "public" | null;
|
|
5281
|
+
isFoundingMember: boolean;
|
|
5282
|
+
}>;
|
|
5201
5283
|
lastUsedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5202
5284
|
}, "strip", z.ZodTypeAny, {
|
|
5203
5285
|
coach: {
|
|
@@ -5264,6 +5346,14 @@ export declare const adminCoachesResponseSchema: z.ZodObject<{
|
|
|
5264
5346
|
} | undefined;
|
|
5265
5347
|
};
|
|
5266
5348
|
submittedSubscriptionStatus: "active" | "trialing" | "pastDue" | "suspended" | "canceled" | "notSubscribed";
|
|
5349
|
+
membership: {
|
|
5350
|
+
hasAccess: boolean;
|
|
5351
|
+
sourcePlanId: string | null;
|
|
5352
|
+
resolvedPlanId: "coach-founding" | "coach-standard" | "coach-premium" | null;
|
|
5353
|
+
tier: "premium" | "standard" | null;
|
|
5354
|
+
cohort: "founding" | "public" | null;
|
|
5355
|
+
isFoundingMember: boolean;
|
|
5356
|
+
};
|
|
5267
5357
|
submittedSubscriptionCadence?: "monthly" | "sixMonthly" | "yearly" | null | undefined;
|
|
5268
5358
|
submittedSubscriptionCurrentPeriodEndsAt?: string | null | undefined;
|
|
5269
5359
|
submittedSubscriptionScheduledCancellationAt?: string | null | undefined;
|
|
@@ -5333,6 +5423,14 @@ export declare const adminCoachesResponseSchema: z.ZodObject<{
|
|
|
5333
5423
|
} | undefined;
|
|
5334
5424
|
};
|
|
5335
5425
|
submittedSubscriptionStatus: "active" | "trialing" | "pastDue" | "suspended" | "canceled" | "notSubscribed";
|
|
5426
|
+
membership: {
|
|
5427
|
+
hasAccess: boolean;
|
|
5428
|
+
sourcePlanId: string | null;
|
|
5429
|
+
resolvedPlanId: "coach-founding" | "coach-standard" | "coach-premium" | null;
|
|
5430
|
+
tier: "premium" | "standard" | null;
|
|
5431
|
+
cohort: "founding" | "public" | null;
|
|
5432
|
+
isFoundingMember: boolean;
|
|
5433
|
+
};
|
|
5336
5434
|
submittedSubscriptionCadence?: "monthly" | "sixMonthly" | "yearly" | null | undefined;
|
|
5337
5435
|
submittedSubscriptionCurrentPeriodEndsAt?: string | null | undefined;
|
|
5338
5436
|
submittedSubscriptionScheduledCancellationAt?: string | null | undefined;
|
|
@@ -5404,6 +5502,14 @@ export declare const adminCoachesResponseSchema: z.ZodObject<{
|
|
|
5404
5502
|
} | undefined;
|
|
5405
5503
|
};
|
|
5406
5504
|
submittedSubscriptionStatus: "active" | "trialing" | "pastDue" | "suspended" | "canceled" | "notSubscribed";
|
|
5505
|
+
membership: {
|
|
5506
|
+
hasAccess: boolean;
|
|
5507
|
+
sourcePlanId: string | null;
|
|
5508
|
+
resolvedPlanId: "coach-founding" | "coach-standard" | "coach-premium" | null;
|
|
5509
|
+
tier: "premium" | "standard" | null;
|
|
5510
|
+
cohort: "founding" | "public" | null;
|
|
5511
|
+
isFoundingMember: boolean;
|
|
5512
|
+
};
|
|
5407
5513
|
submittedSubscriptionCadence?: "monthly" | "sixMonthly" | "yearly" | null | undefined;
|
|
5408
5514
|
submittedSubscriptionCurrentPeriodEndsAt?: string | null | undefined;
|
|
5409
5515
|
submittedSubscriptionScheduledCancellationAt?: string | null | undefined;
|
|
@@ -5475,6 +5581,14 @@ export declare const adminCoachesResponseSchema: z.ZodObject<{
|
|
|
5475
5581
|
} | undefined;
|
|
5476
5582
|
};
|
|
5477
5583
|
submittedSubscriptionStatus: "active" | "trialing" | "pastDue" | "suspended" | "canceled" | "notSubscribed";
|
|
5584
|
+
membership: {
|
|
5585
|
+
hasAccess: boolean;
|
|
5586
|
+
sourcePlanId: string | null;
|
|
5587
|
+
resolvedPlanId: "coach-founding" | "coach-standard" | "coach-premium" | null;
|
|
5588
|
+
tier: "premium" | "standard" | null;
|
|
5589
|
+
cohort: "founding" | "public" | null;
|
|
5590
|
+
isFoundingMember: boolean;
|
|
5591
|
+
};
|
|
5478
5592
|
submittedSubscriptionCadence?: "monthly" | "sixMonthly" | "yearly" | null | undefined;
|
|
5479
5593
|
submittedSubscriptionCurrentPeriodEndsAt?: string | null | undefined;
|
|
5480
5594
|
submittedSubscriptionScheduledCancellationAt?: string | null | undefined;
|
|
@@ -10057,6 +10171,28 @@ export declare const adminBillingCoachSubscriptionSchema: z.ZodObject<{
|
|
|
10057
10171
|
scheduledCancellationAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10058
10172
|
statusReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10059
10173
|
planId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10174
|
+
membership: z.ZodObject<{
|
|
10175
|
+
hasAccess: z.ZodBoolean;
|
|
10176
|
+
sourcePlanId: z.ZodNullable<z.ZodString>;
|
|
10177
|
+
resolvedPlanId: z.ZodNullable<z.ZodEnum<["coach-founding", "coach-standard", "coach-premium"]>>;
|
|
10178
|
+
tier: z.ZodNullable<z.ZodEnum<["standard", "premium"]>>;
|
|
10179
|
+
cohort: z.ZodNullable<z.ZodEnum<["founding", "public"]>>;
|
|
10180
|
+
isFoundingMember: z.ZodBoolean;
|
|
10181
|
+
}, "strict", z.ZodTypeAny, {
|
|
10182
|
+
hasAccess: boolean;
|
|
10183
|
+
sourcePlanId: string | null;
|
|
10184
|
+
resolvedPlanId: "coach-founding" | "coach-standard" | "coach-premium" | null;
|
|
10185
|
+
tier: "premium" | "standard" | null;
|
|
10186
|
+
cohort: "founding" | "public" | null;
|
|
10187
|
+
isFoundingMember: boolean;
|
|
10188
|
+
}, {
|
|
10189
|
+
hasAccess: boolean;
|
|
10190
|
+
sourcePlanId: string | null;
|
|
10191
|
+
resolvedPlanId: "coach-founding" | "coach-standard" | "coach-premium" | null;
|
|
10192
|
+
tier: "premium" | "standard" | null;
|
|
10193
|
+
cohort: "founding" | "public" | null;
|
|
10194
|
+
isFoundingMember: boolean;
|
|
10195
|
+
}>;
|
|
10060
10196
|
cadence: z.ZodOptional<z.ZodNullable<z.ZodEnum<["monthly", "sixMonthly", "yearly"]>>>;
|
|
10061
10197
|
updatedAt: z.ZodString;
|
|
10062
10198
|
estimatedMrrPence: z.ZodNullable<z.ZodNumber>;
|
|
@@ -10143,6 +10279,14 @@ export declare const adminBillingCoachSubscriptionSchema: z.ZodObject<{
|
|
|
10143
10279
|
updatedAt: string;
|
|
10144
10280
|
maxFamilies: number;
|
|
10145
10281
|
provider: "manual" | "stripe";
|
|
10282
|
+
membership: {
|
|
10283
|
+
hasAccess: boolean;
|
|
10284
|
+
sourcePlanId: string | null;
|
|
10285
|
+
resolvedPlanId: "coach-founding" | "coach-standard" | "coach-premium" | null;
|
|
10286
|
+
tier: "premium" | "standard" | null;
|
|
10287
|
+
cohort: "founding" | "public" | null;
|
|
10288
|
+
isFoundingMember: boolean;
|
|
10289
|
+
};
|
|
10146
10290
|
estimatedMrrPence: number | null;
|
|
10147
10291
|
introductoryOffer: {
|
|
10148
10292
|
status: "active" | "ended" | "refunded";
|
|
@@ -10182,6 +10326,14 @@ export declare const adminBillingCoachSubscriptionSchema: z.ZodObject<{
|
|
|
10182
10326
|
updatedAt: string;
|
|
10183
10327
|
maxFamilies: number;
|
|
10184
10328
|
provider: "manual" | "stripe";
|
|
10329
|
+
membership: {
|
|
10330
|
+
hasAccess: boolean;
|
|
10331
|
+
sourcePlanId: string | null;
|
|
10332
|
+
resolvedPlanId: "coach-founding" | "coach-standard" | "coach-premium" | null;
|
|
10333
|
+
tier: "premium" | "standard" | null;
|
|
10334
|
+
cohort: "founding" | "public" | null;
|
|
10335
|
+
isFoundingMember: boolean;
|
|
10336
|
+
};
|
|
10185
10337
|
estimatedMrrPence: number | null;
|
|
10186
10338
|
introductoryOffer: {
|
|
10187
10339
|
status: "active" | "ended" | "refunded";
|
|
@@ -10614,6 +10766,28 @@ export declare const adminBillingCoachRowSchema: z.ZodObject<{
|
|
|
10614
10766
|
scheduledCancellationAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10615
10767
|
statusReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10616
10768
|
planId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10769
|
+
membership: z.ZodObject<{
|
|
10770
|
+
hasAccess: z.ZodBoolean;
|
|
10771
|
+
sourcePlanId: z.ZodNullable<z.ZodString>;
|
|
10772
|
+
resolvedPlanId: z.ZodNullable<z.ZodEnum<["coach-founding", "coach-standard", "coach-premium"]>>;
|
|
10773
|
+
tier: z.ZodNullable<z.ZodEnum<["standard", "premium"]>>;
|
|
10774
|
+
cohort: z.ZodNullable<z.ZodEnum<["founding", "public"]>>;
|
|
10775
|
+
isFoundingMember: z.ZodBoolean;
|
|
10776
|
+
}, "strict", z.ZodTypeAny, {
|
|
10777
|
+
hasAccess: boolean;
|
|
10778
|
+
sourcePlanId: string | null;
|
|
10779
|
+
resolvedPlanId: "coach-founding" | "coach-standard" | "coach-premium" | null;
|
|
10780
|
+
tier: "premium" | "standard" | null;
|
|
10781
|
+
cohort: "founding" | "public" | null;
|
|
10782
|
+
isFoundingMember: boolean;
|
|
10783
|
+
}, {
|
|
10784
|
+
hasAccess: boolean;
|
|
10785
|
+
sourcePlanId: string | null;
|
|
10786
|
+
resolvedPlanId: "coach-founding" | "coach-standard" | "coach-premium" | null;
|
|
10787
|
+
tier: "premium" | "standard" | null;
|
|
10788
|
+
cohort: "founding" | "public" | null;
|
|
10789
|
+
isFoundingMember: boolean;
|
|
10790
|
+
}>;
|
|
10617
10791
|
cadence: z.ZodOptional<z.ZodNullable<z.ZodEnum<["monthly", "sixMonthly", "yearly"]>>>;
|
|
10618
10792
|
updatedAt: z.ZodString;
|
|
10619
10793
|
estimatedMrrPence: z.ZodNullable<z.ZodNumber>;
|
|
@@ -10700,6 +10874,14 @@ export declare const adminBillingCoachRowSchema: z.ZodObject<{
|
|
|
10700
10874
|
updatedAt: string;
|
|
10701
10875
|
maxFamilies: number;
|
|
10702
10876
|
provider: "manual" | "stripe";
|
|
10877
|
+
membership: {
|
|
10878
|
+
hasAccess: boolean;
|
|
10879
|
+
sourcePlanId: string | null;
|
|
10880
|
+
resolvedPlanId: "coach-founding" | "coach-standard" | "coach-premium" | null;
|
|
10881
|
+
tier: "premium" | "standard" | null;
|
|
10882
|
+
cohort: "founding" | "public" | null;
|
|
10883
|
+
isFoundingMember: boolean;
|
|
10884
|
+
};
|
|
10703
10885
|
estimatedMrrPence: number | null;
|
|
10704
10886
|
introductoryOffer: {
|
|
10705
10887
|
status: "active" | "ended" | "refunded";
|
|
@@ -10739,6 +10921,14 @@ export declare const adminBillingCoachRowSchema: z.ZodObject<{
|
|
|
10739
10921
|
updatedAt: string;
|
|
10740
10922
|
maxFamilies: number;
|
|
10741
10923
|
provider: "manual" | "stripe";
|
|
10924
|
+
membership: {
|
|
10925
|
+
hasAccess: boolean;
|
|
10926
|
+
sourcePlanId: string | null;
|
|
10927
|
+
resolvedPlanId: "coach-founding" | "coach-standard" | "coach-premium" | null;
|
|
10928
|
+
tier: "premium" | "standard" | null;
|
|
10929
|
+
cohort: "founding" | "public" | null;
|
|
10930
|
+
isFoundingMember: boolean;
|
|
10931
|
+
};
|
|
10742
10932
|
estimatedMrrPence: number | null;
|
|
10743
10933
|
introductoryOffer: {
|
|
10744
10934
|
status: "active" | "ended" | "refunded";
|
|
@@ -10845,6 +11035,14 @@ export declare const adminBillingCoachRowSchema: z.ZodObject<{
|
|
|
10845
11035
|
updatedAt: string;
|
|
10846
11036
|
maxFamilies: number;
|
|
10847
11037
|
provider: "manual" | "stripe";
|
|
11038
|
+
membership: {
|
|
11039
|
+
hasAccess: boolean;
|
|
11040
|
+
sourcePlanId: string | null;
|
|
11041
|
+
resolvedPlanId: "coach-founding" | "coach-standard" | "coach-premium" | null;
|
|
11042
|
+
tier: "premium" | "standard" | null;
|
|
11043
|
+
cohort: "founding" | "public" | null;
|
|
11044
|
+
isFoundingMember: boolean;
|
|
11045
|
+
};
|
|
10848
11046
|
estimatedMrrPence: number | null;
|
|
10849
11047
|
introductoryOffer: {
|
|
10850
11048
|
status: "active" | "ended" | "refunded";
|
|
@@ -10950,6 +11148,14 @@ export declare const adminBillingCoachRowSchema: z.ZodObject<{
|
|
|
10950
11148
|
updatedAt: string;
|
|
10951
11149
|
maxFamilies: number;
|
|
10952
11150
|
provider: "manual" | "stripe";
|
|
11151
|
+
membership: {
|
|
11152
|
+
hasAccess: boolean;
|
|
11153
|
+
sourcePlanId: string | null;
|
|
11154
|
+
resolvedPlanId: "coach-founding" | "coach-standard" | "coach-premium" | null;
|
|
11155
|
+
tier: "premium" | "standard" | null;
|
|
11156
|
+
cohort: "founding" | "public" | null;
|
|
11157
|
+
isFoundingMember: boolean;
|
|
11158
|
+
};
|
|
10953
11159
|
estimatedMrrPence: number | null;
|
|
10954
11160
|
introductoryOffer: {
|
|
10955
11161
|
status: "active" | "ended" | "refunded";
|
|
@@ -17550,6 +17756,28 @@ export declare const adminBillingSummaryResponseSchema: z.ZodObject<{
|
|
|
17550
17756
|
scheduledCancellationAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17551
17757
|
statusReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17552
17758
|
planId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17759
|
+
membership: z.ZodObject<{
|
|
17760
|
+
hasAccess: z.ZodBoolean;
|
|
17761
|
+
sourcePlanId: z.ZodNullable<z.ZodString>;
|
|
17762
|
+
resolvedPlanId: z.ZodNullable<z.ZodEnum<["coach-founding", "coach-standard", "coach-premium"]>>;
|
|
17763
|
+
tier: z.ZodNullable<z.ZodEnum<["standard", "premium"]>>;
|
|
17764
|
+
cohort: z.ZodNullable<z.ZodEnum<["founding", "public"]>>;
|
|
17765
|
+
isFoundingMember: z.ZodBoolean;
|
|
17766
|
+
}, "strict", z.ZodTypeAny, {
|
|
17767
|
+
hasAccess: boolean;
|
|
17768
|
+
sourcePlanId: string | null;
|
|
17769
|
+
resolvedPlanId: "coach-founding" | "coach-standard" | "coach-premium" | null;
|
|
17770
|
+
tier: "premium" | "standard" | null;
|
|
17771
|
+
cohort: "founding" | "public" | null;
|
|
17772
|
+
isFoundingMember: boolean;
|
|
17773
|
+
}, {
|
|
17774
|
+
hasAccess: boolean;
|
|
17775
|
+
sourcePlanId: string | null;
|
|
17776
|
+
resolvedPlanId: "coach-founding" | "coach-standard" | "coach-premium" | null;
|
|
17777
|
+
tier: "premium" | "standard" | null;
|
|
17778
|
+
cohort: "founding" | "public" | null;
|
|
17779
|
+
isFoundingMember: boolean;
|
|
17780
|
+
}>;
|
|
17553
17781
|
cadence: z.ZodOptional<z.ZodNullable<z.ZodEnum<["monthly", "sixMonthly", "yearly"]>>>;
|
|
17554
17782
|
updatedAt: z.ZodString;
|
|
17555
17783
|
estimatedMrrPence: z.ZodNullable<z.ZodNumber>;
|
|
@@ -17636,6 +17864,14 @@ export declare const adminBillingSummaryResponseSchema: z.ZodObject<{
|
|
|
17636
17864
|
updatedAt: string;
|
|
17637
17865
|
maxFamilies: number;
|
|
17638
17866
|
provider: "manual" | "stripe";
|
|
17867
|
+
membership: {
|
|
17868
|
+
hasAccess: boolean;
|
|
17869
|
+
sourcePlanId: string | null;
|
|
17870
|
+
resolvedPlanId: "coach-founding" | "coach-standard" | "coach-premium" | null;
|
|
17871
|
+
tier: "premium" | "standard" | null;
|
|
17872
|
+
cohort: "founding" | "public" | null;
|
|
17873
|
+
isFoundingMember: boolean;
|
|
17874
|
+
};
|
|
17639
17875
|
estimatedMrrPence: number | null;
|
|
17640
17876
|
introductoryOffer: {
|
|
17641
17877
|
status: "active" | "ended" | "refunded";
|
|
@@ -17675,6 +17911,14 @@ export declare const adminBillingSummaryResponseSchema: z.ZodObject<{
|
|
|
17675
17911
|
updatedAt: string;
|
|
17676
17912
|
maxFamilies: number;
|
|
17677
17913
|
provider: "manual" | "stripe";
|
|
17914
|
+
membership: {
|
|
17915
|
+
hasAccess: boolean;
|
|
17916
|
+
sourcePlanId: string | null;
|
|
17917
|
+
resolvedPlanId: "coach-founding" | "coach-standard" | "coach-premium" | null;
|
|
17918
|
+
tier: "premium" | "standard" | null;
|
|
17919
|
+
cohort: "founding" | "public" | null;
|
|
17920
|
+
isFoundingMember: boolean;
|
|
17921
|
+
};
|
|
17678
17922
|
estimatedMrrPence: number | null;
|
|
17679
17923
|
introductoryOffer: {
|
|
17680
17924
|
status: "active" | "ended" | "refunded";
|
|
@@ -17781,6 +18025,14 @@ export declare const adminBillingSummaryResponseSchema: z.ZodObject<{
|
|
|
17781
18025
|
updatedAt: string;
|
|
17782
18026
|
maxFamilies: number;
|
|
17783
18027
|
provider: "manual" | "stripe";
|
|
18028
|
+
membership: {
|
|
18029
|
+
hasAccess: boolean;
|
|
18030
|
+
sourcePlanId: string | null;
|
|
18031
|
+
resolvedPlanId: "coach-founding" | "coach-standard" | "coach-premium" | null;
|
|
18032
|
+
tier: "premium" | "standard" | null;
|
|
18033
|
+
cohort: "founding" | "public" | null;
|
|
18034
|
+
isFoundingMember: boolean;
|
|
18035
|
+
};
|
|
17784
18036
|
estimatedMrrPence: number | null;
|
|
17785
18037
|
introductoryOffer: {
|
|
17786
18038
|
status: "active" | "ended" | "refunded";
|
|
@@ -17886,6 +18138,14 @@ export declare const adminBillingSummaryResponseSchema: z.ZodObject<{
|
|
|
17886
18138
|
updatedAt: string;
|
|
17887
18139
|
maxFamilies: number;
|
|
17888
18140
|
provider: "manual" | "stripe";
|
|
18141
|
+
membership: {
|
|
18142
|
+
hasAccess: boolean;
|
|
18143
|
+
sourcePlanId: string | null;
|
|
18144
|
+
resolvedPlanId: "coach-founding" | "coach-standard" | "coach-premium" | null;
|
|
18145
|
+
tier: "premium" | "standard" | null;
|
|
18146
|
+
cohort: "founding" | "public" | null;
|
|
18147
|
+
isFoundingMember: boolean;
|
|
18148
|
+
};
|
|
17889
18149
|
estimatedMrrPence: number | null;
|
|
17890
18150
|
introductoryOffer: {
|
|
17891
18151
|
status: "active" | "ended" | "refunded";
|
|
@@ -17994,6 +18254,14 @@ export declare const adminBillingSummaryResponseSchema: z.ZodObject<{
|
|
|
17994
18254
|
updatedAt: string;
|
|
17995
18255
|
maxFamilies: number;
|
|
17996
18256
|
provider: "manual" | "stripe";
|
|
18257
|
+
membership: {
|
|
18258
|
+
hasAccess: boolean;
|
|
18259
|
+
sourcePlanId: string | null;
|
|
18260
|
+
resolvedPlanId: "coach-founding" | "coach-standard" | "coach-premium" | null;
|
|
18261
|
+
tier: "premium" | "standard" | null;
|
|
18262
|
+
cohort: "founding" | "public" | null;
|
|
18263
|
+
isFoundingMember: boolean;
|
|
18264
|
+
};
|
|
17997
18265
|
estimatedMrrPence: number | null;
|
|
17998
18266
|
introductoryOffer: {
|
|
17999
18267
|
status: "active" | "ended" | "refunded";
|
|
@@ -18128,6 +18396,14 @@ export declare const adminBillingSummaryResponseSchema: z.ZodObject<{
|
|
|
18128
18396
|
updatedAt: string;
|
|
18129
18397
|
maxFamilies: number;
|
|
18130
18398
|
provider: "manual" | "stripe";
|
|
18399
|
+
membership: {
|
|
18400
|
+
hasAccess: boolean;
|
|
18401
|
+
sourcePlanId: string | null;
|
|
18402
|
+
resolvedPlanId: "coach-founding" | "coach-standard" | "coach-premium" | null;
|
|
18403
|
+
tier: "premium" | "standard" | null;
|
|
18404
|
+
cohort: "founding" | "public" | null;
|
|
18405
|
+
isFoundingMember: boolean;
|
|
18406
|
+
};
|
|
18131
18407
|
estimatedMrrPence: number | null;
|
|
18132
18408
|
introductoryOffer: {
|
|
18133
18409
|
status: "active" | "ended" | "refunded";
|
|
@@ -20200,6 +20476,14 @@ export declare const adminBillingSummaryResponseSchema: z.ZodObject<{
|
|
|
20200
20476
|
updatedAt: string;
|
|
20201
20477
|
maxFamilies: number;
|
|
20202
20478
|
provider: "manual" | "stripe";
|
|
20479
|
+
membership: {
|
|
20480
|
+
hasAccess: boolean;
|
|
20481
|
+
sourcePlanId: string | null;
|
|
20482
|
+
resolvedPlanId: "coach-founding" | "coach-standard" | "coach-premium" | null;
|
|
20483
|
+
tier: "premium" | "standard" | null;
|
|
20484
|
+
cohort: "founding" | "public" | null;
|
|
20485
|
+
isFoundingMember: boolean;
|
|
20486
|
+
};
|
|
20203
20487
|
estimatedMrrPence: number | null;
|
|
20204
20488
|
introductoryOffer: {
|
|
20205
20489
|
status: "active" | "ended" | "refunded";
|
|
@@ -20992,6 +21276,14 @@ export declare const adminBillingSummaryResponseSchema: z.ZodObject<{
|
|
|
20992
21276
|
updatedAt: string;
|
|
20993
21277
|
maxFamilies: number;
|
|
20994
21278
|
provider: "manual" | "stripe";
|
|
21279
|
+
membership: {
|
|
21280
|
+
hasAccess: boolean;
|
|
21281
|
+
sourcePlanId: string | null;
|
|
21282
|
+
resolvedPlanId: "coach-founding" | "coach-standard" | "coach-premium" | null;
|
|
21283
|
+
tier: "premium" | "standard" | null;
|
|
21284
|
+
cohort: "founding" | "public" | null;
|
|
21285
|
+
isFoundingMember: boolean;
|
|
21286
|
+
};
|
|
20995
21287
|
estimatedMrrPence: number | null;
|
|
20996
21288
|
introductoryOffer: {
|
|
20997
21289
|
status: "active" | "ended" | "refunded";
|
|
@@ -22486,6 +22778,7 @@ export type AdminOrganizationsResponse = z.infer<typeof adminOrganizationsRespon
|
|
|
22486
22778
|
export type AdminCoachResponse = z.infer<typeof adminCoachResponseSchema>;
|
|
22487
22779
|
export type AdminCoachSubscriptionManagement = z.infer<typeof adminCoachSubscriptionManagementSchema>;
|
|
22488
22780
|
export type AdminCoachSubscriptionResponse = z.infer<typeof adminCoachSubscriptionResponseSchema>;
|
|
22781
|
+
export type AdminCoachMembership = z.infer<typeof adminCoachMembershipSchema>;
|
|
22489
22782
|
export type AdminCoachListItem = z.infer<typeof adminCoachListItemSchema>;
|
|
22490
22783
|
export type AdminCoachesResponse = z.infer<typeof adminCoachesResponseSchema>;
|
|
22491
22784
|
export type AdminCoachViewAsSessionResponse = z.infer<typeof adminCoachViewAsSessionResponseSchema>;
|
package/dist/admin.js
CHANGED
|
@@ -3,7 +3,7 @@ import { assignmentSummarySchema, organizationSummarySchema, premiumAccessResult
|
|
|
3
3
|
import { organizationStatusSchema, organizationTypeSchema, entitlementStatusSchema, inviteStatusSchema, subscriptionStatusSchema } from "./enums.js";
|
|
4
4
|
import { auditEventSchema, publicUserSchema } from "./access.js";
|
|
5
5
|
import { ianaTimeZoneSchema, idSchema, isoDateStringSchema, nullableIsoDateStringSchema } from "./api.js";
|
|
6
|
-
import { billingCadenceSchema, storeSubscriptionEnvironmentSchema, storeSubscriptionProviderSchema } from "./billing.js";
|
|
6
|
+
import { billingCadenceSchema, coachCommercialPlanIdSchema, coachPlanCohortSchema, coachPlanTierSchema, storeSubscriptionEnvironmentSchema, storeSubscriptionProviderSchema } from "./billing.js";
|
|
7
7
|
import { timerActivityTypeSchema } from "./family.js";
|
|
8
8
|
import { familyAcquisitionSourceSchema } from "./family-acquisition.js";
|
|
9
9
|
export const createOrganizationRequestSchema = z.object({
|
|
@@ -239,11 +239,20 @@ export const adminCoachSubscriptionManagementSchema = z.object({
|
|
|
239
239
|
export const adminCoachSubscriptionResponseSchema = adminCoachResponseSchema.extend({
|
|
240
240
|
subscription: adminCoachSubscriptionManagementSchema
|
|
241
241
|
});
|
|
242
|
+
export const adminCoachMembershipSchema = z.object({
|
|
243
|
+
hasAccess: z.boolean(),
|
|
244
|
+
sourcePlanId: z.string().nullable(),
|
|
245
|
+
resolvedPlanId: coachCommercialPlanIdSchema.nullable(),
|
|
246
|
+
tier: coachPlanTierSchema.nullable(),
|
|
247
|
+
cohort: coachPlanCohortSchema.nullable(),
|
|
248
|
+
isFoundingMember: z.boolean()
|
|
249
|
+
}).strict();
|
|
242
250
|
export const adminCoachListItemSchema = adminCoachResponseSchema.extend({
|
|
243
251
|
submittedSubscriptionStatus: subscriptionStatusSchema.or(z.literal("notSubscribed")),
|
|
244
252
|
submittedSubscriptionCadence: billingCadenceSchema.nullable().optional(),
|
|
245
253
|
submittedSubscriptionCurrentPeriodEndsAt: nullableIsoDateStringSchema.optional(),
|
|
246
254
|
submittedSubscriptionScheduledCancellationAt: nullableIsoDateStringSchema.optional(),
|
|
255
|
+
membership: adminCoachMembershipSchema,
|
|
247
256
|
lastUsedAt: nullableIsoDateStringSchema.optional()
|
|
248
257
|
});
|
|
249
258
|
export const adminCoachesResponseSchema = z.object({
|
|
@@ -345,6 +354,7 @@ export const adminBillingCoachSubscriptionSchema = z.object({
|
|
|
345
354
|
scheduledCancellationAt: nullableIsoDateStringSchema.optional(),
|
|
346
355
|
statusReason: z.string().nullable().optional(),
|
|
347
356
|
planId: z.string().nullable().optional(),
|
|
357
|
+
membership: adminCoachMembershipSchema,
|
|
348
358
|
cadence: billingCadenceSchema.nullable().optional(),
|
|
349
359
|
updatedAt: isoDateStringSchema,
|
|
350
360
|
estimatedMrrPence: z.number().int().nonnegative().nullable(),
|