@drxsuperapp/sdk 1.1.9 → 1.1.10

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/api.js CHANGED
@@ -358,6 +358,92 @@ export class ExampleApi extends BaseAPI {
358
358
  return ExampleApiFp(this.configuration).apiExamplesPost(apiExamplesPostRequest, options).then((request) => request(this.axios, this.basePath));
359
359
  }
360
360
  }
361
+ /**
362
+ * HealthCheckApi - axios parameter creator
363
+ * @export
364
+ */
365
+ export const HealthCheckApiAxiosParamCreator = function (configuration) {
366
+ return {
367
+ /**
368
+ *
369
+ * @param {*} [options] Override http request option.
370
+ * @throws {RequiredError}
371
+ */
372
+ apiHealthCheckGet: async (options = {}) => {
373
+ const localVarPath = `/api/healthCheck`;
374
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
375
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
376
+ let baseOptions;
377
+ if (configuration) {
378
+ baseOptions = configuration.baseOptions;
379
+ }
380
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
381
+ const localVarHeaderParameter = {};
382
+ const localVarQueryParameter = {};
383
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
384
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
385
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
386
+ return {
387
+ url: toPathString(localVarUrlObj),
388
+ options: localVarRequestOptions,
389
+ };
390
+ },
391
+ };
392
+ };
393
+ /**
394
+ * HealthCheckApi - functional programming interface
395
+ * @export
396
+ */
397
+ export const HealthCheckApiFp = function (configuration) {
398
+ const localVarAxiosParamCreator = HealthCheckApiAxiosParamCreator(configuration);
399
+ return {
400
+ /**
401
+ *
402
+ * @param {*} [options] Override http request option.
403
+ * @throws {RequiredError}
404
+ */
405
+ async apiHealthCheckGet(options) {
406
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiHealthCheckGet(options);
407
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
408
+ const localVarOperationServerBasePath = operationServerMap['HealthCheckApi.apiHealthCheckGet']?.[localVarOperationServerIndex]?.url;
409
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
410
+ },
411
+ };
412
+ };
413
+ /**
414
+ * HealthCheckApi - factory interface
415
+ * @export
416
+ */
417
+ export const HealthCheckApiFactory = function (configuration, basePath, axios) {
418
+ const localVarFp = HealthCheckApiFp(configuration);
419
+ return {
420
+ /**
421
+ *
422
+ * @param {*} [options] Override http request option.
423
+ * @throws {RequiredError}
424
+ */
425
+ apiHealthCheckGet(options) {
426
+ return localVarFp.apiHealthCheckGet(options).then((request) => request(axios, basePath));
427
+ },
428
+ };
429
+ };
430
+ /**
431
+ * HealthCheckApi - object-oriented interface
432
+ * @export
433
+ * @class HealthCheckApi
434
+ * @extends {BaseAPI}
435
+ */
436
+ export class HealthCheckApi extends BaseAPI {
437
+ /**
438
+ *
439
+ * @param {*} [options] Override http request option.
440
+ * @throws {RequiredError}
441
+ * @memberof HealthCheckApi
442
+ */
443
+ apiHealthCheckGet(options) {
444
+ return HealthCheckApiFp(this.configuration).apiHealthCheckGet(options).then((request) => request(this.axios, this.basePath));
445
+ }
446
+ }
361
447
  /**
362
448
  * NewsApi - axios parameter creator
363
449
  * @export
@@ -0,0 +1,26 @@
1
+ # ApiHealthCheckGet200Response
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **success** | **boolean** | | [default to undefined]
9
+ **message** | **string** | | [default to undefined]
10
+ **responseObject** | **any** | | [optional] [default to undefined]
11
+ **statusCode** | **number** | | [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { ApiHealthCheckGet200Response } from './api';
17
+
18
+ const instance: ApiHealthCheckGet200Response = {
19
+ success,
20
+ message,
21
+ responseObject,
22
+ statusCode,
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)
@@ -17,6 +17,7 @@ Name | Type | Description | Notes
17
17
  **createdAt** | **string** | | [default to undefined]
18
18
  **updatedAt** | **string** | | [default to undefined]
19
19
  **leagues** | [**Array<ApiNewsIdGet200ResponseResponseObjectLeaguesInner>**](ApiNewsIdGet200ResponseResponseObjectLeaguesInner.md) | | [default to undefined]
20
+ **relatedNews** | [**Array<ApiNewsGet200ResponseResponseObjectItemsInner>**](ApiNewsGet200ResponseResponseObjectItemsInner.md) | | [default to undefined]
20
21
 
21
22
  ## Example
22
23
 
@@ -36,6 +37,7 @@ const instance: ApiNewsIdGet200ResponseResponseObject = {
36
37
  createdAt,
37
38
  updatedAt,
38
39
  leagues,
40
+ relatedNews,
39
41
  };
40
42
  ```
41
43
 
@@ -0,0 +1,48 @@
1
+ # ApiPadelMatchesGet200Response
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **number** | | [default to undefined]
9
+ **tournamentId** | **number** | | [default to undefined]
10
+ **name** | **string** | | [default to undefined]
11
+ **round** | **number** | | [default to undefined]
12
+ **score** | [**Array<ApiPadelMatchesGet200ResponseScoreInner>**](ApiPadelMatchesGet200ResponseScoreInner.md) | | [default to undefined]
13
+ **players** | [**ApiPadelMatchesGet200ResponsePlayers**](ApiPadelMatchesGet200ResponsePlayers.md) | | [default to undefined]
14
+ **playedAt** | **string** | | [default to undefined]
15
+ **status** | **string** | | [default to undefined]
16
+ **category** | **string** | | [default to undefined]
17
+ **duration** | **string** | | [default to undefined]
18
+ **court** | **string** | | [default to undefined]
19
+ **stats** | [**ApiPadelMatchesGet200ResponseStats**](ApiPadelMatchesGet200ResponseStats.md) | | [default to undefined]
20
+ **sets** | [**ApiPadelMatchesGet200ResponseSets**](ApiPadelMatchesGet200ResponseSets.md) | | [default to undefined]
21
+ **createdAt** | **string** | | [default to undefined]
22
+ **updatedAt** | **string** | | [default to undefined]
23
+
24
+ ## Example
25
+
26
+ ```typescript
27
+ import { ApiPadelMatchesGet200Response } from './api';
28
+
29
+ const instance: ApiPadelMatchesGet200Response = {
30
+ id,
31
+ tournamentId,
32
+ name,
33
+ round,
34
+ score,
35
+ players,
36
+ playedAt,
37
+ status,
38
+ category,
39
+ duration,
40
+ court,
41
+ stats,
42
+ sets,
43
+ createdAt,
44
+ updatedAt,
45
+ };
46
+ ```
47
+
48
+ [[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,22 @@
1
+ # ApiPadelMatchesGet200ResponsePlayers
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **team_1** | [**Array<ApiPadelMatchesGet200ResponsePlayersTeam1Inner>**](ApiPadelMatchesGet200ResponsePlayersTeam1Inner.md) | | [default to undefined]
9
+ **team_2** | [**Array<ApiPadelMatchesGet200ResponsePlayersTeam1Inner>**](ApiPadelMatchesGet200ResponsePlayersTeam1Inner.md) | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { ApiPadelMatchesGet200ResponsePlayers } from './api';
15
+
16
+ const instance: ApiPadelMatchesGet200ResponsePlayers = {
17
+ team_1,
18
+ team_2,
19
+ };
20
+ ```
21
+
22
+ [[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
+ # ApiPadelMatchesGet200ResponsePlayersTeam1Inner
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **number** | | [default to undefined]
9
+ **name** | **string** | | [default to undefined]
10
+ **self** | **string** | | [default to undefined]
11
+ **side** | **string** | | [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { ApiPadelMatchesGet200ResponsePlayersTeam1Inner } from './api';
17
+
18
+ const instance: ApiPadelMatchesGet200ResponsePlayersTeam1Inner = {
19
+ id,
20
+ name,
21
+ self,
22
+ side,
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,22 @@
1
+ # ApiPadelMatchesGet200ResponseScoreInner
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **team_1** | **number** | | [default to undefined]
9
+ **team_2** | **number** | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { ApiPadelMatchesGet200ResponseScoreInner } from './api';
15
+
16
+ const instance: ApiPadelMatchesGet200ResponseScoreInner = {
17
+ team_1,
18
+ team_2,
19
+ };
20
+ ```
21
+
22
+ [[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
+ # ApiPadelMatchesGet200ResponseSets
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **number** | | [default to undefined]
9
+ **self** | **string** | | [default to undefined]
10
+ **sets** | [**Array<ApiPadelMatchesGet200ResponseSetsSetsInner>**](ApiPadelMatchesGet200ResponseSetsSetsInner.md) | | [default to undefined]
11
+ **connections** | [**ApiPadelMatchesGet200ResponseStatsConnections**](ApiPadelMatchesGet200ResponseStatsConnections.md) | | [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { ApiPadelMatchesGet200ResponseSets } from './api';
17
+
18
+ const instance: ApiPadelMatchesGet200ResponseSets = {
19
+ id,
20
+ self,
21
+ sets,
22
+ connections,
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,22 @@
1
+ # ApiPadelMatchesGet200ResponseSetsSetsInner
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **games** | [**Array<ApiPadelMatchesGet200ResponseSetsSetsInnerGamesInner>**](ApiPadelMatchesGet200ResponseSetsSetsInnerGamesInner.md) | | [default to undefined]
9
+ **set_number** | **number** | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { ApiPadelMatchesGet200ResponseSetsSetsInner } from './api';
15
+
16
+ const instance: ApiPadelMatchesGet200ResponseSetsSetsInner = {
17
+ games,
18
+ set_number,
19
+ };
20
+ ```
21
+
22
+ [[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,24 @@
1
+ # ApiPadelMatchesGet200ResponseSetsSetsInnerGamesInner
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **points** | **Array<string>** | | [default to undefined]
9
+ **game_score** | **string** | | [default to undefined]
10
+ **game_number** | **number** | | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { ApiPadelMatchesGet200ResponseSetsSetsInnerGamesInner } from './api';
16
+
17
+ const instance: ApiPadelMatchesGet200ResponseSetsSetsInnerGamesInner = {
18
+ points,
19
+ game_score,
20
+ game_number,
21
+ };
22
+ ```
23
+
24
+ [[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,32 @@
1
+ # ApiPadelMatchesGet200ResponseStats
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **number** | | [default to undefined]
9
+ **self** | **string** | | [default to undefined]
10
+ **match** | [**{ [key: string]: ApiPadelMatchesGet200ResponseStatsMatchValue; }**](ApiPadelMatchesGet200ResponseStatsMatchValue.md) | | [default to undefined]
11
+ **set_1** | [**{ [key: string]: ApiPadelMatchesGet200ResponseStatsMatchValue; }**](ApiPadelMatchesGet200ResponseStatsMatchValue.md) | | [default to undefined]
12
+ **set_2** | [**{ [key: string]: ApiPadelMatchesGet200ResponseStatsMatchValue; }**](ApiPadelMatchesGet200ResponseStatsMatchValue.md) | | [default to undefined]
13
+ **set_3** | [**{ [key: string]: ApiPadelMatchesGet200ResponseStatsMatchValue; }**](ApiPadelMatchesGet200ResponseStatsMatchValue.md) | | [optional] [default to undefined]
14
+ **connections** | [**ApiPadelMatchesGet200ResponseStatsConnections**](ApiPadelMatchesGet200ResponseStatsConnections.md) | | [default to undefined]
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import { ApiPadelMatchesGet200ResponseStats } from './api';
20
+
21
+ const instance: ApiPadelMatchesGet200ResponseStats = {
22
+ id,
23
+ self,
24
+ match,
25
+ set_1,
26
+ set_2,
27
+ set_3,
28
+ connections,
29
+ };
30
+ ```
31
+
32
+ [[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
+ # ApiPadelMatchesGet200ResponseStatsConnections
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **match** | **string** | | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { ApiPadelMatchesGet200ResponseStatsConnections } from './api';
14
+
15
+ const instance: ApiPadelMatchesGet200ResponseStatsConnections = {
16
+ match,
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,22 @@
1
+ # ApiPadelMatchesGet200ResponseStatsMatchValue
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **team_1** | **string** | | [default to undefined]
9
+ **team_2** | **string** | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { ApiPadelMatchesGet200ResponseStatsMatchValue } from './api';
15
+
16
+ const instance: ApiPadelMatchesGet200ResponseStatsMatchValue = {
17
+ team_1,
18
+ team_2,
19
+ };
20
+ ```
21
+
22
+ [[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,51 @@
1
+ # HealthCheckApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**apiHealthCheckGet**](#apihealthcheckget) | **GET** /api/healthCheck | |
8
+
9
+ # **apiHealthCheckGet**
10
+ > ApiHealthCheckGet200Response apiHealthCheckGet()
11
+
12
+
13
+ ### Example
14
+
15
+ ```typescript
16
+ import {
17
+ HealthCheckApi,
18
+ Configuration
19
+ } from './api';
20
+
21
+ const configuration = new Configuration();
22
+ const apiInstance = new HealthCheckApi(configuration);
23
+
24
+ const { status, data } = await apiInstance.apiHealthCheckGet();
25
+ ```
26
+
27
+ ### Parameters
28
+ This endpoint does not have any parameters.
29
+
30
+
31
+ ### Return type
32
+
33
+ **ApiHealthCheckGet200Response**
34
+
35
+ ### Authorization
36
+
37
+ No authorization required
38
+
39
+ ### HTTP request headers
40
+
41
+ - **Content-Type**: Not defined
42
+ - **Accept**: application/json
43
+
44
+
45
+ ### HTTP response details
46
+ | Status code | Description | Response headers |
47
+ |-------------|-------------|------------------|
48
+ |**200** | success | - |
49
+
50
+ [[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)
51
+
package/docs/PadelApi.md CHANGED
@@ -7,7 +7,7 @@ All URIs are relative to *http://localhost*
7
7
  |[**apiPadelMatchesGet**](#apipadelmatchesget) | **GET** /api/padel/matches | |
8
8
 
9
9
  # **apiPadelMatchesGet**
10
- > Array<ApiPadelMatchesGet200ResponseInner> apiPadelMatchesGet()
10
+ > ApiPadelMatchesGet200Response apiPadelMatchesGet()
11
11
 
12
12
 
13
13
  ### Example
@@ -30,7 +30,7 @@ This endpoint does not have any parameters.
30
30
 
31
31
  ### Return type
32
32
 
33
- **Array<ApiPadelMatchesGet200ResponseInner>**
33
+ **ApiPadelMatchesGet200Response**
34
34
 
35
35
  ### Authorization
36
36
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drxsuperapp/sdk",
3
- "version": "1.1.9",
3
+ "version": "1.1.10",
4
4
  "main": "index.ts",
5
5
  "types": "index.ts",
6
6
  "scripts": {