react-native-my-survey-sdk 2.2.24 → 2.2.25

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.24",
3
+ "version": "2.2.25",
4
4
  "description": "Xebo survey collection SDK for React Native",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -373,7 +373,9 @@ export async function submitResponse(
373
373
 
374
374
  const payload: Record<string, unknown> = {
375
375
  collector_id: collectorUUID,
376
- ...(meta?.deviceInfo && { deviceInfo: meta.deviceInfo }),
376
+ ...(meta?.qualityFlags && { qualityFlags: meta.qualityFlags }),
377
+ ...(meta?.deviceInfo && { deviceInfo: meta.deviceInfo }),
378
+ ...(meta?.geolocation && { geoLocation: meta.geolocation }),
377
379
  responses: [
378
380
  {
379
381
  response_status: 'complete',
@@ -387,9 +389,6 @@ export async function submitResponse(
387
389
  text: v.text || null,
388
390
  })),
389
391
  })),
390
- ...(meta?.qualityFlags && { qualityFlags: meta.qualityFlags }),
391
- ...(meta?.deviceInfo && { deviceInfo: meta.deviceInfo }),
392
- ...(meta?.geolocation && { geoLocation: meta.geolocation }),
393
392
  },
394
393
  ],
395
394
  };