@wix/auto_sdk_ecom_abandoned-checkouts 1.0.47 → 1.0.49

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
@@ -1345,6 +1345,12 @@ interface AbandonedCheckoutsQueryBuilder {
1345
1345
  skipTo: (cursor: string) => AbandonedCheckoutsQueryBuilder;
1346
1346
  find: () => Promise<AbandonedCheckoutsQueryResult>;
1347
1347
  }
1348
+ /**
1349
+ * @hidden
1350
+ * @fqn wix.ecom.abandoned_checkout.api.v1.AbandonedCheckoutService.QueryAbandonedCheckouts
1351
+ * @requiredField query
1352
+ */
1353
+ 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>>;
1348
1354
  interface AbandonedCheckoutSearchSpec extends SearchSpec {
1349
1355
  searchable: [
1350
1356
  'buyerInfo.email',
@@ -1465,4 +1471,4 @@ interface AddAbandonedCheckoutActivityOptions {
1465
1471
  */
1466
1472
  declare function redirectToCheckout(abandonedCheckoutId: string, metasiteId: string): Promise<NonNullablePaths<RawHttpResponse, `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`, 4>>;
1467
1473
 
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 };
1474
+ export { type BulkDeleteAbandonedCheckoutsRequest as $, type AbandonedCheckout as A, type BulkDeleteAbandonedCheckoutsResponse as B, CommonSortOrder as C, DescriptionLineType as D, type Coupon as E, type FullAddressContactDetails as F, type MerchantDiscount as G, type DiscountRule as H, Identity as I, type DiscountRuleName as J, type CartAbandonedEvent as K, type LineItem as L, Mode as M, type BuyerInfo as N, type CartRecoveredEvent as O, type ProductName as P, type QueryV2 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 AbandonedCheckoutSearch as a, getAbandonedCheckout as a$, type ItemMetadata as a0, type ApplicationError as a1, type BulkAbandonedCheckoutResult as a2, type BulkActionMetadata as a3, type QueryAbandonedCheckoutsRequest as a4, type QueryV2PagingMethodOneOf as a5, type Sorting as a6, type Paging as a7, type CursorPaging as a8, type QueryAbandonedCheckoutsResponse 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 AddAbandonedCheckoutActivityOptions 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 PagingMetadataV2 as aa, type Cursors as ab, type SearchAbandonedCheckoutsRequest as ac, type Search as ad, type SearchPagingMethodOneOf as ae, type CommonSorting as af, type SearchDetails as ag, type CommonPaging as ah, type CommonCursorPaging as ai, type CommonPagingMetadataV2 as aj, type CommonCursors as ak, type AddAbandonedCheckoutActivityRequest as al, type AddAbandonedCheckoutActivityResponse 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 AbandonedCheckoutCreatedEnvelope as b, deleteAbandonedCheckout as b0, bulkDeleteAbandonedCheckouts as b1, queryAbandonedCheckouts as b2, redirectToCheckout as b3, type AbandonedCheckoutDeletedEnvelope as c, type AbandonedCheckoutRecoveredEnvelope as d, type AbandonedCheckoutUpdatedEnvelope as e, type AbandonedCheckoutsQueryBuilder 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, typedQueryAbandonedCheckouts as t, type DescriptionLineName as u, type PlainTextValue as v, type Color as w, type PhysicalProperties as x, type AppliedDiscount as y, type AppliedDiscountDiscountSourceOneOf 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-CCZj0Gfc.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-CCZj0Gfc.js';
2
+ import { A as AbandonedCheckout, B as BulkDeleteAbandonedCheckoutsResponse, a as AbandonedCheckoutSearch, S as SearchAbandonedCheckoutsResponse, R as RawHttpResponse, b as AbandonedCheckoutCreatedEnvelope, c as AbandonedCheckoutDeletedEnvelope, d as AbandonedCheckoutRecoveredEnvelope, e as AbandonedCheckoutUpdatedEnvelope, f as AbandonedCheckoutsQueryBuilder, Q as QueryV2, t as typedQueryAbandonedCheckouts } from './ecom-v1-abandoned-checkout-abandoned-checkouts.universal-DhcdCax5.js';
3
+ export { U as AbandonedCheckoutRecovered, aK as AbandonedCheckoutSearchSpec, aJ as AbandonedCheckoutsQueryResult, aC as ActionEvent, o as Activity, g as ActivityType, aM as ActivityTypeWithLiterals, aL as AddAbandonedCheckoutActivityOptions, al as AddAbandonedCheckoutActivityRequest, am as AddAbandonedCheckoutActivityResponse, a1 as ApplicationError, y as AppliedDiscount, z as AppliedDiscountDiscountSourceOneOf, aH as BaseEventMetadata, a2 as BulkAbandonedCheckoutResult, a3 as BulkActionMetadata, $ as BulkDeleteAbandonedCheckoutsRequest, N as BuyerInfo, as as Cancel, K as CartAbandonedEvent, O as CartRecoveredEvent, p as CatalogReference, w as Color, ai as CommonCursorPaging, ak as CommonCursors, ah as CommonPaging, aj as CommonPagingMetadataV2, aW as CommonSearchWithEntityContext, C as CommonSortOrder, aT as CommonSortOrderWithLiterals, af as CommonSorting, ar as Complete, E as Coupon, a8 as CursorPaging, ab as Cursors, Z as DeleteAbandonedCheckoutRequest, _ as DeleteAbandonedCheckoutResponse, q as DescriptionLine, s as DescriptionLineDescriptionLineValueOneOf, u as DescriptionLineName, D as DescriptionLineType, aP as DescriptionLineTypeWithLiterals, r as DescriptionLineValueOneOf, H as DiscountRule, J as DiscountRuleName, i as DiscountType, aQ 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, aR as IdentityWithLiterals, a0 as ItemMetadata, L as LineItem, G as MerchantDiscount, aE as MessageEnvelope, M as Mode, aU as ModeWithLiterals, n as MultiCurrencyPrice, a7 as Paging, aa as PagingMetadataV2, x as PhysicalProperties, v as PlainTextValue, P as ProductName, a4 as QueryAbandonedCheckoutsRequest, a9 as QueryAbandonedCheckoutsResponse, a5 as QueryV2PagingMethodOneOf, au as RedirectToCheckoutRequest, at as Reschedule, az as RestoreInfo, ad as Search, ac as SearchAbandonedCheckoutsRequest, ag as SearchDetails, ae as SearchPagingMethodOneOf, j as SortOrder, aS as SortOrderWithLiterals, a6 as Sorting, h as Status, aN as StatusWithLiterals, an as Task, ap as TaskAction, aq as TaskActionActionOneOf, ao as TaskKey, T as Totals, k as V1BuyerInfo, l as V1BuyerInfoIdOneOf, m as VatId, V as VatType, aO as VatTypeWithLiterals, W as WebhookIdentityType, aV as WebhookIdentityTypeWithLiterals } from './ecom-v1-abandoned-checkout-abandoned-checkouts.universal-DhcdCax5.js';
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
  /**
@@ -62,12 +49,16 @@ declare const onAbandonedCheckoutDeleted$1: EventDefinition<AbandonedCheckoutDel
62
49
  declare const onAbandonedCheckoutRecovered$1: EventDefinition<AbandonedCheckoutRecoveredEnvelope, "wix.ecom.v1.abandoned_checkout_recovered">;
63
50
  declare const onAbandonedCheckoutUpdated$1: EventDefinition<AbandonedCheckoutUpdatedEnvelope, "wix.ecom.v1.abandoned_checkout_updated">;
64
51
 
52
+ declare function customQueryAbandonedCheckouts(httpClient: HttpClient): {
53
+ (): AbandonedCheckoutsQueryBuilder;
54
+ (query: QueryV2): ReturnType<typeof typedQueryAbandonedCheckouts>;
55
+ };
65
56
  declare const getAbandonedCheckout: MaybeContext<BuildRESTFunction<typeof getAbandonedCheckout$1> & typeof getAbandonedCheckout$1>;
66
57
  declare const deleteAbandonedCheckout: MaybeContext<BuildRESTFunction<typeof deleteAbandonedCheckout$1> & typeof deleteAbandonedCheckout$1>;
67
58
  declare const bulkDeleteAbandonedCheckouts: MaybeContext<BuildRESTFunction<typeof bulkDeleteAbandonedCheckouts$1> & typeof bulkDeleteAbandonedCheckouts$1>;
68
- declare const queryAbandonedCheckouts: MaybeContext<BuildRESTFunction<typeof queryAbandonedCheckouts$1> & typeof queryAbandonedCheckouts$1>;
69
59
  declare const searchAbandonedCheckouts: MaybeContext<BuildRESTFunction<typeof searchAbandonedCheckouts$1> & typeof searchAbandonedCheckouts$1>;
70
60
  declare const redirectToCheckout: MaybeContext<BuildRESTFunction<typeof redirectToCheckout$1> & typeof redirectToCheckout$1>;
61
+ declare const queryAbandonedCheckouts: MaybeContext<BuildRESTFunction<typeof customQueryAbandonedCheckouts> & typeof customQueryAbandonedCheckouts>;
71
62
  /**
72
63
  * Triggered when an abandoned checkout is created.
73
64
  */
@@ -85,4 +76,4 @@ declare const onAbandonedCheckoutRecovered: BuildEventDefinition<typeof onAbando
85
76
  */
86
77
  declare const onAbandonedCheckoutUpdated: BuildEventDefinition<typeof onAbandonedCheckoutUpdated$1> & typeof onAbandonedCheckoutUpdated$1;
87
78
 
88
- export { AbandonedCheckout, AbandonedCheckoutCreatedEnvelope, AbandonedCheckoutDeletedEnvelope, AbandonedCheckoutRecoveredEnvelope, AbandonedCheckoutSearch, AbandonedCheckoutUpdatedEnvelope, AbandonedCheckoutsQueryBuilder, BulkDeleteAbandonedCheckoutsResponse, RawHttpResponse, SearchAbandonedCheckoutsResponse, bulkDeleteAbandonedCheckouts, deleteAbandonedCheckout, getAbandonedCheckout, onAbandonedCheckoutCreated, onAbandonedCheckoutDeleted, onAbandonedCheckoutRecovered, onAbandonedCheckoutUpdated, queryAbandonedCheckouts, redirectToCheckout, searchAbandonedCheckouts };
79
+ export { AbandonedCheckout, AbandonedCheckoutCreatedEnvelope, AbandonedCheckoutDeletedEnvelope, AbandonedCheckoutRecoveredEnvelope, AbandonedCheckoutSearch, AbandonedCheckoutUpdatedEnvelope, AbandonedCheckoutsQueryBuilder, BulkDeleteAbandonedCheckoutsResponse, QueryV2, RawHttpResponse, SearchAbandonedCheckoutsResponse, bulkDeleteAbandonedCheckouts, deleteAbandonedCheckout, getAbandonedCheckout, onAbandonedCheckoutCreated, onAbandonedCheckoutDeleted, onAbandonedCheckoutRecovered, onAbandonedCheckoutUpdated, queryAbandonedCheckouts, redirectToCheckout, searchAbandonedCheckouts };
@@ -556,6 +556,39 @@ function queryAbandonedCheckouts2() {
556
556
  transformationPaths: {}
557
557
  });
558
558
  }
559
+ async function typedQueryAbandonedCheckouts(query) {
560
+ const { httpClient, sideEffects } = arguments[1];
561
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ query });
562
+ const reqOpts = queryAbandonedCheckouts(payload);
563
+ sideEffects?.onSiteCall?.();
564
+ try {
565
+ const result = await httpClient.request(reqOpts);
566
+ sideEffects?.onSuccess?.(result);
567
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
568
+ (0, import_transform_paths2.transformPaths)(result.data, [
569
+ {
570
+ transformFn: import_image.transformRESTImageToSDKImage,
571
+ paths: [
572
+ { path: "results.lineItems.image" },
573
+ { path: "abandonedCheckouts.lineItems.image" }
574
+ ]
575
+ }
576
+ ])
577
+ );
578
+ } catch (err) {
579
+ const transformedError = (0, import_transform_error.transformError)(
580
+ err,
581
+ {
582
+ spreadPathsToArguments: {},
583
+ explicitPathsToArguments: { query: "$[0]" },
584
+ singleArgumentUnchanged: false
585
+ },
586
+ ["query"]
587
+ );
588
+ sideEffects?.onError?.(err);
589
+ throw transformedError;
590
+ }
591
+ }
559
592
  async function searchAbandonedCheckouts2(search) {
560
593
  const { httpClient, sideEffects } = arguments[1];
561
594
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ search });
@@ -680,6 +713,13 @@ function queryAbandonedCheckouts3(httpClient) {
680
713
  { httpClient }
681
714
  );
