@wix/domains 1.0.9 → 1.0.11
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/package.json +4 -4
- package/type-bundles/context.bundle.d.ts +14 -184
- package/type-bundles/index.bundle.d.ts +21 -181
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/domains",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"@wix/domains_connected-domains": "1.0.4",
|
|
23
23
|
"@wix/domains_domain-availability": "1.0.2",
|
|
24
24
|
"@wix/domains_domain-dns": "1.0.2",
|
|
25
|
-
"@wix/domains_domain-suggestions": "1.0.
|
|
26
|
-
"@wix/domains_registered-domains": "1.0.
|
|
25
|
+
"@wix/domains_domain-suggestions": "1.0.4",
|
|
26
|
+
"@wix/domains_registered-domains": "1.0.3"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"glob": "^10.4.1",
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"fqdn": ""
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
|
-
"falconPackageHash": "
|
|
50
|
+
"falconPackageHash": "d27bc6e80358d4e4c98b3fd2ff830c8334b58e4be38239808af301c4"
|
|
51
51
|
}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
type RESTFunctionDescriptor
|
|
2
|
-
interface HttpClient
|
|
3
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory
|
|
1
|
+
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
2
|
+
interface HttpClient {
|
|
3
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
4
4
|
fetchWithAuth: typeof fetch;
|
|
5
5
|
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
6
6
|
}
|
|
7
|
-
type RequestOptionsFactory
|
|
8
|
-
type HttpResponse
|
|
7
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
8
|
+
type HttpResponse<T = any> = {
|
|
9
9
|
data: T;
|
|
10
10
|
status: number;
|
|
11
11
|
statusText: string;
|
|
12
12
|
headers: any;
|
|
13
13
|
request?: any;
|
|
14
14
|
};
|
|
15
|
-
type RequestOptions
|
|
15
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
16
16
|
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
17
17
|
url: string;
|
|
18
18
|
data?: Data;
|
|
19
19
|
params?: URLSearchParams;
|
|
20
|
-
} & APIMetadata
|
|
21
|
-
type APIMetadata
|
|
20
|
+
} & APIMetadata;
|
|
21
|
+
type APIMetadata = {
|
|
22
22
|
methodFqn?: string;
|
|
23
23
|
entityFqdn?: string;
|
|
24
24
|
packageName?: string;
|
|
25
25
|
};
|
|
26
|
-
type BuildRESTFunction
|
|
26
|
+
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
27
27
|
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
28
28
|
__type: 'event-definition';
|
|
29
29
|
type: Type;
|
|
@@ -42,7 +42,7 @@ declare global {
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
declare function createRESTModule$5<T extends RESTFunctionDescriptor
|
|
45
|
+
declare function createRESTModule$5<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
46
46
|
|
|
47
47
|
declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
48
48
|
|
|
@@ -59,41 +59,7 @@ declare namespace context$5 {
|
|
|
59
59
|
export { context$5_createConnectedDomain as createConnectedDomain, context$5_getConnectedDomain as getConnectedDomain, context$5_listConnectedDomains as listConnectedDomains, context$5_onConnectedDomainRemoved as onConnectedDomainRemoved };
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
|
|
63
|
-
interface HttpClient$4 {
|
|
64
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$4<TResponse, TData>): Promise<HttpResponse$4<TResponse>>;
|
|
65
|
-
fetchWithAuth: typeof fetch;
|
|
66
|
-
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
67
|
-
}
|
|
68
|
-
type RequestOptionsFactory$4<TResponse = any, TData = any> = (context: any) => RequestOptions$4<TResponse, TData>;
|
|
69
|
-
type HttpResponse$4<T = any> = {
|
|
70
|
-
data: T;
|
|
71
|
-
status: number;
|
|
72
|
-
statusText: string;
|
|
73
|
-
headers: any;
|
|
74
|
-
request?: any;
|
|
75
|
-
};
|
|
76
|
-
type RequestOptions$4<_TResponse = any, Data = any> = {
|
|
77
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
78
|
-
url: string;
|
|
79
|
-
data?: Data;
|
|
80
|
-
params?: URLSearchParams;
|
|
81
|
-
} & APIMetadata$4;
|
|
82
|
-
type APIMetadata$4 = {
|
|
83
|
-
methodFqn?: string;
|
|
84
|
-
entityFqdn?: string;
|
|
85
|
-
packageName?: string;
|
|
86
|
-
};
|
|
87
|
-
type BuildRESTFunction$4<T extends RESTFunctionDescriptor$4> = T extends RESTFunctionDescriptor$4<infer U> ? U : never;
|
|
88
|
-
|
|
89
|
-
declare global {
|
|
90
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
91
|
-
interface SymbolConstructor {
|
|
92
|
-
readonly observable: symbol;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
declare function createRESTModule$4<T extends RESTFunctionDescriptor$4>(descriptor: T, elevated?: boolean): BuildRESTFunction$4<T> & T;
|
|
62
|
+
declare function createRESTModule$4<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
97
63
|
|
|
98
64
|
declare const getConnectedDomainSetupInfo: ReturnType<typeof createRESTModule$4<typeof publicGetConnectedDomainSetupInfo>>;
|
|
99
65
|
|
|
@@ -102,41 +68,7 @@ declare namespace context$4 {
|
|
|
102
68
|
export { context$4_getConnectedDomainSetupInfo as getConnectedDomainSetupInfo };
|
|
103
69
|
}
|
|
104
70
|
|
|
105
|
-
|
|
106
|
-
interface HttpClient$3 {
|
|
107
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$3<TResponse, TData>): Promise<HttpResponse$3<TResponse>>;
|
|
108
|
-
fetchWithAuth: typeof fetch;
|
|
109
|
-
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
110
|
-
}
|
|
111
|
-
type RequestOptionsFactory$3<TResponse = any, TData = any> = (context: any) => RequestOptions$3<TResponse, TData>;
|
|
112
|
-
type HttpResponse$3<T = any> = {
|
|
113
|
-
data: T;
|
|
114
|
-
status: number;
|
|
115
|
-
statusText: string;
|
|
116
|
-
headers: any;
|
|
117
|
-
request?: any;
|
|
118
|
-
};
|
|
119
|
-
type RequestOptions$3<_TResponse = any, Data = any> = {
|
|
120
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
121
|
-
url: string;
|
|
122
|
-
data?: Data;
|
|
123
|
-
params?: URLSearchParams;
|
|
124
|
-
} & APIMetadata$3;
|
|
125
|
-
type APIMetadata$3 = {
|
|
126
|
-
methodFqn?: string;
|
|
127
|
-
entityFqdn?: string;
|
|
128
|
-
packageName?: string;
|
|
129
|
-
};
|
|
130
|
-
type BuildRESTFunction$3<T extends RESTFunctionDescriptor$3> = T extends RESTFunctionDescriptor$3<infer U> ? U : never;
|
|
131
|
-
|
|
132
|
-
declare global {
|
|
133
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
134
|
-
interface SymbolConstructor {
|
|
135
|
-
readonly observable: symbol;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
declare function createRESTModule$3<T extends RESTFunctionDescriptor$3>(descriptor: T, elevated?: boolean): BuildRESTFunction$3<T> & T;
|
|
71
|
+
declare function createRESTModule$3<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
140
72
|
|
|
141
73
|
declare const createDnsZone: ReturnType<typeof createRESTModule$3<typeof publicCreateDnsZone>>;
|
|
142
74
|
declare const getDnsZone: ReturnType<typeof createRESTModule$3<typeof publicGetDnsZone>>;
|
|
@@ -153,41 +85,7 @@ declare namespace context$3 {
|
|
|
153
85
|
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 };
|
|
154
86
|
}
|
|
155
87
|
|
|
156
|
-
|
|
157
|
-
interface HttpClient$2 {
|
|
158
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$2<TResponse, TData>): Promise<HttpResponse$2<TResponse>>;
|
|
159
|
-
fetchWithAuth: typeof fetch;
|
|
160
|
-
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
161
|
-
}
|
|
162
|
-
type RequestOptionsFactory$2<TResponse = any, TData = any> = (context: any) => RequestOptions$2<TResponse, TData>;
|
|
163
|
-
type HttpResponse$2<T = any> = {
|
|
164
|
-
data: T;
|
|
165
|
-
status: number;
|
|
166
|
-
statusText: string;
|
|
167
|
-
headers: any;
|
|
168
|
-
request?: any;
|
|
169
|
-
};
|
|
170
|
-
type RequestOptions$2<_TResponse = any, Data = any> = {
|
|
171
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
172
|
-
url: string;
|
|
173
|
-
data?: Data;
|
|
174
|
-
params?: URLSearchParams;
|
|
175
|
-
} & APIMetadata$2;
|
|
176
|
-
type APIMetadata$2 = {
|
|
177
|
-
methodFqn?: string;
|
|
178
|
-
entityFqdn?: string;
|
|
179
|
-
packageName?: string;
|
|
180
|
-
};
|
|
181
|
-
type BuildRESTFunction$2<T extends RESTFunctionDescriptor$2> = T extends RESTFunctionDescriptor$2<infer U> ? U : never;
|
|
182
|
-
|
|
183
|
-
declare global {
|
|
184
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
185
|
-
interface SymbolConstructor {
|
|
186
|
-
readonly observable: symbol;
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
declare function createRESTModule$2<T extends RESTFunctionDescriptor$2>(descriptor: T, elevated?: boolean): BuildRESTFunction$2<T> & T;
|
|
88
|
+
declare function createRESTModule$2<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
191
89
|
|
|
192
90
|
declare const createRegisteredDomain: ReturnType<typeof createRESTModule$2<typeof publicCreateRegisteredDomain>>;
|
|
193
91
|
declare const getRegisteredDomain: ReturnType<typeof createRESTModule$2<typeof publicGetRegisteredDomain>>;
|
|
@@ -202,41 +100,7 @@ declare namespace context$2 {
|
|
|
202
100
|
export { context$2_createRegisteredDomain as createRegisteredDomain, context$2_getRegisteredDomain as getRegisteredDomain, context$2_listRegisteredDomains as listRegisteredDomains, context$2_redeemRegisteredDomain as redeemRegisteredDomain };
|
|
203
101
|
}
|
|
204
102
|
|
|
205
|
-
|
|
206
|
-
interface HttpClient$1 {
|
|
207
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
|
|
208
|
-
fetchWithAuth: typeof fetch;
|
|
209
|
-
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
210
|
-
}
|
|
211
|
-
type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
|
|
212
|
-
type HttpResponse$1<T = any> = {
|
|
213
|
-
data: T;
|
|
214
|
-
status: number;
|
|
215
|
-
statusText: string;
|
|
216
|
-
headers: any;
|
|
217
|
-
request?: any;
|
|
218
|
-
};
|
|
219
|
-
type RequestOptions$1<_TResponse = any, Data = any> = {
|
|
220
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
221
|
-
url: string;
|
|
222
|
-
data?: Data;
|
|
223
|
-
params?: URLSearchParams;
|
|
224
|
-
} & APIMetadata$1;
|
|
225
|
-
type APIMetadata$1 = {
|
|
226
|
-
methodFqn?: string;
|
|
227
|
-
entityFqdn?: string;
|
|
228
|
-
packageName?: string;
|
|
229
|
-
};
|
|
230
|
-
type BuildRESTFunction$1<T extends RESTFunctionDescriptor$1> = T extends RESTFunctionDescriptor$1<infer U> ? U : never;
|
|
231
|
-
|
|
232
|
-
declare global {
|
|
233
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
234
|
-
interface SymbolConstructor {
|
|
235
|
-
readonly observable: symbol;
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
declare function createRESTModule$1<T extends RESTFunctionDescriptor$1>(descriptor: T, elevated?: boolean): BuildRESTFunction$1<T> & T;
|
|
103
|
+
declare function createRESTModule$1<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
240
104
|
|
|
241
105
|
declare const checkDomainAvailability: ReturnType<typeof createRESTModule$1<typeof publicCheckDomainAvailability>>;
|
|
242
106
|
|
|
@@ -245,40 +109,6 @@ declare namespace context$1 {
|
|
|
245
109
|
export { context$1_checkDomainAvailability as checkDomainAvailability };
|
|
246
110
|
}
|
|
247
111
|
|
|
248
|
-
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
249
|
-
interface HttpClient {
|
|
250
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
251
|
-
fetchWithAuth: typeof fetch;
|
|
252
|
-
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
253
|
-
}
|
|
254
|
-
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
255
|
-
type HttpResponse<T = any> = {
|
|
256
|
-
data: T;
|
|
257
|
-
status: number;
|
|
258
|
-
statusText: string;
|
|
259
|
-
headers: any;
|
|
260
|
-
request?: any;
|
|
261
|
-
};
|
|
262
|
-
type RequestOptions<_TResponse = any, Data = any> = {
|
|
263
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
264
|
-
url: string;
|
|
265
|
-
data?: Data;
|
|
266
|
-
params?: URLSearchParams;
|
|
267
|
-
} & APIMetadata;
|
|
268
|
-
type APIMetadata = {
|
|
269
|
-
methodFqn?: string;
|
|
270
|
-
entityFqdn?: string;
|
|
271
|
-
packageName?: string;
|
|
272
|
-
};
|
|
273
|
-
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
274
|
-
|
|
275
|
-
declare global {
|
|
276
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
277
|
-
interface SymbolConstructor {
|
|
278
|
-
readonly observable: symbol;
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
|
|
282
112
|
declare function createRESTModule<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
283
113
|
|
|
284
114
|
declare const suggestDomains: ReturnType<typeof createRESTModule<typeof publicSuggestDomains>>;
|
|
@@ -381,26 +381,26 @@ interface ListConnectedDomainsOptions {
|
|
|
381
381
|
paging?: CursorPaging$1;
|
|
382
382
|
}
|
|
383
383
|
|
|
384
|
-
interface HttpClient
|
|
385
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory
|
|
384
|
+
interface HttpClient {
|
|
385
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
386
386
|
fetchWithAuth: typeof fetch;
|
|
387
387
|
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
388
388
|
}
|
|
389
|
-
type RequestOptionsFactory
|
|
390
|
-
type HttpResponse
|
|
389
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
390
|
+
type HttpResponse<T = any> = {
|
|
391
391
|
data: T;
|
|
392
392
|
status: number;
|
|
393
393
|
statusText: string;
|
|
394
394
|
headers: any;
|
|
395
395
|
request?: any;
|
|
396
396
|
};
|
|
397
|
-
type RequestOptions
|
|
397
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
398
398
|
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
399
399
|
url: string;
|
|
400
400
|
data?: Data;
|
|
401
401
|
params?: URLSearchParams;
|
|
402
|
-
} & APIMetadata
|
|
403
|
-
type APIMetadata
|
|
402
|
+
} & APIMetadata;
|
|
403
|
+
type APIMetadata = {
|
|
404
404
|
methodFqn?: string;
|
|
405
405
|
entityFqdn?: string;
|
|
406
406
|
packageName?: string;
|
|
@@ -424,7 +424,7 @@ declare global {
|
|
|
424
424
|
declare const __metadata$5: {
|
|
425
425
|
PACKAGE_NAME: string;
|
|
426
426
|
};
|
|
427
|
-
declare function createConnectedDomain(httpClient: HttpClient
|
|
427
|
+
declare function createConnectedDomain(httpClient: HttpClient): (connectedDomain: ConnectedDomain) => Promise<ConnectedDomain & {
|
|
428
428
|
_id: string;
|
|
429
429
|
domain: string;
|
|
430
430
|
connectionType: ConnectionType$1;
|
|
@@ -437,7 +437,7 @@ declare function createConnectedDomain(httpClient: HttpClient$5): (connectedDoma
|
|
|
437
437
|
suppressNotifications: boolean;
|
|
438
438
|
dnsPropagationStatus: DnsPropagationStatus$1;
|
|
439
439
|
}>;
|
|
440
|
-
declare function getConnectedDomain(httpClient: HttpClient
|
|
440
|
+
declare function getConnectedDomain(httpClient: HttpClient): (connectedDomainId: string) => Promise<ConnectedDomain & {
|
|
441
441
|
_id: string;
|
|
442
442
|
domain: string;
|
|
443
443
|
connectionType: ConnectionType$1;
|
|
@@ -450,7 +450,7 @@ declare function getConnectedDomain(httpClient: HttpClient$5): (connectedDomainI
|
|
|
450
450
|
suppressNotifications: boolean;
|
|
451
451
|
dnsPropagationStatus: DnsPropagationStatus$1;
|
|
452
452
|
}>;
|
|
453
|
-
declare function listConnectedDomains(httpClient: HttpClient
|
|
453
|
+
declare function listConnectedDomains(httpClient: HttpClient): (options?: ListConnectedDomainsOptions) => Promise<ListConnectedDomainsResponse & ListConnectedDomainsResponseNonNullableFields>;
|
|
454
454
|
declare const onConnectedDomainRemoved: EventDefinition<ConnectedDomainRemovedEnvelope, "wix.premium.domains.v1.connected_domain_removed">;
|
|
455
455
|
|
|
456
456
|
type index_d$5_BaseEventMetadata = BaseEventMetadata;
|
|
@@ -693,42 +693,10 @@ interface GetConnectedDomainSetupInfoResponseNonNullableFields {
|
|
|
693
693
|
};
|
|
694
694
|
}
|
|
695
695
|
|
|
696
|
-
interface HttpClient$4 {
|
|
697
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$4<TResponse, TData>): Promise<HttpResponse$4<TResponse>>;
|
|
698
|
-
fetchWithAuth: typeof fetch;
|
|
699
|
-
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
700
|
-
}
|
|
701
|
-
type RequestOptionsFactory$4<TResponse = any, TData = any> = (context: any) => RequestOptions$4<TResponse, TData>;
|
|
702
|
-
type HttpResponse$4<T = any> = {
|
|
703
|
-
data: T;
|
|
704
|
-
status: number;
|
|
705
|
-
statusText: string;
|
|
706
|
-
headers: any;
|
|
707
|
-
request?: any;
|
|
708
|
-
};
|
|
709
|
-
type RequestOptions$4<_TResponse = any, Data = any> = {
|
|
710
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
711
|
-
url: string;
|
|
712
|
-
data?: Data;
|
|
713
|
-
params?: URLSearchParams;
|
|
714
|
-
} & APIMetadata$4;
|
|
715
|
-
type APIMetadata$4 = {
|
|
716
|
-
methodFqn?: string;
|
|
717
|
-
entityFqdn?: string;
|
|
718
|
-
packageName?: string;
|
|
719
|
-
};
|
|
720
|
-
|
|
721
|
-
declare global {
|
|
722
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
723
|
-
interface SymbolConstructor {
|
|
724
|
-
readonly observable: symbol;
|
|
725
|
-
}
|
|
726
|
-
}
|
|
727
|
-
|
|
728
696
|
declare const __metadata$4: {
|
|
729
697
|
PACKAGE_NAME: string;
|
|
730
698
|
};
|
|
731
|
-
declare function getConnectedDomainSetupInfo(httpClient: HttpClient
|
|
699
|
+
declare function getConnectedDomainSetupInfo(httpClient: HttpClient): (connectedDomainId: string) => Promise<GetConnectedDomainSetupInfoResponse & GetConnectedDomainSetupInfoResponseNonNullableFields>;
|
|
732
700
|
|
|
733
701
|
type index_d$4_ARecord = ARecord;
|
|
734
702
|
type index_d$4_CnameRecord = CnameRecord;
|
|
@@ -1066,42 +1034,10 @@ interface UpdateDnsZoneOptions {
|
|
|
1066
1034
|
dnssecEnabled?: boolean | null;
|
|
1067
1035
|
}
|
|
1068
1036
|
|
|
1069
|
-
interface HttpClient$3 {
|
|
1070
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$3<TResponse, TData>): Promise<HttpResponse$3<TResponse>>;
|
|
1071
|
-
fetchWithAuth: typeof fetch;
|
|
1072
|
-
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
1073
|
-
}
|
|
1074
|
-
type RequestOptionsFactory$3<TResponse = any, TData = any> = (context: any) => RequestOptions$3<TResponse, TData>;
|
|
1075
|
-
type HttpResponse$3<T = any> = {
|
|
1076
|
-
data: T;
|
|
1077
|
-
status: number;
|
|
1078
|
-
statusText: string;
|
|
1079
|
-
headers: any;
|
|
1080
|
-
request?: any;
|
|
1081
|
-
};
|
|
1082
|
-
type RequestOptions$3<_TResponse = any, Data = any> = {
|
|
1083
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
1084
|
-
url: string;
|
|
1085
|
-
data?: Data;
|
|
1086
|
-
params?: URLSearchParams;
|
|
1087
|
-
} & APIMetadata$3;
|
|
1088
|
-
type APIMetadata$3 = {
|
|
1089
|
-
methodFqn?: string;
|
|
1090
|
-
entityFqdn?: string;
|
|
1091
|
-
packageName?: string;
|
|
1092
|
-
};
|
|
1093
|
-
|
|
1094
|
-
declare global {
|
|
1095
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
1096
|
-
interface SymbolConstructor {
|
|
1097
|
-
readonly observable: symbol;
|
|
1098
|
-
}
|
|
1099
|
-
}
|
|
1100
|
-
|
|
1101
1037
|
declare const __metadata$3: {
|
|
1102
1038
|
PACKAGE_NAME: string;
|
|
1103
1039
|
};
|
|
1104
|
-
declare function createDnsZone(httpClient: HttpClient
|
|
1040
|
+
declare function createDnsZone(httpClient: HttpClient): (dnsZone: DnsZone) => Promise<DnsZone & {
|
|
1105
1041
|
domainName: string;
|
|
1106
1042
|
records: {
|
|
1107
1043
|
type: RecordType;
|
|
@@ -1112,7 +1048,7 @@ declare function createDnsZone(httpClient: HttpClient$3): (dnsZone: DnsZone) =>
|
|
|
1112
1048
|
_id: string;
|
|
1113
1049
|
dnssecEnabled: boolean;
|
|
1114
1050
|
}>;
|
|
1115
|
-
declare function getDnsZone(httpClient: HttpClient
|
|
1051
|
+
declare function getDnsZone(httpClient: HttpClient): (domainName: string) => Promise<DnsZone & {
|
|
1116
1052
|
domainName: string;
|
|
1117
1053
|
records: {
|
|
1118
1054
|
type: RecordType;
|
|
@@ -1123,9 +1059,9 @@ declare function getDnsZone(httpClient: HttpClient$3): (domainName: string) => P
|
|
|
1123
1059
|
_id: string;
|
|
1124
1060
|
dnssecEnabled: boolean;
|
|
1125
1061
|
}>;
|
|
1126
|
-
declare function updateDnsZone(httpClient: HttpClient
|
|
1127
|
-
declare function deleteDnsZone(httpClient: HttpClient
|
|
1128
|
-
declare function previewDnsZone(httpClient: HttpClient
|
|
1062
|
+
declare function updateDnsZone(httpClient: HttpClient): (domainName: string, options?: UpdateDnsZoneOptions) => Promise<UpdateDnsZoneResponse & UpdateDnsZoneResponseNonNullableFields>;
|
|
1063
|
+
declare function deleteDnsZone(httpClient: HttpClient): (domainName: string) => Promise<void>;
|
|
1064
|
+
declare function previewDnsZone(httpClient: HttpClient): (domainName: string) => Promise<PreviewDnsZoneResponse & PreviewDnsZoneResponseNonNullableFields>;
|
|
1129
1065
|
|
|
1130
1066
|
type index_d$3_CreateDnsZoneRequest = CreateDnsZoneRequest;
|
|
1131
1067
|
type index_d$3_CreateDnsZoneResponse = CreateDnsZoneResponse;
|
|
@@ -1985,42 +1921,10 @@ interface ListRegisteredDomainsOptions {
|
|
|
1985
1921
|
paging?: CursorPaging;
|
|
1986
1922
|
}
|
|
1987
1923
|
|
|
1988
|
-
interface HttpClient$2 {
|
|
1989
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$2<TResponse, TData>): Promise<HttpResponse$2<TResponse>>;
|
|
1990
|
-
fetchWithAuth: typeof fetch;
|
|
1991
|
-
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
1992
|
-
}
|
|
1993
|
-
type RequestOptionsFactory$2<TResponse = any, TData = any> = (context: any) => RequestOptions$2<TResponse, TData>;
|
|
1994
|
-
type HttpResponse$2<T = any> = {
|
|
1995
|
-
data: T;
|
|
1996
|
-
status: number;
|
|
1997
|
-
statusText: string;
|
|
1998
|
-
headers: any;
|
|
1999
|
-
request?: any;
|
|
2000
|
-
};
|
|
2001
|
-
type RequestOptions$2<_TResponse = any, Data = any> = {
|
|
2002
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
2003
|
-
url: string;
|
|
2004
|
-
data?: Data;
|
|
2005
|
-
params?: URLSearchParams;
|
|
2006
|
-
} & APIMetadata$2;
|
|
2007
|
-
type APIMetadata$2 = {
|
|
2008
|
-
methodFqn?: string;
|
|
2009
|
-
entityFqdn?: string;
|
|
2010
|
-
packageName?: string;
|
|
2011
|
-
};
|
|
2012
|
-
|
|
2013
|
-
declare global {
|
|
2014
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
2015
|
-
interface SymbolConstructor {
|
|
2016
|
-
readonly observable: symbol;
|
|
2017
|
-
}
|
|
2018
|
-
}
|
|
2019
|
-
|
|
2020
1924
|
declare const __metadata$2: {
|
|
2021
1925
|
PACKAGE_NAME: string;
|
|
2022
1926
|
};
|
|
2023
|
-
declare function createRegisteredDomain(httpClient: HttpClient
|
|
1927
|
+
declare function createRegisteredDomain(httpClient: HttpClient): (registeredDomain: RegisteredDomain) => Promise<RegisteredDomain & {
|
|
2024
1928
|
pendingRegistrationInfo?: {
|
|
2025
1929
|
latestAttempt?: {
|
|
2026
1930
|
number: number;
|
|
@@ -2080,7 +1984,7 @@ declare function createRegisteredDomain(httpClient: HttpClient$2): (registeredDo
|
|
|
2080
1984
|
} | undefined;
|
|
2081
1985
|
dnsPropagationStatus: DnsPropagationStatus;
|
|
2082
1986
|
}>;
|
|
2083
|
-
declare function getRegisteredDomain(httpClient: HttpClient
|
|
1987
|
+
declare function getRegisteredDomain(httpClient: HttpClient): (registeredDomainId: string) => Promise<RegisteredDomain & {
|
|
2084
1988
|
pendingRegistrationInfo?: {
|
|
2085
1989
|
latestAttempt?: {
|
|
2086
1990
|
number: number;
|
|
@@ -2140,8 +2044,8 @@ declare function getRegisteredDomain(httpClient: HttpClient$2): (registeredDomai
|
|
|
2140
2044
|
} | undefined;
|
|
2141
2045
|
dnsPropagationStatus: DnsPropagationStatus;
|
|
2142
2046
|
}>;
|
|
2143
|
-
declare function listRegisteredDomains(httpClient: HttpClient
|
|
2144
|
-
declare function redeemRegisteredDomain(httpClient: HttpClient
|
|
2047
|
+
declare function listRegisteredDomains(httpClient: HttpClient): (options?: ListRegisteredDomainsOptions) => Promise<ListRegisteredDomainsResponse & ListRegisteredDomainsResponseNonNullableFields>;
|
|
2048
|
+
declare function redeemRegisteredDomain(httpClient: HttpClient): (registeredDomainId: string) => Promise<RedeemRegisteredDomainResponse & RedeemRegisteredDomainResponseNonNullableFields>;
|
|
2145
2049
|
|
|
2146
2050
|
type index_d$2_ActionEvent = ActionEvent;
|
|
2147
2051
|
type index_d$2_AssignmentType = AssignmentType;
|
|
@@ -2235,42 +2139,10 @@ interface CheckDomainAvailabilityResponseNonNullableFields {
|
|
|
2235
2139
|
};
|
|
2236
2140
|
}
|
|
2237
2141
|
|
|
2238
|
-
interface HttpClient$1 {
|
|
2239
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
|
|
2240
|
-
fetchWithAuth: typeof fetch;
|
|
2241
|
-
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
2242
|
-
}
|
|
2243
|
-
type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
|
|
2244
|
-
type HttpResponse$1<T = any> = {
|
|
2245
|
-
data: T;
|
|
2246
|
-
status: number;
|
|
2247
|
-
statusText: string;
|
|
2248
|
-
headers: any;
|
|
2249
|
-
request?: any;
|
|
2250
|
-
};
|
|
2251
|
-
type RequestOptions$1<_TResponse = any, Data = any> = {
|
|
2252
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
2253
|
-
url: string;
|
|
2254
|
-
data?: Data;
|
|
2255
|
-
params?: URLSearchParams;
|
|
2256
|
-
} & APIMetadata$1;
|
|
2257
|
-
type APIMetadata$1 = {
|
|
2258
|
-
methodFqn?: string;
|
|
2259
|
-
entityFqdn?: string;
|
|
2260
|
-
packageName?: string;
|
|
2261
|
-
};
|
|
2262
|
-
|
|
2263
|
-
declare global {
|
|
2264
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
2265
|
-
interface SymbolConstructor {
|
|
2266
|
-
readonly observable: symbol;
|
|
2267
|
-
}
|
|
2268
|
-
}
|
|
2269
|
-
|
|
2270
2142
|
declare const __metadata$1: {
|
|
2271
2143
|
PACKAGE_NAME: string;
|
|
2272
2144
|
};
|
|
2273
|
-
declare function checkDomainAvailability(httpClient: HttpClient
|
|
2145
|
+
declare function checkDomainAvailability(httpClient: HttpClient): (domain: string) => Promise<CheckDomainAvailabilityResponse & CheckDomainAvailabilityResponseNonNullableFields>;
|
|
2274
2146
|
|
|
2275
2147
|
type index_d$1_CheckDomainAvailabilityRequest = CheckDomainAvailabilityRequest;
|
|
2276
2148
|
type index_d$1_CheckDomainAvailabilityResponse = CheckDomainAvailabilityResponse;
|
|
@@ -2343,38 +2215,6 @@ interface SuggestDomainsOptions {
|
|
|
2343
2215
|
limit?: number | null;
|
|
2344
2216
|
}
|
|
2345
2217
|
|
|
2346
|
-
interface HttpClient {
|
|
2347
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
2348
|
-
fetchWithAuth: typeof fetch;
|
|
2349
|
-
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
2350
|
-
}
|
|
2351
|
-
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
2352
|
-
type HttpResponse<T = any> = {
|
|
2353
|
-
data: T;
|
|
2354
|
-
status: number;
|
|
2355
|
-
statusText: string;
|
|
2356
|
-
headers: any;
|
|
2357
|
-
request?: any;
|
|
2358
|
-
};
|
|
2359
|
-
type RequestOptions<_TResponse = any, Data = any> = {
|
|
2360
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
2361
|
-
url: string;
|
|
2362
|
-
data?: Data;
|
|
2363
|
-
params?: URLSearchParams;
|
|
2364
|
-
} & APIMetadata;
|
|
2365
|
-
type APIMetadata = {
|
|
2366
|
-
methodFqn?: string;
|
|
2367
|
-
entityFqdn?: string;
|
|
2368
|
-
packageName?: string;
|
|
2369
|
-
};
|
|
2370
|
-
|
|
2371
|
-
declare global {
|
|
2372
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
2373
|
-
interface SymbolConstructor {
|
|
2374
|
-
readonly observable: symbol;
|
|
2375
|
-
}
|
|
2376
|
-
}
|
|
2377
|
-
|
|
2378
2218
|
declare const __metadata: {
|
|
2379
2219
|
PACKAGE_NAME: string;
|
|
2380
2220
|
};
|