@parra/parra-js-sdk 0.2.115 → 0.2.117

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.
@@ -381,6 +381,7 @@ export interface CampaignCollectionResponse {
381
381
  }
382
382
  export declare type CampaignListResponse = Array<Campaign>;
383
383
  export interface UpdateCampaignTriggerRequestBody {
384
+ type?: string;
384
385
  analytic_event_type_id: string;
385
386
  }
386
387
  export declare type UpdateCampaignTriggerList = Array<UpdateCampaignTriggerRequestBody>;
@@ -389,6 +390,7 @@ export interface CampaignTrigger {
389
390
  created_at: string;
390
391
  updated_at: string;
391
392
  deleted_at?: string | null;
393
+ type?: string;
392
394
  analytic_event_type_id: string;
393
395
  }
394
396
  export declare type CampaignTriggerList = Array<CampaignTrigger>;
@@ -1042,7 +1044,9 @@ declare class ParraAPI {
1042
1044
  $expand?: string | undefined;
1043
1045
  $search?: string | undefined;
1044
1046
  } | undefined) => Promise<QuestionCollectionResponse>;
1045
- getQuestionById: (question_id: string) => Promise<Question>;
1047
+ getQuestionById: (question_id: string, query: {
1048
+ campaign_id: string;
1049
+ }) => Promise<Question>;
1046
1050
  updateQuestionById: (question_id: string, body?: UpdateQuestionRequestBody | undefined) => Promise<Question>;
1047
1051
  deleteQuestionById: (question_id: string) => Promise<Response>;
1048
1052
  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.117",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",