@gambulls-org/gambulls-apis 3.0.875 → 3.0.877
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 +11 -0
- package/apis/AdminBackgroundTasksApi.js +141 -0
- package/apis/AdminBackgroundTasksApi.ts +146 -0
- package/apis/AdminGamesApi.js +7 -5
- package/apis/AdminGamesApi.ts +17 -4
- package/apis/index.js +1 -0
- package/apis/index.ts +1 -0
- package/models/ApiAdminBackgroundTasksGet200Response.js +61 -0
- package/models/ApiAdminBackgroundTasksGet200Response.ts +100 -0
- package/models/ApiAdminBackgroundTasksGet200ResponseResponseObject.js +67 -0
- package/models/ApiAdminBackgroundTasksGet200ResponseResponseObject.ts +110 -0
- package/models/ApiAdminBackgroundTasksGetFilterParameter.js +77 -0
- package/models/ApiAdminBackgroundTasksGetFilterParameter.ts +197 -0
- package/models/ApiAdminBackgroundTasksGetFilterParameterStatus.js +59 -0
- package/models/ApiAdminBackgroundTasksGetFilterParameterStatus.ts +79 -0
- package/models/ApiAdminBackgroundTasksGetFilterParameterType.js +58 -0
- package/models/ApiAdminBackgroundTasksGetFilterParameterType.ts +78 -0
- package/models/ApiAdminBackgroundTasksTaskIdGet200Response.js +61 -0
- package/models/ApiAdminBackgroundTasksTaskIdGet200Response.ts +100 -0
- package/models/ApiAdminBackgroundTasksTaskIdGet200ResponseResponseObject.js +122 -0
- package/models/ApiAdminBackgroundTasksTaskIdGet200ResponseResponseObject.ts +215 -0
- package/models/ApiAdminGamesFetchPost200Response.js +61 -0
- package/models/ApiAdminGamesFetchPost200Response.ts +100 -0
- package/models/ApiAdminGamesFetchPost200ResponseResponseObject.js +69 -0
- package/models/ApiAdminGamesFetchPost200ResponseResponseObject.ts +98 -0
- package/models/ApiAdminGamesFetchPostRequest.js +57 -0
- package/models/ApiAdminGamesFetchPostRequest.ts +77 -0
- package/models/index.js +10 -0
- package/models/index.ts +10 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
apis/AdminAffiliateApi.ts
|
|
2
2
|
apis/AdminAppConfigApi.ts
|
|
3
3
|
apis/AdminAuthApi.ts
|
|
4
|
+
apis/AdminBackgroundTasksApi.ts
|
|
4
5
|
apis/AdminBannerApi.ts
|
|
5
6
|
apis/AdminBonusApi.ts
|
|
6
7
|
apis/AdminCategoryApi.ts
|
|
@@ -121,6 +122,13 @@ models/ApiAdminAggregatorCategoryMappingsGetFilterParameter.ts
|
|
|
121
122
|
models/ApiAdminAggregatorCategoryMappingsGetFilterParameterStatus.ts
|
|
122
123
|
models/ApiAdminAggregatorCategoryMappingsIdPut200Response.ts
|
|
123
124
|
models/ApiAdminAggregatorCategoryMappingsIdPutRequest.ts
|
|
125
|
+
models/ApiAdminBackgroundTasksGet200Response.ts
|
|
126
|
+
models/ApiAdminBackgroundTasksGet200ResponseResponseObject.ts
|
|
127
|
+
models/ApiAdminBackgroundTasksGetFilterParameter.ts
|
|
128
|
+
models/ApiAdminBackgroundTasksGetFilterParameterStatus.ts
|
|
129
|
+
models/ApiAdminBackgroundTasksGetFilterParameterType.ts
|
|
130
|
+
models/ApiAdminBackgroundTasksTaskIdGet200Response.ts
|
|
131
|
+
models/ApiAdminBackgroundTasksTaskIdGet200ResponseResponseObject.ts
|
|
124
132
|
models/ApiAdminBannersBannerIdPutRequest.ts
|
|
125
133
|
models/ApiAdminBannersGet200Response.ts
|
|
126
134
|
models/ApiAdminBannersGet200ResponseResponseObjectInner.ts
|
|
@@ -250,6 +258,9 @@ models/ApiAdminDepositBonusTemplatesGet200ResponseResponseObject.ts
|
|
|
250
258
|
models/ApiAdminDepositBonusTemplatesGet200ResponseResponseObjectTemplatesInner.ts
|
|
251
259
|
models/ApiAdminGamesBulkRecommendPutRequest.ts
|
|
252
260
|
models/ApiAdminGamesBulkStatusPutRequest.ts
|
|
261
|
+
models/ApiAdminGamesFetchPost200Response.ts
|
|
262
|
+
models/ApiAdminGamesFetchPost200ResponseResponseObject.ts
|
|
263
|
+
models/ApiAdminGamesFetchPostRequest.ts
|
|
253
264
|
models/ApiAdminGamesFilterDataGet200Response.ts
|
|
254
265
|
models/ApiAdminGamesFilterDataGet200ResponseResponseObject.ts
|
|
255
266
|
models/ApiAdminGamesFilterDataGet200ResponseResponseObjectProvidersInner.ts
|
|
@@ -0,0 +1,141 @@
|
|
|
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 (mod) {
|
|
32
|
+
if (mod && mod.__esModule) return mod;
|
|
33
|
+
var result = {};
|
|
34
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
35
|
+
__setModuleDefault(result, mod);
|
|
36
|
+
return result;
|
|
37
|
+
};
|
|
38
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
40
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
41
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
42
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
43
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
44
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
exports.AdminBackgroundTasksApi = void 0;
|
|
49
|
+
const runtime = __importStar(require("../runtime"));
|
|
50
|
+
const index_1 = require("../models/index");
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
*/
|
|
54
|
+
class AdminBackgroundTasksApi extends runtime.BaseAPI {
|
|
55
|
+
/**
|
|
56
|
+
* Background Task List
|
|
57
|
+
*/
|
|
58
|
+
apiAdminBackgroundTasksGetRaw(requestParameters, initOverrides) {
|
|
59
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
60
|
+
const queryParameters = {};
|
|
61
|
+
if (requestParameters['page'] != null) {
|
|
62
|
+
queryParameters['page'] = requestParameters['page'];
|
|
63
|
+
}
|
|
64
|
+
if (requestParameters['pageSize'] != null) {
|
|
65
|
+
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
66
|
+
}
|
|
67
|
+
if (requestParameters['sort'] != null) {
|
|
68
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
69
|
+
}
|
|
70
|
+
if (requestParameters['filter'] != null) {
|
|
71
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
72
|
+
}
|
|
73
|
+
const headerParameters = {};
|
|
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/background-tasks`,
|
|
86
|
+
method: 'GET',
|
|
87
|
+
headers: headerParameters,
|
|
88
|
+
query: queryParameters,
|
|
89
|
+
}, initOverrides);
|
|
90
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiAdminBackgroundTasksGet200ResponseFromJSON)(jsonValue));
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Background Task List
|
|
95
|
+
*/
|
|
96
|
+
apiAdminBackgroundTasksGet() {
|
|
97
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
98
|
+
const response = yield this.apiAdminBackgroundTasksGetRaw(requestParameters, initOverrides);
|
|
99
|
+
return yield response.value();
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Background Task Detail
|
|
104
|
+
*/
|
|
105
|
+
apiAdminBackgroundTasksTaskIdGetRaw(requestParameters, initOverrides) {
|
|
106
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
107
|
+
if (requestParameters['taskId'] == null) {
|
|
108
|
+
throw new runtime.RequiredError('taskId', 'Required parameter "taskId" was null or undefined when calling apiAdminBackgroundTasksTaskIdGet().');
|
|
109
|
+
}
|
|
110
|
+
const queryParameters = {};
|
|
111
|
+
const headerParameters = {};
|
|
112
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
113
|
+
headerParameters["api-key"] = yield this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
114
|
+
}
|
|
115
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
116
|
+
const token = this.configuration.accessToken;
|
|
117
|
+
const tokenString = yield token("BearerAuth", []);
|
|
118
|
+
if (tokenString) {
|
|
119
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
const response = yield this.request({
|
|
123
|
+
path: `/api/admin/background-tasks/{taskId}`.replace(`{${"taskId"}}`, encodeURIComponent(String(requestParameters['taskId']))),
|
|
124
|
+
method: 'GET',
|
|
125
|
+
headers: headerParameters,
|
|
126
|
+
query: queryParameters,
|
|
127
|
+
}, initOverrides);
|
|
128
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiAdminBackgroundTasksTaskIdGet200ResponseFromJSON)(jsonValue));
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Background Task Detail
|
|
133
|
+
*/
|
|
134
|
+
apiAdminBackgroundTasksTaskIdGet(requestParameters, initOverrides) {
|
|
135
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
136
|
+
const response = yield this.apiAdminBackgroundTasksTaskIdGetRaw(requestParameters, initOverrides);
|
|
137
|
+
return yield response.value();
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
exports.AdminBackgroundTasksApi = AdminBackgroundTasksApi;
|
|
@@ -0,0 +1,146 @@
|
|
|
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
|
+
ApiAdminBackgroundTasksGet200Response,
|
|
19
|
+
ApiAdminBackgroundTasksGetFilterParameter,
|
|
20
|
+
ApiAdminBackgroundTasksTaskIdGet200Response,
|
|
21
|
+
} from '../models/index';
|
|
22
|
+
import {
|
|
23
|
+
ApiAdminBackgroundTasksGet200ResponseFromJSON,
|
|
24
|
+
ApiAdminBackgroundTasksGet200ResponseToJSON,
|
|
25
|
+
ApiAdminBackgroundTasksGetFilterParameterFromJSON,
|
|
26
|
+
ApiAdminBackgroundTasksGetFilterParameterToJSON,
|
|
27
|
+
ApiAdminBackgroundTasksTaskIdGet200ResponseFromJSON,
|
|
28
|
+
ApiAdminBackgroundTasksTaskIdGet200ResponseToJSON,
|
|
29
|
+
} from '../models/index';
|
|
30
|
+
|
|
31
|
+
export interface ApiAdminBackgroundTasksGetRequest {
|
|
32
|
+
page?: number;
|
|
33
|
+
pageSize?: number;
|
|
34
|
+
sort?: string;
|
|
35
|
+
filter?: ApiAdminBackgroundTasksGetFilterParameter;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface ApiAdminBackgroundTasksTaskIdGetRequest {
|
|
39
|
+
taskId: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
*/
|
|
45
|
+
export class AdminBackgroundTasksApi extends runtime.BaseAPI {
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Background Task List
|
|
49
|
+
*/
|
|
50
|
+
async apiAdminBackgroundTasksGetRaw(requestParameters: ApiAdminBackgroundTasksGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAdminBackgroundTasksGet200Response>> {
|
|
51
|
+
const queryParameters: any = {};
|
|
52
|
+
|
|
53
|
+
if (requestParameters['page'] != null) {
|
|
54
|
+
queryParameters['page'] = requestParameters['page'];
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
if (requestParameters['pageSize'] != null) {
|
|
58
|
+
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
if (requestParameters['sort'] != null) {
|
|
62
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
if (requestParameters['filter'] != null) {
|
|
66
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
70
|
+
|
|
71
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
72
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
76
|
+
const token = this.configuration.accessToken;
|
|
77
|
+
const tokenString = await token("BearerAuth", []);
|
|
78
|
+
|
|
79
|
+
if (tokenString) {
|
|
80
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
const response = await this.request({
|
|
84
|
+
path: `/api/admin/background-tasks`,
|
|
85
|
+
method: 'GET',
|
|
86
|
+
headers: headerParameters,
|
|
87
|
+
query: queryParameters,
|
|
88
|
+
}, initOverrides);
|
|
89
|
+
|
|
90
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiAdminBackgroundTasksGet200ResponseFromJSON(jsonValue));
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Background Task List
|
|
95
|
+
*/
|
|
96
|
+
async apiAdminBackgroundTasksGet(requestParameters: ApiAdminBackgroundTasksGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAdminBackgroundTasksGet200Response> {
|
|
97
|
+
const response = await this.apiAdminBackgroundTasksGetRaw(requestParameters, initOverrides);
|
|
98
|
+
return await response.value();
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Background Task Detail
|
|
103
|
+
*/
|
|
104
|
+
async apiAdminBackgroundTasksTaskIdGetRaw(requestParameters: ApiAdminBackgroundTasksTaskIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAdminBackgroundTasksTaskIdGet200Response>> {
|
|
105
|
+
if (requestParameters['taskId'] == null) {
|
|
106
|
+
throw new runtime.RequiredError(
|
|
107
|
+
'taskId',
|
|
108
|
+
'Required parameter "taskId" was null or undefined when calling apiAdminBackgroundTasksTaskIdGet().'
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
const queryParameters: any = {};
|
|
113
|
+
|
|
114
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
115
|
+
|
|
116
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
117
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
121
|
+
const token = this.configuration.accessToken;
|
|
122
|
+
const tokenString = await token("BearerAuth", []);
|
|
123
|
+
|
|
124
|
+
if (tokenString) {
|
|
125
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
const response = await this.request({
|
|
129
|
+
path: `/api/admin/background-tasks/{taskId}`.replace(`{${"taskId"}}`, encodeURIComponent(String(requestParameters['taskId']))),
|
|
130
|
+
method: 'GET',
|
|
131
|
+
headers: headerParameters,
|
|
132
|
+
query: queryParameters,
|
|
133
|
+
}, initOverrides);
|
|
134
|
+
|
|
135
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiAdminBackgroundTasksTaskIdGet200ResponseFromJSON(jsonValue));
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Background Task Detail
|
|
140
|
+
*/
|
|
141
|
+
async apiAdminBackgroundTasksTaskIdGet(requestParameters: ApiAdminBackgroundTasksTaskIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAdminBackgroundTasksTaskIdGet200Response> {
|
|
142
|
+
const response = await this.apiAdminBackgroundTasksTaskIdGetRaw(requestParameters, initOverrides);
|
|
143
|
+
return await response.value();
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
}
|
package/apis/AdminGamesApi.js
CHANGED
|
@@ -211,10 +211,11 @@ class AdminGamesApi extends runtime.BaseAPI {
|
|
|
211
211
|
/**
|
|
212
212
|
* Game(s) Refresh
|
|
213
213
|
*/
|
|
214
|
-
apiAdminGamesFetchPostRaw(initOverrides) {
|
|
214
|
+
apiAdminGamesFetchPostRaw(requestParameters, initOverrides) {
|
|
215
215
|
return __awaiter(this, void 0, void 0, function* () {
|
|
216
216
|
const queryParameters = {};
|
|
217
217
|
const headerParameters = {};
|
|
218
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
218
219
|
if (this.configuration && this.configuration.apiKey) {
|
|
219
220
|
headerParameters["api-key"] = yield this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
220
221
|
}
|
|
@@ -230,16 +231,17 @@ class AdminGamesApi extends runtime.BaseAPI {
|
|
|
230
231
|
method: 'POST',
|
|
231
232
|
headers: headerParameters,
|
|
232
233
|
query: queryParameters,
|
|
234
|
+
body: (0, index_1.ApiAdminGamesFetchPostRequestToJSON)(requestParameters['apiAdminGamesFetchPostRequest']),
|
|
233
235
|
}, initOverrides);
|
|
234
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.
|
|
236
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiAdminGamesFetchPost200ResponseFromJSON)(jsonValue));
|
|
235
237
|
});
|
|
236
238
|
}
|
|
237
239
|
/**
|
|
238
240
|
* Game(s) Refresh
|
|
239
241
|
*/
|
|
240
|
-
apiAdminGamesFetchPost(
|
|
241
|
-
return __awaiter(this,
|
|
242
|
-
const response = yield this.apiAdminGamesFetchPostRaw(initOverrides);
|
|
242
|
+
apiAdminGamesFetchPost() {
|
|
243
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
244
|
+
const response = yield this.apiAdminGamesFetchPostRaw(requestParameters, initOverrides);
|
|
243
245
|
return yield response.value();
|
|
244
246
|
});
|
|
245
247
|
}
|
package/apis/AdminGamesApi.ts
CHANGED
|
@@ -19,6 +19,8 @@ import type {
|
|
|
19
19
|
ApiAdminActiveGamesGetFilterParameter,
|
|
20
20
|
ApiAdminGamesBulkRecommendPutRequest,
|
|
21
21
|
ApiAdminGamesBulkStatusPutRequest,
|
|
22
|
+
ApiAdminGamesFetchPost200Response,
|
|
23
|
+
ApiAdminGamesFetchPostRequest,
|
|
22
24
|
ApiAdminGamesFilterDataGet200Response,
|
|
23
25
|
ApiAdminGamesGameIdPutRequest,
|
|
24
26
|
ApiAdminGamesGet200Response,
|
|
@@ -34,6 +36,10 @@ import {
|
|
|
34
36
|
ApiAdminGamesBulkRecommendPutRequestToJSON,
|
|
35
37
|
ApiAdminGamesBulkStatusPutRequestFromJSON,
|
|
36
38
|
ApiAdminGamesBulkStatusPutRequestToJSON,
|
|
39
|
+
ApiAdminGamesFetchPost200ResponseFromJSON,
|
|
40
|
+
ApiAdminGamesFetchPost200ResponseToJSON,
|
|
41
|
+
ApiAdminGamesFetchPostRequestFromJSON,
|
|
42
|
+
ApiAdminGamesFetchPostRequestToJSON,
|
|
37
43
|
ApiAdminGamesFilterDataGet200ResponseFromJSON,
|
|
38
44
|
ApiAdminGamesFilterDataGet200ResponseToJSON,
|
|
39
45
|
ApiAdminGamesGameIdPutRequestFromJSON,
|
|
@@ -61,6 +67,10 @@ export interface ApiAdminGamesBulkStatusPutOperationRequest {
|
|
|
61
67
|
apiAdminGamesBulkStatusPutRequest?: ApiAdminGamesBulkStatusPutRequest;
|
|
62
68
|
}
|
|
63
69
|
|
|
70
|
+
export interface ApiAdminGamesFetchPostOperationRequest {
|
|
71
|
+
apiAdminGamesFetchPostRequest?: ApiAdminGamesFetchPostRequest;
|
|
72
|
+
}
|
|
73
|
+
|
|
64
74
|
export interface ApiAdminGamesGameIdPutOperationRequest {
|
|
65
75
|
gameId: string;
|
|
66
76
|
apiAdminGamesGameIdPutRequest?: ApiAdminGamesGameIdPutRequest;
|
|
@@ -271,11 +281,13 @@ export class AdminGamesApi extends runtime.BaseAPI {
|
|
|
271
281
|
/**
|
|
272
282
|
* Game(s) Refresh
|
|
273
283
|
*/
|
|
274
|
-
async apiAdminGamesFetchPostRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
284
|
+
async apiAdminGamesFetchPostRaw(requestParameters: ApiAdminGamesFetchPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAdminGamesFetchPost200Response>> {
|
|
275
285
|
const queryParameters: any = {};
|
|
276
286
|
|
|
277
287
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
278
288
|
|
|
289
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
290
|
+
|
|
279
291
|
if (this.configuration && this.configuration.apiKey) {
|
|
280
292
|
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
281
293
|
}
|
|
@@ -293,16 +305,17 @@ export class AdminGamesApi extends runtime.BaseAPI {
|
|
|
293
305
|
method: 'POST',
|
|
294
306
|
headers: headerParameters,
|
|
295
307
|
query: queryParameters,
|
|
308
|
+
body: ApiAdminGamesFetchPostRequestToJSON(requestParameters['apiAdminGamesFetchPostRequest']),
|
|
296
309
|
}, initOverrides);
|
|
297
310
|
|
|
298
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
311
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiAdminGamesFetchPost200ResponseFromJSON(jsonValue));
|
|
299
312
|
}
|
|
300
313
|
|
|
301
314
|
/**
|
|
302
315
|
* Game(s) Refresh
|
|
303
316
|
*/
|
|
304
|
-
async apiAdminGamesFetchPost(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
305
|
-
const response = await this.apiAdminGamesFetchPostRaw(initOverrides);
|
|
317
|
+
async apiAdminGamesFetchPost(requestParameters: ApiAdminGamesFetchPostOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAdminGamesFetchPost200Response> {
|
|
318
|
+
const response = await this.apiAdminGamesFetchPostRaw(requestParameters, initOverrides);
|
|
306
319
|
return await response.value();
|
|
307
320
|
}
|
|
308
321
|
|
package/apis/index.js
CHANGED
|
@@ -19,6 +19,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
19
19
|
__exportStar(require("./AdminAffiliateApi"), exports);
|
|
20
20
|
__exportStar(require("./AdminAppConfigApi"), exports);
|
|
21
21
|
__exportStar(require("./AdminAuthApi"), exports);
|
|
22
|
+
__exportStar(require("./AdminBackgroundTasksApi"), exports);
|
|
22
23
|
__exportStar(require("./AdminBannerApi"), exports);
|
|
23
24
|
__exportStar(require("./AdminBonusApi"), exports);
|
|
24
25
|
__exportStar(require("./AdminCategoryApi"), exports);
|
package/apis/index.ts
CHANGED
|
@@ -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.instanceOfApiAdminBackgroundTasksGet200Response = instanceOfApiAdminBackgroundTasksGet200Response;
|
|
17
|
+
exports.ApiAdminBackgroundTasksGet200ResponseFromJSON = ApiAdminBackgroundTasksGet200ResponseFromJSON;
|
|
18
|
+
exports.ApiAdminBackgroundTasksGet200ResponseFromJSONTyped = ApiAdminBackgroundTasksGet200ResponseFromJSONTyped;
|
|
19
|
+
exports.ApiAdminBackgroundTasksGet200ResponseToJSON = ApiAdminBackgroundTasksGet200ResponseToJSON;
|
|
20
|
+
exports.ApiAdminBackgroundTasksGet200ResponseToJSONTyped = ApiAdminBackgroundTasksGet200ResponseToJSONTyped;
|
|
21
|
+
const ApiAdminBackgroundTasksGet200ResponseResponseObject_1 = require("./ApiAdminBackgroundTasksGet200ResponseResponseObject");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ApiAdminBackgroundTasksGet200Response interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfApiAdminBackgroundTasksGet200Response(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 ApiAdminBackgroundTasksGet200ResponseFromJSON(json) {
|
|
35
|
+
return ApiAdminBackgroundTasksGet200ResponseFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
function ApiAdminBackgroundTasksGet200ResponseFromJSONTyped(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, ApiAdminBackgroundTasksGet200ResponseResponseObject_1.ApiAdminBackgroundTasksGet200ResponseResponseObjectFromJSON)(json['responseObject']),
|
|
45
|
+
'statusCode': json['statusCode'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function ApiAdminBackgroundTasksGet200ResponseToJSON(json) {
|
|
49
|
+
return ApiAdminBackgroundTasksGet200ResponseToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function ApiAdminBackgroundTasksGet200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'success': value['success'],
|
|
57
|
+
'message': value['message'],
|
|
58
|
+
'responseObject': (0, ApiAdminBackgroundTasksGet200ResponseResponseObject_1.ApiAdminBackgroundTasksGet200ResponseResponseObjectToJSON)(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 { ApiAdminBackgroundTasksGet200ResponseResponseObject } from './ApiAdminBackgroundTasksGet200ResponseResponseObject';
|
|
17
|
+
import {
|
|
18
|
+
ApiAdminBackgroundTasksGet200ResponseResponseObjectFromJSON,
|
|
19
|
+
ApiAdminBackgroundTasksGet200ResponseResponseObjectFromJSONTyped,
|
|
20
|
+
ApiAdminBackgroundTasksGet200ResponseResponseObjectToJSON,
|
|
21
|
+
ApiAdminBackgroundTasksGet200ResponseResponseObjectToJSONTyped,
|
|
22
|
+
} from './ApiAdminBackgroundTasksGet200ResponseResponseObject';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiAdminBackgroundTasksGet200Response
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiAdminBackgroundTasksGet200Response {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof ApiAdminBackgroundTasksGet200Response
|
|
34
|
+
*/
|
|
35
|
+
success: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ApiAdminBackgroundTasksGet200Response
|
|
40
|
+
*/
|
|
41
|
+
message: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {ApiAdminBackgroundTasksGet200ResponseResponseObject}
|
|
45
|
+
* @memberof ApiAdminBackgroundTasksGet200Response
|
|
46
|
+
*/
|
|
47
|
+
responseObject?: ApiAdminBackgroundTasksGet200ResponseResponseObject;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ApiAdminBackgroundTasksGet200Response
|
|
52
|
+
*/
|
|
53
|
+
statusCode: number;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the ApiAdminBackgroundTasksGet200Response interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfApiAdminBackgroundTasksGet200Response(value: object): value is ApiAdminBackgroundTasksGet200Response {
|
|
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 ApiAdminBackgroundTasksGet200ResponseFromJSON(json: any): ApiAdminBackgroundTasksGet200Response {
|
|
67
|
+
return ApiAdminBackgroundTasksGet200ResponseFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function ApiAdminBackgroundTasksGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAdminBackgroundTasksGet200Response {
|
|
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 : ApiAdminBackgroundTasksGet200ResponseResponseObjectFromJSON(json['responseObject']),
|
|
79
|
+
'statusCode': json['statusCode'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function ApiAdminBackgroundTasksGet200ResponseToJSON(json: any): ApiAdminBackgroundTasksGet200Response {
|
|
84
|
+
return ApiAdminBackgroundTasksGet200ResponseToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function ApiAdminBackgroundTasksGet200ResponseToJSONTyped(value?: ApiAdminBackgroundTasksGet200Response | 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': ApiAdminBackgroundTasksGet200ResponseResponseObjectToJSON(value['responseObject']),
|
|
97
|
+
'statusCode': value['statusCode'],
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
@@ -0,0 +1,67 @@
|
|
|
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.instanceOfApiAdminBackgroundTasksGet200ResponseResponseObject = instanceOfApiAdminBackgroundTasksGet200ResponseResponseObject;
|
|
17
|
+
exports.ApiAdminBackgroundTasksGet200ResponseResponseObjectFromJSON = ApiAdminBackgroundTasksGet200ResponseResponseObjectFromJSON;
|
|
18
|
+
exports.ApiAdminBackgroundTasksGet200ResponseResponseObjectFromJSONTyped = ApiAdminBackgroundTasksGet200ResponseResponseObjectFromJSONTyped;
|
|
19
|
+
exports.ApiAdminBackgroundTasksGet200ResponseResponseObjectToJSON = ApiAdminBackgroundTasksGet200ResponseResponseObjectToJSON;
|
|
20
|
+
exports.ApiAdminBackgroundTasksGet200ResponseResponseObjectToJSONTyped = ApiAdminBackgroundTasksGet200ResponseResponseObjectToJSONTyped;
|
|
21
|
+
const ApiAdminBackgroundTasksTaskIdGet200ResponseResponseObject_1 = require("./ApiAdminBackgroundTasksTaskIdGet200ResponseResponseObject");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ApiAdminBackgroundTasksGet200ResponseResponseObject interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfApiAdminBackgroundTasksGet200ResponseResponseObject(value) {
|
|
26
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('currentPage' in value) || value['currentPage'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('totalItems' in value) || value['totalItems'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('totalPages' in value) || value['totalPages'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('pageSize' in value) || value['pageSize'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function ApiAdminBackgroundTasksGet200ResponseResponseObjectFromJSON(json) {
|
|
39
|
+
return ApiAdminBackgroundTasksGet200ResponseResponseObjectFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function ApiAdminBackgroundTasksGet200ResponseResponseObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'items': (json['items'].map(ApiAdminBackgroundTasksTaskIdGet200ResponseResponseObject_1.ApiAdminBackgroundTasksTaskIdGet200ResponseResponseObjectFromJSON)),
|
|
47
|
+
'currentPage': json['currentPage'],
|
|
48
|
+
'totalItems': json['totalItems'],
|
|
49
|
+
'totalPages': json['totalPages'],
|
|
50
|
+
'pageSize': json['pageSize'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function ApiAdminBackgroundTasksGet200ResponseResponseObjectToJSON(json) {
|
|
54
|
+
return ApiAdminBackgroundTasksGet200ResponseResponseObjectToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function ApiAdminBackgroundTasksGet200ResponseResponseObjectToJSONTyped(value, ignoreDiscriminator = false) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'items': (value['items'].map(ApiAdminBackgroundTasksTaskIdGet200ResponseResponseObject_1.ApiAdminBackgroundTasksTaskIdGet200ResponseResponseObjectToJSON)),
|
|
62
|
+
'currentPage': value['currentPage'],
|
|
63
|
+
'totalItems': value['totalItems'],
|
|
64
|
+
'totalPages': value['totalPages'],
|
|
65
|
+
'pageSize': value['pageSize'],
|
|
66
|
+
};
|
|
67
|
+
}
|