@23blocks/block-onboarding 3.1.1 → 3.1.2

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.esm.js CHANGED
@@ -121,7 +121,7 @@ const onboardingMapper = {
121
121
  type: 'Onboarding',
122
122
  map: (resource)=>({
123
123
  id: resource.id,
124
- uniqueId: parseString(resource.attributes['unique_id']) || resource.id,
124
+ uniqueId: parseString(resource.attributes['unique_id']),
125
125
  createdAt: parseDate(resource.attributes['created_at']) || new Date(),
126
126
  updatedAt: parseDate(resource.attributes['updated_at']) || new Date(),
127
127
  code: parseString(resource.attributes['code']) || '',
@@ -239,7 +239,7 @@ const flowMapper = {
239
239
  type: 'Flow',
240
240
  map: (resource)=>({
241
241
  id: resource.id,
242
- uniqueId: parseString(resource.attributes['unique_id']) || resource.id,
242
+ uniqueId: parseString(resource.attributes['unique_id']),
243
243
  createdAt: parseDate(resource.attributes['created_at']) || new Date(),
244
244
  updatedAt: parseDate(resource.attributes['updated_at']) || new Date(),
245
245
  onboardingUniqueId: parseString(resource.attributes['onboarding_unique_id']) || '',
@@ -326,7 +326,7 @@ const userJourneyMapper = {
326
326
  type: 'UserJourney',
327
327
  map: (resource)=>({
328
328
  id: resource.id,
329
- uniqueId: parseString(resource.attributes['unique_id']) || resource.id,
329
+ uniqueId: parseString(resource.attributes['unique_id']),
330
330
  createdAt: parseDate(resource.attributes['created_at']) || new Date(),
331
331
  updatedAt: parseDate(resource.attributes['updated_at']) || new Date(),
332
332
  userUniqueId: parseString(resource.attributes['user_unique_id']) || '',
@@ -473,7 +473,7 @@ const userIdentityMapper = {
473
473
  type: 'UserIdentity',
474
474
  map: (resource)=>({
475
475
  id: resource.id,
476
- uniqueId: parseString(resource.attributes['unique_id']) || resource.id,
476
+ uniqueId: parseString(resource.attributes['unique_id']),
477
477
  createdAt: parseDate(resource.attributes['created_at']) || new Date(),
478
478
  updatedAt: parseDate(resource.attributes['updated_at']) || new Date(),
479
479
  userUniqueId: parseString(resource.attributes['user_unique_id']) || '',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@23blocks/block-onboarding",
3
- "version": "3.1.1",
3
+ "version": "3.1.2",
4
4
  "description": "Onboarding block for 23blocks SDK - user journeys, flows, and identity verification",
5
5
  "license": "MIT",
6
6
  "author": "23blocks <hello@23blocks.com>",