@schnebel-crm/cli 0.1.4 → 0.1.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.
- package/dist/cli.mjs +8 -8
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -440,19 +440,19 @@ const deployCommand = new Command("deploy").description("Deploy the integration
|
|
|
440
440
|
"Content-Type": "application/json",
|
|
441
441
|
"x-api-key": auth.apiKey
|
|
442
442
|
},
|
|
443
|
-
body: JSON.stringify({
|
|
443
|
+
body: JSON.stringify({ json: {
|
|
444
444
|
manifest,
|
|
445
445
|
bundle: bundleContent
|
|
446
|
-
})
|
|
446
|
+
} })
|
|
447
447
|
});
|
|
448
448
|
if (!res.ok) {
|
|
449
|
-
const body = await res.text();
|
|
450
|
-
log.error(`Deploy failed (${res.status}): ${body}`);
|
|
449
|
+
const body$1 = await res.text();
|
|
450
|
+
log.error(`Deploy failed (${res.status}): ${body$1}`);
|
|
451
451
|
process.exit(1);
|
|
452
452
|
}
|
|
453
|
-
const
|
|
453
|
+
const body = await res.json();
|
|
454
454
|
log.success(`Deployed ${manifestData.name}@${manifestData.version} to your workspace`);
|
|
455
|
-
log.info(`Integration ID: ${
|
|
455
|
+
if (body.json?.id) log.info(`Integration ID: ${body.json.id}`);
|
|
456
456
|
} catch (err) {
|
|
457
457
|
log.error(`Deploy failed: ${err instanceof Error ? err.message : String(err)}`);
|
|
458
458
|
process.exit(1);
|
|
@@ -507,10 +507,10 @@ const publishCommand = new Command("publish").description("Submit the integratio
|
|
|
507
507
|
"Content-Type": "application/json",
|
|
508
508
|
"x-api-key": auth.apiKey
|
|
509
509
|
},
|
|
510
|
-
body: JSON.stringify({
|
|
510
|
+
body: JSON.stringify({ json: {
|
|
511
511
|
slug,
|
|
512
512
|
githubUrl: config.github
|
|
513
|
-
})
|
|
513
|
+
} })
|
|
514
514
|
});
|
|
515
515
|
if (!res.ok) {
|
|
516
516
|
const body = await res.text();
|