@things-factory/integration-sellercraft 4.3.28 → 4.3.29

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": "4.3.28",
3
+ "version": "4.3.29",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -31,7 +31,7 @@
31
31
  "@things-factory/context-ui": "^4.3.27",
32
32
  "@things-factory/grist-ui": "^4.3.27",
33
33
  "@things-factory/i18n-base": "^4.3.27",
34
- "@things-factory/integration-marketplace": "^4.3.28",
34
+ "@things-factory/integration-marketplace": "^4.3.29",
35
35
  "@things-factory/integration-ui": "^4.3.27",
36
36
  "@things-factory/more-ui": "^4.3.27",
37
37
  "@things-factory/resource-ui": "^4.3.27",
@@ -51,5 +51,5 @@
51
51
  "nock": "^13.0.2",
52
52
  "should": "^13.2.3"
53
53
  },
54
- "gitHead": "f1af695e2848b49871ca1d4f1661a5620ed428da"
54
+ "gitHead": "417b3e85239034d3c37502fc8d9c5ae42c97dedb"
55
55
  }
@@ -3,6 +3,7 @@ export const ORDER_STATUS = {
3
3
  payment_pending: 'PAYMENT_PENDING',
4
4
  ready_to_ship: 'READY_TO_SHIP',
5
5
  processing: 'CONFIRMED',
6
+ shipped: 'SHIPPED',
6
7
  completed: 'DELIVERED',
7
8
  cancelled: 'CANCELLED',
8
9
  canceled: 'CANCELLED',
@@ -184,7 +184,7 @@ sellercraftRouter.post('/sellercraft/store/update-order-status', async (context,
184
184
  order_item_ids: orderPackage?.orderListIdList
185
185
  ? orderPackage.orderListIdList
186
186
  : reqBody.orderItems.map(oi => {
187
- return oi.native_order_item_id
187
+ return oi.order_item_id
188
188
  })
189
189
  } || {}
190
190
 
@@ -74,7 +74,7 @@ export class MarketplaceChannelProductMutation {
74
74
  }
75
75
 
76
76
  let mappedProducts = productResult.map(item => {
77
- let { categoryId, itemId: productId, name, brand, isVerified, images, attributes, variations } = item
77
+ let { categoryId, itemId: productId, name, brand, isVerified, images, sellercraftAttributes, variations } = item
78
78
 
79
79
  variations = variations.map(variation => {
80
80
  let {
@@ -83,7 +83,7 @@ export class MarketplaceChannelProductMutation {
83
83
  name,
84
84
  isEnabled: isEnabled,
85
85
  isSellable: isSellable,
86
- attributes,
86
+ sellercraftAttributes,
87
87
  stockLocked,
88
88
  qty: stockReported,
89
89
  costPrice: fullPrice,
@@ -101,7 +101,7 @@ export class MarketplaceChannelProductMutation {
101
101
  name,
102
102
  isEnabled,
103
103
  isSellable,
104
- attributes: store.platform != 'shopify' ? attributes : null,
104
+ attributes: sellercraftAttributes || [],
105
105
  stockLocked,
106
106
  stockReported,
107
107
  fullPrice: parseFloat(fullPrice) || 0,
@@ -144,7 +144,7 @@ export class MarketplaceChannelProductMutation {
144
144
  brand,
145
145
  isVerified,
146
146
  images,
147
- attributes,
147
+ attributes: sellercraftAttributes || [],
148
148
  variations
149
149
  }
150
150
  })