@tennac-booking/sdk 1.0.116 → 1.0.118

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 (172) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +6 -2
  3. package/api.ts +252 -5
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +214 -5
  8. package/dist/api.js +68 -1
  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 +214 -5
  16. package/dist/esm/api.js +68 -1
  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/{DeleteClubRole200Response.md → CheckTeamNameAvailability200Response.md} +5 -5
  28. package/docs/EstimateEventPrice200Response.md +6 -0
  29. package/docs/EstimateEventPriceRequest.md +4 -0
  30. package/docs/EventResponse.md +1 -1
  31. package/docs/{FavoritePlayerPublic.md → EventUser.md} +9 -9
  32. package/docs/EventsApi.md +57 -0
  33. package/docs/JoinEventRequest.md +2 -0
  34. package/docs/JoinEventResponse.md +14 -0
  35. package/docs/JoinEventResponseOnsitePaymentsInner.md +24 -0
  36. package/docs/Team.md +1 -1
  37. package/index.ts +1 -1
  38. package/package.json +1 -1
  39. package/docs/ActiveClub.md +0 -24
  40. package/docs/ActiveClubListResponse.md +0 -20
  41. package/docs/AddClubMemberResponse.md +0 -22
  42. package/docs/AddFavoriteClubRequestBody.md +0 -20
  43. package/docs/AddFavoritePlayerRequestBody.md +0 -20
  44. package/docs/AddPaymentMethodSetupRequestBody.md +0 -20
  45. package/docs/AddPaymentMethodSetupResponse.md +0 -24
  46. package/docs/AdminClubAnalyticsApi.md +0 -249
  47. package/docs/AdminClubSlotsApi.md +0 -182
  48. package/docs/AdminClubSubscriptionsApi.md +0 -394
  49. package/docs/AdminClubsApi.md +0 -170
  50. package/docs/ApiErrorResponse.md +0 -22
  51. package/docs/BlockSlotResponse.md +0 -22
  52. package/docs/Booking.md +0 -32
  53. package/docs/BookingPaymentStatusResponsePaymentStatusInner.md +0 -36
  54. package/docs/BookingPopulatedPaymentByPlayersStatusInner.md +0 -22
  55. package/docs/BookingPopulatedPaymentByPlayersStatusInnerInvoicesInner.md +0 -24
  56. package/docs/BookingPopulatedSlotId.md +0 -26
  57. package/docs/BookingPopulatedSlotIdCourtId.md +0 -22
  58. package/docs/BookingPopulatedUserId.md +0 -24
  59. package/docs/CancelBookingResponseBooking.md +0 -30
  60. package/docs/CheckInPlayersResponseCheckedInPlayersInner.md +0 -34
  61. package/docs/Club.md +0 -46
  62. package/docs/ClubInfoResponse.md +0 -48
  63. package/docs/ClubListResponse.md +0 -22
  64. package/docs/ClubMember.md +0 -34
  65. package/docs/ClubMembersResponse.md +0 -22
  66. package/docs/ClubRole.md +0 -30
  67. package/docs/ClubRolesResponse.md +0 -22
  68. package/docs/ClubSettings.md +0 -40
  69. package/docs/ClubsResponse.md +0 -22
  70. package/docs/ConfirmPaymentMethodSetupRequestBody.md +0 -20
  71. package/docs/ConfirmPaymentMethodSetupResponse.md +0 -22
  72. package/docs/Court.md +0 -32
  73. package/docs/CourtsResponse.md +0 -22
  74. package/docs/CreateClubRoleRequestBody.md +0 -24
  75. package/docs/CreateClubSettingsRequest.md +0 -28
  76. package/docs/CreatePriceRequest.md +0 -26
  77. package/docs/DeleteClub200Response.md +0 -20
  78. package/docs/DeleteClubSettingsRequest.md +0 -20
  79. package/docs/DeleteEvent200Response.md +0 -20
  80. package/docs/DeleteSlotsByClubInRange200Response.md +0 -20
  81. package/docs/DeleteSlotsResponse.md +0 -20
  82. package/docs/DeleteSport200Response.md +0 -20
  83. package/docs/Event.md +0 -40
  84. package/docs/EventBooking.md +0 -32
  85. package/docs/EventRegistrationRequest.md +0 -22
  86. package/docs/FavoriteClubItem.md +0 -26
  87. package/docs/FavoriteClubResponse.md +0 -22
  88. package/docs/FavoritePlayersIdsResponse.md +0 -22
  89. package/docs/FrequentlyPlayedWithItem.md +0 -28
  90. package/docs/FrequentlyVisitedClubItem.md +0 -24
  91. package/docs/GenerateSlotsResponse.md +0 -20
  92. package/docs/GetActiveClubs200Response.md +0 -20
  93. package/docs/GetClubInfos200Response.md +0 -30
  94. package/docs/GetCourtsByClubAndSport200Response.md +0 -26
  95. package/docs/GetLastSixMonthsTurnover200ResponseInner.md +0 -22
  96. package/docs/GetNumberOfClubUsers200Response.md +0 -20
  97. package/docs/GetPublishedEventsByClubId200Response.md +0 -20
  98. package/docs/GetUserRolesResponse.md +0 -20
  99. package/docs/GetUserRolesResponseRolesInner.md +0 -26
  100. package/docs/GetUserSubscriptionsResponse.md +0 -22
  101. package/docs/GoogleSignInRequestBody.md +0 -20
  102. package/docs/GoogleSignInResponse.md +0 -24
  103. package/docs/InitiateSubscriptionSessionRequestBody.md +0 -26
  104. package/docs/InitiateSubscriptionSessionResponse.md +0 -22
  105. package/docs/InvoicesResponse.md +0 -22
  106. package/docs/InvoicesResponseInvoicesInner.md +0 -34
  107. package/docs/InvoicesResponsePagination.md +0 -26
  108. package/docs/LevelBySportsItem.md +0 -22
  109. package/docs/ManagerBookingsApi.md +0 -125
  110. package/docs/ManagerCancelBookingResponseBooking.md +0 -30
  111. package/docs/ManagerClubCourtsApi.md +0 -108
  112. package/docs/ManagerClubRolesApi.md +0 -268
  113. package/docs/ManagerClubSlotsApi.md +0 -119
  114. package/docs/ManagerClubSubscriptionsApi.md +0 -387
  115. package/docs/ManagerClubsApi.md +0 -253
  116. package/docs/ManagerEventResponse.md +0 -22
  117. package/docs/ManagerEventsApi.md +0 -227
  118. package/docs/ManagerSportsApi.md +0 -174
  119. package/docs/NoShowFeeResponseCaptureResultsInner.md +0 -30
  120. package/docs/NoShowFeeResponseCreatorChargeResult.md +0 -26
  121. package/docs/PriceResponse.md +0 -32
  122. package/docs/ProfileVisibilityResponse.md +0 -20
  123. package/docs/PublicClubUser.md +0 -46
  124. package/docs/PublicClubUserFrequentlyPlayedWithInner.md +0 -28
  125. package/docs/PublicClubUserFrequentlyVisitedClubsInner.md +0 -24
  126. package/docs/PublicClubUserLevelBySportsInner.md +0 -22
  127. package/docs/RegisterForEvent201Response.md +0 -20
  128. package/docs/RestoreSubscriptionPlanForClub200Response.md +0 -20
  129. package/docs/SetupPaymentMethodRequestBody.md +0 -20
  130. package/docs/SetupPaymentMethodResponse.md +0 -24
  131. package/docs/Slot.md +0 -24
  132. package/docs/SlotException.md +0 -26
  133. package/docs/SlotResponse.md +0 -34
  134. package/docs/SlotsResponse.md +0 -22
  135. package/docs/Sport.md +0 -24
  136. package/docs/SportsResponse.md +0 -22
  137. package/docs/StaffClubAnalyticsApi.md +0 -104
  138. package/docs/StaffClubBookingsApi.md +0 -52
  139. package/docs/StaffClubsApi.md +0 -100
  140. package/docs/StaffEventResponse.md +0 -20
  141. package/docs/StaffEventsApi.md +0 -54
  142. package/docs/StaffProfileApi.md +0 -54
  143. package/docs/StripeStatus.md +0 -16
  144. package/docs/SubscribeToClubRequestBody.md +0 -22
  145. package/docs/SubscriptionPlan.md +0 -36
  146. package/docs/SubscriptionResponse.md +0 -36
  147. package/docs/UpdateClubRoleRequestBody.md +0 -24
  148. package/docs/UpdateClubSettingsRequest.md +0 -28
  149. package/docs/UpdateCustomerRequestBodyAddress.md +0 -30
  150. package/docs/UpdateCustomerResponseCustomer.md +0 -28
  151. package/docs/UpdateProfilePictureRequestBody.md +0 -20
  152. package/docs/UpdateProfileVisibilityRequestBody.md +0 -20
  153. package/docs/UpdateSubscriptionPlanRequest.md +0 -24
  154. package/docs/UpdateSubscriptionPlanResponse.md +0 -22
  155. package/docs/UpdateUserCityRequestBody.md +0 -20
  156. package/docs/UpdateUserDescriptionRequestBody.md +0 -20
  157. package/docs/User.md +0 -40
  158. package/docs/UserAuthenticationApi.md +0 -226
  159. package/docs/UserBookingsApi.md +0 -120
  160. package/docs/UserCityResponse.md +0 -20
  161. package/docs/UserClubCourtsApi.md +0 -64
  162. package/docs/UserClubSlotsApi.md +0 -181
  163. package/docs/UserClubSportsApi.md +0 -60
  164. package/docs/UserClubsApi.md +0 -53
  165. package/docs/UserDescriptionResponse.md +0 -20
  166. package/docs/UserFavoriteClubsResponse.md +0 -20
  167. package/docs/UserPaymentApi.md +0 -176
  168. package/docs/UserProfileApi.md +0 -1201
  169. package/docs/UserResponse.md +0 -38
  170. package/docs/UserSubscriptionsApi.md +0 -222
  171. package/docs/UsersResponse.md +0 -22
  172. package/docs/YearlyTurnoverResponseMonthlyBreakdownInner.md +0 -24
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.116
5
+ * The version of the OpenAPI document: 1.0.118
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1450,6 +1450,19 @@ export interface CheckInPlayersResponse {
1450
1450
  */
1451
1451
  'invoices': Array<CheckedInPlayer>;
1452
1452
  }
1453
+ /**
1454
+ *
1455
+ * @export
1456
+ * @interface CheckTeamNameAvailability200Response
1457
+ */
1458
+ export interface CheckTeamNameAvailability200Response {
1459
+ /**
1460
+ *
1461
+ * @type {boolean}
1462
+ * @memberof CheckTeamNameAvailability200Response
1463
+ */
1464
+ 'available': boolean;
1465
+ }
1453
1466
  /**
1454
1467
  *
1455
1468
  * @export
@@ -4180,6 +4193,26 @@ export type DiscountType = typeof DiscountType[keyof typeof DiscountType];
4180
4193
  * @interface EstimateEventPrice200Response
4181
4194
  */
4182
4195
  export interface EstimateEventPrice200Response {
4196
+ /**
4197
+ * Construct a type with a set of properties K of type T
4198
+ * @type {{ [key: string]: number; }}
4199
+ * @memberof EstimateEventPrice200Response
4200
+ */
4201
+ 'perPayerAfterCredits'?: {
4202
+ [key: string]: number;
4203
+ };
4204
+ /**
4205
+ *
4206
+ * @type {number}
4207
+ * @memberof EstimateEventPrice200Response
4208
+ */
4209
+ 'totalAfterCredits'?: number;
4210
+ /**
4211
+ *
4212
+ * @type {number}
4213
+ * @memberof EstimateEventPrice200Response
4214
+ */
4215
+ 'creditsAppliedInCents'?: number;
4183
4216
  /**
4184
4217
  *
4185
4218
  * @type {string}
@@ -4215,6 +4248,18 @@ export interface EstimateEventPrice200Response {
4215
4248
  * @interface EstimateEventPriceRequest
4216
4249
  */
4217
4250
  export interface EstimateEventPriceRequest {
4251
+ /**
4252
+ *
4253
+ * @type {number}
4254
+ * @memberof EstimateEventPriceRequest
4255
+ */
4256
+ 'creditToUseInCents'?: number;
4257
+ /**
4258
+ *
4259
+ * @type {string}
4260
+ * @memberof EstimateEventPriceRequest
4261
+ */
4262
+ 'creatorId'?: string;
4218
4263
  /**
4219
4264
  *
4220
4265
  * @type {Array<EstimateEventPriceRequestSharesInner>}
@@ -4401,10 +4446,10 @@ export interface EventResponse {
4401
4446
  'participationType': EventResponseParticipationTypeEnum;
4402
4447
  /**
4403
4448
  *
4404
- * @type {Array<string>}
4449
+ * @type {Array<EventUser>}
4405
4450
  * @memberof EventResponse
4406
4451
  */
4407
- 'participants'?: Array<string>;
4452
+ 'participants'?: Array<EventUser>;
4408
4453
  /**
4409
4454
  *
4410
4455
  * @type {Array<Team>}
@@ -4495,6 +4540,43 @@ export declare const EventResponseVisibilityTypeEnum: {
4495
4540
  readonly Invitation: "invitation";
4496
4541
  };
4497
4542
  export type EventResponseVisibilityTypeEnum = typeof EventResponseVisibilityTypeEnum[keyof typeof EventResponseVisibilityTypeEnum];
4543
+ /**
4544
+ *
4545
+ * @export
4546
+ * @interface EventUser
4547
+ */
4548
+ export interface EventUser {
4549
+ /**
4550
+ *
4551
+ * @type {string}
4552
+ * @memberof EventUser
4553
+ */
4554
+ 'id': string;
4555
+ /**
4556
+ *
4557
+ * @type {string}
4558
+ * @memberof EventUser
4559
+ */
4560
+ 'firstName': string;
4561
+ /**
4562
+ *
4563
+ * @type {string}
4564
+ * @memberof EventUser
4565
+ */
4566
+ 'lastName': string;
4567
+ /**
4568
+ *
4569
+ * @type {string}
4570
+ * @memberof EventUser
4571
+ */
4572
+ 'username'?: string;
4573
+ /**
4574
+ *
4575
+ * @type {string}
4576
+ * @memberof EventUser
4577
+ */
4578
+ 'profilePicture'?: string;
4579
+ }
4498
4580
  /**
4499
4581
  *
4500
4582
  * @export
@@ -5398,6 +5480,12 @@ export interface JoinEventRequest {
5398
5480
  * @memberof JoinEventRequest
5399
5481
  */
5400
5482
  'useDefaultPaymentMethod'?: boolean;
5483
+ /**
5484
+ *
5485
+ * @type {number}
5486
+ * @memberof JoinEventRequest
5487
+ */
5488
+ 'creditToUseInCents'?: number;
5401
5489
  }
5402
5490
  /**
5403
5491
  *
@@ -5442,6 +5530,77 @@ export interface JoinEventResponse {
5442
5530
  * @memberof JoinEventResponse
5443
5531
  */
5444
5532
  'event': EventResponse;
5533
+ /**
5534
+ * Construct a type with a set of properties K of type T
5535
+ * @type {{ [key: string]: string; }}
5536
+ * @memberof JoinEventResponse
5537
+ */
5538
+ 'paymentLinks'?: {
5539
+ [key: string]: string;
5540
+ };
5541
+ /**
5542
+ *
5543
+ * @type {Array<JoinEventResponseOnsitePaymentsInner>}
5544
+ * @memberof JoinEventResponse
5545
+ */
5546
+ 'onsitePayments'?: Array<JoinEventResponseOnsitePaymentsInner>;
5547
+ /**
5548
+ *
5549
+ * @type {string}
5550
+ * @memberof JoinEventResponse
5551
+ */
5552
+ 'setupNoShowPaymentUrl'?: string;
5553
+ /**
5554
+ *
5555
+ * @type {Array<CheckInEventParticipants200ResponseInvoicesInner>}
5556
+ * @memberof JoinEventResponse
5557
+ */
5558
+ 'invoices'?: Array<CheckInEventParticipants200ResponseInvoicesInner>;
5559
+ /**
5560
+ *
5561
+ * @type {number}
5562
+ * @memberof JoinEventResponse
5563
+ */
5564
+ 'creditsAppliedInCents'?: number;
5565
+ /**
5566
+ *
5567
+ * @type {number}
5568
+ * @memberof JoinEventResponse
5569
+ */
5570
+ 'totalAfterCredits'?: number;
5571
+ /**
5572
+ * Construct a type with a set of properties K of type T
5573
+ * @type {{ [key: string]: number; }}
5574
+ * @memberof JoinEventResponse
5575
+ */
5576
+ 'perPayerAfterCredits'?: {
5577
+ [key: string]: number;
5578
+ };
5579
+ }
5580
+ /**
5581
+ *
5582
+ * @export
5583
+ * @interface JoinEventResponseOnsitePaymentsInner
5584
+ */
5585
+ export interface JoinEventResponseOnsitePaymentsInner {
5586
+ /**
5587
+ *
5588
+ * @type {PaymentMethod}
5589
+ * @memberof JoinEventResponseOnsitePaymentsInner
5590
+ */
5591
+ 'paymentMethod': PaymentMethod;
5592
+ /**
5593
+ *
5594
+ * @type {number}
5595
+ * @memberof JoinEventResponseOnsitePaymentsInner
5596
+ */
5597
+ 'amount': number;
5598
+ /**
5599
+ *
5600
+ * @type {string}
5601
+ * @memberof JoinEventResponseOnsitePaymentsInner
5602
+ */
5603
+ 'playerId': string;
5445
5604
  }
5446
5605
  /**
5447
5606
  *
@@ -8830,10 +8989,10 @@ export interface Team {
8830
8989
  'name': string;
8831
8990
  /**
8832
8991
  *
8833
- * @type {Array<string>}
8992
+ * @type {Array<EventUser>}
8834
8993
  * @memberof Team
8835
8994
  */
8836
- 'players': Array<string>;
8995
+ 'players': Array<EventUser>;
8837
8996
  }
8838
8997
  /**
8839
8998
  *
@@ -14253,6 +14412,14 @@ export declare class DefaultApi extends BaseAPI {
14253
14412
  * @export
14254
14413
  */
14255
14414
  export declare const EventsApiAxiosParamCreator: (configuration?: Configuration) => {
14415
+ /**
14416
+ * Check team name availability for TEAM participation events
14417
+ * @param {string} eventId
14418
+ * @param {string} [teamName]
14419
+ * @param {*} [options] Override http request option.
14420
+ * @throws {RequiredError}
14421
+ */
14422
+ checkTeamNameAvailability: (eventId: string, teamName?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
14256
14423
  /**
14257
14424
  * Estime le prix de participation à un événement pour une liste de joueurs
14258
14425
  * @param {string} eventId
@@ -14299,6 +14466,14 @@ export declare const EventsApiAxiosParamCreator: (configuration?: Configuration)
14299
14466
  * @export
14300
14467
  */
14301
14468
  export declare const EventsApiFp: (configuration?: Configuration) => {
14469
+ /**
14470
+ * Check team name availability for TEAM participation events
14471
+ * @param {string} eventId
14472
+ * @param {string} [teamName]
14473
+ * @param {*} [options] Override http request option.
14474
+ * @throws {RequiredError}
14475
+ */
14476
+ checkTeamNameAvailability(eventId: string, teamName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckTeamNameAvailability200Response>>;
14302
14477
  /**
14303
14478
  * Estime le prix de participation à un événement pour une liste de joueurs
14304
14479
  * @param {string} eventId
@@ -14345,6 +14520,13 @@ export declare const EventsApiFp: (configuration?: Configuration) => {
14345
14520
  * @export
14346
14521
  */
14347
14522
  export declare const EventsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
14523
+ /**
14524
+ * Check team name availability for TEAM participation events
14525
+ * @param {EventsApiCheckTeamNameAvailabilityRequest} requestParameters Request parameters.
14526
+ * @param {*} [options] Override http request option.
14527
+ * @throws {RequiredError}
14528
+ */
14529
+ checkTeamNameAvailability(requestParameters: EventsApiCheckTeamNameAvailabilityRequest, options?: RawAxiosRequestConfig): AxiosPromise<CheckTeamNameAvailability200Response>;
14348
14530
  /**
14349
14531
  * Estime le prix de participation à un événement pour une liste de joueurs
14350
14532
  * @param {EventsApiEstimateEventPriceRequest} requestParameters Request parameters.
@@ -14381,6 +14563,25 @@ export declare const EventsApiFactory: (configuration?: Configuration, basePath?
14381
14563
  */
14382
14564
  leaveEvent(requestParameters: EventsApiLeaveEventRequest, options?: RawAxiosRequestConfig): AxiosPromise<JoinEventResponse>;
14383
14565
  };
14566
+ /**
14567
+ * Request parameters for checkTeamNameAvailability operation in EventsApi.
14568
+ * @export
14569
+ * @interface EventsApiCheckTeamNameAvailabilityRequest
14570
+ */
14571
+ export interface EventsApiCheckTeamNameAvailabilityRequest {
14572
+ /**
14573
+ *
14574
+ * @type {string}
14575
+ * @memberof EventsApiCheckTeamNameAvailability
14576
+ */
14577
+ readonly eventId: string;
14578
+ /**
14579
+ *
14580
+ * @type {string}
14581
+ * @memberof EventsApiCheckTeamNameAvailability
14582
+ */
14583
+ readonly teamName?: string;
14584
+ }
14384
14585
  /**
14385
14586
  * Request parameters for estimateEventPrice operation in EventsApi.
14386
14587
  * @export
@@ -14483,6 +14684,14 @@ export interface EventsApiLeaveEventRequest {
14483
14684
  * @extends {BaseAPI}
14484
14685
  */
14485
14686
  export declare class EventsApi extends BaseAPI {
14687
+ /**
14688
+ * Check team name availability for TEAM participation events
14689
+ * @param {EventsApiCheckTeamNameAvailabilityRequest} requestParameters Request parameters.
14690
+ * @param {*} [options] Override http request option.
14691
+ * @throws {RequiredError}
14692
+ * @memberof EventsApi
14693
+ */
14694
+ checkTeamNameAvailability(requestParameters: EventsApiCheckTeamNameAvailabilityRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CheckTeamNameAvailability200Response, any, {}>>;
14486
14695
  /**
14487
14696
  * Estime le prix de participation à un événement pour une liste de joueurs
14488
14697
  * @param {EventsApiEstimateEventPriceRequest} 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.116
8
+ * The version of the OpenAPI document: 1.0.118
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -7037,6 +7037,38 @@ exports.DefaultApi = DefaultApi;
7037
7037
  */
7038
7038
  const EventsApiAxiosParamCreator = function (configuration) {
7039
7039
  return {
7040
+ /**
7041
+ * Check team name availability for TEAM participation events
7042
+ * @param {string} eventId
7043
+ * @param {string} [teamName]
7044
+ * @param {*} [options] Override http request option.
7045
+ * @throws {RequiredError}
7046
+ */
7047
+ checkTeamNameAvailability: (eventId_1, teamName_1, ...args_1) => __awaiter(this, [eventId_1, teamName_1, ...args_1], void 0, function* (eventId, teamName, options = {}) {
7048
+ // verify required parameter 'eventId' is not null or undefined
7049
+ (0, common_1.assertParamExists)('checkTeamNameAvailability', 'eventId', eventId);
7050
+ const localVarPath = `/api/events/{eventId}/team-name-availability`
7051
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
7052
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7053
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7054
+ let baseOptions;
7055
+ if (configuration) {
7056
+ baseOptions = configuration.baseOptions;
7057
+ }
7058
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
7059
+ const localVarHeaderParameter = {};
7060
+ const localVarQueryParameter = {};
7061
+ if (teamName !== undefined) {
7062
+ localVarQueryParameter['teamName'] = teamName;
7063
+ }
7064
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7065
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7066
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7067
+ return {
7068
+ url: (0, common_1.toPathString)(localVarUrlObj),
7069
+ options: localVarRequestOptions,
7070
+ };
7071
+ }),
7040
7072
  /**
7041
7073
  * Estime le prix de participation à un événement pour une liste de joueurs
7042
7074
  * @param {string} eventId
@@ -7215,6 +7247,22 @@ exports.EventsApiAxiosParamCreator = EventsApiAxiosParamCreator;
7215
7247
  const EventsApiFp = function (configuration) {
7216
7248
  const localVarAxiosParamCreator = (0, exports.EventsApiAxiosParamCreator)(configuration);
7217
7249
  return {
7250
+ /**
7251
+ * Check team name availability for TEAM participation events
7252
+ * @param {string} eventId
7253
+ * @param {string} [teamName]
7254
+ * @param {*} [options] Override http request option.
7255
+ * @throws {RequiredError}
7256
+ */
7257
+ checkTeamNameAvailability(eventId, teamName, options) {
7258
+ return __awaiter(this, void 0, void 0, function* () {
7259
+ var _a, _b, _c;
7260
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.checkTeamNameAvailability(eventId, teamName, options);
7261
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7262
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsApi.checkTeamNameAvailability']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7263
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7264
+ });
7265
+ },
7218
7266
  /**
7219
7267
  * Estime le prix de participation à un événement pour une liste de joueurs
7220
7268
  * @param {string} eventId
@@ -7305,6 +7353,15 @@ exports.EventsApiFp = EventsApiFp;
7305
7353
  const EventsApiFactory = function (configuration, basePath, axios) {
7306
7354
  const localVarFp = (0, exports.EventsApiFp)(configuration);
7307
7355
  return {
7356
+ /**
7357
+ * Check team name availability for TEAM participation events
7358
+ * @param {EventsApiCheckTeamNameAvailabilityRequest} requestParameters Request parameters.
7359
+ * @param {*} [options] Override http request option.
7360
+ * @throws {RequiredError}
7361
+ */
7362
+ checkTeamNameAvailability(requestParameters, options) {
7363
+ return localVarFp.checkTeamNameAvailability(requestParameters.eventId, requestParameters.teamName, options).then((request) => request(axios, basePath));
7364
+ },
7308
7365
  /**
7309
7366
  * Estime le prix de participation à un événement pour une liste de joueurs
7310
7367
  * @param {EventsApiEstimateEventPriceRequest} requestParameters Request parameters.
@@ -7360,6 +7417,16 @@ exports.EventsApiFactory = EventsApiFactory;
7360
7417
  * @extends {BaseAPI}
7361
7418
  */
7362
7419
  class EventsApi extends base_1.BaseAPI {
7420
+ /**
7421
+ * Check team name availability for TEAM participation events
7422
+ * @param {EventsApiCheckTeamNameAvailabilityRequest} requestParameters Request parameters.
7423
+ * @param {*} [options] Override http request option.
7424
+ * @throws {RequiredError}
7425
+ * @memberof EventsApi
7426
+ */
7427
+ checkTeamNameAvailability(requestParameters, options) {
7428
+ return (0, exports.EventsApiFp)(this.configuration).checkTeamNameAvailability(requestParameters.eventId, requestParameters.teamName, options).then((request) => request(this.axios, this.basePath));
7429
+ }
7363
7430
  /**
7364
7431
  * Estime le prix de participation à un événement pour une liste de joueurs
7365
7432
  * @param {EventsApiEstimateEventPriceRequest} 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.116
5
+ * The version of the OpenAPI document: 1.0.118
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.116
8
+ * The version of the OpenAPI document: 1.0.118
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.116
5
+ * The version of the OpenAPI document: 1.0.118
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.116
8
+ * The version of the OpenAPI document: 1.0.118
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.116
5
+ * The version of the OpenAPI document: 1.0.118
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.116
8
+ * The version of the OpenAPI document: 1.0.118
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).