@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 CHANGED
@@ -33,6 +33,8 @@ __export(index_exports, {
33
33
  BASE_FIELD_SPECS: () => BASE_FIELD_SPECS,
34
34
  BasicFormField: () => BasicFormField,
35
35
  DEFAULT_VALIDATOR_DEFINITIONS: () => DEFAULT_VALIDATOR_DEFINITIONS,
36
+ ExtractionFileType: () => ExtractionFileType,
37
+ ExtractionJobStatus: () => ExtractionJobStatus,
36
38
  FIELD_TYPE_DEFINITIONS: () => FIELD_TYPE_DEFINITIONS,
37
39
  FieldType: () => FieldType,
38
40
  FileFieldTableType: () => FileFieldTableType,
@@ -9395,9 +9397,9 @@ var FIELD_GROUP_PREFIXES = [
9395
9397
  ["financials", "financials"],
9396
9398
  ["epf_statement", "epf_statements"],
9397
9399
  ["payslip_statement", "payslip_statements"],
9398
- ["ssm", "ssm_company_profile"],
9400
+ ["ssm", "ssm_documents"],
9399
9401
  ["form9", "form9"],
9400
- ["ic", "ic"]
9402
+ ["ic", "ic_documents"]
9401
9403
  ];
9402
9404
  function groupFieldsByPattern(fields) {
9403
9405
  const groups = {};
@@ -9421,8 +9423,8 @@ var GROUP_DISPLAY_NAMES = {
9421
9423
  epf_statements: "EPF Statements",
9422
9424
  payslip_statements: "Payslip Statements",
9423
9425
  form9: "Form 9 / Section 17 / Form D",
9424
- ssm_company_profile: "SSM Company Profile",
9425
- ic: "Identification Card"
9426
+ ssm_documents: "SSM Company Information",
9427
+ ic_documents: "Identification Card"
9426
9428
  };
9427
9429
  function isNumericField(fieldName) {
9428
9430
  const patterns = [
@@ -9621,11 +9623,32 @@ var Role = /* @__PURE__ */ ((Role2) => {
9621
9623
  Role2["LENDER_AGENT"] = "Lender Agent";
9622
9624
  return Role2;
9623
9625
  })(Role || {});
9626
+
9627
+ // src/extraction.ts
9628
+ var ExtractionJobStatus = /* @__PURE__ */ ((ExtractionJobStatus2) => {
9629
+ ExtractionJobStatus2["Queued"] = "queued";
9630
+ ExtractionJobStatus2["Processing"] = "processing";
9631
+ ExtractionJobStatus2["Succeeded"] = "succeeded";
9632
+ ExtractionJobStatus2["Failed"] = "failed";
9633
+ return ExtractionJobStatus2;
9634
+ })(ExtractionJobStatus || {});
9635
+ var ExtractionFileType = /* @__PURE__ */ ((ExtractionFileType2) => {
9636
+ ExtractionFileType2["FinancialStatement"] = "financialStatements";
9637
+ ExtractionFileType2["BankStatement"] = "bankStatements";
9638
+ ExtractionFileType2["Epf"] = "epfStatements";
9639
+ ExtractionFileType2["Payslip"] = "payslips";
9640
+ ExtractionFileType2["Ssm"] = "ssm";
9641
+ ExtractionFileType2["Form9"] = "form9";
9642
+ ExtractionFileType2["Ic"] = "ic";
9643
+ return ExtractionFileType2;
9644
+ })(ExtractionFileType || {});
9624
9645
  // Annotate the CommonJS export names for ESM import in node:
9625
9646
  0 && (module.exports = {
9626
9647
  BASE_FIELD_SPECS,
9627
9648
  BasicFormField,
9628
9649
  DEFAULT_VALIDATOR_DEFINITIONS,
9650
+ ExtractionFileType,
9651
+ ExtractionJobStatus,
9629
9652
  FIELD_TYPE_DEFINITIONS,
9630
9653
  FieldType,
9631
9654
  FileFieldTableType,