@wix/auto_sdk_ecom_abandoned-checkouts 1.0.24 → 1.0.25

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 (25) hide show
  1. package/build/cjs/{ecom-v1-abandoned-checkout-abandoned-checkouts.universal-CyOrLIzk.d.ts → ecom-v1-abandoned-checkout-abandoned-checkouts.universal-BBg7__GU.d.ts} +144 -2
  2. package/build/cjs/index.d.ts +2 -2
  3. package/build/cjs/index.typings.d.ts +18 -0
  4. package/build/cjs/index.typings.js +476 -0
  5. package/build/cjs/index.typings.js.map +1 -0
  6. package/build/cjs/meta.d.ts +1 -1
  7. package/build/es/{ecom-v1-abandoned-checkout-abandoned-checkouts.universal-CyOrLIzk.d.mts → ecom-v1-abandoned-checkout-abandoned-checkouts.universal-BBg7__GU.d.mts} +144 -2
  8. package/build/es/index.d.mts +2 -2
  9. package/build/es/index.typings.d.mts +18 -0
  10. package/build/es/index.typings.mjs +439 -0
  11. package/build/es/index.typings.mjs.map +1 -0
  12. package/build/es/meta.d.mts +1 -1
  13. package/build/internal/cjs/{ecom-v1-abandoned-checkout-abandoned-checkouts.universal-BUR9417i.d.ts → ecom-v1-abandoned-checkout-abandoned-checkouts.universal-BKlwJk8K.d.ts} +157 -2
  14. package/build/internal/cjs/index.d.ts +2 -2
  15. package/build/internal/cjs/index.typings.d.ts +18 -0
  16. package/build/internal/cjs/index.typings.js +476 -0
  17. package/build/internal/cjs/index.typings.js.map +1 -0
  18. package/build/internal/cjs/meta.d.ts +1 -1
  19. package/build/internal/es/{ecom-v1-abandoned-checkout-abandoned-checkouts.universal-BUR9417i.d.mts → ecom-v1-abandoned-checkout-abandoned-checkouts.universal-BKlwJk8K.d.mts} +157 -2
  20. package/build/internal/es/index.d.mts +2 -2
  21. package/build/internal/es/index.typings.d.mts +18 -0
  22. package/build/internal/es/index.typings.mjs +439 -0
  23. package/build/internal/es/index.typings.mjs.map +1 -0
  24. package/build/internal/es/meta.d.mts +1 -1
  25. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import { SearchSpec, Search as Search$1 } from '@wix/sdk-types';
1
+ import { SearchSpec, Search as Search$1, NonNullablePaths } from '@wix/sdk-types';
2
2
 
