@smartico/public-api 0.0.309 → 0.0.310

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.309",
3
+ "version": "0.0.310",
4
4
  "description": "Smartico public API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -0,0 +1,53 @@
1
+
2
+ export enum AnalyticsInterfaceType {
3
+ Mobile = 0,
4
+ Desktop = 1,
5
+ }
6
+
7
+ export enum AnalyticsScreenNameId {
8
+ Overview = 1,
9
+ Missions = 2,
10
+ Leaderboards = 3,
11
+ Tournaments = 4,
12
+ TournamentLobby = 5,
13
+ Levels = 6,
14
+ LevelsMap = 7,
15
+ Badges = 8,
16
+ Bonuses = 9,
17
+ SpinAWheel = 10,
18
+ Store = 11,
19
+ StoreHistory = 12,
20
+ Inbox = 13,
21
+ MatchX = 14,
22
+ Quiz = 15,
23
+ Jackpots = 16,
24
+ Lootbox = 17,
25
+ CustomSection = 18,
26
+ ShortInbox = 19,
27
+ LootboxWeekdays = 20,
28
+ LootboxCalendarDays = 21,
29
+ TreasureHunt = 22,
30
+ LiquidSection = 23,
31
+
32
+ ModalMission = 31,
33
+ ModalLevel = 33,
34
+ ModalBadge = 33,
35
+ ModalStore = 34,
36
+ ModalBonus = 33,
37
+ ModalJackpot = 36,
38
+ ModalUsername = 37,
39
+ ModalAvatar = 38,
40
+ ModalQR = 39,
41
+ }
42
+
43
+ export enum AnalyticsTournamentsLobbySubScreenNameId {
44
+ General = 1,
45
+ Prizes = 2,
46
+ Players = 3,
47
+ RelatedGames = 4,
48
+ }
49
+
50
+ export enum AnalyticsInboxSubScreenNameId {
51
+ All = 1,
52
+ Favorite = 2,
53
+ }
@@ -0,0 +1,10 @@
1
+ import type { MissionCategory } from "../Missions";
2
+ import type { AnalyticsTournamentsLobbySubScreenNameId } from "./AnalyticStoreData";
3
+ import type { AnalyticsInboxSubScreenNameId } from "./AnalyticStoreData";
4
+
5
+ export type AnalyticSubNames =
6
+ | MissionCategory
7
+ | AnalyticsTournamentsLobbySubScreenNameId
8
+ | AnalyticsInboxSubScreenNameId
9
+ | number
10
+ | null;
@@ -0,0 +1,10 @@
1
+ import type { AnalyticsInterfaceType } from "./AnalyticStoreData";
2
+ import type { IAnalyticStoreData } from "./IAnalyticStoreData";
3
+
4
+ export interface IAnalyticRequestData extends IAnalyticStoreData {
5
+ user_id: number,
6
+ label_id: number,
7
+ brand_key: string,
8
+ user_ext_id: string,
9
+ interface_type: AnalyticsInterfaceType,
10
+ }
@@ -0,0 +1,10 @@
1
+ import type { AnalyticsScreenNameId } from "./AnalyticStoreData";
2
+ import type { AnalyticSubNames } from "./AnalyticSubNames";
3
+
4
+ export interface IAnalyticStoreData {
5
+ screen_name_id: AnalyticsScreenNameId;
6
+ screen_subname_id?: AnalyticSubNames;
7
+ custom_section_id?: number;
8
+ entity_id?: number;
9
+ create_date?: string;
10
+ }
@@ -0,0 +1,4 @@
1
+ export * from './AnalyticStoreData';
2
+ export * from './AnalyticSubNames';
3
+ export * from './IAnalyticRequestData';
4
+ export * from './IAnalyticStoreData';
@@ -0,0 +1,9 @@
1
+ export enum MissionCategory {
2
+ Overview,
3
+ // fake category for custom section overview missions, using in TSMap.to get correct missions
4
+ CustomSectionOverview,
5
+ Available,
6
+ Locked,
7
+ Completed,
8
+ Missed,
9
+ }
@@ -20,3 +20,4 @@ export * from './AchClaimPrizeResponse';
20
20
  export * from './AchievementAvailabilityStatus';
21
21
  export * from './GetRelatedAchTourResponse';
22
22
  export * from './MissionsUtils';
23
+ export * from './MissionCategory';
package/src/index.ts CHANGED
@@ -3,6 +3,7 @@ export * from './ILogger';
3
3
  export * from './SmarticoAPI';
4
4
  export * from './CookieStore';
5
5
 
6
+ export * from './Analytics';
6
7
  export * from './Core';
7
8
  export * from './UserProfile';
8
9
  export * from './Inbox';