@parra/parra-js-sdk 0.3.153 → 0.3.155
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 +37 -11
- package/dist/ParraAPI.js +34 -8
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -1494,6 +1494,39 @@ 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 DnsRecordType {
|
|
1501
|
+
a = "A",
|
|
1502
|
+
cname = "CNAME",
|
|
1503
|
+
txt = "TXT"
|
|
1504
|
+
}
|
|
1505
|
+
export interface ExternalDomain {
|
|
1506
|
+
id: string;
|
|
1507
|
+
created_at: string;
|
|
1508
|
+
updated_at: string;
|
|
1509
|
+
deleted_at?: string | null;
|
|
1510
|
+
status: DomainStatus;
|
|
1511
|
+
domain: string;
|
|
1512
|
+
disabled: boolean;
|
|
1513
|
+
dns_records: Array<ExternalDomain>;
|
|
1514
|
+
}
|
|
1515
|
+
export declare enum DomainStatus {
|
|
1516
|
+
setup = "setup",
|
|
1517
|
+
pending = "pending",
|
|
1518
|
+
error = "error",
|
|
1519
|
+
disabled = "disabled"
|
|
1520
|
+
}
|
|
1521
|
+
export interface ExternalDomainData {
|
|
1522
|
+
status: DomainStatus;
|
|
1523
|
+
domain: string;
|
|
1524
|
+
disabled: boolean;
|
|
1525
|
+
}
|
|
1526
|
+
export interface UpdateExternalDomainRequestBody {
|
|
1527
|
+
domain?: string;
|
|
1528
|
+
disabled?: boolean;
|
|
1529
|
+
}
|
|
1497
1530
|
export interface SubdomainAvailabilityRequestBody {
|
|
1498
1531
|
subdomain: string;
|
|
1499
1532
|
}
|
|
@@ -1764,17 +1797,6 @@ export declare enum DomainType {
|
|
|
1764
1797
|
subdomain = "subdomain",
|
|
1765
1798
|
fallback = "fallback"
|
|
1766
1799
|
}
|
|
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
1800
|
export type DomainData = ExternalDomainData;
|
|
1779
1801
|
export interface Domain {
|
|
1780
1802
|
id: string;
|
|
@@ -2448,6 +2470,10 @@ declare class ParraAPI {
|
|
|
2448
2470
|
createChannelForNotificationTemplate: (tenant_id: string, notification_template_id: string, body: CreateChannelRequestBody, options?: Options) => Promise<Channel>;
|
|
2449
2471
|
updateChannelForNotificationTemplate: (tenant_id: string, notification_template_id: string, channel_id: string, body: UpdateChannelRequestBody, options?: Options) => Promise<Channel>;
|
|
2450
2472
|
deleteChannelForNotificationTemplate: (tenant_id: string, notification_template_id: string, channel_id: string, options?: Options) => Promise<Response>;
|
|
2473
|
+
createExternalDomainForTenantById: (tenant_id: string, body: CreateExternalDomainRequestBody, options?: Options) => Promise<ExternalDomain>;
|
|
2474
|
+
getExternalDomainByIdForTenantById: (tenant_id: string, external_domain_id: string, options?: Options) => Promise<ExternalDomain>;
|
|
2475
|
+
updateExternalDomainByIdForTenantById: (tenant_id: string, external_domain_id: string, body?: UpdateExternalDomainRequestBody, options?: Options) => Promise<ExternalDomain>;
|
|
2476
|
+
deleteExternalDomainByIdForTenantById: (tenant_id: string, external_domain_id: string, options?: Options) => Promise<Response>;
|
|
2451
2477
|
checkSubdomainAvailability: (body: SubdomainAvailabilityRequestBody, options?: Options) => Promise<SubdomainAvailabilityResponse>;
|
|
2452
2478
|
loginUserForTenant: (tenant_id: string, options?: Options) => Promise<TenantUserInfo>;
|
|
2453
2479
|
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.DnsRecordType = 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,19 @@ var ApnsPushType;
|
|
|
187
187
|
ApnsPushType["voip"] = "voip";
|
|
188
188
|
ApnsPushType["mdm"] = "mdm";
|
|
189
189
|
})(ApnsPushType || (exports.ApnsPushType = ApnsPushType = {}));
|
|
190
|
+
var DnsRecordType;
|
|
191
|
+
(function (DnsRecordType) {
|
|
192
|
+
DnsRecordType["a"] = "A";
|
|
193
|
+
DnsRecordType["cname"] = "CNAME";
|
|
194
|
+
DnsRecordType["txt"] = "TXT";
|
|
195
|
+
})(DnsRecordType || (exports.DnsRecordType = DnsRecordType = {}));
|
|
196
|
+
var DomainStatus;
|
|
197
|
+
(function (DomainStatus) {
|
|
198
|
+
DomainStatus["setup"] = "setup";
|
|
199
|
+
DomainStatus["pending"] = "pending";
|
|
200
|
+
DomainStatus["error"] = "error";
|
|
201
|
+
DomainStatus["disabled"] = "disabled";
|
|
202
|
+
})(DomainStatus || (exports.DomainStatus = DomainStatus = {}));
|
|
190
203
|
var PasswordlessStrategy;
|
|
191
204
|
(function (PasswordlessStrategy) {
|
|
192
205
|
PasswordlessStrategy["email"] = "email";
|
|
@@ -233,13 +246,6 @@ var DomainType;
|
|
|
233
246
|
DomainType["subdomain"] = "subdomain";
|
|
234
247
|
DomainType["fallback"] = "fallback";
|
|
235
248
|
})(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
249
|
var ConnectedAppType;
|
|
244
250
|
(function (ConnectedAppType) {
|
|
245
251
|
ConnectedAppType["parra"] = "parra";
|
|
@@ -781,6 +787,26 @@ var ParraAPI = /** @class */ (function () {
|
|
|
781
787
|
if (options === void 0) { options = {}; }
|
|
782
788
|
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
789
|
};
|
|
790
|
+
this.createExternalDomainForTenantById = function (tenant_id, body, options) {
|
|
791
|
+
if (options === void 0) { options = {}; }
|
|
792
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/domains/external"), __assign({ method: "post", body: JSON.stringify(body), headers: {
|
|
793
|
+
"content-type": "application/json",
|
|
794
|
+
} }, options));
|
|
795
|
+
};
|
|
796
|
+
this.getExternalDomainByIdForTenantById = function (tenant_id, external_domain_id, options) {
|
|
797
|
+
if (options === void 0) { options = {}; }
|
|
798
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/domains/external/").concat(external_domain_id), __assign({ method: "get" }, options));
|
|
799
|
+
};
|
|
800
|
+
this.updateExternalDomainByIdForTenantById = function (tenant_id, external_domain_id, body, 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: "put", body: JSON.stringify(body), headers: {
|
|
803
|
+
"content-type": "application/json",
|
|
804
|
+
} }, options));
|
|
805
|
+
};
|
|
806
|
+
this.deleteExternalDomainByIdForTenantById = function (tenant_id, external_domain_id, options) {
|
|
807
|
+
if (options === void 0) { options = {}; }
|
|
808
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/domains/external/").concat(external_domain_id), __assign({ method: "delete" }, options));
|
|
809
|
+
};
|
|
784
810
|
this.checkSubdomainAvailability = function (body, options) {
|
|
785
811
|
if (options === void 0) { options = {}; }
|
|
786
812
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/subdomains/availability"), __assign({ method: "post", body: JSON.stringify(body), headers: {
|