@parra/parra-js-sdk 0.3.211 → 0.3.213
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 +38 -2
- package/dist/ParraAPI.js +34 -1
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -1293,7 +1293,7 @@ export interface UpdateTicketRequestBody {
|
|
|
1293
1293
|
is_public?: boolean;
|
|
1294
1294
|
estimated_start_date?: string | null;
|
|
1295
1295
|
estimated_completion_date?: string | null;
|
|
1296
|
-
icon?: TicketIcon;
|
|
1296
|
+
icon?: TicketIcon | null;
|
|
1297
1297
|
is_featured?: boolean;
|
|
1298
1298
|
featured_title?: string | null;
|
|
1299
1299
|
featured_description?: string | null;
|
|
@@ -1311,7 +1311,7 @@ export interface BulkUpdateTicketsRequestBody {
|
|
|
1311
1311
|
is_public?: boolean;
|
|
1312
1312
|
estimated_start_date?: string | null;
|
|
1313
1313
|
estimated_completion_date?: string | null;
|
|
1314
|
-
icon?: TicketIcon;
|
|
1314
|
+
icon?: TicketIcon | null;
|
|
1315
1315
|
is_featured?: boolean;
|
|
1316
1316
|
featured_title?: string | null;
|
|
1317
1317
|
featured_description?: string | null;
|
|
@@ -1925,6 +1925,30 @@ export interface Application {
|
|
|
1925
1925
|
icon?: ImageAssetStub | null;
|
|
1926
1926
|
ios?: ApplicationIosConfig | null;
|
|
1927
1927
|
}
|
|
1928
|
+
export declare enum DashboardChecklistItemType {
|
|
1929
|
+
createApplication = "create_application",
|
|
1930
|
+
uploadTenantLogo = "upload_tenant_logo",
|
|
1931
|
+
connectAppStoreConnect = "connect_app_store_connect",
|
|
1932
|
+
setupExternalDomain = "setup_external_domain",
|
|
1933
|
+
setupEmail = "setup_email",
|
|
1934
|
+
setupSms = "setup_sms"
|
|
1935
|
+
}
|
|
1936
|
+
export declare enum DashboardChecklistItemStatus {
|
|
1937
|
+
pending = "pending",
|
|
1938
|
+
skipped = "skipped",
|
|
1939
|
+
completed = "completed"
|
|
1940
|
+
}
|
|
1941
|
+
export interface DashboardChecklistItem {
|
|
1942
|
+
id: string;
|
|
1943
|
+
created_at: string;
|
|
1944
|
+
updated_at: string;
|
|
1945
|
+
deleted_at?: string | null;
|
|
1946
|
+
tenant_id: string;
|
|
1947
|
+
name: string;
|
|
1948
|
+
description?: string | null;
|
|
1949
|
+
type: DashboardChecklistItemType;
|
|
1950
|
+
status: DashboardChecklistItemStatus;
|
|
1951
|
+
}
|
|
1928
1952
|
export interface CreateApplicationRequestBody {
|
|
1929
1953
|
context?: string | null;
|
|
1930
1954
|
name: string;
|
|
@@ -2929,6 +2953,16 @@ declare class ParraAPI {
|
|
|
2929
2953
|
deleteClientForTenantApplication: (tenant_id: string, application_id: string, options?: Options) => Promise<Response>;
|
|
2930
2954
|
listAppStoreConnectAppsForTenantById: (tenant_id: string, options?: Options) => Promise<Array<AppStoreConnectApp>>;
|
|
2931
2955
|
importAppStoreConnectAppForTenantById: (tenant_id: string, app_store_connect_app_id: string, options?: Options) => Promise<Application>;
|
|
2956
|
+
listDashboardChecklistItemsForTenantById: (tenant_id: string, query?: {
|
|
2957
|
+
$select?: string;
|
|
2958
|
+
$top?: number;
|
|
2959
|
+
$skip?: number;
|
|
2960
|
+
$orderby?: string;
|
|
2961
|
+
$filter?: string;
|
|
2962
|
+
$expand?: string;
|
|
2963
|
+
$search?: string;
|
|
2964
|
+
}, options?: Options) => Promise<Array<DashboardChecklistItem>>;
|
|
2965
|
+
deleteDashboardChecklistItemForTenantById: (tenant_id: string, dashboard_checklist_item_id: string, options?: Options) => Promise<Response>;
|
|
2932
2966
|
createApplicationForTenantById: (tenant_id: string, body: CreateApplicationRequestBody, options?: Options) => Promise<Application>;
|
|
2933
2967
|
paginateApplicationsForTenantById: (tenant_id: string, query?: {
|
|
2934
2968
|
$select?: string;
|
|
@@ -2973,6 +3007,8 @@ declare class ParraAPI {
|
|
|
2973
3007
|
}, options?: Options) => Promise<TenantUser>;
|
|
2974
3008
|
updateUserForTenantById: (tenant_id: string, user_id: string, body?: UpdateTenantUserRequestBody, options?: Options) => Promise<TenantUser>;
|
|
2975
3009
|
deleteUserForTenantById: (tenant_id: string, user_id: string, options?: Options) => Promise<Response>;
|
|
3010
|
+
updateAvatarForTenantUserById: (tenant_id: string, user_id: string, body: ImageAssetStub, options?: Options) => Promise<Response>;
|
|
3011
|
+
deleteAvatarForTenantUserById: (tenant_id: string, user_id: string, options?: Options) => Promise<Response>;
|
|
2976
3012
|
createUserForTenantById: (tenant_id: string, body?: CreateTenantUserRequestBody, options?: Options) => Promise<TenantUser>;
|
|
2977
3013
|
paginateTenantUsersForTenantById: (tenant_id: string, query?: {
|
|
2978
3014
|
$select?: string;
|
package/dist/ParraAPI.js
CHANGED
|
@@ -11,7 +11,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.PolicyDocumentVersionStatus = exports.PolicyDocumentStatus = exports.MailTemplateStatus = exports.MailTemplateVersionStatus = exports.MailTemplateType = exports.IntegrationScope = exports.IntegrationConnectionStatus = exports.IntegrationType = exports.ConnectedAppConnectionStatus = exports.ConnectedAppType = exports.TenantOnboardingGoal = exports.RefreshTokenRotationType = exports.RefreshTokenExpirationType = exports.JwtAlgorithm = exports.GrantType = exports.PasswordlessStrategy = exports.ApnsPushType = exports.ApnsEnvironment = exports.ChannelType = exports.AppVersionStatus = exports.TicketDisplayStatus = exports.UserNoteStatus = exports.TemplateType = exports.CampaignStatus = exports.CampaignActionDisplayType = exports.CampaignActionType = exports.CardItemDisplayType = exports.CardItemType = exports.QuestionKind = exports.QuestionType = exports.FeedbackFormFieldType = exports.SubscriptionStatus = exports.Currency = exports.Interval = exports.IdentityType = exports.PolicyDocumentType = exports.DomainStatus = exports.DomainType = exports.ApplicationType = exports.ReleaseType = exports.ReleaseStatus = exports.TicketIconType = exports.TicketPriority = exports.TicketStatus = exports.TicketType = void 0;
|
|
14
|
+
exports.PolicyDocumentVersionStatus = exports.PolicyDocumentStatus = exports.MailTemplateStatus = exports.MailTemplateVersionStatus = exports.MailTemplateType = exports.IntegrationScope = exports.IntegrationConnectionStatus = exports.IntegrationType = exports.ConnectedAppConnectionStatus = exports.ConnectedAppType = exports.TenantOnboardingGoal = exports.DashboardChecklistItemStatus = exports.DashboardChecklistItemType = exports.RefreshTokenRotationType = exports.RefreshTokenExpirationType = exports.JwtAlgorithm = exports.GrantType = exports.PasswordlessStrategy = exports.ApnsPushType = exports.ApnsEnvironment = exports.ChannelType = exports.AppVersionStatus = exports.TicketDisplayStatus = exports.UserNoteStatus = exports.TemplateType = exports.CampaignStatus = exports.CampaignActionDisplayType = exports.CampaignActionType = exports.CardItemDisplayType = exports.CardItemType = exports.QuestionKind = exports.QuestionType = exports.FeedbackFormFieldType = exports.SubscriptionStatus = exports.Currency = exports.Interval = exports.IdentityType = exports.PolicyDocumentType = exports.DomainStatus = exports.DomainType = exports.ApplicationType = exports.ReleaseType = exports.ReleaseStatus = exports.TicketIconType = exports.TicketPriority = exports.TicketStatus = exports.TicketType = void 0;
|
|
15
15
|
var TicketType;
|
|
16
16
|
(function (TicketType) {
|
|
17
17
|
TicketType["bug"] = "bug";
|
|
@@ -236,6 +236,21 @@ var RefreshTokenRotationType;
|
|
|
236
236
|
RefreshTokenRotationType["none"] = "none";
|
|
237
237
|
RefreshTokenRotationType["rotating"] = "rotating";
|
|
238
238
|
})(RefreshTokenRotationType || (exports.RefreshTokenRotationType = RefreshTokenRotationType = {}));
|
|
239
|
+
var DashboardChecklistItemType;
|
|
240
|
+
(function (DashboardChecklistItemType) {
|
|
241
|
+
DashboardChecklistItemType["createApplication"] = "create_application";
|
|
242
|
+
DashboardChecklistItemType["uploadTenantLogo"] = "upload_tenant_logo";
|
|
243
|
+
DashboardChecklistItemType["connectAppStoreConnect"] = "connect_app_store_connect";
|
|
244
|
+
DashboardChecklistItemType["setupExternalDomain"] = "setup_external_domain";
|
|
245
|
+
DashboardChecklistItemType["setupEmail"] = "setup_email";
|
|
246
|
+
DashboardChecklistItemType["setupSms"] = "setup_sms";
|
|
247
|
+
})(DashboardChecklistItemType || (exports.DashboardChecklistItemType = DashboardChecklistItemType = {}));
|
|
248
|
+
var DashboardChecklistItemStatus;
|
|
249
|
+
(function (DashboardChecklistItemStatus) {
|
|
250
|
+
DashboardChecklistItemStatus["pending"] = "pending";
|
|
251
|
+
DashboardChecklistItemStatus["skipped"] = "skipped";
|
|
252
|
+
DashboardChecklistItemStatus["completed"] = "completed";
|
|
253
|
+
})(DashboardChecklistItemStatus || (exports.DashboardChecklistItemStatus = DashboardChecklistItemStatus = {}));
|
|
239
254
|
var TenantOnboardingGoal;
|
|
240
255
|
(function (TenantOnboardingGoal) {
|
|
241
256
|
TenantOnboardingGoal["newProject"] = "new_project";
|
|
@@ -923,6 +938,14 @@ var ParraAPI = /** @class */ (function () {
|
|
|
923
938
|
if (options === void 0) { options = {}; }
|
|
924
939
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/app-store-connect-api/apps/").concat(app_store_connect_app_id, "/import"), __assign({ method: "post" }, options));
|
|
925
940
|
};
|
|
941
|
+
this.listDashboardChecklistItemsForTenantById = function (tenant_id, query, options) {
|
|
942
|
+
if (options === void 0) { options = {}; }
|
|
943
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/dashboard/checklist/items"), __assign({ method: "get", query: query }, options));
|
|
944
|
+
};
|
|
945
|
+
this.deleteDashboardChecklistItemForTenantById = function (tenant_id, dashboard_checklist_item_id, options) {
|
|
946
|
+
if (options === void 0) { options = {}; }
|
|
947
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/dashboard/checklist/items/").concat(dashboard_checklist_item_id), __assign({ method: "delete" }, options));
|
|
948
|
+
};
|
|
926
949
|
this.createApplicationForTenantById = function (tenant_id, body, options) {
|
|
927
950
|
if (options === void 0) { options = {}; }
|
|
928
951
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications"), __assign({ method: "post", body: JSON.stringify(body), headers: {
|
|
@@ -1047,6 +1070,16 @@ var ParraAPI = /** @class */ (function () {
|
|
|
1047
1070
|
if (options === void 0) { options = {}; }
|
|
1048
1071
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id), __assign({ method: "delete" }, options));
|
|
1049
1072
|
};
|
|
1073
|
+
this.updateAvatarForTenantUserById = function (tenant_id, user_id, body, options) {
|
|
1074
|
+
if (options === void 0) { options = {}; }
|
|
1075
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/avatar"), __assign({ method: "put", body: JSON.stringify(body), headers: {
|
|
1076
|
+
"content-type": "application/json",
|
|
1077
|
+
}, raw: true }, options));
|
|
1078
|
+
};
|
|
1079
|
+
this.deleteAvatarForTenantUserById = function (tenant_id, user_id, options) {
|
|
1080
|
+
if (options === void 0) { options = {}; }
|
|
1081
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/avatar"), __assign({ method: "delete" }, options));
|
|
1082
|
+
};
|
|
1050
1083
|
this.createUserForTenantById = function (tenant_id, body, options) {
|
|
1051
1084
|
if (options === void 0) { options = {}; }
|
|
1052
1085
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users"), __assign({ method: "post", body: JSON.stringify(body), headers: {
|