@wix/auto_sdk_ecom_abandoned-checkouts 1.0.47 → 1.0.48

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 (33) hide show
  1. package/build/cjs/{ecom-v1-abandoned-checkout-abandoned-checkouts.universal-CCZj0Gfc.d.ts → ecom-v1-abandoned-checkout-abandoned-checkouts.universal-DhcdCax5.d.ts} +7 -1
  2. package/build/cjs/index.d.ts +8 -17
  3. package/build/cjs/index.js +53 -1
  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 +37 -2
  7. package/build/cjs/index.typings.js.map +1 -1
  8. package/build/cjs/meta.d.ts +1 -1
  9. package/build/es/{ecom-v1-abandoned-checkout-abandoned-checkouts.universal-CCZj0Gfc.d.mts → ecom-v1-abandoned-checkout-abandoned-checkouts.universal-DhcdCax5.d.mts} +7 -1
  10. package/build/es/index.d.mts +8 -17
  11. package/build/es/index.mjs +53 -1
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +2 -2
  14. package/build/es/index.typings.mjs +35 -1
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +1 -1
  17. package/build/internal/cjs/{ecom-v1-abandoned-checkout-abandoned-checkouts.universal-DTc3f1_H.d.ts → ecom-v1-abandoned-checkout-abandoned-checkouts.universal-WxTvIcU0.d.ts} +7 -1
  18. package/build/internal/cjs/index.d.ts +8 -17
  19. package/build/internal/cjs/index.js +53 -1
  20. package/build/internal/cjs/index.js.map +1 -1
  21. package/build/internal/cjs/index.typings.d.ts +2 -2
  22. package/build/internal/cjs/index.typings.js +37 -2
  23. package/build/internal/cjs/index.typings.js.map +1 -1
  24. package/build/internal/cjs/meta.d.ts +1 -1
  25. package/build/internal/es/{ecom-v1-abandoned-checkout-abandoned-checkouts.universal-DTc3f1_H.d.mts → ecom-v1-abandoned-checkout-abandoned-checkouts.universal-WxTvIcU0.d.mts} +7 -1
  26. package/build/internal/es/index.d.mts +8 -17
  27. package/build/internal/es/index.mjs +53 -1
  28. package/build/internal/es/index.mjs.map +1 -1
  29. package/build/internal/es/index.typings.d.mts +2 -2
  30. package/build/internal/es/index.typings.mjs +35 -1
  31. package/build/internal/es/index.typings.mjs.map +1 -1
  32. package/build/internal/es/meta.d.mts +1 -1
  33. package/package.json +3 -3
@@ -1368,6 +1368,12 @@ interface AbandonedCheckoutsQueryBuilder {
1368
1368
  skipTo: (cursor: string) => AbandonedCheckoutsQueryBuilder;
1369
1369
  find: () => Promise<AbandonedCheckoutsQueryResult>;
1370
1370
  }
