@tennac-booking/sdk 1.0.155 → 1.0.156
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 +1 -1
- package/api.ts +81 -89
- package/dist/api.d.ts +42 -48
- package/dist/api.js +63 -65
- package/dist/esm/api.d.ts +42 -48
- package/dist/esm/api.js +63 -65
- package/docs/EventsStaffApi.md +0 -51
- package/docs/PublishEventResponse.md +0 -2
- package/docs/UsersApi.md +52 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -194,7 +194,6 @@ Class | Method | HTTP request | Description
|
|
|
194
194
|
*EventsManagerApi* | [**updateRecurringDefinition**](docs/EventsManagerApi.md#updaterecurringdefinition) | **PUT** /api/events/manager/recurring/{definitionId} |
|
|
195
195
|
*EventsStaffApi* | [**checkInEventParticipants**](docs/EventsStaffApi.md#checkineventparticipants) | **POST** /api/events/{eventBookingId}/check-in |
|
|
196
196
|
*EventsStaffApi* | [**getDailyEvents**](docs/EventsStaffApi.md#getdailyevents) | **GET** /api/events/calendar/daily |
|
|
197
|
-
*EventsStaffApi* | [**getEventByIdStaff**](docs/EventsStaffApi.md#geteventbyidstaff) | **GET** /api/events/staff/{eventId} |
|
|
198
197
|
*EventsStaffApi* | [**getEventsByClub**](docs/EventsStaffApi.md#geteventsbyclub) | **GET** /api/events/staff/getEvents |
|
|
199
198
|
*EventsStaffApi* | [**getMonthlyEvents**](docs/EventsStaffApi.md#getmonthlyevents) | **GET** /api/events/calendar/monthly |
|
|
200
199
|
*EventsStaffApi* | [**getWeeklyEvents**](docs/EventsStaffApi.md#getweeklyevents) | **GET** /api/events/calendar/weekly |
|
|
@@ -237,6 +236,7 @@ Class | Method | HTTP request | Description
|
|
|
237
236
|
*UsersApi* | [**getUserProfileById**](docs/UsersApi.md#getuserprofilebyid) | **GET** /api/users/profile/{id} |
|
|
238
237
|
*UsersApi* | [**listPlayers**](docs/UsersApi.md#listplayers) | **GET** /api/users/players |
|
|
239
238
|
*UsersApi* | [**login**](docs/UsersApi.md#login) | **POST** /api/users/login |
|
|
239
|
+
*UsersApi* | [**loginClubMember**](docs/UsersApi.md#loginclubmember) | **POST** /api/users/club-members/login |
|
|
240
240
|
*UsersApi* | [**refreshToken**](docs/UsersApi.md#refreshtoken) | **POST** /api/users/refresh-token |
|
|
241
241
|
*UsersApi* | [**register**](docs/UsersApi.md#register) | **POST** /api/users |
|
|
242
242
|
*UsersApi* | [**removeFavoriteClub**](docs/UsersApi.md#removefavoriteclub) | **DELETE** /api/users/me/favorite-clubs/{clubId} |
|
package/api.ts
CHANGED
|
@@ -8524,12 +8524,6 @@ export interface PublishEventResponse {
|
|
|
8524
8524
|
* @memberof PublishEventResponse
|
|
8525
8525
|
*/
|
|
8526
8526
|
'needsToSetupPaymentMethod'?: boolean;
|
|
8527
|
-
/**
|
|
8528
|
-
*
|
|
8529
|
-
* @type {Array<EventBookingResponse>}
|
|
8530
|
-
* @memberof PublishEventResponse
|
|
8531
|
-
*/
|
|
8532
|
-
'eventBookings'?: Array<EventBookingResponse>;
|
|
8533
8527
|
}
|
|
8534
8528
|
/**
|
|
8535
8529
|
*
|
|
@@ -25065,43 +25059,6 @@ export const EventsStaffApiAxiosParamCreator = function (configuration?: Configu
|
|
|
25065
25059
|
|
|
25066
25060
|
|
|
25067
25061
|
|
|
25068
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
25069
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
25070
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
25071
|
-
|
|
25072
|
-
return {
|
|
25073
|
-
url: toPathString(localVarUrlObj),
|
|
25074
|
-
options: localVarRequestOptions,
|
|
25075
|
-
};
|
|
25076
|
-
},
|
|
25077
|
-
/**
|
|
25078
|
-
*
|
|
25079
|
-
* @param {string} eventId
|
|
25080
|
-
* @param {*} [options] Override http request option.
|
|
25081
|
-
* @throws {RequiredError}
|
|
25082
|
-
*/
|
|
25083
|
-
getEventByIdStaff: async (eventId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
25084
|
-
// verify required parameter 'eventId' is not null or undefined
|
|
25085
|
-
assertParamExists('getEventByIdStaff', 'eventId', eventId)
|
|
25086
|
-
const localVarPath = `/api/events/staff/{eventId}`
|
|
25087
|
-
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
25088
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25089
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
25090
|
-
let baseOptions;
|
|
25091
|
-
if (configuration) {
|
|
25092
|
-
baseOptions = configuration.baseOptions;
|
|
25093
|
-
}
|
|
25094
|
-
|
|
25095
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
25096
|
-
const localVarHeaderParameter = {} as any;
|
|
25097
|
-
const localVarQueryParameter = {} as any;
|
|
25098
|
-
|
|
25099
|
-
// authentication bearerAuth required
|
|
25100
|
-
// http bearer authentication required
|
|
25101
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
25102
|
-
|
|
25103
|
-
|
|
25104
|
-
|
|
25105
25062
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
25106
25063
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
25107
25064
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -25299,18 +25256,6 @@ export const EventsStaffApiFp = function(configuration?: Configuration) {
|
|
|
25299
25256
|
const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.getDailyEvents']?.[localVarOperationServerIndex]?.url;
|
|
25300
25257
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25301
25258
|
},
|
|
25302
|
-
/**
|
|
25303
|
-
*
|
|
25304
|
-
* @param {string} eventId
|
|
25305
|
-
* @param {*} [options] Override http request option.
|
|
25306
|
-
* @throws {RequiredError}
|
|
25307
|
-
*/
|
|
25308
|
-
async getEventByIdStaff(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PublishEventResponse>> {
|
|
25309
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getEventByIdStaff(eventId, options);
|
|
25310
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
25311
|
-
const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.getEventByIdStaff']?.[localVarOperationServerIndex]?.url;
|
|
25312
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25313
|
-
},
|
|
25314
25259
|
/**
|
|
25315
25260
|
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
25316
25261
|
* @param {*} [options] Override http request option.
|
|
@@ -25382,15 +25327,6 @@ export const EventsStaffApiFactory = function (configuration?: Configuration, ba
|
|
|
25382
25327
|
getDailyEvents(requestParameters: EventsStaffApiGetDailyEventsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<EventsListResponse> {
|
|
25383
25328
|
return localVarFp.getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
25384
25329
|
},
|
|
25385
|
-
/**
|
|
25386
|
-
*
|
|
25387
|
-
* @param {EventsStaffApiGetEventByIdStaffRequest} requestParameters Request parameters.
|
|
25388
|
-
* @param {*} [options] Override http request option.
|
|
25389
|
-
* @throws {RequiredError}
|
|
25390
|
-
*/
|
|
25391
|
-
getEventByIdStaff(requestParameters: EventsStaffApiGetEventByIdStaffRequest, options?: RawAxiosRequestConfig): AxiosPromise<PublishEventResponse> {
|
|
25392
|
-
return localVarFp.getEventByIdStaff(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
25393
|
-
},
|
|
25394
25330
|
/**
|
|
25395
25331
|
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
25396
25332
|
* @param {*} [options] Override http request option.
|
|
@@ -25483,20 +25419,6 @@ export interface EventsStaffApiGetDailyEventsRequest {
|
|
|
25483
25419
|
readonly sportId?: string
|
|
25484
25420
|
}
|
|
25485
25421
|
|
|
25486
|
-
/**
|
|
25487
|
-
* Request parameters for getEventByIdStaff operation in EventsStaffApi.
|
|
25488
|
-
* @export
|
|
25489
|
-
* @interface EventsStaffApiGetEventByIdStaffRequest
|
|
25490
|
-
*/
|
|
25491
|
-
export interface EventsStaffApiGetEventByIdStaffRequest {
|
|
25492
|
-
/**
|
|
25493
|
-
*
|
|
25494
|
-
* @type {string}
|
|
25495
|
-
* @memberof EventsStaffApiGetEventByIdStaff
|
|
25496
|
-
*/
|
|
25497
|
-
readonly eventId: string
|
|
25498
|
-
}
|
|
25499
|
-
|
|
25500
25422
|
/**
|
|
25501
25423
|
* Request parameters for getMonthlyEvents operation in EventsStaffApi.
|
|
25502
25424
|
* @export
|
|
@@ -25610,17 +25532,6 @@ export class EventsStaffApi extends BaseAPI {
|
|
|
25610
25532
|
return EventsStaffApiFp(this.configuration).getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
25611
25533
|
}
|
|
25612
25534
|
|
|
25613
|
-
/**
|
|
25614
|
-
*
|
|
25615
|
-
* @param {EventsStaffApiGetEventByIdStaffRequest} requestParameters Request parameters.
|
|
25616
|
-
* @param {*} [options] Override http request option.
|
|
25617
|
-
* @throws {RequiredError}
|
|
25618
|
-
* @memberof EventsStaffApi
|
|
25619
|
-
*/
|
|
25620
|
-
public getEventByIdStaff(requestParameters: EventsStaffApiGetEventByIdStaffRequest, options?: RawAxiosRequestConfig) {
|
|
25621
|
-
return EventsStaffApiFp(this.configuration).getEventByIdStaff(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
25622
|
-
}
|
|
25623
|
-
|
|
25624
25535
|
/**
|
|
25625
25536
|
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
25626
25537
|
* @param {*} [options] Override http request option.
|
|
@@ -28288,6 +28199,41 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
28288
28199
|
|
|
28289
28200
|
|
|
28290
28201
|
|
|
28202
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
28203
|
+
|
|
28204
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
28205
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
28206
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
28207
|
+
localVarRequestOptions.data = serializeDataIfNeeded(loginRequestBody, localVarRequestOptions, configuration)
|
|
28208
|
+
|
|
28209
|
+
return {
|
|
28210
|
+
url: toPathString(localVarUrlObj),
|
|
28211
|
+
options: localVarRequestOptions,
|
|
28212
|
+
};
|
|
28213
|
+
},
|
|
28214
|
+
/**
|
|
28215
|
+
*
|
|
28216
|
+
* @param {LoginRequestBody} loginRequestBody
|
|
28217
|
+
* @param {*} [options] Override http request option.
|
|
28218
|
+
* @throws {RequiredError}
|
|
28219
|
+
*/
|
|
28220
|
+
loginClubMember: async (loginRequestBody: LoginRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
28221
|
+
// verify required parameter 'loginRequestBody' is not null or undefined
|
|
28222
|
+
assertParamExists('loginClubMember', 'loginRequestBody', loginRequestBody)
|
|
28223
|
+
const localVarPath = `/api/users/club-members/login`;
|
|
28224
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
28225
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
28226
|
+
let baseOptions;
|
|
28227
|
+
if (configuration) {
|
|
28228
|
+
baseOptions = configuration.baseOptions;
|
|
28229
|
+
}
|
|
28230
|
+
|
|
28231
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
28232
|
+
const localVarHeaderParameter = {} as any;
|
|
28233
|
+
const localVarQueryParameter = {} as any;
|
|
28234
|
+
|
|
28235
|
+
|
|
28236
|
+
|
|
28291
28237
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
28292
28238
|
|
|
28293
28239
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -29132,6 +29078,18 @@ export const UsersApiFp = function(configuration?: Configuration) {
|
|
|
29132
29078
|
const localVarOperationServerBasePath = operationServerMap['UsersApi.login']?.[localVarOperationServerIndex]?.url;
|
|
29133
29079
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
29134
29080
|
},
|
|
29081
|
+
/**
|
|
29082
|
+
*
|
|
29083
|
+
* @param {LoginRequestBody} loginRequestBody
|
|
29084
|
+
* @param {*} [options] Override http request option.
|
|
29085
|
+
* @throws {RequiredError}
|
|
29086
|
+
*/
|
|
29087
|
+
async loginClubMember(loginRequestBody: LoginRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponse>> {
|
|
29088
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.loginClubMember(loginRequestBody, options);
|
|
29089
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
29090
|
+
const localVarOperationServerBasePath = operationServerMap['UsersApi.loginClubMember']?.[localVarOperationServerIndex]?.url;
|
|
29091
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
29092
|
+
},
|
|
29135
29093
|
/**
|
|
29136
29094
|
*
|
|
29137
29095
|
* @param {RefreshTokenRequestBody} refreshTokenRequestBody
|
|
@@ -29511,6 +29469,15 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
|
|
|
29511
29469
|
login(requestParameters: UsersApiLoginRequest, options?: RawAxiosRequestConfig): AxiosPromise<LoginResponse> {
|
|
29512
29470
|
return localVarFp.login(requestParameters.loginRequestBody, options).then((request) => request(axios, basePath));
|
|
29513
29471
|
},
|
|
29472
|
+
/**
|
|
29473
|
+
*
|
|
29474
|
+
* @param {UsersApiLoginClubMemberRequest} requestParameters Request parameters.
|
|
29475
|
+
* @param {*} [options] Override http request option.
|
|
29476
|
+
* @throws {RequiredError}
|
|
29477
|
+
*/
|
|
29478
|
+
loginClubMember(requestParameters: UsersApiLoginClubMemberRequest, options?: RawAxiosRequestConfig): AxiosPromise<LoginResponse> {
|
|
29479
|
+
return localVarFp.loginClubMember(requestParameters.loginRequestBody, options).then((request) => request(axios, basePath));
|
|
29480
|
+
},
|
|
29514
29481
|
/**
|
|
29515
29482
|
*
|
|
29516
29483
|
* @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.
|
|
@@ -29977,6 +29944,20 @@ export interface UsersApiLoginRequest {
|
|
|
29977
29944
|
readonly loginRequestBody: LoginRequestBody
|
|
29978
29945
|
}
|
|
29979
29946
|
|
|
29947
|
+
/**
|
|
29948
|
+
* Request parameters for loginClubMember operation in UsersApi.
|
|
29949
|
+
* @export
|
|
29950
|
+
* @interface UsersApiLoginClubMemberRequest
|
|
29951
|
+
*/
|
|
29952
|
+
export interface UsersApiLoginClubMemberRequest {
|
|
29953
|
+
/**
|
|
29954
|
+
*
|
|
29955
|
+
* @type {LoginRequestBody}
|
|
29956
|
+
* @memberof UsersApiLoginClubMember
|
|
29957
|
+
*/
|
|
29958
|
+
readonly loginRequestBody: LoginRequestBody
|
|
29959
|
+
}
|
|
29960
|
+
|
|
29980
29961
|
/**
|
|
29981
29962
|
* Request parameters for refreshToken operation in UsersApi.
|
|
29982
29963
|
* @export
|
|
@@ -30414,6 +30395,17 @@ export class UsersApi extends BaseAPI {
|
|
|
30414
30395
|
return UsersApiFp(this.configuration).login(requestParameters.loginRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
30415
30396
|
}
|
|
30416
30397
|
|
|
30398
|
+
/**
|
|
30399
|
+
*
|
|
30400
|
+
* @param {UsersApiLoginClubMemberRequest} requestParameters Request parameters.
|
|
30401
|
+
* @param {*} [options] Override http request option.
|
|
30402
|
+
* @throws {RequiredError}
|
|
30403
|
+
* @memberof UsersApi
|
|
30404
|
+
*/
|
|
30405
|
+
public loginClubMember(requestParameters: UsersApiLoginClubMemberRequest, options?: RawAxiosRequestConfig) {
|
|
30406
|
+
return UsersApiFp(this.configuration).loginClubMember(requestParameters.loginRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
30407
|
+
}
|
|
30408
|
+
|
|
30417
30409
|
/**
|
|
30418
30410
|
*
|
|
30419
30411
|
* @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.
|
package/dist/api.d.ts
CHANGED
|
@@ -8367,12 +8367,6 @@ export interface PublishEventResponse {
|
|
|
8367
8367
|
* @memberof PublishEventResponse
|
|
8368
8368
|
*/
|
|
8369
8369
|
'needsToSetupPaymentMethod'?: boolean;
|
|
8370
|
-
/**
|
|
8371
|
-
*
|
|
8372
|
-
* @type {Array<EventBookingResponse>}
|
|
8373
|
-
* @memberof PublishEventResponse
|
|
8374
|
-
*/
|
|
8375
|
-
'eventBookings'?: Array<EventBookingResponse>;
|
|
8376
8370
|
}
|
|
8377
8371
|
/**
|
|
8378
8372
|
*
|
|
@@ -18556,13 +18550,6 @@ export declare const EventsStaffApiAxiosParamCreator: (configuration?: Configura
|
|
|
18556
18550
|
* @throws {RequiredError}
|
|
18557
18551
|
*/
|
|
18558
18552
|
getDailyEvents: (clubId?: string, date?: string, visibilityType?: GetDailyEventsVisibilityTypeEnum, type?: GetDailyEventsTypeEnum, sportId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
18559
|
-
/**
|
|
18560
|
-
*
|
|
18561
|
-
* @param {string} eventId
|
|
18562
|
-
* @param {*} [options] Override http request option.
|
|
18563
|
-
* @throws {RequiredError}
|
|
18564
|
-
*/
|
|
18565
|
-
getEventByIdStaff: (eventId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
18566
18553
|
/**
|
|
18567
18554
|
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
18568
18555
|
* @param {*} [options] Override http request option.
|
|
@@ -18616,13 +18603,6 @@ export declare const EventsStaffApiFp: (configuration?: Configuration) => {
|
|
|
18616
18603
|
* @throws {RequiredError}
|
|
18617
18604
|
*/
|
|
18618
18605
|
getDailyEvents(clubId?: string, date?: string, visibilityType?: GetDailyEventsVisibilityTypeEnum, type?: GetDailyEventsTypeEnum, sportId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventsListResponse>>;
|
|
18619
|
-
/**
|
|
18620
|
-
*
|
|
18621
|
-
* @param {string} eventId
|
|
18622
|
-
* @param {*} [options] Override http request option.
|
|
18623
|
-
* @throws {RequiredError}
|
|
18624
|
-
*/
|
|
18625
|
-
getEventByIdStaff(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PublishEventResponse>>;
|
|
18626
18606
|
/**
|
|
18627
18607
|
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
18628
18608
|
* @param {*} [options] Override http request option.
|
|
@@ -18671,13 +18651,6 @@ export declare const EventsStaffApiFactory: (configuration?: Configuration, base
|
|
|
18671
18651
|
* @throws {RequiredError}
|
|
18672
18652
|
*/
|
|
18673
18653
|
getDailyEvents(requestParameters?: EventsStaffApiGetDailyEventsRequest, options?: RawAxiosRequestConfig): AxiosPromise<EventsListResponse>;
|
|
18674
|
-
/**
|
|
18675
|
-
*
|
|
18676
|
-
* @param {EventsStaffApiGetEventByIdStaffRequest} requestParameters Request parameters.
|
|
18677
|
-
* @param {*} [options] Override http request option.
|
|
18678
|
-
* @throws {RequiredError}
|
|
18679
|
-
*/
|
|
18680
|
-
getEventByIdStaff(requestParameters: EventsStaffApiGetEventByIdStaffRequest, options?: RawAxiosRequestConfig): AxiosPromise<PublishEventResponse>;
|
|
18681
18654
|
/**
|
|
18682
18655
|
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
18683
18656
|
* @param {*} [options] Override http request option.
|
|
@@ -18755,19 +18728,6 @@ export interface EventsStaffApiGetDailyEventsRequest {
|
|
|
18755
18728
|
*/
|
|
18756
18729
|
readonly sportId?: string;
|
|
18757
18730
|
}
|
|
18758
|
-
/**
|
|
18759
|
-
* Request parameters for getEventByIdStaff operation in EventsStaffApi.
|
|
18760
|
-
* @export
|
|
18761
|
-
* @interface EventsStaffApiGetEventByIdStaffRequest
|
|
18762
|
-
*/
|
|
18763
|
-
export interface EventsStaffApiGetEventByIdStaffRequest {
|
|
18764
|
-
/**
|
|
18765
|
-
*
|
|
18766
|
-
* @type {string}
|
|
18767
|
-
* @memberof EventsStaffApiGetEventByIdStaff
|
|
18768
|
-
*/
|
|
18769
|
-
readonly eventId: string;
|
|
18770
|
-
}
|
|
18771
18731
|
/**
|
|
18772
18732
|
* Request parameters for getMonthlyEvents operation in EventsStaffApi.
|
|
18773
18733
|
* @export
|
|
@@ -18865,14 +18825,6 @@ export declare class EventsStaffApi extends BaseAPI {
|
|
|
18865
18825
|
* @memberof EventsStaffApi
|
|
18866
18826
|
*/
|
|
18867
18827
|
getDailyEvents(requestParameters?: EventsStaffApiGetDailyEventsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EventsListResponse, any, {}>>;
|
|
18868
|
-
/**
|
|
18869
|
-
*
|
|
18870
|
-
* @param {EventsStaffApiGetEventByIdStaffRequest} requestParameters Request parameters.
|
|
18871
|
-
* @param {*} [options] Override http request option.
|
|
18872
|
-
* @throws {RequiredError}
|
|
18873
|
-
* @memberof EventsStaffApi
|
|
18874
|
-
*/
|
|
18875
|
-
getEventByIdStaff(requestParameters: EventsStaffApiGetEventByIdStaffRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PublishEventResponse, any, {}>>;
|
|
18876
18828
|
/**
|
|
18877
18829
|
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
18878
18830
|
* @param {*} [options] Override http request option.
|
|
@@ -20013,6 +19965,13 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
20013
19965
|
* @throws {RequiredError}
|
|
20014
19966
|
*/
|
|
20015
19967
|
login: (loginRequestBody: LoginRequestBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
19968
|
+
/**
|
|
19969
|
+
*
|
|
19970
|
+
* @param {LoginRequestBody} loginRequestBody
|
|
19971
|
+
* @param {*} [options] Override http request option.
|
|
19972
|
+
* @throws {RequiredError}
|
|
19973
|
+
*/
|
|
19974
|
+
loginClubMember: (loginRequestBody: LoginRequestBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
20016
19975
|
/**
|
|
20017
19976
|
*
|
|
20018
19977
|
* @param {RefreshTokenRequestBody} refreshTokenRequestBody
|
|
@@ -20296,6 +20255,13 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
|
|
|
20296
20255
|
* @throws {RequiredError}
|
|
20297
20256
|
*/
|
|
20298
20257
|
login(loginRequestBody: LoginRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponse>>;
|
|
20258
|
+
/**
|
|
20259
|
+
*
|
|
20260
|
+
* @param {LoginRequestBody} loginRequestBody
|
|
20261
|
+
* @param {*} [options] Override http request option.
|
|
20262
|
+
* @throws {RequiredError}
|
|
20263
|
+
*/
|
|
20264
|
+
loginClubMember(loginRequestBody: LoginRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponse>>;
|
|
20299
20265
|
/**
|
|
20300
20266
|
*
|
|
20301
20267
|
* @param {RefreshTokenRequestBody} refreshTokenRequestBody
|
|
@@ -20560,6 +20526,13 @@ export declare const UsersApiFactory: (configuration?: Configuration, basePath?:
|
|
|
20560
20526
|
* @throws {RequiredError}
|
|
20561
20527
|
*/
|
|
20562
20528
|
login(requestParameters: UsersApiLoginRequest, options?: RawAxiosRequestConfig): AxiosPromise<LoginResponse>;
|
|
20529
|
+
/**
|
|
20530
|
+
*
|
|
20531
|
+
* @param {UsersApiLoginClubMemberRequest} requestParameters Request parameters.
|
|
20532
|
+
* @param {*} [options] Override http request option.
|
|
20533
|
+
* @throws {RequiredError}
|
|
20534
|
+
*/
|
|
20535
|
+
loginClubMember(requestParameters: UsersApiLoginClubMemberRequest, options?: RawAxiosRequestConfig): AxiosPromise<LoginResponse>;
|
|
20563
20536
|
/**
|
|
20564
20537
|
*
|
|
20565
20538
|
* @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.
|
|
@@ -20961,6 +20934,19 @@ export interface UsersApiLoginRequest {
|
|
|
20961
20934
|
*/
|
|
20962
20935
|
readonly loginRequestBody: LoginRequestBody;
|
|
20963
20936
|
}
|
|
20937
|
+
/**
|
|
20938
|
+
* Request parameters for loginClubMember operation in UsersApi.
|
|
20939
|
+
* @export
|
|
20940
|
+
* @interface UsersApiLoginClubMemberRequest
|
|
20941
|
+
*/
|
|
20942
|
+
export interface UsersApiLoginClubMemberRequest {
|
|
20943
|
+
/**
|
|
20944
|
+
*
|
|
20945
|
+
* @type {LoginRequestBody}
|
|
20946
|
+
* @memberof UsersApiLoginClubMember
|
|
20947
|
+
*/
|
|
20948
|
+
readonly loginRequestBody: LoginRequestBody;
|
|
20949
|
+
}
|
|
20964
20950
|
/**
|
|
20965
20951
|
* Request parameters for refreshToken operation in UsersApi.
|
|
20966
20952
|
* @export
|
|
@@ -21326,6 +21312,14 @@ export declare class UsersApi extends BaseAPI {
|
|
|
21326
21312
|
* @memberof UsersApi
|
|
21327
21313
|
*/
|
|
21328
21314
|
login(requestParameters: UsersApiLoginRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LoginResponse, any, {}>>;
|
|
21315
|
+
/**
|
|
21316
|
+
*
|
|
21317
|
+
* @param {UsersApiLoginClubMemberRequest} requestParameters Request parameters.
|
|
21318
|
+
* @param {*} [options] Override http request option.
|
|
21319
|
+
* @throws {RequiredError}
|
|
21320
|
+
* @memberof UsersApi
|
|
21321
|
+
*/
|
|
21322
|
+
loginClubMember(requestParameters: UsersApiLoginClubMemberRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LoginResponse, any, {}>>;
|
|
21329
21323
|
/**
|
|
21330
21324
|
*
|
|
21331
21325
|
* @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.
|
package/dist/api.js
CHANGED
|
@@ -10467,37 +10467,6 @@ const EventsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
10467
10467
|
options: localVarRequestOptions,
|
|
10468
10468
|
};
|
|
10469
10469
|
}),
|
|
10470
|
-
/**
|
|
10471
|
-
*
|
|
10472
|
-
* @param {string} eventId
|
|
10473
|
-
* @param {*} [options] Override http request option.
|
|
10474
|
-
* @throws {RequiredError}
|
|
10475
|
-
*/
|
|
10476
|
-
getEventByIdStaff: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
|
|
10477
|
-
// verify required parameter 'eventId' is not null or undefined
|
|
10478
|
-
(0, common_1.assertParamExists)('getEventByIdStaff', 'eventId', eventId);
|
|
10479
|
-
const localVarPath = `/api/events/staff/{eventId}`
|
|
10480
|
-
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
10481
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10482
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10483
|
-
let baseOptions;
|
|
10484
|
-
if (configuration) {
|
|
10485
|
-
baseOptions = configuration.baseOptions;
|
|
10486
|
-
}
|
|
10487
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
10488
|
-
const localVarHeaderParameter = {};
|
|
10489
|
-
const localVarQueryParameter = {};
|
|
10490
|
-
// authentication bearerAuth required
|
|
10491
|
-
// http bearer authentication required
|
|
10492
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
10493
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10494
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10495
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10496
|
-
return {
|
|
10497
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10498
|
-
options: localVarRequestOptions,
|
|
10499
|
-
};
|
|
10500
|
-
}),
|
|
10501
10470
|
/**
|
|
10502
10471
|
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
10503
10472
|
* @param {*} [options] Override http request option.
|
|
@@ -10664,21 +10633,6 @@ const EventsStaffApiFp = function (configuration) {
|
|
|
10664
10633
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10665
10634
|
});
|
|
10666
10635
|
},
|
|
10667
|
-
/**
|
|
10668
|
-
*
|
|
10669
|
-
* @param {string} eventId
|
|
10670
|
-
* @param {*} [options] Override http request option.
|
|
10671
|
-
* @throws {RequiredError}
|
|
10672
|
-
*/
|
|
10673
|
-
getEventByIdStaff(eventId, options) {
|
|
10674
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
10675
|
-
var _a, _b, _c;
|
|
10676
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventByIdStaff(eventId, options);
|
|
10677
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
10678
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsStaffApi.getEventByIdStaff']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
10679
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10680
|
-
});
|
|
10681
|
-
},
|
|
10682
10636
|
/**
|
|
10683
10637
|
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
10684
10638
|
* @param {*} [options] Override http request option.
|
|
@@ -10759,15 +10713,6 @@ const EventsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
10759
10713
|
getDailyEvents(requestParameters = {}, options) {
|
|
10760
10714
|
return localVarFp.getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
10761
10715
|
},
|
|
10762
|
-
/**
|
|
10763
|
-
*
|
|
10764
|
-
* @param {EventsStaffApiGetEventByIdStaffRequest} requestParameters Request parameters.
|
|
10765
|
-
* @param {*} [options] Override http request option.
|
|
10766
|
-
* @throws {RequiredError}
|
|
10767
|
-
*/
|
|
10768
|
-
getEventByIdStaff(requestParameters, options) {
|
|
10769
|
-
return localVarFp.getEventByIdStaff(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
10770
|
-
},
|
|
10771
10716
|
/**
|
|
10772
10717
|
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
10773
10718
|
* @param {*} [options] Override http request option.
|
|
@@ -10824,16 +10769,6 @@ class EventsStaffApi extends base_1.BaseAPI {
|
|
|
10824
10769
|
getDailyEvents(requestParameters = {}, options) {
|
|
10825
10770
|
return (0, exports.EventsStaffApiFp)(this.configuration).getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
10826
10771
|
}
|
|
10827
|
-
/**
|
|
10828
|
-
*
|
|
10829
|
-
* @param {EventsStaffApiGetEventByIdStaffRequest} requestParameters Request parameters.
|
|
10830
|
-
* @param {*} [options] Override http request option.
|
|
10831
|
-
* @throws {RequiredError}
|
|
10832
|
-
* @memberof EventsStaffApi
|
|
10833
|
-
*/
|
|
10834
|
-
getEventByIdStaff(requestParameters, options) {
|
|
10835
|
-
return (0, exports.EventsStaffApiFp)(this.configuration).getEventByIdStaff(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
10836
|
-
}
|
|
10837
10772
|
/**
|
|
10838
10773
|
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
10839
10774
|
* @param {*} [options] Override http request option.
|
|
@@ -13044,6 +12979,35 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
13044
12979
|
options: localVarRequestOptions,
|
|
13045
12980
|
};
|
|
13046
12981
|
}),
|
|
12982
|
+
/**
|
|
12983
|
+
*
|
|
12984
|
+
* @param {LoginRequestBody} loginRequestBody
|
|
12985
|
+
* @param {*} [options] Override http request option.
|
|
12986
|
+
* @throws {RequiredError}
|
|
12987
|
+
*/
|
|
12988
|
+
loginClubMember: (loginRequestBody_1, ...args_1) => __awaiter(this, [loginRequestBody_1, ...args_1], void 0, function* (loginRequestBody, options = {}) {
|
|
12989
|
+
// verify required parameter 'loginRequestBody' is not null or undefined
|
|
12990
|
+
(0, common_1.assertParamExists)('loginClubMember', 'loginRequestBody', loginRequestBody);
|
|
12991
|
+
const localVarPath = `/api/users/club-members/login`;
|
|
12992
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12993
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12994
|
+
let baseOptions;
|
|
12995
|
+
if (configuration) {
|
|
12996
|
+
baseOptions = configuration.baseOptions;
|
|
12997
|
+
}
|
|
12998
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
12999
|
+
const localVarHeaderParameter = {};
|
|
13000
|
+
const localVarQueryParameter = {};
|
|
13001
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13002
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13003
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13004
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13005
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(loginRequestBody, localVarRequestOptions, configuration);
|
|
13006
|
+
return {
|
|
13007
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13008
|
+
options: localVarRequestOptions,
|
|
13009
|
+
};
|
|
13010
|
+
}),
|
|
13047
13011
|
/**
|
|
13048
13012
|
*
|
|
13049
13013
|
* @param {RefreshTokenRequestBody} refreshTokenRequestBody
|
|
@@ -13847,6 +13811,21 @@ const UsersApiFp = function (configuration) {
|
|
|
13847
13811
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13848
13812
|
});
|
|
13849
13813
|
},
|
|
13814
|
+
/**
|
|
13815
|
+
*
|
|
13816
|
+
* @param {LoginRequestBody} loginRequestBody
|
|
13817
|
+
* @param {*} [options] Override http request option.
|
|
13818
|
+
* @throws {RequiredError}
|
|
13819
|
+
*/
|
|
13820
|
+
loginClubMember(loginRequestBody, options) {
|
|
13821
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13822
|
+
var _a, _b, _c;
|
|
13823
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.loginClubMember(loginRequestBody, options);
|
|
13824
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13825
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.loginClubMember']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13826
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13827
|
+
});
|
|
13828
|
+
},
|
|
13850
13829
|
/**
|
|
13851
13830
|
*
|
|
13852
13831
|
* @param {RefreshTokenRequestBody} refreshTokenRequestBody
|
|
@@ -14271,6 +14250,15 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
14271
14250
|
login(requestParameters, options) {
|
|
14272
14251
|
return localVarFp.login(requestParameters.loginRequestBody, options).then((request) => request(axios, basePath));
|
|
14273
14252
|
},
|
|
14253
|
+
/**
|
|
14254
|
+
*
|
|
14255
|
+
* @param {UsersApiLoginClubMemberRequest} requestParameters Request parameters.
|
|
14256
|
+
* @param {*} [options] Override http request option.
|
|
14257
|
+
* @throws {RequiredError}
|
|
14258
|
+
*/
|
|
14259
|
+
loginClubMember(requestParameters, options) {
|
|
14260
|
+
return localVarFp.loginClubMember(requestParameters.loginRequestBody, options).then((request) => request(axios, basePath));
|
|
14261
|
+
},
|
|
14274
14262
|
/**
|
|
14275
14263
|
*
|
|
14276
14264
|
* @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.
|
|
@@ -14627,6 +14615,16 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
14627
14615
|
login(requestParameters, options) {
|
|
14628
14616
|
return (0, exports.UsersApiFp)(this.configuration).login(requestParameters.loginRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
14629
14617
|
}
|
|
14618
|
+
/**
|
|
14619
|
+
*
|
|
14620
|
+
* @param {UsersApiLoginClubMemberRequest} requestParameters Request parameters.
|
|
14621
|
+
* @param {*} [options] Override http request option.
|
|
14622
|
+
* @throws {RequiredError}
|
|
14623
|
+
* @memberof UsersApi
|
|
14624
|
+
*/
|
|
14625
|
+
loginClubMember(requestParameters, options) {
|
|
14626
|
+
return (0, exports.UsersApiFp)(this.configuration).loginClubMember(requestParameters.loginRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
14627
|
+
}
|
|
14630
14628
|
/**
|
|
14631
14629
|
*
|
|
14632
14630
|
* @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -8367,12 +8367,6 @@ export interface PublishEventResponse {
|
|
|
8367
8367
|
* @memberof PublishEventResponse
|
|
8368
8368
|
*/
|
|
8369
8369
|
'needsToSetupPaymentMethod'?: boolean;
|
|
8370
|
-
/**
|
|
8371
|
-
*
|
|
8372
|
-
* @type {Array<EventBookingResponse>}
|
|
8373
|
-
* @memberof PublishEventResponse
|
|
8374
|
-
*/
|
|
8375
|
-
'eventBookings'?: Array<EventBookingResponse>;
|
|
8376
8370
|
}
|
|
8377
8371
|
/**
|
|
8378
8372
|
*
|
|
@@ -18556,13 +18550,6 @@ export declare const EventsStaffApiAxiosParamCreator: (configuration?: Configura
|
|
|
18556
18550
|
* @throws {RequiredError}
|
|
18557
18551
|
*/
|
|
18558
18552
|
getDailyEvents: (clubId?: string, date?: string, visibilityType?: GetDailyEventsVisibilityTypeEnum, type?: GetDailyEventsTypeEnum, sportId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
18559
|
-
/**
|
|
18560
|
-
*
|
|
18561
|
-
* @param {string} eventId
|
|
18562
|
-
* @param {*} [options] Override http request option.
|
|
18563
|
-
* @throws {RequiredError}
|
|
18564
|
-
*/
|
|
18565
|
-
getEventByIdStaff: (eventId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
18566
18553
|
/**
|
|
18567
18554
|
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
18568
18555
|
* @param {*} [options] Override http request option.
|
|
@@ -18616,13 +18603,6 @@ export declare const EventsStaffApiFp: (configuration?: Configuration) => {
|
|
|
18616
18603
|
* @throws {RequiredError}
|
|
18617
18604
|
*/
|
|
18618
18605
|
getDailyEvents(clubId?: string, date?: string, visibilityType?: GetDailyEventsVisibilityTypeEnum, type?: GetDailyEventsTypeEnum, sportId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventsListResponse>>;
|
|
18619
|
-
/**
|
|
18620
|
-
*
|
|
18621
|
-
* @param {string} eventId
|
|
18622
|
-
* @param {*} [options] Override http request option.
|
|
18623
|
-
* @throws {RequiredError}
|
|
18624
|
-
*/
|
|
18625
|
-
getEventByIdStaff(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PublishEventResponse>>;
|
|
18626
18606
|
/**
|
|
18627
18607
|
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
18628
18608
|
* @param {*} [options] Override http request option.
|
|
@@ -18671,13 +18651,6 @@ export declare const EventsStaffApiFactory: (configuration?: Configuration, base
|
|
|
18671
18651
|
* @throws {RequiredError}
|
|
18672
18652
|
*/
|
|
18673
18653
|
getDailyEvents(requestParameters?: EventsStaffApiGetDailyEventsRequest, options?: RawAxiosRequestConfig): AxiosPromise<EventsListResponse>;
|
|
18674
|
-
/**
|
|
18675
|
-
*
|
|
18676
|
-
* @param {EventsStaffApiGetEventByIdStaffRequest} requestParameters Request parameters.
|
|
18677
|
-
* @param {*} [options] Override http request option.
|
|
18678
|
-
* @throws {RequiredError}
|
|
18679
|
-
*/
|
|
18680
|
-
getEventByIdStaff(requestParameters: EventsStaffApiGetEventByIdStaffRequest, options?: RawAxiosRequestConfig): AxiosPromise<PublishEventResponse>;
|
|
18681
18654
|
/**
|
|
18682
18655
|
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
18683
18656
|
* @param {*} [options] Override http request option.
|
|
@@ -18755,19 +18728,6 @@ export interface EventsStaffApiGetDailyEventsRequest {
|
|
|
18755
18728
|
*/
|
|
18756
18729
|
readonly sportId?: string;
|
|
18757
18730
|
}
|
|
18758
|
-
/**
|
|
18759
|
-
* Request parameters for getEventByIdStaff operation in EventsStaffApi.
|
|
18760
|
-
* @export
|
|
18761
|
-
* @interface EventsStaffApiGetEventByIdStaffRequest
|
|
18762
|
-
*/
|
|
18763
|
-
export interface EventsStaffApiGetEventByIdStaffRequest {
|
|
18764
|
-
/**
|
|
18765
|
-
*
|
|
18766
|
-
* @type {string}
|
|
18767
|
-
* @memberof EventsStaffApiGetEventByIdStaff
|
|
18768
|
-
*/
|
|
18769
|
-
readonly eventId: string;
|
|
18770
|
-
}
|
|
18771
18731
|
/**
|
|
18772
18732
|
* Request parameters for getMonthlyEvents operation in EventsStaffApi.
|
|
18773
18733
|
* @export
|
|
@@ -18865,14 +18825,6 @@ export declare class EventsStaffApi extends BaseAPI {
|
|
|
18865
18825
|
* @memberof EventsStaffApi
|
|
18866
18826
|
*/
|
|
18867
18827
|
getDailyEvents(requestParameters?: EventsStaffApiGetDailyEventsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EventsListResponse, any, {}>>;
|
|
18868
|
-
/**
|
|
18869
|
-
*
|
|
18870
|
-
* @param {EventsStaffApiGetEventByIdStaffRequest} requestParameters Request parameters.
|
|
18871
|
-
* @param {*} [options] Override http request option.
|
|
18872
|
-
* @throws {RequiredError}
|
|
18873
|
-
* @memberof EventsStaffApi
|
|
18874
|
-
*/
|
|
18875
|
-
getEventByIdStaff(requestParameters: EventsStaffApiGetEventByIdStaffRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PublishEventResponse, any, {}>>;
|
|
18876
18828
|
/**
|
|
18877
18829
|
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
18878
18830
|
* @param {*} [options] Override http request option.
|
|
@@ -20013,6 +19965,13 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
20013
19965
|
* @throws {RequiredError}
|
|
20014
19966
|
*/
|
|
20015
19967
|
login: (loginRequestBody: LoginRequestBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
19968
|
+
/**
|
|
19969
|
+
*
|
|
19970
|
+
* @param {LoginRequestBody} loginRequestBody
|
|
19971
|
+
* @param {*} [options] Override http request option.
|
|
19972
|
+
* @throws {RequiredError}
|
|
19973
|
+
*/
|
|
19974
|
+
loginClubMember: (loginRequestBody: LoginRequestBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
20016
19975
|
/**
|
|
20017
19976
|
*
|
|
20018
19977
|
* @param {RefreshTokenRequestBody} refreshTokenRequestBody
|
|
@@ -20296,6 +20255,13 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
|
|
|
20296
20255
|
* @throws {RequiredError}
|
|
20297
20256
|
*/
|
|
20298
20257
|
login(loginRequestBody: LoginRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponse>>;
|
|
20258
|
+
/**
|
|
20259
|
+
*
|
|
20260
|
+
* @param {LoginRequestBody} loginRequestBody
|
|
20261
|
+
* @param {*} [options] Override http request option.
|
|
20262
|
+
* @throws {RequiredError}
|
|
20263
|
+
*/
|
|
20264
|
+
loginClubMember(loginRequestBody: LoginRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponse>>;
|
|
20299
20265
|
/**
|
|
20300
20266
|
*
|
|
20301
20267
|
* @param {RefreshTokenRequestBody} refreshTokenRequestBody
|
|
@@ -20560,6 +20526,13 @@ export declare const UsersApiFactory: (configuration?: Configuration, basePath?:
|
|
|
20560
20526
|
* @throws {RequiredError}
|
|
20561
20527
|
*/
|
|
20562
20528
|
login(requestParameters: UsersApiLoginRequest, options?: RawAxiosRequestConfig): AxiosPromise<LoginResponse>;
|
|
20529
|
+
/**
|
|
20530
|
+
*
|
|
20531
|
+
* @param {UsersApiLoginClubMemberRequest} requestParameters Request parameters.
|
|
20532
|
+
* @param {*} [options] Override http request option.
|
|
20533
|
+
* @throws {RequiredError}
|
|
20534
|
+
*/
|
|
20535
|
+
loginClubMember(requestParameters: UsersApiLoginClubMemberRequest, options?: RawAxiosRequestConfig): AxiosPromise<LoginResponse>;
|
|
20563
20536
|
/**
|
|
20564
20537
|
*
|
|
20565
20538
|
* @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.
|
|
@@ -20961,6 +20934,19 @@ export interface UsersApiLoginRequest {
|
|
|
20961
20934
|
*/
|
|
20962
20935
|
readonly loginRequestBody: LoginRequestBody;
|
|
20963
20936
|
}
|
|
20937
|
+
/**
|
|
20938
|
+
* Request parameters for loginClubMember operation in UsersApi.
|
|
20939
|
+
* @export
|
|
20940
|
+
* @interface UsersApiLoginClubMemberRequest
|
|
20941
|
+
*/
|
|
20942
|
+
export interface UsersApiLoginClubMemberRequest {
|
|
20943
|
+
/**
|
|
20944
|
+
*
|
|
20945
|
+
* @type {LoginRequestBody}
|
|
20946
|
+
* @memberof UsersApiLoginClubMember
|
|
20947
|
+
*/
|
|
20948
|
+
readonly loginRequestBody: LoginRequestBody;
|
|
20949
|
+
}
|
|
20964
20950
|
/**
|
|
20965
20951
|
* Request parameters for refreshToken operation in UsersApi.
|
|
20966
20952
|
* @export
|
|
@@ -21326,6 +21312,14 @@ export declare class UsersApi extends BaseAPI {
|
|
|
21326
21312
|
* @memberof UsersApi
|
|
21327
21313
|
*/
|
|
21328
21314
|
login(requestParameters: UsersApiLoginRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LoginResponse, any, {}>>;
|
|
21315
|
+
/**
|
|
21316
|
+
*
|
|
21317
|
+
* @param {UsersApiLoginClubMemberRequest} requestParameters Request parameters.
|
|
21318
|
+
* @param {*} [options] Override http request option.
|
|
21319
|
+
* @throws {RequiredError}
|
|
21320
|
+
* @memberof UsersApi
|
|
21321
|
+
*/
|
|
21322
|
+
loginClubMember(requestParameters: UsersApiLoginClubMemberRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LoginResponse, any, {}>>;
|
|
21329
21323
|
/**
|
|
21330
21324
|
*
|
|
21331
21325
|
* @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.
|
package/dist/esm/api.js
CHANGED
|
@@ -10385,37 +10385,6 @@ export const EventsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
10385
10385
|
options: localVarRequestOptions,
|
|
10386
10386
|
};
|
|
10387
10387
|
}),
|
|
10388
|
-
/**
|
|
10389
|
-
*
|
|
10390
|
-
* @param {string} eventId
|
|
10391
|
-
* @param {*} [options] Override http request option.
|
|
10392
|
-
* @throws {RequiredError}
|
|
10393
|
-
*/
|
|
10394
|
-
getEventByIdStaff: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
|
|
10395
|
-
// verify required parameter 'eventId' is not null or undefined
|
|
10396
|
-
assertParamExists('getEventByIdStaff', 'eventId', eventId);
|
|
10397
|
-
const localVarPath = `/api/events/staff/{eventId}`
|
|
10398
|
-
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
10399
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10400
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10401
|
-
let baseOptions;
|
|
10402
|
-
if (configuration) {
|
|
10403
|
-
baseOptions = configuration.baseOptions;
|
|
10404
|
-
}
|
|
10405
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
10406
|
-
const localVarHeaderParameter = {};
|
|
10407
|
-
const localVarQueryParameter = {};
|
|
10408
|
-
// authentication bearerAuth required
|
|
10409
|
-
// http bearer authentication required
|
|
10410
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
10411
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10412
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10413
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10414
|
-
return {
|
|
10415
|
-
url: toPathString(localVarUrlObj),
|
|
10416
|
-
options: localVarRequestOptions,
|
|
10417
|
-
};
|
|
10418
|
-
}),
|
|
10419
10388
|
/**
|
|
10420
10389
|
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
10421
10390
|
* @param {*} [options] Override http request option.
|
|
@@ -10581,21 +10550,6 @@ export const EventsStaffApiFp = function (configuration) {
|
|
|
10581
10550
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10582
10551
|
});
|
|
10583
10552
|
},
|
|
10584
|
-
/**
|
|
10585
|
-
*
|
|
10586
|
-
* @param {string} eventId
|
|
10587
|
-
* @param {*} [options] Override http request option.
|
|
10588
|
-
* @throws {RequiredError}
|
|
10589
|
-
*/
|
|
10590
|
-
getEventByIdStaff(eventId, options) {
|
|
10591
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
10592
|
-
var _a, _b, _c;
|
|
10593
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventByIdStaff(eventId, options);
|
|
10594
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
10595
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getEventByIdStaff']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
10596
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10597
|
-
});
|
|
10598
|
-
},
|
|
10599
10553
|
/**
|
|
10600
10554
|
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
10601
10555
|
* @param {*} [options] Override http request option.
|
|
@@ -10675,15 +10629,6 @@ export const EventsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
10675
10629
|
getDailyEvents(requestParameters = {}, options) {
|
|
10676
10630
|
return localVarFp.getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
10677
10631
|
},
|
|
10678
|
-
/**
|
|
10679
|
-
*
|
|
10680
|
-
* @param {EventsStaffApiGetEventByIdStaffRequest} requestParameters Request parameters.
|
|
10681
|
-
* @param {*} [options] Override http request option.
|
|
10682
|
-
* @throws {RequiredError}
|
|
10683
|
-
*/
|
|
10684
|
-
getEventByIdStaff(requestParameters, options) {
|
|
10685
|
-
return localVarFp.getEventByIdStaff(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
10686
|
-
},
|
|
10687
10632
|
/**
|
|
10688
10633
|
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
10689
10634
|
* @param {*} [options] Override http request option.
|
|
@@ -10739,16 +10684,6 @@ export class EventsStaffApi extends BaseAPI {
|
|
|
10739
10684
|
getDailyEvents(requestParameters = {}, options) {
|
|
10740
10685
|
return EventsStaffApiFp(this.configuration).getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
10741
10686
|
}
|
|
10742
|
-
/**
|
|
10743
|
-
*
|
|
10744
|
-
* @param {EventsStaffApiGetEventByIdStaffRequest} requestParameters Request parameters.
|
|
10745
|
-
* @param {*} [options] Override http request option.
|
|
10746
|
-
* @throws {RequiredError}
|
|
10747
|
-
* @memberof EventsStaffApi
|
|
10748
|
-
*/
|
|
10749
|
-
getEventByIdStaff(requestParameters, options) {
|
|
10750
|
-
return EventsStaffApiFp(this.configuration).getEventByIdStaff(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
10751
|
-
}
|
|
10752
10687
|
/**
|
|
10753
10688
|
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
10754
10689
|
* @param {*} [options] Override http request option.
|
|
@@ -12926,6 +12861,35 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
12926
12861
|
options: localVarRequestOptions,
|
|
12927
12862
|
};
|
|
12928
12863
|
}),
|
|
12864
|
+
/**
|
|
12865
|
+
*
|
|
12866
|
+
* @param {LoginRequestBody} loginRequestBody
|
|
12867
|
+
* @param {*} [options] Override http request option.
|
|
12868
|
+
* @throws {RequiredError}
|
|
12869
|
+
*/
|
|
12870
|
+
loginClubMember: (loginRequestBody_1, ...args_1) => __awaiter(this, [loginRequestBody_1, ...args_1], void 0, function* (loginRequestBody, options = {}) {
|
|
12871
|
+
// verify required parameter 'loginRequestBody' is not null or undefined
|
|
12872
|
+
assertParamExists('loginClubMember', 'loginRequestBody', loginRequestBody);
|
|
12873
|
+
const localVarPath = `/api/users/club-members/login`;
|
|
12874
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12875
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12876
|
+
let baseOptions;
|
|
12877
|
+
if (configuration) {
|
|
12878
|
+
baseOptions = configuration.baseOptions;
|
|
12879
|
+
}
|
|
12880
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
12881
|
+
const localVarHeaderParameter = {};
|
|
12882
|
+
const localVarQueryParameter = {};
|
|
12883
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12884
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12885
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12886
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12887
|
+
localVarRequestOptions.data = serializeDataIfNeeded(loginRequestBody, localVarRequestOptions, configuration);
|
|
12888
|
+
return {
|
|
12889
|
+
url: toPathString(localVarUrlObj),
|
|
12890
|
+
options: localVarRequestOptions,
|
|
12891
|
+
};
|
|
12892
|
+
}),
|
|
12929
12893
|
/**
|
|
12930
12894
|
*
|
|
12931
12895
|
* @param {RefreshTokenRequestBody} refreshTokenRequestBody
|
|
@@ -13728,6 +13692,21 @@ export const UsersApiFp = function (configuration) {
|
|
|
13728
13692
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13729
13693
|
});
|
|
13730
13694
|
},
|
|
13695
|
+
/**
|
|
13696
|
+
*
|
|
13697
|
+
* @param {LoginRequestBody} loginRequestBody
|
|
13698
|
+
* @param {*} [options] Override http request option.
|
|
13699
|
+
* @throws {RequiredError}
|
|
13700
|
+
*/
|
|
13701
|
+
loginClubMember(loginRequestBody, options) {
|
|
13702
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13703
|
+
var _a, _b, _c;
|
|
13704
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.loginClubMember(loginRequestBody, options);
|
|
13705
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13706
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.loginClubMember']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13707
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13708
|
+
});
|
|
13709
|
+
},
|
|
13731
13710
|
/**
|
|
13732
13711
|
*
|
|
13733
13712
|
* @param {RefreshTokenRequestBody} refreshTokenRequestBody
|
|
@@ -14151,6 +14130,15 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
14151
14130
|
login(requestParameters, options) {
|
|
14152
14131
|
return localVarFp.login(requestParameters.loginRequestBody, options).then((request) => request(axios, basePath));
|
|
14153
14132
|
},
|
|
14133
|
+
/**
|
|
14134
|
+
*
|
|
14135
|
+
* @param {UsersApiLoginClubMemberRequest} requestParameters Request parameters.
|
|
14136
|
+
* @param {*} [options] Override http request option.
|
|
14137
|
+
* @throws {RequiredError}
|
|
14138
|
+
*/
|
|
14139
|
+
loginClubMember(requestParameters, options) {
|
|
14140
|
+
return localVarFp.loginClubMember(requestParameters.loginRequestBody, options).then((request) => request(axios, basePath));
|
|
14141
|
+
},
|
|
14154
14142
|
/**
|
|
14155
14143
|
*
|
|
14156
14144
|
* @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.
|
|
@@ -14506,6 +14494,16 @@ export class UsersApi extends BaseAPI {
|
|
|
14506
14494
|
login(requestParameters, options) {
|
|
14507
14495
|
return UsersApiFp(this.configuration).login(requestParameters.loginRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
14508
14496
|
}
|
|
14497
|
+
/**
|
|
14498
|
+
*
|
|
14499
|
+
* @param {UsersApiLoginClubMemberRequest} requestParameters Request parameters.
|
|
14500
|
+
* @param {*} [options] Override http request option.
|
|
14501
|
+
* @throws {RequiredError}
|
|
14502
|
+
* @memberof UsersApi
|
|
14503
|
+
*/
|
|
14504
|
+
loginClubMember(requestParameters, options) {
|
|
14505
|
+
return UsersApiFp(this.configuration).loginClubMember(requestParameters.loginRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
14506
|
+
}
|
|
14509
14507
|
/**
|
|
14510
14508
|
*
|
|
14511
14509
|
* @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.
|
package/docs/EventsStaffApi.md
CHANGED
|
@@ -6,7 +6,6 @@ All URIs are relative to *http://localhost*
|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**checkInEventParticipants**](#checkineventparticipants) | **POST** /api/events/{eventBookingId}/check-in | |
|
|
8
8
|
|[**getDailyEvents**](#getdailyevents) | **GET** /api/events/calendar/daily | |
|
|
9
|
-
|[**getEventByIdStaff**](#geteventbyidstaff) | **GET** /api/events/staff/{eventId} | |
|
|
10
9
|
|[**getEventsByClub**](#geteventsbyclub) | **GET** /api/events/staff/getEvents | |
|
|
11
10
|
|[**getMonthlyEvents**](#getmonthlyevents) | **GET** /api/events/calendar/monthly | |
|
|
12
11
|
|[**getWeeklyEvents**](#getweeklyevents) | **GET** /api/events/calendar/weekly | |
|
|
@@ -134,56 +133,6 @@ const { status, data } = await apiInstance.getDailyEvents(
|
|
|
134
133
|
|
|
135
134
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
136
135
|
|
|
137
|
-
# **getEventByIdStaff**
|
|
138
|
-
> PublishEventResponse getEventByIdStaff()
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
### Example
|
|
142
|
-
|
|
143
|
-
```typescript
|
|
144
|
-
import {
|
|
145
|
-
EventsStaffApi,
|
|
146
|
-
Configuration
|
|
147
|
-
} from '@tennac-booking/sdk';
|
|
148
|
-
|
|
149
|
-
const configuration = new Configuration();
|
|
150
|
-
const apiInstance = new EventsStaffApi(configuration);
|
|
151
|
-
|
|
152
|
-
let eventId: string; // (default to undefined)
|
|
153
|
-
|
|
154
|
-
const { status, data } = await apiInstance.getEventByIdStaff(
|
|
155
|
-
eventId
|
|
156
|
-
);
|
|
157
|
-
```
|
|
158
|
-
|
|
159
|
-
### Parameters
|
|
160
|
-
|
|
161
|
-
|Name | Type | Description | Notes|
|
|
162
|
-
|------------- | ------------- | ------------- | -------------|
|
|
163
|
-
| **eventId** | [**string**] | | defaults to undefined|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
### Return type
|
|
167
|
-
|
|
168
|
-
**PublishEventResponse**
|
|
169
|
-
|
|
170
|
-
### Authorization
|
|
171
|
-
|
|
172
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
173
|
-
|
|
174
|
-
### HTTP request headers
|
|
175
|
-
|
|
176
|
-
- **Content-Type**: Not defined
|
|
177
|
-
- **Accept**: application/json
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
### HTTP response details
|
|
181
|
-
| Status code | Description | Response headers |
|
|
182
|
-
|-------------|-------------|------------------|
|
|
183
|
-
|**200** | Event details (staff) | - |
|
|
184
|
-
|
|
185
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
186
|
-
|
|
187
136
|
# **getEventsByClub**
|
|
188
137
|
> EventsListResponse getEventsByClub()
|
|
189
138
|
|
|
@@ -9,7 +9,6 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**refundedBookingIds** | **Array<string>** | | [optional] [default to undefined]
|
|
10
10
|
**userBooking** | [**EventBookingResponse**](EventBookingResponse.md) | | [optional] [default to undefined]
|
|
11
11
|
**needsToSetupPaymentMethod** | **boolean** | | [optional] [default to undefined]
|
|
12
|
-
**eventBookings** | [**Array<EventBookingResponse>**](EventBookingResponse.md) | | [optional] [default to undefined]
|
|
13
12
|
|
|
14
13
|
## Example
|
|
15
14
|
|
|
@@ -21,7 +20,6 @@ const instance: PublishEventResponse = {
|
|
|
21
20
|
refundedBookingIds,
|
|
22
21
|
userBooking,
|
|
23
22
|
needsToSetupPaymentMethod,
|
|
24
|
-
eventBookings,
|
|
25
23
|
};
|
|
26
24
|
```
|
|
27
25
|
|
package/docs/UsersApi.md
CHANGED
|
@@ -26,6 +26,7 @@ All URIs are relative to *http://localhost*
|
|
|
26
26
|
|[**getUserProfileById**](#getuserprofilebyid) | **GET** /api/users/profile/{id} | |
|
|
27
27
|
|[**listPlayers**](#listplayers) | **GET** /api/users/players | |
|
|
28
28
|
|[**login**](#login) | **POST** /api/users/login | |
|
|
29
|
+
|[**loginClubMember**](#loginclubmember) | **POST** /api/users/club-members/login | |
|
|
29
30
|
|[**refreshToken**](#refreshtoken) | **POST** /api/users/refresh-token | |
|
|
30
31
|
|[**register**](#register) | **POST** /api/users | |
|
|
31
32
|
|[**removeFavoriteClub**](#removefavoriteclub) | **DELETE** /api/users/me/favorite-clubs/{clubId} | |
|
|
@@ -1129,6 +1130,57 @@ const { status, data } = await apiInstance.login(
|
|
|
1129
1130
|
| **loginRequestBody** | **LoginRequestBody**| | |
|
|
1130
1131
|
|
|
1131
1132
|
|
|
1133
|
+
### Return type
|
|
1134
|
+
|
|
1135
|
+
**LoginResponse**
|
|
1136
|
+
|
|
1137
|
+
### Authorization
|
|
1138
|
+
|
|
1139
|
+
No authorization required
|
|
1140
|
+
|
|
1141
|
+
### HTTP request headers
|
|
1142
|
+
|
|
1143
|
+
- **Content-Type**: application/json
|
|
1144
|
+
- **Accept**: application/json
|
|
1145
|
+
|
|
1146
|
+
|
|
1147
|
+
### HTTP response details
|
|
1148
|
+
| Status code | Description | Response headers |
|
|
1149
|
+
|-------------|-------------|------------------|
|
|
1150
|
+
|**200** | Ok | - |
|
|
1151
|
+
|
|
1152
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
1153
|
+
|
|
1154
|
+
# **loginClubMember**
|
|
1155
|
+
> LoginResponse loginClubMember(loginRequestBody)
|
|
1156
|
+
|
|
1157
|
+
|
|
1158
|
+
### Example
|
|
1159
|
+
|
|
1160
|
+
```typescript
|
|
1161
|
+
import {
|
|
1162
|
+
UsersApi,
|
|
1163
|
+
Configuration,
|
|
1164
|
+
LoginRequestBody
|
|
1165
|
+
} from '@tennac-booking/sdk';
|
|
1166
|
+
|
|
1167
|
+
const configuration = new Configuration();
|
|
1168
|
+
const apiInstance = new UsersApi(configuration);
|
|
1169
|
+
|
|
1170
|
+
let loginRequestBody: LoginRequestBody; //
|
|
1171
|
+
|
|
1172
|
+
const { status, data } = await apiInstance.loginClubMember(
|
|
1173
|
+
loginRequestBody
|
|
1174
|
+
);
|
|
1175
|
+
```
|
|
1176
|
+
|
|
1177
|
+
### Parameters
|
|
1178
|
+
|
|
1179
|
+
|Name | Type | Description | Notes|
|
|
1180
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1181
|
+
| **loginRequestBody** | **LoginRequestBody**| | |
|
|
1182
|
+
|
|
1183
|
+
|
|
1132
1184
|
### Return type
|
|
1133
1185
|
|
|
1134
1186
|
**LoginResponse**
|