@tennac-booking/sdk 1.0.55 → 1.0.60
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 +182 -222
- package/README.md +158 -165
- package/api.ts +6921 -7583
- package/base.ts +2 -2
- package/common.ts +2 -2
- package/configuration.ts +2 -2
- package/dist/api.d.ts +4106 -5418
- package/dist/api.js +3585 -2957
- package/dist/base.d.ts +2 -2
- package/dist/base.js +2 -2
- package/dist/common.d.ts +2 -2
- package/dist/common.js +2 -2
- package/dist/configuration.d.ts +2 -2
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +4106 -5418
- package/dist/esm/api.js +3511 -2862
- package/dist/esm/base.d.ts +2 -2
- package/dist/esm/base.js +2 -2
- package/dist/esm/common.d.ts +2 -2
- package/dist/esm/common.js +2 -2
- package/dist/esm/configuration.d.ts +2 -2
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/docs/{ApiErrorResponse.md → AddClubMember201Response.md} +6 -6
- package/docs/AddClubMemberRequest.md +7 -3
- package/docs/BookingAnalyticsResponse.md +34 -0
- package/docs/BookingHistory.md +34 -0
- package/docs/BookingInfo.md +50 -0
- package/docs/BookingPaymentStatusResponse.md +3 -3
- package/docs/BookingPaymentStatusResponseBooking.md +8 -7
- package/docs/BookingPaymentStatusResponseSummary.md +10 -9
- package/docs/BookingPopulated.md +5 -5
- package/docs/BookingResponse.md +4 -4
- package/docs/{UpdateProfileVisibilityRequestBody.md → BookingResponseOnsitePaymentsInner.md} +7 -5
- package/docs/BookingStatus.md +9 -1
- package/docs/BookingsApi.md +10 -64
- package/docs/{ManagerBookingsApi.md → BookingsManagerApi.md} +14 -24
- package/docs/BookingsStaffApi.md +323 -0
- package/docs/{UserBookingsApi.md → BookingsUserApi.md} +17 -25
- package/docs/CancelBookingResponse.md +2 -2
- package/docs/CaptureResult.md +30 -0
- package/docs/CheckInPlayersRequest.md +20 -0
- package/docs/CheckInPlayersResponse.md +6 -6
- package/docs/CheckedInPlayer.md +34 -0
- package/docs/ClubAnalyticsApi.md +20 -160
- package/docs/ClubAnalyticsStaffApi.md +523 -0
- package/docs/ClubMemberResponse.md +24 -0
- package/docs/ClubMemberResponseUser.md +27 -0
- package/docs/ClubPlayerResponse.md +36 -0
- package/docs/ClubResponse.md +23 -14
- package/docs/ClubResponseCreatedAt.md +19 -0
- package/docs/{Location.md → ClubResponseLocation.md} +9 -12
- package/docs/{GetNumberOfClubUsers200Response.md → ClubResponseLocationCoordinates.md} +7 -5
- package/docs/ClubResponseUpdatedAt.md +19 -0
- package/docs/ClubRoleResponse.md +11 -9
- package/docs/ClubRolesManagerApi.md +177 -0
- package/docs/{StaffClubsApi.md → ClubRolesStaffApi.md} +41 -34
- package/docs/{ManagerClubCourtsApi.md → ClubSettingsManagerApi.md} +64 -63
- package/docs/ClubSettingsResponse.md +41 -0
- package/docs/{AddFavoriteClubRequestBody.md → ClubUserCountResponse.md} +5 -5
- package/docs/ClubsApi.md +515 -8
- package/docs/ClubsManagerApi.md +1005 -0
- package/docs/{ManagerClubsApi.md → ClubsStaffApi.md} +138 -62
- package/docs/CourtInfo.md +28 -0
- package/docs/CourtResponse.md +16 -16
- package/docs/CourtStatus.md +2 -5
- package/docs/CreateBookingRequest.md +1 -3
- package/docs/CreateClubRequest.md +22 -0
- package/docs/CreateClubRoleRequest.md +24 -0
- package/docs/CreateClubSettingsRequest.md +34 -0
- package/docs/{ActiveClubListResponse.md → CreateCourtForClub201Response.md} +5 -5
- package/docs/CreateCourtRequest.md +10 -12
- package/docs/CreateEventRequest.md +1 -3
- package/docs/CreateSportForClub201Response.md +20 -0
- package/docs/{Sport.md → CreateSportForClubRequest.md} +4 -6
- package/docs/CreateSportRequest.md +1 -7
- package/docs/CreateSubscriptionPlanRequest.md +6 -4
- package/docs/CreatorChargeResult.md +26 -0
- package/docs/DailyTurnoverResponse.md +3 -3
- package/docs/{ManagerSportsApi.md → DefaultApi.md} +35 -38
- package/docs/{DeleteEvent200Response.md → DeleteClubResponse.md} +4 -4
- package/docs/{CourtDeleteResponse.md → DeleteClubRoleResponse.md} +4 -4
- package/docs/DeleteClubSettingsResponse.md +20 -0
- package/docs/{DeleteClubRole200Response.md → DeleteCourtResponse.md} +4 -4
- package/docs/{DeleteSport200Response.md → DeleteEventResponse.md} +4 -4
- package/docs/DeleteSlotsByClubInRange200Response.md +1 -1
- package/docs/DeleteSportResponse.md +20 -0
- package/docs/EventResponse.md +40 -0
- package/docs/EventResponseCourtsInner.md +18 -0
- package/docs/EventsApi.md +21 -21
- package/docs/{StaffEventResponse.md → EventsListResponse.md} +4 -4
- package/docs/{ManagerEventsApi.md → EventsManagerApi.md} +38 -40
- package/docs/{StaffEventsApi.md → EventsStaffApi.md} +11 -10
- package/docs/{GenderPercentage.md → GenderPercentageResponse.md} +7 -7
- package/docs/GetActualities200Response.md +20 -0
- package/docs/GetAvailableSlotsBySports200Response.md +20 -0
- package/docs/{ClubMembersResponse.md → GetClubMembers200Response.md} +6 -6
- package/docs/GetClubRoles200Response.md +20 -0
- package/docs/GetClubUsersById200Response.md +1 -1
- package/docs/{CourtsResponse.md → GetCourtsByClub200Response.md} +4 -6
- package/docs/GetCourtsByClubAndSportById200Response.md +26 -0
- package/docs/GetInfillPercentagePerPeriod200Response.md +5 -5
- package/docs/{SlotsResponse.md → GetSlotsByClubById200Response.md} +6 -6
- package/docs/GetSportsByClubById200Response.md +20 -0
- package/docs/{Court.md → ICourtData.md} +18 -6
- package/docs/{DiagnosticsResponse.md → InvoiceInfo.md} +8 -8
- package/docs/{ClubListResponse.md → LastSixMonthsTurnoverItem.md} +7 -7
- package/docs/ManagerCancelBookingRequest.md +1 -1
- package/docs/ManagerCancelBookingResponse.md +2 -2
- package/docs/MonthlyBreakdown.md +24 -0
- package/docs/MonthlyTurnoverResponse.md +6 -5
- package/docs/NoShowFeeResponse.md +6 -6
- package/docs/PartialClubResponse.md +49 -0
- package/docs/PaymentByPlayerInfo.md +22 -0
- package/docs/PaymentMethod.md +2 -1
- package/docs/PlayerPaymentInfo.md +36 -0
- package/docs/PublishEventResponse.md +20 -0
- package/docs/SlotInfo.md +26 -0
- package/docs/SportAnalyticsResponse.md +24 -0
- package/docs/SportInfo.md +22 -0
- package/docs/SportResponse.md +8 -11
- package/docs/SportWithAnalytics.md +36 -0
- package/docs/SportsManagerApi.md +177 -0
- package/docs/{StaffClubBookingsApi.md → SportsStaffApi.md} +14 -11
- package/docs/SubscriptionPlanResponse.md +4 -14
- package/docs/SurfaceType.md +12 -0
- package/docs/UpdateActuality200Response.md +20 -0
- package/docs/UpdateClubRequest.md +11 -11
- package/docs/UpdateClubRequestLocation.md +29 -0
- package/docs/{BookingPopulatedSlotIdCourtIdSportId.md → UpdateClubRequestLocationCoordinates.md} +7 -7
- package/docs/UpdateClubRoleRequest.md +22 -0
- package/docs/UpdateClubSettingsRequest.md +14 -10
- package/docs/UpdateSportRequest.md +1 -5
- package/docs/UpdateSubscriptionPlanForClub200Response.md +20 -0
- package/docs/{BookingPopulatedUserId.md → UserInfo.md} +6 -6
- package/docs/UsersApi.md +32 -127
- package/docs/YearlyTurnoverResponse.md +4 -4
- package/index.ts +2 -2
- package/package.json +1 -1
- package/docs/ActiveClub.md +0 -30
- package/docs/AddClubMemberResponse.md +0 -22
- package/docs/AddPaymentMethodSetupRequestBody.md +0 -20
- package/docs/AddPaymentMethodSetupResponse.md +0 -24
- package/docs/BlockSlotResponse.md +0 -22
- package/docs/Booking.md +0 -32
- package/docs/BookingHistoryResponse.md +0 -22
- package/docs/BookingHistoryResponseHistoryInner.md +0 -32
- package/docs/BookingPaymentStatusResponsePaymentStatusInner.md +0 -36
- package/docs/BookingPopulatedPaymentByPlayersStatusInner.md +0 -22
- package/docs/BookingPopulatedPaymentByPlayersStatusInnerInvoicesInner.md +0 -24
- package/docs/BookingPopulatedSlotId.md +0 -26
- package/docs/BookingPopulatedSlotIdCourtId.md +0 -28
- package/docs/BookingsStaffWeeklyWeekIdGet200Response.md +0 -20
- package/docs/CancelBookingResponseBooking.md +0 -30
- package/docs/CheckInPlayersResponseCheckedInPlayersInner.md +0 -34
- package/docs/Club.md +0 -40
- package/docs/ClubInfoResponse.md +0 -48
- package/docs/ClubMember.md +0 -24
- package/docs/ClubRole.md +0 -30
- package/docs/ClubRolesResponse.md +0 -22
- package/docs/ClubSettings.md +0 -40
- package/docs/ClubStaffResponse.md +0 -48
- package/docs/ConfirmPaymentMethodSetupRequestBody.md +0 -20
- package/docs/ConfirmPaymentMethodSetupResponse.md +0 -22
- package/docs/CourtWithNameResponse.md +0 -48
- package/docs/CourtsWithNameResponse.md +0 -22
- package/docs/CreateClubRoleRequestBody.md +0 -24
- package/docs/CreatePriceRequest.md +0 -26
- package/docs/DiagnosticsApi.md +0 -97
- package/docs/Event.md +0 -40
- package/docs/EventBooking.md +0 -32
- package/docs/EventRegistrationRequest.md +0 -22
- package/docs/FrequentlyPlayedWithItem.md +0 -28
- package/docs/FrequentlyVisitedClubItem.md +0 -24
- package/docs/GetActiveClubs200Response.md +0 -20
- package/docs/GetClubInfos200Response.md +0 -30
- package/docs/GetCourtsByClubAndSport200Response.md +0 -26
- package/docs/GetLastSixMonthsTurnover200ResponseInner.md +0 -22
- package/docs/GetPublishedEventsByClubId200Response.md +0 -20
- package/docs/InvoicesResponse.md +0 -22
- package/docs/InvoicesResponseInvoicesInner.md +0 -34
- package/docs/InvoicesResponsePagination.md +0 -26
- package/docs/LevelBySportsItem.md +0 -22
- package/docs/ManagerCancelBookingResponseBooking.md +0 -30
- package/docs/ManagerClubRolesApi.md +0 -268
- package/docs/ManagerClubSlotsApi.md +0 -119
- package/docs/ManagerClubSubscriptionsApi.md +0 -387
- package/docs/ManagerEventResponse.md +0 -22
- package/docs/NoShowFeeResponseCaptureResultsInner.md +0 -30
- package/docs/NoShowFeeResponseCreatorChargeResult.md +0 -26
- package/docs/PaymentStatus.md +0 -30
- package/docs/PriceResponse.md +0 -32
- package/docs/PublicClubUser.md +0 -46
- package/docs/PublicClubUserFrequentlyPlayedWithInner.md +0 -28
- package/docs/PublicClubUserFrequentlyVisitedClubsInner.md +0 -24
- package/docs/PublicClubUserLevelBySportsInner.md +0 -22
- package/docs/RegisterForEvent201Response.md +0 -20
- package/docs/RestoreSubscriptionPlanForClub200Response.md +0 -20
- package/docs/SdkDiagnosticsResponse.md +0 -28
- package/docs/SdkDiagnosticsResponseOpenapi.md +0 -24
- package/docs/SdkDiagnosticsResponseSdk.md +0 -24
- package/docs/Slot.md +0 -24
- package/docs/SlotException.md +0 -26
- package/docs/SlotResponse.md +0 -34
- package/docs/StaffBookingsApi.md +0 -61
- package/docs/StaffClubAnalyticsApi.md +0 -254
- package/docs/StripeLink.md +0 -26
- package/docs/StripeStatus.md +0 -16
- package/docs/SubscriptionPlan.md +0 -36
- package/docs/SubscriptionResponse.md +0 -36
- package/docs/UpdateClubRoleRequestBody.md +0 -24
- package/docs/UpdateCourtRequest.md +0 -38
- package/docs/UpdateProfilePictureRequestBody.md +0 -20
- package/docs/UpdateSubscriptionPlanRequest.md +0 -24
- package/docs/UpdateSubscriptionPlanResponse.md +0 -22
- package/docs/UpdateUserCityRequestBody.md +0 -20
- package/docs/UpdateUserDescriptionRequestBody.md +0 -20
- package/docs/UserBookingItem.md +0 -46
- package/docs/UserClubCourtsApi.md +0 -64
- package/docs/UserClubSlotsApi.md +0 -181
- package/docs/UserClubSportsApi.md +0 -60
- package/docs/UserClubsApi.md +0 -145
- package/docs/UserInfoStaff.md +0 -38
- package/docs/UserStaffResponse.md +0 -40
- package/docs/YearlyTurnoverResponseMonthlyBreakdownInner.md +0 -24
package/dist/esm/base.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* openapi.json
|
|
3
3
|
* API for managing pickle ball games and players
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.
|
|
5
|
+
* The version of the OpenAPI document: 1.0.60
|
|
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
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* openapi.json
|
|
5
5
|
* API for managing pickle ball games and players
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.60
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/common.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* openapi.json
|
|
3
3
|
* API for managing pickle ball games and players
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.
|
|
5
|
+
* The version of the OpenAPI document: 1.0.60
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/common.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* openapi.json
|
|
5
5
|
* API for managing pickle ball games and players
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.60
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* openapi.json
|
|
3
3
|
* API for managing pickle ball games and players
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.
|
|
5
|
+
* The version of the OpenAPI document: 1.0.60
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* openapi.json
|
|
5
5
|
* API for managing pickle ball games and players
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.60
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* openapi.json
|
|
3
3
|
* API for managing pickle ball games and players
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.
|
|
5
|
+
* The version of the OpenAPI document: 1.0.60
|
|
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
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* openapi.json
|
|
5
5
|
* API for managing pickle ball games and players
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.60
|
|
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
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* openapi.json
|
|
3
3
|
* API for managing pickle ball games and players
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.
|
|
5
|
+
* The version of the OpenAPI document: 1.0.60
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/index.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* openapi.json
|
|
6
6
|
* API for managing pickle ball games and players
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.
|
|
8
|
+
* The version of the OpenAPI document: 1.0.60
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
#
|
|
1
|
+
# AddClubMember201Response
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**
|
|
9
|
-
**
|
|
8
|
+
**clubRole** | **any** | | [default to undefined]
|
|
9
|
+
**message** | **string** | | [default to undefined]
|
|
10
10
|
|
|
11
11
|
## Example
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import {
|
|
14
|
+
import { AddClubMember201Response } from '@tennac-booking/sdk';
|
|
15
15
|
|
|
16
|
-
const instance:
|
|
16
|
+
const instance: AddClubMember201Response = {
|
|
17
|
+
clubRole,
|
|
17
18
|
message,
|
|
18
|
-
error,
|
|
19
19
|
};
|
|
20
20
|
```
|
|
21
21
|
|
|
@@ -5,8 +5,10 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**userId** | **string** |
|
|
9
|
-
**
|
|
8
|
+
**userId** | **string** | ID de l\'utilisateur à ajouter | [default to undefined]
|
|
9
|
+
**clubId** | **string** | ID du club (optionnel si fourni via le middleware d\'authentification) | [optional] [default to undefined]
|
|
10
|
+
**role** | **string** | Rôle de l\'utilisateur dans le club | [default to undefined]
|
|
11
|
+
**rights** | **Array<string>** | Droits de l\'utilisateur dans le club | [optional] [default to undefined]
|
|
10
12
|
|
|
11
13
|
## Example
|
|
12
14
|
|
|
@@ -15,7 +17,9 @@ import { AddClubMemberRequest } from '@tennac-booking/sdk';
|
|
|
15
17
|
|
|
16
18
|
const instance: AddClubMemberRequest = {
|
|
17
19
|
userId,
|
|
18
|
-
|
|
20
|
+
clubId,
|
|
21
|
+
role,
|
|
22
|
+
rights,
|
|
19
23
|
};
|
|
20
24
|
```
|
|
21
25
|
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# BookingAnalyticsResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**_id** | **string** | ID de la réservation | [default to undefined]
|
|
9
|
+
**status** | **string** | Statut de la réservation | [default to undefined]
|
|
10
|
+
**clubId** | **string** | ID du club | [default to undefined]
|
|
11
|
+
**sportId** | **string** | ID du sport | [default to undefined]
|
|
12
|
+
**playersIds** | **Array<string>** | IDs des joueurs | [default to undefined]
|
|
13
|
+
**userId** | **any** | Utilisateur qui a fait la réservation | [default to undefined]
|
|
14
|
+
**slotId** | **any** | Créneau réservé | [default to undefined]
|
|
15
|
+
**paymentByPlayersStatus** | **Array<any>** | Statut de paiement par joueur | [default to undefined]
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { BookingAnalyticsResponse } from '@tennac-booking/sdk';
|
|
21
|
+
|
|
22
|
+
const instance: BookingAnalyticsResponse = {
|
|
23
|
+
_id,
|
|
24
|
+
status,
|
|
25
|
+
clubId,
|
|
26
|
+
sportId,
|
|
27
|
+
playersIds,
|
|
28
|
+
userId,
|
|
29
|
+
slotId,
|
|
30
|
+
paymentByPlayersStatus,
|
|
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,34 @@
|
|
|
1
|
+
# BookingHistory
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**action** | **string** | | [default to undefined]
|
|
9
|
+
**performedBy** | **string** | | [default to undefined]
|
|
10
|
+
**performedByType** | **string** | | [default to undefined]
|
|
11
|
+
**details** | **string** | | [default to undefined]
|
|
12
|
+
**metadata** | **any** | | [optional] [default to undefined]
|
|
13
|
+
**previousStatus** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**newStatus** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**createdAt** | **string** | | [optional] [default to undefined]
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { BookingHistory } from '@tennac-booking/sdk';
|
|
21
|
+
|
|
22
|
+
const instance: BookingHistory = {
|
|
23
|
+
action,
|
|
24
|
+
performedBy,
|
|
25
|
+
performedByType,
|
|
26
|
+
details,
|
|
27
|
+
metadata,
|
|
28
|
+
previousStatus,
|
|
29
|
+
newStatus,
|
|
30
|
+
createdAt,
|
|
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,50 @@
|
|
|
1
|
+
# BookingInfo
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | ID de la réservation | [default to undefined]
|
|
9
|
+
**clubId** | **string** | ID du club | [default to undefined]
|
|
10
|
+
**userId** | **string** | ID de l\'utilisateur créateur | [default to undefined]
|
|
11
|
+
**playersIds** | **Array<string>** | Liste des IDs des joueurs | [default to undefined]
|
|
12
|
+
**status** | [**BookingStatus**](BookingStatus.md) | | [default to undefined]
|
|
13
|
+
**totalPrice** | **number** | Prix total en euros | [default to undefined]
|
|
14
|
+
**slotId** | **string** | ID du créneau | [default to undefined]
|
|
15
|
+
**isCreatorPayingAll** | **boolean** | Indique si le créateur paie pour tous | [default to undefined]
|
|
16
|
+
**createdAt** | **string** | Date de création | [default to undefined]
|
|
17
|
+
**updatedAt** | **string** | Date de mise à jour | [default to undefined]
|
|
18
|
+
**cancellationReason** | **string** | Raison d\'annulation (si annulé) | [optional] [default to undefined]
|
|
19
|
+
**cancelledBy** | **string** | ID de celui qui a annulé | [optional] [default to undefined]
|
|
20
|
+
**cancelledAt** | **string** | Date d\'annulation | [optional] [default to undefined]
|
|
21
|
+
**cancelledByManager** | **boolean** | Annulé par un gestionnaire | [optional] [default to undefined]
|
|
22
|
+
**noShowChargeApplied** | **boolean** | Frais de no-show appliqués | [optional] [default to undefined]
|
|
23
|
+
**noShowChargeAmount** | **number** | Montant des frais de no-show | [optional] [default to undefined]
|
|
24
|
+
|
|
25
|
+
## Example
|
|
26
|
+
|
|
27
|
+
```typescript
|
|
28
|
+
import { BookingInfo } from '@tennac-booking/sdk';
|
|
29
|
+
|
|
30
|
+
const instance: BookingInfo = {
|
|
31
|
+
id,
|
|
32
|
+
clubId,
|
|
33
|
+
userId,
|
|
34
|
+
playersIds,
|
|
35
|
+
status,
|
|
36
|
+
totalPrice,
|
|
37
|
+
slotId,
|
|
38
|
+
isCreatorPayingAll,
|
|
39
|
+
createdAt,
|
|
40
|
+
updatedAt,
|
|
41
|
+
cancellationReason,
|
|
42
|
+
cancelledBy,
|
|
43
|
+
cancelledAt,
|
|
44
|
+
cancelledByManager,
|
|
45
|
+
noShowChargeApplied,
|
|
46
|
+
noShowChargeAmount,
|
|
47
|
+
};
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
[[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,9 +5,9 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**booking** | [**BookingPaymentStatusResponseBooking**](BookingPaymentStatusResponseBooking.md) | | [
|
|
9
|
-
**paymentStatus** | [**Array<
|
|
10
|
-
**summary** | [**BookingPaymentStatusResponseSummary**](BookingPaymentStatusResponseSummary.md) | | [
|
|
8
|
+
**booking** | [**BookingPaymentStatusResponseBooking**](BookingPaymentStatusResponseBooking.md) | | [default to undefined]
|
|
9
|
+
**paymentStatus** | [**Array<PlayerPaymentInfo>**](PlayerPaymentInfo.md) | Statut des paiements de chaque joueur | [default to undefined]
|
|
10
|
+
**summary** | [**BookingPaymentStatusResponseSummary**](BookingPaymentStatusResponseSummary.md) | | [default to undefined]
|
|
11
11
|
|
|
12
12
|
## Example
|
|
13
13
|
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
# BookingPaymentStatusResponseBooking
|
|
2
2
|
|
|
3
|
+
Information de la réservation
|
|
3
4
|
|
|
4
5
|
## Properties
|
|
5
6
|
|
|
6
7
|
Name | Type | Description | Notes
|
|
7
8
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**
|
|
9
|
-
**
|
|
10
|
-
**
|
|
11
|
-
**
|
|
9
|
+
**totalPrice** | **number** | | [default to undefined]
|
|
10
|
+
**isCreatorPayingAll** | **boolean** | | [default to undefined]
|
|
11
|
+
**status** | [**BookingStatus**](BookingStatus.md) | | [default to undefined]
|
|
12
|
+
**id** | **string** | | [default to undefined]
|
|
12
13
|
|
|
13
14
|
## Example
|
|
14
15
|
|
|
@@ -16,10 +17,10 @@ Name | Type | Description | Notes
|
|
|
16
17
|
import { BookingPaymentStatusResponseBooking } from '@tennac-booking/sdk';
|
|
17
18
|
|
|
18
19
|
const instance: BookingPaymentStatusResponseBooking = {
|
|
19
|
-
id,
|
|
20
|
-
status,
|
|
21
|
-
isCreatorPayingAll,
|
|
22
20
|
totalPrice,
|
|
21
|
+
isCreatorPayingAll,
|
|
22
|
+
status,
|
|
23
|
+
id,
|
|
23
24
|
};
|
|
24
25
|
```
|
|
25
26
|
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
# BookingPaymentStatusResponseSummary
|
|
2
2
|
|
|
3
|
+
Résumé des paiements
|
|
3
4
|
|
|
4
5
|
## Properties
|
|
5
6
|
|
|
6
7
|
Name | Type | Description | Notes
|
|
7
8
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**
|
|
9
|
-
**
|
|
10
|
-
**playersNeedingCheckIn** | **number** | | [
|
|
11
|
-
**
|
|
12
|
-
**
|
|
9
|
+
**paidAmount** | **number** | | [default to undefined]
|
|
10
|
+
**totalAmount** | **number** | | [default to undefined]
|
|
11
|
+
**playersNeedingCheckIn** | **number** | | [default to undefined]
|
|
12
|
+
**playersWhoHavePaid** | **number** | | [default to undefined]
|
|
13
|
+
**totalPlayers** | **number** | | [default to undefined]
|
|
13
14
|
|
|
14
15
|
## Example
|
|
15
16
|
|
|
@@ -17,11 +18,11 @@ Name | Type | Description | Notes
|
|
|
17
18
|
import { BookingPaymentStatusResponseSummary } from '@tennac-booking/sdk';
|
|
18
19
|
|
|
19
20
|
const instance: BookingPaymentStatusResponseSummary = {
|
|
20
|
-
totalPlayers,
|
|
21
|
-
playersWhoHavePaid,
|
|
22
|
-
playersNeedingCheckIn,
|
|
23
|
-
totalAmount,
|
|
24
21
|
paidAmount,
|
|
22
|
+
totalAmount,
|
|
23
|
+
playersNeedingCheckIn,
|
|
24
|
+
playersWhoHavePaid,
|
|
25
|
+
totalPlayers,
|
|
25
26
|
};
|
|
26
27
|
```
|
|
27
28
|
|
package/docs/BookingPopulated.md
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**id** | **string** |
|
|
9
|
-
**status** | **string** |
|
|
10
|
-
**userId** | [**
|
|
11
|
-
**slotId** | [**
|
|
12
|
-
**paymentByPlayersStatus** | [**Array<
|
|
8
|
+
**id** | **string** | ID de la réservation | [default to undefined]
|
|
9
|
+
**status** | **string** | Statut | [default to undefined]
|
|
10
|
+
**userId** | [**UserInfo**](UserInfo.md) | | [default to undefined]
|
|
11
|
+
**slotId** | [**SlotInfo**](SlotInfo.md) | | [default to undefined]
|
|
12
|
+
**paymentByPlayersStatus** | [**Array<PaymentByPlayerInfo>**](PaymentByPlayerInfo.md) | Statut des paiements par joueur | [default to undefined]
|
|
13
13
|
|
|
14
14
|
## Example
|
|
15
15
|
|
package/docs/BookingResponse.md
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**booking** | [**
|
|
8
|
+
**booking** | [**BookingInfo**](BookingInfo.md) | | [optional] [default to undefined]
|
|
9
9
|
**invoiceUrl** | **string** | URL de la facture (pour paiement en ligne) | [optional] [default to undefined]
|
|
10
|
-
**paymentLinks** | **
|
|
11
|
-
**onsitePayments** | **Array<
|
|
12
|
-
**message** | **string** | Message de confirmation | [
|
|
10
|
+
**paymentLinks** | **{ [key: string]: string; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
|
|
11
|
+
**onsitePayments** | [**Array<BookingResponseOnsitePaymentsInner>**](BookingResponseOnsitePaymentsInner.md) | Paiements sur place requis | [optional] [default to undefined]
|
|
12
|
+
**message** | **string** | Message de confirmation | [default to undefined]
|
|
13
13
|
|
|
14
14
|
## Example
|
|
15
15
|
|
package/docs/{UpdateProfileVisibilityRequestBody.md → BookingResponseOnsitePaymentsInner.md}
RENAMED
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
#
|
|
1
|
+
# BookingResponseOnsitePaymentsInner
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**
|
|
8
|
+
**amount** | **number** | | [default to undefined]
|
|
9
|
+
**playerId** | **string** | | [default to undefined]
|
|
9
10
|
|
|
10
11
|
## Example
|
|
11
12
|
|
|
12
13
|
```typescript
|
|
13
|
-
import {
|
|
14
|
+
import { BookingResponseOnsitePaymentsInner } from '@tennac-booking/sdk';
|
|
14
15
|
|
|
15
|
-
const instance:
|
|
16
|
-
|
|
16
|
+
const instance: BookingResponseOnsitePaymentsInner = {
|
|
17
|
+
amount,
|
|
18
|
+
playerId,
|
|
17
19
|
};
|
|
18
20
|
```
|
|
19
21
|
|
package/docs/BookingStatus.md
CHANGED
|
@@ -5,6 +5,14 @@
|
|
|
5
5
|
|
|
6
6
|
* `Active` (value: `'active'`)
|
|
7
7
|
|
|
8
|
-
* `
|
|
8
|
+
* `Past` (value: `'past'`)
|
|
9
|
+
|
|
10
|
+
* `Pending` (value: `'pending'`)
|
|
11
|
+
|
|
12
|
+
* `Expired` (value: `'expired'`)
|
|
13
|
+
|
|
14
|
+
* `Canceled` (value: `'canceled'`)
|
|
15
|
+
|
|
16
|
+
* `NoShow` (value: `'no-show'`)
|
|
9
17
|
|
|
10
18
|
[[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/BookingsApi.md
CHANGED
|
@@ -4,13 +4,12 @@ All URIs are relative to *http://localhost*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**
|
|
8
|
-
|[**bookingsStaffWeeklyWeekIdGet**](#bookingsstaffweeklyweekidget) | **GET** /bookings/staff/weekly/{weekId} | Récupérer les réservations hebdomadaires|
|
|
7
|
+
|[**getBookingHistory**](#getbookinghistory) | **GET** /api/bookings/history/{bookingId} | |
|
|
9
8
|
|
|
10
|
-
# **
|
|
11
|
-
>
|
|
9
|
+
# **getBookingHistory**
|
|
10
|
+
> BookingHistory getBookingHistory()
|
|
12
11
|
|
|
13
|
-
|
|
12
|
+
Obtenir l\'historique d\'une réservation par ID
|
|
14
13
|
|
|
15
14
|
### Example
|
|
16
15
|
|
|
@@ -23,10 +22,10 @@ import {
|
|
|
23
22
|
const configuration = new Configuration();
|
|
24
23
|
const apiInstance = new BookingsApi(configuration);
|
|
25
24
|
|
|
26
|
-
let
|
|
25
|
+
let bookingId: string; // (default to undefined)
|
|
27
26
|
|
|
28
|
-
const { status, data } = await apiInstance.
|
|
29
|
-
|
|
27
|
+
const { status, data } = await apiInstance.getBookingHistory(
|
|
28
|
+
bookingId
|
|
30
29
|
);
|
|
31
30
|
```
|
|
32
31
|
|
|
@@ -34,12 +33,12 @@ const { status, data } = await apiInstance.bookingsStaffDailyDateGet(
|
|
|
34
33
|
|
|
35
34
|
|Name | Type | Description | Notes|
|
|
36
35
|
|------------- | ------------- | ------------- | -------------|
|
|
37
|
-
| **
|
|
36
|
+
| **bookingId** | [**string**] | | defaults to undefined|
|
|
38
37
|
|
|
39
38
|
|
|
40
39
|
### Return type
|
|
41
40
|
|
|
42
|
-
**
|
|
41
|
+
**BookingHistory**
|
|
43
42
|
|
|
44
43
|
### Authorization
|
|
45
44
|
|
|
@@ -54,60 +53,7 @@ const { status, data } = await apiInstance.bookingsStaffDailyDateGet(
|
|
|
54
53
|
### HTTP response details
|
|
55
54
|
| Status code | Description | Response headers |
|
|
56
55
|
|-------------|-------------|------------------|
|
|
57
|
-
|**200** |
|
|
58
|
-
|**500** | Erreur serveur interne | - |
|
|
59
|
-
|
|
60
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
61
|
-
|
|
62
|
-
# **bookingsStaffWeeklyWeekIdGet**
|
|
63
|
-
> BookingsStaffWeeklyWeekIdGet200Response bookingsStaffWeeklyWeekIdGet()
|
|
64
|
-
|
|
65
|
-
Retourne une liste de réservations pour une semaine donnée, avec les joueurs et terrains (incluant le sport) peuplés.
|
|
66
|
-
|
|
67
|
-
### Example
|
|
68
|
-
|
|
69
|
-
```typescript
|
|
70
|
-
import {
|
|
71
|
-
BookingsApi,
|
|
72
|
-
Configuration
|
|
73
|
-
} from '@tennac-booking/sdk';
|
|
74
|
-
|
|
75
|
-
const configuration = new Configuration();
|
|
76
|
-
const apiInstance = new BookingsApi(configuration);
|
|
77
|
-
|
|
78
|
-
let weekId: string; //ID de la semaine (default to undefined)
|
|
79
|
-
|
|
80
|
-
const { status, data } = await apiInstance.bookingsStaffWeeklyWeekIdGet(
|
|
81
|
-
weekId
|
|
82
|
-
);
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
### Parameters
|
|
86
|
-
|
|
87
|
-
|Name | Type | Description | Notes|
|
|
88
|
-
|------------- | ------------- | ------------- | -------------|
|
|
89
|
-
| **weekId** | [**string**] | ID de la semaine | defaults to undefined|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
### Return type
|
|
93
|
-
|
|
94
|
-
**BookingsStaffWeeklyWeekIdGet200Response**
|
|
95
|
-
|
|
96
|
-
### Authorization
|
|
97
|
-
|
|
98
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
99
|
-
|
|
100
|
-
### HTTP request headers
|
|
101
|
-
|
|
102
|
-
- **Content-Type**: Not defined
|
|
103
|
-
- **Accept**: application/json
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
### HTTP response details
|
|
107
|
-
| Status code | Description | Response headers |
|
|
108
|
-
|-------------|-------------|------------------|
|
|
109
|
-
|**200** | Réservations hebdomadaires récupérées avec succès | - |
|
|
110
|
-
|**500** | Erreur serveur interne | - |
|
|
56
|
+
|**200** | Réservation récupérée | - |
|
|
111
57
|
|
|
112
58
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
113
59
|
|