@smartico/public-api 0.0.120 → 0.0.122
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 +13 -0
- package/dist/Inbox/GetInboxMessagesResponse.d.ts +1 -1
- package/dist/Inbox/InboxMessage.d.ts +1 -1
- package/dist/Jackpots/GetJackpotsPotsRequest.d.ts +4 -0
- package/dist/Jackpots/GetJackpotsPotsResponse.d.ts +5 -0
- package/dist/Jackpots/GetJackpotsRequest.d.ts +4 -0
- package/dist/Jackpots/GetJackpotsResponse.d.ts +5 -0
- package/dist/Jackpots/JackpotContributionType.d.ts +5 -0
- package/dist/Jackpots/JackpotDetails.d.ts +17 -0
- package/dist/Jackpots/JackpotPot.d.ts +7 -0
- package/dist/Jackpots/JackpotPublicMeta.d.ts +6 -0
- package/dist/Jackpots/JackpotType.d.ts +4 -0
- package/dist/Jackpots/JackpotsOptinRequest.d.ts +4 -0
- package/dist/Jackpots/JackpotsOptinResponse.d.ts +3 -0
- package/dist/Jackpots/JackpotsOptoutRequest.d.ts +4 -0
- package/dist/Jackpots/JackpotsOptoutResponse.d.ts +3 -0
- package/dist/Leaderboard/LeaderBoards.d.ts +1 -1
- package/dist/MiniGames/SAWGameType.d.ts +3 -1
- package/dist/MiniGames/SAWPrizeDropAknowledgeRequest.d.ts +4 -0
- package/dist/MiniGames/SAWPrizeDropAknowledgeResponse.d.ts +4 -0
- package/dist/MiniGames/SAWPrizeDropWinPush.d.ts +7 -0
- package/dist/Quiz/MarketsAnswersType.d.ts +22 -0
- package/dist/Quiz/MarketsInfo.d.ts +14 -0
- package/dist/Quiz/MarketsPerSport.d.ts +6 -0
- package/dist/Quiz/MarketsType.d.ts +27 -0
- package/dist/Quiz/ScoreResultTypes.d.ts +28 -0
- package/dist/Quiz/SportTypes.d.ts +6 -0
- package/dist/Quiz/index.d.ts +6 -0
- package/dist/Store/GetStoreHistoryRequest.d.ts +5 -0
- package/dist/Store/GetStoreHistoryResponse.d.ts +6 -0
- package/dist/Store/StorItemPruchased.d.ts +6 -0
- package/dist/WSAPI/WSAPI.d.ts +1 -1
- package/dist/WSAPI/WSAPITypes.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +357 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +359 -2
- package/dist/index.modern.mjs.map +1 -1
- package/package.json +1 -1
- package/src/Base/ClassId.ts +21 -0
- package/src/Inbox/GetInboxMessagesResponse.ts +1 -1
- package/src/Inbox/InboxMessage.ts +1 -1
- package/src/Jackpots/GetJackpotsPotsRequest.ts +5 -0
- package/src/Jackpots/GetJackpotsPotsResponse.ts +8 -0
- package/src/Jackpots/GetJackpotsRequest.ts +7 -0
- package/src/Jackpots/GetJackpotsResponse.ts +9 -0
- package/src/Jackpots/JackpotContributionType.ts +7 -0
- package/src/Jackpots/JackpotDetails.ts +20 -0
- package/src/Jackpots/JackpotPot.ts +10 -0
- package/src/Jackpots/JackpotPublicMeta.ts +8 -0
- package/src/Jackpots/JackpotType.ts +8 -0
- package/src/Jackpots/JackpotsOptinRequest.ts +7 -0
- package/src/Jackpots/JackpotsOptinResponse.ts +5 -0
- package/src/Jackpots/JackpotsOptoutRequest.ts +7 -0
- package/src/Jackpots/JackpotsOptoutResponse.ts +5 -0
- package/src/Jackpots/jackpotsWSApi.zip +0 -0
- package/src/Leaderboard/LeaderBoards.ts +1 -1
- package/src/Level/GetLevelMapResponse.ts +1 -1
- package/src/MiniGames/SAWGameType.ts +5 -2
- package/src/MiniGames/SAWPrizeDropAknowledgeRequest.ts +5 -0
- package/src/MiniGames/SAWPrizeDropAknowledgeResponse.ts +5 -0
- package/src/MiniGames/SAWPrizeDropWinPush.ts +8 -0
- package/src/Quiz/MarketsAnswersType.ts +22 -0
- package/src/Quiz/MarketsInfo.ts +194 -0
- package/src/Quiz/MarketsPerSport.ts +39 -0
- package/src/Quiz/MarketsType.ts +27 -0
- package/src/Quiz/ScoreResultTypes.ts +32 -0
- package/src/Quiz/SportTypes.ts +7 -0
- package/src/Quiz/index.ts +6 -0
- package/src/Store/GetStoreHistoryRequest.ts +6 -0
- package/src/Store/GetStoreHistoryResponse.ts +7 -0
- package/src/Store/StorItemPruchased.ts +8 -0
- package/src/Tournaments/GetTournamentInfoResponse.ts +0 -1
- package/src/Tournaments/TournamentUtils.ts +1 -1
- package/src/WSAPI/WSAPI.ts +1 -1
- package/src/WSAPI/WSAPITypes.ts +1 -1
- package/src/index.ts +2 -1
package/dist/Base/ClassId.d.ts
CHANGED
|
@@ -64,6 +64,8 @@ export declare enum ClassId {
|
|
|
64
64
|
GET_ACH_CATEGORIES_RESPONSE = 538,
|
|
65
65
|
ACHIEVEMENT_CLAIM_PRIZE_REQUEST = 539,
|
|
66
66
|
ACHIEVEMENT_CLAIM_PRIZE_RESPONSE = 540,
|
|
67
|
+
ACH_SHOP_ITEM_HISTORY_REQUEST = 541,
|
|
68
|
+
ACH_SHOP_ITEM_HISTORY_RESPONSE = 542,
|
|
67
69
|
GET_BONUSES_REQUEST = 600,
|
|
68
70
|
GET_BONUSES_RESPONSE = 601,
|
|
69
71
|
CLAIM_BONUS_REQUEST = 602,
|
|
@@ -76,6 +78,17 @@ export declare enum ClassId {
|
|
|
76
78
|
SAW_AKNOWLEDGE_RESPONSE = 705,
|
|
77
79
|
SAW_SPINS_COUNT_PUSH = 706,
|
|
78
80
|
SAW_SHOW_SPIN_PUSH = 707,
|
|
81
|
+
SAW_PRIZE_DROP_WIN_PUSH = 708,
|
|
82
|
+
SAW_PRIZE_DROP_WIN_AKNOWLEDGE_REQUEST = 709,
|
|
83
|
+
SAW_PRIZE_DROP_WIN_AKNOWLEDGE_RESPONSE = 710,
|
|
84
|
+
JP_GET_JACKPOTS_REQUEST = 800,
|
|
85
|
+
JP_GET_JACKPOTS_RESPONSE = 801,
|
|
86
|
+
JP_GET_LATEST_POTS_REQUEST = 802,
|
|
87
|
+
JP_GET_LATEST_POTS_RESPONSE = 803,
|
|
88
|
+
JP_OPTIN_REQUEST = 804,
|
|
89
|
+
JP_OPTIN_RESPONSE = 805,
|
|
90
|
+
JP_OPTOUT_REQUEST = 806,
|
|
91
|
+
JP_OPTOUT_RESPONSE = 807,
|
|
79
92
|
REGISTER_PUSH_NOTIFICATIONS_TOKEN_REQ = 1003,
|
|
80
93
|
REGISTER_PUSH_NOTIFICATIONS_TOKEN_RESP = 2003,
|
|
81
94
|
CLIENT_DEBUG_REQUEST = 77777,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TInboxMessage } from "
|
|
1
|
+
import { TInboxMessage } from "../WSAPI/WSAPITypes";
|
|
2
2
|
import { ProtocolResponse } from "../Base/ProtocolResponse";
|
|
3
3
|
import { InboxMessage } from "./InboxMessage";
|
|
4
4
|
export interface GetInboxMessagesResponse extends ProtocolResponse {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AchRelatedGame } from "../Base/AchRelatedGame";
|
|
2
|
+
import { JackpotContributionType } from "./JackpotContributionType";
|
|
3
|
+
import { JackpotPot } from "./JackpotPot";
|
|
4
|
+
import { JackpotPublicMeta } from "./JackpotPublicMeta";
|
|
5
|
+
import { JackpotType } from "./JackpotType";
|
|
6
|
+
interface JackpotDetails {
|
|
7
|
+
jp_template_id: number;
|
|
8
|
+
jp_type_id: JackpotType;
|
|
9
|
+
jp_public_meta: JackpotPublicMeta;
|
|
10
|
+
jp_currency: string;
|
|
11
|
+
related_games?: AchRelatedGame[];
|
|
12
|
+
contribution_type: JackpotContributionType;
|
|
13
|
+
contribution_value: number;
|
|
14
|
+
pot: JackpotPot;
|
|
15
|
+
is_opted_in: boolean;
|
|
16
|
+
}
|
|
17
|
+
export { JackpotDetails };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { LeaderBoardDetailsT } from "
|
|
1
|
+
import { LeaderBoardDetailsT } from "../WSAPI/WSAPITypes";
|
|
2
2
|
import { LeaderBoardDetails } from "./LeaderBoardDetails";
|
|
3
3
|
export declare const getLeaderBoardTransform: (board: LeaderBoardDetails) => LeaderBoardDetailsT;
|
|
@@ -3,13 +3,15 @@ export declare enum SAWGameType {
|
|
|
3
3
|
SpinAWheel = 1,
|
|
4
4
|
ScratchCard = 2,
|
|
5
5
|
MatchX = 3,
|
|
6
|
-
GiftBox = 4
|
|
6
|
+
GiftBox = 4,
|
|
7
|
+
PrizeDrop = 5
|
|
7
8
|
}
|
|
8
9
|
export declare enum SAWGameTypeName {
|
|
9
10
|
SpinAWheel = "wheel",
|
|
10
11
|
ScratchCard = "scratch",
|
|
11
12
|
MatchX = "matchx",
|
|
12
13
|
GiftBox = "giftbox",
|
|
14
|
+
PrizeDrop = "prizedrop",
|
|
13
15
|
Unknown = "unknown"
|
|
14
16
|
}
|
|
15
17
|
/** @hidden */
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare enum MarketsValueType {
|
|
2
|
+
HomeTeam = "1",
|
|
3
|
+
AwayTeam = "2",
|
|
4
|
+
Draw = "x",
|
|
5
|
+
HomeTeamHomeTeam = "1/1",
|
|
6
|
+
HomeTeamDraw = "1/x",
|
|
7
|
+
HomeTeamAwayTeam = "1/2",
|
|
8
|
+
DrawHomeTeam = "x/1",
|
|
9
|
+
DrawDraw = "x/x",
|
|
10
|
+
DrawAwayTeam = "x/2",
|
|
11
|
+
AwayTeamHomeTeam = "2/1",
|
|
12
|
+
AwayTeamDraw = "2/x",
|
|
13
|
+
AwayTeamAwayTeam = "2/2",
|
|
14
|
+
Yes = "yes",
|
|
15
|
+
No = "no",
|
|
16
|
+
Odd = "odd",
|
|
17
|
+
Even = "even",
|
|
18
|
+
HomeOdd = "1/odd",
|
|
19
|
+
HomeEven = "1/even",
|
|
20
|
+
AwayOdd = "2/odd",
|
|
21
|
+
AwayEven = "2/even"
|
|
22
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { MarketsValueType } from "./MarketsAnswersType";
|
|
2
|
+
import { QuizMarketType } from "./MarketsType";
|
|
3
|
+
export declare const marketsInfo: {
|
|
4
|
+
type: QuizMarketType;
|
|
5
|
+
name: string;
|
|
6
|
+
question: {
|
|
7
|
+
text: string;
|
|
8
|
+
trKey: string;
|
|
9
|
+
};
|
|
10
|
+
answers: {
|
|
11
|
+
text: string;
|
|
12
|
+
value: MarketsValueType;
|
|
13
|
+
}[];
|
|
14
|
+
}[];
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare enum QuizMarketType {
|
|
2
|
+
TwoTeamsWithScore = 1,
|
|
3
|
+
RedCard = 2,
|
|
4
|
+
OneXTwo = 3,
|
|
5
|
+
OneXTwoHalftime = 4,
|
|
6
|
+
HalftimeFulltime = 5,
|
|
7
|
+
FirstGoal = 6,
|
|
8
|
+
DoubleChance = 7,
|
|
9
|
+
OverUnder2_5 = 8,
|
|
10
|
+
OverUnder1_5Halftime = 9,
|
|
11
|
+
OverUnder1_5__2ndHalf = 10,
|
|
12
|
+
TotalCorners8_5 = 11,
|
|
13
|
+
TotalCorners9_5 = 12,
|
|
14
|
+
Corners1x2 = 13,
|
|
15
|
+
One_Two = 14,
|
|
16
|
+
Overtime = 15,
|
|
17
|
+
OddEven = 16,
|
|
18
|
+
OddEvenHomeAway = 17,
|
|
19
|
+
FirstSet = 18,
|
|
20
|
+
SecondSet = 19,
|
|
21
|
+
ThirdSet = 20,
|
|
22
|
+
FourthSet = 21,
|
|
23
|
+
FifthSet = 22,
|
|
24
|
+
PlayerOneWinsOneSet = 23,
|
|
25
|
+
PlayerTwoWinsOneSet = 24,
|
|
26
|
+
LastGoal = 25
|
|
27
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
type TeamType = 'Home' | 'Away';
|
|
2
|
+
type CardType = 'Yellow' | 'Red';
|
|
3
|
+
type TimeType = 'FT' | '1st Half' | '2nd Half';
|
|
4
|
+
export type OverHalfFullTimeScoreType = {
|
|
5
|
+
home: number;
|
|
6
|
+
away: number;
|
|
7
|
+
};
|
|
8
|
+
export type CardScoreType = {
|
|
9
|
+
time: 'string';
|
|
10
|
+
type: CardType;
|
|
11
|
+
player: string;
|
|
12
|
+
};
|
|
13
|
+
export type CornerScoreType = {
|
|
14
|
+
team: TeamType;
|
|
15
|
+
timeType: TimeType;
|
|
16
|
+
totalCount: number;
|
|
17
|
+
};
|
|
18
|
+
export type GoalScoreType = {
|
|
19
|
+
team: TeamType;
|
|
20
|
+
time: string;
|
|
21
|
+
player: string;
|
|
22
|
+
matchScore: OverHalfFullTimeScoreType;
|
|
23
|
+
};
|
|
24
|
+
export type SetsScoreType = {
|
|
25
|
+
set: number;
|
|
26
|
+
setScore: OverHalfFullTimeScoreType;
|
|
27
|
+
};
|
|
28
|
+
export {};
|
package/dist/WSAPI/WSAPI.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SmarticoAPI } from "../SmarticoAPI";
|
|
2
2
|
import { InboxMarkMessageAction, LeaderBoardDetailsT, TAchCategory, TBuyStoreItemResult, TGetTranslations, TInboxMessage, TInboxMessageBody, TLevel, TMiniGamePlayResult, TMiniGameTemplate, TMissionOptInResult, TMissionOrBadge, TStoreCategory, TStoreItem, TTournament, TTournamentDetailed, TTournamentRegistrationResult, TUserProfile, UserLevelExtraCountersT } from "./WSAPITypes";
|
|
3
|
-
import { LeaderBoardPeriodType } from "
|
|
3
|
+
import { LeaderBoardPeriodType } from "../Leaderboard";
|
|
4
4
|
/** @group General API */
|
|
5
5
|
export declare class WSAPI {
|
|
6
6
|
private api;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BuyStoreItemErrorCode } from "../Store";
|
|
2
2
|
import { MiniGamePrizeTypeName, SAWBuyInTypeName, SAWGameTypeName, SAWSpinErrorCode } from "../MiniGames";
|
|
3
3
|
import { TournamentRegistrationError, TournamentRegistrationStatusName, TournamentRegistrationTypeName } from "../Tournaments";
|
|
4
|
-
import { LeaderBoardPeriodType } from "
|
|
4
|
+
import { LeaderBoardPeriodType } from "../Leaderboard";
|
|
5
5
|
type TRibbon = 'sale' | 'hot' | 'new' | 'vip' | string;
|
|
6
6
|
/**
|
|
7
7
|
* TMiniGamePrize describes the information of prize in the array of prizes in the TMiniGameTemplate
|
package/dist/index.d.ts
CHANGED