@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartico/public-api",
3
- "version": "0.0.180",
3
+ "version": "0.0.182",
4
4
  "description": "Smartico public API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -6,6 +6,10 @@ export enum AchCustomSectionType {
6
6
  MINI_GAMES = 5,
7
7
  MISSION_CUSTOM_LAYOUT = 6,
8
8
  MATCH_X = 7,
9
+ QUIZ = 8,
10
+ REDIRECT_LINK = 9,
11
+ LOOTBOX_WEEKLY = 10,
12
+ LOOTBOX_CALENDAR_DAYS = 11,
9
13
  }
10
14
 
11
15
  export enum AchCustomLayoutTheme {
@@ -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
  }),
@@ -15,4 +15,6 @@ export interface SAWPrize {
15
15
  weekdays?: number[];
16
16
  active_from_ts?: number;
17
17
  active_till_ts?: number;
18
+ active_from?: string;
19
+ active_till?: string;
18
20
  }
@@ -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 date/time */
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 date/time */
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
  /**