@wix/auto_sdk_ecom_abandoned-checkouts 1.0.24 → 1.0.26

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 (29) 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 +9 -6
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +18 -0
  5. package/build/cjs/index.typings.js +476 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -1
  8. 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
  9. package/build/es/index.d.mts +9 -6
  10. package/build/es/index.mjs.map +1 -1
  11. package/build/es/index.typings.d.mts +18 -0
  12. package/build/es/index.typings.mjs +439 -0
  13. package/build/es/index.typings.mjs.map +1 -0
  14. package/build/es/meta.d.mts +1 -1
  15. 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
  16. package/build/internal/cjs/index.d.ts +12 -7
  17. package/build/internal/cjs/index.js.map +1 -1
  18. package/build/internal/cjs/index.typings.d.ts +18 -0
  19. package/build/internal/cjs/index.typings.js +476 -0
  20. package/build/internal/cjs/index.typings.js.map +1 -0
  21. package/build/internal/cjs/meta.d.ts +1 -1
  22. 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
  23. package/build/internal/es/index.d.mts +12 -7
  24. package/build/internal/es/index.mjs.map +1 -1
  25. package/build/internal/es/index.typings.d.mts +18 -0
  26. package/build/internal/es/index.typings.mjs +439 -0
  27. package/build/internal/es/index.typings.mjs.map +1 -0
  28. package/build/internal/es/meta.d.mts +1 -1
  29. 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;
@@ -971,5 +1103,15 @@ interface AddAbandonedCheckoutActivityOptions {
971
1103
  /** The type of the activity to add */
972
1104
  activityType?: ActivityTypeWithLiterals;
973
1105
  }
1106
+ /**
1107
+ * Redirects an abandoned checkout to its checkout page.
1108
+ * @param abandonedCheckoutId - ID of the abandoned checkout.
1109
+ * @param metasiteId - Metasite ID of the site associated with the abandoned checkout.
1110
+ * @public
1111
+ * @requiredField abandonedCheckoutId
1112
+ * @requiredField metasiteId
1113
+ * @fqn wix.ecom.abandoned_checkout.api.v1.AbandonedCheckoutService.RedirectToCheckout
1114
+ */
1115
+ declare function redirectToCheckout(abandonedCheckoutId: string, metasiteId: string): Promise<NonNullablePaths<RawHttpResponse, `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`>>;
974
1116
 
