@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.
- package/build/cjs/context.js +1 -0
- package/build/cjs/context.js.map +1 -0
- package/build/cjs/index.js +1 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/meta.js +1 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/service-plugins-context.js +1 -0
- package/build/cjs/service-plugins-context.js.map +1 -0
- package/build/cjs/service-plugins.js +1 -0
- package/build/cjs/service-plugins.js.map +1 -0
- package/package.json +36 -36
- package/type-bundles/context.bundle.d.ts +11744 -412
- package/type-bundles/index.bundle.d.ts +11744 -412
- package/type-bundles/service-plugins-context.bundle.d.ts +426 -21
- package/type-bundles/service-plugins.bundle.d.ts +426 -21
|
@@ -258,27 +258,26 @@ declare class AlreadyVoidedWixError extends Error {
|
|
|
258
258
|
static readonly __type = "wix_spi_error";
|
|
259
259
|
}
|
|
260
260
|
|
|
261
|
-
type ServicePluginMethodInput = {
|
|
261
|
+
type ServicePluginMethodInput$d = {
|
|
262
262
|
request: any;
|
|
263
263
|
metadata: any;
|
|
264
264
|
};
|
|
265
|
-
type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
|
|
266
|
-
type ServicePluginMethodMetadata = {
|
|
265
|
+
type ServicePluginContract$d = Record<string, (payload: ServicePluginMethodInput$d) => unknown | Promise<unknown>>;
|
|
266
|
+
type ServicePluginMethodMetadata$d = {
|
|
267
267
|
name: string;
|
|
268
268
|
primaryHttpMappingPath: string;
|
|
269
269
|
transformations: {
|
|
270
|
-
fromREST: (...args: unknown[]) => ServicePluginMethodInput;
|
|
270
|
+
fromREST: (...args: unknown[]) => ServicePluginMethodInput$d;
|
|
271
271
|
toREST: (...args: unknown[]) => unknown;
|
|
272
272
|
};
|
|
273
273
|
};
|
|
274
|
-
type ServicePluginDefinition<Contract extends ServicePluginContract> = {
|
|
274
|
+
type ServicePluginDefinition$d<Contract extends ServicePluginContract$d> = {
|
|
275
275
|
__type: 'service-plugin-definition';
|
|
276
276
|
componentType: string;
|
|
277
|
-
methods: ServicePluginMethodMetadata[];
|
|
277
|
+
methods: ServicePluginMethodMetadata$d[];
|
|
278
278
|
__contract: Contract;
|
|
279
279
|
};
|
|
280
|
-
declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
|
|
281
|
-
type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
|
|
280
|
+
declare function ServicePluginDefinition$d<Contract extends ServicePluginContract$d>(componentType: string, methods: ServicePluginMethodMetadata$d[]): ServicePluginDefinition$d<Contract>;
|
|
282
281
|
|
|
283
282
|
declare global {
|
|
284
283
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -287,6 +286,11 @@ declare global {
|
|
|
287
286
|
}
|
|
288
287
|
}
|
|
289
288
|
|
|
289
|
+
declare global {
|
|
290
|
+
interface ContextualClient {
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
|
|
290
294
|
interface GetBalanceEnvelope {
|
|
291
295
|
request: GetBalanceRequest;
|
|
292
296
|
metadata: Context$6;
|
|
@@ -299,7 +303,7 @@ interface _voidEnvelope {
|
|
|
299
303
|
request: VoidRequest;
|
|
300
304
|
metadata: Context$6;
|
|
301
305
|
}
|
|
302
|
-
declare const provideHandlers$d: ServicePluginDefinition<{
|
|
306
|
+
declare const provideHandlers$d: ServicePluginDefinition$d<{
|
|
303
307
|
/**
|
|
304
308
|
*
|
|
305
309
|
* This method retrieves gift card data from your app.
|
|
@@ -317,7 +321,36 @@ declare const provideHandlers$d: ServicePluginDefinition<{
|
|
|
317
321
|
_void(payload: _voidEnvelope): VoidResponse | Promise<VoidResponse>;
|
|
318
322
|
}>;
|
|
319
323
|
|
|
320
|
-
|
|
324
|
+
type ServicePluginMethodInput$c = {
|
|
325
|
+
request: any;
|
|
326
|
+
metadata: any;
|
|
327
|
+
};
|
|
328
|
+
type ServicePluginContract$c = Record<string, (payload: ServicePluginMethodInput$c) => unknown | Promise<unknown>>;
|
|
329
|
+
type ServicePluginMethodMetadata$c = {
|
|
330
|
+
name: string;
|
|
331
|
+
primaryHttpMappingPath: string;
|
|
332
|
+
transformations: {
|
|
333
|
+
fromREST: (...args: unknown[]) => ServicePluginMethodInput$c;
|
|
334
|
+
toREST: (...args: unknown[]) => unknown;
|
|
335
|
+
};
|
|
336
|
+
};
|
|
337
|
+
type ServicePluginDefinition$c<Contract extends ServicePluginContract$c> = {
|
|
338
|
+
__type: 'service-plugin-definition';
|
|
339
|
+
componentType: string;
|
|
340
|
+
methods: ServicePluginMethodMetadata$c[];
|
|
341
|
+
__contract: Contract;
|
|
342
|
+
};
|
|
343
|
+
declare function ServicePluginDefinition$c<Contract extends ServicePluginContract$c>(componentType: string, methods: ServicePluginMethodMetadata$c[]): ServicePluginDefinition$c<Contract>;
|
|
344
|
+
type BuildServicePluginDefinition$6<T extends ServicePluginDefinition$c<any>> = (implementation: T['__contract']) => void;
|
|
345
|
+
|
|
346
|
+
declare global {
|
|
347
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
348
|
+
interface SymbolConstructor {
|
|
349
|
+
readonly observable: symbol;
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
declare function createServicePluginModule$6<T extends ServicePluginDefinition$c<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$6<T> & T;
|
|
321
354
|
|
|
322
355
|
type _publicProvideHandlersType$6 = typeof provideHandlers$d;
|
|
323
356
|
declare const provideHandlers$c: ReturnType<typeof createServicePluginModule$6<_publicProvideHandlersType>>;
|
|
@@ -891,11 +924,44 @@ declare class GenericShippingRatesWixError extends Error {
|
|
|
891
924
|
static readonly __type = "wix_spi_error";
|
|
892
925
|
}
|
|
893
926
|
|
|
927
|
+
type ServicePluginMethodInput$b = {
|
|
928
|
+
request: any;
|
|
929
|
+
metadata: any;
|
|
930
|
+
};
|
|
931
|
+
type ServicePluginContract$b = Record<string, (payload: ServicePluginMethodInput$b) => unknown | Promise<unknown>>;
|
|
932
|
+
type ServicePluginMethodMetadata$b = {
|
|
933
|
+
name: string;
|
|
934
|
+
primaryHttpMappingPath: string;
|
|
935
|
+
transformations: {
|
|
936
|
+
fromREST: (...args: unknown[]) => ServicePluginMethodInput$b;
|
|
937
|
+
toREST: (...args: unknown[]) => unknown;
|
|
938
|
+
};
|
|
939
|
+
};
|
|
940
|
+
type ServicePluginDefinition$b<Contract extends ServicePluginContract$b> = {
|
|
941
|
+
__type: 'service-plugin-definition';
|
|
942
|
+
componentType: string;
|
|
943
|
+
methods: ServicePluginMethodMetadata$b[];
|
|
944
|
+
__contract: Contract;
|
|
945
|
+
};
|
|
946
|
+
declare function ServicePluginDefinition$b<Contract extends ServicePluginContract$b>(componentType: string, methods: ServicePluginMethodMetadata$b[]): ServicePluginDefinition$b<Contract>;
|
|
947
|
+
|
|
948
|
+
declare global {
|
|
949
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
950
|
+
interface SymbolConstructor {
|
|
951
|
+
readonly observable: symbol;
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
declare global {
|
|
956
|
+
interface ContextualClient {
|
|
957
|
+
}
|
|
958
|
+
}
|
|
959
|
+
|
|
894
960
|
interface GetShippingRatesEnvelope {
|
|
895
961
|
request: GetShippingRatesRequest;
|
|
896
962
|
metadata: Context$5;
|
|
897
963
|
}
|
|
898
|
-
declare const provideHandlers$b: ServicePluginDefinition<{
|
|
964
|
+
declare const provideHandlers$b: ServicePluginDefinition$b<{
|
|
899
965
|
/**
|
|
900
966
|
*
|
|
901
967
|
* This method retrieves applicable shipping rates for a delivery from your app.
|
|
@@ -904,7 +970,36 @@ declare const provideHandlers$b: ServicePluginDefinition<{
|
|
|
904
970
|
getShippingRates(payload: GetShippingRatesEnvelope): GetShippingRatesResponse | Promise<GetShippingRatesResponse>;
|
|
905
971
|
}>;
|
|
906
972
|
|
|
907
|
-
|
|
973
|
+
type ServicePluginMethodInput$a = {
|
|
974
|
+
request: any;
|
|
975
|
+
metadata: any;
|
|
976
|
+
};
|
|
977
|
+
type ServicePluginContract$a = Record<string, (payload: ServicePluginMethodInput$a) => unknown | Promise<unknown>>;
|
|
978
|
+
type ServicePluginMethodMetadata$a = {
|
|
979
|
+
name: string;
|
|
980
|
+
primaryHttpMappingPath: string;
|
|
981
|
+
transformations: {
|
|
982
|
+
fromREST: (...args: unknown[]) => ServicePluginMethodInput$a;
|
|
983
|
+
toREST: (...args: unknown[]) => unknown;
|
|
984
|
+
};
|
|
985
|
+
};
|
|
986
|
+
type ServicePluginDefinition$a<Contract extends ServicePluginContract$a> = {
|
|
987
|
+
__type: 'service-plugin-definition';
|
|
988
|
+
componentType: string;
|
|
989
|
+
methods: ServicePluginMethodMetadata$a[];
|
|
990
|
+
__contract: Contract;
|
|
991
|
+
};
|
|
992
|
+
declare function ServicePluginDefinition$a<Contract extends ServicePluginContract$a>(componentType: string, methods: ServicePluginMethodMetadata$a[]): ServicePluginDefinition$a<Contract>;
|
|
993
|
+
type BuildServicePluginDefinition$5<T extends ServicePluginDefinition$a<any>> = (implementation: T['__contract']) => void;
|
|
994
|
+
|
|
995
|
+
declare global {
|
|
996
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
997
|
+
interface SymbolConstructor {
|
|
998
|
+
readonly observable: symbol;
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
declare function createServicePluginModule$5<T extends ServicePluginDefinition$a<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$5<T> & T;
|
|
908
1003
|
|
|
909
1004
|
type _publicProvideHandlersType$5 = typeof provideHandlers$b;
|
|
910
1005
|
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
|
-
|
|
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
|
-
|
|
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>>;
|
|
@@ -1811,11 +2030,44 @@ declare class CouponDoesNotExistWixError extends Error {
|
|
|
1811
2030
|
static readonly __type = "wix_spi_error";
|
|
1812
2031
|
}
|
|
1813
2032
|
|
|
2033
|
+
type ServicePluginMethodInput$5 = {
|
|
2034
|
+
request: any;
|
|
2035
|
+
metadata: any;
|
|
2036
|
+
};
|
|
2037
|
+
type ServicePluginContract$5 = Record<string, (payload: ServicePluginMethodInput$5) => unknown | Promise<unknown>>;
|
|
2038
|
+
type ServicePluginMethodMetadata$5 = {
|
|
2039
|
+
name: string;
|
|
2040
|
+
primaryHttpMappingPath: string;
|
|
2041
|
+
transformations: {
|
|
2042
|
+
fromREST: (...args: unknown[]) => ServicePluginMethodInput$5;
|
|
2043
|
+
toREST: (...args: unknown[]) => unknown;
|
|
2044
|
+
};
|
|
2045
|
+
};
|
|
2046
|
+
type ServicePluginDefinition$5<Contract extends ServicePluginContract$5> = {
|
|
2047
|
+
__type: 'service-plugin-definition';
|
|
2048
|
+
componentType: string;
|
|
2049
|
+
methods: ServicePluginMethodMetadata$5[];
|
|
2050
|
+
__contract: Contract;
|
|
2051
|
+
};
|
|
2052
|
+
declare function ServicePluginDefinition$5<Contract extends ServicePluginContract$5>(componentType: string, methods: ServicePluginMethodMetadata$5[]): ServicePluginDefinition$5<Contract>;
|
|
2053
|
+
|
|
2054
|
+
declare global {
|
|
2055
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
2056
|
+
interface SymbolConstructor {
|
|
2057
|
+
readonly observable: symbol;
|
|
2058
|
+
}
|
|
2059
|
+
}
|
|
2060
|
+
|
|
2061
|
+
declare global {
|
|
2062
|
+
interface ContextualClient {
|
|
2063
|
+
}
|
|
2064
|
+
}
|
|
2065
|
+
|
|
1814
2066
|
interface GetEligibleDiscountsEnvelope {
|
|
1815
2067
|
request: GetEligibleDiscountsRequest;
|
|
1816
2068
|
metadata: Context$2;
|
|
1817
2069
|
}
|
|
1818
|
-
declare const provideHandlers$5: ServicePluginDefinition<{
|
|
2070
|
+
declare const provideHandlers$5: ServicePluginDefinition$5<{
|
|
1819
2071
|
/**
|
|
1820
2072
|
*
|
|
1821
2073
|
* Wix calls this method when certain actions are performed on the cart or checkout.
|
|
@@ -1823,7 +2075,36 @@ declare const provideHandlers$5: ServicePluginDefinition<{
|
|
|
1823
2075
|
getEligibleDiscounts(payload: GetEligibleDiscountsEnvelope): GetEligibleDiscountsResponse | Promise<GetEligibleDiscountsResponse>;
|
|
1824
2076
|
}>;
|
|
1825
2077
|
|
|
1826
|
-
|
|
2078
|
+
type ServicePluginMethodInput$4 = {
|
|
2079
|
+
request: any;
|
|
2080
|
+
metadata: any;
|
|
2081
|
+
};
|
|
2082
|
+
type ServicePluginContract$4 = Record<string, (payload: ServicePluginMethodInput$4) => unknown | Promise<unknown>>;
|
|
2083
|
+
type ServicePluginMethodMetadata$4 = {
|
|
2084
|
+
name: string;
|
|
2085
|
+
primaryHttpMappingPath: string;
|
|
2086
|
+
transformations: {
|
|
2087
|
+
fromREST: (...args: unknown[]) => ServicePluginMethodInput$4;
|
|
2088
|
+
toREST: (...args: unknown[]) => unknown;
|
|
2089
|
+
};
|
|
2090
|
+
};
|
|
2091
|
+
type ServicePluginDefinition$4<Contract extends ServicePluginContract$4> = {
|
|
2092
|
+
__type: 'service-plugin-definition';
|
|
2093
|
+
componentType: string;
|
|
2094
|
+
methods: ServicePluginMethodMetadata$4[];
|
|
2095
|
+
__contract: Contract;
|
|
2096
|
+
};
|
|
2097
|
+
declare function ServicePluginDefinition$4<Contract extends ServicePluginContract$4>(componentType: string, methods: ServicePluginMethodMetadata$4[]): ServicePluginDefinition$4<Contract>;
|
|
2098
|
+
type BuildServicePluginDefinition$2<T extends ServicePluginDefinition$4<any>> = (implementation: T['__contract']) => void;
|
|
2099
|
+
|
|
2100
|
+
declare global {
|
|
2101
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
2102
|
+
interface SymbolConstructor {
|
|
2103
|
+
readonly observable: symbol;
|
|
2104
|
+
}
|
|
2105
|
+
}
|
|
2106
|
+
|
|
2107
|
+
declare function createServicePluginModule$2<T extends ServicePluginDefinition$4<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$2<T> & T;
|
|
1827
2108
|
|
|
1828
2109
|
type _publicProvideHandlersType$2 = typeof provideHandlers$5;
|
|
1829
2110
|
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
|
-
|
|
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;
|