@parra/parra-js-sdk 0.3.73 → 0.3.76
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 +27 -40
- package/dist/ParraAPI.js +2 -7
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -569,33 +569,15 @@ export interface CreateFeedbackFormRequestBody {
|
|
|
569
569
|
description?: string | null;
|
|
570
570
|
data: FeedbackFormData;
|
|
571
571
|
}
|
|
572
|
-
export declare enum FormIntegrationType {
|
|
573
|
-
board = "board"
|
|
574
|
-
}
|
|
575
|
-
export interface FormBoardIntegration {
|
|
576
|
-
board_id: string;
|
|
577
|
-
board_ticket_title?: string | null;
|
|
578
|
-
board_ticket_description?: string | null;
|
|
579
|
-
}
|
|
580
|
-
export type FormIntegrationData = FormBoardIntegration;
|
|
581
|
-
export interface FormIntegration {
|
|
582
|
-
id: string;
|
|
583
|
-
created_at: string;
|
|
584
|
-
updated_at: string;
|
|
585
|
-
deleted_at?: string | null;
|
|
586
|
-
type: FormIntegrationType;
|
|
587
|
-
enabled: boolean;
|
|
588
|
-
data: FormIntegrationData;
|
|
589
|
-
}
|
|
590
572
|
export interface FeedbackFormResponse {
|
|
591
573
|
id: string;
|
|
592
574
|
created_at: string;
|
|
593
575
|
updated_at: string;
|
|
594
576
|
deleted_at?: string | null;
|
|
577
|
+
tenant_id: string;
|
|
595
578
|
title: string;
|
|
596
579
|
description?: string | null;
|
|
597
580
|
data: FeedbackFormData;
|
|
598
|
-
integrations?: Array<FormIntegration> | null;
|
|
599
581
|
}
|
|
600
582
|
export interface FeedbackFormSubmission {
|
|
601
583
|
id: string;
|
|
@@ -927,6 +909,7 @@ export interface CreateUserNoteRequestBody {
|
|
|
927
909
|
title: string;
|
|
928
910
|
type: string;
|
|
929
911
|
description?: string | null;
|
|
912
|
+
user_id: string;
|
|
930
913
|
}
|
|
931
914
|
export declare enum UserNoteStatus {
|
|
932
915
|
pending = "pending",
|
|
@@ -941,8 +924,8 @@ export interface UserNote {
|
|
|
941
924
|
title: string;
|
|
942
925
|
type: string;
|
|
943
926
|
description?: string | null;
|
|
944
|
-
tenant_id: string;
|
|
945
927
|
user_id: string;
|
|
928
|
+
tenant_id: string;
|
|
946
929
|
board_id: string;
|
|
947
930
|
ticket_id?: string | null;
|
|
948
931
|
status: UserNoteStatus;
|
|
@@ -1394,6 +1377,27 @@ export declare enum IntegrationConnectionStatus {
|
|
|
1394
1377
|
error = "error",
|
|
1395
1378
|
disabled = "disabled"
|
|
1396
1379
|
}
|
|
1380
|
+
export interface UpdateSlackFeedbackFormIntegrationConnectionData {
|
|
1381
|
+
connected_app_connection_id: string;
|
|
1382
|
+
channel: string;
|
|
1383
|
+
message: string;
|
|
1384
|
+
}
|
|
1385
|
+
export interface SlackFeedbackFormIntegrationConnectionData {
|
|
1386
|
+
connected_app_connection_id: string;
|
|
1387
|
+
channel: string;
|
|
1388
|
+
message: string;
|
|
1389
|
+
form_id: string;
|
|
1390
|
+
}
|
|
1391
|
+
export interface UpdateParraFeedbackFormBoardIntegrationConnectionData {
|
|
1392
|
+
ticket_title: string;
|
|
1393
|
+
ticket_description?: string | null;
|
|
1394
|
+
}
|
|
1395
|
+
export interface ParraFeedbackFormBoardIntegrationConnectionData {
|
|
1396
|
+
ticket_title: string;
|
|
1397
|
+
ticket_description?: string | null;
|
|
1398
|
+
form_id: string;
|
|
1399
|
+
}
|
|
1400
|
+
export type IntegrationConnectionData = SlackFeedbackFormIntegrationConnectionData | ParraFeedbackFormBoardIntegrationConnectionData;
|
|
1397
1401
|
export interface IntegrationConnection {
|
|
1398
1402
|
id: string;
|
|
1399
1403
|
created_at: string;
|
|
@@ -1403,6 +1407,7 @@ export interface IntegrationConnection {
|
|
|
1403
1407
|
active: boolean;
|
|
1404
1408
|
type: IntegrationType;
|
|
1405
1409
|
status: IntegrationConnectionStatus;
|
|
1410
|
+
data: IntegrationConnectionData;
|
|
1406
1411
|
}
|
|
1407
1412
|
export declare enum IntegrationScope {
|
|
1408
1413
|
global = "global",
|
|
@@ -1434,18 +1439,8 @@ export interface TenantIntegration {
|
|
|
1434
1439
|
export interface UpdateIntegrationConnectionRequestBody {
|
|
1435
1440
|
active?: boolean;
|
|
1436
1441
|
}
|
|
1437
|
-
export interface
|
|
1438
|
-
form_id: string;
|
|
1439
|
-
connected_app_connection_id: string;
|
|
1440
|
-
channel: string;
|
|
1441
|
-
message: string;
|
|
1442
|
+
export interface CreateIntegrationConnectionRequestBody {
|
|
1442
1443
|
}
|
|
1443
|
-
export interface CreateParraFeedbackFormBoardIntegrationConnectionRequestBody {
|
|
1444
|
-
form_id: string;
|
|
1445
|
-
ticket_title: string;
|
|
1446
|
-
ticket_description?: string | null;
|
|
1447
|
-
}
|
|
1448
|
-
export type CreateIntegrationConnectionRequestBody = CreateSlackFeedbackFormIntegrationConnectionRequestBody | CreateParraFeedbackFormBoardIntegrationConnectionRequestBody;
|
|
1449
1444
|
export interface TenantInvitationRequestBody {
|
|
1450
1445
|
name: string;
|
|
1451
1446
|
email: string;
|
|
@@ -1633,15 +1628,7 @@ declare class ParraAPI {
|
|
|
1633
1628
|
$expand?: string;
|
|
1634
1629
|
$search?: string;
|
|
1635
1630
|
}) => Promise<TicketCollectionResponse>;
|
|
1636
|
-
createUserNoteForBoard: (tenant_id: string, board_id: string, body
|
|
1637
|
-
$select?: string;
|
|
1638
|
-
$top?: number;
|
|
1639
|
-
$skip?: number;
|
|
1640
|
-
$orderby?: string;
|
|
1641
|
-
$filter?: string;
|
|
1642
|
-
$expand?: string;
|
|
1643
|
-
$search?: string;
|
|
1644
|
-
}) => Promise<UserNote>;
|
|
1631
|
+
createUserNoteForBoard: (tenant_id: string, board_id: string, body: CreateUserNoteRequestBody) => Promise<UserNote>;
|
|
1645
1632
|
paginateUserNotesForBoard: (tenant_id: string, board_id: string, query?: {
|
|
1646
1633
|
$select?: string;
|
|
1647
1634
|
$top?: number;
|
package/dist/ParraAPI.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IntegrationScope = exports.IntegrationConnectionStatus = exports.IntegrationType = exports.ConnectedAppConnectionStatus = exports.ConnectedAppType = exports.ApnsPushType = exports.ApnsEnvironment = exports.ChannelType = exports.ApplicationType = exports.AppVersionStatus = exports.TicketDisplayStatus = exports.UserNoteStatus = exports.ReleaseType = exports.ReleaseStatus = exports.TicketPriority = exports.TicketStatus = exports.TicketType = exports.TemplateType = exports.CampaignStatus = exports.CampaignActionDisplayType = exports.CampaignActionType = exports.
|
|
3
|
+
exports.IntegrationScope = exports.IntegrationConnectionStatus = exports.IntegrationType = exports.ConnectedAppConnectionStatus = exports.ConnectedAppType = exports.ApnsPushType = exports.ApnsEnvironment = exports.ChannelType = exports.ApplicationType = exports.AppVersionStatus = exports.TicketDisplayStatus = exports.UserNoteStatus = exports.ReleaseType = exports.ReleaseStatus = exports.TicketPriority = exports.TicketStatus = exports.TicketType = exports.TemplateType = exports.CampaignStatus = exports.CampaignActionDisplayType = exports.CampaignActionType = exports.CardItemDisplayType = exports.CardItemType = exports.QuestionKind = exports.QuestionType = exports.FeedbackFormFieldType = exports.SubscriptionStatus = exports.Currency = exports.Interval = void 0;
|
|
4
4
|
var Interval;
|
|
5
5
|
(function (Interval) {
|
|
6
6
|
Interval["monthly"] = "monthly";
|
|
@@ -58,10 +58,6 @@ var CardItemDisplayType;
|
|
|
58
58
|
CardItemDisplayType["inline"] = "inline";
|
|
59
59
|
CardItemDisplayType["popup"] = "popup";
|
|
60
60
|
})(CardItemDisplayType || (exports.CardItemDisplayType = CardItemDisplayType = {}));
|
|
61
|
-
var FormIntegrationType;
|
|
62
|
-
(function (FormIntegrationType) {
|
|
63
|
-
FormIntegrationType["board"] = "board";
|
|
64
|
-
})(FormIntegrationType || (exports.FormIntegrationType = FormIntegrationType = {}));
|
|
65
61
|
var CampaignActionType;
|
|
66
62
|
(function (CampaignActionType) {
|
|
67
63
|
CampaignActionType["question"] = "question";
|
|
@@ -543,10 +539,9 @@ var ParraAPI = /** @class */ (function () {
|
|
|
543
539
|
query: query,
|
|
544
540
|
});
|
|
545
541
|
};
|
|
546
|
-
this.createUserNoteForBoard = function (tenant_id, board_id, body
|
|
542
|
+
this.createUserNoteForBoard = function (tenant_id, board_id, body) {
|
|
547
543
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/boards/").concat(board_id, "/notes"), {
|
|
548
544
|
method: "post",
|
|
549
|
-
query: query,
|
|
550
545
|
body: JSON.stringify(body),
|
|
551
546
|
headers: {
|
|
552
547
|
"content-type": "application/json",
|