@things-factory/integration-sellercraft 4.2.2 → 4.2.7

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.
Files changed (25) hide show
  1. package/dist-server/constants/order-status-mapping.js +13 -3
  2. package/dist-server/constants/order-status-mapping.js.map +1 -1
  3. package/dist-server/constants/platform.js +2 -1
  4. package/dist-server/constants/platform.js.map +1 -1
  5. package/dist-server/controllers/sellercraft-channel-integration/apis/ingest-channel-order.js +1 -1
  6. package/dist-server/controllers/sellercraft-channel-integration/apis/ingest-channel-order.js.map +1 -1
  7. package/dist-server/controllers/sellercraft-channel-integration/apis/ingest-channel-product.js +25 -8
  8. package/dist-server/controllers/sellercraft-channel-integration/apis/ingest-channel-product.js.map +1 -1
  9. package/dist-server/controllers/sellercraft-channel-integration/sellercraft-channel-integration.js +8 -4
  10. package/dist-server/controllers/sellercraft-channel-integration/sellercraft-channel-integration.js.map +1 -1
  11. package/dist-server/routers/sellercraft-router.js +2 -1
  12. package/dist-server/routers/sellercraft-router.js.map +1 -1
  13. package/dist-server/service/marketplace-channel/marketplace-channel-order-mutation.js +253 -231
  14. package/dist-server/service/marketplace-channel/marketplace-channel-order-mutation.js.map +1 -1
  15. package/dist-server/service/marketplace-channel/marketplace-channel-product-mutation.js +48 -23
  16. package/dist-server/service/marketplace-channel/marketplace-channel-product-mutation.js.map +1 -1
  17. package/package.json +3 -3
  18. package/server/constants/order-status-mapping.ts +13 -3
  19. package/server/constants/platform.ts +2 -1
  20. package/server/controllers/sellercraft-channel-integration/apis/ingest-channel-order.ts +1 -1
  21. package/server/controllers/sellercraft-channel-integration/apis/ingest-channel-product.ts +34 -15
  22. package/server/controllers/sellercraft-channel-integration/sellercraft-channel-integration.ts +8 -4
  23. package/server/routers/sellercraft-router.ts +2 -1
  24. package/server/service/marketplace-channel/marketplace-channel-order-mutation.ts +305 -270
  25. package/server/service/marketplace-channel/marketplace-channel-product-mutation.ts +47 -26
@@ -2,13 +2,23 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ORDER_STATUS = void 0;
4
4
  exports.ORDER_STATUS = {
5
- pending: 'PAYMENT_PENDING',
6
- processing: 'PROCESSING',
5
+ pending: 'CONFIRMED',
6
+ processing: 'CONFIRMED',
7
7
  completed: 'DELIVERED',
8
8
  cancelled: 'CANCELLED',
9
9
  canceled: 'CANCELLED',
10
10
  refunded: 'REFUND_COMPLETE',
11
11
  failed: 'SHIPMENT_LOST_OR_DAMAGED',
12
- refund: 'REFUND_COMPLETE'
12
+ refund: 'REFUND_COMPLETE',
13
+ ttk_100: 'PAYMENT_PENDING',
14
+ ttk_111: 'CONFIRMED',
15
+ ttk_112: 'READY_TO_SHIP',
16
+ ttk_121: 'SHIPPED',
17
+ ttk_122: 'DELIVERED',
18
+ ttk_130: 'CLOSED',
19
+ ttk_140: 'CANCELLED',
20
+ ttk_201: 'INITIATED_CANCELLATION',
21
+ ttk_202: '',
22
+ ttk_203: 'CANCELLED' // CANCEL_COMPLETED
13
23
  };
14
24
  //# sourceMappingURL=order-status-mapping.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"order-status-mapping.js","sourceRoot":"","sources":["../../server/constants/order-status-mapping.ts"],"names":[],"mappings":";;;AAAa,QAAA,YAAY,GAAG;IAC1B,OAAO,EAAE,iBAAiB;IAC1B,UAAU,EAAE,YAAY;IACxB,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,WAAW;IACtB,QAAQ,EAAE,WAAW;IACrB,QAAQ,EAAE,iBAAiB;IAC3B,MAAM,EAAE,0BAA0B;IAClC,MAAM,EAAE,iBAAiB;CAC1B,CAAA"}
