@tennac-booking/sdk 1.0.116 → 1.0.117

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 (170) hide show
  1. package/.openapi-generator/FILES +3 -0
  2. package/README.md +5 -2
  3. package/api.ts +211 -1
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +173 -1
  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 +173 -1
  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/EventsApi.md +57 -0
  31. package/docs/JoinEventRequest.md +2 -0
  32. package/docs/JoinEventResponse.md +14 -0
  33. package/docs/JoinEventResponseOnsitePaymentsInner.md +24 -0
  34. package/index.ts +1 -1
  35. package/package.json +1 -1
  36. package/docs/ActiveClub.md +0 -24
  37. package/docs/ActiveClubListResponse.md +0 -20
  38. package/docs/AddClubMemberResponse.md +0 -22
  39. package/docs/AddFavoriteClubRequestBody.md +0 -20
  40. package/docs/AddFavoritePlayerRequestBody.md +0 -20
  41. package/docs/AddPaymentMethodSetupRequestBody.md +0 -20
  42. package/docs/AddPaymentMethodSetupResponse.md +0 -24
  43. package/docs/AdminClubAnalyticsApi.md +0 -249
  44. package/docs/AdminClubSlotsApi.md +0 -182
  45. package/docs/AdminClubSubscriptionsApi.md +0 -394
  46. package/docs/AdminClubsApi.md +0 -170
  47. package/docs/ApiErrorResponse.md +0 -22
  48. package/docs/BlockSlotResponse.md +0 -22
  49. package/docs/Booking.md +0 -32
  50. package/docs/BookingPaymentStatusResponsePaymentStatusInner.md +0 -36
  51. package/docs/BookingPopulatedPaymentByPlayersStatusInner.md +0 -22
  52. package/docs/BookingPopulatedPaymentByPlayersStatusInnerInvoicesInner.md +0 -24
  53. package/docs/BookingPopulatedSlotId.md +0 -26
  54. package/docs/BookingPopulatedSlotIdCourtId.md +0 -22
  55. package/docs/BookingPopulatedUserId.md +0 -24
  56. package/docs/CancelBookingResponseBooking.md +0 -30
  57. package/docs/CheckInPlayersResponseCheckedInPlayersInner.md +0 -34
  58. package/docs/Club.md +0 -46
  59. package/docs/ClubInfoResponse.md +0 -48
  60. package/docs/ClubListResponse.md +0 -22
  61. package/docs/ClubMember.md +0 -34
  62. package/docs/ClubMembersResponse.md +0 -22
  63. package/docs/ClubRole.md +0 -30
  64. package/docs/ClubRolesResponse.md +0 -22
  65. package/docs/ClubSettings.md +0 -40
  66. package/docs/ClubsResponse.md +0 -22
  67. package/docs/ConfirmPaymentMethodSetupRequestBody.md +0 -20
  68. package/docs/ConfirmPaymentMethodSetupResponse.md +0 -22
  69. package/docs/Court.md +0 -32
  70. package/docs/CourtsResponse.md +0 -22
  71. package/docs/CreateClubRoleRequestBody.md +0 -24
  72. package/docs/CreateClubSettingsRequest.md +0 -28
  73. package/docs/CreatePriceRequest.md +0 -26
  74. package/docs/DeleteClub200Response.md +0 -20
  75. package/docs/DeleteClubSettingsRequest.md +0 -20
  76. package/docs/DeleteEvent200Response.md +0 -20
  77. package/docs/DeleteSlotsByClubInRange200Response.md +0 -20
  78. package/docs/DeleteSlotsResponse.md +0 -20
  79. package/docs/DeleteSport200Response.md +0 -20
  80. package/docs/Event.md +0 -40
  81. package/docs/EventBooking.md +0 -32
  82. package/docs/EventRegistrationRequest.md +0 -22
  83. package/docs/FavoriteClubItem.md +0 -26
  84. package/docs/FavoriteClubResponse.md +0 -22
  85. package/docs/FavoritePlayerPublic.md +0 -28
  86. package/docs/FavoritePlayersIdsResponse.md +0 -22
  87. package/docs/FrequentlyPlayedWithItem.md +0 -28
  88. package/docs/FrequentlyVisitedClubItem.md +0 -24
  89. package/docs/GenerateSlotsResponse.md +0 -20
  90. package/docs/GetActiveClubs200Response.md +0 -20
  91. package/docs/GetClubInfos200Response.md +0 -30
  92. package/docs/GetCourtsByClubAndSport200Response.md +0 -26
  93. package/docs/GetLastSixMonthsTurnover200ResponseInner.md +0 -22
  94. package/docs/GetNumberOfClubUsers200Response.md +0 -20
  95. package/docs/GetPublishedEventsByClubId200Response.md +0 -20
  96. package/docs/GetUserRolesResponse.md +0 -20
  97. package/docs/GetUserRolesResponseRolesInner.md +0 -26
  98. package/docs/GetUserSubscriptionsResponse.md +0 -22
  99. package/docs/GoogleSignInRequestBody.md +0 -20
  100. package/docs/GoogleSignInResponse.md +0 -24
  101. package/docs/InitiateSubscriptionSessionRequestBody.md +0 -26
  102. package/docs/InitiateSubscriptionSessionResponse.md +0 -22
  103. package/docs/InvoicesResponse.md +0 -22
  104. package/docs/InvoicesResponseInvoicesInner.md +0 -34
  105. package/docs/InvoicesResponsePagination.md +0 -26
  106. package/docs/LevelBySportsItem.md +0 -22
  107. package/docs/ManagerBookingsApi.md +0 -125
  108. package/docs/ManagerCancelBookingResponseBooking.md +0 -30
  109. package/docs/ManagerClubCourtsApi.md +0 -108
  110. package/docs/ManagerClubRolesApi.md +0 -268
  111. package/docs/ManagerClubSlotsApi.md +0 -119
  112. package/docs/ManagerClubSubscriptionsApi.md +0 -387
  113. package/docs/ManagerClubsApi.md +0 -253
  114. package/docs/ManagerEventResponse.md +0 -22
  115. package/docs/ManagerEventsApi.md +0 -227
  116. package/docs/ManagerSportsApi.md +0 -174
  117. package/docs/NoShowFeeResponseCaptureResultsInner.md +0 -30
  118. package/docs/NoShowFeeResponseCreatorChargeResult.md +0 -26
  119. package/docs/PriceResponse.md +0 -32
  120. package/docs/ProfileVisibilityResponse.md +0 -20
  121. package/docs/PublicClubUser.md +0 -46
  122. package/docs/PublicClubUserFrequentlyPlayedWithInner.md +0 -28
  123. package/docs/PublicClubUserFrequentlyVisitedClubsInner.md +0 -24
  124. package/docs/PublicClubUserLevelBySportsInner.md +0 -22
  125. package/docs/RegisterForEvent201Response.md +0 -20
  126. package/docs/RestoreSubscriptionPlanForClub200Response.md +0 -20
  127. package/docs/SetupPaymentMethodRequestBody.md +0 -20
  128. package/docs/SetupPaymentMethodResponse.md +0 -24
  129. package/docs/Slot.md +0 -24
  130. package/docs/SlotException.md +0 -26
  131. package/docs/SlotResponse.md +0 -34
  132. package/docs/SlotsResponse.md +0 -22
  133. package/docs/Sport.md +0 -24
  134. package/docs/SportsResponse.md +0 -22
  135. package/docs/StaffClubAnalyticsApi.md +0 -104
  136. package/docs/StaffClubBookingsApi.md +0 -52
  137. package/docs/StaffClubsApi.md +0 -100
  138. package/docs/StaffEventResponse.md +0 -20
  139. package/docs/StaffEventsApi.md +0 -54
  140. package/docs/StaffProfileApi.md +0 -54
  141. package/docs/StripeStatus.md +0 -16
  142. package/docs/SubscribeToClubRequestBody.md +0 -22
  143. package/docs/SubscriptionPlan.md +0 -36
  144. package/docs/SubscriptionResponse.md +0 -36
  145. package/docs/UpdateClubRoleRequestBody.md +0 -24
  146. package/docs/UpdateClubSettingsRequest.md +0 -28
  147. package/docs/UpdateCustomerRequestBodyAddress.md +0 -30
  148. package/docs/UpdateCustomerResponseCustomer.md +0 -28
  149. package/docs/UpdateProfilePictureRequestBody.md +0 -20
  150. package/docs/UpdateProfileVisibilityRequestBody.md +0 -20
  151. package/docs/UpdateSubscriptionPlanRequest.md +0 -24
  152. package/docs/UpdateSubscriptionPlanResponse.md +0 -22
  153. package/docs/UpdateUserCityRequestBody.md +0 -20
  154. package/docs/UpdateUserDescriptionRequestBody.md +0 -20
  155. package/docs/User.md +0 -40
  156. package/docs/UserAuthenticationApi.md +0 -226
  157. package/docs/UserBookingsApi.md +0 -120
  158. package/docs/UserCityResponse.md +0 -20
  159. package/docs/UserClubCourtsApi.md +0 -64
  160. package/docs/UserClubSlotsApi.md +0 -181
  161. package/docs/UserClubSportsApi.md +0 -60
  162. package/docs/UserClubsApi.md +0 -53
  163. package/docs/UserDescriptionResponse.md +0 -20
  164. package/docs/UserFavoriteClubsResponse.md +0 -20
  165. package/docs/UserPaymentApi.md +0 -176
  166. package/docs/UserProfileApi.md +0 -1201
  167. package/docs/UserResponse.md +0 -38
  168. package/docs/UserSubscriptionsApi.md +0 -222
  169. package/docs/UsersResponse.md +0 -22
  170. 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
