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/esm2022/src/lib/forms/abstract.form.mjs +7 -2
- package/esm2022/src/lib/forms/bank/bank-account/bank-account-properties.form.mjs +3 -4
- package/esm2022/src/lib/services/http/rest/rest.service.mjs +8 -6
- package/esm2022/src/lib/services/http/transaction/transaction-allocation/allocation-rule/allocation-rule.service.mjs +5 -3
- package/fesm2022/taxtank-core.mjs +17 -8
- package/fesm2022/taxtank-core.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/forms/abstract.form.d.ts +1 -1
- package/src/lib/forms/bank/bank-account/bank-account-properties.form.d.ts +1 -1
- package/src/lib/services/http/rest/rest.service.d.ts +4 -4
- package/src/lib/services/http/transaction/transaction-allocation/allocation-rule/allocation-rule.service.d.ts +1 -3
package/package.json
CHANGED
@@ -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
|
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
|
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
|
-
|
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
|
}
|