Commit graph

205 commits

Author SHA1 Message Date
Josh Taylor
3404aad489
Add missing sourceOptions to Snowflake to fix the warehouse/database/schema/role when connecting (#2718)
* Add missing sourceOptions to snowflake and use official snowflake-sdk

* Revert change to snowflake-sdk
2022-04-18 13:31:30 +05:30
Kavin Venkatachalam
7711a34b93
Baserow integration (#2773)
* Baserow integration

* Added JSON5 & updated code
2022-04-11 16:49:49 +05:30
Kiran Ashok
9a83f99bd1
Plugin: RethinkDB datasource (#2724)
* types intial

* manifest intial updates

* sample operation

* initial

* sample operation

* updating defaults

* test connection and crate table operation

* retreive insert updates

* updates

* updates

* cleanup all basic operation

* code refactor

* connection adding auth update

* updating insert bug

* cleanup , fixing bug with insert and update

* code cleanup :: using default databse if name not provided

* fixing bug in list documents

* cleanup

* icon updated

* docs updated

* reverting

* reverting

* revert

* revert

* optimizing

* typo fixed :: pr changes

* alignment fix

* bug correction

* reverting rethinkdb installation outside plugins

* updating types

* reverting unintentional changes

* updates

* key mismatch

* updated docs info

* typo bug :: create table

* revert

* reverting rethinkdb installation
2022-04-08 17:13:38 +05:30
Muhsin Shah C P
a56c272180
Feature: Added a feature to show raw query responses (#2562)
* Implemented json/raw preview modes

* Added dark theme

* Changed some bg colors

* made text copiable

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2022-03-31 16:00:09 +05:30
Muhsin Shah C P
9706de80cb
Appwrite integration (#2589)
* Started working on appwrite plugin
    - Initialized appwrite plugin
    - Added appwrite npm module
    - Implemented appwrite authentication
    - Working on operations

* Implemented some operations
- Only query collection left

* added query collection operation

* Added appwrite logo

* Edited docs of appwrite

* Edited some fields descriptions and placeholder texts

* Made some code changes
- Replaced JSON with JSON5
- Removed unwanted list option

* Fixed integer conversion bug
- Refactored some code

* Removed unrelated dependencies
2022-03-29 19:52:26 +05:30
Muhsin Shah C P
05edf4bcf0
Feature: Added refresh token functionality to Rest API OAuth flow (#2536)
* Working on refresh token fn
- Added refresh token to options

* Added and tested google oauth refresh token flow

* Working on outlook refresh token code

* Tested refresh token fn with google oauth and outlook

* Resolving a bug

* Added prompt=consent to auth url

* Appended custom params to authUrl

* Resolved a test error
2022-03-25 12:48:29 +05:30
Muhsin Shah C P
81bed483f9
Feature: Added a field for custom query params (REST API OAuth setup) (#2605)
* Added custom query params to rest api oauth flow
- Also resolved a bug

* Refactoring code
2022-03-24 21:21:34 +05:30
Akshay
16c9e2355e
Chore: Update docker files to use buster to be used with oracledb (#2624)
* update docker files to use buster to be used with oracledb

* revert oracledb extractable dependency

* update dockerfile

* add libaio1 dependency

* make use of oracledb releases directly as dependency
2022-03-24 17:30:14 +05:30
Kiran Ashok
954976005e
InfluxDB integration (#2590)
* initial creation

* test operation

* test operation

* option included to test connection and manifest file updated

* updating all operations

* updated all bucket operations

* write operation logic

* type update

* completed query end points

* updating all keys

* updating all labels

* bucket operations completed

* seperating  required params

* reordering operations

* cleanup

* docs updated influxdb

* fixing flux query operation

* updates in docs

* pr changes

* pr change

* pr changes reverting oracle db

* upating icon

* changing default port

* pr changes and fixing write operation

* reverting lock file change by replacing with develop

* deafult port update

* updating docs position

* reverting lock file in docs
2022-03-23 14:59:45 +05:30
Akshay
b8288402d0
Add support for specifying file upload encoding (#2608) 2022-03-23 07:51:23 +05:30
Navaneeth Pk
0cb9f46381 Fixes lint errors 2022-03-21 10:15:31 +05:30
Jordi
85ea7a3380
Added explicit error when no google env are set (#2581)
* Added explicit error when no google env are set

* Typo
2022-03-20 08:13:58 +05:30
Kiran Ashok
329e5e29fe
[UI improvement] Datasource selector in query manager updated from dropdown to cards (#2469)
* updating query manager datasource listing ui

* ui updation for datasource in query manager

* including back button after selecting datasource

* handling ui break when more data source is added

* updating key

* removing unused code

* removing unused code

* updating ui for darkmode support + testing clearing of fields during backbutton click

* fixing border

* testing updates for clearing fields for stripe,rest

* updated transformation alert

* indication for selected data source

* updating styles for dark mode

* darkmode bugfix

* updating transformation style to enable popover

* bugfix

* css updates for popover

* style updates

* aligning icon

* updating styles

* cleanup

* state name updated

* removing unwanted things from ui during create query

* lifting state uo :: fixing intermediate state issue while clicking add query during query edit

* update

* fixing typesense icon
2022-03-18 10:27:35 +05:30
Muhsin Shah C P
eaf93616ae
Feature/oracledb plugin (#2388)
* oracledb initial commit
- Added oracledb package

* Implemented connection and operations

* Working on oracle db integration

* Implemented query & bulk operations

* Fixed initial client reintialization problem

* Added custom client library path option

* Added oracle client library installation steps to dev docker file

* Testing changed docker setup on cloud

* Testing heroku app.json

* Removed unwanted scripts from dockerfiles

* Updated field label

* update oracledb client lib for ec2

* update package-lock

* refactoring code

* Updated docs

* Resolved some lint errors

Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com>
2022-03-15 08:00:02 +05:30
Arpit
930b4bf3f1
chore/plugins: fixes lint warning and errors (#2502) 2022-03-14 15:05:02 +05:30
Sherfin Shamsudeen
cba9837d06 Merge branch 'main' into develop 2022-03-11 12:02:37 +05:30
meAnushree
6c53ad2118
Update width of spreadsheet field of sheets operations (#2480) 2022-03-11 08:22:05 +05:30
Maurits Lourens
35332be72d
Mailgun integration (#2392)
* add mailgun template

* add api key option

* undo committing idea folder, implement mailgun sdk

* add docs

* merge develop

* implement review comments, removed vscode files

* undo changes to package-lock.json

* implement review comments

* remove unused dev dependency

* remove unused dev dependency

* revert deletion of vscode config files
2022-03-11 08:14:04 +05:30
Kiran Ashok
2c5c66bfb1
Integration couchDB (#2337)
* feature :: couch db

* updates

* types update

* updated types

* couch db integration updates for crud opertations

* updates

* updated icon

* inlcluding port

* port addition

* crud updates

* updates including proper variables

* optimizing

* updates

* completed basic crud with couchdb

* updates

* view get option

* removing hints

* adding skip

* updates for adding params and mangoquery

* changing auth order

* adding condition check to conditionally add  and remove  params

* adding checks

* sepreated protocol and host

* updates

* included connection testing

* updated with pr suggestions

* couch db documentation

* updates

* fixed bugs , completed docs

* typo

* marking optional params

* optimizing

* image updated

* changed img for find

* updating list record query to include doc data

* updating couchdb docs :: include_docs key addition
2022-03-10 18:24:11 +05:30
Maurits Lourens
60f515d19c
Feature/2395 - add eslint to plugins (#2402)
* 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
2022-03-10 12:29:48 +05:30
Muhsin Shah C P
e5611457bd
[Hotfix] SQL Server data-source doesn't connect to the azure based SQL servers (#2463)
* Fixed azure issue

* Added a default value for azure toggle
2022-03-09 12:27:09 +05:30
Muhsin Shah C P
fe0da03f85
Added responseHeaders to exposed data (#2426) 2022-03-08 12:09:53 +05:30
Arpit
030cc727b1
[Unit test] Plugins - Googlesheet update operation (#2450)
* refactored updateoperation

* adds unit test for generating the request body for update operation

* fixes array methods for looping over the array
2022-03-08 11:53:47 +05:30
Arpit
7775ef53cb
adds incremental columns beyond 'Z' (#2440) 2022-03-07 14:18:30 +05:30
Akshay
22636926f4
handle int/string for primary key on sql bulk update (#2351) 2022-02-25 12:23:45 +05:30
Muhsin Shah C P
e4083541bd
Feature: SMTP plugin (#2263)
* Smtp server datasource
- Done connection & test connection

* Worked on basic mail delivery
- Changed the icon
- Defined operations json
- Implemented text and html email sending

* Username / ID changed to encrypted

* Added attachments

* Changed placeholder of attachment

* Changed datasource name

* Changed query options
- Added multiple to_email option
- Added from name field

* Renamed the datasource

* cleaning post rename plugin problems

* Fixed minor code issues

* Added smtp documentation
2022-02-22 13:42:35 +05:30
Muhsin Shah C P
2cc788ab6c
Feature/plugin: n8n integration 🔥 (#2227)
* Integrated new n8n datasource [initial]

* Resolved some bugs

* Added a dropdown for auth type
- changed sensitive fields to encrypted
- Added basic & header auth

* Added changes
- Plugin icon
- Removed ecrypted option from username
- Chnaged some placeholder text and field names

* Changed datasource fields
- Removed host from datasource modal
- Added url field to operations
- Changed operation names

* Redesigned dynamic list

* changed error message

* Changed icon

* Added helpText to dropdown-flip component

* Cleaning code

* Cleaning code

* Added n8n documentation

* Edited hint text
2022-02-21 23:37:09 +05:30
Akshay
1228c3b48d
Feature: Snowflake integration 🚀 (#2261)
* wip

* establish connection to snowflake ds

* fix icon

* fix snowflake operations manifest

* add documentation

* fix formatting

* add snowflake optional params

* update snowflake sdk dependencies
2022-02-17 14:33:27 +05:30
Arpit
1b7fb46d13
[hotfix] adds update operation with sheet name (#2266)
* adds update operation with sheet name

* update placeholders
2022-02-17 00:12:20 +05:30
Navaneeth Pk
e18bface32
Adds support for JSON string in firestore bulk update query (#2243) 2022-02-12 15:37:05 +05:30
Gandharv
3098fdaa19
Plugin naming for minio, mongodb, twilio, typesense (#2154) 2022-02-08 10:34:50 +05:30
Midhun G S
6bcfff7196
Feature: create record operation for Airtable (#2191) 2022-02-08 08:54:50 +05:30
Midhun G S
f2088be23b
[BUG-2187] Plugins manifest.json isLoading type should be boolean (#2188)
* bug-2187 fix

* add encrypted field
2022-02-08 08:44:38 +05:30
Muhsin Shah C P
a38ebb764c
Fixes Twilio and S3 icons (#2186) 2022-02-08 06:49:46 +05:30
Arpit
8c990df18d
[Bugfix] style fixes querypanel (#2163)
* fixes default value for restapi

* fixes default value for restapi

* restapi-url field width 100%

* removes extra padding from codehinter input field

* fixes querypanel code hinter margins

* fixes overlap fields firestore
2022-02-07 18:13:28 +05:30
Midhun G S
f4284f8f81
Big Query Integration 🚀 (#2160)
* initial commit

* feature-2152 bigquery integration

* Typo fix

* moved bigquery to databse type
2022-02-07 15:32:38 +05:30
Akshay
59cf3b1931
Fix: Googlesheets OAuth refresh token flow (#2118)
* 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
2022-02-05 07:09:40 +05:30
Midhun G S
21e6b27af7
Bug-2110 mongo-projections (#2128) 2022-02-04 14:00:17 +05:30
Arpit
3a62ac9820
[improvement] Query panel redesign (#1947)
* query panel headers styles

* create query button style update

* create query button style update

* create query button style update: mixins

* querypanel header nav-links updated

* querypanel header buttons

* restapi: url hinter styles

* fixes querypane header width, undo prev styles applied

* querypanel header icons margin fix

* restapi: header tab

* restapi: params tab

* restapi: body tab

* base url style fixed

* added alert component to @/_ui

* adds margin top to query-panel tabs

* bumped font weight of preview

* on hover query style updated

* selected query style update and along with dark themed

* adds new searchbox component, added search queries

* fixes query panel query lists icons margin

* query selected hover bg

* back icon should not be render if callback is a function

* airtable: queries redesigned

* stripe: queries redesigned

* fixed query-pane header responsiveness

* fixes tab title typo

* undp/redo select datasource only when mode='create'

* removes comments

* refactor restapi url codehinter styles

* fixes white spaces in query pane and query pane header

* minor updates for restapi query options styles

* removes tool-tip for lens svg icon for search: query-pane header

* adds button loading spinner with primary color

* fixes hover bg color for queries

* update: query hover bg color to lighter tint

* update query list icons: trash and play svgs

* adds icons to the selection component

* fixes tabs alignments restapi

* fixes codehonter text margin: restapi url

* fixes advanced-options-container margintop

* new UI query: dynamodb

* new UI query: elasticsearch

* new UI query: firestore

* new UI query: mongodb

* new UI query: mysql

* new UI query: psql

* new UI query: typesenseapi

* new UI query: gsheet

* new UI query: sendgrid

* new UI query: twillio

* new UI query: gcs

* new UI query: minio

* new UI query: aws

* update query bg color and hover bg color

* fixes run query icon for dark theme

* fixes input query title text alignment

* update query header title

* adds search queries placeholder and add icon when search box is displayed

* updated No results query text

* undo/redo rest-api tabs: fixes whote spaces

* undo/redo: rest-api tabs conde hinter placeholder paddinleft

* adding new queries when search box component is mounted:fix

* fixes creating a new query after filtering queries

* fixes dark theme for select search components

* reverts query pane header search box with add icon

* fixes input left margin

* fixes bottom padding rest api tabs

* fixes toggle button:not selected in dark theme

* fixes typos

* fixes preview button spinner size

* undo/redo: query-trash-icon.svg for queries and trash.svg for components

* query icons badge bg update[options]

* icon badge fix

* move static styles to theme.scss

* restapi: url field height increment

* fixes query name when adding a new query with filtered querylist

* fixes alignment issues of the query header icon

* revert back to 32px code hinter height

* adds apdding to code mirror line

* updates to react-select

* remove component unmounts and mounts side effect
2022-02-02 22:29:57 +05:30
dependabot[bot]
cd0b1ddb56
Bump node-fetch from 2.6.6 to 2.6.7 in /plugins/packages/firestore (#2033)
Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.6 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases)
- [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.6...v2.6.7)

---
updated-dependencies:
- dependency-name: node-fetch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-01 08:32:48 +05:30
dependabot[bot]
db0f649450
Bump follow-redirects in /plugins/packages/sendgrid (#2027)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.14.6 to 1.14.7.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.14.6...v1.14.7)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-01 08:32:31 +05:30
dependabot[bot]
1d3f0c0f42
Bump node-fetch from 2.6.6 to 2.6.7 in /plugins/packages/gcs (#2034)
Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.6 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases)
- [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.6...v2.6.7)

---
updated-dependencies:
- dependency-name: node-fetch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-01 08:32:12 +05:30
dependabot[bot]
3c6dc1406c
Bump follow-redirects in /plugins/packages/twilioapi (#2026)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.14.6 to 1.14.7.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.14.6...v1.14.7)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-01 08:31:54 +05:30
dependabot[bot]
36ec9149a4
Bump follow-redirects in /plugins/packages/typesenseapi (#2025)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.14.6 to 1.14.7.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.14.6...v1.14.7)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-01 08:31:43 +05:30
Arpit
387433f0a4
Fixes sendGrid plugin: setApiKey not a function (#1999) 2022-01-29 06:52:56 +05:30
Akshay
7af79c091e
Fix: Namespaced data source connectivity issues (#1914)
* add mysql package dependency

* fix mssql

* fix redis

* make use of backward compatible opensearch package for es

* fix es request
2022-01-27 16:01:39 +05:30
Gandharv
27c91a008a
Add json schema for vscode autocomplete (#1962)
* add json schema

* update schema

* update link
2022-01-27 10:55:16 +05:30
Midhun G S
6994dfcde8
bug-1934 mongbdb label issue fix (#1935) 2022-01-25 07:37:18 +05:30
Gandharv
d367720c66
Add source options types for plugins (#1861)
* add source options types

* Remove query type

* fix source options

* add accesstoken - slack

* add types.ts file

* add idx files

* Add query options type for plugins (#1878)

* add query options type

* add missing import
2022-01-24 19:29:21 +05:30
Gandharv
639161f192
Add namespace @tooljet-plugins (#1904)
* add namespace @tooljet-plugins

* add namespace for common package

* lerna -> dev deps

* npx lerna

* pkg-lock
2022-01-23 14:43:52 +05:30
Arpit
22b22b6975
Improvement/inspector datasource modal (#1821)
* new modal body with sidebar

* sidebar list

* card ui component and render datasources in deck of cards

* style fixes-datasource modal

* modal card ui

* refactored cards

* Card refactored

* data source list modal

* modal margin topt

* modal datasource search bar

* styles fixes and searchbar

* style fixes for the search bar

* margin fixes

* added filter for datasources

* undo unwanted

* empty state ui

* handle back to all datasource from empty etate

* on type icon

* clear icon

* updated onexit

* refactored handlesearch

* suggestion datasource ui

* removes active class when suggestion ui is on

* styles fixes for suggestied ui

* added darkmode fixes

* styles fixes

* padding fixed for search box

* exp: hover effect on datsources card

* exp: hover effect on datsource tyes list

* fixes typos

* should not able to submit an empty value

* fixes unsued console.logs and white spaces

* plugin icon prop to card component

* fixed close icon

* fixes margintop for searchbar

* list size fix

* fixes datasource title

* fixes datasource list padding

* moving minio plugin to cloud storage type

* fixing typos and refactored

* improved search

* fixes search box sideeffect

* fixes back to all datasources list
2022-01-22 09:31:55 +05:30
Gandharv
c9d5bd09e9
Added Airtable plugin tests (#1863) 2022-01-20 14:38:19 +05:30
Gandharv
6205903401
[docs] update datasource docs (#1851) 2022-01-18 11:22:23 +05:30
Gandharv
fd6f263a87
add int type for port - knex (#1842) 2022-01-17 21:46:46 +05:30
Gandharv
2f3b441c0a
Move plugins to root (#1728)
* feat: move plugins to root

* modify tsconfig

* add .gitignore

* delete old plugins file

* add parcel

* docker compose volume mount

* add gcs

* add typescript to plugins folder

* gcs to ts

* add dynamodb

* add elastic search

* add firestore

* add gsheets

* add graphql

* add mongodb

* mssql

* add mysql

* add postgresql

* add redis

* add s3

* add slack

* add stripe

* remove plugin related packages from pkgjson

* add lib folder

* add gitignore

* remove typescript generated files

* remove generated file

* remove generated files

* add twilio

* add dist to docker compose cache binding

* add dist prefix

* cleanup - 1

* delete dist

* rename to index.ts + add jest config

* add it.todo in tests

* test fixes

* test file changes

* fix type checks

* add @tooljet/plugins to server package json

* esm vs commonjs bug, reduce got to 11.8.2 from 12.0.0

* docker file npm package version fix

* add typesense

* cleaup - 2

* add sendgrid

* add lerna build and clean script for all packages + tsconfig

* cleanup -3

* add plugins build step

* add missing plugins build step in npm run build

* add mssql, mysql & postgres as singleton classes

* add db connection to cache only if datasourceId is available

* client: add data source schema/manifest files

* add query operations files

* logic for wrapping form with schema

* add script to create index file

* add @tooljet/plugins to frontend folder

* cleanup 1 -frontend

* cleanup - 2 // frontend // data queries

* add client and index to gitignore

* update gitignore

* fix lint & test

* update ci

* fix unit, e2e

* cleanup -3

* fix test

* fix tests

* fix indent

* try npm ci

* fix tests

* fix typo

* fix

* rename file for server entry

* heroku fix

* add main and types entry points in pkg json

* move common to root

* cleanup - 4: remove redundant $ sign prefix

* cleanup - 4: remove redundant $ sign prefix

* update options in-sync before DOM is painted

* change type cloud to cloud storage

* update readme

* update ci.yml

* update ci yml

* add pkg-lock.json

* rename index.ts to server.ts

* update lock files

* add server package.lock

* remove unused import

* revert commit: add minio

* add root dep

* import server.ts

* remove plugins build step

* add npm shrinkwrap

* update version - plugins

* add new version - 0.0.8

* upgrade version

* move to symlinked package

* add lock file

* feat: add icon inside package

* add plugin creation docs

* Remove seed

* move icons to plugins folder

* install pg dep

* add react to packages

* add seed cmd

* revert change

* add plugins build in lint, e2e, unit

* e2e, lint use npm ci

* update dockerfile for plugins

* try combining release with web

* limit memory on release

* try executing seed script post transpile

* try executing seed from server directory

* update seed execution

* add minio

* add correct type

* add minio to pkg json

* remove old file

* fix provider key

* add python installable + npm ^7.2.0 (#1752)

* add python installable + npm ^7.2.0

* add py to prod file

* pin npm version to 7.20.0

* pin npm version to 7.20.0

* split into multi stage build and remove python for buildx

* copy plugins from buider stage

* update dependencies

* add freetds dependency

* update server dockerfile

* update client dockerfile

* update dev dockerfile and compose file

* fix entrypoint

* fix server dev dockerfile

* update docker-compose

* remove npm install on root dir on docker build

* fix heroku script

* make lerna prod dependency to enable prod builds

* remove redundant env setup

Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com>
Co-authored-by: navaneeth <navaneethpk@outlook.com>
2022-01-17 12:38:17 +05:30