@things-factory/integration-sellercraft 8.0.0-alpha.2 → 8.0.0-alpha.5
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@things-factory/integration-sellercraft",
|
3
|
-
"version": "8.0.0-alpha.
|
3
|
+
"version": "8.0.0-alpha.5",
|
4
4
|
"main": "dist-server/index.js",
|
5
5
|
"browser": "client/index.js",
|
6
6
|
"things-factory": true,
|
@@ -25,13 +25,13 @@
|
|
25
25
|
},
|
26
26
|
"dependencies": {
|
27
27
|
"@operato/data-grist": "^8.0.0-alpha",
|
28
|
-
"@things-factory/apptool-ui": "^8.0.0-alpha.
|
28
|
+
"@things-factory/apptool-ui": "^8.0.0-alpha.4",
|
29
29
|
"@things-factory/auth-ui": "^8.0.0-alpha.2",
|
30
30
|
"@things-factory/biz-base": "^8.0.0-alpha.2",
|
31
31
|
"@things-factory/code-ui": "^8.0.0-alpha.2",
|
32
32
|
"@things-factory/context-ui": "^8.0.0-alpha.2",
|
33
33
|
"@things-factory/i18n-base": "^8.0.0-alpha.2",
|
34
|
-
"@things-factory/integration-marketplace": "^8.0.0-alpha.
|
34
|
+
"@things-factory/integration-marketplace": "^8.0.0-alpha.4",
|
35
35
|
"@things-factory/integration-ui": "^8.0.0-alpha.2",
|
36
36
|
"@things-factory/more-ui": "^8.0.0-alpha.2",
|
37
37
|
"@things-factory/resource-ui": "^8.0.0-alpha.2",
|
@@ -49,5 +49,5 @@
|
|
49
49
|
"nock": "^13.0.2",
|
50
50
|
"should": "^13.2.3"
|
51
51
|
},
|
52
|
-
"gitHead": "
|
52
|
+
"gitHead": "d226c264ff0d986257cdce930ef26f746d45bd6a"
|
53
53
|
}
|
@@ -125,7 +125,7 @@ sellercraftRouter.post('/sellercraft/store/update-order-status', async (context,
|
|
125
125
|
}) || []
|
126
126
|
),
|
127
127
|
isSOF: requestBody?.seller_logistics,
|
128
|
-
packageIds: [...new Set(packageIds)]
|
128
|
+
packageIds: [...new Set(packageIds)],
|
129
129
|
locations:
|
130
130
|
mappedStore.platform == 'shopify'
|
131
131
|
? requestBody?.order_items.map(oi => {
|
@@ -175,36 +175,35 @@ sellercraftRouter.post('/sellercraft/store/update-order-status', async (context,
|
|
175
175
|
}
|
176
176
|
|
177
177
|
// Order Package Payload
|
178
|
-
let newOrderPackage: any =
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
} || {}
|
178
|
+
let newOrderPackage: any = {
|
179
|
+
channel_shop_id: mappedStore.channelShopId,
|
180
|
+
native_order_id: reqBody.orderId,
|
181
|
+
native_package_id: orderPackage.packageId.toString(),
|
182
|
+
shipping_tracking_code: orderPackage.trackingNumber,
|
183
|
+
shipping_type_value: orderPackage?.shippingType ? orderPackage.shippingType : SHIPPING_TYPE.DROP_SHIPPING,
|
184
|
+
warehouse_code: SHIPPING_TYPE.DROP_SHIPPING,
|
185
|
+
shipper: {
|
186
|
+
name: orderPackage.shippingProvider,
|
187
|
+
is_cod_supported: orderPackage?.isCodSupport ? orderPackage.isCodSupport : false
|
188
|
+
},
|
189
|
+
documents:
|
190
|
+
orderDocument?.map(doc => {
|
191
|
+
return {
|
192
|
+
file: doc.file,
|
193
|
+
file_type_value: doc.fileTypeValue,
|
194
|
+
mime_type: doc.mimeType
|
195
|
+
}
|
196
|
+
}) || [],
|
197
|
+
shipper_last_mile: {
|
198
|
+
name: orderPackage.shippingProvider,
|
199
|
+
is_cod_supported: orderPackage?.isCodSupport ? orderPackage.isCodSupport : false
|
200
|
+
},
|
201
|
+
order_item_ids: orderPackage?.orderListIdList
|
202
|
+
? orderPackage.orderListIdList
|
203
|
+
: reqBody.orderItems.map(oi => {
|
204
|
+
return oi.order_item_id
|
205
|
+
})
|
206
|
+
}
|
208
207
|
|
209
208
|
responseBody.package = newOrderPackage
|
210
209
|
}
|