taxtank-core 0.33.32 → 0.33.34
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/public-api.mjs +6 -5
- package/esm2022/src/lib/collections/sole/sole-invoice-item.collection.mjs +1 -1
- package/esm2022/src/lib/collections/sole/sole-invoice.collection.mjs +11 -1
- package/esm2022/src/lib/collections/tax-summary/report-item.collection.mjs +1 -1
- package/esm2022/src/lib/collections/transaction/transaction.collection.mjs +2 -2
- package/esm2022/src/lib/db/Enums/index.mjs +2 -1
- package/esm2022/src/lib/db/Enums/sole/index.mjs +6 -0
- package/esm2022/src/lib/db/Enums/sole/sole-depreciation-method.enum.mjs +6 -0
- package/esm2022/src/lib/db/Enums/sole/sole-invoice-state.enum.mjs +7 -0
- package/esm2022/src/lib/db/Enums/sole/sole-invoice-statuses.enum.mjs +7 -0
- package/esm2022/src/lib/db/Enums/sole/sole-invoice-tax-type.enum.mjs +7 -0
- package/esm2022/src/lib/db/Enums/{sole-invoice-template-tax-type.enum.mjs → sole/sole-invoice-template-tax-type.enum.mjs} +1 -1
- package/esm2022/src/lib/db/Enums/user-event-type-type.enum.mjs +2 -1
- package/esm2022/src/lib/db/Models/abstract-model.mjs +4 -1
- package/esm2022/src/lib/db/Models/client/client-details.mjs +1 -1
- package/esm2022/src/lib/db/Models/sole/sole-depreciation-method.mjs +1 -1
- package/esm2022/src/lib/db/Models/sole/sole-invoice-template.mjs +1 -1
- package/esm2022/src/lib/db/Models/sole/sole-invoice.mjs +1 -1
- package/esm2022/src/lib/forms/sole/sole-invoice.form.mjs +2 -2
- package/esm2022/src/lib/models/chart/chart-data.mjs +1 -1
- package/esm2022/src/lib/models/sole/sole-depreciation-method.mjs +2 -2
- package/esm2022/src/lib/models/sole/sole-invoice-item.mjs +2 -2
- package/esm2022/src/lib/models/sole/sole-invoice-template.mjs +2 -2
- package/esm2022/src/lib/models/sole/sole-invoice.mjs +2 -3
- package/esm2022/src/lib/services/http/holding/holding.service.mjs +11 -2
- package/esm2022/src/lib/services/http/property/property-category-movement/property-category-movement.service.mjs +2 -1
- package/esm2022/src/lib/services/http/property/property.service.mjs +1 -1
- package/esm2022/src/lib/services/http/sole/sole-invoice/sole-invoice.service.mjs +1 -1
- package/esm2022/src/lib/services/http/transaction/transaction.service.mjs +10 -3
- package/esm2022/src/lib/services/http/user/user-messages.enum.mjs +3 -1
- package/esm2022/src/lib/services/http/user/user.service.mjs +15 -2
- package/esm2022/src/lib/services/http/youtube/youtube.service.mjs +1 -1
- package/fesm2022/taxtank-core.mjs +78 -31
- package/fesm2022/taxtank-core.mjs.map +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +5 -4
- package/src/lib/collections/sole/sole-invoice-item.collection.d.ts +1 -1
- package/src/lib/collections/sole/sole-invoice.collection.d.ts +2 -0
- package/src/lib/collections/tax-summary/report-item.collection.d.ts +2 -2
- package/src/lib/db/Enums/index.d.ts +1 -0
- package/src/lib/db/Enums/sole/index.d.ts +5 -0
- package/src/lib/db/Enums/sole/sole-invoice-state.enum.d.ts +5 -0
- package/src/lib/db/Enums/user-event-type-type.enum.d.ts +2 -1
- package/src/lib/db/Models/abstract-model.d.ts +1 -0
- package/src/lib/db/Models/client/client-details.d.ts +2 -1
- package/src/lib/db/Models/sole/sole-depreciation-method.d.ts +1 -1
- package/src/lib/db/Models/sole/sole-invoice-template.d.ts +1 -1
- package/src/lib/db/Models/sole/sole-invoice.d.ts +1 -2
- package/src/lib/models/sole/sole-invoice-item.d.ts +1 -1
- package/src/lib/models/sole/sole-invoice-template.d.ts +1 -1
- package/src/lib/models/sole/sole-invoice.d.ts +1 -2
- package/src/lib/services/http/holding/holding.service.d.ts +1 -0
- package/src/lib/services/http/sole/sole-invoice/sole-invoice.service.d.ts +1 -1
- package/src/lib/services/http/transaction/transaction.service.d.ts +5 -1
- package/src/lib/services/http/user/user-messages.enum.d.ts +3 -1
- package/src/lib/services/http/user/user.service.d.ts +1 -0
- package/src/lib/services/http/youtube/youtube.service.d.ts +1 -1
- package/esm2022/src/lib/db/Enums/sole-depreciation-method.enum.mjs +0 -6
- package/esm2022/src/lib/db/Enums/sole-invoice-statuses.enum.mjs +0 -7
- package/esm2022/src/lib/db/Enums/sole-invoice-tax-type.enum.mjs +0 -7
- /package/src/lib/db/Enums/{sole-depreciation-method.enum.d.ts → sole/sole-depreciation-method.enum.d.ts} +0 -0
- /package/src/lib/db/Enums/{sole-invoice-statuses.enum.d.ts → sole/sole-invoice-statuses.enum.d.ts} +0 -0
- /package/src/lib/db/Enums/{sole-invoice-tax-type.enum.d.ts → sole/sole-invoice-tax-type.enum.d.ts} +0 -0
- /package/src/lib/db/Enums/{sole-invoice-template-tax-type.enum.d.ts → sole/sole-invoice-template-tax-type.enum.d.ts} +0 -0
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
@@ -48,10 +48,11 @@ export * from './src/lib/db/Enums/salary-forecast-frequency.enum';
|
|
48
48
|
export * from './src/lib/db/Enums/service-notification-status.enum';
|
49
49
|
export * from './src/lib/db/Enums/service-notification-type.enum';
|
50
50
|
export * from './src/lib/db/Enums/setup-item-type.enum';
|
51
|
-
export * from './src/lib/db/Enums/sole-depreciation-method.enum';
|
52
|
-
export * from './src/lib/db/Enums/sole-invoice-statuses.enum';
|
53
|
-
export * from './src/lib/db/Enums/sole-invoice-tax-type.enum';
|
54
|
-
export * from './src/lib/db/Enums/sole-invoice-template-tax-type.enum';
|
51
|
+
export * from './src/lib/db/Enums/sole/sole-depreciation-method.enum';
|
52
|
+
export * from './src/lib/db/Enums/sole/sole-invoice-statuses.enum';
|
53
|
+
export * from './src/lib/db/Enums/sole/sole-invoice-tax-type.enum';
|
54
|
+
export * from './src/lib/db/Enums/sole/sole-invoice-template-tax-type.enum';
|
55
|
+
export * from './src/lib/db/Enums/sole/sole-invoice-state.enum';
|
55
56
|
export * from './src/lib/db/Enums/subscription/service-payment-status.enum';
|
56
57
|
export * from './src/lib/db/Enums/subscription/service-price-recurring-interval.enum';
|
57
58
|
export * from './src/lib/db/Enums/subscription/service-price-type.enum';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Collection } from '../collection';
|
2
2
|
import { SoleInvoiceItem } from '../../models';
|
3
|
-
import { SoleInvoiceTaxTypeEnum } from '../../db/Enums
|
3
|
+
import { SoleInvoiceTaxTypeEnum } from '../../db/Enums';
|
4
4
|
export declare class SoleInvoiceItemCollection extends Collection<SoleInvoiceItem> {
|
5
5
|
get gstItems(): this;
|
6
6
|
getTotalPrice(taxType: SoleInvoiceTaxTypeEnum, includeGST?: boolean): number;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { Collection } from '../collection';
|
2
2
|
import { BankTransaction, SoleInvoice, Transaction } from '../../models';
|
3
3
|
import { TransactionCollection } from '../transaction';
|
4
|
+
import { CollectionDictionary } from '../collection-dictionary';
|
4
5
|
export declare class SoleInvoiceCollection extends Collection<SoleInvoice> {
|
5
6
|
getOverdue(): this;
|
6
7
|
getPending(): this;
|
@@ -8,6 +9,7 @@ export declare class SoleInvoiceCollection extends Collection<SoleInvoice> {
|
|
8
9
|
getUnpaid(transactions: TransactionCollection): this;
|
9
10
|
getOpen(): this;
|
10
11
|
getInvoiceItemsIds(): number[];
|
12
|
+
groupByState(transactions: TransactionCollection): CollectionDictionary<SoleInvoiceCollection>;
|
11
13
|
getUnpaidAmount(transactions: TransactionCollection): number;
|
12
14
|
allocate(bankTransaction: BankTransaction, amount?: number): Transaction[];
|
13
15
|
}
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { Collection } from '../collection';
|
2
2
|
import { ReportItem } from '../../models/tax-summary/report-item';
|
3
|
-
import { TaxReturnCategoryListEnum } from '../../db/Enums
|
3
|
+
import { TaxReturnCategoryListEnum } from '../../db/Enums';
|
4
4
|
import { ReportItemDetails } from '../../models/tax-summary/report-item-details';
|
5
5
|
import { TaxSummarySectionEnum } from '../../db/Enums/tax-summary-section.enum';
|
6
|
-
import { IncomeSource } from '../../models
|
6
|
+
import { IncomeSource } from '../../models';
|
7
7
|
/**
|
8
8
|
* collection for tax return category items
|
9
9
|
*/
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { User } from '../user/user';
|
2
|
-
import { SoleDepreciationMethodEnum } from '../../Enums
|
2
|
+
import { SoleDepreciationMethodEnum } from '../../Enums';
|
3
3
|
import { AbstractModel } from '../abstract-model';
|
4
4
|
export declare class SoleDepreciationMethod extends AbstractModel {
|
5
5
|
method?: SoleDepreciationMethodEnum;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { SoleBusiness } from './sole-business';
|
2
2
|
import { BankAccount } from '../bank/bank-account';
|
3
3
|
import { AbstractModel } from '../abstract-model';
|
4
|
-
import { SoleInvoiceTemplateTaxTypeEnum } from '../../Enums
|
4
|
+
import { SoleInvoiceTemplateTaxTypeEnum } from '../../Enums';
|
5
5
|
export declare class SoleInvoiceTemplate extends AbstractModel {
|
6
6
|
name?: string;
|
7
7
|
taxType?: SoleInvoiceTemplateTaxTypeEnum;
|
@@ -2,8 +2,7 @@ import { User } from '../user/user';
|
|
2
2
|
import { SoleInvoiceItem } from './sole-invoice-item';
|
3
3
|
import { SoleContact } from './sole-contact';
|
4
4
|
import { AbstractModel } from '../abstract-model';
|
5
|
-
import { SoleInvoiceStatusesEnum } from '../../Enums
|
6
|
-
import { SoleInvoiceTaxTypeEnum } from '../../Enums/sole-invoice-tax-type.enum';
|
5
|
+
import { SoleInvoiceStatusesEnum, SoleInvoiceTaxTypeEnum } from '../../Enums';
|
7
6
|
import { SoleBusiness } from './sole-business';
|
8
7
|
import { BankAccount } from '../bank/bank-account';
|
9
8
|
export declare class SoleInvoice extends AbstractModel {
|
@@ -2,7 +2,7 @@ import { SoleInvoiceItem as SoleInvoiceItemBase } from '../../db/Models/sole/sol
|
|
2
2
|
import { SoleInvoice } from './sole-invoice';
|
3
3
|
import { ChartAccounts } from '../chart-accounts';
|
4
4
|
import { Transaction } from '../transaction';
|
5
|
-
import { SoleInvoiceTaxTypeEnum } from '../../db/Enums
|
5
|
+
import { SoleInvoiceTaxTypeEnum } from '../../db/Enums';
|
6
6
|
export declare class SoleInvoiceItem extends SoleInvoiceItemBase {
|
7
7
|
invoice: SoleInvoice;
|
8
8
|
chartAccounts: ChartAccounts;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { SoleBusiness } from './sole-business';
|
2
2
|
import { BankAccount } from '../bank';
|
3
3
|
import { SoleInvoiceTemplate as SoleInvoiceTemplateBase } from '../../db/Models/sole/sole-invoice-template';
|
4
|
-
import { SoleInvoiceTemplateTaxTypeEnum } from '../../db/Enums
|
4
|
+
import { SoleInvoiceTemplateTaxTypeEnum } from '../../db/Enums';
|
5
5
|
export declare class SoleInvoiceTemplate extends SoleInvoiceTemplateBase {
|
6
6
|
business: SoleBusiness;
|
7
7
|
bankAccount: BankAccount;
|
@@ -3,9 +3,8 @@ import { User } from '../user';
|
|
3
3
|
import { SoleBusiness } from './sole-business';
|
4
4
|
import { SoleInvoiceItem } from './sole-invoice-item';
|
5
5
|
import { SoleContact } from './sole-contact';
|
6
|
-
import { SoleInvoiceStatusesEnum } from '../../db/Enums
|
6
|
+
import { SoleInvoiceStatusesEnum, SoleInvoiceTaxTypeEnum } from '../../db/Enums';
|
7
7
|
import { BankAccount, BankTransaction } from '../bank';
|
8
|
-
import { SoleInvoiceTaxTypeEnum } from '../../db/Enums/sole-invoice-tax-type.enum';
|
9
8
|
import { SoleInvoiceItemCollection, TransactionCollection } from '../../collections';
|
10
9
|
import { Transaction } from '../transaction';
|
11
10
|
export declare class SoleInvoice extends SoleInvoiceBase {
|
@@ -14,6 +14,7 @@ export declare class HoldingService extends RestService<HoldingBase, Holding, Ho
|
|
14
14
|
roles: UserRolesEnum[];
|
15
15
|
constructor(environment: any);
|
16
16
|
listenEvents(): void;
|
17
|
+
private listenNotifications;
|
17
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<HoldingService, never>;
|
18
19
|
static ɵprov: i0.ɵɵInjectableDeclaration<HoldingService>;
|
19
20
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { RestService } from '../../rest';
|
2
2
|
import { SoleInvoice as SoleInvoiceBase } from '../../../../db/Models/sole/sole-invoice';
|
3
3
|
import { SoleInvoice } from '../../../../models';
|
4
|
-
import { SoleInvoiceStatusesEnum } from '../../../../db/Enums
|
4
|
+
import { SoleInvoiceStatusesEnum } from '../../../../db/Enums';
|
5
5
|
import { Observable } from 'rxjs';
|
6
6
|
import { UserRolesEnum } from 'taxtank-core/common';
|
7
7
|
import { SoleInvoiceCollection } from '../../../../collections';
|
@@ -23,7 +23,11 @@ export declare class TransactionService extends RestService<TransactionBase, Tra
|
|
23
23
|
*/
|
24
24
|
listenEvents(): void;
|
25
25
|
/**
|
26
|
-
*
|
26
|
+
* current year transactions + previous year sole invoice transactions (needed whe invoice part paid in previous year)
|
27
|
+
*/
|
28
|
+
getAll(): Observable<Transaction[]>;
|
29
|
+
/**
|
30
|
+
* current year transactions
|
27
31
|
*/
|
28
32
|
get(): Observable<Transaction[]>;
|
29
33
|
/**
|
@@ -2,5 +2,7 @@ export declare enum UserMessagesEnum {
|
|
2
2
|
PHOTO_UPDATED = "Profile photo updated",
|
3
3
|
USER_DATA_UPDATED = "Data was successfully updated!",
|
4
4
|
CLIENT_DETAILS_UPDATED = "Client details updated",
|
5
|
-
DELETE = "Closing your account will mean you won't be able to access this account again. It will also revoke consent for all banks and delete all transaction data. This can not be undone."
|
5
|
+
DELETE = "Closing your account will mean you won't be able to access this account again. It will also revoke consent for all banks and delete all transaction data. This can not be undone.",
|
6
|
+
SHARESIGHT_CONNECTED = "Sharesight connected",
|
7
|
+
SHARESIGHT_ERROR = "Sharesight connection error"
|
6
8
|
}
|
@@ -34,6 +34,7 @@ export declare class UserService extends RestService<UserBase, User, Collection<
|
|
34
34
|
deactivate(user: User): Observable<User>;
|
35
35
|
updatePhoto(photo: FormData): Observable<void>;
|
36
36
|
createBasiq(): Observable<string>;
|
37
|
+
connectSharesight(code: string): Observable<void>;
|
37
38
|
skipSetupItem(item: AccountSetupItem): Observable<User>;
|
38
39
|
/**
|
39
40
|
* Update cache when user's service subscription is updated
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
2
2
|
import { Observable } from 'rxjs';
|
3
3
|
import { YoutubeVideoInterface } from './youtube-video.interface';
|
4
|
-
import { User } from '../../../models
|
4
|
+
import { User } from '../../../models';
|
5
5
|
import * as i0 from "@angular/core";
|
6
6
|
export declare class YoutubeService {
|
7
7
|
private http;
|
@@ -1,6 +0,0 @@
|
|
1
|
-
export var SoleDepreciationMethodEnum;
|
2
|
-
(function (SoleDepreciationMethodEnum) {
|
3
|
-
SoleDepreciationMethodEnum[SoleDepreciationMethodEnum["SBP"] = 1] = "SBP";
|
4
|
-
SoleDepreciationMethodEnum[SoleDepreciationMethodEnum["DEPRECIATION"] = 2] = "DEPRECIATION";
|
5
|
-
})(SoleDepreciationMethodEnum || (SoleDepreciationMethodEnum = {}));
|
6
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic29sZS1kZXByZWNpYXRpb24tbWV0aG9kLmVudW0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZGIvRW51bXMvc29sZS1kZXByZWNpYXRpb24tbWV0aG9kLmVudW0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFOLElBQVksMEJBR1g7QUFIRCxXQUFZLDBCQUEwQjtJQUNwQyx5RUFBTyxDQUFBO0lBQ1AsMkZBQWdCLENBQUE7QUFDbEIsQ0FBQyxFQUhXLDBCQUEwQixLQUExQiwwQkFBMEIsUUFHckMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZW51bSBTb2xlRGVwcmVjaWF0aW9uTWV0aG9kRW51bSB7XG4gIFNCUCA9IDEsXG4gIERFUFJFQ0lBVElPTiA9IDIsXG59XG4iXX0=
|
@@ -1,7 +0,0 @@
|
|
1
|
-
export var SoleInvoiceStatusesEnum;
|
2
|
-
(function (SoleInvoiceStatusesEnum) {
|
3
|
-
SoleInvoiceStatusesEnum[SoleInvoiceStatusesEnum["CANCELED"] = 0] = "CANCELED";
|
4
|
-
SoleInvoiceStatusesEnum[SoleInvoiceStatusesEnum["DRAFT"] = 1] = "DRAFT";
|
5
|
-
SoleInvoiceStatusesEnum[SoleInvoiceStatusesEnum["OPEN"] = 2] = "OPEN";
|
6
|
-
})(SoleInvoiceStatusesEnum || (SoleInvoiceStatusesEnum = {}));
|
7
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic29sZS1pbnZvaWNlLXN0YXR1c2VzLmVudW0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZGIvRW51bXMvc29sZS1pbnZvaWNlLXN0YXR1c2VzLmVudW0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFOLElBQVksdUJBSVg7QUFKRCxXQUFZLHVCQUF1QjtJQUNsQyw2RUFBWSxDQUFBO0lBQ1osdUVBQVMsQ0FBQTtJQUNULHFFQUFRLENBQUE7QUFDVCxDQUFDLEVBSlcsdUJBQXVCLEtBQXZCLHVCQUF1QixRQUlsQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBlbnVtIFNvbGVJbnZvaWNlU3RhdHVzZXNFbnVtIHtcblx0Q0FOQ0VMRUQgPSAwLFxuXHREUkFGVCA9IDEsXG5cdE9QRU4gPSAyXG59XG4iXX0=
|
@@ -1,7 +0,0 @@
|
|
1
|
-
export var SoleInvoiceTaxTypeEnum;
|
2
|
-
(function (SoleInvoiceTaxTypeEnum) {
|
3
|
-
SoleInvoiceTaxTypeEnum[SoleInvoiceTaxTypeEnum["TAX_EXCLUSIVE"] = 0] = "TAX_EXCLUSIVE";
|
4
|
-
SoleInvoiceTaxTypeEnum[SoleInvoiceTaxTypeEnum["TAX_INCLUSIVE"] = 1] = "TAX_INCLUSIVE";
|
5
|
-
SoleInvoiceTaxTypeEnum[SoleInvoiceTaxTypeEnum["NO_TAX"] = 2] = "NO_TAX";
|
6
|
-
})(SoleInvoiceTaxTypeEnum || (SoleInvoiceTaxTypeEnum = {}));
|
7
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic29sZS1pbnZvaWNlLXRheC10eXBlLmVudW0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZGIvRW51bXMvc29sZS1pbnZvaWNlLXRheC10eXBlLmVudW0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFOLElBQVksc0JBSVg7QUFKRCxXQUFZLHNCQUFzQjtJQUNoQyxxRkFBaUIsQ0FBQTtJQUNqQixxRkFBaUIsQ0FBQTtJQUNqQix1RUFBVSxDQUFBO0FBQ1osQ0FBQyxFQUpXLHNCQUFzQixLQUF0QixzQkFBc0IsUUFJakMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZW51bSBTb2xlSW52b2ljZVRheFR5cGVFbnVtIHtcbiAgVEFYX0VYQ0xVU0lWRSA9IDAsXG4gIFRBWF9JTkNMVVNJVkUgPSAxLFxuICBOT19UQVggPSAyLFxufVxuIl19
|
File without changes
|
/package/src/lib/db/Enums/{sole-invoice-statuses.enum.d.ts → sole/sole-invoice-statuses.enum.d.ts}
RENAMED
File without changes
|
/package/src/lib/db/Enums/{sole-invoice-tax-type.enum.d.ts → sole/sole-invoice-tax-type.enum.d.ts}
RENAMED
File without changes
|
File without changes
|