taxtank-core 0.31.49 → 0.31.51
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/esm2020/lib/collections/collection.mjs +2 -3
- package/esm2020/lib/db/Models/user/user.mjs +1 -1
- package/esm2020/lib/forms/document-folder/document.form.mjs +2 -2
- package/esm2020/lib/models/user/user.mjs +1 -1
- package/esm2020/lib/pipes/app-currency.pipe.mjs +2 -2
- package/esm2020/lib/services/http/chat/chat.service.mjs +6 -1
- package/esm2020/lib/services/http/rest/rest.service.mjs +15 -1
- package/esm2020/lib/services/http/user/user.service.mjs +3 -1
- package/fesm2015/taxtank-core.mjs +23 -3
- package/fesm2015/taxtank-core.mjs.map +1 -1
- package/fesm2020/taxtank-core.mjs +22 -3
- package/fesm2020/taxtank-core.mjs.map +1 -1
- package/lib/db/Models/user/user.d.ts +1 -1
- package/lib/services/http/chat/chat.service.d.ts +2 -0
- package/lib/services/http/rest/rest.service.d.ts +4 -0
- package/package.json +1 -1
|
@@ -11,7 +11,7 @@ import { PropertyShare } from '../property/property-share';
|
|
|
11
11
|
import { Address } from '../address';
|
|
12
12
|
import { Phone } from '../phone';
|
|
13
13
|
import { ClientMovement } from '../firm/client-movement';
|
|
14
|
-
import { ClientDetails } from '../client
|
|
14
|
+
import { ClientDetails } from '../client';
|
|
15
15
|
import { EmployeeDetails } from './employee-details';
|
|
16
16
|
import { SoleDetails } from '../sole/sole-details';
|
|
17
17
|
import { File } from '../file';
|
|
@@ -5,6 +5,7 @@ import { RestMethod, RestService } from '../rest';
|
|
|
5
5
|
import { Chat } from '../../../models';
|
|
6
6
|
import { ChatCollection } from '../../../collections';
|
|
7
7
|
import { IEventListener } from '../../../interfaces';
|
|
8
|
+
import { Observable } from 'rxjs';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
/**
|
|
10
11
|
* Service for work with chats
|
|
@@ -20,6 +21,7 @@ export declare class ChatService extends RestService<ChatBase, Chat, ChatCollect
|
|
|
20
21
|
isApiPlatform: boolean;
|
|
21
22
|
disabledMethods: RestMethod[];
|
|
22
23
|
constructor(http: HttpClient, eventDispatcherService: EventDispatcherService, environment: any, sseService: SseService);
|
|
24
|
+
get(path?: string): Observable<ChatCollection>;
|
|
23
25
|
/**
|
|
24
26
|
* Listen chats events
|
|
25
27
|
*/
|
|
@@ -106,6 +106,10 @@ export declare abstract class RestService<BaseModel, Model extends AbstractModel
|
|
|
106
106
|
* @param callback The function to be called when event triggered
|
|
107
107
|
*/
|
|
108
108
|
protected listenCSE(modelClass: typeof ObservableModel, methods: HttpMethod[], callback: Function): void;
|
|
109
|
+
/**
|
|
110
|
+
* check if user has subscription role to access api
|
|
111
|
+
*/
|
|
112
|
+
hasRoles(): boolean;
|
|
109
113
|
/**
|
|
110
114
|
* // @TODO Alex remove
|
|
111
115
|
* Method that call all listeners. Empty by default. Should be redefined by child services if required
|