@tennac-booking/sdk 1.0.68 → 1.0.70

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.
Files changed (48) hide show
  1. package/.openapi-generator/FILES +9 -2
  2. package/README.md +15 -5
  3. package/api.ts +889 -66
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +650 -42
  8. package/dist/api.js +295 -8
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +1 -1
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +1 -1
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +1 -1
  15. package/dist/esm/api.d.ts +650 -42
  16. package/dist/esm/api.js +292 -5
  17. package/dist/esm/base.d.ts +1 -1
  18. package/dist/esm/base.js +1 -1
  19. package/dist/esm/common.d.ts +1 -1
  20. package/dist/esm/common.js +1 -1
  21. package/dist/esm/configuration.d.ts +1 -1
  22. package/dist/esm/configuration.js +1 -1
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.js +1 -1
  27. package/docs/BookingDetailResponse.md +1 -1
  28. package/docs/{BookingHistory.md → BookingHistoryPopulated.md} +4 -4
  29. package/docs/BookingPopulated.md +27 -7
  30. package/docs/BookingStatus.md +3 -3
  31. package/docs/BookingSummary.md +1 -1
  32. package/docs/BookingsApi.md +81 -2
  33. package/docs/BookingsStaffApi.md +3 -3
  34. package/docs/CourtResponse.md +4 -0
  35. package/docs/CreateBookingRequest.md +2 -0
  36. package/docs/{BookingSummaryBookingHistory.md → PlayerCategoriesResponse.md} +5 -3
  37. package/docs/PlayerCategory.md +26 -0
  38. package/docs/PlayerCategoryId.md +16 -0
  39. package/docs/PlayerListResponse.md +26 -0
  40. package/docs/QuickReservationClubSummary.md +28 -0
  41. package/docs/QuickReservationClubSummaryLocation.md +31 -0
  42. package/docs/QuickReservationResponse.md +22 -0
  43. package/docs/QuickReservationSlotSummary.md +42 -0
  44. package/docs/UserInfo.md +4 -0
  45. package/docs/UserProfileResponse.md +2 -0
  46. package/docs/UsersApi.md +122 -0
  47. package/index.ts +1 -1
  48. package/package.json +1 -1
package/dist/api.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * openapi.json
6
6
  * Pandook API Documentation
7
7
  *
