@tennac-booking/sdk 1.0.254 → 1.0.256

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -134,6 +134,7 @@ Class | Method | HTTP request | Description
134
134
  *ClubSettingsStaffApi* | [**getReservationSettings**](docs/ClubSettingsStaffApi.md#getreservationsettings) | **GET** /api/club-settings/reservation |
135
135
  *ClubsApi* | [**getActiveClubs**](docs/ClubsApi.md#getactiveclubs) | **GET** /api/clubs/active |
136
136
  *ClubsApi* | [**getAllClubs**](docs/ClubsApi.md#getallclubs) | **GET** /api/clubs |
137
+ *ClubsApi* | [**getAvailableSlotAndMultiSlotsBySportsAndDay**](docs/ClubsApi.md#getavailableslotandmultislotsbysportsandday) | **GET** /api/clubs/{id}/sports/{sportId}/slots/{day}/multi |
137
138
  *ClubsApi* | [**getAvailableSlotsBySports**](docs/ClubsApi.md#getavailableslotsbysports) | **GET** /api/clubs/{id}/sports/{sportId}/slots |
138
139
  *ClubsApi* | [**getAvailableSlotsBySportsAndDay**](docs/ClubsApi.md#getavailableslotsbysportsandday) | **GET** /api/clubs/{id}/sports/{sportId}/slots/{day} |
139
140
  *ClubsApi* | [**getAvailableSlotsDaysByClubById**](docs/ClubsApi.md#getavailableslotsdaysbyclubbyid) | **GET** /api/clubs/{clubID}/availableSlotsDays |
package/api.ts CHANGED
@@ -692,6 +692,12 @@ export interface BookingPaymentStatus {
692
692
  * @memberof BookingPaymentStatus
693
693
  */
694
694
  'invoiceStatus'?: InvoiceStatus | null;
695
+ /**
696
+ *
697
+ * @type {PaymentMethod}
698
+ * @memberof BookingPaymentStatus
699
+ */
700
+ 'paymentMethod'?: PaymentMethod | null;
695
701
  }
696
702
 
697
703
 
@@ -11075,6 +11081,12 @@ export interface PartnerSearchItem {
11075
11081
  * @memberof PartnerSearchItem
11076
11082
  */
11077
11083
  'lastName': string;
11084
+ /**
11085
+ *
11086
+ * @type {string}
11087
+ * @memberof PartnerSearchItem
11088
+ */
11089
+ 'email': string;
11078
11090
  /**
11079
11091
  *
11080
11092
  * @type {string}
@@ -25063,6 +25075,47 @@ export const ClubsApiAxiosParamCreator = function (configuration?: Configuration
25063
25075
 
25064
25076
 
25065
25077
 
25078
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
25079
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
25080
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
25081
+
25082
+ return {
25083
+ url: toPathString(localVarUrlObj),
25084
+ options: localVarRequestOptions,
25085
+ };
25086
+ },
25087
+ /**
25088
+ *
25089
+ * @param {string} id
25090
+ * @param {string} sportId
25091
+ * @param {string} day
25092
+ * @param {*} [options] Override http request option.
25093
+ * @throws {RequiredError}
25094
+ */
25095
+ getAvailableSlotAndMultiSlotsBySportsAndDay: async (id: string, sportId: string, day: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
25096
+ // verify required parameter 'id' is not null or undefined
25097
+ assertParamExists('getAvailableSlotAndMultiSlotsBySportsAndDay', 'id', id)
25098
+ // verify required parameter 'sportId' is not null or undefined
25099
+ assertParamExists('getAvailableSlotAndMultiSlotsBySportsAndDay', 'sportId', sportId)
25100
+ // verify required parameter 'day' is not null or undefined
25101
+ assertParamExists('getAvailableSlotAndMultiSlotsBySportsAndDay', 'day', day)
25102
+ const localVarPath = `/api/clubs/{id}/sports/{sportId}/slots/{day}/multi`
25103
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
25104
+ .replace(`{${"sportId"}}`, encodeURIComponent(String(sportId)))
25105
+ .replace(`{${"day"}}`, encodeURIComponent(String(day)));
25106
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
25107
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
25108
+ let baseOptions;
25109
+ if (configuration) {
25110
+ baseOptions = configuration.baseOptions;
25111
+ }
25112
+
25113
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
25114
+ const localVarHeaderParameter = {} as any;
25115
+ const localVarQueryParameter = {} as any;
25116
+
25117
+
25118
+
25066
25119
  setSearchParams(localVarUrlObj, localVarQueryParameter);
25067
25120
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
25068
25121
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -25588,6 +25641,20 @@ export const ClubsApiFp = function(configuration?: Configuration) {
25588
25641
  const localVarOperationServerBasePath = operationServerMap['ClubsApi.getAllClubs']?.[localVarOperationServerIndex]?.url;
25589
25642
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
25590
25643
  },
25644
+ /**
25645
+ *
25646
+ * @param {string} id
25647
+ * @param {string} sportId
25648
+ * @param {string} day
25649
+ * @param {*} [options] Override http request option.
25650
+ * @throws {RequiredError}
25651
+ */
25652
+ async getAvailableSlotAndMultiSlotsBySportsAndDay(id: string, sportId: string, day: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAvailableSlotsBySports200Response>> {
25653
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAvailableSlotAndMultiSlotsBySportsAndDay(id, sportId, day, options);
25654
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
25655
+ const localVarOperationServerBasePath = operationServerMap['ClubsApi.getAvailableSlotAndMultiSlotsBySportsAndDay']?.[localVarOperationServerIndex]?.url;
25656
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
25657
+ },
25591
25658
  /**
25592
25659
  *
25593
25660
  * @param {string} id
@@ -25786,6 +25853,15 @@ export const ClubsApiFactory = function (configuration?: Configuration, basePath
25786
25853
  getAllClubs(options?: RawAxiosRequestConfig): AxiosPromise<Array<ClubResponse>> {
25787
25854
  return localVarFp.getAllClubs(options).then((request) => request(axios, basePath));
25788
25855
  },
25856
+ /**
25857
+ *
25858
+ * @param {ClubsApiGetAvailableSlotAndMultiSlotsBySportsAndDayRequest} requestParameters Request parameters.
25859
+ * @param {*} [options] Override http request option.
25860
+ * @throws {RequiredError}
25861
+ */
25862
+ getAvailableSlotAndMultiSlotsBySportsAndDay(requestParameters: ClubsApiGetAvailableSlotAndMultiSlotsBySportsAndDayRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAvailableSlotsBySports200Response> {
25863
+ return localVarFp.getAvailableSlotAndMultiSlotsBySportsAndDay(requestParameters.id, requestParameters.sportId, requestParameters.day, options).then((request) => request(axios, basePath));
25864
+ },
25789
25865
  /**
25790
25866
  *
25791
25867
  * @param {ClubsApiGetAvailableSlotsBySportsRequest} requestParameters Request parameters.
@@ -25913,6 +25989,34 @@ export const ClubsApiFactory = function (configuration?: Configuration, basePath
25913
25989
  };
25914
25990
  };
25915
25991
 
25992
+ /**
25993
+ * Request parameters for getAvailableSlotAndMultiSlotsBySportsAndDay operation in ClubsApi.
25994
+ * @export
25995
+ * @interface ClubsApiGetAvailableSlotAndMultiSlotsBySportsAndDayRequest
25996
+ */
25997
+ export interface ClubsApiGetAvailableSlotAndMultiSlotsBySportsAndDayRequest {
25998
+ /**
25999
+ *
26000
+ * @type {string}
26001
+ * @memberof ClubsApiGetAvailableSlotAndMultiSlotsBySportsAndDay
26002
+ */
26003
+ readonly id: string
26004
+
26005
+ /**
26006
+ *
26007
+ * @type {string}
26008
+ * @memberof ClubsApiGetAvailableSlotAndMultiSlotsBySportsAndDay
26009
+ */
26010
+ readonly sportId: string
26011
+
26012
+ /**
26013
+ *
26014
+ * @type {string}
26015
+ * @memberof ClubsApiGetAvailableSlotAndMultiSlotsBySportsAndDay
26016
+ */
26017
+ readonly day: string
26018
+ }
26019
+
25916
26020
  /**
25917
26021
  * Request parameters for getAvailableSlotsBySports operation in ClubsApi.
25918
26022
  * @export
@@ -26150,6 +26254,17 @@ export class ClubsApi extends BaseAPI {
26150
26254
  return ClubsApiFp(this.configuration).getAllClubs(options).then((request) => request(this.axios, this.basePath));
26151
26255
  }
26152
26256
 
26257
+ /**
26258
+ *
26259
+ * @param {ClubsApiGetAvailableSlotAndMultiSlotsBySportsAndDayRequest} requestParameters Request parameters.
26260
+ * @param {*} [options] Override http request option.
26261
+ * @throws {RequiredError}
26262
+ * @memberof ClubsApi
26263
+ */
26264
+ public getAvailableSlotAndMultiSlotsBySportsAndDay(requestParameters: ClubsApiGetAvailableSlotAndMultiSlotsBySportsAndDayRequest, options?: RawAxiosRequestConfig) {
26265
+ return ClubsApiFp(this.configuration).getAvailableSlotAndMultiSlotsBySportsAndDay(requestParameters.id, requestParameters.sportId, requestParameters.day, options).then((request) => request(this.axios, this.basePath));
26266
+ }
26267
+
26153
26268
  /**
26154
26269
  *
26155
26270
  * @param {ClubsApiGetAvailableSlotsBySportsRequest} requestParameters Request parameters.
package/dist/api.d.ts CHANGED
@@ -673,6 +673,12 @@ export interface BookingPaymentStatus {
673
673
  * @memberof BookingPaymentStatus
674
674
  */
675
675
  'invoiceStatus'?: InvoiceStatus | null;
676
+ /**
677
+ *
678
+ * @type {PaymentMethod}
679
+ * @memberof BookingPaymentStatus
680
+ */
681
+ 'paymentMethod'?: PaymentMethod | null;
676
682
  }
677
683
  /**
678
684
  *
@@ -10926,6 +10932,12 @@ export interface PartnerSearchItem {
10926
10932
  * @memberof PartnerSearchItem
10927
10933
  */
10928
10934
  'lastName': string;
10935
+ /**
10936
+ *
10937
+ * @type {string}
10938
+ * @memberof PartnerSearchItem
10939
+ */
10940
+ 'email': string;
10929
10941
  /**
10930
10942
  *
10931
10943
  * @type {string}
@@ -21101,6 +21113,15 @@ export declare const ClubsApiAxiosParamCreator: (configuration?: Configuration)
21101
21113
  * @throws {RequiredError}
21102
21114
  */
21103
21115
  getAllClubs: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
21116
+ /**
21117
+ *
21118
+ * @param {string} id
21119
+ * @param {string} sportId
21120
+ * @param {string} day
21121
+ * @param {*} [options] Override http request option.
21122
+ * @throws {RequiredError}
21123
+ */
21124
+ getAvailableSlotAndMultiSlotsBySportsAndDay: (id: string, sportId: string, day: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
21104
21125
  /**
21105
21126
  *
21106
21127
  * @param {string} id
@@ -21221,6 +21242,15 @@ export declare const ClubsApiFp: (configuration?: Configuration) => {
21221
21242
  * @throws {RequiredError}
21222
21243
  */
21223
21244
  getAllClubs(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ClubResponse>>>;
21245
+ /**
21246
+ *
21247
+ * @param {string} id
21248
+ * @param {string} sportId
21249
+ * @param {string} day
21250
+ * @param {*} [options] Override http request option.
21251
+ * @throws {RequiredError}
21252
+ */
21253
+ getAvailableSlotAndMultiSlotsBySportsAndDay(id: string, sportId: string, day: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAvailableSlotsBySports200Response>>;
21224
21254
  /**
21225
21255
  *
21226
21256
  * @param {string} id
@@ -21341,6 +21371,13 @@ export declare const ClubsApiFactory: (configuration?: Configuration, basePath?:
21341
21371
  * @throws {RequiredError}
21342
21372
  */
21343
21373
  getAllClubs(options?: RawAxiosRequestConfig): AxiosPromise<Array<ClubResponse>>;
21374
+ /**
21375
+ *
21376
+ * @param {ClubsApiGetAvailableSlotAndMultiSlotsBySportsAndDayRequest} requestParameters Request parameters.
21377
+ * @param {*} [options] Override http request option.
21378
+ * @throws {RequiredError}
21379
+ */
21380
+ getAvailableSlotAndMultiSlotsBySportsAndDay(requestParameters: ClubsApiGetAvailableSlotAndMultiSlotsBySportsAndDayRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAvailableSlotsBySports200Response>;
21344
21381
  /**
21345
21382
  *
21346
21383
  * @param {ClubsApiGetAvailableSlotsBySportsRequest} requestParameters Request parameters.
@@ -21438,6 +21475,31 @@ export declare const ClubsApiFactory: (configuration?: Configuration, basePath?:
21438
21475
  */
21439
21476
  getSportsByClubById(requestParameters: ClubsApiGetSportsByClubByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<SportResponse>>;
21440
21477
  };
21478
+ /**
21479
+ * Request parameters for getAvailableSlotAndMultiSlotsBySportsAndDay operation in ClubsApi.
21480
+ * @export
21481
+ * @interface ClubsApiGetAvailableSlotAndMultiSlotsBySportsAndDayRequest
21482
+ */
21483
+ export interface ClubsApiGetAvailableSlotAndMultiSlotsBySportsAndDayRequest {
21484
+ /**
21485
+ *
21486
+ * @type {string}
21487
+ * @memberof ClubsApiGetAvailableSlotAndMultiSlotsBySportsAndDay
21488
+ */
21489
+ readonly id: string;
21490
+ /**
21491
+ *
21492
+ * @type {string}
21493
+ * @memberof ClubsApiGetAvailableSlotAndMultiSlotsBySportsAndDay
21494
+ */
21495
+ readonly sportId: string;
21496
+ /**
21497
+ *
21498
+ * @type {string}
21499
+ * @memberof ClubsApiGetAvailableSlotAndMultiSlotsBySportsAndDay
21500
+ */
21501
+ readonly day: string;
21502
+ }
21441
21503
  /**
21442
21504
  * Request parameters for getAvailableSlotsBySports operation in ClubsApi.
21443
21505
  * @export
@@ -21651,6 +21713,14 @@ export declare class ClubsApi extends BaseAPI {
21651
21713
  * @memberof ClubsApi
21652
21714
  */
21653
21715
  getAllClubs(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ClubResponse[], any, {}>>;
21716
+ /**
21717
+ *
21718
+ * @param {ClubsApiGetAvailableSlotAndMultiSlotsBySportsAndDayRequest} requestParameters Request parameters.
21719
+ * @param {*} [options] Override http request option.
21720
+ * @throws {RequiredError}
21721
+ * @memberof ClubsApi
21722
+ */
21723
+ getAvailableSlotAndMultiSlotsBySportsAndDay(requestParameters: ClubsApiGetAvailableSlotAndMultiSlotsBySportsAndDayRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetAvailableSlotsBySports200Response, any, {}>>;
21654
21724
  /**
21655
21725
  *
21656
21726
  * @param {ClubsApiGetAvailableSlotsBySportsRequest} requestParameters Request parameters.
package/dist/api.js CHANGED
@@ -6466,6 +6466,42 @@ const ClubsApiAxiosParamCreator = function (configuration) {
6466
6466
  options: localVarRequestOptions,
6467
6467
  };
6468
6468
  }),
6469
+ /**
6470
+ *
6471
+ * @param {string} id
6472
+ * @param {string} sportId
6473
+ * @param {string} day
6474
+ * @param {*} [options] Override http request option.
6475
+ * @throws {RequiredError}
6476
+ */
6477
+ getAvailableSlotAndMultiSlotsBySportsAndDay: (id_1, sportId_1, day_1, ...args_1) => __awaiter(this, [id_1, sportId_1, day_1, ...args_1], void 0, function* (id, sportId, day, options = {}) {
6478
+ // verify required parameter 'id' is not null or undefined
6479
+ (0, common_1.assertParamExists)('getAvailableSlotAndMultiSlotsBySportsAndDay', 'id', id);
6480
+ // verify required parameter 'sportId' is not null or undefined
6481
+ (0, common_1.assertParamExists)('getAvailableSlotAndMultiSlotsBySportsAndDay', 'sportId', sportId);
6482
+ // verify required parameter 'day' is not null or undefined
6483
+ (0, common_1.assertParamExists)('getAvailableSlotAndMultiSlotsBySportsAndDay', 'day', day);
6484
+ const localVarPath = `/api/clubs/{id}/sports/{sportId}/slots/{day}/multi`
6485
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
6486
+ .replace(`{${"sportId"}}`, encodeURIComponent(String(sportId)))
6487
+ .replace(`{${"day"}}`, encodeURIComponent(String(day)));
6488
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6489
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6490
+ let baseOptions;
6491
+ if (configuration) {
6492
+ baseOptions = configuration.baseOptions;
6493
+ }
6494
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6495
+ const localVarHeaderParameter = {};
6496
+ const localVarQueryParameter = {};
6497
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6498
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6499
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6500
+ return {
6501
+ url: (0, common_1.toPathString)(localVarUrlObj),
6502
+ options: localVarRequestOptions,
6503
+ };
6504
+ }),
6469
6505
  /**
6470
6506
  *
6471
6507
  * @param {string} id
@@ -6915,6 +6951,23 @@ const ClubsApiFp = function (configuration) {
6915
6951
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6916
6952
  });
6917
6953
  },
6954
+ /**
6955
+ *
6956
+ * @param {string} id
6957
+ * @param {string} sportId
6958
+ * @param {string} day
6959
+ * @param {*} [options] Override http request option.
6960
+ * @throws {RequiredError}
6961
+ */
6962
+ getAvailableSlotAndMultiSlotsBySportsAndDay(id, sportId, day, options) {
6963
+ return __awaiter(this, void 0, void 0, function* () {
6964
+ var _a, _b, _c;
6965
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getAvailableSlotAndMultiSlotsBySportsAndDay(id, sportId, day, options);
6966
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6967
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubsApi.getAvailableSlotAndMultiSlotsBySportsAndDay']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6968
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6969
+ });
6970
+ },
6918
6971
  /**
6919
6972
  *
6920
6973
  * @param {string} id
@@ -7155,6 +7208,15 @@ const ClubsApiFactory = function (configuration, basePath, axios) {
7155
7208
  getAllClubs(options) {
7156
7209
  return localVarFp.getAllClubs(options).then((request) => request(axios, basePath));
7157
7210
  },
7211
+ /**
7212
+ *
7213
+ * @param {ClubsApiGetAvailableSlotAndMultiSlotsBySportsAndDayRequest} requestParameters Request parameters.
7214
+ * @param {*} [options] Override http request option.
7215
+ * @throws {RequiredError}
7216
+ */
7217
+ getAvailableSlotAndMultiSlotsBySportsAndDay(requestParameters, options) {
7218
+ return localVarFp.getAvailableSlotAndMultiSlotsBySportsAndDay(requestParameters.id, requestParameters.sportId, requestParameters.day, options).then((request) => request(axios, basePath));
7219
+ },
7158
7220
  /**
7159
7221
  *
7160
7222
  * @param {ClubsApiGetAvailableSlotsBySportsRequest} requestParameters Request parameters.
@@ -7307,6 +7369,16 @@ class ClubsApi extends base_1.BaseAPI {
7307
7369
  getAllClubs(options) {
7308
7370
  return (0, exports.ClubsApiFp)(this.configuration).getAllClubs(options).then((request) => request(this.axios, this.basePath));
7309
7371
  }
7372
+ /**
7373
+ *
7374
+ * @param {ClubsApiGetAvailableSlotAndMultiSlotsBySportsAndDayRequest} requestParameters Request parameters.
7375
+ * @param {*} [options] Override http request option.
7376
+ * @throws {RequiredError}
7377
+ * @memberof ClubsApi
7378
+ */
7379
+ getAvailableSlotAndMultiSlotsBySportsAndDay(requestParameters, options) {
7380
+ return (0, exports.ClubsApiFp)(this.configuration).getAvailableSlotAndMultiSlotsBySportsAndDay(requestParameters.id, requestParameters.sportId, requestParameters.day, options).then((request) => request(this.axios, this.basePath));
7381
+ }
7310
7382
  /**
7311
7383
  *
7312
7384
  * @param {ClubsApiGetAvailableSlotsBySportsRequest} requestParameters Request parameters.
package/dist/esm/api.d.ts CHANGED
@@ -673,6 +673,12 @@ export interface BookingPaymentStatus {
673
673
  * @memberof BookingPaymentStatus
674
674
  */
675
675
  'invoiceStatus'?: InvoiceStatus | null;
676
+ /**
677
+ *
678
+ * @type {PaymentMethod}
679
+ * @memberof BookingPaymentStatus
680
+ */
681
+ 'paymentMethod'?: PaymentMethod | null;
676
682
  }
677
683
  /**
678
684
  *
@@ -10926,6 +10932,12 @@ export interface PartnerSearchItem {
10926
10932
  * @memberof PartnerSearchItem
10927
10933
  */
10928
10934
  'lastName': string;
10935
+ /**
10936
+ *
10937
+ * @type {string}
10938
+ * @memberof PartnerSearchItem
10939
+ */
10940
+ 'email': string;
10929
10941
  /**
10930
10942
  *
10931
10943
  * @type {string}
@@ -21101,6 +21113,15 @@ export declare const ClubsApiAxiosParamCreator: (configuration?: Configuration)
21101
21113
  * @throws {RequiredError}
21102
21114
  */
21103
21115
  getAllClubs: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
21116
+ /**
21117
+ *
21118
+ * @param {string} id
21119
+ * @param {string} sportId
21120
+ * @param {string} day
21121
+ * @param {*} [options] Override http request option.
21122
+ * @throws {RequiredError}
21123
+ */
21124
+ getAvailableSlotAndMultiSlotsBySportsAndDay: (id: string, sportId: string, day: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
21104
21125
  /**
21105
21126
  *
21106
21127
  * @param {string} id
@@ -21221,6 +21242,15 @@ export declare const ClubsApiFp: (configuration?: Configuration) => {
21221
21242
  * @throws {RequiredError}
21222
21243
  */
21223
21244
  getAllClubs(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ClubResponse>>>;
21245
+ /**
21246
+ *
21247
+ * @param {string} id
21248
+ * @param {string} sportId
21249
+ * @param {string} day
21250
+ * @param {*} [options] Override http request option.
21251
+ * @throws {RequiredError}
21252
+ */
21253
+ getAvailableSlotAndMultiSlotsBySportsAndDay(id: string, sportId: string, day: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAvailableSlotsBySports200Response>>;
21224
21254
  /**
21225
21255
  *
21226
21256
  * @param {string} id
@@ -21341,6 +21371,13 @@ export declare const ClubsApiFactory: (configuration?: Configuration, basePath?:
21341
21371
  * @throws {RequiredError}
21342
21372
  */
21343
21373
  getAllClubs(options?: RawAxiosRequestConfig): AxiosPromise<Array<ClubResponse>>;
21374
+ /**
21375
+ *
21376
+ * @param {ClubsApiGetAvailableSlotAndMultiSlotsBySportsAndDayRequest} requestParameters Request parameters.
21377
+ * @param {*} [options] Override http request option.
21378
+ * @throws {RequiredError}
21379
+ */
21380
+ getAvailableSlotAndMultiSlotsBySportsAndDay(requestParameters: ClubsApiGetAvailableSlotAndMultiSlotsBySportsAndDayRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAvailableSlotsBySports200Response>;
21344
21381
  /**
21345
21382
  *
21346
21383
  * @param {ClubsApiGetAvailableSlotsBySportsRequest} requestParameters Request parameters.
@@ -21438,6 +21475,31 @@ export declare const ClubsApiFactory: (configuration?: Configuration, basePath?:
21438
21475
  */
21439
21476
  getSportsByClubById(requestParameters: ClubsApiGetSportsByClubByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<SportResponse>>;
21440
21477
  };
21478
+ /**
21479
+ * Request parameters for getAvailableSlotAndMultiSlotsBySportsAndDay operation in ClubsApi.
21480
+ * @export
21481
+ * @interface ClubsApiGetAvailableSlotAndMultiSlotsBySportsAndDayRequest
21482
+ */
21483
+ export interface ClubsApiGetAvailableSlotAndMultiSlotsBySportsAndDayRequest {
21484
+ /**
21485
+ *
21486
+ * @type {string}
21487
+ * @memberof ClubsApiGetAvailableSlotAndMultiSlotsBySportsAndDay
21488
+ */
21489
+ readonly id: string;
21490
+ /**
21491
+ *
21492
+ * @type {string}
21493
+ * @memberof ClubsApiGetAvailableSlotAndMultiSlotsBySportsAndDay
21494
+ */
21495
+ readonly sportId: string;
21496
+ /**
21497
+ *
21498
+ * @type {string}
21499
+ * @memberof ClubsApiGetAvailableSlotAndMultiSlotsBySportsAndDay
21500
+ */
21501
+ readonly day: string;
21502
+ }
21441
21503
  /**
21442
21504
  * Request parameters for getAvailableSlotsBySports operation in ClubsApi.
21443
21505
  * @export
@@ -21651,6 +21713,14 @@ export declare class ClubsApi extends BaseAPI {
21651
21713
  * @memberof ClubsApi
21652
21714
  */
21653
21715
  getAllClubs(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ClubResponse[], any, {}>>;
21716
+ /**
21717
+ *
21718
+ * @param {ClubsApiGetAvailableSlotAndMultiSlotsBySportsAndDayRequest} requestParameters Request parameters.
21719
+ * @param {*} [options] Override http request option.
21720
+ * @throws {RequiredError}
21721
+ * @memberof ClubsApi
21722
+ */
21723
+ getAvailableSlotAndMultiSlotsBySportsAndDay(requestParameters: ClubsApiGetAvailableSlotAndMultiSlotsBySportsAndDayRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetAvailableSlotsBySports200Response, any, {}>>;
21654
21724
  /**
21655
21725
  *
21656
21726
  * @param {ClubsApiGetAvailableSlotsBySportsRequest} requestParameters Request parameters.
package/dist/esm/api.js CHANGED
@@ -6403,6 +6403,42 @@ export const ClubsApiAxiosParamCreator = function (configuration) {
6403
6403
  options: localVarRequestOptions,
6404
6404
  };
6405
6405
  }),
6406
+ /**
6407
+ *
6408
+ * @param {string} id
6409
+ * @param {string} sportId
6410
+ * @param {string} day
6411
+ * @param {*} [options] Override http request option.
6412
+ * @throws {RequiredError}
6413
+ */
6414
+ getAvailableSlotAndMultiSlotsBySportsAndDay: (id_1, sportId_1, day_1, ...args_1) => __awaiter(this, [id_1, sportId_1, day_1, ...args_1], void 0, function* (id, sportId, day, options = {}) {
6415
+ // verify required parameter 'id' is not null or undefined
6416
+ assertParamExists('getAvailableSlotAndMultiSlotsBySportsAndDay', 'id', id);
6417
+ // verify required parameter 'sportId' is not null or undefined
6418
+ assertParamExists('getAvailableSlotAndMultiSlotsBySportsAndDay', 'sportId', sportId);
6419
+ // verify required parameter 'day' is not null or undefined
6420
+ assertParamExists('getAvailableSlotAndMultiSlotsBySportsAndDay', 'day', day);
6421
+ const localVarPath = `/api/clubs/{id}/sports/{sportId}/slots/{day}/multi`
6422
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
6423
+ .replace(`{${"sportId"}}`, encodeURIComponent(String(sportId)))
6424
+ .replace(`{${"day"}}`, encodeURIComponent(String(day)));
6425
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6426
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6427
+ let baseOptions;
6428
+ if (configuration) {
6429
+ baseOptions = configuration.baseOptions;
6430
+ }
6431
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6432
+ const localVarHeaderParameter = {};
6433
+ const localVarQueryParameter = {};
6434
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6435
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6436
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6437
+ return {
6438
+ url: toPathString(localVarUrlObj),
6439
+ options: localVarRequestOptions,
6440
+ };
6441
+ }),
6406
6442
  /**
6407
6443
  *
6408
6444
  * @param {string} id
@@ -6851,6 +6887,23 @@ export const ClubsApiFp = function (configuration) {
6851
6887
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6852
6888
  });
6853
6889
  },
6890
+ /**
6891
+ *
6892
+ * @param {string} id
6893
+ * @param {string} sportId
6894
+ * @param {string} day
6895
+ * @param {*} [options] Override http request option.
6896
+ * @throws {RequiredError}
6897
+ */
6898
+ getAvailableSlotAndMultiSlotsBySportsAndDay(id, sportId, day, options) {
6899
+ return __awaiter(this, void 0, void 0, function* () {
6900
+ var _a, _b, _c;
6901
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getAvailableSlotAndMultiSlotsBySportsAndDay(id, sportId, day, options);
6902
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6903
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsApi.getAvailableSlotAndMultiSlotsBySportsAndDay']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6904
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6905
+ });
6906
+ },
6854
6907
  /**
6855
6908
  *
6856
6909
  * @param {string} id
@@ -7090,6 +7143,15 @@ export const ClubsApiFactory = function (configuration, basePath, axios) {
7090
7143
  getAllClubs(options) {
7091
7144
  return localVarFp.getAllClubs(options).then((request) => request(axios, basePath));
7092
7145
  },
7146
+ /**
7147
+ *
7148
+ * @param {ClubsApiGetAvailableSlotAndMultiSlotsBySportsAndDayRequest} requestParameters Request parameters.
7149
+ * @param {*} [options] Override http request option.
7150
+ * @throws {RequiredError}
7151
+ */
7152
+ getAvailableSlotAndMultiSlotsBySportsAndDay(requestParameters, options) {
7153
+ return localVarFp.getAvailableSlotAndMultiSlotsBySportsAndDay(requestParameters.id, requestParameters.sportId, requestParameters.day, options).then((request) => request(axios, basePath));
7154
+ },
7093
7155
  /**
7094
7156
  *
7095
7157
  * @param {ClubsApiGetAvailableSlotsBySportsRequest} requestParameters Request parameters.
@@ -7241,6 +7303,16 @@ export class ClubsApi extends BaseAPI {
7241
7303
  getAllClubs(options) {
7242
7304
  return ClubsApiFp(this.configuration).getAllClubs(options).then((request) => request(this.axios, this.basePath));
7243
7305
  }
7306
+ /**
7307
+ *
7308
+ * @param {ClubsApiGetAvailableSlotAndMultiSlotsBySportsAndDayRequest} requestParameters Request parameters.
7309
+ * @param {*} [options] Override http request option.
7310
+ * @throws {RequiredError}
7311
+ * @memberof ClubsApi
7312
+ */
7313
+ getAvailableSlotAndMultiSlotsBySportsAndDay(requestParameters, options) {
7314
+ return ClubsApiFp(this.configuration).getAvailableSlotAndMultiSlotsBySportsAndDay(requestParameters.id, requestParameters.sportId, requestParameters.day, options).then((request) => request(this.axios, this.basePath));
7315
+ }
7244
7316
  /**
7245
7317
  *
7246
7318
  * @param {ClubsApiGetAvailableSlotsBySportsRequest} requestParameters Request parameters.
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
8
8
  **playerId** | **string** | | [default to undefined]
9
9
  **invoiceId** | **string** | | [optional] [default to undefined]
10
10
  **invoiceStatus** | [**InvoiceStatus**](InvoiceStatus.md) | | [optional] [default to undefined]
11
+ **paymentMethod** | [**PaymentMethod**](PaymentMethod.md) | | [optional] [default to undefined]
11
12
 
12
13
  ## Example
13
14
 
@@ -18,6 +19,7 @@ const instance: BookingPaymentStatus = {
18
19
  playerId,
19
20
  invoiceId,
20
21
  invoiceStatus,
22
+ paymentMethod,
21
23
  };
22
24
  ```
23
25
 
package/docs/ClubsApi.md CHANGED
@@ -6,6 +6,7 @@ All URIs are relative to *http://localhost*
6
6
  |------------- | ------------- | -------------|
7
7
  |[**getActiveClubs**](#getactiveclubs) | **GET** /api/clubs/active | |
8
8
  |[**getAllClubs**](#getallclubs) | **GET** /api/clubs | |
9
+ |[**getAvailableSlotAndMultiSlotsBySportsAndDay**](#getavailableslotandmultislotsbysportsandday) | **GET** /api/clubs/{id}/sports/{sportId}/slots/{day}/multi | |
9
10
  |[**getAvailableSlotsBySports**](#getavailableslotsbysports) | **GET** /api/clubs/{id}/sports/{sportId}/slots | |
10
11
  |[**getAvailableSlotsBySportsAndDay**](#getavailableslotsbysportsandday) | **GET** /api/clubs/{id}/sports/{sportId}/slots/{day} | |
11
12
  |[**getAvailableSlotsDaysByClubById**](#getavailableslotsdaysbyclubbyid) | **GET** /api/clubs/{clubID}/availableSlotsDays | |
@@ -111,6 +112,62 @@ No authorization required
111
112
 
112
113
  [[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)
113
114
 
115
+ # **getAvailableSlotAndMultiSlotsBySportsAndDay**
116
+ > GetAvailableSlotsBySports200Response getAvailableSlotAndMultiSlotsBySportsAndDay()
117
+
118
+
119
+ ### Example
120
+
121
+ ```typescript
122
+ import {
123
+ ClubsApi,
124
+ Configuration
125
+ } from '@tennac-booking/sdk';
126
+
127
+ const configuration = new Configuration();
128
+ const apiInstance = new ClubsApi(configuration);
129
+
130
+ let id: string; // (default to undefined)
131
+ let sportId: string; // (default to undefined)
132
+ let day: string; // (default to undefined)
133
+
134
+ const { status, data } = await apiInstance.getAvailableSlotAndMultiSlotsBySportsAndDay(
135
+ id,
136
+ sportId,
137
+ day
138
+ );
139
+ ```
140
+
141
+ ### Parameters
142
+
143
+ |Name | Type | Description | Notes|
144
+ |------------- | ------------- | ------------- | -------------|
145
+ | **id** | [**string**] | | defaults to undefined|
146
+ | **sportId** | [**string**] | | defaults to undefined|
147
+ | **day** | [**string**] | | defaults to undefined|
148
+
149
+
150
+ ### Return type
151
+
152
+ **GetAvailableSlotsBySports200Response**
153
+
154
+ ### Authorization
155
+
156
+ No authorization required
157
+
158
+ ### HTTP request headers
159
+
160
+ - **Content-Type**: Not defined
161
+ - **Accept**: application/json
162
+
163
+
164
+ ### HTTP response details
165
+ | Status code | Description | Response headers |
166
+ |-------------|-------------|------------------|
167
+ |**200** | Available multi-slots by sport and day | - |
168
+
169
+ [[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)
170
+
114
171
  # **getAvailableSlotsBySports**
115
172
  > GetAvailableSlotsBySports200Response getAvailableSlotsBySports()
116
173
 
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
8
8
  **id** | **string** | | [default to undefined]
9
9
  **firstName** | **string** | | [default to undefined]
10
10
  **lastName** | **string** | | [default to undefined]
11
+ **email** | **string** | | [default to undefined]
11
12
  **profilePicture** | **string** | | [default to undefined]
12
13
  **isFavorite** | **boolean** | | [default to undefined]
13
14
 
@@ -20,6 +21,7 @@ const instance: PartnerSearchItem = {
20
21
  id,
21
22
  firstName,
22
23
  lastName,
24
+ email,
23
25
  profilePicture,
24
26
  isFavorite,
25
27
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tennac-booking/sdk",
3
- "version": "1.0.254",
3
+ "version": "1.0.256",
4
4
  "description": "OpenAPI client for @tennac-booking/sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {