@finsys/core 1.3.4 → 1.4.1

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.
@@ -52,6 +52,14 @@
52
52
  {
53
53
  "id": "13",
54
54
  "name": "Document Upload"
55
+ },
56
+ {
57
+ "id": "14",
58
+ "name": "SSM Company Profile Data"
59
+ },
60
+ {
61
+ "id": "15",
62
+ "name": "NRIC Data"
55
63
  }
56
64
  ],
57
65
  "fields": [
@@ -114,7 +122,7 @@
114
122
  "title": "ID Number",
115
123
  "placeholder": "E.g. 700513065143",
116
124
  "isRequired": true,
117
- "displayName": "IC Number",
125
+ "displayName": "IC Number (Manual Entry)",
118
126
  "maxLength": 25,
119
127
  "inputType": "text",
120
128
  "validators": [
@@ -7399,6 +7407,165 @@
7399
7407
  "payslipOtherDeductionT6"
7400
7408
  ],
7401
7409
  "category": "13"
7410
+ },
7411
+ {
7412
+ "name": "ic",
7413
+ "displayName": "Identity Card (NRIC)",
7414
+ "type": "file",
7415
+ "ihs_column_names": [
7416
+ "icName",
7417
+ "icNumber",
7418
+ "icAddress",
7419
+ "icGender",
7420
+ "icReligion",
7421
+ "icDateOfBirth",
7422
+ "icPlaceOfBirth",
7423
+ "icNationality",
7424
+ "icRace"
7425
+ ],
7426
+ "category": "13"
7427
+ },
7428
+ {
7429
+ "name": "ssmCompanyName",
7430
+ "displayName": "Company Name (SSM Profile)",
7431
+ "type": "text",
7432
+ "category": "14"
7433
+ },
7434
+ {
7435
+ "name": "ssmCompanyRegNo",
7436
+ "displayName": "Company Registration No (SSM Profile)",
7437
+ "type": "text",
7438
+ "category": "14"
7439
+ },
7440
+ {
7441
+ "name": "ssmIncorporatedDate",
7442
+ "displayName": "Incorporated Date (SSM Profile)",
7443
+ "type": "text",
7444
+ "inputType": "date",
7445
+ "category": "14"
7446
+ },
7447
+ {
7448
+ "name": "businessCommencementDate",
7449
+ "displayName": "Business Commencement Date",
7450
+ "type": "text",
7451
+ "inputType": "date",
7452
+ "category": "14"
7453
+ },
7454
+ {
7455
+ "name": "businessNature",
7456
+ "displayName": "Business Nature",
7457
+ "type": "text",
7458
+ "category": "14"
7459
+ },
7460
+ {
7461
+ "name": "companyStatus",
7462
+ "displayName": "Company Status (SSM)",
7463
+ "type": "text",
7464
+ "category": "14"
7465
+ },
7466
+ {
7467
+ "name": "shareholders",
7468
+ "displayName": "Shareholders",
7469
+ "type": "text",
7470
+ "category": "14"
7471
+ },
7472
+ {
7473
+ "name": "directors",
7474
+ "displayName": "Directors",
7475
+ "type": "text",
7476
+ "category": "14"
7477
+ },
7478
+ {
7479
+ "name": "previousDirectors",
7480
+ "displayName": "Previous Directors",
7481
+ "type": "text",
7482
+ "category": "14"
7483
+ },
7484
+ {
7485
+ "name": "totalShareIssued",
7486
+ "displayName": "Total Shares Issued",
7487
+ "type": "text",
7488
+ "category": "14"
7489
+ },
7490
+ {
7491
+ "name": "companyLastOldName",
7492
+ "displayName": "Previous Company Name",
7493
+ "type": "text",
7494
+ "category": "14"
7495
+ },
7496
+ {
7497
+ "name": "companyNameDateOfChange",
7498
+ "displayName": "Company Name Change Date",
7499
+ "type": "text",
7500
+ "inputType": "date",
7501
+ "category": "14"
7502
+ },
7503
+ {
7504
+ "name": "businessOrigin",
7505
+ "displayName": "Business Origin",
7506
+ "type": "text",
7507
+ "category": "14"
7508
+ },
7509
+ {
7510
+ "name": "registeredAddress",
7511
+ "displayName": "Registered Address (SSM)",
7512
+ "type": "text",
7513
+ "category": "14"
7514
+ },
7515
+ {
7516
+ "name": "icName",
7517
+ "displayName": "Full Name (NRIC)",
7518
+ "type": "text",
7519
+ "category": "15"
7520
+ },
7521
+ {
7522
+ "name": "icNumber",
7523
+ "displayName": "IC Number (NRIC Extracted)",
7524
+ "type": "text",
7525
+ "category": "15"
7526
+ },
7527
+ {
7528
+ "name": "icAddress",
7529
+ "displayName": "Address (NRIC)",
7530
+ "type": "text",
7531
+ "category": "15"
7532
+ },
7533
+ {
7534
+ "name": "icGender",
7535
+ "displayName": "Gender (NRIC)",
7536
+ "type": "text",
7537
+ "category": "15"
7538
+ },
7539
+ {
7540
+ "name": "icReligion",
7541
+ "displayName": "Religion (NRIC)",
7542
+ "type": "text",
7543
+ "category": "15"
7544
+ },
7545
+ {
7546
+ "name": "icDateOfBirth",
7547
+ "displayName": "Date of Birth (NRIC)",
7548
+ "type": "text",
7549
+ "inputType": "date",
7550
+ "category": "15"
7551
+ },
7552
+ {
7553
+ "name": "icPlaceOfBirth",
7554
+ "displayName": "Place of Birth (NRIC)",
7555
+ "type": "text",
7556
+ "category": "15"
7557
+ },
7558
+ {
7559
+ "name": "icNationality",
7560
+ "displayName": "Nationality (NRIC)",
7561
+ "type": "text",
7562
+ "category": "15"
7563
+ },
7564
+ {
7565
+ "name": "icRace",
7566
+ "displayName": "Race (NRIC)",
7567
+ "type": "text",
7568
+ "category": "15"
7402
7569
  }
