-
Notifications
You must be signed in to change notification settings - Fork 13
/
index.ts
40 lines (35 loc) · 935 Bytes
/
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
37
38
39
40
import Assets from './assets';
import Cluster from './cluster';
import Ex from './ex';
import Executions from './executions';
import Job from './job';
import Jobs from './jobs';
import * as i from './interfaces';
class TerasliceClient {
config?: i.ClientConfig;
assets: Assets;
cluster: Cluster;
jobs: Jobs;
executions: Executions;
constructor(config: i.ClientConfig = {}) {
this.config = config;
this.assets = new Assets(config);
this.cluster = new Cluster(config);
this.jobs = new Jobs(config);
this.executions = new Executions(config);
}
protected get ex(): never {
throw new Error('TerasliceClient->ex is now removed in favor of executions and ex (wrapper) like a jobs/job');
}
}
export * from './interfaces';
export {
TerasliceClient,
Assets,
Cluster,
Executions,
Ex,
Jobs,
Job
};
export default TerasliceClient;