@tennac-booking/sdk 1.0.29 → 1.0.31
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 +2 -1
- package/README.md +6 -4
- package/api.ts +195 -49
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +149 -35
- package/dist/api.js +79 -20
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +149 -35
- package/dist/esm/api.js +79 -20
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/PublicClubUser.md +12 -0
- package/docs/PublicClubUserFrequentlyPlayedWithInner.md +28 -0
- package/docs/PublicClubUserFrequentlyVisitedClubsInner.md +24 -0
- package/docs/StaffClubsApi.md +5 -13
- package/docs/UserProfileApi.md +54 -1
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/GetClubSettingsRequest.md +0 -20
package/docs/StaffClubsApi.md
CHANGED
|
@@ -52,7 +52,7 @@ This endpoint does not have any parameters.
|
|
|
52
52
|
[[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)
|
|
53
53
|
|
|
54
54
|
# **getClubSettings**
|
|
55
|
-
> ClubSettings getClubSettings(
|
|
55
|
+
> ClubSettings getClubSettings()
|
|
56
56
|
|
|
57
57
|
|
|
58
58
|
### Example
|
|
@@ -60,25 +60,17 @@ This endpoint does not have any parameters.
|
|
|
60
60
|
```typescript
|
|
61
61
|
import {
|
|
62
62
|
StaffClubsApi,
|
|
63
|
-
Configuration
|
|
64
|
-
GetClubSettingsRequest
|
|
63
|
+
Configuration
|
|
65
64
|
} from '@tennac-booking/sdk';
|
|
66
65
|
|
|
67
66
|
const configuration = new Configuration();
|
|
68
67
|
const apiInstance = new StaffClubsApi(configuration);
|
|
69
68
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
const { status, data } = await apiInstance.getClubSettings(
|
|
73
|
-
getClubSettingsRequest
|
|
74
|
-
);
|
|
69
|
+
const { status, data } = await apiInstance.getClubSettings();
|
|
75
70
|
```
|
|
76
71
|
|
|
77
72
|
### Parameters
|
|
78
|
-
|
|
79
|
-
|Name | Type | Description | Notes|
|
|
80
|
-
|------------- | ------------- | ------------- | -------------|
|
|
81
|
-
| **getClubSettingsRequest** | **GetClubSettingsRequest**| | |
|
|
73
|
+
This endpoint does not have any parameters.
|
|
82
74
|
|
|
83
75
|
|
|
84
76
|
### Return type
|
|
@@ -91,7 +83,7 @@ const { status, data } = await apiInstance.getClubSettings(
|
|
|
91
83
|
|
|
92
84
|
### HTTP request headers
|
|
93
85
|
|
|
94
|
-
- **Content-Type**:
|
|
86
|
+
- **Content-Type**: Not defined
|
|
95
87
|
- **Accept**: application/json
|
|
96
88
|
|
|
97
89
|
|
package/docs/UserProfileApi.md
CHANGED
|
@@ -13,12 +13,13 @@ All URIs are relative to *https://api.mon-domaine.com*
|
|
|
13
13
|
|[**getFrequentlyPlayedWith**](#getfrequentlyplayedwith) | **GET** /api/users/me/frequentlyPlayedWith | Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)|
|
|
14
14
|
|[**getFrequentlyVisitedClub**](#getfrequentlyvisitedclub) | **GET** /api/users/me/frequentlyVisitedClub | Clubs les plus fréquemment visités par l\'utilisateur connecté|
|
|
15
15
|
|[**getProfilePicture**](#getprofilepicture) | **GET** /api/users/me/profile-picture | Récupère l\'URL de la photo de profil de l\'utilisateur connecté|
|
|
16
|
+
|[**getPublicUserProfile**](#getpublicuserprofile) | **GET** /api/users/profile/{id} | Récupère le profil public d\'un utilisateur par son ID|
|
|
16
17
|
|[**getUserBookings**](#getuserbookings) | **GET** /api/users/me/bookings | Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)|
|
|
17
18
|
|[**getUserCity**](#getusercity) | **GET** /api/users/me/city | Récupère la ville de l\'utilisateur connecté|
|
|
18
19
|
|[**getUserDescription**](#getuserdescription) | **GET** /api/users/me/description | Récupère la description de l\'utilisateur connecté|
|
|
19
20
|
|[**getUserInfo**](#getuserinfo) | **GET** /api/users/me | Récupère les informations de l\'utilisateur connecté|
|
|
20
21
|
|[**getUserProfileVisibility**](#getuserprofilevisibility) | **GET** /api/users/me/profile-visibility | Récupère la visibilité du profil de l\'utilisateur connecté|
|
|
21
|
-
|[**removeFavoriteClub**](#removefavoriteclub) | **DELETE** /api/users/me/favorite-clubs | Remove a club from the user\'s favorite list|
|
|
22
|
+
|[**removeFavoriteClub**](#removefavoriteclub) | **DELETE** /api/users/me/favorite-clubs/{clubId} | Remove a club from the user\'s favorite list|
|
|
22
23
|
|[**removeFavoritePlayer**](#removefavoriteplayer) | **DELETE** /api/users/me/favoritesPlayers/{favoritePlayerId} | Retire un joueur des favoris de l\'utilisateur connecté|
|
|
23
24
|
|[**updateLevelBySports**](#updatelevelbysports) | **PUT** /api/users/me/level-by-sports | Met à jour le tableau levelBySports de l\'utilisateur connecté|
|
|
24
25
|
|[**updateProfilePicture**](#updateprofilepicture) | **PUT** /api/users/me/profile-picture | Met à jour l\'URL de la photo de profil de l\'utilisateur connecté|
|
|
@@ -475,6 +476,58 @@ This endpoint does not have any parameters.
|
|
|
475
476
|
|
|
476
477
|
[[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)
|
|
477
478
|
|
|
479
|
+
# **getPublicUserProfile**
|
|
480
|
+
> PublicClubUser getPublicUserProfile()
|
|
481
|
+
|
|
482
|
+
|
|
483
|
+
### Example
|
|
484
|
+
|
|
485
|
+
```typescript
|
|
486
|
+
import {
|
|
487
|
+
UserProfileApi,
|
|
488
|
+
Configuration
|
|
489
|
+
} from '@tennac-booking/sdk';
|
|
490
|
+
|
|
491
|
+
const configuration = new Configuration();
|
|
492
|
+
const apiInstance = new UserProfileApi(configuration);
|
|
493
|
+
|
|
494
|
+
let id: string; //ID de l\'utilisateur (default to undefined)
|
|
495
|
+
|
|
496
|
+
const { status, data } = await apiInstance.getPublicUserProfile(
|
|
497
|
+
id
|
|
498
|
+
);
|
|
499
|
+
```
|
|
500
|
+
|
|
501
|
+
### Parameters
|
|
502
|
+
|
|
503
|
+
|Name | Type | Description | Notes|
|
|
504
|
+
|------------- | ------------- | ------------- | -------------|
|
|
505
|
+
| **id** | [**string**] | ID de l\'utilisateur | defaults to undefined|
|
|
506
|
+
|
|
507
|
+
|
|
508
|
+
### Return type
|
|
509
|
+
|
|
510
|
+
**PublicClubUser**
|
|
511
|
+
|
|
512
|
+
### Authorization
|
|
513
|
+
|
|
514
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
515
|
+
|
|
516
|
+
### HTTP request headers
|
|
517
|
+
|
|
518
|
+
- **Content-Type**: Not defined
|
|
519
|
+
- **Accept**: application/json
|
|
520
|
+
|
|
521
|
+
|
|
522
|
+
### HTTP response details
|
|
523
|
+
| Status code | Description | Response headers |
|
|
524
|
+
|-------------|-------------|------------------|
|
|
525
|
+
|**200** | Profil public de l\'utilisateur | - |
|
|
526
|
+
|**401** | Non autorisé | - |
|
|
527
|
+
|**500** | Erreur serveur interne | - |
|
|
528
|
+
|
|
529
|
+
[[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)
|
|
530
|
+
|
|
478
531
|
# **getUserBookings**
|
|
479
532
|
> UserBookingsResponse getUserBookings()
|
|
480
533
|
|
package/index.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Pandook API
|
|
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.31
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/package.json
CHANGED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# GetClubSettingsRequest
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**clubId** | **string** | | [default to undefined]
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```typescript
|
|
13
|
-
import { GetClubSettingsRequest } from '@tennac-booking/sdk';
|
|
14
|
-
|
|
15
|
-
const instance: GetClubSettingsRequest = {
|
|
16
|
-
clubId,
|
|
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)
|