@wix/auto_sdk_ecom_abandoned-checkouts 1.0.52 → 1.0.53
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-DhcdCax5.d.ts → ecom-v1-abandoned-checkout-abandoned-checkouts.universal-yVNYTF5p.d.ts} +66 -3
- package/build/cjs/index.d.ts +4 -4
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +1 -1
- package/build/es/{ecom-v1-abandoned-checkout-abandoned-checkouts.universal-DhcdCax5.d.mts → ecom-v1-abandoned-checkout-abandoned-checkouts.universal-yVNYTF5p.d.mts} +66 -3
- package/build/es/index.d.mts +4 -4
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +1 -1
- package/build/internal/cjs/{ecom-v1-abandoned-checkout-abandoned-checkouts.universal-WxTvIcU0.d.ts → ecom-v1-abandoned-checkout-abandoned-checkouts.universal-DWQbXHag.d.ts} +66 -3
- package/build/internal/cjs/index.d.ts +4 -4
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +2 -2
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +1 -1
- package/build/internal/es/{ecom-v1-abandoned-checkout-abandoned-checkouts.universal-WxTvIcU0.d.mts → ecom-v1-abandoned-checkout-abandoned-checkouts.universal-DWQbXHag.d.mts} +66 -3
- package/build/internal/es/index.d.mts +4 -4
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +2 -2
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +1 -1
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SearchSpec, Search as Search$1, NonNullablePaths } from '@wix/sdk-types';
|
|
1
|
+
import { QuerySpec, SearchSpec, Query, Search as Search$1, NonNullablePaths } from '@wix/sdk-types';
|
|
2
2
|
|
|
3
3
|
interface AbandonedCheckout {
|
|
4
4
|
/**
|
|
@@ -1373,7 +1373,70 @@ interface AbandonedCheckoutsQueryBuilder {
|
|
|
1373
1373
|
* @fqn wix.ecom.abandoned_checkout.api.v1.AbandonedCheckoutService.QueryAbandonedCheckouts
|
|
1374
1374
|
* @requiredField query
|
|
1375
1375
|
*/
|
|
1376
|
-
declare function typedQueryAbandonedCheckouts(query:
|
|
1376
|
+
declare function typedQueryAbandonedCheckouts(query: AbandonedCheckoutQuery): Promise<NonNullablePaths<QueryAbandonedCheckoutsResponse, `results` | `results.${number}._id` | `results.${number}.status` | `results.${number}.buyerInfo.visitorId` | `results.${number}.buyerInfo.memberId` | `results.${number}.buyerInfo.userId` | `results.${number}.contactDetails.vatId._id` | `results.${number}.contactDetails.vatId.type` | `results.${number}.currency` | `results.${number}.totalPrice.amount` | `results.${number}.totalPrice.convertedAmount` | `results.${number}.totalPrice.formattedAmount` | `results.${number}.totalPrice.formattedConvertedAmount` | `results.${number}.checkoutUrl` | `abandonedCheckouts` | `abandonedCheckouts.${number}._id` | `abandonedCheckouts.${number}.status` | `abandonedCheckouts.${number}.buyerInfo.visitorId` | `abandonedCheckouts.${number}.buyerInfo.memberId` | `abandonedCheckouts.${number}.buyerInfo.userId` | `abandonedCheckouts.${number}.contactDetails.vatId._id` | `abandonedCheckouts.${number}.contactDetails.vatId.type` | `abandonedCheckouts.${number}.currency` | `abandonedCheckouts.${number}.totalPrice.amount` | `abandonedCheckouts.${number}.totalPrice.convertedAmount` | `abandonedCheckouts.${number}.totalPrice.formattedAmount` | `abandonedCheckouts.${number}.totalPrice.formattedConvertedAmount` | `abandonedCheckouts.${number}.checkoutUrl`, 6>>;
|
|
1377
|
+
interface AbandonedCheckoutQuerySpec extends QuerySpec {
|
|
1378
|
+
paging: 'cursor';
|
|
1379
|
+
wql: [
|
|
1380
|
+
{
|
|
1381
|
+
fields: [
|
|
1382
|
+
'_createdDate',
|
|
1383
|
+
'_id',
|
|
1384
|
+
'_updatedDate',
|
|
1385
|
+
'buyerInfo.contactId',
|
|
1386
|
+
'buyerInfo.email',
|
|
1387
|
+
'buyerInfo.memberId',
|
|
1388
|
+
'buyerInfo.userId',
|
|
1389
|
+
'buyerInfo.visitorId',
|
|
1390
|
+
'status'
|
|
1391
|
+
];
|
|
1392
|
+
operators: '*';
|
|
1393
|
+
sort: 'BOTH';
|
|
1394
|
+
}
|
|
1395
|
+
];
|
|
1396
|
+
}
|
|
1397
|
+
type CommonQueryWithEntityContext = Query<AbandonedCheckout, AbandonedCheckoutQuerySpec>;
|
|
1398
|
+
type AbandonedCheckoutQuery = {
|
|
1399
|
+
/**
|
|
1400
|
+
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`.
|
|
1401
|
+
*/
|
|
1402
|
+
cursorPaging?: {
|
|
1403
|
+
/**
|
|
1404
|
+
Maximum number of items to return in the results.
|
|
1405
|
+
@max: 100
|
|
1406
|
+
*/
|
|
1407
|
+
limit?: NonNullable<CommonQueryWithEntityContext['cursorPaging']>['limit'] | null;
|
|
1408
|
+
/**
|
|
1409
|
+
Pointer to the next or previous page in the list of results.
|
|
1410
|
+
|
|
1411
|
+
Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
1412
|
+
Not relevant for the first request.
|
|
1413
|
+
@maxLength: 16000
|
|
1414
|
+
*/
|
|
1415
|
+
cursor?: NonNullable<CommonQueryWithEntityContext['cursorPaging']>['cursor'] | null;
|
|
1416
|
+
};
|
|
1417
|
+
/**
|
|
1418
|
+
Filter object.
|
|
1419
|
+
|
|
1420
|
+
Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).
|
|
1421
|
+
*/
|
|
1422
|
+
filter?: CommonQueryWithEntityContext['filter'] | null;
|
|
1423
|
+
/**
|
|
1424
|
+
Sort object.
|
|
1425
|
+
|
|
1426
|
+
Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).
|
|
1427
|
+
*/
|
|
1428
|
+
sort?: {
|
|
1429
|
+
/**
|
|
1430
|
+
Name of the field to sort by.
|
|
1431
|
+
@maxLength: 512
|
|
1432
|
+
*/
|
|
1433
|
+
fieldName?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['fieldName'];
|
|
1434
|
+
/**
|
|
1435
|
+
Sort order.
|
|
1436
|
+
*/
|
|
1437
|
+
order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];
|
|
1438
|
+
}[];
|
|
1439
|
+
};
|
|
1377
1440
|
interface AbandonedCheckoutSearchSpec extends SearchSpec {
|
|
1378
1441
|
searchable: [
|
|
1379
1442
|
'buyerInfo.email',
|
|
@@ -1505,4 +1568,4 @@ interface AddAbandonedCheckoutActivityOptions {
|
|
|
1505
1568
|
*/
|
|
1506
1569
|
declare function redirectToCheckout(abandonedCheckoutId: string, metasiteId: string): Promise<NonNullablePaths<RawHttpResponse, `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`, 4>>;
|
|
1507
1570
|
|
|
1508
|
-
export { type DeleteAbandonedCheckoutRequest as $, type AbandonedCheckout as A, type BulkDeleteAbandonedCheckoutsResponse as B, CommonSortOrder as C, DescriptionLineType as D, type
|
|
1571
|
+
export { type DeleteAbandonedCheckoutRequest as $, type AbandonedCheckout as A, type BulkDeleteAbandonedCheckoutsResponse as B, CommonSortOrder as C, DescriptionLineType as D, type PhysicalProperties as E, type FullAddressContactDetails as F, type AppliedDiscount as G, type AppliedDiscountDiscountSourceOneOf as H, Identity as I, type Coupon as J, type MerchantDiscount as K, type LineItem as L, Mode as M, type DiscountRule as N, type DiscountRuleName as O, type ProductName as P, type CartAbandonedEvent as Q, type RawHttpResponse as R, type SearchAbandonedCheckoutsResponse as S, type BuyerInfo as T, type Totals as U, VatType as V, WebhookIdentityType as W, type CartRecoveredEvent as X, type AbandonedCheckoutRecovered as Y, type GetAbandonedCheckoutRequest as Z, type GetAbandonedCheckoutResponse as _, type AbandonedCheckoutSearch as a, onAbandonedCheckoutDeleted as a$, type DeleteAbandonedCheckoutResponse as a0, type BulkDeleteAbandonedCheckoutsRequest as a1, type ItemMetadata as a2, type ApplicationError as a3, type BulkAbandonedCheckoutResult as a4, type BulkActionMetadata as a5, type QueryAbandonedCheckoutsRequest as a6, type QueryV2 as a7, type QueryV2PagingMethodOneOf as a8, type Sorting 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 AbandonedCheckoutQuerySpec as aM, type AbandonedCheckoutSearchSpec as aN, type ActivityTypeWithLiterals as aO, type StatusWithLiterals as aP, type VatTypeWithLiterals as aQ, type DescriptionLineTypeWithLiterals as aR, type DiscountTypeWithLiterals as aS, type IdentityWithLiterals as aT, type SortOrderWithLiterals as aU, type CommonSortOrderWithLiterals as aV, type ModeWithLiterals as aW, type WebhookIdentityTypeWithLiterals as aX, type CommonQueryWithEntityContext as aY, type CommonSearchWithEntityContext as aZ, onAbandonedCheckoutCreated as a_, type Paging as aa, type CursorPaging as ab, type QueryAbandonedCheckoutsResponse as ac, type PagingMetadataV2 as ad, type Cursors as ae, type SearchAbandonedCheckoutsRequest as af, type Search as ag, type SearchPagingMethodOneOf as ah, type CommonSorting as ai, type SearchDetails as aj, type CommonPaging as ak, type CommonCursorPaging as al, type CommonPagingMetadataV2 as am, type CommonCursors as an, type AddAbandonedCheckoutActivityRequest as ao, type Task as ap, type TaskKey as aq, type TaskAction as ar, type TaskActionActionOneOf as as, type Complete as at, type Cancel as au, type Reschedule as av, type RedirectToCheckoutRequest as aw, type HeadersEntry as ax, type DomainEvent as ay, type DomainEventBodyOneOf as az, type AddAbandonedCheckoutActivityOptions as b, onAbandonedCheckoutRecovered as b0, onAbandonedCheckoutUpdated as b1, getAbandonedCheckout as b2, deleteAbandonedCheckout as b3, bulkDeleteAbandonedCheckouts as b4, queryAbandonedCheckouts as b5, addAbandonedCheckoutActivity as b6, redirectToCheckout as b7, type AddAbandonedCheckoutActivityResponse as c, type AbandonedCheckoutCreatedEnvelope as d, type AbandonedCheckoutDeletedEnvelope as e, type AbandonedCheckoutRecoveredEnvelope as f, type AbandonedCheckoutUpdatedEnvelope as g, type AbandonedCheckoutsQueryBuilder as h, type AbandonedCheckoutQuery as i, ActivityType as j, Status as k, DiscountType as l, SortOrder as m, type V1BuyerInfo as n, type V1BuyerInfoIdOneOf as o, type VatId as p, type MultiCurrencyPrice as q, type Activity as r, type CatalogReference as s, typedQueryAbandonedCheckouts as t, type DescriptionLine as u, type DescriptionLineValueOneOf as v, type DescriptionLineDescriptionLineValueOneOf as w, type DescriptionLineName as x, type PlainTextValue as y, type Color as z };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import { A as AbandonedCheckout, B as BulkDeleteAbandonedCheckoutsResponse, a as AbandonedCheckoutSearch, S as SearchAbandonedCheckoutsResponse, b as AddAbandonedCheckoutActivityOptions, c as AddAbandonedCheckoutActivityResponse, R as RawHttpResponse, d as AbandonedCheckoutCreatedEnvelope, e as AbandonedCheckoutDeletedEnvelope, f as AbandonedCheckoutRecoveredEnvelope, g as AbandonedCheckoutUpdatedEnvelope, h as AbandonedCheckoutsQueryBuilder,
|
|
3
|
-
export { Y as AbandonedCheckoutRecovered,
|
|
2
|
+
import { A as AbandonedCheckout, B as BulkDeleteAbandonedCheckoutsResponse, a as AbandonedCheckoutSearch, S as SearchAbandonedCheckoutsResponse, b as AddAbandonedCheckoutActivityOptions, c as AddAbandonedCheckoutActivityResponse, R as RawHttpResponse, d as AbandonedCheckoutCreatedEnvelope, e as AbandonedCheckoutDeletedEnvelope, f as AbandonedCheckoutRecoveredEnvelope, g as AbandonedCheckoutUpdatedEnvelope, h as AbandonedCheckoutsQueryBuilder, i as AbandonedCheckoutQuery, t as typedQueryAbandonedCheckouts } from './ecom-v1-abandoned-checkout-abandoned-checkouts.universal-DWQbXHag.mjs';
|
|
3
|
+
export { aM as AbandonedCheckoutQuerySpec, Y as AbandonedCheckoutRecovered, aN as AbandonedCheckoutSearchSpec, aL as AbandonedCheckoutsQueryResult, aE as ActionEvent, r as Activity, j as ActivityType, aO as ActivityTypeWithLiterals, ao as AddAbandonedCheckoutActivityRequest, a3 as ApplicationError, G as AppliedDiscount, H as AppliedDiscountDiscountSourceOneOf, aJ as BaseEventMetadata, a4 as BulkAbandonedCheckoutResult, a5 as BulkActionMetadata, a1 as BulkDeleteAbandonedCheckoutsRequest, T as BuyerInfo, au as Cancel, Q as CartAbandonedEvent, X as CartRecoveredEvent, s as CatalogReference, z as Color, al as CommonCursorPaging, an as CommonCursors, ak as CommonPaging, am as CommonPagingMetadataV2, aY as CommonQueryWithEntityContext, aZ as CommonSearchWithEntityContext, C as CommonSortOrder, aV as CommonSortOrderWithLiterals, ai as CommonSorting, at as Complete, J as Coupon, ab as CursorPaging, ae as Cursors, $ as DeleteAbandonedCheckoutRequest, a0 as DeleteAbandonedCheckoutResponse, u as DescriptionLine, w as DescriptionLineDescriptionLineValueOneOf, x as DescriptionLineName, D as DescriptionLineType, aR as DescriptionLineTypeWithLiterals, v as DescriptionLineValueOneOf, N as DiscountRule, O as DiscountRuleName, l as DiscountType, aS as DiscountTypeWithLiterals, ay as DomainEvent, az as DomainEventBodyOneOf, aF as Empty, aA as EntityCreatedEvent, aD as EntityDeletedEvent, aC as EntityUpdatedEvent, aK as EventMetadata, F as FullAddressContactDetails, Z as GetAbandonedCheckoutRequest, _ as GetAbandonedCheckoutResponse, ax as HeadersEntry, aH as IdentificationData, aI as IdentificationDataIdOneOf, I as Identity, aT as IdentityWithLiterals, a2 as ItemMetadata, L as LineItem, K as MerchantDiscount, aG as MessageEnvelope, M as Mode, aW as ModeWithLiterals, q as MultiCurrencyPrice, aa as Paging, ad as PagingMetadataV2, E as PhysicalProperties, y as PlainTextValue, P as ProductName, a6 as QueryAbandonedCheckoutsRequest, ac as QueryAbandonedCheckoutsResponse, a7 as QueryV2, a8 as QueryV2PagingMethodOneOf, aw as RedirectToCheckoutRequest, av as Reschedule, aB as RestoreInfo, ag as Search, af as SearchAbandonedCheckoutsRequest, aj as SearchDetails, ah as SearchPagingMethodOneOf, m as SortOrder, aU as SortOrderWithLiterals, a9 as Sorting, k as Status, aP as StatusWithLiterals, ap as Task, ar as TaskAction, as as TaskActionActionOneOf, aq as TaskKey, U as Totals, n as V1BuyerInfo, o as V1BuyerInfoIdOneOf, p as VatId, V as VatType, aQ as VatTypeWithLiterals, W as WebhookIdentityType, aX as WebhookIdentityTypeWithLiterals } from './ecom-v1-abandoned-checkout-abandoned-checkouts.universal-DWQbXHag.mjs';
|
|
4
4
|
|
|
5
5
|
declare function getAbandonedCheckout$1(httpClient: HttpClient): GetAbandonedCheckoutSignature;
|
|
6
6
|
interface GetAbandonedCheckoutSignature {
|
|
@@ -60,7 +60,7 @@ declare const onAbandonedCheckoutUpdated$1: EventDefinition<AbandonedCheckoutUpd
|
|
|
60
60
|
|
|
61
61
|
declare function customQueryAbandonedCheckouts(httpClient: HttpClient): {
|
|
62
62
|
(): AbandonedCheckoutsQueryBuilder;
|
|
63
|
-
(query:
|
|
63
|
+
(query: AbandonedCheckoutQuery): ReturnType<typeof typedQueryAbandonedCheckouts>;
|
|
64
64
|
};
|
|
65
65
|
declare const getAbandonedCheckout: MaybeContext<BuildRESTFunction<typeof getAbandonedCheckout$1> & typeof getAbandonedCheckout$1>;
|
|
66
66
|
declare const deleteAbandonedCheckout: MaybeContext<BuildRESTFunction<typeof deleteAbandonedCheckout$1> & typeof deleteAbandonedCheckout$1>;
|
|
@@ -87,4 +87,4 @@ declare const onAbandonedCheckoutRecovered: BuildEventDefinition<typeof onAbando
|
|
|
87
87
|
*/
|
|
88
88
|
declare const onAbandonedCheckoutUpdated: BuildEventDefinition<typeof onAbandonedCheckoutUpdated$1> & typeof onAbandonedCheckoutUpdated$1;
|
|
89
89
|
|
|
90
|
-
export { AbandonedCheckout, AbandonedCheckoutCreatedEnvelope, AbandonedCheckoutDeletedEnvelope, AbandonedCheckoutRecoveredEnvelope, AbandonedCheckoutSearch, AbandonedCheckoutUpdatedEnvelope, AbandonedCheckoutsQueryBuilder, AddAbandonedCheckoutActivityOptions, AddAbandonedCheckoutActivityResponse, BulkDeleteAbandonedCheckoutsResponse,
|
|
90
|
+
export { AbandonedCheckout, AbandonedCheckoutCreatedEnvelope, AbandonedCheckoutDeletedEnvelope, AbandonedCheckoutQuery, AbandonedCheckoutRecoveredEnvelope, AbandonedCheckoutSearch, AbandonedCheckoutUpdatedEnvelope, AbandonedCheckoutsQueryBuilder, AddAbandonedCheckoutActivityOptions, AddAbandonedCheckoutActivityResponse, BulkDeleteAbandonedCheckoutsResponse, RawHttpResponse, SearchAbandonedCheckoutsResponse, addAbandonedCheckoutActivity, bulkDeleteAbandonedCheckouts, deleteAbandonedCheckout, getAbandonedCheckout, onAbandonedCheckoutCreated, onAbandonedCheckoutDeleted, onAbandonedCheckoutRecovered, onAbandonedCheckoutUpdated, queryAbandonedCheckouts, redirectToCheckout, searchAbandonedCheckouts };
|