@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.
@@ -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) => Promise<Question>;
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.2.115",
3
+ "version": "0.2.116",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",