@wix/pro-gallery 1.0.49 → 1.0.50

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/pro-gallery",
3
- "version": "1.0.49",
3
+ "version": "1.0.50",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -18,10 +18,9 @@
18
18
  "type-bundles"
19
19
  ],
20
20
  "dependencies": {
21
- "@wix/pro-gallery_pro-gallery": "1.0.20"
21
+ "@wix/pro-gallery_pro-gallery": "1.0.21"
22
22
  },
23
23
  "devDependencies": {
24
- "@wix/sdk": "https://cdn.dev.wixpress.com/@wix/sdk/02e8069ab2fd783e0e6a080fc7d590e76cb26ab93c8389574286305b.tar.gz",
25
24
  "glob": "^10.4.1",
26
25
  "rollup": "^4.18.0",
27
26
  "rollup-plugin-dts": "^6.1.1",
@@ -43,5 +42,5 @@
43
42
  "fqdn": ""
44
43
  }
45
44
  },
46
- "falconPackageHash": "f44d7f859de35093a08dfb7f1b3631626d0b2fd5f7c0106fab17e6b1"
45
+ "falconPackageHash": "03636935404e20e47a9f375f69d542110df32f7526e7056d7fa83e85"
47
46
  }
@@ -511,6 +511,7 @@ interface DeleteGalleryItemIdentifiers {
511
511
  type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
512
512
  interface HttpClient {
513
513
  request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
514
+ fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
514
515
  }
515
516
  type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
516
517
  type HttpResponse<T = any> = {
@@ -536,13 +537,20 @@ type EventDefinition<Payload = unknown, Type extends string = string> = {
536
537
  __type: 'event-definition';
537
538
  type: Type;
538
539
  isDomainEvent?: boolean;
539
- transformations?: unknown;
540
+ transformations?: (envelope: unknown) => Payload;
540
541
  __payload: Payload;
541
542
  };
542
- declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, _transformations?: unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
543
+ declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
543
544
  type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
544
545
  type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
545
546
 
547
+ declare global {
548
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
549
+ interface SymbolConstructor {
550
+ readonly observable: symbol;
551
+ }
552
+ }
553
+
546
554
  declare function listGalleries$1(httpClient: HttpClient): (options?: ListGalleriesOptions) => Promise<ListGalleriesResponse & ListGalleriesResponseNonNullableFields>;
547
555
  declare function getGallery$1(httpClient: HttpClient): (galleryId: string, options?: GetGalleryOptions) => Promise<Gallery & {
548
556
  items: {
@@ -1287,6 +1287,7 @@ interface DeleteGalleryItemIdentifiers {
1287
1287
 
1288
1288
  interface HttpClient {
1289
1289
  request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
1290
+ fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
1290
1291
  }
1291
1292
  type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
1292
1293
  type HttpResponse<T = any> = {
@@ -1311,10 +1312,17 @@ type EventDefinition<Payload = unknown, Type extends string = string> = {
1311
1312
  __type: 'event-definition';
1312
1313
  type: Type;
1313
1314
  isDomainEvent?: boolean;
1314
- transformations?: unknown;
1315
+ transformations?: (envelope: unknown) => Payload;
1315
1316
  __payload: Payload;
1316
1317
  };
1317
- declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, _transformations?: unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
1318
+ declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
1319
+
1320
+ declare global {
1321
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
1322
+ interface SymbolConstructor {
1323
+ readonly observable: symbol;
1324
+ }
1325
+ }
1318
1326
 
1319
1327
  declare const __metadata: {
1320
1328
  PACKAGE_NAME: string;