@parra/parra-js-sdk 0.3.152 → 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 +33 -0
- package/dist/ParraAPI.js +28 -1
- 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,12 +1791,14 @@ export declare enum DomainType {
|
|
|
1764
1791
|
subdomain = "subdomain",
|
|
1765
1792
|
fallback = "fallback"
|
|
1766
1793
|
}
|
|
1794
|
+
export type DomainData = ExternalDomainData;
|
|
1767
1795
|
export interface Domain {
|
|
1768
1796
|
id: string;
|
|
1769
1797
|
type: DomainType;
|
|
1770
1798
|
name: string;
|
|
1771
1799
|
title: string;
|
|
1772
1800
|
url: string;
|
|
1801
|
+
data?: DomainData | null;
|
|
1773
1802
|
}
|
|
1774
1803
|
export interface Entitlement {
|
|
1775
1804
|
}
|
|
@@ -2435,6 +2464,10 @@ declare class ParraAPI {
|
|
|
2435
2464
|
createChannelForNotificationTemplate: (tenant_id: string, notification_template_id: string, body: CreateChannelRequestBody, options?: Options) => Promise<Channel>;
|
|
2436
2465
|
updateChannelForNotificationTemplate: (tenant_id: string, notification_template_id: string, channel_id: string, body: UpdateChannelRequestBody, options?: Options) => Promise<Channel>;
|
|
2437
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>;
|
|
2438
2471
|
checkSubdomainAvailability: (body: SubdomainAvailabilityRequestBody, options?: Options) => Promise<SubdomainAvailabilityResponse>;
|
|
2439
2472
|
loginUserForTenant: (tenant_id: string, options?: Options) => Promise<TenantUserInfo>;
|
|
2440
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.DomainType = exports.TenantOnboardingGoal = exports.ApplicationType = 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.ReleaseType = exports.ReleaseStatus = exports.TicketIconType = exports.TicketPriority = exports.TicketStatus = exports.TicketType = void 0;
|
|
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";
|
|
@@ -774,6 +781,26 @@ var ParraAPI = /** @class */ (function () {
|
|
|
774
781
|
if (options === void 0) { options = {}; }
|
|
775
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));
|
|
776
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
|
+
};
|
|
777
804
|
this.checkSubdomainAvailability = function (body, options) {
|
|
778
805
|
if (options === void 0) { options = {}; }
|
|
779
806
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/subdomains/availability"), __assign({ method: "post", body: JSON.stringify(body), headers: {
|