@gambulls-org/gambulls-apis 3.0.705 → 3.0.706
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.
|
@@ -157,7 +157,7 @@ class AdminDashboardV2Api extends runtime.BaseAPI {
|
|
|
157
157
|
});
|
|
158
158
|
}
|
|
159
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
|
|
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 - `streamerWithdrawals` — SUM(Withdrawal.amountFIAT) WHERE status = COMPLETED AND requester is in Streamer group - `netDeposits` — (totalDeposits) − (totalWithdrawals − streamerWithdrawals) - `avgDepositAmount` — totalDeposits / depositCount - `totalGGR` — SUM(UserDailyStat.ggrAmount) - `totalNGR` — totalGGR − totalPromotionCost − providerFees − ibankrollFees - `previous*` — Same formulas applied to the preceding period of equal length
|
|
161
161
|
* Dashboard V2 — KPI Summary
|
|
162
162
|
*/
|
|
163
163
|
apiAdminDashboardV2KpiGetRaw(requestParameters, initOverrides) {
|
|
@@ -196,7 +196,7 @@ class AdminDashboardV2Api extends runtime.BaseAPI {
|
|
|
196
196
|
});
|
|
197
197
|
}
|
|
198
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
|
|
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 - `streamerWithdrawals` — SUM(Withdrawal.amountFIAT) WHERE status = COMPLETED AND requester is in Streamer group - `netDeposits` — (totalDeposits) − (totalWithdrawals − streamerWithdrawals) - `avgDepositAmount` — totalDeposits / depositCount - `totalGGR` — SUM(UserDailyStat.ggrAmount) - `totalNGR` — totalGGR − totalPromotionCost − providerFees − ibankrollFees - `previous*` — Same formulas applied to the preceding period of equal length
|
|
200
200
|
* Dashboard V2 — KPI Summary
|
|
201
201
|
*/
|
|
202
202
|
apiAdminDashboardV2KpiGet(requestParameters, initOverrides) {
|
|
@@ -255,7 +255,7 @@ class AdminDashboardV2Api extends runtime.BaseAPI {
|
|
|
255
255
|
});
|
|
256
256
|
}
|
|
257
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(
|
|
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(Withdrawal.amountFIAT) WHERE status=COMPLETED AND requester is in Streamer group - `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
259
|
* Dashboard V2 — Promotion Costs
|
|
260
260
|
*/
|
|
261
261
|
apiAdminDashboardV2PromotionsGetRaw(requestParameters, initOverrides) {
|
|
@@ -294,7 +294,7 @@ class AdminDashboardV2Api extends runtime.BaseAPI {
|
|
|
294
294
|
});
|
|
295
295
|
}
|
|
296
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(
|
|
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(Withdrawal.amountFIAT) WHERE status=COMPLETED AND requester is in Streamer group - `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
298
|
* Dashboard V2 — Promotion Costs
|
|
299
299
|
*/
|
|
300
300
|
apiAdminDashboardV2PromotionsGet(requestParameters, initOverrides) {
|
|
@@ -304,7 +304,7 @@ class AdminDashboardV2Api extends runtime.BaseAPI {
|
|
|
304
304
|
});
|
|
305
305
|
}
|
|
306
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(
|
|
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(Withdrawal.amountFIAT) WHERE status=COMPLETED AND requester is in Streamer group - `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 (supports `isStreamer` filter) - `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
308
|
* Dashboard V2 — Revenue & P&L
|
|
309
309
|
*/
|
|
310
310
|
apiAdminDashboardV2RevenueGetRaw(requestParameters, initOverrides) {
|
|
@@ -349,7 +349,7 @@ class AdminDashboardV2Api extends runtime.BaseAPI {
|
|
|
349
349
|
});
|
|
350
350
|
}
|
|
351
351
|
/**
|
|
352
|
-
* 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(
|
|
352
|
+
* 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(Withdrawal.amountFIAT) WHERE status=COMPLETED AND requester is in Streamer group - `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 (supports `isStreamer` filter) - `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)
|
|
353
353
|
* Dashboard V2 — Revenue & P&L
|
|
354
354
|
*/
|
|
355
355
|
apiAdminDashboardV2RevenueGet(requestParameters, initOverrides) {
|
|
@@ -234,7 +234,7 @@ export class AdminDashboardV2Api extends runtime.BaseAPI {
|
|
|
234
234
|
}
|
|
235
235
|
|
|
236
236
|
/**
|
|
237
|
-
* 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
|
|
237
|
+
* 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 - `streamerWithdrawals` — SUM(Withdrawal.amountFIAT) WHERE status = COMPLETED AND requester is in Streamer group - `netDeposits` — (totalDeposits) − (totalWithdrawals − streamerWithdrawals) - `avgDepositAmount` — totalDeposits / depositCount - `totalGGR` — SUM(UserDailyStat.ggrAmount) - `totalNGR` — totalGGR − totalPromotionCost − providerFees − ibankrollFees - `previous*` — Same formulas applied to the preceding period of equal length
|
|
238
238
|
* Dashboard V2 — KPI Summary
|
|
239
239
|
*/
|
|
240
240
|
async apiAdminDashboardV2KpiGetRaw(requestParameters: ApiAdminDashboardV2KpiGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAdminDashboardV2KpiGet200Response>> {
|
|
@@ -287,7 +287,7 @@ export class AdminDashboardV2Api extends runtime.BaseAPI {
|
|
|
287
287
|
}
|
|
288
288
|
|
|
289
289
|
/**
|
|
290
|
-
* 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
|
|
290
|
+
* 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 - `streamerWithdrawals` — SUM(Withdrawal.amountFIAT) WHERE status = COMPLETED AND requester is in Streamer group - `netDeposits` — (totalDeposits) − (totalWithdrawals − streamerWithdrawals) - `avgDepositAmount` — totalDeposits / depositCount - `totalGGR` — SUM(UserDailyStat.ggrAmount) - `totalNGR` — totalGGR − totalPromotionCost − providerFees − ibankrollFees - `previous*` — Same formulas applied to the preceding period of equal length
|
|
291
291
|
* Dashboard V2 — KPI Summary
|
|
292
292
|
*/
|
|
293
293
|
async apiAdminDashboardV2KpiGet(requestParameters: ApiAdminDashboardV2KpiGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAdminDashboardV2KpiGet200Response> {
|
|
@@ -358,7 +358,7 @@ export class AdminDashboardV2Api extends runtime.BaseAPI {
|
|
|
358
358
|
}
|
|
359
359
|
|
|
360
360
|
/**
|
|
361
|
-
* 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(
|
|
361
|
+
* 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(Withdrawal.amountFIAT) WHERE status=COMPLETED AND requester is in Streamer group - `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)
|
|
362
362
|
* Dashboard V2 — Promotion Costs
|
|
363
363
|
*/
|
|
364
364
|
async apiAdminDashboardV2PromotionsGetRaw(requestParameters: ApiAdminDashboardV2PromotionsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAdminDashboardV2PromotionsGet200Response>> {
|
|
@@ -411,7 +411,7 @@ export class AdminDashboardV2Api extends runtime.BaseAPI {
|
|
|
411
411
|
}
|
|
412
412
|
|
|
413
413
|
/**
|
|
414
|
-
* 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(
|
|
414
|
+
* 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(Withdrawal.amountFIAT) WHERE status=COMPLETED AND requester is in Streamer group - `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)
|
|
415
415
|
* Dashboard V2 — Promotion Costs
|
|
416
416
|
*/
|
|
417
417
|
async apiAdminDashboardV2PromotionsGet(requestParameters: ApiAdminDashboardV2PromotionsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAdminDashboardV2PromotionsGet200Response> {
|
|
@@ -420,7 +420,7 @@ export class AdminDashboardV2Api extends runtime.BaseAPI {
|
|
|
420
420
|
}
|
|
421
421
|
|
|
422
422
|
/**
|
|
423
|
-
* 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(
|
|
423
|
+
* 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(Withdrawal.amountFIAT) WHERE status=COMPLETED AND requester is in Streamer group - `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 (supports `isStreamer` filter) - `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)
|
|
424
424
|
* Dashboard V2 — Revenue & P&L
|
|
425
425
|
*/
|
|
426
426
|
async apiAdminDashboardV2RevenueGetRaw(requestParameters: ApiAdminDashboardV2RevenueGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAdminDashboardV2RevenueGet200Response>> {
|
|
@@ -481,7 +481,7 @@ export class AdminDashboardV2Api extends runtime.BaseAPI {
|
|
|
481
481
|
}
|
|
482
482
|
|
|
483
483
|
/**
|
|
484
|
-
* 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(
|
|
484
|
+
* 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(Withdrawal.amountFIAT) WHERE status=COMPLETED AND requester is in Streamer group - `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 (supports `isStreamer` filter) - `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)
|
|
485
485
|
* Dashboard V2 — Revenue & P&L
|
|
486
486
|
*/
|
|
487
487
|
async apiAdminDashboardV2RevenueGet(requestParameters: ApiAdminDashboardV2RevenueGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAdminDashboardV2RevenueGet200Response> {
|
|
@@ -42,6 +42,8 @@ function instanceOfApiAdminDashboardV2KpiGet200ResponseResponseObject(value) {
|
|
|
42
42
|
return false;
|
|
43
43
|
if (!('totalWithdrawals' in value) || value['totalWithdrawals'] === undefined)
|
|
44
44
|
return false;
|
|
45
|
+
if (!('streamerWithdrawals' in value) || value['streamerWithdrawals'] === undefined)
|
|
46
|
+
return false;
|
|
45
47
|
if (!('netDeposits' in value) || value['netDeposits'] === undefined)
|
|
46
48
|
return false;
|
|
47
49
|
if (!('avgDepositAmount' in value) || value['avgDepositAmount'] === undefined)
|
|
@@ -68,6 +70,8 @@ function instanceOfApiAdminDashboardV2KpiGet200ResponseResponseObject(value) {
|
|
|
68
70
|
return false;
|
|
69
71
|
if (!('previousTotalWithdrawals' in value) || value['previousTotalWithdrawals'] === undefined)
|
|
70
72
|
return false;
|
|
73
|
+
if (!('previousStreamerWithdrawals' in value) || value['previousStreamerWithdrawals'] === undefined)
|
|
74
|
+
return false;
|
|
71
75
|
if (!('previousNetDeposits' in value) || value['previousNetDeposits'] === undefined)
|
|
72
76
|
return false;
|
|
73
77
|
if (!('previousTotalGGR' in value) || value['previousTotalGGR'] === undefined)
|
|
@@ -94,6 +98,7 @@ function ApiAdminDashboardV2KpiGet200ResponseResponseObjectFromJSONTyped(json, i
|
|
|
94
98
|
'totalDeposits': json['totalDeposits'],
|
|
95
99
|
'totalManualDeposits': json['totalManualDeposits'],
|
|
96
100
|
'totalWithdrawals': json['totalWithdrawals'],
|
|
101
|
+
'streamerWithdrawals': json['streamerWithdrawals'],
|
|
97
102
|
'netDeposits': json['netDeposits'],
|
|
98
103
|
'avgDepositAmount': json['avgDepositAmount'],
|
|
99
104
|
'totalGGR': json['totalGGR'],
|
|
@@ -107,6 +112,7 @@ function ApiAdminDashboardV2KpiGet200ResponseResponseObjectFromJSONTyped(json, i
|
|
|
107
112
|
'previousTotalDeposits': json['previousTotalDeposits'],
|
|
108
113
|
'previousTotalManualDeposits': json['previousTotalManualDeposits'],
|
|
109
114
|
'previousTotalWithdrawals': json['previousTotalWithdrawals'],
|
|
115
|
+
'previousStreamerWithdrawals': json['previousStreamerWithdrawals'],
|
|
110
116
|
'previousNetDeposits': json['previousNetDeposits'],
|
|
111
117
|
'previousTotalGGR': json['previousTotalGGR'],
|
|
112
118
|
'previousTotalNGR': json['previousTotalNGR'],
|
|
@@ -130,6 +136,7 @@ function ApiAdminDashboardV2KpiGet200ResponseResponseObjectToJSONTyped(value, ig
|
|
|
130
136
|
'totalDeposits': value['totalDeposits'],
|
|
131
137
|
'totalManualDeposits': value['totalManualDeposits'],
|
|
132
138
|
'totalWithdrawals': value['totalWithdrawals'],
|
|
139
|
+
'streamerWithdrawals': value['streamerWithdrawals'],
|
|
133
140
|
'netDeposits': value['netDeposits'],
|
|
134
141
|
'avgDepositAmount': value['avgDepositAmount'],
|
|
135
142
|
'totalGGR': value['totalGGR'],
|
|
@@ -143,6 +150,7 @@ function ApiAdminDashboardV2KpiGet200ResponseResponseObjectToJSONTyped(value, ig
|
|
|
143
150
|
'previousTotalDeposits': value['previousTotalDeposits'],
|
|
144
151
|
'previousTotalManualDeposits': value['previousTotalManualDeposits'],
|
|
145
152
|
'previousTotalWithdrawals': value['previousTotalWithdrawals'],
|
|
153
|
+
'previousStreamerWithdrawals': value['previousStreamerWithdrawals'],
|
|
146
154
|
'previousNetDeposits': value['previousNetDeposits'],
|
|
147
155
|
'previousTotalGGR': value['previousTotalGGR'],
|
|
148
156
|
'previousTotalNGR': value['previousTotalNGR'],
|
|
@@ -79,6 +79,12 @@ export interface ApiAdminDashboardV2KpiGet200ResponseResponseObject {
|
|
|
79
79
|
* @memberof ApiAdminDashboardV2KpiGet200ResponseResponseObject
|
|
80
80
|
*/
|
|
81
81
|
totalWithdrawals: string | null;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof ApiAdminDashboardV2KpiGet200ResponseResponseObject
|
|
86
|
+
*/
|
|
87
|
+
streamerWithdrawals: string | null;
|
|
82
88
|
/**
|
|
83
89
|
*
|
|
84
90
|
* @type {string}
|
|
@@ -157,6 +163,12 @@ export interface ApiAdminDashboardV2KpiGet200ResponseResponseObject {
|
|
|
157
163
|
* @memberof ApiAdminDashboardV2KpiGet200ResponseResponseObject
|
|
158
164
|
*/
|
|
159
165
|
previousTotalWithdrawals: string | null;
|
|
166
|
+
/**
|
|
167
|
+
*
|
|
168
|
+
* @type {string}
|
|
169
|
+
* @memberof ApiAdminDashboardV2KpiGet200ResponseResponseObject
|
|
170
|
+
*/
|
|
171
|
+
previousStreamerWithdrawals: string | null;
|
|
160
172
|
/**
|
|
161
173
|
*
|
|
162
174
|
* @type {string}
|
|
@@ -191,6 +203,7 @@ export function instanceOfApiAdminDashboardV2KpiGet200ResponseResponseObject(val
|
|
|
191
203
|
if (!('totalDeposits' in value) || value['totalDeposits'] === undefined) return false;
|
|
192
204
|
if (!('totalManualDeposits' in value) || value['totalManualDeposits'] === undefined) return false;
|
|
193
205
|
if (!('totalWithdrawals' in value) || value['totalWithdrawals'] === undefined) return false;
|
|
206
|
+
if (!('streamerWithdrawals' in value) || value['streamerWithdrawals'] === undefined) return false;
|
|
194
207
|
if (!('netDeposits' in value) || value['netDeposits'] === undefined) return false;
|
|
195
208
|
if (!('avgDepositAmount' in value) || value['avgDepositAmount'] === undefined) return false;
|
|
196
209
|
if (!('totalGGR' in value) || value['totalGGR'] === undefined) return false;
|
|
@@ -204,6 +217,7 @@ export function instanceOfApiAdminDashboardV2KpiGet200ResponseResponseObject(val
|
|
|
204
217
|
if (!('previousTotalDeposits' in value) || value['previousTotalDeposits'] === undefined) return false;
|
|
205
218
|
if (!('previousTotalManualDeposits' in value) || value['previousTotalManualDeposits'] === undefined) return false;
|
|
206
219
|
if (!('previousTotalWithdrawals' in value) || value['previousTotalWithdrawals'] === undefined) return false;
|
|
220
|
+
if (!('previousStreamerWithdrawals' in value) || value['previousStreamerWithdrawals'] === undefined) return false;
|
|
207
221
|
if (!('previousNetDeposits' in value) || value['previousNetDeposits'] === undefined) return false;
|
|
208
222
|
if (!('previousTotalGGR' in value) || value['previousTotalGGR'] === undefined) return false;
|
|
209
223
|
if (!('previousTotalNGR' in value) || value['previousTotalNGR'] === undefined) return false;
|
|
@@ -230,6 +244,7 @@ export function ApiAdminDashboardV2KpiGet200ResponseResponseObjectFromJSONTyped(
|
|
|
230
244
|
'totalDeposits': json['totalDeposits'],
|
|
231
245
|
'totalManualDeposits': json['totalManualDeposits'],
|
|
232
246
|
'totalWithdrawals': json['totalWithdrawals'],
|
|
247
|
+
'streamerWithdrawals': json['streamerWithdrawals'],
|
|
233
248
|
'netDeposits': json['netDeposits'],
|
|
234
249
|
'avgDepositAmount': json['avgDepositAmount'],
|
|
235
250
|
'totalGGR': json['totalGGR'],
|
|
@@ -243,6 +258,7 @@ export function ApiAdminDashboardV2KpiGet200ResponseResponseObjectFromJSONTyped(
|
|
|
243
258
|
'previousTotalDeposits': json['previousTotalDeposits'],
|
|
244
259
|
'previousTotalManualDeposits': json['previousTotalManualDeposits'],
|
|
245
260
|
'previousTotalWithdrawals': json['previousTotalWithdrawals'],
|
|
261
|
+
'previousStreamerWithdrawals': json['previousStreamerWithdrawals'],
|
|
246
262
|
'previousNetDeposits': json['previousNetDeposits'],
|
|
247
263
|
'previousTotalGGR': json['previousTotalGGR'],
|
|
248
264
|
'previousTotalNGR': json['previousTotalNGR'],
|
|
@@ -270,6 +286,7 @@ export function ApiAdminDashboardV2KpiGet200ResponseResponseObjectFromJSONTyped(
|
|
|
270
286
|
'totalDeposits': value['totalDeposits'],
|
|
271
287
|
'totalManualDeposits': value['totalManualDeposits'],
|
|
272
288
|
'totalWithdrawals': value['totalWithdrawals'],
|
|
289
|
+
'streamerWithdrawals': value['streamerWithdrawals'],
|
|
273
290
|
'netDeposits': value['netDeposits'],
|
|
274
291
|
'avgDepositAmount': value['avgDepositAmount'],
|
|
275
292
|
'totalGGR': value['totalGGR'],
|
|
@@ -283,6 +300,7 @@ export function ApiAdminDashboardV2KpiGet200ResponseResponseObjectFromJSONTyped(
|
|
|
283
300
|
'previousTotalDeposits': value['previousTotalDeposits'],
|
|
284
301
|
'previousTotalManualDeposits': value['previousTotalManualDeposits'],
|
|
285
302
|
'previousTotalWithdrawals': value['previousTotalWithdrawals'],
|
|
303
|
+
'previousStreamerWithdrawals': value['previousStreamerWithdrawals'],
|
|
286
304
|
'previousNetDeposits': value['previousNetDeposits'],
|
|
287
305
|
'previousTotalGGR': value['previousTotalGGR'],
|
|
288
306
|
'previousTotalNGR': value['previousTotalNGR'],
|