@@ -169,6 +171,7 @@ docs/InvoiceStatus.md
169
171
  docs/JoinEventRequest.md
170
172
  docs/JoinEventRequestPlayersPaymentMethodsInner.md
171
173
  docs/JoinEventResponse.md
174
+ docs/JoinEventResponseOnsitePaymentsInner.md
172
175
  docs/LastSixMonthsTurnoverItem.md
173
176
  docs/LevelBySportEntry.md
174
177
  docs/LoginRequestBody.md
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @tennac-booking/sdk@1.0.116
1
+ ## @tennac-booking/sdk@1.0.117
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.117 --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)
@@ -363,6 +365,7 @@ Class | Method | HTTP request | Description
363
365
  - [JoinEventRequest](docs/JoinEventRequest.md)
364
366
  - [JoinEventRequestPlayersPaymentMethodsInner](docs/JoinEventRequestPlayersPaymentMethodsInner.md)
365
367
  - [JoinEventResponse](docs/JoinEventResponse.md)
368
+ - [JoinEventResponseOnsitePaymentsInner](docs/JoinEventResponseOnsitePaymentsInner.md)
366
369
  - [LastSixMonthsTurnoverItem](docs/LastSixMonthsTurnoverItem.md)
367
370
  - [LevelBySportEntry](docs/LevelBySportEntry.md)
