@nikthegeek/dreamsforlittles-shared 0.9.0 → 0.13.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 (96) hide show
  1. package/dist/access.d.ts +1887 -335
  2. package/dist/access.js +18 -4
  3. package/dist/access.js.map +1 -1
  4. package/dist/admin.d.ts +6231 -1621
  5. package/dist/admin.js +74 -0
  6. package/dist/admin.js.map +1 -1
  7. package/dist/allergen-tracking.d.ts +224 -0
  8. package/dist/allergen-tracking.js +62 -0
  9. package/dist/allergen-tracking.js.map +1 -0
  10. package/dist/allergen-tracking.test.d.ts +1 -0
  11. package/dist/allergen-tracking.test.js +36 -0
  12. package/dist/allergen-tracking.test.js.map +1 -0
  13. package/dist/allergy-ladders.d.ts +104 -46
  14. package/dist/allergy-ladders.js +10 -70
  15. package/dist/allergy-ladders.js.map +1 -1
  16. package/dist/analysis.d.ts +159 -2
  17. package/dist/api.d.ts +5 -5
  18. package/dist/billing.d.ts +144 -0
  19. package/dist/billing.js +89 -0
  20. package/dist/billing.js.map +1 -1
  21. package/dist/booking-forms.d.ts +1057 -0
  22. package/dist/booking-forms.js +206 -0
  23. package/dist/booking-forms.js.map +1 -0
  24. package/dist/booking-system.d.ts +7934 -0
  25. package/dist/booking-system.js +556 -0
  26. package/dist/booking-system.js.map +1 -0
  27. package/dist/booking-system.test.d.ts +1 -0
  28. package/dist/booking-system.test.js +510 -0
  29. package/dist/booking-system.test.js.map +1 -0
  30. package/dist/branding.d.ts +109 -0
  31. package/dist/branding.js +294 -102
  32. package/dist/branding.js.map +1 -1
  33. package/dist/branding.test.js +145 -31
  34. package/dist/branding.test.js.map +1 -1
  35. package/dist/calendar-connections.d.ts +265 -0
  36. package/dist/calendar-connections.js +97 -0
  37. package/dist/calendar-connections.js.map +1 -0
  38. package/dist/calendar-connections.test.d.ts +1 -0
  39. package/dist/calendar-connections.test.js +65 -0
  40. package/dist/calendar-connections.test.js.map +1 -0
  41. package/dist/client-notices.d.ts +79 -79
  42. package/dist/coach-activity-notifications.d.ts +20 -20
  43. package/dist/coach-activity-notifications.js +4 -1
  44. package/dist/coach-activity-notifications.js.map +1 -1
  45. package/dist/coach-activity-notifications.test.js +17 -0
  46. package/dist/coach-activity-notifications.test.js.map +1 -1
  47. package/dist/coach-engagement.d.ts +613 -0
  48. package/dist/coach-engagement.js +123 -0
  49. package/dist/coach-engagement.js.map +1 -0
  50. package/dist/coach-family-chat.d.ts +111 -84
  51. package/dist/coach-family-chat.js +14 -0
  52. package/dist/coach-family-chat.js.map +1 -1
  53. package/dist/coach-family-chat.test.js +27 -1
  54. package/dist/coach-family-chat.test.js.map +1 -1
  55. package/dist/coach-growth.d.ts +20 -20
  56. package/dist/coach.d.ts +3496 -256
  57. package/dist/coach.js +110 -7
  58. package/dist/coach.js.map +1 -1
  59. package/dist/enums.d.ts +1 -1
  60. package/dist/enums.js +7 -1
  61. package/dist/enums.js.map +1 -1
  62. package/dist/errors.d.ts +11 -4
  63. package/dist/errors.js +21 -0
  64. package/dist/errors.js.map +1 -1
  65. package/dist/family-growth.d.ts +24 -24
  66. package/dist/family-invitations.d.ts +134 -0
  67. package/dist/family-profile-artifacts.d.ts +448 -188
  68. package/dist/family-profile-artifacts.js +5 -1
  69. package/dist/family-profile-artifacts.js.map +1 -1
  70. package/dist/family.d.ts +3954 -121
  71. package/dist/family.js +215 -20
  72. package/dist/family.js.map +1 -1
  73. package/dist/family.test.js +180 -2
  74. package/dist/family.test.js.map +1 -1
  75. package/dist/files.d.ts +6 -6
  76. package/dist/index.d.ts +7 -0
  77. package/dist/index.js +7 -0
  78. package/dist/index.js.map +1 -1
  79. package/dist/invites.d.ts +33 -4
  80. package/dist/lead-management.d.ts +1222 -0
  81. package/dist/lead-management.js +210 -0
  82. package/dist/lead-management.js.map +1 -0
  83. package/dist/lead-management.test.d.ts +1 -0
  84. package/dist/lead-management.test.js +68 -0
  85. package/dist/lead-management.test.js.map +1 -0
  86. package/dist/notification-banners.d.ts +12 -12
  87. package/dist/product-analytics.d.ts +202 -202
  88. package/dist/product-analytics.js +31 -1
  89. package/dist/product-analytics.js.map +1 -1
  90. package/dist/push-devices.d.ts +6 -6
  91. package/dist/subscription-cancellation-feedback.d.ts +12 -12
  92. package/dist/support-tickets.d.ts +12 -12
  93. package/dist/zoom-meetings.d.ts +62 -0
  94. package/dist/zoom-meetings.js +24 -0
  95. package/dist/zoom-meetings.js.map +1 -0
  96. package/package.json +1 -1
