@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 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();
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@globalscoutme/api-client",
3
- "version": "1.1.28",
3
+ "version": "1.1.29",
4
4
  "description": "GlobalScoutMe API client (generated)",
5
5
  "author": "GlobalScoutMe",
6
6
  "license": "UNLICENSED",
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 = {