@tennac-booking/sdk 1.0.93 → 1.0.94

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/dist/esm/api.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.89
7
+ * The version of the OpenAPI document: 1.0.94
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -7898,33 +7898,6 @@ export const UsersApiAxiosParamCreator = function (configuration) {
7898
7898
  options: localVarRequestOptions,
7899
7899
  };
7900
7900
  }),
7901
- /**
7902
- * Récupère les clubs associés à l\'utilisateur avec ses informations de paiement
7903
- * @param {*} [options] Override http request option.
7904
- * @throws {RequiredError}
7905
- */
7906
- getMyClubMemberships: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
7907
- const localVarPath = `/api/users/me/club-memberships`;
7908
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
7909
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7910
- let baseOptions;
7911
- if (configuration) {
7912
- baseOptions = configuration.baseOptions;
7913
- }
7914
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
7915
- const localVarHeaderParameter = {};
7916
- const localVarQueryParameter = {};
7917
- // authentication bearerAuth required
7918
- // http bearer authentication required
7919
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
7920
- setSearchParams(localVarUrlObj, localVarQueryParameter);
7921
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7922
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7923
- return {
7924
- url: toPathString(localVarUrlObj),
7925
- options: localVarRequestOptions,
7926
- };
7927
- }),
7928
7901
  /**
7929
7902
  *
7930
7903
  * @param {number} [radiusInKm]
@@ -8884,20 +8857,6 @@ export const UsersApiFp = function (configuration) {
8884
8857
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8885
8858
  });
8886
8859
  },
8887
- /**
8888
- * Récupère les clubs associés à l\'utilisateur avec ses informations de paiement
8889
- * @param {*} [options] Override http request option.
8890
- * @throws {RequiredError}
8891
- */
8892
- getMyClubMemberships(options) {
8893
- return __awaiter(this, void 0, void 0, function* () {
8894
- var _a, _b, _c;
8895
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getMyClubMemberships(options);
8896
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8897
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.getMyClubMemberships']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8898
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8899
- });
8900
- },
8901
8860
  /**
8902
8861
  *
8903
8862
  * @param {number} [radiusInKm]
@@ -9376,14 +9335,6 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
9376
9335
  getMe(options) {
9377
9336
  return localVarFp.getMe(options).then((request) => request(axios, basePath));
9378
9337
  },
9379
- /**
9380
- * Récupère les clubs associés à l\'utilisateur avec ses informations de paiement
9381
- * @param {*} [options] Override http request option.
9382
- * @throws {RequiredError}
9383
- */
9384
- getMyClubMemberships(options) {
9385
- return localVarFp.getMyClubMemberships(options).then((request) => request(axios, basePath));
9386
- },
9387
9338
  /**
9388
9339
  *
9389
9340
  * @param {UsersApiGetNearestClubsRequest} requestParameters Request parameters.
@@ -9711,15 +9662,6 @@ export class UsersApi extends BaseAPI {
9711
9662
  getMe(options) {
9712
9663
  return UsersApiFp(this.configuration).getMe(options).then((request) => request(this.axios, this.basePath));
9713
9664
  }
9714
- /**
9715
- * Récupère les clubs associés à l\'utilisateur avec ses informations de paiement
9716
- * @param {*} [options] Override http request option.
9717
- * @throws {RequiredError}
9718
- * @memberof UsersApi
9719
- */
9720
- getMyClubMemberships(options) {
9721
- return UsersApiFp(this.configuration).getMyClubMemberships(options).then((request) => request(this.axios, this.basePath));
9722
- }
9723
9665
  /**
9724
9666
  *
9725
9667
  * @param {UsersApiGetNearestClubsRequest} requestParameters Request parameters.
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.89
5
+ * The version of the OpenAPI document: 1.0.94
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
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.89
7
+ * The version of the OpenAPI document: 1.0.94
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.89
5
+ * The version of the OpenAPI document: 1.0.94
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.89
7
+ * The version of the OpenAPI document: 1.0.94
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.89
5
+ * The version of the OpenAPI document: 1.0.94
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.89
7
+ * The version of the OpenAPI document: 1.0.94
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.89
5
+ * The version of the OpenAPI document: 1.0.94
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.89
7
+ * The version of the OpenAPI document: 1.0.94
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.89
5
+ * The version of the OpenAPI document: 1.0.94
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.89
8
+ * The version of the OpenAPI document: 1.0.94
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -6,7 +6,7 @@
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **slotIds** | **Array<string>** | | [default to undefined]
9
- **players** | **Array<string>** | | [default to undefined]
9
+ **playerShares** | [**Array<PlayerShare>**](PlayerShare.md) | | [optional] [default to undefined]
10
10
 
11
11
  ## Example
12
12
 
@@ -15,7 +15,7 @@ import { BookingPriceBody } from '@tennac-booking/sdk';
15
15
 
16
16
  const instance: BookingPriceBody = {
17
17
  slotIds,
18
- players,
18
+ playerShares,
19
19
  };
20
20
  ```
21
21
 
@@ -15,7 +15,6 @@ Name | Type | Description | Notes
15
15
  **totalPrice** | **number** | | [default to undefined]
16
16
  **slotIds** | **Array<string>** | | [default to undefined]
17
17
  **isPublic** | **boolean** | | [default to undefined]
18
- **requestingUserId** | **string** | | [default to undefined]
19
18
  **creatorPaymentMethodId** | **string** | | [optional] [default to undefined]
20
19
  **paymentMethodSetupCompleted** | **boolean** | | [default to undefined]
21
20
  **noShowChargeAmount** | **number** | | [optional] [default to undefined]
@@ -36,7 +35,6 @@ Name | Type | Description | Notes
36
35
  **bookingStatus** | **string** | | [optional] [default to undefined]
37
36
  **playersName** | **Array<string>** | | [default to undefined]
38
37
  **myAmountToPay** | **number** | | [default to undefined]
39
- **paymentUrl** | **string** | | [optional] [default to undefined]
40
38
  **totalAmount** | **number** | | [default to undefined]
41
39
  **timeBeforeCancel** | **string** | | [optional] [default to undefined]
42
40
  **clubAddress** | [**BookingSummaryClubAddress**](BookingSummaryClubAddress.md) | | [optional] [default to undefined]
@@ -63,7 +61,6 @@ const instance: BookingSummary = {
63
61
  totalPrice,
64
62
  slotIds,
65
63
  isPublic,
66
- requestingUserId,
67
64
  creatorPaymentMethodId,
68
65
  paymentMethodSetupCompleted,
69
66
  noShowChargeAmount,
@@ -84,7 +81,6 @@ const instance: BookingSummary = {
84
81
  bookingStatus,
85
82
  playersName,
86
83
  myAmountToPay,
87
- paymentUrl,
88
84
  totalAmount,
89
85
  timeBeforeCancel,
90
86
  clubAddress,
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **slotIds** | **Array<string>** | ID du créneau à réserver | [default to undefined]
9
9
  **players** | [**Array<PlayerWithPaymentMethod>**](PlayerWithPaymentMethod.md) | Liste des joueurs avec leurs méthodes de paiement | [default to undefined]
10
+ **creatorShare** | **number** | | [optional] [default to undefined]
10
11
  **isCreatorPayingAll** | **boolean** | Indique si le créateur paie pour tous les joueurs | [optional] [default to undefined]
11
12
  **paymentMethod** | [**PaymentMethod**](PaymentMethod.md) | | [optional] [default to undefined]
12
13
  **useDefaultPaymentMethod** | **boolean** | Indique si l\'utilisateur veut utiliser sa méthode de paiement par défaut | [optional] [default to undefined]
@@ -20,6 +21,7 @@ import { CreateBookingRequest } from '@tennac-booking/sdk';
20
21
  const instance: CreateBookingRequest = {
21
22
  slotIds,
22
23
  players,
24
+ creatorShare,
23
25
  isCreatorPayingAll,
24
26
  paymentMethod,
25
27
  useDefaultPaymentMethod,
@@ -1,19 +1,21 @@
1
- # UserClubMembershipsResponse
1
+ # PlayerShare
2
2
 
3
3
 
4
4
  ## Properties
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **clubs** | [**Array<UserClubMembership>**](UserClubMembership.md) | | [default to undefined]
8
+ **playerId** | **string** | | [default to undefined]
9
+ **shares** | **number** | | [default to undefined]
9
10
 
10
11
  ## Example
11
12
 
12
13
  ```typescript
13
- import { UserClubMembershipsResponse } from '@tennac-booking/sdk';
14
+ import { PlayerShare } from '@tennac-booking/sdk';
14
15
 
15
- const instance: UserClubMembershipsResponse = {
16
- clubs,
16
+ const instance: PlayerShare = {
17
+ playerId,
18
+ shares,
17
19
  };
18
20
  ```
19
21
 
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **id** | **string** | ID du joueur | [default to undefined]
9
9
  **paymentMethod** | [**PaymentMethod**](PaymentMethod.md) | | [default to undefined]
10
+ **shares** | **number** | Nombre de parts que le joueur prend (par défaut 1) | [optional] [default to undefined]
10
11
 
11
12
  ## Example
12
13
 
@@ -16,6 +17,7 @@ import { PlayerWithPaymentMethod } from '@tennac-booking/sdk';
16
17
  const instance: PlayerWithPaymentMethod = {
17
18
  id,
18
19
  paymentMethod,
20
+ shares,
19
21
  };
20
22
  ```
21
23
 
package/docs/UsersApi.md CHANGED
@@ -15,7 +15,6 @@ All URIs are relative to *http://localhost*
15
15
  |[**getFrequentlyPlayedWith**](#getfrequentlyplayedwith) | **GET** /api/users/me/frequentlyPlayedWith | |
16
16
  |[**getFrequentlyVisitedClub**](#getfrequentlyvisitedclub) | **GET** /api/users/me/frequentlyVisitedClub | |
17
17
  |[**getMe**](#getme) | **GET** /api/users/me | |
18
- |[**getMyClubMemberships**](#getmyclubmemberships) | **GET** /api/users/me/club-memberships | |
19
18
  |[**getNearestClubs**](#getnearestclubs) | **GET** /api/users/me/nearest-clubs | |
20
19
  |[**getNearestClubsFromCoordinates**](#getnearestclubsfromcoordinates) | **GET** /api/users/nearest-clubs/coordinates | |
21
20
  |[**getNearestUsers**](#getnearestusers) | **GET** /api/users/me/nearest-players | |
@@ -553,51 +552,6 @@ This endpoint does not have any parameters.
553
552
 
554
553
  [[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)
555
554
 
556
- # **getMyClubMemberships**
557
- > UserClubMembershipsResponse getMyClubMemberships()
558
-
559
- Récupère les clubs associés à l\'utilisateur avec ses informations de paiement
560
-
561
- ### Example
562
-
563
- ```typescript
564
- import {
565
- UsersApi,
566
- Configuration
567
- } from '@tennac-booking/sdk';
568
-
569
- const configuration = new Configuration();
570
- const apiInstance = new UsersApi(configuration);
571
-
572
- const { status, data } = await apiInstance.getMyClubMemberships();
573
- ```
574
-
575
- ### Parameters
576
- This endpoint does not have any parameters.
577
-
578
-
579
- ### Return type
580
-
581
- **UserClubMembershipsResponse**
582
-
583
- ### Authorization
584
-
585
- [bearerAuth](../README.md#bearerAuth)
586
-
587
- ### HTTP request headers
588
-
589
- - **Content-Type**: Not defined
590
- - **Accept**: application/json
591
-
592
-
593
- ### HTTP response details
594
- | Status code | Description | Response headers |
595
- |-------------|-------------|------------------|
596
- |**200** | Clubs de l\'utilisateur | - |
597
- |**500** | Server Error | - |
598
-
599
- [[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)
600
-
601
555
  # **getNearestClubs**
602
556
  > Array<{ [key: string]: any; }> getNearestClubs()
603
557
 
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.89
7
+ * The version of the OpenAPI document: 1.0.94
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.93",
3
+ "version": "1.0.94",
4
4
  "description": "OpenAPI client for @tennac-booking/sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {
@@ -1,34 +0,0 @@
1
- # UserClubMembership
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **clubId** | **string** | | [default to undefined]
9
- **clubName** | **string** | | [default to undefined]
10
- **clubPicture** | **string** | | [default to undefined]
11
- **bookingCount** | **number** | | [default to undefined]
12
- **credits** | **number** | | [default to undefined]
13
- **billingPortalUrl** | **string** | | [default to undefined]
14
- **hasActiveSubscription** | **boolean** | | [default to undefined]
15
- **subscriptions** | [**Array&lt;UserClubSubscription&gt;**](UserClubSubscription.md) | | [default to undefined]
16
-
17
- ## Example
18
-
19
- ```typescript
20
- import { UserClubMembership } from '@tennac-booking/sdk';
21
-
22
- const instance: UserClubMembership = {
23
- clubId,
24
- clubName,
25
- clubPicture,
26
- bookingCount,
27
- credits,
28
- billingPortalUrl,
29
- hasActiveSubscription,
30
- subscriptions,
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)