@parra/parra-js-sdk 0.3.85 → 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;
@@ -1384,16 +1390,6 @@ export declare enum IntegrationConnectionStatus {
1384
1390
  error = "error",
1385
1391
  disabled = "disabled"
1386
1392
  }
1387
- export interface UpdateSlackReleaseCollectionIntegrationConnectionData {
1388
- connected_app_connection_id: string;
1389
- channel: string;
1390
- message: string;
1391
- }
1392
- export interface SlackReleaseCollectionIntegrationConnectionData {
1393
- connected_app_connection_id: string;
1394
- channel: string;
1395
- message: string;
1396
- }
1397
1393
  export interface UpdateSlackFeedbackFormIntegrationConnectionData {
1398
1394
  connected_app_connection_id: string;
1399
1395
  channel: string;
@@ -1414,7 +1410,25 @@ export interface ParraFeedbackFormBoardIntegrationConnectionData {
1414
1410
  ticket_description?: string | null;
1415
1411
  form_id: string;
1416
1412
  }
1417
- export type IntegrationConnectionData = SlackReleaseCollectionIntegrationConnectionData | SlackFeedbackFormIntegrationConnectionData | ParraFeedbackFormBoardIntegrationConnectionData;
1413
+ export interface UpdateSlackReleaseCollectionIntegrationConnectionData {
1414
+ connected_app_connection_id: string;
1415
+ channel: string;
1416
+ message: string;
1417
+ }
1418
+ export interface SlackReleaseCollectionIntegrationConnectionData {
1419
+ connected_app_connection_id: string;
1420
+ channel: string;
1421
+ message: string;
1422
+ }
1423
+ export interface UpdateXReleaseCollectionIntegrationConnectionData {
1424
+ connected_app_connection_id: string;
1425
+ text: string;
1426
+ }
1427
+ export interface XReleaseCollectionIntegrationConnectionData {
1428
+ connected_app_connection_id: string;
1429
+ text: string;
1430
+ }
1431
+ export type IntegrationConnectionData = SlackFeedbackFormIntegrationConnectionData | ParraFeedbackFormBoardIntegrationConnectionData | SlackReleaseCollectionIntegrationConnectionData | XReleaseCollectionIntegrationConnectionData;
1418
1432
  export interface IntegrationConnection {
1419
1433
  id: string;
1420
1434
  created_at: string;
@@ -1456,10 +1470,6 @@ export interface TenantIntegration {
1456
1470
  export interface UpdateIntegrationConnectionRequestBody {
1457
1471
  active?: boolean;
1458
1472
  }
1459
- export interface UpdateXReleaseCollectionIntegrationConnectionData {
1460
- connected_app_connection_id: string;
1461
- text: string;
1462
- }
1463
1473
  export type UpdateIntegrationConnectionDataRequestBody = UpdateSlackFeedbackFormIntegrationConnectionData | UpdateParraFeedbackFormBoardIntegrationConnectionData | UpdateSlackReleaseCollectionIntegrationConnectionData | UpdateXReleaseCollectionIntegrationConnectionData;
1464
1474
  export interface CreateIntegrationConnectionRequestBody {
1465
1475
  }
@@ -1670,6 +1680,7 @@ declare class ParraAPI {
1670
1680
  removeReleaseFromTicketById: (tenant_id: string, ticket_id: string) => Promise<Response>;
1671
1681
  voteForTicketById: (tenant_id: string, ticket_id: string) => Promise<UserTicket>;
1672
1682
  removeVoteForTicketById: (tenant_id: string, ticket_id: string) => Promise<UserTicket>;
1683
+ generateNextReleaseVersionInfoForTenantById: (tenant_id: string, body: ReleaseVersionInfoRequestBody) => Promise<ReleaseVersionInfo>;
1673
1684
  createReleaseForTenantById: (tenant_id: string, body: CreateReleaseRequestBody) => Promise<Release>;
1674
1685
  paginateReleasesForTenantById: (tenant_id: string, query?: {
1675
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.85",
3
+ "version": "0.3.87",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",