@tennac-booking/sdk 1.0.117 → 1.0.119

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 (64) hide show
  1. package/.openapi-generator/FILES +313 -308
  2. package/README.md +18 -13
  3. package/api.ts +1065 -611
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +841 -483
  8. package/dist/api.js +325 -233
  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 +841 -483
  16. package/dist/esm/api.js +324 -232
  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/BookingsStaffApi.md +117 -0
  28. package/docs/BookingsUserApi.md +1 -1
  29. package/docs/ClientApi.md +2 -49
  30. package/docs/ClientFullOnboardingResponseClub.md +0 -2
  31. package/docs/ClientOnboardingRequestBody.md +0 -2
  32. package/docs/ClubAnalyticsStaffApi.md +20 -4
  33. package/docs/ClubPlayersPaginatedResponse.md +28 -0
  34. package/docs/ClubsApi.md +2 -2
  35. package/docs/ClubsStaffApi.md +27 -2
  36. package/docs/CreateEventRequest.md +3 -1
  37. package/docs/EventResponse.md +4 -0
  38. package/docs/EventSponsor.md +24 -0
  39. package/docs/EventsApi.md +0 -115
  40. package/docs/JoinEventRequest.md +0 -2
  41. package/docs/JoinEventRequestPlayersPaymentMethodsInner.md +0 -2
  42. package/docs/JoinEventResponse.md +0 -14
  43. package/docs/SendSubscriptionInvitationRequest.md +22 -0
  44. package/docs/{CheckTeamNameAvailability200Response.md → SendSubscriptionInvitationResponse.md} +7 -5
  45. package/docs/StaffBookingCourtSummary.md +26 -0
  46. package/docs/StaffBookingCustomerPayload.md +28 -0
  47. package/docs/StaffBookingListItem.md +54 -0
  48. package/docs/StaffBookingPaymentState.md +18 -0
  49. package/docs/StaffBookingPaymentSummary.md +34 -0
  50. package/docs/StaffBookingSportSummary.md +24 -0
  51. package/docs/StaffBookingUserSummary.md +28 -0
  52. package/docs/StaffBookingsPaginatedResponse.md +28 -0
  53. package/docs/StaffCreateBookingRequest.md +26 -0
  54. package/docs/SubscriptionsStaffApi.md +55 -0
  55. package/docs/UpdateEventRequest.md +6 -0
  56. package/index.ts +1 -1
  57. package/package.json +1 -1
  58. package/docs/ClientSubscription.md +0 -31
  59. package/docs/ClientSubscriptionItem.md +0 -25
  60. package/docs/ClientSubscriptionsResponse.md +0 -21
  61. package/docs/EstimateEventPrice200Response.md +0 -32
  62. package/docs/EstimateEventPriceRequest.md +0 -26
  63. package/docs/EstimateEventPriceRequestSharesInner.md +0 -22
  64. package/docs/JoinEventResponseOnsitePaymentsInner.md +0 -24
