bkper-js 1.34.2 → 1.34.3

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/lib/index.d.ts CHANGED
@@ -1483,6 +1483,7 @@ export declare class Conversation {
1483
1483
  */
1484
1484
  getMessages(): Promise<Message[]>;
1485
1485
 
1486
+
1486
1487
  /**
1487
1488
  * Performs create Conversation
1488
1489
  *
@@ -97,6 +97,10 @@ export class Conversation {
97
97
  this.messagesMap.set(messageId, message);
98
98
  }
99
99
  }
100
+ /** @internal */
101
+ setUpdatedAt(updatedAtMs) {
102
+ this.payload.updatedAt = updatedAtMs;
103
+ }
100
104
  /**
101
105
  * Performs create Conversation
102
106
  *
@@ -157,6 +157,10 @@ export class Message {
157
157
  const responseMessage = new Message(this.conversation, responsePayload);
158
158
  this.conversation.updateMessagesCache(this);
159
159
  this.conversation.updateMessagesCache(responseMessage);
160
+ // Set conversation updatedAt
161
+ if (responsePayload.createdAt) {
162
+ this.conversation.setUpdatedAt(responsePayload.createdAt);
163
+ }
160
164
  return this;
161
165
  });
162
166
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkper-js",
3
- "version": "1.34.2",
3
+ "version": "1.34.3",
4
4
  "description": "Javascript client for Bkper REST API",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",