@gambulls-org/gambulls-apis 3.0.524 → 3.0.526
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 +1 -0
- package/apis/AdminReportsApi.js +95 -0
- package/apis/AdminReportsApi.ts +75 -0
- package/apis/index.js +1 -0
- package/apis/index.ts +1 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -0,0 +1,95 @@
|
|
|
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.AdminReportsApi = void 0;
|
|
49
|
+
const runtime = __importStar(require("../runtime"));
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
*/
|
|
53
|
+
class AdminReportsApi extends runtime.BaseAPI {
|
|
54
|
+
/**
|
|
55
|
+
* Download Player Report (CSV or ZIP)
|
|
56
|
+
*/
|
|
57
|
+
apiAdminReportsPlayersGetRaw(requestParameters, initOverrides) {
|
|
58
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
59
|
+
if (requestParameters['type'] == null) {
|
|
60
|
+
throw new runtime.RequiredError('type', 'Required parameter "type" was null or undefined when calling apiAdminReportsPlayersGet().');
|
|
61
|
+
}
|
|
62
|
+
const queryParameters = {};
|
|
63
|
+
if (requestParameters['type'] != null) {
|
|
64
|
+
queryParameters['type'] = requestParameters['type'];
|
|
65
|
+
}
|
|
66
|
+
const headerParameters = {};
|
|
67
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
68
|
+
headerParameters["api-key"] = yield this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
69
|
+
}
|
|
70
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
71
|
+
const token = this.configuration.accessToken;
|
|
72
|
+
const tokenString = yield token("BearerAuth", []);
|
|
73
|
+
if (tokenString) {
|
|
74
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
const response = yield this.request({
|
|
78
|
+
path: `/api/admin/reports/players`,
|
|
79
|
+
method: 'GET',
|
|
80
|
+
headers: headerParameters,
|
|
81
|
+
query: queryParameters,
|
|
82
|
+
}, initOverrides);
|
|
83
|
+
return new runtime.VoidApiResponse(response);
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Download Player Report (CSV or ZIP)
|
|
88
|
+
*/
|
|
89
|
+
apiAdminReportsPlayersGet(requestParameters, initOverrides) {
|
|
90
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
91
|
+
yield this.apiAdminReportsPlayersGetRaw(requestParameters, initOverrides);
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
exports.AdminReportsApi = AdminReportsApi;
|
|
@@ -0,0 +1,75 @@
|
|
|
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
|
+
|
|
18
|
+
export interface ApiAdminReportsPlayersGetRequest {
|
|
19
|
+
type: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
export class AdminReportsApi extends runtime.BaseAPI {
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Download Player Report (CSV or ZIP)
|
|
29
|
+
*/
|
|
30
|
+
async apiAdminReportsPlayersGetRaw(requestParameters: ApiAdminReportsPlayersGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
31
|
+
if (requestParameters['type'] == null) {
|
|
32
|
+
throw new runtime.RequiredError(
|
|
33
|
+
'type',
|
|
34
|
+
'Required parameter "type" was null or undefined when calling apiAdminReportsPlayersGet().'
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
const queryParameters: any = {};
|
|
39
|
+
|
|
40
|
+
if (requestParameters['type'] != null) {
|
|
41
|
+
queryParameters['type'] = requestParameters['type'];
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
45
|
+
|
|
46
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
47
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
51
|
+
const token = this.configuration.accessToken;
|
|
52
|
+
const tokenString = await token("BearerAuth", []);
|
|
53
|
+
|
|
54
|
+
if (tokenString) {
|
|
55
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
const response = await this.request({
|
|
59
|
+
path: `/api/admin/reports/players`,
|
|
60
|
+
method: 'GET',
|
|
61
|
+
headers: headerParameters,
|
|
62
|
+
query: queryParameters,
|
|
63
|
+
}, initOverrides);
|
|
64
|
+
|
|
65
|
+
return new runtime.VoidApiResponse(response);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Download Player Report (CSV or ZIP)
|
|
70
|
+
*/
|
|
71
|
+
async apiAdminReportsPlayersGet(requestParameters: ApiAdminReportsPlayersGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
72
|
+
await this.apiAdminReportsPlayersGetRaw(requestParameters, initOverrides);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
}
|
package/apis/index.js
CHANGED
|
@@ -40,6 +40,7 @@ __exportStar(require("./AdminProvidersApi"), exports);
|
|
|
40
40
|
__exportStar(require("./AdminRainEventApi"), exports);
|
|
41
41
|
__exportStar(require("./AdminRakebackEventApi"), exports);
|
|
42
42
|
__exportStar(require("./AdminReportApi"), exports);
|
|
43
|
+
__exportStar(require("./AdminReportsApi"), exports);
|
|
43
44
|
__exportStar(require("./AdminSportApi"), exports);
|
|
44
45
|
__exportStar(require("./AdminSportBetApi"), exports);
|
|
45
46
|
__exportStar(require("./AdminTipEventApi"), exports);
|
package/apis/index.ts
CHANGED
|
@@ -24,6 +24,7 @@ export * from './AdminProvidersApi';
|
|
|
24
24
|
export * from './AdminRainEventApi';
|
|
25
25
|
export * from './AdminRakebackEventApi';
|
|
26
26
|
export * from './AdminReportApi';
|
|
27
|
+
export * from './AdminReportsApi';
|
|
27
28
|
export * from './AdminSportApi';
|
|
28
29
|
export * from './AdminSportBetApi';
|
|
29
30
|
export * from './AdminTipEventApi';
|