@halcyontech/vscode-ibmi-types 2.16.3 → 2.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/IBMi.d.ts +10 -7
- package/api/IBMiContent.d.ts +1 -1
- package/api/Tools.d.ts +1 -1
- package/api/configuration/storage/ConnectionStorage.d.ts +1 -1
- package/api/types.d.ts +4 -0
- package/package.json +1 -1
- package/typings.d.ts +0 -3
- package/ui/actions.d.ts +17 -0
package/api/IBMi.d.ts
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import * as node_ssh from "node-ssh";
|
|
3
3
|
import { EventEmitter } from 'stream';
|
|
4
|
-
import { EditorPath } from '../typings';
|
|
5
4
|
import IBMiContent from "./IBMiContent";
|
|
6
5
|
import { Tools } from './Tools';
|
|
7
6
|
import { IBMiComponent } from "./components/component";
|
|
8
7
|
import { ComponentManager, ComponentSearchProps } from "./components/manager";
|
|
9
8
|
import { ConnectionManager } from './configuration/config/ConnectionManager';
|
|
10
9
|
import { ConnectionConfig, RemoteConfigFile } from './configuration/config/types';
|
|
11
|
-
import { CodeForIStorage } from './configuration/storage/CodeForIStorage';
|
|
12
|
-
import { AspInfo, CommandData, CommandResult, ConnectionData, IBMiMember, RemoteCommand } from './types';
|
|
13
10
|
import { ConfigFile } from './configuration/serverFile';
|
|
11
|
+
import { CodeForIStorage } from './configuration/storage/CodeForIStorage';
|
|
12
|
+
import { AspInfo, CommandData, CommandResult, ConnectionData, EditorPath, IBMiMember, RemoteCommand } from './types';
|
|
14
13
|
export interface MemberParts extends IBMiMember {
|
|
15
14
|
basename: string;
|
|
16
15
|
}
|
|
@@ -18,6 +17,7 @@ export declare type ConnectionMessageType = 'info' | 'warning' | 'error';
|
|
|
18
17
|
export declare type ConnectionErrorCode = `shell_config` | `home_directory_creation` | `QCPTOIMPF_exists` | `QCPFRMIMPF_exists` | `default_not_bash` | `invalid_bashrc` | `invalid_temp_lib` | `no_auto_conv_ebcdic` | `not_loaded_debug_config` | `no_sql_runner` | `ccsid_warning`;
|
|
19
18
|
export interface ConnectionResult {
|
|
20
19
|
success: boolean;
|
|
20
|
+
error?: string;
|
|
21
21
|
errorCodes?: ConnectionErrorCode[];
|
|
22
22
|
}
|
|
23
23
|
declare type DisconnectCallback = (conn: IBMi) => Promise<void>;
|
|
@@ -31,6 +31,12 @@ interface ConnectionCallbacks {
|
|
|
31
31
|
message: (type: ConnectionMessageType, message: string) => void;
|
|
32
32
|
cancelEmitter?: EventEmitter;
|
|
33
33
|
}
|
|
34
|
+
interface ConnectionOptions {
|
|
35
|
+
callbacks: ConnectionCallbacks;
|
|
36
|
+
reconnecting?: boolean;
|
|
37
|
+
reloadServerSettings?: boolean;
|
|
38
|
+
customClient?: node_ssh.NodeSSH;
|
|
39
|
+
}
|
|
34
40
|
interface ConnectionConfigFiles {
|
|
35
41
|
settings: ConfigFile<RemoteConfigFile>;
|
|
36
42
|
}
|
|
@@ -112,10 +118,7 @@ export default class IBMi {
|
|
|
112
118
|
getConfig(): ConnectionConfig;
|
|
113
119
|
setConfig(newConfig: ConnectionConfig): void;
|
|
114
120
|
constructor();
|
|
115
|
-
|
|
116
|
-
* @returns {Promise<{success: boolean, error?: any}>} Was succesful at connecting or not.
|
|
117
|
-
*/
|
|
118
|
-
connect(connectionObject: ConnectionData, callbacks: ConnectionCallbacks, reconnecting?: boolean, reloadServerSettings?: boolean): Promise<ConnectionResult>;
|
|
121
|
+
connect(connectionObject: ConnectionData, options: ConnectionOptions): Promise<ConnectionResult>;
|
|
119
122
|
private ensureTempLibraryExists;
|
|
120
123
|
private ensureTempDirectory;
|
|
121
124
|
/**
|
package/api/IBMiContent.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
/// <reference types="node" />
|
|
3
3
|
import * as node_ssh from "node-ssh";
|
|
4
|
-
import { EditorPath } from '
|
|
4
|
+
import { EditorPath } from './types';
|
|
5
5
|
import { FilterType } from './Filter';
|
|
6
6
|
import { default as IBMi } from './IBMi';
|
|
7
7
|
import { Tools } from './Tools';
|
package/api/Tools.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseStorage } from "./BaseStorage";
|
|
2
|
-
import {
|
|
2
|
+
import { DebugCommands, DeploymentPath, PathContent } from "./CodeForIStorage";
|
|
3
3
|
declare type AuthorisedExtension = {
|
|
4
4
|
id: string;
|
|
5
5
|
displayName: string;
|
package/api/types.d.ts
CHANGED
|
@@ -58,6 +58,7 @@ export interface ConnectionData {
|
|
|
58
58
|
privateKeyPath?: string;
|
|
59
59
|
keepaliveInterval?: number;
|
|
60
60
|
readyTimeout?: number;
|
|
61
|
+
sshDebug?: boolean;
|
|
61
62
|
}
|
|
62
63
|
export interface Server {
|
|
63
64
|
name: string;
|
|
@@ -192,4 +193,7 @@ export interface ModuleExport {
|
|
|
192
193
|
symbolType: string;
|
|
193
194
|
argumentOptimization: string;
|
|
194
195
|
}
|
|
196
|
+
export declare type EditorPath = string | {
|
|
197
|
+
fsPath: string;
|
|
198
|
+
};
|
|
195
199
|
export * from "./configuration/config/types";
|
package/package.json
CHANGED
package/typings.d.ts
CHANGED
package/ui/actions.d.ts
CHANGED
|
@@ -2,5 +2,22 @@ import vscode, { WorkspaceFolder } from 'vscode';
|
|
|
2
2
|
import Instance from '../Instance';
|
|
3
3
|
import { Action, DeploymentMethod } from '../typings';
|
|
4
4
|
import { BrowserItem } from './types';
|
|
5
|
+
export declare type ActionTarget = {
|
|
6
|
+
uri: vscode.Uri;
|
|
7
|
+
extension: string;
|
|
8
|
+
fragment: string;
|
|
9
|
+
protected: boolean;
|
|
10
|
+
workspaceFolder?: vscode.WorkspaceFolder;
|
|
11
|
+
executionOK: boolean;
|
|
12
|
+
hasRun: boolean;
|
|
13
|
+
processed: boolean;
|
|
14
|
+
output: string[];
|
|
15
|
+
};
|
|
5
16
|
export declare function registerActionTools(context: vscode.ExtensionContext): void;
|
|
17
|
+
export declare function uriToActionTarget(uri: vscode.Uri, workspaceFolder?: WorkspaceFolder): ActionTarget;
|
|
6
18
|
export declare function runAction(instance: Instance, uris: vscode.Uri | vscode.Uri[], customAction?: Action, method?: DeploymentMethod, browserItems?: BrowserItem[], workspaceFolder?: WorkspaceFolder): Promise<boolean>;
|
|
19
|
+
export declare type AvailableAction = {
|
|
20
|
+
label: string;
|
|
21
|
+
action: Action;
|
|
22
|
+
};
|
|
23
|
+
export declare function getAllAvailableActions(targets: ActionTarget[], scheme: string): Promise<AvailableAction[]>;
|