ngx-t-forms-types 0.0.1
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/Configs/currencies.d.ts +6 -0
- package/dist/Configs/currencies.js +1083 -0
- package/dist/Configs/datePipes.d.ts +4 -0
- package/dist/Configs/datePipes.js +16 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +8 -0
- package/dist/interfaces/Form/ArrayFunctions.d.ts +9 -0
- package/dist/interfaces/Form/ArrayFunctions.js +7 -0
- package/dist/interfaces/Form/CustomeConfigInter.d.ts +10 -0
- package/dist/interfaces/Form/CustomeConfigInter.js +1 -0
- package/dist/interfaces/Form/FileUploadFn.d.ts +11 -0
- package/dist/interfaces/Form/FileUploadFn.js +1 -0
- package/dist/interfaces/Form/FormInClassUtils.d.ts +52 -0
- package/dist/interfaces/Form/FormInClassUtils.js +1 -0
- package/dist/interfaces/Form/IFormsInitStateInterface.d.ts +51 -0
- package/dist/interfaces/Form/IFormsInitStateInterface.js +14 -0
- package/dist/interfaces/Form/PrePopulateDataInterface.d.ts +4 -0
- package/dist/interfaces/Form/PrePopulateDataInterface.js +1 -0
- package/dist/interfaces/Form/formChangeHistory.d.ts +5 -0
- package/dist/interfaces/Form/formChangeHistory.js +1 -0
- package/dist/interfaces/Form/formInterface.d.ts +19 -0
- package/dist/interfaces/Form/formInterface.js +1 -0
- package/dist/interfaces/Form/formSubmissionHandleInterface.d.ts +7 -0
- package/dist/interfaces/Form/formSubmissionHandleInterface.js +1 -0
- package/dist/interfaces/Form/index.d.ts +12 -0
- package/dist/interfaces/Form/index.js +2 -0
- package/dist/interfaces/FormBuilder/DefaultEelement.d.ts +3 -0
- package/dist/interfaces/FormBuilder/DefaultEelement.js +741 -0
- package/dist/interfaces/FormBuilder/DefaultInputConfigInterface.d.ts +143 -0
- package/dist/interfaces/FormBuilder/DefaultInputConfigInterface.js +1 -0
- package/dist/interfaces/FormBuilder/ElementEditorTypes.d.ts +31 -0
- package/dist/interfaces/FormBuilder/ElementEditorTypes.js +40 -0
- package/dist/interfaces/FormBuilder/FormBuilderCallBackFunctions.d.ts +20 -0
- package/dist/interfaces/FormBuilder/FormBuilderCallBackFunctions.js +1 -0
- package/dist/interfaces/FormBuilder/FormInputKeys.d.ts +86 -0
- package/dist/interfaces/FormBuilder/FormInputKeys.js +90 -0
- package/dist/interfaces/FormBuilder/elementEditor.d.ts +82 -0
- package/dist/interfaces/FormBuilder/elementEditor.js +34 -0
- package/dist/interfaces/FormBuilder/index.d.ts +10 -0
- package/dist/interfaces/FormBuilder/index.js +6 -0
- package/dist/interfaces/FormBuilder/inputConfig/ElementEditConfig.d.ts +3 -0
- package/dist/interfaces/FormBuilder/inputConfig/ElementEditConfig.js +644 -0
- package/dist/interfaces/FormBuilder/inputConfig/getInputValueFromElement.d.ts +1 -0
- package/dist/interfaces/FormBuilder/inputConfig/getInputValueFromElement.js +37 -0
- package/dist/interfaces/FormBuilder/postmanCollection.d.ts +126 -0
- package/dist/interfaces/FormBuilder/postmanCollection.js +1 -0
- package/dist/interfaces/FormBuilder/workflowSelectionConfig.d.ts +7 -0
- package/dist/interfaces/FormBuilder/workflowSelectionConfig.js +1 -0
- package/dist/interfaces/FormSlide/accessTree.d.ts +23 -0
- package/dist/interfaces/FormSlide/accessTree.js +1 -0
- package/dist/interfaces/FormSlide/controlValidation.d.ts +12 -0
- package/dist/interfaces/FormSlide/controlValidation.js +1 -0
- package/dist/interfaces/FormSlide/formSlideInterface.d.ts +22 -0
- package/dist/interfaces/FormSlide/formSlideInterface.js +7 -0
- package/dist/interfaces/FormSlide/index.d.ts +4 -0
- package/dist/interfaces/FormSlide/index.js +2 -0
- package/dist/interfaces/Tower/ITowerFormSteps.d.ts +14 -0
- package/dist/interfaces/Tower/ITowerFormSteps.js +1 -0
- package/dist/interfaces/Tower/index.d.ts +2 -0
- package/dist/interfaces/Tower/index.js +1 -0
- package/dist/interfaces/environment/IStoreFunctions.d.ts +58 -0
- package/dist/interfaces/environment/IStoreFunctions.js +1 -0
- package/dist/interfaces/environment/environment.d.ts +6 -0
- package/dist/interfaces/environment/environment.js +1 -0
- package/dist/interfaces/environment/index.d.ts +2 -0
- package/dist/interfaces/environment/index.js +1 -0
- package/dist/interfaces/formInput/APIDataFetchingConfigurationInterface.d.ts +54 -0
- package/dist/interfaces/formInput/APIDataFetchingConfigurationInterface.js +7 -0
- package/dist/interfaces/formInput/BasicFormInputInterface.d.ts +141 -0
- package/dist/interfaces/formInput/BasicFormInputInterface.js +99 -0
- package/dist/interfaces/formInput/ConditionalInputRule.d.ts +7 -0
- package/dist/interfaces/formInput/ConditionalInputRule.js +1 -0
- package/dist/interfaces/formInput/DateRangePickerInput.d.ts +9 -0
- package/dist/interfaces/formInput/DateRangePickerInput.js +1 -0
- package/dist/interfaces/formInput/FileUploadInputInterface.d.ts +49 -0
- package/dist/interfaces/formInput/FileUploadInputInterface.js +40 -0
- package/dist/interfaces/formInput/FormControlCustomValidatorsInterface.d.ts +10 -0
- package/dist/interfaces/formInput/FormControlCustomValidatorsInterface.js +1 -0
- package/dist/interfaces/formInput/FormInputBasicOptionInterface.d.ts +4 -0
- package/dist/interfaces/formInput/FormInputBasicOptionInterface.js +1 -0
- package/dist/interfaces/formInput/FormSectionTitleDescription.d.ts +6 -0
- package/dist/interfaces/formInput/FormSectionTitleDescription.js +1 -0
- package/dist/interfaces/formInput/IMscoaAccount.d.ts +84 -0
- package/dist/interfaces/formInput/IMscoaAccount.js +1 -0
- package/dist/interfaces/formInput/MatDataOptionsInterface.d.ts +14 -0
- package/dist/interfaces/formInput/MatDataOptionsInterface.js +1 -0
- package/dist/interfaces/formInput/MatrixInputInterface.d.ts +8 -0
- package/dist/interfaces/formInput/MatrixInputInterface.js +1 -0
- package/dist/interfaces/formInput/MinimumInputRequiredInterface.d.ts +33 -0
- package/dist/interfaces/formInput/MinimumInputRequiredInterface.js +18 -0
- package/dist/interfaces/formInput/MscoaInput.d.ts +16 -0
- package/dist/interfaces/formInput/MscoaInput.js +19 -0
- package/dist/interfaces/formInput/MultipleInterface.d.ts +15 -0
- package/dist/interfaces/formInput/MultipleInterface.js +1 -0
- package/dist/interfaces/formInput/RichTextEditorInput.d.ts +8 -0
- package/dist/interfaces/formInput/RichTextEditorInput.js +5 -0
- package/dist/interfaces/formInput/TableConfigurationsInterface.d.ts +17 -0
- package/dist/interfaces/formInput/TableConfigurationsInterface.js +1 -0
- package/dist/interfaces/formInput/TableSelectionInput.d.ts +6 -0
- package/dist/interfaces/formInput/TableSelectionInput.js +1 -0
- package/dist/interfaces/formInput/TextAreaInput.d.ts +5 -0
- package/dist/interfaces/formInput/TextAreaInput.js +1 -0
- package/dist/interfaces/formInput/ToggleInputInterface.d.ts +8 -0
- package/dist/interfaces/formInput/ToggleInputInterface.js +5 -0
- package/dist/interfaces/formInput/calculatedFieldRules.d.ts +7 -0
- package/dist/interfaces/formInput/calculatedFieldRules.js +1 -0
- package/dist/interfaces/formInput/calculationVariableInterface.d.ts +21 -0
- package/dist/interfaces/formInput/calculationVariableInterface.js +7 -0
- package/dist/interfaces/formInput/index.d.ts +22 -0
- package/dist/interfaces/formInput/index.js +7 -0
- package/dist/interfaces/formInput/schema.d.ts +9 -0
- package/dist/interfaces/formInput/schema.js +1 -0
- package/dist/interfaces/formInput/userSignature.d.ts +7 -0
- package/dist/interfaces/formInput/userSignature.js +1 -0
- package/dist/interfaces/pipeline-builder/index.d.ts +2 -0
- package/dist/interfaces/pipeline-builder/index.js +2 -0
- package/dist/interfaces/pipeline-builder/pipelineStages.d.ts +47 -0
- package/dist/interfaces/pipeline-builder/pipelineStages.js +30 -0
- package/dist/interfaces/upgradeFunctions/interfaces/init-form.d.ts +268 -0
- package/dist/interfaces/upgradeFunctions/interfaces/init-form.js +6 -0
- package/dist/schemas/CalculatedFieldRulesSchema.d.ts +6 -0
- package/dist/schemas/CalculatedFieldRulesSchema.js +27 -0
- package/dist/schemas/FormInputSchema.d.ts +15 -0
- package/dist/schemas/FormInputSchema.js +197 -0
- package/dist/schemas/FormSchema.d.ts +26 -0
- package/dist/schemas/FormSchema.js +134 -0
- package/dist/schemas/MatOptionsSchema.d.ts +8 -0
- package/dist/schemas/MatOptionsSchema.js +54 -0
- package/dist/schemas/MscoaConfigSchema.d.ts +8 -0
- package/dist/schemas/MscoaConfigSchema.js +22 -0
- package/dist/schemas/customValidationSchema.d.ts +2 -0
- package/dist/schemas/customValidationSchema.js +8 -0
- package/dist/schemas/index.d.ts +4 -0
- package/dist/schemas/index.js +4 -0
- package/dist/schemas/tests/FormInputValidator.spec.d.ts +1 -0
- package/dist/schemas/tests/FormInputValidator.spec.js +68 -0
- package/dist/schemas/tests/MOCK_DATA.d.ts +49 -0
- package/dist/schemas/tests/MOCK_DATA.js +59 -0
- package/package.json +61 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { IBasicFormInput } from "./BasicFormInputInterface";
|
|
2
|
+
export declare enum UploadTypes {
|
|
3
|
+
file = ".pdf,.doc,.docx,.xml,.txt,.rtf,.csv,.xls,.xlsx,.ppt,.pptx,.odt,.ods,.odp,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
4
|
+
image = "image/png,image/jpeg,image/gif,image/bmp,image/tiff,image/svg+xml,image/webp"
|
|
5
|
+
}
|
|
6
|
+
export declare enum AllImageFileExtensions {
|
|
7
|
+
Jpg = "jpg",
|
|
8
|
+
Png = "png",
|
|
9
|
+
Gif = "gif",
|
|
10
|
+
Bmp = "bmp",
|
|
11
|
+
Tiff = "tiff",
|
|
12
|
+
Svg = "svg",
|
|
13
|
+
Webp = "webp"
|
|
14
|
+
}
|
|
15
|
+
export declare enum AllDocumentFileExtensions {
|
|
16
|
+
Pdf = "pdf",
|
|
17
|
+
Doc = "doc",
|
|
18
|
+
Docx = "docx",
|
|
19
|
+
Xls = "xls",
|
|
20
|
+
Xlsx = "xlsx",
|
|
21
|
+
Ppt = "ppt",
|
|
22
|
+
Pptx = "pptx",
|
|
23
|
+
Odt = "odt",
|
|
24
|
+
Ods = "ods",
|
|
25
|
+
Odp = "odp",
|
|
26
|
+
Txt = "txt",
|
|
27
|
+
Rtf = "rtf",
|
|
28
|
+
Csv = "csv",
|
|
29
|
+
Xml = "xml",
|
|
30
|
+
Html = "html",
|
|
31
|
+
Htm = "htm"
|
|
32
|
+
}
|
|
33
|
+
export declare enum InputFileType {
|
|
34
|
+
Image = "image",
|
|
35
|
+
CaptureImage = "captureImage",
|
|
36
|
+
file = "file"
|
|
37
|
+
}
|
|
38
|
+
export interface FileUploadInputValueInterface {
|
|
39
|
+
fileName: string;
|
|
40
|
+
type: InputFileType | undefined;
|
|
41
|
+
base64: string | ArrayBuffer | null;
|
|
42
|
+
blob: Blob;
|
|
43
|
+
fileExtension: string;
|
|
44
|
+
}
|
|
45
|
+
export interface IFileUploadInput extends IBasicFormInput {
|
|
46
|
+
fileType?: InputFileType;
|
|
47
|
+
singleSelect?: boolean;
|
|
48
|
+
accept?: string;
|
|
49
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export var UploadTypes;
|
|
2
|
+
(function (UploadTypes) {
|
|
3
|
+
UploadTypes["file"] = ".pdf,.doc,.docx,.xml,.txt,.rtf,.csv,.xls,.xlsx,.ppt,.pptx,.odt,.ods,.odp,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
4
|
+
UploadTypes["image"] = "image/png,image/jpeg,image/gif,image/bmp,image/tiff,image/svg+xml,image/webp";
|
|
5
|
+
})(UploadTypes || (UploadTypes = {}));
|
|
6
|
+
export var AllImageFileExtensions;
|
|
7
|
+
(function (AllImageFileExtensions) {
|
|
8
|
+
AllImageFileExtensions["Jpg"] = "jpg";
|
|
9
|
+
AllImageFileExtensions["Png"] = "png";
|
|
10
|
+
AllImageFileExtensions["Gif"] = "gif";
|
|
11
|
+
AllImageFileExtensions["Bmp"] = "bmp";
|
|
12
|
+
AllImageFileExtensions["Tiff"] = "tiff";
|
|
13
|
+
AllImageFileExtensions["Svg"] = "svg";
|
|
14
|
+
AllImageFileExtensions["Webp"] = "webp";
|
|
15
|
+
})(AllImageFileExtensions || (AllImageFileExtensions = {}));
|
|
16
|
+
export var AllDocumentFileExtensions;
|
|
17
|
+
(function (AllDocumentFileExtensions) {
|
|
18
|
+
AllDocumentFileExtensions["Pdf"] = "pdf";
|
|
19
|
+
AllDocumentFileExtensions["Doc"] = "doc";
|
|
20
|
+
AllDocumentFileExtensions["Docx"] = "docx";
|
|
21
|
+
AllDocumentFileExtensions["Xls"] = "xls";
|
|
22
|
+
AllDocumentFileExtensions["Xlsx"] = "xlsx";
|
|
23
|
+
AllDocumentFileExtensions["Ppt"] = "ppt";
|
|
24
|
+
AllDocumentFileExtensions["Pptx"] = "pptx";
|
|
25
|
+
AllDocumentFileExtensions["Odt"] = "odt";
|
|
26
|
+
AllDocumentFileExtensions["Ods"] = "ods";
|
|
27
|
+
AllDocumentFileExtensions["Odp"] = "odp";
|
|
28
|
+
AllDocumentFileExtensions["Txt"] = "txt";
|
|
29
|
+
AllDocumentFileExtensions["Rtf"] = "rtf";
|
|
30
|
+
AllDocumentFileExtensions["Csv"] = "csv";
|
|
31
|
+
AllDocumentFileExtensions["Xml"] = "xml";
|
|
32
|
+
AllDocumentFileExtensions["Html"] = "html";
|
|
33
|
+
AllDocumentFileExtensions["Htm"] = "htm";
|
|
34
|
+
})(AllDocumentFileExtensions || (AllDocumentFileExtensions = {}));
|
|
35
|
+
export var InputFileType;
|
|
36
|
+
(function (InputFileType) {
|
|
37
|
+
InputFileType["Image"] = "image";
|
|
38
|
+
InputFileType["CaptureImage"] = "captureImage";
|
|
39
|
+
InputFileType["file"] = "file";
|
|
40
|
+
})(InputFileType || (InputFileType = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { FormColumnInputs, IBasicFormInput } from "./BasicFormInputInterface";
|
|
2
|
+
export interface IMSCOAAccount {
|
|
3
|
+
_id: {
|
|
4
|
+
$oid: string;
|
|
5
|
+
};
|
|
6
|
+
SCOAid: string;
|
|
7
|
+
AccountNumber: string;
|
|
8
|
+
AccountNumber1: string;
|
|
9
|
+
AccountNumber2: string;
|
|
10
|
+
AccountNumber3: string;
|
|
11
|
+
AccountNumber4: string;
|
|
12
|
+
AccountNumber5: string;
|
|
13
|
+
AccountNumber6: string;
|
|
14
|
+
AccountNumber7: string;
|
|
15
|
+
AccountNumber8: string;
|
|
16
|
+
AccountNumber9: string;
|
|
17
|
+
AccountNumber10: string;
|
|
18
|
+
AccountNumber11: string;
|
|
19
|
+
AccountNumber12: string;
|
|
20
|
+
AccountNumberPrefix: string;
|
|
21
|
+
ApplicableTo: string;
|
|
22
|
+
BreakDownAllowed: string;
|
|
23
|
+
DefinitionDescription: string;
|
|
24
|
+
ParentSCOAId: string | null;
|
|
25
|
+
PostingLevel: string;
|
|
26
|
+
Principle: string;
|
|
27
|
+
SCOAAccount: string;
|
|
28
|
+
SCOAFile: string;
|
|
29
|
+
SCOALevel: string;
|
|
30
|
+
ShortDescription: string;
|
|
31
|
+
VATStatus: string;
|
|
32
|
+
createdAt: {
|
|
33
|
+
$date: string;
|
|
34
|
+
};
|
|
35
|
+
updatedAt: {
|
|
36
|
+
$date: string;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export interface MscoaInterface extends IMscoaInputConfig {
|
|
40
|
+
accountTree: MscoaAccountTree;
|
|
41
|
+
loadingTree: boolean;
|
|
42
|
+
initiated: boolean;
|
|
43
|
+
accountTreeKeys: string[] | undefined;
|
|
44
|
+
segmentValues: MscoaSegmentValue | undefined;
|
|
45
|
+
getTreeResponse: IGetTreeResponse | null;
|
|
46
|
+
}
|
|
47
|
+
export interface MscoaSegmentValue {
|
|
48
|
+
[key: string]: {
|
|
49
|
+
debit: IMSCOAAccount | undefined;
|
|
50
|
+
credit: IMSCOAAccount | undefined;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
export type MscoaAccountTree = {
|
|
54
|
+
[key: string]: MscoaAccountTree;
|
|
55
|
+
};
|
|
56
|
+
export interface ITableScoaSelectionRow {
|
|
57
|
+
segment: string;
|
|
58
|
+
segmentTree: MscoaAccountTree;
|
|
59
|
+
segmentValue: IMSCOAAccount | undefined;
|
|
60
|
+
debit: string;
|
|
61
|
+
credit: string;
|
|
62
|
+
}
|
|
63
|
+
export interface IIncludedSegmentConfig {
|
|
64
|
+
segment: string | undefined;
|
|
65
|
+
label: string;
|
|
66
|
+
readOnly: boolean;
|
|
67
|
+
singleSelect: boolean;
|
|
68
|
+
}
|
|
69
|
+
export interface IMscoaInputConfig {
|
|
70
|
+
inputs: MscoaInnerInput[];
|
|
71
|
+
segments: IIncludedSegmentConfig[] | undefined;
|
|
72
|
+
showAllSegments: boolean;
|
|
73
|
+
}
|
|
74
|
+
export interface MscoaInnerInput extends FormColumnInputs {
|
|
75
|
+
segment: string;
|
|
76
|
+
}
|
|
77
|
+
export interface IGetTreeResponse {
|
|
78
|
+
message: string;
|
|
79
|
+
accountTree: MscoaAccountTree | {};
|
|
80
|
+
accountTreeKeys: string[] | undefined;
|
|
81
|
+
}
|
|
82
|
+
export interface IMscoaInput extends IBasicFormInput {
|
|
83
|
+
mscoaConfig: IMscoaInputConfig;
|
|
84
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { APIDataFetchingConfigurationInterface, MongoDbPipeLineConfigInterface } from "./APIDataFetchingConfigurationInterface";
|
|
2
|
+
import { FormInputBasicOptionInterface } from "./FormInputBasicOptionInterface";
|
|
3
|
+
export interface MatDataOptionsInterface {
|
|
4
|
+
optionType?: 'user';
|
|
5
|
+
options?: Array<FormInputBasicOptionInterface | DynamicObjectInterface>;
|
|
6
|
+
fetchFor?: string | 'valueForOptions';
|
|
7
|
+
fetch: {
|
|
8
|
+
value?: APIDataFetchingConfigurationInterface | MongoDbPipeLineConfigInterface;
|
|
9
|
+
options?: APIDataFetchingConfigurationInterface | MongoDbPipeLineConfigInterface;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export interface DynamicObjectInterface {
|
|
13
|
+
[key: string | number]: number | string | boolean | object;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IBasicFormInput } from './BasicFormInputInterface';
|
|
2
|
+
import { TableConfigurationsInterface } from './TableConfigurationsInterface';
|
|
3
|
+
export interface IMatrixInput extends IBasicFormInput {
|
|
4
|
+
matrixTableConfig?: {
|
|
5
|
+
dataSource: string;
|
|
6
|
+
};
|
|
7
|
+
tableConfig?: TableConfigurationsInterface;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ElementTypes, InputDataTypes } from "./BasicFormInputInterface";
|
|
2
|
+
export declare enum MinInputTypes {
|
|
3
|
+
Default = "default",
|
|
4
|
+
MapTo = "mapto",
|
|
5
|
+
MapDocFilter = "mapDocFilter",
|
|
6
|
+
Bind = "bind"
|
|
7
|
+
}
|
|
8
|
+
export declare enum JsDataTypes {
|
|
9
|
+
String = "string",
|
|
10
|
+
Number = "number",
|
|
11
|
+
BigInt = "bigint",
|
|
12
|
+
Boolean = "boolean",
|
|
13
|
+
Symbol = "symbol",
|
|
14
|
+
Undefined = "undefined",
|
|
15
|
+
Object = "object",
|
|
16
|
+
Function = "function"
|
|
17
|
+
}
|
|
18
|
+
export interface MinimumInputRequiredInterface {
|
|
19
|
+
name: string;
|
|
20
|
+
type: MinInputTypes | JsDataTypes | undefined;
|
|
21
|
+
value?: string;
|
|
22
|
+
mapTo?: MinInputMapInput | Array<MinInputMapInput>;
|
|
23
|
+
defaultValue?: string;
|
|
24
|
+
dataFor?: string;
|
|
25
|
+
activeChangeId?: string | undefined;
|
|
26
|
+
primaryKey?: boolean;
|
|
27
|
+
}
|
|
28
|
+
export interface MinInputMapInput {
|
|
29
|
+
formControlName: string;
|
|
30
|
+
dataType: InputDataTypes;
|
|
31
|
+
inputId: string;
|
|
32
|
+
element: ElementTypes;
|
|
33
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export var MinInputTypes;
|
|
2
|
+
(function (MinInputTypes) {
|
|
3
|
+
MinInputTypes["Default"] = "default";
|
|
4
|
+
MinInputTypes["MapTo"] = "mapto";
|
|
5
|
+
MinInputTypes["MapDocFilter"] = "mapDocFilter";
|
|
6
|
+
MinInputTypes["Bind"] = "bind";
|
|
7
|
+
})(MinInputTypes || (MinInputTypes = {}));
|
|
8
|
+
export var JsDataTypes;
|
|
9
|
+
(function (JsDataTypes) {
|
|
10
|
+
JsDataTypes["String"] = "string";
|
|
11
|
+
JsDataTypes["Number"] = "number";
|
|
12
|
+
JsDataTypes["BigInt"] = "bigint";
|
|
13
|
+
JsDataTypes["Boolean"] = "boolean";
|
|
14
|
+
JsDataTypes["Symbol"] = "symbol";
|
|
15
|
+
JsDataTypes["Undefined"] = "undefined";
|
|
16
|
+
JsDataTypes["Object"] = "object";
|
|
17
|
+
JsDataTypes["Function"] = "function";
|
|
18
|
+
})(JsDataTypes || (JsDataTypes = {}));
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FormColumnInputs, IBasicFormInput } from "./BasicFormInputInterface";
|
|
2
|
+
import { MatDataOptionsInterface } from "./MatDataOptionsInterface";
|
|
3
|
+
export interface IMscoaFormInput extends IBasicFormInput {
|
|
4
|
+
mscoaConfig: {
|
|
5
|
+
showAllSegments: boolean;
|
|
6
|
+
segments: {
|
|
7
|
+
segment: string;
|
|
8
|
+
label: string;
|
|
9
|
+
}[];
|
|
10
|
+
inputs: MscoaInnerInput[];
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export interface MscoaInnerInput extends FormColumnInputs {
|
|
14
|
+
segment: string;
|
|
15
|
+
}
|
|
16
|
+
export declare var MSCOA_INPUT_DEFAULT_MAT_OPTIONS: MatDataOptionsInterface;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DataSources } from "./APIDataFetchingConfigurationInterface";
|
|
2
|
+
const optionsFetchAPI = {
|
|
3
|
+
"_id": "63e78b3f82456632fb44d306",
|
|
4
|
+
"name": "Get mscoa segments",
|
|
5
|
+
"httpEndPoint": "{{$CLIENT_SERVER}}/api/v1/mscoa/getLatestAccountTree",
|
|
6
|
+
"httpMethod": "GET",
|
|
7
|
+
"valueAccessRules": [],
|
|
8
|
+
postFormData: false,
|
|
9
|
+
backEndConfig: {
|
|
10
|
+
minimumInputRequired: []
|
|
11
|
+
},
|
|
12
|
+
source: DataSources.Local,
|
|
13
|
+
};
|
|
14
|
+
export var MSCOA_INPUT_DEFAULT_MAT_OPTIONS = {
|
|
15
|
+
options: [],
|
|
16
|
+
fetch: {
|
|
17
|
+
options: optionsFetchAPI
|
|
18
|
+
}
|
|
19
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FormColumnInputs, IBasicFormInput } from "./BasicFormInputInterface";
|
|
2
|
+
import { CalculationFunctions } from "./calculationVariableInterface";
|
|
3
|
+
export interface IMultiple extends IBasicFormInput {
|
|
4
|
+
handleLabel: string;
|
|
5
|
+
formIsOpen?: boolean;
|
|
6
|
+
originalId?: string;
|
|
7
|
+
showAsLabel?: boolean;
|
|
8
|
+
formInputs?: Array<FormColumnInputs>;
|
|
9
|
+
calculateListFunctions: Array<IMultipleInputCal>;
|
|
10
|
+
groupBy?: string[];
|
|
11
|
+
}
|
|
12
|
+
export interface IMultipleInputCal {
|
|
13
|
+
inputId: string;
|
|
14
|
+
func: CalculationFunctions;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CalculatedFieldRules } from "./calculatedFieldRules";
|
|
2
|
+
export interface TableConfigurationsInterface {
|
|
3
|
+
displayedColumnsInOrder: string[];
|
|
4
|
+
columnsConfig: {
|
|
5
|
+
[key: string]: TableColumnConfigInterface | any;
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
export interface TableColumnConfigInterface {
|
|
9
|
+
type: 'caluculated' | 'property' | 'checkBox' | 'primaryKey';
|
|
10
|
+
property: string;
|
|
11
|
+
reductionFunction?: 'sum';
|
|
12
|
+
calculatedFieldRules: CalculatedFieldRules;
|
|
13
|
+
label: string;
|
|
14
|
+
inEdit: boolean;
|
|
15
|
+
checkUpto: string;
|
|
16
|
+
colorScale?: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IBasicFormInput } from './BasicFormInputInterface';
|
|
2
|
+
import { TableConfigurationsInterface } from './TableConfigurationsInterface';
|
|
3
|
+
export interface ITableSelectionInput extends IBasicFormInput {
|
|
4
|
+
selectUpto?: number;
|
|
5
|
+
tableConfig?: TableConfigurationsInterface;
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface calculationVariableInterface {
|
|
2
|
+
formControlName: string;
|
|
3
|
+
label: string;
|
|
4
|
+
variable: string;
|
|
5
|
+
id: string;
|
|
6
|
+
inputId: string;
|
|
7
|
+
function?: CalculationFunctions;
|
|
8
|
+
parentInputId?: string;
|
|
9
|
+
parentInputFormControl?: string;
|
|
10
|
+
applyFunctionToCol?: string;
|
|
11
|
+
applyFunctionToLabel?: string;
|
|
12
|
+
filterValuesByThisColLabel?: string;
|
|
13
|
+
filterValuesByCol?: string;
|
|
14
|
+
tableCell?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare enum CalculationFunctions {
|
|
17
|
+
Avg = "avg",
|
|
18
|
+
Sum = "sum",
|
|
19
|
+
Max = "max",
|
|
20
|
+
Min = "min"
|
|
21
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export var CalculationFunctions;
|
|
2
|
+
(function (CalculationFunctions) {
|
|
3
|
+
CalculationFunctions["Avg"] = "avg";
|
|
4
|
+
CalculationFunctions["Sum"] = "sum";
|
|
5
|
+
CalculationFunctions["Max"] = "max";
|
|
6
|
+
CalculationFunctions["Min"] = "min";
|
|
7
|
+
})(CalculationFunctions || (CalculationFunctions = {}));
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IFolderItem, IPostmanCollection } from "../FormBuilder/postmanCollection";
|
|
2
|
+
import { TreeNode } from "../FormSlide/accessTree";
|
|
3
|
+
import { APIDataFetchingConfigurationInterface, InputAPIDataId, MongoDbPipeLineConfigInterface } from "./APIDataFetchingConfigurationInterface";
|
|
4
|
+
import { AutocapitalizeOptions, AutocompleteOptions, ElementTypes, IBasicFormInput, InputDataTypes, InputPipeTypes, InputTypes } from "./BasicFormInputInterface";
|
|
5
|
+
import { IDateRangePickerInput } from "./DateRangePickerInput";
|
|
6
|
+
import { AllDocumentFileExtensions, AllImageFileExtensions, FileUploadInputValueInterface, IFileUploadInput, InputFileType, UploadTypes } from "./FileUploadInputInterface";
|
|
7
|
+
import { FormControlCustomValidatorsInterface } from "./FormControlCustomValidatorsInterface";
|
|
8
|
+
import { FormInputBasicOptionInterface } from "./FormInputBasicOptionInterface";
|
|
9
|
+
import { IGetTreeResponse, IIncludedSegmentConfig, IMSCOAAccount, IMscoaInput, IMscoaInputConfig, ITableScoaSelectionRow, MscoaAccountTree, MscoaInterface, MscoaSegmentValue } from "./IMscoaAccount";
|
|
10
|
+
import { MatDataOptionsInterface } from "./MatDataOptionsInterface";
|
|
11
|
+
import { IMatrixInput } from "./MatrixInputInterface";
|
|
12
|
+
import { MinInputMapInput, MinInputTypes, MinimumInputRequiredInterface } from "./MinimumInputRequiredInterface";
|
|
13
|
+
import { IMultiple, IMultipleInputCal } from "./MultipleInterface";
|
|
14
|
+
import { TableColumnConfigInterface, TableConfigurationsInterface } from "./TableConfigurationsInterface";
|
|
15
|
+
import { ITableSelectionInput } from "./TableSelectionInput";
|
|
16
|
+
import { ITextareaProperties } from "./TextAreaInput";
|
|
17
|
+
import { IToggleInput } from "./ToggleInputInterface";
|
|
18
|
+
import { CalculatedFieldRules } from "./calculatedFieldRules";
|
|
19
|
+
import { CalculationFunctions, calculationVariableInterface } from "./calculationVariableInterface";
|
|
20
|
+
import { ValidationError, ValidationOptions } from "./schema";
|
|
21
|
+
import { IUserSignature } from "./userSignature";
|
|
22
|
+
export { ElementTypes, InputTypes, InputPipeTypes, AutocapitalizeOptions, AutocompleteOptions, InputDataTypes, MinInputTypes, ITableSelectionInput, IBasicFormInput, IFileUploadInput, IDateRangePickerInput, ITextareaProperties, IToggleInput, IMatrixInput, IMultiple, IMultipleInputCal, IMscoaInput, TableConfigurationsInterface, TableColumnConfigInterface, FormControlCustomValidatorsInterface, MinimumInputRequiredInterface, MinInputMapInput, CalculatedFieldRules, calculationVariableInterface, APIDataFetchingConfigurationInterface, IGetTreeResponse, CalculationFunctions, TreeNode, IPostmanCollection, IFolderItem, FileUploadInputValueInterface, AllDocumentFileExtensions, AllImageFileExtensions, UploadTypes, InputFileType, IMSCOAAccount, IMscoaInputConfig, ITableScoaSelectionRow, MscoaSegmentValue, IIncludedSegmentConfig, MscoaAccountTree, IUserSignature, ValidationOptions, ValidationError, MatDataOptionsInterface, MongoDbPipeLineConfigInterface, InputAPIDataId, FormInputBasicOptionInterface, MscoaInterface, };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AutocapitalizeOptions, AutocompleteOptions, ElementTypes, InputDataTypes, InputPipeTypes, InputTypes } from "./BasicFormInputInterface";
|
|
2
|
+
import { AllDocumentFileExtensions, AllImageFileExtensions, InputFileType, UploadTypes } from "./FileUploadInputInterface";
|
|
3
|
+
import { MinInputTypes } from "./MinimumInputRequiredInterface";
|
|
4
|
+
import { CalculationFunctions } from "./calculationVariableInterface";
|
|
5
|
+
export {
|
|
6
|
+
///ENUMS
|
|
7
|
+
ElementTypes, InputTypes, InputPipeTypes, AutocapitalizeOptions, AutocompleteOptions, InputDataTypes, MinInputTypes, CalculationFunctions, AllDocumentFileExtensions, AllImageFileExtensions, UploadTypes, InputFileType, };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AllFormInputPrimaryKeys, FormInputKeys } from "../FormBuilder";
|
|
2
|
+
export interface ValidationOptions {
|
|
3
|
+
data: Record<string, unknown>;
|
|
4
|
+
requiredKeys: Array<FormInputKeys | AllFormInputPrimaryKeys>;
|
|
5
|
+
}
|
|
6
|
+
export interface ValidationError {
|
|
7
|
+
key: string;
|
|
8
|
+
message: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { PipelineStage } from 'mongoose';
|
|
2
|
+
export interface IPipelineGenerationError {
|
|
3
|
+
message: string;
|
|
4
|
+
error: string;
|
|
5
|
+
threadId: string;
|
|
6
|
+
}
|
|
7
|
+
export interface IPipelineGenerationResponse {
|
|
8
|
+
message: string;
|
|
9
|
+
pipeline: PipelineStage[];
|
|
10
|
+
currentAttempt: number;
|
|
11
|
+
response: string;
|
|
12
|
+
threadId: string;
|
|
13
|
+
error: string;
|
|
14
|
+
}
|
|
15
|
+
export interface IRunPipelineResponse {
|
|
16
|
+
message: string;
|
|
17
|
+
results: any[];
|
|
18
|
+
}
|
|
19
|
+
export declare enum PipelineStageEnum {
|
|
20
|
+
MATCH = "$match",
|
|
21
|
+
GROUP = "$group",
|
|
22
|
+
SORT = "$sort",
|
|
23
|
+
PROJECT = "$project",
|
|
24
|
+
ADD_FIELDS = "$addFields",
|
|
25
|
+
SET = "$set",
|
|
26
|
+
LOOKUP = "$lookup",
|
|
27
|
+
UNWIND = "$unwind",
|
|
28
|
+
LIMIT = "$limit",
|
|
29
|
+
SKIP = "$skip",
|
|
30
|
+
BUCKET = "$bucket",
|
|
31
|
+
BUCKET_AUTO = "$bucketAuto",
|
|
32
|
+
FACET = "$facet",
|
|
33
|
+
GEO_NEAR = "$geoNear",
|
|
34
|
+
OUT = "$out",
|
|
35
|
+
MERGE = "$merge",
|
|
36
|
+
SAMPLE = "$sample",
|
|
37
|
+
COUNT = "$count",
|
|
38
|
+
REPLACE_ROOT = "$replaceRoot",
|
|
39
|
+
REPLACE_WITH = "$replaceWith",
|
|
40
|
+
GRAPH_LOOKUP = "$graphLookup",
|
|
41
|
+
REDACT = "$redact",
|
|
42
|
+
SORT_BY_COUNT = "$sortByCount",
|
|
43
|
+
DENSIFY = "$densify",
|
|
44
|
+
UNION_WITH = "$unionWith",
|
|
45
|
+
FILL = "$fill",
|
|
46
|
+
DOCUMENTS = "$documents"
|
|
47
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export var PipelineStageEnum;
|
|
2
|
+
(function (PipelineStageEnum) {
|
|
3
|
+
PipelineStageEnum["MATCH"] = "$match";
|
|
4
|
+
PipelineStageEnum["GROUP"] = "$group";
|
|
5
|
+
PipelineStageEnum["SORT"] = "$sort";
|
|
6
|
+
PipelineStageEnum["PROJECT"] = "$project";
|
|
7
|
+
PipelineStageEnum["ADD_FIELDS"] = "$addFields";
|
|
8
|
+
PipelineStageEnum["SET"] = "$set";
|
|
9
|
+
PipelineStageEnum["LOOKUP"] = "$lookup";
|
|
10
|
+
PipelineStageEnum["UNWIND"] = "$unwind";
|
|
11
|
+
PipelineStageEnum["LIMIT"] = "$limit";
|
|
12
|
+
PipelineStageEnum["SKIP"] = "$skip";
|
|
13
|
+
PipelineStageEnum["BUCKET"] = "$bucket";
|
|
14
|
+
PipelineStageEnum["BUCKET_AUTO"] = "$bucketAuto";
|
|
15
|
+
PipelineStageEnum["FACET"] = "$facet";
|
|
16
|
+
PipelineStageEnum["GEO_NEAR"] = "$geoNear";
|
|
17
|
+
PipelineStageEnum["OUT"] = "$out";
|
|
18
|
+
PipelineStageEnum["MERGE"] = "$merge";
|
|
19
|
+
PipelineStageEnum["SAMPLE"] = "$sample";
|
|
20
|
+
PipelineStageEnum["COUNT"] = "$count";
|
|
21
|
+
PipelineStageEnum["REPLACE_ROOT"] = "$replaceRoot";
|
|
22
|
+
PipelineStageEnum["REPLACE_WITH"] = "$replaceWith";
|
|
23
|
+
PipelineStageEnum["GRAPH_LOOKUP"] = "$graphLookup";
|
|
24
|
+
PipelineStageEnum["REDACT"] = "$redact";
|
|
25
|
+
PipelineStageEnum["SORT_BY_COUNT"] = "$sortByCount";
|
|
26
|
+
PipelineStageEnum["DENSIFY"] = "$densify";
|
|
27
|
+
PipelineStageEnum["UNION_WITH"] = "$unionWith";
|
|
28
|
+
PipelineStageEnum["FILL"] = "$fill";
|
|
29
|
+
PipelineStageEnum["DOCUMENTS"] = "$documents";
|
|
30
|
+
})(PipelineStageEnum || (PipelineStageEnum = {}));
|