@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.
- 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
- package/build/cjs/index.d.ts +9 -6
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +18 -0
- package/build/cjs/index.typings.js +476 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -1
- 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
- package/build/es/index.d.mts +9 -6
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +18 -0
- package/build/es/index.typings.mjs +439 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +1 -1
- 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
- package/build/internal/cjs/index.d.ts +12 -7
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +18 -0
- package/build/internal/cjs/index.typings.js +476 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -1
- 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
- package/build/internal/es/index.d.mts +12 -7
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +18 -0
- package/build/internal/es/index.typings.mjs +439 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +1 -1
- 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,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, 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-
|
|
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-
|
|
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, 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.js';
|
|
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.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
|
/** @internal */
|
|
44
47
|
declare function addAbandonedCheckoutActivity$1(httpClient: HttpClient): AddAbandonedCheckoutActivitySignature;
|
|
@@ -47,7 +50,9 @@ interface AddAbandonedCheckoutActivitySignature {
|
|
|
47
50
|
* Adds a new abandoned checkout activity.
|
|
48
51
|
* @param - Id of the abandoned checkout to update
|
|
49
52
|
*/
|
|
50
|
-
(abandonedCheckoutId: string, options?: AddAbandonedCheckoutActivityOptions
|
|
53
|
+
(abandonedCheckoutId: string, options?: AddAbandonedCheckoutActivityOptions): Promise<NonNullablePaths<AddAbandonedCheckoutActivityResponse, {
|
|
54
|
+
[P in AbandonedCheckoutNonNullablePaths]: `abandonedCheckout.${P}`;
|
|
55
|
+
}[AbandonedCheckoutNonNullablePaths]>>;
|
|
51
56
|
}
|
|
52
57
|
declare function redirectToCheckout$1(httpClient: HttpClient): RedirectToCheckoutSignature;
|
|
53
58
|
interface RedirectToCheckoutSignature {
|
|
@@ -56,7 +61,7 @@ interface RedirectToCheckoutSignature {
|
|
|
56
61
|
* @param - ID of the abandoned checkout.
|
|
57
62
|
* @param - Metasite ID of the site associated with the abandoned checkout.
|
|
58
63
|
*/
|
|
59
|
-
(abandonedCheckoutId: string, metasiteId: string): Promise<RawHttpResponse
|
|
64
|
+
(abandonedCheckoutId: string, metasiteId: string): Promise<NonNullablePaths<RawHttpResponse, `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`>>;
|
|
60
65
|
}
|
|
61
66
|
declare const onAbandonedCheckoutCreated$1: EventDefinition<AbandonedCheckoutCreatedEnvelope, "wix.ecom.v1.abandoned_checkout_created">;
|
|
62
67
|
declare const onAbandonedCheckoutDeleted$1: EventDefinition<AbandonedCheckoutDeletedEnvelope, "wix.ecom.v1.abandoned_checkout_deleted">;
|