@tennac-booking/sdk 1.0.203 → 1.0.205

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
@@ -6044,6 +6063,12 @@ export interface EventResponse {
6044
6063
  * @memberof EventResponse
6045
6064
  */
6046
6065
  'registrationOpenDaysBefore': number;
6066
+ /**
6067
+ *
6068
+ * @type {boolean}
6069
+ * @memberof EventResponse
6070
+ */
6071
+ 'isUserRegistered'?: boolean;
6047
6072
  /**
6048
6073
  *
6049
6074
  * @type {string}
@@ -26181,6 +26206,49 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
26181
26206
 
26182
26207
 
26183
26208
 
26209
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
26210
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26211
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
26212
+
26213
+ return {
26214
+ url: toPathString(localVarUrlObj),
26215
+ options: localVarRequestOptions,
26216
+ };
26217
+ },
26218
+ /**
26219
+ * Get upcoming events for a club with pagination (max 10 per page)
26220
+ * @param {string} [clubId]
26221
+ * @param {number} [page]
26222
+ * @param {*} [options] Override http request option.
26223
+ * @throws {RequiredError}
26224
+ */
26225
+ getComingEvent: async (clubId?: string, page?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
26226
+ const localVarPath = `/api/events/coming`;
26227
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
26228
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
26229
+ let baseOptions;
26230
+ if (configuration) {
26231
+ baseOptions = configuration.baseOptions;
26232
+ }
26233
+
26234
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
26235
+ const localVarHeaderParameter = {} as any;
26236
+ const localVarQueryParameter = {} as any;
26237
+
26238
+ // authentication bearerAuth required
26239
+ // http bearer authentication required
26240
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
26241
+
26242
+ if (clubId !== undefined) {
26243
+ localVarQueryParameter['clubId'] = clubId;
26244
+ }
26245
+
26246
+ if (page !== undefined) {
26247
+ localVarQueryParameter['page'] = page;
26248
+ }
26249
+
26250
+
26251
+
26184
26252
  setSearchParams(localVarUrlObj, localVarQueryParameter);
26185
26253
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26186
26254
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -26562,6 +26630,19 @@ export const EventsApiFp = function(configuration?: Configuration) {
26562
26630
  const localVarOperationServerBasePath = operationServerMap['EventsApi.estimateOpenEventBookingJoinPrice']?.[localVarOperationServerIndex]?.url;
26563
26631
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
26564
26632
  },
26633
+ /**
26634
+ * Get upcoming events for a club with pagination (max 10 per page)
26635
+ * @param {string} [clubId]
26636
+ * @param {number} [page]
26637
+ * @param {*} [options] Override http request option.
26638
+ * @throws {RequiredError}
26639
+ */
26640
+ async getComingEvent(clubId?: string, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ComingEventsPageResponse>> {
26641
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getComingEvent(clubId, page, options);
26642
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
26643
+ const localVarOperationServerBasePath = operationServerMap['EventsApi.getComingEvent']?.[localVarOperationServerIndex]?.url;
26644
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
26645
+ },
26565
26646
  /**
26566
26647
  * Get a specific event by ID
26567
26648
  * @param {string} eventId
@@ -26702,6 +26783,15 @@ export const EventsApiFactory = function (configuration?: Configuration, basePat
26702
26783
  estimateOpenEventBookingJoinPrice(requestParameters: EventsApiEstimateOpenEventBookingJoinPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<EstimateOpenEventBookingJoinPrice200Response> {
26703
26784
  return localVarFp.estimateOpenEventBookingJoinPrice(requestParameters.eventBookingId, requestParameters.creditToUseInCents, options).then((request) => request(axios, basePath));
26704
26785
  },
26786
+ /**
26787
+ * Get upcoming events for a club with pagination (max 10 per page)
26788
+ * @param {EventsApiGetComingEventRequest} requestParameters Request parameters.
26789
+ * @param {*} [options] Override http request option.
26790
+ * @throws {RequiredError}
26791
+ */
26792
+ getComingEvent(requestParameters: EventsApiGetComingEventRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<ComingEventsPageResponse> {
26793
+ return localVarFp.getComingEvent(requestParameters.clubId, requestParameters.page, options).then((request) => request(axios, basePath));
26794
+ },
26705
26795
  /**
26706
26796
  * Get a specific event by ID
26707
26797
  * @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
@@ -26840,6 +26930,27 @@ export interface EventsApiEstimateOpenEventBookingJoinPriceRequest {
26840
26930
  readonly creditToUseInCents?: number
26841
26931
  }
26842
26932
 
26933
+ /**
26934
+ * Request parameters for getComingEvent operation in EventsApi.
26935
+ * @export
26936
+ * @interface EventsApiGetComingEventRequest
26937
+ */
26938
+ export interface EventsApiGetComingEventRequest {
26939
+ /**
26940
+ *
26941
+ * @type {string}
26942
+ * @memberof EventsApiGetComingEvent
26943
+ */
26944
+ readonly clubId?: string
26945
+
26946
+ /**
26947
+ *
26948
+ * @type {number}
26949
+ * @memberof EventsApiGetComingEvent
26950
+ */
26951
+ readonly page?: number
26952
+ }
26953
+
26843
26954
  /**
26844
26955
  * Request parameters for getEventById operation in EventsApi.
26845
26956
  * @export
@@ -27041,6 +27152,17 @@ export class EventsApi extends BaseAPI {
27041
27152
  return EventsApiFp(this.configuration).estimateOpenEventBookingJoinPrice(requestParameters.eventBookingId, requestParameters.creditToUseInCents, options).then((request) => request(this.axios, this.basePath));
27042
27153
  }
27043
27154
 
27155
+ /**
27156
+ * Get upcoming events for a club with pagination (max 10 per page)
27157
+ * @param {EventsApiGetComingEventRequest} requestParameters Request parameters.
27158
+ * @param {*} [options] Override http request option.
27159
+ * @throws {RequiredError}
27160
+ * @memberof EventsApi
27161
+ */
27162
+ public getComingEvent(requestParameters: EventsApiGetComingEventRequest = {}, options?: RawAxiosRequestConfig) {
27163
+ return EventsApiFp(this.configuration).getComingEvent(requestParameters.clubId, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
27164
+ }
27165
+
27044
27166
  /**
27045
27167
  * Get a specific event by ID
27046
27168
  * @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
@@ -5945,6 +5964,12 @@ export interface EventResponse {
5945
5964
  * @memberof EventResponse
5946
5965
  */
5947
5966
  'registrationOpenDaysBefore': number;
5967
+ /**
5968
+ *
5969
+ * @type {boolean}
5970
+ * @memberof EventResponse
5971
+ */
5972
+ 'isUserRegistered'?: boolean;
5948
5973
  /**
5949
5974
  *
5950
5975
  * @type {string}
@@ -20204,6 +20229,14 @@ export declare const EventsApiAxiosParamCreator: (configuration?: Configuration)
20204
20229
  * @throws {RequiredError}
20205
20230
  */
20206
20231
  estimateOpenEventBookingJoinPrice: (eventBookingId: string, creditToUseInCents?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
20232
+ /**
20233
+ * Get upcoming events for a club with pagination (max 10 per page)
20234
+ * @param {string} [clubId]
20235
+ * @param {number} [page]
20236
+ * @param {*} [options] Override http request option.
20237
+ * @throws {RequiredError}
20238
+ */
20239
+ getComingEvent: (clubId?: string, page?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
20207
20240
  /**
20208
20241
  * Get a specific event by ID
20209
20242
  * @param {string} eventId
@@ -20297,6 +20330,14 @@ export declare const EventsApiFp: (configuration?: Configuration) => {
20297
20330
  * @throws {RequiredError}
20298
20331
  */
20299
20332
  estimateOpenEventBookingJoinPrice(eventBookingId: string, creditToUseInCents?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EstimateOpenEventBookingJoinPrice200Response>>;
20333
+ /**
20334
+ * Get upcoming events for a club with pagination (max 10 per page)
20335
+ * @param {string} [clubId]
20336
+ * @param {number} [page]
20337
+ * @param {*} [options] Override http request option.
20338
+ * @throws {RequiredError}
20339
+ */
20340
+ getComingEvent(clubId?: string, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ComingEventsPageResponse>>;
20300
20341
  /**
20301
20342
  * Get a specific event by ID
20302
20343
  * @param {string} eventId
@@ -20387,6 +20428,13 @@ export declare const EventsApiFactory: (configuration?: Configuration, basePath?
20387
20428
  * @throws {RequiredError}
20388
20429
  */
20389
20430
  estimateOpenEventBookingJoinPrice(requestParameters: EventsApiEstimateOpenEventBookingJoinPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<EstimateOpenEventBookingJoinPrice200Response>;
20431
+ /**
20432
+ * Get upcoming events for a club with pagination (max 10 per page)
20433
+ * @param {EventsApiGetComingEventRequest} requestParameters Request parameters.
20434
+ * @param {*} [options] Override http request option.
20435
+ * @throws {RequiredError}
20436
+ */
20437
+ getComingEvent(requestParameters?: EventsApiGetComingEventRequest, options?: RawAxiosRequestConfig): AxiosPromise<ComingEventsPageResponse>;
20390
20438
  /**
20391
20439
  * Get a specific event by ID
20392
20440
  * @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
@@ -20501,6 +20549,25 @@ export interface EventsApiEstimateOpenEventBookingJoinPriceRequest {
20501
20549
  */
20502
20550
  readonly creditToUseInCents?: number;
20503
20551
  }
20552
+ /**
20553
+ * Request parameters for getComingEvent operation in EventsApi.
20554
+ * @export
20555
+ * @interface EventsApiGetComingEventRequest
20556
+ */
20557
+ export interface EventsApiGetComingEventRequest {
20558
+ /**
20559
+ *
20560
+ * @type {string}
20561
+ * @memberof EventsApiGetComingEvent
20562
+ */
20563
+ readonly clubId?: string;
20564
+ /**
20565
+ *
20566
+ * @type {number}
20567
+ * @memberof EventsApiGetComingEvent
20568
+ */
20569
+ readonly page?: number;
20570
+ }
20504
20571
  /**
20505
20572
  * Request parameters for getEventById operation in EventsApi.
20506
20573
  * @export
@@ -20678,6 +20745,14 @@ export declare class EventsApi extends BaseAPI {
20678
20745
  * @memberof EventsApi
20679
20746
  */
20680
20747
  estimateOpenEventBookingJoinPrice(requestParameters: EventsApiEstimateOpenEventBookingJoinPriceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EstimateOpenEventBookingJoinPrice200Response, any, {}>>;
20748
+ /**
20749
+ * Get upcoming events for a club with pagination (max 10 per page)
20750
+ * @param {EventsApiGetComingEventRequest} requestParameters Request parameters.
20751
+ * @param {*} [options] Override http request option.
20752
+ * @throws {RequiredError}
20753
+ * @memberof EventsApi
20754
+ */
20755
+ getComingEvent(requestParameters?: EventsApiGetComingEventRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ComingEventsPageResponse, any, {}>>;
20681
20756
  /**
20682
20757
  * Get a specific event by ID
20683
20758
  * @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
package/dist/api.js CHANGED
@@ -9654,6 +9654,41 @@ 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
+ // authentication bearerAuth required
9676
+ // http bearer authentication required
9677
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
9678
+ if (clubId !== undefined) {
9679
+ localVarQueryParameter['clubId'] = clubId;
9680
+ }
9681
+ if (page !== undefined) {
9682
+ localVarQueryParameter['page'] = page;
9683
+ }
9684
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
9685
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9686
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9687
+ return {
9688
+ url: (0, common_1.toPathString)(localVarUrlObj),
9689
+ options: localVarRequestOptions,
9690
+ };
9691
+ }),
9657
9692
  /**
9658
9693
  * Get a specific event by ID
9659
9694
  * @param {string} eventId
@@ -9981,6 +10016,22 @@ const EventsApiFp = function (configuration) {
9981
10016
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9982
10017
  });
9983
10018
  },
10019
+ /**
10020
+ * Get upcoming events for a club with pagination (max 10 per page)
10021
+ * @param {string} [clubId]
10022
+ * @param {number} [page]
10023
+ * @param {*} [options] Override http request option.
10024
+ * @throws {RequiredError}
10025
+ */
10026
+ getComingEvent(clubId, page, options) {
10027
+ return __awaiter(this, void 0, void 0, function* () {
10028
+ var _a, _b, _c;
10029
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getComingEvent(clubId, page, options);
10030
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
10031
+ 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;
10032
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10033
+ });
10034
+ },
9984
10035
  /**
9985
10036
  * Get a specific event by ID
9986
10037
  * @param {string} eventId
@@ -10145,6 +10196,15 @@ const EventsApiFactory = function (configuration, basePath, axios) {
10145
10196
  estimateOpenEventBookingJoinPrice(requestParameters, options) {
10146
10197
  return localVarFp.estimateOpenEventBookingJoinPrice(requestParameters.eventBookingId, requestParameters.creditToUseInCents, options).then((request) => request(axios, basePath));
10147
10198
  },
10199
+ /**
10200
+ * Get upcoming events for a club with pagination (max 10 per page)
10201
+ * @param {EventsApiGetComingEventRequest} requestParameters Request parameters.
10202
+ * @param {*} [options] Override http request option.
10203
+ * @throws {RequiredError}
10204
+ */
10205
+ getComingEvent(requestParameters = {}, options) {
10206
+ return localVarFp.getComingEvent(requestParameters.clubId, requestParameters.page, options).then((request) => request(axios, basePath));
10207
+ },
10148
10208
  /**
10149
10209
  * Get a specific event by ID
10150
10210
  * @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
@@ -10257,6 +10317,16 @@ class EventsApi extends base_1.BaseAPI {
10257
10317
  estimateOpenEventBookingJoinPrice(requestParameters, options) {
10258
10318
  return (0, exports.EventsApiFp)(this.configuration).estimateOpenEventBookingJoinPrice(requestParameters.eventBookingId, requestParameters.creditToUseInCents, options).then((request) => request(this.axios, this.basePath));
10259
10319
  }
10320
+ /**
10321
+ * Get upcoming events for a club with pagination (max 10 per page)
10322
+ * @param {EventsApiGetComingEventRequest} requestParameters Request parameters.
10323
+ * @param {*} [options] Override http request option.
10324
+ * @throws {RequiredError}
10325
+ * @memberof EventsApi
10326
+ */
10327
+ getComingEvent(requestParameters = {}, options) {
10328
+ return (0, exports.EventsApiFp)(this.configuration).getComingEvent(requestParameters.clubId, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
10329
+ }
10260
10330
  /**
10261
10331
  * Get a specific event by ID
10262
10332
  * @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
@@ -5945,6 +5964,12 @@ export interface EventResponse {
5945
5964
  * @memberof EventResponse
5946
5965
  */
5947
5966
  'registrationOpenDaysBefore': number;
5967
+ /**
5968
+ *
5969
+ * @type {boolean}
5970
+ * @memberof EventResponse
5971
+ */
5972
+ 'isUserRegistered'?: boolean;
5948
5973
  /**
5949
5974
  *
5950
5975
  * @type {string}
@@ -20204,6 +20229,14 @@ export declare const EventsApiAxiosParamCreator: (configuration?: Configuration)
20204
20229
  * @throws {RequiredError}
20205
20230
  */
20206
20231
  estimateOpenEventBookingJoinPrice: (eventBookingId: string, creditToUseInCents?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
20232
+ /**
20233
+ * Get upcoming events for a club with pagination (max 10 per page)
20234
+ * @param {string} [clubId]
20235
+ * @param {number} [page]
20236
+ * @param {*} [options] Override http request option.
20237
+ * @throws {RequiredError}
20238
+ */
20239
+ getComingEvent: (clubId?: string, page?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
20207
20240
  /**
20208
20241
  * Get a specific event by ID
20209
20242
  * @param {string} eventId
@@ -20297,6 +20330,14 @@ export declare const EventsApiFp: (configuration?: Configuration) => {
20297
20330
  * @throws {RequiredError}
20298
20331
  */
20299
20332
  estimateOpenEventBookingJoinPrice(eventBookingId: string, creditToUseInCents?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EstimateOpenEventBookingJoinPrice200Response>>;
20333
+ /**
20334
+ * Get upcoming events for a club with pagination (max 10 per page)
20335
+ * @param {string} [clubId]
20336
+ * @param {number} [page]
20337
+ * @param {*} [options] Override http request option.
20338
+ * @throws {RequiredError}
20339
+ */
20340
+ getComingEvent(clubId?: string, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ComingEventsPageResponse>>;
20300
20341
  /**
20301
20342
  * Get a specific event by ID
20302
20343
  * @param {string} eventId
@@ -20387,6 +20428,13 @@ export declare const EventsApiFactory: (configuration?: Configuration, basePath?
20387
20428
  * @throws {RequiredError}
20388
20429
  */
20389
20430
  estimateOpenEventBookingJoinPrice(requestParameters: EventsApiEstimateOpenEventBookingJoinPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<EstimateOpenEventBookingJoinPrice200Response>;
20431
+ /**
20432
+ * Get upcoming events for a club with pagination (max 10 per page)
20433
+ * @param {EventsApiGetComingEventRequest} requestParameters Request parameters.
20434
+ * @param {*} [options] Override http request option.
20435
+ * @throws {RequiredError}
20436
+ */
20437
+ getComingEvent(requestParameters?: EventsApiGetComingEventRequest, options?: RawAxiosRequestConfig): AxiosPromise<ComingEventsPageResponse>;
20390
20438
  /**
20391
20439
  * Get a specific event by ID
20392
20440
  * @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
@@ -20501,6 +20549,25 @@ export interface EventsApiEstimateOpenEventBookingJoinPriceRequest {
20501
20549
  */
20502
20550
  readonly creditToUseInCents?: number;
20503
20551
  }
20552
+ /**
20553
+ * Request parameters for getComingEvent operation in EventsApi.
20554
+ * @export
20555
+ * @interface EventsApiGetComingEventRequest
20556
+ */
20557
+ export interface EventsApiGetComingEventRequest {
20558
+ /**
20559
+ *
20560
+ * @type {string}
20561
+ * @memberof EventsApiGetComingEvent
20562
+ */
20563
+ readonly clubId?: string;
20564
+ /**
20565
+ *
20566
+ * @type {number}
20567
+ * @memberof EventsApiGetComingEvent
20568
+ */
20569
+ readonly page?: number;
20570
+ }
20504
20571
  /**
20505
20572
  * Request parameters for getEventById operation in EventsApi.
20506
20573
  * @export
@@ -20678,6 +20745,14 @@ export declare class EventsApi extends BaseAPI {
20678
20745
  * @memberof EventsApi
20679
20746
  */
20680
20747
  estimateOpenEventBookingJoinPrice(requestParameters: EventsApiEstimateOpenEventBookingJoinPriceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EstimateOpenEventBookingJoinPrice200Response, any, {}>>;
20748
+ /**
20749
+ * Get upcoming events for a club with pagination (max 10 per page)
20750
+ * @param {EventsApiGetComingEventRequest} requestParameters Request parameters.
20751
+ * @param {*} [options] Override http request option.
20752
+ * @throws {RequiredError}
20753
+ * @memberof EventsApi
20754
+ */
20755
+ getComingEvent(requestParameters?: EventsApiGetComingEventRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ComingEventsPageResponse, any, {}>>;
20681
20756
  /**
20682
20757
  * Get a specific event by ID
20683
20758
  * @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
package/dist/esm/api.js CHANGED
@@ -9571,6 +9571,41 @@ 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
+ // authentication bearerAuth required
9593
+ // http bearer authentication required
9594
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
9595
+ if (clubId !== undefined) {
9596
+ localVarQueryParameter['clubId'] = clubId;
9597
+ }
9598
+ if (page !== undefined) {
9599
+ localVarQueryParameter['page'] = page;
9600
+ }
9601
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9602
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9603
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9604
+ return {
9605
+ url: toPathString(localVarUrlObj),
9606
+ options: localVarRequestOptions,
9607
+ };
9608
+ }),
9574
9609
  /**
9575
9610
  * Get a specific event by ID
9576
9611
  * @param {string} eventId
@@ -9897,6 +9932,22 @@ export const EventsApiFp = function (configuration) {
9897
9932
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9898
9933
  });
9899
9934
  },
9935
+ /**
9936
+ * Get upcoming events for a club with pagination (max 10 per page)
9937
+ * @param {string} [clubId]
9938
+ * @param {number} [page]
9939
+ * @param {*} [options] Override http request option.
9940
+ * @throws {RequiredError}
9941
+ */
9942
+ getComingEvent(clubId, page, options) {
9943
+ return __awaiter(this, void 0, void 0, function* () {
9944
+ var _a, _b, _c;
9945
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getComingEvent(clubId, page, options);
9946
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9947
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsApi.getComingEvent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9948
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9949
+ });
9950
+ },
9900
9951
  /**
9901
9952
  * Get a specific event by ID
9902
9953
  * @param {string} eventId
@@ -10060,6 +10111,15 @@ export const EventsApiFactory = function (configuration, basePath, axios) {
10060
10111
  estimateOpenEventBookingJoinPrice(requestParameters, options) {
10061
10112
  return localVarFp.estimateOpenEventBookingJoinPrice(requestParameters.eventBookingId, requestParameters.creditToUseInCents, options).then((request) => request(axios, basePath));
10062
10113
  },
10114
+ /**
10115
+ * Get upcoming events for a club with pagination (max 10 per page)
10116
+ * @param {EventsApiGetComingEventRequest} requestParameters Request parameters.
10117
+ * @param {*} [options] Override http request option.
10118
+ * @throws {RequiredError}
10119
+ */
10120
+ getComingEvent(requestParameters = {}, options) {
10121
+ return localVarFp.getComingEvent(requestParameters.clubId, requestParameters.page, options).then((request) => request(axios, basePath));
10122
+ },
10063
10123
  /**
10064
10124
  * Get a specific event by ID
10065
10125
  * @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
@@ -10171,6 +10231,16 @@ export class EventsApi extends BaseAPI {
10171
10231
  estimateOpenEventBookingJoinPrice(requestParameters, options) {
10172
10232
  return EventsApiFp(this.configuration).estimateOpenEventBookingJoinPrice(requestParameters.eventBookingId, requestParameters.creditToUseInCents, options).then((request) => request(this.axios, this.basePath));
10173
10233
  }
10234
+ /**
10235
+ * Get upcoming events for a club with pagination (max 10 per page)
10236
+ * @param {EventsApiGetComingEventRequest} requestParameters Request parameters.
10237
+ * @param {*} [options] Override http request option.
10238
+ * @throws {RequiredError}
10239
+ * @memberof EventsApi
10240
+ */
10241
+ getComingEvent(requestParameters = {}, options) {
10242
+ return EventsApiFp(this.configuration).getComingEvent(requestParameters.clubId, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
10243
+ }
10174
10244
  /**
10175
10245
  * Get a specific event by ID
10176
10246
  * @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)
@@ -31,6 +31,7 @@ Name | Type | Description | Notes
31
31
  **levels** | **Array&lt;string | null&gt;** | | [optional] [default to undefined]
32
32
  **sponsors** | [**Array&lt;EventSponsor&gt;**](EventSponsor.md) | | [optional] [default to undefined]
33
33
  **registrationOpenDaysBefore** | **number** | | [default to undefined]
34
+ **isUserRegistered** | **boolean** | | [optional] [default to undefined]
34
35
  **createdBy** | **string** | | [optional] [default to undefined]
35
36
  **isActive** | **boolean** | | [default to undefined]
36
37
  **createdAt** | **string** | | [default to undefined]
@@ -68,6 +69,7 @@ const instance: EventResponse = {
68
69
  levels,
69
70
  sponsors,
70
71
  registrationOpenDaysBefore,
72
+ isUserRegistered,
71
73
  createdBy,
72
74
  isActive,
73
75
  createdAt,
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,63 @@ 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
+ [bearerAuth](../README.md#bearerAuth)
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
+ |**401** | Unauthorized | - |
242
+ |**500** | Server Error | - |
243
+
244
+ [[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)
245
+
188
246
  # **getEventById**
189
247
  > PublishEventResponse getEventById()
190
248
 
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.205",
4
4
  "description": "OpenAPI client for @tennac-booking/sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {