@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
@@ -1,5 +1,6 @@
1
1
  .gitignore
2
2
  .npmignore
3
+ .openapi-generator-ignore
3
4
  README.md
4
5
  api.ts
5
6
  base.ts
@@ -46,6 +47,7 @@ docs/CheckInEventParticipants200ResponseInvoicesInner.md
46
47
  docs/CheckInEventParticipantsRequest.md
47
48
  docs/CheckInPlayersRequest.md
48
49
  docs/CheckInPlayersResponse.md
50
+ docs/CheckTeamNameAvailability200Response.md
49
51
  docs/CheckedInPlayer.md
50
52
  docs/ClientApi.md
51
53
  docs/ClientFullOnboardingResponse.md
@@ -135,6 +137,7 @@ docs/EstimateEventPriceRequestSharesInner.md
135
137
  docs/EventConflictCheckRequest.md
136
138
  docs/EventConflictCheckResponse.md
137
139
  docs/EventResponse.md
140
+ docs/EventUser.md
138
141
  docs/EventsApi.md
139
142
  docs/EventsListResponse.md
140
143
  docs/EventsManagerApi.md
@@ -169,6 +172,7 @@ docs/InvoiceStatus.md
169
172
  docs/JoinEventRequest.md
170
173
  docs/JoinEventRequestPlayersPaymentMethodsInner.md
171
174
  docs/JoinEventResponse.md
175
+ docs/JoinEventResponseOnsitePaymentsInner.md
172
176
  docs/LastSixMonthsTurnoverItem.md
173
177
  docs/LevelBySportEntry.md
