@parra/parra-js-sdk 0.3.59 → 0.3.61

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.
@@ -1326,13 +1326,15 @@ export declare enum ConnectedAppType {
1326
1326
  export declare enum ConnectedAppConnectionStatus {
1327
1327
  pending = "pending",
1328
1328
  live = "live",
1329
- error = "error"
1329
+ error = "error",
1330
+ disabled = "disabled"
1330
1331
  }
1331
1332
  export interface ConnectedAppConnection {
1332
1333
  id: string;
1333
1334
  created_at: string;
1334
1335
  updated_at: string;
1335
1336
  deleted_at?: string | null;
1337
+ tenant_id: string;
1336
1338
  active: boolean;
1337
1339
  type: ConnectedAppType;
1338
1340
  status: ConnectedAppConnectionStatus;
@@ -1362,6 +1364,9 @@ export interface TenantConnectedApp {
1362
1364
  link: ConnectedAppLink;
1363
1365
  connections: Array<ConnectedAppConnection>;
1364
1366
  }
1367
+ export interface UpdateConnectedAppConnectionRequestBody {
1368
+ active?: boolean;
1369
+ }
1365
1370
  export interface CreateSlackConnectedAppConnectionRequestBody {
1366
1371
  code: string;
1367
1372
  }
@@ -1642,6 +1647,8 @@ declare class ParraAPI {
1642
1647
  listConnectedAppsForTenantById: (tenant_id: string, query?: {
1643
1648
  include?: string;
1644
1649
  }) => Promise<Array<TenantConnectedApp>>;
1650
+ updateConnectedAppConnectionById: (tenant_id: string, connected_app_connection_id: string, body?: UpdateConnectedAppConnectionRequestBody) => Promise<ConnectedAppConnection>;
1651
+ deleteConnectedAppConnectionById: (tenant_id: string, connected_app_connection_id: string) => Promise<ConnectedAppConnection>;
1645
1652
  createConnectionForConnectedApp: (tenant_id: string, connected_app_id: string, body?: CreateConnectedAppConnectionRequestBody) => Promise<ConnectedAppConnection>;
1646
1653
  getInvitationsForTenantById: (tenant_id: string) => Promise<Array<TenantInvitation>>;
1647
1654
  createInvitationForTenantById: (tenant_id: string, body: TenantInvitationRequestBody) => Promise<TenantInvitation>;
package/dist/ParraAPI.js CHANGED
@@ -179,6 +179,7 @@ var ConnectedAppConnectionStatus;
179
179
  ConnectedAppConnectionStatus["pending"] = "pending";
180
180
  ConnectedAppConnectionStatus["live"] = "live";
181
181
  ConnectedAppConnectionStatus["error"] = "error";
182
+ ConnectedAppConnectionStatus["disabled"] = "disabled";
182
183
  })(ConnectedAppConnectionStatus || (exports.ConnectedAppConnectionStatus = ConnectedAppConnectionStatus = {}));
183
184
  var ParraAPI = /** @class */ (function () {
184
185
  function ParraAPI(http, options) {
@@ -836,6 +837,20 @@ var ParraAPI = /** @class */ (function () {
836
837
  query: query,
837
838
  });
838
839
  };
840
+ this.updateConnectedAppConnectionById = function (tenant_id, connected_app_connection_id, body) {
841
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/connected-apps/connections/").concat(connected_app_connection_id), {
842
+ method: "put",
843
+ body: JSON.stringify(body),
844
+ headers: {
845
+ "content-type": "application/json",
846
+ },
847
+ });
848
+ };
849
+ this.deleteConnectedAppConnectionById = function (tenant_id, connected_app_connection_id) {
850
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/connected-apps/connections/").concat(connected_app_connection_id), {
851
+ method: "delete",
852
+ });
853
+ };
839
854
  this.createConnectionForConnectedApp = function (tenant_id, connected_app_id, body) {
840
855
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/connected-apps/").concat(connected_app_id, "/connections"), {
841
856
  method: "post",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.59",
3
+ "version": "0.3.61",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",