@shrfe/assets 1.0.73 → 1.0.74

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.
@@ -36655,11 +36655,13 @@ const PROFILE_KEY_MAP = {
36655
36655
  // Renamed or ambiguous attributes: the stored key differs from the Customer.io name, or its leaf
36656
36656
  // ("id", "name") repeats across the tree, so each is pinned to an exact flattened key.
36657
36657
  const CUSTOMER_IO_ATTRIBUTE_SOURCES = {
36658
- employee_phone: 'phone_number',
36659
- employee_id: 'employee_id',
36660
- employee_ums_user_id: 'breeze_user_id',
36658
+ ums_user_id: 'breeze_user_id',
36659
+ id: 'employee_id',
36660
+ phone: 'phone_number',
36661
36661
  jobrole_name: 'job_title',
36662
- company_name: 'employer_name'
36662
+ company_name: 'employer_name',
36663
+ company_oms_company_id: 'oms_company',
36664
+ client_oms_client_id: 'oms_client'
36663
36665
  };
36664
36666
  // Attributes a module stores under their own name; caught wherever they sit once flattened.
36665
36667
  const CUSTOMER_IO_ATTRIBUTES = [
@@ -36681,7 +36683,8 @@ const CUSTOMER_IO_ATTRIBUTES = [
36681
36683
  'total_amount_eligible',
36682
36684
  'repayment_status',
36683
36685
  'device',
36684
- 'number_of_loans'
36686
+ 'number_of_loans',
36687
+ 'last_login'
36685
36688
  ];
36686
36689
  // Where the SDK persists the identified person (localStorage and cookies).
36687
36690
  const STORED_IDENTITY_KEYS = [
@@ -36749,7 +36752,7 @@ const isEventAllowed = (eventName)=>{
36749
36752
  return false;
36750
36753
  }
36751
36754
  };
36752
- // The login payload nests attributes (employee.first_name, employee.company.name), so flatten to
36755
+ // The logged-in user nests some attributes (company.name, client.oms_client_id), so flatten to
36753
36756
  // parent_leaf keys the map can match. Only the immediate parent prefixes; later siblings win a clash.
36754
36757
  const flattenProfile = (source, containerKey = '', result = {})=>{
36755
36758
  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",
3
+ "version": "1.0.74",
4
4
  "description": "The assets used in SeamlessHR products",
5
5
  "author": "SeamlessHR LTD <oludayo@seamlesshr.com>",
6
6
  "license": "ISC",