open-wa/wa-automate-nodejs

feat [CLI]: endpoint to download the respective swagger collection and client code generation #1689

smashah posted onGitHub

maybe something like:

/meta/swagger.json

or

/meta/postman.json

or make a convenient endpoint to generate it for different languages using swagger online code generator

/meta/codegen/{language}


@github-actions run

<details> <summary>āš” Release! āš”</summary>

(async () => {
function exec(cmd) {
  console.log(execSync(cmd).toString());
}

// Config
const gitUserEmail = "github-actions[bot]@users.noreply.github.com";
const gitUserName = "github-actions[bot]";

exec(`echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc`);
exec(`git config --global user.email "${gitUserEmail}"`);
exec(`git config --global user.name "${gitUserName}"`);
exec(`npm i -D`);
exec(`npm run release-ci minor`);

//comment on the issue
var result = execSync(`npx auto-changelog -o ./tempchangelog.txt --commit-limit false --template ./compact-keepachangelog.hbs --stdout`).toString();

    await postComment(result);

//create changelog image
exec(`npm run release-image`);
exec(`git commit -a -m 'updated release-image'`);
exec(`git push --force`);
  })();

</details>

posted by smashah over 3 years ago

Changelog

šŸš€ Release 3.16.0 (2021-05-19)

  • build(deps): bump socket.io from 4.1.1 to 4.1.2 #1684
  • build(deps): bump type-fest from 1.1.1 to 1.1.2 #1692
  • build(deps): bump chrome-launcher from 0.13.4 to 0.14.0 #1693
  • Release 3.16.0 da4d827
  • šŸ”Š logs [CLI]: replace console.log with Spin to standardize CLI logs #1691 d08cdcd
  • āœØ feat [CLI] : generate client libraries using /meta/codegen endpoint!! #1689 cb4c7b2
  • āœØ feat [CLI] : collection endpoints moved to /meta/swagger.json or meta/postman.json #1689 ef1fe20
  • āŖ rollback: revert fix from #1670 - it broke api docs eb80142
  • šŸ”’ļø fixed some npm audit issues ee2c1c6
  • šŸ”§ config: explicitly remove some methods from collections generator d223c87
  • āœØ Spin is now publicly accessible 0b28bc8
  • šŸ› fix: codegen results in proper method signatures #1690 faf3bac
posted by smashah over 3 years ago

Fund this Issue

$0.00
Funded

Pull requests