3
3
  interface AbandonedCheckout {
4
4
  /**
@@ -802,17 +802,149 @@ interface AbandonedCheckoutCreatedEnvelope {
802
802
  entity: AbandonedCheckout;
803
803
  metadata: EventMetadata;
804
804
  }
805
+ /**
806
+ * Triggered when an abandoned checkout is created.
807
+ * @permissionScope Manage Stores - all permissions
808
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
809
+ * @permissionScope Manage Stores
810
+ * @permissionScopeId SCOPE.STORES.MANAGE-STORES
811
+ * @permissionScope Read eCommerce - all read permissions
812
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
813
+ * @permissionScope Read Orders
814
+ * @permissionScopeId SCOPE.DC-STORES.READ-ORDERS
815
+ * @permissionScope Read Stores - all read permissions
816
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.READ-STORES
817
+ * @permissionScope Manage Restaurants - all permissions
818
+ * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
819
+ * @permissionScope Manage eCommerce - all permissions
820
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
821
+ * @permissionScope Manage Orders
822
+ * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
823
+ * @permissionId ECOM.ABANDONED_CHECKOUT_READ
824
+ * @webhook
825
+ * @eventType wix.ecom.v1.abandoned_checkout_created
826
+ * @slug created
827
+ */
828
+ declare function onAbandonedCheckoutCreated(handler: (event: AbandonedCheckoutCreatedEnvelope) => void | Promise<void>): void;
805
829
  interface AbandonedCheckoutDeletedEnvelope {
806
830
  metadata: EventMetadata;
807
831
  }
832
+ /**
833
+ * Triggerred when an abandoned checkout is deleted.
834
+ * @permissionScope Manage Stores - all permissions
835
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
836
+ * @permissionScope Manage Stores
837
+ * @permissionScopeId SCOPE.STORES.MANAGE-STORES
838
+ * @permissionScope Read eCommerce - all read permissions
839
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
840
+ * @permissionScope Read Orders
841
+ * @permissionScopeId SCOPE.DC-STORES.READ-ORDERS
842
+ * @permissionScope Read Stores - all read permissions
843
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.READ-STORES
844
+ * @permissionScope Manage Restaurants - all permissions
845
+ * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
846
+ * @permissionScope Manage eCommerce - all permissions
847
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
848
+ * @permissionScope Manage Orders
849
+ * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
850
+ * @permissionId ECOM.ABANDONED_CHECKOUT_READ
851
+ * @webhook
852
+ * @eventType wix.ecom.v1.abandoned_checkout_deleted
853
+ * @slug deleted
854
+ */
855
+ declare function onAbandonedCheckoutDeleted(handler: (event: AbandonedCheckoutDeletedEnvelope) => void | Promise<void>): void;
808
856
  interface AbandonedCheckoutRecoveredEnvelope {
809
857
  data: AbandonedCheckoutRecovered;
810
858
  metadata: EventMetadata;
811
859
  }
860
+ /**
861
+ * Triggered when an abandoned checkout is recovered.
862
+ * @permissionScope Manage Stores - all permissions
863
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
864
+ * @permissionScope Manage Stores
865
+ * @permissionScopeId SCOPE.STORES.MANAGE-STORES
866
+ * @permissionScope Read eCommerce - all read permissions
867
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
868
+ * @permissionScope Read Orders
869
+ * @permissionScopeId SCOPE.DC-STORES.READ-ORDERS
870
+ * @permissionScope Read Stores - all read permissions
871
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.READ-STORES
872
+ * @permissionScope Manage Restaurants - all permissions
873
+ * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
874
+ * @permissionScope Manage eCommerce - all permissions
875
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
876
+ * @permissionScope Manage Orders
877
+ * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
878
+ * @permissionId ECOM.ABANDONED_CHECKOUT_READ
879
+ * @webhook
880
+ * @eventType wix.ecom.v1.abandoned_checkout_recovered
881
+ * @slug recovered
882
+ */
883
+ declare function onAbandonedCheckoutRecovered(handler: (event: AbandonedCheckoutRecoveredEnvelope) => void | Promise<void>): void;
812
884
  interface AbandonedCheckoutUpdatedEnvelope {
813
885
  entity: AbandonedCheckout;
814
886
  metadata: EventMetadata;
815
887
  }
888
+ /**
889
+ * Triggered when an abandoned checkout is updated.
890
+ * @permissionScope Manage Stores - all permissions
891
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
892
+ * @permissionScope Manage Stores
893
+ * @permissionScopeId SCOPE.STORES.MANAGE-STORES
894
+ * @permissionScope Read eCommerce - all read permissions
895
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
896
+ * @permissionScope Read Orders
897
+ * @permissionScopeId SCOPE.DC-STORES.READ-ORDERS
898
+ * @permissionScope Read Stores - all read permissions
899
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.READ-STORES
900
+ * @permissionScope Manage Restaurants - all permissions
901
+ * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
902
+ * @permissionScope Manage eCommerce - all permissions
903
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
904
+ * @permissionScope Manage Orders
905
+ * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
906
+ * @permissionId ECOM.ABANDONED_CHECKOUT_READ
907
+ * @webhook
908
+ * @eventType wix.ecom.v1.abandoned_checkout_updated
909
+ * @slug updated
910
+ */
911
+ declare function onAbandonedCheckoutUpdated(handler: (event: AbandonedCheckoutUpdatedEnvelope) => void | Promise<void>): void;
912
+ type AbandonedCheckoutNonNullablePaths = `_id` | `status` | `buyerInfo.visitorId` | `buyerInfo.memberId` | `buyerInfo.userId` | `contactDetails.vatId._id` | `contactDetails.vatId.type` | `currency` | `totalPrice.amount` | `totalPrice.convertedAmount` | `totalPrice.formattedAmount` | `totalPrice.formattedConvertedAmount` | `activities` | `activities.${number}.type` | `checkoutUrl` | `subtotalPrice.amount` | `subtotalPrice.convertedAmount` | `subtotalPrice.formattedAmount` | `subtotalPrice.formattedConvertedAmount`;
913
+ /**
914
+ * Retrieves an abandoned checkout.
915
+ * @param abandonedCheckoutId - Abandoned checkout ID.
916
+ * @public
917
+ * @requiredField abandonedCheckoutId
918
+ * @permissionId ECOM.ABANDONED_CHECKOUT_READ
919
+ * @applicableIdentity APP
920
+ * @returns The requested abandoned checkout.
921
+ * @fqn wix.ecom.abandoned_checkout.api.v1.AbandonedCheckoutService.GetAbandonedCheckout
922
+ */
923
+ declare function getAbandonedCheckout(abandonedCheckoutId: string): Promise<NonNullablePaths<AbandonedCheckout, AbandonedCheckoutNonNullablePaths>>;
924
+ /**
925
+ * Deletes an abandoned checkout.
926
+ * @param abandonedCheckoutId - Id of the abandoned checkout to delete
927
+ * @public
928
+ * @requiredField abandonedCheckoutId
929
+ * @permissionId ECOM.ABANDONED_CHECKOUT_DELETE
930
+ * @applicableIdentity APP
931
+ * @fqn wix.ecom.abandoned_checkout.api.v1.AbandonedCheckoutService.DeleteAbandonedCheckout
932
+ */
933
+ declare function deleteAbandonedCheckout(abandonedCheckoutId: string): Promise<void>;
934
+ /**
935
+ * Creates a query to retrieve a list of abandoned checkouts.
936
+ *
937
+ * The `queryAbandonedCheckouts()` function builds a query to retrieve a list of abandoned checkouts and returns a `ResultsQueryBuilder` object.
938
+ *
939
+ * The returned object contains the query definition, which is typically used to run the query using the `find()` function.
940
+ *
941
+ * 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.
942
+ * @public
943
+ * @permissionId ECOM.ABANDONED_CHECKOUT_READ
944
+ * @applicableIdentity APP
945
+ * @fqn wix.ecom.abandoned_checkout.api.v1.AbandonedCheckoutService.QueryAbandonedCheckouts
946
+ */
947
+ declare function queryAbandonedCheckouts(): AbandonedCheckoutsQueryBuilder;
816
948
  interface QueryCursorResult {
817
949
  cursors: CommonCursors;
818
950
  hasNext: () => boolean;
@@ -967,9 +1099,32 @@ type AbandonedCheckoutSearch = {
967
1099
  fuzzy?: NonNullable<CommonSearchWithEntityContext['search']>['fuzzy'];
968
1100
  };
969
1101
  };
1102
+ /**
1103
+ * Adds a new abandoned checkout activity.
1104
+ * @param abandonedCheckoutId - Id of the abandoned checkout to update
1105
+ * @internal
1106
+ * @documentationMaturity preview
1107
+ * @requiredField abandonedCheckoutId
1108
+ * @permissionId ECOM.ABANDONED_CHECKOUT_UPDATE
1109
+ * @applicableIdentity APP
1110
+ * @fqn wix.ecom.abandoned_checkout.api.v1.AbandonedCheckoutService.AddAbandonedCheckoutActivity
1111
+ */
1112
+ declare function addAbandonedCheckoutActivity(abandonedCheckoutId: string, options?: AddAbandonedCheckoutActivityOptions): Promise<NonNullablePaths<AddAbandonedCheckoutActivityResponse, {
1113
+ [P in AbandonedCheckoutNonNullablePaths]: `abandonedCheckout.${P}`;
1114
+ }[AbandonedCheckoutNonNullablePaths]>>;
970
1115
  interface AddAbandonedCheckoutActivityOptions {
971
1116
  /** The type of the activity to add */
972
1117
  activityType?: ActivityTypeWithLiterals;
973
1118
  }
1119
+ /**
1120
+ * Redirects an abandoned checkout to its checkout page.
1121
+ * @param abandonedCheckoutId - ID of the abandoned checkout.
1122
+ * @param metasiteId - Metasite ID of the site associated with the abandoned checkout.
1123
+ * @public
1124
+ * @requiredField abandonedCheckoutId
1125
+ * @requiredField metasiteId
1126
+ * @fqn wix.ecom.abandoned_checkout.api.v1.AbandonedCheckoutService.RedirectToCheckout
1127
+ */
1128
+ declare function redirectToCheckout(abandonedCheckoutId: string, metasiteId: string): Promise<NonNullablePaths<RawHttpResponse, `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`>>;
974
1129
 
975
- export { type Task as $, type AbandonedCheckout as A, type BuyerInfo as B, CommonSortOrder as C, type DeleteAbandonedCheckoutRequest as D, type PagingMetadataV2 as E, type FullAddressContactDetails as F, type GetAbandonedCheckoutRequest as G, type Cursors as H, Identity as I, type SearchAbandonedCheckoutsRequest as J, type Search as K, type SearchPagingMethodOneOf as L, Mode as M, type CommonSorting as N, type SearchDetails as O, type Paging as P, type QueryAbandonedCheckoutsRequest as Q, type RawHttpResponse as R, type SearchAbandonedCheckoutsResponse as S, type Totals as T, type CommonPaging as U, VatType as V, WebhookIdentityType as W, type CommonCursorPaging as X, type CommonPagingMetadataV2 as Y, type CommonCursors as Z, type AddAbandonedCheckoutActivityRequest as _, type AbandonedCheckoutsQueryBuilder as a, type TaskKey as a0, type TaskAction as a1, type TaskActionActionOneOf as a2, type Complete as a3, type Cancel as a4, type Reschedule as a5, type RedirectToCheckoutRequest as a6, type HeadersEntry as a7, type DomainEvent as a8, type DomainEventBodyOneOf as a9, type EntityCreatedEvent as aa, type RestoreInfo as ab, type EntityUpdatedEvent as ac, type EntityDeletedEvent as ad, type ActionEvent as ae, type Empty as af, type MessageEnvelope as ag, type IdentificationData as ah, type IdentificationDataIdOneOf as ai, type BaseEventMetadata as aj, type EventMetadata as ak, type AbandonedCheckoutsQueryResult as al, type AbandonedCheckoutSearchSpec as am, 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 CartAbandonedEvent as q, type CartRecoveredEvent as r, type AbandonedCheckoutRecovered as s, type GetAbandonedCheckoutResponse as t, type DeleteAbandonedCheckoutResponse as u, type QueryV2 as v, type QueryV2PagingMethodOneOf as w, type Sorting as x, type CursorPaging as y, type QueryAbandonedCheckoutsResponse as z };
1130
+ export { type Task as $, type AbandonedCheckout as A, type BuyerInfo as B, CommonSortOrder as C, type DeleteAbandonedCheckoutRequest as D, type PagingMetadataV2 as E, type FullAddressContactDetails as F, type GetAbandonedCheckoutRequest as G, type Cursors as H, Identity as I, type SearchAbandonedCheckoutsRequest as J, type Search as K, type SearchPagingMethodOneOf as L, Mode as M, type CommonSorting as N, type SearchDetails as O, type Paging as P, type QueryAbandonedCheckoutsRequest as Q, type RawHttpResponse as R, type SearchAbandonedCheckoutsResponse as S, type Totals as T, type CommonPaging as U, VatType as V, WebhookIdentityType as W, type CommonCursorPaging as X, type CommonPagingMetadataV2 as Y, type CommonCursors as Z, type AddAbandonedCheckoutActivityRequest as _, type AbandonedCheckoutsQueryBuilder as a, type TaskKey as a0, type TaskAction as a1, type TaskActionActionOneOf as a2, type Complete as a3, type Cancel as a4, type Reschedule as a5, type RedirectToCheckoutRequest as a6, type HeadersEntry as a7, type DomainEvent as a8, type DomainEventBodyOneOf as a9, deleteAbandonedCheckout as aA, queryAbandonedCheckouts as aB, type CommonSearchWithEntityContext as aC, addAbandonedCheckoutActivity as aD, redirectToCheckout as aE, type EntityCreatedEvent as aa, type RestoreInfo as ab, type EntityUpdatedEvent as ac, type EntityDeletedEvent as ad, type ActionEvent as ae, type Empty as af, type MessageEnvelope as ag, type IdentificationData as ah, type IdentificationDataIdOneOf as ai, type BaseEventMetadata as aj, type EventMetadata as ak, type AbandonedCheckoutsQueryResult as al, type AbandonedCheckoutSearchSpec as am, type ActivityTypeWithLiterals as an, type StatusWithLiterals as ao, type VatTypeWithLiterals as ap, type IdentityWithLiterals as aq, type SortOrderWithLiterals as ar, type CommonSortOrderWithLiterals as as, type ModeWithLiterals as at, type WebhookIdentityTypeWithLiterals as au, onAbandonedCheckoutCreated as av, onAbandonedCheckoutDeleted as aw, onAbandonedCheckoutRecovered as ax, onAbandonedCheckoutUpdated as ay, getAbandonedCheckout 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 CartAbandonedEvent as q, type CartRecoveredEvent as r, type AbandonedCheckoutRecovered as s, type GetAbandonedCheckoutResponse as t, type DeleteAbandonedCheckoutResponse as u, type QueryV2 as v, type QueryV2PagingMethodOneOf as w, type Sorting as x, type CursorPaging as y, type QueryAbandonedCheckoutsResponse as z };
@@ -1,6 +1,6 @@
1
1
  import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
- import { A as AbandonedCheckout, 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-BUR9417i.mjs';
3
- export { s as AbandonedCheckoutRecovered, am as AbandonedCheckoutSearchSpec, al as AbandonedCheckoutsQueryResult, ae as ActionEvent, p as Activity, i as ActivityType, _ as AddAbandonedCheckoutActivityRequest, aj as BaseEventMetadata, B as BuyerInfo, a4 as Cancel, q as CartAbandonedEvent, r as CartRecoveredEvent, X as CommonCursorPaging, Z as CommonCursors, U as CommonPaging, Y as CommonPagingMetadataV2, C as CommonSortOrder, N as CommonSorting, a3 as Complete, y as CursorPaging, H as Cursors, D as DeleteAbandonedCheckoutRequest, u as DeleteAbandonedCheckoutResponse, a8 as DomainEvent, a9 as DomainEventBodyOneOf, af as Empty, aa as EntityCreatedEvent, ad as EntityDeletedEvent, ac as EntityUpdatedEvent, ak as EventMetadata, F as FullAddressContactDetails, G as GetAbandonedCheckoutRequest, t as GetAbandonedCheckoutResponse, a7 as HeadersEntry, ah as IdentificationData, ai as IdentificationDataIdOneOf, I as Identity, ag as MessageEnvelope, M as Mode, o as MultiCurrencyPrice, P as Paging, E as PagingMetadataV2, Q as QueryAbandonedCheckoutsRequest, z as QueryAbandonedCheckoutsResponse, v as QueryV2, w as QueryV2PagingMethodOneOf, a6 as RedirectToCheckoutRequest, a5 as Reschedule, ab as RestoreInfo, K as Search, J as SearchAbandonedCheckoutsRequest, O as SearchDetails, L as SearchPagingMethodOneOf, k as SortOrder, x as Sorting, j as Status, $ as Task, a1 as TaskAction, a2 as TaskActionActionOneOf, a0 as TaskKey, T as Totals, l as V1BuyerInfo, m as V1BuyerInfoIdOneOf, n as VatId, V as VatType, W as WebhookIdentityType } from './ecom-v1-abandoned-checkout-abandoned-checkouts.universal-BUR9417i.mjs';
2
+ import { A as AbandonedCheckout, 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-BKlwJk8K.mjs';
3
+ export { s as AbandonedCheckoutRecovered, am as AbandonedCheckoutSearchSpec, al as AbandonedCheckoutsQueryResult, ae as ActionEvent, p as Activity, i as ActivityType, _ as AddAbandonedCheckoutActivityRequest, aj as BaseEventMetadata, B as BuyerInfo, a4 as Cancel, q as CartAbandonedEvent, r as CartRecoveredEvent, X as CommonCursorPaging, Z as CommonCursors, U as CommonPaging, Y as CommonPagingMetadataV2, C as CommonSortOrder, N as CommonSorting, a3 as Complete, y as CursorPaging, H as Cursors, D as DeleteAbandonedCheckoutRequest, u as DeleteAbandonedCheckoutResponse, a8 as DomainEvent, a9 as DomainEventBodyOneOf, af as Empty, aa as EntityCreatedEvent, ad as EntityDeletedEvent, ac as EntityUpdatedEvent, ak as EventMetadata, F as FullAddressContactDetails, G as GetAbandonedCheckoutRequest, t as GetAbandonedCheckoutResponse, a7 as HeadersEntry, ah as IdentificationData, ai as IdentificationDataIdOneOf, I as Identity, ag as MessageEnvelope, M as Mode, o as MultiCurrencyPrice, P as Paging, E as PagingMetadataV2, Q as QueryAbandonedCheckoutsRequest, z as QueryAbandonedCheckoutsResponse, v as QueryV2, w as QueryV2PagingMethodOneOf, a6 as RedirectToCheckoutRequest, a5 as Reschedule, ab as RestoreInfo, K as Search, J as SearchAbandonedCheckoutsRequest, O as SearchDetails, L as SearchPagingMethodOneOf, k as SortOrder, x as Sorting, j as Status, $ as Task, a1 as TaskAction, a2 as TaskActionActionOneOf, a0 as TaskKey, T as Totals, l as V1BuyerInfo, m as V1BuyerInfoIdOneOf, n as VatId, V as VatType, W as WebhookIdentityType } from './ecom-v1-abandoned-checkout-abandoned-checkouts.universal-BKlwJk8K.mjs';
4
4
 
5
5
  declare function getAbandonedCheckout$1(httpClient: HttpClient): GetAbandonedCheckoutSignature;
6
6
  interface GetAbandonedCheckoutSignature {
@@ -0,0 +1,18 @@
1
+ import { K as Search, S as SearchAbandonedCheckoutsResponse } from './ecom-v1-abandoned-checkout-abandoned-checkouts.universal-BKlwJk8K.mjs';
2
+ export { A as AbandonedCheckout, e as AbandonedCheckoutCreatedEnvelope, f as AbandonedCheckoutDeletedEnvelope, s as AbandonedCheckoutRecovered, g as AbandonedCheckoutRecoveredEnvelope, am as AbandonedCheckoutSearchSpec, h as AbandonedCheckoutUpdatedEnvelope, a as AbandonedCheckoutsQueryBuilder, al as AbandonedCheckoutsQueryResult, ae as ActionEvent, p as Activity, i as ActivityType, an as ActivityTypeWithLiterals, c as AddAbandonedCheckoutActivityOptions, _ as AddAbandonedCheckoutActivityRequest, d as AddAbandonedCheckoutActivityResponse, aj as BaseEventMetadata, B as BuyerInfo, a4 as Cancel, q as CartAbandonedEvent, r as CartRecoveredEvent, X as CommonCursorPaging, Z as CommonCursors, U as CommonPaging, Y as CommonPagingMetadataV2, aC as CommonSearchWithEntityContext, C as CommonSortOrder, as as CommonSortOrderWithLiterals, N as CommonSorting, a3 as Complete, y as CursorPaging, H as Cursors, D as DeleteAbandonedCheckoutRequest, u as DeleteAbandonedCheckoutResponse, a8 as DomainEvent, a9 as DomainEventBodyOneOf, af as Empty, aa as EntityCreatedEvent, ad as EntityDeletedEvent, ac as EntityUpdatedEvent, ak as EventMetadata, F as FullAddressContactDetails, G as GetAbandonedCheckoutRequest, t as GetAbandonedCheckoutResponse, a7 as HeadersEntry, ah as IdentificationData, ai as IdentificationDataIdOneOf, I as Identity, aq as IdentityWithLiterals, ag as MessageEnvelope, M as Mode, at as ModeWithLiterals, o as MultiCurrencyPrice, P as Paging, E as PagingMetadataV2, Q as QueryAbandonedCheckoutsRequest, z as QueryAbandonedCheckoutsResponse, v as QueryV2, w as QueryV2PagingMethodOneOf, R as RawHttpResponse, a6 as RedirectToCheckoutRequest, a5 as Reschedule, ab as RestoreInfo, J as SearchAbandonedCheckoutsRequest, O as SearchDetails, L as SearchPagingMethodOneOf, k as SortOrder, ar as SortOrderWithLiterals, x as Sorting, j as Status, ao as StatusWithLiterals, $ as Task, a1 as TaskAction, a2 as TaskActionActionOneOf, a0 as TaskKey, T as Totals, l as V1BuyerInfo, m as V1BuyerInfoIdOneOf, n as VatId, V as VatType, ap as VatTypeWithLiterals, W as WebhookIdentityType, au as WebhookIdentityTypeWithLiterals, aD as addAbandonedCheckoutActivity, aA as deleteAbandonedCheckout, az as getAbandonedCheckout, av as onAbandonedCheckoutCreated, aw as onAbandonedCheckoutDeleted, ax as onAbandonedCheckoutRecovered, ay as onAbandonedCheckoutUpdated, aB as queryAbandonedCheckouts, aE as redirectToCheckout } from './ecom-v1-abandoned-checkout-abandoned-checkouts.universal-BKlwJk8K.mjs';
3
+ import '@wix/sdk-types';
4
+
5
+ /** @hidden */
6
+ type AbandonedCheckoutSearch = {};
7
+ /**
8
+ * Retrieves a list of abandoned checkouts, given the provided paging, filtering, search details and sorting. Up to 100 abandoned checkouts can be returned per request.
9
+ * @param search - WQL query expression.
10
+ * @public
11
+ * @requiredField search
12
+ * @permissionId ECOM.ABANDONED_CHECKOUT_READ
13
+ * @applicableIdentity APP
14
+ * @fqn wix.ecom.abandoned_checkout.api.v1.AbandonedCheckoutService.SearchAbandonedCheckouts
15
+ */
16
+ declare function searchAbandonedCheckouts(search: Search): Promise<SearchAbandonedCheckoutsResponse>;
17
+
18
+ export { type AbandonedCheckoutSearch, Search, SearchAbandonedCheckoutsResponse, searchAbandonedCheckouts };
@@ -0,0 +1,439 @@
1
+ // src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.ts
2
+ import { transformError as sdkTransformError } from "@wix/sdk-runtime/transform-error";
3
+ import { queryBuilder } from "@wix/sdk-runtime/query-builder";
4
+ import {
5
+ renameKeysFromSDKRequestToRESTRequest,
6
+ renameKeysFromRESTResponseToSDKResponse
7
+ } from "@wix/sdk-runtime/rename-all-nested-keys";
8
+
9
+ // src/ecom-v1-abandoned-checkout-abandoned-checkouts.http.ts
10
+ import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
11
+ import { transformRESTBytesToSDKBytes } from "@wix/sdk-runtime/transformations/bytes";
12
+ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
13
+ import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
14
+ import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
15
+ function resolveWixEcomAbandonedCheckoutApiV1AbandonedCheckoutServiceUrl(opts) {
16
+ const domainToMappings = {
17
+ "api._api_base_domain_": [
18
+ {
19
+ srcPath: "/abandoned-checkout",
20
+ destPath: ""
21
+ }
22
+ ],
23
+ "www.wixapis.com": [
24
+ {
25
+ srcPath: "/ecom/v1/abandoned-checkout",
26
+ destPath: "/v1/abandoned-checkout"
27
+ }
28
+ ]
29
+ };
30
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
31
+ }
32
+ var PACKAGE_NAME = "@wix/auto_sdk_ecom_abandoned-checkouts";
33
+ function getAbandonedCheckout(payload) {
34
+ function __getAbandonedCheckout({ host }) {
35
+ const metadata = {
36
+ entityFqdn: "wix.ecom.v1.abandoned_checkout",
37
+ method: "GET",
38
+ methodFqn: "wix.ecom.abandoned_checkout.api.v1.AbandonedCheckoutService.GetAbandonedCheckout",
39
+ packageName: PACKAGE_NAME,
40
+ url: resolveWixEcomAbandonedCheckoutApiV1AbandonedCheckoutServiceUrl({
41
+ protoPath: "/v1/abandoned-checkout/{abandonedCheckoutId}",
42
+ data: payload,
43
+ host
44
+ }),
45
+ params: toURLSearchParams(payload),
46
+ transformResponse: (payload2) => transformPaths(payload2, [
47
+ {
48
+ transformFn: transformRESTTimestampToSDKTimestamp,
49
+ paths: [
50
+ { path: "abandonedCheckout.createdDate" },
51
+ { path: "abandonedCheckout.updatedDate" },
52
+ { path: "abandonedCheckout.checkoutRecoveredDate" },
53
+ { path: "abandonedCheckout.activities.createdDate" }
54
+ ]
55
+ }
56
+ ])
57
+ };
58
+ return metadata;
59
+ }
60
+ return __getAbandonedCheckout;
61
+ }
62
+ function deleteAbandonedCheckout(payload) {
63
+ function __deleteAbandonedCheckout({ host }) {
64
+ const metadata = {
65
+ entityFqdn: "wix.ecom.v1.abandoned_checkout",
66
+ method: "DELETE",
67
+ methodFqn: "wix.ecom.abandoned_checkout.api.v1.AbandonedCheckoutService.DeleteAbandonedCheckout",
68
+ packageName: PACKAGE_NAME,
69
+ url: resolveWixEcomAbandonedCheckoutApiV1AbandonedCheckoutServiceUrl({
70
+ protoPath: "/v1/abandoned-checkout/{abandonedCheckoutId}",
71
+ data: payload,
72
+ host
73
+ }),
74
+ params: toURLSearchParams(payload)
75
+ };
76
+ return metadata;
77
+ }
78
+ return __deleteAbandonedCheckout;
79
+ }
80
+ function queryAbandonedCheckouts(payload) {
81
+ function __queryAbandonedCheckouts({ host }) {
82
+ const metadata = {
83
+ entityFqdn: "wix.ecom.v1.abandoned_checkout",
84
+ method: "POST",
85
+ methodFqn: "wix.ecom.abandoned_checkout.api.v1.AbandonedCheckoutService.QueryAbandonedCheckouts",
86
+ packageName: PACKAGE_NAME,
87
+ url: resolveWixEcomAbandonedCheckoutApiV1AbandonedCheckoutServiceUrl({
88
+ protoPath: "/v1/abandoned-checkout/query",
89
+ data: payload,
90
+ host
91
+ }),
92
+ data: payload,
93
+ transformResponse: (payload2) => transformPaths(payload2, [
94
+ {
95
+ transformFn: transformRESTTimestampToSDKTimestamp,
96
+ paths: [
97
+ { path: "results.createdDate" },
98
+ { path: "results.updatedDate" },
99
+ { path: "results.checkoutRecoveredDate" },
100
+ { path: "results.activities.createdDate" },
101
+ { path: "abandonedCheckouts.createdDate" },
102
+ { path: "abandonedCheckouts.updatedDate" },
103
+ { path: "abandonedCheckouts.checkoutRecoveredDate" },
104
+ { path: "abandonedCheckouts.activities.createdDate" }
105
+ ]
106
+ }
107
+ ])
108
+ };
109
+ return metadata;
110
+ }
111
+ return __queryAbandonedCheckouts;
112
+ }
113
+ function searchAbandonedCheckouts(payload) {
114
+ function __searchAbandonedCheckouts({ host }) {
115
+ const metadata = {
116
+ entityFqdn: "wix.ecom.v1.abandoned_checkout",
117
+ method: "POST",
118
+ methodFqn: "wix.ecom.abandoned_checkout.api.v1.AbandonedCheckoutService.SearchAbandonedCheckouts",
119
+ packageName: PACKAGE_NAME,
120
+ url: resolveWixEcomAbandonedCheckoutApiV1AbandonedCheckoutServiceUrl({
121
+ protoPath: "/v1/abandoned-checkout/search",
122
+ data: payload,
123
+ host
124
+ }),
125
+ data: payload,
126
+ transformResponse: (payload2) => transformPaths(payload2, [
127
+ {
128
+ transformFn: transformRESTTimestampToSDKTimestamp,
129
+ paths: [
130
+ { path: "abandonedCheckouts.createdDate" },
131
+ { path: "abandonedCheckouts.updatedDate" },
132
+ { path: "abandonedCheckouts.checkoutRecoveredDate" },
133
+ { path: "abandonedCheckouts.activities.createdDate" }
134
+ ]
135
+ }
136
+ ])
137
+ };
138
+ return metadata;
139
+ }
140
+ return __searchAbandonedCheckouts;
141
+ }
142
+ function addAbandonedCheckoutActivity(payload) {
143
+ function __addAbandonedCheckoutActivity({ host }) {
144
+ const metadata = {
145
+ entityFqdn: "wix.ecom.v1.abandoned_checkout",
146
+ method: "POST",
147
+ methodFqn: "wix.ecom.abandoned_checkout.api.v1.AbandonedCheckoutService.AddAbandonedCheckoutActivity",
148
+ packageName: PACKAGE_NAME,
149
+ url: resolveWixEcomAbandonedCheckoutApiV1AbandonedCheckoutServiceUrl({
150
+ protoPath: "/v1/abandoned-checkouts/{abandonedCheckoutId}/add-activity",
151
+ data: payload,
152
+ host
153
+ }),
154
+ data: payload,
155
+ transformResponse: (payload2) => transformPaths(payload2, [
156
+ {
157
+ transformFn: transformRESTTimestampToSDKTimestamp,
158
+ paths: [
159
+ { path: "abandonedCheckout.createdDate" },
160
+ { path: "abandonedCheckout.updatedDate" },
161
+ { path: "abandonedCheckout.checkoutRecoveredDate" },
162
+ { path: "abandonedCheckout.activities.createdDate" }
163
+ ]
164
+ }
165
+ ])
166
+ };
167
+ return metadata;
168
+ }
169
+ return __addAbandonedCheckoutActivity;
170
+ }
171
+ function redirectToCheckout(payload) {
172
+ function __redirectToCheckout({ host }) {
173
+ const metadata = {
174
+ entityFqdn: "wix.ecom.v1.abandoned_checkout",
175
+ method: "GET",
176
+ methodFqn: "wix.ecom.abandoned_checkout.api.v1.AbandonedCheckoutService.RedirectToCheckout",
177
+ packageName: PACKAGE_NAME,
178
+ url: resolveWixEcomAbandonedCheckoutApiV1AbandonedCheckoutServiceUrl({
179
+ protoPath: "/v1/abandoned-checkout/{abandonedCheckoutId}/redirect-to-checkout",
180
+ data: payload,
181
+ host
182
+ }),
183
+ params: toURLSearchParams(payload),
184
+ transformResponse: (payload2) => transformPaths(payload2, [
185
+ {
186
+ transformFn: transformRESTBytesToSDKBytes,
187
+ paths: [{ path: "body" }]
188
+ }
189
+ ])
190
+ };
191
+ return metadata;
192
+ }
193
+ return __redirectToCheckout;
194
+ }
195
+
196
+ // src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.ts
197
+ import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
198
+ var ActivityType = /* @__PURE__ */ ((ActivityType2) => {
199
+ ActivityType2["UNKNOWN_TYPE"] = "UNKNOWN_TYPE";
200
+ ActivityType2["SCHEDULED"] = "SCHEDULED";
201
+ ActivityType2["EMAIL_SENT"] = "EMAIL_SENT";
202
+ ActivityType2["EMAIL_NOT_SENT"] = "EMAIL_NOT_SENT";
203
+ ActivityType2["NOTIFICATION_SENT"] = "NOTIFICATION_SENT";
204
+ ActivityType2["TASK_CREATED"] = "TASK_CREATED";
205
+ return ActivityType2;
206
+ })(ActivityType || {});
207
+ var Status = /* @__PURE__ */ ((Status2) => {
208
+ Status2["ABANDONED"] = "ABANDONED";
209
+ Status2["RECOVERED"] = "RECOVERED";
210
+ return Status2;
211
+ })(Status || {});
212
+ var VatType = /* @__PURE__ */ ((VatType2) => {
213
+ VatType2["UNSPECIFIED"] = "UNSPECIFIED";
214
+ VatType2["CPF"] = "CPF";
215
+ VatType2["CNPJ"] = "CNPJ";
216
+ return VatType2;
217
+ })(VatType || {});
218
+ var Identity = /* @__PURE__ */ ((Identity2) => {
219
+ Identity2["ADMIN"] = "ADMIN";
220
+ Identity2["MEMBER"] = "MEMBER";
221
+ Identity2["VISITOR"] = "VISITOR";
222
+ Identity2["CONTACT"] = "CONTACT";
223
+ return Identity2;
224
+ })(Identity || {});
225
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
226
+ SortOrder2["ASC"] = "ASC";
227
+ SortOrder2["DESC"] = "DESC";
228
+ return SortOrder2;
229
+ })(SortOrder || {});
230
+ var CommonSortOrder = /* @__PURE__ */ ((CommonSortOrder2) => {
231
+ CommonSortOrder2["ASC"] = "ASC";
232
+ CommonSortOrder2["DESC"] = "DESC";
233
+ return CommonSortOrder2;
234
+ })(CommonSortOrder || {});
235
+ var Mode = /* @__PURE__ */ ((Mode2) => {
236
+ Mode2["OR"] = "OR";
237
+ Mode2["AND"] = "AND";
238
+ return Mode2;
239
+ })(Mode || {});
240
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
241
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
242
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
243
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
244
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
245
+ WebhookIdentityType2["APP"] = "APP";
246
+ return WebhookIdentityType2;
247
+ })(WebhookIdentityType || {});
248
+ async function getAbandonedCheckout2(abandonedCheckoutId) {
249
+ const { httpClient, sideEffects } = arguments[1];
250
+ const payload = renameKeysFromSDKRequestToRESTRequest({
251
+ abandonedCheckoutId
252
+ });
253
+ const reqOpts = getAbandonedCheckout(payload);
254
+ sideEffects?.onSiteCall?.();
255
+ try {
256
+ const result = await httpClient.request(reqOpts);
257
+ sideEffects?.onSuccess?.(result);
258
+ return renameKeysFromRESTResponseToSDKResponse(result.data)?.abandonedCheckout;
259
+ } catch (err) {
260
+ const transformedError = sdkTransformError(
261
+ err,
262
+ {
263
+ spreadPathsToArguments: {},
264
+ explicitPathsToArguments: { abandonedCheckoutId: "$[0]" },
265
+ singleArgumentUnchanged: false
266
+ },
267
+ ["abandonedCheckoutId"]
268
+ );
269
+ sideEffects?.onError?.(err);
270
+ throw transformedError;
271
+ }
272
+ }
273
+ async function deleteAbandonedCheckout2(abandonedCheckoutId) {
274
+ const { httpClient, sideEffects } = arguments[1];
275
+ const payload = renameKeysFromSDKRequestToRESTRequest({
276
+ abandonedCheckoutId
277
+ });
278
+ const reqOpts = deleteAbandonedCheckout(payload);
279
+ sideEffects?.onSiteCall?.();
280
+ try {
281
+ const result = await httpClient.request(reqOpts);
282
+ sideEffects?.onSuccess?.(result);
283
+ } catch (err) {
284
+ const transformedError = sdkTransformError(
285
+ err,
286
+ {
287
+ spreadPathsToArguments: {},
288
+ explicitPathsToArguments: { abandonedCheckoutId: "$[0]" },
289
+ singleArgumentUnchanged: false
290
+ },
291
+ ["abandonedCheckoutId"]
292
+ );
293
+ sideEffects?.onError?.(err);
294
+ throw transformedError;
295
+ }
296
+ }
297
+ function queryAbandonedCheckouts2() {
298
+ const { httpClient, sideEffects } = arguments[0];
299
+ return queryBuilder({
300
+ func: async (payload) => {
301
+ const reqOpts = queryAbandonedCheckouts(payload);
302
+ sideEffects?.onSiteCall?.();
303
+ try {
304
+ const result = await httpClient.request(reqOpts);
305
+ sideEffects?.onSuccess?.(result);
306
+ return result;
307
+ } catch (err) {
308
+ sideEffects?.onError?.(err);
309
+ throw err;
310
+ }
311
+ },
312
+ requestTransformer: (query) => {
313
+ const args = [query, {}];
314
+ return renameKeysFromSDKRequestToRESTRequest({
315
+ ...args?.[1],
316
+ query: args?.[0]
317
+ });
318
+ },
319
+ responseTransformer: ({
320
+ data
321
+ }) => {
322
+ const transformedData = renameKeysFromRESTResponseToSDKResponse(
323
+ transformPaths2(data, [])
324
+ );
325
+ return {
326
+ items: transformedData?.abandonedCheckouts,
327
+ pagingMetadata: transformedData?.metadata
328
+ };
329
+ },
330
+ errorTransformer: (err) => {
331
+ const transformedError = sdkTransformError(err, {
332
+ spreadPathsToArguments: {},
333
+ explicitPathsToArguments: { query: "$[0]" },
334
+ singleArgumentUnchanged: false
335
+ });
336
+ throw transformedError;
337
+ },
338
+ pagingMethod: "CURSOR",
339
+ transformationPaths: {}
340
+ });
341
+ }
342
+ async function searchAbandonedCheckouts2(search) {
343
+ const { httpClient, sideEffects } = arguments[1];
344
+ const payload = renameKeysFromSDKRequestToRESTRequest({ search });
345
+ const reqOpts = searchAbandonedCheckouts(payload);
346
+ sideEffects?.onSiteCall?.();
347
+ try {
348
+ const result = await httpClient.request(reqOpts);
349
+ sideEffects?.onSuccess?.(result);
350
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
351
+ } catch (err) {
352
+ const transformedError = sdkTransformError(
353
+ err,
354
+ {
355
+ spreadPathsToArguments: {},
356
+ explicitPathsToArguments: { search: "$[0]" },
357
+ singleArgumentUnchanged: false
358
+ },
359
+ ["search"]
360
+ );
361
+ sideEffects?.onError?.(err);
362
+ throw transformedError;
363
+ }
364
+ }
365
+ async function addAbandonedCheckoutActivity2(abandonedCheckoutId, options) {
366
+ const { httpClient, sideEffects } = arguments[2];
367
+ const payload = renameKeysFromSDKRequestToRESTRequest({
368
+ abandonedCheckoutId,
369
+ activityType: options?.activityType
370
+ });
371
+ const reqOpts = addAbandonedCheckoutActivity(payload);
372
+ sideEffects?.onSiteCall?.();
373
+ try {
374
+ const result = await httpClient.request(reqOpts);
375
+ sideEffects?.onSuccess?.(result);
376
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
377
+ } catch (err) {
378
+ const transformedError = sdkTransformError(
379
+ err,
380
+ {
381
+ spreadPathsToArguments: {},
382
+ explicitPathsToArguments: {
383
+ abandonedCheckoutId: "$[0]",
384
+ activityType: "$[1].activityType"
385
+ },
386
+ singleArgumentUnchanged: false
387
+ },
388
+ ["abandonedCheckoutId", "options"]
389
+ );
390
+ sideEffects?.onError?.(err);
391
+ throw transformedError;
392
+ }
393
+ }
394
+ async function redirectToCheckout2(abandonedCheckoutId, metasiteId) {
395
+ const { httpClient, sideEffects } = arguments[2];
396
+ const payload = renameKeysFromSDKRequestToRESTRequest({
397
+ abandonedCheckoutId,
398
+ metasiteId
399
+ });
400
+ const reqOpts = redirectToCheckout(payload);
401
+ sideEffects?.onSiteCall?.();
402
+ try {
403
+ const result = await httpClient.request(reqOpts);
404
+ sideEffects?.onSuccess?.(result);
405
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
406
+ } catch (err) {
407
+ const transformedError = sdkTransformError(
408
+ err,
409
+ {
410
+ spreadPathsToArguments: {},
411
+ explicitPathsToArguments: {
412
+ abandonedCheckoutId: "$[0]",
413
+ metasiteId: "$[1]"
414
+ },
415
+ singleArgumentUnchanged: false
416
+ },
417
+ ["abandonedCheckoutId", "metasiteId"]
418
+ );
419
+ sideEffects?.onError?.(err);
420
+ throw transformedError;
421
+ }
422
+ }
423
+ export {
424
+ ActivityType,
425
+ CommonSortOrder,
426
+ Identity,
427
+ Mode,
428
+ SortOrder,
429
+ Status,
430
+ VatType,
431
+ WebhookIdentityType,
432
+ addAbandonedCheckoutActivity2 as addAbandonedCheckoutActivity,
433
+ deleteAbandonedCheckout2 as deleteAbandonedCheckout,
434
+ getAbandonedCheckout2 as getAbandonedCheckout,
435
+ queryAbandonedCheckouts2 as queryAbandonedCheckouts,
436
+ redirectToCheckout2 as redirectToCheckout,
437
+ searchAbandonedCheckouts2 as searchAbandonedCheckouts
438
+ };
439
+ //# sourceMappingURL=index.typings.mjs.map