@smartico/public-api 0.0.115 → 0.0.117

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
+ }
@@ -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.*/
@@ -394,6 +394,8 @@ export interface TMissionOrBadge {
394
394
  category_ids: number[];
395
395
  /** The T&C text for the missions */
396
396
  hint_text?: string;
397
+ /** Priority (or position) of the mission in the UI. Low value indicates higher position in the UI */
398
+ position?: number;
397
399
  }
398
400
  export interface AchRelatedGame {
399
401
  /** The ID of the related game */
@@ -527,4 +529,10 @@ export interface LeaderBoardUserT {
527
529
  /** The indicator if the participant is current user */
528
530
  is_me: boolean;
529
531
  }
532
+ export interface UserLevelExtraCountersT {
533
+ /** The counter of 1st metric used to reach the level. */
534
+ level_counter_1?: number;
535
+ /** The counter of 2nd metric used to reach the level. */
536
+ level_counter_2?: number;
537
+ }
530
538
  export {};