multicloud_rule_manager 1.1.55 → 1.1.57

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.
@@ -4,7 +4,7 @@ import { getAlias } from "../utils/aliasManager.js";
4
4
  import { validateRule } from "../utils/ruleValidator.js";
5
5
 
6
6
  export default {
7
- command: "deploy <alias>",
7
+ command: "deployrule <alias>",
8
8
  describe: "Deploy dei file rules su API",
9
9
  handler: async (argv) => {
10
10
  try {
@@ -81,7 +81,7 @@ export default {
81
81
  ) {
82
82
  console.warn(`⚠️ Rule ${guid} non trovata, provo creazione...`);
83
83
 
84
- const resp = await fetch(`https://${cred.realm}.bit2win.cloud/api/data/v1/rules/`, {
84
+ const resp = await fetch(`https://${cred.realm}.bit2win.cloud/api/data/v1/rules`, {
85
85
  method: "POST",
86
86
  headers: {
87
87
  "Authorization": `Bearer ${accessToken}`,
@@ -2,7 +2,7 @@ import fs from "fs";
2
2
  import { getAlias } from "../utils/aliasManager.js";
3
3
 
4
4
  export default {
5
- command: "retrieve <alias> [output]",
5
+ command: "retrieverule <alias> [output]",
6
6
  describe: "Recupera dati API con token automatico",
7
7
  builder: {
8
8
  output: { type: "string", default: "retrieve.json", describe: "File di output" }
@@ -63,27 +63,6 @@ export default {
63
63
  }
64
64
 
65
65
 
66
-
67
- for (const record of data) {
68
-
69
-
70
-
71
-
72
-
73
- // --- CHIAMATA MAP/{guid} ---
74
- const mapResp = await fetch(
75
- `https://${cred.realm}.bit2win.cloud/api/datamap/v1/maps/${record.guid}`,
76
- {
77
- method: "GET",
78
- headers: {
79
- "Authorization": `Bearer ${access_token}`,
80
- "Accept": "application/json"
81
- }
82
- }
83
- );
84
-
85
- const mapData = await mapResp.json();
86
-
87
66
 
88
67
 
89
68
  } catch (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "multicloud_rule_manager",
3
- "version": "1.1.55",
3
+ "version": "1.1.57",
4
4
  "description": "CLI interna per retrieve/upload con token",
5
5
  "main": "index.js",
6
6
  "type": "module",