@parra/parra-js-sdk 0.3.155 → 0.3.157
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 +22 -5
- package/dist/ParraAPI.js +4 -0
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -1502,15 +1502,21 @@ export declare enum DnsRecordType {
|
|
|
1502
1502
|
cname = "CNAME",
|
|
1503
1503
|
txt = "TXT"
|
|
1504
1504
|
}
|
|
1505
|
-
export interface
|
|
1505
|
+
export interface ExternalDomainDnsRecord {
|
|
1506
1506
|
id: string;
|
|
1507
1507
|
created_at: string;
|
|
1508
1508
|
updated_at: string;
|
|
1509
1509
|
deleted_at?: string | null;
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1510
|
+
type: DnsRecordType;
|
|
1511
|
+
value: string;
|
|
1512
|
+
ttl?: number | null;
|
|
1513
|
+
priority?: number | null;
|
|
1514
|
+
weight?: number | null;
|
|
1515
|
+
port?: number | null;
|
|
1516
|
+
target?: string | null;
|
|
1517
|
+
verified: boolean;
|
|
1518
|
+
verified_at?: string | null;
|
|
1519
|
+
required: boolean;
|
|
1514
1520
|
}
|
|
1515
1521
|
export declare enum DomainStatus {
|
|
1516
1522
|
setup = "setup",
|
|
@@ -1523,6 +1529,16 @@ export interface ExternalDomainData {
|
|
|
1523
1529
|
domain: string;
|
|
1524
1530
|
disabled: boolean;
|
|
1525
1531
|
}
|
|
1532
|
+
export interface ExternalDomain {
|
|
1533
|
+
id: string;
|
|
1534
|
+
created_at: string;
|
|
1535
|
+
updated_at: string;
|
|
1536
|
+
deleted_at?: string | null;
|
|
1537
|
+
status: DomainStatus;
|
|
1538
|
+
domain: string;
|
|
1539
|
+
disabled: boolean;
|
|
1540
|
+
dns_records: Array<ExternalDomainDnsRecord>;
|
|
1541
|
+
}
|
|
1526
1542
|
export interface UpdateExternalDomainRequestBody {
|
|
1527
1543
|
domain?: string;
|
|
1528
1544
|
disabled?: boolean;
|
|
@@ -2474,6 +2490,7 @@ declare class ParraAPI {
|
|
|
2474
2490
|
getExternalDomainByIdForTenantById: (tenant_id: string, external_domain_id: string, options?: Options) => Promise<ExternalDomain>;
|
|
2475
2491
|
updateExternalDomainByIdForTenantById: (tenant_id: string, external_domain_id: string, body?: UpdateExternalDomainRequestBody, options?: Options) => Promise<ExternalDomain>;
|
|
2476
2492
|
deleteExternalDomainByIdForTenantById: (tenant_id: string, external_domain_id: string, options?: Options) => Promise<Response>;
|
|
2493
|
+
verifyDnsRecordsForExternalDomainByIdForTenantById: (tenant_id: string, external_domain_id: string, options?: Options) => Promise<ExternalDomain>;
|
|
2477
2494
|
checkSubdomainAvailability: (body: SubdomainAvailabilityRequestBody, options?: Options) => Promise<SubdomainAvailabilityResponse>;
|
|
2478
2495
|
loginUserForTenant: (tenant_id: string, options?: Options) => Promise<TenantUserInfo>;
|
|
2479
2496
|
getTenantUserInfo: (tenant_id: string, options?: Options) => Promise<TenantUserInfo>;
|
package/dist/ParraAPI.js
CHANGED
|
@@ -807,6 +807,10 @@ var ParraAPI = /** @class */ (function () {
|
|
|
807
807
|
if (options === void 0) { options = {}; }
|
|
808
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
809
|
};
|
|
810
|
+
this.verifyDnsRecordsForExternalDomainByIdForTenantById = function (tenant_id, external_domain_id, options) {
|
|
811
|
+
if (options === void 0) { options = {}; }
|
|
812
|
+
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));
|
|
813
|
+
};
|
|
810
814
|
this.checkSubdomainAvailability = function (body, options) {
|
|
811
815
|
if (options === void 0) { options = {}; }
|
|
812
816
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/subdomains/availability"), __assign({ method: "post", body: JSON.stringify(body), headers: {
|