@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.
package/dist/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  // src/utils.ts
2
2
  function getPastMonthLabel(monthsAgo) {
3
3
  const date = /* @__PURE__ */ new Date();
4
+ date.setDate(1);
4
5
  date.setMonth(date.getMonth() - monthsAgo);
5
6
  return date.toLocaleString("default", { month: "long" });
6
7
  }
@@ -1264,6 +1265,14 @@ var form_field_base_specs_default = {
1264
1265
  {
1265
1266
  id: "13",
1266
1267
  name: "Document Upload"
1268
+ },
1269
+ {
1270
+ id: "14",
1271
+ name: "SSM Company Profile Data"
1272
+ },
1273
+ {
1274
+ id: "15",
1275
+ name: "NRIC Data"
1267
1276
  }
1268
1277
  ],
1269
1278
  fields: [
@@ -1326,7 +1335,7 @@ var form_field_base_specs_default = {
1326
1335
  title: "ID Number",
1327
1336
  placeholder: "E.g. 700513065143",
1328
1337
  isRequired: true,
1329
- displayName: "IC Number",
1338
+ displayName: "IC Number (Manual Entry)",
1330
1339
  maxLength: 25,
1331
1340
  inputType: "text",
1332
1341
  validators: [
@@ -8611,6 +8620,165 @@ var form_field_base_specs_default = {
8611
8620
  "payslipOtherDeductionT6"
8612
8621
  ],
8613
8622
  category: "13"
8623
+ },
8624
+ {
8625
+ name: "ic",
8626
+ displayName: "Identity Card (NRIC)",
8627
+ type: "file",
8628
+ ihs_column_names: [
8629
+ "icName",
8630
+ "icNumber",
8631
+ "icAddress",
8632
+ "icGender",
8633
+ "icReligion",
8634
+ "icDateOfBirth",
8635
+ "icPlaceOfBirth",
8636
+ "icNationality",
8637
+ "icRace"
8638
+ ],
8639
+ category: "13"
8640
+ },
8641
+ {
8642
+ name: "ssmCompanyName",
8643
+ displayName: "Company Name (SSM Profile)",
8644
+ type: "text",
8645
+ category: "14"
8646
+ },
8647
+ {
8648
+ name: "ssmCompanyRegNo",
8649
+ displayName: "Company Registration No (SSM Profile)",
8650
+ type: "text",
8651
+ category: "14"
8652
+ },
8653
+ {
8654
+ name: "ssmIncorporatedDate",
8655
+ displayName: "Incorporated Date (SSM Profile)",
8656
+ type: "text",
8657
+ inputType: "date",
8658
+ category: "14"
8659
+ },
8660
+ {
8661
+ name: "businessCommencementDate",
8662
+ displayName: "Business Commencement Date",
8663
+ type: "text",
8664
+ inputType: "date",
8665
+ category: "14"
8666
+ },
8667
+ {
8668
+ name: "businessNature",
8669
+ displayName: "Business Nature",
8670
+ type: "text",
8671
+ category: "14"
8672
+ },
8673
+ {
8674
+ name: "companyStatus",
8675
+ displayName: "Company Status (SSM)",
8676
+ type: "text",
8677
+ category: "14"
8678
+ },
8679
+ {
8680
+ name: "shareholders",
8681
+ displayName: "Shareholders",
8682
+ type: "text",
8683
+ category: "14"
8684
+ },
8685
+ {
8686
+ name: "directors",
8687
+ displayName: "Directors",
8688
+ type: "text",
8689
+ category: "14"
8690
+ },
8691
+ {
8692
+ name: "previousDirectors",
8693
+ displayName: "Previous Directors",
8694
+ type: "text",
8695
+ category: "14"
8696
+ },
8697
+ {
8698
+ name: "totalShareIssued",
8699
+ displayName: "Total Shares Issued",
8700
+ type: "text",
8701
+ category: "14"
8702
+ },
8703
+ {
8704
+ name: "companyLastOldName",
8705
+ displayName: "Previous Company Name",
8706
+ type: "text",
8707
+ category: "14"
8708
+ },
8709
+ {
8710
+ name: "companyNameDateOfChange",
8711
+ displayName: "Company Name Change Date",
8712
+ type: "text",
8713
+ inputType: "date",
8714
+ category: "14"
8715
+ },
8716
+ {
8717
+ name: "businessOrigin",
8718
+ displayName: "Business Origin",
8719
+ type: "text",
8720
+ category: "14"
8721
+ },
8722
+ {
8723
+ name: "registeredAddress",
8724
+ displayName: "Registered Address (SSM)",
8725
+ type: "text",
8726
+ category: "14"
8727
+ },
8728
+ {
8729
+ name: "icName",
8730
+ displayName: "Full Name (NRIC)",
8731
+ type: "text",
8732
+ category: "15"
8733
+ },
8734
+ {
8735
+ name: "icNumber",
8736
+ displayName: "IC Number (NRIC Extracted)",
8737
+ type: "text",
8738
+ category: "15"
8739
+ },
8740
+ {
8741
+ name: "icAddress",
8742
+ displayName: "Address (NRIC)",
8743
+ type: "text",
8744
+ category: "15"
8745
+ },
8746
+ {
8747
+ name: "icGender",
8748
+ displayName: "Gender (NRIC)",
8749
+ type: "text",
8750
+ category: "15"
8751
+ },
8752
+ {
8753
+ name: "icReligion",
8754
+ displayName: "Religion (NRIC)",
8755
+ type: "text",
8756
+ category: "15"
8757
+ },
8758
+ {
8759
+ name: "icDateOfBirth",
8760
+ displayName: "Date of Birth (NRIC)",
8761
+ type: "text",
8762
+ inputType: "date",
8763
+ category: "15"
8764
+ },
8765
+ {
8766
+ name: "icPlaceOfBirth",
8767
+ displayName: "Place of Birth (NRIC)",
8768
+ type: "text",
8769
+ category: "15"
8770
+ },
8771
+ {
8772
+ name: "icNationality",
8773
+ displayName: "Nationality (NRIC)",
8774
+ type: "text",
8775
+ category: "15"
8776
+ },
8777
+ {
8778
+ name: "icRace",
8779
+ displayName: "Race (NRIC)",
8780
+ type: "text",
8781
+ category: "15"
8614
8782
  }
8615
8783
  ]
8616
8784
  };