@wix/domains 1.0.5 → 1.0.7

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.
@@ -381,25 +381,26 @@ interface ListConnectedDomainsOptions {
381
381
  paging?: CursorPaging$1;
382
382
  }
383
383
 
384
- interface HttpClient {
385
- request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
386
- fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
384
+ interface HttpClient$5 {
385
+ request<TResponse, TData = any>(req: RequestOptionsFactory$5<TResponse, TData>): Promise<HttpResponse$5<TResponse>>;
386
+ fetchWithAuth: typeof fetch;
387
+ wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
387
388
  }
388
- type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
389
- type HttpResponse<T = any> = {
389
+ type RequestOptionsFactory$5<TResponse = any, TData = any> = (context: any) => RequestOptions$5<TResponse, TData>;
390
+ type HttpResponse$5<T = any> = {
390
391
  data: T;
391
392
  status: number;
392
393
  statusText: string;
393
394
  headers: any;
394
395
  request?: any;
395
396
  };
396
- type RequestOptions<_TResponse = any, Data = any> = {
397
+ type RequestOptions$5<_TResponse = any, Data = any> = {
397
398
  method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
398
399
  url: string;
399
400
  data?: Data;
400
401
  params?: URLSearchParams;
401
- } & APIMetadata;
402
- type APIMetadata = {
402
+ } & APIMetadata$5;
403
+ type APIMetadata$5 = {
403
404
  methodFqn?: string;
404
405
  entityFqdn?: string;
405
406
  packageName?: string;
@@ -423,7 +424,7 @@ declare global {
423
424
  declare const __metadata$5: {
424
425
  PACKAGE_NAME: string;
425
426
  };
426
- declare function createConnectedDomain(httpClient: HttpClient): (connectedDomain: ConnectedDomain) => Promise<ConnectedDomain & {
427
+ declare function createConnectedDomain(httpClient: HttpClient$5): (connectedDomain: ConnectedDomain) => Promise<ConnectedDomain & {
427
428
  _id: string;
428
429
  domain: string;
429
430
  connectionType: ConnectionType$1;
@@ -436,7 +437,7 @@ declare function createConnectedDomain(httpClient: HttpClient): (connectedDomain
436
437
  suppressNotifications: boolean;
437
438
  dnsPropagationStatus: DnsPropagationStatus$1;
438
439
  }>;
439
- declare function getConnectedDomain(httpClient: HttpClient): (connectedDomainId: string) => Promise<ConnectedDomain & {
440
+ declare function getConnectedDomain(httpClient: HttpClient$5): (connectedDomainId: string) => Promise<ConnectedDomain & {
440
441
  _id: string;
441
442
  domain: string;
442
443
  connectionType: ConnectionType$1;
@@ -449,7 +450,7 @@ declare function getConnectedDomain(httpClient: HttpClient): (connectedDomainId:
449
450
  suppressNotifications: boolean;
450
451
  dnsPropagationStatus: DnsPropagationStatus$1;
451
452
  }>;
452
- declare function listConnectedDomains(httpClient: HttpClient): (options?: ListConnectedDomainsOptions) => Promise<ListConnectedDomainsResponse & ListConnectedDomainsResponseNonNullableFields>;
453
+ declare function listConnectedDomains(httpClient: HttpClient$5): (options?: ListConnectedDomainsOptions) => Promise<ListConnectedDomainsResponse & ListConnectedDomainsResponseNonNullableFields>;
453
454
  declare const onConnectedDomainRemoved: EventDefinition<ConnectedDomainRemovedEnvelope, "wix.premium.domains.v1.connected_domain_removed">;
454
455
 
455
456
  type index_d$5_BaseEventMetadata = BaseEventMetadata;
@@ -692,10 +693,42 @@ interface GetConnectedDomainSetupInfoResponseNonNullableFields {
692
693
  };
693
694
  }
694
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
+
695
728
  declare const __metadata$4: {
696
729
  PACKAGE_NAME: string;
697
730
  };
698
- declare function getConnectedDomainSetupInfo(httpClient: HttpClient): (connectedDomainId: string) => Promise<GetConnectedDomainSetupInfoResponse & GetConnectedDomainSetupInfoResponseNonNullableFields>;
731
+ declare function getConnectedDomainSetupInfo(httpClient: HttpClient$4): (connectedDomainId: string) => Promise<GetConnectedDomainSetupInfoResponse & GetConnectedDomainSetupInfoResponseNonNullableFields>;
699
732
 
700
733
  type index_d$4_ARecord = ARecord;
701
734
  type index_d$4_CnameRecord = CnameRecord;
@@ -1033,10 +1066,42 @@ interface UpdateDnsZoneOptions {
1033
1066
  dnssecEnabled?: boolean | null;
1034
1067
  }
1035
1068
 
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
+
1036
1101
  declare const __metadata$3: {
1037
1102
  PACKAGE_NAME: string;
1038
1103
  };
1039
- declare function createDnsZone(httpClient: HttpClient): (dnsZone: DnsZone) => Promise<DnsZone & {
1104
+ declare function createDnsZone(httpClient: HttpClient$3): (dnsZone: DnsZone) => Promise<DnsZone & {
1040
1105
  domainName: string;
1041
1106
  records: {
1042
1107
  type: RecordType;
@@ -1047,7 +1112,7 @@ declare function createDnsZone(httpClient: HttpClient): (dnsZone: DnsZone) => Pr
1047
1112
  _id: string;
1048
1113
  dnssecEnabled: boolean;
1049
1114
  }>;
1050
- declare function getDnsZone(httpClient: HttpClient): (domainName: string) => Promise<DnsZone & {
1115
+ declare function getDnsZone(httpClient: HttpClient$3): (domainName: string) => Promise<DnsZone & {
1051
1116
  domainName: string;
1052
1117
  records: {
1053
1118
  type: RecordType;
@@ -1058,9 +1123,9 @@ declare function getDnsZone(httpClient: HttpClient): (domainName: string) => Pro
1058
1123
  _id: string;
1059
1124
  dnssecEnabled: boolean;
1060
1125
  }>;
1061
- declare function updateDnsZone(httpClient: HttpClient): (domainName: string, options?: UpdateDnsZoneOptions) => Promise<UpdateDnsZoneResponse & UpdateDnsZoneResponseNonNullableFields>;
1062
- declare function deleteDnsZone(httpClient: HttpClient): (domainName: string) => Promise<void>;
1063
- declare function previewDnsZone(httpClient: HttpClient): (domainName: string) => Promise<PreviewDnsZoneResponse & PreviewDnsZoneResponseNonNullableFields>;
1126
+ declare function updateDnsZone(httpClient: HttpClient$3): (domainName: string, options?: UpdateDnsZoneOptions) => Promise<UpdateDnsZoneResponse & UpdateDnsZoneResponseNonNullableFields>;
1127
+ declare function deleteDnsZone(httpClient: HttpClient$3): (domainName: string) => Promise<void>;
1128
+ declare function previewDnsZone(httpClient: HttpClient$3): (domainName: string) => Promise<PreviewDnsZoneResponse & PreviewDnsZoneResponseNonNullableFields>;
1064
1129
 
1065
1130
  type index_d$3_CreateDnsZoneRequest = CreateDnsZoneRequest;
1066
1131
  type index_d$3_CreateDnsZoneResponse = CreateDnsZoneResponse;
@@ -1920,10 +1985,42 @@ interface ListRegisteredDomainsOptions {
1920
1985
  paging?: CursorPaging;
1921
1986
  }
1922
1987
 
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
+
1923
2020
  declare const __metadata$2: {
1924
2021
  PACKAGE_NAME: string;
1925
2022
  };
1926
- declare function createRegisteredDomain(httpClient: HttpClient): (registeredDomain: RegisteredDomain) => Promise<RegisteredDomain & {
2023
+ declare function createRegisteredDomain(httpClient: HttpClient$2): (registeredDomain: RegisteredDomain) => Promise<RegisteredDomain & {
1927
2024
  pendingRegistrationInfo?: {
1928
2025
  latestAttempt?: {
1929
2026
  number: number;
@@ -1983,7 +2080,7 @@ declare function createRegisteredDomain(httpClient: HttpClient): (registeredDoma
1983
2080
  } | undefined;
1984
2081
  dnsPropagationStatus: DnsPropagationStatus;
1985
2082
  }>;
1986
- declare function getRegisteredDomain(httpClient: HttpClient): (registeredDomainId: string) => Promise<RegisteredDomain & {
2083
+ declare function getRegisteredDomain(httpClient: HttpClient$2): (registeredDomainId: string) => Promise<RegisteredDomain & {
1987
2084
  pendingRegistrationInfo?: {
1988
2085
  latestAttempt?: {
1989
2086
  number: number;
@@ -2043,8 +2140,8 @@ declare function getRegisteredDomain(httpClient: HttpClient): (registeredDomainI
2043
2140
  } | undefined;
2044
2141
  dnsPropagationStatus: DnsPropagationStatus;
2045
2142
  }>;
2046
- declare function listRegisteredDomains(httpClient: HttpClient): (options?: ListRegisteredDomainsOptions) => Promise<ListRegisteredDomainsResponse & ListRegisteredDomainsResponseNonNullableFields>;
2047
- declare function redeemRegisteredDomain(httpClient: HttpClient): (registeredDomainId: string) => Promise<RedeemRegisteredDomainResponse & RedeemRegisteredDomainResponseNonNullableFields>;
2143
+ declare function listRegisteredDomains(httpClient: HttpClient$2): (options?: ListRegisteredDomainsOptions) => Promise<ListRegisteredDomainsResponse & ListRegisteredDomainsResponseNonNullableFields>;
2144
+ declare function redeemRegisteredDomain(httpClient: HttpClient$2): (registeredDomainId: string) => Promise<RedeemRegisteredDomainResponse & RedeemRegisteredDomainResponseNonNullableFields>;
2048
2145
 
2049
2146
  type index_d$2_ActionEvent = ActionEvent;
2050
2147
  type index_d$2_AssignmentType = AssignmentType;
@@ -2138,10 +2235,42 @@ interface CheckDomainAvailabilityResponseNonNullableFields {
2138
2235
  };
2139
2236
  }
2140
2237
 
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
+
2141
2270
  declare const __metadata$1: {
2142
2271
  PACKAGE_NAME: string;
2143
2272
  };
2144
- declare function checkDomainAvailability(httpClient: HttpClient): (domain: string) => Promise<CheckDomainAvailabilityResponse & CheckDomainAvailabilityResponseNonNullableFields>;
2273
+ declare function checkDomainAvailability(httpClient: HttpClient$1): (domain: string) => Promise<CheckDomainAvailabilityResponse & CheckDomainAvailabilityResponseNonNullableFields>;
2145
2274
 
2146
2275
  type index_d$1_CheckDomainAvailabilityRequest = CheckDomainAvailabilityRequest;
2147
2276
  type index_d$1_CheckDomainAvailabilityResponse = CheckDomainAvailabilityResponse;
@@ -2214,6 +2343,38 @@ interface SuggestDomainsOptions {
2214
2343
  limit?: number | null;
2215
2344
  }
2216
2345
 
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
+
2217
2378
  declare const __metadata: {
2218
2379
  PACKAGE_NAME: string;
2219
2380
  };