@halcyontech/vscode-ibmi-types 1.6.13 → 1.6.14
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/CompileTools.d.ts +16 -61
- package/api/IBMi.d.ts +7 -8
- package/api/IBMiContent.d.ts +1 -1
- package/api/local/deployment.d.ts +1 -14
- package/package.json +1 -1
- package/typings.d.ts +18 -9
package/api/CompileTools.d.ts
CHANGED
@@ -1,69 +1,24 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
static register(context: vscode.ExtensionContext): void;
|
7
|
-
/**
|
8
|
-
* Does what it says on the tin.
|
9
|
-
*/
|
10
|
-
static clearDiagnostics(): void;
|
11
|
-
/**
|
12
|
-
* @param {Instance} instance
|
13
|
-
* @param {{asp?: string, lib: string, object: string, ext?: string, workspace?: number}} evfeventInfo
|
14
|
-
*/
|
15
|
-
static refreshDiagnostics(instance: Instance, evfeventInfo: {
|
1
|
+
import vscode from 'vscode';
|
2
|
+
import Instance from './Instance';
|
3
|
+
import { CommandResult, RemoteCommand } from '../typings';
|
4
|
+
export declare namespace CompileTools {
|
5
|
+
interface EvfEventInfo {
|
16
6
|
asp?: string;
|
17
|
-
|
7
|
+
library: string;
|
18
8
|
object: string;
|
19
|
-
|
9
|
+
extension?: string;
|
20
10
|
workspace?: number;
|
21
|
-
}
|
22
|
-
|
23
|
-
*
|
24
|
-
* @param {string} string
|
25
|
-
* @param {{[name: string]: string}} variables
|
26
|
-
*/
|
27
|
-
static replaceValues(string: string, variables: {
|
28
|
-
[name: string]: string;
|
29
|
-
}): string;
|
11
|
+
}
|
12
|
+
export function register(context: vscode.ExtensionContext): void;
|
30
13
|
/**
|
31
|
-
*
|
32
|
-
* @param {Instance} instance
|
33
|
-
* @returns
|
34
|
-
*/
|
35
|
-
static getDefaultVariables(instance: Instance): {
|
36
|
-
[name: string]: string;
|
37
|
-
};
|
38
|
-
/**
|
39
|
-
* @param {Instance} instance
|
40
|
-
* @param {vscode.Uri} uri
|
41
|
-
*/
|
42
|
-
static RunAction(instance: Instance, uri: vscode.Uri): Promise<void>;
|
43
|
-
/**
|
44
|
-
* Execute command
|
45
|
-
* @param {Instance} instance
|
46
|
-
* @param {import("../typings").RemoteCommand} options
|
47
|
-
* @returns {Promise<import("../typings").CommandResult|null>}
|
48
|
-
*/
|
49
|
-
static runCommand(instance: Instance, options: import("../typings").RemoteCommand): Promise<import("../typings").CommandResult | null>;
|
50
|
-
static showOutput(): void;
|
51
|
-
static appendOutput(output: any): void;
|
52
|
-
/**
|
53
|
-
* @param {string} name Name of action
|
54
|
-
* @param {string} command Command string
|
55
|
-
* @return {Promise<string>} new command
|
14
|
+
* Does what it says on the tin.
|
56
15
|
*/
|
57
|
-
|
16
|
+
export function clearDiagnostics(): void;
|
17
|
+
export function refreshDiagnostics(instance: Instance, evfeventInfo: EvfEventInfo): Promise<void>;
|
18
|
+
export function runAction(instance: Instance, uri: vscode.Uri): Promise<void>;
|
58
19
|
/**
|
59
|
-
*
|
60
|
-
* @param {string} baseCommand
|
61
|
-
* @returns {{lib?: string, object: string}}
|
20
|
+
* Execute a command
|
62
21
|
*/
|
63
|
-
|
64
|
-
|
65
|
-
object: string;
|
66
|
-
};
|
22
|
+
export function runCommand(instance: Instance, options: RemoteCommand): Promise<CommandResult | null>;
|
23
|
+
export {};
|
67
24
|
}
|
68
|
-
import vscode = require("vscode");
|
69
|
-
import { default as Instance } from "./Instance";
|
package/api/IBMi.d.ts
CHANGED
@@ -2,13 +2,13 @@ import * as vscode from "vscode";
|
|
2
2
|
import * as node_ssh from "node-ssh";
|
3
3
|
import { ConnectionConfiguration } from "./Configuration";
|
4
4
|
import { ConnectionData, CommandData, StandardIO, CommandResult } from "../typings";
|
5
|
-
interface MemberParts {
|
6
|
-
asp
|
7
|
-
library: string
|
8
|
-
file: string
|
9
|
-
member: string
|
10
|
-
extension: string
|
11
|
-
basename: string
|
5
|
+
export interface MemberParts {
|
6
|
+
asp?: string;
|
7
|
+
library: string;
|
8
|
+
file: string;
|
9
|
+
member: string;
|
10
|
+
extension: string;
|
11
|
+
basename: string;
|
12
12
|
}
|
13
13
|
export default class IBMi {
|
14
14
|
client: node_ssh.NodeSSH;
|
@@ -81,4 +81,3 @@ export default class IBMi {
|
|
81
81
|
downloadDirectory(localDirectory: string | vscode.Uri, remoteDirectory: string, options?: node_ssh.SSHGetPutDirectoryOptions): Promise<void>;
|
82
82
|
fileToPath(file: string | vscode.Uri): string;
|
83
83
|
}
|
84
|
-
export {};
|
package/api/IBMiContent.d.ts
CHANGED
@@ -31,7 +31,7 @@ export default class IBMiContent {
|
|
31
31
|
* @param member Will default to file provided
|
32
32
|
* @param deleteTable Will delete the table after download
|
33
33
|
*/
|
34
|
-
getTable(library: string, file: string, member: string, deleteTable
|
34
|
+
getTable(library: string, file: string, member: string, deleteTable?: boolean): Promise<Tools.DB2Row[]>;
|
35
35
|
/**
|
36
36
|
* Get list of libraries with description and attribute
|
37
37
|
* @param libraries Array of libraries to retrieve
|
@@ -1,20 +1,7 @@
|
|
1
1
|
import vscode from 'vscode';
|
2
2
|
import Instance from '../Instance';
|
3
|
-
import {
|
3
|
+
import { DeploymentParameters } from '../../typings';
|
4
4
|
export declare namespace Deployment {
|
5
|
-
interface DeploymentParameters {
|
6
|
-
method: Method;
|
7
|
-
localFolder: vscode.Uri;
|
8
|
-
remotePath: string;
|
9
|
-
ignoreRules?: Ignore;
|
10
|
-
}
|
11
|
-
enum Method {
|
12
|
-
"all" = 0,
|
13
|
-
"staged" = 1,
|
14
|
-
"unstaged" = 2,
|
15
|
-
"changed" = 3,
|
16
|
-
"compare" = 4
|
17
|
-
}
|
18
5
|
function initialize(context: vscode.ExtensionContext, instance: Instance): void;
|
19
6
|
/**
|
20
7
|
* Deploy a workspace to a remote IFS location.
|
package/package.json
CHANGED
package/typings.d.ts
CHANGED
@@ -1,15 +1,28 @@
|
|
1
1
|
/// <reference types="node" />
|
2
|
-
import { ExtensionContext } from "vscode";
|
2
|
+
import { ExtensionContext, Uri } from "vscode";
|
3
3
|
import Instance from "./api/Instance";
|
4
|
-
import {
|
4
|
+
import { Ignore } from 'ignore';
|
5
5
|
export interface CodeForIBMi {
|
6
6
|
instance: Instance;
|
7
7
|
baseContext: ExtensionContext;
|
8
8
|
CustomUI: object;
|
9
9
|
Field: object;
|
10
|
-
deploy: (parameters:
|
10
|
+
deploy: (parameters: DeploymentParameters) => Promise<boolean>;
|
11
11
|
evfeventParser: (lines: string[]) => Map<string, FileError[]>;
|
12
12
|
}
|
13
|
+
export declare enum DeploymentMethod {
|
14
|
+
"all" = 0,
|
15
|
+
"staged" = 1,
|
16
|
+
"unstaged" = 2,
|
17
|
+
"changed" = 3,
|
18
|
+
"compare" = 4
|
19
|
+
}
|
20
|
+
export interface DeploymentParameters {
|
21
|
+
method: DeploymentMethod;
|
22
|
+
localFolder: Uri;
|
23
|
+
remotePath: string;
|
24
|
+
ignoreRules?: Ignore;
|
25
|
+
}
|
13
26
|
export interface StandardIO {
|
14
27
|
onStdout?: (data: Buffer) => void;
|
15
28
|
onStderr?: (data: Buffer) => void;
|
@@ -22,16 +35,12 @@ export interface RemoteCommand {
|
|
22
35
|
command: string;
|
23
36
|
environment?: "ile" | "qsh" | "pase";
|
24
37
|
cwd?: string;
|
25
|
-
env?:
|
26
|
-
[name: string]: string;
|
27
|
-
};
|
38
|
+
env?: Record<string, string>;
|
28
39
|
}
|
29
40
|
export interface CommandData extends StandardIO {
|
30
41
|
command: string;
|
31
42
|
directory?: string;
|
32
|
-
env?:
|
33
|
-
[name: string]: string;
|
34
|
-
};
|
43
|
+
env?: Record<string, string>;
|
35
44
|
}
|
36
45
|
export interface CommandResult {
|
37
46
|
code: number | null;
|