@parra/parra-js-sdk 0.3.156 → 0.3.158
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 +8 -1
- package/dist/ParraAPI.js +12 -2
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -1497,6 +1497,11 @@ export interface UpdateChannelRequestBody {
|
|
|
1497
1497
|
export interface CreateExternalDomainRequestBody {
|
|
1498
1498
|
domain: string;
|
|
1499
1499
|
}
|
|
1500
|
+
export declare enum DnsRecordStatus {
|
|
1501
|
+
setup = "setup",
|
|
1502
|
+
pending = "pending",
|
|
1503
|
+
failed = "failed"
|
|
1504
|
+
}
|
|
1500
1505
|
export declare enum DnsRecordType {
|
|
1501
1506
|
a = "A",
|
|
1502
1507
|
cname = "CNAME",
|
|
@@ -1507,6 +1512,7 @@ export interface ExternalDomainDnsRecord {
|
|
|
1507
1512
|
created_at: string;
|
|
1508
1513
|
updated_at: string;
|
|
1509
1514
|
deleted_at?: string | null;
|
|
1515
|
+
status: DnsRecordStatus;
|
|
1510
1516
|
type: DnsRecordType;
|
|
1511
1517
|
value: string;
|
|
1512
1518
|
ttl?: number | null;
|
|
@@ -1521,7 +1527,7 @@ export interface ExternalDomainDnsRecord {
|
|
|
1521
1527
|
export declare enum DomainStatus {
|
|
1522
1528
|
setup = "setup",
|
|
1523
1529
|
pending = "pending",
|
|
1524
|
-
|
|
1530
|
+
failed = "failed",
|
|
1525
1531
|
disabled = "disabled"
|
|
1526
1532
|
}
|
|
1527
1533
|
export interface ExternalDomainData {
|
|
@@ -2490,6 +2496,7 @@ declare class ParraAPI {
|
|
|
2490
2496
|
getExternalDomainByIdForTenantById: (tenant_id: string, external_domain_id: string, options?: Options) => Promise<ExternalDomain>;
|
|
2491
2497
|
updateExternalDomainByIdForTenantById: (tenant_id: string, external_domain_id: string, body?: UpdateExternalDomainRequestBody, options?: Options) => Promise<ExternalDomain>;
|
|
2492
2498
|
deleteExternalDomainByIdForTenantById: (tenant_id: string, external_domain_id: string, options?: Options) => Promise<Response>;
|
|
2499
|
+
verifyDnsRecordsForExternalDomainByIdForTenantById: (tenant_id: string, external_domain_id: string, options?: Options) => Promise<ExternalDomain>;
|
|
2493
2500
|
checkSubdomainAvailability: (body: SubdomainAvailabilityRequestBody, options?: Options) => Promise<SubdomainAvailabilityResponse>;
|
|
2494
2501
|
loginUserForTenant: (tenant_id: string, options?: Options) => Promise<TenantUserInfo>;
|
|
2495
2502
|
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.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;
|
|
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.DnsRecordStatus = 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,12 @@ var ApnsPushType;
|
|
|
187
187
|
ApnsPushType["voip"] = "voip";
|
|
188
188
|
ApnsPushType["mdm"] = "mdm";
|
|
189
189
|
})(ApnsPushType || (exports.ApnsPushType = ApnsPushType = {}));
|
|
190
|
+
var DnsRecordStatus;
|
|
191
|
+
(function (DnsRecordStatus) {
|
|
192
|
+
DnsRecordStatus["setup"] = "setup";
|
|
193
|
+
DnsRecordStatus["pending"] = "pending";
|
|
194
|
+
DnsRecordStatus["failed"] = "failed";
|
|
195
|
+
})(DnsRecordStatus || (exports.DnsRecordStatus = DnsRecordStatus = {}));
|
|
190
196
|
var DnsRecordType;
|
|
191
197
|
(function (DnsRecordType) {
|
|
192
198
|
DnsRecordType["a"] = "A";
|
|
@@ -197,7 +203,7 @@ var DomainStatus;
|
|
|
197
203
|
(function (DomainStatus) {
|
|
198
204
|
DomainStatus["setup"] = "setup";
|
|
199
205
|
DomainStatus["pending"] = "pending";
|
|
200
|
-
DomainStatus["
|
|
206
|
+
DomainStatus["failed"] = "failed";
|
|
201
207
|
DomainStatus["disabled"] = "disabled";
|
|
202
208
|
})(DomainStatus || (exports.DomainStatus = DomainStatus = {}));
|
|
203
209
|
var PasswordlessStrategy;
|
|
@@ -807,6 +813,10 @@ var ParraAPI = /** @class */ (function () {
|
|
|
807
813
|
if (options === void 0) { options = {}; }
|
|
808
814
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/domains/external/").concat(external_domain_id), __assign({ method: "delete" }, options));
|
|
809
815
|
};
|
|
816
|
+
this.verifyDnsRecordsForExternalDomainByIdForTenantById = function (tenant_id, external_domain_id, options) {
|
|
817
|
+
if (options === void 0) { options = {}; }
|
|
818
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/domains/external/").concat(external_domain_id, "/dns-records/verify"), __assign({ method: "post" }, options));
|
|
819
|
+
};
|
|
810
820
|
this.checkSubdomainAvailability = function (body, options) {
|
|
811
821
|
if (options === void 0) { options = {}; }
|
|
812
822
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/subdomains/availability"), __assign({ method: "post", body: JSON.stringify(body), headers: {
|