taxtank-core 0.33.5 → 0.33.6
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/common/src/common.module.mjs +4 -4
- package/esm2022/common/src/interceptors/interceptors.module.mjs +4 -4
- package/esm2022/common/src/interceptors/jwt-interceptor.mjs +5 -5
- package/esm2022/common/src/services/auth/auth.service.mjs +5 -5
- package/esm2022/common/src/services/auth/jwt.service.mjs +3 -3
- package/esm2022/common/src/services/mixpanel.service.mjs +5 -5
- package/esm2022/src/lib/collections/collection-dictionary.mjs +12 -10
- package/esm2022/src/lib/collections/collection.mjs +5 -5
- package/esm2022/src/lib/collections/property/property.collection.mjs +2 -2
- package/esm2022/src/lib/core.module.mjs +4 -4
- package/esm2022/src/lib/forms/abstract.form.mjs +1 -1
- package/esm2022/src/lib/forms/address/address.form.mjs +1 -1
- package/esm2022/src/lib/forms/firm/client-movement.form.mjs +4 -4
- package/esm2022/src/lib/forms/firm/employee-details.form.mjs +4 -4
- package/esm2022/src/lib/interceptors/basiq-client-id.interceptor.mjs +4 -4
- package/esm2022/src/lib/interceptors/basiq-token.interceptor.mjs +4 -4
- package/esm2022/src/lib/interceptors/corelogic-interceptor.mjs +5 -5
- package/esm2022/src/lib/interceptors/financial-year-interceptor.mjs +5 -5
- package/esm2022/src/lib/interceptors/interceptors.module.mjs +4 -4
- package/esm2022/src/lib/interceptors/preloader.interceptor.mjs +4 -4
- package/esm2022/src/lib/interceptors/rewardful.interceptor.mjs +5 -5
- package/esm2022/src/lib/interceptors/user-switcher-interceptor.mjs +5 -5
- package/esm2022/src/lib/models/depreciation/depreciation.mjs +1 -1
- package/esm2022/src/lib/models/financial-year/financial-year.mjs +1 -1
- package/esm2022/src/lib/models/report/index.mjs +3 -1
- package/esm2022/src/lib/models/report/report.interface.mjs +2 -0
- package/esm2022/src/lib/models/report/reports.const.mjs +73 -0
- package/esm2022/src/lib/models/service-subscription/service-subscription.mjs +2 -2
- package/esm2022/src/lib/models/sole/sole-invoice.mjs +1 -1
- package/esm2022/src/lib/models/transaction/transaction.mjs +1 -1
- package/esm2022/src/lib/models/vehicle/vehicle-claim.mjs +1 -1
- package/esm2022/src/lib/pipes/app-currency.pipe.mjs +3 -3
- package/esm2022/src/lib/pipes/safe-url.pipe.mjs +4 -4
- package/esm2022/src/lib/services/account-setup/account-setup.service.mjs +4 -4
- package/esm2022/src/lib/services/asset/assets.service.mjs +5 -5
- package/esm2022/src/lib/services/bank/bank-account-calculation.service.mjs +3 -3
- package/esm2022/src/lib/services/data.service.mjs +3 -3
- package/esm2022/src/lib/services/event/event-dispatcher.service.mjs +3 -3
- package/esm2022/src/lib/services/event/sse.service.mjs +5 -5
- package/esm2022/src/lib/services/export/export-formatter.service.mjs +4 -4
- package/esm2022/src/lib/services/firm/current-firm-branch.service.mjs +3 -3
- package/esm2022/src/lib/services/header-title/header-title.service.mjs +4 -4
- package/esm2022/src/lib/services/http/address/address.service.mjs +5 -5
- package/esm2022/src/lib/services/http/bank/bank-account/bank-account.service.mjs +5 -5
- package/esm2022/src/lib/services/http/bank/bank-connection/bank-connection.service.mjs +5 -5
- package/esm2022/src/lib/services/http/bank/bank-transaction/bank-transaction.service.mjs +5 -5
- package/esm2022/src/lib/services/http/bank/bank.service.mjs +3 -3
- package/esm2022/src/lib/services/http/bank/basiq/basiq-token.service.mjs +3 -3
- package/esm2022/src/lib/services/http/bank/basiq/basiq.service.mjs +6 -6
- package/esm2022/src/lib/services/http/budget/budget.service.mjs +3 -3
- package/esm2022/src/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.mjs +3 -3
- package/esm2022/src/lib/services/http/chart-accounts/chart-accounts.service.mjs +3 -3
- package/esm2022/src/lib/services/http/chat/chat.service.mjs +5 -5
- package/esm2022/src/lib/services/http/chat/message-document.service.mjs +5 -5
- package/esm2022/src/lib/services/http/chat/message.service.mjs +5 -5
- package/esm2022/src/lib/services/http/client/annual-client-details.service.mjs +3 -3
- package/esm2022/src/lib/services/http/client/capital-loss/capital-loss.service.mjs +4 -4
- package/esm2022/src/lib/services/http/client/client-coupon.service.mjs +3 -3
- package/esm2022/src/lib/services/http/client/occupation/occupation.service.mjs +5 -5
- package/esm2022/src/lib/services/http/depreciation/depreciation-capital-project/depreciation-capital-project.service.mjs +3 -3
- package/esm2022/src/lib/services/http/depreciation/depreciation.service.mjs +5 -5
- package/esm2022/src/lib/services/http/document/document-folder/document-folder.service.mjs +3 -3
- package/esm2022/src/lib/services/http/document/document.service.mjs +3 -3
- package/esm2022/src/lib/services/http/facebook/facebook.service.mjs +6 -6
- package/esm2022/src/lib/services/http/file/file.service.mjs +3 -3
- package/esm2022/src/lib/services/http/firm/client-invite/client-invite.service.mjs +5 -5
- package/esm2022/src/lib/services/http/firm/client-movement/client-movement.service.mjs +5 -5
- package/esm2022/src/lib/services/http/firm/employee/employee.service.mjs +3 -3
- package/esm2022/src/lib/services/http/firm/employee-invite/employee-invite.service.mjs +3 -3
- package/esm2022/src/lib/services/http/firm/firm-branch/firm-branch.service.mjs +4 -4
- package/esm2022/src/lib/services/http/firm/firm.service.mjs +5 -5
- package/esm2022/src/lib/services/http/firm/portfolio-report/client-portfolio-report.service.mjs +5 -5
- package/esm2022/src/lib/services/http/google/google.service.mjs +5 -5
- package/esm2022/src/lib/services/http/holding/holding-import/holding-import.service.mjs +4 -4
- package/esm2022/src/lib/services/http/holding/holding-sale.service.mjs +3 -3
- package/esm2022/src/lib/services/http/holding/holding-type.service.mjs +3 -3
- package/esm2022/src/lib/services/http/holding/holding.service.mjs +5 -5
- package/esm2022/src/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.mjs +5 -5
- package/esm2022/src/lib/services/http/income-source/income-source.service.mjs +5 -5
- package/esm2022/src/lib/services/http/income-source/salary-forecast/salary-forecast.service.mjs +5 -5
- package/esm2022/src/lib/services/http/income-source/sole-forecast/sole-forecast.service.mjs +5 -5
- package/esm2022/src/lib/services/http/loan/borrowing-expense/borrowing-expense.service.mjs +5 -5
- package/esm2022/src/lib/services/http/loan/loan.service.mjs +5 -5
- package/esm2022/src/lib/services/http/pdf/pdf.service.mjs +5 -5
- package/esm2022/src/lib/services/http/property/borrowing-report/borrowing-report.service.mjs +3 -3
- package/esm2022/src/lib/services/http/property/property-category/property-category.service.mjs +3 -3
- package/esm2022/src/lib/services/http/property/property-category-movement/property-category-movement.service.mjs +3 -3
- package/esm2022/src/lib/services/http/property/property-document/property-document.service.mjs +3 -3
- package/esm2022/src/lib/services/http/property/property-sale/property-sale.service.mjs +3 -3
- package/esm2022/src/lib/services/http/property/property-share/property-share.service.mjs +5 -5
- package/esm2022/src/lib/services/http/property/property-valuation/property-valuation.service.mjs +3 -3
- package/esm2022/src/lib/services/http/property/property.service.mjs +5 -5
- package/esm2022/src/lib/services/http/rest/rest-old.service.mjs +5 -5
- package/esm2022/src/lib/services/http/rest/rest.service.mjs +5 -5
- package/esm2022/src/lib/services/http/service-notification/service-notification.service.mjs +5 -5
- package/esm2022/src/lib/services/http/setup-item/setup-item.service.mjs +3 -3
- package/esm2022/src/lib/services/http/sole/bas-report/bas-report.service.mjs +3 -3
- package/esm2022/src/lib/services/http/sole/sole-business/sole-business.service.mjs +3 -3
- package/esm2022/src/lib/services/http/sole/sole-business-activity/sole-business-activity.service.mjs +3 -3
- package/esm2022/src/lib/services/http/sole/sole-business-loss/sole-business-loss-rules/sole-business-loss-offset-rule.service.mjs +3 -3
- package/esm2022/src/lib/services/http/sole/sole-business-loss/sole-business-loss.service.mjs +5 -5
- package/esm2022/src/lib/services/http/sole/sole-contact/sole-contact.service.mjs +3 -3
- package/esm2022/src/lib/services/http/sole/sole-depreciation-method/sole-depreciation-method.service.mjs +5 -5
- package/esm2022/src/lib/services/http/sole/sole-details/sole-details.service.mjs +5 -5
- package/esm2022/src/lib/services/http/sole/sole-invoice/sole-invoice.service.mjs +5 -5
- package/esm2022/src/lib/services/http/sole/sole-invoice-template/sole-invoice-template.service.mjs +3 -3
- package/esm2022/src/lib/services/http/subscription/service-payment/service-payment.service.mjs +3 -3
- package/esm2022/src/lib/services/http/subscription/service-payment-method/service-payment-method.service.mjs +5 -5
- package/esm2022/src/lib/services/http/subscription/service-price/service-price.service.mjs +3 -3
- package/esm2022/src/lib/services/http/subscription/service-product/service-product.service.mjs +3 -3
- package/esm2022/src/lib/services/http/subscription/service-subscription/subscription.service.mjs +5 -5
- package/esm2022/src/lib/services/http/tax-review/tax-review-history/tax-review-history.service.mjs +5 -5
- package/esm2022/src/lib/services/http/tax-review/tax-review.service.mjs +5 -5
- package/esm2022/src/lib/services/http/tax-summary/tax-summary.service.mjs +5 -5
- package/esm2022/src/lib/services/http/transaction/transaction-allocation/allocation-rule/allocation-rule.service.mjs +3 -3
- package/esm2022/src/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.mjs +5 -5
- package/esm2022/src/lib/services/http/transaction/transaction.service.mjs +5 -5
- package/esm2022/src/lib/services/http/user/financial-year/financial-year.service.mjs +5 -5
- package/esm2022/src/lib/services/http/user/user-event-setting/user-event-setting.service.mjs +3 -3
- package/esm2022/src/lib/services/http/user/user-event-type/user-event-type.service.mjs +3 -3
- package/esm2022/src/lib/services/http/user/user.service.mjs +5 -5
- package/esm2022/src/lib/services/http/user/users-invite/users-invite.service.mjs +3 -3
- package/esm2022/src/lib/services/http/vehicle/vehicle-claim-details.service.mjs +5 -5
- package/esm2022/src/lib/services/http/vehicle/vehicle-claim.service.mjs +5 -5
- package/esm2022/src/lib/services/http/vehicle/vehicle-logbook/vehicle-logbook.service.mjs +3 -3
- package/esm2022/src/lib/services/http/vehicle/vehicle.service.mjs +4 -4
- package/esm2022/src/lib/services/http/youtube/youtube.service.mjs +6 -6
- package/esm2022/src/lib/services/intercom/intercom.service.mjs +5 -5
- package/esm2022/src/lib/services/json/chart-accounts/chart-accounts-value.service.mjs +4 -4
- package/esm2022/src/lib/services/json/holding/holding-type-exchange.service.mjs +4 -4
- package/esm2022/src/lib/services/json/income-source/income-source-type.service.mjs +4 -4
- package/esm2022/src/lib/services/json/tax-exemption/tax-exemption.service.mjs +4 -4
- package/esm2022/src/lib/services/json/tax-return/tax-return-item.service.mjs +4 -4
- package/esm2022/src/lib/services/pdf/pdf-from-dom-element/pdf-from-dom-element.service.mjs +3 -3
- package/esm2022/src/lib/services/pdf/pdf-from-table/pdf-from-data-table/pdf-from-data-table.service.mjs +4 -4
- package/esm2022/src/lib/services/pdf/pdf-from-table/pdf-from-html-table/pdf-from-html-table.service.mjs +3 -3
- package/esm2022/src/lib/services/pdf/pdf-from-table/pdf-from-table.service.mjs +3 -3
- package/esm2022/src/lib/services/preloader/preloader.service.mjs +4 -4
- package/esm2022/src/lib/services/property/corelogic/corelogic.service.mjs +5 -5
- package/esm2022/src/lib/services/property/equity-position-chart/equity-position-chart.service.mjs +5 -5
- package/esm2022/src/lib/services/property/property-calculation/property-calculation.service.mjs +3 -3
- package/esm2022/src/lib/services/report/property/property-transaction-report.service.mjs +4 -4
- package/esm2022/src/lib/services/toast/toast.service.mjs +3 -3
- package/esm2022/src/lib/services/user/user-switcher.service.mjs +3 -3
- package/esm2022/src/lib/services/xlsx/xlsx.service.mjs +3 -3
- package/esm2022/src/lib/validators/unique-email.validator.mjs +4 -4
- package/fesm2022/taxtank-core-common.mjs +26 -26
- package/fesm2022/taxtank-core.mjs +595 -522
- package/fesm2022/taxtank-core.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/collections/collection-dictionary.d.ts +1 -1
- package/src/lib/collections/collection.d.ts +3 -4
- package/src/lib/models/report/index.d.ts +2 -0
- package/src/lib/models/report/report.interface.d.ts +7 -0
- package/src/lib/models/report/reports.const.d.ts +3 -0
package/package.json
CHANGED
@@ -4,7 +4,7 @@ import { AbstractModel } from '../db/Models';
|
|
4
4
|
* @TODO refactor with Map
|
5
5
|
* List of collections grouped by passed property
|
6
6
|
*/
|
7
|
-
export declare class CollectionDictionary<Collection extends BaseCollection<
|
7
|
+
export declare class CollectionDictionary<Collection extends BaseCollection<object>> {
|
8
8
|
/**
|
9
9
|
* List of grouped collections
|
10
10
|
*/
|
@@ -1,10 +1,9 @@
|
|
1
1
|
import { CollectionDictionary } from './collection-dictionary';
|
2
|
-
import { AbstractModel } from '../db/Models';
|
3
2
|
import { Dictionary, FinancialYear } from '../models';
|
4
3
|
/**
|
5
4
|
* Base collection class. Contains common properties and methods for all collections
|
6
5
|
*/
|
7
|
-
export declare class Collection<Model extends
|
6
|
+
export declare class Collection<Model extends object> implements Iterable<Model> {
|
8
7
|
items: Model[];
|
9
8
|
/**
|
10
9
|
* index of current item, used to iterate over the collection
|
@@ -47,13 +46,13 @@ export declare class Collection<Model extends AbstractModel> implements Iterable
|
|
47
46
|
* @TODO performance check this.create performance and why we do it instead of changing collection
|
48
47
|
*/
|
49
48
|
unshift(...items: Model[]): this;
|
50
|
-
remove(
|
49
|
+
remove(items: Model[], path?: string): this;
|
51
50
|
/**
|
52
51
|
* @TODO it's filter, not remove
|
53
52
|
*/
|
54
53
|
removeBy(path: string, values: any): this;
|
55
54
|
replaceBy(path: string, value: any, item: Model): this;
|
56
|
-
diff(items: Model[]): this;
|
55
|
+
diff(items: Model[], path?: string): this;
|
57
56
|
minBy(path: string): Model;
|
58
57
|
maxBy(path: string): Model;
|
59
58
|
/**
|