bkper-js 1.28.0 → 1.29.0

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
@@ -1083,6 +1083,10 @@ export declare class BotResponse {
1083
1083
  * @returns The date this Bot Response was created
1084
1084
  */
1085
1085
  getCreatedAt(): Date | undefined;
1086
+ /**
1087
+ * @returns The Event this Bot Response is associated to
1088
+ */
1089
+ getEvent(): Event;
1086
1090
  /**
1087
1091
  * Replay this Bot Response.
1088
1092
  *
@@ -43,6 +43,12 @@ export class BotResponse {
43
43
  getCreatedAt() {
44
44
  return this.payload.createdAt ? new Date(new Number(this.payload.createdAt).valueOf()) : undefined;
45
45
  }
46
+ /**
47
+ * @returns The Event this Bot Response is associated to
48
+ */
49
+ getEvent() {
50
+ return this.event;
51
+ }
46
52
  /**
47
53
  * Replay this Bot Response.
48
54
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkper-js",
3
- "version": "1.28.0",
3
+ "version": "1.29.0",
4
4
  "description": "Javascript client for Bkper REST API",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",