@finsys/core 1.5.1 → 2.0.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 +5 -3
- package/dist/data/form-field-display-names.json +2 -0
- package/dist/index.cjs +22 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -1
- package/dist/index.d.ts +11 -1
- package/dist/index.js +21 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -7168,7 +7168,7 @@
|
|
|
7168
7168
|
"category": "13"
|
|
7169
7169
|
},
|
|
7170
7170
|
{
|
|
7171
|
-
"name": "
|
|
7171
|
+
"name": "form9",
|
|
7172
7172
|
"displayName": "Form 9 / Section 17 / Form D",
|
|
7173
7173
|
"type": "file",
|
|
7174
7174
|
"enableIf": "{formOfDisclosure} contains 'consented'",
|
|
@@ -7180,7 +7180,7 @@
|
|
|
7180
7180
|
"category": "13"
|
|
7181
7181
|
},
|
|
7182
7182
|
{
|
|
7183
|
-
"name": "
|
|
7183
|
+
"name": "ssm",
|
|
7184
7184
|
"displayName": "SSM Company Profile",
|
|
7185
7185
|
"type": "file",
|
|
7186
7186
|
"enableIf": "{formOfDisclosure} contains 'consented'",
|
|
@@ -7190,6 +7190,8 @@
|
|
|
7190
7190
|
"ssmIncorporatedDate",
|
|
7191
7191
|
"businessCommencementDate",
|
|
7192
7192
|
"businessNature",
|
|
7193
|
+
"ssmCompanyEntityType",
|
|
7194
|
+
"ssmPaidUpCapital",
|
|
7193
7195
|
"companyStatus",
|
|
7194
7196
|
"shareholders",
|
|
7195
7197
|
"directors",
|
|
@@ -7203,7 +7205,7 @@
|
|
|
7203
7205
|
"category": "13"
|
|
7204
7206
|
},
|
|
7205
7207
|
{
|
|
7206
|
-
"name": "
|
|
7208
|
+
"name": "ic",
|
|
7207
7209
|
"displayName": "Identification Card (Front)",
|
|
7208
7210
|
"type": "file",
|
|
7209
7211
|
"enableIf": "{formOfDisclosure} contains 'consented'",
|
|
@@ -149,6 +149,8 @@
|
|
|
149
149
|
"ssmCompanyName": "Company Name (SSM)",
|
|
150
150
|
"ssmCompanyRegNo": "Registration No. (SSM)",
|
|
151
151
|
"ssmIncorporatedDate": "Incorporated Date (SSM)",
|
|
152
|
+
"ssmCompanyEntityType": "Entity Type (SSM)",
|
|
153
|
+
"ssmPaidUpCapital": "Paid-Up Capital (SSM)",
|
|
152
154
|
"businessCommencementDate": "Business Commencement Date",
|
|
153
155
|
"businessNature": "Business Nature",
|
|
154
156
|
"companyStatus": "Company Status",
|
package/dist/index.cjs
CHANGED
|
@@ -42,6 +42,7 @@ __export(index_exports, {
|
|
|
42
42
|
FormFieldValidator: () => FormFieldValidator,
|
|
43
43
|
FormSpec: () => FormSpec,
|
|
44
44
|
IhsValueFormat: () => IhsValueFormat,
|
|
45
|
+
Role: () => Role,
|
|
45
46
|
applyDynamicTitles: () => applyDynamicTitles,
|
|
46
47
|
buildFileFieldTables: () => buildFileFieldTables,
|
|
47
48
|
evaluateExpression: () => evaluateExpression,
|
|
@@ -8454,7 +8455,7 @@ var form_field_base_specs_default = {
|
|
|
8454
8455
|
category: "13"
|
|
8455
8456
|
},
|
|
8456
8457
|
{
|
|
8457
|
-
name: "
|
|
8458
|
+
name: "form9",
|
|
8458
8459
|
displayName: "Form 9 / Section 17 / Form D",
|
|
8459
8460
|
type: "file",
|
|
8460
8461
|
enableIf: "{formOfDisclosure} contains 'consented'",
|
|
@@ -8466,7 +8467,7 @@ var form_field_base_specs_default = {
|
|
|
8466
8467
|
category: "13"
|
|
8467
8468
|
},
|
|
8468
8469
|
{
|
|
8469
|
-
name: "
|
|
8470
|
+
name: "ssm",
|
|
8470
8471
|
displayName: "SSM Company Profile",
|
|
8471
8472
|
type: "file",
|
|
8472
8473
|
enableIf: "{formOfDisclosure} contains 'consented'",
|
|
@@ -8476,6 +8477,8 @@ var form_field_base_specs_default = {
|
|
|
8476
8477
|
"ssmIncorporatedDate",
|
|
8477
8478
|
"businessCommencementDate",
|
|
8478
8479
|
"businessNature",
|
|
8480
|
+
"ssmCompanyEntityType",
|
|
8481
|
+
"ssmPaidUpCapital",
|
|
8479
8482
|
"companyStatus",
|
|
8480
8483
|
"shareholders",
|
|
8481
8484
|
"directors",
|
|
@@ -8489,7 +8492,7 @@ var form_field_base_specs_default = {
|
|
|
8489
8492
|
category: "13"
|
|
8490
8493
|
},
|
|
8491
8494
|
{
|
|
8492
|
-
name: "
|
|
8495
|
+
name: "ic",
|
|
8493
8496
|
displayName: "Identification Card (Front)",
|
|
8494
8497
|
type: "file",
|
|
8495
8498
|
enableIf: "{formOfDisclosure} contains 'consented'",
|
|
@@ -9330,6 +9333,8 @@ var form_field_display_names_default = {
|
|
|
9330
9333
|
ssmCompanyName: "Company Name (SSM)",
|
|
9331
9334
|
ssmCompanyRegNo: "Registration No. (SSM)",
|
|
9332
9335
|
ssmIncorporatedDate: "Incorporated Date (SSM)",
|
|
9336
|
+
ssmCompanyEntityType: "Entity Type (SSM)",
|
|
9337
|
+
ssmPaidUpCapital: "Paid-Up Capital (SSM)",
|
|
9333
9338
|
businessCommencementDate: "Business Commencement Date",
|
|
9334
9339
|
businessNature: "Business Nature",
|
|
9335
9340
|
companyStatus: "Company Status",
|
|
@@ -9390,9 +9395,9 @@ var FIELD_GROUP_PREFIXES = [
|
|
|
9390
9395
|
["financials", "financials"],
|
|
9391
9396
|
["epf_statement", "epf_statements"],
|
|
9392
9397
|
["payslip_statement", "payslip_statements"],
|
|
9393
|
-
["
|
|
9394
|
-
["
|
|
9395
|
-
["
|
|
9398
|
+
["ssm", "ssm_company_profile"],
|
|
9399
|
+
["form9", "form9"],
|
|
9400
|
+
["ic", "ic"]
|
|
9396
9401
|
];
|
|
9397
9402
|
function groupFieldsByPattern(fields) {
|
|
9398
9403
|
const groups = {};
|
|
@@ -9415,9 +9420,9 @@ var GROUP_DISPLAY_NAMES = {
|
|
|
9415
9420
|
financials: "Audited Financial Statements",
|
|
9416
9421
|
epf_statements: "EPF Statements",
|
|
9417
9422
|
payslip_statements: "Payslip Statements",
|
|
9418
|
-
|
|
9423
|
+
form9: "Form 9 / Section 17 / Form D",
|
|
9419
9424
|
ssm_company_profile: "SSM Company Profile",
|
|
9420
|
-
|
|
9425
|
+
ic: "Identification Card"
|
|
9421
9426
|
};
|
|
9422
9427
|
function isNumericField(fieldName) {
|
|
9423
9428
|
const patterns = [
|
|
@@ -9608,6 +9613,14 @@ function groupDetailsByCategory(details) {
|
|
|
9608
9613
|
}))
|
|
9609
9614
|
}));
|
|
9610
9615
|
}
|
|
9616
|
+
|
|
9617
|
+
// src/roles.ts
|
|
9618
|
+
var Role = /* @__PURE__ */ ((Role2) => {
|
|
9619
|
+
Role2["ADMIN"] = "Admin";
|
|
9620
|
+
Role2["BORROWER_AGENT"] = "Borrower Agent";
|
|
9621
|
+
Role2["LENDER_AGENT"] = "Lender Agent";
|
|
9622
|
+
return Role2;
|
|
9623
|
+
})(Role || {});
|
|
9611
9624
|
// Annotate the CommonJS export names for ESM import in node:
|
|
9612
9625
|
0 && (module.exports = {
|
|
9613
9626
|
BASE_FIELD_SPECS,
|
|
@@ -9622,6 +9635,7 @@ function groupDetailsByCategory(details) {
|
|
|
9622
9635
|
FormFieldValidator,
|
|
9623
9636
|
FormSpec,
|
|
9624
9637
|
IhsValueFormat,
|
|
9638
|
+
Role,
|
|
9625
9639
|
applyDynamicTitles,
|
|
9626
9640
|
buildFileFieldTables,
|
|
9627
9641
|
evaluateExpression,
|