@drxsuperapp/sdk 1.1.354 → 1.1.356
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 +3 -0
- package/apis/UploadApi.ts +100 -0
- package/apis/index.ts +1 -0
- package/deploy.log +20 -9
- package/dist/apis/UploadApi.d.ts +29 -0
- package/dist/apis/UploadApi.js +73 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/ApiUploadPost200Response.d.ts +51 -0
- package/dist/models/ApiUploadPost200Response.js +54 -0
- package/dist/models/ApiUploadPost200ResponseResponseObject.d.ts +32 -0
- package/dist/models/ApiUploadPost200ResponseResponseObject.js +43 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/models/ApiUploadPost200Response.ts +100 -0
- package/models/ApiUploadPost200ResponseResponseObject.ts +66 -0
- package/models/index.ts +2 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -12,6 +12,7 @@ apis/RedemptionApi.ts
|
|
|
12
12
|
apis/RewardManagementApi.ts
|
|
13
13
|
apis/TennisSportsApi.ts
|
|
14
14
|
apis/TournamentManagementApi.ts
|
|
15
|
+
apis/UploadApi.ts
|
|
15
16
|
apis/UserAffiliateApi.ts
|
|
16
17
|
apis/UserManagementApi.ts
|
|
17
18
|
apis/UserNotificationsApi.ts
|
|
@@ -217,6 +218,8 @@ models/ApiTournamentPadelPostRequestBody.ts
|
|
|
217
218
|
models/ApiTournamentPadelPostRequestBodyPlayersInner.ts
|
|
218
219
|
models/ApiTournamentPadelPostRequestBodyTeamsInner.ts
|
|
219
220
|
models/ApiTournamentSeedGameTypesGet200Response.ts
|
|
221
|
+
models/ApiUploadPost200Response.ts
|
|
222
|
+
models/ApiUploadPost200ResponseResponseObject.ts
|
|
220
223
|
models/ApiUserAffiliateGet200Response.ts
|
|
221
224
|
models/ApiUserAffiliateGet200ResponseResponseObject.ts
|
|
222
225
|
models/ApiUserAffiliateGet200ResponseResponseObjectStatistics.ts
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* DRX API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
ApiUploadPost200Response,
|
|
19
|
+
} from '../models/index';
|
|
20
|
+
import {
|
|
21
|
+
ApiUploadPost200ResponseFromJSON,
|
|
22
|
+
ApiUploadPost200ResponseToJSON,
|
|
23
|
+
} from '../models/index';
|
|
24
|
+
|
|
25
|
+
export interface ApiUploadPostRequest {
|
|
26
|
+
file: Blob;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
*/
|
|
32
|
+
export class UploadApi extends runtime.BaseAPI {
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Upload File
|
|
36
|
+
*/
|
|
37
|
+
async apiUploadPostRaw(requestParameters: ApiUploadPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiUploadPost200Response>> {
|
|
38
|
+
if (requestParameters['file'] == null) {
|
|
39
|
+
throw new runtime.RequiredError(
|
|
40
|
+
'file',
|
|
41
|
+
'Required parameter "file" was null or undefined when calling apiUploadPost().'
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
const queryParameters: any = {};
|
|
46
|
+
|
|
47
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
48
|
+
|
|
49
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
50
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
54
|
+
const token = this.configuration.accessToken;
|
|
55
|
+
const tokenString = await token("BearerAuth", []);
|
|
56
|
+
|
|
57
|
+
if (tokenString) {
|
|
58
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
const consumes: runtime.Consume[] = [
|
|
62
|
+
{ contentType: 'multipart/form-data' },
|
|
63
|
+
];
|
|
64
|
+
// @ts-ignore: canConsumeForm may be unused
|
|
65
|
+
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
66
|
+
|
|
67
|
+
let formParams: { append(param: string, value: any): any };
|
|
68
|
+
let useForm = false;
|
|
69
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
70
|
+
useForm = canConsumeForm;
|
|
71
|
+
if (useForm) {
|
|
72
|
+
formParams = new FormData();
|
|
73
|
+
} else {
|
|
74
|
+
formParams = new URLSearchParams();
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
if (requestParameters['file'] != null) {
|
|
78
|
+
formParams.append('file', requestParameters['file'] as any);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
const response = await this.request({
|
|
82
|
+
path: `/api/upload`,
|
|
83
|
+
method: 'POST',
|
|
84
|
+
headers: headerParameters,
|
|
85
|
+
query: queryParameters,
|
|
86
|
+
body: formParams,
|
|
87
|
+
}, initOverrides);
|
|
88
|
+
|
|
89
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiUploadPost200ResponseFromJSON(jsonValue));
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Upload File
|
|
94
|
+
*/
|
|
95
|
+
async apiUploadPost(requestParameters: ApiUploadPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiUploadPost200Response> {
|
|
96
|
+
const response = await this.apiUploadPostRaw(requestParameters, initOverrides);
|
|
97
|
+
return await response.value();
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
}
|
package/apis/index.ts
CHANGED
|
@@ -14,6 +14,7 @@ export * from './RedemptionApi';
|
|
|
14
14
|
export * from './RewardManagementApi';
|
|
15
15
|
export * from './TennisSportsApi';
|
|
16
16
|
export * from './TournamentManagementApi';
|
|
17
|
+
export * from './UploadApi';
|
|
17
18
|
export * from './UserAffiliateApi';
|
|
18
19
|
export * from './UserManagementApi';
|
|
19
20
|
export * from './UserNotificationsApi';
|
package/deploy.log
CHANGED
|
@@ -277,8 +277,12 @@
|
|
|
277
277
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_web3_redemption__id__get_200_response_responseObject_reward. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_web3_redemption__id__get_200_response_responseObject_reward=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_web3_redemption__id__get_200_response_responseObject_reward=NewModel,ModelA=NewModelA in CLI).
|
|
278
278
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_web3_redemption__id__get_200_response_responseObject. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_web3_redemption__id__get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_web3_redemption__id__get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
|
|
279
279
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_web3_redemption__id__get_200_response. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_web3_redemption__id__get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_web3_redemption__id__get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
280
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_upload_post_request. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_upload_post_request=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_upload_post_request=NewModel,ModelA=NewModelA in CLI).
|
|
281
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_upload_post_200_response_responseObject. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_upload_post_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_upload_post_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
|
|
282
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_upload_post_200_response. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_upload_post_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_upload_post_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
280
283
|
[main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
|
|
281
284
|
[main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
|
|
285
|
+
[main] INFO o.o.codegen.DefaultGenerator - Model _api_upload_post_request not generated since it's marked as unused (due to form parameters) and `skipFormModel` (global property) set to true (default)
|
|
282
286
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAdminAppConfigsGet200Response.ts
|
|
283
287
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAdminAppConfigsGet200ResponseResponseObject.ts
|
|
284
288
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAdminAppConfigsGet200ResponseResponseObjectItemsInnerInner.ts
|
|
@@ -476,6 +480,8 @@
|
|
|
476
480
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiTournamentPadelPostRequestBodyPlayersInner.ts
|
|
477
481
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiTournamentPadelPostRequestBodyTeamsInner.ts
|
|
478
482
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiTournamentSeedGameTypesGet200Response.ts
|
|
483
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiUploadPost200Response.ts
|
|
484
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiUploadPost200ResponseResponseObject.ts
|
|
479
485
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiUserAffiliateGet200Response.ts
|
|
480
486
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiUserAffiliateGet200ResponseResponseObject.ts
|
|
481
487
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiUserAffiliateGet200ResponseResponseObjectStatistics.ts
|
|
@@ -659,6 +665,7 @@
|
|
|
659
665
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/web3/redemption/{id}. Renamed to auto-generated operationId: apiWeb3RedemptionIdGet
|
|
660
666
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/public/web3/reward/{id}. Renamed to auto-generated operationId: apiPublicWeb3RewardIdGet
|
|
661
667
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/public/web3/reward. Renamed to auto-generated operationId: apiPublicWeb3RewardGet
|
|
668
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/upload. Renamed to auto-generated operationId: apiUploadPost
|
|
662
669
|
[main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
|
|
663
670
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/AppConfigurationApi.ts
|
|
664
671
|
[main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
|
|
@@ -688,6 +695,8 @@
|
|
|
688
695
|
[main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
|
|
689
696
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/TournamentManagementApi.ts
|
|
690
697
|
[main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
|
|
698
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/UploadApi.ts
|
|
699
|
+
[main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
|
|
691
700
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/UserAffiliateApi.ts
|
|
692
701
|
[main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
|
|
693
702
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/UserManagementApi.ts
|
|
@@ -713,21 +722,23 @@
|
|
|
713
722
|
# https://opencollective.com/openapi_generator/donate #
|
|
714
723
|
################################################################################
|
|
715
724
|
✅ SDK generated
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
725
|
+
[master a475983] VPS: Generated API SDK
|
|
726
|
+
6 files changed, 272 insertions(+)
|
|
727
|
+
create mode 100644 apis/UploadApi.ts
|
|
728
|
+
create mode 100644 models/ApiUploadPost200Response.ts
|
|
729
|
+
create mode 100644 models/ApiUploadPost200ResponseResponseObject.ts
|
|
730
|
+
To https://gitlab.com/drx-super/drx-sdk.git
|
|
731
|
+
b20b17f..a475983 master -> master
|
|
721
732
|
✅ Changes committed and pushed
|
|
722
|
-
v1.1.
|
|
733
|
+
v1.1.356
|
|
723
734
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
724
|
-
|
|
735
|
+
a475983..54ac6a4 master -> master
|
|
725
736
|
✅ Version bumped
|
|
726
737
|
|
|
727
|
-
> @drxsuperapp/sdk@1.1.
|
|
738
|
+
> @drxsuperapp/sdk@1.1.356 prepublishOnly
|
|
728
739
|
> npm run build
|
|
729
740
|
|
|
730
741
|
|
|
731
|
-
> @drxsuperapp/sdk@1.1.
|
|
742
|
+
> @drxsuperapp/sdk@1.1.356 build
|
|
732
743
|
> tsc
|
|
733
744
|
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DRX API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { ApiUploadPost200Response } from '../models/index';
|
|
14
|
+
export interface ApiUploadPostRequest {
|
|
15
|
+
file: Blob;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
export declare class UploadApi extends runtime.BaseAPI {
|
|
21
|
+
/**
|
|
22
|
+
* Upload File
|
|
23
|
+
*/
|
|
24
|
+
apiUploadPostRaw(requestParameters: ApiUploadPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiUploadPost200Response>>;
|
|
25
|
+
/**
|
|
26
|
+
* Upload File
|
|
27
|
+
*/
|
|
28
|
+
apiUploadPost(requestParameters: ApiUploadPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiUploadPost200Response>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* DRX API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import * as runtime from '../runtime';
|
|
15
|
+
import { ApiUploadPost200ResponseFromJSON, } from '../models/index';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export class UploadApi extends runtime.BaseAPI {
|
|
20
|
+
/**
|
|
21
|
+
* Upload File
|
|
22
|
+
*/
|
|
23
|
+
async apiUploadPostRaw(requestParameters, initOverrides) {
|
|
24
|
+
if (requestParameters['file'] == null) {
|
|
25
|
+
throw new runtime.RequiredError('file', 'Required parameter "file" was null or undefined when calling apiUploadPost().');
|
|
26
|
+
}
|
|
27
|
+
const queryParameters = {};
|
|
28
|
+
const headerParameters = {};
|
|
29
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
30
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
31
|
+
}
|
|
32
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
33
|
+
const token = this.configuration.accessToken;
|
|
34
|
+
const tokenString = await token("BearerAuth", []);
|
|
35
|
+
if (tokenString) {
|
|
36
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
const consumes = [
|
|
40
|
+
{ contentType: 'multipart/form-data' },
|
|
41
|
+
];
|
|
42
|
+
// @ts-ignore: canConsumeForm may be unused
|
|
43
|
+
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
44
|
+
let formParams;
|
|
45
|
+
let useForm = false;
|
|
46
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
47
|
+
useForm = canConsumeForm;
|
|
48
|
+
if (useForm) {
|
|
49
|
+
formParams = new FormData();
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
formParams = new URLSearchParams();
|
|
53
|
+
}
|
|
54
|
+
if (requestParameters['file'] != null) {
|
|
55
|
+
formParams.append('file', requestParameters['file']);
|
|
56
|
+
}
|
|
57
|
+
const response = await this.request({
|
|
58
|
+
path: `/api/upload`,
|
|
59
|
+
method: 'POST',
|
|
60
|
+
headers: headerParameters,
|
|
61
|
+
query: queryParameters,
|
|
62
|
+
body: formParams,
|
|
63
|
+
}, initOverrides);
|
|
64
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiUploadPost200ResponseFromJSON(jsonValue));
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Upload File
|
|
68
|
+
*/
|
|
69
|
+
async apiUploadPost(requestParameters, initOverrides) {
|
|
70
|
+
const response = await this.apiUploadPostRaw(requestParameters, initOverrides);
|
|
71
|
+
return await response.value();
|
|
72
|
+
}
|
|
73
|
+
}
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export * from './RedemptionApi';
|
|
|
12
12
|
export * from './RewardManagementApi';
|
|
13
13
|
export * from './TennisSportsApi';
|
|
14
14
|
export * from './TournamentManagementApi';
|
|
15
|
+
export * from './UploadApi';
|
|
15
16
|
export * from './UserAffiliateApi';
|
|
16
17
|
export * from './UserManagementApi';
|
|
17
18
|
export * from './UserNotificationsApi';
|
package/dist/apis/index.js
CHANGED
|
@@ -14,6 +14,7 @@ export * from './RedemptionApi';
|
|
|
14
14
|
export * from './RewardManagementApi';
|
|
15
15
|
export * from './TennisSportsApi';
|
|
16
16
|
export * from './TournamentManagementApi';
|
|
17
|
+
export * from './UploadApi';
|
|
17
18
|
export * from './UserAffiliateApi';
|
|
18
19
|
export * from './UserManagementApi';
|
|
19
20
|
export * from './UserNotificationsApi';
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DRX API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ApiUploadPost200ResponseResponseObject } from './ApiUploadPost200ResponseResponseObject';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiUploadPost200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiUploadPost200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof ApiUploadPost200Response
|
|
23
|
+
*/
|
|
24
|
+
success: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ApiUploadPost200Response
|
|
29
|
+
*/
|
|
30
|
+
message: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {ApiUploadPost200ResponseResponseObject}
|
|
34
|
+
* @memberof ApiUploadPost200Response
|
|
35
|
+
*/
|
|
36
|
+
responseObject?: ApiUploadPost200ResponseResponseObject;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ApiUploadPost200Response
|
|
41
|
+
*/
|
|
42
|
+
statusCode: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ApiUploadPost200Response interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfApiUploadPost200Response(value: object): value is ApiUploadPost200Response;
|
|
48
|
+
export declare function ApiUploadPost200ResponseFromJSON(json: any): ApiUploadPost200Response;
|
|
49
|
+
export declare function ApiUploadPost200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUploadPost200Response;
|
|
50
|
+
export declare function ApiUploadPost200ResponseToJSON(json: any): ApiUploadPost200Response;
|
|
51
|
+
export declare function ApiUploadPost200ResponseToJSONTyped(value?: ApiUploadPost200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* DRX API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { ApiUploadPost200ResponseResponseObjectFromJSON, ApiUploadPost200ResponseResponseObjectToJSON, } from './ApiUploadPost200ResponseResponseObject';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ApiUploadPost200Response interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfApiUploadPost200Response(value) {
|
|
19
|
+
if (!('success' in value) || value['success'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('statusCode' in value) || value['statusCode'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
export function ApiUploadPost200ResponseFromJSON(json) {
|
|
28
|
+
return ApiUploadPost200ResponseFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function ApiUploadPost200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'success': json['success'],
|
|
36
|
+
'message': json['message'],
|
|
37
|
+
'responseObject': json['responseObject'] == null ? undefined : ApiUploadPost200ResponseResponseObjectFromJSON(json['responseObject']),
|
|
38
|
+
'statusCode': json['statusCode'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export function ApiUploadPost200ResponseToJSON(json) {
|
|
42
|
+
return ApiUploadPost200ResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
export function ApiUploadPost200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'success': value['success'],
|
|
50
|
+
'message': value['message'],
|
|
51
|
+
'responseObject': ApiUploadPost200ResponseResponseObjectToJSON(value['responseObject']),
|
|
52
|
+
'statusCode': value['statusCode'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DRX API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ApiUploadPost200ResponseResponseObject
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiUploadPost200ResponseResponseObject {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApiUploadPost200ResponseResponseObject
|
|
22
|
+
*/
|
|
23
|
+
file_url: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the ApiUploadPost200ResponseResponseObject interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfApiUploadPost200ResponseResponseObject(value: object): value is ApiUploadPost200ResponseResponseObject;
|
|
29
|
+
export declare function ApiUploadPost200ResponseResponseObjectFromJSON(json: any): ApiUploadPost200ResponseResponseObject;
|
|
30
|
+
export declare function ApiUploadPost200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUploadPost200ResponseResponseObject;
|
|
31
|
+
export declare function ApiUploadPost200ResponseResponseObjectToJSON(json: any): ApiUploadPost200ResponseResponseObject;
|
|
32
|
+
export declare function ApiUploadPost200ResponseResponseObjectToJSONTyped(value?: ApiUploadPost200ResponseResponseObject | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* DRX API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the ApiUploadPost200ResponseResponseObject interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfApiUploadPost200ResponseResponseObject(value) {
|
|
18
|
+
if (!('file_url' in value) || value['file_url'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function ApiUploadPost200ResponseResponseObjectFromJSON(json) {
|
|
23
|
+
return ApiUploadPost200ResponseResponseObjectFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function ApiUploadPost200ResponseResponseObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'file_url': json['file_url'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function ApiUploadPost200ResponseResponseObjectToJSON(json) {
|
|
34
|
+
return ApiUploadPost200ResponseResponseObjectToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function ApiUploadPost200ResponseResponseObjectToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'file_url': value['file_url'],
|
|
42
|
+
};
|
|
43
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -195,6 +195,8 @@ export * from './ApiTournamentPadelPostRequestBody';
|
|
|
195
195
|
export * from './ApiTournamentPadelPostRequestBodyPlayersInner';
|
|
196
196
|
export * from './ApiTournamentPadelPostRequestBodyTeamsInner';
|
|
197
197
|
export * from './ApiTournamentSeedGameTypesGet200Response';
|
|
198
|
+
export * from './ApiUploadPost200Response';
|
|
199
|
+
export * from './ApiUploadPost200ResponseResponseObject';
|
|
198
200
|
export * from './ApiUserAffiliateGet200Response';
|
|
199
201
|
export * from './ApiUserAffiliateGet200ResponseResponseObject';
|
|
200
202
|
export * from './ApiUserAffiliateGet200ResponseResponseObjectStatistics';
|
package/dist/models/index.js
CHANGED
|
@@ -197,6 +197,8 @@ export * from './ApiTournamentPadelPostRequestBody';
|
|
|
197
197
|
export * from './ApiTournamentPadelPostRequestBodyPlayersInner';
|
|
198
198
|
export * from './ApiTournamentPadelPostRequestBodyTeamsInner';
|
|
199
199
|
export * from './ApiTournamentSeedGameTypesGet200Response';
|
|
200
|
+
export * from './ApiUploadPost200Response';
|
|
201
|
+
export * from './ApiUploadPost200ResponseResponseObject';
|
|
200
202
|
export * from './ApiUserAffiliateGet200Response';
|
|
201
203
|
export * from './ApiUserAffiliateGet200ResponseResponseObject';
|
|
202
204
|
export * from './ApiUserAffiliateGet200ResponseResponseObjectStatistics';
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* DRX API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ApiUploadPost200ResponseResponseObject } from './ApiUploadPost200ResponseResponseObject';
|
|
17
|
+
import {
|
|
18
|
+
ApiUploadPost200ResponseResponseObjectFromJSON,
|
|
19
|
+
ApiUploadPost200ResponseResponseObjectFromJSONTyped,
|
|
20
|
+
ApiUploadPost200ResponseResponseObjectToJSON,
|
|
21
|
+
ApiUploadPost200ResponseResponseObjectToJSONTyped,
|
|
22
|
+
} from './ApiUploadPost200ResponseResponseObject';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiUploadPost200Response
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiUploadPost200Response {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof ApiUploadPost200Response
|
|
34
|
+
*/
|
|
35
|
+
success: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ApiUploadPost200Response
|
|
40
|
+
*/
|
|
41
|
+
message: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {ApiUploadPost200ResponseResponseObject}
|
|
45
|
+
* @memberof ApiUploadPost200Response
|
|
46
|
+
*/
|
|
47
|
+
responseObject?: ApiUploadPost200ResponseResponseObject;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ApiUploadPost200Response
|
|
52
|
+
*/
|
|
53
|
+
statusCode: number;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the ApiUploadPost200Response interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfApiUploadPost200Response(value: object): value is ApiUploadPost200Response {
|
|
60
|
+
if (!('success' in value) || value['success'] === undefined) return false;
|
|
61
|
+
if (!('message' in value) || value['message'] === undefined) return false;
|
|
62
|
+
if (!('statusCode' in value) || value['statusCode'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function ApiUploadPost200ResponseFromJSON(json: any): ApiUploadPost200Response {
|
|
67
|
+
return ApiUploadPost200ResponseFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function ApiUploadPost200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUploadPost200Response {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'success': json['success'],
|
|
77
|
+
'message': json['message'],
|
|
78
|
+
'responseObject': json['responseObject'] == null ? undefined : ApiUploadPost200ResponseResponseObjectFromJSON(json['responseObject']),
|
|
79
|
+
'statusCode': json['statusCode'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function ApiUploadPost200ResponseToJSON(json: any): ApiUploadPost200Response {
|
|
84
|
+
return ApiUploadPost200ResponseToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function ApiUploadPost200ResponseToJSONTyped(value?: ApiUploadPost200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
return {
|
|
93
|
+
|
|
94
|
+
'success': value['success'],
|
|
95
|
+
'message': value['message'],
|
|
96
|
+
'responseObject': ApiUploadPost200ResponseResponseObjectToJSON(value['responseObject']),
|
|
97
|
+
'statusCode': value['statusCode'],
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* DRX API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ApiUploadPost200ResponseResponseObject
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiUploadPost200ResponseResponseObject {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ApiUploadPost200ResponseResponseObject
|
|
26
|
+
*/
|
|
27
|
+
file_url: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ApiUploadPost200ResponseResponseObject interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfApiUploadPost200ResponseResponseObject(value: object): value is ApiUploadPost200ResponseResponseObject {
|
|
34
|
+
if (!('file_url' in value) || value['file_url'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function ApiUploadPost200ResponseResponseObjectFromJSON(json: any): ApiUploadPost200ResponseResponseObject {
|
|
39
|
+
return ApiUploadPost200ResponseResponseObjectFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function ApiUploadPost200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUploadPost200ResponseResponseObject {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'file_url': json['file_url'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function ApiUploadPost200ResponseResponseObjectToJSON(json: any): ApiUploadPost200ResponseResponseObject {
|
|
53
|
+
return ApiUploadPost200ResponseResponseObjectToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function ApiUploadPost200ResponseResponseObjectToJSONTyped(value?: ApiUploadPost200ResponseResponseObject | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'file_url': value['file_url'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
package/models/index.ts
CHANGED
|
@@ -197,6 +197,8 @@ export * from './ApiTournamentPadelPostRequestBody';
|
|
|
197
197
|
export * from './ApiTournamentPadelPostRequestBodyPlayersInner';
|
|
198
198
|
export * from './ApiTournamentPadelPostRequestBodyTeamsInner';
|
|
199
199
|
export * from './ApiTournamentSeedGameTypesGet200Response';
|
|
200
|
+
export * from './ApiUploadPost200Response';
|
|
201
|
+
export * from './ApiUploadPost200ResponseResponseObject';
|
|
200
202
|
export * from './ApiUserAffiliateGet200Response';
|
|
201
203
|
export * from './ApiUserAffiliateGet200ResponseResponseObject';
|
|
202
204
|
export * from './ApiUserAffiliateGet200ResponseResponseObjectStatistics';
|