@parra/parra-js-sdk 0.2.14 → 0.2.15

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.
@@ -269,6 +269,7 @@ declare class ParraAPI {
269
269
  $search?: string | undefined;
270
270
  } | undefined) => Promise<QuestionCollectionResponse>;
271
271
  getQuestionById: (question_id: string) => Promise<Question>;
272
+ deleteQuestionById: (question_id: string) => Promise<Response>;
272
273
  answerQuestionById: (question_id: string, body?: AnswerQuestionBody | undefined) => Promise<Response>;
273
274
  createUser: (body: CreateUserRequestBody) => Promise<UserResponse>;
274
275
  listUsers: (query?: {
package/dist/ParraAPI.js CHANGED
@@ -94,6 +94,11 @@ var ParraAPI = /** @class */ (function () {
94
94
  method: "get",
95
95
  });
96
96
  };
97
+ this.deleteQuestionById = function (question_id) {
98
+ return _this.http.execute(_this.options.baseUrl + "/v1/questions/" + question_id, {
99
+ method: "delete",
100
+ });
101
+ };
97
102
  this.answerQuestionById = function (question_id, body) {
98
103
  return _this.http.execute(_this.options.baseUrl + "/v1/questions/" + question_id + "/answer", {
99
104
  method: "put",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.2.14",
3
+ "version": "0.2.15",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",