@smartico/public-api 0.0.149 → 0.0.151
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/README.md +3 -1
- package/dist/Base/AchRelatedGame.d.ts +13 -13
- package/dist/Base/ClassId.d.ts +97 -97
- package/dist/Base/ProtocolMessage.d.ts +5 -5
- package/dist/Base/ProtocolRequest.d.ts +6 -6
- package/dist/Base/ProtocolResponse.d.ts +5 -5
- package/dist/CookieStore.d.ts +6 -6
- package/dist/Core/ActivityTypeLimited.d.ts +18 -18
- package/dist/Core/CheckSegmentMatchRequest.d.ts +4 -4
- package/dist/Core/CheckSegmentMatchResponse.d.ts +7 -7
- package/dist/Core/CoreUtils.d.ts +5 -5
- package/dist/Core/GetAchievementsUserInfoRequest.d.ts +3 -3
- package/dist/Core/GetAchievementsUserInfoResponse.d.ts +5 -5
- package/dist/Core/GetLabelInfoRequest.d.ts +3 -3
- package/dist/Core/GetLabelInfoResponse.d.ts +7 -7
- package/dist/Core/GetTranslationsRequest.d.ts +7 -7
- package/dist/Core/GetTranslationsResponse.d.ts +7 -7
- package/dist/Core/PublicLabelSettings.d.ts +27 -27
- package/dist/Core/PublicProperties.d.ts +9 -9
- package/dist/Core/ResponseIdentify.d.ts +12 -12
- package/dist/Core/TranslationArea.d.ts +10 -10
- package/dist/Core/index.d.ts +9 -9
- package/dist/CustomSections/AchCustomSection.d.ts +27 -27
- package/dist/CustomSections/GetCustomSectionsRequest.d.ts +3 -3
- package/dist/CustomSections/GetCustomSectionsResponse.d.ts +7 -7
- package/dist/CustomSections/UICustomSection.d.ts +15 -15
- package/dist/CustomSections/index.d.ts +4 -4
- package/dist/ErrorCodes.d.ts +12 -12
- package/dist/GResponse.d.ts +9 -9
- package/dist/ILogger.d.ts +7 -7
- package/dist/Inbox/GetInboxMessagesRequest.d.ts +6 -6
- package/dist/Inbox/GetInboxMessagesResponse.d.ts +7 -7
- package/dist/Inbox/InboxMessage.d.ts +23 -23
- package/dist/Inbox/InboxMessageType.d.ts +11 -11
- package/dist/Inbox/MarkInboxMessageDeletedRequest.d.ts +5 -5
- package/dist/Inbox/MarkInboxMessageDeletedResponse.d.ts +5 -5
- package/dist/Inbox/MarkInboxMessageReadRequest.d.ts +5 -5
- package/dist/Inbox/MarkInboxMessageReadResponse.d.ts +5 -5
- package/dist/Inbox/MarkInboxMessageStarredRequest.d.ts +5 -5
- package/dist/Inbox/MarkInboxMessageStarredResponse.d.ts +5 -5
- package/dist/Inbox/index.d.ts +10 -10
- package/dist/IntUtils.d.ts +10 -10
- package/dist/Jackpots/GetJackpotsPotsRequest.d.ts +4 -4
- package/dist/Jackpots/GetJackpotsPotsResponse.d.ts +5 -5
- package/dist/Jackpots/GetJackpotsRequest.d.ts +5 -5
- package/dist/Jackpots/GetJackpotsResponse.d.ts +5 -5
- package/dist/Jackpots/JackPotWinner.d.ts +13 -13
- package/dist/Jackpots/JackpotContributionType.d.ts +5 -5
- package/dist/Jackpots/JackpotDetails.d.ts +37 -35
- package/dist/Jackpots/JackpotHtmlTemplate.d.ts +5 -5
- package/dist/Jackpots/JackpotPot.d.ts +13 -13
- package/dist/Jackpots/JackpotPublicMeta.d.ts +18 -18
- package/dist/Jackpots/JackpotType.d.ts +4 -4
- package/dist/Jackpots/JackpotWinPush.d.ts +7 -7
- package/dist/Jackpots/JackpotsOptinRequest.d.ts +4 -4
- package/dist/Jackpots/JackpotsOptinResponse.d.ts +3 -3
- package/dist/Jackpots/JackpotsOptoutRequest.d.ts +4 -4
- package/dist/Jackpots/JackpotsOptoutResponse.d.ts +3 -3
- package/dist/Jackpots/index.d.ts +16 -16
- package/dist/Leaderboard/GetLeaderBoardsRequest.d.ts +7 -7
- package/dist/Leaderboard/GetLeaderBoardsResponse.d.ts +7 -7
- package/dist/Leaderboard/LeaderBoardDetails.d.ts +13 -13
- package/dist/Leaderboard/LeaderBoardPeriodType.d.ts +5 -5
- package/dist/Leaderboard/LeaderBoardPosition.d.ts +10 -10
- package/dist/Leaderboard/LeaderBoardPublicMeta.d.ts +5 -5
- package/dist/Leaderboard/LeaderBoards.d.ts +3 -3
- package/dist/Leaderboard/index.d.ts +6 -6
- package/dist/Level/GetLevelMapResponse.d.ts +7 -7
- package/dist/Level/Level.d.ts +12 -12
- package/dist/Level/LevelPublicMeta.d.ts +19 -19
- package/dist/Level/index.d.ts +3 -3
- package/dist/MiniGames/SAWAcknowledgeType.d.ts +5 -5
- package/dist/MiniGames/SAWAskForUsername.d.ts +4 -4
- package/dist/MiniGames/SAWBuyInType.d.ts +14 -14
- package/dist/MiniGames/SAWDoAknowledgeRequest.d.ts +4 -4
- package/dist/MiniGames/SAWDoAknowledgeResponse.d.ts +4 -4
- package/dist/MiniGames/SAWDoSpinRequest.d.ts +5 -5
- package/dist/MiniGames/SAWDoSpinResponse.d.ts +11 -11
- package/dist/MiniGames/SAWGameType.d.ts +20 -20
- package/dist/MiniGames/SAWGetTemplatesRequest.d.ts +5 -5
- package/dist/MiniGames/SAWGetTemplatesResponse.d.ts +7 -7
- package/dist/MiniGames/SAWPrize.d.ts +13 -13
- package/dist/MiniGames/SAWPrizeDropAknowledgeRequest.d.ts +4 -4
- package/dist/MiniGames/SAWPrizeDropAknowledgeResponse.d.ts +4 -4
- package/dist/MiniGames/SAWPrizeDropWinPush.d.ts +9 -9
- package/dist/MiniGames/SAWPrizeType.d.ts +20 -20
- package/dist/MiniGames/SAWPrizeUI.d.ts +18 -18
- package/dist/MiniGames/SAWSpinErrorCode.d.ts +14 -14
- package/dist/MiniGames/SAWSpinsCountPush.d.ts +5 -5
- package/dist/MiniGames/SAWTemplate.d.ts +29 -29
- package/dist/MiniGames/SAWTemplateUI.d.ts +45 -45
- package/dist/MiniGames/SAWUtils.d.ts +5 -5
- package/dist/MiniGames/SAWWinSoundType.d.ts +13 -13
- package/dist/MiniGames/index.d.ts +20 -20
- package/dist/Missions/AchCategoryPublicMeta.d.ts +4 -4
- package/dist/Missions/AchClaimPrizeRequest.d.ts +5 -5
- package/dist/Missions/AchClaimPrizeResponse.d.ts +3 -3
- package/dist/Missions/AchievementCategory.d.ts +7 -7
- package/dist/Missions/AchievementOptinRequest.d.ts +4 -4
- package/dist/Missions/AchievementOptinResponse.d.ts +3 -3
- package/dist/Missions/AchievementPublicMeta.d.ts +21 -21
- package/dist/Missions/AchievementStatus.d.ts +9 -9
- package/dist/Missions/AchievementTaskPublicMeta.d.ts +3 -3
- package/dist/Missions/AchievementTaskType.d.ts +4 -4
- package/dist/Missions/AchievementType.d.ts +4 -4
- package/dist/Missions/GetAchCategoriesRequest.d.ts +3 -3
- package/dist/Missions/GetAchCategoriesResponse.d.ts +5 -5
- package/dist/Missions/GetAchievementMapRequest.d.ts +3 -3
- package/dist/Missions/GetAchievementMapResponse.d.ts +5 -5
- package/dist/Missions/ReloadAchievementsEvent.d.ts +3 -3
- package/dist/Missions/ScheduledMissionType.d.ts +5 -5
- package/dist/Missions/UserAchievement.d.ts +39 -39
- package/dist/Missions/UserAchievementTask.d.ts +15 -15
- package/dist/Missions/index.d.ts +19 -19
- package/dist/NodeCache.d.ts +10 -10
- package/dist/OCache.d.ts +15 -15
- package/dist/Quiz/MarketsAnswers.d.ts +38 -38
- package/dist/Quiz/MarketsInfo.d.ts +14 -14
- package/dist/Quiz/MarketsPerSport.d.ts +6 -6
- package/dist/Quiz/MarketsType.d.ts +29 -29
- package/dist/Quiz/ScoreResultTypes.d.ts +28 -28
- package/dist/Quiz/SportTypes.d.ts +6 -6
- package/dist/Quiz/index.d.ts +6 -6
- package/dist/SmarticoAPI.d.ts +119 -119
- package/dist/SmarticoLib/index.d.ts +2013 -2013
- package/dist/Store/BuyStoreItemErrorCode.d.ts +11 -11
- package/dist/Store/BuyStoreItemRequest.d.ts +4 -4
- package/dist/Store/BuyStoreItemResponse.d.ts +4 -4
- package/dist/Store/GetCategoriesStoreResponse.d.ts +5 -5
- package/dist/Store/GetStoreHistoryRequest.d.ts +5 -5
- package/dist/Store/GetStoreHistoryResponse.d.ts +6 -6
- package/dist/Store/GetStoreItemsResponse.d.ts +5 -5
- package/dist/Store/StoreCategory.d.ts +7 -7
- package/dist/Store/StoreCategoryPublicMeta.d.ts +4 -4
- package/dist/Store/StoreItem.d.ts +12 -12
- package/dist/Store/StoreItemPublicMeta.d.ts +12 -12
- package/dist/Store/StoreItemPurchased.d.ts +11 -11
- package/dist/Store/StoreItemType.d.ts +16 -16
- package/dist/Store/index.d.ts +13 -13
- package/dist/Tournaments/GetTournamentInfoRequest.d.ts +4 -4
- package/dist/Tournaments/GetTournamentInfoResponse.d.ts +22 -22
- package/dist/Tournaments/GetTournamentsRequest.d.ts +3 -3
- package/dist/Tournaments/GetTournamentsResponse.d.ts +6 -6
- package/dist/Tournaments/Tournament.d.ts +59 -59
- package/dist/Tournaments/TournamentInstanceStatus.d.ts +10 -10
- package/dist/Tournaments/TournamentPlayer.d.ts +9 -9
- package/dist/Tournaments/TournamentPrize.d.ts +10 -10
- package/dist/Tournaments/TournamentPublicMeta.d.ts +27 -27
- package/dist/Tournaments/TournamentRegisterRequest.d.ts +4 -4
- package/dist/Tournaments/TournamentRegisterResponse.d.ts +5 -5
- package/dist/Tournaments/TournamentRegistrationError.d.ts +11 -11
- package/dist/Tournaments/TournamentRegistrationStatus.d.ts +22 -22
- package/dist/Tournaments/TournamentRegistrationType.d.ts +11 -11
- package/dist/Tournaments/TournamentType.d.ts +5 -5
- package/dist/Tournaments/TournamentUtils.d.ts +27 -27
- package/dist/Tournaments/index.d.ts +16 -16
- package/dist/WSAPI/WSAPI.d.ts +445 -445
- package/dist/WSAPI/WSAPITypes.d.ts +621 -621
- package/dist/index.d.ts +15 -15
- package/dist/index.js +373 -366
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +381 -375
- package/dist/index.modern.mjs.map +1 -1
- package/docs/interfaces/JackpotDetails.md +8 -0
- package/docs/interfaces/TMissionOrBadgeTask.md +16 -0
- package/package.json +1 -1
- package/src/Core/CoreUtils.ts +9 -9
- package/src/Jackpots/JackpotDetails.ts +2 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ProtocolResponse } from "../Base/ProtocolResponse";
|
|
2
|
-
import { UICustomSection } from "./UICustomSection";
|
|
3
|
-
export interface GetCustomSectionsResponse extends ProtocolResponse {
|
|
4
|
-
customSections: {
|
|
5
|
-
[key: string]: UICustomSection;
|
|
6
|
-
};
|
|
7
|
-
}
|
|
1
|
+
import { ProtocolResponse } from "../Base/ProtocolResponse";
|
|
2
|
+
import { UICustomSection } from "./UICustomSection";
|
|
3
|
+
export interface GetCustomSectionsResponse extends ProtocolResponse {
|
|
4
|
+
customSections: {
|
|
5
|
+
[key: string]: UICustomSection;
|
|
6
|
+
};
|
|
7
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { TUICustomSection } from "../WSAPI/WSAPITypes";
|
|
2
|
-
import { AchCustomLayoutTheme, AchCustomSectionType, AchMissionsTabsOptions, AchOverviewMissionsFilter } from "./AchCustomSection";
|
|
3
|
-
export interface UICustomSection {
|
|
4
|
-
body?: string;
|
|
5
|
-
menu_img?: string;
|
|
6
|
-
menu_name?: string;
|
|
7
|
-
custom_skin_images?: string;
|
|
8
|
-
section_type_id?: AchCustomSectionType;
|
|
9
|
-
theme?: AchCustomLayoutTheme;
|
|
10
|
-
generic_custom_css?: string;
|
|
11
|
-
mission_tabs_options?: AchMissionsTabsOptions;
|
|
12
|
-
overview_missions_filter?: AchOverviewMissionsFilter;
|
|
13
|
-
overview_missions_count?: number;
|
|
14
|
-
}
|
|
15
|
-
export declare const UICustomSectionTransform: (items: UICustomSection[]) => TUICustomSection[];
|
|
1
|
+
import { TUICustomSection } from "../WSAPI/WSAPITypes";
|
|
2
|
+
import { AchCustomLayoutTheme, AchCustomSectionType, AchMissionsTabsOptions, AchOverviewMissionsFilter } from "./AchCustomSection";
|
|
3
|
+
export interface UICustomSection {
|
|
4
|
+
body?: string;
|
|
5
|
+
menu_img?: string;
|
|
6
|
+
menu_name?: string;
|
|
7
|
+
custom_skin_images?: string;
|
|
8
|
+
section_type_id?: AchCustomSectionType;
|
|
9
|
+
theme?: AchCustomLayoutTheme;
|
|
10
|
+
generic_custom_css?: string;
|
|
11
|
+
mission_tabs_options?: AchMissionsTabsOptions;
|
|
12
|
+
overview_missions_filter?: AchOverviewMissionsFilter;
|
|
13
|
+
overview_missions_count?: number;
|
|
14
|
+
}
|
|
15
|
+
export declare const UICustomSectionTransform: (items: UICustomSection[]) => TUICustomSection[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './AchCustomSection';
|
|
2
|
-
export * from './UICustomSection';
|
|
3
|
-
export * from './GetCustomSectionsRequest';
|
|
4
|
-
export * from './GetCustomSectionsResponse';
|
|
1
|
+
export * from './AchCustomSection';
|
|
2
|
+
export * from './UICustomSection';
|
|
3
|
+
export * from './GetCustomSectionsRequest';
|
|
4
|
+
export * from './GetCustomSectionsResponse';
|
package/dist/ErrorCodes.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export declare const ErrorCodes_FatalStartingRange = 100000;
|
|
2
|
-
export declare enum ErrorCodesGame {
|
|
3
|
-
OK = 0,
|
|
4
|
-
NoBetsUpdatedOnSubmit = 3,
|
|
5
|
-
RepeatRequest_Unhandled = 4,
|
|
6
|
-
Fatal_NotValidHash,
|
|
7
|
-
Fatal_WrongCustomerID,
|
|
8
|
-
Fatal_TemplateNotFound,
|
|
9
|
-
Fatal_NoOpenRounds,
|
|
10
|
-
Fatal_Unhandled
|
|
11
|
-
}
|
|
12
|
-
export type ErrorCodes = ErrorCodesGame;
|
|
1
|
+
export declare const ErrorCodes_FatalStartingRange = 100000;
|
|
2
|
+
export declare enum ErrorCodesGame {
|
|
3
|
+
OK = 0,
|
|
4
|
+
NoBetsUpdatedOnSubmit = 3,
|
|
5
|
+
RepeatRequest_Unhandled = 4,
|
|
6
|
+
Fatal_NotValidHash = 100000,
|
|
7
|
+
Fatal_WrongCustomerID = 100001,
|
|
8
|
+
Fatal_TemplateNotFound = 100002,
|
|
9
|
+
Fatal_NoOpenRounds = 100003,
|
|
10
|
+
Fatal_Unhandled = 100004
|
|
11
|
+
}
|
|
12
|
+
export type ErrorCodes = ErrorCodesGame;
|
package/dist/GResponse.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ErrorCodes } from "./ErrorCodes";
|
|
2
|
-
interface GResponseBase {
|
|
3
|
-
errCode: ErrorCodes;
|
|
4
|
-
errMessage?: string;
|
|
5
|
-
}
|
|
6
|
-
interface GResponse<T> extends GResponseBase {
|
|
7
|
-
data?: T;
|
|
8
|
-
}
|
|
9
|
-
export { GResponseBase, GResponse };
|
|
1
|
+
import { ErrorCodes } from "./ErrorCodes";
|
|
2
|
+
interface GResponseBase {
|
|
3
|
+
errCode: ErrorCodes;
|
|
4
|
+
errMessage?: string;
|
|
5
|
+
}
|
|
6
|
+
interface GResponse<T> extends GResponseBase {
|
|
7
|
+
data?: T;
|
|
8
|
+
}
|
|
9
|
+
export { GResponseBase, GResponse };
|
package/dist/ILogger.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export interface ILogger {
|
|
2
|
-
debug(...any: any[]): void;
|
|
3
|
-
error(...any: any[]): void;
|
|
4
|
-
info(...any: any[]): void;
|
|
5
|
-
warn(...any: any[]): void;
|
|
6
|
-
always(...any: any[]): void;
|
|
7
|
-
}
|
|
1
|
+
export interface ILogger {
|
|
2
|
+
debug(...any: any[]): void;
|
|
3
|
+
error(...any: any[]): void;
|
|
4
|
+
info(...any: any[]): void;
|
|
5
|
+
warn(...any: any[]): void;
|
|
6
|
+
always(...any: any[]): void;
|
|
7
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ProtocolMessage } from "../Base/ProtocolMessage";
|
|
2
|
-
export interface GetInboxMessagesRequest extends ProtocolMessage {
|
|
3
|
-
limit?: number;
|
|
4
|
-
offset?: number;
|
|
5
|
-
starred_only?: boolean;
|
|
6
|
-
}
|
|
1
|
+
import { ProtocolMessage } from "../Base/ProtocolMessage";
|
|
2
|
+
export interface GetInboxMessagesRequest extends ProtocolMessage {
|
|
3
|
+
limit?: number;
|
|
4
|
+
offset?: number;
|
|
5
|
+
starred_only?: boolean;
|
|
6
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { TInboxMessage } from "../WSAPI/WSAPITypes";
|
|
2
|
-
import { ProtocolResponse } from "../Base/ProtocolResponse";
|
|
3
|
-
import { InboxMessage } from "./InboxMessage";
|
|
4
|
-
export interface GetInboxMessagesResponse extends ProtocolResponse {
|
|
5
|
-
log: InboxMessage[];
|
|
6
|
-
}
|
|
7
|
-
export declare const InboxMessagesTransform: (items: InboxMessage[]) => TInboxMessage[];
|
|
1
|
+
import { TInboxMessage } from "../WSAPI/WSAPITypes";
|
|
2
|
+
import { ProtocolResponse } from "../Base/ProtocolResponse";
|
|
3
|
+
import { InboxMessage } from "./InboxMessage";
|
|
4
|
+
export interface GetInboxMessagesResponse extends ProtocolResponse {
|
|
5
|
+
log: InboxMessage[];
|
|
6
|
+
}
|
|
7
|
+
export declare const InboxMessagesTransform: (items: InboxMessage[]) => TInboxMessage[];
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { TInboxMessageBody } from "../WSAPI/WSAPITypes";
|
|
2
|
-
import { InboxMessageType } from "./InboxMessageType";
|
|
3
|
-
export interface InboxMessageBody {
|
|
4
|
-
action: string;
|
|
5
|
-
body: string;
|
|
6
|
-
type: InboxMessageType;
|
|
7
|
-
image: string;
|
|
8
|
-
title: string;
|
|
9
|
-
html_body: string;
|
|
10
|
-
additional_buttons?: {
|
|
11
|
-
inbox_cta_text: string;
|
|
12
|
-
action: string;
|
|
13
|
-
}[];
|
|
14
|
-
}
|
|
15
|
-
export interface InboxMessage {
|
|
16
|
-
createDate: string;
|
|
17
|
-
body: InboxMessageBody;
|
|
18
|
-
engagement_uid: string;
|
|
19
|
-
is_read: boolean;
|
|
20
|
-
is_starred: boolean;
|
|
21
|
-
is_deleted?: boolean;
|
|
22
|
-
}
|
|
23
|
-
export declare const InboxMessageBodyTransform: (item: InboxMessageBody) => TInboxMessageBody;
|
|
1
|
+
import { TInboxMessageBody } from "../WSAPI/WSAPITypes";
|
|
2
|
+
import { InboxMessageType } from "./InboxMessageType";
|
|
3
|
+
export interface InboxMessageBody {
|
|
4
|
+
action: string;
|
|
5
|
+
body: string;
|
|
6
|
+
type: InboxMessageType;
|
|
7
|
+
image: string;
|
|
8
|
+
title: string;
|
|
9
|
+
html_body: string;
|
|
10
|
+
additional_buttons?: {
|
|
11
|
+
inbox_cta_text: string;
|
|
12
|
+
action: string;
|
|
13
|
+
}[];
|
|
14
|
+
}
|
|
15
|
+
export interface InboxMessage {
|
|
16
|
+
createDate: string;
|
|
17
|
+
body: InboxMessageBody;
|
|
18
|
+
engagement_uid: string;
|
|
19
|
+
is_read: boolean;
|
|
20
|
+
is_starred: boolean;
|
|
21
|
+
is_deleted?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export declare const InboxMessageBodyTransform: (item: InboxMessageBody) => TInboxMessageBody;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export declare enum InboxMessageType {
|
|
2
|
-
Custom = 0,
|
|
3
|
-
MissionCompleted = 1,
|
|
4
|
-
MissionUnlocked = 2,
|
|
5
|
-
LeaderboardWon = 3,
|
|
6
|
-
LevelChanged = 4,
|
|
7
|
-
BonusGiven = 5,
|
|
8
|
-
PointsAdded = 6,
|
|
9
|
-
PointsUsed = 7,
|
|
10
|
-
PersonalMessage = 8
|
|
11
|
-
}
|
|
1
|
+
export declare enum InboxMessageType {
|
|
2
|
+
Custom = 0,
|
|
3
|
+
MissionCompleted = 1,
|
|
4
|
+
MissionUnlocked = 2,
|
|
5
|
+
LeaderboardWon = 3,
|
|
6
|
+
LevelChanged = 4,
|
|
7
|
+
BonusGiven = 5,
|
|
8
|
+
PointsAdded = 6,
|
|
9
|
+
PointsUsed = 7,
|
|
10
|
+
PersonalMessage = 8
|
|
11
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ProtocolMessage } from "../Base/ProtocolMessage";
|
|
2
|
-
export interface MarkInboxMessageDeletedRequest extends ProtocolMessage {
|
|
3
|
-
engagement_uid?: string;
|
|
4
|
-
all_deleted?: boolean;
|
|
5
|
-
}
|
|
1
|
+
import { ProtocolMessage } from "../Base/ProtocolMessage";
|
|
2
|
+
export interface MarkInboxMessageDeletedRequest extends ProtocolMessage {
|
|
3
|
+
engagement_uid?: string;
|
|
4
|
+
all_deleted?: boolean;
|
|
5
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ProtocolMessage } from "../Base/ProtocolMessage";
|
|
2
|
-
export interface MarkInboxMessageDeletedResponse extends ProtocolMessage {
|
|
3
|
-
errCode: number;
|
|
4
|
-
errMsg?: string;
|
|
5
|
-
}
|
|
1
|
+
import { ProtocolMessage } from "../Base/ProtocolMessage";
|
|
2
|
+
export interface MarkInboxMessageDeletedResponse extends ProtocolMessage {
|
|
3
|
+
errCode: number;
|
|
4
|
+
errMsg?: string;
|
|
5
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ProtocolMessage } from "../Base/ProtocolMessage";
|
|
2
|
-
export interface MarkInboxMessageReadRequest extends ProtocolMessage {
|
|
3
|
-
engagement_uid?: string;
|
|
4
|
-
all_read?: boolean;
|
|
5
|
-
}
|
|
1
|
+
import { ProtocolMessage } from "../Base/ProtocolMessage";
|
|
2
|
+
export interface MarkInboxMessageReadRequest extends ProtocolMessage {
|
|
3
|
+
engagement_uid?: string;
|
|
4
|
+
all_read?: boolean;
|
|
5
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ProtocolMessage } from "../Base/ProtocolMessage";
|
|
2
|
-
export interface MarkInboxMessageReadResponse extends ProtocolMessage {
|
|
3
|
-
errCode: number;
|
|
4
|
-
errMsg?: string;
|
|
5
|
-
}
|
|
1
|
+
import { ProtocolMessage } from "../Base/ProtocolMessage";
|
|
2
|
+
export interface MarkInboxMessageReadResponse extends ProtocolMessage {
|
|
3
|
+
errCode: number;
|
|
4
|
+
errMsg?: string;
|
|
5
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ProtocolMessage } from "../Base/ProtocolMessage";
|
|
2
|
-
export interface MarkInboxMessageStarredRequest extends ProtocolMessage {
|
|
3
|
-
engagement_uid: string;
|
|
4
|
-
is_starred?: boolean;
|
|
5
|
-
}
|
|
1
|
+
import { ProtocolMessage } from "../Base/ProtocolMessage";
|
|
2
|
+
export interface MarkInboxMessageStarredRequest extends ProtocolMessage {
|
|
3
|
+
engagement_uid: string;
|
|
4
|
+
is_starred?: boolean;
|
|
5
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ProtocolMessage } from "../Base/ProtocolMessage";
|
|
2
|
-
export interface MarkInboxMessageStarredResponse extends ProtocolMessage {
|
|
3
|
-
errCode: number;
|
|
4
|
-
errMsg?: string;
|
|
5
|
-
}
|
|
1
|
+
import { ProtocolMessage } from "../Base/ProtocolMessage";
|
|
2
|
+
export interface MarkInboxMessageStarredResponse extends ProtocolMessage {
|
|
3
|
+
errCode: number;
|
|
4
|
+
errMsg?: string;
|
|
5
|
+
}
|
package/dist/Inbox/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export * from "./GetInboxMessagesRequest";
|
|
2
|
-
export * from "./GetInboxMessagesResponse";
|
|
3
|
-
export * from "./InboxMessage";
|
|
4
|
-
export * from "./InboxMessageType";
|
|
5
|
-
export * from "./MarkInboxMessageReadRequest";
|
|
6
|
-
export * from "./MarkInboxMessageReadResponse";
|
|
7
|
-
export * from "./MarkInboxMessageStarredRequest";
|
|
8
|
-
export * from "./MarkInboxMessageStarredResponse";
|
|
9
|
-
export * from './MarkInboxMessageDeletedRequest';
|
|
10
|
-
export * from './MarkInboxMessageDeletedResponse';
|
|
1
|
+
export * from "./GetInboxMessagesRequest";
|
|
2
|
+
export * from "./GetInboxMessagesResponse";
|
|
3
|
+
export * from "./InboxMessage";
|
|
4
|
+
export * from "./InboxMessageType";
|
|
5
|
+
export * from "./MarkInboxMessageReadRequest";
|
|
6
|
+
export * from "./MarkInboxMessageReadResponse";
|
|
7
|
+
export * from "./MarkInboxMessageStarredRequest";
|
|
8
|
+
export * from "./MarkInboxMessageStarredResponse";
|
|
9
|
+
export * from './MarkInboxMessageDeletedRequest';
|
|
10
|
+
export * from './MarkInboxMessageDeletedResponse';
|
package/dist/IntUtils.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
declare class IntUtils {
|
|
2
|
-
static uuid(): string;
|
|
3
|
-
static isNotNull(val: any): boolean;
|
|
4
|
-
static isNotEmpty(val: string): boolean;
|
|
5
|
-
static replaceAll(value: string, regex: string, replacement: string | number): string;
|
|
6
|
-
static escapeRegExp(v: string): string;
|
|
7
|
-
static JsonOrText: (str: string) => any;
|
|
8
|
-
static isWithinPeriod: (timestamp: number, period: 'today' | 'thisWeek' | 'thisMonth') => boolean;
|
|
9
|
-
}
|
|
10
|
-
export { IntUtils };
|
|
1
|
+
declare class IntUtils {
|
|
2
|
+
static uuid(): string;
|
|
3
|
+
static isNotNull(val: any): boolean;
|
|
4
|
+
static isNotEmpty(val: string): boolean;
|
|
5
|
+
static replaceAll(value: string, regex: string, replacement: string | number): string;
|
|
6
|
+
static escapeRegExp(v: string): string;
|
|
7
|
+
static JsonOrText: (str: string) => any;
|
|
8
|
+
static isWithinPeriod: (timestamp: number, period: 'today' | 'thisWeek' | 'thisMonth') => boolean;
|
|
9
|
+
}
|
|
10
|
+
export { IntUtils };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProtocolMessage } from "../Base/ProtocolMessage";
|
|
2
|
-
export interface GetJackpotsPotsRequest extends ProtocolMessage {
|
|
3
|
-
jp_template_ids: number[];
|
|
4
|
-
}
|
|
1
|
+
import { ProtocolMessage } from "../Base/ProtocolMessage";
|
|
2
|
+
export interface GetJackpotsPotsRequest extends ProtocolMessage {
|
|
3
|
+
jp_template_ids: number[];
|
|
4
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ProtocolResponse } from "../Base/ProtocolResponse";
|
|
2
|
-
import { JackpotPot } from "./JackpotPot";
|
|
3
|
-
export interface GetJackpotsPotsResponse extends ProtocolResponse {
|
|
4
|
-
items: JackpotPot[];
|
|
5
|
-
}
|
|
1
|
+
import { ProtocolResponse } from "../Base/ProtocolResponse";
|
|
2
|
+
import { JackpotPot } from "./JackpotPot";
|
|
3
|
+
export interface GetJackpotsPotsResponse extends ProtocolResponse {
|
|
4
|
+
items: JackpotPot[];
|
|
5
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ProtocolMessage } from "../Base/ProtocolMessage";
|
|
2
|
-
export interface GetJackpotsRequest extends ProtocolMessage {
|
|
3
|
-
related_game_id?: string;
|
|
4
|
-
jp_template_id?: number;
|
|
5
|
-
}
|
|
1
|
+
import { ProtocolMessage } from "../Base/ProtocolMessage";
|
|
2
|
+
export interface GetJackpotsRequest extends ProtocolMessage {
|
|
3
|
+
related_game_id?: string;
|
|
4
|
+
jp_template_id?: number;
|
|
5
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ProtocolResponse } from "../Base/ProtocolResponse";
|
|
2
|
-
import { JackpotDetails } from "./JackpotDetails";
|
|
3
|
-
export interface GetJackpotsResponse extends ProtocolResponse {
|
|
4
|
-
items: JackpotDetails[];
|
|
5
|
-
}
|
|
1
|
+
import { ProtocolResponse } from "../Base/ProtocolResponse";
|
|
2
|
+
import { JackpotDetails } from "./JackpotDetails";
|
|
3
|
+
export interface GetJackpotsResponse extends ProtocolResponse {
|
|
4
|
+
items: JackpotDetails[];
|
|
5
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
interface JackPotWinner {
|
|
2
|
-
/** Flag indicating that this winner is the currently logged in user */
|
|
3
|
-
is_me: boolean;
|
|
4
|
-
/** Name of the winner, note that for all users except is_me, the name is masked by default, but masking can be disabled by request to Smartico AM team */
|
|
5
|
-
public_username: string;
|
|
6
|
-
/** Won amount in the Jackpot currency */
|
|
7
|
-
winning_amount_jp_currency: number;
|
|
8
|
-
/** Won amount in the user Wallet currency */
|
|
9
|
-
winning_amount_wallet_currency: number;
|
|
10
|
-
/** Position of the winner. Relevant for jackpots where there could be multiple winners */
|
|
11
|
-
winning_position: number;
|
|
12
|
-
}
|
|
13
|
-
export { JackPotWinner };
|
|
1
|
+
interface JackPotWinner {
|
|
2
|
+
/** Flag indicating that this winner is the currently logged in user */
|
|
3
|
+
is_me: boolean;
|
|
4
|
+
/** Name of the winner, note that for all users except is_me, the name is masked by default, but masking can be disabled by request to Smartico AM team */
|
|
5
|
+
public_username: string;
|
|
6
|
+
/** Won amount in the Jackpot currency */
|
|
7
|
+
winning_amount_jp_currency: number;
|
|
8
|
+
/** Won amount in the user Wallet currency */
|
|
9
|
+
winning_amount_wallet_currency: number;
|
|
10
|
+
/** Position of the winner. Relevant for jackpots where there could be multiple winners */
|
|
11
|
+
winning_position: number;
|
|
12
|
+
}
|
|
13
|
+
export { JackPotWinner };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
declare enum JackpotContributionType {
|
|
2
|
-
Fixed = 1,
|
|
3
|
-
Percentage = 2
|
|
4
|
-
}
|
|
5
|
-
export { JackpotContributionType };
|
|
1
|
+
declare enum JackpotContributionType {
|
|
2
|
+
Fixed = 1,
|
|
3
|
+
Percentage = 2
|
|
4
|
+
}
|
|
5
|
+
export { JackpotContributionType };
|
|
@@ -1,35 +1,37 @@
|
|
|
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
|
-
/**
|
|
7
|
-
* JackpotDetails the information about Jackpot template
|
|
8
|
-
* It also includes JackpotPot object that holds the current value of the jackpot
|
|
9
|
-
* Flag is_opted_in indicates if the current user is opted in to the jackpot
|
|
10
|
-
*/
|
|
11
|
-
interface JackpotDetails {
|
|
12
|
-
/** ID of the jackpot template */
|
|
13
|
-
jp_template_id: number;
|
|
14
|
-
/** type of jackpot logic */
|
|
15
|
-
jp_type_id: JackpotType;
|
|
16
|
-
/** UI information of jackpot, like name, description, etc. */
|
|
17
|
-
jp_public_meta: JackpotPublicMeta;
|
|
18
|
-
/** base currency of the jackpot */
|
|
19
|
-
jp_currency: string;
|
|
20
|
-
/** wallet currency of currently logged in user */
|
|
21
|
-
user_currency: string;
|
|
22
|
-
/** list of related games that are eligible for the jackpot */
|
|
23
|
-
related_games?: AchRelatedGame[];
|
|
24
|
-
/** type of the user contribution to the jackpot */
|
|
25
|
-
contribution_type: JackpotContributionType;
|
|
26
|
-
/** value of the user contribution. Fixed amount or percentage of bet depending on the contribution type */
|
|
27
|
-
contribution_value: number;
|
|
28
|
-
/** information of current value of the jackpot */
|
|
29
|
-
pot: JackpotPot;
|
|
30
|
-
/** indication if the current user is opted in to the jackpot */
|
|
31
|
-
is_opted_in: boolean;
|
|
32
|
-
/** indicates whether all games are eligible for the jackpot */
|
|
33
|
-
ach_related_game_allow_all: boolean;
|
|
34
|
-
|
|
35
|
-
|
|
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
|
+
/**
|
|
7
|
+
* JackpotDetails the information about Jackpot template
|
|
8
|
+
* It also includes JackpotPot object that holds the current value of the jackpot
|
|
9
|
+
* Flag is_opted_in indicates if the current user is opted in to the jackpot
|
|
10
|
+
*/
|
|
11
|
+
interface JackpotDetails {
|
|
12
|
+
/** ID of the jackpot template */
|
|
13
|
+
jp_template_id: number;
|
|
14
|
+
/** type of jackpot logic */
|
|
15
|
+
jp_type_id: JackpotType;
|
|
16
|
+
/** UI information of jackpot, like name, description, etc. */
|
|
17
|
+
jp_public_meta: JackpotPublicMeta;
|
|
18
|
+
/** base currency of the jackpot */
|
|
19
|
+
jp_currency: string;
|
|
20
|
+
/** wallet currency of currently logged in user */
|
|
21
|
+
user_currency: string;
|
|
22
|
+
/** list of related games that are eligible for the jackpot */
|
|
23
|
+
related_games?: AchRelatedGame[];
|
|
24
|
+
/** type of the user contribution to the jackpot */
|
|
25
|
+
contribution_type: JackpotContributionType;
|
|
26
|
+
/** value of the user contribution. Fixed amount or percentage of bet depending on the contribution type */
|
|
27
|
+
contribution_value: number;
|
|
28
|
+
/** information of current value of the jackpot */
|
|
29
|
+
pot: JackpotPot;
|
|
30
|
+
/** indication if the current user is opted in to the jackpot */
|
|
31
|
+
is_opted_in: boolean;
|
|
32
|
+
/** indicates whether all games are eligible for the jackpot */
|
|
33
|
+
ach_related_game_allow_all: boolean;
|
|
34
|
+
/** The number of users who have opted in to participate in the jackpot */
|
|
35
|
+
registration_count: number;
|
|
36
|
+
}
|
|
37
|
+
export { JackpotDetails };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
interface JackpotHtmlTemplate {
|
|
2
|
-
id: string;
|
|
3
|
-
content: string;
|
|
4
|
-
}
|
|
5
|
-
export { JackpotHtmlTemplate };
|
|
1
|
+
interface JackpotHtmlTemplate {
|
|
2
|
+
id: string;
|
|
3
|
+
content: string;
|
|
4
|
+
}
|
|
5
|
+
export { JackpotHtmlTemplate };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
interface JackpotPot {
|
|
2
|
-
/** ID of the jackpot template */
|
|
3
|
-
jp_template_id: number;
|
|
4
|
-
/** ID of the jackpot pot */
|
|
5
|
-
jp_pot_id: number;
|
|
6
|
-
/** currency of the jackpot pot in the Jackput base currency */
|
|
7
|
-
current_pot_amount: number;
|
|
8
|
-
/** currency of the jackpot pot in the user wallet currency */
|
|
9
|
-
current_pot_amount_user_currency: number;
|
|
10
|
-
/** the date/time when this pot exploded */
|
|
11
|
-
explode_date_ts: number;
|
|
12
|
-
}
|
|
13
|
-
export { JackpotPot };
|
|
1
|
+
interface JackpotPot {
|
|
2
|
+
/** ID of the jackpot template */
|
|
3
|
+
jp_template_id: number;
|
|
4
|
+
/** ID of the jackpot pot */
|
|
5
|
+
jp_pot_id: number;
|
|
6
|
+
/** currency of the jackpot pot in the Jackput base currency */
|
|
7
|
+
current_pot_amount: number;
|
|
8
|
+
/** currency of the jackpot pot in the user wallet currency */
|
|
9
|
+
current_pot_amount_user_currency: number;
|
|
10
|
+
/** the date/time when this pot exploded */
|
|
11
|
+
explode_date_ts: number;
|
|
12
|
+
}
|
|
13
|
+
export { JackpotPot };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { JackpotHtmlTemplate } from './JackpotHtmlTemplate';
|
|
2
|
-
interface JackpotPublicMeta {
|
|
3
|
-
/** name of the jackpot */
|
|
4
|
-
name: string;
|
|
5
|
-
/** description/rules of the jackpot */
|
|
6
|
-
description: string;
|
|
7
|
-
/** image url of the jackpot */
|
|
8
|
-
image_url: string;
|
|
9
|
-
/** HTML template for the winner of the jackpt */
|
|
10
|
-
winner_template: JackpotHtmlTemplate;
|
|
11
|
-
/** HTML template for the not winner of the jackpot */
|
|
12
|
-
not_winner_template: JackpotHtmlTemplate;
|
|
13
|
-
/** custom value of placeholder1 defined by operator and can be used in the HTML templates */
|
|
14
|
-
placeholder1: string;
|
|
15
|
-
/** custom value of placeholder2 defined by operator and can be used in the HTML templates */
|
|
16
|
-
placeholder2: string;
|
|
17
|
-
}
|
|
18
|
-
export { JackpotPublicMeta };
|
|
1
|
+
import { JackpotHtmlTemplate } from './JackpotHtmlTemplate';
|
|
2
|
+
interface JackpotPublicMeta {
|
|
3
|
+
/** name of the jackpot */
|
|
4
|
+
name: string;
|
|
5
|
+
/** description/rules of the jackpot */
|
|
6
|
+
description: string;
|
|
7
|
+
/** image url of the jackpot */
|
|
8
|
+
image_url: string;
|
|
9
|
+
/** HTML template for the winner of the jackpt */
|
|
10
|
+
winner_template: JackpotHtmlTemplate;
|
|
11
|
+
/** HTML template for the not winner of the jackpot */
|
|
12
|
+
not_winner_template: JackpotHtmlTemplate;
|
|
13
|
+
/** custom value of placeholder1 defined by operator and can be used in the HTML templates */
|
|
14
|
+
placeholder1: string;
|
|
15
|
+
/** custom value of placeholder2 defined by operator and can be used in the HTML templates */
|
|
16
|
+
placeholder2: string;
|
|
17
|
+
}
|
|
18
|
+
export { JackpotPublicMeta };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare enum JackpotType {
|
|
2
|
-
Main = 1
|
|
3
|
-
}
|
|
4
|
-
export { JackpotType };
|
|
1
|
+
declare enum JackpotType {
|
|
2
|
+
Main = 1
|
|
3
|
+
}
|
|
4
|
+
export { JackpotType };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ProtocolMessage } from "../Base/ProtocolMessage";
|
|
2
|
-
import { JackPotWinner } from "./JackPotWinner";
|
|
3
|
-
import { JackpotDetails } from "./JackpotDetails";
|
|
4
|
-
export interface JackpotWinPush extends ProtocolMessage {
|
|
5
|
-
jackpot: JackpotDetails;
|
|
6
|
-
winners: JackPotWinner[];
|
|
7
|
-
}
|
|
1
|
+
import { ProtocolMessage } from "../Base/ProtocolMessage";
|
|
2
|
+
import { JackPotWinner } from "./JackPotWinner";
|
|
3
|
+
import { JackpotDetails } from "./JackpotDetails";
|
|
4
|
+
export interface JackpotWinPush extends ProtocolMessage {
|
|
5
|
+
jackpot: JackpotDetails;
|
|
6
|
+
winners: JackPotWinner[];
|
|
7
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProtocolMessage } from "../Base/ProtocolMessage";
|
|
2
|
-
export interface JackpotsOptinRequest extends ProtocolMessage {
|
|
3
|
-
jp_template_id: number;
|
|
4
|
-
}
|
|
1
|
+
import { ProtocolMessage } from "../Base/ProtocolMessage";
|
|
2
|
+
export interface JackpotsOptinRequest extends ProtocolMessage {
|
|
3
|
+
jp_template_id: number;
|
|
4
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ProtocolResponse } from "../Base/ProtocolResponse";
|
|
2
|
-
export interface JackpotsOptinResponse extends ProtocolResponse {
|
|
3
|
-
}
|
|
1
|
+
import { ProtocolResponse } from "../Base/ProtocolResponse";
|
|
2
|
+
export interface JackpotsOptinResponse extends ProtocolResponse {
|
|
3
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProtocolMessage } from "../Base/ProtocolMessage";
|
|
2
|
-
export interface JackpotsOptoutRequest extends ProtocolMessage {
|
|
3
|
-
jp_template_id: number;
|
|
4
|
-
}
|
|
1
|
+
import { ProtocolMessage } from "../Base/ProtocolMessage";
|
|
2
|
+
export interface JackpotsOptoutRequest extends ProtocolMessage {
|
|
3
|
+
jp_template_id: number;
|
|
4
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ProtocolResponse } from "../Base/ProtocolResponse";
|
|
2
|
-
export interface JackpotsOptoutResponse extends ProtocolResponse {
|
|
3
|
-
}
|
|
1
|
+
import { ProtocolResponse } from "../Base/ProtocolResponse";
|
|
2
|
+
export interface JackpotsOptoutResponse extends ProtocolResponse {
|
|
3
|
+
}
|