@cloudcommerce/cli 2.44.5 → 2.44.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.
@@ -89,6 +89,7 @@ const mapCSVToFeed = (item) => {
89
89
  const basePrice = parseFloat(item['preco-cheio']?.replace(',', '.')) || 0;
90
90
  const salePrice = parseFloat(item['preco-promocional']?.replace(',', '.')) || 0;
91
91
  const isAvailable = item.ativo === 'S';
92
+ const canManageStock = item['controlar-estoque'] !== 'N';
92
93
  const quantity = Number(item['estoque-quantidade']) || 0;
93
94
  return {
94
95
  'g:id': item.sku,
@@ -119,6 +120,7 @@ const mapCSVToFeed = (item) => {
119
120
  'available': isAvailable,
120
121
  'visible': isAvailable,
121
122
  'quantity': quantity,
123
+ 'manage_stock': canManageStock,
122
124
  };
123
125
  };
124
126
  const importFeed = async () => {
@@ -363,6 +365,7 @@ const importFeed = async () => {
363
365
  available: item.available,
364
366
  visible: item.visible,
365
367
  quantity: item.quantity,
368
+ manage_stock: item.manage_stock,
366
369
  };
367
370
  const description = item['g:description']?.trim();
368
371
  if (description && description !== name) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/cli",
3
3
  "type": "module",
4
- "version": "2.44.5",
4
+ "version": "2.44.7",
5
5
  "description": "e-com.plus Cloud Commerce CLI tools",
6
6
  "bin": {
7
7
  "cloudcommerce": "./bin/run.mjs"
@@ -39,7 +39,7 @@
39
39
  "md5": "^2.3.0",
40
40
  "typescript": "~5.8.3",
41
41
  "zx": "^8.5.5",
42
- "@cloudcommerce/api": "2.44.5"
42
+ "@cloudcommerce/api": "2.44.7"
43
43
  },
44
44
  "scripts": {
45
45
  "build": "bash ../../scripts/build-lib.sh"