@tennac-booking/sdk 1.0.126 → 1.0.127
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 +1 -0
- package/README.md +2 -0
- package/api.ts +96 -0
- package/dist/api.d.ts +55 -0
- package/dist/api.js +65 -0
- package/dist/esm/api.d.ts +55 -0
- package/dist/esm/api.js +65 -0
- package/docs/ClubsStaffApi.md +54 -0
- package/docs/GetClubType200Response.md +20 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -156,6 +156,7 @@ docs/GetActualities200Response.md
|
|
|
156
156
|
docs/GetAvailableSlotsBySports200Response.md
|
|
157
157
|
docs/GetClubMembers200Response.md
|
|
158
158
|
docs/GetClubRoles200Response.md
|
|
159
|
+
docs/GetClubType200Response.md
|
|
159
160
|
docs/GetClubUsersById200Response.md
|
|
160
161
|
docs/GetClubsWithVerificationDomains200ResponseInner.md
|
|
161
162
|
docs/GetCourtsByClubAndSportById200Response.md
|
package/README.md
CHANGED
|
@@ -143,6 +143,7 @@ Class | Method | HTTP request | Description
|
|
|
143
143
|
*ClubsStaffApi* | [**getClubMembers**](docs/ClubsStaffApi.md#getclubmembers) | **GET** /api/clubs/members |
|
|
144
144
|
*ClubsStaffApi* | [**getClubPresentationSettings**](docs/ClubsStaffApi.md#getclubpresentationsettings) | **GET** /api/clubs/settings/presentation |
|
|
145
145
|
*ClubsStaffApi* | [**getClubRoles**](docs/ClubsStaffApi.md#getclubroles) | **GET** /api/clubs/roles |
|
|
146
|
+
*ClubsStaffApi* | [**getClubType**](docs/ClubsStaffApi.md#getclubtype) | **GET** /api/clubs/{clubId}/clubType |
|
|
146
147
|
*ClubsStaffApi* | [**getCourtsByClub**](docs/ClubsStaffApi.md#getcourtsbyclub) | **GET** /api/clubs/courts |
|
|
147
148
|
*ClubsStaffApi* | [**getInvoices**](docs/ClubsStaffApi.md#getinvoices) | **GET** /api/clubs/invoices |
|
|
148
149
|
*ClubsStaffApi* | [**getUserProfileStaff**](docs/ClubsStaffApi.md#getuserprofilestaff) | **GET** /api/clubs/staff/profile/{id} |
|
|
@@ -355,6 +356,7 @@ Class | Method | HTTP request | Description
|
|
|
355
356
|
- [GetAvailableSlotsBySports200Response](docs/GetAvailableSlotsBySports200Response.md)
|
|
356
357
|
- [GetClubMembers200Response](docs/GetClubMembers200Response.md)
|
|
357
358
|
- [GetClubRoles200Response](docs/GetClubRoles200Response.md)
|
|
359
|
+
- [GetClubType200Response](docs/GetClubType200Response.md)
|
|
358
360
|
- [GetClubUsersById200Response](docs/GetClubUsersById200Response.md)
|
|
359
361
|
- [GetClubsWithVerificationDomains200ResponseInner](docs/GetClubsWithVerificationDomains200ResponseInner.md)
|
|
360
362
|
- [GetCourtsByClubAndSportById200Response](docs/GetCourtsByClubAndSportById200Response.md)
|
package/api.ts
CHANGED
|
@@ -4965,6 +4965,19 @@ export interface GetClubRoles200Response {
|
|
|
4965
4965
|
*/
|
|
4966
4966
|
'roles': Array<any>;
|
|
4967
4967
|
}
|
|
4968
|
+
/**
|
|
4969
|
+
*
|
|
4970
|
+
* @export
|
|
4971
|
+
* @interface GetClubType200Response
|
|
4972
|
+
*/
|
|
4973
|
+
export interface GetClubType200Response {
|
|
4974
|
+
/**
|
|
4975
|
+
*
|
|
4976
|
+
* @type {string}
|
|
4977
|
+
* @memberof GetClubType200Response
|
|
4978
|
+
*/
|
|
4979
|
+
'clubType': string;
|
|
4980
|
+
}
|
|
4968
4981
|
/**
|
|
4969
4982
|
*
|
|
4970
4983
|
* @export
|
|
@@ -19176,6 +19189,43 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configur
|
|
|
19176
19189
|
|
|
19177
19190
|
|
|
19178
19191
|
|
|
19192
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19193
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19194
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
19195
|
+
|
|
19196
|
+
return {
|
|
19197
|
+
url: toPathString(localVarUrlObj),
|
|
19198
|
+
options: localVarRequestOptions,
|
|
19199
|
+
};
|
|
19200
|
+
},
|
|
19201
|
+
/**
|
|
19202
|
+
*
|
|
19203
|
+
* @param {string} clubId
|
|
19204
|
+
* @param {*} [options] Override http request option.
|
|
19205
|
+
* @throws {RequiredError}
|
|
19206
|
+
*/
|
|
19207
|
+
getClubType: async (clubId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
19208
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
19209
|
+
assertParamExists('getClubType', 'clubId', clubId)
|
|
19210
|
+
const localVarPath = `/api/clubs/{clubId}/clubType`
|
|
19211
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
19212
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19213
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
19214
|
+
let baseOptions;
|
|
19215
|
+
if (configuration) {
|
|
19216
|
+
baseOptions = configuration.baseOptions;
|
|
19217
|
+
}
|
|
19218
|
+
|
|
19219
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
19220
|
+
const localVarHeaderParameter = {} as any;
|
|
19221
|
+
const localVarQueryParameter = {} as any;
|
|
19222
|
+
|
|
19223
|
+
// authentication bearerAuth required
|
|
19224
|
+
// http bearer authentication required
|
|
19225
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
19226
|
+
|
|
19227
|
+
|
|
19228
|
+
|
|
19179
19229
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19180
19230
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19181
19231
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -19444,6 +19494,18 @@ export const ClubsStaffApiFp = function(configuration?: Configuration) {
|
|
|
19444
19494
|
const localVarOperationServerBasePath = operationServerMap['ClubsStaffApi.getClubRoles']?.[localVarOperationServerIndex]?.url;
|
|
19445
19495
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19446
19496
|
},
|
|
19497
|
+
/**
|
|
19498
|
+
*
|
|
19499
|
+
* @param {string} clubId
|
|
19500
|
+
* @param {*} [options] Override http request option.
|
|
19501
|
+
* @throws {RequiredError}
|
|
19502
|
+
*/
|
|
19503
|
+
async getClubType(clubId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetClubType200Response>> {
|
|
19504
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getClubType(clubId, options);
|
|
19505
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
19506
|
+
const localVarOperationServerBasePath = operationServerMap['ClubsStaffApi.getClubType']?.[localVarOperationServerIndex]?.url;
|
|
19507
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19508
|
+
},
|
|
19447
19509
|
/**
|
|
19448
19510
|
* Récupère les terrains d\'un club
|
|
19449
19511
|
* @param {*} [options] Override http request option.
|
|
@@ -19557,6 +19619,15 @@ export const ClubsStaffApiFactory = function (configuration?: Configuration, bas
|
|
|
19557
19619
|
getClubRoles(options?: RawAxiosRequestConfig): AxiosPromise<GetClubRoles200Response> {
|
|
19558
19620
|
return localVarFp.getClubRoles(options).then((request) => request(axios, basePath));
|
|
19559
19621
|
},
|
|
19622
|
+
/**
|
|
19623
|
+
*
|
|
19624
|
+
* @param {ClubsStaffApiGetClubTypeRequest} requestParameters Request parameters.
|
|
19625
|
+
* @param {*} [options] Override http request option.
|
|
19626
|
+
* @throws {RequiredError}
|
|
19627
|
+
*/
|
|
19628
|
+
getClubType(requestParameters: ClubsStaffApiGetClubTypeRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetClubType200Response> {
|
|
19629
|
+
return localVarFp.getClubType(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
19630
|
+
},
|
|
19560
19631
|
/**
|
|
19561
19632
|
* Récupère les terrains d\'un club
|
|
19562
19633
|
* @param {*} [options] Override http request option.
|
|
@@ -19616,6 +19687,20 @@ export interface ClubsStaffApiCreateOnsiteInvoiceForBookingRequest {
|
|
|
19616
19687
|
readonly createOnsiteInvoiceRequest: CreateOnsiteInvoiceRequest
|
|
19617
19688
|
}
|
|
19618
19689
|
|
|
19690
|
+
/**
|
|
19691
|
+
* Request parameters for getClubType operation in ClubsStaffApi.
|
|
19692
|
+
* @export
|
|
19693
|
+
* @interface ClubsStaffApiGetClubTypeRequest
|
|
19694
|
+
*/
|
|
19695
|
+
export interface ClubsStaffApiGetClubTypeRequest {
|
|
19696
|
+
/**
|
|
19697
|
+
*
|
|
19698
|
+
* @type {string}
|
|
19699
|
+
* @memberof ClubsStaffApiGetClubType
|
|
19700
|
+
*/
|
|
19701
|
+
readonly clubId: string
|
|
19702
|
+
}
|
|
19703
|
+
|
|
19619
19704
|
/**
|
|
19620
19705
|
* Request parameters for getInvoices operation in ClubsStaffApi.
|
|
19621
19706
|
* @export
|
|
@@ -19775,6 +19860,17 @@ export class ClubsStaffApi extends BaseAPI {
|
|
|
19775
19860
|
return ClubsStaffApiFp(this.configuration).getClubRoles(options).then((request) => request(this.axios, this.basePath));
|
|
19776
19861
|
}
|
|
19777
19862
|
|
|
19863
|
+
/**
|
|
19864
|
+
*
|
|
19865
|
+
* @param {ClubsStaffApiGetClubTypeRequest} requestParameters Request parameters.
|
|
19866
|
+
* @param {*} [options] Override http request option.
|
|
19867
|
+
* @throws {RequiredError}
|
|
19868
|
+
* @memberof ClubsStaffApi
|
|
19869
|
+
*/
|
|
19870
|
+
public getClubType(requestParameters: ClubsStaffApiGetClubTypeRequest, options?: RawAxiosRequestConfig) {
|
|
19871
|
+
return ClubsStaffApiFp(this.configuration).getClubType(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
19872
|
+
}
|
|
19873
|
+
|
|
19778
19874
|
/**
|
|
19779
19875
|
* Récupère les terrains d\'un club
|
|
19780
19876
|
* @param {*} [options] Override http request option.
|
package/dist/api.d.ts
CHANGED
|
@@ -4885,6 +4885,19 @@ export interface GetClubRoles200Response {
|
|
|
4885
4885
|
*/
|
|
4886
4886
|
'roles': Array<any>;
|
|
4887
4887
|
}
|
|
4888
|
+
/**
|
|
4889
|
+
*
|
|
4890
|
+
* @export
|
|
4891
|
+
* @interface GetClubType200Response
|
|
4892
|
+
*/
|
|
4893
|
+
export interface GetClubType200Response {
|
|
4894
|
+
/**
|
|
4895
|
+
*
|
|
4896
|
+
* @type {string}
|
|
4897
|
+
* @memberof GetClubType200Response
|
|
4898
|
+
*/
|
|
4899
|
+
'clubType': string;
|
|
4900
|
+
}
|
|
4888
4901
|
/**
|
|
4889
4902
|
*
|
|
4890
4903
|
* @export
|
|
@@ -15055,6 +15068,13 @@ export declare const ClubsStaffApiAxiosParamCreator: (configuration?: Configurat
|
|
|
15055
15068
|
* @throws {RequiredError}
|
|
15056
15069
|
*/
|
|
15057
15070
|
getClubRoles: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
15071
|
+
/**
|
|
15072
|
+
*
|
|
15073
|
+
* @param {string} clubId
|
|
15074
|
+
* @param {*} [options] Override http request option.
|
|
15075
|
+
* @throws {RequiredError}
|
|
15076
|
+
*/
|
|
15077
|
+
getClubType: (clubId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
15058
15078
|
/**
|
|
15059
15079
|
* Récupère les terrains d\'un club
|
|
15060
15080
|
* @param {*} [options] Override http request option.
|
|
@@ -15133,6 +15153,13 @@ export declare const ClubsStaffApiFp: (configuration?: Configuration) => {
|
|
|
15133
15153
|
* @throws {RequiredError}
|
|
15134
15154
|
*/
|
|
15135
15155
|
getClubRoles(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetClubRoles200Response>>;
|
|
15156
|
+
/**
|
|
15157
|
+
*
|
|
15158
|
+
* @param {string} clubId
|
|
15159
|
+
* @param {*} [options] Override http request option.
|
|
15160
|
+
* @throws {RequiredError}
|
|
15161
|
+
*/
|
|
15162
|
+
getClubType(clubId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetClubType200Response>>;
|
|
15136
15163
|
/**
|
|
15137
15164
|
* Récupère les terrains d\'un club
|
|
15138
15165
|
* @param {*} [options] Override http request option.
|
|
@@ -15210,6 +15237,13 @@ export declare const ClubsStaffApiFactory: (configuration?: Configuration, baseP
|
|
|
15210
15237
|
* @throws {RequiredError}
|
|
15211
15238
|
*/
|
|
15212
15239
|
getClubRoles(options?: RawAxiosRequestConfig): AxiosPromise<GetClubRoles200Response>;
|
|
15240
|
+
/**
|
|
15241
|
+
*
|
|
15242
|
+
* @param {ClubsStaffApiGetClubTypeRequest} requestParameters Request parameters.
|
|
15243
|
+
* @param {*} [options] Override http request option.
|
|
15244
|
+
* @throws {RequiredError}
|
|
15245
|
+
*/
|
|
15246
|
+
getClubType(requestParameters: ClubsStaffApiGetClubTypeRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetClubType200Response>;
|
|
15213
15247
|
/**
|
|
15214
15248
|
* Récupère les terrains d\'un club
|
|
15215
15249
|
* @param {*} [options] Override http request option.
|
|
@@ -15257,6 +15291,19 @@ export interface ClubsStaffApiCreateOnsiteInvoiceForBookingRequest {
|
|
|
15257
15291
|
*/
|
|
15258
15292
|
readonly createOnsiteInvoiceRequest: CreateOnsiteInvoiceRequest;
|
|
15259
15293
|
}
|
|
15294
|
+
/**
|
|
15295
|
+
* Request parameters for getClubType operation in ClubsStaffApi.
|
|
15296
|
+
* @export
|
|
15297
|
+
* @interface ClubsStaffApiGetClubTypeRequest
|
|
15298
|
+
*/
|
|
15299
|
+
export interface ClubsStaffApiGetClubTypeRequest {
|
|
15300
|
+
/**
|
|
15301
|
+
*
|
|
15302
|
+
* @type {string}
|
|
15303
|
+
* @memberof ClubsStaffApiGetClubType
|
|
15304
|
+
*/
|
|
15305
|
+
readonly clubId: string;
|
|
15306
|
+
}
|
|
15260
15307
|
/**
|
|
15261
15308
|
* Request parameters for getInvoices operation in ClubsStaffApi.
|
|
15262
15309
|
* @export
|
|
@@ -15388,6 +15435,14 @@ export declare class ClubsStaffApi extends BaseAPI {
|
|
|
15388
15435
|
* @memberof ClubsStaffApi
|
|
15389
15436
|
*/
|
|
15390
15437
|
getClubRoles(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetClubRoles200Response, any, {}>>;
|
|
15438
|
+
/**
|
|
15439
|
+
*
|
|
15440
|
+
* @param {ClubsStaffApiGetClubTypeRequest} requestParameters Request parameters.
|
|
15441
|
+
* @param {*} [options] Override http request option.
|
|
15442
|
+
* @throws {RequiredError}
|
|
15443
|
+
* @memberof ClubsStaffApi
|
|
15444
|
+
*/
|
|
15445
|
+
getClubType(requestParameters: ClubsStaffApiGetClubTypeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetClubType200Response, any, {}>>;
|
|
15391
15446
|
/**
|
|
15392
15447
|
* Récupère les terrains d\'un club
|
|
15393
15448
|
* @param {*} [options] Override http request option.
|
package/dist/api.js
CHANGED
|
@@ -6656,6 +6656,37 @@ const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
6656
6656
|
options: localVarRequestOptions,
|
|
6657
6657
|
};
|
|
6658
6658
|
}),
|
|
6659
|
+
/**
|
|
6660
|
+
*
|
|
6661
|
+
* @param {string} clubId
|
|
6662
|
+
* @param {*} [options] Override http request option.
|
|
6663
|
+
* @throws {RequiredError}
|
|
6664
|
+
*/
|
|
6665
|
+
getClubType: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
|
|
6666
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
6667
|
+
(0, common_1.assertParamExists)('getClubType', 'clubId', clubId);
|
|
6668
|
+
const localVarPath = `/api/clubs/{clubId}/clubType`
|
|
6669
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
6670
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6671
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6672
|
+
let baseOptions;
|
|
6673
|
+
if (configuration) {
|
|
6674
|
+
baseOptions = configuration.baseOptions;
|
|
6675
|
+
}
|
|
6676
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6677
|
+
const localVarHeaderParameter = {};
|
|
6678
|
+
const localVarQueryParameter = {};
|
|
6679
|
+
// authentication bearerAuth required
|
|
6680
|
+
// http bearer authentication required
|
|
6681
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6682
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6683
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6684
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6685
|
+
return {
|
|
6686
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6687
|
+
options: localVarRequestOptions,
|
|
6688
|
+
};
|
|
6689
|
+
}),
|
|
6659
6690
|
/**
|
|
6660
6691
|
* Récupère les terrains d\'un club
|
|
6661
6692
|
* @param {*} [options] Override http request option.
|
|
@@ -6901,6 +6932,21 @@ const ClubsStaffApiFp = function (configuration) {
|
|
|
6901
6932
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6902
6933
|
});
|
|
6903
6934
|
},
|
|
6935
|
+
/**
|
|
6936
|
+
*
|
|
6937
|
+
* @param {string} clubId
|
|
6938
|
+
* @param {*} [options] Override http request option.
|
|
6939
|
+
* @throws {RequiredError}
|
|
6940
|
+
*/
|
|
6941
|
+
getClubType(clubId, options) {
|
|
6942
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6943
|
+
var _a, _b, _c;
|
|
6944
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubType(clubId, options);
|
|
6945
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6946
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubsStaffApi.getClubType']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6947
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6948
|
+
});
|
|
6949
|
+
},
|
|
6904
6950
|
/**
|
|
6905
6951
|
* Récupère les terrains d\'un club
|
|
6906
6952
|
* @param {*} [options] Override http request option.
|
|
@@ -7026,6 +7072,15 @@ const ClubsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
7026
7072
|
getClubRoles(options) {
|
|
7027
7073
|
return localVarFp.getClubRoles(options).then((request) => request(axios, basePath));
|
|
7028
7074
|
},
|
|
7075
|
+
/**
|
|
7076
|
+
*
|
|
7077
|
+
* @param {ClubsStaffApiGetClubTypeRequest} requestParameters Request parameters.
|
|
7078
|
+
* @param {*} [options] Override http request option.
|
|
7079
|
+
* @throws {RequiredError}
|
|
7080
|
+
*/
|
|
7081
|
+
getClubType(requestParameters, options) {
|
|
7082
|
+
return localVarFp.getClubType(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
7083
|
+
},
|
|
7029
7084
|
/**
|
|
7030
7085
|
* Récupère les terrains d\'un club
|
|
7031
7086
|
* @param {*} [options] Override http request option.
|
|
@@ -7126,6 +7181,16 @@ class ClubsStaffApi extends base_1.BaseAPI {
|
|
|
7126
7181
|
getClubRoles(options) {
|
|
7127
7182
|
return (0, exports.ClubsStaffApiFp)(this.configuration).getClubRoles(options).then((request) => request(this.axios, this.basePath));
|
|
7128
7183
|
}
|
|
7184
|
+
/**
|
|
7185
|
+
*
|
|
7186
|
+
* @param {ClubsStaffApiGetClubTypeRequest} requestParameters Request parameters.
|
|
7187
|
+
* @param {*} [options] Override http request option.
|
|
7188
|
+
* @throws {RequiredError}
|
|
7189
|
+
* @memberof ClubsStaffApi
|
|
7190
|
+
*/
|
|
7191
|
+
getClubType(requestParameters, options) {
|
|
7192
|
+
return (0, exports.ClubsStaffApiFp)(this.configuration).getClubType(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
7193
|
+
}
|
|
7129
7194
|
/**
|
|
7130
7195
|
* Récupère les terrains d\'un club
|
|
7131
7196
|
* @param {*} [options] Override http request option.
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -4885,6 +4885,19 @@ export interface GetClubRoles200Response {
|
|
|
4885
4885
|
*/
|
|
4886
4886
|
'roles': Array<any>;
|
|
4887
4887
|
}
|
|
4888
|
+
/**
|
|
4889
|
+
*
|
|
4890
|
+
* @export
|
|
4891
|
+
* @interface GetClubType200Response
|
|
4892
|
+
*/
|
|
4893
|
+
export interface GetClubType200Response {
|
|
4894
|
+
/**
|
|
4895
|
+
*
|
|
4896
|
+
* @type {string}
|
|
4897
|
+
* @memberof GetClubType200Response
|
|
4898
|
+
*/
|
|
4899
|
+
'clubType': string;
|
|
4900
|
+
}
|
|
4888
4901
|
/**
|
|
4889
4902
|
*
|
|
4890
4903
|
* @export
|
|
@@ -15055,6 +15068,13 @@ export declare const ClubsStaffApiAxiosParamCreator: (configuration?: Configurat
|
|
|
15055
15068
|
* @throws {RequiredError}
|
|
15056
15069
|
*/
|
|
15057
15070
|
getClubRoles: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
15071
|
+
/**
|
|
15072
|
+
*
|
|
15073
|
+
* @param {string} clubId
|
|
15074
|
+
* @param {*} [options] Override http request option.
|
|
15075
|
+
* @throws {RequiredError}
|
|
15076
|
+
*/
|
|
15077
|
+
getClubType: (clubId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
15058
15078
|
/**
|
|
15059
15079
|
* Récupère les terrains d\'un club
|
|
15060
15080
|
* @param {*} [options] Override http request option.
|
|
@@ -15133,6 +15153,13 @@ export declare const ClubsStaffApiFp: (configuration?: Configuration) => {
|
|
|
15133
15153
|
* @throws {RequiredError}
|
|
15134
15154
|
*/
|
|
15135
15155
|
getClubRoles(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetClubRoles200Response>>;
|
|
15156
|
+
/**
|
|
15157
|
+
*
|
|
15158
|
+
* @param {string} clubId
|
|
15159
|
+
* @param {*} [options] Override http request option.
|
|
15160
|
+
* @throws {RequiredError}
|
|
15161
|
+
*/
|
|
15162
|
+
getClubType(clubId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetClubType200Response>>;
|
|
15136
15163
|
/**
|
|
15137
15164
|
* Récupère les terrains d\'un club
|
|
15138
15165
|
* @param {*} [options] Override http request option.
|
|
@@ -15210,6 +15237,13 @@ export declare const ClubsStaffApiFactory: (configuration?: Configuration, baseP
|
|
|
15210
15237
|
* @throws {RequiredError}
|
|
15211
15238
|
*/
|
|
15212
15239
|
getClubRoles(options?: RawAxiosRequestConfig): AxiosPromise<GetClubRoles200Response>;
|
|
15240
|
+
/**
|
|
15241
|
+
*
|
|
15242
|
+
* @param {ClubsStaffApiGetClubTypeRequest} requestParameters Request parameters.
|
|
15243
|
+
* @param {*} [options] Override http request option.
|
|
15244
|
+
* @throws {RequiredError}
|
|
15245
|
+
*/
|
|
15246
|
+
getClubType(requestParameters: ClubsStaffApiGetClubTypeRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetClubType200Response>;
|
|
15213
15247
|
/**
|
|
15214
15248
|
* Récupère les terrains d\'un club
|
|
15215
15249
|
* @param {*} [options] Override http request option.
|
|
@@ -15257,6 +15291,19 @@ export interface ClubsStaffApiCreateOnsiteInvoiceForBookingRequest {
|
|
|
15257
15291
|
*/
|
|
15258
15292
|
readonly createOnsiteInvoiceRequest: CreateOnsiteInvoiceRequest;
|
|
15259
15293
|
}
|
|
15294
|
+
/**
|
|
15295
|
+
* Request parameters for getClubType operation in ClubsStaffApi.
|
|
15296
|
+
* @export
|
|
15297
|
+
* @interface ClubsStaffApiGetClubTypeRequest
|
|
15298
|
+
*/
|
|
15299
|
+
export interface ClubsStaffApiGetClubTypeRequest {
|
|
15300
|
+
/**
|
|
15301
|
+
*
|
|
15302
|
+
* @type {string}
|
|
15303
|
+
* @memberof ClubsStaffApiGetClubType
|
|
15304
|
+
*/
|
|
15305
|
+
readonly clubId: string;
|
|
15306
|
+
}
|
|
15260
15307
|
/**
|
|
15261
15308
|
* Request parameters for getInvoices operation in ClubsStaffApi.
|
|
15262
15309
|
* @export
|
|
@@ -15388,6 +15435,14 @@ export declare class ClubsStaffApi extends BaseAPI {
|
|
|
15388
15435
|
* @memberof ClubsStaffApi
|
|
15389
15436
|
*/
|
|
15390
15437
|
getClubRoles(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetClubRoles200Response, any, {}>>;
|
|
15438
|
+
/**
|
|
15439
|
+
*
|
|
15440
|
+
* @param {ClubsStaffApiGetClubTypeRequest} requestParameters Request parameters.
|
|
15441
|
+
* @param {*} [options] Override http request option.
|
|
15442
|
+
* @throws {RequiredError}
|
|
15443
|
+
* @memberof ClubsStaffApi
|
|
15444
|
+
*/
|
|
15445
|
+
getClubType(requestParameters: ClubsStaffApiGetClubTypeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetClubType200Response, any, {}>>;
|
|
15391
15446
|
/**
|
|
15392
15447
|
* Récupère les terrains d\'un club
|
|
15393
15448
|
* @param {*} [options] Override http request option.
|
package/dist/esm/api.js
CHANGED
|
@@ -6598,6 +6598,37 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
6598
6598
|
options: localVarRequestOptions,
|
|
6599
6599
|
};
|
|
6600
6600
|
}),
|
|
6601
|
+
/**
|
|
6602
|
+
*
|
|
6603
|
+
* @param {string} clubId
|
|
6604
|
+
* @param {*} [options] Override http request option.
|
|
6605
|
+
* @throws {RequiredError}
|
|
6606
|
+
*/
|
|
6607
|
+
getClubType: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
|
|
6608
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
6609
|
+
assertParamExists('getClubType', 'clubId', clubId);
|
|
6610
|
+
const localVarPath = `/api/clubs/{clubId}/clubType`
|
|
6611
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
6612
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6613
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6614
|
+
let baseOptions;
|
|
6615
|
+
if (configuration) {
|
|
6616
|
+
baseOptions = configuration.baseOptions;
|
|
6617
|
+
}
|
|
6618
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6619
|
+
const localVarHeaderParameter = {};
|
|
6620
|
+
const localVarQueryParameter = {};
|
|
6621
|
+
// authentication bearerAuth required
|
|
6622
|
+
// http bearer authentication required
|
|
6623
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6624
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6625
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6626
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6627
|
+
return {
|
|
6628
|
+
url: toPathString(localVarUrlObj),
|
|
6629
|
+
options: localVarRequestOptions,
|
|
6630
|
+
};
|
|
6631
|
+
}),
|
|
6601
6632
|
/**
|
|
6602
6633
|
* Récupère les terrains d\'un club
|
|
6603
6634
|
* @param {*} [options] Override http request option.
|
|
@@ -6842,6 +6873,21 @@ export const ClubsStaffApiFp = function (configuration) {
|
|
|
6842
6873
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6843
6874
|
});
|
|
6844
6875
|
},
|
|
6876
|
+
/**
|
|
6877
|
+
*
|
|
6878
|
+
* @param {string} clubId
|
|
6879
|
+
* @param {*} [options] Override http request option.
|
|
6880
|
+
* @throws {RequiredError}
|
|
6881
|
+
*/
|
|
6882
|
+
getClubType(clubId, options) {
|
|
6883
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6884
|
+
var _a, _b, _c;
|
|
6885
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubType(clubId, options);
|
|
6886
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6887
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsStaffApi.getClubType']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6888
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6889
|
+
});
|
|
6890
|
+
},
|
|
6845
6891
|
/**
|
|
6846
6892
|
* Récupère les terrains d\'un club
|
|
6847
6893
|
* @param {*} [options] Override http request option.
|
|
@@ -6966,6 +7012,15 @@ export const ClubsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
6966
7012
|
getClubRoles(options) {
|
|
6967
7013
|
return localVarFp.getClubRoles(options).then((request) => request(axios, basePath));
|
|
6968
7014
|
},
|
|
7015
|
+
/**
|
|
7016
|
+
*
|
|
7017
|
+
* @param {ClubsStaffApiGetClubTypeRequest} requestParameters Request parameters.
|
|
7018
|
+
* @param {*} [options] Override http request option.
|
|
7019
|
+
* @throws {RequiredError}
|
|
7020
|
+
*/
|
|
7021
|
+
getClubType(requestParameters, options) {
|
|
7022
|
+
return localVarFp.getClubType(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
7023
|
+
},
|
|
6969
7024
|
/**
|
|
6970
7025
|
* Récupère les terrains d\'un club
|
|
6971
7026
|
* @param {*} [options] Override http request option.
|
|
@@ -7065,6 +7120,16 @@ export class ClubsStaffApi extends BaseAPI {
|
|
|
7065
7120
|
getClubRoles(options) {
|
|
7066
7121
|
return ClubsStaffApiFp(this.configuration).getClubRoles(options).then((request) => request(this.axios, this.basePath));
|
|
7067
7122
|
}
|
|
7123
|
+
/**
|
|
7124
|
+
*
|
|
7125
|
+
* @param {ClubsStaffApiGetClubTypeRequest} requestParameters Request parameters.
|
|
7126
|
+
* @param {*} [options] Override http request option.
|
|
7127
|
+
* @throws {RequiredError}
|
|
7128
|
+
* @memberof ClubsStaffApi
|
|
7129
|
+
*/
|
|
7130
|
+
getClubType(requestParameters, options) {
|
|
7131
|
+
return ClubsStaffApiFp(this.configuration).getClubType(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
7132
|
+
}
|
|
7068
7133
|
/**
|
|
7069
7134
|
* Récupère les terrains d\'un club
|
|
7070
7135
|
* @param {*} [options] Override http request option.
|
package/docs/ClubsStaffApi.md
CHANGED
|
@@ -10,6 +10,7 @@ All URIs are relative to *http://localhost*
|
|
|
10
10
|
|[**getClubMembers**](#getclubmembers) | **GET** /api/clubs/members | |
|
|
11
11
|
|[**getClubPresentationSettings**](#getclubpresentationsettings) | **GET** /api/clubs/settings/presentation | |
|
|
12
12
|
|[**getClubRoles**](#getclubroles) | **GET** /api/clubs/roles | |
|
|
13
|
+
|[**getClubType**](#getclubtype) | **GET** /api/clubs/{clubId}/clubType | |
|
|
13
14
|
|[**getCourtsByClub**](#getcourtsbyclub) | **GET** /api/clubs/courts | |
|
|
14
15
|
|[**getInvoices**](#getinvoices) | **GET** /api/clubs/invoices | |
|
|
15
16
|
|[**getUserProfileStaff**](#getuserprofilestaff) | **GET** /api/clubs/staff/profile/{id} | |
|
|
@@ -292,6 +293,59 @@ This endpoint does not have any parameters.
|
|
|
292
293
|
|
|
293
294
|
[[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)
|
|
294
295
|
|
|
296
|
+
# **getClubType**
|
|
297
|
+
> GetClubType200Response getClubType()
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
### Example
|
|
301
|
+
|
|
302
|
+
```typescript
|
|
303
|
+
import {
|
|
304
|
+
ClubsStaffApi,
|
|
305
|
+
Configuration
|
|
306
|
+
} from '@tennac-booking/sdk';
|
|
307
|
+
|
|
308
|
+
const configuration = new Configuration();
|
|
309
|
+
const apiInstance = new ClubsStaffApi(configuration);
|
|
310
|
+
|
|
311
|
+
let clubId: string; // (default to undefined)
|
|
312
|
+
|
|
313
|
+
const { status, data } = await apiInstance.getClubType(
|
|
314
|
+
clubId
|
|
315
|
+
);
|
|
316
|
+
```
|
|
317
|
+
|
|
318
|
+
### Parameters
|
|
319
|
+
|
|
320
|
+
|Name | Type | Description | Notes|
|
|
321
|
+
|------------- | ------------- | ------------- | -------------|
|
|
322
|
+
| **clubId** | [**string**] | | defaults to undefined|
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
### Return type
|
|
326
|
+
|
|
327
|
+
**GetClubType200Response**
|
|
328
|
+
|
|
329
|
+
### Authorization
|
|
330
|
+
|
|
331
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
332
|
+
|
|
333
|
+
### HTTP request headers
|
|
334
|
+
|
|
335
|
+
- **Content-Type**: Not defined
|
|
336
|
+
- **Accept**: application/json
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
### HTTP response details
|
|
340
|
+
| Status code | Description | Response headers |
|
|
341
|
+
|-------------|-------------|------------------|
|
|
342
|
+
|**200** | Type de club | - |
|
|
343
|
+
|**400** | Bad Request | - |
|
|
344
|
+
|**404** | Club non trouvé | - |
|
|
345
|
+
|**500** | Server Error | - |
|
|
346
|
+
|
|
347
|
+
[[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)
|
|
348
|
+
|
|
295
349
|
# **getCourtsByClub**
|
|
296
350
|
> Array<CourtResponse> getCourtsByClub()
|
|
297
351
|
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# GetClubType200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**clubType** | **string** | | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { GetClubType200Response } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: GetClubType200Response = {
|
|
16
|
+
clubType,
|
|
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)
|