@gambulls-org/gambulls-apis 3.0.124 → 3.0.126
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 +6 -0
- package/apis/AdminAffiliateApi.js +1 -56
- package/apis/AdminAffiliateApi.ts +0 -76
- package/apis/AdminReportApi.js +176 -0
- package/apis/AdminReportApi.ts +178 -0
- package/apis/index.js +1 -0
- package/apis/index.ts +1 -0
- package/models/ApiAdminUserWagerReportGet200Response.js +61 -0
- package/models/ApiAdminUserWagerReportGet200Response.ts +100 -0
- package/models/ApiAdminUserWagerReportGet200ResponseResponseObject.js +38 -0
- package/models/ApiAdminUserWagerReportGet200ResponseResponseObject.ts +68 -0
- package/models/ApiAdminUserWagerReportGet200ResponseResponseObjectAnyOfInner.js +78 -0
- package/models/ApiAdminUserWagerReportGet200ResponseResponseObjectAnyOfInner.ts +129 -0
- package/models/ApiAdminUserWagerReportGet200ResponseResponseObjectAnyOfInner1.js +90 -0
- package/models/ApiAdminUserWagerReportGet200ResponseResponseObjectAnyOfInner1.ts +156 -0
- package/models/ApiAdminUserWagerReportGet200ResponseResponseObjectAnyOfInner2.js +78 -0
- package/models/ApiAdminUserWagerReportGet200ResponseResponseObjectAnyOfInner2.ts +129 -0
- package/models/index.js +5 -0
- package/models/index.ts +5 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -15,6 +15,7 @@ apis/AdminPaymentSystemApi.ts
|
|
|
15
15
|
apis/AdminPinnedMessageApi.ts
|
|
16
16
|
apis/AdminPolicyApi.ts
|
|
17
17
|
apis/AdminProvidersApi.ts
|
|
18
|
+
apis/AdminReportApi.ts
|
|
18
19
|
apis/AdminUserManagementApi.ts
|
|
19
20
|
apis/AuthApi.ts
|
|
20
21
|
apis/CMSApi.ts
|
|
@@ -198,6 +199,11 @@ models/ApiAdminPsWithdrawalPostRequest.ts
|
|
|
198
199
|
models/ApiAdminPutRequest.ts
|
|
199
200
|
models/ApiAdminRateFiatvsfiatGet200Response.ts
|
|
200
201
|
models/ApiAdminRegisterPostRequest.ts
|
|
202
|
+
models/ApiAdminUserWagerReportGet200Response.ts
|
|
203
|
+
models/ApiAdminUserWagerReportGet200ResponseResponseObject.ts
|
|
204
|
+
models/ApiAdminUserWagerReportGet200ResponseResponseObjectAnyOfInner.ts
|
|
205
|
+
models/ApiAdminUserWagerReportGet200ResponseResponseObjectAnyOfInner1.ts
|
|
206
|
+
models/ApiAdminUserWagerReportGet200ResponseResponseObjectAnyOfInner2.ts
|
|
201
207
|
models/ApiAdminUsersActivePostRequest.ts
|
|
202
208
|
models/ApiAdminUsersBalancePostRequest.ts
|
|
203
209
|
models/ApiAdminUsersDocumentGet200Response.ts
|
|
@@ -55,7 +55,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
55
55
|
});
|
|
56
56
|
};
|
|
57
57
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
58
|
-
exports.
|
|
58
|
+
exports.AdminAffiliateApi = void 0;
|
|
59
59
|
const runtime = __importStar(require("../runtime"));
|
|
60
60
|
const index_1 = require("../models/index");
|
|
61
61
|
/**
|
|
@@ -277,53 +277,6 @@ class AdminAffiliateApi extends runtime.BaseAPI {
|
|
|
277
277
|
return yield response.value();
|
|
278
278
|
});
|
|
279
279
|
}
|
|
280
|
-
/**
|
|
281
|
-
* Affiliate Report
|
|
282
|
-
*/
|
|
283
|
-
apiAdminAffiliateReportGetRaw(requestParameters, initOverrides) {
|
|
284
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
285
|
-
if (requestParameters['type'] == null) {
|
|
286
|
-
throw new runtime.RequiredError('type', 'Required parameter "type" was null or undefined when calling apiAdminAffiliateReportGet().');
|
|
287
|
-
}
|
|
288
|
-
const queryParameters = {};
|
|
289
|
-
if (requestParameters['type'] != null) {
|
|
290
|
-
queryParameters['type'] = requestParameters['type'];
|
|
291
|
-
}
|
|
292
|
-
if (requestParameters['month'] != null) {
|
|
293
|
-
queryParameters['month'] = requestParameters['month'];
|
|
294
|
-
}
|
|
295
|
-
if (requestParameters['year'] != null) {
|
|
296
|
-
queryParameters['year'] = requestParameters['year'];
|
|
297
|
-
}
|
|
298
|
-
const headerParameters = {};
|
|
299
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
300
|
-
headerParameters["api-key"] = yield this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
301
|
-
}
|
|
302
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
303
|
-
const token = this.configuration.accessToken;
|
|
304
|
-
const tokenString = yield token("BearerAuth", []);
|
|
305
|
-
if (tokenString) {
|
|
306
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
const response = yield this.request({
|
|
310
|
-
path: `/api/admin/affiliate/report`,
|
|
311
|
-
method: 'GET',
|
|
312
|
-
headers: headerParameters,
|
|
313
|
-
query: queryParameters,
|
|
314
|
-
}, initOverrides);
|
|
315
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiAdminAffiliateReportGet200ResponseFromJSON)(jsonValue));
|
|
316
|
-
});
|
|
317
|
-
}
|
|
318
|
-
/**
|
|
319
|
-
* Affiliate Report
|
|
320
|
-
*/
|
|
321
|
-
apiAdminAffiliateReportGet(requestParameters, initOverrides) {
|
|
322
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
323
|
-
const response = yield this.apiAdminAffiliateReportGetRaw(requestParameters, initOverrides);
|
|
324
|
-
return yield response.value();
|
|
325
|
-
});
|
|
326
|
-
}
|
|
327
280
|
/**
|
|
328
281
|
* Affiliate User Get List
|
|
329
282
|
*/
|
|
@@ -413,11 +366,3 @@ class AdminAffiliateApi extends runtime.BaseAPI {
|
|
|
413
366
|
}
|
|
414
367
|
}
|
|
415
368
|
exports.AdminAffiliateApi = AdminAffiliateApi;
|
|
416
|
-
/**
|
|
417
|
-
* @export
|
|
418
|
-
*/
|
|
419
|
-
exports.ApiAdminAffiliateReportGetTypeEnum = {
|
|
420
|
-
Daily: 'daily',
|
|
421
|
-
Weekly: 'weekly',
|
|
422
|
-
Monthly: 'monthly'
|
|
423
|
-
};
|
|
@@ -23,7 +23,6 @@ import type {
|
|
|
23
23
|
ApiAdminAffiliateReferralGetFilterParameter,
|
|
24
24
|
ApiAdminAffiliateReferralPostRequest,
|
|
25
25
|
ApiAdminAffiliateReferralPutRequest,
|
|
26
|
-
ApiAdminAffiliateReportGet200Response,
|
|
27
26
|
ApiAdminAffiliateUserGet200Response,
|
|
28
27
|
ApiAdminAffiliateUserGetFilterParameter,
|
|
29
28
|
ApiAdminAffiliateUserUserIdPutRequest,
|
|
@@ -46,8 +45,6 @@ import {
|
|
|
46
45
|
ApiAdminAffiliateReferralPostRequestToJSON,
|
|
47
46
|
ApiAdminAffiliateReferralPutRequestFromJSON,
|
|
48
47
|
ApiAdminAffiliateReferralPutRequestToJSON,
|
|
49
|
-
ApiAdminAffiliateReportGet200ResponseFromJSON,
|
|
50
|
-
ApiAdminAffiliateReportGet200ResponseToJSON,
|
|
51
48
|
ApiAdminAffiliateUserGet200ResponseFromJSON,
|
|
52
49
|
ApiAdminAffiliateUserGet200ResponseToJSON,
|
|
53
50
|
ApiAdminAffiliateUserGetFilterParameterFromJSON,
|
|
@@ -87,12 +84,6 @@ export interface ApiAdminAffiliateReferralPutOperationRequest {
|
|
|
87
84
|
apiAdminAffiliateReferralPutRequest?: ApiAdminAffiliateReferralPutRequest;
|
|
88
85
|
}
|
|
89
86
|
|
|
90
|
-
export interface ApiAdminAffiliateReportGetRequest {
|
|
91
|
-
type: ApiAdminAffiliateReportGetTypeEnum;
|
|
92
|
-
month?: number;
|
|
93
|
-
year?: number;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
87
|
export interface ApiAdminAffiliateUserGetRequest {
|
|
97
88
|
page?: number | null;
|
|
98
89
|
pageSize?: number | null;
|
|
@@ -354,63 +345,6 @@ export class AdminAffiliateApi extends runtime.BaseAPI {
|
|
|
354
345
|
return await response.value();
|
|
355
346
|
}
|
|
356
347
|
|
|
357
|
-
/**
|
|
358
|
-
* Affiliate Report
|
|
359
|
-
*/
|
|
360
|
-
async apiAdminAffiliateReportGetRaw(requestParameters: ApiAdminAffiliateReportGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAdminAffiliateReportGet200Response>> {
|
|
361
|
-
if (requestParameters['type'] == null) {
|
|
362
|
-
throw new runtime.RequiredError(
|
|
363
|
-
'type',
|
|
364
|
-
'Required parameter "type" was null or undefined when calling apiAdminAffiliateReportGet().'
|
|
365
|
-
);
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
const queryParameters: any = {};
|
|
369
|
-
|
|
370
|
-
if (requestParameters['type'] != null) {
|
|
371
|
-
queryParameters['type'] = requestParameters['type'];
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
if (requestParameters['month'] != null) {
|
|
375
|
-
queryParameters['month'] = requestParameters['month'];
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
if (requestParameters['year'] != null) {
|
|
379
|
-
queryParameters['year'] = requestParameters['year'];
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
383
|
-
|
|
384
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
385
|
-
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
389
|
-
const token = this.configuration.accessToken;
|
|
390
|
-
const tokenString = await token("BearerAuth", []);
|
|
391
|
-
|
|
392
|
-
if (tokenString) {
|
|
393
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
const response = await this.request({
|
|
397
|
-
path: `/api/admin/affiliate/report`,
|
|
398
|
-
method: 'GET',
|
|
399
|
-
headers: headerParameters,
|
|
400
|
-
query: queryParameters,
|
|
401
|
-
}, initOverrides);
|
|
402
|
-
|
|
403
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => ApiAdminAffiliateReportGet200ResponseFromJSON(jsonValue));
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
/**
|
|
407
|
-
* Affiliate Report
|
|
408
|
-
*/
|
|
409
|
-
async apiAdminAffiliateReportGet(requestParameters: ApiAdminAffiliateReportGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAdminAffiliateReportGet200Response> {
|
|
410
|
-
const response = await this.apiAdminAffiliateReportGetRaw(requestParameters, initOverrides);
|
|
411
|
-
return await response.value();
|
|
412
|
-
}
|
|
413
|
-
|
|
414
348
|
/**
|
|
415
349
|
* Affiliate User Get List
|
|
416
350
|
*/
|
|
@@ -514,13 +448,3 @@ export class AdminAffiliateApi extends runtime.BaseAPI {
|
|
|
514
448
|
}
|
|
515
449
|
|
|
516
450
|
}
|
|
517
|
-
|
|
518
|
-
/**
|
|
519
|
-
* @export
|
|
520
|
-
*/
|
|
521
|
-
export const ApiAdminAffiliateReportGetTypeEnum = {
|
|
522
|
-
Daily: 'daily',
|
|
523
|
-
Weekly: 'weekly',
|
|
524
|
-
Monthly: 'monthly'
|
|
525
|
-
} as const;
|
|
526
|
-
export type ApiAdminAffiliateReportGetTypeEnum = typeof ApiAdminAffiliateReportGetTypeEnum[keyof typeof ApiAdminAffiliateReportGetTypeEnum];
|
|
@@ -0,0 +1,176 @@
|
|
|
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.ApiAdminUserWagerReportGetTypeEnum = exports.ApiAdminAffiliateReportGetTypeEnum = exports.AdminReportApi = void 0;
|
|
59
|
+
const runtime = __importStar(require("../runtime"));
|
|
60
|
+
const index_1 = require("../models/index");
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
*/
|
|
64
|
+
class AdminReportApi extends runtime.BaseAPI {
|
|
65
|
+
/**
|
|
66
|
+
* Affiliate Report
|
|
67
|
+
*/
|
|
68
|
+
apiAdminAffiliateReportGetRaw(requestParameters, initOverrides) {
|
|
69
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
70
|
+
if (requestParameters['type'] == null) {
|
|
71
|
+
throw new runtime.RequiredError('type', 'Required parameter "type" was null or undefined when calling apiAdminAffiliateReportGet().');
|
|
72
|
+
}
|
|
73
|
+
const queryParameters = {};
|
|
74
|
+
if (requestParameters['type'] != null) {
|
|
75
|
+
queryParameters['type'] = requestParameters['type'];
|
|
76
|
+
}
|
|
77
|
+
if (requestParameters['month'] != null) {
|
|
78
|
+
queryParameters['month'] = requestParameters['month'];
|
|
79
|
+
}
|
|
80
|
+
if (requestParameters['year'] != null) {
|
|
81
|
+
queryParameters['year'] = requestParameters['year'];
|
|
82
|
+
}
|
|
83
|
+
const headerParameters = {};
|
|
84
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
85
|
+
headerParameters["api-key"] = yield this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
86
|
+
}
|
|
87
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
88
|
+
const token = this.configuration.accessToken;
|
|
89
|
+
const tokenString = yield token("BearerAuth", []);
|
|
90
|
+
if (tokenString) {
|
|
91
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
const response = yield this.request({
|
|
95
|
+
path: `/api/admin/affiliate/report`,
|
|
96
|
+
method: 'GET',
|
|
97
|
+
headers: headerParameters,
|
|
98
|
+
query: queryParameters,
|
|
99
|
+
}, initOverrides);
|
|
100
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiAdminAffiliateReportGet200ResponseFromJSON)(jsonValue));
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Affiliate Report
|
|
105
|
+
*/
|
|
106
|
+
apiAdminAffiliateReportGet(requestParameters, initOverrides) {
|
|
107
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
108
|
+
const response = yield this.apiAdminAffiliateReportGetRaw(requestParameters, initOverrides);
|
|
109
|
+
return yield response.value();
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* User Wager Report
|
|
114
|
+
*/
|
|
115
|
+
apiAdminUserWagerReportGetRaw(requestParameters, initOverrides) {
|
|
116
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
117
|
+
if (requestParameters['type'] == null) {
|
|
118
|
+
throw new runtime.RequiredError('type', 'Required parameter "type" was null or undefined when calling apiAdminUserWagerReportGet().');
|
|
119
|
+
}
|
|
120
|
+
const queryParameters = {};
|
|
121
|
+
if (requestParameters['type'] != null) {
|
|
122
|
+
queryParameters['type'] = requestParameters['type'];
|
|
123
|
+
}
|
|
124
|
+
if (requestParameters['month'] != null) {
|
|
125
|
+
queryParameters['month'] = requestParameters['month'];
|
|
126
|
+
}
|
|
127
|
+
if (requestParameters['year'] != null) {
|
|
128
|
+
queryParameters['year'] = requestParameters['year'];
|
|
129
|
+
}
|
|
130
|
+
const headerParameters = {};
|
|
131
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
132
|
+
headerParameters["api-key"] = yield this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
133
|
+
}
|
|
134
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
135
|
+
const token = this.configuration.accessToken;
|
|
136
|
+
const tokenString = yield token("BearerAuth", []);
|
|
137
|
+
if (tokenString) {
|
|
138
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
const response = yield this.request({
|
|
142
|
+
path: `/api/admin/user/wager/report`,
|
|
143
|
+
method: 'GET',
|
|
144
|
+
headers: headerParameters,
|
|
145
|
+
query: queryParameters,
|
|
146
|
+
}, initOverrides);
|
|
147
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiAdminUserWagerReportGet200ResponseFromJSON)(jsonValue));
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* User Wager Report
|
|
152
|
+
*/
|
|
153
|
+
apiAdminUserWagerReportGet(requestParameters, initOverrides) {
|
|
154
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
155
|
+
const response = yield this.apiAdminUserWagerReportGetRaw(requestParameters, initOverrides);
|
|
156
|
+
return yield response.value();
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
exports.AdminReportApi = AdminReportApi;
|
|
161
|
+
/**
|
|
162
|
+
* @export
|
|
163
|
+
*/
|
|
164
|
+
exports.ApiAdminAffiliateReportGetTypeEnum = {
|
|
165
|
+
Daily: 'daily',
|
|
166
|
+
Weekly: 'weekly',
|
|
167
|
+
Monthly: 'monthly'
|
|
168
|
+
};
|
|
169
|
+
/**
|
|
170
|
+
* @export
|
|
171
|
+
*/
|
|
172
|
+
exports.ApiAdminUserWagerReportGetTypeEnum = {
|
|
173
|
+
Daily: 'daily',
|
|
174
|
+
Weekly: 'weekly',
|
|
175
|
+
Monthly: 'monthly'
|
|
176
|
+
};
|
|
@@ -0,0 +1,178 @@
|
|
|
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
|
+
ApiAdminAffiliateReportGet200Response,
|
|
19
|
+
ApiAdminUserWagerReportGet200Response,
|
|
20
|
+
} from '../models/index';
|
|
21
|
+
import {
|
|
22
|
+
ApiAdminAffiliateReportGet200ResponseFromJSON,
|
|
23
|
+
ApiAdminAffiliateReportGet200ResponseToJSON,
|
|
24
|
+
ApiAdminUserWagerReportGet200ResponseFromJSON,
|
|
25
|
+
ApiAdminUserWagerReportGet200ResponseToJSON,
|
|
26
|
+
} from '../models/index';
|
|
27
|
+
|
|
28
|
+
export interface ApiAdminAffiliateReportGetRequest {
|
|
29
|
+
type: ApiAdminAffiliateReportGetTypeEnum;
|
|
30
|
+
month?: number;
|
|
31
|
+
year?: number;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface ApiAdminUserWagerReportGetRequest {
|
|
35
|
+
type: ApiAdminUserWagerReportGetTypeEnum;
|
|
36
|
+
month?: number;
|
|
37
|
+
year?: number;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
*/
|
|
43
|
+
export class AdminReportApi extends runtime.BaseAPI {
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Affiliate Report
|
|
47
|
+
*/
|
|
48
|
+
async apiAdminAffiliateReportGetRaw(requestParameters: ApiAdminAffiliateReportGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAdminAffiliateReportGet200Response>> {
|
|
49
|
+
if (requestParameters['type'] == null) {
|
|
50
|
+
throw new runtime.RequiredError(
|
|
51
|
+
'type',
|
|
52
|
+
'Required parameter "type" was null or undefined when calling apiAdminAffiliateReportGet().'
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
const queryParameters: any = {};
|
|
57
|
+
|
|
58
|
+
if (requestParameters['type'] != null) {
|
|
59
|
+
queryParameters['type'] = requestParameters['type'];
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
if (requestParameters['month'] != null) {
|
|
63
|
+
queryParameters['month'] = requestParameters['month'];
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
if (requestParameters['year'] != null) {
|
|
67
|
+
queryParameters['year'] = requestParameters['year'];
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
71
|
+
|
|
72
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
73
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
77
|
+
const token = this.configuration.accessToken;
|
|
78
|
+
const tokenString = await token("BearerAuth", []);
|
|
79
|
+
|
|
80
|
+
if (tokenString) {
|
|
81
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
const response = await this.request({
|
|
85
|
+
path: `/api/admin/affiliate/report`,
|
|
86
|
+
method: 'GET',
|
|
87
|
+
headers: headerParameters,
|
|
88
|
+
query: queryParameters,
|
|
89
|
+
}, initOverrides);
|
|
90
|
+
|
|
91
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiAdminAffiliateReportGet200ResponseFromJSON(jsonValue));
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Affiliate Report
|
|
96
|
+
*/
|
|
97
|
+
async apiAdminAffiliateReportGet(requestParameters: ApiAdminAffiliateReportGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAdminAffiliateReportGet200Response> {
|
|
98
|
+
const response = await this.apiAdminAffiliateReportGetRaw(requestParameters, initOverrides);
|
|
99
|
+
return await response.value();
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* User Wager Report
|
|
104
|
+
*/
|
|
105
|
+
async apiAdminUserWagerReportGetRaw(requestParameters: ApiAdminUserWagerReportGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAdminUserWagerReportGet200Response>> {
|
|
106
|
+
if (requestParameters['type'] == null) {
|
|
107
|
+
throw new runtime.RequiredError(
|
|
108
|
+
'type',
|
|
109
|
+
'Required parameter "type" was null or undefined when calling apiAdminUserWagerReportGet().'
|
|
110
|
+
);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
const queryParameters: any = {};
|
|
114
|
+
|
|
115
|
+
if (requestParameters['type'] != null) {
|
|
116
|
+
queryParameters['type'] = requestParameters['type'];
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
if (requestParameters['month'] != null) {
|
|
120
|
+
queryParameters['month'] = requestParameters['month'];
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
if (requestParameters['year'] != null) {
|
|
124
|
+
queryParameters['year'] = requestParameters['year'];
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
128
|
+
|
|
129
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
130
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
134
|
+
const token = this.configuration.accessToken;
|
|
135
|
+
const tokenString = await token("BearerAuth", []);
|
|
136
|
+
|
|
137
|
+
if (tokenString) {
|
|
138
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
const response = await this.request({
|
|
142
|
+
path: `/api/admin/user/wager/report`,
|
|
143
|
+
method: 'GET',
|
|
144
|
+
headers: headerParameters,
|
|
145
|
+
query: queryParameters,
|
|
146
|
+
}, initOverrides);
|
|
147
|
+
|
|
148
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiAdminUserWagerReportGet200ResponseFromJSON(jsonValue));
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* User Wager Report
|
|
153
|
+
*/
|
|
154
|
+
async apiAdminUserWagerReportGet(requestParameters: ApiAdminUserWagerReportGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAdminUserWagerReportGet200Response> {
|
|
155
|
+
const response = await this.apiAdminUserWagerReportGetRaw(requestParameters, initOverrides);
|
|
156
|
+
return await response.value();
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* @export
|
|
163
|
+
*/
|
|
164
|
+
export const ApiAdminAffiliateReportGetTypeEnum = {
|
|
165
|
+
Daily: 'daily',
|
|
166
|
+
Weekly: 'weekly',
|
|
167
|
+
Monthly: 'monthly'
|
|
168
|
+
} as const;
|
|
169
|
+
export type ApiAdminAffiliateReportGetTypeEnum = typeof ApiAdminAffiliateReportGetTypeEnum[keyof typeof ApiAdminAffiliateReportGetTypeEnum];
|
|
170
|
+
/**
|
|
171
|
+
* @export
|
|
172
|
+
*/
|
|
173
|
+
export const ApiAdminUserWagerReportGetTypeEnum = {
|
|
174
|
+
Daily: 'daily',
|
|
175
|
+
Weekly: 'weekly',
|
|
176
|
+
Monthly: 'monthly'
|
|
177
|
+
} as const;
|
|
178
|
+
export type ApiAdminUserWagerReportGetTypeEnum = typeof ApiAdminUserWagerReportGetTypeEnum[keyof typeof ApiAdminUserWagerReportGetTypeEnum];
|
package/apis/index.js
CHANGED
|
@@ -33,6 +33,7 @@ __exportStar(require("./AdminPaymentSystemApi"), exports);
|
|
|
33
33
|
__exportStar(require("./AdminPinnedMessageApi"), exports);
|
|
34
34
|
__exportStar(require("./AdminPolicyApi"), exports);
|
|
35
35
|
__exportStar(require("./AdminProvidersApi"), exports);
|
|
36
|
+
__exportStar(require("./AdminReportApi"), exports);
|
|
36
37
|
__exportStar(require("./AdminUserManagementApi"), exports);
|
|
37
38
|
__exportStar(require("./AuthApi"), exports);
|
|
38
39
|
__exportStar(require("./CMSApi"), exports);
|
package/apis/index.ts
CHANGED
|
@@ -17,6 +17,7 @@ export * from './AdminPaymentSystemApi';
|
|
|
17
17
|
export * from './AdminPinnedMessageApi';
|
|
18
18
|
export * from './AdminPolicyApi';
|
|
19
19
|
export * from './AdminProvidersApi';
|
|
20
|
+
export * from './AdminReportApi';
|
|
20
21
|
export * from './AdminUserManagementApi';
|
|
21
22
|
export * from './AuthApi';
|
|
22
23
|
export * from './CMSApi';
|
|
@@ -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.instanceOfApiAdminUserWagerReportGet200Response = instanceOfApiAdminUserWagerReportGet200Response;
|
|
17
|
+
exports.ApiAdminUserWagerReportGet200ResponseFromJSON = ApiAdminUserWagerReportGet200ResponseFromJSON;
|
|
18
|
+
exports.ApiAdminUserWagerReportGet200ResponseFromJSONTyped = ApiAdminUserWagerReportGet200ResponseFromJSONTyped;
|
|
19
|
+
exports.ApiAdminUserWagerReportGet200ResponseToJSON = ApiAdminUserWagerReportGet200ResponseToJSON;
|
|
20
|
+
exports.ApiAdminUserWagerReportGet200ResponseToJSONTyped = ApiAdminUserWagerReportGet200ResponseToJSONTyped;
|
|
21
|
+
const ApiAdminUserWagerReportGet200ResponseResponseObject_1 = require("./ApiAdminUserWagerReportGet200ResponseResponseObject");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ApiAdminUserWagerReportGet200Response interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfApiAdminUserWagerReportGet200Response(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 ApiAdminUserWagerReportGet200ResponseFromJSON(json) {
|
|
35
|
+
return ApiAdminUserWagerReportGet200ResponseFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
function ApiAdminUserWagerReportGet200ResponseFromJSONTyped(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, ApiAdminUserWagerReportGet200ResponseResponseObject_1.ApiAdminUserWagerReportGet200ResponseResponseObjectFromJSON)(json['responseObject']),
|
|
45
|
+
'statusCode': json['statusCode'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function ApiAdminUserWagerReportGet200ResponseToJSON(json) {
|
|
49
|
+
return ApiAdminUserWagerReportGet200ResponseToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function ApiAdminUserWagerReportGet200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'success': value['success'],
|
|
57
|
+
'message': value['message'],
|
|
58
|
+
'responseObject': (0, ApiAdminUserWagerReportGet200ResponseResponseObject_1.ApiAdminUserWagerReportGet200ResponseResponseObjectToJSON)(value['responseObject']),
|
|
59
|
+
'statusCode': value['statusCode'],
|
|
60
|
+
};
|
|
61
|
+
}
|