@tennac-booking/sdk 1.0.158 → 1.0.159

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/dist/esm/api.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.154
5
+ * The version of the OpenAPI document: 1.0.159
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5770,10 +5770,113 @@ export interface GetCourtsByClubAndSportById200Response {
5770
5770
  'total': number;
5771
5771
  /**
5772
5772
  *
5773
- * @type {Array<ICourtData>}
5773
+ * @type {Array<GetCourtsByClubAndSportById200ResponseCourtsInner>}
5774
5774
  * @memberof GetCourtsByClubAndSportById200Response
5775
5775
  */
5776
- 'courts': Array<ICourtData>;
5776
+ 'courts': Array<GetCourtsByClubAndSportById200ResponseCourtsInner>;
5777
+ }
5778
+ /**
5779
+ *
5780
+ * @export
5781
+ * @interface GetCourtsByClubAndSportById200ResponseCourtsInner
5782
+ */
5783
+ export interface GetCourtsByClubAndSportById200ResponseCourtsInner {
5784
+ /**
5785
+ *
5786
+ * @type {string}
5787
+ * @memberof GetCourtsByClubAndSportById200ResponseCourtsInner
5788
+ */
5789
+ 'clubId': string;
5790
+ /**
5791
+ *
5792
+ * @type {string}
5793
+ * @memberof GetCourtsByClubAndSportById200ResponseCourtsInner
5794
+ */
5795
+ 'name': string;
5796
+ /**
5797
+ *
5798
+ * @type {CourtStatus}
5799
+ * @memberof GetCourtsByClubAndSportById200ResponseCourtsInner
5800
+ */
5801
+ 'status': CourtStatus;
5802
+ /**
5803
+ *
5804
+ * @type {string}
5805
+ * @memberof GetCourtsByClubAndSportById200ResponseCourtsInner
5806
+ */
5807
+ 'comments': string;
5808
+ /**
5809
+ *
5810
+ * @type {number}
5811
+ * @memberof GetCourtsByClubAndSportById200ResponseCourtsInner
5812
+ */
5813
+ 'slotDefaultDuration': number;
5814
+ /**
5815
+ *
5816
+ * @type {number}
5817
+ * @memberof GetCourtsByClubAndSportById200ResponseCourtsInner
5818
+ */
5819
+ 'startTimeInTheDayInMinutes': number;
5820
+ /**
5821
+ *
5822
+ * @type {number}
5823
+ * @memberof GetCourtsByClubAndSportById200ResponseCourtsInner
5824
+ */
5825
+ 'endTimeInTheDayInMinutes': number;
5826
+ /**
5827
+ *
5828
+ * @type {number}
5829
+ * @memberof GetCourtsByClubAndSportById200ResponseCourtsInner
5830
+ */
5831
+ 'pricePerHour'?: number;
5832
+ /**
5833
+ *
5834
+ * @type {string}
5835
+ * @memberof GetCourtsByClubAndSportById200ResponseCourtsInner
5836
+ */
5837
+ 'sportId': string;
5838
+ /**
5839
+ *
5840
+ * @type {SurfaceType}
5841
+ * @memberof GetCourtsByClubAndSportById200ResponseCourtsInner
5842
+ */
5843
+ 'surface'?: SurfaceType;
5844
+ /**
5845
+ *
5846
+ * @type {boolean}
5847
+ * @memberof GetCourtsByClubAndSportById200ResponseCourtsInner
5848
+ */
5849
+ 'isIndoor': boolean;
5850
+ /**
5851
+ *
5852
+ * @type {string}
5853
+ * @memberof GetCourtsByClubAndSportById200ResponseCourtsInner
5854
+ */
5855
+ 'createdAt'?: string;
5856
+ /**
5857
+ *
5858
+ * @type {string}
5859
+ * @memberof GetCourtsByClubAndSportById200ResponseCourtsInner
5860
+ */
5861
+ 'updatedAt'?: string;
5862
+ /**
5863
+ *
5864
+ * @type {number}
5865
+ * @memberof GetCourtsByClubAndSportById200ResponseCourtsInner
5866
+ */
5867
+ 'variationPercentage'?: number;
5868
+ /**
5869
+ *
5870
+ * @type {boolean}
5871
+ * @memberof GetCourtsByClubAndSportById200ResponseCourtsInner
5872
+ */
5873
+ 'isReducedPrice'?: boolean;
5874
+ /**
5875
+ *
5876
+ * @type {number}
5877
+ * @memberof GetCourtsByClubAndSportById200ResponseCourtsInner
5878
+ */
5879
+ 'estimatedPrice'?: number;
5777
5880
  }