1371
+ /**
1372
+ * @hidden
1373
+ * @fqn wix.ecom.abandoned_checkout.api.v1.AbandonedCheckoutService.QueryAbandonedCheckouts
1374
+ * @requiredField query
1375
+ */
1376
+ declare function typedQueryAbandonedCheckouts(query: QueryV2): Promise<NonNullablePaths<QueryAbandonedCheckoutsResponse, `results` | `results.${number}._id` | `results.${number}.status` | `results.${number}.buyerInfo.visitorId` | `results.${number}.buyerInfo.memberId` | `results.${number}.buyerInfo.userId` | `results.${number}.contactDetails.vatId._id` | `results.${number}.contactDetails.vatId.type` | `results.${number}.currency` | `results.${number}.totalPrice.amount` | `results.${number}.totalPrice.convertedAmount` | `results.${number}.totalPrice.formattedAmount` | `results.${number}.totalPrice.formattedConvertedAmount` | `results.${number}.checkoutUrl` | `abandonedCheckouts` | `abandonedCheckouts.${number}._id` | `abandonedCheckouts.${number}.status` | `abandonedCheckouts.${number}.buyerInfo.visitorId` | `abandonedCheckouts.${number}.buyerInfo.memberId` | `abandonedCheckouts.${number}.buyerInfo.userId` | `abandonedCheckouts.${number}.contactDetails.vatId._id` | `abandonedCheckouts.${number}.contactDetails.vatId.type` | `abandonedCheckouts.${number}.currency` | `abandonedCheckouts.${number}.totalPrice.amount` | `abandonedCheckouts.${number}.totalPrice.convertedAmount` | `abandonedCheckouts.${number}.totalPrice.formattedAmount` | `abandonedCheckouts.${number}.totalPrice.formattedConvertedAmount` | `abandonedCheckouts.${number}.checkoutUrl`, 6>>;
1371
1377
  interface AbandonedCheckoutSearchSpec extends SearchSpec {
1372
1378
  searchable: [
1373
1379
  'buyerInfo.email',
@@ -1499,4 +1505,4 @@ interface AddAbandonedCheckoutActivityOptions {
1499
1505
  */
1500
1506
  declare function redirectToCheckout(abandonedCheckoutId: string, metasiteId: string): Promise<NonNullablePaths<RawHttpResponse, `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`, 4>>;
1501
1507
 
1502
- export { type BulkDeleteAbandonedCheckoutsRequest as $, type AbandonedCheckout as A, type BulkDeleteAbandonedCheckoutsResponse as B, CommonSortOrder as C, DescriptionLineType as D, type AppliedDiscountDiscountSourceOneOf as E, type FullAddressContactDetails as F, type Coupon as G, type MerchantDiscount as H, Identity as I, type DiscountRule as J, type DiscountRuleName as K, type LineItem as L, Mode as M, type CartAbandonedEvent as N, type BuyerInfo as O, type ProductName as P, type CartRecoveredEvent as Q, type RawHttpResponse as R, type SearchAbandonedCheckoutsResponse as S, type Totals as T, type AbandonedCheckoutRecovered as U, VatType as V, WebhookIdentityType as W, type GetAbandonedCheckoutRequest as X, type GetAbandonedCheckoutResponse as Y, type DeleteAbandonedCheckoutRequest as Z, type DeleteAbandonedCheckoutResponse as _, type AbandonedCheckoutsQueryBuilder as a, deleteAbandonedCheckout as a$, type ItemMetadata as a0, type ApplicationError as a1, type BulkAbandonedCheckoutResult as a2, type BulkActionMetadata as a3, type QueryAbandonedCheckoutsRequest as a4, type QueryV2 as a5, type QueryV2PagingMethodOneOf as a6, type Sorting as a7, type Paging as a8, type CursorPaging as a9, type EntityUpdatedEvent as aA, type EntityDeletedEvent as aB, type ActionEvent as aC, type Empty as aD, type MessageEnvelope as aE, type IdentificationData as aF, type IdentificationDataIdOneOf as aG, type BaseEventMetadata as aH, type EventMetadata as aI, type AbandonedCheckoutsQueryResult as aJ, type AbandonedCheckoutSearchSpec 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 QueryAbandonedCheckoutsResponse as aa, type PagingMetadataV2 as ab, type Cursors as ac, type SearchAbandonedCheckoutsRequest as ad, type Search as ae, type SearchPagingMethodOneOf as af, type CommonSorting as ag, type SearchDetails as ah, type CommonPaging as ai, type CommonCursorPaging as aj, type CommonPagingMetadataV2 as ak, type CommonCursors as al, type AddAbandonedCheckoutActivityRequest as am, type Task as an, type TaskKey as ao, type TaskAction as ap, type TaskActionActionOneOf as aq, type Complete as ar, type Cancel as as, type Reschedule as at, type RedirectToCheckoutRequest as au, type HeadersEntry as av, type DomainEvent as aw, type DomainEventBodyOneOf as ax, type EntityCreatedEvent as ay, type RestoreInfo as az, type AbandonedCheckoutSearch as b, bulkDeleteAbandonedCheckouts as b0, queryAbandonedCheckouts as b1, addAbandonedCheckoutActivity as b2, redirectToCheckout as b3, 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, DiscountType as k, SortOrder as l, type V1BuyerInfo as m, type V1BuyerInfoIdOneOf as n, type VatId as o, type MultiCurrencyPrice as p, type Activity as q, type CatalogReference as r, type DescriptionLine as s, type DescriptionLineValueOneOf as t, type DescriptionLineDescriptionLineValueOneOf as u, type DescriptionLineName as v, type PlainTextValue as w, type Color as x, type PhysicalProperties as y, type AppliedDiscount as z };
1508
+ export { type DeleteAbandonedCheckoutRequest as $, type AbandonedCheckout as A, type BulkDeleteAbandonedCheckoutsResponse as B, CommonSortOrder as C, DescriptionLineType as D, type AppliedDiscount as E, type FullAddressContactDetails as F, type AppliedDiscountDiscountSourceOneOf as G, type Coupon as H, Identity as I, type MerchantDiscount as J, type DiscountRule as K, type LineItem as L, Mode as M, type DiscountRuleName as N, type CartAbandonedEvent as O, type ProductName as P, type QueryV2 as Q, type RawHttpResponse as R, type SearchAbandonedCheckoutsResponse as S, type BuyerInfo as T, type Totals as U, VatType as V, WebhookIdentityType as W, type CartRecoveredEvent as X, type AbandonedCheckoutRecovered as Y, type GetAbandonedCheckoutRequest as Z, type GetAbandonedCheckoutResponse as _, type AbandonedCheckoutSearch as a, getAbandonedCheckout as a$, type DeleteAbandonedCheckoutResponse as a0, type BulkDeleteAbandonedCheckoutsRequest as a1, type ItemMetadata as a2, type ApplicationError as a3, type BulkAbandonedCheckoutResult as a4, type BulkActionMetadata as a5, type QueryAbandonedCheckoutsRequest as a6, type QueryV2PagingMethodOneOf as a7, type Sorting as a8, type Paging as a9, type RestoreInfo as aA, type EntityUpdatedEvent as aB, type EntityDeletedEvent as aC, type ActionEvent as aD, type Empty as aE, type MessageEnvelope as aF, type IdentificationData as aG, type IdentificationDataIdOneOf as aH, type BaseEventMetadata as aI, type EventMetadata as aJ, type AbandonedCheckoutsQueryResult as aK, type AbandonedCheckoutSearchSpec as aL, type ActivityTypeWithLiterals as aM, type StatusWithLiterals as aN, type VatTypeWithLiterals as aO, type DescriptionLineTypeWithLiterals as aP, type DiscountTypeWithLiterals as aQ, type IdentityWithLiterals as aR, type SortOrderWithLiterals as aS, type CommonSortOrderWithLiterals as aT, type ModeWithLiterals as aU, type WebhookIdentityTypeWithLiterals as aV, type CommonSearchWithEntityContext as aW, onAbandonedCheckoutCreated as aX, onAbandonedCheckoutDeleted as aY, onAbandonedCheckoutRecovered as aZ, onAbandonedCheckoutUpdated as a_, type CursorPaging as aa, type QueryAbandonedCheckoutsResponse as ab, type PagingMetadataV2 as ac, type Cursors as ad, type SearchAbandonedCheckoutsRequest as ae, type Search as af, type SearchPagingMethodOneOf as ag, type CommonSorting as ah, type SearchDetails as ai, type CommonPaging as aj, type CommonCursorPaging as ak, type CommonPagingMetadataV2 as al, type CommonCursors as am, type AddAbandonedCheckoutActivityRequest as an, type Task as ao, type TaskKey as ap, type TaskAction as aq, type TaskActionActionOneOf as ar, type Complete as as, type Cancel as at, type Reschedule as au, type RedirectToCheckoutRequest as av, type HeadersEntry as aw, type DomainEvent as ax, type DomainEventBodyOneOf as ay, type EntityCreatedEvent as az, type AddAbandonedCheckoutActivityOptions as b, deleteAbandonedCheckout as b0, bulkDeleteAbandonedCheckouts as b1, queryAbandonedCheckouts as b2, addAbandonedCheckoutActivity as b3, redirectToCheckout as b4, type AddAbandonedCheckoutActivityResponse as c, type AbandonedCheckoutCreatedEnvelope as d, type AbandonedCheckoutDeletedEnvelope as e, type AbandonedCheckoutRecoveredEnvelope as f, type AbandonedCheckoutUpdatedEnvelope as g, type AbandonedCheckoutsQueryBuilder as h, ActivityType as i, Status as j, DiscountType as k, SortOrder as l, type V1BuyerInfo as m, type V1BuyerInfoIdOneOf as n, type VatId as o, type MultiCurrencyPrice as p, type Activity as q, type CatalogReference as r, type DescriptionLine as s, typedQueryAbandonedCheckouts as t, type DescriptionLineValueOneOf as u, type DescriptionLineDescriptionLineValueOneOf as v, type DescriptionLineName as w, type PlainTextValue as x, type Color as y, type PhysicalProperties 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, c as AddAbandonedCheckoutActivityOptions, d as AddAbandonedCheckoutActivityResponse, R as RawHttpResponse, e as AbandonedCheckoutCreatedEnvelope, f as AbandonedCheckoutDeletedEnvelope, g as AbandonedCheckoutRecoveredEnvelope, h as AbandonedCheckoutUpdatedEnvelope } from './ecom-v1-abandoned-checkout-abandoned-checkouts.universal-DTc3f1_H.mjs';
3
- export { U as AbandonedCheckoutRecovered, aK as AbandonedCheckoutSearchSpec, aJ as AbandonedCheckoutsQueryResult, aC as ActionEvent, q as Activity, i as ActivityType, aL as ActivityTypeWithLiterals, am as AddAbandonedCheckoutActivityRequest, a1 as ApplicationError, z as AppliedDiscount, E as AppliedDiscountDiscountSourceOneOf, aH as BaseEventMetadata, a2 as BulkAbandonedCheckoutResult, a3 as BulkActionMetadata, $ as BulkDeleteAbandonedCheckoutsRequest, O as BuyerInfo, as as Cancel, N as CartAbandonedEvent, Q as CartRecoveredEvent, r as CatalogReference, x as Color, aj as CommonCursorPaging, al as CommonCursors, ai as CommonPaging, ak as CommonPagingMetadataV2, aV as CommonSearchWithEntityContext, C as CommonSortOrder, aS as CommonSortOrderWithLiterals, ag as CommonSorting, ar as Complete, G as Coupon, a9 as CursorPaging, ac as Cursors, Z as DeleteAbandonedCheckoutRequest, _ as DeleteAbandonedCheckoutResponse, s as DescriptionLine, u as DescriptionLineDescriptionLineValueOneOf, v as DescriptionLineName, D as DescriptionLineType, aO as DescriptionLineTypeWithLiterals, t as DescriptionLineValueOneOf, J as DiscountRule, K as DiscountRuleName, k as DiscountType, aP as DiscountTypeWithLiterals, aw as DomainEvent, ax as DomainEventBodyOneOf, aD as Empty, ay as EntityCreatedEvent, aB as EntityDeletedEvent, aA as EntityUpdatedEvent, aI as EventMetadata, F as FullAddressContactDetails, X as GetAbandonedCheckoutRequest, Y as GetAbandonedCheckoutResponse, av as HeadersEntry, aF as IdentificationData, aG as IdentificationDataIdOneOf, I as Identity, aQ as IdentityWithLiterals, a0 as ItemMetadata, L as LineItem, H as MerchantDiscount, aE as MessageEnvelope, M as Mode, aT as ModeWithLiterals, p as MultiCurrencyPrice, a8 as Paging, ab as PagingMetadataV2, y as PhysicalProperties, w as PlainTextValue, P as ProductName, a4 as QueryAbandonedCheckoutsRequest, aa as QueryAbandonedCheckoutsResponse, a5 as QueryV2, a6 as QueryV2PagingMethodOneOf, au as RedirectToCheckoutRequest, at as Reschedule, az as RestoreInfo, ae as Search, ad as SearchAbandonedCheckoutsRequest, ah as SearchDetails, af as SearchPagingMethodOneOf, l as SortOrder, aR as SortOrderWithLiterals, a7 as Sorting, j as Status, aM as StatusWithLiterals, an as Task, ap as TaskAction, aq as TaskActionActionOneOf, ao as TaskKey, T as Totals, m as V1BuyerInfo, n as V1BuyerInfoIdOneOf, o as VatId, V as VatType, aN as VatTypeWithLiterals, W as WebhookIdentityType, aU as WebhookIdentityTypeWithLiterals } from './ecom-v1-abandoned-checkout-abandoned-checkouts.universal-DTc3f1_H.mjs';
2
+ import { A as AbandonedCheckout, B as BulkDeleteAbandonedCheckoutsResponse, a as AbandonedCheckoutSearch, S as SearchAbandonedCheckoutsResponse, b as AddAbandonedCheckoutActivityOptions, c as AddAbandonedCheckoutActivityResponse, R as RawHttpResponse, d as AbandonedCheckoutCreatedEnvelope, e as AbandonedCheckoutDeletedEnvelope, f as AbandonedCheckoutRecoveredEnvelope, g as AbandonedCheckoutUpdatedEnvelope, h as AbandonedCheckoutsQueryBuilder, Q as QueryV2, t as typedQueryAbandonedCheckouts } from './ecom-v1-abandoned-checkout-abandoned-checkouts.universal-WxTvIcU0.mjs';
3
+ export { Y as AbandonedCheckoutRecovered, aL as AbandonedCheckoutSearchSpec, aK as AbandonedCheckoutsQueryResult, aD as ActionEvent, q as Activity, i as ActivityType, aM as ActivityTypeWithLiterals, an as AddAbandonedCheckoutActivityRequest, a3 as ApplicationError, E as AppliedDiscount, G as AppliedDiscountDiscountSourceOneOf, aI as BaseEventMetadata, a4 as BulkAbandonedCheckoutResult, a5 as BulkActionMetadata, a1 as BulkDeleteAbandonedCheckoutsRequest, T as BuyerInfo, at as Cancel, O as CartAbandonedEvent, X as CartRecoveredEvent, r as CatalogReference, y as Color, ak as CommonCursorPaging, am as CommonCursors, aj as CommonPaging, al as CommonPagingMetadataV2, aW as CommonSearchWithEntityContext, C as CommonSortOrder, aT as CommonSortOrderWithLiterals, ah as CommonSorting, as as Complete, H as Coupon, aa as CursorPaging, ad as Cursors, $ as DeleteAbandonedCheckoutRequest, a0 as DeleteAbandonedCheckoutResponse, s as DescriptionLine, v as DescriptionLineDescriptionLineValueOneOf, w as DescriptionLineName, D as DescriptionLineType, aP as DescriptionLineTypeWithLiterals, u as DescriptionLineValueOneOf, K as DiscountRule, N as DiscountRuleName, k as DiscountType, aQ as DiscountTypeWithLiterals, ax as DomainEvent, ay as DomainEventBodyOneOf, aE as Empty, az as EntityCreatedEvent, aC as EntityDeletedEvent, aB as EntityUpdatedEvent, aJ as EventMetadata, F as FullAddressContactDetails, Z as GetAbandonedCheckoutRequest, _ as GetAbandonedCheckoutResponse, aw as HeadersEntry, aG as IdentificationData, aH as IdentificationDataIdOneOf, I as Identity, aR as IdentityWithLiterals, a2 as ItemMetadata, L as LineItem, J as MerchantDiscount, aF as MessageEnvelope, M as Mode, aU as ModeWithLiterals, p as MultiCurrencyPrice, a9 as Paging, ac as PagingMetadataV2, z as PhysicalProperties, x as PlainTextValue, P as ProductName, a6 as QueryAbandonedCheckoutsRequest, ab as QueryAbandonedCheckoutsResponse, a7 as QueryV2PagingMethodOneOf, av as RedirectToCheckoutRequest, au as Reschedule, aA as RestoreInfo, af as Search, ae as SearchAbandonedCheckoutsRequest, ai as SearchDetails, ag as SearchPagingMethodOneOf, l as SortOrder, aS as SortOrderWithLiterals, a8 as Sorting, j as Status, aN as StatusWithLiterals, ao as Task, aq as TaskAction, ar as TaskActionActionOneOf, ap as TaskKey, U as Totals, m as V1BuyerInfo, n as V1BuyerInfoIdOneOf, o as VatId, V as VatType, aO as VatTypeWithLiterals, W as WebhookIdentityType, aV as WebhookIdentityTypeWithLiterals } from './ecom-v1-abandoned-checkout-abandoned-checkouts.universal-WxTvIcU0.mjs';
4
4
 
5
5
  declare function getAbandonedCheckout$1(httpClient: HttpClient): GetAbandonedCheckoutSignature;
6
6
  interface GetAbandonedCheckoutSignature {
@@ -27,19 +27,6 @@ interface BulkDeleteAbandonedCheckoutsSignature {
27
27
  */
28
28
  (abandonedCheckoutIds: string[]): Promise<NonNullablePaths<BulkDeleteAbandonedCheckoutsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
29
29
  }
30
- declare function queryAbandonedCheckouts$1(httpClient: HttpClient): QueryAbandonedCheckoutsSignature;
31
- interface QueryAbandonedCheckoutsSignature {
32
- /**
33
- * Creates a query to retrieve a list of abandoned checkouts.
34
- *
35
- * The `queryAbandonedCheckouts()` function builds a query to retrieve a list of abandoned checkouts and returns a `ResultsQueryBuilder` object.
36
- *
37
- * The returned object contains the query definition, which is typically used to run the query using the `find()` function.
38
- *
39
- * You can refine the query by chaining `ResultsQueryBuilder` functions onto the query. `ResultsQueryBuilder` functions enable you to sort, filter, and control the results `queryAbandonedCheckouts()` returns.
40
- */
41
- (): AbandonedCheckoutsQueryBuilder;
42
- }
43
30
  declare function searchAbandonedCheckouts$1(httpClient: HttpClient): SearchAbandonedCheckoutsSignature;
44
31
  interface SearchAbandonedCheckoutsSignature {
45
32
  /**
@@ -71,14 +58,18 @@ declare const onAbandonedCheckoutDeleted$1: EventDefinition<AbandonedCheckoutDel
71
58
  declare const onAbandonedCheckoutRecovered$1: EventDefinition<AbandonedCheckoutRecoveredEnvelope, "wix.ecom.v1.abandoned_checkout_recovered">;
72
59
  declare const onAbandonedCheckoutUpdated$1: EventDefinition<AbandonedCheckoutUpdatedEnvelope, "wix.ecom.v1.abandoned_checkout_updated">;
73
60
 
61
+ declare function customQueryAbandonedCheckouts(httpClient: HttpClient): {
62
+ (): AbandonedCheckoutsQueryBuilder;
63
+ (query: QueryV2): ReturnType<typeof typedQueryAbandonedCheckouts>;
64
+ };
74
65
  declare const getAbandonedCheckout: MaybeContext<BuildRESTFunction<typeof getAbandonedCheckout$1> & typeof getAbandonedCheckout$1>;
75
66
  declare const deleteAbandonedCheckout: MaybeContext<BuildRESTFunction<typeof deleteAbandonedCheckout$1> & typeof deleteAbandonedCheckout$1>;
76
67
  declare const bulkDeleteAbandonedCheckouts: MaybeContext<BuildRESTFunction<typeof bulkDeleteAbandonedCheckouts$1> & typeof bulkDeleteAbandonedCheckouts$1>;
77
- declare const queryAbandonedCheckouts: MaybeContext<BuildRESTFunction<typeof queryAbandonedCheckouts$1> & typeof queryAbandonedCheckouts$1>;
78
68
  declare const searchAbandonedCheckouts: MaybeContext<BuildRESTFunction<typeof searchAbandonedCheckouts$1> & typeof searchAbandonedCheckouts$1>;
79
69
  /** @internal */
80
70
  declare const addAbandonedCheckoutActivity: MaybeContext<BuildRESTFunction<typeof addAbandonedCheckoutActivity$1> & typeof addAbandonedCheckoutActivity$1>;
81
71
  declare const redirectToCheckout: MaybeContext<BuildRESTFunction<typeof redirectToCheckout$1> & typeof redirectToCheckout$1>;
72
+ declare const queryAbandonedCheckouts: MaybeContext<BuildRESTFunction<typeof customQueryAbandonedCheckouts> & typeof customQueryAbandonedCheckouts>;
82
73
  /**
83
74
  * Triggered when an abandoned checkout is created.
84
75
  */
@@ -96,4 +87,4 @@ declare const onAbandonedCheckoutRecovered: BuildEventDefinition<typeof onAbando
96
87
  */
97
88
  declare const onAbandonedCheckoutUpdated: BuildEventDefinition<typeof onAbandonedCheckoutUpdated$1> & typeof onAbandonedCheckoutUpdated$1;
98
89
 
99
- export { AbandonedCheckout, AbandonedCheckoutCreatedEnvelope, AbandonedCheckoutDeletedEnvelope, AbandonedCheckoutRecoveredEnvelope, AbandonedCheckoutSearch, AbandonedCheckoutUpdatedEnvelope, AbandonedCheckoutsQueryBuilder, AddAbandonedCheckoutActivityOptions, AddAbandonedCheckoutActivityResponse, BulkDeleteAbandonedCheckoutsResponse, RawHttpResponse, SearchAbandonedCheckoutsResponse, addAbandonedCheckoutActivity, bulkDeleteAbandonedCheckouts, deleteAbandonedCheckout, getAbandonedCheckout, onAbandonedCheckoutCreated, onAbandonedCheckoutDeleted, onAbandonedCheckoutRecovered, onAbandonedCheckoutUpdated, queryAbandonedCheckouts, redirectToCheckout, searchAbandonedCheckouts };
90
+ export { AbandonedCheckout, AbandonedCheckoutCreatedEnvelope, AbandonedCheckoutDeletedEnvelope, AbandonedCheckoutRecoveredEnvelope, AbandonedCheckoutSearch, AbandonedCheckoutUpdatedEnvelope, AbandonedCheckoutsQueryBuilder, AddAbandonedCheckoutActivityOptions, AddAbandonedCheckoutActivityResponse, BulkDeleteAbandonedCheckoutsResponse, QueryV2, RawHttpResponse, SearchAbandonedCheckoutsResponse, addAbandonedCheckoutActivity, bulkDeleteAbandonedCheckouts, deleteAbandonedCheckout, getAbandonedCheckout, onAbandonedCheckoutCreated, onAbandonedCheckoutDeleted, onAbandonedCheckoutRecovered, onAbandonedCheckoutUpdated, queryAbandonedCheckouts, redirectToCheckout, searchAbandonedCheckouts };
@@ -513,6 +513,39 @@ function queryAbandonedCheckouts2() {
513
513
  transformationPaths: {}
514
514
  });
515
515
  }
516
+ async function typedQueryAbandonedCheckouts(query) {
517
+ const { httpClient, sideEffects } = arguments[1];
518
+ const payload = renameKeysFromSDKRequestToRESTRequest({ query });
519
+ const reqOpts = queryAbandonedCheckouts(payload);
520
+ sideEffects?.onSiteCall?.();
521
+ try {
522
+ const result = await httpClient.request(reqOpts);
523
+ sideEffects?.onSuccess?.(result);
524
+ return renameKeysFromRESTResponseToSDKResponse(
525
+ transformPaths2(result.data, [
526
+ {
527
+ transformFn: transformRESTImageToSDKImage,
528
+ paths: [
529
+ { path: "results.lineItems.image" },
530
+ { path: "abandonedCheckouts.lineItems.image" }
531
+ ]
532
+ }
533
+ ])
534
+ );
535
+ } catch (err) {
536
+ const transformedError = sdkTransformError(
537
+ err,
538
+ {
539
+ spreadPathsToArguments: {},
540
+ explicitPathsToArguments: { query: "$[0]" },
541
+ singleArgumentUnchanged: false
542
+ },
543
+ ["query"]
544
+ );
545
+ sideEffects?.onError?.(err);
546
+ throw transformedError;
547
+ }
548
+ }
516
549
  async function searchAbandonedCheckouts2(search) {
517
550
  const { httpClient, sideEffects } = arguments[1];
518
551
  const payload = renameKeysFromSDKRequestToRESTRequest({ search });
@@ -637,6 +670,13 @@ function queryAbandonedCheckouts3(httpClient) {
637
670
  { httpClient }
638
671
  );
639
672
  }
673
+ function typedQueryAbandonedCheckouts2(httpClient) {
674
+ return (query) => typedQueryAbandonedCheckouts(
675
+ query,
676
+ // @ts-ignore
677
+ { httpClient }
678
+ );
679
+ }
640
680
  function searchAbandonedCheckouts3(httpClient) {
641
681
  return (search) => searchAbandonedCheckouts2(
642
682
  search,
@@ -784,13 +824,25 @@ var onAbandonedCheckoutUpdated = EventDefinition(
784
824
  // src/ecom-v1-abandoned-checkout-abandoned-checkouts.context.ts
785
825
  import { createRESTModule } from "@wix/sdk-runtime/rest-modules";
786
826
  import { createEventModule } from "@wix/sdk-runtime/event-definition-modules";
827
+ import { createQueryOverloadRouter } from "@wix/sdk-runtime/query-method-router";
828
+ function customQueryAbandonedCheckouts(httpClient) {
829
+ const router = createQueryOverloadRouter({
830
+ builderQueryFunction: () => queryAbandonedCheckouts3(httpClient)(),
831
+ typedQueryFunction: (query) => typedQueryAbandonedCheckouts2(httpClient)(query),
832
+ hasOptionsParameter: false
833
+ });
834
+ function overloadedQuery(query) {
835
+ return router(...arguments);
836
+ }
837
+ return overloadedQuery;
838
+ }
787
839
  var getAbandonedCheckout4 = /* @__PURE__ */ createRESTModule(getAbandonedCheckout3);
788
840
  var deleteAbandonedCheckout4 = /* @__PURE__ */ createRESTModule(deleteAbandonedCheckout3);
789
841
  var bulkDeleteAbandonedCheckouts4 = /* @__PURE__ */ createRESTModule(bulkDeleteAbandonedCheckouts3);
790
- var queryAbandonedCheckouts4 = /* @__PURE__ */ createRESTModule(queryAbandonedCheckouts3);
791
842
  var searchAbandonedCheckouts4 = /* @__PURE__ */ createRESTModule(searchAbandonedCheckouts3);
792
843
  var addAbandonedCheckoutActivity4 = /* @__PURE__ */ createRESTModule(addAbandonedCheckoutActivity3);
793
844
  var redirectToCheckout4 = /* @__PURE__ */ createRESTModule(redirectToCheckout3);
845
+ var queryAbandonedCheckouts4 = /* @__PURE__ */ createRESTModule(customQueryAbandonedCheckouts);
794
846
  var onAbandonedCheckoutCreated2 = createEventModule(
795
847
  onAbandonedCheckoutCreated
796
848
  );