@nikthegeek/dreamsforlittles-shared 0.15.2 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (214) hide show
  1. package/dist/access.d.ts +216 -3
  2. package/dist/access.js +6 -1
  3. package/dist/access.js.map +1 -1
  4. package/dist/activity-import-readers.d.ts +18 -0
  5. package/dist/activity-import-readers.js +26 -0
  6. package/dist/activity-import-readers.js.map +1 -0
  7. package/dist/admin.d.ts +526 -23
  8. package/dist/analysis-teaser.test.d.ts +1 -0
  9. package/dist/analysis-teaser.test.js +52 -0
  10. package/dist/analysis-teaser.test.js.map +1 -0
  11. package/dist/analysis.d.ts +1400 -26
  12. package/dist/analysis.js +20 -0
  13. package/dist/analysis.js.map +1 -1
  14. package/dist/archive-zip.d.ts +5 -0
  15. package/dist/archive-zip.js +39 -0
  16. package/dist/archive-zip.js.map +1 -0
  17. package/dist/auth.d.ts +68 -0
  18. package/dist/auth.js +2 -0
  19. package/dist/auth.js.map +1 -1
  20. package/dist/booking-coach-setup.d.ts +385 -0
  21. package/dist/booking-coach-setup.js +48 -0
  22. package/dist/booking-coach-setup.js.map +1 -0
  23. package/dist/booking-embed-preferences.d.ts +58 -0
  24. package/dist/booking-embed-preferences.js +17 -0
  25. package/dist/booking-embed-preferences.js.map +1 -0
  26. package/dist/booking-enquiries.d.ts +10 -10
  27. package/dist/booking-family-email-content.d.ts +2 -2
  28. package/dist/booking-family-scope.d.ts +29 -0
  29. package/dist/booking-family-scope.js +6 -0
  30. package/dist/booking-family-scope.js.map +1 -0
  31. package/dist/booking-forms.d.ts +6 -6
  32. package/dist/booking-system.d.ts +845 -323
  33. package/dist/booking-system.js +96 -9
  34. package/dist/booking-system.js.map +1 -1
  35. package/dist/booking-system.test.js +21 -0
  36. package/dist/booking-system.test.js.map +1 -1
  37. package/dist/booking-team-selection.d.ts +11 -0
  38. package/dist/booking-team-selection.js +6 -0
  39. package/dist/booking-team-selection.js.map +1 -0
  40. package/dist/booking-team.d.ts +196 -0
  41. package/dist/booking-team.js +23 -0
  42. package/dist/booking-team.js.map +1 -0
  43. package/dist/calendar-connections.d.ts +6 -6
  44. package/dist/chat-archives.d.ts +100 -0
  45. package/dist/chat-archives.js +10 -0
  46. package/dist/chat-archives.js.map +1 -0
  47. package/dist/coach-activity-notifications.d.ts +36 -36
  48. package/dist/coach-family-chat-photos.d.ts +9 -9
  49. package/dist/coach-family-chat-voice-notes.d.ts +4 -4
  50. package/dist/coach-family-chat.d.ts +87 -59
  51. package/dist/coach-family-chat.js +10 -2
  52. package/dist/coach-family-chat.js.map +1 -1
  53. package/dist/coach-family-chat.test.js +18 -0
  54. package/dist/coach-family-chat.test.js.map +1 -1
  55. package/dist/coach-family-roster.d.ts +39 -0
  56. package/dist/coach-family-roster.js +63 -0
  57. package/dist/coach-family-roster.js.map +1 -0
  58. package/dist/coach-messaging-policy.d.ts +219 -0
  59. package/dist/coach-messaging-policy.js +24 -0
  60. package/dist/coach-messaging-policy.js.map +1 -0
  61. package/dist/coach-portal-link.test.d.ts +1 -0
  62. package/dist/coach-portal-link.test.js +35 -0
  63. package/dist/coach-portal-link.test.js.map +1 -0
  64. package/dist/coach-sleep-plan-templates.d.ts +626 -0
  65. package/dist/coach-sleep-plan-templates.js +32 -0
  66. package/dist/coach-sleep-plan-templates.js.map +1 -0
  67. package/dist/coach-sleep-plans.d.ts +1069 -0
  68. package/dist/coach-sleep-plans.js +9 -0
  69. package/dist/coach-sleep-plans.js.map +1 -0
  70. package/dist/coach-today.d.ts +206 -0
  71. package/dist/coach-today.js +33 -0
  72. package/dist/coach-today.js.map +1 -0
  73. package/dist/coach.d.ts +14881 -2356
  74. package/dist/coach.js +63 -1
  75. package/dist/coach.js.map +1 -1
  76. package/dist/enums.d.ts +2 -2
  77. package/dist/enums.js +10 -2
  78. package/dist/enums.js.map +1 -1
  79. package/dist/family-account-retention.d.ts +57 -0
  80. package/dist/family-account-retention.js +14 -0
  81. package/dist/family-account-retention.js.map +1 -0
  82. package/dist/family-artifact-summary.d.ts +49 -0
  83. package/dist/family-artifact-summary.js +28 -0
  84. package/dist/family-artifact-summary.js.map +1 -0
  85. package/dist/family-consent.d.ts +39 -0
  86. package/dist/family-consent.js +20 -0
  87. package/dist/family-consent.js.map +1 -0
  88. package/dist/family-invitations.d.ts +195 -14
  89. package/dist/family-invitations.js +21 -0
  90. package/dist/family-invitations.js.map +1 -1
  91. package/dist/family-profile-artifacts.d.ts +1540 -72
  92. package/dist/family-profile-artifacts.js +33 -2
  93. package/dist/family-profile-artifacts.js.map +1 -1
  94. package/dist/family-recovery.d.ts +123 -0
  95. package/dist/family-recovery.js +13 -0
  96. package/dist/family-recovery.js.map +1 -0
  97. package/dist/family-retention-policy.d.ts +65 -0
  98. package/dist/family-retention-policy.js +41 -0
  99. package/dist/family-retention-policy.js.map +1 -0
  100. package/dist/family-sleep-plan.test.js +17 -0
  101. package/dist/family-sleep-plan.test.js.map +1 -1
  102. package/dist/family.d.ts +36596 -4989
  103. package/dist/family.js +139 -14
  104. package/dist/family.js.map +1 -1
  105. package/dist/family.test.js +149 -1
  106. package/dist/family.test.js.map +1 -1
  107. package/dist/files.d.ts +4 -4
  108. package/dist/history-export-csv.d.ts +5 -0
  109. package/dist/history-export-csv.js +67 -0
  110. package/dist/history-export-csv.js.map +1 -0
  111. package/dist/history-export.d.ts +605 -0
  112. package/dist/history-export.js +40 -0
  113. package/dist/history-export.js.map +1 -0
  114. package/dist/home-activity-context.d.ts +6396 -0
  115. package/dist/home-activity-context.js +97 -0
  116. package/dist/home-activity-context.js.map +1 -0
  117. package/dist/home-activity-context.test.d.ts +1 -0
  118. package/dist/home-activity-context.test.js +111 -0
  119. package/dist/home-activity-context.test.js.map +1 -0
  120. package/dist/huckleberry-import.d.ts +452 -0
  121. package/dist/huckleberry-import.js +37 -0
  122. package/dist/huckleberry-import.js.map +1 -0
  123. package/dist/index.d.ts +34 -0
  124. package/dist/index.js +34 -0
  125. package/dist/index.js.map +1 -1
  126. package/dist/invites.d.ts +63 -10
  127. package/dist/invites.js +5 -2
  128. package/dist/invites.js.map +1 -1
  129. package/dist/lead-insights.d.ts +1242 -51
  130. package/dist/lead-insights.js +53 -2
  131. package/dist/lead-insights.js.map +1 -1
  132. package/dist/lead-insights.test.js +35 -1
  133. package/dist/lead-insights.test.js.map +1 -1
  134. package/dist/lead-management.d.ts +1252 -96
  135. package/dist/lead-management.js +59 -5
  136. package/dist/lead-management.js.map +1 -1
  137. package/dist/lead-management.test.js +54 -0
  138. package/dist/lead-management.test.js.map +1 -1
  139. package/dist/milestone-photos.d.ts +492 -0
  140. package/dist/milestone-photos.js +35 -0
  141. package/dist/milestone-photos.js.map +1 -0
  142. package/dist/milestone-photos.test.d.ts +1 -0
  143. package/dist/milestone-photos.test.js +11 -0
  144. package/dist/milestone-photos.test.js.map +1 -0
  145. package/dist/milestones.d.ts +267 -23
  146. package/dist/milestones.js +10 -0
  147. package/dist/milestones.js.map +1 -1
  148. package/dist/milestones.test.js +23 -1
  149. package/dist/milestones.test.js.map +1 -1
  150. package/dist/native-timer-state.d.ts +8807 -0
  151. package/dist/native-timer-state.js +104 -0
  152. package/dist/native-timer-state.js.map +1 -0
  153. package/dist/parent-check-ins.d.ts +196 -0
  154. package/dist/parent-check-ins.js +37 -0
  155. package/dist/parent-check-ins.js.map +1 -0
  156. package/dist/parent-check-ins.test.d.ts +1 -0
  157. package/dist/parent-check-ins.test.js +27 -0
  158. package/dist/parent-check-ins.test.js.map +1 -0
  159. package/dist/practice-bookings.d.ts +261 -0
  160. package/dist/practice-bookings.js +22 -0
  161. package/dist/practice-bookings.js.map +1 -0
  162. package/dist/practice-insights.d.ts +437 -0
  163. package/dist/practice-insights.js +42 -0
  164. package/dist/practice-insights.js.map +1 -0
  165. package/dist/practice-profile.d.ts +22 -0
  166. package/dist/practice-profile.js +4 -0
  167. package/dist/practice-profile.js.map +1 -0
  168. package/dist/practice-teams.d.ts +1259 -0
  169. package/dist/practice-teams.js +100 -0
  170. package/dist/practice-teams.js.map +1 -0
  171. package/dist/product-analytics.d.ts +113 -80
  172. package/dist/product-analytics.js +18 -1
  173. package/dist/product-analytics.js.map +1 -1
  174. package/dist/pumping.d.ts +486 -0
  175. package/dist/pumping.js +94 -0
  176. package/dist/pumping.js.map +1 -0
  177. package/dist/pumping.test.d.ts +1 -0
  178. package/dist/pumping.test.js +62 -0
  179. package/dist/pumping.test.js.map +1 -0
  180. package/dist/questionnaire-imports.d.ts +197 -5
  181. package/dist/questionnaire-photos.d.ts +4 -4
  182. package/dist/sleep-average-context.d.ts +570 -0
  183. package/dist/sleep-average-context.js +286 -0
  184. package/dist/sleep-average-context.js.map +1 -0
  185. package/dist/sleep-average-context.test.d.ts +1 -0
  186. package/dist/sleep-average-context.test.js +290 -0
  187. package/dist/sleep-average-context.test.js.map +1 -0
  188. package/dist/sleep-average-summary.d.ts +46 -0
  189. package/dist/sleep-average-summary.js +127 -0
  190. package/dist/sleep-average-summary.js.map +1 -0
  191. package/dist/sleep-average-summary.test.d.ts +1 -0
  192. package/dist/sleep-average-summary.test.js +169 -0
  193. package/dist/sleep-average-summary.test.js.map +1 -0
  194. package/dist/sleep-awake-state.d.ts +197 -0
  195. package/dist/sleep-awake-state.js +25 -0
  196. package/dist/sleep-awake-state.js.map +1 -0
  197. package/dist/sleep-awake-state.test.d.ts +1 -0
  198. package/dist/sleep-awake-state.test.js +47 -0
  199. package/dist/sleep-awake-state.test.js.map +1 -0
  200. package/dist/sleep-completed-night.d.ts +2786 -0
  201. package/dist/sleep-completed-night.js +31 -0
  202. package/dist/sleep-completed-night.js.map +1 -0
  203. package/dist/sleep-methods.d.ts +15 -0
  204. package/dist/sleep-methods.js +9 -0
  205. package/dist/sleep-methods.js.map +1 -0
  206. package/dist/subscription-cancellation-feedback.d.ts +24 -24
  207. package/dist/support-faqs.d.ts +6 -6
  208. package/dist/support-tickets.d.ts +18 -18
  209. package/dist/trial-cards.test.d.ts +1 -0
  210. package/dist/trial-cards.test.js +30 -0
  211. package/dist/trial-cards.test.js.map +1 -0
  212. package/dist/website-feedback.d.ts +12 -12
  213. package/dist/zoom-meetings.d.ts +4 -4
  214. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
