@nikthegeek/dreamsforlittles-shared 0.1.2 → 0.4.1
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 +360 -12
- package/dist/access.js +9 -2
- package/dist/access.js.map +1 -1
- package/dist/admin.d.ts +821 -169
- package/dist/admin.js +33 -2
- package/dist/admin.js.map +1 -1
- package/dist/analysis.d.ts +12 -12
- package/dist/api.d.ts +5 -5
- package/dist/app-runtime-users.d.ts +464 -0
- package/dist/app-runtime-users.js +64 -0
- package/dist/app-runtime-users.js.map +1 -0
- package/dist/auth.d.ts +20 -2
- package/dist/auth.js +7 -2
- package/dist/auth.js.map +1 -1
- package/dist/client-notices.d.ts +585 -585
- package/dist/coach-acquisition.d.ts +47 -0
- package/dist/coach-acquisition.js +45 -0
- package/dist/coach-acquisition.js.map +1 -0
- package/dist/coach-activity-notifications.d.ts +610 -0
- package/dist/coach-activity-notifications.js +179 -0
- package/dist/coach-activity-notifications.js.map +1 -0
- package/dist/coach-family-chat.d.ts +1658 -0
- package/dist/coach-family-chat.js +342 -0
- package/dist/coach-family-chat.js.map +1 -0
- package/dist/coach-family-chat.test.d.ts +1 -0
- package/dist/coach-family-chat.test.js +129 -0
- package/dist/coach-family-chat.test.js.map +1 -0
- package/dist/coach-growth.d.ts +706 -0
- package/dist/coach-growth.js +191 -0
- package/dist/coach-growth.js.map +1 -0
- package/dist/coach-growth.test.d.ts +1 -0
- package/dist/coach-growth.test.js +109 -0
- package/dist/coach-growth.test.js.map +1 -0
- package/dist/coach-private-notes.d.ts +169 -0
- package/dist/coach-private-notes.js +28 -0
- package/dist/coach-private-notes.js.map +1 -0
- package/dist/coach.d.ts +395 -374
- package/dist/coach.js +6 -1
- package/dist/coach.js.map +1 -1
- package/dist/enums.d.ts +1 -1
- package/dist/enums.js +14 -1
- package/dist/enums.js.map +1 -1
- package/dist/errors.d.ts +18 -4
- package/dist/errors.js +42 -0
- package/dist/errors.js.map +1 -1
- package/dist/family-invitations.d.ts +2 -2
- package/dist/family-profile-artifacts.d.ts +43 -31
- package/dist/family-profile-artifacts.js +4 -1
- package/dist/family-profile-artifacts.js.map +1 -1
- package/dist/family.d.ts +3152 -1499
- package/dist/family.js +30 -1
- package/dist/family.js.map +1 -1
- package/dist/geography.d.ts +15 -0
- package/dist/geography.js +45 -0
- package/dist/geography.js.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/invites.d.ts +6 -6
- package/dist/mobile-web-releases.d.ts +14 -14
- package/dist/native-app-updates.d.ts +339 -0
- package/dist/native-app-updates.js +106 -0
- package/dist/native-app-updates.js.map +1 -0
- package/dist/notification-banners.d.ts +28 -28
- package/dist/product-analytics.d.ts +181 -181
- package/dist/product-analytics.js +1 -0
- package/dist/product-analytics.js.map +1 -1
- package/dist/push-devices.d.ts +6 -6
- package/dist/realtime.d.ts +12 -12
- package/dist/support-tickets.d.ts +28 -28
- package/fixtures/coach-family-chat-push-v1.json +104 -0
- package/fixtures/coach-family-chat-push-v1.sha256 +1 -0
- package/package.json +5 -3
|
@@ -0,0 +1,610 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { type ActivityType } from "./enums.js";
|
|
3
|
+
export declare const COACH_ACTIVITY_NOTIFICATION_STATE_RESOURCE_KIND: "coach_activity_notification_state";
|
|
4
|
+
export declare const COACH_ACTIVITY_PUSH_SOURCE: "dreamsforlittles-coach-activity";
|
|
5
|
+
export declare const COACH_ACTIVITY_PUSH_SCHEMA_VERSION: "1";
|
|
6
|
+
export declare const COACH_ACTIVITY_PUSH_MINIMUM_WRAPPER_VERSION: "4.6.0";
|
|
7
|
+
export declare const COACH_ACTIVITY_PUSH_ROUTE: "/coach/notifications";
|
|
8
|
+
export declare const coachActivityNotificationStatusSchema: z.ZodEnum<["unread", "all", "muted"]>;
|
|
9
|
+
export declare const coachActivityNotificationListLimit = 30;
|
|
10
|
+
export declare const coachActivityNotificationListMaxLimit = 100;
|
|
11
|
+
export declare const coachActivityNotificationListQuerySchema: z.ZodObject<{
|
|
12
|
+
status: z.ZodDefault<z.ZodEnum<["unread", "all", "muted"]>>;
|
|
13
|
+
familyId: z.ZodOptional<z.ZodString>;
|
|
14
|
+
activityType: z.ZodOptional<z.ZodEnum<["breastfeed", "bottles", "sleep", "nappies", "pumping", "medication", "solids"]>>;
|
|
15
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
16
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
status: "unread" | "all" | "muted";
|
|
19
|
+
limit: number;
|
|
20
|
+
activityType?: "sleep" | "breastfeed" | "pumping" | "bottles" | "nappies" | "medication" | "solids" | undefined;
|
|
21
|
+
familyId?: string | undefined;
|
|
22
|
+
cursor?: string | undefined;
|
|
23
|
+
}, {
|
|
24
|
+
status?: "unread" | "all" | "muted" | undefined;
|
|
25
|
+
activityType?: "sleep" | "breastfeed" | "pumping" | "bottles" | "nappies" | "medication" | "solids" | undefined;
|
|
26
|
+
limit?: number | undefined;
|
|
27
|
+
familyId?: string | undefined;
|
|
28
|
+
cursor?: string | undefined;
|
|
29
|
+
}>;
|
|
30
|
+
export declare const coachActivityNotificationPresentationSchema: z.ZodObject<{
|
|
31
|
+
label: z.ZodString;
|
|
32
|
+
summary: z.ZodNullable<z.ZodString>;
|
|
33
|
+
}, "strip", z.ZodTypeAny, {
|
|
34
|
+
label: string;
|
|
35
|
+
summary: string | null;
|
|
36
|
+
}, {
|
|
37
|
+
label: string;
|
|
38
|
+
summary: string | null;
|
|
39
|
+
}>;
|
|
40
|
+
export declare const coachActivityNotificationPreferenceSchema: z.ZodObject<{
|
|
41
|
+
enabled: z.ZodBoolean;
|
|
42
|
+
pushEnabled: z.ZodBoolean;
|
|
43
|
+
notifyAfter: z.ZodNullable<z.ZodString>;
|
|
44
|
+
updatedAt: z.ZodNullable<z.ZodString>;
|
|
45
|
+
}, "strip", z.ZodTypeAny, {
|
|
46
|
+
enabled: boolean;
|
|
47
|
+
updatedAt: string | null;
|
|
48
|
+
pushEnabled: boolean;
|
|
49
|
+
notifyAfter: string | null;
|
|
50
|
+
}, {
|
|
51
|
+
enabled: boolean;
|
|
52
|
+
updatedAt: string | null;
|
|
53
|
+
pushEnabled: boolean;
|
|
54
|
+
notifyAfter: string | null;
|
|
55
|
+
}>;
|
|
56
|
+
export declare const coachActivityNotificationPreferenceWriteSchema: z.ZodEffects<z.ZodObject<{
|
|
57
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
58
|
+
pushEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
59
|
+
}, "strip", z.ZodTypeAny, {
|
|
60
|
+
enabled?: boolean | undefined;
|
|
61
|
+
pushEnabled?: boolean | undefined;
|
|
62
|
+
}, {
|
|
63
|
+
enabled?: boolean | undefined;
|
|
64
|
+
pushEnabled?: boolean | undefined;
|
|
65
|
+
}>, {
|
|
66
|
+
enabled?: boolean | undefined;
|
|
67
|
+
pushEnabled?: boolean | undefined;
|
|
68
|
+
}, {
|
|
69
|
+
enabled?: boolean | undefined;
|
|
70
|
+
pushEnabled?: boolean | undefined;
|
|
71
|
+
}>;
|
|
72
|
+
export declare const coachFamilyActivityNotificationStateSchema: z.ZodObject<{
|
|
73
|
+
assignmentId: z.ZodString;
|
|
74
|
+
familyUserId: z.ZodString;
|
|
75
|
+
muted: z.ZodBoolean;
|
|
76
|
+
mutedAt: z.ZodNullable<z.ZodString>;
|
|
77
|
+
notifyAfter: z.ZodString;
|
|
78
|
+
lastSeenActivityCreatedAt: z.ZodNullable<z.ZodString>;
|
|
79
|
+
lastSeenActivityId: z.ZodNullable<z.ZodString>;
|
|
80
|
+
updatedAt: z.ZodNullable<z.ZodString>;
|
|
81
|
+
}, "strip", z.ZodTypeAny, {
|
|
82
|
+
updatedAt: string | null;
|
|
83
|
+
familyUserId: string;
|
|
84
|
+
muted: boolean;
|
|
85
|
+
notifyAfter: string;
|
|
86
|
+
assignmentId: string;
|
|
87
|
+
mutedAt: string | null;
|
|
88
|
+
lastSeenActivityCreatedAt: string | null;
|
|
89
|
+
lastSeenActivityId: string | null;
|
|
90
|
+
}, {
|
|
91
|
+
updatedAt: string | null;
|
|
92
|
+
familyUserId: string;
|
|
93
|
+
muted: boolean;
|
|
94
|
+
notifyAfter: string;
|
|
95
|
+
assignmentId: string;
|
|
96
|
+
mutedAt: string | null;
|
|
97
|
+
lastSeenActivityCreatedAt: string | null;
|
|
98
|
+
lastSeenActivityId: string | null;
|
|
99
|
+
}>;
|
|
100
|
+
export declare const coachFamilyActivityNotificationPreferenceWriteSchema: z.ZodObject<{
|
|
101
|
+
muted: z.ZodBoolean;
|
|
102
|
+
}, "strip", z.ZodTypeAny, {
|
|
103
|
+
muted: boolean;
|
|
104
|
+
}, {
|
|
105
|
+
muted: boolean;
|
|
106
|
+
}>;
|
|
107
|
+
export declare const coachActivityNotificationCardSchema: z.ZodObject<{
|
|
108
|
+
id: z.ZodString;
|
|
109
|
+
activityId: z.ZodString;
|
|
110
|
+
assignmentId: z.ZodString;
|
|
111
|
+
familyUserId: z.ZodString;
|
|
112
|
+
familyName: z.ZodString;
|
|
113
|
+
babyId: z.ZodString;
|
|
114
|
+
babyName: z.ZodString;
|
|
115
|
+
activityType: z.ZodEnum<["breastfeed", "bottles", "sleep", "nappies", "pumping", "medication", "solids"]>;
|
|
116
|
+
presentation: z.ZodObject<{
|
|
117
|
+
label: z.ZodString;
|
|
118
|
+
summary: z.ZodNullable<z.ZodString>;
|
|
119
|
+
}, "strip", z.ZodTypeAny, {
|
|
120
|
+
label: string;
|
|
121
|
+
summary: string | null;
|
|
122
|
+
}, {
|
|
123
|
+
label: string;
|
|
124
|
+
summary: string | null;
|
|
125
|
+
}>;
|
|
126
|
+
createdAt: z.ZodString;
|
|
127
|
+
occurredAt: z.ZodString;
|
|
128
|
+
unread: z.ZodBoolean;
|
|
129
|
+
muted: z.ZodBoolean;
|
|
130
|
+
route: z.ZodString;
|
|
131
|
+
}, "strip", z.ZodTypeAny, {
|
|
132
|
+
id: string;
|
|
133
|
+
createdAt: string;
|
|
134
|
+
familyUserId: string;
|
|
135
|
+
activityType: "sleep" | "breastfeed" | "pumping" | "bottles" | "nappies" | "medication" | "solids";
|
|
136
|
+
occurredAt: string;
|
|
137
|
+
babyId: string;
|
|
138
|
+
unread: boolean;
|
|
139
|
+
muted: boolean;
|
|
140
|
+
assignmentId: string;
|
|
141
|
+
activityId: string;
|
|
142
|
+
familyName: string;
|
|
143
|
+
babyName: string;
|
|
144
|
+
presentation: {
|
|
145
|
+
label: string;
|
|
146
|
+
summary: string | null;
|
|
147
|
+
};
|
|
148
|
+
route: string;
|
|
149
|
+
}, {
|
|
150
|
+
id: string;
|
|
151
|
+
createdAt: string;
|
|
152
|
+
familyUserId: string;
|
|
153
|
+
activityType: "sleep" | "breastfeed" | "pumping" | "bottles" | "nappies" | "medication" | "solids";
|
|
154
|
+
occurredAt: string;
|
|
155
|
+
babyId: string;
|
|
156
|
+
unread: boolean;
|
|
157
|
+
muted: boolean;
|
|
158
|
+
assignmentId: string;
|
|
159
|
+
activityId: string;
|
|
160
|
+
familyName: string;
|
|
161
|
+
babyName: string;
|
|
162
|
+
presentation: {
|
|
163
|
+
label: string;
|
|
164
|
+
summary: string | null;
|
|
165
|
+
};
|
|
166
|
+
route: string;
|
|
167
|
+
}>;
|
|
168
|
+
export declare const coachActivityNotificationFamilySummarySchema: z.ZodObject<{
|
|
169
|
+
assignmentId: z.ZodString;
|
|
170
|
+
familyUserId: z.ZodString;
|
|
171
|
+
familyName: z.ZodString;
|
|
172
|
+
muted: z.ZodBoolean;
|
|
173
|
+
unreadCount: z.ZodNumber;
|
|
174
|
+
}, "strip", z.ZodTypeAny, {
|
|
175
|
+
familyUserId: string;
|
|
176
|
+
muted: boolean;
|
|
177
|
+
assignmentId: string;
|
|
178
|
+
familyName: string;
|
|
179
|
+
unreadCount: number;
|
|
180
|
+
}, {
|
|
181
|
+
familyUserId: string;
|
|
182
|
+
muted: boolean;
|
|
183
|
+
assignmentId: string;
|
|
184
|
+
familyName: string;
|
|
185
|
+
unreadCount: number;
|
|
186
|
+
}>;
|
|
187
|
+
export declare const coachActivityNotificationSummarySchema: z.ZodObject<{
|
|
188
|
+
preference: z.ZodObject<{
|
|
189
|
+
enabled: z.ZodBoolean;
|
|
190
|
+
pushEnabled: z.ZodBoolean;
|
|
191
|
+
notifyAfter: z.ZodNullable<z.ZodString>;
|
|
192
|
+
updatedAt: z.ZodNullable<z.ZodString>;
|
|
193
|
+
}, "strip", z.ZodTypeAny, {
|
|
194
|
+
enabled: boolean;
|
|
195
|
+
updatedAt: string | null;
|
|
196
|
+
pushEnabled: boolean;
|
|
197
|
+
notifyAfter: string | null;
|
|
198
|
+
}, {
|
|
199
|
+
enabled: boolean;
|
|
200
|
+
updatedAt: string | null;
|
|
201
|
+
pushEnabled: boolean;
|
|
202
|
+
notifyAfter: string | null;
|
|
203
|
+
}>;
|
|
204
|
+
unreadCount: z.ZodNumber;
|
|
205
|
+
families: z.ZodArray<z.ZodObject<{
|
|
206
|
+
assignmentId: z.ZodString;
|
|
207
|
+
familyUserId: z.ZodString;
|
|
208
|
+
familyName: z.ZodString;
|
|
209
|
+
muted: z.ZodBoolean;
|
|
210
|
+
unreadCount: z.ZodNumber;
|
|
211
|
+
}, "strip", z.ZodTypeAny, {
|
|
212
|
+
familyUserId: string;
|
|
213
|
+
muted: boolean;
|
|
214
|
+
assignmentId: string;
|
|
215
|
+
familyName: string;
|
|
216
|
+
unreadCount: number;
|
|
217
|
+
}, {
|
|
218
|
+
familyUserId: string;
|
|
219
|
+
muted: boolean;
|
|
220
|
+
assignmentId: string;
|
|
221
|
+
familyName: string;
|
|
222
|
+
unreadCount: number;
|
|
223
|
+
}>, "many">;
|
|
224
|
+
}, "strip", z.ZodTypeAny, {
|
|
225
|
+
families: {
|
|
226
|
+
familyUserId: string;
|
|
227
|
+
muted: boolean;
|
|
228
|
+
assignmentId: string;
|
|
229
|
+
familyName: string;
|
|
230
|
+
unreadCount: number;
|
|
231
|
+
}[];
|
|
232
|
+
unreadCount: number;
|
|
233
|
+
preference: {
|
|
234
|
+
enabled: boolean;
|
|
235
|
+
updatedAt: string | null;
|
|
236
|
+
pushEnabled: boolean;
|
|
237
|
+
notifyAfter: string | null;
|
|
238
|
+
};
|
|
239
|
+
}, {
|
|
240
|
+
families: {
|
|
241
|
+
familyUserId: string;
|
|
242
|
+
muted: boolean;
|
|
243
|
+
assignmentId: string;
|
|
244
|
+
familyName: string;
|
|
245
|
+
unreadCount: number;
|
|
246
|
+
}[];
|
|
247
|
+
unreadCount: number;
|
|
248
|
+
preference: {
|
|
249
|
+
enabled: boolean;
|
|
250
|
+
updatedAt: string | null;
|
|
251
|
+
pushEnabled: boolean;
|
|
252
|
+
notifyAfter: string | null;
|
|
253
|
+
};
|
|
254
|
+
}>;
|
|
255
|
+
export declare const coachActivityNotificationListResponseSchema: z.ZodObject<{
|
|
256
|
+
notifications: z.ZodArray<z.ZodObject<{
|
|
257
|
+
id: z.ZodString;
|
|
258
|
+
activityId: z.ZodString;
|
|
259
|
+
assignmentId: z.ZodString;
|
|
260
|
+
familyUserId: z.ZodString;
|
|
261
|
+
familyName: z.ZodString;
|
|
262
|
+
babyId: z.ZodString;
|
|
263
|
+
babyName: z.ZodString;
|
|
264
|
+
activityType: z.ZodEnum<["breastfeed", "bottles", "sleep", "nappies", "pumping", "medication", "solids"]>;
|
|
265
|
+
presentation: z.ZodObject<{
|
|
266
|
+
label: z.ZodString;
|
|
267
|
+
summary: z.ZodNullable<z.ZodString>;
|
|
268
|
+
}, "strip", z.ZodTypeAny, {
|
|
269
|
+
label: string;
|
|
270
|
+
summary: string | null;
|
|
271
|
+
}, {
|
|
272
|
+
label: string;
|
|
273
|
+
summary: string | null;
|
|
274
|
+
}>;
|
|
275
|
+
createdAt: z.ZodString;
|
|
276
|
+
occurredAt: z.ZodString;
|
|
277
|
+
unread: z.ZodBoolean;
|
|
278
|
+
muted: z.ZodBoolean;
|
|
279
|
+
route: z.ZodString;
|
|
280
|
+
}, "strip", z.ZodTypeAny, {
|
|
281
|
+
id: string;
|
|
282
|
+
createdAt: string;
|
|
283
|
+
familyUserId: string;
|
|
284
|
+
activityType: "sleep" | "breastfeed" | "pumping" | "bottles" | "nappies" | "medication" | "solids";
|
|
285
|
+
occurredAt: string;
|
|
286
|
+
babyId: string;
|
|
287
|
+
unread: boolean;
|
|
288
|
+
muted: boolean;
|
|
289
|
+
assignmentId: string;
|
|
290
|
+
activityId: string;
|
|
291
|
+
familyName: string;
|
|
292
|
+
babyName: string;
|
|
293
|
+
presentation: {
|
|
294
|
+
label: string;
|
|
295
|
+
summary: string | null;
|
|
296
|
+
};
|
|
297
|
+
route: string;
|
|
298
|
+
}, {
|
|
299
|
+
id: string;
|
|
300
|
+
createdAt: string;
|
|
301
|
+
familyUserId: string;
|
|
302
|
+
activityType: "sleep" | "breastfeed" | "pumping" | "bottles" | "nappies" | "medication" | "solids";
|
|
303
|
+
occurredAt: string;
|
|
304
|
+
babyId: string;
|
|
305
|
+
unread: boolean;
|
|
306
|
+
muted: boolean;
|
|
307
|
+
assignmentId: string;
|
|
308
|
+
activityId: string;
|
|
309
|
+
familyName: string;
|
|
310
|
+
babyName: string;
|
|
311
|
+
presentation: {
|
|
312
|
+
label: string;
|
|
313
|
+
summary: string | null;
|
|
314
|
+
};
|
|
315
|
+
route: string;
|
|
316
|
+
}>, "many">;
|
|
317
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
318
|
+
summary: z.ZodObject<{
|
|
319
|
+
preference: z.ZodObject<{
|
|
320
|
+
enabled: z.ZodBoolean;
|
|
321
|
+
pushEnabled: z.ZodBoolean;
|
|
322
|
+
notifyAfter: z.ZodNullable<z.ZodString>;
|
|
323
|
+
updatedAt: z.ZodNullable<z.ZodString>;
|
|
324
|
+
}, "strip", z.ZodTypeAny, {
|
|
325
|
+
enabled: boolean;
|
|
326
|
+
updatedAt: string | null;
|
|
327
|
+
pushEnabled: boolean;
|
|
328
|
+
notifyAfter: string | null;
|
|
329
|
+
}, {
|
|
330
|
+
enabled: boolean;
|
|
331
|
+
updatedAt: string | null;
|
|
332
|
+
pushEnabled: boolean;
|
|
333
|
+
notifyAfter: string | null;
|
|
334
|
+
}>;
|
|
335
|
+
unreadCount: z.ZodNumber;
|
|
336
|
+
families: z.ZodArray<z.ZodObject<{
|
|
337
|
+
assignmentId: z.ZodString;
|
|
338
|
+
familyUserId: z.ZodString;
|
|
339
|
+
familyName: z.ZodString;
|
|
340
|
+
muted: z.ZodBoolean;
|
|
341
|
+
unreadCount: z.ZodNumber;
|
|
342
|
+
}, "strip", z.ZodTypeAny, {
|
|
343
|
+
familyUserId: string;
|
|
344
|
+
muted: boolean;
|
|
345
|
+
assignmentId: string;
|
|
346
|
+
familyName: string;
|
|
347
|
+
unreadCount: number;
|
|
348
|
+
}, {
|
|
349
|
+
familyUserId: string;
|
|
350
|
+
muted: boolean;
|
|
351
|
+
assignmentId: string;
|
|
352
|
+
familyName: string;
|
|
353
|
+
unreadCount: number;
|
|
354
|
+
}>, "many">;
|
|
355
|
+
}, "strip", z.ZodTypeAny, {
|
|
356
|
+
families: {
|
|
357
|
+
familyUserId: string;
|
|
358
|
+
muted: boolean;
|
|
359
|
+
assignmentId: string;
|
|
360
|
+
familyName: string;
|
|
361
|
+
unreadCount: number;
|
|
362
|
+
}[];
|
|
363
|
+
unreadCount: number;
|
|
364
|
+
preference: {
|
|
365
|
+
enabled: boolean;
|
|
366
|
+
updatedAt: string | null;
|
|
367
|
+
pushEnabled: boolean;
|
|
368
|
+
notifyAfter: string | null;
|
|
369
|
+
};
|
|
370
|
+
}, {
|
|
371
|
+
families: {
|
|
372
|
+
familyUserId: string;
|
|
373
|
+
muted: boolean;
|
|
374
|
+
assignmentId: string;
|
|
375
|
+
familyName: string;
|
|
376
|
+
unreadCount: number;
|
|
377
|
+
}[];
|
|
378
|
+
unreadCount: number;
|
|
379
|
+
preference: {
|
|
380
|
+
enabled: boolean;
|
|
381
|
+
updatedAt: string | null;
|
|
382
|
+
pushEnabled: boolean;
|
|
383
|
+
notifyAfter: string | null;
|
|
384
|
+
};
|
|
385
|
+
}>;
|
|
386
|
+
}, "strip", z.ZodTypeAny, {
|
|
387
|
+
summary: {
|
|
388
|
+
families: {
|
|
389
|
+
familyUserId: string;
|
|
390
|
+
muted: boolean;
|
|
391
|
+
assignmentId: string;
|
|
392
|
+
familyName: string;
|
|
393
|
+
unreadCount: number;
|
|
394
|
+
}[];
|
|
395
|
+
unreadCount: number;
|
|
396
|
+
preference: {
|
|
397
|
+
enabled: boolean;
|
|
398
|
+
updatedAt: string | null;
|
|
399
|
+
pushEnabled: boolean;
|
|
400
|
+
notifyAfter: string | null;
|
|
401
|
+
};
|
|
402
|
+
};
|
|
403
|
+
notifications: {
|
|
404
|
+
id: string;
|
|
405
|
+
createdAt: string;
|
|
406
|
+
familyUserId: string;
|
|
407
|
+
activityType: "sleep" | "breastfeed" | "pumping" | "bottles" | "nappies" | "medication" | "solids";
|
|
408
|
+
occurredAt: string;
|
|
409
|
+
babyId: string;
|
|
410
|
+
unread: boolean;
|
|
411
|
+
muted: boolean;
|
|
412
|
+
assignmentId: string;
|
|
413
|
+
activityId: string;
|
|
414
|
+
familyName: string;
|
|
415
|
+
babyName: string;
|
|
416
|
+
presentation: {
|
|
417
|
+
label: string;
|
|
418
|
+
summary: string | null;
|
|
419
|
+
};
|
|
420
|
+
route: string;
|
|
421
|
+
}[];
|
|
422
|
+
nextCursor: string | null;
|
|
423
|
+
}, {
|
|
424
|
+
summary: {
|
|
425
|
+
families: {
|
|
426
|
+
familyUserId: string;
|
|
427
|
+
muted: boolean;
|
|
428
|
+
assignmentId: string;
|
|
429
|
+
familyName: string;
|
|
430
|
+
unreadCount: number;
|
|
431
|
+
}[];
|
|
432
|
+
unreadCount: number;
|
|
433
|
+
preference: {
|
|
434
|
+
enabled: boolean;
|
|
435
|
+
updatedAt: string | null;
|
|
436
|
+
pushEnabled: boolean;
|
|
437
|
+
notifyAfter: string | null;
|
|
438
|
+
};
|
|
439
|
+
};
|
|
440
|
+
notifications: {
|
|
441
|
+
id: string;
|
|
442
|
+
createdAt: string;
|
|
443
|
+
familyUserId: string;
|
|
444
|
+
activityType: "sleep" | "breastfeed" | "pumping" | "bottles" | "nappies" | "medication" | "solids";
|
|
445
|
+
occurredAt: string;
|
|
446
|
+
babyId: string;
|
|
447
|
+
unread: boolean;
|
|
448
|
+
muted: boolean;
|
|
449
|
+
assignmentId: string;
|
|
450
|
+
activityId: string;
|
|
451
|
+
familyName: string;
|
|
452
|
+
babyName: string;
|
|
453
|
+
presentation: {
|
|
454
|
+
label: string;
|
|
455
|
+
summary: string | null;
|
|
456
|
+
};
|
|
457
|
+
route: string;
|
|
458
|
+
}[];
|
|
459
|
+
nextCursor: string | null;
|
|
460
|
+
}>;
|
|
461
|
+
export declare const coachActivityNotificationPreferenceResponseSchema: z.ZodObject<{
|
|
462
|
+
preference: z.ZodObject<{
|
|
463
|
+
enabled: z.ZodBoolean;
|
|
464
|
+
pushEnabled: z.ZodBoolean;
|
|
465
|
+
notifyAfter: z.ZodNullable<z.ZodString>;
|
|
466
|
+
updatedAt: z.ZodNullable<z.ZodString>;
|
|
467
|
+
}, "strip", z.ZodTypeAny, {
|
|
468
|
+
enabled: boolean;
|
|
469
|
+
updatedAt: string | null;
|
|
470
|
+
pushEnabled: boolean;
|
|
471
|
+
notifyAfter: string | null;
|
|
472
|
+
}, {
|
|
473
|
+
enabled: boolean;
|
|
474
|
+
updatedAt: string | null;
|
|
475
|
+
pushEnabled: boolean;
|
|
476
|
+
notifyAfter: string | null;
|
|
477
|
+
}>;
|
|
478
|
+
}, "strip", z.ZodTypeAny, {
|
|
479
|
+
preference: {
|
|
480
|
+
enabled: boolean;
|
|
481
|
+
updatedAt: string | null;
|
|
482
|
+
pushEnabled: boolean;
|
|
483
|
+
notifyAfter: string | null;
|
|
484
|
+
};
|
|
485
|
+
}, {
|
|
486
|
+
preference: {
|
|
487
|
+
enabled: boolean;
|
|
488
|
+
updatedAt: string | null;
|
|
489
|
+
pushEnabled: boolean;
|
|
490
|
+
notifyAfter: string | null;
|
|
491
|
+
};
|
|
492
|
+
}>;
|
|
493
|
+
export declare const coachFamilyActivityNotificationPreferenceResponseSchema: z.ZodObject<{
|
|
494
|
+
state: z.ZodObject<{
|
|
495
|
+
assignmentId: z.ZodString;
|
|
496
|
+
familyUserId: z.ZodString;
|
|
497
|
+
muted: z.ZodBoolean;
|
|
498
|
+
mutedAt: z.ZodNullable<z.ZodString>;
|
|
499
|
+
notifyAfter: z.ZodString;
|
|
500
|
+
lastSeenActivityCreatedAt: z.ZodNullable<z.ZodString>;
|
|
501
|
+
lastSeenActivityId: z.ZodNullable<z.ZodString>;
|
|
502
|
+
updatedAt: z.ZodNullable<z.ZodString>;
|
|
503
|
+
}, "strip", z.ZodTypeAny, {
|
|
504
|
+
updatedAt: string | null;
|
|
505
|
+
familyUserId: string;
|
|
506
|
+
muted: boolean;
|
|
507
|
+
notifyAfter: string;
|
|
508
|
+
assignmentId: string;
|
|
509
|
+
mutedAt: string | null;
|
|
510
|
+
lastSeenActivityCreatedAt: string | null;
|
|
511
|
+
lastSeenActivityId: string | null;
|
|
512
|
+
}, {
|
|
513
|
+
updatedAt: string | null;
|
|
514
|
+
familyUserId: string;
|
|
515
|
+
muted: boolean;
|
|
516
|
+
notifyAfter: string;
|
|
517
|
+
assignmentId: string;
|
|
518
|
+
mutedAt: string | null;
|
|
519
|
+
lastSeenActivityCreatedAt: string | null;
|
|
520
|
+
lastSeenActivityId: string | null;
|
|
521
|
+
}>;
|
|
522
|
+
}, "strip", z.ZodTypeAny, {
|
|
523
|
+
state: {
|
|
524
|
+
updatedAt: string | null;
|
|
525
|
+
familyUserId: string;
|
|
526
|
+
muted: boolean;
|
|
527
|
+
notifyAfter: string;
|
|
528
|
+
assignmentId: string;
|
|
529
|
+
mutedAt: string | null;
|
|
530
|
+
lastSeenActivityCreatedAt: string | null;
|
|
531
|
+
lastSeenActivityId: string | null;
|
|
532
|
+
};
|
|
533
|
+
}, {
|
|
534
|
+
state: {
|
|
535
|
+
updatedAt: string | null;
|
|
536
|
+
familyUserId: string;
|
|
537
|
+
muted: boolean;
|
|
538
|
+
notifyAfter: string;
|
|
539
|
+
assignmentId: string;
|
|
540
|
+
mutedAt: string | null;
|
|
541
|
+
lastSeenActivityCreatedAt: string | null;
|
|
542
|
+
lastSeenActivityId: string | null;
|
|
543
|
+
};
|
|
544
|
+
}>;
|
|
545
|
+
export declare const coachFamilyActivityNotificationSeenResponseSchema: z.ZodObject<{
|
|
546
|
+
state: z.ZodObject<{
|
|
547
|
+
assignmentId: z.ZodString;
|
|
548
|
+
familyUserId: z.ZodString;
|
|
549
|
+
muted: z.ZodBoolean;
|
|
550
|
+
mutedAt: z.ZodNullable<z.ZodString>;
|
|
551
|
+
notifyAfter: z.ZodString;
|
|
552
|
+
lastSeenActivityCreatedAt: z.ZodNullable<z.ZodString>;
|
|
553
|
+
lastSeenActivityId: z.ZodNullable<z.ZodString>;
|
|
554
|
+
updatedAt: z.ZodNullable<z.ZodString>;
|
|
555
|
+
}, "strip", z.ZodTypeAny, {
|
|
556
|
+
updatedAt: string | null;
|
|
557
|
+
familyUserId: string;
|
|
558
|
+
muted: boolean;
|
|
559
|
+
notifyAfter: string;
|
|
560
|
+
assignmentId: string;
|
|
561
|
+
mutedAt: string | null;
|
|
562
|
+
lastSeenActivityCreatedAt: string | null;
|
|
563
|
+
lastSeenActivityId: string | null;
|
|
564
|
+
}, {
|
|
565
|
+
updatedAt: string | null;
|
|
566
|
+
familyUserId: string;
|
|
567
|
+
muted: boolean;
|
|
568
|
+
notifyAfter: string;
|
|
569
|
+
assignmentId: string;
|
|
570
|
+
mutedAt: string | null;
|
|
571
|
+
lastSeenActivityCreatedAt: string | null;
|
|
572
|
+
lastSeenActivityId: string | null;
|
|
573
|
+
}>;
|
|
574
|
+
}, "strip", z.ZodTypeAny, {
|
|
575
|
+
state: {
|
|
576
|
+
updatedAt: string | null;
|
|
577
|
+
familyUserId: string;
|
|
578
|
+
muted: boolean;
|
|
579
|
+
notifyAfter: string;
|
|
580
|
+
assignmentId: string;
|
|
581
|
+
mutedAt: string | null;
|
|
582
|
+
lastSeenActivityCreatedAt: string | null;
|
|
583
|
+
lastSeenActivityId: string | null;
|
|
584
|
+
};
|
|
585
|
+
}, {
|
|
586
|
+
state: {
|
|
587
|
+
updatedAt: string | null;
|
|
588
|
+
familyUserId: string;
|
|
589
|
+
muted: boolean;
|
|
590
|
+
notifyAfter: string;
|
|
591
|
+
assignmentId: string;
|
|
592
|
+
mutedAt: string | null;
|
|
593
|
+
lastSeenActivityCreatedAt: string | null;
|
|
594
|
+
lastSeenActivityId: string | null;
|
|
595
|
+
};
|
|
596
|
+
}>;
|
|
597
|
+
export declare const coachActivityNotificationPresentation: (activityType: ActivityType, details: unknown) => CoachActivityNotificationPresentation;
|
|
598
|
+
export type CoachActivityNotificationStatus = z.infer<typeof coachActivityNotificationStatusSchema>;
|
|
599
|
+
export type CoachActivityNotificationListQuery = z.infer<typeof coachActivityNotificationListQuerySchema>;
|
|
600
|
+
export type CoachActivityNotificationPresentation = z.infer<typeof coachActivityNotificationPresentationSchema>;
|
|
601
|
+
export type CoachActivityNotificationPreference = z.infer<typeof coachActivityNotificationPreferenceSchema>;
|
|
602
|
+
export type CoachActivityNotificationPreferenceWrite = z.infer<typeof coachActivityNotificationPreferenceWriteSchema>;
|
|
603
|
+
export type CoachFamilyActivityNotificationState = z.infer<typeof coachFamilyActivityNotificationStateSchema>;
|
|
604
|
+
export type CoachFamilyActivityNotificationPreferenceWrite = z.infer<typeof coachFamilyActivityNotificationPreferenceWriteSchema>;
|
|
605
|
+
export type CoachActivityNotificationCard = z.infer<typeof coachActivityNotificationCardSchema>;
|
|
606
|
+
export type CoachActivityNotificationSummary = z.infer<typeof coachActivityNotificationSummarySchema>;
|
|
607
|
+
export type CoachActivityNotificationListResponse = z.infer<typeof coachActivityNotificationListResponseSchema>;
|
|
608
|
+
export type CoachActivityNotificationPreferenceResponse = z.infer<typeof coachActivityNotificationPreferenceResponseSchema>;
|
|
609
|
+
export type CoachFamilyActivityNotificationPreferenceResponse = z.infer<typeof coachFamilyActivityNotificationPreferenceResponseSchema>;
|
|
610
|
+
export type CoachFamilyActivityNotificationSeenResponse = z.infer<typeof coachFamilyActivityNotificationSeenResponseSchema>;
|