@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.
- package/package.json +3 -3
- package/type-bundles/context.bundle.d.ts +1439 -12095
- package/type-bundles/index.bundle.d.ts +1439 -12095
- package/type-bundles/service-plugins-context.bundle.d.ts +78 -309
- package/type-bundles/service-plugins.bundle.d.ts +78 -309
|
@@ -129,26 +129,26 @@ interface IdentificationDataIdOneOf$7 {
|
|
|
129
129
|
appId?: string;
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
type ServicePluginMethodInput$
|
|
132
|
+
type ServicePluginMethodInput$8 = {
|
|
133
133
|
request: any;
|
|
134
134
|
metadata: any;
|
|
135
135
|
};
|
|
136
|
-
type ServicePluginContract$
|
|
137
|
-
type ServicePluginMethodMetadata$
|
|
136
|
+
type ServicePluginContract$8 = Record<string, (payload: ServicePluginMethodInput$8) => unknown | Promise<unknown>>;
|
|
137
|
+
type ServicePluginMethodMetadata$8 = {
|
|
138
138
|
name: string;
|
|
139
139
|
primaryHttpMappingPath: string;
|
|
140
140
|
transformations: {
|
|
141
|
-
fromREST: (...args: unknown[]) => ServicePluginMethodInput$
|
|
141
|
+
fromREST: (...args: unknown[]) => ServicePluginMethodInput$8;
|
|
142
142
|
toREST: (...args: unknown[]) => unknown;
|
|
143
143
|
};
|
|
144
144
|
};
|
|
145
|
-
type ServicePluginDefinition$
|
|
145
|
+
type ServicePluginDefinition$8<Contract extends ServicePluginContract$8> = {
|
|
146
146
|
__type: 'service-plugin-definition';
|
|
147
147
|
componentType: string;
|
|
148
|
-
methods: ServicePluginMethodMetadata$
|
|
148
|
+
methods: ServicePluginMethodMetadata$8[];
|
|
149
149
|
__contract: Contract;
|
|
150
150
|
};
|
|
151
|
-
declare function ServicePluginDefinition$
|
|
151
|
+
declare function ServicePluginDefinition$8<Contract extends ServicePluginContract$8>(componentType: string, methods: ServicePluginMethodMetadata$8[]): ServicePluginDefinition$8<Contract>;
|
|
152
152
|
|
|
153
153
|
declare global {
|
|
154
154
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -174,7 +174,7 @@ interface _voidEnvelope {
|
|
|
174
174
|
request: VoidRequest;
|
|
175
175
|
metadata: Context$7;
|
|
176
176
|
}
|
|
177
|
-
declare const provideHandlers$f: ServicePluginDefinition$
|
|
177
|
+
declare const provideHandlers$f: ServicePluginDefinition$8<{
|
|
178
178
|
/**
|
|
179
179
|
*
|
|
180
180
|
* This method retrieves gift card data from your app.
|
|
@@ -192,27 +192,27 @@ declare const provideHandlers$f: ServicePluginDefinition$f<{
|
|
|
192
192
|
_void(payload: _voidEnvelope): VoidResponse | Promise<VoidResponse>;
|
|
193
193
|
}>;
|
|
194
194
|
|
|
195
|
-
type ServicePluginMethodInput$
|
|
195
|
+
type ServicePluginMethodInput$7 = {
|
|
196
196
|
request: any;
|
|
197
197
|
metadata: any;
|
|
198
198
|
};
|
|
199
|
-
type ServicePluginContract$
|
|
200
|
-
type ServicePluginMethodMetadata$
|
|
199
|
+
type ServicePluginContract$7 = Record<string, (payload: ServicePluginMethodInput$7) => unknown | Promise<unknown>>;
|
|
200
|
+
type ServicePluginMethodMetadata$7 = {
|
|
201
201
|
name: string;
|
|
202
202
|
primaryHttpMappingPath: string;
|
|
203
203
|
transformations: {
|
|
204
|
-
fromREST: (...args: unknown[]) => ServicePluginMethodInput$
|
|
204
|
+
fromREST: (...args: unknown[]) => ServicePluginMethodInput$7;
|
|
205
205
|
toREST: (...args: unknown[]) => unknown;
|
|
206
206
|
};
|
|
207
207
|
};
|
|
208
|
-
type ServicePluginDefinition$
|
|
208
|
+
type ServicePluginDefinition$7<Contract extends ServicePluginContract$7> = {
|
|
209
209
|
__type: 'service-plugin-definition';
|
|
210
210
|
componentType: string;
|
|
211
|
-
methods: ServicePluginMethodMetadata$
|
|
211
|
+
methods: ServicePluginMethodMetadata$7[];
|
|
212
212
|
__contract: Contract;
|
|
213
213
|
};
|
|
214
|
-
declare function ServicePluginDefinition$
|
|
215
|
-
type BuildServicePluginDefinition$7<T extends ServicePluginDefinition$
|
|
214
|
+
declare function ServicePluginDefinition$7<Contract extends ServicePluginContract$7>(componentType: string, methods: ServicePluginMethodMetadata$7[]): ServicePluginDefinition$7<Contract>;
|
|
215
|
+
type BuildServicePluginDefinition$7<T extends ServicePluginDefinition$7<any>> = (implementation: T['__contract']) => void;
|
|
216
216
|
|
|
217
217
|
declare global {
|
|
218
218
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -221,7 +221,7 @@ declare global {
|
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
223
|
|
|
224
|
-
declare function createServicePluginModule$7<T extends ServicePluginDefinition$
|
|
224
|
+
declare function createServicePluginModule$7<T extends ServicePluginDefinition$7<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$7<T> & T;
|
|
225
225
|
|
|
226
226
|
type _publicProvideHandlersType$7 = typeof provideHandlers$f;
|
|
227
227
|
declare const provideHandlers$e: ReturnType<typeof createServicePluginModule$7<_publicProvideHandlersType>>;
|
|
@@ -521,44 +521,11 @@ interface IdentificationDataIdOneOf$6 {
|
|
|
521
521
|
appId?: string;
|
|
522
522
|
}
|
|
523
523
|
|
|
524
|
-
type ServicePluginMethodInput$d = {
|
|
525
|
-
request: any;
|
|
526
|
-
metadata: any;
|
|
527
|
-
};
|
|
528
|
-
type ServicePluginContract$d = Record<string, (payload: ServicePluginMethodInput$d) => unknown | Promise<unknown>>;
|
|
529
|
-
type ServicePluginMethodMetadata$d = {
|
|
530
|
-
name: string;
|
|
531
|
-
primaryHttpMappingPath: string;
|
|
532
|
-
transformations: {
|
|
533
|
-
fromREST: (...args: unknown[]) => ServicePluginMethodInput$d;
|
|
534
|
-
toREST: (...args: unknown[]) => unknown;
|
|
535
|
-
};
|
|
536
|
-
};
|
|
537
|
-
type ServicePluginDefinition$d<Contract extends ServicePluginContract$d> = {
|
|
538
|
-
__type: 'service-plugin-definition';
|
|
539
|
-
componentType: string;
|
|
540
|
-
methods: ServicePluginMethodMetadata$d[];
|
|
541
|
-
__contract: Contract;
|
|
542
|
-
};
|
|
543
|
-
declare function ServicePluginDefinition$d<Contract extends ServicePluginContract$d>(componentType: string, methods: ServicePluginMethodMetadata$d[]): ServicePluginDefinition$d<Contract>;
|
|
544
|
-
|
|
545
|
-
declare global {
|
|
546
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
547
|
-
interface SymbolConstructor {
|
|
548
|
-
readonly observable: symbol;
|
|
549
|
-
}
|
|
550
|
-
}
|
|
551
|
-
|
|
552
|
-
declare global {
|
|
553
|
-
interface ContextualClient {
|
|
554
|
-
}
|
|
555
|
-
}
|
|
556
|
-
|
|
557
524
|
interface GetRecommendationsEnvelope {
|
|
558
525
|
request: GetRecommendationsRequest;
|
|
559
526
|
metadata: Context$6;
|
|
560
527
|
}
|
|
561
|
-
declare const provideHandlers$d: ServicePluginDefinition$
|
|
528
|
+
declare const provideHandlers$d: ServicePluginDefinition$8<{
|
|
562
529
|
/**
|
|
563
530
|
*
|
|
564
531
|
* Returns lists of items recommended by each requested algorithm.
|
|
@@ -568,27 +535,27 @@ declare const provideHandlers$d: ServicePluginDefinition$d<{
|
|
|
568
535
|
getRecommendations(payload: GetRecommendationsEnvelope): GetRecommendationsResponse | Promise<GetRecommendationsResponse>;
|
|
569
536
|
}>;
|
|
570
537
|
|
|
571
|
-
type ServicePluginMethodInput$
|
|
538
|
+
type ServicePluginMethodInput$6 = {
|
|
572
539
|
request: any;
|
|
573
540
|
metadata: any;
|
|
574
541
|
};
|
|
575
|
-
type ServicePluginContract$
|
|
576
|
-
type ServicePluginMethodMetadata$
|
|
542
|
+
type ServicePluginContract$6 = Record<string, (payload: ServicePluginMethodInput$6) => unknown | Promise<unknown>>;
|
|
543
|
+
type ServicePluginMethodMetadata$6 = {
|
|
577
544
|
name: string;
|
|
578
545
|
primaryHttpMappingPath: string;
|
|
579
546
|
transformations: {
|
|
580
|
-
fromREST: (...args: unknown[]) => ServicePluginMethodInput$
|
|
547
|
+
fromREST: (...args: unknown[]) => ServicePluginMethodInput$6;
|
|
581
548
|
toREST: (...args: unknown[]) => unknown;
|
|
582
549
|
};
|
|
583
550
|
};
|
|
584
|
-
type ServicePluginDefinition$
|
|
551
|
+
type ServicePluginDefinition$6<Contract extends ServicePluginContract$6> = {
|
|
585
552
|
__type: 'service-plugin-definition';
|
|
586
553
|
componentType: string;
|
|
587
|
-
methods: ServicePluginMethodMetadata$
|
|
554
|
+
methods: ServicePluginMethodMetadata$6[];
|
|
588
555
|
__contract: Contract;
|
|
589
556
|
};
|
|
590
|
-
declare function ServicePluginDefinition$
|
|
591
|
-
type BuildServicePluginDefinition$6<T extends ServicePluginDefinition$
|
|
557
|
+
declare function ServicePluginDefinition$6<Contract extends ServicePluginContract$6>(componentType: string, methods: ServicePluginMethodMetadata$6[]): ServicePluginDefinition$6<Contract>;
|
|
558
|
+
type BuildServicePluginDefinition$6<T extends ServicePluginDefinition$6<any>> = (implementation: T['__contract']) => void;
|
|
592
559
|
|
|
593
560
|
declare global {
|
|
594
561
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -597,7 +564,7 @@ declare global {
|
|
|
597
564
|
}
|
|
598
565
|
}
|
|
599
566
|
|
|
600
|
-
declare function createServicePluginModule$6<T extends ServicePluginDefinition$
|
|
567
|
+
declare function createServicePluginModule$6<T extends ServicePluginDefinition$6<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$6<T> & T;
|
|
601
568
|
|
|
602
569
|
type _publicProvideHandlersType$6 = typeof provideHandlers$d;
|
|
603
570
|
declare const provideHandlers$c: ReturnType<typeof createServicePluginModule$6<_publicProvideHandlersType>>;
|
|
@@ -1094,44 +1061,11 @@ interface IdentificationDataIdOneOf$5 {
|
|
|
1094
1061
|
appId?: string;
|
|
1095
1062
|
}
|
|
1096
1063
|
|
|
1097
|
-
type ServicePluginMethodInput$b = {
|
|
1098
|
-
request: any;
|
|
1099
|
-
metadata: any;
|
|
1100
|
-
};
|
|
1101
|
-
type ServicePluginContract$b = Record<string, (payload: ServicePluginMethodInput$b) => unknown | Promise<unknown>>;
|
|
1102
|
-
type ServicePluginMethodMetadata$b = {
|
|
1103
|
-
name: string;
|
|
1104
|
-
primaryHttpMappingPath: string;
|
|
1105
|
-
transformations: {
|
|
1106
|
-
fromREST: (...args: unknown[]) => ServicePluginMethodInput$b;
|
|
1107
|
-
toREST: (...args: unknown[]) => unknown;
|
|
1108
|
-
};
|
|
1109
|
-
};
|
|
1110
|
-
type ServicePluginDefinition$b<Contract extends ServicePluginContract$b> = {
|
|
1111
|
-
__type: 'service-plugin-definition';
|
|
1112
|
-
componentType: string;
|
|
1113
|
-
methods: ServicePluginMethodMetadata$b[];
|
|
1114
|
-
__contract: Contract;
|
|
1115
|
-
};
|
|
1116
|
-
declare function ServicePluginDefinition$b<Contract extends ServicePluginContract$b>(componentType: string, methods: ServicePluginMethodMetadata$b[]): ServicePluginDefinition$b<Contract>;
|
|
1117
|
-
|
|
1118
|
-
declare global {
|
|
1119
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
1120
|
-
interface SymbolConstructor {
|
|
1121
|
-
readonly observable: symbol;
|
|
1122
|
-
}
|
|
1123
|
-
}
|
|
1124
|
-
|
|
1125
|
-
declare global {
|
|
1126
|
-
interface ContextualClient {
|
|
1127
|
-
}
|
|
1128
|
-
}
|
|
1129
|
-
|
|
1130
1064
|
interface GetShippingRatesEnvelope {
|
|
1131
1065
|
request: GetShippingRatesRequest;
|
|
1132
1066
|
metadata: Context$5;
|
|
1133
1067
|
}
|
|
1134
|
-
declare const provideHandlers$b: ServicePluginDefinition$
|
|
1068
|
+
declare const provideHandlers$b: ServicePluginDefinition$8<{
|
|
1135
1069
|
/**
|
|
1136
1070
|
*
|
|
1137
1071
|
* This method retrieves applicable shipping rates for a delivery from your app.
|
|
@@ -1140,27 +1074,27 @@ declare const provideHandlers$b: ServicePluginDefinition$b<{
|
|
|
1140
1074
|
getShippingRates(payload: GetShippingRatesEnvelope): GetShippingRatesResponse | Promise<GetShippingRatesResponse>;
|
|
1141
1075
|
}>;
|
|
1142
1076
|
|
|
1143
|
-
type ServicePluginMethodInput$
|
|
1077
|
+
type ServicePluginMethodInput$5 = {
|
|
1144
1078
|
request: any;
|
|
1145
1079
|
metadata: any;
|
|
1146
1080
|
};
|
|
1147
|
-
type ServicePluginContract$
|
|
1148
|
-
type ServicePluginMethodMetadata$
|
|
1081
|
+
type ServicePluginContract$5 = Record<string, (payload: ServicePluginMethodInput$5) => unknown | Promise<unknown>>;
|
|
1082
|
+
type ServicePluginMethodMetadata$5 = {
|
|
1149
1083
|
name: string;
|
|
1150
1084
|
primaryHttpMappingPath: string;
|
|
1151
1085
|
transformations: {
|
|
1152
|
-
fromREST: (...args: unknown[]) => ServicePluginMethodInput$
|
|
1086
|
+
fromREST: (...args: unknown[]) => ServicePluginMethodInput$5;
|
|
1153
1087
|
toREST: (...args: unknown[]) => unknown;
|
|
1154
1088
|
};
|
|
1155
1089
|
};
|
|
1156
|
-
type ServicePluginDefinition$
|
|
1090
|
+
type ServicePluginDefinition$5<Contract extends ServicePluginContract$5> = {
|
|
1157
1091
|
__type: 'service-plugin-definition';
|
|
1158
1092
|
componentType: string;
|
|
1159
|
-
methods: ServicePluginMethodMetadata$
|
|
1093
|
+
methods: ServicePluginMethodMetadata$5[];
|
|
1160
1094
|
__contract: Contract;
|
|
1161
1095
|
};
|
|
1162
|
-
declare function ServicePluginDefinition$
|
|
1163
|
-
type BuildServicePluginDefinition$5<T extends ServicePluginDefinition$
|
|
1096
|
+
declare function ServicePluginDefinition$5<Contract extends ServicePluginContract$5>(componentType: string, methods: ServicePluginMethodMetadata$5[]): ServicePluginDefinition$5<Contract>;
|
|
1097
|
+
type BuildServicePluginDefinition$5<T extends ServicePluginDefinition$5<any>> = (implementation: T['__contract']) => void;
|
|
1164
1098
|
|
|
1165
1099
|
declare global {
|
|
1166
1100
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -1169,7 +1103,7 @@ declare global {
|
|
|
1169
1103
|
}
|
|
1170
1104
|
}
|
|
1171
1105
|
|
|
1172
|
-
declare function createServicePluginModule$5<T extends ServicePluginDefinition$
|
|
1106
|
+
declare function createServicePluginModule$5<T extends ServicePluginDefinition$5<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$5<T> & T;
|
|
1173
1107
|
|
|
1174
1108
|
type _publicProvideHandlersType$5 = typeof provideHandlers$b;
|
|
1175
1109
|
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$
|
|
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$
|
|
1638
|
+
type ServicePluginMethodInput$4 = {
|
|
1738
1639
|
request: any;
|
|
1739
1640
|
metadata: any;
|
|
1740
1641
|
};
|
|
1741
|
-
type ServicePluginContract$
|
|
1742
|
-
type ServicePluginMethodMetadata$
|
|
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$
|
|
1647
|
+
fromREST: (...args: unknown[]) => ServicePluginMethodInput$4;
|
|
1747
1648
|
toREST: (...args: unknown[]) => unknown;
|
|
1748
1649
|
};
|
|
1749
1650
|
};
|
|
1750
|
-
type ServicePluginDefinition$
|
|
1651
|
+
type ServicePluginDefinition$4<Contract extends ServicePluginContract$4> = {
|
|
1751
1652
|
__type: 'service-plugin-definition';
|
|
1752
1653
|
componentType: string;
|
|
1753
|
-
methods: ServicePluginMethodMetadata$
|
|
1654
|
+
methods: ServicePluginMethodMetadata$4[];
|
|
1754
1655
|
__contract: Contract;
|
|
1755
1656
|
};
|
|
1756
|
-
declare function ServicePluginDefinition$
|
|
1757
|
-
type BuildServicePluginDefinition$4<T extends ServicePluginDefinition$
|
|
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$
|
|
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$
|
|
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$
|
|
1842
|
+
type ServicePluginMethodInput$3 = {
|
|
1975
1843
|
request: any;
|
|
1976
1844
|
metadata: any;
|
|
1977
1845
|
};
|
|
1978
|
-
type ServicePluginContract$
|
|
1979
|
-
type ServicePluginMethodMetadata$
|
|
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$
|
|
1851
|
+
fromREST: (...args: unknown[]) => ServicePluginMethodInput$3;
|
|
1984
1852
|
toREST: (...args: unknown[]) => unknown;
|
|
1985
1853
|
};
|
|
1986
1854
|
};
|
|
1987
|
-
type ServicePluginDefinition$
|
|
1855
|
+
type ServicePluginDefinition$3<Contract extends ServicePluginContract$3> = {
|
|
1988
1856
|
__type: 'service-plugin-definition';
|
|
1989
1857
|
componentType: string;
|
|
1990
|
-
methods: ServicePluginMethodMetadata$
|
|
1858
|
+
methods: ServicePluginMethodMetadata$3[];
|
|
1991
1859
|
__contract: Contract;
|
|
1992
1860
|
};
|
|
1993
|
-
declare function ServicePluginDefinition$
|
|
1994
|
-
type BuildServicePluginDefinition$3<T extends ServicePluginDefinition$
|
|
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$
|
|
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>>;
|
|
@@ -2220,44 +2088,11 @@ interface IdentificationDataIdOneOf$2 {
|
|
|
2220
2088
|
appId?: string;
|
|
2221
2089
|
}
|
|
2222
2090
|
|
|
2223
|
-
type ServicePluginMethodInput$5 = {
|
|
2224
|
-
request: any;
|
|
2225
|
-
metadata: any;
|
|
2226
|
-
};
|
|
2227
|
-
type ServicePluginContract$5 = Record<string, (payload: ServicePluginMethodInput$5) => unknown | Promise<unknown>>;
|
|
2228
|
-
type ServicePluginMethodMetadata$5 = {
|
|
2229
|
-
name: string;
|
|
2230
|
-
primaryHttpMappingPath: string;
|
|
2231
|
-
transformations: {
|
|
2232
|
-
fromREST: (...args: unknown[]) => ServicePluginMethodInput$5;
|
|
2233
|
-
toREST: (...args: unknown[]) => unknown;
|
|
2234
|
-
};
|
|
2235
|
-
};
|
|
2236
|
-
type ServicePluginDefinition$5<Contract extends ServicePluginContract$5> = {
|
|
2237
|
-
__type: 'service-plugin-definition';
|
|
2238
|
-
componentType: string;
|
|
2239
|
-
methods: ServicePluginMethodMetadata$5[];
|
|
2240
|
-
__contract: Contract;
|
|
2241
|
-
};
|
|
2242
|
-
declare function ServicePluginDefinition$5<Contract extends ServicePluginContract$5>(componentType: string, methods: ServicePluginMethodMetadata$5[]): ServicePluginDefinition$5<Contract>;
|
|
2243
|
-
|
|
2244
|
-
declare global {
|
|
2245
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
2246
|
-
interface SymbolConstructor {
|
|
2247
|
-
readonly observable: symbol;
|
|
2248
|
-
}
|
|
2249
|
-
}
|
|
2250
|
-
|
|
2251
|
-
declare global {
|
|
2252
|
-
interface ContextualClient {
|
|
2253
|
-
}
|
|
2254
|
-
}
|
|
2255
|
-
|
|
2256
2091
|
interface GetEligibleDiscountsEnvelope {
|
|
2257
2092
|
request: GetEligibleDiscountsRequest;
|
|
2258
2093
|
metadata: Context$2;
|
|
2259
2094
|
}
|
|
2260
|
-
declare const provideHandlers$5: ServicePluginDefinition$
|
|
2095
|
+
declare const provideHandlers$5: ServicePluginDefinition$8<{
|
|
2261
2096
|
/**
|
|
2262
2097
|
*
|
|
2263
2098
|
* Wix calls this method when certain actions are performed on the cart or checkout.
|
|
@@ -2265,27 +2100,27 @@ declare const provideHandlers$5: ServicePluginDefinition$5<{
|
|
|
2265
2100
|
getEligibleDiscounts(payload: GetEligibleDiscountsEnvelope): GetEligibleDiscountsResponse | Promise<GetEligibleDiscountsResponse>;
|
|
2266
2101
|
}>;
|
|
2267
2102
|
|
|
2268
|
-
type ServicePluginMethodInput$
|
|
2103
|
+
type ServicePluginMethodInput$2 = {
|
|
2269
2104
|
request: any;
|
|
2270
2105
|
metadata: any;
|
|
2271
2106
|
};
|
|
2272
|
-
type ServicePluginContract$
|
|
2273
|
-
type ServicePluginMethodMetadata$
|
|
2107
|
+
type ServicePluginContract$2 = Record<string, (payload: ServicePluginMethodInput$2) => unknown | Promise<unknown>>;
|
|
2108
|
+
type ServicePluginMethodMetadata$2 = {
|
|
2274
2109
|
name: string;
|
|
2275
2110
|
primaryHttpMappingPath: string;
|
|
2276
2111
|
transformations: {
|
|
2277
|
-
fromREST: (...args: unknown[]) => ServicePluginMethodInput$
|
|
2112
|
+
fromREST: (...args: unknown[]) => ServicePluginMethodInput$2;
|
|
2278
2113
|
toREST: (...args: unknown[]) => unknown;
|
|
2279
2114
|
};
|
|
2280
2115
|
};
|
|
2281
|
-
type ServicePluginDefinition$
|
|
2116
|
+
type ServicePluginDefinition$2<Contract extends ServicePluginContract$2> = {
|
|
2282
2117
|
__type: 'service-plugin-definition';
|
|
2283
2118
|
componentType: string;
|
|
2284
|
-
methods: ServicePluginMethodMetadata$
|
|
2119
|
+
methods: ServicePluginMethodMetadata$2[];
|
|
2285
2120
|
__contract: Contract;
|
|
2286
2121
|
};
|
|
2287
|
-
declare function ServicePluginDefinition$
|
|
2288
|
-
type BuildServicePluginDefinition$2<T extends ServicePluginDefinition$
|
|
2122
|
+
declare function ServicePluginDefinition$2<Contract extends ServicePluginContract$2>(componentType: string, methods: ServicePluginMethodMetadata$2[]): ServicePluginDefinition$2<Contract>;
|
|
2123
|
+
type BuildServicePluginDefinition$2<T extends ServicePluginDefinition$2<any>> = (implementation: T['__contract']) => void;
|
|
2289
2124
|
|
|
2290
2125
|
declare global {
|
|
2291
2126
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -2294,7 +2129,7 @@ declare global {
|
|
|
2294
2129
|
}
|
|
2295
2130
|
}
|
|
2296
2131
|
|
|
2297
|
-
declare function createServicePluginModule$2<T extends ServicePluginDefinition$
|
|
2132
|
+
declare function createServicePluginModule$2<T extends ServicePluginDefinition$2<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$2<T> & T;
|
|
2298
2133
|
|
|
2299
2134
|
type _publicProvideHandlersType$2 = typeof provideHandlers$5;
|
|
2300
2135
|
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$
|
|
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$
|
|
4960
|
+
type ServicePluginMethodInput$1 = {
|
|
5159
4961
|
request: any;
|
|
5160
4962
|
metadata: any;
|
|
5161
4963
|
};
|
|
5162
|
-
type ServicePluginContract$
|
|
5163
|
-
type ServicePluginMethodMetadata$
|
|
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$
|
|
4969
|
+
fromREST: (...args: unknown[]) => ServicePluginMethodInput$1;
|
|
5168
4970
|
toREST: (...args: unknown[]) => unknown;
|
|
5169
4971
|
};
|
|
5170
4972
|
};
|
|
5171
|
-
type ServicePluginDefinition$
|
|
4973
|
+
type ServicePluginDefinition$1<Contract extends ServicePluginContract$1> = {
|
|
5172
4974
|
__type: 'service-plugin-definition';
|
|
5173
4975
|
componentType: string;
|
|
5174
|
-
methods: ServicePluginMethodMetadata$
|
|
4976
|
+
methods: ServicePluginMethodMetadata$1[];
|
|
5175
4977
|
__contract: Contract;
|
|
5176
4978
|
};
|
|
5177
|
-
declare function ServicePluginDefinition$
|
|
5178
|
-
type BuildServicePluginDefinition$1<T extends ServicePluginDefinition$
|
|
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$
|
|
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$
|
|
5827
|
+
declare const provideHandlers$1: ServicePluginDefinition$8<{
|
|
6059
5828
|
/**
|
|
6060
5829
|
*
|
|
6061
5830
|
* This method retrieves validation violations from your app.
|