8
- * The version of the OpenAPI document: 1.0.67
8
+ * The version of the OpenAPI document: 1.0.68
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -22,16 +22,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.ClubAnalyticsApiAxiosParamCreator = exports.BookingsUserApi = exports.BookingsUserApiFactory = exports.BookingsUserApiFp = exports.BookingsUserApiAxiosParamCreator = exports.BookingsStaffApi = exports.BookingsStaffApiFactory = exports.BookingsStaffApiFp = exports.BookingsStaffApiAxiosParamCreator = exports.BookingsManagerApi = exports.BookingsManagerApiFactory = exports.BookingsManagerApiFp = exports.BookingsManagerApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.UserLocationSummaryTypeEnum = exports.UpdateClubRoleRequestRoleEnum = exports.SurfaceType = exports.StripeStripeTaxCodeObjectEnum = exports.StripeStripeResponseStripeStripePriceObjectEnum = exports.StripeStripeProductType = exports.StripeStripeProductTaxCodeObjectEnum = exports.StripeStripeProductDefaultPriceObjectEnum = exports.StripeStripeProductObjectEnum = exports.StripeStripePriceType = exports.StripeStripePriceTransformQuantityRound = exports.StripeStripePriceTiersMode = exports.StripeStripePriceTaxBehavior = exports.StripeStripePriceRecurringUsageType = exports.StripeStripePriceRecurringInterval = exports.StripeStripePriceProductObjectEnum = exports.StripeStripePriceCurrencyOptionsTaxBehavior = exports.StripeStripePriceBillingScheme = exports.StripeStripePriceObjectEnum = exports.StripeStripeDeletedProductObjectEnum = exports.RegisterRequestBodyLocationTypeEnum = exports.PlanInterval = exports.PaymentMethod = exports.IUserLocationTypeEnum = exports.Gender = exports.DiscountType = exports.CreateClubRoleRequestRoleEnum = exports.CourtStatus = exports.ClubRoleResponseRoleEnum = exports.CaptureResultStatusEnum = exports.CaptureResultTypeEnum = exports.BookingStatus = exports.BookingHistoryPerformedByTypeEnum = void 0;
26
- exports.SportsManagerApiFactory = exports.SportsManagerApiFp = exports.SportsManagerApiAxiosParamCreator = exports.EventsStaffApi = exports.EventsStaffApiFactory = exports.EventsStaffApiFp = exports.EventsStaffApiAxiosParamCreator = exports.EventsManagerApi = exports.EventsManagerApiFactory = exports.EventsManagerApiFp = exports.EventsManagerApiAxiosParamCreator = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = exports.EventsApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.ClubsStaffApi = exports.ClubsStaffApiFactory = exports.ClubsStaffApiFp = exports.ClubsStaffApiAxiosParamCreator = exports.ClubsManagerApi = exports.ClubsManagerApiFactory = exports.ClubsManagerApiFp = exports.ClubsManagerApiAxiosParamCreator = exports.ClubsApi = exports.ClubsApiFactory = exports.ClubsApiFp = exports.ClubsApiAxiosParamCreator = exports.ClubSettingsManagerApi = exports.ClubSettingsManagerApiFactory = exports.ClubSettingsManagerApiFp = exports.ClubSettingsManagerApiAxiosParamCreator = exports.ClubRolesStaffApi = exports.ClubRolesStaffApiFactory = exports.ClubRolesStaffApiFp = exports.ClubRolesStaffApiAxiosParamCreator = exports.ClubRolesManagerApi = exports.ClubRolesManagerApiFactory = exports.ClubRolesManagerApiFp = exports.ClubRolesManagerApiAxiosParamCreator = exports.ClubAnalyticsStaffApi = exports.ClubAnalyticsStaffApiFactory = exports.ClubAnalyticsStaffApiFp = exports.ClubAnalyticsStaffApiAxiosParamCreator = exports.ClubAnalyticsApi = exports.ClubAnalyticsApiFactory = exports.ClubAnalyticsApiFp = void 0;
27
- exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = exports.SubscriptionsUserApiFp = exports.SubscriptionsUserApiAxiosParamCreator = exports.SubscriptionsStaffApi = exports.SubscriptionsStaffApiFactory = exports.SubscriptionsStaffApiFp = exports.SubscriptionsStaffApiAxiosParamCreator = exports.SubscriptionsPublicApi = exports.SubscriptionsPublicApiFactory = exports.SubscriptionsPublicApiFp = exports.SubscriptionsPublicApiAxiosParamCreator = exports.SubscriptionsManagerApi = exports.SubscriptionsManagerApiFactory = exports.SubscriptionsManagerApiFp = exports.SubscriptionsManagerApiAxiosParamCreator = exports.SportsStaffApi = exports.SportsStaffApiFactory = exports.SportsStaffApiFp = exports.SportsStaffApiAxiosParamCreator = exports.SportsManagerApi = void 0;
25
+ exports.BookingsUserApi = exports.BookingsUserApiFactory = exports.BookingsUserApiFp = exports.BookingsUserApiAxiosParamCreator = exports.BookingsStaffApi = exports.BookingsStaffApiFactory = exports.BookingsStaffApiFp = exports.BookingsStaffApiAxiosParamCreator = exports.BookingsManagerApi = exports.BookingsManagerApiFactory = exports.BookingsManagerApiFp = exports.BookingsManagerApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.UserLocationSummaryTypeEnum = exports.UpdateClubRoleRequestRoleEnum = exports.SurfaceType = exports.StripeStripeTaxCodeObjectEnum = exports.StripeStripeResponseStripeStripePriceObjectEnum = exports.StripeStripeProductType = exports.StripeStripeProductTaxCodeObjectEnum = exports.StripeStripeProductDefaultPriceObjectEnum = exports.StripeStripeProductObjectEnum = exports.StripeStripePriceType = exports.StripeStripePriceTransformQuantityRound = exports.StripeStripePriceTiersMode = exports.StripeStripePriceTaxBehavior = exports.StripeStripePriceRecurringUsageType = exports.StripeStripePriceRecurringInterval = exports.StripeStripePriceProductObjectEnum = exports.StripeStripePriceCurrencyOptionsTaxBehavior = exports.StripeStripePriceBillingScheme = exports.StripeStripePriceObjectEnum = exports.StripeStripeDeletedProductObjectEnum = exports.RegisterRequestBodyLocationTypeEnum = exports.PlayerCategoryId = exports.PlanInterval = exports.PaymentMethod = exports.IUserLocationTypeEnum = exports.Gender = exports.DiscountType = exports.CreateClubRoleRequestRoleEnum = exports.CourtStatus = exports.ClubRoleResponseRoleEnum = exports.CaptureResultStatusEnum = exports.CaptureResultTypeEnum = exports.BookingStatus = exports.BookingHistoryPopulatedPerformedByTypeEnum = void 0;
26
+ exports.SportsManagerApiFp = exports.SportsManagerApiAxiosParamCreator = exports.EventsStaffApi = exports.EventsStaffApiFactory = exports.EventsStaffApiFp = exports.EventsStaffApiAxiosParamCreator = exports.EventsManagerApi = exports.EventsManagerApiFactory = exports.EventsManagerApiFp = exports.EventsManagerApiAxiosParamCreator = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = exports.EventsApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.ClubsStaffApi = exports.ClubsStaffApiFactory = exports.ClubsStaffApiFp = exports.ClubsStaffApiAxiosParamCreator = exports.ClubsManagerApi = exports.ClubsManagerApiFactory = exports.ClubsManagerApiFp = exports.ClubsManagerApiAxiosParamCreator = exports.ClubsApi = exports.ClubsApiFactory = exports.ClubsApiFp = exports.ClubsApiAxiosParamCreator = exports.ClubSettingsManagerApi = exports.ClubSettingsManagerApiFactory = exports.ClubSettingsManagerApiFp = exports.ClubSettingsManagerApiAxiosParamCreator = exports.ClubRolesStaffApi = exports.ClubRolesStaffApiFactory = exports.ClubRolesStaffApiFp = exports.ClubRolesStaffApiAxiosParamCreator = exports.ClubRolesManagerApi = exports.ClubRolesManagerApiFactory = exports.ClubRolesManagerApiFp = exports.ClubRolesManagerApiAxiosParamCreator = exports.ClubAnalyticsStaffApi = exports.ClubAnalyticsStaffApiFactory = exports.ClubAnalyticsStaffApiFp = exports.ClubAnalyticsStaffApiAxiosParamCreator = exports.ClubAnalyticsApi = exports.ClubAnalyticsApiFactory = exports.ClubAnalyticsApiFp = exports.ClubAnalyticsApiAxiosParamCreator = void 0;
27
+ exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = exports.SubscriptionsUserApiFp = exports.SubscriptionsUserApiAxiosParamCreator = exports.SubscriptionsStaffApi = exports.SubscriptionsStaffApiFactory = exports.SubscriptionsStaffApiFp = exports.SubscriptionsStaffApiAxiosParamCreator = exports.SubscriptionsPublicApi = exports.SubscriptionsPublicApiFactory = exports.SubscriptionsPublicApiFp = exports.SubscriptionsPublicApiAxiosParamCreator = exports.SubscriptionsManagerApi = exports.SubscriptionsManagerApiFactory = exports.SubscriptionsManagerApiFp = exports.SubscriptionsManagerApiAxiosParamCreator = exports.SportsStaffApi = exports.SportsStaffApiFactory = exports.SportsStaffApiFp = exports.SportsStaffApiAxiosParamCreator = exports.SportsManagerApi = exports.SportsManagerApiFactory = void 0;
28
28
  const axios_1 = require("axios");
