@gambulls-org/gambulls-apis 3.0.593 → 3.0.595
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 +20 -0
- package/apis/AdminDashboardV2Api.js +508 -0
- package/apis/AdminDashboardV2Api.ts +668 -0
- package/apis/index.js +1 -0
- package/apis/index.ts +1 -0
- package/models/ApiAdminDashboardV2BettingGet200Response.js +61 -0
- package/models/ApiAdminDashboardV2BettingGet200Response.ts +100 -0
- package/models/ApiAdminDashboardV2BettingGet200ResponseResponseObject.js +71 -0
- package/models/ApiAdminDashboardV2BettingGet200ResponseResponseObject.ts +119 -0
- package/models/ApiAdminDashboardV2BettingGet200ResponseResponseObjectCasino.js +70 -0
- package/models/ApiAdminDashboardV2BettingGet200ResponseResponseObjectCasino.ts +111 -0
- package/models/ApiAdminDashboardV2ChartGet200Response.js +61 -0
- package/models/ApiAdminDashboardV2ChartGet200Response.ts +100 -0
- package/models/ApiAdminDashboardV2ChartGet200ResponseResponseObjectInner.js +102 -0
- package/models/ApiAdminDashboardV2ChartGet200ResponseResponseObjectInner.ts +183 -0
- package/models/ApiAdminDashboardV2KpiGet200Response.js +61 -0
- package/models/ApiAdminDashboardV2KpiGet200Response.ts +100 -0
- package/models/ApiAdminDashboardV2KpiGet200ResponseResponseObject.js +150 -0
- package/models/ApiAdminDashboardV2KpiGet200ResponseResponseObject.ts +291 -0
- package/models/ApiAdminDashboardV2PlayerActivityGet200Response.js +61 -0
- package/models/ApiAdminDashboardV2PlayerActivityGet200Response.ts +100 -0
- package/models/ApiAdminDashboardV2PlayerActivityGet200ResponseResponseObject.js +98 -0
- package/models/ApiAdminDashboardV2PlayerActivityGet200ResponseResponseObject.ts +174 -0
- package/models/ApiAdminDashboardV2PromotionsGet200Response.js +61 -0
- package/models/ApiAdminDashboardV2PromotionsGet200Response.ts +100 -0
- package/models/ApiAdminDashboardV2PromotionsGet200ResponseResponseObject.js +142 -0
- package/models/ApiAdminDashboardV2PromotionsGet200ResponseResponseObject.ts +273 -0
- package/models/ApiAdminDashboardV2RevenueGet200Response.js +61 -0
- package/models/ApiAdminDashboardV2RevenueGet200Response.ts +100 -0
- package/models/ApiAdminDashboardV2RevenueGet200ResponseResponseObject.js +182 -0
- package/models/ApiAdminDashboardV2RevenueGet200ResponseResponseObject.ts +363 -0
- package/models/ApiAdminDashboardV2TooltipsGet200Response.js +61 -0
- package/models/ApiAdminDashboardV2TooltipsGet200Response.ts +100 -0
- package/models/ApiAdminDashboardV2TooltipsGet200ResponseResponseObject.js +78 -0
- package/models/ApiAdminDashboardV2TooltipsGet200ResponseResponseObject.ts +129 -0
- package/models/ApiAdminDashboardV2TopGamesGet200Response.js +61 -0
- package/models/ApiAdminDashboardV2TopGamesGet200Response.ts +100 -0
- package/models/ApiAdminDashboardV2TopGamesGet200ResponseResponseObjectInner.js +82 -0
- package/models/ApiAdminDashboardV2TopGamesGet200ResponseResponseObjectInner.ts +138 -0
- package/models/ApiAdminDashboardV2TopProvidersGet200Response.js +61 -0
- package/models/ApiAdminDashboardV2TopProvidersGet200Response.ts +100 -0
- package/models/ApiAdminDashboardV2TopProvidersGet200ResponseResponseObjectInner.js +78 -0
- package/models/ApiAdminDashboardV2TopProvidersGet200ResponseResponseObjectInner.ts +129 -0
- package/models/index.js +19 -0
- package/models/index.ts +19 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -6,6 +6,7 @@ apis/AdminBonusApi.ts
|
|
|
6
6
|
apis/AdminCategoryApi.ts
|
|
7
7
|
apis/AdminChatApi.ts
|
|
8
8
|
apis/AdminDashboardApi.ts
|
|
9
|
+
apis/AdminDashboardV2Api.ts
|
|
9
10
|
apis/AdminExchangeApi.ts
|
|
10
11
|
apis/AdminFileManagementApi.ts
|
|
11
12
|
apis/AdminGamesApi.ts
|
|
@@ -148,6 +149,25 @@ models/ApiAdminDashboardStatsGet200Response.ts
|
|
|
148
149
|
models/ApiAdminDashboardStatsGet200ResponseResponseObject.ts
|
|
149
150
|
models/ApiAdminDashboardSumBalancesGet200Response.ts
|
|
150
151
|
models/ApiAdminDashboardSumBalancesGet200ResponseResponseObject.ts
|
|
152
|
+
models/ApiAdminDashboardV2BettingGet200Response.ts
|
|
153
|
+
models/ApiAdminDashboardV2BettingGet200ResponseResponseObject.ts
|
|
154
|
+
models/ApiAdminDashboardV2BettingGet200ResponseResponseObjectCasino.ts
|
|
155
|
+
models/ApiAdminDashboardV2ChartGet200Response.ts
|
|
156
|
+
models/ApiAdminDashboardV2ChartGet200ResponseResponseObjectInner.ts
|
|
157
|
+
models/ApiAdminDashboardV2KpiGet200Response.ts
|
|
158
|
+
models/ApiAdminDashboardV2KpiGet200ResponseResponseObject.ts
|
|
159
|
+
models/ApiAdminDashboardV2PlayerActivityGet200Response.ts
|
|
160
|
+
models/ApiAdminDashboardV2PlayerActivityGet200ResponseResponseObject.ts
|
|
161
|
+
models/ApiAdminDashboardV2PromotionsGet200Response.ts
|
|
162
|
+
models/ApiAdminDashboardV2PromotionsGet200ResponseResponseObject.ts
|
|
163
|
+
models/ApiAdminDashboardV2RevenueGet200Response.ts
|
|
164
|
+
models/ApiAdminDashboardV2RevenueGet200ResponseResponseObject.ts
|
|
165
|
+
models/ApiAdminDashboardV2TooltipsGet200Response.ts
|
|
166
|
+
models/ApiAdminDashboardV2TooltipsGet200ResponseResponseObject.ts
|
|
167
|
+
models/ApiAdminDashboardV2TopGamesGet200Response.ts
|
|
168
|
+
models/ApiAdminDashboardV2TopGamesGet200ResponseResponseObjectInner.ts
|
|
169
|
+
models/ApiAdminDashboardV2TopProvidersGet200Response.ts
|
|
170
|
+
models/ApiAdminDashboardV2TopProvidersGet200ResponseResponseObjectInner.ts
|
|
151
171
|
models/ApiAdminDashboardWagerGet200Response.ts
|
|
152
172
|
models/ApiAdminDashboardWagerGet200ResponseResponseObject.ts
|
|
153
173
|
models/ApiAdminGamesBulkRecommendPutRequest.ts
|
|
@@ -0,0 +1,508 @@
|
|
|
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.ApiAdminDashboardV2TopGamesGetSortByEnum = exports.AdminDashboardV2Api = void 0;
|
|
49
|
+
const runtime = __importStar(require("../runtime"));
|
|
50
|
+
const index_1 = require("../models/index");
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
*/
|
|
54
|
+
class AdminDashboardV2Api extends runtime.BaseAPI {
|
|
55
|
+
/**
|
|
56
|
+
* Casino vs Sportsbook side-by-side comparison with period-over-period. Supports `isBonusBalance` and `isStreamer` query filters. **Response Field Formulas (per category: casino / sportsbook / combined):** - `wager` — Casino: SUM(BetFeedIbankRoll.betAmount) · Sportsbook: SUM(SportFeedIbankRoll.betAmount) WHERE status=settled - `win` — Casino: SUM(BetFeedIbankRoll.payout) · Sportsbook: SUM(SportFeedIbankRoll.payout) - `ggr` — wager − win - `rtp` — (win / wager) × 100 - `betCount` — COUNT(*) from respective feed table - `uniquePlayers` — COUNT DISTINCT userId from respective feed table - `combined.*` — Sum of casino + sportsbook values (uniquePlayers is additive upper-bound) - `previous*` — Same formulas for the preceding period of equal length
|
|
57
|
+
* Dashboard V2 — Betting Performance
|
|
58
|
+
*/
|
|
59
|
+
apiAdminDashboardV2BettingGetRaw(requestParameters, initOverrides) {
|
|
60
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
61
|
+
if (requestParameters['startDate'] == null) {
|
|
62
|
+
throw new runtime.RequiredError('startDate', 'Required parameter "startDate" was null or undefined when calling apiAdminDashboardV2BettingGet().');
|
|
63
|
+
}
|
|
64
|
+
if (requestParameters['endDate'] == null) {
|
|
65
|
+
throw new runtime.RequiredError('endDate', 'Required parameter "endDate" was null or undefined when calling apiAdminDashboardV2BettingGet().');
|
|
66
|
+
}
|
|
67
|
+
const queryParameters = {};
|
|
68
|
+
if (requestParameters['startDate'] != null) {
|
|
69
|
+
queryParameters['startDate'] = requestParameters['startDate'];
|
|
70
|
+
}
|
|
71
|
+
if (requestParameters['endDate'] != null) {
|
|
72
|
+
queryParameters['endDate'] = requestParameters['endDate'];
|
|
73
|
+
}
|
|
74
|
+
if (requestParameters['isBonusBalance'] != null) {
|
|
75
|
+
queryParameters['isBonusBalance'] = requestParameters['isBonusBalance'];
|
|
76
|
+
}
|
|
77
|
+
if (requestParameters['isStreamer'] != null) {
|
|
78
|
+
queryParameters['isStreamer'] = requestParameters['isStreamer'];
|
|
79
|
+
}
|
|
80
|
+
const headerParameters = {};
|
|
81
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
82
|
+
headerParameters["api-key"] = yield this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
83
|
+
}
|
|
84
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
85
|
+
const token = this.configuration.accessToken;
|
|
86
|
+
const tokenString = yield token("BearerAuth", []);
|
|
87
|
+
if (tokenString) {
|
|
88
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
const response = yield this.request({
|
|
92
|
+
path: `/api/admin/dashboard-v2/betting`,
|
|
93
|
+
method: 'GET',
|
|
94
|
+
headers: headerParameters,
|
|
95
|
+
query: queryParameters,
|
|
96
|
+
}, initOverrides);
|
|
97
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiAdminDashboardV2BettingGet200ResponseFromJSON)(jsonValue));
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Casino vs Sportsbook side-by-side comparison with period-over-period. Supports `isBonusBalance` and `isStreamer` query filters. **Response Field Formulas (per category: casino / sportsbook / combined):** - `wager` — Casino: SUM(BetFeedIbankRoll.betAmount) · Sportsbook: SUM(SportFeedIbankRoll.betAmount) WHERE status=settled - `win` — Casino: SUM(BetFeedIbankRoll.payout) · Sportsbook: SUM(SportFeedIbankRoll.payout) - `ggr` — wager − win - `rtp` — (win / wager) × 100 - `betCount` — COUNT(*) from respective feed table - `uniquePlayers` — COUNT DISTINCT userId from respective feed table - `combined.*` — Sum of casino + sportsbook values (uniquePlayers is additive upper-bound) - `previous*` — Same formulas for the preceding period of equal length
|
|
102
|
+
* Dashboard V2 — Betting Performance
|
|
103
|
+
*/
|
|
104
|
+
apiAdminDashboardV2BettingGet(requestParameters, initOverrides) {
|
|
105
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
106
|
+
const response = yield this.apiAdminDashboardV2BettingGetRaw(requestParameters, initOverrides);
|
|
107
|
+
return yield response.value();
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Daily time-series data for charting. One row per day in the requested date range. **Response Field Formulas (per day):** - `registrations` — COUNT of User created on that day - `activePlayers` — COUNT DISTINCT userId from UserDailyStat on that day - `depositsAmount` — SUM(Deposit.amountFIAT) WHERE status NOT IN (FAILED, REJECTED) - `manualDepositsAmount` — SUM(ManualDeposit.amountFiat) WHERE status=COMPLETED, category ≠ RESOLVE_DEPOSIT - `withdrawalsAmount` — SUM(Withdrawal.amountFIAT) WHERE status=COMPLETED - `netDeposits` — depositsAmount + manualDepositsAmount − withdrawalsAmount - `casinoGGR` — SUM(UserGameDailyStat.ggrAmount) WHERE category=CASINO - `sportsbookGGR` — SUM(UserGameDailyStat.ggrAmount) WHERE category=SPORTSBOOK - `totalGGR` — SUM(UserDailyStat.ggrAmount) - `betCount` — SUM(UserDailyStat.betCount) - `firstDepositCount` — Users whose globally-first deposit falls on that day - `rakebackAmount` — SUM(UserDailyStat.rakebackAmount) - `bonusAmount` — SUM(UserDailyStat.bonusAmount)
|
|
112
|
+
* Dashboard V2 — Daily Chart
|
|
113
|
+
*/
|
|
114
|
+
apiAdminDashboardV2ChartGetRaw(requestParameters, initOverrides) {
|
|
115
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
116
|
+
if (requestParameters['startDate'] == null) {
|
|
117
|
+
throw new runtime.RequiredError('startDate', 'Required parameter "startDate" was null or undefined when calling apiAdminDashboardV2ChartGet().');
|
|
118
|
+
}
|
|
119
|
+
if (requestParameters['endDate'] == null) {
|
|
120
|
+
throw new runtime.RequiredError('endDate', 'Required parameter "endDate" was null or undefined when calling apiAdminDashboardV2ChartGet().');
|
|
121
|
+
}
|
|
122
|
+
const queryParameters = {};
|
|
123
|
+
if (requestParameters['startDate'] != null) {
|
|
124
|
+
queryParameters['startDate'] = requestParameters['startDate'];
|
|
125
|
+
}
|
|
126
|
+
if (requestParameters['endDate'] != null) {
|
|
127
|
+
queryParameters['endDate'] = requestParameters['endDate'];
|
|
128
|
+
}
|
|
129
|
+
const headerParameters = {};
|
|
130
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
131
|
+
headerParameters["api-key"] = yield this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
132
|
+
}
|
|
133
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
134
|
+
const token = this.configuration.accessToken;
|
|
135
|
+
const tokenString = yield token("BearerAuth", []);
|
|
136
|
+
if (tokenString) {
|
|
137
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
const response = yield this.request({
|
|
141
|
+
path: `/api/admin/dashboard-v2/chart`,
|
|
142
|
+
method: 'GET',
|
|
143
|
+
headers: headerParameters,
|
|
144
|
+
query: queryParameters,
|
|
145
|
+
}, initOverrides);
|
|
146
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiAdminDashboardV2ChartGet200ResponseFromJSON)(jsonValue));
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Daily time-series data for charting. One row per day in the requested date range. **Response Field Formulas (per day):** - `registrations` — COUNT of User created on that day - `activePlayers` — COUNT DISTINCT userId from UserDailyStat on that day - `depositsAmount` — SUM(Deposit.amountFIAT) WHERE status NOT IN (FAILED, REJECTED) - `manualDepositsAmount` — SUM(ManualDeposit.amountFiat) WHERE status=COMPLETED, category ≠ RESOLVE_DEPOSIT - `withdrawalsAmount` — SUM(Withdrawal.amountFIAT) WHERE status=COMPLETED - `netDeposits` — depositsAmount + manualDepositsAmount − withdrawalsAmount - `casinoGGR` — SUM(UserGameDailyStat.ggrAmount) WHERE category=CASINO - `sportsbookGGR` — SUM(UserGameDailyStat.ggrAmount) WHERE category=SPORTSBOOK - `totalGGR` — SUM(UserDailyStat.ggrAmount) - `betCount` — SUM(UserDailyStat.betCount) - `firstDepositCount` — Users whose globally-first deposit falls on that day - `rakebackAmount` — SUM(UserDailyStat.rakebackAmount) - `bonusAmount` — SUM(UserDailyStat.bonusAmount)
|
|
151
|
+
* Dashboard V2 — Daily Chart
|
|
152
|
+
*/
|
|
153
|
+
apiAdminDashboardV2ChartGet(requestParameters, initOverrides) {
|
|
154
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
155
|
+
const response = yield this.apiAdminDashboardV2ChartGetRaw(requestParameters, initOverrides);
|
|
156
|
+
return yield response.value();
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Executive overview with period-over-period comparison. **Response Field Formulas:** - `registrations` — COUNT of User created in period - `firstDepositCount` — Users whose globally-first Deposit falls within period - `firstDepositAmount` — SUM(amountFIAT) of those first deposits - `ftdConversionRate` — (firstDepositCount / registrations) × 100 - `activePlayers` — COUNT DISTINCT userId from UserDailyStat in period - `uniqueBettors` — COUNT DISTINCT userId from UserDailyStat WHERE wagerAmount > 0 - `avgBetsPerPlayer` — SUM(betCount) / uniqueBettors - `totalDeposits` — SUM(Deposit.amountFIAT) WHERE status NOT IN (FAILED, REJECTED) - `totalManualDeposits` — SUM(ManualDeposit.amountFiat) WHERE status = COMPLETED, category ≠ RESOLVE_DEPOSIT - `totalWithdrawals` — SUM(Withdrawal.amountFIAT) WHERE status = COMPLETED - `netDeposits` — (totalDeposits + totalManualDeposits) − totalWithdrawals - `avgDepositAmount` — totalDeposits / depositCount - `totalGGR` — SUM(UserDailyStat.ggrAmount) - `totalNGR` — totalGGR − totalPromotionCost − providerFees − ibankrollFees - `previous*` — Same formulas applied to the preceding period of equal length
|
|
161
|
+
* Dashboard V2 — KPI Summary
|
|
162
|
+
*/
|
|
163
|
+
apiAdminDashboardV2KpiGetRaw(requestParameters, initOverrides) {
|
|
164
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
165
|
+
if (requestParameters['startDate'] == null) {
|
|
166
|
+
throw new runtime.RequiredError('startDate', 'Required parameter "startDate" was null or undefined when calling apiAdminDashboardV2KpiGet().');
|
|
167
|
+
}
|
|
168
|
+
if (requestParameters['endDate'] == null) {
|
|
169
|
+
throw new runtime.RequiredError('endDate', 'Required parameter "endDate" was null or undefined when calling apiAdminDashboardV2KpiGet().');
|
|
170
|
+
}
|
|
171
|
+
const queryParameters = {};
|
|
172
|
+
if (requestParameters['startDate'] != null) {
|
|
173
|
+
queryParameters['startDate'] = requestParameters['startDate'];
|
|
174
|
+
}
|
|
175
|
+
if (requestParameters['endDate'] != null) {
|
|
176
|
+
queryParameters['endDate'] = requestParameters['endDate'];
|
|
177
|
+
}
|
|
178
|
+
const headerParameters = {};
|
|
179
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
180
|
+
headerParameters["api-key"] = yield this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
181
|
+
}
|
|
182
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
183
|
+
const token = this.configuration.accessToken;
|
|
184
|
+
const tokenString = yield token("BearerAuth", []);
|
|
185
|
+
if (tokenString) {
|
|
186
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
const response = yield this.request({
|
|
190
|
+
path: `/api/admin/dashboard-v2/kpi`,
|
|
191
|
+
method: 'GET',
|
|
192
|
+
headers: headerParameters,
|
|
193
|
+
query: queryParameters,
|
|
194
|
+
}, initOverrides);
|
|
195
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiAdminDashboardV2KpiGet200ResponseFromJSON)(jsonValue));
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Executive overview with period-over-period comparison. **Response Field Formulas:** - `registrations` — COUNT of User created in period - `firstDepositCount` — Users whose globally-first Deposit falls within period - `firstDepositAmount` — SUM(amountFIAT) of those first deposits - `ftdConversionRate` — (firstDepositCount / registrations) × 100 - `activePlayers` — COUNT DISTINCT userId from UserDailyStat in period - `uniqueBettors` — COUNT DISTINCT userId from UserDailyStat WHERE wagerAmount > 0 - `avgBetsPerPlayer` — SUM(betCount) / uniqueBettors - `totalDeposits` — SUM(Deposit.amountFIAT) WHERE status NOT IN (FAILED, REJECTED) - `totalManualDeposits` — SUM(ManualDeposit.amountFiat) WHERE status = COMPLETED, category ≠ RESOLVE_DEPOSIT - `totalWithdrawals` — SUM(Withdrawal.amountFIAT) WHERE status = COMPLETED - `netDeposits` — (totalDeposits + totalManualDeposits) − totalWithdrawals - `avgDepositAmount` — totalDeposits / depositCount - `totalGGR` — SUM(UserDailyStat.ggrAmount) - `totalNGR` — totalGGR − totalPromotionCost − providerFees − ibankrollFees - `previous*` — Same formulas applied to the preceding period of equal length
|
|
200
|
+
* Dashboard V2 — KPI Summary
|
|
201
|
+
*/
|
|
202
|
+
apiAdminDashboardV2KpiGet(requestParameters, initOverrides) {
|
|
203
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
204
|
+
const response = yield this.apiAdminDashboardV2KpiGetRaw(requestParameters, initOverrides);
|
|
205
|
+
return yield response.value();
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* Conversion funnel and retention cohort analysis. **Response Field Formulas:** - `totalRegistrations` — COUNT of User created in period - `totalDepositors` — COUNT DISTINCT Deposit.userId WHERE status NOT IN (FAILED, REJECTED) - `totalBettors` — COUNT DISTINCT UserDailyStat.userId WHERE wagerAmount > 0 **Conversion Rates:** - `registrationToFTD` — (totalDepositors / totalRegistrations) × 100 - `ftdToBettor` — (totalBettors / totalDepositors) × 100 - `registrationToBettor` — (totalBettors / totalRegistrations) × 100 **Retention (vs previous period of equal length):** - `returningPlayers` — Users active in BOTH current and previous periods - `newPlayers` — Users active in current period but NOT in previous - `churnedPlayers` — Users active in previous period but NOT in current - `retentionRate` — (returningPlayers / (returningPlayers + churnedPlayers)) × 100 - Active = has any UserDailyStat row in the period
|
|
210
|
+
* Dashboard V2 — Player Activity & Retention
|
|
211
|
+
*/
|
|
212
|
+
apiAdminDashboardV2PlayerActivityGetRaw(requestParameters, initOverrides) {
|
|
213
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
214
|
+
if (requestParameters['startDate'] == null) {
|
|
215
|
+
throw new runtime.RequiredError('startDate', 'Required parameter "startDate" was null or undefined when calling apiAdminDashboardV2PlayerActivityGet().');
|
|
216
|
+
}
|
|
217
|
+
if (requestParameters['endDate'] == null) {
|
|
218
|
+
throw new runtime.RequiredError('endDate', 'Required parameter "endDate" was null or undefined when calling apiAdminDashboardV2PlayerActivityGet().');
|
|
219
|
+
}
|
|
220
|
+
const queryParameters = {};
|
|
221
|
+
if (requestParameters['startDate'] != null) {
|
|
222
|
+
queryParameters['startDate'] = requestParameters['startDate'];
|
|
223
|
+
}
|
|
224
|
+
if (requestParameters['endDate'] != null) {
|
|
225
|
+
queryParameters['endDate'] = requestParameters['endDate'];
|
|
226
|
+
}
|
|
227
|
+
const headerParameters = {};
|
|
228
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
229
|
+
headerParameters["api-key"] = yield this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
230
|
+
}
|
|
231
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
232
|
+
const token = this.configuration.accessToken;
|
|
233
|
+
const tokenString = yield token("BearerAuth", []);
|
|
234
|
+
if (tokenString) {
|
|
235
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
const response = yield this.request({
|
|
239
|
+
path: `/api/admin/dashboard-v2/player-activity`,
|
|
240
|
+
method: 'GET',
|
|
241
|
+
headers: headerParameters,
|
|
242
|
+
query: queryParameters,
|
|
243
|
+
}, initOverrides);
|
|
244
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiAdminDashboardV2PlayerActivityGet200ResponseFromJSON)(jsonValue));
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* Conversion funnel and retention cohort analysis. **Response Field Formulas:** - `totalRegistrations` — COUNT of User created in period - `totalDepositors` — COUNT DISTINCT Deposit.userId WHERE status NOT IN (FAILED, REJECTED) - `totalBettors` — COUNT DISTINCT UserDailyStat.userId WHERE wagerAmount > 0 **Conversion Rates:** - `registrationToFTD` — (totalDepositors / totalRegistrations) × 100 - `ftdToBettor` — (totalBettors / totalDepositors) × 100 - `registrationToBettor` — (totalBettors / totalRegistrations) × 100 **Retention (vs previous period of equal length):** - `returningPlayers` — Users active in BOTH current and previous periods - `newPlayers` — Users active in current period but NOT in previous - `churnedPlayers` — Users active in previous period but NOT in current - `retentionRate` — (returningPlayers / (returningPlayers + churnedPlayers)) × 100 - Active = has any UserDailyStat row in the period
|
|
249
|
+
* Dashboard V2 — Player Activity & Retention
|
|
250
|
+
*/
|
|
251
|
+
apiAdminDashboardV2PlayerActivityGet(requestParameters, initOverrides) {
|
|
252
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
253
|
+
const response = yield this.apiAdminDashboardV2PlayerActivityGetRaw(requestParameters, initOverrides);
|
|
254
|
+
return yield response.value();
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* Detailed promotion cost breakdown with period-over-period comparison. **Response Field Formulas:** - `rakebackClaimed` — SUM(UserDailyStat.rakebackAmount) - `affiliateClaimed` — SUM(UserDailyStat.affiliateAmount) - `loyaltyClaimed` — SUM(UserDailyStat.loyaltyAmount) - `bonusClaimed` — SUM(UserDailyStat.bonusAmount) - `leaderboardClaimed` — SUM(UserDailyStat.leaderboardAmount) - `streamerSpends` — SUM(ManualDeposit.amountFiat) WHERE category=STREAMER, status=COMPLETED - `prizeSpends` — SUM(LeaderboardPool.accumulatedAmount + subsidyAmount) WHERE status IN (COMPLETED, DISTRIBUTED) - `compensationSpends` — SUM(ManualDeposit.amountFiat) WHERE category=COMPENSATION - `marketingSpends` — SUM(ManualDeposit.amountFiat) WHERE category=MARKETING - `otherSpends` — SUM(ManualDeposit.amountFiat) WHERE category=OTHER - `totalPromotionCost` — Sum of all above (rakeback + affiliate + loyalty + bonus + leaderboard + streamer + prize + compensation + marketing + other) **User-to-User (NOT included in totalPromotionCost):** - `totalRain` — SUM(RainEvent.amountFiat) WHERE status=CONCLUDED - `totalTips` — SUM(Tip.amountFiat)
|
|
259
|
+
* Dashboard V2 — Promotion Costs
|
|
260
|
+
*/
|
|
261
|
+
apiAdminDashboardV2PromotionsGetRaw(requestParameters, initOverrides) {
|
|
262
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
263
|
+
if (requestParameters['startDate'] == null) {
|
|
264
|
+
throw new runtime.RequiredError('startDate', 'Required parameter "startDate" was null or undefined when calling apiAdminDashboardV2PromotionsGet().');
|
|
265
|
+
}
|
|
266
|
+
if (requestParameters['endDate'] == null) {
|
|
267
|
+
throw new runtime.RequiredError('endDate', 'Required parameter "endDate" was null or undefined when calling apiAdminDashboardV2PromotionsGet().');
|
|
268
|
+
}
|
|
269
|
+
const queryParameters = {};
|
|
270
|
+
if (requestParameters['startDate'] != null) {
|
|
271
|
+
queryParameters['startDate'] = requestParameters['startDate'];
|
|
272
|
+
}
|
|
273
|
+
if (requestParameters['endDate'] != null) {
|
|
274
|
+
queryParameters['endDate'] = requestParameters['endDate'];
|
|
275
|
+
}
|
|
276
|
+
const headerParameters = {};
|
|
277
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
278
|
+
headerParameters["api-key"] = yield this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
279
|
+
}
|
|
280
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
281
|
+
const token = this.configuration.accessToken;
|
|
282
|
+
const tokenString = yield token("BearerAuth", []);
|
|
283
|
+
if (tokenString) {
|
|
284
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
const response = yield this.request({
|
|
288
|
+
path: `/api/admin/dashboard-v2/promotions`,
|
|
289
|
+
method: 'GET',
|
|
290
|
+
headers: headerParameters,
|
|
291
|
+
query: queryParameters,
|
|
292
|
+
}, initOverrides);
|
|
293
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiAdminDashboardV2PromotionsGet200ResponseFromJSON)(jsonValue));
|
|
294
|
+
});
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* Detailed promotion cost breakdown with period-over-period comparison. **Response Field Formulas:** - `rakebackClaimed` — SUM(UserDailyStat.rakebackAmount) - `affiliateClaimed` — SUM(UserDailyStat.affiliateAmount) - `loyaltyClaimed` — SUM(UserDailyStat.loyaltyAmount) - `bonusClaimed` — SUM(UserDailyStat.bonusAmount) - `leaderboardClaimed` — SUM(UserDailyStat.leaderboardAmount) - `streamerSpends` — SUM(ManualDeposit.amountFiat) WHERE category=STREAMER, status=COMPLETED - `prizeSpends` — SUM(LeaderboardPool.accumulatedAmount + subsidyAmount) WHERE status IN (COMPLETED, DISTRIBUTED) - `compensationSpends` — SUM(ManualDeposit.amountFiat) WHERE category=COMPENSATION - `marketingSpends` — SUM(ManualDeposit.amountFiat) WHERE category=MARKETING - `otherSpends` — SUM(ManualDeposit.amountFiat) WHERE category=OTHER - `totalPromotionCost` — Sum of all above (rakeback + affiliate + loyalty + bonus + leaderboard + streamer + prize + compensation + marketing + other) **User-to-User (NOT included in totalPromotionCost):** - `totalRain` — SUM(RainEvent.amountFiat) WHERE status=CONCLUDED - `totalTips` — SUM(Tip.amountFiat)
|
|
298
|
+
* Dashboard V2 — Promotion Costs
|
|
299
|
+
*/
|
|
300
|
+
apiAdminDashboardV2PromotionsGet(requestParameters, initOverrides) {
|
|
301
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
302
|
+
const response = yield this.apiAdminDashboardV2PromotionsGetRaw(requestParameters, initOverrides);
|
|
303
|
+
return yield response.value();
|
|
304
|
+
});
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* Full Profit & Loss statement with period-over-period comparison. **Response Field Formulas:** - `casinoGGR` — SUM(BetFeedIbankRoll.betAmount) − SUM(BetFeedIbankRoll.payout) - `sportsbookGGR` — SUM(SportFeedIbankRoll.betAmount) − SUM(SportFeedIbankRoll.payout) WHERE status=settled - `totalGGR` — SUM(UserDailyStat.ggrAmount) - `casinoRTP` / `sportsbookRTP` — (SUM(win) / SUM(wager)) × 100 - `rakebackCost` — SUM(UserDailyStat.rakebackAmount) - `affiliateCost` — SUM(UserDailyStat.affiliateAmount) - `loyaltyCost` — SUM(UserDailyStat.loyaltyAmount) - `bonusCost` — SUM(UserDailyStat.bonusAmount) - `leaderboardCost` — SUM(UserDailyStat.leaderboardAmount) - `streamerCost` — SUM(ManualDeposit.amountFiat) WHERE category=STREAMER - `prizeCost` — SUM(LeaderboardPool.accumulatedAmount + subsidyAmount) WHERE status IN (COMPLETED, DISTRIBUTED) - `compensationCost` — SUM(ManualDeposit.amountFiat) WHERE category=COMPENSATION - `totalPromotionCost` — SUM of all above costs (excludes rain & tips — those are user-to-user) - `providerFees` — Σ(max(0, providerGGR) × Provider.feePercentage / 100) per provider from RgsBetWinRead - `ibankrollFees` — SUM(BetFeedIbankRoll.casinoOwed) WHERE casinoOwed > 0 - `totalFees` — providerFees + ibankrollFees - `ngr` — totalGGR − totalPromotionCost − totalFees - `ngrMargin` — (ngr / totalGGR) × 100 - `rainVolume` / `tipVolume` — Shown for reference only (user-to-user, not a cost)
|
|
308
|
+
* Dashboard V2 — Revenue & P&L
|
|
309
|
+
*/
|
|
310
|
+
apiAdminDashboardV2RevenueGetRaw(requestParameters, initOverrides) {
|
|
311
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
312
|
+
if (requestParameters['startDate'] == null) {
|
|
313
|
+
throw new runtime.RequiredError('startDate', 'Required parameter "startDate" was null or undefined when calling apiAdminDashboardV2RevenueGet().');
|
|
314
|
+
}
|
|
315
|
+
if (requestParameters['endDate'] == null) {
|
|
316
|
+
throw new runtime.RequiredError('endDate', 'Required parameter "endDate" was null or undefined when calling apiAdminDashboardV2RevenueGet().');
|
|
317
|
+
}
|
|
318
|
+
const queryParameters = {};
|
|
319
|
+
if (requestParameters['startDate'] != null) {
|
|
320
|
+
queryParameters['startDate'] = requestParameters['startDate'];
|
|
321
|
+
}
|
|
322
|
+
if (requestParameters['endDate'] != null) {
|
|
323
|
+
queryParameters['endDate'] = requestParameters['endDate'];
|
|
324
|
+
}
|
|
325
|
+
const headerParameters = {};
|
|
326
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
327
|
+
headerParameters["api-key"] = yield this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
328
|
+
}
|
|
329
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
330
|
+
const token = this.configuration.accessToken;
|
|
331
|
+
const tokenString = yield token("BearerAuth", []);
|
|
332
|
+
if (tokenString) {
|
|
333
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
const response = yield this.request({
|
|
337
|
+
path: `/api/admin/dashboard-v2/revenue`,
|
|
338
|
+
method: 'GET',
|
|
339
|
+
headers: headerParameters,
|
|
340
|
+
query: queryParameters,
|
|
341
|
+
}, initOverrides);
|
|
342
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiAdminDashboardV2RevenueGet200ResponseFromJSON)(jsonValue));
|
|
343
|
+
});
|
|
344
|
+
}
|
|
345
|
+
/**
|
|
346
|
+
* Full Profit & Loss statement with period-over-period comparison. **Response Field Formulas:** - `casinoGGR` — SUM(BetFeedIbankRoll.betAmount) − SUM(BetFeedIbankRoll.payout) - `sportsbookGGR` — SUM(SportFeedIbankRoll.betAmount) − SUM(SportFeedIbankRoll.payout) WHERE status=settled - `totalGGR` — SUM(UserDailyStat.ggrAmount) - `casinoRTP` / `sportsbookRTP` — (SUM(win) / SUM(wager)) × 100 - `rakebackCost` — SUM(UserDailyStat.rakebackAmount) - `affiliateCost` — SUM(UserDailyStat.affiliateAmount) - `loyaltyCost` — SUM(UserDailyStat.loyaltyAmount) - `bonusCost` — SUM(UserDailyStat.bonusAmount) - `leaderboardCost` — SUM(UserDailyStat.leaderboardAmount) - `streamerCost` — SUM(ManualDeposit.amountFiat) WHERE category=STREAMER - `prizeCost` — SUM(LeaderboardPool.accumulatedAmount + subsidyAmount) WHERE status IN (COMPLETED, DISTRIBUTED) - `compensationCost` — SUM(ManualDeposit.amountFiat) WHERE category=COMPENSATION - `totalPromotionCost` — SUM of all above costs (excludes rain & tips — those are user-to-user) - `providerFees` — Σ(max(0, providerGGR) × Provider.feePercentage / 100) per provider from RgsBetWinRead - `ibankrollFees` — SUM(BetFeedIbankRoll.casinoOwed) WHERE casinoOwed > 0 - `totalFees` — providerFees + ibankrollFees - `ngr` — totalGGR − totalPromotionCost − totalFees - `ngrMargin` — (ngr / totalGGR) × 100 - `rainVolume` / `tipVolume` — Shown for reference only (user-to-user, not a cost)
|
|
347
|
+
* Dashboard V2 — Revenue & P&L
|
|
348
|
+
*/
|
|
349
|
+
apiAdminDashboardV2RevenueGet(requestParameters, initOverrides) {
|
|
350
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
351
|
+
const response = yield this.apiAdminDashboardV2RevenueGetRaw(requestParameters, initOverrides);
|
|
352
|
+
return yield response.value();
|
|
353
|
+
});
|
|
354
|
+
}
|
|
355
|
+
/**
|
|
356
|
+
* Returns plain-language descriptions for every response field across all Dashboard V2 endpoints. The frontend should call this once on dashboard load and cache the result. Each section key (kpi, revenue, chart, etc.) maps field names to human-friendly tooltip strings.
|
|
357
|
+
* Dashboard V2 — Field Tooltips
|
|
358
|
+
*/
|
|
359
|
+
apiAdminDashboardV2TooltipsGetRaw(initOverrides) {
|
|
360
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
361
|
+
const queryParameters = {};
|
|
362
|
+
const headerParameters = {};
|
|
363
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
364
|
+
headerParameters["api-key"] = yield this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
365
|
+
}
|
|
366
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
367
|
+
const token = this.configuration.accessToken;
|
|
368
|
+
const tokenString = yield token("BearerAuth", []);
|
|
369
|
+
if (tokenString) {
|
|
370
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
const response = yield this.request({
|
|
374
|
+
path: `/api/admin/dashboard-v2/tooltips`,
|
|
375
|
+
method: 'GET',
|
|
376
|
+
headers: headerParameters,
|
|
377
|
+
query: queryParameters,
|
|
378
|
+
}, initOverrides);
|
|
379
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiAdminDashboardV2TooltipsGet200ResponseFromJSON)(jsonValue));
|
|
380
|
+
});
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
* Returns plain-language descriptions for every response field across all Dashboard V2 endpoints. The frontend should call this once on dashboard load and cache the result. Each section key (kpi, revenue, chart, etc.) maps field names to human-friendly tooltip strings.
|
|
384
|
+
* Dashboard V2 — Field Tooltips
|
|
385
|
+
*/
|
|
386
|
+
apiAdminDashboardV2TooltipsGet(initOverrides) {
|
|
387
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
388
|
+
const response = yield this.apiAdminDashboardV2TooltipsGetRaw(initOverrides);
|
|
389
|
+
return yield response.value();
|
|
390
|
+
});
|
|
391
|
+
}
|
|
392
|
+
/**
|
|
393
|
+
* Top casino games ranked by a chosen metric. Data sourced from BetFeedIbankRoll. **Query Parameters:** - `sortBy` — `ggr` (default) | `wager` | `betCount` - `limit` — Max rows returned (default 20, max 100) **Response Field Formulas (per game):** - `gameName` / `providerName` / `categoryName` — From BetFeedIbankRoll denormalized fields - `wager` — SUM(betAmount) - `win` — SUM(payout) - `ggr` — wager − win - `rtp` — (win / wager) × 100 - `betCount` — COUNT(*) - `uniquePlayers` — COUNT DISTINCT userId
|
|
394
|
+
* Dashboard V2 — Top Casino Games
|
|
395
|
+
*/
|
|
396
|
+
apiAdminDashboardV2TopGamesGetRaw(requestParameters, initOverrides) {
|
|
397
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
398
|
+
if (requestParameters['startDate'] == null) {
|
|
399
|
+
throw new runtime.RequiredError('startDate', 'Required parameter "startDate" was null or undefined when calling apiAdminDashboardV2TopGamesGet().');
|
|
400
|
+
}
|
|
401
|
+
if (requestParameters['endDate'] == null) {
|
|
402
|
+
throw new runtime.RequiredError('endDate', 'Required parameter "endDate" was null or undefined when calling apiAdminDashboardV2TopGamesGet().');
|
|
403
|
+
}
|
|
404
|
+
const queryParameters = {};
|
|
405
|
+
if (requestParameters['startDate'] != null) {
|
|
406
|
+
queryParameters['startDate'] = requestParameters['startDate'];
|
|
407
|
+
}
|
|
408
|
+
if (requestParameters['endDate'] != null) {
|
|
409
|
+
queryParameters['endDate'] = requestParameters['endDate'];
|
|
410
|
+
}
|
|
411
|
+
if (requestParameters['limit'] != null) {
|
|
412
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
413
|
+
}
|
|
414
|
+
if (requestParameters['sortBy'] != null) {
|
|
415
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
416
|
+
}
|
|
417
|
+
const headerParameters = {};
|
|
418
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
419
|
+
headerParameters["api-key"] = yield this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
420
|
+
}
|
|
421
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
422
|
+
const token = this.configuration.accessToken;
|
|
423
|
+
const tokenString = yield token("BearerAuth", []);
|
|
424
|
+
if (tokenString) {
|
|
425
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
const response = yield this.request({
|
|
429
|
+
path: `/api/admin/dashboard-v2/top-games`,
|
|
430
|
+
method: 'GET',
|
|
431
|
+
headers: headerParameters,
|
|
432
|
+
query: queryParameters,
|
|
433
|
+
}, initOverrides);
|
|
434
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiAdminDashboardV2TopGamesGet200ResponseFromJSON)(jsonValue));
|
|
435
|
+
});
|
|
436
|
+
}
|
|
437
|
+
/**
|
|
438
|
+
* Top casino games ranked by a chosen metric. Data sourced from BetFeedIbankRoll. **Query Parameters:** - `sortBy` — `ggr` (default) | `wager` | `betCount` - `limit` — Max rows returned (default 20, max 100) **Response Field Formulas (per game):** - `gameName` / `providerName` / `categoryName` — From BetFeedIbankRoll denormalized fields - `wager` — SUM(betAmount) - `win` — SUM(payout) - `ggr` — wager − win - `rtp` — (win / wager) × 100 - `betCount` — COUNT(*) - `uniquePlayers` — COUNT DISTINCT userId
|
|
439
|
+
* Dashboard V2 — Top Casino Games
|
|
440
|
+
*/
|
|
441
|
+
apiAdminDashboardV2TopGamesGet(requestParameters, initOverrides) {
|
|
442
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
443
|
+
const response = yield this.apiAdminDashboardV2TopGamesGetRaw(requestParameters, initOverrides);
|
|
444
|
+
return yield response.value();
|
|
445
|
+
});
|
|
446
|
+
}
|
|
447
|
+
/**
|
|
448
|
+
* Casino providers ranked by GGR. Data sourced from BetFeedIbankRoll. **Response Field Formulas (per provider):** - `providerName` — From BetFeedIbankRoll.providerName - `wager` — SUM(betAmount) - `win` — SUM(payout) - `ggr` — wager − win - `rtp` — (win / wager) × 100 - `betCount` — COUNT(*) - `uniquePlayers` — COUNT DISTINCT userId - `gameCount` — COUNT DISTINCT gameName
|
|
449
|
+
* Dashboard V2 — Top Providers
|
|
450
|
+
*/
|
|
451
|
+
apiAdminDashboardV2TopProvidersGetRaw(requestParameters, initOverrides) {
|
|
452
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
453
|
+
if (requestParameters['startDate'] == null) {
|
|
454
|
+
throw new runtime.RequiredError('startDate', 'Required parameter "startDate" was null or undefined when calling apiAdminDashboardV2TopProvidersGet().');
|
|
455
|
+
}
|
|
456
|
+
if (requestParameters['endDate'] == null) {
|
|
457
|
+
throw new runtime.RequiredError('endDate', 'Required parameter "endDate" was null or undefined when calling apiAdminDashboardV2TopProvidersGet().');
|
|
458
|
+
}
|
|
459
|
+
const queryParameters = {};
|
|
460
|
+
if (requestParameters['startDate'] != null) {
|
|
461
|
+
queryParameters['startDate'] = requestParameters['startDate'];
|
|
462
|
+
}
|
|
463
|
+
if (requestParameters['endDate'] != null) {
|
|
464
|
+
queryParameters['endDate'] = requestParameters['endDate'];
|
|
465
|
+
}
|
|
466
|
+
if (requestParameters['limit'] != null) {
|
|
467
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
468
|
+
}
|
|
469
|
+
const headerParameters = {};
|
|
470
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
471
|
+
headerParameters["api-key"] = yield this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
472
|
+
}
|
|
473
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
474
|
+
const token = this.configuration.accessToken;
|
|
475
|
+
const tokenString = yield token("BearerAuth", []);
|
|
476
|
+
if (tokenString) {
|
|
477
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
const response = yield this.request({
|
|
481
|
+
path: `/api/admin/dashboard-v2/top-providers`,
|
|
482
|
+
method: 'GET',
|
|
483
|
+
headers: headerParameters,
|
|
484
|
+
query: queryParameters,
|
|
485
|
+
}, initOverrides);
|
|
486
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiAdminDashboardV2TopProvidersGet200ResponseFromJSON)(jsonValue));
|
|
487
|
+
});
|
|
488
|
+
}
|
|
489
|
+
/**
|
|
490
|
+
* Casino providers ranked by GGR. Data sourced from BetFeedIbankRoll. **Response Field Formulas (per provider):** - `providerName` — From BetFeedIbankRoll.providerName - `wager` — SUM(betAmount) - `win` — SUM(payout) - `ggr` — wager − win - `rtp` — (win / wager) × 100 - `betCount` — COUNT(*) - `uniquePlayers` — COUNT DISTINCT userId - `gameCount` — COUNT DISTINCT gameName
|
|
491
|
+
* Dashboard V2 — Top Providers
|
|
492
|
+
*/
|
|
493
|
+
apiAdminDashboardV2TopProvidersGet(requestParameters, initOverrides) {
|
|
494
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
495
|
+
const response = yield this.apiAdminDashboardV2TopProvidersGetRaw(requestParameters, initOverrides);
|
|
496
|
+
return yield response.value();
|
|
497
|
+
});
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
exports.AdminDashboardV2Api = AdminDashboardV2Api;
|
|
501
|
+
/**
|
|
502
|
+
* @export
|
|
503
|
+
*/
|
|
504
|
+
exports.ApiAdminDashboardV2TopGamesGetSortByEnum = {
|
|
505
|
+
Ggr: 'ggr',
|
|
506
|
+
Wager: 'wager',
|
|
507
|
+
BetCount: 'betCount'
|
|
508
|
+
};
|