@wix/ecom 1.0.763 → 1.0.764

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.
@@ -129,27 +129,26 @@ interface IdentificationDataIdOneOf$6 {
129
129
  appId?: string;
130
130
  }
131
131
 
132
- type ServicePluginMethodInput = {
132
+ type ServicePluginMethodInput$d = {
133
133
  request: any;
134
134
  metadata: any;
135
135
  };
136
- type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
137
- type ServicePluginMethodMetadata = {
136
+ type ServicePluginContract$d = Record<string, (payload: ServicePluginMethodInput$d) => unknown | Promise<unknown>>;
137
+ type ServicePluginMethodMetadata$d = {
138
138
  name: string;
139
139
  primaryHttpMappingPath: string;
140
140
  transformations: {
141
- fromREST: (...args: unknown[]) => ServicePluginMethodInput;
141
+ fromREST: (...args: unknown[]) => ServicePluginMethodInput$d;
142
142
  toREST: (...args: unknown[]) => unknown;
143
143
  };
144
144
  };
145
- type ServicePluginDefinition<Contract extends ServicePluginContract> = {
145
+ type ServicePluginDefinition$d<Contract extends ServicePluginContract$d> = {
146
146
  __type: 'service-plugin-definition';
147
147
  componentType: string;
148
- methods: ServicePluginMethodMetadata[];
148
+ methods: ServicePluginMethodMetadata$d[];
149
149
  __contract: Contract;
150
150
  };
151
- declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
152
- type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
151
+ declare function ServicePluginDefinition$d<Contract extends ServicePluginContract$d>(componentType: string, methods: ServicePluginMethodMetadata$d[]): ServicePluginDefinition$d<Contract>;
153
152
 
154
153
  declare global {
155
154
  // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
@@ -158,6 +157,11 @@ declare global {
158
157
  }
159
158
  }
160
159
 
160
+ declare global {
161
+ interface ContextualClient {
162
+ }
163
+ }
164
+
161
165
  interface GetBalanceEnvelope {
162
166
  request: GetBalanceRequest;
163
167
  metadata: Context$6;
@@ -170,7 +174,7 @@ interface _voidEnvelope {
170
174
  request: VoidRequest;
171
175
  metadata: Context$6;
172
176
  }
173
- declare const provideHandlers$d: ServicePluginDefinition<{
177
+ declare const provideHandlers$d: ServicePluginDefinition$d<{
174
178
  /**
175
179
  *
176
180
  * This method retrieves gift card data from your app.
@@ -188,7 +192,36 @@ declare const provideHandlers$d: ServicePluginDefinition<{
188
192
  _void(payload: _voidEnvelope): VoidResponse | Promise<VoidResponse>;
189
193
  }>;
190
194
 
191
- declare function createServicePluginModule$6<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
195
+ type ServicePluginMethodInput$c = {
196
+ request: any;
197
+ metadata: any;
198
+ };
199
+ type ServicePluginContract$c = Record<string, (payload: ServicePluginMethodInput$c) => unknown | Promise<unknown>>;
200
+ type ServicePluginMethodMetadata$c = {
201
+ name: string;
202
+ primaryHttpMappingPath: string;
203
+ transformations: {
204
+ fromREST: (...args: unknown[]) => ServicePluginMethodInput$c;
205
+ toREST: (...args: unknown[]) => unknown;
206
+ };
207
+ };
208
+ type ServicePluginDefinition$c<Contract extends ServicePluginContract$c> = {
209
+ __type: 'service-plugin-definition';
210
+ componentType: string;
211
+ methods: ServicePluginMethodMetadata$c[];
212
+ __contract: Contract;
213
+ };
214
+ declare function ServicePluginDefinition$c<Contract extends ServicePluginContract$c>(componentType: string, methods: ServicePluginMethodMetadata$c[]): ServicePluginDefinition$c<Contract>;
215
+ type BuildServicePluginDefinition$6<T extends ServicePluginDefinition$c<any>> = (implementation: T['__contract']) => void;
216
+
217
+ declare global {
218
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
219
+ interface SymbolConstructor {
220
+ readonly observable: symbol;
221
+ }
222
+ }
223
+
224
+ declare function createServicePluginModule$6<T extends ServicePluginDefinition$c<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$6<T> & T;
192
225
 
193
226
  type _publicProvideHandlersType$6 = typeof provideHandlers$d;
194
227
  declare const provideHandlers$c: ReturnType<typeof createServicePluginModule$6<_publicProvideHandlersType>>;
@@ -792,11 +825,44 @@ interface IdentificationDataIdOneOf$5 {
792
825
  appId?: string;
793
826
  }
794
827
 
828
+ type ServicePluginMethodInput$b = {
829
+ request: any;
830
+ metadata: any;
831
+ };
832
+ type ServicePluginContract$b = Record<string, (payload: ServicePluginMethodInput$b) => unknown | Promise<unknown>>;
833
+ type ServicePluginMethodMetadata$b = {
834
+ name: string;
835
+ primaryHttpMappingPath: string;
836
+ transformations: {
837
+ fromREST: (...args: unknown[]) => ServicePluginMethodInput$b;
838
+ toREST: (...args: unknown[]) => unknown;
839
+ };
840
+ };
841
+ type ServicePluginDefinition$b<Contract extends ServicePluginContract$b> = {
842
+ __type: 'service-plugin-definition';
843
+ componentType: string;
844
+ methods: ServicePluginMethodMetadata$b[];
845
+ __contract: Contract;
846
+ };
847
+ declare function ServicePluginDefinition$b<Contract extends ServicePluginContract$b>(componentType: string, methods: ServicePluginMethodMetadata$b[]): ServicePluginDefinition$b<Contract>;
848
+
849
+ declare global {
850
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
851
+ interface SymbolConstructor {
852
+ readonly observable: symbol;
853
+ }
854
+ }
855
+
856
+ declare global {
857
+ interface ContextualClient {
858
+ }
859
+ }
860
+
795
861
  interface GetShippingRatesEnvelope {
796
862
  request: GetShippingRatesRequest;
797
863
  metadata: Context$5;
798
864
  }
799
- declare const provideHandlers$b: ServicePluginDefinition<{
865
+ declare const provideHandlers$b: ServicePluginDefinition$b<{
800
866
  /**
801
867
  *
802
868
  * This method retrieves applicable shipping rates for a delivery from your app.
@@ -805,7 +871,36 @@ declare const provideHandlers$b: ServicePluginDefinition<{
805
871
  getShippingRates(payload: GetShippingRatesEnvelope): GetShippingRatesResponse | Promise<GetShippingRatesResponse>;
806
872
  }>;
807
873
 
808
- declare function createServicePluginModule$5<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
874
+ type ServicePluginMethodInput$a = {
875
+ request: any;
876
+ metadata: any;
877
+ };
878
+ type ServicePluginContract$a = Record<string, (payload: ServicePluginMethodInput$a) => unknown | Promise<unknown>>;
879
+ type ServicePluginMethodMetadata$a = {
880
+ name: string;
881
+ primaryHttpMappingPath: string;
882
+ transformations: {
883
+ fromREST: (...args: unknown[]) => ServicePluginMethodInput$a;
884
+ toREST: (...args: unknown[]) => unknown;
885
+ };
886
+ };
887
+ type ServicePluginDefinition$a<Contract extends ServicePluginContract$a> = {
888
+ __type: 'service-plugin-definition';
889
+ componentType: string;
890
+ methods: ServicePluginMethodMetadata$a[];
891
+ __contract: Contract;
892
+ };
893
+ declare function ServicePluginDefinition$a<Contract extends ServicePluginContract$a>(componentType: string, methods: ServicePluginMethodMetadata$a[]): ServicePluginDefinition$a<Contract>;
894
+ type BuildServicePluginDefinition$5<T extends ServicePluginDefinition$a<any>> = (implementation: T['__contract']) => void;
895
+
896
+ declare global {
897
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
898
+ interface SymbolConstructor {
899
+ readonly observable: symbol;
900
+ }
901
+ }
902
+
903
+ declare function createServicePluginModule$5<T extends ServicePluginDefinition$a<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$5<T> & T;
809
904
 
810
905
  type _publicProvideHandlersType$5 = typeof provideHandlers$b;
811
906
  declare const provideHandlers$a: ReturnType<typeof createServicePluginModule$5<_publicProvideHandlersType>>;
@@ -1321,11 +1416,44 @@ interface IdentificationDataIdOneOf$4 {
1321
1416
  appId?: string;
1322
1417
  }
1323
1418
 
1419
+ type ServicePluginMethodInput$9 = {
1420
+ request: any;
1421
+ metadata: any;
1422
+ };
1423
+ type ServicePluginContract$9 = Record<string, (payload: ServicePluginMethodInput$9) => unknown | Promise<unknown>>;
1424
+ type ServicePluginMethodMetadata$9 = {
1425
+ name: string;
1426
+ primaryHttpMappingPath: string;
1427
+ transformations: {
1428
+ fromREST: (...args: unknown[]) => ServicePluginMethodInput$9;
1429
+ toREST: (...args: unknown[]) => unknown;
1430
+ };
1431
+ };
1432
+ type ServicePluginDefinition$9<Contract extends ServicePluginContract$9> = {
1433
+ __type: 'service-plugin-definition';
1434
+ componentType: string;
1435
+ methods: ServicePluginMethodMetadata$9[];
1436
+ __contract: Contract;
1437
+ };
1438
+ declare function ServicePluginDefinition$9<Contract extends ServicePluginContract$9>(componentType: string, methods: ServicePluginMethodMetadata$9[]): ServicePluginDefinition$9<Contract>;
1439
+
1440
+ declare global {
1441
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
1442
+ interface SymbolConstructor {
1443
+ readonly observable: symbol;
1444
+ }
1445
+ }
1446
+
1447
+ declare global {
1448
+ interface ContextualClient {
1449
+ }
1450
+ }
1451
+
1324
1452
  interface CalculateAdditionalFeesEnvelope {
1325
1453
  request: CalculateAdditionalFeesRequest;
1326
1454
  metadata: Context$4;
1327
1455
  }
1328
- declare const provideHandlers$9: ServicePluginDefinition<{
1456
+ declare const provideHandlers$9: ServicePluginDefinition$9<{
1329
1457
  /**
1330
1458
  *
1331
1459
  * This method retrieves additional fees calculated by your app.
@@ -1337,7 +1465,36 @@ declare const provideHandlers$9: ServicePluginDefinition<{
1337
1465
  calculateAdditionalFees(payload: CalculateAdditionalFeesEnvelope): CalculateAdditionalFeesResponse | Promise<CalculateAdditionalFeesResponse>;
1338
1466
  }>;
1339
1467
 
1340
- declare function createServicePluginModule$4<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
1468
+ type ServicePluginMethodInput$8 = {
1469
+ request: any;
1470
+ metadata: any;
1471
+ };
1472
+ type ServicePluginContract$8 = Record<string, (payload: ServicePluginMethodInput$8) => unknown | Promise<unknown>>;
1473
+ type ServicePluginMethodMetadata$8 = {
1474
+ name: string;
1475
+ primaryHttpMappingPath: string;
1476
+ transformations: {
1477
+ fromREST: (...args: unknown[]) => ServicePluginMethodInput$8;
1478
+ toREST: (...args: unknown[]) => unknown;
1479
+ };
1480
+ };
1481
+ type ServicePluginDefinition$8<Contract extends ServicePluginContract$8> = {
1482
+ __type: 'service-plugin-definition';
1483
+ componentType: string;
1484
+ methods: ServicePluginMethodMetadata$8[];
1485
+ __contract: Contract;
1486
+ };
1487
+ declare function ServicePluginDefinition$8<Contract extends ServicePluginContract$8>(componentType: string, methods: ServicePluginMethodMetadata$8[]): ServicePluginDefinition$8<Contract>;
1488
+ type BuildServicePluginDefinition$4<T extends ServicePluginDefinition$8<any>> = (implementation: T['__contract']) => void;
1489
+
1490
+ declare global {
1491
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
1492
+ interface SymbolConstructor {
1493
+ readonly observable: symbol;
1494
+ }
1495
+ }
1496
+
1497
+ declare function createServicePluginModule$4<T extends ServicePluginDefinition$8<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$4<T> & T;
1341
1498
 
1342
1499
  type _publicProvideHandlersType$4 = typeof provideHandlers$9;
1343
1500
  declare const provideHandlers$8: ReturnType<typeof createServicePluginModule$4<_publicProvideHandlersType>>;
@@ -1488,6 +1645,39 @@ interface IdentificationDataIdOneOf$3 {
1488
1645
  appId?: string;
1489
1646
  }
1490
1647
 
1648
+ type ServicePluginMethodInput$7 = {
1649
+ request: any;
1650
+ metadata: any;
1651
+ };
1652
+ type ServicePluginContract$7 = Record<string, (payload: ServicePluginMethodInput$7) => unknown | Promise<unknown>>;
1653
+ type ServicePluginMethodMetadata$7 = {
1654
+ name: string;
1655
+ primaryHttpMappingPath: string;
1656
+ transformations: {
1657
+ fromREST: (...args: unknown[]) => ServicePluginMethodInput$7;
1658
+ toREST: (...args: unknown[]) => unknown;
1659
+ };
1660
+ };
1661
+ type ServicePluginDefinition$7<Contract extends ServicePluginContract$7> = {
1662
+ __type: 'service-plugin-definition';
1663
+ componentType: string;
1664
+ methods: ServicePluginMethodMetadata$7[];
1665
+ __contract: Contract;
1666
+ };
1667
+ declare function ServicePluginDefinition$7<Contract extends ServicePluginContract$7>(componentType: string, methods: ServicePluginMethodMetadata$7[]): ServicePluginDefinition$7<Contract>;
1668
+
1669
+ declare global {
1670
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
1671
+ interface SymbolConstructor {
1672
+ readonly observable: symbol;
1673
+ }
1674
+ }
1675
+
1676
+ declare global {
1677
+ interface ContextualClient {
1678
+ }
1679
+ }
1680
+
1491
1681
  interface ListTriggersEnvelope {
1492
1682
  request: ListTriggersRequest;
1493
1683
  metadata: Context$3;
@@ -1496,7 +1686,7 @@ interface GetEligibleTriggersEnvelope {
1496
1686
  request: GetEligibleTriggersRequest;
1497
1687
  metadata: Context$3;
1498
1688
  }
1499
- declare const provideHandlers$7: ServicePluginDefinition<{
1689
+ declare const provideHandlers$7: ServicePluginDefinition$7<{
1500
1690
  /**
1501
1691
  *
1502
1692
  * Lists all custom triggers provided by your service plugin integration.
@@ -1512,7 +1702,36 @@ declare const provideHandlers$7: ServicePluginDefinition<{
1512
1702
  getEligibleTriggers(payload: GetEligibleTriggersEnvelope): GetEligibleTriggersResponse | Promise<GetEligibleTriggersResponse>;
1513
1703
  }>;
1514
1704
 
1515
- declare function createServicePluginModule$3<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
1705
+ type ServicePluginMethodInput$6 = {
1706
+ request: any;
1707
+ metadata: any;
1708
+ };
1709
+ type ServicePluginContract$6 = Record<string, (payload: ServicePluginMethodInput$6) => unknown | Promise<unknown>>;
1710
+ type ServicePluginMethodMetadata$6 = {
1711
+ name: string;
1712
+ primaryHttpMappingPath: string;
1713
+ transformations: {
1714
+ fromREST: (...args: unknown[]) => ServicePluginMethodInput$6;
1715
+ toREST: (...args: unknown[]) => unknown;
1716
+ };
1717
+ };
1718
+ type ServicePluginDefinition$6<Contract extends ServicePluginContract$6> = {
1719
+ __type: 'service-plugin-definition';
1720
+ componentType: string;
1721
+ methods: ServicePluginMethodMetadata$6[];
1722
+ __contract: Contract;
1723
+ };
1724
+ declare function ServicePluginDefinition$6<Contract extends ServicePluginContract$6>(componentType: string, methods: ServicePluginMethodMetadata$6[]): ServicePluginDefinition$6<Contract>;
1725
+ type BuildServicePluginDefinition$3<T extends ServicePluginDefinition$6<any>> = (implementation: T['__contract']) => void;
1726
+
1727
+ declare global {
1728
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
1729
+ interface SymbolConstructor {
1730
+ readonly observable: symbol;
1731
+ }
1732
+ }
1733
+
1734
+ declare function createServicePluginModule$3<T extends ServicePluginDefinition$6<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$3<T> & T;
1516
1735
 
1517
1736
  type _publicProvideHandlersType$3 = typeof provideHandlers$7;
1518
1737
  declare const provideHandlers$6: ReturnType<typeof createServicePluginModule$3<_publicProvideHandlersType>>;
@@ -1732,11 +1951,44 @@ interface IdentificationDataIdOneOf$2 {
1732
1951
  appId?: string;
1733
1952
  }
1734
1953
 
1954
+ type ServicePluginMethodInput$5 = {
1955
+ request: any;
1956
+ metadata: any;
1957
+ };
1958
+ type ServicePluginContract$5 = Record<string, (payload: ServicePluginMethodInput$5) => unknown | Promise<unknown>>;
1959
+ type ServicePluginMethodMetadata$5 = {
1960
+ name: string;
1961
+ primaryHttpMappingPath: string;
1962
+ transformations: {
1963
+ fromREST: (...args: unknown[]) => ServicePluginMethodInput$5;
1964
+ toREST: (...args: unknown[]) => unknown;
1965
+ };
1966
+ };
1967
+ type ServicePluginDefinition$5<Contract extends ServicePluginContract$5> = {
1968
+ __type: 'service-plugin-definition';
1969
+ componentType: string;
1970
+ methods: ServicePluginMethodMetadata$5[];
1971
+ __contract: Contract;
1972
+ };
1973
+ declare function ServicePluginDefinition$5<Contract extends ServicePluginContract$5>(componentType: string, methods: ServicePluginMethodMetadata$5[]): ServicePluginDefinition$5<Contract>;
1974
+
1975
+ declare global {
1976
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
1977
+ interface SymbolConstructor {
1978
+ readonly observable: symbol;
1979
+ }
1980
+ }
1981
+
1982
+ declare global {
1983
+ interface ContextualClient {
1984
+ }
1985
+ }
1986
+
1735
1987
  interface GetEligibleDiscountsEnvelope {
1736
1988
  request: GetEligibleDiscountsRequest;
1737
1989
  metadata: Context$2;
1738
1990
  }
1739
- declare const provideHandlers$5: ServicePluginDefinition<{
1991
+ declare const provideHandlers$5: ServicePluginDefinition$5<{
1740
1992
  /**
1741
1993
  *
1742
1994
  * Wix calls this method when certain actions are performed on the cart or checkout.
@@ -1744,7 +1996,36 @@ declare const provideHandlers$5: ServicePluginDefinition<{
1744
1996
  getEligibleDiscounts(payload: GetEligibleDiscountsEnvelope): GetEligibleDiscountsResponse | Promise<GetEligibleDiscountsResponse>;
1745
1997
  }>;
1746
1998
 
1747
- declare function createServicePluginModule$2<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
1999
+ type ServicePluginMethodInput$4 = {
2000
+ request: any;
2001
+ metadata: any;
2002
+ };
2003
+ type ServicePluginContract$4 = Record<string, (payload: ServicePluginMethodInput$4) => unknown | Promise<unknown>>;
2004
+ type ServicePluginMethodMetadata$4 = {
2005
+ name: string;
2006
+ primaryHttpMappingPath: string;
2007
+ transformations: {
2008
+ fromREST: (...args: unknown[]) => ServicePluginMethodInput$4;
2009
+ toREST: (...args: unknown[]) => unknown;
2010
+ };
2011
+ };
2012
+ type ServicePluginDefinition$4<Contract extends ServicePluginContract$4> = {
2013
+ __type: 'service-plugin-definition';
2014
+ componentType: string;
2015
+ methods: ServicePluginMethodMetadata$4[];
2016
+ __contract: Contract;
2017
+ };
2018
+ declare function ServicePluginDefinition$4<Contract extends ServicePluginContract$4>(componentType: string, methods: ServicePluginMethodMetadata$4[]): ServicePluginDefinition$4<Contract>;
2019
+ type BuildServicePluginDefinition$2<T extends ServicePluginDefinition$4<any>> = (implementation: T['__contract']) => void;
2020
+
2021
+ declare global {
2022
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
2023
+ interface SymbolConstructor {
2024
+ readonly observable: symbol;
2025
+ }
2026
+ }
2027
+
2028
+ declare function createServicePluginModule$2<T extends ServicePluginDefinition$4<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$2<T> & T;
1748
2029
 
1749
2030
  type _publicProvideHandlersType$2 = typeof provideHandlers$5;
1750
2031
  declare const provideHandlers$4: ReturnType<typeof createServicePluginModule$2<_publicProvideHandlersType>>;
@@ -4551,6 +4832,39 @@ interface IdentificationDataIdOneOf$1 {
4551
4832
  appId?: string;
4552
4833
  }
4553
4834
 
4835
+ type ServicePluginMethodInput$3 = {
4836
+ request: any;
4837
+ metadata: any;
4838
+ };
4839
+ type ServicePluginContract$3 = Record<string, (payload: ServicePluginMethodInput$3) => unknown | Promise<unknown>>;
4840
+ type ServicePluginMethodMetadata$3 = {
4841
+ name: string;
4842
+ primaryHttpMappingPath: string;
4843
+ transformations: {
4844
+ fromREST: (...args: unknown[]) => ServicePluginMethodInput$3;
4845
+ toREST: (...args: unknown[]) => unknown;
4846
+ };
4847
+ };
4848
+ type ServicePluginDefinition$3<Contract extends ServicePluginContract$3> = {
4849
+ __type: 'service-plugin-definition';
4850
+ componentType: string;
4851
+ methods: ServicePluginMethodMetadata$3[];
4852
+ __contract: Contract;
4853
+ };
4854
+ declare function ServicePluginDefinition$3<Contract extends ServicePluginContract$3>(componentType: string, methods: ServicePluginMethodMetadata$3[]): ServicePluginDefinition$3<Contract>;
4855
+
4856
+ declare global {
4857
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
4858
+ interface SymbolConstructor {
4859
+ readonly observable: symbol;
4860
+ }
4861
+ }
4862
+
4863
+ declare global {
4864
+ interface ContextualClient {
4865
+ }
4866
+ }
4867
+
4554
4868
  interface GetPaymentSettingsEnvelope {
4555
4869
  request: GetPaymentSettingsRequest;
4556
4870
  metadata: Context$1;
@@ -4559,7 +4873,7 @@ interface GetPaymentSettingsForCheckoutEnvelope {
4559
4873
  request: GetPaymentSettingsForCheckoutRequest;
4560
4874
  metadata: Context$1;
4561
4875
  }
4562
- declare const provideHandlers$3: ServicePluginDefinition<{
4876
+ declare const provideHandlers$3: ServicePluginDefinition$3<{
4563
4877
  /**
4564
4878
  *
4565
4879
  * This method retrieves payment settings from your app.
@@ -4572,7 +4886,36 @@ declare const provideHandlers$3: ServicePluginDefinition<{
4572
4886
  getPaymentSettingsForCheckout(payload: GetPaymentSettingsForCheckoutEnvelope): GetPaymentSettingsForCheckoutResponse | Promise<GetPaymentSettingsForCheckoutResponse>;
4573
4887
  }>;
4574
4888
 
4575
- declare function createServicePluginModule$1<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
4889
+ type ServicePluginMethodInput$2 = {
4890
+ request: any;
4891
+ metadata: any;
4892
+ };
4893
+ type ServicePluginContract$2 = Record<string, (payload: ServicePluginMethodInput$2) => unknown | Promise<unknown>>;
4894
+ type ServicePluginMethodMetadata$2 = {
4895
+ name: string;
4896
+ primaryHttpMappingPath: string;
4897
+ transformations: {
4898
+ fromREST: (...args: unknown[]) => ServicePluginMethodInput$2;
4899
+ toREST: (...args: unknown[]) => unknown;
4900
+ };
4901
+ };
4902
+ type ServicePluginDefinition$2<Contract extends ServicePluginContract$2> = {
4903
+ __type: 'service-plugin-definition';
4904
+ componentType: string;
4905
+ methods: ServicePluginMethodMetadata$2[];
4906
+ __contract: Contract;
4907
+ };
4908
+ declare function ServicePluginDefinition$2<Contract extends ServicePluginContract$2>(componentType: string, methods: ServicePluginMethodMetadata$2[]): ServicePluginDefinition$2<Contract>;
4909
+ type BuildServicePluginDefinition$1<T extends ServicePluginDefinition$2<any>> = (implementation: T['__contract']) => void;
4910
+
4911
+ declare global {
4912
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
4913
+ interface SymbolConstructor {
4914
+ readonly observable: symbol;
4915
+ }
4916
+ }
4917
+
4918
+ declare function createServicePluginModule$1<T extends ServicePluginDefinition$2<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$1<T> & T;
4576
4919
 
4577
4920
  type _publicProvideHandlersType$1 = typeof provideHandlers$3;
4578
4921
  declare const provideHandlers$2: ReturnType<typeof createServicePluginModule$1<_publicProvideHandlersType>>;
@@ -5406,11 +5749,44 @@ interface IdentificationDataIdOneOf {
5406
5749
  appId?: string;
5407
5750
  }
5408
5751
 
5752
+ type ServicePluginMethodInput$1 = {
5753
+ request: any;
5754
+ metadata: any;
5755
+ };
5756
+ type ServicePluginContract$1 = Record<string, (payload: ServicePluginMethodInput$1) => unknown | Promise<unknown>>;
5757
+ type ServicePluginMethodMetadata$1 = {
5758
+ name: string;
5759
+ primaryHttpMappingPath: string;
5760
+ transformations: {
5761
+ fromREST: (...args: unknown[]) => ServicePluginMethodInput$1;
5762
+ toREST: (...args: unknown[]) => unknown;
5763
+ };
5764
+ };
5765
+ type ServicePluginDefinition$1<Contract extends ServicePluginContract$1> = {
5766
+ __type: 'service-plugin-definition';
5767
+ componentType: string;
5768
+ methods: ServicePluginMethodMetadata$1[];
5769
+ __contract: Contract;
5770
+ };
5771
+ declare function ServicePluginDefinition$1<Contract extends ServicePluginContract$1>(componentType: string, methods: ServicePluginMethodMetadata$1[]): ServicePluginDefinition$1<Contract>;
5772
+
5773
+ declare global {
5774
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
5775
+ interface SymbolConstructor {
5776
+ readonly observable: symbol;
5777
+ }
5778
+ }
5779
+
5780
+ declare global {
5781
+ interface ContextualClient {
5782
+ }
5783
+ }
5784
+
5409
5785
  interface GetValidationViolationsEnvelope {
5410
5786
  request: GetValidationViolationsRequest;
5411
5787
  metadata: Context;
5412
5788
  }
5413
- declare const provideHandlers$1: ServicePluginDefinition<{
5789
+ declare const provideHandlers$1: ServicePluginDefinition$1<{
5414
5790
  /**
5415
5791
  *
5416
5792
  * This method retrieves validation violations from your app.
@@ -5422,6 +5798,35 @@ declare const provideHandlers$1: ServicePluginDefinition<{
5422
5798
  getValidationViolations(payload: GetValidationViolationsEnvelope): GetValidationViolationsResponse | Promise<GetValidationViolationsResponse>;
5423
5799
  }>;
5424
5800
 
5801
+ type ServicePluginMethodInput = {
5802
+ request: any;
5803
+ metadata: any;
5804
+ };
5805
+ type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
5806
+ type ServicePluginMethodMetadata = {
5807
+ name: string;
5808
+ primaryHttpMappingPath: string;
5809
+ transformations: {
5810
+ fromREST: (...args: unknown[]) => ServicePluginMethodInput;
5811
+ toREST: (...args: unknown[]) => unknown;
5812
+ };
5813
+ };
5814
+ type ServicePluginDefinition<Contract extends ServicePluginContract> = {
5815
+ __type: 'service-plugin-definition';
5816
+ componentType: string;
5817
+ methods: ServicePluginMethodMetadata[];
5818
+ __contract: Contract;
5819
+ };
5820
+ declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
5821
+ type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
5822
+
5823
+ declare global {
5824
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
5825
+ interface SymbolConstructor {
5826
+ readonly observable: symbol;
5827
+ }
5828
+ }
5829
+
5425
5830
  declare function createServicePluginModule<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
5426
5831
 
5427
5832
  type _publicProvideHandlersType = typeof provideHandlers$1;