@tennac-booking/sdk 1.0.97 → 1.0.98

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 (101) hide show
  1. package/.openapi-generator/FILES +264 -267
  2. package/README.md +46 -45
  3. package/api.ts +2342 -2430
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +1475 -1614
  8. package/dist/api.js +1192 -1061
  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 +1475 -1614
  16. package/dist/esm/api.js +1157 -1035
  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/ActiveSubscriptionResponse.md +22 -0
  28. package/docs/AddClubMemberRequest.md +1 -7
  29. package/docs/{ClubDaySchedule.md → AddCreditsToCustomer200Response.md} +5 -7
  30. package/docs/AddCreditsToCustomerRequest.md +22 -0
  31. package/docs/BookingPopulated.md +3 -3
  32. package/docs/BookingPriceBody.md +4 -2
  33. package/docs/BookingPriceResponse.md +2 -0
  34. package/docs/BookingSummary.md +4 -0
  35. package/docs/ClientAccountOnboardingRequest.md +29 -0
  36. package/docs/ClientAccountOnboardingResponse.md +34 -0
  37. package/docs/ClientAccountResponse.md +44 -0
  38. package/docs/ClientAccountsApi.md +408 -0
  39. package/docs/ClientApi.md +109 -0
  40. package/docs/{ClubPlayerStatisticsResponseMostPlayedPartnersInner.md → ClientMeResponse.md} +11 -9
  41. package/docs/ClientOnboardingRequestBody.md +33 -0
  42. package/docs/ClientOnboardingResponse.md +27 -0
  43. package/docs/ClientRegisterRequestBody.md +26 -0
  44. package/docs/ClientRegisterResponse.md +22 -0
  45. package/docs/ClientSubscriptionResponse.md +34 -0
  46. package/docs/ClubAnalyticsStaffApi.md +0 -314
  47. package/docs/ClubSettingsManagerApi.md +60 -54
  48. package/docs/ClubSettingsResponse.md +39 -0
  49. package/docs/ClubsManagerApi.md +58 -52
  50. package/docs/ClubsStaffApi.md +0 -44
  51. package/docs/CourtResponse.md +1 -1
  52. package/docs/CreateBookingRequest.md +1 -1
  53. package/docs/CreateClubSettingsRequest.md +34 -0
  54. package/docs/CreateCourtRequest.md +1 -1
  55. package/docs/CreateEventRequest.md +1 -3
  56. package/docs/DeleteClubSettingsResponse.md +20 -0
  57. package/docs/EventResponse.md +1 -1
  58. package/docs/EventResponseCourtsInner.md +18 -0
  59. package/docs/GetSubscriptionsHistory200Response.md +22 -0
  60. package/docs/IUserAttributes.md +2 -0
  61. package/docs/ManagedClubsResponse.md +23 -0
  62. package/docs/PlayerShare.md +22 -0
  63. package/docs/PlayerWithPaymentMethod.md +2 -0
  64. package/docs/SlotInfo.md +2 -2
  65. package/docs/SportsStaffApi.md +55 -0
  66. package/docs/StaffUserProfileResponse.md +2 -0
  67. package/docs/UpdateClubSettingsRequest.md +32 -0
  68. package/docs/UpdateEventRequest.md +1 -1
  69. package/docs/UserClubMembership.md +34 -0
  70. package/docs/UserClubMembershipsResponse.md +20 -0
  71. package/docs/UserInfo.md +0 -2
  72. package/docs/UserProfileResponse.md +2 -0
  73. package/docs/UsersApi.md +46 -0
  74. package/index.ts +1 -1
  75. package/package.json +1 -1
  76. package/docs/ClubGeneralSettingsResponse.md +0 -32
  77. package/docs/ClubHoursSettingsResponse.md +0 -22
  78. package/docs/ClubLocationSettings.md +0 -26
  79. package/docs/ClubPlayerBookingItem.md +0 -36
  80. package/docs/ClubPlayerBookingsPagination.md +0 -28
  81. package/docs/ClubPlayerBookingsResponse.md +0 -24
  82. package/docs/ClubPlayerDetailResponse.md +0 -46
  83. package/docs/ClubPlayerDetailResponseSportsLevelsInner.md +0 -22
  84. package/docs/ClubPlayerStatisticsResponse.md +0 -42
  85. package/docs/ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner.md +0 -22
  86. package/docs/ClubPlayerStatisticsResponseFavoriteClub.md +0 -23
  87. package/docs/ClubPlayerStatisticsResponseMostPlayedClub.md +0 -25
  88. package/docs/ClubPlayerSubscriptionSummary.md +0 -28
  89. package/docs/ClubPresentationSettingsResponse.md +0 -26
  90. package/docs/ClubPricingPeriodResponse.md +0 -30
  91. package/docs/ClubReservationSettingsResponse.md +0 -28
  92. package/docs/ClubSettingsStaffApi.md +0 -183
  93. package/docs/ClubWeeklySchedule.md +0 -32
  94. package/docs/CourtBookingShareItem.md +0 -26
  95. package/docs/PartialClubWeeklySchedule.md +0 -33
  96. package/docs/RetentionRateResponse.md +0 -24
  97. package/docs/RevenueBySportItem.md +0 -24
  98. package/docs/UpdateClubGeneralSettingsRequest.md +0 -34
  99. package/docs/UpdateClubHoursSettingsRequest.md +0 -22
  100. package/docs/UpdateClubPresentationSettingsRequest.md +0 -26
  101. package/docs/UpdateClubReservationSettingsRequest.md +0 -28
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.89
5
+ * The version of the OpenAPI document: 1.0.98
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/base.js 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.89
7
+ * The version of the OpenAPI document: 1.0.98
8
8
  *
