taxtank-core 2.0.95 → 2.0.97
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/fesm2022/taxtank-core.mjs +626 -579
- package/fesm2022/taxtank-core.mjs.map +1 -1
- package/index.d.ts +91 -53
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { PipeTransform, EventEmitter, NgZone, Type, InjectionToken } from '@angu
|
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import { CurrencyPipe, PercentPipe, DatePipe } from '@angular/common';
|
|
5
5
|
import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
|
|
6
|
-
import { UserRolesEnum, JwtService, MixpanelService } from 'taxtank-core/common';
|
|
6
|
+
import { UserRolesEnum as UserRolesEnum$1, JwtService, MixpanelService } from 'taxtank-core/common';
|
|
7
7
|
import { TreeNode } from 'primeng/api';
|
|
8
8
|
import { unitOfTime } from 'moment';
|
|
9
9
|
import { EventInput } from '@fullcalendar/core';
|
|
@@ -1756,7 +1756,7 @@ declare class Occupation extends Occupation$1 {
|
|
|
1756
1756
|
* role hierarchy
|
|
1757
1757
|
*/
|
|
1758
1758
|
declare const USER_ROLES: {
|
|
1759
|
-
[key: string]: UserRolesEnum[];
|
|
1759
|
+
[key: string]: UserRolesEnum$1[];
|
|
1760
1760
|
};
|
|
1761
1761
|
|
|
1762
1762
|
/**
|
|
@@ -2091,7 +2091,7 @@ declare enum ServiceProductStatusEnum {
|
|
|
2091
2091
|
declare class ServiceProduct$1 extends AbstractModel {
|
|
2092
2092
|
stripeId?: string;
|
|
2093
2093
|
title?: string;
|
|
2094
|
-
role?: UserRolesEnum;
|
|
2094
|
+
role?: UserRolesEnum$1;
|
|
2095
2095
|
description?: string;
|
|
2096
2096
|
deletedAt?: Date;
|
|
2097
2097
|
createdAt?: Date;
|
|
@@ -2138,7 +2138,7 @@ declare class ServiceSubscription$1 extends ObservableModel {
|
|
|
2138
2138
|
promoCode?: ServicePromoCode;
|
|
2139
2139
|
items?: ServiceSubscriptionItem$1[];
|
|
2140
2140
|
payments?: ServicePayment$1[];
|
|
2141
|
-
roles?: UserRolesEnum[];
|
|
2141
|
+
roles?: UserRolesEnum$1[];
|
|
2142
2142
|
}
|
|
2143
2143
|
|
|
2144
2144
|
declare class ServicePayment$1 extends AbstractModel {
|
|
@@ -2156,6 +2156,7 @@ declare class ServiceProduct extends ServiceProduct$1 {
|
|
|
2156
2156
|
isWorkTank(): boolean;
|
|
2157
2157
|
isSoleTank(): boolean;
|
|
2158
2158
|
isHoldingsTank(): boolean;
|
|
2159
|
+
isMoneyTank(): boolean;
|
|
2159
2160
|
isArchived(): boolean;
|
|
2160
2161
|
}
|
|
2161
2162
|
|
|
@@ -2331,7 +2332,7 @@ declare enum ServiceProductIconsEnum {
|
|
|
2331
2332
|
/**
|
|
2332
2333
|
* List of user roles related to tanks (subscription products)
|
|
2333
2334
|
*/
|
|
2334
|
-
declare const SERVICE_PRODUCT_ROLES: UserRolesEnum[];
|
|
2335
|
+
declare const SERVICE_PRODUCT_ROLES: UserRolesEnum$1[];
|
|
2335
2336
|
|
|
2336
2337
|
declare class SetupItem extends AbstractModel {
|
|
2337
2338
|
type?: SetupItemTypeEnum;
|
|
@@ -2342,7 +2343,7 @@ declare class SetupItem extends AbstractModel {
|
|
|
2342
2343
|
isRequired?: boolean;
|
|
2343
2344
|
order?: number;
|
|
2344
2345
|
score?: number;
|
|
2345
|
-
roles?: UserRolesEnum;
|
|
2346
|
+
roles?: UserRolesEnum$1;
|
|
2346
2347
|
get typeLabel(): string;
|
|
2347
2348
|
}
|
|
2348
2349
|
|
|
@@ -2387,7 +2388,11 @@ declare enum AccountSetupItemsEnum {
|
|
|
2387
2388
|
BANK_ALLOCATION = 6,
|
|
2388
2389
|
BANK_TRANSACTION = 24,
|
|
2389
2390
|
BANK_RULE = 27,
|
|
2390
|
-
BANK_BORROWING_EXPENSE = 28
|
|
2391
|
+
BANK_BORROWING_EXPENSE = 28,
|
|
2392
|
+
MONEY_BANK_ACCOUNT = 31,
|
|
2393
|
+
MONEY_EXPENSE_BUDGETS = 32,
|
|
2394
|
+
MONEY_INCOME_BUDGETS = 33,
|
|
2395
|
+
MONEY_GOALS = 34
|
|
2391
2396
|
}
|
|
2392
2397
|
|
|
2393
2398
|
declare enum AccountSetupItemStatusEnum {
|
|
@@ -2416,11 +2421,11 @@ declare class User$1 extends User {
|
|
|
2416
2421
|
*
|
|
2417
2422
|
*/
|
|
2418
2423
|
get position(): string;
|
|
2419
|
-
addRoles(roles?: UserRolesEnum[]): void;
|
|
2424
|
+
addRoles(roles?: UserRolesEnum$1[]): void;
|
|
2420
2425
|
/**
|
|
2421
2426
|
* search roles including hierarchy
|
|
2422
2427
|
*/
|
|
2423
|
-
hasRoles(roles: UserRolesEnum | UserRolesEnum[]): boolean;
|
|
2428
|
+
hasRoles(roles: UserRolesEnum$1 | UserRolesEnum$1[]): boolean;
|
|
2424
2429
|
getTankTypes(): TankTypeEnum[];
|
|
2425
2430
|
isOnboarding(): boolean;
|
|
2426
2431
|
isInactive(): boolean;
|
|
@@ -3647,7 +3652,7 @@ declare class MoneyCalendarEventCollection extends CalendarEventCollection<Money
|
|
|
3647
3652
|
get expenses(): MoneyCalendarEventCollection;
|
|
3648
3653
|
get incomes(): MoneyCalendarEventCollection;
|
|
3649
3654
|
filterByDate(dateFrom?: Date, dateTo?: Date): MoneyCalendarEventCollection;
|
|
3650
|
-
getByMonth(index: number):
|
|
3655
|
+
getByMonth(index: number): MoneyCalendarEventCollection;
|
|
3651
3656
|
}
|
|
3652
3657
|
|
|
3653
3658
|
declare class BudgetRuleCollection extends Collection<BudgetRule> implements CalendarEventProvider {
|
|
@@ -5913,7 +5918,7 @@ declare abstract class RestService$1<BaseModel, Model extends AbstractModel, Col
|
|
|
5913
5918
|
* @TODO make true by default when all services refactored
|
|
5914
5919
|
*/
|
|
5915
5920
|
protected orderByDesc: boolean;
|
|
5916
|
-
roles: UserRolesEnum[];
|
|
5921
|
+
roles: UserRolesEnum$1[];
|
|
5917
5922
|
mercureTopic: string;
|
|
5918
5923
|
/**
|
|
5919
5924
|
* flag to use error messages from api or default ones
|
|
@@ -6062,7 +6067,7 @@ declare class BankAccountService extends RestService$1<BankAccount, BankAccount$
|
|
|
6062
6067
|
modelClass: typeof BankAccount$1;
|
|
6063
6068
|
collectionClass: typeof BankAccountCollection;
|
|
6064
6069
|
disabledMethods: RestMethod[];
|
|
6065
|
-
roles: UserRolesEnum[];
|
|
6070
|
+
roles: UserRolesEnum$1[];
|
|
6066
6071
|
constructor(http: HttpClient, eventDispatcherService: EventDispatcherService, sseService: SseService, environment: any);
|
|
6067
6072
|
getActive(): Observable<BankAccountCollection>;
|
|
6068
6073
|
/**
|
|
@@ -6305,11 +6310,30 @@ declare class BankService extends RestService$1<Bank$1, Bank, Collection<Bank>>
|
|
|
6305
6310
|
static ɵprov: i0.ɵɵInjectableDeclaration<BankService>;
|
|
6306
6311
|
}
|
|
6307
6312
|
|
|
6313
|
+
declare enum UserRolesEnum {
|
|
6314
|
+
FIRM_OWNER = "ROLE_FIRM_OWNER",
|
|
6315
|
+
FIRM_MANAGER = "ROLE_FIRM_MANAGER",
|
|
6316
|
+
FIRM_TOP_MANAGER = "ROLE_FIRM_TOP_MANAGER",
|
|
6317
|
+
CLIENT = "ROLE_CLIENT",
|
|
6318
|
+
EMPLOYEE = "ROLE_EMPLOYEE",
|
|
6319
|
+
ACCOUNTANT = "ROLE_ACCOUNTANT",
|
|
6320
|
+
ADVISOR = "ROLE_ADVISOR",
|
|
6321
|
+
USER = "ROLE_USER",
|
|
6322
|
+
SUBSCRIPTION = "ROLE_USER_SUBSCRIPTION",
|
|
6323
|
+
WORK_TANK = "ROLE_USER_WORK",
|
|
6324
|
+
PROPERTY_TANK = "ROLE_USER_PROPERTY",
|
|
6325
|
+
SOLE_TANK = "ROLE_USER_SOLE",
|
|
6326
|
+
HOLDING_TANK = "ROLE_USER_HOLDING",
|
|
6327
|
+
MONEY_TANK = "ROLE_USER_MONEY",
|
|
6328
|
+
SWITCH_USER = "IS_IMPERSONATOR"
|
|
6329
|
+
}
|
|
6330
|
+
|
|
6308
6331
|
declare class BudgetService extends RestService$1<Budget$1, Budget, BudgetCollection> {
|
|
6309
6332
|
modelClass: typeof Budget;
|
|
6310
6333
|
collectionClass: typeof BudgetCollection;
|
|
6311
6334
|
endpointUri: string;
|
|
6312
6335
|
disabledMethods: RestMethod[];
|
|
6336
|
+
roles: UserRolesEnum[];
|
|
6313
6337
|
static ɵfac: i0.ɵɵFactoryDeclaration<BudgetService, never>;
|
|
6314
6338
|
static ɵprov: i0.ɵɵInjectableDeclaration<BudgetService>;
|
|
6315
6339
|
}
|
|
@@ -6326,6 +6350,7 @@ declare class BudgetRuleService extends RestService$1<BudgetRule$1, BudgetRule,
|
|
|
6326
6350
|
collectionClass: typeof BudgetRuleCollection;
|
|
6327
6351
|
endpointUri: string;
|
|
6328
6352
|
disabledMethods: RestMethod[];
|
|
6353
|
+
roles: UserRolesEnum[];
|
|
6329
6354
|
static ɵfac: i0.ɵɵFactoryDeclaration<BudgetRuleService, never>;
|
|
6330
6355
|
static ɵprov: i0.ɵɵInjectableDeclaration<BudgetRuleService>;
|
|
6331
6356
|
}
|
|
@@ -6336,6 +6361,7 @@ declare class FinancialGoalService extends RestService$1<FinancialGoalInterface,
|
|
|
6336
6361
|
endpointUri: string;
|
|
6337
6362
|
disabledMethods: RestMethod[];
|
|
6338
6363
|
useBackendError: boolean;
|
|
6364
|
+
roles: UserRolesEnum[];
|
|
6339
6365
|
pause(goal: FinancialGoal): Observable<FinancialGoal>;
|
|
6340
6366
|
resume(goal: FinancialGoal): Observable<FinancialGoal>;
|
|
6341
6367
|
complete(goal: FinancialGoal): Observable<FinancialGoal>;
|
|
@@ -6756,7 +6782,7 @@ declare class EmployeeService extends RestService$1<User, User$1, EmployeeCollec
|
|
|
6756
6782
|
collectionClass: typeof EmployeeCollection;
|
|
6757
6783
|
disabledMethods: RestMethod[];
|
|
6758
6784
|
messages: typeof EmployeeMessagesEnum;
|
|
6759
|
-
roles: UserRolesEnum[];
|
|
6785
|
+
roles: UserRolesEnum$1[];
|
|
6760
6786
|
activateEmployee(employee: User$1): Observable<User$1>;
|
|
6761
6787
|
deactivateEmployee(employee: User$1): Observable<User$1>;
|
|
6762
6788
|
toggleManagerRole(employee: User$1): Observable<User$1>;
|
|
@@ -6785,7 +6811,7 @@ declare class EmployeeInviteService extends RestService$1<EmployeeInvite$1, Empl
|
|
|
6785
6811
|
protected endpointUri: string;
|
|
6786
6812
|
collectionClass: typeof EmployeeInviteCollection;
|
|
6787
6813
|
modelClass: typeof EmployeeInvite;
|
|
6788
|
-
roles: UserRolesEnum[];
|
|
6814
|
+
roles: UserRolesEnum$1[];
|
|
6789
6815
|
/**
|
|
6790
6816
|
* Import employees for firm from CSV file
|
|
6791
6817
|
* @param file
|
|
@@ -6876,7 +6902,7 @@ declare abstract class RestService<BaseModel, Model extends BaseModel> {
|
|
|
6876
6902
|
messageUpdatedBatch: string;
|
|
6877
6903
|
messageDeleted: string;
|
|
6878
6904
|
messageDeletedBatch: string;
|
|
6879
|
-
roles: UserRolesEnum[];
|
|
6905
|
+
roles: UserRolesEnum$1[];
|
|
6880
6906
|
constructor(environment: any);
|
|
6881
6907
|
protected get apiUrl(): string;
|
|
6882
6908
|
/**
|
|
@@ -7230,7 +7256,7 @@ declare class PropertySaleService extends RestService$1<PropertySale, PropertySa
|
|
|
7230
7256
|
collectionClass: typeof PropertySaleCollection;
|
|
7231
7257
|
endpointUri: string;
|
|
7232
7258
|
disabledMethods: RestMethod[];
|
|
7233
|
-
roles: UserRolesEnum[];
|
|
7259
|
+
roles: UserRolesEnum$1[];
|
|
7234
7260
|
static ɵfac: i0.ɵɵFactoryDeclaration<PropertySaleService, never>;
|
|
7235
7261
|
static ɵprov: i0.ɵɵInjectableDeclaration<PropertySaleService>;
|
|
7236
7262
|
}
|
|
@@ -7241,7 +7267,7 @@ declare class PropertyShareService extends RestService$1<PropertyShare$1, Proper
|
|
|
7241
7267
|
modelClass: typeof PropertyShare;
|
|
7242
7268
|
collectionClass: typeof PropertyShareCollection;
|
|
7243
7269
|
disabledMethods: RestMethod[];
|
|
7244
|
-
roles: UserRolesEnum[];
|
|
7270
|
+
roles: UserRolesEnum$1[];
|
|
7245
7271
|
constructor(environment: any);
|
|
7246
7272
|
/**
|
|
7247
7273
|
* Listen to Event Dispatcher events
|
|
@@ -7362,7 +7388,7 @@ declare class SoleBusinessService extends RestService$1<SoleBusiness$1, SoleBusi
|
|
|
7362
7388
|
modelClass: typeof SoleBusiness;
|
|
7363
7389
|
collectionClass: typeof Collection;
|
|
7364
7390
|
endpointUri: string;
|
|
7365
|
-
roles: UserRolesEnum[];
|
|
7391
|
+
roles: UserRolesEnum$1[];
|
|
7366
7392
|
static ɵfac: i0.ɵɵFactoryDeclaration<SoleBusinessService, never>;
|
|
7367
7393
|
static ɵprov: i0.ɵɵInjectableDeclaration<SoleBusinessService>;
|
|
7368
7394
|
}
|
|
@@ -7380,7 +7406,7 @@ declare class SoleBusinessLossService extends RestService$1<SoleBusinessLoss$1,
|
|
|
7380
7406
|
collectionClass: typeof SoleBusinessLossCollection;
|
|
7381
7407
|
endpointUri: string;
|
|
7382
7408
|
disabledMethods: RestMethod[];
|
|
7383
|
-
roles: UserRolesEnum[];
|
|
7409
|
+
roles: UserRolesEnum$1[];
|
|
7384
7410
|
constructor(environment: any);
|
|
7385
7411
|
listenEvents(): void;
|
|
7386
7412
|
/**
|
|
@@ -7436,7 +7462,7 @@ declare class SoleDetailsService extends RestService$1<SoleDetails$1, SoleDetail
|
|
|
7436
7462
|
collectionClass: typeof Collection;
|
|
7437
7463
|
endpointUri: string;
|
|
7438
7464
|
disabledMethods: RestMethod[];
|
|
7439
|
-
roles: UserRolesEnum[];
|
|
7465
|
+
roles: UserRolesEnum$1[];
|
|
7440
7466
|
get(): Observable<Collection<SoleDetails>>;
|
|
7441
7467
|
static ɵfac: i0.ɵɵFactoryDeclaration<SoleDetailsService, never>;
|
|
7442
7468
|
static ɵprov: i0.ɵɵInjectableDeclaration<SoleDetailsService>;
|
|
@@ -7447,7 +7473,7 @@ declare class SoleInvoiceService extends RestService$1<SoleInvoice$1, SoleInvoic
|
|
|
7447
7473
|
endpointUri: string;
|
|
7448
7474
|
modelClass: typeof SoleInvoice;
|
|
7449
7475
|
collectionClass: typeof SoleInvoiceCollection;
|
|
7450
|
-
roles: UserRolesEnum[];
|
|
7476
|
+
roles: UserRolesEnum$1[];
|
|
7451
7477
|
constructor(environment: any);
|
|
7452
7478
|
updateStatus(invoice: SoleInvoice, status: SoleInvoiceStatusesEnum): Observable<SoleInvoice>;
|
|
7453
7479
|
send(invoice: SoleInvoice, file: File): Observable<Object>;
|
|
@@ -7974,7 +8000,7 @@ declare class PriorTransactionService extends RestService$1<Transaction$1, Trans
|
|
|
7974
8000
|
modelClass: typeof Transaction;
|
|
7975
8001
|
collectionClass: typeof TransactionCollection;
|
|
7976
8002
|
disabledMethods: RestMethod[];
|
|
7977
|
-
roles: UserRolesEnum[];
|
|
8003
|
+
roles: UserRolesEnum$1[];
|
|
7978
8004
|
get(): Observable<TransactionCollection>;
|
|
7979
8005
|
static ɵfac: i0.ɵɵFactoryDeclaration<PriorTransactionService, never>;
|
|
7980
8006
|
static ɵprov: i0.ɵɵInjectableDeclaration<PriorTransactionService>;
|
|
@@ -8035,7 +8061,7 @@ declare class VehicleClaimService extends RestService$1<VehicleClaim$1, VehicleC
|
|
|
8035
8061
|
protected endpointUri: string;
|
|
8036
8062
|
modelClass: typeof VehicleClaim;
|
|
8037
8063
|
collectionClass: typeof VehicleClaimCollection;
|
|
8038
|
-
roles: UserRolesEnum[];
|
|
8064
|
+
roles: UserRolesEnum$1[];
|
|
8039
8065
|
constructor(environment: any);
|
|
8040
8066
|
listenEvents(): void;
|
|
8041
8067
|
static ɵfac: i0.ɵɵFactoryDeclaration<VehicleClaimService, never>;
|
|
@@ -8264,7 +8290,7 @@ declare class HoldingTradeService extends RestService$1<HoldingTrade, HoldingTra
|
|
|
8264
8290
|
collectionClass: typeof HoldingTradeCollection;
|
|
8265
8291
|
endpointUri: string;
|
|
8266
8292
|
disabledMethods: RestMethod[];
|
|
8267
|
-
roles: UserRolesEnum[];
|
|
8293
|
+
roles: UserRolesEnum$1[];
|
|
8268
8294
|
constructor(environment: any);
|
|
8269
8295
|
listenEvents(): void;
|
|
8270
8296
|
private listenNotifications;
|
|
@@ -8278,7 +8304,7 @@ declare class HoldingTypeService extends RestService$1<HoldingType, HoldingType$
|
|
|
8278
8304
|
collectionClass: typeof HoldingTypeCollection;
|
|
8279
8305
|
endpointUri: string;
|
|
8280
8306
|
disabledMethods: RestMethod[];
|
|
8281
|
-
roles: UserRolesEnum[];
|
|
8307
|
+
roles: UserRolesEnum$1[];
|
|
8282
8308
|
constructor(environment: any);
|
|
8283
8309
|
search(query: string, category?: HoldingTypeCategoryEnum): Observable<HoldingTypeCollection>;
|
|
8284
8310
|
listenEvents(): void;
|
|
@@ -8292,7 +8318,7 @@ declare class HoldingSaleService extends RestService$1<HoldingSale, HoldingSale$
|
|
|
8292
8318
|
collectionClass: typeof HoldingSaleCollection;
|
|
8293
8319
|
endpointUri: string;
|
|
8294
8320
|
disabledMethods: RestMethod[];
|
|
8295
|
-
roles: UserRolesEnum[];
|
|
8321
|
+
roles: UserRolesEnum$1[];
|
|
8296
8322
|
static ɵfac: i0.ɵɵFactoryDeclaration<HoldingSaleService, never>;
|
|
8297
8323
|
static ɵprov: i0.ɵɵInjectableDeclaration<HoldingSaleService>;
|
|
8298
8324
|
}
|
|
@@ -8380,7 +8406,7 @@ declare class HoldingTradeImportService extends RestService$1<HoldingTradeImport
|
|
|
8380
8406
|
collectionClass: typeof Collection<HoldingTradeImport$1>;
|
|
8381
8407
|
endpointUri: string;
|
|
8382
8408
|
disabledMethods: RestMethod[];
|
|
8383
|
-
roles: UserRolesEnum[];
|
|
8409
|
+
roles: UserRolesEnum$1[];
|
|
8384
8410
|
import(file: File, exchangeId: number, isTaxFree: boolean): Observable<HoldingTradeImport$1>;
|
|
8385
8411
|
static ɵfac: i0.ɵɵFactoryDeclaration<HoldingTradeImportService, never>;
|
|
8386
8412
|
static ɵprov: i0.ɵɵInjectableDeclaration<HoldingTradeImportService>;
|
|
@@ -8423,7 +8449,7 @@ declare class HomeOfficeClaimService extends RestService$1<HomeOfficeClaimInterf
|
|
|
8423
8449
|
modelClass: typeof HomeOfficeClaim;
|
|
8424
8450
|
collectionClass: typeof HomeOfficeClaimCollection;
|
|
8425
8451
|
disabledMethods: RestMethod[];
|
|
8426
|
-
roles: UserRolesEnum[];
|
|
8452
|
+
roles: UserRolesEnum$1[];
|
|
8427
8453
|
static ɵfac: i0.ɵɵFactoryDeclaration<HomeOfficeClaimService, never>;
|
|
8428
8454
|
static ɵprov: i0.ɵɵInjectableDeclaration<HomeOfficeClaimService>;
|
|
8429
8455
|
}
|
|
@@ -8520,20 +8546,13 @@ declare class TaxReturnItemService extends DataService<TaxReturnItem$1, TaxRetur
|
|
|
8520
8546
|
static ɵprov: i0.ɵɵInjectableDeclaration<TaxReturnItemService>;
|
|
8521
8547
|
}
|
|
8522
8548
|
|
|
8523
|
-
declare class SetupItemService extends RestService$1<SetupItem, AccountSetupItem, AccountSetupItemCollection> {
|
|
8524
|
-
protected endpointUri: string;
|
|
8525
|
-
modelClass: typeof AccountSetupItem;
|
|
8526
|
-
collectionClass: typeof AccountSetupItemCollection;
|
|
8527
|
-
disabledMethods: RestMethod[];
|
|
8528
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SetupItemService, never>;
|
|
8529
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<SetupItemService>;
|
|
8530
|
-
}
|
|
8531
|
-
|
|
8532
8549
|
/**
|
|
8533
8550
|
* Service handling user's account setup process.
|
|
8534
8551
|
* Checks required steps and their completion
|
|
8535
8552
|
*/
|
|
8536
8553
|
declare class AccountSetupService {
|
|
8554
|
+
items: AccountSetupItemCollection;
|
|
8555
|
+
user: User$1;
|
|
8537
8556
|
private setupItemService;
|
|
8538
8557
|
private propertyService;
|
|
8539
8558
|
private incomeSourceService;
|
|
@@ -8557,9 +8576,8 @@ declare class AccountSetupService {
|
|
|
8557
8576
|
private firmService;
|
|
8558
8577
|
private sharesightDetailsService;
|
|
8559
8578
|
private propertyShareService;
|
|
8560
|
-
|
|
8561
|
-
|
|
8562
|
-
constructor(setupItemService: SetupItemService, propertyService: PropertyService, incomeSourceService: IncomeSourceService, bankConnectionService: BankConnectionService, bankAccountsService: BankAccountService, bankTransactionService: BankTransactionService, loanService: LoanService, allocationRuleService: AllocationRuleService, transactionAllocationService: TransactionAllocationService, vehicleClaimService: VehicleClaimService, homeOfficeClaimService: HomeOfficeClaimService, transactionService: TransactionService, depreciationService: DepreciationService, businessService: SoleBusinessService, holdingService: HoldingTradeService, userService: UserService, clientMovementService: ClientMovementService, clientInviteService: ClientInviteService, employeeService: EmployeeService, employeeInviteService: EmployeeInviteService, firmService: FirmService, sharesightDetailsService: SharesightDetailsService, propertyShareService: PropertyShareService);
|
|
8579
|
+
private budgetRuleService;
|
|
8580
|
+
private financialGoalService;
|
|
8563
8581
|
/**
|
|
8564
8582
|
* Get list of account setup items for current user/firm
|
|
8565
8583
|
*/
|
|
@@ -10136,7 +10154,7 @@ interface IReport {
|
|
|
10136
10154
|
};
|
|
10137
10155
|
}
|
|
10138
10156
|
|
|
10139
|
-
declare const REPORTS: Partial<Record<UserRolesEnum, IReport[]>>;
|
|
10157
|
+
declare const REPORTS: Partial<Record<UserRolesEnum$1, IReport[]>>;
|
|
10140
10158
|
|
|
10141
10159
|
declare class TransactionReportItem {
|
|
10142
10160
|
category: ChartAccountsCategoryEnum;
|
|
@@ -10153,13 +10171,17 @@ declare class BudgetRuleItem {
|
|
|
10153
10171
|
tankType: string;
|
|
10154
10172
|
category: string;
|
|
10155
10173
|
frequency: string;
|
|
10174
|
+
isGross: boolean;
|
|
10175
|
+
forecast: number;
|
|
10176
|
+
transactions: TransactionCollection;
|
|
10156
10177
|
actual: number;
|
|
10157
10178
|
variance: number;
|
|
10158
10179
|
variancePercent: number;
|
|
10159
|
-
constructor(rule: BudgetRule, transactions: TransactionCollection, isGross?: boolean);
|
|
10180
|
+
constructor(rule: BudgetRule, transactions: TransactionCollection, dateFrom: Date, dateTo: Date, isGross?: boolean);
|
|
10160
10181
|
getSource(): string;
|
|
10161
10182
|
isIncome(): boolean;
|
|
10162
10183
|
onTrack(): boolean;
|
|
10184
|
+
getName(): string;
|
|
10163
10185
|
}
|
|
10164
10186
|
|
|
10165
10187
|
declare class MyTaxBusinessIncomeOrLossesForm extends AbstractForm<object> {
|
|
@@ -10936,7 +10958,7 @@ declare class User extends ObservableModel {
|
|
|
10936
10958
|
rewardfulReferralKey?: string;
|
|
10937
10959
|
stripeId?: string;
|
|
10938
10960
|
basiqId?: string;
|
|
10939
|
-
roles?: UserRolesEnum[];
|
|
10961
|
+
roles?: UserRolesEnum$1[];
|
|
10940
10962
|
financialYear?: number;
|
|
10941
10963
|
dateOfBirth?: Date;
|
|
10942
10964
|
lastSeen?: Date;
|
|
@@ -11386,12 +11408,27 @@ declare class TransactionReportItemCollection extends Collection<TransactionRepo
|
|
|
11386
11408
|
}
|
|
11387
11409
|
|
|
11388
11410
|
declare class BudgetRuleItemCollection extends Collection<BudgetRuleItem> {
|
|
11389
|
-
|
|
11411
|
+
isGross: boolean;
|
|
11412
|
+
static create(rules: BudgetRuleCollection, transactions: TransactionCollection, dateFrom?: Date, dateTo?: Date, isGross?: boolean): BudgetRuleItemCollection;
|
|
11390
11413
|
get incomes(): BudgetRuleItemCollection;
|
|
11391
11414
|
get expenses(): BudgetRuleItemCollection;
|
|
11392
11415
|
isIncome(): boolean;
|
|
11393
|
-
get
|
|
11416
|
+
get transactions(): TransactionCollection;
|
|
11417
|
+
get rules(): BudgetRuleCollection;
|
|
11418
|
+
get calendarEvents(): MoneyCalendarEventCollection;
|
|
11394
11419
|
onTrack(): boolean;
|
|
11420
|
+
/**
|
|
11421
|
+
* @TODO move to property to avoid recalculations?
|
|
11422
|
+
*/
|
|
11423
|
+
getActualByMonth(month: number): number;
|
|
11424
|
+
/**
|
|
11425
|
+
* @TODO move to property to avoid recalculations?
|
|
11426
|
+
*/
|
|
11427
|
+
getForecastByMonth(month: number): number;
|
|
11428
|
+
/**
|
|
11429
|
+
* @TODO move to property to avoid recalculations?
|
|
11430
|
+
*/
|
|
11431
|
+
get variancePercent(): number;
|
|
11395
11432
|
}
|
|
11396
11433
|
|
|
11397
11434
|
declare class ServiceProductCollection extends Collection<ServiceProduct> {
|
|
@@ -11409,8 +11446,8 @@ declare class ServicePriceCollection extends Collection<ServicePrice> {
|
|
|
11409
11446
|
getMonthlyPackageSum(propertyQuantity: any): number;
|
|
11410
11447
|
get annual(): this;
|
|
11411
11448
|
get annualPackage(): this;
|
|
11412
|
-
getAnnualPackageSum(propertyQuantity:
|
|
11413
|
-
getProperty(
|
|
11449
|
+
getAnnualPackageSum(propertyQuantity: number): number;
|
|
11450
|
+
getProperty(isPackage: boolean): ServicePrice;
|
|
11414
11451
|
get products(): ServiceProductCollection;
|
|
11415
11452
|
}
|
|
11416
11453
|
|
|
@@ -11429,11 +11466,11 @@ declare class ServiceSubscriptionCollection extends Collection<ServiceSubscripti
|
|
|
11429
11466
|
getExpiredTrials(): this;
|
|
11430
11467
|
getExpiredAfter(date?: Date): this;
|
|
11431
11468
|
getPaid(): this;
|
|
11432
|
-
getRoles(): UserRolesEnum[];
|
|
11469
|
+
getRoles(): UserRolesEnum$1[];
|
|
11433
11470
|
/**
|
|
11434
11471
|
* search roles including hierarchy
|
|
11435
11472
|
*/
|
|
11436
|
-
hasRoles(roles: UserRolesEnum | UserRolesEnum[]): boolean;
|
|
11473
|
+
hasRoles(roles: UserRolesEnum$1 | UserRolesEnum$1[]): boolean;
|
|
11437
11474
|
getActivePaid(): ServiceSubscription;
|
|
11438
11475
|
/**
|
|
11439
11476
|
* @TODO vik remove trials replaced by paid item
|
|
@@ -11442,9 +11479,9 @@ declare class ServiceSubscriptionCollection extends Collection<ServiceSubscripti
|
|
|
11442
11479
|
groupByProduct(products: Collection<ServiceProduct>): Dictionary<ServiceSubscription>;
|
|
11443
11480
|
findByProduct(product: ServiceProduct): ServiceSubscription;
|
|
11444
11481
|
filterByProduct(product: ServiceProduct): this;
|
|
11445
|
-
filterByRole(role: UserRolesEnum): this;
|
|
11446
|
-
filterByRoles(roles: UserRolesEnum[]): this;
|
|
11447
|
-
findByRole(role: UserRolesEnum): ServiceSubscription;
|
|
11482
|
+
filterByRole(role: UserRolesEnum$1): this;
|
|
11483
|
+
filterByRoles(roles: UserRolesEnum$1[]): this;
|
|
11484
|
+
findByRole(role: UserRolesEnum$1): ServiceSubscription;
|
|
11448
11485
|
hasPropertyTank(): boolean;
|
|
11449
11486
|
}
|
|
11450
11487
|
|
|
@@ -11810,7 +11847,8 @@ declare enum ServiceProductIdEnum {
|
|
|
11810
11847
|
WORK_TANK = 4,
|
|
11811
11848
|
PROPERTIES = 5,
|
|
11812
11849
|
SOLE_TANK = 6,
|
|
11813
|
-
HOLDINGS_TANK = 7
|
|
11850
|
+
HOLDINGS_TANK = 7,
|
|
11851
|
+
MONEY_TANK = 8
|
|
11814
11852
|
}
|
|
11815
11853
|
|
|
11816
11854
|
declare enum TaxSummaryListEnum {
|