@opexa/portal-sdk 0.0.134 → 0.0.136
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/dist/index.js +45 -41
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +219 -178
- package/dist/index.mjs.map +1 -1
- package/dist/sdk/types.d.ts +22 -15
- package/dist/services/types.d.ts +28 -19
- package/package.json +1 -1
package/dist/sdk/types.d.ts
CHANGED
|
@@ -658,22 +658,26 @@ export type TurnoverRequirementType = UnionAlias<Internal.TurnoverRequirementTyp
|
|
|
658
658
|
export interface SpotBonusPromo {
|
|
659
659
|
id: string;
|
|
660
660
|
name: string;
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
status: 'READY';
|
|
664
|
-
}> | null;
|
|
665
|
-
bonusAmount: number;
|
|
661
|
+
type: PromoType;
|
|
662
|
+
status: PromoStatus;
|
|
666
663
|
daysToClear: number;
|
|
667
664
|
zeroOutThreshold: number;
|
|
668
665
|
turnoverRequirementMultiplier: number;
|
|
669
|
-
turnoverRequirementType
|
|
670
|
-
minimumTicketOddFactorPerSportsGameProvider:
|
|
671
|
-
turnoverRequirementContributionPercentagePerGameProvider:
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
666
|
+
turnoverRequirementType?: TurnoverRequirementType;
|
|
667
|
+
minimumTicketOddFactorPerSportsGameProvider: Partial<Record<GameProvider, number>>;
|
|
668
|
+
turnoverRequirementContributionPercentagePerGameProvider: Partial<Record<GameProvider, number>>;
|
|
669
|
+
bonusAmount?: number;
|
|
670
|
+
enabledGameProviders: GameProvider[];
|
|
671
|
+
activationStartDateTime?: Date;
|
|
672
|
+
activationEndDateTime?: Date;
|
|
673
|
+
banner?: {
|
|
674
|
+
id: string;
|
|
675
|
+
url?: string;
|
|
676
|
+
};
|
|
677
|
+
description?: string;
|
|
678
|
+
dateTimeCreated: Date;
|
|
679
|
+
dateTimeLastUpdated: Date;
|
|
680
|
+
dateTimeClosed?: Date;
|
|
677
681
|
totalBonus: number;
|
|
678
682
|
totalDeposit: number;
|
|
679
683
|
totalBonusBalance: number;
|
|
@@ -825,12 +829,15 @@ export interface PointsClubSettings {
|
|
|
825
829
|
}
|
|
826
830
|
export type PointsClubSettingsReturn = OperationResult<never, PointsClubSettings | null>;
|
|
827
831
|
export type ClaimRewardError = UnionAlias<Internal.ClaimRewardError>;
|
|
828
|
-
export type
|
|
832
|
+
export type MessageIcon = UnionAlias<Internal.MessageIcon>;
|
|
829
833
|
export interface MessageAction extends Internal.MessageAction {
|
|
830
834
|
}
|
|
831
835
|
export interface Message {
|
|
832
836
|
id: string;
|
|
833
|
-
|
|
837
|
+
icon: MessageIcon;
|
|
838
|
+
/** @deprecated use `Message.icon` */
|
|
839
|
+
logo: MessageIcon;
|
|
840
|
+
image?: string;
|
|
834
841
|
title: string;
|
|
835
842
|
popup: boolean;
|
|
836
843
|
content: string;
|
package/dist/services/types.d.ts
CHANGED
|
@@ -501,7 +501,7 @@ export interface InstapayBankListQuery {
|
|
|
501
501
|
export interface RemainingDailyWithdrawalsCountQuery {
|
|
502
502
|
remainingDailyWithdrawalsCount: number;
|
|
503
503
|
}
|
|
504
|
-
export type PromoType = 'DEPOSIT';
|
|
504
|
+
export type PromoType = 'DEPOSIT' | 'GENERIC' | 'SPOT_BONUS';
|
|
505
505
|
export type PromoStatus = 'ACTIVE' | 'INACTIVE' | 'DISABLED' | 'EXPIRED';
|
|
506
506
|
export interface Promo {
|
|
507
507
|
id: string;
|
|
@@ -564,28 +564,34 @@ export type TurnoverRequirementType = 'BONUS' | 'DEPOSIT_PLUS_BONUS';
|
|
|
564
564
|
export interface SpotBonusPromo {
|
|
565
565
|
id: string;
|
|
566
566
|
name: string;
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
bonusAmount: number;
|
|
567
|
+
type: PromoType;
|
|
568
|
+
status: PromoStatus;
|
|
570
569
|
daysToClear: number;
|
|
571
|
-
zeroOutThreshold:
|
|
570
|
+
zeroOutThreshold: Decimal;
|
|
572
571
|
turnoverRequirementMultiplier: number;
|
|
573
|
-
turnoverRequirementType
|
|
574
|
-
minimumTicketOddFactorPerSportsGameProvider:
|
|
575
|
-
turnoverRequirementContributionPercentagePerGameProvider:
|
|
576
|
-
|
|
577
|
-
|
|
572
|
+
turnoverRequirementType?: TurnoverRequirementType;
|
|
573
|
+
minimumTicketOddFactorPerSportsGameProvider: Partial<Record<GameProvider, Decimal>>;
|
|
574
|
+
turnoverRequirementContributionPercentagePerGameProvider: Partial<Record<GameProvider, Decimal>>;
|
|
575
|
+
bonusAmount?: Decimal;
|
|
576
|
+
enabledGameProviders: GameProvider[];
|
|
577
|
+
activationStartDateTime?: DateString;
|
|
578
|
+
activationEndDateTime?: DateString;
|
|
579
|
+
banner?: {
|
|
580
|
+
id: string;
|
|
581
|
+
url?: string;
|
|
582
|
+
};
|
|
583
|
+
description?: string;
|
|
578
584
|
dateTimeCreated: DateString;
|
|
579
585
|
dateTimeLastUpdated: DateString;
|
|
580
|
-
dateTimeClosed
|
|
581
|
-
totalBonus:
|
|
582
|
-
totalDeposit:
|
|
583
|
-
totalBonusBalance:
|
|
584
|
-
totalBet:
|
|
585
|
-
totalBonusCashedOut:
|
|
586
|
+
dateTimeClosed?: DateString;
|
|
587
|
+
totalBonus: Decimal;
|
|
588
|
+
totalDeposit: Decimal;
|
|
589
|
+
totalBonusBalance: Decimal;
|
|
590
|
+
totalBet: Decimal;
|
|
591
|
+
totalBonusCashedOut: Decimal;
|
|
586
592
|
bonusesCount: number;
|
|
587
593
|
closedBonusesCount: number;
|
|
588
|
-
closedBonusesCountPercentage:
|
|
594
|
+
closedBonusesCountPercentage: Decimal;
|
|
589
595
|
activeBonusesCount: number;
|
|
590
596
|
clearedBonusesCount: number;
|
|
591
597
|
zeroedOutBonusesCount: number;
|
|
@@ -1273,12 +1279,15 @@ export interface MessageAction {
|
|
|
1273
1279
|
name: string;
|
|
1274
1280
|
url: string;
|
|
1275
1281
|
}
|
|
1276
|
-
export type
|
|
1282
|
+
export type MessageIcon = 'MESSAGE' | 'CHECK' | 'CELEBRATE' | 'ALERT';
|
|
1277
1283
|
export interface Message {
|
|
1278
1284
|
id: string;
|
|
1279
|
-
|
|
1285
|
+
icon: MessageIcon;
|
|
1286
|
+
/** @deprecated use `Message.icon` */
|
|
1287
|
+
logo: MessageIcon;
|
|
1280
1288
|
title: string;
|
|
1281
1289
|
popup: boolean;
|
|
1290
|
+
image?: string;
|
|
1282
1291
|
content: string;
|
|
1283
1292
|
actions: MessageAction[];
|
|
1284
1293
|
markedAsRead: boolean;
|