@wix/data-resourceusage-service 1.0.0 → 1.0.1

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/data-resourceusage-service",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
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/data-resourceusage-service_data": "1.0.0"
21
+ "@wix/data-resourceusage-service_data": "1.0.1"
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": "652f677494424e1ae62f3d20e85f0c3fa06b75412116b19a9a32d757"
45
+ "falconPackageHash": "c462aa04e47589d7238874705692fc4a0a0e29ece62a447bef9141ef"
47
46
  }
@@ -83,6 +83,7 @@ interface GetResourceUsageOptions {
83
83
  type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
84
84
  interface HttpClient {
85
85
  request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
86
+ fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
86
87
  }
87
88
  type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
88
89
  type HttpResponse<T = any> = {
@@ -105,6 +106,13 @@ type APIMetadata = {
105
106
  };
106
107
  type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
107
108
 
109
+ declare global {
110
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
111
+ interface SymbolConstructor {
112
+ readonly observable: symbol;
113
+ }
114
+ }
115
+
108
116
  declare function getResourceUsage$1(httpClient: HttpClient): (options?: GetResourceUsageOptions) => Promise<GetResourceUsageResponse & GetResourceUsageResponseNonNullableFields>;
109
117
 
110
118
  declare const getResourceUsage: BuildRESTFunction<typeof getResourceUsage$1>;
@@ -381,6 +381,7 @@ interface GetResourceUsageOptions {
381
381
 
382
382
  interface HttpClient {
383
383
  request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
384
+ fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
384
385
  }
385
386
  type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
386
387
  type HttpResponse<T = any> = {
@@ -402,6 +403,13 @@ type APIMetadata = {
402
403
  packageName?: string;
403
404
  };
404
405
 
406
+ declare global {
407
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
408
+ interface SymbolConstructor {
409
+ readonly observable: symbol;
410
+ }
411
+ }
412
+
405
413
  declare const __metadata: {
406
414
  PACKAGE_NAME: string;
407
415
  };