-
-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(api-client): Added API Client package #346
Conversation
PR Reviewer Guide 🔍
|
CI Failure Feedback 🧐(Checks updated until commit d1ecda8)
✨ CI feedback usage guide:The CI feedback tool (
In addition to being automatically triggered, the tool can also be invoked manually by commenting on a PR:
where Configuration options
See more information about the |
PR Code Suggestions ✨
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #346 +/- ##
===========================================
- Coverage 91.71% 88.10% -3.61%
===========================================
Files 111 107 -4
Lines 2510 2329 -181
Branches 469 357 -112
===========================================
- Hits 2302 2052 -250
- Misses 208 277 +69
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
## [2.2.0](v2.1.0...v2.2.0) (2024-07-11) ### 🚀 Features * **api-client:** Added API Client package ([#346](#346)) ([6734e1e](6734e1e)) * **api:** Updated API key ([fbac312](fbac312)) * **platform:** View [secure]s ([#313](#313)) ([97c4541](97c4541)) * **web:** Add Pricing Page ([#243](#243)) ([2c7f1d6](2c7f1d6)) ### 📚 Documentation * **cli:** Added docs for the CLI package ([#329](#329)) ([edad166](edad166)) * **cli:** Added usage docs ([#330](#330)) ([b6963d5](b6963d5)) * Update Discord link ([871b6cd](871b6cd)) * Update README.md ([e66fcd2](e66fcd2)) * **web:** Add documentation about our web package ([#268](#268)) ([3d848e7](3d848e7)) ### 🔧 Miscellaneous Chores * **api:** Updated response types in environment service ([b8a3ddd](b8a3ddd)) * **ci:** Added release scripts for platform and api ([02dae60](02dae60)) * **CI:** Updated action plugin versions ([88bb317](88bb317)) * **CI:** Updated pnpm version in CI file ([2692e88](2692e88)) * **platform:** Fixed env parsing in platform ([d6ffafa](d6ffafa)) * **web:** Update Terms and Conditions and Privacy Policy ([#282](#282)) ([d621dcb](d621dcb)) ### 🔨 Code Refactoring * **api:** Update [secure] and variable fetching endpoints ([7d9acd0](7d9acd0)) * **cli:** Refactored profile commands into readable blocks ([#331](#331)) ([4a8a089](4a8a089)) * **cli:** Updated configuration commands and mechanism ([#310](#310)) ([9079b6d](9079b6d))
## [2.2.0](v2.1.0...v2.2.0) (2024-07-11) ### 🚀 Features * **api-client:** Added API Client package ([#346](#346)) ([6734e1e](6734e1e)) * **api:** Updated API key ([fbac312](fbac312)) * **platform:** View [secure]s ([#313](#313)) ([97c4541](97c4541)) * **web:** Add Pricing Page ([#243](#243)) ([2c7f1d6](2c7f1d6)) ### 📚 Documentation * **cli:** Added docs for the CLI package ([#329](#329)) ([edad166](edad166)) * **cli:** Added usage docs ([#330](#330)) ([b6963d5](b6963d5)) * Update Discord link ([871b6cd](871b6cd)) * Update README.md ([e66fcd2](e66fcd2)) * **web:** Add documentation about our web package ([#268](#268)) ([3d848e7](3d848e7)) ### 🔧 Miscellaneous Chores * **api:** Updated response types in environment service ([b8a3ddd](b8a3ddd)) * **ci:** Added release scripts for platform and api ([02dae60](02dae60)) * **CI:** Updated action plugin versions ([88bb317](88bb317)) * **CI:** Updated pnpm version in CI file ([2692e88](2692e88)) * **platform:** Fixed env parsing in platform ([d6ffafa](d6ffafa)) * **web:** Update Terms and Conditions and Privacy Policy ([#282](#282)) ([d621dcb](d621dcb)) ### 🔨 Code Refactoring * **api:** Update [secure] and variable fetching endpoints ([7d9acd0](7d9acd0)) * **cli:** Refactored profile commands into readable blocks ([#331](#331)) ([4a8a089](4a8a089)) * **cli:** Updated configuration commands and mechanism ([#310](#310)) ([9079b6d](9079b6d))
PR Type
Enhancement, Tests, Configuration changes
Description
APIClient
class with HTTP methods and error handling.EnvironmentController
for environment CRUD operations.EnvironmentController
CRUD operations.api-client
package.api-client
package.api-client
package.api-client
package.Changes walkthrough 📝
3 files
client.ts
Implement API Client with HTTP methods and error handling
packages/api-client/src/client.ts
APIClient
class with methods for GET, POST, PUT, and DELETErequests.
APIClient
instance.environment.ts
Add EnvironmentController for environment CRUD operations
packages/api-client/src/controllers/environment/environment.ts
EnvironmentController
class with methods for environment CRUDoperations.
APIClient
for making HTTP requests.environment.types.d.ts
Define TypeScript interfaces for environment API
packages/api-client/src/types/environment.types.d.ts
responses.
1 files
environment.spec.ts
Add tests for EnvironmentController CRUD operations
packages/api-client/tests/environment.spec.ts
EnvironmentController
.10 files
jest.config.ts
Add Jest configuration for API Client package
packages/api-client/jest.config.ts
api-client
package.setup.ts
Add setup script for test environment initialization
packages/api-client/tests/config/setup.ts
teardown.ts
Add teardown script for test environment cleanup
packages/api-client/tests/config/teardown.ts
.eslintrc.js
Add ESLint configuration for API Client package
packages/api-client/.eslintrc.js
api-client
package.package.json
Add package.json for API Client package
packages/api-client/package.json
api-client
package with scripts for build,test, lint, and format.
tsconfig.json
Add TypeScript configuration for API Client package
packages/api-client/tsconfig.json
api-client
package.tsconfig.spec.json
Add TypeScript configuration for Jest tests
packages/api-client/tsconfig.spec.json
api-client
package.validate-api-client.yaml
Add GitHub Actions workflow for API Client validation
.github/workflows/validate-api-client.yaml
api-client
package.pre-commit
Update pre-commit hook to include API Client tests
.husky/pre-commit
api-client
package..env.example
Update environment variable for backend URL
.env.example
NEXT_PUBLIC_BACKEND_URL
toBACKEND_URL
.1 files
pnpm-lock.yaml
Update dependencies and lockfile for API Client
pnpm-lock.yaml
api-client
package.