@tbs-fitness/contract 0.1.0 → 0.3.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.
Files changed (34) hide show
  1. package/README.md +20 -0
  2. package/dist/cjs/audit/audit-log.dto.js +2 -1
  3. package/dist/cjs/auth/auth.dto.d.ts +66 -9
  4. package/dist/cjs/auth/auth.dto.js +51 -18
  5. package/dist/cjs/coach/coach-auth.dto.d.ts +114 -0
  6. package/dist/cjs/coach/coach-auth.dto.js +77 -0
  7. package/dist/cjs/coach/index.d.ts +1 -0
  8. package/dist/cjs/coach/index.js +17 -0
  9. package/dist/cjs/common/api-response.schema.js +2 -1
  10. package/dist/cjs/common/date-time.schema.d.ts +39 -0
  11. package/dist/cjs/common/date-time.schema.js +112 -0
  12. package/dist/cjs/common/index.d.ts +1 -0
  13. package/dist/cjs/common/index.js +1 -0
  14. package/dist/cjs/enums/index.d.ts +17 -2
  15. package/dist/cjs/enums/index.js +20 -3
  16. package/dist/cjs/feature-flags/feature-flag.dto.d.ts +7 -7
  17. package/dist/cjs/feature-flags/feature-flag.dto.js +10 -9
  18. package/dist/esm/audit/audit-log.dto.js +2 -1
  19. package/dist/esm/auth/auth.dto.d.ts +66 -9
  20. package/dist/esm/auth/auth.dto.js +47 -14
  21. package/dist/esm/coach/coach-auth.dto.d.ts +114 -0
  22. package/dist/esm/coach/coach-auth.dto.js +74 -0
  23. package/dist/esm/coach/index.d.ts +1 -0
  24. package/dist/esm/coach/index.js +1 -0
  25. package/dist/esm/common/api-response.schema.js +2 -1
  26. package/dist/esm/common/date-time.schema.d.ts +39 -0
  27. package/dist/esm/common/date-time.schema.js +107 -0
  28. package/dist/esm/common/index.d.ts +1 -0
  29. package/dist/esm/common/index.js +1 -0
  30. package/dist/esm/enums/index.d.ts +17 -2
  31. package/dist/esm/enums/index.js +19 -2
  32. package/dist/esm/feature-flags/feature-flag.dto.d.ts +7 -7
  33. package/dist/esm/feature-flags/feature-flag.dto.js +10 -9
  34. package/package.json +11 -1
