@wix/domains 1.0.33 → 1.0.34
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 +2 -2
- package/type-bundles/context.bundle.d.ts +209 -39
- package/type-bundles/index.bundle.d.ts +209 -39
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/domains",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.34",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"fqdn": ""
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
|
-
"falconPackageHash": "
|
|
51
|
+
"falconPackageHash": "33d1cf557489a412738b5f26d1f171bf93e97828e01b57fd11674ef2"
|
|
52
52
|
}
|
|
@@ -1,29 +1,29 @@
|
|
|
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>>;
|
|
1
|
+
type RESTFunctionDescriptor$5<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$5) => T;
|
|
2
|
+
interface HttpClient$5 {
|
|
3
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$5<TResponse, TData>): Promise<HttpResponse$5<TResponse>>;
|
|
4
4
|
fetchWithAuth: typeof fetch;
|
|
5
5
|
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
6
6
|
}
|
|
7
|
-
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
8
|
-
type HttpResponse<T = any> = {
|
|
7
|
+
type RequestOptionsFactory$5<TResponse = any, TData = any> = (context: any) => RequestOptions$5<TResponse, TData>;
|
|
8
|
+
type HttpResponse$5<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<_TResponse = any, Data = any> = {
|
|
15
|
+
type RequestOptions$5<_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$5;
|
|
21
|
+
type APIMetadata$5 = {
|
|
22
22
|
methodFqn?: string;
|
|
23
23
|
entityFqdn?: string;
|
|
24
24
|
packageName?: string;
|
|
25
25
|
};
|
|
26
|
-
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
26
|
+
type BuildRESTFunction$5<T extends RESTFunctionDescriptor$5> = T extends RESTFunctionDescriptor$5<infer U> ? U : never;
|
|
27
27
|
|
|
28
28
|
declare global {
|
|
29
29
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -347,7 +347,7 @@ interface ListConnectedDomainsOptions {
|
|
|
347
347
|
paging?: CursorPaging$2;
|
|
348
348
|
}
|
|
349
349
|
|
|
350
|
-
declare function createConnectedDomain$1(httpClient: HttpClient): CreateConnectedDomainSignature;
|
|
350
|
+
declare function createConnectedDomain$1(httpClient: HttpClient$5): CreateConnectedDomainSignature;
|
|
351
351
|
interface CreateConnectedDomainSignature {
|
|
352
352
|
/**
|
|
353
353
|
* Creates a `connectedDomain` object and starts the domain connection process. It may take up to 48 hours for the DNS changes to take effect.
|
|
@@ -366,7 +366,7 @@ interface CreateConnectedDomainSignature {
|
|
|
366
366
|
*/
|
|
367
367
|
(connectedDomain: ConnectedDomain): Promise<ConnectedDomain & ConnectedDomainNonNullableFields>;
|
|
368
368
|
}
|
|
369
|
-
declare function getConnectedDomain$1(httpClient: HttpClient): GetConnectedDomainSignature;
|
|
369
|
+
declare function getConnectedDomain$1(httpClient: HttpClient$5): GetConnectedDomainSignature;
|
|
370
370
|
interface GetConnectedDomainSignature {
|
|
371
371
|
/**
|
|
372
372
|
* Retrieves a connected domain.
|
|
@@ -380,7 +380,7 @@ interface GetConnectedDomainSignature {
|
|
|
380
380
|
*/
|
|
381
381
|
(connectedDomainId: string): Promise<ConnectedDomain & ConnectedDomainNonNullableFields>;
|
|
382
382
|
}
|
|
383
|
-
declare function deleteConnectedDomain$1(httpClient: HttpClient): DeleteConnectedDomainSignature;
|
|
383
|
+
declare function deleteConnectedDomain$1(httpClient: HttpClient$5): DeleteConnectedDomainSignature;
|
|
384
384
|
interface DeleteConnectedDomainSignature {
|
|
385
385
|
/**
|
|
386
386
|
* Deletes a `connectedDomain` object and removes related DNS records from
|
|
@@ -400,7 +400,7 @@ interface DeleteConnectedDomainSignature {
|
|
|
400
400
|
*/
|
|
401
401
|
(connectedDomainId: string): Promise<void>;
|
|
402
402
|
}
|
|
403
|
-
declare function listConnectedDomains$1(httpClient: HttpClient): ListConnectedDomainsSignature;
|
|
403
|
+
declare function listConnectedDomains$1(httpClient: HttpClient$5): ListConnectedDomainsSignature;
|
|
404
404
|
interface ListConnectedDomainsSignature {
|
|
405
405
|
/**
|
|
406
406
|
* Retrieves a list of up to 100 connected domains.
|
|
@@ -415,10 +415,10 @@ interface ListConnectedDomainsSignature {
|
|
|
415
415
|
(options?: ListConnectedDomainsOptions | undefined): Promise<ListConnectedDomainsResponse & ListConnectedDomainsResponseNonNullableFields>;
|
|
416
416
|
}
|
|
417
417
|
|
|
418
|
-
declare const createConnectedDomain: BuildRESTFunction<typeof createConnectedDomain$1> & typeof createConnectedDomain$1;
|
|
419
|
-
declare const getConnectedDomain: BuildRESTFunction<typeof getConnectedDomain$1> & typeof getConnectedDomain$1;
|
|
420
|
-
declare const deleteConnectedDomain: BuildRESTFunction<typeof deleteConnectedDomain$1> & typeof deleteConnectedDomain$1;
|
|
421
|
-
declare const listConnectedDomains: BuildRESTFunction<typeof listConnectedDomains$1> & typeof listConnectedDomains$1;
|
|
418
|
+
declare const createConnectedDomain: BuildRESTFunction$5<typeof createConnectedDomain$1> & typeof createConnectedDomain$1;
|
|
419
|
+
declare const getConnectedDomain: BuildRESTFunction$5<typeof getConnectedDomain$1> & typeof getConnectedDomain$1;
|
|
420
|
+
declare const deleteConnectedDomain: BuildRESTFunction$5<typeof deleteConnectedDomain$1> & typeof deleteConnectedDomain$1;
|
|
421
|
+
declare const listConnectedDomains: BuildRESTFunction$5<typeof listConnectedDomains$1> & typeof listConnectedDomains$1;
|
|
422
422
|
|
|
423
423
|
type context$5_ConnectedDomain = ConnectedDomain;
|
|
424
424
|
type context$5_ConnectedDomainNonNullableFields = ConnectedDomainNonNullableFields;
|
|
@@ -442,6 +442,40 @@ declare namespace context$5 {
|
|
|
442
442
|
export { type ActionEvent$2 as ActionEvent, AssignmentType$1 as AssignmentType, type context$5_ConnectedDomain as ConnectedDomain, type context$5_ConnectedDomainNonNullableFields as ConnectedDomainNonNullableFields, ConnectionType$1 as ConnectionType, type context$5_CreateConnectedDomainRequest as CreateConnectedDomainRequest, type context$5_CreateConnectedDomainResponse as CreateConnectedDomainResponse, type context$5_CreateConnectedDomainResponseNonNullableFields as CreateConnectedDomainResponseNonNullableFields, type CursorPaging$2 as CursorPaging, type CursorPagingMetadata$2 as CursorPagingMetadata, type Cursors$2 as Cursors, type context$5_DeleteConnectedDomainRequest as DeleteConnectedDomainRequest, type context$5_DeleteConnectedDomainResponse as DeleteConnectedDomainResponse, DnsPropagationStatus$1 as DnsPropagationStatus, type DomainEvent$2 as DomainEvent, type DomainEventBodyOneOf$2 as DomainEventBodyOneOf, type DomainRemovedEvent$1 as DomainRemovedEvent, type EntityCreatedEvent$2 as EntityCreatedEvent, type EntityDeletedEvent$2 as EntityDeletedEvent, type EntityUpdatedEvent$2 as EntityUpdatedEvent, type context$5_GetConnectedDomainRequest as GetConnectedDomainRequest, type context$5_GetConnectedDomainResponse as GetConnectedDomainResponse, type context$5_GetConnectedDomainResponseNonNullableFields as GetConnectedDomainResponseNonNullableFields, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, type context$5_ListConnectedDomainsOptions as ListConnectedDomainsOptions, type context$5_ListConnectedDomainsRequest as ListConnectedDomainsRequest, type context$5_ListConnectedDomainsResponse as ListConnectedDomainsResponse, type context$5_ListConnectedDomainsResponseNonNullableFields as ListConnectedDomainsResponseNonNullableFields, type MessageEnvelope$2 as MessageEnvelope, type RedirectAssignmentInfo$1 as RedirectAssignmentInfo, type RestoreInfo$2 as RestoreInfo, type SiteInfo$1 as SiteInfo, type SiteInfoAssignmentInfoOneOf$1 as SiteInfoAssignmentInfoOneOf, WebhookIdentityType$2 as WebhookIdentityType, context$5_createConnectedDomain as createConnectedDomain, context$5_deleteConnectedDomain as deleteConnectedDomain, context$5_getConnectedDomain as getConnectedDomain, context$5_listConnectedDomains as listConnectedDomains };
|
|
443
443
|
}
|
|
444
444
|
|
|
445
|
+
type RESTFunctionDescriptor$4<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$4) => T;
|
|
446
|
+
interface HttpClient$4 {
|
|
447
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$4<TResponse, TData>): Promise<HttpResponse$4<TResponse>>;
|
|
448
|
+
fetchWithAuth: typeof fetch;
|
|
449
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
450
|
+
}
|
|
451
|
+
type RequestOptionsFactory$4<TResponse = any, TData = any> = (context: any) => RequestOptions$4<TResponse, TData>;
|
|
452
|
+
type HttpResponse$4<T = any> = {
|
|
453
|
+
data: T;
|
|
454
|
+
status: number;
|
|
455
|
+
statusText: string;
|
|
456
|
+
headers: any;
|
|
457
|
+
request?: any;
|
|
458
|
+
};
|
|
459
|
+
type RequestOptions$4<_TResponse = any, Data = any> = {
|
|
460
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
461
|
+
url: string;
|
|
462
|
+
data?: Data;
|
|
463
|
+
params?: URLSearchParams;
|
|
464
|
+
} & APIMetadata$4;
|
|
465
|
+
type APIMetadata$4 = {
|
|
466
|
+
methodFqn?: string;
|
|
467
|
+
entityFqdn?: string;
|
|
468
|
+
packageName?: string;
|
|
469
|
+
};
|
|
470
|
+
type BuildRESTFunction$4<T extends RESTFunctionDescriptor$4> = T extends RESTFunctionDescriptor$4<infer U> ? U : never;
|
|
471
|
+
|
|
472
|
+
declare global {
|
|
473
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
474
|
+
interface SymbolConstructor {
|
|
475
|
+
readonly observable: symbol;
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
|
|
445
479
|
/**
|
|
446
480
|
* A `connectedDomainSetupInfo` object holds information the connected domain's
|
|
447
481
|
* external registrar and some DNS records. You can use this information to guide
|
|
@@ -649,7 +683,7 @@ interface GetConnectedDomainSetupInfoResponseNonNullableFields {
|
|
|
649
683
|
connectedDomainSetupInfo?: ConnectedDomainSetupInfoNonNullableFields;
|
|
650
684
|
}
|
|
651
685
|
|
|
652
|
-
declare function getConnectedDomainSetupInfo$1(httpClient: HttpClient): GetConnectedDomainSetupInfoSignature;
|
|
686
|
+
declare function getConnectedDomainSetupInfo$1(httpClient: HttpClient$4): GetConnectedDomainSetupInfoSignature;
|
|
653
687
|
interface GetConnectedDomainSetupInfoSignature {
|
|
654
688
|
/**
|
|
655
689
|
* Retrieves information for the initial setup of a connected domain.
|
|
@@ -664,7 +698,7 @@ interface GetConnectedDomainSetupInfoSignature {
|
|
|
664
698
|
(connectedDomainId: string): Promise<GetConnectedDomainSetupInfoResponse & GetConnectedDomainSetupInfoResponseNonNullableFields>;
|
|
665
699
|
}
|
|
666
700
|
|
|
667
|
-
declare const getConnectedDomainSetupInfo: BuildRESTFunction<typeof getConnectedDomainSetupInfo$1> & typeof getConnectedDomainSetupInfo$1;
|
|
701
|
+
declare const getConnectedDomainSetupInfo: BuildRESTFunction$4<typeof getConnectedDomainSetupInfo$1> & typeof getConnectedDomainSetupInfo$1;
|
|
668
702
|
|
|
669
703
|
type context$4_ARecord = ARecord;
|
|
670
704
|
type context$4_CnameRecord = CnameRecord;
|
|
@@ -689,6 +723,40 @@ declare namespace context$4 {
|
|
|
689
723
|
export { type context$4_ARecord as ARecord, type context$4_CnameRecord as CnameRecord, type context$4_ConnectedDomainSetupInfo as ConnectedDomainSetupInfo, type context$4_ConnectedDomainSetupInfoDnsRecordsOneOf as ConnectedDomainSetupInfoDnsRecordsOneOf, context$4_ConnectionType as ConnectionType, type context$4_GetConnectedDomainSetupInfoRequest as GetConnectedDomainSetupInfoRequest, type context$4_GetConnectedDomainSetupInfoResponse as GetConnectedDomainSetupInfoResponse, type context$4_GetConnectedDomainSetupInfoResponseNonNullableFields as GetConnectedDomainSetupInfoResponseNonNullableFields, type context$4_GetSetupInfoRequest as GetSetupInfoRequest, type context$4_GetSetupInfoResponse as GetSetupInfoResponse, type context$4_NameserverRecord as NameserverRecord, type context$4_NsRecord as NsRecord, type context$4_PointingRecords as PointingRecords, type context$4_PreCreateConnectedDomainRequest as PreCreateConnectedDomainRequest, type context$4_PreCreateConnectedDomainResponse as PreCreateConnectedDomainResponse, type context$4_Registrar as Registrar, type context$4_SubdomainRecords as SubdomainRecords, context$4_getConnectedDomainSetupInfo as getConnectedDomainSetupInfo };
|
|
690
724
|
}
|
|
691
725
|
|
|
726
|
+
type RESTFunctionDescriptor$3<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$3) => T;
|
|
727
|
+
interface HttpClient$3 {
|
|
728
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$3<TResponse, TData>): Promise<HttpResponse$3<TResponse>>;
|
|
729
|
+
fetchWithAuth: typeof fetch;
|
|
730
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
731
|
+
}
|
|
732
|
+
type RequestOptionsFactory$3<TResponse = any, TData = any> = (context: any) => RequestOptions$3<TResponse, TData>;
|
|
733
|
+
type HttpResponse$3<T = any> = {
|
|
734
|
+
data: T;
|
|
735
|
+
status: number;
|
|
736
|
+
statusText: string;
|
|
737
|
+
headers: any;
|
|
738
|
+
request?: any;
|
|
739
|
+
};
|
|
740
|
+
type RequestOptions$3<_TResponse = any, Data = any> = {
|
|
741
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
742
|
+
url: string;
|
|
743
|
+
data?: Data;
|
|
744
|
+
params?: URLSearchParams;
|
|
745
|
+
} & APIMetadata$3;
|
|
746
|
+
type APIMetadata$3 = {
|
|
747
|
+
methodFqn?: string;
|
|
748
|
+
entityFqdn?: string;
|
|
749
|
+
packageName?: string;
|
|
750
|
+
};
|
|
751
|
+
type BuildRESTFunction$3<T extends RESTFunctionDescriptor$3> = T extends RESTFunctionDescriptor$3<infer U> ? U : never;
|
|
752
|
+
|
|
753
|
+
declare global {
|
|
754
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
755
|
+
interface SymbolConstructor {
|
|
756
|
+
readonly observable: symbol;
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
|
|
692
760
|
/** DNS zones hold information about the records that map a domain's URL to an IP address. */
|
|
693
761
|
interface DnsZone {
|
|
694
762
|
/** Domain name including the TLD. Both root domains and subdomains are supported. */
|
|
@@ -1006,7 +1074,7 @@ interface UpdateDnsZoneOptions {
|
|
|
1006
1074
|
dnssecEnabled?: boolean | null;
|
|
1007
1075
|
}
|
|
1008
1076
|
|
|
1009
|
-
declare function createDnsZone$1(httpClient: HttpClient): CreateDnsZoneSignature;
|
|
1077
|
+
declare function createDnsZone$1(httpClient: HttpClient$3): CreateDnsZoneSignature;
|
|
1010
1078
|
interface CreateDnsZoneSignature {
|
|
1011
1079
|
/**
|
|
1012
1080
|
* Creates a DNS zone in [Google's Cloud DNS](https://cloud.google.com/dns).
|
|
@@ -1028,7 +1096,7 @@ interface CreateDnsZoneSignature {
|
|
|
1028
1096
|
*/
|
|
1029
1097
|
(dnsZone: DnsZone): Promise<DnsZone & DnsZoneNonNullableFields>;
|
|
1030
1098
|
}
|
|
1031
|
-
declare function getDnsZone$1(httpClient: HttpClient): GetDnsZoneSignature;
|
|
1099
|
+
declare function getDnsZone$1(httpClient: HttpClient$3): GetDnsZoneSignature;
|
|
1032
1100
|
interface GetDnsZoneSignature {
|
|
1033
1101
|
/**
|
|
1034
1102
|
* Retrieves the DNS zone belonging to the domain from
|
|
@@ -1041,7 +1109,7 @@ interface GetDnsZoneSignature {
|
|
|
1041
1109
|
*/
|
|
1042
1110
|
(domainName: string): Promise<DnsZone & DnsZoneNonNullableFields>;
|
|
1043
1111
|
}
|
|
1044
|
-
declare function updateDnsZone$1(httpClient: HttpClient): UpdateDnsZoneSignature;
|
|
1112
|
+
declare function updateDnsZone$1(httpClient: HttpClient$3): UpdateDnsZoneSignature;
|
|
1045
1113
|
interface UpdateDnsZoneSignature {
|
|
1046
1114
|
/**
|
|
1047
1115
|
* Adds DNS records to and removes DNS records from a DNS zone in
|
|
@@ -1062,7 +1130,7 @@ interface UpdateDnsZoneSignature {
|
|
|
1062
1130
|
*/
|
|
1063
1131
|
(domainName: string, options?: UpdateDnsZoneOptions | undefined): Promise<UpdateDnsZoneResponse & UpdateDnsZoneResponseNonNullableFields>;
|
|
1064
1132
|
}
|
|
1065
|
-
declare function deleteDnsZone$1(httpClient: HttpClient): DeleteDnsZoneSignature;
|
|
1133
|
+
declare function deleteDnsZone$1(httpClient: HttpClient$3): DeleteDnsZoneSignature;
|
|
1066
1134
|
interface DeleteDnsZoneSignature {
|
|
1067
1135
|
/**
|
|
1068
1136
|
* Deletes a DNS zone in [Google's Cloud DNS](https://cloud.google.com/dns).
|
|
@@ -1076,7 +1144,7 @@ interface DeleteDnsZoneSignature {
|
|
|
1076
1144
|
*/
|
|
1077
1145
|
(domainName: string): Promise<void>;
|
|
1078
1146
|
}
|
|
1079
|
-
declare function previewDnsZone$1(httpClient: HttpClient): PreviewDnsZoneSignature;
|
|
1147
|
+
declare function previewDnsZone$1(httpClient: HttpClient$3): PreviewDnsZoneSignature;
|
|
1080
1148
|
interface PreviewDnsZoneSignature {
|
|
1081
1149
|
/**
|
|
1082
1150
|
* Generates a preview for a DNS zone based on
|
|
@@ -1093,11 +1161,11 @@ interface PreviewDnsZoneSignature {
|
|
|
1093
1161
|
(domainName: string): Promise<PreviewDnsZoneResponse & PreviewDnsZoneResponseNonNullableFields>;
|
|
1094
1162
|
}
|
|
1095
1163
|
|
|
1096
|
-
declare const createDnsZone: BuildRESTFunction<typeof createDnsZone$1> & typeof createDnsZone$1;
|
|
1097
|
-
declare const getDnsZone: BuildRESTFunction<typeof getDnsZone$1> & typeof getDnsZone$1;
|
|
1098
|
-
declare const updateDnsZone: BuildRESTFunction<typeof updateDnsZone$1> & typeof updateDnsZone$1;
|
|
1099
|
-
declare const deleteDnsZone: BuildRESTFunction<typeof deleteDnsZone$1> & typeof deleteDnsZone$1;
|
|
1100
|
-
declare const previewDnsZone: BuildRESTFunction<typeof previewDnsZone$1> & typeof previewDnsZone$1;
|
|
1164
|
+
declare const createDnsZone: BuildRESTFunction$3<typeof createDnsZone$1> & typeof createDnsZone$1;
|
|
1165
|
+
declare const getDnsZone: BuildRESTFunction$3<typeof getDnsZone$1> & typeof getDnsZone$1;
|
|
1166
|
+
declare const updateDnsZone: BuildRESTFunction$3<typeof updateDnsZone$1> & typeof updateDnsZone$1;
|
|
1167
|
+
declare const deleteDnsZone: BuildRESTFunction$3<typeof deleteDnsZone$1> & typeof deleteDnsZone$1;
|
|
1168
|
+
declare const previewDnsZone: BuildRESTFunction$3<typeof previewDnsZone$1> & typeof previewDnsZone$1;
|
|
1101
1169
|
|
|
1102
1170
|
type context$3_CreateDnsZoneRequest = CreateDnsZoneRequest;
|
|
1103
1171
|
type context$3_CreateDnsZoneResponse = CreateDnsZoneResponse;
|
|
@@ -1131,6 +1199,40 @@ declare namespace context$3 {
|
|
|
1131
1199
|
export { type ActionEvent$1 as ActionEvent, type context$3_CreateDnsZoneRequest as CreateDnsZoneRequest, type context$3_CreateDnsZoneResponse as CreateDnsZoneResponse, type context$3_CreateDnsZoneResponseNonNullableFields as CreateDnsZoneResponseNonNullableFields, type context$3_DeleteDnsZoneRequest as DeleteDnsZoneRequest, type context$3_DeleteDnsZoneResponse as DeleteDnsZoneResponse, type context$3_DnsRecord as DnsRecord, type context$3_DnsRecordsChangedEvent as DnsRecordsChangedEvent, type context$3_DnsZone as DnsZone, type context$3_DnsZoneNonNullableFields as DnsZoneNonNullableFields, type context$3_DnssecInfo as DnssecInfo, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type context$3_DomainRemovedEvent as DomainRemovedEvent, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type context$3_GetDnsZoneRequest as GetDnsZoneRequest, type context$3_GetDnsZoneResponse as GetDnsZoneResponse, type context$3_GetDnsZoneResponseNonNullableFields as GetDnsZoneResponseNonNullableFields, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type MessageEnvelope$1 as MessageEnvelope, type context$3_PreviewDnsZoneRequest as PreviewDnsZoneRequest, type context$3_PreviewDnsZoneResponse as PreviewDnsZoneResponse, type context$3_PreviewDnsZoneResponseNonNullableFields as PreviewDnsZoneResponseNonNullableFields, context$3_RecordType as RecordType, type RestoreInfo$1 as RestoreInfo, type context$3_UpdateDnsZoneOptions as UpdateDnsZoneOptions, type context$3_UpdateDnsZoneRequest as UpdateDnsZoneRequest, type context$3_UpdateDnsZoneResponse as UpdateDnsZoneResponse, type context$3_UpdateDnsZoneResponseNonNullableFields as UpdateDnsZoneResponseNonNullableFields, WebhookIdentityType$1 as WebhookIdentityType, 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 };
|
|
1132
1200
|
}
|
|
1133
1201
|
|
|
1202
|
+
type RESTFunctionDescriptor$2<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$2) => T;
|
|
1203
|
+
interface HttpClient$2 {
|
|
1204
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$2<TResponse, TData>): Promise<HttpResponse$2<TResponse>>;
|
|
1205
|
+
fetchWithAuth: typeof fetch;
|
|
1206
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
1207
|
+
}
|
|
1208
|
+
type RequestOptionsFactory$2<TResponse = any, TData = any> = (context: any) => RequestOptions$2<TResponse, TData>;
|
|
1209
|
+
type HttpResponse$2<T = any> = {
|
|
1210
|
+
data: T;
|
|
1211
|
+
status: number;
|
|
1212
|
+
statusText: string;
|
|
1213
|
+
headers: any;
|
|
1214
|
+
request?: any;
|
|
1215
|
+
};
|
|
1216
|
+
type RequestOptions$2<_TResponse = any, Data = any> = {
|
|
1217
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
1218
|
+
url: string;
|
|
1219
|
+
data?: Data;
|
|
1220
|
+
params?: URLSearchParams;
|
|
1221
|
+
} & APIMetadata$2;
|
|
1222
|
+
type APIMetadata$2 = {
|
|
1223
|
+
methodFqn?: string;
|
|
1224
|
+
entityFqdn?: string;
|
|
1225
|
+
packageName?: string;
|
|
1226
|
+
};
|
|
1227
|
+
type BuildRESTFunction$2<T extends RESTFunctionDescriptor$2> = T extends RESTFunctionDescriptor$2<infer U> ? U : never;
|
|
1228
|
+
|
|
1229
|
+
declare global {
|
|
1230
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
1231
|
+
interface SymbolConstructor {
|
|
1232
|
+
readonly observable: symbol;
|
|
1233
|
+
}
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1134
1236
|
/**
|
|
1135
1237
|
* A registered domain is a domain that Wix has registered on behalf of a customer
|
|
1136
1238
|
* with an external registar.
|
|
@@ -1781,7 +1883,7 @@ interface ListRegisteredDomainsOptions {
|
|
|
1781
1883
|
paging?: CursorPaging$1;
|
|
1782
1884
|
}
|
|
1783
1885
|
|
|
1784
|
-
declare function createRegisteredDomain$1(httpClient: HttpClient): CreateRegisteredDomainSignature;
|
|
1886
|
+
declare function createRegisteredDomain$1(httpClient: HttpClient$2): CreateRegisteredDomainSignature;
|
|
1785
1887
|
interface CreateRegisteredDomainSignature {
|
|
1786
1888
|
/**
|
|
1787
1889
|
* Creates a registeredDomain object and starts the domain registration process that may take up to 48 hours to resolve.
|
|
@@ -1806,7 +1908,7 @@ interface CreateRegisteredDomainSignature {
|
|
|
1806
1908
|
*/
|
|
1807
1909
|
(registeredDomain: RegisteredDomain): Promise<RegisteredDomain & RegisteredDomainNonNullableFields>;
|
|
1808
1910
|
}
|
|
1809
|
-
declare function getRegisteredDomain$1(httpClient: HttpClient): GetRegisteredDomainSignature;
|
|
1911
|
+
declare function getRegisteredDomain$1(httpClient: HttpClient$2): GetRegisteredDomainSignature;
|
|
1810
1912
|
interface GetRegisteredDomainSignature {
|
|
1811
1913
|
/**
|
|
1812
1914
|
* Retrieves a registered domain.
|
|
@@ -1820,7 +1922,7 @@ interface GetRegisteredDomainSignature {
|
|
|
1820
1922
|
*/
|
|
1821
1923
|
(registeredDomainId: string): Promise<RegisteredDomain & RegisteredDomainNonNullableFields>;
|
|
1822
1924
|
}
|
|
1823
|
-
declare function listRegisteredDomains$1(httpClient: HttpClient): ListRegisteredDomainsSignature;
|
|
1925
|
+
declare function listRegisteredDomains$1(httpClient: HttpClient$2): ListRegisteredDomainsSignature;
|
|
1824
1926
|
interface ListRegisteredDomainsSignature {
|
|
1825
1927
|
/**
|
|
1826
1928
|
* Retrieves a list of up to 100 registered domains.
|
|
@@ -1834,7 +1936,7 @@ interface ListRegisteredDomainsSignature {
|
|
|
1834
1936
|
*/
|
|
1835
1937
|
(options?: ListRegisteredDomainsOptions | undefined): Promise<ListRegisteredDomainsResponse & ListRegisteredDomainsResponseNonNullableFields>;
|
|
1836
1938
|
}
|
|
1837
|
-
declare function redeemRegisteredDomain$1(httpClient: HttpClient): RedeemRegisteredDomainSignature;
|
|
1939
|
+
declare function redeemRegisteredDomain$1(httpClient: HttpClient$2): RedeemRegisteredDomainSignature;
|
|
1838
1940
|
interface RedeemRegisteredDomainSignature {
|
|
1839
1941
|
/**
|
|
1840
1942
|
* Redeems a registered domain that's currently in redemption.
|
|
@@ -1856,10 +1958,10 @@ interface RedeemRegisteredDomainSignature {
|
|
|
1856
1958
|
(registeredDomainId: string): Promise<RedeemRegisteredDomainResponse & RedeemRegisteredDomainResponseNonNullableFields>;
|
|
1857
1959
|
}
|
|
1858
1960
|
|
|
1859
|
-
declare const createRegisteredDomain: BuildRESTFunction<typeof createRegisteredDomain$1> & typeof createRegisteredDomain$1;
|
|
1860
|
-
declare const getRegisteredDomain: BuildRESTFunction<typeof getRegisteredDomain$1> & typeof getRegisteredDomain$1;
|
|
1861
|
-
declare const listRegisteredDomains: BuildRESTFunction<typeof listRegisteredDomains$1> & typeof listRegisteredDomains$1;
|
|
1862
|
-
declare const redeemRegisteredDomain: BuildRESTFunction<typeof redeemRegisteredDomain$1> & typeof redeemRegisteredDomain$1;
|
|
1961
|
+
declare const createRegisteredDomain: BuildRESTFunction$2<typeof createRegisteredDomain$1> & typeof createRegisteredDomain$1;
|
|
1962
|
+
declare const getRegisteredDomain: BuildRESTFunction$2<typeof getRegisteredDomain$1> & typeof getRegisteredDomain$1;
|
|
1963
|
+
declare const listRegisteredDomains: BuildRESTFunction$2<typeof listRegisteredDomains$1> & typeof listRegisteredDomains$1;
|
|
1964
|
+
declare const redeemRegisteredDomain: BuildRESTFunction$2<typeof redeemRegisteredDomain$1> & typeof redeemRegisteredDomain$1;
|
|
1863
1965
|
|
|
1864
1966
|
type context$2_ActionEvent = ActionEvent;
|
|
1865
1967
|
type context$2_AssignmentType = AssignmentType;
|
|
@@ -1921,6 +2023,40 @@ declare namespace context$2 {
|
|
|
1921
2023
|
export { type context$2_ActionEvent as ActionEvent, context$2_AssignmentType as AssignmentType, type context$2_ContactData as ContactData, type context$2_Contacts as Contacts, type context$2_CreateRegisteredDomainRequest as CreateRegisteredDomainRequest, type context$2_CreateRegisteredDomainResponse as CreateRegisteredDomainResponse, type context$2_CreateRegisteredDomainResponseNonNullableFields as CreateRegisteredDomainResponseNonNullableFields, type CursorPaging$1 as CursorPaging, type CursorPagingMetadata$1 as CursorPagingMetadata, type Cursors$1 as Cursors, type context$2_DeleteRegisteredDomainByIdRequest as DeleteRegisteredDomainByIdRequest, type context$2_DeleteRegisteredDomainByIdResponse as DeleteRegisteredDomainByIdResponse, context$2_DnsPropagationStatus as DnsPropagationStatus, type context$2_DomainEvent as DomainEvent, type context$2_DomainEventBodyOneOf as DomainEventBodyOneOf, type context$2_EntityCreatedEvent as EntityCreatedEvent, type context$2_EntityDeletedEvent as EntityDeletedEvent, type context$2_EntityUpdatedEvent as EntityUpdatedEvent, type context$2_Expired as Expired, type context$2_FailedRegistrationInfo as FailedRegistrationInfo, context$2_FailureCode as FailureCode, type context$2_GetRegisteredDomainRequest as GetRegisteredDomainRequest, type context$2_GetRegisteredDomainResponse as GetRegisteredDomainResponse, type context$2_GetRegisteredDomainResponseNonNullableFields as GetRegisteredDomainResponseNonNullableFields, context$2_ICANNConfirmationStatus as ICANNConfirmationStatus, type context$2_ICANNConfirmationStatusInfo as ICANNConfirmationStatusInfo, type context$2_ICANNConfirmationStatusInfoStatusOneOf as ICANNConfirmationStatusInfoStatusOneOf, type context$2_IdentificationData as IdentificationData, type context$2_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type context$2_LatestAttempt as LatestAttempt, type context$2_ListRegisteredDomainsOptions as ListRegisteredDomainsOptions, type context$2_ListRegisteredDomainsRequest as ListRegisteredDomainsRequest, type context$2_ListRegisteredDomainsResponse as ListRegisteredDomainsResponse, type context$2_ListRegisteredDomainsResponseNonNullableFields as ListRegisteredDomainsResponseNonNullableFields, type context$2_MessageEnvelope as MessageEnvelope, type context$2_Pending as Pending, type context$2_PendingRegistrationInfo as PendingRegistrationInfo, type context$2_RedeemRegisteredDomainRequest as RedeemRegisteredDomainRequest, type context$2_RedeemRegisteredDomainResponse as RedeemRegisteredDomainResponse, type context$2_RedeemRegisteredDomainResponseNonNullableFields as RedeemRegisteredDomainResponseNonNullableFields, type context$2_RedirectAssignmentInfo as RedirectAssignmentInfo, type context$2_RegisteredDomain as RegisteredDomain, type context$2_RegisteredDomainNonNullableFields as RegisteredDomainNonNullableFields, type context$2_RegisteredDomainStatusInfoOneOf as RegisteredDomainStatusInfoOneOf, type context$2_RestoreInfo as RestoreInfo, type context$2_SiteInfo as SiteInfo, type context$2_SiteInfoAssignmentInfoOneOf as SiteInfoAssignmentInfoOneOf, context$2_Status as Status, context$2_WebhookIdentityType as WebhookIdentityType, context$2_createRegisteredDomain as createRegisteredDomain, context$2_getRegisteredDomain as getRegisteredDomain, context$2_listRegisteredDomains as listRegisteredDomains, context$2_redeemRegisteredDomain as redeemRegisteredDomain };
|
|
1922
2024
|
}
|
|
1923
2025
|
|
|
2026
|
+
type RESTFunctionDescriptor$1<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$1) => T;
|
|
2027
|
+
interface HttpClient$1 {
|
|
2028
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
|
|
2029
|
+
fetchWithAuth: typeof fetch;
|
|
2030
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
2031
|
+
}
|
|
2032
|
+
type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
|
|
2033
|
+
type HttpResponse$1<T = any> = {
|
|
2034
|
+
data: T;
|
|
2035
|
+
status: number;
|
|
2036
|
+
statusText: string;
|
|
2037
|
+
headers: any;
|
|
2038
|
+
request?: any;
|
|
2039
|
+
};
|
|
2040
|
+
type RequestOptions$1<_TResponse = any, Data = any> = {
|
|
2041
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
2042
|
+
url: string;
|
|
2043
|
+
data?: Data;
|
|
2044
|
+
params?: URLSearchParams;
|
|
2045
|
+
} & APIMetadata$1;
|
|
2046
|
+
type APIMetadata$1 = {
|
|
2047
|
+
methodFqn?: string;
|
|
2048
|
+
entityFqdn?: string;
|
|
2049
|
+
packageName?: string;
|
|
2050
|
+
};
|
|
2051
|
+
type BuildRESTFunction$1<T extends RESTFunctionDescriptor$1> = T extends RESTFunctionDescriptor$1<infer U> ? U : never;
|
|
2052
|
+
|
|
2053
|
+
declare global {
|
|
2054
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
2055
|
+
interface SymbolConstructor {
|
|
2056
|
+
readonly observable: symbol;
|
|
2057
|
+
}
|
|
2058
|
+
}
|
|
2059
|
+
|
|
1924
2060
|
interface DomainAvailability {
|
|
1925
2061
|
/** Domain name including TLD. For example, `my-new-domain.com`. */
|
|
1926
2062
|
domain?: string;
|
|
@@ -1956,7 +2092,7 @@ interface CheckDomainAvailabilityResponseNonNullableFields {
|
|
|
1956
2092
|
availability?: DomainAvailabilityNonNullableFields;
|
|
1957
2093
|
}
|
|
1958
2094
|
|
|
1959
|
-
declare function checkDomainAvailability$1(httpClient: HttpClient): CheckDomainAvailabilitySignature;
|
|
2095
|
+
declare function checkDomainAvailability$1(httpClient: HttpClient$1): CheckDomainAvailabilitySignature;
|
|
1960
2096
|
interface CheckDomainAvailabilitySignature {
|
|
1961
2097
|
/**
|
|
1962
2098
|
* Checks whether the given domain is available for purchase.
|
|
@@ -1978,7 +2114,7 @@ interface CheckDomainAvailabilitySignature {
|
|
|
1978
2114
|
(domain: string): Promise<CheckDomainAvailabilityResponse & CheckDomainAvailabilityResponseNonNullableFields>;
|
|
1979
2115
|
}
|
|
1980
2116
|
|
|
1981
|
-
declare const checkDomainAvailability: BuildRESTFunction<typeof checkDomainAvailability$1> & typeof checkDomainAvailability$1;
|
|
2117
|
+
declare const checkDomainAvailability: BuildRESTFunction$1<typeof checkDomainAvailability$1> & typeof checkDomainAvailability$1;
|
|
1982
2118
|
|
|
1983
2119
|
type context$1_CheckDomainAvailabilityRequest = CheckDomainAvailabilityRequest;
|
|
1984
2120
|
type context$1_CheckDomainAvailabilityResponse = CheckDomainAvailabilityResponse;
|
|
@@ -1989,6 +2125,40 @@ declare namespace context$1 {
|
|
|
1989
2125
|
export { type context$1_CheckDomainAvailabilityRequest as CheckDomainAvailabilityRequest, type context$1_CheckDomainAvailabilityResponse as CheckDomainAvailabilityResponse, type context$1_CheckDomainAvailabilityResponseNonNullableFields as CheckDomainAvailabilityResponseNonNullableFields, type context$1_DomainAvailability as DomainAvailability, context$1_checkDomainAvailability as checkDomainAvailability };
|
|
1990
2126
|
}
|
|
1991
2127
|
|
|
2128
|
+
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
2129
|
+
interface HttpClient {
|
|
2130
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
2131
|
+
fetchWithAuth: typeof fetch;
|
|
2132
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
2133
|
+
}
|
|
2134
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
2135
|
+
type HttpResponse<T = any> = {
|
|
2136
|
+
data: T;
|
|
2137
|
+
status: number;
|
|
2138
|
+
statusText: string;
|
|
2139
|
+
headers: any;
|
|
2140
|
+
request?: any;
|
|
2141
|
+
};
|
|
2142
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
2143
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
2144
|
+
url: string;
|
|
2145
|
+
data?: Data;
|
|
2146
|
+
params?: URLSearchParams;
|
|
2147
|
+
} & APIMetadata;
|
|
2148
|
+
type APIMetadata = {
|
|
2149
|
+
methodFqn?: string;
|
|
2150
|
+
entityFqdn?: string;
|
|
2151
|
+
packageName?: string;
|
|
2152
|
+
};
|
|
2153
|
+
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
2154
|
+
|
|
2155
|
+
declare global {
|
|
2156
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
2157
|
+
interface SymbolConstructor {
|
|
2158
|
+
readonly observable: symbol;
|
|
2159
|
+
}
|
|
2160
|
+
}
|
|
2161
|
+
|
|
1992
2162
|
interface DomainSuggestion {
|
|
1993
2163
|
/** Suggested domain name including TLD. */
|
|
1994
2164
|
domain?: string;
|
|
@@ -1,29 +1,29 @@
|
|
|
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>>;
|
|
1
|
+
type RESTFunctionDescriptor$5<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$5) => T;
|
|
2
|
+
interface HttpClient$5 {
|
|
3
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$5<TResponse, TData>): Promise<HttpResponse$5<TResponse>>;
|
|
4
4
|
fetchWithAuth: typeof fetch;
|
|
5
5
|
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
6
6
|
}
|
|
7
|
-
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
8
|
-
type HttpResponse<T = any> = {
|
|
7
|
+
type RequestOptionsFactory$5<TResponse = any, TData = any> = (context: any) => RequestOptions$5<TResponse, TData>;
|
|
8
|
+
type HttpResponse$5<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<_TResponse = any, Data = any> = {
|
|
15
|
+
type RequestOptions$5<_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$5;
|
|
21
|
+
type APIMetadata$5 = {
|
|
22
22
|
methodFqn?: string;
|
|
23
23
|
entityFqdn?: string;
|
|
24
24
|
packageName?: string;
|
|
25
25
|
};
|
|
26
|
-
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
26
|
+
type BuildRESTFunction$5<T extends RESTFunctionDescriptor$5> = T extends RESTFunctionDescriptor$5<infer U> ? U : never;
|
|
27
27
|
|
|
28
28
|
declare global {
|
|
29
29
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -347,7 +347,7 @@ interface ListConnectedDomainsOptions {
|
|
|
347
347
|
paging?: CursorPaging$2;
|
|
348
348
|
}
|
|
349
349
|
|
|
350
|
-
declare function createConnectedDomain$1(httpClient: HttpClient): CreateConnectedDomainSignature;
|
|
350
|
+
declare function createConnectedDomain$1(httpClient: HttpClient$5): CreateConnectedDomainSignature;
|
|
351
351
|
interface CreateConnectedDomainSignature {
|
|
352
352
|
/**
|
|
353
353
|
* Creates a `connectedDomain` object and starts the domain connection process. It may take up to 48 hours for the DNS changes to take effect.
|
|
@@ -366,7 +366,7 @@ interface CreateConnectedDomainSignature {
|
|
|
366
366
|
*/
|
|
367
367
|
(connectedDomain: ConnectedDomain): Promise<ConnectedDomain & ConnectedDomainNonNullableFields>;
|
|
368
368
|
}
|
|
369
|
-
declare function getConnectedDomain$1(httpClient: HttpClient): GetConnectedDomainSignature;
|
|
369
|
+
declare function getConnectedDomain$1(httpClient: HttpClient$5): GetConnectedDomainSignature;
|
|
370
370
|
interface GetConnectedDomainSignature {
|
|
371
371
|
/**
|
|
372
372
|
* Retrieves a connected domain.
|
|
@@ -380,7 +380,7 @@ interface GetConnectedDomainSignature {
|
|
|
380
380
|
*/
|
|
381
381
|
(connectedDomainId: string): Promise<ConnectedDomain & ConnectedDomainNonNullableFields>;
|
|
382
382
|
}
|
|
383
|
-
declare function deleteConnectedDomain$1(httpClient: HttpClient): DeleteConnectedDomainSignature;
|
|
383
|
+
declare function deleteConnectedDomain$1(httpClient: HttpClient$5): DeleteConnectedDomainSignature;
|
|
384
384
|
interface DeleteConnectedDomainSignature {
|
|
385
385
|
/**
|
|
386
386
|
* Deletes a `connectedDomain` object and removes related DNS records from
|
|
@@ -400,7 +400,7 @@ interface DeleteConnectedDomainSignature {
|
|
|
400
400
|
*/
|
|
401
401
|
(connectedDomainId: string): Promise<void>;
|
|
402
402
|
}
|
|
403
|
-
declare function listConnectedDomains$1(httpClient: HttpClient): ListConnectedDomainsSignature;
|
|
403
|
+
declare function listConnectedDomains$1(httpClient: HttpClient$5): ListConnectedDomainsSignature;
|
|
404
404
|
interface ListConnectedDomainsSignature {
|
|
405
405
|
/**
|
|
406
406
|
* Retrieves a list of up to 100 connected domains.
|
|
@@ -415,10 +415,10 @@ interface ListConnectedDomainsSignature {
|
|
|
415
415
|
(options?: ListConnectedDomainsOptions | undefined): Promise<ListConnectedDomainsResponse & ListConnectedDomainsResponseNonNullableFields>;
|
|
416
416
|
}
|
|
417
417
|
|
|
418
|
-
declare const createConnectedDomain: BuildRESTFunction<typeof createConnectedDomain$1> & typeof createConnectedDomain$1;
|
|
419
|
-
declare const getConnectedDomain: BuildRESTFunction<typeof getConnectedDomain$1> & typeof getConnectedDomain$1;
|
|
420
|
-
declare const deleteConnectedDomain: BuildRESTFunction<typeof deleteConnectedDomain$1> & typeof deleteConnectedDomain$1;
|
|
421
|
-
declare const listConnectedDomains: BuildRESTFunction<typeof listConnectedDomains$1> & typeof listConnectedDomains$1;
|
|
418
|
+
declare const createConnectedDomain: BuildRESTFunction$5<typeof createConnectedDomain$1> & typeof createConnectedDomain$1;
|
|
419
|
+
declare const getConnectedDomain: BuildRESTFunction$5<typeof getConnectedDomain$1> & typeof getConnectedDomain$1;
|
|
420
|
+
declare const deleteConnectedDomain: BuildRESTFunction$5<typeof deleteConnectedDomain$1> & typeof deleteConnectedDomain$1;
|
|
421
|
+
declare const listConnectedDomains: BuildRESTFunction$5<typeof listConnectedDomains$1> & typeof listConnectedDomains$1;
|
|
422
422
|
|
|
423
423
|
type index_d$5_ConnectedDomain = ConnectedDomain;
|
|
424
424
|
type index_d$5_ConnectedDomainNonNullableFields = ConnectedDomainNonNullableFields;
|
|
@@ -442,6 +442,40 @@ declare namespace index_d$5 {
|
|
|
442
442
|
export { type ActionEvent$2 as ActionEvent, AssignmentType$1 as AssignmentType, type index_d$5_ConnectedDomain as ConnectedDomain, type index_d$5_ConnectedDomainNonNullableFields as ConnectedDomainNonNullableFields, ConnectionType$1 as ConnectionType, type index_d$5_CreateConnectedDomainRequest as CreateConnectedDomainRequest, type index_d$5_CreateConnectedDomainResponse as CreateConnectedDomainResponse, type index_d$5_CreateConnectedDomainResponseNonNullableFields as CreateConnectedDomainResponseNonNullableFields, type CursorPaging$2 as CursorPaging, type CursorPagingMetadata$2 as CursorPagingMetadata, type Cursors$2 as Cursors, type index_d$5_DeleteConnectedDomainRequest as DeleteConnectedDomainRequest, type index_d$5_DeleteConnectedDomainResponse as DeleteConnectedDomainResponse, DnsPropagationStatus$1 as DnsPropagationStatus, type DomainEvent$2 as DomainEvent, type DomainEventBodyOneOf$2 as DomainEventBodyOneOf, type DomainRemovedEvent$1 as DomainRemovedEvent, type EntityCreatedEvent$2 as EntityCreatedEvent, type EntityDeletedEvent$2 as EntityDeletedEvent, type EntityUpdatedEvent$2 as EntityUpdatedEvent, type index_d$5_GetConnectedDomainRequest as GetConnectedDomainRequest, type index_d$5_GetConnectedDomainResponse as GetConnectedDomainResponse, type index_d$5_GetConnectedDomainResponseNonNullableFields as GetConnectedDomainResponseNonNullableFields, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, type index_d$5_ListConnectedDomainsOptions as ListConnectedDomainsOptions, type index_d$5_ListConnectedDomainsRequest as ListConnectedDomainsRequest, type index_d$5_ListConnectedDomainsResponse as ListConnectedDomainsResponse, type index_d$5_ListConnectedDomainsResponseNonNullableFields as ListConnectedDomainsResponseNonNullableFields, type MessageEnvelope$2 as MessageEnvelope, type RedirectAssignmentInfo$1 as RedirectAssignmentInfo, type RestoreInfo$2 as RestoreInfo, type SiteInfo$1 as SiteInfo, type SiteInfoAssignmentInfoOneOf$1 as SiteInfoAssignmentInfoOneOf, WebhookIdentityType$2 as WebhookIdentityType, index_d$5_createConnectedDomain as createConnectedDomain, index_d$5_deleteConnectedDomain as deleteConnectedDomain, index_d$5_getConnectedDomain as getConnectedDomain, index_d$5_listConnectedDomains as listConnectedDomains };
|
|
443
443
|
}
|
|
444
444
|
|
|
445
|
+
type RESTFunctionDescriptor$4<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$4) => T;
|
|
446
|
+
interface HttpClient$4 {
|
|
447
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$4<TResponse, TData>): Promise<HttpResponse$4<TResponse>>;
|
|
448
|
+
fetchWithAuth: typeof fetch;
|
|
449
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
450
|
+
}
|
|
451
|
+
type RequestOptionsFactory$4<TResponse = any, TData = any> = (context: any) => RequestOptions$4<TResponse, TData>;
|
|
452
|
+
type HttpResponse$4<T = any> = {
|
|
453
|
+
data: T;
|
|
454
|
+
status: number;
|
|
455
|
+
statusText: string;
|
|
456
|
+
headers: any;
|
|
457
|
+
request?: any;
|
|
458
|
+
};
|
|
459
|
+
type RequestOptions$4<_TResponse = any, Data = any> = {
|
|
460
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
461
|
+
url: string;
|
|
462
|
+
data?: Data;
|
|
463
|
+
params?: URLSearchParams;
|
|
464
|
+
} & APIMetadata$4;
|
|
465
|
+
type APIMetadata$4 = {
|
|
466
|
+
methodFqn?: string;
|
|
467
|
+
entityFqdn?: string;
|
|
468
|
+
packageName?: string;
|
|
469
|
+
};
|
|
470
|
+
type BuildRESTFunction$4<T extends RESTFunctionDescriptor$4> = T extends RESTFunctionDescriptor$4<infer U> ? U : never;
|
|
471
|
+
|
|
472
|
+
declare global {
|
|
473
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
474
|
+
interface SymbolConstructor {
|
|
475
|
+
readonly observable: symbol;
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
|
|
445
479
|
/**
|
|
446
480
|
* A `connectedDomainSetupInfo` object holds information the connected domain's
|
|
447
481
|
* external registrar and some DNS records. You can use this information to guide
|
|
@@ -649,7 +683,7 @@ interface GetConnectedDomainSetupInfoResponseNonNullableFields {
|
|
|
649
683
|
connectedDomainSetupInfo?: ConnectedDomainSetupInfoNonNullableFields;
|
|
650
684
|
}
|
|
651
685
|
|
|
652
|
-
declare function getConnectedDomainSetupInfo$1(httpClient: HttpClient): GetConnectedDomainSetupInfoSignature;
|
|
686
|
+
declare function getConnectedDomainSetupInfo$1(httpClient: HttpClient$4): GetConnectedDomainSetupInfoSignature;
|
|
653
687
|
interface GetConnectedDomainSetupInfoSignature {
|
|
654
688
|
/**
|
|
655
689
|
* Retrieves information for the initial setup of a connected domain.
|
|
@@ -664,7 +698,7 @@ interface GetConnectedDomainSetupInfoSignature {
|
|
|
664
698
|
(connectedDomainId: string): Promise<GetConnectedDomainSetupInfoResponse & GetConnectedDomainSetupInfoResponseNonNullableFields>;
|
|
665
699
|
}
|
|
666
700
|
|
|
667
|
-
declare const getConnectedDomainSetupInfo: BuildRESTFunction<typeof getConnectedDomainSetupInfo$1> & typeof getConnectedDomainSetupInfo$1;
|
|
701
|
+
declare const getConnectedDomainSetupInfo: BuildRESTFunction$4<typeof getConnectedDomainSetupInfo$1> & typeof getConnectedDomainSetupInfo$1;
|
|
668
702
|
|
|
669
703
|
type index_d$4_ARecord = ARecord;
|
|
670
704
|
type index_d$4_CnameRecord = CnameRecord;
|
|
@@ -689,6 +723,40 @@ declare namespace index_d$4 {
|
|
|
689
723
|
export { type index_d$4_ARecord as ARecord, type index_d$4_CnameRecord as CnameRecord, type index_d$4_ConnectedDomainSetupInfo as ConnectedDomainSetupInfo, type index_d$4_ConnectedDomainSetupInfoDnsRecordsOneOf as ConnectedDomainSetupInfoDnsRecordsOneOf, index_d$4_ConnectionType as ConnectionType, type index_d$4_GetConnectedDomainSetupInfoRequest as GetConnectedDomainSetupInfoRequest, type index_d$4_GetConnectedDomainSetupInfoResponse as GetConnectedDomainSetupInfoResponse, type index_d$4_GetConnectedDomainSetupInfoResponseNonNullableFields as GetConnectedDomainSetupInfoResponseNonNullableFields, type index_d$4_GetSetupInfoRequest as GetSetupInfoRequest, type index_d$4_GetSetupInfoResponse as GetSetupInfoResponse, type index_d$4_NameserverRecord as NameserverRecord, type index_d$4_NsRecord as NsRecord, type index_d$4_PointingRecords as PointingRecords, type index_d$4_PreCreateConnectedDomainRequest as PreCreateConnectedDomainRequest, type index_d$4_PreCreateConnectedDomainResponse as PreCreateConnectedDomainResponse, type index_d$4_Registrar as Registrar, type index_d$4_SubdomainRecords as SubdomainRecords, index_d$4_getConnectedDomainSetupInfo as getConnectedDomainSetupInfo };
|
|
690
724
|
}
|
|
691
725
|
|
|
726
|
+
type RESTFunctionDescriptor$3<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$3) => T;
|
|
727
|
+
interface HttpClient$3 {
|
|
728
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$3<TResponse, TData>): Promise<HttpResponse$3<TResponse>>;
|
|
729
|
+
fetchWithAuth: typeof fetch;
|
|
730
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
731
|
+
}
|
|
732
|
+
type RequestOptionsFactory$3<TResponse = any, TData = any> = (context: any) => RequestOptions$3<TResponse, TData>;
|
|
733
|
+
type HttpResponse$3<T = any> = {
|
|
734
|
+
data: T;
|
|
735
|
+
status: number;
|
|
736
|
+
statusText: string;
|
|
737
|
+
headers: any;
|
|
738
|
+
request?: any;
|
|
739
|
+
};
|
|
740
|
+
type RequestOptions$3<_TResponse = any, Data = any> = {
|
|
741
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
742
|
+
url: string;
|
|
743
|
+
data?: Data;
|
|
744
|
+
params?: URLSearchParams;
|
|
745
|
+
} & APIMetadata$3;
|
|
746
|
+
type APIMetadata$3 = {
|
|
747
|
+
methodFqn?: string;
|
|
748
|
+
entityFqdn?: string;
|
|
749
|
+
packageName?: string;
|
|
750
|
+
};
|
|
751
|
+
type BuildRESTFunction$3<T extends RESTFunctionDescriptor$3> = T extends RESTFunctionDescriptor$3<infer U> ? U : never;
|
|
752
|
+
|
|
753
|
+
declare global {
|
|
754
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
755
|
+
interface SymbolConstructor {
|
|
756
|
+
readonly observable: symbol;
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
|
|
692
760
|
/** DNS zones hold information about the records that map a domain's URL to an IP address. */
|
|
693
761
|
interface DnsZone {
|
|
694
762
|
/** Domain name including the TLD. Both root domains and subdomains are supported. */
|
|
@@ -1006,7 +1074,7 @@ interface UpdateDnsZoneOptions {
|
|
|
1006
1074
|
dnssecEnabled?: boolean | null;
|
|
1007
1075
|
}
|
|
1008
1076
|
|
|
1009
|
-
declare function createDnsZone$1(httpClient: HttpClient): CreateDnsZoneSignature;
|
|
1077
|
+
declare function createDnsZone$1(httpClient: HttpClient$3): CreateDnsZoneSignature;
|
|
1010
1078
|
interface CreateDnsZoneSignature {
|
|
1011
1079
|
/**
|
|
1012
1080
|
* Creates a DNS zone in [Google's Cloud DNS](https://cloud.google.com/dns).
|
|
@@ -1028,7 +1096,7 @@ interface CreateDnsZoneSignature {
|
|
|
1028
1096
|
*/
|
|
1029
1097
|
(dnsZone: DnsZone): Promise<DnsZone & DnsZoneNonNullableFields>;
|
|
1030
1098
|
}
|
|
1031
|
-
declare function getDnsZone$1(httpClient: HttpClient): GetDnsZoneSignature;
|
|
1099
|
+
declare function getDnsZone$1(httpClient: HttpClient$3): GetDnsZoneSignature;
|
|
1032
1100
|
interface GetDnsZoneSignature {
|
|
1033
1101
|
/**
|
|
1034
1102
|
* Retrieves the DNS zone belonging to the domain from
|
|
@@ -1041,7 +1109,7 @@ interface GetDnsZoneSignature {
|
|
|
1041
1109
|
*/
|
|
1042
1110
|
(domainName: string): Promise<DnsZone & DnsZoneNonNullableFields>;
|
|
1043
1111
|
}
|
|
1044
|
-
declare function updateDnsZone$1(httpClient: HttpClient): UpdateDnsZoneSignature;
|
|
1112
|
+
declare function updateDnsZone$1(httpClient: HttpClient$3): UpdateDnsZoneSignature;
|
|
1045
1113
|
interface UpdateDnsZoneSignature {
|
|
1046
1114
|
/**
|
|
1047
1115
|
* Adds DNS records to and removes DNS records from a DNS zone in
|
|
@@ -1062,7 +1130,7 @@ interface UpdateDnsZoneSignature {
|
|
|
1062
1130
|
*/
|
|
1063
1131
|
(domainName: string, options?: UpdateDnsZoneOptions | undefined): Promise<UpdateDnsZoneResponse & UpdateDnsZoneResponseNonNullableFields>;
|
|
1064
1132
|
}
|
|
1065
|
-
declare function deleteDnsZone$1(httpClient: HttpClient): DeleteDnsZoneSignature;
|
|
1133
|
+
declare function deleteDnsZone$1(httpClient: HttpClient$3): DeleteDnsZoneSignature;
|
|
1066
1134
|
interface DeleteDnsZoneSignature {
|
|
1067
1135
|
/**
|
|
1068
1136
|
* Deletes a DNS zone in [Google's Cloud DNS](https://cloud.google.com/dns).
|
|
@@ -1076,7 +1144,7 @@ interface DeleteDnsZoneSignature {
|
|
|
1076
1144
|
*/
|
|
1077
1145
|
(domainName: string): Promise<void>;
|
|
1078
1146
|
}
|
|
1079
|
-
declare function previewDnsZone$1(httpClient: HttpClient): PreviewDnsZoneSignature;
|
|
1147
|
+
declare function previewDnsZone$1(httpClient: HttpClient$3): PreviewDnsZoneSignature;
|
|
1080
1148
|
interface PreviewDnsZoneSignature {
|
|
1081
1149
|
/**
|
|
1082
1150
|
* Generates a preview for a DNS zone based on
|
|
@@ -1093,11 +1161,11 @@ interface PreviewDnsZoneSignature {
|
|
|
1093
1161
|
(domainName: string): Promise<PreviewDnsZoneResponse & PreviewDnsZoneResponseNonNullableFields>;
|
|
1094
1162
|
}
|
|
1095
1163
|
|
|
1096
|
-
declare const createDnsZone: BuildRESTFunction<typeof createDnsZone$1> & typeof createDnsZone$1;
|
|
1097
|
-
declare const getDnsZone: BuildRESTFunction<typeof getDnsZone$1> & typeof getDnsZone$1;
|
|
1098
|
-
declare const updateDnsZone: BuildRESTFunction<typeof updateDnsZone$1> & typeof updateDnsZone$1;
|
|
1099
|
-
declare const deleteDnsZone: BuildRESTFunction<typeof deleteDnsZone$1> & typeof deleteDnsZone$1;
|
|
1100
|
-
declare const previewDnsZone: BuildRESTFunction<typeof previewDnsZone$1> & typeof previewDnsZone$1;
|
|
1164
|
+
declare const createDnsZone: BuildRESTFunction$3<typeof createDnsZone$1> & typeof createDnsZone$1;
|
|
1165
|
+
declare const getDnsZone: BuildRESTFunction$3<typeof getDnsZone$1> & typeof getDnsZone$1;
|
|
1166
|
+
declare const updateDnsZone: BuildRESTFunction$3<typeof updateDnsZone$1> & typeof updateDnsZone$1;
|
|
1167
|
+
declare const deleteDnsZone: BuildRESTFunction$3<typeof deleteDnsZone$1> & typeof deleteDnsZone$1;
|
|
1168
|
+
declare const previewDnsZone: BuildRESTFunction$3<typeof previewDnsZone$1> & typeof previewDnsZone$1;
|
|
1101
1169
|
|
|
1102
1170
|
type index_d$3_CreateDnsZoneRequest = CreateDnsZoneRequest;
|
|
1103
1171
|
type index_d$3_CreateDnsZoneResponse = CreateDnsZoneResponse;
|
|
@@ -1131,6 +1199,40 @@ declare namespace index_d$3 {
|
|
|
1131
1199
|
export { type ActionEvent$1 as ActionEvent, type index_d$3_CreateDnsZoneRequest as CreateDnsZoneRequest, type index_d$3_CreateDnsZoneResponse as CreateDnsZoneResponse, type index_d$3_CreateDnsZoneResponseNonNullableFields as CreateDnsZoneResponseNonNullableFields, type index_d$3_DeleteDnsZoneRequest as DeleteDnsZoneRequest, type index_d$3_DeleteDnsZoneResponse as DeleteDnsZoneResponse, type index_d$3_DnsRecord as DnsRecord, type index_d$3_DnsRecordsChangedEvent as DnsRecordsChangedEvent, type index_d$3_DnsZone as DnsZone, type index_d$3_DnsZoneNonNullableFields as DnsZoneNonNullableFields, type index_d$3_DnssecInfo as DnssecInfo, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type index_d$3_DomainRemovedEvent as DomainRemovedEvent, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type index_d$3_GetDnsZoneRequest as GetDnsZoneRequest, type index_d$3_GetDnsZoneResponse as GetDnsZoneResponse, type index_d$3_GetDnsZoneResponseNonNullableFields as GetDnsZoneResponseNonNullableFields, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type MessageEnvelope$1 as MessageEnvelope, type index_d$3_PreviewDnsZoneRequest as PreviewDnsZoneRequest, type index_d$3_PreviewDnsZoneResponse as PreviewDnsZoneResponse, type index_d$3_PreviewDnsZoneResponseNonNullableFields as PreviewDnsZoneResponseNonNullableFields, index_d$3_RecordType as RecordType, type RestoreInfo$1 as RestoreInfo, type index_d$3_UpdateDnsZoneOptions as UpdateDnsZoneOptions, type index_d$3_UpdateDnsZoneRequest as UpdateDnsZoneRequest, type index_d$3_UpdateDnsZoneResponse as UpdateDnsZoneResponse, type index_d$3_UpdateDnsZoneResponseNonNullableFields as UpdateDnsZoneResponseNonNullableFields, WebhookIdentityType$1 as WebhookIdentityType, index_d$3_createDnsZone as createDnsZone, index_d$3_deleteDnsZone as deleteDnsZone, index_d$3_getDnsZone as getDnsZone, index_d$3_previewDnsZone as previewDnsZone, index_d$3_updateDnsZone as updateDnsZone };
|
|
1132
1200
|
}
|
|
1133
1201
|
|
|
1202
|
+
type RESTFunctionDescriptor$2<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$2) => T;
|
|
1203
|
+
interface HttpClient$2 {
|
|
1204
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$2<TResponse, TData>): Promise<HttpResponse$2<TResponse>>;
|
|
1205
|
+
fetchWithAuth: typeof fetch;
|
|
1206
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
1207
|
+
}
|
|
1208
|
+
type RequestOptionsFactory$2<TResponse = any, TData = any> = (context: any) => RequestOptions$2<TResponse, TData>;
|
|
1209
|
+
type HttpResponse$2<T = any> = {
|
|
1210
|
+
data: T;
|
|
1211
|
+
status: number;
|
|
1212
|
+
statusText: string;
|
|
1213
|
+
headers: any;
|
|
1214
|
+
request?: any;
|
|
1215
|
+
};
|
|
1216
|
+
type RequestOptions$2<_TResponse = any, Data = any> = {
|
|
1217
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
1218
|
+
url: string;
|
|
1219
|
+
data?: Data;
|
|
1220
|
+
params?: URLSearchParams;
|
|
1221
|
+
} & APIMetadata$2;
|
|
1222
|
+
type APIMetadata$2 = {
|
|
1223
|
+
methodFqn?: string;
|
|
1224
|
+
entityFqdn?: string;
|
|
1225
|
+
packageName?: string;
|
|
1226
|
+
};
|
|
1227
|
+
type BuildRESTFunction$2<T extends RESTFunctionDescriptor$2> = T extends RESTFunctionDescriptor$2<infer U> ? U : never;
|
|
1228
|
+
|
|
1229
|
+
declare global {
|
|
1230
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
1231
|
+
interface SymbolConstructor {
|
|
1232
|
+
readonly observable: symbol;
|
|
1233
|
+
}
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1134
1236
|
/**
|
|
1135
1237
|
* A registered domain is a domain that Wix has registered on behalf of a customer
|
|
1136
1238
|
* with an external registar.
|
|
@@ -1781,7 +1883,7 @@ interface ListRegisteredDomainsOptions {
|
|
|
1781
1883
|
paging?: CursorPaging$1;
|
|
1782
1884
|
}
|
|
1783
1885
|
|
|
1784
|
-
declare function createRegisteredDomain$1(httpClient: HttpClient): CreateRegisteredDomainSignature;
|
|
1886
|
+
declare function createRegisteredDomain$1(httpClient: HttpClient$2): CreateRegisteredDomainSignature;
|
|
1785
1887
|
interface CreateRegisteredDomainSignature {
|
|
1786
1888
|
/**
|
|
1787
1889
|
* Creates a registeredDomain object and starts the domain registration process that may take up to 48 hours to resolve.
|
|
@@ -1806,7 +1908,7 @@ interface CreateRegisteredDomainSignature {
|
|
|
1806
1908
|
*/
|
|
1807
1909
|
(registeredDomain: RegisteredDomain): Promise<RegisteredDomain & RegisteredDomainNonNullableFields>;
|
|
1808
1910
|
}
|
|
1809
|
-
declare function getRegisteredDomain$1(httpClient: HttpClient): GetRegisteredDomainSignature;
|
|
1911
|
+
declare function getRegisteredDomain$1(httpClient: HttpClient$2): GetRegisteredDomainSignature;
|
|
1810
1912
|
interface GetRegisteredDomainSignature {
|
|
1811
1913
|
/**
|
|
1812
1914
|
* Retrieves a registered domain.
|
|
@@ -1820,7 +1922,7 @@ interface GetRegisteredDomainSignature {
|
|
|
1820
1922
|
*/
|
|
1821
1923
|
(registeredDomainId: string): Promise<RegisteredDomain & RegisteredDomainNonNullableFields>;
|
|
1822
1924
|
}
|
|
1823
|
-
declare function listRegisteredDomains$1(httpClient: HttpClient): ListRegisteredDomainsSignature;
|
|
1925
|
+
declare function listRegisteredDomains$1(httpClient: HttpClient$2): ListRegisteredDomainsSignature;
|
|
1824
1926
|
interface ListRegisteredDomainsSignature {
|
|
1825
1927
|
/**
|
|
1826
1928
|
* Retrieves a list of up to 100 registered domains.
|
|
@@ -1834,7 +1936,7 @@ interface ListRegisteredDomainsSignature {
|
|
|
1834
1936
|
*/
|
|
1835
1937
|
(options?: ListRegisteredDomainsOptions | undefined): Promise<ListRegisteredDomainsResponse & ListRegisteredDomainsResponseNonNullableFields>;
|
|
1836
1938
|
}
|
|
1837
|
-
declare function redeemRegisteredDomain$1(httpClient: HttpClient): RedeemRegisteredDomainSignature;
|
|
1939
|
+
declare function redeemRegisteredDomain$1(httpClient: HttpClient$2): RedeemRegisteredDomainSignature;
|
|
1838
1940
|
interface RedeemRegisteredDomainSignature {
|
|
1839
1941
|
/**
|
|
1840
1942
|
* Redeems a registered domain that's currently in redemption.
|
|
@@ -1856,10 +1958,10 @@ interface RedeemRegisteredDomainSignature {
|
|
|
1856
1958
|
(registeredDomainId: string): Promise<RedeemRegisteredDomainResponse & RedeemRegisteredDomainResponseNonNullableFields>;
|
|
1857
1959
|
}
|
|
1858
1960
|
|
|
1859
|
-
declare const createRegisteredDomain: BuildRESTFunction<typeof createRegisteredDomain$1> & typeof createRegisteredDomain$1;
|
|
1860
|
-
declare const getRegisteredDomain: BuildRESTFunction<typeof getRegisteredDomain$1> & typeof getRegisteredDomain$1;
|
|
1861
|
-
declare const listRegisteredDomains: BuildRESTFunction<typeof listRegisteredDomains$1> & typeof listRegisteredDomains$1;
|
|
1862
|
-
declare const redeemRegisteredDomain: BuildRESTFunction<typeof redeemRegisteredDomain$1> & typeof redeemRegisteredDomain$1;
|
|
1961
|
+
declare const createRegisteredDomain: BuildRESTFunction$2<typeof createRegisteredDomain$1> & typeof createRegisteredDomain$1;
|
|
1962
|
+
declare const getRegisteredDomain: BuildRESTFunction$2<typeof getRegisteredDomain$1> & typeof getRegisteredDomain$1;
|
|
1963
|
+
declare const listRegisteredDomains: BuildRESTFunction$2<typeof listRegisteredDomains$1> & typeof listRegisteredDomains$1;
|
|
1964
|
+
declare const redeemRegisteredDomain: BuildRESTFunction$2<typeof redeemRegisteredDomain$1> & typeof redeemRegisteredDomain$1;
|
|
1863
1965
|
|
|
1864
1966
|
type index_d$2_ActionEvent = ActionEvent;
|
|
1865
1967
|
type index_d$2_AssignmentType = AssignmentType;
|
|
@@ -1921,6 +2023,40 @@ declare namespace index_d$2 {
|
|
|
1921
2023
|
export { type index_d$2_ActionEvent as ActionEvent, index_d$2_AssignmentType as AssignmentType, type index_d$2_ContactData as ContactData, type index_d$2_Contacts as Contacts, type index_d$2_CreateRegisteredDomainRequest as CreateRegisteredDomainRequest, type index_d$2_CreateRegisteredDomainResponse as CreateRegisteredDomainResponse, type index_d$2_CreateRegisteredDomainResponseNonNullableFields as CreateRegisteredDomainResponseNonNullableFields, type CursorPaging$1 as CursorPaging, type CursorPagingMetadata$1 as CursorPagingMetadata, type Cursors$1 as Cursors, type index_d$2_DeleteRegisteredDomainByIdRequest as DeleteRegisteredDomainByIdRequest, type index_d$2_DeleteRegisteredDomainByIdResponse as DeleteRegisteredDomainByIdResponse, index_d$2_DnsPropagationStatus as DnsPropagationStatus, type index_d$2_DomainEvent as DomainEvent, type index_d$2_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d$2_EntityCreatedEvent as EntityCreatedEvent, type index_d$2_EntityDeletedEvent as EntityDeletedEvent, type index_d$2_EntityUpdatedEvent as EntityUpdatedEvent, type index_d$2_Expired as Expired, type index_d$2_FailedRegistrationInfo as FailedRegistrationInfo, index_d$2_FailureCode as FailureCode, type index_d$2_GetRegisteredDomainRequest as GetRegisteredDomainRequest, type index_d$2_GetRegisteredDomainResponse as GetRegisteredDomainResponse, type index_d$2_GetRegisteredDomainResponseNonNullableFields as GetRegisteredDomainResponseNonNullableFields, index_d$2_ICANNConfirmationStatus as ICANNConfirmationStatus, type index_d$2_ICANNConfirmationStatusInfo as ICANNConfirmationStatusInfo, type index_d$2_ICANNConfirmationStatusInfoStatusOneOf as ICANNConfirmationStatusInfoStatusOneOf, type index_d$2_IdentificationData as IdentificationData, type index_d$2_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d$2_LatestAttempt as LatestAttempt, type index_d$2_ListRegisteredDomainsOptions as ListRegisteredDomainsOptions, type index_d$2_ListRegisteredDomainsRequest as ListRegisteredDomainsRequest, type index_d$2_ListRegisteredDomainsResponse as ListRegisteredDomainsResponse, type index_d$2_ListRegisteredDomainsResponseNonNullableFields as ListRegisteredDomainsResponseNonNullableFields, type index_d$2_MessageEnvelope as MessageEnvelope, type index_d$2_Pending as Pending, type index_d$2_PendingRegistrationInfo as PendingRegistrationInfo, type index_d$2_RedeemRegisteredDomainRequest as RedeemRegisteredDomainRequest, type index_d$2_RedeemRegisteredDomainResponse as RedeemRegisteredDomainResponse, type index_d$2_RedeemRegisteredDomainResponseNonNullableFields as RedeemRegisteredDomainResponseNonNullableFields, type index_d$2_RedirectAssignmentInfo as RedirectAssignmentInfo, type index_d$2_RegisteredDomain as RegisteredDomain, type index_d$2_RegisteredDomainNonNullableFields as RegisteredDomainNonNullableFields, type index_d$2_RegisteredDomainStatusInfoOneOf as RegisteredDomainStatusInfoOneOf, type index_d$2_RestoreInfo as RestoreInfo, type index_d$2_SiteInfo as SiteInfo, type index_d$2_SiteInfoAssignmentInfoOneOf as SiteInfoAssignmentInfoOneOf, index_d$2_Status as Status, index_d$2_WebhookIdentityType as WebhookIdentityType, index_d$2_createRegisteredDomain as createRegisteredDomain, index_d$2_getRegisteredDomain as getRegisteredDomain, index_d$2_listRegisteredDomains as listRegisteredDomains, index_d$2_redeemRegisteredDomain as redeemRegisteredDomain };
|
|
1922
2024
|
}
|
|
1923
2025
|
|
|
2026
|
+
type RESTFunctionDescriptor$1<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$1) => T;
|
|
2027
|
+
interface HttpClient$1 {
|
|
2028
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
|
|
2029
|
+
fetchWithAuth: typeof fetch;
|
|
2030
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
2031
|
+
}
|
|
2032
|
+
type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
|
|
2033
|
+
type HttpResponse$1<T = any> = {
|
|
2034
|
+
data: T;
|
|
2035
|
+
status: number;
|
|
2036
|
+
statusText: string;
|
|
2037
|
+
headers: any;
|
|
2038
|
+
request?: any;
|
|
2039
|
+
};
|
|
2040
|
+
type RequestOptions$1<_TResponse = any, Data = any> = {
|
|
2041
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
2042
|
+
url: string;
|
|
2043
|
+
data?: Data;
|
|
2044
|
+
params?: URLSearchParams;
|
|
2045
|
+
} & APIMetadata$1;
|
|
2046
|
+
type APIMetadata$1 = {
|
|
2047
|
+
methodFqn?: string;
|
|
2048
|
+
entityFqdn?: string;
|
|
2049
|
+
packageName?: string;
|
|
2050
|
+
};
|
|
2051
|
+
type BuildRESTFunction$1<T extends RESTFunctionDescriptor$1> = T extends RESTFunctionDescriptor$1<infer U> ? U : never;
|
|
2052
|
+
|
|
2053
|
+
declare global {
|
|
2054
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
2055
|
+
interface SymbolConstructor {
|
|
2056
|
+
readonly observable: symbol;
|
|
2057
|
+
}
|
|
2058
|
+
}
|
|
2059
|
+
|
|
1924
2060
|
interface DomainAvailability {
|
|
1925
2061
|
/** Domain name including TLD. For example, `my-new-domain.com`. */
|
|
1926
2062
|
domain?: string;
|
|
@@ -1956,7 +2092,7 @@ interface CheckDomainAvailabilityResponseNonNullableFields {
|
|
|
1956
2092
|
availability?: DomainAvailabilityNonNullableFields;
|
|
1957
2093
|
}
|
|
1958
2094
|
|
|
1959
|
-
declare function checkDomainAvailability$1(httpClient: HttpClient): CheckDomainAvailabilitySignature;
|
|
2095
|
+
declare function checkDomainAvailability$1(httpClient: HttpClient$1): CheckDomainAvailabilitySignature;
|
|
1960
2096
|
interface CheckDomainAvailabilitySignature {
|
|
1961
2097
|
/**
|
|
1962
2098
|
* Checks whether the given domain is available for purchase.
|
|
@@ -1978,7 +2114,7 @@ interface CheckDomainAvailabilitySignature {
|
|
|
1978
2114
|
(domain: string): Promise<CheckDomainAvailabilityResponse & CheckDomainAvailabilityResponseNonNullableFields>;
|
|
1979
2115
|
}
|
|
1980
2116
|
|
|
1981
|
-
declare const checkDomainAvailability: BuildRESTFunction<typeof checkDomainAvailability$1> & typeof checkDomainAvailability$1;
|
|
2117
|
+
declare const checkDomainAvailability: BuildRESTFunction$1<typeof checkDomainAvailability$1> & typeof checkDomainAvailability$1;
|
|
1982
2118
|
|
|
1983
2119
|
type index_d$1_CheckDomainAvailabilityRequest = CheckDomainAvailabilityRequest;
|
|
1984
2120
|
type index_d$1_CheckDomainAvailabilityResponse = CheckDomainAvailabilityResponse;
|
|
@@ -1989,6 +2125,40 @@ declare namespace index_d$1 {
|
|
|
1989
2125
|
export { type index_d$1_CheckDomainAvailabilityRequest as CheckDomainAvailabilityRequest, type index_d$1_CheckDomainAvailabilityResponse as CheckDomainAvailabilityResponse, type index_d$1_CheckDomainAvailabilityResponseNonNullableFields as CheckDomainAvailabilityResponseNonNullableFields, type index_d$1_DomainAvailability as DomainAvailability, index_d$1_checkDomainAvailability as checkDomainAvailability };
|
|
1990
2126
|
}
|
|
1991
2127
|
|
|
2128
|
+
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
2129
|
+
interface HttpClient {
|
|
2130
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
2131
|
+
fetchWithAuth: typeof fetch;
|
|
2132
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
2133
|
+
}
|
|
2134
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
2135
|
+
type HttpResponse<T = any> = {
|
|
2136
|
+
data: T;
|
|
2137
|
+
status: number;
|
|
2138
|
+
statusText: string;
|
|
2139
|
+
headers: any;
|
|
2140
|
+
request?: any;
|
|
2141
|
+
};
|
|
2142
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
2143
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
2144
|
+
url: string;
|
|
2145
|
+
data?: Data;
|
|
2146
|
+
params?: URLSearchParams;
|
|
2147
|
+
} & APIMetadata;
|
|
2148
|
+
type APIMetadata = {
|
|
2149
|
+
methodFqn?: string;
|
|
2150
|
+
entityFqdn?: string;
|
|
2151
|
+
packageName?: string;
|
|
2152
|
+
};
|
|
2153
|
+
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
2154
|
+
|
|
2155
|
+
declare global {
|
|
2156
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
2157
|
+
interface SymbolConstructor {
|
|
2158
|
+
readonly observable: symbol;
|
|
2159
|
+
}
|
|
2160
|
+
}
|
|
2161
|
+
|
|
1992
2162
|
interface DomainSuggestion {
|
|
1993
2163
|
/** Suggested domain name including TLD. */
|
|
1994
2164
|
domain?: string;
|