@boltic/cli 1.0.6-beta.4 → 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.
@@ -151,6 +151,19 @@ async function handleSync(args) {
151
151
  if (fs.existsSync(specPath)) {
152
152
  const specContent = JSON.parse(fs.readFileSync(specPath, "utf8"));
153
153
  // Update integration with spec.json content
154
+
155
+ if (
156
+ specContent.trigger_type &&
157
+ specContent.trigger_type !== "CloudTrigger"
158
+ ) {
159
+ console.error(
160
+ chalk.red(
161
+ `Error: Invalid trigger_type "${specContent.trigger_type}". It should be "CloudTrigger" or null.`
162
+ )
163
+ );
164
+ return;
165
+ }
166
+
154
167
  const updatedIntegration = await updateIntegration(
155
168
  apiUrl,
156
169
  token,
@@ -249,6 +262,19 @@ async function handlePublish(args) {
249
262
  if (fs.existsSync(specPath)) {
250
263
  const specContent = JSON.parse(fs.readFileSync(specPath, "utf8"));
251
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
+
252
278
  const updatedIntegration = await updateIntegration(
253
279
  apiUrl,
254
280
  token,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boltic/cli",
3
- "version": "1.0.6-beta.4",
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": {