@smartico/public-api 0.0.329 → 0.0.331
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/Base/ClassId.d.ts +2 -2
- package/dist/MiniGames/SAWGameType.d.ts +3 -1
- package/dist/Raffle/Raffle.d.ts +0 -8
- package/dist/Raffle/RaffleDraw.d.ts +8 -0
- package/dist/WSAPI/WSAPITypes.d.ts +8 -8
- package/dist/index.js +11 -7
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +12 -7
- package/dist/index.modern.mjs.map +1 -1
- package/docs/interfaces/RaffleDraw.md +16 -0
- package/docs/interfaces/TRaffleDraw.md +16 -0
- package/docs/interfaces/TStoreItem.md +1 -1
- package/package.json +1 -1
- package/src/Base/ClassId.ts +2 -2
- package/src/MiniGames/SAWGameType.ts +3 -0
- package/src/Raffle/GetDrawRunResponse.ts +3 -1
- package/src/Raffle/GetRafflesResponse.ts +2 -2
- package/src/Raffle/Raffle.ts +0 -10
- package/src/Raffle/RaffleDraw.ts +8 -0
- package/src/WSAPI/WSAPITypes.ts +8 -8
package/dist/index.modern.mjs
CHANGED
|
@@ -137,8 +137,8 @@ var ClassId;
|
|
|
137
137
|
ClassId[ClassId["RAF_GET_DRAW_HISTORY_RESPONSE"] = 907] = "RAF_GET_DRAW_HISTORY_RESPONSE";
|
|
138
138
|
ClassId[ClassId["RAF_CLAIM_PRIZE_REQUEST"] = 908] = "RAF_CLAIM_PRIZE_REQUEST";
|
|
139
139
|
ClassId[ClassId["RAF_CLAIM_PRIZE_RESPONSE"] = 909] = "RAF_CLAIM_PRIZE_RESPONSE";
|
|
140
|
-
ClassId[ClassId["RAF_OPTIN_REQUEST"] =
|
|
141
|
-
ClassId[ClassId["RAF_OPTIN_RESPONSE"] =
|
|
140
|
+
ClassId[ClassId["RAF_OPTIN_REQUEST"] = 916] = "RAF_OPTIN_REQUEST";
|
|
141
|
+
ClassId[ClassId["RAF_OPTIN_RESPONSE"] = 917] = "RAF_OPTIN_RESPONSE";
|
|
142
142
|
/*
|
|
143
143
|
RAF_GET_TICKETS_REQUEST = 902,
|
|
144
144
|
RAF_GET_TICKETS_RESPONSE = 903,
|
|
@@ -342,6 +342,7 @@ var SAWGameType;
|
|
|
342
342
|
SAWGameType[SAWGameType["TreasureHunt"] = 9] = "TreasureHunt";
|
|
343
343
|
SAWGameType[SAWGameType["Voyager"] = 10] = "Voyager";
|
|
344
344
|
SAWGameType[SAWGameType["Plinko"] = 11] = "Plinko";
|
|
345
|
+
SAWGameType[SAWGameType["\u0421oinFlip"] = 12] = "\u0421oinFlip";
|
|
345
346
|
})(SAWGameType || (SAWGameType = {}));
|
|
346
347
|
var SAWGameTypeName;
|
|
347
348
|
(function (SAWGameTypeName) {
|
|
@@ -356,6 +357,7 @@ var SAWGameTypeName;
|
|
|
356
357
|
SAWGameTypeName["TreasureHunt"] = "treasure_hunt";
|
|
357
358
|
SAWGameTypeName["Voyager"] = "voyager";
|
|
358
359
|
SAWGameTypeName["Plinko"] = "plinko";
|
|
360
|
+
SAWGameTypeName["\u0421oinFlip"] = "coin_flip";
|
|
359
361
|
SAWGameTypeName["Unknown"] = "unknown";
|
|
360
362
|
})(SAWGameTypeName || (SAWGameTypeName = {}));
|
|
361
363
|
/** @hidden */
|
|
@@ -371,7 +373,8 @@ const SAWGameTypeNamed = type => {
|
|
|
371
373
|
[SAWGameType.LootboxCalendarDays]: SAWGameTypeName.LootboxCalendarDays,
|
|
372
374
|
[SAWGameType.TreasureHunt]: SAWGameTypeName.TreasureHunt,
|
|
373
375
|
[SAWGameType.Voyager]: SAWGameTypeName.Voyager,
|
|
374
|
-
[SAWGameType.Plinko]: SAWGameTypeName.Plinko
|
|
376
|
+
[SAWGameType.Plinko]: SAWGameTypeName.Plinko,
|
|
377
|
+
[SAWGameType.СoinFlip]: SAWGameTypeName.СoinFlip
|
|
375
378
|
}[type] || SAWGameTypeName.Unknown;
|
|
376
379
|
};
|
|
377
380
|
|
|
@@ -1967,7 +1970,9 @@ const drawTransform = items => {
|
|
|
1967
1970
|
allow_multi_prize_per_ticket: item.allow_multi_prize_per_ticket,
|
|
1968
1971
|
total_tickets_count: item.total_tickets_count,
|
|
1969
1972
|
my_tickets_count: item.my_tickets_count,
|
|
1970
|
-
my_last_tickets: ticketsTransform(item.my_last_tickets)
|
|
1973
|
+
my_last_tickets: ticketsTransform(item.my_last_tickets),
|
|
1974
|
+
user_opted_in: Boolean(item.user_opted_in),
|
|
1975
|
+
requires_optin: Boolean(item.requires_optin)
|
|
1971
1976
|
};
|
|
1972
1977
|
});
|
|
1973
1978
|
};
|
|
@@ -1986,8 +1991,6 @@ const raffleTransform = items => {
|
|
|
1986
1991
|
end_date: item.end_date_ts,
|
|
1987
1992
|
max_tickets_count: item.max_tickets_count,
|
|
1988
1993
|
current_tickets_count: item.current_tickets_count,
|
|
1989
|
-
user_opted_in: item.user_opted_in,
|
|
1990
|
-
requires_optin: item.requires_optin,
|
|
1991
1994
|
draws: drawTransform(item.draws)
|
|
1992
1995
|
};
|
|
1993
1996
|
});
|
|
@@ -2017,7 +2020,9 @@ const drawRunTransform = res => {
|
|
|
2017
2020
|
allow_multi_prize_per_ticket: res.draw.allow_multi_prize_per_ticket,
|
|
2018
2021
|
total_tickets_count: res.draw.total_tickets_count,
|
|
2019
2022
|
my_tickets_count: res.draw.my_tickets_count,
|
|
2020
|
-
my_last_tickets: ticketsTransform(res.draw.my_last_tickets)
|
|
2023
|
+
my_last_tickets: ticketsTransform(res.draw.my_last_tickets),
|
|
2024
|
+
user_opted_in: Boolean(res.draw.user_opted_in),
|
|
2025
|
+
requires_optin: Boolean(res.draw.requires_optin)
|
|
2021
2026
|
};
|
|
2022
2027
|
};
|
|
2023
2028
|
|