@wix/auto_sdk_ecom_abandoned-checkouts 1.0.34 → 1.0.36
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-Clay04rF.d.ts} +244 -2
- 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-Clay04rF.d.mts} +244 -2
- 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-50WaFSYL.d.ts} +263 -2
- 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-50WaFSYL.d.mts} +263 -2
- 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
|
@@ -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,
|