mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-30 09:57:19 +00:00
* 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>
60 lines
1.4 KiB
TypeScript
60 lines
1.4 KiB
TypeScript
import { QueryError, OAuthUnauthorizedClientError } from './query.error';
|
|
import { QueryResult } from './query_result.type';
|
|
import { User } from './user.type';
|
|
import { App } from './app.type';
|
|
import { QueryService } from './query_service.interface';
|
|
import {
|
|
isEmpty,
|
|
cacheConnection,
|
|
getCachedConnection,
|
|
parseJson,
|
|
cleanSensitiveData,
|
|
redactHeaders,
|
|
getCurrentToken,
|
|
sanitizeHeaders,
|
|
sanitizeCookies,
|
|
cookiesToString,
|
|
sanitizeSearchParams,
|
|
fetchHttpsCertsForCustomCA,
|
|
sanitizeSortPairs,
|
|
} from './utils.helper';
|
|
import { ConnectionTestResult } from './connection_test_result.type';
|
|
import {
|
|
getRefreshedToken,
|
|
getAuthUrl,
|
|
sanitizeParams,
|
|
checkIfContentTypeIsURLenc,
|
|
checkIfContentTypeIsMultipartFormData,
|
|
checkIfContentTypeIsJson,
|
|
validateAndSetRequestOptionsBasedOnAuthType,
|
|
} from './oauth';
|
|
|
|
export {
|
|
QueryError,
|
|
OAuthUnauthorizedClientError,
|
|
QueryResult,
|
|
QueryService,
|
|
User,
|
|
App,
|
|
cacheConnection,
|
|
getCachedConnection,
|
|
parseJson,
|
|
isEmpty,
|
|
ConnectionTestResult,
|
|
cleanSensitiveData,
|
|
getCurrentToken,
|
|
getRefreshedToken,
|
|
getAuthUrl,
|
|
sanitizeParams,
|
|
sanitizeHeaders,
|
|
sanitizeCookies,
|
|
sanitizeSearchParams,
|
|
checkIfContentTypeIsURLenc,
|
|
checkIfContentTypeIsMultipartFormData,
|
|
checkIfContentTypeIsJson,
|
|
validateAndSetRequestOptionsBasedOnAuthType,
|
|
fetchHttpsCertsForCustomCA,
|
|
redactHeaders,
|
|
cookiesToString,
|
|
sanitizeSortPairs,
|
|
};
|