@parra/parra-js-sdk 0.3.86 → 0.3.87

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.
@@ -969,7 +969,6 @@ export interface UpdateReleaseForTicketRequestBody {
969
969
  }
970
970
  export declare enum TicketDisplayStatus {
971
971
  pending = "pending",
972
- upcoming = "upcoming",
973
972
  inProgress = "in_progress",
974
973
  live = "live",
975
974
  rejected = "rejected"
@@ -989,6 +988,13 @@ export interface UserTicket {
989
988
  voting_enabled: boolean;
990
989
  voted: boolean;
991
990
  }
991
+ export interface ReleaseVersionInfoRequestBody {
992
+ type: ReleaseType;
993
+ }
994
+ export interface ReleaseVersionInfo {
995
+ version: string;
996
+ name: string;
997
+ }
992
998
  export interface ReleaseItemStub {
993
999
  id: string;
994
1000
  created_at: string;
@@ -1674,6 +1680,7 @@ declare class ParraAPI {
1674
1680
  removeReleaseFromTicketById: (tenant_id: string, ticket_id: string) => Promise<Response>;
1675
1681
  voteForTicketById: (tenant_id: string, ticket_id: string) => Promise<UserTicket>;
1676
1682
  removeVoteForTicketById: (tenant_id: string, ticket_id: string) => Promise<UserTicket>;
1683
+ generateNextReleaseVersionInfoForTenantById: (tenant_id: string, body: ReleaseVersionInfoRequestBody) => Promise<ReleaseVersionInfo>;
1677
1684
  createReleaseForTenantById: (tenant_id: string, body: CreateReleaseRequestBody) => Promise<Release>;
1678
1685
  paginateReleasesForTenantById: (tenant_id: string, query?: {
1679
1686
  $select?: string;
package/dist/ParraAPI.js CHANGED
@@ -127,7 +127,6 @@ var UserNoteStatus;
127
127
  var TicketDisplayStatus;
128
128
  (function (TicketDisplayStatus) {
129
129
  TicketDisplayStatus["pending"] = "pending";
130
- TicketDisplayStatus["upcoming"] = "upcoming";
131
130
  TicketDisplayStatus["inProgress"] = "in_progress";
132
131
  TicketDisplayStatus["live"] = "live";
133
132
  TicketDisplayStatus["rejected"] = "rejected";
@@ -624,6 +623,15 @@ var ParraAPI = /** @class */ (function () {
624
623
  method: "delete",
625
624
  });
626
625
  };
626
+ this.generateNextReleaseVersionInfoForTenantById = function (tenant_id, body) {
627
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/releases/version-info"), {
628
+ method: "post",
629
+ body: JSON.stringify(body),
630
+ headers: {
631
+ "content-type": "application/json",
632
+ },
633
+ });
634
+ };
627
635
  this.createReleaseForTenantById = function (tenant_id, body) {
628
636
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/releases"), {
629
637
  method: "post",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.86",
3
+ "version": "0.3.87",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",