ToolJet/plugins/package.json
Akshay ca71355d8e
Feature[LTS]: GRPC Plugin revamp (#13894)
* 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>
2025-08-21 16:39:31 +05:30

92 lines
No EOL
4.1 KiB
JSON

{
"name": "@tooljet/plugins",
"version": "0.0.1",
"source": "server.ts",
"types": "dist/server.d.ts",
"main": "dist/server.js",
"scripts": {
"create:client": "node create-client-entry",
"create:server": "node create-server-entry",
"create:operations": "node create-operations-file",
"build:server": "rimraf dist/ && tsc -b",
"start": "tsc -b --watch",
"build": "npm run create:client && npm run create:server && npm run build:packages && npm run build:server && npm run create:operations",
"prebuild:packages": "npm run clean:packages",
"build:packages": "node build-packages.js",
"clean:packages": "node clean-packages.js",
"lint": "eslint . '**/*.ts'",
"format": "eslint . --fix '**/*.ts'",
"test": "NODE_ENV=test jest"
},
"dependencies": {
"@tooljet-plugins/airtable": "file:packages/airtable",
"@tooljet-plugins/amazonses": "file:packages/amazonses",
"@tooljet-plugins/appwrite": "file:packages/appwrite",
"@tooljet-plugins/athena": "file:packages/athena",
"@tooljet-plugins/azureblobstorage": "file:packages/azureblobstorage",
"@tooljet-plugins/baserow": "file:packages/baserow",
"@tooljet-plugins/bigquery": "file:packages/bigquery",
"@tooljet-plugins/clickhouse": "file:packages/clickhouse",
"@tooljet-plugins/common": "file:packages/common",
"@tooljet-plugins/cosmosdb": "file:packages/cosmosdb",
"@tooljet-plugins/couchdb": "file:packages/couchdb",
"@tooljet-plugins/databricks": "file:packages/databricks",
"@tooljet-plugins/dynamodb": "file:packages/dynamodb",
"@tooljet-plugins/elasticsearch": "file:packages/elasticsearch",
"@tooljet-plugins/firestore": "file:packages/firestore",
"@tooljet-plugins/gcs": "file:packages/gcs",
"@tooljet-plugins/googlesheets": "file:packages/googlesheets",
"@tooljet-plugins/graphql": "file:packages/graphql",
"@tooljet-plugins/grpc": "file:packages/grpc",
"@tooljet-plugins/grpcv2": "file:packages/grpcv2",
"@tooljet-plugins/influxdb": "file:packages/influxdb",
"@tooljet-plugins/jira": "file:packages/jira",
"@tooljet-plugins/mailgun": "file:packages/mailgun",
"@tooljet-plugins/mariadb": "file:packages/mariadb",
"@tooljet-plugins/minio": "file:packages/minio",
"@tooljet-plugins/mongodb": "file:packages/mongodb",
"@tooljet-plugins/mssql": "file:packages/mssql",
"@tooljet-plugins/mysql": "file:packages/mysql",
"@tooljet-plugins/n8n": "file:packages/n8n",
"@tooljet-plugins/nocodb": "file:packages/nocodb",
"@tooljet-plugins/notion": "file:packages/notion",
"@tooljet-plugins/openapi": "file:packages/openapi",
"@tooljet-plugins/oracledb": "file:packages/oracledb",
"@tooljet-plugins/postgresql": "file:packages/postgresql",
"@tooljet-plugins/redis": "file:packages/redis",
"@tooljet-plugins/restapi": "file:packages/restapi",
"@tooljet-plugins/rethinkdb": "file:packages/rethinkdb",
"@tooljet-plugins/s3": "file:packages/s3",
"@tooljet-plugins/saphana": "file:packages/saphana",
"@tooljet-plugins/sendgrid": "file:packages/sendgrid",
"@tooljet-plugins/slack": "file:packages/slack",
"@tooljet-plugins/smtp": "file:packages/smtp",
"@tooljet-plugins/snowflake": "file:packages/snowflake",
"@tooljet-plugins/stripe": "file:packages/stripe",
"@tooljet-plugins/twilio": "file:packages/twilio",
"@tooljet-plugins/typesense": "file:packages/typesense",
"@tooljet-plugins/woocommerce": "file:packages/woocommerce",
"@tooljet-plugins/zendesk": "file:packages/zendesk"
},
"peerDependencies": {
"form-data": "^4.0.0",
"typescript": "^4.9.5"
},
"devDependencies": {
"@types/jest": "^27.5.2",
"@types/node-int64": "^0.4.32",
"@types/nodemailer": "^6.4.7",
"@types/oracledb": "^5.2.2",
"@typescript-eslint/eslint-plugin": "^4.33.0",
"@typescript-eslint/parser": "^4.33.0",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-jest": "^24.7.0",
"eslint-plugin-prettier": "^3.4.1",
"jest": "^27.5.1",
"lerna": "^5.5.2",
"prettier": "^2.8.3",
"rimraf": "^3.0.2",
"ts-jest": "^27.1.5"
}
}