@things-factory/integration-sellercraft 7.1.2 → 7.1.6
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/integration-sellercraft",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.6",
|
|
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": "^7.0.0",
|
|
28
|
-
"@things-factory/apptool-ui": "^7.1.
|
|
28
|
+
"@things-factory/apptool-ui": "^7.1.3",
|
|
29
29
|
"@things-factory/auth-ui": "^7.1.2",
|
|
30
30
|
"@things-factory/biz-base": "^7.1.2",
|
|
31
31
|
"@things-factory/code-ui": "^7.1.2",
|
|
32
32
|
"@things-factory/context-ui": "^7.1.2",
|
|
33
33
|
"@things-factory/i18n-base": "^7.1.2",
|
|
34
|
-
"@things-factory/integration-marketplace": "^7.1.
|
|
34
|
+
"@things-factory/integration-marketplace": "^7.1.3",
|
|
35
35
|
"@things-factory/integration-ui": "^7.1.2",
|
|
36
36
|
"@things-factory/more-ui": "^7.1.2",
|
|
37
37
|
"@things-factory/resource-ui": "^7.1.2",
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"nock": "^13.0.2",
|
|
50
50
|
"should": "^13.2.3"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "8d74f854d839517278f24af036269d1fc6825fa8"
|
|
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
|
}
|