@finsys/core 2.0.1 → 2.2.0
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/index.cjs +27 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +26 -1
- package/dist/index.d.ts +26 -1
- package/dist/index.js +25 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -442,4 +442,29 @@ declare enum Role {
|
|
|
442
442
|
LENDER_AGENT = "Lender Agent"
|
|
443
443
|
}
|
|
444
444
|
|
|
445
|
-
|
|
445
|
+
/**
|
|
446
|
+
* Status of a document extraction job.
|
|
447
|
+
* Used by finsys-api (writes) and finhub/finsys-client (reads/displays).
|
|
448
|
+
*/
|
|
449
|
+
declare enum ExtractionJobStatus {
|
|
450
|
+
Queued = "queued",
|
|
451
|
+
Processing = "processing",
|
|
452
|
+
Succeeded = "succeeded",
|
|
453
|
+
Failed = "failed"
|
|
454
|
+
}
|
|
455
|
+
/**
|
|
456
|
+
* Document types that go through FinXtract extraction.
|
|
457
|
+
* Values must match the `type` field on finsys-api File entity
|
|
458
|
+
* and the config keys in finXtractApi.api.
|
|
459
|
+
*/
|
|
460
|
+
declare enum ExtractionFileType {
|
|
461
|
+
FinancialStatement = "financialStatements",
|
|
462
|
+
BankStatement = "bankStatements",
|
|
463
|
+
Epf = "epfStatements",
|
|
464
|
+
Payslip = "payslips",
|
|
465
|
+
Ssm = "ssm",
|
|
466
|
+
Form9 = "form9",
|
|
467
|
+
Ic = "ic"
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
export { BASE_FIELD_SPECS, BasicFormField, type Category, type Choice, DEFAULT_VALIDATOR_DEFINITIONS, type DropdownOption, type EditorValidator, ExtractionFileType, ExtractionJobStatus, FIELD_TYPE_DEFINITIONS, type FieldData, type FieldGroup, type FieldReference, FieldType, type FileFieldTableData, type FileFieldTableItem, FileFieldTableType, FileFormField, FormField, FormFieldCategory, type FormFieldInputType, type FormFieldType, type FormFieldTypeDefinitions, FormFieldValidator, FormSpec, type FormValidatorDefinitions, type IhsDetailCategory, type IhsFieldDetail, IhsValueFormat, type PageConfig, type RHFSchemaOutput, type RHFStep, type ResolvedField, Role, type SurveyElementJSON, type SurveyJSON, type SurveyPageJSON, type UnifiedFormConfig, type Validator, applyDynamicTitles, buildFileFieldTables, evaluateExpression, extractTimePeriods, generateRHFSchema, generateSurveyJson, getBaseCategories, getBaseFieldNames, getBaseFieldSpecMap, getBaseFieldSpecs, getCategoryName, getDisplayName, getDisplayNames, getPastMonthLabel, getPastYearLabel, getStepDefaultValues, getStepSchema, groupColumnsByTimePeriod, groupDetailsByCategory, groupFieldsByCategory, groupFieldsByPattern, processIhsDetails, resolvePageFields, validateFormConfig, validateFormSpec, validatePagesConfig };
|
package/dist/index.d.ts
CHANGED
|
@@ -442,4 +442,29 @@ declare enum Role {
|
|
|
442
442
|
LENDER_AGENT = "Lender Agent"
|
|
443
443
|
}
|
|
444
444
|
|
|
445
|
-
|
|
445
|
+
/**
|
|
446
|
+
* Status of a document extraction job.
|
|
447
|
+
* Used by finsys-api (writes) and finhub/finsys-client (reads/displays).
|
|
448
|
+
*/
|
|
449
|
+
declare enum ExtractionJobStatus {
|
|
450
|
+
Queued = "queued",
|
|
451
|
+
Processing = "processing",
|
|
452
|
+
Succeeded = "succeeded",
|
|
453
|
+
Failed = "failed"
|
|
454
|
+
}
|
|
455
|
+
/**
|
|
456
|
+
* Document types that go through FinXtract extraction.
|
|
457
|
+
* Values must match the `type` field on finsys-api File entity
|
|
458
|
+
* and the config keys in finXtractApi.api.
|
|
459
|
+
*/
|
|
460
|
+
declare enum ExtractionFileType {
|
|
461
|
+
FinancialStatement = "financialStatements",
|
|
462
|
+
BankStatement = "bankStatements",
|
|
463
|
+
Epf = "epfStatements",
|
|
464
|
+
Payslip = "payslips",
|
|
465
|
+
Ssm = "ssm",
|
|
466
|
+
Form9 = "form9",
|
|
467
|
+
Ic = "ic"
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
export { BASE_FIELD_SPECS, BasicFormField, type Category, type Choice, DEFAULT_VALIDATOR_DEFINITIONS, type DropdownOption, type EditorValidator, ExtractionFileType, ExtractionJobStatus, FIELD_TYPE_DEFINITIONS, type FieldData, type FieldGroup, type FieldReference, FieldType, type FileFieldTableData, type FileFieldTableItem, FileFieldTableType, FileFormField, FormField, FormFieldCategory, type FormFieldInputType, type FormFieldType, type FormFieldTypeDefinitions, FormFieldValidator, FormSpec, type FormValidatorDefinitions, type IhsDetailCategory, type IhsFieldDetail, IhsValueFormat, type PageConfig, type RHFSchemaOutput, type RHFStep, type ResolvedField, Role, type SurveyElementJSON, type SurveyJSON, type SurveyPageJSON, type UnifiedFormConfig, type Validator, applyDynamicTitles, buildFileFieldTables, evaluateExpression, extractTimePeriods, generateRHFSchema, generateSurveyJson, getBaseCategories, getBaseFieldNames, getBaseFieldSpecMap, getBaseFieldSpecs, getCategoryName, getDisplayName, getDisplayNames, getPastMonthLabel, getPastYearLabel, getStepDefaultValues, getStepSchema, groupColumnsByTimePeriod, groupDetailsByCategory, groupFieldsByCategory, groupFieldsByPattern, processIhsDetails, resolvePageFields, validateFormConfig, validateFormSpec, validatePagesConfig };
|
package/dist/index.js
CHANGED
|
@@ -9321,9 +9321,9 @@ var FIELD_GROUP_PREFIXES = [
|
|
|
9321
9321
|
["financials", "financials"],
|
|
9322
9322
|
["epf_statement", "epf_statements"],
|
|
9323
9323
|
["payslip_statement", "payslip_statements"],
|
|
9324
|
-
["ssm", "
|
|
9324
|
+
["ssm", "ssm_documents"],
|
|
9325
9325
|
["form9", "form9"],
|
|
9326
|
-
["ic", "
|
|
9326
|
+
["ic", "ic_documents"]
|
|
9327
9327
|
];
|
|
9328
9328
|
function groupFieldsByPattern(fields) {
|
|
9329
9329
|
const groups = {};
|
|
@@ -9347,8 +9347,8 @@ var GROUP_DISPLAY_NAMES = {
|
|
|
9347
9347
|
epf_statements: "EPF Statements",
|
|
9348
9348
|
payslip_statements: "Payslip Statements",
|
|
9349
9349
|
form9: "Form 9 / Section 17 / Form D",
|
|
9350
|
-
|
|
9351
|
-
|
|
9350
|
+
ssm_documents: "SSM Company Information",
|
|
9351
|
+
ic_documents: "Identification Card"
|
|
9352
9352
|
};
|
|
9353
9353
|
function isNumericField(fieldName) {
|
|
9354
9354
|
const patterns = [
|
|
@@ -9547,10 +9547,31 @@ var Role = /* @__PURE__ */ ((Role2) => {
|
|
|
9547
9547
|
Role2["LENDER_AGENT"] = "Lender Agent";
|
|
9548
9548
|
return Role2;
|
|
9549
9549
|
})(Role || {});
|
|
9550
|
+
|
|
9551
|
+
// src/extraction.ts
|
|
9552
|
+
var ExtractionJobStatus = /* @__PURE__ */ ((ExtractionJobStatus2) => {
|
|
9553
|
+
ExtractionJobStatus2["Queued"] = "queued";
|
|
9554
|
+
ExtractionJobStatus2["Processing"] = "processing";
|
|
9555
|
+
ExtractionJobStatus2["Succeeded"] = "succeeded";
|
|
9556
|
+
ExtractionJobStatus2["Failed"] = "failed";
|
|
9557
|
+
return ExtractionJobStatus2;
|
|
9558
|
+
})(ExtractionJobStatus || {});
|
|
9559
|
+
var ExtractionFileType = /* @__PURE__ */ ((ExtractionFileType2) => {
|
|
9560
|
+
ExtractionFileType2["FinancialStatement"] = "financialStatements";
|
|
9561
|
+
ExtractionFileType2["BankStatement"] = "bankStatements";
|
|
9562
|
+
ExtractionFileType2["Epf"] = "epfStatements";
|
|
9563
|
+
ExtractionFileType2["Payslip"] = "payslips";
|
|
9564
|
+
ExtractionFileType2["Ssm"] = "ssm";
|
|
9565
|
+
ExtractionFileType2["Form9"] = "form9";
|
|
9566
|
+
ExtractionFileType2["Ic"] = "ic";
|
|
9567
|
+
return ExtractionFileType2;
|
|
9568
|
+
})(ExtractionFileType || {});
|
|
9550
9569
|
export {
|
|
9551
9570
|
BASE_FIELD_SPECS,
|
|
9552
9571
|
BasicFormField,
|
|
9553
9572
|
DEFAULT_VALIDATOR_DEFINITIONS,
|
|
9573
|
+
ExtractionFileType,
|
|
9574
|
+
ExtractionJobStatus,
|
|
9554
9575
|
FIELD_TYPE_DEFINITIONS,
|
|
9555
9576
|
FieldType,
|
|
9556
9577
|
FileFieldTableType,
|