@wix/auto_sdk_ecom_abandoned-checkouts 1.0.34 → 1.0.35
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-DYTDdTC1.d.ts → ecom-v1-abandoned-checkout-abandoned-checkouts.universal-xMrPObPW.d.ts} +239 -1
- package/build/cjs/index.d.ts +2 -2
- package/build/cjs/index.js +134 -4
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +96 -4
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +3 -1
- package/build/cjs/meta.js +54 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/{ecom-v1-abandoned-checkout-abandoned-checkouts.universal-DYTDdTC1.d.mts → ecom-v1-abandoned-checkout-abandoned-checkouts.universal-xMrPObPW.d.mts} +239 -1
- package/build/es/index.d.mts +2 -2
- package/build/es/index.mjs +133 -4
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +95 -4
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +3 -1
- package/build/es/meta.mjs +54 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/{ecom-v1-abandoned-checkout-abandoned-checkouts.universal-BAXrS7lF.d.ts → ecom-v1-abandoned-checkout-abandoned-checkouts.universal-kgaKuR8n.d.ts} +258 -1
- package/build/internal/cjs/index.d.ts +2 -2
- package/build/internal/cjs/index.js +134 -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 +96 -4
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +3 -1
- package/build/internal/cjs/meta.js +54 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/{ecom-v1-abandoned-checkout-abandoned-checkouts.universal-BAXrS7lF.d.mts → ecom-v1-abandoned-checkout-abandoned-checkouts.universal-kgaKuR8n.d.mts} +258 -1
- package/build/internal/es/index.d.mts +2 -2
- package/build/internal/es/index.mjs +133 -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 +95 -4
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +3 -1
- package/build/internal/es/meta.mjs +54 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -46,6 +46,8 @@ interface AbandonedCheckout {
|
|
|
46
46
|
/**
|
|
47
47
|
* List of all automation activities performed by [Wix Automations](https://dev.wix.com/docs/rest/business-management/automations/introduction) regarding the abandoned checkout.
|
|
48
48
|
* Wix Automations updates the `activities` field for each activity 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).
|
|
49
|
+
* @maxSize 20
|
|
50
|
+
* @readonly
|
|
49
51
|
*/
|
|
50
52
|
activities?: Activity[];
|
|
51
53
|
/** Date and time the abandoned checkout was recovered. */
|
|
@@ -215,6 +217,190 @@ interface Activity {
|
|
|
215
217
|
*/
|
|
216
218
|
type?: ActivityTypeWithLiterals;
|
|
217
219
|
}
|
|
220
|
+
interface LineItem {
|
|
221
|
+
/**
|
|
222
|
+
* Line item ID.
|
|
223
|
+
* @format GUID
|
|
224
|
+
* @readonly
|
|
225
|
+
*/
|
|
226
|
+
_id?: string | null;
|
|
227
|
+
/**
|
|
228
|
+
* Item quantity.
|
|
229
|
+
* @min 1
|
|
230
|
+
* @max 100000
|
|
231
|
+
*/
|
|
232
|
+
quantity?: number;
|
|
233
|
+
/**
|
|
234
|
+
* Catalog and item reference. Holds IDs for the item and the catalog it came from, as well as further optional info.
|
|
235
|
+
* Optional for custom line items, which don't trigger the Catalog service plugin.
|
|
236
|
+
*/
|
|
237
|
+
catalogReference?: CatalogReference;
|
|
238
|
+
/**
|
|
239
|
+
* Item name.
|
|
240
|
+
* + Stores - `product.name`
|
|
241
|
+
* + Bookings - `service.info.name`
|
|
242
|
+
* + Events - `ticket.name`
|
|
243
|
+
* @readonly
|
|
244
|
+
*/
|
|
245
|
+
productName?: ProductName;
|
|
246
|
+
/**
|
|
247
|
+
* Item price **after** catalog-defined discount and line item discounts.
|
|
248
|
+
* @readonly
|
|
249
|
+
*/
|
|
250
|
+
price?: MultiCurrencyPrice;
|
|
251
|
+
/**
|
|
252
|
+
* Item price **before** line item discounts and **after** catalog-defined discount. Defaults to `price` when not provided.
|
|
253
|
+
* @readonly
|
|
254
|
+
*/
|
|
255
|
+
priceBeforeDiscounts?: MultiCurrencyPrice;
|
|
256
|
+
/**
|
|
257
|
+
* Line item description lines. Used for displaying the cart, checkout and order.
|
|
258
|
+
* @maxSize 300
|
|
259
|
+
* @readonly
|
|
260
|
+
*/
|
|
261
|
+
descriptionLines?: DescriptionLine[];
|
|
262
|
+
/**
|
|
263
|
+
* Line item image details.
|
|
264
|
+
* @readonly
|
|
265
|
+
*/
|
|
266
|
+
image?: string;
|
|
267
|
+
/**
|
|
268
|
+
* Physical properties of the item. When relevant, contains information such as SKU, item weight, and shippability.
|
|
269
|
+
* @readonly
|
|
270
|
+
*/
|
|
271
|
+
physicalProperties?: PhysicalProperties;
|
|
272
|
+
}
|
|
273
|
+
/** Used for grouping line items. Sent when an item is added to a cart, checkout, or order. */
|
|
274
|
+
interface CatalogReference {
|
|
275
|
+
/**
|
|
276
|
+
* ID of the item within the catalog it belongs to.
|
|
277
|
+
* @minLength 1
|
|
278
|
+
* @maxLength 36
|
|
279
|
+
*/
|
|
280
|
+
catalogItemId?: string;
|
|
281
|
+
/**
|
|
282
|
+
* ID of the app providing the catalog.
|
|
283
|
+
*
|
|
284
|
+
* You can get your app's ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/).
|
|
285
|
+
*
|
|
286
|
+
* For items from Wix catalogs, the following values always apply:
|
|
287
|
+
* + Wix Stores: `"215238eb-22a5-4c36-9e7b-e7c08025e04e"`
|
|
288
|
+
* + Wix Bookings: `"13d21c63-b5ec-5912-8397-c3a5ddb27a97"`
|
|
289
|
+
* + Wix Restaurants: `"9a5d83fd-8570-482e-81ab-cfa88942ee60"`
|
|
290
|
+
* @minLength 1
|
|
291
|
+
*/
|
|
292
|
+
appId?: string;
|
|
293
|
+
/**
|
|
294
|
+
* Additional item details in key:value pairs. Use this optional field to provide more specificity with item selection. The `options` field values differ depending on which catalog is providing the items.
|
|
295
|
+
*
|
|
296
|
+
* For products and variants from a Wix Stores catalog, learn more about eCommerce integration ([SDK](https://dev.wix.com/docs/sdk/backend-modules/stores/catalog-v3/e-commerce-integration) | [REST](https://dev.wix.com/docs/rest/business-solutions/stores/catalog/e-commerce-integration)).
|
|
297
|
+
*/
|
|
298
|
+
options?: Record<string, any> | null;
|
|
299
|
+
}
|
|
300
|
+
interface ProductName {
|
|
301
|
+
/**
|
|
302
|
+
* __Required.__ Item name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
|
|
303
|
+
*
|
|
304
|
+
* Min: 1 character.
|
|
305
|
+
* Max: 200 characters.
|
|
306
|
+
* @minLength 1
|
|
307
|
+
* @maxLength 200
|
|
308
|
+
*/
|
|
309
|
+
original?: string;
|
|
310
|
+
/**
|
|
311
|
+
* Item name translated into the buyer's language.
|
|
312
|
+
*
|
|
313
|
+
* Min: 1 character.
|
|
314
|
+
* Max: 400 characters.
|
|
315
|
+
* Default: Same as `original`.
|
|
316
|
+
* @minLength 1
|
|
317
|
+
* @maxLength 400
|
|
318
|
+
*/
|
|
319
|
+
translated?: string | null;
|
|
320
|
+
}
|
|
321
|
+
interface DescriptionLine extends DescriptionLineValueOneOf, DescriptionLineDescriptionLineValueOneOf {
|
|
322
|
+
/** Description line plain text value. */
|
|
323
|
+
plainText?: PlainTextValue;
|
|
324
|
+
/** Description line color value. */
|
|
325
|
+
colorInfo?: Color;
|
|
326
|
+
/** Description line name. */
|
|
327
|
+
name?: DescriptionLineName;
|
|
328
|
+
}
|
|
329
|
+
/** @oneof */
|
|
330
|
+
interface DescriptionLineValueOneOf {
|
|
331
|
+
/** Description line plain text value. */
|
|
332
|
+
plainText?: PlainTextValue;
|
|
333
|
+
/** Description line color value. */
|
|
334
|
+
colorInfo?: Color;
|
|
335
|
+
}
|
|
336
|
+
/** @oneof */
|
|
337
|
+
interface DescriptionLineDescriptionLineValueOneOf {
|
|
338
|
+
}
|
|
339
|
+
interface DescriptionLineName {
|
|
340
|
+
/**
|
|
341
|
+
* Description line name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
|
|
342
|
+
* @maxLength 100
|
|
343
|
+
*/
|
|
344
|
+
original?: string;
|
|
345
|
+
/**
|
|
346
|
+
* Description line name translated into the buyer's language.
|
|
347
|
+
*
|
|
348
|
+
* Default: Same as `original`.
|
|
349
|
+
* @maxLength 200
|
|
350
|
+
*/
|
|
351
|
+
translated?: string | null;
|
|
352
|
+
}
|
|
353
|
+
interface PlainTextValue {
|
|
354
|
+
/**
|
|
355
|
+
* Description line plain text value in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
|
|
356
|
+
* @maxLength 600
|
|
357
|
+
*/
|
|
358
|
+
original?: string;
|
|
359
|
+
/**
|
|
360
|
+
* Description line plain text value translated into the buyer's language.
|
|
361
|
+
*
|
|
362
|
+
* Default: Same as `original`.
|
|
363
|
+
* @maxLength 600
|
|
364
|
+
*/
|
|
365
|
+
translated?: string | null;
|
|
366
|
+
}
|
|
367
|
+
interface Color {
|
|
368
|
+
/**
|
|
369
|
+
* Description line color name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
|
|
370
|
+
* @maxLength 500
|
|
371
|
+
*/
|
|
372
|
+
original?: string;
|
|
373
|
+
/**
|
|
374
|
+
* Description line color name translated into the buyer's language.
|
|
375
|
+
*
|
|
376
|
+
* Default: Same as `original`.
|
|
377
|
+
* @maxLength 500
|
|
378
|
+
*/
|
|
379
|
+
translated?: string | null;
|
|
380
|
+
/** HEX or RGB color code for display. */
|
|
381
|
+
code?: string | null;
|
|
382
|
+
}
|
|
383
|
+
declare enum DescriptionLineType {
|
|
384
|
+
/** Unrecognized type. */
|
|
385
|
+
UNRECOGNISED = "UNRECOGNISED",
|
|
386
|
+
/** Plain text type. */
|
|
387
|
+
PLAIN_TEXT = "PLAIN_TEXT",
|
|
388
|
+
/** Color type. */
|
|
389
|
+
COLOR = "COLOR"
|
|
390
|
+
}
|
|
391
|
+
/** @enumType */
|
|
392
|
+
type DescriptionLineTypeWithLiterals = DescriptionLineType | 'UNRECOGNISED' | 'PLAIN_TEXT' | 'COLOR';
|
|
393
|
+
interface PhysicalProperties {
|
|
394
|
+
/** Line item weight. Measurement unit matches the weight unit specified in `weightUnit` in the request. */
|
|
395
|
+
weight?: number | null;
|
|
396
|
+
/**
|
|
397
|
+
* Stock-keeping unit. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku).
|
|
398
|
+
* @maxLength 40
|
|
399
|
+
*/
|
|
400
|
+
sku?: string | null;
|
|
401
|
+
/** Whether this line item is shippable. */
|
|
402
|
+
shippable?: boolean;
|
|
403
|
+
}
|
|
218
404
|
interface CartAbandonedEvent {
|
|
219
405
|
/** @format GUID */
|
|
220
406
|
cartId?: string;
|
|
@@ -336,6 +522,58 @@ interface DeleteAbandonedCheckoutRequest {
|
|
|
336
522
|
}
|
|
337
523
|
interface DeleteAbandonedCheckoutResponse {
|
|
338
524
|
}
|
|
525
|
+
interface BulkDeleteAbandonedCheckoutsRequest {
|
|
526
|
+
/**
|
|
527
|
+
* Abandoned checkout IDs to be deleted.
|
|
528
|
+
* @minSize 1
|
|
529
|
+
* @maxSize 100
|
|
530
|
+
* @format GUID
|
|
531
|
+
*/
|
|
532
|
+
abandonedCheckoutIds?: string[];
|
|
533
|
+
}
|
|
534
|
+
interface BulkDeleteAbandonedCheckoutsResponse {
|
|
535
|
+
/**
|
|
536
|
+
* Results of the bulk delete operation.
|
|
537
|
+
* @minSize 1
|
|
538
|
+
* @maxSize 100
|
|
539
|
+
*/
|
|
540
|
+
results?: BulkAbandonedCheckoutResult[];
|
|
541
|
+
/** Metadata about the bulk action. */
|
|
542
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
543
|
+
}
|
|
544
|
+
interface ItemMetadata {
|
|
545
|
+
/**
|
|
546
|
+
* Item ID. Provided only whenever possible. For example, `itemId` can't be provided when item creation has failed.
|
|
547
|
+
* @format GUID
|
|
548
|
+
*/
|
|
549
|
+
_id?: string | null;
|
|
550
|
+
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
551
|
+
originalIndex?: number;
|
|
552
|
+
/** Whether the requested action for this item was successful. When `false`, the `error` field is returned. */
|
|
553
|
+
success?: boolean;
|
|
554
|
+
/** Details about the error in case of failure. */
|
|
555
|
+
error?: ApplicationError;
|
|
556
|
+
}
|
|
557
|
+
interface ApplicationError {
|
|
558
|
+
/** Error code. */
|
|
559
|
+
code?: string;
|
|
560
|
+
/** Description of the error. */
|
|
561
|
+
description?: string;
|
|
562
|
+
/** Data related to the error. */
|
|
563
|
+
data?: Record<string, any> | null;
|
|
564
|
+
}
|
|
565
|
+
interface BulkAbandonedCheckoutResult {
|
|
566
|
+
/** ID of the abandoned checkout that was deleted. */
|
|
567
|
+
itemMetadata?: ItemMetadata;
|
|
568
|
+
}
|
|
569
|
+
interface BulkActionMetadata {
|
|
570
|
+
/** Number of items that were successfully processed. */
|
|
571
|
+
totalSuccesses?: number;
|
|
572
|
+
/** Number of items that couldn't be processed. */
|
|
573
|
+
totalFailures?: number;
|
|
574
|
+
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
575
|
+
undetailedFailures?: number;
|
|
576
|
+
}
|
|
339
577
|
interface QueryAbandonedCheckoutsRequest {
|
|
340
578
|
/** Query options. */
|
|
341
579
|
query: QueryV2;
|
|
@@ -1128,4 +1366,4 @@ interface AddAbandonedCheckoutActivityOptions {
|
|
|
1128
1366
|
*/
|
|
1129
1367
|
declare function redirectToCheckout(abandonedCheckoutId: string, metasiteId: string): Promise<NonNullablePaths<RawHttpResponse, `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`, 4>>;
|
|
1130
1368
|
|
|
1131
|
-
export { type
|
|
1369
|
+
export { type Paging as $, type AbandonedCheckout as A, type BuyerInfo as B, CommonSortOrder as C, DescriptionLineType as D, type DeleteAbandonedCheckoutRequest as E, type FullAddressContactDetails as F, type GetAbandonedCheckoutRequest as G, type DeleteAbandonedCheckoutResponse as H, Identity as I, type BulkDeleteAbandonedCheckoutsRequest as J, type BulkDeleteAbandonedCheckoutsResponse as K, type LineItem as L, Mode as M, type ItemMetadata as N, type ApplicationError as O, type ProductName as P, type BulkAbandonedCheckoutResult as Q, type RawHttpResponse as R, type SearchAbandonedCheckoutsResponse as S, type Totals as T, type BulkActionMetadata as U, VatType as V, WebhookIdentityType as W, type QueryAbandonedCheckoutsRequest as X, type QueryV2 as Y, type QueryV2PagingMethodOneOf as Z, type Sorting as _, type AbandonedCheckoutsQueryBuilder as a, type CursorPaging as a0, type QueryAbandonedCheckoutsResponse as a1, type PagingMetadataV2 as a2, type Cursors as a3, type SearchAbandonedCheckoutsRequest as a4, type Search as a5, type SearchPagingMethodOneOf as a6, type CommonSorting as a7, type SearchDetails as a8, type CommonPaging as a9, type EventMetadata as aA, type AbandonedCheckoutsQueryResult as aB, type AbandonedCheckoutSearchSpec as aC, type AddAbandonedCheckoutActivityOptions as aD, type ActivityTypeWithLiterals as aE, type StatusWithLiterals as aF, type VatTypeWithLiterals as aG, type DescriptionLineTypeWithLiterals as aH, type IdentityWithLiterals as aI, type SortOrderWithLiterals as aJ, type CommonSortOrderWithLiterals as aK, type ModeWithLiterals as aL, type WebhookIdentityTypeWithLiterals as aM, type CommonSearchWithEntityContext as aN, onAbandonedCheckoutCreated as aO, onAbandonedCheckoutDeleted as aP, onAbandonedCheckoutRecovered as aQ, onAbandonedCheckoutUpdated as aR, getAbandonedCheckout as aS, deleteAbandonedCheckout as aT, queryAbandonedCheckouts as aU, redirectToCheckout as aV, type CommonCursorPaging as aa, type CommonPagingMetadataV2 as ab, type CommonCursors as ac, type AddAbandonedCheckoutActivityRequest as ad, type AddAbandonedCheckoutActivityResponse as ae, type Task as af, type TaskKey as ag, type TaskAction as ah, type TaskActionActionOneOf as ai, type Complete as aj, type Cancel as ak, type Reschedule as al, type RedirectToCheckoutRequest as am, type HeadersEntry as an, type DomainEvent as ao, type DomainEventBodyOneOf as ap, type EntityCreatedEvent as aq, type RestoreInfo as ar, type EntityUpdatedEvent as as, type EntityDeletedEvent as at, type ActionEvent as au, type Empty as av, type MessageEnvelope as aw, type IdentificationData as ax, type IdentificationDataIdOneOf as ay, type BaseEventMetadata as az, type AbandonedCheckoutSearch as b, type AbandonedCheckoutCreatedEnvelope as c, type AbandonedCheckoutDeletedEnvelope as d, type AbandonedCheckoutRecoveredEnvelope as e, type AbandonedCheckoutUpdatedEnvelope as f, ActivityType as g, Status as h, SortOrder as i, type V1BuyerInfo as j, type V1BuyerInfoIdOneOf as k, type VatId as l, type MultiCurrencyPrice as m, type Activity as n, type CatalogReference as o, type DescriptionLine as p, type DescriptionLineValueOneOf as q, type DescriptionLineDescriptionLineValueOneOf as r, type DescriptionLineName as s, type PlainTextValue as t, type Color as u, type PhysicalProperties as v, type CartAbandonedEvent as w, type CartRecoveredEvent as x, type AbandonedCheckoutRecovered as y, type GetAbandonedCheckoutResponse 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, 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, 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-xMrPObPW.js';
|
|
3
|
+
export { y as AbandonedCheckoutRecovered, aC as AbandonedCheckoutSearchSpec, aB as AbandonedCheckoutsQueryResult, au as ActionEvent, n as Activity, g as ActivityType, aE as ActivityTypeWithLiterals, aD as AddAbandonedCheckoutActivityOptions, ad as AddAbandonedCheckoutActivityRequest, ae as AddAbandonedCheckoutActivityResponse, O as ApplicationError, az as BaseEventMetadata, Q as BulkAbandonedCheckoutResult, U as BulkActionMetadata, J as BulkDeleteAbandonedCheckoutsRequest, K as BulkDeleteAbandonedCheckoutsResponse, B as BuyerInfo, ak as Cancel, w as CartAbandonedEvent, x as CartRecoveredEvent, o as CatalogReference, u as Color, aa as CommonCursorPaging, ac as CommonCursors, a9 as CommonPaging, ab as CommonPagingMetadataV2, aN as CommonSearchWithEntityContext, C as CommonSortOrder, aK as CommonSortOrderWithLiterals, a7 as CommonSorting, aj as Complete, a0 as CursorPaging, a3 as Cursors, E as DeleteAbandonedCheckoutRequest, H as DeleteAbandonedCheckoutResponse, p as DescriptionLine, r as DescriptionLineDescriptionLineValueOneOf, s as DescriptionLineName, D as DescriptionLineType, aH as DescriptionLineTypeWithLiterals, q as DescriptionLineValueOneOf, ao as DomainEvent, ap as DomainEventBodyOneOf, av as Empty, aq as EntityCreatedEvent, at as EntityDeletedEvent, as as EntityUpdatedEvent, aA as EventMetadata, F as FullAddressContactDetails, G as GetAbandonedCheckoutRequest, z as GetAbandonedCheckoutResponse, an as HeadersEntry, ax as IdentificationData, ay as IdentificationDataIdOneOf, I as Identity, aI as IdentityWithLiterals, N as ItemMetadata, L as LineItem, aw as MessageEnvelope, M as Mode, aL as ModeWithLiterals, m as MultiCurrencyPrice, $ as Paging, a2 as PagingMetadataV2, v as PhysicalProperties, t as PlainTextValue, P as ProductName, X as QueryAbandonedCheckoutsRequest, a1 as QueryAbandonedCheckoutsResponse, Y as QueryV2, Z as QueryV2PagingMethodOneOf, am as RedirectToCheckoutRequest, al as Reschedule, ar as RestoreInfo, a5 as Search, a4 as SearchAbandonedCheckoutsRequest, a8 as SearchDetails, a6 as SearchPagingMethodOneOf, i as SortOrder, aJ as SortOrderWithLiterals, _ as Sorting, h as Status, aF as StatusWithLiterals, af as Task, ah as TaskAction, ai as TaskActionActionOneOf, ag as TaskKey, T as Totals, j as V1BuyerInfo, k as V1BuyerInfoIdOneOf, l as VatId, V as VatType, aG as VatTypeWithLiterals, W as WebhookIdentityType, aM as WebhookIdentityTypeWithLiterals } from './ecom-v1-abandoned-checkout-abandoned-checkouts.universal-xMrPObPW.js';
|
|
4
4
|
|
|
5
5
|
declare function getAbandonedCheckout$1(httpClient: HttpClient): GetAbandonedCheckoutSignature;
|
|
6
6
|
interface GetAbandonedCheckoutSignature {
|
package/build/cjs/index.js
CHANGED
|
@@ -22,6 +22,7 @@ var index_exports = {};
|
|
|
22
22
|
__export(index_exports, {
|
|
23
23
|
ActivityType: () => ActivityType,
|
|
24
24
|
CommonSortOrder: () => CommonSortOrder,
|
|
25
|
+
DescriptionLineType: () => DescriptionLineType,
|
|
25
26
|
Identity: () => Identity,
|
|
26
27
|
Mode: () => Mode,
|
|
27
28
|
SortOrder: () => SortOrder,
|
|
@@ -43,6 +44,8 @@ module.exports = __toCommonJS(index_exports);
|
|
|
43
44
|
|
|
44
45
|
// src/ecom-v1-abandoned-checkout-abandoned-checkouts.public.ts
|
|
45
46
|
var import_rename_all_nested_keys2 = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
47
|
+
var import_float2 = require("@wix/sdk-runtime/transformations/float");
|
|
48
|
+
var import_image2 = require("@wix/sdk-runtime/transformations/image");
|
|
46
49
|
var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
47
50
|
var import_transform_paths3 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
48
51
|
var import_sdk_types = require("@wix/sdk-types");
|
|
@@ -54,6 +57,7 @@ var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-
|
|
|
54
57
|
|
|
55
58
|
// src/ecom-v1-abandoned-checkout-abandoned-checkouts.http.ts
|
|
56
59
|
var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
|
|
60
|
+
var import_float = require("@wix/sdk-runtime/transformations/float");
|
|
57
61
|
var import_bytes = require("@wix/sdk-runtime/transformations/bytes");
|
|
58
62
|
var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
59
63
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
@@ -70,6 +74,10 @@ function resolveWixEcomAbandonedCheckoutApiV1AbandonedCheckoutServiceUrl(opts) {
|
|
|
70
74
|
{
|
|
71
75
|
srcPath: "/ecom/v1/abandoned-checkout",
|
|
72
76
|
destPath: "/v1/abandoned-checkout"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
srcPath: "/ecom/v1/bulk/abandoned-checkouts",
|
|
80
|
+
destPath: "/v1/bulk/abandoned-checkouts"
|
|
73
81
|
}
|
|
74
82
|
],
|
|
75
83
|
"manage._base_domain_": [
|
|
@@ -77,6 +85,26 @@ function resolveWixEcomAbandonedCheckoutApiV1AbandonedCheckoutServiceUrl(opts) {
|
|
|
77
85
|
srcPath: "/ecom/v1/abandoned-checkout",
|
|
78
86
|
destPath: "/v1/abandoned-checkout"
|
|
79
87
|
}
|
|
88
|
+
],
|
|
89
|
+
"*.dev.wix-code.com": [
|
|
90
|
+
{
|
|
91
|
+
srcPath: "/ecom/v1/abandoned-checkout",
|
|
92
|
+
destPath: "/v1/abandoned-checkout"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
srcPath: "/ecom/v1/bulk/abandoned-checkouts",
|
|
96
|
+
destPath: "/v1/bulk/abandoned-checkouts"
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
_: [
|
|
100
|
+
{
|
|
101
|
+
srcPath: "/ecom/v1/abandoned-checkout",
|
|
102
|
+
destPath: "/v1/abandoned-checkout"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
srcPath: "/ecom/v1/bulk/abandoned-checkouts",
|
|
106
|
+
destPath: "/v1/bulk/abandoned-checkouts"
|
|
107
|
+
}
|
|
80
108
|
]
|
|
81
109
|
};
|
|
82
110
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
@@ -104,6 +132,12 @@ function getAbandonedCheckout(payload) {
|
|
|
104
132
|
{ path: "abandonedCheckout.checkoutRecoveredDate" },
|
|
105
133
|
{ path: "abandonedCheckout.activities.createdDate" }
|
|
106
134
|
]
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
transformFn: import_float.transformRESTFloatToSDKFloat,
|
|
138
|
+
paths: [
|
|
139
|
+
{ path: "abandonedCheckout.lineItems.physicalProperties.weight" }
|
|
140
|
+
]
|
|
107
141
|
}
|
|
108
142
|
])
|
|
109
143
|
};
|
|
@@ -155,6 +189,15 @@ function queryAbandonedCheckouts(payload) {
|
|
|
155
189
|
{ path: "abandonedCheckouts.checkoutRecoveredDate" },
|
|
156
190
|
{ path: "abandonedCheckouts.activities.createdDate" }
|
|
157
191
|
]
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
transformFn: import_float.transformRESTFloatToSDKFloat,
|
|
195
|
+
paths: [
|
|
196
|
+
{ path: "results.lineItems.physicalProperties.weight" },
|
|
197
|
+
{
|
|
198
|
+
path: "abandonedCheckouts.lineItems.physicalProperties.weight"
|
|
199
|
+
}
|
|
200
|
+
]
|
|
158
201
|
}
|
|
159
202
|
])
|
|
160
203
|
};
|
|
@@ -184,6 +227,14 @@ function searchAbandonedCheckouts(payload) {
|
|
|
184
227
|
{ path: "abandonedCheckouts.checkoutRecoveredDate" },
|
|
185
228
|
{ path: "abandonedCheckouts.activities.createdDate" }
|
|
186
229
|
]
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
transformFn: import_float.transformRESTFloatToSDKFloat,
|
|
233
|
+
paths: [
|
|
234
|
+
{
|
|
235
|
+
path: "abandonedCheckouts.lineItems.physicalProperties.weight"
|
|
236
|
+
}
|
|
237
|
+
]
|
|
187
238
|
}
|
|
188
239
|
])
|
|
189
240
|
};
|
|
@@ -213,6 +264,12 @@ function addAbandonedCheckoutActivity(payload) {
|
|
|
213
264
|
{ path: "abandonedCheckout.checkoutRecoveredDate" },
|
|
214
265
|
{ path: "abandonedCheckout.activities.createdDate" }
|
|
215
266
|
]
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
transformFn: import_float.transformRESTFloatToSDKFloat,
|
|
270
|
+
paths: [
|
|
271
|
+
{ path: "abandonedCheckout.lineItems.physicalProperties.weight" }
|
|
272
|
+
]
|
|
216
273
|
}
|
|
217
274
|
])
|
|
218
275
|
};
|
|
@@ -246,6 +303,7 @@ function redirectToCheckout(payload) {
|
|
|
246
303
|
}
|
|
247
304
|
|
|
248
305
|
// src/ecom-v1-abandoned-checkout-abandoned-checkouts.universal.ts
|
|
306
|
+
var import_image = require("@wix/sdk-runtime/transformations/image");
|
|
249
307
|
var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
250
308
|
var ActivityType = /* @__PURE__ */ ((ActivityType2) => {
|
|
251
309
|
ActivityType2["UNKNOWN_TYPE"] = "UNKNOWN_TYPE";
|
|
@@ -267,6 +325,12 @@ var VatType = /* @__PURE__ */ ((VatType2) => {
|
|
|
267
325
|
VatType2["CNPJ"] = "CNPJ";
|
|
268
326
|
return VatType2;
|
|
269
327
|
})(VatType || {});
|
|
328
|
+
var DescriptionLineType = /* @__PURE__ */ ((DescriptionLineType2) => {
|
|
329
|
+
DescriptionLineType2["UNRECOGNISED"] = "UNRECOGNISED";
|
|
330
|
+
DescriptionLineType2["PLAIN_TEXT"] = "PLAIN_TEXT";
|
|
331
|
+
DescriptionLineType2["COLOR"] = "COLOR";
|
|
332
|
+
return DescriptionLineType2;
|
|
333
|
+
})(DescriptionLineType || {});
|
|
270
334
|
var Identity = /* @__PURE__ */ ((Identity2) => {
|
|
271
335
|
Identity2["ADMIN"] = "ADMIN";
|
|
272
336
|
Identity2["MEMBER"] = "MEMBER";
|
|
@@ -307,7 +371,14 @@ async function getAbandonedCheckout2(abandonedCheckoutId) {
|
|
|
307
371
|
try {
|
|
308
372
|
const result = await httpClient.request(reqOpts);
|
|
309
373
|
sideEffects?.onSuccess?.(result);
|
|
310
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
374
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
375
|
+
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
376
|
+
{
|
|
377
|
+
transformFn: import_image.transformRESTImageToSDKImage,
|
|
378
|
+
paths: [{ path: "abandonedCheckout.lineItems.image" }]
|
|
379
|
+
}
|
|
380
|
+
])
|
|
381
|
+
)?.abandonedCheckout;
|
|
311
382
|
} catch (err) {
|
|
312
383
|
const transformedError = (0, import_transform_error.transformError)(
|
|
313
384
|
err,
|
|
@@ -372,7 +443,15 @@ function queryAbandonedCheckouts2() {
|
|
|
372
443
|
data
|
|
373
444
|
}) => {
|
|
374
445
|
const transformedData = (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
375
|
-
(0, import_transform_paths2.transformPaths)(data, [
|
|
446
|
+
(0, import_transform_paths2.transformPaths)(data, [
|
|
447
|
+
{
|
|
448
|
+
transformFn: import_image.transformRESTImageToSDKImage,
|
|
449
|
+
paths: [
|
|
450
|
+
{ path: "results.lineItems.image" },
|
|
451
|
+
{ path: "abandonedCheckouts.lineItems.image" }
|
|
452
|
+
]
|
|
453
|
+
}
|
|
454
|
+
])
|
|
376
455
|
);
|
|
377
456
|
return {
|
|
378
457
|
items: transformedData?.abandonedCheckouts,
|
|
@@ -399,7 +478,14 @@ async function searchAbandonedCheckouts2(search) {
|
|
|
399
478
|
try {
|
|
400
479
|
const result = await httpClient.request(reqOpts);
|
|
401
480
|
sideEffects?.onSuccess?.(result);
|
|
402
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
481
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
482
|
+
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
483
|
+
{
|
|
484
|
+
transformFn: import_image.transformRESTImageToSDKImage,
|
|
485
|
+
paths: [{ path: "abandonedCheckouts.lineItems.image" }]
|
|
486
|
+
}
|
|
487
|
+
])
|
|
488
|
+
);
|
|
403
489
|
} catch (err) {
|
|
404
490
|
const transformedError = (0, import_transform_error.transformError)(
|
|
405
491
|
err,
|
|
@@ -425,7 +511,14 @@ async function addAbandonedCheckoutActivity2(abandonedCheckoutId, options) {
|
|
|
425
511
|
try {
|
|
426
512
|
const result = await httpClient.request(reqOpts);
|
|
427
513
|
sideEffects?.onSuccess?.(result);
|
|
428
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
514
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
515
|
+
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
516
|
+
{
|
|
517
|
+
transformFn: import_image.transformRESTImageToSDKImage,
|
|
518
|
+
paths: [{ path: "abandonedCheckout.lineItems.image" }]
|
|
519
|
+
}
|
|
520
|
+
])
|
|
521
|
+
);
|
|
429
522
|
} catch (err) {
|
|
430
523
|
const transformedError = (0, import_transform_error.transformError)(
|
|
431
524
|
err,
|
|
@@ -531,6 +624,14 @@ var onAbandonedCheckoutCreated = (0, import_sdk_types.EventDefinition)(
|
|
|
531
624
|
{ path: "entity.activities.createdDate" },
|
|
532
625
|
{ path: "metadata.eventTime" }
|
|
533
626
|
]
|
|
627
|
+
},
|
|
628
|
+
{
|
|
629
|
+
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
630
|
+
paths: [{ path: "entity.lineItems.image" }]
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
634
|
+
paths: [{ path: "entity.lineItems.physicalProperties.weight" }]
|
|
534
635
|
}
|
|
535
636
|
])
|
|
536
637
|
)
|
|
@@ -549,6 +650,14 @@ var onAbandonedCheckoutDeleted = (0, import_sdk_types.EventDefinition)(
|
|
|
549
650
|
{ path: "undefined.activities.createdDate" },
|
|
550
651
|
{ path: "metadata.eventTime" }
|
|
551
652
|
]
|
|
653
|
+
},
|
|
654
|
+
{
|
|
655
|
+
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
656
|
+
paths: [{ path: "undefined.lineItems.image" }]
|
|
657
|
+
},
|
|
658
|
+
{
|
|
659
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
660
|
+
paths: [{ path: "undefined.lineItems.physicalProperties.weight" }]
|
|
552
661
|
}
|
|
553
662
|
])
|
|
554
663
|
)
|
|
@@ -567,6 +676,18 @@ var onAbandonedCheckoutRecovered = (0, import_sdk_types.EventDefinition)(
|
|
|
567
676
|
{ path: "data.abandonedCheckout.activities.createdDate" },
|
|
568
677
|
{ path: "metadata.eventTime" }
|
|
569
678
|
]
|
|
679
|
+
},
|
|
680
|
+
{
|
|
681
|
+
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
682
|
+
paths: [{ path: "data.abandonedCheckout.lineItems.image" }]
|
|
683
|
+
},
|
|
684
|
+
{
|
|
685
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
686
|
+
paths: [
|
|
687
|
+
{
|
|
688
|
+
path: "data.abandonedCheckout.lineItems.physicalProperties.weight"
|
|
689
|
+
}
|
|
690
|
+
]
|
|
570
691
|
}
|
|
571
692
|
])
|
|
572
693
|
)
|
|
@@ -585,6 +706,14 @@ var onAbandonedCheckoutUpdated = (0, import_sdk_types.EventDefinition)(
|
|
|
585
706
|
{ path: "entity.activities.createdDate" },
|
|
586
707
|
{ path: "metadata.eventTime" }
|
|
587
708
|
]
|
|
709
|
+
},
|
|
710
|
+
{
|
|
711
|
+
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
712
|
+
paths: [{ path: "entity.lineItems.image" }]
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
716
|
+
paths: [{ path: "entity.lineItems.physicalProperties.weight" }]
|
|
588
717
|
}
|
|
589
718
|
])
|
|
590
719
|
)
|
|
@@ -615,6 +744,7 @@ var onAbandonedCheckoutUpdated2 = (0, import_event_definition_modules.createEven
|
|
|
615
744
|
0 && (module.exports = {
|
|
616
745
|
ActivityType,
|
|
617
746
|
CommonSortOrder,
|
|
747
|
+
DescriptionLineType,
|
|
618
748
|
Identity,
|
|
619
749
|
Mode,
|
|
620
750
|
SortOrder,
|