@parra/parra-js-sdk 0.3.48 → 0.3.50
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 +9 -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 {
|
|
@@ -837,6 +837,7 @@ export interface CreateTicketRequestBody {
|
|
|
837
837
|
description?: string | null;
|
|
838
838
|
voting_enabled: boolean;
|
|
839
839
|
is_public: boolean;
|
|
840
|
+
user_note_id?: string | null;
|
|
840
841
|
}
|
|
841
842
|
export declare enum ReleaseStatus {
|
|
842
843
|
pending = "pending",
|
|
@@ -879,6 +880,7 @@ export interface TicketStub {
|
|
|
879
880
|
description?: string | null;
|
|
880
881
|
voting_enabled: boolean;
|
|
881
882
|
is_public: boolean;
|
|
883
|
+
user_note_id?: string | null;
|
|
882
884
|
ticket_number: string;
|
|
883
885
|
tenant_id: string;
|
|
884
886
|
vote_count: number;
|
|
@@ -894,6 +896,7 @@ export interface Ticket {
|
|
|
894
896
|
description?: string | null;
|
|
895
897
|
voting_enabled: boolean;
|
|
896
898
|
is_public: boolean;
|
|
899
|
+
user_note_id?: string | null;
|
|
897
900
|
ticket_number: string;
|
|
898
901
|
tenant_id: string;
|
|
899
902
|
vote_count: number;
|
|
@@ -956,6 +959,9 @@ export interface UpdateTicketRequestBody {
|
|
|
956
959
|
voting_enabled?: boolean;
|
|
957
960
|
is_public?: boolean;
|
|
958
961
|
}
|
|
962
|
+
export interface UpdateReleaseForTicketRequestBody {
|
|
963
|
+
release_id: string;
|
|
964
|
+
}
|
|
959
965
|
export declare enum TicketDisplayStatus {
|
|
960
966
|
pending = "pending",
|
|
961
967
|
upcoming = "upcoming",
|
|
@@ -1481,6 +1487,8 @@ declare class ParraAPI {
|
|
|
1481
1487
|
getTicketById: (tenant_id: string, ticket_id: string) => Promise<Ticket>;
|
|
1482
1488
|
updateTicketById: (tenant_id: string, ticket_id: string, body?: UpdateTicketRequestBody) => Promise<Ticket>;
|
|
1483
1489
|
deleteTicketById: (tenant_id: string, ticket_id: string) => Promise<Response>;
|
|
1490
|
+
updateReleaseForTicketById: (tenant_id: string, ticket_id: string, body: UpdateReleaseForTicketRequestBody) => Promise<Ticket>;
|
|
1491
|
+
removeReleaseFromTicketById: (tenant_id: string, ticket_id: string) => Promise<Response>;
|
|
1484
1492
|
voteForTicketById: (tenant_id: string, ticket_id: string) => Promise<UserTicket>;
|
|
1485
1493
|
removeVoteForTicketById: (tenant_id: string, ticket_id: string) => Promise<UserTicket>;
|
|
1486
1494
|
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",
|