taxtank-core 0.33.59 → 0.33.60

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.33.59",
3
+ "version": "0.33.60",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^17.0.0",
@@ -32,7 +32,7 @@ export declare abstract class AbstractForm<Model, Controls extends ControlsInter
32
32
  protected constructor(controls: Controls, model?: Model, validatorOrOpts?: ValidatorFn | ValidatorFn[] | AbstractControlOptions | null, asyncValidator?: AsyncValidatorFn | AsyncValidatorFn[] | null);
33
33
  get saved(): boolean;
34
34
  get currentValue(): Model;
35
- toggleEnabledState(control: AbstractControl): void;
35
+ toggleEnabledState(control?: AbstractControl): void;
36
36
  /**
37
37
  * Check validation and return a new instance of generic model.
38
38
  * Merge form value to initial object
@@ -1,5 +1,5 @@
1
1
  import { UntypedFormArray } from '@angular/forms';
2
- import { BankAccountProperty } from '../../../models/bank/bank-account-property';
2
+ import { BankAccountProperty } from '../../../models';
3
3
  /**
4
4
  * Form array with bank account properties
5
5
  * @TODO create AbstractFormArray
@@ -49,10 +49,6 @@ export declare abstract class RestService<BaseModel, Model extends AbstractModel
49
49
  * @TODO: TT-4642 check customHttpErrorMessages fix change to backend errors
50
50
  */
51
51
  protected useBackendError: boolean;
52
- /**
53
- * messages that can be redefined in other classes to customize httpErrorMessages
54
- */
55
- protected customHttpErrorMessages: {};
56
52
  /**
57
53
  * mapping with HTTP errors codes and general messages
58
54
  */
@@ -104,6 +100,10 @@ export declare abstract class RestService<BaseModel, Model extends AbstractModel
104
100
  * Remove multiple Model instances from database
105
101
  */
106
102
  deleteBatch(models: Model[]): Observable<void>;
103
+ /**
104
+ * method with messages that can be redefined in other classes to customize httpErrorMessages
105
+ */
106
+ protected getCustomHttpErrorMessages(): Record<number, string>;
107
107
  /**
108
108
  * Handle response errors - shows error in toast
109
109
  * and throws error further
@@ -7,9 +7,7 @@ export declare class AllocationRuleService extends RestService<AllocationRuleBas
7
7
  protected endpointUri: string;
8
8
  collectionClass: typeof AllocationRuleCollection;
9
9
  modelClass: typeof AllocationRule;
10
- customHttpErrorMessages: {
11
- 422: string;
12
- };
10
+ protected getCustomHttpErrorMessages(): Record<number, string>;
13
11
  static ɵfac: i0.ɵɵFactoryDeclaration<AllocationRuleService, never>;
14
12
  static ɵprov: i0.ɵɵInjectableDeclaration<AllocationRuleService>;
15
13
  }