@23blocks/block-conversations 3.3.1 → 3.3.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 +10 -10
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -78,7 +78,7 @@ const messageMapper = {
|
|
|
78
78
|
type: 'Message',
|
|
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
|
contextId: parseString(resource.attributes['context_id']),
|
|
@@ -236,7 +236,7 @@ const draftMessageMapper = {
|
|
|
236
236
|
type: 'DraftMessage',
|
|
237
237
|
map: (resource)=>({
|
|
238
238
|
id: resource.id,
|
|
239
|
-
uniqueId: parseString(resource.attributes['unique_id'])
|
|
239
|
+
uniqueId: parseString(resource.attributes['unique_id']),
|
|
240
240
|
createdAt: parseDate(resource.attributes['created_at']) || new Date(),
|
|
241
241
|
updatedAt: parseDate(resource.attributes['updated_at']) || new Date(),
|
|
242
242
|
contextId: parseString(resource.attributes['context_id']),
|
|
@@ -369,7 +369,7 @@ const groupMapper = {
|
|
|
369
369
|
type: 'Group',
|
|
370
370
|
map: (resource)=>({
|
|
371
371
|
id: resource.id,
|
|
372
|
-
uniqueId: parseString(resource.attributes['unique_id'])
|
|
372
|
+
uniqueId: parseString(resource.attributes['unique_id']),
|
|
373
373
|
createdAt: parseDate(resource.attributes['created_at']) || new Date(),
|
|
374
374
|
updatedAt: parseDate(resource.attributes['updated_at']) || new Date(),
|
|
375
375
|
name: parseString(resource.attributes['name']) || '',
|
|
@@ -558,7 +558,7 @@ const notificationMapper = {
|
|
|
558
558
|
type: 'Notification',
|
|
559
559
|
map: (resource)=>({
|
|
560
560
|
id: resource.id,
|
|
561
|
-
uniqueId: parseString(resource.attributes['unique_id'])
|
|
561
|
+
uniqueId: parseString(resource.attributes['unique_id']),
|
|
562
562
|
createdAt: parseDate(resource.attributes['created_at']) || new Date(),
|
|
563
563
|
updatedAt: parseDate(resource.attributes['updated_at']) || new Date(),
|
|
564
564
|
content: parseString(resource.attributes['content']) || '',
|
|
@@ -741,7 +741,7 @@ const contextMapper = {
|
|
|
741
741
|
type: 'Context',
|
|
742
742
|
map: (resource)=>({
|
|
743
743
|
id: resource.id,
|
|
744
|
-
uniqueId: parseString(resource.attributes['unique_id'])
|
|
744
|
+
uniqueId: parseString(resource.attributes['unique_id']),
|
|
745
745
|
createdAt: parseDate(resource.attributes['created_at']) || new Date(),
|
|
746
746
|
updatedAt: parseDate(resource.attributes['updated_at']) || new Date(),
|
|
747
747
|
name: parseString(resource.attributes['name']),
|
|
@@ -897,7 +897,7 @@ const messageFileMapper = {
|
|
|
897
897
|
type: 'MessageFile',
|
|
898
898
|
map: (resource)=>({
|
|
899
899
|
id: resource.id,
|
|
900
|
-
uniqueId: parseString(resource.attributes['unique_id'])
|
|
900
|
+
uniqueId: parseString(resource.attributes['unique_id']),
|
|
901
901
|
createdAt: parseDate(resource.attributes['created_at']) || new Date(),
|
|
902
902
|
updatedAt: parseDate(resource.attributes['updated_at']) || new Date(),
|
|
903
903
|
conversationUniqueId: parseString(resource.attributes['conversation_unique_id']),
|
|
@@ -958,7 +958,7 @@ const sourceMapper = {
|
|
|
958
958
|
type: 'Source',
|
|
959
959
|
map: (resource)=>({
|
|
960
960
|
id: resource.id,
|
|
961
|
-
uniqueId: parseString(resource.attributes['unique_id'])
|
|
961
|
+
uniqueId: parseString(resource.attributes['unique_id']),
|
|
962
962
|
createdAt: parseDate(resource.attributes['created_at']) || new Date(),
|
|
963
963
|
updatedAt: parseDate(resource.attributes['updated_at']) || new Date(),
|
|
964
964
|
name: parseString(resource.attributes['name']),
|
|
@@ -983,7 +983,7 @@ const conversationsUserMapper = {
|
|
|
983
983
|
type: 'User',
|
|
984
984
|
map: (resource)=>({
|
|
985
985
|
id: resource.id,
|
|
986
|
-
uniqueId: parseString(resource.attributes['unique_id'])
|
|
986
|
+
uniqueId: parseString(resource.attributes['unique_id']),
|
|
987
987
|
createdAt: parseDate(resource.attributes['created_at']) || new Date(),
|
|
988
988
|
updatedAt: parseDate(resource.attributes['updated_at']) || new Date(),
|
|
989
989
|
email: parseString(resource.attributes['email']),
|
|
@@ -1106,7 +1106,7 @@ const meetingMapper = {
|
|
|
1106
1106
|
type: 'Meeting',
|
|
1107
1107
|
map: (resource)=>({
|
|
1108
1108
|
id: resource.id,
|
|
1109
|
-
uniqueId: parseString(resource.attributes['unique_id'])
|
|
1109
|
+
uniqueId: parseString(resource.attributes['unique_id']),
|
|
1110
1110
|
createdAt: parseDate(resource.attributes['created_at']) || new Date(),
|
|
1111
1111
|
updatedAt: parseDate(resource.attributes['updated_at']) || new Date(),
|
|
1112
1112
|
title: parseString(resource.attributes['title']) || '',
|
|
@@ -1221,7 +1221,7 @@ const webNotificationMapper = {
|
|
|
1221
1221
|
type: 'WebNotification',
|
|
1222
1222
|
map: (resource)=>({
|
|
1223
1223
|
id: resource.id,
|
|
1224
|
-
uniqueId: parseString(resource.attributes['unique_id'])
|
|
1224
|
+
uniqueId: parseString(resource.attributes['unique_id']),
|
|
1225
1225
|
createdAt: parseDate(resource.attributes['created_at']) || new Date(),
|
|
1226
1226
|
updatedAt: parseDate(resource.attributes['updated_at']) || new Date(),
|
|
1227
1227
|
recipientUniqueId: parseString(resource.attributes['recipient_unique_id']) || '',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@23blocks/block-conversations",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.2",
|
|
4
4
|
"description": "Conversations block for 23blocks SDK - messaging, groups, notifications, and conversations management",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "23blocks <hello@23blocks.com>",
|