@gambulls-org/gambulls-apis 3.0.151 → 3.0.153
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/AdminFileManagementApi.js +164 -0
- package/apis/AdminFileManagementApi.ts +155 -0
- package/apis/index.js +1 -0
- package/apis/index.ts +1 -0
- package/models/ApiAdminUploadPost200Response.js +61 -0
- package/models/ApiAdminUploadPost200Response.ts +100 -0
- package/models/ApiAdminUploadPost200ResponseResponseObject.js +50 -0
- package/models/ApiAdminUploadPost200ResponseResponseObject.ts +66 -0
- package/models/index.js +2 -0
- package/models/index.ts +2 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -6,6 +6,7 @@ apis/AdminCategoryApi.ts
|
|
|
6
6
|
apis/AdminChatApi.ts
|
|
7
7
|
apis/AdminDashboardApi.ts
|
|
8
8
|
apis/AdminExchangeApi.ts
|
|
9
|
+
apis/AdminFileManagementApi.ts
|
|
9
10
|
apis/AdminGamesApi.ts
|
|
10
11
|
apis/AdminGroupApi.ts
|
|
11
12
|
apis/AdminLoyaltyApi.ts
|
|
@@ -200,6 +201,8 @@ models/ApiAdminPsWithdrawalPostRequest.ts
|
|
|
200
201
|
models/ApiAdminPutRequest.ts
|
|
201
202
|
models/ApiAdminRateFiatvsfiatGet200Response.ts
|
|
202
203
|
models/ApiAdminRegisterPostRequest.ts
|
|
204
|
+
models/ApiAdminUploadPost200Response.ts
|
|
205
|
+
models/ApiAdminUploadPost200ResponseResponseObject.ts
|
|
203
206
|
models/ApiAdminUserWagerReportGet200Response.ts
|
|
204
207
|
models/ApiAdminUserWagerReportGet200ResponseResponseObject.ts
|
|
205
208
|
models/ApiAdminUserWagerReportGet200ResponseResponseObjectAnyOfInner.ts
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Swagger API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
+
}
|
|
21
|
+
Object.defineProperty(o, k2, desc);
|
|
22
|
+
}) : (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
o[k2] = m[k];
|
|
25
|
+
}));
|
|
26
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
27
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
28
|
+
}) : function(o, v) {
|
|
29
|
+
o["default"] = v;
|
|
30
|
+
});
|
|
31
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
32
|
+
var ownKeys = function(o) {
|
|
33
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
34
|
+
var ar = [];
|
|
35
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
36
|
+
return ar;
|
|
37
|
+
};
|
|
38
|
+
return ownKeys(o);
|
|
39
|
+
};
|
|
40
|
+
return function (mod) {
|
|
41
|
+
if (mod && mod.__esModule) return mod;
|
|
42
|
+
var result = {};
|
|
43
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
44
|
+
__setModuleDefault(result, mod);
|
|
45
|
+
return result;
|
|
46
|
+
};
|
|
47
|
+
})();
|
|
48
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
49
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
50
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
51
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
52
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
53
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
54
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
55
|
+
});
|
|
56
|
+
};
|
|
57
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
58
|
+
exports.AdminFileManagementApi = void 0;
|
|
59
|
+
const runtime = __importStar(require("../runtime"));
|
|
60
|
+
const index_1 = require("../models/index");
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
*/
|
|
64
|
+
class AdminFileManagementApi extends runtime.BaseAPI {
|
|
65
|
+
/**
|
|
66
|
+
* Delete a file from S3/Minio storage by providing its URL.
|
|
67
|
+
* Admin Delete File
|
|
68
|
+
*/
|
|
69
|
+
apiAdminUploadDeleteRaw(requestParameters, initOverrides) {
|
|
70
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
71
|
+
const queryParameters = {};
|
|
72
|
+
const headerParameters = {};
|
|
73
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
74
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
75
|
+
headerParameters["api-key"] = yield this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
76
|
+
}
|
|
77
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
78
|
+
const token = this.configuration.accessToken;
|
|
79
|
+
const tokenString = yield token("BearerAuth", []);
|
|
80
|
+
if (tokenString) {
|
|
81
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
const response = yield this.request({
|
|
85
|
+
path: `/api/admin/upload`,
|
|
86
|
+
method: 'DELETE',
|
|
87
|
+
headers: headerParameters,
|
|
88
|
+
query: queryParameters,
|
|
89
|
+
body: (0, index_1.ApiAdminUploadPost200ResponseResponseObjectToJSON)(requestParameters['apiAdminUploadPost200ResponseResponseObject']),
|
|
90
|
+
}, initOverrides);
|
|
91
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiHealthCheckGet200ResponseFromJSON)(jsonValue));
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Delete a file from S3/Minio storage by providing its URL.
|
|
96
|
+
* Admin Delete File
|
|
97
|
+
*/
|
|
98
|
+
apiAdminUploadDelete() {
|
|
99
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
100
|
+
const response = yield this.apiAdminUploadDeleteRaw(requestParameters, initOverrides);
|
|
101
|
+
return yield response.value();
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Upload any type of file. Images will be automatically compressed and resized to max 1080px.
|
|
106
|
+
* Admin Upload File
|
|
107
|
+
*/
|
|
108
|
+
apiAdminUploadPostRaw(requestParameters, initOverrides) {
|
|
109
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
110
|
+
if (requestParameters['file'] == null) {
|
|
111
|
+
throw new runtime.RequiredError('file', 'Required parameter "file" was null or undefined when calling apiAdminUploadPost().');
|
|
112
|
+
}
|
|
113
|
+
const queryParameters = {};
|
|
114
|
+
const headerParameters = {};
|
|
115
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
116
|
+
headerParameters["api-key"] = yield this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
117
|
+
}
|
|
118
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
119
|
+
const token = this.configuration.accessToken;
|
|
120
|
+
const tokenString = yield token("BearerAuth", []);
|
|
121
|
+
if (tokenString) {
|
|
122
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
const consumes = [
|
|
126
|
+
{ contentType: 'multipart/form-data' },
|
|
127
|
+
];
|
|
128
|
+
// @ts-ignore: canConsumeForm may be unused
|
|
129
|
+
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
130
|
+
let formParams;
|
|
131
|
+
let useForm = false;
|
|
132
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
133
|
+
useForm = canConsumeForm;
|
|
134
|
+
if (useForm) {
|
|
135
|
+
formParams = new FormData();
|
|
136
|
+
}
|
|
137
|
+
else {
|
|
138
|
+
formParams = new URLSearchParams();
|
|
139
|
+
}
|
|
140
|
+
if (requestParameters['file'] != null) {
|
|
141
|
+
formParams.append('file', requestParameters['file']);
|
|
142
|
+
}
|
|
143
|
+
const response = yield this.request({
|
|
144
|
+
path: `/api/admin/upload`,
|
|
145
|
+
method: 'POST',
|
|
146
|
+
headers: headerParameters,
|
|
147
|
+
query: queryParameters,
|
|
148
|
+
body: formParams,
|
|
149
|
+
}, initOverrides);
|
|
150
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiAdminUploadPost200ResponseFromJSON)(jsonValue));
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Upload any type of file. Images will be automatically compressed and resized to max 1080px.
|
|
155
|
+
* Admin Upload File
|
|
156
|
+
*/
|
|
157
|
+
apiAdminUploadPost(requestParameters, initOverrides) {
|
|
158
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
159
|
+
const response = yield this.apiAdminUploadPostRaw(requestParameters, initOverrides);
|
|
160
|
+
return yield response.value();
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
exports.AdminFileManagementApi = AdminFileManagementApi;
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Swagger 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
|
+
ApiAdminUploadPost200Response,
|
|
19
|
+
ApiAdminUploadPost200ResponseResponseObject,
|
|
20
|
+
ApiHealthCheckGet200Response,
|
|
21
|
+
} from '../models/index';
|
|
22
|
+
import {
|
|
23
|
+
ApiAdminUploadPost200ResponseFromJSON,
|
|
24
|
+
ApiAdminUploadPost200ResponseToJSON,
|
|
25
|
+
ApiAdminUploadPost200ResponseResponseObjectFromJSON,
|
|
26
|
+
ApiAdminUploadPost200ResponseResponseObjectToJSON,
|
|
27
|
+
ApiHealthCheckGet200ResponseFromJSON,
|
|
28
|
+
ApiHealthCheckGet200ResponseToJSON,
|
|
29
|
+
} from '../models/index';
|
|
30
|
+
|
|
31
|
+
export interface ApiAdminUploadDeleteRequest {
|
|
32
|
+
apiAdminUploadPost200ResponseResponseObject?: ApiAdminUploadPost200ResponseResponseObject;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface ApiAdminUploadPostRequest {
|
|
36
|
+
file: Blob;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
*/
|
|
42
|
+
export class AdminFileManagementApi extends runtime.BaseAPI {
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Delete a file from S3/Minio storage by providing its URL.
|
|
46
|
+
* Admin Delete File
|
|
47
|
+
*/
|
|
48
|
+
async apiAdminUploadDeleteRaw(requestParameters: ApiAdminUploadDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiHealthCheckGet200Response>> {
|
|
49
|
+
const queryParameters: any = {};
|
|
50
|
+
|
|
51
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
52
|
+
|
|
53
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
54
|
+
|
|
55
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
56
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
60
|
+
const token = this.configuration.accessToken;
|
|
61
|
+
const tokenString = await token("BearerAuth", []);
|
|
62
|
+
|
|
63
|
+
if (tokenString) {
|
|
64
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
const response = await this.request({
|
|
68
|
+
path: `/api/admin/upload`,
|
|
69
|
+
method: 'DELETE',
|
|
70
|
+
headers: headerParameters,
|
|
71
|
+
query: queryParameters,
|
|
72
|
+
body: ApiAdminUploadPost200ResponseResponseObjectToJSON(requestParameters['apiAdminUploadPost200ResponseResponseObject']),
|
|
73
|
+
}, initOverrides);
|
|
74
|
+
|
|
75
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiHealthCheckGet200ResponseFromJSON(jsonValue));
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Delete a file from S3/Minio storage by providing its URL.
|
|
80
|
+
* Admin Delete File
|
|
81
|
+
*/
|
|
82
|
+
async apiAdminUploadDelete(requestParameters: ApiAdminUploadDeleteRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiHealthCheckGet200Response> {
|
|
83
|
+
const response = await this.apiAdminUploadDeleteRaw(requestParameters, initOverrides);
|
|
84
|
+
return await response.value();
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Upload any type of file. Images will be automatically compressed and resized to max 1080px.
|
|
89
|
+
* Admin Upload File
|
|
90
|
+
*/
|
|
91
|
+
async apiAdminUploadPostRaw(requestParameters: ApiAdminUploadPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAdminUploadPost200Response>> {
|
|
92
|
+
if (requestParameters['file'] == null) {
|
|
93
|
+
throw new runtime.RequiredError(
|
|
94
|
+
'file',
|
|
95
|
+
'Required parameter "file" was null or undefined when calling apiAdminUploadPost().'
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
const queryParameters: any = {};
|
|
100
|
+
|
|
101
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
102
|
+
|
|
103
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
104
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
108
|
+
const token = this.configuration.accessToken;
|
|
109
|
+
const tokenString = await token("BearerAuth", []);
|
|
110
|
+
|
|
111
|
+
if (tokenString) {
|
|
112
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
const consumes: runtime.Consume[] = [
|
|
116
|
+
{ contentType: 'multipart/form-data' },
|
|
117
|
+
];
|
|
118
|
+
// @ts-ignore: canConsumeForm may be unused
|
|
119
|
+
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
120
|
+
|
|
121
|
+
let formParams: { append(param: string, value: any): any };
|
|
122
|
+
let useForm = false;
|
|
123
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
124
|
+
useForm = canConsumeForm;
|
|
125
|
+
if (useForm) {
|
|
126
|
+
formParams = new FormData();
|
|
127
|
+
} else {
|
|
128
|
+
formParams = new URLSearchParams();
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
if (requestParameters['file'] != null) {
|
|
132
|
+
formParams.append('file', requestParameters['file'] as any);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
const response = await this.request({
|
|
136
|
+
path: `/api/admin/upload`,
|
|
137
|
+
method: 'POST',
|
|
138
|
+
headers: headerParameters,
|
|
139
|
+
query: queryParameters,
|
|
140
|
+
body: formParams,
|
|
141
|
+
}, initOverrides);
|
|
142
|
+
|
|
143
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiAdminUploadPost200ResponseFromJSON(jsonValue));
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Upload any type of file. Images will be automatically compressed and resized to max 1080px.
|
|
148
|
+
* Admin Upload File
|
|
149
|
+
*/
|
|
150
|
+
async apiAdminUploadPost(requestParameters: ApiAdminUploadPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAdminUploadPost200Response> {
|
|
151
|
+
const response = await this.apiAdminUploadPostRaw(requestParameters, initOverrides);
|
|
152
|
+
return await response.value();
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
}
|
package/apis/index.js
CHANGED
|
@@ -24,6 +24,7 @@ __exportStar(require("./AdminCategoryApi"), exports);
|
|
|
24
24
|
__exportStar(require("./AdminChatApi"), exports);
|
|
25
25
|
__exportStar(require("./AdminDashboardApi"), exports);
|
|
26
26
|
__exportStar(require("./AdminExchangeApi"), exports);
|
|
27
|
+
__exportStar(require("./AdminFileManagementApi"), exports);
|
|
27
28
|
__exportStar(require("./AdminGamesApi"), exports);
|
|
28
29
|
__exportStar(require("./AdminGroupApi"), exports);
|
|
29
30
|
__exportStar(require("./AdminLoyaltyApi"), exports);
|
package/apis/index.ts
CHANGED
|
@@ -8,6 +8,7 @@ export * from './AdminCategoryApi';
|
|
|
8
8
|
export * from './AdminChatApi';
|
|
9
9
|
export * from './AdminDashboardApi';
|
|
10
10
|
export * from './AdminExchangeApi';
|
|
11
|
+
export * from './AdminFileManagementApi';
|
|
11
12
|
export * from './AdminGamesApi';
|
|
12
13
|
export * from './AdminGroupApi';
|
|
13
14
|
export * from './AdminLoyaltyApi';
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Swagger API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfApiAdminUploadPost200Response = instanceOfApiAdminUploadPost200Response;
|
|
17
|
+
exports.ApiAdminUploadPost200ResponseFromJSON = ApiAdminUploadPost200ResponseFromJSON;
|
|
18
|
+
exports.ApiAdminUploadPost200ResponseFromJSONTyped = ApiAdminUploadPost200ResponseFromJSONTyped;
|
|
19
|
+
exports.ApiAdminUploadPost200ResponseToJSON = ApiAdminUploadPost200ResponseToJSON;
|
|
20
|
+
exports.ApiAdminUploadPost200ResponseToJSONTyped = ApiAdminUploadPost200ResponseToJSONTyped;
|
|
21
|
+
const ApiAdminUploadPost200ResponseResponseObject_1 = require("./ApiAdminUploadPost200ResponseResponseObject");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ApiAdminUploadPost200Response interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfApiAdminUploadPost200Response(value) {
|
|
26
|
+
if (!('success' in value) || value['success'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('statusCode' in value) || value['statusCode'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
function ApiAdminUploadPost200ResponseFromJSON(json) {
|
|
35
|
+
return ApiAdminUploadPost200ResponseFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
function ApiAdminUploadPost200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'success': json['success'],
|
|
43
|
+
'message': json['message'],
|
|
44
|
+
'responseObject': json['responseObject'] == null ? undefined : (0, ApiAdminUploadPost200ResponseResponseObject_1.ApiAdminUploadPost200ResponseResponseObjectFromJSON)(json['responseObject']),
|
|
45
|
+
'statusCode': json['statusCode'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function ApiAdminUploadPost200ResponseToJSON(json) {
|
|
49
|
+
return ApiAdminUploadPost200ResponseToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function ApiAdminUploadPost200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'success': value['success'],
|
|
57
|
+
'message': value['message'],
|
|
58
|
+
'responseObject': (0, ApiAdminUploadPost200ResponseResponseObject_1.ApiAdminUploadPost200ResponseResponseObjectToJSON)(value['responseObject']),
|
|
59
|
+
'statusCode': value['statusCode'],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Swagger 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 { ApiAdminUploadPost200ResponseResponseObject } from './ApiAdminUploadPost200ResponseResponseObject';
|
|
17
|
+
import {
|
|
18
|
+
ApiAdminUploadPost200ResponseResponseObjectFromJSON,
|
|
19
|
+
ApiAdminUploadPost200ResponseResponseObjectFromJSONTyped,
|
|
20
|
+
ApiAdminUploadPost200ResponseResponseObjectToJSON,
|
|
21
|
+
ApiAdminUploadPost200ResponseResponseObjectToJSONTyped,
|
|
22
|
+
} from './ApiAdminUploadPost200ResponseResponseObject';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiAdminUploadPost200Response
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiAdminUploadPost200Response {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof ApiAdminUploadPost200Response
|
|
34
|
+
*/
|
|
35
|
+
success: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ApiAdminUploadPost200Response
|
|
40
|
+
*/
|
|
41
|
+
message: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {ApiAdminUploadPost200ResponseResponseObject}
|
|
45
|
+
* @memberof ApiAdminUploadPost200Response
|
|
46
|
+
*/
|
|
47
|
+
responseObject?: ApiAdminUploadPost200ResponseResponseObject;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ApiAdminUploadPost200Response
|
|
52
|
+
*/
|
|
53
|
+
statusCode: number;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the ApiAdminUploadPost200Response interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfApiAdminUploadPost200Response(value: object): value is ApiAdminUploadPost200Response {
|
|
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 ApiAdminUploadPost200ResponseFromJSON(json: any): ApiAdminUploadPost200Response {
|
|
67
|
+
return ApiAdminUploadPost200ResponseFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function ApiAdminUploadPost200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAdminUploadPost200Response {
|
|
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 : ApiAdminUploadPost200ResponseResponseObjectFromJSON(json['responseObject']),
|
|
79
|
+
'statusCode': json['statusCode'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function ApiAdminUploadPost200ResponseToJSON(json: any): ApiAdminUploadPost200Response {
|
|
84
|
+
return ApiAdminUploadPost200ResponseToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function ApiAdminUploadPost200ResponseToJSONTyped(value?: ApiAdminUploadPost200Response | 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': ApiAdminUploadPost200ResponseResponseObjectToJSON(value['responseObject']),
|
|
97
|
+
'statusCode': value['statusCode'],
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Swagger API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfApiAdminUploadPost200ResponseResponseObject = instanceOfApiAdminUploadPost200ResponseResponseObject;
|
|
17
|
+
exports.ApiAdminUploadPost200ResponseResponseObjectFromJSON = ApiAdminUploadPost200ResponseResponseObjectFromJSON;
|
|
18
|
+
exports.ApiAdminUploadPost200ResponseResponseObjectFromJSONTyped = ApiAdminUploadPost200ResponseResponseObjectFromJSONTyped;
|
|
19
|
+
exports.ApiAdminUploadPost200ResponseResponseObjectToJSON = ApiAdminUploadPost200ResponseResponseObjectToJSON;
|
|
20
|
+
exports.ApiAdminUploadPost200ResponseResponseObjectToJSONTyped = ApiAdminUploadPost200ResponseResponseObjectToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ApiAdminUploadPost200ResponseResponseObject interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfApiAdminUploadPost200ResponseResponseObject(value) {
|
|
25
|
+
if (!('url' in value) || value['url'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function ApiAdminUploadPost200ResponseResponseObjectFromJSON(json) {
|
|
30
|
+
return ApiAdminUploadPost200ResponseResponseObjectFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function ApiAdminUploadPost200ResponseResponseObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'url': json['url'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function ApiAdminUploadPost200ResponseResponseObjectToJSON(json) {
|
|
41
|
+
return ApiAdminUploadPost200ResponseResponseObjectToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function ApiAdminUploadPost200ResponseResponseObjectToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'url': value['url'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Swagger 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 ApiAdminUploadPost200ResponseResponseObject
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiAdminUploadPost200ResponseResponseObject {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ApiAdminUploadPost200ResponseResponseObject
|
|
26
|
+
*/
|
|
27
|
+
url: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ApiAdminUploadPost200ResponseResponseObject interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfApiAdminUploadPost200ResponseResponseObject(value: object): value is ApiAdminUploadPost200ResponseResponseObject {
|
|
34
|
+
if (!('url' in value) || value['url'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function ApiAdminUploadPost200ResponseResponseObjectFromJSON(json: any): ApiAdminUploadPost200ResponseResponseObject {
|
|
39
|
+
return ApiAdminUploadPost200ResponseResponseObjectFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function ApiAdminUploadPost200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAdminUploadPost200ResponseResponseObject {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'url': json['url'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function ApiAdminUploadPost200ResponseResponseObjectToJSON(json: any): ApiAdminUploadPost200ResponseResponseObject {
|
|
53
|
+
return ApiAdminUploadPost200ResponseResponseObjectToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function ApiAdminUploadPost200ResponseResponseObjectToJSONTyped(value?: ApiAdminUploadPost200ResponseResponseObject | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'url': value['url'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
package/models/index.js
CHANGED
|
@@ -168,6 +168,8 @@ __exportStar(require("./ApiAdminPsWithdrawalPostRequest"), exports);
|
|
|
168
168
|
__exportStar(require("./ApiAdminPutRequest"), exports);
|
|
169
169
|
__exportStar(require("./ApiAdminRateFiatvsfiatGet200Response"), exports);
|
|
170
170
|
__exportStar(require("./ApiAdminRegisterPostRequest"), exports);
|
|
171
|
+
__exportStar(require("./ApiAdminUploadPost200Response"), exports);
|
|
172
|
+
__exportStar(require("./ApiAdminUploadPost200ResponseResponseObject"), exports);
|
|
171
173
|
__exportStar(require("./ApiAdminUserWagerReportGet200Response"), exports);
|
|
172
174
|
__exportStar(require("./ApiAdminUserWagerReportGet200ResponseResponseObject"), exports);
|
|
173
175
|
__exportStar(require("./ApiAdminUserWagerReportGet200ResponseResponseObjectAnyOfInner"), exports);
|
package/models/index.ts
CHANGED
|
@@ -152,6 +152,8 @@ export * from './ApiAdminPsWithdrawalPostRequest';
|
|
|
152
152
|
export * from './ApiAdminPutRequest';
|
|
153
153
|
export * from './ApiAdminRateFiatvsfiatGet200Response';
|
|
154
154
|
export * from './ApiAdminRegisterPostRequest';
|
|
155
|
+
export * from './ApiAdminUploadPost200Response';
|
|
156
|
+
export * from './ApiAdminUploadPost200ResponseResponseObject';
|
|
155
157
|
export * from './ApiAdminUserWagerReportGet200Response';
|
|
156
158
|
export * from './ApiAdminUserWagerReportGet200ResponseResponseObject';
|
|
157
159
|
export * from './ApiAdminUserWagerReportGet200ResponseResponseObjectAnyOfInner';
|