682
715
  }
716
+ function typedQueryAbandonedCheckouts2(httpClient) {
717
+ return (query) => typedQueryAbandonedCheckouts(
718
+ query,
719
+ // @ts-ignore
720
+ { httpClient }
721
+ );
722
+ }
683
723
  function searchAbandonedCheckouts3(httpClient) {
684
724
  return (search) => searchAbandonedCheckouts2(
685
725
  search,
@@ -827,13 +867,25 @@ var onAbandonedCheckoutUpdated = (0, import_sdk_types.EventDefinition)(
827
867
  // src/ecom-v1-abandoned-checkout-abandoned-checkouts.context.ts
828
868
  var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
829
869
  var import_event_definition_modules = require("@wix/sdk-runtime/event-definition-modules");
870
+ var import_query_method_router = require("@wix/sdk-runtime/query-method-router");
871
+ function customQueryAbandonedCheckouts(httpClient) {
872
+ const router = (0, import_query_method_router.createQueryOverloadRouter)({
873
+ builderQueryFunction: () => queryAbandonedCheckouts3(httpClient)(),
874
+ typedQueryFunction: (query) => typedQueryAbandonedCheckouts2(httpClient)(query),
875
+ hasOptionsParameter: false
876
+ });
877
+ function overloadedQuery(query) {
878
+ return router(...arguments);
879
+ }
880
+ return overloadedQuery;
881
+ }
830
882
  var getAbandonedCheckout4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getAbandonedCheckout3);
831
883
  var deleteAbandonedCheckout4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteAbandonedCheckout3);
832
884
  var bulkDeleteAbandonedCheckouts4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkDeleteAbandonedCheckouts3);
833
- var queryAbandonedCheckouts4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(queryAbandonedCheckouts3);
834
885
  var searchAbandonedCheckouts4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(searchAbandonedCheckouts3);
835
886
  var addAbandonedCheckoutActivity4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(addAbandonedCheckoutActivity3);
836
887
  var redirectToCheckout4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(redirectToCheckout3);
888
+ var queryAbandonedCheckouts4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(customQueryAbandonedCheckouts);
837
889
  var onAbandonedCheckoutCreated2 = (0, import_event_definition_modules.createEventModule)(
838
890
  onAbandonedCheckoutCreated
839
891
  );