@smartico/public-api 0.0.271 → 0.0.273
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/MiniGames/SAWGameType.d.ts +3 -1
- package/dist/Raffle/RafflePrize.d.ts +2 -2
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +8 -2
- package/dist/index.modern.mjs.map +1 -1
- package/docs/interfaces/RafflePrize.md +2 -2
- package/package.json +1 -1
- package/src/MiniGames/SAWGameType.ts +4 -1
- package/src/Raffle/RafflePrize.ts +2 -2
- package/src/SmarticoAPI.ts +4 -1
- package/dist/Quiz/MarketsAnswersType.d.ts +0 -22
- package/dist/Raffle/GetDrawResponse.d.ts +0 -5
- package/dist/SmarticoPublicAPI.d.ts +0 -23
- package/dist/Store/BuyShopItemErrorCode.d.ts +0 -10
- package/dist/Store/BuyShopItemRequest.d.ts +0 -4
- package/dist/Store/BuyShopItemResponse.d.ts +0 -4
- package/dist/Store/GetCategoriesShopResponse.d.ts +0 -5
- package/dist/Store/GetShopItemsResponse.d.ts +0 -5
- package/dist/Store/ShopCategory.d.ts +0 -5
- package/dist/Store/ShopCategoryPublicMeta.d.ts +0 -4
- package/dist/Store/ShopItem.d.ts +0 -9
- package/dist/Store/ShopItemPublicMeta.d.ts +0 -10
- package/dist/Store/ShopItemType.d.ts +0 -4
- package/dist/Store/StorItemPruchased.d.ts +0 -6
- package/dist/service/index.d.ts +0 -5
- package/dist/service/types/ErrorCodes.d.ts +0 -13
- package/dist/service/types/GRequest.d.ts +0 -16
- package/dist/service/types/GResponse.d.ts +0 -10
- package/dist/service/types/Game/GameAttemptType.d.ts +0 -6
- package/dist/service/types/Game/GameCanPlayType.d.ts +0 -10
- package/dist/service/types/Game/GameExternalStatus.d.ts +0 -6
- package/dist/service/types/Game/GameInfo.d.ts +0 -9
- package/dist/service/types/Game/GamePick.d.ts +0 -90
- package/dist/service/types/Game/GameUtil.d.ts +0 -7
- package/dist/service/types/SmarticoProto/GetTranslationsRequest.d.ts +0 -7
- package/dist/service/types/SmarticoProto/GetTranslationsResponse.d.ts +0 -7
- package/dist/service/types/SmarticoProto/ProtocolMessage.d.ts +0 -5
- package/dist/service/types/SmarticoProto/ProtocolRequest.d.ts +0 -6
- package/dist/service/types/SmarticoProto/ProtocolResponse.d.ts +0 -5
- package/dist/service/types/SmarticoProto/PublicLabelInfo.d.ts +0 -34
- package/dist/service/types/SmarticoProto/PublicProperties.d.ts +0 -11
- package/dist/service/types/SmarticoProto/ResponseIdentify.d.ts +0 -12
- package/dist/service/types/SmarticoProto/SAW/SAWAcknowledgeType.d.ts +0 -5
- package/dist/service/types/SmarticoProto/SAW/SAWBuyInType.d.ts +0 -5
- package/dist/service/types/SmarticoProto/SAW/SAWDoSpinRequest.d.ts +0 -5
- package/dist/service/types/SmarticoProto/SAW/SAWDoSpinResponse.d.ts +0 -15
- package/dist/service/types/SmarticoProto/SAW/SAWGameType.d.ts +0 -10
- package/dist/service/types/SmarticoProto/SAW/SAWGetTemplatesRequest.d.ts +0 -3
- package/dist/service/types/SmarticoProto/SAW/SAWGetTemplatesResponse.d.ts +0 -5
- package/dist/service/types/SmarticoProto/SAW/SAWPrize.d.ts +0 -11
- package/dist/service/types/SmarticoProto/SAW/SAWPrizeType.d.ts +0 -8
- package/dist/service/types/SmarticoProto/SAW/SAWPrizeUI.d.ts +0 -13
- package/dist/service/types/SmarticoProto/SAW/SAWTemplate.d.ts +0 -21
- package/dist/service/types/SmarticoProto/SAW/SAWTemplateUI.d.ts +0 -31
- package/dist/service/types/SmarticoProto/SAW/SAWWinSoundType.d.ts +0 -12
- package/dist/service/types/SmarticoProto/TranslationArea.d.ts +0 -9
- package/dist/service/types/User/UserInfo.d.ts +0 -10
- package/dist/util/Util.d.ts +0 -51
|
@@ -106,10 +106,10 @@ ___
|
|
|
106
106
|
|
|
107
107
|
• `Optional` **cap\_prizes\_per\_run**: `number`
|
|
108
108
|
|
|
109
|
-
The maximum number of prizes that can be given
|
|
109
|
+
The maximum number of prizes that can be given within one instance/run of draw.
|
|
110
110
|
For example the prize is iPhone and add_one_prize_per_each_x_tickets is set to 1000,
|
|
111
111
|
cap_prizes_per_run is set to 3, and the total number of tickets collected is 7000.
|
|
112
|
-
In this case, the prizes_per_run_actual will be
|
|
112
|
+
In this case, the prizes_per_run_actual will be limited by 3
|
|
113
113
|
|
|
114
114
|
___
|
|
115
115
|
|
package/package.json
CHANGED
|
@@ -9,7 +9,8 @@ export enum SAWGameType {
|
|
|
9
9
|
Quiz = 6,
|
|
10
10
|
LootboxWeekdays = 7,
|
|
11
11
|
LootboxCalendarDays = 8,
|
|
12
|
-
TreasureHunt = 9
|
|
12
|
+
TreasureHunt = 9,
|
|
13
|
+
Mario = 10
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
export enum SAWGameTypeName {
|
|
@@ -22,6 +23,7 @@ export enum SAWGameTypeName {
|
|
|
22
23
|
LootboxWeekdays = 'lootbox_weekdays',
|
|
23
24
|
LootboxCalendarDays = 'lootbox_calendar_days',
|
|
24
25
|
TreasureHunt = 'treasure_hunt',
|
|
26
|
+
Mario = 'mario',
|
|
25
27
|
Unknown = 'unknown',
|
|
26
28
|
}
|
|
27
29
|
|
|
@@ -38,6 +40,7 @@ export const SAWGameTypeNamed = (type: SAWGameType): SAWGameTypeName => {
|
|
|
38
40
|
[SAWGameType.LootboxWeekdays]: SAWGameTypeName.LootboxWeekdays,
|
|
39
41
|
[SAWGameType.LootboxCalendarDays]: SAWGameTypeName.LootboxCalendarDays,
|
|
40
42
|
[SAWGameType.TreasureHunt]: SAWGameTypeName.TreasureHunt,
|
|
43
|
+
[SAWGameType.Mario]: SAWGameTypeName.Mario,
|
|
41
44
|
}[type] || SAWGameTypeName.Unknown
|
|
42
45
|
);
|
|
43
46
|
};
|
|
@@ -90,10 +90,10 @@ interface RafflePrize {
|
|
|
90
90
|
|
|
91
91
|
|
|
92
92
|
/**
|
|
93
|
-
* The maximum number of prizes that can be given
|
|
93
|
+
* The maximum number of prizes that can be given within one instance/run of draw.
|
|
94
94
|
* For example the prize is iPhone and add_one_prize_per_each_x_tickets is set to 1000,
|
|
95
95
|
* cap_prizes_per_run is set to 3, and the total number of tickets collected is 7000.
|
|
96
|
-
* In this case, the prizes_per_run_actual will be
|
|
96
|
+
* In this case, the prizes_per_run_actual will be limited by 3
|
|
97
97
|
*/
|
|
98
98
|
cap_prizes_per_run?: number;
|
|
99
99
|
|
package/src/SmarticoAPI.ts
CHANGED
|
@@ -203,6 +203,8 @@ class SmarticoAPI {
|
|
|
203
203
|
'img4.smr.vc': 'dvm0p9vsezqr2.cloudfront.net',
|
|
204
204
|
'img5.smr.vc': 'd3gen1ksvxhac8.cloudfront.net',
|
|
205
205
|
'img6.smr.vc': 'db1kmyg7iufeo.cloudfront.net',
|
|
206
|
+
'img7.smr.vc': 'd36om2g86xefo6.cloudfront.net',
|
|
207
|
+
'img8.smr.vc': 'd2zme31v54n5pb.cloudfront.net',
|
|
206
208
|
|
|
207
209
|
'static.smr.vc': 'dtt380pweilws.cloudfront.net',
|
|
208
210
|
'static3.smr.vc': 'd1qt8ake8g4imn.cloudfront.net',
|
|
@@ -210,6 +212,7 @@ class SmarticoAPI {
|
|
|
210
212
|
'static5.smr.vc': 'd3l7suk1kl9rwh.cloudfront.net',
|
|
211
213
|
'static6.smr.vc': 'd121pfj16xdfcq.cloudfront.net',
|
|
212
214
|
'static7.smr.vc': 'd21deilz814qgl.cloudfront.net',
|
|
215
|
+
'static8.smr.vc': 'd1uffsroxjy2ku.cloudfront.net',
|
|
213
216
|
}
|
|
214
217
|
|
|
215
218
|
const escapeRegExp = (str: string) => str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
@@ -412,7 +415,7 @@ class SmarticoAPI {
|
|
|
412
415
|
`${this.label_api_key} - ${this.brand_api_key}`,
|
|
413
416
|
ECacheContext.LabelInfo,
|
|
414
417
|
async () => {
|
|
415
|
-
const message = this.buildMessage<
|
|
418
|
+
const message = this.buildMessage<GetLabelInfoRequest, GetLabelInfoResponse>(user_ext_id, ClassId.INIT);
|
|
416
419
|
|
|
417
420
|
return this.send<GetLabelInfoResponse>(message, ClassId.INIT_RESPONSE);
|
|
418
421
|
},
|
|
@@ -1,22 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ClassId } from "./Base/ClassId";
|
|
2
|
-
import { SAWGetTemplatesResponse } from './MiniGames/SAWGetTemplatesResponse';
|
|
3
|
-
import { SAWTemplate } from './MiniGames/SAWTemplate';
|
|
4
|
-
import { ILogger } from './ILogger';
|
|
5
|
-
interface IOptions {
|
|
6
|
-
logger?: ILogger;
|
|
7
|
-
logCIDs?: ClassId[];
|
|
8
|
-
logHTTPTiming?: boolean;
|
|
9
|
-
}
|
|
10
|
-
declare class SmarticoPublicApi {
|
|
11
|
-
private label_api_key;
|
|
12
|
-
private brand_api_key;
|
|
13
|
-
private publicUrl;
|
|
14
|
-
private logger;
|
|
15
|
-
private logCIDs;
|
|
16
|
-
private logHTTPTiming;
|
|
17
|
-
constructor(label_api_key: string, brand_api_key: string, options?: IOptions);
|
|
18
|
-
private send;
|
|
19
|
-
private buildMessage;
|
|
20
|
-
miniGamesGetTemplates(user_ext_id: string): Promise<SAWGetTemplatesResponse>;
|
|
21
|
-
miniGamesFormatTemplatesForWidget(templates: SAWTemplate[], pointsBalance: number): any[];
|
|
22
|
-
}
|
|
23
|
-
export { SmarticoPublicApi };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare enum BuyShopItemErrorCode {
|
|
2
|
-
FAILED_TO_BUY_SHOP_ITEM = 121,
|
|
3
|
-
SHOP_NO_BALANCE = 11000,
|
|
4
|
-
SHOP_WRONG_LABEL = 11001,
|
|
5
|
-
SHOP_FAILED_TO_BUY_BONUS = 11002,
|
|
6
|
-
SHOP_FAILED_TO_BUY_SHOP_ITEM_CONDITION = 11003,
|
|
7
|
-
SHOP_FAILED_TO_BUY_SHOP_ITEM_CONDITION_PURSHASE = 11004,
|
|
8
|
-
SHOP_FAILED_TO_BUY_MATCHING_BONUS = 11005,
|
|
9
|
-
SHOP_FAILED_MAX_BOUGHT_ITEMS_REACHED = 11006
|
|
10
|
-
}
|
package/dist/Store/ShopItem.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ShopItemPublicMeta } from "./ShopItemPublicMeta";
|
|
2
|
-
import { ShopItemType } from "./ShopItemType";
|
|
3
|
-
export interface ShopItem {
|
|
4
|
-
id: number;
|
|
5
|
-
itemTypeId: ShopItemType;
|
|
6
|
-
itemPublicMeta: ShopItemPublicMeta;
|
|
7
|
-
categoryIds?: number[];
|
|
8
|
-
canBuy?: boolean;
|
|
9
|
-
}
|
package/dist/service/index.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { ErrorCodes, ErrorCodesGame } from './types/ErrorCodes';
|
|
2
|
-
import { GBaseRequest } from './types/GRequest';
|
|
3
|
-
import { GResponseBase, GResponse } from './types/GResponse';
|
|
4
|
-
import { SAWSpinErrorCode } from './types/SmarticoProto/SAW/SAWDoSpinResponse';
|
|
5
|
-
export { ErrorCodes, ErrorCodesGame, SAWSpinErrorCode, GBaseRequest, GResponseBase, GResponse, };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { SAWSpinErrorCode } from "./SmarticoProto/SAW/SAWDoSpinResponse";
|
|
2
|
-
export declare const ErrorCodes_FatalStartingRange = 100000;
|
|
3
|
-
export declare enum ErrorCodesGame {
|
|
4
|
-
OK = 0,
|
|
5
|
-
NoBetsUpdatedOnSubmit = 3,
|
|
6
|
-
RepeatRequest_Unhandled = 4,
|
|
7
|
-
Fatal_NotValidHash,
|
|
8
|
-
Fatal_WrongCustomerID,
|
|
9
|
-
Fatal_TemplateNotFound,
|
|
10
|
-
Fatal_NoOpenRounds,
|
|
11
|
-
Fatal_Unhandled
|
|
12
|
-
}
|
|
13
|
-
export type ErrorCodes = SAWSpinErrorCode | ErrorCodesGame;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
interface GBaseRequest {
|
|
2
|
-
customer_id: string;
|
|
3
|
-
ext_user_id: string;
|
|
4
|
-
int_user_id: number;
|
|
5
|
-
smartico_ext_user_id: string;
|
|
6
|
-
ext_game_id: number;
|
|
7
|
-
lang: string;
|
|
8
|
-
hash: string;
|
|
9
|
-
zoom?: number;
|
|
10
|
-
label_api_key?: string;
|
|
11
|
-
brand_key?: string;
|
|
12
|
-
bridgeId?: string;
|
|
13
|
-
height?: 'auto' | string;
|
|
14
|
-
theme?: string;
|
|
15
|
-
}
|
|
16
|
-
export { GBaseRequest };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ResponseIdentifyLabelInfo } from "../SmarticoProto/PublicLabelInfo";
|
|
2
|
-
import { GamePickRoundBase } from "./GamePick";
|
|
3
|
-
import { SAWTemplate } from "../SmarticoProto/SAW/SAWTemplate";
|
|
4
|
-
interface GameInfo {
|
|
5
|
-
sawTemplate: SAWTemplate;
|
|
6
|
-
allRounds: GamePickRoundBase[];
|
|
7
|
-
labelInfo: ResponseIdentifyLabelInfo;
|
|
8
|
-
}
|
|
9
|
-
export { GameInfo };
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
declare enum GamePickMarketType {
|
|
2
|
-
Goals = 1,
|
|
3
|
-
Winner = 2
|
|
4
|
-
}
|
|
5
|
-
declare enum GamePickResolutionType {
|
|
6
|
-
None = 0,
|
|
7
|
-
Lost = 2,
|
|
8
|
-
PartialWin = 3,
|
|
9
|
-
FullWin = 4
|
|
10
|
-
}
|
|
11
|
-
declare enum GPRoundStatus {
|
|
12
|
-
Other = -1,
|
|
13
|
-
NoEventsDefined = 1,
|
|
14
|
-
NoMoreBetsAllowed = 2,
|
|
15
|
-
AllEventsResolved_ButNotRound = 3,
|
|
16
|
-
RoundResolved = 4
|
|
17
|
-
}
|
|
18
|
-
interface GamePickEventMeta {
|
|
19
|
-
event_name?: string;
|
|
20
|
-
team1_name: string;
|
|
21
|
-
team1_image: string;
|
|
22
|
-
team2_name: string;
|
|
23
|
-
team2_image: string;
|
|
24
|
-
team1_result?: number;
|
|
25
|
-
team2_result?: number;
|
|
26
|
-
}
|
|
27
|
-
interface GamePickEvent {
|
|
28
|
-
gp_event_id: number;
|
|
29
|
-
event_resolution_date: number;
|
|
30
|
-
match_date: number;
|
|
31
|
-
market_type_id: GamePickMarketType;
|
|
32
|
-
event_meta: GamePickEventMeta;
|
|
33
|
-
user_placed_bet: boolean;
|
|
34
|
-
team1_user_selection: number;
|
|
35
|
-
team2_user_selection: number;
|
|
36
|
-
resolution_type_id: GamePickResolutionType;
|
|
37
|
-
resolution_score?: number;
|
|
38
|
-
is_open_for_bets?: boolean;
|
|
39
|
-
}
|
|
40
|
-
interface GamePickRoundBase {
|
|
41
|
-
round_id: number;
|
|
42
|
-
round_row_id: number;
|
|
43
|
-
round_name: string;
|
|
44
|
-
round_description: string;
|
|
45
|
-
open_date: number;
|
|
46
|
-
last_bet_date: number;
|
|
47
|
-
resolution_date: number;
|
|
48
|
-
score_full_win: number;
|
|
49
|
-
score_part_win: number;
|
|
50
|
-
score_lost: number;
|
|
51
|
-
is_active_now: boolean;
|
|
52
|
-
is_resolved: boolean;
|
|
53
|
-
round_status_id: GPRoundStatus;
|
|
54
|
-
events_total: number;
|
|
55
|
-
events_resolved: number;
|
|
56
|
-
public_meta: {
|
|
57
|
-
round_name: string;
|
|
58
|
-
round_description: string;
|
|
59
|
-
_translations: {
|
|
60
|
-
[key: string]: {
|
|
61
|
-
round_name: string;
|
|
62
|
-
round_description: string;
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
next_round_open_date: number;
|
|
67
|
-
}
|
|
68
|
-
interface GamePickRoundBoard extends GamePickRoundBase {
|
|
69
|
-
my_user: GamePickBoardUser;
|
|
70
|
-
users: GamePickBoardUser[];
|
|
71
|
-
}
|
|
72
|
-
interface GamePickRound extends GamePickRoundBase {
|
|
73
|
-
events: GamePickEvent[];
|
|
74
|
-
user_score: number;
|
|
75
|
-
user_placed_bet: boolean;
|
|
76
|
-
has_open_for_bet_events?: boolean;
|
|
77
|
-
has_not_submitted_changes?: boolean;
|
|
78
|
-
}
|
|
79
|
-
interface GamePickBoardUser {
|
|
80
|
-
ext_user_id: string;
|
|
81
|
-
int_user_id: number;
|
|
82
|
-
public_username: string;
|
|
83
|
-
avatar_url: string;
|
|
84
|
-
gp_position: number;
|
|
85
|
-
resolution_score: number;
|
|
86
|
-
full_wins_count: number;
|
|
87
|
-
part_wins_count: number;
|
|
88
|
-
lost_count: number;
|
|
89
|
-
}
|
|
90
|
-
export { GamePickRoundBase, GamePickRound, GamePickEvent, GamePickMarketType, GamePickResolutionType, GamePickEventMeta, GPRoundStatus, GamePickRoundBoard, GamePickBoardUser };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { GameInfo } from "./GameInfo";
|
|
2
|
-
import { GamePickRound, GamePickRoundBase } from "./GamePick";
|
|
3
|
-
declare class GameUtil {
|
|
4
|
-
static getRoundName(round: GamePickRoundBase, gameInfo: GameInfo): string;
|
|
5
|
-
static getRoundDescription(round: GamePickRound, gameInfo: GameInfo): string;
|
|
6
|
-
}
|
|
7
|
-
export { GameUtil };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
export declare enum PublicLabelSettings {
|
|
2
|
-
FCM_SENDER_ID = "FCM_SENDER_ID",
|
|
3
|
-
PUBLIC_API_URL = "PUBLIC_API_URL",
|
|
4
|
-
FCM_SW_URL = "FCM_SW_URL",
|
|
5
|
-
RECORDING_ENABLED_FOR_ALL_USERS = "RECORDING_ENABLED_FOR_ALL_USERS",
|
|
6
|
-
JS_INJECTION = "JS_INJECTION",
|
|
7
|
-
GAMIFICATION_UI_MAIN = "GAMIFICATION_UI_MAIN",
|
|
8
|
-
GAMIFICATION_UI_WIDGET = "GAMIFICATION_UI_WIDGET",
|
|
9
|
-
GAMIFICATION_UI_MINI_GAME = "GAMIFICATION_UI_MINI_GAME",
|
|
10
|
-
GAMIFICATION_UI_SETTINGS = "GAMIFICATION_UI_SETTINGS",
|
|
11
|
-
GAMIFICATION_UI_MAIN_TEST = "GAMIFICATION_UI_MAIN_TEST",
|
|
12
|
-
GAMIFICATION_UI_WIDGET_TEST = "GAMIFICATION_UI_WIDGET_TEST",
|
|
13
|
-
GAMIFICATION_UI_SETTINGS_TEST = "GAMIFICATION_UI_SETTINGS_TEST",
|
|
14
|
-
FRONT_END_ALLOWED_LANGUAGES = "FRONT_END_ALLOWED_LANGUAGES",
|
|
15
|
-
FRONT_END_ALLOW_DOMAINS = "FRONT_END_ALLOW_DOMAINS",
|
|
16
|
-
DELAY_ENGAGEMENT_EXECUTION_ON_LOGIN_MS = "DELAY_ENGAGEMENT_EXECUTION_ON_LOGIN_MS",
|
|
17
|
-
SHADOW_LABEL_PUBLIC_KEY = "SHADOW_LABEL_PUBLIC_KEY",
|
|
18
|
-
DYNAMIC_IMAGE_DOMAIN = "DYNAMIC_IMAGE_DOMAIN",
|
|
19
|
-
GAMIFICATION_UI_LEVEL_ENABLED = "GAMIFICATION_UI_LEVEL_ENABLED",
|
|
20
|
-
GAMIFICATION_UI_LEVEL_IMAGE_MOB = "GAMIFICATION_UI_LEVEL_IMAGE_MOB",
|
|
21
|
-
GAMIFICATION_UI_LEVEL_IMAGE_DESK = "GAMIFICATION_UI_LEVEL_IMAGE_DESK",
|
|
22
|
-
GAMIFICATION_LEVELS_LOGIC2 = "GAMIFICATION_LEVELS_LOGIC2",
|
|
23
|
-
AVATAR_CUSTOM_IMAGE_MAX_ID = "AVATAR_CUSTOM_IMAGE_MAX_ID",
|
|
24
|
-
AVATAR_CUSTOM_IMAGE_FOLDER = "AVATAR_CUSTOM_IMAGE_FOLDER",
|
|
25
|
-
RETENTION_GAMES_CUSTOMER_ID = "RETENTION_GAMES_CUSTOMER_ID",
|
|
26
|
-
GAMIFICATION_SHOW_POWERED_BY = "GAMIFICATION_SHOW_POWERED_BY",
|
|
27
|
-
_system_leader_board_mask_username = "_system_leader_board_mask_username"
|
|
28
|
-
}
|
|
29
|
-
export interface ResponseIdentifyLabelInfo {
|
|
30
|
-
settings: {
|
|
31
|
-
[key: string]: string;
|
|
32
|
-
};
|
|
33
|
-
label_id: string;
|
|
34
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export interface PublicProperties {
|
|
2
|
-
core_user_language?: string;
|
|
3
|
-
ach_points_balance?: number;
|
|
4
|
-
ach_points_ever?: number;
|
|
5
|
-
ach_points_board_period_type_1?: number;
|
|
6
|
-
ach_points_board_period_type_2?: number;
|
|
7
|
-
ach_level_current_id?: number;
|
|
8
|
-
ach_level_current?: string;
|
|
9
|
-
core_is_test_account?: boolean;
|
|
10
|
-
ach_gamification_in_control_group?: boolean;
|
|
11
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ProtocolResponse } from "./ProtocolResponse";
|
|
2
|
-
import { PublicProperties } from "./PublicProperties";
|
|
3
|
-
interface ResponseIdentify extends ProtocolResponse {
|
|
4
|
-
user_id: number;
|
|
5
|
-
ext_user_id: string;
|
|
6
|
-
public_username: string;
|
|
7
|
-
avatar_id: string;
|
|
8
|
-
job: boolean;
|
|
9
|
-
props?: PublicProperties;
|
|
10
|
-
pubic_username_set: boolean;
|
|
11
|
-
}
|
|
12
|
-
export { ResponseIdentify };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ProtocolResponse } from "../ProtocolResponse";
|
|
2
|
-
export declare enum SAWSpinErrorCode {
|
|
3
|
-
SAW_OK = 0,
|
|
4
|
-
SAW_NO_SPINS = 40001,
|
|
5
|
-
SAW_PRIZE_POOL_EMPTY = 40002,
|
|
6
|
-
SAW_NOT_ENOUGH_POINTS = 40003,
|
|
7
|
-
SAW_FAILED_MAX_SPINS_REACHED = 40004
|
|
8
|
-
}
|
|
9
|
-
export interface SAWDoSpinResponse extends ProtocolResponse {
|
|
10
|
-
errCode: SAWSpinErrorCode;
|
|
11
|
-
errMsg?: string;
|
|
12
|
-
request_id: string;
|
|
13
|
-
saw_prize_id: number;
|
|
14
|
-
first_spin_in_period: number;
|
|
15
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { SAWPrizeType } from "./SAWPrizeType";
|
|
2
|
-
import { SAWPrizeUI } from "./SAWPrizeUI";
|
|
3
|
-
export interface SAWPrize {
|
|
4
|
-
saw_prize_id: number;
|
|
5
|
-
saw_prize_ui_definition: SAWPrizeUI;
|
|
6
|
-
prize_value?: number;
|
|
7
|
-
prize_type_id: SAWPrizeType;
|
|
8
|
-
place_from?: number;
|
|
9
|
-
place_to?: number;
|
|
10
|
-
sawUniqueWinId?: string;
|
|
11
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { SAWAcknowledgeType } from "./SAWAcknowledgeType";
|
|
2
|
-
import { SAWWinSoundType } from "./SAWWinSoundType";
|
|
3
|
-
export interface SAWPrizeUI {
|
|
4
|
-
position?: number;
|
|
5
|
-
name: string;
|
|
6
|
-
aknowledge_message: string;
|
|
7
|
-
sectors: number[];
|
|
8
|
-
acknowledge_type: SAWAcknowledgeType;
|
|
9
|
-
acknowledge_dp?: string;
|
|
10
|
-
font_size?: number;
|
|
11
|
-
sound_type: SAWWinSoundType;
|
|
12
|
-
icon?: string;
|
|
13
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { SAWBuyInType } from "./SAWBuyInType";
|
|
2
|
-
import { SAWGameType } from "./SAWGameType";
|
|
3
|
-
import { SAWPrize } from "./SAWPrize";
|
|
4
|
-
import { SAWTemplateUI } from "./SAWTemplateUI";
|
|
5
|
-
export interface SAWTemplate {
|
|
6
|
-
saw_template_id: number;
|
|
7
|
-
saw_game_type_id: SAWGameType;
|
|
8
|
-
saw_template_ui_definition: SAWTemplateUI;
|
|
9
|
-
saw_buyin_type_id: SAWBuyInType;
|
|
10
|
-
buyin_cost_points?: number;
|
|
11
|
-
visibile_when_can_spin: boolean;
|
|
12
|
-
spin_count?: number;
|
|
13
|
-
prizes: SAWPrize[];
|
|
14
|
-
is_visible: boolean;
|
|
15
|
-
jackpot_add_on_attempt: number;
|
|
16
|
-
jackpot_current: number;
|
|
17
|
-
jackpot_guaranteed: number;
|
|
18
|
-
maxActiveSpinsAllowed: number;
|
|
19
|
-
maxSpinsCount: number;
|
|
20
|
-
maxSpinsPediodMs: number;
|
|
21
|
-
}
|