1
+ {"version":3,"file":"order-status-mapping.js","sourceRoot":"","sources":["../../server/constants/order-status-mapping.ts"],"names":[],"mappings":";;;AAAa,QAAA,YAAY,GAAG;IAC1B,OAAO,EAAE,WAAW;IACpB,UAAU,EAAE,WAAW;IACvB,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,WAAW;IACtB,QAAQ,EAAE,WAAW;IACrB,QAAQ,EAAE,iBAAiB;IAC3B,MAAM,EAAE,0BAA0B;IAClC,MAAM,EAAE,iBAAiB;IACzB,OAAO,EAAE,iBAAiB;IAC1B,OAAO,EAAE,WAAW;IACpB,OAAO,EAAE,eAAe;IACxB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,WAAW;IACpB,OAAO,EAAE,QAAQ;IACjB,OAAO,EAAE,WAAW;IACpB,OAAO,EAAE,wBAAwB;IACjC,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,WAAW,CAAC,mBAAmB;CACzC,CAAA"}
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PLATFORM = void 0;
4
4
  exports.PLATFORM = {
5
5
  WCM: 'woocommerce',
6
- MGT: 'magento'
6
+ MGT: 'magento',
7
+ TTK: 'tiktok'
7
8
  };
8
9
  //# sourceMappingURL=platform.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"platform.js","sourceRoot":"","sources":["../../server/constants/platform.ts"],"names":[],"mappings":";;;AAAa,QAAA,QAAQ,GAAG;IACtB,GAAG,EAAE,aAAa;IAClB,GAAG,EAAE,SAAS;CACf,CAAA"}
