closer-cli 2.17.0 → 2.28.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/CHANGELOG.md CHANGED
@@ -3,6 +3,43 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [2.27.0](https://code.hfarm.dev/closer/closer/compare/v2.26.0...v2.27.0) (2022-10-06)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **PJX-562:** Parametri undefined nelle mail di import ([a301776](https://code.hfarm.dev/closer/closer/commits/a30177672236ca488792d34b6c59ac58a6ec5668))
12
+ * **PJX-565:** Viene generata la cartella original vuota se l'import fallisce alla validazione ([20c1ee2](https://code.hfarm.dev/closer/closer/commits/20c1ee251bd03fa8d6ff6e9b03d1603aa42ce1f9))
13
+
14
+
15
+ ### Features
16
+
17
+ * **PJX-566:** [Import] Rendere non obbligatoria la colonna Partition ([9cc967d](https://code.hfarm.dev/closer/closer/commits/9cc967d42e98fc91ecf62ef6279cbdaf0e00d1e4))
18
+
19
+
20
+
21
+
22
+
23
+ # [2.25.0](https://code.hfarm.dev/closer/closer/compare/v2.24.2...v2.25.0) (2022-10-04)
24
+
25
+
26
+ ### Features
27
+
28
+ * **PJX-535:** e-mail "Import Process Service Error" da rivedere ([471c6de](https://code.hfarm.dev/closer/closer/commits/471c6de472b30f194bd3f64798e2cf8296bd52ef))
29
+ * **PJX-535:** Refactoring import (mail, log e cli) 1/2 ([483d868](https://code.hfarm.dev/closer/closer/commits/483d86860f1f5ce7b3ff857e57735c976573ac4e))
30
+ * **PJX-549:** Refactoring import (mail, log e cli) 1/2 ([9c64af1](https://code.hfarm.dev/closer/closer/commits/9c64af14031aa8713984c45af68523fdd95461d0))
31
+ * **PJX-549:** Refactoring import (mail, log e cli) 1/2 ([bb3bdd0](https://code.hfarm.dev/closer/closer/commits/bb3bdd06cdf08b451af7ac258bd6f255c0002d6e))
32
+ * **PJX-549:** Refactoring import (mail, log e cli) 1/2 ([40d9cfc](https://code.hfarm.dev/closer/closer/commits/40d9cfc9f2501a30172d1b3e6921fccd1dfdc5dd))
33
+ * **PJX-549:** Refactoring import (mail, log e cli) 1/2 ([8a0009f](https://code.hfarm.dev/closer/closer/commits/8a0009feddc1d7fe6baa960144538436ade2380a))
34
+ * **PJX-549:** Refactoring import (mail, log e cli) 1/2 ([21ac35d](https://code.hfarm.dev/closer/closer/commits/21ac35d7d285ecc4aa3075161f9084408a1fe849))
35
+ * **PJX-549:** Refactoring import (mail, log e cli) 1/2 ([6419ac8](https://code.hfarm.dev/closer/closer/commits/6419ac87b45b63500fb82103ffc6ae9f3594a94b))
36
+ * **PJX-549:** Refactoring import (mail, log e cli) 1/2 ([e45fc15](https://code.hfarm.dev/closer/closer/commits/e45fc1569269c7eb450001ff978e74f00be85f1c))
37
+ * **PJX-550:** Refactoring import (logiche full e partizioni) 2/2 ([8744c6f](https://code.hfarm.dev/closer/closer/commits/8744c6f3df667fd262dc7a9615a44d8809fc3b8a))
38
+
39
+
40
+
41
+
42
+
6
43
  ## [2.16.4](https://code.hfarm.dev/closer/closer/compare/v2.16.3...v2.16.4) (2022-06-28)
7
44
 
8
45
 
@@ -198,7 +198,7 @@ exports.handler = async argv => {
198
198
  if (invalidFiles.length > 0) {
199
199
  console.log('')
200
200
  console.log(invalidFiles.map(f => `ERROR => [${chalk.red(f.inputFile)}] ${f.error}`).join('\n'))
201
- process.exit()
201
+ process.exit(1)
202
202
  }
203
203
 
204
204
  if (interactive) {
@@ -229,7 +229,7 @@ exports.handler = async argv => {
229
229
  try {
230
230
  await callBeforeDataImportProcess(spinner, ws, importProcess)
231
231
  } catch (e) {
232
- process.exit()
232
+ process.exit(1)
233
233
  }
234
234
  }
235
235
 
@@ -271,7 +271,7 @@ exports.handler = async argv => {
271
271
  // Refresh Orders of type Draft
272
272
  //
273
273
  // eslint-disable-next-line no-unused-vars
274
- const refreshedOrders = await refreshOrders(spinner, ws, importProcess.name)
274
+ const refreshedOrders = await refreshOrders(spinner, ws, importProcess)
275
275
 
276
276
  //
277
277
  // importProcess
@@ -164,7 +164,7 @@ exports.handler = async argv => {
164
164
 
165
165
  if (validation.error) {
166
166
  console.log(`ERROR => [${chalk.red(validation.inputFile)}] ${validation.error}`)
167
- process.exit()
167
+ process.exit(1)
168
168
  }
169
169
 
170
170
  importProcess.mode = mode
@@ -177,7 +177,7 @@ exports.handler = async argv => {
177
177
  try {
178
178
  await callBeforeDataImportProcess(spinner, ws, importProcess)
179
179
  } catch (e) {
180
- process.exit()
180
+ process.exit(1)
181
181
  }
182
182
  }
183
183
 
package/helpers.js CHANGED
@@ -87,7 +87,7 @@ exports.importCsvFromFile = ({
87
87
  spinner.start('Loading...')
88
88
 
89
89
  const importRowSuccess = csvRow => {
90
- partitions.add(csvRow.Partition)
90
+ partitions.add(csvRow.Partition || '')
91
91
 
92
92
  countImported += 1
93
93
 
@@ -106,7 +106,7 @@ exports.importCsvFromFile = ({
106
106
  }
107
107
 
108
108
  const importRowError = csvRow => {
109
- partitions.add(csvRow.Partition)
109
+ partitions.add(csvRow.Partition || '')
110
110
 
111
111
  countFailed += 1
112
112
 
@@ -133,7 +133,7 @@ exports.importCsvFromFile = ({
133
133
  }
134
134
 
135
135
  const importFatal = (csvRow, errorMessage) => {
136
- partitions.add(csvRow.Partition)
136
+ partitions.add(csvRow.Partition || '')
137
137
 
138
138
  spinner.fail(
139
139
  this.printImportProcessResult({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "closer-cli",
3
- "version": "2.17.0",
3
+ "version": "2.28.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {