@miso.ai/client-sdk-core 1.11.0-beta.2 → 1.11.0-beta.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/dist/cjs/api/ask.js +5 -6
- package/dist/cjs/version.js +1 -1
- package/package.json +2 -2
- package/src/api/ask.js +5 -4
- package/src/version.js +1 -1
package/dist/cjs/api/ask.js
CHANGED
|
@@ -21,10 +21,8 @@ class Ask extends _base.default {
|
|
|
21
21
|
if (isId(payload)) {
|
|
22
22
|
return new Answer(this, payload, options);
|
|
23
23
|
}
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
} = await this._run(NAME.QUESTIONS, payload, options);
|
|
27
|
-
return new Answer(this, question_id, options);
|
|
24
|
+
const response = await this._run(NAME.QUESTIONS, payload, options);
|
|
25
|
+
return new Answer(this, response, options);
|
|
28
26
|
}
|
|
29
27
|
async _questions(payload, options) {
|
|
30
28
|
return this._run(NAME.QUESTIONS, payload, options);
|
|
@@ -51,9 +49,10 @@ class Ask extends _base.default {
|
|
|
51
49
|
}
|
|
52
50
|
exports.default = Ask;
|
|
53
51
|
class Answer extends _iterable.IdBasedIterableApiStub {
|
|
54
|
-
constructor(api,
|
|
52
|
+
constructor(api, response) {
|
|
55
53
|
let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
56
|
-
super(api, '_questionGet',
|
|
54
|
+
super(api, '_questionGet', response.question_id, options);
|
|
55
|
+
this._response = response;
|
|
57
56
|
}
|
|
58
57
|
get questionId() {
|
|
59
58
|
return this._id;
|
package/dist/cjs/version.js
CHANGED
package/package.json
CHANGED
package/src/api/ask.js
CHANGED
|
@@ -14,8 +14,8 @@ export default class Ask extends ApiBase {
|
|
|
14
14
|
if (isId(payload)) {
|
|
15
15
|
return new Answer(this, payload, options);
|
|
16
16
|
}
|
|
17
|
-
const
|
|
18
|
-
return new Answer(this,
|
|
17
|
+
const response = await this._run(NAME.QUESTIONS, payload, options);
|
|
18
|
+
return new Answer(this, response, options);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
async _questions(payload, options) {
|
|
@@ -43,8 +43,9 @@ export default class Ask extends ApiBase {
|
|
|
43
43
|
|
|
44
44
|
class Answer extends IdBasedIterableApiStub {
|
|
45
45
|
|
|
46
|
-
constructor(api,
|
|
47
|
-
super(api, '_questionGet',
|
|
46
|
+
constructor(api, response, options = {}) {
|
|
47
|
+
super(api, '_questionGet', response.question_id, options);
|
|
48
|
+
this._response = response;
|
|
48
49
|
}
|
|
49
50
|
|
|
50
51
|
get questionId() {
|
package/src/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default '1.11.0-beta.
|
|
1
|
+
export default '1.11.0-beta.3';
|