@wix/app-management 1.0.17 → 1.0.19

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/app-management",
3
- "version": "1.0.17",
3
+ "version": "1.0.19",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -19,15 +19,14 @@
19
19
  "service-plugins"
20
20
  ],
21
21
  "dependencies": {
22
- "@wix/app-management_app-instances": "1.0.8",
23
- "@wix/app-management_app-plans": "1.0.8",
24
- "@wix/app-management_bi-events": "1.0.7",
25
- "@wix/app-management_billing": "1.0.8",
26
- "@wix/app-management_custom-charges": "1.0.3",
27
- "@wix/app-management_embedded-scripts": "1.0.5"
22
+ "@wix/app-management_app-instances": "1.0.10",
23
+ "@wix/app-management_app-plans": "1.0.10",
24
+ "@wix/app-management_bi-events": "1.0.9",
25
+ "@wix/app-management_billing": "1.0.10",
26
+ "@wix/app-management_custom-charges": "1.0.5",
27
+ "@wix/app-management_embedded-scripts": "1.0.7"
28
28
  },
29
29
  "devDependencies": {
30
- "@wix/sdk": "https://cdn.dev.wixpress.com/@wix/sdk/02e8069ab2fd783e0e6a080fc7d590e76cb26ab93c8389574286305b.tar.gz",
31
30
  "glob": "^10.4.1",
32
31
  "rollup": "^4.18.0",
33
32
  "rollup-plugin-dts": "^6.1.1",
@@ -49,5 +48,5 @@
49
48
  "fqdn": ""
50
49
  }
51
50
  },
52
- "falconPackageHash": "612b4667ab176ba9db1cc7d819da2764192701d978858b4d66a7d923"
51
+ "falconPackageHash": "e21d5d1a848dbeeb5ad5bc688ab353b7a68ee4f413a33c9c7ea9f9b4"
53
52
  }
@@ -222,6 +222,7 @@ interface ListAppPlansByAppIdResponseNonNullableFields {
222
222
  type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
223
223
  interface HttpClient {
224
224
  request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
225
+ fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
225
226
  }
226
227
  type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
227
228
  type HttpResponse<T = any> = {
@@ -247,13 +248,20 @@ type EventDefinition<Payload = unknown, Type extends string = string> = {
247
248
  __type: 'event-definition';
248
249
  type: Type;
249
250
  isDomainEvent?: boolean;
250
- transformations?: unknown;
251
+ transformations?: (envelope: unknown) => Payload;
251
252
  __payload: Payload;
252
253
  };
253
- declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, _transformations?: unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
254
+ declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
254
255
  type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
255
256
  type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
256
257
 
258
+ declare global {
259
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
260
+ interface SymbolConstructor {
261
+ readonly observable: symbol;
262
+ }
263
+ }
264
+
257
265
  declare function listAppPlansByAppId$1(httpClient: HttpClient): (appIds: string[]) => Promise<ListAppPlansByAppIdResponse & ListAppPlansByAppIdResponseNonNullableFields>;
258
266
 
259
267
  declare const listAppPlansByAppId: BuildRESTFunction<typeof listAppPlansByAppId$1>;
@@ -230,6 +230,7 @@ interface ListAppPlansByAppIdResponseNonNullableFields {
230
230
 
231
231
  interface HttpClient {
232
232
  request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
233
+ fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
233
234
  }
234
235
  type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
235
236
  type HttpResponse<T = any> = {
@@ -254,10 +255,17 @@ type EventDefinition<Payload = unknown, Type extends string = string> = {
254
255
  __type: 'event-definition';
255
256
  type: Type;
256
257
  isDomainEvent?: boolean;
257
- transformations?: unknown;
258
+ transformations?: (envelope: unknown) => Payload;
258
259
  __payload: Payload;
259
260
  };
260
- declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, _transformations?: unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
261
+ declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
262
+
263
+ declare global {
264
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
265
+ interface SymbolConstructor {
266
+ readonly observable: symbol;
267
+ }
268
+ }
261
269
 
262
270
  declare const __metadata$4: {
263
271
  PACKAGE_NAME: string;
@@ -291,6 +291,13 @@ type ServicePluginDefinition<Contract extends ServicePluginContract> = {
291
291
  declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
292
292
  type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
293
293
 
294
+ declare global {
295
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
296
+ interface SymbolConstructor {
297
+ readonly observable: symbol;
298
+ }
299
+ }
300
+
294
301
  interface GetChargeLimitEnvelope {
295
302
  request: GetChargeLimitRequest;
296
303
  metadata: Context;
@@ -290,6 +290,13 @@ type ServicePluginDefinition<Contract extends ServicePluginContract> = {
290
290
  };
291
291
  declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
292
292
 
293
+ declare global {
294
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
295
+ interface SymbolConstructor {
296
+ readonly observable: symbol;
297
+ }
298
+ }
299
+
293
300
  interface GetChargeLimitEnvelope {
294
301
  request: GetChargeLimitRequest;
295
302
  metadata: Context;