ToolJet/plugins/packages/common/lib/index.ts
Ganesh Kumar 3a4d7da1c1
Feat: Query level timeout for Postgresql datasource (#14612)
* POstgresql query level timeout implementation

* for query without parameters query level timeout has been updated

* Query level timeout at Run Query endpoint

* label for timeout is updated

* Timeout is applied at run query level

* Method name has been modified

* ref updated

* Error message modified

* Abort controller is abstracted

---------

Co-authored-by: gsmithun4 <gsmithun4@gmail.com>
2025-11-27 19:47:59 +05:30

66 lines
1.6 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,
cacheConnectionWithConfiguration,
generateSourceOptionsHash,
getCachedConnection,
parseJson,
cleanSensitiveData,
redactHeaders,
getCurrentToken,
sanitizeHeaders,
sanitizeCookies,
cookiesToString,
sanitizeSearchParams,
fetchHttpsCertsForCustomCA,
sanitizeSortPairs,
getTooljetEdition,
} 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,
generateSourceOptionsHash,
cacheConnectionWithConfiguration,
getCachedConnection,
parseJson,
isEmpty,
ConnectionTestResult,
cleanSensitiveData,
getCurrentToken,
getRefreshedToken,
getAuthUrl,
sanitizeParams,
sanitizeHeaders,
sanitizeCookies,
sanitizeSearchParams,
checkIfContentTypeIsURLenc,
checkIfContentTypeIsMultipartFormData,
checkIfContentTypeIsJson,
validateAndSetRequestOptionsBasedOnAuthType,
fetchHttpsCertsForCustomCA,
redactHeaders,
cookiesToString,
sanitizeSortPairs,
getTooljetEdition,
};