@parra/parra-js-sdk 0.3.153 → 0.3.154
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 +31 -11
- package/dist/ParraAPI.js +28 -8
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -1494,6 +1494,33 @@ export interface UpdateChannelRequestBody {
|
|
|
1494
1494
|
apns?: UpdateApnsChannelRequestBody;
|
|
1495
1495
|
inbox?: UpdateInboxChannelRequestBody;
|
|
1496
1496
|
}
|
|
1497
|
+
export interface CreateExternalDomainRequestBody {
|
|
1498
|
+
domain: string;
|
|
1499
|
+
}
|
|
1500
|
+
export declare enum DomainStatus {
|
|
1501
|
+
setup = "setup",
|
|
1502
|
+
pending = "pending",
|
|
1503
|
+
error = "error",
|
|
1504
|
+
disabled = "disabled"
|
|
1505
|
+
}
|
|
1506
|
+
export interface ExternalDomainData {
|
|
1507
|
+
status: DomainStatus;
|
|
1508
|
+
domain: string;
|
|
1509
|
+
disabled: boolean;
|
|
1510
|
+
}
|
|
1511
|
+
export interface ExternalDomain {
|
|
1512
|
+
id: string;
|
|
1513
|
+
created_at: string;
|
|
1514
|
+
updated_at: string;
|
|
1515
|
+
deleted_at?: string | null;
|
|
1516
|
+
status: DomainStatus;
|
|
1517
|
+
domain: string;
|
|
1518
|
+
disabled: boolean;
|
|
1519
|
+
}
|
|
1520
|
+
export interface UpdateExternalDomainRequestBody {
|
|
1521
|
+
domain?: string;
|
|
1522
|
+
disabled?: boolean;
|
|
1523
|
+
}
|
|
1497
1524
|
export interface SubdomainAvailabilityRequestBody {
|
|
1498
1525
|
subdomain: string;
|
|
1499
1526
|
}
|
|
@@ -1764,17 +1791,6 @@ export declare enum DomainType {
|
|
|
1764
1791
|
subdomain = "subdomain",
|
|
1765
1792
|
fallback = "fallback"
|
|
1766
1793
|
}
|
|
1767
|
-
export declare enum DomainStatus {
|
|
1768
|
-
setup = "setup",
|
|
1769
|
-
pending = "pending",
|
|
1770
|
-
error = "error",
|
|
1771
|
-
disabled = "disabled"
|
|
1772
|
-
}
|
|
1773
|
-
export interface ExternalDomainData {
|
|
1774
|
-
status: DomainStatus;
|
|
1775
|
-
domain: string;
|
|
1776
|
-
disabled: boolean;
|
|
1777
|
-
}
|
|
1778
1794
|
export type DomainData = ExternalDomainData;
|
|
1779
1795
|
export interface Domain {
|
|
1780
1796
|
id: string;
|
|
@@ -2448,6 +2464,10 @@ declare class ParraAPI {
|
|
|
2448
2464
|
createChannelForNotificationTemplate: (tenant_id: string, notification_template_id: string, body: CreateChannelRequestBody, options?: Options) => Promise<Channel>;
|
|
2449
2465
|
updateChannelForNotificationTemplate: (tenant_id: string, notification_template_id: string, channel_id: string, body: UpdateChannelRequestBody, options?: Options) => Promise<Channel>;
|
|
2450
2466
|
deleteChannelForNotificationTemplate: (tenant_id: string, notification_template_id: string, channel_id: string, options?: Options) => Promise<Response>;
|
|
2467
|
+
createExternalDomainForTenantById: (tenant_id: string, body: CreateExternalDomainRequestBody, options?: Options) => Promise<ExternalDomain>;
|
|
2468
|
+
getExternalDomainByIdForTenantById: (tenant_id: string, external_domain_id: string, options?: Options) => Promise<ExternalDomain>;
|
|
2469
|
+
updateExternalDomainByIdForTenantById: (tenant_id: string, external_domain_id: string, body?: UpdateExternalDomainRequestBody, options?: Options) => Promise<ExternalDomain>;
|
|
2470
|
+
deleteExternalDomainByIdForTenantById: (tenant_id: string, external_domain_id: string, options?: Options) => Promise<Response>;
|
|
2451
2471
|
checkSubdomainAvailability: (body: SubdomainAvailabilityRequestBody, options?: Options) => Promise<SubdomainAvailabilityResponse>;
|
|
2452
2472
|
loginUserForTenant: (tenant_id: string, options?: Options) => Promise<TenantUserInfo>;
|
|
2453
2473
|
getTenantUserInfo: (tenant_id: string, options?: Options) => Promise<TenantUserInfo>;
|
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.IntegrationScope = exports.IntegrationConnectionStatus = exports.IntegrationType = exports.ConnectedAppConnectionStatus = exports.ConnectedAppType = exports.
|
|
14
|
+
exports.PolicyDocumentVersionStatus = exports.PolicyDocumentStatus = exports.IntegrationScope = exports.IntegrationConnectionStatus = exports.IntegrationType = exports.ConnectedAppConnectionStatus = exports.ConnectedAppType = exports.DomainType = exports.TenantOnboardingGoal = exports.ApplicationType = exports.RefreshTokenRotationType = exports.RefreshTokenExpirationType = exports.JwtAlgorithm = exports.GrantType = exports.PasswordlessStrategy = exports.DomainStatus = 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.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";
|
|
@@ -187,6 +187,13 @@ var ApnsPushType;
|
|
|
187
187
|
ApnsPushType["voip"] = "voip";
|
|
188
188
|
ApnsPushType["mdm"] = "mdm";
|
|
189
189
|
})(ApnsPushType || (exports.ApnsPushType = ApnsPushType = {}));
|
|
190
|
+
var DomainStatus;
|
|
191
|
+
(function (DomainStatus) {
|
|
192
|
+
DomainStatus["setup"] = "setup";
|
|
193
|
+
DomainStatus["pending"] = "pending";
|
|
194
|
+
DomainStatus["error"] = "error";
|
|
195
|
+
DomainStatus["disabled"] = "disabled";
|
|
196
|
+
})(DomainStatus || (exports.DomainStatus = DomainStatus = {}));
|
|
190
197
|
var PasswordlessStrategy;
|
|
191
198
|
(function (PasswordlessStrategy) {
|
|
192
199
|
PasswordlessStrategy["email"] = "email";
|
|
@@ -233,13 +240,6 @@ var DomainType;
|
|
|
233
240
|
DomainType["subdomain"] = "subdomain";
|
|
234
241
|
DomainType["fallback"] = "fallback";
|
|
235
242
|
})(DomainType || (exports.DomainType = DomainType = {}));
|
|
236
|
-
var DomainStatus;
|
|
237
|
-
(function (DomainStatus) {
|
|
238
|
-
DomainStatus["setup"] = "setup";
|
|
239
|
-
DomainStatus["pending"] = "pending";
|
|
240
|
-
DomainStatus["error"] = "error";
|
|
241
|
-
DomainStatus["disabled"] = "disabled";
|
|
242
|
-
})(DomainStatus || (exports.DomainStatus = DomainStatus = {}));
|
|
243
243
|
var ConnectedAppType;
|
|
244
244
|
(function (ConnectedAppType) {
|
|
245
245
|
ConnectedAppType["parra"] = "parra";
|
|
@@ -781,6 +781,26 @@ var ParraAPI = /** @class */ (function () {
|
|
|
781
781
|
if (options === void 0) { options = {}; }
|
|
782
782
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/templates/").concat(notification_template_id, "/channels/").concat(channel_id), __assign({ method: "delete" }, options));
|
|
783
783
|
};
|
|
784
|
+
this.createExternalDomainForTenantById = function (tenant_id, body, options) {
|
|
785
|
+
if (options === void 0) { options = {}; }
|
|
786
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/domains/external"), __assign({ method: "post", body: JSON.stringify(body), headers: {
|
|
787
|
+
"content-type": "application/json",
|
|
788
|
+
} }, options));
|
|
789
|
+
};
|
|
790
|
+
this.getExternalDomainByIdForTenantById = function (tenant_id, external_domain_id, options) {
|
|
791
|
+
if (options === void 0) { options = {}; }
|
|
792
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/domains/external/").concat(external_domain_id), __assign({ method: "get" }, options));
|
|
793
|
+
};
|
|
794
|
+
this.updateExternalDomainByIdForTenantById = function (tenant_id, external_domain_id, body, options) {
|
|
795
|
+
if (options === void 0) { options = {}; }
|
|
796
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/domains/external/").concat(external_domain_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
|
|
797
|
+
"content-type": "application/json",
|
|
798
|
+
} }, options));
|
|
799
|
+
};
|
|
800
|
+
this.deleteExternalDomainByIdForTenantById = function (tenant_id, external_domain_id, options) {
|
|
801
|
+
if (options === void 0) { options = {}; }
|
|
802
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/domains/external/").concat(external_domain_id), __assign({ method: "delete" }, options));
|
|
803
|
+
};
|
|
784
804
|
this.checkSubdomainAvailability = function (body, options) {
|
|
785
805
|
if (options === void 0) { options = {}; }
|
|
786
806
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/subdomains/availability"), __assign({ method: "post", body: JSON.stringify(body), headers: {
|