@globalscoutme/api-client 1.1.26 → 1.1.29
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/README.md +2 -1
- package/dist/types.gen.d.ts +11 -1
- package/package.json +1 -1
- package/types.gen.ts +11 -1
package/README.md
CHANGED
|
@@ -51,7 +51,8 @@ import {
|
|
|
51
51
|
|
|
52
52
|
// Auth
|
|
53
53
|
const authMe = await Auth.getAuthMe();
|
|
54
|
-
// Returns { id: string, userType: string | null }
|
|
54
|
+
// Returns { id: string, userType: string | null, orgRole: 'admin' | 'user' | null }
|
|
55
|
+
// orgRole is the caller's organization_members role (club_admin/scouter only); null for player/coach
|
|
55
56
|
|
|
56
57
|
// Players
|
|
57
58
|
const player = await Players.getMe();
|
package/dist/types.gen.d.ts
CHANGED
|
@@ -10,6 +10,10 @@ export type AuthMeResponseDto = {
|
|
|
10
10
|
* user_types.code the user is registered as (e.g. "player", "coach", "club_admin", "scouter"). Null when not yet set.
|
|
11
11
|
*/
|
|
12
12
|
userType?: string | null;
|
|
13
|
+
/**
|
|
14
|
+
* The user's role within their organization (club/agency), e.g. for web page-level access. Null for user types without an organization membership (player, coach).
|
|
15
|
+
*/
|
|
16
|
+
orgRole?: 'admin' | 'user';
|
|
13
17
|
};
|
|
14
18
|
export type PlayerResponseDto = {
|
|
15
19
|
/**
|
|
@@ -2444,6 +2448,7 @@ export type SubscriptionPlanDto = {
|
|
|
2444
2448
|
};
|
|
2445
2449
|
displayOrder?: number | null;
|
|
2446
2450
|
providerProductId?: string | null;
|
|
2451
|
+
userTypeCode?: string | null;
|
|
2447
2452
|
};
|
|
2448
2453
|
export type PlansListDto = {
|
|
2449
2454
|
plans: Array<SubscriptionPlanDto>;
|
|
@@ -4286,7 +4291,12 @@ export type PostApiDashboardVideosByIdViewedResponse = PostApiDashboardVideosByI
|
|
|
4286
4291
|
export type GetApiSubscriptionsPlansData = {
|
|
4287
4292
|
body?: never;
|
|
4288
4293
|
path?: never;
|
|
4289
|
-
query?:
|
|
4294
|
+
query?: {
|
|
4295
|
+
/**
|
|
4296
|
+
* Filter plans by user type (player, coach, scouter, club_admin). Defaults to player.
|
|
4297
|
+
*/
|
|
4298
|
+
userTypeCode?: unknown;
|
|
4299
|
+
};
|
|
4290
4300
|
url: '/api/subscriptions/plans';
|
|
4291
4301
|
};
|
|
4292
4302
|
export type GetApiSubscriptionsPlansResponses = {
|
package/package.json
CHANGED
package/types.gen.ts
CHANGED
|
@@ -13,6 +13,10 @@ export type AuthMeResponseDto = {
|
|
|
13
13
|
* user_types.code the user is registered as (e.g. "player", "coach", "club_admin", "scouter"). Null when not yet set.
|
|
14
14
|
*/
|
|
15
15
|
userType?: string | null;
|
|
16
|
+
/**
|
|
17
|
+
* The user's role within their organization (club/agency), e.g. for web page-level access. Null for user types without an organization membership (player, coach).
|
|
18
|
+
*/
|
|
19
|
+
orgRole?: 'admin' | 'user';
|
|
16
20
|
};
|
|
17
21
|
|
|
18
22
|
export type PlayerResponseDto = {
|
|
@@ -2624,6 +2628,7 @@ export type SubscriptionPlanDto = {
|
|
|
2624
2628
|
};
|
|
2625
2629
|
displayOrder?: number | null;
|
|
2626
2630
|
providerProductId?: string | null;
|
|
2631
|
+
userTypeCode?: string | null;
|
|
2627
2632
|
};
|
|
2628
2633
|
|
|
2629
2634
|
export type PlansListDto = {
|
|
@@ -4892,7 +4897,12 @@ export type PostApiDashboardVideosByIdViewedResponse =
|
|
|
4892
4897
|
export type GetApiSubscriptionsPlansData = {
|
|
4893
4898
|
body?: never;
|
|
4894
4899
|
path?: never;
|
|
4895
|
-
query?:
|
|
4900
|
+
query?: {
|
|
4901
|
+
/**
|
|
4902
|
+
* Filter plans by user type (player, coach, scouter, club_admin). Defaults to player.
|
|
4903
|
+
*/
|
|
4904
|
+
userTypeCode?: unknown;
|
|
4905
|
+
};
|
|
4896
4906
|
url: '/api/subscriptions/plans';
|
|
4897
4907
|
};
|
|
4898
4908
|
|