taxtank-core 0.32.94 → 0.32.96
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/lib/services/http/bank/bank-connection/bank-connection.service.mjs +4 -3
- package/esm2022/lib/services/http/chat/message.service.mjs +2 -2
- package/esm2022/lib/services/http/subscription/service-payment-method/service-payment-method.service.mjs +2 -2
- package/esm2022/lib/services/http/subscription/service-subscription/subscription.service.mjs +2 -2
- package/esm2022/lib/services/report/property/property-transaction-report.service.mjs +3 -8
- package/esm2022/public-api.mjs +1 -2
- package/fesm2022/taxtank-core.mjs +87 -19
- 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/lib/services/http/bank/bank-connection/bank-connection.service.d.ts +1 -0
- package/lib/services/http/chat/message.service.d.ts +1 -0
- package/lib/services/http/subscription/service-payment-method/service-payment-method.service.d.ts +1 -0
- package/lib/services/http/subscription/service-subscription/subscription.service.d.ts +1 -0
- package/lib/services/report/property/property-transaction-report.service.d.ts +2 -6
- 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
|
}
|
@@ -15,6 +15,7 @@ export declare class BankConnectionService extends RestService<BankConnectionBas
|
|
15
15
|
collectionClass: typeof Collection;
|
16
16
|
endpointUri: string;
|
17
17
|
disabledMethods: RestMethod[];
|
18
|
+
mercureTopic: string;
|
18
19
|
constructor(environment: any);
|
19
20
|
listenEvents(): void;
|
20
21
|
/**
|
@@ -13,6 +13,7 @@ export declare class MessageService extends RestService<MessageBase, Message, Me
|
|
13
13
|
collectionClass: typeof MessageCollection;
|
14
14
|
endpointUri: string;
|
15
15
|
disabledMethods: RestMethod[];
|
16
|
+
mercureTopic: string;
|
16
17
|
constructor(environment: any);
|
17
18
|
listenEvents(): void;
|
18
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<MessageService, never>;
|
package/lib/services/http/subscription/service-payment-method/service-payment-method.service.d.ts
CHANGED
@@ -10,6 +10,7 @@ export declare class ServicePaymentMethodService extends RestService<ServicePaym
|
|
10
10
|
protected endpointUri: string;
|
11
11
|
collectionClass: typeof Collection;
|
12
12
|
modelClass: typeof ServicePaymentMethod;
|
13
|
+
mercureTopic: string;
|
13
14
|
constructor(environment: any);
|
14
15
|
listenEvents(): void;
|
15
16
|
/**
|
@@ -16,6 +16,7 @@ export declare class SubscriptionService extends RestService<ServiceSubscription
|
|
16
16
|
modelClass: typeof ServiceSubscription;
|
17
17
|
collectionClass: typeof ServiceSubscriptionCollection;
|
18
18
|
disabledMethods: RestMethod[];
|
19
|
+
mercureTopic: string;
|
19
20
|
constructor(http: HttpClient, environment: any);
|
20
21
|
listenEvents(): void;
|
21
22
|
startTrial(subscription: ServiceSubscription): Observable<ServiceSubscription>;
|
@@ -1,11 +1,7 @@
|
|
1
1
|
import { ChartAccountsService, DepreciationService, PropertyService, TransactionService } from '../../http';
|
2
2
|
import { Observable } from 'rxjs';
|
3
|
-
import { Property } from '../../../models
|
4
|
-
import { DepreciationCollection } from '../../../collections
|
5
|
-
import { CollectionDictionary } from '../../../collections/collection-dictionary';
|
6
|
-
import { TransactionCollection } from '../../../collections';
|
7
|
-
import { PropertyReportItemCollection } from '../../../collections/report/property/property-report-item.collection';
|
8
|
-
import { ChartAccountsCollection } from '../../../collections/chart-accounts.collection';
|
3
|
+
import { Property } from '../../../models';
|
4
|
+
import { ChartAccountsCollection, CollectionDictionary, DepreciationCollection, PropertyReportItemCollection, TransactionCollection } from '../../../collections';
|
9
5
|
import * as i0 from "@angular/core";
|
10
6
|
/**
|
11
7
|
* Service to handle Property transactions report items data (get income / expense report items, e.t.c.)
|
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGF4LXJldmlldy1maWx0ZXItcHJlZGljYXRlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvam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{ 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;
|