@wix/ecom 1.0.786 → 1.0.787

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.
@@ -258,27 +258,27 @@ declare class AlreadyVoidedWixError extends Error {
258
258
  static readonly __type = "wix_spi_error";
259
259
  }
260
260
 
261
- type ServicePluginMethodInput$8 = {
261
+ type ServicePluginMethodInput = {
262
262
  request: any;
263
263
  metadata: any;
264
264
  };
265
- type ServicePluginContract$8 = Record<string, (payload: ServicePluginMethodInput$8) => unknown | Promise<unknown>>;
266
- type ServicePluginMethodMetadata$8 = {
265
+ type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
266
+ type ServicePluginMethodMetadata = {
267
267
  name: string;
268
268
  primaryHttpMappingPath: string;
269
269
  transformations: {
270
- fromREST: (...args: unknown[]) => ServicePluginMethodInput$8;
270
+ fromREST: (...args: unknown[]) => ServicePluginMethodInput;
271
271
  toREST: (...args: unknown[]) => unknown;
272
272
  };
273
273
  };
274
- type ServicePluginDefinition$8<Contract extends ServicePluginContract$8> = {
274
+ type ServicePluginDefinition<Contract extends ServicePluginContract> = {
275
275
  __type: 'service-plugin-definition';
276
276
  componentType: string;
277
- methods: ServicePluginMethodMetadata$8[];
277
+ methods: ServicePluginMethodMetadata[];
278
278
  __contract: Contract;
279
279
  };
280
- declare function ServicePluginDefinition$8<Contract extends ServicePluginContract$8>(componentType: string, methods: ServicePluginMethodMetadata$8[]): ServicePluginDefinition$8<Contract>;
281
- type BuildServicePluginDefinition$8<T extends ServicePluginDefinition$8<any>> = (implementation: T['__contract']) => void;
280
+ declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
281
+ type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
282
282
 
283
283
  declare global {
284
284
  // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
@@ -304,7 +304,7 @@ interface _voidEnvelope {
304
304
  request: VoidRequest;
305
305
  metadata: Context$8;
306
306
  }
307
- declare const provideHandlers$h: ServicePluginDefinition$8<{
307
+ declare const provideHandlers$h: ServicePluginDefinition<{
308
308
  /**
309
309
  *
310
310
  * This method retrieves gift card data from your app.
@@ -322,7 +322,7 @@ declare const provideHandlers$h: ServicePluginDefinition$8<{
322
322
  _void(payload: _voidEnvelope): VoidResponse | Promise<VoidResponse>;
323
323
  }>;
324
324
 
325
- declare function createServicePluginModule$8<T extends ServicePluginDefinition$8<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$8<T> & T;
325
+ declare function createServicePluginModule$8<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
326
326
 
327
327
  type _publicProvideHandlersType$8 = typeof provideHandlers$h;
328
328
  declare const provideHandlers$g: ReturnType<typeof createServicePluginModule$8<_publicProvideHandlersType>>;
@@ -810,40 +810,6 @@ declare class TransactionAlreadyVoidedWixError extends Error {
810
810
  static readonly __type = "wix_spi_error";
811
811
  }
812
812
 
813
- type ServicePluginMethodInput$7 = {
814
- request: any;
815
- metadata: any;
816
- };
817
- type ServicePluginContract$7 = Record<string, (payload: ServicePluginMethodInput$7) => unknown | Promise<unknown>>;
818
- type ServicePluginMethodMetadata$7 = {
819
- name: string;
820
- primaryHttpMappingPath: string;
821
- transformations: {
822
- fromREST: (...args: unknown[]) => ServicePluginMethodInput$7;
823
- toREST: (...args: unknown[]) => unknown;
824
- };
825
- };
826
- type ServicePluginDefinition$7<Contract extends ServicePluginContract$7> = {
827
- __type: 'service-plugin-definition';
828
- componentType: string;
829
- methods: ServicePluginMethodMetadata$7[];
830
- __contract: Contract;
831
- };
832
- declare function ServicePluginDefinition$7<Contract extends ServicePluginContract$7>(componentType: string, methods: ServicePluginMethodMetadata$7[]): ServicePluginDefinition$7<Contract>;
833
- type BuildServicePluginDefinition$7<T extends ServicePluginDefinition$7<any>> = (implementation: T['__contract']) => void;
834
-
835
- declare global {
836
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
837
- interface SymbolConstructor {
838
- readonly observable: symbol;
839
- }
840
- }
841
-
842
- declare global {
843
- interface ContextualClient {
844
- }
845
- }
846
-
847
813
  interface ListEligibleMembershipsEnvelope {
848
814
  request: ListEligibleMembershipsRequest;
849
815
  metadata: Context$7;
@@ -860,7 +826,7 @@ interface VoidMembershipChargeEnvelope {
860
826
  request: VoidMembershipChargeRequest;
861
827
  metadata: Context$7;
862
828
  }
863
- declare const provideHandlers$f: ServicePluginDefinition$7<{
829
+ declare const provideHandlers$f: ServicePluginDefinition<{
864
830
  /**
865
831
  *
866
832
  * This method retrieves eligible memberships from your app. */
@@ -879,7 +845,7 @@ declare const provideHandlers$f: ServicePluginDefinition$7<{
879
845
  voidMembershipCharge(payload: VoidMembershipChargeEnvelope): VoidMembershipChargeResponse | Promise<VoidMembershipChargeResponse>;
880
846
  }>;
881
847
 
882
- declare function createServicePluginModule$7<T extends ServicePluginDefinition$7<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$7<T> & T;
848
+ declare function createServicePluginModule$7<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
883
849
 
884
850
  type _publicProvideHandlersType$7 = typeof provideHandlers$f;
885
851
  declare const provideHandlers$e: ReturnType<typeof createServicePluginModule$7<_publicProvideHandlersType>>;
@@ -1096,45 +1062,11 @@ declare class ItemAppIdNotSupportedWixError extends Error {
1096
1062
  static readonly __type = "wix_spi_error";
1097
1063
  }
1098
1064
 
1099
- type ServicePluginMethodInput$6 = {
1100
- request: any;
1101
- metadata: any;
1102
- };
1103
- type ServicePluginContract$6 = Record<string, (payload: ServicePluginMethodInput$6) => unknown | Promise<unknown>>;
1104
- type ServicePluginMethodMetadata$6 = {
1105
- name: string;
1106
- primaryHttpMappingPath: string;
1107
- transformations: {
1108
- fromREST: (...args: unknown[]) => ServicePluginMethodInput$6;
1109
- toREST: (...args: unknown[]) => unknown;
1110
- };
1111
- };
1112
- type ServicePluginDefinition$6<Contract extends ServicePluginContract$6> = {
1113
- __type: 'service-plugin-definition';
1114
- componentType: string;
1115
- methods: ServicePluginMethodMetadata$6[];
1116
- __contract: Contract;
1117
- };
1118
- declare function ServicePluginDefinition$6<Contract extends ServicePluginContract$6>(componentType: string, methods: ServicePluginMethodMetadata$6[]): ServicePluginDefinition$6<Contract>;
1119
- type BuildServicePluginDefinition$6<T extends ServicePluginDefinition$6<any>> = (implementation: T['__contract']) => void;
1120
-
1121
- declare global {
1122
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
1123
- interface SymbolConstructor {
1124
- readonly observable: symbol;
1125
- }
1126
- }
1127
-
1128
- declare global {
1129
- interface ContextualClient {
1130
- }
1131
- }
1132
-
1133
1065
  interface GetRecommendationsEnvelope {
1134
1066
  request: GetRecommendationsRequest;
1135
1067
  metadata: Context$6;
1136
1068
  }
1137
- declare const provideHandlers$d: ServicePluginDefinition$6<{
1069
+ declare const provideHandlers$d: ServicePluginDefinition<{
1138
1070
  /**
1139
1071
  *
1140
1072
  * Returns lists of items recommended by each requested algorithm.
@@ -1144,7 +1076,7 @@ declare const provideHandlers$d: ServicePluginDefinition$6<{
1144
1076
  getRecommendations(payload: GetRecommendationsEnvelope): GetRecommendationsResponse | Promise<GetRecommendationsResponse>;
1145
1077
  }>;
1146
1078
 
1147
- declare function createServicePluginModule$6<T extends ServicePluginDefinition$6<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$6<T> & T;
1079
+ declare function createServicePluginModule$6<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
1148
1080
 
1149
1081
  type _publicProvideHandlersType$6 = typeof provideHandlers$d;
1150
1082
  declare const provideHandlers$c: ReturnType<typeof createServicePluginModule$6<_publicProvideHandlersType>>;
@@ -1707,45 +1639,11 @@ declare class GenericShippingRatesWixError extends Error {
1707
1639
  static readonly __type = "wix_spi_error";
1708
1640
  }
1709
1641
 
1710
- type ServicePluginMethodInput$5 = {
1711
- request: any;
1712
- metadata: any;
1713
- };
1714
- type ServicePluginContract$5 = Record<string, (payload: ServicePluginMethodInput$5) => unknown | Promise<unknown>>;
1715
- type ServicePluginMethodMetadata$5 = {
1716
- name: string;
1717
- primaryHttpMappingPath: string;
1718
- transformations: {
1719
- fromREST: (...args: unknown[]) => ServicePluginMethodInput$5;
1720
- toREST: (...args: unknown[]) => unknown;
1721
- };
1722
- };
1723
- type ServicePluginDefinition$5<Contract extends ServicePluginContract$5> = {
1724
- __type: 'service-plugin-definition';
1725
- componentType: string;
1726
- methods: ServicePluginMethodMetadata$5[];
1727
- __contract: Contract;
1728
- };
1729
- declare function ServicePluginDefinition$5<Contract extends ServicePluginContract$5>(componentType: string, methods: ServicePluginMethodMetadata$5[]): ServicePluginDefinition$5<Contract>;
1730
- type BuildServicePluginDefinition$5<T extends ServicePluginDefinition$5<any>> = (implementation: T['__contract']) => void;
1731
-
1732
- declare global {
1733
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
1734
- interface SymbolConstructor {
1735
- readonly observable: symbol;
1736
- }
1737
- }
1738
-
1739
- declare global {
1740
- interface ContextualClient {
1741
- }
1742
- }
1743
-
1744
1642
  interface GetShippingRatesEnvelope {
1745
1643
  request: GetShippingRatesRequest;
1746
1644
  metadata: Context$5;
1747
1645
  }
1748
- declare const provideHandlers$b: ServicePluginDefinition$5<{
1646
+ declare const provideHandlers$b: ServicePluginDefinition<{
1749
1647
  /**
1750
1648
  *
1751
1649
  * This method retrieves applicable shipping rates for a delivery from your app.
@@ -1756,7 +1654,7 @@ declare const provideHandlers$b: ServicePluginDefinition$5<{
1756
1654
  getShippingRates(payload: GetShippingRatesEnvelope): GetShippingRatesResponse | Promise<GetShippingRatesResponse>;
1757
1655
  }>;
1758
1656
 
1759
- declare function createServicePluginModule$5<T extends ServicePluginDefinition$5<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$5<T> & T;
1657
+ declare function createServicePluginModule$5<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
1760
1658
 
1761
1659
  type _publicProvideHandlersType$5 = typeof provideHandlers$b;
1762
1660
  declare const provideHandlers$a: ReturnType<typeof createServicePluginModule$5<_publicProvideHandlersType>>;
@@ -2173,45 +2071,11 @@ interface IdentificationDataIdOneOf$4 {
2173
2071
  appId?: string;
2174
2072
  }
2175
2073
 
2176
- type ServicePluginMethodInput$4 = {
2177
- request: any;
2178
- metadata: any;
2179
- };
2180
- type ServicePluginContract$4 = Record<string, (payload: ServicePluginMethodInput$4) => unknown | Promise<unknown>>;
2181
- type ServicePluginMethodMetadata$4 = {
2182
- name: string;
2183
- primaryHttpMappingPath: string;
2184
- transformations: {
2185
- fromREST: (...args: unknown[]) => ServicePluginMethodInput$4;
2186
- toREST: (...args: unknown[]) => unknown;
2187
- };
2188
- };
2189
- type ServicePluginDefinition$4<Contract extends ServicePluginContract$4> = {
2190
- __type: 'service-plugin-definition';
2191
- componentType: string;
2192
- methods: ServicePluginMethodMetadata$4[];
2193
- __contract: Contract;
2194
- };
2195
- declare function ServicePluginDefinition$4<Contract extends ServicePluginContract$4>(componentType: string, methods: ServicePluginMethodMetadata$4[]): ServicePluginDefinition$4<Contract>;
2196
- type BuildServicePluginDefinition$4<T extends ServicePluginDefinition$4<any>> = (implementation: T['__contract']) => void;
2197
-
2198
- declare global {
2199
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
2200
- interface SymbolConstructor {
2201
- readonly observable: symbol;
2202
- }
2203
- }
2204
-
2205
- declare global {
2206
- interface ContextualClient {
2207
- }
2208
- }
2209
-
2210
2074
  interface CalculateAdditionalFeesEnvelope {
2211
2075
  request: CalculateAdditionalFeesRequest;
2212
2076
  metadata: Context$4;
2213
2077
  }
2214
- declare const provideHandlers$9: ServicePluginDefinition$4<{
2078
+ declare const provideHandlers$9: ServicePluginDefinition<{
2215
2079
  /**
2216
2080
  *
2217
2081
  * This method retrieves additional fees calculated by your app.
@@ -2225,7 +2089,7 @@ declare const provideHandlers$9: ServicePluginDefinition$4<{
2225
2089
  calculateAdditionalFees(payload: CalculateAdditionalFeesEnvelope): CalculateAdditionalFeesResponse | Promise<CalculateAdditionalFeesResponse>;
2226
2090
  }>;
2227
2091
 
2228
- declare function createServicePluginModule$4<T extends ServicePluginDefinition$4<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$4<T> & T;
2092
+ declare function createServicePluginModule$4<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
2229
2093
 
2230
2094
  type _publicProvideHandlersType$4 = typeof provideHandlers$9;
2231
2095
  declare const provideHandlers$8: ReturnType<typeof createServicePluginModule$4<_publicProvideHandlersType>>;
@@ -2376,40 +2240,6 @@ interface IdentificationDataIdOneOf$3 {
2376
2240
  appId?: string;
2377
2241
  }
2378
2242
 
2379
- type ServicePluginMethodInput$3 = {
2380
- request: any;
2381
- metadata: any;
2382
- };
2383
- type ServicePluginContract$3 = Record<string, (payload: ServicePluginMethodInput$3) => unknown | Promise<unknown>>;
2384
- type ServicePluginMethodMetadata$3 = {
2385
- name: string;
2386
- primaryHttpMappingPath: string;
2387
- transformations: {
2388
- fromREST: (...args: unknown[]) => ServicePluginMethodInput$3;
2389
- toREST: (...args: unknown[]) => unknown;
2390
- };
2391
- };
2392
- type ServicePluginDefinition$3<Contract extends ServicePluginContract$3> = {
2393
- __type: 'service-plugin-definition';
2394
- componentType: string;
2395
- methods: ServicePluginMethodMetadata$3[];
2396
- __contract: Contract;
2397
- };
2398
- declare function ServicePluginDefinition$3<Contract extends ServicePluginContract$3>(componentType: string, methods: ServicePluginMethodMetadata$3[]): ServicePluginDefinition$3<Contract>;
2399
- type BuildServicePluginDefinition$3<T extends ServicePluginDefinition$3<any>> = (implementation: T['__contract']) => void;
2400
-
2401
- declare global {
2402
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
2403
- interface SymbolConstructor {
2404
- readonly observable: symbol;
2405
- }
2406
- }
2407
-
2408
- declare global {
2409
- interface ContextualClient {
2410
- }
2411
- }
2412
-
2413
2243
  interface ListTriggersEnvelope {
2414
2244
  request: ListTriggersRequest;
2415
2245
  metadata: Context$3;
@@ -2418,7 +2248,7 @@ interface GetEligibleTriggersEnvelope {
2418
2248
  request: GetEligibleTriggersRequest;
2419
2249
  metadata: Context$3;
2420
2250
  }
2421
- declare const provideHandlers$7: ServicePluginDefinition$3<{
2251
+ declare const provideHandlers$7: ServicePluginDefinition<{
2422
2252
  /**
2423
2253
  *
2424
2254
  * Lists all custom triggers provided by your service plugin integration.
@@ -2434,7 +2264,7 @@ declare const provideHandlers$7: ServicePluginDefinition$3<{
2434
2264
  getEligibleTriggers(payload: GetEligibleTriggersEnvelope): GetEligibleTriggersResponse | Promise<GetEligibleTriggersResponse>;
2435
2265
  }>;
2436
2266
 
2437
- declare function createServicePluginModule$3<T extends ServicePluginDefinition$3<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$3<T> & T;
2267
+ declare function createServicePluginModule$3<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
2438
2268
 
2439
2269
  type _publicProvideHandlersType$3 = typeof provideHandlers$7;
2440
2270
  declare const provideHandlers$6: ReturnType<typeof createServicePluginModule$3<_publicProvideHandlersType>>;
@@ -2733,45 +2563,11 @@ declare class CouponDoesNotExistWixError extends Error {
2733
2563
  static readonly __type = "wix_spi_error";
2734
2564
  }
2735
2565
 
2736
- type ServicePluginMethodInput$2 = {
2737
- request: any;
2738
- metadata: any;
2739
- };
2740
- type ServicePluginContract$2 = Record<string, (payload: ServicePluginMethodInput$2) => unknown | Promise<unknown>>;
2741
- type ServicePluginMethodMetadata$2 = {
2742
- name: string;
2743
- primaryHttpMappingPath: string;
2744
- transformations: {
2745
- fromREST: (...args: unknown[]) => ServicePluginMethodInput$2;
2746
- toREST: (...args: unknown[]) => unknown;
2747
- };
2748
- };
2749
- type ServicePluginDefinition$2<Contract extends ServicePluginContract$2> = {
2750
- __type: 'service-plugin-definition';
2751
- componentType: string;
2752
- methods: ServicePluginMethodMetadata$2[];
2753
- __contract: Contract;
2754
- };
2755
- declare function ServicePluginDefinition$2<Contract extends ServicePluginContract$2>(componentType: string, methods: ServicePluginMethodMetadata$2[]): ServicePluginDefinition$2<Contract>;
2756
- type BuildServicePluginDefinition$2<T extends ServicePluginDefinition$2<any>> = (implementation: T['__contract']) => void;
2757
-
2758
- declare global {
2759
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
2760
- interface SymbolConstructor {
2761
- readonly observable: symbol;
2762
- }
2763
- }
2764
-
2765
- declare global {
2766
- interface ContextualClient {
2767
- }
2768
- }
2769
-
2770
2566
  interface GetEligibleDiscountsEnvelope {
2771
2567
  request: GetEligibleDiscountsRequest;
2772
2568
  metadata: Context$2;
2773
2569
  }
2774
- declare const provideHandlers$5: ServicePluginDefinition$2<{
2570
+ declare const provideHandlers$5: ServicePluginDefinition<{
2775
2571
  /**
2776
2572
  *
2777
2573
  * Wix calls this method when certain actions are performed on the cart or checkout.
@@ -2779,7 +2575,7 @@ declare const provideHandlers$5: ServicePluginDefinition$2<{
2779
2575
  getEligibleDiscounts(payload: GetEligibleDiscountsEnvelope): GetEligibleDiscountsResponse | Promise<GetEligibleDiscountsResponse>;
2780
2576
  }>;
2781
2577
 
2782
- declare function createServicePluginModule$2<T extends ServicePluginDefinition$2<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$2<T> & T;
2578
+ declare function createServicePluginModule$2<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
2783
2579
 
2784
2580
  type _publicProvideHandlersType$2 = typeof provideHandlers$5;
2785
2581
  declare const provideHandlers$4: ReturnType<typeof createServicePluginModule$2<_publicProvideHandlersType>>;
@@ -5556,40 +5352,6 @@ interface IdentificationDataIdOneOf$1 {
5556
5352
  appId?: string;
5557
5353
  }
5558
5354
 
5559
- type ServicePluginMethodInput$1 = {
5560
- request: any;
5561
- metadata: any;
5562
- };
5563
- type ServicePluginContract$1 = Record<string, (payload: ServicePluginMethodInput$1) => unknown | Promise<unknown>>;
5564
- type ServicePluginMethodMetadata$1 = {
5565
- name: string;
5566
- primaryHttpMappingPath: string;
5567
- transformations: {
5568
- fromREST: (...args: unknown[]) => ServicePluginMethodInput$1;
5569
- toREST: (...args: unknown[]) => unknown;
5570
- };
5571
- };
5572
- type ServicePluginDefinition$1<Contract extends ServicePluginContract$1> = {
5573
- __type: 'service-plugin-definition';
5574
- componentType: string;
5575
- methods: ServicePluginMethodMetadata$1[];
5576
- __contract: Contract;
5577
- };
5578
- declare function ServicePluginDefinition$1<Contract extends ServicePluginContract$1>(componentType: string, methods: ServicePluginMethodMetadata$1[]): ServicePluginDefinition$1<Contract>;
5579
- type BuildServicePluginDefinition$1<T extends ServicePluginDefinition$1<any>> = (implementation: T['__contract']) => void;
5580
-
5581
- declare global {
5582
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
5583
- interface SymbolConstructor {
5584
- readonly observable: symbol;
5585
- }
5586
- }
5587
-
5588
- declare global {
5589
- interface ContextualClient {
5590
- }
5591
- }
5592
-
5593
5355
  interface GetPaymentSettingsEnvelope {
5594
5356
  request: GetPaymentSettingsRequest;
5595
5357
  metadata: Context$1;
@@ -5598,7 +5360,7 @@ interface GetPaymentSettingsForCheckoutEnvelope {
5598
5360
  request: GetPaymentSettingsForCheckoutRequest;
5599
5361
  metadata: Context$1;
5600
5362
  }
5601
- declare const provideHandlers$3: ServicePluginDefinition$1<{
5363
+ declare const provideHandlers$3: ServicePluginDefinition<{
5602
5364
  /**
5603
5365
  *
5604
5366
  * This method retrieves payment settings from your app.
@@ -5611,7 +5373,7 @@ declare const provideHandlers$3: ServicePluginDefinition$1<{
5611
5373
  getPaymentSettingsForCheckout(payload: GetPaymentSettingsForCheckoutEnvelope): GetPaymentSettingsForCheckoutResponse | Promise<GetPaymentSettingsForCheckoutResponse>;
5612
5374
  }>;
5613
5375
 
5614
- declare function createServicePluginModule$1<T extends ServicePluginDefinition$1<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$1<T> & T;
5376
+ declare function createServicePluginModule$1<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
5615
5377
 
5616
5378
  type _publicProvideHandlersType$1 = typeof provideHandlers$3;
5617
5379
  declare const provideHandlers$2: ReturnType<typeof createServicePluginModule$1<_publicProvideHandlersType>>;
@@ -6454,40 +6216,6 @@ interface IdentificationDataIdOneOf {
6454
6216
  appId?: string;
6455
6217
  }
6456
6218
 
6457
- type ServicePluginMethodInput = {
6458
- request: any;
6459
- metadata: any;
6460
- };
6461
- type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
6462
- type ServicePluginMethodMetadata = {
6463
- name: string;
6464
- primaryHttpMappingPath: string;
6465
- transformations: {
6466
- fromREST: (...args: unknown[]) => ServicePluginMethodInput;
6467
- toREST: (...args: unknown[]) => unknown;
6468
- };
6469
- };
6470
- type ServicePluginDefinition<Contract extends ServicePluginContract> = {
6471
- __type: 'service-plugin-definition';
6472
- componentType: string;
6473
- methods: ServicePluginMethodMetadata[];
6474
- __contract: Contract;
6475
- };
6476
- declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
6477
- type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
6478
-
6479
- declare global {
6480
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
6481
- interface SymbolConstructor {
6482
- readonly observable: symbol;
6483
- }
6484
- }
6485
-
6486
- declare global {
6487
- interface ContextualClient {
6488
- }
6489
- }
6490
-
6491
6219
  interface GetValidationViolationsEnvelope {
6492
6220
  request: GetValidationViolationsRequest;
6493
6221
  metadata: Context;