@parra/parra-js-sdk 0.3.89 → 0.3.91
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 +7 -2
- package/dist/ParraAPI.js +5 -0
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -948,13 +948,17 @@ export interface UserNoteCollectionResponse {
|
|
|
948
948
|
total_count: number;
|
|
949
949
|
data: Array<UserNote>;
|
|
950
950
|
}
|
|
951
|
+
export interface UserNoteMetrics {
|
|
952
|
+
total_requests: number;
|
|
953
|
+
pending_requests: number;
|
|
954
|
+
}
|
|
951
955
|
export interface LinkUserNoteRequestBody {
|
|
952
956
|
ticket_id: string;
|
|
953
957
|
}
|
|
954
958
|
export interface UpdateTicketRequestBody {
|
|
955
959
|
release_id?: string;
|
|
956
960
|
title?: string;
|
|
957
|
-
short_title?: string;
|
|
961
|
+
short_title?: string | null;
|
|
958
962
|
type?: TicketType;
|
|
959
963
|
status?: TicketStatus;
|
|
960
964
|
priority?: TicketPriority | null;
|
|
@@ -966,7 +970,7 @@ export interface UpdateTicketRequestBody {
|
|
|
966
970
|
export interface BulkUpdateTicketsRequestBody {
|
|
967
971
|
release_id?: string;
|
|
968
972
|
title?: string;
|
|
969
|
-
short_title?: string;
|
|
973
|
+
short_title?: string | null;
|
|
970
974
|
type?: TicketType;
|
|
971
975
|
status?: TicketStatus;
|
|
972
976
|
priority?: TicketPriority | null;
|
|
@@ -1686,6 +1690,7 @@ declare class ParraAPI {
|
|
|
1686
1690
|
$expand?: string;
|
|
1687
1691
|
$search?: string;
|
|
1688
1692
|
}) => Promise<UserNoteCollectionResponse>;
|
|
1693
|
+
generateUserNoteMetricsForBoard: (tenant_id: string, board_id: string) => Promise<UserNoteMetrics>;
|
|
1689
1694
|
deleteUserNoteById: (tenant_id: string, user_note_id: string) => Promise<Response>;
|
|
1690
1695
|
linkUserNoteToTicket: (tenant_id: string, user_note_id: string, body: LinkUserNoteRequestBody) => Promise<Response>;
|
|
1691
1696
|
bulkUpdateTickets: (tenant_id: string, body?: BulkUpdateTicketsRequestBody) => Promise<Response>;
|
package/dist/ParraAPI.js
CHANGED
|
@@ -555,6 +555,11 @@ var ParraAPI = /** @class */ (function () {
|
|
|
555
555
|
query: query,
|
|
556
556
|
});
|
|
557
557
|
};
|
|
558
|
+
this.generateUserNoteMetricsForBoard = function (tenant_id, board_id) {
|
|
559
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/boards/").concat(board_id, "/notes/metrics"), {
|
|
560
|
+
method: "post",
|
|
561
|
+
});
|
|
562
|
+
};
|
|
558
563
|
this.deleteUserNoteById = function (tenant_id, user_note_id) {
|
|
559
564
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notes/").concat(user_note_id), {
|
|
560
565
|
method: "delete",
|