@jugarhoy/api 1.1.14 → 1.1.16
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/apis/TeamsApi.ts +2 -0
- package/models/UserSession.ts +8 -0
- package/package.json +1 -1
package/apis/TeamsApi.ts
CHANGED
|
@@ -178,6 +178,7 @@ export class TeamsApi extends runtime.BaseAPI {
|
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
/**
|
|
181
|
+
* Creates a new team. Note - Only coaches can create TRAINING_GROUP teams. Any user can create PRIVATE_TEAM teams.
|
|
181
182
|
* Create a new team
|
|
182
183
|
*/
|
|
183
184
|
async apiAppTeamsPostRaw(requestParameters: ApiAppTeamsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TeamResponse>> {
|
|
@@ -214,6 +215,7 @@ export class TeamsApi extends runtime.BaseAPI {
|
|
|
214
215
|
}
|
|
215
216
|
|
|
216
217
|
/**
|
|
218
|
+
* Creates a new team. Note - Only coaches can create TRAINING_GROUP teams. Any user can create PRIVATE_TEAM teams.
|
|
217
219
|
* Create a new team
|
|
218
220
|
*/
|
|
219
221
|
async apiAppTeamsPost(requestParameters: ApiAppTeamsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TeamResponse> {
|
package/models/UserSession.ts
CHANGED
|
@@ -75,6 +75,12 @@ export interface UserSession {
|
|
|
75
75
|
* @memberof UserSession
|
|
76
76
|
*/
|
|
77
77
|
userId?: string | null;
|
|
78
|
+
/**
|
|
79
|
+
* User type (PLAYER, COACH, CLUB_OWNER)
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof UserSession
|
|
82
|
+
*/
|
|
83
|
+
type?: string | null;
|
|
78
84
|
/**
|
|
79
85
|
* User Auth identifier, if available
|
|
80
86
|
* @type {string}
|
|
@@ -114,6 +120,7 @@ export function UserSessionFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
114
120
|
'customer': json['customer'] == null ? undefined : UserSessionCustomerFromJSON(json['customer']),
|
|
115
121
|
'locationId': json['locationId'] == null ? undefined : json['locationId'],
|
|
116
122
|
'userId': json['userId'] == null ? undefined : json['userId'],
|
|
123
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
117
124
|
'userAuthId': json['userAuthId'] == null ? undefined : json['userAuthId'],
|
|
118
125
|
'signInProvider': json['signInProvider'] == null ? undefined : json['signInProvider'],
|
|
119
126
|
};
|
|
@@ -138,6 +145,7 @@ export function UserSessionToJSONTyped(value?: UserSession | null, ignoreDiscrim
|
|
|
138
145
|
'customer': UserSessionCustomerToJSON(value['customer']),
|
|
139
146
|
'locationId': value['locationId'],
|
|
140
147
|
'userId': value['userId'],
|
|
148
|
+
'type': value['type'],
|
|
141
149
|
'userAuthId': value['userAuthId'],
|
|
142
150
|
'signInProvider': value['signInProvider'],
|
|
143
151
|
};
|