@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/.openapi-generator/FILES +371 -371
- package/README.md +3 -2
- package/api.ts +139 -14
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +124 -11
- package/dist/api.js +16 -6
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +124 -11
- package/dist/esm/api.js +16 -6
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/ClubsApi.md +7 -1
- package/docs/GetCourtsByClubAndSportById200Response.md +1 -1
- package/docs/GetCourtsByClubAndSportById200ResponseCourtsInner.md +50 -0
- package/docs/UpdateClubGeneralSettingsRequest.md +0 -2
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @tennac-booking/sdk@1.0.
|
|
1
|
+
## @tennac-booking/sdk@1.0.159
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @tennac-booking/sdk@1.0.
|
|
39
|
+
npm install @tennac-booking/sdk@1.0.159 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -414,6 +414,7 @@ Class | Method | HTTP request | Description
|
|
|
414
414
|
- [GetClubUsersById200Response](docs/GetClubUsersById200Response.md)
|
|
415
415
|
- [GetClubsWithVerificationDomains200ResponseInner](docs/GetClubsWithVerificationDomains200ResponseInner.md)
|
|
416
416
|
- [GetCourtsByClubAndSportById200Response](docs/GetCourtsByClubAndSportById200Response.md)
|
|
417
|
+
- [GetCourtsByClubAndSportById200ResponseCourtsInner](docs/GetCourtsByClubAndSportById200ResponseCourtsInner.md)
|
|
417
418
|
- [GetGuestBookingPrice200Response](docs/GetGuestBookingPrice200Response.md)
|
|
418
419
|
- [GetGuestBookingPriceRequest](docs/GetGuestBookingPriceRequest.md)
|
|
419
420
|
- [GetInfillPercentagePerPeriod200Response](docs/GetInfillPercentagePerPeriod200Response.md)
|
package/api.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.
|
|
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).
|
|
@@ -5877,11 +5877,116 @@ export interface GetCourtsByClubAndSportById200Response {
|
|
|
5877
5877
|
'total': number;
|
|
5878
5878
|
/**
|
|
5879
5879
|
*
|
|
5880
|
-
* @type {Array<
|
|
5880
|
+
* @type {Array<GetCourtsByClubAndSportById200ResponseCourtsInner>}
|
|
5881
5881
|
* @memberof GetCourtsByClubAndSportById200Response
|
|
5882
5882
|
*/
|
|
5883
|
-
'courts': Array<
|
|
5883
|
+
'courts': Array<GetCourtsByClubAndSportById200ResponseCourtsInner>;
|
|
5884
5884
|
}
|
|
5885
|
+
/**
|
|
5886
|
+
*
|
|
5887
|
+
* @export
|
|
5888
|
+
* @interface GetCourtsByClubAndSportById200ResponseCourtsInner
|
|
5889
|
+
*/
|
|
5890
|
+
export interface GetCourtsByClubAndSportById200ResponseCourtsInner {
|
|
5891
|
+
/**
|
|
5892
|
+
*
|
|
5893
|
+
* @type {string}
|
|
5894
|
+
* @memberof GetCourtsByClubAndSportById200ResponseCourtsInner
|
|
5895
|
+
*/
|
|
5896
|
+
'clubId': string;
|
|
5897
|
+
/**
|
|
5898
|
+
*
|
|
5899
|
+
* @type {string}
|
|
5900
|
+
* @memberof GetCourtsByClubAndSportById200ResponseCourtsInner
|
|
5901
|
+
*/
|
|
5902
|
+
'name': string;
|
|
5903
|
+
/**
|
|
5904
|
+
*
|
|
5905
|
+
* @type {CourtStatus}
|
|
5906
|
+
* @memberof GetCourtsByClubAndSportById200ResponseCourtsInner
|
|
5907
|
+
*/
|
|
5908
|
+
'status': CourtStatus;
|
|
5909
|
+
/**
|
|
5910
|
+
*
|
|
5911
|
+
* @type {string}
|
|
5912
|
+
* @memberof GetCourtsByClubAndSportById200ResponseCourtsInner
|
|
5913
|
+
*/
|
|
5914
|
+
'comments': string;
|
|
5915
|
+
/**
|
|
5916
|
+
*
|
|
5917
|
+
* @type {number}
|
|
5918
|
+
* @memberof GetCourtsByClubAndSportById200ResponseCourtsInner
|
|
5919
|
+
*/
|
|
5920
|
+
'slotDefaultDuration': number;
|
|
5921
|
+
/**
|
|
5922
|
+
*
|
|
5923
|
+
* @type {number}
|
|
5924
|
+
* @memberof GetCourtsByClubAndSportById200ResponseCourtsInner
|
|
5925
|
+
*/
|
|
5926
|
+
'startTimeInTheDayInMinutes': number;
|
|
5927
|
+
/**
|
|
5928
|
+
*
|
|
5929
|
+
* @type {number}
|
|
5930
|
+
* @memberof GetCourtsByClubAndSportById200ResponseCourtsInner
|
|
5931
|
+
*/
|
|
5932
|
+
'endTimeInTheDayInMinutes': number;
|
|
5933
|
+
/**
|
|
5934
|
+
*
|
|
5935
|
+
* @type {number}
|
|
5936
|
+
* @memberof GetCourtsByClubAndSportById200ResponseCourtsInner
|
|
5937
|
+
*/
|
|
5938
|
+
'pricePerHour'?: number;
|
|
5939
|
+
/**
|
|
5940
|
+
*
|
|
5941
|
+
* @type {string}
|
|
5942
|
+
* @memberof GetCourtsByClubAndSportById200ResponseCourtsInner
|
|
5943
|
+
*/
|
|
5944
|
+
'sportId': string;
|
|
5945
|
+
/**
|
|
5946
|
+
*
|
|
5947
|
+
* @type {SurfaceType}
|
|
5948
|
+
* @memberof GetCourtsByClubAndSportById200ResponseCourtsInner
|
|
5949
|
+
*/
|
|
5950
|
+
'surface'?: SurfaceType;
|
|
5951
|
+
/**
|
|
5952
|
+
*
|
|
5953
|
+
* @type {boolean}
|
|
5954
|
+
* @memberof GetCourtsByClubAndSportById200ResponseCourtsInner
|
|
5955
|
+
*/
|
|
5956
|
+
'isIndoor': boolean;
|
|
5957
|
+
/**
|
|
5958
|
+
*
|
|
5959
|
+
* @type {string}
|
|
5960
|
+
* @memberof GetCourtsByClubAndSportById200ResponseCourtsInner
|
|
5961
|
+
*/
|
|
5962
|
+
'createdAt'?: string;
|
|
5963
|
+
/**
|
|
5964
|
+
*
|
|
5965
|
+
* @type {string}
|
|
5966
|
+
* @memberof GetCourtsByClubAndSportById200ResponseCourtsInner
|
|
5967
|
+
*/
|
|
5968
|
+
'updatedAt'?: string;
|
|
5969
|
+
/**
|
|
5970
|
+
*
|
|
5971
|
+
* @type {number}
|
|
5972
|
+
* @memberof GetCourtsByClubAndSportById200ResponseCourtsInner
|
|
5973
|
+
*/
|
|
5974
|
+
'variationPercentage'?: number;
|
|
5975
|
+
/**
|
|
5976
|
+
*
|
|
5977
|
+
* @type {boolean}
|
|
5978
|
+
* @memberof GetCourtsByClubAndSportById200ResponseCourtsInner
|
|
5979
|
+
*/
|
|
5980
|
+
'isReducedPrice'?: boolean;
|
|
5981
|
+
/**
|
|
5982
|
+
*
|
|
5983
|
+
* @type {number}
|
|
5984
|
+
* @memberof GetCourtsByClubAndSportById200ResponseCourtsInner
|
|
5985
|
+
*/
|
|
5986
|
+
'estimatedPrice'?: number;
|
|
5987
|
+
}
|
|
5988
|
+
|
|
5989
|
+
|
|
5885
5990
|
/**
|
|
5886
5991
|
*
|
|
5887
5992
|
* @export
|
|
@@ -10600,12 +10705,6 @@ export interface UpdateClubGeneralSettingsRequest {
|
|
|
10600
10705
|
* @memberof UpdateClubGeneralSettingsRequest
|
|
10601
10706
|
*/
|
|
10602
10707
|
'description'?: string;
|
|
10603
|
-
/**
|
|
10604
|
-
*
|
|
10605
|
-
* @type {string}
|
|
10606
|
-
* @memberof UpdateClubGeneralSettingsRequest
|
|
10607
|
-
*/
|
|
10608
|
-
'rib'?: string | null;
|
|
10609
10708
|
/**
|
|
10610
10709
|
*
|
|
10611
10710
|
* @type {UpdateClubGeneralSettingsRequestLogo}
|
|
@@ -19374,10 +19473,12 @@ export const ClubsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
19374
19473
|
*
|
|
19375
19474
|
* @param {string} id
|
|
19376
19475
|
* @param {string} sportId
|
|
19476
|
+
* @param {string} [startDate]
|
|
19477
|
+
* @param {string} [endDate]
|
|
19377
19478
|
* @param {*} [options] Override http request option.
|
|
19378
19479
|
* @throws {RequiredError}
|
|
19379
19480
|
*/
|
|
19380
|
-
getCourtsByClubAndSportById: async (id: string, sportId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
19481
|
+
getCourtsByClubAndSportById: async (id: string, sportId: string, startDate?: string, endDate?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
19381
19482
|
// verify required parameter 'id' is not null or undefined
|
|
19382
19483
|
assertParamExists('getCourtsByClubAndSportById', 'id', id)
|
|
19383
19484
|
// verify required parameter 'sportId' is not null or undefined
|
|
@@ -19396,6 +19497,14 @@ export const ClubsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
19396
19497
|
const localVarHeaderParameter = {} as any;
|
|
19397
19498
|
const localVarQueryParameter = {} as any;
|
|
19398
19499
|
|
|
19500
|
+
if (startDate !== undefined) {
|
|
19501
|
+
localVarQueryParameter['startDate'] = startDate;
|
|
19502
|
+
}
|
|
19503
|
+
|
|
19504
|
+
if (endDate !== undefined) {
|
|
19505
|
+
localVarQueryParameter['endDate'] = endDate;
|
|
19506
|
+
}
|
|
19507
|
+
|
|
19399
19508
|
|
|
19400
19509
|
|
|
19401
19510
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -19672,11 +19781,13 @@ export const ClubsApiFp = function(configuration?: Configuration) {
|
|
|
19672
19781
|
*
|
|
19673
19782
|
* @param {string} id
|
|
19674
19783
|
* @param {string} sportId
|
|
19784
|
+
* @param {string} [startDate]
|
|
19785
|
+
* @param {string} [endDate]
|
|
19675
19786
|
* @param {*} [options] Override http request option.
|
|
19676
19787
|
* @throws {RequiredError}
|
|
19677
19788
|
*/
|
|
19678
|
-
async getCourtsByClubAndSportById(id: string, sportId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCourtsByClubAndSportById200Response>> {
|
|
19679
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getCourtsByClubAndSportById(id, sportId, options);
|
|
19789
|
+
async getCourtsByClubAndSportById(id: string, sportId: string, startDate?: string, endDate?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCourtsByClubAndSportById200Response>> {
|
|
19790
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCourtsByClubAndSportById(id, sportId, startDate, endDate, options);
|
|
19680
19791
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
19681
19792
|
const localVarOperationServerBasePath = operationServerMap['ClubsApi.getCourtsByClubAndSportById']?.[localVarOperationServerIndex]?.url;
|
|
19682
19793
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -19832,7 +19943,7 @@ export const ClubsApiFactory = function (configuration?: Configuration, basePath
|
|
|
19832
19943
|
* @throws {RequiredError}
|
|
19833
19944
|
*/
|
|
19834
19945
|
getCourtsByClubAndSportById(requestParameters: ClubsApiGetCourtsByClubAndSportByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetCourtsByClubAndSportById200Response> {
|
|
19835
|
-
return localVarFp.getCourtsByClubAndSportById(requestParameters.id, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
19946
|
+
return localVarFp.getCourtsByClubAndSportById(requestParameters.id, requestParameters.sportId, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(axios, basePath));
|
|
19836
19947
|
},
|
|
19837
19948
|
/**
|
|
19838
19949
|
* Récupère les informations publiques d\'un club en fonction de son ID
|
|
@@ -19997,6 +20108,20 @@ export interface ClubsApiGetCourtsByClubAndSportByIdRequest {
|
|
|
19997
20108
|
* @memberof ClubsApiGetCourtsByClubAndSportById
|
|
19998
20109
|
*/
|
|
19999
20110
|
readonly sportId: string
|
|
20111
|
+
|
|
20112
|
+
/**
|
|
20113
|
+
*
|
|
20114
|
+
* @type {string}
|
|
20115
|
+
* @memberof ClubsApiGetCourtsByClubAndSportById
|
|
20116
|
+
*/
|
|
20117
|
+
readonly startDate?: string
|
|
20118
|
+
|
|
20119
|
+
/**
|
|
20120
|
+
*
|
|
20121
|
+
* @type {string}
|
|
20122
|
+
* @memberof ClubsApiGetCourtsByClubAndSportById
|
|
20123
|
+
*/
|
|
20124
|
+
readonly endDate?: string
|
|
20000
20125
|
}
|
|
20001
20126
|
|
|
20002
20127
|
/**
|
|
@@ -20176,7 +20301,7 @@ export class ClubsApi extends BaseAPI {
|
|
|
20176
20301
|
* @memberof ClubsApi
|
|
20177
20302
|
*/
|
|
20178
20303
|
public getCourtsByClubAndSportById(requestParameters: ClubsApiGetCourtsByClubAndSportByIdRequest, options?: RawAxiosRequestConfig) {
|
|
20179
|
-
return ClubsApiFp(this.configuration).getCourtsByClubAndSportById(requestParameters.id, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
20304
|
+
return ClubsApiFp(this.configuration).getCourtsByClubAndSportById(requestParameters.id, requestParameters.sportId, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(this.axios, this.basePath));
|
|
20180
20305
|
}
|
|
20181
20306
|
|
|
20182
20307
|
/**
|
package/base.ts
CHANGED
package/common.ts
CHANGED
package/configuration.ts
CHANGED
package/dist/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.
|
|
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<
|
|
5773
|
+
* @type {Array<GetCourtsByClubAndSportById200ResponseCourtsInner>}
|
|
5774
5774
|
* @memberof GetCourtsByClubAndSportById200Response
|
|
5775
5775
|
*/
|
|
5776
|
-
'courts': Array<
|
|
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/api.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.
|
|
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).
|
|
@@ -5981,10 +5981,12 @@ const ClubsApiAxiosParamCreator = function (configuration) {
|
|
|
5981
5981
|
*
|
|
5982
5982
|
* @param {string} id
|
|
5983
5983
|
* @param {string} sportId
|
|
5984
|
+
* @param {string} [startDate]
|
|
5985
|
+
* @param {string} [endDate]
|
|
5984
5986
|
* @param {*} [options] Override http request option.
|
|
5985
5987
|
* @throws {RequiredError}
|
|
5986
5988
|
*/
|
|
5987
|
-
getCourtsByClubAndSportById: (id_1, sportId_1, ...args_1) => __awaiter(this, [id_1, sportId_1, ...args_1], void 0, function* (id, sportId, options = {}) {
|
|
5989
|
+
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 = {}) {
|
|
5988
5990
|
// verify required parameter 'id' is not null or undefined
|
|
5989
5991
|
(0, common_1.assertParamExists)('getCourtsByClubAndSportById', 'id', id);
|
|
5990
5992
|
// verify required parameter 'sportId' is not null or undefined
|
|
@@ -6001,6 +6003,12 @@ const ClubsApiAxiosParamCreator = function (configuration) {
|
|
|
6001
6003
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6002
6004
|
const localVarHeaderParameter = {};
|
|
6003
6005
|
const localVarQueryParameter = {};
|
|
6006
|
+
if (startDate !== undefined) {
|
|
6007
|
+
localVarQueryParameter['startDate'] = startDate;
|
|
6008
|
+
}
|
|
6009
|
+
if (endDate !== undefined) {
|
|
6010
|
+
localVarQueryParameter['endDate'] = endDate;
|
|
6011
|
+
}
|
|
6004
6012
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6005
6013
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6006
6014
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -6284,13 +6292,15 @@ const ClubsApiFp = function (configuration) {
|
|
|
6284
6292
|
*
|
|
6285
6293
|
* @param {string} id
|
|
6286
6294
|
* @param {string} sportId
|
|
6295
|
+
* @param {string} [startDate]
|
|
6296
|
+
* @param {string} [endDate]
|
|
6287
6297
|
* @param {*} [options] Override http request option.
|
|
6288
6298
|
* @throws {RequiredError}
|
|
6289
6299
|
*/
|
|
6290
|
-
getCourtsByClubAndSportById(id, sportId, options) {
|
|
6300
|
+
getCourtsByClubAndSportById(id, sportId, startDate, endDate, options) {
|
|
6291
6301
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6292
6302
|
var _a, _b, _c;
|
|
6293
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCourtsByClubAndSportById(id, sportId, options);
|
|
6303
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCourtsByClubAndSportById(id, sportId, startDate, endDate, options);
|
|
6294
6304
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6295
6305
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubsApi.getCourtsByClubAndSportById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6296
6306
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -6459,7 +6469,7 @@ const ClubsApiFactory = function (configuration, basePath, axios) {
|
|
|
6459
6469
|
* @throws {RequiredError}
|
|
6460
6470
|
*/
|
|
6461
6471
|
getCourtsByClubAndSportById(requestParameters, options) {
|
|
6462
|
-
return localVarFp.getCourtsByClubAndSportById(requestParameters.id, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
6472
|
+
return localVarFp.getCourtsByClubAndSportById(requestParameters.id, requestParameters.sportId, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(axios, basePath));
|
|
6463
6473
|
},
|
|
6464
6474
|
/**
|
|
6465
6475
|
* Récupère les informations publiques d\'un club en fonction de son ID
|
|
@@ -6611,7 +6621,7 @@ class ClubsApi extends base_1.BaseAPI {
|
|
|
6611
6621
|
* @memberof ClubsApi
|
|
6612
6622
|
*/
|
|
6613
6623
|
getCourtsByClubAndSportById(requestParameters, options) {
|
|
6614
|
-
return (0, exports.ClubsApiFp)(this.configuration).getCourtsByClubAndSportById(requestParameters.id, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
6624
|
+
return (0, exports.ClubsApiFp)(this.configuration).getCourtsByClubAndSportById(requestParameters.id, requestParameters.sportId, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(this.axios, this.basePath));
|
|
6615
6625
|
}
|
|
6616
6626
|
/**
|
|
6617
6627
|
* Récupère les informations publiques d\'un club en fonction de son ID
|
package/dist/base.d.ts
CHANGED
package/dist/base.js
CHANGED
package/dist/common.d.ts
CHANGED
package/dist/common.js
CHANGED
package/dist/configuration.d.ts
CHANGED
package/dist/configuration.js
CHANGED