@things-factory/integration-sellercraft 4.2.11 → 4.2.12

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.
@@ -14,10 +14,10 @@ function ingestChannelOrder() {
14
14
  organisation_id: order.organisationId,
15
15
  channel_shop_id: order.channelShopId,
16
16
  native_order_id: order.id.toString(),
17
- ordered_at_date: new Date(order.createdAt).toISOString(),
18
- ordered_at_time: new Date(order.createdAt).toISOString(),
19
- updated_at_date: new Date(order.updatedAt).toISOString(),
20
- updated_at_time: new Date(order.updatedAt).toISOString(),
17
+ ordered_at_date: new Date(order.createdAt).toISOString().slice(0, -5) + 'Z',
18
+ ordered_at_time: new Date(order.createdAt).toISOString().slice(0, -5) + 'Z',
19
+ updated_at_date: new Date(order.updatedAt).toISOString().slice(0, -5) + 'Z',
20
+ updated_at_time: new Date(order.updatedAt).toISOString().slice(0, -5) + 'Z',
21
21
  customer_first_name: order.custFirstName,
22
22
  customer_last_name: order.custLastName,
23
23
  charges: order.charges.map(charge => {
@@ -60,10 +60,10 @@ function ingestChannelOrder() {
60
60
  native_item_id: orderItem.id.toString(),
61
61
  native_variant_id: orderItem.variationId.toString(),
62
62
  currency_code: orderItem.currency,
63
- ordered_at_date: new Date(order.createdAt).toISOString(),
64
- ordered_at_time: new Date(order.createdAt).toISOString(),
65
- updated_at_date: new Date(order.updatedAt).toISOString(),
66
- updated_at_time: new Date(order.updatedAt).toISOString(),
63
+ ordered_at_date: new Date(order.createdAt).toISOString().slice(0, -5) + 'Z',
64
+ ordered_at_time: new Date(order.createdAt).toISOString().slice(0, -5) + 'Z',
65
+ updated_at_date: new Date(order.updatedAt).toISOString().slice(0, -5) + 'Z',
66
+ updated_at_time: new Date(order.updatedAt).toISOString().slice(0, -5) + 'Z',
67
67
  sla_expires_at: (orderItem === null || orderItem === void 0 ? void 0 : orderItem.slaExpiresAt) ? new Date(orderItem.slaExpiresAt).toISOString() : null,
68
68
  charges: orderItem.charges.map(charge => {
69
69
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"ingest-channel-order.js","sourceRoot":"","sources":["../../../../server/controllers/sellercraft-channel-integration/apis/ingest-channel-order.ts"],"names":[],"mappings":";AAAA,4FAA4F;;;AAE5F,kDAAiD;AAEjD,SAAgB,kBAAkB;IAChC,OAAO;QACL,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,uBAAuB;QAC7B,WAAW,CAAC,GAAG;YACb,MAAM,EAAE,MAAM,EAAE,GAAG,GAAG,CAAA;YAEtB,IAAI,SAAS,GAAG,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE;gBACjC,OAAO;oBACL,eAAe,EAAE,KAAK,CAAC,cAAc;oBACrC,eAAe,EAAE,KAAK,CAAC,aAAa;oBACpC,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,QAAQ,EAAE;oBACpC,eAAe,EAAE,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,WAAW,EAAE;oBACxD,eAAe,EAAE,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,WAAW,EAAE;oBACxD,eAAe,EAAE,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,WAAW,EAAE;oBACxD,eAAe,EAAE,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,WAAW,EAAE;oBACxD,mBAAmB,EAAE,KAAK,CAAC,aAAa;oBACxC,kBAAkB,EAAE,KAAK,CAAC,YAAY;oBACtC,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE;wBAClC,OAAO;4BACL,iBAAiB,EAAE,MAAM,CAAC,IAAI;4BAC9B,YAAY,EAAE,UAAU,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC;4BACjD,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC;yBAChD,CAAA;oBACH,CAAC,CAAC;oBACF,gBAAgB,E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,KAAK,CAAC,SAAS,CAAC,CAAC,WAAW,EAAE;4BACxD,eAAe,EAAE,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,WAAW,EAAE;4BACxD,eAAe,EAAE,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,WAAW,EAAE;4BACxD,eAAe,EAAE,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,WAAW,EAAE;4BACxD,cAAc,EAAE,CAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,YAAY,EAAC,CAAC,CAAC,IAAI,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,IAAI;4BAC/F,OAAO,EAAE,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE;gCACtC,OAAO;oCACL,iBAAiB,EAAE,MAAM,CAAC,IAAI;oCAC9B,YAAY,EAAE,UAAU,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC;oCACjD,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC;iCAChD,CAAA;4BACH,CAAC,CAAC;4BACF,kBAAkB,EAAE,wBAAY,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC;yBACpD,CAAA;oBACH,CAAC,CAAC;oBACF,gBAAgB,EAAE,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,KAAK;iBAC/B,CAAA;YACH,CAAC,CAAC,CAAA;YAEF,OAAO;gBACL,OAAO,EAAE,CAAC,GAAG,SAAS,CAAC;aACxB,CAAA;QACH,CAAC;QACD,SAAS,CAAC,GAAG;YACX,OAAO,GAAG,CAAA;QACZ,CAAC;KACF,CAAA;AACH,CAAC;AArFD,gDAqFC"}
1
+ {"version":3,"file":"ingest-channel-order.js","sourceRoot":"","sources":["../../../../server/controllers/sellercraft-channel-integration/apis/ingest-channel-order.ts"],"names":[],"mappings":";AAAA,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AL,KAAK,uBAAL,KAAK,CAAE,KAAK;iBAC/B,CAAA;YACH,CAAC,CAAC,CAAA;YAEF,OAAO;gBACL,OAAO,EAAE,CAAC,GAAG,SAAS,CAAC;aACxB,CAAA;QACH,CAAC;QACD,SAAS,CAAC,GAAG;YACX,OAAO,GAAG,CAAA;QACZ,CAAC;KACF,CAAA;AACH,CAAC;AArFD,gDAqFC"}
@@ -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
- result = await integration_marketplace_1.StoreAPI.updateOrderStatus(mappedStore, reqBody);
182
- debug(result);
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,CAAC,yCAAyC,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;;IACxF,MAAM,mCAAmC,GAAG,YAAM,CAAC,GAAG,CAAC,qCAAqC,EAAE,EAAE,CAAC,CAAA;IACjG,MAAM,EAAE,gBAAgB,EAAE,MAAM,EAAE,aAAa,EAAE,GAAG,mCAAmC,CAAA;IAEvF,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,CAAA;IAE5C,IAAI,MAAM,KAAK,OAAO;QAAE,OAAO,CAAC,KAAK,CAAC,GAAG,EAAE,2BAA2B,CAAC,CAAA;IAEvE,MAAM,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,IAAI,CAAA;IAExC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,WAAW,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QAC3C,IAAI,KAAK,GAAQ,EAAE,CAAA,CAAC,sBAAsB;QAC1C,IAAI,MAAM,CAAA;QAEV,qJAAqJ;QACrJ,IAAI,QAAQ,GAAG,GAAG,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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/integration-sellercraft",
3
- "version": "4.2.11",
3
+ "version": "4.2.12",
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.1.40",
28
- "@things-factory/auth-ui": "^4.1.40",
29
- "@things-factory/biz-base": "^4.1.40",
30
- "@things-factory/code-ui": "^4.1.40",
31
- "@things-factory/context-ui": "^4.1.40",
32
- "@things-factory/grist-ui": "^4.1.40",
33
- "@things-factory/i18n-base": "^4.1.40",
34
- "@things-factory/integration-marketplace": "^4.2.11",
35
- "@things-factory/integration-ui": "^4.1.40",
36
- "@things-factory/more-ui": "^4.1.40",
37
- "@things-factory/resource-ui": "^4.1.40",
38
- "@things-factory/setting-ui": "^4.1.40",
39
- "@things-factory/system-ui": "^4.1.40",
27
+ "@things-factory/apptool-ui": "^4.2.12",
28
+ "@things-factory/auth-ui": "^4.2.12",
29
+ "@things-factory/biz-base": "^4.2.12",
30
+ "@things-factory/code-ui": "^4.2.12",
31
+ "@things-factory/context-ui": "^4.2.12",
32
+ "@things-factory/grist-ui": "^4.2.12",
33
+ "@things-factory/i18n-base": "^4.2.12",
34
+ "@things-factory/integration-marketplace": "^4.2.12",
35
+ "@things-factory/integration-ui": "^4.2.12",
36
+ "@things-factory/more-ui": "^4.2.12",
37
+ "@things-factory/resource-ui": "^4.2.12",
38
+ "@things-factory/setting-ui": "^4.2.12",
39
+ "@things-factory/system-ui": "^4.2.12",
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": "dd17e7cfd9d66ec54cc108501185557bd4bded7c"
54
+ "gitHead": "fea26f2ea238a3a279c7ab6427cd8aedcd68926b"
55
55
  }
@@ -14,10 +14,10 @@ export function ingestChannelOrder() {
14
14
  organisation_id: order.organisationId,
15
15
  channel_shop_id: order.channelShopId,
16
16
  native_order_id: order.id.toString(),
17
- ordered_at_date: new Date(order.createdAt).toISOString(),
18
- ordered_at_time: new Date(order.createdAt).toISOString(),
19
- updated_at_date: new Date(order.updatedAt).toISOString(),
20
- updated_at_time: new Date(order.updatedAt).toISOString(),
17
+ ordered_at_date: new Date(order.createdAt).toISOString().slice(0, -5) + 'Z',
18
+ ordered_at_time: new Date(order.createdAt).toISOString().slice(0, -5) + 'Z',
19
+ updated_at_date: new Date(order.updatedAt).toISOString().slice(0, -5) + 'Z',
20
+ updated_at_time: new Date(order.updatedAt).toISOString().slice(0, -5) + 'Z',
21
21
  customer_first_name: order.custFirstName,
22
22
  customer_last_name: order.custLastName,
23
23
  charges: order.charges.map(charge => {
@@ -60,10 +60,10 @@ export function ingestChannelOrder() {
60
60
  native_item_id: orderItem.id.toString(),
61
61
  native_variant_id: orderItem.variationId.toString(),
62
62
  currency_code: orderItem.currency,
63
- ordered_at_date: new Date(order.createdAt).toISOString(),
64
- ordered_at_time: new Date(order.createdAt).toISOString(),
65
- updated_at_date: new Date(order.updatedAt).toISOString(),
66
- updated_at_time: new Date(order.updatedAt).toISOString(),
63
+ ordered_at_date: new Date(order.createdAt).toISOString().slice(0, -5) + 'Z',
64
+ ordered_at_time: new Date(order.createdAt).toISOString().slice(0, -5) + 'Z',
65
+ updated_at_date: new Date(order.updatedAt).toISOString().slice(0, -5) + 'Z',
66
+ updated_at_time: new Date(order.updatedAt).toISOString().slice(0, -5) + 'Z',
67
67
  sla_expires_at: orderItem?.slaExpiresAt ? new Date(orderItem.slaExpiresAt).toISOString() : null,
68
68
  charges: orderItem.charges.map(charge => {
69
69
  return {
@@ -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
- result = await StoreAPI.updateOrderStatus(mappedStore, reqBody)
197
- debug(result)
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: orderDocument || [],
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