@parra/parra-js-sdk 0.3.54 → 0.3.56
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 +52 -0
- package/dist/ParraAPI.js +28 -1
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -1318,6 +1318,54 @@ export interface ApiKeyCollectionResponse {
|
|
|
1318
1318
|
total_count: number;
|
|
1319
1319
|
data: Array<ApiKey>;
|
|
1320
1320
|
}
|
|
1321
|
+
export declare enum ConnectedAppType {
|
|
1322
|
+
appStoreConnect = "app-store-connect",
|
|
1323
|
+
slack = "slack",
|
|
1324
|
+
x = "x"
|
|
1325
|
+
}
|
|
1326
|
+
export declare enum ConnectedAppConnectionStatus {
|
|
1327
|
+
pending = "pending",
|
|
1328
|
+
live = "live",
|
|
1329
|
+
error = "error"
|
|
1330
|
+
}
|
|
1331
|
+
export interface ConnectedAppConnection {
|
|
1332
|
+
id: string;
|
|
1333
|
+
created_at: string;
|
|
1334
|
+
updated_at: string;
|
|
1335
|
+
deleted_at?: string | null;
|
|
1336
|
+
active: boolean;
|
|
1337
|
+
type: ConnectedAppType;
|
|
1338
|
+
status: ConnectedAppConnectionStatus;
|
|
1339
|
+
}
|
|
1340
|
+
export interface ConnectedAppLink {
|
|
1341
|
+
title: string;
|
|
1342
|
+
href: string;
|
|
1343
|
+
}
|
|
1344
|
+
export interface ConnectedApp {
|
|
1345
|
+
id: string;
|
|
1346
|
+
created_at: string;
|
|
1347
|
+
updated_at: string;
|
|
1348
|
+
deleted_at?: string | null;
|
|
1349
|
+
type: ConnectedAppType;
|
|
1350
|
+
name: string;
|
|
1351
|
+
description: string;
|
|
1352
|
+
link?: ConnectedAppLink;
|
|
1353
|
+
}
|
|
1354
|
+
export interface TenantConnectedApp {
|
|
1355
|
+
id: string;
|
|
1356
|
+
created_at: string;
|
|
1357
|
+
updated_at: string;
|
|
1358
|
+
deleted_at?: string | null;
|
|
1359
|
+
type: ConnectedAppType;
|
|
1360
|
+
name: string;
|
|
1361
|
+
description: string;
|
|
1362
|
+
link?: ConnectedAppLink;
|
|
1363
|
+
connections: Array<ConnectedAppConnection>;
|
|
1364
|
+
}
|
|
1365
|
+
export interface CreateSlackConnectedAppConnectionRequestBody {
|
|
1366
|
+
code: string;
|
|
1367
|
+
}
|
|
1368
|
+
export type CreateConnectedAppConnectionRequestBody = CreateSlackConnectedAppConnectionRequestBody;
|
|
1321
1369
|
export interface TenantInvitationRequestBody {
|
|
1322
1370
|
name: string;
|
|
1323
1371
|
email: string;
|
|
@@ -1587,6 +1635,10 @@ declare class ParraAPI {
|
|
|
1587
1635
|
deleteApiKeyForTenantById: (tenant_id: string, api_key_id: string) => Promise<Response>;
|
|
1588
1636
|
createApiKeyForTenantById: (tenant_id: string, body: CreateApiKeyRequestBody) => Promise<ApiKeyWithSecretResponse>;
|
|
1589
1637
|
getApiKeysForTenantById: (tenant_id: string) => Promise<ApiKeyCollectionResponse>;
|
|
1638
|
+
listConnectedAppsForTenantById: (tenant_id: string, query?: {
|
|
1639
|
+
include?: string;
|
|
1640
|
+
}) => Promise<Array<TenantConnectedApp>>;
|
|
1641
|
+
createConnectionForConnectedApp: (tenant_id: string, connected_app_id: string, body?: CreateConnectedAppConnectionRequestBody) => Promise<ConnectedAppConnection>;
|
|
1590
1642
|
getInvitationsForTenantById: (tenant_id: string) => Promise<Array<TenantInvitation>>;
|
|
1591
1643
|
createInvitationForTenantById: (tenant_id: string, body: TenantInvitationRequestBody) => Promise<TenantInvitation>;
|
|
1592
1644
|
getTeamMembersForTenantById: (tenant_id: string) => Promise<Array<TeamMember>>;
|
package/dist/ParraAPI.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ApnsPushType = exports.ApnsEnvironment = exports.ChannelType = exports.ApplicationType = exports.AppVersionStatus = exports.TicketDisplayStatus = exports.UserNoteStatus = exports.ReleaseType = exports.ReleaseStatus = exports.TicketPriority = exports.TicketStatus = exports.TicketType = exports.TemplateType = exports.CampaignStatus = exports.CampaignActionDisplayType = exports.CampaignActionType = exports.FormIntegrationType = exports.CardItemDisplayType = exports.CardItemType = exports.QuestionKind = exports.QuestionType = exports.FeedbackFormFieldType = exports.SubscriptionStatus = exports.Currency = exports.Interval = void 0;
|
|
3
|
+
exports.ConnectedAppConnectionStatus = exports.ConnectedAppType = exports.ApnsPushType = exports.ApnsEnvironment = exports.ChannelType = exports.ApplicationType = exports.AppVersionStatus = exports.TicketDisplayStatus = exports.UserNoteStatus = exports.ReleaseType = exports.ReleaseStatus = exports.TicketPriority = exports.TicketStatus = exports.TicketType = exports.TemplateType = exports.CampaignStatus = exports.CampaignActionDisplayType = exports.CampaignActionType = exports.FormIntegrationType = exports.CardItemDisplayType = exports.CardItemType = exports.QuestionKind = exports.QuestionType = exports.FeedbackFormFieldType = exports.SubscriptionStatus = exports.Currency = exports.Interval = void 0;
|
|
4
4
|
var Interval;
|
|
5
5
|
(function (Interval) {
|
|
6
6
|
Interval["monthly"] = "monthly";
|
|
@@ -168,6 +168,18 @@ var ApnsPushType;
|
|
|
168
168
|
ApnsPushType["voip"] = "voip";
|
|
169
169
|
ApnsPushType["mdm"] = "mdm";
|
|
170
170
|
})(ApnsPushType || (exports.ApnsPushType = ApnsPushType = {}));
|
|
171
|
+
var ConnectedAppType;
|
|
172
|
+
(function (ConnectedAppType) {
|
|
173
|
+
ConnectedAppType["appStoreConnect"] = "app-store-connect";
|
|
174
|
+
ConnectedAppType["slack"] = "slack";
|
|
175
|
+
ConnectedAppType["x"] = "x";
|
|
176
|
+
})(ConnectedAppType || (exports.ConnectedAppType = ConnectedAppType = {}));
|
|
177
|
+
var ConnectedAppConnectionStatus;
|
|
178
|
+
(function (ConnectedAppConnectionStatus) {
|
|
179
|
+
ConnectedAppConnectionStatus["pending"] = "pending";
|
|
180
|
+
ConnectedAppConnectionStatus["live"] = "live";
|
|
181
|
+
ConnectedAppConnectionStatus["error"] = "error";
|
|
182
|
+
})(ConnectedAppConnectionStatus || (exports.ConnectedAppConnectionStatus = ConnectedAppConnectionStatus = {}));
|
|
171
183
|
var ParraAPI = /** @class */ (function () {
|
|
172
184
|
function ParraAPI(http, options) {
|
|
173
185
|
var _this = this;
|
|
@@ -818,6 +830,21 @@ var ParraAPI = /** @class */ (function () {
|
|
|
818
830
|
method: "get",
|
|
819
831
|
});
|
|
820
832
|
};
|
|
833
|
+
this.listConnectedAppsForTenantById = function (tenant_id, query) {
|
|
834
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/connected-apps"), {
|
|
835
|
+
method: "get",
|
|
836
|
+
query: query,
|
|
837
|
+
});
|
|
838
|
+
};
|
|
839
|
+
this.createConnectionForConnectedApp = function (tenant_id, connected_app_id, body) {
|
|
840
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/connected-apps/").concat(connected_app_id, "/connections"), {
|
|
841
|
+
method: "post",
|
|
842
|
+
body: JSON.stringify(body),
|
|
843
|
+
headers: {
|
|
844
|
+
"content-type": "application/json",
|
|
845
|
+
},
|
|
846
|
+
});
|
|
847
|
+
};
|
|
821
848
|
this.getInvitationsForTenantById = function (tenant_id) {
|
|
822
849
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/invitations"), {
|
|
823
850
|
method: "get",
|