@tennac-booking/sdk 1.0.158 → 1.0.160
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 +373 -371
- package/README.md +5 -2
- package/api.ts +237 -14
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +185 -11
- package/dist/api.js +78 -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 +185 -11
- package/dist/esm/api.js +78 -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/ClientOnboardingRequestBody.md +2 -0
- package/docs/ClubsApi.md +61 -1
- package/docs/GetClubTimezone200Response.md +20 -0
- 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/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.160
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1733,6 +1733,12 @@ export interface ClientOnboardingRequestBody {
|
|
|
1733
1733
|
* @memberof ClientOnboardingRequestBody
|
|
1734
1734
|
*/
|
|
1735
1735
|
'clubType'?: ClientOnboardingRequestBodyClubTypeEnum;
|
|
1736
|
+
/**
|
|
1737
|
+
* Fuseau horaire du club (optionnel)
|
|
1738
|
+
* @type {string}
|
|
1739
|
+
* @memberof ClientOnboardingRequestBody
|
|
1740
|
+
*/
|
|
1741
|
+
'timezone'?: string;
|
|
1736
1742
|
}
|
|
1737
1743
|
export declare const ClientOnboardingRequestBodyClubTypeEnum: {
|
|
1738
1744
|
readonly Public: "public";
|
|
@@ -5687,6 +5693,19 @@ export interface GetClubRoles200Response {
|
|
|
5687
5693
|
*/
|
|
5688
5694
|
'roles': Array<any>;
|
|
5689
5695
|
}
|
|
5696
|
+
/**
|
|
5697
|
+
*
|
|
5698
|
+
* @export
|
|
5699
|
+
* @interface GetClubTimezone200Response
|
|
5700
|
+
*/
|
|
5701
|
+
export interface GetClubTimezone200Response {
|
|
5702
|
+
/**
|
|
5703
|
+
*
|
|
5704
|
+
* @type {string}
|
|
5705
|
+
* @memberof GetClubTimezone200Response
|
|
5706
|
+
*/
|
|
5707
|
+
'timezone': string;
|
|
5708
|
+
}
|
|
5690
5709
|
/**
|
|
5691
5710
|
*
|
|
5692
5711
|
* @export
|
|
@@ -5770,10 +5789,113 @@ export interface GetCourtsByClubAndSportById200Response {
|
|
|
5770
5789
|
'total': number;
|
|
5771
5790
|
/**
|
|
5772
5791
|
*
|
|
5773
|
-
* @type {Array<
|
|
5792
|
+
* @type {Array<GetCourtsByClubAndSportById200ResponseCourtsInner>}
|
|
5774
5793
|
* @memberof GetCourtsByClubAndSportById200Response
|
|
5775
5794
|
*/
|
|
5776
|
-
'courts': Array<
|
|
5795
|
+
'courts': Array<GetCourtsByClubAndSportById200ResponseCourtsInner>;
|
|
5796
|
+
}
|
|
5797
|
+
/**
|
|
5798
|
+
*
|
|
5799
|
+
* @export
|
|
5800
|
+
* @interface GetCourtsByClubAndSportById200ResponseCourtsInner
|
|
5801
|
+
*/
|
|
5802
|
+
export interface GetCourtsByClubAndSportById200ResponseCourtsInner {
|
|
5803
|
+
/**
|
|
5804
|
+
*
|
|
5805
|
+
* @type {string}
|
|
5806
|
+
* @memberof GetCourtsByClubAndSportById200ResponseCourtsInner
|
|
5807
|
+
*/
|
|
5808
|
+
'clubId': string;
|
|
5809
|
+
/**
|
|
5810
|
+
*
|
|
5811
|
+
* @type {string}
|
|
5812
|
+
* @memberof GetCourtsByClubAndSportById200ResponseCourtsInner
|
|
5813
|
+
*/
|
|
5814
|
+
'name': string;
|
|
5815
|
+
/**
|
|
5816
|
+
*
|
|
5817
|
+
* @type {CourtStatus}
|
|
5818
|
+
* @memberof GetCourtsByClubAndSportById200ResponseCourtsInner
|
|
5819
|
+
*/
|
|
5820
|
+
'status': CourtStatus;
|
|
5821
|
+
/**
|
|
5822
|
+
*
|
|
5823
|
+
* @type {string}
|
|
5824
|
+
* @memberof GetCourtsByClubAndSportById200ResponseCourtsInner
|
|
5825
|
+
*/
|
|
5826
|
+
'comments': string;
|
|
5827
|
+
/**
|
|
5828
|
+
*
|
|
5829
|
+
* @type {number}
|
|
5830
|
+
* @memberof GetCourtsByClubAndSportById200ResponseCourtsInner
|
|
5831
|
+
*/
|
|
5832
|
+
'slotDefaultDuration': number;
|
|
5833
|
+
/**
|
|
5834
|
+
*
|
|
5835
|
+
* @type {number}
|
|
5836
|
+
* @memberof GetCourtsByClubAndSportById200ResponseCourtsInner
|
|
5837
|
+
*/
|
|
5838
|
+
'startTimeInTheDayInMinutes': number;
|
|
5839
|
+
/**
|
|
5840
|
+
*
|
|
5841
|
+
* @type {number}
|
|
5842
|
+
* @memberof GetCourtsByClubAndSportById200ResponseCourtsInner
|
|
5843
|
+
*/
|
|
5844
|
+
'endTimeInTheDayInMinutes': number;
|
|
5845
|
+
/**
|
|
5846
|
+
*
|
|
5847
|
+
* @type {number}
|
|
5848
|
+
* @memberof GetCourtsByClubAndSportById200ResponseCourtsInner
|
|
5849
|
+
*/
|
|
5850
|
+
'pricePerHour'?: number;
|
|
5851
|
+
/**
|
|
5852
|
+
*
|
|
5853
|
+
* @type {string}
|
|
5854
|
+
* @memberof GetCourtsByClubAndSportById200ResponseCourtsInner
|
|
5855
|
+
*/
|
|
5856
|
+
'sportId': string;
|
|
5857
|
+
/**
|
|
5858
|
+
*
|
|
5859
|
+
* @type {SurfaceType}
|
|
5860
|
+
* @memberof GetCourtsByClubAndSportById200ResponseCourtsInner
|
|
5861
|
+
*/
|
|
5862
|
+
'surface'?: SurfaceType;
|
|
5863
|
+
/**
|
|
5864
|
+
*
|
|
5865
|
+
* @type {boolean}
|
|
5866
|
+
* @memberof GetCourtsByClubAndSportById200ResponseCourtsInner
|
|
5867
|
+
*/
|
|
5868
|
+
'isIndoor': boolean;
|
|
5869
|
+
/**
|
|
5870
|
+
*
|
|
5871
|
+
* @type {string}
|
|
5872
|
+
* @memberof GetCourtsByClubAndSportById200ResponseCourtsInner
|
|
5873
|
+
*/
|
|
5874
|
+
'createdAt'?: string;
|
|
5875
|
+
/**
|
|
5876
|
+
*
|
|
5877
|
+
* @type {string}
|
|
5878
|
+
* @memberof GetCourtsByClubAndSportById200ResponseCourtsInner
|
|
5879
|
+
*/
|
|
5880
|
+
'updatedAt'?: string;
|
|
5881
|
+
/**
|
|
5882
|
+
*
|
|
5883
|
+
* @type {number}
|
|
5884
|
+
* @memberof GetCourtsByClubAndSportById200ResponseCourtsInner
|
|
5885
|
+
*/
|
|
5886
|
+
'variationPercentage'?: number;
|
|
5887
|
+
/**
|
|
5888
|
+
*
|
|
5889
|
+
* @type {boolean}
|
|
5890
|
+
* @memberof GetCourtsByClubAndSportById200ResponseCourtsInner
|
|
5891
|
+
*/
|
|
5892
|
+
'isReducedPrice'?: boolean;
|
|
5893
|
+
/**
|
|
5894
|
+
*
|
|
5895
|
+
* @type {number}
|
|
5896
|
+
* @memberof GetCourtsByClubAndSportById200ResponseCourtsInner
|
|
5897
|
+
*/
|
|
5898
|
+
'estimatedPrice'?: number;
|
|
5777
5899
|
}
|
|
5778
5900
|
/**
|
|
5779
5901
|
*
|
|
@@ -10406,12 +10528,6 @@ export interface UpdateClubGeneralSettingsRequest {
|
|
|
10406
10528
|
* @memberof UpdateClubGeneralSettingsRequest
|
|
10407
10529
|
*/
|
|
10408
10530
|
'description'?: string;
|
|
10409
|
-
/**
|
|
10410
|
-
*
|
|
10411
|
-
* @type {string}
|
|
10412
|
-
* @memberof UpdateClubGeneralSettingsRequest
|
|
10413
|
-
*/
|
|
10414
|
-
'rib'?: string | null;
|
|
10415
10531
|
/**
|
|
10416
10532
|
*
|
|
10417
10533
|
* @type {UpdateClubGeneralSettingsRequestLogo}
|
|
@@ -15578,6 +15694,13 @@ export declare const ClubsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
15578
15694
|
* @throws {RequiredError}
|
|
15579
15695
|
*/
|
|
15580
15696
|
getClubPageInfo: (clubId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
15697
|
+
/**
|
|
15698
|
+
* Récupère le fuseau horaire d\'un club
|
|
15699
|
+
* @param {string} id
|
|
15700
|
+
* @param {*} [options] Override http request option.
|
|
15701
|
+
* @throws {RequiredError}
|
|
15702
|
+
*/
|
|
15703
|
+
getClubTimezone: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
15581
15704
|
/**
|
|
15582
15705
|
*
|
|
15583
15706
|
* @param {string} id
|
|
@@ -15595,10 +15718,12 @@ export declare const ClubsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
15595
15718
|
*
|
|
15596
15719
|
* @param {string} id
|
|
15597
15720
|
* @param {string} sportId
|
|
15721
|
+
* @param {string} [startDate]
|
|
15722
|
+
* @param {string} [endDate]
|
|
15598
15723
|
* @param {*} [options] Override http request option.
|
|
15599
15724
|
* @throws {RequiredError}
|
|
15600
15725
|
*/
|
|
15601
|
-
getCourtsByClubAndSportById: (id: string, sportId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
15726
|
+
getCourtsByClubAndSportById: (id: string, sportId: string, startDate?: string, endDate?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
15602
15727
|
/**
|
|
15603
15728
|
* Récupère les informations publiques d\'un club en fonction de son ID
|
|
15604
15729
|
* @param {string} clubId
|
|
@@ -15689,6 +15814,13 @@ export declare const ClubsApiFp: (configuration?: Configuration) => {
|
|
|
15689
15814
|
* @throws {RequiredError}
|
|
15690
15815
|
*/
|
|
15691
15816
|
getClubPageInfo(clubId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubPageResponse>>;
|
|
15817
|
+
/**
|
|
15818
|
+
* Récupère le fuseau horaire d\'un club
|
|
15819
|
+
* @param {string} id
|
|
15820
|
+
* @param {*} [options] Override http request option.
|
|
15821
|
+
* @throws {RequiredError}
|
|
15822
|
+
*/
|
|
15823
|
+
getClubTimezone(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetClubTimezone200Response>>;
|
|
15692
15824
|
/**
|
|
15693
15825
|
*
|
|
15694
15826
|
* @param {string} id
|
|
@@ -15706,10 +15838,12 @@ export declare const ClubsApiFp: (configuration?: Configuration) => {
|
|
|
15706
15838
|
*
|
|
15707
15839
|
* @param {string} id
|
|
15708
15840
|
* @param {string} sportId
|
|
15841
|
+
* @param {string} [startDate]
|
|
15842
|
+
* @param {string} [endDate]
|
|
15709
15843
|
* @param {*} [options] Override http request option.
|
|
15710
15844
|
* @throws {RequiredError}
|
|
15711
15845
|
*/
|
|
15712
|
-
getCourtsByClubAndSportById(id: string, sportId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCourtsByClubAndSportById200Response>>;
|
|
15846
|
+
getCourtsByClubAndSportById(id: string, sportId: string, startDate?: string, endDate?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCourtsByClubAndSportById200Response>>;
|
|
15713
15847
|
/**
|
|
15714
15848
|
* Récupère les informations publiques d\'un club en fonction de son ID
|
|
15715
15849
|
* @param {string} clubId
|
|
@@ -15797,6 +15931,13 @@ export declare const ClubsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
15797
15931
|
* @throws {RequiredError}
|
|
15798
15932
|
*/
|
|
15799
15933
|
getClubPageInfo(requestParameters: ClubsApiGetClubPageInfoRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubPageResponse>;
|
|
15934
|
+
/**
|
|
15935
|
+
* Récupère le fuseau horaire d\'un club
|
|
15936
|
+
* @param {ClubsApiGetClubTimezoneRequest} requestParameters Request parameters.
|
|
15937
|
+
* @param {*} [options] Override http request option.
|
|
15938
|
+
* @throws {RequiredError}
|
|
15939
|
+
*/
|
|
15940
|
+
getClubTimezone(requestParameters: ClubsApiGetClubTimezoneRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetClubTimezone200Response>;
|
|
15800
15941
|
/**
|
|
15801
15942
|
*
|
|
15802
15943
|
* @param {ClubsApiGetClubUsersByIdRequest} requestParameters Request parameters.
|
|
@@ -15929,6 +16070,19 @@ export interface ClubsApiGetClubPageInfoRequest {
|
|
|
15929
16070
|
*/
|
|
15930
16071
|
readonly clubId: string;
|
|
15931
16072
|
}
|
|
16073
|
+
/**
|
|
16074
|
+
* Request parameters for getClubTimezone operation in ClubsApi.
|
|
16075
|
+
* @export
|
|
16076
|
+
* @interface ClubsApiGetClubTimezoneRequest
|
|
16077
|
+
*/
|
|
16078
|
+
export interface ClubsApiGetClubTimezoneRequest {
|
|
16079
|
+
/**
|
|
16080
|
+
*
|
|
16081
|
+
* @type {string}
|
|
16082
|
+
* @memberof ClubsApiGetClubTimezone
|
|
16083
|
+
*/
|
|
16084
|
+
readonly id: string;
|
|
16085
|
+
}
|
|
15932
16086
|
/**
|
|
15933
16087
|
* Request parameters for getClubUsersById operation in ClubsApi.
|
|
15934
16088
|
* @export
|
|
@@ -15960,6 +16114,18 @@ export interface ClubsApiGetCourtsByClubAndSportByIdRequest {
|
|
|
15960
16114
|
* @memberof ClubsApiGetCourtsByClubAndSportById
|
|
15961
16115
|
*/
|
|
15962
16116
|
readonly sportId: string;
|
|
16117
|
+
/**
|
|
16118
|
+
*
|
|
16119
|
+
* @type {string}
|
|
16120
|
+
* @memberof ClubsApiGetCourtsByClubAndSportById
|
|
16121
|
+
*/
|
|
16122
|
+
readonly startDate?: string;
|
|
16123
|
+
/**
|
|
16124
|
+
*
|
|
16125
|
+
* @type {string}
|
|
16126
|
+
* @memberof ClubsApiGetCourtsByClubAndSportById
|
|
16127
|
+
*/
|
|
16128
|
+
readonly endDate?: string;
|
|
15963
16129
|
}
|
|
15964
16130
|
/**
|
|
15965
16131
|
* Request parameters for getPublicClubInfo operation in ClubsApi.
|
|
@@ -16081,6 +16247,14 @@ export declare class ClubsApi extends BaseAPI {
|
|
|
16081
16247
|
* @memberof ClubsApi
|
|
16082
16248
|
*/
|
|
16083
16249
|
getClubPageInfo(requestParameters: ClubsApiGetClubPageInfoRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ClubPageResponse, any, {}>>;
|
|
16250
|
+
/**
|
|
16251
|
+
* Récupère le fuseau horaire d\'un club
|
|
16252
|
+
* @param {ClubsApiGetClubTimezoneRequest} requestParameters Request parameters.
|
|
16253
|
+
* @param {*} [options] Override http request option.
|
|
16254
|
+
* @throws {RequiredError}
|
|
16255
|
+
* @memberof ClubsApi
|
|
16256
|
+
*/
|
|
16257
|
+
getClubTimezone(requestParameters: ClubsApiGetClubTimezoneRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetClubTimezone200Response, any, {}>>;
|
|
16084
16258
|
/**
|
|
16085
16259
|
*
|
|
16086
16260
|
* @param {ClubsApiGetClubUsersByIdRequest} requestParameters Request parameters.
|
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.160
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5925,6 +5925,34 @@ const ClubsApiAxiosParamCreator = function (configuration) {
|
|
|
5925
5925
|
options: localVarRequestOptions,
|
|
5926
5926
|
};
|
|
5927
5927
|
}),
|
|
5928
|
+
/**
|
|
5929
|
+
* Récupère le fuseau horaire d\'un club
|
|
5930
|
+
* @param {string} id
|
|
5931
|
+
* @param {*} [options] Override http request option.
|
|
5932
|
+
* @throws {RequiredError}
|
|
5933
|
+
*/
|
|
5934
|
+
getClubTimezone: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
5935
|
+
// verify required parameter 'id' is not null or undefined
|
|
5936
|
+
(0, common_1.assertParamExists)('getClubTimezone', 'id', id);
|
|
5937
|
+
const localVarPath = `/api/clubs/{id}/timezone`
|
|
5938
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
5939
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5940
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5941
|
+
let baseOptions;
|
|
5942
|
+
if (configuration) {
|
|
5943
|
+
baseOptions = configuration.baseOptions;
|
|
5944
|
+
}
|
|
5945
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5946
|
+
const localVarHeaderParameter = {};
|
|
5947
|
+
const localVarQueryParameter = {};
|
|
5948
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5949
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5950
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5951
|
+
return {
|
|
5952
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5953
|
+
options: localVarRequestOptions,
|
|
5954
|
+
};
|
|
5955
|
+
}),
|
|
5928
5956
|
/**
|
|
5929
5957
|
*
|
|
5930
5958
|
* @param {string} id
|
|
@@ -5981,10 +6009,12 @@ const ClubsApiAxiosParamCreator = function (configuration) {
|
|
|
5981
6009
|
*
|
|
5982
6010
|
* @param {string} id
|
|
5983
6011
|
* @param {string} sportId
|
|
6012
|
+
* @param {string} [startDate]
|
|
6013
|
+
* @param {string} [endDate]
|
|
5984
6014
|
* @param {*} [options] Override http request option.
|
|
5985
6015
|
* @throws {RequiredError}
|
|
5986
6016
|
*/
|
|
5987
|
-
getCourtsByClubAndSportById: (id_1, sportId_1, ...args_1) => __awaiter(this, [id_1, sportId_1, ...args_1], void 0, function* (id, sportId, options = {}) {
|
|
6017
|
+
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
6018
|
// verify required parameter 'id' is not null or undefined
|
|
5989
6019
|
(0, common_1.assertParamExists)('getCourtsByClubAndSportById', 'id', id);
|
|
5990
6020
|
// verify required parameter 'sportId' is not null or undefined
|
|
@@ -6001,6 +6031,12 @@ const ClubsApiAxiosParamCreator = function (configuration) {
|
|
|
6001
6031
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6002
6032
|
const localVarHeaderParameter = {};
|
|
6003
6033
|
const localVarQueryParameter = {};
|
|
6034
|
+
if (startDate !== undefined) {
|
|
6035
|
+
localVarQueryParameter['startDate'] = startDate;
|
|
6036
|
+
}
|
|
6037
|
+
if (endDate !== undefined) {
|
|
6038
|
+
localVarQueryParameter['endDate'] = endDate;
|
|
6039
|
+
}
|
|
6004
6040
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6005
6041
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6006
6042
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -6251,6 +6287,21 @@ const ClubsApiFp = function (configuration) {
|
|
|
6251
6287
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6252
6288
|
});
|
|
6253
6289
|
},
|
|
6290
|
+
/**
|
|
6291
|
+
* Récupère le fuseau horaire d\'un club
|
|
6292
|
+
* @param {string} id
|
|
6293
|
+
* @param {*} [options] Override http request option.
|
|
6294
|
+
* @throws {RequiredError}
|
|
6295
|
+
*/
|
|
6296
|
+
getClubTimezone(id, options) {
|
|
6297
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6298
|
+
var _a, _b, _c;
|
|
6299
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubTimezone(id, options);
|
|
6300
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6301
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubsApi.getClubTimezone']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6302
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6303
|
+
});
|
|
6304
|
+
},
|
|
6254
6305
|
/**
|
|
6255
6306
|
*
|
|
6256
6307
|
* @param {string} id
|
|
@@ -6284,13 +6335,15 @@ const ClubsApiFp = function (configuration) {
|
|
|
6284
6335
|
*
|
|
6285
6336
|
* @param {string} id
|
|
6286
6337
|
* @param {string} sportId
|
|
6338
|
+
* @param {string} [startDate]
|
|
6339
|
+
* @param {string} [endDate]
|
|
6287
6340
|
* @param {*} [options] Override http request option.
|
|
6288
6341
|
* @throws {RequiredError}
|
|
6289
6342
|
*/
|
|
6290
|
-
getCourtsByClubAndSportById(id, sportId, options) {
|
|
6343
|
+
getCourtsByClubAndSportById(id, sportId, startDate, endDate, options) {
|
|
6291
6344
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6292
6345
|
var _a, _b, _c;
|
|
6293
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCourtsByClubAndSportById(id, sportId, options);
|
|
6346
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCourtsByClubAndSportById(id, sportId, startDate, endDate, options);
|
|
6294
6347
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6295
6348
|
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
6349
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -6435,6 +6488,15 @@ const ClubsApiFactory = function (configuration, basePath, axios) {
|
|
|
6435
6488
|
getClubPageInfo(requestParameters, options) {
|
|
6436
6489
|
return localVarFp.getClubPageInfo(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
6437
6490
|
},
|
|
6491
|
+
/**
|
|
6492
|
+
* Récupère le fuseau horaire d\'un club
|
|
6493
|
+
* @param {ClubsApiGetClubTimezoneRequest} requestParameters Request parameters.
|
|
6494
|
+
* @param {*} [options] Override http request option.
|
|
6495
|
+
* @throws {RequiredError}
|
|
6496
|
+
*/
|
|
6497
|
+
getClubTimezone(requestParameters, options) {
|
|
6498
|
+
return localVarFp.getClubTimezone(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
6499
|
+
},
|
|
6438
6500
|
/**
|
|
6439
6501
|
*
|
|
6440
6502
|
* @param {ClubsApiGetClubUsersByIdRequest} requestParameters Request parameters.
|
|
@@ -6459,7 +6521,7 @@ const ClubsApiFactory = function (configuration, basePath, axios) {
|
|
|
6459
6521
|
* @throws {RequiredError}
|
|
6460
6522
|
*/
|
|
6461
6523
|
getCourtsByClubAndSportById(requestParameters, options) {
|
|
6462
|
-
return localVarFp.getCourtsByClubAndSportById(requestParameters.id, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
6524
|
+
return localVarFp.getCourtsByClubAndSportById(requestParameters.id, requestParameters.sportId, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(axios, basePath));
|
|
6463
6525
|
},
|
|
6464
6526
|
/**
|
|
6465
6527
|
* Récupère les informations publiques d\'un club en fonction de son ID
|
|
@@ -6584,6 +6646,16 @@ class ClubsApi extends base_1.BaseAPI {
|
|
|
6584
6646
|
getClubPageInfo(requestParameters, options) {
|
|
6585
6647
|
return (0, exports.ClubsApiFp)(this.configuration).getClubPageInfo(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
6586
6648
|
}
|
|
6649
|
+
/**
|
|
6650
|
+
* Récupère le fuseau horaire d\'un club
|
|
6651
|
+
* @param {ClubsApiGetClubTimezoneRequest} requestParameters Request parameters.
|
|
6652
|
+
* @param {*} [options] Override http request option.
|
|
6653
|
+
* @throws {RequiredError}
|
|
6654
|
+
* @memberof ClubsApi
|
|
6655
|
+
*/
|
|
6656
|
+
getClubTimezone(requestParameters, options) {
|
|
6657
|
+
return (0, exports.ClubsApiFp)(this.configuration).getClubTimezone(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6658
|
+
}
|
|
6587
6659
|
/**
|
|
6588
6660
|
*
|
|
6589
6661
|
* @param {ClubsApiGetClubUsersByIdRequest} requestParameters Request parameters.
|
|
@@ -6611,7 +6683,7 @@ class ClubsApi extends base_1.BaseAPI {
|
|
|
6611
6683
|
* @memberof ClubsApi
|
|
6612
6684
|
*/
|
|
6613
6685
|
getCourtsByClubAndSportById(requestParameters, options) {
|
|
6614
|
-
return (0, exports.ClubsApiFp)(this.configuration).getCourtsByClubAndSportById(requestParameters.id, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
6686
|
+
return (0, exports.ClubsApiFp)(this.configuration).getCourtsByClubAndSportById(requestParameters.id, requestParameters.sportId, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(this.axios, this.basePath));
|
|
6615
6687
|
}
|
|
6616
6688
|
/**
|
|
6617
6689
|
* 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