@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.
Files changed (77) hide show
  1. package/dist/Base/ClassId.d.ts +13 -0
  2. package/dist/Inbox/GetInboxMessagesResponse.d.ts +1 -1
  3. package/dist/Inbox/InboxMessage.d.ts +1 -1
  4. package/dist/Jackpots/GetJackpotsPotsRequest.d.ts +4 -0
  5. package/dist/Jackpots/GetJackpotsPotsResponse.d.ts +5 -0
  6. package/dist/Jackpots/GetJackpotsRequest.d.ts +4 -0
  7. package/dist/Jackpots/GetJackpotsResponse.d.ts +5 -0
  8. package/dist/Jackpots/JackpotContributionType.d.ts +5 -0
  9. package/dist/Jackpots/JackpotDetails.d.ts +17 -0
  10. package/dist/Jackpots/JackpotPot.d.ts +7 -0
  11. package/dist/Jackpots/JackpotPublicMeta.d.ts +6 -0
  12. package/dist/Jackpots/JackpotType.d.ts +4 -0
  13. package/dist/Jackpots/JackpotsOptinRequest.d.ts +4 -0
  14. package/dist/Jackpots/JackpotsOptinResponse.d.ts +3 -0
  15. package/dist/Jackpots/JackpotsOptoutRequest.d.ts +4 -0
  16. package/dist/Jackpots/JackpotsOptoutResponse.d.ts +3 -0
  17. package/dist/Leaderboard/LeaderBoards.d.ts +1 -1
  18. package/dist/MiniGames/SAWGameType.d.ts +3 -1
  19. package/dist/MiniGames/SAWPrizeDropAknowledgeRequest.d.ts +4 -0
  20. package/dist/MiniGames/SAWPrizeDropAknowledgeResponse.d.ts +4 -0
  21. package/dist/MiniGames/SAWPrizeDropWinPush.d.ts +7 -0
  22. package/dist/Quiz/MarketsAnswersType.d.ts +22 -0
  23. package/dist/Quiz/MarketsInfo.d.ts +14 -0
  24. package/dist/Quiz/MarketsPerSport.d.ts +6 -0
  25. package/dist/Quiz/MarketsType.d.ts +27 -0
  26. package/dist/Quiz/ScoreResultTypes.d.ts +28 -0
  27. package/dist/Quiz/SportTypes.d.ts +6 -0
  28. package/dist/Quiz/index.d.ts +6 -0
  29. package/dist/Store/GetStoreHistoryRequest.d.ts +5 -0
  30. package/dist/Store/GetStoreHistoryResponse.d.ts +6 -0
  31. package/dist/Store/StorItemPruchased.d.ts +6 -0
  32. package/dist/WSAPI/WSAPI.d.ts +1 -1
  33. package/dist/WSAPI/WSAPITypes.d.ts +1 -1
  34. package/dist/index.d.ts +1 -0
  35. package/dist/index.js +357 -1
  36. package/dist/index.js.map +1 -1
  37. package/dist/index.modern.mjs +359 -2
  38. package/dist/index.modern.mjs.map +1 -1
  39. package/package.json +1 -1
  40. package/src/Base/ClassId.ts +21 -0
  41. package/src/Inbox/GetInboxMessagesResponse.ts +1 -1
  42. package/src/Inbox/InboxMessage.ts +1 -1
  43. package/src/Jackpots/GetJackpotsPotsRequest.ts +5 -0
  44. package/src/Jackpots/GetJackpotsPotsResponse.ts +8 -0
  45. package/src/Jackpots/GetJackpotsRequest.ts +7 -0
  46. package/src/Jackpots/GetJackpotsResponse.ts +9 -0
  47. package/src/Jackpots/JackpotContributionType.ts +7 -0
  48. package/src/Jackpots/JackpotDetails.ts +20 -0
  49. package/src/Jackpots/JackpotPot.ts +10 -0
  50. package/src/Jackpots/JackpotPublicMeta.ts +8 -0
  51. package/src/Jackpots/JackpotType.ts +8 -0
  52. package/src/Jackpots/JackpotsOptinRequest.ts +7 -0
  53. package/src/Jackpots/JackpotsOptinResponse.ts +5 -0
  54. package/src/Jackpots/JackpotsOptoutRequest.ts +7 -0
  55. package/src/Jackpots/JackpotsOptoutResponse.ts +5 -0
  56. package/src/Jackpots/jackpotsWSApi.zip +0 -0
  57. package/src/Leaderboard/LeaderBoards.ts +1 -1
  58. package/src/Level/GetLevelMapResponse.ts +1 -1
  59. package/src/MiniGames/SAWGameType.ts +5 -2
  60. package/src/MiniGames/SAWPrizeDropAknowledgeRequest.ts +5 -0
  61. package/src/MiniGames/SAWPrizeDropAknowledgeResponse.ts +5 -0
  62. package/src/MiniGames/SAWPrizeDropWinPush.ts +8 -0
  63. package/src/Quiz/MarketsAnswersType.ts +22 -0
  64. package/src/Quiz/MarketsInfo.ts +194 -0
  65. package/src/Quiz/MarketsPerSport.ts +39 -0
  66. package/src/Quiz/MarketsType.ts +27 -0
  67. package/src/Quiz/ScoreResultTypes.ts +32 -0
  68. package/src/Quiz/SportTypes.ts +7 -0
  69. package/src/Quiz/index.ts +6 -0
  70. package/src/Store/GetStoreHistoryRequest.ts +6 -0
  71. package/src/Store/GetStoreHistoryResponse.ts +7 -0
  72. package/src/Store/StorItemPruchased.ts +8 -0
  73. package/src/Tournaments/GetTournamentInfoResponse.ts +0 -1
  74. package/src/Tournaments/TournamentUtils.ts +1 -1
  75. package/src/WSAPI/WSAPI.ts +1 -1
  76. package/src/WSAPI/WSAPITypes.ts +1 -1
  77. package/src/index.ts +2 -1
