multicloud_rule_manager 1.1.57 → 1.1.58

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.
@@ -56,6 +56,8 @@ export default {
56
56
  }
57
57
 
58
58
  const guid = match[1];
59
+ const filename = file.substring(0, file.lastIndexOf("_"));
60
+ const startDate = new Date().toISOString().replace("Z", "000");
59
61
  // --- POST API ---
60
62
  try {
61
63
  const resp = await fetch(`https://${cred.realm}.bit2win.cloud/api/data/v1/rules/${guid}`, {
@@ -66,7 +68,14 @@ export default {
66
68
  },
67
69
  body: JSON.stringify({
68
70
 
71
+ context: "catalog",
72
+ name: filename,
73
+ end_date: null,
74
+ agenda_group: "always",
75
+ status: "draft",
76
+ start_date: startDate,
69
77
  dsl_internal: content
78
+
70
79
  })
71
80
  });
72
81
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "multicloud_rule_manager",
3
- "version": "1.1.57",
3
+ "version": "1.1.58",
4
4
  "description": "CLI interna per retrieve/upload con token",
5
5
  "main": "index.js",
6
6
  "type": "module",