@wix/auto_sdk_ecom_abandoned-checkouts 1.0.42 → 1.0.43

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 (41) hide show
  1. package/build/{internal/cjs/ecom-v1-abandoned-checkout-abandoned-checkouts.universal-Cc3dfanX.d.ts → cjs/ecom-v1-abandoned-checkout-abandoned-checkouts.universal-C8oWIE96.d.ts} +89 -40
  2. package/build/cjs/index.d.ts +2 -2
  3. package/build/cjs/index.js +38 -5
  4. package/build/cjs/index.js.map +1 -1
  5. package/build/cjs/index.typings.d.ts +2 -2
  6. package/build/cjs/index.typings.js +23 -2
  7. package/build/cjs/index.typings.js.map +1 -1
  8. package/build/cjs/meta.d.ts +1 -1
  9. package/build/cjs/meta.js +15 -2
  10. package/build/cjs/meta.js.map +1 -1
  11. package/build/{internal/es/ecom-v1-abandoned-checkout-abandoned-checkouts.universal-Cc3dfanX.d.mts → es/ecom-v1-abandoned-checkout-abandoned-checkouts.universal-C8oWIE96.d.mts} +89 -40
  12. package/build/es/index.d.mts +2 -2
  13. package/build/es/index.mjs +37 -5
  14. package/build/es/index.mjs.map +1 -1
  15. package/build/es/index.typings.d.mts +2 -2
  16. package/build/es/index.typings.mjs +22 -2
  17. package/build/es/index.typings.mjs.map +1 -1
  18. package/build/es/meta.d.mts +1 -1
  19. package/build/es/meta.mjs +15 -2
  20. package/build/es/meta.mjs.map +1 -1
  21. package/build/{cjs/ecom-v1-abandoned-checkout-abandoned-checkouts.universal-D7Tj5DAM.d.ts → internal/cjs/ecom-v1-abandoned-checkout-abandoned-checkouts.universal-BpGTpVP7.d.ts} +123 -7
  22. package/build/internal/cjs/index.d.ts +2 -2
  23. package/build/internal/cjs/index.js +38 -5
  24. package/build/internal/cjs/index.js.map +1 -1
  25. package/build/internal/cjs/index.typings.d.ts +2 -2
  26. package/build/internal/cjs/index.typings.js +23 -2
  27. package/build/internal/cjs/index.typings.js.map +1 -1
  28. package/build/internal/cjs/meta.d.ts +1 -1
  29. package/build/internal/cjs/meta.js +15 -2
  30. package/build/internal/cjs/meta.js.map +1 -1
  31. package/build/{es/ecom-v1-abandoned-checkout-abandoned-checkouts.universal-D7Tj5DAM.d.mts → internal/es/ecom-v1-abandoned-checkout-abandoned-checkouts.universal-BpGTpVP7.d.mts} +123 -7
  32. package/build/internal/es/index.d.mts +2 -2
  33. package/build/internal/es/index.mjs +37 -5
  34. package/build/internal/es/index.mjs.map +1 -1
  35. package/build/internal/es/index.typings.d.mts +2 -2
  36. package/build/internal/es/index.typings.mjs +22 -2
  37. package/build/internal/es/index.typings.mjs.map +1 -1
  38. package/build/internal/es/meta.d.mts +1 -1
  39. package/build/internal/es/meta.mjs +15 -2
  40. package/build/internal/es/meta.mjs.map +1 -1
  41. package/package.json +2 -2
@@ -59,20 +59,6 @@ interface AbandonedCheckout {
59
59
  checkoutUrl?: string;
60
60
  /** Subtotal price of all line items, before discounts and before tax. */
61
61
  subtotalPrice?: MultiCurrencyPrice;
62
- /**
63
- * Line items.
64
- * @internal
65
- * @minSize 1
66
- * @maxSize 300
67
- * @readonly
68
- */
69
- lineItems?: LineItem[];
70
- /**
71
- * Coupon codes applied to this abandoned checkout.
72
- * @internal
73
- * @maxLength 50
74
- */
75
- couponCode?: string | null;
76
62
  }