975
- export { type TaskKey as $, type AbandonedCheckout as A, type BuyerInfo as B, CommonSortOrder as C, type DeleteAbandonedCheckoutRequest as D, type SearchAbandonedCheckoutsRequest as E, type FullAddressContactDetails as F, type GetAbandonedCheckoutRequest as G, type Search as H, Identity as I, type SearchPagingMethodOneOf as J, type CommonSorting as K, type SearchDetails as L, Mode as M, type CommonPaging as N, type CommonCursorPaging as O, type Paging as P, type QueryAbandonedCheckoutsRequest as Q, type RawHttpResponse as R, type SearchAbandonedCheckoutsResponse as S, type Totals as T, type CommonPagingMetadataV2 as U, VatType as V, WebhookIdentityType as W, type CommonCursors as X, type AddAbandonedCheckoutActivityRequest as Y, type AddAbandonedCheckoutActivityResponse as Z, type Task as _, type AbandonedCheckoutsQueryBuilder as a, type TaskAction as a0, type TaskActionActionOneOf as a1, type Complete as a2, type Cancel as a3, type Reschedule as a4, type RedirectToCheckoutRequest as a5, type HeadersEntry as a6, type DomainEvent as a7, type DomainEventBodyOneOf as a8, type EntityCreatedEvent 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 AddAbandonedCheckoutActivityOptions as am, type AbandonedCheckoutSearch as b, type AbandonedCheckoutCreatedEnvelope as c, type AbandonedCheckoutDeletedEnvelope as d, type AbandonedCheckoutRecoveredEnvelope as e, type AbandonedCheckoutUpdatedEnvelope as f, ActivityType as g, Status as h, SortOrder as i, type V1BuyerInfo as j, type V1BuyerInfoIdOneOf as k, type VatId as l, type MultiCurrencyPrice as m, type Activity as n, type CartAbandonedEvent as o, type CartRecoveredEvent as p, type AbandonedCheckoutRecovered as q, type GetAbandonedCheckoutResponse as r, type DeleteAbandonedCheckoutResponse as s, type QueryV2 as t, type QueryV2PagingMethodOneOf as u, type Sorting as v, type CursorPaging as w, type QueryAbandonedCheckoutsResponse as x, type PagingMetadataV2 as y, type Cursors as z };
1117
+ export { type TaskKey as $, type AbandonedCheckout as A, type BuyerInfo as B, CommonSortOrder as C, type DeleteAbandonedCheckoutRequest as D, type SearchAbandonedCheckoutsRequest as E, type FullAddressContactDetails as F, type GetAbandonedCheckoutRequest as G, type Search as H, Identity as I, type SearchPagingMethodOneOf as J, type CommonSorting as K, type SearchDetails as L, Mode as M, type CommonPaging as N, type CommonCursorPaging as O, type Paging as P, type QueryAbandonedCheckoutsRequest as Q, type RawHttpResponse as R, type SearchAbandonedCheckoutsResponse as S, type Totals as T, type CommonPagingMetadataV2 as U, VatType as V, WebhookIdentityType as W, type CommonCursors as X, type AddAbandonedCheckoutActivityRequest as Y, type AddAbandonedCheckoutActivityResponse as Z, type Task as _, type AbandonedCheckoutsQueryBuilder as a, type TaskAction as a0, type TaskActionActionOneOf as a1, type Complete as a2, type Cancel as a3, type Reschedule as a4, type RedirectToCheckoutRequest as a5, type HeadersEntry as a6, type DomainEvent as a7, type DomainEventBodyOneOf as a8, type EntityCreatedEvent as a9, deleteAbandonedCheckout as aA, queryAbandonedCheckouts as aB, type CommonSearchWithEntityContext as aC, redirectToCheckout as aD, 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 AddAbandonedCheckoutActivityOptions 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 AbandonedCheckoutCreatedEnvelope as c, type AbandonedCheckoutDeletedEnvelope as d, type AbandonedCheckoutRecoveredEnvelope as e, type AbandonedCheckoutUpdatedEnvelope as f, ActivityType as g, Status as h, SortOrder as i, type V1BuyerInfo as j, type V1BuyerInfoIdOneOf as k, type VatId as l, type MultiCurrencyPrice as m, type Activity as n, type CartAbandonedEvent as o, type CartRecoveredEvent as p, type AbandonedCheckoutRecovered as q, type GetAbandonedCheckoutResponse as r, type DeleteAbandonedCheckoutResponse as s, type QueryV2 as t, type QueryV2PagingMethodOneOf as u, type Sorting as v, type CursorPaging as w, type QueryAbandonedCheckoutsResponse as x, type PagingMetadataV2 as y, type Cursors as z };
@@ -1,7 +1,8 @@
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, R as RawHttpResponse, c as AbandonedCheckoutCreatedEnvelope, d as AbandonedCheckoutDeletedEnvelope, e as AbandonedCheckoutRecoveredEnvelope, f as AbandonedCheckoutUpdatedEnvelope } from './ecom-v1-abandoned-checkout-abandoned-checkouts.universal-CyOrLIzk.js';
3
- export { q as AbandonedCheckoutRecovered, al as AbandonedCheckoutSearchSpec, ak as AbandonedCheckoutsQueryResult, ad as ActionEvent, n as Activity, g as ActivityType, am as AddAbandonedCheckoutActivityOptions, Y as AddAbandonedCheckoutActivityRequest, Z as AddAbandonedCheckoutActivityResponse, ai as BaseEventMetadata, B as BuyerInfo, a3 as Cancel, o as CartAbandonedEvent, p as CartRecoveredEvent, O as CommonCursorPaging, X as CommonCursors, N as CommonPaging, U as CommonPagingMetadataV2, C as CommonSortOrder, K as CommonSorting, a2 as Complete, w as CursorPaging, z as Cursors, D as DeleteAbandonedCheckoutRequest, s as DeleteAbandonedCheckoutResponse, a7 as DomainEvent, a8 as DomainEventBodyOneOf, ae as Empty, a9 as EntityCreatedEvent, ac as EntityDeletedEvent, ab as EntityUpdatedEvent, aj as EventMetadata, F as FullAddressContactDetails, G as GetAbandonedCheckoutRequest, r as GetAbandonedCheckoutResponse, a6 as HeadersEntry, ag as IdentificationData, ah as IdentificationDataIdOneOf, I as Identity, af as MessageEnvelope, M as Mode, m as MultiCurrencyPrice, P as Paging, y as PagingMetadataV2, Q as QueryAbandonedCheckoutsRequest, x as QueryAbandonedCheckoutsResponse, t as QueryV2, u as QueryV2PagingMethodOneOf, a5 as RedirectToCheckoutRequest, a4 as Reschedule, aa as RestoreInfo, H as Search, E as SearchAbandonedCheckoutsRequest, L as SearchDetails, J as SearchPagingMethodOneOf, i as SortOrder, v as Sorting, h as Status, _ as Task, a0 as TaskAction, a1 as TaskActionActionOneOf, $ as TaskKey, T as Totals, j as V1BuyerInfo, k as V1BuyerInfoIdOneOf, l as VatId, V as VatType, W as WebhookIdentityType } from './ecom-v1-abandoned-checkout-abandoned-checkouts.universal-CyOrLIzk.js';
1
+ import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
+ import { A as AbandonedCheckout, 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-BBg7__GU.js';
3
+ export { q as AbandonedCheckoutRecovered, al as AbandonedCheckoutSearchSpec, ak as AbandonedCheckoutsQueryResult, ad as ActionEvent, n as Activity, g as ActivityType, am as AddAbandonedCheckoutActivityOptions, Y as AddAbandonedCheckoutActivityRequest, Z as AddAbandonedCheckoutActivityResponse, ai as BaseEventMetadata, B as BuyerInfo, a3 as Cancel, o as CartAbandonedEvent, p as CartRecoveredEvent, O as CommonCursorPaging, X as CommonCursors, N as CommonPaging, U as CommonPagingMetadataV2, C as CommonSortOrder, K as CommonSorting, a2 as Complete, w as CursorPaging, z as Cursors, D as DeleteAbandonedCheckoutRequest, s as DeleteAbandonedCheckoutResponse, a7 as DomainEvent, a8 as DomainEventBodyOneOf, ae as Empty, a9 as EntityCreatedEvent, ac as EntityDeletedEvent, ab as EntityUpdatedEvent, aj as EventMetadata, F as FullAddressContactDetails, G as GetAbandonedCheckoutRequest, r as GetAbandonedCheckoutResponse, a6 as HeadersEntry, ag as IdentificationData, ah as IdentificationDataIdOneOf, I as Identity, af as MessageEnvelope, M as Mode, m as MultiCurrencyPrice, P as Paging, y as PagingMetadataV2, Q as QueryAbandonedCheckoutsRequest, x as QueryAbandonedCheckoutsResponse, t as QueryV2, u as QueryV2PagingMethodOneOf, a5 as RedirectToCheckoutRequest, a4 as Reschedule, aa as RestoreInfo, H as Search, E as SearchAbandonedCheckoutsRequest, L as SearchDetails, J as SearchPagingMethodOneOf, i as SortOrder, v as Sorting, h as Status, _ as Task, a0 as TaskAction, a1 as TaskActionActionOneOf, $ as TaskKey, T as Totals, j as V1BuyerInfo, k as V1BuyerInfoIdOneOf, l as VatId, V as VatType, W as WebhookIdentityType } from './ecom-v1-abandoned-checkout-abandoned-checkouts.universal-BBg7__GU.js';
4
4
 
5
+ 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`;
5
6
  declare function getAbandonedCheckout$1(httpClient: HttpClient): GetAbandonedCheckoutSignature;
6
7
  interface GetAbandonedCheckoutSignature {
7
8
  /**
@@ -9,7 +10,7 @@ interface GetAbandonedCheckoutSignature {
9
10
  * @param - Abandoned checkout ID.
10
11
  * @returns The requested abandoned checkout.
11
12
  */
12
- (abandonedCheckoutId: string): Promise<AbandonedCheckout>;
13
+ (abandonedCheckoutId: string): Promise<NonNullablePaths<AbandonedCheckout, AbandonedCheckoutNonNullablePaths>>;
13
14
  }
14
15
  declare function deleteAbandonedCheckout$1(httpClient: HttpClient): DeleteAbandonedCheckoutSignature;
15
16
  interface DeleteAbandonedCheckoutSignature {
@@ -38,7 +39,9 @@ interface SearchAbandonedCheckoutsSignature {
38
39
  * 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.
39
40
  * @param - WQL query expression.
40
41
  */
41
- (search: AbandonedCheckoutSearch): Promise<SearchAbandonedCheckoutsResponse>;
42
+ (search: AbandonedCheckoutSearch): Promise<NonNullablePaths<SearchAbandonedCheckoutsResponse, {
43
+ [P in AbandonedCheckoutNonNullablePaths]: `abandonedCheckouts.${number}.${P}`;
44
+ }[AbandonedCheckoutNonNullablePaths]>>;
42
45
  }
43
46
  declare function redirectToCheckout$1(httpClient: HttpClient): RedirectToCheckoutSignature;
44
47
  interface RedirectToCheckoutSignature {
@@ -47,7 +50,7 @@ interface RedirectToCheckoutSignature {
47
50
  * @param - ID of the abandoned checkout.
48
51
  * @param - Metasite ID of the site associated with the abandoned checkout.
49
52
  */
50
- (abandonedCheckoutId: string, metasiteId: string): Promise<RawHttpResponse>;
53
+ (abandonedCheckoutId: string, metasiteId: string): Promise<NonNullablePaths<RawHttpResponse, `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`>>;
51
54
  }
52
55
  declare const onAbandonedCheckoutCreated$1: EventDefinition<AbandonedCheckoutCreatedEnvelope, "wix.ecom.v1.abandoned_checkout_created">;
53
56
  declare const onAbandonedCheckoutDeleted$1: EventDefinition<AbandonedCheckoutDeletedEnvelope, "wix.ecom.v1.abandoned_checkout_deleted">;