taxtank-core 0.32.54 → 0.32.58

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.
Files changed (28) hide show
  1. package/esm2022/lib/collections/chart-accounts.collection.mjs +4 -1
  2. package/esm2022/lib/collections/subscription/service-subscription.collection.mjs +2 -2
  3. package/esm2022/lib/db/Models/chart-accounts/chart-accounts.mjs +1 -1
  4. package/esm2022/lib/forms/abstract.form.mjs +2 -1
  5. package/esm2022/lib/forms/chart-accounts/chart-accounts.form.mjs +14 -0
  6. package/esm2022/lib/forms/chart-accounts/index.mjs +2 -0
  7. package/esm2022/lib/forms/index.mjs +2 -1
  8. package/esm2022/lib/forms/transaction/allocation-rule-condition.form.mjs +4 -2
  9. package/esm2022/lib/models/endpoint/endpoints.const.mjs +4 -1
  10. package/esm2022/lib/models/sole/sole-invoice.mjs +2 -2
  11. package/esm2022/lib/services/http/chart-accounts/chart-accounts-messages.enum.mjs +8 -0
  12. package/esm2022/lib/services/http/chart-accounts/chart-accounts.service.mjs +2 -2
  13. package/esm2022/lib/services/http/chart-accounts/index.mjs +2 -1
  14. package/esm2022/lib/services/http/chat/chat.service.mjs +1 -2
  15. package/esm2022/lib/validators/group.validator.mjs +11 -0
  16. package/esm2022/lib/validators/unique-email.validator.mjs +3 -4
  17. package/fesm2022/taxtank-core.mjs +42 -7
  18. package/fesm2022/taxtank-core.mjs.map +1 -1
  19. package/lib/collections/chart-accounts.collection.d.ts +1 -0
  20. package/lib/db/Models/chart-accounts/chart-accounts.d.ts +3 -1
  21. package/lib/forms/abstract.form.d.ts +1 -0
  22. package/lib/forms/chart-accounts/chart-accounts.form.d.ts +6 -0
  23. package/lib/forms/chart-accounts/index.d.ts +1 -0
  24. package/lib/forms/index.d.ts +1 -0
  25. package/lib/services/http/chart-accounts/chart-accounts-messages.enum.d.ts +6 -0
  26. package/lib/services/http/chart-accounts/index.d.ts +1 -0
  27. package/lib/validators/group.validator.d.ts +5 -0
  28. package/package.json +1 -1
@@ -2,6 +2,7 @@ import { Collection } from './collection';
2
2
  import { ChartAccounts } from '../models';
3
3
  export declare class ChartAccountsCollection extends Collection<ChartAccounts> {
4
4
  constructor(items?: ChartAccounts[]);
5
+ getManual(): this;
5
6
  /**
6
7
  * Get 'Kms travelled for work' related chart account value
7
8
  */
@@ -1,10 +1,11 @@
1
1
  import { ChartAccountsCategoryEnum, ChartAccountsTypeEnum } from '../../Enums';
2
2
  import { ChartAccountsHeading } from './chart-accounts-heading';
3
- import { TaxReturnItem } from '../tax-return/tax-return-item';
3
+ import { TaxReturnItem } from '../tax-return';
4
4
  import { ChartAccountsValue } from './chart-accounts-value';
5
5
  import { ChartAccountsMetaField } from './chart-accounts-meta-field';
6
6
  import { ChartAccountsDepreciation } from './chart-accounts-depreciation';
7
7
  import { AbstractModel } from '../abstract-model';
8
+ import { User } from '../user/user';
8
9
  export declare class ChartAccounts extends AbstractModel {
9
10
  name?: string;
10
11
  shortName?: string;
@@ -20,4 +21,5 @@ export declare class ChartAccounts extends AbstractModel {
20
21
  metaFields?: ChartAccountsMetaField[];
21
22
  depreciations?: ChartAccountsDepreciation[];
22
23
  isGST?: boolean;
24
+ user: User;
23
25
  }
@@ -6,6 +6,7 @@ import { EventEmitter, Type } from '@angular/core';
6
6
  * @TODO Alex TT-2190: refactor: check and improve logic
7
7
  */
8
8
  export declare abstract class AbstractForm<Model> extends UntypedFormGroup {
9
+ static inputMaxLength: number;
9
10
  /**
10
11
  * Initial form value for comparison with changes to check saved/unsaved state
11
12
  */
@@ -0,0 +1,6 @@
1
+ import { AbstractForm } from '../abstract.form';
2
+ import { ChartAccounts } from '../../models';
3
+ export declare class ChartAccountsForm extends AbstractForm<ChartAccounts> {
4
+ private chartAccounts;
5
+ constructor(chartAccounts?: ChartAccounts);
6
+ }
@@ -0,0 +1 @@
1
+ export * from './chart-accounts.form';
@@ -23,3 +23,4 @@ export * from './form-validations.enum';
23
23
  export * from './transaction';
24
24
  export * from './depreciation';
25
25
  export * from './holding';
26
+ export * from './chart-accounts';
@@ -0,0 +1,6 @@
1
+ export declare enum ChartAccountsMessagesEnum {
2
+ CREATED = "Chart accounts created",
3
+ UPDATED = "Chart accounts updated",
4
+ DELETED = "Chart accounts deleted",
5
+ CONFIRM_DELETE = "Are you sure you want to delete chart accounts?"
6
+ }
@@ -1,2 +1,3 @@
1
1
  export * from './chart-accounts-depreciations';
2
2
  export * from './chart-accounts.service';
3
+ export * from './chart-accounts-messages.enum';
@@ -0,0 +1,5 @@
1
+ import { ValidatorFn } from '@angular/forms';
2
+ /**
3
+ * Custom validator that applies another validator to all controls in a FormGroup
4
+ */
5
+ export declare function groupValidator(validatorFn: ValidatorFn): ValidatorFn;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.32.54",
3
+ "version": "0.32.58",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/compiler": "^16.2.12",