@parra/parra-js-sdk 0.3.48 → 0.3.49
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 +6 -1
- package/dist/ParraAPI.js +14 -0
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -205,7 +205,7 @@ export interface FeedbackFormField {
|
|
|
205
205
|
title?: string;
|
|
206
206
|
helper_text?: string | null;
|
|
207
207
|
type: FeedbackFormFieldType;
|
|
208
|
-
required
|
|
208
|
+
required: boolean;
|
|
209
209
|
data: FeedbackFormFieldData;
|
|
210
210
|
}
|
|
211
211
|
export interface FeedbackFormData {
|
|
@@ -956,6 +956,9 @@ export interface UpdateTicketRequestBody {
|
|
|
956
956
|
voting_enabled?: boolean;
|
|
957
957
|
is_public?: boolean;
|
|
958
958
|
}
|
|
959
|
+
export interface UpdateReleaseForTicketRequestBody {
|
|
960
|
+
release_id: string;
|
|
961
|
+
}
|
|
959
962
|
export declare enum TicketDisplayStatus {
|
|
960
963
|
pending = "pending",
|
|
961
964
|
upcoming = "upcoming",
|
|
@@ -1481,6 +1484,8 @@ declare class ParraAPI {
|
|
|
1481
1484
|
getTicketById: (tenant_id: string, ticket_id: string) => Promise<Ticket>;
|
|
1482
1485
|
updateTicketById: (tenant_id: string, ticket_id: string, body?: UpdateTicketRequestBody) => Promise<Ticket>;
|
|
1483
1486
|
deleteTicketById: (tenant_id: string, ticket_id: string) => Promise<Response>;
|
|
1487
|
+
updateReleaseForTicketById: (tenant_id: string, ticket_id: string, body: UpdateReleaseForTicketRequestBody) => Promise<Ticket>;
|
|
1488
|
+
removeReleaseFromTicketById: (tenant_id: string, ticket_id: string) => Promise<Response>;
|
|
1484
1489
|
voteForTicketById: (tenant_id: string, ticket_id: string) => Promise<UserTicket>;
|
|
1485
1490
|
removeVoteForTicketById: (tenant_id: string, ticket_id: string) => Promise<UserTicket>;
|
|
1486
1491
|
createReleaseForTenantById: (tenant_id: string, body: CreateReleaseRequestBody) => Promise<Release>;
|
package/dist/ParraAPI.js
CHANGED
|
@@ -544,6 +544,20 @@ var ParraAPI = /** @class */ (function () {
|
|
|
544
544
|
method: "delete",
|
|
545
545
|
});
|
|
546
546
|
};
|
|
547
|
+
this.updateReleaseForTicketById = function (tenant_id, ticket_id, body) {
|
|
548
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id, "/release"), {
|
|
549
|
+
method: "put",
|
|
550
|
+
body: JSON.stringify(body),
|
|
551
|
+
headers: {
|
|
552
|
+
"content-type": "application/json",
|
|
553
|
+
},
|
|
554
|
+
});
|
|
555
|
+
};
|
|
556
|
+
this.removeReleaseFromTicketById = function (tenant_id, ticket_id) {
|
|
557
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id, "/release"), {
|
|
558
|
+
method: "delete",
|
|
559
|
+
});
|
|
560
|
+
};
|
|
547
561
|
this.voteForTicketById = function (tenant_id, ticket_id) {
|
|
548
562
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id, "/vote"), {
|
|
549
563
|
method: "post",
|