@wix/auto_sdk_ecom_abandoned-checkouts 1.0.41 → 1.0.43
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/{internal/cjs/ecom-v1-abandoned-checkout-abandoned-checkouts.universal-Be00Fxej.d.ts → cjs/ecom-v1-abandoned-checkout-abandoned-checkouts.universal-C8oWIE96.d.ts} +89 -37
- package/build/cjs/index.d.ts +2 -2
- package/build/cjs/index.js +38 -5
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +23 -2
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +1 -1
- package/build/cjs/meta.js +15 -2
- package/build/cjs/meta.js.map +1 -1
- package/build/{internal/es/ecom-v1-abandoned-checkout-abandoned-checkouts.universal-Be00Fxej.d.mts → es/ecom-v1-abandoned-checkout-abandoned-checkouts.universal-C8oWIE96.d.mts} +89 -37
- package/build/es/index.d.mts +2 -2
- package/build/es/index.mjs +37 -5
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +22 -2
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +1 -1
- package/build/es/meta.mjs +15 -2
- package/build/es/meta.mjs.map +1 -1
- package/build/{cjs/ecom-v1-abandoned-checkout-abandoned-checkouts.universal-D7Tj5DAM.d.ts → internal/cjs/ecom-v1-abandoned-checkout-abandoned-checkouts.universal-BpGTpVP7.d.ts} +123 -7
- package/build/internal/cjs/index.d.ts +2 -2
- package/build/internal/cjs/index.js +38 -5
- 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 +23 -2
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +1 -1
- package/build/internal/cjs/meta.js +15 -2
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/{es/ecom-v1-abandoned-checkout-abandoned-checkouts.universal-D7Tj5DAM.d.mts → internal/es/ecom-v1-abandoned-checkout-abandoned-checkouts.universal-BpGTpVP7.d.mts} +123 -7
- package/build/internal/es/index.d.mts +2 -2
- package/build/internal/es/index.mjs +37 -5
- 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 +22 -2
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +1 -1
- package/build/internal/es/meta.mjs +15 -2
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -59,20 +59,6 @@ interface AbandonedCheckout {
|
|
|
59
59
|
checkoutUrl?: string;
|
|
60
60
|
/** Subtotal price of all line items, before discounts and before tax. */
|
|
61
61
|
subtotalPrice?: MultiCurrencyPrice;
|
|
62
|
-
/**
|
|
63
|
-
* Line items.
|
|
64
|
-
* @internal
|
|
65
|
-
* @minSize 1
|
|
66
|
-
* @maxSize 300
|
|
67
|
-
* @readonly
|
|
68
|
-
*/
|
|
69
|
-
lineItems?: LineItem[];
|
|
70
|
-
/**
|
|
71
|
-
* Coupon codes applied to this abandoned checkout.
|
|
72
|
-
* @internal
|
|
73
|
-
* @maxLength 50
|
|
74
|
-
*/
|
|
75
|
-
couponCode?: string | null;
|
|
76
62
|
}
|
|
77
63
|
declare enum ActivityType {
|
|
78
64
|
/** Not implemented. */
|
|
@@ -341,11 +327,6 @@ interface DescriptionLine extends DescriptionLineValueOneOf, DescriptionLineDesc
|
|
|
341
327
|
colorInfo?: Color;
|
|
342
328
|
/** Description line name. */
|
|
343
329
|
name?: DescriptionLineName;
|
|
344
|
-
/**
|
|
345
|
-
* Whether the description line originates from a modifier.
|
|
346
|
-
* @internal
|
|
347
|
-
*/
|
|
348
|
-
modifierDescriptionLine?: boolean;
|
|
349
330
|
}
|
|
350
331
|
/** @oneof */
|
|
351
332
|
interface DescriptionLineValueOneOf {
|
|
@@ -422,6 +403,92 @@ interface PhysicalProperties {
|
|
|
422
403
|
/** Whether this line item is shippable. */
|
|
423
404
|
shippable?: boolean;
|
|
424
405
|
}
|
|
406
|
+
interface AppliedDiscount extends AppliedDiscountDiscountSourceOneOf {
|
|
407
|
+
/** Coupon details. */
|
|
408
|
+
coupon?: Coupon;
|
|
409
|
+
/** Merchant discount. */
|
|
410
|
+
merchantDiscount?: MerchantDiscount;
|
|
411
|
+
/** Discount rule */
|
|
412
|
+
discountRule?: DiscountRule;
|
|
413
|
+
/** Discount type. */
|
|
414
|
+
discountType?: DiscountTypeWithLiterals;
|
|
415
|
+
/**
|
|
416
|
+
* IDs of line items the discount applies to.
|
|
417
|
+
* @format GUID
|
|
418
|
+
* @maxSize 300
|
|
419
|
+
*/
|
|
420
|
+
lineItemIds?: string[];
|
|
421
|
+
}
|
|
422
|
+
/** @oneof */
|
|
423
|
+
interface AppliedDiscountDiscountSourceOneOf {
|
|
424
|
+
/** Coupon details. */
|
|
425
|
+
coupon?: Coupon;
|
|
426
|
+
/** Merchant discount. */
|
|
427
|
+
merchantDiscount?: MerchantDiscount;
|
|
428
|
+
/** Discount rule */
|
|
429
|
+
discountRule?: DiscountRule;
|
|
430
|
+
}
|
|
431
|
+
declare enum DiscountType {
|
|
432
|
+
GLOBAL = "GLOBAL",
|
|
433
|
+
SPECIFIC_ITEMS = "SPECIFIC_ITEMS",
|
|
434
|
+
SHIPPING = "SHIPPING"
|
|
435
|
+
}
|
|
436
|
+
/** @enumType */
|
|
437
|
+
type DiscountTypeWithLiterals = DiscountType | 'GLOBAL' | 'SPECIFIC_ITEMS' | 'SHIPPING';
|
|
438
|
+
interface Coupon {
|
|
439
|
+
/**
|
|
440
|
+
* Coupon ID.
|
|
441
|
+
* @maxLength 50
|
|
442
|
+
*/
|
|
443
|
+
_id?: string;
|
|
444
|
+
/**
|
|
445
|
+
* Coupon code.
|
|
446
|
+
* @maxLength 50
|
|
447
|
+
*/
|
|
448
|
+
code?: string;
|
|
449
|
+
/** Coupon value. */
|
|
450
|
+
amount?: MultiCurrencyPrice;
|
|
451
|
+
/**
|
|
452
|
+
* Coupon name.
|
|
453
|
+
* @maxLength 60
|
|
454
|
+
*/
|
|
455
|
+
name?: string;
|
|
456
|
+
}
|
|
457
|
+
interface MerchantDiscount {
|
|
458
|
+
/** Discount value. */
|
|
459
|
+
amount?: MultiCurrencyPrice;
|
|
460
|
+
/**
|
|
461
|
+
* Discount Percentage. Will be calculated from items price before other discounts.
|
|
462
|
+
* @min 1
|
|
463
|
+
* @max 100
|
|
464
|
+
*/
|
|
465
|
+
percentage?: number | null;
|
|
466
|
+
}
|
|
467
|
+
interface DiscountRule {
|
|
468
|
+
/**
|
|
469
|
+
* Discount rule ID
|
|
470
|
+
* @format GUID
|
|
471
|
+
*/
|
|
472
|
+
_id?: string;
|
|
473
|
+
/** Discount rule name */
|
|
474
|
+
name?: DiscountRuleName;
|
|
475
|
+
/** Discount value. */
|
|
476
|
+
amount?: MultiCurrencyPrice;
|
|
477
|
+
}
|
|
478
|
+
interface DiscountRuleName {
|
|
479
|
+
/**
|
|
480
|
+
* Original discount rule name (in site's default language).
|
|
481
|
+
* @minLength 1
|
|
482
|
+
* @maxLength 256
|
|
483
|
+
*/
|
|
484
|
+
original?: string;
|
|
485
|
+
/**
|
|
486
|
+
* Translated discount rule name according to buyer language. Defaults to `original` when not provided.
|
|
487
|
+
* @minLength 1
|
|
488
|
+
* @maxLength 500
|
|
489
|
+
*/
|
|
490
|
+
translated?: string | null;
|
|
491
|
+
}
|
|
425
492
|
interface CartAbandonedEvent {
|
|
426
493
|
/** @format GUID */
|
|
427
494
|
cartId?: string;
|
|
@@ -1288,16 +1355,12 @@ interface AbandonedCheckoutSearchSpec extends SearchSpec {
|
|
|
1288
1355
|
wql: [
|
|
1289
1356
|
{
|
|
1290
1357
|
operators: ['$hasAll', '$hasSome'];
|
|
1291
|
-
fields: ['activities.type'];
|
|
1358
|
+
fields: ['activities.type', 'appliedDiscounts.coupon.code'];
|
|
1292
1359
|
sort: 'NONE';
|
|
1293
1360
|
},
|
|
1294
1361
|
{
|
|
1295
1362
|
operators: '*';
|
|
1296
|
-
fields: [
|
|
1297
|
-
'contactDetails.firstName',
|
|
1298
|
-
'contactDetails.lastName',
|
|
1299
|
-
'couponCode'
|
|
1300
|
-
];
|
|
1363
|
+
fields: ['contactDetails.firstName', 'contactDetails.lastName'];
|
|
1301
1364
|
sort: 'NONE';
|
|
1302
1365
|
},
|
|
1303
1366
|
{
|
|
@@ -1387,17 +1450,6 @@ type AbandonedCheckoutSearch = {
|
|
|
1387
1450
|
fuzzy?: NonNullable<CommonSearchWithEntityContext['search']>['fuzzy'];
|
|
1388
1451
|
};
|
|
1389
1452
|
};
|
|
1390
|
-
/**
|
|
1391
|
-
* Adds a new abandoned checkout activity.
|
|
1392
|
-
* @param abandonedCheckoutId - Id of the abandoned checkout to update
|
|
1393
|
-
* @internal
|
|
1394
|
-
* @documentationMaturity preview
|
|
1395
|
-
* @requiredField abandonedCheckoutId
|
|
1396
|
-
* @permissionId ECOM.ABANDONED_CHECKOUT_UPDATE
|
|
1397
|
-
* @applicableIdentity APP
|
|
1398
|
-
* @fqn wix.ecom.abandoned_checkout.api.v1.AbandonedCheckoutService.AddAbandonedCheckoutActivity
|
|
1399
|
-
*/
|
|
1400
|
-
declare function addAbandonedCheckoutActivity(abandonedCheckoutId: string, options?: AddAbandonedCheckoutActivityOptions): Promise<NonNullablePaths<AddAbandonedCheckoutActivityResponse, `abandonedCheckout._id` | `abandonedCheckout.status` | `abandonedCheckout.buyerInfo.visitorId` | `abandonedCheckout.buyerInfo.memberId` | `abandonedCheckout.buyerInfo.userId` | `abandonedCheckout.contactDetails.vatId._id` | `abandonedCheckout.contactDetails.vatId.type` | `abandonedCheckout.currency` | `abandonedCheckout.totalPrice.amount` | `abandonedCheckout.totalPrice.convertedAmount` | `abandonedCheckout.totalPrice.formattedAmount` | `abandonedCheckout.totalPrice.formattedConvertedAmount` | `abandonedCheckout.activities` | `abandonedCheckout.activities.${number}.type` | `abandonedCheckout.checkoutUrl`, 5>>;
|
|
1401
1453
|
interface AddAbandonedCheckoutActivityOptions {
|
|
1402
1454
|
/** The type of the activity to add */
|
|
1403
1455
|
activityType?: ActivityTypeWithLiterals;
|
|
@@ -1413,4 +1465,4 @@ interface AddAbandonedCheckoutActivityOptions {
|
|
|
1413
1465
|
*/
|
|
1414
1466
|
declare function redirectToCheckout(abandonedCheckoutId: string, metasiteId: string): Promise<NonNullablePaths<RawHttpResponse, `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`, 4>>;
|
|
1415
1467
|
|
|
1416
|
-
export { type
|
|
1468
|
+
export { type ApplicationError as $, type AbandonedCheckout as A, type BulkDeleteAbandonedCheckoutsResponse as B, CommonSortOrder as C, DescriptionLineType as D, type MerchantDiscount as E, type FullAddressContactDetails as F, type DiscountRule as G, type DiscountRuleName as H, Identity as I, type CartAbandonedEvent as J, type BuyerInfo as K, type LineItem as L, Mode as M, type CartRecoveredEvent as N, type AbandonedCheckoutRecovered as O, type ProductName as P, type GetAbandonedCheckoutRequest as Q, type RawHttpResponse as R, type SearchAbandonedCheckoutsResponse as S, type Totals as T, type GetAbandonedCheckoutResponse as U, VatType as V, WebhookIdentityType as W, type DeleteAbandonedCheckoutRequest as X, type DeleteAbandonedCheckoutResponse as Y, type BulkDeleteAbandonedCheckoutsRequest as Z, type ItemMetadata as _, type AbandonedCheckoutsQueryBuilder as a, deleteAbandonedCheckout as a$, type BulkAbandonedCheckoutResult as a0, type BulkActionMetadata as a1, type QueryAbandonedCheckoutsRequest as a2, type QueryV2 as a3, type QueryV2PagingMethodOneOf as a4, type Sorting as a5, type Paging as a6, type CursorPaging as a7, type QueryAbandonedCheckoutsResponse as a8, type PagingMetadataV2 as a9, type EntityDeletedEvent as aA, type ActionEvent as aB, type Empty as aC, type MessageEnvelope as aD, type IdentificationData as aE, type IdentificationDataIdOneOf as aF, type BaseEventMetadata as aG, type EventMetadata as aH, type AbandonedCheckoutsQueryResult as aI, type AbandonedCheckoutSearchSpec as aJ, type AddAbandonedCheckoutActivityOptions as aK, type ActivityTypeWithLiterals as aL, type StatusWithLiterals as aM, type VatTypeWithLiterals as aN, type DescriptionLineTypeWithLiterals as aO, type DiscountTypeWithLiterals as aP, type IdentityWithLiterals as aQ, type SortOrderWithLiterals as aR, type CommonSortOrderWithLiterals as aS, type ModeWithLiterals as aT, type WebhookIdentityTypeWithLiterals as aU, type CommonSearchWithEntityContext as aV, onAbandonedCheckoutCreated as aW, onAbandonedCheckoutDeleted as aX, onAbandonedCheckoutRecovered as aY, onAbandonedCheckoutUpdated as aZ, getAbandonedCheckout as a_, type Cursors as aa, type SearchAbandonedCheckoutsRequest as ab, type Search as ac, type SearchPagingMethodOneOf as ad, type CommonSorting as ae, type SearchDetails as af, type CommonPaging as ag, type CommonCursorPaging as ah, type CommonPagingMetadataV2 as ai, type CommonCursors as aj, type AddAbandonedCheckoutActivityRequest as ak, type AddAbandonedCheckoutActivityResponse as al, type Task as am, type TaskKey as an, type TaskAction as ao, type TaskActionActionOneOf as ap, type Complete as aq, type Cancel as ar, type Reschedule as as, type RedirectToCheckoutRequest as at, type HeadersEntry as au, type DomainEvent as av, type DomainEventBodyOneOf as aw, type EntityCreatedEvent as ax, type RestoreInfo as ay, type EntityUpdatedEvent as az, type AbandonedCheckoutSearch as b, bulkDeleteAbandonedCheckouts as b0, queryAbandonedCheckouts as b1, redirectToCheckout as b2, type AbandonedCheckoutCreatedEnvelope as c, type AbandonedCheckoutDeletedEnvelope as d, type AbandonedCheckoutRecoveredEnvelope as e, type AbandonedCheckoutUpdatedEnvelope as f, ActivityType as g, Status as h, DiscountType as i, SortOrder as j, type V1BuyerInfo as k, type V1BuyerInfoIdOneOf as l, type VatId as m, type MultiCurrencyPrice as n, type Activity as o, type CatalogReference as p, type DescriptionLine as q, type DescriptionLineValueOneOf as r, type DescriptionLineDescriptionLineValueOneOf as s, type DescriptionLineName as t, type PlainTextValue as u, type Color as v, type PhysicalProperties as w, type AppliedDiscount as x, type AppliedDiscountDiscountSourceOneOf as y, type Coupon 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 AbandonedCheckoutsQueryBuilder, b as AbandonedCheckoutSearch, S as SearchAbandonedCheckoutsResponse, R as RawHttpResponse, c as AbandonedCheckoutCreatedEnvelope, d as AbandonedCheckoutDeletedEnvelope, e as AbandonedCheckoutRecoveredEnvelope, f as AbandonedCheckoutUpdatedEnvelope } from './ecom-v1-abandoned-checkout-abandoned-checkouts.universal-
|
|
3
|
-
export {
|
|
2
|
+
import { A as AbandonedCheckout, B as BulkDeleteAbandonedCheckoutsResponse, a as AbandonedCheckoutsQueryBuilder, b as AbandonedCheckoutSearch, S as SearchAbandonedCheckoutsResponse, R as RawHttpResponse, c as AbandonedCheckoutCreatedEnvelope, d as AbandonedCheckoutDeletedEnvelope, e as AbandonedCheckoutRecoveredEnvelope, f as AbandonedCheckoutUpdatedEnvelope } from './ecom-v1-abandoned-checkout-abandoned-checkouts.universal-C8oWIE96.js';
|
|
3
|
+
export { O as AbandonedCheckoutRecovered, aJ as AbandonedCheckoutSearchSpec, aI as AbandonedCheckoutsQueryResult, aB as ActionEvent, o as Activity, g as ActivityType, aL as ActivityTypeWithLiterals, aK as AddAbandonedCheckoutActivityOptions, ak as AddAbandonedCheckoutActivityRequest, al as AddAbandonedCheckoutActivityResponse, $ as ApplicationError, x as AppliedDiscount, y as AppliedDiscountDiscountSourceOneOf, aG as BaseEventMetadata, a0 as BulkAbandonedCheckoutResult, a1 as BulkActionMetadata, Z as BulkDeleteAbandonedCheckoutsRequest, K as BuyerInfo, ar as Cancel, J as CartAbandonedEvent, N as CartRecoveredEvent, p as CatalogReference, v as Color, ah as CommonCursorPaging, aj as CommonCursors, ag as CommonPaging, ai as CommonPagingMetadataV2, aV as CommonSearchWithEntityContext, C as CommonSortOrder, aS as CommonSortOrderWithLiterals, ae as CommonSorting, aq as Complete, z as Coupon, a7 as CursorPaging, aa as Cursors, X as DeleteAbandonedCheckoutRequest, Y as DeleteAbandonedCheckoutResponse, q as DescriptionLine, s as DescriptionLineDescriptionLineValueOneOf, t as DescriptionLineName, D as DescriptionLineType, aO as DescriptionLineTypeWithLiterals, r as DescriptionLineValueOneOf, G as DiscountRule, H as DiscountRuleName, i as DiscountType, aP as DiscountTypeWithLiterals, av as DomainEvent, aw as DomainEventBodyOneOf, aC as Empty, ax as EntityCreatedEvent, aA as EntityDeletedEvent, az as EntityUpdatedEvent, aH as EventMetadata, F as FullAddressContactDetails, Q as GetAbandonedCheckoutRequest, U as GetAbandonedCheckoutResponse, au as HeadersEntry, aE as IdentificationData, aF as IdentificationDataIdOneOf, I as Identity, aQ as IdentityWithLiterals, _ as ItemMetadata, L as LineItem, E as MerchantDiscount, aD as MessageEnvelope, M as Mode, aT as ModeWithLiterals, n as MultiCurrencyPrice, a6 as Paging, a9 as PagingMetadataV2, w as PhysicalProperties, u as PlainTextValue, P as ProductName, a2 as QueryAbandonedCheckoutsRequest, a8 as QueryAbandonedCheckoutsResponse, a3 as QueryV2, a4 as QueryV2PagingMethodOneOf, at as RedirectToCheckoutRequest, as as Reschedule, ay as RestoreInfo, ac as Search, ab as SearchAbandonedCheckoutsRequest, af as SearchDetails, ad as SearchPagingMethodOneOf, j as SortOrder, aR as SortOrderWithLiterals, a5 as Sorting, h as Status, aM as StatusWithLiterals, am as Task, ao as TaskAction, ap as TaskActionActionOneOf, an as TaskKey, T as Totals, k as V1BuyerInfo, l as V1BuyerInfoIdOneOf, m as VatId, V as VatType, aN as VatTypeWithLiterals, W as WebhookIdentityType, aU as WebhookIdentityTypeWithLiterals } from './ecom-v1-abandoned-checkout-abandoned-checkouts.universal-C8oWIE96.js';
|
|
4
4
|
|
|
5
5
|
declare function getAbandonedCheckout$1(httpClient: HttpClient): GetAbandonedCheckoutSignature;
|
|
6
6
|
interface GetAbandonedCheckoutSignature {
|
package/build/cjs/index.js
CHANGED
|
@@ -23,6 +23,7 @@ __export(index_exports, {
|
|
|
23
23
|
ActivityType: () => ActivityType,
|
|
24
24
|
CommonSortOrder: () => CommonSortOrder,
|
|
25
25
|
DescriptionLineType: () => DescriptionLineType,
|
|
26
|
+
DiscountType: () => DiscountType,
|
|
26
27
|
Identity: () => Identity,
|
|
27
28
|
Mode: () => Mode,
|
|
28
29
|
SortOrder: () => SortOrder,
|
|
@@ -137,7 +138,10 @@ function getAbandonedCheckout(payload) {
|
|
|
137
138
|
{
|
|
138
139
|
transformFn: import_float.transformRESTFloatToSDKFloat,
|
|
139
140
|
paths: [
|
|
140
|
-
{ path: "abandonedCheckout.lineItems.physicalProperties.weight" }
|
|
141
|
+
{ path: "abandonedCheckout.lineItems.physicalProperties.weight" },
|
|
142
|
+
{
|
|
143
|
+
path: "abandonedCheckout.appliedDiscounts.merchantDiscount.percentage"
|
|
144
|
+
}
|
|
141
145
|
]
|
|
142
146
|
}
|
|
143
147
|
])
|
|
@@ -213,8 +217,12 @@ function queryAbandonedCheckouts(payload) {
|
|
|
213
217
|
transformFn: import_float.transformRESTFloatToSDKFloat,
|
|
214
218
|
paths: [
|
|
215
219
|
{ path: "results.lineItems.physicalProperties.weight" },
|
|
220
|
+
{ path: "results.appliedDiscounts.merchantDiscount.percentage" },
|
|
216
221
|
{
|
|
217
222
|
path: "abandonedCheckouts.lineItems.physicalProperties.weight"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
path: "abandonedCheckouts.appliedDiscounts.merchantDiscount.percentage"
|
|
218
226
|
}
|
|
219
227
|
]
|
|
220
228
|
}
|
|
@@ -252,6 +260,9 @@ function searchAbandonedCheckouts(payload) {
|
|
|
252
260
|
paths: [
|
|
253
261
|
{
|
|
254
262
|
path: "abandonedCheckouts.lineItems.physicalProperties.weight"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
path: "abandonedCheckouts.appliedDiscounts.merchantDiscount.percentage"
|
|
255
266
|
}
|
|
256
267
|
]
|
|
257
268
|
}
|
|
@@ -287,7 +298,10 @@ function addAbandonedCheckoutActivity(payload) {
|
|
|
287
298
|
{
|
|
288
299
|
transformFn: import_float.transformRESTFloatToSDKFloat,
|
|
289
300
|
paths: [
|
|
290
|
-
{ path: "abandonedCheckout.lineItems.physicalProperties.weight" }
|
|
301
|
+
{ path: "abandonedCheckout.lineItems.physicalProperties.weight" },
|
|
302
|
+
{
|
|
303
|
+
path: "abandonedCheckout.appliedDiscounts.merchantDiscount.percentage"
|
|
304
|
+
}
|
|
291
305
|
]
|
|
292
306
|
}
|
|
293
307
|
])
|
|
@@ -351,6 +365,12 @@ var DescriptionLineType = /* @__PURE__ */ ((DescriptionLineType2) => {
|
|
|
351
365
|
DescriptionLineType2["COLOR"] = "COLOR";
|
|
352
366
|
return DescriptionLineType2;
|
|
353
367
|
})(DescriptionLineType || {});
|
|
368
|
+
var DiscountType = /* @__PURE__ */ ((DiscountType2) => {
|
|
369
|
+
DiscountType2["GLOBAL"] = "GLOBAL";
|
|
370
|
+
DiscountType2["SPECIFIC_ITEMS"] = "SPECIFIC_ITEMS";
|
|
371
|
+
DiscountType2["SHIPPING"] = "SHIPPING";
|
|
372
|
+
return DiscountType2;
|
|
373
|
+
})(DiscountType || {});
|
|
354
374
|
var Identity = /* @__PURE__ */ ((Identity2) => {
|
|
355
375
|
Identity2["ADMIN"] = "ADMIN";
|
|
356
376
|
Identity2["MEMBER"] = "MEMBER";
|
|
@@ -683,7 +703,10 @@ var onAbandonedCheckoutCreated = (0, import_sdk_types.EventDefinition)(
|
|
|
683
703
|
},
|
|
684
704
|
{
|
|
685
705
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
686
|
-
paths: [
|
|
706
|
+
paths: [
|
|
707
|
+
{ path: "entity.lineItems.physicalProperties.weight" },
|
|
708
|
+
{ path: "entity.appliedDiscounts.merchantDiscount.percentage" }
|
|
709
|
+
]
|
|
687
710
|
}
|
|
688
711
|
])
|
|
689
712
|
)
|
|
@@ -709,7 +732,10 @@ var onAbandonedCheckoutDeleted = (0, import_sdk_types.EventDefinition)(
|
|
|
709
732
|
},
|
|
710
733
|
{
|
|
711
734
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
712
|
-
paths: [
|
|
735
|
+
paths: [
|
|
736
|
+
{ path: "undefined.lineItems.physicalProperties.weight" },
|
|
737
|
+
{ path: "undefined.appliedDiscounts.merchantDiscount.percentage" }
|
|
738
|
+
]
|
|
713
739
|
}
|
|
714
740
|
])
|
|
715
741
|
)
|
|
@@ -738,6 +764,9 @@ var onAbandonedCheckoutRecovered = (0, import_sdk_types.EventDefinition)(
|
|
|
738
764
|
paths: [
|
|
739
765
|
{
|
|
740
766
|
path: "data.abandonedCheckout.lineItems.physicalProperties.weight"
|
|
767
|
+
},
|
|
768
|
+
{
|
|
769
|
+
path: "data.abandonedCheckout.appliedDiscounts.merchantDiscount.percentage"
|
|
741
770
|
}
|
|
742
771
|
]
|
|
743
772
|
}
|
|
@@ -765,7 +794,10 @@ var onAbandonedCheckoutUpdated = (0, import_sdk_types.EventDefinition)(
|
|
|
765
794
|
},
|
|
766
795
|
{
|
|
767
796
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
768
|
-
paths: [
|
|
797
|
+
paths: [
|
|
798
|
+
{ path: "entity.lineItems.physicalProperties.weight" },
|
|
799
|
+
{ path: "entity.appliedDiscounts.merchantDiscount.percentage" }
|
|
800
|
+
]
|
|
769
801
|
}
|
|
770
802
|
])
|
|
771
803
|
)
|
|
@@ -798,6 +830,7 @@ var onAbandonedCheckoutUpdated2 = (0, import_event_definition_modules.createEven
|
|
|
798
830
|
ActivityType,
|
|
799
831
|
CommonSortOrder,
|
|
800
832
|
DescriptionLineType,
|
|
833
|
+
DiscountType,
|
|
801
834
|
Identity,
|
|
802
835
|
Mode,
|
|
803
836
|
SortOrder,
|