@nikthegeek/dreamsforlittles-shared 0.7.0 → 0.10.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 (80) hide show
  1. package/dist/access.d.ts +387 -0
  2. package/dist/access.js +4 -2
  3. package/dist/access.js.map +1 -1
  4. package/dist/active-timer-reminders.d.ts +10 -0
  5. package/dist/active-timer-reminders.js +11 -0
  6. package/dist/active-timer-reminders.js.map +1 -0
  7. package/dist/admin.d.ts +7239 -1272
  8. package/dist/admin.js +75 -0
  9. package/dist/admin.js.map +1 -1
  10. package/dist/allergy-ladders.d.ts +32 -32
  11. package/dist/analysis.d.ts +9 -9
  12. package/dist/api.d.ts +5 -5
  13. package/dist/app-feedback.d.ts +266 -0
  14. package/dist/app-feedback.js +6 -2
  15. package/dist/app-feedback.js.map +1 -1
  16. package/dist/billing.d.ts +144 -0
  17. package/dist/billing.js +89 -0
  18. package/dist/billing.js.map +1 -1
  19. package/dist/branding.d.ts +84 -0
  20. package/dist/branding.js +267 -0
  21. package/dist/branding.js.map +1 -0
  22. package/dist/branding.test.d.ts +1 -0
  23. package/dist/branding.test.js +150 -0
  24. package/dist/branding.test.js.map +1 -0
  25. package/dist/client-notices.d.ts +133 -133
  26. package/dist/coach-activity-notifications.js +9 -1
  27. package/dist/coach-activity-notifications.js.map +1 -1
  28. package/dist/coach-activity-notifications.test.js +15 -0
  29. package/dist/coach-activity-notifications.test.js.map +1 -1
  30. package/dist/coach.d.ts +1759 -183
  31. package/dist/coach.js +137 -6
  32. package/dist/coach.js.map +1 -1
  33. package/dist/enums.d.ts +1 -1
  34. package/dist/enums.js +4 -1
  35. package/dist/enums.js.map +1 -1
  36. package/dist/errors.d.ts +8 -4
  37. package/dist/errors.js +12 -0
  38. package/dist/errors.js.map +1 -1
  39. package/dist/family-invitations.d.ts +508 -14
  40. package/dist/family-profile-artifacts.d.ts +870 -58
  41. package/dist/family.d.ts +531 -232
  42. package/dist/family.js +32 -2
  43. package/dist/family.js.map +1 -1
  44. package/dist/family.test.js +21 -1
  45. package/dist/family.test.js.map +1 -1
  46. package/dist/files.d.ts +2 -2
  47. package/dist/getting-started-guides.d.ts +6 -6
  48. package/dist/index.d.ts +5 -0
  49. package/dist/index.js +5 -0
  50. package/dist/index.js.map +1 -1
  51. package/dist/invites.d.ts +107 -0
  52. package/dist/notification-banners.d.ts +76 -14
  53. package/dist/notification-banners.js +20 -2
  54. package/dist/notification-banners.js.map +1 -1
  55. package/dist/notification-banners.test.d.ts +1 -0
  56. package/dist/notification-banners.test.js +28 -0
  57. package/dist/notification-banners.test.js.map +1 -0
  58. package/dist/product-analytics.d.ts +12 -12
  59. package/dist/subscription-cancellation-feedback.d.ts +539 -0
  60. package/dist/subscription-cancellation-feedback.js +144 -0
  61. package/dist/subscription-cancellation-feedback.js.map +1 -0
  62. package/dist/subscription-cancellation-feedback.test.d.ts +1 -0
  63. package/dist/subscription-cancellation-feedback.test.js +27 -0
  64. package/dist/subscription-cancellation-feedback.test.js.map +1 -0
  65. package/dist/support-attachments.d.ts +320 -0
  66. package/dist/support-attachments.js +108 -0
  67. package/dist/support-attachments.js.map +1 -0
  68. package/dist/support-attachments.test.d.ts +1 -0
  69. package/dist/support-attachments.test.js +35 -0
  70. package/dist/support-attachments.test.js.map +1 -0
  71. package/dist/support-mutation-reconciliation.d.ts +74 -0
  72. package/dist/support-mutation-reconciliation.js +36 -0
  73. package/dist/support-mutation-reconciliation.js.map +1 -0
  74. package/dist/support-mutation-reconciliation.test.d.ts +1 -0
  75. package/dist/support-mutation-reconciliation.test.js +43 -0
  76. package/dist/support-mutation-reconciliation.test.js.map +1 -0
  77. package/dist/support-tickets.d.ts +436 -12
  78. package/dist/support-tickets.js +9 -3
  79. package/dist/support-tickets.js.map +1 -1
  80. package/package.json +1 -1
