@nikthegeek/dreamsforlittles-shared 0.7.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/access.d.ts +352 -0
- package/dist/access.js +2 -1
- package/dist/access.js.map +1 -1
- package/dist/active-timer-reminders.d.ts +10 -0
- package/dist/active-timer-reminders.js +11 -0
- package/dist/active-timer-reminders.js.map +1 -0
- package/dist/admin.d.ts +1867 -0
- package/dist/admin.js +4 -0
- package/dist/admin.js.map +1 -1
- package/dist/analysis.d.ts +9 -9
- package/dist/api.d.ts +5 -5
- package/dist/app-feedback.d.ts +266 -0
- package/dist/app-feedback.js +6 -2
- package/dist/app-feedback.js.map +1 -1
- package/dist/branding.d.ts +80 -0
- package/dist/branding.js +234 -0
- package/dist/branding.js.map +1 -0
- package/dist/branding.test.d.ts +1 -0
- package/dist/branding.test.js +101 -0
- package/dist/branding.test.js.map +1 -0
- package/dist/client-notices.d.ts +133 -133
- package/dist/coach-activity-notifications.js +9 -1
- package/dist/coach-activity-notifications.js.map +1 -1
- package/dist/coach-activity-notifications.test.js +15 -0
- package/dist/coach-activity-notifications.test.js.map +1 -1
- package/dist/coach.d.ts +1188 -178
- package/dist/coach.js +36 -2
- package/dist/coach.js.map +1 -1
- package/dist/enums.d.ts +1 -1
- package/dist/enums.js +4 -1
- package/dist/enums.js.map +1 -1
- package/dist/errors.d.ts +8 -4
- package/dist/errors.js +12 -0
- package/dist/errors.js.map +1 -1
- package/dist/family-invitations.d.ts +466 -14
- package/dist/family-profile-artifacts.d.ts +802 -58
- package/dist/family.d.ts +397 -232
- package/dist/family.js +14 -1
- package/dist/family.js.map +1 -1
- package/dist/family.test.js +21 -1
- package/dist/family.test.js.map +1 -1
- package/dist/files.d.ts +2 -2
- package/dist/getting-started-guides.d.ts +6 -6
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/invites.d.ts +98 -0
- package/dist/notification-banners.d.ts +76 -14
- package/dist/notification-banners.js +20 -2
- package/dist/notification-banners.js.map +1 -1
- package/dist/notification-banners.test.d.ts +1 -0
- package/dist/notification-banners.test.js +28 -0
- package/dist/notification-banners.test.js.map +1 -0
- package/dist/subscription-cancellation-feedback.d.ts +539 -0
- package/dist/subscription-cancellation-feedback.js +144 -0
- package/dist/subscription-cancellation-feedback.js.map +1 -0
- package/dist/subscription-cancellation-feedback.test.d.ts +1 -0
- package/dist/subscription-cancellation-feedback.test.js +27 -0
- package/dist/subscription-cancellation-feedback.test.js.map +1 -0
- package/dist/support-attachments.d.ts +320 -0
- package/dist/support-attachments.js +108 -0
- package/dist/support-attachments.js.map +1 -0
- package/dist/support-attachments.test.d.ts +1 -0
- package/dist/support-attachments.test.js +35 -0
- package/dist/support-attachments.test.js.map +1 -0
- package/dist/support-mutation-reconciliation.d.ts +74 -0
- package/dist/support-mutation-reconciliation.js +36 -0
- package/dist/support-mutation-reconciliation.js.map +1 -0
- package/dist/support-mutation-reconciliation.test.d.ts +1 -0
- package/dist/support-mutation-reconciliation.test.js +43 -0
- package/dist/support-mutation-reconciliation.test.js.map +1 -0
- package/dist/support-tickets.d.ts +424 -0
- package/dist/support-tickets.js +9 -3
- package/dist/support-tickets.js.map +1 -1
- package/package.json +1 -1
package/dist/app-feedback.d.ts
CHANGED
|
@@ -20,23 +20,29 @@ export declare const appFeedbackStatusSchema: z.ZodEnum<["new", "inReview", "res
|
|
|
20
20
|
export declare const appFeedbackSourceRoleSchema: z.ZodEnum<["family", "coach"]>;
|
|
21
21
|
export declare const normalizeAppFeedbackMessage: (message: string) => string;
|
|
22
22
|
export declare const appFeedbackCreateRequestSchema: z.ZodObject<{
|
|
23
|
+
clientRequestId: z.ZodOptional<z.ZodString>;
|
|
23
24
|
category: z.ZodEnum<["general", "bug", "feature", "content"]>;
|
|
24
25
|
message: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodString>;
|
|
25
26
|
contactAllowed: z.ZodBoolean;
|
|
26
27
|
devicePlatform: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
28
|
appVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
attachmentIds: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
|
|
28
30
|
}, "strict", z.ZodTypeAny, {
|
|
29
31
|
message: string;
|
|
30
32
|
category: "content" | "general" | "bug" | "feature";
|
|
31
33
|
contactAllowed: boolean;
|
|
32
34
|
devicePlatform?: string | null | undefined;
|
|
35
|
+
clientRequestId?: string | undefined;
|
|
33
36
|
appVersion?: string | null | undefined;
|
|
37
|
+
attachmentIds?: string[] | undefined;
|
|
34
38
|
}, {
|
|
35
39
|
message: string;
|
|
36
40
|
category: "content" | "general" | "bug" | "feature";
|
|
37
41
|
contactAllowed: boolean;
|
|
38
42
|
devicePlatform?: string | null | undefined;
|
|
43
|
+
clientRequestId?: string | undefined;
|
|
39
44
|
appVersion?: string | null | undefined;
|
|
45
|
+
attachmentIds?: string[] | undefined;
|
|
40
46
|
}>;
|
|
41
47
|
export declare const appFeedbackSchema: z.ZodObject<{
|
|
42
48
|
id: z.ZodString;
|
|
@@ -58,6 +64,46 @@ export declare const appFeedbackSchema: z.ZodObject<{
|
|
|
58
64
|
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
65
|
adminNotes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
66
|
updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
67
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
68
|
+
id: z.ZodString;
|
|
69
|
+
purpose: z.ZodEnum<["app_feedback", "support_ticket_message"]>;
|
|
70
|
+
mediaKind: z.ZodEnum<["image", "video"]>;
|
|
71
|
+
status: z.ZodEnum<["pending", "finalizing", "ready", "attached", "rejected", "deleting", "deleted"]>;
|
|
72
|
+
fileName: z.ZodString;
|
|
73
|
+
contentType: z.ZodEnum<["image/jpeg", "image/png", "image/webp", "video/mp4", "video/quicktime"]>;
|
|
74
|
+
sizeBytes: z.ZodNumber;
|
|
75
|
+
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
76
|
+
width: z.ZodNullable<z.ZodNumber>;
|
|
77
|
+
height: z.ZodNullable<z.ZodNumber>;
|
|
78
|
+
createdAt: z.ZodString;
|
|
79
|
+
updatedAt: z.ZodString;
|
|
80
|
+
}, "strip", z.ZodTypeAny, {
|
|
81
|
+
status: "pending" | "finalizing" | "ready" | "attached" | "rejected" | "deleting" | "deleted";
|
|
82
|
+
id: string;
|
|
83
|
+
createdAt: string;
|
|
84
|
+
updatedAt: string;
|
|
85
|
+
purpose: "app_feedback" | "support_ticket_message";
|
|
86
|
+
mediaKind: "image" | "video";
|
|
87
|
+
fileName: string;
|
|
88
|
+
contentType: "image/jpeg" | "image/png" | "image/webp" | "video/mp4" | "video/quicktime";
|
|
89
|
+
sizeBytes: number;
|
|
90
|
+
durationMs: number | null;
|
|
91
|
+
width: number | null;
|
|
92
|
+
height: number | null;
|
|
93
|
+
}, {
|
|
94
|
+
status: "pending" | "finalizing" | "ready" | "attached" | "rejected" | "deleting" | "deleted";
|
|
95
|
+
id: string;
|
|
96
|
+
createdAt: string;
|
|
97
|
+
updatedAt: string;
|
|
98
|
+
purpose: "app_feedback" | "support_ticket_message";
|
|
99
|
+
mediaKind: "image" | "video";
|
|
100
|
+
fileName: string;
|
|
101
|
+
contentType: "image/jpeg" | "image/png" | "image/webp" | "video/mp4" | "video/quicktime";
|
|
102
|
+
sizeBytes: number;
|
|
103
|
+
durationMs: number | null;
|
|
104
|
+
width: number | null;
|
|
105
|
+
height: number | null;
|
|
106
|
+
}>, "many">>;
|
|
61
107
|
}, "strip", z.ZodTypeAny, {
|
|
62
108
|
message: string;
|
|
63
109
|
status: "archived" | "new" | "inReview" | "resolved";
|
|
@@ -78,6 +124,20 @@ export declare const appFeedbackSchema: z.ZodObject<{
|
|
|
78
124
|
archivedAt?: string | null | undefined;
|
|
79
125
|
adminNotes?: string | null | undefined;
|
|
80
126
|
updatedBy?: string | null | undefined;
|
|
127
|
+
attachments?: {
|
|
128
|
+
status: "pending" | "finalizing" | "ready" | "attached" | "rejected" | "deleting" | "deleted";
|
|
129
|
+
id: string;
|
|
130
|
+
createdAt: string;
|
|
131
|
+
updatedAt: string;
|
|
132
|
+
purpose: "app_feedback" | "support_ticket_message";
|
|
133
|
+
mediaKind: "image" | "video";
|
|
134
|
+
fileName: string;
|
|
135
|
+
contentType: "image/jpeg" | "image/png" | "image/webp" | "video/mp4" | "video/quicktime";
|
|
136
|
+
sizeBytes: number;
|
|
137
|
+
durationMs: number | null;
|
|
138
|
+
width: number | null;
|
|
139
|
+
height: number | null;
|
|
140
|
+
}[] | undefined;
|
|
81
141
|
}, {
|
|
82
142
|
message: string;
|
|
83
143
|
status: "archived" | "new" | "inReview" | "resolved";
|
|
@@ -98,6 +158,20 @@ export declare const appFeedbackSchema: z.ZodObject<{
|
|
|
98
158
|
archivedAt?: string | null | undefined;
|
|
99
159
|
adminNotes?: string | null | undefined;
|
|
100
160
|
updatedBy?: string | null | undefined;
|
|
161
|
+
attachments?: {
|
|
162
|
+
status: "pending" | "finalizing" | "ready" | "attached" | "rejected" | "deleting" | "deleted";
|
|
163
|
+
id: string;
|
|
164
|
+
createdAt: string;
|
|
165
|
+
updatedAt: string;
|
|
166
|
+
purpose: "app_feedback" | "support_ticket_message";
|
|
167
|
+
mediaKind: "image" | "video";
|
|
168
|
+
fileName: string;
|
|
169
|
+
contentType: "image/jpeg" | "image/png" | "image/webp" | "video/mp4" | "video/quicktime";
|
|
170
|
+
sizeBytes: number;
|
|
171
|
+
durationMs: number | null;
|
|
172
|
+
width: number | null;
|
|
173
|
+
height: number | null;
|
|
174
|
+
}[] | undefined;
|
|
101
175
|
}>;
|
|
102
176
|
export declare const appFeedbackResponseSchema: z.ZodObject<{
|
|
103
177
|
feedback: z.ZodObject<{
|
|
@@ -120,6 +194,46 @@ export declare const appFeedbackResponseSchema: z.ZodObject<{
|
|
|
120
194
|
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
121
195
|
adminNotes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
122
196
|
updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
197
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
198
|
+
id: z.ZodString;
|
|
199
|
+
purpose: z.ZodEnum<["app_feedback", "support_ticket_message"]>;
|
|
200
|
+
mediaKind: z.ZodEnum<["image", "video"]>;
|
|
201
|
+
status: z.ZodEnum<["pending", "finalizing", "ready", "attached", "rejected", "deleting", "deleted"]>;
|
|
202
|
+
fileName: z.ZodString;
|
|
203
|
+
contentType: z.ZodEnum<["image/jpeg", "image/png", "image/webp", "video/mp4", "video/quicktime"]>;
|
|
204
|
+
sizeBytes: z.ZodNumber;
|
|
205
|
+
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
206
|
+
width: z.ZodNullable<z.ZodNumber>;
|
|
207
|
+
height: z.ZodNullable<z.ZodNumber>;
|
|
208
|
+
createdAt: z.ZodString;
|
|
209
|
+
updatedAt: z.ZodString;
|
|
210
|
+
}, "strip", z.ZodTypeAny, {
|
|
211
|
+
status: "pending" | "finalizing" | "ready" | "attached" | "rejected" | "deleting" | "deleted";
|
|
212
|
+
id: string;
|
|
213
|
+
createdAt: string;
|
|
214
|
+
updatedAt: string;
|
|
215
|
+
purpose: "app_feedback" | "support_ticket_message";
|
|
216
|
+
mediaKind: "image" | "video";
|
|
217
|
+
fileName: string;
|
|
218
|
+
contentType: "image/jpeg" | "image/png" | "image/webp" | "video/mp4" | "video/quicktime";
|
|
219
|
+
sizeBytes: number;
|
|
220
|
+
durationMs: number | null;
|
|
221
|
+
width: number | null;
|
|
222
|
+
height: number | null;
|
|
223
|
+
}, {
|
|
224
|
+
status: "pending" | "finalizing" | "ready" | "attached" | "rejected" | "deleting" | "deleted";
|
|
225
|
+
id: string;
|
|
226
|
+
createdAt: string;
|
|
227
|
+
updatedAt: string;
|
|
228
|
+
purpose: "app_feedback" | "support_ticket_message";
|
|
229
|
+
mediaKind: "image" | "video";
|
|
230
|
+
fileName: string;
|
|
231
|
+
contentType: "image/jpeg" | "image/png" | "image/webp" | "video/mp4" | "video/quicktime";
|
|
232
|
+
sizeBytes: number;
|
|
233
|
+
durationMs: number | null;
|
|
234
|
+
width: number | null;
|
|
235
|
+
height: number | null;
|
|
236
|
+
}>, "many">>;
|
|
123
237
|
}, "strip", z.ZodTypeAny, {
|
|
124
238
|
message: string;
|
|
125
239
|
status: "archived" | "new" | "inReview" | "resolved";
|
|
@@ -140,6 +254,20 @@ export declare const appFeedbackResponseSchema: z.ZodObject<{
|
|
|
140
254
|
archivedAt?: string | null | undefined;
|
|
141
255
|
adminNotes?: string | null | undefined;
|
|
142
256
|
updatedBy?: string | null | undefined;
|
|
257
|
+
attachments?: {
|
|
258
|
+
status: "pending" | "finalizing" | "ready" | "attached" | "rejected" | "deleting" | "deleted";
|
|
259
|
+
id: string;
|
|
260
|
+
createdAt: string;
|
|
261
|
+
updatedAt: string;
|
|
262
|
+
purpose: "app_feedback" | "support_ticket_message";
|
|
263
|
+
mediaKind: "image" | "video";
|
|
264
|
+
fileName: string;
|
|
265
|
+
contentType: "image/jpeg" | "image/png" | "image/webp" | "video/mp4" | "video/quicktime";
|
|
266
|
+
sizeBytes: number;
|
|
267
|
+
durationMs: number | null;
|
|
268
|
+
width: number | null;
|
|
269
|
+
height: number | null;
|
|
270
|
+
}[] | undefined;
|
|
143
271
|
}, {
|
|
144
272
|
message: string;
|
|
145
273
|
status: "archived" | "new" | "inReview" | "resolved";
|
|
@@ -160,6 +288,20 @@ export declare const appFeedbackResponseSchema: z.ZodObject<{
|
|
|
160
288
|
archivedAt?: string | null | undefined;
|
|
161
289
|
adminNotes?: string | null | undefined;
|
|
162
290
|
updatedBy?: string | null | undefined;
|
|
291
|
+
attachments?: {
|
|
292
|
+
status: "pending" | "finalizing" | "ready" | "attached" | "rejected" | "deleting" | "deleted";
|
|
293
|
+
id: string;
|
|
294
|
+
createdAt: string;
|
|
295
|
+
updatedAt: string;
|
|
296
|
+
purpose: "app_feedback" | "support_ticket_message";
|
|
297
|
+
mediaKind: "image" | "video";
|
|
298
|
+
fileName: string;
|
|
299
|
+
contentType: "image/jpeg" | "image/png" | "image/webp" | "video/mp4" | "video/quicktime";
|
|
300
|
+
sizeBytes: number;
|
|
301
|
+
durationMs: number | null;
|
|
302
|
+
width: number | null;
|
|
303
|
+
height: number | null;
|
|
304
|
+
}[] | undefined;
|
|
163
305
|
}>;
|
|
164
306
|
}, "strip", z.ZodTypeAny, {
|
|
165
307
|
feedback: {
|
|
@@ -182,6 +324,20 @@ export declare const appFeedbackResponseSchema: z.ZodObject<{
|
|
|
182
324
|
archivedAt?: string | null | undefined;
|
|
183
325
|
adminNotes?: string | null | undefined;
|
|
184
326
|
updatedBy?: string | null | undefined;
|
|
327
|
+
attachments?: {
|
|
328
|
+
status: "pending" | "finalizing" | "ready" | "attached" | "rejected" | "deleting" | "deleted";
|
|
329
|
+
id: string;
|
|
330
|
+
createdAt: string;
|
|
331
|
+
updatedAt: string;
|
|
332
|
+
purpose: "app_feedback" | "support_ticket_message";
|
|
333
|
+
mediaKind: "image" | "video";
|
|
334
|
+
fileName: string;
|
|
335
|
+
contentType: "image/jpeg" | "image/png" | "image/webp" | "video/mp4" | "video/quicktime";
|
|
336
|
+
sizeBytes: number;
|
|
337
|
+
durationMs: number | null;
|
|
338
|
+
width: number | null;
|
|
339
|
+
height: number | null;
|
|
340
|
+
}[] | undefined;
|
|
185
341
|
};
|
|
186
342
|
}, {
|
|
187
343
|
feedback: {
|
|
@@ -204,6 +360,20 @@ export declare const appFeedbackResponseSchema: z.ZodObject<{
|
|
|
204
360
|
archivedAt?: string | null | undefined;
|
|
205
361
|
adminNotes?: string | null | undefined;
|
|
206
362
|
updatedBy?: string | null | undefined;
|
|
363
|
+
attachments?: {
|
|
364
|
+
status: "pending" | "finalizing" | "ready" | "attached" | "rejected" | "deleting" | "deleted";
|
|
365
|
+
id: string;
|
|
366
|
+
createdAt: string;
|
|
367
|
+
updatedAt: string;
|
|
368
|
+
purpose: "app_feedback" | "support_ticket_message";
|
|
369
|
+
mediaKind: "image" | "video";
|
|
370
|
+
fileName: string;
|
|
371
|
+
contentType: "image/jpeg" | "image/png" | "image/webp" | "video/mp4" | "video/quicktime";
|
|
372
|
+
sizeBytes: number;
|
|
373
|
+
durationMs: number | null;
|
|
374
|
+
width: number | null;
|
|
375
|
+
height: number | null;
|
|
376
|
+
}[] | undefined;
|
|
207
377
|
};
|
|
208
378
|
}>;
|
|
209
379
|
export declare const adminAppFeedbackResponseSchema: z.ZodObject<{
|
|
@@ -227,6 +397,46 @@ export declare const adminAppFeedbackResponseSchema: z.ZodObject<{
|
|
|
227
397
|
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
228
398
|
adminNotes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
229
399
|
updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
400
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
401
|
+
id: z.ZodString;
|
|
402
|
+
purpose: z.ZodEnum<["app_feedback", "support_ticket_message"]>;
|
|
403
|
+
mediaKind: z.ZodEnum<["image", "video"]>;
|
|
404
|
+
status: z.ZodEnum<["pending", "finalizing", "ready", "attached", "rejected", "deleting", "deleted"]>;
|
|
405
|
+
fileName: z.ZodString;
|
|
406
|
+
contentType: z.ZodEnum<["image/jpeg", "image/png", "image/webp", "video/mp4", "video/quicktime"]>;
|
|
407
|
+
sizeBytes: z.ZodNumber;
|
|
408
|
+
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
409
|
+
width: z.ZodNullable<z.ZodNumber>;
|
|
410
|
+
height: z.ZodNullable<z.ZodNumber>;
|
|
411
|
+
createdAt: z.ZodString;
|
|
412
|
+
updatedAt: z.ZodString;
|
|
413
|
+
}, "strip", z.ZodTypeAny, {
|
|
414
|
+
status: "pending" | "finalizing" | "ready" | "attached" | "rejected" | "deleting" | "deleted";
|
|
415
|
+
id: string;
|
|
416
|
+
createdAt: string;
|
|
417
|
+
updatedAt: string;
|
|
418
|
+
purpose: "app_feedback" | "support_ticket_message";
|
|
419
|
+
mediaKind: "image" | "video";
|
|
420
|
+
fileName: string;
|
|
421
|
+
contentType: "image/jpeg" | "image/png" | "image/webp" | "video/mp4" | "video/quicktime";
|
|
422
|
+
sizeBytes: number;
|
|
423
|
+
durationMs: number | null;
|
|
424
|
+
width: number | null;
|
|
425
|
+
height: number | null;
|
|
426
|
+
}, {
|
|
427
|
+
status: "pending" | "finalizing" | "ready" | "attached" | "rejected" | "deleting" | "deleted";
|
|
428
|
+
id: string;
|
|
429
|
+
createdAt: string;
|
|
430
|
+
updatedAt: string;
|
|
431
|
+
purpose: "app_feedback" | "support_ticket_message";
|
|
432
|
+
mediaKind: "image" | "video";
|
|
433
|
+
fileName: string;
|
|
434
|
+
contentType: "image/jpeg" | "image/png" | "image/webp" | "video/mp4" | "video/quicktime";
|
|
435
|
+
sizeBytes: number;
|
|
436
|
+
durationMs: number | null;
|
|
437
|
+
width: number | null;
|
|
438
|
+
height: number | null;
|
|
439
|
+
}>, "many">>;
|
|
230
440
|
}, "strip", z.ZodTypeAny, {
|
|
231
441
|
message: string;
|
|
232
442
|
status: "archived" | "new" | "inReview" | "resolved";
|
|
@@ -247,6 +457,20 @@ export declare const adminAppFeedbackResponseSchema: z.ZodObject<{
|
|
|
247
457
|
archivedAt?: string | null | undefined;
|
|
248
458
|
adminNotes?: string | null | undefined;
|
|
249
459
|
updatedBy?: string | null | undefined;
|
|
460
|
+
attachments?: {
|
|
461
|
+
status: "pending" | "finalizing" | "ready" | "attached" | "rejected" | "deleting" | "deleted";
|
|
462
|
+
id: string;
|
|
463
|
+
createdAt: string;
|
|
464
|
+
updatedAt: string;
|
|
465
|
+
purpose: "app_feedback" | "support_ticket_message";
|
|
466
|
+
mediaKind: "image" | "video";
|
|
467
|
+
fileName: string;
|
|
468
|
+
contentType: "image/jpeg" | "image/png" | "image/webp" | "video/mp4" | "video/quicktime";
|
|
469
|
+
sizeBytes: number;
|
|
470
|
+
durationMs: number | null;
|
|
471
|
+
width: number | null;
|
|
472
|
+
height: number | null;
|
|
473
|
+
}[] | undefined;
|
|
250
474
|
}, {
|
|
251
475
|
message: string;
|
|
252
476
|
status: "archived" | "new" | "inReview" | "resolved";
|
|
@@ -267,6 +491,20 @@ export declare const adminAppFeedbackResponseSchema: z.ZodObject<{
|
|
|
267
491
|
archivedAt?: string | null | undefined;
|
|
268
492
|
adminNotes?: string | null | undefined;
|
|
269
493
|
updatedBy?: string | null | undefined;
|
|
494
|
+
attachments?: {
|
|
495
|
+
status: "pending" | "finalizing" | "ready" | "attached" | "rejected" | "deleting" | "deleted";
|
|
496
|
+
id: string;
|
|
497
|
+
createdAt: string;
|
|
498
|
+
updatedAt: string;
|
|
499
|
+
purpose: "app_feedback" | "support_ticket_message";
|
|
500
|
+
mediaKind: "image" | "video";
|
|
501
|
+
fileName: string;
|
|
502
|
+
contentType: "image/jpeg" | "image/png" | "image/webp" | "video/mp4" | "video/quicktime";
|
|
503
|
+
sizeBytes: number;
|
|
504
|
+
durationMs: number | null;
|
|
505
|
+
width: number | null;
|
|
506
|
+
height: number | null;
|
|
507
|
+
}[] | undefined;
|
|
270
508
|
}>, "many">;
|
|
271
509
|
}, "strip", z.ZodTypeAny, {
|
|
272
510
|
feedback: {
|
|
@@ -289,6 +527,20 @@ export declare const adminAppFeedbackResponseSchema: z.ZodObject<{
|
|
|
289
527
|
archivedAt?: string | null | undefined;
|
|
290
528
|
adminNotes?: string | null | undefined;
|
|
291
529
|
updatedBy?: string | null | undefined;
|
|
530
|
+
attachments?: {
|
|
531
|
+
status: "pending" | "finalizing" | "ready" | "attached" | "rejected" | "deleting" | "deleted";
|
|
532
|
+
id: string;
|
|
533
|
+
createdAt: string;
|
|
534
|
+
updatedAt: string;
|
|
535
|
+
purpose: "app_feedback" | "support_ticket_message";
|
|
536
|
+
mediaKind: "image" | "video";
|
|
537
|
+
fileName: string;
|
|
538
|
+
contentType: "image/jpeg" | "image/png" | "image/webp" | "video/mp4" | "video/quicktime";
|
|
539
|
+
sizeBytes: number;
|
|
540
|
+
durationMs: number | null;
|
|
541
|
+
width: number | null;
|
|
542
|
+
height: number | null;
|
|
543
|
+
}[] | undefined;
|
|
292
544
|
}[];
|
|
293
545
|
}, {
|
|
294
546
|
feedback: {
|
|
@@ -311,6 +563,20 @@ export declare const adminAppFeedbackResponseSchema: z.ZodObject<{
|
|
|
311
563
|
archivedAt?: string | null | undefined;
|
|
312
564
|
adminNotes?: string | null | undefined;
|
|
313
565
|
updatedBy?: string | null | undefined;
|
|
566
|
+
attachments?: {
|
|
567
|
+
status: "pending" | "finalizing" | "ready" | "attached" | "rejected" | "deleting" | "deleted";
|
|
568
|
+
id: string;
|
|
569
|
+
createdAt: string;
|
|
570
|
+
updatedAt: string;
|
|
571
|
+
purpose: "app_feedback" | "support_ticket_message";
|
|
572
|
+
mediaKind: "image" | "video";
|
|
573
|
+
fileName: string;
|
|
574
|
+
contentType: "image/jpeg" | "image/png" | "image/webp" | "video/mp4" | "video/quicktime";
|
|
575
|
+
sizeBytes: number;
|
|
576
|
+
durationMs: number | null;
|
|
577
|
+
width: number | null;
|
|
578
|
+
height: number | null;
|
|
579
|
+
}[] | undefined;
|
|
314
580
|
}[];
|
|
315
581
|
}>;
|
|
316
582
|
export type AppFeedbackCategory = z.infer<typeof appFeedbackCategorySchema>;
|
package/dist/app-feedback.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { idSchema, isoDateStringSchema, nullableIsoDateStringSchema } from "./api.js";
|
|
3
|
+
import { supportAttachmentIdsSchema, supportAttachmentSchema } from "./support-attachments.js";
|
|
3
4
|
export const APP_FEEDBACK_CATEGORIES = [
|
|
4
5
|
{ key: "general", label: "General" },
|
|
5
6
|
{ key: "bug", label: "Bug" },
|
|
@@ -15,6 +16,7 @@ export const appFeedbackSourceRoleSchema = z.enum(["family", "coach"]);
|
|
|
15
16
|
export const normalizeAppFeedbackMessage = (message) => message.trim();
|
|
16
17
|
export const appFeedbackCreateRequestSchema = z
|
|
17
18
|
.object({
|
|
19
|
+
clientRequestId: z.string().uuid().optional(),
|
|
18
20
|
category: appFeedbackCategorySchema,
|
|
19
21
|
message: z
|
|
20
22
|
.string()
|
|
@@ -25,7 +27,8 @@ export const appFeedbackCreateRequestSchema = z
|
|
|
25
27
|
.max(MAX_APP_FEEDBACK_MESSAGE_LENGTH)),
|
|
26
28
|
contactAllowed: z.boolean(),
|
|
27
29
|
devicePlatform: z.string().min(1).nullable().optional(),
|
|
28
|
-
appVersion: z.string().min(1).nullable().optional()
|
|
30
|
+
appVersion: z.string().min(1).nullable().optional(),
|
|
31
|
+
attachmentIds: supportAttachmentIdsSchema.optional()
|
|
29
32
|
})
|
|
30
33
|
.strict();
|
|
31
34
|
export const appFeedbackSchema = z.object({
|
|
@@ -47,7 +50,8 @@ export const appFeedbackSchema = z.object({
|
|
|
47
50
|
resolvedAt: nullableIsoDateStringSchema.optional(),
|
|
48
51
|
archivedAt: nullableIsoDateStringSchema.optional(),
|
|
49
52
|
adminNotes: z.string().nullable().optional(),
|
|
50
|
-
updatedBy: idSchema.nullable().optional()
|
|
53
|
+
updatedBy: idSchema.nullable().optional(),
|
|
54
|
+
attachments: z.array(supportAttachmentSchema).optional()
|
|
51
55
|
});
|
|
52
56
|
export const appFeedbackResponseSchema = z.object({
|
|
53
57
|
feedback: appFeedbackSchema
|
package/dist/app-feedback.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-feedback.js","sourceRoot":"","sources":["../src/app-feedback.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,mBAA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CAAC,QAAQ,EAAE;IAC9C,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAChD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC5C,SAAS,EAAE,mBAAmB;IAC9B,SAAS,EAAE,mBAAmB;IAC9B,UAAU,EAAE,2BAA2B,CAAC,QAAQ,EAAE;IAClD,UAAU,EAAE,2BAA2B,CAAC,QAAQ,EAAE;IAClD,UAAU,EAAE,2BAA2B,CAAC,QAAQ,EAAE;IAClD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC5C,SAAS,EAAE,QAAQ,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACzC,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAC,QAAQ,EAAE;CACzD,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,QAAQ,EAAE,iBAAiB;CAC5B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IACrD,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC;CACrC,CAAC,CAAC"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const brandColorSchema: z.ZodString;
|
|
3
|
+
export declare const organizationBrandingPaletteSchemeSchema: z.ZodEnum<["balanced", "primaryLed", "secondaryLed", "soft"]>;
|
|
4
|
+
export declare const organizationBrandingPaletteColorsSchema: z.ZodObject<{
|
|
5
|
+
primary: z.ZodString;
|
|
6
|
+
secondary: z.ZodString;
|
|
7
|
+
highlight: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
contrast: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
}, "strict", z.ZodTypeAny, {
|
|
10
|
+
primary: string;
|
|
11
|
+
secondary: string;
|
|
12
|
+
highlight?: string | null | undefined;
|
|
13
|
+
contrast?: string | null | undefined;
|
|
14
|
+
}, {
|
|
15
|
+
primary: string;
|
|
16
|
+
secondary: string;
|
|
17
|
+
highlight?: string | null | undefined;
|
|
18
|
+
contrast?: string | null | undefined;
|
|
19
|
+
}>;
|
|
20
|
+
export declare const organizationBrandingPaletteConfigSchema: z.ZodObject<{
|
|
21
|
+
version: z.ZodLiteral<1>;
|
|
22
|
+
colors: z.ZodObject<{
|
|
23
|
+
primary: z.ZodString;
|
|
24
|
+
secondary: z.ZodString;
|
|
25
|
+
highlight: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
contrast: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
}, "strict", z.ZodTypeAny, {
|
|
28
|
+
primary: string;
|
|
29
|
+
secondary: string;
|
|
30
|
+
highlight?: string | null | undefined;
|
|
31
|
+
contrast?: string | null | undefined;
|
|
32
|
+
}, {
|
|
33
|
+
primary: string;
|
|
34
|
+
secondary: string;
|
|
35
|
+
highlight?: string | null | undefined;
|
|
36
|
+
contrast?: string | null | undefined;
|
|
37
|
+
}>;
|
|
38
|
+
schemeId: z.ZodEnum<["balanced", "primaryLed", "secondaryLed", "soft"]>;
|
|
39
|
+
}, "strict", z.ZodTypeAny, {
|
|
40
|
+
version: 1;
|
|
41
|
+
colors: {
|
|
42
|
+
primary: string;
|
|
43
|
+
secondary: string;
|
|
44
|
+
highlight?: string | null | undefined;
|
|
45
|
+
contrast?: string | null | undefined;
|
|
46
|
+
};
|
|
47
|
+
schemeId: "balanced" | "primaryLed" | "secondaryLed" | "soft";
|
|
48
|
+
}, {
|
|
49
|
+
version: 1;
|
|
50
|
+
colors: {
|
|
51
|
+
primary: string;
|
|
52
|
+
secondary: string;
|
|
53
|
+
highlight?: string | null | undefined;
|
|
54
|
+
contrast?: string | null | undefined;
|
|
55
|
+
};
|
|
56
|
+
schemeId: "balanced" | "primaryLed" | "secondaryLed" | "soft";
|
|
57
|
+
}>;
|
|
58
|
+
export type OrganizationBrandingPaletteScheme = z.infer<typeof organizationBrandingPaletteSchemeSchema>;
|
|
59
|
+
export type OrganizationBrandingPaletteColors = z.infer<typeof organizationBrandingPaletteColorsSchema>;
|
|
60
|
+
export type OrganizationBrandingPaletteConfig = z.infer<typeof organizationBrandingPaletteConfigSchema>;
|
|
61
|
+
export type GeneratedOrganizationBrandingTheme = {
|
|
62
|
+
documentBackgroundColor: string;
|
|
63
|
+
screenBackgroundColor: string;
|
|
64
|
+
surfaceColor: string;
|
|
65
|
+
mutedSurfaceColor: string;
|
|
66
|
+
softSurfaceColor: string;
|
|
67
|
+
textColor: string;
|
|
68
|
+
greenColor: string;
|
|
69
|
+
lavenderColor: string;
|
|
70
|
+
yellowColor: string;
|
|
71
|
+
pinkColor: string;
|
|
72
|
+
deepGreenColor: string;
|
|
73
|
+
blueColor: string;
|
|
74
|
+
};
|
|
75
|
+
export declare const organizationBrandingContrastRatio: (left: string, right: string) => number;
|
|
76
|
+
export declare const generateOrganizationBrandingTheme: (config: OrganizationBrandingPaletteConfig) => GeneratedOrganizationBrandingTheme;
|
|
77
|
+
export declare const generateOrganizationBrandingPaletteOptions: (colors: OrganizationBrandingPaletteColors) => {
|
|
78
|
+
schemeId: "balanced" | "primaryLed" | "secondaryLed" | "soft";
|
|
79
|
+
theme: GeneratedOrganizationBrandingTheme;
|
|
80
|
+
}[];
|