@parra/parra-js-sdk 0.3.166 → 0.3.168
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 +1 -30
- package/dist/ParraAPI.js +3 -16
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -1549,34 +1549,6 @@ export interface UpdateChannelRequestBody {
|
|
|
1549
1549
|
export interface CreateExternalDomainRequestBody {
|
|
1550
1550
|
domain: string;
|
|
1551
1551
|
}
|
|
1552
|
-
export declare enum DnsRecordStatus {
|
|
1553
|
-
active = "active",
|
|
1554
|
-
pending = "pending",
|
|
1555
|
-
error = "error",
|
|
1556
|
-
deleted = "deleted"
|
|
1557
|
-
}
|
|
1558
|
-
export declare enum DnsRecordType {
|
|
1559
|
-
a = "A",
|
|
1560
|
-
cname = "CNAME",
|
|
1561
|
-
txt = "TXT"
|
|
1562
|
-
}
|
|
1563
|
-
export interface ExternalDomainDnsRecord {
|
|
1564
|
-
id: string;
|
|
1565
|
-
created_at: string;
|
|
1566
|
-
updated_at: string;
|
|
1567
|
-
deleted_at?: string | null;
|
|
1568
|
-
status: DnsRecordStatus;
|
|
1569
|
-
type: DnsRecordType;
|
|
1570
|
-
value: string;
|
|
1571
|
-
ttl?: number | null;
|
|
1572
|
-
priority?: number | null;
|
|
1573
|
-
weight?: number | null;
|
|
1574
|
-
port?: number | null;
|
|
1575
|
-
target?: string | null;
|
|
1576
|
-
verified: boolean;
|
|
1577
|
-
verified_at?: string | null;
|
|
1578
|
-
required: boolean;
|
|
1579
|
-
}
|
|
1580
1552
|
export interface ExternalDomain {
|
|
1581
1553
|
id: string;
|
|
1582
1554
|
created_at: string;
|
|
@@ -1585,7 +1557,6 @@ export interface ExternalDomain {
|
|
|
1585
1557
|
status: DomainStatus;
|
|
1586
1558
|
domain: string;
|
|
1587
1559
|
disabled: boolean;
|
|
1588
|
-
dns_records: Array<ExternalDomainDnsRecord>;
|
|
1589
1560
|
}
|
|
1590
1561
|
export interface UpdateExternalDomainRequestBody {
|
|
1591
1562
|
domain?: string;
|
|
@@ -2656,7 +2627,7 @@ declare class ParraAPI {
|
|
|
2656
2627
|
getExternalDomainByIdForTenantById: (tenant_id: string, external_domain_id: string, options?: Options) => Promise<ExternalDomain>;
|
|
2657
2628
|
updateExternalDomainByIdForTenantById: (tenant_id: string, external_domain_id: string, body?: UpdateExternalDomainRequestBody, options?: Options) => Promise<ExternalDomain>;
|
|
2658
2629
|
deleteExternalDomainByIdForTenantById: (tenant_id: string, external_domain_id: string, options?: Options) => Promise<Response>;
|
|
2659
|
-
|
|
2630
|
+
checkExternalDomainByIdForTenantById: (tenant_id: string, external_domain_id: string, options?: Options) => Promise<ExternalDomain>;
|
|
2660
2631
|
checkSubdomainAvailability: (body: SubdomainAvailabilityRequestBody, options?: Options) => Promise<SubdomainAvailabilityResponse>;
|
|
2661
2632
|
loginUserForTenant: (tenant_id: string, options?: Options) => Promise<TenantUserInfo>;
|
|
2662
2633
|
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.TenantOnboardingGoal = exports.ApplicationType = exports.RefreshTokenRotationType = exports.RefreshTokenExpirationType = exports.JwtAlgorithm = exports.GrantType = exports.PasswordlessStrategy = exports.
|
|
14
|
+
exports.PolicyDocumentVersionStatus = exports.PolicyDocumentStatus = exports.IntegrationScope = exports.IntegrationConnectionStatus = exports.IntegrationType = exports.ConnectedAppConnectionStatus = exports.ConnectedAppType = 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.DomainStatus = exports.DomainType = 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";
|
|
@@ -202,19 +202,6 @@ var ApnsPushType;
|
|
|
202
202
|
ApnsPushType["voip"] = "voip";
|
|
203
203
|
ApnsPushType["mdm"] = "mdm";
|
|
204
204
|
})(ApnsPushType || (exports.ApnsPushType = ApnsPushType = {}));
|
|
205
|
-
var DnsRecordStatus;
|
|
206
|
-
(function (DnsRecordStatus) {
|
|
207
|
-
DnsRecordStatus["active"] = "active";
|
|
208
|
-
DnsRecordStatus["pending"] = "pending";
|
|
209
|
-
DnsRecordStatus["error"] = "error";
|
|
210
|
-
DnsRecordStatus["deleted"] = "deleted";
|
|
211
|
-
})(DnsRecordStatus || (exports.DnsRecordStatus = DnsRecordStatus = {}));
|
|
212
|
-
var DnsRecordType;
|
|
213
|
-
(function (DnsRecordType) {
|
|
214
|
-
DnsRecordType["a"] = "A";
|
|
215
|
-
DnsRecordType["cname"] = "CNAME";
|
|
216
|
-
DnsRecordType["txt"] = "TXT";
|
|
217
|
-
})(DnsRecordType || (exports.DnsRecordType = DnsRecordType = {}));
|
|
218
205
|
var PasswordlessStrategy;
|
|
219
206
|
(function (PasswordlessStrategy) {
|
|
220
207
|
PasswordlessStrategy["email"] = "email";
|
|
@@ -817,9 +804,9 @@ var ParraAPI = /** @class */ (function () {
|
|
|
817
804
|
if (options === void 0) { options = {}; }
|
|
818
805
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/domains/external/").concat(external_domain_id), __assign({ method: "delete" }, options));
|
|
819
806
|
};
|
|
820
|
-
this.
|
|
807
|
+
this.checkExternalDomainByIdForTenantById = function (tenant_id, external_domain_id, options) {
|
|
821
808
|
if (options === void 0) { options = {}; }
|
|
822
|
-
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/domains/external/").concat(external_domain_id, "/
|
|
809
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/domains/external/").concat(external_domain_id, "/check"), __assign({ method: "post" }, options));
|
|
823
810
|
};
|
|
824
811
|
this.checkSubdomainAvailability = function (body, options) {
|
|
825
812
|
if (options === void 0) { options = {}; }
|