@@ -0,0 +1,74 @@
1
+ import { z } from 'zod';
2
+ import { loginSchema, newPasswordSchema, opaqueTokenSchema, otpCodeSchema, timezonePreferenceSchema, tokenResponseSchema, } from '../auth/auth.dto.js';
3
+ import { emailSchema, phoneSchema } from '../common/contact.schema.js';
4
+ import { detectedTimezoneSchema, utcTimestampSchema, } from '../common/date-time.schema.js';
5
+ import { safeTextSchema } from '../common/safe-text.schema.js';
6
+ import { ACCOUNT_STATUSES } from '../enums/index.js';
7
+ export const coachSignupSchema = z.strictObject({
8
+ fullName: safeTextSchema(100).pipe(z.string().min(2, { error: 'Enter your full name' })),
9
+ email: emailSchema,
10
+ phone: phoneSchema.optional(),
11
+ password: newPasswordSchema,
12
+ /** The browser's time zone. Missing or unusable becomes UTC on the server. */
13
+ timezone: detectedTimezoneSchema,
14
+ });
15
+ /** Used by both resend endpoints and by forgot-password. */
16
+ export const otpEmailSchema = z.strictObject({ email: emailSchema });
17
+ export const verifyOtpSchema = z.strictObject({
18
+ email: emailSchema,
19
+ code: otpCodeSchema,
20
+ });
21
+ /**
22
+ * Coaches sign in from the browser, so the refresh token always travels in an
23
+ * HttpOnly cookie. `rememberMe: false` makes that cookie end with the browser
24
+ * session instead of persisting.
25
+ */
26
+ export const coachLoginSchema = loginSchema
27
+ .omit({ tokenTransport: true })
28
+ .extend({
29
+ rememberMe: z.boolean().default(true),
30
+ /**
31
+ * The browser's time zone. It replaces the saved one only while the
32
+ * coach's preference is `AUTO`; a manual choice is never overwritten.
33
+ */
34
+ timezone: detectedTimezoneSchema,
35
+ });
36
+ export const resetPasswordSchema = z.strictObject({
37
+ resetToken: opaqueTokenSchema,
38
+ newPassword: newPasswordSchema,
39
+ });
40
+ /**
41
+ * Says what the client needs to drive the code screen, and nothing about
42
+ * whether the email belongs to an account: the same values are returned either
43
+ * way.
44
+ */
45
+ export const otpDispatchResponseSchema = z.object({
46
+ message: z.string(),
47
+ otpLength: z.number().int(),
48
+ expiresInSeconds: z.number().int(),
49
+ resendAvailableInSeconds: z.number().int(),
50
+ });
51
+ export const signupVerifiedResponseSchema = z.object({
52
+ message: z.string(),
53
+ });
54
+ /** Issued only after a recovery code is verified. It can reset a password once. */
55
+ export const resetTokenResponseSchema = z.object({
56
+ resetToken: z.string(),
57
+ expiresInSeconds: z.number().int(),
58
+ });
59
+ export const coachProfileSchema = z
60
+ .object({
61
+ id: z.uuid(),
62
+ email: z.string(),
63
+ fullName: z.string().nullable(),
64
+ phone: z.string().nullable(),
65
+ role: z.literal('COACH'),
66
+ status: z.enum(ACCOUNT_STATUSES),
67
+ emailVerifiedAt: utcTimestampSchema.nullable(),
68
+ lastLoginAt: utcTimestampSchema.nullable(),
69
+ createdAt: utcTimestampSchema,
70
+ })
71
+ .extend(timezonePreferenceSchema.shape);
72
+ export const coachLoginResponseSchema = tokenResponseSchema.extend({
73
+ coach: coachProfileSchema,
74
+ });
@@ -0,0 +1 @@
1
+ export * from './coach-auth.dto.js';
@@ -0,0 +1 @@
1
+ export * from './coach-auth.dto.js';
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import { utcTimestampSchema } from './date-time.schema.js';
2
3
  import { paginationMetaSchema, } from './pagination.schema.js';
3
4
  export const apiErrorResponseSchema = z.object({
4
5
  error: z.object({
@@ -13,7 +14,7 @@ export const apiErrorResponseSchema = z.object({
13
14
  }))
14
15
  .optional(),
15
16
  requestId: z.string(),
16
- timestamp: z.iso.datetime(),
17
+ timestamp: utcTimestampSchema,
17
18
  path: z.string(),
18
19
  }),
19
20
  });
