@wix/auto_sdk_ecom_abandoned-checkouts 1.0.64 → 1.0.65
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-BMNW-O8u.d.ts → ecom-v1-abandoned-checkout-abandoned-checkouts.universal-ovpzscx6.d.ts} +5 -1
- package/build/cjs/index.d.ts +2 -2
- package/build/cjs/index.js +8 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +8 -0
- 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-BMNW-O8u.d.mts → ecom-v1-abandoned-checkout-abandoned-checkouts.universal-ovpzscx6.d.mts} +5 -1
- package/build/es/index.d.mts +2 -2
- package/build/es/index.mjs +5 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +5 -0
- 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-BKiIJ28z.d.ts → ecom-v1-abandoned-checkout-abandoned-checkouts.universal-CcNvPoM4.d.ts} +5 -1
- package/build/internal/cjs/index.d.ts +2 -2
- package/build/internal/cjs/index.js +8 -0
- 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 +8 -0
- 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-BKiIJ28z.d.mts → ecom-v1-abandoned-checkout-abandoned-checkouts.universal-CcNvPoM4.d.mts} +5 -1
- package/build/internal/es/index.d.mts +2 -2
- package/build/internal/es/index.mjs +5 -0
- 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 +5 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +1 -1
- package/package.json +4 -4
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as _wix_sdk_types from '@wix/sdk-types';
|
|
1
2
|
import { QuerySpec, SearchSpec, Query, Search as Search$1, NonNullablePaths } from '@wix/sdk-types';
|
|
2
3
|
|
|
3
4
|
/** A checkout that was started but not completed. Use abandoned checkouts to track and recover potential sales through automated follow-ups. */
|
|
@@ -1498,6 +1499,9 @@ type AbandonedCheckoutQuery = {
|
|
|
1498
1499
|
order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];
|
|
1499
1500
|
}[];
|
|
1500
1501
|
};
|
|
1502
|
+
declare const QueryBuilder: () => _wix_sdk_types.QueryBuilder<AbandonedCheckout, AbandonedCheckoutQuerySpec, AbandonedCheckoutQuery>;
|
|
1503
|
+
declare const Filter: _wix_sdk_types.FilterFactory<AbandonedCheckout, AbandonedCheckoutQuerySpec>;
|
|
1504
|
+
declare const Sort: _wix_sdk_types.SortFactory<AbandonedCheckoutQuerySpec>;
|
|
1501
1505
|
interface AbandonedCheckoutSearchSpec extends SearchSpec {
|
|
1502
1506
|
searchable: [
|
|
1503
1507
|
'buyerInfo.email',
|
|
@@ -1618,4 +1622,4 @@ interface AddAbandonedCheckoutActivityOptions {
|
|
|
1618
1622
|
*/
|
|
1619
1623
|
declare function redirectToCheckout(abandonedCheckoutId: string, metasiteId: string): Promise<NonNullablePaths<RawHttpResponse, `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`, 4>>;
|
|
1620
1624
|
|
|
1621
|
-
export { type DeleteAbandonedCheckoutRequest as $, type AbandonedCheckout as A, type BulkDeleteAbandonedCheckoutsResponse as B, CommonSortOrder as C, DescriptionLineType as D, type Dimensions 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, type
|
|
1625
|
+
export { type DeleteAbandonedCheckoutRequest as $, type AbandonedCheckout as A, type BulkDeleteAbandonedCheckoutsResponse as B, CommonSortOrder as C, DescriptionLineType as D, type Dimensions 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, type IdentityWithLiterals 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 DomainEventBodyOneOf as aA, type EntityCreatedEvent as aB, type RestoreInfo as aC, type EntityUpdatedEvent as aD, type EntityDeletedEvent as aE, type ActionEvent as aF, type Empty as aG, type MessageEnvelope as aH, type IdentificationData as aI, type IdentificationDataIdOneOf as aJ, type AccountInfo as aK, type BaseEventMetadata as aL, type EventMetadata as aM, type AccountInfoMetadata as aN, type AbandonedCheckoutsQueryResult as aO, type AbandonedCheckoutQuerySpec as aP, type AbandonedCheckoutSearchSpec as aQ, type AddAbandonedCheckoutActivityOptions as aR, QueryBuilder as aS, Filter as aT, Sort as aU, type ActivityTypeWithLiterals as aV, type StatusWithLiterals as aW, type VatTypeWithLiterals as aX, type DescriptionLineTypeWithLiterals as aY, type DimensionsUnitWithLiterals as aZ, type DiscountTypeWithLiterals 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 AddAbandonedCheckoutActivityResponse as ap, type Task as aq, type TaskKey as ar, type TaskAction as as, type TaskActionActionOneOf as at, type Complete as au, type Cancel as av, type Reschedule as aw, type RedirectToCheckoutRequest as ax, type HeadersEntry as ay, type DomainEvent as az, type AbandonedCheckoutCreatedEnvelope as b, type SortOrderWithLiterals as b0, type CommonSortOrderWithLiterals as b1, type ModeWithLiterals as b2, type WebhookIdentityTypeWithLiterals as b3, type CommonQueryWithEntityContext as b4, type CommonSearchWithEntityContext as b5, onAbandonedCheckoutCreated as b6, onAbandonedCheckoutDeleted as b7, onAbandonedCheckoutRecovered as b8, onAbandonedCheckoutUpdated as b9, getAbandonedCheckout as ba, deleteAbandonedCheckout as bb, bulkDeleteAbandonedCheckouts as bc, queryAbandonedCheckouts as bd, redirectToCheckout as be, type AbandonedCheckoutDeletedEnvelope as c, type AbandonedCheckoutRecoveredEnvelope as d, type AbandonedCheckoutUpdatedEnvelope as e, type AbandonedCheckoutsQueryBuilder as f, type AbandonedCheckoutQuery as g, ActivityType as h, Status as i, DimensionsUnit as j, DiscountType as k, SortOrder as l, type V1BuyerInfo as m, type V1BuyerInfoIdOneOf as n, type VatId as o, type MultiCurrencyPrice as p, type Activity as q, type CatalogReference as r, type DescriptionLine as s, typedQueryAbandonedCheckouts as t, type DescriptionLineValueOneOf as u, type DescriptionLineDescriptionLineValueOneOf as v, type DescriptionLineName as w, type PlainTextValue as x, type Color as y, type PhysicalProperties as z };
|
package/build/cjs/index.d.ts
CHANGED
|
@@ -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, R as RawHttpResponse, b as AbandonedCheckoutCreatedEnvelope, c as AbandonedCheckoutDeletedEnvelope, d as AbandonedCheckoutRecoveredEnvelope, e as AbandonedCheckoutUpdatedEnvelope, f as AbandonedCheckoutsQueryBuilder, g as AbandonedCheckoutQuery, t as typedQueryAbandonedCheckouts } from './ecom-v1-abandoned-checkout-abandoned-checkouts.universal-
|
|
3
|
-
export { aP as AbandonedCheckoutQuerySpec, Y as AbandonedCheckoutRecovered, aQ as AbandonedCheckoutSearchSpec, aO as AbandonedCheckoutsQueryResult, aK as AccountInfo, aN as AccountInfoMetadata, aF as ActionEvent, q as Activity, h as ActivityType,
|
|
2
|
+
import { A as AbandonedCheckout, B as BulkDeleteAbandonedCheckoutsResponse, a as AbandonedCheckoutSearch, S as SearchAbandonedCheckoutsResponse, R as RawHttpResponse, b as AbandonedCheckoutCreatedEnvelope, c as AbandonedCheckoutDeletedEnvelope, d as AbandonedCheckoutRecoveredEnvelope, e as AbandonedCheckoutUpdatedEnvelope, f as AbandonedCheckoutsQueryBuilder, g as AbandonedCheckoutQuery, t as typedQueryAbandonedCheckouts } from './ecom-v1-abandoned-checkout-abandoned-checkouts.universal-ovpzscx6.js';
|
|
3
|
+
export { aP as AbandonedCheckoutQuerySpec, Y as AbandonedCheckoutRecovered, aQ as AbandonedCheckoutSearchSpec, aO as AbandonedCheckoutsQueryResult, aK as AccountInfo, aN as AccountInfoMetadata, aF as ActionEvent, q as Activity, h as ActivityType, aV as ActivityTypeWithLiterals, aR as AddAbandonedCheckoutActivityOptions, ao as AddAbandonedCheckoutActivityRequest, ap as AddAbandonedCheckoutActivityResponse, a3 as ApplicationError, G as AppliedDiscount, H as AppliedDiscountDiscountSourceOneOf, aL as BaseEventMetadata, a4 as BulkAbandonedCheckoutResult, a5 as BulkActionMetadata, a1 as BulkDeleteAbandonedCheckoutsRequest, T as BuyerInfo, av as Cancel, Q as CartAbandonedEvent, X as CartRecoveredEvent, r as CatalogReference, y as Color, al as CommonCursorPaging, an as CommonCursors, ak as CommonPaging, am as CommonPagingMetadataV2, b4 as CommonQueryWithEntityContext, b5 as CommonSearchWithEntityContext, C as CommonSortOrder, b1 as CommonSortOrderWithLiterals, ai as CommonSorting, au as Complete, J as Coupon, ab as CursorPaging, ae as Cursors, $ as DeleteAbandonedCheckoutRequest, a0 as DeleteAbandonedCheckoutResponse, s as DescriptionLine, v as DescriptionLineDescriptionLineValueOneOf, w as DescriptionLineName, D as DescriptionLineType, aY as DescriptionLineTypeWithLiterals, u as DescriptionLineValueOneOf, E as Dimensions, j as DimensionsUnit, aZ as DimensionsUnitWithLiterals, N as DiscountRule, O as DiscountRuleName, k as DiscountType, a_ as DiscountTypeWithLiterals, az as DomainEvent, aA as DomainEventBodyOneOf, aG as Empty, aB as EntityCreatedEvent, aE as EntityDeletedEvent, aD as EntityUpdatedEvent, aM as EventMetadata, aT as Filter, F as FullAddressContactDetails, Z as GetAbandonedCheckoutRequest, _ as GetAbandonedCheckoutResponse, ay as HeadersEntry, aI as IdentificationData, aJ as IdentificationDataIdOneOf, I as Identity, a$ as IdentityWithLiterals, a2 as ItemMetadata, L as LineItem, K as MerchantDiscount, aH as MessageEnvelope, M as Mode, b2 as ModeWithLiterals, p as MultiCurrencyPrice, aa as Paging, ad as PagingMetadataV2, z as PhysicalProperties, x as PlainTextValue, P as ProductName, a6 as QueryAbandonedCheckoutsRequest, ac as QueryAbandonedCheckoutsResponse, aS as QueryBuilder, a7 as QueryV2, a8 as QueryV2PagingMethodOneOf, ax as RedirectToCheckoutRequest, aw as Reschedule, aC as RestoreInfo, ag as Search, af as SearchAbandonedCheckoutsRequest, aj as SearchDetails, ah as SearchPagingMethodOneOf, aU as Sort, l as SortOrder, b0 as SortOrderWithLiterals, a9 as Sorting, i as Status, aW as StatusWithLiterals, aq as Task, as as TaskAction, at as TaskActionActionOneOf, ar as TaskKey, U as Totals, m as V1BuyerInfo, n as V1BuyerInfoIdOneOf, o as VatId, V as VatType, aX as VatTypeWithLiterals, W as WebhookIdentityType, b3 as WebhookIdentityTypeWithLiterals } from './ecom-v1-abandoned-checkout-abandoned-checkouts.universal-ovpzscx6.js';
|
|
4
4
|
|
|
5
5
|
declare function getAbandonedCheckout$1(httpClient: HttpClient): GetAbandonedCheckoutSignature;
|
|
6
6
|
interface GetAbandonedCheckoutSignature {
|
package/build/cjs/index.js
CHANGED
|
@@ -25,8 +25,11 @@ __export(index_exports, {
|
|
|
25
25
|
DescriptionLineType: () => DescriptionLineType,
|
|
26
26
|
DimensionsUnit: () => DimensionsUnit,
|
|
27
27
|
DiscountType: () => DiscountType,
|
|
28
|
+
Filter: () => Filter,
|
|
28
29
|
Identity: () => Identity,
|
|
29
30
|
Mode: () => Mode,
|
|
31
|
+
QueryBuilder: () => QueryBuilder,
|
|
32
|
+
Sort: () => Sort,
|
|
30
33
|
SortOrder: () => SortOrder,
|
|
31
34
|
Status: () => Status,
|
|
32
35
|
VatType: () => VatType,
|
|
@@ -360,6 +363,7 @@ function redirectToCheckout(payload) {
|
|
|
360
363
|
// src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.ts
|
|
361
364
|
var import_image = require("@wix/sdk-runtime/transformations/image");
|
|
362
365
|
var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
366
|
+
var import_query_builder_utils = require("@wix/sdk-runtime/query-builder-utils");
|
|
363
367
|
var ActivityType = /* @__PURE__ */ ((ActivityType2) => {
|
|
364
368
|
ActivityType2["UNKNOWN_TYPE"] = "UNKNOWN_TYPE";
|
|
365
369
|
ActivityType2["SCHEDULED"] = "SCHEDULED";
|
|
@@ -600,6 +604,7 @@ async function typedQueryAbandonedCheckouts(query) {
|
|
|
600
604
|
throw transformedError;
|
|
601
605
|
}
|
|
602
606
|
}
|
|
607
|
+
var { QueryBuilder, Filter, Sort } = (0, import_query_builder_utils.createQueryUtils)();
|
|
603
608
|
async function searchAbandonedCheckouts2(search) {
|
|
604
609
|
const { httpClient, sideEffects } = arguments[1];
|
|
605
610
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ search });
|
|
@@ -916,8 +921,11 @@ var onAbandonedCheckoutUpdated2 = (0, import_event_definition_modules.createEven
|
|
|
916
921
|
DescriptionLineType,
|
|
917
922
|
DimensionsUnit,
|
|
918
923
|
DiscountType,
|
|
924
|
+
Filter,
|
|
919
925
|
Identity,
|
|
920
926
|
Mode,
|
|
927
|
+
QueryBuilder,
|
|
928
|
+
Sort,
|
|
921
929
|
SortOrder,
|
|
922
930
|
Status,
|
|
923
931
|
VatType,
|