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.
Files changed (139) hide show
  1. package/dist/Configs/currencies.d.ts +6 -0
  2. package/dist/Configs/currencies.js +1083 -0
  3. package/dist/Configs/datePipes.d.ts +4 -0
  4. package/dist/Configs/datePipes.js +16 -0
  5. package/dist/index.d.ts +8 -0
  6. package/dist/index.js +8 -0
  7. package/dist/interfaces/Form/ArrayFunctions.d.ts +9 -0
  8. package/dist/interfaces/Form/ArrayFunctions.js +7 -0
  9. package/dist/interfaces/Form/CustomeConfigInter.d.ts +10 -0
  10. package/dist/interfaces/Form/CustomeConfigInter.js +1 -0
  11. package/dist/interfaces/Form/FileUploadFn.d.ts +11 -0
  12. package/dist/interfaces/Form/FileUploadFn.js +1 -0
  13. package/dist/interfaces/Form/FormInClassUtils.d.ts +52 -0
  14. package/dist/interfaces/Form/FormInClassUtils.js +1 -0
  15. package/dist/interfaces/Form/IFormsInitStateInterface.d.ts +51 -0
  16. package/dist/interfaces/Form/IFormsInitStateInterface.js +14 -0
  17. package/dist/interfaces/Form/PrePopulateDataInterface.d.ts +4 -0
  18. package/dist/interfaces/Form/PrePopulateDataInterface.js +1 -0
  19. package/dist/interfaces/Form/formChangeHistory.d.ts +5 -0
  20. package/dist/interfaces/Form/formChangeHistory.js +1 -0
  21. package/dist/interfaces/Form/formInterface.d.ts +19 -0
  22. package/dist/interfaces/Form/formInterface.js +1 -0
  23. package/dist/interfaces/Form/formSubmissionHandleInterface.d.ts +7 -0
  24. package/dist/interfaces/Form/formSubmissionHandleInterface.js +1 -0
  25. package/dist/interfaces/Form/index.d.ts +12 -0
  26. package/dist/interfaces/Form/index.js +2 -0
  27. package/dist/interfaces/FormBuilder/DefaultEelement.d.ts +3 -0
  28. package/dist/interfaces/FormBuilder/DefaultEelement.js +741 -0
  29. package/dist/interfaces/FormBuilder/DefaultInputConfigInterface.d.ts +143 -0
  30. package/dist/interfaces/FormBuilder/DefaultInputConfigInterface.js +1 -0
  31. package/dist/interfaces/FormBuilder/ElementEditorTypes.d.ts +31 -0
  32. package/dist/interfaces/FormBuilder/ElementEditorTypes.js +40 -0
  33. package/dist/interfaces/FormBuilder/FormBuilderCallBackFunctions.d.ts +20 -0
  34. package/dist/interfaces/FormBuilder/FormBuilderCallBackFunctions.js +1 -0
  35. package/dist/interfaces/FormBuilder/FormInputKeys.d.ts +86 -0
  36. package/dist/interfaces/FormBuilder/FormInputKeys.js +90 -0
  37. package/dist/interfaces/FormBuilder/elementEditor.d.ts +82 -0
  38. package/dist/interfaces/FormBuilder/elementEditor.js +34 -0
  39. package/dist/interfaces/FormBuilder/index.d.ts +10 -0
  40. package/dist/interfaces/FormBuilder/index.js +6 -0
  41. package/dist/interfaces/FormBuilder/inputConfig/ElementEditConfig.d.ts +3 -0
  42. package/dist/interfaces/FormBuilder/inputConfig/ElementEditConfig.js +644 -0
  43. package/dist/interfaces/FormBuilder/inputConfig/getInputValueFromElement.d.ts +1 -0
  44. package/dist/interfaces/FormBuilder/inputConfig/getInputValueFromElement.js +37 -0
  45. package/dist/interfaces/FormBuilder/postmanCollection.d.ts +126 -0
  46. package/dist/interfaces/FormBuilder/postmanCollection.js +1 -0
  47. package/dist/interfaces/FormBuilder/workflowSelectionConfig.d.ts +7 -0
  48. package/dist/interfaces/FormBuilder/workflowSelectionConfig.js +1 -0
  49. package/dist/interfaces/FormSlide/accessTree.d.ts +23 -0
  50. package/dist/interfaces/FormSlide/accessTree.js +1 -0
  51. package/dist/interfaces/FormSlide/controlValidation.d.ts +12 -0
  52. package/dist/interfaces/FormSlide/controlValidation.js +1 -0
  53. package/dist/interfaces/FormSlide/formSlideInterface.d.ts +22 -0
  54. package/dist/interfaces/FormSlide/formSlideInterface.js +7 -0
  55. package/dist/interfaces/FormSlide/index.d.ts +4 -0
  56. package/dist/interfaces/FormSlide/index.js +2 -0
  57. package/dist/interfaces/Tower/ITowerFormSteps.d.ts +14 -0
  58. package/dist/interfaces/Tower/ITowerFormSteps.js +1 -0
  59. package/dist/interfaces/Tower/index.d.ts +2 -0
  60. package/dist/interfaces/Tower/index.js +1 -0
  61. package/dist/interfaces/environment/IStoreFunctions.d.ts +58 -0
  62. package/dist/interfaces/environment/IStoreFunctions.js +1 -0
  63. package/dist/interfaces/environment/environment.d.ts +6 -0
  64. package/dist/interfaces/environment/environment.js +1 -0
  65. package/dist/interfaces/environment/index.d.ts +2 -0
  66. package/dist/interfaces/environment/index.js +1 -0
  67. package/dist/interfaces/formInput/APIDataFetchingConfigurationInterface.d.ts +54 -0
  68. package/dist/interfaces/formInput/APIDataFetchingConfigurationInterface.js +7 -0
  69. package/dist/interfaces/formInput/BasicFormInputInterface.d.ts +141 -0
  70. package/dist/interfaces/formInput/BasicFormInputInterface.js +99 -0
  71. package/dist/interfaces/formInput/ConditionalInputRule.d.ts +7 -0
  72. package/dist/interfaces/formInput/ConditionalInputRule.js +1 -0
  73. package/dist/interfaces/formInput/DateRangePickerInput.d.ts +9 -0
  74. package/dist/interfaces/formInput/DateRangePickerInput.js +1 -0
  75. package/dist/interfaces/formInput/FileUploadInputInterface.d.ts +49 -0
  76. package/dist/interfaces/formInput/FileUploadInputInterface.js +40 -0
  77. package/dist/interfaces/formInput/FormControlCustomValidatorsInterface.d.ts +10 -0
  78. package/dist/interfaces/formInput/FormControlCustomValidatorsInterface.js +1 -0
  79. package/dist/interfaces/formInput/FormInputBasicOptionInterface.d.ts +4 -0
  80. package/dist/interfaces/formInput/FormInputBasicOptionInterface.js +1 -0
  81. package/dist/interfaces/formInput/FormSectionTitleDescription.d.ts +6 -0
  82. package/dist/interfaces/formInput/FormSectionTitleDescription.js +1 -0
  83. package/dist/interfaces/formInput/IMscoaAccount.d.ts +84 -0
  84. package/dist/interfaces/formInput/IMscoaAccount.js +1 -0
  85. package/dist/interfaces/formInput/MatDataOptionsInterface.d.ts +14 -0
  86. package/dist/interfaces/formInput/MatDataOptionsInterface.js +1 -0
  87. package/dist/interfaces/formInput/MatrixInputInterface.d.ts +8 -0
  88. package/dist/interfaces/formInput/MatrixInputInterface.js +1 -0
  89. package/dist/interfaces/formInput/MinimumInputRequiredInterface.d.ts +33 -0
  90. package/dist/interfaces/formInput/MinimumInputRequiredInterface.js +18 -0
  91. package/dist/interfaces/formInput/MscoaInput.d.ts +16 -0
  92. package/dist/interfaces/formInput/MscoaInput.js +19 -0
  93. package/dist/interfaces/formInput/MultipleInterface.d.ts +15 -0
  94. package/dist/interfaces/formInput/MultipleInterface.js +1 -0
  95. package/dist/interfaces/formInput/RichTextEditorInput.d.ts +8 -0
  96. package/dist/interfaces/formInput/RichTextEditorInput.js +5 -0
  97. package/dist/interfaces/formInput/TableConfigurationsInterface.d.ts +17 -0
  98. package/dist/interfaces/formInput/TableConfigurationsInterface.js +1 -0
  99. package/dist/interfaces/formInput/TableSelectionInput.d.ts +6 -0
  100. package/dist/interfaces/formInput/TableSelectionInput.js +1 -0
  101. package/dist/interfaces/formInput/TextAreaInput.d.ts +5 -0
  102. package/dist/interfaces/formInput/TextAreaInput.js +1 -0
  103. package/dist/interfaces/formInput/ToggleInputInterface.d.ts +8 -0
  104. package/dist/interfaces/formInput/ToggleInputInterface.js +5 -0
  105. package/dist/interfaces/formInput/calculatedFieldRules.d.ts +7 -0
  106. package/dist/interfaces/formInput/calculatedFieldRules.js +1 -0
  107. package/dist/interfaces/formInput/calculationVariableInterface.d.ts +21 -0
  108. package/dist/interfaces/formInput/calculationVariableInterface.js +7 -0
  109. package/dist/interfaces/formInput/index.d.ts +22 -0
  110. package/dist/interfaces/formInput/index.js +7 -0
  111. package/dist/interfaces/formInput/schema.d.ts +9 -0
  112. package/dist/interfaces/formInput/schema.js +1 -0
  113. package/dist/interfaces/formInput/userSignature.d.ts +7 -0
  114. package/dist/interfaces/formInput/userSignature.js +1 -0
  115. package/dist/interfaces/pipeline-builder/index.d.ts +2 -0
  116. package/dist/interfaces/pipeline-builder/index.js +2 -0
  117. package/dist/interfaces/pipeline-builder/pipelineStages.d.ts +47 -0
  118. package/dist/interfaces/pipeline-builder/pipelineStages.js +30 -0
  119. package/dist/interfaces/upgradeFunctions/interfaces/init-form.d.ts +268 -0
  120. package/dist/interfaces/upgradeFunctions/interfaces/init-form.js +6 -0
  121. package/dist/schemas/CalculatedFieldRulesSchema.d.ts +6 -0
  122. package/dist/schemas/CalculatedFieldRulesSchema.js +27 -0
  123. package/dist/schemas/FormInputSchema.d.ts +15 -0
  124. package/dist/schemas/FormInputSchema.js +197 -0
  125. package/dist/schemas/FormSchema.d.ts +26 -0
  126. package/dist/schemas/FormSchema.js +134 -0
  127. package/dist/schemas/MatOptionsSchema.d.ts +8 -0
  128. package/dist/schemas/MatOptionsSchema.js +54 -0
  129. package/dist/schemas/MscoaConfigSchema.d.ts +8 -0
  130. package/dist/schemas/MscoaConfigSchema.js +22 -0
  131. package/dist/schemas/customValidationSchema.d.ts +2 -0
  132. package/dist/schemas/customValidationSchema.js +8 -0
  133. package/dist/schemas/index.d.ts +4 -0
  134. package/dist/schemas/index.js +4 -0
  135. package/dist/schemas/tests/FormInputValidator.spec.d.ts +1 -0
  136. package/dist/schemas/tests/FormInputValidator.spec.js +68 -0
  137. package/dist/schemas/tests/MOCK_DATA.d.ts +49 -0
  138. package/dist/schemas/tests/MOCK_DATA.js +59 -0
  139. 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,10 @@
