@wildix/xbees-conversations-utils 1.0.28 → 1.0.30

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.
@@ -43,7 +43,7 @@ function normalizeStreamReaction(streamReaction) {
43
43
  }
44
44
  exports.normalizeStreamReaction = normalizeStreamReaction;
45
45
  function normalizeStreamMessage(streamMessage, channelId) {
46
- const { id, type, text, attachments, mentioned_users, giphy, quote, forward, latest_reactions, reaction_counts, edit, silent, event, } = streamMessage;
46
+ const { id, type, text, attachments, mentioned_users, giphy, quote, forward, latest_reactions, reaction_counts, edit, silent, event, elements, } = streamMessage;
47
47
  const user = normalizeStreamUser(streamMessage.user);
48
48
  const latestReactions = latest_reactions ? latest_reactions.map(normalizeStreamReaction) : [];
49
49
  return {
@@ -51,6 +51,7 @@ function normalizeStreamMessage(streamMessage, channelId) {
51
51
  channelId,
52
52
  type: type,
53
53
  text,
54
+ elements,
54
55
  attachments,
55
56
  mentions: mentioned_users ? mentioned_users.map(normalizeStreamUser) : [],
56
57
  giphy,
@@ -37,7 +37,7 @@ export function normalizeStreamReaction(streamReaction) {
37
37
  };
38
38
  }
39
39
  export function normalizeStreamMessage(streamMessage, channelId) {
40
- const { id, type, text, attachments, mentioned_users, giphy, quote, forward, latest_reactions, reaction_counts, edit, silent, event, } = streamMessage;
40
+ const { id, type, text, attachments, mentioned_users, giphy, quote, forward, latest_reactions, reaction_counts, edit, silent, event, elements, } = streamMessage;
41
41
  const user = normalizeStreamUser(streamMessage.user);
42
42
  const latestReactions = latest_reactions ? latest_reactions.map(normalizeStreamReaction) : [];
43
43
  return {
@@ -45,6 +45,7 @@ export function normalizeStreamMessage(streamMessage, channelId) {
45
45
  channelId,
46
46
  type: type,
47
47
  text,
48
+ elements,
48
49
  attachments,
49
50
  mentions: mentioned_users ? mentioned_users.map(normalizeStreamUser) : [],
50
51
  giphy,
@@ -1,5 +1,5 @@
1
1
  import { Channel, ChannelData, ChannelFilters, ChannelMembership, ChannelMemberResponse, ChannelSort, ChannelResponse, Event, ExtendableGenerics, LiteralStringForUnion, Message, MessageResponse, ReactionResponse, UR, UserResponse, ChannelAPIResponse, User, Reaction, PartialMessageUpdate, UpdatedMessage, PartialUpdateChannel } from 'stream-chat';
2
- import { MessageQuote, MessageForward, MessageAttachment, MessageGiphy, User as NormalizedUser, ChannelAccess, MessageSmsStatus, MessageWhatsAppStatus, ChannelWhatsAppStatus } from "@wildix/xbees-conversations-client";
2
+ import { MessageQuote, MessageForward, MessageAttachment, MessageGiphy, User as NormalizedUser, ChannelAccess, MessageSmsStatus, MessageWhatsAppStatus, ChannelWhatsAppStatus, Element } from "@wildix/xbees-conversations-client";
3
3
  export interface StreamChannelFields extends UR {
4
4
  subject?: string;
5
5
  description?: string;
@@ -44,6 +44,7 @@ export interface StreamMessageFields extends UR {
44
44
  quote?: MessageQuote;
45
45
  forward?: MessageForward;
46
46
  giphy?: MessageGiphy;
47
+ elements?: Element[];
47
48
  edit?: boolean;
48
49
  event?: string;
49
50
  attachments?: MessageAttachment[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wildix/xbees-conversations-utils",
3
- "version": "1.0.28",
3
+ "version": "1.0.30",
4
4
  "description": "",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -13,14 +13,15 @@
13
13
  "build:types": "tsc -p tsconfig.types.json",
14
14
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
15
15
  "build:api-extractor": "mkdir -p etc && api-extractor run --local --verbose",
16
- "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo"
16
+ "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
17
+ "postpublish": "node ../../scripts/postpublish.js"
17
18
  },
18
19
  "engines": {
19
20
  "node": ">=16.0.0"
20
21
  },
21
22
  "license": "Apache-2.0",
22
23
  "dependencies": {
23
- "@wildix/xbees-conversations-client": "1.0.53",
24
+ "@wildix/xbees-conversations-client": "1.0.61",
24
25
  "stream-chat": "8.12.1",
25
26
  "tslib": "^2.5.0"
26
27
  },