77
63
  declare enum ActivityType {
78
64
  /** Not implemented. */
@@ -341,14 +327,6 @@ interface DescriptionLine extends DescriptionLineValueOneOf, DescriptionLineDesc
341
327
  colorInfo?: Color;
342
328
  /** Description line name. */
343
329
  name?: DescriptionLineName;
344
- /**
345
- * Whether the description line originates from a modifier.
346
- * @internal
347
- * @deprecated Whether the description line originates from a modifier.
348
- * @replacedBy none
349
- * @targetRemovalDate 2025-12-31
350
- */
351
- modifierDescriptionLine?: boolean;
352
330
  }
353
331
  /** @oneof */
354
332
  interface DescriptionLineValueOneOf {
@@ -425,6 +403,92 @@ interface PhysicalProperties {
425
403
  /** Whether this line item is shippable. */
426
404
  shippable?: boolean;
427
405
  }
406
+ interface AppliedDiscount extends AppliedDiscountDiscountSourceOneOf {
407
+ /** Coupon details. */
408
+ coupon?: Coupon;
409
+ /** Merchant discount. */
410
+ merchantDiscount?: MerchantDiscount;
411
+ /** Discount rule */
412
+ discountRule?: DiscountRule;
413
+ /** Discount type. */
414
+ discountType?: DiscountTypeWithLiterals;
415
+ /**
416
+ * IDs of line items the discount applies to.
417
+ * @format GUID
418
+ * @maxSize 300
419
+ */
420
+ lineItemIds?: string[];
421
+ }
422
+ /** @oneof */
423
+ interface AppliedDiscountDiscountSourceOneOf {
424
+ /** Coupon details. */
425
+ coupon?: Coupon;
426
+ /** Merchant discount. */
427
+ merchantDiscount?: MerchantDiscount;
428
+ /** Discount rule */
429
+ discountRule?: DiscountRule;
430
+ }
431
+ declare enum DiscountType {
432
+ GLOBAL = "GLOBAL",
433
+ SPECIFIC_ITEMS = "SPECIFIC_ITEMS",
434
+ SHIPPING = "SHIPPING"
435
+ }
436
+ /** @enumType */
437
+ type DiscountTypeWithLiterals = DiscountType | 'GLOBAL' | 'SPECIFIC_ITEMS' | 'SHIPPING';
438
+ interface Coupon {
439
+ /**
440
+ * Coupon ID.
441
+ * @maxLength 50
442
+ */
443
+ _id?: string;
444
+ /**
445
+ * Coupon code.
446
+ * @maxLength 50
447
+ */
448
+ code?: string;
449
+ /** Coupon value. */
450
+ amount?: MultiCurrencyPrice;
451
+ /**
452
+ * Coupon name.
453
+ * @maxLength 60
454
+ */
455
+ name?: string;
456
+ }
457
+ interface MerchantDiscount {
458
+ /** Discount value. */
459
+ amount?: MultiCurrencyPrice;
460
+ /**
461
+ * Discount Percentage. Will be calculated from items price before other discounts.
462
+ * @min 1
463
+ * @max 100
464
+ */
465
+ percentage?: number | null;
466
+ }
467
+ interface DiscountRule {
468
+ /**
469
+ * Discount rule ID
470
+ * @format GUID
471
+ */
472
+ _id?: string;
473
+ /** Discount rule name */
474
+ name?: DiscountRuleName;
475
+ /** Discount value. */
476
+ amount?: MultiCurrencyPrice;
477
+ }
478
+ interface DiscountRuleName {
479
+ /**
480
+ * Original discount rule name (in site's default language).
481
+ * @minLength 1
482
+ * @maxLength 256
483
+ */
484
+ original?: string;
485
+ /**
486
+ * Translated discount rule name according to buyer language. Defaults to `original` when not provided.
487
+ * @minLength 1
488
+ * @maxLength 500
489
+ */
490
+ translated?: string | null;
491
+ }
428
492
  interface CartAbandonedEvent {
429
493
  /** @format GUID */
430
494
  cartId?: string;
@@ -1291,16 +1355,12 @@ interface AbandonedCheckoutSearchSpec extends SearchSpec {
1291
1355
  wql: [
1292
1356
  {
1293
1357
  operators: ['$hasAll', '$hasSome'];
1294
- fields: ['activities.type'];
1358
+ fields: ['activities.type', 'appliedDiscounts.coupon.code'];
1295
1359
  sort: 'NONE';
1296
1360
  },
1297
1361
  {
1298
1362
  operators: '*';
1299
- fields: [
1300
- 'contactDetails.firstName',
1301
- 'contactDetails.lastName',
1302
- 'couponCode'
1303
- ];
1363
+ fields: ['contactDetails.firstName', 'contactDetails.lastName'];
1304
1364
  sort: 'NONE';
1305
1365
  },
1306
1366
  {
@@ -1390,17 +1450,6 @@ type AbandonedCheckoutSearch = {
1390
1450
  fuzzy?: NonNullable<CommonSearchWithEntityContext['search']>['fuzzy'];
1391
1451
  };
1392
1452
  };
1393
- /**
1394
- * Adds a new abandoned checkout activity.
1395
- * @param abandonedCheckoutId - Id of the abandoned checkout to update
1396
- * @internal
1397
- * @documentationMaturity preview
1398
- * @requiredField abandonedCheckoutId
1399
- * @permissionId ECOM.ABANDONED_CHECKOUT_UPDATE
1400
- * @applicableIdentity APP
1401
- * @fqn wix.ecom.abandoned_checkout.api.v1.AbandonedCheckoutService.AddAbandonedCheckoutActivity
1402
- */
1403
- declare function addAbandonedCheckoutActivity(abandonedCheckoutId: string, options?: AddAbandonedCheckoutActivityOptions): Promise<NonNullablePaths<AddAbandonedCheckoutActivityResponse, `abandonedCheckout._id` | `abandonedCheckout.status` | `abandonedCheckout.buyerInfo.visitorId` | `abandonedCheckout.buyerInfo.memberId` | `abandonedCheckout.buyerInfo.userId` | `abandonedCheckout.contactDetails.vatId._id` | `abandonedCheckout.contactDetails.vatId.type` | `abandonedCheckout.currency` | `abandonedCheckout.totalPrice.amount` | `abandonedCheckout.totalPrice.convertedAmount` | `abandonedCheckout.totalPrice.formattedAmount` | `abandonedCheckout.totalPrice.formattedConvertedAmount` | `abandonedCheckout.activities` | `abandonedCheckout.activities.${number}.type` | `abandonedCheckout.checkoutUrl`, 5>>;
1404
1453
  interface AddAbandonedCheckoutActivityOptions {
1405
1454
  /** The type of the activity to add */
1406
1455
  activityType?: ActivityTypeWithLiterals;
@@ -1416,4 +1465,4 @@ interface AddAbandonedCheckoutActivityOptions {
1416
1465
  */
1417
1466
  declare function redirectToCheckout(abandonedCheckoutId: string, metasiteId: string): Promise<NonNullablePaths<RawHttpResponse, `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`, 4>>;
1418
1467
 
1419
- export { type QueryV2PagingMethodOneOf as $, type AbandonedCheckout as A, type BulkDeleteAbandonedCheckoutsResponse as B, CommonSortOrder as C, DescriptionLineType as D, type CartRecoveredEvent as E, type FullAddressContactDetails as F, type AbandonedCheckoutRecovered as G, type GetAbandonedCheckoutRequest as H, Identity as I, type GetAbandonedCheckoutResponse as J, type DeleteAbandonedCheckoutRequest as K, type LineItem as L, Mode as M, type DeleteAbandonedCheckoutResponse as N, type BulkDeleteAbandonedCheckoutsRequest as O, type ProductName as P, type ItemMetadata as Q, type RawHttpResponse as R, type SearchAbandonedCheckoutsResponse as S, type Totals as T, type ApplicationError as U, VatType as V, WebhookIdentityType as W, type BulkAbandonedCheckoutResult as X, type BulkActionMetadata as Y, type QueryAbandonedCheckoutsRequest as Z, type QueryV2 as _, type AbandonedCheckoutsQueryBuilder as a, type Sorting as a0, type Paging as a1, type CursorPaging as a2, type QueryAbandonedCheckoutsResponse as a3, type PagingMetadataV2 as a4, type Cursors as a5, type SearchAbandonedCheckoutsRequest as a6, type Search as a7, type SearchPagingMethodOneOf as a8, type CommonSorting as a9, type BaseEventMetadata as aA, type EventMetadata as aB, type AbandonedCheckoutsQueryResult as aC, type AbandonedCheckoutSearchSpec as aD, type ActivityTypeWithLiterals as aE, type StatusWithLiterals as aF, type VatTypeWithLiterals as aG, type DescriptionLineTypeWithLiterals as aH, type IdentityWithLiterals as aI, type SortOrderWithLiterals as aJ, type CommonSortOrderWithLiterals as aK, type ModeWithLiterals as aL, type WebhookIdentityTypeWithLiterals as aM, type CommonSearchWithEntityContext as aN, onAbandonedCheckoutCreated as aO, onAbandonedCheckoutDeleted as aP, onAbandonedCheckoutRecovered as aQ, onAbandonedCheckoutUpdated as aR, getAbandonedCheckout as aS, deleteAbandonedCheckout as aT, bulkDeleteAbandonedCheckouts as aU, queryAbandonedCheckouts as aV, addAbandonedCheckoutActivity as aW, redirectToCheckout as aX, type SearchDetails as aa, type CommonPaging as ab, type CommonCursorPaging as ac, type CommonPagingMetadataV2 as ad, type CommonCursors as ae, type AddAbandonedCheckoutActivityRequest as af, type Task as ag, type TaskKey as ah, type TaskAction as ai, type TaskActionActionOneOf as aj, type Complete as ak, type Cancel as al, type Reschedule as am, type RedirectToCheckoutRequest as an, type HeadersEntry as ao, type DomainEvent as ap, type DomainEventBodyOneOf as aq, type EntityCreatedEvent as ar, type RestoreInfo as as, type EntityUpdatedEvent as at, type EntityDeletedEvent as au, type ActionEvent as av, type Empty as aw, type MessageEnvelope as ax, type IdentificationData as ay, type IdentificationDataIdOneOf as az, type AbandonedCheckoutSearch as b, type AddAbandonedCheckoutActivityOptions as c, type AddAbandonedCheckoutActivityResponse as d, type AbandonedCheckoutCreatedEnvelope as e, type AbandonedCheckoutDeletedEnvelope as f, type AbandonedCheckoutRecoveredEnvelope as g, type AbandonedCheckoutUpdatedEnvelope as h, ActivityType as i, Status as j, SortOrder as k, type V1BuyerInfo as l, type V1BuyerInfoIdOneOf as m, type VatId as n, type MultiCurrencyPrice as o, type Activity as p, type CatalogReference as q, type DescriptionLine as r, type DescriptionLineValueOneOf as s, type DescriptionLineDescriptionLineValueOneOf as t, type DescriptionLineName as u, type PlainTextValue as v, type Color as w, type PhysicalProperties as x, type CartAbandonedEvent as y, type BuyerInfo as z };
1468
+ export { type ApplicationError as $, type AbandonedCheckout as A, type BulkDeleteAbandonedCheckoutsResponse as B, CommonSortOrder as C, DescriptionLineType as D, type MerchantDiscount as E, type FullAddressContactDetails as F, type DiscountRule as G, type DiscountRuleName as H, Identity as I, type CartAbandonedEvent as J, type BuyerInfo as K, type LineItem as L, Mode as M, type CartRecoveredEvent as N, type AbandonedCheckoutRecovered as O, type ProductName as P, type GetAbandonedCheckoutRequest as Q, type RawHttpResponse as R, type SearchAbandonedCheckoutsResponse as S, type Totals as T, type GetAbandonedCheckoutResponse as U, VatType as V, WebhookIdentityType as W, type DeleteAbandonedCheckoutRequest as X, type DeleteAbandonedCheckoutResponse as Y, type BulkDeleteAbandonedCheckoutsRequest as Z, type ItemMetadata as _, type AbandonedCheckoutsQueryBuilder as a, deleteAbandonedCheckout as a$, type BulkAbandonedCheckoutResult as a0, type BulkActionMetadata as a1, type QueryAbandonedCheckoutsRequest as a2, type QueryV2 as a3, type QueryV2PagingMethodOneOf as a4, type Sorting as a5, type Paging as a6, type CursorPaging as a7, type QueryAbandonedCheckoutsResponse as a8, type PagingMetadataV2 as a9, type EntityDeletedEvent as aA, type ActionEvent as aB, type Empty as aC, type MessageEnvelope as aD, type IdentificationData as aE, type IdentificationDataIdOneOf as aF, type BaseEventMetadata as aG, type EventMetadata as aH, type AbandonedCheckoutsQueryResult as aI, type AbandonedCheckoutSearchSpec as aJ, type AddAbandonedCheckoutActivityOptions as aK, type ActivityTypeWithLiterals as aL, type StatusWithLiterals as aM, type VatTypeWithLiterals as aN, type DescriptionLineTypeWithLiterals as aO, type DiscountTypeWithLiterals as aP, type IdentityWithLiterals as aQ, type SortOrderWithLiterals as aR, type CommonSortOrderWithLiterals as aS, type ModeWithLiterals as aT, type WebhookIdentityTypeWithLiterals as aU, type CommonSearchWithEntityContext as aV, onAbandonedCheckoutCreated as aW, onAbandonedCheckoutDeleted as aX, onAbandonedCheckoutRecovered as aY, onAbandonedCheckoutUpdated as aZ, getAbandonedCheckout as a_, type Cursors as aa, type SearchAbandonedCheckoutsRequest as ab, type Search as ac, type SearchPagingMethodOneOf as ad, type CommonSorting as ae, type SearchDetails as af, type CommonPaging as ag, type CommonCursorPaging as ah, type CommonPagingMetadataV2 as ai, type CommonCursors as aj, type AddAbandonedCheckoutActivityRequest as ak, type AddAbandonedCheckoutActivityResponse as al, type Task as am, type TaskKey as an, type TaskAction as ao, type TaskActionActionOneOf as ap, type Complete as aq, type Cancel as ar, type Reschedule as as, type RedirectToCheckoutRequest as at, type HeadersEntry as au, type DomainEvent as av, type DomainEventBodyOneOf as aw, type EntityCreatedEvent as ax, type RestoreInfo as ay, type EntityUpdatedEvent as az, type AbandonedCheckoutSearch as b, bulkDeleteAbandonedCheckouts as b0, queryAbandonedCheckouts as b1, redirectToCheckout as b2, type AbandonedCheckoutCreatedEnvelope as c, type AbandonedCheckoutDeletedEnvelope as d, type AbandonedCheckoutRecoveredEnvelope as e, type AbandonedCheckoutUpdatedEnvelope as f, ActivityType as g, Status as h, DiscountType as i, SortOrder as j, type V1BuyerInfo as k, type V1BuyerInfoIdOneOf as l, type VatId as m, type MultiCurrencyPrice as n, type Activity as o, type CatalogReference as p, type DescriptionLine as q, type DescriptionLineValueOneOf as r, type DescriptionLineDescriptionLineValueOneOf as s, type DescriptionLineName as t, type PlainTextValue as u, type Color as v, type PhysicalProperties as w, type AppliedDiscount as x, type AppliedDiscountDiscountSourceOneOf as y, type Coupon as z };
@@ -1,6 +1,6 @@
1
1
  import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
- import { A as AbandonedCheckout, B as BulkDeleteAbandonedCheckoutsResponse, a as AbandonedCheckoutsQueryBuilder, b as AbandonedCheckoutSearch, S as SearchAbandonedCheckoutsResponse, R as RawHttpResponse, c as AbandonedCheckoutCreatedEnvelope, d as AbandonedCheckoutDeletedEnvelope, e as AbandonedCheckoutRecoveredEnvelope, f as AbandonedCheckoutUpdatedEnvelope } from './ecom-v1-abandoned-checkout-abandoned-checkouts.universal-D7Tj5DAM.js';
3
- export { z as AbandonedCheckoutRecovered, aC as AbandonedCheckoutSearchSpec, aB as AbandonedCheckoutsQueryResult, au as ActionEvent, n as Activity, g as ActivityType, aE as ActivityTypeWithLiterals, aD as AddAbandonedCheckoutActivityOptions, ad as AddAbandonedCheckoutActivityRequest, ae as AddAbandonedCheckoutActivityResponse, O as ApplicationError, az as BaseEventMetadata, Q as BulkAbandonedCheckoutResult, U as BulkActionMetadata, K as BulkDeleteAbandonedCheckoutsRequest, x as BuyerInfo, ak as Cancel, w as CartAbandonedEvent, y as CartRecoveredEvent, o as CatalogReference, u as Color, aa as CommonCursorPaging, ac as CommonCursors, a9 as CommonPaging, ab as CommonPagingMetadataV2, aN as CommonSearchWithEntityContext, C as CommonSortOrder, aK as CommonSortOrderWithLiterals, a7 as CommonSorting, aj as Complete, a0 as CursorPaging, a3 as Cursors, H as DeleteAbandonedCheckoutRequest, J as DeleteAbandonedCheckoutResponse, p as DescriptionLine, r as DescriptionLineDescriptionLineValueOneOf, s as DescriptionLineName, D as DescriptionLineType, aH as DescriptionLineTypeWithLiterals, q as DescriptionLineValueOneOf, ao as DomainEvent, ap as DomainEventBodyOneOf, av as Empty, aq as EntityCreatedEvent, at as EntityDeletedEvent, as as EntityUpdatedEvent, aA as EventMetadata, F as FullAddressContactDetails, G as GetAbandonedCheckoutRequest, E as GetAbandonedCheckoutResponse, an as HeadersEntry, ax as IdentificationData, ay as IdentificationDataIdOneOf, I as Identity, aI as IdentityWithLiterals, N as ItemMetadata, L as LineItem, aw as MessageEnvelope, M as Mode, aL as ModeWithLiterals, m as MultiCurrencyPrice, $ as Paging, a2 as PagingMetadataV2, v as PhysicalProperties, t as PlainTextValue, P as ProductName, X as QueryAbandonedCheckoutsRequest, a1 as QueryAbandonedCheckoutsResponse, Y as QueryV2, Z as QueryV2PagingMethodOneOf, am as RedirectToCheckoutRequest, al as Reschedule, ar as RestoreInfo, a5 as Search, a4 as SearchAbandonedCheckoutsRequest, a8 as SearchDetails, a6 as SearchPagingMethodOneOf, i as SortOrder, aJ as SortOrderWithLiterals, _ as Sorting, h as Status, aF as StatusWithLiterals, af as Task, ah as TaskAction, ai as TaskActionActionOneOf, ag as TaskKey, T as Totals, j as V1BuyerInfo, k as V1BuyerInfoIdOneOf, l as VatId, V as VatType, aG as VatTypeWithLiterals, W as WebhookIdentityType, aM as WebhookIdentityTypeWithLiterals } from './ecom-v1-abandoned-checkout-abandoned-checkouts.universal-D7Tj5DAM.js';
2
+ import { A as AbandonedCheckout, B as BulkDeleteAbandonedCheckoutsResponse, a as AbandonedCheckoutsQueryBuilder, b as AbandonedCheckoutSearch, S as SearchAbandonedCheckoutsResponse, R as RawHttpResponse, c as AbandonedCheckoutCreatedEnvelope, d as AbandonedCheckoutDeletedEnvelope, e as AbandonedCheckoutRecoveredEnvelope, f as AbandonedCheckoutUpdatedEnvelope } from './ecom-v1-abandoned-checkout-abandoned-checkouts.universal-C8oWIE96.js';
3
+ export { O as AbandonedCheckoutRecovered, aJ as AbandonedCheckoutSearchSpec, aI as AbandonedCheckoutsQueryResult, aB as ActionEvent, o as Activity, g as ActivityType, aL as ActivityTypeWithLiterals, aK as AddAbandonedCheckoutActivityOptions, ak as AddAbandonedCheckoutActivityRequest, al as AddAbandonedCheckoutActivityResponse, $ as ApplicationError, x as AppliedDiscount, y as AppliedDiscountDiscountSourceOneOf, aG as BaseEventMetadata, a0 as BulkAbandonedCheckoutResult, a1 as BulkActionMetadata, Z as BulkDeleteAbandonedCheckoutsRequest, K as BuyerInfo, ar as Cancel, J as CartAbandonedEvent, N as CartRecoveredEvent, p as CatalogReference, v as Color, ah as CommonCursorPaging, aj as CommonCursors, ag as CommonPaging, ai as CommonPagingMetadataV2, aV as CommonSearchWithEntityContext, C as CommonSortOrder, aS as CommonSortOrderWithLiterals, ae as CommonSorting, aq as Complete, z as Coupon, a7 as CursorPaging, aa as Cursors, X as DeleteAbandonedCheckoutRequest, Y as DeleteAbandonedCheckoutResponse, q as DescriptionLine, s as DescriptionLineDescriptionLineValueOneOf, t as DescriptionLineName, D as DescriptionLineType, aO as DescriptionLineTypeWithLiterals, r as DescriptionLineValueOneOf, G as DiscountRule, H as DiscountRuleName, i as DiscountType, aP as DiscountTypeWithLiterals, av as DomainEvent, aw as DomainEventBodyOneOf, aC as Empty, ax as EntityCreatedEvent, aA as EntityDeletedEvent, az as EntityUpdatedEvent, aH as EventMetadata, F as FullAddressContactDetails, Q as GetAbandonedCheckoutRequest, U as GetAbandonedCheckoutResponse, au as HeadersEntry, aE as IdentificationData, aF as IdentificationDataIdOneOf, I as Identity, aQ as IdentityWithLiterals, _ as ItemMetadata, L as LineItem, E as MerchantDiscount, aD as MessageEnvelope, M as Mode, aT as ModeWithLiterals, n as MultiCurrencyPrice, a6 as Paging, a9 as PagingMetadataV2, w as PhysicalProperties, u as PlainTextValue, P as ProductName, a2 as QueryAbandonedCheckoutsRequest, a8 as QueryAbandonedCheckoutsResponse, a3 as QueryV2, a4 as QueryV2PagingMethodOneOf, at as RedirectToCheckoutRequest, as as Reschedule, ay as RestoreInfo, ac as Search, ab as SearchAbandonedCheckoutsRequest, af as SearchDetails, ad as SearchPagingMethodOneOf, j as SortOrder, aR as SortOrderWithLiterals, a5 as Sorting, h as Status, aM as StatusWithLiterals, am as Task, ao as TaskAction, ap as TaskActionActionOneOf, an as TaskKey, T as Totals, k as V1BuyerInfo, l as V1BuyerInfoIdOneOf, m as VatId, V as VatType, aN as VatTypeWithLiterals, W as WebhookIdentityType, aU as WebhookIdentityTypeWithLiterals } from './ecom-v1-abandoned-checkout-abandoned-checkouts.universal-C8oWIE96.js';
4
4
 
5
5
  declare function getAbandonedCheckout$1(httpClient: HttpClient): GetAbandonedCheckoutSignature;
6
6
  interface GetAbandonedCheckoutSignature {
@@ -23,6 +23,7 @@ __export(index_exports, {
23
23
  ActivityType: () => ActivityType,
24
24
  CommonSortOrder: () => CommonSortOrder,
25
25
  DescriptionLineType: () => DescriptionLineType,
26
+ DiscountType: () => DiscountType,
26
27
  Identity: () => Identity,
27
28
  Mode: () => Mode,
28
29
  SortOrder: () => SortOrder,
@@ -137,7 +138,10 @@ function getAbandonedCheckout(payload) {
137
138
  {
138
139
  transformFn: import_float.transformRESTFloatToSDKFloat,
139
140
  paths: [
140
- { path: "abandonedCheckout.lineItems.physicalProperties.weight" }
141
+ { path: "abandonedCheckout.lineItems.physicalProperties.weight" },
142
+ {
143
+ path: "abandonedCheckout.appliedDiscounts.merchantDiscount.percentage"
144
+ }
141
145
  ]
142
146
  }
143
147
  ])
@@ -213,8 +217,12 @@ function queryAbandonedCheckouts(payload) {
213
217
  transformFn: import_float.transformRESTFloatToSDKFloat,
214
218
  paths: [
215
219
  { path: "results.lineItems.physicalProperties.weight" },
220
+ { path: "results.appliedDiscounts.merchantDiscount.percentage" },
216
221
  {
217
222
  path: "abandonedCheckouts.lineItems.physicalProperties.weight"
223
+ },
224
+ {
225
+ path: "abandonedCheckouts.appliedDiscounts.merchantDiscount.percentage"
218
226
  }
219
227
  ]
220
228
  }
@@ -252,6 +260,9 @@ function searchAbandonedCheckouts(payload) {
252
260
  paths: [
253
261
  {
254
262
  path: "abandonedCheckouts.lineItems.physicalProperties.weight"
263
+ },
264
+ {
265
+ path: "abandonedCheckouts.appliedDiscounts.merchantDiscount.percentage"
255
266
  }
256
267
  ]
257
268
  }
@@ -287,7 +298,10 @@ function addAbandonedCheckoutActivity(payload) {
287
298
  {
288
299
  transformFn: import_float.transformRESTFloatToSDKFloat,
289
300
  paths: [
290
- { path: "abandonedCheckout.lineItems.physicalProperties.weight" }
301
+ { path: "abandonedCheckout.lineItems.physicalProperties.weight" },
302
+ {
303
+ path: "abandonedCheckout.appliedDiscounts.merchantDiscount.percentage"
304
+ }
291
305
  ]
292
306
  }
293
307
  ])
@@ -351,6 +365,12 @@ var DescriptionLineType = /* @__PURE__ */ ((DescriptionLineType2) => {
351
365
  DescriptionLineType2["COLOR"] = "COLOR";
352
366
  return DescriptionLineType2;
353
367
  })(DescriptionLineType || {});
368
+ var DiscountType = /* @__PURE__ */ ((DiscountType2) => {
369
+ DiscountType2["GLOBAL"] = "GLOBAL";
370
+ DiscountType2["SPECIFIC_ITEMS"] = "SPECIFIC_ITEMS";
371
+ DiscountType2["SHIPPING"] = "SHIPPING";
372
+ return DiscountType2;
373
+ })(DiscountType || {});
354
374
  var Identity = /* @__PURE__ */ ((Identity2) => {
355
375
  Identity2["ADMIN"] = "ADMIN";
356
376
  Identity2["MEMBER"] = "MEMBER";
@@ -683,7 +703,10 @@ var onAbandonedCheckoutCreated = (0, import_sdk_types.EventDefinition)(
683
703
  },
684
704
  {
685
705
  transformFn: import_float2.transformRESTFloatToSDKFloat,
686
- paths: [{ path: "entity.lineItems.physicalProperties.weight" }]
706
+ paths: [
707
+ { path: "entity.lineItems.physicalProperties.weight" },
708
+ { path: "entity.appliedDiscounts.merchantDiscount.percentage" }
709
+ ]
687
710
  }
688
711
  ])
689
712
  )
@@ -709,7 +732,10 @@ var onAbandonedCheckoutDeleted = (0, import_sdk_types.EventDefinition)(
709
732
  },
710
733
  {
711
734
  transformFn: import_float2.transformRESTFloatToSDKFloat,
712
- paths: [{ path: "undefined.lineItems.physicalProperties.weight" }]
735
+ paths: [
736
+ { path: "undefined.lineItems.physicalProperties.weight" },
737
+ { path: "undefined.appliedDiscounts.merchantDiscount.percentage" }
738
+ ]
713
739
  }
714
740
  ])
715
741
  )
@@ -738,6 +764,9 @@ var onAbandonedCheckoutRecovered = (0, import_sdk_types.EventDefinition)(
738
764
  paths: [
739
765
  {
740
766
  path: "data.abandonedCheckout.lineItems.physicalProperties.weight"
767
+ },
768
+ {
769
+ path: "data.abandonedCheckout.appliedDiscounts.merchantDiscount.percentage"
741
770
  }
742
771
  ]
743
772
  }
@@ -765,7 +794,10 @@ var onAbandonedCheckoutUpdated = (0, import_sdk_types.EventDefinition)(
765
794
  },
766
795
  {
767
796
  transformFn: import_float2.transformRESTFloatToSDKFloat,
768
- paths: [{ path: "entity.lineItems.physicalProperties.weight" }]
797
+ paths: [
798
+ { path: "entity.lineItems.physicalProperties.weight" },
799
+ { path: "entity.appliedDiscounts.merchantDiscount.percentage" }
800
+ ]
769
801
  }
770
802
  ])
771
803
  )
@@ -798,6 +830,7 @@ var onAbandonedCheckoutUpdated2 = (0, import_event_definition_modules.createEven
798
830
  ActivityType,
799
831
  CommonSortOrder,
800
832
  DescriptionLineType,
833
+ DiscountType,
801
834
  Identity,
802
835
  Mode,
803
836
  SortOrder,