@23blocks/block-files 3.4.0 → 3.4.1
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 +7 -7
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -78,7 +78,7 @@ const storageFileMapper = {
|
|
|
78
78
|
type: 'StorageFile',
|
|
79
79
|
map: (resource)=>({
|
|
80
80
|
id: resource.id,
|
|
81
|
-
uniqueId: parseString(resource.attributes['unique_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
|
ownerUniqueId: parseString(resource.attributes['owner_unique_id']) || '',
|
|
@@ -208,7 +208,7 @@ const entityFileMapper = {
|
|
|
208
208
|
type: 'EntityFile',
|
|
209
209
|
map: (resource)=>({
|
|
210
210
|
id: resource.id,
|
|
211
|
-
uniqueId: parseString(resource.attributes['unique_id'])
|
|
211
|
+
uniqueId: parseString(resource.attributes['unique_id']),
|
|
212
212
|
createdAt: parseDate(resource.attributes['created_at']) || new Date(),
|
|
213
213
|
updatedAt: parseDate(resource.attributes['updated_at']) || new Date(),
|
|
214
214
|
entityUniqueId: parseString(resource.attributes['entity_unique_id']) || '',
|
|
@@ -305,7 +305,7 @@ const fileSchemaMapper = {
|
|
|
305
305
|
type: 'FileSchema',
|
|
306
306
|
map: (resource)=>({
|
|
307
307
|
id: resource.id,
|
|
308
|
-
uniqueId: parseString(resource.attributes['unique_id'])
|
|
308
|
+
uniqueId: parseString(resource.attributes['unique_id']),
|
|
309
309
|
createdAt: parseDate(resource.attributes['created_at']) || new Date(),
|
|
310
310
|
updatedAt: parseDate(resource.attributes['updated_at']) || new Date(),
|
|
311
311
|
code: parseString(resource.attributes['code']) || '',
|
|
@@ -699,7 +699,7 @@ const fileCategoryMapper = {
|
|
|
699
699
|
type: 'FileCategory',
|
|
700
700
|
map: (resource)=>({
|
|
701
701
|
id: resource.id,
|
|
702
|
-
uniqueId: parseString(resource.attributes['unique_id'])
|
|
702
|
+
uniqueId: parseString(resource.attributes['unique_id']),
|
|
703
703
|
createdAt: parseDate(resource.attributes['created_at']) || new Date(),
|
|
704
704
|
updatedAt: parseDate(resource.attributes['updated_at']) || new Date(),
|
|
705
705
|
code: parseString(resource.attributes['code']) || '',
|
|
@@ -779,7 +779,7 @@ const fileTagMapper = {
|
|
|
779
779
|
type: 'FileTag',
|
|
780
780
|
map: (resource)=>({
|
|
781
781
|
id: resource.id,
|
|
782
|
-
uniqueId: parseString(resource.attributes['unique_id'])
|
|
782
|
+
uniqueId: parseString(resource.attributes['unique_id']),
|
|
783
783
|
createdAt: parseDate(resource.attributes['created_at']) || new Date(),
|
|
784
784
|
updatedAt: parseDate(resource.attributes['updated_at']) || new Date(),
|
|
785
785
|
code: parseString(resource.attributes['code']) || '',
|
|
@@ -856,7 +856,7 @@ const fileDelegationMapper = {
|
|
|
856
856
|
type: 'FileDelegation',
|
|
857
857
|
map: (resource)=>({
|
|
858
858
|
id: resource.id,
|
|
859
|
-
uniqueId: parseString(resource.attributes['unique_id'])
|
|
859
|
+
uniqueId: parseString(resource.attributes['unique_id']),
|
|
860
860
|
createdAt: parseDate(resource.attributes['created_at']) || new Date(),
|
|
861
861
|
updatedAt: parseDate(resource.attributes['updated_at']) || new Date(),
|
|
862
862
|
delegatorUniqueId: parseString(resource.attributes['delegator_unique_id']) || '',
|
|
@@ -936,7 +936,7 @@ const fileAccessMapper = {
|
|
|
936
936
|
type: 'FileAccess',
|
|
937
937
|
map: (resource)=>({
|
|
938
938
|
id: resource.id,
|
|
939
|
-
uniqueId: parseString(resource.attributes['unique_id'])
|
|
939
|
+
uniqueId: parseString(resource.attributes['unique_id']),
|
|
940
940
|
createdAt: parseDate(resource.attributes['created_at']) || new Date(),
|
|
941
941
|
updatedAt: parseDate(resource.attributes['updated_at']) || new Date(),
|
|
942
942
|
fileUniqueId: parseString(resource.attributes['file_unique_id']) || '',
|
package/package.json
CHANGED