@globalscoutme/api-client 1.1.28 → 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 +4 -0
- package/package.json +1 -1
- package/types.gen.ts +4 -0
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
|
/**
|
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 = {
|