@@ -0,0 +1,539 @@
1
+ import { z } from "zod";
2
+ export declare const SUBSCRIPTION_CANCELLATION_FEEDBACK_REASONS: readonly [{
3
+ readonly key: "technicalReliability";
4
+ readonly label: "Technical or reliability problems";
5
+ }, {
6
+ readonly key: "missingFeatures";
7
+ readonly label: "Missing features";
8
+ }, {
9
+ readonly key: "difficultToUse";
10
+ readonly label: "Difficult to set up or use";
11
+ }, {
12
+ readonly key: "priceValue";
13
+ readonly label: "Price or value";
14
+ }, {
15
+ readonly key: "clientsNotUsing";
16
+ readonly label: "Clients were not using it";
17
+ }, {
18
+ readonly key: "noLongerNeeded";
19
+ readonly label: "Did not use it enough or no longer needed it";
20
+ }, {
21
+ readonly key: "switchedProduct";
22
+ readonly label: "Switched to another product";
23
+ }, {
24
+ readonly key: "other";
25
+ readonly label: "Other";
26
+ }];
27
+ export declare const SUBSCRIPTION_CANCELLATION_TECHNICAL_AREAS: readonly [{
28
+ readonly key: "startupLogin";
29
+ readonly label: "Startup or login";
30
+ }, {
31
+ readonly key: "sleepTracking";
32
+ readonly label: "Sleep tracking";
33
+ }, {
34
+ readonly key: "activityTracking";
35
+ readonly label: "Other activity tracking";
36
+ }, {
37
+ readonly key: "clientInvitations";
38
+ readonly label: "Client invitations";
39
+ }, {
40
+ readonly key: "dashboard";
41
+ readonly label: "Dashboard";
42
+ }, {
43
+ readonly key: "notifications";
44
+ readonly label: "Notifications";
45
+ }, {
46
+ readonly key: "billing";
47
+ readonly label: "Billing or subscription";
48
+ }, {
49
+ readonly key: "other";
50
+ readonly label: "Other";
51
+ }];
52
+ export declare const MAX_SUBSCRIPTION_CANCELLATION_FEEDBACK_DETAILS_LENGTH = 2000;
53
+ export declare const subscriptionCancellationFeedbackReasonSchema: z.ZodEnum<["technicalReliability", "missingFeatures", "difficultToUse", "priceValue", "clientsNotUsing", "noLongerNeeded", "switchedProduct", "other"]>;
54
+ export declare const subscriptionCancellationTechnicalAreaSchema: z.ZodEnum<["startupLogin", "sleepTracking", "activityTracking", "clientInvitations", "dashboard", "notifications", "billing", "other"]>;
55
+ export declare const subscriptionCancellationFeedbackSubmitRequestSchema: z.ZodEffects<z.ZodObject<{
56
+ reasons: z.ZodEffects<z.ZodArray<z.ZodEnum<["technicalReliability", "missingFeatures", "difficultToUse", "priceValue", "clientsNotUsing", "noLongerNeeded", "switchedProduct", "other"]>, "many">, ("other" | "technicalReliability" | "missingFeatures" | "difficultToUse" | "priceValue" | "clientsNotUsing" | "noLongerNeeded" | "switchedProduct")[], ("other" | "technicalReliability" | "missingFeatures" | "difficultToUse" | "priceValue" | "clientsNotUsing" | "noLongerNeeded" | "switchedProduct")[]>;
57
+ technicalAreas: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodEnum<["startupLogin", "sleepTracking", "activityTracking", "clientInvitations", "dashboard", "notifications", "billing", "other"]>, "many">, ("other" | "billing" | "notifications" | "activityTracking" | "startupLogin" | "sleepTracking" | "clientInvitations" | "dashboard")[], ("other" | "billing" | "notifications" | "activityTracking" | "startupLogin" | "sleepTracking" | "clientInvitations" | "dashboard")[]>>;
58
+ rating: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
59
+ details: z.ZodOptional<z.ZodNullable<z.ZodString>>;
60
+ contactAllowed: z.ZodBoolean;
61
+ }, "strict", z.ZodTypeAny, {
62
+ contactAllowed: boolean;
63
+ reasons: ("other" | "technicalReliability" | "missingFeatures" | "difficultToUse" | "priceValue" | "clientsNotUsing" | "noLongerNeeded" | "switchedProduct")[];
64
+ technicalAreas: ("other" | "billing" | "notifications" | "activityTracking" | "startupLogin" | "sleepTracking" | "clientInvitations" | "dashboard")[];
65
+ details?: string | null | undefined;
66
+ rating?: number | null | undefined;
67
+ }, {
68
+ contactAllowed: boolean;
69
+ reasons: ("other" | "technicalReliability" | "missingFeatures" | "difficultToUse" | "priceValue" | "clientsNotUsing" | "noLongerNeeded" | "switchedProduct")[];
70
+ details?: string | null | undefined;
71
+ technicalAreas?: ("other" | "billing" | "notifications" | "activityTracking" | "startupLogin" | "sleepTracking" | "clientInvitations" | "dashboard")[] | undefined;
72
+ rating?: number | null | undefined;
73
+ }>, {
74
+ contactAllowed: boolean;
75
+ reasons: ("other" | "technicalReliability" | "missingFeatures" | "difficultToUse" | "priceValue" | "clientsNotUsing" | "noLongerNeeded" | "switchedProduct")[];
76
+ technicalAreas: ("other" | "billing" | "notifications" | "activityTracking" | "startupLogin" | "sleepTracking" | "clientInvitations" | "dashboard")[];
77
+ details?: string | null | undefined;
78
+ rating?: number | null | undefined;
79
+ }, {
80
+ contactAllowed: boolean;
81
+ reasons: ("other" | "technicalReliability" | "missingFeatures" | "difficultToUse" | "priceValue" | "clientsNotUsing" | "noLongerNeeded" | "switchedProduct")[];
82
+ details?: string | null | undefined;
83
+ technicalAreas?: ("other" | "billing" | "notifications" | "activityTracking" | "startupLogin" | "sleepTracking" | "clientInvitations" | "dashboard")[] | undefined;
84
+ rating?: number | null | undefined;
85
+ }>;
86
+ export declare const subscriptionCancellationFeedbackPublicContextSchema: z.ZodObject<{
87
+ status: z.ZodEnum<["available", "submitted", "unavailable"]>;
88
+ firstName: z.ZodOptional<z.ZodString>;
89
+ organizationName: z.ZodOptional<z.ZodString>;
90
+ cancellationEffectiveAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
91
+ expiresAt: z.ZodOptional<z.ZodString>;
92
+ }, "strip", z.ZodTypeAny, {
93
+ status: "submitted" | "available" | "unavailable";
94
+ expiresAt?: string | undefined;
95
+ organizationName?: string | undefined;
96
+ firstName?: string | undefined;
97
+ cancellationEffectiveAt?: string | null | undefined;
98
+ }, {
99
+ status: "submitted" | "available" | "unavailable";
100
+ expiresAt?: string | undefined;
101
+ organizationName?: string | undefined;
102
+ firstName?: string | undefined;
103
+ cancellationEffectiveAt?: string | null | undefined;
104
+ }>;
105
+ export declare const subscriptionCancellationFeedbackSubmitResponseSchema: z.ZodObject<{
106
+ status: z.ZodLiteral<"submitted">;
107
+ }, "strip", z.ZodTypeAny, {
108
+ status: "submitted";
109
+ }, {
110
+ status: "submitted";
111
+ }>;
112
+ export declare const subscriptionCancellationFeedbackDeliveryStatusSchema: z.ZodEnum<["scheduled", "sending", "sent", "failed", "submitted", "canceled", "expired"]>;
113
+ export declare const subscriptionCancellationFeedbackSchema: z.ZodObject<{
114
+ id: z.ZodString;
115
+ subscriptionId: z.ZodString;
116
+ coachUserId: z.ZodString;
117
+ organizationId: z.ZodString;
118
+ recipientEmail: z.ZodString;
119
+ recipientName: z.ZodString;
120
+ organizationName: z.ZodString;
121
+ cancellationEffectiveAt: z.ZodString;
122
+ deliveryStatus: z.ZodEnum<["scheduled", "sending", "sent", "failed", "submitted", "canceled", "expired"]>;
123
+ reviewStatus: z.ZodEnum<["new", "inReview", "resolved", "archived"]>;
124
+ reasons: z.ZodArray<z.ZodEnum<["technicalReliability", "missingFeatures", "difficultToUse", "priceValue", "clientsNotUsing", "noLongerNeeded", "switchedProduct", "other"]>, "many">;
125
+ technicalAreas: z.ZodArray<z.ZodEnum<["startupLogin", "sleepTracking", "activityTracking", "clientInvitations", "dashboard", "notifications", "billing", "other"]>, "many">;
126
+ rating: z.ZodNullable<z.ZodNumber>;
127
+ details: z.ZodNullable<z.ZodString>;
128
+ contactAllowed: z.ZodNullable<z.ZodBoolean>;
129
+ attemptCount: z.ZodNumber;
130
+ lastError: z.ZodNullable<z.ZodString>;
131
+ sendAfter: z.ZodString;
132
+ expiresAt: z.ZodString;
133
+ sentAt: z.ZodNullable<z.ZodString>;
134
+ submittedAt: z.ZodNullable<z.ZodString>;
135
+ canceledAt: z.ZodNullable<z.ZodString>;
136
+ reviewedAt: z.ZodNullable<z.ZodString>;
137
+ resolvedAt: z.ZodNullable<z.ZodString>;
138
+ archivedAt: z.ZodNullable<z.ZodString>;
139
+ adminNotes: z.ZodNullable<z.ZodString>;
140
+ createdAt: z.ZodString;
141
+ updatedAt: z.ZodString;
142
+ }, "strip", z.ZodTypeAny, {
143
+ id: string;
144
+ createdAt: string;
145
+ expiresAt: string;
146
+ updatedAt: string;
147
+ organizationId: string;
148
+ coachUserId: string;
149
+ canceledAt: string | null;
150
+ details: string | null;
151
+ contactAllowed: boolean | null;
152
+ reviewedAt: string | null;
153
+ resolvedAt: string | null;
154
+ archivedAt: string | null;
155
+ adminNotes: string | null;
156
+ organizationName: string;
157
+ submittedAt: string | null;
158
+ reasons: ("other" | "technicalReliability" | "missingFeatures" | "difficultToUse" | "priceValue" | "clientsNotUsing" | "noLongerNeeded" | "switchedProduct")[];
159
+ technicalAreas: ("other" | "billing" | "notifications" | "activityTracking" | "startupLogin" | "sleepTracking" | "clientInvitations" | "dashboard")[];
160
+ rating: number | null;
161
+ cancellationEffectiveAt: string;
162
+ subscriptionId: string;
163
+ recipientEmail: string;
164
+ recipientName: string;
165
+ deliveryStatus: "expired" | "canceled" | "scheduled" | "failed" | "submitted" | "sending" | "sent";
166
+ reviewStatus: "archived" | "new" | "inReview" | "resolved";
167
+ attemptCount: number;
168
+ lastError: string | null;
169
+ sendAfter: string;
170
+ sentAt: string | null;
171
+ }, {
172
+ id: string;
173
+ createdAt: string;
174
+ expiresAt: string;
175
+ updatedAt: string;
176
+ organizationId: string;
177
+ coachUserId: string;
178
+ canceledAt: string | null;
179
+ details: string | null;
180
+ contactAllowed: boolean | null;
181
+ reviewedAt: string | null;
182
+ resolvedAt: string | null;
183
+ archivedAt: string | null;
184
+ adminNotes: string | null;
185
+ organizationName: string;
186
+ submittedAt: string | null;
187
+ reasons: ("other" | "technicalReliability" | "missingFeatures" | "difficultToUse" | "priceValue" | "clientsNotUsing" | "noLongerNeeded" | "switchedProduct")[];
188
+ technicalAreas: ("other" | "billing" | "notifications" | "activityTracking" | "startupLogin" | "sleepTracking" | "clientInvitations" | "dashboard")[];
189
+ rating: number | null;
190
+ cancellationEffectiveAt: string;
191
+ subscriptionId: string;
192
+ recipientEmail: string;
193
+ recipientName: string;
194
+ deliveryStatus: "expired" | "canceled" | "scheduled" | "failed" | "submitted" | "sending" | "sent";
195
+ reviewStatus: "archived" | "new" | "inReview" | "resolved";
196
+ attemptCount: number;
197
+ lastError: string | null;
198
+ sendAfter: string;
199
+ sentAt: string | null;
200
+ }>;
201
+ export declare const adminSubscriptionCancellationFeedbackResponseSchema: z.ZodObject<{
202
+ feedback: z.ZodArray<z.ZodObject<{
203
+ id: z.ZodString;
204
+ subscriptionId: z.ZodString;
205
+ coachUserId: z.ZodString;
206
+ organizationId: z.ZodString;
207
+ recipientEmail: z.ZodString;
208
+ recipientName: z.ZodString;
209
+ organizationName: z.ZodString;
210
+ cancellationEffectiveAt: z.ZodString;
211
+ deliveryStatus: z.ZodEnum<["scheduled", "sending", "sent", "failed", "submitted", "canceled", "expired"]>;
212
+ reviewStatus: z.ZodEnum<["new", "inReview", "resolved", "archived"]>;
213
+ reasons: z.ZodArray<z.ZodEnum<["technicalReliability", "missingFeatures", "difficultToUse", "priceValue", "clientsNotUsing", "noLongerNeeded", "switchedProduct", "other"]>, "many">;
214
+ technicalAreas: z.ZodArray<z.ZodEnum<["startupLogin", "sleepTracking", "activityTracking", "clientInvitations", "dashboard", "notifications", "billing", "other"]>, "many">;
215
+ rating: z.ZodNullable<z.ZodNumber>;
216
+ details: z.ZodNullable<z.ZodString>;
217
+ contactAllowed: z.ZodNullable<z.ZodBoolean>;
218
+ attemptCount: z.ZodNumber;
219
+ lastError: z.ZodNullable<z.ZodString>;
220
+ sendAfter: z.ZodString;
221
+ expiresAt: z.ZodString;
222
+ sentAt: z.ZodNullable<z.ZodString>;
223
+ submittedAt: z.ZodNullable<z.ZodString>;
224
+ canceledAt: z.ZodNullable<z.ZodString>;
225
+ reviewedAt: z.ZodNullable<z.ZodString>;
226
+ resolvedAt: z.ZodNullable<z.ZodString>;
227
+ archivedAt: z.ZodNullable<z.ZodString>;
228
+ adminNotes: z.ZodNullable<z.ZodString>;
229
+ createdAt: z.ZodString;
230
+ updatedAt: z.ZodString;
231
+ }, "strip", z.ZodTypeAny, {
232
+ id: string;
233
+ createdAt: string;
234
+ expiresAt: string;
235
+ updatedAt: string;
236
+ organizationId: string;
237
+ coachUserId: string;
238
+ canceledAt: string | null;
239
+ details: string | null;
240
+ contactAllowed: boolean | null;
241
+ reviewedAt: string | null;
242
+ resolvedAt: string | null;
243
+ archivedAt: string | null;
244
+ adminNotes: string | null;
245
+ organizationName: string;
246
+ submittedAt: string | null;
247
+ reasons: ("other" | "technicalReliability" | "missingFeatures" | "difficultToUse" | "priceValue" | "clientsNotUsing" | "noLongerNeeded" | "switchedProduct")[];
248
+ technicalAreas: ("other" | "billing" | "notifications" | "activityTracking" | "startupLogin" | "sleepTracking" | "clientInvitations" | "dashboard")[];
249
+ rating: number | null;
250
+ cancellationEffectiveAt: string;
251
+ subscriptionId: string;
252
+ recipientEmail: string;
253
+ recipientName: string;
254
+ deliveryStatus: "expired" | "canceled" | "scheduled" | "failed" | "submitted" | "sending" | "sent";
255
+ reviewStatus: "archived" | "new" | "inReview" | "resolved";
256
+ attemptCount: number;
257
+ lastError: string | null;
258
+ sendAfter: string;
259
+ sentAt: string | null;
260
+ }, {
261
+ id: string;
262
+ createdAt: string;
263
+ expiresAt: string;
264
+ updatedAt: string;
265
+ organizationId: string;
266
+ coachUserId: string;
267
+ canceledAt: string | null;
268
+ details: string | null;
269
+ contactAllowed: boolean | null;
270
+ reviewedAt: string | null;
271
+ resolvedAt: string | null;
272
+ archivedAt: string | null;
273
+ adminNotes: string | null;
274
+ organizationName: string;
275
+ submittedAt: string | null;
276
+ reasons: ("other" | "technicalReliability" | "missingFeatures" | "difficultToUse" | "priceValue" | "clientsNotUsing" | "noLongerNeeded" | "switchedProduct")[];
277
+ technicalAreas: ("other" | "billing" | "notifications" | "activityTracking" | "startupLogin" | "sleepTracking" | "clientInvitations" | "dashboard")[];
278
+ rating: number | null;
279
+ cancellationEffectiveAt: string;
280
+ subscriptionId: string;
281
+ recipientEmail: string;
282
+ recipientName: string;
283
+ deliveryStatus: "expired" | "canceled" | "scheduled" | "failed" | "submitted" | "sending" | "sent";
284
+ reviewStatus: "archived" | "new" | "inReview" | "resolved";
285
+ attemptCount: number;
286
+ lastError: string | null;
287
+ sendAfter: string;
288
+ sentAt: string | null;
289
+ }>, "many">;
290
+ }, "strip", z.ZodTypeAny, {
291
+ feedback: {
292
+ id: string;
293
+ createdAt: string;
294
+ expiresAt: string;
295
+ updatedAt: string;
296
+ organizationId: string;
297
+ coachUserId: string;
298
+ canceledAt: string | null;
299
+ details: string | null;
300
+ contactAllowed: boolean | null;
301
+ reviewedAt: string | null;
302
+ resolvedAt: string | null;
303
+ archivedAt: string | null;
304
+ adminNotes: string | null;
305
+ organizationName: string;
306
+ submittedAt: string | null;
307
+ reasons: ("other" | "technicalReliability" | "missingFeatures" | "difficultToUse" | "priceValue" | "clientsNotUsing" | "noLongerNeeded" | "switchedProduct")[];
308
+ technicalAreas: ("other" | "billing" | "notifications" | "activityTracking" | "startupLogin" | "sleepTracking" | "clientInvitations" | "dashboard")[];
309
+ rating: number | null;
310
+ cancellationEffectiveAt: string;
311
+ subscriptionId: string;
312
+ recipientEmail: string;
313
+ recipientName: string;
314
+ deliveryStatus: "expired" | "canceled" | "scheduled" | "failed" | "submitted" | "sending" | "sent";
315
+ reviewStatus: "archived" | "new" | "inReview" | "resolved";
316
+ attemptCount: number;
317
+ lastError: string | null;
318
+ sendAfter: string;
319
+ sentAt: string | null;
320
+ }[];
321
+ }, {
322
+ feedback: {
323
+ id: string;
324
+ createdAt: string;
325
+ expiresAt: string;
326
+ updatedAt: string;
327
+ organizationId: string;
328
+ coachUserId: string;
329
+ canceledAt: string | null;
330
+ details: string | null;
331
+ contactAllowed: boolean | null;
332
+ reviewedAt: string | null;
333
+ resolvedAt: string | null;
334
+ archivedAt: string | null;
335
+ adminNotes: string | null;
336
+ organizationName: string;
337
+ submittedAt: string | null;
338
+ reasons: ("other" | "technicalReliability" | "missingFeatures" | "difficultToUse" | "priceValue" | "clientsNotUsing" | "noLongerNeeded" | "switchedProduct")[];
339
+ technicalAreas: ("other" | "billing" | "notifications" | "activityTracking" | "startupLogin" | "sleepTracking" | "clientInvitations" | "dashboard")[];
340
+ rating: number | null;
341
+ cancellationEffectiveAt: string;
342
+ subscriptionId: string;
343
+ recipientEmail: string;
344
+ recipientName: string;
345
+ deliveryStatus: "expired" | "canceled" | "scheduled" | "failed" | "submitted" | "sending" | "sent";
346
+ reviewStatus: "archived" | "new" | "inReview" | "resolved";
347
+ attemptCount: number;
348
+ lastError: string | null;
349
+ sendAfter: string;
350
+ sentAt: string | null;
351
+ }[];
352
+ }>;
353
+ export declare const adminSubscriptionCancellationFeedbackRequestCreateSchema: z.ZodObject<{
354
+ email: z.ZodString;
355
+ }, "strict", z.ZodTypeAny, {
356
+ email: string;
357
+ }, {
358
+ email: string;
359
+ }>;
360
+ export declare const adminSubscriptionCancellationFeedbackRequestCreateResponseSchema: z.ZodObject<{
361
+ feedback: z.ZodObject<{
362
+ id: z.ZodString;
363
+ subscriptionId: z.ZodString;
364
+ coachUserId: z.ZodString;
365
+ organizationId: z.ZodString;
366
+ recipientEmail: z.ZodString;
367
+ recipientName: z.ZodString;
368
+ organizationName: z.ZodString;
369
+ cancellationEffectiveAt: z.ZodString;
370
+ deliveryStatus: z.ZodEnum<["scheduled", "sending", "sent", "failed", "submitted", "canceled", "expired"]>;
371
+ reviewStatus: z.ZodEnum<["new", "inReview", "resolved", "archived"]>;
372
+ reasons: z.ZodArray<z.ZodEnum<["technicalReliability", "missingFeatures", "difficultToUse", "priceValue", "clientsNotUsing", "noLongerNeeded", "switchedProduct", "other"]>, "many">;
373
+ technicalAreas: z.ZodArray<z.ZodEnum<["startupLogin", "sleepTracking", "activityTracking", "clientInvitations", "dashboard", "notifications", "billing", "other"]>, "many">;
374
+ rating: z.ZodNullable<z.ZodNumber>;
375
+ details: z.ZodNullable<z.ZodString>;
376
+ contactAllowed: z.ZodNullable<z.ZodBoolean>;
377
+ attemptCount: z.ZodNumber;
378
+ lastError: z.ZodNullable<z.ZodString>;
379
+ sendAfter: z.ZodString;
380
+ expiresAt: z.ZodString;
381
+ sentAt: z.ZodNullable<z.ZodString>;
382
+ submittedAt: z.ZodNullable<z.ZodString>;
383
+ canceledAt: z.ZodNullable<z.ZodString>;
384
+ reviewedAt: z.ZodNullable<z.ZodString>;
385
+ resolvedAt: z.ZodNullable<z.ZodString>;
386
+ archivedAt: z.ZodNullable<z.ZodString>;
387
+ adminNotes: z.ZodNullable<z.ZodString>;
388
+ createdAt: z.ZodString;
389
+ updatedAt: z.ZodString;
390
+ }, "strip", z.ZodTypeAny, {
391
+ id: string;
392
+ createdAt: string;
393
+ expiresAt: string;
394
+ updatedAt: string;
395
+ organizationId: string;
396
+ coachUserId: string;
397
+ canceledAt: string | null;
398
+ details: string | null;
399
+ contactAllowed: boolean | null;
400
+ reviewedAt: string | null;
401
+ resolvedAt: string | null;
402
+ archivedAt: string | null;
403
+ adminNotes: string | null;
404
+ organizationName: string;
405
+ submittedAt: string | null;
406
+ reasons: ("other" | "technicalReliability" | "missingFeatures" | "difficultToUse" | "priceValue" | "clientsNotUsing" | "noLongerNeeded" | "switchedProduct")[];
407
+ technicalAreas: ("other" | "billing" | "notifications" | "activityTracking" | "startupLogin" | "sleepTracking" | "clientInvitations" | "dashboard")[];
408
+ rating: number | null;
409
+ cancellationEffectiveAt: string;
410
+ subscriptionId: string;
411
+ recipientEmail: string;
412
+ recipientName: string;
413
+ deliveryStatus: "expired" | "canceled" | "scheduled" | "failed" | "submitted" | "sending" | "sent";
414
+ reviewStatus: "archived" | "new" | "inReview" | "resolved";
415
+ attemptCount: number;
416
+ lastError: string | null;
417
+ sendAfter: string;
418
+ sentAt: string | null;
419
+ }, {
420
+ id: string;
421
+ createdAt: string;
422
+ expiresAt: string;
423
+ updatedAt: string;
424
+ organizationId: string;
425
+ coachUserId: string;
426
+ canceledAt: string | null;
427
+ details: string | null;
428
+ contactAllowed: boolean | null;
429
+ reviewedAt: string | null;
430
+ resolvedAt: string | null;
431
+ archivedAt: string | null;
432
+ adminNotes: string | null;
433
+ organizationName: string;
434
+ submittedAt: string | null;
435
+ reasons: ("other" | "technicalReliability" | "missingFeatures" | "difficultToUse" | "priceValue" | "clientsNotUsing" | "noLongerNeeded" | "switchedProduct")[];
436
+ technicalAreas: ("other" | "billing" | "notifications" | "activityTracking" | "startupLogin" | "sleepTracking" | "clientInvitations" | "dashboard")[];
437
+ rating: number | null;
438
+ cancellationEffectiveAt: string;
439
+ subscriptionId: string;
440
+ recipientEmail: string;
441
+ recipientName: string;
442
+ deliveryStatus: "expired" | "canceled" | "scheduled" | "failed" | "submitted" | "sending" | "sent";
443
+ reviewStatus: "archived" | "new" | "inReview" | "resolved";
444
+ attemptCount: number;
445
+ lastError: string | null;
446
+ sendAfter: string;
447
+ sentAt: string | null;
448
+ }>;
449
+ created: z.ZodBoolean;
450
+ }, "strip", z.ZodTypeAny, {
451
+ feedback: {
452
+ id: string;
453
+ createdAt: string;
454
+ expiresAt: string;
455
+ updatedAt: string;
456
+ organizationId: string;
457
+ coachUserId: string;
458
+ canceledAt: string | null;
459
+ details: string | null;
460
+ contactAllowed: boolean | null;
461
+ reviewedAt: string | null;
462
+ resolvedAt: string | null;
463
+ archivedAt: string | null;
464
+ adminNotes: string | null;
465
+ organizationName: string;
466
+ submittedAt: string | null;
467
+ reasons: ("other" | "technicalReliability" | "missingFeatures" | "difficultToUse" | "priceValue" | "clientsNotUsing" | "noLongerNeeded" | "switchedProduct")[];
468
+ technicalAreas: ("other" | "billing" | "notifications" | "activityTracking" | "startupLogin" | "sleepTracking" | "clientInvitations" | "dashboard")[];
469
+ rating: number | null;
470
+ cancellationEffectiveAt: string;
471
+ subscriptionId: string;
472
+ recipientEmail: string;
473
+ recipientName: string;
474
+ deliveryStatus: "expired" | "canceled" | "scheduled" | "failed" | "submitted" | "sending" | "sent";
475
+ reviewStatus: "archived" | "new" | "inReview" | "resolved";
476
+ attemptCount: number;
477
+ lastError: string | null;
478
+ sendAfter: string;
479
+ sentAt: string | null;
480
+ };
481
+ created: boolean;
482
+ }, {
483
+ feedback: {
484
+ id: string;
485
+ createdAt: string;
486
+ expiresAt: string;
487
+ updatedAt: string;
488
+ organizationId: string;
489
+ coachUserId: string;
490
+ canceledAt: string | null;
491
+ details: string | null;
492
+ contactAllowed: boolean | null;
493
+ reviewedAt: string | null;
494
+ resolvedAt: string | null;
495
+ archivedAt: string | null;
496
+ adminNotes: string | null;
497
+ organizationName: string;
498
+ submittedAt: string | null;
499
+ reasons: ("other" | "technicalReliability" | "missingFeatures" | "difficultToUse" | "priceValue" | "clientsNotUsing" | "noLongerNeeded" | "switchedProduct")[];
500
+ technicalAreas: ("other" | "billing" | "notifications" | "activityTracking" | "startupLogin" | "sleepTracking" | "clientInvitations" | "dashboard")[];
501
+ rating: number | null;
502
+ cancellationEffectiveAt: string;
503
+ subscriptionId: string;
504
+ recipientEmail: string;
505
+ recipientName: string;
506
+ deliveryStatus: "expired" | "canceled" | "scheduled" | "failed" | "submitted" | "sending" | "sent";
507
+ reviewStatus: "archived" | "new" | "inReview" | "resolved";
508
+ attemptCount: number;
509
+ lastError: string | null;
510
+ sendAfter: string;
511
+ sentAt: string | null;
512
+ };
513
+ created: boolean;
514
+ }>;
515
+ export declare const adminSubscriptionCancellationFeedbackUpdateSchema: z.ZodEffects<z.ZodObject<{
516
+ status: z.ZodOptional<z.ZodEnum<["new", "inReview", "resolved", "archived"]>>;
517
+ adminNotes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
518
+ }, "strict", z.ZodTypeAny, {
519
+ status?: "archived" | "new" | "inReview" | "resolved" | undefined;
520
+ adminNotes?: string | null | undefined;
521
+ }, {
522
+ status?: "archived" | "new" | "inReview" | "resolved" | undefined;
523
+ adminNotes?: string | null | undefined;
524
+ }>, {
525
+ status?: "archived" | "new" | "inReview" | "resolved" | undefined;
526
+ adminNotes?: string | null | undefined;
527
+ }, {
528
+ status?: "archived" | "new" | "inReview" | "resolved" | undefined;
529
+ adminNotes?: string | null | undefined;
530
+ }>;
531
+ export type SubscriptionCancellationFeedbackReason = z.infer<typeof subscriptionCancellationFeedbackReasonSchema>;
532
+ export type SubscriptionCancellationTechnicalArea = z.infer<typeof subscriptionCancellationTechnicalAreaSchema>;
533
+ export type SubscriptionCancellationFeedbackSubmitRequest = z.infer<typeof subscriptionCancellationFeedbackSubmitRequestSchema>;
534
+ export type SubscriptionCancellationFeedbackPublicContext = z.infer<typeof subscriptionCancellationFeedbackPublicContextSchema>;
535
+ export type SubscriptionCancellationFeedback = z.infer<typeof subscriptionCancellationFeedbackSchema>;
536
+ export type AdminSubscriptionCancellationFeedbackResponse = z.infer<typeof adminSubscriptionCancellationFeedbackResponseSchema>;
537
+ export type AdminSubscriptionCancellationFeedbackRequestCreate = z.infer<typeof adminSubscriptionCancellationFeedbackRequestCreateSchema>;
538
+ export type AdminSubscriptionCancellationFeedbackRequestCreateResponse = z.infer<typeof adminSubscriptionCancellationFeedbackRequestCreateResponseSchema>;
539
+ export type AdminSubscriptionCancellationFeedbackUpdate = z.infer<typeof adminSubscriptionCancellationFeedbackUpdateSchema>;