@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
package/package.json
CHANGED
|
@@ -7,6 +7,8 @@ export enum SAWGameType {
|
|
|
7
7
|
GiftBox = 4,
|
|
8
8
|
PrizeDrop = 5,
|
|
9
9
|
Quiz = 6,
|
|
10
|
+
LootboxWeekdays = 7,
|
|
11
|
+
LootboxCalendarDays = 8,
|
|
10
12
|
}
|
|
11
13
|
|
|
12
14
|
export enum SAWGameTypeName {
|
|
@@ -16,6 +18,8 @@ export enum SAWGameTypeName {
|
|
|
16
18
|
GiftBox = 'giftbox',
|
|
17
19
|
PrizeDrop = 'prizedrop',
|
|
18
20
|
Quiz = 'quiz',
|
|
21
|
+
LootboxWeekdays = 'lootbox_weekdays',
|
|
22
|
+
LootboxCalendarDays = 'lootbox_calendar_days',
|
|
19
23
|
Unknown = 'unknown',
|
|
20
24
|
}
|
|
21
25
|
|
|
@@ -29,6 +33,8 @@ export const SAWGameTypeNamed = (type: SAWGameType): SAWGameTypeName => {
|
|
|
29
33
|
[SAWGameType.GiftBox]: SAWGameTypeName.GiftBox,
|
|
30
34
|
[SAWGameType.PrizeDrop]: SAWGameTypeName.PrizeDrop,
|
|
31
35
|
[SAWGameType.Quiz]: SAWGameTypeName.Quiz,
|
|
36
|
+
[SAWGameType.LootboxWeekdays]: SAWGameTypeName.LootboxWeekdays,
|
|
37
|
+
[SAWGameType.LootboxCalendarDays]: SAWGameTypeName.LootboxCalendarDays,
|
|
32
38
|
}[type] || SAWGameTypeName.Unknown
|
|
33
39
|
);
|
|
34
40
|
};
|
|
@@ -60,6 +60,8 @@ export const SAWTemplatesTransform = (items: SAWTemplate[]): TMiniGameTemplate[]
|
|
|
60
60
|
weekdays: p.weekdays,
|
|
61
61
|
active_from_ts: p.active_from_ts,
|
|
62
62
|
active_till_ts: p.active_till_ts,
|
|
63
|
+
active_from: p.active_from,
|
|
64
|
+
active_till: p.active_till,
|
|
63
65
|
};
|
|
64
66
|
return y;
|
|
65
67
|
}),
|
package/src/WSAPI/WSAPITypes.ts
CHANGED
|
@@ -49,10 +49,14 @@ export interface TMiniGamePrize {
|
|
|
49
49
|
wins_count?: number;
|
|
50
50
|
/* Number of days of week, when the prize can be available */
|
|
51
51
|
weekdays?: number[];
|
|
52
|
-
/* Holds time from which prize will become available, for the prizes that are targeted to be available from specific
|
|
52
|
+
/* Holds time from which prize will become available, for the prizes that are targeted to be available from specific time (UNIX timestamp)*/
|
|
53
53
|
active_from_ts?: number;
|
|
54
|
-
/* Holds time till which prize will become available, for the prizes that are targeted to be available from specific
|
|
54
|
+
/* Holds time till which prize will become available, for the prizes that are targeted to be available from specific time (UNIX timestamp) */
|
|
55
55
|
active_till_ts?: number;
|
|
56
|
+
/* Holds time from which prize will become available, for the prizes that are targeted to be available from specific date */
|
|
57
|
+
active_from?: string;
|
|
58
|
+
/* Holds time till which prize will become available, for the prizes that are targeted to be available from specific date */
|
|
59
|
+
active_till?: string;
|
|
56
60
|
}
|
|
57
61
|
|
|
58
62
|
/**
|