ngx-t-forms-types 0.0.5 → 0.0.7
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/dist/interfaces/FormBuilder/elementEditor.d.ts +1 -0
- package/dist/interfaces/FormBuilder/elementEditor.js +1 -0
- package/dist/interfaces/FormBuilder/inputConfig/ElementEditConfig.js +9 -0
- package/dist/interfaces/formInput/IMscoaAccount.d.ts +13 -0
- package/dist/schemas/MscoaConfigSchema.js +2 -0
- package/package.json +1 -1
|
@@ -25,6 +25,7 @@ export declare enum ElementEditorTypes {
|
|
|
25
25
|
ConfigMscoaSegments = "configMscoaSegments",
|
|
26
26
|
ConfigMscoaAdditionalInputs = "configMscoaAdditionalInputs",
|
|
27
27
|
MongoPipelineBuilder = "mongoPipelineBuilder",
|
|
28
|
+
ChipOptionsCreator = "chipOptionsCreator",
|
|
28
29
|
default = "default"
|
|
29
30
|
}
|
|
30
31
|
export interface ElementEditorConfigInterface {
|
|
@@ -19,6 +19,7 @@ export var ElementEditorTypes;
|
|
|
19
19
|
ElementEditorTypes["ConfigMscoaSegments"] = "configMscoaSegments";
|
|
20
20
|
ElementEditorTypes["ConfigMscoaAdditionalInputs"] = "configMscoaAdditionalInputs";
|
|
21
21
|
ElementEditorTypes["MongoPipelineBuilder"] = "mongoPipelineBuilder";
|
|
22
|
+
ElementEditorTypes["ChipOptionsCreator"] = "chipOptionsCreator";
|
|
22
23
|
ElementEditorTypes["default"] = "default";
|
|
23
24
|
})(ElementEditorTypes || (ElementEditorTypes = {}));
|
|
24
25
|
// interface TStringExpressionValidationTest{
|
|
@@ -173,6 +173,15 @@ export var ElementConfig = {
|
|
|
173
173
|
hint: "Configure SCOA segments to be used in the input",
|
|
174
174
|
id: "ba1a5b79-b071-44a6-b39a-bf1c2fafcda5"
|
|
175
175
|
},
|
|
176
|
+
{
|
|
177
|
+
name: AllFormInputPrimaryKeys.MscoaConfig,
|
|
178
|
+
deepBind: ['mscoaConfig', 'extensionAccountsForSegments'],
|
|
179
|
+
editType: ElementEditorTypes.ChipOptionsCreator,
|
|
180
|
+
label: 'Additional account selection options',
|
|
181
|
+
fetchOptions: ['mscoaConfig'],
|
|
182
|
+
hint: "Config scoa segments counter account options for segments",
|
|
183
|
+
id: "634b3c1a-f250-4b1a-8771-999b34882515"
|
|
184
|
+
},
|
|
176
185
|
{
|
|
177
186
|
name: AllFormInputPrimaryKeys.MscoaConfig,
|
|
178
187
|
deepBind: ['mscoaConfig', 'inputs'],
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import { IBasicFormInput } from "./BasicFormInputInterface";
|
|
2
2
|
import { ScoaInnerInput } from "./MscoaInput";
|
|
3
|
+
export interface IVersion {
|
|
4
|
+
versionNumber: number;
|
|
5
|
+
description: string;
|
|
6
|
+
updatedAt?: Date;
|
|
7
|
+
}
|
|
8
|
+
export interface IPreviousVersion {
|
|
9
|
+
versionNumber: number;
|
|
10
|
+
description: string;
|
|
11
|
+
}
|
|
3
12
|
export interface IScoaAccount {
|
|
4
13
|
_id: {
|
|
5
14
|
$oid: string;
|
|
@@ -30,6 +39,8 @@ export interface IScoaAccount {
|
|
|
30
39
|
SCOALevel: string;
|
|
31
40
|
ShortDescription: string;
|
|
32
41
|
VATStatus: string;
|
|
42
|
+
version: IVersion;
|
|
43
|
+
previousVersion: IPreviousVersion[];
|
|
33
44
|
createdAt: {
|
|
34
45
|
$date: string;
|
|
35
46
|
};
|
|
@@ -67,11 +78,13 @@ export interface IIncludedSegmentConfig {
|
|
|
67
78
|
label: string;
|
|
68
79
|
readOnly: boolean;
|
|
69
80
|
singleSelect: boolean;
|
|
81
|
+
additionalAccounts: string[];
|
|
70
82
|
segmentExtension: boolean;
|
|
71
83
|
id: string;
|
|
72
84
|
}
|
|
73
85
|
export interface IScoaInputConfig {
|
|
74
86
|
inputs: ScoaInnerInput[];
|
|
87
|
+
extensionAccountsForSegments?: string[];
|
|
75
88
|
segments: IIncludedSegmentConfig[] | undefined;
|
|
76
89
|
showAllSegments: boolean;
|
|
77
90
|
}
|
|
@@ -4,6 +4,7 @@ export const IncludedSegmentConfigSchema = Joi.object({
|
|
|
4
4
|
customSegment: Joi.string().optional(),
|
|
5
5
|
label: Joi.string().required(),
|
|
6
6
|
readOnly: Joi.boolean().required(),
|
|
7
|
+
additionalAccounts: Joi.array().items(Joi.string()).optional(),
|
|
7
8
|
singleSelect: Joi.boolean().required(),
|
|
8
9
|
segmentExtension: Joi.boolean().required(),
|
|
9
10
|
id: Joi.string().required()
|
|
@@ -11,6 +12,7 @@ export const IncludedSegmentConfigSchema = Joi.object({
|
|
|
11
12
|
export const MscoaInputConfigSchema = Joi.object({
|
|
12
13
|
inputs: Joi.array().items(Joi.object().pattern(/./, Joi.any())).required(),
|
|
13
14
|
segments: Joi.array().items(IncludedSegmentConfigSchema).min(1).required(),
|
|
15
|
+
extensionAccountsForSegments: Joi.array().items(Joi.string()).optional(),
|
|
14
16
|
showAllSegments: Joi.boolean().required()
|
|
15
17
|
});
|
|
16
18
|
export function validateMscoaInputConfig(value) {
|