@wix/app-management 1.0.37 → 1.0.39

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.
@@ -280,27 +280,26 @@ interface IdentificationDataIdOneOf {
280
280
  appId?: string;
281
281
  }
282
282
 
283
- type ServicePluginMethodInput = {
283
+ type ServicePluginMethodInput$1 = {
284
284
  request: any;
285
285
  metadata: any;
286
286
  };
287
- type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
288
- type ServicePluginMethodMetadata = {
287
+ type ServicePluginContract$1 = Record<string, (payload: ServicePluginMethodInput$1) => unknown | Promise<unknown>>;
288
+ type ServicePluginMethodMetadata$1 = {
289
289
  name: string;
290
290
  primaryHttpMappingPath: string;
291
291
  transformations: {
292
- fromREST: (...args: unknown[]) => ServicePluginMethodInput;
292
+ fromREST: (...args: unknown[]) => ServicePluginMethodInput$1;
293
293
  toREST: (...args: unknown[]) => unknown;
294
294
  };
295
295
  };
296
- type ServicePluginDefinition<Contract extends ServicePluginContract> = {
296
+ type ServicePluginDefinition$1<Contract extends ServicePluginContract$1> = {
297
297
  __type: 'service-plugin-definition';
298
298
  componentType: string;
299
- methods: ServicePluginMethodMetadata[];
299
+ methods: ServicePluginMethodMetadata$1[];
300
300
  __contract: Contract;
301
301
  };
302
- declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
303
- type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
302
+ declare function ServicePluginDefinition$1<Contract extends ServicePluginContract$1>(componentType: string, methods: ServicePluginMethodMetadata$1[]): ServicePluginDefinition$1<Contract>;
304
303
 
305
304
  declare global {
306
305
  // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
@@ -309,6 +308,11 @@ declare global {
309
308
  }
310
309
  }
311
310
 
311
+ declare global {
312
+ interface ContextualClient {
313
+ }
314
+ }
315
+
312
316
  interface GetChargeLimitEnvelope {
313
317
  request: GetChargeLimitRequest;
314
318
  metadata: Context;
@@ -329,7 +333,7 @@ interface ChargeLimitUpdatedEventEnvelope {
329
333
  request: ChargeLimitUpdatedRequest;
330
334
  metadata: Context;
331
335
  }
332
- declare const provideHandlers$1: ServicePluginDefinition<{
336
+ declare const provideHandlers$1: ServicePluginDefinition$1<{
333
337
  /**
334
338
  *
335
339
  * Wix calls this method to retrieve the initial charge limit for a paid instance
@@ -387,6 +391,35 @@ declare const provideHandlers$1: ServicePluginDefinition<{
387
391
  chargeLimitUpdatedEvent(payload: ChargeLimitUpdatedEventEnvelope): ChargeLimitUpdatedResponse | Promise<ChargeLimitUpdatedResponse>;
388
392
  }>;
389
393
 
394
+ type ServicePluginMethodInput = {
395
+ request: any;
396
+ metadata: any;
397
+ };
398
+ type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
399
+ type ServicePluginMethodMetadata = {
400
+ name: string;
401
+ primaryHttpMappingPath: string;
402
+ transformations: {
403
+ fromREST: (...args: unknown[]) => ServicePluginMethodInput;
404
+ toREST: (...args: unknown[]) => unknown;
405
+ };
406
+ };
407
+ type ServicePluginDefinition<Contract extends ServicePluginContract> = {
408
+ __type: 'service-plugin-definition';
409
+ componentType: string;
410
+ methods: ServicePluginMethodMetadata[];
411
+ __contract: Contract;
412
+ };
413
+ declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
414
+ type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
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
+ }
422
+
390
423
  declare function createServicePluginModule<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
391
424
 
392
425
  type _publicProvideHandlersType = typeof provideHandlers$1;
@@ -280,27 +280,26 @@ interface IdentificationDataIdOneOf {
280
280
  appId?: string;
281
281
  }
282
282
 
283
- type ServicePluginMethodInput = {
283
+ type ServicePluginMethodInput$1 = {
284
284
  request: any;
285
285
  metadata: any;
286
286
  };
287
- type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
288
- type ServicePluginMethodMetadata = {
287
+ type ServicePluginContract$1 = Record<string, (payload: ServicePluginMethodInput$1) => unknown | Promise<unknown>>;
288
+ type ServicePluginMethodMetadata$1 = {
289
289
  name: string;
290
290
  primaryHttpMappingPath: string;
291
291
  transformations: {
292
- fromREST: (...args: unknown[]) => ServicePluginMethodInput;
292
+ fromREST: (...args: unknown[]) => ServicePluginMethodInput$1;
293
293
  toREST: (...args: unknown[]) => unknown;
294
294
  };
295
295
  };
296
- type ServicePluginDefinition<Contract extends ServicePluginContract> = {
296
+ type ServicePluginDefinition$1<Contract extends ServicePluginContract$1> = {
297
297
  __type: 'service-plugin-definition';
298
298
  componentType: string;
299
- methods: ServicePluginMethodMetadata[];
299
+ methods: ServicePluginMethodMetadata$1[];
300
300
  __contract: Contract;
301
301
  };
302
- declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
303
- type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
302
+ declare function ServicePluginDefinition$1<Contract extends ServicePluginContract$1>(componentType: string, methods: ServicePluginMethodMetadata$1[]): ServicePluginDefinition$1<Contract>;
304
303
 
305
304
  declare global {
306
305
  // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
@@ -309,6 +308,11 @@ declare global {
309
308
  }
310
309
  }
311
310
 
311
+ declare global {
312
+ interface ContextualClient {
313
+ }
314
+ }
315
+
312
316
  interface GetChargeLimitEnvelope {
313
317
  request: GetChargeLimitRequest;
314
318
  metadata: Context;
@@ -329,7 +333,7 @@ interface ChargeLimitUpdatedEventEnvelope {
329
333
  request: ChargeLimitUpdatedRequest;
330
334
  metadata: Context;
331
335
  }
332
- declare const provideHandlers$1: ServicePluginDefinition<{
336
+ declare const provideHandlers$1: ServicePluginDefinition$1<{
333
337
  /**
334
338
  *
335
339
  * Wix calls this method to retrieve the initial charge limit for a paid instance
@@ -387,6 +391,35 @@ declare const provideHandlers$1: ServicePluginDefinition<{
387
391
  chargeLimitUpdatedEvent(payload: ChargeLimitUpdatedEventEnvelope): ChargeLimitUpdatedResponse | Promise<ChargeLimitUpdatedResponse>;
388
392
  }>;
389
393
 
394
+ type ServicePluginMethodInput = {
395
+ request: any;
396
+ metadata: any;
397
+ };
398
+ type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
399
+ type ServicePluginMethodMetadata = {
400
+ name: string;
401
+ primaryHttpMappingPath: string;
402
+ transformations: {
403
+ fromREST: (...args: unknown[]) => ServicePluginMethodInput;
404
+ toREST: (...args: unknown[]) => unknown;
405
+ };
406
+ };
407
+ type ServicePluginDefinition<Contract extends ServicePluginContract> = {
408
+ __type: 'service-plugin-definition';
409
+ componentType: string;
410
+ methods: ServicePluginMethodMetadata[];
411
+ __contract: Contract;
412
+ };
413
+ declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
414
+ type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
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
+ }
422
+
390
423
  declare function createServicePluginModule<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
391
424
 
392
425
  type _publicProvideHandlersType = typeof provideHandlers$1;