@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/Base/ClassId.d.ts
CHANGED
|
@@ -113,8 +113,8 @@ export declare enum ClassId {
|
|
|
113
113
|
RAF_GET_DRAW_HISTORY_RESPONSE = 907,
|
|
114
114
|
RAF_CLAIM_PRIZE_REQUEST = 908,
|
|
115
115
|
RAF_CLAIM_PRIZE_RESPONSE = 909,
|
|
116
|
-
RAF_OPTIN_REQUEST =
|
|
117
|
-
RAF_OPTIN_RESPONSE =
|
|
116
|
+
RAF_OPTIN_REQUEST = 916,
|
|
117
|
+
RAF_OPTIN_RESPONSE = 917,
|
|
118
118
|
REGISTER_PUSH_NOTIFICATIONS_TOKEN_REQ = 1003,
|
|
119
119
|
REGISTER_PUSH_NOTIFICATIONS_TOKEN_RESP = 2003,
|
|
120
120
|
CLIENT_DEBUG_REQUEST = 77777,
|
|
@@ -9,7 +9,8 @@ export declare enum SAWGameType {
|
|
|
9
9
|
LootboxCalendarDays = 8,
|
|
10
10
|
TreasureHunt = 9,
|
|
11
11
|
Voyager = 10,
|
|
12
|
-
Plinko = 11
|
|
12
|
+
Plinko = 11,
|
|
13
|
+
СoinFlip = 12
|
|
13
14
|
}
|
|
14
15
|
export declare enum SAWGameTypeName {
|
|
15
16
|
SpinAWheel = "wheel",
|
|
@@ -23,6 +24,7 @@ export declare enum SAWGameTypeName {
|
|
|
23
24
|
TreasureHunt = "treasure_hunt",
|
|
24
25
|
Voyager = "voyager",
|
|
25
26
|
Plinko = "plinko",
|
|
27
|
+
СoinFlip = "coin_flip",
|
|
26
28
|
Unknown = "unknown"
|
|
27
29
|
}
|
|
28
30
|
/** @hidden */
|
package/dist/Raffle/Raffle.d.ts
CHANGED
|
@@ -34,14 +34,6 @@ 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;
|
|
45
37
|
/**
|
|
46
38
|
* List of draws that are available for this raffle.
|
|
47
39
|
* For example, if the raffle is containg one hourly draw, one daily draw and one draw on fixed date like 01/01/2022,
|
|
@@ -83,5 +83,13 @@ interface RaffleDraw {
|
|
|
83
83
|
* List of last 5 tickets are collected by current user for this instance of draw.
|
|
84
84
|
*/
|
|
85
85
|
my_last_tickets: RaffleTicket[];
|
|
86
|
+
/**
|
|
87
|
+
* If true, the user has opted-in to the raffle.
|
|
88
|
+
*/
|
|
89
|
+
user_opted_in: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* If true, the user needs to opt-in to the raffle before they can participate.
|
|
92
|
+
*/
|
|
93
|
+
requires_optin: boolean;
|
|
86
94
|
}
|
|
87
95
|
export { RaffleDraw };
|
|
@@ -935,14 +935,6 @@ 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;
|
|
946
938
|
/**
|
|
947
939
|
* List of draws that are available for this raffle.
|
|
948
940
|
* For example, if the raffle is containg one hourly draw, one daily draw and one draw on fixed date like 01/01/2022,
|
|
@@ -1138,6 +1130,14 @@ export interface TRaffleDraw {
|
|
|
1138
1130
|
*/
|
|
1139
1131
|
my_tickets_count: number;
|
|
1140
1132
|
my_last_tickets: TRaffleTicket[];
|
|
1133
|
+
/**
|
|
1134
|
+
* If true, the user has opted-in to the raffle.
|
|
1135
|
+
*/
|
|
1136
|
+
user_opted_in: boolean;
|
|
1137
|
+
/**
|
|
1138
|
+
* If true, the user needs to opt-in to the raffle before they can participate.
|
|
1139
|
+
*/
|
|
1140
|
+
requires_optin: boolean;
|
|
1141
1141
|
}
|
|
1142
1142
|
export interface TRaffleDrawRun {
|
|
1143
1143
|
/**
|
package/dist/index.js
CHANGED
|
@@ -137,8 +137,8 @@ exports.ClassId = void 0;
|
|
|
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,
|
|
@@ -366,6 +366,7 @@ exports.SAWGameType = void 0;
|
|
|
366
366
|
SAWGameType[SAWGameType["TreasureHunt"] = 9] = "TreasureHunt";
|
|
367
367
|
SAWGameType[SAWGameType["Voyager"] = 10] = "Voyager";
|
|
368
368
|
SAWGameType[SAWGameType["Plinko"] = 11] = "Plinko";
|
|
369
|
+
SAWGameType[SAWGameType["\u0421oinFlip"] = 12] = "\u0421oinFlip";
|
|
369
370
|
})(exports.SAWGameType || (exports.SAWGameType = {}));
|
|
370
371
|
exports.SAWGameTypeName = void 0;
|
|
371
372
|
(function (SAWGameTypeName) {
|
|
@@ -380,12 +381,13 @@ exports.SAWGameTypeName = void 0;
|
|
|
380
381
|
SAWGameTypeName["TreasureHunt"] = "treasure_hunt";
|
|
381
382
|
SAWGameTypeName["Voyager"] = "voyager";
|
|
382
383
|
SAWGameTypeName["Plinko"] = "plinko";
|
|
384
|
+
SAWGameTypeName["\u0421oinFlip"] = "coin_flip";
|
|
383
385
|
SAWGameTypeName["Unknown"] = "unknown";
|
|
384
386
|
})(exports.SAWGameTypeName || (exports.SAWGameTypeName = {}));
|
|
385
387
|
/** @hidden */
|
|
386
388
|
var SAWGameTypeNamed = function SAWGameTypeNamed(type) {
|
|
387
389
|
var _SAWGameType$SpinAWhe;
|
|
388
|
-
return (_SAWGameType$SpinAWhe = {}, _SAWGameType$SpinAWhe[exports.SAWGameType.SpinAWheel] = exports.SAWGameTypeName.SpinAWheel, _SAWGameType$SpinAWhe[exports.SAWGameType.ScratchCard] = exports.SAWGameTypeName.ScratchCard, _SAWGameType$SpinAWhe[exports.SAWGameType.MatchX] = exports.SAWGameTypeName.MatchX, _SAWGameType$SpinAWhe[exports.SAWGameType.GiftBox] = exports.SAWGameTypeName.GiftBox, _SAWGameType$SpinAWhe[exports.SAWGameType.PrizeDrop] = exports.SAWGameTypeName.PrizeDrop, _SAWGameType$SpinAWhe[exports.SAWGameType.Quiz] = exports.SAWGameTypeName.Quiz, _SAWGameType$SpinAWhe[exports.SAWGameType.LootboxWeekdays] = exports.SAWGameTypeName.LootboxWeekdays, _SAWGameType$SpinAWhe[exports.SAWGameType.LootboxCalendarDays] = exports.SAWGameTypeName.LootboxCalendarDays, _SAWGameType$SpinAWhe[exports.SAWGameType.TreasureHunt] = exports.SAWGameTypeName.TreasureHunt, _SAWGameType$SpinAWhe[exports.SAWGameType.Voyager] = exports.SAWGameTypeName.Voyager, _SAWGameType$SpinAWhe[exports.SAWGameType.Plinko] = exports.SAWGameTypeName.Plinko, _SAWGameType$SpinAWhe)[type] || exports.SAWGameTypeName.Unknown;
|
|
390
|
+
return (_SAWGameType$SpinAWhe = {}, _SAWGameType$SpinAWhe[exports.SAWGameType.SpinAWheel] = exports.SAWGameTypeName.SpinAWheel, _SAWGameType$SpinAWhe[exports.SAWGameType.ScratchCard] = exports.SAWGameTypeName.ScratchCard, _SAWGameType$SpinAWhe[exports.SAWGameType.MatchX] = exports.SAWGameTypeName.MatchX, _SAWGameType$SpinAWhe[exports.SAWGameType.GiftBox] = exports.SAWGameTypeName.GiftBox, _SAWGameType$SpinAWhe[exports.SAWGameType.PrizeDrop] = exports.SAWGameTypeName.PrizeDrop, _SAWGameType$SpinAWhe[exports.SAWGameType.Quiz] = exports.SAWGameTypeName.Quiz, _SAWGameType$SpinAWhe[exports.SAWGameType.LootboxWeekdays] = exports.SAWGameTypeName.LootboxWeekdays, _SAWGameType$SpinAWhe[exports.SAWGameType.LootboxCalendarDays] = exports.SAWGameTypeName.LootboxCalendarDays, _SAWGameType$SpinAWhe[exports.SAWGameType.TreasureHunt] = exports.SAWGameTypeName.TreasureHunt, _SAWGameType$SpinAWhe[exports.SAWGameType.Voyager] = exports.SAWGameTypeName.Voyager, _SAWGameType$SpinAWhe[exports.SAWGameType.Plinko] = exports.SAWGameTypeName.Plinko, _SAWGameType$SpinAWhe[exports.SAWGameType.СoinFlip] = exports.SAWGameTypeName.СoinFlip, _SAWGameType$SpinAWhe)[type] || exports.SAWGameTypeName.Unknown;
|
|
389
391
|
};
|
|
390
392
|
|
|
391
393
|
exports.SAWPrizeType = void 0;
|
|
@@ -1966,7 +1968,9 @@ var drawTransform = function drawTransform(items) {
|
|
|
1966
1968
|
allow_multi_prize_per_ticket: item.allow_multi_prize_per_ticket,
|
|
1967
1969
|
total_tickets_count: item.total_tickets_count,
|
|
1968
1970
|
my_tickets_count: item.my_tickets_count,
|
|
1969
|
-
my_last_tickets: ticketsTransform(item.my_last_tickets)
|
|
1971
|
+
my_last_tickets: ticketsTransform(item.my_last_tickets),
|
|
1972
|
+
user_opted_in: Boolean(item.user_opted_in),
|
|
1973
|
+
requires_optin: Boolean(item.requires_optin)
|
|
1970
1974
|
};
|
|
1971
1975
|
});
|
|
1972
1976
|
};
|
|
@@ -1985,8 +1989,6 @@ var raffleTransform = function raffleTransform(items) {
|
|
|
1985
1989
|
end_date: item.end_date_ts,
|
|
1986
1990
|
max_tickets_count: item.max_tickets_count,
|
|
1987
1991
|
current_tickets_count: item.current_tickets_count,
|
|
1988
|
-
user_opted_in: item.user_opted_in,
|
|
1989
|
-
requires_optin: item.requires_optin,
|
|
1990
1992
|
draws: drawTransform(item.draws)
|
|
1991
1993
|
};
|
|
1992
1994
|
});
|
|
@@ -2016,7 +2018,9 @@ var drawRunTransform = function drawRunTransform(res) {
|
|
|
2016
2018
|
allow_multi_prize_per_ticket: res.draw.allow_multi_prize_per_ticket,
|
|
2017
2019
|
total_tickets_count: res.draw.total_tickets_count,
|
|
2018
2020
|
my_tickets_count: res.draw.my_tickets_count,
|
|
2019
|
-
my_last_tickets: ticketsTransform(res.draw.my_last_tickets)
|
|
2021
|
+
my_last_tickets: ticketsTransform(res.draw.my_last_tickets),
|
|
2022
|
+
user_opted_in: Boolean(res.draw.user_opted_in),
|
|
2023
|
+
requires_optin: Boolean(res.draw.requires_optin)
|
|
2020
2024
|
};
|
|
2021
2025
|
};
|
|
2022
2026
|
|