@wix/auto_sdk_ecom_validations 1.0.7 → 1.0.9

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.
Files changed (69) hide show
  1. package/build/cjs/index.d.ts +2 -0
  2. package/build/cjs/index.js +19 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +15 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/src/interfaces-ecommerce-v1-validations-provider.context.d.ts +5 -0
  8. package/build/cjs/src/interfaces-ecommerce-v1-validations-provider.context.js +9 -0
  9. package/build/cjs/src/interfaces-ecommerce-v1-validations-provider.context.js.map +1 -0
  10. package/build/cjs/src/interfaces-ecommerce-v1-validations-provider.public.d.ts +19 -0
  11. package/build/cjs/src/interfaces-ecommerce-v1-validations-provider.public.js +50 -0
  12. package/build/cjs/src/interfaces-ecommerce-v1-validations-provider.public.js.map +1 -0
  13. package/build/{index.d.mts → cjs/src/service-plugins-types.d.ts} +74 -94
  14. package/build/cjs/src/service-plugins-types.js +121 -0
  15. package/build/cjs/src/service-plugins-types.js.map +1 -0
  16. package/build/es/index.d.ts +2 -0
  17. package/build/es/index.js +3 -0
  18. package/build/es/index.js.map +1 -0
  19. package/build/es/index.typings.d.ts +15 -0
  20. package/build/es/index.typings.js +2 -0
  21. package/build/es/index.typings.js.map +1 -0
  22. package/build/es/src/interfaces-ecommerce-v1-validations-provider.context.d.ts +5 -0
  23. package/build/es/src/interfaces-ecommerce-v1-validations-provider.context.js +6 -0
  24. package/build/es/src/interfaces-ecommerce-v1-validations-provider.context.js.map +1 -0
  25. package/build/es/src/interfaces-ecommerce-v1-validations-provider.public.d.ts +19 -0
  26. package/build/es/src/interfaces-ecommerce-v1-validations-provider.public.js +47 -0
  27. package/build/es/src/interfaces-ecommerce-v1-validations-provider.public.js.map +1 -0
  28. package/build/{index.d.ts → es/src/service-plugins-types.d.ts} +74 -94
  29. package/build/es/src/service-plugins-types.js +118 -0
  30. package/build/es/src/service-plugins-types.js.map +1 -0
  31. package/build/internal/cjs/index.d.ts +2 -0
  32. package/build/internal/cjs/index.js +19 -0
  33. package/build/internal/cjs/index.js.map +1 -0
  34. package/build/internal/cjs/index.typings.d.ts +15 -0
  35. package/build/internal/cjs/index.typings.js +18 -0
  36. package/build/internal/cjs/index.typings.js.map +1 -0
  37. package/build/internal/cjs/src/interfaces-ecommerce-v1-validations-provider.context.d.ts +5 -0
  38. package/build/internal/cjs/src/interfaces-ecommerce-v1-validations-provider.context.js +9 -0
  39. package/build/internal/cjs/src/interfaces-ecommerce-v1-validations-provider.context.js.map +1 -0
  40. package/build/internal/cjs/src/interfaces-ecommerce-v1-validations-provider.public.d.ts +19 -0
  41. package/build/internal/cjs/src/interfaces-ecommerce-v1-validations-provider.public.js +50 -0
  42. package/build/internal/cjs/src/interfaces-ecommerce-v1-validations-provider.public.js.map +1 -0
  43. package/build/internal/{index.d.ts → cjs/src/service-plugins-types.d.ts} +74 -94
  44. package/build/internal/cjs/src/service-plugins-types.js +121 -0
  45. package/build/internal/cjs/src/service-plugins-types.js.map +1 -0
  46. package/build/internal/es/index.d.ts +2 -0
  47. package/build/internal/es/index.js +3 -0
  48. package/build/internal/es/index.js.map +1 -0
  49. package/build/internal/es/index.typings.d.ts +15 -0
  50. package/build/internal/es/index.typings.js +2 -0
  51. package/build/internal/es/index.typings.js.map +1 -0
  52. package/build/internal/es/src/interfaces-ecommerce-v1-validations-provider.context.d.ts +5 -0
  53. package/build/internal/es/src/interfaces-ecommerce-v1-validations-provider.context.js +6 -0
  54. package/build/internal/es/src/interfaces-ecommerce-v1-validations-provider.context.js.map +1 -0
  55. package/build/internal/es/src/interfaces-ecommerce-v1-validations-provider.public.d.ts +19 -0
  56. package/build/internal/es/src/interfaces-ecommerce-v1-validations-provider.public.js +47 -0
  57. package/build/internal/es/src/interfaces-ecommerce-v1-validations-provider.public.js.map +1 -0
  58. package/build/internal/{index.d.mts → es/src/service-plugins-types.d.ts} +74 -94
  59. package/build/internal/es/src/service-plugins-types.js +118 -0
  60. package/build/internal/es/src/service-plugins-types.js.map +1 -0
  61. package/package.json +11 -12
  62. package/build/index.js +0 -194
  63. package/build/index.js.map +0 -1
  64. package/build/index.mjs +0 -156
  65. package/build/index.mjs.map +0 -1
  66. package/build/internal/index.js +0 -194
  67. package/build/internal/index.js.map +0 -1
  68. package/build/internal/index.mjs +0 -156
  69. package/build/internal/index.mjs.map +0 -1
