@azuro-org/toolkit 5.1.0-beta.3 → 5.1.1
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/global.d.ts +14 -2
- package/dist/index.js +2 -2
- package/dist/utils/bonus/getBonuses.d.ts +14 -0
- package/package.json +1 -1
package/dist/global.d.ts
CHANGED
|
@@ -66,12 +66,10 @@ export declare enum FreebetType {
|
|
|
66
66
|
AllWin = "AllWin"
|
|
67
67
|
}
|
|
68
68
|
export declare enum BetRestrictionType {
|
|
69
|
-
All = "All",
|
|
70
69
|
Ordinar = "Ordinar",
|
|
71
70
|
Combo = "Combo"
|
|
72
71
|
}
|
|
73
72
|
export declare enum EventRestrictionState {
|
|
74
|
-
All = "All",
|
|
75
73
|
Live = "Live",
|
|
76
74
|
Prematch = "Prematch"
|
|
77
75
|
}
|
|
@@ -102,6 +100,20 @@ export type Freebet = {
|
|
|
102
100
|
};
|
|
103
101
|
eventRestriction: {
|
|
104
102
|
state: EventRestrictionState | undefined;
|
|
103
|
+
eventFilter?: {
|
|
104
|
+
exclude: boolean;
|
|
105
|
+
filter: [
|
|
106
|
+
{
|
|
107
|
+
sportId: string;
|
|
108
|
+
leagues: string[];
|
|
109
|
+
markets: {
|
|
110
|
+
marketId: number;
|
|
111
|
+
gamePeriodId: number;
|
|
112
|
+
gameTypeId: number;
|
|
113
|
+
}[];
|
|
114
|
+
}
|
|
115
|
+
];
|
|
116
|
+
};
|
|
105
117
|
};
|
|
106
118
|
periodOfValidityMs: number;
|
|
107
119
|
};
|
package/dist/index.js
CHANGED
|
@@ -6195,13 +6195,11 @@ var FreebetType;
|
|
|
6195
6195
|
})(FreebetType || (FreebetType = {}));
|
|
6196
6196
|
var BetRestrictionType;
|
|
6197
6197
|
(function (BetRestrictionType) {
|
|
6198
|
-
BetRestrictionType["All"] = "All";
|
|
6199
6198
|
BetRestrictionType["Ordinar"] = "Ordinar";
|
|
6200
6199
|
BetRestrictionType["Combo"] = "Combo";
|
|
6201
6200
|
})(BetRestrictionType || (BetRestrictionType = {}));
|
|
6202
6201
|
var EventRestrictionState;
|
|
6203
6202
|
(function (EventRestrictionState) {
|
|
6204
|
-
EventRestrictionState["All"] = "All";
|
|
6205
6203
|
EventRestrictionState["Live"] = "Live";
|
|
6206
6204
|
EventRestrictionState["Prematch"] = "Prematch";
|
|
6207
6205
|
})(EventRestrictionState || (EventRestrictionState = {}));const BettorFragmentDoc = gql `
|
|
@@ -8370,6 +8368,7 @@ const createCashout = async (props) => {
|
|
|
8370
8368
|
},
|
|
8371
8369
|
eventRestriction: {
|
|
8372
8370
|
state: settings.eventRestriction.eventStatus === 'All' ? undefined : settings.eventRestriction.eventStatus,
|
|
8371
|
+
eventFilter: settings.eventRestriction.eventFilter,
|
|
8373
8372
|
},
|
|
8374
8373
|
periodOfValidityMs: settings.periodOfValidityMs,
|
|
8375
8374
|
},
|
|
@@ -8429,6 +8428,7 @@ const createCashout = async (props) => {
|
|
|
8429
8428
|
},
|
|
8430
8429
|
eventRestriction: {
|
|
8431
8430
|
state: settings.eventRestriction.eventStatus === 'All' ? undefined : settings.eventRestriction.eventStatus,
|
|
8431
|
+
eventFilter: settings.eventRestriction.eventFilter,
|
|
8432
8432
|
},
|
|
8433
8433
|
periodOfValidityMs: settings.periodOfValidityMs,
|
|
8434
8434
|
},
|
|
@@ -18,6 +18,20 @@ export type RawBonus = {
|
|
|
18
18
|
};
|
|
19
19
|
eventRestriction: {
|
|
20
20
|
eventStatus: EventRestrictionState | 'All';
|
|
21
|
+
eventFilter?: {
|
|
22
|
+
exclude: boolean;
|
|
23
|
+
filter: [
|
|
24
|
+
{
|
|
25
|
+
sportId: string;
|
|
26
|
+
leagues: string[];
|
|
27
|
+
markets: {
|
|
28
|
+
marketId: number;
|
|
29
|
+
gamePeriodId: number;
|
|
30
|
+
gameTypeId: number;
|
|
31
|
+
}[];
|
|
32
|
+
}
|
|
33
|
+
];
|
|
34
|
+
};
|
|
21
35
|
};
|
|
22
36
|
periodOfValidityMs: 86400000;
|
|
23
37
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azuro-org/toolkit",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.1",
|
|
4
4
|
"description": "This framework-agnostic package provides essential utilities for building applications on the Azuro Protocol.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|