@smartico/public-api 0.0.297 → 0.0.299

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.
@@ -136,6 +136,7 @@ declare class SmarticoAPI {
136
136
  getTranslationsT(user_ext_id: string, lang_code: string, areas: TranslationArea[], cacheSec?: number): Promise<GetTranslationsResponse>;
137
137
  getInboxMessages(user_ext_id: string, limit: number, offset: number, starred_only: boolean, category_id?: InboxCategories): Promise<GetInboxMessagesResponse>;
138
138
  getInboxMessagesT(user_ext_id: string, from?: number, to?: number, favoriteOnly?: boolean, categoryId?: InboxCategories): Promise<TInboxMessage[]>;
139
+ getInboxUnreadCountT(user_ext_id: string): Promise<number>;
139
140
  getInboxMessageBody(messageGuid: string): Promise<InboxMessageBody>;
140
141
  getInboxMessageBodyT(messageGuid: string): Promise<TInboxMessageBody>;
141
142
  markInboxMessageRead(user_ext_id: string, messageGuid: string): Promise<MarkInboxMessageReadResponse>;
@@ -443,6 +443,15 @@ export declare class WSAPI {
443
443
  categoryId?: InboxCategories;
444
444
  onUpdate?: (data: TInboxMessage[]) => void;
445
445
  }): Promise<TInboxMessage[]>;
446
+ /**
447
+ * Returns inbox unread count.
448
+ *
449
+ * **Visitor mode: not supported**
450
+ * @param params
451
+ */
452
+ getInboxUnreadCount({ onUpdate }?: {
453
+ onUpdate?: (unread_count: number) => void;
454
+ }): Promise<number>;
446
455
  /**
447
456
  * Returns the message body of the specified message guid.
448
457
  *
@@ -490,6 +499,7 @@ export declare class WSAPI {
490
499
  private updateTournaments;
491
500
  private updateStorePurchasedItems;
492
501
  private updateStoreItems;
502
+ private updateInboxUnreadCount;
493
503
  private updateInboxMessages;
494
504
  private updateRaffles;
495
505
  private updateEntity;