1
+ export interface FormControlCustomValidatorsInterface {
2
+ id: string;
3
+ message: string;
4
+ expression: string;
5
+ canOverride: boolean;
6
+ inputsObservedForChanges: {
7
+ inputId: string;
8
+ variable: string;
9
+ }[];
10
+ }
@@ -0,0 +1,4 @@
1
+ export interface FormInputBasicOptionInterface {
2
+ label?: string;
3
+ value: string;
4
+ }
@@ -0,0 +1,6 @@
1
+ export interface FormSectionTitleDescription {
2
+ label: string;
3
+ description: string;
4
+ element: string;
5
+ id: string;
6
+ }
@@ -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,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,8 @@
1
+ import { IBasicFormInput } from ".";
2
+ export declare enum RichTextEditorType {
3
+ EditorJS = "EditorJS",
4
+ CkEditor = "CkEditor"
5
+ }
6
+ export interface IRichTextEditor extends IBasicFormInput {
7
+ richTextEditorLibrary: RichTextEditorType;
8
+ }
@@ -0,0 +1,5 @@
1
+ export var RichTextEditorType;
2
+ (function (RichTextEditorType) {
3
+ RichTextEditorType["EditorJS"] = "EditorJS";
4
+ RichTextEditorType["CkEditor"] = "CkEditor";
5
+ })(RichTextEditorType || (RichTextEditorType = {}));
@@ -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,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,5 @@
1
+ import { IBasicFormInput } from "./BasicFormInputInterface";
2
+ export interface ITextareaProperties extends IBasicFormInput {
3
+ rows?: number;
4
+ wrap?: 'hard' | 'soft';
5
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ import { IBasicFormInput } from "./BasicFormInputInterface";
2
+ export declare enum LabelPosition {
3
+ Before = "before",
4
+ After = "after"
5
+ }
6
+ export interface IToggleInput extends IBasicFormInput {
7
+ labelPosition?: LabelPosition;
8
+ }
@@ -0,0 +1,5 @@
1
+ export var LabelPosition;
2
+ (function (LabelPosition) {
3
+ LabelPosition["Before"] = "before";
4
+ LabelPosition["After"] = "after";
5
+ })(LabelPosition || (LabelPosition = {}));
@@ -0,0 +1,7 @@
1
+ import { calculationVariableInterface } from "./calculationVariableInterface";
2
+ export interface CalculatedFieldRules {
3
+ formula: string;
4
+ variables: calculationVariableInterface[];
5
+ getFormulaFromAFormInput?: boolean;
6
+ formControlWithFormula?: string;
7
+ }
@@ -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,7 @@
1
+ import { PointGroup } from "signature_pad";
2
+ export interface IUserSignature {
3
+ dataPoints: PointGroup[];
4
+ signatureDate: Date;
5
+ userName: string;
6
+ pictureUrl: string;
7
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ import { IPipelineGenerationError, IPipelineGenerationResponse, IRunPipelineResponse, PipelineStageEnum } from "./pipelineStages";
2
+ export { IPipelineGenerationError, IPipelineGenerationResponse, IRunPipelineResponse, PipelineStageEnum };
@@ -0,0 +1,2 @@
1
+ import { PipelineStageEnum } from "./pipelineStages";
2
+ export { PipelineStageEnum };
@@ -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 = {}));