29
29
  // Some imports not used depending on template conditions
30
30
  // @ts-ignore
31
31
  const common_1 = require("./common");
32
32
  // @ts-ignore
33
33
  const base_1 = require("./base");
34
- exports.BookingHistoryPerformedByTypeEnum = {
34
+ exports.BookingHistoryPopulatedPerformedByTypeEnum = {
35
35
  User: 'user',
36
36
  Manager: 'manager',
37
37
  System: 'system'
@@ -42,10 +42,10 @@ exports.BookingHistoryPerformedByTypeEnum = {
42
42
  * @enum {string}
43
43
  */
44
44
  exports.BookingStatus = {
45
+ Paid: 'paid',
45
46
  Active: 'active',
46
- Past: 'past',
47
47
  Pending: 'pending',
48
- Expired: 'expired',
48
+ ActivePaymentsTimeout: 'active_payments_timeout',
49
49
  Canceled: 'canceled',
50
50
  NoShow: 'no-show'
51
51
  };
@@ -121,6 +121,18 @@ exports.PlanInterval = {
121
121
  Trimester: 'trimester',
122
122
  Semester: 'semester'
123
123
  };
124
+ /**
125
+ *
126
+ * @export
127
+ * @enum {string}
128
+ */
129
+ exports.PlayerCategoryId = {
130
+ SameLevel: 'same-level',
131
+ MutualConnections: 'mutual-connections',
132
+ ClubMembers: 'club-members',
133
+ MostActive: 'most-active',
134
+ Nearby: 'nearby'
135
+ };
124
136
  exports.RegisterRequestBodyLocationTypeEnum = {
125
137
  Point: 'Point'
126
138
  };
@@ -288,6 +300,70 @@ const BookingsApiAxiosParamCreator = function (configuration) {
288
300
  options: localVarRequestOptions,
289
301
  };
290
302
  }),
303
+ /**
304
+ * Recherche des créneaux disponibles pour une réservation rapide
305
+ * @param {number} [latitude]
306
+ * @param {number} [longitude]
307
+ * @param {number} [radiusInKm]
308
+ * @param {string} [date]
309
+ * @param {string} [sportId]
310
+ * @param {string} [startTime]
311
+ * @param {number} [priceMax]
312
+ * @param {string} [courtTypes]
313
+ * @param {number} [limitPerClub]
314
+ * @param {number} [maxClubs]
315
+ * @param {*} [options] Override http request option.
316
+ * @throws {RequiredError}
317
+ */
318
+ getQuickReservationSlots: (latitude_1, longitude_1, radiusInKm_1, date_1, sportId_1, startTime_1, priceMax_1, courtTypes_1, limitPerClub_1, maxClubs_1, ...args_1) => __awaiter(this, [latitude_1, longitude_1, radiusInKm_1, date_1, sportId_1, startTime_1, priceMax_1, courtTypes_1, limitPerClub_1, maxClubs_1, ...args_1], void 0, function* (latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, limitPerClub, maxClubs, options = {}) {
319
+ const localVarPath = `/api/bookings/quick-reservations`;
320
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
321
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
322
+ let baseOptions;
323
+ if (configuration) {
324
+ baseOptions = configuration.baseOptions;
325
+ }
326
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
327
+ const localVarHeaderParameter = {};
328
+ const localVarQueryParameter = {};
329
+ if (latitude !== undefined) {
330
+ localVarQueryParameter['latitude'] = latitude;
331
+ }
332
+ if (longitude !== undefined) {
333
+ localVarQueryParameter['longitude'] = longitude;
334
+ }
335
+ if (radiusInKm !== undefined) {
336
+ localVarQueryParameter['radiusInKm'] = radiusInKm;
337
+ }
338
+ if (date !== undefined) {
339
+ localVarQueryParameter['date'] = date;
340
+ }
341
+ if (sportId !== undefined) {
342
+ localVarQueryParameter['sportId'] = sportId;
343
+ }
344
+ if (startTime !== undefined) {
345
+ localVarQueryParameter['startTime'] = startTime;
346
+ }
347
+ if (priceMax !== undefined) {
348
+ localVarQueryParameter['priceMax'] = priceMax;
349
+ }
350
+ if (courtTypes !== undefined) {
351
+ localVarQueryParameter['courtTypes'] = courtTypes;
352
+ }
353
+ if (limitPerClub !== undefined) {
354
+ localVarQueryParameter['limitPerClub'] = limitPerClub;
355
+ }
356
+ if (maxClubs !== undefined) {
357
+ localVarQueryParameter['maxClubs'] = maxClubs;
358
+ }
359
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
360
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
361
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
362
+ return {
363
+ url: (0, common_1.toPathString)(localVarUrlObj),
364
+ options: localVarRequestOptions,
365
+ };
366
+ }),
291
367
  };