174
178
  docs/LoginRequestBody.md
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @tennac-booking/sdk@1.0.116
1
+ ## @tennac-booking/sdk@1.0.118
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @tennac-booking/sdk@1.0.116 --save
39
+ npm install @tennac-booking/sdk@1.0.118 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -146,6 +146,7 @@ Class | Method | HTTP request | Description
146
146
  *ClubsStaffApi* | [**getUserProfileStaff**](docs/ClubsStaffApi.md#getuserprofilestaff) | **GET** /api/clubs/staff/profile/{id} |
147
147
  *ClubsStaffApi* | [**updateUserCreditsStaff**](docs/ClubsStaffApi.md#updateusercreditsstaff) | **PUT** /api/clubs/staff/user-credits/{id} |
148
148
  *DefaultApi* | [**createClub**](docs/DefaultApi.md#createclub) | **POST** /api/clubs |
149
+ *EventsApi* | [**checkTeamNameAvailability**](docs/EventsApi.md#checkteamnameavailability) | **GET** /api/events/{eventId}/team-name-availability |
149
150
  *EventsApi* | [**estimateEventPrice**](docs/EventsApi.md#estimateeventprice) | **POST** /api/events/{eventId}/estimate-price |
150
151
  *EventsApi* | [**getEventById**](docs/EventsApi.md#geteventbyid) | **GET** /api/events/{eventId} |
151
152
  *EventsApi* | [**getPublishedEventsByClubId**](docs/EventsApi.md#getpublishedeventsbyclubid) | **GET** /api/events |
@@ -254,6 +255,7 @@ Class | Method | HTTP request | Description
254
255
  - [CheckInEventParticipantsRequest](docs/CheckInEventParticipantsRequest.md)
255
256
  - [CheckInPlayersRequest](docs/CheckInPlayersRequest.md)
256
257
  - [CheckInPlayersResponse](docs/CheckInPlayersResponse.md)
258
+ - [CheckTeamNameAvailability200Response](docs/CheckTeamNameAvailability200Response.md)
257
259
  - [CheckedInPlayer](docs/CheckedInPlayer.md)
258
260
  - [ClientFullOnboardingResponse](docs/ClientFullOnboardingResponse.md)
259
261
  - [ClientFullOnboardingResponseClub](docs/ClientFullOnboardingResponseClub.md)
@@ -332,6 +334,7 @@ Class | Method | HTTP request | Description
332
334
  - [EventConflictCheckRequest](docs/EventConflictCheckRequest.md)
333
335
  - [EventConflictCheckResponse](docs/EventConflictCheckResponse.md)
334
336
  - [EventResponse](docs/EventResponse.md)
337
+ - [EventUser](docs/EventUser.md)
335
338
  - [EventsListResponse](docs/EventsListResponse.md)
336
339
  - [FavoriteClubMutationResponse](docs/FavoriteClubMutationResponse.md)
337
340
  - [FavoriteClubRequestBody](docs/FavoriteClubRequestBody.md)
@@ -363,6 +366,7 @@ Class | Method | HTTP request | Description
363
366
  - [JoinEventRequest](docs/JoinEventRequest.md)
364
367
  - [JoinEventRequestPlayersPaymentMethodsInner](docs/JoinEventRequestPlayersPaymentMethodsInner.md)
365
368
  - [JoinEventResponse](docs/JoinEventResponse.md)
369
+ - [JoinEventResponseOnsitePaymentsInner](docs/JoinEventResponseOnsitePaymentsInner.md)
366
370
  - [LastSixMonthsTurnoverItem](docs/LastSixMonthsTurnoverItem.md)
367
371
  - [LevelBySportEntry](docs/LevelBySportEntry.md)
368
372
  - [LoginRequestBody](docs/LoginRequestBody.md)
package/api.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.116
7
+ * The version of the OpenAPI document: 1.0.118
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1487,6 +1487,19 @@ export interface CheckInPlayersResponse {
1487
1487
  */
1488
1488
  'invoices': Array<CheckedInPlayer>;
1489
1489
  }
1490
+ /**
1491
+ *
1492
+ * @export
1493
+ * @interface CheckTeamNameAvailability200Response
1494
+ */
1495
+ export interface CheckTeamNameAvailability200Response {
1496
+ /**
1497
+ *
1498
+ * @type {boolean}
1499
+ * @memberof CheckTeamNameAvailability200Response
1500
+ */
1501
+ 'available': boolean;
1502
+ }
1490
1503
  /**
1491
1504
  *
1492
1505
  * @export
@@ -4256,6 +4269,24 @@ export type DiscountType = typeof DiscountType[keyof typeof DiscountType];
4256
4269
  * @interface EstimateEventPrice200Response
4257
4270
  */
4258
4271
  export interface EstimateEventPrice200Response {
4272
+ /**
4273
+ * Construct a type with a set of properties K of type T
4274
+ * @type {{ [key: string]: number; }}
4275
+ * @memberof EstimateEventPrice200Response
4276
+ */
4277
+ 'perPayerAfterCredits'?: { [key: string]: number; };
4278
+ /**
4279
+ *
4280
+ * @type {number}
4281
+ * @memberof EstimateEventPrice200Response
4282
+ */
4283
+ 'totalAfterCredits'?: number;
4284
+ /**
4285
+ *
4286
+ * @type {number}
4287
+ * @memberof EstimateEventPrice200Response
4288
+ */
4289
+ 'creditsAppliedInCents'?: number;
4259
4290
  /**
4260
4291
  *
4261
4292
  * @type {string}
@@ -4287,6 +4318,18 @@ export interface EstimateEventPrice200Response {
4287
4318
  * @interface EstimateEventPriceRequest
4288
4319
  */
4289
4320
  export interface EstimateEventPriceRequest {
4321
+ /**
4322
+ *
4323
+ * @type {number}
4324
+ * @memberof EstimateEventPriceRequest
4325
+ */
4326
+ 'creditToUseInCents'?: number;
4327
+ /**
4328
+ *
4329
+ * @type {string}
4330
+ * @memberof EstimateEventPriceRequest
4331
+ */
4332
+ 'creatorId'?: string;
4290
4333
  /**
4291
4334
  *
4292
4335
  * @type {Array<EstimateEventPriceRequestSharesInner>}
@@ -4473,10 +4516,10 @@ export interface EventResponse {
4473
4516
  'participationType': EventResponseParticipationTypeEnum;
4474
4517
  /**
4475
4518
  *
4476
- * @type {Array<string>}
4519
+ * @type {Array<EventUser>}
4477
4520
  * @memberof EventResponse
4478
4521
  */
4479
- 'participants'?: Array<string>;
4522
+ 'participants'?: Array<EventUser>;
4480
4523
  /**
4481
4524
  *
4482
4525
  * @type {Array<Team>}
@@ -4573,6 +4616,43 @@ export const EventResponseVisibilityTypeEnum = {
4573
4616
 
4574
4617
  export type EventResponseVisibilityTypeEnum = typeof EventResponseVisibilityTypeEnum[keyof typeof EventResponseVisibilityTypeEnum];
4575
4618
 
4619
+ /**
4620
+ *
4621
+ * @export
4622
+ * @interface EventUser
4623
+ */
4624
+ export interface EventUser {
4625
+ /**
4626
+ *
4627
+ * @type {string}
4628
+ * @memberof EventUser
4629
+ */
4630
+ 'id': string;
4631
+ /**
4632
+ *
4633
+ * @type {string}
4634
+ * @memberof EventUser
4635
+ */
4636
+ 'firstName': string;
4637
+ /**
4638
+ *
4639
+ * @type {string}
4640
+ * @memberof EventUser
4641
+ */
4642
+ 'lastName': string;
4643
+ /**
4644
+ *
4645
+ * @type {string}
4646
+ * @memberof EventUser
4647
+ */
4648
+ 'username'?: string;
4649
+ /**
4650
+ *
4651
+ * @type {string}
4652
+ * @memberof EventUser
4653
+ */
4654
+ 'profilePicture'?: string;
4655
+ }
4576
4656
  /**
4577
4657
  *
4578
4658
  * @export
@@ -5485,6 +5565,12 @@ export interface JoinEventRequest {
5485
5565
  * @memberof JoinEventRequest
5486
5566
  */
5487
5567
  'useDefaultPaymentMethod'?: boolean;
5568
+ /**
5569
+ *
5570
+ * @type {number}
5571
+ * @memberof JoinEventRequest
5572
+ */
5573
+ 'creditToUseInCents'?: number;
5488
5574
  }
5489
5575
 
5490
5576
 
@@ -5533,7 +5619,76 @@ export interface JoinEventResponse {
5533
5619
  * @memberof JoinEventResponse
5534
5620
  */
5535
5621
  'event': EventResponse;
5622
+ /**
5623
+ * Construct a type with a set of properties K of type T
5624
+ * @type {{ [key: string]: string; }}
5625
+ * @memberof JoinEventResponse
5626
+ */
5627
+ 'paymentLinks'?: { [key: string]: string; };
5628
+ /**
5629
+ *
5630
+ * @type {Array<JoinEventResponseOnsitePaymentsInner>}
5631
+ * @memberof JoinEventResponse
5632
+ */
5633
+ 'onsitePayments'?: Array<JoinEventResponseOnsitePaymentsInner>;
5634
+ /**
5635
+ *
5636
+ * @type {string}
5637
+ * @memberof JoinEventResponse
5638
+ */
5639
+ 'setupNoShowPaymentUrl'?: string;
5640
+ /**
5641
+ *
5642
+ * @type {Array<CheckInEventParticipants200ResponseInvoicesInner>}
5643
+ * @memberof JoinEventResponse
5644
+ */
5645
+ 'invoices'?: Array<CheckInEventParticipants200ResponseInvoicesInner>;
5646
+ /**
5647
+ *
5648
+ * @type {number}
5649
+ * @memberof JoinEventResponse
5650
+ */
5651
+ 'creditsAppliedInCents'?: number;
5652
+ /**
5653
+ *
5654
+ * @type {number}
5655
+ * @memberof JoinEventResponse
5656
+ */
5657
+ 'totalAfterCredits'?: number;
5658
+ /**
5659
+ * Construct a type with a set of properties K of type T
5660
+ * @type {{ [key: string]: number; }}
5661
+ * @memberof JoinEventResponse
5662
+ */
5663
+ 'perPayerAfterCredits'?: { [key: string]: number; };
5664
+ }
5665
+ /**
5666
+ *
5667
+ * @export
5668
+ * @interface JoinEventResponseOnsitePaymentsInner
5669
+ */
5670
+ export interface JoinEventResponseOnsitePaymentsInner {
5671
+ /**
5672
+ *
5673
+ * @type {PaymentMethod}
5674
+ * @memberof JoinEventResponseOnsitePaymentsInner
5675
+ */
5676
+ 'paymentMethod': PaymentMethod;
5677
+ /**
5678
+ *
5679
+ * @type {number}
5680
+ * @memberof JoinEventResponseOnsitePaymentsInner
5681
+ */
5682
+ 'amount': number;
5683
+ /**
5684
+ *
5685
+ * @type {string}
5686
+ * @memberof JoinEventResponseOnsitePaymentsInner
5687
+ */
5688
+ 'playerId': string;
5536
5689
  }
5690
+
5691
+
5537
5692
  /**
5538
5693
  *
5539
5694
  * @export
@@ -8996,10 +9151,10 @@ export interface Team {
8996
9151
  'name': string;
8997
9152
  /**
8998
9153
  *
8999
- * @type {Array<string>}
9154
+ * @type {Array<EventUser>}
9000
9155
  * @memberof Team
9001
9156
  */
9002
- 'players': Array<string>;
9157
+ 'players': Array<EventUser>;
9003
9158
  }
9004
9159
  /**
9005
9160
  *
@@ -18529,6 +18684,44 @@ export class DefaultApi extends BaseAPI {
18529
18684
  */
18530
18685
  export const EventsApiAxiosParamCreator = function (configuration?: Configuration) {
18531
18686
  return {
18687
+ /**
18688
+ * Check team name availability for TEAM participation events
18689
+ * @param {string} eventId
18690
+ * @param {string} [teamName]
18691
+ * @param {*} [options] Override http request option.
18692
+ * @throws {RequiredError}
18693
+ */
18694
+ checkTeamNameAvailability: async (eventId: string, teamName?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18695
+ // verify required parameter 'eventId' is not null or undefined
18696
+ assertParamExists('checkTeamNameAvailability', 'eventId', eventId)
18697
+ const localVarPath = `/api/events/{eventId}/team-name-availability`
18698
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
18699
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18700
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18701
+ let baseOptions;
18702
+ if (configuration) {
18703
+ baseOptions = configuration.baseOptions;
18704
+ }
18705
+
18706
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
18707
+ const localVarHeaderParameter = {} as any;
18708
+ const localVarQueryParameter = {} as any;
18709
+
18710
+ if (teamName !== undefined) {
18711
+ localVarQueryParameter['teamName'] = teamName;
18712
+ }
18713
+
18714
+
18715
+
18716
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18717
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18718
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18719
+
18720
+ return {
18721
+ url: toPathString(localVarUrlObj),
18722
+ options: localVarRequestOptions,
18723
+ };
18724
+ },
18532
18725
  /**
18533
18726
  * Estime le prix de participation à un événement pour une liste de joueurs
18534
18727
  * @param {string} eventId
@@ -18740,6 +18933,19 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
18740
18933
  export const EventsApiFp = function(configuration?: Configuration) {
18741
18934
  const localVarAxiosParamCreator = EventsApiAxiosParamCreator(configuration)
18742
18935
  return {
18936
+ /**
18937
+ * Check team name availability for TEAM participation events
18938
+ * @param {string} eventId
18939
+ * @param {string} [teamName]
18940
+ * @param {*} [options] Override http request option.
18941
+ * @throws {RequiredError}
18942
+ */
18943
+ async checkTeamNameAvailability(eventId: string, teamName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckTeamNameAvailability200Response>> {
18944
+ const localVarAxiosArgs = await localVarAxiosParamCreator.checkTeamNameAvailability(eventId, teamName, options);
18945
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18946
+ const localVarOperationServerBasePath = operationServerMap['EventsApi.checkTeamNameAvailability']?.[localVarOperationServerIndex]?.url;
18947
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18948
+ },
18743
18949
  /**
18744
18950
  * Estime le prix de participation à un événement pour une liste de joueurs
18745
18951
  * @param {string} eventId
@@ -18815,6 +19021,15 @@ export const EventsApiFp = function(configuration?: Configuration) {
18815
19021
  export const EventsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
18816
19022
  const localVarFp = EventsApiFp(configuration)
18817
19023
  return {
19024
+ /**
19025
+ * Check team name availability for TEAM participation events
19026
+ * @param {EventsApiCheckTeamNameAvailabilityRequest} requestParameters Request parameters.
19027
+ * @param {*} [options] Override http request option.
19028
+ * @throws {RequiredError}
19029
+ */
19030
+ checkTeamNameAvailability(requestParameters: EventsApiCheckTeamNameAvailabilityRequest, options?: RawAxiosRequestConfig): AxiosPromise<CheckTeamNameAvailability200Response> {
19031
+ return localVarFp.checkTeamNameAvailability(requestParameters.eventId, requestParameters.teamName, options).then((request) => request(axios, basePath));
19032
+ },
18818
19033
  /**
18819
19034
  * Estime le prix de participation à un événement pour une liste de joueurs
18820
19035
  * @param {EventsApiEstimateEventPriceRequest} requestParameters Request parameters.
@@ -18863,6 +19078,27 @@ export const EventsApiFactory = function (configuration?: Configuration, basePat
18863
19078
  };
18864
19079
  };
18865
19080
 
19081
+ /**
19082
+ * Request parameters for checkTeamNameAvailability operation in EventsApi.
19083
+ * @export
19084
+ * @interface EventsApiCheckTeamNameAvailabilityRequest
19085
+ */
19086
+ export interface EventsApiCheckTeamNameAvailabilityRequest {
19087
+ /**
19088
+ *
19089
+ * @type {string}
19090
+ * @memberof EventsApiCheckTeamNameAvailability
19091
+ */
19092
+ readonly eventId: string
19093
+
19094
+ /**
19095
+ *
19096
+ * @type {string}
19097
+ * @memberof EventsApiCheckTeamNameAvailability
19098
+ */
19099
+ readonly teamName?: string
19100
+ }
19101
+
18866
19102
  /**
18867
19103
  * Request parameters for estimateEventPrice operation in EventsApi.
18868
19104
  * @export
@@ -18975,6 +19211,17 @@ export interface EventsApiLeaveEventRequest {
18975
19211
  * @extends {BaseAPI}
18976
19212
  */
18977
19213
  export class EventsApi extends BaseAPI {
19214
+ /**
19215
+ * Check team name availability for TEAM participation events
19216
+ * @param {EventsApiCheckTeamNameAvailabilityRequest} requestParameters Request parameters.
19217
+ * @param {*} [options] Override http request option.
19218
+ * @throws {RequiredError}
19219
+ * @memberof EventsApi
19220
+ */
19221
+ public checkTeamNameAvailability(requestParameters: EventsApiCheckTeamNameAvailabilityRequest, options?: RawAxiosRequestConfig) {
19222
+ return EventsApiFp(this.configuration).checkTeamNameAvailability(requestParameters.eventId, requestParameters.teamName, options).then((request) => request(this.axios, this.basePath));
19223
+ }
19224
+
18978
19225
  /**
18979
19226
  * Estime le prix de participation à un événement pour une liste de joueurs
18980
19227
  * @param {EventsApiEstimateEventPriceRequest} requestParameters Request parameters.
package/base.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.116
7
+ * The version of the OpenAPI document: 1.0.118
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/common.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.116
7
+ * The version of the OpenAPI document: 1.0.118
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/configuration.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.116
7
+ * The version of the OpenAPI document: 1.0.118
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).