@parra/parra-js-sdk 0.3.284 → 0.3.286
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 +33 -0
- package/dist/ParraAPI.js +21 -1
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -68,6 +68,7 @@ export interface TicketStub {
|
|
|
68
68
|
voting_enabled: boolean;
|
|
69
69
|
is_public: boolean;
|
|
70
70
|
user_note_id?: string | null;
|
|
71
|
+
due_at?: string | null;
|
|
71
72
|
estimated_start_date?: string | null;
|
|
72
73
|
estimated_completion_date?: string | null;
|
|
73
74
|
icon?: TicketIcon;
|
|
@@ -1468,6 +1469,7 @@ export interface CreateTicketRequestBody {
|
|
|
1468
1469
|
voting_enabled: boolean;
|
|
1469
1470
|
is_public: boolean;
|
|
1470
1471
|
user_note_id?: string | null;
|
|
1472
|
+
due_at?: string | null;
|
|
1471
1473
|
estimated_start_date?: string | null;
|
|
1472
1474
|
estimated_completion_date?: string | null;
|
|
1473
1475
|
icon?: TicketIcon;
|
|
@@ -1504,6 +1506,19 @@ export interface BoardComponentStub {
|
|
|
1504
1506
|
id: string;
|
|
1505
1507
|
name: string;
|
|
1506
1508
|
}
|
|
1509
|
+
export declare enum TicketLinkType {
|
|
1510
|
+
notion = "notion"
|
|
1511
|
+
}
|
|
1512
|
+
export interface TicketLink {
|
|
1513
|
+
id: string;
|
|
1514
|
+
created_at: string;
|
|
1515
|
+
updated_at: string;
|
|
1516
|
+
deleted_at?: string | null;
|
|
1517
|
+
type?: TicketLinkType | null;
|
|
1518
|
+
title: string;
|
|
1519
|
+
url: string;
|
|
1520
|
+
description?: string | null;
|
|
1521
|
+
}
|
|
1507
1522
|
export interface Ticket {
|
|
1508
1523
|
id: string;
|
|
1509
1524
|
created_at: string;
|
|
@@ -1518,6 +1533,7 @@ export interface Ticket {
|
|
|
1518
1533
|
voting_enabled: boolean;
|
|
1519
1534
|
is_public: boolean;
|
|
1520
1535
|
user_note_id?: string | null;
|
|
1536
|
+
due_at?: string | null;
|
|
1521
1537
|
estimated_start_date?: string | null;
|
|
1522
1538
|
estimated_completion_date?: string | null;
|
|
1523
1539
|
icon?: TicketIcon;
|
|
@@ -1532,6 +1548,7 @@ export interface Ticket {
|
|
|
1532
1548
|
assignees?: Array<TeamMemberStub>;
|
|
1533
1549
|
checklist_items?: Array<TicketChecklistItemStub>;
|
|
1534
1550
|
components?: Array<BoardComponentStub>;
|
|
1551
|
+
links?: Array<TicketLink>;
|
|
1535
1552
|
reported_by?: TeamMemberStub | null;
|
|
1536
1553
|
}
|
|
1537
1554
|
export interface TicketCollectionResponse {
|
|
@@ -1606,6 +1623,7 @@ export interface UpdateTicketRequestBody {
|
|
|
1606
1623
|
description?: string | null;
|
|
1607
1624
|
voting_enabled?: boolean;
|
|
1608
1625
|
is_public?: boolean;
|
|
1626
|
+
due_at?: string | null;
|
|
1609
1627
|
estimated_start_date?: string | null;
|
|
1610
1628
|
estimated_completion_date?: string | null;
|
|
1611
1629
|
icon?: TicketIcon | null;
|
|
@@ -1628,6 +1646,7 @@ export interface BulkUpdateTicketsRequestBody {
|
|
|
1628
1646
|
description?: string | null;
|
|
1629
1647
|
voting_enabled?: boolean;
|
|
1630
1648
|
is_public?: boolean;
|
|
1649
|
+
due_at?: string | null;
|
|
1631
1650
|
estimated_start_date?: string | null;
|
|
1632
1651
|
estimated_completion_date?: string | null;
|
|
1633
1652
|
icon?: TicketIcon | null;
|
|
@@ -1654,6 +1673,16 @@ export interface Assignment {
|
|
|
1654
1673
|
deleted_at?: string | null;
|
|
1655
1674
|
team_member: TeamMemberStub;
|
|
1656
1675
|
}
|
|
1676
|
+
export interface UpdateLinkRequestBody {
|
|
1677
|
+
title: string;
|
|
1678
|
+
url: string;
|
|
1679
|
+
description?: string | null;
|
|
1680
|
+
}
|
|
1681
|
+
export interface CreateLinkRequestBody {
|
|
1682
|
+
title: string;
|
|
1683
|
+
url: string;
|
|
1684
|
+
description?: string | null;
|
|
1685
|
+
}
|
|
1657
1686
|
export interface TicketChecklistItem {
|
|
1658
1687
|
id: string;
|
|
1659
1688
|
created_at: string;
|
|
@@ -1690,6 +1719,7 @@ export interface UserTicket {
|
|
|
1690
1719
|
voting_enabled: boolean;
|
|
1691
1720
|
voted: boolean;
|
|
1692
1721
|
ticket_number: string;
|
|
1722
|
+
due_at?: string | null;
|
|
1693
1723
|
estimated_start_date?: string | null;
|
|
1694
1724
|
estimated_completion_date?: string | null;
|
|
1695
1725
|
released_at?: string | null;
|
|
@@ -3578,6 +3608,9 @@ declare class ParraAPI {
|
|
|
3578
3608
|
updateTicketAssignmentById: (tenant_id: string, ticket_id: string, ticket_assignment_id: string, body: UpdateTicketAssignmentRequestBody, options?: Options) => Promise<Assignment>;
|
|
3579
3609
|
deleteTicketAssignmentById: (tenant_id: string, ticket_id: string, ticket_assignment_id: string, options?: Options) => Promise<Response>;
|
|
3580
3610
|
deleteAttachmentForTicketById: (tenant_id: string, ticket_id: string, ticket_attachment_id: string, options?: Options) => Promise<Response>;
|
|
3611
|
+
updateTicketLinkById: (tenant_id: string, ticket_id: string, ticket_link_id: string, body: UpdateLinkRequestBody, options?: Options) => Promise<TicketLink>;
|
|
3612
|
+
deleteTicketLink: (tenant_id: string, ticket_id: string, ticket_link_id: string, options?: Options) => Promise<Response>;
|
|
3613
|
+
createLinkForTicket: (tenant_id: string, ticket_id: string, body?: CreateLinkRequestBody, options?: Options) => Promise<TicketLink>;
|
|
3581
3614
|
createTicketChecklistItem: (tenant_id: string, ticket_id: string, body?: CreateTicketChecklistItemRequestBody, options?: Options) => Promise<TicketChecklistItem>;
|
|
3582
3615
|
bulkUpdateTicketChecklistItems: (tenant_id: string, ticket_id: string, body?: BulkUpdateTicketChecklistItemsRequestBody, options?: Options) => Promise<Array<TicketChecklistItem>>;
|
|
3583
3616
|
listTicketChecklistItems: (tenant_id: string, ticket_id: string, options?: Options) => Promise<Array<TicketChecklistItem>>;
|
package/dist/ParraAPI.js
CHANGED
|
@@ -11,7 +11,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.PolicyDocumentVersionStatus = exports.PolicyDocumentStatus = exports.MailTemplateStatus = exports.MailTemplateVersionStatus = exports.MailTemplateType = exports.IntegrationScope = exports.IntegrationConnectionStatus = exports.IntegrationType = exports.ConnectedAppConnectionStatus = exports.ConnectedAppType = exports.TenantOnboardingGoal = exports.DashboardChecklistItemStatus = exports.DashboardChecklistItemType = exports.RefreshTokenRotationType = exports.RefreshTokenExpirationType = exports.JwtAlgorithm = exports.GrantType = exports.PasswordlessStrategy = exports.SettingsItemType = exports.ApnsPushType = exports.ApnsEnvironment = exports.ChannelType = exports.AppVersionStatus = exports.TicketDisplayStatus = exports.UserNoteStatus = exports.TemplateType = exports.CampaignStatus = exports.CampaignActionDisplayType = exports.CampaignActionType = exports.CardItemDisplayType = exports.CardItemType = exports.QuestionKind = exports.QuestionType = exports.FeedItemType = exports.FeedbackFormFieldType = exports.SubscriptionStatus = exports.Interval = exports.Currency = exports.IdentityType = exports.PolicyDocumentType = exports.DomainStatus = exports.DomainType = exports.ApplicationType = exports.ReleaseType = exports.ReleaseStatus = exports.TicketIconType = exports.TicketPriority = exports.TicketStatus = exports.TicketType = void 0;
|
|
14
|
+
exports.PolicyDocumentVersionStatus = exports.PolicyDocumentStatus = exports.MailTemplateStatus = exports.MailTemplateVersionStatus = exports.MailTemplateType = exports.IntegrationScope = exports.IntegrationConnectionStatus = exports.IntegrationType = exports.ConnectedAppConnectionStatus = exports.ConnectedAppType = exports.TenantOnboardingGoal = exports.DashboardChecklistItemStatus = exports.DashboardChecklistItemType = exports.RefreshTokenRotationType = exports.RefreshTokenExpirationType = exports.JwtAlgorithm = exports.GrantType = exports.PasswordlessStrategy = exports.SettingsItemType = exports.ApnsPushType = exports.ApnsEnvironment = exports.ChannelType = exports.AppVersionStatus = exports.TicketDisplayStatus = exports.UserNoteStatus = exports.TicketLinkType = exports.TemplateType = exports.CampaignStatus = exports.CampaignActionDisplayType = exports.CampaignActionType = exports.CardItemDisplayType = exports.CardItemType = exports.QuestionKind = exports.QuestionType = exports.FeedItemType = exports.FeedbackFormFieldType = exports.SubscriptionStatus = exports.Interval = exports.Currency = exports.IdentityType = exports.PolicyDocumentType = exports.DomainStatus = exports.DomainType = exports.ApplicationType = exports.ReleaseType = exports.ReleaseStatus = exports.TicketIconType = exports.TicketPriority = exports.TicketStatus = exports.TicketType = void 0;
|
|
15
15
|
var TicketType;
|
|
16
16
|
(function (TicketType) {
|
|
17
17
|
TicketType["bug"] = "bug";
|
|
@@ -180,6 +180,10 @@ var TemplateType;
|
|
|
180
180
|
(function (TemplateType) {
|
|
181
181
|
TemplateType["question"] = "question";
|
|
182
182
|
})(TemplateType || (exports.TemplateType = TemplateType = {}));
|
|
183
|
+
var TicketLinkType;
|
|
184
|
+
(function (TicketLinkType) {
|
|
185
|
+
TicketLinkType["notion"] = "notion";
|
|
186
|
+
})(TicketLinkType || (exports.TicketLinkType = TicketLinkType = {}));
|
|
183
187
|
var UserNoteStatus;
|
|
184
188
|
(function (UserNoteStatus) {
|
|
185
189
|
UserNoteStatus["pending"] = "pending";
|
|
@@ -818,6 +822,22 @@ var ParraAPI = /** @class */ (function () {
|
|
|
818
822
|
if (options === void 0) { options = {}; }
|
|
819
823
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id, "/attachments/").concat(ticket_attachment_id), __assign({ method: "delete" }, options));
|
|
820
824
|
};
|
|
825
|
+
this.updateTicketLinkById = function (tenant_id, ticket_id, ticket_link_id, body, options) {
|
|
826
|
+
if (options === void 0) { options = {}; }
|
|
827
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id, "/links/").concat(ticket_link_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
|
|
828
|
+
"content-type": "application/json",
|
|
829
|
+
} }, options));
|
|
830
|
+
};
|
|
831
|
+
this.deleteTicketLink = function (tenant_id, ticket_id, ticket_link_id, options) {
|
|
832
|
+
if (options === void 0) { options = {}; }
|
|
833
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id, "/links/").concat(ticket_link_id), __assign({ method: "delete" }, options));
|
|
834
|
+
};
|
|
835
|
+
this.createLinkForTicket = function (tenant_id, ticket_id, body, options) {
|
|
836
|
+
if (options === void 0) { options = {}; }
|
|
837
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id, "/links"), __assign({ method: "post", body: JSON.stringify(body), headers: {
|
|
838
|
+
"content-type": "application/json",
|
|
839
|
+
} }, options));
|
|
840
|
+
};
|
|
821
841
|
this.createTicketChecklistItem = function (tenant_id, ticket_id, body, options) {
|
|
822
842
|
if (options === void 0) { options = {}; }
|
|
823
843
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id, "/checklist/items"), __assign({ method: "post", body: JSON.stringify(body), headers: {
|