@tennac-booking/sdk 1.0.120 → 1.0.122

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 (61) hide show
  1. package/.openapi-generator/FILES +17 -0
  2. package/README.md +24 -4
  3. package/api.ts +930 -28
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +740 -17
  8. package/dist/api.js +332 -17
  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 +740 -17
  16. package/dist/esm/api.js +324 -13
  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/CheckTeamNameAvailability200Response.md +20 -0
  28. package/docs/ClientApi.md +47 -0
  29. package/docs/ClientFullOnboardingResponseClub.md +2 -0
  30. package/docs/ClientOnboardingRequestBody.md +2 -0
  31. package/docs/ClientSubscription.md +31 -0
  32. package/docs/ClientSubscriptionItem.md +25 -0
  33. package/docs/ClientSubscriptionsResponse.md +21 -0
  34. package/docs/ClubSettingsManagerApi.md +7 -7
  35. package/docs/CreateCourtRequest.md +2 -0
  36. package/docs/CreateSubscriptionPlanRequestDiscount.md +2 -0
  37. package/docs/EstimateEventPrice200Response.md +32 -0
  38. package/docs/EstimateEventPriceRequest.md +26 -0
  39. package/docs/EstimateEventPriceRequestSharesInner.md +22 -0
  40. package/docs/EventResponse.md +3 -1
  41. package/docs/EventUser.md +28 -0
  42. package/docs/EventsApi.md +115 -0
  43. package/docs/ImageCleanupItem.md +22 -0
  44. package/docs/ImageCleanupRequestBody.md +20 -0
  45. package/docs/ImageCleanupResponse.md +22 -0
  46. package/docs/ImageContext.md +30 -0
  47. package/docs/ImageContextType.md +20 -0
  48. package/docs/ImageReferencePayload.md +24 -0
  49. package/docs/ImagesApi.md +59 -0
  50. package/docs/JoinEventRequest.md +2 -0
  51. package/docs/JoinEventRequestPlayersPaymentMethodsInner.md +2 -0
  52. package/docs/JoinEventResponse.md +14 -0
  53. package/docs/JoinEventResponseOnsitePaymentsInner.md +24 -0
  54. package/docs/OffPeakRule.md +2 -0
  55. package/docs/Team.md +1 -1
  56. package/docs/UpdateClubGeneralSettingsRequest.md +1 -1
  57. package/docs/UpdateClubGeneralSettingsRequestLogo.md +24 -0
  58. package/docs/UpdateClubPresentationSettingsRequest.md +2 -2
  59. package/docs/UserProfileResponse.md +2 -0
  60. package/index.ts +1 -1
  61. package/package.json +1 -1
@@ -5,6 +5,7 @@
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
+ **clubType** | **string** | | [optional] [default to undefined]
8
9
  **clubOnboardingLink** | **string** | | [optional] [default to undefined]
9
10
  **stripeAccountId** | **string** | | [default to undefined]
10
11
  **clubId** | **string** | | [default to undefined]
@@ -15,6 +16,7 @@ Name | Type | Description | Notes
15
16
  import { ClientFullOnboardingResponseClub } from '@tennac-booking/sdk';
16
17
 
