@boltic/cli 1.0.6-beta.5 → 1.0.6-beta.6

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.
@@ -262,6 +262,19 @@ async function handlePublish(args) {
262
262
  if (fs.existsSync(specPath)) {
263
263
  const specContent = JSON.parse(fs.readFileSync(specPath, "utf8"));
264
264
  // Update integration with spec.json content
265
+
266
+ if (
267
+ specContent.trigger_type &&
268
+ specContent.trigger_type !== "CloudTrigger"
269
+ ) {
270
+ console.error(
271
+ chalk.red(
272
+ `Error: Invalid trigger_type "${specContent.trigger_type}". It should be "CloudTrigger" or null.`
273
+ )
274
+ );
275
+ return;
276
+ }
277
+
265
278
  const updatedIntegration = await updateIntegration(
266
279
  apiUrl,
267
280
  token,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boltic/cli",
3
- "version": "1.0.6-beta.5",
3
+ "version": "1.0.6-beta.6",
4
4
  "description": "A powerful CLI tool for managing Boltic Workflow integrations",
5
5
  "main": "index.js",
6
6
  "bin": {