@@ -0,0 +1,39 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * The platform's date and time rules, shared so the backend and the apps
4
+ * validate them identically:
5
+ *
6
+ * - An instant (something that happened at one moment) travels as ISO 8601.
7
+ * Responses always use UTC with `Z`. Requests may use `Z` or an explicit
8
+ * offset, but never a bare local time, which would be ambiguous.
9
+ * - A date-only value (a birthday, an expiry date) travels as `YYYY-MM-DD` and
10
+ * is never converted between time zones.
11
+ * - A time zone is an IANA identifier such as `Asia/Kolkata`. Abbreviations
12
+ * (`IST`) and fixed offsets (`+05:30`) are refused, because offsets change
13
+ * with daylight saving.
14
+ */
15
+ export declare const DEFAULT_TIMEZONE = "UTC";
16
+ /**
17
+ * True for `UTC` and for an IANA `Area/Location` name the runtime's time zone
18
+ * database knows. Runs anywhere `Intl` does, so the browser and the server
19
+ * agree.
20
+ */
21
+ export declare function isValidTimezone(value: unknown): value is string;
22
+ /** The current IANA name for a zone, such as `Asia/Kolkata` for `Asia/Calcutta`. */
23
+ export declare function canonicalTimezone(value: string): string;
24
+ export declare const timezoneSchema: z.ZodPipe<z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>, z.ZodTransform<string, string>>;
25
+ /**
26
+ * A time zone the client detected and suggests, such as at sign-up. A missing
27
+ * or unusable value becomes `undefined` instead of failing the request, and the
28
+ * server then applies its default.
29
+ */
30
+ export declare const detectedTimezoneSchema: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<string | undefined, unknown>>>;
31
+ /** An instant in a response: ISO 8601 in UTC, ending in `Z`. */
32
+ export declare const utcTimestampSchema: z.ZodISODateTime;
33
+ /**
34
+ * An instant in a request: ISO 8601 with `Z` or an explicit offset, such as
35
+ * `2026-11-02T15:00:00+05:30`. A local time without either is refused.
36
+ */
37
+ export declare const instantInputSchema: z.ZodISODateTime;
38
+ /** A calendar date with no time and no zone, such as `2026-11-02`. */
39
+ export declare const dateOnlySchema: z.ZodString;
@@ -0,0 +1,107 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * The platform's date and time rules, shared so the backend and the apps
4
+ * validate them identically:
5
+ *
6
+ * - An instant (something that happened at one moment) travels as ISO 8601.
7
+ * Responses always use UTC with `Z`. Requests may use `Z` or an explicit
8
+ * offset, but never a bare local time, which would be ambiguous.
9
+ * - A date-only value (a birthday, an expiry date) travels as `YYYY-MM-DD` and
10
+ * is never converted between time zones.
11
+ * - A time zone is an IANA identifier such as `Asia/Kolkata`. Abbreviations
12
+ * (`IST`) and fixed offsets (`+05:30`) are refused, because offsets change
13
+ * with daylight saving.
14
+ */
15
+ export const DEFAULT_TIMEZONE = 'UTC';
16
+ const MAX_TIMEZONE_LENGTH = 64;
17
+ // The IANA areas used for real places. `Etc/*` and the legacy aliases
18
+ // (`US/Eastern`, `EST`) are left out: the first are fixed offsets, and the
19
+ // second have modern names.
20
+ const AREA_LOCATION = /^(?:Africa|America|Antarctica|Arctic|Asia|Atlantic|Australia|Europe|Indian|Pacific)\/[A-Za-z0-9_+-]+(?:\/[A-Za-z0-9_+-]+)?$/;
21
+ /**
22
+ * True for `UTC` and for an IANA `Area/Location` name the runtime's time zone
23
+ * database knows. Runs anywhere `Intl` does, so the browser and the server
24
+ * agree.
25
+ */
26
+ export function isValidTimezone(value) {
27
+ if (typeof value !== 'string' || value.length > MAX_TIMEZONE_LENGTH) {
28
+ return false;
29
+ }
30
+ if (value !== DEFAULT_TIMEZONE && !AREA_LOCATION.test(value)) {
31
+ return false;
32
+ }
33
+ try {
34
+ new Intl.DateTimeFormat('en-US', { timeZone: value });
35
+ return true;
36
+ }
37
+ catch {
38
+ return false;
39
+ }
40
+ }
41
+ // Browsers and Node report some zones by names IANA has since replaced, because
42
+ // their Unicode data keeps the old ones. Saving the current name means one
43
+ // place is stored, compared and shown one way everywhere.
44
+ const RENAMED_TIMEZONES = {
45
+ 'Asia/Calcutta': 'Asia/Kolkata',
46
+ 'Asia/Saigon': 'Asia/Ho_Chi_Minh',
47
+ 'Asia/Katmandu': 'Asia/Kathmandu',
48
+ 'Asia/Rangoon': 'Asia/Yangon',
49
+ 'Europe/Kiev': 'Europe/Kyiv',
50
+ 'Europe/Uzhgorod': 'Europe/Kyiv',
51
+ 'Europe/Zaporozhye': 'Europe/Kyiv',
52
+ 'Atlantic/Faeroe': 'Atlantic/Faroe',
53
+ 'America/Godthab': 'America/Nuuk',
54
+ 'Pacific/Enderbury': 'Pacific/Kanton',
55
+ 'Pacific/Truk': 'Pacific/Chuuk',
56
+ 'Pacific/Ponape': 'Pacific/Pohnpei',
57
+ 'America/Buenos_Aires': 'America/Argentina/Buenos_Aires',
58
+ 'America/Catamarca': 'America/Argentina/Catamarca',
59
+ 'America/Cordoba': 'America/Argentina/Cordoba',
60
+ 'America/Jujuy': 'America/Argentina/Jujuy',
61
+ 'America/Mendoza': 'America/Argentina/Mendoza',
62
+ 'America/Indianapolis': 'America/Indiana/Indianapolis',
63
+ 'America/Louisville': 'America/Kentucky/Louisville',
64
+ };
65
+ /** The current IANA name for a zone, such as `Asia/Kolkata` for `Asia/Calcutta`. */
66
+ export function canonicalTimezone(value) {
67
+ return RENAMED_TIMEZONES[value] ?? value;
68
+ }
69
+ export const timezoneSchema = z
70
+ .string()
71
+ .trim()
72
+ .refine(isValidTimezone, {
73
+ error: 'Choose a time zone such as Asia/Kolkata',
74
+ })
75
+ .transform(canonicalTimezone);
76
+ /**
77
+ * A time zone the client detected and suggests, such as at sign-up. A missing
78
+ * or unusable value becomes `undefined` instead of failing the request, and the
79
+ * server then applies its default.
80
+ */
81
+ export const detectedTimezoneSchema = z
82
+ .unknown()
83
+ .transform((value) => {
84
+ const trimmed = typeof value === 'string' ? value.trim() : value;
85
+ return isValidTimezone(trimmed) ? canonicalTimezone(trimmed) : undefined;
86
+ })
87
+ .optional();
88
+ /** An instant in a response: ISO 8601 in UTC, ending in `Z`. */
89
+ export const utcTimestampSchema = z.iso.datetime();
90
+ /**
91
+ * An instant in a request: ISO 8601 with `Z` or an explicit offset, such as
92
+ * `2026-11-02T15:00:00+05:30`. A local time without either is refused.
93
+ */
94
+ export const instantInputSchema = z.iso.datetime({ offset: true });
95
+ /** A calendar date with no time and no zone, such as `2026-11-02`. */
96
+ export const dateOnlySchema = z
97
+ .string()
98
+ .regex(/^\d{4}-\d{2}-\d{2}$/, { error: 'Use the format YYYY-MM-DD' })
99
+ .refine(isRealCalendarDate, { error: 'Enter a real calendar date' });
100
+ function isRealCalendarDate(value) {
101
+ const [year, month, day] = value.split('-').map(Number);
102
+ // UTC is used only to check the calendar, so no zone can move the date.
103
+ const date = new Date(Date.UTC(year, month - 1, day));
104
+ return (date.getUTCFullYear() === year &&
105
+ date.getUTCMonth() === month - 1 &&
106
+ date.getUTCDate() === day);
107
+ }
@@ -1,4 +1,5 @@
1
1
  export * from './api-response.schema.js';
