@smartico/public-api 0.0.298 → 0.0.300
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/dist/SmarticoAPI.d.ts +1 -0
- package/dist/WSAPI/WSAPI.d.ts +10 -0
- package/dist/index.js +174 -129
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +31 -7
- package/dist/index.modern.mjs.map +1 -1
- package/docs/classes/WSAPI.md +21 -0
- package/package.json +1 -1
- package/src/SmarticoAPI.ts +9 -0
- package/src/WSAPI/WSAPI.ts +31 -8
package/dist/SmarticoAPI.d.ts
CHANGED
|
@@ -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>;
|
package/dist/WSAPI/WSAPI.d.ts
CHANGED
|
@@ -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;
|