@shrfe/assets 1.0.73-staging.1 → 1.0.74-staging.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.
@@ -36664,11 +36664,13 @@ const PROFILE_KEY_MAP = {
36664
36664
  // Renamed or ambiguous attributes: the stored key differs from the Customer.io name, or its leaf
36665
36665
  // ("id", "name") repeats across the tree, so each is pinned to an exact flattened key.
36666
36666
  const CUSTOMER_IO_ATTRIBUTE_SOURCES = {
36667
- employee_phone: 'phone_number',
36668
- employee_id: 'employee_id',
36669
- employee_ums_user_id: 'breeze_user_id',
36667
+ ums_user_id: 'breeze_user_id',
36668
+ id: 'employee_id',
36669
+ phone: 'phone_number',
36670
36670
  jobrole_name: 'job_title',
36671
- company_name: 'employer_name'
36671
+ company_name: 'employer_name',
36672
+ company_oms_company_id: 'oms_company',
36673
+ client_oms_client_id: 'oms_client'
36672
36674
  };
36673
36675
  // Attributes a module stores under their own name; caught wherever they sit once flattened.
36674
36676
  const CUSTOMER_IO_ATTRIBUTES = [
@@ -36690,7 +36692,8 @@ const CUSTOMER_IO_ATTRIBUTES = [
36690
36692
  'total_amount_eligible',
36691
36693
  'repayment_status',
36692
36694
  'device',
36693
- 'number_of_loans'
36695
+ 'number_of_loans',
36696
+ 'last_login'
36694
36697
  ];
36695
36698
  // Where the SDK persists the identified person (localStorage and cookies).
36696
36699
  const STORED_IDENTITY_KEYS = [
@@ -36758,7 +36761,7 @@ const isEventAllowed = (eventName)=>{
36758
36761
  return false;
36759
36762
  }
36760
36763
  };
36761
- // The login payload nests attributes (employee.first_name, employee.company.name), so flatten to
36764
+ // The logged-in user nests some attributes (company.name, client.oms_client_id), so flatten to
36762
36765
  // parent_leaf keys the map can match. Only the immediate parent prefixes; later siblings win a clash.
36763
36766
  const flattenProfile = (source, containerKey = '', result = {})=>{
36764
36767
  Object.entries(source).forEach(([key, value])=>{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shrfe/assets",
3
- "version": "1.0.73-staging.1",
3
+ "version": "1.0.74-staging.1",
4
4
  "description": "The assets used in SeamlessHR products",
5
5
  "author": "SeamlessHR LTD <oludayo@seamlesshr.com>",
6
6
  "license": "ISC",