@@ -1,13 +1,10 @@
1
- import { createServicePluginModule } from '@wix/sdk-runtime/service-plugin-modules';
2
- import { ServicePluginDefinition } from '@wix/sdk-types';
3
-
4
- interface GetValidationViolationsRequest {
1
+ export interface GetValidationViolationsRequest {
5
2
  /** Information about the source of the request. */
6
3
  sourceInfo?: SourceInfo;
7
4
  /** Information to validate. */
8
5
  validationInfo?: ValidationInfo;
9
6
  }
10
- interface SourceInfo {
7
+ export interface SourceInfo {
11
8
  /** Source of the request. */
12
9
  source?: Source;
13
10
  /**
@@ -18,7 +15,7 @@ interface SourceInfo {
18
15
  /** The stage at which the service plugin is called. */
19
16
  stage?: Stage;
20
17
  }
21
- declare enum Source {
18
+ export declare enum Source {
22
19
  /** Context cannot be recognized */
23
20
  OTHER = "OTHER",
24
21
  /** Called from Ecom's Cart service */
@@ -26,16 +23,16 @@ declare enum Source {
26
23
  /** Called from Ecom's Checkout service */
27
24
  CHECKOUT = "CHECKOUT"
28
25
  }
29
- interface Stage extends StageStagesOneOf {
26
+ export interface Stage extends StageStagesOneOf {
30
27
  /** Supported values: */
31
28
  checkoutStage?: CheckoutStage;
32
29
  }
33
30
  /** @oneof */
34
- interface StageStagesOneOf {
31
+ export interface StageStagesOneOf {
35
32
  /** Supported values: */
36
33
  checkoutStage?: CheckoutStage;
37
34
  }
38
- declare enum CheckoutStage {
35
+ export declare enum CheckoutStage {
39
36
  /** Not implemented. */
40
37
  UNKNOWN_CHECKOUT_STAGE = "UNKNOWN_CHECKOUT_STAGE",
41
38
  /** Used during the initialization of the checkout (Create Checkout). */
@@ -46,7 +43,7 @@ declare enum CheckoutStage {
46
43
  ORDER_CREATION = "ORDER_CREATION"
47
44
  }
48
45
  /** ValidationsData is the main entity of ValidationsSPI, which contains all the data required for validations */
49
- interface ValidationInfo {
46
+ export interface ValidationInfo {
50
47
  /** Buyer details. */
51
48
  buyerDetails?: BuyerDetails;
52
49
  /**
@@ -80,8 +77,13 @@ interface ValidationInfo {
80
77
  * @maxSize 320
81
78
  */
82
79
  appliedDiscounts?: AppliedDiscount[];
80
+ /**
81
+ * References to an external app and resource associated with this checkout.
82
+ * Used for integration and tracking across different platforms.
83
+ */
84
+ externalReference?: ExternalReference;
83
85
  }
84
- interface BuyerDetails {
86
+ export interface BuyerDetails {
85
87
  /**
86
88
  * Buyer's email address.
87
89
  * @format EMAIL
@@ -93,7 +95,7 @@ interface BuyerDetails {
93
95
  */
94
96
  contactId?: string | null;
95
97
  }
96
- interface LineItem {
98
+ export interface LineItem {
97
99
  /**
98
100
  * Line item ID.
99
101
  * @format GUID
@@ -127,7 +129,7 @@ interface LineItem {
127
129
  pricesBreakdown?: LineItemPricesData;
128
130
  }
129
131
  /** Used for grouping line items. Sent when an item is added to a cart, checkout, or order. */
130
- interface CatalogReference {
132
+ export interface CatalogReference {
131
133
  /**
132
134
  * ID of the item within the catalog it belongs to.
133
135
  * @minLength 1
@@ -153,7 +155,7 @@ interface CatalogReference {
153
155
  */
154
156
  options?: Record<string, any> | null;
155
157
  }
156
- interface ProductName {
158
+ export interface ProductName {
157
159
  /**
158
160
  * __Required.__ Item name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
159
161
  *
@@ -174,7 +176,7 @@ interface ProductName {
174
176
  */
175
177
  translated?: string | null;
176
178
  }
177
- interface MultiCurrencyPrice {
179
+ export interface MultiCurrencyPrice {
178
180
  /**
179
181
  * Amount.
180
182
  * @decimalValue options { gte:0, lte:1000000000000000 }
@@ -197,7 +199,7 @@ interface MultiCurrencyPrice {
197
199
  */
198
200
  formattedConvertedAmount?: string;
199
201
  }
200
- interface PhysicalProperties {
202
+ export interface PhysicalProperties {
201
203
  /** Line item weight. Measurement unit matches the weight unit specified in `weightUnit` in the request. */
202
204
  weight?: number | null;
203
205
  /**
@@ -208,27 +210,27 @@ interface PhysicalProperties {
208
210
  /** Whether this line item is shippable. */
209
211
  shippable?: boolean;
210
212
  }
211
- interface ItemType extends ItemTypeItemTypeDataOneOf {
213
+ export interface ItemType extends ItemTypeItemTypeDataOneOf {
212
214
  /** Preset item type. */
213
215
  preset?: ItemTypeItemType;
214
216
  /** Custom item type. When none of the preset types are suitable, specifies the custom type. */
215
217
  custom?: string;
216
218
  }
217
219
  /** @oneof */
218
- interface ItemTypeItemTypeDataOneOf {
220
+ export interface ItemTypeItemTypeDataOneOf {
219
221
  /** Preset item type. */
220
222
  preset?: ItemTypeItemType;
221
223
  /** Custom item type. When none of the preset types are suitable, specifies the custom type. */
222
224
  custom?: string;
223
225
  }
224
- declare enum ItemTypeItemType {
226
+ export declare enum ItemTypeItemType {
225
227
  UNRECOGNISED = "UNRECOGNISED",
226
228
  PHYSICAL = "PHYSICAL",
227
229
  DIGITAL = "DIGITAL",
228
230
  GIFT_CARD = "GIFT_CARD",
229
231
  SERVICE = "SERVICE"
230
232
  }
231
- interface SubscriptionOptionInfo {
233
+ export interface SubscriptionOptionInfo {
232
234
  /** Subscription option settings. */
233
235
  subscriptionSettings?: SubscriptionSettings;
234
236
  /** Subscription option title. */
@@ -236,7 +238,7 @@ interface SubscriptionOptionInfo {
236
238
  /** Subscription option description. */
237
239
  description?: Description;
238
240
  }
239
- interface SubscriptionSettings {
241
+ export interface SubscriptionSettings {
240
242
  /** Frequency of recurring payment. */
241
243
  frequency?: SubscriptionFrequency;
242
244
  /**
@@ -257,14 +259,14 @@ interface SubscriptionSettings {
257
259
  billingCycles?: number | null;
258
260
  }
259
261
  /** Frequency unit of recurring payment */
260
- declare enum SubscriptionFrequency {
262
+ export declare enum SubscriptionFrequency {
261
263
  UNDEFINED = "UNDEFINED",
262
264
  DAY = "DAY",
263
265
  WEEK = "WEEK",
264
266
  MONTH = "MONTH",
265
267
  YEAR = "YEAR"
266
268
  }
267
- interface FreeTrialPeriod {
269
+ export interface FreeTrialPeriod {
268
270
  /** Frequency of period. Values: DAY, WEEK, MONTH, YEAR */
269
271
  frequency?: SubscriptionFrequency;
270
272
  /**
@@ -274,7 +276,7 @@ interface FreeTrialPeriod {
274
276
  */
275
277
  interval?: number;
276
278
  }
277
- interface Title {
279
+ export interface Title {
278
280
  /**
279
281
  * Subscription option name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
280
282
  * @minLength 1
@@ -290,7 +292,7 @@ interface Title {
290
292
  */
291
293
  translated?: string | null;
292
294
  }
293
- interface Description {
295
+ export interface Description {
294
296
  /**
295
297
  * Subscription option description.
296
298
  * @maxLength 500
@@ -302,7 +304,7 @@ interface Description {
302
304
  */
303
305
  translated?: string | null;
304
306
  }
305
- interface LineItemPricesData {
307
+ export interface LineItemPricesData {
306
308
  /** Total price after discounts and after tax. */
307
309
  totalPriceAfterTax?: MultiCurrencyPrice;
308
310
  /** Total price after discounts, and before tax. */
@@ -320,7 +322,7 @@ interface LineItemPricesData {
320
322
  /** Item price **before** all discounts. Defaults to `price` when not provided. */
321
323
  fullPrice?: MultiCurrencyPrice;
322
324
  }
323
- interface ItemTaxFullDetails {
325
+ export interface ItemTaxFullDetails {
324
326
  /** The portion of the total amount of this estimate that was taxable. */
325
327
  taxableAmount?: MultiCurrencyPrice;
326
328
  /** Calculated tax, based on `taxable_amount`. */
@@ -333,7 +335,7 @@ interface ItemTaxFullDetails {
333
335
  */
334
336
  taxBreakdown?: TaxBreakdown[];
335
337
  }
336
- interface TaxBreakdown {
338
+ export interface TaxBreakdown {
337
339
  /**
338
340
  * The name of the jurisdiction to which this tax detail applies. For example, "New York" or "Quebec".
339
341
  * @maxLength 200
@@ -365,7 +367,7 @@ interface TaxBreakdown {
365
367
  jurisdictionType?: JurisdictionType;
366
368
  }
367
369
  /** JurisdictionType represents the type of the jurisdiction in which this tax detail applies (e.g. Country,State,County,City,Special). */
368
- declare enum JurisdictionType {
370
+ export declare enum JurisdictionType {
369
371
  /** Undefined jurisdiction type. */
370
372
  UNDEFINED = "UNDEFINED",
371
373
  /** Country jurisdiction. */
@@ -379,7 +381,7 @@ declare enum JurisdictionType {
379
381
  /** Special jurisdiction. */
380
382
  SPECIAL = "SPECIAL"
381
383
  }
382
- interface GiftCard {
384
+ export interface GiftCard {
383
385
  /**
384
386
  * Gift card ID.
385
387
  * @deprecated
@@ -395,7 +397,7 @@ interface GiftCard {
395
397
  */
396
398
  appId?: string;
397
399
  }
398
- declare enum WeightUnit {
400
+ export declare enum WeightUnit {
399
401
  /** Weight unit can't be classified due to an error. */
400
402
  UNSPECIFIED_WEIGHT_UNIT = "UNSPECIFIED_WEIGHT_UNIT",
401
403
  /** Kilograms. */
@@ -403,7 +405,7 @@ declare enum WeightUnit {
403
405
  /** Pounds. */
404
406
  LB = "LB"
405
407
  }
406
- interface PriceSummary {
408
+ export interface PriceSummary {
407
409
  /** Subtotal of all line items, before discounts and before tax. */
408
410
  subtotal?: MultiCurrencyPrice;
409
411
  /** Total shipping price, before discounts and before tax. */
@@ -418,14 +420,14 @@ interface PriceSummary {
418
420
  additionalFees?: MultiCurrencyPrice;
419
421
  }
420
422
  /** Billing Info and shipping details */
421
- interface AddressWithContact {
423
+ export interface AddressWithContact {
422
424
  /** Address. */
423
425
  address?: Address;
424
426
  /** Contact details. */
425
427
  contactDetails?: FullAddressContactDetails;
426
428
  }
427
429
  /** Physical address */
428
- interface Address {
430
+ export interface Address {
429
431
  /**
430
432
  * Two-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.
431
433
  * @format COUNTRY
@@ -469,20 +471,20 @@ interface Address {
469
471
  */
470
472
  subdivisionFullname?: string | null;
471
473
  }
472
- interface StreetAddress {
474
+ export interface StreetAddress {
473
475
  /** Street number. */
474
476
  number?: string;
475
477
  /** Street name. */
476
478
  name?: string;
477
479
  }
478
- interface AddressLocation {
480
+ export interface AddressLocation {
479
481
  /** Address latitude. */
480
482
  latitude?: number | null;
481
483
  /** Address longitude. */
482
484
  longitude?: number | null;
483
485
  }
484
486
  /** Full contact details for an address */
485
- interface FullAddressContactDetails {
487
+ export interface FullAddressContactDetails {
486
488
  /**
487
489
  * First name.
488
490
  * @maxLength 100
@@ -506,7 +508,7 @@ interface FullAddressContactDetails {
506
508
  /** Tax information (for Brazil only). If ID is provided, `vatId.type` must also be set, `UNSPECIFIED` is not allowed. */
507
509
  vatId?: VatId;
508
510
  }
509
- interface VatId {
511
+ export interface VatId {
510
512
  /** Customer's tax ID. */
511
513
  _id?: string;
512
514
  /**
@@ -519,18 +521,18 @@ interface VatId {
519
521
  type?: VatType;
520
522
  }
521
523
  /** tax info types */
522
- declare enum VatType {
524
+ export declare enum VatType {
523
525
  UNSPECIFIED = "UNSPECIFIED",
524
526
  /** CPF - for individual tax payers. */
525
527
  CPF = "CPF",
526
528
  /** CNPJ - for corporations */
527
529
  CNPJ = "CNPJ"
528
530
  }
529
- interface ShippingInfo {
531
+ export interface ShippingInfo {
530
532
  /** Selected option out of the options allowed for the `region`. */
531
533
  selectedCarrierServiceOption?: SelectedCarrierServiceOption;
532
534
  }
533
- interface SelectedCarrierServiceOption {
535
+ export interface SelectedCarrierServiceOption {
534
536
  /**
535
537
  * Unique identifier of selected option. For example, `usps_std_overnight`.
536
538
  * @maxLength 100
@@ -552,7 +554,7 @@ interface SelectedCarrierServiceOption {
552
554
  /** If the delivery solution is a partial and doesn't apply to all items. */
553
555
  partial?: boolean | null;
554
556
  }
555
- interface SelectedCarrierServiceOptionPrices {
557
+ export interface SelectedCarrierServiceOptionPrices {
556
558
  /** Total shipping price, after discount and after tax. */
557
559
  totalPriceAfterTax?: MultiCurrencyPrice;
558
560
  /** Total price of shipping after discounts (when relevant), and before tax. */
@@ -564,7 +566,7 @@ interface SelectedCarrierServiceOptionPrices {
564
566
  /** Shipping price before discount and before tax. */
565
567
  price?: MultiCurrencyPrice;
566
568
  }
567
- interface DeliveryAllocation {
569
+ export interface DeliveryAllocation {
568
570
  /** The delivery option's carrier details, could be multiple if the delivery option is a combination of multiple carriers */
569
571
  deliveryCarrier?: Carrier;
570
572
  /** The delivery region that are relevant for this delivery solution. */
@@ -572,7 +574,7 @@ interface DeliveryAllocation {
572
574
  /** Populated if the delivery solution is a partially supplied by this carrier. */
573
575
  applicableLineItems?: ApplicableLineItems;
574
576
  }
575
- interface Carrier {
577
+ export interface Carrier {
576
578
  /**
577
579
  * The carrier app id
578
580
  * @format GUID
@@ -584,7 +586,7 @@ interface Carrier {
584
586
  */
585
587
  code?: string;
586
588
  }
587
- interface Region {
589
+ export interface Region {
588
590
  /**
589
591
  * The delivery region id.
590
592
  * @format GUID
@@ -596,7 +598,7 @@ interface Region {
596
598
  */
597
599
  name?: string | null;
598
600
  }
599
- interface ApplicableLineItems {
601
+ export interface ApplicableLineItems {
600
602
  /**
601
603
  * Line items that the delivery solution is for.
602
604
  * @maxSize 300
@@ -605,14 +607,14 @@ interface ApplicableLineItems {
605
607
  */
606
608
  lineItemIds?: string[];
607
609
  }
608
- interface CustomFields {
610
+ export interface CustomFields {
609
611
  /**
610
612
  * List of custom fields
611
613
  * @maxSize 50
612
614
  */
613
615
  fields?: CustomField[];
614
616
  }
615
- interface CustomField {
617
+ export interface CustomField {
616
618
  /** Custom field value. */
617
619
  value?: any;
618
620
  /**
@@ -628,7 +630,7 @@ interface CustomField {
628
630
  */
629
631
  translatedTitle?: string | null;
630
632
  }
631
- interface AppliedDiscount extends AppliedDiscountDiscountSourceOneOf {
633
+ export interface AppliedDiscount extends AppliedDiscountDiscountSourceOneOf {
632
634
  /** Coupon details. */
633
635
  coupon?: Coupon;
634
636
  /** Merchant discount. */
@@ -644,7 +646,7 @@ interface AppliedDiscount extends AppliedDiscountDiscountSourceOneOf {
644
646
  lineItemIds?: string[];
645
647
  }
646
648
  /** @oneof */
647
- interface AppliedDiscountDiscountSourceOneOf {
649
+ export interface AppliedDiscountDiscountSourceOneOf {
648
650
  /** Coupon details. */
649
651
  coupon?: Coupon;
650
652
  /** Merchant discount. */
@@ -652,7 +654,7 @@ interface AppliedDiscountDiscountSourceOneOf {
652
654
  /** Discount rule. */
653
655
  discountRule?: DiscountRule;
654
656
  }
655
- declare enum DiscountType {
657
+ export declare enum DiscountType {
656
658
  /** Global discount. */
657
659
  GLOBAL = "GLOBAL",
658
660
  /** Discount for specific items. */
@@ -661,7 +663,7 @@ declare enum DiscountType {
661
663
  SHIPPING = "SHIPPING"
662
664
  }
663
665
  /** Coupon */
664
- interface Coupon {
666
+ export interface Coupon {
665
667
  /** Coupon ID. */
666
668
  _id?: string;
667
669
  /** Coupon code. */
@@ -671,11 +673,11 @@ interface Coupon {
671
673
  /** @decimalValue options { gte:0, lte:1000000000000000 } */
672
674
  amount?: string;
673
675
  }
674
- interface MerchantDiscount {
676
+ export interface MerchantDiscount {
675
677
  /** @decimalValue options { gte:0, lte:1000000000000000 } */
676
678
  amount?: string;
677
679
  }
678
- interface DiscountRule {
680
+ export interface DiscountRule {
679
681
  /**
680
682
  * Discount rule ID.
681
683
  * @format GUID
@@ -686,7 +688,7 @@ interface DiscountRule {
686
688
  /** @decimalValue options { gte:0, lte:1000000000000000 } */
687
689
  amount?: string;
688
690
  }
689
- interface DiscountRuleName {
691
+ export interface DiscountRuleName {
690
692
  /**
691
693
  * Original discount rule name (in site's default language).
692
694
  * @minLength 1
@@ -700,7 +702,7 @@ interface DiscountRuleName {
700
702
  */
701
703
  translated?: string | null;
702
704
  }
703
- interface ExternalReference {
705
+ export interface ExternalReference {
704
706
  /**
705
707
  * ID of the app associated with the purchase flow.
706
708
  * For example, the Wix Pay Links app ID.
@@ -717,7 +719,7 @@ interface ExternalReference {
717
719
  */
718
720
  resourceId?: string | null;
719
721
  }
720
- interface ExtendedFields {
722
+ export interface ExtendedFields {
721
723
  /**
722
724
  * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
723
725
  * The value of each key is structured according to the schema defined when the extended fields were configured.
@@ -728,11 +730,11 @@ interface ExtendedFields {
728
730
  */
729
731
  namespaces?: Record<string, Record<string, any>>;
730
732
  }
731
- interface GetValidationViolationsResponse {
733
+ export interface GetValidationViolationsResponse {
732
734
  /** List of validation violations. */
733
735
  violations?: Violation[];
734
736
  }
735
- interface Violation {
737
+ export interface Violation {
736
738
  /** Severity of the violation. The violations are shown on the cart and checkout pages. A warning is displayed as yellow, and allows a site visitor to proceed with caution. An error is displayed as red, and doesn't allow a site visitor to proceed with the eCommerce flow. */
737
739
  severity?: Severity;
738
740
  /** Target location on a checkout or cart page where the violation will be displayed. */
@@ -744,7 +746,7 @@ interface Violation {
744
746
  */
745
747
  description?: string | null;
746
748
  }
747
- declare enum Severity {
749
+ export declare enum Severity {
748
750
  /** The user is allowed to move forward in the flow. */
749
751
  WARNING = "WARNING",
750
752
  /**
@@ -753,48 +755,48 @@ declare enum Severity {
753
755
  */
754
756
  ERROR = "ERROR"
755
757
  }
756
- interface Target extends TargetTargetTypeOneOf {
758
+ export interface Target extends TargetTargetTypeOneOf {
757
759
  /** General (other) violation. */
758
760
  other?: Other;
759
761
  /** Specific line item violation. */
760
762
  lineItem?: TargetLineItem;
761
763
  }
762
764
  /** @oneof */
763
- interface TargetTargetTypeOneOf {
765
+ export interface TargetTargetTypeOneOf {
764
766
  /** General (other) violation. */
765
767
  other?: Other;
766
768
  /** Specific line item violation. */
767
769
  lineItem?: TargetLineItem;
768
770
  }
769
771
  /** Available locations on the webpage */
770
- declare enum NameInOther {
772
+ export declare enum NameInOther {
771
773
  /** Default location, in case no specific location is specified. */
772
774
  OTHER_DEFAULT = "OTHER_DEFAULT"
773
775
  }
774
776
  /** Available locations on the line item */
775
- declare enum NameInLineItem {
777
+ export declare enum NameInLineItem {
776
778
  /** Default location, in case no specific location is specified. */
777
779
  LINE_ITEM_DEFAULT = "LINE_ITEM_DEFAULT"
778
780
  }
779
- declare enum SuggestedFix {
781
+ export declare enum SuggestedFix {
780
782
  /** No suggested fix is specified. The user should refer to the violation description to resolve the issue. */
781
783
  UNKNOWN_SUGGESTED_FIX = "UNKNOWN_SUGGESTED_FIX",
782
784
  /** The line item should be removed from the cart or checkout to resolve the violation. */
783
785
  REMOVE_LINE_ITEM = "REMOVE_LINE_ITEM"
784
786
  }
785
787
  /** General (other) violation. */
786
- interface Other {
788
+ export interface Other {
787
789
  /** Location on a checkout or a cart page where a general (other) violation will be displayed. */
788
790
  name?: NameInOther;
789
791
  }
790
792
  /** Specific line item violation. */
791
- interface TargetLineItem {
793
+ export interface TargetLineItem {
792
794
  /** Location on a checkout or a cart page where the specific line item violation will be displayed. */
793
795
  name?: NameInLineItem;
794
796
  /** ID of the line item containing the violation. */
795
797
  _id?: string | null;
796
798
  }
797
- interface ValidationsSPIConfig {
799
+ export interface ValidationsSPIConfig {
798
800
  /** Whether to validate the cart page in addition to the checkout page. Default: `false` */
799
801
  validateInCart?: boolean;
800
802
  /**
@@ -817,7 +819,7 @@ interface ValidationsSPIConfig {
817
819
  * }
818
820
  * ```
819
821
  */
820
- interface Context {
822
+ export interface Context {
821
823
  /** 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. */
822
824
  requestId?: string | null;
823
825
  /**
@@ -835,14 +837,14 @@ interface Context {
835
837
  */
836
838
  instanceId?: string | null;
837
839
  }
838
- declare enum IdentityType {
840
+ export declare enum IdentityType {
839
841
  UNKNOWN = "UNKNOWN",
840
842
  ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
841
843
  MEMBER = "MEMBER",
842
844
  WIX_USER = "WIX_USER",
843
845
  APP = "APP"
844
846
  }
845
- interface IdentificationData extends IdentificationDataIdOneOf {
847
+ export interface IdentificationData extends IdentificationDataIdOneOf {
846
848
  /**
847
849
  * ID of a site visitor that has not logged in to the site.
848
850
  * @format GUID
@@ -867,7 +869,7 @@ interface IdentificationData extends IdentificationDataIdOneOf {
867
869
  identityType?: IdentityType;
868
870
  }
869
871
  /** @oneof */
870
- interface IdentificationDataIdOneOf {
872
+ export interface IdentificationDataIdOneOf {
871
873
  /**
872
874
  * ID of a site visitor that has not logged in to the site.
873
875
  * @format GUID
@@ -889,25 +891,3 @@ interface IdentificationDataIdOneOf {
889
891
  */
890
892
  appId?: string;
891
893
  }
892
-
893
- interface GetValidationViolationsEnvelope {
894
- request: GetValidationViolationsRequest;
895
- metadata: Context;
896
- }
897
- declare const provideHandlers$1: ServicePluginDefinition<{
898
- /**
899
- *
900
- * This method retrieves validation violations from your app.
901
- *
902
- * Wix calls this method when certain actions are performed on a visitor's cart and checkout. For example, when an item is added to the cart, or when a coupon is added to a checkout.
903
- * This method validates a visitor's cart and checkout, and returns any validation violations (using the structure provided by Wix eCommerce). Site visitors can see the validation violations in their cart and checkout pages. If there aren't any validation violations, the method returns an object containing an empty list.
904
- *
905
- * > __Notes:__
906
- * > + Do not call the Estimate Cart Totals, Estimate Current Cart Totals or Get Checkout methods from your implementation code for Get Validation Violations. Doing so will result in an error.
907
- * > + By default, this method only retrieves validation violations from a visitor's checkout. If you want to also retrieve validation violations from a visitor's cart, set the `validateInCart` parameter to `true` in the Ecom Validations Integration's config file. */
908
- getValidationViolations(payload: GetValidationViolationsEnvelope): GetValidationViolationsResponse | Promise<GetValidationViolationsResponse>;
909
- }>;
910
-
911
- declare const provideHandlers: ReturnType<typeof createServicePluginModule<typeof publicProvideHandlers>>;
912
-
913
- export { type Address, type AddressLocation, type AddressWithContact, type ApplicableLineItems, type AppliedDiscount, type AppliedDiscountDiscountSourceOneOf, type BuyerDetails, type Carrier, type CatalogReference, CheckoutStage, type Context, type Coupon, type CustomField, type CustomFields, type DeliveryAllocation, type Description, type DiscountRule, type DiscountRuleName, DiscountType, type ExtendedFields, type ExternalReference, type FreeTrialPeriod, type FullAddressContactDetails, type GetValidationViolationsRequest, type GetValidationViolationsResponse, type GiftCard, type IdentificationData, type IdentificationDataIdOneOf, IdentityType, type ItemTaxFullDetails, type ItemType, ItemTypeItemType, type ItemTypeItemTypeDataOneOf, JurisdictionType, type LineItem, type LineItemPricesData, type MerchantDiscount, type MultiCurrencyPrice, NameInLineItem, NameInOther, type Other, type PhysicalProperties, type PriceSummary, type ProductName, type Region, type SelectedCarrierServiceOption, type SelectedCarrierServiceOptionPrices, Severity, type ShippingInfo, Source, type SourceInfo, type Stage, type StageStagesOneOf, type StreetAddress, SubscriptionFrequency, type SubscriptionOptionInfo, type SubscriptionSettings, SuggestedFix, type Target, type TargetLineItem, type TargetTargetTypeOneOf, type TaxBreakdown, type Title, type ValidationInfo, type ValidationsSPIConfig, type VatId, VatType, type Violation, WeightUnit, provideHandlers, provideHandlers$1 as publicProvideHandlers };