@parra/parra-js-sdk 0.2.115 → 0.2.116
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/ParraAPI.d.ts +3 -1
- package/dist/ParraAPI.js +2 -1
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -1042,7 +1042,9 @@ declare class ParraAPI {
|
|
|
1042
1042
|
$expand?: string | undefined;
|
|
1043
1043
|
$search?: string | undefined;
|
|
1044
1044
|
} | undefined) => Promise<QuestionCollectionResponse>;
|
|
1045
|
-
getQuestionById: (question_id: string
|
|
1045
|
+
getQuestionById: (question_id: string, query: {
|
|
1046
|
+
campaign_id: string;
|
|
1047
|
+
}) => Promise<Question>;
|
|
1046
1048
|
updateQuestionById: (question_id: string, body?: UpdateQuestionRequestBody | undefined) => Promise<Question>;
|
|
1047
1049
|
deleteQuestionById: (question_id: string) => Promise<Response>;
|
|
1048
1050
|
createMetricsForQuestionById: (question_id: string, body?: CreateQuestionMetricsRequestBody | undefined) => Promise<QuestionMetrics>;
|
package/dist/ParraAPI.js
CHANGED
|
@@ -397,9 +397,10 @@ var ParraAPI = /** @class */ (function () {
|
|
|
397
397
|
query: query,
|
|
398
398
|
});
|
|
399
399
|
};
|
|
400
|
-
this.getQuestionById = function (question_id) {
|
|
400
|
+
this.getQuestionById = function (question_id, query) {
|
|
401
401
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/questions/").concat(question_id), {
|
|
402
402
|
method: "get",
|
|
403
|
+
query: query,
|
|
403
404
|
});
|
|
404
405
|
};
|
|
405
406
|
this.updateQuestionById = function (question_id, body) {
|