@nikthegeek/dreamsforlittles-shared 0.1.3 → 0.5.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 +360 -12
- package/dist/access.js +9 -2
- package/dist/access.js.map +1 -1
- package/dist/admin.d.ts +2300 -165
- package/dist/admin.js +128 -1
- package/dist/admin.js.map +1 -1
- 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 +37 -4
- package/dist/auth.js +12 -4
- package/dist/auth.js.map +1 -1
- package/dist/client-notices.d.ts +77 -77
- 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 +16 -16
- 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 +113 -0
- package/dist/coach-growth.test.js.map +1 -0
- package/dist/coach.d.ts +61 -48
- package/dist/coach.js +4 -0
- package/dist/coach.js.map +1 -1
- package/dist/enums.d.ts +1 -1
- package/dist/enums.js +9 -1
- package/dist/enums.js.map +1 -1
- package/dist/errors.d.ts +15 -4
- package/dist/errors.js +33 -0
- package/dist/errors.js.map +1 -1
- package/dist/family-acquisition.d.ts +47 -0
- package/dist/family-acquisition.js +45 -0
- package/dist/family-acquisition.js.map +1 -0
- package/dist/family-acquisition.test.d.ts +1 -0
- package/dist/family-acquisition.test.js +121 -0
- package/dist/family-acquisition.test.js.map +1 -0
- package/dist/family-invitations.d.ts +2 -2
- package/dist/family-profile-artifacts.d.ts +28 -28
- package/dist/family.d.ts +1411 -147
- package/dist/family.js +27 -0
- 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 +7 -0
- package/dist/index.js +7 -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 +12 -12
- package/dist/product-analytics.d.ts +276 -276
- 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 +10 -10
- 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,47 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const coachAcquisitionSourceSchema: z.ZodEnum<["searchEngine", "socialMedia", "referral", "trainingOrEvent", "partner", "advertisement", "other", "preferNotToSay"]>;
|
|
3
|
+
export declare const coachAcquisitionSourceOptions: readonly [{
|
|
4
|
+
readonly value: "searchEngine";
|
|
5
|
+
readonly label: "Online search";
|
|
6
|
+
}, {
|
|
7
|
+
readonly value: "socialMedia";
|
|
8
|
+
readonly label: "Social media";
|
|
9
|
+
}, {
|
|
10
|
+
readonly value: "referral";
|
|
11
|
+
readonly label: "Recommendation or referral";
|
|
12
|
+
}, {
|
|
13
|
+
readonly value: "trainingOrEvent";
|
|
14
|
+
readonly label: "Event, course, or training";
|
|
15
|
+
}, {
|
|
16
|
+
readonly value: "partner";
|
|
17
|
+
readonly label: "Partner organisation or professional community";
|
|
18
|
+
}, {
|
|
19
|
+
readonly value: "advertisement";
|
|
20
|
+
readonly label: "Advertisement";
|
|
21
|
+
}, {
|
|
22
|
+
readonly value: "other";
|
|
23
|
+
readonly label: "Other";
|
|
24
|
+
}, {
|
|
25
|
+
readonly value: "preferNotToSay";
|
|
26
|
+
readonly label: "Prefer not to say";
|
|
27
|
+
}];
|
|
28
|
+
export declare const normalizeCoachAcquisitionSourceOtherText: (value: string) => string;
|
|
29
|
+
export declare const coachAcquisitionSourceOtherTextSchema: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
30
|
+
export declare const coachAcquisitionSourceFieldsSchema: z.ZodEffects<z.ZodObject<{
|
|
31
|
+
acquisitionSource: z.ZodOptional<z.ZodNullable<z.ZodEnum<["searchEngine", "socialMedia", "referral", "trainingOrEvent", "partner", "advertisement", "other", "preferNotToSay"]>>>;
|
|
32
|
+
acquisitionSourceOtherText: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
33
|
+
}, "strip", z.ZodTypeAny, {
|
|
34
|
+
acquisitionSource?: "other" | "partner" | "searchEngine" | "socialMedia" | "referral" | "advertisement" | "preferNotToSay" | "trainingOrEvent" | null | undefined;
|
|
35
|
+
acquisitionSourceOtherText?: string | undefined;
|
|
36
|
+
}, {
|
|
37
|
+
acquisitionSource?: "other" | "partner" | "searchEngine" | "socialMedia" | "referral" | "advertisement" | "preferNotToSay" | "trainingOrEvent" | null | undefined;
|
|
38
|
+
acquisitionSourceOtherText?: unknown;
|
|
39
|
+
}>, {
|
|
40
|
+
acquisitionSource?: "other" | "partner" | "searchEngine" | "socialMedia" | "referral" | "advertisement" | "preferNotToSay" | "trainingOrEvent" | null | undefined;
|
|
41
|
+
acquisitionSourceOtherText?: string | undefined;
|
|
42
|
+
}, {
|
|
43
|
+
acquisitionSource?: "other" | "partner" | "searchEngine" | "socialMedia" | "referral" | "advertisement" | "preferNotToSay" | "trainingOrEvent" | null | undefined;
|
|
44
|
+
acquisitionSourceOtherText?: unknown;
|
|
45
|
+
}>;
|
|
46
|
+
export type CoachAcquisitionSource = z.infer<typeof coachAcquisitionSourceSchema>;
|
|
47
|
+
export type CoachAcquisitionSourceFields = z.infer<typeof coachAcquisitionSourceFieldsSchema>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export const coachAcquisitionSourceSchema = z.enum([
|
|
3
|
+
"searchEngine",
|
|
4
|
+
"socialMedia",
|
|
5
|
+
"referral",
|
|
6
|
+
"trainingOrEvent",
|
|
7
|
+
"partner",
|
|
8
|
+
"advertisement",
|
|
9
|
+
"other",
|
|
10
|
+
"preferNotToSay"
|
|
11
|
+
]);
|
|
12
|
+
export const coachAcquisitionSourceOptions = [
|
|
13
|
+
{ value: "searchEngine", label: "Online search" },
|
|
14
|
+
{ value: "socialMedia", label: "Social media" },
|
|
15
|
+
{ value: "referral", label: "Recommendation or referral" },
|
|
16
|
+
{ value: "trainingOrEvent", label: "Event, course, or training" },
|
|
17
|
+
{ value: "partner", label: "Partner organisation or professional community" },
|
|
18
|
+
{ value: "advertisement", label: "Advertisement" },
|
|
19
|
+
{ value: "other", label: "Other" },
|
|
20
|
+
{ value: "preferNotToSay", label: "Prefer not to say" }
|
|
21
|
+
];
|
|
22
|
+
export const normalizeCoachAcquisitionSourceOtherText = (value) => value.trim().replace(/\s+/g, " ");
|
|
23
|
+
export const coachAcquisitionSourceOtherTextSchema = z.preprocess((value) => {
|
|
24
|
+
if (value === null || value === undefined)
|
|
25
|
+
return undefined;
|
|
26
|
+
if (typeof value !== "string")
|
|
27
|
+
return value;
|
|
28
|
+
const normalized = normalizeCoachAcquisitionSourceOtherText(value);
|
|
29
|
+
return normalized.length === 0 ? undefined : normalized;
|
|
30
|
+
}, z.string().min(2).max(120).optional());
|
|
31
|
+
export const coachAcquisitionSourceFieldsSchema = z
|
|
32
|
+
.object({
|
|
33
|
+
acquisitionSource: coachAcquisitionSourceSchema.nullable().optional(),
|
|
34
|
+
acquisitionSourceOtherText: coachAcquisitionSourceOtherTextSchema
|
|
35
|
+
})
|
|
36
|
+
.superRefine((value, context) => {
|
|
37
|
+
if (value.acquisitionSource !== "other" && value.acquisitionSourceOtherText !== undefined) {
|
|
38
|
+
context.addIssue({
|
|
39
|
+
code: z.ZodIssueCode.custom,
|
|
40
|
+
path: ["acquisitionSourceOtherText"],
|
|
41
|
+
message: "Please specify is only accepted when acquisitionSource is other."
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
//# sourceMappingURL=coach-acquisition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coach-acquisition.js","sourceRoot":"","sources":["../src/coach-acquisition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,IAAI,CAAC;IACjD,cAAc;IACd,aAAa;IACb,UAAU;IACV,iBAAiB;IACjB,SAAS;IACT,eAAe;IACf,OAAO;IACP,gBAAgB;CACjB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC3C,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,eAAe,EAAE;IACjD,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,cAAc,EAAE;IAC/C,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,4BAA4B,EAAE;IAC1D,EAAE,KAAK,EAAE,iBAAiB,EAAE,KAAK,EAAE,4BAA4B,EAAE;IACjE,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,gDAAgD,EAAE;IAC7E,EAAE,KAAK,EAAE,eAAe,EAAE,KAAK,EAAE,eAAe,EAAE;IAClD,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;IAClC,EAAE,KAAK,EAAE,gBAAgB,EAAE,KAAK,EAAE,mBAAmB,EAAE;CAIvD,CAAC;AAEH,MAAM,CAAC,MAAM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ifyAfter: z.ZodNullable<z.ZodString>;
|
|
44
44
|
updatedAt: z.ZodNullable<z.ZodString>;
|
|
45
45
|
}, "strip", z.ZodTypeAny, {
|
|
46
|
-
updatedAt: string | null;
|
|
47
46
|
enabled: boolean;
|
|
47
|
+
updatedAt: string | null;
|
|
48
48
|
pushEnabled: boolean;
|
|
49
49
|
notifyAfter: string | null;
|
|
50
50
|
}, {
|
|
51
|
-
updatedAt: string | null;
|
|
52
51
|
enabled: boolean;
|
|
52
|
+
updatedAt: string | null;
|
|
53
53
|
pushEnabled: boolean;
|
|
54
54
|
notifyAfter: string | null;
|
|
55
55
|
}>;
|
|
@@ -191,13 +191,13 @@ export declare const coachActivityNotificationSummarySchema: z.ZodObject<{
|
|
|
191
191
|
notifyAfter: z.ZodNullable<z.ZodString>;
|
|
192
192
|
updatedAt: z.ZodNullable<z.ZodString>;
|
|
193
193
|
}, "strip", z.ZodTypeAny, {
|
|
194
|
-
updatedAt: string | null;
|
|
195
194
|
enabled: boolean;
|
|
195
|
+
updatedAt: string | null;
|
|
196
196
|
pushEnabled: boolean;
|
|
197
197
|
notifyAfter: string | null;
|
|
198
198
|
}, {
|
|
199
|
-
updatedAt: string | null;
|
|
200
199
|
enabled: boolean;
|
|
200
|
+
updatedAt: string | null;
|
|
201
201
|
pushEnabled: boolean;
|
|
202
202
|
notifyAfter: string | null;
|
|
203
203
|
}>;
|
|
@@ -231,8 +231,8 @@ export declare const coachActivityNotificationSummarySchema: z.ZodObject<{
|
|
|
231
231
|
}[];
|
|
232
232
|
unreadCount: number;
|
|
233
233
|
preference: {
|
|
234
|
-
updatedAt: string | null;
|
|
235
234
|
enabled: boolean;
|
|
235
|
+
updatedAt: string | null;
|
|
236
236
|
pushEnabled: boolean;
|
|
237
237
|
notifyAfter: string | null;
|
|
238
238
|
};
|
|
@@ -246,8 +246,8 @@ export declare const coachActivityNotificationSummarySchema: z.ZodObject<{
|
|
|
246
246
|
}[];
|
|
247
247
|
unreadCount: number;
|
|
248
248
|
preference: {
|
|
249
|
-
updatedAt: string | null;
|
|
250
249
|
enabled: boolean;
|
|
250
|
+
updatedAt: string | null;
|
|
251
251
|
pushEnabled: boolean;
|
|
252
252
|
notifyAfter: string | null;
|
|
253
253
|
};
|
|
@@ -322,13 +322,13 @@ export declare const coachActivityNotificationListResponseSchema: z.ZodObject<{
|
|
|
322
322
|
notifyAfter: z.ZodNullable<z.ZodString>;
|
|
323
323
|
updatedAt: z.ZodNullable<z.ZodString>;
|
|
324
324
|
}, "strip", z.ZodTypeAny, {
|
|
325
|
-
updatedAt: string | null;
|
|
326
325
|
enabled: boolean;
|
|
326
|
+
updatedAt: string | null;
|
|
327
327
|
pushEnabled: boolean;
|
|
328
328
|
notifyAfter: string | null;
|
|
329
329
|
}, {
|
|
330
|
-
updatedAt: string | null;
|
|
331
330
|
enabled: boolean;
|
|
331
|
+
updatedAt: string | null;
|
|
332
332
|
pushEnabled: boolean;
|
|
333
333
|
notifyAfter: string | null;
|
|
334
334
|
}>;
|
|
@@ -362,8 +362,8 @@ export declare const coachActivityNotificationListResponseSchema: z.ZodObject<{
|
|
|
362
362
|
}[];
|
|
363
363
|
unreadCount: number;
|
|
364
364
|
preference: {
|
|
365
|
-
updatedAt: string | null;
|
|
366
365
|
enabled: boolean;
|
|
366
|
+
updatedAt: string | null;
|
|
367
367
|
pushEnabled: boolean;
|
|
368
368
|
notifyAfter: string | null;
|
|
369
369
|
};
|
|
@@ -377,8 +377,8 @@ export declare const coachActivityNotificationListResponseSchema: z.ZodObject<{
|
|
|
377
377
|
}[];
|
|
378
378
|
unreadCount: number;
|
|
379
379
|
preference: {
|
|
380
|
-
updatedAt: string | null;
|
|
381
380
|
enabled: boolean;
|
|
381
|
+
updatedAt: string | null;
|
|
382
382
|
pushEnabled: boolean;
|
|
383
383
|
notifyAfter: string | null;
|
|
384
384
|
};
|
|
@@ -394,8 +394,8 @@ export declare const coachActivityNotificationListResponseSchema: z.ZodObject<{
|
|
|
394
394
|
}[];
|
|
395
395
|
unreadCount: number;
|
|
396
396
|
preference: {
|
|
397
|
-
updatedAt: string | null;
|
|
398
397
|
enabled: boolean;
|
|
398
|
+
updatedAt: string | null;
|
|
399
399
|
pushEnabled: boolean;
|
|
400
400
|
notifyAfter: string | null;
|
|
401
401
|
};
|
|
@@ -431,8 +431,8 @@ export declare const coachActivityNotificationListResponseSchema: z.ZodObject<{
|
|
|
431
431
|
}[];
|
|
432
432
|
unreadCount: number;
|
|
433
433
|
preference: {
|
|
434
|
-
updatedAt: string | null;
|
|
435
434
|
enabled: boolean;
|
|
435
|
+
updatedAt: string | null;
|
|
436
436
|
pushEnabled: boolean;
|
|
437
437
|
notifyAfter: string | null;
|
|
438
438
|
};
|
|
@@ -465,27 +465,27 @@ export declare const coachActivityNotificationPreferenceResponseSchema: z.ZodObj
|
|
|
465
465
|
notifyAfter: z.ZodNullable<z.ZodString>;
|
|
466
466
|
updatedAt: z.ZodNullable<z.ZodString>;
|
|
467
467
|
}, "strip", z.ZodTypeAny, {
|
|
468
|
-
updatedAt: string | null;
|
|
469
468
|
enabled: boolean;
|
|
469
|
+
updatedAt: string | null;
|
|
470
470
|
pushEnabled: boolean;
|
|
471
471
|
notifyAfter: string | null;
|
|
472
472
|
}, {
|
|
473
|
-
updatedAt: string | null;
|
|
474
473
|
enabled: boolean;
|
|
474
|
+
updatedAt: string | null;
|
|
475
475
|
pushEnabled: boolean;
|
|
476
476
|
notifyAfter: string | null;
|
|
477
477
|
}>;
|
|
478
478
|
}, "strip", z.ZodTypeAny, {
|
|
479
479
|
preference: {
|
|
480
|
-
updatedAt: string | null;
|
|
481
480
|
enabled: boolean;
|
|
481
|
+
updatedAt: string | null;
|
|
482
482
|
pushEnabled: boolean;
|
|
483
483
|
notifyAfter: string | null;
|
|
484
484
|
};
|
|
485
485
|
}, {
|
|
486
486
|
preference: {
|
|
487
|
-
updatedAt: string | null;
|
|
488
487
|
enabled: boolean;
|
|
488
|
+
updatedAt: string | null;
|
|
489
489
|
pushEnabled: boolean;
|
|
490
490
|
notifyAfter: string | null;
|
|
491
491
|
};
|