7403
7570
  ]
7404
7571
  }
package/dist/index.cjs CHANGED
@@ -64,6 +64,7 @@ module.exports = __toCommonJS(index_exports);
64
64
  // src/utils.ts
65
65
  function getPastMonthLabel(monthsAgo) {
66
66
  const date = /* @__PURE__ */ new Date();
67
+ date.setDate(1);
67
68
  date.setMonth(date.getMonth() - monthsAgo);
68
69
  return date.toLocaleString("default", { month: "long" });
69
70
  }
@@ -1327,6 +1328,14 @@ var form_field_base_specs_default = {
1327
1328
  {
1328
1329
  id: "13",
1329
1330
  name: "Document Upload"
1331
+ },
1332
+ {
1333
+ id: "14",
1334
+ name: "SSM Company Profile Data"
1335
+ },
1336
+ {
1337
+ id: "15",
1338
+ name: "NRIC Data"
1330
1339
  }
1331
1340
  ],
1332
1341
  fields: [
@@ -1389,7 +1398,7 @@ var form_field_base_specs_default = {
1389
1398
  title: "ID Number",
1390
1399
  placeholder: "E.g. 700513065143",
1391
1400
  isRequired: true,
1392
- displayName: "IC Number",
1401
+ displayName: "IC Number (Manual Entry)",
1393
1402
  maxLength: 25,
1394
1403
  inputType: "text",
1395
1404
  validators: [
@@ -8674,6 +8683,165 @@ var form_field_base_specs_default = {
8674
8683
  "payslipOtherDeductionT6"
8675
8684
  ],
8676
8685
  category: "13"
8686
+ },
8687
+ {
8688
+ name: "ic",
8689
+ displayName: "Identity Card (NRIC)",
8690
+ type: "file",
8691
+ ihs_column_names: [
8692
+ "icName",
8693
+ "icNumber",
8694
+ "icAddress",
8695
+ "icGender",
8696
+ "icReligion",
8697
+ "icDateOfBirth",
8698
+ "icPlaceOfBirth",
8699
+ "icNationality",
8700
+ "icRace"
8701
+ ],
8702
+ category: "13"
8703
+ },
8704
+ {
8705
+ name: "ssmCompanyName",
8706
+ displayName: "Company Name (SSM Profile)",
8707
+ type: "text",
8708
+ category: "14"
8709
+ },
8710
+ {
8711
+ name: "ssmCompanyRegNo",
8712
+ displayName: "Company Registration No (SSM Profile)",
8713
+ type: "text",
8714
+ category: "14"
8715
+ },
8716
+ {
8717
+ name: "ssmIncorporatedDate",
8718
+ displayName: "Incorporated Date (SSM Profile)",
8719
+ type: "text",
8720
+ inputType: "date",
8721
+ category: "14"
8722
+ },
8723
+ {
8724
+ name: "businessCommencementDate",
8725
+ displayName: "Business Commencement Date",
8726
+ type: "text",
8727
+ inputType: "date",
8728
+ category: "14"
8729
+ },
8730
+ {
8731
+ name: "businessNature",
8732
+ displayName: "Business Nature",
8733
+ type: "text",
8734
+ category: "14"
8735
+ },
8736
+ {
8737
+ name: "companyStatus",
8738
+ displayName: "Company Status (SSM)",
8739
+ type: "text",
8740
+ category: "14"
8741
+ },
8742
+ {
8743
+ name: "shareholders",
8744
+ displayName: "Shareholders",
8745
+ type: "text",
8746
+ category: "14"
8747
+ },
8748
+ {
8749
+ name: "directors",
8750
+ displayName: "Directors",
8751
+ type: "text",
8752
+ category: "14"
8753
+ },
8754
+ {
8755
+ name: "previousDirectors",
8756
+ displayName: "Previous Directors",
8757
+ type: "text",
8758
+ category: "14"
8759
+ },
8760
+ {
8761
+ name: "totalShareIssued",
8762
+ displayName: "Total Shares Issued",
8763
+ type: "text",
8764
+ category: "14"
8765
+ },
8766
+ {
8767
+ name: "companyLastOldName",
8768
+ displayName: "Previous Company Name",
8769
+ type: "text",
8770
+ category: "14"
8771
+ },
8772
+ {
8773
+ name: "companyNameDateOfChange",
8774
+ displayName: "Company Name Change Date",
8775
+ type: "text",
8776
+ inputType: "date",
8777
+ category: "14"
8778
+ },
8779
+ {
8780
+ name: "businessOrigin",
8781
+ displayName: "Business Origin",
8782
+ type: "text",
8783
+ category: "14"
8784
+ },
8785
+ {
8786
+ name: "registeredAddress",
8787
+ displayName: "Registered Address (SSM)",
8788
+ type: "text",
8789
+ category: "14"
8790
+ },
8791
+ {
8792
+ name: "icName",
8793
+ displayName: "Full Name (NRIC)",
8794
+ type: "text",
8795
+ category: "15"
8796
+ },
8797
+ {
8798
+ name: "icNumber",
8799
+ displayName: "IC Number (NRIC Extracted)",
8800
+ type: "text",
8801
+ category: "15"
8802
+ },
8803
+ {
8804
+ name: "icAddress",
8805
+ displayName: "Address (NRIC)",
8806
+ type: "text",
8807
+ category: "15"
8808
+ },
8809
+ {
8810
+ name: "icGender",
8811
+ displayName: "Gender (NRIC)",
8812
+ type: "text",
8813
+ category: "15"
8814
+ },
8815
+ {
8816
+ name: "icReligion",
8817
+ displayName: "Religion (NRIC)",
8818
+ type: "text",
8819
+ category: "15"
8820
+ },
8821
+ {
8822
+ name: "icDateOfBirth",
8823
+ displayName: "Date of Birth (NRIC)",
8824
+ type: "text",
8825
+ inputType: "date",
8826
+ category: "15"
8827
+ },
8828
+ {
8829
+ name: "icPlaceOfBirth",
8830
+ displayName: "Place of Birth (NRIC)",
8831
+ type: "text",
8832
+ category: "15"
8833
+ },
8834
+ {
8835
+ name: "icNationality",
8836
+ displayName: "Nationality (NRIC)",
8837
+ type: "text",
8838
+ category: "15"
8839
+ },
8840
+ {
8841
+ name: "icRace",
8842
+ displayName: "Race (NRIC)",
8843
+ type: "text",
8844
+ category: "15"
8677
8845
  }
8678
8846
  ]
8679
8847
  };