@finsys/core 2.3.1 → 2.4.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 +61 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +55 -1
- package/dist/index.d.ts +55 -1
- package/dist/index.js +54 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -44,6 +44,10 @@ __export(index_exports, {
|
|
|
44
44
|
FormFieldCategory: () => FormFieldCategory,
|
|
45
45
|
FormFieldValidator: () => FormFieldValidator,
|
|
46
46
|
FormSpec: () => FormSpec,
|
|
47
|
+
IHS_FAILURE_STATUSES: () => IHS_FAILURE_STATUSES,
|
|
48
|
+
IHS_TERMINAL_STATUSES: () => IHS_TERMINAL_STATUSES,
|
|
49
|
+
IHS_VALID_STATUSES: () => IHS_VALID_STATUSES,
|
|
50
|
+
IhsStatus: () => IhsStatus,
|
|
47
51
|
IhsValueFormat: () => IhsValueFormat,
|
|
48
52
|
Role: () => Role,
|
|
49
53
|
applyDynamicTitles: () => applyDynamicTitles,
|
|
@@ -68,6 +72,9 @@ __export(index_exports, {
|
|
|
68
72
|
groupDetailsByCategory: () => groupDetailsByCategory,
|
|
69
73
|
groupFieldsByCategory: () => groupFieldsByCategory,
|
|
70
74
|
groupFieldsByPattern: () => groupFieldsByPattern,
|
|
75
|
+
isFailureIhsStatus: () => isFailureIhsStatus,
|
|
76
|
+
isTerminalIhsStatus: () => isTerminalIhsStatus,
|
|
77
|
+
isValidIhsStatus: () => isValidIhsStatus,
|
|
71
78
|
processIhsDetails: () => processIhsDetails,
|
|
72
79
|
resolveExtractionStatus: () => resolveExtractionStatus,
|
|
73
80
|
resolvePageFields: () => resolvePageFields,
|
|
@@ -9652,6 +9659,53 @@ var ExtractionFileType = /* @__PURE__ */ ((ExtractionFileType2) => {
|
|
|
9652
9659
|
return ExtractionFileType2;
|
|
9653
9660
|
})(ExtractionFileType || {});
|
|
9654
9661
|
|
|
9662
|
+
// src/ihs-status.ts
|
|
9663
|
+
var IhsStatus = /* @__PURE__ */ ((IhsStatus2) => {
|
|
9664
|
+
IhsStatus2["CreatingApplication"] = "CREATING_APPLICATION";
|
|
9665
|
+
IhsStatus2["ApplicationFinalized"] = "APPLICATION_FINALIZED";
|
|
9666
|
+
IhsStatus2["LenderEvaluation"] = "LENDER_EVALUATION";
|
|
9667
|
+
IhsStatus2["Approved"] = "APPROVED";
|
|
9668
|
+
IhsStatus2["LouDelivered"] = "LOU_DELIVERED";
|
|
9669
|
+
IhsStatus2["AwaitingDisbursement"] = "AWAITING_DISBURSEMENT";
|
|
9670
|
+
IhsStatus2["Disbursement"] = "DISBURSEMENT";
|
|
9671
|
+
IhsStatus2["Declined"] = "DECLINED";
|
|
9672
|
+
IhsStatus2["Expired"] = "EXPIRED";
|
|
9673
|
+
IhsStatus2["Canceled"] = "CANCELED";
|
|
9674
|
+
return IhsStatus2;
|
|
9675
|
+
})(IhsStatus || {});
|
|
9676
|
+
var IHS_VALID_STATUSES = [
|
|
9677
|
+
"CREATING_APPLICATION" /* CreatingApplication */,
|
|
9678
|
+
"APPLICATION_FINALIZED" /* ApplicationFinalized */,
|
|
9679
|
+
"LENDER_EVALUATION" /* LenderEvaluation */,
|
|
9680
|
+
"APPROVED" /* Approved */,
|
|
9681
|
+
"LOU_DELIVERED" /* LouDelivered */,
|
|
9682
|
+
"AWAITING_DISBURSEMENT" /* AwaitingDisbursement */,
|
|
9683
|
+
"DISBURSEMENT" /* Disbursement */,
|
|
9684
|
+
"DECLINED" /* Declined */,
|
|
9685
|
+
"EXPIRED" /* Expired */,
|
|
9686
|
+
"CANCELED" /* Canceled */
|
|
9687
|
+
];
|
|
9688
|
+
var IHS_TERMINAL_STATUSES = [
|
|
9689
|
+
"DISBURSEMENT" /* Disbursement */,
|
|
9690
|
+
"DECLINED" /* Declined */,
|
|
9691
|
+
"EXPIRED" /* Expired */,
|
|
9692
|
+
"CANCELED" /* Canceled */
|
|
9693
|
+
];
|
|
9694
|
+
var IHS_FAILURE_STATUSES = [
|
|
9695
|
+
"DECLINED" /* Declined */,
|
|
9696
|
+
"EXPIRED" /* Expired */,
|
|
9697
|
+
"CANCELED" /* Canceled */
|
|
9698
|
+
];
|
|
9699
|
+
function isValidIhsStatus(status) {
|
|
9700
|
+
return typeof status === "string" && IHS_VALID_STATUSES.includes(status);
|
|
9701
|
+
}
|
|
9702
|
+
function isTerminalIhsStatus(status) {
|
|
9703
|
+
return typeof status === "string" && IHS_TERMINAL_STATUSES.includes(status);
|
|
9704
|
+
}
|
|
9705
|
+
function isFailureIhsStatus(status) {
|
|
9706
|
+
return typeof status === "string" && IHS_FAILURE_STATUSES.includes(status);
|
|
9707
|
+
}
|
|
9708
|
+
|
|
9655
9709
|
// src/extraction-status.ts
|
|
9656
9710
|
var DocExtractionStatus = /* @__PURE__ */ ((DocExtractionStatus2) => {
|
|
9657
9711
|
DocExtractionStatus2["NotUploaded"] = "not_uploaded";
|
|
@@ -9818,6 +9872,10 @@ function resolveExtractionStatus(ihsRecord, jobRecords) {
|
|
|
9818
9872
|
FormFieldCategory,
|
|
9819
9873
|
FormFieldValidator,
|
|
9820
9874
|
FormSpec,
|
|
9875
|
+
IHS_FAILURE_STATUSES,
|
|
9876
|
+
IHS_TERMINAL_STATUSES,
|
|
9877
|
+
IHS_VALID_STATUSES,
|
|
9878
|
+
IhsStatus,
|
|
9821
9879
|
IhsValueFormat,
|
|
9822
9880
|
Role,
|
|
9823
9881
|
applyDynamicTitles,
|
|
@@ -9842,6 +9900,9 @@ function resolveExtractionStatus(ihsRecord, jobRecords) {
|
|
|
9842
9900
|
groupDetailsByCategory,
|
|
9843
9901
|
groupFieldsByCategory,
|
|
9844
9902
|
groupFieldsByPattern,
|
|
9903
|
+
isFailureIhsStatus,
|
|
9904
|
+
isTerminalIhsStatus,
|
|
9905
|
+
isValidIhsStatus,
|
|
9845
9906
|
processIhsDetails,
|
|
9846
9907
|
resolveExtractionStatus,
|
|
9847
9908
|
resolvePageFields,
|