1
+ {"version":3,"file":"platform.js","sourceRoot":"","sources":["../../server/constants/platform.ts"],"names":[],"mappings":";;;AAAa,QAAA,QAAQ,GAAG;IACtB,GAAG,EAAE,aAAa;IAClB,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,QAAQ;CACd,CAAA"}
@@ -58,7 +58,7 @@ function ingestChannelOrder() {
58
58
  ordered_at_time: new Date(order.createdAt).toISOString(),
59
59
  updated_at_date: new Date(order.updatedAt).toISOString(),
60
60
  updated_at_time: new Date(order.updatedAt).toISOString(),
61
- sla_expires_at: order === null || order === void 0 ? void 0 : order.slaExpiresAt,
61
+ sla_expires_at: (orderItem === null || orderItem === void 0 ? void 0 : orderItem.slaExpiresAt) ? new Date(orderItem.slaExpiresAt).toISOString() : null,
62
62
  charges: orderItem.charges.map(charge => {
63
63
  return {
64
64
  charge_type_value: charge.name,
@@ -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;oBACzB,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,EAAE;oBACX,gBAAgB,EAAE;wBAChB,UAAU,EAAE,KAAK,CAAC,aAAa;wBAC/B,SAAS,EAAE,KAAK,CAAC,YAAY;wBAC7B,MAAM,EAAE,KAAK,CAAC,YAAY;wBAC1B,MAAM,EAAE,KAAK,CAAC,YAAY;wBAC1B,MAAM,EAAE,KAAK,CAAC,YAAY;wBAC1B,MAAM,EAAE,KAAK,CAAC,YAAY;wBAC1B,MAAM,E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,SAAS,CAAC,CAAC,WAAW,EAAE;4BACxD,cAAc,EAAE,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,YAAY;4BACnC,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;iBACH,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;AA9ED,gDA8EC"}
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;oBACzB,eAAe,EAAE,IAAI,IAAI,CAAC,KAAK,CAAC,SA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;iBACH,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;AA9ED,gDA8EC"}
@@ -9,6 +9,7 @@ function ingestChannelProduct() {
9
9
  denormalize(req) {
10
10
  const { products } = req;
11
11
  let newProducts = products.map(product => {
12
+ var _a, _b;
12
13
  let productVariations = product.variations.map(variant => {
13
14
  return {
14
15
  seller_sku: variant.variationSku,
@@ -29,7 +30,7 @@ function ingestChannelProduct() {
29
30
  inventory_products: (variant === null || variant === void 0 ? void 0 : variant.inventoryProducts)
30
31
  ? variant.inventoryProducts.map(inventoryProduct => {
31
32
  return {
32
- quantity: inventoryProduct.qty || 1,
33
+ quantity: inventoryProduct.qty || 0,
33
34
  name: inventoryProduct.name,
34
35
  inventory_sku: inventoryProduct.sku,
35
36
  product_versions: (inventoryProduct === null || inventoryProduct === void 0 ? void 0 : inventoryProduct.productVersions)
@@ -43,7 +44,7 @@ function ingestChannelProduct() {
43
44
  package_weight_gram: (productVersion === null || productVersion === void 0 ? void 0 : productVersion.packageWeightGram)
44
45
  ? productVersion.packageWeightGram
45
46
  : 0,
46
- stock_available: productVersion.qty || 0
47
+ stock_available: productVersion.qty
47
48
  };
48
49
  })
49
50
  : []
@@ -62,18 +63,34 @@ function ingestChannelProduct() {
62
63
  label: product.name,
63
64
  brand: product.brand || '',
64
65
  is_verified: product.isVerified || true,
65
- flexible_attributes: product.channelCode == 'WCM' ? true : false,
66
- images: product === null || product === void 0 ? void 0 : product.images.map(image => {
66
+ flexible_attributes: product.channelCode == 'WCM' || product.channelCode == 'MGT' ? true : false,
67
+ images: ((_a = product === null || product === void 0 ? void 0 : product.images) === null || _a === void 0 ? void 0 : _a.map(image => {
67
68
  return {
68
69
  file_url: image.url
69
70
  };
70
- }),
71
- product_attributes: product === null || product === void 0 ? void 0 : product.attributes.map(attribute => {
71
+ })) || [],
72
+ product_attributes: ((_b = product === null || product === void 0 ? void 0 : product.attributes) === null || _b === void 0 ? void 0 : _b.map(attribute => {
72
73
  return Object.assign(Object.assign({}, attribute), { native_attribute_id: attribute.native_attribute_id.toString() });
73
- }),
74
- variants: productVariations
74
+ })) || [],
75
+ variants: productVariations,
76
+ has_all_variants: product.channelCode == 'MGT' ? false : true
75
77
  };
76
78
  });
79
+ if (products[0].channelCode == 'MGT') {
80
+ let newList = [];
81
+ for (let np of newProducts) {
82
+ if (np.native_product_id == np.variants[0].native_variant_id) {
83
+ let vars = newProducts
84
+ .filter(e => e.native_product_id == np.native_product_id)
85
+ .map(e => {
86
+ return e.variants[0];
87
+ });
88
+ np.variants = vars;
89
+ newList.push(np);
90
+ }
91
+ }
92
+ newProducts = newList;
93
+ }
77
94
  return {
78
95
  payload: [...newProducts]
79
96
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ingest-channel-product.js","sourceRoot":"","sources":["../../../../server/controllers/sellercraft-channel-integration/apis/ingest-channel-product.ts"],"names":[],"mappings":";AAAA,+FAA+F;;;AAE/F,SAAgB,oBAAoB;IAClC,OAAO;QACL,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,yBAAyB;QAC/B,WAAW,CAAC,GAAG;YACb,MAAM,EAAE,QAAQ,EAAE,GAAG,GAAG,CAAA;YAExB,IAAI,WAAW,GAAG,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE;gBACvC,IAAI,iBAAiB,GAAU,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE;oBAC9D,OAAO;wBACL,UAAU,EAAE,OAAO,CAAC,YAAY;wBAChC,iBAAiB,EAAE,OAAO,CAAC,WAAW,CAAC,QAAQ,EAAE;wBACjD,KAAK,EAAE,OAAO,CAAC,IAAI;wBACnB,UAAU,EAAE,OAAO,CAAC,SAAS,IAAI,IAAI;wBACrC,WAAW,EAAE,OAAO,C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AAI,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK;oBAChE,MAAM,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE;wBAClC,OAAO;4BACL,QAAQ,EAAE,KAAK,CAAC,GAAG;yBACpB,CAAA;oBACH,CAAC,CAAC;oBACF,kBAAkB,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE;wBACtD,uCACK,SAAS,KACZ,mBAAmB,EAAE,SAAS,CAAC,mBAAmB,CAAC,QAAQ,EAAE,IAC9D;oBACH,CAAC,CAAC;oBACF,QAAQ,EAAE,iBAAiB;iBAC5B,CAAA;YACH,CAAC,CAAC,CAAA;YAEF,OAAO;gBACL,OAAO,EAAE,CAAC,GAAG,WAAW,CAAC;aAC1B,CAAA;QACH,CAAC;QACD,SAAS,CAAC,GAAG;YACX,OAAO,GAAG,CAAA;QACZ,CAAC;KACF,CAAA;AACH,CAAC;AAzFD,oDAyFC"}
1
+ {"version":3,"file":"ingest-channel-product.js","sourceRoot":"","sources":["../../../../server/controllers/sellercraft-channel-integration/apis/ingest-channel-product.ts"],"names":[],"mappings":";AAAA,+FAA+F;;;AAE/F,SAAgB,oBAAoB;IAClC,OAAO;QACL,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,yBAAyB;QAC/B,WAAW,CAAC,GAAG;YACb,MAAM,EAAE,QAAQ,EAAE,GAAG,GAAG,CAAA;YAExB,IAAI,WAAW,GAAG,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE;;gBACvC,IAAI,iBAAiB,GAAU,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE;oBAC9D,OAAO;wBACL,UAAU,EAAE,OAAO,CAAC,YAAY;wBAChC,iBAAiB,EAAE,OAAO,CAAC,WAAW,CAAC,QAAQ,EAAE;wBACjD,KA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,CAAC,CAAC,CAAC,CAAA;wBACtB,CAAC,CAAC,CAAA;wBACJ,EAAE,CAAC,QAAQ,GAAG,IAAI,CAAA;wBAClB,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;qBACjB;iBACF;gBACD,WAAW,GAAG,OAAO,CAAA;aACtB;YAED,OAAO;gBACL,OAAO,EAAE,CAAC,GAAG,WAAW,CAAC;aAC1B,CAAA;QACH,CAAC;QACD,SAAS,CAAC,GAAG;YACX,OAAO,GAAG,CAAA;QACZ,CAAC;KACF,CAAA;AACH,CAAC;AA5GD,oDA4GC"}
@@ -33,10 +33,12 @@ class SellercraftChannelIntegration {
33
33
  body: jsondata
34
34
  });
35
35
  if (response.ok) {
36
- return await response.json();
36
+ const result = await response.json();
37
+ return result;
37
38
  }
38
39
  else {
39
- throw new Error(`response code - ${response.status}, ${response.statusText}`);
40
+ const result = await response.json();
41
+ throw new Error(`(${response.status}) ${result.message}`);
40
42
  }
41
43
  }
42
44
  async put(path, data = {}) {
@@ -58,7 +60,8 @@ class SellercraftChannelIntegration {
58
60
  return await response.json();
59
61
  }
60
62
  else {
61
- throw new Error(`response code - ${response.status}, ${response.statusText}`);
63
+ const result = await response.json();
64
+ throw new Error(`(${response.status}) ${result.message}`);
62
65
  }
63
66
  }
64
67
  async get(path, data = {}) {
@@ -82,7 +85,8 @@ class SellercraftChannelIntegration {
82
85
  return await response.json();
83
86
  }
84
87
  else {
85
- throw new Error(`response code - ${response.status}, ${response.statusText}`);
88
+ const result = await response.json();
89
+ throw new Error(`(${response.status}) ${result.message}`);
86
90
  }
87
91
  }
88
92
  }
@@ -1 +1 @@
1
- {"version":3,"file":"sellercraft-channel-integration.js","sourceRoot":"","sources":["../../../server/controllers/sellercraft-channel-integration/sellercraft-channel-integration.ts"],"names":[],"mappings":";;;;;;AAAA,4DAA8B;AAC9B,iDAA0B;AAE1B,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,oDAAoD,CAAC,CAAA;AAM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GAAW,IAAI,CAAC,iBAAiB,EAAE,CAAA;QAElD,MAAM,QAAQ,GAAQ,MAAM,IAAA,oBAAK,EAAC,QAAQ,EAAE;YAC1C,MAAM,EAAE,KAAK;YACb,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;gBAClC,UAAU,EAAE,SAAS;gBACrB,WAAW,EAAE,MAAM;aACpB;SACF,CAAC,CAAA;QAEF,IAAI,QAAQ,CAAC,EAAE,EAAE;YACf,OAAO,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAA;SAC7B;aAAM;YACL,MAAM,IAAI,KAAK,CAAC,mBAAmB,QAAQ,CAAC,MAAM,KAAK,QAAQ,CAAC,UAAU,EAAE,CAAC,CAAA;SAC9E;IACH,CAAC;CACF;AAhGD,sEAgGC"}
1
+ {"version":3,"file":"sellercraft-channel-integration.js","sourceRoot":"","sources":["../../../server/controllers/sellercraft-channel-integration/sellercraft-channel-integration.ts"],"names":[],"mappings":";;;;;;AAAA,4DAA8B;AAC9B,iDAA0B;AAE1B,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,oDAAoD,CAAC,CAAA;AAMpF,MAAa,6BAA6B;IAGxC,YAAY,MAAyB;QACnC,IAAI,CAAC,MAAM,qBACN,MAAM,CACV,CAAA;IACH,CAAC;IAED,UAAU;QACR,OAAO,gCAAgC,CAAA;IACzC,CAAC;IAED,iBAAiB;QACf,OAAO,IAAA,YAAI,GAAE,CAAA;IACf,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,IAAY,EAAE,OAAY,EAAE;QACrC,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC,MAAM,CAAA;QAE9B,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA;QAEnB,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAA;QACrC,MAAM,SAAS,GAAW,IAAI,CAAC,iBAAiB,EAAE,CAAA;QAClD,MAAM,QAAQ,GAAW,GAAG,IA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AQ,CAAC,IAAI,EAAE,CAAA;YACpC,MAAM,IAAI,KAAK,CAAC,IAAI,QAAQ,CAAC,MAAM,KAAK,MAAM,CAAC,OAAO,EAAE,CAAC,CAAA;SAC1D;IACH,CAAC;CACF;AApGD,sEAoGC"}
@@ -146,7 +146,8 @@ exports.sellercraftRouter.post('/sellercraft/store/update-order-status', async (
146
146
  orderId: requestBody.native_order_id,
147
147
  status: requestBody.order_status,
148
148
  carrier: requestBody === null || requestBody === void 0 ? void 0 : requestBody.shipper_last_mile,
149
- trackingNo: requestBody === null || requestBody === void 0 ? void 0 : requestBody.tracking_number
149
+ trackingNo: requestBody === null || requestBody === void 0 ? void 0 : requestBody.tracking_number,
150
+ orderItems: requestBody === null || requestBody === void 0 ? void 0 : requestBody.order_item_ids
150
151
  };
151
152
  result = await integration_marketplace_1.StoreAPI.updateOrderStatus(mappedStore, reqBody);
152
153
  debug(result);
@@ -1 +1 @@
1
- {"version":3,"file":"sellercraft-router.js","sourceRoot":"","sources":["../../server/routers/sellercraft-router.ts"],"names":[],"mappings":";;;;;;AAAA,4DAA+B;AAE/B,6CAA4C;AAC5C,qFAAkE;AAClE,4CAAuC;AAEvC,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,GA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