@parra/parra-js-sdk 0.3.21 → 0.3.23

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.
@@ -478,6 +478,24 @@ export interface CreateFeedbackFormRequestBody {
478
478
  description?: string | null;
479
479
  data: FeedbackFormData;
480
480
  }
481
+ export declare enum FormIntegrationType {
482
+ board = "board"
483
+ }
484
+ export interface FormBoardIntegration {
485
+ board_id: string;
486
+ board_ticket_title?: string | null;
487
+ board_ticket_description?: string | null;
488
+ }
489
+ export type FormIntegrationData = FormBoardIntegration;
490
+ export interface FormIntegration {
491
+ id: string;
492
+ created_at: string;
493
+ updated_at: string;
494
+ deleted_at?: string | null;
495
+ type: FormIntegrationType;
496
+ enabled: boolean;
497
+ data: FormIntegrationData;
498
+ }
481
499
  export interface FeedbackFormResponse {
482
500
  id: string;
483
501
  created_at: string;
@@ -486,6 +504,7 @@ export interface FeedbackFormResponse {
486
504
  title: string;
487
505
  description?: string | null;
488
506
  data: FeedbackFormData;
507
+ integrations?: Array<FormIntegration> | null;
489
508
  }
490
509
  export interface SubmitFeedbackFormResponseBody {
491
510
  }
@@ -1153,7 +1172,9 @@ declare class ParraAPI {
1153
1172
  $search?: string;
1154
1173
  }) => Promise<FeedbackFormCollectionResponse>;
1155
1174
  createFeedbackFormForTenantById: (tenant_id: string, body?: CreateFeedbackFormRequestBody) => Promise<FeedbackFormResponse>;
1156
- getFeedbackFormForTenantById: (tenant_id: string, feedback_form_id: string) => Promise<FeedbackFormResponse>;
1175
+ getFeedbackFormForTenantById: (tenant_id: string, feedback_form_id: string, query?: {
1176
+ include?: string;
1177
+ }) => Promise<FeedbackFormResponse>;
1157
1178
  updateFeedbackFormForTenantById: (tenant_id: string, feedback_form_id: string, body: UpdateFeedbackFormRequestBody) => Promise<FeedbackFormResponse>;
1158
1179
  deleteFeedbackFormForTenantById: (tenant_id: string, feedback_form_id: string) => Promise<Response>;
1159
1180
  paginateFeedbackFormResponsesForTenantById: (tenant_id: string, feedback_form_id: string, query?: {
package/dist/ParraAPI.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ApnsPushType = exports.ApnsEnvironment = exports.ChannelType = exports.ApplicationType = exports.TicketStatus = exports.TicketType = exports.TemplateType = exports.CampaignStatus = exports.CampaignActionDisplayType = exports.CampaignActionType = exports.FeedbackFormFieldType = exports.QuestionKind = exports.QuestionType = exports.CardItemDisplayType = exports.CardItemType = exports.SubscriptionStatus = exports.Currency = exports.Interval = void 0;
3
+ exports.ApnsPushType = exports.ApnsEnvironment = exports.ChannelType = exports.ApplicationType = exports.TicketStatus = exports.TicketType = exports.TemplateType = exports.CampaignStatus = exports.CampaignActionDisplayType = exports.CampaignActionType = exports.FormIntegrationType = exports.FeedbackFormFieldType = exports.QuestionKind = exports.QuestionType = exports.CardItemDisplayType = exports.CardItemType = exports.SubscriptionStatus = exports.Currency = exports.Interval = void 0;
4
4
  var Interval;
5
5
  (function (Interval) {
6
6
  Interval["monthly"] = "monthly";
@@ -58,6 +58,10 @@ var FeedbackFormFieldType;
58
58
  FeedbackFormFieldType["input"] = "input";
59
59
  FeedbackFormFieldType["select"] = "select";
60
60
  })(FeedbackFormFieldType || (exports.FeedbackFormFieldType = FeedbackFormFieldType = {}));
61
+ var FormIntegrationType;
62
+ (function (FormIntegrationType) {
63
+ FormIntegrationType["board"] = "board";
64
+ })(FormIntegrationType || (exports.FormIntegrationType = FormIntegrationType = {}));
61
65
  var CampaignActionType;
62
66
  (function (CampaignActionType) {
63
67
  CampaignActionType["question"] = "question";
@@ -222,9 +226,10 @@ var ParraAPI = /** @class */ (function () {
222
226
  },
223
227
  });
224
228
  };
225
- this.getFeedbackFormForTenantById = function (tenant_id, feedback_form_id) {
229
+ this.getFeedbackFormForTenantById = function (tenant_id, feedback_form_id, query) {
226
230
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feedback/forms/").concat(feedback_form_id), {
227
231
  method: "get",
232
+ query: query,
228
233
  });
229
234
  };
230
235
  this.updateFeedbackFormForTenantById = function (tenant_id, feedback_form_id, body) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.21",
3
+ "version": "0.3.23",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",