@wix/domains 1.0.2 → 1.0.4
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/build/cjs/context.d.ts +1 -0
- package/build/cjs/context.js +2 -1
- package/build/cjs/context.js.map +1 -1
- package/build/cjs/index.d.ts +1 -0
- package/build/cjs/index.js +2 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +2 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/es/context.d.ts +1 -0
- package/build/es/context.js +1 -0
- package/build/es/context.js.map +1 -1
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +1 -0
- package/build/es/index.js.map +1 -1
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +1 -0
- package/build/es/meta.js.map +1 -1
- package/package.json +8 -8
- package/type-bundles/context.bundle.d.ts +262 -59
- package/type-bundles/index.bundle.d.ts +363 -155
- package/type-bundles/meta.bundle.d.ts +117 -38
package/build/cjs/context.d.ts
CHANGED
|
@@ -2,4 +2,5 @@ export * as connectedDomains from '@wix/domains_connected-domains/context';
|
|
|
2
2
|
export * as connectedDomainSetupInfo from '@wix/domains_connected-domain-setup-info/context';
|
|
3
3
|
export * as domainDns from '@wix/domains_domain-dns/context';
|
|
4
4
|
export * as registeredDomains from '@wix/domains_registered-domains/context';
|
|
5
|
+
export * as domainAvailability from '@wix/domains_domain-availability/context';
|
|
5
6
|
export * as domainSuggestions from '@wix/domains_domain-suggestions/context';
|
package/build/cjs/context.js
CHANGED
|
@@ -23,10 +23,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.domainSuggestions = exports.registeredDomains = exports.domainDns = exports.connectedDomainSetupInfo = exports.connectedDomains = void 0;
|
|
26
|
+
exports.domainSuggestions = exports.domainAvailability = exports.registeredDomains = exports.domainDns = exports.connectedDomainSetupInfo = exports.connectedDomains = void 0;
|
|
27
27
|
exports.connectedDomains = __importStar(require("@wix/domains_connected-domains/context"));
|
|
28
28
|
exports.connectedDomainSetupInfo = __importStar(require("@wix/domains_connected-domain-setup-info/context"));
|
|
29
29
|
exports.domainDns = __importStar(require("@wix/domains_domain-dns/context"));
|
|
30
30
|
exports.registeredDomains = __importStar(require("@wix/domains_registered-domains/context"));
|
|
31
|
+
exports.domainAvailability = __importStar(require("@wix/domains_domain-availability/context"));
|
|
31
32
|
exports.domainSuggestions = __importStar(require("@wix/domains_domain-suggestions/context"));
|
|
32
33
|
//# sourceMappingURL=context.js.map
|
package/build/cjs/context.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../context.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2FAA2E;AAC3E,6GAA6F;AAC7F,6EAA6D;AAC7D,6FAA6E;AAC7E,6FAA6E"}
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../context.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2FAA2E;AAC3E,6GAA6F;AAC7F,6EAA6D;AAC7D,6FAA6E;AAC7E,+FAA+E;AAC/E,6FAA6E"}
|
package/build/cjs/index.d.ts
CHANGED
|
@@ -2,4 +2,5 @@ export * as connectedDomains from '@wix/domains_connected-domains';
|
|
|
2
2
|
export * as connectedDomainSetupInfo from '@wix/domains_connected-domain-setup-info';
|
|
3
3
|
export * as domainDns from '@wix/domains_domain-dns';
|
|
4
4
|
export * as registeredDomains from '@wix/domains_registered-domains';
|
|
5
|
+
export * as domainAvailability from '@wix/domains_domain-availability';
|
|
5
6
|
export * as domainSuggestions from '@wix/domains_domain-suggestions';
|
package/build/cjs/index.js
CHANGED
|
@@ -23,10 +23,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.domainSuggestions = exports.registeredDomains = exports.domainDns = exports.connectedDomainSetupInfo = exports.connectedDomains = void 0;
|
|
26
|
+
exports.domainSuggestions = exports.domainAvailability = exports.registeredDomains = exports.domainDns = exports.connectedDomainSetupInfo = exports.connectedDomains = void 0;
|
|
27
27
|
exports.connectedDomains = __importStar(require("@wix/domains_connected-domains"));
|
|
28
28
|
exports.connectedDomainSetupInfo = __importStar(require("@wix/domains_connected-domain-setup-info"));
|
|
29
29
|
exports.domainDns = __importStar(require("@wix/domains_domain-dns"));
|
|
30
30
|
exports.registeredDomains = __importStar(require("@wix/domains_registered-domains"));
|
|
31
|
+
exports.domainAvailability = __importStar(require("@wix/domains_domain-availability"));
|
|
31
32
|
exports.domainSuggestions = __importStar(require("@wix/domains_domain-suggestions"));
|
|
32
33
|
//# sourceMappingURL=index.js.map
|
package/build/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mFAAmE;AACnE,qGAAqF;AACrF,qEAAqD;AACrD,qFAAqE;AACrE,qFAAqE"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mFAAmE;AACnE,qGAAqF;AACrF,qEAAqD;AACrD,qFAAqE;AACrE,uFAAuE;AACvE,qFAAqE"}
|
package/build/cjs/meta.d.ts
CHANGED
|
@@ -2,4 +2,5 @@ export * as connectedDomains from '@wix/domains_connected-domains/meta';
|
|
|
2
2
|
export * as connectedDomainSetupInfo from '@wix/domains_connected-domain-setup-info/meta';
|
|
3
3
|
export * as domainDns from '@wix/domains_domain-dns/meta';
|
|
4
4
|
export * as registeredDomains from '@wix/domains_registered-domains/meta';
|
|
5
|
+
export * as domainAvailability from '@wix/domains_domain-availability/meta';
|
|
5
6
|
export * as domainSuggestions from '@wix/domains_domain-suggestions/meta';
|
package/build/cjs/meta.js
CHANGED
|
@@ -23,10 +23,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.domainSuggestions = exports.registeredDomains = exports.domainDns = exports.connectedDomainSetupInfo = exports.connectedDomains = void 0;
|
|
26
|
+
exports.domainSuggestions = exports.domainAvailability = exports.registeredDomains = exports.domainDns = exports.connectedDomainSetupInfo = exports.connectedDomains = void 0;
|
|
27
27
|
exports.connectedDomains = __importStar(require("@wix/domains_connected-domains/meta"));
|
|
28
28
|
exports.connectedDomainSetupInfo = __importStar(require("@wix/domains_connected-domain-setup-info/meta"));
|
|
29
29
|
exports.domainDns = __importStar(require("@wix/domains_domain-dns/meta"));
|
|
30
30
|
exports.registeredDomains = __importStar(require("@wix/domains_registered-domains/meta"));
|
|
31
|
+
exports.domainAvailability = __importStar(require("@wix/domains_domain-availability/meta"));
|
|
31
32
|
exports.domainSuggestions = __importStar(require("@wix/domains_domain-suggestions/meta"));
|
|
32
33
|
//# sourceMappingURL=meta.js.map
|
package/build/cjs/meta.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wFAAwE;AACxE,0GAA0F;AAC1F,0EAA0D;AAC1D,0FAA0E;AAC1E,0FAA0E"}
|
|
1
|
+
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wFAAwE;AACxE,0GAA0F;AAC1F,0EAA0D;AAC1D,0FAA0E;AAC1E,4FAA4E;AAC5E,0FAA0E"}
|
package/build/es/context.d.ts
CHANGED
|
@@ -2,4 +2,5 @@ export * as connectedDomains from '@wix/domains_connected-domains/context';
|
|
|
2
2
|
export * as connectedDomainSetupInfo from '@wix/domains_connected-domain-setup-info/context';
|
|
3
3
|
export * as domainDns from '@wix/domains_domain-dns/context';
|
|
4
4
|
export * as registeredDomains from '@wix/domains_registered-domains/context';
|
|
5
|
+
export * as domainAvailability from '@wix/domains_domain-availability/context';
|
|
5
6
|
export * as domainSuggestions from '@wix/domains_domain-suggestions/context';
|
package/build/es/context.js
CHANGED
|
@@ -2,5 +2,6 @@ export * as connectedDomains from '@wix/domains_connected-domains/context';
|
|
|
2
2
|
export * as connectedDomainSetupInfo from '@wix/domains_connected-domain-setup-info/context';
|
|
3
3
|
export * as domainDns from '@wix/domains_domain-dns/context';
|
|
4
4
|
export * as registeredDomains from '@wix/domains_registered-domains/context';
|
|
5
|
+
export * as domainAvailability from '@wix/domains_domain-availability/context';
|
|
5
6
|
export * as domainSuggestions from '@wix/domains_domain-suggestions/context';
|
|
6
7
|
//# sourceMappingURL=context.js.map
|
package/build/es/context.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,gBAAgB,MAAM,wCAAwC,CAAC;AAC3E,OAAO,KAAK,wBAAwB,MAAM,kDAAkD,CAAC;AAC7F,OAAO,KAAK,SAAS,MAAM,iCAAiC,CAAC;AAC7D,OAAO,KAAK,iBAAiB,MAAM,yCAAyC,CAAC;AAC7E,OAAO,KAAK,iBAAiB,MAAM,yCAAyC,CAAC"}
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,gBAAgB,MAAM,wCAAwC,CAAC;AAC3E,OAAO,KAAK,wBAAwB,MAAM,kDAAkD,CAAC;AAC7F,OAAO,KAAK,SAAS,MAAM,iCAAiC,CAAC;AAC7D,OAAO,KAAK,iBAAiB,MAAM,yCAAyC,CAAC;AAC7E,OAAO,KAAK,kBAAkB,MAAM,0CAA0C,CAAC;AAC/E,OAAO,KAAK,iBAAiB,MAAM,yCAAyC,CAAC"}
|
package/build/es/index.d.ts
CHANGED
|
@@ -2,4 +2,5 @@ export * as connectedDomains from '@wix/domains_connected-domains';
|
|
|
2
2
|
export * as connectedDomainSetupInfo from '@wix/domains_connected-domain-setup-info';
|
|
3
3
|
export * as domainDns from '@wix/domains_domain-dns';
|
|
4
4
|
export * as registeredDomains from '@wix/domains_registered-domains';
|
|
5
|
+
export * as domainAvailability from '@wix/domains_domain-availability';
|
|
5
6
|
export * as domainSuggestions from '@wix/domains_domain-suggestions';
|
package/build/es/index.js
CHANGED
|
@@ -2,5 +2,6 @@ export * as connectedDomains from '@wix/domains_connected-domains';
|
|
|
2
2
|
export * as connectedDomainSetupInfo from '@wix/domains_connected-domain-setup-info';
|
|
3
3
|
export * as domainDns from '@wix/domains_domain-dns';
|
|
4
4
|
export * as registeredDomains from '@wix/domains_registered-domains';
|
|
5
|
+
export * as domainAvailability from '@wix/domains_domain-availability';
|
|
5
6
|
export * as domainSuggestions from '@wix/domains_domain-suggestions';
|
|
6
7
|
//# sourceMappingURL=index.js.map
|
package/build/es/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,gBAAgB,MAAM,gCAAgC,CAAC;AACnE,OAAO,KAAK,wBAAwB,MAAM,0CAA0C,CAAC;AACrF,OAAO,KAAK,SAAS,MAAM,yBAAyB,CAAC;AACrD,OAAO,KAAK,iBAAiB,MAAM,iCAAiC,CAAC;AACrE,OAAO,KAAK,iBAAiB,MAAM,iCAAiC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,gBAAgB,MAAM,gCAAgC,CAAC;AACnE,OAAO,KAAK,wBAAwB,MAAM,0CAA0C,CAAC;AACrF,OAAO,KAAK,SAAS,MAAM,yBAAyB,CAAC;AACrD,OAAO,KAAK,iBAAiB,MAAM,iCAAiC,CAAC;AACrE,OAAO,KAAK,kBAAkB,MAAM,kCAAkC,CAAC;AACvE,OAAO,KAAK,iBAAiB,MAAM,iCAAiC,CAAC"}
|
package/build/es/meta.d.ts
CHANGED
|
@@ -2,4 +2,5 @@ export * as connectedDomains from '@wix/domains_connected-domains/meta';
|
|
|
2
2
|
export * as connectedDomainSetupInfo from '@wix/domains_connected-domain-setup-info/meta';
|
|
3
3
|
export * as domainDns from '@wix/domains_domain-dns/meta';
|
|
4
4
|
export * as registeredDomains from '@wix/domains_registered-domains/meta';
|
|
5
|
+
export * as domainAvailability from '@wix/domains_domain-availability/meta';
|
|
5
6
|
export * as domainSuggestions from '@wix/domains_domain-suggestions/meta';
|
package/build/es/meta.js
CHANGED
|
@@ -2,5 +2,6 @@ export * as connectedDomains from '@wix/domains_connected-domains/meta';
|
|
|
2
2
|
export * as connectedDomainSetupInfo from '@wix/domains_connected-domain-setup-info/meta';
|
|
3
3
|
export * as domainDns from '@wix/domains_domain-dns/meta';
|
|
4
4
|
export * as registeredDomains from '@wix/domains_registered-domains/meta';
|
|
5
|
+
export * as domainAvailability from '@wix/domains_domain-availability/meta';
|
|
5
6
|
export * as domainSuggestions from '@wix/domains_domain-suggestions/meta';
|
|
6
7
|
//# sourceMappingURL=meta.js.map
|
package/build/es/meta.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,gBAAgB,MAAM,qCAAqC,CAAC;AACxE,OAAO,KAAK,wBAAwB,MAAM,+CAA+C,CAAC;AAC1F,OAAO,KAAK,SAAS,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,iBAAiB,MAAM,sCAAsC,CAAC;AAC1E,OAAO,KAAK,iBAAiB,MAAM,sCAAsC,CAAC"}
|
|
1
|
+
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,gBAAgB,MAAM,qCAAqC,CAAC;AACxE,OAAO,KAAK,wBAAwB,MAAM,+CAA+C,CAAC;AAC1F,OAAO,KAAK,SAAS,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,iBAAiB,MAAM,sCAAsC,CAAC;AAC1E,OAAO,KAAK,kBAAkB,MAAM,uCAAuC,CAAC;AAC5E,OAAO,KAAK,iBAAiB,MAAM,sCAAsC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/domains",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -18,14 +18,14 @@
|
|
|
18
18
|
"type-bundles"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@wix/domains_connected-domain-setup-info": "1.0.
|
|
22
|
-
"@wix/domains_connected-domains": "1.0.
|
|
23
|
-
"@wix/domains_domain-
|
|
24
|
-
"@wix/domains_domain-
|
|
25
|
-
"@wix/
|
|
21
|
+
"@wix/domains_connected-domain-setup-info": "1.0.1",
|
|
22
|
+
"@wix/domains_connected-domains": "1.0.1",
|
|
23
|
+
"@wix/domains_domain-availability": "1.0.1",
|
|
24
|
+
"@wix/domains_domain-dns": "1.0.1",
|
|
25
|
+
"@wix/domains_domain-suggestions": "1.0.1",
|
|
26
|
+
"@wix/domains_registered-domains": "1.0.1"
|
|
26
27
|
},
|
|
27
28
|
"devDependencies": {
|
|
28
|
-
"@wix/sdk": "https://cdn.dev.wixpress.com/@wix/sdk/02e8069ab2fd783e0e6a080fc7d590e76cb26ab93c8389574286305b.tar.gz",
|
|
29
29
|
"glob": "^10.4.1",
|
|
30
30
|
"rollup": "^4.18.0",
|
|
31
31
|
"rollup-plugin-dts": "^6.1.1",
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"fqdn": ""
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
|
-
"falconPackageHash": "
|
|
50
|
+
"falconPackageHash": "8d8d10823f9a833d80724bd382a57ae7b85222ccf679a47985f4c66f"
|
|
51
51
|
}
|
|
@@ -248,42 +248,50 @@ interface ListConnectedDomainsOptions {
|
|
|
248
248
|
paging?: CursorPaging$1;
|
|
249
249
|
}
|
|
250
250
|
|
|
251
|
-
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
252
|
-
interface HttpClient {
|
|
253
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
251
|
+
type RESTFunctionDescriptor$5<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$5) => T;
|
|
252
|
+
interface HttpClient$5 {
|
|
253
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$5<TResponse, TData>): Promise<HttpResponse$5<TResponse>>;
|
|
254
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
254
255
|
}
|
|
255
|
-
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
256
|
-
type HttpResponse<T = any> = {
|
|
256
|
+
type RequestOptionsFactory$5<TResponse = any, TData = any> = (context: any) => RequestOptions$5<TResponse, TData>;
|
|
257
|
+
type HttpResponse$5<T = any> = {
|
|
257
258
|
data: T;
|
|
258
259
|
status: number;
|
|
259
260
|
statusText: string;
|
|
260
261
|
headers: any;
|
|
261
262
|
request?: any;
|
|
262
263
|
};
|
|
263
|
-
type RequestOptions<_TResponse = any, Data = any> = {
|
|
264
|
+
type RequestOptions$5<_TResponse = any, Data = any> = {
|
|
264
265
|
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
265
266
|
url: string;
|
|
266
267
|
data?: Data;
|
|
267
268
|
params?: URLSearchParams;
|
|
268
|
-
} & APIMetadata;
|
|
269
|
-
type APIMetadata = {
|
|
269
|
+
} & APIMetadata$5;
|
|
270
|
+
type APIMetadata$5 = {
|
|
270
271
|
methodFqn?: string;
|
|
271
272
|
entityFqdn?: string;
|
|
272
273
|
packageName?: string;
|
|
273
274
|
};
|
|
274
|
-
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
275
|
+
type BuildRESTFunction$5<T extends RESTFunctionDescriptor$5> = T extends RESTFunctionDescriptor$5<infer U> ? U : never;
|
|
275
276
|
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
276
277
|
__type: 'event-definition';
|
|
277
278
|
type: Type;
|
|
278
279
|
isDomainEvent?: boolean;
|
|
279
|
-
transformations?: unknown;
|
|
280
|
+
transformations?: (envelope: unknown) => Payload;
|
|
280
281
|
__payload: Payload;
|
|
281
282
|
};
|
|
282
|
-
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean,
|
|
283
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
283
284
|
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
284
285
|
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
285
286
|
|
|
286
|
-
declare
|
|
287
|
+
declare global {
|
|
288
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
289
|
+
interface SymbolConstructor {
|
|
290
|
+
readonly observable: symbol;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
declare function createConnectedDomain$1(httpClient: HttpClient$5): (connectedDomain: ConnectedDomain) => Promise<ConnectedDomain & {
|
|
287
295
|
_id: string;
|
|
288
296
|
domain: string;
|
|
289
297
|
connectionType: ConnectionType;
|
|
@@ -296,7 +304,7 @@ declare function createConnectedDomain$1(httpClient: HttpClient): (connectedDoma
|
|
|
296
304
|
suppressNotifications: boolean;
|
|
297
305
|
dnsPropagationStatus: DnsPropagationStatus$1;
|
|
298
306
|
}>;
|
|
299
|
-
declare function getConnectedDomain$1(httpClient: HttpClient): (connectedDomainId: string) => Promise<ConnectedDomain & {
|
|
307
|
+
declare function getConnectedDomain$1(httpClient: HttpClient$5): (connectedDomainId: string) => Promise<ConnectedDomain & {
|
|
300
308
|
_id: string;
|
|
301
309
|
domain: string;
|
|
302
310
|
connectionType: ConnectionType;
|
|
@@ -309,20 +317,20 @@ declare function getConnectedDomain$1(httpClient: HttpClient): (connectedDomainI
|
|
|
309
317
|
suppressNotifications: boolean;
|
|
310
318
|
dnsPropagationStatus: DnsPropagationStatus$1;
|
|
311
319
|
}>;
|
|
312
|
-
declare function listConnectedDomains$1(httpClient: HttpClient): (options?: ListConnectedDomainsOptions) => Promise<ListConnectedDomainsResponse & ListConnectedDomainsResponseNonNullableFields>;
|
|
320
|
+
declare function listConnectedDomains$1(httpClient: HttpClient$5): (options?: ListConnectedDomainsOptions) => Promise<ListConnectedDomainsResponse & ListConnectedDomainsResponseNonNullableFields>;
|
|
313
321
|
declare const onConnectedDomainRemoved$1: EventDefinition<ConnectedDomainRemovedEnvelope, "wix.premium.domains.v1.connected_domain_removed">;
|
|
314
322
|
|
|
315
|
-
declare const createConnectedDomain: BuildRESTFunction<typeof createConnectedDomain$1>;
|
|
316
|
-
declare const getConnectedDomain: BuildRESTFunction<typeof getConnectedDomain$1>;
|
|
317
|
-
declare const listConnectedDomains: BuildRESTFunction<typeof listConnectedDomains$1>;
|
|
323
|
+
declare const createConnectedDomain: BuildRESTFunction$5<typeof createConnectedDomain$1>;
|
|
324
|
+
declare const getConnectedDomain: BuildRESTFunction$5<typeof getConnectedDomain$1>;
|
|
325
|
+
declare const listConnectedDomains: BuildRESTFunction$5<typeof listConnectedDomains$1>;
|
|
318
326
|
declare const onConnectedDomainRemoved: BuildEventDefinition<typeof onConnectedDomainRemoved$1>;
|
|
319
327
|
|
|
320
|
-
declare const context$
|
|
321
|
-
declare const context$
|
|
322
|
-
declare const context$
|
|
323
|
-
declare const context$
|
|
324
|
-
declare namespace context$
|
|
325
|
-
export { context$
|
|
328
|
+
declare const context$5_createConnectedDomain: typeof createConnectedDomain;
|
|
329
|
+
declare const context$5_getConnectedDomain: typeof getConnectedDomain;
|
|
330
|
+
declare const context$5_listConnectedDomains: typeof listConnectedDomains;
|
|
331
|
+
declare const context$5_onConnectedDomainRemoved: typeof onConnectedDomainRemoved;
|
|
332
|
+
declare namespace context$5 {
|
|
333
|
+
export { context$5_createConnectedDomain as createConnectedDomain, context$5_getConnectedDomain as getConnectedDomain, context$5_listConnectedDomains as listConnectedDomains, context$5_onConnectedDomainRemoved as onConnectedDomainRemoved };
|
|
326
334
|
}
|
|
327
335
|
|
|
328
336
|
/**
|
|
@@ -484,13 +492,46 @@ interface GetConnectedDomainSetupInfoResponseNonNullableFields {
|
|
|
484
492
|
};
|
|
485
493
|
}
|
|
486
494
|
|
|
487
|
-
|
|
495
|
+
type RESTFunctionDescriptor$4<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$4) => T;
|
|
496
|
+
interface HttpClient$4 {
|
|
497
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$4<TResponse, TData>): Promise<HttpResponse$4<TResponse>>;
|
|
498
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
499
|
+
}
|
|
500
|
+
type RequestOptionsFactory$4<TResponse = any, TData = any> = (context: any) => RequestOptions$4<TResponse, TData>;
|
|
501
|
+
type HttpResponse$4<T = any> = {
|
|
502
|
+
data: T;
|
|
503
|
+
status: number;
|
|
504
|
+
statusText: string;
|
|
505
|
+
headers: any;
|
|
506
|
+
request?: any;
|
|
507
|
+
};
|
|
508
|
+
type RequestOptions$4<_TResponse = any, Data = any> = {
|
|
509
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
510
|
+
url: string;
|
|
511
|
+
data?: Data;
|
|
512
|
+
params?: URLSearchParams;
|
|
513
|
+
} & APIMetadata$4;
|
|
514
|
+
type APIMetadata$4 = {
|
|
515
|
+
methodFqn?: string;
|
|
516
|
+
entityFqdn?: string;
|
|
517
|
+
packageName?: string;
|
|
518
|
+
};
|
|
519
|
+
type BuildRESTFunction$4<T extends RESTFunctionDescriptor$4> = T extends RESTFunctionDescriptor$4<infer U> ? U : never;
|
|
488
520
|
|
|
489
|
-
declare
|
|
521
|
+
declare global {
|
|
522
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
523
|
+
interface SymbolConstructor {
|
|
524
|
+
readonly observable: symbol;
|
|
525
|
+
}
|
|
526
|
+
}
|
|
490
527
|
|
|
491
|
-
declare
|
|
492
|
-
|
|
493
|
-
|
|
528
|
+
declare function getConnectedDomainSetupInfo$1(httpClient: HttpClient$4): (connectedDomainId: string) => Promise<GetConnectedDomainSetupInfoResponse & GetConnectedDomainSetupInfoResponseNonNullableFields>;
|
|
529
|
+
|
|
530
|
+
declare const getConnectedDomainSetupInfo: BuildRESTFunction$4<typeof getConnectedDomainSetupInfo$1>;
|
|
531
|
+
|
|
532
|
+
declare const context$4_getConnectedDomainSetupInfo: typeof getConnectedDomainSetupInfo;
|
|
533
|
+
declare namespace context$4 {
|
|
534
|
+
export { context$4_getConnectedDomainSetupInfo as getConnectedDomainSetupInfo };
|
|
494
535
|
}
|
|
495
536
|
|
|
496
537
|
/** DNS zones hold information about the records that map a domain's URL to an IP address. */
|
|
@@ -622,7 +663,40 @@ interface UpdateDnsZoneOptions {
|
|
|
622
663
|
dnssecEnabled?: boolean | null;
|
|
623
664
|
}
|
|
624
665
|
|
|
625
|
-
|
|
666
|
+
type RESTFunctionDescriptor$3<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$3) => T;
|
|
667
|
+
interface HttpClient$3 {
|
|
668
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$3<TResponse, TData>): Promise<HttpResponse$3<TResponse>>;
|
|
669
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
670
|
+
}
|
|
671
|
+
type RequestOptionsFactory$3<TResponse = any, TData = any> = (context: any) => RequestOptions$3<TResponse, TData>;
|
|
672
|
+
type HttpResponse$3<T = any> = {
|
|
673
|
+
data: T;
|
|
674
|
+
status: number;
|
|
675
|
+
statusText: string;
|
|
676
|
+
headers: any;
|
|
677
|
+
request?: any;
|
|
678
|
+
};
|
|
679
|
+
type RequestOptions$3<_TResponse = any, Data = any> = {
|
|
680
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
681
|
+
url: string;
|
|
682
|
+
data?: Data;
|
|
683
|
+
params?: URLSearchParams;
|
|
684
|
+
} & APIMetadata$3;
|
|
685
|
+
type APIMetadata$3 = {
|
|
686
|
+
methodFqn?: string;
|
|
687
|
+
entityFqdn?: string;
|
|
688
|
+
packageName?: string;
|
|
689
|
+
};
|
|
690
|
+
type BuildRESTFunction$3<T extends RESTFunctionDescriptor$3> = T extends RESTFunctionDescriptor$3<infer U> ? U : never;
|
|
691
|
+
|
|
692
|
+
declare global {
|
|
693
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
694
|
+
interface SymbolConstructor {
|
|
695
|
+
readonly observable: symbol;
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
declare function createDnsZone$1(httpClient: HttpClient$3): (dnsZone: DnsZone) => Promise<DnsZone & {
|
|
626
700
|
domainName: string;
|
|
627
701
|
records: {
|
|
628
702
|
type: RecordType;
|
|
@@ -633,7 +707,7 @@ declare function createDnsZone$1(httpClient: HttpClient): (dnsZone: DnsZone) =>
|
|
|
633
707
|
_id: string;
|
|
634
708
|
dnssecEnabled: boolean;
|
|
635
709
|
}>;
|
|
636
|
-
declare function getDnsZone$1(httpClient: HttpClient): (domainName: string) => Promise<DnsZone & {
|
|
710
|
+
declare function getDnsZone$1(httpClient: HttpClient$3): (domainName: string) => Promise<DnsZone & {
|
|
637
711
|
domainName: string;
|
|
638
712
|
records: {
|
|
639
713
|
type: RecordType;
|
|
@@ -644,23 +718,23 @@ declare function getDnsZone$1(httpClient: HttpClient): (domainName: string) => P
|
|
|
644
718
|
_id: string;
|
|
645
719
|
dnssecEnabled: boolean;
|
|
646
720
|
}>;
|
|
647
|
-
declare function updateDnsZone$1(httpClient: HttpClient): (domainName: string, options?: UpdateDnsZoneOptions) => Promise<UpdateDnsZoneResponse & UpdateDnsZoneResponseNonNullableFields>;
|
|
648
|
-
declare function deleteDnsZone$1(httpClient: HttpClient): (domainName: string) => Promise<void>;
|
|
649
|
-
declare function previewDnsZone$1(httpClient: HttpClient): (domainName: string) => Promise<PreviewDnsZoneResponse & PreviewDnsZoneResponseNonNullableFields>;
|
|
721
|
+
declare function updateDnsZone$1(httpClient: HttpClient$3): (domainName: string, options?: UpdateDnsZoneOptions) => Promise<UpdateDnsZoneResponse & UpdateDnsZoneResponseNonNullableFields>;
|
|
722
|
+
declare function deleteDnsZone$1(httpClient: HttpClient$3): (domainName: string) => Promise<void>;
|
|
723
|
+
declare function previewDnsZone$1(httpClient: HttpClient$3): (domainName: string) => Promise<PreviewDnsZoneResponse & PreviewDnsZoneResponseNonNullableFields>;
|
|
650
724
|
|
|
651
|
-
declare const createDnsZone: BuildRESTFunction<typeof createDnsZone$1>;
|
|
652
|
-
declare const getDnsZone: BuildRESTFunction<typeof getDnsZone$1>;
|
|
653
|
-
declare const updateDnsZone: BuildRESTFunction<typeof updateDnsZone$1>;
|
|
654
|
-
declare const deleteDnsZone: BuildRESTFunction<typeof deleteDnsZone$1>;
|
|
655
|
-
declare const previewDnsZone: BuildRESTFunction<typeof previewDnsZone$1>;
|
|
725
|
+
declare const createDnsZone: BuildRESTFunction$3<typeof createDnsZone$1>;
|
|
726
|
+
declare const getDnsZone: BuildRESTFunction$3<typeof getDnsZone$1>;
|
|
727
|
+
declare const updateDnsZone: BuildRESTFunction$3<typeof updateDnsZone$1>;
|
|
728
|
+
declare const deleteDnsZone: BuildRESTFunction$3<typeof deleteDnsZone$1>;
|
|
729
|
+
declare const previewDnsZone: BuildRESTFunction$3<typeof previewDnsZone$1>;
|
|
656
730
|
|
|
657
|
-
declare const context$
|
|
658
|
-
declare const context$
|
|
659
|
-
declare const context$
|
|
660
|
-
declare const context$
|
|
661
|
-
declare const context$
|
|
662
|
-
declare namespace context$
|
|
663
|
-
export { context$
|
|
731
|
+
declare const context$3_createDnsZone: typeof createDnsZone;
|
|
732
|
+
declare const context$3_deleteDnsZone: typeof deleteDnsZone;
|
|
733
|
+
declare const context$3_getDnsZone: typeof getDnsZone;
|
|
734
|
+
declare const context$3_previewDnsZone: typeof previewDnsZone;
|
|
735
|
+
declare const context$3_updateDnsZone: typeof updateDnsZone;
|
|
736
|
+
declare namespace context$3 {
|
|
737
|
+
export { context$3_createDnsZone as createDnsZone, context$3_deleteDnsZone as deleteDnsZone, context$3_getDnsZone as getDnsZone, context$3_previewDnsZone as previewDnsZone, context$3_updateDnsZone as updateDnsZone };
|
|
664
738
|
}
|
|
665
739
|
|
|
666
740
|
/**
|
|
@@ -1228,7 +1302,40 @@ interface ListRegisteredDomainsOptions {
|
|
|
1228
1302
|
paging?: CursorPaging;
|
|
1229
1303
|
}
|
|
1230
1304
|
|
|
1231
|
-
|
|
1305
|
+
type RESTFunctionDescriptor$2<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$2) => T;
|
|
1306
|
+
interface HttpClient$2 {
|
|
1307
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$2<TResponse, TData>): Promise<HttpResponse$2<TResponse>>;
|
|
1308
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
1309
|
+
}
|
|
1310
|
+
type RequestOptionsFactory$2<TResponse = any, TData = any> = (context: any) => RequestOptions$2<TResponse, TData>;
|
|
1311
|
+
type HttpResponse$2<T = any> = {
|
|
1312
|
+
data: T;
|
|
1313
|
+
status: number;
|
|
1314
|
+
statusText: string;
|
|
1315
|
+
headers: any;
|
|
1316
|
+
request?: any;
|
|
1317
|
+
};
|
|
1318
|
+
type RequestOptions$2<_TResponse = any, Data = any> = {
|
|
1319
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
1320
|
+
url: string;
|
|
1321
|
+
data?: Data;
|
|
1322
|
+
params?: URLSearchParams;
|
|
1323
|
+
} & APIMetadata$2;
|
|
1324
|
+
type APIMetadata$2 = {
|
|
1325
|
+
methodFqn?: string;
|
|
1326
|
+
entityFqdn?: string;
|
|
1327
|
+
packageName?: string;
|
|
1328
|
+
};
|
|
1329
|
+
type BuildRESTFunction$2<T extends RESTFunctionDescriptor$2> = T extends RESTFunctionDescriptor$2<infer U> ? U : never;
|
|
1330
|
+
|
|
1331
|
+
declare global {
|
|
1332
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
1333
|
+
interface SymbolConstructor {
|
|
1334
|
+
readonly observable: symbol;
|
|
1335
|
+
}
|
|
1336
|
+
}
|
|
1337
|
+
|
|
1338
|
+
declare function createRegisteredDomain$1(httpClient: HttpClient$2): (registeredDomain: RegisteredDomain) => Promise<RegisteredDomain & {
|
|
1232
1339
|
pendingRegistrationInfo?: {
|
|
1233
1340
|
latestAttempt?: {
|
|
1234
1341
|
number: number;
|
|
@@ -1288,7 +1395,7 @@ declare function createRegisteredDomain$1(httpClient: HttpClient): (registeredDo
|
|
|
1288
1395
|
} | undefined;
|
|
1289
1396
|
dnsPropagationStatus: DnsPropagationStatus;
|
|
1290
1397
|
}>;
|
|
1291
|
-
declare function getRegisteredDomain$1(httpClient: HttpClient): (registeredDomainId: string) => Promise<RegisteredDomain & {
|
|
1398
|
+
declare function getRegisteredDomain$1(httpClient: HttpClient$2): (registeredDomainId: string) => Promise<RegisteredDomain & {
|
|
1292
1399
|
pendingRegistrationInfo?: {
|
|
1293
1400
|
latestAttempt?: {
|
|
1294
1401
|
number: number;
|
|
@@ -1348,20 +1455,83 @@ declare function getRegisteredDomain$1(httpClient: HttpClient): (registeredDomai
|
|
|
1348
1455
|
} | undefined;
|
|
1349
1456
|
dnsPropagationStatus: DnsPropagationStatus;
|
|
1350
1457
|
}>;
|
|
1351
|
-
declare function listRegisteredDomains$1(httpClient: HttpClient): (options?: ListRegisteredDomainsOptions) => Promise<ListRegisteredDomainsResponse & ListRegisteredDomainsResponseNonNullableFields>;
|
|
1352
|
-
declare function redeemRegisteredDomain$1(httpClient: HttpClient): (registeredDomainId: string) => Promise<RedeemRegisteredDomainResponse & RedeemRegisteredDomainResponseNonNullableFields>;
|
|
1458
|
+
declare function listRegisteredDomains$1(httpClient: HttpClient$2): (options?: ListRegisteredDomainsOptions) => Promise<ListRegisteredDomainsResponse & ListRegisteredDomainsResponseNonNullableFields>;
|
|
1459
|
+
declare function redeemRegisteredDomain$1(httpClient: HttpClient$2): (registeredDomainId: string) => Promise<RedeemRegisteredDomainResponse & RedeemRegisteredDomainResponseNonNullableFields>;
|
|
1460
|
+
|
|
1461
|
+
declare const createRegisteredDomain: BuildRESTFunction$2<typeof createRegisteredDomain$1>;
|
|
1462
|
+
declare const getRegisteredDomain: BuildRESTFunction$2<typeof getRegisteredDomain$1>;
|
|
1463
|
+
declare const listRegisteredDomains: BuildRESTFunction$2<typeof listRegisteredDomains$1>;
|
|
1464
|
+
declare const redeemRegisteredDomain: BuildRESTFunction$2<typeof redeemRegisteredDomain$1>;
|
|
1465
|
+
|
|
1466
|
+
declare const context$2_createRegisteredDomain: typeof createRegisteredDomain;
|
|
1467
|
+
declare const context$2_getRegisteredDomain: typeof getRegisteredDomain;
|
|
1468
|
+
declare const context$2_listRegisteredDomains: typeof listRegisteredDomains;
|
|
1469
|
+
declare const context$2_redeemRegisteredDomain: typeof redeemRegisteredDomain;
|
|
1470
|
+
declare namespace context$2 {
|
|
1471
|
+
export { context$2_createRegisteredDomain as createRegisteredDomain, context$2_getRegisteredDomain as getRegisteredDomain, context$2_listRegisteredDomains as listRegisteredDomains, context$2_redeemRegisteredDomain as redeemRegisteredDomain };
|
|
1472
|
+
}
|
|
1473
|
+
|
|
1474
|
+
interface DomainAvailability {
|
|
1475
|
+
/** Domain name including TLD. For example, `my-new-domain.com`. */
|
|
1476
|
+
domain?: string;
|
|
1477
|
+
/**
|
|
1478
|
+
* Whether the domain is available for purchase. You can purchase the
|
|
1479
|
+
* domain in case the boolean is `true`. The domain is already taken
|
|
1480
|
+
* when `false` is returned.
|
|
1481
|
+
*/
|
|
1482
|
+
available?: boolean;
|
|
1483
|
+
}
|
|
1484
|
+
interface CheckDomainAvailabilityResponse {
|
|
1485
|
+
/** Information about the domain's availability. */
|
|
1486
|
+
availability?: DomainAvailability;
|
|
1487
|
+
}
|
|
1488
|
+
interface CheckDomainAvailabilityResponseNonNullableFields {
|
|
1489
|
+
availability?: {
|
|
1490
|
+
domain: string;
|
|
1491
|
+
available: boolean;
|
|
1492
|
+
};
|
|
1493
|
+
}
|
|
1494
|
+
|
|
1495
|
+
type RESTFunctionDescriptor$1<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$1) => T;
|
|
1496
|
+
interface HttpClient$1 {
|
|
1497
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
|
|
1498
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
1499
|
+
}
|
|
1500
|
+
type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
|
|
1501
|
+
type HttpResponse$1<T = any> = {
|
|
1502
|
+
data: T;
|
|
1503
|
+
status: number;
|
|
1504
|
+
statusText: string;
|
|
1505
|
+
headers: any;
|
|
1506
|
+
request?: any;
|
|
1507
|
+
};
|
|
1508
|
+
type RequestOptions$1<_TResponse = any, Data = any> = {
|
|
1509
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
1510
|
+
url: string;
|
|
1511
|
+
data?: Data;
|
|
1512
|
+
params?: URLSearchParams;
|
|
1513
|
+
} & APIMetadata$1;
|
|
1514
|
+
type APIMetadata$1 = {
|
|
1515
|
+
methodFqn?: string;
|
|
1516
|
+
entityFqdn?: string;
|
|
1517
|
+
packageName?: string;
|
|
1518
|
+
};
|
|
1519
|
+
type BuildRESTFunction$1<T extends RESTFunctionDescriptor$1> = T extends RESTFunctionDescriptor$1<infer U> ? U : never;
|
|
1520
|
+
|
|
1521
|
+
declare global {
|
|
1522
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
1523
|
+
interface SymbolConstructor {
|
|
1524
|
+
readonly observable: symbol;
|
|
1525
|
+
}
|
|
1526
|
+
}
|
|
1353
1527
|
|
|
1354
|
-
declare
|
|
1355
|
-
declare const getRegisteredDomain: BuildRESTFunction<typeof getRegisteredDomain$1>;
|
|
1356
|
-
declare const listRegisteredDomains: BuildRESTFunction<typeof listRegisteredDomains$1>;
|
|
1357
|
-
declare const redeemRegisteredDomain: BuildRESTFunction<typeof redeemRegisteredDomain$1>;
|
|
1528
|
+
declare function checkDomainAvailability$1(httpClient: HttpClient$1): (domain: string) => Promise<CheckDomainAvailabilityResponse & CheckDomainAvailabilityResponseNonNullableFields>;
|
|
1358
1529
|
|
|
1359
|
-
declare const
|
|
1360
|
-
|
|
1361
|
-
declare const context$
|
|
1362
|
-
declare const context$1_redeemRegisteredDomain: typeof redeemRegisteredDomain;
|
|
1530
|
+
declare const checkDomainAvailability: BuildRESTFunction$1<typeof checkDomainAvailability$1>;
|
|
1531
|
+
|
|
1532
|
+
declare const context$1_checkDomainAvailability: typeof checkDomainAvailability;
|
|
1363
1533
|
declare namespace context$1 {
|
|
1364
|
-
export { context$
|
|
1534
|
+
export { context$1_checkDomainAvailability as checkDomainAvailability };
|
|
1365
1535
|
}
|
|
1366
1536
|
|
|
1367
1537
|
interface DomainSuggestion {
|
|
@@ -1398,6 +1568,39 @@ interface SuggestDomainsOptions {
|
|
|
1398
1568
|
limit?: number | null;
|
|
1399
1569
|
}
|
|
1400
1570
|
|
|
1571
|
+
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
1572
|
+
interface HttpClient {
|
|
1573
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
1574
|
+
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
1575
|
+
}
|
|
1576
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
1577
|
+
type HttpResponse<T = any> = {
|
|
1578
|
+
data: T;
|
|
1579
|
+
status: number;
|
|
1580
|
+
statusText: string;
|
|
1581
|
+
headers: any;
|
|
1582
|
+
request?: any;
|
|
1583
|
+
};
|
|
1584
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
1585
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
1586
|
+
url: string;
|
|
1587
|
+
data?: Data;
|
|
1588
|
+
params?: URLSearchParams;
|
|
1589
|
+
} & APIMetadata;
|
|
1590
|
+
type APIMetadata = {
|
|
1591
|
+
methodFqn?: string;
|
|
1592
|
+
entityFqdn?: string;
|
|
1593
|
+
packageName?: string;
|
|
1594
|
+
};
|
|
1595
|
+
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
1596
|
+
|
|
1597
|
+
declare global {
|
|
1598
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
1599
|
+
interface SymbolConstructor {
|
|
1600
|
+
readonly observable: symbol;
|
|
1601
|
+
}
|
|
1602
|
+
}
|
|
1603
|
+
|
|
1401
1604
|
declare function suggestDomains$1(httpClient: HttpClient): (query: string, options?: SuggestDomainsOptions) => Promise<SuggestDomainsResponse & SuggestDomainsResponseNonNullableFields>;
|
|
1402
1605
|
|
|
1403
1606
|
declare const suggestDomains: BuildRESTFunction<typeof suggestDomains$1>;
|
|
@@ -1407,4 +1610,4 @@ declare namespace context {
|
|
|
1407
1610
|
export { context_suggestDomains as suggestDomains };
|
|
1408
1611
|
}
|
|
1409
1612
|
|
|
1410
|
-
export { context$
|
|
1613
|
+
export { context$4 as connectedDomainSetupInfo, context$5 as connectedDomains, context$1 as domainAvailability, context$3 as domainDns, context as domainSuggestions, context$2 as registeredDomains };
|