@wix/auto_sdk_ecom_abandoned-checkouts 1.0.35 → 1.0.37
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-xMrPObPW.d.ts → ecom-v1-abandoned-checkout-abandoned-checkouts.universal-iC02NQVc.d.ts} +6 -2
- package/build/cjs/index.d.ts +2 -2
- package/build/cjs/index.js +53 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +45 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +55 -2
- package/build/cjs/meta.js +38 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/{ecom-v1-abandoned-checkout-abandoned-checkouts.universal-xMrPObPW.d.mts → ecom-v1-abandoned-checkout-abandoned-checkouts.universal-iC02NQVc.d.mts} +6 -2
- package/build/es/index.d.mts +2 -2
- package/build/es/index.mjs +52 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +44 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +55 -2
- package/build/es/meta.mjs +37 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/{ecom-v1-abandoned-checkout-abandoned-checkouts.universal-kgaKuR8n.d.ts → ecom-v1-abandoned-checkout-abandoned-checkouts.universal-DuhDBWtW.d.ts} +18 -3
- package/build/internal/cjs/index.d.ts +14 -3
- package/build/internal/cjs/index.js +53 -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 +45 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +55 -2
- package/build/internal/cjs/meta.js +38 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/{ecom-v1-abandoned-checkout-abandoned-checkouts.universal-kgaKuR8n.d.mts → ecom-v1-abandoned-checkout-abandoned-checkouts.universal-DuhDBWtW.d.mts} +18 -3
- package/build/internal/es/index.d.mts +14 -3
- package/build/internal/es/index.mjs +52 -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 +44 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +55 -2
- package/build/internal/es/meta.mjs +37 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -529,7 +529,7 @@ interface BulkDeleteAbandonedCheckoutsRequest {
|
|
|
529
529
|
* @maxSize 100
|
|
530
530
|
* @format GUID
|
|
531
531
|
*/
|
|
532
|
-
abandonedCheckoutIds
|
|
532
|
+
abandonedCheckoutIds: string[];
|
|
533
533
|
}
|
|
534
534
|
interface BulkDeleteAbandonedCheckoutsResponse {
|
|
535
535
|
/**
|
|
@@ -1261,7 +1261,11 @@ interface AbandonedCheckoutSearchSpec extends SearchSpec {
|
|
|
1261
1261
|
},
|
|
1262
1262
|
{
|
|
1263
1263
|
operators: '*';
|
|
1264
|
-
fields: [
|
|
1264
|
+
fields: [
|
|
1265
|
+
'contactDetails.firstName',
|
|
1266
|
+
'contactDetails.lastName',
|
|
1267
|
+
'couponCode'
|
|
1268
|
+
];
|
|
1265
1269
|
sort: 'NONE';
|
|
1266
1270
|
},
|
|
1267
1271
|
{
|
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 { 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-
|
|
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-iC02NQVc.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-iC02NQVc.js';
|
|
4
4
|
|
|
5
5
|
declare function getAbandonedCheckout$1(httpClient: HttpClient): GetAbandonedCheckoutSignature;
|
|
6
6
|
interface GetAbandonedCheckoutSignature {
|
package/build/cjs/index.js
CHANGED
|
@@ -30,6 +30,7 @@ __export(index_exports, {
|
|
|
30
30
|
VatType: () => VatType,
|
|
31
31
|
WebhookIdentityType: () => WebhookIdentityType,
|
|
32
32
|
addAbandonedCheckoutActivity: () => addAbandonedCheckoutActivity4,
|
|
33
|
+
bulkDeleteAbandonedCheckouts: () => bulkDeleteAbandonedCheckouts4,
|
|
33
34
|
deleteAbandonedCheckout: () => deleteAbandonedCheckout4,
|
|
34
35
|
getAbandonedCheckout: () => getAbandonedCheckout4,
|
|
35
36
|
onAbandonedCheckoutCreated: () => onAbandonedCheckoutCreated2,
|
|
@@ -163,6 +164,24 @@ function deleteAbandonedCheckout(payload) {
|
|
|
163
164
|
}
|
|
164
165
|
return __deleteAbandonedCheckout;
|
|
165
166
|
}
|
|
167
|
+
function bulkDeleteAbandonedCheckouts(payload) {
|
|
168
|
+
function __bulkDeleteAbandonedCheckouts({ host }) {
|
|
169
|
+
const metadata = {
|
|
170
|
+
entityFqdn: "wix.ecom.v1.abandoned_checkout",
|
|
171
|
+
method: "POST",
|
|
172
|
+
methodFqn: "wix.ecom.abandoned_checkout.api.v1.AbandonedCheckoutService.BulkDeleteAbandonedCheckouts",
|
|
173
|
+
packageName: PACKAGE_NAME,
|
|
174
|
+
url: resolveWixEcomAbandonedCheckoutApiV1AbandonedCheckoutServiceUrl({
|
|
175
|
+
protoPath: "/v1/bulk/abandoned-checkouts/delete",
|
|
176
|
+
data: payload,
|
|
177
|
+
host
|
|
178
|
+
}),
|
|
179
|
+
data: payload
|
|
180
|
+
};
|
|
181
|
+
return metadata;
|
|
182
|
+
}
|
|
183
|
+
return __bulkDeleteAbandonedCheckouts;
|
|
184
|
+
}
|
|
166
185
|
function queryAbandonedCheckouts(payload) {
|
|
167
186
|
function __queryAbandonedCheckouts({ host }) {
|
|
168
187
|
const metadata = {
|
|
@@ -417,6 +436,31 @@ async function deleteAbandonedCheckout2(abandonedCheckoutId) {
|
|
|
417
436
|
throw transformedError;
|
|
418
437
|
}
|
|
419
438
|
}
|
|
439
|
+
async function bulkDeleteAbandonedCheckouts2(abandonedCheckoutIds) {
|
|
440
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
441
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
442
|
+
abandonedCheckoutIds
|
|
443
|
+
});
|
|
444
|
+
const reqOpts = bulkDeleteAbandonedCheckouts(payload);
|
|
445
|
+
sideEffects?.onSiteCall?.();
|
|
446
|
+
try {
|
|
447
|
+
const result = await httpClient.request(reqOpts);
|
|
448
|
+
sideEffects?.onSuccess?.(result);
|
|
449
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
450
|
+
} catch (err) {
|
|
451
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
452
|
+
err,
|
|
453
|
+
{
|
|
454
|
+
spreadPathsToArguments: {},
|
|
455
|
+
explicitPathsToArguments: { abandonedCheckoutIds: "$[0]" },
|
|
456
|
+
singleArgumentUnchanged: false
|
|
457
|
+
},
|
|
458
|
+
["abandonedCheckoutIds"]
|
|
459
|
+
);
|
|
460
|
+
sideEffects?.onError?.(err);
|
|
461
|
+
throw transformedError;
|
|
462
|
+
}
|
|
463
|
+
}
|
|
420
464
|
function queryAbandonedCheckouts2() {
|
|
421
465
|
const { httpClient, sideEffects } = arguments[0];
|
|
422
466
|
return (0, import_query_builder.queryBuilder)({
|
|
@@ -581,6 +625,13 @@ function deleteAbandonedCheckout3(httpClient) {
|
|
|
581
625
|
{ httpClient }
|
|
582
626
|
);
|
|
583
627
|
}
|
|
628
|
+
function bulkDeleteAbandonedCheckouts3(httpClient) {
|
|
629
|
+
return (abandonedCheckoutIds) => bulkDeleteAbandonedCheckouts2(
|
|
630
|
+
abandonedCheckoutIds,
|
|
631
|
+
// @ts-ignore
|
|
632
|
+
{ httpClient }
|
|
633
|
+
);
|
|
634
|
+
}
|
|
584
635
|
function queryAbandonedCheckouts3(httpClient) {
|
|
585
636
|
return () => queryAbandonedCheckouts2(
|
|
586
637
|
// @ts-ignore
|
|
@@ -724,6 +775,7 @@ var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
|
|
|
724
775
|
var import_event_definition_modules = require("@wix/sdk-runtime/event-definition-modules");
|
|
725
776
|
var getAbandonedCheckout4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getAbandonedCheckout3);
|
|
726
777
|
var deleteAbandonedCheckout4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteAbandonedCheckout3);
|
|
778
|
+
var bulkDeleteAbandonedCheckouts4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkDeleteAbandonedCheckouts3);
|
|
727
779
|
var queryAbandonedCheckouts4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(queryAbandonedCheckouts3);
|
|
728
780
|
var searchAbandonedCheckouts4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(searchAbandonedCheckouts3);
|
|
729
781
|
var addAbandonedCheckoutActivity4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(addAbandonedCheckoutActivity3);
|
|
@@ -752,6 +804,7 @@ var onAbandonedCheckoutUpdated2 = (0, import_event_definition_modules.createEven
|
|
|
752
804
|
VatType,
|
|
753
805
|
WebhookIdentityType,
|
|
754
806
|
addAbandonedCheckoutActivity,
|
|
807
|
+
bulkDeleteAbandonedCheckouts,
|
|
755
808
|
deleteAbandonedCheckout,
|
|
756
809
|
getAbandonedCheckout,
|
|
757
810
|
onAbandonedCheckoutCreated,
|