@smartico/public-api 0.0.180 → 0.0.182
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/MiniGames/SAWPrize.d.ts +2 -0
- package/dist/WSAPI/WSAPITypes.d.ts +2 -0
- package/dist/index.js +12 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +14 -2
- 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 +2 -0
- package/src/MiniGames/SAWPrize.ts +2 -0
- package/src/WSAPI/WSAPITypes.ts +6 -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 */
|
|
@@ -36,6 +36,8 @@ export interface TMiniGamePrize {
|
|
|
36
36
|
weekdays?: number[];
|
|
37
37
|
active_from_ts?: number;
|
|
38
38
|
active_till_ts?: number;
|
|
39
|
+
active_from?: string;
|
|
40
|
+
active_till?: string;
|
|
39
41
|
}
|
|
40
42
|
/**
|
|
41
43
|
* TMiniGamePlayResult describes the response of call to _smartico.api.playMiniGame(template_id) method
|
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 */
|
|
@@ -416,7 +420,9 @@ var SAWTemplatesTransform = function SAWTemplatesTransform(items) {
|
|
|
416
420
|
wins_count: p.wins_count,
|
|
417
421
|
weekdays: p.weekdays,
|
|
418
422
|
active_from_ts: p.active_from_ts,
|
|
419
|
-
active_till_ts: p.active_till_ts
|
|
423
|
+
active_till_ts: p.active_till_ts,
|
|
424
|
+
active_from: p.active_from,
|
|
425
|
+
active_till: p.active_till
|
|
420
426
|
};
|
|
421
427
|
return y;
|
|
422
428
|
})
|
|
@@ -2444,6 +2450,10 @@ var AchCustomSectionType;
|
|
|
2444
2450
|
AchCustomSectionType[AchCustomSectionType["MINI_GAMES"] = 5] = "MINI_GAMES";
|
|
2445
2451
|
AchCustomSectionType[AchCustomSectionType["MISSION_CUSTOM_LAYOUT"] = 6] = "MISSION_CUSTOM_LAYOUT";
|
|
2446
2452
|
AchCustomSectionType[AchCustomSectionType["MATCH_X"] = 7] = "MATCH_X";
|
|
2453
|
+
AchCustomSectionType[AchCustomSectionType["QUIZ"] = 8] = "QUIZ";
|
|
2454
|
+
AchCustomSectionType[AchCustomSectionType["REDIRECT_LINK"] = 9] = "REDIRECT_LINK";
|
|
2455
|
+
AchCustomSectionType[AchCustomSectionType["LOOTBOX_WEEKLY"] = 10] = "LOOTBOX_WEEKLY";
|
|
2456
|
+
AchCustomSectionType[AchCustomSectionType["LOOTBOX_CALENDAR_DAYS"] = 11] = "LOOTBOX_CALENDAR_DAYS";
|
|
2447
2457
|
})(AchCustomSectionType || (AchCustomSectionType = {}));
|
|
2448
2458
|
var AchCustomLayoutTheme;
|
|
2449
2459
|
(function (AchCustomLayoutTheme) {
|