interface AbandonedCheckout { /** Abandoned checkout ID. */ _id?: string; /** Date and time the abandoned checkout was created. */ _createdDate?: Date | null; /** Date and time the abandoned checkout was updated. */ _updatedDate?: Date | null; /** The associated checkout ID. */ checkoutId?: string | null; /** The associated cart ID. */ cartId?: string | null; /** Status of the abandoned checkout. */ status?: Status; /** * Language for communication with the buyer. Defaults to the site language. * For a site that supports multiple languages, this is the language the buyer selected. */ buyerLanguage?: string | null; /** Buyer information. */ buyerInfo?: V1BuyerInfo; /** Contact details. */ contactDetails?: FullAddressContactDetails; /** The store's currency. */ currency?: string; /** Currency the buyer used in checkout. */ conversionCurrency?: string | null; /** Total price after discounts, gift cards, and tax. */ totalPrice?: MultiCurrencyPrice; /** * List of all automation activities performed by [Wix Automations](https://support.wix.com/en/article/wix-automations-getting-started) regarding the abandoned checkout. * Wix Automations updates the `activities` field for each actvity in the automation flow. Only relevant if you've set up [automations in the Dashboard](https://support.wix.com/en/article/wix-automations-creating-a-new-automation). Read more about `activities` in the [introduction](https://www.wix.com/velo/reference/wix-ecom-backend/abandonedcheckout/introduction). */ activities?: Activity[]; /** Date and time the abandoned checkout was recovered. */ checkoutRecoveredDate?: Date | null; /** Checkout URL. */ checkoutUrl?: string; /** Subtotal price of all line items, before discounts and before tax. */ subtotalPrice?: MultiCurrencyPrice; } declare enum ActivityType { /** Not implemented. */ UNKNOWN_TYPE = "UNKNOWN_TYPE", /** Scheduled. */ SCHEDULED = "SCHEDULED", /** Email sent. */ EMAIL_SENT = "EMAIL_SENT", /** Email not sent. */ EMAIL_NOT_SENT = "EMAIL_NOT_SENT", /** Notification sent. */ NOTIFICATION_SENT = "NOTIFICATION_SENT", /** Task created. */ TASK_CREATED = "TASK_CREATED" } /** Status of the abandoned checkout. */ declare enum Status { /** Abandoned. */ ABANDONED = "ABANDONED", /** Recovered. */ RECOVERED = "RECOVERED" } /** Buyer information. */ interface V1BuyerInfo extends V1BuyerInfoIdOneOf { /** Visitor ID (if the site visitor is **not** a site member). */ visitorId?: string; /** Member ID (if the site visitor is a site member). */ memberId?: string; /** User ID (if the site visitor is a site owner or collaborator). */ userId?: string; /** * Contact ID. For more information, see the [Contacts API](https://www.wix.com/velo/reference/wix-crm-v2/contacts). * @readonly */ contactId?: string | null; /** * Buyer email address. * Max: `50` */ email?: string | null; } /** @oneof */ interface V1BuyerInfoIdOneOf { /** Visitor ID (if the site visitor is **not** a site member). */ visitorId?: string; /** Member ID (if the site visitor is a site member). */ memberId?: string; /** User ID (if the site visitor is a site owner or collaborator). */ userId?: string; } /** Full contact details for an address */ interface FullAddressContactDetails { /** * First name. * Max length: `100` */ firstName?: string | null; /** * Last name. * Max length: `100` */ lastName?: string | null; /** Phone number. */ phone?: string | null; /** * Company name. * Max length: `50` */ company?: string | null; /** Tax information (for Brazil only). If ID is provided, `vatId.type` must also be set, `UNSPECIFIED` is not allowed. */ vatId?: VatId; } interface VatId { /** Customer's tax ID. */ _id?: string; /** * Tax type. * * Supported values: * + `CPF`: for individual tax payers * + `CNPJ`: for corporations */ type?: VatType; } /** tax info types */ declare enum VatType { UNSPECIFIED = "UNSPECIFIED", /** CPF - for individual tax payers. */ CPF = "CPF", /** CNPJ - for corporations */ CNPJ = "CNPJ" } interface MultiCurrencyPrice { /** Amount. */ amount?: string; /** * Converted amount. * @readonly */ convertedAmount?: string; /** * Amount formatted with currency symbol. * @readonly */ formattedAmount?: string; /** * Converted amount formatted with currency symbol. * @readonly */ formattedConvertedAmount?: string; } interface Activity { /** Date and time the automation activity was created. */ _createdDate?: Date | null; /** * Automation activity type. * * Supported properties: `UNKNOWN_TYPE`, `SCHEDULED`, `EMAIL_SENT`, `EMAIL_NOT_SENT`, `NOTIFICATION_SENT`, `TASK_CREATED` */ type?: ActivityType; } interface CartAbandonedEvent { cartId?: string; /** * Time the cart was created * @readonly */ creationTime?: Date | null; /** * Time the cart was abandoned * @readonly */ abandonTime?: Date | null; /** Buyer information */ buyerInfo?: BuyerInfo; /** Amount of items in cart */ itemsCount?: number; /** Coupon ID (if relevant) */ couponId?: string; /** Subtotal of all line items in cart, not before shipping and taxes */ totals?: Totals; /** Checkout URL - checkout with the abandoned cart details */ checkoutUrl?: string; } interface BuyerInfo { /** Wix customer ID */ _id?: string; /** Customer information */ identityType?: Identity; /** Customer's email address */ email?: string | null; /** Customer's phone number */ phone?: string | null; /** Customer's first name */ firstName?: string | null; /** Customer's last name */ lastName?: string | null; } declare enum Identity { /** Customer is the site owner */ ADMIN = "ADMIN", /** Customer is logged in */ MEMBER = "MEMBER", /** Customer is not logged in */ VISITOR = "VISITOR", /** Contact was created for the customer */ CONTACT = "CONTACT" } interface Totals { /** Subtotal of all line items in cart, without shipping and taxes */ subtotal?: number | null; /** Total cart price */ total?: number | null; /** Formatted total cart price includes currency symbol */ formattedTotal?: string; } interface CartRecoveredEvent { cartId?: string; /** * Time the cart was recovered * @readonly */ recoveredTime?: Date | null; /** * Time the cart was created * @readonly */ creationTime?: Date | null; /** * Time the cart was abandoned * @readonly */ abandonedTime?: Date | null; } /** Triggered when an abandoned checkout is recovered (the customer completes the checkout). */ interface AbandonedCheckoutRecovered { /** The abandoned checkout that was recovered. */ abandonedCheckout?: AbandonedCheckout; } interface GetAbandonedCheckoutRequest { /** Abandoned checkout ID. */ abandonedCheckoutId: string; } interface GetAbandonedCheckoutResponse { /** The requested abandoned checkout. */ abandonedCheckout?: AbandonedCheckout; } interface DeleteAbandonedCheckoutRequest { /** Id of the abandoned checkout to delete */ abandonedCheckoutId: string; } interface DeleteAbandonedCheckoutResponse { } interface QueryAbandonedCheckoutsRequest { /** Query options. */ query: QueryV2; } interface QueryV2 extends QueryV2PagingMethodOneOf { /** Paging options to limit and skip the number of items. */ paging?: Paging; /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */ cursorPaging?: CursorPaging; /** * Filter object. * * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section). */ filter?: Record | null; /** * Sort object. * * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section). */ sort?: Sorting[]; /** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */ fields?: string[]; /** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */ fieldsets?: string[]; } /** @oneof */ interface QueryV2PagingMethodOneOf { /** Paging options to limit and skip the number of items. */ paging?: Paging; /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */ cursorPaging?: CursorPaging; } interface Sorting { /** Name of the field to sort by. */ fieldName?: string; /** Sort order. */ order?: SortOrder; } declare enum SortOrder { ASC = "ASC", DESC = "DESC" } interface Paging { /** Number of items to load. */ limit?: number | null; /** Number of items to skip in the current sort order. */ offset?: number | null; } interface CursorPaging { /** Maximum number of items to return in the results. */ limit?: number | null; /** * Pointer to the next or previous page in the list of results. * * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response. * Not relevant for the first request. */ cursor?: string | null; } interface QueryAbandonedCheckoutsResponse { /** * __Deprecated.__ Use `abandonedCheckouts` instead. * @deprecated */ results?: AbandonedCheckout[]; /** List of abandoned checkouts. */ abandonedCheckouts?: AbandonedCheckout[]; /** Details on the paged set of results returned. */ metadata?: PagingMetadataV2; } interface PagingMetadataV2 { /** Number of items returned in the response. */ count?: number | null; /** Offset that was requested. */ offset?: number | null; /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */ total?: number | null; /** Flag that indicates the server failed to calculate the `total` field. */ tooManyToCount?: boolean | null; /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */ cursors?: Cursors; } interface Cursors { /** Cursor string pointing to the next page in the list of results. */ next?: string | null; /** Cursor pointing to the previous page in the list of results. */ prev?: string | null; } interface SearchAbandonedCheckoutsRequest { /** WQL query expression. */ search?: Search; } interface Search extends SearchPagingMethodOneOf { /** Pointer to page of results using offset. Can not be used together with 'cursor_paging' */ paging?: CommonPaging; /** Cursor pointing to page of results. Can't be used together with 'paging'. 'cursor_paging.cursor' can not be used together with 'filter' or 'sort' */ cursorPaging?: CommonCursorPaging; /** A filter object. See documentation [here](https://bo.wix.com/wix-docs/rnd/platformization-guidelines/api-query-language#platformization-guidelines_api-query-language_defining-in-protobuf) */ filter?: Record | null; /** Sort object in the form [{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}] */ sort?: CommonSorting[]; /** free text to match in searchable fields */ search?: SearchDetails; } /** @oneof */ interface SearchPagingMethodOneOf { /** Pointer to page of results using offset. Can not be used together with 'cursor_paging' */ paging?: CommonPaging; /** Cursor pointing to page of results. Can't be used together with 'paging'. 'cursor_paging.cursor' can not be used together with 'filter' or 'sort' */ cursorPaging?: CommonCursorPaging; } interface CommonSorting { /** Name of the field to sort by. */ fieldName?: string; /** Sort order. */ order?: CommonSortOrder; } declare enum CommonSortOrder { /** Ascending order. */ ASC = "ASC", /** Descending order. */ DESC = "DESC" } interface SearchDetails { /** boolean search mode */ mode?: Mode; /** search term or expression */ expression?: string | null; /** fields to search in. if empty - server will search in own default fields */ fields?: string[]; /** flag if should use auto fuzzy search (allowing typos by a managed proximity algorithm) */ fuzzy?: boolean; } declare enum Mode { /** Any */ OR = "OR", /** All */ AND = "AND" } interface CommonPaging { /** Number of items to load. */ limit?: number | null; /** Number of items to skip in the current sort order. */ offset?: number | null; } interface CommonCursorPaging { /** Maximum number of items to return in the results. */ limit?: number | null; /** * Pointer to the next or previous page in the list of results. * * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response. * Not relevant for the first request. */ cursor?: string | null; } interface SearchAbandonedCheckoutsResponse { /** List of abandoned checkouts. */ abandonedCheckouts?: AbandonedCheckout[]; /** Paging metadata. Contains cursor which can be used in next query. */ pagingMetadata?: CommonPagingMetadataV2; } interface CommonPagingMetadataV2 { /** Number of items returned in the response. */ count?: number | null; /** Offset that was requested. */ offset?: number | null; /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */ total?: number | null; /** Flag that indicates the server failed to calculate the `total` field. */ tooManyToCount?: boolean | null; /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */ cursors?: CommonCursors; } interface CommonCursors { /** Cursor string pointing to the next page in the list of results. */ next?: string | null; /** Cursor pointing to the previous page in the list of results. */ prev?: string | null; } interface AddAbandonedCheckoutActivityRequest { /** Id of the abandoned checkout to update */ abandonedCheckoutId: string | null; /** The type of the activity to add */ activityType?: ActivityType; } interface AddAbandonedCheckoutActivityResponse { /** The updated abandoned checkout with the added activity */ abandonedCheckout?: AbandonedCheckout; } interface Task { key?: TaskKey; executeAt?: Date | null; payload?: string | null; } interface TaskKey { appId?: string; instanceId?: string; subjectId?: string | null; } interface TaskAction extends TaskActionActionOneOf { complete?: Complete; cancel?: Cancel; reschedule?: Reschedule; } /** @oneof */ interface TaskActionActionOneOf { complete?: Complete; cancel?: Cancel; reschedule?: Reschedule; } interface Complete { } interface Cancel { } interface Reschedule { executeAt?: Date | null; payload?: string | null; } interface RedirectToCheckoutRequest { /** ID of the abandoned checkout. */ abandonedCheckoutId: string; /** Metasite ID of the site associated with the abandoned checkout. */ metasiteId: string; } interface RawHttpResponse { body?: Uint8Array; statusCode?: number | null; headers?: HeadersEntry[]; } interface HeadersEntry { key?: string; value?: string; } interface DomainEvent extends DomainEventBodyOneOf { createdEvent?: EntityCreatedEvent; updatedEvent?: EntityUpdatedEvent; deletedEvent?: EntityDeletedEvent; actionEvent?: ActionEvent; /** * Unique event ID. * Allows clients to ignore duplicate webhooks. */ _id?: string; /** * Assumes actions are also always typed to an entity_type * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction */ entityFqdn?: string; /** * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug) * This is although the created/updated/deleted notion is duplication of the oneof types * Example: created/updated/deleted/started/completed/email_opened */ slug?: string; /** ID of the entity associated with the event. */ entityId?: string; /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */ eventTime?: Date | null; /** * Whether the event was triggered as a result of a privacy regulation application * (for example, GDPR). */ triggeredByAnonymizeRequest?: boolean | null; /** If present, indicates the action that triggered the event. */ originatedFrom?: string | null; /** * A sequence number defining the order of updates to the underlying entity. * For example, given that some entity was updated at 16:00 and than again at 16:01, * it is guaranteed that the sequence number of the second update is strictly higher than the first. * As the consumer, you can use this value to ensure that you handle messages in the correct order. * To do so, you will need to persist this number on your end, and compare the sequence number from the * message against the one you have stored. Given that the stored number is higher, you should ignore the message. */ entityEventSequence?: string | null; } /** @oneof */ interface DomainEventBodyOneOf { createdEvent?: EntityCreatedEvent; updatedEvent?: EntityUpdatedEvent; deletedEvent?: EntityDeletedEvent; actionEvent?: ActionEvent; } interface EntityCreatedEvent { entity?: string; } interface RestoreInfo { deletedDate?: Date | null; } interface EntityUpdatedEvent { /** * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff. * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects. * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it. */ currentEntity?: string; } interface EntityDeletedEvent { /** Entity that was deleted */ deletedEntity?: string | null; } interface ActionEvent { body?: string; } interface Empty { } interface MessageEnvelope { /** App instance ID. */ instanceId?: string | null; /** Event type. */ eventType?: string; /** The identification type and identity data. */ identity?: IdentificationData; /** Stringify payload. */ data?: string; } interface IdentificationData extends IdentificationDataIdOneOf { /** ID of a site visitor that has not logged in to the site. */ anonymousVisitorId?: string; /** ID of a site visitor that has logged in to the site. */ memberId?: string; /** ID of a Wix user (site owner, contributor, etc.). */ wixUserId?: string; /** ID of an app. */ appId?: string; /** @readonly */ identityType?: WebhookIdentityType; } /** @oneof */ interface IdentificationDataIdOneOf { /** ID of a site visitor that has not logged in to the site. */ anonymousVisitorId?: string; /** ID of a site visitor that has logged in to the site. */ memberId?: string; /** ID of a Wix user (site owner, contributor, etc.). */ wixUserId?: string; /** ID of an app. */ appId?: string; } declare enum WebhookIdentityType { UNKNOWN = "UNKNOWN", ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR", MEMBER = "MEMBER", WIX_USER = "WIX_USER", APP = "APP" } interface V1BuyerInfoNonNullableFields { visitorId: string; memberId: string; userId: string; } interface VatIdNonNullableFields { _id: string; type: VatType; } interface FullAddressContactDetailsNonNullableFields { vatId?: VatIdNonNullableFields; } interface MultiCurrencyPriceNonNullableFields { amount: string; convertedAmount: string; formattedAmount: string; formattedConvertedAmount: string; } interface ActivityNonNullableFields { type: ActivityType; } interface AbandonedCheckoutNonNullableFields { _id: string; status: Status; buyerInfo?: V1BuyerInfoNonNullableFields; contactDetails?: FullAddressContactDetailsNonNullableFields; currency: string; totalPrice?: MultiCurrencyPriceNonNullableFields; activities: ActivityNonNullableFields[]; checkoutUrl: string; subtotalPrice?: MultiCurrencyPriceNonNullableFields; } interface GetAbandonedCheckoutResponseNonNullableFields { abandonedCheckout?: AbandonedCheckoutNonNullableFields; } interface QueryAbandonedCheckoutsResponseNonNullableFields { results: AbandonedCheckoutNonNullableFields[]; abandonedCheckouts: AbandonedCheckoutNonNullableFields[]; } interface SearchAbandonedCheckoutsResponseNonNullableFields { abandonedCheckouts: AbandonedCheckoutNonNullableFields[]; } interface AddAbandonedCheckoutActivityResponseNonNullableFields { abandonedCheckout?: AbandonedCheckoutNonNullableFields; } interface HeadersEntryNonNullableFields { key: string; value: string; } interface RawHttpResponseNonNullableFields { body: Uint8Array; headers: HeadersEntryNonNullableFields[]; } interface BaseEventMetadata { /** App instance ID. */ instanceId?: string | null; /** Event type. */ eventType?: string; /** The identification type and identity data. */ identity?: IdentificationData; } interface EventMetadata extends BaseEventMetadata { /** * Unique event ID. * Allows clients to ignore duplicate webhooks. */ _id?: string; /** * Assumes actions are also always typed to an entity_type * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction */ entityFqdn?: string; /** * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug) * This is although the created/updated/deleted notion is duplication of the oneof types * Example: created/updated/deleted/started/completed/email_opened */ slug?: string; /** ID of the entity associated with the event. */ entityId?: string; /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */ eventTime?: Date | null; /** * Whether the event was triggered as a result of a privacy regulation application * (for example, GDPR). */ triggeredByAnonymizeRequest?: boolean | null; /** If present, indicates the action that triggered the event. */ originatedFrom?: string | null; /** * A sequence number defining the order of updates to the underlying entity. * For example, given that some entity was updated at 16:00 and than again at 16:01, * it is guaranteed that the sequence number of the second update is strictly higher than the first. * As the consumer, you can use this value to ensure that you handle messages in the correct order. * To do so, you will need to persist this number on your end, and compare the sequence number from the * message against the one you have stored. Given that the stored number is higher, you should ignore the message. */ entityEventSequence?: string | null; } interface AbandonedCheckoutCreatedEnvelope { entity: AbandonedCheckout; metadata: EventMetadata; } interface AbandonedCheckoutDeletedEnvelope { metadata: EventMetadata; } interface AbandonedCheckoutRecoveredEnvelope { data: AbandonedCheckoutRecovered; metadata: EventMetadata; } interface AbandonedCheckoutUpdatedEnvelope { entity: AbandonedCheckout; metadata: EventMetadata; } interface QueryCursorResult { cursors: CommonCursors; hasNext: () => boolean; hasPrev: () => boolean; length: number; pageSize: number; } interface AbandonedCheckoutsQueryResult extends QueryCursorResult { items: AbandonedCheckout[]; query: AbandonedCheckoutsQueryBuilder; next: () => Promise; prev: () => Promise; } interface AbandonedCheckoutsQueryBuilder { /** @param propertyName - Property whose value is compared with `value`. * @param value - Value to compare against. */ eq: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'status' | 'buyerInfo.visitorId' | 'buyerInfo.memberId' | 'buyerInfo.userId' | 'buyerInfo.contactId' | 'buyerInfo.email', value: any) => AbandonedCheckoutsQueryBuilder; /** @param propertyName - Property whose value is compared with `value`. * @param value - Value to compare against. */ ne: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'status' | 'buyerInfo.visitorId' | 'buyerInfo.memberId' | 'buyerInfo.userId' | 'buyerInfo.contactId' | 'buyerInfo.email', value: any) => AbandonedCheckoutsQueryBuilder; /** @param propertyName - Property whose value is compared with `value`. * @param value - Value to compare against. */ ge: (propertyName: '_createdDate' | '_updatedDate', value: any) => AbandonedCheckoutsQueryBuilder; /** @param propertyName - Property whose value is compared with `value`. * @param value - Value to compare against. */ gt: (propertyName: '_createdDate' | '_updatedDate', value: any) => AbandonedCheckoutsQueryBuilder; /** @param propertyName - Property whose value is compared with `value`. * @param value - Value to compare against. */ le: (propertyName: '_createdDate' | '_updatedDate', value: any) => AbandonedCheckoutsQueryBuilder; /** @param propertyName - Property whose value is compared with `value`. * @param value - Value to compare against. */ lt: (propertyName: '_createdDate' | '_updatedDate', value: any) => AbandonedCheckoutsQueryBuilder; /** @param propertyName - Property whose value is compared with `string`. * @param string - String to compare against. Case-insensitive. */ startsWith: (propertyName: '_id' | 'buyerInfo.visitorId' | 'buyerInfo.memberId' | 'buyerInfo.userId' | 'buyerInfo.contactId' | 'buyerInfo.email', value: string) => AbandonedCheckoutsQueryBuilder; /** @param propertyName - Property whose value is compared with `values`. * @param values - List of values to compare against. */ hasSome: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'status' | 'buyerInfo.visitorId' | 'buyerInfo.memberId' | 'buyerInfo.userId' | 'buyerInfo.contactId' | 'buyerInfo.email', value: any[]) => AbandonedCheckoutsQueryBuilder; in: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'status' | 'buyerInfo.visitorId' | 'buyerInfo.memberId' | 'buyerInfo.userId' | 'buyerInfo.contactId' | 'buyerInfo.email', value: any) => AbandonedCheckoutsQueryBuilder; exists: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'status' | 'buyerInfo.visitorId' | 'buyerInfo.memberId' | 'buyerInfo.userId' | 'buyerInfo.contactId' | 'buyerInfo.email', value: boolean) => AbandonedCheckoutsQueryBuilder; /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */ ascending: (...propertyNames: Array<'_id' | '_createdDate' | '_updatedDate' | 'status' | 'buyerInfo.visitorId' | 'buyerInfo.memberId' | 'buyerInfo.userId' | 'buyerInfo.contactId' | 'buyerInfo.email'>) => AbandonedCheckoutsQueryBuilder; /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */ descending: (...propertyNames: Array<'_id' | '_createdDate' | '_updatedDate' | 'status' | 'buyerInfo.visitorId' | 'buyerInfo.memberId' | 'buyerInfo.userId' | 'buyerInfo.contactId' | 'buyerInfo.email'>) => AbandonedCheckoutsQueryBuilder; /** @param limit - Number of items to return, which is also the `pageSize` of the results object. */ limit: (limit: number) => AbandonedCheckoutsQueryBuilder; /** @param cursor - A pointer to specific record */ skipTo: (cursor: string) => AbandonedCheckoutsQueryBuilder; find: () => Promise; } interface SearchAbandonedCheckoutsOptions { /** WQL query expression. */ search?: Search; } interface AddAbandonedCheckoutActivityOptions { /** The type of the activity to add */ activityType?: ActivityType; } export { type TaskAction as $, type AbandonedCheckout as A, type BuyerInfo as B, CommonSortOrder as C, type DeleteAbandonedCheckoutRequest as D, type Search as E, type FullAddressContactDetails as F, type GetAbandonedCheckoutRequest as G, type SearchPagingMethodOneOf as H, Identity as I, type CommonSorting as J, type SearchDetails as K, type CommonPaging as L, Mode as M, type CommonCursorPaging as N, type CommonPagingMetadataV2 as O, type Paging as P, type QueryAbandonedCheckoutsRequest as Q, type RawHttpResponse as R, type SearchAbandonedCheckoutsOptions as S, type Totals as T, type CommonCursors as U, VatType as V, WebhookIdentityType as W, type AddAbandonedCheckoutActivityRequest as X, type AddAbandonedCheckoutActivityResponse as Y, type Task as Z, type TaskKey as _, type AbandonedCheckoutNonNullableFields as a, type TaskActionActionOneOf as a0, type Complete as a1, type Cancel as a2, type Reschedule as a3, type RedirectToCheckoutRequest as a4, type HeadersEntry as a5, type DomainEvent as a6, type DomainEventBodyOneOf as a7, type EntityCreatedEvent as a8, type RestoreInfo 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 GetAbandonedCheckoutResponseNonNullableFields as ah, type QueryAbandonedCheckoutsResponseNonNullableFields as ai, type AddAbandonedCheckoutActivityResponseNonNullableFields as aj, type BaseEventMetadata as ak, type EventMetadata as al, type AbandonedCheckoutCreatedEnvelope as am, type AbandonedCheckoutDeletedEnvelope as an, type AbandonedCheckoutRecoveredEnvelope as ao, type AbandonedCheckoutUpdatedEnvelope as ap, type AbandonedCheckoutsQueryResult as aq, type AddAbandonedCheckoutActivityOptions as ar, type AbandonedCheckoutsQueryBuilder as b, type SearchAbandonedCheckoutsResponse as c, type SearchAbandonedCheckoutsResponseNonNullableFields as d, type RawHttpResponseNonNullableFields as e, ActivityType as f, Status as g, SortOrder as h, type V1BuyerInfo as i, type V1BuyerInfoIdOneOf as j, type VatId as k, type MultiCurrencyPrice as l, type Activity as m, type CartAbandonedEvent as n, type CartRecoveredEvent as o, type AbandonedCheckoutRecovered as p, type GetAbandonedCheckoutResponse as q, type DeleteAbandonedCheckoutResponse as r, type QueryV2 as s, type QueryV2PagingMethodOneOf as t, type Sorting as u, type CursorPaging as v, type QueryAbandonedCheckoutsResponse as w, type PagingMetadataV2 as x, type Cursors as y, type SearchAbandonedCheckoutsRequest as z };