@tennac-booking/sdk 1.0.68 → 1.0.69

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/dist/api.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).
@@ -601,8 +601,8 @@ export interface BookingResponseOnsitePaymentsInner {
601
601
  * @enum {string}
602
602
  */
603
603
  export declare const BookingStatus: {
604
+ readonly Paid: "paid";
604
605
  readonly Active: "active";
605
- readonly Past: "past";
606
606
  readonly Pending: "pending";
607
607
  readonly Expired: "expired";
608
608
  readonly Canceled: "canceled";
@@ -1521,6 +1521,18 @@ export interface CourtResponse {
1521
1521
  * @memberof CourtResponse
1522
1522
  */
1523
1523
  'comments'?: string;
1524
+ /**
1525
+ *
1526
+ * @type {number}
1527
+ * @memberof CourtResponse
1528
+ */
1529
+ 'pricePerHour'?: number;
1530
+ /**
1531
+ *
1532
+ * @type {number}
1533
+ * @memberof CourtResponse
1534
+ */
1535
+ 'bookingCount'?: number;
1524
1536
  /**
1525
1537
  * Durée par défaut d\'un créneau en minutes
1526
1538
  * @type {number}
@@ -1622,6 +1634,12 @@ export interface CreateBookingRequest {
1622
1634
  * @memberof CreateBookingRequest
1623
1635
  */
1624
1636
  'paymentMethod'?: PaymentMethod;
1637
+ /**
1638
+ * Indique si l\'utilisateur veut utiliser sa méthode de paiement par défaut
1639
+ * @type {boolean}
1640
+ * @memberof CreateBookingRequest
1641
+ */
1642
+ 'useDefaultPaymentMethod'?: boolean;
1625
1643
  }
1626
1644
  /**
1627
1645
  *
@@ -3625,6 +3643,94 @@ export declare const PlanInterval: {
3625
3643
  readonly Semester: "semester";
3626
3644
  };
3627
3645
  export type PlanInterval = typeof PlanInterval[keyof typeof PlanInterval];
3646
+ /**
3647
+ *
3648
+ * @export
3649
+ * @interface PlayerCategoriesResponse
3650
+ */
3651
+ export interface PlayerCategoriesResponse {
3652
+ /**
3653
+ *
3654
+ * @type {Array<PlayerCategory>}
3655
+ * @memberof PlayerCategoriesResponse
3656
+ */
3657
+ 'categories': Array<PlayerCategory>;
3658
+ }
3659
+ /**
3660
+ *
3661
+ * @export
3662
+ * @interface PlayerCategory
3663
+ */
3664
+ export interface PlayerCategory {
3665
+ /**
3666
+ *
3667
+ * @type {PlayerCategoryId}
3668
+ * @memberof PlayerCategory
3669
+ */
3670
+ 'id': PlayerCategoryId;
3671
+ /**
3672
+ *
3673
+ * @type {string}
3674
+ * @memberof PlayerCategory
3675
+ */
3676
+ 'label': string;
3677
+ /**
3678
+ *
3679
+ * @type {string}
3680
+ * @memberof PlayerCategory
3681
+ */
3682
+ 'description'?: string;
3683
+ /**
3684
+ *
3685
+ * @type {number}
3686
+ * @memberof PlayerCategory
3687
+ */
3688
+ 'limit'?: number;
3689
+ }
3690
+ /**
3691
+ *
3692
+ * @export
3693
+ * @enum {string}
3694
+ */
3695
+ export declare const PlayerCategoryId: {
3696
+ readonly SameLevel: "same-level";
3697
+ readonly MutualConnections: "mutual-connections";
3698
+ readonly ClubMembers: "club-members";
3699
+ readonly MostActive: "most-active";
3700
+ readonly Nearby: "nearby";
3701
+ };
3702
+ export type PlayerCategoryId = typeof PlayerCategoryId[keyof typeof PlayerCategoryId];
3703
+ /**
3704
+ *
3705
+ * @export
3706
+ * @interface PlayerListResponse
3707
+ */
3708
+ export interface PlayerListResponse {
3709
+ /**
3710
+ *
3711
+ * @type {Array<PlayerSummary>}
3712
+ * @memberof PlayerListResponse
3713
+ */
3714
+ 'players': Array<PlayerSummary>;
3715
+ /**
3716
+ *
3717
+ * @type {number}
3718
+ * @memberof PlayerListResponse
3719
+ */
3720
+ 'total'?: number;
3721
+ /**
3722
+ *
3723
+ * @type {boolean}
3724
+ * @memberof PlayerListResponse
3725
+ */
3726
+ 'hasMore'?: boolean;
3727
+ /**
3728
+ *
3729
+ * @type {number}
3730
+ * @memberof PlayerListResponse
3731
+ */
3732
+ 'nextOffset'?: number;
3733
+ }
3628
3734
  /**
3629
3735
  *
3630
3736
  * @export
@@ -3757,13 +3863,13 @@ export interface PlayerSummary {
3757
3863
  * @type {string}
3758
3864
  * @memberof PlayerSummary
3759
3865
  */
3760
- 'lastPlayedAt'?: string;
3866
+ 'lastPlayedAt'?: string | null;
3761
3867
  /**
3762
3868
  *
3763
3869
  * @type {number}
3764
3870
  * @memberof PlayerSummary
3765
3871
  */
3766
- 'playCount'?: number;
3872
+ 'playCount'?: number | null;
3767
3873
  }
3768
3874
  /**
3769
3875
  *
@@ -6732,6 +6838,12 @@ export interface UserProfileResponse {
6732
6838
  * @memberof UserProfileResponse
6733
6839
  */
6734
6840
  'subscriptionsCount'?: number;
6841
+ /**
6842
+ *
6843
+ * @type {Array<ClubSubscriptions>}
6844
+ * @memberof UserProfileResponse
6845
+ */
6846
+ 'subscriptions'?: Array<ClubSubscriptions>;
6735
6847
  /**
6736
6848
  *
6737
6849
  * @type {Array<ClubSummary>}
@@ -11047,6 +11159,12 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
11047
11159
  * @throws {RequiredError}
11048
11160
  */
11049
11161
  getNearestUsersFromCoordinates: (latitude?: number, longitude?: number, radiusInKm?: number, limit?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
11162
+ /**
11163
+ *
11164
+ * @param {*} [options] Override http request option.
11165
+ * @throws {RequiredError}
11166
+ */
11167
+ getPlayerCategories: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
11050
11168
  /**
11051
11169
  *
11052
11170
  * @param {number} [limit]
@@ -11062,6 +11180,23 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
11062
11180
  * @throws {RequiredError}
11063
11181
  */
11064
11182
  getUserProfileById: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
11183
+ /**
11184
+ *
11185
+ * @param {PlayerCategoryId} [category]
11186
+ * @param {string} [search]
11187
+ * @param {string} [gender]
11188
+ * @param {boolean} [sharedClub]
11189
+ * @param {string} [sportLevels]
11190
+ * @param {number} [limit]
11191
+ * @param {number} [offset]
11192
+ * @param {boolean} [useLocation]
11193
+ * @param {number} [latitude]
11194
+ * @param {number} [longitude]
11195
+ * @param {number} [radiusInKm]
11196
+ * @param {*} [options] Override http request option.
11197
+ * @throws {RequiredError}
11198
+ */
11199
+ listPlayers: (category?: PlayerCategoryId, search?: string, gender?: string, sharedClub?: boolean, sportLevels?: string, limit?: number, offset?: number, useLocation?: boolean, latitude?: number, longitude?: number, radiusInKm?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
11065
11200
  /**
11066
11201
  *
11067
11202
  * @param {LoginRequestBody} loginRequestBody
@@ -11315,6 +11450,12 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
11315
11450
  getNearestUsersFromCoordinates(latitude?: number, longitude?: number, radiusInKm?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<{
11316
11451
  [key: string]: any;
11317
11452
  }>>>;
11453
+ /**
11454
+ *
11455
+ * @param {*} [options] Override http request option.
11456
+ * @throws {RequiredError}
11457
+ */
11458
+ getPlayerCategories(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PlayerCategoriesResponse>>;
11318
11459
  /**
11319
11460
  *
11320
11461
  * @param {number} [limit]
@@ -11330,6 +11471,23 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
11330
11471
  * @throws {RequiredError}
11331
11472
  */
11332
11473
  getUserProfileById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PublicUserProfileResponse>>;
11474
+ /**
11475
+ *
11476
+ * @param {PlayerCategoryId} [category]
11477
+ * @param {string} [search]
11478
+ * @param {string} [gender]
11479
+ * @param {boolean} [sharedClub]
11480
+ * @param {string} [sportLevels]
11481
+ * @param {number} [limit]
11482
+ * @param {number} [offset]
11483
+ * @param {boolean} [useLocation]
11484
+ * @param {number} [latitude]
11485
+ * @param {number} [longitude]
11486
+ * @param {number} [radiusInKm]
11487
+ * @param {*} [options] Override http request option.
11488
+ * @throws {RequiredError}
11489
+ */
11490
+ listPlayers(category?: PlayerCategoryId, search?: string, gender?: string, sharedClub?: boolean, sportLevels?: string, limit?: number, offset?: number, useLocation?: boolean, latitude?: number, longitude?: number, radiusInKm?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PlayerListResponse>>;
11333
11491
  /**
11334
11492
  *
11335
11493
  * @param {LoginRequestBody} loginRequestBody
@@ -11575,6 +11733,12 @@ export declare const UsersApiFactory: (configuration?: Configuration, basePath?:
11575
11733
  getNearestUsersFromCoordinates(requestParameters?: UsersApiGetNearestUsersFromCoordinatesRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<{
11576
11734
  [key: string]: any;
11577
11735
  }>>;
11736
+ /**
11737
+ *
11738
+ * @param {*} [options] Override http request option.
11739
+ * @throws {RequiredError}
11740
+ */
11741
+ getPlayerCategories(options?: RawAxiosRequestConfig): AxiosPromise<PlayerCategoriesResponse>;
11578
11742
  /**
11579
11743
  *
11580
11744
  * @param {UsersApiGetUserBookingsRequest} requestParameters Request parameters.
@@ -11589,6 +11753,13 @@ export declare const UsersApiFactory: (configuration?: Configuration, basePath?:
11589
11753
  * @throws {RequiredError}
11590
11754
  */
11591
11755
  getUserProfileById(requestParameters: UsersApiGetUserProfileByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<PublicUserProfileResponse>;
11756
+ /**
11757
+ *
11758
+ * @param {UsersApiListPlayersRequest} requestParameters Request parameters.
11759
+ * @param {*} [options] Override http request option.
11760
+ * @throws {RequiredError}
11761
+ */
11762
+ listPlayers(requestParameters?: UsersApiListPlayersRequest, options?: RawAxiosRequestConfig): AxiosPromise<PlayerListResponse>;
11592
11763
  /**
11593
11764
  *
11594
11765
  * @param {UsersApiLoginRequest} requestParameters Request parameters.
@@ -11931,6 +12102,79 @@ export interface UsersApiGetUserProfileByIdRequest {
11931
12102
  */
11932
12103
  readonly id: string;
11933
12104
  }
12105
+ /**
12106
+ * Request parameters for listPlayers operation in UsersApi.
12107
+ * @export
12108
+ * @interface UsersApiListPlayersRequest
12109
+ */
12110
+ export interface UsersApiListPlayersRequest {
12111
+ /**
12112
+ *
12113
+ * @type {PlayerCategoryId}
12114
+ * @memberof UsersApiListPlayers
12115
+ */
12116
+ readonly category?: PlayerCategoryId;
12117
+ /**
12118
+ *
12119
+ * @type {string}
12120
+ * @memberof UsersApiListPlayers
12121
+ */
12122
+ readonly search?: string;
12123
+ /**
12124
+ *
12125
+ * @type {string}
12126
+ * @memberof UsersApiListPlayers
12127
+ */
12128
+ readonly gender?: string;
12129
+ /**
12130
+ *
12131
+ * @type {boolean}
12132
+ * @memberof UsersApiListPlayers
12133
+ */
12134
+ readonly sharedClub?: boolean;
12135
+ /**
12136
+ *
12137
+ * @type {string}
12138
+ * @memberof UsersApiListPlayers
12139
+ */
12140
+ readonly sportLevels?: string;
12141
+ /**
12142
+ *
12143
+ * @type {number}
12144
+ * @memberof UsersApiListPlayers
12145
+ */
12146
+ readonly limit?: number;
12147
+ /**
12148
+ *
12149
+ * @type {number}
12150
+ * @memberof UsersApiListPlayers
12151
+ */
12152
+ readonly offset?: number;
12153
+ /**
12154
+ *
12155
+ * @type {boolean}
12156
+ * @memberof UsersApiListPlayers
12157
+ */
12158
+ readonly useLocation?: boolean;
12159
+ /**
12160
+ *
12161
+ * @type {number}
12162
+ * @memberof UsersApiListPlayers
12163
+ */
12164
+ readonly latitude?: number;
12165
+ /**
12166
+ *
12167
+ * @type {number}
12168
+ * @memberof UsersApiListPlayers
12169
+ */
12170
+ readonly longitude?: number;
12171
+ /**
12172
+ *
12173
+ * @type {number}
12174
+ * @memberof UsersApiListPlayers
12175
+ */
12176
+ readonly radiusInKm?: number;
12177
+ }
11934
12178
  /**
11935
12179
  * Request parameters for login operation in UsersApi.
11936
12180
  * @export
@@ -12284,6 +12528,13 @@ export declare class UsersApi extends BaseAPI {
12284
12528
  getNearestUsersFromCoordinates(requestParameters?: UsersApiGetNearestUsersFromCoordinatesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<{
12285
12529
  [key: string]: any;
12286
12530
  }[], any, {}>>;
12531
+ /**
12532
+ *
12533
+ * @param {*} [options] Override http request option.
12534
+ * @throws {RequiredError}
12535
+ * @memberof UsersApi
12536
+ */
12537
+ getPlayerCategories(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PlayerCategoriesResponse, any, {}>>;
12287
12538
  /**
12288
12539
  *
12289
12540
  * @param {UsersApiGetUserBookingsRequest} requestParameters Request parameters.
@@ -12300,6 +12551,14 @@ export declare class UsersApi extends BaseAPI {
12300
12551
  * @memberof UsersApi
12301
12552
  */
12302
12553
  getUserProfileById(requestParameters: UsersApiGetUserProfileByIdRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PublicUserProfileResponse, any, {}>>;
12554
+ /**
12555
+ *
12556
+ * @param {UsersApiListPlayersRequest} requestParameters Request parameters.
12557
+ * @param {*} [options] Override http request option.
12558
+ * @throws {RequiredError}
12559
+ * @memberof UsersApi
12560
+ */
12561
+ listPlayers(requestParameters?: UsersApiListPlayersRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PlayerListResponse, any, {}>>;
12303
12562
  /**
12304
12563
  *
12305
12564
  * @param {UsersApiLoginRequest} requestParameters Request parameters.
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,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.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.BookingHistoryPerformedByTypeEnum = 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
@@ -42,8 +42,8 @@ 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
48
  Expired: 'expired',
49
49
  Canceled: 'canceled',
@@ -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
  };
@@ -610,7 +622,7 @@ const BookingsStaffApiAxiosParamCreator = function (configuration) {
610
622
  getBookingHistoryStaff: (bookingId_1, ...args_1) => __awaiter(this, [bookingId_1, ...args_1], void 0, function* (bookingId, options = {}) {
611
623
  // verify required parameter 'bookingId' is not null or undefined
612
624
  (0, common_1.assertParamExists)('getBookingHistoryStaff', 'bookingId', bookingId);
613
- const localVarPath = `/api/bookings/staff/{bookingId}`
625
+ const localVarPath = `/api/bookings/staff/history{bookingId}`
614
626
  .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
615
627
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
616
628
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -7442,6 +7454,33 @@ const UsersApiAxiosParamCreator = function (configuration) {
7442
7454
  options: localVarRequestOptions,
7443
7455
  };
7444
7456
  }),
7457
+ /**
7458
+ *
7459
+ * @param {*} [options] Override http request option.
7460
+ * @throws {RequiredError}
7461
+ */
7462
+ getPlayerCategories: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
7463
+ const localVarPath = `/api/users/players/categories`;
7464
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7465
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7466
+ let baseOptions;
7467
+ if (configuration) {
7468
+ baseOptions = configuration.baseOptions;
7469
+ }
7470
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
7471
+ const localVarHeaderParameter = {};
7472
+ const localVarQueryParameter = {};
7473
+ // authentication bearerAuth required
7474
+ // http bearer authentication required
7475
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
7476
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7477
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7478
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7479
+ return {
7480
+ url: (0, common_1.toPathString)(localVarUrlObj),
7481
+ options: localVarRequestOptions,
7482
+ };
7483
+ }),
7445
7484
  /**
7446
7485
  *
7447
7486
  * @param {number} [limit]
@@ -7508,6 +7547,77 @@ const UsersApiAxiosParamCreator = function (configuration) {
7508
7547
  options: localVarRequestOptions,
7509
7548
  };
7510
7549
  }),
7550
+ /**
7551
+ *
7552
+ * @param {PlayerCategoryId} [category]
7553
+ * @param {string} [search]
7554
+ * @param {string} [gender]
7555
+ * @param {boolean} [sharedClub]
7556
+ * @param {string} [sportLevels]
7557
+ * @param {number} [limit]
7558
+ * @param {number} [offset]
7559
+ * @param {boolean} [useLocation]
7560
+ * @param {number} [latitude]
7561
+ * @param {number} [longitude]
7562
+ * @param {number} [radiusInKm]
7563
+ * @param {*} [options] Override http request option.
7564
+ * @throws {RequiredError}
7565
+ */
7566
+ listPlayers: (category_1, search_1, gender_1, sharedClub_1, sportLevels_1, limit_1, offset_1, useLocation_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, useLocation_1, latitude_1, longitude_1, radiusInKm_1, ...args_1], void 0, function* (category, search, gender, sharedClub, sportLevels, limit, offset, useLocation, latitude, longitude, radiusInKm, options = {}) {
7567
+ const localVarPath = `/api/users/players`;
7568
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7569
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7570
+ let baseOptions;
7571
+ if (configuration) {
7572
+ baseOptions = configuration.baseOptions;
7573
+ }
7574
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
7575
+ const localVarHeaderParameter = {};
7576
+ const localVarQueryParameter = {};
7577
+ // authentication bearerAuth required
7578
+ // http bearer authentication required
7579
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
7580
+ if (category !== undefined) {
7581
+ localVarQueryParameter['category'] = category;
7582
+ }
7583
+ if (search !== undefined) {
7584
+ localVarQueryParameter['search'] = search;
7585
+ }
7586
+ if (gender !== undefined) {
7587
+ localVarQueryParameter['gender'] = gender;
7588
+ }
7589
+ if (sharedClub !== undefined) {
7590
+ localVarQueryParameter['sharedClub'] = sharedClub;
7591
+ }
7592
+ if (sportLevels !== undefined) {
7593
+ localVarQueryParameter['sportLevels'] = sportLevels;
7594
+ }
7595
+ if (limit !== undefined) {
7596
+ localVarQueryParameter['limit'] = limit;
7597
+ }
7598
+ if (offset !== undefined) {
7599
+ localVarQueryParameter['offset'] = offset;
7600
+ }
7601
+ if (useLocation !== undefined) {
7602
+ localVarQueryParameter['useLocation'] = useLocation;
7603
+ }
7604
+ if (latitude !== undefined) {
7605
+ localVarQueryParameter['latitude'] = latitude;
7606
+ }
7607
+ if (longitude !== undefined) {
7608
+ localVarQueryParameter['longitude'] = longitude;
7609
+ }
7610
+ if (radiusInKm !== undefined) {
7611
+ localVarQueryParameter['radiusInKm'] = radiusInKm;
7612
+ }
7613
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7614
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7615
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7616
+ return {
7617
+ url: (0, common_1.toPathString)(localVarUrlObj),
7618
+ options: localVarRequestOptions,
7619
+ };
7620
+ }),
7511
7621
  /**
7512
7622
  *
7513
7623
  * @param {LoginRequestBody} loginRequestBody
@@ -8288,6 +8398,20 @@ const UsersApiFp = function (configuration) {
8288
8398
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8289
8399
  });
8290
8400
  },
8401
+ /**
8402
+ *
8403
+ * @param {*} [options] Override http request option.
8404
+ * @throws {RequiredError}
8405
+ */
8406
+ getPlayerCategories(options) {
8407
+ return __awaiter(this, void 0, void 0, function* () {
8408
+ var _a, _b, _c;
8409
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPlayerCategories(options);
8410
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8411
+ 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;
8412
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8413
+ });
8414
+ },
8291
8415
  /**
8292
8416
  *
8293
8417
  * @param {number} [limit]
@@ -8319,6 +8443,31 @@ const UsersApiFp = function (configuration) {
8319
8443
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8320
8444
  });
8321
8445
  },
8446
+ /**
8447
+ *
8448
+ * @param {PlayerCategoryId} [category]
8449
+ * @param {string} [search]
8450
+ * @param {string} [gender]
8451
+ * @param {boolean} [sharedClub]
8452
+ * @param {string} [sportLevels]
8453
+ * @param {number} [limit]
8454
+ * @param {number} [offset]
8455
+ * @param {boolean} [useLocation]
8456
+ * @param {number} [latitude]
8457
+ * @param {number} [longitude]
8458
+ * @param {number} [radiusInKm]
8459
+ * @param {*} [options] Override http request option.
8460
+ * @throws {RequiredError}
8461
+ */
8462
+ listPlayers(category, search, gender, sharedClub, sportLevels, limit, offset, useLocation, latitude, longitude, radiusInKm, options) {
8463
+ return __awaiter(this, void 0, void 0, function* () {
8464
+ var _a, _b, _c;
8465
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listPlayers(category, search, gender, sharedClub, sportLevels, limit, offset, useLocation, latitude, longitude, radiusInKm, options);
8466
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8467
+ 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;
8468
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8469
+ });
8470
+ },
8322
8471
  /**
8323
8472
  *
8324
8473
  * @param {LoginRequestBody} loginRequestBody
@@ -8730,6 +8879,14 @@ const UsersApiFactory = function (configuration, basePath, axios) {
8730
8879
  getNearestUsersFromCoordinates(requestParameters = {}, options) {
8731
8880
  return localVarFp.getNearestUsersFromCoordinates(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(axios, basePath));
8732
8881
  },
8882
+ /**
8883
+ *
8884
+ * @param {*} [options] Override http request option.
8885
+ * @throws {RequiredError}
8886
+ */
8887
+ getPlayerCategories(options) {
8888
+ return localVarFp.getPlayerCategories(options).then((request) => request(axios, basePath));
8889
+ },
8733
8890
  /**
8734
8891
  *
8735
8892
  * @param {UsersApiGetUserBookingsRequest} requestParameters Request parameters.
@@ -8748,6 +8905,15 @@ const UsersApiFactory = function (configuration, basePath, axios) {
8748
8905
  getUserProfileById(requestParameters, options) {
8749
8906
  return localVarFp.getUserProfileById(requestParameters.id, options).then((request) => request(axios, basePath));
8750
8907
  },
8908
+ /**
8909
+ *
8910
+ * @param {UsersApiListPlayersRequest} requestParameters Request parameters.
8911
+ * @param {*} [options] Override http request option.
8912
+ * @throws {RequiredError}
8913
+ */
8914
+ listPlayers(requestParameters = {}, options) {
8915
+ return localVarFp.listPlayers(requestParameters.category, requestParameters.search, requestParameters.gender, requestParameters.sharedClub, requestParameters.sportLevels, requestParameters.limit, requestParameters.offset, requestParameters.useLocation, requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, options).then((request) => request(axios, basePath));
8916
+ },
8751
8917
  /**
8752
8918
  *
8753
8919
  * @param {UsersApiLoginRequest} requestParameters Request parameters.
@@ -9074,6 +9240,15 @@ class UsersApi extends base_1.BaseAPI {
9074
9240
  getNearestUsersFromCoordinates(requestParameters = {}, options) {
9075
9241
  return (0, exports.UsersApiFp)(this.configuration).getNearestUsersFromCoordinates(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
9076
9242
  }
9243
+ /**
9244
+ *
9245
+ * @param {*} [options] Override http request option.
9246
+ * @throws {RequiredError}
9247
+ * @memberof UsersApi
9248
+ */
9249
+ getPlayerCategories(options) {
9250
+ return (0, exports.UsersApiFp)(this.configuration).getPlayerCategories(options).then((request) => request(this.axios, this.basePath));
9251
+ }
9077
9252
  /**
9078
9253
  *
9079
9254
  * @param {UsersApiGetUserBookingsRequest} requestParameters Request parameters.
@@ -9094,6 +9269,16 @@ class UsersApi extends base_1.BaseAPI {
9094
9269
  getUserProfileById(requestParameters, options) {
9095
9270
  return (0, exports.UsersApiFp)(this.configuration).getUserProfileById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
9096
9271
  }
9272
+ /**
9273
+ *
9274
+ * @param {UsersApiListPlayersRequest} requestParameters Request parameters.
9275
+ * @param {*} [options] Override http request option.
9276
+ * @throws {RequiredError}
9277
+ * @memberof UsersApi
9278
+ */
9279
+ listPlayers(requestParameters = {}, options) {
9280
+ return (0, exports.UsersApiFp)(this.configuration).listPlayers(requestParameters.category, requestParameters.search, requestParameters.gender, requestParameters.sharedClub, requestParameters.sportLevels, requestParameters.limit, requestParameters.offset, requestParameters.useLocation, requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, options).then((request) => request(this.axios, this.basePath));
9281
+ }
9097
9282
  /**
9098
9283
  *
9099
9284
  * @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).