@wix/auto_sdk_ecom_abandoned-checkouts 1.0.42 → 1.0.44

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.
Files changed (41) hide show
  1. package/build/{internal/cjs/ecom-v1-abandoned-checkout-abandoned-checkouts.universal-Cc3dfanX.d.ts → cjs/ecom-v1-abandoned-checkout-abandoned-checkouts.universal-C8oWIE96.d.ts} +89 -40
  2. package/build/cjs/index.d.ts +2 -2
  3. package/build/cjs/index.js +59 -5
  4. package/build/cjs/index.js.map +1 -1
  5. package/build/cjs/index.typings.d.ts +2 -2
  6. package/build/cjs/index.typings.js +44 -2
  7. package/build/cjs/index.typings.js.map +1 -1
  8. package/build/cjs/meta.d.ts +1 -1
  9. package/build/cjs/meta.js +36 -2
  10. package/build/cjs/meta.js.map +1 -1
  11. package/build/{internal/es/ecom-v1-abandoned-checkout-abandoned-checkouts.universal-Cc3dfanX.d.mts → es/ecom-v1-abandoned-checkout-abandoned-checkouts.universal-C8oWIE96.d.mts} +89 -40
  12. package/build/es/index.d.mts +2 -2
  13. package/build/es/index.mjs +58 -5
  14. package/build/es/index.mjs.map +1 -1
  15. package/build/es/index.typings.d.mts +2 -2
  16. package/build/es/index.typings.mjs +43 -2
  17. package/build/es/index.typings.mjs.map +1 -1
  18. package/build/es/meta.d.mts +1 -1
  19. package/build/es/meta.mjs +36 -2
  20. package/build/es/meta.mjs.map +1 -1
  21. 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
  22. package/build/internal/cjs/index.d.ts +2 -2
  23. package/build/internal/cjs/index.js +59 -5
  24. package/build/internal/cjs/index.js.map +1 -1
  25. package/build/internal/cjs/index.typings.d.ts +2 -2
  26. package/build/internal/cjs/index.typings.js +44 -2
  27. package/build/internal/cjs/index.typings.js.map +1 -1
  28. package/build/internal/cjs/meta.d.ts +1 -1
  29. package/build/internal/cjs/meta.js +36 -2
  30. package/build/internal/cjs/meta.js.map +1 -1
  31. 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
  32. package/build/internal/es/index.d.mts +2 -2
  33. package/build/internal/es/index.mjs +58 -5
  34. package/build/internal/es/index.mjs.map +1 -1
  35. package/build/internal/es/index.typings.d.mts +2 -2
  36. package/build/internal/es/index.typings.mjs +43 -2
  37. package/build/internal/es/index.typings.mjs.map +1 -1
  38. package/build/internal/es/meta.d.mts +1 -1
  39. package/build/internal/es/meta.mjs +36 -2
  40. package/build/internal/es/meta.mjs.map +1 -1
  41. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
- import { a5 as Search, S as SearchAbandonedCheckoutsResponse } from './ecom-v1-abandoned-checkout-abandoned-checkouts.universal-D7Tj5DAM.js';
2
- export { A as AbandonedCheckout, c as AbandonedCheckoutCreatedEnvelope, d as AbandonedCheckoutDeletedEnvelope, z as AbandonedCheckoutRecovered, e as AbandonedCheckoutRecoveredEnvelope, aC as AbandonedCheckoutSearchSpec, f as AbandonedCheckoutUpdatedEnvelope, a as AbandonedCheckoutsQueryBuilder, 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, K as BulkDeleteAbandonedCheckoutsRequest, B as BulkDeleteAbandonedCheckoutsResponse, x as BuyerInfo, ak as Cancel, w as CartAbandonedEvent, y 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, H as DeleteAbandonedCheckoutRequest, J 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, E 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, R as RawHttpResponse, am as RedirectToCheckoutRequest, al as Reschedule, ar as RestoreInfo, 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, aU as bulkDeleteAbandonedCheckouts, aT as deleteAbandonedCheckout, aS as getAbandonedCheckout, aO as onAbandonedCheckoutCreated, aP as onAbandonedCheckoutDeleted, aQ as onAbandonedCheckoutRecovered, aR as onAbandonedCheckoutUpdated, aV as queryAbandonedCheckouts, aW as redirectToCheckout } from './ecom-v1-abandoned-checkout-abandoned-checkouts.universal-D7Tj5DAM.js';
1
+ import { ac as Search, S as SearchAbandonedCheckoutsResponse } from './ecom-v1-abandoned-checkout-abandoned-checkouts.universal-C8oWIE96.js';
2
+ export { A as AbandonedCheckout, c as AbandonedCheckoutCreatedEnvelope, d as AbandonedCheckoutDeletedEnvelope, O as AbandonedCheckoutRecovered, e as AbandonedCheckoutRecoveredEnvelope, aJ as AbandonedCheckoutSearchSpec, f as AbandonedCheckoutUpdatedEnvelope, a as AbandonedCheckoutsQueryBuilder, 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, B as BulkDeleteAbandonedCheckoutsResponse, 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, R as RawHttpResponse, at as RedirectToCheckoutRequest, as as Reschedule, ay as RestoreInfo, 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, b0 as bulkDeleteAbandonedCheckouts, a$ as deleteAbandonedCheckout, a_ as getAbandonedCheckout, aW as onAbandonedCheckoutCreated, aX as onAbandonedCheckoutDeleted, aY as onAbandonedCheckoutRecovered, aZ as onAbandonedCheckoutUpdated, b1 as queryAbandonedCheckouts, b2 as redirectToCheckout } from './ecom-v1-abandoned-checkout-abandoned-checkouts.universal-C8oWIE96.js';
3
3
  import '@wix/sdk-types';
