react-native-my-survey-sdk 2.2.37 → 3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-my-survey-sdk",
3
- "version": "2.2.37",
3
+ "version": "3.0.0",
4
4
  "description": "Xebo survey collection SDK for React Native",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -405,6 +405,11 @@ export async function submitResponse(
405
405
  if (meta.userData.uniqueId) customVariables.unique_id = meta.userData.uniqueId;
406
406
  if (meta.userData.country) customVariables.country = meta.userData.country;
407
407
  if (meta.userData.city) customVariables.city = meta.userData.city;
408
+ if (meta.userData.eData) {
409
+ Object.entries(meta.userData.eData).forEach(([key, value]) => {
410
+ if (key && value) customVariables[key] = value;
411
+ });
412
+ }
408
413
  }
409
414
 
410
415
  // time_spent in whole seconds, derived from netTimeDuration (minutes)
@@ -101,6 +101,7 @@ export interface XeboUserData {
101
101
  country?: string;
102
102
  city?: string;
103
103
  region?: string;
104
+ eData?: Record<string, string>;
104
105
  }
105
106
 
106
107
  export interface XeboQualityFlags {