@wix/ecom 1.0.763 → 1.0.765

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.
@@ -86,26 +86,26 @@ interface GiftCardProviderConfig {
86
86
  * }
87
87
  * ```
88
88
  */
89
- interface Context$6 {
89
+ interface Context$7 {
90
90
  /** A unique identifier of the request. You may print this ID to your logs to help with future debugging and easier correlation with Wix's logs. */
91
91
  requestId?: string | null;
92
92
  /** [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) 3-letter currency code. */
93
93
  currency?: string | null;
94
94
  /** An object that describes the identity that triggered this request. */
95
- identity?: IdentificationData$6;
95
+ identity?: IdentificationData$7;
96
96
  /** A string representing a language and region in the format of `"xx-XX"`. First 2 letters represent the language code according to ISO 639-1. This is followed by a dash "-", and then a by 2 capital letters representing the region according to ISO 3166-2. For example, `"en-US"`. */
97
97
  languages?: string[];
98
98
  /** The service provider app's instance ID. */
99
99
  instanceId?: string | null;
100
100
  }
101
- declare enum IdentityType$6 {
101
+ declare enum IdentityType$7 {
102
102
  UNKNOWN = "UNKNOWN",
103
103
  ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
104
104
  MEMBER = "MEMBER",
105
105
  WIX_USER = "WIX_USER",
106
106
  APP = "APP"
107
107
  }
108
- interface IdentificationData$6 extends IdentificationDataIdOneOf$6 {
108
+ interface IdentificationData$7 extends IdentificationDataIdOneOf$7 {
109
109
  /** ID of a site visitor that has not logged in to the site. */
110
110
  anonymousVisitorId?: string;
111
111
  /** ID of a site visitor that has logged in to the site. */
@@ -115,10 +115,10 @@ interface IdentificationData$6 extends IdentificationDataIdOneOf$6 {
115
115
  /** ID of an app. */
116
116
  appId?: string;
117
117
  /** @readonly */
118
- identityType?: IdentityType$6;
118
+ identityType?: IdentityType$7;
119
119
  }
120
120
  /** @oneof */
121
- interface IdentificationDataIdOneOf$6 {
121
+ interface IdentificationDataIdOneOf$7 {
122
122
  /** ID of a site visitor that has not logged in to the site. */
123
123
  anonymousVisitorId?: string;
124
124
  /** ID of a site visitor that has logged in to the site. */
@@ -129,27 +129,26 @@ interface IdentificationDataIdOneOf$6 {
129
129
  appId?: string;
130
130
  }
131
131
 
132
- type ServicePluginMethodInput = {
132
+ type ServicePluginMethodInput$f = {
133
133
  request: any;
134
134
  metadata: any;
135
135
  };
136
- type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
137
- type ServicePluginMethodMetadata = {
136
+ type ServicePluginContract$f = Record<string, (payload: ServicePluginMethodInput$f) => unknown | Promise<unknown>>;
137
+ type ServicePluginMethodMetadata$f = {
138
138
  name: string;
139
139
  primaryHttpMappingPath: string;
140
140
  transformations: {
141
- fromREST: (...args: unknown[]) => ServicePluginMethodInput;
141
+ fromREST: (...args: unknown[]) => ServicePluginMethodInput$f;
142
142
  toREST: (...args: unknown[]) => unknown;
143
143
  };
144
144
  };
145
- type ServicePluginDefinition<Contract extends ServicePluginContract> = {
145
+ type ServicePluginDefinition$f<Contract extends ServicePluginContract$f> = {
146
146
  __type: 'service-plugin-definition';
147
147
  componentType: string;
148
- methods: ServicePluginMethodMetadata[];
148
+ methods: ServicePluginMethodMetadata$f[];
149
149
  __contract: Contract;
150
150
  };
151
- declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
152
- type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
151
+ declare function ServicePluginDefinition$f<Contract extends ServicePluginContract$f>(componentType: string, methods: ServicePluginMethodMetadata$f[]): ServicePluginDefinition$f<Contract>;
153
152
 
154
153
  declare global {
155
154
  // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
@@ -158,19 +157,24 @@ declare global {
158
157
  }
159
158
  }
160
159
 
160
+ declare global {
161
+ interface ContextualClient {
162
+ }
163
+ }
164
+
161
165
  interface GetBalanceEnvelope {
162
166
  request: GetBalanceRequest;
163
- metadata: Context$6;
167
+ metadata: Context$7;
164
168
  }
165
169
  interface RedeemEnvelope {
166
170
  request: RedeemRequest;
167
- metadata: Context$6;
171
+ metadata: Context$7;
168
172
  }
169
173
  interface _voidEnvelope {
170
174
  request: VoidRequest;
171
- metadata: Context$6;
175
+ metadata: Context$7;
172
176
  }
173
- declare const provideHandlers$d: ServicePluginDefinition<{
177
+ declare const provideHandlers$f: ServicePluginDefinition$f<{
174
178
  /**
175
179
  *
176
180
  * This method retrieves gift card data from your app.
@@ -188,10 +192,39 @@ declare const provideHandlers$d: ServicePluginDefinition<{
188
192
  _void(payload: _voidEnvelope): VoidResponse | Promise<VoidResponse>;
189
193
  }>;
190
194
 
191
- declare function createServicePluginModule$6<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
195
+ type ServicePluginMethodInput$e = {
196
+ request: any;
197
+ metadata: any;
198
+ };
199
+ type ServicePluginContract$e = Record<string, (payload: ServicePluginMethodInput$e) => unknown | Promise<unknown>>;
200
+ type ServicePluginMethodMetadata$e = {
201
+ name: string;
202
+ primaryHttpMappingPath: string;
203
+ transformations: {
204
+ fromREST: (...args: unknown[]) => ServicePluginMethodInput$e;
205
+ toREST: (...args: unknown[]) => unknown;
206
+ };
207
+ };
208
+ type ServicePluginDefinition$e<Contract extends ServicePluginContract$e> = {
209
+ __type: 'service-plugin-definition';
210
+ componentType: string;
211
+ methods: ServicePluginMethodMetadata$e[];
212
+ __contract: Contract;
213
+ };
214
+ declare function ServicePluginDefinition$e<Contract extends ServicePluginContract$e>(componentType: string, methods: ServicePluginMethodMetadata$e[]): ServicePluginDefinition$e<Contract>;
215
+ type BuildServicePluginDefinition$7<T extends ServicePluginDefinition$e<any>> = (implementation: T['__contract']) => void;
192
216
 
193
- type _publicProvideHandlersType$6 = typeof provideHandlers$d;
194
- declare const provideHandlers$c: ReturnType<typeof createServicePluginModule$6<_publicProvideHandlersType>>;
217
+ declare global {
218
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
219
+ interface SymbolConstructor {
220
+ readonly observable: symbol;
221
+ }
222
+ }
223
+
224
+ declare function createServicePluginModule$7<T extends ServicePluginDefinition$e<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$7<T> & T;
225
+
226
+ type _publicProvideHandlersType$7 = typeof provideHandlers$f;
227
+ declare const provideHandlers$e: ReturnType<typeof createServicePluginModule$7<_publicProvideHandlersType>>;
195
228
 
196
229
  /**
197
230
  * Gift card not found
@@ -322,32 +355,301 @@ declare class AlreadyVoidedWixError extends Error {
322
355
  static readonly __type = "wix_spi_error";
323
356
  }
324
357
 
325
- type index_d$6_AlreadyRedeemedWixError = AlreadyRedeemedWixError;
326
- declare const index_d$6_AlreadyRedeemedWixError: typeof AlreadyRedeemedWixError;
327
- type index_d$6_AlreadyVoidedWixError = AlreadyVoidedWixError;
328
- declare const index_d$6_AlreadyVoidedWixError: typeof AlreadyVoidedWixError;
329
- type index_d$6_CurrencyNotSupportedWixError = CurrencyNotSupportedWixError;
330
- declare const index_d$6_CurrencyNotSupportedWixError: typeof CurrencyNotSupportedWixError;
331
- type index_d$6_GetBalanceRequest = GetBalanceRequest;
332
- type index_d$6_GetBalanceResponse = GetBalanceResponse;
333
- type index_d$6_GiftCardDisabledWixError = GiftCardDisabledWixError;
334
- declare const index_d$6_GiftCardDisabledWixError: typeof GiftCardDisabledWixError;
335
- type index_d$6_GiftCardExpiredWixError = GiftCardExpiredWixError;
336
- declare const index_d$6_GiftCardExpiredWixError: typeof GiftCardExpiredWixError;
337
- type index_d$6_GiftCardNotFoundWixError = GiftCardNotFoundWixError;
338
- declare const index_d$6_GiftCardNotFoundWixError: typeof GiftCardNotFoundWixError;
339
- type index_d$6_GiftCardProviderConfig = GiftCardProviderConfig;
340
- type index_d$6_GiftCardProviderEntity = GiftCardProviderEntity;
341
- type index_d$6_InsufficientFundsWixError = InsufficientFundsWixError;
342
- declare const index_d$6_InsufficientFundsWixError: typeof InsufficientFundsWixError;
343
- type index_d$6_RedeemRequest = RedeemRequest;
344
- type index_d$6_RedeemResponse = RedeemResponse;
345
- type index_d$6_TransactionNotFoundWixError = TransactionNotFoundWixError;
346
- declare const index_d$6_TransactionNotFoundWixError: typeof TransactionNotFoundWixError;
347
- type index_d$6_VoidRequest = VoidRequest;
348
- type index_d$6_VoidResponse = VoidResponse;
358
+ type index_d$7_AlreadyRedeemedWixError = AlreadyRedeemedWixError;
359
+ declare const index_d$7_AlreadyRedeemedWixError: typeof AlreadyRedeemedWixError;
360
+ type index_d$7_AlreadyVoidedWixError = AlreadyVoidedWixError;
361
+ declare const index_d$7_AlreadyVoidedWixError: typeof AlreadyVoidedWixError;
362
+ type index_d$7_CurrencyNotSupportedWixError = CurrencyNotSupportedWixError;
363
+ declare const index_d$7_CurrencyNotSupportedWixError: typeof CurrencyNotSupportedWixError;
364
+ type index_d$7_GetBalanceRequest = GetBalanceRequest;
365
+ type index_d$7_GetBalanceResponse = GetBalanceResponse;
366
+ type index_d$7_GiftCardDisabledWixError = GiftCardDisabledWixError;
367
+ declare const index_d$7_GiftCardDisabledWixError: typeof GiftCardDisabledWixError;
368
+ type index_d$7_GiftCardExpiredWixError = GiftCardExpiredWixError;
369
+ declare const index_d$7_GiftCardExpiredWixError: typeof GiftCardExpiredWixError;
370
+ type index_d$7_GiftCardNotFoundWixError = GiftCardNotFoundWixError;
371
+ declare const index_d$7_GiftCardNotFoundWixError: typeof GiftCardNotFoundWixError;
372
+ type index_d$7_GiftCardProviderConfig = GiftCardProviderConfig;
373
+ type index_d$7_GiftCardProviderEntity = GiftCardProviderEntity;
374
+ type index_d$7_InsufficientFundsWixError = InsufficientFundsWixError;
375
+ declare const index_d$7_InsufficientFundsWixError: typeof InsufficientFundsWixError;
376
+ type index_d$7_RedeemRequest = RedeemRequest;
377
+ type index_d$7_RedeemResponse = RedeemResponse;
378
+ type index_d$7_TransactionNotFoundWixError = TransactionNotFoundWixError;
379
+ declare const index_d$7_TransactionNotFoundWixError: typeof TransactionNotFoundWixError;
380
+ type index_d$7_VoidRequest = VoidRequest;
381
+ type index_d$7_VoidResponse = VoidResponse;
382
+ declare namespace index_d$7 {
383
+ export { index_d$7_AlreadyRedeemedWixError as AlreadyRedeemedWixError, index_d$7_AlreadyVoidedWixError as AlreadyVoidedWixError, type Context$7 as Context, index_d$7_CurrencyNotSupportedWixError as CurrencyNotSupportedWixError, type index_d$7_GetBalanceRequest as GetBalanceRequest, type index_d$7_GetBalanceResponse as GetBalanceResponse, index_d$7_GiftCardDisabledWixError as GiftCardDisabledWixError, index_d$7_GiftCardExpiredWixError as GiftCardExpiredWixError, index_d$7_GiftCardNotFoundWixError as GiftCardNotFoundWixError, type index_d$7_GiftCardProviderConfig as GiftCardProviderConfig, type index_d$7_GiftCardProviderEntity as GiftCardProviderEntity, type IdentificationData$7 as IdentificationData, type IdentificationDataIdOneOf$7 as IdentificationDataIdOneOf, IdentityType$7 as IdentityType, index_d$7_InsufficientFundsWixError as InsufficientFundsWixError, type index_d$7_RedeemRequest as RedeemRequest, type index_d$7_RedeemResponse as RedeemResponse, index_d$7_TransactionNotFoundWixError as TransactionNotFoundWixError, type index_d$7_VoidRequest as VoidRequest, type index_d$7_VoidResponse as VoidResponse, type _publicProvideHandlersType$7 as _publicProvideHandlersType, provideHandlers$e as provideHandlers, provideHandlers$f as publicProvideHandlers };
384
+ }
385
+
386
+ /** additional information can be passed via aspects, for example GEO */
387
+ interface GetRecommendationsRequest {
388
+ /** The set of items used by algorithms with the `RELATED_ITEMS` `algorithmType` to determine related item recommendations. */
389
+ items?: CatalogReference$6[];
390
+ /** List of algorithms used to find recommended items. Items will be returned in a separate object for each algorithm */
391
+ algorithmIds?: string[];
392
+ }
393
+ /** Used for grouping line items. Sent when an item is added to a cart, checkout, or order. */
394
+ interface CatalogReference$6 {
395
+ /** ID of the item within the catalog it belongs to. */
396
+ catalogItemId?: string;
397
+ /**
398
+ * ID of the app providing the catalog.
399
+ *
400
+ * You can get your app's ID from its page in the [Wix Dev Center](https://dev.wix.com/apps).
401
+ *
402
+ * For items from Wix catalogs, the following values always apply:
403
+ * + Wix Stores: `"215238eb-22a5-4c36-9e7b-e7c08025e04e"`
404
+ * + Wix Bookings: `"13d21c63-b5ec-5912-8397-c3a5ddb27a97"`
405
+ * + Wix Restaurants: `"9a5d83fd-8570-482e-81ab-cfa88942ee60"`
406
+ */
407
+ appId?: string;
408
+ /**
409
+ * Additional item details in key:value pairs. Use this optional field to provide more specificity with item selection. The `options` field values differ depending on which catalog is providing the items.
410
+ *
411
+ * For products and variants from a Wix Stores catalog, learn more about [eCommerce integration](https://dev.wix.com/docs/rest/business-solutions/stores/catalog/e-commerce-integration).
412
+ */
413
+ options?: Record<string, any> | null;
414
+ }
415
+ interface GetRecommendationsResponse {
416
+ /**
417
+ * Related items returned by each algorithm.
418
+ *
419
+ * Each object in the array contains an `algorithmId` and a list of the item recommendations provided by that algorithm.
420
+ */
421
+ recommendationPerAlgorithm?: RecommendationForAlgorithm[];
422
+ }
423
+ interface RecommendationForAlgorithm {
424
+ /** Id of the algorithm that provided the recommendation. */
425
+ algorithmId?: string;
426
+ /** Item recommendations provided by the algorithm. Depending on the algorithm, these recommendations may be influenced by the items provided in the request. */
427
+ recommendedItems?: CatalogReference$6[];
428
+ }
429
+ interface RecommendationAlgorithmNotSupported {
430
+ /** Not supported algorithms. */
431
+ unsupportedAlgorithms?: string[];
432
+ }
433
+ interface ItemAppIdNotSupportedError {
434
+ /** Items with not supported catalogs. */
435
+ items?: CatalogReference$6[];
436
+ }
437
+ interface RecommendationsProviderConfig {
438
+ /** URI where the application implementing the SPI is deployed. */
439
+ deploymentUri?: string;
440
+ /** App IDs of catalogs for which recommended items can be found. */
441
+ catalogAppIds?: string[];
442
+ /** The algorithms that this application can use to calculate item recommendations. */
443
+ supportedAlgorithms?: AlgorithmConfig[];
444
+ }
445
+ interface AlgorithmConfig {
446
+ /** Algorithm ID. This must be unique for a specific app but does not have to be unique across all apps on the site or in the project. */
447
+ _id?: string;
448
+ /** Algorithm name. This value is not translatable. */
449
+ name?: string;
450
+ /** Algorithm description. This describes how the algorithm works and if it has any limitations regarding site content, number of items in the catalog, site traffic, and so on. This value is not translatable. */
451
+ description?: string;
452
+ /** A supplemental `description`. It can be used to help break up and organize information. You can, for example, display this information as a tooltip or as an additional section that is collapsed by default. */
453
+ additionalInfo?: string | null;
454
+ /**
455
+ * Algorithms may have the following types:
456
+ * * `RELATED_ITEMS` - This type of algorithm provides recommendations based on 1 or more other provided items. For example, when an item is added to a cart, the algorithm can suggest other items frequently bought together with that item.
457
+ * * `GLOBAL` - This type of algorithm provides general recommendations based on site or project statistics. For example, bestsellers or new arrivals.
458
+ */
459
+ algorithmType?: AlgorithmType;
460
+ /** Algorithm ID. This must be unique for a specific app but does not have to be unique across all apps on the site or in the project. */
461
+ algorithmId?: string | null;
462
+ }
463
+ declare enum AlgorithmType {
464
+ UNSPECIFIED = "UNSPECIFIED",
465
+ RELATED_ITEMS = "RELATED_ITEMS",
466
+ GLOBAL = "GLOBAL"
467
+ }
468
+ /**
469
+ * this message is not directly used by any service,
470
+ * it exists to describe the expected parameters that SHOULD be provided to invoked Velo methods as part of open-platform.
471
+ * e.g. SPIs, event-handlers, etc..
472
+ * NOTE: this context object MUST be provided as the last argument in each Velo method signature.
473
+ *
474
+ * Example:
475
+ * ```typescript
476
+ * export function wixStores_onOrderCanceled({ event, metadata }: OrderCanceledEvent) {
477
+ * ...
478
+ * }
479
+ * ```
480
+ */
481
+ interface Context$6 {
482
+ /** A unique identifier of the request. You may print this ID to your logs to help with future debugging and easier correlation with Wix's logs. */
483
+ requestId?: string | null;
484
+ /** [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) 3-letter currency code. */
485
+ currency?: string | null;
486
+ /** An object that describes the identity that triggered this request. */
487
+ identity?: IdentificationData$6;
488
+ /** A string representing a language and region in the format of `"xx-XX"`. First 2 letters represent the language code according to ISO 639-1. This is followed by a dash "-", and then a by 2 capital letters representing the region according to ISO 3166-2. For example, `"en-US"`. */
489
+ languages?: string[];
490
+ /** The service provider app's instance ID. */
491
+ instanceId?: string | null;
492
+ }
493
+ declare enum IdentityType$6 {
494
+ UNKNOWN = "UNKNOWN",
495
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
496
+ MEMBER = "MEMBER",
497
+ WIX_USER = "WIX_USER",
498
+ APP = "APP"
499
+ }
500
+ interface IdentificationData$6 extends IdentificationDataIdOneOf$6 {
501
+ /** ID of a site visitor that has not logged in to the site. */
502
+ anonymousVisitorId?: string;
503
+ /** ID of a site visitor that has logged in to the site. */
504
+ memberId?: string;
505
+ /** ID of a Wix user (site owner, contributor, etc.). */
506
+ wixUserId?: string;
507
+ /** ID of an app. */
508
+ appId?: string;
509
+ /** @readonly */
510
+ identityType?: IdentityType$6;
511
+ }
512
+ /** @oneof */
513
+ interface IdentificationDataIdOneOf$6 {
514
+ /** ID of a site visitor that has not logged in to the site. */
515
+ anonymousVisitorId?: string;
516
+ /** ID of a site visitor that has logged in to the site. */
517
+ memberId?: string;
518
+ /** ID of a Wix user (site owner, contributor, etc.). */
519
+ wixUserId?: string;
520
+ /** ID of an app. */
521
+ appId?: string;
522
+ }
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
+ interface GetRecommendationsEnvelope {
558
+ request: GetRecommendationsRequest;
559
+ metadata: Context$6;
560
+ }
561
+ declare const provideHandlers$d: ServicePluginDefinition$d<{
562
+ /**
563
+ *
564
+ * Returns lists of items recommended by each requested algorithm.
565
+ *
566
+ * If the algorithm's type is `RELATED_ITEMS` then the `items` field is required in the request, and the response will contain items related to those submitted.
567
+ * How the related items are selected based on the requested items depends on the algorithm. Some examples include items related by category or those frequently bought or watched together. */
568
+ getRecommendations(payload: GetRecommendationsEnvelope): GetRecommendationsResponse | Promise<GetRecommendationsResponse>;
569
+ }>;
570
+
571
+ type ServicePluginMethodInput$c = {
572
+ request: any;
573
+ metadata: any;
574
+ };
575
+ type ServicePluginContract$c = Record<string, (payload: ServicePluginMethodInput$c) => unknown | Promise<unknown>>;
576
+ type ServicePluginMethodMetadata$c = {
577
+ name: string;
578
+ primaryHttpMappingPath: string;
579
+ transformations: {
580
+ fromREST: (...args: unknown[]) => ServicePluginMethodInput$c;
581
+ toREST: (...args: unknown[]) => unknown;
582
+ };
583
+ };
584
+ type ServicePluginDefinition$c<Contract extends ServicePluginContract$c> = {
585
+ __type: 'service-plugin-definition';
586
+ componentType: string;
587
+ methods: ServicePluginMethodMetadata$c[];
588
+ __contract: Contract;
589
+ };
590
+ declare function ServicePluginDefinition$c<Contract extends ServicePluginContract$c>(componentType: string, methods: ServicePluginMethodMetadata$c[]): ServicePluginDefinition$c<Contract>;
591
+ type BuildServicePluginDefinition$6<T extends ServicePluginDefinition$c<any>> = (implementation: T['__contract']) => void;
592
+
593
+ declare global {
594
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
595
+ interface SymbolConstructor {
596
+ readonly observable: symbol;
597
+ }
598
+ }
599
+
600
+ declare function createServicePluginModule$6<T extends ServicePluginDefinition$c<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$6<T> & T;
601
+
602
+ type _publicProvideHandlersType$6 = typeof provideHandlers$d;
603
+ declare const provideHandlers$c: ReturnType<typeof createServicePluginModule$6<_publicProvideHandlersType>>;
604
+
605
+ declare class AlgorithmNotSupportedWixError extends Error {
606
+ /** @hidden */
607
+ httpCode: number;
608
+ /** @hidden */
609
+ statusCode: string;
610
+ /** @hidden */
611
+ applicationCode: string;
612
+ /** @hidden */
613
+ name: string;
614
+ /** @hidden */
615
+ errorSchemaName: string;
616
+ data: RecommendationAlgorithmNotSupported;
617
+ constructor(data: RecommendationAlgorithmNotSupported);
618
+ /** @hidden */
619
+ static readonly __type = "wix_spi_error";
620
+ }
621
+ declare class ItemAppIdNotSupportedWixError extends Error {
622
+ /** @hidden */
623
+ httpCode: number;
624
+ /** @hidden */
625
+ statusCode: string;
626
+ /** @hidden */
627
+ applicationCode: string;
628
+ /** @hidden */
629
+ name: string;
630
+ /** @hidden */
631
+ errorSchemaName: string;
632
+ data: ItemAppIdNotSupportedError;
633
+ constructor(data: ItemAppIdNotSupportedError);
634
+ /** @hidden */
635
+ static readonly __type = "wix_spi_error";
636
+ }
637
+
638
+ type index_d$6_AlgorithmConfig = AlgorithmConfig;
639
+ type index_d$6_AlgorithmNotSupportedWixError = AlgorithmNotSupportedWixError;
640
+ declare const index_d$6_AlgorithmNotSupportedWixError: typeof AlgorithmNotSupportedWixError;
641
+ type index_d$6_AlgorithmType = AlgorithmType;
642
+ declare const index_d$6_AlgorithmType: typeof AlgorithmType;
643
+ type index_d$6_GetRecommendationsRequest = GetRecommendationsRequest;
644
+ type index_d$6_GetRecommendationsResponse = GetRecommendationsResponse;
645
+ type index_d$6_ItemAppIdNotSupportedError = ItemAppIdNotSupportedError;
646
+ type index_d$6_ItemAppIdNotSupportedWixError = ItemAppIdNotSupportedWixError;
647
+ declare const index_d$6_ItemAppIdNotSupportedWixError: typeof ItemAppIdNotSupportedWixError;
648
+ type index_d$6_RecommendationAlgorithmNotSupported = RecommendationAlgorithmNotSupported;
649
+ type index_d$6_RecommendationForAlgorithm = RecommendationForAlgorithm;
650
+ type index_d$6_RecommendationsProviderConfig = RecommendationsProviderConfig;
349
651
  declare namespace index_d$6 {
350
- export { index_d$6_AlreadyRedeemedWixError as AlreadyRedeemedWixError, index_d$6_AlreadyVoidedWixError as AlreadyVoidedWixError, type Context$6 as Context, index_d$6_CurrencyNotSupportedWixError as CurrencyNotSupportedWixError, type index_d$6_GetBalanceRequest as GetBalanceRequest, type index_d$6_GetBalanceResponse as GetBalanceResponse, index_d$6_GiftCardDisabledWixError as GiftCardDisabledWixError, index_d$6_GiftCardExpiredWixError as GiftCardExpiredWixError, index_d$6_GiftCardNotFoundWixError as GiftCardNotFoundWixError, type index_d$6_GiftCardProviderConfig as GiftCardProviderConfig, type index_d$6_GiftCardProviderEntity as GiftCardProviderEntity, type IdentificationData$6 as IdentificationData, type IdentificationDataIdOneOf$6 as IdentificationDataIdOneOf, IdentityType$6 as IdentityType, index_d$6_InsufficientFundsWixError as InsufficientFundsWixError, type index_d$6_RedeemRequest as RedeemRequest, type index_d$6_RedeemResponse as RedeemResponse, index_d$6_TransactionNotFoundWixError as TransactionNotFoundWixError, type index_d$6_VoidRequest as VoidRequest, type index_d$6_VoidResponse as VoidResponse, type _publicProvideHandlersType$6 as _publicProvideHandlersType, provideHandlers$c as provideHandlers, provideHandlers$d as publicProvideHandlers };
652
+ export { type index_d$6_AlgorithmConfig as AlgorithmConfig, index_d$6_AlgorithmNotSupportedWixError as AlgorithmNotSupportedWixError, index_d$6_AlgorithmType as AlgorithmType, type CatalogReference$6 as CatalogReference, type Context$6 as Context, type index_d$6_GetRecommendationsRequest as GetRecommendationsRequest, type index_d$6_GetRecommendationsResponse as GetRecommendationsResponse, type IdentificationData$6 as IdentificationData, type IdentificationDataIdOneOf$6 as IdentificationDataIdOneOf, IdentityType$6 as IdentityType, type index_d$6_ItemAppIdNotSupportedError as ItemAppIdNotSupportedError, index_d$6_ItemAppIdNotSupportedWixError as ItemAppIdNotSupportedWixError, type index_d$6_RecommendationAlgorithmNotSupported as RecommendationAlgorithmNotSupported, type index_d$6_RecommendationForAlgorithm as RecommendationForAlgorithm, type index_d$6_RecommendationsProviderConfig as RecommendationsProviderConfig, type _publicProvideHandlersType$6 as _publicProvideHandlersType, provideHandlers$c as provideHandlers, provideHandlers$d as publicProvideHandlers };
351
653
  }
352
654
 
353
655
  interface GetShippingRatesRequest {
@@ -792,11 +1094,44 @@ interface IdentificationDataIdOneOf$5 {
792
1094
  appId?: string;
793
1095
  }
794
1096
 
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
+
795
1130
  interface GetShippingRatesEnvelope {
796
1131
  request: GetShippingRatesRequest;
797
1132
  metadata: Context$5;
798
1133
  }
799
- declare const provideHandlers$b: ServicePluginDefinition<{
1134
+ declare const provideHandlers$b: ServicePluginDefinition$b<{
800
1135
  /**
801
1136
  *
802
1137
  * This method retrieves applicable shipping rates for a delivery from your app.
@@ -805,7 +1140,36 @@ declare const provideHandlers$b: ServicePluginDefinition<{
805
1140
  getShippingRates(payload: GetShippingRatesEnvelope): GetShippingRatesResponse | Promise<GetShippingRatesResponse>;
806
1141
  }>;
807
1142
 
808
- declare function createServicePluginModule$5<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
1143
+ type ServicePluginMethodInput$a = {
1144
+ request: any;
1145
+ metadata: any;
1146
+ };
1147
+ type ServicePluginContract$a = Record<string, (payload: ServicePluginMethodInput$a) => unknown | Promise<unknown>>;
1148
+ type ServicePluginMethodMetadata$a = {
1149
+ name: string;
1150
+ primaryHttpMappingPath: string;
1151
+ transformations: {
1152
+ fromREST: (...args: unknown[]) => ServicePluginMethodInput$a;
1153
+ toREST: (...args: unknown[]) => unknown;
1154
+ };
1155
+ };
1156
+ type ServicePluginDefinition$a<Contract extends ServicePluginContract$a> = {
1157
+ __type: 'service-plugin-definition';
1158
+ componentType: string;
1159
+ methods: ServicePluginMethodMetadata$a[];
1160
+ __contract: Contract;
1161
+ };
1162
+ declare function ServicePluginDefinition$a<Contract extends ServicePluginContract$a>(componentType: string, methods: ServicePluginMethodMetadata$a[]): ServicePluginDefinition$a<Contract>;
1163
+ type BuildServicePluginDefinition$5<T extends ServicePluginDefinition$a<any>> = (implementation: T['__contract']) => void;
1164
+
1165
+ declare global {
1166
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
1167
+ interface SymbolConstructor {
1168
+ readonly observable: symbol;
1169
+ }
1170
+ }
1171
+
1172
+ declare function createServicePluginModule$5<T extends ServicePluginDefinition$a<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$5<T> & T;
809
1173
 
810
1174
  type _publicProvideHandlersType$5 = typeof provideHandlers$b;
811
1175
  declare const provideHandlers$a: ReturnType<typeof createServicePluginModule$5<_publicProvideHandlersType>>;
@@ -1321,11 +1685,44 @@ interface IdentificationDataIdOneOf$4 {
1321
1685
  appId?: string;
1322
1686
  }
1323
1687
 
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
+
1324
1721
  interface CalculateAdditionalFeesEnvelope {
1325
1722
  request: CalculateAdditionalFeesRequest;
1326
1723
  metadata: Context$4;
1327
1724
  }
1328
- declare const provideHandlers$9: ServicePluginDefinition<{
1725
+ declare const provideHandlers$9: ServicePluginDefinition$9<{
1329
1726
  /**
1330
1727
  *
1331
1728
  * This method retrieves additional fees calculated by your app.
@@ -1337,7 +1734,36 @@ declare const provideHandlers$9: ServicePluginDefinition<{
1337
1734
  calculateAdditionalFees(payload: CalculateAdditionalFeesEnvelope): CalculateAdditionalFeesResponse | Promise<CalculateAdditionalFeesResponse>;
1338
1735
  }>;
1339
1736
 
1340
- declare function createServicePluginModule$4<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
1737
+ type ServicePluginMethodInput$8 = {
1738
+ request: any;
1739
+ metadata: any;
1740
+ };
1741
+ type ServicePluginContract$8 = Record<string, (payload: ServicePluginMethodInput$8) => unknown | Promise<unknown>>;
1742
+ type ServicePluginMethodMetadata$8 = {
1743
+ name: string;
1744
+ primaryHttpMappingPath: string;
1745
+ transformations: {
1746
+ fromREST: (...args: unknown[]) => ServicePluginMethodInput$8;
1747
+ toREST: (...args: unknown[]) => unknown;
1748
+ };
1749
+ };
1750
+ type ServicePluginDefinition$8<Contract extends ServicePluginContract$8> = {
1751
+ __type: 'service-plugin-definition';
1752
+ componentType: string;
1753
+ methods: ServicePluginMethodMetadata$8[];
1754
+ __contract: Contract;
1755
+ };
1756
+ declare function ServicePluginDefinition$8<Contract extends ServicePluginContract$8>(componentType: string, methods: ServicePluginMethodMetadata$8[]): ServicePluginDefinition$8<Contract>;
1757
+ type BuildServicePluginDefinition$4<T extends ServicePluginDefinition$8<any>> = (implementation: T['__contract']) => void;
1758
+
1759
+ declare global {
1760
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
1761
+ interface SymbolConstructor {
1762
+ readonly observable: symbol;
1763
+ }
1764
+ }
1765
+
1766
+ declare function createServicePluginModule$4<T extends ServicePluginDefinition$8<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$4<T> & T;
1341
1767
 
1342
1768
  type _publicProvideHandlersType$4 = typeof provideHandlers$9;
1343
1769
  declare const provideHandlers$8: ReturnType<typeof createServicePluginModule$4<_publicProvideHandlersType>>;
@@ -1488,6 +1914,39 @@ interface IdentificationDataIdOneOf$3 {
1488
1914
  appId?: string;
1489
1915
  }
1490
1916
 
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
+
1491
1950
  interface ListTriggersEnvelope {
1492
1951
  request: ListTriggersRequest;
1493
1952
  metadata: Context$3;
@@ -1496,7 +1955,7 @@ interface GetEligibleTriggersEnvelope {
1496
1955
  request: GetEligibleTriggersRequest;
1497
1956
  metadata: Context$3;
1498
1957
  }
1499
- declare const provideHandlers$7: ServicePluginDefinition<{
1958
+ declare const provideHandlers$7: ServicePluginDefinition$7<{
1500
1959
  /**
1501
1960
  *
1502
1961
  * Lists all custom triggers provided by your service plugin integration.
@@ -1512,7 +1971,36 @@ declare const provideHandlers$7: ServicePluginDefinition<{
1512
1971
  getEligibleTriggers(payload: GetEligibleTriggersEnvelope): GetEligibleTriggersResponse | Promise<GetEligibleTriggersResponse>;
1513
1972
  }>;
1514
1973
 
1515
- declare function createServicePluginModule$3<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
1974
+ type ServicePluginMethodInput$6 = {
1975
+ request: any;
1976
+ metadata: any;
1977
+ };
1978
+ type ServicePluginContract$6 = Record<string, (payload: ServicePluginMethodInput$6) => unknown | Promise<unknown>>;
1979
+ type ServicePluginMethodMetadata$6 = {
1980
+ name: string;
1981
+ primaryHttpMappingPath: string;
1982
+ transformations: {
1983
+ fromREST: (...args: unknown[]) => ServicePluginMethodInput$6;
1984
+ toREST: (...args: unknown[]) => unknown;
1985
+ };
1986
+ };
1987
+ type ServicePluginDefinition$6<Contract extends ServicePluginContract$6> = {
1988
+ __type: 'service-plugin-definition';
1989
+ componentType: string;
1990
+ methods: ServicePluginMethodMetadata$6[];
1991
+ __contract: Contract;
1992
+ };
1993
+ declare function ServicePluginDefinition$6<Contract extends ServicePluginContract$6>(componentType: string, methods: ServicePluginMethodMetadata$6[]): ServicePluginDefinition$6<Contract>;
1994
+ type BuildServicePluginDefinition$3<T extends ServicePluginDefinition$6<any>> = (implementation: T['__contract']) => void;
1995
+
1996
+ declare global {
1997
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
1998
+ interface SymbolConstructor {
1999
+ readonly observable: symbol;
2000
+ }
2001
+ }
2002
+
2003
+ declare function createServicePluginModule$3<T extends ServicePluginDefinition$6<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$3<T> & T;
1516
2004
 
1517
2005
  type _publicProvideHandlersType$3 = typeof provideHandlers$7;
1518
2006
  declare const provideHandlers$6: ReturnType<typeof createServicePluginModule$3<_publicProvideHandlersType>>;
@@ -1732,11 +2220,44 @@ interface IdentificationDataIdOneOf$2 {
1732
2220
  appId?: string;
1733
2221
  }
1734
2222
 
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
+
1735
2256
  interface GetEligibleDiscountsEnvelope {
1736
2257
  request: GetEligibleDiscountsRequest;
1737
2258
  metadata: Context$2;
1738
2259
  }
1739
- declare const provideHandlers$5: ServicePluginDefinition<{
2260
+ declare const provideHandlers$5: ServicePluginDefinition$5<{
1740
2261
  /**
1741
2262
  *
1742
2263
  * Wix calls this method when certain actions are performed on the cart or checkout.
@@ -1744,7 +2265,36 @@ declare const provideHandlers$5: ServicePluginDefinition<{
1744
2265
  getEligibleDiscounts(payload: GetEligibleDiscountsEnvelope): GetEligibleDiscountsResponse | Promise<GetEligibleDiscountsResponse>;
1745
2266
  }>;
1746
2267
 
1747
- declare function createServicePluginModule$2<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
2268
+ type ServicePluginMethodInput$4 = {
2269
+ request: any;
2270
+ metadata: any;
2271
+ };
2272
+ type ServicePluginContract$4 = Record<string, (payload: ServicePluginMethodInput$4) => unknown | Promise<unknown>>;
2273
+ type ServicePluginMethodMetadata$4 = {
2274
+ name: string;
2275
+ primaryHttpMappingPath: string;
2276
+ transformations: {
2277
+ fromREST: (...args: unknown[]) => ServicePluginMethodInput$4;
2278
+ toREST: (...args: unknown[]) => unknown;
2279
+ };
2280
+ };
2281
+ type ServicePluginDefinition$4<Contract extends ServicePluginContract$4> = {
2282
+ __type: 'service-plugin-definition';
2283
+ componentType: string;
2284
+ methods: ServicePluginMethodMetadata$4[];
2285
+ __contract: Contract;
2286
+ };
2287
+ declare function ServicePluginDefinition$4<Contract extends ServicePluginContract$4>(componentType: string, methods: ServicePluginMethodMetadata$4[]): ServicePluginDefinition$4<Contract>;
2288
+ type BuildServicePluginDefinition$2<T extends ServicePluginDefinition$4<any>> = (implementation: T['__contract']) => void;
2289
+
2290
+ declare global {
2291
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
2292
+ interface SymbolConstructor {
2293
+ readonly observable: symbol;
2294
+ }
2295
+ }
2296
+
2297
+ declare function createServicePluginModule$2<T extends ServicePluginDefinition$4<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$2<T> & T;
1748
2298
 
1749
2299
  type _publicProvideHandlersType$2 = typeof provideHandlers$5;
1750
2300
  declare const provideHandlers$4: ReturnType<typeof createServicePluginModule$2<_publicProvideHandlersType>>;
@@ -4551,6 +5101,39 @@ interface IdentificationDataIdOneOf$1 {
4551
5101
  appId?: string;
4552
5102
  }
4553
5103
 
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
+
4554
5137
  interface GetPaymentSettingsEnvelope {
4555
5138
  request: GetPaymentSettingsRequest;
4556
5139
  metadata: Context$1;
@@ -4559,7 +5142,7 @@ interface GetPaymentSettingsForCheckoutEnvelope {
4559
5142
  request: GetPaymentSettingsForCheckoutRequest;
4560
5143
  metadata: Context$1;
4561
5144
  }
4562
- declare const provideHandlers$3: ServicePluginDefinition<{
5145
+ declare const provideHandlers$3: ServicePluginDefinition$3<{
4563
5146
  /**
4564
5147
  *
4565
5148
  * This method retrieves payment settings from your app.
@@ -4572,7 +5155,36 @@ declare const provideHandlers$3: ServicePluginDefinition<{
4572
5155
  getPaymentSettingsForCheckout(payload: GetPaymentSettingsForCheckoutEnvelope): GetPaymentSettingsForCheckoutResponse | Promise<GetPaymentSettingsForCheckoutResponse>;
4573
5156
  }>;
4574
5157
 
4575
- declare function createServicePluginModule$1<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
5158
+ type ServicePluginMethodInput$2 = {
5159
+ request: any;
5160
+ metadata: any;
5161
+ };
5162
+ type ServicePluginContract$2 = Record<string, (payload: ServicePluginMethodInput$2) => unknown | Promise<unknown>>;
5163
+ type ServicePluginMethodMetadata$2 = {
5164
+ name: string;
5165
+ primaryHttpMappingPath: string;
5166
+ transformations: {
5167
+ fromREST: (...args: unknown[]) => ServicePluginMethodInput$2;
5168
+ toREST: (...args: unknown[]) => unknown;
5169
+ };
5170
+ };
5171
+ type ServicePluginDefinition$2<Contract extends ServicePluginContract$2> = {
5172
+ __type: 'service-plugin-definition';
5173
+ componentType: string;
5174
+ methods: ServicePluginMethodMetadata$2[];
5175
+ __contract: Contract;
5176
+ };
5177
+ declare function ServicePluginDefinition$2<Contract extends ServicePluginContract$2>(componentType: string, methods: ServicePluginMethodMetadata$2[]): ServicePluginDefinition$2<Contract>;
5178
+ type BuildServicePluginDefinition$1<T extends ServicePluginDefinition$2<any>> = (implementation: T['__contract']) => void;
5179
+
5180
+ declare global {
5181
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
5182
+ interface SymbolConstructor {
5183
+ readonly observable: symbol;
5184
+ }
5185
+ }
5186
+
5187
+ declare function createServicePluginModule$1<T extends ServicePluginDefinition$2<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$1<T> & T;
4576
5188
 
4577
5189
  type _publicProvideHandlersType$1 = typeof provideHandlers$3;
4578
5190
  declare const provideHandlers$2: ReturnType<typeof createServicePluginModule$1<_publicProvideHandlersType>>;
@@ -5406,11 +6018,44 @@ interface IdentificationDataIdOneOf {
5406
6018
  appId?: string;
5407
6019
  }
5408
6020
 
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
+
5409
6054
  interface GetValidationViolationsEnvelope {
5410
6055
  request: GetValidationViolationsRequest;
5411
6056
  metadata: Context;
5412
6057
  }
5413
- declare const provideHandlers$1: ServicePluginDefinition<{
6058
+ declare const provideHandlers$1: ServicePluginDefinition$1<{
5414
6059
  /**
5415
6060
  *
5416
6061
  * This method retrieves validation violations from your app.
@@ -5422,6 +6067,35 @@ declare const provideHandlers$1: ServicePluginDefinition<{
5422
6067
  getValidationViolations(payload: GetValidationViolationsEnvelope): GetValidationViolationsResponse | Promise<GetValidationViolationsResponse>;
5423
6068
  }>;
5424
6069
 
6070
+ type ServicePluginMethodInput = {
6071
+ request: any;
6072
+ metadata: any;
6073
+ };
6074
+ type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
6075
+ type ServicePluginMethodMetadata = {
6076
+ name: string;
6077
+ primaryHttpMappingPath: string;
6078
+ transformations: {
6079
+ fromREST: (...args: unknown[]) => ServicePluginMethodInput;
6080
+ toREST: (...args: unknown[]) => unknown;
6081
+ };
6082
+ };
6083
+ type ServicePluginDefinition<Contract extends ServicePluginContract> = {
6084
+ __type: 'service-plugin-definition';
6085
+ componentType: string;
6086
+ methods: ServicePluginMethodMetadata[];
6087
+ __contract: Contract;
6088
+ };
6089
+ declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
6090
+ type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
6091
+
6092
+ declare global {
6093
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
6094
+ interface SymbolConstructor {
6095
+ readonly observable: symbol;
6096
+ }
6097
+ }
6098
+
5425
6099
  declare function createServicePluginModule<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
5426
6100
 
5427
6101
  type _publicProvideHandlersType = typeof provideHandlers$1;
@@ -5508,4 +6182,4 @@ declare namespace index_d {
5508
6182
  export { type index_d_Address as Address, type index_d_AddressLocation as AddressLocation, type index_d_AddressWithContact as AddressWithContact, type index_d_AppliedDiscount as AppliedDiscount, type index_d_AppliedDiscountDiscountSourceOneOf as AppliedDiscountDiscountSourceOneOf, type index_d_BuyerDetails as BuyerDetails, type index_d_CatalogReference as CatalogReference, index_d_CheckoutStage as CheckoutStage, type index_d_Context as Context, type index_d_Coupon as Coupon, type index_d_CustomField as CustomField, type index_d_CustomFields as CustomFields, type index_d_Description as Description, type index_d_DiscountRule as DiscountRule, type index_d_DiscountRuleName as DiscountRuleName, index_d_DiscountType as DiscountType, type index_d_ExtendedFields as ExtendedFields, type index_d_ExternalReference as ExternalReference, type index_d_FullAddressContactDetails as FullAddressContactDetails, type index_d_GetValidationViolationsRequest as GetValidationViolationsRequest, type index_d_GetValidationViolationsResponse as GetValidationViolationsResponse, type index_d_GiftCard as GiftCard, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, index_d_IdentityType as IdentityType, type index_d_ItemTaxFullDetails as ItemTaxFullDetails, type index_d_ItemType as ItemType, index_d_ItemTypeItemType as ItemTypeItemType, type index_d_ItemTypeItemTypeDataOneOf as ItemTypeItemTypeDataOneOf, index_d_JurisdictionType as JurisdictionType, type index_d_LineItem as LineItem, type index_d_LineItemPricesData as LineItemPricesData, type index_d_MerchantDiscount as MerchantDiscount, type index_d_MultiCurrencyPrice as MultiCurrencyPrice, index_d_NameInLineItem as NameInLineItem, index_d_NameInOther as NameInOther, type index_d_Other as Other, type index_d_PhysicalProperties as PhysicalProperties, type index_d_PriceSummary as PriceSummary, type index_d_ProductName as ProductName, type index_d_SelectedCarrierServiceOption as SelectedCarrierServiceOption, type index_d_SelectedCarrierServiceOptionPrices as SelectedCarrierServiceOptionPrices, index_d_Severity as Severity, type index_d_ShippingInfo as ShippingInfo, index_d_Source as Source, type index_d_SourceInfo as SourceInfo, type index_d_Stage as Stage, type index_d_StageStagesOneOf as StageStagesOneOf, type index_d_StreetAddress as StreetAddress, index_d_SubscriptionFrequency as SubscriptionFrequency, type index_d_SubscriptionOptionInfo as SubscriptionOptionInfo, type index_d_SubscriptionSettings as SubscriptionSettings, type index_d_Target as Target, type index_d_TargetLineItem as TargetLineItem, type index_d_TargetTargetTypeOneOf as TargetTargetTypeOneOf, type index_d_TaxBreakdown as TaxBreakdown, type index_d_Title as Title, type index_d_ValidationInfo as ValidationInfo, type index_d_ValidationsSPIConfig as ValidationsSPIConfig, type index_d_VatId as VatId, index_d_VatType as VatType, type index_d_Violation as Violation, index_d_WeightUnit as WeightUnit, type index_d__publicProvideHandlersType as _publicProvideHandlersType, index_d_provideHandlers as provideHandlers, provideHandlers$1 as publicProvideHandlers };
5509
6183
  }
5510
6184
 
5511
- export { index_d$4 as additionalFees, index_d$3 as customTriggers, index_d$2 as discounts, index_d$6 as giftVouchersProvider, index_d$1 as paymentSettings, index_d$5 as shippingRates, index_d as validations };
6185
+ export { index_d$4 as additionalFees, index_d$3 as customTriggers, index_d$2 as discounts, index_d$7 as giftVouchersProvider, index_d$1 as paymentSettings, index_d$6 as recommendationsProvider, index_d$5 as shippingRates, index_d as validations };