368
371
  - [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.117
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>}
@@ -5485,6 +5528,12 @@ export interface JoinEventRequest {
5485
5528
  * @memberof JoinEventRequest
5486
5529
  */
5487
5530
  'useDefaultPaymentMethod'?: boolean;
5531
+ /**
5532
+ *
5533
+ * @type {number}
5534
+ * @memberof JoinEventRequest
5535
+ */
5536
+ 'creditToUseInCents'?: number;
5488
5537
  }
5489
5538
 
5490
5539
 
@@ -5533,7 +5582,76 @@ export interface JoinEventResponse {
5533
5582
  * @memberof JoinEventResponse
5534
5583
  */
5535
5584
  'event': EventResponse;
5585
+ /**
5586
+ * Construct a type with a set of properties K of type T
5587
+ * @type {{ [key: string]: string; }}
5588
+ * @memberof JoinEventResponse
5589
+ */
5590
+ 'paymentLinks'?: { [key: string]: string; };
5591
+ /**
5592
+ *
5593
+ * @type {Array<JoinEventResponseOnsitePaymentsInner>}
5594
+ * @memberof JoinEventResponse
5595
+ */
5596
+ 'onsitePayments'?: Array<JoinEventResponseOnsitePaymentsInner>;
5597
+ /**
5598
+ *
5599
+ * @type {string}
5600
+ * @memberof JoinEventResponse
5601
+ */
5602
+ 'setupNoShowPaymentUrl'?: string;
5603
+ /**
5604
+ *
5605
+ * @type {Array<CheckInEventParticipants200ResponseInvoicesInner>}
5606
+ * @memberof JoinEventResponse
5607
+ */
5608
+ 'invoices'?: Array<CheckInEventParticipants200ResponseInvoicesInner>;
5609
+ /**
5610
+ *
5611
+ * @type {number}
5612
+ * @memberof JoinEventResponse
5613
+ */
5614
+ 'creditsAppliedInCents'?: number;
5615
+ /**
5616
+ *
5617
+ * @type {number}
5618
+ * @memberof JoinEventResponse
5619
+ */
5620
+ 'totalAfterCredits'?: number;
5621
+ /**
5622
+ * Construct a type with a set of properties K of type T
5623
+ * @type {{ [key: string]: number; }}
5624
+ * @memberof JoinEventResponse
5625
+ */
5626
+ 'perPayerAfterCredits'?: { [key: string]: number; };
5536
5627
  }
