@parra/parra-js-sdk 0.2.124 → 0.2.125

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.
@@ -419,6 +419,11 @@ export interface CampaignAction {
419
419
  app_area_id?: string | null;
420
420
  }
421
421
  export declare type CampaignActionList = Array<CampaignAction>;
422
+ export interface UpdateFeedbackFormRequestBody {
423
+ title: string;
424
+ description?: string | null;
425
+ data: FeedbackFormData;
426
+ }
422
427
  export interface CreateFeedbackFormRequestBody {
423
428
  title: string;
424
429
  description?: string | null;
@@ -443,7 +448,7 @@ export interface FeedbackFormResponse {
443
448
  description?: string | null;
444
449
  data: FeedbackFormData;
445
450
  }
446
- export interface FeedbackForm {
451
+ export interface FeedbackFormDataStub {
447
452
  id: string;
448
453
  created_at: string;
449
454
  updated_at: string;
@@ -1112,7 +1117,8 @@ declare class ParraAPI {
1112
1117
  } | undefined) => Promise<FeedbackFormCollectionResponse>;
1113
1118
  createFeedbackFormForTenantById: (tenant_id: string, body?: CreateFeedbackFormRequestBody | undefined) => Promise<FeedbackFormResponse>;
1114
1119
  getFeedbackFormForTenantById: (tenant_id: string, feedback_form_id: string) => Promise<FeedbackFormResponse>;
1115
- getFormById: (feedback_form_id: string) => Promise<FeedbackFormResponse>;
1120
+ updateFeedbackFormForTenantById: (tenant_id: string, feedback_form_id: string, body?: UpdateFeedbackFormRequestBody | undefined) => Promise<FeedbackFormResponse>;
1121
+ getFormById: (feedback_form_id: string) => Promise<FeedbackFormDataStub>;
1116
1122
  submitFormById: (feedback_form_id: string, body?: FeedbackFormResponse | undefined) => Promise<Response>;
1117
1123
  createQuestion: (body?: CreateQuestionRequestBody | undefined) => Promise<Question>;
1118
1124
  paginateQuestions: (query?: {
package/dist/ParraAPI.js CHANGED
@@ -392,6 +392,15 @@ var ParraAPI = /** @class */ (function () {
392
392
  method: "get",
393
393
  });
394
394
  };
395
+ this.updateFeedbackFormForTenantById = function (tenant_id, feedback_form_id, body) {
396
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feedback/forms/").concat(feedback_form_id), {
397
+ method: "put",
398
+ body: JSON.stringify(body),
399
+ headers: {
400
+ "content-type": "application/json",
401
+ },
402
+ });
403
+ };
395
404
  this.getFormById = function (feedback_form_id) {
396
405
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/feedback/forms/").concat(feedback_form_id), {
397
406
  method: "get",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.2.124",
3
+ "version": "0.2.125",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",