@23blocks/block-company 3.2.1 → 3.2.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
@@ -78,7 +78,7 @@ const companyMapper = {
78
78
  type: 'Company',
79
79
  map: (resource)=>({
80
80
  id: resource.id,
81
- uniqueId: parseString(resource.attributes['unique_id']) || resource.id,
81
+ uniqueId: parseString(resource.attributes['unique_id']),
82
82
  createdAt: parseDate(resource.attributes['created_at']) || new Date(),
83
83
  updatedAt: parseDate(resource.attributes['updated_at']) || new Date(),
84
84
  code: parseString(resource.attributes['code']) || '',
@@ -156,7 +156,7 @@ const departmentMapper = {
156
156
  type: 'Department',
157
157
  map: (resource)=>({
158
158
  id: resource.id,
159
- uniqueId: parseString(resource.attributes['unique_id']) || resource.id,
159
+ uniqueId: parseString(resource.attributes['unique_id']),
160
160
  createdAt: parseDate(resource.attributes['created_at']) || new Date(),
161
161
  updatedAt: parseDate(resource.attributes['updated_at']) || new Date(),
162
162
  companyUniqueId: parseString(resource.attributes['company_unique_id']) || '',
@@ -237,7 +237,7 @@ const teamMapper = {
237
237
  type: 'Team',
238
238
  map: (resource)=>({
239
239
  id: resource.id,
240
- uniqueId: parseString(resource.attributes['unique_id']) || resource.id,
240
+ uniqueId: parseString(resource.attributes['unique_id']),
241
241
  createdAt: parseDate(resource.attributes['created_at']) || new Date(),
242
242
  updatedAt: parseDate(resource.attributes['updated_at']) || new Date(),
243
243
  departmentUniqueId: parseString(resource.attributes['department_unique_id']) || '',
@@ -310,7 +310,7 @@ const teamMemberMapper = {
310
310
  type: 'TeamMember',
311
311
  map: (resource)=>({
312
312
  id: resource.id,
313
- uniqueId: parseString(resource.attributes['unique_id']) || resource.id,
313
+ uniqueId: parseString(resource.attributes['unique_id']),
314
314
  createdAt: parseDate(resource.attributes['created_at']) || new Date(),
315
315
  updatedAt: parseDate(resource.attributes['updated_at']) || new Date(),
316
316
  teamUniqueId: parseString(resource.attributes['team_unique_id']) || '',
@@ -378,7 +378,7 @@ const quarterMapper = {
378
378
  type: 'Quarter',
379
379
  map: (resource)=>({
380
380
  id: resource.id,
381
- uniqueId: parseString(resource.attributes['unique_id']) || resource.id,
381
+ uniqueId: parseString(resource.attributes['unique_id']),
382
382
  createdAt: parseDate(resource.attributes['created_at']) || new Date(),
383
383
  updatedAt: parseDate(resource.attributes['updated_at']) || new Date(),
384
384
  companyUniqueId: parseString(resource.attributes['company_unique_id']) || '',
@@ -450,7 +450,7 @@ const positionMapper = {
450
450
  type: 'Position',
451
451
  map: (resource)=>({
452
452
  id: resource.id,
453
- uniqueId: parseString(resource.attributes['unique_id']) || resource.id,
453
+ uniqueId: parseString(resource.attributes['unique_id']),
454
454
  createdAt: parseDate(resource.attributes['created_at']) || new Date(),
455
455
  updatedAt: parseDate(resource.attributes['updated_at']) || new Date(),
456
456
  code: parseString(resource.attributes['code']) || '',
@@ -529,7 +529,7 @@ const employeeAssignmentMapper = {
529
529
  var _parseBoolean;
530
530
  return {
531
531
  id: resource.id,
532
- uniqueId: parseString(resource.attributes['unique_id']) || resource.id,
532
+ uniqueId: parseString(resource.attributes['unique_id']),
533
533
  createdAt: parseDate(resource.attributes['created_at']) || new Date(),
534
534
  updatedAt: parseDate(resource.attributes['updated_at']) || new Date(),
535
535
  userUniqueId: parseString(resource.attributes['user_unique_id']) || '',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@23blocks/block-company",
3
- "version": "3.2.1",
3
+ "version": "3.2.2",
4
4
  "description": "Company block for 23blocks SDK - organizational structure, departments, teams, and quarters",
5
5
  "license": "MIT",
6
6
  "author": "23blocks <hello@23blocks.com>",