@getenginex/sdk-igaming 0.8.0 → 0.9.0
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/CHANGELOG.md +12 -0
- package/dist/index.cjs +274 -263
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +17 -7
- package/dist/index.d.ts +17 -7
- package/dist/index.js +273 -263
- package/dist/index.js.map +1 -1
- package/dist/testing/index.cjs +3 -1
- package/dist/testing/index.cjs.map +1 -1
- package/dist/testing/index.js +3 -1
- package/dist/testing/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -420,6 +420,11 @@ interface CampaignWageringPolicy {
|
|
|
420
420
|
rounding: CampaignRoundingMode;
|
|
421
421
|
/** Minimum odds for the sports bet to count. */
|
|
422
422
|
sportsbookContributionOdds?: CampaignOddsPolicy;
|
|
423
|
+
/**
|
|
424
|
+
* Ceiling on the restricted balance that becomes real money when the rollover completes ("maximum
|
|
425
|
+
* withdrawal"): the remainder above it is forfeited. Absent: the whole remaining balance converts.
|
|
426
|
+
*/
|
|
427
|
+
maximumConversion?: CampaignMoney;
|
|
423
428
|
};
|
|
424
429
|
}
|
|
425
430
|
/**
|
|
@@ -1286,6 +1291,11 @@ interface CasinoApi {
|
|
|
1286
1291
|
* @category Loyalty
|
|
1287
1292
|
*/
|
|
1288
1293
|
type RedemptionType = 'bonus' | 'cash' | 'free_bet' | (string & {});
|
|
1294
|
+
/**
|
|
1295
|
+
* Benefits of a loyalty tier as the operator wrote them: an object keyed by benefit or a list of benefits.
|
|
1296
|
+
* @category Loyalty
|
|
1297
|
+
*/
|
|
1298
|
+
type LoyaltyTierBenefits = Record<string, unknown> | unknown[];
|
|
1289
1299
|
/**
|
|
1290
1300
|
* The player's loyalty status (`GET /loyalty`).
|
|
1291
1301
|
* @category Loyalty
|
|
@@ -1306,12 +1316,12 @@ interface LoyaltyStatus {
|
|
|
1306
1316
|
/** Total deposited over the player's lifetime, in minor units (the currency does not come with it). */
|
|
1307
1317
|
lifetimeDeposited: number;
|
|
1308
1318
|
/**
|
|
1309
|
-
* Benefits of the current tier, read from the JSON text the gateway passes along
|
|
1310
|
-
* by the operator (the contract only says "benefits of the current tier"):
|
|
1311
|
-
* when it comes empty or absent, and also when it is
|
|
1312
|
-
* `onValidationIssue` is notified, without the content).
|
|
1319
|
+
* Benefits of the current tier, read from the JSON text the gateway passes along: an object (keyed by benefit)
|
|
1320
|
+
* or a list. The format is defined by the operator (the contract only says "benefits of the current tier"):
|
|
1321
|
+
* check before displaying. `null` when it comes empty or absent, and also when it is neither a JSON object nor
|
|
1322
|
+
* a JSON array (in this case `onValidationIssue` is notified, without the content).
|
|
1313
1323
|
*/
|
|
1314
|
-
tierBenefits:
|
|
1324
|
+
tierBenefits: LoyaltyTierBenefits | null;
|
|
1315
1325
|
/** When the tier expires (ISO 8601, UTC); `null` when the gateway does not send it. */
|
|
1316
1326
|
tierExpiresAt: string | null;
|
|
1317
1327
|
}
|
|
@@ -1350,7 +1360,7 @@ interface LoyaltyApi {
|
|
|
1350
1360
|
* const loyalty = await igaming.loyalty.get()
|
|
1351
1361
|
* console.log(loyalty.currentPoints, loyalty.currentTier, loyalty.tierBenefits)
|
|
1352
1362
|
* @throws {EnginexError} `UNAUTHENTICATED` without a session. With `validation: 'strict'`,
|
|
1353
|
-
* `VALIDATION_ERROR` if `tier_benefits_json` is
|
|
1363
|
+
* `VALIDATION_ERROR` if `tier_benefits_json` is neither a JSON object nor a JSON array.
|
|
1354
1364
|
*/
|
|
1355
1365
|
get(params?: NoParams, options?: CallOptions): Promise<LoyaltyStatus>;
|
|
1356
1366
|
/**
|
|
@@ -1757,4 +1767,4 @@ interface IgamingClient {
|
|
|
1757
1767
|
*/
|
|
1758
1768
|
declare function createIgaming(client: EnginexClient): IgamingClient;
|
|
1759
1769
|
|
|
1760
|
-
export { type ActivityAggregateQualification, type BalanceCreditReward, type BiggestWinner, type BonusApi, type BonusOverview, type BonusOverviewCurrency, type BonusPosition, type BonusPositionState, type BonusPositionTerminalAction, type CampaignCashoutMode, type CampaignContent, type CampaignEntryPolicyCode, type CampaignExactRatio, type CampaignLocalizedContent, type CampaignMaximumBet, type CampaignMoney, type CampaignOddsPolicy, type CampaignOffer, type CampaignParticipation, type CampaignParticipationStatus, type CampaignPercentCalculation, type CampaignPolicy, type CampaignProductScope, type CampaignQualification, type CampaignReward, type CampaignRewardClaimPolicyCode, type CampaignRewardGrant, type CampaignRewardGrantState, type CampaignRewardKind, type CampaignRewardValidity, type CampaignRoundingMode, type CampaignStackingPolicy, type CampaignTermsAcceptance, type CampaignTermsAcceptanceRecord, type CampaignTimeWindow, type CampaignUsePolicy, type CampaignWageringPolicy, type CampaignWageringProgress, type CasinoActivitySelector, type CasinoApi, type CasinoFreeSpinsReward, type CasinoPageInput, type CasinoTransaction, type CasinoTransactionType, type DepositSettledQualification, type Game, type GameCategory, type GameLaunch, type GameProvider, type GameSession, type GameSessionStatus, type GameSort, type GetBiggestWinnersInput, type IgamingClient, type LaunchGameInput, type LaunchTarget, type ListBonusPositionsInput, type ListGamesInput, type ListMissionsInput, type ListReferralsInput, type LoyaltyApi, type LoyaltyStatus, type Mission, type MissionObjectiveType, type MissionRewardType, type MissionType, type MissionsApi, type OptInInput, type PromoCodeOffer, type RedeemPointsInput, type RedeemedPoints, type RedemptionType, type Referral, type ReferralHistory, type ReferralInfo, type ReferralMoney, type ReferralProgress, type ReferralRules, type ReferralStatus, type ReferralTotals, type ReferralsApi, type SportsActivitySelector, type SportsBetCoverageReward, type SportsBetType, type SportsBonusBetReward, type SportsbookApi, type SportsbookSession, type UserEventQualification, type UserMission, type UserMissionStatus, createIgaming };
|
|
1770
|
+
export { type ActivityAggregateQualification, type BalanceCreditReward, type BiggestWinner, type BonusApi, type BonusOverview, type BonusOverviewCurrency, type BonusPosition, type BonusPositionState, type BonusPositionTerminalAction, type CampaignCashoutMode, type CampaignContent, type CampaignEntryPolicyCode, type CampaignExactRatio, type CampaignLocalizedContent, type CampaignMaximumBet, type CampaignMoney, type CampaignOddsPolicy, type CampaignOffer, type CampaignParticipation, type CampaignParticipationStatus, type CampaignPercentCalculation, type CampaignPolicy, type CampaignProductScope, type CampaignQualification, type CampaignReward, type CampaignRewardClaimPolicyCode, type CampaignRewardGrant, type CampaignRewardGrantState, type CampaignRewardKind, type CampaignRewardValidity, type CampaignRoundingMode, type CampaignStackingPolicy, type CampaignTermsAcceptance, type CampaignTermsAcceptanceRecord, type CampaignTimeWindow, type CampaignUsePolicy, type CampaignWageringPolicy, type CampaignWageringProgress, type CasinoActivitySelector, type CasinoApi, type CasinoFreeSpinsReward, type CasinoPageInput, type CasinoTransaction, type CasinoTransactionType, type DepositSettledQualification, type Game, type GameCategory, type GameLaunch, type GameProvider, type GameSession, type GameSessionStatus, type GameSort, type GetBiggestWinnersInput, type IgamingClient, type LaunchGameInput, type LaunchTarget, type ListBonusPositionsInput, type ListGamesInput, type ListMissionsInput, type ListReferralsInput, type LoyaltyApi, type LoyaltyStatus, type LoyaltyTierBenefits, type Mission, type MissionObjectiveType, type MissionRewardType, type MissionType, type MissionsApi, type OptInInput, type PromoCodeOffer, type RedeemPointsInput, type RedeemedPoints, type RedemptionType, type Referral, type ReferralHistory, type ReferralInfo, type ReferralMoney, type ReferralProgress, type ReferralRules, type ReferralStatus, type ReferralTotals, type ReferralsApi, type SportsActivitySelector, type SportsBetCoverageReward, type SportsBetType, type SportsBonusBetReward, type SportsbookApi, type SportsbookSession, type UserEventQualification, type UserMission, type UserMissionStatus, createIgaming };
|
package/dist/index.d.ts
CHANGED
|
@@ -420,6 +420,11 @@ interface CampaignWageringPolicy {
|
|
|
420
420
|
rounding: CampaignRoundingMode;
|
|
421
421
|
/** Minimum odds for the sports bet to count. */
|
|
422
422
|
sportsbookContributionOdds?: CampaignOddsPolicy;
|
|
423
|
+
/**
|
|
424
|
+
* Ceiling on the restricted balance that becomes real money when the rollover completes ("maximum
|
|
425
|
+
* withdrawal"): the remainder above it is forfeited. Absent: the whole remaining balance converts.
|
|
426
|
+
*/
|
|
427
|
+
maximumConversion?: CampaignMoney;
|
|
423
428
|
};
|
|
424
429
|
}
|
|
425
430
|
/**
|
|
@@ -1286,6 +1291,11 @@ interface CasinoApi {
|
|
|
1286
1291
|
* @category Loyalty
|
|
1287
1292
|
*/
|
|
1288
1293
|
type RedemptionType = 'bonus' | 'cash' | 'free_bet' | (string & {});
|
|
1294
|
+
/**
|
|
1295
|
+
* Benefits of a loyalty tier as the operator wrote them: an object keyed by benefit or a list of benefits.
|
|
1296
|
+
* @category Loyalty
|
|
1297
|
+
*/
|
|
1298
|
+
type LoyaltyTierBenefits = Record<string, unknown> | unknown[];
|
|
1289
1299
|
/**
|
|
1290
1300
|
* The player's loyalty status (`GET /loyalty`).
|
|
1291
1301
|
* @category Loyalty
|
|
@@ -1306,12 +1316,12 @@ interface LoyaltyStatus {
|
|
|
1306
1316
|
/** Total deposited over the player's lifetime, in minor units (the currency does not come with it). */
|
|
1307
1317
|
lifetimeDeposited: number;
|
|
1308
1318
|
/**
|
|
1309
|
-
* Benefits of the current tier, read from the JSON text the gateway passes along
|
|
1310
|
-
* by the operator (the contract only says "benefits of the current tier"):
|
|
1311
|
-
* when it comes empty or absent, and also when it is
|
|
1312
|
-
* `onValidationIssue` is notified, without the content).
|
|
1319
|
+
* Benefits of the current tier, read from the JSON text the gateway passes along: an object (keyed by benefit)
|
|
1320
|
+
* or a list. The format is defined by the operator (the contract only says "benefits of the current tier"):
|
|
1321
|
+
* check before displaying. `null` when it comes empty or absent, and also when it is neither a JSON object nor
|
|
1322
|
+
* a JSON array (in this case `onValidationIssue` is notified, without the content).
|
|
1313
1323
|
*/
|
|
1314
|
-
tierBenefits:
|
|
1324
|
+
tierBenefits: LoyaltyTierBenefits | null;
|
|
1315
1325
|
/** When the tier expires (ISO 8601, UTC); `null` when the gateway does not send it. */
|
|
1316
1326
|
tierExpiresAt: string | null;
|
|
1317
1327
|
}
|
|
@@ -1350,7 +1360,7 @@ interface LoyaltyApi {
|
|
|
1350
1360
|
* const loyalty = await igaming.loyalty.get()
|
|
1351
1361
|
* console.log(loyalty.currentPoints, loyalty.currentTier, loyalty.tierBenefits)
|
|
1352
1362
|
* @throws {EnginexError} `UNAUTHENTICATED` without a session. With `validation: 'strict'`,
|
|
1353
|
-
* `VALIDATION_ERROR` if `tier_benefits_json` is
|
|
1363
|
+
* `VALIDATION_ERROR` if `tier_benefits_json` is neither a JSON object nor a JSON array.
|
|
1354
1364
|
*/
|
|
1355
1365
|
get(params?: NoParams, options?: CallOptions): Promise<LoyaltyStatus>;
|
|
1356
1366
|
/**
|
|
@@ -1757,4 +1767,4 @@ interface IgamingClient {
|
|
|
1757
1767
|
*/
|
|
1758
1768
|
declare function createIgaming(client: EnginexClient): IgamingClient;
|
|
1759
1769
|
|
|
1760
|
-
export { type ActivityAggregateQualification, type BalanceCreditReward, type BiggestWinner, type BonusApi, type BonusOverview, type BonusOverviewCurrency, type BonusPosition, type BonusPositionState, type BonusPositionTerminalAction, type CampaignCashoutMode, type CampaignContent, type CampaignEntryPolicyCode, type CampaignExactRatio, type CampaignLocalizedContent, type CampaignMaximumBet, type CampaignMoney, type CampaignOddsPolicy, type CampaignOffer, type CampaignParticipation, type CampaignParticipationStatus, type CampaignPercentCalculation, type CampaignPolicy, type CampaignProductScope, type CampaignQualification, type CampaignReward, type CampaignRewardClaimPolicyCode, type CampaignRewardGrant, type CampaignRewardGrantState, type CampaignRewardKind, type CampaignRewardValidity, type CampaignRoundingMode, type CampaignStackingPolicy, type CampaignTermsAcceptance, type CampaignTermsAcceptanceRecord, type CampaignTimeWindow, type CampaignUsePolicy, type CampaignWageringPolicy, type CampaignWageringProgress, type CasinoActivitySelector, type CasinoApi, type CasinoFreeSpinsReward, type CasinoPageInput, type CasinoTransaction, type CasinoTransactionType, type DepositSettledQualification, type Game, type GameCategory, type GameLaunch, type GameProvider, type GameSession, type GameSessionStatus, type GameSort, type GetBiggestWinnersInput, type IgamingClient, type LaunchGameInput, type LaunchTarget, type ListBonusPositionsInput, type ListGamesInput, type ListMissionsInput, type ListReferralsInput, type LoyaltyApi, type LoyaltyStatus, type Mission, type MissionObjectiveType, type MissionRewardType, type MissionType, type MissionsApi, type OptInInput, type PromoCodeOffer, type RedeemPointsInput, type RedeemedPoints, type RedemptionType, type Referral, type ReferralHistory, type ReferralInfo, type ReferralMoney, type ReferralProgress, type ReferralRules, type ReferralStatus, type ReferralTotals, type ReferralsApi, type SportsActivitySelector, type SportsBetCoverageReward, type SportsBetType, type SportsBonusBetReward, type SportsbookApi, type SportsbookSession, type UserEventQualification, type UserMission, type UserMissionStatus, createIgaming };
|
|
1770
|
+
export { type ActivityAggregateQualification, type BalanceCreditReward, type BiggestWinner, type BonusApi, type BonusOverview, type BonusOverviewCurrency, type BonusPosition, type BonusPositionState, type BonusPositionTerminalAction, type CampaignCashoutMode, type CampaignContent, type CampaignEntryPolicyCode, type CampaignExactRatio, type CampaignLocalizedContent, type CampaignMaximumBet, type CampaignMoney, type CampaignOddsPolicy, type CampaignOffer, type CampaignParticipation, type CampaignParticipationStatus, type CampaignPercentCalculation, type CampaignPolicy, type CampaignProductScope, type CampaignQualification, type CampaignReward, type CampaignRewardClaimPolicyCode, type CampaignRewardGrant, type CampaignRewardGrantState, type CampaignRewardKind, type CampaignRewardValidity, type CampaignRoundingMode, type CampaignStackingPolicy, type CampaignTermsAcceptance, type CampaignTermsAcceptanceRecord, type CampaignTimeWindow, type CampaignUsePolicy, type CampaignWageringPolicy, type CampaignWageringProgress, type CasinoActivitySelector, type CasinoApi, type CasinoFreeSpinsReward, type CasinoPageInput, type CasinoTransaction, type CasinoTransactionType, type DepositSettledQualification, type Game, type GameCategory, type GameLaunch, type GameProvider, type GameSession, type GameSessionStatus, type GameSort, type GetBiggestWinnersInput, type IgamingClient, type LaunchGameInput, type LaunchTarget, type ListBonusPositionsInput, type ListGamesInput, type ListMissionsInput, type ListReferralsInput, type LoyaltyApi, type LoyaltyStatus, type LoyaltyTierBenefits, type Mission, type MissionObjectiveType, type MissionRewardType, type MissionType, type MissionsApi, type OptInInput, type PromoCodeOffer, type RedeemPointsInput, type RedeemedPoints, type RedemptionType, type Referral, type ReferralHistory, type ReferralInfo, type ReferralMoney, type ReferralProgress, type ReferralRules, type ReferralStatus, type ReferralTotals, type ReferralsApi, type SportsActivitySelector, type SportsBetCoverageReward, type SportsBetType, type SportsBonusBetReward, type SportsbookApi, type SportsbookSession, type UserEventQualification, type UserMission, type UserMissionStatus, createIgaming };
|