Stefan Huber

different target

1 +export interface DeviceInfo {
2 + id?: string;
3 + hostname?: string;
4 + platform?: string;
5 + arch?: string;
6 + type?: string;
7 + release?: string;
8 + code?: string;
9 +}
1 +export interface Node {
2 + ip: string;
3 + uuid: string;
4 + couchPort: string;
5 + webPort: string;
6 +}
1 +import { ModuleWithProviders } from '@angular/core';
2 +export * from './services/rest';
3 +export * from './services/repository';
4 +export * from './services/device';
5 +export * from './api/device-info';
6 +export * from './api/node';
7 +export declare class DigsigServicesModule {
8 + static forRoot(): ModuleWithProviders;
9 +}
1 +export declare class Device {
2 + reload(): void;
3 + exit(): void;
4 +}
1 +import { Rest } from './rest';
2 +import { Device } from './device';
3 +import { DeviceInfo } from '../api/device-info';
4 +import { Node } from '../api/node';
5 +export declare class Repository {
6 + protected rest: Rest;
7 + protected device: Device;
8 + protected _db: any;
9 + protected _params: any;
10 + protected _node: Node;
11 + db: any;
12 + params: any;
13 + readonly localNode: Node;
14 + constructor(rest: Rest, device: Device);
15 + findById(id: string): Promise<any>;
16 + findByIds(ids: Array<string>): Promise<Array<any>>;
17 + findByType(type: string): Promise<Array<any>>;
18 + replicate(deviceInfo: DeviceInfo): Promise<boolean>;
19 + tryLocalEnvironment(response: any): Promise<void>;
20 + prepare(url: string): Promise<any>;
21 + init(db_name: string): Promise<any>;
22 + parseUrl(url: string): any;
23 + prepareDocs(res: any): Array<any>;
24 +}
1 +import { Http } from '@angular/http';
2 +import { DeviceInfo } from './../api/device-info';
3 +import { Node } from './../api/node';
4 +import 'rxjs/add/operator/timeout';
5 +export declare const ERROR_CODE_UNAUTHORIZED: string;
6 +export declare const ERROR_CODE_NOT_FOUND: string;
7 +export declare const ERROR_CODE_SERVER_ERROR: string;
8 +export declare class Rest {
9 + private http;
10 + static localWebPort: number;
11 + static serviceUrl: string;
12 + constructor(http: Http);
13 + prepareDeviceInfo(deviceInfo: DeviceInfo, prefixed?: boolean): string;
14 + register(registerCode: string, deviceInfo: DeviceInfo): Promise<any>;
15 + heartbeat(deviceInfo: DeviceInfo): Promise<any>;
16 + scanNode(node: any): Promise<Node>;
17 + scanEnvironment(nodes: any[]): Promise<Node>;
18 +}
1 { 1 {
2 "compilerOptions": { 2 "compilerOptions": {
3 "allowSyntheticDefaultImports": true, 3 "allowSyntheticDefaultImports": true,
4 - "declaration": false, 4 + "declaration": true,
5 "experimentalDecorators": true, 5 "experimentalDecorators": true,
6 "emitDecoratorMetadata": true, 6 "emitDecoratorMetadata": true,
7 "lib": ["dom", "es2015"], 7 "lib": ["dom", "es2015"],
8 "noImplicitAny": false, 8 "noImplicitAny": false,
9 "outDir": "./dist/", 9 "outDir": "./dist/",
10 "target": "es5", 10 "target": "es5",
11 - "module": "commonjs", 11 + "sourceMap": true
12 - "moduleResolution": "node",
13 - "sourceMap": true,
14 - "compileOnSave": false
15 }, 12 },
16 "exclude": [ 13 "exclude": [
17 "node_modules", 14 "node_modules",
......