292
368
  };
293
369
  exports.BookingsApiAxiosParamCreator = BookingsApiAxiosParamCreator;
@@ -313,6 +389,30 @@ const BookingsApiFp = function (configuration) {
313
389
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
314
390
  });
315
391
  },
392
+ /**
393
+ * Recherche des créneaux disponibles pour une réservation rapide
394
+ * @param {number} [latitude]
395
+ * @param {number} [longitude]
396
+ * @param {number} [radiusInKm]
397
+ * @param {string} [date]
398
+ * @param {string} [sportId]
399
+ * @param {string} [startTime]
400
+ * @param {number} [priceMax]
401
+ * @param {string} [courtTypes]
402
+ * @param {number} [limitPerClub]
403
+ * @param {number} [maxClubs]
404
+ * @param {*} [options] Override http request option.
405
+ * @throws {RequiredError}
406
+ */
407
+ getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, limitPerClub, maxClubs, options) {
408
+ return __awaiter(this, void 0, void 0, function* () {
409
+ var _a, _b, _c;
410
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, limitPerClub, maxClubs, options);
411
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
412
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.getQuickReservationSlots']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
413
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
414
+ });
415
+ },
316
416
  };
317
417
  };
318
418
  exports.BookingsApiFp = BookingsApiFp;
@@ -332,6 +432,15 @@ const BookingsApiFactory = function (configuration, basePath, axios) {
332
432
  getBookingHistory(requestParameters, options) {
333
433
  return localVarFp.getBookingHistory(requestParameters.bookingId, options).then((request) => request(axios, basePath));
334
434
  },
435
+ /**
436
+ * Recherche des créneaux disponibles pour une réservation rapide
437
+ * @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
438
+ * @param {*} [options] Override http request option.
439
+ * @throws {RequiredError}
440
+ */
441
+ getQuickReservationSlots(requestParameters = {}, options) {
442
+ return localVarFp.getQuickReservationSlots(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.date, requestParameters.sportId, requestParameters.startTime, requestParameters.priceMax, requestParameters.courtTypes, requestParameters.limitPerClub, requestParameters.maxClubs, options).then((request) => request(axios, basePath));
443
+ },
335
444
  };
