@drxsuperapp/sdk 1.1.383 → 1.1.384
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 +4 -4
- package/apis/FileApi.ts +20 -20
- package/deploy.log +28 -21
- package/dist/apis/FileApi.d.ts +7 -7
- package/dist/apis/FileApi.js +13 -13
- package/dist/models/ApiFileUploadFilenameDelete200Response.d.ts +51 -0
- package/dist/models/{ApiUploadFilenameDelete200Response.js → ApiFileUploadFilenameDelete200Response.js} +11 -11
- package/dist/models/ApiFileUploadFilenameDelete200ResponseResponseObject.d.ts +38 -0
- package/dist/models/{ApiUploadFilenameDelete200ResponseResponseObject.js → ApiFileUploadFilenameDelete200ResponseResponseObject.js} +8 -8
- package/dist/models/ApiFileUploadPost200Response.d.ts +51 -0
- package/dist/models/{ApiUploadPost200Response.js → ApiFileUploadPost200Response.js} +11 -11
- package/dist/models/ApiFileUploadPost200ResponseResponseObject.d.ts +32 -0
- package/dist/models/{ApiUploadPost200ResponseResponseObject.js → ApiFileUploadPost200ResponseResponseObject.js} +8 -8
- package/dist/models/index.d.ts +4 -4
- package/dist/models/index.js +4 -4
- package/models/ApiFileUploadFilenameDelete200Response.ts +100 -0
- package/models/ApiFileUploadFilenameDelete200ResponseResponseObject.ts +75 -0
- package/models/ApiFileUploadPost200Response.ts +100 -0
- package/models/ApiFileUploadPost200ResponseResponseObject.ts +66 -0
- package/models/index.ts +4 -4
- package/package.json +1 -1
- package/dist/models/ApiUploadFilenameDelete200Response.d.ts +0 -51
- package/dist/models/ApiUploadFilenameDelete200ResponseResponseObject.d.ts +0 -38
- package/dist/models/ApiUploadPost200Response.d.ts +0 -51
- package/dist/models/ApiUploadPost200ResponseResponseObject.d.ts +0 -32
- package/models/ApiUploadFilenameDelete200Response.ts +0 -100
- package/models/ApiUploadFilenameDelete200ResponseResponseObject.ts +0 -75
- package/models/ApiUploadPost200Response.ts +0 -100
- package/models/ApiUploadPost200ResponseResponseObject.ts +0 -66
package/.openapi-generator/FILES
CHANGED
|
@@ -105,6 +105,10 @@ models/ApiFeaturePut200Response.ts
|
|
|
105
105
|
models/ApiFeaturePutRequest.ts
|
|
106
106
|
models/ApiFeaturePutRequestNavigate.ts
|
|
107
107
|
models/ApiFeatureSwitchPutRequest.ts
|
|
108
|
+
models/ApiFileUploadFilenameDelete200Response.ts
|
|
109
|
+
models/ApiFileUploadFilenameDelete200ResponseResponseObject.ts
|
|
110
|
+
models/ApiFileUploadPost200Response.ts
|
|
111
|
+
models/ApiFileUploadPost200ResponseResponseObject.ts
|
|
108
112
|
models/ApiGarudakuGameTopupsGet200Response.ts
|
|
109
113
|
models/ApiGarudakuGameTopupsGet200ResponseResponseObject.ts
|
|
110
114
|
models/ApiGarudakuGameTopupsGet200ResponseResponseObjectItemsInner.ts
|
|
@@ -226,10 +230,6 @@ models/ApiTournamentPadelPostRequestBody.ts
|
|
|
226
230
|
models/ApiTournamentPadelPostRequestBodyPlayersInner.ts
|
|
227
231
|
models/ApiTournamentPadelPostRequestBodyTeamsInner.ts
|
|
228
232
|
models/ApiTournamentSeedGameTypesGet200Response.ts
|
|
229
|
-
models/ApiUploadFilenameDelete200Response.ts
|
|
230
|
-
models/ApiUploadFilenameDelete200ResponseResponseObject.ts
|
|
231
|
-
models/ApiUploadPost200Response.ts
|
|
232
|
-
models/ApiUploadPost200ResponseResponseObject.ts
|
|
233
233
|
models/ApiUserAffiliateGet200Response.ts
|
|
234
234
|
models/ApiUserAffiliateGet200ResponseResponseObject.ts
|
|
235
235
|
models/ApiUserAffiliateGet200ResponseResponseObjectStatistics.ts
|
package/apis/FileApi.ts
CHANGED
|
@@ -15,21 +15,21 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
ApiFileUploadFilenameDelete200Response,
|
|
19
|
+
ApiFileUploadPost200Response,
|
|
20
20
|
} from '../models/index';
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
ApiFileUploadFilenameDelete200ResponseFromJSON,
|
|
23
|
+
ApiFileUploadFilenameDelete200ResponseToJSON,
|
|
24
|
+
ApiFileUploadPost200ResponseFromJSON,
|
|
25
|
+
ApiFileUploadPost200ResponseToJSON,
|
|
26
26
|
} from '../models/index';
|
|
27
27
|
|
|
28
|
-
export interface
|
|
28
|
+
export interface ApiFileUploadFilenameDeleteRequest {
|
|
29
29
|
filename: string;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
export interface
|
|
32
|
+
export interface ApiFileUploadPostRequest {
|
|
33
33
|
file: Blob;
|
|
34
34
|
}
|
|
35
35
|
|
|
@@ -41,11 +41,11 @@ export class FileApi extends runtime.BaseAPI {
|
|
|
41
41
|
/**
|
|
42
42
|
* Delete File
|
|
43
43
|
*/
|
|
44
|
-
async
|
|
44
|
+
async apiFileUploadFilenameDeleteRaw(requestParameters: ApiFileUploadFilenameDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiFileUploadFilenameDelete200Response>> {
|
|
45
45
|
if (requestParameters['filename'] == null) {
|
|
46
46
|
throw new runtime.RequiredError(
|
|
47
47
|
'filename',
|
|
48
|
-
'Required parameter "filename" was null or undefined when calling
|
|
48
|
+
'Required parameter "filename" was null or undefined when calling apiFileUploadFilenameDelete().'
|
|
49
49
|
);
|
|
50
50
|
}
|
|
51
51
|
|
|
@@ -66,31 +66,31 @@ export class FileApi extends runtime.BaseAPI {
|
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
const response = await this.request({
|
|
69
|
-
path: `/api/upload/{filename}`.replace(`{${"filename"}}`, encodeURIComponent(String(requestParameters['filename']))),
|
|
69
|
+
path: `/api/file/upload/{filename}`.replace(`{${"filename"}}`, encodeURIComponent(String(requestParameters['filename']))),
|
|
70
70
|
method: 'DELETE',
|
|
71
71
|
headers: headerParameters,
|
|
72
72
|
query: queryParameters,
|
|
73
73
|
}, initOverrides);
|
|
74
74
|
|
|
75
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
75
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiFileUploadFilenameDelete200ResponseFromJSON(jsonValue));
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
/**
|
|
79
79
|
* Delete File
|
|
80
80
|
*/
|
|
81
|
-
async
|
|
82
|
-
const response = await this.
|
|
81
|
+
async apiFileUploadFilenameDelete(requestParameters: ApiFileUploadFilenameDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiFileUploadFilenameDelete200Response> {
|
|
82
|
+
const response = await this.apiFileUploadFilenameDeleteRaw(requestParameters, initOverrides);
|
|
83
83
|
return await response.value();
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
/**
|
|
87
87
|
* Upload File
|
|
88
88
|
*/
|
|
89
|
-
async
|
|
89
|
+
async apiFileUploadPostRaw(requestParameters: ApiFileUploadPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiFileUploadPost200Response>> {
|
|
90
90
|
if (requestParameters['file'] == null) {
|
|
91
91
|
throw new runtime.RequiredError(
|
|
92
92
|
'file',
|
|
93
|
-
'Required parameter "file" was null or undefined when calling
|
|
93
|
+
'Required parameter "file" was null or undefined when calling apiFileUploadPost().'
|
|
94
94
|
);
|
|
95
95
|
}
|
|
96
96
|
|
|
@@ -131,21 +131,21 @@ export class FileApi extends runtime.BaseAPI {
|
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
const response = await this.request({
|
|
134
|
-
path: `/api/upload`,
|
|
134
|
+
path: `/api/file/upload`,
|
|
135
135
|
method: 'POST',
|
|
136
136
|
headers: headerParameters,
|
|
137
137
|
query: queryParameters,
|
|
138
138
|
body: formParams,
|
|
139
139
|
}, initOverrides);
|
|
140
140
|
|
|
141
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
141
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiFileUploadPost200ResponseFromJSON(jsonValue));
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
/**
|
|
145
145
|
* Upload File
|
|
146
146
|
*/
|
|
147
|
-
async
|
|
148
|
-
const response = await this.
|
|
147
|
+
async apiFileUploadPost(requestParameters: ApiFileUploadPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiFileUploadPost200Response> {
|
|
148
|
+
const response = await this.apiFileUploadPostRaw(requestParameters, initOverrides);
|
|
149
149
|
return await response.value();
|
|
150
150
|
}
|
|
151
151
|
|
package/deploy.log
CHANGED
|
@@ -279,11 +279,11 @@
|
|
|
279
279
|
[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).
|
|
280
280
|
[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).
|
|
281
281
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_web3_redemption__id__action_put_request. 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__action_put_request=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_web3_redemption__id__action_put_request=NewModel,ModelA=NewModelA in CLI).
|
|
282
|
-
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as
|
|
283
|
-
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as
|
|
284
|
-
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as
|
|
285
|
-
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as
|
|
286
|
-
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as
|
|
282
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_file_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_file_upload_post_request=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_file_upload_post_request=NewModel,ModelA=NewModelA in CLI).
|
|
283
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_file_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_file_upload_post_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_file_upload_post_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
|
|
284
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_file_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_file_upload_post_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_file_upload_post_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
285
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_file_upload__filename__delete_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_file_upload__filename__delete_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_file_upload__filename__delete_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
|
|
286
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_file_upload__filename__delete_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_file_upload__filename__delete_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_file_upload__filename__delete_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
287
287
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_feature_get_200_response_responseObject_inner_Navigate. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_feature_get_200_response_responseObject_inner_Navigate=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_feature_get_200_response_responseObject_inner_Navigate=NewModel,ModelA=NewModelA in CLI).
|
|
288
288
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_feature_get_200_response_responseObject_inner. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_feature_get_200_response_responseObject_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_feature_get_200_response_responseObject_inner=NewModel,ModelA=NewModelA in CLI).
|
|
289
289
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_feature_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_feature_get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_feature_get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
@@ -293,7 +293,7 @@
|
|
|
293
293
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_feature_switch_put_request. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_feature_switch_put_request=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_feature_switch_put_request=NewModel,ModelA=NewModelA in CLI).
|
|
294
294
|
[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/]
|
|
295
295
|
[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/]
|
|
296
|
-
[main] INFO o.o.codegen.DefaultGenerator - Model
|
|
296
|
+
[main] INFO o.o.codegen.DefaultGenerator - Model _api_file_upload_post_request not generated since it's marked as unused (due to form parameters) and `skipFormModel` (global property) set to true (default)
|
|
297
297
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAdminAppConfigsGet200Response.ts
|
|
298
298
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAdminAppConfigsGet200ResponseResponseObject.ts
|
|
299
299
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAdminAppConfigsGet200ResponseResponseObjectItemsInnerInner.ts
|
|
@@ -377,6 +377,10 @@
|
|
|
377
377
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiFeaturePutRequest.ts
|
|
378
378
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiFeaturePutRequestNavigate.ts
|
|
379
379
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiFeatureSwitchPutRequest.ts
|
|
380
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiFileUploadFilenameDelete200Response.ts
|
|
381
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiFileUploadFilenameDelete200ResponseResponseObject.ts
|
|
382
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiFileUploadPost200Response.ts
|
|
383
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiFileUploadPost200ResponseResponseObject.ts
|
|
380
384
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiGarudakuGameTopupsGet200Response.ts
|
|
381
385
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiGarudakuGameTopupsGet200ResponseResponseObject.ts
|
|
382
386
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiGarudakuGameTopupsGet200ResponseResponseObjectItemsInner.ts
|
|
@@ -498,10 +502,6 @@
|
|
|
498
502
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiTournamentPadelPostRequestBodyPlayersInner.ts
|
|
499
503
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiTournamentPadelPostRequestBodyTeamsInner.ts
|
|
500
504
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiTournamentSeedGameTypesGet200Response.ts
|
|
501
|
-
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiUploadFilenameDelete200Response.ts
|
|
502
|
-
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiUploadFilenameDelete200ResponseResponseObject.ts
|
|
503
|
-
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiUploadPost200Response.ts
|
|
504
|
-
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiUploadPost200ResponseResponseObject.ts
|
|
505
505
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiUserAffiliateGet200Response.ts
|
|
506
506
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiUserAffiliateGet200ResponseResponseObject.ts
|
|
507
507
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiUserAffiliateGet200ResponseResponseObjectStatistics.ts
|
|
@@ -690,8 +690,8 @@
|
|
|
690
690
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: put /api/web3/redemption/{id}/action. Renamed to auto-generated operationId: apiWeb3RedemptionIdActionPut
|
|
691
691
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/public/web3/reward/{id}. Renamed to auto-generated operationId: apiPublicWeb3RewardIdGet
|
|
692
692
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/public/web3/reward. Renamed to auto-generated operationId: apiPublicWeb3RewardGet
|
|
693
|
-
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/upload. Renamed to auto-generated operationId:
|
|
694
|
-
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: delete /api/upload/{filename}. Renamed to auto-generated operationId:
|
|
693
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/file/upload. Renamed to auto-generated operationId: apiFileUploadPost
|
|
694
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: delete /api/file/upload/{filename}. Renamed to auto-generated operationId: apiFileUploadFilenameDelete
|
|
695
695
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/feature. Renamed to auto-generated operationId: apiFeatureGet
|
|
696
696
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: put /api/feature. Renamed to auto-generated operationId: apiFeaturePut
|
|
697
697
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: put /api/feature/switch. Renamed to auto-generated operationId: apiFeatureSwitchPut
|
|
@@ -755,21 +755,28 @@
|
|
|
755
755
|
# https://opencollective.com/openapi_generator/donate #
|
|
756
756
|
################################################################################
|
|
757
757
|
✅ SDK generated
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
758
|
+
[master f9b93de] VPS: Generated API SDK
|
|
759
|
+
11 files changed, 369 insertions(+), 369 deletions(-)
|
|
760
|
+
create mode 100644 models/ApiFileUploadFilenameDelete200Response.ts
|
|
761
|
+
create mode 100644 models/ApiFileUploadFilenameDelete200ResponseResponseObject.ts
|
|
762
|
+
create mode 100644 models/ApiFileUploadPost200Response.ts
|
|
763
|
+
create mode 100644 models/ApiFileUploadPost200ResponseResponseObject.ts
|
|
764
|
+
delete mode 100644 models/ApiUploadFilenameDelete200Response.ts
|
|
765
|
+
delete mode 100644 models/ApiUploadFilenameDelete200ResponseResponseObject.ts
|
|
766
|
+
delete mode 100644 models/ApiUploadPost200Response.ts
|
|
767
|
+
delete mode 100644 models/ApiUploadPost200ResponseResponseObject.ts
|
|
768
|
+
To https://gitlab.com/drx-super/drx-sdk.git
|
|
769
|
+
78ac751..f9b93de master -> master
|
|
763
770
|
✅ Changes committed and pushed
|
|
764
|
-
v1.1.
|
|
771
|
+
v1.1.384
|
|
765
772
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
766
|
-
|
|
773
|
+
f9b93de..0d36ec5 master -> master
|
|
767
774
|
✅ Version bumped
|
|
768
775
|
|
|
769
|
-
> @drxsuperapp/sdk@1.1.
|
|
776
|
+
> @drxsuperapp/sdk@1.1.384 prepublishOnly
|
|
770
777
|
> npm run build
|
|
771
778
|
|
|
772
779
|
|
|
773
|
-
> @drxsuperapp/sdk@1.1.
|
|
780
|
+
> @drxsuperapp/sdk@1.1.384 build
|
|
774
781
|
> tsc
|
|
775
782
|
|
package/dist/apis/FileApi.d.ts
CHANGED
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type {
|
|
14
|
-
export interface
|
|
13
|
+
import type { ApiFileUploadFilenameDelete200Response, ApiFileUploadPost200Response } from '../models/index';
|
|
14
|
+
export interface ApiFileUploadFilenameDeleteRequest {
|
|
15
15
|
filename: string;
|
|
16
16
|
}
|
|
17
|
-
export interface
|
|
17
|
+
export interface ApiFileUploadPostRequest {
|
|
18
18
|
file: Blob;
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
@@ -24,17 +24,17 @@ export declare class FileApi extends runtime.BaseAPI {
|
|
|
24
24
|
/**
|
|
25
25
|
* Delete File
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
apiFileUploadFilenameDeleteRaw(requestParameters: ApiFileUploadFilenameDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiFileUploadFilenameDelete200Response>>;
|
|
28
28
|
/**
|
|
29
29
|
* Delete File
|
|
30
30
|
*/
|
|
31
|
-
|
|
31
|
+
apiFileUploadFilenameDelete(requestParameters: ApiFileUploadFilenameDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiFileUploadFilenameDelete200Response>;
|
|
32
32
|
/**
|
|
33
33
|
* Upload File
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
apiFileUploadPostRaw(requestParameters: ApiFileUploadPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiFileUploadPost200Response>>;
|
|
36
36
|
/**
|
|
37
37
|
* Upload File
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
apiFileUploadPost(requestParameters: ApiFileUploadPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiFileUploadPost200Response>;
|
|
40
40
|
}
|
package/dist/apis/FileApi.js
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import * as runtime from '../runtime';
|
|
15
|
-
import {
|
|
15
|
+
import { ApiFileUploadFilenameDelete200ResponseFromJSON, ApiFileUploadPost200ResponseFromJSON, } from '../models/index';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
@@ -20,9 +20,9 @@ export class FileApi extends runtime.BaseAPI {
|
|
|
20
20
|
/**
|
|
21
21
|
* Delete File
|
|
22
22
|
*/
|
|
23
|
-
async
|
|
23
|
+
async apiFileUploadFilenameDeleteRaw(requestParameters, initOverrides) {
|
|
24
24
|
if (requestParameters['filename'] == null) {
|
|
25
|
-
throw new runtime.RequiredError('filename', 'Required parameter "filename" was null or undefined when calling
|
|
25
|
+
throw new runtime.RequiredError('filename', 'Required parameter "filename" was null or undefined when calling apiFileUploadFilenameDelete().');
|
|
26
26
|
}
|
|
27
27
|
const queryParameters = {};
|
|
28
28
|
const headerParameters = {};
|
|
@@ -37,26 +37,26 @@ export class FileApi extends runtime.BaseAPI {
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
const response = await this.request({
|
|
40
|
-
path: `/api/upload/{filename}`.replace(`{${"filename"}}`, encodeURIComponent(String(requestParameters['filename']))),
|
|
40
|
+
path: `/api/file/upload/{filename}`.replace(`{${"filename"}}`, encodeURIComponent(String(requestParameters['filename']))),
|
|
41
41
|
method: 'DELETE',
|
|
42
42
|
headers: headerParameters,
|
|
43
43
|
query: queryParameters,
|
|
44
44
|
}, initOverrides);
|
|
45
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
45
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiFileUploadFilenameDelete200ResponseFromJSON(jsonValue));
|
|
46
46
|
}
|
|
47
47
|
/**
|
|
48
48
|
* Delete File
|
|
49
49
|
*/
|
|
50
|
-
async
|
|
51
|
-
const response = await this.
|
|
50
|
+
async apiFileUploadFilenameDelete(requestParameters, initOverrides) {
|
|
51
|
+
const response = await this.apiFileUploadFilenameDeleteRaw(requestParameters, initOverrides);
|
|
52
52
|
return await response.value();
|
|
53
53
|
}
|
|
54
54
|
/**
|
|
55
55
|
* Upload File
|
|
56
56
|
*/
|
|
57
|
-
async
|
|
57
|
+
async apiFileUploadPostRaw(requestParameters, initOverrides) {
|
|
58
58
|
if (requestParameters['file'] == null) {
|
|
59
|
-
throw new runtime.RequiredError('file', 'Required parameter "file" was null or undefined when calling
|
|
59
|
+
throw new runtime.RequiredError('file', 'Required parameter "file" was null or undefined when calling apiFileUploadPost().');
|
|
60
60
|
}
|
|
61
61
|
const queryParameters = {};
|
|
62
62
|
const headerParameters = {};
|
|
@@ -89,19 +89,19 @@ export class FileApi extends runtime.BaseAPI {
|
|
|
89
89
|
formParams.append('file', requestParameters['file']);
|
|
90
90
|
}
|
|
91
91
|
const response = await this.request({
|
|
92
|
-
path: `/api/upload`,
|
|
92
|
+
path: `/api/file/upload`,
|
|
93
93
|
method: 'POST',
|
|
94
94
|
headers: headerParameters,
|
|
95
95
|
query: queryParameters,
|
|
96
96
|
body: formParams,
|
|
97
97
|
}, initOverrides);
|
|
98
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
98
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiFileUploadPost200ResponseFromJSON(jsonValue));
|
|
99
99
|
}
|
|
100
100
|
/**
|
|
101
101
|
* Upload File
|
|
102
102
|
*/
|
|
103
|
-
async
|
|
104
|
-
const response = await this.
|
|
103
|
+
async apiFileUploadPost(requestParameters, initOverrides) {
|
|
104
|
+
const response = await this.apiFileUploadPostRaw(requestParameters, initOverrides);
|
|
105
105
|
return await response.value();
|
|
106
106
|
}
|
|
107
107
|
}
|
|
@@ -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 { ApiFileUploadFilenameDelete200ResponseResponseObject } from './ApiFileUploadFilenameDelete200ResponseResponseObject';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiFileUploadFilenameDelete200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiFileUploadFilenameDelete200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof ApiFileUploadFilenameDelete200Response
|
|
23
|
+
*/
|
|
24
|
+
success: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ApiFileUploadFilenameDelete200Response
|
|
29
|
+
*/
|
|
30
|
+
message: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {ApiFileUploadFilenameDelete200ResponseResponseObject}
|
|
34
|
+
* @memberof ApiFileUploadFilenameDelete200Response
|
|
35
|
+
*/
|
|
36
|
+
responseObject?: ApiFileUploadFilenameDelete200ResponseResponseObject;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ApiFileUploadFilenameDelete200Response
|
|
41
|
+
*/
|
|
42
|
+
statusCode: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ApiFileUploadFilenameDelete200Response interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfApiFileUploadFilenameDelete200Response(value: object): value is ApiFileUploadFilenameDelete200Response;
|
|
48
|
+
export declare function ApiFileUploadFilenameDelete200ResponseFromJSON(json: any): ApiFileUploadFilenameDelete200Response;
|
|
49
|
+
export declare function ApiFileUploadFilenameDelete200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiFileUploadFilenameDelete200Response;
|
|
50
|
+
export declare function ApiFileUploadFilenameDelete200ResponseToJSON(json: any): ApiFileUploadFilenameDelete200Response;
|
|
51
|
+
export declare function ApiFileUploadFilenameDelete200ResponseToJSONTyped(value?: ApiFileUploadFilenameDelete200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
import {
|
|
14
|
+
import { ApiFileUploadFilenameDelete200ResponseResponseObjectFromJSON, ApiFileUploadFilenameDelete200ResponseResponseObjectToJSON, } from './ApiFileUploadFilenameDelete200ResponseResponseObject';
|
|
15
15
|
/**
|
|
16
|
-
* Check if a given object implements the
|
|
16
|
+
* Check if a given object implements the ApiFileUploadFilenameDelete200Response interface.
|
|
17
17
|
*/
|
|
18
|
-
export function
|
|
18
|
+
export function instanceOfApiFileUploadFilenameDelete200Response(value) {
|
|
19
19
|
if (!('success' in value) || value['success'] === undefined)
|
|
20
20
|
return false;
|
|
21
21
|
if (!('message' in value) || value['message'] === undefined)
|
|
@@ -24,31 +24,31 @@ export function instanceOfApiUploadFilenameDelete200Response(value) {
|
|
|
24
24
|
return false;
|
|
25
25
|
return true;
|
|
26
26
|
}
|
|
27
|
-
export function
|
|
28
|
-
return
|
|
27
|
+
export function ApiFileUploadFilenameDelete200ResponseFromJSON(json) {
|
|
28
|
+
return ApiFileUploadFilenameDelete200ResponseFromJSONTyped(json, false);
|
|
29
29
|
}
|
|
30
|
-
export function
|
|
30
|
+
export function ApiFileUploadFilenameDelete200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
31
|
if (json == null) {
|
|
32
32
|
return json;
|
|
33
33
|
}
|
|
34
34
|
return {
|
|
35
35
|
'success': json['success'],
|
|
36
36
|
'message': json['message'],
|
|
37
|
-
'responseObject': json['responseObject'] == null ? undefined :
|
|
37
|
+
'responseObject': json['responseObject'] == null ? undefined : ApiFileUploadFilenameDelete200ResponseResponseObjectFromJSON(json['responseObject']),
|
|
38
38
|
'statusCode': json['statusCode'],
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
|
-
export function
|
|
42
|
-
return
|
|
41
|
+
export function ApiFileUploadFilenameDelete200ResponseToJSON(json) {
|
|
42
|
+
return ApiFileUploadFilenameDelete200ResponseToJSONTyped(json, false);
|
|
43
43
|
}
|
|
44
|
-
export function
|
|
44
|
+
export function ApiFileUploadFilenameDelete200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
45
|
if (value == null) {
|
|
46
46
|
return value;
|
|
47
47
|
}
|
|
48
48
|
return {
|
|
49
49
|
'success': value['success'],
|
|
50
50
|
'message': value['message'],
|
|
51
|
-
'responseObject':
|
|
51
|
+
'responseObject': ApiFileUploadFilenameDelete200ResponseResponseObjectToJSON(value['responseObject']),
|
|
52
52
|
'statusCode': value['statusCode'],
|
|
53
53
|
};
|
|
54
54
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 ApiFileUploadFilenameDelete200ResponseResponseObject
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiFileUploadFilenameDelete200ResponseResponseObject {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApiFileUploadFilenameDelete200ResponseResponseObject
|
|
22
|
+
*/
|
|
23
|
+
message: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ApiFileUploadFilenameDelete200ResponseResponseObject
|
|
28
|
+
*/
|
|
29
|
+
deleted_key: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ApiFileUploadFilenameDelete200ResponseResponseObject interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfApiFileUploadFilenameDelete200ResponseResponseObject(value: object): value is ApiFileUploadFilenameDelete200ResponseResponseObject;
|
|
35
|
+
export declare function ApiFileUploadFilenameDelete200ResponseResponseObjectFromJSON(json: any): ApiFileUploadFilenameDelete200ResponseResponseObject;
|
|
36
|
+
export declare function ApiFileUploadFilenameDelete200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiFileUploadFilenameDelete200ResponseResponseObject;
|
|
37
|
+
export declare function ApiFileUploadFilenameDelete200ResponseResponseObjectToJSON(json: any): ApiFileUploadFilenameDelete200ResponseResponseObject;
|
|
38
|
+
export declare function ApiFileUploadFilenameDelete200ResponseResponseObjectToJSONTyped(value?: ApiFileUploadFilenameDelete200ResponseResponseObject | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -12,19 +12,19 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
/**
|
|
15
|
-
* Check if a given object implements the
|
|
15
|
+
* Check if a given object implements the ApiFileUploadFilenameDelete200ResponseResponseObject interface.
|
|
16
16
|
*/
|
|
17
|
-
export function
|
|
17
|
+
export function instanceOfApiFileUploadFilenameDelete200ResponseResponseObject(value) {
|
|
18
18
|
if (!('message' in value) || value['message'] === undefined)
|
|
19
19
|
return false;
|
|
20
20
|
if (!('deleted_key' in value) || value['deleted_key'] === undefined)
|
|
21
21
|
return false;
|
|
22
22
|
return true;
|
|
23
23
|
}
|
|
24
|
-
export function
|
|
25
|
-
return
|
|
24
|
+
export function ApiFileUploadFilenameDelete200ResponseResponseObjectFromJSON(json) {
|
|
25
|
+
return ApiFileUploadFilenameDelete200ResponseResponseObjectFromJSONTyped(json, false);
|
|
26
26
|
}
|
|
27
|
-
export function
|
|
27
|
+
export function ApiFileUploadFilenameDelete200ResponseResponseObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
28
|
if (json == null) {
|
|
29
29
|
return json;
|
|
30
30
|
}
|
|
@@ -33,10 +33,10 @@ export function ApiUploadFilenameDelete200ResponseResponseObjectFromJSONTyped(js
|
|
|
33
33
|
'deleted_key': json['deleted_key'],
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
|
-
export function
|
|
37
|
-
return
|
|
36
|
+
export function ApiFileUploadFilenameDelete200ResponseResponseObjectToJSON(json) {
|
|
37
|
+
return ApiFileUploadFilenameDelete200ResponseResponseObjectToJSONTyped(json, false);
|
|
38
38
|
}
|
|
39
|
-
export function
|
|
39
|
+
export function ApiFileUploadFilenameDelete200ResponseResponseObjectToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
40
|
if (value == null) {
|
|
41
41
|
return value;
|
|
42
42
|
}
|
|
@@ -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 { ApiFileUploadPost200ResponseResponseObject } from './ApiFileUploadPost200ResponseResponseObject';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiFileUploadPost200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiFileUploadPost200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof ApiFileUploadPost200Response
|
|
23
|
+
*/
|
|
24
|
+
success: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ApiFileUploadPost200Response
|
|
29
|
+
*/
|
|
30
|
+
message: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {ApiFileUploadPost200ResponseResponseObject}
|
|
34
|
+
* @memberof ApiFileUploadPost200Response
|
|
35
|
+
*/
|
|
36
|
+
responseObject?: ApiFileUploadPost200ResponseResponseObject;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ApiFileUploadPost200Response
|
|
41
|
+
*/
|
|
42
|
+
statusCode: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ApiFileUploadPost200Response interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfApiFileUploadPost200Response(value: object): value is ApiFileUploadPost200Response;
|
|
48
|
+
export declare function ApiFileUploadPost200ResponseFromJSON(json: any): ApiFileUploadPost200Response;
|
|
49
|
+
export declare function ApiFileUploadPost200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiFileUploadPost200Response;
|
|
50
|
+
export declare function ApiFileUploadPost200ResponseToJSON(json: any): ApiFileUploadPost200Response;
|
|
51
|
+
export declare function ApiFileUploadPost200ResponseToJSONTyped(value?: ApiFileUploadPost200Response | null, ignoreDiscriminator?: boolean): any;
|