@parra/parra-js-sdk 0.3.52 → 0.3.54
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 +28 -0
- package/dist/ParraAPI.js +21 -0
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -970,6 +970,17 @@ export interface UpdateTicketRequestBody {
|
|
|
970
970
|
voting_enabled?: boolean;
|
|
971
971
|
is_public?: boolean;
|
|
972
972
|
}
|
|
973
|
+
export interface BulkUpdateTicketsRequestBody {
|
|
974
|
+
release_id?: string;
|
|
975
|
+
title?: string;
|
|
976
|
+
type?: TicketType;
|
|
977
|
+
status?: TicketStatus;
|
|
978
|
+
priority?: TicketPriority | null;
|
|
979
|
+
description?: string | null;
|
|
980
|
+
voting_enabled?: boolean;
|
|
981
|
+
is_public?: boolean;
|
|
982
|
+
ticket_ids?: Array<string>;
|
|
983
|
+
}
|
|
973
984
|
export interface UpdateReleaseForTicketRequestBody {
|
|
974
985
|
release_id: string;
|
|
975
986
|
}
|
|
@@ -1043,6 +1054,16 @@ export interface UpdateReleaseRequestBody {
|
|
|
1043
1054
|
export interface CreateReleaseItemRequestBody {
|
|
1044
1055
|
ticket_id: string;
|
|
1045
1056
|
}
|
|
1057
|
+
export interface UserTicketCollectionResponse {
|
|
1058
|
+
page: number;
|
|
1059
|
+
page_count: number;
|
|
1060
|
+
page_size: number;
|
|
1061
|
+
total_count: number;
|
|
1062
|
+
data: Array<UserTicket>;
|
|
1063
|
+
}
|
|
1064
|
+
export interface AppRoadmapConfiguration {
|
|
1065
|
+
form: FeedbackFormDataStub;
|
|
1066
|
+
}
|
|
1046
1067
|
export interface UpdateAppVersionRequestBody {
|
|
1047
1068
|
version_string: string;
|
|
1048
1069
|
description?: string | null;
|
|
@@ -1495,6 +1516,7 @@ declare class ParraAPI {
|
|
|
1495
1516
|
}) => Promise<UserNoteCollectionResponse>;
|
|
1496
1517
|
deleteUserNoteById: (tenant_id: string, user_note_id: string) => Promise<Response>;
|
|
1497
1518
|
linkUserNoteToTicket: (tenant_id: string, user_note_id: string, body: LinkUserNoteRequestBody) => Promise<Response>;
|
|
1519
|
+
bulkUpdateTickets: (tenant_id: string, body?: BulkUpdateTicketsRequestBody) => Promise<Response>;
|
|
1498
1520
|
getTicketById: (tenant_id: string, ticket_id: string) => Promise<Ticket>;
|
|
1499
1521
|
updateTicketById: (tenant_id: string, ticket_id: string, body?: UpdateTicketRequestBody) => Promise<Ticket>;
|
|
1500
1522
|
deleteTicketById: (tenant_id: string, ticket_id: string) => Promise<Response>;
|
|
@@ -1516,6 +1538,12 @@ declare class ParraAPI {
|
|
|
1516
1538
|
updateReleaseForTenantById: (tenant_id: string, release_id: string, body?: UpdateReleaseRequestBody) => Promise<Release>;
|
|
1517
1539
|
deleteReleaseForTenantById: (tenant_id: string, release_id: string) => Promise<Response>;
|
|
1518
1540
|
createReleaseItemForReleaseById: (tenant_id: string, release_id: string, body: CreateReleaseItemRequestBody) => Promise<ReleaseItem>;
|
|
1541
|
+
paginateTicketsForApplication: (tenant_id: string, application_id: string, query?: {
|
|
1542
|
+
limit?: number;
|
|
1543
|
+
offset?: number;
|
|
1544
|
+
filter?: string;
|
|
1545
|
+
}) => Promise<UserTicketCollectionResponse>;
|
|
1546
|
+
getRoadmapForTenantApplication: (tenant_id: string, application_id: string) => Promise<AppRoadmapConfiguration>;
|
|
1519
1547
|
createVersionForTenantApplication: (tenant_id: string, application_id: string, body?: CreateAppVersionRequestBody) => Promise<AppVersion>;
|
|
1520
1548
|
listVersionsForTenantApplication: (tenant_id: string, application_id: string) => Promise<Array<AppVersion>>;
|
|
1521
1549
|
getTenantApplicationVersionById: (tenant_id: string, application_id: string, app_version_id: string) => Promise<AppVersion>;
|
package/dist/ParraAPI.js
CHANGED
|
@@ -532,6 +532,16 @@ var ParraAPI = /** @class */ (function () {
|
|
|
532
532
|
raw: true,
|
|
533
533
|
});
|
|
534
534
|
};
|
|
535
|
+
this.bulkUpdateTickets = function (tenant_id, body) {
|
|
536
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/bulk/tickets"), {
|
|
537
|
+
method: "put",
|
|
538
|
+
body: JSON.stringify(body),
|
|
539
|
+
headers: {
|
|
540
|
+
"content-type": "application/json",
|
|
541
|
+
},
|
|
542
|
+
raw: true,
|
|
543
|
+
});
|
|
544
|
+
};
|
|
535
545
|
this.getTicketById = function (tenant_id, ticket_id) {
|
|
536
546
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id), {
|
|
537
547
|
method: "get",
|
|
@@ -618,6 +628,17 @@ var ParraAPI = /** @class */ (function () {
|
|
|
618
628
|
},
|
|
619
629
|
});
|
|
620
630
|
};
|
|
631
|
+
this.paginateTicketsForApplication = function (tenant_id, application_id, query) {
|
|
632
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/tickets"), {
|
|
633
|
+
method: "get",
|
|
634
|
+
query: query,
|
|
635
|
+
});
|
|
636
|
+
};
|
|
637
|
+
this.getRoadmapForTenantApplication = function (tenant_id, application_id) {
|
|
638
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/roadmap"), {
|
|
639
|
+
method: "get",
|
|
640
|
+
});
|
|
641
|
+
};
|
|
621
642
|
this.createVersionForTenantApplication = function (tenant_id, application_id, body) {
|
|
622
643
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/versions"), {
|
|
623
644
|
method: "post",
|