@wix/ecom 1.0.785 → 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.
@@ -258,26 +258,27 @@ declare class AlreadyVoidedWixError extends Error {
258
258
  static readonly __type = "wix_spi_error";
259
259
  }
260
260
 
261
- type ServicePluginMethodInput$9 = {
261
+ type ServicePluginMethodInput = {
262
262
  request: any;
263
263
  metadata: any;
264
264
  };
265
- type ServicePluginContract$9 = Record<string, (payload: ServicePluginMethodInput$9) => unknown | Promise<unknown>>;
266
- type ServicePluginMethodMetadata$9 = {
265
+ type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
266
+ type ServicePluginMethodMetadata = {
267
267
  name: string;
268
268
  primaryHttpMappingPath: string;
269
269
  transformations: {
270
- fromREST: (...args: unknown[]) => ServicePluginMethodInput$9;
270
+ fromREST: (...args: unknown[]) => ServicePluginMethodInput;
271
271
  toREST: (...args: unknown[]) => unknown;
272
272
  };
273
273
  };
274
- type ServicePluginDefinition$9<Contract extends ServicePluginContract$9> = {
274
+ type ServicePluginDefinition<Contract extends ServicePluginContract> = {
275
275
  __type: 'service-plugin-definition';
276
276
  componentType: string;
277
- methods: ServicePluginMethodMetadata$9[];
277
+ methods: ServicePluginMethodMetadata[];
278
278
  __contract: Contract;
279
279
  };
280
- declare function ServicePluginDefinition$9<Contract extends ServicePluginContract$9>(componentType: string, methods: ServicePluginMethodMetadata$9[]): ServicePluginDefinition$9<Contract>;
280
+ declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
281
+ type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
281
282
 
282
283
  declare global {
283
284
  // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
@@ -303,7 +304,7 @@ interface _voidEnvelope {
303
304
  request: VoidRequest;
304
305
  metadata: Context$8;
305
306
  }
306
- declare const provideHandlers$h: ServicePluginDefinition$9<{
307
+ declare const provideHandlers$h: ServicePluginDefinition<{
307
308
  /**
308
309
  *
309
310
  * This method retrieves gift card data from your app.
@@ -321,36 +322,7 @@ declare const provideHandlers$h: ServicePluginDefinition$9<{
321
322
  _void(payload: _voidEnvelope): VoidResponse | Promise<VoidResponse>;
322
323
  }>;
323
324
 
324
- type ServicePluginMethodInput$8 = {
325
- request: any;
326
- metadata: any;
327
- };
328
- type ServicePluginContract$8 = Record<string, (payload: ServicePluginMethodInput$8) => unknown | Promise<unknown>>;
329
- type ServicePluginMethodMetadata$8 = {
330
- name: string;
331
- primaryHttpMappingPath: string;
332
- transformations: {
333
- fromREST: (...args: unknown[]) => ServicePluginMethodInput$8;
334
- toREST: (...args: unknown[]) => unknown;
335
- };
336
- };
337
- type ServicePluginDefinition$8<Contract extends ServicePluginContract$8> = {
338
- __type: 'service-plugin-definition';
339
- componentType: string;
340
- methods: ServicePluginMethodMetadata$8[];
341
- __contract: Contract;
342
- };
343
- declare function ServicePluginDefinition$8<Contract extends ServicePluginContract$8>(componentType: string, methods: ServicePluginMethodMetadata$8[]): ServicePluginDefinition$8<Contract>;
344
- type BuildServicePluginDefinition$8<T extends ServicePluginDefinition$8<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$8<T extends ServicePluginDefinition$8<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$8<T> & T;
325
+ declare function createServicePluginModule$8<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
354
326
 
355
327
  type _publicProvideHandlersType$8 = typeof provideHandlers$h;
356
328
  declare const provideHandlers$g: ReturnType<typeof createServicePluginModule$8<_publicProvideHandlersType>>;
@@ -854,7 +826,7 @@ interface VoidMembershipChargeEnvelope {
854
826
  request: VoidMembershipChargeRequest;
855
827
  metadata: Context$7;
856
828
  }
857
- declare const provideHandlers$f: ServicePluginDefinition$9<{
829
+ declare const provideHandlers$f: ServicePluginDefinition<{
858
830
  /**
859
831
  *
860
832
  * This method retrieves eligible memberships from your app. */
@@ -873,36 +845,7 @@ declare const provideHandlers$f: ServicePluginDefinition$9<{
873
845
  voidMembershipCharge(payload: VoidMembershipChargeEnvelope): VoidMembershipChargeResponse | Promise<VoidMembershipChargeResponse>;
874
846
  }>;
875
847
 
876
- type ServicePluginMethodInput$7 = {
877
- request: any;
878
- metadata: any;
879
- };
880
- type ServicePluginContract$7 = Record<string, (payload: ServicePluginMethodInput$7) => unknown | Promise<unknown>>;
881
- type ServicePluginMethodMetadata$7 = {
882
- name: string;
883
- primaryHttpMappingPath: string;
884
- transformations: {
885
- fromREST: (...args: unknown[]) => ServicePluginMethodInput$7;
886
- toREST: (...args: unknown[]) => unknown;
887
- };
888
- };
889
- type ServicePluginDefinition$7<Contract extends ServicePluginContract$7> = {
890
- __type: 'service-plugin-definition';
891
- componentType: string;
892
- methods: ServicePluginMethodMetadata$7[];
893
- __contract: Contract;
894
- };
895
- declare function ServicePluginDefinition$7<Contract extends ServicePluginContract$7>(componentType: string, methods: ServicePluginMethodMetadata$7[]): ServicePluginDefinition$7<Contract>;
896
- type BuildServicePluginDefinition$7<T extends ServicePluginDefinition$7<any>> = (implementation: T['__contract']) => void;
897
-
898
- declare global {
899
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
900
- interface SymbolConstructor {
901
- readonly observable: symbol;
902
- }
903
- }
904
-
905
- declare function createServicePluginModule$7<T extends ServicePluginDefinition$7<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$7<T> & T;
848
+ declare function createServicePluginModule$7<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
906
849
 
907
850
  type _publicProvideHandlersType$7 = typeof provideHandlers$f;
908
851
  declare const provideHandlers$e: ReturnType<typeof createServicePluginModule$7<_publicProvideHandlersType>>;
@@ -1123,7 +1066,7 @@ interface GetRecommendationsEnvelope {
1123
1066
  request: GetRecommendationsRequest;
1124
1067
  metadata: Context$6;
1125
1068
  }
1126
- declare const provideHandlers$d: ServicePluginDefinition$9<{
1069
+ declare const provideHandlers$d: ServicePluginDefinition<{
1127
1070
  /**
1128
1071
  *
1129
1072
  * Returns lists of items recommended by each requested algorithm.
@@ -1133,36 +1076,7 @@ declare const provideHandlers$d: ServicePluginDefinition$9<{
1133
1076
  getRecommendations(payload: GetRecommendationsEnvelope): GetRecommendationsResponse | Promise<GetRecommendationsResponse>;
1134
1077
  }>;
1135
1078
 
1136
- type ServicePluginMethodInput$6 = {
1137
- request: any;
1138
- metadata: any;
1139
- };
1140
- type ServicePluginContract$6 = Record<string, (payload: ServicePluginMethodInput$6) => unknown | Promise<unknown>>;
1141
- type ServicePluginMethodMetadata$6 = {
1142
- name: string;
1143
- primaryHttpMappingPath: string;
1144
- transformations: {
1145
- fromREST: (...args: unknown[]) => ServicePluginMethodInput$6;
1146
- toREST: (...args: unknown[]) => unknown;
1147
- };
1148
- };
1149
- type ServicePluginDefinition$6<Contract extends ServicePluginContract$6> = {
1150
- __type: 'service-plugin-definition';
1151
- componentType: string;
1152
- methods: ServicePluginMethodMetadata$6[];
1153
- __contract: Contract;
1154
- };
1155
- declare function ServicePluginDefinition$6<Contract extends ServicePluginContract$6>(componentType: string, methods: ServicePluginMethodMetadata$6[]): ServicePluginDefinition$6<Contract>;
1156
- type BuildServicePluginDefinition$6<T extends ServicePluginDefinition$6<any>> = (implementation: T['__contract']) => void;
1157
-
1158
- declare global {
1159
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
1160
- interface SymbolConstructor {
1161
- readonly observable: symbol;
1162
- }
1163
- }
1164
-
1165
- declare function createServicePluginModule$6<T extends ServicePluginDefinition$6<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$6<T> & T;
1079
+ declare function createServicePluginModule$6<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
1166
1080
 
1167
1081
  type _publicProvideHandlersType$6 = typeof provideHandlers$d;
1168
1082
  declare const provideHandlers$c: ReturnType<typeof createServicePluginModule$6<_publicProvideHandlersType>>;
@@ -1729,7 +1643,7 @@ interface GetShippingRatesEnvelope {
1729
1643
  request: GetShippingRatesRequest;
1730
1644
  metadata: Context$5;
1731
1645
  }
1732
- declare const provideHandlers$b: ServicePluginDefinition$9<{
1646
+ declare const provideHandlers$b: ServicePluginDefinition<{
1733
1647
  /**
1734
1648
  *
1735
1649
  * This method retrieves applicable shipping rates for a delivery from your app.
@@ -1740,36 +1654,7 @@ declare const provideHandlers$b: ServicePluginDefinition$9<{
1740
1654
  getShippingRates(payload: GetShippingRatesEnvelope): GetShippingRatesResponse | Promise<GetShippingRatesResponse>;
1741
1655
  }>;
1742
1656
 
1743
- type ServicePluginMethodInput$5 = {
1744
- request: any;
1745
- metadata: any;
1746
- };
1747
- type ServicePluginContract$5 = Record<string, (payload: ServicePluginMethodInput$5) => unknown | Promise<unknown>>;
1748
- type ServicePluginMethodMetadata$5 = {
1749
- name: string;
1750
- primaryHttpMappingPath: string;
1751
- transformations: {
1752
- fromREST: (...args: unknown[]) => ServicePluginMethodInput$5;
1753
- toREST: (...args: unknown[]) => unknown;
1754
- };
1755
- };
1756
- type ServicePluginDefinition$5<Contract extends ServicePluginContract$5> = {
1757
- __type: 'service-plugin-definition';
1758
- componentType: string;
1759
- methods: ServicePluginMethodMetadata$5[];
1760
- __contract: Contract;
1761
- };
1762
- declare function ServicePluginDefinition$5<Contract extends ServicePluginContract$5>(componentType: string, methods: ServicePluginMethodMetadata$5[]): ServicePluginDefinition$5<Contract>;
1763
- type BuildServicePluginDefinition$5<T extends ServicePluginDefinition$5<any>> = (implementation: T['__contract']) => void;
1764
-
1765
- declare global {
1766
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
1767
- interface SymbolConstructor {
1768
- readonly observable: symbol;
1769
- }
1770
- }
1771
-
1772
- declare function createServicePluginModule$5<T extends ServicePluginDefinition$5<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$5<T> & T;
1657
+ declare function createServicePluginModule$5<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
1773
1658
 
1774
1659
  type _publicProvideHandlersType$5 = typeof provideHandlers$b;
1775
1660
  declare const provideHandlers$a: ReturnType<typeof createServicePluginModule$5<_publicProvideHandlersType>>;
@@ -2190,7 +2075,7 @@ interface CalculateAdditionalFeesEnvelope {
2190
2075
  request: CalculateAdditionalFeesRequest;
2191
2076
  metadata: Context$4;
2192
2077
  }
2193
- declare const provideHandlers$9: ServicePluginDefinition$9<{
2078
+ declare const provideHandlers$9: ServicePluginDefinition<{
2194
2079
  /**
2195
2080
  *
2196
2081
  * This method retrieves additional fees calculated by your app.
@@ -2204,36 +2089,7 @@ declare const provideHandlers$9: ServicePluginDefinition$9<{
2204
2089
  calculateAdditionalFees(payload: CalculateAdditionalFeesEnvelope): CalculateAdditionalFeesResponse | Promise<CalculateAdditionalFeesResponse>;
2205
2090
  }>;
2206
2091
 
2207
- type ServicePluginMethodInput$4 = {
2208
- request: any;
2209
- metadata: any;
2210
- };
2211
- type ServicePluginContract$4 = Record<string, (payload: ServicePluginMethodInput$4) => unknown | Promise<unknown>>;
2212
- type ServicePluginMethodMetadata$4 = {
2213
- name: string;
2214
- primaryHttpMappingPath: string;
2215
- transformations: {
2216
- fromREST: (...args: unknown[]) => ServicePluginMethodInput$4;
2217
- toREST: (...args: unknown[]) => unknown;
2218
- };
2219
- };
2220
- type ServicePluginDefinition$4<Contract extends ServicePluginContract$4> = {
2221
- __type: 'service-plugin-definition';
2222
- componentType: string;
2223
- methods: ServicePluginMethodMetadata$4[];
2224
- __contract: Contract;
2225
- };
2226
- declare function ServicePluginDefinition$4<Contract extends ServicePluginContract$4>(componentType: string, methods: ServicePluginMethodMetadata$4[]): ServicePluginDefinition$4<Contract>;
2227
- type BuildServicePluginDefinition$4<T extends ServicePluginDefinition$4<any>> = (implementation: T['__contract']) => void;
2228
-
2229
- declare global {
2230
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
2231
- interface SymbolConstructor {
2232
- readonly observable: symbol;
2233
- }
2234
- }
2235
-
2236
- declare function createServicePluginModule$4<T extends ServicePluginDefinition$4<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$4<T> & T;
2092
+ declare function createServicePluginModule$4<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
2237
2093
 
2238
2094
  type _publicProvideHandlersType$4 = typeof provideHandlers$9;
2239
2095
  declare const provideHandlers$8: ReturnType<typeof createServicePluginModule$4<_publicProvideHandlersType>>;
@@ -2392,7 +2248,7 @@ interface GetEligibleTriggersEnvelope {
2392
2248
  request: GetEligibleTriggersRequest;
2393
2249
  metadata: Context$3;
2394
2250
  }
2395
- declare const provideHandlers$7: ServicePluginDefinition$9<{
2251
+ declare const provideHandlers$7: ServicePluginDefinition<{
2396
2252
  /**
2397
2253
  *
2398
2254
  * Lists all custom triggers provided by your service plugin integration.
@@ -2408,36 +2264,7 @@ declare const provideHandlers$7: ServicePluginDefinition$9<{
2408
2264
  getEligibleTriggers(payload: GetEligibleTriggersEnvelope): GetEligibleTriggersResponse | Promise<GetEligibleTriggersResponse>;
2409
2265
  }>;
2410
2266
 
2411
- type ServicePluginMethodInput$3 = {
2412
- request: any;
2413
- metadata: any;
2414
- };
2415
- type ServicePluginContract$3 = Record<string, (payload: ServicePluginMethodInput$3) => unknown | Promise<unknown>>;
2416
- type ServicePluginMethodMetadata$3 = {
2417
- name: string;
2418
- primaryHttpMappingPath: string;
2419
- transformations: {
2420
- fromREST: (...args: unknown[]) => ServicePluginMethodInput$3;
2421
- toREST: (...args: unknown[]) => unknown;
2422
- };
2423
- };
2424
- type ServicePluginDefinition$3<Contract extends ServicePluginContract$3> = {
2425
- __type: 'service-plugin-definition';
2426
- componentType: string;
2427
- methods: ServicePluginMethodMetadata$3[];
2428
- __contract: Contract;
2429
- };
2430
- declare function ServicePluginDefinition$3<Contract extends ServicePluginContract$3>(componentType: string, methods: ServicePluginMethodMetadata$3[]): ServicePluginDefinition$3<Contract>;
2431
- type BuildServicePluginDefinition$3<T extends ServicePluginDefinition$3<any>> = (implementation: T['__contract']) => void;
2432
-
2433
- declare global {
2434
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
2435
- interface SymbolConstructor {
2436
- readonly observable: symbol;
2437
- }
2438
- }
2439
-
2440
- declare function createServicePluginModule$3<T extends ServicePluginDefinition$3<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$3<T> & T;
2267
+ declare function createServicePluginModule$3<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
2441
2268
 
2442
2269
  type _publicProvideHandlersType$3 = typeof provideHandlers$7;
2443
2270
  declare const provideHandlers$6: ReturnType<typeof createServicePluginModule$3<_publicProvideHandlersType>>;
@@ -2740,7 +2567,7 @@ interface GetEligibleDiscountsEnvelope {
2740
2567
  request: GetEligibleDiscountsRequest;
2741
2568
  metadata: Context$2;
2742
2569
  }
2743
- declare const provideHandlers$5: ServicePluginDefinition$9<{
2570
+ declare const provideHandlers$5: ServicePluginDefinition<{
2744
2571
  /**
2745
2572
  *
2746
2573
  * Wix calls this method when certain actions are performed on the cart or checkout.
@@ -2748,36 +2575,7 @@ declare const provideHandlers$5: ServicePluginDefinition$9<{
2748
2575
  getEligibleDiscounts(payload: GetEligibleDiscountsEnvelope): GetEligibleDiscountsResponse | Promise<GetEligibleDiscountsResponse>;
2749
2576
  }>;
2750
2577
 
2751
- type ServicePluginMethodInput$2 = {
2752
- request: any;
2753
- metadata: any;
2754
- };
2755
- type ServicePluginContract$2 = Record<string, (payload: ServicePluginMethodInput$2) => unknown | Promise<unknown>>;
2756
- type ServicePluginMethodMetadata$2 = {
2757
- name: string;
2758
- primaryHttpMappingPath: string;
2759
- transformations: {
2760
- fromREST: (...args: unknown[]) => ServicePluginMethodInput$2;
2761
- toREST: (...args: unknown[]) => unknown;
2762
- };
2763
- };
2764
- type ServicePluginDefinition$2<Contract extends ServicePluginContract$2> = {
2765
- __type: 'service-plugin-definition';
2766
- componentType: string;
2767
- methods: ServicePluginMethodMetadata$2[];
2768
- __contract: Contract;
2769
- };
2770
- declare function ServicePluginDefinition$2<Contract extends ServicePluginContract$2>(componentType: string, methods: ServicePluginMethodMetadata$2[]): ServicePluginDefinition$2<Contract>;
2771
- type BuildServicePluginDefinition$2<T extends ServicePluginDefinition$2<any>> = (implementation: T['__contract']) => void;
2772
-
2773
- declare global {
2774
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
2775
- interface SymbolConstructor {
2776
- readonly observable: symbol;
2777
- }
2778
- }
2779
-
2780
- declare function createServicePluginModule$2<T extends ServicePluginDefinition$2<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$2<T> & T;
2578
+ declare function createServicePluginModule$2<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
2781
2579
 
2782
2580
  type _publicProvideHandlersType$2 = typeof provideHandlers$5;
2783
2581
  declare const provideHandlers$4: ReturnType<typeof createServicePluginModule$2<_publicProvideHandlersType>>;
@@ -3363,13 +3161,7 @@ declare enum PaymentStatus {
3363
3161
  /** Payments received but not yet confirmed by the payment provider */
3364
3162
  PENDING = "PENDING",
3365
3163
  /** At least one payment was received and approved, covering less than total price amount */
3366
- PARTIALLY_PAID = "PARTIALLY_PAID",
3367
- /** Payment received but not yet confirmed by the payment provider and waits for some user action */
3368
- PENDING_MERCHANT = "PENDING_MERCHANT",
3369
- /** Payment was canceled by user on payment provider side */
3370
- CANCELED = "CANCELED",
3371
- /** Payment was declined by payment provider */
3372
- DECLINED = "DECLINED"
3164
+ PARTIALLY_PAID = "PARTIALLY_PAID"
3373
3165
  }
3374
3166
  declare enum FulfillmentStatus {
3375
3167
  /** none of the order items are fulfilled or order was manually marked as unfulfilled */
@@ -3576,9 +3368,7 @@ interface ShippingRegion {
3576
3368
  declare enum OrderStatus {
3577
3369
  INITIALIZED = "INITIALIZED",
3578
3370
  APPROVED = "APPROVED",
3579
- CANCELED = "CANCELED",
3580
- PENDING = "PENDING",
3581
- REJECTED = "REJECTED"
3371
+ CANCELED = "CANCELED"
3582
3372
  }
3583
3373
  interface TaxSummary {
3584
3374
  /**
@@ -4060,17 +3850,7 @@ declare enum ActivityType {
4060
3850
  NEW_EXCHANGE_ORDER_CREATED = "NEW_EXCHANGE_ORDER_CREATED",
4061
3851
  ORDER_PARTIALLY_PAID = "ORDER_PARTIALLY_PAID",
4062
3852
  DRAFT_ORDER_CHANGES_APPLIED = "DRAFT_ORDER_CHANGES_APPLIED",
4063
- SAVED_PAYMENT_METHOD = "SAVED_PAYMENT_METHOD",
4064
- AUTHORIZED_PAYMENT_CREATED = "AUTHORIZED_PAYMENT_CREATED",
4065
- AUTHORIZED_PAYMENT_CAPTURED = "AUTHORIZED_PAYMENT_CAPTURED",
4066
- AUTHORIZED_PAYMENT_VOIDED = "AUTHORIZED_PAYMENT_VOIDED",
4067
- REFUND_INITIATED = "REFUND_INITIATED",
4068
- PAYMENT_REFUNDED = "PAYMENT_REFUNDED",
4069
- PAYMENT_REFUND_FAILED = "PAYMENT_REFUND_FAILED",
4070
- REFUNDED_AS_STORE_CREDIT = "REFUNDED_AS_STORE_CREDIT",
4071
- PAYMENT_PENDING = "PAYMENT_PENDING",
4072
- PAYMENT_CANCELED = "PAYMENT_CANCELED",
4073
- PAYMENT_DECLINED = "PAYMENT_DECLINED"
3853
+ SAVED_PAYMENT_METHOD = "SAVED_PAYMENT_METHOD"
4074
3854
  }
4075
3855
  declare enum AttributionSource {
4076
3856
  UNSPECIFIED = "UNSPECIFIED",
@@ -5580,7 +5360,7 @@ interface GetPaymentSettingsForCheckoutEnvelope {
5580
5360
  request: GetPaymentSettingsForCheckoutRequest;
5581
5361
  metadata: Context$1;
5582
5362
  }
5583
- declare const provideHandlers$3: ServicePluginDefinition$9<{
5363
+ declare const provideHandlers$3: ServicePluginDefinition<{
5584
5364
  /**
5585
5365
  *
5586
5366
  * This method retrieves payment settings from your app.
@@ -5593,36 +5373,7 @@ declare const provideHandlers$3: ServicePluginDefinition$9<{
5593
5373
  getPaymentSettingsForCheckout(payload: GetPaymentSettingsForCheckoutEnvelope): GetPaymentSettingsForCheckoutResponse | Promise<GetPaymentSettingsForCheckoutResponse>;
5594
5374
  }>;
5595
5375
 
5596
- type ServicePluginMethodInput$1 = {
5597
- request: any;
5598
- metadata: any;
5599
- };
5600
- type ServicePluginContract$1 = Record<string, (payload: ServicePluginMethodInput$1) => unknown | Promise<unknown>>;
5601
- type ServicePluginMethodMetadata$1 = {
5602
- name: string;
5603
- primaryHttpMappingPath: string;
5604
- transformations: {
5605
- fromREST: (...args: unknown[]) => ServicePluginMethodInput$1;
5606
- toREST: (...args: unknown[]) => unknown;
5607
- };
5608
- };
5609
- type ServicePluginDefinition$1<Contract extends ServicePluginContract$1> = {
5610
- __type: 'service-plugin-definition';
5611
- componentType: string;
5612
- methods: ServicePluginMethodMetadata$1[];
5613
- __contract: Contract;
5614
- };
5615
- declare function ServicePluginDefinition$1<Contract extends ServicePluginContract$1>(componentType: string, methods: ServicePluginMethodMetadata$1[]): ServicePluginDefinition$1<Contract>;
5616
- type BuildServicePluginDefinition$1<T extends ServicePluginDefinition$1<any>> = (implementation: T['__contract']) => void;
5617
-
5618
- declare global {
5619
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
5620
- interface SymbolConstructor {
5621
- readonly observable: symbol;
5622
- }
5623
- }
5624
-
5625
- declare function createServicePluginModule$1<T extends ServicePluginDefinition$1<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$1<T> & T;
5376
+ declare function createServicePluginModule$1<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
5626
5377
 
5627
5378
  type _publicProvideHandlersType$1 = typeof provideHandlers$3;
5628
5379
  declare const provideHandlers$2: ReturnType<typeof createServicePluginModule$1<_publicProvideHandlersType>>;
@@ -6469,7 +6220,7 @@ interface GetValidationViolationsEnvelope {
6469
6220
  request: GetValidationViolationsRequest;
6470
6221
  metadata: Context;
6471
6222
  }
6472
- declare const provideHandlers$1: ServicePluginDefinition$9<{
6223
+ declare const provideHandlers$1: ServicePluginDefinition<{
6473
6224
  /**
6474
6225
  *
6475
6226
  * This method retrieves validation violations from your app.
@@ -6483,35 +6234,6 @@ declare const provideHandlers$1: ServicePluginDefinition$9<{
6483
6234
  getValidationViolations(payload: GetValidationViolationsEnvelope): GetValidationViolationsResponse | Promise<GetValidationViolationsResponse>;
6484
6235
  }>;
6485
6236
 
6486
- type ServicePluginMethodInput = {
6487
- request: any;
6488
- metadata: any;
6489
- };
6490
- type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
6491
- type ServicePluginMethodMetadata = {
6492
- name: string;
6493
- primaryHttpMappingPath: string;
6494
- transformations: {
6495
- fromREST: (...args: unknown[]) => ServicePluginMethodInput;
6496
- toREST: (...args: unknown[]) => unknown;
6497
- };
6498
- };
6499
- type ServicePluginDefinition<Contract extends ServicePluginContract> = {
6500
- __type: 'service-plugin-definition';
6501
- componentType: string;
6502
- methods: ServicePluginMethodMetadata[];
6503
- __contract: Contract;
6504
- };
6505
- declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
6506
- type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
6507
-
6508
- declare global {
6509
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
6510
- interface SymbolConstructor {
6511
- readonly observable: symbol;
6512
- }
6513
- }
6514
-
6515
6237
  declare function createServicePluginModule<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
6516
6238
 
6517
6239
  type _publicProvideHandlersType = typeof provideHandlers$1;