@wix/domains 1.0.4 → 1.0.6

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/domains",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -22,7 +22,7 @@
22
22
  "@wix/domains_connected-domains": "1.0.1",
23
23
  "@wix/domains_domain-availability": "1.0.1",
24
24
  "@wix/domains_domain-dns": "1.0.1",
25
- "@wix/domains_domain-suggestions": "1.0.1",
25
+ "@wix/domains_domain-suggestions": "1.0.2",
26
26
  "@wix/domains_registered-domains": "1.0.1"
27
27
  },
28
28
  "devDependencies": {
@@ -47,5 +47,5 @@
47
47
  "fqdn": ""
48
48
  }
49
49
  },
50
- "falconPackageHash": "8d8d10823f9a833d80724bd382a57ae7b85222ccf679a47985f4c66f"
50
+ "falconPackageHash": "002c7320b5ee548ba7344084e95a9b637dcd05efc3c45c9eaf177a72"
51
51
  }
@@ -248,31 +248,31 @@ interface ListConnectedDomainsOptions {
248
248
  paging?: CursorPaging$1;
249
249
  }
250
250
 
251
- type RESTFunctionDescriptor$5<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$5) => T;
252
- interface HttpClient$5 {
253
- request<TResponse, TData = any>(req: RequestOptionsFactory$5<TResponse, TData>): Promise<HttpResponse$5<TResponse>>;
251
+ type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
252
+ interface HttpClient {
253
+ request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
254
254
  fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
255
255
  }
256
- type RequestOptionsFactory$5<TResponse = any, TData = any> = (context: any) => RequestOptions$5<TResponse, TData>;
257
- type HttpResponse$5<T = any> = {
256
+ type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
257
+ type HttpResponse<T = any> = {
258
258
  data: T;
259
259
  status: number;
260
260
  statusText: string;
261
261
  headers: any;
262
262
  request?: any;
263
263
  };
264
- type RequestOptions$5<_TResponse = any, Data = any> = {
264
+ type RequestOptions<_TResponse = any, Data = any> = {
265
265
  method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
266
266
  url: string;
267
267
  data?: Data;
268
268
  params?: URLSearchParams;
269
- } & APIMetadata$5;
270
- type APIMetadata$5 = {
269
+ } & APIMetadata;
270
+ type APIMetadata = {
271
271
  methodFqn?: string;
272
272
  entityFqdn?: string;
273
273
  packageName?: string;
274
274
  };
275
- type BuildRESTFunction$5<T extends RESTFunctionDescriptor$5> = T extends RESTFunctionDescriptor$5<infer U> ? U : never;
275
+ type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
276
276
  type EventDefinition<Payload = unknown, Type extends string = string> = {
277
277
  __type: 'event-definition';
278
278
  type: Type;
@@ -291,7 +291,7 @@ declare global {
291
291
  }
292
292
  }
293
293
 
294
- declare function createConnectedDomain$1(httpClient: HttpClient$5): (connectedDomain: ConnectedDomain) => Promise<ConnectedDomain & {
294
+ declare function createConnectedDomain$1(httpClient: HttpClient): (connectedDomain: ConnectedDomain) => Promise<ConnectedDomain & {
295
295
  _id: string;
296
296
  domain: string;
297
297
  connectionType: ConnectionType;
@@ -304,7 +304,7 @@ declare function createConnectedDomain$1(httpClient: HttpClient$5): (connectedDo
304
304
  suppressNotifications: boolean;
305
305
  dnsPropagationStatus: DnsPropagationStatus$1;
306
306
  }>;
307
- declare function getConnectedDomain$1(httpClient: HttpClient$5): (connectedDomainId: string) => Promise<ConnectedDomain & {
307
+ declare function getConnectedDomain$1(httpClient: HttpClient): (connectedDomainId: string) => Promise<ConnectedDomain & {
308
308
  _id: string;
309
309
  domain: string;
310
310
  connectionType: ConnectionType;
@@ -317,12 +317,12 @@ declare function getConnectedDomain$1(httpClient: HttpClient$5): (connectedDomai
317
317
  suppressNotifications: boolean;
318
318
  dnsPropagationStatus: DnsPropagationStatus$1;
319
319
  }>;
320
- declare function listConnectedDomains$1(httpClient: HttpClient$5): (options?: ListConnectedDomainsOptions) => Promise<ListConnectedDomainsResponse & ListConnectedDomainsResponseNonNullableFields>;
320
+ declare function listConnectedDomains$1(httpClient: HttpClient): (options?: ListConnectedDomainsOptions) => Promise<ListConnectedDomainsResponse & ListConnectedDomainsResponseNonNullableFields>;
321
321
  declare const onConnectedDomainRemoved$1: EventDefinition<ConnectedDomainRemovedEnvelope, "wix.premium.domains.v1.connected_domain_removed">;
322
322
 
323
- declare const createConnectedDomain: BuildRESTFunction$5<typeof createConnectedDomain$1>;
324
- declare const getConnectedDomain: BuildRESTFunction$5<typeof getConnectedDomain$1>;
325
- declare const listConnectedDomains: BuildRESTFunction$5<typeof listConnectedDomains$1>;
323
+ declare const createConnectedDomain: BuildRESTFunction<typeof createConnectedDomain$1>;
324
+ declare const getConnectedDomain: BuildRESTFunction<typeof getConnectedDomain$1>;
325
+ declare const listConnectedDomains: BuildRESTFunction<typeof listConnectedDomains$1>;
326
326
  declare const onConnectedDomainRemoved: BuildEventDefinition<typeof onConnectedDomainRemoved$1>;
327
327
 
328
328
  declare const context$5_createConnectedDomain: typeof createConnectedDomain;
@@ -492,42 +492,9 @@ interface GetConnectedDomainSetupInfoResponseNonNullableFields {
492
492
  };
493
493
  }
494
494
 
495
- type RESTFunctionDescriptor$4<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$4) => T;
496
- interface HttpClient$4 {
497
- request<TResponse, TData = any>(req: RequestOptionsFactory$4<TResponse, TData>): Promise<HttpResponse$4<TResponse>>;
498
- fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
499
- }
500
- type RequestOptionsFactory$4<TResponse = any, TData = any> = (context: any) => RequestOptions$4<TResponse, TData>;
501
- type HttpResponse$4<T = any> = {
502
- data: T;
503
- status: number;
504
- statusText: string;
505
- headers: any;
506
- request?: any;
507
- };
508
- type RequestOptions$4<_TResponse = any, Data = any> = {
509
- method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
510
- url: string;
511
- data?: Data;
512
- params?: URLSearchParams;
513
- } & APIMetadata$4;
514
- type APIMetadata$4 = {
515
- methodFqn?: string;
516
- entityFqdn?: string;
517
- packageName?: string;
518
- };
519
- type BuildRESTFunction$4<T extends RESTFunctionDescriptor$4> = T extends RESTFunctionDescriptor$4<infer U> ? U : never;
495
+ declare function getConnectedDomainSetupInfo$1(httpClient: HttpClient): (connectedDomainId: string) => Promise<GetConnectedDomainSetupInfoResponse & GetConnectedDomainSetupInfoResponseNonNullableFields>;
520
496
 
521
- declare global {
522
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
523
- interface SymbolConstructor {
524
- readonly observable: symbol;
525
- }
526
- }
527
-
528
- declare function getConnectedDomainSetupInfo$1(httpClient: HttpClient$4): (connectedDomainId: string) => Promise<GetConnectedDomainSetupInfoResponse & GetConnectedDomainSetupInfoResponseNonNullableFields>;
529
-
530
- declare const getConnectedDomainSetupInfo: BuildRESTFunction$4<typeof getConnectedDomainSetupInfo$1>;
497
+ declare const getConnectedDomainSetupInfo: BuildRESTFunction<typeof getConnectedDomainSetupInfo$1>;
531
498
 
532
499
  declare const context$4_getConnectedDomainSetupInfo: typeof getConnectedDomainSetupInfo;
533
500
  declare namespace context$4 {
@@ -663,40 +630,7 @@ interface UpdateDnsZoneOptions {
663
630
  dnssecEnabled?: boolean | null;
664
631
  }
665
632
 
666
- type RESTFunctionDescriptor$3<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$3) => T;
667
- interface HttpClient$3 {
668
- request<TResponse, TData = any>(req: RequestOptionsFactory$3<TResponse, TData>): Promise<HttpResponse$3<TResponse>>;
669
- fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
670
- }
671
- type RequestOptionsFactory$3<TResponse = any, TData = any> = (context: any) => RequestOptions$3<TResponse, TData>;
672
- type HttpResponse$3<T = any> = {
673
- data: T;
674
- status: number;
675
- statusText: string;
676
- headers: any;
677
- request?: any;
678
- };
679
- type RequestOptions$3<_TResponse = any, Data = any> = {
680
- method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
681
- url: string;
682
- data?: Data;
683
- params?: URLSearchParams;
684
- } & APIMetadata$3;
685
- type APIMetadata$3 = {
686
- methodFqn?: string;
687
- entityFqdn?: string;
688
- packageName?: string;
689
- };
690
- type BuildRESTFunction$3<T extends RESTFunctionDescriptor$3> = T extends RESTFunctionDescriptor$3<infer U> ? U : never;
691
-
692
- declare global {
693
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
694
- interface SymbolConstructor {
695
- readonly observable: symbol;
696
- }
697
- }
698
-
699
- declare function createDnsZone$1(httpClient: HttpClient$3): (dnsZone: DnsZone) => Promise<DnsZone & {
633
+ declare function createDnsZone$1(httpClient: HttpClient): (dnsZone: DnsZone) => Promise<DnsZone & {
700
634
  domainName: string;
701
635
  records: {
702
636
  type: RecordType;
@@ -707,7 +641,7 @@ declare function createDnsZone$1(httpClient: HttpClient$3): (dnsZone: DnsZone) =
707
641
  _id: string;
708
642
  dnssecEnabled: boolean;
709
643
  }>;
710
- declare function getDnsZone$1(httpClient: HttpClient$3): (domainName: string) => Promise<DnsZone & {
644
+ declare function getDnsZone$1(httpClient: HttpClient): (domainName: string) => Promise<DnsZone & {
711
645
  domainName: string;
712
646
  records: {
713
647
  type: RecordType;
@@ -718,15 +652,15 @@ declare function getDnsZone$1(httpClient: HttpClient$3): (domainName: string) =>
718
652
  _id: string;
719
653
  dnssecEnabled: boolean;
720
654
  }>;
721
- declare function updateDnsZone$1(httpClient: HttpClient$3): (domainName: string, options?: UpdateDnsZoneOptions) => Promise<UpdateDnsZoneResponse & UpdateDnsZoneResponseNonNullableFields>;
722
- declare function deleteDnsZone$1(httpClient: HttpClient$3): (domainName: string) => Promise<void>;
723
- declare function previewDnsZone$1(httpClient: HttpClient$3): (domainName: string) => Promise<PreviewDnsZoneResponse & PreviewDnsZoneResponseNonNullableFields>;
655
+ declare function updateDnsZone$1(httpClient: HttpClient): (domainName: string, options?: UpdateDnsZoneOptions) => Promise<UpdateDnsZoneResponse & UpdateDnsZoneResponseNonNullableFields>;
656
+ declare function deleteDnsZone$1(httpClient: HttpClient): (domainName: string) => Promise<void>;
657
+ declare function previewDnsZone$1(httpClient: HttpClient): (domainName: string) => Promise<PreviewDnsZoneResponse & PreviewDnsZoneResponseNonNullableFields>;
724
658
 
725
- declare const createDnsZone: BuildRESTFunction$3<typeof createDnsZone$1>;
726
- declare const getDnsZone: BuildRESTFunction$3<typeof getDnsZone$1>;
727
- declare const updateDnsZone: BuildRESTFunction$3<typeof updateDnsZone$1>;
728
- declare const deleteDnsZone: BuildRESTFunction$3<typeof deleteDnsZone$1>;
729
- declare const previewDnsZone: BuildRESTFunction$3<typeof previewDnsZone$1>;
659
+ declare const createDnsZone: BuildRESTFunction<typeof createDnsZone$1>;
660
+ declare const getDnsZone: BuildRESTFunction<typeof getDnsZone$1>;
661
+ declare const updateDnsZone: BuildRESTFunction<typeof updateDnsZone$1>;
662
+ declare const deleteDnsZone: BuildRESTFunction<typeof deleteDnsZone$1>;
663
+ declare const previewDnsZone: BuildRESTFunction<typeof previewDnsZone$1>;
730
664
 
731
665
  declare const context$3_createDnsZone: typeof createDnsZone;
732
666
  declare const context$3_deleteDnsZone: typeof deleteDnsZone;
@@ -1302,40 +1236,7 @@ interface ListRegisteredDomainsOptions {
1302
1236
  paging?: CursorPaging;
1303
1237
  }
1304
1238
 
1305
- type RESTFunctionDescriptor$2<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$2) => T;
1306
- interface HttpClient$2 {
1307
- request<TResponse, TData = any>(req: RequestOptionsFactory$2<TResponse, TData>): Promise<HttpResponse$2<TResponse>>;
1308
- fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
1309
- }
1310
- type RequestOptionsFactory$2<TResponse = any, TData = any> = (context: any) => RequestOptions$2<TResponse, TData>;
1311
- type HttpResponse$2<T = any> = {
1312
- data: T;
1313
- status: number;
1314
- statusText: string;
1315
- headers: any;
1316
- request?: any;
1317
- };
1318
- type RequestOptions$2<_TResponse = any, Data = any> = {
1319
- method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
1320
- url: string;
1321
- data?: Data;
1322
- params?: URLSearchParams;
1323
- } & APIMetadata$2;
1324
- type APIMetadata$2 = {
1325
- methodFqn?: string;
1326
- entityFqdn?: string;
1327
- packageName?: string;
1328
- };
1329
- type BuildRESTFunction$2<T extends RESTFunctionDescriptor$2> = T extends RESTFunctionDescriptor$2<infer U> ? U : never;
1330
-
1331
- declare global {
1332
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
1333
- interface SymbolConstructor {
1334
- readonly observable: symbol;
1335
- }
1336
- }
1337
-
1338
- declare function createRegisteredDomain$1(httpClient: HttpClient$2): (registeredDomain: RegisteredDomain) => Promise<RegisteredDomain & {
1239
+ declare function createRegisteredDomain$1(httpClient: HttpClient): (registeredDomain: RegisteredDomain) => Promise<RegisteredDomain & {
1339
1240
  pendingRegistrationInfo?: {
1340
1241
  latestAttempt?: {
1341
1242
  number: number;
@@ -1395,7 +1296,7 @@ declare function createRegisteredDomain$1(httpClient: HttpClient$2): (registered
1395
1296
  } | undefined;
1396
1297
  dnsPropagationStatus: DnsPropagationStatus;
1397
1298
  }>;
1398
- declare function getRegisteredDomain$1(httpClient: HttpClient$2): (registeredDomainId: string) => Promise<RegisteredDomain & {
1299
+ declare function getRegisteredDomain$1(httpClient: HttpClient): (registeredDomainId: string) => Promise<RegisteredDomain & {
1399
1300
  pendingRegistrationInfo?: {
1400
1301
  latestAttempt?: {
1401
1302
  number: number;
@@ -1455,13 +1356,13 @@ declare function getRegisteredDomain$1(httpClient: HttpClient$2): (registeredDom
1455
1356
  } | undefined;
1456
1357
  dnsPropagationStatus: DnsPropagationStatus;
1457
1358
  }>;
1458
- declare function listRegisteredDomains$1(httpClient: HttpClient$2): (options?: ListRegisteredDomainsOptions) => Promise<ListRegisteredDomainsResponse & ListRegisteredDomainsResponseNonNullableFields>;
1459
- declare function redeemRegisteredDomain$1(httpClient: HttpClient$2): (registeredDomainId: string) => Promise<RedeemRegisteredDomainResponse & RedeemRegisteredDomainResponseNonNullableFields>;
1359
+ declare function listRegisteredDomains$1(httpClient: HttpClient): (options?: ListRegisteredDomainsOptions) => Promise<ListRegisteredDomainsResponse & ListRegisteredDomainsResponseNonNullableFields>;
1360
+ declare function redeemRegisteredDomain$1(httpClient: HttpClient): (registeredDomainId: string) => Promise<RedeemRegisteredDomainResponse & RedeemRegisteredDomainResponseNonNullableFields>;
1460
1361
 
1461
- declare const createRegisteredDomain: BuildRESTFunction$2<typeof createRegisteredDomain$1>;
1462
- declare const getRegisteredDomain: BuildRESTFunction$2<typeof getRegisteredDomain$1>;
1463
- declare const listRegisteredDomains: BuildRESTFunction$2<typeof listRegisteredDomains$1>;
1464
- declare const redeemRegisteredDomain: BuildRESTFunction$2<typeof redeemRegisteredDomain$1>;
1362
+ declare const createRegisteredDomain: BuildRESTFunction<typeof createRegisteredDomain$1>;
1363
+ declare const getRegisteredDomain: BuildRESTFunction<typeof getRegisteredDomain$1>;
1364
+ declare const listRegisteredDomains: BuildRESTFunction<typeof listRegisteredDomains$1>;
1365
+ declare const redeemRegisteredDomain: BuildRESTFunction<typeof redeemRegisteredDomain$1>;
1465
1366
 
1466
1367
  declare const context$2_createRegisteredDomain: typeof createRegisteredDomain;
1467
1368
  declare const context$2_getRegisteredDomain: typeof getRegisteredDomain;
@@ -1492,42 +1393,9 @@ interface CheckDomainAvailabilityResponseNonNullableFields {
1492
1393
  };
1493
1394
  }
1494
1395
 
1495
- type RESTFunctionDescriptor$1<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$1) => T;
1496
- interface HttpClient$1 {
1497
- request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
1498
- fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
1499
- }
1500
- type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
1501
- type HttpResponse$1<T = any> = {
1502
- data: T;
1503
- status: number;
1504
- statusText: string;
1505
- headers: any;
1506
- request?: any;
1507
- };
1508
- type RequestOptions$1<_TResponse = any, Data = any> = {
1509
- method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
1510
- url: string;
1511
- data?: Data;
1512
- params?: URLSearchParams;
1513
- } & APIMetadata$1;
1514
- type APIMetadata$1 = {
1515
- methodFqn?: string;
1516
- entityFqdn?: string;
1517
- packageName?: string;
1518
- };
1519
- type BuildRESTFunction$1<T extends RESTFunctionDescriptor$1> = T extends RESTFunctionDescriptor$1<infer U> ? U : never;
1520
-
1521
- declare global {
1522
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
1523
- interface SymbolConstructor {
1524
- readonly observable: symbol;
1525
- }
1526
- }
1396
+ declare function checkDomainAvailability$1(httpClient: HttpClient): (domain: string) => Promise<CheckDomainAvailabilityResponse & CheckDomainAvailabilityResponseNonNullableFields>;
1527
1397
 
1528
- declare function checkDomainAvailability$1(httpClient: HttpClient$1): (domain: string) => Promise<CheckDomainAvailabilityResponse & CheckDomainAvailabilityResponseNonNullableFields>;
1529
-
1530
- declare const checkDomainAvailability: BuildRESTFunction$1<typeof checkDomainAvailability$1>;
1398
+ declare const checkDomainAvailability: BuildRESTFunction<typeof checkDomainAvailability$1>;
1531
1399
 
1532
1400
  declare const context$1_checkDomainAvailability: typeof checkDomainAvailability;
1533
1401
  declare namespace context$1 {
@@ -1568,39 +1436,6 @@ interface SuggestDomainsOptions {
1568
1436
  limit?: number | null;
1569
1437
  }
1570
1438
 
1571
- type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
1572
- interface HttpClient {
1573
- request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
1574
- fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
1575
- }
1576
- type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
1577
- type HttpResponse<T = any> = {
1578
- data: T;
1579
- status: number;
1580
- statusText: string;
1581
- headers: any;
1582
- request?: any;
1583
- };
1584
- type RequestOptions<_TResponse = any, Data = any> = {
1585
- method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
1586
- url: string;
1587
- data?: Data;
1588
- params?: URLSearchParams;
1589
- } & APIMetadata;
1590
- type APIMetadata = {
1591
- methodFqn?: string;
1592
- entityFqdn?: string;
1593
- packageName?: string;
1594
- };
1595
- type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
1596
-
1597
- declare global {
1598
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
1599
- interface SymbolConstructor {
1600
- readonly observable: symbol;
1601
- }
1602
- }
1603
-
1604
1439
  declare function suggestDomains$1(httpClient: HttpClient): (query: string, options?: SuggestDomainsOptions) => Promise<SuggestDomainsResponse & SuggestDomainsResponseNonNullableFields>;
1605
1440
 
1606
1441
  declare const suggestDomains: BuildRESTFunction<typeof suggestDomains$1>;
@@ -381,25 +381,25 @@ interface ListConnectedDomainsOptions {
381
381
  paging?: CursorPaging$1;
382
382
  }
383
383
 
384
- interface HttpClient$5 {
385
- request<TResponse, TData = any>(req: RequestOptionsFactory$5<TResponse, TData>): Promise<HttpResponse$5<TResponse>>;
384
+ interface HttpClient {
385
+ request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
386
386
  fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
387
387
  }
388
- type RequestOptionsFactory$5<TResponse = any, TData = any> = (context: any) => RequestOptions$5<TResponse, TData>;
389
- type HttpResponse$5<T = any> = {
388
+ type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
389
+ type HttpResponse<T = any> = {
390
390
  data: T;
391
391
  status: number;
392
392
  statusText: string;
393
393
  headers: any;
394
394
  request?: any;
395
395
  };
396
- type RequestOptions$5<_TResponse = any, Data = any> = {
396
+ type RequestOptions<_TResponse = any, Data = any> = {
397
397
  method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
398
398
  url: string;
399
399
  data?: Data;
400
400
  params?: URLSearchParams;
401
- } & APIMetadata$5;
402
- type APIMetadata$5 = {
401
+ } & APIMetadata;
402
+ type APIMetadata = {
403
403
  methodFqn?: string;
404
404
  entityFqdn?: string;
405
405
  packageName?: string;
@@ -423,7 +423,7 @@ declare global {
423
423
  declare const __metadata$5: {
424
424
  PACKAGE_NAME: string;
425
425
  };
426
- declare function createConnectedDomain(httpClient: HttpClient$5): (connectedDomain: ConnectedDomain) => Promise<ConnectedDomain & {
426
+ declare function createConnectedDomain(httpClient: HttpClient): (connectedDomain: ConnectedDomain) => Promise<ConnectedDomain & {
427
427
  _id: string;
428
428
  domain: string;
429
429
  connectionType: ConnectionType$1;
@@ -436,7 +436,7 @@ declare function createConnectedDomain(httpClient: HttpClient$5): (connectedDoma
436
436
  suppressNotifications: boolean;
437
437
  dnsPropagationStatus: DnsPropagationStatus$1;
438
438
  }>;
439
- declare function getConnectedDomain(httpClient: HttpClient$5): (connectedDomainId: string) => Promise<ConnectedDomain & {
439
+ declare function getConnectedDomain(httpClient: HttpClient): (connectedDomainId: string) => Promise<ConnectedDomain & {
440
440
  _id: string;
441
441
  domain: string;
442
442
  connectionType: ConnectionType$1;
@@ -449,7 +449,7 @@ declare function getConnectedDomain(httpClient: HttpClient$5): (connectedDomainI
449
449
  suppressNotifications: boolean;
450
450
  dnsPropagationStatus: DnsPropagationStatus$1;
451
451
  }>;
452
- declare function listConnectedDomains(httpClient: HttpClient$5): (options?: ListConnectedDomainsOptions) => Promise<ListConnectedDomainsResponse & ListConnectedDomainsResponseNonNullableFields>;
452
+ declare function listConnectedDomains(httpClient: HttpClient): (options?: ListConnectedDomainsOptions) => Promise<ListConnectedDomainsResponse & ListConnectedDomainsResponseNonNullableFields>;
453
453
  declare const onConnectedDomainRemoved: EventDefinition<ConnectedDomainRemovedEnvelope, "wix.premium.domains.v1.connected_domain_removed">;
454
454
 
455
455
  type index_d$5_BaseEventMetadata = BaseEventMetadata;
@@ -692,41 +692,10 @@ interface GetConnectedDomainSetupInfoResponseNonNullableFields {
692
692
  };
693
693
  }
694
694
 
695
- interface HttpClient$4 {
696
- request<TResponse, TData = any>(req: RequestOptionsFactory$4<TResponse, TData>): Promise<HttpResponse$4<TResponse>>;
697
- fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
698
- }
699
- type RequestOptionsFactory$4<TResponse = any, TData = any> = (context: any) => RequestOptions$4<TResponse, TData>;
700
- type HttpResponse$4<T = any> = {
701
- data: T;
702
- status: number;
703
- statusText: string;
704
- headers: any;
705
- request?: any;
706
- };
707
- type RequestOptions$4<_TResponse = any, Data = any> = {
708
- method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
709
- url: string;
710
- data?: Data;
711
- params?: URLSearchParams;
712
- } & APIMetadata$4;
713
- type APIMetadata$4 = {
714
- methodFqn?: string;
715
- entityFqdn?: string;
716
- packageName?: string;
717
- };
718
-
719
- declare global {
720
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
721
- interface SymbolConstructor {
722
- readonly observable: symbol;
723
- }
724
- }
725
-
726
695
  declare const __metadata$4: {
727
696
  PACKAGE_NAME: string;
728
697
  };
729
- declare function getConnectedDomainSetupInfo(httpClient: HttpClient$4): (connectedDomainId: string) => Promise<GetConnectedDomainSetupInfoResponse & GetConnectedDomainSetupInfoResponseNonNullableFields>;
698
+ declare function getConnectedDomainSetupInfo(httpClient: HttpClient): (connectedDomainId: string) => Promise<GetConnectedDomainSetupInfoResponse & GetConnectedDomainSetupInfoResponseNonNullableFields>;
730
699
 
731
700
  type index_d$4_ARecord = ARecord;
732
701
  type index_d$4_CnameRecord = CnameRecord;
@@ -1064,41 +1033,10 @@ interface UpdateDnsZoneOptions {
1064
1033
  dnssecEnabled?: boolean | null;
1065
1034
  }
1066
1035
 
1067
- interface HttpClient$3 {
1068
- request<TResponse, TData = any>(req: RequestOptionsFactory$3<TResponse, TData>): Promise<HttpResponse$3<TResponse>>;
1069
- fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
1070
- }
1071
- type RequestOptionsFactory$3<TResponse = any, TData = any> = (context: any) => RequestOptions$3<TResponse, TData>;
1072
- type HttpResponse$3<T = any> = {
1073
- data: T;
1074
- status: number;
1075
- statusText: string;
1076
- headers: any;
1077
- request?: any;
1078
- };
1079
- type RequestOptions$3<_TResponse = any, Data = any> = {
1080
- method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
1081
- url: string;
1082
- data?: Data;
1083
- params?: URLSearchParams;
1084
- } & APIMetadata$3;
1085
- type APIMetadata$3 = {
1086
- methodFqn?: string;
1087
- entityFqdn?: string;
1088
- packageName?: string;
1089
- };
1090
-
1091
- declare global {
1092
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
1093
- interface SymbolConstructor {
1094
- readonly observable: symbol;
1095
- }
1096
- }
1097
-
1098
1036
  declare const __metadata$3: {
1099
1037
  PACKAGE_NAME: string;
1100
1038
  };
1101
- declare function createDnsZone(httpClient: HttpClient$3): (dnsZone: DnsZone) => Promise<DnsZone & {
1039
+ declare function createDnsZone(httpClient: HttpClient): (dnsZone: DnsZone) => Promise<DnsZone & {
1102
1040
  domainName: string;
1103
1041
  records: {
1104
1042
  type: RecordType;
@@ -1109,7 +1047,7 @@ declare function createDnsZone(httpClient: HttpClient$3): (dnsZone: DnsZone) =>
1109
1047
  _id: string;
1110
1048
  dnssecEnabled: boolean;
1111
1049
  }>;
1112
- declare function getDnsZone(httpClient: HttpClient$3): (domainName: string) => Promise<DnsZone & {
1050
+ declare function getDnsZone(httpClient: HttpClient): (domainName: string) => Promise<DnsZone & {
1113
1051
  domainName: string;
1114
1052
  records: {
1115
1053
  type: RecordType;
@@ -1120,9 +1058,9 @@ declare function getDnsZone(httpClient: HttpClient$3): (domainName: string) => P
1120
1058
  _id: string;
1121
1059
  dnssecEnabled: boolean;
1122
1060
  }>;
1123
- declare function updateDnsZone(httpClient: HttpClient$3): (domainName: string, options?: UpdateDnsZoneOptions) => Promise<UpdateDnsZoneResponse & UpdateDnsZoneResponseNonNullableFields>;
1124
- declare function deleteDnsZone(httpClient: HttpClient$3): (domainName: string) => Promise<void>;
1125
- declare function previewDnsZone(httpClient: HttpClient$3): (domainName: string) => Promise<PreviewDnsZoneResponse & PreviewDnsZoneResponseNonNullableFields>;
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
1064
 
1127
1065
  type index_d$3_CreateDnsZoneRequest = CreateDnsZoneRequest;
1128
1066
  type index_d$3_CreateDnsZoneResponse = CreateDnsZoneResponse;
@@ -1982,41 +1920,10 @@ interface ListRegisteredDomainsOptions {
1982
1920
  paging?: CursorPaging;
1983
1921
  }
1984
1922
 
1985
- interface HttpClient$2 {
1986
- request<TResponse, TData = any>(req: RequestOptionsFactory$2<TResponse, TData>): Promise<HttpResponse$2<TResponse>>;
1987
- fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
1988
- }
1989
- type RequestOptionsFactory$2<TResponse = any, TData = any> = (context: any) => RequestOptions$2<TResponse, TData>;
1990
- type HttpResponse$2<T = any> = {
1991
- data: T;
1992
- status: number;
1993
- statusText: string;
1994
- headers: any;
1995
- request?: any;
1996
- };
1997
- type RequestOptions$2<_TResponse = any, Data = any> = {
1998
- method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
1999
- url: string;
2000
- data?: Data;
2001
- params?: URLSearchParams;
2002
- } & APIMetadata$2;
2003
- type APIMetadata$2 = {
2004
- methodFqn?: string;
2005
- entityFqdn?: string;
2006
- packageName?: string;
2007
- };
2008
-
2009
- declare global {
2010
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
2011
- interface SymbolConstructor {
2012
- readonly observable: symbol;
2013
- }
2014
- }
2015
-
2016
1923
  declare const __metadata$2: {
2017
1924
  PACKAGE_NAME: string;
2018
1925
  };
2019
- declare function createRegisteredDomain(httpClient: HttpClient$2): (registeredDomain: RegisteredDomain) => Promise<RegisteredDomain & {
1926
+ declare function createRegisteredDomain(httpClient: HttpClient): (registeredDomain: RegisteredDomain) => Promise<RegisteredDomain & {
2020
1927
  pendingRegistrationInfo?: {
2021
1928
  latestAttempt?: {
2022
1929
  number: number;
@@ -2076,7 +1983,7 @@ declare function createRegisteredDomain(httpClient: HttpClient$2): (registeredDo
2076
1983
  } | undefined;
2077
1984
  dnsPropagationStatus: DnsPropagationStatus;
2078
1985
  }>;
2079
- declare function getRegisteredDomain(httpClient: HttpClient$2): (registeredDomainId: string) => Promise<RegisteredDomain & {
1986
+ declare function getRegisteredDomain(httpClient: HttpClient): (registeredDomainId: string) => Promise<RegisteredDomain & {
2080
1987
  pendingRegistrationInfo?: {
2081
1988
  latestAttempt?: {
2082
1989
  number: number;
@@ -2136,8 +2043,8 @@ declare function getRegisteredDomain(httpClient: HttpClient$2): (registeredDomai
2136
2043
  } | undefined;
2137
2044
  dnsPropagationStatus: DnsPropagationStatus;
2138
2045
  }>;
2139
- declare function listRegisteredDomains(httpClient: HttpClient$2): (options?: ListRegisteredDomainsOptions) => Promise<ListRegisteredDomainsResponse & ListRegisteredDomainsResponseNonNullableFields>;
2140
- declare function redeemRegisteredDomain(httpClient: HttpClient$2): (registeredDomainId: string) => Promise<RedeemRegisteredDomainResponse & RedeemRegisteredDomainResponseNonNullableFields>;
2046
+ declare function listRegisteredDomains(httpClient: HttpClient): (options?: ListRegisteredDomainsOptions) => Promise<ListRegisteredDomainsResponse & ListRegisteredDomainsResponseNonNullableFields>;
2047
+ declare function redeemRegisteredDomain(httpClient: HttpClient): (registeredDomainId: string) => Promise<RedeemRegisteredDomainResponse & RedeemRegisteredDomainResponseNonNullableFields>;
2141
2048
 
2142
2049
  type index_d$2_ActionEvent = ActionEvent;
2143
2050
  type index_d$2_AssignmentType = AssignmentType;
@@ -2231,41 +2138,10 @@ interface CheckDomainAvailabilityResponseNonNullableFields {
2231
2138
  };
2232
2139
  }
2233
2140
 
2234
- interface HttpClient$1 {
2235
- request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
2236
- fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
2237
- }
2238
- type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
2239
- type HttpResponse$1<T = any> = {
2240
- data: T;
2241
- status: number;
2242
- statusText: string;
2243
- headers: any;
2244
- request?: any;
2245
- };
2246
- type RequestOptions$1<_TResponse = any, Data = any> = {
2247
- method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
2248
- url: string;
2249
- data?: Data;
2250
- params?: URLSearchParams;
2251
- } & APIMetadata$1;
2252
- type APIMetadata$1 = {
2253
- methodFqn?: string;
2254
- entityFqdn?: string;
2255
- packageName?: string;
2256
- };
2257
-
2258
- declare global {
2259
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
2260
- interface SymbolConstructor {
2261
- readonly observable: symbol;
2262
- }
2263
- }
2264
-
2265
2141
  declare const __metadata$1: {
2266
2142
  PACKAGE_NAME: string;
2267
2143
  };
2268
- declare function checkDomainAvailability(httpClient: HttpClient$1): (domain: string) => Promise<CheckDomainAvailabilityResponse & CheckDomainAvailabilityResponseNonNullableFields>;
2144
+ declare function checkDomainAvailability(httpClient: HttpClient): (domain: string) => Promise<CheckDomainAvailabilityResponse & CheckDomainAvailabilityResponseNonNullableFields>;
2269
2145
 
2270
2146
  type index_d$1_CheckDomainAvailabilityRequest = CheckDomainAvailabilityRequest;
2271
2147
  type index_d$1_CheckDomainAvailabilityResponse = CheckDomainAvailabilityResponse;
@@ -2338,37 +2214,6 @@ interface SuggestDomainsOptions {
2338
2214
  limit?: number | null;
2339
2215
  }
2340
2216
 
2341
- interface HttpClient {
2342
- request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
2343
- fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
2344
- }
2345
- type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
2346
- type HttpResponse<T = any> = {
2347
- data: T;
2348
- status: number;
2349
- statusText: string;
2350
- headers: any;
2351
- request?: any;
2352
- };
2353
- type RequestOptions<_TResponse = any, Data = any> = {
2354
- method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
2355
- url: string;
2356
- data?: Data;
2357
- params?: URLSearchParams;
2358
- } & APIMetadata;
2359
- type APIMetadata = {
2360
- methodFqn?: string;
2361
- entityFqdn?: string;
2362
- packageName?: string;
2363
- };
2364
-
2365
- declare global {
2366
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
2367
- interface SymbolConstructor {
2368
- readonly observable: symbol;
2369
- }
2370
- }
2371
-
2372
2217
  declare const __metadata: {
2373
2218
  PACKAGE_NAME: string;
2374
2219
  };