@tennac-booking/sdk 1.0.89 → 1.0.91

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
@@ -7898,6 +7898,33 @@ 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
+ }),
7901
7928
  /**
7902
7929
  *
7903
7930
  * @param {number} [radiusInKm]
@@ -8857,6 +8884,20 @@ export const UsersApiFp = function (configuration) {
8857
8884
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8858
8885
  });
8859
8886
  },
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
+ },
8860
8901
  /**
8861
8902
  *
8862
8903
  * @param {number} [radiusInKm]
@@ -9335,6 +9376,14 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
9335
9376
  getMe(options) {
9336
9377
  return localVarFp.getMe(options).then((request) => request(axios, basePath));
9337
9378
  },
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
+ },
9338
9387
  /**
9339
9388
  *
9340
9389
  * @param {UsersApiGetNearestClubsRequest} requestParameters Request parameters.
@@ -9662,6 +9711,15 @@ export class UsersApi extends BaseAPI {
9662
9711
  getMe(options) {
9663
9712
  return UsersApiFp(this.configuration).getMe(options).then((request) => request(this.axios, this.basePath));
9664
9713
  }
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
+ }
9665
9723
  /**
9666
9724
  *
9667
9725
  * @param {UsersApiGetNearestClubsRequest} requestParameters Request parameters.
@@ -0,0 +1,34 @@
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<UserClubSubscription>**](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)
@@ -0,0 +1,20 @@
1
+ # UserClubMembershipsResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **clubs** | [**Array<UserClubMembership>**](UserClubMembership.md) | | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { UserClubMembershipsResponse } from '@tennac-booking/sdk';
14
+
15
+ const instance: UserClubMembershipsResponse = {
16
+ clubs,
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)
package/docs/UsersApi.md CHANGED
@@ -15,6 +15,7 @@ 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 | |
18
19
  |[**getNearestClubs**](#getnearestclubs) | **GET** /api/users/me/nearest-clubs | |
19
20
  |[**getNearestClubsFromCoordinates**](#getnearestclubsfromcoordinates) | **GET** /api/users/nearest-clubs/coordinates | |
20
21
  |[**getNearestUsers**](#getnearestusers) | **GET** /api/users/me/nearest-players | |
@@ -552,6 +553,51 @@ This endpoint does not have any parameters.
552
553
 
553
554
  [[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)
554
555
 
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
+
555
601
  # **getNearestClubs**
556
602
  > Array<{ [key: string]: any; }> getNearestClubs()
557
603
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tennac-booking/sdk",
3
- "version": "1.0.89",
3
+ "version": "1.0.91",
4
4
  "description": "OpenAPI client for @tennac-booking/sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {