@tennac-booking/sdk 1.0.32 → 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/api.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).
|
|
@@ -22,9 +22,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.UserSubscriptionsApi = exports.UserSubscriptionsApiFactory = exports.UserSubscriptionsApiFp = exports.UserSubscriptionsApiAxiosParamCreator = exports.UserProfileApi = exports.UserProfileApiFactory = exports.UserProfileApiFp = exports.UserProfileApiAxiosParamCreator = exports.UserPaymentApi = exports.UserPaymentApiFactory = exports.UserPaymentApiFp = exports.UserPaymentApiAxiosParamCreator = exports.UserClubsApi = exports.UserClubsApiFactory = exports.UserClubsApiFp = exports.UserClubsApiAxiosParamCreator = exports.UserClubSportsApi = exports.UserClubSportsApiFactory = exports.UserClubSportsApiFp = exports.UserClubSportsApiAxiosParamCreator = exports.UserClubSlotsApi = exports.UserClubSlotsApiFactory = exports.UserClubSlotsApiFp = exports.UserClubSlotsApiAxiosParamCreator = exports.UserClubCourtsApi = void 0;
|
|
25
|
+
exports.ManagerClubRolesApiFp = exports.ManagerClubRolesApiAxiosParamCreator = exports.ManagerClubCourtsApi = exports.ManagerClubCourtsApiFactory = exports.ManagerClubCourtsApiFp = exports.ManagerClubCourtsApiAxiosParamCreator = exports.ManagerBookingsApi = exports.ManagerBookingsApiFactory = exports.ManagerBookingsApiFp = exports.ManagerBookingsApiAxiosParamCreator = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = exports.EventsApiAxiosParamCreator = exports.ClubsApi = exports.ClubsApiFactory = exports.ClubsApiFp = exports.ClubsApiAxiosParamCreator = exports.GetInvoicesStatusEnum = exports.ClubAnalyticsApi = exports.ClubAnalyticsApiFactory = exports.ClubAnalyticsApiFp = exports.ClubAnalyticsApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.UserBookingItemBookingStatusEnum = exports.UserBookingItemMyPaymentStatusEnum = exports.UpdateCourtRequestSurfaceEnum = exports.UpdateCourtRequestStatusEnum = exports.SubscriptionResponseStatusEnum = exports.StripeStatus = exports.PaymentStatusInvoiceStatusEnum = exports.PaymentMethod = exports.NoShowFeeResponseCaptureResultsInnerStatusEnum = exports.NoShowFeeResponseCaptureResultsInnerTypeEnum = exports.ManagerCancelBookingResponseBookingStatusEnum = exports.InvoicesResponseInvoicesInnerStatusEnum = exports.EventBookingStatusEnum = exports.CreatePriceRequestIntervalEnum = exports.CourtStatus = exports.CourtResponseSurfaceEnum = exports.CourtResponseStatusEnum = exports.ClubMemberRoleEnum = exports.CancelBookingResponseBookingStatusEnum = exports.BookingStatus = exports.BookingPopulatedPaymentByPlayersStatusInnerInvoicesInnerStatusEnum = exports.BookingPopulatedStatusEnum = exports.BookingPaymentStatusResponsePaymentStatusInnerPaymentMethodEnum = void 0;
|
|
26
|
+
exports.UserAuthenticationApi = exports.UserAuthenticationApiFactory = exports.UserAuthenticationApiFp = exports.UserAuthenticationApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.StaffProfileApi = exports.StaffProfileApiFactory = exports.StaffProfileApiFp = exports.StaffProfileApiAxiosParamCreator = exports.StaffEventsApi = exports.StaffEventsApiFactory = exports.StaffEventsApiFp = exports.StaffEventsApiAxiosParamCreator = exports.StaffClubsApi = exports.StaffClubsApiFactory = exports.StaffClubsApiFp = exports.StaffClubsApiAxiosParamCreator = exports.StaffClubBookingsApi = exports.StaffClubBookingsApiFactory = exports.StaffClubBookingsApiFp = exports.StaffClubBookingsApiAxiosParamCreator = exports.StaffClubAnalyticsApi = exports.StaffClubAnalyticsApiFactory = exports.StaffClubAnalyticsApiFp = exports.StaffClubAnalyticsApiAxiosParamCreator = exports.ManagerSportsApi = exports.ManagerSportsApiFactory = exports.ManagerSportsApiFp = exports.ManagerSportsApiAxiosParamCreator = exports.ManagerEventsApi = exports.ManagerEventsApiFactory = exports.ManagerEventsApiFp = exports.ManagerEventsApiAxiosParamCreator = exports.ManagerClubsApi = exports.ManagerClubsApiFactory = exports.ManagerClubsApiFp = exports.ManagerClubsApiAxiosParamCreator = exports.ManagerClubSubscriptionsApi = exports.ManagerClubSubscriptionsApiFactory = exports.ManagerClubSubscriptionsApiFp = exports.ManagerClubSubscriptionsApiAxiosParamCreator = exports.ManagerClubSlotsApi = exports.ManagerClubSlotsApiFactory = exports.ManagerClubSlotsApiFp = exports.ManagerClubSlotsApiAxiosParamCreator = exports.ManagerClubRolesApi = exports.ManagerClubRolesApiFactory = void 0;
|
|
27
|
+
exports.UserSubscriptionsApi = exports.UserSubscriptionsApiFactory = exports.UserSubscriptionsApiFp = exports.UserSubscriptionsApiAxiosParamCreator = exports.UserProfileApi = exports.UserProfileApiFactory = exports.UserProfileApiFp = exports.UserProfileApiAxiosParamCreator = exports.UserPaymentApi = exports.UserPaymentApiFactory = exports.UserPaymentApiFp = exports.UserPaymentApiAxiosParamCreator = exports.UserClubsApi = exports.UserClubsApiFactory = exports.UserClubsApiFp = exports.UserClubsApiAxiosParamCreator = exports.UserClubSportsApi = exports.UserClubSportsApiFactory = exports.UserClubSportsApiFp = exports.UserClubSportsApiAxiosParamCreator = exports.UserClubSlotsApi = exports.UserClubSlotsApiFactory = exports.UserClubSlotsApiFp = exports.UserClubSlotsApiAxiosParamCreator = exports.UserClubCourtsApi = exports.UserClubCourtsApiFactory = exports.UserClubCourtsApiFp = exports.UserClubCourtsApiAxiosParamCreator = exports.UserBookingsApi = exports.UserBookingsApiFactory = exports.UserBookingsApiFp = exports.UserBookingsApiAxiosParamCreator = void 0;
|
|
28
28
|
const axios_1 = require("axios");
|
|
29
29
|
// Some imports not used depending on template conditions
|
|
30
30
|
// @ts-ignore
|
|
@@ -119,6 +119,12 @@ exports.PaymentMethod = {
|
|
|
119
119
|
Online: 'online',
|
|
120
120
|
Onsite: 'onsite'
|
|
121
121
|
};
|
|
122
|
+
exports.PaymentStatusInvoiceStatusEnum = {
|
|
123
|
+
Paid: 'paid',
|
|
124
|
+
Pending: 'pending',
|
|
125
|
+
Failed: 'failed',
|
|
126
|
+
Canceled: 'canceled'
|
|
127
|
+
};
|
|
122
128
|
/**
|
|
123
129
|
*
|
|
124
130
|
* @export
|
|
@@ -149,6 +155,192 @@ exports.UpdateCourtRequestSurfaceEnum = {
|
|
|
149
155
|
Grass: 'grass',
|
|
150
156
|
Hard: 'hard'
|
|
151
157
|
};
|
|
158
|
+
exports.UserBookingItemMyPaymentStatusEnum = {
|
|
159
|
+
Paid: 'paid',
|
|
160
|
+
Pending: 'pending',
|
|
161
|
+
Failed: 'failed'
|
|
162
|
+
};
|
|
163
|
+
exports.UserBookingItemBookingStatusEnum = {
|
|
164
|
+
Confirmed: 'confirmed',
|
|
165
|
+
Cancelled: 'cancelled',
|
|
166
|
+
Pending: 'pending'
|
|
167
|
+
};
|
|
168
|
+
/**
|
|
169
|
+
* BookingsApi - axios parameter creator
|
|
170
|
+
* @export
|
|
171
|
+
*/
|
|
172
|
+
const BookingsApiAxiosParamCreator = function (configuration) {
|
|
173
|
+
return {
|
|
174
|
+
/**
|
|
175
|
+
* Retourne une liste de réservations pour une date donnée, avec les joueurs et terrains (incluant le sport) peuplés.
|
|
176
|
+
* @summary Récupérer les réservations journalières
|
|
177
|
+
* @param {string} date Date au format YYYY-MM-DD
|
|
178
|
+
* @param {*} [options] Override http request option.
|
|
179
|
+
* @throws {RequiredError}
|
|
180
|
+
*/
|
|
181
|
+
bookingsStaffDailyDateGet: (date_1, ...args_1) => __awaiter(this, [date_1, ...args_1], void 0, function* (date, options = {}) {
|
|
182
|
+
// verify required parameter 'date' is not null or undefined
|
|
183
|
+
(0, common_1.assertParamExists)('bookingsStaffDailyDateGet', 'date', date);
|
|
184
|
+
const localVarPath = `/bookings/staff/daily/{date}`
|
|
185
|
+
.replace(`{${"date"}}`, encodeURIComponent(String(date)));
|
|
186
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
187
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
188
|
+
let baseOptions;
|
|
189
|
+
if (configuration) {
|
|
190
|
+
baseOptions = configuration.baseOptions;
|
|
191
|
+
}
|
|
192
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
193
|
+
const localVarHeaderParameter = {};
|
|
194
|
+
const localVarQueryParameter = {};
|
|
195
|
+
// authentication bearerAuth required
|
|
196
|
+
// http bearer authentication required
|
|
197
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
198
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
199
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
200
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
201
|
+
return {
|
|
202
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
203
|
+
options: localVarRequestOptions,
|
|
204
|
+
};
|
|
205
|
+
}),
|
|
206
|
+
/**
|
|
207
|
+
* Retourne une liste de réservations pour une semaine donnée, avec les joueurs et terrains (incluant le sport) peuplés.
|
|
208
|
+
* @summary Récupérer les réservations hebdomadaires
|
|
209
|
+
* @param {string} weekId ID de la semaine
|
|
210
|
+
* @param {*} [options] Override http request option.
|
|
211
|
+
* @throws {RequiredError}
|
|
212
|
+
*/
|
|
213
|
+
bookingsStaffWeeklyWeekIdGet: (weekId_1, ...args_1) => __awaiter(this, [weekId_1, ...args_1], void 0, function* (weekId, options = {}) {
|
|
214
|
+
// verify required parameter 'weekId' is not null or undefined
|
|
215
|
+
(0, common_1.assertParamExists)('bookingsStaffWeeklyWeekIdGet', 'weekId', weekId);
|
|
216
|
+
const localVarPath = `/bookings/staff/weekly/{weekId}`
|
|
217
|
+
.replace(`{${"weekId"}}`, encodeURIComponent(String(weekId)));
|
|
218
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
219
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
220
|
+
let baseOptions;
|
|
221
|
+
if (configuration) {
|
|
222
|
+
baseOptions = configuration.baseOptions;
|
|
223
|
+
}
|
|
224
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
225
|
+
const localVarHeaderParameter = {};
|
|
226
|
+
const localVarQueryParameter = {};
|
|
227
|
+
// authentication bearerAuth required
|
|
228
|
+
// http bearer authentication required
|
|
229
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
230
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
231
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
232
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
233
|
+
return {
|
|
234
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
235
|
+
options: localVarRequestOptions,
|
|
236
|
+
};
|
|
237
|
+
}),
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
exports.BookingsApiAxiosParamCreator = BookingsApiAxiosParamCreator;
|
|
241
|
+
/**
|
|
242
|
+
* BookingsApi - functional programming interface
|
|
243
|
+
* @export
|
|
244
|
+
*/
|
|
245
|
+
const BookingsApiFp = function (configuration) {
|
|
246
|
+
const localVarAxiosParamCreator = (0, exports.BookingsApiAxiosParamCreator)(configuration);
|
|
247
|
+
return {
|
|
248
|
+
/**
|
|
249
|
+
* Retourne une liste de réservations pour une date donnée, avec les joueurs et terrains (incluant le sport) peuplés.
|
|
250
|
+
* @summary Récupérer les réservations journalières
|
|
251
|
+
* @param {string} date Date au format YYYY-MM-DD
|
|
252
|
+
* @param {*} [options] Override http request option.
|
|
253
|
+
* @throws {RequiredError}
|
|
254
|
+
*/
|
|
255
|
+
bookingsStaffDailyDateGet(date, options) {
|
|
256
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
257
|
+
var _a, _b, _c;
|
|
258
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.bookingsStaffDailyDateGet(date, options);
|
|
259
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
260
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.bookingsStaffDailyDateGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
261
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
262
|
+
});
|
|
263
|
+
},
|
|
264
|
+
/**
|
|
265
|
+
* Retourne une liste de réservations pour une semaine donnée, avec les joueurs et terrains (incluant le sport) peuplés.
|
|
266
|
+
* @summary Récupérer les réservations hebdomadaires
|
|
267
|
+
* @param {string} weekId ID de la semaine
|
|
268
|
+
* @param {*} [options] Override http request option.
|
|
269
|
+
* @throws {RequiredError}
|
|
270
|
+
*/
|
|
271
|
+
bookingsStaffWeeklyWeekIdGet(weekId, options) {
|
|
272
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
273
|
+
var _a, _b, _c;
|
|
274
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.bookingsStaffWeeklyWeekIdGet(weekId, options);
|
|
275
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
276
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.bookingsStaffWeeklyWeekIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
277
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
278
|
+
});
|
|
279
|
+
},
|
|
280
|
+
};
|
|
281
|
+
};
|
|
282
|
+
exports.BookingsApiFp = BookingsApiFp;
|
|
283
|
+
/**
|
|
284
|
+
* BookingsApi - factory interface
|
|
285
|
+
* @export
|
|
286
|
+
*/
|
|
287
|
+
const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
288
|
+
const localVarFp = (0, exports.BookingsApiFp)(configuration);
|
|
289
|
+
return {
|
|
290
|
+
/**
|
|
291
|
+
* Retourne une liste de réservations pour une date donnée, avec les joueurs et terrains (incluant le sport) peuplés.
|
|
292
|
+
* @summary Récupérer les réservations journalières
|
|
293
|
+
* @param {BookingsApiBookingsStaffDailyDateGetRequest} requestParameters Request parameters.
|
|
294
|
+
* @param {*} [options] Override http request option.
|
|
295
|
+
* @throws {RequiredError}
|
|
296
|
+
*/
|
|
297
|
+
bookingsStaffDailyDateGet(requestParameters, options) {
|
|
298
|
+
return localVarFp.bookingsStaffDailyDateGet(requestParameters.date, options).then((request) => request(axios, basePath));
|
|
299
|
+
},
|
|
300
|
+
/**
|
|
301
|
+
* Retourne une liste de réservations pour une semaine donnée, avec les joueurs et terrains (incluant le sport) peuplés.
|
|
302
|
+
* @summary Récupérer les réservations hebdomadaires
|
|
303
|
+
* @param {BookingsApiBookingsStaffWeeklyWeekIdGetRequest} requestParameters Request parameters.
|
|
304
|
+
* @param {*} [options] Override http request option.
|
|
305
|
+
* @throws {RequiredError}
|
|
306
|
+
*/
|
|
307
|
+
bookingsStaffWeeklyWeekIdGet(requestParameters, options) {
|
|
308
|
+
return localVarFp.bookingsStaffWeeklyWeekIdGet(requestParameters.weekId, options).then((request) => request(axios, basePath));
|
|
309
|
+
},
|
|
310
|
+
};
|
|
311
|
+
};
|
|
312
|
+
exports.BookingsApiFactory = BookingsApiFactory;
|
|
313
|
+
/**
|
|
314
|
+
* BookingsApi - object-oriented interface
|
|
315
|
+
* @export
|
|
316
|
+
* @class BookingsApi
|
|
317
|
+
* @extends {BaseAPI}
|
|
318
|
+
*/
|
|
319
|
+
class BookingsApi extends base_1.BaseAPI {
|
|
320
|
+
/**
|
|
321
|
+
* Retourne une liste de réservations pour une date donnée, avec les joueurs et terrains (incluant le sport) peuplés.
|
|
322
|
+
* @summary Récupérer les réservations journalières
|
|
323
|
+
* @param {BookingsApiBookingsStaffDailyDateGetRequest} requestParameters Request parameters.
|
|
324
|
+
* @param {*} [options] Override http request option.
|
|
325
|
+
* @throws {RequiredError}
|
|
326
|
+
* @memberof BookingsApi
|
|
327
|
+
*/
|
|
328
|
+
bookingsStaffDailyDateGet(requestParameters, options) {
|
|
329
|
+
return (0, exports.BookingsApiFp)(this.configuration).bookingsStaffDailyDateGet(requestParameters.date, options).then((request) => request(this.axios, this.basePath));
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* Retourne une liste de réservations pour une semaine donnée, avec les joueurs et terrains (incluant le sport) peuplés.
|
|
333
|
+
* @summary Récupérer les réservations hebdomadaires
|
|
334
|
+
* @param {BookingsApiBookingsStaffWeeklyWeekIdGetRequest} requestParameters Request parameters.
|
|
335
|
+
* @param {*} [options] Override http request option.
|
|
336
|
+
* @throws {RequiredError}
|
|
337
|
+
* @memberof BookingsApi
|
|
338
|
+
*/
|
|
339
|
+
bookingsStaffWeeklyWeekIdGet(requestParameters, options) {
|
|
340
|
+
return (0, exports.BookingsApiFp)(this.configuration).bookingsStaffWeeklyWeekIdGet(requestParameters.weekId, options).then((request) => request(this.axios, this.basePath));
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
exports.BookingsApi = BookingsApi;
|
|
152
344
|
/**
|
|
153
345
|
* ClubAnalyticsApi - axios parameter creator
|
|
154
346
|
* @export
|
|
@@ -4526,6 +4718,34 @@ const UserBookingsApiAxiosParamCreator = function (configuration) {
|
|
|
4526
4718
|
options: localVarRequestOptions,
|
|
4527
4719
|
};
|
|
4528
4720
|
}),
|
|
4721
|
+
/**
|
|
4722
|
+
*
|
|
4723
|
+
* @summary Récupère l\'historique des réservations de l\'utilisateur connecté
|
|
4724
|
+
* @param {*} [options] Override http request option.
|
|
4725
|
+
* @throws {RequiredError}
|
|
4726
|
+
*/
|
|
4727
|
+
getBookingHistory: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
4728
|
+
const localVarPath = `/api/users/me/booking-history`;
|
|
4729
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4730
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4731
|
+
let baseOptions;
|
|
4732
|
+
if (configuration) {
|
|
4733
|
+
baseOptions = configuration.baseOptions;
|
|
4734
|
+
}
|
|
4735
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4736
|
+
const localVarHeaderParameter = {};
|
|
4737
|
+
const localVarQueryParameter = {};
|
|
4738
|
+
// authentication bearerAuth required
|
|
4739
|
+
// http bearer authentication required
|
|
4740
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4741
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4742
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4743
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4744
|
+
return {
|
|
4745
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4746
|
+
options: localVarRequestOptions,
|
|
4747
|
+
};
|
|
4748
|
+
}),
|
|
4529
4749
|
};
|
|
4530
4750
|
};
|
|
4531
4751
|
exports.UserBookingsApiAxiosParamCreator = UserBookingsApiAxiosParamCreator;
|
|
@@ -4568,6 +4788,21 @@ const UserBookingsApiFp = function (configuration) {
|
|
|
4568
4788
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4569
4789
|
});
|
|
4570
4790
|
},
|
|
4791
|
+
/**
|
|
4792
|
+
*
|
|
4793
|
+
* @summary Récupère l\'historique des réservations de l\'utilisateur connecté
|
|
4794
|
+
* @param {*} [options] Override http request option.
|
|
4795
|
+
* @throws {RequiredError}
|
|
4796
|
+
*/
|
|
4797
|
+
getBookingHistory(options) {
|
|
4798
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4799
|
+
var _a, _b, _c;
|
|
4800
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingHistory(options);
|
|
4801
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4802
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserBookingsApi.getBookingHistory']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4803
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4804
|
+
});
|
|
4805
|
+
},
|
|
4571
4806
|
};
|
|
4572
4807
|
};
|
|
4573
4808
|
exports.UserBookingsApiFp = UserBookingsApiFp;
|
|
@@ -4598,6 +4833,15 @@ const UserBookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
4598
4833
|
createBooking(requestParameters, options) {
|
|
4599
4834
|
return localVarFp.createBooking(requestParameters.createBookingRequest, options).then((request) => request(axios, basePath));
|
|
4600
4835
|
},
|
|
4836
|
+
/**
|
|
4837
|
+
*
|
|
4838
|
+
* @summary Récupère l\'historique des réservations de l\'utilisateur connecté
|
|
4839
|
+
* @param {*} [options] Override http request option.
|
|
4840
|
+
* @throws {RequiredError}
|
|
4841
|
+
*/
|
|
4842
|
+
getBookingHistory(options) {
|
|
4843
|
+
return localVarFp.getBookingHistory(options).then((request) => request(axios, basePath));
|
|
4844
|
+
},
|
|
4601
4845
|
};
|
|
4602
4846
|
};
|
|
4603
4847
|
exports.UserBookingsApiFactory = UserBookingsApiFactory;
|
|
@@ -4630,6 +4874,16 @@ class UserBookingsApi extends base_1.BaseAPI {
|
|
|
4630
4874
|
createBooking(requestParameters, options) {
|
|
4631
4875
|
return (0, exports.UserBookingsApiFp)(this.configuration).createBooking(requestParameters.createBookingRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4632
4876
|
}
|
|
4877
|
+
/**
|
|
4878
|
+
*
|
|
4879
|
+
* @summary Récupère l\'historique des réservations de l\'utilisateur connecté
|
|
4880
|
+
* @param {*} [options] Override http request option.
|
|
4881
|
+
* @throws {RequiredError}
|
|
4882
|
+
* @memberof UserBookingsApi
|
|
4883
|
+
*/
|
|
4884
|
+
getBookingHistory(options) {
|
|
4885
|
+
return (0, exports.UserBookingsApiFp)(this.configuration).getBookingHistory(options).then((request) => request(this.axios, this.basePath));
|
|
4886
|
+
}
|
|
4633
4887
|
}
|
|
4634
4888
|
exports.UserBookingsApi = UserBookingsApi;
|
|
4635
4889
|
/**
|
|
@@ -5790,6 +6044,38 @@ const UserProfileApiAxiosParamCreator = function (configuration) {
|
|
|
5790
6044
|
options: localVarRequestOptions,
|
|
5791
6045
|
};
|
|
5792
6046
|
}),
|
|
6047
|
+
/**
|
|
6048
|
+
*
|
|
6049
|
+
* @summary Récupère le detéail d\'une réservation
|
|
6050
|
+
* @param {string} bookingId ID de la réservation
|
|
6051
|
+
* @param {*} [options] Override http request option.
|
|
6052
|
+
* @throws {RequiredError}
|
|
6053
|
+
*/
|
|
6054
|
+
getUserBookingDetail: (bookingId_1, ...args_1) => __awaiter(this, [bookingId_1, ...args_1], void 0, function* (bookingId, options = {}) {
|
|
6055
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
6056
|
+
(0, common_1.assertParamExists)('getUserBookingDetail', 'bookingId', bookingId);
|
|
6057
|
+
const localVarPath = `/api/users/me/booking-detail/{bookingId}`
|
|
6058
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
6059
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6060
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6061
|
+
let baseOptions;
|
|
6062
|
+
if (configuration) {
|
|
6063
|
+
baseOptions = configuration.baseOptions;
|
|
6064
|
+
}
|
|
6065
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6066
|
+
const localVarHeaderParameter = {};
|
|
6067
|
+
const localVarQueryParameter = {};
|
|
6068
|
+
// authentication bearerAuth required
|
|
6069
|
+
// http bearer authentication required
|
|
6070
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6071
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6072
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6073
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6074
|
+
return {
|
|
6075
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6076
|
+
options: localVarRequestOptions,
|
|
6077
|
+
};
|
|
6078
|
+
}),
|
|
5793
6079
|
/**
|
|
5794
6080
|
*
|
|
5795
6081
|
* @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
|
|
@@ -6367,6 +6653,22 @@ const UserProfileApiFp = function (configuration) {
|
|
|
6367
6653
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6368
6654
|
});
|
|
6369
6655
|
},
|
|
6656
|
+
/**
|
|
6657
|
+
*
|
|
6658
|
+
* @summary Récupère le detéail d\'une réservation
|
|
6659
|
+
* @param {string} bookingId ID de la réservation
|
|
6660
|
+
* @param {*} [options] Override http request option.
|
|
6661
|
+
* @throws {RequiredError}
|
|
6662
|
+
*/
|
|
6663
|
+
getUserBookingDetail(bookingId, options) {
|
|
6664
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6665
|
+
var _a, _b, _c;
|
|
6666
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserBookingDetail(bookingId, options);
|
|
6667
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6668
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.getUserBookingDetail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6669
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6670
|
+
});
|
|
6671
|
+
},
|
|
6370
6672
|
/**
|
|
6371
6673
|
*
|
|
6372
6674
|
* @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
|
|
@@ -6677,6 +6979,16 @@ const UserProfileApiFactory = function (configuration, basePath, axios) {
|
|
|
6677
6979
|
getPublicUserProfile(requestParameters, options) {
|
|
6678
6980
|
return localVarFp.getPublicUserProfile(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
6679
6981
|
},
|
|
6982
|
+
/**
|
|
6983
|
+
*
|
|
6984
|
+
* @summary Récupère le detéail d\'une réservation
|
|
6985
|
+
* @param {UserProfileApiGetUserBookingDetailRequest} requestParameters Request parameters.
|
|
6986
|
+
* @param {*} [options] Override http request option.
|
|
6987
|
+
* @throws {RequiredError}
|
|
6988
|
+
*/
|
|
6989
|
+
getUserBookingDetail(requestParameters, options) {
|
|
6990
|
+
return localVarFp.getUserBookingDetail(requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
6991
|
+
},
|
|
6680
6992
|
/**
|
|
6681
6993
|
*
|
|
6682
6994
|
* @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
|
|
@@ -6918,6 +7230,17 @@ class UserProfileApi extends base_1.BaseAPI {
|
|
|
6918
7230
|
getPublicUserProfile(requestParameters, options) {
|
|
6919
7231
|
return (0, exports.UserProfileApiFp)(this.configuration).getPublicUserProfile(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6920
7232
|
}
|
|
7233
|
+
/**
|
|
7234
|
+
*
|
|
7235
|
+
* @summary Récupère le detéail d\'une réservation
|
|
7236
|
+
* @param {UserProfileApiGetUserBookingDetailRequest} requestParameters Request parameters.
|
|
7237
|
+
* @param {*} [options] Override http request option.
|
|
7238
|
+
* @throws {RequiredError}
|
|
7239
|
+
* @memberof UserProfileApi
|
|
7240
|
+
*/
|
|
7241
|
+
getUserBookingDetail(requestParameters, options) {
|
|
7242
|
+
return (0, exports.UserProfileApiFp)(this.configuration).getUserBookingDetail(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
7243
|
+
}
|
|
6921
7244
|
/**
|
|
6922
7245
|
*
|
|
6923
7246
|
* @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
|
package/dist/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/base.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/dist/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/common.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/dist/configuration.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/configuration.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).
|