* feat: Add new gRPC v2 plugin
- Enhanced DataSourcesController to support invoking methods on data sources.
- Introduced InvokeDataSourceMethodDto for method invocation requests.
- Added WhitelistPluginGuard to restrict method invocation based on data source kind.
- Updated IDataSourcesController and IDataSourcesService interfaces to include invoke method functionality.
- Implemented invokeMethod in DataSourcesService to handle method calls for gRPC v2.
- Added method whitelisting for gRPC v2 in the service layer.
* refactor: invokeMethod to use method dispatch pattern
* fix: improve error handling in testConnection method
* Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* refactor: update types and interface
* fix: remove unnecessary border styles for improved UI consistency
* refactor: simplify error handling
- Introduced a new SCSS file for styling the gRPC v2 query editor components.
- Styled request sections, server URL input, dropdown menus, and method buttons for better user experience.
refactor(grpcv2): enhance error handling and type safety
- Updated error handling in gRPC query service to use a new `toError` utility function for consistent error conversion.
- Improved type definitions for gRPC client and service methods to ensure better type safety.
- Refactored method existence validation and gRPC call execution to handle errors more gracefully.
fix(grpcv2): improve service discovery and proto file loading
- Enhanced service discovery logic to handle reflection and proto file clients more robustly.
- Added checks for valid service constructors and improved error messages for better debugging.
- Updated the `loadProtoFromRemoteUrl` function to handle HTTP errors more effectively.
chore(grpcv2): add utility functions for type checks
- Introduced utility functions `isRecord`, `hasProperty`, and `toError` for better type checking and error handling throughout the codebase.
* feat: add LegacyBanner component for gRPC legacy tag display
* fix: styling changes
* fix: correct text in LegacyBanner component
* feat: enhance GRPCv2 component with request handling and state management improvements
* refactor: update metadata handling in GRPCv2 component and service
* refactor: update GRPCv2 component to use raw_message instead of requestData
* fix: Styling issues and labels
* refactor: gRPC test connection checks for proto file and url
* fix: improve error handling in service discovery
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Enhanced rest api body to accept raw input instead of raw json.
* Changed content type from application/json to text/json and changed copywrite to RAW.
* Changed rest api body toggle label from 'RAW' to 'Raw'.
* Added request label for static REST API data source.
* Fixed issue where GET query failed since body was undefined.
* Integrated json_body to add backward compatibility.
* Removed console logs.
* Added support for 'text/json' type in checkIfContentTypeIsJson function.
* Made changes according to new frontend architecture in v3.
* Fixed request URL field overflow issue.
---------
Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com>
* Add cookies parameter to querybuilder frontend
* Add cookies parameter to datasource page
* Add cookies to the request headers in backend
* Change return type of sanitizeCookies function
* Change empty state styling in query-builder
* Add style changes for button
* fix : rounded corners in border for key field in rest api datasource
---------
Co-authored-by: Abd-Rahman-1999 <s.rahmanabd1999@gmail.com>
* events should be synced for multi-edit
* remove console
* removes db constrainsts for layouts and handles corrupeted apps created from prev migrations
* Revert "removes db constrainsts for layouts and handles corrupeted apps created from prev migrations"
This reverts commit 10a307118b.
* removing constrainsts fro CE
* bumped the patched version ~ 2.26.3
* fixes: import/export general styles for components
* fixes: viewer crash on adding plugin as gds due to accessing camalised data
* fixes: plugin queries gds
* preserve duplicate search params on restapi
* preserve duplicate params in query manager params fields
* fixes: edge cases where undo of some components crashes thew widget
---------
Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com>
* Implemented multiple access token feature
- working on refresh token case
* worked on refresh token flow
* added multiple token ability to openapi plugin too
- fixed some bugs
* changed tokenData to token_data
- fixed some issues
* added user type with user id
* changed user type
* Rewrote some function
- added switch for enabling and disable multi auth
- fixed some bugs
- refactored the code
* fixed view app issue
* Fixed public app issue
* cleaning some code
* (public_app) add a check to avoid oauth login redirect when there is no access token
* reverted all changes of openapi (temporary)
- will add multi token functionality once done with restapi
* fixed a bug
* fixed a bug
* refactored some code
* changed the switch text
* pr changes
* changed token_data back to tokenData
* cleaning code
* removed token data from datasources query
* removed some lines
* added a comment
* merge develop
* Add eslint dependencies, configs and scripts to plugins project
* run lint with Github action
* ignore tests and dist folders
* fun eslint with --fix and manual fixes, renamed __tests_ to __tests__
* add plugins packages folder to lint-staged config
* fix lint issue
* implement google sheet oauh token refresh flow
* format lint
* make use of constructor name as instanceof fails
* remove unused import
* force consent to get refresh token on googlesheets ds