Skip to content

Conversation

@aliasghar98
Copy link
Collaborator

No description provided.

aliasghar98 and others added 14 commits May 23, 2025 12:12
What
This change refactors the complete portal:generate command flow, including the controller. In addition to that, the following things have been updated:

The APIMatic SDK has been updated to the latest version and is kept as part of the codebase (temporarily).
Updated the portal:generate command to use the SDK to call the Platform API instead of calling the Platform API's portal generation endpoint directly. Updated the error messaging corresponding to the error responses.
Added unit tests for the portal:generate command.
Updated some outdated dependencies to the latest versions.
Co-authored-by: Ali Asghar <75574550+aliasghar98@users.noreply.github.com>
# Conflicts:
#	package.json
# Conflicts:
#	.vscode/launch.json
#	README.md
…ates codebase to esm from commonjs (#74)

Closes #62 .

What
Migrates codebase to esm from commonjs.
Adds a new apimatic portal:recipe:new command, which follows a wizard-style flow to add an API Recipe to the build input.
@aliasghar98 aliasghar98 requested a review from saeedjamshaid July 3, 2025 09:52
@aliasghar98 aliasghar98 self-assigned this Jul 3, 2025
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jul 3, 2025

@saeedjamshaid saeedjamshaid changed the title feat(portal): adds portal new recipe command for api recipes and migrates codebase to esm from commonjs feat(portal): adds portal:recipe:new command for api recipes and migrates codebase to esm from commonjs Jul 3, 2025
@aliasghar98 aliasghar98 merged commit adb6d0d into alpha Jul 3, 2025
5 checks passed
github-actions bot pushed a commit that referenced this pull request Jul 3, 2025
# [1.1.0-alpha.10](v1.1.0-alpha.9...v1.1.0-alpha.10) (2025-07-03)

### Features

* **portal:** adds portal:recipe:new command for api recipes and migrates codebase to esm from commonjs ([#103](#103)) ([adb6d0d](adb6d0d)), closes [#62](#62)
@github-actions
Copy link

github-actions bot commented Jul 3, 2025

🎉 This PR is included in version 1.1.0-alpha.10 🎉

The release is available on:

Your semantic-release bot 📦🚀

github-actions bot pushed a commit that referenced this pull request Sep 8, 2025
# 1.0.0-beta.1 (2025-09-08)

### Bug Fixes

* add missing content header to telemetry api call ([#139](#139)) ([f2b0e64](f2b0e64))
* **documentation:** improve messages for each command ([a2c0bfb](a2c0bfb))
* **feature:** add force flag and change sdk version and package ([38db116](38db116))
* **help inconsistent:** fix help being inconsistent with actual platforms supported in sdk generate ([23b6e6d](23b6e6d))
* **package:** change version in package file ([903c619](903c619))
* **path:** resolve paths to absolute ([f68bdde](f68bdde))
* **portal:** override authkey not working if user is never logged in ever ([fb5d188](fb5d188))
* quickstart fails for zipped specs ([#107](#107)) ([49b403c](49b403c))
* **readme & bug fix:** update readme, fix bugs ([141f1a9](141f1a9))
* **refactor:** move print validation logic to utils file as common function and pretty the code ([05dbe41](05dbe41))
* **refactor:** refactor code ([d7cb486](d7cb486))
* **release:** add lock file to gitignore restore check_build workflow ([2eb959a](2eb959a))
* remove ignore flag from portal serve ([#140](#140)) ([336f5b7](336f5b7))
* remove simple-git dependency ([#151](#151)) ([04d4669](04d4669))
* removed existing spec in quickstart when providing spec explicitly ([#147](#147)) ([126318f](126318f))
* resolve bug in unarchive method ([#144](#144)) ([e70b7d2](e70b7d2))
* resolve multiple visual issues and minor fixes  ([#136](#136)) ([4589a6e](4589a6e))
* resolved import for filetype to conform with esm ([#106](#106)) ([234d00f](234d00f))
* **sdk & transform:** Fix bugs related to content and corner cases in transform and sdk generate ([e08ba51](e08ba51))
* **sdk package:** get sdk package from npm ([4c8e178](4c8e178))
* **types:** Add graphql type in destination format of schema ([019aed3](019aed3))
* update user-agent format in api calls ([#135](#135)) ([b16e374](b16e374))
* updated dependency version of apimatic/sdk ([#90](#90)) ([8efd8f8](8efd8f8))
* **version:** update sdk and cli versions ([75cc181](75cc181))

### Features

* add better error messaging for sdk generation failures ([bac2b62](bac2b62))
* add new prompt framework ([#189](#189)) ([1181f9e](1181f9e))
* add responses for generate-via-file ([#143](#143)) ([386be66](386be66))
* add tracking events and improve messaging ([#171](#171)) ([20c45de](20c45de))
* adds user-agent and various other improvements for serve, quickstart and recipe commands ([#110](#110)) ([5eecf75](5eecf75))
* **auth-key in authorization flow:** add authorization in auth flow ([7522c43](7522c43))
* **environment:** now cli will use production environment, make subscription messages more readable ([7868f76](7868f76))
* improve copilot prompts and messages ([#137](#137)) ([a0906a6](a0906a6))
* **login command:** implement login command ([47a9fca](47a9fca))
* **portal:** adds portal quickstart and serve commands ([#33](#33)) ([ab2da9a](ab2da9a)), closes [#10](#10)
* **portal:** adds portal:new:toc command and other various improvements ([#93](#93)) ([cfae452](cfae452)), closes [#55](#55) [#56](#56) [#72](#72) [#73](#73)
* **portal:** adds portal:recipe:new command for api recipes and migrates codebase to esm from commonjs ([#103](#103)) ([adb6d0d](adb6d0d)), closes [#62](#62)
* rename portal:new:toc command to portal:toc:new ([#99](#99)) ([1a6b1c4](1a6b1c4))
* restructure working directory usage across all portal commands ([#123](#123)) ([a842d8f](a842d8f))
* update apimatic.io base url with new subdomain base url ([a8796cd](a8796cd))
* update apimatic.io sdk ([1c4c576](1c4c576))
* update input directory structure for most commands and device login flow ([#134](#134)) ([e172aa8](e172aa8)), closes [#111](#111) [#113](#113) [#116](#116) [#117](#117) [#119](#119) [#124](#124) [#125](#125) [#126](#126) [#130](#130) [#129](#129) [#127](#127)
* update tslib dependency version to match apimatic sdk ([be06f73](be06f73))
* **usage tracking:** update sdk to send cli user agent for tracking ([768c60b](768c60b))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants