@wix/ecom 1.0.786 → 1.0.787
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/type-bundles/context.bundle.d.ts +1189 -14095
- package/type-bundles/index.bundle.d.ts +1189 -14095
- package/type-bundles/service-plugins-context.bundle.d.ts +24 -296
- package/type-bundles/service-plugins.bundle.d.ts +24 -296
|
@@ -129,27 +129,27 @@ interface IdentificationDataIdOneOf$8 {
|
|
|
129
129
|
appId?: string;
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
type ServicePluginMethodInput
|
|
132
|
+
type ServicePluginMethodInput = {
|
|
133
133
|
request: any;
|
|
134
134
|
metadata: any;
|
|
135
135
|
};
|
|
136
|
-
type ServicePluginContract
|
|
137
|
-
type ServicePluginMethodMetadata
|
|
136
|
+
type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
|
|
137
|
+
type ServicePluginMethodMetadata = {
|
|
138
138
|
name: string;
|
|
139
139
|
primaryHttpMappingPath: string;
|
|
140
140
|
transformations: {
|
|
141
|
-
fromREST: (...args: unknown[]) => ServicePluginMethodInput
|
|
141
|
+
fromREST: (...args: unknown[]) => ServicePluginMethodInput;
|
|
142
142
|
toREST: (...args: unknown[]) => unknown;
|
|
143
143
|
};
|
|
144
144
|
};
|
|
145
|
-
type ServicePluginDefinition
|
|
145
|
+
type ServicePluginDefinition<Contract extends ServicePluginContract> = {
|
|
146
146
|
__type: 'service-plugin-definition';
|
|
147
147
|
componentType: string;
|
|
148
|
-
methods: ServicePluginMethodMetadata
|
|
148
|
+
methods: ServicePluginMethodMetadata[];
|
|
149
149
|
__contract: Contract;
|
|
150
150
|
};
|
|
151
|
-
declare function ServicePluginDefinition
|
|
152
|
-
type BuildServicePluginDefinition
|
|
151
|
+
declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
|
|
152
|
+
type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
|
|
153
153
|
|
|
154
154
|
declare global {
|
|
155
155
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -175,7 +175,7 @@ interface _voidEnvelope {
|
|
|
175
175
|
request: VoidRequest;
|
|
176
176
|
metadata: Context$8;
|
|
177
177
|
}
|
|
178
|
-
declare const provideHandlers$h: ServicePluginDefinition
|
|
178
|
+
declare const provideHandlers$h: ServicePluginDefinition<{
|
|
179
179
|
/**
|
|
180
180
|
*
|
|
181
181
|
* This method retrieves gift card data from your app.
|
|
@@ -193,7 +193,7 @@ declare const provideHandlers$h: ServicePluginDefinition$8<{
|
|
|
193
193
|
_void(payload: _voidEnvelope): VoidResponse | Promise<VoidResponse>;
|
|
194
194
|
}>;
|
|
195
195
|
|
|
196
|
-
declare function createServicePluginModule$8<T extends ServicePluginDefinition
|
|
196
|
+
declare function createServicePluginModule$8<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
|
|
197
197
|
|
|
198
198
|
type _publicProvideHandlersType$8 = typeof provideHandlers$h;
|
|
199
199
|
declare const provideHandlers$g: ReturnType<typeof createServicePluginModule$8<_publicProvideHandlersType>>;
|
|
@@ -688,40 +688,6 @@ interface IdentificationDataIdOneOf$7 {
|
|
|
688
688
|
appId?: string;
|
|
689
689
|
}
|
|
690
690
|
|
|
691
|
-
type ServicePluginMethodInput$7 = {
|
|
692
|
-
request: any;
|
|
693
|
-
metadata: any;
|
|
694
|
-
};
|
|
695
|
-
type ServicePluginContract$7 = Record<string, (payload: ServicePluginMethodInput$7) => unknown | Promise<unknown>>;
|
|
696
|
-
type ServicePluginMethodMetadata$7 = {
|
|
697
|
-
name: string;
|
|
698
|
-
primaryHttpMappingPath: string;
|
|
699
|
-
transformations: {
|
|
700
|
-
fromREST: (...args: unknown[]) => ServicePluginMethodInput$7;
|
|
701
|
-
toREST: (...args: unknown[]) => unknown;
|
|
702
|
-
};
|
|
703
|
-
};
|
|
704
|
-
type ServicePluginDefinition$7<Contract extends ServicePluginContract$7> = {
|
|
705
|
-
__type: 'service-plugin-definition';
|
|
706
|
-
componentType: string;
|
|
707
|
-
methods: ServicePluginMethodMetadata$7[];
|
|
708
|
-
__contract: Contract;
|
|
709
|
-
};
|
|
710
|
-
declare function ServicePluginDefinition$7<Contract extends ServicePluginContract$7>(componentType: string, methods: ServicePluginMethodMetadata$7[]): ServicePluginDefinition$7<Contract>;
|
|
711
|
-
type BuildServicePluginDefinition$7<T extends ServicePluginDefinition$7<any>> = (implementation: T['__contract']) => void;
|
|
712
|
-
|
|
713
|
-
declare global {
|
|
714
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
715
|
-
interface SymbolConstructor {
|
|
716
|
-
readonly observable: symbol;
|
|
717
|
-
}
|
|
718
|
-
}
|
|
719
|
-
|
|
720
|
-
declare global {
|
|
721
|
-
interface ContextualClient {
|
|
722
|
-
}
|
|
723
|
-
}
|
|
724
|
-
|
|
725
691
|
interface ListEligibleMembershipsEnvelope {
|
|
726
692
|
request: ListEligibleMembershipsRequest;
|
|
727
693
|
metadata: Context$7;
|
|
@@ -738,7 +704,7 @@ interface VoidMembershipChargeEnvelope {
|
|
|
738
704
|
request: VoidMembershipChargeRequest;
|
|
739
705
|
metadata: Context$7;
|
|
740
706
|
}
|
|
741
|
-
declare const provideHandlers$f: ServicePluginDefinition
|
|
707
|
+
declare const provideHandlers$f: ServicePluginDefinition<{
|
|
742
708
|
/**
|
|
743
709
|
*
|
|
744
710
|
* This method retrieves eligible memberships from your app. */
|
|
@@ -757,7 +723,7 @@ declare const provideHandlers$f: ServicePluginDefinition$7<{
|
|
|
757
723
|
voidMembershipCharge(payload: VoidMembershipChargeEnvelope): VoidMembershipChargeResponse | Promise<VoidMembershipChargeResponse>;
|
|
758
724
|
}>;
|
|
759
725
|
|
|
760
|
-
declare function createServicePluginModule$7<T extends ServicePluginDefinition
|
|
726
|
+
declare function createServicePluginModule$7<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
|
|
761
727
|
|
|
762
728
|
type _publicProvideHandlersType$7 = typeof provideHandlers$f;
|
|
763
729
|
declare const provideHandlers$e: ReturnType<typeof createServicePluginModule$7<_publicProvideHandlersType>>;
|
|
@@ -1063,45 +1029,11 @@ interface IdentificationDataIdOneOf$6 {
|
|
|
1063
1029
|
appId?: string;
|
|
1064
1030
|
}
|
|
1065
1031
|
|
|
1066
|
-
type ServicePluginMethodInput$6 = {
|
|
1067
|
-
request: any;
|
|
1068
|
-
metadata: any;
|
|
1069
|
-
};
|
|
1070
|
-
type ServicePluginContract$6 = Record<string, (payload: ServicePluginMethodInput$6) => unknown | Promise<unknown>>;
|
|
1071
|
-
type ServicePluginMethodMetadata$6 = {
|
|
1072
|
-
name: string;
|
|
1073
|
-
primaryHttpMappingPath: string;
|
|
1074
|
-
transformations: {
|
|
1075
|
-
fromREST: (...args: unknown[]) => ServicePluginMethodInput$6;
|
|
1076
|
-
toREST: (...args: unknown[]) => unknown;
|
|
1077
|
-
};
|
|
1078
|
-
};
|
|
1079
|
-
type ServicePluginDefinition$6<Contract extends ServicePluginContract$6> = {
|
|
1080
|
-
__type: 'service-plugin-definition';
|
|
1081
|
-
componentType: string;
|
|
1082
|
-
methods: ServicePluginMethodMetadata$6[];
|
|
1083
|
-
__contract: Contract;
|
|
1084
|
-
};
|
|
1085
|
-
declare function ServicePluginDefinition$6<Contract extends ServicePluginContract$6>(componentType: string, methods: ServicePluginMethodMetadata$6[]): ServicePluginDefinition$6<Contract>;
|
|
1086
|
-
type BuildServicePluginDefinition$6<T extends ServicePluginDefinition$6<any>> = (implementation: T['__contract']) => void;
|
|
1087
|
-
|
|
1088
|
-
declare global {
|
|
1089
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
1090
|
-
interface SymbolConstructor {
|
|
1091
|
-
readonly observable: symbol;
|
|
1092
|
-
}
|
|
1093
|
-
}
|
|
1094
|
-
|
|
1095
|
-
declare global {
|
|
1096
|
-
interface ContextualClient {
|
|
1097
|
-
}
|
|
1098
|
-
}
|
|
1099
|
-
|
|
1100
1032
|
interface GetRecommendationsEnvelope {
|
|
1101
1033
|
request: GetRecommendationsRequest;
|
|
1102
1034
|
metadata: Context$6;
|
|
1103
1035
|
}
|
|
1104
|
-
declare const provideHandlers$d: ServicePluginDefinition
|
|
1036
|
+
declare const provideHandlers$d: ServicePluginDefinition<{
|
|
1105
1037
|
/**
|
|
1106
1038
|
*
|
|
1107
1039
|
* Returns lists of items recommended by each requested algorithm.
|
|
@@ -1111,7 +1043,7 @@ declare const provideHandlers$d: ServicePluginDefinition$6<{
|
|
|
1111
1043
|
getRecommendations(payload: GetRecommendationsEnvelope): GetRecommendationsResponse | Promise<GetRecommendationsResponse>;
|
|
1112
1044
|
}>;
|
|
1113
1045
|
|
|
1114
|
-
declare function createServicePluginModule$6<T extends ServicePluginDefinition
|
|
1046
|
+
declare function createServicePluginModule$6<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
|
|
1115
1047
|
|
|
1116
1048
|
type _publicProvideHandlersType$6 = typeof provideHandlers$d;
|
|
1117
1049
|
declare const provideHandlers$c: ReturnType<typeof createServicePluginModule$6<_publicProvideHandlersType>>;
|
|
@@ -1608,45 +1540,11 @@ interface IdentificationDataIdOneOf$5 {
|
|
|
1608
1540
|
appId?: string;
|
|
1609
1541
|
}
|
|
1610
1542
|
|
|
1611
|
-
type ServicePluginMethodInput$5 = {
|
|
1612
|
-
request: any;
|
|
1613
|
-
metadata: any;
|
|
1614
|
-
};
|
|
1615
|
-
type ServicePluginContract$5 = Record<string, (payload: ServicePluginMethodInput$5) => unknown | Promise<unknown>>;
|
|
1616
|
-
type ServicePluginMethodMetadata$5 = {
|
|
1617
|
-
name: string;
|
|
1618
|
-
primaryHttpMappingPath: string;
|
|
1619
|
-
transformations: {
|
|
1620
|
-
fromREST: (...args: unknown[]) => ServicePluginMethodInput$5;
|
|
1621
|
-
toREST: (...args: unknown[]) => unknown;
|
|
1622
|
-
};
|
|
1623
|
-
};
|
|
1624
|
-
type ServicePluginDefinition$5<Contract extends ServicePluginContract$5> = {
|
|
1625
|
-
__type: 'service-plugin-definition';
|
|
1626
|
-
componentType: string;
|
|
1627
|
-
methods: ServicePluginMethodMetadata$5[];
|
|
1628
|
-
__contract: Contract;
|
|
1629
|
-
};
|
|
1630
|
-
declare function ServicePluginDefinition$5<Contract extends ServicePluginContract$5>(componentType: string, methods: ServicePluginMethodMetadata$5[]): ServicePluginDefinition$5<Contract>;
|
|
1631
|
-
type BuildServicePluginDefinition$5<T extends ServicePluginDefinition$5<any>> = (implementation: T['__contract']) => void;
|
|
1632
|
-
|
|
1633
|
-
declare global {
|
|
1634
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
1635
|
-
interface SymbolConstructor {
|
|
1636
|
-
readonly observable: symbol;
|
|
1637
|
-
}
|
|
1638
|
-
}
|
|
1639
|
-
|
|
1640
|
-
declare global {
|
|
1641
|
-
interface ContextualClient {
|
|
1642
|
-
}
|
|
1643
|
-
}
|
|
1644
|
-
|
|
1645
1543
|
interface GetShippingRatesEnvelope {
|
|
1646
1544
|
request: GetShippingRatesRequest;
|
|
1647
1545
|
metadata: Context$5;
|
|
1648
1546
|
}
|
|
1649
|
-
declare const provideHandlers$b: ServicePluginDefinition
|
|
1547
|
+
declare const provideHandlers$b: ServicePluginDefinition<{
|
|
1650
1548
|
/**
|
|
1651
1549
|
*
|
|
1652
1550
|
* This method retrieves applicable shipping rates for a delivery from your app.
|
|
@@ -1657,7 +1555,7 @@ declare const provideHandlers$b: ServicePluginDefinition$5<{
|
|
|
1657
1555
|
getShippingRates(payload: GetShippingRatesEnvelope): GetShippingRatesResponse | Promise<GetShippingRatesResponse>;
|
|
1658
1556
|
}>;
|
|
1659
1557
|
|
|
1660
|
-
declare function createServicePluginModule$5<T extends ServicePluginDefinition
|
|
1558
|
+
declare function createServicePluginModule$5<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
|
|
1661
1559
|
|
|
1662
1560
|
type _publicProvideHandlersType$5 = typeof provideHandlers$b;
|
|
1663
1561
|
declare const provideHandlers$a: ReturnType<typeof createServicePluginModule$5<_publicProvideHandlersType>>;
|
|
@@ -2173,45 +2071,11 @@ interface IdentificationDataIdOneOf$4 {
|
|
|
2173
2071
|
appId?: string;
|
|
2174
2072
|
}
|
|
2175
2073
|
|
|
2176
|
-
type ServicePluginMethodInput$4 = {
|
|
2177
|
-
request: any;
|
|
2178
|
-
metadata: any;
|
|
2179
|
-
};
|
|
2180
|
-
type ServicePluginContract$4 = Record<string, (payload: ServicePluginMethodInput$4) => unknown | Promise<unknown>>;
|
|
2181
|
-
type ServicePluginMethodMetadata$4 = {
|
|
2182
|
-
name: string;
|
|
2183
|
-
primaryHttpMappingPath: string;
|
|
2184
|
-
transformations: {
|
|
2185
|
-
fromREST: (...args: unknown[]) => ServicePluginMethodInput$4;
|
|
2186
|
-
toREST: (...args: unknown[]) => unknown;
|
|
2187
|
-
};
|
|
2188
|
-
};
|
|
2189
|
-
type ServicePluginDefinition$4<Contract extends ServicePluginContract$4> = {
|
|
2190
|
-
__type: 'service-plugin-definition';
|
|
2191
|
-
componentType: string;
|
|
2192
|
-
methods: ServicePluginMethodMetadata$4[];
|
|
2193
|
-
__contract: Contract;
|
|
2194
|
-
};
|
|
2195
|
-
declare function ServicePluginDefinition$4<Contract extends ServicePluginContract$4>(componentType: string, methods: ServicePluginMethodMetadata$4[]): ServicePluginDefinition$4<Contract>;
|
|
2196
|
-
type BuildServicePluginDefinition$4<T extends ServicePluginDefinition$4<any>> = (implementation: T['__contract']) => void;
|
|
2197
|
-
|
|
2198
|
-
declare global {
|
|
2199
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
2200
|
-
interface SymbolConstructor {
|
|
2201
|
-
readonly observable: symbol;
|
|
2202
|
-
}
|
|
2203
|
-
}
|
|
2204
|
-
|
|
2205
|
-
declare global {
|
|
2206
|
-
interface ContextualClient {
|
|
2207
|
-
}
|
|
2208
|
-
}
|
|
2209
|
-
|
|
2210
2074
|
interface CalculateAdditionalFeesEnvelope {
|
|
2211
2075
|
request: CalculateAdditionalFeesRequest;
|
|
2212
2076
|
metadata: Context$4;
|
|
2213
2077
|
}
|
|
2214
|
-
declare const provideHandlers$9: ServicePluginDefinition
|
|
2078
|
+
declare const provideHandlers$9: ServicePluginDefinition<{
|
|
2215
2079
|
/**
|
|
2216
2080
|
*
|
|
2217
2081
|
* This method retrieves additional fees calculated by your app.
|
|
@@ -2225,7 +2089,7 @@ declare const provideHandlers$9: ServicePluginDefinition$4<{
|
|
|
2225
2089
|
calculateAdditionalFees(payload: CalculateAdditionalFeesEnvelope): CalculateAdditionalFeesResponse | Promise<CalculateAdditionalFeesResponse>;
|
|
2226
2090
|
}>;
|
|
2227
2091
|
|
|
2228
|
-
declare function createServicePluginModule$4<T extends ServicePluginDefinition
|
|
2092
|
+
declare function createServicePluginModule$4<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
|
|
2229
2093
|
|
|
2230
2094
|
type _publicProvideHandlersType$4 = typeof provideHandlers$9;
|
|
2231
2095
|
declare const provideHandlers$8: ReturnType<typeof createServicePluginModule$4<_publicProvideHandlersType>>;
|
|
@@ -2376,40 +2240,6 @@ interface IdentificationDataIdOneOf$3 {
|
|
|
2376
2240
|
appId?: string;
|
|
2377
2241
|
}
|
|
2378
2242
|
|
|
2379
|
-
type ServicePluginMethodInput$3 = {
|
|
2380
|
-
request: any;
|
|
2381
|
-
metadata: any;
|
|
2382
|
-
};
|
|
2383
|
-
type ServicePluginContract$3 = Record<string, (payload: ServicePluginMethodInput$3) => unknown | Promise<unknown>>;
|
|
2384
|
-
type ServicePluginMethodMetadata$3 = {
|
|
2385
|
-
name: string;
|
|
2386
|
-
primaryHttpMappingPath: string;
|
|
2387
|
-
transformations: {
|
|
2388
|
-
fromREST: (...args: unknown[]) => ServicePluginMethodInput$3;
|
|
2389
|
-
toREST: (...args: unknown[]) => unknown;
|
|
2390
|
-
};
|
|
2391
|
-
};
|
|
2392
|
-
type ServicePluginDefinition$3<Contract extends ServicePluginContract$3> = {
|
|
2393
|
-
__type: 'service-plugin-definition';
|
|
2394
|
-
componentType: string;
|
|
2395
|
-
methods: ServicePluginMethodMetadata$3[];
|
|
2396
|
-
__contract: Contract;
|
|
2397
|
-
};
|
|
2398
|
-
declare function ServicePluginDefinition$3<Contract extends ServicePluginContract$3>(componentType: string, methods: ServicePluginMethodMetadata$3[]): ServicePluginDefinition$3<Contract>;
|
|
2399
|
-
type BuildServicePluginDefinition$3<T extends ServicePluginDefinition$3<any>> = (implementation: T['__contract']) => void;
|
|
2400
|
-
|
|
2401
|
-
declare global {
|
|
2402
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
2403
|
-
interface SymbolConstructor {
|
|
2404
|
-
readonly observable: symbol;
|
|
2405
|
-
}
|
|
2406
|
-
}
|
|
2407
|
-
|
|
2408
|
-
declare global {
|
|
2409
|
-
interface ContextualClient {
|
|
2410
|
-
}
|
|
2411
|
-
}
|
|
2412
|
-
|
|
2413
2243
|
interface ListTriggersEnvelope {
|
|
2414
2244
|
request: ListTriggersRequest;
|
|
2415
2245
|
metadata: Context$3;
|
|
@@ -2418,7 +2248,7 @@ interface GetEligibleTriggersEnvelope {
|
|
|
2418
2248
|
request: GetEligibleTriggersRequest;
|
|
2419
2249
|
metadata: Context$3;
|
|
2420
2250
|
}
|
|
2421
|
-
declare const provideHandlers$7: ServicePluginDefinition
|
|
2251
|
+
declare const provideHandlers$7: ServicePluginDefinition<{
|
|
2422
2252
|
/**
|
|
2423
2253
|
*
|
|
2424
2254
|
* Lists all custom triggers provided by your service plugin integration.
|
|
@@ -2434,7 +2264,7 @@ declare const provideHandlers$7: ServicePluginDefinition$3<{
|
|
|
2434
2264
|
getEligibleTriggers(payload: GetEligibleTriggersEnvelope): GetEligibleTriggersResponse | Promise<GetEligibleTriggersResponse>;
|
|
2435
2265
|
}>;
|
|
2436
2266
|
|
|
2437
|
-
declare function createServicePluginModule$3<T extends ServicePluginDefinition
|
|
2267
|
+
declare function createServicePluginModule$3<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
|
|
2438
2268
|
|
|
2439
2269
|
type _publicProvideHandlersType$3 = typeof provideHandlers$7;
|
|
2440
2270
|
declare const provideHandlers$6: ReturnType<typeof createServicePluginModule$3<_publicProvideHandlersType>>;
|
|
@@ -2654,45 +2484,11 @@ interface IdentificationDataIdOneOf$2 {
|
|
|
2654
2484
|
appId?: string;
|
|
2655
2485
|
}
|
|
2656
2486
|
|
|
2657
|
-
type ServicePluginMethodInput$2 = {
|
|
2658
|
-
request: any;
|
|
2659
|
-
metadata: any;
|
|
2660
|
-
};
|
|
2661
|
-
type ServicePluginContract$2 = Record<string, (payload: ServicePluginMethodInput$2) => unknown | Promise<unknown>>;
|
|
2662
|
-
type ServicePluginMethodMetadata$2 = {
|
|
2663
|
-
name: string;
|
|
2664
|
-
primaryHttpMappingPath: string;
|
|
2665
|
-
transformations: {
|
|
2666
|
-
fromREST: (...args: unknown[]) => ServicePluginMethodInput$2;
|
|
2667
|
-
toREST: (...args: unknown[]) => unknown;
|
|
2668
|
-
};
|
|
2669
|
-
};
|
|
2670
|
-
type ServicePluginDefinition$2<Contract extends ServicePluginContract$2> = {
|
|
2671
|
-
__type: 'service-plugin-definition';
|
|
2672
|
-
componentType: string;
|
|
2673
|
-
methods: ServicePluginMethodMetadata$2[];
|
|
2674
|
-
__contract: Contract;
|
|
2675
|
-
};
|
|
2676
|
-
declare function ServicePluginDefinition$2<Contract extends ServicePluginContract$2>(componentType: string, methods: ServicePluginMethodMetadata$2[]): ServicePluginDefinition$2<Contract>;
|
|
2677
|
-
type BuildServicePluginDefinition$2<T extends ServicePluginDefinition$2<any>> = (implementation: T['__contract']) => void;
|
|
2678
|
-
|
|
2679
|
-
declare global {
|
|
2680
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
2681
|
-
interface SymbolConstructor {
|
|
2682
|
-
readonly observable: symbol;
|
|
2683
|
-
}
|
|
2684
|
-
}
|
|
2685
|
-
|
|
2686
|
-
declare global {
|
|
2687
|
-
interface ContextualClient {
|
|
2688
|
-
}
|
|
2689
|
-
}
|
|
2690
|
-
|
|
2691
2487
|
interface GetEligibleDiscountsEnvelope {
|
|
2692
2488
|
request: GetEligibleDiscountsRequest;
|
|
2693
2489
|
metadata: Context$2;
|
|
2694
2490
|
}
|
|
2695
|
-
declare const provideHandlers$5: ServicePluginDefinition
|
|
2491
|
+
declare const provideHandlers$5: ServicePluginDefinition<{
|
|
2696
2492
|
/**
|
|
2697
2493
|
*
|
|
2698
2494
|
* Wix calls this method when certain actions are performed on the cart or checkout.
|
|
@@ -2700,7 +2496,7 @@ declare const provideHandlers$5: ServicePluginDefinition$2<{
|
|
|
2700
2496
|
getEligibleDiscounts(payload: GetEligibleDiscountsEnvelope): GetEligibleDiscountsResponse | Promise<GetEligibleDiscountsResponse>;
|
|
2701
2497
|
}>;
|
|
2702
2498
|
|
|
2703
|
-
declare function createServicePluginModule$2<T extends ServicePluginDefinition
|
|
2499
|
+
declare function createServicePluginModule$2<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
|
|
2704
2500
|
|
|
2705
2501
|
type _publicProvideHandlersType$2 = typeof provideHandlers$5;
|
|
2706
2502
|
declare const provideHandlers$4: ReturnType<typeof createServicePluginModule$2<_publicProvideHandlersType>>;
|
|
@@ -5556,40 +5352,6 @@ interface IdentificationDataIdOneOf$1 {
|
|
|
5556
5352
|
appId?: string;
|
|
5557
5353
|
}
|
|
5558
5354
|
|
|
5559
|
-
type ServicePluginMethodInput$1 = {
|
|
5560
|
-
request: any;
|
|
5561
|
-
metadata: any;
|
|
5562
|
-
};
|
|
5563
|
-
type ServicePluginContract$1 = Record<string, (payload: ServicePluginMethodInput$1) => unknown | Promise<unknown>>;
|
|
5564
|
-
type ServicePluginMethodMetadata$1 = {
|
|
5565
|
-
name: string;
|
|
5566
|
-
primaryHttpMappingPath: string;
|
|
5567
|
-
transformations: {
|
|
5568
|
-
fromREST: (...args: unknown[]) => ServicePluginMethodInput$1;
|
|
5569
|
-
toREST: (...args: unknown[]) => unknown;
|
|
5570
|
-
};
|
|
5571
|
-
};
|
|
5572
|
-
type ServicePluginDefinition$1<Contract extends ServicePluginContract$1> = {
|
|
5573
|
-
__type: 'service-plugin-definition';
|
|
5574
|
-
componentType: string;
|
|
5575
|
-
methods: ServicePluginMethodMetadata$1[];
|
|
5576
|
-
__contract: Contract;
|
|
5577
|
-
};
|
|
5578
|
-
declare function ServicePluginDefinition$1<Contract extends ServicePluginContract$1>(componentType: string, methods: ServicePluginMethodMetadata$1[]): ServicePluginDefinition$1<Contract>;
|
|
5579
|
-
type BuildServicePluginDefinition$1<T extends ServicePluginDefinition$1<any>> = (implementation: T['__contract']) => void;
|
|
5580
|
-
|
|
5581
|
-
declare global {
|
|
5582
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
5583
|
-
interface SymbolConstructor {
|
|
5584
|
-
readonly observable: symbol;
|
|
5585
|
-
}
|
|
5586
|
-
}
|
|
5587
|
-
|
|
5588
|
-
declare global {
|
|
5589
|
-
interface ContextualClient {
|
|
5590
|
-
}
|
|
5591
|
-
}
|
|
5592
|
-
|
|
5593
5355
|
interface GetPaymentSettingsEnvelope {
|
|
5594
5356
|
request: GetPaymentSettingsRequest;
|
|
5595
5357
|
metadata: Context$1;
|
|
@@ -5598,7 +5360,7 @@ interface GetPaymentSettingsForCheckoutEnvelope {
|
|
|
5598
5360
|
request: GetPaymentSettingsForCheckoutRequest;
|
|
5599
5361
|
metadata: Context$1;
|
|
5600
5362
|
}
|
|
5601
|
-
declare const provideHandlers$3: ServicePluginDefinition
|
|
5363
|
+
declare const provideHandlers$3: ServicePluginDefinition<{
|
|
5602
5364
|
/**
|
|
5603
5365
|
*
|
|
5604
5366
|
* This method retrieves payment settings from your app.
|
|
@@ -5611,7 +5373,7 @@ declare const provideHandlers$3: ServicePluginDefinition$1<{
|
|
|
5611
5373
|
getPaymentSettingsForCheckout(payload: GetPaymentSettingsForCheckoutEnvelope): GetPaymentSettingsForCheckoutResponse | Promise<GetPaymentSettingsForCheckoutResponse>;
|
|
5612
5374
|
}>;
|
|
5613
5375
|
|
|
5614
|
-
declare function createServicePluginModule$1<T extends ServicePluginDefinition
|
|
5376
|
+
declare function createServicePluginModule$1<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
|
|
5615
5377
|
|
|
5616
5378
|
type _publicProvideHandlersType$1 = typeof provideHandlers$3;
|
|
5617
5379
|
declare const provideHandlers$2: ReturnType<typeof createServicePluginModule$1<_publicProvideHandlersType>>;
|
|
@@ -6454,40 +6216,6 @@ interface IdentificationDataIdOneOf {
|
|
|
6454
6216
|
appId?: string;
|
|
6455
6217
|
}
|
|
6456
6218
|
|
|
6457
|
-
type ServicePluginMethodInput = {
|
|
6458
|
-
request: any;
|
|
6459
|
-
metadata: any;
|
|
6460
|
-
};
|
|
6461
|
-
type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
|
|
6462
|
-
type ServicePluginMethodMetadata = {
|
|
6463
|
-
name: string;
|
|
6464
|
-
primaryHttpMappingPath: string;
|
|
6465
|
-
transformations: {
|
|
6466
|
-
fromREST: (...args: unknown[]) => ServicePluginMethodInput;
|
|
6467
|
-
toREST: (...args: unknown[]) => unknown;
|
|
6468
|
-
};
|
|
6469
|
-
};
|
|
6470
|
-
type ServicePluginDefinition<Contract extends ServicePluginContract> = {
|
|
6471
|
-
__type: 'service-plugin-definition';
|
|
6472
|
-
componentType: string;
|
|
6473
|
-
methods: ServicePluginMethodMetadata[];
|
|
6474
|
-
__contract: Contract;
|
|
6475
|
-
};
|
|
6476
|
-
declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
|
|
6477
|
-
type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
|
|
6478
|
-
|
|
6479
|
-
declare global {
|
|
6480
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
6481
|
-
interface SymbolConstructor {
|
|
6482
|
-
readonly observable: symbol;
|
|
6483
|
-
}
|
|
6484
|
-
}
|
|
6485
|
-
|
|
6486
|
-
declare global {
|
|
6487
|
-
interface ContextualClient {
|
|
6488
|
-
}
|
|
6489
|
-
}
|
|
6490
|
-
|
|
6491
6219
|
interface GetValidationViolationsEnvelope {
|
|
6492
6220
|
request: GetValidationViolationsRequest;
|
|
6493
6221
|
metadata: Context;
|