@tennac-booking/sdk 1.0.33 → 1.0.34
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 +9 -0
- package/README.md +14 -2
- package/api.ts +874 -82
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +615 -5
- package/dist/api.js +327 -4
- 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 +615 -5
- package/dist/esm/api.js +320 -1
- 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/ActiveClub.md +2 -0
- package/docs/BookingHistoryResponse.md +22 -0
- package/docs/BookingHistoryResponseHistoryInner.md +32 -0
- package/docs/BookingsApi.md +113 -0
- package/docs/BookingsStaffWeeklyWeekIdGet200Response.md +20 -0
- package/docs/CourtWithNameResponse.md +46 -0
- package/docs/CourtsWithNameResponse.md +22 -0
- package/docs/ManagerClubCourtsApi.md +2 -2
- package/docs/PaymentStatus.md +30 -0
- package/docs/SportResponse.md +4 -0
- package/docs/UpdateUserRequestBody.md +8 -2
- package/docs/UpdateUserRequestBodyLevelBySportsInner.md +22 -0
- package/docs/UserBookingItem.md +46 -0
- package/docs/UserBookingsApi.md +46 -0
- package/docs/UserProfileApi.md +53 -0
- package/docs/UserStaffResponse.md +6 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
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.34
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -114,6 +114,12 @@ export const PaymentMethod = {
|
|
|
114
114
|
Online: 'online',
|
|
115
115
|
Onsite: 'onsite'
|
|
116
116
|
};
|
|
117
|
+
export const PaymentStatusInvoiceStatusEnum = {
|
|
118
|
+
Paid: 'paid',
|
|
119
|
+
Pending: 'pending',
|
|
120
|
+
Failed: 'failed',
|
|
121
|
+
Canceled: 'canceled'
|
|
122
|
+
};
|
|
117
123
|
/**
|
|
118
124
|
*
|
|
119
125
|
* @export
|
|
@@ -144,6 +150,188 @@ export const UpdateCourtRequestSurfaceEnum = {
|
|
|
144
150
|
Grass: 'grass',
|
|
145
151
|
Hard: 'hard'
|
|
146
152
|
};
|
|
153
|
+
export const UserBookingItemMyPaymentStatusEnum = {
|
|
154
|
+
Paid: 'paid',
|
|
155
|
+
Pending: 'pending',
|
|
156
|
+
Failed: 'failed'
|
|
157
|
+
};
|
|
158
|
+
export const UserBookingItemBookingStatusEnum = {
|
|
159
|
+
Confirmed: 'confirmed',
|
|
160
|
+
Cancelled: 'cancelled',
|
|
161
|
+
Pending: 'pending'
|
|
162
|
+
};
|
|
163
|
+
/**
|
|
164
|
+
* BookingsApi - axios parameter creator
|
|
165
|
+
* @export
|
|
166
|
+
*/
|
|
167
|
+
export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
168
|
+
return {
|
|
169
|
+
/**
|
|
170
|
+
* Retourne une liste de réservations pour une date donnée, avec les joueurs et terrains (incluant le sport) peuplés.
|
|
171
|
+
* @summary Récupérer les réservations journalières
|
|
172
|
+
* @param {string} date Date au format YYYY-MM-DD
|
|
173
|
+
* @param {*} [options] Override http request option.
|
|
174
|
+
* @throws {RequiredError}
|
|
175
|
+
*/
|
|
176
|
+
bookingsStaffDailyDateGet: (date_1, ...args_1) => __awaiter(this, [date_1, ...args_1], void 0, function* (date, options = {}) {
|
|
177
|
+
// verify required parameter 'date' is not null or undefined
|
|
178
|
+
assertParamExists('bookingsStaffDailyDateGet', 'date', date);
|
|
179
|
+
const localVarPath = `/bookings/staff/daily/{date}`
|
|
180
|
+
.replace(`{${"date"}}`, encodeURIComponent(String(date)));
|
|
181
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
182
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
183
|
+
let baseOptions;
|
|
184
|
+
if (configuration) {
|
|
185
|
+
baseOptions = configuration.baseOptions;
|
|
186
|
+
}
|
|
187
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
188
|
+
const localVarHeaderParameter = {};
|
|
189
|
+
const localVarQueryParameter = {};
|
|
190
|
+
// authentication bearerAuth required
|
|
191
|
+
// http bearer authentication required
|
|
192
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
193
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
194
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
195
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
196
|
+
return {
|
|
197
|
+
url: toPathString(localVarUrlObj),
|
|
198
|
+
options: localVarRequestOptions,
|
|
199
|
+
};
|
|
200
|
+
}),
|
|
201
|
+
/**
|
|
202
|
+
* Retourne une liste de réservations pour une semaine donnée, avec les joueurs et terrains (incluant le sport) peuplés.
|
|
203
|
+
* @summary Récupérer les réservations hebdomadaires
|
|
204
|
+
* @param {string} weekId ID de la semaine
|
|
205
|
+
* @param {*} [options] Override http request option.
|
|
206
|
+
* @throws {RequiredError}
|
|
207
|
+
*/
|
|
208
|
+
bookingsStaffWeeklyWeekIdGet: (weekId_1, ...args_1) => __awaiter(this, [weekId_1, ...args_1], void 0, function* (weekId, options = {}) {
|
|
209
|
+
// verify required parameter 'weekId' is not null or undefined
|
|
210
|
+
assertParamExists('bookingsStaffWeeklyWeekIdGet', 'weekId', weekId);
|
|
211
|
+
const localVarPath = `/bookings/staff/weekly/{weekId}`
|
|
212
|
+
.replace(`{${"weekId"}}`, encodeURIComponent(String(weekId)));
|
|
213
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
214
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
215
|
+
let baseOptions;
|
|
216
|
+
if (configuration) {
|
|
217
|
+
baseOptions = configuration.baseOptions;
|
|
218
|
+
}
|
|
219
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
220
|
+
const localVarHeaderParameter = {};
|
|
221
|
+
const localVarQueryParameter = {};
|
|
222
|
+
// authentication bearerAuth required
|
|
223
|
+
// http bearer authentication required
|
|
224
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
225
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
226
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
227
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
228
|
+
return {
|
|
229
|
+
url: toPathString(localVarUrlObj),
|
|
230
|
+
options: localVarRequestOptions,
|
|
231
|
+
};
|
|
232
|
+
}),
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
/**
|
|
236
|
+
* BookingsApi - functional programming interface
|
|
237
|
+
* @export
|
|
238
|
+
*/
|
|
239
|
+
export const BookingsApiFp = function (configuration) {
|
|
240
|
+
const localVarAxiosParamCreator = BookingsApiAxiosParamCreator(configuration);
|
|
241
|
+
return {
|
|
242
|
+
/**
|
|
243
|
+
* Retourne une liste de réservations pour une date donnée, avec les joueurs et terrains (incluant le sport) peuplés.
|
|
244
|
+
* @summary Récupérer les réservations journalières
|
|
245
|
+
* @param {string} date Date au format YYYY-MM-DD
|
|
246
|
+
* @param {*} [options] Override http request option.
|
|
247
|
+
* @throws {RequiredError}
|
|
248
|
+
*/
|
|
249
|
+
bookingsStaffDailyDateGet(date, options) {
|
|
250
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
251
|
+
var _a, _b, _c;
|
|
252
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.bookingsStaffDailyDateGet(date, options);
|
|
253
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
254
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.bookingsStaffDailyDateGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
255
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
256
|
+
});
|
|
257
|
+
},
|
|
258
|
+
/**
|
|
259
|
+
* Retourne une liste de réservations pour une semaine donnée, avec les joueurs et terrains (incluant le sport) peuplés.
|
|
260
|
+
* @summary Récupérer les réservations hebdomadaires
|
|
261
|
+
* @param {string} weekId ID de la semaine
|
|
262
|
+
* @param {*} [options] Override http request option.
|
|
263
|
+
* @throws {RequiredError}
|
|
264
|
+
*/
|
|
265
|
+
bookingsStaffWeeklyWeekIdGet(weekId, options) {
|
|
266
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
267
|
+
var _a, _b, _c;
|
|
268
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.bookingsStaffWeeklyWeekIdGet(weekId, options);
|
|
269
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
270
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.bookingsStaffWeeklyWeekIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
271
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
272
|
+
});
|
|
273
|
+
},
|
|
274
|
+
};
|
|
275
|
+
};
|
|
276
|
+
/**
|
|
277
|
+
* BookingsApi - factory interface
|
|
278
|
+
* @export
|
|
279
|
+
*/
|
|
280
|
+
export const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
281
|
+
const localVarFp = BookingsApiFp(configuration);
|
|
282
|
+
return {
|
|
283
|
+
/**
|
|
284
|
+
* Retourne une liste de réservations pour une date donnée, avec les joueurs et terrains (incluant le sport) peuplés.
|
|
285
|
+
* @summary Récupérer les réservations journalières
|
|
286
|
+
* @param {BookingsApiBookingsStaffDailyDateGetRequest} requestParameters Request parameters.
|
|
287
|
+
* @param {*} [options] Override http request option.
|
|
288
|
+
* @throws {RequiredError}
|
|
289
|
+
*/
|
|
290
|
+
bookingsStaffDailyDateGet(requestParameters, options) {
|
|
291
|
+
return localVarFp.bookingsStaffDailyDateGet(requestParameters.date, options).then((request) => request(axios, basePath));
|
|
292
|
+
},
|
|
293
|
+
/**
|
|
294
|
+
* Retourne une liste de réservations pour une semaine donnée, avec les joueurs et terrains (incluant le sport) peuplés.
|
|
295
|
+
* @summary Récupérer les réservations hebdomadaires
|
|
296
|
+
* @param {BookingsApiBookingsStaffWeeklyWeekIdGetRequest} requestParameters Request parameters.
|
|
297
|
+
* @param {*} [options] Override http request option.
|
|
298
|
+
* @throws {RequiredError}
|
|
299
|
+
*/
|
|
300
|
+
bookingsStaffWeeklyWeekIdGet(requestParameters, options) {
|
|
301
|
+
return localVarFp.bookingsStaffWeeklyWeekIdGet(requestParameters.weekId, options).then((request) => request(axios, basePath));
|
|
302
|
+
},
|
|
303
|
+
};
|
|
304
|
+
};
|
|
305
|
+
/**
|
|
306
|
+
* BookingsApi - object-oriented interface
|
|
307
|
+
* @export
|
|
308
|
+
* @class BookingsApi
|
|
309
|
+
* @extends {BaseAPI}
|
|
310
|
+
*/
|
|
311
|
+
export class BookingsApi extends BaseAPI {
|
|
312
|
+
/**
|
|
313
|
+
* Retourne une liste de réservations pour une date donnée, avec les joueurs et terrains (incluant le sport) peuplés.
|
|
314
|
+
* @summary Récupérer les réservations journalières
|
|
315
|
+
* @param {BookingsApiBookingsStaffDailyDateGetRequest} requestParameters Request parameters.
|
|
316
|
+
* @param {*} [options] Override http request option.
|
|
317
|
+
* @throws {RequiredError}
|
|
318
|
+
* @memberof BookingsApi
|
|
319
|
+
*/
|
|
320
|
+
bookingsStaffDailyDateGet(requestParameters, options) {
|
|
321
|
+
return BookingsApiFp(this.configuration).bookingsStaffDailyDateGet(requestParameters.date, options).then((request) => request(this.axios, this.basePath));
|
|
322
|
+
}
|
|
323
|
+
/**
|
|
324
|
+
* Retourne une liste de réservations pour une semaine donnée, avec les joueurs et terrains (incluant le sport) peuplés.
|
|
325
|
+
* @summary Récupérer les réservations hebdomadaires
|
|
326
|
+
* @param {BookingsApiBookingsStaffWeeklyWeekIdGetRequest} requestParameters Request parameters.
|
|
327
|
+
* @param {*} [options] Override http request option.
|
|
328
|
+
* @throws {RequiredError}
|
|
329
|
+
* @memberof BookingsApi
|
|
330
|
+
*/
|
|
331
|
+
bookingsStaffWeeklyWeekIdGet(requestParameters, options) {
|
|
332
|
+
return BookingsApiFp(this.configuration).bookingsStaffWeeklyWeekIdGet(requestParameters.weekId, options).then((request) => request(this.axios, this.basePath));
|
|
333
|
+
}
|
|
334
|
+
}
|
|
147
335
|
/**
|
|
148
336
|
* ClubAnalyticsApi - axios parameter creator
|
|
149
337
|
* @export
|
|
@@ -4449,6 +4637,34 @@ export const UserBookingsApiAxiosParamCreator = function (configuration) {
|
|
|
4449
4637
|
options: localVarRequestOptions,
|
|
4450
4638
|
};
|
|
4451
4639
|
}),
|
|
4640
|
+
/**
|
|
4641
|
+
*
|
|
4642
|
+
* @summary Récupère l\'historique des réservations de l\'utilisateur connecté
|
|
4643
|
+
* @param {*} [options] Override http request option.
|
|
4644
|
+
* @throws {RequiredError}
|
|
4645
|
+
*/
|
|
4646
|
+
getBookingHistory: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
4647
|
+
const localVarPath = `/api/users/me/booking-history`;
|
|
4648
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4649
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4650
|
+
let baseOptions;
|
|
4651
|
+
if (configuration) {
|
|
4652
|
+
baseOptions = configuration.baseOptions;
|
|
4653
|
+
}
|
|
4654
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4655
|
+
const localVarHeaderParameter = {};
|
|
4656
|
+
const localVarQueryParameter = {};
|
|
4657
|
+
// authentication bearerAuth required
|
|
4658
|
+
// http bearer authentication required
|
|
4659
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4660
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4661
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4662
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4663
|
+
return {
|
|
4664
|
+
url: toPathString(localVarUrlObj),
|
|
4665
|
+
options: localVarRequestOptions,
|
|
4666
|
+
};
|
|
4667
|
+
}),
|
|
4452
4668
|
};
|
|
4453
4669
|
};
|
|
4454
4670
|
/**
|
|
@@ -4490,6 +4706,21 @@ export const UserBookingsApiFp = function (configuration) {
|
|
|
4490
4706
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4491
4707
|
});
|
|
4492
4708
|
},
|
|
4709
|
+
/**
|
|
4710
|
+
*
|
|
4711
|
+
* @summary Récupère l\'historique des réservations de l\'utilisateur connecté
|
|
4712
|
+
* @param {*} [options] Override http request option.
|
|
4713
|
+
* @throws {RequiredError}
|
|
4714
|
+
*/
|
|
4715
|
+
getBookingHistory(options) {
|
|
4716
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4717
|
+
var _a, _b, _c;
|
|
4718
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingHistory(options);
|
|
4719
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4720
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserBookingsApi.getBookingHistory']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4721
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4722
|
+
});
|
|
4723
|
+
},
|
|
4493
4724
|
};
|
|
4494
4725
|
};
|
|
4495
4726
|
/**
|
|
@@ -4519,6 +4750,15 @@ export const UserBookingsApiFactory = function (configuration, basePath, axios)
|
|
|
4519
4750
|
createBooking(requestParameters, options) {
|
|
4520
4751
|
return localVarFp.createBooking(requestParameters.createBookingRequest, options).then((request) => request(axios, basePath));
|
|
4521
4752
|
},
|
|
4753
|
+
/**
|
|
4754
|
+
*
|
|
4755
|
+
* @summary Récupère l\'historique des réservations de l\'utilisateur connecté
|
|
4756
|
+
* @param {*} [options] Override http request option.
|
|
4757
|
+
* @throws {RequiredError}
|
|
4758
|
+
*/
|
|
4759
|
+
getBookingHistory(options) {
|
|
4760
|
+
return localVarFp.getBookingHistory(options).then((request) => request(axios, basePath));
|
|
4761
|
+
},
|
|
4522
4762
|
};
|
|
4523
4763
|
};
|
|
4524
4764
|
/**
|
|
@@ -4550,6 +4790,16 @@ export class UserBookingsApi extends BaseAPI {
|
|
|
4550
4790
|
createBooking(requestParameters, options) {
|
|
4551
4791
|
return UserBookingsApiFp(this.configuration).createBooking(requestParameters.createBookingRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4552
4792
|
}
|
|
4793
|
+
/**
|
|
4794
|
+
*
|
|
4795
|
+
* @summary Récupère l\'historique des réservations de l\'utilisateur connecté
|
|
4796
|
+
* @param {*} [options] Override http request option.
|
|
4797
|
+
* @throws {RequiredError}
|
|
4798
|
+
* @memberof UserBookingsApi
|
|
4799
|
+
*/
|
|
4800
|
+
getBookingHistory(options) {
|
|
4801
|
+
return UserBookingsApiFp(this.configuration).getBookingHistory(options).then((request) => request(this.axios, this.basePath));
|
|
4802
|
+
}
|
|
4553
4803
|
}
|
|
4554
4804
|
/**
|
|
4555
4805
|
* UserClubCourtsApi - axios parameter creator
|
|
@@ -5689,6 +5939,38 @@ export const UserProfileApiAxiosParamCreator = function (configuration) {
|
|
|
5689
5939
|
options: localVarRequestOptions,
|
|
5690
5940
|
};
|
|
5691
5941
|
}),
|
|
5942
|
+
/**
|
|
5943
|
+
*
|
|
5944
|
+
* @summary Récupère le detéail d\'une réservation
|
|
5945
|
+
* @param {string} bookingId ID de la réservation
|
|
5946
|
+
* @param {*} [options] Override http request option.
|
|
5947
|
+
* @throws {RequiredError}
|
|
5948
|
+
*/
|
|
5949
|
+
getUserBookingDetail: (bookingId_1, ...args_1) => __awaiter(this, [bookingId_1, ...args_1], void 0, function* (bookingId, options = {}) {
|
|
5950
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
5951
|
+
assertParamExists('getUserBookingDetail', 'bookingId', bookingId);
|
|
5952
|
+
const localVarPath = `/api/users/me/booking-detail/{bookingId}`
|
|
5953
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
5954
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5955
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5956
|
+
let baseOptions;
|
|
5957
|
+
if (configuration) {
|
|
5958
|
+
baseOptions = configuration.baseOptions;
|
|
5959
|
+
}
|
|
5960
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5961
|
+
const localVarHeaderParameter = {};
|
|
5962
|
+
const localVarQueryParameter = {};
|
|
5963
|
+
// authentication bearerAuth required
|
|
5964
|
+
// http bearer authentication required
|
|
5965
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
5966
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5967
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5968
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5969
|
+
return {
|
|
5970
|
+
url: toPathString(localVarUrlObj),
|
|
5971
|
+
options: localVarRequestOptions,
|
|
5972
|
+
};
|
|
5973
|
+
}),
|
|
5692
5974
|
/**
|
|
5693
5975
|
*
|
|
5694
5976
|
* @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
|
|
@@ -6265,6 +6547,22 @@ export const UserProfileApiFp = function (configuration) {
|
|
|
6265
6547
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6266
6548
|
});
|
|
6267
6549
|
},
|
|
6550
|
+
/**
|
|
6551
|
+
*
|
|
6552
|
+
* @summary Récupère le detéail d\'une réservation
|
|
6553
|
+
* @param {string} bookingId ID de la réservation
|
|
6554
|
+
* @param {*} [options] Override http request option.
|
|
6555
|
+
* @throws {RequiredError}
|
|
6556
|
+
*/
|
|
6557
|
+
getUserBookingDetail(bookingId, options) {
|
|
6558
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6559
|
+
var _a, _b, _c;
|
|
6560
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserBookingDetail(bookingId, options);
|
|
6561
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6562
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserProfileApi.getUserBookingDetail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6563
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6564
|
+
});
|
|
6565
|
+
},
|
|
6268
6566
|
/**
|
|
6269
6567
|
*
|
|
6270
6568
|
* @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
|
|
@@ -6574,6 +6872,16 @@ export const UserProfileApiFactory = function (configuration, basePath, axios) {
|
|
|
6574
6872
|
getPublicUserProfile(requestParameters, options) {
|
|
6575
6873
|
return localVarFp.getPublicUserProfile(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
6576
6874
|
},
|
|
6875
|
+
/**
|
|
6876
|
+
*
|
|
6877
|
+
* @summary Récupère le detéail d\'une réservation
|
|
6878
|
+
* @param {UserProfileApiGetUserBookingDetailRequest} requestParameters Request parameters.
|
|
6879
|
+
* @param {*} [options] Override http request option.
|
|
6880
|
+
* @throws {RequiredError}
|
|
6881
|
+
*/
|
|
6882
|
+
getUserBookingDetail(requestParameters, options) {
|
|
6883
|
+
return localVarFp.getUserBookingDetail(requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
6884
|
+
},
|
|
6577
6885
|
/**
|
|
6578
6886
|
*
|
|
6579
6887
|
* @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
|
|
@@ -6814,6 +7122,17 @@ export class UserProfileApi extends BaseAPI {
|
|
|
6814
7122
|
getPublicUserProfile(requestParameters, options) {
|
|
6815
7123
|
return UserProfileApiFp(this.configuration).getPublicUserProfile(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6816
7124
|
}
|
|
7125
|
+
/**
|
|
7126
|
+
*
|
|
7127
|
+
* @summary Récupère le detéail d\'une réservation
|
|
7128
|
+
* @param {UserProfileApiGetUserBookingDetailRequest} requestParameters Request parameters.
|
|
7129
|
+
* @param {*} [options] Override http request option.
|
|
7130
|
+
* @throws {RequiredError}
|
|
7131
|
+
* @memberof UserProfileApi
|
|
7132
|
+
*/
|
|
7133
|
+
getUserBookingDetail(requestParameters, options) {
|
|
7134
|
+
return UserProfileApiFp(this.configuration).getUserBookingDetail(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
7135
|
+
}
|
|
6817
7136
|
/**
|
|
6818
7137
|
*
|
|
6819
7138
|
* @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
|
package/dist/esm/base.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Pandook API
|
|
3
3
|
* API for managing pickle ball games and players
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.
|
|
5
|
+
* The version of the OpenAPI document: 1.0.34
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/base.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
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.34
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/common.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Pandook API
|
|
3
3
|
* API for managing pickle ball games and players
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.
|
|
5
|
+
* The version of the OpenAPI document: 1.0.34
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/common.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
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.34
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Pandook API
|
|
3
3
|
* API for managing pickle ball games and players
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.
|
|
5
|
+
* The version of the OpenAPI document: 1.0.34
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
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.34
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Pandook API
|
|
3
3
|
* API for managing pickle ball games and players
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.
|
|
5
|
+
* The version of the OpenAPI document: 1.0.34
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
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.34
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Pandook API
|
|
3
3
|
* API for managing pickle ball games and players
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.
|
|
5
|
+
* The version of the OpenAPI document: 1.0.34
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Pandook API
|
|
6
6
|
* API for managing pickle ball games and players
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.
|
|
8
|
+
* The version of the OpenAPI document: 1.0.34
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/docs/ActiveClub.md
CHANGED
|
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
|
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**_id** | **string** | | [optional] [default to undefined]
|
|
9
9
|
**name** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**address** | **string** | | [optional] [default to undefined]
|
|
10
11
|
**paymentFeature** | **boolean** | | [optional] [default to undefined]
|
|
11
12
|
|
|
12
13
|
## Example
|
|
@@ -17,6 +18,7 @@ import { ActiveClub } from '@tennac-booking/sdk';
|
|
|
17
18
|
const instance: ActiveClub = {
|
|
18
19
|
_id,
|
|
19
20
|
name,
|
|
21
|
+
address,
|
|
20
22
|
paymentFeature,
|
|
21
23
|
};
|
|
22
24
|
```
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# BookingHistoryResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**bookingId** | **string** | ID de la réservation | [optional] [default to undefined]
|
|
9
|
+
**history** | [**Array<BookingHistoryResponseHistoryInner>**](BookingHistoryResponseHistoryInner.md) | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { BookingHistoryResponse } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: BookingHistoryResponse = {
|
|
17
|
+
bookingId,
|
|
18
|
+
history,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# BookingHistoryResponseHistoryInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**slotId** | **string** | ID du créneau réservé | [optional] [default to undefined]
|
|
9
|
+
**userId** | **string** | ID de l\'utilisateur qui a effectué la réservation | [optional] [default to undefined]
|
|
10
|
+
**status** | **string** | Statut de la réservation (active, cancelled, completed) | [optional] [default to undefined]
|
|
11
|
+
**totalPrice** | **number** | Prix total de la réservation | [optional] [default to undefined]
|
|
12
|
+
**paymentStatus** | **string** | Statut du paiement (paid, pending, cancelled) | [optional] [default to undefined]
|
|
13
|
+
**createdAt** | **string** | Date et heure de la création de la réservation | [optional] [default to undefined]
|
|
14
|
+
**updatedAt** | **string** | Date et heure de la dernière mise à jour de la réservation | [optional] [default to undefined]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { BookingHistoryResponseHistoryInner } from '@tennac-booking/sdk';
|
|
20
|
+
|
|
21
|
+
const instance: BookingHistoryResponseHistoryInner = {
|
|
22
|
+
slotId,
|
|
23
|
+
userId,
|
|
24
|
+
status,
|
|
25
|
+
totalPrice,
|
|
26
|
+
paymentStatus,
|
|
27
|
+
createdAt,
|
|
28
|
+
updatedAt,
|
|
29
|
+
};
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|