@tennac-booking/sdk 1.0.202 → 1.0.204
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/.openapi-generator/FILES +2 -0
- package/README.md +3 -0
- package/api.ts +163 -2
- package/dist/api.d.ts +120 -2
- package/dist/api.js +67 -0
- package/dist/esm/api.d.ts +120 -2
- package/dist/esm/api.js +67 -0
- package/docs/ClubPricingPeriodPayload.md +32 -0
- package/docs/ComingEventsPageResponse.md +22 -0
- package/docs/EventsApi.md +57 -0
- package/docs/UpdateClubHoursSettingsRequest.md +1 -1
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -100,6 +100,7 @@ docs/ClubPlayerSubscriptionSummary.md
|
|
|
100
100
|
docs/ClubPlayersPaginatedResponse.md
|
|
101
101
|
docs/ClubPresentation.md
|
|
102
102
|
docs/ClubPresentationSettingsResponse.md
|
|
103
|
+
docs/ClubPricingPeriodPayload.md
|
|
103
104
|
docs/ClubPricingPeriodResponse.md
|
|
104
105
|
docs/ClubReservationSettingsResponse.md
|
|
105
106
|
docs/ClubResponse.md
|
|
@@ -119,6 +120,7 @@ docs/ClubUserCountResponse.md
|
|
|
119
120
|
docs/ClubsApi.md
|
|
120
121
|
docs/ClubsManagerApi.md
|
|
121
122
|
docs/ClubsStaffApi.md
|
|
123
|
+
docs/ComingEventsPageResponse.md
|
|
122
124
|
docs/CompleteRegisterRequestBody.md
|
|
123
125
|
docs/CompleteRegisterRequestBodyLevelBySportsInner.md
|
|
124
126
|
docs/ContactApi.md
|
package/README.md
CHANGED
|
@@ -182,6 +182,7 @@ Class | Method | HTTP request | Description
|
|
|
182
182
|
*EventsApi* | [**checkTeamNameAvailability**](docs/EventsApi.md#checkteamnameavailability) | **GET** /api/events/{eventId}/team-name-availability |
|
|
183
183
|
*EventsApi* | [**estimateEventPrice**](docs/EventsApi.md#estimateeventprice) | **POST** /api/events/{eventId}/estimate-price |
|
|
184
184
|
*EventsApi* | [**estimateOpenEventBookingJoinPrice**](docs/EventsApi.md#estimateopeneventbookingjoinprice) | **GET** /api/events/{eventBookingId}/open/estimate |
|
|
185
|
+
*EventsApi* | [**getComingEvent**](docs/EventsApi.md#getcomingevent) | **GET** /api/events/coming |
|
|
185
186
|
*EventsApi* | [**getEventById**](docs/EventsApi.md#geteventbyid) | **GET** /api/events/{eventId} |
|
|
186
187
|
*EventsApi* | [**getOpenEventBookingJoinPrice**](docs/EventsApi.md#getopeneventbookingjoinprice) | **GET** /api/events/{eventBookingId}/open/join-price |
|
|
187
188
|
*EventsApi* | [**getOpenEventBookings**](docs/EventsApi.md#getopeneventbookings) | **GET** /api/events/open |
|
|
@@ -382,6 +383,7 @@ Class | Method | HTTP request | Description
|
|
|
382
383
|
- [ClubPlayersPaginatedResponse](docs/ClubPlayersPaginatedResponse.md)
|
|
383
384
|
- [ClubPresentation](docs/ClubPresentation.md)
|
|
384
385
|
- [ClubPresentationSettingsResponse](docs/ClubPresentationSettingsResponse.md)
|
|
386
|
+
- [ClubPricingPeriodPayload](docs/ClubPricingPeriodPayload.md)
|
|
385
387
|
- [ClubPricingPeriodResponse](docs/ClubPricingPeriodResponse.md)
|
|
386
388
|
- [ClubReservationSettingsResponse](docs/ClubReservationSettingsResponse.md)
|
|
387
389
|
- [ClubResponse](docs/ClubResponse.md)
|
|
@@ -394,6 +396,7 @@ Class | Method | HTTP request | Description
|
|
|
394
396
|
- [ClubSubscriptions](docs/ClubSubscriptions.md)
|
|
395
397
|
- [ClubSummary](docs/ClubSummary.md)
|
|
396
398
|
- [ClubUserCountResponse](docs/ClubUserCountResponse.md)
|
|
399
|
+
- [ComingEventsPageResponse](docs/ComingEventsPageResponse.md)
|
|
397
400
|
- [CompleteRegisterRequestBody](docs/CompleteRegisterRequestBody.md)
|
|
398
401
|
- [CompleteRegisterRequestBodyLevelBySportsInner](docs/CompleteRegisterRequestBodyLevelBySportsInner.md)
|
|
399
402
|
- [ContactRequestBody](docs/ContactRequestBody.md)
|
package/api.ts
CHANGED
|
@@ -3399,6 +3399,55 @@ export interface ClubPresentationSettingsResponse {
|
|
|
3399
3399
|
*/
|
|
3400
3400
|
'sponsors': Array<Sponsor>;
|
|
3401
3401
|
}
|
|
3402
|
+
/**
|
|
3403
|
+
*
|
|
3404
|
+
* @export
|
|
3405
|
+
* @interface ClubPricingPeriodPayload
|
|
3406
|
+
*/
|
|
3407
|
+
export interface ClubPricingPeriodPayload {
|
|
3408
|
+
/**
|
|
3409
|
+
*
|
|
3410
|
+
* @type {string}
|
|
3411
|
+
* @memberof ClubPricingPeriodPayload
|
|
3412
|
+
*/
|
|
3413
|
+
'_id'?: string;
|
|
3414
|
+
/**
|
|
3415
|
+
*
|
|
3416
|
+
* @type {string}
|
|
3417
|
+
* @memberof ClubPricingPeriodPayload
|
|
3418
|
+
*/
|
|
3419
|
+
'id'?: string;
|
|
3420
|
+
/**
|
|
3421
|
+
*
|
|
3422
|
+
* @type {string}
|
|
3423
|
+
* @memberof ClubPricingPeriodPayload
|
|
3424
|
+
*/
|
|
3425
|
+
'name': string;
|
|
3426
|
+
/**
|
|
3427
|
+
*
|
|
3428
|
+
* @type {Array<WeekdayKey>}
|
|
3429
|
+
* @memberof ClubPricingPeriodPayload
|
|
3430
|
+
*/
|
|
3431
|
+
'weekDays': Array<WeekdayKey>;
|
|
3432
|
+
/**
|
|
3433
|
+
*
|
|
3434
|
+
* @type {number}
|
|
3435
|
+
* @memberof ClubPricingPeriodPayload
|
|
3436
|
+
*/
|
|
3437
|
+
'startTime': number;
|
|
3438
|
+
/**
|
|
3439
|
+
*
|
|
3440
|
+
* @type {number}
|
|
3441
|
+
* @memberof ClubPricingPeriodPayload
|
|
3442
|
+
*/
|
|
3443
|
+
'endTime': number;
|
|
3444
|
+
/**
|
|
3445
|
+
*
|
|
3446
|
+
* @type {number}
|
|
3447
|
+
* @memberof ClubPricingPeriodPayload
|
|
3448
|
+
*/
|
|
3449
|
+
'priceVariation'?: number;
|
|
3450
|
+
}
|
|
3402
3451
|
/**
|
|
3403
3452
|
*
|
|
3404
3453
|
* @export
|
|
@@ -3900,6 +3949,25 @@ export interface ClubUserCountResponse {
|
|
|
3900
3949
|
*/
|
|
3901
3950
|
'count': number;
|
|
3902
3951
|
}
|
|
3952
|
+
/**
|
|
3953
|
+
*
|
|
3954
|
+
* @export
|
|
3955
|
+
* @interface ComingEventsPageResponse
|
|
3956
|
+
*/
|
|
3957
|
+
export interface ComingEventsPageResponse {
|
|
3958
|
+
/**
|
|
3959
|
+
*
|
|
3960
|
+
* @type {Array<EventResponse>}
|
|
3961
|
+
* @memberof ComingEventsPageResponse
|
|
3962
|
+
*/
|
|
3963
|
+
'events': Array<EventResponse>;
|
|
3964
|
+
/**
|
|
3965
|
+
*
|
|
3966
|
+
* @type {PaginationInfo}
|
|
3967
|
+
* @memberof ComingEventsPageResponse
|
|
3968
|
+
*/
|
|
3969
|
+
'pagination': PaginationInfo;
|
|
3970
|
+
}
|
|
3903
3971
|
/**
|
|
3904
3972
|
*
|
|
3905
3973
|
* @export
|
|
@@ -12297,10 +12365,10 @@ export interface UpdateClubHoursSettingsRequest {
|
|
|
12297
12365
|
'schedule'?: PartialRecordWeekdayKeyClubDayScheduleOrNullOrUndefined;
|
|
12298
12366
|
/**
|
|
12299
12367
|
*
|
|
12300
|
-
* @type {Array<
|
|
12368
|
+
* @type {Array<ClubPricingPeriodPayload>}
|
|
12301
12369
|
* @memberof UpdateClubHoursSettingsRequest
|
|
12302
12370
|
*/
|
|
12303
|
-
'pricingPeriods'?: Array<
|
|
12371
|
+
'pricingPeriods'?: Array<ClubPricingPeriodPayload>;
|
|
12304
12372
|
}
|
|
12305
12373
|
/**
|
|
12306
12374
|
*
|
|
@@ -26132,6 +26200,45 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
26132
26200
|
|
|
26133
26201
|
|
|
26134
26202
|
|
|
26203
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26204
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26205
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
26206
|
+
|
|
26207
|
+
return {
|
|
26208
|
+
url: toPathString(localVarUrlObj),
|
|
26209
|
+
options: localVarRequestOptions,
|
|
26210
|
+
};
|
|
26211
|
+
},
|
|
26212
|
+
/**
|
|
26213
|
+
* Get upcoming events for a club with pagination (max 10 per page)
|
|
26214
|
+
* @param {string} [clubId]
|
|
26215
|
+
* @param {number} [page]
|
|
26216
|
+
* @param {*} [options] Override http request option.
|
|
26217
|
+
* @throws {RequiredError}
|
|
26218
|
+
*/
|
|
26219
|
+
getComingEvent: async (clubId?: string, page?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26220
|
+
const localVarPath = `/api/events/coming`;
|
|
26221
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26222
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
26223
|
+
let baseOptions;
|
|
26224
|
+
if (configuration) {
|
|
26225
|
+
baseOptions = configuration.baseOptions;
|
|
26226
|
+
}
|
|
26227
|
+
|
|
26228
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
26229
|
+
const localVarHeaderParameter = {} as any;
|
|
26230
|
+
const localVarQueryParameter = {} as any;
|
|
26231
|
+
|
|
26232
|
+
if (clubId !== undefined) {
|
|
26233
|
+
localVarQueryParameter['clubId'] = clubId;
|
|
26234
|
+
}
|
|
26235
|
+
|
|
26236
|
+
if (page !== undefined) {
|
|
26237
|
+
localVarQueryParameter['page'] = page;
|
|
26238
|
+
}
|
|
26239
|
+
|
|
26240
|
+
|
|
26241
|
+
|
|
26135
26242
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26136
26243
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26137
26244
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -26513,6 +26620,19 @@ export const EventsApiFp = function(configuration?: Configuration) {
|
|
|
26513
26620
|
const localVarOperationServerBasePath = operationServerMap['EventsApi.estimateOpenEventBookingJoinPrice']?.[localVarOperationServerIndex]?.url;
|
|
26514
26621
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26515
26622
|
},
|
|
26623
|
+
/**
|
|
26624
|
+
* Get upcoming events for a club with pagination (max 10 per page)
|
|
26625
|
+
* @param {string} [clubId]
|
|
26626
|
+
* @param {number} [page]
|
|
26627
|
+
* @param {*} [options] Override http request option.
|
|
26628
|
+
* @throws {RequiredError}
|
|
26629
|
+
*/
|
|
26630
|
+
async getComingEvent(clubId?: string, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ComingEventsPageResponse>> {
|
|
26631
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getComingEvent(clubId, page, options);
|
|
26632
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26633
|
+
const localVarOperationServerBasePath = operationServerMap['EventsApi.getComingEvent']?.[localVarOperationServerIndex]?.url;
|
|
26634
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26635
|
+
},
|
|
26516
26636
|
/**
|
|
26517
26637
|
* Get a specific event by ID
|
|
26518
26638
|
* @param {string} eventId
|
|
@@ -26653,6 +26773,15 @@ export const EventsApiFactory = function (configuration?: Configuration, basePat
|
|
|
26653
26773
|
estimateOpenEventBookingJoinPrice(requestParameters: EventsApiEstimateOpenEventBookingJoinPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<EstimateOpenEventBookingJoinPrice200Response> {
|
|
26654
26774
|
return localVarFp.estimateOpenEventBookingJoinPrice(requestParameters.eventBookingId, requestParameters.creditToUseInCents, options).then((request) => request(axios, basePath));
|
|
26655
26775
|
},
|
|
26776
|
+
/**
|
|
26777
|
+
* Get upcoming events for a club with pagination (max 10 per page)
|
|
26778
|
+
* @param {EventsApiGetComingEventRequest} requestParameters Request parameters.
|
|
26779
|
+
* @param {*} [options] Override http request option.
|
|
26780
|
+
* @throws {RequiredError}
|
|
26781
|
+
*/
|
|
26782
|
+
getComingEvent(requestParameters: EventsApiGetComingEventRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<ComingEventsPageResponse> {
|
|
26783
|
+
return localVarFp.getComingEvent(requestParameters.clubId, requestParameters.page, options).then((request) => request(axios, basePath));
|
|
26784
|
+
},
|
|
26656
26785
|
/**
|
|
26657
26786
|
* Get a specific event by ID
|
|
26658
26787
|
* @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
|
|
@@ -26791,6 +26920,27 @@ export interface EventsApiEstimateOpenEventBookingJoinPriceRequest {
|
|
|
26791
26920
|
readonly creditToUseInCents?: number
|
|
26792
26921
|
}
|
|
26793
26922
|
|
|
26923
|
+
/**
|
|
26924
|
+
* Request parameters for getComingEvent operation in EventsApi.
|
|
26925
|
+
* @export
|
|
26926
|
+
* @interface EventsApiGetComingEventRequest
|
|
26927
|
+
*/
|
|
26928
|
+
export interface EventsApiGetComingEventRequest {
|
|
26929
|
+
/**
|
|
26930
|
+
*
|
|
26931
|
+
* @type {string}
|
|
26932
|
+
* @memberof EventsApiGetComingEvent
|
|
26933
|
+
*/
|
|
26934
|
+
readonly clubId?: string
|
|
26935
|
+
|
|
26936
|
+
/**
|
|
26937
|
+
*
|
|
26938
|
+
* @type {number}
|
|
26939
|
+
* @memberof EventsApiGetComingEvent
|
|
26940
|
+
*/
|
|
26941
|
+
readonly page?: number
|
|
26942
|
+
}
|
|
26943
|
+
|
|
26794
26944
|
/**
|
|
26795
26945
|
* Request parameters for getEventById operation in EventsApi.
|
|
26796
26946
|
* @export
|
|
@@ -26992,6 +27142,17 @@ export class EventsApi extends BaseAPI {
|
|
|
26992
27142
|
return EventsApiFp(this.configuration).estimateOpenEventBookingJoinPrice(requestParameters.eventBookingId, requestParameters.creditToUseInCents, options).then((request) => request(this.axios, this.basePath));
|
|
26993
27143
|
}
|
|
26994
27144
|
|
|
27145
|
+
/**
|
|
27146
|
+
* Get upcoming events for a club with pagination (max 10 per page)
|
|
27147
|
+
* @param {EventsApiGetComingEventRequest} requestParameters Request parameters.
|
|
27148
|
+
* @param {*} [options] Override http request option.
|
|
27149
|
+
* @throws {RequiredError}
|
|
27150
|
+
* @memberof EventsApi
|
|
27151
|
+
*/
|
|
27152
|
+
public getComingEvent(requestParameters: EventsApiGetComingEventRequest = {}, options?: RawAxiosRequestConfig) {
|
|
27153
|
+
return EventsApiFp(this.configuration).getComingEvent(requestParameters.clubId, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
27154
|
+
}
|
|
27155
|
+
|
|
26995
27156
|
/**
|
|
26996
27157
|
* Get a specific event by ID
|
|
26997
27158
|
* @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
|
package/dist/api.d.ts
CHANGED
|
@@ -3350,6 +3350,55 @@ export interface ClubPresentationSettingsResponse {
|
|
|
3350
3350
|
*/
|
|
3351
3351
|
'sponsors': Array<Sponsor>;
|
|
3352
3352
|
}
|
|
3353
|
+
/**
|
|
3354
|
+
*
|
|
3355
|
+
* @export
|
|
3356
|
+
* @interface ClubPricingPeriodPayload
|
|
3357
|
+
*/
|
|
3358
|
+
export interface ClubPricingPeriodPayload {
|
|
3359
|
+
/**
|
|
3360
|
+
*
|
|
3361
|
+
* @type {string}
|
|
3362
|
+
* @memberof ClubPricingPeriodPayload
|
|
3363
|
+
*/
|
|
3364
|
+
'_id'?: string;
|
|
3365
|
+
/**
|
|
3366
|
+
*
|
|
3367
|
+
* @type {string}
|
|
3368
|
+
* @memberof ClubPricingPeriodPayload
|
|
3369
|
+
*/
|
|
3370
|
+
'id'?: string;
|
|
3371
|
+
/**
|
|
3372
|
+
*
|
|
3373
|
+
* @type {string}
|
|
3374
|
+
* @memberof ClubPricingPeriodPayload
|
|
3375
|
+
*/
|
|
3376
|
+
'name': string;
|
|
3377
|
+
/**
|
|
3378
|
+
*
|
|
3379
|
+
* @type {Array<WeekdayKey>}
|
|
3380
|
+
* @memberof ClubPricingPeriodPayload
|
|
3381
|
+
*/
|
|
3382
|
+
'weekDays': Array<WeekdayKey>;
|
|
3383
|
+
/**
|
|
3384
|
+
*
|
|
3385
|
+
* @type {number}
|
|
3386
|
+
* @memberof ClubPricingPeriodPayload
|
|
3387
|
+
*/
|
|
3388
|
+
'startTime': number;
|
|
3389
|
+
/**
|
|
3390
|
+
*
|
|
3391
|
+
* @type {number}
|
|
3392
|
+
* @memberof ClubPricingPeriodPayload
|
|
3393
|
+
*/
|
|
3394
|
+
'endTime': number;
|
|
3395
|
+
/**
|
|
3396
|
+
*
|
|
3397
|
+
* @type {number}
|
|
3398
|
+
* @memberof ClubPricingPeriodPayload
|
|
3399
|
+
*/
|
|
3400
|
+
'priceVariation'?: number;
|
|
3401
|
+
}
|
|
3353
3402
|
/**
|
|
3354
3403
|
*
|
|
3355
3404
|
* @export
|
|
@@ -3854,6 +3903,25 @@ export interface ClubUserCountResponse {
|
|
|
3854
3903
|
*/
|
|
3855
3904
|
'count': number;
|
|
3856
3905
|
}
|
|
3906
|
+
/**
|
|
3907
|
+
*
|
|
3908
|
+
* @export
|
|
3909
|
+
* @interface ComingEventsPageResponse
|
|
3910
|
+
*/
|
|
3911
|
+
export interface ComingEventsPageResponse {
|
|
3912
|
+
/**
|
|
3913
|
+
*
|
|
3914
|
+
* @type {Array<EventResponse>}
|
|
3915
|
+
* @memberof ComingEventsPageResponse
|
|
3916
|
+
*/
|
|
3917
|
+
'events': Array<EventResponse>;
|
|
3918
|
+
/**
|
|
3919
|
+
*
|
|
3920
|
+
* @type {PaginationInfo}
|
|
3921
|
+
* @memberof ComingEventsPageResponse
|
|
3922
|
+
*/
|
|
3923
|
+
'pagination': PaginationInfo;
|
|
3924
|
+
}
|
|
3857
3925
|
/**
|
|
3858
3926
|
*
|
|
3859
3927
|
* @export
|
|
@@ -12080,10 +12148,10 @@ export interface UpdateClubHoursSettingsRequest {
|
|
|
12080
12148
|
'schedule'?: PartialRecordWeekdayKeyClubDayScheduleOrNullOrUndefined;
|
|
12081
12149
|
/**
|
|
12082
12150
|
*
|
|
12083
|
-
* @type {Array<
|
|
12151
|
+
* @type {Array<ClubPricingPeriodPayload>}
|
|
12084
12152
|
* @memberof UpdateClubHoursSettingsRequest
|
|
12085
12153
|
*/
|
|
12086
|
-
'pricingPeriods'?: Array<
|
|
12154
|
+
'pricingPeriods'?: Array<ClubPricingPeriodPayload>;
|
|
12087
12155
|
}
|
|
12088
12156
|
/**
|
|
12089
12157
|
*
|
|
@@ -20155,6 +20223,14 @@ export declare const EventsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
20155
20223
|
* @throws {RequiredError}
|
|
20156
20224
|
*/
|
|
20157
20225
|
estimateOpenEventBookingJoinPrice: (eventBookingId: string, creditToUseInCents?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
20226
|
+
/**
|
|
20227
|
+
* Get upcoming events for a club with pagination (max 10 per page)
|
|
20228
|
+
* @param {string} [clubId]
|
|
20229
|
+
* @param {number} [page]
|
|
20230
|
+
* @param {*} [options] Override http request option.
|
|
20231
|
+
* @throws {RequiredError}
|
|
20232
|
+
*/
|
|
20233
|
+
getComingEvent: (clubId?: string, page?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
20158
20234
|
/**
|
|
20159
20235
|
* Get a specific event by ID
|
|
20160
20236
|
* @param {string} eventId
|
|
@@ -20248,6 +20324,14 @@ export declare const EventsApiFp: (configuration?: Configuration) => {
|
|
|
20248
20324
|
* @throws {RequiredError}
|
|
20249
20325
|
*/
|
|
20250
20326
|
estimateOpenEventBookingJoinPrice(eventBookingId: string, creditToUseInCents?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EstimateOpenEventBookingJoinPrice200Response>>;
|
|
20327
|
+
/**
|
|
20328
|
+
* Get upcoming events for a club with pagination (max 10 per page)
|
|
20329
|
+
* @param {string} [clubId]
|
|
20330
|
+
* @param {number} [page]
|
|
20331
|
+
* @param {*} [options] Override http request option.
|
|
20332
|
+
* @throws {RequiredError}
|
|
20333
|
+
*/
|
|
20334
|
+
getComingEvent(clubId?: string, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ComingEventsPageResponse>>;
|
|
20251
20335
|
/**
|
|
20252
20336
|
* Get a specific event by ID
|
|
20253
20337
|
* @param {string} eventId
|
|
@@ -20338,6 +20422,13 @@ export declare const EventsApiFactory: (configuration?: Configuration, basePath?
|
|
|
20338
20422
|
* @throws {RequiredError}
|
|
20339
20423
|
*/
|
|
20340
20424
|
estimateOpenEventBookingJoinPrice(requestParameters: EventsApiEstimateOpenEventBookingJoinPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<EstimateOpenEventBookingJoinPrice200Response>;
|
|
20425
|
+
/**
|
|
20426
|
+
* Get upcoming events for a club with pagination (max 10 per page)
|
|
20427
|
+
* @param {EventsApiGetComingEventRequest} requestParameters Request parameters.
|
|
20428
|
+
* @param {*} [options] Override http request option.
|
|
20429
|
+
* @throws {RequiredError}
|
|
20430
|
+
*/
|
|
20431
|
+
getComingEvent(requestParameters?: EventsApiGetComingEventRequest, options?: RawAxiosRequestConfig): AxiosPromise<ComingEventsPageResponse>;
|
|
20341
20432
|
/**
|
|
20342
20433
|
* Get a specific event by ID
|
|
20343
20434
|
* @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
|
|
@@ -20452,6 +20543,25 @@ export interface EventsApiEstimateOpenEventBookingJoinPriceRequest {
|
|
|
20452
20543
|
*/
|
|
20453
20544
|
readonly creditToUseInCents?: number;
|
|
20454
20545
|
}
|
|
20546
|
+
/**
|
|
20547
|
+
* Request parameters for getComingEvent operation in EventsApi.
|
|
20548
|
+
* @export
|
|
20549
|
+
* @interface EventsApiGetComingEventRequest
|
|
20550
|
+
*/
|
|
20551
|
+
export interface EventsApiGetComingEventRequest {
|
|
20552
|
+
/**
|
|
20553
|
+
*
|
|
20554
|
+
* @type {string}
|
|
20555
|
+
* @memberof EventsApiGetComingEvent
|
|
20556
|
+
*/
|
|
20557
|
+
readonly clubId?: string;
|
|
20558
|
+
/**
|
|
20559
|
+
*
|
|
20560
|
+
* @type {number}
|
|
20561
|
+
* @memberof EventsApiGetComingEvent
|
|
20562
|
+
*/
|
|
20563
|
+
readonly page?: number;
|
|
20564
|
+
}
|
|
20455
20565
|
/**
|
|
20456
20566
|
* Request parameters for getEventById operation in EventsApi.
|
|
20457
20567
|
* @export
|
|
@@ -20629,6 +20739,14 @@ export declare class EventsApi extends BaseAPI {
|
|
|
20629
20739
|
* @memberof EventsApi
|
|
20630
20740
|
*/
|
|
20631
20741
|
estimateOpenEventBookingJoinPrice(requestParameters: EventsApiEstimateOpenEventBookingJoinPriceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EstimateOpenEventBookingJoinPrice200Response, any, {}>>;
|
|
20742
|
+
/**
|
|
20743
|
+
* Get upcoming events for a club with pagination (max 10 per page)
|
|
20744
|
+
* @param {EventsApiGetComingEventRequest} requestParameters Request parameters.
|
|
20745
|
+
* @param {*} [options] Override http request option.
|
|
20746
|
+
* @throws {RequiredError}
|
|
20747
|
+
* @memberof EventsApi
|
|
20748
|
+
*/
|
|
20749
|
+
getComingEvent(requestParameters?: EventsApiGetComingEventRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ComingEventsPageResponse, any, {}>>;
|
|
20632
20750
|
/**
|
|
20633
20751
|
* Get a specific event by ID
|
|
20634
20752
|
* @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
|
package/dist/api.js
CHANGED
|
@@ -9654,6 +9654,38 @@ const EventsApiAxiosParamCreator = function (configuration) {
|
|
|
9654
9654
|
options: localVarRequestOptions,
|
|
9655
9655
|
};
|
|
9656
9656
|
}),
|
|
9657
|
+
/**
|
|
9658
|
+
* Get upcoming events for a club with pagination (max 10 per page)
|
|
9659
|
+
* @param {string} [clubId]
|
|
9660
|
+
* @param {number} [page]
|
|
9661
|
+
* @param {*} [options] Override http request option.
|
|
9662
|
+
* @throws {RequiredError}
|
|
9663
|
+
*/
|
|
9664
|
+
getComingEvent: (clubId_1, page_1, ...args_1) => __awaiter(this, [clubId_1, page_1, ...args_1], void 0, function* (clubId, page, options = {}) {
|
|
9665
|
+
const localVarPath = `/api/events/coming`;
|
|
9666
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9667
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9668
|
+
let baseOptions;
|
|
9669
|
+
if (configuration) {
|
|
9670
|
+
baseOptions = configuration.baseOptions;
|
|
9671
|
+
}
|
|
9672
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
9673
|
+
const localVarHeaderParameter = {};
|
|
9674
|
+
const localVarQueryParameter = {};
|
|
9675
|
+
if (clubId !== undefined) {
|
|
9676
|
+
localVarQueryParameter['clubId'] = clubId;
|
|
9677
|
+
}
|
|
9678
|
+
if (page !== undefined) {
|
|
9679
|
+
localVarQueryParameter['page'] = page;
|
|
9680
|
+
}
|
|
9681
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
9682
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9683
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
9684
|
+
return {
|
|
9685
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
9686
|
+
options: localVarRequestOptions,
|
|
9687
|
+
};
|
|
9688
|
+
}),
|
|
9657
9689
|
/**
|
|
9658
9690
|
* Get a specific event by ID
|
|
9659
9691
|
* @param {string} eventId
|
|
@@ -9981,6 +10013,22 @@ const EventsApiFp = function (configuration) {
|
|
|
9981
10013
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9982
10014
|
});
|
|
9983
10015
|
},
|
|
10016
|
+
/**
|
|
10017
|
+
* Get upcoming events for a club with pagination (max 10 per page)
|
|
10018
|
+
* @param {string} [clubId]
|
|
10019
|
+
* @param {number} [page]
|
|
10020
|
+
* @param {*} [options] Override http request option.
|
|
10021
|
+
* @throws {RequiredError}
|
|
10022
|
+
*/
|
|
10023
|
+
getComingEvent(clubId, page, options) {
|
|
10024
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10025
|
+
var _a, _b, _c;
|
|
10026
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getComingEvent(clubId, page, options);
|
|
10027
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
10028
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsApi.getComingEvent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
10029
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10030
|
+
});
|
|
10031
|
+
},
|
|
9984
10032
|
/**
|
|
9985
10033
|
* Get a specific event by ID
|
|
9986
10034
|
* @param {string} eventId
|
|
@@ -10145,6 +10193,15 @@ const EventsApiFactory = function (configuration, basePath, axios) {
|
|
|
10145
10193
|
estimateOpenEventBookingJoinPrice(requestParameters, options) {
|
|
10146
10194
|
return localVarFp.estimateOpenEventBookingJoinPrice(requestParameters.eventBookingId, requestParameters.creditToUseInCents, options).then((request) => request(axios, basePath));
|
|
10147
10195
|
},
|
|
10196
|
+
/**
|
|
10197
|
+
* Get upcoming events for a club with pagination (max 10 per page)
|
|
10198
|
+
* @param {EventsApiGetComingEventRequest} requestParameters Request parameters.
|
|
10199
|
+
* @param {*} [options] Override http request option.
|
|
10200
|
+
* @throws {RequiredError}
|
|
10201
|
+
*/
|
|
10202
|
+
getComingEvent(requestParameters = {}, options) {
|
|
10203
|
+
return localVarFp.getComingEvent(requestParameters.clubId, requestParameters.page, options).then((request) => request(axios, basePath));
|
|
10204
|
+
},
|
|
10148
10205
|
/**
|
|
10149
10206
|
* Get a specific event by ID
|
|
10150
10207
|
* @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
|
|
@@ -10257,6 +10314,16 @@ class EventsApi extends base_1.BaseAPI {
|
|
|
10257
10314
|
estimateOpenEventBookingJoinPrice(requestParameters, options) {
|
|
10258
10315
|
return (0, exports.EventsApiFp)(this.configuration).estimateOpenEventBookingJoinPrice(requestParameters.eventBookingId, requestParameters.creditToUseInCents, options).then((request) => request(this.axios, this.basePath));
|
|
10259
10316
|
}
|
|
10317
|
+
/**
|
|
10318
|
+
* Get upcoming events for a club with pagination (max 10 per page)
|
|
10319
|
+
* @param {EventsApiGetComingEventRequest} requestParameters Request parameters.
|
|
10320
|
+
* @param {*} [options] Override http request option.
|
|
10321
|
+
* @throws {RequiredError}
|
|
10322
|
+
* @memberof EventsApi
|
|
10323
|
+
*/
|
|
10324
|
+
getComingEvent(requestParameters = {}, options) {
|
|
10325
|
+
return (0, exports.EventsApiFp)(this.configuration).getComingEvent(requestParameters.clubId, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
10326
|
+
}
|
|
10260
10327
|
/**
|
|
10261
10328
|
* Get a specific event by ID
|
|
10262
10329
|
* @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -3350,6 +3350,55 @@ export interface ClubPresentationSettingsResponse {
|
|
|
3350
3350
|
*/
|
|
3351
3351
|
'sponsors': Array<Sponsor>;
|
|
3352
3352
|
}
|
|
3353
|
+
/**
|
|
3354
|
+
*
|
|
3355
|
+
* @export
|
|
3356
|
+
* @interface ClubPricingPeriodPayload
|
|
3357
|
+
*/
|
|
3358
|
+
export interface ClubPricingPeriodPayload {
|
|
3359
|
+
/**
|
|
3360
|
+
*
|
|
3361
|
+
* @type {string}
|
|
3362
|
+
* @memberof ClubPricingPeriodPayload
|
|
3363
|
+
*/
|
|
3364
|
+
'_id'?: string;
|
|
3365
|
+
/**
|
|
3366
|
+
*
|
|
3367
|
+
* @type {string}
|
|
3368
|
+
* @memberof ClubPricingPeriodPayload
|
|
3369
|
+
*/
|
|
3370
|
+
'id'?: string;
|
|
3371
|
+
/**
|
|
3372
|
+
*
|
|
3373
|
+
* @type {string}
|
|
3374
|
+
* @memberof ClubPricingPeriodPayload
|
|
3375
|
+
*/
|
|
3376
|
+
'name': string;
|
|
3377
|
+
/**
|
|
3378
|
+
*
|
|
3379
|
+
* @type {Array<WeekdayKey>}
|
|
3380
|
+
* @memberof ClubPricingPeriodPayload
|
|
3381
|
+
*/
|
|
3382
|
+
'weekDays': Array<WeekdayKey>;
|
|
3383
|
+
/**
|
|
3384
|
+
*
|
|
3385
|
+
* @type {number}
|
|
3386
|
+
* @memberof ClubPricingPeriodPayload
|
|
3387
|
+
*/
|
|
3388
|
+
'startTime': number;
|
|
3389
|
+
/**
|
|
3390
|
+
*
|
|
3391
|
+
* @type {number}
|
|
3392
|
+
* @memberof ClubPricingPeriodPayload
|
|
3393
|
+
*/
|
|
3394
|
+
'endTime': number;
|
|
3395
|
+
/**
|
|
3396
|
+
*
|
|
3397
|
+
* @type {number}
|
|
3398
|
+
* @memberof ClubPricingPeriodPayload
|
|
3399
|
+
*/
|
|
3400
|
+
'priceVariation'?: number;
|
|
3401
|
+
}
|
|
3353
3402
|
/**
|
|
3354
3403
|
*
|
|
3355
3404
|
* @export
|
|
@@ -3854,6 +3903,25 @@ export interface ClubUserCountResponse {
|
|
|
3854
3903
|
*/
|
|
3855
3904
|
'count': number;
|
|
3856
3905
|
}
|
|
3906
|
+
/**
|
|
3907
|
+
*
|
|
3908
|
+
* @export
|
|
3909
|
+
* @interface ComingEventsPageResponse
|
|
3910
|
+
*/
|
|
3911
|
+
export interface ComingEventsPageResponse {
|
|
3912
|
+
/**
|
|
3913
|
+
*
|
|
3914
|
+
* @type {Array<EventResponse>}
|
|
3915
|
+
* @memberof ComingEventsPageResponse
|
|
3916
|
+
*/
|
|
3917
|
+
'events': Array<EventResponse>;
|
|
3918
|
+
/**
|
|
3919
|
+
*
|
|
3920
|
+
* @type {PaginationInfo}
|
|
3921
|
+
* @memberof ComingEventsPageResponse
|
|
3922
|
+
*/
|
|
3923
|
+
'pagination': PaginationInfo;
|
|
3924
|
+
}
|
|
3857
3925
|
/**
|
|
3858
3926
|
*
|
|
3859
3927
|
* @export
|
|
@@ -12080,10 +12148,10 @@ export interface UpdateClubHoursSettingsRequest {
|
|
|
12080
12148
|
'schedule'?: PartialRecordWeekdayKeyClubDayScheduleOrNullOrUndefined;
|
|
12081
12149
|
/**
|
|
12082
12150
|
*
|
|
12083
|
-
* @type {Array<
|
|
12151
|
+
* @type {Array<ClubPricingPeriodPayload>}
|
|
12084
12152
|
* @memberof UpdateClubHoursSettingsRequest
|
|
12085
12153
|
*/
|
|
12086
|
-
'pricingPeriods'?: Array<
|
|
12154
|
+
'pricingPeriods'?: Array<ClubPricingPeriodPayload>;
|
|
12087
12155
|
}
|
|
12088
12156
|
/**
|
|
12089
12157
|
*
|
|
@@ -20155,6 +20223,14 @@ export declare const EventsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
20155
20223
|
* @throws {RequiredError}
|
|
20156
20224
|
*/
|
|
20157
20225
|
estimateOpenEventBookingJoinPrice: (eventBookingId: string, creditToUseInCents?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
20226
|
+
/**
|
|
20227
|
+
* Get upcoming events for a club with pagination (max 10 per page)
|
|
20228
|
+
* @param {string} [clubId]
|
|
20229
|
+
* @param {number} [page]
|
|
20230
|
+
* @param {*} [options] Override http request option.
|
|
20231
|
+
* @throws {RequiredError}
|
|
20232
|
+
*/
|
|
20233
|
+
getComingEvent: (clubId?: string, page?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
20158
20234
|
/**
|
|
20159
20235
|
* Get a specific event by ID
|
|
20160
20236
|
* @param {string} eventId
|
|
@@ -20248,6 +20324,14 @@ export declare const EventsApiFp: (configuration?: Configuration) => {
|
|
|
20248
20324
|
* @throws {RequiredError}
|
|
20249
20325
|
*/
|
|
20250
20326
|
estimateOpenEventBookingJoinPrice(eventBookingId: string, creditToUseInCents?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EstimateOpenEventBookingJoinPrice200Response>>;
|
|
20327
|
+
/**
|
|
20328
|
+
* Get upcoming events for a club with pagination (max 10 per page)
|
|
20329
|
+
* @param {string} [clubId]
|
|
20330
|
+
* @param {number} [page]
|
|
20331
|
+
* @param {*} [options] Override http request option.
|
|
20332
|
+
* @throws {RequiredError}
|
|
20333
|
+
*/
|
|
20334
|
+
getComingEvent(clubId?: string, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ComingEventsPageResponse>>;
|
|
20251
20335
|
/**
|
|
20252
20336
|
* Get a specific event by ID
|
|
20253
20337
|
* @param {string} eventId
|
|
@@ -20338,6 +20422,13 @@ export declare const EventsApiFactory: (configuration?: Configuration, basePath?
|
|
|
20338
20422
|
* @throws {RequiredError}
|
|
20339
20423
|
*/
|
|
20340
20424
|
estimateOpenEventBookingJoinPrice(requestParameters: EventsApiEstimateOpenEventBookingJoinPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<EstimateOpenEventBookingJoinPrice200Response>;
|
|
20425
|
+
/**
|
|
20426
|
+
* Get upcoming events for a club with pagination (max 10 per page)
|
|
20427
|
+
* @param {EventsApiGetComingEventRequest} requestParameters Request parameters.
|
|
20428
|
+
* @param {*} [options] Override http request option.
|
|
20429
|
+
* @throws {RequiredError}
|
|
20430
|
+
*/
|
|
20431
|
+
getComingEvent(requestParameters?: EventsApiGetComingEventRequest, options?: RawAxiosRequestConfig): AxiosPromise<ComingEventsPageResponse>;
|
|
20341
20432
|
/**
|
|
20342
20433
|
* Get a specific event by ID
|
|
20343
20434
|
* @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
|
|
@@ -20452,6 +20543,25 @@ export interface EventsApiEstimateOpenEventBookingJoinPriceRequest {
|
|
|
20452
20543
|
*/
|
|
20453
20544
|
readonly creditToUseInCents?: number;
|
|
20454
20545
|
}
|
|
20546
|
+
/**
|
|
20547
|
+
* Request parameters for getComingEvent operation in EventsApi.
|
|
20548
|
+
* @export
|
|
20549
|
+
* @interface EventsApiGetComingEventRequest
|
|
20550
|
+
*/
|
|
20551
|
+
export interface EventsApiGetComingEventRequest {
|
|
20552
|
+
/**
|
|
20553
|
+
*
|
|
20554
|
+
* @type {string}
|
|
20555
|
+
* @memberof EventsApiGetComingEvent
|
|
20556
|
+
*/
|
|
20557
|
+
readonly clubId?: string;
|
|
20558
|
+
/**
|
|
20559
|
+
*
|
|
20560
|
+
* @type {number}
|
|
20561
|
+
* @memberof EventsApiGetComingEvent
|
|
20562
|
+
*/
|
|
20563
|
+
readonly page?: number;
|
|
20564
|
+
}
|
|
20455
20565
|
/**
|
|
20456
20566
|
* Request parameters for getEventById operation in EventsApi.
|
|
20457
20567
|
* @export
|
|
@@ -20629,6 +20739,14 @@ export declare class EventsApi extends BaseAPI {
|
|
|
20629
20739
|
* @memberof EventsApi
|
|
20630
20740
|
*/
|
|
20631
20741
|
estimateOpenEventBookingJoinPrice(requestParameters: EventsApiEstimateOpenEventBookingJoinPriceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EstimateOpenEventBookingJoinPrice200Response, any, {}>>;
|
|
20742
|
+
/**
|
|
20743
|
+
* Get upcoming events for a club with pagination (max 10 per page)
|
|
20744
|
+
* @param {EventsApiGetComingEventRequest} requestParameters Request parameters.
|
|
20745
|
+
* @param {*} [options] Override http request option.
|
|
20746
|
+
* @throws {RequiredError}
|
|
20747
|
+
* @memberof EventsApi
|
|
20748
|
+
*/
|
|
20749
|
+
getComingEvent(requestParameters?: EventsApiGetComingEventRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ComingEventsPageResponse, any, {}>>;
|
|
20632
20750
|
/**
|
|
20633
20751
|
* Get a specific event by ID
|
|
20634
20752
|
* @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
|
package/dist/esm/api.js
CHANGED
|
@@ -9571,6 +9571,38 @@ export const EventsApiAxiosParamCreator = function (configuration) {
|
|
|
9571
9571
|
options: localVarRequestOptions,
|
|
9572
9572
|
};
|
|
9573
9573
|
}),
|
|
9574
|
+
/**
|
|
9575
|
+
* Get upcoming events for a club with pagination (max 10 per page)
|
|
9576
|
+
* @param {string} [clubId]
|
|
9577
|
+
* @param {number} [page]
|
|
9578
|
+
* @param {*} [options] Override http request option.
|
|
9579
|
+
* @throws {RequiredError}
|
|
9580
|
+
*/
|
|
9581
|
+
getComingEvent: (clubId_1, page_1, ...args_1) => __awaiter(this, [clubId_1, page_1, ...args_1], void 0, function* (clubId, page, options = {}) {
|
|
9582
|
+
const localVarPath = `/api/events/coming`;
|
|
9583
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9584
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9585
|
+
let baseOptions;
|
|
9586
|
+
if (configuration) {
|
|
9587
|
+
baseOptions = configuration.baseOptions;
|
|
9588
|
+
}
|
|
9589
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
9590
|
+
const localVarHeaderParameter = {};
|
|
9591
|
+
const localVarQueryParameter = {};
|
|
9592
|
+
if (clubId !== undefined) {
|
|
9593
|
+
localVarQueryParameter['clubId'] = clubId;
|
|
9594
|
+
}
|
|
9595
|
+
if (page !== undefined) {
|
|
9596
|
+
localVarQueryParameter['page'] = page;
|
|
9597
|
+
}
|
|
9598
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9599
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9600
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
9601
|
+
return {
|
|
9602
|
+
url: toPathString(localVarUrlObj),
|
|
9603
|
+
options: localVarRequestOptions,
|
|
9604
|
+
};
|
|
9605
|
+
}),
|
|
9574
9606
|
/**
|
|
9575
9607
|
* Get a specific event by ID
|
|
9576
9608
|
* @param {string} eventId
|
|
@@ -9897,6 +9929,22 @@ export const EventsApiFp = function (configuration) {
|
|
|
9897
9929
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9898
9930
|
});
|
|
9899
9931
|
},
|
|
9932
|
+
/**
|
|
9933
|
+
* Get upcoming events for a club with pagination (max 10 per page)
|
|
9934
|
+
* @param {string} [clubId]
|
|
9935
|
+
* @param {number} [page]
|
|
9936
|
+
* @param {*} [options] Override http request option.
|
|
9937
|
+
* @throws {RequiredError}
|
|
9938
|
+
*/
|
|
9939
|
+
getComingEvent(clubId, page, options) {
|
|
9940
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9941
|
+
var _a, _b, _c;
|
|
9942
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getComingEvent(clubId, page, options);
|
|
9943
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9944
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsApi.getComingEvent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9945
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9946
|
+
});
|
|
9947
|
+
},
|
|
9900
9948
|
/**
|
|
9901
9949
|
* Get a specific event by ID
|
|
9902
9950
|
* @param {string} eventId
|
|
@@ -10060,6 +10108,15 @@ export const EventsApiFactory = function (configuration, basePath, axios) {
|
|
|
10060
10108
|
estimateOpenEventBookingJoinPrice(requestParameters, options) {
|
|
10061
10109
|
return localVarFp.estimateOpenEventBookingJoinPrice(requestParameters.eventBookingId, requestParameters.creditToUseInCents, options).then((request) => request(axios, basePath));
|
|
10062
10110
|
},
|
|
10111
|
+
/**
|
|
10112
|
+
* Get upcoming events for a club with pagination (max 10 per page)
|
|
10113
|
+
* @param {EventsApiGetComingEventRequest} requestParameters Request parameters.
|
|
10114
|
+
* @param {*} [options] Override http request option.
|
|
10115
|
+
* @throws {RequiredError}
|
|
10116
|
+
*/
|
|
10117
|
+
getComingEvent(requestParameters = {}, options) {
|
|
10118
|
+
return localVarFp.getComingEvent(requestParameters.clubId, requestParameters.page, options).then((request) => request(axios, basePath));
|
|
10119
|
+
},
|
|
10063
10120
|
/**
|
|
10064
10121
|
* Get a specific event by ID
|
|
10065
10122
|
* @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
|
|
@@ -10171,6 +10228,16 @@ export class EventsApi extends BaseAPI {
|
|
|
10171
10228
|
estimateOpenEventBookingJoinPrice(requestParameters, options) {
|
|
10172
10229
|
return EventsApiFp(this.configuration).estimateOpenEventBookingJoinPrice(requestParameters.eventBookingId, requestParameters.creditToUseInCents, options).then((request) => request(this.axios, this.basePath));
|
|
10173
10230
|
}
|
|
10231
|
+
/**
|
|
10232
|
+
* Get upcoming events for a club with pagination (max 10 per page)
|
|
10233
|
+
* @param {EventsApiGetComingEventRequest} requestParameters Request parameters.
|
|
10234
|
+
* @param {*} [options] Override http request option.
|
|
10235
|
+
* @throws {RequiredError}
|
|
10236
|
+
* @memberof EventsApi
|
|
10237
|
+
*/
|
|
10238
|
+
getComingEvent(requestParameters = {}, options) {
|
|
10239
|
+
return EventsApiFp(this.configuration).getComingEvent(requestParameters.clubId, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
10240
|
+
}
|
|
10174
10241
|
/**
|
|
10175
10242
|
* Get a specific event by ID
|
|
10176
10243
|
* @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# ClubPricingPeriodPayload
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**_id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**id** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**name** | **string** | | [default to undefined]
|
|
11
|
+
**weekDays** | [**Array<WeekdayKey>**](WeekdayKey.md) | | [default to undefined]
|
|
12
|
+
**startTime** | **number** | | [default to undefined]
|
|
13
|
+
**endTime** | **number** | | [default to undefined]
|
|
14
|
+
**priceVariation** | **number** | | [optional] [default to undefined]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { ClubPricingPeriodPayload } from '@tennac-booking/sdk';
|
|
20
|
+
|
|
21
|
+
const instance: ClubPricingPeriodPayload = {
|
|
22
|
+
_id,
|
|
23
|
+
id,
|
|
24
|
+
name,
|
|
25
|
+
weekDays,
|
|
26
|
+
startTime,
|
|
27
|
+
endTime,
|
|
28
|
+
priceVariation,
|
|
29
|
+
};
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# ComingEventsPageResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**events** | [**Array<EventResponse>**](EventResponse.md) | | [default to undefined]
|
|
9
|
+
**pagination** | [**PaginationInfo**](PaginationInfo.md) | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { ComingEventsPageResponse } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: ComingEventsPageResponse = {
|
|
17
|
+
events,
|
|
18
|
+
pagination,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/EventsApi.md
CHANGED
|
@@ -7,6 +7,7 @@ All URIs are relative to *http://localhost*
|
|
|
7
7
|
|[**checkTeamNameAvailability**](#checkteamnameavailability) | **GET** /api/events/{eventId}/team-name-availability | |
|
|
8
8
|
|[**estimateEventPrice**](#estimateeventprice) | **POST** /api/events/{eventId}/estimate-price | |
|
|
9
9
|
|[**estimateOpenEventBookingJoinPrice**](#estimateopeneventbookingjoinprice) | **GET** /api/events/{eventBookingId}/open/estimate | |
|
|
10
|
+
|[**getComingEvent**](#getcomingevent) | **GET** /api/events/coming | |
|
|
10
11
|
|[**getEventById**](#geteventbyid) | **GET** /api/events/{eventId} | |
|
|
11
12
|
|[**getOpenEventBookingJoinPrice**](#getopeneventbookingjoinprice) | **GET** /api/events/{eventBookingId}/open/join-price | |
|
|
12
13
|
|[**getOpenEventBookings**](#getopeneventbookings) | **GET** /api/events/open | |
|
|
@@ -185,6 +186,62 @@ const { status, data } = await apiInstance.estimateOpenEventBookingJoinPrice(
|
|
|
185
186
|
|
|
186
187
|
[[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)
|
|
187
188
|
|
|
189
|
+
# **getComingEvent**
|
|
190
|
+
> ComingEventsPageResponse getComingEvent()
|
|
191
|
+
|
|
192
|
+
Get upcoming events for a club with pagination (max 10 per page)
|
|
193
|
+
|
|
194
|
+
### Example
|
|
195
|
+
|
|
196
|
+
```typescript
|
|
197
|
+
import {
|
|
198
|
+
EventsApi,
|
|
199
|
+
Configuration
|
|
200
|
+
} from '@tennac-booking/sdk';
|
|
201
|
+
|
|
202
|
+
const configuration = new Configuration();
|
|
203
|
+
const apiInstance = new EventsApi(configuration);
|
|
204
|
+
|
|
205
|
+
let clubId: string; // (optional) (default to undefined)
|
|
206
|
+
let page: number; // (optional) (default to undefined)
|
|
207
|
+
|
|
208
|
+
const { status, data } = await apiInstance.getComingEvent(
|
|
209
|
+
clubId,
|
|
210
|
+
page
|
|
211
|
+
);
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
### Parameters
|
|
215
|
+
|
|
216
|
+
|Name | Type | Description | Notes|
|
|
217
|
+
|------------- | ------------- | ------------- | -------------|
|
|
218
|
+
| **clubId** | [**string**] | | (optional) defaults to undefined|
|
|
219
|
+
| **page** | [**number**] | | (optional) defaults to undefined|
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
### Return type
|
|
223
|
+
|
|
224
|
+
**ComingEventsPageResponse**
|
|
225
|
+
|
|
226
|
+
### Authorization
|
|
227
|
+
|
|
228
|
+
No authorization required
|
|
229
|
+
|
|
230
|
+
### HTTP request headers
|
|
231
|
+
|
|
232
|
+
- **Content-Type**: Not defined
|
|
233
|
+
- **Accept**: application/json
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
### HTTP response details
|
|
237
|
+
| Status code | Description | Response headers |
|
|
238
|
+
|-------------|-------------|------------------|
|
|
239
|
+
|**200** | List of upcoming events | - |
|
|
240
|
+
|**400** | Bad Request | - |
|
|
241
|
+
|**500** | Server Error | - |
|
|
242
|
+
|
|
243
|
+
[[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)
|
|
244
|
+
|
|
188
245
|
# **getEventById**
|
|
189
246
|
> PublishEventResponse getEventById()
|
|
190
247
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**schedule** | [**PartialRecordWeekdayKeyClubDayScheduleOrNullOrUndefined**](PartialRecordWeekdayKeyClubDayScheduleOrNullOrUndefined.md) | | [optional] [default to undefined]
|
|
9
|
-
**pricingPeriods** | [**Array<
|
|
9
|
+
**pricingPeriods** | [**Array<ClubPricingPeriodPayload>**](ClubPricingPeriodPayload.md) | | [optional] [default to undefined]
|
|
10
10
|
|
|
11
11
|
## Example
|
|
12
12
|
|