5628
+ /**
5629
+ *
5630
+ * @export
5631
+ * @interface JoinEventResponseOnsitePaymentsInner
5632
+ */
5633
+ export interface JoinEventResponseOnsitePaymentsInner {
5634
+ /**
5635
+ *
5636
+ * @type {PaymentMethod}
5637
+ * @memberof JoinEventResponseOnsitePaymentsInner
5638
+ */
5639
+ 'paymentMethod': PaymentMethod;
5640
+ /**
5641
+ *
5642
+ * @type {number}
5643
+ * @memberof JoinEventResponseOnsitePaymentsInner
5644
+ */
5645
+ 'amount': number;
5646
+ /**
5647
+ *
5648
+ * @type {string}
5649
+ * @memberof JoinEventResponseOnsitePaymentsInner
5650
+ */
5651
+ 'playerId': string;
5652
+ }
5653
+
5654
+
5537
5655
  /**
5538
5656
  *
5539
5657
  * @export
@@ -18529,6 +18647,44 @@ export class DefaultApi extends BaseAPI {
18529
18647
  */
18530
18648
  export const EventsApiAxiosParamCreator = function (configuration?: Configuration) {
18531
18649
  return {
18650
+ /**
18651
+ * Check team name availability for TEAM participation events
18652
+ * @param {string} eventId
18653
+ * @param {string} [teamName]
18654
+ * @param {*} [options] Override http request option.
18655
+ * @throws {RequiredError}
18656
+ */
18657
+ checkTeamNameAvailability: async (eventId: string, teamName?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18658
+ // verify required parameter 'eventId' is not null or undefined
18659
+ assertParamExists('checkTeamNameAvailability', 'eventId', eventId)
18660
+ const localVarPath = `/api/events/{eventId}/team-name-availability`
18661
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
18662
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18663
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18664
+ let baseOptions;
18665
+ if (configuration) {
18666
+ baseOptions = configuration.baseOptions;
18667
+ }
18668
+
18669
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
18670
+ const localVarHeaderParameter = {} as any;
18671
+ const localVarQueryParameter = {} as any;
18672
+
18673
+ if (teamName !== undefined) {
18674
+ localVarQueryParameter['teamName'] = teamName;
18675
+ }
18676
+
18677
+
18678
+
18679
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18680
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18681
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18682
+
18683
+ return {
18684
+ url: toPathString(localVarUrlObj),
18685
+ options: localVarRequestOptions,
18686
+ };
18687
+ },
18532
18688
  /**
18533
18689
  * Estime le prix de participation à un événement pour une liste de joueurs
18534
18690
  * @param {string} eventId
@@ -18740,6 +18896,19 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
18740
18896
  export const EventsApiFp = function(configuration?: Configuration) {
18741
18897
  const localVarAxiosParamCreator = EventsApiAxiosParamCreator(configuration)
18742
18898
  return {
18899
+ /**
18900
+ * Check team name availability for TEAM participation events
18901
+ * @param {string} eventId
18902
+ * @param {string} [teamName]
18903
+ * @param {*} [options] Override http request option.
18904
+ * @throws {RequiredError}
18905
+ */
18906
+ async checkTeamNameAvailability(eventId: string, teamName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckTeamNameAvailability200Response>> {
18907
+ const localVarAxiosArgs = await localVarAxiosParamCreator.checkTeamNameAvailability(eventId, teamName, options);
18908
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18909
+ const localVarOperationServerBasePath = operationServerMap['EventsApi.checkTeamNameAvailability']?.[localVarOperationServerIndex]?.url;
18910
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18911
+ },
18743
18912
  /**
18744
18913
  * Estime le prix de participation à un événement pour une liste de joueurs
18745
18914
  * @param {string} eventId
@@ -18815,6 +18984,15 @@ export const EventsApiFp = function(configuration?: Configuration) {
18815
18984
  export const EventsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
18816
18985
  const localVarFp = EventsApiFp(configuration)
18817
18986
  return {
18987
+ /**
18988
+ * Check team name availability for TEAM participation events
18989
+ * @param {EventsApiCheckTeamNameAvailabilityRequest} requestParameters Request parameters.
18990
+ * @param {*} [options] Override http request option.
18991
+ * @throws {RequiredError}
18992
+ */
18993
+ checkTeamNameAvailability(requestParameters: EventsApiCheckTeamNameAvailabilityRequest, options?: RawAxiosRequestConfig): AxiosPromise<CheckTeamNameAvailability200Response> {
18994
+ return localVarFp.checkTeamNameAvailability(requestParameters.eventId, requestParameters.teamName, options).then((request) => request(axios, basePath));
18995
+ },
18818
18996
  /**
18819
18997
  * Estime le prix de participation à un événement pour une liste de joueurs
18820
18998
  * @param {EventsApiEstimateEventPriceRequest} requestParameters Request parameters.
@@ -18863,6 +19041,27 @@ export const EventsApiFactory = function (configuration?: Configuration, basePat
18863
19041
  };
18864
19042
  };
18865
19043
 
19044
+ /**
19045
+ * Request parameters for checkTeamNameAvailability operation in EventsApi.
19046
+ * @export
19047
+ * @interface EventsApiCheckTeamNameAvailabilityRequest
19048
+ */
19049
+ export interface EventsApiCheckTeamNameAvailabilityRequest {
19050
+ /**
19051
+ *
19052
+ * @type {string}
19053
+ * @memberof EventsApiCheckTeamNameAvailability
19054
+ */
19055
+ readonly eventId: string
19056
+
19057
+ /**
19058
+ *
19059
+ * @type {string}
19060
+ * @memberof EventsApiCheckTeamNameAvailability
19061
+ */
19062
+ readonly teamName?: string
19063
+ }
19064
+
18866
19065
  /**
18867
19066
  * Request parameters for estimateEventPrice operation in EventsApi.
18868
19067
  * @export
@@ -18975,6 +19174,17 @@ export interface EventsApiLeaveEventRequest {
18975
19174
  * @extends {BaseAPI}
18976
19175
  */
18977
19176
  export class EventsApi extends BaseAPI {
19177
+ /**
19178
+ * Check team name availability for TEAM participation events
19179
+ * @param {EventsApiCheckTeamNameAvailabilityRequest} requestParameters Request parameters.
19180
+ * @param {*} [options] Override http request option.
19181
+ * @throws {RequiredError}
19182
+ * @memberof EventsApi
19183
+ */
19184
+ public checkTeamNameAvailability(requestParameters: EventsApiCheckTeamNameAvailabilityRequest, options?: RawAxiosRequestConfig) {
19185
+ return EventsApiFp(this.configuration).checkTeamNameAvailability(requestParameters.eventId, requestParameters.teamName, options).then((request) => request(this.axios, this.basePath));
19186
+ }
19187
+
18978
19188
  /**
18979
19189
  * Estime le prix de participation à un événement pour une liste de joueurs
18980
19190
  * @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.117
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.117
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.117
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
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.117
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>}
@@ -5398,6 +5443,12 @@ export interface JoinEventRequest {
5398
5443
  * @memberof JoinEventRequest
5399
5444
  */
5400
5445
  'useDefaultPaymentMethod'?: boolean;
5446
+ /**
5447
+ *
5448
+ * @type {number}
5449
+ * @memberof JoinEventRequest
5450
+ */
5451
+ 'creditToUseInCents'?: number;
5401
5452
  }
5402
5453
  /**
5403
5454
  *
@@ -5442,6 +5493,77 @@ export interface JoinEventResponse {
5442
5493
  * @memberof JoinEventResponse
5443
5494
  */
5444
5495
  'event': EventResponse;
5496
+ /**
5497
+ * Construct a type with a set of properties K of type T
5498
+ * @type {{ [key: string]: string; }}
5499
+ * @memberof JoinEventResponse
5500
+ */
5501
+ 'paymentLinks'?: {
5502
+ [key: string]: string;
5503
+ };
5504
+ /**
5505
+ *
5506
+ * @type {Array<JoinEventResponseOnsitePaymentsInner>}
5507
+ * @memberof JoinEventResponse
5508
+ */
5509
+ 'onsitePayments'?: Array<JoinEventResponseOnsitePaymentsInner>;
5510
+ /**
5511
+ *
5512
+ * @type {string}
5513
+ * @memberof JoinEventResponse
5514
+ */
5515
+ 'setupNoShowPaymentUrl'?: string;
5516
+ /**
5517
+ *
5518
+ * @type {Array<CheckInEventParticipants200ResponseInvoicesInner>}
5519
+ * @memberof JoinEventResponse
5520
+ */
5521
+ 'invoices'?: Array<CheckInEventParticipants200ResponseInvoicesInner>;
5522
+ /**
5523
+ *
5524
+ * @type {number}
5525
+ * @memberof JoinEventResponse
5526
+ */
5527
+ 'creditsAppliedInCents'?: number;
5528
+ /**
5529
+ *
5530
+ * @type {number}
5531
+ * @memberof JoinEventResponse
5532
+ */
5533
+ 'totalAfterCredits'?: number;
5534
+ /**
5535
+ * Construct a type with a set of properties K of type T
5536
+ * @type {{ [key: string]: number; }}
5537
+ * @memberof JoinEventResponse
5538
+ */
5539
+ 'perPayerAfterCredits'?: {
5540
+ [key: string]: number;
5541
+ };
5542
+ }
5543
+ /**
5544
+ *
5545
+ * @export
5546
+ * @interface JoinEventResponseOnsitePaymentsInner
5547
+ */
5548
+ export interface JoinEventResponseOnsitePaymentsInner {
5549
+ /**
5550
+ *
5551
+ * @type {PaymentMethod}
5552
+ * @memberof JoinEventResponseOnsitePaymentsInner
5553
+ */
5554
+ 'paymentMethod': PaymentMethod;
5555
+ /**
5556
+ *
5557
+ * @type {number}
5558
+ * @memberof JoinEventResponseOnsitePaymentsInner
5559
+ */
5560
+ 'amount': number;
5561
+ /**
5562
+ *
5563
+ * @type {string}
5564
+ * @memberof JoinEventResponseOnsitePaymentsInner
5565
+ */
5566
+ 'playerId': string;
5445
5567
  }
5446
5568
  /**
5447
5569
  *
@@ -14253,6 +14375,14 @@ export declare class DefaultApi extends BaseAPI {
14253
14375
  * @export
14254
14376
  */
14255
14377
  export declare const EventsApiAxiosParamCreator: (configuration?: Configuration) => {
14378
+ /**
14379
+ * Check team name availability for TEAM participation events
14380
+ * @param {string} eventId
14381
+ * @param {string} [teamName]
14382
+ * @param {*} [options] Override http request option.
14383
+ * @throws {RequiredError}
14384
+ */
14385
+ checkTeamNameAvailability: (eventId: string, teamName?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
14256
14386
  /**
14257
14387
  * Estime le prix de participation à un événement pour une liste de joueurs
14258
14388
  * @param {string} eventId
@@ -14299,6 +14429,14 @@ export declare const EventsApiAxiosParamCreator: (configuration?: Configuration)
14299
14429
  * @export
14300
14430
  */
14301
14431
  export declare const EventsApiFp: (configuration?: Configuration) => {
14432
+ /**
14433
+ * Check team name availability for TEAM participation events
14434
+ * @param {string} eventId
14435
+ * @param {string} [teamName]
14436
+ * @param {*} [options] Override http request option.
14437
+ * @throws {RequiredError}
14438
+ */
14439
+ checkTeamNameAvailability(eventId: string, teamName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckTeamNameAvailability200Response>>;
14302
14440
  /**
14303
14441
  * Estime le prix de participation à un événement pour une liste de joueurs
14304
14442
  * @param {string} eventId
@@ -14345,6 +14483,13 @@ export declare const EventsApiFp: (configuration?: Configuration) => {
14345
14483
  * @export
14346
14484
  */
14347
14485
  export declare const EventsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
14486
+ /**
14487
+ * Check team name availability for TEAM participation events
14488
+ * @param {EventsApiCheckTeamNameAvailabilityRequest} requestParameters Request parameters.
14489
+ * @param {*} [options] Override http request option.
14490
+ * @throws {RequiredError}
14491
+ */
14492
+ checkTeamNameAvailability(requestParameters: EventsApiCheckTeamNameAvailabilityRequest, options?: RawAxiosRequestConfig): AxiosPromise<CheckTeamNameAvailability200Response>;
14348
14493
  /**
14349
14494
  * Estime le prix de participation à un événement pour une liste de joueurs
14350
14495
  * @param {EventsApiEstimateEventPriceRequest} requestParameters Request parameters.
@@ -14381,6 +14526,25 @@ export declare const EventsApiFactory: (configuration?: Configuration, basePath?
14381
14526
  */
14382
14527
  leaveEvent(requestParameters: EventsApiLeaveEventRequest, options?: RawAxiosRequestConfig): AxiosPromise<JoinEventResponse>;
14383
14528
  };
14529
+ /**
14530
+ * Request parameters for checkTeamNameAvailability operation in EventsApi.
14531
+ * @export
14532
+ * @interface EventsApiCheckTeamNameAvailabilityRequest
14533
+ */
14534
+ export interface EventsApiCheckTeamNameAvailabilityRequest {
14535
+ /**
14536
+ *
14537
+ * @type {string}
14538
+ * @memberof EventsApiCheckTeamNameAvailability
14539
+ */
14540
+ readonly eventId: string;
14541
+ /**
14542
+ *
14543
+ * @type {string}
14544
+ * @memberof EventsApiCheckTeamNameAvailability
14545
+ */
14546
+ readonly teamName?: string;
14547
+ }
14384
14548
  /**
14385
14549
  * Request parameters for estimateEventPrice operation in EventsApi.
14386
14550
  * @export
@@ -14483,6 +14647,14 @@ export interface EventsApiLeaveEventRequest {
14483
14647
  * @extends {BaseAPI}
14484
14648
  */
14485
14649
  export declare class EventsApi extends BaseAPI {
14650
+ /**
14651
+ * Check team name availability for TEAM participation events
14652
+ * @param {EventsApiCheckTeamNameAvailabilityRequest} requestParameters Request parameters.
14653
+ * @param {*} [options] Override http request option.
14654
+ * @throws {RequiredError}
14655
+ * @memberof EventsApi
14656
+ */
14657
+ checkTeamNameAvailability(requestParameters: EventsApiCheckTeamNameAvailabilityRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CheckTeamNameAvailability200Response, any, {}>>;
14486
14658
  /**
14487
14659
  * Estime le prix de participation à un événement pour une liste de joueurs
14488
14660
  * @param {EventsApiEstimateEventPriceRequest} requestParameters Request parameters.