2
  export declare const leadInsightMetricSchema: z.ZodEnum<["enquiries", "signedUp", "deciding", "notProceeding", "noDecision", "invited", "accepted", "calls", "completed", "noShow", "cancelled", "upcoming", "unresolved"]>;
3
- export declare const leadInsightSourceSchema: z.ZodEnum<["unclassified", "googleAds", "googleOrganic", "instagram", "referral", "other", "googleSearch", "recommendation", "existingClient", "unknown"]>;
3
+ export declare const leadInsightSourceSchema: z.ZodEnum<["unclassified", "googleAds", "googleOrganic", "instagram", "referral", "other", "googleSearch", "recommendation", "existingClient", "facebook", "anotherFamily", "unknown"]>;
4
4
  export declare const leadInsightsQuerySchema: z.ZodEffects<z.ZodObject<{
5
5
  organizationId: z.ZodString;
6
6
  coachUserId: z.ZodString;
@@ -32,6 +32,724 @@ export declare const leadInsightsQuerySchema: z.ZodEffects<z.ZodObject<{
32
32
  endDate: string;
33
33
  sourceBasis: "family" | "coach";
34
34
  }>;
35
+ export declare const leadNoShowsQuerySchema: z.ZodEffects<z.ZodObject<{
36
+ organizationId: z.ZodString;
37
+ coachUserId: z.ZodString;
38
+ startDate: z.ZodEffects<z.ZodString, string, string>;
39
+ endDate: z.ZodEffects<z.ZodString, string, string>;
40
+ sourceBasis: z.ZodEnum<["coach", "family"]>;
41
+ } & {
42
+ cursor: z.ZodOptional<z.ZodString>;
43
+ limit: z.ZodDefault<z.ZodNumber>;
44
+ }, "strict", z.ZodTypeAny, {
45
+ organizationId: string;
46
+ coachUserId: string;
47
+ limit: number;
48
+ startDate: string;
49
+ endDate: string;
50
+ sourceBasis: "family" | "coach";
51
+ cursor?: string | undefined;
52
+ }, {
53
+ organizationId: string;
54
+ coachUserId: string;
55
+ startDate: string;
56
+ endDate: string;
57
+ sourceBasis: "family" | "coach";
58
+ cursor?: string | undefined;
59
+ limit?: number | undefined;
60
+ }>, {
61
+ organizationId: string;
62
+ coachUserId: string;
63
+ limit: number;
64
+ startDate: string;
65
+ endDate: string;
66
+ sourceBasis: "family" | "coach";
67
+ cursor?: string | undefined;
68
+ }, {
69
+ organizationId: string;
70
+ coachUserId: string;
71
+ startDate: string;
72
+ endDate: string;
73
+ sourceBasis: "family" | "coach";
74
+ cursor?: string | undefined;
75
+ limit?: number | undefined;
76
+ }>;
77
+ export declare const leadNoShowsResponseSchema: z.ZodObject<{
78
+ asOf: z.ZodString;
79
+ records: z.ZodArray<z.ZodObject<{
80
+ lead: z.ZodObject<{
81
+ booking: z.ZodNullable<z.ZodObject<{
82
+ id: z.ZodString;
83
+ status: z.ZodEnum<["scheduled", "completed", "cancelled", "noShow"]>;
84
+ startsAt: z.ZodString;
85
+ endsAt: z.ZodOptional<z.ZodString>;
86
+ followUpStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["noReply", "closed"]>>>;
87
+ serviceName: z.ZodString;
88
+ }, "strip", z.ZodTypeAny, {
89
+ status: "scheduled" | "completed" | "cancelled" | "noShow";
90
+ id: string;
91
+ startsAt: string;
92
+ serviceName: string;
93
+ endsAt?: string | undefined;
94
+ followUpStatus?: "noReply" | "closed" | null | undefined;
95
+ }, {
96
+ status: "scheduled" | "completed" | "cancelled" | "noShow";
97
+ id: string;
98
+ startsAt: string;
99
+ serviceName: string;
100
+ endsAt?: string | undefined;
101
+ followUpStatus?: "noReply" | "closed" | null | undefined;
102
+ }>>;
103
+ invitation: z.ZodNullable<z.ZodObject<{
104
+ id: z.ZodString;
105
+ method: z.ZodEnum<["code", "email"]>;
106
+ status: z.ZodEnum<["pending", "accepted", "declined", "revoked", "expired"]>;
107
+ code: z.ZodNullable<z.ZodString>;
108
+ emailDeliveryStatus: z.ZodEnum<["pending", "sent", "ambiguous", "notSent", "notApplicable"]>;
109
+ questionnaireSelection: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
110
+ mode: z.ZodLiteral<"template">;
111
+ templateId: z.ZodString;
112
+ templateName: z.ZodString;
113
+ title: z.ZodString;
114
+ }, "strip", z.ZodTypeAny, {
115
+ mode: "template";
116
+ title: string;
117
+ templateId: string;
118
+ templateName: string;
119
+ }, {
120
+ mode: "template";
121
+ title: string;
122
+ templateId: string;
123
+ templateName: string;
124
+ }>, z.ZodObject<{
125
+ mode: z.ZodLiteral<"none">;
126
+ }, "strip", z.ZodTypeAny, {
127
+ mode: "none";
128
+ }, {
129
+ mode: "none";
130
+ }>]>>>;
131
+ connectionOptions: z.ZodOptional<z.ZodNullable<z.ZodObject<{
132
+ supportPeriod: z.ZodOptional<z.ZodEffects<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
133
+ mode: z.ZodLiteral<"onAcceptance">;
134
+ }, "strict", z.ZodTypeAny, {
135
+ mode: "onAcceptance";
136
+ }, {
137
+ mode: "onAcceptance";
138
+ }>, z.ZodObject<{
139
+ mode: z.ZodLiteral<"dates">;
140
+ startsAt: z.ZodEffects<z.ZodString, string, string>;
141
+ endsAt: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
142
+ }, "strict", z.ZodTypeAny, {
143
+ startsAt: string;
144
+ mode: "dates";
145
+ endsAt: string | null;
146
+ }, {
147
+ startsAt: string;
148
+ mode: "dates";
149
+ endsAt: string | null;
150
+ }>]>, {
151
+ mode: "onAcceptance";
152
+ } | {
153
+ startsAt: string;
154
+ mode: "dates";
155
+ endsAt: string | null;
156
+ }, {
157
+ mode: "onAcceptance";
158
+ } | {
159
+ startsAt: string;
160
+ mode: "dates";
161
+ endsAt: string | null;
162
+ }>>;
163
+ messagingEnabled: z.ZodOptional<z.ZodBoolean>;
164
+ }, "strict", z.ZodTypeAny, {
165
+ supportPeriod?: {
166
+ mode: "onAcceptance";
167
+ } | {
168
+ startsAt: string;
169
+ mode: "dates";
170
+ endsAt: string | null;
171
+ } | undefined;
172
+ messagingEnabled?: boolean | undefined;
173
+ }, {
174
+ supportPeriod?: {
175
+ mode: "onAcceptance";
176
+ } | {
177
+ startsAt: string;
178
+ mode: "dates";
179
+ endsAt: string | null;
180
+ } | undefined;
181
+ messagingEnabled?: boolean | undefined;
182
+ }>>>;
183
+ }, "strip", z.ZodTypeAny, {
184
+ code: string | null;
185
+ status: "revoked" | "expired" | "pending" | "accepted" | "declined";
186
+ id: string;
187
+ method: "code" | "email";
188
+ emailDeliveryStatus: "pending" | "sent" | "ambiguous" | "notSent" | "notApplicable";
189
+ questionnaireSelection?: {
190
+ mode: "template";
191
+ title: string;
192
+ templateId: string;
193
+ templateName: string;
194
+ } | {
195
+ mode: "none";
196
+ } | null | undefined;
197
+ connectionOptions?: {
198
+ supportPeriod?: {
199
+ mode: "onAcceptance";
200
+ } | {
201
+ startsAt: string;
202
+ mode: "dates";
203
+ endsAt: string | null;
204
+ } | undefined;
205
+ messagingEnabled?: boolean | undefined;
206
+ } | null | undefined;
207
+ }, {
208
+ code: string | null;
209
+ status: "revoked" | "expired" | "pending" | "accepted" | "declined";
210
+ id: string;
211
+ method: "code" | "email";
212
+ emailDeliveryStatus: "pending" | "sent" | "ambiguous" | "notSent" | "notApplicable";
213
+ questionnaireSelection?: {
214
+ mode: "template";
215
+ title: string;
216
+ templateId: string;
217
+ templateName: string;
218
+ } | {
219
+ mode: "none";
220
+ } | null | undefined;
221
+ connectionOptions?: {
222
+ supportPeriod?: {
223
+ mode: "onAcceptance";
224
+ } | {
225
+ startsAt: string;
226
+ mode: "dates";
227
+ endsAt: string | null;
228
+ } | undefined;
229
+ messagingEnabled?: boolean | undefined;
230
+ } | null | undefined;
231
+ }>>;
232
+ version: z.ZodNumber;
233
+ convertedAt: z.ZodNullable<z.ZodString>;
234
+ closedAt: z.ZodNullable<z.ZodString>;
235
+ createdAt: z.ZodString;
236
+ updatedAt: z.ZodString;
237
+ familyReportedSource: z.ZodEnum<["googleSearch", "instagram", "recommendation", "existingClient", "other", "facebook", "anotherFamily"]>;
238
+ familyReportedSourceOtherText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
239
+ internalSource: z.ZodEnum<["unclassified", "googleAds", "googleOrganic", "instagram", "referral", "other"]>;
240
+ internalSourceOtherText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
241
+ id: z.ZodString;
242
+ organizationId: z.ZodString;
243
+ coachUserId: z.ZodString;
244
+ status: z.ZodEnum<["new", "callBooked", "callCompleted", "converted", "closedNotConverted"]>;
245
+ callOutcome: z.ZodNullable<z.ZodEnum<["scheduled", "completed", "cancelled", "noShow"]>>;
246
+ canRecordSalesStatus: z.ZodOptional<z.ZodBoolean>;
247
+ salesStatus: z.ZodNullable<z.ZodEnum<["signedUp", "deciding", "notProceeding"]>>;
248
+ followUpDate: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
249
+ notProceedingReason: z.ZodNullable<z.ZodEnum<["cost", "bothParentsNotOnBoard", "notReady", "ghosted", "notRightFit", "other"]>>;
250
+ notProceedingReasonDetail: z.ZodNullable<z.ZodString>;
251
+ contact: z.ZodObject<{
252
+ caregiverName: z.ZodString;
253
+ caregiverEmail: z.ZodString;
254
+ caregiverPhone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
255
+ childFirstName: z.ZodString;
256
+ childAgeText: z.ZodString;
257
+ childAgeBand: z.ZodOptional<z.ZodEnum<["expecting", "under3Months", "3To5Months", "6To8Months", "9To12Months", "13To18Months", "19To24Months", "over2Years"]>>;
258
+ }, "strip", z.ZodTypeAny, {
259
+ caregiverEmail: string;
260
+ childFirstName: string;
261
+ childAgeText: string;
262
+ caregiverName: string;
263
+ caregiverPhone?: string | null | undefined;
264
+ childAgeBand?: "expecting" | "under3Months" | "3To5Months" | "6To8Months" | "9To12Months" | "13To18Months" | "19To24Months" | "over2Years" | undefined;
265
+ }, {
266
+ caregiverEmail: string;
267
+ childFirstName: string;
268
+ childAgeText: string;
269
+ caregiverName: string;
270
+ caregiverPhone?: string | null | undefined;
271
+ childAgeBand?: "expecting" | "under3Months" | "3To5Months" | "6To8Months" | "9To12Months" | "13To18Months" | "19To24Months" | "over2Years" | undefined;
272
+ }>;
273
+ }, "strip", z.ZodTypeAny, {
274
+ status: "new" | "converted" | "callBooked" | "callCompleted" | "closedNotConverted";
275
+ id: string;
276
+ createdAt: string;
277
+ version: number;
278
+ updatedAt: string;
279
+ organizationId: string;
280
+ coachUserId: string;
281
+ familyReportedSource: "other" | "instagram" | "facebook" | "googleSearch" | "recommendation" | "existingClient" | "anotherFamily";
282
+ booking: {
283
+ status: "scheduled" | "completed" | "cancelled" | "noShow";
284
+ id: string;
285
+ startsAt: string;
286
+ serviceName: string;
287
+ endsAt?: string | undefined;
288
+ followUpStatus?: "noReply" | "closed" | null | undefined;
289
+ } | null;
290
+ contact: {
291
+ caregiverEmail: string;
292
+ childFirstName: string;
293
+ childAgeText: string;
294
+ caregiverName: string;
295
+ caregiverPhone?: string | null | undefined;
296
+ childAgeBand?: "expecting" | "under3Months" | "3To5Months" | "6To8Months" | "9To12Months" | "13To18Months" | "19To24Months" | "over2Years" | undefined;
297
+ };
298
+ internalSource: "other" | "referral" | "instagram" | "unclassified" | "googleAds" | "googleOrganic";
299
+ invitation: {
300
+ code: string | null;
301
+ status: "revoked" | "expired" | "pending" | "accepted" | "declined";
302
+ id: string;
303
+ method: "code" | "email";
304
+ emailDeliveryStatus: "pending" | "sent" | "ambiguous" | "notSent" | "notApplicable";
305
+ questionnaireSelection?: {
306
+ mode: "template";
307
+ title: string;
308
+ templateId: string;
309
+ templateName: string;
310
+ } | {
311
+ mode: "none";
312
+ } | null | undefined;
313
+ connectionOptions?: {
314
+ supportPeriod?: {
315
+ mode: "onAcceptance";
316
+ } | {
317
+ startsAt: string;
318
+ mode: "dates";
319
+ endsAt: string | null;
320
+ } | undefined;
321
+ messagingEnabled?: boolean | undefined;
322
+ } | null | undefined;
323
+ } | null;
324
+ closedAt: string | null;
325
+ callOutcome: "scheduled" | "completed" | "cancelled" | "noShow" | null;
326
+ salesStatus: "signedUp" | "deciding" | "notProceeding" | null;
327
+ notProceedingReason: "other" | "cost" | "bothParentsNotOnBoard" | "notReady" | "ghosted" | "notRightFit" | null;
328
+ notProceedingReasonDetail: string | null;
329
+ convertedAt: string | null;
330
+ familyReportedSourceOtherText?: string | null | undefined;
331
+ internalSourceOtherText?: string | null | undefined;
332
+ canRecordSalesStatus?: boolean | undefined;
333
+ followUpDate?: string | null | undefined;
334
+ }, {
335
+ status: "new" | "converted" | "callBooked" | "callCompleted" | "closedNotConverted";
336
+ id: string;
337
+ createdAt: string;
338
+ version: number;
339
+ updatedAt: string;
340
+ organizationId: string;
341
+ coachUserId: string;
342
+ familyReportedSource: "other" | "instagram" | "facebook" | "googleSearch" | "recommendation" | "existingClient" | "anotherFamily";
343
+ booking: {
344
+ status: "scheduled" | "completed" | "cancelled" | "noShow";
345
+ id: string;
346
+ startsAt: string;
347
+ serviceName: string;
348
+ endsAt?: string | undefined;
349
+ followUpStatus?: "noReply" | "closed" | null | undefined;
350
+ } | null;
351
+ contact: {
352
+ caregiverEmail: string;
353
+ childFirstName: string;
354
+ childAgeText: string;
355
+ caregiverName: string;
356
+ caregiverPhone?: string | null | undefined;
357
+ childAgeBand?: "expecting" | "under3Months" | "3To5Months" | "6To8Months" | "9To12Months" | "13To18Months" | "19To24Months" | "over2Years" | undefined;
358
+ };
359
+ internalSource: "other" | "referral" | "instagram" | "unclassified" | "googleAds" | "googleOrganic";
360
+ invitation: {
361
+ code: string | null;
362
+ status: "revoked" | "expired" | "pending" | "accepted" | "declined";
363
+ id: string;
364
+ method: "code" | "email";
365
+ emailDeliveryStatus: "pending" | "sent" | "ambiguous" | "notSent" | "notApplicable";
366
+ questionnaireSelection?: {
367
+ mode: "template";
368
+ title: string;
369
+ templateId: string;
370
+ templateName: string;
371
+ } | {
372
+ mode: "none";
373
+ } | null | undefined;
374
+ connectionOptions?: {
375
+ supportPeriod?: {
376
+ mode: "onAcceptance";
377
+ } | {
378
+ startsAt: string;
379
+ mode: "dates";
380
+ endsAt: string | null;
381
+ } | undefined;
382
+ messagingEnabled?: boolean | undefined;
383
+ } | null | undefined;
384
+ } | null;
385
+ closedAt: string | null;
386
+ callOutcome: "scheduled" | "completed" | "cancelled" | "noShow" | null;
387
+ salesStatus: "signedUp" | "deciding" | "notProceeding" | null;
388
+ notProceedingReason: "other" | "cost" | "bothParentsNotOnBoard" | "notReady" | "ghosted" | "notRightFit" | null;
389
+ notProceedingReasonDetail: string | null;
390
+ convertedAt: string | null;
391
+ familyReportedSourceOtherText?: string | null | undefined;
392
+ internalSourceOtherText?: string | null | undefined;
393
+ canRecordSalesStatus?: boolean | undefined;
394
+ followUpDate?: string | null | undefined;
395
+ }>;
396
+ booking: z.ZodObject<{
397
+ id: z.ZodString;
398
+ startsAt: z.ZodString;
399
+ createdAt: z.ZodString;
400
+ timeZone: z.ZodString;
401
+ followUpStatus: z.ZodNullable<z.ZodEnum<["noReply", "closed"]>>;
402
+ followUpVersion: z.ZodNumber;
403
+ }, "strict", z.ZodTypeAny, {
404
+ id: string;
405
+ timeZone: string;
406
+ createdAt: string;
407
+ startsAt: string;
408
+ followUpStatus: "noReply" | "closed" | null;
409
+ followUpVersion: number;
410
+ }, {
411
+ id: string;
412
+ timeZone: string;
413
+ createdAt: string;
414
+ startsAt: string;
415
+ followUpStatus: "noReply" | "closed" | null;
416
+ followUpVersion: number;
417
+ }>;
418
+ source: z.ZodEnum<["unclassified", "googleAds", "googleOrganic", "instagram", "referral", "other", "googleSearch", "recommendation", "existingClient", "facebook", "anotherFamily", "unknown"]>;
419
+ rebooked: z.ZodBoolean;
420
+ }, "strict", z.ZodTypeAny, {
421
+ 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
+ lead: {
431
+ status: "new" | "converted" | "callBooked" | "callCompleted" | "closedNotConverted";
432
+ id: string;
433
+ createdAt: string;
434
+ version: number;
435
+ updatedAt: string;
436
+ organizationId: string;
437
+ coachUserId: string;
438
+ familyReportedSource: "other" | "instagram" | "facebook" | "googleSearch" | "recommendation" | "existingClient" | "anotherFamily";
439
+ booking: {
440
+ status: "scheduled" | "completed" | "cancelled" | "noShow";
441
+ id: string;
442
+ startsAt: string;
443
+ serviceName: string;
444
+ endsAt?: string | undefined;
445
+ followUpStatus?: "noReply" | "closed" | null | undefined;
446
+ } | null;
447
+ contact: {
448
+ caregiverEmail: string;
449
+ childFirstName: string;
450
+ childAgeText: string;
451
+ caregiverName: string;
452
+ caregiverPhone?: string | null | undefined;
453
+ childAgeBand?: "expecting" | "under3Months" | "3To5Months" | "6To8Months" | "9To12Months" | "13To18Months" | "19To24Months" | "over2Years" | undefined;
454
+ };
455
+ internalSource: "other" | "referral" | "instagram" | "unclassified" | "googleAds" | "googleOrganic";
456
+ invitation: {
457
+ code: string | null;
458
+ status: "revoked" | "expired" | "pending" | "accepted" | "declined";
459
+ id: string;
460
+ method: "code" | "email";
461
+ emailDeliveryStatus: "pending" | "sent" | "ambiguous" | "notSent" | "notApplicable";
462
+ questionnaireSelection?: {
463
+ mode: "template";
464
+ title: string;
465
+ templateId: string;
466
+ templateName: string;
467
+ } | {
468
+ mode: "none";
469
+ } | null | undefined;
470
+ connectionOptions?: {
471
+ supportPeriod?: {
472
+ mode: "onAcceptance";
473
+ } | {
474
+ startsAt: string;
475
+ mode: "dates";
476
+ endsAt: string | null;
477
+ } | undefined;
478
+ messagingEnabled?: boolean | undefined;
479
+ } | null | undefined;
480
+ } | null;
481
+ closedAt: string | null;
482
+ callOutcome: "scheduled" | "completed" | "cancelled" | "noShow" | null;
483
+ salesStatus: "signedUp" | "deciding" | "notProceeding" | null;
484
+ notProceedingReason: "other" | "cost" | "bothParentsNotOnBoard" | "notReady" | "ghosted" | "notRightFit" | null;
485
+ notProceedingReasonDetail: string | null;
486
+ convertedAt: string | null;
487
+ familyReportedSourceOtherText?: string | null | undefined;
488
+ internalSourceOtherText?: string | null | undefined;
489
+ canRecordSalesStatus?: boolean | undefined;
490
+ followUpDate?: string | null | undefined;
491
+ };
492
+ rebooked: boolean;
493
+ }, {
494
+ source: "other" | "unknown" | "referral" | "instagram" | "facebook" | "googleSearch" | "recommendation" | "existingClient" | "anotherFamily" | "unclassified" | "googleAds" | "googleOrganic";
495
+ booking: {
496
+ id: string;
497
+ timeZone: string;
498
+ createdAt: string;
499
+ startsAt: string;
500
+ followUpStatus: "noReply" | "closed" | null;
501
+ followUpVersion: number;
502
+ };
503
+ lead: {
504
+ status: "new" | "converted" | "callBooked" | "callCompleted" | "closedNotConverted";
505
+ id: string;
506
+ createdAt: string;
507
+ version: number;
508
+ updatedAt: string;
509
+ organizationId: string;
510
+ coachUserId: string;
511
+ familyReportedSource: "other" | "instagram" | "facebook" | "googleSearch" | "recommendation" | "existingClient" | "anotherFamily";
512
+ booking: {
513
+ status: "scheduled" | "completed" | "cancelled" | "noShow";
514
+ id: string;
515
+ startsAt: string;
516
+ serviceName: string;
517
+ endsAt?: string | undefined;
518
+ followUpStatus?: "noReply" | "closed" | null | undefined;
519
+ } | null;
520
+ contact: {
521
+ caregiverEmail: string;
522
+ childFirstName: string;
523
+ childAgeText: string;
524
+ caregiverName: string;
525
+ caregiverPhone?: string | null | undefined;
526
+ childAgeBand?: "expecting" | "under3Months" | "3To5Months" | "6To8Months" | "9To12Months" | "13To18Months" | "19To24Months" | "over2Years" | undefined;
527
+ };
528
+ internalSource: "other" | "referral" | "instagram" | "unclassified" | "googleAds" | "googleOrganic";
529
+ invitation: {
530
+ code: string | null;
531
+ status: "revoked" | "expired" | "pending" | "accepted" | "declined";
532
+ id: string;
533
+ method: "code" | "email";
534
+ emailDeliveryStatus: "pending" | "sent" | "ambiguous" | "notSent" | "notApplicable";
535
+ questionnaireSelection?: {
536
+ mode: "template";
537
+ title: string;
538
+ templateId: string;
539
+ templateName: string;
540
+ } | {
541
+ mode: "none";
542
+ } | null | undefined;
543
+ connectionOptions?: {
544
+ supportPeriod?: {
545
+ mode: "onAcceptance";
546
+ } | {
547
+ startsAt: string;
548
+ mode: "dates";
549
+ endsAt: string | null;
550
+ } | undefined;
551
+ messagingEnabled?: boolean | undefined;
552
+ } | null | undefined;
553
+ } | null;
554
+ closedAt: string | null;
555
+ callOutcome: "scheduled" | "completed" | "cancelled" | "noShow" | null;
556
+ salesStatus: "signedUp" | "deciding" | "notProceeding" | null;
557
+ notProceedingReason: "other" | "cost" | "bothParentsNotOnBoard" | "notReady" | "ghosted" | "notRightFit" | null;
558
+ notProceedingReasonDetail: string | null;
559
+ convertedAt: string | null;
560
+ familyReportedSourceOtherText?: string | null | undefined;
561
+ internalSourceOtherText?: string | null | undefined;
562
+ canRecordSalesStatus?: boolean | undefined;
563
+ followUpDate?: string | null | undefined;
564
+ };
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
+ booking: {
574
+ id: string;
575
+ timeZone: string;
576
+ createdAt: string;
577
+ startsAt: string;
578
+ followUpStatus: "noReply" | "closed" | null;
579
+ followUpVersion: number;
580
+ };
581
+ lead: {
582
+ status: "new" | "converted" | "callBooked" | "callCompleted" | "closedNotConverted";
583
+ id: string;
584
+ createdAt: string;
585
+ version: number;
586
+ updatedAt: string;
587
+ organizationId: string;
588
+ coachUserId: string;
589
+ familyReportedSource: "other" | "instagram" | "facebook" | "googleSearch" | "recommendation" | "existingClient" | "anotherFamily";
590
+ booking: {
591
+ status: "scheduled" | "completed" | "cancelled" | "noShow";
592
+ id: string;
593
+ startsAt: string;
594
+ serviceName: string;
595
+ endsAt?: string | undefined;
596
+ followUpStatus?: "noReply" | "closed" | null | undefined;
597
+ } | null;
598
+ contact: {
599
+ caregiverEmail: string;
600
+ childFirstName: string;
601
+ childAgeText: string;
602
+ caregiverName: string;
603
+ caregiverPhone?: string | null | undefined;
604
+ childAgeBand?: "expecting" | "under3Months" | "3To5Months" | "6To8Months" | "9To12Months" | "13To18Months" | "19To24Months" | "over2Years" | undefined;
605
+ };
606
+ internalSource: "other" | "referral" | "instagram" | "unclassified" | "googleAds" | "googleOrganic";
607
+ invitation: {
608
+ code: string | null;
609
+ status: "revoked" | "expired" | "pending" | "accepted" | "declined";
610
+ id: string;
611
+ method: "code" | "email";
612
+ emailDeliveryStatus: "pending" | "sent" | "ambiguous" | "notSent" | "notApplicable";
613
+ questionnaireSelection?: {
614
+ mode: "template";
615
+ title: string;
616
+ templateId: string;
617
+ templateName: string;
618
+ } | {
619
+ mode: "none";
620
+ } | null | undefined;
621
+ connectionOptions?: {
622
+ supportPeriod?: {
623
+ mode: "onAcceptance";
624
+ } | {
625
+ startsAt: string;
626
+ mode: "dates";
627
+ endsAt: string | null;
628
+ } | undefined;
629
+ messagingEnabled?: boolean | undefined;
630
+ } | null | undefined;
631
+ } | null;
632
+ closedAt: string | null;
633
+ callOutcome: "scheduled" | "completed" | "cancelled" | "noShow" | null;
634
+ salesStatus: "signedUp" | "deciding" | "notProceeding" | null;
635
+ notProceedingReason: "other" | "cost" | "bothParentsNotOnBoard" | "notReady" | "ghosted" | "notRightFit" | null;
636
+ notProceedingReasonDetail: string | null;
637
+ convertedAt: string | null;
638
+ familyReportedSourceOtherText?: string | null | undefined;
639
+ internalSourceOtherText?: string | null | undefined;
640
+ canRecordSalesStatus?: boolean | undefined;
641
+ followUpDate?: string | null | undefined;
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
+ booking: {
651
+ id: string;
652
+ timeZone: string;
653
+ createdAt: string;
654
+ startsAt: string;
655
+ followUpStatus: "noReply" | "closed" | null;
656
+ followUpVersion: number;
657
+ };
658
+ lead: {
659
+ status: "new" | "converted" | "callBooked" | "callCompleted" | "closedNotConverted";
660
+ id: string;
661
+ createdAt: string;
662
+ version: number;
663
+ updatedAt: string;
664
+ organizationId: string;
665
+ coachUserId: string;
666
+ familyReportedSource: "other" | "instagram" | "facebook" | "googleSearch" | "recommendation" | "existingClient" | "anotherFamily";
667
+ booking: {
668
+ status: "scheduled" | "completed" | "cancelled" | "noShow";
669
+ id: string;
670
+ startsAt: string;
671
+ serviceName: string;
672
+ endsAt?: string | undefined;
673
+ followUpStatus?: "noReply" | "closed" | null | undefined;
674
+ } | null;
675
+ contact: {
676
+ caregiverEmail: string;
677
+ childFirstName: string;
678
+ childAgeText: string;
679
+ caregiverName: string;
680
+ caregiverPhone?: string | null | undefined;
681
+ childAgeBand?: "expecting" | "under3Months" | "3To5Months" | "6To8Months" | "9To12Months" | "13To18Months" | "19To24Months" | "over2Years" | undefined;
682
+ };
683
+ internalSource: "other" | "referral" | "instagram" | "unclassified" | "googleAds" | "googleOrganic";
684
+ invitation: {
685
+ code: string | null;
686
+ status: "revoked" | "expired" | "pending" | "accepted" | "declined";
687
+ id: string;
688
+ method: "code" | "email";
689
+ emailDeliveryStatus: "pending" | "sent" | "ambiguous" | "notSent" | "notApplicable";
690
+ questionnaireSelection?: {
691
+ mode: "template";
692
+ title: string;
693
+ templateId: string;
694
+ templateName: string;
695
+ } | {
696
+ mode: "none";
697
+ } | null | undefined;
698
+ connectionOptions?: {
699
+ supportPeriod?: {
700
+ mode: "onAcceptance";
701
+ } | {
702
+ startsAt: string;
703
+ mode: "dates";
704
+ endsAt: string | null;
705
+ } | undefined;
706
+ messagingEnabled?: boolean | undefined;
707
+ } | null | undefined;
708
+ } | null;
709
+ closedAt: string | null;
710
+ callOutcome: "scheduled" | "completed" | "cancelled" | "noShow" | null;
711
+ salesStatus: "signedUp" | "deciding" | "notProceeding" | null;
712
+ notProceedingReason: "other" | "cost" | "bothParentsNotOnBoard" | "notReady" | "ghosted" | "notRightFit" | null;
713
+ notProceedingReasonDetail: string | null;
714
+ convertedAt: string | null;
715
+ familyReportedSourceOtherText?: string | null | undefined;
716
+ internalSourceOtherText?: string | null | undefined;
717
+ canRecordSalesStatus?: boolean | undefined;
718
+ followUpDate?: string | null | undefined;
719
+ };
720
+ rebooked: boolean;
721
+ }[];
722
+ }>;
723
+ export declare const leadNoShowFollowUpWriteSchema: z.ZodObject<{
724
+ organizationId: z.ZodString;
725
+ coachUserId: z.ZodString;
726
+ } & {
727
+ status: z.ZodNullable<z.ZodEnum<["noReply", "closed"]>>;
728
+ expectedVersion: z.ZodNumber;
729
+ idempotencyKey: z.ZodString;
730
+ }, "strict", z.ZodTypeAny, {
731
+ status: "noReply" | "closed" | null;
732
+ organizationId: string;
733
+ coachUserId: string;
734
+ idempotencyKey: string;
735
+ expectedVersion: number;
736
+ }, {
737
+ status: "noReply" | "closed" | null;
738
+ organizationId: string;
739
+ coachUserId: string;
740
+ idempotencyKey: string;
741
+ expectedVersion: number;
742
+ }>;
743
+ export declare const leadNoShowFollowUpResponseSchema: z.ZodObject<{
744
+ status: z.ZodNullable<z.ZodEnum<["noReply", "closed"]>>;
745
+ version: z.ZodNumber;
746
+ }, "strict", z.ZodTypeAny, {
747
+ status: "noReply" | "closed" | null;
748
+ version: number;
749
+ }, {
750
+ status: "noReply" | "closed" | null;
751
+ version: number;
752
+ }>;
35
753
  export declare const leadInsightRecordsQuerySchema: z.ZodEffects<z.ZodObject<{
36
754
  organizationId: z.ZodString;
37
755
  coachUserId: z.ZodString;
@@ -40,7 +758,7 @@ export declare const leadInsightRecordsQuerySchema: z.ZodEffects<z.ZodObject<{
40
758
  sourceBasis: z.ZodEnum<["coach", "family"]>;
41
759
  } & {
42
760
  metric: z.ZodEnum<["enquiries", "signedUp", "deciding", "notProceeding", "noDecision", "invited", "accepted", "calls", "completed", "noShow", "cancelled", "upcoming", "unresolved"]>;
43
- source: z.ZodOptional<z.ZodEnum<["unclassified", "googleAds", "googleOrganic", "instagram", "referral", "other", "googleSearch", "recommendation", "existingClient", "unknown"]>>;
761
+ source: z.ZodOptional<z.ZodEnum<["unclassified", "googleAds", "googleOrganic", "instagram", "referral", "other", "googleSearch", "recommendation", "existingClient", "facebook", "anotherFamily", "unknown"]>>;
44
762
  month: z.ZodOptional<z.ZodString>;
45
763
  cursor: z.ZodOptional<z.ZodString>;
46
764
  limit: z.ZodDefault<z.ZodNumber>;
@@ -51,8 +769,8 @@ export declare const leadInsightRecordsQuerySchema: z.ZodEffects<z.ZodObject<{
51
769
  startDate: string;
52
770
  endDate: string;
53
771
  sourceBasis: "family" | "coach";
54
- metric: "upcoming" | "completed" | "cancelled" | "noShow" | "accepted" | "invited" | "enquiries" | "signedUp" | "deciding" | "notProceeding" | "noDecision" | "calls" | "unresolved";
55
- source?: "other" | "unknown" | "referral" | "instagram" | "googleSearch" | "recommendation" | "existingClient" | "unclassified" | "googleAds" | "googleOrganic" | undefined;
772
+ metric: "upcoming" | "completed" | "cancelled" | "accepted" | "noShow" | "calls" | "invited" | "enquiries" | "signedUp" | "deciding" | "notProceeding" | "noDecision" | "unresolved";
773
+ source?: "other" | "unknown" | "referral" | "instagram" | "facebook" | "googleSearch" | "recommendation" | "existingClient" | "anotherFamily" | "unclassified" | "googleAds" | "googleOrganic" | undefined;
56
774
  month?: string | undefined;
57
775
  cursor?: string | undefined;
58
776
  }, {
@@ -61,8 +779,8 @@ export declare const leadInsightRecordsQuerySchema: z.ZodEffects<z.ZodObject<{
61
779
  startDate: string;
62
780
  endDate: string;
63
781
  sourceBasis: "family" | "coach";
64
- metric: "upcoming" | "completed" | "cancelled" | "noShow" | "accepted" | "invited" | "enquiries" | "signedUp" | "deciding" | "notProceeding" | "noDecision" | "calls" | "unresolved";
65
- source?: "other" | "unknown" | "referral" | "instagram" | "googleSearch" | "recommendation" | "existingClient" | "unclassified" | "googleAds" | "googleOrganic" | undefined;
782
+ metric: "upcoming" | "completed" | "cancelled" | "accepted" | "noShow" | "calls" | "invited" | "enquiries" | "signedUp" | "deciding" | "notProceeding" | "noDecision" | "unresolved";
783
+ source?: "other" | "unknown" | "referral" | "instagram" | "facebook" | "googleSearch" | "recommendation" | "existingClient" | "anotherFamily" | "unclassified" | "googleAds" | "googleOrganic" | undefined;
66
784
  month?: string | undefined;
67
785
  cursor?: string | undefined;
68
786
  limit?: number | undefined;
@@ -73,8 +791,8 @@ export declare const leadInsightRecordsQuerySchema: z.ZodEffects<z.ZodObject<{
73
791
  startDate: string;
74
792
  endDate: string;
75
793
  sourceBasis: "family" | "coach";
76
- metric: "upcoming" | "completed" | "cancelled" | "noShow" | "accepted" | "invited" | "enquiries" | "signedUp" | "deciding" | "notProceeding" | "noDecision" | "calls" | "unresolved";
77
- source?: "other" | "unknown" | "referral" | "instagram" | "googleSearch" | "recommendation" | "existingClient" | "unclassified" | "googleAds" | "googleOrganic" | undefined;
794
+ metric: "upcoming" | "completed" | "cancelled" | "accepted" | "noShow" | "calls" | "invited" | "enquiries" | "signedUp" | "deciding" | "notProceeding" | "noDecision" | "unresolved";
795
+ source?: "other" | "unknown" | "referral" | "instagram" | "facebook" | "googleSearch" | "recommendation" | "existingClient" | "anotherFamily" | "unclassified" | "googleAds" | "googleOrganic" | undefined;
78
796
  month?: string | undefined;
79
797
  cursor?: string | undefined;
80
798
  }, {
@@ -83,8 +801,8 @@ export declare const leadInsightRecordsQuerySchema: z.ZodEffects<z.ZodObject<{
83
801
  startDate: string;
84
802
  endDate: string;
85
803
  sourceBasis: "family" | "coach";
86
- metric: "upcoming" | "completed" | "cancelled" | "noShow" | "accepted" | "invited" | "enquiries" | "signedUp" | "deciding" | "notProceeding" | "noDecision" | "calls" | "unresolved";
87
- source?: "other" | "unknown" | "referral" | "instagram" | "googleSearch" | "recommendation" | "existingClient" | "unclassified" | "googleAds" | "googleOrganic" | undefined;
804
+ metric: "upcoming" | "completed" | "cancelled" | "accepted" | "noShow" | "calls" | "invited" | "enquiries" | "signedUp" | "deciding" | "notProceeding" | "noDecision" | "unresolved";
805
+ source?: "other" | "unknown" | "referral" | "instagram" | "facebook" | "googleSearch" | "recommendation" | "existingClient" | "anotherFamily" | "unclassified" | "googleAds" | "googleOrganic" | undefined;
88
806
  month?: string | undefined;
89
807
  cursor?: string | undefined;
90
808
  limit?: number | undefined;
@@ -107,31 +825,224 @@ export declare const leadInsightCountsSchema: z.ZodObject<{
107
825
  upcoming: number;
108
826
  completed: number;
109
827
  cancelled: number;
110
- noShow: number;
111
828
  accepted: number;
829
+ noShow: number;
830
+ calls: number;
112
831
  invited: number;
113
832
  enquiries: number;
114
833
  signedUp: number;
115
834
  deciding: number;
116
835
  notProceeding: number;
117
836
  noDecision: number;
118
- calls: number;
119
837
  unresolved: number;
120
838
  }, {
121
839
  upcoming: number;
122
840
  completed: number;
123
841
  cancelled: number;
124
- noShow: number;
125
842
  accepted: number;
843
+ noShow: number;
844
+ calls: number;
126
845
  invited: number;
127
846
  enquiries: number;
128
847
  signedUp: number;
129
848
  deciding: number;
130
849
  notProceeding: number;
131
850
  noDecision: number;
132
- calls: number;
133
851
  unresolved: number;
134
852
  }>;
853
+ export declare const leadInsightTimingSchema: z.ZodObject<{
854
+ signup: z.ZodObject<{
855
+ averageDays: z.ZodNullable<z.ZodNumber>;
856
+ recordedCount: z.ZodNumber;
857
+ missingCount: z.ZodNumber;
858
+ }, "strict", z.ZodTypeAny, {
859
+ averageDays: number | null;
860
+ recordedCount: number;
861
+ missingCount: number;
862
+ }, {
863
+ averageDays: number | null;
864
+ recordedCount: number;
865
+ missingCount: number;
866
+ }>;
867
+ noShowByBookingLeadTime: z.ZodTuple<[z.ZodObject<{
868
+ bucket: z.ZodLiteral<"sameDay">;
869
+ completed: z.ZodNumber;
870
+ noShow: z.ZodNumber;
871
+ }, "strict", z.ZodTypeAny, {
872
+ completed: number;
873
+ noShow: number;
874
+ bucket: "sameDay";
875
+ }, {
876
+ completed: number;
877
+ noShow: number;
878
+ bucket: "sameDay";
879
+ }>, z.ZodObject<{
880
+ bucket: z.ZodLiteral<"oneToTwoDays">;
881
+ completed: z.ZodNumber;
882
+ noShow: z.ZodNumber;
883
+ }, "strict", z.ZodTypeAny, {
884
+ completed: number;
885
+ noShow: number;
886
+ bucket: "oneToTwoDays";
887
+ }, {
888
+ completed: number;
889
+ noShow: number;
890
+ bucket: "oneToTwoDays";
891
+ }>, z.ZodObject<{
892
+ bucket: z.ZodLiteral<"threePlusDays">;
893
+ completed: z.ZodNumber;
894
+ noShow: z.ZodNumber;
895
+ }, "strict", z.ZodTypeAny, {
896
+ completed: number;
897
+ noShow: number;
898
+ bucket: "threePlusDays";
899
+ }, {
900
+ completed: number;
901
+ noShow: number;
902
+ bucket: "threePlusDays";
903
+ }>, z.ZodObject<{
904
+ bucket: z.ZodLiteral<"unknown">;
905
+ completed: z.ZodNumber;
906
+ noShow: z.ZodNumber;
907
+ }, "strict", z.ZodTypeAny, {
908
+ completed: number;
909
+ noShow: number;
910
+ bucket: "unknown";
911
+ }, {
912
+ completed: number;
913
+ noShow: number;
914
+ bucket: "unknown";
915
+ }>], null>;
916
+ noShowByCallTime: z.ZodTuple<[z.ZodObject<{
917
+ bucket: z.ZodLiteral<"morning">;
918
+ completed: z.ZodNumber;
919
+ noShow: z.ZodNumber;
920
+ }, "strict", z.ZodTypeAny, {
921
+ completed: number;
922
+ noShow: number;
923
+ bucket: "morning";
924
+ }, {
925
+ completed: number;
926
+ noShow: number;
927
+ bucket: "morning";
928
+ }>, z.ZodObject<{
929
+ bucket: z.ZodLiteral<"afternoon">;
930
+ completed: z.ZodNumber;
931
+ noShow: z.ZodNumber;
932
+ }, "strict", z.ZodTypeAny, {
933
+ completed: number;
934
+ noShow: number;
935
+ bucket: "afternoon";
936
+ }, {
937
+ completed: number;
938
+ noShow: number;
939
+ bucket: "afternoon";
940
+ }>, z.ZodObject<{
941
+ bucket: z.ZodLiteral<"evening">;
942
+ completed: z.ZodNumber;
943
+ noShow: z.ZodNumber;
944
+ }, "strict", z.ZodTypeAny, {
945
+ completed: number;
946
+ noShow: number;
947
+ bucket: "evening";
948
+ }, {
949
+ completed: number;
950
+ noShow: number;
951
+ bucket: "evening";
952
+ }>, z.ZodObject<{
953
+ bucket: z.ZodLiteral<"unknown">;
954
+ completed: z.ZodNumber;
955
+ noShow: z.ZodNumber;
956
+ }, "strict", z.ZodTypeAny, {
957
+ completed: number;
958
+ noShow: number;
959
+ bucket: "unknown";
960
+ }, {
961
+ completed: number;
962
+ noShow: number;
963
+ bucket: "unknown";
964
+ }>], null>;
965
+ }, "strict", z.ZodTypeAny, {
966
+ signup: {
967
+ averageDays: number | null;
968
+ recordedCount: number;
969
+ missingCount: number;
970
+ };
971
+ noShowByBookingLeadTime: [{
972
+ completed: number;
973
+ noShow: number;
974
+ bucket: "sameDay";
975
+ }, {
976
+ completed: number;
977
+ noShow: number;
978
+ bucket: "oneToTwoDays";
979
+ }, {
980
+ completed: number;
981
+ noShow: number;
982
+ bucket: "threePlusDays";
983
+ }, {
984
+ completed: number;
985
+ noShow: number;
986
+ bucket: "unknown";
987
+ }];
988
+ noShowByCallTime: [{
989
+ completed: number;
990
+ noShow: number;
991
+ bucket: "morning";
992
+ }, {
993
+ completed: number;
994
+ noShow: number;
995
+ bucket: "afternoon";
996
+ }, {
997
+ completed: number;
998
+ noShow: number;
999
+ bucket: "evening";
1000
+ }, {
1001
+ completed: number;
1002
+ noShow: number;
1003
+ bucket: "unknown";
1004
+ }];
1005
+ }, {
1006
+ signup: {
1007
+ averageDays: number | null;
1008
+ recordedCount: number;
1009
+ missingCount: number;
1010
+ };
1011
+ noShowByBookingLeadTime: [{
1012
+ completed: number;
1013
+ noShow: number;
1014
+ bucket: "sameDay";
1015
+ }, {
1016
+ completed: number;
1017
+ noShow: number;
1018
+ bucket: "oneToTwoDays";
1019
+ }, {
1020
+ completed: number;
1021
+ noShow: number;
1022
+ bucket: "threePlusDays";
1023
+ }, {
1024
+ completed: number;
1025
+ noShow: number;
1026
+ bucket: "unknown";
1027
+ }];
1028
+ noShowByCallTime: [{
1029
+ completed: number;
1030
+ noShow: number;
1031
+ bucket: "morning";
1032
+ }, {
1033
+ completed: number;
1034
+ noShow: number;
1035
+ bucket: "afternoon";
1036
+ }, {
1037
+ completed: number;
1038
+ noShow: number;
1039
+ bucket: "evening";
1040
+ }, {
1041
+ completed: number;
1042
+ noShow: number;
1043
+ bucket: "unknown";
1044
+ }];
1045
+ }>;
135
1046
  export declare const leadInsightsResponseSchema: z.ZodObject<{
136
1047
  asOf: z.ZodString;
137
1048
  timeZone: z.ZodLiteral<"UTC">;
@@ -153,33 +1064,33 @@ export declare const leadInsightsResponseSchema: z.ZodObject<{
153
1064
  upcoming: number;
154
1065
  completed: number;
155
1066
  cancelled: number;
156
- noShow: number;
157
1067
  accepted: number;
1068
+ noShow: number;
1069
+ calls: number;
158
1070
  invited: number;
159
1071
  enquiries: number;
160
1072
  signedUp: number;
161
1073
  deciding: number;
162
1074
  notProceeding: number;
163
1075
  noDecision: number;
164
- calls: number;
165
1076
  unresolved: number;
166
1077
  }, {
167
1078
  upcoming: number;
168
1079
  completed: number;
169
1080
  cancelled: number;
170
- noShow: number;
171
1081
  accepted: number;
1082
+ noShow: number;
1083
+ calls: number;
172
1084
  invited: number;
173
1085
  enquiries: number;
174
1086
  signedUp: number;
175
1087
  deciding: number;
176
1088
  notProceeding: number;
177
1089
  noDecision: number;
178
- calls: number;
179
1090
  unresolved: number;
180
1091
  }>;
181
1092
  sources: z.ZodArray<z.ZodObject<{
182
- source: z.ZodEnum<["unclassified", "googleAds", "googleOrganic", "instagram", "referral", "other", "googleSearch", "recommendation", "existingClient", "unknown"]>;
1093
+ source: z.ZodEnum<["unclassified", "googleAds", "googleOrganic", "instagram", "referral", "other", "googleSearch", "recommendation", "existingClient", "facebook", "anotherFamily", "unknown"]>;
183
1094
  counts: z.ZodObject<{
184
1095
  enquiries: z.ZodNumber;
185
1096
  signedUp: z.ZodNumber;
@@ -198,63 +1109,63 @@ export declare const leadInsightsResponseSchema: z.ZodObject<{
198
1109
  upcoming: number;
199
1110
  completed: number;
200
1111
  cancelled: number;
201
- noShow: number;
202
1112
  accepted: number;
1113
+ noShow: number;
1114
+ calls: number;
203
1115
  invited: number;
204
1116
  enquiries: number;
205
1117
  signedUp: number;
206
1118
  deciding: number;
207
1119
  notProceeding: number;
208
1120
  noDecision: number;
209
- calls: number;
210
1121
  unresolved: number;
211
1122
  }, {
212
1123
  upcoming: number;
213
1124
  completed: number;
214
1125
  cancelled: number;
215
- noShow: number;
216
1126
  accepted: number;
1127
+ noShow: number;
1128
+ calls: number;
217
1129
  invited: number;
218
1130
  enquiries: number;
219
1131
  signedUp: number;
220
1132
  deciding: number;
221
1133
  notProceeding: number;
222
1134
  noDecision: number;
223
- calls: number;
224
1135
  unresolved: number;
225
1136
  }>;
226
1137
  }, "strict", z.ZodTypeAny, {
227
- source: "other" | "unknown" | "referral" | "instagram" | "googleSearch" | "recommendation" | "existingClient" | "unclassified" | "googleAds" | "googleOrganic";
1138
+ source: "other" | "unknown" | "referral" | "instagram" | "facebook" | "googleSearch" | "recommendation" | "existingClient" | "anotherFamily" | "unclassified" | "googleAds" | "googleOrganic";
228
1139
  counts: {
229
1140
  upcoming: number;
230
1141
  completed: number;
231
1142
  cancelled: number;
232
- noShow: number;
233
1143
  accepted: number;
1144
+ noShow: number;
1145
+ calls: number;
234
1146
  invited: number;
235
1147
  enquiries: number;
236
1148
  signedUp: number;
237
1149
  deciding: number;
238
1150
  notProceeding: number;
239
1151
  noDecision: number;
240
- calls: number;
241
1152
  unresolved: number;
242
1153
  };
243
1154
  }, {
244
- source: "other" | "unknown" | "referral" | "instagram" | "googleSearch" | "recommendation" | "existingClient" | "unclassified" | "googleAds" | "googleOrganic";
1155
+ source: "other" | "unknown" | "referral" | "instagram" | "facebook" | "googleSearch" | "recommendation" | "existingClient" | "anotherFamily" | "unclassified" | "googleAds" | "googleOrganic";
245
1156
  counts: {
246
1157
  upcoming: number;
247
1158
  completed: number;
248
1159
  cancelled: number;
249
- noShow: number;
250
1160
  accepted: number;
1161
+ noShow: number;
1162
+ calls: number;
251
1163
  invited: number;
252
1164
  enquiries: number;
253
1165
  signedUp: number;
254
1166
  deciding: number;
255
1167
  notProceeding: number;
256
1168
  noDecision: number;
257
- calls: number;
258
1169
  unresolved: number;
259
1170
  };
260
1171
  }>, "many">;
@@ -278,29 +1189,29 @@ export declare const leadInsightsResponseSchema: z.ZodObject<{
278
1189
  upcoming: number;
279
1190
  completed: number;
280
1191
  cancelled: number;
281
- noShow: number;
282
1192
  accepted: number;
1193
+ noShow: number;
1194
+ calls: number;
283
1195
  invited: number;
284
1196
  enquiries: number;
285
1197
  signedUp: number;
286
1198
  deciding: number;
287
1199
  notProceeding: number;
288
1200
  noDecision: number;
289
- calls: number;
290
1201
  unresolved: number;
291
1202
  }, {
292
1203
  upcoming: number;
293
1204
  completed: number;
294
1205
  cancelled: number;
295
- noShow: number;
296
1206
  accepted: number;
1207
+ noShow: number;
1208
+ calls: number;
297
1209
  invited: number;
298
1210
  enquiries: number;
299
1211
  signedUp: number;
300
1212
  deciding: number;
301
1213
  notProceeding: number;
302
1214
  noDecision: number;
303
- calls: number;
304
1215
  unresolved: number;
305
1216
  }>;
306
1217
  }, "strict", z.ZodTypeAny, {
@@ -308,15 +1219,15 @@ export declare const leadInsightsResponseSchema: z.ZodObject<{
308
1219
  upcoming: number;
309
1220
  completed: number;
310
1221
  cancelled: number;
311
- noShow: number;
312
1222
  accepted: number;
1223
+ noShow: number;
1224
+ calls: number;
313
1225
  invited: number;
314
1226
  enquiries: number;
315
1227
  signedUp: number;
316
1228
  deciding: number;
317
1229
  notProceeding: number;
318
1230
  noDecision: number;
319
- calls: number;
320
1231
  unresolved: number;
321
1232
  };
322
1233
  month: string;
@@ -325,51 +1236,244 @@ export declare const leadInsightsResponseSchema: z.ZodObject<{
325
1236
  upcoming: number;
326
1237
  completed: number;
327
1238
  cancelled: number;
328
- noShow: number;
329
1239
  accepted: number;
1240
+ noShow: number;
1241
+ calls: number;
330
1242
  invited: number;
331
1243
  enquiries: number;
332
1244
  signedUp: number;
333
1245
  deciding: number;
334
1246
  notProceeding: number;
335
1247
  noDecision: number;
336
- calls: number;
337
1248
  unresolved: number;
338
1249
  };
339
1250
  month: string;
340
1251
  }>, "many">;
1252
+ timing: z.ZodOptional<z.ZodObject<{
1253
+ signup: z.ZodObject<{
1254
+ averageDays: z.ZodNullable<z.ZodNumber>;
1255
+ recordedCount: z.ZodNumber;
1256
+ missingCount: z.ZodNumber;
1257
+ }, "strict", z.ZodTypeAny, {
1258
+ averageDays: number | null;
1259
+ recordedCount: number;
1260
+ missingCount: number;
1261
+ }, {
1262
+ averageDays: number | null;
1263
+ recordedCount: number;
1264
+ missingCount: number;
1265
+ }>;
1266
+ noShowByBookingLeadTime: z.ZodTuple<[z.ZodObject<{
1267
+ bucket: z.ZodLiteral<"sameDay">;
1268
+ completed: z.ZodNumber;
1269
+ noShow: z.ZodNumber;
1270
+ }, "strict", z.ZodTypeAny, {
1271
+ completed: number;
1272
+ noShow: number;
1273
+ bucket: "sameDay";
1274
+ }, {
1275
+ completed: number;
1276
+ noShow: number;
1277
+ bucket: "sameDay";
1278
+ }>, z.ZodObject<{
1279
+ bucket: z.ZodLiteral<"oneToTwoDays">;
1280
+ completed: z.ZodNumber;
1281
+ noShow: z.ZodNumber;
1282
+ }, "strict", z.ZodTypeAny, {
1283
+ completed: number;
1284
+ noShow: number;
1285
+ bucket: "oneToTwoDays";
1286
+ }, {
1287
+ completed: number;
1288
+ noShow: number;
1289
+ bucket: "oneToTwoDays";
1290
+ }>, z.ZodObject<{
1291
+ bucket: z.ZodLiteral<"threePlusDays">;
1292
+ completed: z.ZodNumber;
1293
+ noShow: z.ZodNumber;
1294
+ }, "strict", z.ZodTypeAny, {
1295
+ completed: number;
1296
+ noShow: number;
1297
+ bucket: "threePlusDays";
1298
+ }, {
1299
+ completed: number;
1300
+ noShow: number;
1301
+ bucket: "threePlusDays";
1302
+ }>, z.ZodObject<{
1303
+ bucket: z.ZodLiteral<"unknown">;
1304
+ completed: z.ZodNumber;
1305
+ noShow: z.ZodNumber;
1306
+ }, "strict", z.ZodTypeAny, {
1307
+ completed: number;
1308
+ noShow: number;
1309
+ bucket: "unknown";
1310
+ }, {
1311
+ completed: number;
1312
+ noShow: number;
1313
+ bucket: "unknown";
1314
+ }>], null>;
1315
+ noShowByCallTime: z.ZodTuple<[z.ZodObject<{
1316
+ bucket: z.ZodLiteral<"morning">;
1317
+ completed: z.ZodNumber;
1318
+ noShow: z.ZodNumber;
1319
+ }, "strict", z.ZodTypeAny, {
1320
+ completed: number;
1321
+ noShow: number;
1322
+ bucket: "morning";
1323
+ }, {
1324
+ completed: number;
1325
+ noShow: number;
1326
+ bucket: "morning";
1327
+ }>, z.ZodObject<{
1328
+ bucket: z.ZodLiteral<"afternoon">;
1329
+ completed: z.ZodNumber;
1330
+ noShow: z.ZodNumber;
1331
+ }, "strict", z.ZodTypeAny, {
1332
+ completed: number;
1333
+ noShow: number;
1334
+ bucket: "afternoon";
1335
+ }, {
1336
+ completed: number;
1337
+ noShow: number;
1338
+ bucket: "afternoon";
1339
+ }>, z.ZodObject<{
1340
+ bucket: z.ZodLiteral<"evening">;
1341
+ completed: z.ZodNumber;
1342
+ noShow: z.ZodNumber;
1343
+ }, "strict", z.ZodTypeAny, {
1344
+ completed: number;
1345
+ noShow: number;
1346
+ bucket: "evening";
1347
+ }, {
1348
+ completed: number;
1349
+ noShow: number;
1350
+ bucket: "evening";
1351
+ }>, z.ZodObject<{
1352
+ bucket: z.ZodLiteral<"unknown">;
1353
+ completed: z.ZodNumber;
1354
+ noShow: z.ZodNumber;
1355
+ }, "strict", z.ZodTypeAny, {
1356
+ completed: number;
1357
+ noShow: number;
1358
+ bucket: "unknown";
1359
+ }, {
1360
+ completed: number;
1361
+ noShow: number;
1362
+ bucket: "unknown";
1363
+ }>], null>;
1364
+ }, "strict", z.ZodTypeAny, {
1365
+ signup: {
1366
+ averageDays: number | null;
1367
+ recordedCount: number;
1368
+ missingCount: number;
1369
+ };
1370
+ noShowByBookingLeadTime: [{
1371
+ completed: number;
1372
+ noShow: number;
1373
+ bucket: "sameDay";
1374
+ }, {
1375
+ completed: number;
1376
+ noShow: number;
1377
+ bucket: "oneToTwoDays";
1378
+ }, {
1379
+ completed: number;
1380
+ noShow: number;
1381
+ bucket: "threePlusDays";
1382
+ }, {
1383
+ completed: number;
1384
+ noShow: number;
1385
+ bucket: "unknown";
1386
+ }];
1387
+ noShowByCallTime: [{
1388
+ completed: number;
1389
+ noShow: number;
1390
+ bucket: "morning";
1391
+ }, {
1392
+ completed: number;
1393
+ noShow: number;
1394
+ bucket: "afternoon";
1395
+ }, {
1396
+ completed: number;
1397
+ noShow: number;
1398
+ bucket: "evening";
1399
+ }, {
1400
+ completed: number;
1401
+ noShow: number;
1402
+ bucket: "unknown";
1403
+ }];
1404
+ }, {
1405
+ signup: {
1406
+ averageDays: number | null;
1407
+ recordedCount: number;
1408
+ missingCount: number;
1409
+ };
1410
+ noShowByBookingLeadTime: [{
1411
+ completed: number;
1412
+ noShow: number;
1413
+ bucket: "sameDay";
1414
+ }, {
1415
+ completed: number;
1416
+ noShow: number;
1417
+ bucket: "oneToTwoDays";
1418
+ }, {
1419
+ completed: number;
1420
+ noShow: number;
1421
+ bucket: "threePlusDays";
1422
+ }, {
1423
+ completed: number;
1424
+ noShow: number;
1425
+ bucket: "unknown";
1426
+ }];
1427
+ noShowByCallTime: [{
1428
+ completed: number;
1429
+ noShow: number;
1430
+ bucket: "morning";
1431
+ }, {
1432
+ completed: number;
1433
+ noShow: number;
1434
+ bucket: "afternoon";
1435
+ }, {
1436
+ completed: number;
1437
+ noShow: number;
1438
+ bucket: "evening";
1439
+ }, {
1440
+ completed: number;
1441
+ noShow: number;
1442
+ bucket: "unknown";
1443
+ }];
1444
+ }>>;
341
1445
  }, "strict", z.ZodTypeAny, {
342
1446
  timeZone: "UTC";
343
1447
  totals: {
344
1448
  upcoming: number;
345
1449
  completed: number;
346
1450
  cancelled: number;
347
- noShow: number;
348
1451
  accepted: number;
1452
+ noShow: number;
1453
+ calls: number;
349
1454
  invited: number;
350
1455
  enquiries: number;
351
1456
  signedUp: number;
352
1457
  deciding: number;
353
1458
  notProceeding: number;
354
1459
  noDecision: number;
355
- calls: number;
356
1460
  unresolved: number;
357
1461
  };
358
1462
  sources: {
359
- source: "other" | "unknown" | "referral" | "instagram" | "googleSearch" | "recommendation" | "existingClient" | "unclassified" | "googleAds" | "googleOrganic";
1463
+ source: "other" | "unknown" | "referral" | "instagram" | "facebook" | "googleSearch" | "recommendation" | "existingClient" | "anotherFamily" | "unclassified" | "googleAds" | "googleOrganic";
360
1464
  counts: {
361
1465
  upcoming: number;
362
1466
  completed: number;
363
1467
  cancelled: number;
364
- noShow: number;
365
1468
  accepted: number;
1469
+ noShow: number;
1470
+ calls: number;
366
1471
  invited: number;
367
1472
  enquiries: number;
368
1473
  signedUp: number;
369
1474
  deciding: number;
370
1475
  notProceeding: number;
371
1476
  noDecision: number;
372
- calls: number;
373
1477
  unresolved: number;
374
1478
  };
375
1479
  }[];
@@ -379,51 +1483,92 @@ export declare const leadInsightsResponseSchema: z.ZodObject<{
379
1483
  upcoming: number;
380
1484
  completed: number;
381
1485
  cancelled: number;
382
- noShow: number;
383
1486
  accepted: number;
1487
+ noShow: number;
1488
+ calls: number;
384
1489
  invited: number;
385
1490
  enquiries: number;
386
1491
  signedUp: number;
387
1492
  deciding: number;
388
1493
  notProceeding: number;
389
1494
  noDecision: number;
390
- calls: number;
391
1495
  unresolved: number;
392
1496
  };
393
1497
  month: string;
394
1498
  }[];
1499
+ timing?: {
1500
+ signup: {
1501
+ averageDays: number | null;
1502
+ recordedCount: number;
1503
+ missingCount: number;
1504
+ };
1505
+ noShowByBookingLeadTime: [{
1506
+ completed: number;
1507
+ noShow: number;
1508
+ bucket: "sameDay";
1509
+ }, {
1510
+ completed: number;
1511
+ noShow: number;
1512
+ bucket: "oneToTwoDays";
1513
+ }, {
1514
+ completed: number;
1515
+ noShow: number;
1516
+ bucket: "threePlusDays";
1517
+ }, {
1518
+ completed: number;
1519
+ noShow: number;
1520
+ bucket: "unknown";
1521
+ }];
1522
+ noShowByCallTime: [{
1523
+ completed: number;
1524
+ noShow: number;
1525
+ bucket: "morning";
1526
+ }, {
1527
+ completed: number;
1528
+ noShow: number;
1529
+ bucket: "afternoon";
1530
+ }, {
1531
+ completed: number;
1532
+ noShow: number;
1533
+ bucket: "evening";
1534
+ }, {
1535
+ completed: number;
1536
+ noShow: number;
1537
+ bucket: "unknown";
1538
+ }];
1539
+ } | undefined;
395
1540
  }, {
396
1541
  timeZone: "UTC";
397
1542
  totals: {
398
1543
  upcoming: number;
399
1544
  completed: number;
400
1545
  cancelled: number;
401
- noShow: number;
402
1546
  accepted: number;
1547
+ noShow: number;
1548
+ calls: number;
403
1549
  invited: number;
404
1550
  enquiries: number;
405
1551
  signedUp: number;
406
1552
  deciding: number;
407
1553
  notProceeding: number;
408
1554
  noDecision: number;
409
- calls: number;
410
1555
  unresolved: number;
411
1556
  };
412
1557
  sources: {
413
- source: "other" | "unknown" | "referral" | "instagram" | "googleSearch" | "recommendation" | "existingClient" | "unclassified" | "googleAds" | "googleOrganic";
1558
+ source: "other" | "unknown" | "referral" | "instagram" | "facebook" | "googleSearch" | "recommendation" | "existingClient" | "anotherFamily" | "unclassified" | "googleAds" | "googleOrganic";
414
1559
  counts: {
415
1560
  upcoming: number;
416
1561
  completed: number;
417
1562
  cancelled: number;
418
- noShow: number;
419
1563
  accepted: number;
1564
+ noShow: number;
1565
+ calls: number;
420
1566
  invited: number;
421
1567
  enquiries: number;
422
1568
  signedUp: number;
423
1569
  deciding: number;
424
1570
  notProceeding: number;
425
1571
  noDecision: number;
426
- calls: number;
427
1572
  unresolved: number;
428
1573
  };
429
1574
  }[];
@@ -433,23 +1578,69 @@ export declare const leadInsightsResponseSchema: z.ZodObject<{
433
1578
  upcoming: number;
434
1579
  completed: number;
435
1580
  cancelled: number;
436
- noShow: number;
437
1581
  accepted: number;
1582
+ noShow: number;
1583
+ calls: number;
438
1584
  invited: number;
439
1585
  enquiries: number;
440
1586
  signedUp: number;
441
1587
  deciding: number;
442
1588
  notProceeding: number;
443
1589
  noDecision: number;
444
- calls: number;
445
1590
  unresolved: number;
446
1591
  };
447
1592
  month: string;
448
1593
  }[];
1594
+ timing?: {
1595
+ signup: {
1596
+ averageDays: number | null;
1597
+ recordedCount: number;
1598
+ missingCount: number;
1599
+ };
1600
+ noShowByBookingLeadTime: [{
1601
+ completed: number;
1602
+ noShow: number;
1603
+ bucket: "sameDay";
1604
+ }, {
1605
+ completed: number;
1606
+ noShow: number;
1607
+ bucket: "oneToTwoDays";
1608
+ }, {
1609
+ completed: number;
1610
+ noShow: number;
1611
+ bucket: "threePlusDays";
1612
+ }, {
1613
+ completed: number;
1614
+ noShow: number;
1615
+ bucket: "unknown";
1616
+ }];
1617
+ noShowByCallTime: [{
1618
+ completed: number;
1619
+ noShow: number;
1620
+ bucket: "morning";
1621
+ }, {
1622
+ completed: number;
1623
+ noShow: number;
1624
+ bucket: "afternoon";
1625
+ }, {
1626
+ completed: number;
1627
+ noShow: number;
1628
+ bucket: "evening";
1629
+ }, {
1630
+ completed: number;
1631
+ noShow: number;
1632
+ bucket: "unknown";
1633
+ }];
1634
+ } | undefined;
449
1635
  }>;
450
1636
  export type LeadInsightMetric = z.infer<typeof leadInsightMetricSchema>;
451
1637
  export type LeadInsightSource = z.infer<typeof leadInsightSourceSchema>;
452
1638
  export type LeadInsightsQuery = z.infer<typeof leadInsightsQuerySchema>;
1639
+ export type LeadNoShowsQuery = z.infer<typeof leadNoShowsQuerySchema>;
1640
+ export type LeadNoShowsResponse = z.infer<typeof leadNoShowsResponseSchema>;
1641
+ export type LeadNoShowFollowUpWrite = z.infer<typeof leadNoShowFollowUpWriteSchema>;
1642
+ export type LeadNoShowFollowUpResponse = z.infer<typeof leadNoShowFollowUpResponseSchema>;
453
1643
  export type LeadInsightRecordsQuery = z.infer<typeof leadInsightRecordsQuerySchema>;
454
1644
  export type LeadInsightCounts = z.infer<typeof leadInsightCountsSchema>;
1645
+ export type LeadInsightTiming = z.infer<typeof leadInsightTimingSchema>;
455
1646
  export type LeadInsightsResponse = z.infer<typeof leadInsightsResponseSchema>;