@tennac-booking/sdk 1.0.203 → 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.
@@ -120,6 +120,7 @@ docs/ClubUserCountResponse.md
120
120
  docs/ClubsApi.md
121
121
  docs/ClubsManagerApi.md
122
122
  docs/ClubsStaffApi.md
123
+ docs/ComingEventsPageResponse.md
123
124
  docs/CompleteRegisterRequestBody.md
124
125
  docs/CompleteRegisterRequestBodyLevelBySportsInner.md
125
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 |
@@ -395,6 +396,7 @@ Class | Method | HTTP request | Description
395
396
  - [ClubSubscriptions](docs/ClubSubscriptions.md)
396
397
  - [ClubSummary](docs/ClubSummary.md)
397
398
  - [ClubUserCountResponse](docs/ClubUserCountResponse.md)
399
+ - [ComingEventsPageResponse](docs/ComingEventsPageResponse.md)
398
400
  - [CompleteRegisterRequestBody](docs/CompleteRegisterRequestBody.md)
399
401
  - [CompleteRegisterRequestBodyLevelBySportsInner](docs/CompleteRegisterRequestBodyLevelBySportsInner.md)
400
402
  - [ContactRequestBody](docs/ContactRequestBody.md)
package/api.ts CHANGED
@@ -3949,6 +3949,25 @@ export interface ClubUserCountResponse {
3949
3949
  */
3950
3950
  'count': number;
3951
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
+ }
3952
3971
  /**
3953
3972
  *
3954
3973
  * @export
@@ -26181,6 +26200,45 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
26181
26200
 
26182
26201
 
26183
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
+
26184
26242
  setSearchParams(localVarUrlObj, localVarQueryParameter);
26185
26243
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26186
26244
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -26562,6 +26620,19 @@ export const EventsApiFp = function(configuration?: Configuration) {
26562
26620
  const localVarOperationServerBasePath = operationServerMap['EventsApi.estimateOpenEventBookingJoinPrice']?.[localVarOperationServerIndex]?.url;
26563
26621
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
26564
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
+ },
26565
26636
  /**
26566
26637
  * Get a specific event by ID
26567
26638
  * @param {string} eventId
@@ -26702,6 +26773,15 @@ export const EventsApiFactory = function (configuration?: Configuration, basePat
26702
26773
  estimateOpenEventBookingJoinPrice(requestParameters: EventsApiEstimateOpenEventBookingJoinPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<EstimateOpenEventBookingJoinPrice200Response> {
26703
26774
  return localVarFp.estimateOpenEventBookingJoinPrice(requestParameters.eventBookingId, requestParameters.creditToUseInCents, options).then((request) => request(axios, basePath));
26704
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
+ },
26705
26785
  /**
26706
26786
  * Get a specific event by ID
26707
26787
  * @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
@@ -26840,6 +26920,27 @@ export interface EventsApiEstimateOpenEventBookingJoinPriceRequest {
26840
26920
  readonly creditToUseInCents?: number
26841
26921
  }
26842
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
+
26843
26944
  /**
26844
26945
  * Request parameters for getEventById operation in EventsApi.
26845
26946
  * @export
@@ -27041,6 +27142,17 @@ export class EventsApi extends BaseAPI {
27041
27142
  return EventsApiFp(this.configuration).estimateOpenEventBookingJoinPrice(requestParameters.eventBookingId, requestParameters.creditToUseInCents, options).then((request) => request(this.axios, this.basePath));
27042
27143
  }
27043
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
+
27044
27156
  /**
27045
27157
  * Get a specific event by ID
27046
27158
  * @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
package/dist/api.d.ts CHANGED
@@ -3903,6 +3903,25 @@ export interface ClubUserCountResponse {
3903
3903
  */
3904
3904
  'count': number;
3905
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
+ }
3906
3925
  /**
3907
3926
  *
3908
3927
  * @export
@@ -20204,6 +20223,14 @@ export declare const EventsApiAxiosParamCreator: (configuration?: Configuration)
20204
20223
  * @throws {RequiredError}
20205
20224
  */
20206
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>;
20207
20234
  /**
20208
20235
  * Get a specific event by ID
20209
20236
  * @param {string} eventId
@@ -20297,6 +20324,14 @@ export declare const EventsApiFp: (configuration?: Configuration) => {
20297
20324
  * @throws {RequiredError}
20298
20325
  */
20299
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>>;
20300
20335
  /**
20301
20336
  * Get a specific event by ID
20302
20337
  * @param {string} eventId
@@ -20387,6 +20422,13 @@ export declare const EventsApiFactory: (configuration?: Configuration, basePath?
20387
20422
  * @throws {RequiredError}
20388
20423
  */
20389
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>;
20390
20432
  /**
20391
20433
  * Get a specific event by ID
20392
20434
  * @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
@@ -20501,6 +20543,25 @@ export interface EventsApiEstimateOpenEventBookingJoinPriceRequest {
20501
20543
  */
20502
20544
  readonly creditToUseInCents?: number;
20503
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
+ }
20504
20565
  /**
20505
20566
  * Request parameters for getEventById operation in EventsApi.
20506
20567
  * @export
@@ -20678,6 +20739,14 @@ export declare class EventsApi extends BaseAPI {
20678
20739
  * @memberof EventsApi
20679
20740
  */
20680
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, {}>>;
20681
20750
  /**
20682
20751
  * Get a specific event by ID
20683
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
@@ -3903,6 +3903,25 @@ export interface ClubUserCountResponse {
3903
3903
  */
3904
3904
  'count': number;
3905
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
+ }
3906
3925
  /**
3907
3926
  *
3908
3927
  * @export
@@ -20204,6 +20223,14 @@ export declare const EventsApiAxiosParamCreator: (configuration?: Configuration)
20204
20223
  * @throws {RequiredError}
20205
20224
  */
20206
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>;
20207
20234
  /**
20208
20235
  * Get a specific event by ID
20209
20236
  * @param {string} eventId
@@ -20297,6 +20324,14 @@ export declare const EventsApiFp: (configuration?: Configuration) => {
20297
20324
  * @throws {RequiredError}
20298
20325
  */
20299
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>>;
20300
20335
  /**
20301
20336
  * Get a specific event by ID
20302
20337
  * @param {string} eventId
@@ -20387,6 +20422,13 @@ export declare const EventsApiFactory: (configuration?: Configuration, basePath?
20387
20422
  * @throws {RequiredError}
20388
20423
  */
20389
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>;
20390
20432
  /**
20391
20433
  * Get a specific event by ID
20392
20434
  * @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
@@ -20501,6 +20543,25 @@ export interface EventsApiEstimateOpenEventBookingJoinPriceRequest {
20501
20543
  */
20502
20544
  readonly creditToUseInCents?: number;
20503
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
+ }
20504
20565
  /**
20505
20566
  * Request parameters for getEventById operation in EventsApi.
20506
20567
  * @export
@@ -20678,6 +20739,14 @@ export declare class EventsApi extends BaseAPI {
20678
20739
  * @memberof EventsApi
20679
20740
  */
20680
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, {}>>;
20681
20750
  /**
20682
20751
  * Get a specific event by ID
20683
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,22 @@
1
+ # ComingEventsPageResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **events** | [**Array&lt;EventResponse&gt;**](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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tennac-booking/sdk",
3
- "version": "1.0.203",
3
+ "version": "1.0.204",
4
4
  "description": "OpenAPI client for @tennac-booking/sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {