bkper-js 1.32.1 → 1.32.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/lib/index.d.ts CHANGED
@@ -1483,11 +1483,12 @@ export declare class Conversation {
1483
1483
  /**
1484
1484
  *
1485
1485
  * @param message The Message to add to this Conversation
1486
+ *
1486
1487
  * @returns This Conversation, for chaining
1487
1488
  */
1488
1489
  addMessage(message: Message): Conversation;
1489
1490
  /**
1490
- * @return The conversation url of this App
1491
+ * @return The updated Conversation object
1491
1492
  */
1492
1493
  send(): Promise<Conversation>;
1493
1494
  }
@@ -2035,9 +2036,16 @@ export declare class Message {
2035
2036
  getCreatedAt(): Date | undefined;
2036
2037
  /**
2037
2038
  *
2038
- * @returns The content text of the Message
2039
+ * @returns The text content of the Message
2039
2040
  */
2040
2041
  getContent(): string | undefined;
2042
+ /**
2043
+ *
2044
+ * @param content The text content of the Message
2045
+ *
2046
+ * @returns This Message, for chaining
2047
+ */
2048
+ setContent(content: string): Message;
2041
2049
  }
2042
2050
 
2043
2051
  /**
@@ -86,6 +86,7 @@ export class Conversation {
86
86
  /**
87
87
  *
88
88
  * @param message The Message to add to this Conversation
89
+ *
89
90
  * @returns This Conversation, for chaining
90
91
  */
91
92
  addMessage(message) {
@@ -97,7 +98,7 @@ export class Conversation {
97
98
  return this;
98
99
  }
99
100
  /**
100
- * @return The conversation url of this App
101
+ * @return The updated Conversation object
101
102
  */
102
103
  send() {
103
104
  return __awaiter(this, void 0, void 0, function* () {
@@ -48,10 +48,20 @@ export class Message {
48
48
  }
49
49
  /**
50
50
  *
51
- * @returns The content text of the Message
51
+ * @returns The text content of the Message
52
52
  */
53
53
  getContent() {
54
54
  return this.payload.content;
55
55
  }
56
+ /**
57
+ *
58
+ * @param content The text content of the Message
59
+ *
60
+ * @returns This Message, for chaining
61
+ */
62
+ setContent(content) {
63
+ this.payload.content = content;
64
+ return this;
65
+ }
56
66
  }
57
67
  //# sourceMappingURL=Message.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkper-js",
3
- "version": "1.32.1",
3
+ "version": "1.32.2",
4
4
  "description": "Javascript client for Bkper REST API",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",