@@ -0,0 +1,1222 @@
1
+ import { z } from "zod";
2
+ export declare const leadStatusSchema: z.ZodEnum<["new", "callBooked", "callCompleted", "converted", "closedNotConverted"]>;
3
+ export declare const leadMutableStatusSchema: z.ZodEnum<["new", "callBooked", "callCompleted", "closedNotConverted"]>;
4
+ export declare const leadInternalSourceSchema: z.ZodEnum<["unclassified", "googleAds", "googleOrganic", "instagram", "referral", "other"]>;
5
+ export declare const leadConversionMethodSchema: z.ZodEnum<["code", "email"]>;
6
+ export declare const leadInvitationEmailStatusSchema: z.ZodEnum<["pending", "sent", "ambiguous", "notSent", "notApplicable"]>;
7
+ export declare const leadTargetSchema: z.ZodObject<{
8
+ organizationId: z.ZodString;
9
+ organizationName: z.ZodString;
10
+ coachUserId: z.ZodString;
11
+ coachName: z.ZodString;
12
+ actorCapability: z.ZodEnum<["self", "organizationManager"]>;
13
+ }, "strip", z.ZodTypeAny, {
14
+ organizationId: string;
15
+ coachUserId: string;
16
+ organizationName: string;
17
+ coachName: string;
18
+ actorCapability: "self" | "organizationManager";
19
+ }, {
20
+ organizationId: string;
21
+ coachUserId: string;
22
+ organizationName: string;
23
+ coachName: string;
24
+ actorCapability: "self" | "organizationManager";
25
+ }>;
26
+ export declare const leadContactSchema: z.ZodObject<{
27
+ caregiverName: z.ZodString;
28
+ caregiverEmail: z.ZodString;
29
+ caregiverPhone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ childFirstName: z.ZodString;
31
+ childAgeBand: z.ZodEnum<["expecting", "under3Months", "3To5Months", "6To8Months", "9To12Months", "13To18Months", "19To24Months", "over2Years"]>;
32
+ }, "strip", z.ZodTypeAny, {
33
+ caregiverName: string;
34
+ caregiverEmail: string;
35
+ childFirstName: string;
36
+ childAgeBand: "expecting" | "under3Months" | "3To5Months" | "6To8Months" | "9To12Months" | "13To18Months" | "19To24Months" | "over2Years";
37
+ caregiverPhone?: string | null | undefined;
38
+ }, {
39
+ caregiverName: string;
40
+ caregiverEmail: string;
41
+ childFirstName: string;
42
+ childAgeBand: "expecting" | "under3Months" | "3To5Months" | "6To8Months" | "9To12Months" | "13To18Months" | "19To24Months" | "over2Years";
43
+ caregiverPhone?: string | null | undefined;
44
+ }>;
45
+ export declare const leadBookingLinkSchema: z.ZodObject<{
46
+ id: z.ZodString;
47
+ status: z.ZodEnum<["scheduled", "completed", "cancelled", "noShow"]>;
48
+ startsAt: z.ZodString;
49
+ serviceName: z.ZodString;
50
+ }, "strip", z.ZodTypeAny, {
51
+ status: "scheduled" | "completed" | "cancelled" | "noShow";
52
+ id: string;
53
+ startsAt: string;
54
+ serviceName: string;
55
+ }, {
56
+ status: "scheduled" | "completed" | "cancelled" | "noShow";
57
+ id: string;
58
+ startsAt: string;
59
+ serviceName: string;
60
+ }>;
61
+ export declare const leadInvitationStateSchema: z.ZodObject<{
62
+ id: z.ZodString;
63
+ method: z.ZodEnum<["code", "email"]>;
64
+ status: z.ZodEnum<["pending", "accepted", "declined", "revoked", "expired"]>;
65
+ code: z.ZodNullable<z.ZodString>;
66
+ emailDeliveryStatus: z.ZodEnum<["pending", "sent", "ambiguous", "notSent", "notApplicable"]>;
67
+ }, "strip", z.ZodTypeAny, {
68
+ code: string | null;
69
+ status: "revoked" | "expired" | "pending" | "accepted" | "declined";
70
+ id: string;
71
+ method: "code" | "email";
72
+ emailDeliveryStatus: "pending" | "sent" | "ambiguous" | "notSent" | "notApplicable";
73
+ }, {
74
+ code: string | null;
75
+ status: "revoked" | "expired" | "pending" | "accepted" | "declined";
76
+ id: string;
77
+ method: "code" | "email";
78
+ emailDeliveryStatus: "pending" | "sent" | "ambiguous" | "notSent" | "notApplicable";
79
+ }>;
80
+ export declare const leadSummarySchema: 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
+ serviceName: z.ZodString;
86
+ }, "strip", z.ZodTypeAny, {
87
+ status: "scheduled" | "completed" | "cancelled" | "noShow";
88
+ id: string;
89
+ startsAt: string;
90
+ serviceName: string;
91
+ }, {
92
+ status: "scheduled" | "completed" | "cancelled" | "noShow";
93
+ id: string;
94
+ startsAt: string;
95
+ serviceName: string;
96
+ }>>;
97
+ invitation: z.ZodNullable<z.ZodObject<{
98
+ id: z.ZodString;
99
+ method: z.ZodEnum<["code", "email"]>;
100
+ status: z.ZodEnum<["pending", "accepted", "declined", "revoked", "expired"]>;
101
+ code: z.ZodNullable<z.ZodString>;
102
+ emailDeliveryStatus: z.ZodEnum<["pending", "sent", "ambiguous", "notSent", "notApplicable"]>;
103
+ }, "strip", z.ZodTypeAny, {
104
+ code: string | null;
105
+ status: "revoked" | "expired" | "pending" | "accepted" | "declined";
106
+ id: string;
107
+ method: "code" | "email";
108
+ emailDeliveryStatus: "pending" | "sent" | "ambiguous" | "notSent" | "notApplicable";
109
+ }, {
110
+ code: string | null;
111
+ status: "revoked" | "expired" | "pending" | "accepted" | "declined";
112
+ id: string;
113
+ method: "code" | "email";
114
+ emailDeliveryStatus: "pending" | "sent" | "ambiguous" | "notSent" | "notApplicable";
115
+ }>>;
116
+ version: z.ZodNumber;
117
+ convertedAt: z.ZodNullable<z.ZodString>;
118
+ closedAt: z.ZodNullable<z.ZodString>;
119
+ createdAt: z.ZodString;
120
+ updatedAt: z.ZodString;
121
+ familyReportedSource: z.ZodEnum<["googleSearch", "instagram", "recommendation", "existingClient", "other"]>;
122
+ familyReportedSourceOtherText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
123
+ internalSource: z.ZodEnum<["unclassified", "googleAds", "googleOrganic", "instagram", "referral", "other"]>;
124
+ internalSourceOtherText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
125
+ id: z.ZodString;
126
+ organizationId: z.ZodString;
127
+ coachUserId: z.ZodString;
128
+ status: z.ZodEnum<["new", "callBooked", "callCompleted", "converted", "closedNotConverted"]>;
129
+ contact: z.ZodObject<{
130
+ caregiverName: z.ZodString;
131
+ caregiverEmail: z.ZodString;
132
+ caregiverPhone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
133
+ childFirstName: z.ZodString;
134
+ childAgeBand: z.ZodEnum<["expecting", "under3Months", "3To5Months", "6To8Months", "9To12Months", "13To18Months", "19To24Months", "over2Years"]>;
135
+ }, "strip", z.ZodTypeAny, {
136
+ caregiverName: string;
137
+ caregiverEmail: string;
138
+ childFirstName: string;
139
+ childAgeBand: "expecting" | "under3Months" | "3To5Months" | "6To8Months" | "9To12Months" | "13To18Months" | "19To24Months" | "over2Years";
140
+ caregiverPhone?: string | null | undefined;
141
+ }, {
142
+ caregiverName: string;
143
+ caregiverEmail: string;
144
+ childFirstName: string;
145
+ childAgeBand: "expecting" | "under3Months" | "3To5Months" | "6To8Months" | "9To12Months" | "13To18Months" | "19To24Months" | "over2Years";
146
+ caregiverPhone?: string | null | undefined;
147
+ }>;
148
+ }, "strip", z.ZodTypeAny, {
149
+ status: "new" | "converted" | "callBooked" | "callCompleted" | "closedNotConverted";
150
+ id: string;
151
+ createdAt: string;
152
+ version: number;
153
+ updatedAt: string;
154
+ organizationId: string;
155
+ coachUserId: string;
156
+ familyReportedSource: "other" | "recommendation" | "googleSearch" | "instagram" | "existingClient";
157
+ contact: {
158
+ caregiverName: string;
159
+ caregiverEmail: string;
160
+ childFirstName: string;
161
+ childAgeBand: "expecting" | "under3Months" | "3To5Months" | "6To8Months" | "9To12Months" | "13To18Months" | "19To24Months" | "over2Years";
162
+ caregiverPhone?: string | null | undefined;
163
+ };
164
+ booking: {
165
+ status: "scheduled" | "completed" | "cancelled" | "noShow";
166
+ id: string;
167
+ startsAt: string;
168
+ serviceName: string;
169
+ } | null;
170
+ internalSource: "other" | "referral" | "instagram" | "unclassified" | "googleAds" | "googleOrganic";
171
+ invitation: {
172
+ code: string | null;
173
+ status: "revoked" | "expired" | "pending" | "accepted" | "declined";
174
+ id: string;
175
+ method: "code" | "email";
176
+ emailDeliveryStatus: "pending" | "sent" | "ambiguous" | "notSent" | "notApplicable";
177
+ } | null;
178
+ convertedAt: string | null;
179
+ closedAt: string | null;
180
+ familyReportedSourceOtherText?: string | null | undefined;
181
+ internalSourceOtherText?: string | null | undefined;
182
+ }, {
183
+ status: "new" | "converted" | "callBooked" | "callCompleted" | "closedNotConverted";
184
+ id: string;
185
+ createdAt: string;
186
+ version: number;
187
+ updatedAt: string;
188
+ organizationId: string;
189
+ coachUserId: string;
190
+ familyReportedSource: "other" | "recommendation" | "googleSearch" | "instagram" | "existingClient";
191
+ contact: {
192
+ caregiverName: string;
193
+ caregiverEmail: string;
194
+ childFirstName: string;
195
+ childAgeBand: "expecting" | "under3Months" | "3To5Months" | "6To8Months" | "9To12Months" | "13To18Months" | "19To24Months" | "over2Years";
196
+ caregiverPhone?: string | null | undefined;
197
+ };
198
+ booking: {
199
+ status: "scheduled" | "completed" | "cancelled" | "noShow";
200
+ id: string;
201
+ startsAt: string;
202
+ serviceName: string;
203
+ } | null;
204
+ internalSource: "other" | "referral" | "instagram" | "unclassified" | "googleAds" | "googleOrganic";
205
+ invitation: {
206
+ code: string | null;
207
+ status: "revoked" | "expired" | "pending" | "accepted" | "declined";
208
+ id: string;
209
+ method: "code" | "email";
210
+ emailDeliveryStatus: "pending" | "sent" | "ambiguous" | "notSent" | "notApplicable";
211
+ } | null;
212
+ convertedAt: string | null;
213
+ closedAt: string | null;
214
+ familyReportedSourceOtherText?: string | null | undefined;
215
+ internalSourceOtherText?: string | null | undefined;
216
+ }>;
217
+ export declare const leadEventSchema: z.ZodObject<{
218
+ id: z.ZodString;
219
+ type: z.ZodEnum<["created", "contactUpdated", "sourceUpdated", "statusChanged", "bookingLinked", "converted"]>;
220
+ actorType: z.ZodEnum<["public", "coach", "organizationManager", "system"]>;
221
+ fromStatus: z.ZodNullable<z.ZodEnum<["new", "callBooked", "callCompleted", "converted", "closedNotConverted"]>>;
222
+ toStatus: z.ZodNullable<z.ZodEnum<["new", "callBooked", "callCompleted", "converted", "closedNotConverted"]>>;
223
+ source: z.ZodNullable<z.ZodEnum<["unclassified", "googleAds", "googleOrganic", "instagram", "referral", "other"]>>;
224
+ conversionMethod: z.ZodNullable<z.ZodEnum<["code", "email"]>>;
225
+ createdAt: z.ZodString;
226
+ }, "strip", z.ZodTypeAny, {
227
+ type: "created" | "converted" | "contactUpdated" | "sourceUpdated" | "statusChanged" | "bookingLinked";
228
+ id: string;
229
+ createdAt: string;
230
+ source: "other" | "referral" | "instagram" | "unclassified" | "googleAds" | "googleOrganic" | null;
231
+ actorType: "coach" | "system" | "public" | "organizationManager";
232
+ fromStatus: "new" | "converted" | "callBooked" | "callCompleted" | "closedNotConverted" | null;
233
+ toStatus: "new" | "converted" | "callBooked" | "callCompleted" | "closedNotConverted" | null;
234
+ conversionMethod: "code" | "email" | null;
235
+ }, {
236
+ type: "created" | "converted" | "contactUpdated" | "sourceUpdated" | "statusChanged" | "bookingLinked";
237
+ id: string;
238
+ createdAt: string;
239
+ source: "other" | "referral" | "instagram" | "unclassified" | "googleAds" | "googleOrganic" | null;
240
+ actorType: "coach" | "system" | "public" | "organizationManager";
241
+ fromStatus: "new" | "converted" | "callBooked" | "callCompleted" | "closedNotConverted" | null;
242
+ toStatus: "new" | "converted" | "callBooked" | "callCompleted" | "closedNotConverted" | null;
243
+ conversionMethod: "code" | "email" | null;
244
+ }>;
245
+ export declare const leadDetailSchema: z.ZodObject<{
246
+ booking: z.ZodNullable<z.ZodObject<{
247
+ id: z.ZodString;
248
+ status: z.ZodEnum<["scheduled", "completed", "cancelled", "noShow"]>;
249
+ startsAt: z.ZodString;
250
+ serviceName: z.ZodString;
251
+ }, "strip", z.ZodTypeAny, {
252
+ status: "scheduled" | "completed" | "cancelled" | "noShow";
253
+ id: string;
254
+ startsAt: string;
255
+ serviceName: string;
256
+ }, {
257
+ status: "scheduled" | "completed" | "cancelled" | "noShow";
258
+ id: string;
259
+ startsAt: string;
260
+ serviceName: string;
261
+ }>>;
262
+ invitation: z.ZodNullable<z.ZodObject<{
263
+ id: z.ZodString;
264
+ method: z.ZodEnum<["code", "email"]>;
265
+ status: z.ZodEnum<["pending", "accepted", "declined", "revoked", "expired"]>;
266
+ code: z.ZodNullable<z.ZodString>;
267
+ emailDeliveryStatus: z.ZodEnum<["pending", "sent", "ambiguous", "notSent", "notApplicable"]>;
268
+ }, "strip", z.ZodTypeAny, {
269
+ code: string | null;
270
+ status: "revoked" | "expired" | "pending" | "accepted" | "declined";
271
+ id: string;
272
+ method: "code" | "email";
273
+ emailDeliveryStatus: "pending" | "sent" | "ambiguous" | "notSent" | "notApplicable";
274
+ }, {
275
+ code: string | null;
276
+ status: "revoked" | "expired" | "pending" | "accepted" | "declined";
277
+ id: string;
278
+ method: "code" | "email";
279
+ emailDeliveryStatus: "pending" | "sent" | "ambiguous" | "notSent" | "notApplicable";
280
+ }>>;
281
+ version: z.ZodNumber;
282
+ convertedAt: z.ZodNullable<z.ZodString>;
283
+ closedAt: z.ZodNullable<z.ZodString>;
284
+ createdAt: z.ZodString;
285
+ updatedAt: z.ZodString;
286
+ familyReportedSource: z.ZodEnum<["googleSearch", "instagram", "recommendation", "existingClient", "other"]>;
287
+ familyReportedSourceOtherText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
288
+ internalSource: z.ZodEnum<["unclassified", "googleAds", "googleOrganic", "instagram", "referral", "other"]>;
289
+ internalSourceOtherText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
290
+ id: z.ZodString;
291
+ organizationId: z.ZodString;
292
+ coachUserId: z.ZodString;
293
+ status: z.ZodEnum<["new", "callBooked", "callCompleted", "converted", "closedNotConverted"]>;
294
+ contact: z.ZodObject<{
295
+ caregiverName: z.ZodString;
296
+ caregiverEmail: z.ZodString;
297
+ caregiverPhone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
298
+ childFirstName: z.ZodString;
299
+ childAgeBand: z.ZodEnum<["expecting", "under3Months", "3To5Months", "6To8Months", "9To12Months", "13To18Months", "19To24Months", "over2Years"]>;
300
+ }, "strip", z.ZodTypeAny, {
301
+ caregiverName: string;
302
+ caregiverEmail: string;
303
+ childFirstName: string;
304
+ childAgeBand: "expecting" | "under3Months" | "3To5Months" | "6To8Months" | "9To12Months" | "13To18Months" | "19To24Months" | "over2Years";
305
+ caregiverPhone?: string | null | undefined;
306
+ }, {
307
+ caregiverName: string;
308
+ caregiverEmail: string;
309
+ childFirstName: string;
310
+ childAgeBand: "expecting" | "under3Months" | "3To5Months" | "6To8Months" | "9To12Months" | "13To18Months" | "19To24Months" | "over2Years";
311
+ caregiverPhone?: string | null | undefined;
312
+ }>;
313
+ } & {
314
+ events: z.ZodArray<z.ZodObject<{
315
+ id: z.ZodString;
316
+ type: z.ZodEnum<["created", "contactUpdated", "sourceUpdated", "statusChanged", "bookingLinked", "converted"]>;
317
+ actorType: z.ZodEnum<["public", "coach", "organizationManager", "system"]>;
318
+ fromStatus: z.ZodNullable<z.ZodEnum<["new", "callBooked", "callCompleted", "converted", "closedNotConverted"]>>;
319
+ toStatus: z.ZodNullable<z.ZodEnum<["new", "callBooked", "callCompleted", "converted", "closedNotConverted"]>>;
320
+ source: z.ZodNullable<z.ZodEnum<["unclassified", "googleAds", "googleOrganic", "instagram", "referral", "other"]>>;
321
+ conversionMethod: z.ZodNullable<z.ZodEnum<["code", "email"]>>;
322
+ createdAt: z.ZodString;
323
+ }, "strip", z.ZodTypeAny, {
324
+ type: "created" | "converted" | "contactUpdated" | "sourceUpdated" | "statusChanged" | "bookingLinked";
325
+ id: string;
326
+ createdAt: string;
327
+ source: "other" | "referral" | "instagram" | "unclassified" | "googleAds" | "googleOrganic" | null;
328
+ actorType: "coach" | "system" | "public" | "organizationManager";
329
+ fromStatus: "new" | "converted" | "callBooked" | "callCompleted" | "closedNotConverted" | null;
330
+ toStatus: "new" | "converted" | "callBooked" | "callCompleted" | "closedNotConverted" | null;
331
+ conversionMethod: "code" | "email" | null;
332
+ }, {
333
+ type: "created" | "converted" | "contactUpdated" | "sourceUpdated" | "statusChanged" | "bookingLinked";
334
+ id: string;
335
+ createdAt: string;
336
+ source: "other" | "referral" | "instagram" | "unclassified" | "googleAds" | "googleOrganic" | null;
337
+ actorType: "coach" | "system" | "public" | "organizationManager";
338
+ fromStatus: "new" | "converted" | "callBooked" | "callCompleted" | "closedNotConverted" | null;
339
+ toStatus: "new" | "converted" | "callBooked" | "callCompleted" | "closedNotConverted" | null;
340
+ conversionMethod: "code" | "email" | null;
341
+ }>, "many">;
342
+ }, "strip", z.ZodTypeAny, {
343
+ status: "new" | "converted" | "callBooked" | "callCompleted" | "closedNotConverted";
344
+ id: string;
345
+ createdAt: string;
346
+ version: number;
347
+ updatedAt: string;
348
+ organizationId: string;
349
+ coachUserId: string;
350
+ familyReportedSource: "other" | "recommendation" | "googleSearch" | "instagram" | "existingClient";
351
+ contact: {
352
+ caregiverName: string;
353
+ caregiverEmail: string;
354
+ childFirstName: string;
355
+ childAgeBand: "expecting" | "under3Months" | "3To5Months" | "6To8Months" | "9To12Months" | "13To18Months" | "19To24Months" | "over2Years";
356
+ caregiverPhone?: string | null | undefined;
357
+ };
358
+ booking: {
359
+ status: "scheduled" | "completed" | "cancelled" | "noShow";
360
+ id: string;
361
+ startsAt: string;
362
+ serviceName: string;
363
+ } | null;
364
+ internalSource: "other" | "referral" | "instagram" | "unclassified" | "googleAds" | "googleOrganic";
365
+ events: {
366
+ type: "created" | "converted" | "contactUpdated" | "sourceUpdated" | "statusChanged" | "bookingLinked";
367
+ id: string;
368
+ createdAt: string;
369
+ source: "other" | "referral" | "instagram" | "unclassified" | "googleAds" | "googleOrganic" | null;
370
+ actorType: "coach" | "system" | "public" | "organizationManager";
371
+ fromStatus: "new" | "converted" | "callBooked" | "callCompleted" | "closedNotConverted" | null;
372
+ toStatus: "new" | "converted" | "callBooked" | "callCompleted" | "closedNotConverted" | null;
373
+ conversionMethod: "code" | "email" | null;
374
+ }[];
375
+ invitation: {
376
+ code: string | null;
377
+ status: "revoked" | "expired" | "pending" | "accepted" | "declined";
378
+ id: string;
379
+ method: "code" | "email";
380
+ emailDeliveryStatus: "pending" | "sent" | "ambiguous" | "notSent" | "notApplicable";
381
+ } | null;
382
+ convertedAt: string | null;
383
+ closedAt: string | null;
384
+ familyReportedSourceOtherText?: string | null | undefined;
385
+ internalSourceOtherText?: string | null | undefined;
386
+ }, {
387
+ status: "new" | "converted" | "callBooked" | "callCompleted" | "closedNotConverted";
388
+ id: string;
389
+ createdAt: string;
390
+ version: number;
391
+ updatedAt: string;
392
+ organizationId: string;
393
+ coachUserId: string;
394
+ familyReportedSource: "other" | "recommendation" | "googleSearch" | "instagram" | "existingClient";
395
+ contact: {
396
+ caregiverName: string;
397
+ caregiverEmail: string;
398
+ childFirstName: string;
399
+ childAgeBand: "expecting" | "under3Months" | "3To5Months" | "6To8Months" | "9To12Months" | "13To18Months" | "19To24Months" | "over2Years";
400
+ caregiverPhone?: string | null | undefined;
401
+ };
402
+ booking: {
403
+ status: "scheduled" | "completed" | "cancelled" | "noShow";
404
+ id: string;
405
+ startsAt: string;
406
+ serviceName: string;
407
+ } | null;
408
+ internalSource: "other" | "referral" | "instagram" | "unclassified" | "googleAds" | "googleOrganic";
409
+ events: {
410
+ type: "created" | "converted" | "contactUpdated" | "sourceUpdated" | "statusChanged" | "bookingLinked";
411
+ id: string;
412
+ createdAt: string;
413
+ source: "other" | "referral" | "instagram" | "unclassified" | "googleAds" | "googleOrganic" | null;
414
+ actorType: "coach" | "system" | "public" | "organizationManager";
415
+ fromStatus: "new" | "converted" | "callBooked" | "callCompleted" | "closedNotConverted" | null;
416
+ toStatus: "new" | "converted" | "callBooked" | "callCompleted" | "closedNotConverted" | null;
417
+ conversionMethod: "code" | "email" | null;
418
+ }[];
419
+ invitation: {
420
+ code: string | null;
421
+ status: "revoked" | "expired" | "pending" | "accepted" | "declined";
422
+ id: string;
423
+ method: "code" | "email";
424
+ emailDeliveryStatus: "pending" | "sent" | "ambiguous" | "notSent" | "notApplicable";
425
+ } | null;
426
+ convertedAt: string | null;
427
+ closedAt: string | null;
428
+ familyReportedSourceOtherText?: string | null | undefined;
429
+ internalSourceOtherText?: string | null | undefined;
430
+ }>;
431
+ export declare const leadTargetQuerySchema: z.ZodObject<{
432
+ organizationId: z.ZodString;
433
+ coachUserId: z.ZodString;
434
+ }, "strict", z.ZodTypeAny, {
435
+ organizationId: string;
436
+ coachUserId: string;
437
+ }, {
438
+ organizationId: string;
439
+ coachUserId: string;
440
+ }>;
441
+ export declare const leadListQuerySchema: z.ZodObject<{
442
+ organizationId: z.ZodString;
443
+ coachUserId: z.ZodString;
444
+ } & {
445
+ status: z.ZodOptional<z.ZodEnum<["new", "callBooked", "callCompleted", "converted", "closedNotConverted"]>>;
446
+ internalSource: z.ZodOptional<z.ZodEnum<["unclassified", "googleAds", "googleOrganic", "instagram", "referral", "other"]>>;
447
+ search: z.ZodOptional<z.ZodString>;
448
+ cursor: z.ZodOptional<z.ZodString>;
449
+ limit: z.ZodDefault<z.ZodNumber>;
450
+ }, "strict", z.ZodTypeAny, {
451
+ organizationId: string;
452
+ coachUserId: string;
453
+ limit: number;
454
+ status?: "new" | "converted" | "callBooked" | "callCompleted" | "closedNotConverted" | undefined;
455
+ cursor?: string | undefined;
456
+ internalSource?: "other" | "referral" | "instagram" | "unclassified" | "googleAds" | "googleOrganic" | undefined;
457
+ search?: string | undefined;
458
+ }, {
459
+ organizationId: string;
460
+ coachUserId: string;
461
+ status?: "new" | "converted" | "callBooked" | "callCompleted" | "closedNotConverted" | undefined;
462
+ cursor?: string | undefined;
463
+ limit?: number | undefined;
464
+ internalSource?: "other" | "referral" | "instagram" | "unclassified" | "googleAds" | "googleOrganic" | undefined;
465
+ search?: string | undefined;
466
+ }>;
467
+ export declare const leadExportQuerySchema: z.ZodObject<{
468
+ organizationId: z.ZodString;
469
+ coachUserId: z.ZodString;
470
+ } & {
471
+ status: z.ZodOptional<z.ZodEnum<["new", "callBooked", "callCompleted", "converted", "closedNotConverted"]>>;
472
+ internalSource: z.ZodOptional<z.ZodEnum<["unclassified", "googleAds", "googleOrganic", "instagram", "referral", "other"]>>;
473
+ search: z.ZodOptional<z.ZodString>;
474
+ }, "strict", z.ZodTypeAny, {
475
+ organizationId: string;
476
+ coachUserId: string;
477
+ status?: "new" | "converted" | "callBooked" | "callCompleted" | "closedNotConverted" | undefined;
478
+ internalSource?: "other" | "referral" | "instagram" | "unclassified" | "googleAds" | "googleOrganic" | undefined;
479
+ search?: string | undefined;
480
+ }, {
481
+ organizationId: string;
482
+ coachUserId: string;
483
+ status?: "new" | "converted" | "callBooked" | "callCompleted" | "closedNotConverted" | undefined;
484
+ internalSource?: "other" | "referral" | "instagram" | "unclassified" | "googleAds" | "googleOrganic" | undefined;
485
+ search?: string | undefined;
486
+ }>;
487
+ export declare const leadCreateRequestSchema: z.ZodEffects<z.ZodObject<{
488
+ bookingId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
489
+ idempotencyKey: z.ZodString;
490
+ familyReportedSource: z.ZodEnum<["googleSearch", "instagram", "recommendation", "existingClient", "other"]>;
491
+ familyReportedSourceOtherText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
492
+ internalSource: z.ZodEnum<["unclassified", "googleAds", "googleOrganic", "instagram", "referral", "other"]>;
493
+ internalSourceOtherText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
494
+ caregiverName: z.ZodString;
495
+ caregiverEmail: z.ZodString;
496
+ caregiverPhone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
497
+ childFirstName: z.ZodString;
498
+ childAgeBand: z.ZodEnum<["expecting", "under3Months", "3To5Months", "6To8Months", "9To12Months", "13To18Months", "19To24Months", "over2Years"]>;
499
+ organizationId: z.ZodString;
500
+ coachUserId: z.ZodString;
501
+ }, "strict", z.ZodTypeAny, {
502
+ organizationId: string;
503
+ coachUserId: string;
504
+ idempotencyKey: string;
505
+ caregiverName: string;
506
+ caregiverEmail: string;
507
+ childFirstName: string;
508
+ childAgeBand: "expecting" | "under3Months" | "3To5Months" | "6To8Months" | "9To12Months" | "13To18Months" | "19To24Months" | "over2Years";
509
+ familyReportedSource: "other" | "recommendation" | "googleSearch" | "instagram" | "existingClient";
510
+ internalSource: "other" | "referral" | "instagram" | "unclassified" | "googleAds" | "googleOrganic";
511
+ caregiverPhone?: string | null | undefined;
512
+ familyReportedSourceOtherText?: string | null | undefined;
513
+ internalSourceOtherText?: string | null | undefined;
514
+ bookingId?: string | null | undefined;
515
+ }, {
516
+ organizationId: string;
517
+ coachUserId: string;
518
+ idempotencyKey: string;
519
+ caregiverName: string;
520
+ caregiverEmail: string;
521
+ childFirstName: string;
522
+ childAgeBand: "expecting" | "under3Months" | "3To5Months" | "6To8Months" | "9To12Months" | "13To18Months" | "19To24Months" | "over2Years";
523
+ familyReportedSource: "other" | "recommendation" | "googleSearch" | "instagram" | "existingClient";
524
+ internalSource: "other" | "referral" | "instagram" | "unclassified" | "googleAds" | "googleOrganic";
525
+ caregiverPhone?: string | null | undefined;
526
+ familyReportedSourceOtherText?: string | null | undefined;
527
+ internalSourceOtherText?: string | null | undefined;
528
+ bookingId?: string | null | undefined;
529
+ }>, {
530
+ organizationId: string;
531
+ coachUserId: string;
532
+ idempotencyKey: string;
533
+ caregiverName: string;
534
+ caregiverEmail: string;
535
+ childFirstName: string;
536
+ childAgeBand: "expecting" | "under3Months" | "3To5Months" | "6To8Months" | "9To12Months" | "13To18Months" | "19To24Months" | "over2Years";
537
+ familyReportedSource: "other" | "recommendation" | "googleSearch" | "instagram" | "existingClient";
538
+ internalSource: "other" | "referral" | "instagram" | "unclassified" | "googleAds" | "googleOrganic";
539
+ caregiverPhone?: string | null | undefined;
540
+ familyReportedSourceOtherText?: string | null | undefined;
541
+ internalSourceOtherText?: string | null | undefined;
542
+ bookingId?: string | null | undefined;
543
+ }, {
544
+ organizationId: string;
545
+ coachUserId: string;
546
+ idempotencyKey: string;
547
+ caregiverName: string;
548
+ caregiverEmail: string;
549
+ childFirstName: string;
550
+ childAgeBand: "expecting" | "under3Months" | "3To5Months" | "6To8Months" | "9To12Months" | "13To18Months" | "19To24Months" | "over2Years";
551
+ familyReportedSource: "other" | "recommendation" | "googleSearch" | "instagram" | "existingClient";
552
+ internalSource: "other" | "referral" | "instagram" | "unclassified" | "googleAds" | "googleOrganic";
553
+ caregiverPhone?: string | null | undefined;
554
+ familyReportedSourceOtherText?: string | null | undefined;
555
+ internalSourceOtherText?: string | null | undefined;
556
+ bookingId?: string | null | undefined;
557
+ }>;
558
+ export declare const leadUpdateRequestSchema: z.ZodEffects<z.ZodObject<{
559
+ expectedVersion: z.ZodNumber;
560
+ idempotencyKey: z.ZodString;
561
+ internalSource: z.ZodEnum<["unclassified", "googleAds", "googleOrganic", "instagram", "referral", "other"]>;
562
+ internalSourceOtherText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
563
+ caregiverName: z.ZodString;
564
+ caregiverEmail: z.ZodString;
565
+ caregiverPhone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
566
+ childFirstName: z.ZodString;
567
+ childAgeBand: z.ZodEnum<["expecting", "under3Months", "3To5Months", "6To8Months", "9To12Months", "13To18Months", "19To24Months", "over2Years"]>;
568
+ organizationId: z.ZodString;
569
+ coachUserId: z.ZodString;
570
+ }, "strict", z.ZodTypeAny, {
571
+ organizationId: string;
572
+ coachUserId: string;
573
+ idempotencyKey: string;
574
+ caregiverName: string;
575
+ caregiverEmail: string;
576
+ childFirstName: string;
577
+ childAgeBand: "expecting" | "under3Months" | "3To5Months" | "6To8Months" | "9To12Months" | "13To18Months" | "19To24Months" | "over2Years";
578
+ internalSource: "other" | "referral" | "instagram" | "unclassified" | "googleAds" | "googleOrganic";
579
+ expectedVersion: number;
580
+ caregiverPhone?: string | null | undefined;
581
+ internalSourceOtherText?: string | null | undefined;
582
+ }, {
583
+ organizationId: string;
584
+ coachUserId: string;
585
+ idempotencyKey: string;
586
+ caregiverName: string;
587
+ caregiverEmail: string;
588
+ childFirstName: string;
589
+ childAgeBand: "expecting" | "under3Months" | "3To5Months" | "6To8Months" | "9To12Months" | "13To18Months" | "19To24Months" | "over2Years";
590
+ internalSource: "other" | "referral" | "instagram" | "unclassified" | "googleAds" | "googleOrganic";
591
+ expectedVersion: number;
592
+ caregiverPhone?: string | null | undefined;
593
+ internalSourceOtherText?: string | null | undefined;
594
+ }>, {
595
+ organizationId: string;
596
+ coachUserId: string;
597
+ idempotencyKey: string;
598
+ caregiverName: string;
599
+ caregiverEmail: string;
600
+ childFirstName: string;
601
+ childAgeBand: "expecting" | "under3Months" | "3To5Months" | "6To8Months" | "9To12Months" | "13To18Months" | "19To24Months" | "over2Years";
602
+ internalSource: "other" | "referral" | "instagram" | "unclassified" | "googleAds" | "googleOrganic";
603
+ expectedVersion: number;
604
+ caregiverPhone?: string | null | undefined;
605
+ internalSourceOtherText?: string | null | undefined;
606
+ }, {
607
+ organizationId: string;
608
+ coachUserId: string;
609
+ idempotencyKey: string;
610
+ caregiverName: string;
611
+ caregiverEmail: string;
612
+ childFirstName: string;
613
+ childAgeBand: "expecting" | "under3Months" | "3To5Months" | "6To8Months" | "9To12Months" | "13To18Months" | "19To24Months" | "over2Years";
614
+ internalSource: "other" | "referral" | "instagram" | "unclassified" | "googleAds" | "googleOrganic";
615
+ expectedVersion: number;
616
+ caregiverPhone?: string | null | undefined;
617
+ internalSourceOtherText?: string | null | undefined;
618
+ }>;
619
+ export declare const leadStatusWriteSchema: z.ZodObject<{
620
+ organizationId: z.ZodString;
621
+ coachUserId: z.ZodString;
622
+ } & {
623
+ status: z.ZodEnum<["new", "callBooked", "callCompleted", "closedNotConverted"]>;
624
+ expectedVersion: z.ZodNumber;
625
+ idempotencyKey: z.ZodString;
626
+ }, "strict", z.ZodTypeAny, {
627
+ status: "new" | "callBooked" | "callCompleted" | "closedNotConverted";
628
+ organizationId: string;
629
+ coachUserId: string;
630
+ idempotencyKey: string;
631
+ expectedVersion: number;
632
+ }, {
633
+ status: "new" | "callBooked" | "callCompleted" | "closedNotConverted";
634
+ organizationId: string;
635
+ coachUserId: string;
636
+ idempotencyKey: string;
637
+ expectedVersion: number;
638
+ }>;
639
+ export declare const leadConvertRequestSchema: z.ZodObject<{
640
+ organizationId: z.ZodString;
641
+ coachUserId: z.ZodString;
642
+ } & {
643
+ method: z.ZodEnum<["code", "email"]>;
644
+ expectedVersion: z.ZodNumber;
645
+ idempotencyKey: z.ZodString;
646
+ }, "strict", z.ZodTypeAny, {
647
+ organizationId: string;
648
+ coachUserId: string;
649
+ method: "code" | "email";
650
+ idempotencyKey: string;
651
+ expectedVersion: number;
652
+ }, {
653
+ organizationId: string;
654
+ coachUserId: string;
655
+ method: "code" | "email";
656
+ idempotencyKey: string;
657
+ expectedVersion: number;
658
+ }>;
659
+ export declare const leadInvitationEmailRetryRequestSchema: z.ZodObject<{
660
+ organizationId: z.ZodString;
661
+ coachUserId: z.ZodString;
662
+ } & {
663
+ expectedVersion: z.ZodNumber;
664
+ idempotencyKey: z.ZodString;
665
+ }, "strict", z.ZodTypeAny, {
666
+ organizationId: string;
667
+ coachUserId: string;
668
+ idempotencyKey: string;
669
+ expectedVersion: number;
670
+ }, {
671
+ organizationId: string;
672
+ coachUserId: string;
673
+ idempotencyKey: string;
674
+ expectedVersion: number;
675
+ }>;
676
+ export declare const leadTargetsResponseSchema: z.ZodObject<{
677
+ targets: z.ZodArray<z.ZodObject<{
678
+ organizationId: z.ZodString;
679
+ organizationName: z.ZodString;
680
+ coachUserId: z.ZodString;
681
+ coachName: z.ZodString;
682
+ actorCapability: z.ZodEnum<["self", "organizationManager"]>;
683
+ }, "strip", z.ZodTypeAny, {
684
+ organizationId: string;
685
+ coachUserId: string;
686
+ organizationName: string;
687
+ coachName: string;
688
+ actorCapability: "self" | "organizationManager";
689
+ }, {
690
+ organizationId: string;
691
+ coachUserId: string;
692
+ organizationName: string;
693
+ coachName: string;
694
+ actorCapability: "self" | "organizationManager";
695
+ }>, "many">;
696
+ }, "strip", z.ZodTypeAny, {
697
+ targets: {
698
+ organizationId: string;
699
+ coachUserId: string;
700
+ organizationName: string;
701
+ coachName: string;
702
+ actorCapability: "self" | "organizationManager";
703
+ }[];
704
+ }, {
705
+ targets: {
706
+ organizationId: string;
707
+ coachUserId: string;
708
+ organizationName: string;
709
+ coachName: string;
710
+ actorCapability: "self" | "organizationManager";
711
+ }[];
712
+ }>;
713
+ export declare const leadListResponseSchema: z.ZodObject<{
714
+ leads: z.ZodArray<z.ZodObject<{
715
+ booking: z.ZodNullable<z.ZodObject<{
716
+ id: z.ZodString;
717
+ status: z.ZodEnum<["scheduled", "completed", "cancelled", "noShow"]>;
718
+ startsAt: z.ZodString;
719
+ serviceName: z.ZodString;
720
+ }, "strip", z.ZodTypeAny, {
721
+ status: "scheduled" | "completed" | "cancelled" | "noShow";
722
+ id: string;
723
+ startsAt: string;
724
+ serviceName: string;
725
+ }, {
726
+ status: "scheduled" | "completed" | "cancelled" | "noShow";
727
+ id: string;
728
+ startsAt: string;
729
+ serviceName: string;
730
+ }>>;
731
+ invitation: z.ZodNullable<z.ZodObject<{
732
+ id: z.ZodString;
733
+ method: z.ZodEnum<["code", "email"]>;
734
+ status: z.ZodEnum<["pending", "accepted", "declined", "revoked", "expired"]>;
735
+ code: z.ZodNullable<z.ZodString>;
736
+ emailDeliveryStatus: z.ZodEnum<["pending", "sent", "ambiguous", "notSent", "notApplicable"]>;
737
+ }, "strip", z.ZodTypeAny, {
738
+ code: string | null;
739
+ status: "revoked" | "expired" | "pending" | "accepted" | "declined";
740
+ id: string;
741
+ method: "code" | "email";
742
+ emailDeliveryStatus: "pending" | "sent" | "ambiguous" | "notSent" | "notApplicable";
743
+ }, {
744
+ code: string | null;
745
+ status: "revoked" | "expired" | "pending" | "accepted" | "declined";
746
+ id: string;
747
+ method: "code" | "email";
748
+ emailDeliveryStatus: "pending" | "sent" | "ambiguous" | "notSent" | "notApplicable";
749
+ }>>;
750
+ version: z.ZodNumber;
751
+ convertedAt: z.ZodNullable<z.ZodString>;
752
+ closedAt: z.ZodNullable<z.ZodString>;
753
+ createdAt: z.ZodString;
754
+ updatedAt: z.ZodString;
755
+ familyReportedSource: z.ZodEnum<["googleSearch", "instagram", "recommendation", "existingClient", "other"]>;
756
+ familyReportedSourceOtherText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
757
+ internalSource: z.ZodEnum<["unclassified", "googleAds", "googleOrganic", "instagram", "referral", "other"]>;
758
+ internalSourceOtherText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
759
+ id: z.ZodString;
760
+ organizationId: z.ZodString;
761
+ coachUserId: z.ZodString;
762
+ status: z.ZodEnum<["new", "callBooked", "callCompleted", "converted", "closedNotConverted"]>;
763
+ contact: z.ZodObject<{
764
+ caregiverName: z.ZodString;
765
+ caregiverEmail: z.ZodString;
766
+ caregiverPhone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
767
+ childFirstName: z.ZodString;
768
+ childAgeBand: z.ZodEnum<["expecting", "under3Months", "3To5Months", "6To8Months", "9To12Months", "13To18Months", "19To24Months", "over2Years"]>;
769
+ }, "strip", z.ZodTypeAny, {
770
+ caregiverName: string;
771
+ caregiverEmail: string;
772
+ childFirstName: string;
773
+ childAgeBand: "expecting" | "under3Months" | "3To5Months" | "6To8Months" | "9To12Months" | "13To18Months" | "19To24Months" | "over2Years";
774
+ caregiverPhone?: string | null | undefined;
775
+ }, {
776
+ caregiverName: string;
777
+ caregiverEmail: string;
778
+ childFirstName: string;
779
+ childAgeBand: "expecting" | "under3Months" | "3To5Months" | "6To8Months" | "9To12Months" | "13To18Months" | "19To24Months" | "over2Years";
780
+ caregiverPhone?: string | null | undefined;
781
+ }>;
782
+ }, "strip", z.ZodTypeAny, {
783
+ status: "new" | "converted" | "callBooked" | "callCompleted" | "closedNotConverted";
784
+ id: string;
785
+ createdAt: string;
786
+ version: number;
787
+ updatedAt: string;
788
+ organizationId: string;
789
+ coachUserId: string;
790
+ familyReportedSource: "other" | "recommendation" | "googleSearch" | "instagram" | "existingClient";
791
+ contact: {
792
+ caregiverName: string;
793
+ caregiverEmail: string;
794
+ childFirstName: string;
795
+ childAgeBand: "expecting" | "under3Months" | "3To5Months" | "6To8Months" | "9To12Months" | "13To18Months" | "19To24Months" | "over2Years";
796
+ caregiverPhone?: string | null | undefined;
797
+ };
798
+ booking: {
799
+ status: "scheduled" | "completed" | "cancelled" | "noShow";
800
+ id: string;
801
+ startsAt: string;
802
+ serviceName: string;
803
+ } | null;
804
+ internalSource: "other" | "referral" | "instagram" | "unclassified" | "googleAds" | "googleOrganic";
805
+ invitation: {
806
+ code: string | null;
807
+ status: "revoked" | "expired" | "pending" | "accepted" | "declined";
808
+ id: string;
809
+ method: "code" | "email";
810
+ emailDeliveryStatus: "pending" | "sent" | "ambiguous" | "notSent" | "notApplicable";
811
+ } | null;
812
+ convertedAt: string | null;
813
+ closedAt: string | null;
814
+ familyReportedSourceOtherText?: string | null | undefined;
815
+ internalSourceOtherText?: string | null | undefined;
816
+ }, {
817
+ status: "new" | "converted" | "callBooked" | "callCompleted" | "closedNotConverted";
818
+ id: string;
819
+ createdAt: string;
820
+ version: number;
821
+ updatedAt: string;
822
+ organizationId: string;
823
+ coachUserId: string;
824
+ familyReportedSource: "other" | "recommendation" | "googleSearch" | "instagram" | "existingClient";
825
+ contact: {
826
+ caregiverName: string;
827
+ caregiverEmail: string;
828
+ childFirstName: string;
829
+ childAgeBand: "expecting" | "under3Months" | "3To5Months" | "6To8Months" | "9To12Months" | "13To18Months" | "19To24Months" | "over2Years";
830
+ caregiverPhone?: string | null | undefined;
831
+ };
832
+ booking: {
833
+ status: "scheduled" | "completed" | "cancelled" | "noShow";
834
+ id: string;
835
+ startsAt: string;
836
+ serviceName: string;
837
+ } | null;
838
+ internalSource: "other" | "referral" | "instagram" | "unclassified" | "googleAds" | "googleOrganic";
839
+ invitation: {
840
+ code: string | null;
841
+ status: "revoked" | "expired" | "pending" | "accepted" | "declined";
842
+ id: string;
843
+ method: "code" | "email";
844
+ emailDeliveryStatus: "pending" | "sent" | "ambiguous" | "notSent" | "notApplicable";
845
+ } | null;
846
+ convertedAt: string | null;
847
+ closedAt: string | null;
848
+ familyReportedSourceOtherText?: string | null | undefined;
849
+ internalSourceOtherText?: string | null | undefined;
850
+ }>, "many">;
851
+ nextCursor: z.ZodNullable<z.ZodString>;
852
+ }, "strip", z.ZodTypeAny, {
853
+ nextCursor: string | null;
854
+ leads: {
855
+ status: "new" | "converted" | "callBooked" | "callCompleted" | "closedNotConverted";
856
+ id: string;
857
+ createdAt: string;
858
+ version: number;
859
+ updatedAt: string;
860
+ organizationId: string;
861
+ coachUserId: string;
862
+ familyReportedSource: "other" | "recommendation" | "googleSearch" | "instagram" | "existingClient";
863
+ contact: {
864
+ caregiverName: string;
865
+ caregiverEmail: string;
866
+ childFirstName: string;
867
+ childAgeBand: "expecting" | "under3Months" | "3To5Months" | "6To8Months" | "9To12Months" | "13To18Months" | "19To24Months" | "over2Years";
868
+ caregiverPhone?: string | null | undefined;
869
+ };
870
+ booking: {
871
+ status: "scheduled" | "completed" | "cancelled" | "noShow";
872
+ id: string;
873
+ startsAt: string;
874
+ serviceName: string;
875
+ } | null;
876
+ internalSource: "other" | "referral" | "instagram" | "unclassified" | "googleAds" | "googleOrganic";
877
+ invitation: {
878
+ code: string | null;
879
+ status: "revoked" | "expired" | "pending" | "accepted" | "declined";
880
+ id: string;
881
+ method: "code" | "email";
882
+ emailDeliveryStatus: "pending" | "sent" | "ambiguous" | "notSent" | "notApplicable";
883
+ } | null;
884
+ convertedAt: string | null;
885
+ closedAt: string | null;
886
+ familyReportedSourceOtherText?: string | null | undefined;
887
+ internalSourceOtherText?: string | null | undefined;
888
+ }[];
889
+ }, {
890
+ nextCursor: string | null;
891
+ leads: {
892
+ status: "new" | "converted" | "callBooked" | "callCompleted" | "closedNotConverted";
893
+ id: string;
894
+ createdAt: string;
895
+ version: number;
896
+ updatedAt: string;
897
+ organizationId: string;
898
+ coachUserId: string;
899
+ familyReportedSource: "other" | "recommendation" | "googleSearch" | "instagram" | "existingClient";
900
+ contact: {
901
+ caregiverName: string;
902
+ caregiverEmail: string;
903
+ childFirstName: string;
904
+ childAgeBand: "expecting" | "under3Months" | "3To5Months" | "6To8Months" | "9To12Months" | "13To18Months" | "19To24Months" | "over2Years";
905
+ caregiverPhone?: string | null | undefined;
906
+ };
907
+ booking: {
908
+ status: "scheduled" | "completed" | "cancelled" | "noShow";
909
+ id: string;
910
+ startsAt: string;
911
+ serviceName: string;
912
+ } | null;
913
+ internalSource: "other" | "referral" | "instagram" | "unclassified" | "googleAds" | "googleOrganic";
914
+ invitation: {
915
+ code: string | null;
916
+ status: "revoked" | "expired" | "pending" | "accepted" | "declined";
917
+ id: string;
918
+ method: "code" | "email";
919
+ emailDeliveryStatus: "pending" | "sent" | "ambiguous" | "notSent" | "notApplicable";
920
+ } | null;
921
+ convertedAt: string | null;
922
+ closedAt: string | null;
923
+ familyReportedSourceOtherText?: string | null | undefined;
924
+ internalSourceOtherText?: string | null | undefined;
925
+ }[];
926
+ }>;
927
+ export declare const leadDetailResponseSchema: z.ZodObject<{
928
+ lead: z.ZodObject<{
929
+ booking: z.ZodNullable<z.ZodObject<{
930
+ id: z.ZodString;
931
+ status: z.ZodEnum<["scheduled", "completed", "cancelled", "noShow"]>;
932
+ startsAt: z.ZodString;
933
+ serviceName: z.ZodString;
934
+ }, "strip", z.ZodTypeAny, {
935
+ status: "scheduled" | "completed" | "cancelled" | "noShow";
936
+ id: string;
937
+ startsAt: string;
938
+ serviceName: string;
939
+ }, {
940
+ status: "scheduled" | "completed" | "cancelled" | "noShow";
941
+ id: string;
942
+ startsAt: string;
943
+ serviceName: string;
944
+ }>>;
945
+ invitation: z.ZodNullable<z.ZodObject<{
946
+ id: z.ZodString;
947
+ method: z.ZodEnum<["code", "email"]>;
948
+ status: z.ZodEnum<["pending", "accepted", "declined", "revoked", "expired"]>;
949
+ code: z.ZodNullable<z.ZodString>;
950
+ emailDeliveryStatus: z.ZodEnum<["pending", "sent", "ambiguous", "notSent", "notApplicable"]>;
951
+ }, "strip", z.ZodTypeAny, {
952
+ code: string | null;
953
+ status: "revoked" | "expired" | "pending" | "accepted" | "declined";
954
+ id: string;
955
+ method: "code" | "email";
956
+ emailDeliveryStatus: "pending" | "sent" | "ambiguous" | "notSent" | "notApplicable";
957
+ }, {
958
+ code: string | null;
959
+ status: "revoked" | "expired" | "pending" | "accepted" | "declined";
960
+ id: string;
961
+ method: "code" | "email";
962
+ emailDeliveryStatus: "pending" | "sent" | "ambiguous" | "notSent" | "notApplicable";
963
+ }>>;
964
+ version: z.ZodNumber;
965
+ convertedAt: z.ZodNullable<z.ZodString>;
966
+ closedAt: z.ZodNullable<z.ZodString>;
967
+ createdAt: z.ZodString;
968
+ updatedAt: z.ZodString;
969
+ familyReportedSource: z.ZodEnum<["googleSearch", "instagram", "recommendation", "existingClient", "other"]>;
970
+ familyReportedSourceOtherText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
971
+ internalSource: z.ZodEnum<["unclassified", "googleAds", "googleOrganic", "instagram", "referral", "other"]>;
972
+ internalSourceOtherText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
973
+ id: z.ZodString;
974
+ organizationId: z.ZodString;
975
+ coachUserId: z.ZodString;
976
+ status: z.ZodEnum<["new", "callBooked", "callCompleted", "converted", "closedNotConverted"]>;
977
+ contact: z.ZodObject<{
978
+ caregiverName: z.ZodString;
979
+ caregiverEmail: z.ZodString;
980
+ caregiverPhone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
981
+ childFirstName: z.ZodString;
982
+ childAgeBand: z.ZodEnum<["expecting", "under3Months", "3To5Months", "6To8Months", "9To12Months", "13To18Months", "19To24Months", "over2Years"]>;
983
+ }, "strip", z.ZodTypeAny, {
984
+ caregiverName: string;
985
+ caregiverEmail: string;
986
+ childFirstName: string;
987
+ childAgeBand: "expecting" | "under3Months" | "3To5Months" | "6To8Months" | "9To12Months" | "13To18Months" | "19To24Months" | "over2Years";
988
+ caregiverPhone?: string | null | undefined;
989
+ }, {
990
+ caregiverName: string;
991
+ caregiverEmail: string;
992
+ childFirstName: string;
993
+ childAgeBand: "expecting" | "under3Months" | "3To5Months" | "6To8Months" | "9To12Months" | "13To18Months" | "19To24Months" | "over2Years";
994
+ caregiverPhone?: string | null | undefined;
995
+ }>;
996
+ } & {
997
+ events: z.ZodArray<z.ZodObject<{
998
+ id: z.ZodString;
999
+ type: z.ZodEnum<["created", "contactUpdated", "sourceUpdated", "statusChanged", "bookingLinked", "converted"]>;
1000
+ actorType: z.ZodEnum<["public", "coach", "organizationManager", "system"]>;
1001
+ fromStatus: z.ZodNullable<z.ZodEnum<["new", "callBooked", "callCompleted", "converted", "closedNotConverted"]>>;
1002
+ toStatus: z.ZodNullable<z.ZodEnum<["new", "callBooked", "callCompleted", "converted", "closedNotConverted"]>>;
1003
+ source: z.ZodNullable<z.ZodEnum<["unclassified", "googleAds", "googleOrganic", "instagram", "referral", "other"]>>;
1004
+ conversionMethod: z.ZodNullable<z.ZodEnum<["code", "email"]>>;
1005
+ createdAt: z.ZodString;
1006
+ }, "strip", z.ZodTypeAny, {
1007
+ type: "created" | "converted" | "contactUpdated" | "sourceUpdated" | "statusChanged" | "bookingLinked";
1008
+ id: string;
1009
+ createdAt: string;
1010
+ source: "other" | "referral" | "instagram" | "unclassified" | "googleAds" | "googleOrganic" | null;
1011
+ actorType: "coach" | "system" | "public" | "organizationManager";
1012
+ fromStatus: "new" | "converted" | "callBooked" | "callCompleted" | "closedNotConverted" | null;
1013
+ toStatus: "new" | "converted" | "callBooked" | "callCompleted" | "closedNotConverted" | null;
1014
+ conversionMethod: "code" | "email" | null;
1015
+ }, {
1016
+ type: "created" | "converted" | "contactUpdated" | "sourceUpdated" | "statusChanged" | "bookingLinked";
1017
+ id: string;
1018
+ createdAt: string;
1019
+ source: "other" | "referral" | "instagram" | "unclassified" | "googleAds" | "googleOrganic" | null;
1020
+ actorType: "coach" | "system" | "public" | "organizationManager";
1021
+ fromStatus: "new" | "converted" | "callBooked" | "callCompleted" | "closedNotConverted" | null;
1022
+ toStatus: "new" | "converted" | "callBooked" | "callCompleted" | "closedNotConverted" | null;
1023
+ conversionMethod: "code" | "email" | null;
1024
+ }>, "many">;
1025
+ }, "strip", z.ZodTypeAny, {
1026
+ status: "new" | "converted" | "callBooked" | "callCompleted" | "closedNotConverted";
1027
+ id: string;
1028
+ createdAt: string;
1029
+ version: number;
1030
+ updatedAt: string;
1031
+ organizationId: string;
1032
+ coachUserId: string;
1033
+ familyReportedSource: "other" | "recommendation" | "googleSearch" | "instagram" | "existingClient";
1034
+ contact: {
1035
+ caregiverName: string;
1036
+ caregiverEmail: string;
1037
+ childFirstName: string;
1038
+ childAgeBand: "expecting" | "under3Months" | "3To5Months" | "6To8Months" | "9To12Months" | "13To18Months" | "19To24Months" | "over2Years";
1039
+ caregiverPhone?: string | null | undefined;
1040
+ };
1041
+ booking: {
1042
+ status: "scheduled" | "completed" | "cancelled" | "noShow";
1043
+ id: string;
1044
+ startsAt: string;
1045
+ serviceName: string;
1046
+ } | null;
1047
+ internalSource: "other" | "referral" | "instagram" | "unclassified" | "googleAds" | "googleOrganic";
1048
+ events: {
1049
+ type: "created" | "converted" | "contactUpdated" | "sourceUpdated" | "statusChanged" | "bookingLinked";
1050
+ id: string;
1051
+ createdAt: string;
1052
+ source: "other" | "referral" | "instagram" | "unclassified" | "googleAds" | "googleOrganic" | null;
1053
+ actorType: "coach" | "system" | "public" | "organizationManager";
1054
+ fromStatus: "new" | "converted" | "callBooked" | "callCompleted" | "closedNotConverted" | null;
1055
+ toStatus: "new" | "converted" | "callBooked" | "callCompleted" | "closedNotConverted" | null;
1056
+ conversionMethod: "code" | "email" | null;
1057
+ }[];
1058
+ invitation: {
1059
+ code: string | null;
1060
+ status: "revoked" | "expired" | "pending" | "accepted" | "declined";
1061
+ id: string;
1062
+ method: "code" | "email";
1063
+ emailDeliveryStatus: "pending" | "sent" | "ambiguous" | "notSent" | "notApplicable";
1064
+ } | null;
1065
+ convertedAt: string | null;
1066
+ closedAt: string | null;
1067
+ familyReportedSourceOtherText?: string | null | undefined;
1068
+ internalSourceOtherText?: string | null | undefined;
1069
+ }, {
1070
+ status: "new" | "converted" | "callBooked" | "callCompleted" | "closedNotConverted";
1071
+ id: string;
1072
+ createdAt: string;
1073
+ version: number;
1074
+ updatedAt: string;
1075
+ organizationId: string;
1076
+ coachUserId: string;
1077
+ familyReportedSource: "other" | "recommendation" | "googleSearch" | "instagram" | "existingClient";
1078
+ contact: {
1079
+ caregiverName: string;
1080
+ caregiverEmail: string;
1081
+ childFirstName: string;
1082
+ childAgeBand: "expecting" | "under3Months" | "3To5Months" | "6To8Months" | "9To12Months" | "13To18Months" | "19To24Months" | "over2Years";
1083
+ caregiverPhone?: string | null | undefined;
1084
+ };
1085
+ booking: {
1086
+ status: "scheduled" | "completed" | "cancelled" | "noShow";
1087
+ id: string;
1088
+ startsAt: string;
1089
+ serviceName: string;
1090
+ } | null;
1091
+ internalSource: "other" | "referral" | "instagram" | "unclassified" | "googleAds" | "googleOrganic";
1092
+ events: {
1093
+ type: "created" | "converted" | "contactUpdated" | "sourceUpdated" | "statusChanged" | "bookingLinked";
1094
+ id: string;
1095
+ createdAt: string;
1096
+ source: "other" | "referral" | "instagram" | "unclassified" | "googleAds" | "googleOrganic" | null;
1097
+ actorType: "coach" | "system" | "public" | "organizationManager";
1098
+ fromStatus: "new" | "converted" | "callBooked" | "callCompleted" | "closedNotConverted" | null;
1099
+ toStatus: "new" | "converted" | "callBooked" | "callCompleted" | "closedNotConverted" | null;
1100
+ conversionMethod: "code" | "email" | null;
1101
+ }[];
1102
+ invitation: {
1103
+ code: string | null;
1104
+ status: "revoked" | "expired" | "pending" | "accepted" | "declined";
1105
+ id: string;
1106
+ method: "code" | "email";
1107
+ emailDeliveryStatus: "pending" | "sent" | "ambiguous" | "notSent" | "notApplicable";
1108
+ } | null;
1109
+ convertedAt: string | null;
1110
+ closedAt: string | null;
1111
+ familyReportedSourceOtherText?: string | null | undefined;
1112
+ internalSourceOtherText?: string | null | undefined;
1113
+ }>;
1114
+ }, "strip", z.ZodTypeAny, {
1115
+ lead: {
1116
+ status: "new" | "converted" | "callBooked" | "callCompleted" | "closedNotConverted";
1117
+ id: string;
1118
+ createdAt: string;
1119
+ version: number;
1120
+ updatedAt: string;
1121
+ organizationId: string;
1122
+ coachUserId: string;
1123
+ familyReportedSource: "other" | "recommendation" | "googleSearch" | "instagram" | "existingClient";
1124
+ contact: {
1125
+ caregiverName: string;
1126
+ caregiverEmail: string;
1127
+ childFirstName: string;
1128
+ childAgeBand: "expecting" | "under3Months" | "3To5Months" | "6To8Months" | "9To12Months" | "13To18Months" | "19To24Months" | "over2Years";
1129
+ caregiverPhone?: string | null | undefined;
1130
+ };
1131
+ booking: {
1132
+ status: "scheduled" | "completed" | "cancelled" | "noShow";
1133
+ id: string;
1134
+ startsAt: string;
1135
+ serviceName: string;
1136
+ } | null;
1137
+ internalSource: "other" | "referral" | "instagram" | "unclassified" | "googleAds" | "googleOrganic";
1138
+ events: {
1139
+ type: "created" | "converted" | "contactUpdated" | "sourceUpdated" | "statusChanged" | "bookingLinked";
1140
+ id: string;
1141
+ createdAt: string;
1142
+ source: "other" | "referral" | "instagram" | "unclassified" | "googleAds" | "googleOrganic" | null;
1143
+ actorType: "coach" | "system" | "public" | "organizationManager";
1144
+ fromStatus: "new" | "converted" | "callBooked" | "callCompleted" | "closedNotConverted" | null;
1145
+ toStatus: "new" | "converted" | "callBooked" | "callCompleted" | "closedNotConverted" | null;
1146
+ conversionMethod: "code" | "email" | null;
1147
+ }[];
1148
+ invitation: {
1149
+ code: string | null;
1150
+ status: "revoked" | "expired" | "pending" | "accepted" | "declined";
1151
+ id: string;
1152
+ method: "code" | "email";
1153
+ emailDeliveryStatus: "pending" | "sent" | "ambiguous" | "notSent" | "notApplicable";
1154
+ } | null;
1155
+ convertedAt: string | null;
1156
+ closedAt: string | null;
1157
+ familyReportedSourceOtherText?: string | null | undefined;
1158
+ internalSourceOtherText?: string | null | undefined;
1159
+ };
1160
+ }, {
1161
+ lead: {
1162
+ status: "new" | "converted" | "callBooked" | "callCompleted" | "closedNotConverted";
1163
+ id: string;
1164
+ createdAt: string;
1165
+ version: number;
1166
+ updatedAt: string;
1167
+ organizationId: string;
1168
+ coachUserId: string;
1169
+ familyReportedSource: "other" | "recommendation" | "googleSearch" | "instagram" | "existingClient";
1170
+ contact: {
1171
+ caregiverName: string;
1172
+ caregiverEmail: string;
1173
+ childFirstName: string;
1174
+ childAgeBand: "expecting" | "under3Months" | "3To5Months" | "6To8Months" | "9To12Months" | "13To18Months" | "19To24Months" | "over2Years";
1175
+ caregiverPhone?: string | null | undefined;
1176
+ };
1177
+ booking: {
1178
+ status: "scheduled" | "completed" | "cancelled" | "noShow";
1179
+ id: string;
1180
+ startsAt: string;
1181
+ serviceName: string;
1182
+ } | null;
1183
+ internalSource: "other" | "referral" | "instagram" | "unclassified" | "googleAds" | "googleOrganic";
1184
+ events: {
1185
+ type: "created" | "converted" | "contactUpdated" | "sourceUpdated" | "statusChanged" | "bookingLinked";
1186
+ id: string;
1187
+ createdAt: string;
1188
+ source: "other" | "referral" | "instagram" | "unclassified" | "googleAds" | "googleOrganic" | null;
1189
+ actorType: "coach" | "system" | "public" | "organizationManager";
1190
+ fromStatus: "new" | "converted" | "callBooked" | "callCompleted" | "closedNotConverted" | null;
1191
+ toStatus: "new" | "converted" | "callBooked" | "callCompleted" | "closedNotConverted" | null;
1192
+ conversionMethod: "code" | "email" | null;
1193
+ }[];
1194
+ invitation: {
1195
+ code: string | null;
1196
+ status: "revoked" | "expired" | "pending" | "accepted" | "declined";
1197
+ id: string;
1198
+ method: "code" | "email";
1199
+ emailDeliveryStatus: "pending" | "sent" | "ambiguous" | "notSent" | "notApplicable";
1200
+ } | null;
1201
+ convertedAt: string | null;
1202
+ closedAt: string | null;
1203
+ familyReportedSourceOtherText?: string | null | undefined;
1204
+ internalSourceOtherText?: string | null | undefined;
1205
+ };
1206
+ }>;
1207
+ export type LeadStatus = z.infer<typeof leadStatusSchema>;
1208
+ export type LeadMutableStatus = z.infer<typeof leadMutableStatusSchema>;
1209
+ export type LeadInternalSource = z.infer<typeof leadInternalSourceSchema>;
1210
+ export type LeadConversionMethod = z.infer<typeof leadConversionMethodSchema>;
1211
+ export type LeadInvitationEmailStatus = z.infer<typeof leadInvitationEmailStatusSchema>;
1212
+ export type LeadTarget = z.infer<typeof leadTargetSchema>;
1213
+ export type LeadSummary = z.infer<typeof leadSummarySchema>;
1214
+ export type LeadDetail = z.infer<typeof leadDetailSchema>;
1215
+ export type LeadEvent = z.infer<typeof leadEventSchema>;
1216
+ export type LeadListQuery = z.infer<typeof leadListQuerySchema>;
1217
+ export type LeadExportQuery = z.infer<typeof leadExportQuerySchema>;
1218
+ export type LeadCreateRequest = z.infer<typeof leadCreateRequestSchema>;
1219
+ export type LeadUpdateRequest = z.infer<typeof leadUpdateRequestSchema>;
1220
+ export type LeadStatusWrite = z.infer<typeof leadStatusWriteSchema>;
1221
+ export type LeadConvertRequest = z.infer<typeof leadConvertRequestSchema>;
1222
+ export type LeadInvitationEmailRetryRequest = z.infer<typeof leadInvitationEmailRetryRequestSchema>;