ToolJet/plugins/packages/common/lib/index.ts
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

54 lines
1.3 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,
getCurrentToken,
sanitizeHeaders,
sanitizeCookies,
cookiesToString,
sanitizeSearchParams,
fetchHttpsCertsForCustomCA,
} from './utils.helper';
import { ConnectionTestResult } from './connection_test_result.type';
import {
getRefreshedToken,
getAuthUrl,
sanitizeCustomParams,
checkIfContentTypeIsURLenc,
checkIfContentTypeIsMultipartFormData,
validateAndSetRequestOptionsBasedOnAuthType,
} from './oauth';
export {
QueryError,
OAuthUnauthorizedClientError,
QueryResult,
QueryService,
User,
App,
cacheConnection,
getCachedConnection,
parseJson,
isEmpty,
ConnectionTestResult,
cleanSensitiveData,
getCurrentToken,
getRefreshedToken,
getAuthUrl,
sanitizeCustomParams,
sanitizeHeaders,
sanitizeCookies,
sanitizeSearchParams,
checkIfContentTypeIsURLenc,
checkIfContentTypeIsMultipartFormData,
validateAndSetRequestOptionsBasedOnAuthType,
fetchHttpsCertsForCustomCA,
cookiesToString,
};