2
2
  export * from './contact.schema.js';
3
+ export * from './date-time.schema.js';
3
4
  export * from './pagination.schema.js';
4
5
  export * from './safe-text.schema.js';
@@ -1,4 +1,5 @@
1
1
  export * from './api-response.schema.js';
2
2
  export * from './contact.schema.js';
3
+ export * from './date-time.schema.js';
3
4
  export * from './pagination.schema.js';
4
5
  export * from './safe-text.schema.js';
@@ -1,9 +1,24 @@
1
1
  export declare const APP_ENVIRONMENTS: readonly ["development", "staging", "production"];
2
2
  export type AppEnvironment = (typeof APP_ENVIRONMENTS)[number];
3
- export declare const ROLES: readonly ["admin", "trainer", "customer"];
3
+ /** Each user has exactly one role. A new role is added here and nowhere else. */
4
+ export declare const ROLES: readonly ["ADMIN", "COACH", "CUSTOMER"];
4
5
  export type Role = (typeof ROLES)[number];
5
- export declare const ACCOUNT_STATUSES: readonly ["active", "disabled"];
6
+ /**
7
+ * `pending_verification` is a self-registered user who has not yet proved they
8
+ * own their email address. Such a user cannot sign in.
9
+ */
10
+ export declare const ACCOUNT_STATUSES: readonly ["pending_verification", "active", "disabled"];
6
11
  export type AccountStatus = (typeof ACCOUNT_STATUSES)[number];
