@finsys/core 2.3.1 → 2.5.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/data/form-field-base-specs.json +0 -20
- package/dist/index.cjs +61 -20
- 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 -20
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -6675,7 +6675,6 @@
|
|
|
6675
6675
|
"name": "bank_statement_t1",
|
|
6676
6676
|
"displayName": "Bank Statement (Month T-1)",
|
|
6677
6677
|
"type": "file",
|
|
6678
|
-
"enableIf": "{formOfDisclosure} contains 'consented'",
|
|
6679
6678
|
"ihs_column_names": [
|
|
6680
6679
|
"accountHolderNameT1",
|
|
6681
6680
|
"statementDateT1",
|
|
@@ -6692,7 +6691,6 @@
|
|
|
6692
6691
|
"name": "bank_statement_t2",
|
|
6693
6692
|
"displayName": "Bank Statement (Month T-2)",
|
|
6694
6693
|
"type": "file",
|
|
6695
|
-
"enableIf": "{formOfDisclosure} contains 'consented'",
|
|
6696
6694
|
"ihs_column_names": [
|
|
6697
6695
|
"accountHolderNameT2",
|
|
6698
6696
|
"statementDateT2",
|
|
@@ -6709,7 +6707,6 @@
|
|
|
6709
6707
|
"name": "bank_statement_t3",
|
|
6710
6708
|
"displayName": "Bank Statement (Month T-3)",
|
|
6711
6709
|
"type": "file",
|
|
6712
|
-
"enableIf": "{formOfDisclosure} contains 'consented'",
|
|
6713
6710
|
"ihs_column_names": [
|
|
6714
6711
|
"accountHolderNameT3",
|
|
6715
6712
|
"statementDateT3",
|
|
@@ -6726,7 +6723,6 @@
|
|
|
6726
6723
|
"name": "bank_statement_t4",
|
|
6727
6724
|
"displayName": "Bank Statement (Month T-4)",
|
|
6728
6725
|
"type": "file",
|
|
6729
|
-
"enableIf": "{formOfDisclosure} contains 'consented'",
|
|
6730
6726
|
"ihs_column_names": [
|
|
6731
6727
|
"accountHolderNameT4",
|
|
6732
6728
|
"statementDateT4",
|
|
@@ -6743,7 +6739,6 @@
|
|
|
6743
6739
|
"name": "bank_statement_t5",
|
|
6744
6740
|
"displayName": "Bank Statement (Month T-5)",
|
|
6745
6741
|
"type": "file",
|
|
6746
|
-
"enableIf": "{formOfDisclosure} contains 'consented'",
|
|
6747
6742
|
"ihs_column_names": [
|
|
6748
6743
|
"accountHolderNameT5",
|
|
6749
6744
|
"statementDateT5",
|
|
@@ -6760,7 +6755,6 @@
|
|
|
6760
6755
|
"name": "bank_statement_t6",
|
|
6761
6756
|
"displayName": "Bank Statement (Month T-6)",
|
|
6762
6757
|
"type": "file",
|
|
6763
|
-
"enableIf": "{formOfDisclosure} contains 'consented'",
|
|
6764
6758
|
"ihs_column_names": [
|
|
6765
6759
|
"accountHolderNameT6",
|
|
6766
6760
|
"statementDateT6",
|
|
@@ -6777,7 +6771,6 @@
|
|
|
6777
6771
|
"name": "financials",
|
|
6778
6772
|
"displayName": "Audited Financial Statement",
|
|
6779
6773
|
"type": "file",
|
|
6780
|
-
"enableIf": "{formOfDisclosure} contains 'consented'",
|
|
6781
6774
|
"ihs_column_names": [
|
|
6782
6775
|
"shareCapital",
|
|
6783
6776
|
"totalEquityT1",
|
|
@@ -6799,7 +6792,6 @@
|
|
|
6799
6792
|
"name": "financials_fincap_t1",
|
|
6800
6793
|
"displayName": "Audited Financial Statement (T-1) (FinCap)",
|
|
6801
6794
|
"type": "file",
|
|
6802
|
-
"enableIf": "{formOfDisclosure} contains 'consented'",
|
|
6803
6795
|
"ihs_column_names": [
|
|
6804
6796
|
"nonCurrentAssetsSubsidiaryCompaniesT1",
|
|
6805
6797
|
"nonCurrentAssetsAssociatedCompaniesT1",
|
|
@@ -7044,7 +7036,6 @@
|
|
|
7044
7036
|
"name": "financials_fincap_t2",
|
|
7045
7037
|
"displayName": "Audited Financial Statement (T-2) (FinCap)",
|
|
7046
7038
|
"type": "file",
|
|
7047
|
-
"enableIf": "{formOfDisclosure} contains 'consented'",
|
|
7048
7039
|
"ihs_column_names": [
|
|
7049
7040
|
"nonCurrentAssetsSubsidiaryCompaniesT3",
|
|
7050
7041
|
"nonCurrentAssetsAssociatedCompaniesT3",
|
|
@@ -7171,7 +7162,6 @@
|
|
|
7171
7162
|
"name": "form9",
|
|
7172
7163
|
"displayName": "Form 9 / Section 17 / Form D",
|
|
7173
7164
|
"type": "file",
|
|
7174
|
-
"enableIf": "{formOfDisclosure} contains 'consented'",
|
|
7175
7165
|
"ihs_column_names": [
|
|
7176
7166
|
"incorporatedDate",
|
|
7177
7167
|
"companyName",
|
|
@@ -7183,7 +7173,6 @@
|
|
|
7183
7173
|
"name": "ssm",
|
|
7184
7174
|
"displayName": "SSM Company Profile",
|
|
7185
7175
|
"type": "file",
|
|
7186
|
-
"enableIf": "{formOfDisclosure} contains 'consented'",
|
|
7187
7176
|
"ihs_column_names": [
|
|
7188
7177
|
"ssmCompanyName",
|
|
7189
7178
|
"ssmCompanyRegNo",
|
|
@@ -7208,7 +7197,6 @@
|
|
|
7208
7197
|
"name": "ic",
|
|
7209
7198
|
"displayName": "Identification Card (Front)",
|
|
7210
7199
|
"type": "file",
|
|
7211
|
-
"enableIf": "{formOfDisclosure} contains 'consented'",
|
|
7212
7200
|
"ihs_column_names": [
|
|
7213
7201
|
"icNumber",
|
|
7214
7202
|
"icName",
|
|
@@ -7226,7 +7214,6 @@
|
|
|
7226
7214
|
"name": "epf_statement_t1",
|
|
7227
7215
|
"displayName": "Employees' Provident Fund (T-1)",
|
|
7228
7216
|
"type": "file",
|
|
7229
|
-
"enableIf": "{formOfDisclosure} contains 'consented'",
|
|
7230
7217
|
"ihs_column_names": [
|
|
7231
7218
|
"epfAccountHolderNameT1",
|
|
7232
7219
|
"epfAccountHolderAddressT1",
|
|
@@ -7244,7 +7231,6 @@
|
|
|
7244
7231
|
"name": "epf_statement_t2",
|
|
7245
7232
|
"displayName": "Employees' Provident Fund (T-2)",
|
|
7246
7233
|
"type": "file",
|
|
7247
|
-
"enableIf": "{formOfDisclosure} contains 'consented'",
|
|
7248
7234
|
"ihs_column_names": [
|
|
7249
7235
|
"epfAccountHolderNameT2",
|
|
7250
7236
|
"epfAccountHolderAddressT2",
|
|
@@ -7262,7 +7248,6 @@
|
|
|
7262
7248
|
"name": "payslip_statement_t1",
|
|
7263
7249
|
"displayName": "Payslip Statement (Month T-1)",
|
|
7264
7250
|
"type": "file",
|
|
7265
|
-
"enableIf": "{formOfDisclosure} contains 'consented'",
|
|
7266
7251
|
"ihs_column_names": [
|
|
7267
7252
|
"payslipEmployerNameT1",
|
|
7268
7253
|
"payslipEmployeeNameT1",
|
|
@@ -7286,7 +7271,6 @@
|
|
|
7286
7271
|
"name": "payslip_statement_t2",
|
|
7287
7272
|
"displayName": "Payslip Statement (Month T-2)",
|
|
7288
7273
|
"type": "file",
|
|
7289
|
-
"enableIf": "{formOfDisclosure} contains 'consented'",
|
|
7290
7274
|
"ihs_column_names": [
|
|
7291
7275
|
"payslipEmployerNameT2",
|
|
7292
7276
|
"payslipEmployeeNameT2",
|
|
@@ -7310,7 +7294,6 @@
|
|
|
7310
7294
|
"name": "payslip_statement_t3",
|
|
7311
7295
|
"displayName": "Payslip Statement (Month T-3)",
|
|
7312
7296
|
"type": "file",
|
|
7313
|
-
"enableIf": "{formOfDisclosure} contains 'consented'",
|
|
7314
7297
|
"ihs_column_names": [
|
|
7315
7298
|
"payslipEmployerNameT3",
|
|
7316
7299
|
"payslipEmployeeNameT3",
|
|
@@ -7334,7 +7317,6 @@
|
|
|
7334
7317
|
"name": "payslip_statement_t4",
|
|
7335
7318
|
"displayName": "Payslip Statement (Month T-4)",
|
|
7336
7319
|
"type": "file",
|
|
7337
|
-
"enableIf": "{formOfDisclosure} contains 'consented'",
|
|
7338
7320
|
"ihs_column_names": [
|
|
7339
7321
|
"payslipEmployerNameT4",
|
|
7340
7322
|
"payslipEmployeeNameT4",
|
|
@@ -7358,7 +7340,6 @@
|
|
|
7358
7340
|
"name": "payslip_statement_t5",
|
|
7359
7341
|
"displayName": "Payslip Statement (Month T-5)",
|
|
7360
7342
|
"type": "file",
|
|
7361
|
-
"enableIf": "{formOfDisclosure} contains 'consented'",
|
|
7362
7343
|
"ihs_column_names": [
|
|
7363
7344
|
"payslipEmployerNameT5",
|
|
7364
7345
|
"payslipEmployeeNameT5",
|
|
@@ -7382,7 +7363,6 @@
|
|
|
7382
7363
|
"name": "payslip_statement_t6",
|
|
7383
7364
|
"displayName": "Payslip Statement (Month T-6)",
|
|
7384
7365
|
"type": "file",
|
|
7385
|
-
"enableIf": "{formOfDisclosure} contains 'consented'",
|
|
7386
7366
|
"ihs_column_names": [
|
|
7387
7367
|
"payslipEmployerNameT6",
|
|
7388
7368
|
"payslipEmployeeNameT6",
|
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,
|
|
@@ -7967,7 +7974,6 @@ var form_field_base_specs_default = {
|
|
|
7967
7974
|
name: "bank_statement_t1",
|
|
7968
7975
|
displayName: "Bank Statement (Month T-1)",
|
|
7969
7976
|
type: "file",
|
|
7970
|
-
enableIf: "{formOfDisclosure} contains 'consented'",
|
|
7971
7977
|
ihs_column_names: [
|
|
7972
7978
|
"accountHolderNameT1",
|
|
7973
7979
|
"statementDateT1",
|
|
@@ -7984,7 +7990,6 @@ var form_field_base_specs_default = {
|
|
|
7984
7990
|
name: "bank_statement_t2",
|
|
7985
7991
|
displayName: "Bank Statement (Month T-2)",
|
|
7986
7992
|
type: "file",
|
|
7987
|
-
enableIf: "{formOfDisclosure} contains 'consented'",
|
|
7988
7993
|
ihs_column_names: [
|
|
7989
7994
|
"accountHolderNameT2",
|
|
7990
7995
|
"statementDateT2",
|
|
@@ -8001,7 +8006,6 @@ var form_field_base_specs_default = {
|
|
|
8001
8006
|
name: "bank_statement_t3",
|
|
8002
8007
|
displayName: "Bank Statement (Month T-3)",
|
|
8003
8008
|
type: "file",
|
|
8004
|
-
enableIf: "{formOfDisclosure} contains 'consented'",
|
|
8005
8009
|
ihs_column_names: [
|
|
8006
8010
|
"accountHolderNameT3",
|
|
8007
8011
|
"statementDateT3",
|
|
@@ -8018,7 +8022,6 @@ var form_field_base_specs_default = {
|
|
|
8018
8022
|
name: "bank_statement_t4",
|
|
8019
8023
|
displayName: "Bank Statement (Month T-4)",
|
|
8020
8024
|
type: "file",
|
|
8021
|
-
enableIf: "{formOfDisclosure} contains 'consented'",
|
|
8022
8025
|
ihs_column_names: [
|
|
8023
8026
|
"accountHolderNameT4",
|
|
8024
8027
|
"statementDateT4",
|
|
@@ -8035,7 +8038,6 @@ var form_field_base_specs_default = {
|
|
|
8035
8038
|
name: "bank_statement_t5",
|
|
8036
8039
|
displayName: "Bank Statement (Month T-5)",
|
|
8037
8040
|
type: "file",
|
|
8038
|
-
enableIf: "{formOfDisclosure} contains 'consented'",
|
|
8039
8041
|
ihs_column_names: [
|
|
8040
8042
|
"accountHolderNameT5",
|
|
8041
8043
|
"statementDateT5",
|
|
@@ -8052,7 +8054,6 @@ var form_field_base_specs_default = {
|
|
|
8052
8054
|
name: "bank_statement_t6",
|
|
8053
8055
|
displayName: "Bank Statement (Month T-6)",
|
|
8054
8056
|
type: "file",
|
|
8055
|
-
enableIf: "{formOfDisclosure} contains 'consented'",
|
|
8056
8057
|
ihs_column_names: [
|
|
8057
8058
|
"accountHolderNameT6",
|
|
8058
8059
|
"statementDateT6",
|
|
@@ -8069,7 +8070,6 @@ var form_field_base_specs_default = {
|
|
|
8069
8070
|
name: "financials",
|
|
8070
8071
|
displayName: "Audited Financial Statement",
|
|
8071
8072
|
type: "file",
|
|
8072
|
-
enableIf: "{formOfDisclosure} contains 'consented'",
|
|
8073
8073
|
ihs_column_names: [
|
|
8074
8074
|
"shareCapital",
|
|
8075
8075
|
"totalEquityT1",
|
|
@@ -8091,7 +8091,6 @@ var form_field_base_specs_default = {
|
|
|
8091
8091
|
name: "financials_fincap_t1",
|
|
8092
8092
|
displayName: "Audited Financial Statement (T-1) (FinCap)",
|
|
8093
8093
|
type: "file",
|
|
8094
|
-
enableIf: "{formOfDisclosure} contains 'consented'",
|
|
8095
8094
|
ihs_column_names: [
|
|
8096
8095
|
"nonCurrentAssetsSubsidiaryCompaniesT1",
|
|
8097
8096
|
"nonCurrentAssetsAssociatedCompaniesT1",
|
|
@@ -8336,7 +8335,6 @@ var form_field_base_specs_default = {
|
|
|
8336
8335
|
name: "financials_fincap_t2",
|
|
8337
8336
|
displayName: "Audited Financial Statement (T-2) (FinCap)",
|
|
8338
8337
|
type: "file",
|
|
8339
|
-
enableIf: "{formOfDisclosure} contains 'consented'",
|
|
8340
8338
|
ihs_column_names: [
|
|
8341
8339
|
"nonCurrentAssetsSubsidiaryCompaniesT3",
|
|
8342
8340
|
"nonCurrentAssetsAssociatedCompaniesT3",
|
|
@@ -8463,7 +8461,6 @@ var form_field_base_specs_default = {
|
|
|
8463
8461
|
name: "form9",
|
|
8464
8462
|
displayName: "Form 9 / Section 17 / Form D",
|
|
8465
8463
|
type: "file",
|
|
8466
|
-
enableIf: "{formOfDisclosure} contains 'consented'",
|
|
8467
8464
|
ihs_column_names: [
|
|
8468
8465
|
"incorporatedDate",
|
|
8469
8466
|
"companyName",
|
|
@@ -8475,7 +8472,6 @@ var form_field_base_specs_default = {
|
|
|
8475
8472
|
name: "ssm",
|
|
8476
8473
|
displayName: "SSM Company Profile",
|
|
8477
8474
|
type: "file",
|
|
8478
|
-
enableIf: "{formOfDisclosure} contains 'consented'",
|
|
8479
8475
|
ihs_column_names: [
|
|
8480
8476
|
"ssmCompanyName",
|
|
8481
8477
|
"ssmCompanyRegNo",
|
|
@@ -8500,7 +8496,6 @@ var form_field_base_specs_default = {
|
|
|
8500
8496
|
name: "ic",
|
|
8501
8497
|
displayName: "Identification Card (Front)",
|
|
8502
8498
|
type: "file",
|
|
8503
|
-
enableIf: "{formOfDisclosure} contains 'consented'",
|
|
8504
8499
|
ihs_column_names: [
|
|
8505
8500
|
"icNumber",
|
|
8506
8501
|
"icName",
|
|
@@ -8518,7 +8513,6 @@ var form_field_base_specs_default = {
|
|
|
8518
8513
|
name: "epf_statement_t1",
|
|
8519
8514
|
displayName: "Employees' Provident Fund (T-1)",
|
|
8520
8515
|
type: "file",
|
|
8521
|
-
enableIf: "{formOfDisclosure} contains 'consented'",
|
|
8522
8516
|
ihs_column_names: [
|
|
8523
8517
|
"epfAccountHolderNameT1",
|
|
8524
8518
|
"epfAccountHolderAddressT1",
|
|
@@ -8536,7 +8530,6 @@ var form_field_base_specs_default = {
|
|
|
8536
8530
|
name: "epf_statement_t2",
|
|
8537
8531
|
displayName: "Employees' Provident Fund (T-2)",
|
|
8538
8532
|
type: "file",
|
|
8539
|
-
enableIf: "{formOfDisclosure} contains 'consented'",
|
|
8540
8533
|
ihs_column_names: [
|
|
8541
8534
|
"epfAccountHolderNameT2",
|
|
8542
8535
|
"epfAccountHolderAddressT2",
|
|
@@ -8554,7 +8547,6 @@ var form_field_base_specs_default = {
|
|
|
8554
8547
|
name: "payslip_statement_t1",
|
|
8555
8548
|
displayName: "Payslip Statement (Month T-1)",
|
|
8556
8549
|
type: "file",
|
|
8557
|
-
enableIf: "{formOfDisclosure} contains 'consented'",
|
|
8558
8550
|
ihs_column_names: [
|
|
8559
8551
|
"payslipEmployerNameT1",
|
|
8560
8552
|
"payslipEmployeeNameT1",
|
|
@@ -8578,7 +8570,6 @@ var form_field_base_specs_default = {
|
|
|
8578
8570
|
name: "payslip_statement_t2",
|
|
8579
8571
|
displayName: "Payslip Statement (Month T-2)",
|
|
8580
8572
|
type: "file",
|
|
8581
|
-
enableIf: "{formOfDisclosure} contains 'consented'",
|
|
8582
8573
|
ihs_column_names: [
|
|
8583
8574
|
"payslipEmployerNameT2",
|
|
8584
8575
|
"payslipEmployeeNameT2",
|
|
@@ -8602,7 +8593,6 @@ var form_field_base_specs_default = {
|
|
|
8602
8593
|
name: "payslip_statement_t3",
|
|
8603
8594
|
displayName: "Payslip Statement (Month T-3)",
|
|
8604
8595
|
type: "file",
|
|
8605
|
-
enableIf: "{formOfDisclosure} contains 'consented'",
|
|
8606
8596
|
ihs_column_names: [
|
|
8607
8597
|
"payslipEmployerNameT3",
|
|
8608
8598
|
"payslipEmployeeNameT3",
|
|
@@ -8626,7 +8616,6 @@ var form_field_base_specs_default = {
|
|
|
8626
8616
|
name: "payslip_statement_t4",
|
|
8627
8617
|
displayName: "Payslip Statement (Month T-4)",
|
|
8628
8618
|
type: "file",
|
|
8629
|
-
enableIf: "{formOfDisclosure} contains 'consented'",
|
|
8630
8619
|
ihs_column_names: [
|
|
8631
8620
|
"payslipEmployerNameT4",
|
|
8632
8621
|
"payslipEmployeeNameT4",
|
|
@@ -8650,7 +8639,6 @@ var form_field_base_specs_default = {
|
|
|
8650
8639
|
name: "payslip_statement_t5",
|
|
8651
8640
|
displayName: "Payslip Statement (Month T-5)",
|
|
8652
8641
|
type: "file",
|
|
8653
|
-
enableIf: "{formOfDisclosure} contains 'consented'",
|
|
8654
8642
|
ihs_column_names: [
|
|
8655
8643
|
"payslipEmployerNameT5",
|
|
8656
8644
|
"payslipEmployeeNameT5",
|
|
@@ -8674,7 +8662,6 @@ var form_field_base_specs_default = {
|
|
|
8674
8662
|
name: "payslip_statement_t6",
|
|
8675
8663
|
displayName: "Payslip Statement (Month T-6)",
|
|
8676
8664
|
type: "file",
|
|
8677
|
-
enableIf: "{formOfDisclosure} contains 'consented'",
|
|
8678
8665
|
ihs_column_names: [
|
|
8679
8666
|
"payslipEmployerNameT6",
|
|
8680
8667
|
"payslipEmployeeNameT6",
|
|
@@ -9652,6 +9639,53 @@ var ExtractionFileType = /* @__PURE__ */ ((ExtractionFileType2) => {
|
|
|
9652
9639
|
return ExtractionFileType2;
|
|
9653
9640
|
})(ExtractionFileType || {});
|
|
9654
9641
|
|
|
9642
|
+
// src/ihs-status.ts
|
|
9643
|
+
var IhsStatus = /* @__PURE__ */ ((IhsStatus2) => {
|
|
9644
|
+
IhsStatus2["CreatingApplication"] = "CREATING_APPLICATION";
|
|
9645
|
+
IhsStatus2["ApplicationFinalized"] = "APPLICATION_FINALIZED";
|
|
9646
|
+
IhsStatus2["LenderEvaluation"] = "LENDER_EVALUATION";
|
|
9647
|
+
IhsStatus2["Approved"] = "APPROVED";
|
|
9648
|
+
IhsStatus2["LouDelivered"] = "LOU_DELIVERED";
|
|
9649
|
+
IhsStatus2["AwaitingDisbursement"] = "AWAITING_DISBURSEMENT";
|
|
9650
|
+
IhsStatus2["Disbursement"] = "DISBURSEMENT";
|
|
9651
|
+
IhsStatus2["Declined"] = "DECLINED";
|
|
9652
|
+
IhsStatus2["Expired"] = "EXPIRED";
|
|
9653
|
+
IhsStatus2["Canceled"] = "CANCELED";
|
|
9654
|
+
return IhsStatus2;
|
|
9655
|
+
})(IhsStatus || {});
|
|
9656
|
+
var IHS_VALID_STATUSES = [
|
|
9657
|
+
"CREATING_APPLICATION" /* CreatingApplication */,
|
|
9658
|
+
"APPLICATION_FINALIZED" /* ApplicationFinalized */,
|
|
9659
|
+
"LENDER_EVALUATION" /* LenderEvaluation */,
|
|
9660
|
+
"APPROVED" /* Approved */,
|
|
9661
|
+
"LOU_DELIVERED" /* LouDelivered */,
|
|
9662
|
+
"AWAITING_DISBURSEMENT" /* AwaitingDisbursement */,
|
|
9663
|
+
"DISBURSEMENT" /* Disbursement */,
|
|
9664
|
+
"DECLINED" /* Declined */,
|
|
9665
|
+
"EXPIRED" /* Expired */,
|
|
9666
|
+
"CANCELED" /* Canceled */
|
|
9667
|
+
];
|
|
9668
|
+
var IHS_TERMINAL_STATUSES = [
|
|
9669
|
+
"DISBURSEMENT" /* Disbursement */,
|
|
9670
|
+
"DECLINED" /* Declined */,
|
|
9671
|
+
"EXPIRED" /* Expired */,
|
|
9672
|
+
"CANCELED" /* Canceled */
|
|
9673
|
+
];
|
|
9674
|
+
var IHS_FAILURE_STATUSES = [
|
|
9675
|
+
"DECLINED" /* Declined */,
|
|
9676
|
+
"EXPIRED" /* Expired */,
|
|
9677
|
+
"CANCELED" /* Canceled */
|
|
9678
|
+
];
|
|
9679
|
+
function isValidIhsStatus(status) {
|
|
9680
|
+
return typeof status === "string" && IHS_VALID_STATUSES.includes(status);
|
|
9681
|
+
}
|
|
9682
|
+
function isTerminalIhsStatus(status) {
|
|
9683
|
+
return typeof status === "string" && IHS_TERMINAL_STATUSES.includes(status);
|
|
9684
|
+
}
|
|
9685
|
+
function isFailureIhsStatus(status) {
|
|
9686
|
+
return typeof status === "string" && IHS_FAILURE_STATUSES.includes(status);
|
|
9687
|
+
}
|
|
9688
|
+
|
|
9655
9689
|
// src/extraction-status.ts
|
|
9656
9690
|
var DocExtractionStatus = /* @__PURE__ */ ((DocExtractionStatus2) => {
|
|
9657
9691
|
DocExtractionStatus2["NotUploaded"] = "not_uploaded";
|
|
@@ -9818,6 +9852,10 @@ function resolveExtractionStatus(ihsRecord, jobRecords) {
|
|
|
9818
9852
|
FormFieldCategory,
|
|
9819
9853
|
FormFieldValidator,
|
|
9820
9854
|
FormSpec,
|
|
9855
|
+
IHS_FAILURE_STATUSES,
|
|
9856
|
+
IHS_TERMINAL_STATUSES,
|
|
9857
|
+
IHS_VALID_STATUSES,
|
|
9858
|
+
IhsStatus,
|
|
9821
9859
|
IhsValueFormat,
|
|
9822
9860
|
Role,
|
|
9823
9861
|
applyDynamicTitles,
|
|
@@ -9842,6 +9880,9 @@ function resolveExtractionStatus(ihsRecord, jobRecords) {
|
|
|
9842
9880
|
groupDetailsByCategory,
|
|
9843
9881
|
groupFieldsByCategory,
|
|
9844
9882
|
groupFieldsByPattern,
|
|
9883
|
+
isFailureIhsStatus,
|
|
9884
|
+
isTerminalIhsStatus,
|
|
9885
|
+
isValidIhsStatus,
|
|
9845
9886
|
processIhsDetails,
|
|
9846
9887
|
resolveExtractionStatus,
|
|
9847
9888
|
resolvePageFields,
|