@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/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.
|
|
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/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.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.160
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5867,6 +5867,34 @@ export const ClubsApiAxiosParamCreator = function (configuration) {
|
|
|
5867
5867
|
options: localVarRequestOptions,
|
|
5868
5868
|
};
|
|
5869
5869
|
}),
|
|
5870
|
+
/**
|
|
5871
|
+
* Récupère le fuseau horaire d\'un club
|
|
5872
|
+
* @param {string} id
|
|
5873
|
+
* @param {*} [options] Override http request option.
|
|
5874
|
+
* @throws {RequiredError}
|
|
5875
|
+
*/
|
|
5876
|
+
getClubTimezone: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
5877
|
+
// verify required parameter 'id' is not null or undefined
|
|
5878
|
+
assertParamExists('getClubTimezone', 'id', id);
|
|
5879
|
+
const localVarPath = `/api/clubs/{id}/timezone`
|
|
5880
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
5881
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5882
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5883
|
+
let baseOptions;
|
|
5884
|
+
if (configuration) {
|
|
5885
|
+
baseOptions = configuration.baseOptions;
|
|
5886
|
+
}
|
|
5887
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5888
|
+
const localVarHeaderParameter = {};
|
|
5889
|
+
const localVarQueryParameter = {};
|
|
5890
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5891
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5892
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5893
|
+
return {
|
|
5894
|
+
url: toPathString(localVarUrlObj),
|
|
5895
|
+
options: localVarRequestOptions,
|
|
5896
|
+
};
|
|
5897
|
+
}),
|
|
5870
5898
|
/**
|
|
5871
5899
|
*
|
|
5872
5900
|
* @param {string} id
|
|
@@ -5923,10 +5951,12 @@ export const ClubsApiAxiosParamCreator = function (configuration) {
|
|
|
5923
5951
|
*
|
|
5924
5952
|
* @param {string} id
|
|
5925
5953
|
* @param {string} sportId
|
|
5954
|
+
* @param {string} [startDate]
|
|
5955
|
+
* @param {string} [endDate]
|
|
5926
5956
|
* @param {*} [options] Override http request option.
|
|
5927
5957
|
* @throws {RequiredError}
|
|
5928
5958
|
*/
|
|
5929
|
-
getCourtsByClubAndSportById: (id_1, sportId_1, ...args_1) => __awaiter(this, [id_1, sportId_1, ...args_1], void 0, function* (id, sportId, options = {}) {
|
|
5959
|
+
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
5960
|
// verify required parameter 'id' is not null or undefined
|
|
5931
5961
|
assertParamExists('getCourtsByClubAndSportById', 'id', id);
|
|
5932
5962
|
// verify required parameter 'sportId' is not null or undefined
|
|
@@ -5943,6 +5973,12 @@ export const ClubsApiAxiosParamCreator = function (configuration) {
|
|
|
5943
5973
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5944
5974
|
const localVarHeaderParameter = {};
|
|
5945
5975
|
const localVarQueryParameter = {};
|
|
5976
|
+
if (startDate !== undefined) {
|
|
5977
|
+
localVarQueryParameter['startDate'] = startDate;
|
|
5978
|
+
}
|
|
5979
|
+
if (endDate !== undefined) {
|
|
5980
|
+
localVarQueryParameter['endDate'] = endDate;
|
|
5981
|
+
}
|
|
5946
5982
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5947
5983
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5948
5984
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -6192,6 +6228,21 @@ export const ClubsApiFp = function (configuration) {
|
|
|
6192
6228
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6193
6229
|
});
|
|
6194
6230
|
},
|
|
6231
|
+
/**
|
|
6232
|
+
* Récupère le fuseau horaire d\'un club
|
|
6233
|
+
* @param {string} id
|
|
6234
|
+
* @param {*} [options] Override http request option.
|
|
6235
|
+
* @throws {RequiredError}
|
|
6236
|
+
*/
|
|
6237
|
+
getClubTimezone(id, options) {
|
|
6238
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6239
|
+
var _a, _b, _c;
|
|
6240
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubTimezone(id, options);
|
|
6241
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6242
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsApi.getClubTimezone']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6243
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6244
|
+
});
|
|
6245
|
+
},
|
|
6195
6246
|
/**
|
|
6196
6247
|
*
|
|
6197
6248
|
* @param {string} id
|
|
@@ -6225,13 +6276,15 @@ export const ClubsApiFp = function (configuration) {
|
|
|
6225
6276
|
*
|
|
6226
6277
|
* @param {string} id
|
|
6227
6278
|
* @param {string} sportId
|
|
6279
|
+
* @param {string} [startDate]
|
|
6280
|
+
* @param {string} [endDate]
|
|
6228
6281
|
* @param {*} [options] Override http request option.
|
|
6229
6282
|
* @throws {RequiredError}
|
|
6230
6283
|
*/
|
|
6231
|
-
getCourtsByClubAndSportById(id, sportId, options) {
|
|
6284
|
+
getCourtsByClubAndSportById(id, sportId, startDate, endDate, options) {
|
|
6232
6285
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6233
6286
|
var _a, _b, _c;
|
|
6234
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCourtsByClubAndSportById(id, sportId, options);
|
|
6287
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCourtsByClubAndSportById(id, sportId, startDate, endDate, options);
|
|
6235
6288
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6236
6289
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsApi.getCourtsByClubAndSportById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6237
6290
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -6375,6 +6428,15 @@ export const ClubsApiFactory = function (configuration, basePath, axios) {
|
|
|
6375
6428
|
getClubPageInfo(requestParameters, options) {
|
|
6376
6429
|
return localVarFp.getClubPageInfo(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
6377
6430
|
},
|
|
6431
|
+
/**
|
|
6432
|
+
* Récupère le fuseau horaire d\'un club
|
|
6433
|
+
* @param {ClubsApiGetClubTimezoneRequest} requestParameters Request parameters.
|
|
6434
|
+
* @param {*} [options] Override http request option.
|
|
6435
|
+
* @throws {RequiredError}
|
|
6436
|
+
*/
|
|
6437
|
+
getClubTimezone(requestParameters, options) {
|
|
6438
|
+
return localVarFp.getClubTimezone(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
6439
|
+
},
|
|
6378
6440
|
/**
|
|
6379
6441
|
*
|
|
6380
6442
|
* @param {ClubsApiGetClubUsersByIdRequest} requestParameters Request parameters.
|
|
@@ -6399,7 +6461,7 @@ export const ClubsApiFactory = function (configuration, basePath, axios) {
|
|
|
6399
6461
|
* @throws {RequiredError}
|
|
6400
6462
|
*/
|
|
6401
6463
|
getCourtsByClubAndSportById(requestParameters, options) {
|
|
6402
|
-
return localVarFp.getCourtsByClubAndSportById(requestParameters.id, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
6464
|
+
return localVarFp.getCourtsByClubAndSportById(requestParameters.id, requestParameters.sportId, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(axios, basePath));
|
|
6403
6465
|
},
|
|
6404
6466
|
/**
|
|
6405
6467
|
* Récupère les informations publiques d\'un club en fonction de son ID
|
|
@@ -6523,6 +6585,16 @@ export class ClubsApi extends BaseAPI {
|
|
|
6523
6585
|
getClubPageInfo(requestParameters, options) {
|
|
6524
6586
|
return ClubsApiFp(this.configuration).getClubPageInfo(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
6525
6587
|
}
|
|
6588
|
+
/**
|
|
6589
|
+
* Récupère le fuseau horaire d\'un club
|
|
6590
|
+
* @param {ClubsApiGetClubTimezoneRequest} requestParameters Request parameters.
|
|
6591
|
+
* @param {*} [options] Override http request option.
|
|
6592
|
+
* @throws {RequiredError}
|
|
6593
|
+
* @memberof ClubsApi
|
|
6594
|
+
*/
|
|
6595
|
+
getClubTimezone(requestParameters, options) {
|
|
6596
|
+
return ClubsApiFp(this.configuration).getClubTimezone(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6597
|
+
}
|
|
6526
6598
|
/**
|
|
6527
6599
|
*
|
|
6528
6600
|
* @param {ClubsApiGetClubUsersByIdRequest} requestParameters Request parameters.
|
|
@@ -6550,7 +6622,7 @@ export class ClubsApi extends BaseAPI {
|
|
|
6550
6622
|
* @memberof ClubsApi
|
|
6551
6623
|
*/
|
|
6552
6624
|
getCourtsByClubAndSportById(requestParameters, options) {
|
|
6553
|
-
return ClubsApiFp(this.configuration).getCourtsByClubAndSportById(requestParameters.id, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
6625
|
+
return ClubsApiFp(this.configuration).getCourtsByClubAndSportById(requestParameters.id, requestParameters.sportId, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(this.axios, this.basePath));
|
|
6554
6626
|
}
|
|
6555
6627
|
/**
|
|
6556
6628
|
* Récupère les informations publiques d\'un club en fonction de son ID
|
package/dist/esm/base.d.ts
CHANGED
package/dist/esm/base.js
CHANGED
package/dist/esm/common.d.ts
CHANGED
package/dist/esm/common.js
CHANGED
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -14,6 +14,7 @@ Name | Type | Description | Notes
|
|
|
14
14
|
**postalCode** | **string** | Code postal du club (optionnel) | [optional] [default to undefined]
|
|
15
15
|
**country** | **string** | Pays du club (optionnel) | [optional] [default to undefined]
|
|
16
16
|
**clubType** | **string** | Type de club souhaité (public | school) | [optional] [default to undefined]
|
|
17
|
+
**timezone** | **string** | Fuseau horaire du club (optionnel) | [optional] [default to undefined]
|
|
17
18
|
|
|
18
19
|
## Example
|
|
19
20
|
|
|
@@ -29,6 +30,7 @@ const instance: ClientOnboardingRequestBody = {
|
|
|
29
30
|
postalCode,
|
|
30
31
|
country,
|
|
31
32
|
clubType,
|
|
33
|
+
timezone,
|
|
32
34
|
};
|
|
33
35
|
```
|
|
34
36
|
|
package/docs/ClubsApi.md
CHANGED
|
@@ -12,6 +12,7 @@ All URIs are relative to *http://localhost*
|
|
|
12
12
|
|[**getClubInfo**](#getclubinfo) | **GET** /api/clubs/info | |
|
|
13
13
|
|[**getClubMetadata**](#getclubmetadata) | **GET** /api/clubs/{clubId}/metadata | |
|
|
14
14
|
|[**getClubPageInfo**](#getclubpageinfo) | **GET** /api/clubs/club-page/{clubId} | |
|
|
15
|
+
|[**getClubTimezone**](#getclubtimezone) | **GET** /api/clubs/{id}/timezone | |
|
|
15
16
|
|[**getClubUsersById**](#getclubusersbyid) | **GET** /api/clubs/{id}/users | |
|
|
16
17
|
|[**getClubsWithVerificationDomains**](#getclubswithverificationdomains) | **GET** /api/clubs/verification-domains | |
|
|
17
18
|
|[**getCourtsByClubAndSportById**](#getcourtsbyclubandsportbyid) | **GET** /api/clubs/{id}/sports/{sportId}/courts | |
|
|
@@ -422,6 +423,59 @@ No authorization required
|
|
|
422
423
|
|
|
423
424
|
[[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)
|
|
424
425
|
|
|
426
|
+
# **getClubTimezone**
|
|
427
|
+
> GetClubTimezone200Response getClubTimezone()
|
|
428
|
+
|
|
429
|
+
Récupère le fuseau horaire d\'un club
|
|
430
|
+
|
|
431
|
+
### Example
|
|
432
|
+
|
|
433
|
+
```typescript
|
|
434
|
+
import {
|
|
435
|
+
ClubsApi,
|
|
436
|
+
Configuration
|
|
437
|
+
} from '@tennac-booking/sdk';
|
|
438
|
+
|
|
439
|
+
const configuration = new Configuration();
|
|
440
|
+
const apiInstance = new ClubsApi(configuration);
|
|
441
|
+
|
|
442
|
+
let id: string; // (default to undefined)
|
|
443
|
+
|
|
444
|
+
const { status, data } = await apiInstance.getClubTimezone(
|
|
445
|
+
id
|
|
446
|
+
);
|
|
447
|
+
```
|
|
448
|
+
|
|
449
|
+
### Parameters
|
|
450
|
+
|
|
451
|
+
|Name | Type | Description | Notes|
|
|
452
|
+
|------------- | ------------- | ------------- | -------------|
|
|
453
|
+
| **id** | [**string**] | | defaults to undefined|
|
|
454
|
+
|
|
455
|
+
|
|
456
|
+
### Return type
|
|
457
|
+
|
|
458
|
+
**GetClubTimezone200Response**
|
|
459
|
+
|
|
460
|
+
### Authorization
|
|
461
|
+
|
|
462
|
+
No authorization required
|
|
463
|
+
|
|
464
|
+
### HTTP request headers
|
|
465
|
+
|
|
466
|
+
- **Content-Type**: Not defined
|
|
467
|
+
- **Accept**: application/json
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
### HTTP response details
|
|
471
|
+
| Status code | Description | Response headers |
|
|
472
|
+
|-------------|-------------|------------------|
|
|
473
|
+
|**200** | Fuseau horaire du club | - |
|
|
474
|
+
|**400** | Bad Request | - |
|
|
475
|
+
|**404** | Club non trouvé | - |
|
|
476
|
+
|
|
477
|
+
[[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)
|
|
478
|
+
|
|
425
479
|
# **getClubUsersById**
|
|
426
480
|
> GetClubUsersById200Response getClubUsersById()
|
|
427
481
|
|
|
@@ -536,10 +590,14 @@ const apiInstance = new ClubsApi(configuration);
|
|
|
536
590
|
|
|
537
591
|
let id: string; // (default to undefined)
|
|
538
592
|
let sportId: string; // (default to undefined)
|
|
593
|
+
let startDate: string; // (optional) (default to undefined)
|
|
594
|
+
let endDate: string; // (optional) (default to undefined)
|
|
539
595
|
|
|
540
596
|
const { status, data } = await apiInstance.getCourtsByClubAndSportById(
|
|
541
597
|
id,
|
|
542
|
-
sportId
|
|
598
|
+
sportId,
|
|
599
|
+
startDate,
|
|
600
|
+
endDate
|
|
543
601
|
);
|
|
544
602
|
```
|
|
545
603
|
|
|
@@ -549,6 +607,8 @@ const { status, data } = await apiInstance.getCourtsByClubAndSportById(
|
|
|
549
607
|
|------------- | ------------- | ------------- | -------------|
|
|
550
608
|
| **id** | [**string**] | | defaults to undefined|
|
|
551
609
|
| **sportId** | [**string**] | | defaults to undefined|
|
|
610
|
+
| **startDate** | [**string**] | | (optional) defaults to undefined|
|
|
611
|
+
| **endDate** | [**string**] | | (optional) defaults to undefined|
|
|
552
612
|
|
|
553
613
|
|
|
554
614
|
### Return type
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# GetClubTimezone200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**timezone** | **string** | | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { GetClubTimezone200Response } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: GetClubTimezone200Response = {
|
|
16
|
+
timezone,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|