@parra/parra-js-sdk 0.3.21 → 0.3.22
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.
- package/dist/ParraAPI.d.ts +21 -1
- package/dist/ParraAPI.js +7 -2
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -478,6 +478,23 @@ 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
|
+
data: FormIntegrationData;
|
|
497
|
+
}
|
|
481
498
|
export interface FeedbackFormResponse {
|
|
482
499
|
id: string;
|
|
483
500
|
created_at: string;
|
|
@@ -486,6 +503,7 @@ export interface FeedbackFormResponse {
|
|
|
486
503
|
title: string;
|
|
487
504
|
description?: string | null;
|
|
488
505
|
data: FeedbackFormData;
|
|
506
|
+
integrations?: Array<FormIntegration> | null;
|
|
489
507
|
}
|
|
490
508
|
export interface SubmitFeedbackFormResponseBody {
|
|
491
509
|
}
|
|
@@ -1153,7 +1171,9 @@ declare class ParraAPI {
|
|
|
1153
1171
|
$search?: string;
|
|
1154
1172
|
}) => Promise<FeedbackFormCollectionResponse>;
|
|
1155
1173
|
createFeedbackFormForTenantById: (tenant_id: string, body?: CreateFeedbackFormRequestBody) => Promise<FeedbackFormResponse>;
|
|
1156
|
-
getFeedbackFormForTenantById: (tenant_id: string, feedback_form_id: string
|
|
1174
|
+
getFeedbackFormForTenantById: (tenant_id: string, feedback_form_id: string, query?: {
|
|
1175
|
+
include?: string;
|
|
1176
|
+
}) => Promise<FeedbackFormResponse>;
|
|
1157
1177
|
updateFeedbackFormForTenantById: (tenant_id: string, feedback_form_id: string, body: UpdateFeedbackFormRequestBody) => Promise<FeedbackFormResponse>;
|
|
1158
1178
|
deleteFeedbackFormForTenantById: (tenant_id: string, feedback_form_id: string) => Promise<Response>;
|
|
1159
1179
|
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) {
|