-
Notifications
You must be signed in to change notification settings - Fork 48
Expand file tree
/
Copy pathindex.ts
More file actions
54 lines (45 loc) · 1.64 KB
/
index.ts
File metadata and controls
54 lines (45 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// Don't move this import - it should be placed before any other
import './polyfills';
import { Thrift } from 'thrift';
import TCLIService from '../thrift/TCLIService';
import TCLIService_types from '../thrift/TCLIService_types';
import DBSQLClient from './DBSQLClient';
import DBSQLSession from './DBSQLSession';
import { DBSQLParameter, DBSQLParameterType } from './DBSQLParameter';
import DBSQLLogger from './DBSQLLogger';
import PlainHttpAuthentication from './connection/auth/PlainHttpAuthentication';
import {
Token,
StaticTokenProvider,
ExternalTokenProvider,
CachedTokenProvider,
FederationProvider,
} from './connection/auth/tokenProvider';
import HttpConnection from './connection/connections/HttpConnection';
import { formatProgress } from './utils';
import { LogLevel } from './contracts/IDBSQLLogger';
// Re-export types for TypeScript users
export type { default as ITokenProvider } from './connection/auth/tokenProvider/ITokenProvider';
export const auth = {
PlainHttpAuthentication,
// Token provider classes for custom authentication
Token,
StaticTokenProvider,
ExternalTokenProvider,
CachedTokenProvider,
FederationProvider,
};
const { TException, TApplicationException, TApplicationExceptionType, TProtocolException, TProtocolExceptionType } =
Thrift;
export { TException, TApplicationException, TApplicationExceptionType, TProtocolException, TProtocolExceptionType };
export const connections = {
HttpConnection,
};
export const thrift = {
TCLIService,
TCLIService_types,
};
export const utils = {
formatProgress,
};
export { DBSQLClient, DBSQLSession, DBSQLParameter, DBSQLParameterType, DBSQLLogger, LogLevel };