taxtank-core 0.32.25 → 0.32.27
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/document/document-folder.mjs +1 -1
- package/esm2022/lib/db/Models/document/folder-document.mjs +4 -0
- package/esm2022/lib/db/Models/index.mjs +2 -3
- package/esm2022/lib/interfaces/index.mjs +1 -2
- package/esm2022/lib/models/budget/budget.mjs +1 -4
- package/esm2022/lib/models/client/annual-client-details.mjs +1 -13
- package/esm2022/lib/models/client/client-income-types.mjs +1 -4
- package/esm2022/lib/models/depreciation/depreciation-capital-project.mjs +1 -7
- package/esm2022/lib/models/document/document-folder.mjs +1 -4
- package/esm2022/lib/models/document/document.mjs +3 -6
- package/esm2022/lib/models/endpoint/endpoints.const.mjs +5 -5
- package/esm2022/lib/models/holding/holding-sale.mjs +1 -4
- package/esm2022/lib/models/holding/holding-type.mjs +1 -4
- package/esm2022/lib/models/holding/holding.mjs +1 -4
- package/esm2022/lib/models/property/property-category-movement.mjs +1 -7
- package/esm2022/lib/models/property/property-category.mjs +1 -6
- package/esm2022/lib/models/property/property-document.mjs +1 -6
- package/esm2022/lib/models/property/property-forecast.mjs +1 -7
- package/esm2022/lib/models/property/property-sale/property-sale.mjs +1 -8
- package/esm2022/lib/models/property/property-share.mjs +1 -7
- package/esm2022/lib/models/property/property-subscription.mjs +1 -1
- package/esm2022/lib/models/property/property-valuation.mjs +1 -7
- package/esm2022/lib/models/property/property.mjs +1 -9
- package/esm2022/lib/models/sole/sole-business.mjs +1 -1
- package/esm2022/lib/models/user/user.mjs +1 -6
- package/esm2022/lib/models/user-event/user-event-setting.mjs +1 -4
- package/esm2022/lib/services/auth/auth.service.mjs +3 -8
- package/esm2022/lib/services/auth/jwt.service.mjs +1 -1
- package/esm2022/lib/services/http/bank/bank-connection/bank-connection.service.mjs +3 -3
- package/esm2022/lib/services/http/document/document.service.mjs +1 -1
- package/esm2022/lib/services/http/facebook/facebook.service.mjs +4 -7
- package/esm2022/lib/services/http/firm/client-invite/client-invite.service.mjs +3 -3
- package/esm2022/lib/services/http/google/google.service.mjs +1 -2
- package/esm2022/lib/services/http/property/property-category-movement/property-category-movement.service.mjs +2 -7
- package/esm2022/lib/services/http/property/property-document/property-document.service.mjs +8 -1
- package/esm2022/lib/services/http/property/property-share/property-share.service.mjs +2 -10
- package/esm2022/lib/services/http/property/property-valuation/property-valuation.service.mjs +2 -7
- package/esm2022/lib/services/http/property/property.service.mjs +2 -19
- package/esm2022/lib/services/http/rest/rest-old.service.mjs +1 -7
- package/esm2022/lib/services/http/rest/rest.service.mjs +9 -53
- package/esm2022/lib/services/http/subscription/service-subscription/subscription.service.mjs +2 -2
- package/esm2022/lib/services/http/user/financial-year/financial-year.service.mjs +4 -7
- package/esm2022/lib/services/http/user/user.service.mjs +11 -41
- package/fesm2022/taxtank-core.mjs +106 -314
- package/fesm2022/taxtank-core.mjs.map +1 -1
- package/lib/db/Models/document/{document.d.ts → folder-document.d.ts} +1 -1
- package/lib/db/Models/index.d.ts +1 -2
- package/lib/interfaces/index.d.ts +0 -1
- package/lib/models/budget/budget.d.ts +1 -3
- package/lib/models/client/annual-client-details.d.ts +1 -12
- package/lib/models/client/client-income-types.d.ts +1 -8
- package/lib/models/depreciation/depreciation-capital-project.d.ts +1 -7
- package/lib/models/document/document-folder.d.ts +1 -5
- package/lib/models/document/document.d.ts +2 -4
- package/lib/models/holding/holding-sale.d.ts +1 -7
- package/lib/models/holding/holding-type.d.ts +1 -6
- package/lib/models/holding/holding.d.ts +1 -6
- package/lib/models/property/property-category-movement.d.ts +1 -6
- package/lib/models/property/property-category.d.ts +1 -5
- package/lib/models/property/property-document.d.ts +1 -5
- package/lib/models/property/property-forecast.d.ts +1 -7
- package/lib/models/property/property-sale/property-sale.d.ts +1 -7
- package/lib/models/property/property-share.d.ts +1 -6
- package/lib/models/property/property-valuation.d.ts +1 -7
- package/lib/models/property/property.d.ts +1 -8
- package/lib/models/user/user.d.ts +1 -5
- package/lib/models/user-event/user-event-setting.d.ts +1 -8
- package/lib/services/http/document/document.service.d.ts +2 -2
- package/lib/services/http/facebook/facebook.service.d.ts +1 -3
- package/lib/services/http/property/property-category-movement/property-category-movement.service.d.ts +1 -3
- package/lib/services/http/property/property-document/property-document.service.d.ts +5 -0
- package/lib/services/http/property/property-share/property-share.service.d.ts +1 -1
- package/lib/services/http/property/property-valuation/property-valuation.service.d.ts +1 -3
- package/lib/services/http/rest/rest-old.service.d.ts +0 -2
- package/lib/services/http/rest/rest.service.d.ts +4 -8
- package/lib/services/http/user/financial-year/financial-year.service.d.ts +1 -3
- package/lib/services/http/user/user.service.d.ts +2 -0
- package/package.json +1 -1
- package/esm2022/lib/db/Models/document/document-base.mjs +0 -4
- package/esm2022/lib/db/Models/document/document.mjs +0 -4
- package/esm2022/lib/interfaces/mp-trackable.interface.mjs +0 -2
- package/lib/db/Models/document/document-base.d.ts +0 -10
- package/lib/interfaces/mp-trackable.interface.d.ts +0 -6
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DocumentFolder } from './document-folder';
|
|
2
2
|
import { AbstractModel } from '../abstract-model';
|
|
3
3
|
import { File } from '../file';
|
|
4
|
-
export declare class
|
|
4
|
+
export declare class FolderDocument extends AbstractModel {
|
|
5
5
|
file?: File;
|
|
6
6
|
folder?: DocumentFolder;
|
|
7
7
|
}
|
package/lib/db/Models/index.d.ts
CHANGED
|
@@ -14,9 +14,8 @@ export * from './chart-accounts/chart-accounts';
|
|
|
14
14
|
export * from './depreciation/depreciation-capital-project';
|
|
15
15
|
export * from './depreciation/depreciation-forecast';
|
|
16
16
|
export * from './depreciation/depreciation';
|
|
17
|
-
export * from './document/document-base';
|
|
18
17
|
export * from './document/document-folder';
|
|
19
|
-
export * from './document/document';
|
|
18
|
+
export * from './document/folder-document';
|
|
20
19
|
export * from './document/property-document';
|
|
21
20
|
export * from './firm/accountant/tax-review';
|
|
22
21
|
export * from './firm/accountant/ticket';
|
|
@@ -2,10 +2,8 @@ import { Budget as BudgetBase } from '../../db/Models/budget/budget';
|
|
|
2
2
|
import { BudgetRule } from './budget-rule';
|
|
3
3
|
import { User } from '../user';
|
|
4
4
|
import { Collection } from '../../collections';
|
|
5
|
-
|
|
6
|
-
export declare class Budget extends BudgetBase implements MpTrackableInterface {
|
|
5
|
+
export declare class Budget extends BudgetBase {
|
|
7
6
|
rules: BudgetRule[];
|
|
8
7
|
user: User;
|
|
9
8
|
get rulesCollection(): Collection<BudgetRule>;
|
|
10
|
-
getMpData(): {};
|
|
11
9
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { AbstractModel } from '../../db/Models';
|
|
2
2
|
import { ClientDetails } from './client-details';
|
|
3
|
-
|
|
4
|
-
export declare class AnnualClientDetails extends AbstractModel implements MpTrackableInterface {
|
|
3
|
+
export declare class AnnualClientDetails extends AbstractModel {
|
|
5
4
|
capitalLoss: number;
|
|
6
5
|
privateHealthCare: boolean;
|
|
7
6
|
spouse: boolean;
|
|
@@ -13,14 +12,4 @@ export declare class AnnualClientDetails extends AbstractModel implements MpTrac
|
|
|
13
12
|
exemptForeignEmploymentIncome?: number;
|
|
14
13
|
clientDetails: ClientDetails;
|
|
15
14
|
get spouseMonthlyIncome(): number;
|
|
16
|
-
getMpData(): {
|
|
17
|
-
capitalLoss: number;
|
|
18
|
-
privateHealthCare: boolean;
|
|
19
|
-
spouse: boolean;
|
|
20
|
-
dependants: number;
|
|
21
|
-
studentLoanAmount: number;
|
|
22
|
-
financialYear: number;
|
|
23
|
-
reportableFringeBenefits: number;
|
|
24
|
-
exemptForeignEmploymentIncome: number;
|
|
25
|
-
};
|
|
26
15
|
}
|
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
import { ClientIncomeTypes as ClientIncomeTypesBase } from '../../db/Models/client/client-income-types';
|
|
2
|
-
|
|
3
|
-
export declare class ClientIncomeTypes extends ClientIncomeTypesBase implements MpTrackableInterface {
|
|
2
|
+
export declare class ClientIncomeTypes extends ClientIncomeTypesBase {
|
|
4
3
|
/**
|
|
5
4
|
* Get count of selected income types
|
|
6
5
|
*/
|
|
7
6
|
get length(): number;
|
|
8
|
-
getMpData(): {
|
|
9
|
-
work: boolean;
|
|
10
|
-
property: boolean;
|
|
11
|
-
sole: boolean;
|
|
12
|
-
holding: boolean;
|
|
13
|
-
};
|
|
14
7
|
}
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
import { DepreciationCapitalProject as DepreciationCapitalProjectBase } from '../../db/Models/depreciation/depreciation-capital-project';
|
|
2
|
-
|
|
3
|
-
import { Property } from '../property';
|
|
4
|
-
export declare class DepreciationCapitalProject extends DepreciationCapitalProjectBase implements MpTrackableInterface {
|
|
2
|
+
export declare class DepreciationCapitalProject extends DepreciationCapitalProjectBase {
|
|
5
3
|
effectiveDate: Date;
|
|
6
|
-
getMpData(property: Property): {
|
|
7
|
-
Property: string;
|
|
8
|
-
Name: string;
|
|
9
|
-
};
|
|
10
4
|
}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
1
|
import { DocumentFolder as DocumentFolderBase } from '../../db/Models/document/document-folder';
|
|
2
|
-
|
|
3
|
-
export declare class DocumentFolder extends DocumentFolderBase implements MpTrackableInterface {
|
|
4
|
-
getMpData(): {
|
|
5
|
-
Name: string;
|
|
6
|
-
};
|
|
2
|
+
export declare class DocumentFolder extends DocumentFolderBase {
|
|
7
3
|
}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FolderDocument as FolderDocumentBase } from '../../db/Models/document/folder-document';
|
|
2
2
|
import { DocumentFolder } from './document-folder';
|
|
3
3
|
import { DocumentInterface } from '../../interfaces';
|
|
4
4
|
import { AppFile } from '../file';
|
|
5
|
-
|
|
6
|
-
export declare class Document extends DocumentBase implements DocumentInterface, MpTrackableInterface {
|
|
5
|
+
export declare class Document extends FolderDocumentBase implements DocumentInterface {
|
|
7
6
|
folder: DocumentFolder;
|
|
8
7
|
file: AppFile;
|
|
9
8
|
get parent(): DocumentFolder;
|
|
10
|
-
getMpData(): {};
|
|
11
9
|
}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { Holding } from './holding';
|
|
2
2
|
import { AppFile } from '../file';
|
|
3
3
|
import { AssetSale } from '../asset-sale';
|
|
4
|
-
|
|
5
|
-
import { HoldingType } from './holding-type';
|
|
6
|
-
export declare class HoldingSale extends AssetSale implements MpTrackableInterface {
|
|
4
|
+
export declare class HoldingSale extends AssetSale {
|
|
7
5
|
quantity: number;
|
|
8
6
|
price: number;
|
|
9
7
|
fee: number;
|
|
@@ -22,8 +20,4 @@ export declare class HoldingSale extends AssetSale implements MpTrackableInterfa
|
|
|
22
20
|
getPurchasePrice(holding: Holding): number;
|
|
23
21
|
get netCost(): number;
|
|
24
22
|
get cost(): number;
|
|
25
|
-
getMpData(type: HoldingType): {
|
|
26
|
-
holding: string;
|
|
27
|
-
concession: string;
|
|
28
|
-
};
|
|
29
23
|
}
|
|
@@ -3,8 +3,7 @@ import { User } from '../user';
|
|
|
3
3
|
import { AbstractModel } from '../../db/Models';
|
|
4
4
|
import { HoldingTypeExchange } from './holding-type-exchange';
|
|
5
5
|
import { AppFile } from '../file';
|
|
6
|
-
|
|
7
|
-
export declare class HoldingType extends AbstractModel implements MpTrackableInterface {
|
|
6
|
+
export declare class HoldingType extends AbstractModel {
|
|
8
7
|
category?: HoldingTypeCategoryEnum;
|
|
9
8
|
name?: string;
|
|
10
9
|
ticker?: string;
|
|
@@ -39,8 +38,4 @@ export declare class HoldingType extends AbstractModel implements MpTrackableInt
|
|
|
39
38
|
isOther(): boolean;
|
|
40
39
|
isShare(): boolean;
|
|
41
40
|
isCrypto(): boolean;
|
|
42
|
-
getMpData(): {
|
|
43
|
-
category: string;
|
|
44
|
-
name: string;
|
|
45
|
-
};
|
|
46
41
|
}
|
|
@@ -5,8 +5,7 @@ import { HoldingSale } from './holding-sale';
|
|
|
5
5
|
import { Collection } from '../../collections';
|
|
6
6
|
import { AbstractModel } from '../../db/Models';
|
|
7
7
|
import { HoldingTypeCategoryEnum } from '../../db/Enums';
|
|
8
|
-
|
|
9
|
-
export declare class Holding extends AbstractModel implements MpTrackableInterface {
|
|
8
|
+
export declare class Holding extends AbstractModel {
|
|
10
9
|
isTaxFree: boolean;
|
|
11
10
|
quantity: number;
|
|
12
11
|
currentQuantity: number;
|
|
@@ -39,8 +38,4 @@ export declare class Holding extends AbstractModel implements MpTrackableInterfa
|
|
|
39
38
|
get growthCoefficient(): number;
|
|
40
39
|
heldMoreYear(): boolean;
|
|
41
40
|
isSold(): boolean;
|
|
42
|
-
getMpData(): {
|
|
43
|
-
type: string;
|
|
44
|
-
date: string;
|
|
45
|
-
};
|
|
46
41
|
}
|
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
import { PropertyCategoryMovement as PropertyCategoryMovementBase } from '../../db/Models/property/property-category-movement';
|
|
2
2
|
import { PropertyValuation } from './property-valuation';
|
|
3
3
|
import { PropertyCategory } from './property-category';
|
|
4
|
-
import { MpTrackableInterface } from '../../interfaces';
|
|
5
4
|
import { Property } from './property';
|
|
6
|
-
export declare class PropertyCategoryMovement extends PropertyCategoryMovementBase
|
|
5
|
+
export declare class PropertyCategoryMovement extends PropertyCategoryMovementBase {
|
|
7
6
|
valuation: PropertyValuation;
|
|
8
7
|
propertyCategory: PropertyCategory;
|
|
9
8
|
property: Property;
|
|
10
9
|
fromDate: Date;
|
|
11
10
|
toDate: Date;
|
|
12
|
-
getMpData(property: Property): {
|
|
13
|
-
Property: string;
|
|
14
|
-
Category: string;
|
|
15
|
-
};
|
|
16
11
|
}
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { PropertyCategory as PropertyCategoryBase } from '../../db/Models/property/property-category';
|
|
2
|
-
|
|
3
|
-
export declare class PropertyCategory extends PropertyCategoryBase implements MpTrackableInterface {
|
|
2
|
+
export declare class PropertyCategory extends PropertyCategoryBase {
|
|
4
3
|
isOwnerOccupied(): boolean;
|
|
5
4
|
isVacantLand(): boolean;
|
|
6
5
|
isShared(): boolean;
|
|
7
|
-
getMpData(): {
|
|
8
|
-
Name: string;
|
|
9
|
-
};
|
|
10
6
|
}
|
|
@@ -2,12 +2,8 @@ import { PropertyDocument as PropertyDocumentBase } from '../../db/Models/docume
|
|
|
2
2
|
import { DocumentInterface } from '../../interfaces';
|
|
3
3
|
import { Property } from './property';
|
|
4
4
|
import { AppFile } from '../file';
|
|
5
|
-
|
|
6
|
-
export declare class PropertyDocument extends PropertyDocumentBase implements DocumentInterface, MpTrackableInterface {
|
|
5
|
+
export declare class PropertyDocument extends PropertyDocumentBase implements DocumentInterface {
|
|
7
6
|
property: Property;
|
|
8
7
|
file: AppFile;
|
|
9
8
|
get parent(): Property;
|
|
10
|
-
getMpData(property: Property): {
|
|
11
|
-
Property: string;
|
|
12
|
-
};
|
|
13
9
|
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { PropertyForecast as PropertyForecastBase } from '../../db/Models/property/property-forecast';
|
|
2
|
-
|
|
3
|
-
import { Property } from './property';
|
|
4
|
-
export declare class PropertyForecast extends PropertyForecastBase implements MpTrackableInterface {
|
|
2
|
+
export declare class PropertyForecast extends PropertyForecastBase {
|
|
5
3
|
income: number;
|
|
6
4
|
expense: number;
|
|
7
5
|
interest: number;
|
|
@@ -28,8 +26,4 @@ export declare class PropertyForecast extends PropertyForecastBase implements Mp
|
|
|
28
26
|
* Check if forecast is for real current fin year (not selected in the sidebar)
|
|
29
27
|
*/
|
|
30
28
|
isCurrentYear(): boolean;
|
|
31
|
-
getMpData(property: Property): {
|
|
32
|
-
Property: string;
|
|
33
|
-
'Financial Year': number;
|
|
34
|
-
};
|
|
35
29
|
}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { PropertySaleTaxExemptionMetaField, PropertyShare } from '../../../db/Models';
|
|
2
2
|
import { TaxExemption } from './tax-exemption';
|
|
3
3
|
import { AssetSale } from '../../asset-sale';
|
|
4
|
-
|
|
5
|
-
import { Property } from '../property';
|
|
6
|
-
export declare class PropertySale extends AssetSale implements MpTrackableInterface {
|
|
4
|
+
export declare class PropertySale extends AssetSale {
|
|
7
5
|
createdAt: Date;
|
|
8
6
|
updatedAt: Date;
|
|
9
7
|
share: PropertyShare;
|
|
@@ -25,8 +23,4 @@ export declare class PropertySale extends AssetSale implements MpTrackableInterf
|
|
|
25
23
|
*/
|
|
26
24
|
isCGTApplicable(): boolean;
|
|
27
25
|
get netPrice(): number;
|
|
28
|
-
getMpData(property: Property): {
|
|
29
|
-
Property: string;
|
|
30
|
-
Concession: string;
|
|
31
|
-
};
|
|
32
26
|
}
|
|
@@ -2,8 +2,7 @@ import { PropertyShare as PropertyShareBase } from '../../db/Models/property/pro
|
|
|
2
2
|
import { User } from '../user';
|
|
3
3
|
import { RegistrationInvite } from '../registration-invite/registration-invite';
|
|
4
4
|
import { Property } from './property';
|
|
5
|
-
|
|
6
|
-
export declare class PropertyShare extends PropertyShareBase implements MpTrackableInterface {
|
|
5
|
+
export declare class PropertyShare extends PropertyShareBase {
|
|
7
6
|
fromDate: Date;
|
|
8
7
|
toDate: Date;
|
|
9
8
|
user: User;
|
|
@@ -19,8 +18,4 @@ export declare class PropertyShare extends PropertyShareBase implements MpTracka
|
|
|
19
18
|
* Otherwise - return first name from invitation
|
|
20
19
|
*/
|
|
21
20
|
get userName(): string;
|
|
22
|
-
getMpData(): {
|
|
23
|
-
Property: string;
|
|
24
|
-
User: string;
|
|
25
|
-
};
|
|
26
21
|
}
|
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
import { PropertyValuation as PropertyValuationBase } from '../../db/Models/property/property-valuation';
|
|
2
2
|
import { PropertyDocument } from './property-document';
|
|
3
|
-
|
|
4
|
-
import { Property } from './property';
|
|
5
|
-
export declare class PropertyValuation extends PropertyValuationBase implements MpTrackableInterface {
|
|
3
|
+
export declare class PropertyValuation extends PropertyValuationBase {
|
|
6
4
|
date: Date;
|
|
7
5
|
document: PropertyDocument;
|
|
8
6
|
get financialYear(): number;
|
|
9
7
|
isCurrentYear(): boolean;
|
|
10
|
-
getMpData(property: Property): {
|
|
11
|
-
Property: string;
|
|
12
|
-
Date: Date;
|
|
13
|
-
};
|
|
14
8
|
}
|
|
@@ -11,12 +11,11 @@ import { PropertySale } from './property-sale';
|
|
|
11
11
|
import { unitOfTime } from 'moment';
|
|
12
12
|
import { DepreciationCollection, TransactionCollection } from '../../collections';
|
|
13
13
|
import { AppFile } from '../file';
|
|
14
|
-
import { MpTrackableInterface } from '../../interfaces';
|
|
15
14
|
import { PropertyCategoryMovement } from './property-category-movement';
|
|
16
15
|
/**
|
|
17
16
|
* propertySale docs - https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/4209508353/Property+Sold+button
|
|
18
17
|
*/
|
|
19
|
-
export declare class Property extends PropertyBase
|
|
18
|
+
export declare class Property extends PropertyBase {
|
|
20
19
|
/**
|
|
21
20
|
* Property acquired before 20 September 1985 will generally be treated as pre-Capital Gains Tax (CGT) assets.
|
|
22
21
|
* Any assets acquired before this day are CGT exempt (because the tax didn't exist before this date).
|
|
@@ -100,10 +99,4 @@ export declare class Property extends PropertyBase implements MpTrackableInterfa
|
|
|
100
99
|
getTaxPosition(transactions: TransactionCollection, depreciations: DepreciationCollection): number;
|
|
101
100
|
get monthlyIncome(): number;
|
|
102
101
|
get monthlyExpense(): number;
|
|
103
|
-
getMpData(): {
|
|
104
|
-
Category: string;
|
|
105
|
-
Taxable: string;
|
|
106
|
-
Shared: string;
|
|
107
|
-
'Ownership %': string;
|
|
108
|
-
};
|
|
109
102
|
}
|
|
@@ -8,9 +8,8 @@ import { ServiceSubscription } from '../service-subscription';
|
|
|
8
8
|
import { ServiceSubscriptionItem } from '../service-subscription';
|
|
9
9
|
import { SoleDetails } from '../sole';
|
|
10
10
|
import { AppFile } from '../file';
|
|
11
|
-
import { MpTrackableInterface } from '../../interfaces';
|
|
12
11
|
import { AccountSetupItem } from '../account-setup/account-setup-item';
|
|
13
|
-
export declare class User extends BaseUser
|
|
12
|
+
export declare class User extends BaseUser {
|
|
14
13
|
subscriptions: ServiceSubscription[];
|
|
15
14
|
clientDetails: ClientDetails;
|
|
16
15
|
employeeDetails: EmployeeDetails;
|
|
@@ -70,7 +69,4 @@ export declare class User extends BaseUser implements MpTrackableInterface {
|
|
|
70
69
|
* starts from 2022 for new users and registeredYear - 1 for old users
|
|
71
70
|
*/
|
|
72
71
|
get financialYears(): number;
|
|
73
|
-
getMpData(): {
|
|
74
|
-
clientDetails: {};
|
|
75
|
-
};
|
|
76
72
|
}
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import { UserEventSetting as UserEventSettingBase } from '../../db/Models/user/user-event-setting';
|
|
2
2
|
import { UserEventType } from './user-event-type';
|
|
3
|
-
|
|
4
|
-
export declare class UserEventSetting extends UserEventSettingBase implements MpTrackableInterface {
|
|
3
|
+
export declare class UserEventSetting extends UserEventSettingBase {
|
|
5
4
|
type: UserEventType;
|
|
6
5
|
isUpdating?: boolean;
|
|
7
|
-
getMpData(): {
|
|
8
|
-
type: string;
|
|
9
|
-
byEmail: boolean;
|
|
10
|
-
byNotification: boolean;
|
|
11
|
-
frequency: string;
|
|
12
|
-
};
|
|
13
6
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FolderDocument as FolderDocumentBase } from '../../../db/Models/document/folder-document';
|
|
2
2
|
import { Document } from '../../../models';
|
|
3
3
|
import { RestMethod, RestService } from '../rest';
|
|
4
4
|
import { Collection } from '../../../collections';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class DocumentService extends RestService<
|
|
6
|
+
export declare class DocumentService extends RestService<FolderDocumentBase, Document, Collection<Document>> {
|
|
7
7
|
endpointUri: string;
|
|
8
8
|
modelClass: typeof Document;
|
|
9
9
|
collectionClass: typeof Collection;
|
|
@@ -4,14 +4,12 @@ import { ToastService } from '../../toast';
|
|
|
4
4
|
import { JwtService } from '../../auth';
|
|
5
5
|
import { FacebookAuthOptions } from './facebook-auth-options.interface';
|
|
6
6
|
import { Router } from '@angular/router';
|
|
7
|
-
import { MixpanelService } from '../../mixpanel/mixpanel.service';
|
|
8
7
|
import * as i0 from "@angular/core";
|
|
9
8
|
export declare class FacebookService {
|
|
10
9
|
private http;
|
|
11
10
|
private toastService;
|
|
12
11
|
private jwtService;
|
|
13
12
|
private router;
|
|
14
|
-
private mpService;
|
|
15
13
|
private environment;
|
|
16
14
|
isLoggedInSubject: BehaviorSubject<boolean>;
|
|
17
15
|
isFacebookEnabled: boolean;
|
|
@@ -19,7 +17,7 @@ export declare class FacebookService {
|
|
|
19
17
|
/**
|
|
20
18
|
* @TODO when google login will be done, it needs to be moved to an abstract class
|
|
21
19
|
*/
|
|
22
|
-
constructor(http: HttpClient, toastService: ToastService, jwtService: JwtService, router: Router,
|
|
20
|
+
constructor(http: HttpClient, toastService: ToastService, jwtService: JwtService, router: Router, environment: any);
|
|
23
21
|
login(redirectUrl?: string): Promise<any>;
|
|
24
22
|
/**
|
|
25
23
|
* save user's auth tokens
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PropertyCategoryMovement } from '../../../../models';
|
|
2
2
|
import { PropertyCategoryMovement as PropertyCategoryMovementBase } from '../../../../db/Models';
|
|
3
3
|
import { RestMethod, RestService } from '../../rest';
|
|
4
4
|
import { PropertyCategoryMovementCollection } from '../../../../collections';
|
|
5
|
-
import { Observable } from 'rxjs';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
6
|
export declare class PropertyCategoryMovementService extends RestService<PropertyCategoryMovementBase, PropertyCategoryMovement, PropertyCategoryMovementCollection> {
|
|
8
7
|
modelClass: typeof PropertyCategoryMovement;
|
|
9
8
|
collectionClass: typeof PropertyCategoryMovementCollection;
|
|
10
9
|
endpointUri: string;
|
|
11
10
|
disabledMethods: RestMethod[];
|
|
12
|
-
post(movement: PropertyCategoryMovement, property: Property): Observable<PropertyCategoryMovement>;
|
|
13
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<PropertyCategoryMovementService, never>;
|
|
14
12
|
static ɵprov: i0.ɵɵInjectableDeclaration<PropertyCategoryMovementService>;
|
|
15
13
|
}
|
|
@@ -2,6 +2,7 @@ import { PropertyDocument as PropertyDocumentBase } from '../../../../db/Models'
|
|
|
2
2
|
import { RestMethod, RestService } from '../../rest';
|
|
3
3
|
import { PropertyDocument } from '../../../../models';
|
|
4
4
|
import { Collection } from '../../../../collections';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
/**
|
|
7
8
|
* Class for work with Property Documents
|
|
@@ -11,6 +12,10 @@ export declare class PropertyDocumentService extends RestService<PropertyDocumen
|
|
|
11
12
|
collectionClass: typeof Collection;
|
|
12
13
|
endpointUri: string;
|
|
13
14
|
disabledMethods: RestMethod[];
|
|
15
|
+
/**
|
|
16
|
+
* @TODO vik remove when TT-3850 is ready
|
|
17
|
+
*/
|
|
18
|
+
get(): Observable<Collection<PropertyDocument>>;
|
|
14
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<PropertyDocumentService, never>;
|
|
15
20
|
static ɵprov: i0.ɵɵInjectableDeclaration<PropertyDocumentService>;
|
|
16
21
|
}
|
|
@@ -22,7 +22,7 @@ export declare class PropertyShareService extends RestService<PropertyShareBase,
|
|
|
22
22
|
* Re-invite property share
|
|
23
23
|
* @param share user to share property
|
|
24
24
|
*/
|
|
25
|
-
reinvite(share: PropertyShare): Observable<
|
|
25
|
+
reinvite(share: PropertyShare): Observable<object>;
|
|
26
26
|
/**
|
|
27
27
|
* Listen to User updated event
|
|
28
28
|
*/
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { RestMethod, RestService } from '../../rest';
|
|
2
2
|
import { PropertyValuation as PropertyValuationBase } from '../../../../db/Models';
|
|
3
|
-
import {
|
|
3
|
+
import { PropertyValuation } from '../../../../models';
|
|
4
4
|
import { Collection } from '../../../../collections';
|
|
5
|
-
import { Observable } from 'rxjs';
|
|
6
5
|
import { PropertyValuationCollection } from '../../../../collections';
|
|
7
6
|
import * as i0 from "@angular/core";
|
|
8
7
|
export declare class PropertyValuationService extends RestService<PropertyValuationBase, PropertyValuation, PropertyValuationCollection> {
|
|
@@ -10,7 +9,6 @@ export declare class PropertyValuationService extends RestService<PropertyValuat
|
|
|
10
9
|
modelClass: typeof PropertyValuation;
|
|
11
10
|
collectionClass: typeof Collection<PropertyValuation>;
|
|
12
11
|
disabledMethods: RestMethod[];
|
|
13
|
-
post(valuation: PropertyValuation, property: Property): Observable<PropertyValuation>;
|
|
14
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<PropertyValuationService, never>;
|
|
15
13
|
static ɵprov: i0.ɵɵInjectableDeclaration<PropertyValuationService>;
|
|
16
14
|
}
|
|
@@ -3,7 +3,6 @@ import { HttpClient } from '@angular/common/http';
|
|
|
3
3
|
import { EventDispatcherService } from '../../event';
|
|
4
4
|
import { ToastService } from '../../toast';
|
|
5
5
|
import { UserRolesEnum } from '../../../db/Enums/user-roles.enum';
|
|
6
|
-
import { MixpanelService } from '../../mixpanel/mixpanel.service';
|
|
7
6
|
import * as i0 from "@angular/core";
|
|
8
7
|
/**
|
|
9
8
|
* Abstract base service that implements common services functionality
|
|
@@ -27,7 +26,6 @@ export declare abstract class RestService<BaseModel, Model extends BaseModel> {
|
|
|
27
26
|
messageUpdatedBatch: string;
|
|
28
27
|
messageDeleted: string;
|
|
29
28
|
messageDeletedBatch: string;
|
|
30
|
-
protected mpService: MixpanelService;
|
|
31
29
|
roles: UserRolesEnum[];
|
|
32
30
|
constructor(environment: any);
|
|
33
31
|
protected get apiUrl(): string;
|
|
@@ -7,7 +7,6 @@ import { RestMethod } from './rest-method.type';
|
|
|
7
7
|
import { HttpMethod } from './http-method.type';
|
|
8
8
|
import { DataService } from '../../data.service';
|
|
9
9
|
import { UserRolesEnum } from '../../../db/Enums/user-roles.enum';
|
|
10
|
-
import { MixpanelService } from '../../mixpanel/mixpanel.service';
|
|
11
10
|
import { ToastService } from '../../toast';
|
|
12
11
|
import * as i0 from "@angular/core";
|
|
13
12
|
/**
|
|
@@ -33,7 +32,6 @@ export declare abstract class RestService<BaseModel, Model extends AbstractModel
|
|
|
33
32
|
* @TODO Alex: disable batch by default
|
|
34
33
|
*/
|
|
35
34
|
disabledMethods: RestMethod[];
|
|
36
|
-
protected mpService: MixpanelService;
|
|
37
35
|
protected sseService: SseService;
|
|
38
36
|
protected toastService: ToastService;
|
|
39
37
|
protected http: HttpClient;
|
|
@@ -58,7 +56,7 @@ export declare abstract class RestService<BaseModel, Model extends AbstractModel
|
|
|
58
56
|
/**
|
|
59
57
|
* Create a new Model instance in database
|
|
60
58
|
*/
|
|
61
|
-
post(model: Model,
|
|
59
|
+
post(model: Model, path?: string): Observable<Model>;
|
|
62
60
|
/**
|
|
63
61
|
* Create multiple new Model instances in database
|
|
64
62
|
*/
|
|
@@ -66,7 +64,7 @@ export declare abstract class RestService<BaseModel, Model extends AbstractModel
|
|
|
66
64
|
/**
|
|
67
65
|
* Change an existing Model instance in database
|
|
68
66
|
*/
|
|
69
|
-
put(model: Model,
|
|
67
|
+
put(model: Model, path?: string): Observable<Model>;
|
|
70
68
|
/**
|
|
71
69
|
* Change multiple existing Model instances in database
|
|
72
70
|
*/
|
|
@@ -74,17 +72,15 @@ export declare abstract class RestService<BaseModel, Model extends AbstractModel
|
|
|
74
72
|
/**
|
|
75
73
|
* Remove a Model instance from database
|
|
76
74
|
*/
|
|
77
|
-
delete(model: Model
|
|
75
|
+
delete(model: Model): Observable<void>;
|
|
78
76
|
/**
|
|
79
77
|
* Remove multiple Model instances from database
|
|
80
78
|
*/
|
|
81
79
|
deleteBatch(models: Model[]): Observable<void>;
|
|
82
|
-
protected track(response: Model[], method: HttpMethod, mpData?: AbstractModel, postfix?: string): void;
|
|
83
|
-
protected handleResponseError(response: Model[], method: HttpMethod, mpData?: AbstractModel): void;
|
|
84
80
|
/**
|
|
85
81
|
* Handle response data - update cache and dispatch event if it is needed
|
|
86
82
|
*/
|
|
87
|
-
protected handleResponse(response: Model[], method: HttpMethod
|
|
83
|
+
protected handleResponse(response: Model[], method: HttpMethod): void;
|
|
88
84
|
/**
|
|
89
85
|
* Update cache with passed items. Add/Update detects automatically, Delete via optional flag
|
|
90
86
|
*/
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { HttpClient } from '@angular/common/http';
|
|
3
|
-
import { MixpanelService } from '../../../mixpanel/mixpanel.service';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
export declare class FinancialYearService {
|
|
6
5
|
protected http: HttpClient;
|
|
7
6
|
protected environment: any;
|
|
8
|
-
|
|
9
|
-
constructor(http: HttpClient, environment: any, mpService: MixpanelService);
|
|
7
|
+
constructor(http: HttpClient, environment: any);
|
|
10
8
|
switch(year: number): Observable<void>;
|
|
11
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<FinancialYearService, never>;
|
|
12
10
|
static ɵprov: i0.ɵɵInjectableDeclaration<FinancialYearService>;
|
|
@@ -5,6 +5,7 @@ import { RestMethod, RestService } from '../rest';
|
|
|
5
5
|
import { Collection } from '../../../collections';
|
|
6
6
|
import { AccountSetupItem } from '../../../models/account-setup/account-setup-item';
|
|
7
7
|
import { IEventListener } from '../../../interfaces';
|
|
8
|
+
import { MixpanelService } from '../../mixpanel/mixpanel.service';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
export declare class UserService extends RestService<UserBase, User, Collection<User>> implements IEventListener {
|
|
10
11
|
protected environment: any;
|
|
@@ -12,6 +13,7 @@ export declare class UserService extends RestService<UserBase, User, Collection<
|
|
|
12
13
|
collectionClass: typeof Collection;
|
|
13
14
|
endpointUri: string;
|
|
14
15
|
disabledMethods: RestMethod[];
|
|
16
|
+
protected mpService: MixpanelService;
|
|
15
17
|
constructor(environment: any);
|
|
16
18
|
listenEvents(): void;
|
|
17
19
|
fetch(): Observable<Collection<User>>;
|
package/package.json
CHANGED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { AbstractModel } from '../abstract-model';
|
|
2
|
-
export class DocumentBase extends AbstractModel {
|
|
3
|
-
}
|
|
4
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZG9jdW1lbnQtYmFzZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9kYi9Nb2RlbHMvZG9jdW1lbnQvZG9jdW1lbnQtYmFzZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsYUFBYSxFQUFDLE1BQU0sbUJBQW1CLENBQUM7QUFFaEQsTUFBTSxPQUFPLFlBQWEsU0FBUSxhQUFhO0NBUTlDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtBYnN0cmFjdE1vZGVsfSBmcm9tICcuLi9hYnN0cmFjdC1tb2RlbCc7XG5cbmV4cG9ydCBjbGFzcyBEb2N1bWVudEJhc2UgZXh0ZW5kcyBBYnN0cmFjdE1vZGVsIHtcbiAgbmFtZT86IHN0cmluZztcbiAgb3JpZ2luYWxOYW1lPzogc3RyaW5nO1xuICBzaXplPzogbnVtYmVyO1xuICBmaWxlPzogRmlsZTtcbiAgbWltZVR5cGU/OiBzdHJpbmc7XG4gIGNyZWF0ZWRBdD86IERhdGU7XG4gIHVwZGF0ZWRBdD86IERhdGU7XG59XG4iXX0=
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { AbstractModel } from '../abstract-model';
|
|
2
|
-
export class Document extends AbstractModel {
|
|
3
|
-
}
|
|
4
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZG9jdW1lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZGIvTW9kZWxzL2RvY3VtZW50L2RvY3VtZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQztBQUdsRCxNQUFNLE9BQU8sUUFBUyxTQUFRLGFBQWE7Q0FHMUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBEb2N1bWVudEZvbGRlciB9IGZyb20gJy4vZG9jdW1lbnQtZm9sZGVyJztcbmltcG9ydCB7IEFic3RyYWN0TW9kZWwgfSBmcm9tICcuLi9hYnN0cmFjdC1tb2RlbCc7XG5pbXBvcnQgeyBGaWxlIH0gZnJvbSAnLi4vZmlsZSc7XG5cbmV4cG9ydCBjbGFzcyBEb2N1bWVudCBleHRlbmRzIEFic3RyYWN0TW9kZWwge1xuICBmaWxlPzogRmlsZTtcbiAgZm9sZGVyPzogRG9jdW1lbnRGb2xkZXI7XG59XG4iXX0=
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibXAtdHJhY2thYmxlLmludGVyZmFjZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3R0LWNvcmUvc3JjL2xpYi9pbnRlcmZhY2VzL21wLXRyYWNrYWJsZS5pbnRlcmZhY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEFic3RyYWN0TW9kZWwgfSBmcm9tICcuLi9kYi9Nb2RlbHMnO1xuXG5leHBvcnQgaW50ZXJmYWNlIE1wVHJhY2thYmxlSW50ZXJmYWNlIHtcbiAgZ2V0TXBEYXRhKG1vZGVsPzogQWJzdHJhY3RNb2RlbCk6IHsgW2tleTogc3RyaW5nXTogYW55IH07XG59XG4iXX0=
|