17
18
  const instance: ClientFullOnboardingResponseClub = {
19
+ clubType,
18
20
  clubOnboardingLink,
19
21
  stripeAccountId,
20
22
  clubId,
@@ -13,6 +13,7 @@ Name | Type | Description | Notes
13
13
  **city** | **string** | Ville du club (optionnel) | [optional] [default to undefined]
14
14
  **postalCode** | **string** | Code postal du club (optionnel) | [optional] [default to undefined]
15
15
  **country** | **string** | Pays du club (optionnel) | [optional] [default to undefined]
16
+ **clubType** | **string** | Type de club souhaité (public | school) | [optional] [default to undefined]
16
17
 
17
18
  ## Example
18
19
 
@@ -27,6 +28,7 @@ const instance: ClientOnboardingRequestBody = {
27
28
  city,
28
29
  postalCode,
29
30
  country,
31
+ clubType,
30
32
  };
31
33
  ```
32
34
 
@@ -0,0 +1,31 @@
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<ClientSubscriptionItem>**](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)
@@ -0,0 +1,25 @@
1
+ # ClientSubscriptionItem
2
+
3
+ Item d\'abonnement Stripe simplifié
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **priceId** | **string** | | [default to undefined]
10
+ **productId** | **string** | | [optional] [default to undefined]
11
+ **quantity** | **number** | | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { ClientSubscriptionItem } from '@tennac-booking/sdk';
17
+
18
+ const instance: ClientSubscriptionItem = {
19
+ priceId,
20
+ productId,
21
+ quantity,
22
+ };
23
+ ```
24
+
25
+ [[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,21 @@
1
+ # ClientSubscriptionsResponse
2
+
3
+ Réponse liste des abonnements Stripe du client
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **subscriptions** | [**Array<ClientSubscription>**](ClientSubscription.md) | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { ClientSubscriptionsResponse } from '@tennac-booking/sdk';
15
+
16
+ const instance: ClientSubscriptionsResponse = {
17
+ subscriptions,
18
+ };
19
+ ```
20
+
21
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -4,9 +4,9 @@ All URIs are relative to *http://localhost*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
- |[**updateClubGeneralSettings**](#updateclubgeneralsettings) | **PUT** /api/club-settings/settings/general | |
7
+ |[**updateClubGeneralSettings**](#updateclubgeneralsettings) | **PATCH** /api/club-settings/settings/general | |
8
8
  |[**updateHoursSettings**](#updatehourssettings) | **PUT** /api/club-settings/hours | |
9
- |[**updatePresentationSettings**](#updatepresentationsettings) | **PUT** /api/club-settings/presentation | |
9
+ |[**updatePresentationSettings**](#updatepresentationsettings) | **PATCH** /api/club-settings/presentation | |
10
10
  |[**updateReservationSettings**](#updatereservationsettings) | **PUT** /api/club-settings/reservation | |
11
11
 
12
12
  # **updateClubGeneralSettings**
@@ -112,7 +112,7 @@ const { status, data } = await apiInstance.updateHoursSettings(
112
112
  [[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
113
 
114
114
  # **updatePresentationSettings**
115
- > ClubPresentationSettingsResponse updatePresentationSettings(clubPresentationSettingsResponse)
115
+ > ClubPresentationSettingsResponse updatePresentationSettings(updateClubPresentationSettingsRequest)
116
116
 
117
117
 
118
118
  ### Example
@@ -121,16 +121,16 @@ const { status, data } = await apiInstance.updateHoursSettings(
121
121
  import {
122
122
  ClubSettingsManagerApi,
123
123
  Configuration,
124
- ClubPresentationSettingsResponse
124
+ UpdateClubPresentationSettingsRequest
125
125
  } from '@tennac-booking/sdk';
126
126
 
127
127
  const configuration = new Configuration();
128
128
  const apiInstance = new ClubSettingsManagerApi(configuration);
129
129
 
130
- let clubPresentationSettingsResponse: ClubPresentationSettingsResponse; //
130
+ let updateClubPresentationSettingsRequest: UpdateClubPresentationSettingsRequest; //
131
131
 
132
132
  const { status, data } = await apiInstance.updatePresentationSettings(
133
- clubPresentationSettingsResponse
133
+ updateClubPresentationSettingsRequest
134
134
  );
135
135
  ```
136
136
 
@@ -138,7 +138,7 @@ const { status, data } = await apiInstance.updatePresentationSettings(
138
138
 
139
139
  |Name | Type | Description | Notes|
140
140
  |------------- | ------------- | ------------- | -------------|
141
- | **clubPresentationSettingsResponse** | **ClubPresentationSettingsResponse**| | |
141
+ | **updateClubPresentationSettingsRequest** | **UpdateClubPresentationSettingsRequest**| | |
142
142
 
143
143
 
144
144
  ### Return type
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
12
12
  **sportId** | **string** | ID du sport associé au terrain | [default to undefined]
13
13
  **surface** | [**SurfaceType**](SurfaceType.md) | | [default to undefined]
14
14
  **isIndoor** | **boolean** | Indique si le terrain est en intérieur | [default to undefined]
15
+ **pricePerHour** | **number** | | [default to undefined]
15
16
  **comments** | **string** | Commentaires sur le terrain | [optional] [default to undefined]
16
17
 
17
18
  ## Example
@@ -27,6 +28,7 @@ const instance: CreateCourtRequest = {
27
28
  sportId,
28
29
  surface,
29
30
  isIndoor,
31
+ pricePerHour,
30
32
  comments,
31
33
  };
32
34
  ```
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **bookingFree** | **boolean** | | [optional] [default to undefined]
9
9
  **offPeakRules** | [**Array<OffPeakRule>**](OffPeakRule.md) | | [optional] [default to undefined]
10
+ **offPeakRuleNames** | **Array<string>** | Liste optionnelle des noms de périodes tarifaires sur lesquelles appliquer la remise. Laisser vide pour appliquer la remise à toutes les heures d\'ouverture du club. | [optional] [default to undefined]
10
11
  **validTo** | **string** | | [optional] [default to undefined]
11
12
  **validFrom** | **string** | | [optional] [default to undefined]
12
13
  **maxDiscountAmountInCents** | **number** | | [optional] [default to undefined]
@@ -21,6 +22,7 @@ import { CreateSubscriptionPlanRequestDiscount } from '@tennac-booking/sdk';
21
22
  const instance: CreateSubscriptionPlanRequestDiscount = {
22
23
  bookingFree,
23
24
  offPeakRules,
25
+ offPeakRuleNames,
24
26
  validTo,
25
27
  validFrom,
26
28
  maxDiscountAmountInCents,
@@ -0,0 +1,32 @@
1
+ # EstimateEventPrice200Response
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **perPayerAfterCredits** | **{ [key: string]: number; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
9
+ **totalAfterCredits** | **number** | | [optional] [default to undefined]
10
+ **creditsAppliedInCents** | **number** | | [optional] [default to undefined]
11
+ **currency** | **string** | | [default to undefined]
12
+ **total** | **number** | | [default to undefined]
13
+ **perPayer** | **{ [key: string]: number; }** | Construct a type with a set of properties K of type T | [default to undefined]
14
+ **perPlayer** | **{ [key: string]: number; }** | Construct a type with a set of properties K of type T | [default to undefined]
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import { EstimateEventPrice200Response } from '@tennac-booking/sdk';
20
+
21
+ const instance: EstimateEventPrice200Response = {
22
+ perPayerAfterCredits,
23
+ totalAfterCredits,
24
+ creditsAppliedInCents,
25
+ currency,
26
+ total,
27
+ perPayer,
28
+ perPlayer,
29
+ };
30
+ ```
31
+
32
+ [[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
+ # EstimateEventPriceRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **creditToUseInCents** | **number** | | [optional] [default to undefined]
9
+ **creatorId** | **string** | | [optional] [default to undefined]
10
+ **shares** | [**Array<EstimateEventPriceRequestSharesInner>**](EstimateEventPriceRequestSharesInner.md) | | [optional] [default to undefined]
11
+ **playerIds** | **Array<string>** | | [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { EstimateEventPriceRequest } from '@tennac-booking/sdk';
17
+
18
+ const instance: EstimateEventPriceRequest = {
19
+ creditToUseInCents,
20
+ creatorId,
21
+ shares,
22
+ playerIds,
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,22 @@
1
+ # EstimateEventPriceRequestSharesInner
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **paysAlsoFor** | **Array<string>** | | [optional] [default to undefined]
9
+ **playerId** | **string** | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { EstimateEventPriceRequestSharesInner } from '@tennac-booking/sdk';
15
+
16
+ const instance: EstimateEventPriceRequestSharesInner = {
17
+ paysAlsoFor,
18
+ playerId,
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)
@@ -18,10 +18,11 @@ Name | Type | Description | Notes
18
18
  **recurringType** | **string** | | [default to undefined]
19
19
  **recurrenceEndDate** | **string** | | [optional] [default to undefined]
20
20
  **participationType** | **string** | | [default to undefined]
21
- **participants** | **Array<string>** | | [optional] [default to undefined]
21
+ **participants** | [**Array<EventUser>**](EventUser.md) | | [optional] [default to undefined]
22
22
  **teams** | [**Array<Team>**](Team.md) | | [optional] [default to undefined]
23
23
  **playerLimit** | **number** | | [optional] [default to undefined]
24
24
  **teamLimit** | **number** | | [optional] [default to undefined]
25
+ **playersPerTeam** | **number** | | [optional] [default to undefined]
25
26
  **price** | **number** | | [optional] [default to undefined]
26
27
  **subscriberPrices** | [**Array<SubscriberPrice>**](SubscriberPrice.md) | | [optional] [default to undefined]
27
28
  **visibilityType** | **string** | | [default to undefined]
@@ -55,6 +56,7 @@ const instance: EventResponse = {
55
56
  teams,
56
57
  playerLimit,
57
58
  teamLimit,
59
+ playersPerTeam,
58
60
  price,
59
61
  subscriberPrices,
60
62
  visibilityType,
@@ -0,0 +1,28 @@
1
+ # EventUser
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | | [default to undefined]
9
+ **firstName** | **string** | | [default to undefined]
10
+ **lastName** | **string** | | [default to undefined]
11
+ **username** | **string** | | [optional] [default to undefined]
12
+ **profilePicture** | **string** | | [optional] [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { EventUser } from '@tennac-booking/sdk';
18
+
19
+ const instance: EventUser = {
20
+ id,
21
+ firstName,
22
+ lastName,
23
+ username,
24
+ profilePicture,
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)
package/docs/EventsApi.md CHANGED
@@ -4,11 +4,126 @@ 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 | |
7
9
  |[**getEventById**](#geteventbyid) | **GET** /api/events/{eventId} | |
8
10
  |[**getPublishedEventsByClubId**](#getpublishedeventsbyclubid) | **GET** /api/events | |
9
11
  |[**joinEvent**](#joinevent) | **POST** /api/events/{eventId}/join | |
10
12
  |[**leaveEvent**](#leaveevent) | **DELETE** /api/events/{eventId}/leave | |
11
13
 
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
+
12
127
  # **getEventById**
13
128
  > PublishEventResponse getEventById()
14
129
 
@@ -0,0 +1,22 @@
1
+ # ImageCleanupItem
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **imageKey** | **string** | | [default to undefined]
9
+ **context** | [**ImageContext**](ImageContext.md) | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { ImageCleanupItem } from '@tennac-booking/sdk';
15
+
16
+ const instance: ImageCleanupItem = {
17
+ imageKey,
18
+ context,
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)
@@ -0,0 +1,20 @@
1
+ # ImageCleanupRequestBody
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **items** | [**Array<ImageCleanupItem>**](ImageCleanupItem.md) | | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { ImageCleanupRequestBody } from '@tennac-booking/sdk';
14
+
15
+ const instance: ImageCleanupRequestBody = {
16
+ items,
17
+ };
18
+ ```
19
+
20
+ [[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,22 @@
1
+ # ImageCleanupResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **success** | **boolean** | | [default to undefined]
9
+ **deleted** | **number** | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { ImageCleanupResponse } from '@tennac-booking/sdk';
15
+
16
+ const instance: ImageCleanupResponse = {
17
+ success,
18
+ deleted,
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)
@@ -0,0 +1,30 @@
1
+ # ImageContext
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **type** | [**ImageContextType**](ImageContextType.md) | | [default to undefined]
9
+ **entityId** | **string** | | [default to undefined]
10
+ **userId** | **string** | | [optional] [default to undefined]
11
+ **clubId** | **string** | | [optional] [default to undefined]
12
+ **sportId** | **string** | | [optional] [default to undefined]
13
+ **eventId** | **string** | | [optional] [default to undefined]
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import { ImageContext } from '@tennac-booking/sdk';
19
+
20
+ const instance: ImageContext = {
21
+ type,
22
+ entityId,
23
+ userId,
24
+ clubId,
25
+ sportId,
26
+ eventId,
27
+ };
28
+ ```
29
+
30
+ [[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,20 @@
1
+ # ImageContextType
2
+
3
+
4
+ ## Enum
5
+
6
+ * `UserAvatar` (value: `'user-avatar'`)
7
+
8
+ * `ClubAvatar` (value: `'club-avatar'`)
9
+
10
+ * `ClubGallery` (value: `'club-gallery'`)
11
+
12
+ * `ClubPreview` (value: `'club-preview'`)
13
+
14
+ * `ClubCarousel` (value: `'club-carousel'`)
15
+
16
+ * `ClubSportImage` (value: `'club-sport-image'`)
17
+
18
+ * `ClubEventImage` (value: `'club-event-image'`)
19
+
20
+ [[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
+ # ImageReferencePayload
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **type** | [**ImageContextType**](ImageContextType.md) | | [default to undefined]
9
+ **imageKey** | **string** | | [default to undefined]
10
+ **dbContext** | **{ [key: string]: any; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { ImageReferencePayload } from '@tennac-booking/sdk';
16
+
17
+ const instance: ImageReferencePayload = {
18
+ type,
19
+ imageKey,
20
+ dbContext,
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,59 @@
1
+ # ImagesApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**cleanupImages**](#cleanupimages) | **POST** /api/images/cleanup | |
8
+
9
+ # **cleanupImages**
10
+ > ImageCleanupResponse cleanupImages(imageCleanupRequestBody)
11
+
12
+
13
+ ### Example
14
+
15
+ ```typescript
16
+ import {
17
+ ImagesApi,
18
+ Configuration,
19
+ ImageCleanupRequestBody
20
+ } from '@tennac-booking/sdk';
21
+
22
+ const configuration = new Configuration();
23
+ const apiInstance = new ImagesApi(configuration);
24
+
25
+ let imageCleanupRequestBody: ImageCleanupRequestBody; //
26
+
27
+ const { status, data } = await apiInstance.cleanupImages(
28
+ imageCleanupRequestBody
29
+ );
30
+ ```
31
+
32
+ ### Parameters
33
+
34
+ |Name | Type | Description | Notes|
35
+ |------------- | ------------- | ------------- | -------------|
36
+ | **imageCleanupRequestBody** | **ImageCleanupRequestBody**| | |
37
+
38
+
39
+ ### Return type
40
+
41
+ **ImageCleanupResponse**
42
+
43
+ ### Authorization
44
+
45
+ [bearerAuth](../README.md#bearerAuth)
46
+
47
+ ### HTTP request headers
48
+
49
+ - **Content-Type**: application/json
50
+ - **Accept**: application/json
51
+
52
+
53
+ ### HTTP response details
54
+ | Status code | Description | Response headers |
55
+ |-------------|-------------|------------------|
56
+ |**200** | Images supprimées | - |
57
+
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)
59
+
@@ -11,6 +11,7 @@ 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]
14
15
 
15
16
  ## Example
16
17
 
@@ -24,6 +25,7 @@ const instance: JoinEventRequest = {
24
25
  paymentMethod,
25
26
  playersPaymentMethods,
26
27
  useDefaultPaymentMethod,
28
+ creditToUseInCents,
27
29
  };
28
30
  ```
29
31