336
445
  };
337
446
  exports.BookingsApiFactory = BookingsApiFactory;
@@ -352,6 +461,16 @@ class BookingsApi extends base_1.BaseAPI {
352
461
  getBookingHistory(requestParameters, options) {
353
462
  return (0, exports.BookingsApiFp)(this.configuration).getBookingHistory(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
354
463
  }
464
+ /**
465
+ * Recherche des créneaux disponibles pour une réservation rapide
466
+ * @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
467
+ * @param {*} [options] Override http request option.
468
+ * @throws {RequiredError}
469
+ * @memberof BookingsApi
470
+ */
471
+ getQuickReservationSlots(requestParameters = {}, options) {
472
+ return (0, exports.BookingsApiFp)(this.configuration).getQuickReservationSlots(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.date, requestParameters.sportId, requestParameters.startTime, requestParameters.priceMax, requestParameters.courtTypes, requestParameters.limitPerClub, requestParameters.maxClubs, options).then((request) => request(this.axios, this.basePath));
473
+ }
355
474
  }
356
475
  exports.BookingsApi = BookingsApi;
357
476
  /**
@@ -610,7 +729,7 @@ const BookingsStaffApiAxiosParamCreator = function (configuration) {
610
729
  getBookingHistoryStaff: (bookingId_1, ...args_1) => __awaiter(this, [bookingId_1, ...args_1], void 0, function* (bookingId, options = {}) {
611
730
  // verify required parameter 'bookingId' is not null or undefined
612
731
  (0, common_1.assertParamExists)('getBookingHistoryStaff', 'bookingId', bookingId);
613
- const localVarPath = `/api/bookings/staff/{bookingId}`
732
+ const localVarPath = `/api/bookings/staff/history{bookingId}`
614
733
  .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
615
734
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
616
735
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -7442,6 +7561,33 @@ const UsersApiAxiosParamCreator = function (configuration) {
7442
7561
  options: localVarRequestOptions,
7443
7562
  };
7444
7563
  }),
7564
+ /**
7565
+ *
7566
+ * @param {*} [options] Override http request option.
7567
+ * @throws {RequiredError}
7568
+ */
7569
+ getPlayerCategories: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
7570
+ const localVarPath = `/api/users/players/categories`;
7571
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7572
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7573
+ let baseOptions;
7574
+ if (configuration) {
7575
+ baseOptions = configuration.baseOptions;
7576
+ }
7577
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
7578
+ const localVarHeaderParameter = {};
7579
+ const localVarQueryParameter = {};
7580
+ // authentication bearerAuth required
7581
+ // http bearer authentication required
7582
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
7583
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7584
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7585
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7586
+ return {
7587
+ url: (0, common_1.toPathString)(localVarUrlObj),
7588
+ options: localVarRequestOptions,
7589
+ };
7590
+ }),
7445
7591
  /**
7446
7592
  *
7447
7593
  * @param {number} [limit]
@@ -7508,6 +7654,73 @@ const UsersApiAxiosParamCreator = function (configuration) {
7508
7654
  options: localVarRequestOptions,
7509
7655
  };
7510
7656
  }),
7657
+ /**
7658
+ *
7659
+ * @param {PlayerCategoryId} [category]
7660
+ * @param {string} [search]
7661
+ * @param {string} [gender]
7662
+ * @param {boolean} [sharedClub]
7663
+ * @param {string} [sportLevels]
7664
+ * @param {number} [limit]
7665
+ * @param {number} [offset]
7666
+ * @param {number} [latitude]
7667
+ * @param {number} [longitude]
7668
+ * @param {number} [radiusInKm]
7669
+ * @param {*} [options] Override http request option.
7670
+ * @throws {RequiredError}
7671
+ */
7672
+ listPlayers: (category_1, search_1, gender_1, sharedClub_1, sportLevels_1, limit_1, offset_1, latitude_1, longitude_1, radiusInKm_1, ...args_1) => __awaiter(this, [category_1, search_1, gender_1, sharedClub_1, sportLevels_1, limit_1, offset_1, latitude_1, longitude_1, radiusInKm_1, ...args_1], void 0, function* (category, search, gender, sharedClub, sportLevels, limit, offset, latitude, longitude, radiusInKm, options = {}) {
7673
+ const localVarPath = `/api/users/players`;
7674
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7675
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7676
+ let baseOptions;
7677
+ if (configuration) {
7678
+ baseOptions = configuration.baseOptions;
7679
+ }
7680
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
7681
+ const localVarHeaderParameter = {};
7682
+ const localVarQueryParameter = {};
7683
+ // authentication bearerAuth required
7684
+ // http bearer authentication required
7685
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
7686
+ if (category !== undefined) {
7687
+ localVarQueryParameter['category'] = category;
7688
+ }
7689
+ if (search !== undefined) {
7690
+ localVarQueryParameter['search'] = search;
7691
+ }
7692
+ if (gender !== undefined) {
7693
+ localVarQueryParameter['gender'] = gender;
7694
+ }
7695
+ if (sharedClub !== undefined) {
7696
+ localVarQueryParameter['sharedClub'] = sharedClub;
7697
+ }
7698
+ if (sportLevels !== undefined) {
7699
+ localVarQueryParameter['sportLevels'] = sportLevels;
7700
+ }
7701
+ if (limit !== undefined) {
7702
+ localVarQueryParameter['limit'] = limit;
7703
+ }
7704
+ if (offset !== undefined) {
7705
+ localVarQueryParameter['offset'] = offset;
7706
+ }
7707
+ if (latitude !== undefined) {
7708
+ localVarQueryParameter['latitude'] = latitude;
7709
+ }
7710
+ if (longitude !== undefined) {
7711
+ localVarQueryParameter['longitude'] = longitude;
7712
+ }
7713
+ if (radiusInKm !== undefined) {
7714
+ localVarQueryParameter['radiusInKm'] = radiusInKm;
7715
+ }
7716
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7717
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7718
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7719
+ return {
7720
+ url: (0, common_1.toPathString)(localVarUrlObj),
7721
+ options: localVarRequestOptions,
7722
+ };
7723
+ }),
7511
7724
  /**
7512
7725
  *
7513
7726
  * @param {LoginRequestBody} loginRequestBody
@@ -8288,6 +8501,20 @@ const UsersApiFp = function (configuration) {
8288
8501
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8289
8502
  });
8290
8503
  },
8504
+ /**
8505
+ *
8506
+ * @param {*} [options] Override http request option.
8507
+ * @throws {RequiredError}
8508
+ */
8509
+ getPlayerCategories(options) {
8510
+ return __awaiter(this, void 0, void 0, function* () {
8511
+ var _a, _b, _c;
8512
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPlayerCategories(options);
8513
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8514
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.getPlayerCategories']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8515
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8516
+ });
8517
+ },
8291
8518
  /**
8292
8519
  *
8293
8520
  * @param {number} [limit]
@@ -8319,6 +8546,30 @@ const UsersApiFp = function (configuration) {
8319
8546
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8320
8547
  });
8321
8548
  },
8549
+ /**
8550
+ *
8551
+ * @param {PlayerCategoryId} [category]
8552
+ * @param {string} [search]
8553
+ * @param {string} [gender]
8554
+ * @param {boolean} [sharedClub]
8555
+ * @param {string} [sportLevels]
8556
+ * @param {number} [limit]
8557
+ * @param {number} [offset]
8558
+ * @param {number} [latitude]
8559
+ * @param {number} [longitude]
8560
+ * @param {number} [radiusInKm]
8561
+ * @param {*} [options] Override http request option.
8562
+ * @throws {RequiredError}
8563
+ */
8564
+ listPlayers(category, search, gender, sharedClub, sportLevels, limit, offset, latitude, longitude, radiusInKm, options) {
8565
+ return __awaiter(this, void 0, void 0, function* () {
8566
+ var _a, _b, _c;
8567
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listPlayers(category, search, gender, sharedClub, sportLevels, limit, offset, latitude, longitude, radiusInKm, options);
8568
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8569
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.listPlayers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8570
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8571
+ });
8572
+ },
8322
8573
  /**
8323
8574
  *
8324
8575
  * @param {LoginRequestBody} loginRequestBody
@@ -8730,6 +8981,14 @@ const UsersApiFactory = function (configuration, basePath, axios) {
8730
8981
  getNearestUsersFromCoordinates(requestParameters = {}, options) {
8731
8982
  return localVarFp.getNearestUsersFromCoordinates(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(axios, basePath));
8732
8983
  },
8984
+ /**
8985
+ *
8986
+ * @param {*} [options] Override http request option.
8987
+ * @throws {RequiredError}
8988
+ */
8989
+ getPlayerCategories(options) {
8990
+ return localVarFp.getPlayerCategories(options).then((request) => request(axios, basePath));
8991
+ },
8733
8992
  /**
8734
8993
  *
8735
8994
  * @param {UsersApiGetUserBookingsRequest} requestParameters Request parameters.
@@ -8748,6 +9007,15 @@ const UsersApiFactory = function (configuration, basePath, axios) {
8748
9007
  getUserProfileById(requestParameters, options) {
8749
9008
  return localVarFp.getUserProfileById(requestParameters.id, options).then((request) => request(axios, basePath));
8750
9009
  },
9010
+ /**
9011
+ *
9012
+ * @param {UsersApiListPlayersRequest} requestParameters Request parameters.
9013
+ * @param {*} [options] Override http request option.
9014
+ * @throws {RequiredError}
9015
+ */
9016
+ listPlayers(requestParameters = {}, options) {
9017
+ return localVarFp.listPlayers(requestParameters.category, requestParameters.search, requestParameters.gender, requestParameters.sharedClub, requestParameters.sportLevels, requestParameters.limit, requestParameters.offset, requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, options).then((request) => request(axios, basePath));
9018
+ },
8751
9019
  /**
8752
9020
  *
8753
9021
  * @param {UsersApiLoginRequest} requestParameters Request parameters.
@@ -9074,6 +9342,15 @@ class UsersApi extends base_1.BaseAPI {
9074
9342
  getNearestUsersFromCoordinates(requestParameters = {}, options) {
9075
9343
  return (0, exports.UsersApiFp)(this.configuration).getNearestUsersFromCoordinates(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
9076
9344
  }
9345
+ /**
9346
+ *
9347
+ * @param {*} [options] Override http request option.
9348
+ * @throws {RequiredError}
9349
+ * @memberof UsersApi
9350
+ */
9351
+ getPlayerCategories(options) {
9352
+ return (0, exports.UsersApiFp)(this.configuration).getPlayerCategories(options).then((request) => request(this.axios, this.basePath));
9353
+ }
9077
9354
  /**
9078
9355
  *
9079
9356
  * @param {UsersApiGetUserBookingsRequest} requestParameters Request parameters.
@@ -9094,6 +9371,16 @@ class UsersApi extends base_1.BaseAPI {
9094
9371
  getUserProfileById(requestParameters, options) {
9095
9372
  return (0, exports.UsersApiFp)(this.configuration).getUserProfileById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
9096
9373
  }
9374
+ /**
9375
+ *
9376
+ * @param {UsersApiListPlayersRequest} requestParameters Request parameters.
9377
+ * @param {*} [options] Override http request option.
9378
+ * @throws {RequiredError}
9379
+ * @memberof UsersApi
9380
+ */
9381
+ listPlayers(requestParameters = {}, options) {
9382
+ return (0, exports.UsersApiFp)(this.configuration).listPlayers(requestParameters.category, requestParameters.search, requestParameters.gender, requestParameters.sharedClub, requestParameters.sportLevels, requestParameters.limit, requestParameters.offset, requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, options).then((request) => request(this.axios, this.basePath));
9383
+ }
9097
9384
  /**
9098
9385
  *
9099
9386
  * @param {UsersApiLoginRequest} requestParameters Request parameters.
package/dist/base.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.67
5
+ * The version of the OpenAPI document: 1.0.68
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
  * openapi.json
6
6
  * Pandook API Documentation
7
7
  *
8
- * The version of the OpenAPI document: 1.0.67
8
+ * The version of the OpenAPI document: 1.0.68
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
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.67
5
+ * The version of the OpenAPI document: 1.0.68
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
  * openapi.json
6
6
  * Pandook API Documentation
7
7
  *
8
- * The version of the OpenAPI document: 1.0.67
8
+ * The version of the OpenAPI document: 1.0.68
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.67
5
+ * The version of the OpenAPI document: 1.0.68
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * openapi.json
6
6
  * Pandook API Documentation
7
7
  *
8
- * The version of the OpenAPI document: 1.0.67
8
+ * The version of the OpenAPI document: 1.0.68
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).