@smartico/public-api 0.0.179 → 0.0.181
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/CustomSections/AchCustomSection.d.ts +5 -1
- package/dist/MiniGames/SAWGameType.d.ts +5 -1
- package/dist/index.js +11 -3
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +13 -3
- package/dist/index.modern.mjs.map +1 -1
- package/package.json +1 -1
- package/src/CustomSections/AchCustomSection.ts +4 -0
- package/src/MiniGames/SAWGameType.ts +6 -0
- package/src/MiniGames/SAWGetTemplatesResponse.ts +4 -2
|
@@ -5,7 +5,11 @@ export declare enum AchCustomSectionType {
|
|
|
5
5
|
LEVELS = 4,
|
|
6
6
|
MINI_GAMES = 5,
|
|
7
7
|
MISSION_CUSTOM_LAYOUT = 6,
|
|
8
|
-
MATCH_X = 7
|
|
8
|
+
MATCH_X = 7,
|
|
9
|
+
QUIZ = 8,
|
|
10
|
+
REDIRECT_LINK = 9,
|
|
11
|
+
LOOTBOX_WEEKLY = 10,
|
|
12
|
+
LOOTBOX_CALENDAR_DAYS = 11
|
|
9
13
|
}
|
|
10
14
|
export declare enum AchCustomLayoutTheme {
|
|
11
15
|
VALENTINES_LIGHT = "valentines-light",
|
|
@@ -5,7 +5,9 @@ export declare enum SAWGameType {
|
|
|
5
5
|
MatchX = 3,
|
|
6
6
|
GiftBox = 4,
|
|
7
7
|
PrizeDrop = 5,
|
|
8
|
-
Quiz = 6
|
|
8
|
+
Quiz = 6,
|
|
9
|
+
LootboxWeekdays = 7,
|
|
10
|
+
LootboxCalendarDays = 8
|
|
9
11
|
}
|
|
10
12
|
export declare enum SAWGameTypeName {
|
|
11
13
|
SpinAWheel = "wheel",
|
|
@@ -14,6 +16,8 @@ export declare enum SAWGameTypeName {
|
|
|
14
16
|
GiftBox = "giftbox",
|
|
15
17
|
PrizeDrop = "prizedrop",
|
|
16
18
|
Quiz = "quiz",
|
|
19
|
+
LootboxWeekdays = "lootbox_weekdays",
|
|
20
|
+
LootboxCalendarDays = "lootbox_calendar_days",
|
|
17
21
|
Unknown = "unknown"
|
|
18
22
|
}
|
|
19
23
|
/** @hidden */
|
package/dist/index.js
CHANGED
|
@@ -330,6 +330,8 @@ exports.SAWGameType = void 0;
|
|
|
330
330
|
SAWGameType[SAWGameType["GiftBox"] = 4] = "GiftBox";
|
|
331
331
|
SAWGameType[SAWGameType["PrizeDrop"] = 5] = "PrizeDrop";
|
|
332
332
|
SAWGameType[SAWGameType["Quiz"] = 6] = "Quiz";
|
|
333
|
+
SAWGameType[SAWGameType["LootboxWeekdays"] = 7] = "LootboxWeekdays";
|
|
334
|
+
SAWGameType[SAWGameType["LootboxCalendarDays"] = 8] = "LootboxCalendarDays";
|
|
333
335
|
})(exports.SAWGameType || (exports.SAWGameType = {}));
|
|
334
336
|
exports.SAWGameTypeName = void 0;
|
|
335
337
|
(function (SAWGameTypeName) {
|
|
@@ -339,12 +341,14 @@ exports.SAWGameTypeName = void 0;
|
|
|
339
341
|
SAWGameTypeName["GiftBox"] = "giftbox";
|
|
340
342
|
SAWGameTypeName["PrizeDrop"] = "prizedrop";
|
|
341
343
|
SAWGameTypeName["Quiz"] = "quiz";
|
|
344
|
+
SAWGameTypeName["LootboxWeekdays"] = "lootbox_weekdays";
|
|
345
|
+
SAWGameTypeName["LootboxCalendarDays"] = "lootbox_calendar_days";
|
|
342
346
|
SAWGameTypeName["Unknown"] = "unknown";
|
|
343
347
|
})(exports.SAWGameTypeName || (exports.SAWGameTypeName = {}));
|
|
344
348
|
/** @hidden */
|
|
345
349
|
var SAWGameTypeNamed = function SAWGameTypeNamed(type) {
|
|
346
350
|
var _SAWGameType$SpinAWhe;
|
|
347
|
-
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)[type] || exports.SAWGameTypeName.Unknown;
|
|
351
|
+
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)[type] || exports.SAWGameTypeName.Unknown;
|
|
348
352
|
};
|
|
349
353
|
|
|
350
354
|
/** @hidden */
|
|
@@ -375,12 +379,12 @@ var MiniGamePrizeTypeNamed = function MiniGamePrizeTypeNamed(type) {
|
|
|
375
379
|
|
|
376
380
|
var SAWTemplatesTransform = function SAWTemplatesTransform(items) {
|
|
377
381
|
return items.map(function (r) {
|
|
378
|
-
var _r$saw_skin_ui_defini
|
|
382
|
+
var _r$saw_skin_ui_defini;
|
|
379
383
|
var x = {
|
|
380
384
|
id: r.saw_template_id,
|
|
381
385
|
name: r.saw_template_ui_definition.name,
|
|
382
386
|
description: r.saw_template_ui_definition.description,
|
|
383
|
-
thumbnail: (_r$saw_skin_ui_defini = r.saw_skin_ui_definition) != null && _r$saw_skin_ui_defini.skin_folder ?
|
|
387
|
+
thumbnail: r.saw_template_ui_definition.thumbnail ? r.saw_template_ui_definition.thumbnail : (_r$saw_skin_ui_defini = r.saw_skin_ui_definition) != null && _r$saw_skin_ui_defini.skin_folder ? r.saw_skin_ui_definition.skin_folder + "/ico.png" : "https://d312ucx3huj7iy.cloudfront.net/gf/images/saw/" + r.saw_skin_key + "/ico.png",
|
|
384
388
|
over_limit_message: r.saw_template_ui_definition.over_limit_message,
|
|
385
389
|
no_attempts_message: r.saw_template_ui_definition.no_attempts_message,
|
|
386
390
|
jackpot_symbol: r.saw_template_ui_definition.jackpot_symbol,
|
|
@@ -2444,6 +2448,10 @@ var AchCustomSectionType;
|
|
|
2444
2448
|
AchCustomSectionType[AchCustomSectionType["MINI_GAMES"] = 5] = "MINI_GAMES";
|
|
2445
2449
|
AchCustomSectionType[AchCustomSectionType["MISSION_CUSTOM_LAYOUT"] = 6] = "MISSION_CUSTOM_LAYOUT";
|
|
2446
2450
|
AchCustomSectionType[AchCustomSectionType["MATCH_X"] = 7] = "MATCH_X";
|
|
2451
|
+
AchCustomSectionType[AchCustomSectionType["QUIZ"] = 8] = "QUIZ";
|
|
2452
|
+
AchCustomSectionType[AchCustomSectionType["REDIRECT_LINK"] = 9] = "REDIRECT_LINK";
|
|
2453
|
+
AchCustomSectionType[AchCustomSectionType["LOOTBOX_WEEKLY"] = 10] = "LOOTBOX_WEEKLY";
|
|
2454
|
+
AchCustomSectionType[AchCustomSectionType["LOOTBOX_CALENDAR_DAYS"] = 11] = "LOOTBOX_CALENDAR_DAYS";
|
|
2447
2455
|
})(AchCustomSectionType || (AchCustomSectionType = {}));
|
|
2448
2456
|
var AchCustomLayoutTheme;
|
|
2449
2457
|
(function (AchCustomLayoutTheme) {
|