@@ -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 "src/WSAPI/WSAPITypes";
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 {
@@ -1,4 +1,4 @@
1
- import { TInboxMessageBody } from "src/WSAPI/WSAPITypes";
1
+ import { TInboxMessageBody } from "../WSAPI/WSAPITypes";
2
2
  import { InboxMessageType } from "./InboxMessageType";
3
3
  export interface InboxMessageBody {
4
4
  action: string;
@@ -0,0 +1,4 @@
1
+ import { ProtocolMessage } from "../Base/ProtocolMessage";
2
+ export interface GetJackpotsPotsRequest extends ProtocolMessage {
3
+ pot_ids: number[];
4
+ }
@@ -0,0 +1,5 @@
1
+ import { ProtocolResponse } from "../Base/ProtocolResponse";
2
+ import { JackpotPot } from "./JackpotPot";
3
+ export interface GetJackpotsPotsResponse extends ProtocolResponse {
4
+ pots: JackpotPot[];
5
+ }
@@ -0,0 +1,4 @@
1
+ import { ProtocolMessage } from "../Base/ProtocolMessage";
2
+ export interface GetJackpotsRequest extends ProtocolMessage {
3
+ related_game_id?: string[];
4
+ }
@@ -0,0 +1,5 @@
1
+ import { ProtocolResponse } from "../Base/ProtocolResponse";
2
+ import { JackpotDetails } from "./JackpotDetails";
3
+ export interface GetJackpotsResponse extends ProtocolResponse {
4
+ jackpots: JackpotDetails[];
5
+ }
@@ -0,0 +1,5 @@
1
+ declare enum JackpotContributionType {
2
+ Fixed = 1,
3
+ Percentage = 2
4
+ }
5
+ export { JackpotContributionType };
@@ -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 };
@@ -0,0 +1,7 @@
1
+ interface JackpotPot {
2
+ jp_template_id: number;
3
+ jp_pot_id: number;
4
+ current_pot_amount: number;
5
+ explode_date_ts: number;
6
+ }
7
+ export { JackpotPot };
@@ -0,0 +1,6 @@
1
+ interface JackpotPublicMeta {
2
+ name: string;
3
+ description: string;
4
+ image_url: string;
5
+ }
6
+ export { JackpotPublicMeta };
@@ -0,0 +1,4 @@
1
+ declare enum JackpotType {
2
+ Main = 1
3
+ }
4
+ export { JackpotType };
@@ -0,0 +1,4 @@
1
+ import { ProtocolMessage } from "../Base/ProtocolMessage";
2
+ export interface JackpotsOptinRequest extends ProtocolMessage {
3
+ jp_template_id: number;
4
+ }
@@ -0,0 +1,3 @@
1
+ import { ProtocolResponse } from "../Base/ProtocolResponse";
2
+ export interface JackpotsOptinResponse extends ProtocolResponse {
3
+ }
@@ -0,0 +1,4 @@
1
+ import { ProtocolMessage } from "../Base/ProtocolMessage";
2
+ export interface JackpotsOptoutRequest extends ProtocolMessage {
3
+ jp_template_id: number;
4
+ }
@@ -0,0 +1,3 @@
1
+ import { ProtocolResponse } from "../Base/ProtocolResponse";
2
+ export interface JackpotsOptoutResponse extends ProtocolResponse {
3
+ }
@@ -1,3 +1,3 @@
1
- import { LeaderBoardDetailsT } from "src/WSAPI/WSAPITypes";
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,4 @@
1
+ import { ProtocolMessage } from "../Base/ProtocolMessage";
2
+ export interface SAWPrizeDropAknowledgeRequest extends ProtocolMessage {
3
+ request_id: string;
4
+ }
@@ -0,0 +1,4 @@
1
+ import { ProtocolMessage } from "../Base/ProtocolMessage";
2
+ export interface SAWPrizeDropAknowledgeResponse extends ProtocolMessage {
3
+ request_id: string;
4
+ }
@@ -0,0 +1,7 @@
1
+ import { ProtocolMessage } from ".././Base/ProtocolMessage";
2
+ import { SAWPrize } from "./SAWPrize";
3
+ export interface SAWPrizeDropWinPush extends ProtocolMessage {
4
+ request_id: string;
5
+ saw_template_id: number;
6
+ saw_prize: SAWPrize;
7
+ }
@@ -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,6 @@
1
+ import { QuizMarketType } from "./MarketsType";
2
+ export declare const QuizMarketPerSport: {
3
+ 6: QuizMarketType[];
4
+ 1: QuizMarketType[];
5
+ 5: QuizMarketType[];
6
+ };
@@ -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 {};
@@ -0,0 +1,6 @@
1
+ export declare enum QuizSportType {
2
+ Soccer = 1,
3
+ Tennis = 5,
4
+ Basketball = 6
5
+ }
6
+ export declare const quizSupportedSports: QuizSportType[];
@@ -0,0 +1,6 @@
1
+ export * from './SportTypes';
2
+ export * from './MarketsType';
3
+ export * from './ScoreResultTypes';
4
+ export * from './MarketsInfo';
5
+ export * from './MarketsPerSport';
6
+ export * from './MarketsAnswersType';
@@ -0,0 +1,5 @@
1
+ import { ProtocolMessage } from "../Base/ProtocolMessage";
2
+ export interface GetStoreHistoryRequest extends ProtocolMessage {
3
+ offset: number;
4
+ limit: number;
5
+ }
@@ -0,0 +1,6 @@
1
+ import { ProtocolMessage } from "../Base/ProtocolMessage";
2
+ import { StorItemPruchased } from "./StorItemPruchased";
3
+ export interface GetStoreHistoryResponse extends ProtocolMessage {
4
+ items: StorItemPruchased[];
5
+ hasMore: boolean;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { StoreItem } from "./StoreItem";
2
+ interface StorItemPruchased extends StoreItem {
3
+ purchase_ts: number;
4
+ purchase_points_amount: number;
5
+ }
6
+ export { StorItemPruchased };
@@ -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 "src/Leaderboard";
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 "src/Leaderboard";
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
@@ -10,3 +10,4 @@ export * from './Missions';
10
10
  export * from './Store';
11
11
  export * from './Tournaments';
12
12
  export * from './Level';
13
+ export * from './Quiz';