@wix/ecom 1.0.766 → 1.0.768

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,26 +258,26 @@ declare class AlreadyVoidedWixError extends Error {
258
258
  static readonly __type = "wix_spi_error";
259
259
  }
260
260
 
261
- type ServicePluginMethodInput$f = {
261
+ type ServicePluginMethodInput$8 = {
262
262
  request: any;
263
263
  metadata: any;
264
264
  };
265
- type ServicePluginContract$f = Record<string, (payload: ServicePluginMethodInput$f) => unknown | Promise<unknown>>;
266
- type ServicePluginMethodMetadata$f = {
265
+ type ServicePluginContract$8 = Record<string, (payload: ServicePluginMethodInput$8) => unknown | Promise<unknown>>;
266
+ type ServicePluginMethodMetadata$8 = {
267
267
  name: string;
268
268
  primaryHttpMappingPath: string;
269
269
  transformations: {
270
- fromREST: (...args: unknown[]) => ServicePluginMethodInput$f;
270
+ fromREST: (...args: unknown[]) => ServicePluginMethodInput$8;
271
271
  toREST: (...args: unknown[]) => unknown;
272
272
  };
273
273
  };
274
- type ServicePluginDefinition$f<Contract extends ServicePluginContract$f> = {
274
+ type ServicePluginDefinition$8<Contract extends ServicePluginContract$8> = {
275
275
  __type: 'service-plugin-definition';
276
276
  componentType: string;
277
- methods: ServicePluginMethodMetadata$f[];
277
+ methods: ServicePluginMethodMetadata$8[];
278
278
  __contract: Contract;
279
279
  };
280
- declare function ServicePluginDefinition$f<Contract extends ServicePluginContract$f>(componentType: string, methods: ServicePluginMethodMetadata$f[]): ServicePluginDefinition$f<Contract>;
280
+ declare function ServicePluginDefinition$8<Contract extends ServicePluginContract$8>(componentType: string, methods: ServicePluginMethodMetadata$8[]): ServicePluginDefinition$8<Contract>;
281
281
 
282
282
  declare global {
283
283
  // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
@@ -303,7 +303,7 @@ interface _voidEnvelope {
303
303
  request: VoidRequest;
304
304
  metadata: Context$7;
305
305
  }
306
- declare const provideHandlers$f: ServicePluginDefinition$f<{
306
+ declare const provideHandlers$f: ServicePluginDefinition$8<{
307
307
  /**
308
308
  *
309
309
  * This method retrieves gift card data from your app.
@@ -321,27 +321,27 @@ declare const provideHandlers$f: ServicePluginDefinition$f<{
321
321
  _void(payload: _voidEnvelope): VoidResponse | Promise<VoidResponse>;
322
322
  }>;
323
323
 
324
- type ServicePluginMethodInput$e = {
324
+ type ServicePluginMethodInput$7 = {
325
325
  request: any;
326
326
  metadata: any;
327
327
  };
328
- type ServicePluginContract$e = Record<string, (payload: ServicePluginMethodInput$e) => unknown | Promise<unknown>>;
329
- type ServicePluginMethodMetadata$e = {
328
+ type ServicePluginContract$7 = Record<string, (payload: ServicePluginMethodInput$7) => unknown | Promise<unknown>>;
329
+ type ServicePluginMethodMetadata$7 = {
330
330
  name: string;
331
331
  primaryHttpMappingPath: string;
332
332
  transformations: {
333
- fromREST: (...args: unknown[]) => ServicePluginMethodInput$e;
333
+ fromREST: (...args: unknown[]) => ServicePluginMethodInput$7;
334
334
  toREST: (...args: unknown[]) => unknown;
335
335
  };
336
336
  };
337
- type ServicePluginDefinition$e<Contract extends ServicePluginContract$e> = {
337
+ type ServicePluginDefinition$7<Contract extends ServicePluginContract$7> = {
338
338
  __type: 'service-plugin-definition';
339
339
  componentType: string;
340
- methods: ServicePluginMethodMetadata$e[];
340
+ methods: ServicePluginMethodMetadata$7[];
341
341
  __contract: Contract;
342
342
  };
343
- declare function ServicePluginDefinition$e<Contract extends ServicePluginContract$e>(componentType: string, methods: ServicePluginMethodMetadata$e[]): ServicePluginDefinition$e<Contract>;
344
- type BuildServicePluginDefinition$7<T extends ServicePluginDefinition$e<any>> = (implementation: T['__contract']) => void;
343
+ declare function ServicePluginDefinition$7<Contract extends ServicePluginContract$7>(componentType: string, methods: ServicePluginMethodMetadata$7[]): ServicePluginDefinition$7<Contract>;
344
+ type BuildServicePluginDefinition$7<T extends ServicePluginDefinition$7<any>> = (implementation: T['__contract']) => void;
345
345
 
346
346
  declare global {
347
347
  // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
@@ -350,7 +350,7 @@ declare global {
350
350
  }
351
351
  }
352
352
 
353
- declare function createServicePluginModule$7<T extends ServicePluginDefinition$e<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$7<T> & T;
353
+ declare function createServicePluginModule$7<T extends ServicePluginDefinition$7<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$7<T> & T;
354
354
 
355
355
  type _publicProvideHandlersType$7 = typeof provideHandlers$f;
356
356
  declare const provideHandlers$e: ReturnType<typeof createServicePluginModule$7<_publicProvideHandlersType>>;
@@ -554,44 +554,11 @@ declare class ItemAppIdNotSupportedWixError extends Error {
554
554
  static readonly __type = "wix_spi_error";
555
555
  }
556
556
 
557
- type ServicePluginMethodInput$d = {
558
- request: any;
559
- metadata: any;
560
- };
561
- type ServicePluginContract$d = Record<string, (payload: ServicePluginMethodInput$d) => unknown | Promise<unknown>>;
562
- type ServicePluginMethodMetadata$d = {
563
- name: string;
564
- primaryHttpMappingPath: string;
565
- transformations: {
566
- fromREST: (...args: unknown[]) => ServicePluginMethodInput$d;
567
- toREST: (...args: unknown[]) => unknown;
568
- };
569
- };
570
- type ServicePluginDefinition$d<Contract extends ServicePluginContract$d> = {
571
- __type: 'service-plugin-definition';
572
- componentType: string;
573
- methods: ServicePluginMethodMetadata$d[];
574
- __contract: Contract;
575
- };
576
- declare function ServicePluginDefinition$d<Contract extends ServicePluginContract$d>(componentType: string, methods: ServicePluginMethodMetadata$d[]): ServicePluginDefinition$d<Contract>;
577
-
578
- declare global {
579
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
580
- interface SymbolConstructor {
581
- readonly observable: symbol;
582
- }
583
- }
584
-
585
- declare global {
586
- interface ContextualClient {
587
- }
588
- }
589
-
590
557
  interface GetRecommendationsEnvelope {
591
558
  request: GetRecommendationsRequest;
592
559
  metadata: Context$6;
593
560
  }
594
- declare const provideHandlers$d: ServicePluginDefinition$d<{
561
+ declare const provideHandlers$d: ServicePluginDefinition$8<{
595
562
  /**
596
563
  *
597
564
  * Returns lists of items recommended by each requested algorithm.
@@ -601,27 +568,27 @@ declare const provideHandlers$d: ServicePluginDefinition$d<{
601
568
  getRecommendations(payload: GetRecommendationsEnvelope): GetRecommendationsResponse | Promise<GetRecommendationsResponse>;
602
569
  }>;
603
570
 
604
- type ServicePluginMethodInput$c = {
571
+ type ServicePluginMethodInput$6 = {
605
572
  request: any;
606
573
  metadata: any;
607
574
  };
608
- type ServicePluginContract$c = Record<string, (payload: ServicePluginMethodInput$c) => unknown | Promise<unknown>>;
609
- type ServicePluginMethodMetadata$c = {
575
+ type ServicePluginContract$6 = Record<string, (payload: ServicePluginMethodInput$6) => unknown | Promise<unknown>>;
576
+ type ServicePluginMethodMetadata$6 = {
610
577
  name: string;
611
578
  primaryHttpMappingPath: string;
612
579
  transformations: {
613
- fromREST: (...args: unknown[]) => ServicePluginMethodInput$c;
580
+ fromREST: (...args: unknown[]) => ServicePluginMethodInput$6;
614
581
  toREST: (...args: unknown[]) => unknown;
615
582
  };
616
583
  };
617
- type ServicePluginDefinition$c<Contract extends ServicePluginContract$c> = {
584
+ type ServicePluginDefinition$6<Contract extends ServicePluginContract$6> = {
618
585
  __type: 'service-plugin-definition';
619
586
  componentType: string;
620
- methods: ServicePluginMethodMetadata$c[];
587
+ methods: ServicePluginMethodMetadata$6[];
621
588
  __contract: Contract;
622
589
  };
623
- declare function ServicePluginDefinition$c<Contract extends ServicePluginContract$c>(componentType: string, methods: ServicePluginMethodMetadata$c[]): ServicePluginDefinition$c<Contract>;
624
- type BuildServicePluginDefinition$6<T extends ServicePluginDefinition$c<any>> = (implementation: T['__contract']) => void;
590
+ declare function ServicePluginDefinition$6<Contract extends ServicePluginContract$6>(componentType: string, methods: ServicePluginMethodMetadata$6[]): ServicePluginDefinition$6<Contract>;
591
+ type BuildServicePluginDefinition$6<T extends ServicePluginDefinition$6<any>> = (implementation: T['__contract']) => void;
625
592
 
626
593
  declare global {
627
594
  // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
@@ -630,7 +597,7 @@ declare global {
630
597
  }
631
598
  }
632
599
 
633
- declare function createServicePluginModule$6<T extends ServicePluginDefinition$c<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$6<T> & T;
600
+ declare function createServicePluginModule$6<T extends ServicePluginDefinition$6<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$6<T> & T;
634
601
 
635
602
  type _publicProvideHandlersType$6 = typeof provideHandlers$d;
636
603
  declare const provideHandlers$c: ReturnType<typeof createServicePluginModule$6<_publicProvideHandlersType>>;
@@ -1193,44 +1160,11 @@ declare class GenericShippingRatesWixError extends Error {
1193
1160
  static readonly __type = "wix_spi_error";
1194
1161
  }
1195
1162
 
1196
- type ServicePluginMethodInput$b = {
1197
- request: any;
1198
- metadata: any;
1199
- };
1200
- type ServicePluginContract$b = Record<string, (payload: ServicePluginMethodInput$b) => unknown | Promise<unknown>>;
1201
- type ServicePluginMethodMetadata$b = {
1202
- name: string;
1203
- primaryHttpMappingPath: string;
1204
- transformations: {
1205
- fromREST: (...args: unknown[]) => ServicePluginMethodInput$b;
1206
- toREST: (...args: unknown[]) => unknown;
1207
- };
1208
- };
1209
- type ServicePluginDefinition$b<Contract extends ServicePluginContract$b> = {
1210
- __type: 'service-plugin-definition';
1211
- componentType: string;
1212
- methods: ServicePluginMethodMetadata$b[];
1213
- __contract: Contract;
1214
- };
1215
- declare function ServicePluginDefinition$b<Contract extends ServicePluginContract$b>(componentType: string, methods: ServicePluginMethodMetadata$b[]): ServicePluginDefinition$b<Contract>;
1216
-
1217
- declare global {
1218
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
1219
- interface SymbolConstructor {
1220
- readonly observable: symbol;
1221
- }
1222
- }
1223
-
1224
- declare global {
1225
- interface ContextualClient {
1226
- }
1227
- }
1228
-
1229
1163
  interface GetShippingRatesEnvelope {
1230
1164
  request: GetShippingRatesRequest;
1231
1165
  metadata: Context$5;
1232
1166
  }
1233
- declare const provideHandlers$b: ServicePluginDefinition$b<{
1167
+ declare const provideHandlers$b: ServicePluginDefinition$8<{
1234
1168
  /**
1235
1169
  *
1236
1170
  * This method retrieves applicable shipping rates for a delivery from your app.
@@ -1239,27 +1173,27 @@ declare const provideHandlers$b: ServicePluginDefinition$b<{
1239
1173
  getShippingRates(payload: GetShippingRatesEnvelope): GetShippingRatesResponse | Promise<GetShippingRatesResponse>;
1240
1174
  }>;
1241
1175
 
1242
- type ServicePluginMethodInput$a = {
1176
+ type ServicePluginMethodInput$5 = {
1243
1177
  request: any;
1244
1178
  metadata: any;
1245
1179
  };
1246
- type ServicePluginContract$a = Record<string, (payload: ServicePluginMethodInput$a) => unknown | Promise<unknown>>;
1247
- type ServicePluginMethodMetadata$a = {
1180
+ type ServicePluginContract$5 = Record<string, (payload: ServicePluginMethodInput$5) => unknown | Promise<unknown>>;
1181
+ type ServicePluginMethodMetadata$5 = {
1248
1182
  name: string;
1249
1183
  primaryHttpMappingPath: string;
1250
1184
  transformations: {
1251
- fromREST: (...args: unknown[]) => ServicePluginMethodInput$a;
1185
+ fromREST: (...args: unknown[]) => ServicePluginMethodInput$5;
1252
1186
  toREST: (...args: unknown[]) => unknown;
1253
1187
  };
1254
1188
  };
1255
- type ServicePluginDefinition$a<Contract extends ServicePluginContract$a> = {
1189
+ type ServicePluginDefinition$5<Contract extends ServicePluginContract$5> = {
1256
1190
  __type: 'service-plugin-definition';
1257
1191
  componentType: string;
1258
- methods: ServicePluginMethodMetadata$a[];
1192
+ methods: ServicePluginMethodMetadata$5[];
1259
1193
  __contract: Contract;
1260
1194
  };
1261
- declare function ServicePluginDefinition$a<Contract extends ServicePluginContract$a>(componentType: string, methods: ServicePluginMethodMetadata$a[]): ServicePluginDefinition$a<Contract>;
1262
- type BuildServicePluginDefinition$5<T extends ServicePluginDefinition$a<any>> = (implementation: T['__contract']) => void;
1195
+ declare function ServicePluginDefinition$5<Contract extends ServicePluginContract$5>(componentType: string, methods: ServicePluginMethodMetadata$5[]): ServicePluginDefinition$5<Contract>;
1196
+ type BuildServicePluginDefinition$5<T extends ServicePluginDefinition$5<any>> = (implementation: T['__contract']) => void;
1263
1197
 
1264
1198
  declare global {
1265
1199
  // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
@@ -1268,7 +1202,7 @@ declare global {
1268
1202
  }
1269
1203
  }
1270
1204
 
1271
- declare function createServicePluginModule$5<T extends ServicePluginDefinition$a<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$5<T> & T;
1205
+ declare function createServicePluginModule$5<T extends ServicePluginDefinition$5<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$5<T> & T;
1272
1206
 
1273
1207
  type _publicProvideHandlersType$5 = typeof provideHandlers$b;
1274
1208
  declare const provideHandlers$a: ReturnType<typeof createServicePluginModule$5<_publicProvideHandlersType>>;
@@ -1685,44 +1619,11 @@ interface IdentificationDataIdOneOf$4 {
1685
1619
  appId?: string;
1686
1620
  }
1687
1621
 
1688
- type ServicePluginMethodInput$9 = {
1689
- request: any;
1690
- metadata: any;
1691
- };
1692
- type ServicePluginContract$9 = Record<string, (payload: ServicePluginMethodInput$9) => unknown | Promise<unknown>>;
1693
- type ServicePluginMethodMetadata$9 = {
1694
- name: string;
1695
- primaryHttpMappingPath: string;
1696
- transformations: {
1697
- fromREST: (...args: unknown[]) => ServicePluginMethodInput$9;
1698
- toREST: (...args: unknown[]) => unknown;
1699
- };
1700
- };
1701
- type ServicePluginDefinition$9<Contract extends ServicePluginContract$9> = {
1702
- __type: 'service-plugin-definition';
1703
- componentType: string;
1704
- methods: ServicePluginMethodMetadata$9[];
1705
- __contract: Contract;
1706
- };
1707
- declare function ServicePluginDefinition$9<Contract extends ServicePluginContract$9>(componentType: string, methods: ServicePluginMethodMetadata$9[]): ServicePluginDefinition$9<Contract>;
1708
-
1709
- declare global {
1710
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
1711
- interface SymbolConstructor {
1712
- readonly observable: symbol;
1713
- }
1714
- }
1715
-
1716
- declare global {
1717
- interface ContextualClient {
1718
- }
1719
- }
1720
-
1721
1622
  interface CalculateAdditionalFeesEnvelope {
1722
1623
  request: CalculateAdditionalFeesRequest;
1723
1624
  metadata: Context$4;
1724
1625
  }
1725
- declare const provideHandlers$9: ServicePluginDefinition$9<{
1626
+ declare const provideHandlers$9: ServicePluginDefinition$8<{
1726
1627
  /**
1727
1628
  *
1728
1629
  * This method retrieves additional fees calculated by your app.
@@ -1734,27 +1635,27 @@ declare const provideHandlers$9: ServicePluginDefinition$9<{
1734
1635
  calculateAdditionalFees(payload: CalculateAdditionalFeesEnvelope): CalculateAdditionalFeesResponse | Promise<CalculateAdditionalFeesResponse>;
1735
1636
  }>;
1736
1637
 
1737
- type ServicePluginMethodInput$8 = {
1638
+ type ServicePluginMethodInput$4 = {
1738
1639
  request: any;
1739
1640
  metadata: any;
1740
1641
  };
1741
- type ServicePluginContract$8 = Record<string, (payload: ServicePluginMethodInput$8) => unknown | Promise<unknown>>;
1742
- type ServicePluginMethodMetadata$8 = {
1642
+ type ServicePluginContract$4 = Record<string, (payload: ServicePluginMethodInput$4) => unknown | Promise<unknown>>;
1643
+ type ServicePluginMethodMetadata$4 = {
1743
1644
  name: string;
1744
1645
  primaryHttpMappingPath: string;
1745
1646
  transformations: {
1746
- fromREST: (...args: unknown[]) => ServicePluginMethodInput$8;
1647
+ fromREST: (...args: unknown[]) => ServicePluginMethodInput$4;
1747
1648
  toREST: (...args: unknown[]) => unknown;
1748
1649
  };
1749
1650
  };
1750
- type ServicePluginDefinition$8<Contract extends ServicePluginContract$8> = {
1651
+ type ServicePluginDefinition$4<Contract extends ServicePluginContract$4> = {
1751
1652
  __type: 'service-plugin-definition';
1752
1653
  componentType: string;
1753
- methods: ServicePluginMethodMetadata$8[];
1654
+ methods: ServicePluginMethodMetadata$4[];
1754
1655
  __contract: Contract;
1755
1656
  };
1756
- declare function ServicePluginDefinition$8<Contract extends ServicePluginContract$8>(componentType: string, methods: ServicePluginMethodMetadata$8[]): ServicePluginDefinition$8<Contract>;
1757
- type BuildServicePluginDefinition$4<T extends ServicePluginDefinition$8<any>> = (implementation: T['__contract']) => void;
1657
+ declare function ServicePluginDefinition$4<Contract extends ServicePluginContract$4>(componentType: string, methods: ServicePluginMethodMetadata$4[]): ServicePluginDefinition$4<Contract>;
1658
+ type BuildServicePluginDefinition$4<T extends ServicePluginDefinition$4<any>> = (implementation: T['__contract']) => void;
1758
1659
 
1759
1660
  declare global {
1760
1661
  // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
@@ -1763,7 +1664,7 @@ declare global {
1763
1664
  }
1764
1665
  }
1765
1666
 
1766
- declare function createServicePluginModule$4<T extends ServicePluginDefinition$8<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$4<T> & T;
1667
+ declare function createServicePluginModule$4<T extends ServicePluginDefinition$4<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$4<T> & T;
1767
1668
 
1768
1669
  type _publicProvideHandlersType$4 = typeof provideHandlers$9;
1769
1670
  declare const provideHandlers$8: ReturnType<typeof createServicePluginModule$4<_publicProvideHandlersType>>;
@@ -1914,39 +1815,6 @@ interface IdentificationDataIdOneOf$3 {
1914
1815
  appId?: string;
1915
1816
  }
1916
1817
 
1917
- type ServicePluginMethodInput$7 = {
1918
- request: any;
1919
- metadata: any;
1920
- };
1921
- type ServicePluginContract$7 = Record<string, (payload: ServicePluginMethodInput$7) => unknown | Promise<unknown>>;
1922
- type ServicePluginMethodMetadata$7 = {
1923
- name: string;
1924
- primaryHttpMappingPath: string;
1925
- transformations: {
1926
- fromREST: (...args: unknown[]) => ServicePluginMethodInput$7;
1927
- toREST: (...args: unknown[]) => unknown;
1928
- };
1929
- };
1930
- type ServicePluginDefinition$7<Contract extends ServicePluginContract$7> = {
1931
- __type: 'service-plugin-definition';
1932
- componentType: string;
1933
- methods: ServicePluginMethodMetadata$7[];
1934
- __contract: Contract;
1935
- };
1936
- declare function ServicePluginDefinition$7<Contract extends ServicePluginContract$7>(componentType: string, methods: ServicePluginMethodMetadata$7[]): ServicePluginDefinition$7<Contract>;
1937
-
1938
- declare global {
1939
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
1940
- interface SymbolConstructor {
1941
- readonly observable: symbol;
1942
- }
1943
- }
1944
-
1945
- declare global {
1946
- interface ContextualClient {
1947
- }
1948
- }
1949
-
1950
1818
  interface ListTriggersEnvelope {
1951
1819
  request: ListTriggersRequest;
1952
1820
  metadata: Context$3;
@@ -1955,7 +1823,7 @@ interface GetEligibleTriggersEnvelope {
1955
1823
  request: GetEligibleTriggersRequest;
1956
1824
  metadata: Context$3;
1957
1825
  }
1958
- declare const provideHandlers$7: ServicePluginDefinition$7<{
1826
+ declare const provideHandlers$7: ServicePluginDefinition$8<{
1959
1827
  /**
1960
1828
  *
1961
1829
  * Lists all custom triggers provided by your service plugin integration.
@@ -1971,27 +1839,27 @@ declare const provideHandlers$7: ServicePluginDefinition$7<{
1971
1839
  getEligibleTriggers(payload: GetEligibleTriggersEnvelope): GetEligibleTriggersResponse | Promise<GetEligibleTriggersResponse>;
1972
1840
  }>;
1973
1841
 
1974
- type ServicePluginMethodInput$6 = {
1842
+ type ServicePluginMethodInput$3 = {
1975
1843
  request: any;
1976
1844
  metadata: any;
1977
1845
  };
1978
- type ServicePluginContract$6 = Record<string, (payload: ServicePluginMethodInput$6) => unknown | Promise<unknown>>;
1979
- type ServicePluginMethodMetadata$6 = {
1846
+ type ServicePluginContract$3 = Record<string, (payload: ServicePluginMethodInput$3) => unknown | Promise<unknown>>;
1847
+ type ServicePluginMethodMetadata$3 = {
1980
1848
  name: string;
1981
1849
  primaryHttpMappingPath: string;
1982
1850
  transformations: {
1983
- fromREST: (...args: unknown[]) => ServicePluginMethodInput$6;
1851
+ fromREST: (...args: unknown[]) => ServicePluginMethodInput$3;
1984
1852
  toREST: (...args: unknown[]) => unknown;
1985
1853
  };
1986
1854
  };
1987
- type ServicePluginDefinition$6<Contract extends ServicePluginContract$6> = {
1855
+ type ServicePluginDefinition$3<Contract extends ServicePluginContract$3> = {
1988
1856
  __type: 'service-plugin-definition';
1989
1857
  componentType: string;
1990
- methods: ServicePluginMethodMetadata$6[];
1858
+ methods: ServicePluginMethodMetadata$3[];
1991
1859
  __contract: Contract;
1992
1860
  };
1993
- declare function ServicePluginDefinition$6<Contract extends ServicePluginContract$6>(componentType: string, methods: ServicePluginMethodMetadata$6[]): ServicePluginDefinition$6<Contract>;
1994
- type BuildServicePluginDefinition$3<T extends ServicePluginDefinition$6<any>> = (implementation: T['__contract']) => void;
1861
+ declare function ServicePluginDefinition$3<Contract extends ServicePluginContract$3>(componentType: string, methods: ServicePluginMethodMetadata$3[]): ServicePluginDefinition$3<Contract>;
1862
+ type BuildServicePluginDefinition$3<T extends ServicePluginDefinition$3<any>> = (implementation: T['__contract']) => void;
1995
1863
 
1996
1864
  declare global {
1997
1865
  // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
@@ -2000,7 +1868,7 @@ declare global {
2000
1868
  }
2001
1869
  }
2002
1870
 
2003
- declare function createServicePluginModule$3<T extends ServicePluginDefinition$6<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$3<T> & T;
1871
+ declare function createServicePluginModule$3<T extends ServicePluginDefinition$3<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$3<T> & T;
2004
1872
 
2005
1873
  type _publicProvideHandlersType$3 = typeof provideHandlers$7;
2006
1874
  declare const provideHandlers$6: ReturnType<typeof createServicePluginModule$3<_publicProvideHandlersType>>;
@@ -2299,44 +2167,11 @@ declare class CouponDoesNotExistWixError extends Error {
2299
2167
  static readonly __type = "wix_spi_error";
2300
2168
  }
2301
2169
 
2302
- type ServicePluginMethodInput$5 = {
2303
- request: any;
2304
- metadata: any;
2305
- };
2306
- type ServicePluginContract$5 = Record<string, (payload: ServicePluginMethodInput$5) => unknown | Promise<unknown>>;
2307
- type ServicePluginMethodMetadata$5 = {
2308
- name: string;
2309
- primaryHttpMappingPath: string;
2310
- transformations: {
2311
- fromREST: (...args: unknown[]) => ServicePluginMethodInput$5;
2312
- toREST: (...args: unknown[]) => unknown;
2313
- };
2314
- };
2315
- type ServicePluginDefinition$5<Contract extends ServicePluginContract$5> = {
2316
- __type: 'service-plugin-definition';
2317
- componentType: string;
2318
- methods: ServicePluginMethodMetadata$5[];
2319
- __contract: Contract;
2320
- };
2321
- declare function ServicePluginDefinition$5<Contract extends ServicePluginContract$5>(componentType: string, methods: ServicePluginMethodMetadata$5[]): ServicePluginDefinition$5<Contract>;
2322
-
2323
- declare global {
2324
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
2325
- interface SymbolConstructor {
2326
- readonly observable: symbol;
2327
- }
2328
- }
2329
-
2330
- declare global {
2331
- interface ContextualClient {
2332
- }
2333
- }
2334
-
2335
2170
  interface GetEligibleDiscountsEnvelope {
2336
2171
  request: GetEligibleDiscountsRequest;
2337
2172
  metadata: Context$2;
2338
2173
  }
2339
- declare const provideHandlers$5: ServicePluginDefinition$5<{
2174
+ declare const provideHandlers$5: ServicePluginDefinition$8<{
2340
2175
  /**
2341
2176
  *
2342
2177
  * Wix calls this method when certain actions are performed on the cart or checkout.
@@ -2344,27 +2179,27 @@ declare const provideHandlers$5: ServicePluginDefinition$5<{
2344
2179
  getEligibleDiscounts(payload: GetEligibleDiscountsEnvelope): GetEligibleDiscountsResponse | Promise<GetEligibleDiscountsResponse>;
2345
2180
  }>;
2346
2181
 
2347
- type ServicePluginMethodInput$4 = {
2182
+ type ServicePluginMethodInput$2 = {
2348
2183
  request: any;
2349
2184
  metadata: any;
2350
2185
  };
2351
- type ServicePluginContract$4 = Record<string, (payload: ServicePluginMethodInput$4) => unknown | Promise<unknown>>;
2352
- type ServicePluginMethodMetadata$4 = {
2186
+ type ServicePluginContract$2 = Record<string, (payload: ServicePluginMethodInput$2) => unknown | Promise<unknown>>;
2187
+ type ServicePluginMethodMetadata$2 = {
2353
2188
  name: string;
2354
2189
  primaryHttpMappingPath: string;
2355
2190
  transformations: {
2356
- fromREST: (...args: unknown[]) => ServicePluginMethodInput$4;
2191
+ fromREST: (...args: unknown[]) => ServicePluginMethodInput$2;
2357
2192
  toREST: (...args: unknown[]) => unknown;
2358
2193
  };
2359
2194
  };
2360
- type ServicePluginDefinition$4<Contract extends ServicePluginContract$4> = {
2195
+ type ServicePluginDefinition$2<Contract extends ServicePluginContract$2> = {
2361
2196
  __type: 'service-plugin-definition';
2362
2197
  componentType: string;
2363
- methods: ServicePluginMethodMetadata$4[];
2198
+ methods: ServicePluginMethodMetadata$2[];
2364
2199
  __contract: Contract;
2365
2200
  };
2366
- declare function ServicePluginDefinition$4<Contract extends ServicePluginContract$4>(componentType: string, methods: ServicePluginMethodMetadata$4[]): ServicePluginDefinition$4<Contract>;
2367
- type BuildServicePluginDefinition$2<T extends ServicePluginDefinition$4<any>> = (implementation: T['__contract']) => void;
2201
+ declare function ServicePluginDefinition$2<Contract extends ServicePluginContract$2>(componentType: string, methods: ServicePluginMethodMetadata$2[]): ServicePluginDefinition$2<Contract>;
2202
+ type BuildServicePluginDefinition$2<T extends ServicePluginDefinition$2<any>> = (implementation: T['__contract']) => void;
2368
2203
 
2369
2204
  declare global {
2370
2205
  // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
@@ -2373,7 +2208,7 @@ declare global {
2373
2208
  }
2374
2209
  }
2375
2210
 
2376
- declare function createServicePluginModule$2<T extends ServicePluginDefinition$4<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$2<T> & T;
2211
+ declare function createServicePluginModule$2<T extends ServicePluginDefinition$2<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$2<T> & T;
2377
2212
 
2378
2213
  type _publicProvideHandlersType$2 = typeof provideHandlers$5;
2379
2214
  declare const provideHandlers$4: ReturnType<typeof createServicePluginModule$2<_publicProvideHandlersType>>;
@@ -5101,39 +4936,6 @@ interface IdentificationDataIdOneOf$1 {
5101
4936
  appId?: string;
5102
4937
  }
5103
4938
 
5104
- type ServicePluginMethodInput$3 = {
5105
- request: any;
5106
- metadata: any;
5107
- };
5108
- type ServicePluginContract$3 = Record<string, (payload: ServicePluginMethodInput$3) => unknown | Promise<unknown>>;
5109
- type ServicePluginMethodMetadata$3 = {
5110
- name: string;
5111
- primaryHttpMappingPath: string;
5112
- transformations: {
5113
- fromREST: (...args: unknown[]) => ServicePluginMethodInput$3;
5114
- toREST: (...args: unknown[]) => unknown;
5115
- };
5116
- };
5117
- type ServicePluginDefinition$3<Contract extends ServicePluginContract$3> = {
5118
- __type: 'service-plugin-definition';
5119
- componentType: string;
5120
- methods: ServicePluginMethodMetadata$3[];
5121
- __contract: Contract;
5122
- };
5123
- declare function ServicePluginDefinition$3<Contract extends ServicePluginContract$3>(componentType: string, methods: ServicePluginMethodMetadata$3[]): ServicePluginDefinition$3<Contract>;
5124
-
5125
- declare global {
5126
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
5127
- interface SymbolConstructor {
5128
- readonly observable: symbol;
5129
- }
5130
- }
5131
-
5132
- declare global {
5133
- interface ContextualClient {
5134
- }
5135
- }
5136
-
5137
4939
  interface GetPaymentSettingsEnvelope {
5138
4940
  request: GetPaymentSettingsRequest;
5139
4941
  metadata: Context$1;
@@ -5142,7 +4944,7 @@ interface GetPaymentSettingsForCheckoutEnvelope {
5142
4944
  request: GetPaymentSettingsForCheckoutRequest;
5143
4945
  metadata: Context$1;
5144
4946
  }
5145
- declare const provideHandlers$3: ServicePluginDefinition$3<{
4947
+ declare const provideHandlers$3: ServicePluginDefinition$8<{
5146
4948
  /**
5147
4949
  *
5148
4950
  * This method retrieves payment settings from your app.
@@ -5155,27 +4957,27 @@ declare const provideHandlers$3: ServicePluginDefinition$3<{
5155
4957
  getPaymentSettingsForCheckout(payload: GetPaymentSettingsForCheckoutEnvelope): GetPaymentSettingsForCheckoutResponse | Promise<GetPaymentSettingsForCheckoutResponse>;
5156
4958
  }>;
5157
4959
 
5158
- type ServicePluginMethodInput$2 = {
4960
+ type ServicePluginMethodInput$1 = {
5159
4961
  request: any;
5160
4962
  metadata: any;
5161
4963
  };
5162
- type ServicePluginContract$2 = Record<string, (payload: ServicePluginMethodInput$2) => unknown | Promise<unknown>>;
5163
- type ServicePluginMethodMetadata$2 = {
4964
+ type ServicePluginContract$1 = Record<string, (payload: ServicePluginMethodInput$1) => unknown | Promise<unknown>>;
4965
+ type ServicePluginMethodMetadata$1 = {
5164
4966
  name: string;
5165
4967
  primaryHttpMappingPath: string;
5166
4968
  transformations: {
5167
- fromREST: (...args: unknown[]) => ServicePluginMethodInput$2;
4969
+ fromREST: (...args: unknown[]) => ServicePluginMethodInput$1;
5168
4970
  toREST: (...args: unknown[]) => unknown;
5169
4971
  };
5170
4972
  };
5171
- type ServicePluginDefinition$2<Contract extends ServicePluginContract$2> = {
4973
+ type ServicePluginDefinition$1<Contract extends ServicePluginContract$1> = {
5172
4974
  __type: 'service-plugin-definition';
5173
4975
  componentType: string;
5174
- methods: ServicePluginMethodMetadata$2[];
4976
+ methods: ServicePluginMethodMetadata$1[];
5175
4977
  __contract: Contract;
5176
4978
  };
5177
- declare function ServicePluginDefinition$2<Contract extends ServicePluginContract$2>(componentType: string, methods: ServicePluginMethodMetadata$2[]): ServicePluginDefinition$2<Contract>;
5178
- type BuildServicePluginDefinition$1<T extends ServicePluginDefinition$2<any>> = (implementation: T['__contract']) => void;
4979
+ declare function ServicePluginDefinition$1<Contract extends ServicePluginContract$1>(componentType: string, methods: ServicePluginMethodMetadata$1[]): ServicePluginDefinition$1<Contract>;
4980
+ type BuildServicePluginDefinition$1<T extends ServicePluginDefinition$1<any>> = (implementation: T['__contract']) => void;
5179
4981
 
5180
4982
  declare global {
5181
4983
  // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
@@ -5184,7 +4986,7 @@ declare global {
5184
4986
  }
5185
4987
  }
5186
4988
 
5187
- declare function createServicePluginModule$1<T extends ServicePluginDefinition$2<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$1<T> & T;
4989
+ declare function createServicePluginModule$1<T extends ServicePluginDefinition$1<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$1<T> & T;
5188
4990
 
5189
4991
  type _publicProvideHandlersType$1 = typeof provideHandlers$3;
5190
4992
  declare const provideHandlers$2: ReturnType<typeof createServicePluginModule$1<_publicProvideHandlersType>>;
@@ -6018,44 +5820,11 @@ interface IdentificationDataIdOneOf {
6018
5820
  appId?: string;
6019
5821
  }
6020
5822
 
6021
- type ServicePluginMethodInput$1 = {
6022
- request: any;
6023
- metadata: any;
6024
- };
6025
- type ServicePluginContract$1 = Record<string, (payload: ServicePluginMethodInput$1) => unknown | Promise<unknown>>;
6026
- type ServicePluginMethodMetadata$1 = {
6027
- name: string;
6028
- primaryHttpMappingPath: string;
6029
- transformations: {
6030
- fromREST: (...args: unknown[]) => ServicePluginMethodInput$1;
6031
- toREST: (...args: unknown[]) => unknown;
6032
- };
6033
- };
6034
- type ServicePluginDefinition$1<Contract extends ServicePluginContract$1> = {
6035
- __type: 'service-plugin-definition';
6036
- componentType: string;
6037
- methods: ServicePluginMethodMetadata$1[];
6038
- __contract: Contract;
6039
- };
6040
- declare function ServicePluginDefinition$1<Contract extends ServicePluginContract$1>(componentType: string, methods: ServicePluginMethodMetadata$1[]): ServicePluginDefinition$1<Contract>;
6041
-
6042
- declare global {
6043
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
6044
- interface SymbolConstructor {
6045
- readonly observable: symbol;
6046
- }
6047
- }
6048
-
6049
- declare global {
6050
- interface ContextualClient {
6051
- }
6052
- }
6053
-
6054
5823
  interface GetValidationViolationsEnvelope {
6055
5824
  request: GetValidationViolationsRequest;
6056
5825
  metadata: Context;
6057
5826
  }
6058
- declare const provideHandlers$1: ServicePluginDefinition$1<{
5827
+ declare const provideHandlers$1: ServicePluginDefinition$8<{
6059
5828
  /**
6060
5829
  *
6061
5830
  * This method retrieves validation violations from your app.