12
+ /** The statuses an administrator may set. Verification is never set by hand. */
13
+ export declare const ADMIN_SETTABLE_ACCOUNT_STATUSES: readonly ["active", "disabled"];
14
+ export type AdminSettableAccountStatus = (typeof ADMIN_SETTABLE_ACCOUNT_STATUSES)[number];
15
+ /**
16
+ * Where a user's time zone came from. `AUTO` was detected from their browser
17
+ * and may be updated when they sign in elsewhere. `MANUAL` was chosen by the
18
+ * user, and only the user changes it.
19
+ */
20
+ export declare const TIMEZONE_SOURCES: readonly ["AUTO", "MANUAL"];
21
+ export type TimezoneSource = (typeof TIMEZONE_SOURCES)[number];
7
22
  export declare const TOKEN_TRANSPORTS: readonly ["body", "cookie"];
8
23
  export type TokenTransport = (typeof TOKEN_TRANSPORTS)[number];
9
24
  export declare const AUDIT_OUTCOMES: readonly ["success", "failure"];
@@ -5,8 +5,25 @@ export const APP_ENVIRONMENTS = [
5
5
  'staging',
6
6
  'production',
7
7
  ];
8
- export const ROLES = ['admin', 'trainer', 'customer'];
9
- export const ACCOUNT_STATUSES = ['active', 'disabled'];
8
+ /** Each user has exactly one role. A new role is added here and nowhere else. */
9
+ export const ROLES = ['ADMIN', 'COACH', 'CUSTOMER'];
10
+ /**
11
+ * `pending_verification` is a self-registered user who has not yet proved they
12
+ * own their email address. Such a user cannot sign in.
13
+ */
14
+ export const ACCOUNT_STATUSES = [
15
+ 'pending_verification',
16
+ 'active',
17
+ 'disabled',
18
+ ];
19
+ /** The statuses an administrator may set. Verification is never set by hand. */
20
+ export const ADMIN_SETTABLE_ACCOUNT_STATUSES = ['active', 'disabled'];
21
+ /**
22
+ * Where a user's time zone came from. `AUTO` was detected from their browser
23
+ * and may be updated when they sign in elsewhere. `MANUAL` was chosen by the
24
+ * user, and only the user changes it.
25
+ */
26
+ export const TIMEZONE_SOURCES = ['AUTO', 'MANUAL'];
10
27
  export const TOKEN_TRANSPORTS = ['body', 'cookie'];
11
28
  export const AUDIT_OUTCOMES = ['success', 'failure'];
12
29
  export const FEATURE_FLAG_RULE_TYPES = [
@@ -41,9 +41,9 @@ export declare const createRuleSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
41
41
  }, z.core.$strict>, z.ZodObject<{
42
42
  ruleType: z.ZodLiteral<"role">;
43
43
  ruleValue: z.ZodEnum<{
44
- admin: "admin";
45
- trainer: "trainer";
46
- customer: "customer";
44
+ ADMIN: "ADMIN";
45
+ COACH: "COACH";
46
+ CUSTOMER: "CUSTOMER";
47
47
  }>;
48
48
  enabled: z.ZodDefault<z.ZodBoolean>;
49
49
  }, z.core.$strict>], "ruleType">;
