@zohoim/client-sdk 1.0.0-poc43 → 1.0.0-poc44
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.
|
@@ -3,6 +3,7 @@ class RequestBuilder {
|
|
|
3
3
|
this._params = {};
|
|
4
4
|
this._query = {};
|
|
5
5
|
this._body = {};
|
|
6
|
+
this._context = {};
|
|
6
7
|
}
|
|
7
8
|
|
|
8
9
|
withParams() {
|
|
@@ -33,7 +34,8 @@ class RequestBuilder {
|
|
|
33
34
|
return {
|
|
34
35
|
params: this._params,
|
|
35
36
|
query: this._query,
|
|
36
|
-
body: Object.keys(this._body).length ? this._body : undefined
|
|
37
|
+
body: Object.keys(this._body).length ? this._body : undefined,
|
|
38
|
+
context: this._context
|
|
37
39
|
};
|
|
38
40
|
}
|
|
39
41
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { validateSchema } from "../../../core/utils";
|
|
2
|
+
import { ActorType } from "../../enum";
|
|
2
3
|
import { ActorSchema } from "../../schema";
|
|
3
4
|
export default class Actor {
|
|
4
5
|
constructor() {
|
|
@@ -15,6 +16,10 @@ export default class Actor {
|
|
|
15
16
|
};
|
|
16
17
|
}
|
|
17
18
|
|
|
19
|
+
static isBot(type) {
|
|
20
|
+
return type === ActorType.BOT;
|
|
21
|
+
}
|
|
22
|
+
|
|
18
23
|
toJSON() {
|
|
19
24
|
return { ...this.data
|
|
20
25
|
};
|