@nikthegeek/dreamsforlittles-shared 0.5.0 → 0.6.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/auth.d.ts +5 -2
- package/dist/auth.js +1 -0
- package/dist/auth.js.map +1 -1
- package/dist/coach-growth.test.js +13 -1
- package/dist/coach-growth.test.js.map +1 -1
- package/dist/coming-soon.d.ts +176 -0
- package/dist/coming-soon.js +38 -0
- package/dist/coming-soon.js.map +1 -0
- package/dist/coming-soon.test.d.ts +1 -0
- package/dist/coming-soon.test.js +40 -0
- package/dist/coming-soon.test.js.map +1 -0
- package/dist/enums.d.ts +1 -1
- package/dist/enums.js +3 -0
- package/dist/enums.js.map +1 -1
- package/dist/family-growth.d.ts +339 -0
- package/dist/family-growth.js +180 -0
- package/dist/family-growth.js.map +1 -0
- package/dist/family-growth.test.d.ts +1 -0
- package/dist/family-growth.test.js +215 -0
- package/dist/family-growth.test.js.map +1 -0
- package/dist/family-profile-artifacts.d.ts +58 -58
- package/dist/getting-started-guides.d.ts +6 -6
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/product-analytics.d.ts +76 -76
- package/dist/support-faqs.d.ts +12 -12
- package/package.json +1 -1
package/dist/auth.d.ts
CHANGED
|
@@ -55,6 +55,7 @@ export declare const onboardCoachRequestSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
55
55
|
name: z.ZodString;
|
|
56
56
|
displayName: z.ZodOptional<z.ZodString>;
|
|
57
57
|
email: z.ZodOptional<z.ZodString>;
|
|
58
|
+
businessCountryCode: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEnum<["AD", "AE", "AF", "AG", "AI", "AL", "AM", "AO", "AQ", "AR", "AS", "AT", "AU", "AW", "AX", "AZ", "BA", "BB", "BD", "BE", "BF", "BG", "BH", "BI", "BJ", "BL", "BM", "BN", "BO", "BQ", "BR", "BS", "BT", "BV", "BW", "BY", "BZ", "CA", "CC", "CD", "CF", "CG", "CH", "CI", "CK", "CL", "CM", "CN", "CO", "CR", "CU", "CV", "CW", "CX", "CY", "CZ", "DE", "DJ", "DK", "DM", "DO", "DZ", "EC", "EE", "EG", "EH", "ER", "ES", "ET", "FI", "FJ", "FK", "FM", "FO", "FR", "GA", "GB", "GD", "GE", "GF", "GG", "GH", "GI", "GL", "GM", "GN", "GP", "GQ", "GR", "GS", "GT", "GU", "GW", "GY", "HK", "HM", "HN", "HR", "HT", "HU", "ID", "IE", "IL", "IM", "IN", "IO", "IQ", "IR", "IS", "IT", "JE", "JM", "JO", "JP", "KE", "KG", "KH", "KI", "KM", "KN", "KP", "KR", "KW", "KY", "KZ", "LA", "LB", "LC", "LI", "LK", "LR", "LS", "LT", "LU", "LV", "LY", "MA", "MC", "MD", "ME", "MF", "MG", "MH", "MK", "ML", "MM", "MN", "MO", "MP", "MQ", "MR", "MS", "MT", "MU", "MV", "MW", "MX", "MY", "MZ", "NA", "NC", "NE", "NF", "NG", "NI", "NL", "NO", "NP", "NR", "NU", "NZ", "OM", "PA", "PE", "PF", "PG", "PH", "PK", "PL", "PM", "PN", "PR", "PS", "PT", "PW", "PY", "QA", "RE", "RO", "RS", "RU", "RW", "SA", "SB", "SC", "SD", "SE", "SG", "SH", "SI", "SJ", "SK", "SL", "SM", "SN", "SO", "SR", "SS", "ST", "SV", "SX", "SY", "SZ", "TC", "TD", "TF", "TG", "TH", "TJ", "TK", "TL", "TM", "TN", "TO", "TR", "TT", "TV", "TW", "TZ", "UA", "UG", "UM", "US", "UY", "UZ", "VA", "VC", "VE", "VG", "VI", "VN", "VU", "WF", "WS", "YE", "YT", "ZA", "ZM", "ZW"]>, "AD" | "AE" | "AF" | "AG" | "AI" | "AL" | "AM" | "AO" | "AQ" | "AR" | "AS" | "AT" | "AU" | "AW" | "AX" | "AZ" | "BA" | "BB" | "BD" | "BE" | "BF" | "BG" | "BH" | "BI" | "BJ" | "BL" | "BM" | "BN" | "BO" | "BQ" | "BR" | "BS" | "BT" | "BV" | "BW" | "BY" | "BZ" | "CA" | "CC" | "CD" | "CF" | "CG" | "CH" | "CI" | "CK" | "CL" | "CM" | "CN" | "CO" | "CR" | "CU" | "CV" | "CW" | "CX" | "CY" | "CZ" | "DE" | "DJ" | "DK" | "DM" | "DO" | "DZ" | "EC" | "EE" | "EG" | "EH" | "ER" | "ES" | "ET" | "FI" | "FJ" | "FK" | "FM" | "FO" | "FR" | "GA" | "GB" | "GD" | "GE" | "GF" | "GG" | "GH" | "GI" | "GL" | "GM" | "GN" | "GP" | "GQ" | "GR" | "GS" | "GT" | "GU" | "GW" | "GY" | "HK" | "HM" | "HN" | "HR" | "HT" | "HU" | "ID" | "IE" | "IL" | "IM" | "IN" | "IO" | "IQ" | "IR" | "IS" | "IT" | "JE" | "JM" | "JO" | "JP" | "KE" | "KG" | "KH" | "KI" | "KM" | "KN" | "KP" | "KR" | "KW" | "KY" | "KZ" | "LA" | "LB" | "LC" | "LI" | "LK" | "LR" | "LS" | "LT" | "LU" | "LV" | "LY" | "MA" | "MC" | "MD" | "ME" | "MF" | "MG" | "MH" | "MK" | "ML" | "MM" | "MN" | "MO" | "MP" | "MQ" | "MR" | "MS" | "MT" | "MU" | "MV" | "MW" | "MX" | "MY" | "MZ" | "NA" | "NC" | "NE" | "NF" | "NG" | "NI" | "NL" | "NO" | "NP" | "NR" | "NU" | "NZ" | "OM" | "PA" | "PE" | "PF" | "PG" | "PH" | "PK" | "PL" | "PM" | "PN" | "PR" | "PS" | "PT" | "PW" | "PY" | "QA" | "RE" | "RO" | "RS" | "RU" | "RW" | "SA" | "SB" | "SC" | "SD" | "SE" | "SG" | "SH" | "SI" | "SJ" | "SK" | "SL" | "SM" | "SN" | "SO" | "SR" | "SS" | "ST" | "SV" | "SX" | "SY" | "SZ" | "TC" | "TD" | "TF" | "TG" | "TH" | "TJ" | "TK" | "TL" | "TM" | "TN" | "TO" | "TR" | "TT" | "TV" | "TW" | "TZ" | "UA" | "UG" | "UM" | "US" | "UY" | "UZ" | "VA" | "VC" | "VE" | "VG" | "VI" | "VN" | "VU" | "WF" | "WS" | "YE" | "YT" | "ZA" | "ZM" | "ZW", unknown>>>;
|
|
58
59
|
communicationPreferences: z.ZodOptional<z.ZodObject<{
|
|
59
60
|
hintsTips: z.ZodOptional<z.ZodBoolean>;
|
|
60
61
|
appUpdatesNewFeatures: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -77,6 +78,7 @@ export declare const onboardCoachRequestSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
77
78
|
promotionsOffers?: boolean | undefined;
|
|
78
79
|
} | undefined;
|
|
79
80
|
displayName?: string | undefined;
|
|
81
|
+
businessCountryCode?: "AD" | "AE" | "AF" | "AG" | "AI" | "AL" | "AM" | "AO" | "AQ" | "AR" | "AS" | "AT" | "AU" | "AW" | "AX" | "AZ" | "BA" | "BB" | "BD" | "BE" | "BF" | "BG" | "BH" | "BI" | "BJ" | "BL" | "BM" | "BN" | "BO" | "BQ" | "BR" | "BS" | "BT" | "BV" | "BW" | "BY" | "BZ" | "CA" | "CC" | "CD" | "CF" | "CG" | "CH" | "CI" | "CK" | "CL" | "CM" | "CN" | "CO" | "CR" | "CU" | "CV" | "CW" | "CX" | "CY" | "CZ" | "DE" | "DJ" | "DK" | "DM" | "DO" | "DZ" | "EC" | "EE" | "EG" | "EH" | "ER" | "ES" | "ET" | "FI" | "FJ" | "FK" | "FM" | "FO" | "FR" | "GA" | "GB" | "GD" | "GE" | "GF" | "GG" | "GH" | "GI" | "GL" | "GM" | "GN" | "GP" | "GQ" | "GR" | "GS" | "GT" | "GU" | "GW" | "GY" | "HK" | "HM" | "HN" | "HR" | "HT" | "HU" | "ID" | "IE" | "IL" | "IM" | "IN" | "IO" | "IQ" | "IR" | "IS" | "IT" | "JE" | "JM" | "JO" | "JP" | "KE" | "KG" | "KH" | "KI" | "KM" | "KN" | "KP" | "KR" | "KW" | "KY" | "KZ" | "LA" | "LB" | "LC" | "LI" | "LK" | "LR" | "LS" | "LT" | "LU" | "LV" | "LY" | "MA" | "MC" | "MD" | "ME" | "MF" | "MG" | "MH" | "MK" | "ML" | "MM" | "MN" | "MO" | "MP" | "MQ" | "MR" | "MS" | "MT" | "MU" | "MV" | "MW" | "MX" | "MY" | "MZ" | "NA" | "NC" | "NE" | "NF" | "NG" | "NI" | "NL" | "NO" | "NP" | "NR" | "NU" | "NZ" | "OM" | "PA" | "PE" | "PF" | "PG" | "PH" | "PK" | "PL" | "PM" | "PN" | "PR" | "PS" | "PT" | "PW" | "PY" | "QA" | "RE" | "RO" | "RS" | "RU" | "RW" | "SA" | "SB" | "SC" | "SD" | "SE" | "SG" | "SH" | "SI" | "SJ" | "SK" | "SL" | "SM" | "SN" | "SO" | "SR" | "SS" | "ST" | "SV" | "SX" | "SY" | "SZ" | "TC" | "TD" | "TF" | "TG" | "TH" | "TJ" | "TK" | "TL" | "TM" | "TN" | "TO" | "TR" | "TT" | "TV" | "TW" | "TZ" | "UA" | "UG" | "UM" | "US" | "UY" | "UZ" | "VA" | "VC" | "VE" | "VG" | "VI" | "VN" | "VU" | "WF" | "WS" | "YE" | "YT" | "ZA" | "ZM" | "ZW" | null | undefined;
|
|
80
82
|
}, {
|
|
81
83
|
name: string;
|
|
82
84
|
email?: string | undefined;
|
|
@@ -86,6 +88,7 @@ export declare const onboardCoachRequestSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
86
88
|
promotionsOffers?: boolean | undefined;
|
|
87
89
|
} | undefined;
|
|
88
90
|
displayName?: string | undefined;
|
|
91
|
+
businessCountryCode?: unknown;
|
|
89
92
|
}>, z.ZodEffects<z.ZodObject<{
|
|
90
93
|
acquisitionSource: z.ZodOptional<z.ZodNullable<z.ZodEnum<["searchEngine", "socialMedia", "referral", "trainingOrEvent", "partner", "advertisement", "other", "preferNotToSay"]>>>;
|
|
91
94
|
acquisitionSourceOtherText: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
@@ -114,15 +117,15 @@ export declare const updateProfileRequestSchema: z.ZodObject<{
|
|
|
114
117
|
profileAssetId?: string | null | undefined;
|
|
115
118
|
relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
|
|
116
119
|
timeZone?: string | null | undefined;
|
|
117
|
-
businessName?: string | undefined;
|
|
118
120
|
businessCountryCode?: "AD" | "AE" | "AF" | "AG" | "AI" | "AL" | "AM" | "AO" | "AQ" | "AR" | "AS" | "AT" | "AU" | "AW" | "AX" | "AZ" | "BA" | "BB" | "BD" | "BE" | "BF" | "BG" | "BH" | "BI" | "BJ" | "BL" | "BM" | "BN" | "BO" | "BQ" | "BR" | "BS" | "BT" | "BV" | "BW" | "BY" | "BZ" | "CA" | "CC" | "CD" | "CF" | "CG" | "CH" | "CI" | "CK" | "CL" | "CM" | "CN" | "CO" | "CR" | "CU" | "CV" | "CW" | "CX" | "CY" | "CZ" | "DE" | "DJ" | "DK" | "DM" | "DO" | "DZ" | "EC" | "EE" | "EG" | "EH" | "ER" | "ES" | "ET" | "FI" | "FJ" | "FK" | "FM" | "FO" | "FR" | "GA" | "GB" | "GD" | "GE" | "GF" | "GG" | "GH" | "GI" | "GL" | "GM" | "GN" | "GP" | "GQ" | "GR" | "GS" | "GT" | "GU" | "GW" | "GY" | "HK" | "HM" | "HN" | "HR" | "HT" | "HU" | "ID" | "IE" | "IL" | "IM" | "IN" | "IO" | "IQ" | "IR" | "IS" | "IT" | "JE" | "JM" | "JO" | "JP" | "KE" | "KG" | "KH" | "KI" | "KM" | "KN" | "KP" | "KR" | "KW" | "KY" | "KZ" | "LA" | "LB" | "LC" | "LI" | "LK" | "LR" | "LS" | "LT" | "LU" | "LV" | "LY" | "MA" | "MC" | "MD" | "ME" | "MF" | "MG" | "MH" | "MK" | "ML" | "MM" | "MN" | "MO" | "MP" | "MQ" | "MR" | "MS" | "MT" | "MU" | "MV" | "MW" | "MX" | "MY" | "MZ" | "NA" | "NC" | "NE" | "NF" | "NG" | "NI" | "NL" | "NO" | "NP" | "NR" | "NU" | "NZ" | "OM" | "PA" | "PE" | "PF" | "PG" | "PH" | "PK" | "PL" | "PM" | "PN" | "PR" | "PS" | "PT" | "PW" | "PY" | "QA" | "RE" | "RO" | "RS" | "RU" | "RW" | "SA" | "SB" | "SC" | "SD" | "SE" | "SG" | "SH" | "SI" | "SJ" | "SK" | "SL" | "SM" | "SN" | "SO" | "SR" | "SS" | "ST" | "SV" | "SX" | "SY" | "SZ" | "TC" | "TD" | "TF" | "TG" | "TH" | "TJ" | "TK" | "TL" | "TM" | "TN" | "TO" | "TR" | "TT" | "TV" | "TW" | "TZ" | "UA" | "UG" | "UM" | "US" | "UY" | "UZ" | "VA" | "VC" | "VE" | "VG" | "VI" | "VN" | "VU" | "WF" | "WS" | "YE" | "YT" | "ZA" | "ZM" | "ZW" | null | undefined;
|
|
121
|
+
businessName?: string | undefined;
|
|
119
122
|
}, {
|
|
120
123
|
name: string;
|
|
121
124
|
profileAssetId?: string | null | undefined;
|
|
122
125
|
relationship?: "mother" | "father" | "grandfather" | "grandmother" | "uncle" | "aunt" | "guardian" | "other" | null | undefined;
|
|
123
126
|
timeZone?: string | null | undefined;
|
|
124
|
-
businessName?: string | undefined;
|
|
125
127
|
businessCountryCode?: unknown;
|
|
128
|
+
businessName?: string | undefined;
|
|
126
129
|
}>;
|
|
127
130
|
export declare const deleteAccountRequestSchema: z.ZodObject<{
|
|
128
131
|
email: z.ZodString;
|
package/dist/auth.js
CHANGED
|
@@ -18,6 +18,7 @@ export const onboardCoachRequestSchema = z
|
|
|
18
18
|
name: z.string().min(1),
|
|
19
19
|
displayName: z.string().min(1).optional(),
|
|
20
20
|
email: z.string().email().optional(),
|
|
21
|
+
businessCountryCode: businessCountryCodeSchema.nullable().optional(),
|
|
21
22
|
communicationPreferences: communicationPreferencesSchema.partial().optional()
|
|
22
23
|
})
|
|
23
24
|
.and(coachAcquisitionSourceFieldsSchema);
|
package/dist/auth.js.map
CHANGED
|
@@ -1 +1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,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,EAAE;CACjC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC;CAC3B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,OAAO,EAAE,oBAAoB;CAC9B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,aAAa,EAAE,QAAQ;IACvB,iBAAiB,EAAE,QAAQ;IAC3B,kBAAkB,EAAE,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC;CACtC,CAAC,CAAC;AAEH,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
|
|
@@ -44,7 +44,19 @@ describe("coach growth shared contracts", () => {
|
|
|
44
44
|
acquisitionSource: "trainingOrEvent"
|
|
45
45
|
})).toThrow();
|
|
46
46
|
});
|
|
47
|
-
it("normalizes an optional coach business country
|
|
47
|
+
it("normalizes an optional coach business country during onboarding and profile updates", () => {
|
|
48
|
+
expect(onboardCoachRequestSchema.parse({
|
|
49
|
+
name: "Coach",
|
|
50
|
+
businessCountryCode: " gr "
|
|
51
|
+
}).businessCountryCode).toBe("GR");
|
|
52
|
+
expect(onboardCoachRequestSchema.parse({
|
|
53
|
+
name: "Coach",
|
|
54
|
+
businessCountryCode: null
|
|
55
|
+
}).businessCountryCode).toBeNull();
|
|
56
|
+
expect(() => onboardCoachRequestSchema.parse({
|
|
57
|
+
name: "Coach",
|
|
58
|
+
businessCountryCode: "ZZ"
|
|
59
|
+
})).toThrow();
|
|
48
60
|
expect(updateProfileRequestSchema.parse({
|
|
49
61
|
name: "Coach",
|
|
50
62
|
businessCountryCode: "gr"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coach-growth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KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QAC7E,MAAM,CAAC,GAAG,EAAE,CAAC,gCAAgC,CAAC,KAAK,CAAC;YAClD,GAAG,SAAS;YACZ,gBAAgB,EAAE,SAAS;SAC5B,CAAC,CAAC,CAAC,OAAO,CAAC,iCAAiC,CAAC,CAAC;QAC/C,MAAM,CAAC,GAAG,EAAE,CAAC,gCAAgC,CAAC,KAAK,CAAC;YAClD,GAAG,SAAS;YACZ,UAAU,EAAE,IAAI;SACjB,CAAC,CAAC,CAAC,OAAO,CAAC,6CAA6C,CAAC,CAAC;IAC7D,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const comingSoonItemAudienceSchema: z.ZodEnum<["family", "coach", "both"]>;
|
|
3
|
+
export declare const comingSoonItemQueryAudienceSchema: z.ZodEnum<["family", "coach"]>;
|
|
4
|
+
export declare const comingSoonItemsQuerySchema: z.ZodObject<{
|
|
5
|
+
audience: z.ZodOptional<z.ZodEnum<["family", "coach"]>>;
|
|
6
|
+
}, "strict", z.ZodTypeAny, {
|
|
7
|
+
audience?: "family" | "coach" | undefined;
|
|
8
|
+
}, {
|
|
9
|
+
audience?: "family" | "coach" | undefined;
|
|
10
|
+
}>;
|
|
11
|
+
export declare const comingSoonItemSchema: z.ZodObject<{
|
|
12
|
+
id: z.ZodString;
|
|
13
|
+
audience: z.ZodEnum<["family", "coach", "both"]>;
|
|
14
|
+
title: z.ZodString;
|
|
15
|
+
description: z.ZodString;
|
|
16
|
+
sortOrder: z.ZodNumber;
|
|
17
|
+
isPublished: z.ZodBoolean;
|
|
18
|
+
createdAt: z.ZodString;
|
|
19
|
+
updatedAt: z.ZodString;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
id: string;
|
|
22
|
+
createdAt: string;
|
|
23
|
+
updatedAt: string;
|
|
24
|
+
title: string;
|
|
25
|
+
description: string;
|
|
26
|
+
audience: "family" | "coach" | "both";
|
|
27
|
+
sortOrder: number;
|
|
28
|
+
isPublished: boolean;
|
|
29
|
+
}, {
|
|
30
|
+
id: string;
|
|
31
|
+
createdAt: string;
|
|
32
|
+
updatedAt: string;
|
|
33
|
+
title: string;
|
|
34
|
+
description: string;
|
|
35
|
+
audience: "family" | "coach" | "both";
|
|
36
|
+
sortOrder: number;
|
|
37
|
+
isPublished: boolean;
|
|
38
|
+
}>;
|
|
39
|
+
export declare const comingSoonItemWriteRequestSchema: z.ZodObject<{
|
|
40
|
+
audience: z.ZodEnum<["family", "coach", "both"]>;
|
|
41
|
+
title: z.ZodString;
|
|
42
|
+
description: z.ZodString;
|
|
43
|
+
sortOrder: z.ZodDefault<z.ZodNumber>;
|
|
44
|
+
isPublished: z.ZodDefault<z.ZodBoolean>;
|
|
45
|
+
}, "strict", z.ZodTypeAny, {
|
|
46
|
+
title: string;
|
|
47
|
+
description: string;
|
|
48
|
+
audience: "family" | "coach" | "both";
|
|
49
|
+
sortOrder: number;
|
|
50
|
+
isPublished: boolean;
|
|
51
|
+
}, {
|
|
52
|
+
title: string;
|
|
53
|
+
description: string;
|
|
54
|
+
audience: "family" | "coach" | "both";
|
|
55
|
+
sortOrder?: number | undefined;
|
|
56
|
+
isPublished?: boolean | undefined;
|
|
57
|
+
}>;
|
|
58
|
+
export declare const comingSoonItemsResponseSchema: z.ZodObject<{
|
|
59
|
+
items: z.ZodArray<z.ZodObject<{
|
|
60
|
+
id: z.ZodString;
|
|
61
|
+
audience: z.ZodEnum<["family", "coach", "both"]>;
|
|
62
|
+
title: z.ZodString;
|
|
63
|
+
description: z.ZodString;
|
|
64
|
+
sortOrder: z.ZodNumber;
|
|
65
|
+
isPublished: z.ZodBoolean;
|
|
66
|
+
createdAt: z.ZodString;
|
|
67
|
+
updatedAt: z.ZodString;
|
|
68
|
+
}, "strip", z.ZodTypeAny, {
|
|
69
|
+
id: string;
|
|
70
|
+
createdAt: string;
|
|
71
|
+
updatedAt: string;
|
|
72
|
+
title: string;
|
|
73
|
+
description: string;
|
|
74
|
+
audience: "family" | "coach" | "both";
|
|
75
|
+
sortOrder: number;
|
|
76
|
+
isPublished: boolean;
|
|
77
|
+
}, {
|
|
78
|
+
id: string;
|
|
79
|
+
createdAt: string;
|
|
80
|
+
updatedAt: string;
|
|
81
|
+
title: string;
|
|
82
|
+
description: string;
|
|
83
|
+
audience: "family" | "coach" | "both";
|
|
84
|
+
sortOrder: number;
|
|
85
|
+
isPublished: boolean;
|
|
86
|
+
}>, "many">;
|
|
87
|
+
}, "strip", z.ZodTypeAny, {
|
|
88
|
+
items: {
|
|
89
|
+
id: string;
|
|
90
|
+
createdAt: string;
|
|
91
|
+
updatedAt: string;
|
|
92
|
+
title: string;
|
|
93
|
+
description: string;
|
|
94
|
+
audience: "family" | "coach" | "both";
|
|
95
|
+
sortOrder: number;
|
|
96
|
+
isPublished: boolean;
|
|
97
|
+
}[];
|
|
98
|
+
}, {
|
|
99
|
+
items: {
|
|
100
|
+
id: string;
|
|
101
|
+
createdAt: string;
|
|
102
|
+
updatedAt: string;
|
|
103
|
+
title: string;
|
|
104
|
+
description: string;
|
|
105
|
+
audience: "family" | "coach" | "both";
|
|
106
|
+
sortOrder: number;
|
|
107
|
+
isPublished: boolean;
|
|
108
|
+
}[];
|
|
109
|
+
}>;
|
|
110
|
+
export declare const comingSoonItemResponseSchema: z.ZodObject<{
|
|
111
|
+
item: z.ZodObject<{
|
|
112
|
+
id: z.ZodString;
|
|
113
|
+
audience: z.ZodEnum<["family", "coach", "both"]>;
|
|
114
|
+
title: z.ZodString;
|
|
115
|
+
description: z.ZodString;
|
|
116
|
+
sortOrder: z.ZodNumber;
|
|
117
|
+
isPublished: z.ZodBoolean;
|
|
118
|
+
createdAt: z.ZodString;
|
|
119
|
+
updatedAt: z.ZodString;
|
|
120
|
+
}, "strip", z.ZodTypeAny, {
|
|
121
|
+
id: string;
|
|
122
|
+
createdAt: string;
|
|
123
|
+
updatedAt: string;
|
|
124
|
+
title: string;
|
|
125
|
+
description: string;
|
|
126
|
+
audience: "family" | "coach" | "both";
|
|
127
|
+
sortOrder: number;
|
|
128
|
+
isPublished: boolean;
|
|
129
|
+
}, {
|
|
130
|
+
id: string;
|
|
131
|
+
createdAt: string;
|
|
132
|
+
updatedAt: string;
|
|
133
|
+
title: string;
|
|
134
|
+
description: string;
|
|
135
|
+
audience: "family" | "coach" | "both";
|
|
136
|
+
sortOrder: number;
|
|
137
|
+
isPublished: boolean;
|
|
138
|
+
}>;
|
|
139
|
+
}, "strip", z.ZodTypeAny, {
|
|
140
|
+
item: {
|
|
141
|
+
id: string;
|
|
142
|
+
createdAt: string;
|
|
143
|
+
updatedAt: string;
|
|
144
|
+
title: string;
|
|
145
|
+
description: string;
|
|
146
|
+
audience: "family" | "coach" | "both";
|
|
147
|
+
sortOrder: number;
|
|
148
|
+
isPublished: boolean;
|
|
149
|
+
};
|
|
150
|
+
}, {
|
|
151
|
+
item: {
|
|
152
|
+
id: string;
|
|
153
|
+
createdAt: string;
|
|
154
|
+
updatedAt: string;
|
|
155
|
+
title: string;
|
|
156
|
+
description: string;
|
|
157
|
+
audience: "family" | "coach" | "both";
|
|
158
|
+
sortOrder: number;
|
|
159
|
+
isPublished: boolean;
|
|
160
|
+
};
|
|
161
|
+
}>;
|
|
162
|
+
export declare const comingSoonItemDeleteResponseSchema: z.ZodObject<{
|
|
163
|
+
deleted: z.ZodLiteral<true>;
|
|
164
|
+
}, "strip", z.ZodTypeAny, {
|
|
165
|
+
deleted: true;
|
|
166
|
+
}, {
|
|
167
|
+
deleted: true;
|
|
168
|
+
}>;
|
|
169
|
+
export type ComingSoonItemAudience = z.infer<typeof comingSoonItemAudienceSchema>;
|
|
170
|
+
export type ComingSoonItemQueryAudience = z.infer<typeof comingSoonItemQueryAudienceSchema>;
|
|
171
|
+
export type ComingSoonItemsQuery = z.infer<typeof comingSoonItemsQuerySchema>;
|
|
172
|
+
export type ComingSoonItem = z.infer<typeof comingSoonItemSchema>;
|
|
173
|
+
export type ComingSoonItemWriteRequest = z.infer<typeof comingSoonItemWriteRequestSchema>;
|
|
174
|
+
export type ComingSoonItemsResponse = z.infer<typeof comingSoonItemsResponseSchema>;
|
|
175
|
+
export type ComingSoonItemResponse = z.infer<typeof comingSoonItemResponseSchema>;
|
|
176
|
+
export type ComingSoonItemDeleteResponse = z.infer<typeof comingSoonItemDeleteResponseSchema>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { idSchema, isoDateStringSchema } from "./api.js";
|
|
3
|
+
export const comingSoonItemAudienceSchema = z.enum(["family", "coach", "both"]);
|
|
4
|
+
export const comingSoonItemQueryAudienceSchema = z.enum(["family", "coach"]);
|
|
5
|
+
export const comingSoonItemsQuerySchema = z
|
|
6
|
+
.object({
|
|
7
|
+
audience: comingSoonItemQueryAudienceSchema.optional()
|
|
8
|
+
})
|
|
9
|
+
.strict();
|
|
10
|
+
export const comingSoonItemSchema = z.object({
|
|
11
|
+
id: idSchema,
|
|
12
|
+
audience: comingSoonItemAudienceSchema,
|
|
13
|
+
title: z.string().min(1).max(120),
|
|
14
|
+
description: z.string().min(1).max(1000),
|
|
15
|
+
sortOrder: z.number().int().nonnegative().max(100_000),
|
|
16
|
+
isPublished: z.boolean(),
|
|
17
|
+
createdAt: isoDateStringSchema,
|
|
18
|
+
updatedAt: isoDateStringSchema
|
|
19
|
+
});
|
|
20
|
+
export const comingSoonItemWriteRequestSchema = z
|
|
21
|
+
.object({
|
|
22
|
+
audience: comingSoonItemAudienceSchema,
|
|
23
|
+
title: z.string().trim().min(1).max(120),
|
|
24
|
+
description: z.string().trim().min(1).max(1000),
|
|
25
|
+
sortOrder: z.number().int().nonnegative().max(100_000).default(0),
|
|
26
|
+
isPublished: z.boolean().default(false)
|
|
27
|
+
})
|
|
28
|
+
.strict();
|
|
29
|
+
export const comingSoonItemsResponseSchema = z.object({
|
|
30
|
+
items: z.array(comingSoonItemSchema)
|
|
31
|
+
});
|
|
32
|
+
export const comingSoonItemResponseSchema = z.object({
|
|
33
|
+
item: comingSoonItemSchema
|
|
34
|
+
});
|
|
35
|
+
export const comingSoonItemDeleteResponseSchema = z.object({
|
|
36
|
+
deleted: z.literal(true)
|
|
37
|
+
});
|
|
38
|
+
//# sourceMappingURL=coming-soon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coming-soon.js","sourceRoot":"","sources":["../src/coming-soon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAEzD,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC;AAChF,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;AAE7E,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC;KACxC,MAAM,CAAC;IACN,QAAQ,EAAE,iCAAiC,CAAC,QAAQ,EAAE;CACvD,CAAC;KACD,MAAM,EAAE,CAAC;AAEZ,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,EAAE,EAAE,QAAQ;IACZ,QAAQ,EAAE,4BAA4B;IACtC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IACjC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC;IACxC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC,GA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, comingSoonItemsQuerySchema } from "./coming-soon.js";
|
|
3
|
+
describe("coming soon contracts", () => {
|
|
4
|
+
it("normalizes text and applies safe draft defaults", () => {
|
|
5
|
+
expect(comingSoonItemWriteRequestSchema.parse({
|
|
6
|
+
audience: "both",
|
|
7
|
+
title: " Sleep trends ",
|
|
8
|
+
description: " See longer-term sleep patterns. "
|
|
9
|
+
})).toEqual({
|
|
10
|
+
audience: "both",
|
|
11
|
+
title: "Sleep trends",
|
|
12
|
+
description: "See longer-term sleep patterns.",
|
|
13
|
+
sortOrder: 0,
|
|
14
|
+
isPublished: false
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
it("allows clients to request only their family or coach audience", () => {
|
|
18
|
+
expect(comingSoonItemsQuerySchema.parse({ audience: "family" })).toEqual({
|
|
19
|
+
audience: "family"
|
|
20
|
+
});
|
|
21
|
+
expect(comingSoonItemsQuerySchema.parse({ audience: "coach" })).toEqual({
|
|
22
|
+
audience: "coach"
|
|
23
|
+
});
|
|
24
|
+
expect(() => comingSoonItemsQuerySchema.parse({ audience: "both" })).toThrow();
|
|
25
|
+
expect(() => comingSoonItemsQuerySchema.parse({ audience: "family", extra: true })).toThrow();
|
|
26
|
+
});
|
|
27
|
+
it("rejects empty, oversized, and invalidly ordered records", () => {
|
|
28
|
+
const valid = {
|
|
29
|
+
audience: "family",
|
|
30
|
+
title: "New analysis",
|
|
31
|
+
description: "More insight into recent sleep.",
|
|
32
|
+
sortOrder: 10,
|
|
33
|
+
isPublished: true
|
|
34
|
+
};
|
|
35
|
+
expect(() => comingSoonItemWriteRequestSchema.parse({ ...valid, title: " " })).toThrow();
|
|
36
|
+
expect(() => comingSoonItemWriteRequestSchema.parse({ ...valid, description: "x".repeat(1001) })).toThrow();
|
|
37
|
+
expect(() => comingSoonItemWriteRequestSchema.parse({ ...valid, sortOrder: -1 })).toThrow();
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
//# sourceMappingURL=coming-soon.test.js.map
|
|
@@ -0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E,IAAI,EAAE,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;IAChG,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,yDAAyD,EAAE,GAAG,EAAE;QACjE,MAAM,KAAK,GAAG;YACZ,QAAQ,EAAE,QAAQ;YAClB,KAAK,EAAE,cAAc;YACrB,WAAW,EAAE,iCAAiC;YAC9C,SAAS,EAAE,EAAE;YACb,WAAW,EAAE,IAAI;SAClB,CAAC;QAEF,MAAM,CAAC,GAAG,EAAE,CAAC,gCAAgC,CAAC,KAAK,CAAC,EAAE,GAAG,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;QACzF,MAAM,CAAC,GAAG,EAAE,CACV,gCAAgC,CAAC,KAAK,CAAC,EAAE,GAAG,KAAK,EAAE,WAAW,EAAE,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CACpF,CAAC,OAAO,EAAE,CAAC;QACZ,MAAM,CAAC,GAAG,EAAE,CACV,gCAAgC,CAAC,KAAK,CAAC,EAAE,GAAG,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC,EAAE,CAAC,CACpE,CAAC,OAAO,EAAE,CAAC;IACd,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/dist/enums.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export declare const entitlementSourceSchema: z.ZodEnum<["directSubscription", "
|
|
|
14
14
|
export declare const subscriptionStatusSchema: z.ZodEnum<["active", "trialing", "pastDue", "canceled", "suspended"]>;
|
|
15
15
|
export declare const activityTypeSchema: z.ZodEnum<["breastfeed", "bottles", "sleep", "nappies", "pumping", "medication", "solids"]>;
|
|
16
16
|
export declare const activityTypes: ["breastfeed", "bottles", "sleep", "nappies", "pumping", "medication", "solids"];
|
|
17
|
-
export declare const auditEventTypeSchema: z.ZodEnum<["inviteCode.created", "inviteCode.redeemed", "coachInvite.storeSubscriptionCheckFailed", "coachInvite.storeSubscriptionConflict", "coachInvite.storeSubscriptionAcknowledged", "familyInvitation.created", "familyInvitation.accepted", "familyInvitation.declined", "familyInvitation.revoked", "assignment.created", "assignment.revoked", "assignment.restored", "assignment.transferred", "entitlement.created", "entitlement.updated", "entitlement.revoked", "entitlement.billingInactive", "coachSubscription.updated", "mobileWebRelease.created", "mobileWebRelease.updated", "nativeAppUpdatePolicy.created", "nativeAppUpdatePolicy.updated", "notificationBanner.created", "notificationBanner.updated", "notificationBanner.statusUpdated", "notificationBanner.deleted", "coachActivityNotifications.globalPreferenceUpdated", "coachActivityNotifications.familyPreferenceUpdated", "familyLog.updatedByCoach", "coachPrivateNote.created", "coachPrivateNote.updated", "coachPrivateNote.deleted", "baby.updatedByCoach", "ownerViewAsCoach.started", "family.timeZone.updated", "coachFamilyChat.conversationCreated", "coachFamilyChat.participantPreferenceUpdated", "coachFamilyChat.conversationClosed", "coachFamilyChat.contentPurged", "coachFamilyChat.ownerViewed", "coachFamilyChat.moderationUpdated"]>;
|
|
17
|
+
export declare const auditEventTypeSchema: z.ZodEnum<["inviteCode.created", "inviteCode.redeemed", "coachInvite.storeSubscriptionCheckFailed", "coachInvite.storeSubscriptionConflict", "coachInvite.storeSubscriptionAcknowledged", "familyInvitation.created", "familyInvitation.accepted", "familyInvitation.declined", "familyInvitation.revoked", "assignment.created", "assignment.revoked", "assignment.restored", "assignment.transferred", "entitlement.created", "entitlement.updated", "entitlement.revoked", "entitlement.billingInactive", "coachSubscription.updated", "mobileWebRelease.created", "mobileWebRelease.updated", "nativeAppUpdatePolicy.created", "nativeAppUpdatePolicy.updated", "notificationBanner.created", "notificationBanner.updated", "notificationBanner.statusUpdated", "notificationBanner.deleted", "comingSoonItem.created", "comingSoonItem.updated", "comingSoonItem.deleted", "coachActivityNotifications.globalPreferenceUpdated", "coachActivityNotifications.familyPreferenceUpdated", "familyLog.updatedByCoach", "coachPrivateNote.created", "coachPrivateNote.updated", "coachPrivateNote.deleted", "baby.updatedByCoach", "ownerViewAsCoach.started", "family.timeZone.updated", "coachFamilyChat.conversationCreated", "coachFamilyChat.participantPreferenceUpdated", "coachFamilyChat.conversationClosed", "coachFamilyChat.contentPurged", "coachFamilyChat.ownerViewed", "coachFamilyChat.moderationUpdated"]>;
|
|
18
18
|
export type UserRole = z.infer<typeof userRoleSchema>;
|
|
19
19
|
export type OrganizationType = z.infer<typeof organizationTypeSchema>;
|
|
20
20
|
export type OrganizationStatus = z.infer<typeof organizationStatusSchema>;
|
package/dist/enums.js
CHANGED
|
@@ -109,6 +109,9 @@ export const auditEventTypeSchema = z.enum([
|
|
|
109
109
|
"notificationBanner.updated",
|
|
110
110
|
"notificationBanner.statusUpdated",
|
|
111
111
|
"notificationBanner.deleted",
|
|
112
|
+
"comingSoonItem.created",
|
|
113
|
+
"comingSoonItem.updated",
|
|
114
|
+
"comingSoonItem.deleted",
|
|
112
115
|
"coachActivityNotifications.globalPreferenceUpdated",
|
|
113
116
|
"coachActivityNotifications.familyPreferenceUpdated",
|
|
114
117
|
"familyLog.updatedByCoach",
|
package/dist/enums.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../src/enums.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC;AACxE,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC3C,kBAAkB;IAClB,kBAAkB;IAClB,oBAAoB;IACpB,SAAS;IACT,SAAS;CACV,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC7C,QAAQ;IACR,UAAU;IACV,SAAS;IACT,WAAW;IACX,UAAU;CACX,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG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