@@ -67,9 +67,9 @@ export declare const flagListQuerySchema: z.ZodObject<{
67
67
  export declare const ruleResponseSchema: z.ZodObject<{
68
68
  id: z.ZodUUID;
69
69
  ruleType: z.ZodEnum<{
70
- trainer: "trainer";
71
- customer: "customer";
72
70
  user: "user";
71
+ customer: "customer";
72
+ trainer: "trainer";
73
73
  role: "role";
74
74
  }>;
75
75
  ruleValue: z.ZodString;
@@ -100,9 +100,9 @@ export declare const flagResponseSchema: z.ZodObject<{
100
100
  rules: z.ZodArray<z.ZodObject<{
101
101
  id: z.ZodUUID;
102
102
  ruleType: z.ZodEnum<{
103
- trainer: "trainer";
104
- customer: "customer";
105
103
  user: "user";
104
+ customer: "customer";
105
+ trainer: "trainer";
106
106
  role: "role";
107
107
  }>;
108
108
  ruleValue: z.ZodString;
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import { instantInputSchema, utcTimestampSchema, } from '../common/date-time.schema.js';
2
3
  import { paginationQuerySchema } from '../common/pagination.schema.js';
3
4
  import { safeTextSchema } from '../common/safe-text.schema.js';
4
5
  import { APP_ENVIRONMENTS, FEATURE_FLAG_RULE_TYPES, ROLES, } from '../enums/index.js';
@@ -14,7 +15,7 @@ const keySchema = z
14
15
  const nameSchema = safeTextSchema(120);
15
16
  const descriptionSchema = safeTextSchema(500);
16
17
  const percentageSchema = z.number().int().min(0).max(100);
17
- const timestampSchema = z.iso.datetime({ offset: true });
18
+ const timestampSchema = instantInputSchema;
18
19
  /** Lower-cased, so that it matches IDs as they come from the database. */
19
20
  const accountIdSchema = z.string().toLowerCase().pipe(z.uuid());
20
21
  const scheduleIsOrdered = ({ activationAt, expiresAt, }) => !activationAt || !expiresAt || new Date(activationAt) < new Date(expiresAt);
@@ -92,8 +93,8 @@ export const ruleResponseSchema = z.object({
92
93
  ruleType: z.enum(FEATURE_FLAG_RULE_TYPES),
93
94
  ruleValue: z.string(),
94
95
  enabled: z.boolean(),
95
- createdAt: z.iso.datetime(),
96
- updatedAt: z.iso.datetime(),
96
+ createdAt: utcTimestampSchema,
97
+ updatedAt: utcTimestampSchema,
97
98
  });
98
99
  export const flagResponseSchema = z.object({
99
100
  id: z.uuid(),
@@ -103,13 +104,13 @@ export const flagResponseSchema = z.object({
103
104
  environment: z.enum(APP_ENVIRONMENTS),
104
105
  enabled: z.boolean(),
105
106
  rolloutPercentage: z.number().int(),
106
- activationAt: z.iso.datetime().nullable(),
107
- expiresAt: z.iso.datetime().nullable(),
107
+ activationAt: utcTimestampSchema.nullable(),
108
+ expiresAt: utcTimestampSchema.nullable(),
108
109
  version: z.number().int(),
109
110
  createdBy: z.uuid(),
110
111
  updatedBy: z.uuid(),
111
- createdAt: z.iso.datetime(),
112
- updatedAt: z.iso.datetime(),
112
+ createdAt: utcTimestampSchema,
113
+ updatedAt: utcTimestampSchema,
113
114
  rules: z.array(ruleResponseSchema),
114
115
  });
115
116
  export const auditLogResponseSchema = z.object({
@@ -121,12 +122,12 @@ export const auditLogResponseSchema = z.object({
121
122
  action: z.string(),
122
123
  previousValue: z.record(z.string(), z.unknown()).nullable(),
123
124
  newValue: z.record(z.string(), z.unknown()).nullable(),
124
- createdAt: z.iso.datetime(),
125
+ createdAt: utcTimestampSchema,
125
126
  });
126
127
  export const killSwitchResponseSchema = z.object({
127
128
  environment: z.enum(APP_ENVIRONMENTS),
128
129
  engaged: z.boolean(),
129
130
  reason: z.string().nullable(),
130
131
  updatedBy: z.uuid().nullable(),
131
- updatedAt: z.iso.datetime().nullable(),
132
+ updatedAt: utcTimestampSchema.nullable(),
132
133
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tbs-fitness/contract",
3
- "version": "0.1.0",
3
+ "version": "0.3.0",
4
4
  "description": "TBS API contract: Zod schemas, DTO types and enums shared by the backend, web and mobile apps",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -33,6 +33,16 @@
33
33
  "default": "./dist/cjs/auth/index.js"
34
34
  }
35
35
  },
36
+ "./coach": {
37
+ "import": {
38
+ "types": "./dist/esm/coach/index.d.ts",
39
+ "default": "./dist/esm/coach/index.js"
40
+ },
41
+ "require": {
42
+ "types": "./dist/cjs/coach/index.d.ts",
43
+ "default": "./dist/cjs/coach/index.js"
44
+ }
45
+ },
36
46
  "./common": {
37
47
  "import": {
38
48
  "types": "./dist/esm/common/index.d.ts",