taxtank-core 0.32.94 → 0.32.95
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/db/Models/firm/message-document.mjs +1 -1
- package/esm2022/lib/forms/chat/chat-filter.form.mjs +29 -0
- package/esm2022/lib/forms/chat/index.mjs +2 -0
- package/esm2022/lib/forms/index.mjs +3 -1
- package/esm2022/lib/forms/tax-review/index.mjs +3 -0
- package/esm2022/lib/forms/tax-review/tax-review-filter-status.enum.mjs +6 -0
- package/esm2022/lib/forms/tax-review/tax-review-filter.form.mjs +42 -0
- package/esm2022/lib/models/chat/chat.mjs +1 -1
- package/esm2022/lib/models/chat/message-document.mjs +4 -4
- package/esm2022/lib/models/file/file.mjs +4 -1
- package/esm2022/lib/models/tax-review/tax-review.mjs +8 -2
- package/esm2022/public-api.mjs +1 -2
- package/fesm2022/taxtank-core.mjs +80 -11
- package/fesm2022/taxtank-core.mjs.map +1 -1
- package/lib/db/Models/firm/message-document.d.ts +2 -6
- package/lib/forms/chat/chat-filter.form.d.ts +17 -0
- package/lib/forms/chat/index.d.ts +1 -0
- package/lib/forms/index.d.ts +2 -0
- package/lib/forms/tax-review/index.d.ts +2 -0
- package/lib/forms/tax-review/tax-review-filter-status.enum.d.ts +4 -0
- package/lib/forms/tax-review/tax-review-filter.form.d.ts +20 -0
- package/lib/models/chat/message-document.d.ts +4 -4
- package/lib/models/file/file.d.ts +1 -0
- package/lib/models/tax-review/tax-review.d.ts +3 -1
- package/package.json +1 -1
- package/public-api.d.ts +0 -1
- package/esm2022/lib/functions/tax-review-filter-predicate.mjs +0 -10
- package/lib/functions/tax-review-filter-predicate.d.ts +0 -7
@@ -2,14 +2,10 @@ import { Chat } from './chat';
|
|
2
2
|
import { Message } from './message';
|
3
3
|
import { User } from '../user/user';
|
4
4
|
import { AbstractModel } from '../abstract-model';
|
5
|
+
import { File } from '../file';
|
5
6
|
export declare class MessageDocument extends AbstractModel {
|
6
|
-
name?: string;
|
7
|
-
originalName?: string;
|
8
|
-
size?: number;
|
9
|
-
mimeType?: string;
|
10
|
-
createdAt?: Date;
|
11
|
-
updatedAt?: Date;
|
12
7
|
chat?: Chat;
|
13
8
|
message?: Message;
|
14
9
|
user?: User;
|
10
|
+
file: File;
|
15
11
|
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
2
|
+
import { ControlsInterface } from '../abstract.form';
|
3
|
+
import { ChatCollection } from '../../collections';
|
4
|
+
import { IEventListener } from '../../interfaces';
|
5
|
+
import { ReplaySubject } from 'rxjs';
|
6
|
+
import { Chat } from '../../models';
|
7
|
+
interface IChatFilterControls extends ControlsInterface {
|
8
|
+
query: FormControl<string>;
|
9
|
+
myChats: FormControl<boolean>;
|
10
|
+
}
|
11
|
+
export declare class ChatFilterForm extends FormGroup<IChatFilterControls> implements IEventListener {
|
12
|
+
private collection;
|
13
|
+
dataChanges: ReplaySubject<Chat[]>;
|
14
|
+
constructor(collection: ChatCollection);
|
15
|
+
listenEvents(): void;
|
16
|
+
}
|
17
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './chat-filter.form';
|
package/lib/forms/index.d.ts
CHANGED
@@ -0,0 +1,20 @@
|
|
1
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
2
|
+
import { ControlsInterface } from '../abstract.form';
|
3
|
+
import { TaxReviewCollection } from '../../collections';
|
4
|
+
import { IEventListener } from '../../interfaces';
|
5
|
+
import { TaxReviewFilterStatusEnum } from './tax-review-filter-status.enum';
|
6
|
+
import { ReplaySubject } from 'rxjs';
|
7
|
+
import { TaxReview } from '../../models/tax-review/tax-review';
|
8
|
+
interface ITaxReviewFilterControls extends ControlsInterface {
|
9
|
+
query: FormControl<string>;
|
10
|
+
dateFrom: FormControl<Date>;
|
11
|
+
dateTo: FormControl<Date>;
|
12
|
+
status: FormControl<TaxReviewFilterStatusEnum>;
|
13
|
+
}
|
14
|
+
export declare class TaxReviewFilterForm extends FormGroup<ITaxReviewFilterControls> implements IEventListener {
|
15
|
+
private collection;
|
16
|
+
dataChanges: ReplaySubject<TaxReview[]>;
|
17
|
+
constructor(collection: TaxReviewCollection);
|
18
|
+
listenEvents(): void;
|
19
|
+
}
|
20
|
+
export {};
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { MessageDocument as MessageDocumentBase } from '../../db/Models/firm/message-document';
|
2
|
-
import { IAsset } from '../../interfaces
|
3
|
-
import { AssetEntityTypeEnum } from '../../interfaces
|
4
|
-
import { AssetTypeEnum } from '../../interfaces
|
5
|
-
import { User } from '../user
|
2
|
+
import { IAsset } from '../../interfaces';
|
3
|
+
import { AssetEntityTypeEnum } from '../../interfaces';
|
4
|
+
import { AssetTypeEnum } from '../../interfaces';
|
5
|
+
import { User } from '../user';
|
6
6
|
import { AppFile } from '../file';
|
7
7
|
export declare class MessageDocument extends MessageDocumentBase implements IAsset {
|
8
8
|
entityType: AssetEntityTypeEnum;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { TaxReview as TaxReviewBase } from '../../db/Models/firm/accountant/tax-review';
|
2
2
|
import { TaxReviewStatusEnum } from '../../db/Enums/tax-review-status.enum';
|
3
|
-
import { User } from '../user
|
3
|
+
import { User } from '../user';
|
4
4
|
export declare class TaxReview extends TaxReviewBase {
|
5
5
|
client: User;
|
6
6
|
employee: User;
|
@@ -49,4 +49,6 @@ export declare class TaxReview extends TaxReviewBase {
|
|
49
49
|
* If tax review is active
|
50
50
|
*/
|
51
51
|
isActive(): boolean;
|
52
|
+
get clientFullName(): string;
|
53
|
+
get employeeFullName(): string;
|
52
54
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
@@ -173,7 +173,6 @@ export * from './lib/functions/enum-to-list';
|
|
173
173
|
export * from './lib/functions/get-doc-icon';
|
174
174
|
export * from './lib/functions/mat-options-functions';
|
175
175
|
export * from './lib/functions/mat-sort-options';
|
176
|
-
export * from './lib/functions/tax-review-filter-predicate';
|
177
176
|
export * from './lib/functions/array';
|
178
177
|
/**
|
179
178
|
* Interceptors
|
@@ -1,10 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Filter predicate function to search inside TaxReview class fields
|
3
|
-
* @param data in which query will be searched
|
4
|
-
* @param filter: search query
|
5
|
-
*/
|
6
|
-
export function taxReviewFilterPredicate(data, filter) {
|
7
|
-
return data.client.fullName.toLowerCase().includes(filter) ||
|
8
|
-
data.employee.fullName.toLowerCase().includes(filter);
|
9
|
-
}
|
10
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGF4LXJldmlldy1maWx0ZXItcHJlZGljYXRlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL2Z1bmN0aW9ucy90YXgtcmV2aWV3LWZpbHRlci1wcmVkaWNhdGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUE7Ozs7R0FJRztBQUNILE1BQU0sVUFBVSx3QkFBd0IsQ0FBQyxJQUFlLEVBQUUsTUFBYztJQUN0RSxPQUFPLElBQUksQ0FBQyxNQUFNLENBQUMsUUFBUSxDQUFDLFdBQVcsRUFBRSxDQUFDLFFBQVEsQ0FBQyxNQUFNLENBQUM7UUFDeEQsSUFBSSxDQUFDLFFBQVEsQ0FBQyxRQUFRLENBQUMsV0FBVyxFQUFFLENBQUMsUUFBUSxDQUFDLE1BQU0sQ0FBQyxDQUFDO0FBQzFELENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBUYXhSZXZpZXcgfSBmcm9tICcuLi9tb2RlbHMvdGF4LXJldmlldy90YXgtcmV2aWV3JztcblxuLyoqXG4gKiBGaWx0ZXIgcHJlZGljYXRlIGZ1bmN0aW9uIHRvIHNlYXJjaCBpbnNpZGUgVGF4UmV2aWV3IGNsYXNzIGZpZWxkc1xuICogQHBhcmFtIGRhdGEgaW4gd2hpY2ggcXVlcnkgd2lsbCBiZSBzZWFyY2hlZFxuICogQHBhcmFtIGZpbHRlcjogc2VhcmNoIHF1ZXJ5XG4gKi9cbmV4cG9ydCBmdW5jdGlvbiB0YXhSZXZpZXdGaWx0ZXJQcmVkaWNhdGUoZGF0YTogVGF4UmV2aWV3LCBmaWx0ZXI6IHN0cmluZyk6IGJvb2xlYW4ge1xuICByZXR1cm4gZGF0YS5jbGllbnQuZnVsbE5hbWUudG9Mb3dlckNhc2UoKS5pbmNsdWRlcyhmaWx0ZXIpIHx8XG4gICAgZGF0YS5lbXBsb3llZS5mdWxsTmFtZS50b0xvd2VyQ2FzZSgpLmluY2x1ZGVzKGZpbHRlcik7XG59XG4iXX0=
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import { TaxReview } from '../models/tax-review/tax-review';
|
2
|
-
/**
|
3
|
-
* Filter predicate function to search inside TaxReview class fields
|
4
|
-
* @param data in which query will be searched
|
5
|
-
* @param filter: search query
|
6
|
-
*/
|
7
|
-
export declare function taxReviewFilterPredicate(data: TaxReview, filter: string): boolean;
|