@tennac-booking/sdk 1.0.67 → 1.0.69

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.
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.66
5
+ * The version of the OpenAPI document: 1.0.68
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.66
7
+ * The version of the OpenAPI document: 1.0.68
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.66
5
+ * The version of the OpenAPI document: 1.0.68
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.66
7
+ * The version of the OpenAPI document: 1.0.68
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.66
5
+ * The version of the OpenAPI document: 1.0.68
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.66
7
+ * The version of the OpenAPI document: 1.0.68
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.66
5
+ * The version of the OpenAPI document: 1.0.68
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * openapi.json
6
6
  * Pandook API Documentation
7
7
  *
8
- * The version of the OpenAPI document: 1.0.66
8
+ * The version of the OpenAPI document: 1.0.68
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -3,9 +3,9 @@
3
3
 
4
4
  ## Enum
5
5
 
6
- * `Active` (value: `'active'`)
6
+ * `Paid` (value: `'paid'`)
7
7
 
8
- * `Past` (value: `'past'`)
8
+ * `Active` (value: `'active'`)
9
9
 
10
10
  * `Pending` (value: `'pending'`)
11
11
 
@@ -6,7 +6,7 @@ All URIs are relative to *http://localhost*
6
6
  |------------- | ------------- | -------------|
7
7
  |[**checkInPlayers**](#checkinplayers) | **POST** /api/bookings/{bookingId}/check-in | |
8
8
  |[**getBookingById**](#getbookingbyid) | **GET** /api/bookings/{bookingId} | |
9
- |[**getBookingHistoryStaff**](#getbookinghistorystaff) | **GET** /api/bookings/staff/{bookingId} | |
9
+ |[**getBookingHistoryStaff**](#getbookinghistorystaff) | **GET** /api/bookings/staff/history{bookingId} | |
10
10
  |[**getBookingPaymentStatus**](#getbookingpaymentstatus) | **GET** /api/bookings/{bookingId}/payment-status | |
11
11
  |[**getDailyBookings**](#getdailybookings) | **GET** /api/bookings/daily/{date} | |
12
12
  |[**getWeeklyBookings**](#getweeklybookings) | **GET** /api/bookings/weekly/{weekId} | |
@@ -18,6 +18,7 @@ Name | Type | Description | Notes
18
18
  **stripeAccountId** | **string** | ID du compte Stripe du club | [optional] [default to undefined]
19
19
  **clubDashBoardUrl** | **string** | URL du dashboard Stripe du club | [optional] [default to undefined]
20
20
  **isNoShowEnabled** | **boolean** | Indique si la fonctionnalité \"no show\" est activée | [optional] [default to undefined]
21
+ **sports** | **Array<string>** | Liste des sports proposés par le club (identifiés par leur clé) | [optional] [default to undefined]
21
22
  **createdAt** | [**ClubResponseCreatedAt**](ClubResponseCreatedAt.md) | | [optional] [default to undefined]
22
23
  **updatedAt** | [**ClubResponseUpdatedAt**](ClubResponseUpdatedAt.md) | | [optional] [default to undefined]
23
24
 
@@ -40,6 +41,7 @@ const instance: ClubResponse = {
40
41
  stripeAccountId,
41
42
  clubDashBoardUrl,
42
43
  isNoShowEnabled,
44
+ sports,
43
45
  createdAt,
44
46
  updatedAt,
45
47
  };
@@ -9,6 +9,8 @@ Name | Type | Description | Notes
9
9
  **name** | **string** | Nom du terrain | [default to undefined]
10
10
  **status** | **string** | Statut du terrain | [default to undefined]
11
11
  **comments** | **string** | Commentaires sur le terrain | [optional] [default to undefined]
12
+ **pricePerHour** | **number** | | [optional] [default to undefined]
13
+ **bookingCount** | **number** | | [optional] [default to undefined]
12
14
  **slotDefaultDuration** | **number** | Durée par défaut d\'un créneau en minutes | [default to undefined]
13
15
  **startTimeInTheDayInMinutes** | **number** | Heure de début en minutes depuis minuit | [default to undefined]
14
16
  **endTimeInTheDayInMinutes** | **number** | Heure de fin en minutes depuis minuit | [default to undefined]
@@ -30,6 +32,8 @@ const instance: CourtResponse = {
30
32
  name,
31
33
  status,
32
34
  comments,
35
+ pricePerHour,
36
+ bookingCount,
33
37
  slotDefaultDuration,
34
38
  startTimeInTheDayInMinutes,
35
39
  endTimeInTheDayInMinutes,
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
9
9
  **players** | [**Array<PlayerWithPaymentMethod>**](PlayerWithPaymentMethod.md) | Liste des joueurs avec leurs méthodes de paiement | [default to undefined]
10
10
  **isCreatorPayingAll** | **boolean** | Indique si le créateur paie pour tous les joueurs | [optional] [default to undefined]
11
11
  **paymentMethod** | [**PaymentMethod**](PaymentMethod.md) | | [optional] [default to undefined]
12
+ **useDefaultPaymentMethod** | **boolean** | Indique si l\'utilisateur veut utiliser sa méthode de paiement par défaut | [optional] [default to undefined]
12
13
 
13
14
  ## Example
14
15
 
@@ -20,6 +21,7 @@ const instance: CreateBookingRequest = {
20
21
  players,
21
22
  isCreatorPayingAll,
22
23
  paymentMethod,
24
+ useDefaultPaymentMethod,
23
25
  };
24
26
  ```
25
27
 
@@ -19,6 +19,7 @@ Name | Type | Description | Notes
19
19
  **stripeAccountId** | **string** | ID du compte Stripe du club | [optional] [default to undefined]
20
20
  **clubDashBoardUrl** | **string** | URL du dashboard Stripe du club | [optional] [default to undefined]
21
21
  **isNoShowEnabled** | **boolean** | Indique si la fonctionnalité \"no show\" est activée | [optional] [default to undefined]
22
+ **sports** | **Array<string>** | Liste des sports proposés par le club (identifiés par leur clé) | [optional] [default to undefined]
22
23
  **createdAt** | [**ClubResponseCreatedAt**](ClubResponseCreatedAt.md) | | [optional] [default to undefined]
23
24
  **updatedAt** | [**ClubResponseUpdatedAt**](ClubResponseUpdatedAt.md) | | [optional] [default to undefined]
24
25
 
@@ -41,6 +42,7 @@ const instance: PartialClubResponse = {
41
42
  stripeAccountId,
42
43
  clubDashBoardUrl,
43
44
  isNoShowEnabled,
45
+ sports,
44
46
  createdAt,
45
47
  updatedAt,
46
48
  };
@@ -0,0 +1,20 @@
1
+ # PlayerCategoriesResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **categories** | [**Array<PlayerCategory>**](PlayerCategory.md) | | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { PlayerCategoriesResponse } from '@tennac-booking/sdk';
14
+
15
+ const instance: PlayerCategoriesResponse = {
16
+ categories,
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,26 @@
1
+ # PlayerCategory
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | [**PlayerCategoryId**](PlayerCategoryId.md) | | [default to undefined]
9
+ **label** | **string** | | [default to undefined]
10
+ **description** | **string** | | [optional] [default to undefined]
11
+ **limit** | **number** | | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { PlayerCategory } from '@tennac-booking/sdk';
17
+
18
+ const instance: PlayerCategory = {
19
+ id,
20
+ label,
21
+ description,
22
+ limit,
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,16 @@
1
+ # PlayerCategoryId
2
+
3
+
4
+ ## Enum
5
+
6
+ * `SameLevel` (value: `'same-level'`)
7
+
8
+ * `MutualConnections` (value: `'mutual-connections'`)
9
+
10
+ * `ClubMembers` (value: `'club-members'`)
11
+
12
+ * `MostActive` (value: `'most-active'`)
13
+
14
+ * `Nearby` (value: `'nearby'`)
15
+
16
+ [[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
+ # PlayerListResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **players** | [**Array<PlayerSummary>**](PlayerSummary.md) | | [default to undefined]
9
+ **total** | **number** | | [optional] [default to undefined]
10
+ **hasMore** | **boolean** | | [optional] [default to undefined]
11
+ **nextOffset** | **number** | | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { PlayerListResponse } from '@tennac-booking/sdk';
17
+
18
+ const instance: PlayerListResponse = {
19
+ players,
20
+ total,
21
+ hasMore,
22
+ nextOffset,
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)
@@ -39,6 +39,7 @@ Name | Type | Description | Notes
39
39
  **sports** | **{ [key: string]: any; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
40
40
  **upcomingBookingsCount** | **number** | | [optional] [default to undefined]
41
41
  **subscriptionsCount** | **number** | | [optional] [default to undefined]
42
+ **subscriptions** | [**Array<ClubSubscriptions>**](ClubSubscriptions.md) | | [optional] [default to undefined]
42
43
  **frequentlyVisitedClubs** | [**Array<ClubSummary>**](ClubSummary.md) | | [optional] [default to undefined]
43
44
  **frequentlyPlayedWith** | [**Array<PlayerSummary>**](PlayerSummary.md) | | [optional] [default to undefined]
44
45
  **stripeLinks** | **{ [key: string]: any; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
@@ -83,6 +84,7 @@ const instance: UserProfileResponse = {
83
84
  sports,
84
85
  upcomingBookingsCount,
85
86
  subscriptionsCount,
87
+ subscriptions,
86
88
  frequentlyVisitedClubs,
87
89
  frequentlyPlayedWith,
88
90
  stripeLinks,
package/docs/UsersApi.md CHANGED
@@ -21,8 +21,10 @@ All URIs are relative to *http://localhost*
21
21
  |[**getNearestClubsFromCoordinates**](#getnearestclubsfromcoordinates) | **GET** /api/users/nearest-clubs/coordinates | |
22
22
  |[**getNearestUsers**](#getnearestusers) | **GET** /api/users/me/nearest-players | |
23
23
  |[**getNearestUsersFromCoordinates**](#getnearestusersfromcoordinates) | **GET** /api/users/nearest-players/coordinates | |
24
+ |[**getPlayerCategories**](#getplayercategories) | **GET** /api/users/players/categories | |
24
25
  |[**getUserBookings**](#getuserbookings) | **GET** /api/users/me/bookings | |
25
26
  |[**getUserProfileById**](#getuserprofilebyid) | **GET** /api/users/profile/{id} | |
27
+ |[**listPlayers**](#listplayers) | **GET** /api/users/players | |
26
28
  |[**login**](#login) | **POST** /api/users/login | |
27
29
  |[**refreshToken**](#refreshtoken) | **POST** /api/users/refresh-token | |
28
30
  |[**register**](#register) | **POST** /api/users | |
@@ -872,6 +874,49 @@ No authorization required
872
874
  - **Accept**: application/json
873
875
 
874
876
 
877
+ ### HTTP response details
878
+ | Status code | Description | Response headers |
879
+ |-------------|-------------|------------------|
880
+ |**200** | Ok | - |
881
+
882
+ [[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)
883
+
884
+ # **getPlayerCategories**
885
+ > PlayerCategoriesResponse getPlayerCategories()
886
+
887
+
888
+ ### Example
889
+
890
+ ```typescript
891
+ import {
892
+ UsersApi,
893
+ Configuration
894
+ } from '@tennac-booking/sdk';
895
+
896
+ const configuration = new Configuration();
897
+ const apiInstance = new UsersApi(configuration);
898
+
899
+ const { status, data } = await apiInstance.getPlayerCategories();
900
+ ```
901
+
902
+ ### Parameters
903
+ This endpoint does not have any parameters.
904
+
905
+
906
+ ### Return type
907
+
908
+ **PlayerCategoriesResponse**
909
+
910
+ ### Authorization
911
+
912
+ [bearerAuth](../README.md#bearerAuth)
913
+
914
+ ### HTTP request headers
915
+
916
+ - **Content-Type**: Not defined
917
+ - **Accept**: application/json
918
+
919
+
875
920
  ### HTTP response details
876
921
  | Status code | Description | Response headers |
877
922
  |-------------|-------------|------------------|
@@ -975,6 +1020,86 @@ const { status, data } = await apiInstance.getUserProfileById(
975
1020
  - **Accept**: application/json
976
1021
 
977
1022
 
1023
+ ### HTTP response details
1024
+ | Status code | Description | Response headers |
1025
+ |-------------|-------------|------------------|
1026
+ |**200** | Ok | - |
1027
+
1028
+ [[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)
1029
+
1030
+ # **listPlayers**
1031
+ > PlayerListResponse listPlayers()
1032
+
1033
+
1034
+ ### Example
1035
+
1036
+ ```typescript
1037
+ import {
1038
+ UsersApi,
1039
+ Configuration
1040
+ } from '@tennac-booking/sdk';
1041
+
1042
+ const configuration = new Configuration();
1043
+ const apiInstance = new UsersApi(configuration);
1044
+
1045
+ let category: PlayerCategoryId; // (optional) (default to undefined)
1046
+ let search: string; // (optional) (default to undefined)
1047
+ let gender: string; // (optional) (default to undefined)
1048
+ let sharedClub: boolean; // (optional) (default to undefined)
1049
+ let sportLevels: string; // (optional) (default to undefined)
1050
+ let limit: number; // (optional) (default to undefined)
1051
+ let offset: number; // (optional) (default to undefined)
1052
+ let useLocation: boolean; // (optional) (default to undefined)
1053
+ let latitude: number; // (optional) (default to undefined)
1054
+ let longitude: number; // (optional) (default to undefined)
1055
+ let radiusInKm: number; // (optional) (default to undefined)
1056
+
1057
+ const { status, data } = await apiInstance.listPlayers(
1058
+ category,
1059
+ search,
1060
+ gender,
1061
+ sharedClub,
1062
+ sportLevels,
1063
+ limit,
1064
+ offset,
1065
+ useLocation,
1066
+ latitude,
1067
+ longitude,
1068
+ radiusInKm
1069
+ );
1070
+ ```
1071
+
1072
+ ### Parameters
1073
+
1074
+ |Name | Type | Description | Notes|
1075
+ |------------- | ------------- | ------------- | -------------|
1076
+ | **category** | **PlayerCategoryId** | | (optional) defaults to undefined|
1077
+ | **search** | [**string**] | | (optional) defaults to undefined|
1078
+ | **gender** | [**string**] | | (optional) defaults to undefined|
1079
+ | **sharedClub** | [**boolean**] | | (optional) defaults to undefined|
1080
+ | **sportLevels** | [**string**] | | (optional) defaults to undefined|
1081
+ | **limit** | [**number**] | | (optional) defaults to undefined|
1082
+ | **offset** | [**number**] | | (optional) defaults to undefined|
1083
+ | **useLocation** | [**boolean**] | | (optional) defaults to undefined|
1084
+ | **latitude** | [**number**] | | (optional) defaults to undefined|
1085
+ | **longitude** | [**number**] | | (optional) defaults to undefined|
1086
+ | **radiusInKm** | [**number**] | | (optional) defaults to undefined|
1087
+
1088
+
1089
+ ### Return type
1090
+
1091
+ **PlayerListResponse**
1092
+
1093
+ ### Authorization
1094
+
1095
+ [bearerAuth](../README.md#bearerAuth)
1096
+
1097
+ ### HTTP request headers
1098
+
1099
+ - **Content-Type**: Not defined
1100
+ - **Accept**: application/json
1101
+
1102
+
978
1103
  ### HTTP response details
979
1104
  | Status code | Description | Response headers |
980
1105
  |-------------|-------------|------------------|
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.66
7
+ * The version of the OpenAPI document: 1.0.68
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.67",
3
+ "version": "1.0.69",
4
4
  "description": "OpenAPI client for @tennac-booking/sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {