@things-factory/integration-sellercraft 4.2.11 → 4.3.0-alpha.0
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/dist-server/constants/index.js +5 -1
- package/dist-server/constants/index.js.map +1 -1
- package/dist-server/controllers/index.js +5 -1
- package/dist-server/controllers/index.js.map +1 -1
- package/dist-server/controllers/sellercraft/apis/index.js +5 -1
- package/dist-server/controllers/sellercraft/apis/index.js.map +1 -1
- package/dist-server/controllers/sellercraft/index.js +5 -1
- package/dist-server/controllers/sellercraft/index.js.map +1 -1
- package/dist-server/controllers/sellercraft-channel-integration/apis/index.js +5 -1
- package/dist-server/controllers/sellercraft-channel-integration/apis/index.js.map +1 -1
- package/dist-server/controllers/sellercraft-channel-integration/index.js +5 -1
- package/dist-server/controllers/sellercraft-channel-integration/index.js.map +1 -1
- package/dist-server/index.js +5 -1
- package/dist-server/index.js.map +1 -1
- package/dist-server/routers/sellercraft-router.js +13 -4
- package/dist-server/routers/sellercraft-router.js.map +1 -1
- package/dist-server/service/index.js +5 -1
- package/dist-server/service/index.js.map +1 -1
- package/package.json +15 -15
- package/server/routers/sellercraft-router.ts +13 -4
@@ -1,7 +1,11 @@
|
|
1
1
|
"use strict";
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
3
|
if (k2 === undefined) k2 = k;
|
4
|
-
Object.
|
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);
|
5
9
|
}) : (function(o, m, k, k2) {
|
6
10
|
if (k2 === undefined) k2 = k;
|
7
11
|
o[k2] = m[k];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/constants/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA0B;AAC1B,yDAAsC"}
|
@@ -1,7 +1,11 @@
|
|
1
1
|
"use strict";
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
3
|
if (k2 === undefined) k2 = k;
|
4
|
-
Object.
|
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);
|
5
9
|
}) : (function(o, m, k, k2) {
|
6
10
|
if (k2 === undefined) k2 = k;
|
7
11
|
o[k2] = m[k];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/controllers/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/controllers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yBAAsB;AAEtB,oDAAiC;AACjC,oEAAiD;AACjD,wEAAqD"}
|
@@ -1,7 +1,11 @@
|
|
1
1
|
"use strict";
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
3
|
if (k2 === undefined) k2 = k;
|
4
|
-
Object.
|
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);
|
5
9
|
}) : (function(o, m, k, k2) {
|
6
10
|
if (k2 === undefined) k2 = k;
|
7
11
|
o[k2] = m[k];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../server/controllers/sellercraft/apis/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../server/controllers/sellercraft/apis/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAsB;AACtB,sDAAmC;AACnC,yDAAsC;AACtC,4DAAyC;AACzC,4DAAyC;AACzC,2DAAwC;AACxC,6DAA0C;AAC1C,mDAAgC"}
|
@@ -1,7 +1,11 @@
|
|
1
1
|
"use strict";
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
3
|
if (k2 === undefined) k2 = k;
|
4
|
-
Object.
|
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);
|
5
9
|
}) : (function(o, m, k, k2) {
|
6
10
|
if (k2 === undefined) k2 = k;
|
7
11
|
o[k2] = m[k];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/controllers/sellercraft/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/controllers/sellercraft/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wDAAmD;AACnD,6CAA8B;AAC9B,uDAA0C;AAE1C,gDAA6B;AAE7B,gCAAc,CAAC,gBAAgB,CAAC,aAAa,EAAE,wBAAM,EAAE,IAAI,CAAC,CAAA"}
|
@@ -1,7 +1,11 @@
|
|
1
1
|
"use strict";
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
3
|
if (k2 === undefined) k2 = k;
|
4
|
-
Object.
|
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);
|
5
9
|
}) : (function(o, m, k, k2) {
|
6
10
|
if (k2 === undefined) k2 = k;
|
7
11
|
o[k2] = m[k];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../server/controllers/sellercraft-channel-integration/apis/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../server/controllers/sellercraft-channel-integration/apis/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAsB;AACtB,8DAA2C;AAC3C,uEAAoD;AACpD,iEAA8C;AAC9C,yDAAsC;AACtC,2DAAwC"}
|
@@ -1,7 +1,11 @@
|
|
1
1
|
"use strict";
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
3
|
if (k2 === undefined) k2 = k;
|
4
|
-
Object.
|
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);
|
5
9
|
}) : (function(o, m, k, k2) {
|
6
10
|
if (k2 === undefined) k2 = k;
|
7
11
|
o[k2] = m[k];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/controllers/sellercraft-channel-integration/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/controllers/sellercraft-channel-integration/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gGAAyF;AACzF,6CAA8B;AAC9B,uDAA0C;AAE1C,oEAAiD;AAEjD,sEAAgC,CAAC,gBAAgB,CAAC,+BAA+B,EAAE,wBAAM,EAAE,IAAI,CAAC,CAAA"}
|
package/dist-server/index.js
CHANGED
@@ -1,7 +1,11 @@
|
|
1
1
|
"use strict";
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
3
|
if (k2 === undefined) k2 = k;
|
4
|
-
Object.
|
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);
|
5
9
|
}) : (function(o, m, k, k2) {
|
6
10
|
if (k2 === undefined) k2 = k;
|
7
11
|
o[k2] = m[k];
|
package/dist-server/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../server/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../server/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oBAAiB;AAEjB,+CAA4B;AAC5B,gDAA6B;AAC7B,gDAA6B;AAC7B,4CAAyB;AACzB,8CAA2B"}
|
@@ -178,8 +178,11 @@ exports.sellercraftRouter.post('/sellercraft/store/update-order-status', async (
|
|
178
178
|
};
|
179
179
|
let responseBody = { operation_id: (0, v4_1.default)() };
|
180
180
|
try {
|
181
|
-
|
182
|
-
|
181
|
+
try {
|
182
|
+
result = await integration_marketplace_1.StoreAPI.updateOrderStatus(mappedStore, reqBody);
|
183
|
+
debug(result);
|
184
|
+
}
|
185
|
+
catch (e) { }
|
183
186
|
if (result === null || result === void 0 ? void 0 : result.requiredDocument) {
|
184
187
|
// call document api and ingest channel order package
|
185
188
|
const order = await integration_marketplace_1.StoreAPI.getStoreOrder(mappedStore, { orderId: reqBody.orderId });
|
@@ -201,7 +204,7 @@ exports.sellercraftRouter.post('/sellercraft/store/update-order-status', async (
|
|
201
204
|
let newOrderPackage = {
|
202
205
|
channel_shop_id: mappedStore.channelShopId,
|
203
206
|
native_order_id: reqBody.orderId,
|
204
|
-
native_package_id: orderPackage.packageId,
|
207
|
+
native_package_id: orderPackage.packageId.toString(),
|
205
208
|
shipping_tracking_code: orderPackage.trackingNumber,
|
206
209
|
shipping_type_value: (orderPackage === null || orderPackage === void 0 ? void 0 : orderPackage.shippingType) ? orderPackage.shippingType : constants_1.SHIPPING_TYPE.DROP_SHIPPING,
|
207
210
|
warehouse_code: constants_1.SHIPPING_TYPE.DROP_SHIPPING,
|
@@ -209,7 +212,13 @@ exports.sellercraftRouter.post('/sellercraft/store/update-order-status', async (
|
|
209
212
|
name: orderPackage.shippingProvider,
|
210
213
|
is_cod_supported: (orderPackage === null || orderPackage === void 0 ? void 0 : orderPackage.isCodSupport) ? orderPackage.isCodSupport : false
|
211
214
|
},
|
212
|
-
documents: orderDocument
|
215
|
+
documents: orderDocument.map(doc => {
|
216
|
+
return {
|
217
|
+
file: doc.file,
|
218
|
+
file_type_value: doc.fileTypeValue,
|
219
|
+
mime_type: doc.mimeType
|
220
|
+
};
|
221
|
+
}) || [],
|
213
222
|
shipper_last_mile: {
|
214
223
|
name: orderPackage.shippingProvider,
|
215
224
|
is_cod_supported: (orderPackage === null || orderPackage === void 0 ? void 0 : orderPackage.isCodSupport) ? orderPackage.isCodSupport : false
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"sellercraft-router.js","sourceRoot":"","sources":["../../server/routers/sellercraft-router.ts"],"names":[],"mappings":";;;;;;AAAA,4DAA+B;AAC/B,iDAA0B;AAE1B,6CAA4C;AAC5C,qFAAkE;AAElE,4CAAsD;AAEtD,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,2DAA2D,CAAC,CAAA;AAE9E,QAAA,iBAAiB,GAAG,IAAI,oBAAM,EAAE,CAAA;AAE7C,yBAAiB,CAAC,IAAI,CAA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,UAAU;YACV,SAAS;YACT,UAAU;SACX,CAAA;IACH,CAAC,CAAC,CAAA;IAEF,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACxC,IAAI;YACF,IAAI,OAAO,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAA;YACzB,MAAM,kCAAQ,CAAC,sBAAsB,CAAC,WAAW,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAA;YACnF,OAAO,CAAC,IAAI,GAAG,kBAAkB,CAAA;YACjC,OAAO,CAAC,MAAM,GAAG,GAAG,CAAA;YACpB,OAAO,CAAC,IAAI,GAAG,WAAW,CAAA;SAC3B;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,CAAC,IAAI,GAAG,kBAAkB,CAAA;YACjC,OAAO,CAAC,MAAM,GAAG,GAAG,CAAA;YACpB,OAAO,CAAC,IAAI,GAAG,CAAC,CAAC,OAAO,CAAA;SACzB;KACF;AACH,CAAC,CAAC,CAAA"}
|
@@ -1,7 +1,11 @@
|
|
1
1
|
"use strict";
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
3
|
if (k2 === undefined) k2 = k;
|
4
|
-
Object.
|
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);
|
5
9
|
}) : (function(o, m, k, k2) {
|
6
10
|
if (k2 === undefined) k2 = k;
|
7
11
|
o[k2] = m[k];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/service/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/service/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,yBAAyB;AACzB,4DAAyC;AAEzC,mCAAmC;AACnC,+CAAkG;AAClG,+DAA4H;AAiBnH,gHAjBqD,+BAA+B,OAiBrD;AAf3B,QAAA,QAAQ,GAAG;IACtB,cAAc;IACf,GAAG,sBAAmB;IACrB,GAAG,8BAA0B;CAC9B,CAAA;AAGY,QAAA,MAAM,GAAG;IACpB,eAAe,EAAE;QACf,sBAAsB;QACxB,GAAG,uBAAoB;QACrB,GAAG,+BAA+B;KACnC;CACF,CAAA"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@things-factory/integration-sellercraft",
|
3
|
-
"version": "4.
|
3
|
+
"version": "4.3.0-alpha.0",
|
4
4
|
"main": "dist-server/index.js",
|
5
5
|
"browser": "client/index.js",
|
6
6
|
"things-factory": true,
|
@@ -24,19 +24,19 @@
|
|
24
24
|
"migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
|
25
25
|
},
|
26
26
|
"dependencies": {
|
27
|
-
"@things-factory/apptool-ui": "^4.
|
28
|
-
"@things-factory/auth-ui": "^4.
|
29
|
-
"@things-factory/biz-base": "^4.
|
30
|
-
"@things-factory/code-ui": "^4.
|
31
|
-
"@things-factory/context-ui": "^4.
|
32
|
-
"@things-factory/grist-ui": "^4.
|
33
|
-
"@things-factory/i18n-base": "^4.
|
34
|
-
"@things-factory/integration-marketplace": "^4.
|
35
|
-
"@things-factory/integration-ui": "^4.
|
36
|
-
"@things-factory/more-ui": "^4.
|
37
|
-
"@things-factory/resource-ui": "^4.
|
38
|
-
"@things-factory/setting-ui": "^4.
|
39
|
-
"@things-factory/system-ui": "^4.
|
27
|
+
"@things-factory/apptool-ui": "^4.3.0-alpha.0",
|
28
|
+
"@things-factory/auth-ui": "^4.3.0-alpha.0",
|
29
|
+
"@things-factory/biz-base": "^4.3.0-alpha.0",
|
30
|
+
"@things-factory/code-ui": "^4.3.0-alpha.0",
|
31
|
+
"@things-factory/context-ui": "^4.3.0-alpha.0",
|
32
|
+
"@things-factory/grist-ui": "^4.3.0-alpha.0",
|
33
|
+
"@things-factory/i18n-base": "^4.3.0-alpha.0",
|
34
|
+
"@things-factory/integration-marketplace": "^4.3.0-alpha.0",
|
35
|
+
"@things-factory/integration-ui": "^4.3.0-alpha.0",
|
36
|
+
"@things-factory/more-ui": "^4.3.0-alpha.0",
|
37
|
+
"@things-factory/resource-ui": "^4.3.0-alpha.0",
|
38
|
+
"@things-factory/setting-ui": "^4.3.0-alpha.0",
|
39
|
+
"@things-factory/system-ui": "^4.3.0-alpha.0",
|
40
40
|
"debug": "^4.1.1",
|
41
41
|
"node-fetch": "^2.6.0",
|
42
42
|
"querystring": "^0.2.1"
|
@@ -51,5 +51,5 @@
|
|
51
51
|
"nock": "^13.0.2",
|
52
52
|
"should": "^13.2.3"
|
53
53
|
},
|
54
|
-
"gitHead": "
|
54
|
+
"gitHead": "6467d1b2a5b2f8abb1bc3982e4651a5742ad4043"
|
55
55
|
}
|
@@ -193,8 +193,10 @@ sellercraftRouter.post('/sellercraft/store/update-order-status', async (context,
|
|
193
193
|
|
194
194
|
let responseBody: any = { operation_id: uuid() }
|
195
195
|
try {
|
196
|
-
|
197
|
-
|
196
|
+
try {
|
197
|
+
result = await StoreAPI.updateOrderStatus(mappedStore, reqBody)
|
198
|
+
debug(result)
|
199
|
+
} catch (e) {}
|
198
200
|
|
199
201
|
if (result?.requiredDocument) {
|
200
202
|
// call document api and ingest channel order package
|
@@ -220,7 +222,7 @@ sellercraftRouter.post('/sellercraft/store/update-order-status', async (context,
|
|
220
222
|
{
|
221
223
|
channel_shop_id: mappedStore.channelShopId,
|
222
224
|
native_order_id: reqBody.orderId,
|
223
|
-
native_package_id: orderPackage.packageId,
|
225
|
+
native_package_id: orderPackage.packageId.toString(),
|
224
226
|
shipping_tracking_code: orderPackage.trackingNumber,
|
225
227
|
shipping_type_value: orderPackage?.shippingType ? orderPackage.shippingType : SHIPPING_TYPE.DROP_SHIPPING,
|
226
228
|
warehouse_code: SHIPPING_TYPE.DROP_SHIPPING,
|
@@ -228,7 +230,14 @@ sellercraftRouter.post('/sellercraft/store/update-order-status', async (context,
|
|
228
230
|
name: orderPackage.shippingProvider,
|
229
231
|
is_cod_supported: orderPackage?.isCodSupport ? orderPackage.isCodSupport : false
|
230
232
|
},
|
231
|
-
documents:
|
233
|
+
documents:
|
234
|
+
orderDocument.map(doc => {
|
235
|
+
return {
|
236
|
+
file: doc.file,
|
237
|
+
file_type_value: doc.fileTypeValue,
|
238
|
+
mime_type: doc.mimeType
|
239
|
+
}
|
240
|
+
}) || [],
|
232
241
|
shipper_last_mile: {
|
233
242
|
name: orderPackage.shippingProvider,
|
234
243
|
is_cod_supported: orderPackage?.isCodSupport ? orderPackage.isCodSupport : false
|