9
9
  *
10
10
  * 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.89
5
+ * The version of the OpenAPI document: 1.0.98
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.89
7
+ * The version of the OpenAPI document: 1.0.98
8
8
  *
9
9
  *
10
10
  * 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.89
5
+ * The version of the OpenAPI document: 1.0.98
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.89
7
+ * The version of the OpenAPI document: 1.0.98
8
8
  *
9
9
  *
10
10
  * 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.89
5
+ * The version of the OpenAPI document: 1.0.98
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/index.js 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.89
7
+ * The version of the OpenAPI document: 1.0.98
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.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.89
5
+ * The version of the OpenAPI document: 1.0.98
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.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.89
8
+ * The version of the OpenAPI document: 1.0.98
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,22 @@
1
+ # ActiveSubscriptionResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **clientAccountId** | **string** | | [default to undefined]
9
+ **subscription** | [**ClientSubscriptionResponse**](ClientSubscriptionResponse.md) | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { ActiveSubscriptionResponse } from '@tennac-booking/sdk';
15
+
16
+ const instance: ActiveSubscriptionResponse = {
17
+ clientAccountId,
18
+ subscription,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -5,13 +5,10 @@
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **userId** | **string** | ID de l\'utilisateur à ajouter (optionnel si création d\'un compte) | [optional] [default to undefined]
8
+ **userId** | **string** | ID de l\'utilisateur à ajouter | [default to undefined]
9
9
  **clubId** | **string** | ID du club (optionnel si fourni via le middleware d\'authentification) | [optional] [default to undefined]
10
10
  **role** | **string** | Rôle de l\'utilisateur dans le club | [default to undefined]
11
11
  **rights** | **Array<string>** | Droits de l\'utilisateur dans le club | [optional] [default to undefined]
12
- **firstName** | **string** | Prénom du membre (requis si création d\'un compte) | [optional] [default to undefined]
13
- **lastName** | **string** | Nom du membre (requis si création d\'un compte) | [optional] [default to undefined]
14
- **email** | **string** | Email du membre (requis si création d\'un compte) | [optional] [default to undefined]
15
12
 
16
13
  ## Example
17
14
 
@@ -23,9 +20,6 @@ const instance: AddClubMemberRequest = {
23
20
  clubId,
24
21
  role,
25
22
  rights,
26
- firstName,
27
- lastName,
28
- email,
29
23
  };
30
24
  ```
31
25
 
@@ -1,21 +1,19 @@
1
- # ClubDaySchedule
1
+ # AddCreditsToCustomer200Response
2
2
 
3
3
 
4
4
  ## Properties
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **open** | **string** | | [default to undefined]
9
- **close** | **string** | | [default to undefined]
8
+ **credits** | **number** | | [default to undefined]
10
9
 
11
10
  ## Example
12
11
 
13
12
  ```typescript
14
- import { ClubDaySchedule } from '@tennac-booking/sdk';
13
+ import { AddCreditsToCustomer200Response } from '@tennac-booking/sdk';
15
14
 
16
- const instance: ClubDaySchedule = {
17
- open,
18
- close,
15
+ const instance: AddCreditsToCustomer200Response = {
16
+ credits,
19
17
  };
20
18
  ```
21
19
 
@@ -0,0 +1,22 @@
1
+ # AddCreditsToCustomerRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **reason** | **string** | | [optional] [default to undefined]
9
+ **amount** | **number** | | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { AddCreditsToCustomerRequest } from '@tennac-booking/sdk';
15
+
16
+ const instance: AddCreditsToCustomerRequest = {
17
+ reason,
18
+ amount,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -8,13 +8,13 @@ Name | Type | Description | Notes
8
8
  **id** | **string** | ID de la réservation | [default to undefined]
9
9
  **clubId** | **string** | | [default to undefined]
10
10
  **creator** | [**UserInfo**](UserInfo.md) | | [default to undefined]
11
- **slotInfos** | [**SlotInfo**](SlotInfo.md) | | [default to undefined]
12
- **players** | [**Array<UserInfo>**](UserInfo.md) | | [default to undefined]
11
+ **slotInfos** | [**Array<SlotInfo>**](SlotInfo.md) | Information(s) des créneaux | [default to undefined]
13
12
  **paymentByPlayers** | [**Array<PaymentByPlayerInfo>**](PaymentByPlayerInfo.md) | Statut des paiements par joueur | [default to undefined]
14
13
  **noShowChargeApplied** | **boolean** | | [optional] [default to undefined]
15
14
  **noShowChargeAmount** | **number** | | [optional] [default to undefined]
16
15
  **totalPrice** | **number** | | [default to undefined]
17
16
  **isCreatorPayingAll** | **boolean** | | [default to undefined]
17
+ **playersIds** | **Array<string>** | | [default to undefined]
18
18
  **history** | [**Array<BookingHistoryPopulated>**](BookingHistoryPopulated.md) | | [default to undefined]
19
19
  **status** | [**BookingStatus**](BookingStatus.md) | | [default to undefined]
20
20
  **cancelledByManager** | **boolean** | | [optional] [default to undefined]
@@ -31,12 +31,12 @@ const instance: BookingPopulated = {
31
31
  clubId,
32
32
  creator,
33
33
  slotInfos,
34
- players,
35
34
  paymentByPlayers,
36
35
  noShowChargeApplied,
37
36
  noShowChargeAmount,
38
37
  totalPrice,
39
38
  isCreatorPayingAll,
39
+ playersIds,
40
40
  history,
41
41
  status,
42
42
  cancelledByManager,
@@ -6,7 +6,8 @@
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **slotIds** | **Array<string>** | | [default to undefined]
9
- **players** | **Array<string>** | | [default to undefined]
9
+ **playerShares** | [**Array<PlayerShare>**](PlayerShare.md) | | [optional] [default to undefined]
10
+ **creditToUseInCents** | **number** | | [optional] [default to undefined]
10
11
 
11
12
  ## Example
12
13
 
@@ -15,7 +16,8 @@ import { BookingPriceBody } from '@tennac-booking/sdk';
15
16
 
16
17
  const instance: BookingPriceBody = {
17
18
  slotIds,
18
- players,
19
+ playerShares,
20
+ creditToUseInCents,
19
21
  };
20
22
  ```
21
23
 
@@ -6,6 +6,7 @@
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **creatorNeedsToRegisterPaymentMethod** | **boolean** | | [default to undefined]
9
+ **creatorCreditAvailableInCents** | **number** | | [optional] [default to undefined]
9
10
  **playerPrices** | [**Array<PlayerPrice>**](PlayerPrice.md) | | [default to undefined]
10
11
 
11
12
  ## Example
@@ -15,6 +16,7 @@ import { BookingPriceResponse } from '@tennac-booking/sdk';
15
16
 
16
17
  const instance: BookingPriceResponse = {
17
18
  creatorNeedsToRegisterPaymentMethod,
19
+ creatorCreditAvailableInCents,
18
20
  playerPrices,
19
21
  };
20
22
  ```
@@ -15,6 +15,7 @@ Name | Type | Description | Notes
15
15
  **totalPrice** | **number** | | [default to undefined]
16
16
  **slotIds** | **Array<string>** | | [default to undefined]
17
17
  **isPublic** | **boolean** | | [default to undefined]
18
+ **requestingUserId** | **string** | | [default to undefined]
18
19
  **creatorPaymentMethodId** | **string** | | [optional] [default to undefined]
19
20
  **paymentMethodSetupCompleted** | **boolean** | | [default to undefined]
20
21
  **noShowChargeAmount** | **number** | | [optional] [default to undefined]
@@ -35,6 +36,7 @@ Name | Type | Description | Notes
35
36
  **bookingStatus** | **string** | | [optional] [default to undefined]
36
37
  **playersName** | **Array<string>** | | [default to undefined]
37
38
  **myAmountToPay** | **number** | | [default to undefined]
39
+ **paymentUrl** | **string** | | [optional] [default to undefined]
38
40
  **totalAmount** | **number** | | [default to undefined]
39
41
  **timeBeforeCancel** | **string** | | [optional] [default to undefined]
40
42
  **clubAddress** | [**BookingSummaryClubAddress**](BookingSummaryClubAddress.md) | | [optional] [default to undefined]
@@ -61,6 +63,7 @@ const instance: BookingSummary = {
61
63
  totalPrice,
62
64
  slotIds,
63
65
  isPublic,
66
+ requestingUserId,
64
67
  creatorPaymentMethodId,
65
68
  paymentMethodSetupCompleted,
66
69
  noShowChargeAmount,
@@ -81,6 +84,7 @@ const instance: BookingSummary = {
81
84
  bookingStatus,
82
85
  playersName,
83
86
  myAmountToPay,
87
+ paymentUrl,
84
88
  totalAmount,
85
89
  timeBeforeCancel,
86
90
  clubAddress,
@@ -0,0 +1,29 @@
1
+ # ClientAccountOnboardingRequest
2
+
3
+ Types pour les requêtes/réponses
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **businessName** | **string** | | [default to undefined]
10
+ **businessType** | **string** | | [default to undefined]
11
+ **subscriptionType** | **string** | | [default to undefined]
12
+ **isPublicOrganization** | **boolean** | | [optional] [default to undefined]
13
+ **priceId** | **string** | | [default to undefined]
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import { ClientAccountOnboardingRequest } from '@tennac-booking/sdk';
19
+
20
+ const instance: ClientAccountOnboardingRequest = {
21
+ businessName,
22
+ businessType,
23
+ subscriptionType,
24
+ isPublicOrganization,
25
+ priceId,
26
+ };
27
+ ```
28
+
29
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,34 @@
1
+ # ClientAccountOnboardingResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **clientAccountId** | **string** | | [default to undefined]
9
+ **stripeCustomerId** | **string** | | [default to undefined]
10
+ **stripeConnectedAccountId** | **string** | | [optional] [default to undefined]
11
+ **connectedAccountOnboardingLink** | **string** | | [optional] [default to undefined]
12
+ **status** | **string** | | [default to undefined]
13
+ **message** | **string** | | [default to undefined]
14
+ **isPublicOrganization** | **boolean** | | [default to undefined]
15
+ **manualInvoiceRequired** | **boolean** | | [optional] [default to undefined]
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import { ClientAccountOnboardingResponse } from '@tennac-booking/sdk';
21
+
22
+ const instance: ClientAccountOnboardingResponse = {
23
+ clientAccountId,
24
+ stripeCustomerId,
25
+ stripeConnectedAccountId,
26
+ connectedAccountOnboardingLink,
27
+ status,
28
+ message,
29
+ isPublicOrganization,
30
+ manualInvoiceRequired,
31
+ };
32
+ ```
33
+
34
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,44 @@
1
+ # ClientAccountResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | | [default to undefined]
9
+ **email** | **string** | | [default to undefined]
10
+ **businessName** | **string** | | [default to undefined]
11
+ **businessType** | **string** | | [default to undefined]
12
+ **subscriptionType** | **string** | | [default to undefined]
13
+ **status** | **string** | | [default to undefined]
14
+ **platformPaymentMethodSetup** | **boolean** | | [default to undefined]
15
+ **stripeConnectedAccountId** | **string** | | [optional] [default to undefined]
16
+ **connectedAccountOnboardingRequired** | **boolean** | | [optional] [default to undefined]
17
+ **isPublicOrganization** | **boolean** | | [default to undefined]
18
+ **manualInvoiceRequired** | **boolean** | | [optional] [default to undefined]
19
+ **createdAt** | **string** | | [default to undefined]
20
+ **updatedAt** | **string** | | [default to undefined]
21
+
22
+ ## Example
23
+
24
+ ```typescript
25
+ import { ClientAccountResponse } from '@tennac-booking/sdk';
26
+
27
+ const instance: ClientAccountResponse = {
28
+ id,
29
+ email,
30
+ businessName,
31
+ businessType,
32
+ subscriptionType,
33
+ status,
34
+ platformPaymentMethodSetup,
35
+ stripeConnectedAccountId,
36
+ connectedAccountOnboardingRequired,
37
+ isPublicOrganization,
38
+ manualInvoiceRequired,
39
+ createdAt,
40
+ updatedAt,
41
+ };
42
+ ```
43
+
44
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)