@smartico/public-api 0.0.328 → 0.0.329
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/Raffle/Raffle.d.ts +8 -0
- package/dist/WSAPI/WSAPITypes.d.ts +8 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +15 -5
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +4 -2
- package/dist/index.modern.mjs.map +1 -1
- package/package.json +1 -1
- package/src/Missions/MissionsUtils.ts +1 -1
- package/src/Raffle/GetRafflesResponse.ts +2 -0
- package/src/Raffle/Raffle.ts +10 -0
- package/src/WSAPI/WSAPITypes.ts +8 -0
- package/src/index.ts +1 -0
package/dist/Raffle/Raffle.d.ts
CHANGED
|
@@ -34,6 +34,14 @@ interface Raffle {
|
|
|
34
34
|
* Number of tickets that are already given to all users for this raffle
|
|
35
35
|
*/
|
|
36
36
|
current_tickets_count: number;
|
|
37
|
+
/**
|
|
38
|
+
* If true, the user has opted-in to the raffle.
|
|
39
|
+
*/
|
|
40
|
+
user_opted_in: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* If true, the user needs to opt-in to the raffle before they can participate.
|
|
43
|
+
*/
|
|
44
|
+
requires_optin: boolean;
|
|
37
45
|
/**
|
|
38
46
|
* List of draws that are available for this raffle.
|
|
39
47
|
* For example, if the raffle is containg one hourly draw, one daily draw and one draw on fixed date like 01/01/2022,
|
|
@@ -935,6 +935,14 @@ export interface TRaffle {
|
|
|
935
935
|
* Number of tickets that are already given to all users for this raffle
|
|
936
936
|
*/
|
|
937
937
|
current_tickets_count: number;
|
|
938
|
+
/**
|
|
939
|
+
* If true, the user has opted-in to the raffle.
|
|
940
|
+
*/
|
|
941
|
+
user_opted_in: boolean;
|
|
942
|
+
/**
|
|
943
|
+
* If true, the user needs to opt-in to the raffle before they can participate.
|
|
944
|
+
*/
|
|
945
|
+
requires_optin: boolean;
|
|
938
946
|
/**
|
|
939
947
|
* List of draws that are available for this raffle.
|
|
940
948
|
* For example, if the raffle is containg one hourly draw, one daily draw and one draw on fixed date like 01/01/2022,
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1352,7 +1352,7 @@ MissionUtils.replaceTagsFavMissionTask = function (_ref) {
|
|
|
1352
1352
|
suggestedGames = value.map(function (v) {
|
|
1353
1353
|
var cleaned = v.replace(/_/g, ' ').toLowerCase();
|
|
1354
1354
|
return cleaned.charAt(0).toUpperCase() + cleaned.slice(1);
|
|
1355
|
-
}).join('
|
|
1355
|
+
}).join(', ');
|
|
1356
1356
|
}
|
|
1357
1357
|
}
|
|
1358
1358
|
if (operatorsPos.includes(operator)) {
|
|
@@ -1985,6 +1985,8 @@ var raffleTransform = function raffleTransform(items) {
|
|
|
1985
1985
|
end_date: item.end_date_ts,
|
|
1986
1986
|
max_tickets_count: item.max_tickets_count,
|
|
1987
1987
|
current_tickets_count: item.current_tickets_count,
|
|
1988
|
+
user_opted_in: item.user_opted_in,
|
|
1989
|
+
requires_optin: item.requires_optin,
|
|
1988
1990
|
draws: drawTransform(item.draws)
|
|
1989
1991
|
};
|
|
1990
1992
|
});
|
|
@@ -2018,7 +2020,7 @@ var drawRunTransform = function drawRunTransform(res) {
|
|
|
2018
2020
|
};
|
|
2019
2021
|
};
|
|
2020
2022
|
|
|
2021
|
-
|
|
2023
|
+
exports.RaffleDrawInstanceState = void 0;
|
|
2022
2024
|
(function (RaffleDrawInstanceState) {
|
|
2023
2025
|
/** Draw is open for the tickets collection */
|
|
2024
2026
|
RaffleDrawInstanceState[RaffleDrawInstanceState["Open"] = 1] = "Open";
|
|
@@ -2026,8 +2028,8 @@ var RaffleDrawInstanceState;
|
|
|
2026
2028
|
RaffleDrawInstanceState[RaffleDrawInstanceState["WinnerSelection"] = 2] = "WinnerSelection";
|
|
2027
2029
|
/** Draw is executed and the winners are selected */
|
|
2028
2030
|
RaffleDrawInstanceState[RaffleDrawInstanceState["Executed"] = 3] = "Executed";
|
|
2029
|
-
})(RaffleDrawInstanceState || (RaffleDrawInstanceState = {}));
|
|
2030
|
-
|
|
2031
|
+
})(exports.RaffleDrawInstanceState || (exports.RaffleDrawInstanceState = {}));
|
|
2032
|
+
exports.RaffleDrawTypeExecution = void 0;
|
|
2031
2033
|
(function (RaffleDrawTypeExecution) {
|
|
2032
2034
|
/** Draw is executed only once */
|
|
2033
2035
|
RaffleDrawTypeExecution[RaffleDrawTypeExecution["ExecDate"] = 0] = "ExecDate";
|
|
@@ -2039,7 +2041,7 @@ var RaffleDrawTypeExecution;
|
|
|
2039
2041
|
* often with larger prizes or more importance.
|
|
2040
2042
|
*/
|
|
2041
2043
|
RaffleDrawTypeExecution[RaffleDrawTypeExecution["Grand"] = 2] = "Grand";
|
|
2042
|
-
})(RaffleDrawTypeExecution || (RaffleDrawTypeExecution = {}));
|
|
2044
|
+
})(exports.RaffleDrawTypeExecution || (exports.RaffleDrawTypeExecution = {}));
|
|
2043
2045
|
|
|
2044
2046
|
/** @hidden */
|
|
2045
2047
|
var drawRunHistoryTransform = function drawRunHistoryTransform(res) {
|
|
@@ -5739,9 +5741,13 @@ exports.TournamentRegistrationTypeGetName = TournamentRegistrationTypeGetName;
|
|
|
5739
5741
|
exports.TournamentUtils = TournamentUtils;
|
|
5740
5742
|
exports.UICustomSectionTransform = UICustomSectionTransform;
|
|
5741
5743
|
exports.UserAchievementTransform = UserAchievementTransform;
|
|
5744
|
+
exports.drawRunHistoryTransform = drawRunHistoryTransform;
|
|
5745
|
+
exports.drawRunTransform = drawRunTransform;
|
|
5746
|
+
exports.drawTransform = drawTransform;
|
|
5742
5747
|
exports.enrichUserAchievementsWithBadgeState = enrichUserAchievementsWithBadgeState;
|
|
5743
5748
|
exports.getLeaderBoardTransform = getLeaderBoardTransform;
|
|
5744
5749
|
exports.marketsInfo = marketsInfo;
|
|
5750
|
+
exports.prizeTransform = prizeTransform;
|
|
5745
5751
|
exports.quizAnswerAwayTeamReplacementText = quizAnswerAwayTeamReplacementText;
|
|
5746
5752
|
exports.quizAnswerHomeTeamReplacementText = quizAnswerHomeTeamReplacementText;
|
|
5747
5753
|
exports.quizAnswersTrKeys = quizAnswersTrKeys;
|
|
@@ -5753,5 +5759,9 @@ exports.quizOddReplacementText = quizOddReplacementText;
|
|
|
5753
5759
|
exports.quizOrReplacementText = quizOrReplacementText;
|
|
5754
5760
|
exports.quizSupportedSports = quizSupportedSports;
|
|
5755
5761
|
exports.quizYesReplacementText = quizYesReplacementText;
|
|
5762
|
+
exports.raffleClaimPrizeResponseTransform = raffleClaimPrizeResponseTransform;
|
|
5763
|
+
exports.raffleTransform = raffleTransform;
|
|
5764
|
+
exports.ticketsTransform = ticketsTransform;
|
|
5756
5765
|
exports.tournamentInfoItemTransform = tournamentInfoItemTransform;
|
|
5766
|
+
exports.winnersTransform = winnersTransform;
|
|
5757
5767
|
//# sourceMappingURL=index.js.map
|