-
Notifications
You must be signed in to change notification settings - Fork 16
/
index.ts
36 lines (30 loc) · 1.36 KB
/
index.ts
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
import { isBrowser } from './src/utils/browser';
// defined by webpack plugin
declare var BUILT: any;
if (isBrowser() && typeof BUILT === 'undefined') {
throw new Error('It looks like you are using the Nodejs version of Kuzzle SDK ' +
'in a browser. ' +
'It is strongly recommended to use the browser-specific build instead. ' +
'Learn more at https://github.com/kuzzleio/sdk-javascript/tree/master#browser');
}
export * from './src/Kuzzle';
export * from './src/protocols';
export * from './src/protocols/abstract/Base';
export * from './src/core/KuzzleEventEmitter';
export * from './src/core/searchResult/SearchResultBase';
export * from './src/core/searchResult/Document';
export * from './src/core/searchResult/Profile';
export * from './src/core/searchResult/Role';
export * from './src/core/searchResult/Specifications';
export * from './src/core/searchResult/User';
export * from './src/core/Observer';
export * from './src/core/RealtimeDocument';
export * from './src/core/batchWriter/BatchController';
export * from './src/types';
export * from './src/controllers/Auth';
export * from './src/controllers/Base';
export * from './src/controllers/Collection';
export * from './src/controllers/Document';
export * from './src/controllers/Index';
export * from './src/controllers/Realtime';
export * from './src/controllers/Server';