@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.
- package/.openapi-generator/FILES +264 -267
- package/README.md +46 -45
- package/api.ts +2342 -2430
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +1475 -1614
- package/dist/api.js +1192 -1061
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +1475 -1614
- package/dist/esm/api.js +1157 -1035
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/ActiveSubscriptionResponse.md +22 -0
- package/docs/AddClubMemberRequest.md +1 -7
- package/docs/{ClubDaySchedule.md → AddCreditsToCustomer200Response.md} +5 -7
- package/docs/AddCreditsToCustomerRequest.md +22 -0
- package/docs/BookingPopulated.md +3 -3
- package/docs/BookingPriceBody.md +4 -2
- package/docs/BookingPriceResponse.md +2 -0
- package/docs/BookingSummary.md +4 -0
- package/docs/ClientAccountOnboardingRequest.md +29 -0
- package/docs/ClientAccountOnboardingResponse.md +34 -0
- package/docs/ClientAccountResponse.md +44 -0
- package/docs/ClientAccountsApi.md +408 -0
- package/docs/ClientApi.md +109 -0
- package/docs/{ClubPlayerStatisticsResponseMostPlayedPartnersInner.md → ClientMeResponse.md} +11 -9
- package/docs/ClientOnboardingRequestBody.md +33 -0
- package/docs/ClientOnboardingResponse.md +27 -0
- package/docs/ClientRegisterRequestBody.md +26 -0
- package/docs/ClientRegisterResponse.md +22 -0
- package/docs/ClientSubscriptionResponse.md +34 -0
- package/docs/ClubAnalyticsStaffApi.md +0 -314
- package/docs/ClubSettingsManagerApi.md +60 -54
- package/docs/ClubSettingsResponse.md +39 -0
- package/docs/ClubsManagerApi.md +58 -52
- package/docs/ClubsStaffApi.md +0 -44
- package/docs/CourtResponse.md +1 -1
- package/docs/CreateBookingRequest.md +1 -1
- package/docs/CreateClubSettingsRequest.md +34 -0
- package/docs/CreateCourtRequest.md +1 -1
- package/docs/CreateEventRequest.md +1 -3
- package/docs/DeleteClubSettingsResponse.md +20 -0
- package/docs/EventResponse.md +1 -1
- package/docs/EventResponseCourtsInner.md +18 -0
- package/docs/GetSubscriptionsHistory200Response.md +22 -0
- package/docs/IUserAttributes.md +2 -0
- package/docs/ManagedClubsResponse.md +23 -0
- package/docs/PlayerShare.md +22 -0
- package/docs/PlayerWithPaymentMethod.md +2 -0
- package/docs/SlotInfo.md +2 -2
- package/docs/SportsStaffApi.md +55 -0
- package/docs/StaffUserProfileResponse.md +2 -0
- package/docs/UpdateClubSettingsRequest.md +32 -0
- package/docs/UpdateEventRequest.md +1 -1
- package/docs/UserClubMembership.md +34 -0
- package/docs/UserClubMembershipsResponse.md +20 -0
- package/docs/UserInfo.md +0 -2
- package/docs/UserProfileResponse.md +2 -0
- package/docs/UsersApi.md +46 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/ClubGeneralSettingsResponse.md +0 -32
- package/docs/ClubHoursSettingsResponse.md +0 -22
- package/docs/ClubLocationSettings.md +0 -26
- package/docs/ClubPlayerBookingItem.md +0 -36
- package/docs/ClubPlayerBookingsPagination.md +0 -28
- package/docs/ClubPlayerBookingsResponse.md +0 -24
- package/docs/ClubPlayerDetailResponse.md +0 -46
- package/docs/ClubPlayerDetailResponseSportsLevelsInner.md +0 -22
- package/docs/ClubPlayerStatisticsResponse.md +0 -42
- package/docs/ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner.md +0 -22
- package/docs/ClubPlayerStatisticsResponseFavoriteClub.md +0 -23
- package/docs/ClubPlayerStatisticsResponseMostPlayedClub.md +0 -25
- package/docs/ClubPlayerSubscriptionSummary.md +0 -28
- package/docs/ClubPresentationSettingsResponse.md +0 -26
- package/docs/ClubPricingPeriodResponse.md +0 -30
- package/docs/ClubReservationSettingsResponse.md +0 -28
- package/docs/ClubSettingsStaffApi.md +0 -183
- package/docs/ClubWeeklySchedule.md +0 -32
- package/docs/CourtBookingShareItem.md +0 -26
- package/docs/PartialClubWeeklySchedule.md +0 -33
- package/docs/RetentionRateResponse.md +0 -24
- package/docs/RevenueBySportItem.md +0 -24
- package/docs/UpdateClubGeneralSettingsRequest.md +0 -34
- package/docs/UpdateClubHoursSettingsRequest.md +0 -22
- package/docs/UpdateClubPresentationSettingsRequest.md +0 -26
- package/docs/UpdateClubReservationSettingsRequest.md +0 -28
package/dist/esm/base.d.ts
CHANGED
package/dist/esm/base.js
CHANGED
package/dist/esm/common.d.ts
CHANGED
package/dist/esm/common.js
CHANGED
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -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
|
|
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
|
-
#
|
|
1
|
+
# AddCreditsToCustomer200Response
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**
|
|
9
|
-
**close** | **string** | | [default to undefined]
|
|
8
|
+
**credits** | **number** | | [default to undefined]
|
|
10
9
|
|
|
11
10
|
## Example
|
|
12
11
|
|
|
13
12
|
```typescript
|
|
14
|
-
import {
|
|
13
|
+
import { AddCreditsToCustomer200Response } from '@tennac-booking/sdk';
|
|
15
14
|
|
|
16
|
-
const instance:
|
|
17
|
-
|
|
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)
|
package/docs/BookingPopulated.md
CHANGED
|
@@ -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
|
|
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,
|
package/docs/BookingPriceBody.md
CHANGED
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**slotIds** | **Array<string>** | | [default to undefined]
|
|
9
|
-
**
|
|
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
|
-
|
|
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
|
```
|
package/docs/BookingSummary.md
CHANGED
|
@@ -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)
|