@wix/auto_sdk_ecom_delivery-solutions 1.0.7 → 1.0.8
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/index.d.ts +1 -0
- package/build/cjs/index.js +18 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.context.d.ts +5 -0
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.context.js +14 -0
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.context.js.map +1 -0
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.http.d.ts +3 -0
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.http.js +79 -0
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.http.js.map +1 -0
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.meta.d.ts +13 -0
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.meta.js +47 -0
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.meta.js.map +1 -0
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.d.ts +16 -0
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.js +19 -0
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.js.map +1 -0
- package/build/{internal/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal-DMPoOveb.d.ts → cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.d.ts} +43 -75
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.js +72 -0
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.js.map +1 -0
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.d.ts +588 -0
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js +170 -0
- package/build/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.context.d.ts +5 -0
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.context.js +5 -0
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.context.js.map +1 -0
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.http.d.ts +3 -0
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.http.js +75 -0
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.http.js.map +1 -0
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.meta.d.ts +13 -0
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.meta.js +20 -0
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.meta.js.map +1 -0
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.d.ts +16 -0
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.js +9 -0
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.js.map +1 -0
- package/build/{internal/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal-DMPoOveb.d.mts → es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.d.ts} +43 -75
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.js +69 -0
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.js.map +1 -0
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.d.ts +588 -0
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js +143 -0
- package/build/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js.map +1 -0
- package/build/internal/cjs/index.d.ts +1 -0
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1 -0
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -0
- package/build/internal/cjs/meta.js +18 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.context.d.ts +5 -0
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.context.js +14 -0
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.context.js.map +1 -0
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.http.d.ts +3 -0
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.http.js +79 -0
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.http.js.map +1 -0
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.meta.d.ts +13 -0
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.meta.js +47 -0
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.meta.js.map +1 -0
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.d.ts +16 -0
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.js +19 -0
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.js.map +1 -0
- package/build/{gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal-3BB4aqZs.d.mts → internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.d.ts} +49 -74
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.js +72 -0
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.js.map +1 -0
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.d.ts +588 -0
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js +170 -0
- package/build/internal/cjs/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js.map +1 -0
- package/build/internal/es/index.d.ts +1 -0
- package/build/internal/es/index.js +2 -0
- package/build/internal/es/index.js.map +1 -0
- package/build/internal/es/index.typings.d.ts +1 -0
- package/build/internal/es/index.typings.js +2 -0
- package/build/internal/es/index.typings.js.map +1 -0
- package/build/internal/es/meta.d.ts +1 -0
- package/build/internal/es/meta.js +2 -0
- package/build/internal/es/meta.js.map +1 -0
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.context.d.ts +5 -0
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.context.js +5 -0
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.context.js.map +1 -0
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.http.d.ts +3 -0
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.http.js +75 -0
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.http.js.map +1 -0
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.meta.d.ts +13 -0
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.meta.js +20 -0
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.meta.js.map +1 -0
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.d.ts +16 -0
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.js +9 -0
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.js.map +1 -0
- package/build/{gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal-3BB4aqZs.d.ts → internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.d.ts} +49 -74
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.js +69 -0
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.js.map +1 -0
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.d.ts +588 -0
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js +143 -0
- package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js.map +1 -0
- package/package.json +11 -12
- package/build/index.d.mts +0 -18
- package/build/index.d.ts +0 -18
- package/build/index.js +0 -256
- package/build/index.js.map +0 -1
- package/build/index.mjs +0 -226
- package/build/index.mjs.map +0 -1
- package/build/internal/index.d.mts +0 -18
- package/build/internal/index.d.ts +0 -18
- package/build/internal/index.js +0 -256
- package/build/internal/index.js.map +0 -1
- package/build/internal/index.mjs +0 -226
- package/build/internal/index.mjs.map +0 -1
- package/build/internal/meta.d.mts +0 -495
- package/build/internal/meta.d.ts +0 -495
- package/build/internal/meta.js +0 -127
- package/build/internal/meta.js.map +0 -1
- package/build/internal/meta.mjs +0 -100
- package/build/internal/meta.mjs.map +0 -1
- package/build/meta.d.mts +0 -495
- package/build/meta.d.ts +0 -495
- package/build/meta.js +0 -127
- package/build/meta.js.map +0 -1
- package/build/meta.mjs +0 -100
- package/build/meta.mjs.map +0 -1
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.getDeliverySolutions = exports.RuleType = exports.ChargeType = exports.PickupMethod = exports.WeightUnit = exports.VatType = exports.SubdivisionType = void 0;
|
|
27
|
+
const transform_error_1 = require("@wix/sdk-runtime/transform-error");
|
|
28
|
+
const rename_all_nested_keys_1 = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
29
|
+
const ambassadorWixGatewaysEcomV1DeliveryRatesGateway = __importStar(require("./gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.http.js"));
|
|
30
|
+
const address_1 = require("@wix/sdk-runtime/transformations/address");
|
|
31
|
+
const address_2 = require("@wix/sdk-runtime/transformations/address");
|
|
32
|
+
const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
33
|
+
var SubdivisionType;
|
|
34
|
+
(function (SubdivisionType) {
|
|
35
|
+
SubdivisionType["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
|
|
36
|
+
/** State */
|
|
37
|
+
SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
|
|
38
|
+
/** County */
|
|
39
|
+
SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_2"] = "ADMINISTRATIVE_AREA_LEVEL_2";
|
|
40
|
+
/** City/town */
|
|
41
|
+
SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_3"] = "ADMINISTRATIVE_AREA_LEVEL_3";
|
|
42
|
+
/** Neighborhood/quarter */
|
|
43
|
+
SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_4"] = "ADMINISTRATIVE_AREA_LEVEL_4";
|
|
44
|
+
/** Street/block */
|
|
45
|
+
SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_5"] = "ADMINISTRATIVE_AREA_LEVEL_5";
|
|
46
|
+
/** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */
|
|
47
|
+
SubdivisionType["COUNTRY"] = "COUNTRY";
|
|
48
|
+
})(SubdivisionType || (exports.SubdivisionType = SubdivisionType = {}));
|
|
49
|
+
/** tax info types */
|
|
50
|
+
var VatType;
|
|
51
|
+
(function (VatType) {
|
|
52
|
+
VatType["UNSPECIFIED"] = "UNSPECIFIED";
|
|
53
|
+
/** CPF - for individual tax payers. */
|
|
54
|
+
VatType["CPF"] = "CPF";
|
|
55
|
+
/** CNPJ - for corporations */
|
|
56
|
+
VatType["CNPJ"] = "CNPJ";
|
|
57
|
+
})(VatType || (exports.VatType = VatType = {}));
|
|
58
|
+
var WeightUnit;
|
|
59
|
+
(function (WeightUnit) {
|
|
60
|
+
/** Weight unit can't be classified due to an error. */
|
|
61
|
+
WeightUnit["UNSPECIFIED_WEIGHT_UNIT"] = "UNSPECIFIED_WEIGHT_UNIT";
|
|
62
|
+
/** Kilograms. */
|
|
63
|
+
WeightUnit["KG"] = "KG";
|
|
64
|
+
/** Pounds. */
|
|
65
|
+
WeightUnit["LB"] = "LB";
|
|
66
|
+
})(WeightUnit || (exports.WeightUnit = WeightUnit = {}));
|
|
67
|
+
var PickupMethod;
|
|
68
|
+
(function (PickupMethod) {
|
|
69
|
+
PickupMethod["UNKNOWN_METHOD"] = "UNKNOWN_METHOD";
|
|
70
|
+
PickupMethod["STORE_PICKUP"] = "STORE_PICKUP";
|
|
71
|
+
PickupMethod["PICKUP_POINT"] = "PICKUP_POINT";
|
|
72
|
+
})(PickupMethod || (exports.PickupMethod = PickupMethod = {}));
|
|
73
|
+
var ChargeType;
|
|
74
|
+
(function (ChargeType) {
|
|
75
|
+
ChargeType["HANDLING_FEE"] = "HANDLING_FEE";
|
|
76
|
+
})(ChargeType || (exports.ChargeType = ChargeType = {}));
|
|
77
|
+
var RuleType;
|
|
78
|
+
(function (RuleType) {
|
|
79
|
+
RuleType["VALIDATION"] = "VALIDATION";
|
|
80
|
+
RuleType["OTHER"] = "OTHER";
|
|
81
|
+
RuleType["MAX"] = "MAX";
|
|
82
|
+
RuleType["MIN"] = "MIN";
|
|
83
|
+
RuleType["MAX_LENGTH"] = "MAX_LENGTH";
|
|
84
|
+
RuleType["MIN_LENGTH"] = "MIN_LENGTH";
|
|
85
|
+
RuleType["MAX_SIZE"] = "MAX_SIZE";
|
|
86
|
+
RuleType["MIN_SIZE"] = "MIN_SIZE";
|
|
87
|
+
RuleType["FORMAT"] = "FORMAT";
|
|
88
|
+
RuleType["DECIMAL_LTE"] = "DECIMAL_LTE";
|
|
89
|
+
RuleType["DECIMAL_GTE"] = "DECIMAL_GTE";
|
|
90
|
+
RuleType["DECIMAL_LT"] = "DECIMAL_LT";
|
|
91
|
+
RuleType["DECIMAL_GT"] = "DECIMAL_GT";
|
|
92
|
+
RuleType["DECIMAL_MAX_SCALE"] = "DECIMAL_MAX_SCALE";
|
|
93
|
+
RuleType["INVALID_ENUM_VALUE"] = "INVALID_ENUM_VALUE";
|
|
94
|
+
RuleType["REQUIRED_FIELD"] = "REQUIRED_FIELD";
|
|
95
|
+
RuleType["FIELD_NOT_ALLOWED"] = "FIELD_NOT_ALLOWED";
|
|
96
|
+
RuleType["ONE_OF_ALIGNMENT"] = "ONE_OF_ALIGNMENT";
|
|
97
|
+
RuleType["EXACT_LENGTH"] = "EXACT_LENGTH";
|
|
98
|
+
RuleType["EXACT_SIZE"] = "EXACT_SIZE";
|
|
99
|
+
RuleType["REQUIRED_ONE_OF_FIELD"] = "REQUIRED_ONE_OF_FIELD";
|
|
100
|
+
})(RuleType || (exports.RuleType = RuleType = {}));
|
|
101
|
+
/**
|
|
102
|
+
* Get Delivery Solutions for the given line items from all relevant delivery carriers
|
|
103
|
+
* @param lineItems - list of items to delivery that each of them points to delivery profile and delivery rule.
|
|
104
|
+
* @public
|
|
105
|
+
* @documentationMaturity preview
|
|
106
|
+
* @requiredField lineItems
|
|
107
|
+
* @requiredField options.currency
|
|
108
|
+
* @requiredField options.destination
|
|
109
|
+
* @requiredField options.destination.country
|
|
110
|
+
* @permissionId ECOM.DELIVERY_SOLUTION_READ
|
|
111
|
+
* @applicableIdentity VISITOR
|
|
112
|
+
* @returns Each delivery option has a list of items that can be delivered by it - the chosen one
|
|
113
|
+
* on Errors throw a business error from TC to catch and trigger destination completion
|
|
114
|
+
* @fqn wix.ecom.deliveryprofile.v1.DeliveryRates.GetDeliverySolutions
|
|
115
|
+
*/
|
|
116
|
+
async function getDeliverySolutions(lineItems, options) {
|
|
117
|
+
// @ts-ignore
|
|
118
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
119
|
+
const payload = (0, transform_paths_1.transformPaths)((0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
120
|
+
lineItems: lineItems,
|
|
121
|
+
destination: options?.destination,
|
|
122
|
+
origin: options?.origin,
|
|
123
|
+
currency: options?.currency,
|
|
124
|
+
contactDetails: options?.contactDetails,
|
|
125
|
+
weightUnit: options?.weightUnit,
|
|
126
|
+
userPreferences: options?.userPreferences,
|
|
127
|
+
purchaseFlowId: options?.purchaseFlowId,
|
|
128
|
+
externalReferences: options?.externalReferences,
|
|
129
|
+
}), [
|
|
130
|
+
{
|
|
131
|
+
transformFn: address_1.transformSDKAddressToRESTAddress,
|
|
132
|
+
paths: [{ path: 'destination' }, { path: 'origin' }],
|
|
133
|
+
},
|
|
134
|
+
]);
|
|
135
|
+
const reqOpts = ambassadorWixGatewaysEcomV1DeliveryRatesGateway.getDeliverySolutions(payload);
|
|
136
|
+
sideEffects?.onSiteCall?.();
|
|
137
|
+
try {
|
|
138
|
+
const result = await httpClient.request(reqOpts);
|
|
139
|
+
sideEffects?.onSuccess?.(result);
|
|
140
|
+
return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(result.data, [
|
|
141
|
+
{
|
|
142
|
+
transformFn: address_2.transformRESTAddressToSDKAddress,
|
|
143
|
+
paths: [
|
|
144
|
+
{ path: 'deliverySolutions.logistics.pickupDetails.address' },
|
|
145
|
+
],
|
|
146
|
+
},
|
|
147
|
+
]));
|
|
148
|
+
}
|
|
149
|
+
catch (err) {
|
|
150
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
151
|
+
spreadPathsToArguments: {},
|
|
152
|
+
explicitPathsToArguments: {
|
|
153
|
+
lineItems: '$[0]',
|
|
154
|
+
destination: '$[1].destination',
|
|
155
|
+
origin: '$[1].origin',
|
|
156
|
+
currency: '$[1].currency',
|
|
157
|
+
contactDetails: '$[1].contactDetails',
|
|
158
|
+
weightUnit: '$[1].weightUnit',
|
|
159
|
+
userPreferences: '$[1].userPreferences',
|
|
160
|
+
purchaseFlowId: '$[1].purchaseFlowId',
|
|
161
|
+
externalReferences: '$[1].externalReferences',
|
|
162
|
+
},
|
|
163
|
+
singleArgumentUnchanged: false,
|
|
164
|
+
}, ['lineItems', 'options']);
|
|
165
|
+
sideEffects?.onError?.(err);
|
|
166
|
+
throw transformedError;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
exports.getDeliverySolutions = getDeliverySolutions;
|
|
170
|
+
//# sourceMappingURL=gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js","sourceRoot":"","sources":["../../../../src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.context.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../index.ts"],"names":[],"mappings":"AAAA,cAAc,6EAA6E,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../../index.typings.ts"],"names":[],"mappings":"AAAA,cAAc,+EAA+E,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.meta.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../meta.ts"],"names":[],"mappings":"AAAA,cAAc,0EAA0E,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { getDeliverySolutions as publicGetDeliverySolutions } from './gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.js';
|
|
2
|
+
import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
|
|
3
|
+
export declare const getDeliverySolutions: MaybeContext<BuildRESTFunction<typeof publicGetDeliverySolutions> & typeof publicGetDeliverySolutions>;
|
|
4
|
+
export { SubdivisionType, VatType, WeightUnit, PickupMethod, ChargeType, RuleType, } from './gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js';
|
|
5
|
+
export { DeliveryRatesGateway, GetDeliverySolutionsRequest, DeliverableItem, CatalogReference, PhysicalProperties, Address, AddressStreetOneOf, StreetAddress, AddressLocation, Subdivision, FullAddressContactDetails, VatId, UserPreference, ExternalReference, GetDeliverySolutionsResponse, DeliverySolution, DeliveryLogistics, PickupDetails, DeliveryTimeSlot, DeliveryCost, AdditionalCharge, DeliveryAllocation, Carrier, Region, ApplicableLineItems, DeliveryCarrierError, Details, DetailsKindOneOf, ApplicationError, ValidationError, FieldViolation, SystemError, GetDeliverySolutionsOptions, } from './gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js';
|
package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.context.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { getDeliverySolutions as publicGetDeliverySolutions } from './gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.js';
|
|
2
|
+
import { createRESTModule } from '@wix/sdk-runtime/rest-modules';
|
|
3
|
+
export const getDeliverySolutions = /*#__PURE__*/ createRESTModule(publicGetDeliverySolutions);
|
|
4
|
+
export { SubdivisionType, VatType, WeightUnit, PickupMethod, ChargeType, RuleType, } from './gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js';
|
|
5
|
+
//# sourceMappingURL=gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.context.js","sourceRoot":"","sources":["../../../../src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,IAAI,0BAA0B,EAAE,MAAM,wEAAwE,CAAC;AAC5I,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAGjE,MAAM,CAAC,MAAM,oBAAoB,GAG7B,aAAa,CAAC,gBAAgB,CAAC,0BAA0B,CAAC,CAAC;AAE/D,OAAO,EACL,eAAe,EACf,OAAO,EACP,UAAU,EACV,YAAY,EACZ,UAAU,EACV,QAAQ,GACT,MAAM,2EAA2E,CAAC"}
|
package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.http.js
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';
|
|
2
|
+
import { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';
|
|
3
|
+
import { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';
|
|
4
|
+
import { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';
|
|
5
|
+
import { resolveUrl } from '@wix/sdk-runtime/rest-modules';
|
|
6
|
+
function resolveWixEcomDeliveryprofileV1DeliveryRatesUrl(opts) {
|
|
7
|
+
const domainToMappings = {
|
|
8
|
+
'api._api_base_domain_': [
|
|
9
|
+
{
|
|
10
|
+
srcPath: '/delivery-rates',
|
|
11
|
+
destPath: '',
|
|
12
|
+
},
|
|
13
|
+
],
|
|
14
|
+
_: [
|
|
15
|
+
{
|
|
16
|
+
srcPath: '/_api/delivery-rates',
|
|
17
|
+
destPath: '',
|
|
18
|
+
},
|
|
19
|
+
],
|
|
20
|
+
};
|
|
21
|
+
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
22
|
+
}
|
|
23
|
+
const PACKAGE_NAME = '@wix/auto_sdk_ecom_delivery-solutions';
|
|
24
|
+
/** Get Delivery Solutions for the given line items from all relevant delivery carriers */
|
|
25
|
+
export function getDeliverySolutions(payload) {
|
|
26
|
+
function __getDeliverySolutions({ host }) {
|
|
27
|
+
const serializedData = transformPaths(payload, [
|
|
28
|
+
{
|
|
29
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
30
|
+
paths: [
|
|
31
|
+
{ path: 'lineItems.physicalProperties.weight' },
|
|
32
|
+
{ path: 'destination.geocode.latitude' },
|
|
33
|
+
{ path: 'destination.geocode.longitude' },
|
|
34
|
+
{ path: 'origin.geocode.latitude' },
|
|
35
|
+
{ path: 'origin.geocode.longitude' },
|
|
36
|
+
],
|
|
37
|
+
},
|
|
38
|
+
]);
|
|
39
|
+
const metadata = {
|
|
40
|
+
entityFqdn: 'wix.gateways.ecom.v1.delivery_rates_gateway',
|
|
41
|
+
method: 'POST',
|
|
42
|
+
methodFqn: 'wix.ecom.deliveryprofile.v1.DeliveryRates.GetDeliverySolutions',
|
|
43
|
+
packageName: PACKAGE_NAME,
|
|
44
|
+
url: resolveWixEcomDeliveryprofileV1DeliveryRatesUrl({
|
|
45
|
+
protoPath: '/v1/get-delivery-solutions',
|
|
46
|
+
data: serializedData,
|
|
47
|
+
host,
|
|
48
|
+
}),
|
|
49
|
+
data: serializedData,
|
|
50
|
+
transformResponse: (payload) => transformPaths(payload, [
|
|
51
|
+
{
|
|
52
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
53
|
+
paths: [
|
|
54
|
+
{
|
|
55
|
+
path: 'deliverySolutions.logistics.pickupDetails.address.geocode.latitude',
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
path: 'deliverySolutions.logistics.pickupDetails.address.geocode.longitude',
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
64
|
+
paths: [
|
|
65
|
+
{ path: 'deliverySolutions.logistics.deliveryTimeSlot.from' },
|
|
66
|
+
{ path: 'deliverySolutions.logistics.deliveryTimeSlot.to' },
|
|
67
|
+
],
|
|
68
|
+
},
|
|
69
|
+
]),
|
|
70
|
+
};
|
|
71
|
+
return metadata;
|
|
72
|
+
}
|
|
73
|
+
return __getDeliverySolutions;
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.http.js.map
|
package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.http.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.http.js","sourceRoot":"","sources":["../../../../src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAClF,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAI3D,SAAS,+CAA+C,CACtD,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,uBAAuB,EAAE;YACvB;gBACE,OAAO,EAAE,iBAAiB;gBAC1B,QAAQ,EAAE,EAAE;aACb;SACF;QACD,CAAC,EAAE;YACD;gBACE,OAAO,EAAE,sBAAsB;gBAC/B,QAAQ,EAAE,EAAE;aACb;SACF;KACF,CAAC;IAEF,OAAO,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED,MAAM,YAAY,GAAG,uCAAuC,CAAC;AAE7D,0FAA0F;AAC1F,MAAM,UAAU,oBAAoB,CAClC,OAAe;IAEf,SAAS,sBAAsB,CAAC,EAAE,IAAI,EAAO;QAC3C,MAAM,cAAc,GAAG,cAAc,CAAC,OAAO,EAAE;YAC7C;gBACE,WAAW,EAAE,4BAA4B;gBACzC,KAAK,EAAE;oBACL,EAAE,IAAI,EAAE,qCAAqC,EAAE;oBAC/C,EAAE,IAAI,EAAE,8BAA8B,EAAE;oBACxC,EAAE,IAAI,EAAE,+BAA+B,EAAE;oBACzC,EAAE,IAAI,EAAE,yBAAyB,EAAE;oBACnC,EAAE,IAAI,EAAE,0BAA0B,EAAE;iBACrC;aACF;SACF,CAAC,CAAC;QACH,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,6CAA6C;YACzD,MAAM,EAAE,MAAa;YACrB,SAAS,EACP,gEAAgE;YAClE,WAAW,EAAE,YAAY;YACzB,GAAG,EAAE,+CAA+C,CAAC;gBACnD,SAAS,EAAE,4BAA4B;gBACvC,IAAI,EAAE,cAAc;gBACpB,IAAI;aACL,CAAC;YACF,IAAI,EAAE,cAAc;YACpB,iBAAiB,EAAE,CAAC,OAAY,EAAE,EAAE,CAClC,cAAc,CAAC,OAAO,EAAE;gBACtB;oBACE,WAAW,EAAE,4BAA4B;oBACzC,KAAK,EAAE;wBACL;4BACE,IAAI,EAAE,oEAAoE;yBAC3E;wBACD;4BACE,IAAI,EAAE,qEAAqE;yBAC5E;qBACF;iBACF;gBACD;oBACE,WAAW,EAAE,oCAAoC;oBACjD,KAAK,EAAE;wBACL,EAAE,IAAI,EAAE,mDAAmD,EAAE;wBAC7D,EAAE,IAAI,EAAE,iDAAiD,EAAE;qBAC5D;iBACF;aACF,CAAC;SACL,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,sBAAsB,CAAC;AAChC,CAAC"}
|
package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.meta.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as ambassadorWixGatewaysEcomV1DeliveryRatesGatewayTypes from './gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.types.js';
|
|
2
|
+
import * as ambassadorWixGatewaysEcomV1DeliveryRatesGatewayUniversalTypes from './gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js';
|
|
3
|
+
export type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
4
|
+
getUrl: (context: any) => string;
|
|
5
|
+
httpMethod: K;
|
|
6
|
+
path: string;
|
|
7
|
+
pathParams: M;
|
|
8
|
+
__requestType: T;
|
|
9
|
+
__originalRequestType: S;
|
|
10
|
+
__responseType: Q;
|
|
11
|
+
__originalResponseType: R;
|
|
12
|
+
};
|
|
13
|
+
export declare function getDeliverySolutions(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixGatewaysEcomV1DeliveryRatesGatewayUniversalTypes.GetDeliverySolutionsRequest, ambassadorWixGatewaysEcomV1DeliveryRatesGatewayTypes.GetDeliverySolutionsRequest, ambassadorWixGatewaysEcomV1DeliveryRatesGatewayUniversalTypes.GetDeliverySolutionsResponse, ambassadorWixGatewaysEcomV1DeliveryRatesGatewayTypes.GetDeliverySolutionsResponse>;
|
package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.meta.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as ambassadorWixGatewaysEcomV1DeliveryRatesGateway from './gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.http.js';
|
|
2
|
+
export function getDeliverySolutions() {
|
|
3
|
+
const payload = {};
|
|
4
|
+
const getRequestOptions = ambassadorWixGatewaysEcomV1DeliveryRatesGateway.getDeliverySolutions(payload);
|
|
5
|
+
const getUrl = (context) => {
|
|
6
|
+
const { url } = getRequestOptions(context);
|
|
7
|
+
return url;
|
|
8
|
+
};
|
|
9
|
+
return {
|
|
10
|
+
getUrl,
|
|
11
|
+
httpMethod: 'POST',
|
|
12
|
+
path: '/v1/get-delivery-solutions',
|
|
13
|
+
pathParams: {},
|
|
14
|
+
__requestType: null,
|
|
15
|
+
__originalRequestType: null,
|
|
16
|
+
__responseType: null,
|
|
17
|
+
__originalResponseType: null,
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.meta.js.map
|
package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.meta.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.meta.js","sourceRoot":"","sources":["../../../../src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,+CAA+C,MAAM,sEAAsE,CAAC;AAsBxI,MAAM,UAAU,oBAAoB;IAQlC,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,+CAA+C,CAAC,oBAAoB,CAClE,OAAO,CACR,CAAC;IAEJ,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,4BAA4B;QAClC,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC"}
|
package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
+
import { DeliverableItem, GetDeliverySolutionsOptions, GetDeliverySolutionsResponse } from './gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js';
|
|
3
|
+
export declare const __metadata: {
|
|
4
|
+
PACKAGE_NAME: string;
|
|
5
|
+
};
|
|
6
|
+
export declare function getDeliverySolutions(httpClient: HttpClient): GetDeliverySolutionsSignature;
|
|
7
|
+
interface GetDeliverySolutionsSignature {
|
|
8
|
+
/**
|
|
9
|
+
* Get Delivery Solutions for the given line items from all relevant delivery carriers
|
|
10
|
+
* @param - list of items to delivery that each of them points to delivery profile and delivery rule.
|
|
11
|
+
* @returns Each delivery option has a list of items that can be delivered by it - the chosen one
|
|
12
|
+
* on Errors throw a business error from TC to catch and trigger destination completion
|
|
13
|
+
*/
|
|
14
|
+
(lineItems: DeliverableItem[], options?: GetDeliverySolutionsOptions | undefined): Promise<GetDeliverySolutionsResponse>;
|
|
15
|
+
}
|
|
16
|
+
export { AdditionalCharge, Address, AddressLocation, AddressStreetOneOf, ApplicableLineItems, ApplicationError, Carrier, CatalogReference, ChargeType, DeliverableItem, DeliveryAllocation, DeliveryCarrierError, DeliveryCost, DeliveryLogistics, DeliveryRatesGateway, DeliverySolution, DeliveryTimeSlot, Details, DetailsKindOneOf, ExternalReference, FieldViolation, FullAddressContactDetails, GetDeliverySolutionsOptions, GetDeliverySolutionsRequest, GetDeliverySolutionsResponse, PhysicalProperties, PickupDetails, PickupMethod, Region, RuleType, StreetAddress, Subdivision, SubdivisionType, SystemError, UserPreference, ValidationError, VatId, VatType, WeightUnit, } from './gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js';
|
package/build/internal/es/src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { getDeliverySolutions as universalGetDeliverySolutions, } from './gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js';
|
|
2
|
+
export const __metadata = { PACKAGE_NAME: '@wix/ecom' };
|
|
3
|
+
export function getDeliverySolutions(httpClient) {
|
|
4
|
+
return (lineItems, options) => universalGetDeliverySolutions(lineItems, options,
|
|
5
|
+
// @ts-ignore
|
|
6
|
+
{ httpClient });
|
|
7
|
+
}
|
|
8
|
+
export { ChargeType, PickupMethod, RuleType, SubdivisionType, VatType, WeightUnit, } from './gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.universal.js';
|
|
9
|
+
//# sourceMappingURL=gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.js","sourceRoot":"","sources":["../../../../src/gateways-ecom-v1-delivery-rates-gateway-delivery-solutions.public.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,oBAAoB,IAAI,6BAA6B,GACtD,MAAM,2EAA2E,CAAC;AAEnF,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC;AAExD,MAAM,UAAU,oBAAoB,CAClC,UAAsB;IAEtB,OAAO,CACL,SAA4B,EAC5B,OAGC,EACD,EAAE,CACF,6BAA6B,CAC3B,SAAS,EACT,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAeD,OAAO,EASL,UAAU,EAmBV,YAAY,EAEZ,QAAQ,EAGR,eAAe,EAKf,OAAO,EACP,UAAU,GACX,MAAM,2EAA2E,CAAC"}
|