package/docs/EventsApi.md CHANGED
@@ -4,126 +4,11 @@ All URIs are relative to *http://localhost*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
- |[**checkTeamNameAvailability**](#checkteamnameavailability) | **GET** /api/events/{eventId}/team-name-availability | |
8
- |[**estimateEventPrice**](#estimateeventprice) | **POST** /api/events/{eventId}/estimate-price | |
9
7
  |[**getEventById**](#geteventbyid) | **GET** /api/events/{eventId} | |
10
8
  |[**getPublishedEventsByClubId**](#getpublishedeventsbyclubid) | **GET** /api/events | |
11
9
  |[**joinEvent**](#joinevent) | **POST** /api/events/{eventId}/join | |
12
10
  |[**leaveEvent**](#leaveevent) | **DELETE** /api/events/{eventId}/leave | |
13
11
 
14
- # **checkTeamNameAvailability**
15
- > CheckTeamNameAvailability200Response checkTeamNameAvailability()
16
-
17
- Check team name availability for TEAM participation events
18
-
19
- ### Example
20
-
21
- ```typescript
22
- import {
23
- EventsApi,
24
- Configuration
25
- } from '@tennac-booking/sdk';
26
-
27
- const configuration = new Configuration();
28
- const apiInstance = new EventsApi(configuration);
29
-
30
- let eventId: string; // (default to undefined)
31
- let teamName: string; // (optional) (default to undefined)
32
-
33
- const { status, data } = await apiInstance.checkTeamNameAvailability(
34
- eventId,
35
- teamName
36
- );
37
- ```
38
-
39
- ### Parameters
40
-
41
- |Name | Type | Description | Notes|
42
- |------------- | ------------- | ------------- | -------------|
43
- | **eventId** | [**string**] | | defaults to undefined|
44
- | **teamName** | [**string**] | | (optional) defaults to undefined|
45
-
46
-
47
- ### Return type
48
-
49
- **CheckTeamNameAvailability200Response**
50
-
51
- ### Authorization
52
-
53
- No authorization required
54
-
55
- ### HTTP request headers
56
-
57
- - **Content-Type**: Not defined
58
- - **Accept**: application/json
59
-
60
-
61
- ### HTTP response details
62
- | Status code | Description | Response headers |
63
- |-------------|-------------|------------------|
64
- |**200** | Team name availability | - |
65
- |**400** | Bad Request | - |
66
- |**404** | Not Found | - |
67
-
68
- [[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)
69
-
70
- # **estimateEventPrice**
71
- > EstimateEventPrice200Response estimateEventPrice(estimateEventPriceRequest)
72
-
73
- Estime le prix de participation à un événement pour une liste de joueurs
74
-
75
- ### Example
76
-
77
- ```typescript
78
- import {
79
- EventsApi,
80
- Configuration,
81
- EstimateEventPriceRequest
82
- } from '@tennac-booking/sdk';
83
-
84
- const configuration = new Configuration();
85
- const apiInstance = new EventsApi(configuration);
86
-
87
- let eventId: string; // (default to undefined)
88
- let estimateEventPriceRequest: EstimateEventPriceRequest; //
89
-
90
- const { status, data } = await apiInstance.estimateEventPrice(
91
- eventId,
92
- estimateEventPriceRequest
93
- );
94
- ```
95
-
96
- ### Parameters
97
-
98
- |Name | Type | Description | Notes|
99
- |------------- | ------------- | ------------- | -------------|
100
- | **estimateEventPriceRequest** | **EstimateEventPriceRequest**| | |
101
- | **eventId** | [**string**] | | defaults to undefined|
102
-
103
-
104
- ### Return type
105
-
106
- **EstimateEventPrice200Response**
107
-
108
- ### Authorization
109
-
110
- No authorization required
111
-
112
- ### HTTP request headers
113
-
114
- - **Content-Type**: application/json
115
- - **Accept**: application/json
116
-
117
-
118
- ### HTTP response details
119
- | Status code | Description | Response headers |
120
- |-------------|-------------|------------------|
121
- |**200** | Prix estimé pour l\'événement | - |
122
- |**400** | Requête invalide | - |
123
- |**404** | Événement introuvable | - |
124
-
125
- [[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)
126
-
127
12
  # **getEventById**
128
13
  > PublishEventResponse getEventById()
129
14
 
@@ -11,7 +11,6 @@ Name | Type | Description | Notes
11
11
  **paymentMethod** | [**PaymentMethod**](PaymentMethod.md) | | [optional] [default to undefined]
12
12
  **playersPaymentMethods** | [**Array<JoinEventRequestPlayersPaymentMethodsInner>**](JoinEventRequestPlayersPaymentMethodsInner.md) | | [optional] [default to undefined]
13
13
  **useDefaultPaymentMethod** | **boolean** | | [optional] [default to undefined]
14
- **creditToUseInCents** | **number** | | [optional] [default to undefined]
15
14
 
16
15
  ## Example
17
16
 
@@ -25,7 +24,6 @@ const instance: JoinEventRequest = {
25
24
  paymentMethod,
26
25
  playersPaymentMethods,
27
26
  useDefaultPaymentMethod,
28
- creditToUseInCents,
29
27
  };
30
28
  ```
31
29
 
@@ -5,7 +5,6 @@
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **paysAlsoFor** | **Array<string>** | | [optional] [default to undefined]
9
8
  **paymentMethod** | [**PaymentMethod**](PaymentMethod.md) | | [default to undefined]
10
9
  **id** | **string** | | [default to undefined]
11
10
 
@@ -15,7 +14,6 @@ Name | Type | Description | Notes
15
14
  import { JoinEventRequestPlayersPaymentMethodsInner } from '@tennac-booking/sdk';
16
15
 
17
16
  const instance: JoinEventRequestPlayersPaymentMethodsInner = {
18
- paysAlsoFor,
19
17
  paymentMethod,
20
18
  id,
21
19
  };
@@ -7,13 +7,6 @@ Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **message** | **string** | | [default to undefined]
9
9
  **event** | [**EventResponse**](EventResponse.md) | | [default to undefined]
10
- **paymentLinks** | **{ [key: string]: string; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
11
- **onsitePayments** | [**Array<JoinEventResponseOnsitePaymentsInner>**](JoinEventResponseOnsitePaymentsInner.md) | | [optional] [default to undefined]
12
- **setupNoShowPaymentUrl** | **string** | | [optional] [default to undefined]
13
- **invoices** | [**Array<CheckInEventParticipants200ResponseInvoicesInner>**](CheckInEventParticipants200ResponseInvoicesInner.md) | | [optional] [default to undefined]
14
- **creditsAppliedInCents** | **number** | | [optional] [default to undefined]
15
- **totalAfterCredits** | **number** | | [optional] [default to undefined]
16
- **perPayerAfterCredits** | **{ [key: string]: number; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
17
10
 
18
11
  ## Example
19
12
 
@@ -23,13 +16,6 @@ import { JoinEventResponse } from '@tennac-booking/sdk';
23
16
  const instance: JoinEventResponse = {
24
17
  message,
25
18
  event,
26
- paymentLinks,
27
- onsitePayments,
28
- setupNoShowPaymentUrl,
29
- invoices,
30
- creditsAppliedInCents,
31
- totalAfterCredits,
32
- perPayerAfterCredits,
33
19
  };
34
20
  ```
35
21
 
@@ -0,0 +1,22 @@
1
+ # SendSubscriptionInvitationRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **userId** | **string** | | [default to undefined]
9
+ **productId** | **string** | Identifiant Stripe (productId) du plan sélectionné par le staff. | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { SendSubscriptionInvitationRequest } from '@tennac-booking/sdk';
15
+
16
+ const instance: SendSubscriptionInvitationRequest = {
17
+ userId,
18
+ productId,
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)
@@ -1,19 +1,21 @@
1
- # CheckTeamNameAvailability200Response
1
+ # SendSubscriptionInvitationResponse
2
2
 
3
3
 
4
4
  ## Properties
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **available** | **boolean** | | [default to undefined]
8
+ **invitationUrl** | **string** | | [default to undefined]
9
+ **message** | **string** | | [default to undefined]
9
10
 
10
11
  ## Example
11
12
 
12
13
  ```typescript
13
- import { CheckTeamNameAvailability200Response } from '@tennac-booking/sdk';
14
+ import { SendSubscriptionInvitationResponse } from '@tennac-booking/sdk';
14
15
 
15
- const instance: CheckTeamNameAvailability200Response = {
16
- available,
16
+ const instance: SendSubscriptionInvitationResponse = {
17
+ invitationUrl,
18
+ message,
17
19
  };
18
20
  ```
19
21
 
@@ -0,0 +1,26 @@
1
+ # StaffBookingCourtSummary
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | ID du terrain | [default to undefined]
9
+ **name** | **string** | Nom du terrain | [optional] [default to undefined]
10
+ **surface** | **string** | Surface | [optional] [default to undefined]
11
+ **isIndoor** | **boolean** | Terrain intérieur | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { StaffBookingCourtSummary } from '@tennac-booking/sdk';
17
+
18
+ const instance: StaffBookingCourtSummary = {
19
+ id,
20
+ name,
21
+ surface,
22
+ isIndoor,
23
+ };
24
+ ```
25
+
26
+ [[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,28 @@
1
+ # StaffBookingCustomerPayload
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **userId** | **string** | Identifiant d\'un utilisateur existant | [optional] [default to undefined]
9
+ **firstName** | **string** | Prénom de l\'invité (requis si userId absent) | [optional] [default to undefined]
10
+ **lastName** | **string** | Nom de famille de l\'invité (requis si userId absent) | [optional] [default to undefined]
11
+ **email** | **string** | Email de contact (requis si userId absent) | [optional] [default to undefined]
12
+ **phoneNumber** | **string** | Numéro de téléphone optionnel | [optional] [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { StaffBookingCustomerPayload } from '@tennac-booking/sdk';
18
+
19
+ const instance: StaffBookingCustomerPayload = {
20
+ userId,
21
+ firstName,
22
+ lastName,
23
+ email,
24
+ phoneNumber,
25
+ };
26
+ ```
27
+
28
+ [[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,54 @@
1
+ # StaffBookingListItem
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
+ **status** | [**BookingStatus**](BookingStatus.md) | | [default to undefined]
11
+ **startDate** | **string** | Date de début | [optional] [default to undefined]
12
+ **endDate** | **string** | Date de fin | [optional] [default to undefined]
13
+ **durationMinutes** | **number** | Durée estimée en minutes | [optional] [default to undefined]
14
+ **createdAt** | **string** | Date de création | [optional] [default to undefined]
15
+ **updatedAt** | **string** | Dernière mise à jour | [optional] [default to undefined]
16
+ **playersCount** | **number** | Nombre total de participants (créateur inclus) | [default to undefined]
17
+ **totalPrice** | **number** | Prix total (centimes) | [default to undefined]
18
+ **creator** | [**StaffBookingUserSummary**](StaffBookingUserSummary.md) | Créateur | [optional] [default to undefined]
19
+ **players** | [**Array<StaffBookingUserSummary>**](StaffBookingUserSummary.md) | Participants | [default to undefined]
20
+ **courts** | [**Array<StaffBookingCourtSummary>**](StaffBookingCourtSummary.md) | Terrains impliqués | [default to undefined]
21
+ **sports** | [**Array<StaffBookingSportSummary>**](StaffBookingSportSummary.md) | Sports associés | [default to undefined]
22
+ **paymentSummary** | [**StaffBookingPaymentSummary**](StaffBookingPaymentSummary.md) | | [default to undefined]
23
+ **isCreatorPayingAll** | **boolean** | Indique si le créateur paie pour tous | [default to undefined]
24
+ **isPublic** | **boolean** | Réservation publique | [default to undefined]
25
+ **slotCount** | **number** | Nombre de créneaux | [default to undefined]
26
+
27
+ ## Example
28
+
29
+ ```typescript
30
+ import { StaffBookingListItem } from '@tennac-booking/sdk';
31
+
32
+ const instance: StaffBookingListItem = {
33
+ id,
34
+ clubId,
35
+ status,
36
+ startDate,
37
+ endDate,
38
+ durationMinutes,
39
+ createdAt,
40
+ updatedAt,
41
+ playersCount,
42
+ totalPrice,
43
+ creator,
44
+ players,
45
+ courts,
46
+ sports,
47
+ paymentSummary,
48
+ isCreatorPayingAll,
49
+ isPublic,
50
+ slotCount,
51
+ };
52
+ ```
53
+
54
+ [[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,18 @@
1
+ # StaffBookingPaymentState
2
+
3
+
4
+ ## Enum
5
+
6
+ * `None` (value: `'none'`)
7
+
8
+ * `Paid` (value: `'paid'`)
9
+
10
+ * `Pending` (value: `'pending'`)
11
+
12
+ * `Authorized` (value: `'authorized'`)
13
+
14
+ * `Failed` (value: `'failed'`)
15
+
16
+ * `Partial` (value: `'partial'`)
17
+
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)
@@ -0,0 +1,34 @@
1
+ # StaffBookingPaymentSummary
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **status** | [**StaffBookingPaymentState**](StaffBookingPaymentState.md) | | [default to undefined]
9
+ **totalInvoices** | **number** | Nombre total de factures | [default to undefined]
10
+ **paidInvoices** | **number** | Factures payées | [default to undefined]
11
+ **pendingInvoices** | **number** | Factures en attente | [default to undefined]
12
+ **authorizedInvoices** | **number** | Factures autorisées | [default to undefined]
13
+ **failedInvoices** | **number** | Factures échouées ou annulées | [default to undefined]
14
+ **paymentMethods** | [**Array<PaymentMethod>**](PaymentMethod.md) | Méthodes de paiement impliquées | [default to undefined]
15
+ **invoiceStatuses** | [**Array<InvoiceStatus>**](InvoiceStatus.md) | Statuts des factures rencontrés | [default to undefined]
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import { StaffBookingPaymentSummary } from '@tennac-booking/sdk';
21
+
22
+ const instance: StaffBookingPaymentSummary = {
23
+ status,
24
+ totalInvoices,
25
+ paidInvoices,
26
+ pendingInvoices,
27
+ authorizedInvoices,
28
+ failedInvoices,
29
+ paymentMethods,
30
+ invoiceStatuses,
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,24 @@
1
+ # StaffBookingSportSummary
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | ID du sport | [default to undefined]
9
+ **name** | **string** | Nom du sport | [optional] [default to undefined]
10
+ **key** | **string** | Clé du sport | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { StaffBookingSportSummary } from '@tennac-booking/sdk';
16
+
17
+ const instance: StaffBookingSportSummary = {
18
+ id,
19
+ name,
20
+ key,
21
+ };
22
+ ```
23
+
24
+ [[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,28 @@
1
+ # StaffBookingUserSummary
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | ID de l\'utilisateur | [default to undefined]
9
+ **firstName** | **string** | Prénom | [optional] [default to undefined]
10
+ **lastName** | **string** | Nom | [optional] [default to undefined]
11
+ **email** | **string** | Email | [optional] [default to undefined]
12
+ **profilePictureUrl** | **string** | Photo de profil | [optional] [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { StaffBookingUserSummary } from '@tennac-booking/sdk';
18
+
19
+ const instance: StaffBookingUserSummary = {
20
+ id,
21
+ firstName,
22
+ lastName,
23
+ email,
24
+ profilePictureUrl,
25
+ };
26
+ ```
27
+
28
+ [[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,28 @@
1
+ # StaffBookingsPaginatedResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **bookings** | [**Array<StaffBookingListItem>**](StaffBookingListItem.md) | Réservations | [default to undefined]
9
+ **page** | **number** | Page courante (1-based) | [default to undefined]
10
+ **pageSize** | **number** | Taille de page | [default to undefined]
11
+ **total** | **number** | Nombre total d\'éléments | [default to undefined]
12
+ **totalPages** | **number** | Nombre total de pages | [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { StaffBookingsPaginatedResponse } from '@tennac-booking/sdk';
18
+
19
+ const instance: StaffBookingsPaginatedResponse = {
20
+ bookings,
21
+ page,
22
+ pageSize,
23
+ total,
24
+ totalPages,
25
+ };
26
+ ```
27
+
28
+ [[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,26 @@
1
+ # StaffCreateBookingRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **slotIds** | **Array<string>** | Liste des créneaux à réserver | [default to undefined]
9
+ **customer** | [**StaffBookingCustomerPayload**](StaffBookingCustomerPayload.md) | | [default to undefined]
10
+ **playerIds** | **Array<string>** | Autres joueurs existants à associer | [optional] [default to undefined]
11
+ **paymentMethod** | [**PaymentMethod**](PaymentMethod.md) | | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { StaffCreateBookingRequest } from '@tennac-booking/sdk';
17
+
18
+ const instance: StaffCreateBookingRequest = {
19
+ slotIds,
20
+ customer,
21
+ playerIds,
22
+ paymentMethod,
23
+ };
24
+ ```
25
+
26
+ [[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,6 +5,7 @@ All URIs are relative to *http://localhost*
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
7
  |[**getClubPlans**](#getclubplans) | **GET** /api/subscriptions/plans | |
8
+ |[**sendSubscriptionInvitation**](#sendsubscriptioninvitation) | **POST** /api/subscriptions/invitations | |
8
9
 
9
10
  # **getClubPlans**
10
11
  > Array<SubscriptionPlanResponse> getClubPlans()
@@ -52,3 +53,57 @@ This endpoint does not have any parameters.
52
53
 
53
54
  [[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)
54
55
 
56
+ # **sendSubscriptionInvitation**
57
+ > SendSubscriptionInvitationResponse sendSubscriptionInvitation(sendSubscriptionInvitationRequest)
58
+
59
+ Envoie une invitation d\'abonnement à un joueur (staff)
60
+
61
+ ### Example
62
+
63
+ ```typescript
64
+ import {
65
+ SubscriptionsStaffApi,
66
+ Configuration,
67
+ SendSubscriptionInvitationRequest
68
+ } from '@tennac-booking/sdk';
69
+
70
+ const configuration = new Configuration();
71
+ const apiInstance = new SubscriptionsStaffApi(configuration);
72
+
73
+ let sendSubscriptionInvitationRequest: SendSubscriptionInvitationRequest; //
74
+
75
+ const { status, data } = await apiInstance.sendSubscriptionInvitation(
76
+ sendSubscriptionInvitationRequest
77
+ );
78
+ ```
79
+
80
+ ### Parameters
81
+
82
+ |Name | Type | Description | Notes|
83
+ |------------- | ------------- | ------------- | -------------|
84
+ | **sendSubscriptionInvitationRequest** | **SendSubscriptionInvitationRequest**| | |
85
+
86
+
87
+ ### Return type
88
+
89
+ **SendSubscriptionInvitationResponse**
90
+
91
+ ### Authorization
92
+
93
+ [bearerAuth](../README.md#bearerAuth)
94
+
95
+ ### HTTP request headers
96
+
97
+ - **Content-Type**: application/json
98
+ - **Accept**: application/json
99
+
100
+
101
+ ### HTTP response details
102
+ | Status code | Description | Response headers |
103
+ |-------------|-------------|------------------|
104
+ |**200** | Invitation envoyée | - |
105
+ |**400** | Bad Request | - |
106
+ |**401** | Unauthorized | - |
107
+
108
+ [[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)
109
+
@@ -20,9 +20,12 @@ Name | Type | Description | Notes
20
20
  **teams** | [**Array&lt;Team&gt;**](Team.md) | | [optional] [default to undefined]
21
21
  **playerLimit** | **number** | | [optional] [default to undefined]
22
22
  **teamLimit** | **number** | | [optional] [default to undefined]
23
+ **playersPerTeam** | **number** | | [optional] [default to undefined]
23
24
  **price** | **number** | | [optional] [default to undefined]
24
25
  **subscriberPrices** | [**Array&lt;SubscriberPrice&gt;**](SubscriberPrice.md) | | [optional] [default to undefined]
25
26
  **visibilityType** | **string** | | [optional] [default to undefined]
27
+ **levels** | **Array&lt;string | null&gt;** | | [optional] [default to undefined]
28
+ **sponsors** | [**Array&lt;EventSponsor&gt;**](EventSponsor.md) | | [optional] [default to undefined]
26
29
 
27
30
  ## Example
28
31
 
@@ -45,9 +48,12 @@ const instance: UpdateEventRequest = {
45
48
  teams,
46
49
  playerLimit,
47
50
  teamLimit,
51
+ playersPerTeam,
48
52
  price,
49
53
  subscriberPrices,
50
54
  visibilityType,
55
+ levels,
56
+ sponsors,
51
57
  };
52
58
  ```
53
59
 
package/index.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.117
7
+ * The version of the OpenAPI document: 1.0.110
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tennac-booking/sdk",
3
- "version": "1.0.117",
3
+ "version": "1.0.119",
4
4
  "description": "OpenAPI client for @tennac-booking/sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {
@@ -1,31 +0,0 @@
1
- # ClientSubscription
2
-
3
- Abonnement Stripe simplifié
4
-
5
- ## Properties
6
-
7
- Name | Type | Description | Notes
8
- ------------ | ------------- | ------------- | -------------
9
- **id** | **string** | | [default to undefined]
10
- **status** | **string** | | [default to undefined]
11
- **currentPeriodStart** | **number** | | [default to undefined]
12
- **currentPeriodEnd** | **number** | | [default to undefined]
13
- **cancelAtPeriodEnd** | **boolean** | | [default to undefined]
14
- **items** | [**Array&lt;ClientSubscriptionItem&gt;**](ClientSubscriptionItem.md) | | [default to undefined]
15
-
16
- ## Example
17
-
18
- ```typescript
19
- import { ClientSubscription } from '@tennac-booking/sdk';
20
-
21
- const instance: ClientSubscription = {
22
- id,
23
- status,
24
- currentPeriodStart,
25
- currentPeriodEnd,
26
- cancelAtPeriodEnd,
27
- items,
28
- };
29
- ```
30
-
31
- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)