5778
5881
  /**
5779
5882
  *
@@ -10406,12 +10509,6 @@ export interface UpdateClubGeneralSettingsRequest {
10406
10509
  * @memberof UpdateClubGeneralSettingsRequest
10407
10510
  */
10408
10511
  'description'?: string;
10409
- /**
10410
- *
10411
- * @type {string}
10412
- * @memberof UpdateClubGeneralSettingsRequest
10413
- */
10414
- 'rib'?: string | null;
10415
10512
  /**
10416
10513
  *
10417
10514
  * @type {UpdateClubGeneralSettingsRequestLogo}
@@ -15595,10 +15692,12 @@ export declare const ClubsApiAxiosParamCreator: (configuration?: Configuration)
15595
15692
  *
15596
15693
  * @param {string} id
15597
15694
  * @param {string} sportId
15695
+ * @param {string} [startDate]
15696
+ * @param {string} [endDate]
15598
15697
  * @param {*} [options] Override http request option.
15599
15698
  * @throws {RequiredError}
15600
15699
  */
15601
- getCourtsByClubAndSportById: (id: string, sportId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
15700
+ getCourtsByClubAndSportById: (id: string, sportId: string, startDate?: string, endDate?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
15602
15701
  /**
15603
15702
  * Récupère les informations publiques d\'un club en fonction de son ID
15604
15703
  * @param {string} clubId
@@ -15706,10 +15805,12 @@ export declare const ClubsApiFp: (configuration?: Configuration) => {
15706
15805
  *
15707
15806
  * @param {string} id
15708
15807
  * @param {string} sportId
15808
+ * @param {string} [startDate]
15809
+ * @param {string} [endDate]
15709
15810
  * @param {*} [options] Override http request option.
15710
15811
  * @throws {RequiredError}
15711
15812
  */
15712
- getCourtsByClubAndSportById(id: string, sportId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCourtsByClubAndSportById200Response>>;
15813
+ getCourtsByClubAndSportById(id: string, sportId: string, startDate?: string, endDate?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCourtsByClubAndSportById200Response>>;
15713
15814
  /**
15714
15815
  * Récupère les informations publiques d\'un club en fonction de son ID
15715
15816
  * @param {string} clubId
@@ -15960,6 +16061,18 @@ export interface ClubsApiGetCourtsByClubAndSportByIdRequest {
15960
16061
  * @memberof ClubsApiGetCourtsByClubAndSportById
15961
16062
  */
15962
16063
  readonly sportId: string;
16064
+ /**
16065
+ *
16066
+ * @type {string}
16067
+ * @memberof ClubsApiGetCourtsByClubAndSportById
16068
+ */
16069
+ readonly startDate?: string;
16070
+ /**
16071
+ *
16072
+ * @type {string}
16073
+ * @memberof ClubsApiGetCourtsByClubAndSportById
16074
+ */
16075
+ readonly endDate?: string;
15963
16076
  }
15964
16077
  /**
15965
16078
  * Request parameters for getPublicClubInfo operation in ClubsApi.
package/dist/esm/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.154
7
+ * The version of the OpenAPI document: 1.0.159
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5923,10 +5923,12 @@ export const ClubsApiAxiosParamCreator = function (configuration) {
5923
5923
  *
5924
5924
  * @param {string} id
5925
5925
  * @param {string} sportId
5926
+ * @param {string} [startDate]
5927
+ * @param {string} [endDate]
5926
5928
  * @param {*} [options] Override http request option.
5927
5929
  * @throws {RequiredError}
5928
5930
  */
5929
- getCourtsByClubAndSportById: (id_1, sportId_1, ...args_1) => __awaiter(this, [id_1, sportId_1, ...args_1], void 0, function* (id, sportId, options = {}) {
5931
+ getCourtsByClubAndSportById: (id_1, sportId_1, startDate_1, endDate_1, ...args_1) => __awaiter(this, [id_1, sportId_1, startDate_1, endDate_1, ...args_1], void 0, function* (id, sportId, startDate, endDate, options = {}) {
5930
5932
  // verify required parameter 'id' is not null or undefined
5931
5933
  assertParamExists('getCourtsByClubAndSportById', 'id', id);
5932
5934
  // verify required parameter 'sportId' is not null or undefined
@@ -5943,6 +5945,12 @@ export const ClubsApiAxiosParamCreator = function (configuration) {
5943
5945
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5944
5946
  const localVarHeaderParameter = {};
5945
5947
  const localVarQueryParameter = {};
5948
+ if (startDate !== undefined) {
5949
+ localVarQueryParameter['startDate'] = startDate;
5950
+ }
5951
+ if (endDate !== undefined) {
5952
+ localVarQueryParameter['endDate'] = endDate;
5953
+ }
5946
5954
  setSearchParams(localVarUrlObj, localVarQueryParameter);
5947
5955
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5948
5956
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -6225,13 +6233,15 @@ export const ClubsApiFp = function (configuration) {
6225
6233
  *
6226
6234
  * @param {string} id
6227
6235
  * @param {string} sportId
6236
+ * @param {string} [startDate]
6237
+ * @param {string} [endDate]
6228
6238
  * @param {*} [options] Override http request option.
6229
6239
  * @throws {RequiredError}
6230
6240
  */
6231
- getCourtsByClubAndSportById(id, sportId, options) {
6241
+ getCourtsByClubAndSportById(id, sportId, startDate, endDate, options) {
6232
6242
  return __awaiter(this, void 0, void 0, function* () {
6233
6243
  var _a, _b, _c;
6234
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getCourtsByClubAndSportById(id, sportId, options);
6244
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getCourtsByClubAndSportById(id, sportId, startDate, endDate, options);
6235
6245
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6236
6246
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsApi.getCourtsByClubAndSportById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6237
6247
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -6399,7 +6409,7 @@ export const ClubsApiFactory = function (configuration, basePath, axios) {
6399
6409
  * @throws {RequiredError}
6400
6410
  */
6401
6411
  getCourtsByClubAndSportById(requestParameters, options) {
6402
- return localVarFp.getCourtsByClubAndSportById(requestParameters.id, requestParameters.sportId, options).then((request) => request(axios, basePath));
6412
+ return localVarFp.getCourtsByClubAndSportById(requestParameters.id, requestParameters.sportId, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(axios, basePath));
6403
6413
  },
6404
6414
  /**
6405
6415
  * Récupère les informations publiques d\'un club en fonction de son ID
@@ -6550,7 +6560,7 @@ export class ClubsApi extends BaseAPI {
6550
6560
  * @memberof ClubsApi
6551
6561
  */
6552
6562
  getCourtsByClubAndSportById(requestParameters, options) {
6553
- return ClubsApiFp(this.configuration).getCourtsByClubAndSportById(requestParameters.id, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
6563
+ return ClubsApiFp(this.configuration).getCourtsByClubAndSportById(requestParameters.id, requestParameters.sportId, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(this.axios, this.basePath));
6554
6564
  }
6555
6565
  /**
6556
6566
  * Récupère les informations publiques d\'un club en fonction de son ID
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.154
5
+ * The version of the OpenAPI document: 1.0.159
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/base.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.154
7
+ * The version of the OpenAPI document: 1.0.159
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.154
5
+ * The version of the OpenAPI document: 1.0.159
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.154
7
+ * The version of the OpenAPI document: 1.0.159
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.154
5
+ * The version of the OpenAPI document: 1.0.159
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.154
7
+ * The version of the OpenAPI document: 1.0.159
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.154
5
+ * The version of the OpenAPI document: 1.0.159
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.154
7
+ * The version of the OpenAPI document: 1.0.159
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.154
5
+ * The version of the OpenAPI document: 1.0.159
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * openapi.json
6
6
  * Pandook API Documentation
7
7
  *
8
- * The version of the OpenAPI document: 1.0.154
8
+ * The version of the OpenAPI document: 1.0.159
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/docs/ClubsApi.md CHANGED
@@ -536,10 +536,14 @@ const apiInstance = new ClubsApi(configuration);
536
536
 
537
537
  let id: string; // (default to undefined)
538
538
  let sportId: string; // (default to undefined)
539
+ let startDate: string; // (optional) (default to undefined)
540
+ let endDate: string; // (optional) (default to undefined)
539
541
 
540
542
  const { status, data } = await apiInstance.getCourtsByClubAndSportById(
541
543
  id,
542
- sportId
544
+ sportId,
545
+ startDate,
546
+ endDate
543
547
  );
544
548
  ```
545
549
 
@@ -549,6 +553,8 @@ const { status, data } = await apiInstance.getCourtsByClubAndSportById(
549
553
  |------------- | ------------- | ------------- | -------------|
550
554
  | **id** | [**string**] | | defaults to undefined|
551
555
  | **sportId** | [**string**] | | defaults to undefined|
556
+ | **startDate** | [**string**] | | (optional) defaults to undefined|
557
+ | **endDate** | [**string**] | | (optional) defaults to undefined|
552
558
 
553
559
 
554
560
  ### Return type
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
8
8
  **sportId** | **string** | | [default to undefined]
9
9
  **clubId** | **string** | | [default to undefined]
10
10
  **total** | **number** | | [default to undefined]
11
- **courts** | [**Array&lt;ICourtData&gt;**](ICourtData.md) | | [default to undefined]
11
+ **courts** | [**Array&lt;GetCourtsByClubAndSportById200ResponseCourtsInner&gt;**](GetCourtsByClubAndSportById200ResponseCourtsInner.md) | | [default to undefined]
12
12
 
13
13
  ## Example
14
14
 
@@ -0,0 +1,50 @@
1
+ # GetCourtsByClubAndSportById200ResponseCourtsInner
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **clubId** | **string** | | [default to undefined]
9
+ **name** | **string** | | [default to undefined]
10
+ **status** | [**CourtStatus**](CourtStatus.md) | | [default to undefined]
11
+ **comments** | **string** | | [default to undefined]
12
+ **slotDefaultDuration** | **number** | | [default to undefined]
13
+ **startTimeInTheDayInMinutes** | **number** | | [default to undefined]
14
+ **endTimeInTheDayInMinutes** | **number** | | [default to undefined]
15
+ **pricePerHour** | **number** | | [optional] [default to undefined]
16
+ **sportId** | **string** | | [default to undefined]
17
+ **surface** | [**SurfaceType**](SurfaceType.md) | | [optional] [default to undefined]
18
+ **isIndoor** | **boolean** | | [default to undefined]
19
+ **createdAt** | **string** | | [optional] [default to undefined]
20
+ **updatedAt** | **string** | | [optional] [default to undefined]
21
+ **variationPercentage** | **number** | | [optional] [default to undefined]
22
+ **isReducedPrice** | **boolean** | | [optional] [default to undefined]
23
+ **estimatedPrice** | **number** | | [optional] [default to undefined]
24
+
25
+ ## Example
26
+
27
+ ```typescript
28
+ import { GetCourtsByClubAndSportById200ResponseCourtsInner } from '@tennac-booking/sdk';
29
+
30
+ const instance: GetCourtsByClubAndSportById200ResponseCourtsInner = {
31
+ clubId,
32
+ name,
33
+ status,
34
+ comments,
35
+ slotDefaultDuration,
36
+ startTimeInTheDayInMinutes,
37
+ endTimeInTheDayInMinutes,
38
+ pricePerHour,
39
+ sportId,
40
+ surface,
41
+ isIndoor,
42
+ createdAt,
43
+ updatedAt,
44
+ variationPercentage,
45
+ isReducedPrice,
46
+ estimatedPrice,
47
+ };
48
+ ```
49
+
50
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -10,7 +10,6 @@ Name | Type | Description | Notes
10
10
  **phone** | **string** | | [optional] [default to undefined]
11
11
  **websiteUrl** | **string** | | [optional] [default to undefined]
12
12
  **description** | **string** | | [optional] [default to undefined]
13
- **rib** | **string** | | [optional] [default to undefined]
14
13
  **logo** | [**UpdateClubGeneralSettingsRequestLogo**](UpdateClubGeneralSettingsRequestLogo.md) | | [optional] [default to undefined]
15
14
  **location** | [**ClubLocationSettings**](ClubLocationSettings.md) | | [optional] [default to undefined]
16
15
 
@@ -25,7 +24,6 @@ const instance: UpdateClubGeneralSettingsRequest = {
25
24
  phone,
26
25
  websiteUrl,
27
26
  description,
28
- rib,
29
27
  logo,
30
28
  location,
31
29
  };
package/index.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.154
7
+ * The version of the OpenAPI document: 1.0.159
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tennac-booking/sdk",
3
- "version": "1.0.158",
3
+ "version": "1.0.159",
4
4
  "description": "OpenAPI client for @tennac-booking/sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {