@things-factory/integration-sellercraft 4.3.179 → 4.3.190
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.
@@ -7,9 +7,16 @@ function initiateOrderShipment() {
|
|
7
7
|
method: 'post',
|
8
8
|
path: '/order/ship',
|
9
9
|
denormalize(req) {
|
10
|
-
const { accountId: account_id, orderId: order_id, packageId: package_id } = req;
|
10
|
+
const { accountId: account_id, orderId: order_id, packageId: package_id, lmdOption, trackingNo, awb, shipperName } = req;
|
11
|
+
let payload = { account_id, order_id, package_id };
|
12
|
+
if (lmdOption) {
|
13
|
+
payload = Object.assign(Object.assign({}, payload), { tracking_number: trackingNo, documents: {
|
14
|
+
type: 'AWB',
|
15
|
+
pdf_url: awb
|
16
|
+
}, shipper_name: shipperName });
|
17
|
+
}
|
11
18
|
return {
|
12
|
-
payload
|
19
|
+
payload
|
13
20
|
};
|
14
21
|
},
|
15
22
|
normalize(res) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"initiate-order-shipment.js","sourceRoot":"","sources":["../../../../server/controllers/sellercraft/apis/initiate-order-shipment.ts"],"names":[],"mappings":";AAAA,+FAA+F;;;AAE/F,SAAgB,qBAAqB;IACnC,OAAO;QACL,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,aAAa;QACnB,WAAW,CAAC,GAAG;YACb,MAAM,
|
1
|
+
{"version":3,"file":"initiate-order-shipment.js","sourceRoot":"","sources":["../../../../server/controllers/sellercraft/apis/initiate-order-shipment.ts"],"names":[],"mappings":";AAAA,+FAA+F;;;AAE/F,SAAgB,qBAAqB;IACnC,OAAO;QACL,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,aAAa;QACnB,WAAW,CAAC,GAAG;YACb,MAAM,EACJ,SAAS,EAAE,UAAU,EACrB,OAAO,EAAE,QAAQ,EACjB,SAAS,EAAE,UAAU,EACrB,SAAS,EACT,UAAU,EACV,GAAG,EACH,WAAW,EACZ,GAAG,GAAG,CAAA;YACP,IAAI,OAAO,GAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAA;YACvD,IAAI,SAAS,EAAE;gBACb,OAAO,mCACF,OAAO,KACV,eAAe,EAAE,UAAU,EAC3B,SAAS,EAAE;wBACT,IAAI,EAAE,KAAK;wBACX,OAAO,EAAE,GAAG;qBACb,EACD,YAAY,EAAE,WAAW,GAC1B,CAAA;aACF;YACD,OAAO;gBACL,OAAO;aACR,CAAA;QACH,CAAC;QACD,SAAS,CAAC,GAAG;YACX,MAAM,EACJ,aAAa,EAAE,YAAY,EAC3B,WAAW,EAAE,UAAU,EACvB,cAAc,EAAE,aAAa,EAC7B,eAAe,EAAE,cAAc,EAChC,GAAG,GAAG,CAAC,IAAI,CAAA;YAEZ,OAAO;gBACL,YAAY;gBACZ,UAAU;gBACV,aAAa;gBACb,cAAc;aACf,CAAA;QACH,CAAC;KACF,CAAA;AACH,CAAC;AA9CD,sDA8CC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@things-factory/integration-sellercraft",
|
3
|
-
"version": "4.3.
|
3
|
+
"version": "4.3.190",
|
4
4
|
"main": "dist-server/index.js",
|
5
5
|
"browser": "client/index.js",
|
6
6
|
"things-factory": true,
|
@@ -30,11 +30,11 @@
|
|
30
30
|
"@things-factory/context-ui": "^4.3.179",
|
31
31
|
"@things-factory/grist-ui": "^4.3.179",
|
32
32
|
"@things-factory/i18n-base": "^4.3.179",
|
33
|
-
"@things-factory/integration-marketplace": "^4.3.
|
34
|
-
"@things-factory/integration-ui": "^4.3.
|
33
|
+
"@things-factory/integration-marketplace": "^4.3.190",
|
34
|
+
"@things-factory/integration-ui": "^4.3.190",
|
35
35
|
"@things-factory/more-ui": "^4.3.179",
|
36
36
|
"@things-factory/resource-ui": "^4.3.179",
|
37
|
-
"@things-factory/setting-ui": "^4.3.
|
37
|
+
"@things-factory/setting-ui": "^4.3.186",
|
38
38
|
"@things-factory/system-ui": "^4.3.179",
|
39
39
|
"debug": "^4.1.1",
|
40
40
|
"node-fetch": "^2.6.0",
|
@@ -50,5 +50,5 @@
|
|
50
50
|
"nock": "^13.0.2",
|
51
51
|
"should": "^13.2.3"
|
52
52
|
},
|
53
|
-
"gitHead": "
|
53
|
+
"gitHead": "9fc85f3d95eeddd2191d156d99fc77bcc81b5071"
|
54
54
|
}
|
@@ -5,9 +5,29 @@ export function initiateOrderShipment() {
|
|
5
5
|
method: 'post',
|
6
6
|
path: '/order/ship',
|
7
7
|
denormalize(req) {
|
8
|
-
const {
|
8
|
+
const {
|
9
|
+
accountId: account_id,
|
10
|
+
orderId: order_id,
|
11
|
+
packageId: package_id,
|
12
|
+
lmdOption,
|
13
|
+
trackingNo,
|
14
|
+
awb,
|
15
|
+
shipperName
|
16
|
+
} = req
|
17
|
+
let payload: any = { account_id, order_id, package_id }
|
18
|
+
if (lmdOption) {
|
19
|
+
payload = {
|
20
|
+
...payload,
|
21
|
+
tracking_number: trackingNo,
|
22
|
+
documents: {
|
23
|
+
type: 'AWB',
|
24
|
+
pdf_url: awb
|
25
|
+
},
|
26
|
+
shipper_name: shipperName
|
27
|
+
}
|
28
|
+
}
|
9
29
|
return {
|
10
|
-
payload
|
30
|
+
payload
|
11
31
|
}
|
12
32
|
},
|
13
33
|
normalize(res) {
|