@wix/domains 1.0.3 → 1.0.5

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.3",
3
+ "version": "1.0.5",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -18,15 +18,14 @@
18
18
  "type-bundles"
19
19
  ],
20
20
  "dependencies": {
21
- "@wix/domains_connected-domain-setup-info": "1.0.0",
22
- "@wix/domains_connected-domains": "1.0.0",
23
- "@wix/domains_domain-availability": "1.0.0",
24
- "@wix/domains_domain-dns": "1.0.0",
25
- "@wix/domains_domain-suggestions": "1.0.0",
26
- "@wix/domains_registered-domains": "1.0.0"
21
+ "@wix/domains_connected-domain-setup-info": "1.0.1",
22
+ "@wix/domains_connected-domains": "1.0.1",
23
+ "@wix/domains_domain-availability": "1.0.1",
24
+ "@wix/domains_domain-dns": "1.0.1",
25
+ "@wix/domains_domain-suggestions": "1.0.1",
26
+ "@wix/domains_registered-domains": "1.0.1"
27
27
  },
28
28
  "devDependencies": {
29
- "@wix/sdk": "https://cdn.dev.wixpress.com/@wix/sdk/02e8069ab2fd783e0e6a080fc7d590e76cb26ab93c8389574286305b.tar.gz",
30
29
  "glob": "^10.4.1",
31
30
  "rollup": "^4.18.0",
32
31
  "rollup-plugin-dts": "^6.1.1",
@@ -48,5 +47,5 @@
48
47
  "fqdn": ""
49
48
  }
50
49
  },
51
- "falconPackageHash": "5b79477d37c741dc02407fb41f8de422f013b421dc5cf4fd5388e844"
50
+ "falconPackageHash": "7c32ff57bedb4911e6d897680d3ffc24acd0d1f42b132fa23258c34f"
52
51
  }
@@ -251,6 +251,7 @@ interface ListConnectedDomainsOptions {
251
251
  type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
252
252
  interface HttpClient {
253
253
  request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
254
+ fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
254
255
  }
255
256
  type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
256
257
  type HttpResponse<T = any> = {
@@ -276,13 +277,20 @@ type EventDefinition<Payload = unknown, Type extends string = string> = {
276
277
  __type: 'event-definition';
277
278
  type: Type;
278
279
  isDomainEvent?: boolean;
279
- transformations?: unknown;
280
+ transformations?: (envelope: unknown) => Payload;
280
281
  __payload: Payload;
281
282
  };
282
- declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, _transformations?: unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
283
+ declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
283
284
  type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
284
285
  type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
285
286
 
287
+ declare global {
288
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
289
+ interface SymbolConstructor {
290
+ readonly observable: symbol;
291
+ }
292
+ }
293
+
286
294
  declare function createConnectedDomain$1(httpClient: HttpClient): (connectedDomain: ConnectedDomain) => Promise<ConnectedDomain & {
287
295
  _id: string;
288
296
  domain: string;
@@ -383,6 +383,7 @@ interface ListConnectedDomainsOptions {
383
383
 
384
384
  interface HttpClient {
385
385
  request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
386
+ fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
386
387
  }
387
388
  type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
388
389
  type HttpResponse<T = any> = {
@@ -407,10 +408,17 @@ type EventDefinition<Payload = unknown, Type extends string = string> = {
407
408
  __type: 'event-definition';
408
409
  type: Type;
409
410
  isDomainEvent?: boolean;
410
- transformations?: unknown;
411
+ transformations?: (envelope: unknown) => Payload;
411
412
  __payload: Payload;
412
413
  };
413
- declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, _transformations?: unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
414
+ declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
415
+
416
+ declare global {
417
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
418
+ interface SymbolConstructor {
419
+ readonly observable: symbol;
420
+ }
421
+ }
414
422
 
415
423
  declare const __metadata$5: {
416
424
  PACKAGE_NAME: string;