@wix/auto_sdk_ecom_abandoned-checkouts 1.0.63 → 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-D-6wKinw.d.ts → ecom-v1-abandoned-checkout-abandoned-checkouts.universal-ovpzscx6.d.ts} +41 -1
- package/build/cjs/index.d.ts +2 -2
- package/build/cjs/index.js +20 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +20 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +38 -2
- package/build/cjs/meta.js +12 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/{ecom-v1-abandoned-checkout-abandoned-checkouts.universal-D-6wKinw.d.mts → ecom-v1-abandoned-checkout-abandoned-checkouts.universal-ovpzscx6.d.mts} +41 -1
- package/build/es/index.d.mts +2 -2
- package/build/es/index.mjs +16 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +16 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +38 -2
- package/build/es/meta.mjs +11 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/{ecom-v1-abandoned-checkout-abandoned-checkouts.universal-C6gO9OJi.d.ts → ecom-v1-abandoned-checkout-abandoned-checkouts.universal-CcNvPoM4.d.ts} +51 -1
- package/build/internal/cjs/index.d.ts +2 -2
- package/build/internal/cjs/index.js +20 -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 +20 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +38 -2
- package/build/internal/cjs/meta.js +12 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/{ecom-v1-abandoned-checkout-abandoned-checkouts.universal-C6gO9OJi.d.mts → ecom-v1-abandoned-checkout-abandoned-checkouts.universal-CcNvPoM4.d.mts} +51 -1
- package/build/internal/es/index.d.mts +2 -2
- package/build/internal/es/index.mjs +16 -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 +16 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +38 -2
- package/build/internal/es/meta.mjs +11 -0
- package/build/internal/es/meta.mjs.map +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. */
|
|
@@ -420,6 +421,42 @@ interface PhysicalProperties {
|
|
|
420
421
|
/** Whether this line item is shippable. */
|
|
421
422
|
shippable?: boolean;
|
|
422
423
|
}
|
|
424
|
+
interface Dimensions {
|
|
425
|
+
/**
|
|
426
|
+
* Length. Measurement unit is handled at the system level (metric/imperial).
|
|
427
|
+
* @decimalValue options { gte:0, lte:999999999, maxScale:6 }
|
|
428
|
+
*/
|
|
429
|
+
length?: string | null;
|
|
430
|
+
/**
|
|
431
|
+
* Width. Measurement unit is handled at the system level (metric/imperial).
|
|
432
|
+
* @decimalValue options { gte:0, lte:999999999, maxScale:6 }
|
|
433
|
+
*/
|
|
434
|
+
width?: string | null;
|
|
435
|
+
/**
|
|
436
|
+
* Height. Measurement unit is handled at the system level (metric/imperial).
|
|
437
|
+
* @decimalValue options { gte:0, lte:999999999, maxScale:6 }
|
|
438
|
+
*/
|
|
439
|
+
height?: string | null;
|
|
440
|
+
/** Unit of measurement for dimensions (length, width, height). */
|
|
441
|
+
unit?: DimensionsUnitWithLiterals;
|
|
442
|
+
}
|
|
443
|
+
declare enum DimensionsUnit {
|
|
444
|
+
UNKNOWN_DIMENSIONS_UNIT = "UNKNOWN_DIMENSIONS_UNIT",
|
|
445
|
+
/** Millimeters. */
|
|
446
|
+
MM = "MM",
|
|
447
|
+
/** Centimeters. */
|
|
448
|
+
CM = "CM",
|
|
449
|
+
/** Meters. */
|
|
450
|
+
M = "M",
|
|
451
|
+
/** Inches. */
|
|
452
|
+
IN = "IN",
|
|
453
|
+
/** Feet. */
|
|
454
|
+
FT = "FT",
|
|
455
|
+
/** Yards. */
|
|
456
|
+
YD = "YD"
|
|
457
|
+
}
|
|
458
|
+
/** @enumType */
|
|
459
|
+
type DimensionsUnitWithLiterals = DimensionsUnit | 'UNKNOWN_DIMENSIONS_UNIT' | 'MM' | 'CM' | 'M' | 'IN' | 'FT' | 'YD';
|
|
423
460
|
interface AppliedDiscount extends AppliedDiscountDiscountSourceOneOf {
|
|
424
461
|
/** Coupon details. */
|
|
425
462
|
coupon?: Coupon;
|
|
@@ -1462,6 +1499,9 @@ type AbandonedCheckoutQuery = {
|
|
|
1462
1499
|
order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];
|
|
1463
1500
|
}[];
|
|
1464
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>;
|
|
1465
1505
|
interface AbandonedCheckoutSearchSpec extends SearchSpec {
|
|
1466
1506
|
searchable: [
|
|
1467
1507
|
'buyerInfo.email',
|
|
@@ -1582,4 +1622,4 @@ interface AddAbandonedCheckoutActivityOptions {
|
|
|
1582
1622
|
*/
|
|
1583
1623
|
declare function redirectToCheckout(abandonedCheckoutId: string, metasiteId: string): Promise<NonNullablePaths<RawHttpResponse, `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`, 4>>;
|
|
1584
1624
|
|
|
1585
|
-
export { 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 {
|
|
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
|
@@ -23,9 +23,13 @@ __export(index_exports, {
|
|
|
23
23
|
ActivityType: () => ActivityType,
|
|
24
24
|
CommonSortOrder: () => CommonSortOrder,
|
|
25
25
|
DescriptionLineType: () => DescriptionLineType,
|
|
26
|
+
DimensionsUnit: () => DimensionsUnit,
|
|
26
27
|
DiscountType: () => DiscountType,
|
|
28
|
+
Filter: () => Filter,
|
|
27
29
|
Identity: () => Identity,
|
|
28
30
|
Mode: () => Mode,
|
|
31
|
+
QueryBuilder: () => QueryBuilder,
|
|
32
|
+
Sort: () => Sort,
|
|
29
33
|
SortOrder: () => SortOrder,
|
|
30
34
|
Status: () => Status,
|
|
31
35
|
VatType: () => VatType,
|
|
@@ -359,6 +363,7 @@ function redirectToCheckout(payload) {
|
|
|
359
363
|
// src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.ts
|
|
360
364
|
var import_image = require("@wix/sdk-runtime/transformations/image");
|
|
361
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");
|
|
362
367
|
var ActivityType = /* @__PURE__ */ ((ActivityType2) => {
|
|
363
368
|
ActivityType2["UNKNOWN_TYPE"] = "UNKNOWN_TYPE";
|
|
364
369
|
ActivityType2["SCHEDULED"] = "SCHEDULED";
|
|
@@ -386,6 +391,16 @@ var DescriptionLineType = /* @__PURE__ */ ((DescriptionLineType2) => {
|
|
|
386
391
|
DescriptionLineType2["COLOR"] = "COLOR";
|
|
387
392
|
return DescriptionLineType2;
|
|
388
393
|
})(DescriptionLineType || {});
|
|
394
|
+
var DimensionsUnit = /* @__PURE__ */ ((DimensionsUnit2) => {
|
|
395
|
+
DimensionsUnit2["UNKNOWN_DIMENSIONS_UNIT"] = "UNKNOWN_DIMENSIONS_UNIT";
|
|
396
|
+
DimensionsUnit2["MM"] = "MM";
|
|
397
|
+
DimensionsUnit2["CM"] = "CM";
|
|
398
|
+
DimensionsUnit2["M"] = "M";
|
|
399
|
+
DimensionsUnit2["IN"] = "IN";
|
|
400
|
+
DimensionsUnit2["FT"] = "FT";
|
|
401
|
+
DimensionsUnit2["YD"] = "YD";
|
|
402
|
+
return DimensionsUnit2;
|
|
403
|
+
})(DimensionsUnit || {});
|
|
389
404
|
var DiscountType = /* @__PURE__ */ ((DiscountType2) => {
|
|
390
405
|
DiscountType2["GLOBAL"] = "GLOBAL";
|
|
391
406
|
DiscountType2["SPECIFIC_ITEMS"] = "SPECIFIC_ITEMS";
|
|
@@ -589,6 +604,7 @@ async function typedQueryAbandonedCheckouts(query) {
|
|
|
589
604
|
throw transformedError;
|
|
590
605
|
}
|
|
591
606
|
}
|
|
607
|
+
var { QueryBuilder, Filter, Sort } = (0, import_query_builder_utils.createQueryUtils)();
|
|
592
608
|
async function searchAbandonedCheckouts2(search) {
|
|
593
609
|
const { httpClient, sideEffects } = arguments[1];
|
|
594
610
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ search });
|
|
@@ -903,9 +919,13 @@ var onAbandonedCheckoutUpdated2 = (0, import_event_definition_modules.createEven
|
|
|
903
919
|
ActivityType,
|
|
904
920
|
CommonSortOrder,
|
|
905
921
|
DescriptionLineType,
|
|
922
|
+
DimensionsUnit,
|
|
906
923
|
DiscountType,
|
|
924
|
+
Filter,
|
|
907
925
|
Identity,
|
|
908
926
|
Mode,
|
|
927
|
+
QueryBuilder,
|
|
928
|
+
Sort,
|
|
909
929
|
SortOrder,
|
|
910
930
|
Status,
|
|
911
931
|
VatType,
|