@schnebel-crm/cli 0.1.3 → 0.1.5

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.
Files changed (2) hide show
  1. package/dist/cli.mjs +6 -6
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -434,16 +434,16 @@ const deployCommand = new Command("deploy").description("Deploy the integration
434
434
  const manifestData = JSON.parse(manifest);
435
435
  log.step(`Deploying ${manifestData.name}@${manifestData.version}...`);
436
436
  try {
437
- const res = await fetch(`${auth.url}/rpc/customIntegration.upload`, {
437
+ const res = await fetch(`${auth.url}/rpc/customIntegration/upload`, {
438
438
  method: "POST",
439
439
  headers: {
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
449
  const body = await res.text();
@@ -501,16 +501,16 @@ const publishCommand = new Command("publish").description("Submit the integratio
501
501
  const slug = `${manifestData.id}`;
502
502
  log.step(`Submitting ${manifestData.name}@${manifestData.version} for review...`);
503
503
  try {
504
- const res = await fetch(`${auth.url}/rpc/customIntegration.submitForReview`, {
504
+ const res = await fetch(`${auth.url}/rpc/customIntegration/submitForReview`, {
505
505
  method: "POST",
506
506
  headers: {
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();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schnebel-crm/cli",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "type": "module",
5
5
  "description": "CLI for building and deploying Schnebel CRM integrations",
6
6
  "main": "./dist/cli.mjs",