@tennac-booking/sdk 1.0.19 → 1.0.21
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 +8 -0
- package/README.md +14 -3
- package/api.ts +853 -132
- package/base.ts +2 -2
- package/common.ts +2 -2
- package/configuration.ts +2 -2
- package/dist/api.d.ts +538 -46
- package/dist/api.js +412 -35
- package/dist/base.d.ts +2 -2
- package/dist/base.js +2 -2
- package/dist/common.d.ts +2 -2
- package/dist/common.js +2 -2
- package/dist/configuration.d.ts +2 -2
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +538 -46
- package/dist/esm/api.js +405 -32
- package/dist/esm/base.d.ts +2 -2
- package/dist/esm/base.js +2 -2
- package/dist/esm/common.d.ts +2 -2
- package/dist/esm/common.js +2 -2
- package/dist/esm/configuration.d.ts +2 -2
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/docs/ClubAnalyticsApi.md +253 -0
- package/docs/DailyTurnoverResponse.md +24 -0
- package/docs/GetLastSixMonthsTurnover200ResponseInner.md +1 -1
- package/docs/InvoicesResponse.md +22 -0
- package/docs/InvoicesResponseInvoicesInner.md +34 -0
- package/docs/InvoicesResponsePagination.md +26 -0
- package/docs/MonthlyTurnoverResponse.md +28 -0
- package/docs/StaffClubAnalyticsApi.md +3 -10
- package/docs/StaffClubSettingsApi.md +5 -13
- package/docs/YearlyTurnoverResponse.md +26 -0
- package/docs/YearlyTurnoverResponseMonthlyBreakdownInner.md +24 -0
- package/index.ts +2 -2
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Pandook API
|
|
5
5
|
* API for managing pickle ball games and players
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.21
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1734,6 +1734,31 @@ export interface CreateSubscriptionPlanRequest {
|
|
|
1734
1734
|
*/
|
|
1735
1735
|
'metadata'?: object;
|
|
1736
1736
|
}
|
|
1737
|
+
/**
|
|
1738
|
+
*
|
|
1739
|
+
* @export
|
|
1740
|
+
* @interface DailyTurnoverResponse
|
|
1741
|
+
*/
|
|
1742
|
+
export interface DailyTurnoverResponse {
|
|
1743
|
+
/**
|
|
1744
|
+
*
|
|
1745
|
+
* @type {string}
|
|
1746
|
+
* @memberof DailyTurnoverResponse
|
|
1747
|
+
*/
|
|
1748
|
+
'date'?: string;
|
|
1749
|
+
/**
|
|
1750
|
+
*
|
|
1751
|
+
* @type {number}
|
|
1752
|
+
* @memberof DailyTurnoverResponse
|
|
1753
|
+
*/
|
|
1754
|
+
'totalTurnover'?: number;
|
|
1755
|
+
/**
|
|
1756
|
+
*
|
|
1757
|
+
* @type {number}
|
|
1758
|
+
* @memberof DailyTurnoverResponse
|
|
1759
|
+
*/
|
|
1760
|
+
'invoiceCount'?: number;
|
|
1761
|
+
}
|
|
1737
1762
|
/**
|
|
1738
1763
|
*
|
|
1739
1764
|
* @export
|
|
@@ -1939,10 +1964,10 @@ export interface GetLastSixMonthsTurnover200ResponseInner {
|
|
|
1939
1964
|
'year'?: number;
|
|
1940
1965
|
/**
|
|
1941
1966
|
*
|
|
1942
|
-
* @type {
|
|
1967
|
+
* @type {string}
|
|
1943
1968
|
* @memberof GetLastSixMonthsTurnover200ResponseInner
|
|
1944
1969
|
*/
|
|
1945
|
-
'month'?:
|
|
1970
|
+
'month'?: string;
|
|
1946
1971
|
/**
|
|
1947
1972
|
*
|
|
1948
1973
|
* @type {number}
|
|
@@ -2114,6 +2139,123 @@ export interface InitiateSubscriptionSessionResponse {
|
|
|
2114
2139
|
*/
|
|
2115
2140
|
'url'?: string;
|
|
2116
2141
|
}
|
|
2142
|
+
/**
|
|
2143
|
+
*
|
|
2144
|
+
* @export
|
|
2145
|
+
* @interface InvoicesResponse
|
|
2146
|
+
*/
|
|
2147
|
+
export interface InvoicesResponse {
|
|
2148
|
+
/**
|
|
2149
|
+
*
|
|
2150
|
+
* @type {Array<InvoicesResponseInvoicesInner>}
|
|
2151
|
+
* @memberof InvoicesResponse
|
|
2152
|
+
*/
|
|
2153
|
+
'invoices'?: Array<InvoicesResponseInvoicesInner>;
|
|
2154
|
+
/**
|
|
2155
|
+
*
|
|
2156
|
+
* @type {InvoicesResponsePagination}
|
|
2157
|
+
* @memberof InvoicesResponse
|
|
2158
|
+
*/
|
|
2159
|
+
'pagination'?: InvoicesResponsePagination;
|
|
2160
|
+
}
|
|
2161
|
+
/**
|
|
2162
|
+
*
|
|
2163
|
+
* @export
|
|
2164
|
+
* @interface InvoicesResponseInvoicesInner
|
|
2165
|
+
*/
|
|
2166
|
+
export interface InvoicesResponseInvoicesInner {
|
|
2167
|
+
/**
|
|
2168
|
+
*
|
|
2169
|
+
* @type {string}
|
|
2170
|
+
* @memberof InvoicesResponseInvoicesInner
|
|
2171
|
+
*/
|
|
2172
|
+
'billNumber'?: string;
|
|
2173
|
+
/**
|
|
2174
|
+
*
|
|
2175
|
+
* @type {string}
|
|
2176
|
+
* @memberof InvoicesResponseInvoicesInner
|
|
2177
|
+
*/
|
|
2178
|
+
'date'?: string;
|
|
2179
|
+
/**
|
|
2180
|
+
*
|
|
2181
|
+
* @type {string}
|
|
2182
|
+
* @memberof InvoicesResponseInvoicesInner
|
|
2183
|
+
*/
|
|
2184
|
+
'clientFirstName'?: string;
|
|
2185
|
+
/**
|
|
2186
|
+
*
|
|
2187
|
+
* @type {string}
|
|
2188
|
+
* @memberof InvoicesResponseInvoicesInner
|
|
2189
|
+
*/
|
|
2190
|
+
'clientLastName'?: string;
|
|
2191
|
+
/**
|
|
2192
|
+
*
|
|
2193
|
+
* @type {string}
|
|
2194
|
+
* @memberof InvoicesResponseInvoicesInner
|
|
2195
|
+
*/
|
|
2196
|
+
'clientEmail'?: string;
|
|
2197
|
+
/**
|
|
2198
|
+
*
|
|
2199
|
+
* @type {number}
|
|
2200
|
+
* @memberof InvoicesResponseInvoicesInner
|
|
2201
|
+
*/
|
|
2202
|
+
'totalCost'?: number;
|
|
2203
|
+
/**
|
|
2204
|
+
*
|
|
2205
|
+
* @type {string}
|
|
2206
|
+
* @memberof InvoicesResponseInvoicesInner
|
|
2207
|
+
*/
|
|
2208
|
+
'status'?: InvoicesResponseInvoicesInnerStatusEnum;
|
|
2209
|
+
/**
|
|
2210
|
+
*
|
|
2211
|
+
* @type {string}
|
|
2212
|
+
* @memberof InvoicesResponseInvoicesInner
|
|
2213
|
+
*/
|
|
2214
|
+
'linkToInvoicePDF'?: string | null;
|
|
2215
|
+
}
|
|
2216
|
+
|
|
2217
|
+
export const InvoicesResponseInvoicesInnerStatusEnum = {
|
|
2218
|
+
Pending: 'pending',
|
|
2219
|
+
Paid: 'paid',
|
|
2220
|
+
Failed: 'failed',
|
|
2221
|
+
Authorized: 'authorized',
|
|
2222
|
+
Canceled: 'canceled',
|
|
2223
|
+
Expired: 'expired'
|
|
2224
|
+
} as const;
|
|
2225
|
+
|
|
2226
|
+
export type InvoicesResponseInvoicesInnerStatusEnum = typeof InvoicesResponseInvoicesInnerStatusEnum[keyof typeof InvoicesResponseInvoicesInnerStatusEnum];
|
|
2227
|
+
|
|
2228
|
+
/**
|
|
2229
|
+
*
|
|
2230
|
+
* @export
|
|
2231
|
+
* @interface InvoicesResponsePagination
|
|
2232
|
+
*/
|
|
2233
|
+
export interface InvoicesResponsePagination {
|
|
2234
|
+
/**
|
|
2235
|
+
*
|
|
2236
|
+
* @type {number}
|
|
2237
|
+
* @memberof InvoicesResponsePagination
|
|
2238
|
+
*/
|
|
2239
|
+
'total'?: number;
|
|
2240
|
+
/**
|
|
2241
|
+
*
|
|
2242
|
+
* @type {number}
|
|
2243
|
+
* @memberof InvoicesResponsePagination
|
|
2244
|
+
*/
|
|
2245
|
+
'page'?: number;
|
|
2246
|
+
/**
|
|
2247
|
+
*
|
|
2248
|
+
* @type {number}
|
|
2249
|
+
* @memberof InvoicesResponsePagination
|
|
2250
|
+
*/
|
|
2251
|
+
'limit'?: number;
|
|
2252
|
+
/**
|
|
2253
|
+
*
|
|
2254
|
+
* @type {number}
|
|
2255
|
+
* @memberof InvoicesResponsePagination
|
|
2256
|
+
*/
|
|
2257
|
+
'totalPages'?: number;
|
|
2258
|
+
}
|
|
2117
2259
|
/**
|
|
2118
2260
|
*
|
|
2119
2261
|
* @export
|
|
@@ -2246,6 +2388,43 @@ export const ManagerCancelBookingResponseBookingStatusEnum = {
|
|
|
2246
2388
|
|
|
2247
2389
|
export type ManagerCancelBookingResponseBookingStatusEnum = typeof ManagerCancelBookingResponseBookingStatusEnum[keyof typeof ManagerCancelBookingResponseBookingStatusEnum];
|
|
2248
2390
|
|
|
2391
|
+
/**
|
|
2392
|
+
*
|
|
2393
|
+
* @export
|
|
2394
|
+
* @interface MonthlyTurnoverResponse
|
|
2395
|
+
*/
|
|
2396
|
+
export interface MonthlyTurnoverResponse {
|
|
2397
|
+
/**
|
|
2398
|
+
*
|
|
2399
|
+
* @type {number}
|
|
2400
|
+
* @memberof MonthlyTurnoverResponse
|
|
2401
|
+
*/
|
|
2402
|
+
'year'?: number;
|
|
2403
|
+
/**
|
|
2404
|
+
*
|
|
2405
|
+
* @type {number}
|
|
2406
|
+
* @memberof MonthlyTurnoverResponse
|
|
2407
|
+
*/
|
|
2408
|
+
'month'?: number;
|
|
2409
|
+
/**
|
|
2410
|
+
*
|
|
2411
|
+
* @type {number}
|
|
2412
|
+
* @memberof MonthlyTurnoverResponse
|
|
2413
|
+
*/
|
|
2414
|
+
'totalTurnover'?: number;
|
|
2415
|
+
/**
|
|
2416
|
+
*
|
|
2417
|
+
* @type {number}
|
|
2418
|
+
* @memberof MonthlyTurnoverResponse
|
|
2419
|
+
*/
|
|
2420
|
+
'invoiceCount'?: number;
|
|
2421
|
+
/**
|
|
2422
|
+
*
|
|
2423
|
+
* @type {string}
|
|
2424
|
+
* @memberof MonthlyTurnoverResponse
|
|
2425
|
+
*/
|
|
2426
|
+
'period'?: string;
|
|
2427
|
+
}
|
|
2249
2428
|
/**
|
|
2250
2429
|
*
|
|
2251
2430
|
* @export
|
|
@@ -3596,6 +3775,62 @@ export interface UsersResponse {
|
|
|
3596
3775
|
*/
|
|
3597
3776
|
'total'?: number;
|
|
3598
3777
|
}
|
|
3778
|
+
/**
|
|
3779
|
+
*
|
|
3780
|
+
* @export
|
|
3781
|
+
* @interface YearlyTurnoverResponse
|
|
3782
|
+
*/
|
|
3783
|
+
export interface YearlyTurnoverResponse {
|
|
3784
|
+
/**
|
|
3785
|
+
*
|
|
3786
|
+
* @type {number}
|
|
3787
|
+
* @memberof YearlyTurnoverResponse
|
|
3788
|
+
*/
|
|
3789
|
+
'year'?: number;
|
|
3790
|
+
/**
|
|
3791
|
+
*
|
|
3792
|
+
* @type {number}
|
|
3793
|
+
* @memberof YearlyTurnoverResponse
|
|
3794
|
+
*/
|
|
3795
|
+
'totalTurnover'?: number;
|
|
3796
|
+
/**
|
|
3797
|
+
*
|
|
3798
|
+
* @type {number}
|
|
3799
|
+
* @memberof YearlyTurnoverResponse
|
|
3800
|
+
*/
|
|
3801
|
+
'totalInvoices'?: number;
|
|
3802
|
+
/**
|
|
3803
|
+
*
|
|
3804
|
+
* @type {Array<YearlyTurnoverResponseMonthlyBreakdownInner>}
|
|
3805
|
+
* @memberof YearlyTurnoverResponse
|
|
3806
|
+
*/
|
|
3807
|
+
'monthlyBreakdown'?: Array<YearlyTurnoverResponseMonthlyBreakdownInner>;
|
|
3808
|
+
}
|
|
3809
|
+
/**
|
|
3810
|
+
*
|
|
3811
|
+
* @export
|
|
3812
|
+
* @interface YearlyTurnoverResponseMonthlyBreakdownInner
|
|
3813
|
+
*/
|
|
3814
|
+
export interface YearlyTurnoverResponseMonthlyBreakdownInner {
|
|
3815
|
+
/**
|
|
3816
|
+
*
|
|
3817
|
+
* @type {number}
|
|
3818
|
+
* @memberof YearlyTurnoverResponseMonthlyBreakdownInner
|
|
3819
|
+
*/
|
|
3820
|
+
'month'?: number;
|
|
3821
|
+
/**
|
|
3822
|
+
*
|
|
3823
|
+
* @type {number}
|
|
3824
|
+
* @memberof YearlyTurnoverResponseMonthlyBreakdownInner
|
|
3825
|
+
*/
|
|
3826
|
+
'monthlyTurnover'?: number;
|
|
3827
|
+
/**
|
|
3828
|
+
*
|
|
3829
|
+
* @type {number}
|
|
3830
|
+
* @memberof YearlyTurnoverResponseMonthlyBreakdownInner
|
|
3831
|
+
*/
|
|
3832
|
+
'invoiceCount'?: number;
|
|
3833
|
+
}
|
|
3599
3834
|
|
|
3600
3835
|
/**
|
|
3601
3836
|
* AdminClubSlotsApi - axios parameter creator
|
|
@@ -3903,41 +4138,347 @@ export class AdminClubsApi extends BaseAPI {
|
|
|
3903
4138
|
return AdminClubsApiFp(this.configuration).createClub(requestParameters.createClubRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3904
4139
|
}
|
|
3905
4140
|
|
|
3906
|
-
/**
|
|
3907
|
-
*
|
|
3908
|
-
* @summary Récupérer tous les clubs (Admin uniquement)
|
|
3909
|
-
* @param {*} [options] Override http request option.
|
|
3910
|
-
* @throws {RequiredError}
|
|
3911
|
-
* @memberof AdminClubsApi
|
|
3912
|
-
*/
|
|
3913
|
-
public getAllClubs(options?: RawAxiosRequestConfig) {
|
|
3914
|
-
return AdminClubsApiFp(this.configuration).getAllClubs(options).then((request) => request(this.axios, this.basePath));
|
|
3915
|
-
}
|
|
3916
|
-
}
|
|
4141
|
+
/**
|
|
4142
|
+
*
|
|
4143
|
+
* @summary Récupérer tous les clubs (Admin uniquement)
|
|
4144
|
+
* @param {*} [options] Override http request option.
|
|
4145
|
+
* @throws {RequiredError}
|
|
4146
|
+
* @memberof AdminClubsApi
|
|
4147
|
+
*/
|
|
4148
|
+
public getAllClubs(options?: RawAxiosRequestConfig) {
|
|
4149
|
+
return AdminClubsApiFp(this.configuration).getAllClubs(options).then((request) => request(this.axios, this.basePath));
|
|
4150
|
+
}
|
|
4151
|
+
}
|
|
4152
|
+
|
|
4153
|
+
|
|
4154
|
+
|
|
4155
|
+
/**
|
|
4156
|
+
* BookingsApi - axios parameter creator
|
|
4157
|
+
* @export
|
|
4158
|
+
*/
|
|
4159
|
+
export const BookingsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
4160
|
+
return {
|
|
4161
|
+
/**
|
|
4162
|
+
* Permet au créateur d\'une réservation de l\'annuler. Rouvre automatiquement le créneau et envoie des emails de notification à tous les participants.
|
|
4163
|
+
* @summary Annuler une réservation (créateur uniquement)
|
|
4164
|
+
* @param {string} bookingId ID MongoDB de la réservation à annuler
|
|
4165
|
+
* @param {CancelBookingRequest} cancelBookingRequest
|
|
4166
|
+
* @param {*} [options] Override http request option.
|
|
4167
|
+
* @throws {RequiredError}
|
|
4168
|
+
*/
|
|
4169
|
+
cancelBooking: async (bookingId: string, cancelBookingRequest: CancelBookingRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4170
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
4171
|
+
assertParamExists('cancelBooking', 'bookingId', bookingId)
|
|
4172
|
+
// verify required parameter 'cancelBookingRequest' is not null or undefined
|
|
4173
|
+
assertParamExists('cancelBooking', 'cancelBookingRequest', cancelBookingRequest)
|
|
4174
|
+
const localVarPath = `/api/bookings/{bookingId}/cancel`
|
|
4175
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
4176
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4177
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4178
|
+
let baseOptions;
|
|
4179
|
+
if (configuration) {
|
|
4180
|
+
baseOptions = configuration.baseOptions;
|
|
4181
|
+
}
|
|
4182
|
+
|
|
4183
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
4184
|
+
const localVarHeaderParameter = {} as any;
|
|
4185
|
+
const localVarQueryParameter = {} as any;
|
|
4186
|
+
|
|
4187
|
+
// authentication bearerAuth required
|
|
4188
|
+
// http bearer authentication required
|
|
4189
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4190
|
+
|
|
4191
|
+
|
|
4192
|
+
|
|
4193
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4194
|
+
|
|
4195
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4196
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4197
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4198
|
+
localVarRequestOptions.data = serializeDataIfNeeded(cancelBookingRequest, localVarRequestOptions, configuration)
|
|
4199
|
+
|
|
4200
|
+
return {
|
|
4201
|
+
url: toPathString(localVarUrlObj),
|
|
4202
|
+
options: localVarRequestOptions,
|
|
4203
|
+
};
|
|
4204
|
+
},
|
|
4205
|
+
}
|
|
4206
|
+
};
|
|
4207
|
+
|
|
4208
|
+
/**
|
|
4209
|
+
* BookingsApi - functional programming interface
|
|
4210
|
+
* @export
|
|
4211
|
+
*/
|
|
4212
|
+
export const BookingsApiFp = function(configuration?: Configuration) {
|
|
4213
|
+
const localVarAxiosParamCreator = BookingsApiAxiosParamCreator(configuration)
|
|
4214
|
+
return {
|
|
4215
|
+
/**
|
|
4216
|
+
* Permet au créateur d\'une réservation de l\'annuler. Rouvre automatiquement le créneau et envoie des emails de notification à tous les participants.
|
|
4217
|
+
* @summary Annuler une réservation (créateur uniquement)
|
|
4218
|
+
* @param {string} bookingId ID MongoDB de la réservation à annuler
|
|
4219
|
+
* @param {CancelBookingRequest} cancelBookingRequest
|
|
4220
|
+
* @param {*} [options] Override http request option.
|
|
4221
|
+
* @throws {RequiredError}
|
|
4222
|
+
*/
|
|
4223
|
+
async cancelBooking(bookingId: string, cancelBookingRequest: CancelBookingRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CancelBookingResponse>> {
|
|
4224
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.cancelBooking(bookingId, cancelBookingRequest, options);
|
|
4225
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4226
|
+
const localVarOperationServerBasePath = operationServerMap['BookingsApi.cancelBooking']?.[localVarOperationServerIndex]?.url;
|
|
4227
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4228
|
+
},
|
|
4229
|
+
}
|
|
4230
|
+
};
|
|
4231
|
+
|
|
4232
|
+
/**
|
|
4233
|
+
* BookingsApi - factory interface
|
|
4234
|
+
* @export
|
|
4235
|
+
*/
|
|
4236
|
+
export const BookingsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
4237
|
+
const localVarFp = BookingsApiFp(configuration)
|
|
4238
|
+
return {
|
|
4239
|
+
/**
|
|
4240
|
+
* Permet au créateur d\'une réservation de l\'annuler. Rouvre automatiquement le créneau et envoie des emails de notification à tous les participants.
|
|
4241
|
+
* @summary Annuler une réservation (créateur uniquement)
|
|
4242
|
+
* @param {BookingsApiCancelBookingRequest} requestParameters Request parameters.
|
|
4243
|
+
* @param {*} [options] Override http request option.
|
|
4244
|
+
* @throws {RequiredError}
|
|
4245
|
+
*/
|
|
4246
|
+
cancelBooking(requestParameters: BookingsApiCancelBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<CancelBookingResponse> {
|
|
4247
|
+
return localVarFp.cancelBooking(requestParameters.bookingId, requestParameters.cancelBookingRequest, options).then((request) => request(axios, basePath));
|
|
4248
|
+
},
|
|
4249
|
+
};
|
|
4250
|
+
};
|
|
4251
|
+
|
|
4252
|
+
/**
|
|
4253
|
+
* Request parameters for cancelBooking operation in BookingsApi.
|
|
4254
|
+
* @export
|
|
4255
|
+
* @interface BookingsApiCancelBookingRequest
|
|
4256
|
+
*/
|
|
4257
|
+
export interface BookingsApiCancelBookingRequest {
|
|
4258
|
+
/**
|
|
4259
|
+
* ID MongoDB de la réservation à annuler
|
|
4260
|
+
* @type {string}
|
|
4261
|
+
* @memberof BookingsApiCancelBooking
|
|
4262
|
+
*/
|
|
4263
|
+
readonly bookingId: string
|
|
4264
|
+
|
|
4265
|
+
/**
|
|
4266
|
+
*
|
|
4267
|
+
* @type {CancelBookingRequest}
|
|
4268
|
+
* @memberof BookingsApiCancelBooking
|
|
4269
|
+
*/
|
|
4270
|
+
readonly cancelBookingRequest: CancelBookingRequest
|
|
4271
|
+
}
|
|
4272
|
+
|
|
4273
|
+
/**
|
|
4274
|
+
* BookingsApi - object-oriented interface
|
|
4275
|
+
* @export
|
|
4276
|
+
* @class BookingsApi
|
|
4277
|
+
* @extends {BaseAPI}
|
|
4278
|
+
*/
|
|
4279
|
+
export class BookingsApi extends BaseAPI {
|
|
4280
|
+
/**
|
|
4281
|
+
* Permet au créateur d\'une réservation de l\'annuler. Rouvre automatiquement le créneau et envoie des emails de notification à tous les participants.
|
|
4282
|
+
* @summary Annuler une réservation (créateur uniquement)
|
|
4283
|
+
* @param {BookingsApiCancelBookingRequest} requestParameters Request parameters.
|
|
4284
|
+
* @param {*} [options] Override http request option.
|
|
4285
|
+
* @throws {RequiredError}
|
|
4286
|
+
* @memberof BookingsApi
|
|
4287
|
+
*/
|
|
4288
|
+
public cancelBooking(requestParameters: BookingsApiCancelBookingRequest, options?: RawAxiosRequestConfig) {
|
|
4289
|
+
return BookingsApiFp(this.configuration).cancelBooking(requestParameters.bookingId, requestParameters.cancelBookingRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4290
|
+
}
|
|
4291
|
+
}
|
|
4292
|
+
|
|
4293
|
+
|
|
4294
|
+
|
|
4295
|
+
/**
|
|
4296
|
+
* ClubAnalyticsApi - axios parameter creator
|
|
4297
|
+
* @export
|
|
4298
|
+
*/
|
|
4299
|
+
export const ClubAnalyticsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
4300
|
+
return {
|
|
4301
|
+
/**
|
|
4302
|
+
*
|
|
4303
|
+
* @summary Chiffre d\'affaires quotidien
|
|
4304
|
+
* @param {string} id ID du club
|
|
4305
|
+
* @param {string} date Date (format YYYY-MM-DD)
|
|
4306
|
+
* @param {*} [options] Override http request option.
|
|
4307
|
+
* @throws {RequiredError}
|
|
4308
|
+
*/
|
|
4309
|
+
getDailyTurnOver: async (id: string, date: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4310
|
+
// verify required parameter 'id' is not null or undefined
|
|
4311
|
+
assertParamExists('getDailyTurnOver', 'id', id)
|
|
4312
|
+
// verify required parameter 'date' is not null or undefined
|
|
4313
|
+
assertParamExists('getDailyTurnOver', 'date', date)
|
|
4314
|
+
const localVarPath = `/api/clubs/{id}/turnover/daily`
|
|
4315
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4316
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4317
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4318
|
+
let baseOptions;
|
|
4319
|
+
if (configuration) {
|
|
4320
|
+
baseOptions = configuration.baseOptions;
|
|
4321
|
+
}
|
|
4322
|
+
|
|
4323
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4324
|
+
const localVarHeaderParameter = {} as any;
|
|
4325
|
+
const localVarQueryParameter = {} as any;
|
|
4326
|
+
|
|
4327
|
+
// authentication bearerAuth required
|
|
4328
|
+
// http bearer authentication required
|
|
4329
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4330
|
+
|
|
4331
|
+
if (date !== undefined) {
|
|
4332
|
+
localVarQueryParameter['date'] = (date as any instanceof Date) ?
|
|
4333
|
+
(date as any).toISOString().substring(0,10) :
|
|
4334
|
+
date;
|
|
4335
|
+
}
|
|
4336
|
+
|
|
4337
|
+
|
|
4338
|
+
|
|
4339
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4340
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4341
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4342
|
+
|
|
4343
|
+
return {
|
|
4344
|
+
url: toPathString(localVarUrlObj),
|
|
4345
|
+
options: localVarRequestOptions,
|
|
4346
|
+
};
|
|
4347
|
+
},
|
|
4348
|
+
/**
|
|
4349
|
+
*
|
|
4350
|
+
* @summary Récupérer les factures du club
|
|
4351
|
+
* @param {string} id ID du club
|
|
4352
|
+
* @param {number} [page] Numéro de page
|
|
4353
|
+
* @param {number} [limit] Nombre d\'éléments par page
|
|
4354
|
+
* @param {GetInvoicesStatusEnum} [status] Filtrer par statut
|
|
4355
|
+
* @param {string} [startDate] Date de début (ISO format)
|
|
4356
|
+
* @param {string} [endDate] Date de fin (ISO format)
|
|
4357
|
+
* @param {*} [options] Override http request option.
|
|
4358
|
+
* @throws {RequiredError}
|
|
4359
|
+
*/
|
|
4360
|
+
getInvoices: async (id: string, page?: number, limit?: number, status?: GetInvoicesStatusEnum, startDate?: string, endDate?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4361
|
+
// verify required parameter 'id' is not null or undefined
|
|
4362
|
+
assertParamExists('getInvoices', 'id', id)
|
|
4363
|
+
const localVarPath = `/api/clubs/{id}/invoices`
|
|
4364
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4365
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4366
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4367
|
+
let baseOptions;
|
|
4368
|
+
if (configuration) {
|
|
4369
|
+
baseOptions = configuration.baseOptions;
|
|
4370
|
+
}
|
|
4371
|
+
|
|
4372
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4373
|
+
const localVarHeaderParameter = {} as any;
|
|
4374
|
+
const localVarQueryParameter = {} as any;
|
|
4375
|
+
|
|
4376
|
+
// authentication bearerAuth required
|
|
4377
|
+
// http bearer authentication required
|
|
4378
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4379
|
+
|
|
4380
|
+
if (page !== undefined) {
|
|
4381
|
+
localVarQueryParameter['page'] = page;
|
|
4382
|
+
}
|
|
4383
|
+
|
|
4384
|
+
if (limit !== undefined) {
|
|
4385
|
+
localVarQueryParameter['limit'] = limit;
|
|
4386
|
+
}
|
|
4387
|
+
|
|
4388
|
+
if (status !== undefined) {
|
|
4389
|
+
localVarQueryParameter['status'] = status;
|
|
4390
|
+
}
|
|
4391
|
+
|
|
4392
|
+
if (startDate !== undefined) {
|
|
4393
|
+
localVarQueryParameter['startDate'] = (startDate as any instanceof Date) ?
|
|
4394
|
+
(startDate as any).toISOString() :
|
|
4395
|
+
startDate;
|
|
4396
|
+
}
|
|
4397
|
+
|
|
4398
|
+
if (endDate !== undefined) {
|
|
4399
|
+
localVarQueryParameter['endDate'] = (endDate as any instanceof Date) ?
|
|
4400
|
+
(endDate as any).toISOString() :
|
|
4401
|
+
endDate;
|
|
4402
|
+
}
|
|
4403
|
+
|
|
4404
|
+
|
|
4405
|
+
|
|
4406
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4407
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4408
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4409
|
+
|
|
4410
|
+
return {
|
|
4411
|
+
url: toPathString(localVarUrlObj),
|
|
4412
|
+
options: localVarRequestOptions,
|
|
4413
|
+
};
|
|
4414
|
+
},
|
|
4415
|
+
/**
|
|
4416
|
+
*
|
|
4417
|
+
* @summary Chiffre d\'affaires mensuel
|
|
4418
|
+
* @param {string} id ID du club
|
|
4419
|
+
* @param {number} year Année
|
|
4420
|
+
* @param {number} month Mois (1-12)
|
|
4421
|
+
* @param {*} [options] Override http request option.
|
|
4422
|
+
* @throws {RequiredError}
|
|
4423
|
+
*/
|
|
4424
|
+
getMonthlyTurnOver: async (id: string, year: number, month: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4425
|
+
// verify required parameter 'id' is not null or undefined
|
|
4426
|
+
assertParamExists('getMonthlyTurnOver', 'id', id)
|
|
4427
|
+
// verify required parameter 'year' is not null or undefined
|
|
4428
|
+
assertParamExists('getMonthlyTurnOver', 'year', year)
|
|
4429
|
+
// verify required parameter 'month' is not null or undefined
|
|
4430
|
+
assertParamExists('getMonthlyTurnOver', 'month', month)
|
|
4431
|
+
const localVarPath = `/api/clubs/{id}/turnover/monthly`
|
|
4432
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4433
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4434
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4435
|
+
let baseOptions;
|
|
4436
|
+
if (configuration) {
|
|
4437
|
+
baseOptions = configuration.baseOptions;
|
|
4438
|
+
}
|
|
4439
|
+
|
|
4440
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4441
|
+
const localVarHeaderParameter = {} as any;
|
|
4442
|
+
const localVarQueryParameter = {} as any;
|
|
4443
|
+
|
|
4444
|
+
// authentication bearerAuth required
|
|
4445
|
+
// http bearer authentication required
|
|
4446
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4447
|
+
|
|
4448
|
+
if (year !== undefined) {
|
|
4449
|
+
localVarQueryParameter['year'] = year;
|
|
4450
|
+
}
|
|
3917
4451
|
|
|
4452
|
+
if (month !== undefined) {
|
|
4453
|
+
localVarQueryParameter['month'] = month;
|
|
4454
|
+
}
|
|
3918
4455
|
|
|
3919
4456
|
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
|
|
3925
|
-
|
|
4457
|
+
|
|
4458
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4459
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4460
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4461
|
+
|
|
4462
|
+
return {
|
|
4463
|
+
url: toPathString(localVarUrlObj),
|
|
4464
|
+
options: localVarRequestOptions,
|
|
4465
|
+
};
|
|
4466
|
+
},
|
|
3926
4467
|
/**
|
|
3927
|
-
*
|
|
3928
|
-
* @summary
|
|
3929
|
-
* @param {string}
|
|
3930
|
-
* @param {
|
|
4468
|
+
*
|
|
4469
|
+
* @summary Chiffre d\'affaires annuel
|
|
4470
|
+
* @param {string} id ID du club
|
|
4471
|
+
* @param {number} year Année
|
|
3931
4472
|
* @param {*} [options] Override http request option.
|
|
3932
4473
|
* @throws {RequiredError}
|
|
3933
4474
|
*/
|
|
3934
|
-
|
|
3935
|
-
// verify required parameter '
|
|
3936
|
-
assertParamExists('
|
|
3937
|
-
// verify required parameter '
|
|
3938
|
-
assertParamExists('
|
|
3939
|
-
const localVarPath = `/api/
|
|
3940
|
-
.replace(`{${"
|
|
4475
|
+
getYearlyTurnOver: async (id: string, year: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4476
|
+
// verify required parameter 'id' is not null or undefined
|
|
4477
|
+
assertParamExists('getYearlyTurnOver', 'id', id)
|
|
4478
|
+
// verify required parameter 'year' is not null or undefined
|
|
4479
|
+
assertParamExists('getYearlyTurnOver', 'year', year)
|
|
4480
|
+
const localVarPath = `/api/clubs/{id}/turnover/yearly`
|
|
4481
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3941
4482
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3942
4483
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3943
4484
|
let baseOptions;
|
|
@@ -3945,7 +4486,7 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
3945
4486
|
baseOptions = configuration.baseOptions;
|
|
3946
4487
|
}
|
|
3947
4488
|
|
|
3948
|
-
const localVarRequestOptions = { method: '
|
|
4489
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3949
4490
|
const localVarHeaderParameter = {} as any;
|
|
3950
4491
|
const localVarQueryParameter = {} as any;
|
|
3951
4492
|
|
|
@@ -3953,14 +4494,15 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
3953
4494
|
// http bearer authentication required
|
|
3954
4495
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3955
4496
|
|
|
4497
|
+
if (year !== undefined) {
|
|
4498
|
+
localVarQueryParameter['year'] = year;
|
|
4499
|
+
}
|
|
4500
|
+
|
|
3956
4501
|
|
|
3957
4502
|
|
|
3958
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3959
|
-
|
|
3960
4503
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3961
4504
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3962
4505
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3963
|
-
localVarRequestOptions.data = serializeDataIfNeeded(cancelBookingRequest, localVarRequestOptions, configuration)
|
|
3964
4506
|
|
|
3965
4507
|
return {
|
|
3966
4508
|
url: toPathString(localVarUrlObj),
|
|
@@ -3971,90 +4513,313 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
3971
4513
|
};
|
|
3972
4514
|
|
|
3973
4515
|
/**
|
|
3974
|
-
*
|
|
4516
|
+
* ClubAnalyticsApi - functional programming interface
|
|
3975
4517
|
* @export
|
|
3976
4518
|
*/
|
|
3977
|
-
export const
|
|
3978
|
-
const localVarAxiosParamCreator =
|
|
4519
|
+
export const ClubAnalyticsApiFp = function(configuration?: Configuration) {
|
|
4520
|
+
const localVarAxiosParamCreator = ClubAnalyticsApiAxiosParamCreator(configuration)
|
|
3979
4521
|
return {
|
|
3980
4522
|
/**
|
|
3981
|
-
*
|
|
3982
|
-
* @summary
|
|
3983
|
-
* @param {string}
|
|
3984
|
-
* @param {
|
|
4523
|
+
*
|
|
4524
|
+
* @summary Chiffre d\'affaires quotidien
|
|
4525
|
+
* @param {string} id ID du club
|
|
4526
|
+
* @param {string} date Date (format YYYY-MM-DD)
|
|
3985
4527
|
* @param {*} [options] Override http request option.
|
|
3986
4528
|
* @throws {RequiredError}
|
|
3987
4529
|
*/
|
|
3988
|
-
async
|
|
3989
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
4530
|
+
async getDailyTurnOver(id: string, date: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DailyTurnoverResponse>> {
|
|
4531
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDailyTurnOver(id, date, options);
|
|
3990
4532
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3991
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
4533
|
+
const localVarOperationServerBasePath = operationServerMap['ClubAnalyticsApi.getDailyTurnOver']?.[localVarOperationServerIndex]?.url;
|
|
4534
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4535
|
+
},
|
|
4536
|
+
/**
|
|
4537
|
+
*
|
|
4538
|
+
* @summary Récupérer les factures du club
|
|
4539
|
+
* @param {string} id ID du club
|
|
4540
|
+
* @param {number} [page] Numéro de page
|
|
4541
|
+
* @param {number} [limit] Nombre d\'éléments par page
|
|
4542
|
+
* @param {GetInvoicesStatusEnum} [status] Filtrer par statut
|
|
4543
|
+
* @param {string} [startDate] Date de début (ISO format)
|
|
4544
|
+
* @param {string} [endDate] Date de fin (ISO format)
|
|
4545
|
+
* @param {*} [options] Override http request option.
|
|
4546
|
+
* @throws {RequiredError}
|
|
4547
|
+
*/
|
|
4548
|
+
async getInvoices(id: string, page?: number, limit?: number, status?: GetInvoicesStatusEnum, startDate?: string, endDate?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InvoicesResponse>> {
|
|
4549
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getInvoices(id, page, limit, status, startDate, endDate, options);
|
|
4550
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4551
|
+
const localVarOperationServerBasePath = operationServerMap['ClubAnalyticsApi.getInvoices']?.[localVarOperationServerIndex]?.url;
|
|
4552
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4553
|
+
},
|
|
4554
|
+
/**
|
|
4555
|
+
*
|
|
4556
|
+
* @summary Chiffre d\'affaires mensuel
|
|
4557
|
+
* @param {string} id ID du club
|
|
4558
|
+
* @param {number} year Année
|
|
4559
|
+
* @param {number} month Mois (1-12)
|
|
4560
|
+
* @param {*} [options] Override http request option.
|
|
4561
|
+
* @throws {RequiredError}
|
|
4562
|
+
*/
|
|
4563
|
+
async getMonthlyTurnOver(id: string, year: number, month: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MonthlyTurnoverResponse>> {
|
|
4564
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getMonthlyTurnOver(id, year, month, options);
|
|
4565
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4566
|
+
const localVarOperationServerBasePath = operationServerMap['ClubAnalyticsApi.getMonthlyTurnOver']?.[localVarOperationServerIndex]?.url;
|
|
4567
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4568
|
+
},
|
|
4569
|
+
/**
|
|
4570
|
+
*
|
|
4571
|
+
* @summary Chiffre d\'affaires annuel
|
|
4572
|
+
* @param {string} id ID du club
|
|
4573
|
+
* @param {number} year Année
|
|
4574
|
+
* @param {*} [options] Override http request option.
|
|
4575
|
+
* @throws {RequiredError}
|
|
4576
|
+
*/
|
|
4577
|
+
async getYearlyTurnOver(id: string, year: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<YearlyTurnoverResponse>> {
|
|
4578
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getYearlyTurnOver(id, year, options);
|
|
4579
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4580
|
+
const localVarOperationServerBasePath = operationServerMap['ClubAnalyticsApi.getYearlyTurnOver']?.[localVarOperationServerIndex]?.url;
|
|
3992
4581
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3993
4582
|
},
|
|
3994
4583
|
}
|
|
3995
4584
|
};
|
|
3996
4585
|
|
|
3997
4586
|
/**
|
|
3998
|
-
*
|
|
4587
|
+
* ClubAnalyticsApi - factory interface
|
|
3999
4588
|
* @export
|
|
4000
4589
|
*/
|
|
4001
|
-
export const
|
|
4002
|
-
const localVarFp =
|
|
4590
|
+
export const ClubAnalyticsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
4591
|
+
const localVarFp = ClubAnalyticsApiFp(configuration)
|
|
4003
4592
|
return {
|
|
4004
4593
|
/**
|
|
4005
|
-
*
|
|
4006
|
-
* @summary
|
|
4007
|
-
* @param {
|
|
4594
|
+
*
|
|
4595
|
+
* @summary Chiffre d\'affaires quotidien
|
|
4596
|
+
* @param {ClubAnalyticsApiGetDailyTurnOverRequest} requestParameters Request parameters.
|
|
4008
4597
|
* @param {*} [options] Override http request option.
|
|
4009
4598
|
* @throws {RequiredError}
|
|
4010
4599
|
*/
|
|
4011
|
-
|
|
4012
|
-
return localVarFp.
|
|
4600
|
+
getDailyTurnOver(requestParameters: ClubAnalyticsApiGetDailyTurnOverRequest, options?: RawAxiosRequestConfig): AxiosPromise<DailyTurnoverResponse> {
|
|
4601
|
+
return localVarFp.getDailyTurnOver(requestParameters.id, requestParameters.date, options).then((request) => request(axios, basePath));
|
|
4602
|
+
},
|
|
4603
|
+
/**
|
|
4604
|
+
*
|
|
4605
|
+
* @summary Récupérer les factures du club
|
|
4606
|
+
* @param {ClubAnalyticsApiGetInvoicesRequest} requestParameters Request parameters.
|
|
4607
|
+
* @param {*} [options] Override http request option.
|
|
4608
|
+
* @throws {RequiredError}
|
|
4609
|
+
*/
|
|
4610
|
+
getInvoices(requestParameters: ClubAnalyticsApiGetInvoicesRequest, options?: RawAxiosRequestConfig): AxiosPromise<InvoicesResponse> {
|
|
4611
|
+
return localVarFp.getInvoices(requestParameters.id, requestParameters.page, requestParameters.limit, requestParameters.status, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(axios, basePath));
|
|
4612
|
+
},
|
|
4613
|
+
/**
|
|
4614
|
+
*
|
|
4615
|
+
* @summary Chiffre d\'affaires mensuel
|
|
4616
|
+
* @param {ClubAnalyticsApiGetMonthlyTurnOverRequest} requestParameters Request parameters.
|
|
4617
|
+
* @param {*} [options] Override http request option.
|
|
4618
|
+
* @throws {RequiredError}
|
|
4619
|
+
*/
|
|
4620
|
+
getMonthlyTurnOver(requestParameters: ClubAnalyticsApiGetMonthlyTurnOverRequest, options?: RawAxiosRequestConfig): AxiosPromise<MonthlyTurnoverResponse> {
|
|
4621
|
+
return localVarFp.getMonthlyTurnOver(requestParameters.id, requestParameters.year, requestParameters.month, options).then((request) => request(axios, basePath));
|
|
4622
|
+
},
|
|
4623
|
+
/**
|
|
4624
|
+
*
|
|
4625
|
+
* @summary Chiffre d\'affaires annuel
|
|
4626
|
+
* @param {ClubAnalyticsApiGetYearlyTurnOverRequest} requestParameters Request parameters.
|
|
4627
|
+
* @param {*} [options] Override http request option.
|
|
4628
|
+
* @throws {RequiredError}
|
|
4629
|
+
*/
|
|
4630
|
+
getYearlyTurnOver(requestParameters: ClubAnalyticsApiGetYearlyTurnOverRequest, options?: RawAxiosRequestConfig): AxiosPromise<YearlyTurnoverResponse> {
|
|
4631
|
+
return localVarFp.getYearlyTurnOver(requestParameters.id, requestParameters.year, options).then((request) => request(axios, basePath));
|
|
4013
4632
|
},
|
|
4014
4633
|
};
|
|
4015
4634
|
};
|
|
4016
4635
|
|
|
4017
4636
|
/**
|
|
4018
|
-
* Request parameters for
|
|
4637
|
+
* Request parameters for getDailyTurnOver operation in ClubAnalyticsApi.
|
|
4019
4638
|
* @export
|
|
4020
|
-
* @interface
|
|
4639
|
+
* @interface ClubAnalyticsApiGetDailyTurnOverRequest
|
|
4021
4640
|
*/
|
|
4022
|
-
export interface
|
|
4641
|
+
export interface ClubAnalyticsApiGetDailyTurnOverRequest {
|
|
4023
4642
|
/**
|
|
4024
|
-
* ID
|
|
4643
|
+
* ID du club
|
|
4025
4644
|
* @type {string}
|
|
4026
|
-
* @memberof
|
|
4645
|
+
* @memberof ClubAnalyticsApiGetDailyTurnOver
|
|
4027
4646
|
*/
|
|
4028
|
-
readonly
|
|
4647
|
+
readonly id: string
|
|
4029
4648
|
|
|
4030
4649
|
/**
|
|
4031
|
-
*
|
|
4032
|
-
* @type {
|
|
4033
|
-
* @memberof
|
|
4650
|
+
* Date (format YYYY-MM-DD)
|
|
4651
|
+
* @type {string}
|
|
4652
|
+
* @memberof ClubAnalyticsApiGetDailyTurnOver
|
|
4034
4653
|
*/
|
|
4035
|
-
readonly
|
|
4654
|
+
readonly date: string
|
|
4036
4655
|
}
|
|
4037
4656
|
|
|
4038
4657
|
/**
|
|
4039
|
-
*
|
|
4658
|
+
* Request parameters for getInvoices operation in ClubAnalyticsApi.
|
|
4040
4659
|
* @export
|
|
4041
|
-
* @
|
|
4660
|
+
* @interface ClubAnalyticsApiGetInvoicesRequest
|
|
4661
|
+
*/
|
|
4662
|
+
export interface ClubAnalyticsApiGetInvoicesRequest {
|
|
4663
|
+
/**
|
|
4664
|
+
* ID du club
|
|
4665
|
+
* @type {string}
|
|
4666
|
+
* @memberof ClubAnalyticsApiGetInvoices
|
|
4667
|
+
*/
|
|
4668
|
+
readonly id: string
|
|
4669
|
+
|
|
4670
|
+
/**
|
|
4671
|
+
* Numéro de page
|
|
4672
|
+
* @type {number}
|
|
4673
|
+
* @memberof ClubAnalyticsApiGetInvoices
|
|
4674
|
+
*/
|
|
4675
|
+
readonly page?: number
|
|
4676
|
+
|
|
4677
|
+
/**
|
|
4678
|
+
* Nombre d\'éléments par page
|
|
4679
|
+
* @type {number}
|
|
4680
|
+
* @memberof ClubAnalyticsApiGetInvoices
|
|
4681
|
+
*/
|
|
4682
|
+
readonly limit?: number
|
|
4683
|
+
|
|
4684
|
+
/**
|
|
4685
|
+
* Filtrer par statut
|
|
4686
|
+
* @type {'pending' | 'paid' | 'failed' | 'authorized' | 'canceled' | 'expired'}
|
|
4687
|
+
* @memberof ClubAnalyticsApiGetInvoices
|
|
4688
|
+
*/
|
|
4689
|
+
readonly status?: GetInvoicesStatusEnum
|
|
4690
|
+
|
|
4691
|
+
/**
|
|
4692
|
+
* Date de début (ISO format)
|
|
4693
|
+
* @type {string}
|
|
4694
|
+
* @memberof ClubAnalyticsApiGetInvoices
|
|
4695
|
+
*/
|
|
4696
|
+
readonly startDate?: string
|
|
4697
|
+
|
|
4698
|
+
/**
|
|
4699
|
+
* Date de fin (ISO format)
|
|
4700
|
+
* @type {string}
|
|
4701
|
+
* @memberof ClubAnalyticsApiGetInvoices
|
|
4702
|
+
*/
|
|
4703
|
+
readonly endDate?: string
|
|
4704
|
+
}
|
|
4705
|
+
|
|
4706
|
+
/**
|
|
4707
|
+
* Request parameters for getMonthlyTurnOver operation in ClubAnalyticsApi.
|
|
4708
|
+
* @export
|
|
4709
|
+
* @interface ClubAnalyticsApiGetMonthlyTurnOverRequest
|
|
4710
|
+
*/
|
|
4711
|
+
export interface ClubAnalyticsApiGetMonthlyTurnOverRequest {
|
|
4712
|
+
/**
|
|
4713
|
+
* ID du club
|
|
4714
|
+
* @type {string}
|
|
4715
|
+
* @memberof ClubAnalyticsApiGetMonthlyTurnOver
|
|
4716
|
+
*/
|
|
4717
|
+
readonly id: string
|
|
4718
|
+
|
|
4719
|
+
/**
|
|
4720
|
+
* Année
|
|
4721
|
+
* @type {number}
|
|
4722
|
+
* @memberof ClubAnalyticsApiGetMonthlyTurnOver
|
|
4723
|
+
*/
|
|
4724
|
+
readonly year: number
|
|
4725
|
+
|
|
4726
|
+
/**
|
|
4727
|
+
* Mois (1-12)
|
|
4728
|
+
* @type {number}
|
|
4729
|
+
* @memberof ClubAnalyticsApiGetMonthlyTurnOver
|
|
4730
|
+
*/
|
|
4731
|
+
readonly month: number
|
|
4732
|
+
}
|
|
4733
|
+
|
|
4734
|
+
/**
|
|
4735
|
+
* Request parameters for getYearlyTurnOver operation in ClubAnalyticsApi.
|
|
4736
|
+
* @export
|
|
4737
|
+
* @interface ClubAnalyticsApiGetYearlyTurnOverRequest
|
|
4738
|
+
*/
|
|
4739
|
+
export interface ClubAnalyticsApiGetYearlyTurnOverRequest {
|
|
4740
|
+
/**
|
|
4741
|
+
* ID du club
|
|
4742
|
+
* @type {string}
|
|
4743
|
+
* @memberof ClubAnalyticsApiGetYearlyTurnOver
|
|
4744
|
+
*/
|
|
4745
|
+
readonly id: string
|
|
4746
|
+
|
|
4747
|
+
/**
|
|
4748
|
+
* Année
|
|
4749
|
+
* @type {number}
|
|
4750
|
+
* @memberof ClubAnalyticsApiGetYearlyTurnOver
|
|
4751
|
+
*/
|
|
4752
|
+
readonly year: number
|
|
4753
|
+
}
|
|
4754
|
+
|
|
4755
|
+
/**
|
|
4756
|
+
* ClubAnalyticsApi - object-oriented interface
|
|
4757
|
+
* @export
|
|
4758
|
+
* @class ClubAnalyticsApi
|
|
4042
4759
|
* @extends {BaseAPI}
|
|
4043
4760
|
*/
|
|
4044
|
-
export class
|
|
4761
|
+
export class ClubAnalyticsApi extends BaseAPI {
|
|
4045
4762
|
/**
|
|
4046
|
-
*
|
|
4047
|
-
* @summary
|
|
4048
|
-
* @param {
|
|
4763
|
+
*
|
|
4764
|
+
* @summary Chiffre d\'affaires quotidien
|
|
4765
|
+
* @param {ClubAnalyticsApiGetDailyTurnOverRequest} requestParameters Request parameters.
|
|
4049
4766
|
* @param {*} [options] Override http request option.
|
|
4050
4767
|
* @throws {RequiredError}
|
|
4051
|
-
* @memberof
|
|
4768
|
+
* @memberof ClubAnalyticsApi
|
|
4052
4769
|
*/
|
|
4053
|
-
public
|
|
4054
|
-
return
|
|
4770
|
+
public getDailyTurnOver(requestParameters: ClubAnalyticsApiGetDailyTurnOverRequest, options?: RawAxiosRequestConfig) {
|
|
4771
|
+
return ClubAnalyticsApiFp(this.configuration).getDailyTurnOver(requestParameters.id, requestParameters.date, options).then((request) => request(this.axios, this.basePath));
|
|
4772
|
+
}
|
|
4773
|
+
|
|
4774
|
+
/**
|
|
4775
|
+
*
|
|
4776
|
+
* @summary Récupérer les factures du club
|
|
4777
|
+
* @param {ClubAnalyticsApiGetInvoicesRequest} requestParameters Request parameters.
|
|
4778
|
+
* @param {*} [options] Override http request option.
|
|
4779
|
+
* @throws {RequiredError}
|
|
4780
|
+
* @memberof ClubAnalyticsApi
|
|
4781
|
+
*/
|
|
4782
|
+
public getInvoices(requestParameters: ClubAnalyticsApiGetInvoicesRequest, options?: RawAxiosRequestConfig) {
|
|
4783
|
+
return ClubAnalyticsApiFp(this.configuration).getInvoices(requestParameters.id, requestParameters.page, requestParameters.limit, requestParameters.status, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(this.axios, this.basePath));
|
|
4784
|
+
}
|
|
4785
|
+
|
|
4786
|
+
/**
|
|
4787
|
+
*
|
|
4788
|
+
* @summary Chiffre d\'affaires mensuel
|
|
4789
|
+
* @param {ClubAnalyticsApiGetMonthlyTurnOverRequest} requestParameters Request parameters.
|
|
4790
|
+
* @param {*} [options] Override http request option.
|
|
4791
|
+
* @throws {RequiredError}
|
|
4792
|
+
* @memberof ClubAnalyticsApi
|
|
4793
|
+
*/
|
|
4794
|
+
public getMonthlyTurnOver(requestParameters: ClubAnalyticsApiGetMonthlyTurnOverRequest, options?: RawAxiosRequestConfig) {
|
|
4795
|
+
return ClubAnalyticsApiFp(this.configuration).getMonthlyTurnOver(requestParameters.id, requestParameters.year, requestParameters.month, options).then((request) => request(this.axios, this.basePath));
|
|
4796
|
+
}
|
|
4797
|
+
|
|
4798
|
+
/**
|
|
4799
|
+
*
|
|
4800
|
+
* @summary Chiffre d\'affaires annuel
|
|
4801
|
+
* @param {ClubAnalyticsApiGetYearlyTurnOverRequest} requestParameters Request parameters.
|
|
4802
|
+
* @param {*} [options] Override http request option.
|
|
4803
|
+
* @throws {RequiredError}
|
|
4804
|
+
* @memberof ClubAnalyticsApi
|
|
4805
|
+
*/
|
|
4806
|
+
public getYearlyTurnOver(requestParameters: ClubAnalyticsApiGetYearlyTurnOverRequest, options?: RawAxiosRequestConfig) {
|
|
4807
|
+
return ClubAnalyticsApiFp(this.configuration).getYearlyTurnOver(requestParameters.id, requestParameters.year, options).then((request) => request(this.axios, this.basePath));
|
|
4055
4808
|
}
|
|
4056
4809
|
}
|
|
4057
4810
|
|
|
4811
|
+
/**
|
|
4812
|
+
* @export
|
|
4813
|
+
*/
|
|
4814
|
+
export const GetInvoicesStatusEnum = {
|
|
4815
|
+
Pending: 'pending',
|
|
4816
|
+
Paid: 'paid',
|
|
4817
|
+
Failed: 'failed',
|
|
4818
|
+
Authorized: 'authorized',
|
|
4819
|
+
Canceled: 'canceled',
|
|
4820
|
+
Expired: 'expired'
|
|
4821
|
+
} as const;
|
|
4822
|
+
export type GetInvoicesStatusEnum = typeof GetInvoicesStatusEnum[keyof typeof GetInvoicesStatusEnum];
|
|
4058
4823
|
|
|
4059
4824
|
|
|
4060
4825
|
/**
|
|
@@ -6983,15 +7748,11 @@ export const StaffClubAnalyticsApiAxiosParamCreator = function (configuration?:
|
|
|
6983
7748
|
/**
|
|
6984
7749
|
*
|
|
6985
7750
|
* @summary Get number of users subscribed to the club
|
|
6986
|
-
* @param {string} id ID du club
|
|
6987
7751
|
* @param {*} [options] Override http request option.
|
|
6988
7752
|
* @throws {RequiredError}
|
|
6989
7753
|
*/
|
|
6990
|
-
getNumberOfClubUsers: async (
|
|
6991
|
-
|
|
6992
|
-
assertParamExists('getNumberOfClubUsers', 'id', id)
|
|
6993
|
-
const localVarPath = `/api/clubs/{id}/user-count`
|
|
6994
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
7754
|
+
getNumberOfClubUsers: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7755
|
+
const localVarPath = `/api/clubs/user-count`;
|
|
6995
7756
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6996
7757
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6997
7758
|
let baseOptions;
|
|
@@ -7044,12 +7805,11 @@ export const StaffClubAnalyticsApiFp = function(configuration?: Configuration) {
|
|
|
7044
7805
|
/**
|
|
7045
7806
|
*
|
|
7046
7807
|
* @summary Get number of users subscribed to the club
|
|
7047
|
-
* @param {string} id ID du club
|
|
7048
7808
|
* @param {*} [options] Override http request option.
|
|
7049
7809
|
* @throws {RequiredError}
|
|
7050
7810
|
*/
|
|
7051
|
-
async getNumberOfClubUsers(
|
|
7052
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getNumberOfClubUsers(
|
|
7811
|
+
async getNumberOfClubUsers(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetNumberOfClubUsers200Response>> {
|
|
7812
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getNumberOfClubUsers(options);
|
|
7053
7813
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7054
7814
|
const localVarOperationServerBasePath = operationServerMap['StaffClubAnalyticsApi.getNumberOfClubUsers']?.[localVarOperationServerIndex]?.url;
|
|
7055
7815
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -7077,12 +7837,11 @@ export const StaffClubAnalyticsApiFactory = function (configuration?: Configurat
|
|
|
7077
7837
|
/**
|
|
7078
7838
|
*
|
|
7079
7839
|
* @summary Get number of users subscribed to the club
|
|
7080
|
-
* @param {StaffClubAnalyticsApiGetNumberOfClubUsersRequest} requestParameters Request parameters.
|
|
7081
7840
|
* @param {*} [options] Override http request option.
|
|
7082
7841
|
* @throws {RequiredError}
|
|
7083
7842
|
*/
|
|
7084
|
-
getNumberOfClubUsers(
|
|
7085
|
-
return localVarFp.getNumberOfClubUsers(
|
|
7843
|
+
getNumberOfClubUsers(options?: RawAxiosRequestConfig): AxiosPromise<GetNumberOfClubUsers200Response> {
|
|
7844
|
+
return localVarFp.getNumberOfClubUsers(options).then((request) => request(axios, basePath));
|
|
7086
7845
|
},
|
|
7087
7846
|
};
|
|
7088
7847
|
};
|
|
@@ -7101,20 +7860,6 @@ export interface StaffClubAnalyticsApiGetLastSixMonthsTurnoverRequest {
|
|
|
7101
7860
|
readonly id: string
|
|
7102
7861
|
}
|
|
7103
7862
|
|
|
7104
|
-
/**
|
|
7105
|
-
* Request parameters for getNumberOfClubUsers operation in StaffClubAnalyticsApi.
|
|
7106
|
-
* @export
|
|
7107
|
-
* @interface StaffClubAnalyticsApiGetNumberOfClubUsersRequest
|
|
7108
|
-
*/
|
|
7109
|
-
export interface StaffClubAnalyticsApiGetNumberOfClubUsersRequest {
|
|
7110
|
-
/**
|
|
7111
|
-
* ID du club
|
|
7112
|
-
* @type {string}
|
|
7113
|
-
* @memberof StaffClubAnalyticsApiGetNumberOfClubUsers
|
|
7114
|
-
*/
|
|
7115
|
-
readonly id: string
|
|
7116
|
-
}
|
|
7117
|
-
|
|
7118
7863
|
/**
|
|
7119
7864
|
* StaffClubAnalyticsApi - object-oriented interface
|
|
7120
7865
|
* @export
|
|
@@ -7137,13 +7882,12 @@ export class StaffClubAnalyticsApi extends BaseAPI {
|
|
|
7137
7882
|
/**
|
|
7138
7883
|
*
|
|
7139
7884
|
* @summary Get number of users subscribed to the club
|
|
7140
|
-
* @param {StaffClubAnalyticsApiGetNumberOfClubUsersRequest} requestParameters Request parameters.
|
|
7141
7885
|
* @param {*} [options] Override http request option.
|
|
7142
7886
|
* @throws {RequiredError}
|
|
7143
7887
|
* @memberof StaffClubAnalyticsApi
|
|
7144
7888
|
*/
|
|
7145
|
-
public getNumberOfClubUsers(
|
|
7146
|
-
return StaffClubAnalyticsApiFp(this.configuration).getNumberOfClubUsers(
|
|
7889
|
+
public getNumberOfClubUsers(options?: RawAxiosRequestConfig) {
|
|
7890
|
+
return StaffClubAnalyticsApiFp(this.configuration).getNumberOfClubUsers(options).then((request) => request(this.axios, this.basePath));
|
|
7147
7891
|
}
|
|
7148
7892
|
}
|
|
7149
7893
|
|
|
@@ -7284,13 +8028,10 @@ export const StaffClubSettingsApiAxiosParamCreator = function (configuration?: C
|
|
|
7284
8028
|
/**
|
|
7285
8029
|
*
|
|
7286
8030
|
* @summary Récupère les paramètres d\'un club
|
|
7287
|
-
* @param {GetClubSettingsRequest} getClubSettingsRequest
|
|
7288
8031
|
* @param {*} [options] Override http request option.
|
|
7289
8032
|
* @throws {RequiredError}
|
|
7290
8033
|
*/
|
|
7291
|
-
getClubSettings: async (
|
|
7292
|
-
// verify required parameter 'getClubSettingsRequest' is not null or undefined
|
|
7293
|
-
assertParamExists('getClubSettings', 'getClubSettingsRequest', getClubSettingsRequest)
|
|
8034
|
+
getClubSettings: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7294
8035
|
const localVarPath = `/api/club-settings`;
|
|
7295
8036
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7296
8037
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -7309,12 +8050,9 @@ export const StaffClubSettingsApiAxiosParamCreator = function (configuration?: C
|
|
|
7309
8050
|
|
|
7310
8051
|
|
|
7311
8052
|
|
|
7312
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7313
|
-
|
|
7314
8053
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7315
8054
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7316
8055
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
7317
|
-
localVarRequestOptions.data = serializeDataIfNeeded(getClubSettingsRequest, localVarRequestOptions, configuration)
|
|
7318
8056
|
|
|
7319
8057
|
return {
|
|
7320
8058
|
url: toPathString(localVarUrlObj),
|
|
@@ -7334,12 +8072,11 @@ export const StaffClubSettingsApiFp = function(configuration?: Configuration) {
|
|
|
7334
8072
|
/**
|
|
7335
8073
|
*
|
|
7336
8074
|
* @summary Récupère les paramètres d\'un club
|
|
7337
|
-
* @param {GetClubSettingsRequest} getClubSettingsRequest
|
|
7338
8075
|
* @param {*} [options] Override http request option.
|
|
7339
8076
|
* @throws {RequiredError}
|
|
7340
8077
|
*/
|
|
7341
|
-
async getClubSettings(
|
|
7342
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getClubSettings(
|
|
8078
|
+
async getClubSettings(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubSettings>> {
|
|
8079
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getClubSettings(options);
|
|
7343
8080
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7344
8081
|
const localVarOperationServerBasePath = operationServerMap['StaffClubSettingsApi.getClubSettings']?.[localVarOperationServerIndex]?.url;
|
|
7345
8082
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -7357,30 +8094,15 @@ export const StaffClubSettingsApiFactory = function (configuration?: Configurati
|
|
|
7357
8094
|
/**
|
|
7358
8095
|
*
|
|
7359
8096
|
* @summary Récupère les paramètres d\'un club
|
|
7360
|
-
* @param {StaffClubSettingsApiGetClubSettingsRequest} requestParameters Request parameters.
|
|
7361
8097
|
* @param {*} [options] Override http request option.
|
|
7362
8098
|
* @throws {RequiredError}
|
|
7363
8099
|
*/
|
|
7364
|
-
getClubSettings(
|
|
7365
|
-
return localVarFp.getClubSettings(
|
|
8100
|
+
getClubSettings(options?: RawAxiosRequestConfig): AxiosPromise<ClubSettings> {
|
|
8101
|
+
return localVarFp.getClubSettings(options).then((request) => request(axios, basePath));
|
|
7366
8102
|
},
|
|
7367
8103
|
};
|
|
7368
8104
|
};
|
|
7369
8105
|
|
|
7370
|
-
/**
|
|
7371
|
-
* Request parameters for getClubSettings operation in StaffClubSettingsApi.
|
|
7372
|
-
* @export
|
|
7373
|
-
* @interface StaffClubSettingsApiGetClubSettingsRequest
|
|
7374
|
-
*/
|
|
7375
|
-
export interface StaffClubSettingsApiGetClubSettingsRequest {
|
|
7376
|
-
/**
|
|
7377
|
-
*
|
|
7378
|
-
* @type {GetClubSettingsRequest}
|
|
7379
|
-
* @memberof StaffClubSettingsApiGetClubSettings
|
|
7380
|
-
*/
|
|
7381
|
-
readonly getClubSettingsRequest: GetClubSettingsRequest
|
|
7382
|
-
}
|
|
7383
|
-
|
|
7384
8106
|
/**
|
|
7385
8107
|
* StaffClubSettingsApi - object-oriented interface
|
|
7386
8108
|
* @export
|
|
@@ -7391,13 +8113,12 @@ export class StaffClubSettingsApi extends BaseAPI {
|
|
|
7391
8113
|
/**
|
|
7392
8114
|
*
|
|
7393
8115
|
* @summary Récupère les paramètres d\'un club
|
|
7394
|
-
* @param {StaffClubSettingsApiGetClubSettingsRequest} requestParameters Request parameters.
|
|
7395
8116
|
* @param {*} [options] Override http request option.
|
|
7396
8117
|
* @throws {RequiredError}
|
|
7397
8118
|
* @memberof StaffClubSettingsApi
|
|
7398
8119
|
*/
|
|
7399
|
-
public getClubSettings(
|
|
7400
|
-
return StaffClubSettingsApiFp(this.configuration).getClubSettings(
|
|
8120
|
+
public getClubSettings(options?: RawAxiosRequestConfig) {
|
|
8121
|
+
return StaffClubSettingsApiFp(this.configuration).getClubSettings(options).then((request) => request(this.axios, this.basePath));
|
|
7401
8122
|
}
|
|
7402
8123
|
}
|
|
7403
8124
|
|