@smartico/public-api 0.0.114 → 0.0.116

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.
@@ -0,0 +1,3 @@
1
+ import { ProtocolRequest } from "../Base/ProtocolRequest";
2
+ export interface GetAchievementsUserInfoRequest extends ProtocolRequest {
3
+ }
@@ -0,0 +1,5 @@
1
+ import { ProtocolResponse } from "../Base/ProtocolResponse";
2
+ export interface GetAchievementsUserInfoResponse extends ProtocolResponse {
3
+ level_counter_1?: number;
4
+ level_counter_2?: number;
5
+ }
@@ -3,6 +3,7 @@ import { SAWWinSoundType } from "./SAWWinSoundType";
3
3
  export interface SAWPrizeUI {
4
4
  position?: number;
5
5
  name: string;
6
+ name_original: string;
6
7
  aknowledge_message: string;
7
8
  sectors: number[];
8
9
  acknowledge_type: SAWAcknowledgeType;
@@ -11,7 +11,8 @@ import { GetTournamentInfoResponse, GetTournamentsResponse, TournamentRegisterRe
11
11
  import { LeaderBoardDetails, LeaderBoardPeriodType } from "./Leaderboard";
12
12
  import { GetLevelMapResponse } from "./Level";
13
13
  import { WSAPI } from "./WSAPI/WSAPI";
14
- import { TInboxMessage, TInboxMessageBody, TLevel, TMiniGameTemplate, TMissionOrBadge, TStoreCategory, TAchCategory, TStoreItem, TTournament, TTournamentDetailed, LeaderBoardDetailsT } from "./WSAPI/WSAPITypes";
14
+ import { TInboxMessage, TInboxMessageBody, TLevel, TMiniGameTemplate, TMissionOrBadge, TStoreCategory, TAchCategory, TStoreItem, TTournament, TTournamentDetailed, LeaderBoardDetailsT, UserLevelExtraCountersT } from "./WSAPI/WSAPITypes";
15
+ import { GetAchievementsUserInfoResponse } from "./Core/GetAchievementsUserInfoResponse";
15
16
  interface Tracker {
16
17
  label_api_key: string;
17
18
  userPublicProps: any;
@@ -68,6 +69,8 @@ declare class SmarticoAPI {
68
69
  storeGetCategoriesT(user_ext_id: string): Promise<TStoreCategory[]>;
69
70
  missionsGetItems(user_ext_id: string): Promise<GetAchievementMapResponse>;
70
71
  missionsGetItemsT(user_ext_id: string): Promise<TMissionOrBadge[]>;
72
+ getUserGamificationInfo(user_ext_id: string): Promise<GetAchievementsUserInfoResponse>;
73
+ getUserGamificationInfoT(user_ext_id: string): Promise<UserLevelExtraCountersT>;
71
74
  achGetCategories(user_ext_id: string): Promise<GetAchCategoriesResponse>;
72
75
  achGetCategoriesT(user_ext_id: string): Promise<TAchCategory[]>;
73
76
  badgetsGetItems(user_ext_id: string): Promise<GetAchievementMapResponse>;
@@ -1,5 +1,5 @@
1
1
  import { SmarticoAPI } from "../SmarticoAPI";
2
- import { InboxMarkMessageAction, LeaderBoardDetailsT, TAchCategory, TBuyStoreItemResult, TGetTranslations, TInboxMessage, TInboxMessageBody, TLevel, TMiniGamePlayResult, TMiniGameTemplate, TMissionOptInResult, TMissionOrBadge, TStoreCategory, TStoreItem, TTournament, TTournamentDetailed, TTournamentRegistrationResult, TUserProfile } from "./WSAPITypes";
2
+ import { InboxMarkMessageAction, LeaderBoardDetailsT, TAchCategory, TBuyStoreItemResult, TGetTranslations, TInboxMessage, TInboxMessageBody, TLevel, TMiniGamePlayResult, TMiniGameTemplate, TMissionOptInResult, TMissionOrBadge, TStoreCategory, TStoreItem, TTournament, TTournamentDetailed, TTournamentRegistrationResult, TUserProfile, UserLevelExtraCountersT } from "./WSAPITypes";
3
3
  import { LeaderBoardPeriodType } from "src/Leaderboard";
4
4
  /** @group General API */
5
5
  export declare class WSAPI {
@@ -22,6 +22,8 @@ export declare class WSAPI {
22
22
  }): Promise<TMissionOrBadge[]>;
23
23
  /** Returns all the badges available the current user */
24
24
  getBadges(): Promise<TMissionOrBadge[]>;
25
+ /** Returns the extra counters for the current user level */
26
+ getUserLevelExtraCounters(): Promise<UserLevelExtraCountersT>;
25
27
  /** Returns all the store items available the current user */
26
28
  getStoreItems(): Promise<TStoreItem[]>;
27
29
  /** Buy the specific shop item by item_id. Returns the err_code.*/
@@ -527,4 +527,10 @@ export interface LeaderBoardUserT {
527
527
  /** The indicator if the participant is current user */
528
528
  is_me: boolean;
529
529
  }
530
+ export interface UserLevelExtraCountersT {
531
+ /** The counter of 1st metric used to reach the level. */
532
+ level_counter_1?: number;
533
+ /** The counter of 2nd metric used to reach the level. */
534
+ level_counter_2?: number;
535
+ }
530
536
  export {};