Commit graph

52 commits

Author SHA1 Message Date
gsmithun4
921714d8a9 Refactor code structure for improved readability and maintainability 2026-01-23 15:41:49 +05:30
gsmithun4
3513c3f6fa merge 3.16.0 changes to develop 2025-08-03 12:39:18 +05:30
gsmithun4
269ec56455 Initial commit 2025-02-25 12:22:50 +05:30
Devanshu Rastogi
e4196adae1 Enhance: Rest api body to accept raw input instead of raw json. (#2249)
* 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>
2024-11-22 12:49:08 +05:30
Akshay Sasidharan
04c032f5a2 add retry toggle on restapi datasource config 2024-11-09 21:12:16 +05:30
Ganesh Kumar
5c628ba229 fix: renamed REST api datasource (#2549) 2024-11-09 19:04:48 +05:30
Akshay Sasidharan
03329abfa6 sync marketplace and tooljet database changes 2024-10-28 23:37:40 +05:30
Muhsin Shah
ee336379e7 Regenerated some plugin locks 2024-08-05 12:26:01 +05:30
Muhsin Shah C P
63257942df
Updated restapi requestURL and headers of request obj (#10377) 2024-07-16 13:55:40 +05:30
Muhsin Shah C P
c968e7f7d8
[to-main] Exposing password in basic auth success request URL (#10320)
* Exposed password in basic auth success request URL

* Added the regex check

* hide password for basic auth

---------

Co-authored-by: gsmithun4 <gsmithun4@gmail.com>
2024-07-15 21:02:10 +05:30
Parth
fab12df3c4
Feature: Manual toggle for retrying failed REST-API requests (#10100)
* Add retry-toggle to app builder

* Add backend logic for number of retries

* Add retry-toggle to restAPI data-source

* Add margins between settings options in app builder

* Add changes for static-query toggle in app builder

* Initialise toggle value in store

* Change tooltip text

* Change classname for tooltip

* Add default value for toggle from manifest.json

* fix : rest api retry network toggle width issue

* Refactor: Setup retry initialization within restapi component (#10219)

* refactor to setup retry initialization within restapi component

* remove unused css class

* rename condition

* remove unused css

* Refactored: Merged RestAPIToggle into existing Toggle component

* Fix cookies support input render in querybuilder

* Add delayed initialization for retry_network_errors

---------

Co-authored-by: Abd-Rahman-1999 <s.rahmanabd1999@gmail.com>
Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com>
2024-07-09 13:10:22 +05:30
Parth
056d23dd94
Feature: Add cookies support in the REST API datasource & query builder for static and global datasource (#10166)
* 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>
2024-07-01 15:32:24 +05:30
Akshay Sasidharan
7404968056 remove json attribute added on request options 2024-05-21 19:53:56 +05:30
Kiran Ashok
41bce67b1d
hotfix : Console throwing error / warnings related to svgs (#8895)
* fix : fix fill rule clip rule etc to camelcase

* fix : svg width and height made to 100% instead of auto

* fix :: few more svg height and width change in editor

* remove logs
2024-02-22 16:52:54 +05:30
Arpit
b91029a008
[hotfix] CE fixes (#8395)
* 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>
2023-12-28 15:16:50 +05:30
Akshay Sasidharan
17ff9f540c explictly check for multipart headers for restapi 2023-11-17 12:36:10 +05:30
Marc Meszaros
d98121cd75
feat: Support multipart/form-data body when file like objects are specified in restapi datasource (#6622)
* Automatically convert restapi datasource request body to multipart/form-data if a file object is detected (#6621)

* Improve fileobject check function in restapi datasource and guard against bad file data (#6621)

* Avoid null or undefined in restapi datasource form-data payload

* update keyboard shortcuts page (#8143)

---------

Co-authored-by: Karan Rathod <karan.altcampus@gmail.com>
Co-authored-by: Akshay <akshaysasidharan93@gmail.com>
2023-11-17 10:47:35 +05:30
Ganesh Kumar
71c04385c5 merged markeplace_release_1.2 2023-07-27 11:22:22 +05:30
Ganesh Kumar
5937d1b976 added SSL option for Rest API 2023-07-26 13:58:29 +05:30
Muhsin Shah C P
80ee7b7cac
[Improvement] Auth flow improvements for RestAPI, OpenAPI & GraphQL (#5324)
* Added access token url headers option to open api

* removing and adding code

* add authentication in GraphQL as RestAPI (#6687)

* add authentication in GraphQL as RestAPI

* fix: remove double header check

---------

Co-authored-by: Jean-Baptiste PIN <jeanbaptiste@idruide.com>

* refactor auth flows for restapi, openapi & graphql

* fix type errors

* remove redundant declarations

* fix openapi build error

* update authUrl for OAuth

* fix oauth check

---------

Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com>
Co-authored-by: Jean-Baptiste PIN <jibet.pin@gmail.com>
Co-authored-by: Jean-Baptiste PIN <jeanbaptiste@idruide.com>
2023-07-21 15:38:56 +05:30
Midhun G S
7062406be7
Fix for REST API plugin: Convert to Base64 if response type image (#6277)
* Fix for REST API plugin response type image

* getting data from rowBody instead of body
2023-05-10 11:23:35 +05:30
Kavin Venkatachalam
1efcec9e09
[Feature]: Update Node from 14 to 18 (#5393)
* Updated package.json to support node 18

* Updated package-lock.json with force install

* Updated frontend package.json

* Updated server package.json

* update frontend package-lock.json

* update render dockerfile

* update dockerfiles for node 18

* update node version in actions

* fix setup script for AMI

* install using nvm

* debug

* source bashrc

* change ami os version

* change base ami

* make use of ubuntu focal lts version

* update script

* change branch name

* revert branch name

* update workflow

* node upgrade [plugins] modules updated (#5482)

* modules updated

* adds saphana and oracle package

* adds saphana and oracle package

* eslint rules for -unresolved and resolved properties

---------

Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com>
Co-authored-by: Arpit <arpitnath42@gmail.com>
2023-02-06 17:38:44 +05:30
Gandharv
2f025d11d3
Update homepage design (#5121)
* move all apps link under folders

* home page changes

* css changes

* fix

* fix comments icon

* breadcrumb fix

* change logo

* css fixes

* icon

* fix: comment notifications page id param addition

* loader heights change

* fix spacing

* update scroll

* delete unused file

* theme dark fix

* fix cursor

* css changes

* exp: removes skeleton

* exp: update apploader

* hide selector if single workspace

* keep search icon while searching pages

* update apploader

* use ui/select

* update plugin icons

* modal css changes

* css changes

* show delete, edit on hover only - querymanager

* update sidebaritem to use svg directly instead of img tag

* use svg for appicon
2023-01-04 13:28:55 +05:30
Midhun G S
487252c5ea
Feature - Multi Environment support (#4833)
* initial commit

* multi env changes

* multi-env changes

* entity fixes

* data query changes

* fix

* trying to avoid conflict with EE

* moved version creation to app creation function

* fixing some issues

* execution of data query

* revert options changes

* changed migration

* fixed some migration issues: testing migration

* multi env support

* app import export fix

* fixes

* migration fixes

* removed plugins from data query

* fixing some migration issues

* fixes

* remove console log

* fix

* front end api changes

* backward compatibility for app import

* Fixed a bug

* correcting some mistakes

* Added constraints and fixed some issues

* changes

* fix for data source listing

* fixing version operation issues

* remove kind from data query

* removed kind from data query

* fixes

* fixes

* fix for version creation

* migration fixes

* Fixed preview and run query issues

* Fix: new version and event query id issue

* fixed rest api oauth issue
- next test refresh token

* import export changes

* fixes for app import

* import fix

* added await for for loops

* fix

* fix for migration

* Fixed backend oauth-envId issue

* import export changes

* migration fixes

* fix

* fix

* fix for app import from 0.9.0

* test case fixes

* test case fixes

* making app name mandatory for import

* adding type for options

* fix: imported apps query linking issues

* review changes

* lint issue fixes

* added on delete cascade

Co-authored-by: Muhsin Shah <muhsinshah21@gmail.com>
2022-12-09 20:23:42 +05:30
Midhun G S
7fc208e620
merge main to develop (#4832)
* fix for rest api error on API error (#4830)

* Bump minor version v1.29.1
2022-11-22 18:31:05 +05:30
Midhun G S
c862db0f0b
merge main to develop (#4527)
* [ Hotfix ] :: App breaking while reconnecting sheets (#4514)

* app breaking while reconnecting sheets

* back-end fix

* open api fix

Co-authored-by: gsmithun4 <gsmithun4@gmail.com>

* Bump to v1.27.2

Co-authored-by: Kiran Ashok <stepinfwd@gmail.com>
2022-10-19 20:04:57 +05:30
Sherfin Shamsudeen
a8283831d1 Merge branch 'main' into develop 2022-10-14 15:02:00 +05:30
Muhsin Shah C P
2d777c2d51
[hotfix] Fixed oauth refresh token issue (#4406)
* Fixed refresh token issue

* Added re-auth feature

* Fixed token issue

* fixes

* Added public app check

Co-authored-by: gsmithun4 <gsmithun4@gmail.com>
2022-10-14 13:25:32 +05:30
John Bampton
ca5fe39751
all: fix spelling (#4326)
Fixes typos, fixes a file name.

Minor whitespace removal from link
2022-10-11 13:46:40 +05:30
Arpit
48f864f5a5
throw error with response body instead of response (#4365) 2022-10-10 19:31:28 +05:30
Arpit
38ababaa20
[Bugfix]throw error with response body instead of response fro Oauth (#4270)
* throw error with response body instead of response

* resolves: stringify the error response
2022-10-04 12:55:58 +05:30
Muhsin Shah C P
638fcf7223
[Feature] Now multiple users can login through RestAPI-Oauth 🚀 (#4052)
* 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
2022-09-19 20:27:37 +05:30
Midhun G S
3201a52460
fixes for rest api url encoded requests (#3924) 2022-09-01 18:30:32 +05:30
Muhsin Shah C P
f215f8901f
Added url-encoded body support to restapi plugin (#3218)
* Added url-encoded body support to restapi plugin

* Refactored the code
2022-06-10 11:22:23 +05:30
Sherfin Shamsudeen
df54debeb0 Merge branch 'main' into develop 2022-05-26 19:39:51 +05:30
Midhun G S
b05ea813c2
[BUG] Hide authorization header for Rest API (#3129)
* Hide authorization header for Rest API

* Fixed mutatting response
2022-05-26 18:29:05 +05:30
Muhsin Shah C P
66764d5511
Added custom headers for access token URL (#3078) 2022-05-19 18:42:44 +05:30
Muhsin Shah C P
90e192dcb1
Added a field for sending JSON body with Rest Api Queries (#2667)
* updates body ui toggle

* updates

* Implemented JSON body option

* Tested and resolved some issues

* Changed body json toggle name

* Removed codes of converting json to key ,value pairs
    - Resolved array problem
    - Now json body will be seperate option

* Removed unwanted lines

Co-authored-by: stepinfwd <stepinfwd@gmail.com>
2022-04-27 15:21:30 +05:30
Muhsin Shah C P
b3ca2b64fd
Feature: added basic & bearer auth to Rest API (#2742)
* Added basic and bearer auth fields

* Implemented basic and bearer auth

* Changed token name

* Added encrpyted icon along side label

* resolved a basic-auth bug

* Refactored basic auth code
2022-04-22 13:01:08 +05:30
Eyuel Berga Woldemichael
98ef37f162
update label from URL to Base URL (#2859) 2022-04-19 17:42:28 +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
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
Arpit
930b4bf3f1
chore/plugins: fixes lint warning and errors (#2502) 2022-03-14 15:05:02 +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
fe0da03f85
Added responseHeaders to exposed data (#2426) 2022-03-08 12:09:53 +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
Gandharv
27c91a008a
Add json schema for vscode autocomplete (#1962)
* add json schema

* update schema

* update link
2022-01-27 10:55:16 +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