@nikthegeek/dreamsforlittles-shared 0.1.0 → 0.1.2
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 +2450 -30
- package/dist/access.js +63 -4
- package/dist/access.js.map +1 -1
- package/dist/admin.d.ts +12635 -1041
- package/dist/admin.js +554 -4
- package/dist/admin.js.map +1 -1
- package/dist/allergy-ladders.d.ts +563 -80
- package/dist/allergy-ladders.js +40 -0
- package/dist/allergy-ladders.js.map +1 -1
- package/dist/analysis.d.ts +68 -46
- package/dist/analysis.js +10 -2
- package/dist/analysis.js.map +1 -1
- package/dist/api.d.ts +12 -5
- package/dist/api.js +12 -0
- package/dist/api.js.map +1 -1
- package/dist/app-feedback.d.ts +322 -0
- package/dist/app-feedback.js +58 -0
- package/dist/app-feedback.js.map +1 -0
- package/dist/auth.d.ts +684 -0
- package/dist/auth.js +45 -4
- package/dist/auth.js.map +1 -1
- package/dist/billing.d.ts +47 -2
- package/dist/billing.js +56 -29
- package/dist/billing.js.map +1 -1
- package/dist/client-notices.d.ts +6114 -0
- package/dist/client-notices.js +455 -0
- package/dist/client-notices.js.map +1 -0
- package/dist/coach.d.ts +20178 -206
- package/dist/coach.js +329 -18
- package/dist/coach.js.map +1 -1
- package/dist/communication-preferences.d.ts +61 -0
- package/dist/communication-preferences.js +30 -0
- package/dist/communication-preferences.js.map +1 -0
- package/dist/enums.d.ts +6 -2
- package/dist/enums.js +27 -1
- package/dist/enums.js.map +1 -1
- package/dist/errors.d.ts +9 -4
- package/dist/errors.js +9 -2
- package/dist/errors.js.map +1 -1
- package/dist/family-invitations.d.ts +2289 -0
- package/dist/family-invitations.js +77 -0
- package/dist/family-invitations.js.map +1 -0
- package/dist/family-profile-artifacts.d.ts +4433 -0
- package/dist/family-profile-artifacts.js +192 -0
- package/dist/family-profile-artifacts.js.map +1 -0
- package/dist/family.d.ts +7902 -294
- package/dist/family.js +170 -5
- package/dist/family.js.map +1 -1
- package/dist/files.d.ts +17 -14
- package/dist/files.js +5 -1
- package/dist/files.js.map +1 -1
- package/dist/getting-started-guides.d.ts +117 -0
- package/dist/getting-started-guides.js +25 -0
- package/dist/getting-started-guides.js.map +1 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +14 -0
- package/dist/index.js.map +1 -1
- package/dist/invites.d.ts +252 -0
- package/dist/invites.js +2 -0
- package/dist/invites.js.map +1 -1
- package/dist/mobile-web-releases.d.ts +389 -0
- package/dist/mobile-web-releases.js +71 -0
- package/dist/mobile-web-releases.js.map +1 -0
- package/dist/notification-banners.d.ts +694 -0
- package/dist/notification-banners.js +132 -0
- package/dist/notification-banners.js.map +1 -0
- package/dist/product-analytics.d.ts +5984 -0
- package/dist/product-analytics.js +791 -0
- package/dist/product-analytics.js.map +1 -0
- package/dist/push-devices.d.ts +175 -0
- package/dist/push-devices.js +56 -0
- package/dist/push-devices.js.map +1 -0
- package/dist/realtime.d.ts +604 -0
- package/dist/realtime.js +152 -0
- package/dist/realtime.js.map +1 -0
- package/dist/review-prompt.d.ts +192 -0
- package/dist/review-prompt.js +72 -0
- package/dist/review-prompt.js.map +1 -0
- package/dist/support-faqs.d.ts +103 -0
- package/dist/support-faqs.js +24 -0
- package/dist/support-faqs.js.map +1 -0
- package/dist/support-tickets.d.ts +605 -0
- package/dist/support-tickets.js +100 -0
- package/dist/support-tickets.js.map +1 -0
- package/package.json +6 -1
package/dist/invites.d.ts
CHANGED
|
@@ -15,6 +15,23 @@ export declare const invitePreviewSchema: z.ZodObject<{
|
|
|
15
15
|
authUserId: z.ZodString;
|
|
16
16
|
email: z.ZodString;
|
|
17
17
|
name: z.ZodString;
|
|
18
|
+
profileAssetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
relationship: z.ZodOptional<z.ZodNullable<z.ZodEnum<["mother", "father", "grandfather", "grandmother", "uncle", "aunt", "guardian", "other"]>>>;
|
|
20
|
+
timeZone: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
|
|
21
|
+
communicationPreferences: z.ZodOptional<z.ZodObject<{
|
|
22
|
+
hintsTips: z.ZodBoolean;
|
|
23
|
+
appUpdatesNewFeatures: z.ZodBoolean;
|
|
24
|
+
promotionsOffers: z.ZodBoolean;
|
|
25
|
+
}, "strict", z.ZodTypeAny, {
|
|
26
|
+
hintsTips: boolean;
|
|
27
|
+
appUpdatesNewFeatures: boolean;
|
|
28
|
+
promotionsOffers: boolean;
|
|
29
|
+
}, {
|
|
30
|
+
hintsTips: boolean;
|
|
31
|
+
appUpdatesNewFeatures: boolean;
|
|
32
|
+
promotionsOffers: boolean;
|
|
33
|
+
}>>;
|
|
34
|
+
communicationPreferencesUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
35
|
defaultRole: z.ZodEnum<["family", "coach", "superAdmin"]>;
|
|
19
36
|
roles: z.ZodObject<{
|
|
20
37
|
family: z.ZodBoolean;
|
|
@@ -29,6 +46,7 @@ export declare const invitePreviewSchema: z.ZodObject<{
|
|
|
29
46
|
coach: boolean;
|
|
30
47
|
superAdmin: boolean;
|
|
31
48
|
}>;
|
|
49
|
+
createdAt: z.ZodString;
|
|
32
50
|
}, "strip", z.ZodTypeAny, {
|
|
33
51
|
id: string;
|
|
34
52
|
authUserId: string;
|
|
@@ -40,6 +58,16 @@ export declare const invitePreviewSchema: z.ZodObject<{
|
|
|
40
58
|
coach: boolean;
|
|
41
59
|
superAdmin: boolean;
|
|
42
60
|
};
|
|
61
|
+
createdAt: string;
|
|
62
|
+
profileAssetId?: string | null | undefined;
|
|
63
|
+
relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
|
|
64
|
+
timeZone?: string | null | undefined;
|
|
65
|
+
communicationPreferences?: {
|
|
66
|
+
hintsTips: boolean;
|
|
67
|
+
appUpdatesNewFeatures: boolean;
|
|
68
|
+
promotionsOffers: boolean;
|
|
69
|
+
} | undefined;
|
|
70
|
+
communicationPreferencesUpdatedAt?: string | null | undefined;
|
|
43
71
|
}, {
|
|
44
72
|
id: string;
|
|
45
73
|
authUserId: string;
|
|
@@ -51,22 +79,166 @@ export declare const invitePreviewSchema: z.ZodObject<{
|
|
|
51
79
|
coach: boolean;
|
|
52
80
|
superAdmin: boolean;
|
|
53
81
|
};
|
|
82
|
+
createdAt: string;
|
|
83
|
+
profileAssetId?: string | null | undefined;
|
|
84
|
+
relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
|
|
85
|
+
timeZone?: string | null | undefined;
|
|
86
|
+
communicationPreferences?: {
|
|
87
|
+
hintsTips: boolean;
|
|
88
|
+
appUpdatesNewFeatures: boolean;
|
|
89
|
+
promotionsOffers: boolean;
|
|
90
|
+
} | undefined;
|
|
91
|
+
communicationPreferencesUpdatedAt?: string | null | undefined;
|
|
54
92
|
}>;
|
|
55
93
|
organization: z.ZodObject<{
|
|
56
94
|
id: z.ZodString;
|
|
57
95
|
name: z.ZodString;
|
|
58
96
|
type: z.ZodEnum<["platformPractice", "independentCoach", "multiCoachPractice", "academy", "partner"]>;
|
|
59
97
|
status: z.ZodEnum<["active", "trialing", "pastDue", "suspended", "archived"]>;
|
|
98
|
+
branding: z.ZodOptional<z.ZodObject<{
|
|
99
|
+
primaryColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
100
|
+
accentColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
101
|
+
backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
102
|
+
theme: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
103
|
+
documentBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
104
|
+
screenBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
105
|
+
surfaceColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
106
|
+
mutedSurfaceColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
107
|
+
softSurfaceColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
108
|
+
textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
109
|
+
greenColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
110
|
+
lavenderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
111
|
+
yellowColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
112
|
+
pinkColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
113
|
+
deepGreenColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
114
|
+
blueColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
115
|
+
}, "strict", z.ZodTypeAny, {
|
|
116
|
+
documentBackgroundColor?: string | null | undefined;
|
|
117
|
+
screenBackgroundColor?: string | null | undefined;
|
|
118
|
+
surfaceColor?: string | null | undefined;
|
|
119
|
+
mutedSurfaceColor?: string | null | undefined;
|
|
120
|
+
softSurfaceColor?: string | null | undefined;
|
|
121
|
+
textColor?: string | null | undefined;
|
|
122
|
+
greenColor?: string | null | undefined;
|
|
123
|
+
lavenderColor?: string | null | undefined;
|
|
124
|
+
yellowColor?: string | null | undefined;
|
|
125
|
+
pinkColor?: string | null | undefined;
|
|
126
|
+
deepGreenColor?: string | null | undefined;
|
|
127
|
+
blueColor?: string | null | undefined;
|
|
128
|
+
}, {
|
|
129
|
+
documentBackgroundColor?: string | null | undefined;
|
|
130
|
+
screenBackgroundColor?: string | null | undefined;
|
|
131
|
+
surfaceColor?: string | null | undefined;
|
|
132
|
+
mutedSurfaceColor?: string | null | undefined;
|
|
133
|
+
softSurfaceColor?: string | null | undefined;
|
|
134
|
+
textColor?: string | null | undefined;
|
|
135
|
+
greenColor?: string | null | undefined;
|
|
136
|
+
lavenderColor?: string | null | undefined;
|
|
137
|
+
yellowColor?: string | null | undefined;
|
|
138
|
+
pinkColor?: string | null | undefined;
|
|
139
|
+
deepGreenColor?: string | null | undefined;
|
|
140
|
+
blueColor?: string | null | undefined;
|
|
141
|
+
}>>>;
|
|
142
|
+
logoAssetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
143
|
+
welcomeMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
144
|
+
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
145
|
+
}, "strip", z.ZodTypeAny, {
|
|
146
|
+
primaryColor?: string | null | undefined;
|
|
147
|
+
accentColor?: string | null | undefined;
|
|
148
|
+
backgroundColor?: string | null | undefined;
|
|
149
|
+
theme?: {
|
|
150
|
+
documentBackgroundColor?: string | null | undefined;
|
|
151
|
+
screenBackgroundColor?: string | null | undefined;
|
|
152
|
+
surfaceColor?: string | null | undefined;
|
|
153
|
+
mutedSurfaceColor?: string | null | undefined;
|
|
154
|
+
softSurfaceColor?: string | null | undefined;
|
|
155
|
+
textColor?: string | null | undefined;
|
|
156
|
+
greenColor?: string | null | undefined;
|
|
157
|
+
lavenderColor?: string | null | undefined;
|
|
158
|
+
yellowColor?: string | null | undefined;
|
|
159
|
+
pinkColor?: string | null | undefined;
|
|
160
|
+
deepGreenColor?: string | null | undefined;
|
|
161
|
+
blueColor?: string | null | undefined;
|
|
162
|
+
} | null | undefined;
|
|
163
|
+
logoAssetId?: string | null | undefined;
|
|
164
|
+
welcomeMessage?: string | null | undefined;
|
|
165
|
+
updatedAt?: string | null | undefined;
|
|
166
|
+
}, {
|
|
167
|
+
primaryColor?: string | null | undefined;
|
|
168
|
+
accentColor?: string | null | undefined;
|
|
169
|
+
backgroundColor?: string | null | undefined;
|
|
170
|
+
theme?: {
|
|
171
|
+
documentBackgroundColor?: string | null | undefined;
|
|
172
|
+
screenBackgroundColor?: string | null | undefined;
|
|
173
|
+
surfaceColor?: string | null | undefined;
|
|
174
|
+
mutedSurfaceColor?: string | null | undefined;
|
|
175
|
+
softSurfaceColor?: string | null | undefined;
|
|
176
|
+
textColor?: string | null | undefined;
|
|
177
|
+
greenColor?: string | null | undefined;
|
|
178
|
+
lavenderColor?: string | null | undefined;
|
|
179
|
+
yellowColor?: string | null | undefined;
|
|
180
|
+
pinkColor?: string | null | undefined;
|
|
181
|
+
deepGreenColor?: string | null | undefined;
|
|
182
|
+
blueColor?: string | null | undefined;
|
|
183
|
+
} | null | undefined;
|
|
184
|
+
logoAssetId?: string | null | undefined;
|
|
185
|
+
welcomeMessage?: string | null | undefined;
|
|
186
|
+
updatedAt?: string | null | undefined;
|
|
187
|
+
}>>;
|
|
60
188
|
}, "strip", z.ZodTypeAny, {
|
|
61
189
|
type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
|
|
62
190
|
status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
|
|
63
191
|
id: string;
|
|
64
192
|
name: string;
|
|
193
|
+
branding?: {
|
|
194
|
+
primaryColor?: string | null | undefined;
|
|
195
|
+
accentColor?: string | null | undefined;
|
|
196
|
+
backgroundColor?: string | null | undefined;
|
|
197
|
+
theme?: {
|
|
198
|
+
documentBackgroundColor?: string | null | undefined;
|
|
199
|
+
screenBackgroundColor?: string | null | undefined;
|
|
200
|
+
surfaceColor?: string | null | undefined;
|
|
201
|
+
mutedSurfaceColor?: string | null | undefined;
|
|
202
|
+
softSurfaceColor?: string | null | undefined;
|
|
203
|
+
textColor?: string | null | undefined;
|
|
204
|
+
greenColor?: string | null | undefined;
|
|
205
|
+
lavenderColor?: string | null | undefined;
|
|
206
|
+
yellowColor?: string | null | undefined;
|
|
207
|
+
pinkColor?: string | null | undefined;
|
|
208
|
+
deepGreenColor?: string | null | undefined;
|
|
209
|
+
blueColor?: string | null | undefined;
|
|
210
|
+
} | null | undefined;
|
|
211
|
+
logoAssetId?: string | null | undefined;
|
|
212
|
+
welcomeMessage?: string | null | undefined;
|
|
213
|
+
updatedAt?: string | null | undefined;
|
|
214
|
+
} | undefined;
|
|
65
215
|
}, {
|
|
66
216
|
type: "platformPractice" | "independentCoach" | "multiCoachPractice" | "academy" | "partner";
|
|
67
217
|
status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
|
|
68
218
|
id: string;
|
|
69
219
|
name: string;
|
|
220
|
+
branding?: {
|
|
221
|
+
primaryColor?: string | null | undefined;
|
|
222
|
+
accentColor?: string | null | undefined;
|
|
223
|
+
backgroundColor?: string | null | undefined;
|
|
224
|
+
theme?: {
|
|
225
|
+
documentBackgroundColor?: string | null | undefined;
|
|
226
|
+
screenBackgroundColor?: string | null | undefined;
|
|
227
|
+
surfaceColor?: string | null | undefined;
|
|
228
|
+
mutedSurfaceColor?: string | null | undefined;
|
|
229
|
+
softSurfaceColor?: string | null | undefined;
|
|
230
|
+
textColor?: string | null | undefined;
|
|
231
|
+
greenColor?: string | null | undefined;
|
|
232
|
+
lavenderColor?: string | null | undefined;
|
|
233
|
+
yellowColor?: string | null | undefined;
|
|
234
|
+
pinkColor?: string | null | undefined;
|
|
235
|
+
deepGreenColor?: string | null | undefined;
|
|
236
|
+
blueColor?: string | null | undefined;
|
|
237
|
+
} | null | undefined;
|
|
238
|
+
logoAssetId?: string | null | undefined;
|
|
239
|
+
welcomeMessage?: string | null | undefined;
|
|
240
|
+
updatedAt?: string | null | undefined;
|
|
241
|
+
} | undefined;
|
|
70
242
|
}>;
|
|
71
243
|
assignment: z.ZodNullable<z.ZodObject<Omit<{
|
|
72
244
|
id: z.ZodString;
|
|
@@ -77,6 +249,7 @@ export declare const invitePreviewSchema: z.ZodObject<{
|
|
|
77
249
|
canViewLogs: z.ZodBoolean;
|
|
78
250
|
canEditLogs: z.ZodBoolean;
|
|
79
251
|
canViewAnalysis: z.ZodBoolean;
|
|
252
|
+
canManageSupportDates: z.ZodOptional<z.ZodBoolean>;
|
|
80
253
|
revokedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
81
254
|
}, "status" | "id">, "strip", z.ZodTypeAny, {
|
|
82
255
|
canViewAnalysis: boolean;
|
|
@@ -84,6 +257,7 @@ export declare const invitePreviewSchema: z.ZodObject<{
|
|
|
84
257
|
coachUserId: string;
|
|
85
258
|
canViewLogs: boolean;
|
|
86
259
|
canEditLogs: boolean;
|
|
260
|
+
canManageSupportDates?: boolean | undefined;
|
|
87
261
|
familyUserId?: string | undefined;
|
|
88
262
|
revokedAt?: string | null | undefined;
|
|
89
263
|
}, {
|
|
@@ -92,6 +266,7 @@ export declare const invitePreviewSchema: z.ZodObject<{
|
|
|
92
266
|
coachUserId: string;
|
|
93
267
|
canViewLogs: boolean;
|
|
94
268
|
canEditLogs: boolean;
|
|
269
|
+
canManageSupportDates?: boolean | undefined;
|
|
95
270
|
familyUserId?: string | undefined;
|
|
96
271
|
revokedAt?: string | null | undefined;
|
|
97
272
|
}>>;
|
|
@@ -111,6 +286,16 @@ export declare const invitePreviewSchema: z.ZodObject<{
|
|
|
111
286
|
coach: boolean;
|
|
112
287
|
superAdmin: boolean;
|
|
113
288
|
};
|
|
289
|
+
createdAt: string;
|
|
290
|
+
profileAssetId?: string | null | undefined;
|
|
291
|
+
relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
|
|
292
|
+
timeZone?: string | null | undefined;
|
|
293
|
+
communicationPreferences?: {
|
|
294
|
+
hintsTips: boolean;
|
|
295
|
+
appUpdatesNewFeatures: boolean;
|
|
296
|
+
promotionsOffers: boolean;
|
|
297
|
+
} | undefined;
|
|
298
|
+
communicationPreferencesUpdatedAt?: string | null | undefined;
|
|
114
299
|
};
|
|
115
300
|
code: string;
|
|
116
301
|
assignment: {
|
|
@@ -119,6 +304,7 @@ export declare const invitePreviewSchema: z.ZodObject<{
|
|
|
119
304
|
coachUserId: string;
|
|
120
305
|
canViewLogs: boolean;
|
|
121
306
|
canEditLogs: boolean;
|
|
307
|
+
canManageSupportDates?: boolean | undefined;
|
|
122
308
|
familyUserId?: string | undefined;
|
|
123
309
|
revokedAt?: string | null | undefined;
|
|
124
310
|
} | null;
|
|
@@ -127,6 +313,28 @@ export declare const invitePreviewSchema: z.ZodObject<{
|
|
|
127
313
|
status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
|
|
128
314
|
id: string;
|
|
129
315
|
name: string;
|
|
316
|
+
branding?: {
|
|
317
|
+
primaryColor?: string | null | undefined;
|
|
318
|
+
accentColor?: string | null | undefined;
|
|
319
|
+
backgroundColor?: string | null | undefined;
|
|
320
|
+
theme?: {
|
|
321
|
+
documentBackgroundColor?: string | null | undefined;
|
|
322
|
+
screenBackgroundColor?: string | null | undefined;
|
|
323
|
+
surfaceColor?: string | null | undefined;
|
|
324
|
+
mutedSurfaceColor?: string | null | undefined;
|
|
325
|
+
softSurfaceColor?: string | null | undefined;
|
|
326
|
+
textColor?: string | null | undefined;
|
|
327
|
+
greenColor?: string | null | undefined;
|
|
328
|
+
lavenderColor?: string | null | undefined;
|
|
329
|
+
yellowColor?: string | null | undefined;
|
|
330
|
+
pinkColor?: string | null | undefined;
|
|
331
|
+
deepGreenColor?: string | null | undefined;
|
|
332
|
+
blueColor?: string | null | undefined;
|
|
333
|
+
} | null | undefined;
|
|
334
|
+
logoAssetId?: string | null | undefined;
|
|
335
|
+
welcomeMessage?: string | null | undefined;
|
|
336
|
+
updatedAt?: string | null | undefined;
|
|
337
|
+
} | undefined;
|
|
130
338
|
};
|
|
131
339
|
normalizedCode: string;
|
|
132
340
|
inviteCodeId: string;
|
|
@@ -146,6 +354,16 @@ export declare const invitePreviewSchema: z.ZodObject<{
|
|
|
146
354
|
coach: boolean;
|
|
147
355
|
superAdmin: boolean;
|
|
148
356
|
};
|
|
357
|
+
createdAt: string;
|
|
358
|
+
profileAssetId?: string | null | undefined;
|
|
359
|
+
relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
|
|
360
|
+
timeZone?: string | null | undefined;
|
|
361
|
+
communicationPreferences?: {
|
|
362
|
+
hintsTips: boolean;
|
|
363
|
+
appUpdatesNewFeatures: boolean;
|
|
364
|
+
promotionsOffers: boolean;
|
|
365
|
+
} | undefined;
|
|
366
|
+
communicationPreferencesUpdatedAt?: string | null | undefined;
|
|
149
367
|
};
|
|
150
368
|
code: string;
|
|
151
369
|
assignment: {
|
|
@@ -154,6 +372,7 @@ export declare const invitePreviewSchema: z.ZodObject<{
|
|
|
154
372
|
coachUserId: string;
|
|
155
373
|
canViewLogs: boolean;
|
|
156
374
|
canEditLogs: boolean;
|
|
375
|
+
canManageSupportDates?: boolean | undefined;
|
|
157
376
|
familyUserId?: string | undefined;
|
|
158
377
|
revokedAt?: string | null | undefined;
|
|
159
378
|
} | null;
|
|
@@ -162,6 +381,28 @@ export declare const invitePreviewSchema: z.ZodObject<{
|
|
|
162
381
|
status: "active" | "trialing" | "pastDue" | "suspended" | "archived";
|
|
163
382
|
id: string;
|
|
164
383
|
name: string;
|
|
384
|
+
branding?: {
|
|
385
|
+
primaryColor?: string | null | undefined;
|
|
386
|
+
accentColor?: string | null | undefined;
|
|
387
|
+
backgroundColor?: string | null | undefined;
|
|
388
|
+
theme?: {
|
|
389
|
+
documentBackgroundColor?: string | null | undefined;
|
|
390
|
+
screenBackgroundColor?: string | null | undefined;
|
|
391
|
+
surfaceColor?: string | null | undefined;
|
|
392
|
+
mutedSurfaceColor?: string | null | undefined;
|
|
393
|
+
softSurfaceColor?: string | null | undefined;
|
|
394
|
+
textColor?: string | null | undefined;
|
|
395
|
+
greenColor?: string | null | undefined;
|
|
396
|
+
lavenderColor?: string | null | undefined;
|
|
397
|
+
yellowColor?: string | null | undefined;
|
|
398
|
+
pinkColor?: string | null | undefined;
|
|
399
|
+
deepGreenColor?: string | null | undefined;
|
|
400
|
+
blueColor?: string | null | undefined;
|
|
401
|
+
} | null | undefined;
|
|
402
|
+
logoAssetId?: string | null | undefined;
|
|
403
|
+
welcomeMessage?: string | null | undefined;
|
|
404
|
+
updatedAt?: string | null | undefined;
|
|
405
|
+
} | undefined;
|
|
165
406
|
};
|
|
166
407
|
normalizedCode: string;
|
|
167
408
|
inviteCodeId: string;
|
|
@@ -173,14 +414,17 @@ export declare const invitePreviewSchema: z.ZodObject<{
|
|
|
173
414
|
export declare const redeemInviteRequestSchema: z.ZodObject<{
|
|
174
415
|
code: z.ZodString;
|
|
175
416
|
consentToCoachAccess: z.ZodLiteral<true>;
|
|
417
|
+
acknowledgeActiveStoreSubscription: z.ZodOptional<z.ZodBoolean>;
|
|
176
418
|
redeemedFromPlatform: z.ZodOptional<z.ZodEnum<["iosWebView", "androidWebView", "web"]>>;
|
|
177
419
|
}, "strip", z.ZodTypeAny, {
|
|
178
420
|
code: string;
|
|
179
421
|
consentToCoachAccess: true;
|
|
422
|
+
acknowledgeActiveStoreSubscription?: boolean | undefined;
|
|
180
423
|
redeemedFromPlatform?: "iosWebView" | "androidWebView" | "web" | undefined;
|
|
181
424
|
}, {
|
|
182
425
|
code: string;
|
|
183
426
|
consentToCoachAccess: true;
|
|
427
|
+
acknowledgeActiveStoreSubscription?: boolean | undefined;
|
|
184
428
|
redeemedFromPlatform?: "iosWebView" | "androidWebView" | "web" | undefined;
|
|
185
429
|
}>;
|
|
186
430
|
export declare const redeemInviteResponseSchema: z.ZodObject<{
|
|
@@ -193,6 +437,7 @@ export declare const redeemInviteResponseSchema: z.ZodObject<{
|
|
|
193
437
|
canViewLogs: z.ZodBoolean;
|
|
194
438
|
canEditLogs: z.ZodBoolean;
|
|
195
439
|
canViewAnalysis: z.ZodBoolean;
|
|
440
|
+
canManageSupportDates: z.ZodOptional<z.ZodBoolean>;
|
|
196
441
|
revokedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
197
442
|
}, "strip", z.ZodTypeAny, {
|
|
198
443
|
status: "active" | "revoked" | "transferred" | "expired";
|
|
@@ -202,6 +447,7 @@ export declare const redeemInviteResponseSchema: z.ZodObject<{
|
|
|
202
447
|
coachUserId: string;
|
|
203
448
|
canViewLogs: boolean;
|
|
204
449
|
canEditLogs: boolean;
|
|
450
|
+
canManageSupportDates?: boolean | undefined;
|
|
205
451
|
familyUserId?: string | undefined;
|
|
206
452
|
revokedAt?: string | null | undefined;
|
|
207
453
|
}, {
|
|
@@ -212,9 +458,11 @@ export declare const redeemInviteResponseSchema: z.ZodObject<{
|
|
|
212
458
|
coachUserId: string;
|
|
213
459
|
canViewLogs: boolean;
|
|
214
460
|
canEditLogs: boolean;
|
|
461
|
+
canManageSupportDates?: boolean | undefined;
|
|
215
462
|
familyUserId?: string | undefined;
|
|
216
463
|
revokedAt?: string | null | undefined;
|
|
217
464
|
}>;
|
|
465
|
+
acknowledgedActiveStoreSubscription: z.ZodOptional<z.ZodBoolean>;
|
|
218
466
|
premium: z.ZodObject<{
|
|
219
467
|
active: z.ZodLiteral<true>;
|
|
220
468
|
source: z.ZodLiteral<"coachInvite">;
|
|
@@ -246,6 +494,7 @@ export declare const redeemInviteResponseSchema: z.ZodObject<{
|
|
|
246
494
|
coachUserId: string;
|
|
247
495
|
canViewLogs: boolean;
|
|
248
496
|
canEditLogs: boolean;
|
|
497
|
+
canManageSupportDates?: boolean | undefined;
|
|
249
498
|
familyUserId?: string | undefined;
|
|
250
499
|
revokedAt?: string | null | undefined;
|
|
251
500
|
};
|
|
@@ -257,6 +506,7 @@ export declare const redeemInviteResponseSchema: z.ZodObject<{
|
|
|
257
506
|
disabledReason: "none";
|
|
258
507
|
expiresAt?: string | null | undefined;
|
|
259
508
|
};
|
|
509
|
+
acknowledgedActiveStoreSubscription?: boolean | undefined;
|
|
260
510
|
}, {
|
|
261
511
|
assignment: {
|
|
262
512
|
status: "active" | "revoked" | "transferred" | "expired";
|
|
@@ -266,6 +516,7 @@ export declare const redeemInviteResponseSchema: z.ZodObject<{
|
|
|
266
516
|
coachUserId: string;
|
|
267
517
|
canViewLogs: boolean;
|
|
268
518
|
canEditLogs: boolean;
|
|
519
|
+
canManageSupportDates?: boolean | undefined;
|
|
269
520
|
familyUserId?: string | undefined;
|
|
270
521
|
revokedAt?: string | null | undefined;
|
|
271
522
|
};
|
|
@@ -277,6 +528,7 @@ export declare const redeemInviteResponseSchema: z.ZodObject<{
|
|
|
277
528
|
disabledReason: "none";
|
|
278
529
|
expiresAt?: string | null | undefined;
|
|
279
530
|
};
|
|
531
|
+
acknowledgedActiveStoreSubscription?: boolean | undefined;
|
|
280
532
|
}>;
|
|
281
533
|
export type InvitePreviewRequest = z.infer<typeof invitePreviewRequestSchema>;
|
|
282
534
|
export type InvitePreview = z.infer<typeof invitePreviewSchema>;
|
package/dist/invites.js
CHANGED
|
@@ -19,10 +19,12 @@ export const invitePreviewSchema = z.object({
|
|
|
19
19
|
export const redeemInviteRequestSchema = z.object({
|
|
20
20
|
code: z.string().min(1),
|
|
21
21
|
consentToCoachAccess: z.literal(true),
|
|
22
|
+
acknowledgeActiveStoreSubscription: z.boolean().optional(),
|
|
22
23
|
redeemedFromPlatform: z.enum(["iosWebView", "androidWebView", "web"]).optional()
|
|
23
24
|
});
|
|
24
25
|
export const redeemInviteResponseSchema = z.object({
|
|
25
26
|
assignment: assignmentSummarySchema,
|
|
27
|
+
acknowledgedActiveStoreSubscription: z.boolean().optional(),
|
|
26
28
|
premium: z.object({
|
|
27
29
|
active: z.literal(true),
|
|
28
30
|
source: z.literal("coachInvite"),
|
package/dist/invites.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invites.js","sourceRoot":"","sources":["../src/invites.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,uBAAuB,EAAE,yBAAyB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACnG,OAAO,EAAE,QAAQ,EAAE,2BAA2B,EAAE,MAAM,UAAU,CAAC;AAEjE,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CACxB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,C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