@finsys/core 2.0.1 → 2.1.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.d.cts CHANGED
@@ -442,4 +442,29 @@ declare enum Role {
442
442
  LENDER_AGENT = "Lender Agent"
443
443
  }
444
444
 
445
- export { BASE_FIELD_SPECS, BasicFormField, type Category, type Choice, DEFAULT_VALIDATOR_DEFINITIONS, type DropdownOption, type EditorValidator, 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 };
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
- export { BASE_FIELD_SPECS, BasicFormField, type Category, type Choice, DEFAULT_VALIDATOR_DEFINITIONS, type DropdownOption, type EditorValidator, 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 };
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
@@ -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,