@nikthegeek/dreamsforlittles-shared 0.18.4 → 0.18.6
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/booking-system.d.ts +377 -49
- package/dist/booking-system.js +7 -0
- package/dist/booking-system.js.map +1 -1
- package/dist/booking-system.test.js +7 -0
- package/dist/booking-system.test.js.map +1 -1
- package/dist/coach-today.d.ts +12 -12
- package/dist/family-profile-artifacts.d.ts +23 -0
- package/dist/family-profile-artifacts.js +6 -1
- package/dist/family-profile-artifacts.js.map +1 -1
- package/dist/lead-insights.d.ts +35 -26
- package/dist/lead-management.d.ts +122 -4
- package/dist/lead-management.js +15 -2
- package/dist/lead-management.js.map +1 -1
- package/dist/lead-management.test.js +19 -1
- package/dist/lead-management.test.js.map +1 -1
- package/dist/practice-teams.d.ts +4 -4
- package/package.json +1 -1
package/dist/lead-insights.d.ts
CHANGED
|
@@ -82,6 +82,7 @@ export declare const leadNoShowsResponseSchema: z.ZodObject<{
|
|
|
82
82
|
id: z.ZodString;
|
|
83
83
|
status: z.ZodEnum<["scheduled", "completed", "cancelled", "noShow"]>;
|
|
84
84
|
startsAt: z.ZodString;
|
|
85
|
+
timeZone: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
85
86
|
endsAt: z.ZodOptional<z.ZodString>;
|
|
86
87
|
followUpStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["noReply", "closed"]>>>;
|
|
87
88
|
serviceName: z.ZodString;
|
|
@@ -90,6 +91,7 @@ export declare const leadNoShowsResponseSchema: z.ZodObject<{
|
|
|
90
91
|
id: string;
|
|
91
92
|
startsAt: string;
|
|
92
93
|
serviceName: string;
|
|
94
|
+
timeZone?: string | undefined;
|
|
93
95
|
endsAt?: string | undefined;
|
|
94
96
|
followUpStatus?: "noReply" | "closed" | null | undefined;
|
|
95
97
|
}, {
|
|
@@ -97,6 +99,7 @@ export declare const leadNoShowsResponseSchema: z.ZodObject<{
|
|
|
97
99
|
id: string;
|
|
98
100
|
startsAt: string;
|
|
99
101
|
serviceName: string;
|
|
102
|
+
timeZone?: string | undefined;
|
|
100
103
|
endsAt?: string | undefined;
|
|
101
104
|
followUpStatus?: "noReply" | "closed" | null | undefined;
|
|
102
105
|
}>>;
|
|
@@ -284,6 +287,7 @@ export declare const leadNoShowsResponseSchema: z.ZodObject<{
|
|
|
284
287
|
id: string;
|
|
285
288
|
startsAt: string;
|
|
286
289
|
serviceName: string;
|
|
290
|
+
timeZone?: string | undefined;
|
|
287
291
|
endsAt?: string | undefined;
|
|
288
292
|
followUpStatus?: "noReply" | "closed" | null | undefined;
|
|
289
293
|
} | null;
|
|
@@ -345,6 +349,7 @@ export declare const leadNoShowsResponseSchema: z.ZodObject<{
|
|
|
345
349
|
id: string;
|
|
346
350
|
startsAt: string;
|
|
347
351
|
serviceName: string;
|
|
352
|
+
timeZone?: string | undefined;
|
|
348
353
|
endsAt?: string | undefined;
|
|
349
354
|
followUpStatus?: "noReply" | "closed" | null | undefined;
|
|
350
355
|
} | null;
|
|
@@ -419,14 +424,6 @@ export declare const leadNoShowsResponseSchema: z.ZodObject<{
|
|
|
419
424
|
rebooked: z.ZodBoolean;
|
|
420
425
|
}, "strict", z.ZodTypeAny, {
|
|
421
426
|
source: "other" | "unknown" | "referral" | "instagram" | "facebook" | "googleSearch" | "recommendation" | "existingClient" | "anotherFamily" | "unclassified" | "googleAds" | "googleOrganic";
|
|
422
|
-
booking: {
|
|
423
|
-
id: string;
|
|
424
|
-
timeZone: string;
|
|
425
|
-
createdAt: string;
|
|
426
|
-
startsAt: string;
|
|
427
|
-
followUpStatus: "noReply" | "closed" | null;
|
|
428
|
-
followUpVersion: number;
|
|
429
|
-
};
|
|
430
427
|
lead: {
|
|
431
428
|
status: "new" | "converted" | "callBooked" | "callCompleted" | "closedNotConverted";
|
|
432
429
|
id: string;
|
|
@@ -441,6 +438,7 @@ export declare const leadNoShowsResponseSchema: z.ZodObject<{
|
|
|
441
438
|
id: string;
|
|
442
439
|
startsAt: string;
|
|
443
440
|
serviceName: string;
|
|
441
|
+
timeZone?: string | undefined;
|
|
444
442
|
endsAt?: string | undefined;
|
|
445
443
|
followUpStatus?: "noReply" | "closed" | null | undefined;
|
|
446
444
|
} | null;
|
|
@@ -489,9 +487,6 @@ export declare const leadNoShowsResponseSchema: z.ZodObject<{
|
|
|
489
487
|
canRecordSalesStatus?: boolean | undefined;
|
|
490
488
|
followUpDate?: string | null | undefined;
|
|
491
489
|
};
|
|
492
|
-
rebooked: boolean;
|
|
493
|
-
}, {
|
|
494
|
-
source: "other" | "unknown" | "referral" | "instagram" | "facebook" | "googleSearch" | "recommendation" | "existingClient" | "anotherFamily" | "unclassified" | "googleAds" | "googleOrganic";
|
|
495
490
|
booking: {
|
|
496
491
|
id: string;
|
|
497
492
|
timeZone: string;
|
|
@@ -500,6 +495,9 @@ export declare const leadNoShowsResponseSchema: z.ZodObject<{
|
|
|
500
495
|
followUpStatus: "noReply" | "closed" | null;
|
|
501
496
|
followUpVersion: number;
|
|
502
497
|
};
|
|
498
|
+
rebooked: boolean;
|
|
499
|
+
}, {
|
|
500
|
+
source: "other" | "unknown" | "referral" | "instagram" | "facebook" | "googleSearch" | "recommendation" | "existingClient" | "anotherFamily" | "unclassified" | "googleAds" | "googleOrganic";
|
|
503
501
|
lead: {
|
|
504
502
|
status: "new" | "converted" | "callBooked" | "callCompleted" | "closedNotConverted";
|
|
505
503
|
id: string;
|
|
@@ -514,6 +512,7 @@ export declare const leadNoShowsResponseSchema: z.ZodObject<{
|
|
|
514
512
|
id: string;
|
|
515
513
|
startsAt: string;
|
|
516
514
|
serviceName: string;
|
|
515
|
+
timeZone?: string | undefined;
|
|
517
516
|
endsAt?: string | undefined;
|
|
518
517
|
followUpStatus?: "noReply" | "closed" | null | undefined;
|
|
519
518
|
} | null;
|
|
@@ -562,14 +561,6 @@ export declare const leadNoShowsResponseSchema: z.ZodObject<{
|
|
|
562
561
|
canRecordSalesStatus?: boolean | undefined;
|
|
563
562
|
followUpDate?: string | null | undefined;
|
|
564
563
|
};
|
|
565
|
-
rebooked: boolean;
|
|
566
|
-
}>, "many">;
|
|
567
|
-
nextCursor: z.ZodNullable<z.ZodString>;
|
|
568
|
-
}, "strict", z.ZodTypeAny, {
|
|
569
|
-
asOf: string;
|
|
570
|
-
nextCursor: string | null;
|
|
571
|
-
records: {
|
|
572
|
-
source: "other" | "unknown" | "referral" | "instagram" | "facebook" | "googleSearch" | "recommendation" | "existingClient" | "anotherFamily" | "unclassified" | "googleAds" | "googleOrganic";
|
|
573
564
|
booking: {
|
|
574
565
|
id: string;
|
|
575
566
|
timeZone: string;
|
|
@@ -578,6 +569,14 @@ export declare const leadNoShowsResponseSchema: z.ZodObject<{
|
|
|
578
569
|
followUpStatus: "noReply" | "closed" | null;
|
|
579
570
|
followUpVersion: number;
|
|
580
571
|
};
|
|
572
|
+
rebooked: boolean;
|
|
573
|
+
}>, "many">;
|
|
574
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
575
|
+
}, "strict", z.ZodTypeAny, {
|
|
576
|
+
asOf: string;
|
|
577
|
+
nextCursor: string | null;
|
|
578
|
+
records: {
|
|
579
|
+
source: "other" | "unknown" | "referral" | "instagram" | "facebook" | "googleSearch" | "recommendation" | "existingClient" | "anotherFamily" | "unclassified" | "googleAds" | "googleOrganic";
|
|
581
580
|
lead: {
|
|
582
581
|
status: "new" | "converted" | "callBooked" | "callCompleted" | "closedNotConverted";
|
|
583
582
|
id: string;
|
|
@@ -592,6 +591,7 @@ export declare const leadNoShowsResponseSchema: z.ZodObject<{
|
|
|
592
591
|
id: string;
|
|
593
592
|
startsAt: string;
|
|
594
593
|
serviceName: string;
|
|
594
|
+
timeZone?: string | undefined;
|
|
595
595
|
endsAt?: string | undefined;
|
|
596
596
|
followUpStatus?: "noReply" | "closed" | null | undefined;
|
|
597
597
|
} | null;
|
|
@@ -640,13 +640,6 @@ export declare const leadNoShowsResponseSchema: z.ZodObject<{
|
|
|
640
640
|
canRecordSalesStatus?: boolean | undefined;
|
|
641
641
|
followUpDate?: string | null | undefined;
|
|
642
642
|
};
|
|
643
|
-
rebooked: boolean;
|
|
644
|
-
}[];
|
|
645
|
-
}, {
|
|
646
|
-
asOf: string;
|
|
647
|
-
nextCursor: string | null;
|
|
648
|
-
records: {
|
|
649
|
-
source: "other" | "unknown" | "referral" | "instagram" | "facebook" | "googleSearch" | "recommendation" | "existingClient" | "anotherFamily" | "unclassified" | "googleAds" | "googleOrganic";
|
|
650
643
|
booking: {
|
|
651
644
|
id: string;
|
|
652
645
|
timeZone: string;
|
|
@@ -655,6 +648,13 @@ export declare const leadNoShowsResponseSchema: z.ZodObject<{
|
|
|
655
648
|
followUpStatus: "noReply" | "closed" | null;
|
|
656
649
|
followUpVersion: number;
|
|
657
650
|
};
|
|
651
|
+
rebooked: boolean;
|
|
652
|
+
}[];
|
|
653
|
+
}, {
|
|
654
|
+
asOf: string;
|
|
655
|
+
nextCursor: string | null;
|
|
656
|
+
records: {
|
|
657
|
+
source: "other" | "unknown" | "referral" | "instagram" | "facebook" | "googleSearch" | "recommendation" | "existingClient" | "anotherFamily" | "unclassified" | "googleAds" | "googleOrganic";
|
|
658
658
|
lead: {
|
|
659
659
|
status: "new" | "converted" | "callBooked" | "callCompleted" | "closedNotConverted";
|
|
660
660
|
id: string;
|
|
@@ -669,6 +669,7 @@ export declare const leadNoShowsResponseSchema: z.ZodObject<{
|
|
|
669
669
|
id: string;
|
|
670
670
|
startsAt: string;
|
|
671
671
|
serviceName: string;
|
|
672
|
+
timeZone?: string | undefined;
|
|
672
673
|
endsAt?: string | undefined;
|
|
673
674
|
followUpStatus?: "noReply" | "closed" | null | undefined;
|
|
674
675
|
} | null;
|
|
@@ -717,6 +718,14 @@ export declare const leadNoShowsResponseSchema: z.ZodObject<{
|
|
|
717
718
|
canRecordSalesStatus?: boolean | undefined;
|
|
718
719
|
followUpDate?: string | null | undefined;
|
|
719
720
|
};
|
|
721
|
+
booking: {
|
|
722
|
+
id: string;
|
|
723
|
+
timeZone: string;
|
|
724
|
+
createdAt: string;
|
|
725
|
+
startsAt: string;
|
|
726
|
+
followUpStatus: "noReply" | "closed" | null;
|
|
727
|
+
followUpVersion: number;
|
|
728
|
+
};
|
|
720
729
|
rebooked: boolean;
|
|
721
730
|
}[];
|
|
722
731
|
}>;
|
|
@@ -55,6 +55,7 @@ export declare const leadBookingLinkSchema: z.ZodObject<{
|
|
|
55
55
|
id: z.ZodString;
|
|
56
56
|
status: z.ZodEnum<["scheduled", "completed", "cancelled", "noShow"]>;
|
|
57
57
|
startsAt: z.ZodString;
|
|
58
|
+
timeZone: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
58
59
|
endsAt: z.ZodOptional<z.ZodString>;
|
|
59
60
|
followUpStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["noReply", "closed"]>>>;
|
|
60
61
|
serviceName: z.ZodString;
|
|
@@ -63,6 +64,7 @@ export declare const leadBookingLinkSchema: z.ZodObject<{
|
|
|
63
64
|
id: string;
|
|
64
65
|
startsAt: string;
|
|
65
66
|
serviceName: string;
|
|
67
|
+
timeZone?: string | undefined;
|
|
66
68
|
endsAt?: string | undefined;
|
|
67
69
|
followUpStatus?: "noReply" | "closed" | null | undefined;
|
|
68
70
|
}, {
|
|
@@ -70,6 +72,7 @@ export declare const leadBookingLinkSchema: z.ZodObject<{
|
|
|
70
72
|
id: string;
|
|
71
73
|
startsAt: string;
|
|
72
74
|
serviceName: string;
|
|
75
|
+
timeZone?: string | undefined;
|
|
73
76
|
endsAt?: string | undefined;
|
|
74
77
|
followUpStatus?: "noReply" | "closed" | null | undefined;
|
|
75
78
|
}>;
|
|
@@ -208,6 +211,7 @@ export declare const leadSummarySchema: z.ZodObject<{
|
|
|
208
211
|
id: z.ZodString;
|
|
209
212
|
status: z.ZodEnum<["scheduled", "completed", "cancelled", "noShow"]>;
|
|
210
213
|
startsAt: z.ZodString;
|
|
214
|
+
timeZone: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
211
215
|
endsAt: z.ZodOptional<z.ZodString>;
|
|
212
216
|
followUpStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["noReply", "closed"]>>>;
|
|
213
217
|
serviceName: z.ZodString;
|
|
@@ -216,6 +220,7 @@ export declare const leadSummarySchema: z.ZodObject<{
|
|
|
216
220
|
id: string;
|
|
217
221
|
startsAt: string;
|
|
218
222
|
serviceName: string;
|
|
223
|
+
timeZone?: string | undefined;
|
|
219
224
|
endsAt?: string | undefined;
|
|
220
225
|
followUpStatus?: "noReply" | "closed" | null | undefined;
|
|
221
226
|
}, {
|
|
@@ -223,6 +228,7 @@ export declare const leadSummarySchema: z.ZodObject<{
|
|
|
223
228
|
id: string;
|
|
224
229
|
startsAt: string;
|
|
225
230
|
serviceName: string;
|
|
231
|
+
timeZone?: string | undefined;
|
|
226
232
|
endsAt?: string | undefined;
|
|
227
233
|
followUpStatus?: "noReply" | "closed" | null | undefined;
|
|
228
234
|
}>>;
|
|
@@ -410,6 +416,7 @@ export declare const leadSummarySchema: z.ZodObject<{
|
|
|
410
416
|
id: string;
|
|
411
417
|
startsAt: string;
|
|
412
418
|
serviceName: string;
|
|
419
|
+
timeZone?: string | undefined;
|
|
413
420
|
endsAt?: string | undefined;
|
|
414
421
|
followUpStatus?: "noReply" | "closed" | null | undefined;
|
|
415
422
|
} | null;
|
|
@@ -471,6 +478,7 @@ export declare const leadSummarySchema: z.ZodObject<{
|
|
|
471
478
|
id: string;
|
|
472
479
|
startsAt: string;
|
|
473
480
|
serviceName: string;
|
|
481
|
+
timeZone?: string | undefined;
|
|
474
482
|
endsAt?: string | undefined;
|
|
475
483
|
followUpStatus?: "noReply" | "closed" | null | undefined;
|
|
476
484
|
} | null;
|
|
@@ -580,6 +588,7 @@ export declare const leadDetailSchema: z.ZodObject<{
|
|
|
580
588
|
id: z.ZodString;
|
|
581
589
|
status: z.ZodEnum<["scheduled", "completed", "cancelled", "noShow"]>;
|
|
582
590
|
startsAt: z.ZodString;
|
|
591
|
+
timeZone: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
583
592
|
endsAt: z.ZodOptional<z.ZodString>;
|
|
584
593
|
followUpStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["noReply", "closed"]>>>;
|
|
585
594
|
serviceName: z.ZodString;
|
|
@@ -588,6 +597,7 @@ export declare const leadDetailSchema: z.ZodObject<{
|
|
|
588
597
|
id: string;
|
|
589
598
|
startsAt: string;
|
|
590
599
|
serviceName: string;
|
|
600
|
+
timeZone?: string | undefined;
|
|
591
601
|
endsAt?: string | undefined;
|
|
592
602
|
followUpStatus?: "noReply" | "closed" | null | undefined;
|
|
593
603
|
}, {
|
|
@@ -595,6 +605,7 @@ export declare const leadDetailSchema: z.ZodObject<{
|
|
|
595
605
|
id: string;
|
|
596
606
|
startsAt: string;
|
|
597
607
|
serviceName: string;
|
|
608
|
+
timeZone?: string | undefined;
|
|
598
609
|
endsAt?: string | undefined;
|
|
599
610
|
followUpStatus?: "noReply" | "closed" | null | undefined;
|
|
600
611
|
}>>;
|
|
@@ -1354,6 +1365,7 @@ export declare const leadDetailSchema: z.ZodObject<{
|
|
|
1354
1365
|
id: string;
|
|
1355
1366
|
startsAt: string;
|
|
1356
1367
|
serviceName: string;
|
|
1368
|
+
timeZone?: string | undefined;
|
|
1357
1369
|
endsAt?: string | undefined;
|
|
1358
1370
|
followUpStatus?: "noReply" | "closed" | null | undefined;
|
|
1359
1371
|
} | null;
|
|
@@ -1501,6 +1513,7 @@ export declare const leadDetailSchema: z.ZodObject<{
|
|
|
1501
1513
|
id: string;
|
|
1502
1514
|
startsAt: string;
|
|
1503
1515
|
serviceName: string;
|
|
1516
|
+
timeZone?: string | undefined;
|
|
1504
1517
|
endsAt?: string | undefined;
|
|
1505
1518
|
followUpStatus?: "noReply" | "closed" | null | undefined;
|
|
1506
1519
|
} | null;
|
|
@@ -1635,6 +1648,7 @@ export declare const leadListQuerySchema: z.ZodEffects<z.ZodObject<{
|
|
|
1635
1648
|
organizationId: z.ZodString;
|
|
1636
1649
|
coachUserId: z.ZodString;
|
|
1637
1650
|
} & {
|
|
1651
|
+
includeSummary: z.ZodOptional<z.ZodEffects<z.ZodEnum<["true", "false"]>, boolean, "true" | "false">>;
|
|
1638
1652
|
recordedNoShow: z.ZodOptional<z.ZodEffects<z.ZodEnum<["true", "false"]>, boolean, "true" | "false">>;
|
|
1639
1653
|
status: z.ZodOptional<z.ZodEnum<["new", "callBooked", "callCompleted", "converted", "closedNotConverted"]>>;
|
|
1640
1654
|
callOutcome: z.ZodOptional<z.ZodEnum<["scheduled", "completed", "cancelled", "noShow"]>>;
|
|
@@ -1660,6 +1674,7 @@ export declare const leadListQuerySchema: z.ZodEffects<z.ZodObject<{
|
|
|
1660
1674
|
internalSource?: "other" | "referral" | "instagram" | "unclassified" | "googleAds" | "googleOrganic" | undefined;
|
|
1661
1675
|
callOutcome?: "scheduled" | "completed" | "cancelled" | "noShow" | undefined;
|
|
1662
1676
|
salesStatus?: "signedUp" | "deciding" | "notProceeding" | undefined;
|
|
1677
|
+
includeSummary?: boolean | undefined;
|
|
1663
1678
|
recordedNoShow?: boolean | undefined;
|
|
1664
1679
|
invitationStatus?: "revoked" | "expired" | "pending" | "accepted" | "declined" | undefined;
|
|
1665
1680
|
}, {
|
|
@@ -1675,6 +1690,7 @@ export declare const leadListQuerySchema: z.ZodEffects<z.ZodObject<{
|
|
|
1675
1690
|
internalSource?: "other" | "referral" | "instagram" | "unclassified" | "googleAds" | "googleOrganic" | undefined;
|
|
1676
1691
|
callOutcome?: "scheduled" | "completed" | "cancelled" | "noShow" | undefined;
|
|
1677
1692
|
salesStatus?: "signedUp" | "deciding" | "notProceeding" | undefined;
|
|
1693
|
+
includeSummary?: "true" | "false" | undefined;
|
|
1678
1694
|
recordedNoShow?: "true" | "false" | undefined;
|
|
1679
1695
|
invitationStatus?: "revoked" | "expired" | "pending" | "accepted" | "declined" | undefined;
|
|
1680
1696
|
}>, {
|
|
@@ -1690,6 +1706,7 @@ export declare const leadListQuerySchema: z.ZodEffects<z.ZodObject<{
|
|
|
1690
1706
|
internalSource?: "other" | "referral" | "instagram" | "unclassified" | "googleAds" | "googleOrganic" | undefined;
|
|
1691
1707
|
callOutcome?: "scheduled" | "completed" | "cancelled" | "noShow" | undefined;
|
|
1692
1708
|
salesStatus?: "signedUp" | "deciding" | "notProceeding" | undefined;
|
|
1709
|
+
includeSummary?: boolean | undefined;
|
|
1693
1710
|
recordedNoShow?: boolean | undefined;
|
|
1694
1711
|
invitationStatus?: "revoked" | "expired" | "pending" | "accepted" | "declined" | undefined;
|
|
1695
1712
|
}, {
|
|
@@ -1705,6 +1722,7 @@ export declare const leadListQuerySchema: z.ZodEffects<z.ZodObject<{
|
|
|
1705
1722
|
internalSource?: "other" | "referral" | "instagram" | "unclassified" | "googleAds" | "googleOrganic" | undefined;
|
|
1706
1723
|
callOutcome?: "scheduled" | "completed" | "cancelled" | "noShow" | undefined;
|
|
1707
1724
|
salesStatus?: "signedUp" | "deciding" | "notProceeding" | undefined;
|
|
1725
|
+
includeSummary?: "true" | "false" | undefined;
|
|
1708
1726
|
recordedNoShow?: "true" | "false" | undefined;
|
|
1709
1727
|
invitationStatus?: "revoked" | "expired" | "pending" | "accepted" | "declined" | undefined;
|
|
1710
1728
|
}>;
|
|
@@ -1803,10 +1821,10 @@ export declare const leadCreateRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1803
1821
|
internalSource: "other" | "referral" | "instagram" | "unclassified" | "googleAds" | "googleOrganic";
|
|
1804
1822
|
caregiverPhone?: string | null | undefined;
|
|
1805
1823
|
childAgeText?: string | undefined;
|
|
1824
|
+
bookingId?: string | null | undefined;
|
|
1806
1825
|
familyReportedSourceOtherText?: string | null | undefined;
|
|
1807
1826
|
childAgeBand?: "expecting" | "under3Months" | "3To5Months" | "6To8Months" | "9To12Months" | "13To18Months" | "19To24Months" | "over2Years" | undefined;
|
|
1808
1827
|
internalSourceOtherText?: string | null | undefined;
|
|
1809
|
-
bookingId?: string | null | undefined;
|
|
1810
1828
|
privateNote?: string | null | undefined;
|
|
1811
1829
|
initialStatus?: "new" | "deciding" | "callBooked" | undefined;
|
|
1812
1830
|
}, {
|
|
@@ -1820,10 +1838,10 @@ export declare const leadCreateRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1820
1838
|
internalSource: "other" | "referral" | "instagram" | "unclassified" | "googleAds" | "googleOrganic";
|
|
1821
1839
|
caregiverPhone?: string | null | undefined;
|
|
1822
1840
|
childAgeText?: string | undefined;
|
|
1841
|
+
bookingId?: string | null | undefined;
|
|
1823
1842
|
familyReportedSourceOtherText?: string | null | undefined;
|
|
1824
1843
|
childAgeBand?: "expecting" | "under3Months" | "3To5Months" | "6To8Months" | "9To12Months" | "13To18Months" | "19To24Months" | "over2Years" | undefined;
|
|
1825
1844
|
internalSourceOtherText?: string | null | undefined;
|
|
1826
|
-
bookingId?: string | null | undefined;
|
|
1827
1845
|
privateNote?: string | null | undefined;
|
|
1828
1846
|
initialStatus?: "new" | "deciding" | "callBooked" | undefined;
|
|
1829
1847
|
}>, {
|
|
@@ -1837,10 +1855,10 @@ export declare const leadCreateRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1837
1855
|
internalSource: "other" | "referral" | "instagram" | "unclassified" | "googleAds" | "googleOrganic";
|
|
1838
1856
|
caregiverPhone?: string | null | undefined;
|
|
1839
1857
|
childAgeText?: string | undefined;
|
|
1858
|
+
bookingId?: string | null | undefined;
|
|
1840
1859
|
familyReportedSourceOtherText?: string | null | undefined;
|
|
1841
1860
|
childAgeBand?: "expecting" | "under3Months" | "3To5Months" | "6To8Months" | "9To12Months" | "13To18Months" | "19To24Months" | "over2Years" | undefined;
|
|
1842
1861
|
internalSourceOtherText?: string | null | undefined;
|
|
1843
|
-
bookingId?: string | null | undefined;
|
|
1844
1862
|
privateNote?: string | null | undefined;
|
|
1845
1863
|
initialStatus?: "new" | "deciding" | "callBooked" | undefined;
|
|
1846
1864
|
}, {
|
|
@@ -1854,10 +1872,10 @@ export declare const leadCreateRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1854
1872
|
internalSource: "other" | "referral" | "instagram" | "unclassified" | "googleAds" | "googleOrganic";
|
|
1855
1873
|
caregiverPhone?: string | null | undefined;
|
|
1856
1874
|
childAgeText?: string | undefined;
|
|
1875
|
+
bookingId?: string | null | undefined;
|
|
1857
1876
|
familyReportedSourceOtherText?: string | null | undefined;
|
|
1858
1877
|
childAgeBand?: "expecting" | "under3Months" | "3To5Months" | "6To8Months" | "9To12Months" | "13To18Months" | "19To24Months" | "over2Years" | undefined;
|
|
1859
1878
|
internalSourceOtherText?: string | null | undefined;
|
|
1860
|
-
bookingId?: string | null | undefined;
|
|
1861
1879
|
privateNote?: string | null | undefined;
|
|
1862
1880
|
initialStatus?: "new" | "deciding" | "callBooked" | undefined;
|
|
1863
1881
|
}>;
|
|
@@ -2199,6 +2217,7 @@ export declare const leadListResponseSchema: z.ZodObject<{
|
|
|
2199
2217
|
id: z.ZodString;
|
|
2200
2218
|
status: z.ZodEnum<["scheduled", "completed", "cancelled", "noShow"]>;
|
|
2201
2219
|
startsAt: z.ZodString;
|
|
2220
|
+
timeZone: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
2202
2221
|
endsAt: z.ZodOptional<z.ZodString>;
|
|
2203
2222
|
followUpStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["noReply", "closed"]>>>;
|
|
2204
2223
|
serviceName: z.ZodString;
|
|
@@ -2207,6 +2226,7 @@ export declare const leadListResponseSchema: z.ZodObject<{
|
|
|
2207
2226
|
id: string;
|
|
2208
2227
|
startsAt: string;
|
|
2209
2228
|
serviceName: string;
|
|
2229
|
+
timeZone?: string | undefined;
|
|
2210
2230
|
endsAt?: string | undefined;
|
|
2211
2231
|
followUpStatus?: "noReply" | "closed" | null | undefined;
|
|
2212
2232
|
}, {
|
|
@@ -2214,6 +2234,7 @@ export declare const leadListResponseSchema: z.ZodObject<{
|
|
|
2214
2234
|
id: string;
|
|
2215
2235
|
startsAt: string;
|
|
2216
2236
|
serviceName: string;
|
|
2237
|
+
timeZone?: string | undefined;
|
|
2217
2238
|
endsAt?: string | undefined;
|
|
2218
2239
|
followUpStatus?: "noReply" | "closed" | null | undefined;
|
|
2219
2240
|
}>>;
|
|
@@ -2401,6 +2422,7 @@ export declare const leadListResponseSchema: z.ZodObject<{
|
|
|
2401
2422
|
id: string;
|
|
2402
2423
|
startsAt: string;
|
|
2403
2424
|
serviceName: string;
|
|
2425
|
+
timeZone?: string | undefined;
|
|
2404
2426
|
endsAt?: string | undefined;
|
|
2405
2427
|
followUpStatus?: "noReply" | "closed" | null | undefined;
|
|
2406
2428
|
} | null;
|
|
@@ -2462,6 +2484,7 @@ export declare const leadListResponseSchema: z.ZodObject<{
|
|
|
2462
2484
|
id: string;
|
|
2463
2485
|
startsAt: string;
|
|
2464
2486
|
serviceName: string;
|
|
2487
|
+
timeZone?: string | undefined;
|
|
2465
2488
|
endsAt?: string | undefined;
|
|
2466
2489
|
followUpStatus?: "noReply" | "closed" | null | undefined;
|
|
2467
2490
|
} | null;
|
|
@@ -2511,6 +2534,64 @@ export declare const leadListResponseSchema: z.ZodObject<{
|
|
|
2511
2534
|
followUpDate?: string | null | undefined;
|
|
2512
2535
|
}>, "many">;
|
|
2513
2536
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
2537
|
+
summary: z.ZodOptional<z.ZodObject<{
|
|
2538
|
+
total: z.ZodNumber;
|
|
2539
|
+
stages: z.ZodObject<{
|
|
2540
|
+
new: z.ZodNumber;
|
|
2541
|
+
callBooked: z.ZodNumber;
|
|
2542
|
+
deciding: z.ZodNumber;
|
|
2543
|
+
signedUp: z.ZodNumber;
|
|
2544
|
+
closed: z.ZodNumber;
|
|
2545
|
+
}, "strip", z.ZodTypeAny, {
|
|
2546
|
+
new: number;
|
|
2547
|
+
signedUp: number;
|
|
2548
|
+
deciding: number;
|
|
2549
|
+
closed: number;
|
|
2550
|
+
callBooked: number;
|
|
2551
|
+
}, {
|
|
2552
|
+
new: number;
|
|
2553
|
+
signedUp: number;
|
|
2554
|
+
deciding: number;
|
|
2555
|
+
closed: number;
|
|
2556
|
+
callBooked: number;
|
|
2557
|
+
}>;
|
|
2558
|
+
month: z.ZodObject<{
|
|
2559
|
+
enquiries: z.ZodNumber;
|
|
2560
|
+
signedUp: z.ZodNumber;
|
|
2561
|
+
}, "strip", z.ZodTypeAny, {
|
|
2562
|
+
enquiries: number;
|
|
2563
|
+
signedUp: number;
|
|
2564
|
+
}, {
|
|
2565
|
+
enquiries: number;
|
|
2566
|
+
signedUp: number;
|
|
2567
|
+
}>;
|
|
2568
|
+
}, "strip", z.ZodTypeAny, {
|
|
2569
|
+
total: number;
|
|
2570
|
+
month: {
|
|
2571
|
+
enquiries: number;
|
|
2572
|
+
signedUp: number;
|
|
2573
|
+
};
|
|
2574
|
+
stages: {
|
|
2575
|
+
new: number;
|
|
2576
|
+
signedUp: number;
|
|
2577
|
+
deciding: number;
|
|
2578
|
+
closed: number;
|
|
2579
|
+
callBooked: number;
|
|
2580
|
+
};
|
|
2581
|
+
}, {
|
|
2582
|
+
total: number;
|
|
2583
|
+
month: {
|
|
2584
|
+
enquiries: number;
|
|
2585
|
+
signedUp: number;
|
|
2586
|
+
};
|
|
2587
|
+
stages: {
|
|
2588
|
+
new: number;
|
|
2589
|
+
signedUp: number;
|
|
2590
|
+
deciding: number;
|
|
2591
|
+
closed: number;
|
|
2592
|
+
callBooked: number;
|
|
2593
|
+
};
|
|
2594
|
+
}>>;
|
|
2514
2595
|
}, "strip", z.ZodTypeAny, {
|
|
2515
2596
|
nextCursor: string | null;
|
|
2516
2597
|
leads: {
|
|
@@ -2527,6 +2608,7 @@ export declare const leadListResponseSchema: z.ZodObject<{
|
|
|
2527
2608
|
id: string;
|
|
2528
2609
|
startsAt: string;
|
|
2529
2610
|
serviceName: string;
|
|
2611
|
+
timeZone?: string | undefined;
|
|
2530
2612
|
endsAt?: string | undefined;
|
|
2531
2613
|
followUpStatus?: "noReply" | "closed" | null | undefined;
|
|
2532
2614
|
} | null;
|
|
@@ -2575,6 +2657,20 @@ export declare const leadListResponseSchema: z.ZodObject<{
|
|
|
2575
2657
|
canRecordSalesStatus?: boolean | undefined;
|
|
2576
2658
|
followUpDate?: string | null | undefined;
|
|
2577
2659
|
}[];
|
|
2660
|
+
summary?: {
|
|
2661
|
+
total: number;
|
|
2662
|
+
month: {
|
|
2663
|
+
enquiries: number;
|
|
2664
|
+
signedUp: number;
|
|
2665
|
+
};
|
|
2666
|
+
stages: {
|
|
2667
|
+
new: number;
|
|
2668
|
+
signedUp: number;
|
|
2669
|
+
deciding: number;
|
|
2670
|
+
closed: number;
|
|
2671
|
+
callBooked: number;
|
|
2672
|
+
};
|
|
2673
|
+
} | undefined;
|
|
2578
2674
|
}, {
|
|
2579
2675
|
nextCursor: string | null;
|
|
2580
2676
|
leads: {
|
|
@@ -2591,6 +2687,7 @@ export declare const leadListResponseSchema: z.ZodObject<{
|
|
|
2591
2687
|
id: string;
|
|
2592
2688
|
startsAt: string;
|
|
2593
2689
|
serviceName: string;
|
|
2690
|
+
timeZone?: string | undefined;
|
|
2594
2691
|
endsAt?: string | undefined;
|
|
2595
2692
|
followUpStatus?: "noReply" | "closed" | null | undefined;
|
|
2596
2693
|
} | null;
|
|
@@ -2639,6 +2736,20 @@ export declare const leadListResponseSchema: z.ZodObject<{
|
|
|
2639
2736
|
canRecordSalesStatus?: boolean | undefined;
|
|
2640
2737
|
followUpDate?: string | null | undefined;
|
|
2641
2738
|
}[];
|
|
2739
|
+
summary?: {
|
|
2740
|
+
total: number;
|
|
2741
|
+
month: {
|
|
2742
|
+
enquiries: number;
|
|
2743
|
+
signedUp: number;
|
|
2744
|
+
};
|
|
2745
|
+
stages: {
|
|
2746
|
+
new: number;
|
|
2747
|
+
signedUp: number;
|
|
2748
|
+
deciding: number;
|
|
2749
|
+
closed: number;
|
|
2750
|
+
callBooked: number;
|
|
2751
|
+
};
|
|
2752
|
+
} | undefined;
|
|
2642
2753
|
}>;
|
|
2643
2754
|
export declare const leadDetailResponseSchema: z.ZodObject<{
|
|
2644
2755
|
lead: z.ZodObject<{
|
|
@@ -2646,6 +2757,7 @@ export declare const leadDetailResponseSchema: z.ZodObject<{
|
|
|
2646
2757
|
id: z.ZodString;
|
|
2647
2758
|
status: z.ZodEnum<["scheduled", "completed", "cancelled", "noShow"]>;
|
|
2648
2759
|
startsAt: z.ZodString;
|
|
2760
|
+
timeZone: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
2649
2761
|
endsAt: z.ZodOptional<z.ZodString>;
|
|
2650
2762
|
followUpStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["noReply", "closed"]>>>;
|
|
2651
2763
|
serviceName: z.ZodString;
|
|
@@ -2654,6 +2766,7 @@ export declare const leadDetailResponseSchema: z.ZodObject<{
|
|
|
2654
2766
|
id: string;
|
|
2655
2767
|
startsAt: string;
|
|
2656
2768
|
serviceName: string;
|
|
2769
|
+
timeZone?: string | undefined;
|
|
2657
2770
|
endsAt?: string | undefined;
|
|
2658
2771
|
followUpStatus?: "noReply" | "closed" | null | undefined;
|
|
2659
2772
|
}, {
|
|
@@ -2661,6 +2774,7 @@ export declare const leadDetailResponseSchema: z.ZodObject<{
|
|
|
2661
2774
|
id: string;
|
|
2662
2775
|
startsAt: string;
|
|
2663
2776
|
serviceName: string;
|
|
2777
|
+
timeZone?: string | undefined;
|
|
2664
2778
|
endsAt?: string | undefined;
|
|
2665
2779
|
followUpStatus?: "noReply" | "closed" | null | undefined;
|
|
2666
2780
|
}>>;
|
|
@@ -3420,6 +3534,7 @@ export declare const leadDetailResponseSchema: z.ZodObject<{
|
|
|
3420
3534
|
id: string;
|
|
3421
3535
|
startsAt: string;
|
|
3422
3536
|
serviceName: string;
|
|
3537
|
+
timeZone?: string | undefined;
|
|
3423
3538
|
endsAt?: string | undefined;
|
|
3424
3539
|
followUpStatus?: "noReply" | "closed" | null | undefined;
|
|
3425
3540
|
} | null;
|
|
@@ -3567,6 +3682,7 @@ export declare const leadDetailResponseSchema: z.ZodObject<{
|
|
|
3567
3682
|
id: string;
|
|
3568
3683
|
startsAt: string;
|
|
3569
3684
|
serviceName: string;
|
|
3685
|
+
timeZone?: string | undefined;
|
|
3570
3686
|
endsAt?: string | undefined;
|
|
3571
3687
|
followUpStatus?: "noReply" | "closed" | null | undefined;
|
|
3572
3688
|
} | null;
|
|
@@ -3716,6 +3832,7 @@ export declare const leadDetailResponseSchema: z.ZodObject<{
|
|
|
3716
3832
|
id: string;
|
|
3717
3833
|
startsAt: string;
|
|
3718
3834
|
serviceName: string;
|
|
3835
|
+
timeZone?: string | undefined;
|
|
3719
3836
|
endsAt?: string | undefined;
|
|
3720
3837
|
followUpStatus?: "noReply" | "closed" | null | undefined;
|
|
3721
3838
|
} | null;
|
|
@@ -3865,6 +3982,7 @@ export declare const leadDetailResponseSchema: z.ZodObject<{
|
|
|
3865
3982
|
id: string;
|
|
3866
3983
|
startsAt: string;
|
|
3867
3984
|
serviceName: string;
|
|
3985
|
+
timeZone?: string | undefined;
|
|
3868
3986
|
endsAt?: string | undefined;
|
|
3869
3987
|
followUpStatus?: "noReply" | "closed" | null | undefined;
|
|
3870
3988
|
} | null;
|
package/dist/lead-management.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { familyInvitationConnectionOptionsSchema, familyInvitationQuestionnaireSelectionRequestSchema, familyInvitationQuestionnaireSelectionSchema } from "./family-invitations.js";
|
|
2
2
|
import { bookingFormSnapshotSchema } from "./booking-forms.js";
|
|
3
3
|
import { z } from "zod";
|
|
4
|
-
import { idSchema, isoDateStringSchema, nullableIsoDateStringSchema } from "./api.js";
|
|
4
|
+
import { idSchema, ianaTimeZoneSchema, isoDateStringSchema, nullableIsoDateStringSchema } from "./api.js";
|
|
5
5
|
import { bookingAgeBandSchema, bookingChildAgeTextSchema, leadFamilyReportedSourceSchema } from "./booking-system.js";
|
|
6
6
|
const text = (max) => z.string().trim().min(1).max(max);
|
|
7
7
|
const nullableText = (max) => z.string().trim().max(max).nullable().optional();
|
|
@@ -155,6 +155,7 @@ export const leadBookingLinkSchema = z.object({
|
|
|
155
155
|
id: idSchema,
|
|
156
156
|
status: z.enum(["scheduled", "completed", "cancelled", "noShow"]),
|
|
157
157
|
startsAt: isoDateStringSchema,
|
|
158
|
+
timeZone: ianaTimeZoneSchema.optional(),
|
|
158
159
|
endsAt: isoDateStringSchema.optional(),
|
|
159
160
|
followUpStatus: leadNoShowFollowUpStatusSchema.nullable().optional(),
|
|
160
161
|
serviceName: text(160)
|
|
@@ -250,6 +251,7 @@ const validateLeadDateRange = (value, context) => {
|
|
|
250
251
|
}
|
|
251
252
|
};
|
|
252
253
|
export const leadListQuerySchema = leadTargetQuerySchema.extend({
|
|
254
|
+
includeSummary: z.enum(["true", "false"]).transform((value) => value === "true").optional(),
|
|
253
255
|
recordedNoShow: z.enum(["true", "false"]).transform((value) => value === "true").optional(),
|
|
254
256
|
status: leadStatusSchema.optional(),
|
|
255
257
|
callOutcome: leadCallOutcomeSchema.optional(),
|
|
@@ -370,7 +372,18 @@ export const leadTargetsResponseSchema = z.object({
|
|
|
370
372
|
});
|
|
371
373
|
export const leadListResponseSchema = z.object({
|
|
372
374
|
leads: z.array(leadSummarySchema),
|
|
373
|
-
nextCursor: z.string().nullable()
|
|
375
|
+
nextCursor: z.string().nullable(),
|
|
376
|
+
summary: z.object({
|
|
377
|
+
total: z.number().int().nonnegative(),
|
|
378
|
+
stages: z.object({
|
|
379
|
+
new: z.number().int().nonnegative(),
|
|
380
|
+
callBooked: z.number().int().nonnegative(),
|
|
381
|
+
deciding: z.number().int().nonnegative(),
|
|
382
|
+
signedUp: z.number().int().nonnegative(),
|
|
383
|
+
closed: z.number().int().nonnegative()
|
|
384
|
+
}),
|
|
385
|
+
month: z.object({ enquiries: z.number().int().nonnegative(), signedUp: z.number().int().nonnegative() })
|
|
386
|
+
}).optional()
|
|
374
387
|
});
|
|
375
388
|
export const leadDetailResponseSchema = z.object({ lead: leadDetailSchema });
|
|
376
389
|
//# sourceMappingURL=lead-management.js.map
|