@parra/parra-js-sdk 0.3.47 → 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.
@@ -205,7 +205,7 @@ export interface FeedbackFormField {
205
205
  title?: string;
206
206
  helper_text?: string | null;
207
207
  type: FeedbackFormFieldType;
208
- required?: boolean;
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",
@@ -1007,14 +1010,14 @@ export interface Release {
1007
1010
  tenant_id: string;
1008
1011
  release_number: number;
1009
1012
  status: ReleaseStatus;
1010
- items: Array<ReleaseItem>;
1013
+ items?: Array<ReleaseItem> | null;
1011
1014
  }
1012
1015
  export interface ReleaseCollectionResponse {
1013
1016
  page: number;
1014
1017
  page_count: number;
1015
1018
  page_size: number;
1016
1019
  total_count: number;
1017
- data: Array<ReleaseStub>;
1020
+ data: Array<Release>;
1018
1021
  }
1019
1022
  export interface UpdateReleaseRequestBody {
1020
1023
  name?: string;
@@ -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",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.47",
3
+ "version": "0.3.49",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",