4
4
 
5
5
  /** @hidden */
@@ -23,6 +23,7 @@ __export(index_typings_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,
@@ -106,6 +107,9 @@ function getAbandonedCheckout(payload) {
106
107
  method: "GET",
107
108
  methodFqn: "wix.ecom.abandoned_checkout.api.v1.AbandonedCheckoutService.GetAbandonedCheckout",
108
109
  packageName: PACKAGE_NAME,
110
+ migrationOptions: {
111
+ optInTransformResponse: true
112
+ },
109
113
  url: resolveWixEcomAbandonedCheckoutApiV1AbandonedCheckoutServiceUrl({
110
114
  protoPath: "/v1/abandoned-checkout/{abandonedCheckoutId}",
111
115
  data: payload,
@@ -125,7 +129,10 @@ function getAbandonedCheckout(payload) {
125
129
  {
126
130
  transformFn: import_float.transformRESTFloatToSDKFloat,
127
131
  paths: [
128
- { path: "abandonedCheckout.lineItems.physicalProperties.weight" }
132
+ { path: "abandonedCheckout.lineItems.physicalProperties.weight" },
133
+ {
134
+ path: "abandonedCheckout.appliedDiscounts.merchantDiscount.percentage"
135
+ }
129
136
  ]
130
137
  }
131
138
  ])
@@ -141,6 +148,9 @@ function deleteAbandonedCheckout(payload) {
141
148
  method: "DELETE",
142
149
  methodFqn: "wix.ecom.abandoned_checkout.api.v1.AbandonedCheckoutService.DeleteAbandonedCheckout",
143
150
  packageName: PACKAGE_NAME,
151
+ migrationOptions: {
152
+ optInTransformResponse: true
153
+ },
144
154
  url: resolveWixEcomAbandonedCheckoutApiV1AbandonedCheckoutServiceUrl({
145
155
  protoPath: "/v1/abandoned-checkout/{abandonedCheckoutId}",
146
156
  data: payload,
@@ -159,6 +169,9 @@ function bulkDeleteAbandonedCheckouts(payload) {
159
169
  method: "POST",
160
170
  methodFqn: "wix.ecom.abandoned_checkout.api.v1.AbandonedCheckoutService.BulkDeleteAbandonedCheckouts",
161
171
  packageName: PACKAGE_NAME,
172
+ migrationOptions: {
173
+ optInTransformResponse: true
174
+ },
162
175
  url: resolveWixEcomAbandonedCheckoutApiV1AbandonedCheckoutServiceUrl({
163
176
  protoPath: "/v1/bulk/abandoned-checkout/delete",
164
177
  data: payload,
@@ -177,6 +190,9 @@ function queryAbandonedCheckouts(payload) {
177
190
  method: "POST",
178
191
  methodFqn: "wix.ecom.abandoned_checkout.api.v1.AbandonedCheckoutService.QueryAbandonedCheckouts",
179
192
  packageName: PACKAGE_NAME,
193
+ migrationOptions: {
194
+ optInTransformResponse: true
195
+ },
180
196
  url: resolveWixEcomAbandonedCheckoutApiV1AbandonedCheckoutServiceUrl({
181
197
  protoPath: "/v1/abandoned-checkout/query",
182
198
  data: payload,
@@ -201,8 +217,12 @@ function queryAbandonedCheckouts(payload) {
201
217
  transformFn: import_float.transformRESTFloatToSDKFloat,
202
218
  paths: [
203
219
  { path: "results.lineItems.physicalProperties.weight" },
220
+ { path: "results.appliedDiscounts.merchantDiscount.percentage" },
204
221
  {
205
222
  path: "abandonedCheckouts.lineItems.physicalProperties.weight"
223
+ },
224
+ {
225
+ path: "abandonedCheckouts.appliedDiscounts.merchantDiscount.percentage"
206
226
  }
207
227
  ]
208
228
  }
@@ -219,6 +239,9 @@ function searchAbandonedCheckouts(payload) {
219
239
  method: "POST",
220
240
  methodFqn: "wix.ecom.abandoned_checkout.api.v1.AbandonedCheckoutService.SearchAbandonedCheckouts",
221
241
  packageName: PACKAGE_NAME,
242
+ migrationOptions: {
243
+ optInTransformResponse: true
244
+ },
222
245
  url: resolveWixEcomAbandonedCheckoutApiV1AbandonedCheckoutServiceUrl({
223
246
  protoPath: "/v1/abandoned-checkout/search",
224
247
  data: payload,
@@ -240,6 +263,9 @@ function searchAbandonedCheckouts(payload) {
240
263
  paths: [
241
264
  {
242
265
  path: "abandonedCheckouts.lineItems.physicalProperties.weight"
266
+ },
267
+ {
268
+ path: "abandonedCheckouts.appliedDiscounts.merchantDiscount.percentage"
243
269
  }
244
270
  ]
245
271
  }
@@ -256,6 +282,9 @@ function addAbandonedCheckoutActivity(payload) {
256
282
  method: "POST",
257
283
  methodFqn: "wix.ecom.abandoned_checkout.api.v1.AbandonedCheckoutService.AddAbandonedCheckoutActivity",
258
284
  packageName: PACKAGE_NAME,
285
+ migrationOptions: {
286
+ optInTransformResponse: true
287
+ },
259
288
  url: resolveWixEcomAbandonedCheckoutApiV1AbandonedCheckoutServiceUrl({
260
289
  protoPath: "/v1/abandoned-checkouts/{abandonedCheckoutId}/add-activity",
261
290
  data: payload,
@@ -275,7 +304,10 @@ function addAbandonedCheckoutActivity(payload) {
275
304
  {
276
305
  transformFn: import_float.transformRESTFloatToSDKFloat,
277
306
  paths: [
278
- { path: "abandonedCheckout.lineItems.physicalProperties.weight" }
307
+ { path: "abandonedCheckout.lineItems.physicalProperties.weight" },
308
+ {
309
+ path: "abandonedCheckout.appliedDiscounts.merchantDiscount.percentage"
310
+ }
279
311
  ]
280
312
  }
281
313
  ])
@@ -291,6 +323,9 @@ function redirectToCheckout(payload) {
291
323
  method: "GET",
292
324
  methodFqn: "wix.ecom.abandoned_checkout.api.v1.AbandonedCheckoutService.RedirectToCheckout",
293
325
  packageName: PACKAGE_NAME,
326
+ migrationOptions: {
327
+ optInTransformResponse: true
328
+ },
294
329
  url: resolveWixEcomAbandonedCheckoutApiV1AbandonedCheckoutServiceUrl({
295
330
  protoPath: "/v1/abandoned-checkout/{abandonedCheckoutId}/redirect-to-checkout",
296
331
  data: payload,
@@ -339,6 +374,12 @@ var DescriptionLineType = /* @__PURE__ */ ((DescriptionLineType2) => {
339
374
  DescriptionLineType2["COLOR"] = "COLOR";
340
375
  return DescriptionLineType2;
341
376
  })(DescriptionLineType || {});
377
+ var DiscountType = /* @__PURE__ */ ((DiscountType2) => {
378
+ DiscountType2["GLOBAL"] = "GLOBAL";
379
+ DiscountType2["SPECIFIC_ITEMS"] = "SPECIFIC_ITEMS";
380
+ DiscountType2["SHIPPING"] = "SHIPPING";
381
+ return DiscountType2;
382
+ })(DiscountType || {});
342
383
  var Identity = /* @__PURE__ */ ((Identity2) => {
343
384
  Identity2["ADMIN"] = "ADMIN";
344
385
  Identity2["MEMBER"] = "MEMBER";
@@ -603,6 +644,7 @@ async function redirectToCheckout2(abandonedCheckoutId, metasiteId) {
603
644
  ActivityType,
604
645
  CommonSortOrder,
605
646
  DescriptionLineType,
647
+ DiscountType,
606
648
  Identity,
607
649
  Mode,
608
650
  SortOrder,