taxtank-core 0.32.120 → 0.32.121
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/esm2022/lib/collections/chat/chat.collection.mjs +1 -19
- package/esm2022/lib/services/http/chat/chat.service.mjs +5 -5
- package/esm2022/lib/services/http/chat/message.service.mjs +5 -1
- package/fesm2022/taxtank-core.mjs +31 -43
- package/fesm2022/taxtank-core.mjs.map +1 -1
- package/lib/collections/chat/chat.collection.d.ts +1 -5
- package/lib/services/http/chat/message.service.d.ts +2 -0
- package/package.json +1 -1
@@ -1,9 +1,5 @@
|
|
1
1
|
import { Collection } from '../collection';
|
2
|
-
import { Chat
|
2
|
+
import { Chat } from '../../models';
|
3
3
|
export declare class ChatCollection extends Collection<Chat> {
|
4
|
-
/**
|
5
|
-
* Sort chats by last messages (newest first) + empty chats in the end
|
6
|
-
*/
|
7
|
-
getSortedByNewest(messages: Message[]): this;
|
8
4
|
getActive(): this;
|
9
5
|
}
|
@@ -3,6 +3,7 @@ import { Message } from '../../../models';
|
|
3
3
|
import { RestMethod, RestService } from '../rest';
|
4
4
|
import { MessageCollection } from '../../../collections';
|
5
5
|
import { IEventListener } from '../../../interfaces';
|
6
|
+
import { Observable } from 'rxjs';
|
6
7
|
import * as i0 from "@angular/core";
|
7
8
|
/**
|
8
9
|
* Service for work with messages
|
@@ -16,6 +17,7 @@ export declare class MessageService extends RestService<MessageBase, Message, Me
|
|
16
17
|
mercureTopic: string;
|
17
18
|
constructor(environment: any);
|
18
19
|
listenEvents(): void;
|
20
|
+
getUnreadChatsAmount(): Observable<number>;
|
19
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<MessageService, never>;
|
20
22
|
static ɵprov: i0.ɵɵInjectableDeclaration<MessageService>;
|
21
23
|
}
|