@tennac-booking/sdk 1.0.72 → 1.0.73

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
@@ -6481,6 +6481,95 @@ export class SportsManagerApi extends BaseAPI {
6481
6481
  return SportsManagerApiFp(this.configuration).updateSport(requestParameters.id, requestParameters.updateSportRequest, options).then((request) => request(this.axios, this.basePath));
6482
6482
  }
6483
6483
  }
6484
+ /**
6485
+ * SportsPublicApi - axios parameter creator
6486
+ * @export
6487
+ */
6488
+ export const SportsPublicApiAxiosParamCreator = function (configuration) {
6489
+ return {
6490
+ /**
6491
+ * Récupère tous les sports vérifiés, accessibles publiquement
6492
+ * @param {*} [options] Override http request option.
6493
+ * @throws {RequiredError}
6494
+ */
6495
+ getVerifiedSports: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
6496
+ const localVarPath = `/api/sports/verified`;
6497
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6498
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6499
+ let baseOptions;
6500
+ if (configuration) {
6501
+ baseOptions = configuration.baseOptions;
6502
+ }
6503
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6504
+ const localVarHeaderParameter = {};
6505
+ const localVarQueryParameter = {};
6506
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6507
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6508
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6509
+ return {
6510
+ url: toPathString(localVarUrlObj),
6511
+ options: localVarRequestOptions,
6512
+ };
6513
+ }),
6514
+ };
6515
+ };
6516
+ /**
6517
+ * SportsPublicApi - functional programming interface
6518
+ * @export
6519
+ */
6520
+ export const SportsPublicApiFp = function (configuration) {
6521
+ const localVarAxiosParamCreator = SportsPublicApiAxiosParamCreator(configuration);
6522
+ return {
6523
+ /**
6524
+ * Récupère tous les sports vérifiés, accessibles publiquement
6525
+ * @param {*} [options] Override http request option.
6526
+ * @throws {RequiredError}
6527
+ */
6528
+ getVerifiedSports(options) {
6529
+ return __awaiter(this, void 0, void 0, function* () {
6530
+ var _a, _b, _c;
6531
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getVerifiedSports(options);
6532
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6533
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SportsPublicApi.getVerifiedSports']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6534
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6535
+ });
6536
+ },
6537
+ };
6538
+ };
6539
+ /**
6540
+ * SportsPublicApi - factory interface
6541
+ * @export
6542
+ */
6543
+ export const SportsPublicApiFactory = function (configuration, basePath, axios) {
6544
+ const localVarFp = SportsPublicApiFp(configuration);
6545
+ return {
6546
+ /**
6547
+ * Récupère tous les sports vérifiés, accessibles publiquement
6548
+ * @param {*} [options] Override http request option.
6549
+ * @throws {RequiredError}
6550
+ */
6551
+ getVerifiedSports(options) {
6552
+ return localVarFp.getVerifiedSports(options).then((request) => request(axios, basePath));
6553
+ },
6554
+ };
6555
+ };
6556
+ /**
6557
+ * SportsPublicApi - object-oriented interface
6558
+ * @export
6559
+ * @class SportsPublicApi
6560
+ * @extends {BaseAPI}
6561
+ */
6562
+ export class SportsPublicApi extends BaseAPI {
6563
+ /**
6564
+ * Récupère tous les sports vérifiés, accessibles publiquement
6565
+ * @param {*} [options] Override http request option.
6566
+ * @throws {RequiredError}
6567
+ * @memberof SportsPublicApi
6568
+ */
6569
+ getVerifiedSports(options) {
6570
+ return SportsPublicApiFp(this.configuration).getVerifiedSports(options).then((request) => request(this.axios, this.basePath));
6571
+ }
6572
+ }
6484
6573
  /**
6485
6574
  * SportsStaffApi - axios parameter creator
6486
6575
  * @export
@@ -0,0 +1,53 @@
1
+ # SportsPublicApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**getVerifiedSports**](#getverifiedsports) | **GET** /api/sports/verified | |
8
+
9
+ # **getVerifiedSports**
10
+ > Array<SportResponse> getVerifiedSports()
11
+
12
+ Récupère tous les sports vérifiés, accessibles publiquement
13
+
14
+ ### Example
15
+
16
+ ```typescript
17
+ import {
18
+ SportsPublicApi,
19
+ Configuration
20
+ } from '@tennac-booking/sdk';
21
+
22
+ const configuration = new Configuration();
23
+ const apiInstance = new SportsPublicApi(configuration);
24
+
25
+ const { status, data } = await apiInstance.getVerifiedSports();
26
+ ```
27
+
28
+ ### Parameters
29
+ This endpoint does not have any parameters.
30
+
31
+
32
+ ### Return type
33
+
34
+ **Array<SportResponse>**
35
+
36
+ ### Authorization
37
+
38
+ No authorization required
39
+
40
+ ### HTTP request headers
41
+
42
+ - **Content-Type**: Not defined
43
+ - **Accept**: application/json
44
+
45
+
46
+ ### HTTP response details
47
+ | Status code | Description | Response headers |
48
+ |-------------|-------------|------------------|
49
+ |**200** | Sports vérifiés | - |
50
+ |**500** | Server Error | - |
51
+
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
+
@@ -43,6 +43,7 @@ Name | Type | Description | Notes
43
43
  **frequentlyVisitedClubs** | [**Array&lt;ClubSummary&gt;**](ClubSummary.md) | | [optional] [default to undefined]
44
44
  **frequentlyPlayedWith** | [**Array&lt;PlayerSummary&gt;**](PlayerSummary.md) | | [optional] [default to undefined]
45
45
  **stripeLinks** | **{ [key: string]: any; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
46
+ **verifiedSports** | [**Array&lt;SportResponse&gt;**](SportResponse.md) | | [optional] [default to undefined]
46
47
 
47
48
  ## Example
48
49
 
@@ -88,6 +89,7 @@ const instance: UserProfileResponse = {
88
89
  frequentlyVisitedClubs,
89
90
  frequentlyPlayedWith,
90
91
  stripeLinks,
92
+ verifiedSports,
91
93
  };
92
94
  ```
93
95
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tennac-booking/sdk",
3
- "version": "1.0.72",
3
+ "version": "1.0.73",
4
4
  "description": "OpenAPI client for @tennac-booking/sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {