@halcyontech/vscode-ibmi-types 1.9.1 → 2.0.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/Configuration.d.ts +1 -0
- package/api/CustomUI.d.ts +8 -1
- package/api/IBMiContent.d.ts +10 -3
- package/api/Tools.d.ts +3 -1
- package/api/debug/certificates.d.ts +1 -1
- package/api/errors/handler.d.ts +25 -0
- package/api/local/LocalLanguageActions.d.ts +2 -0
- package/extension.d.ts +1 -1
- package/package.json +1 -1
package/api/Configuration.d.ts
CHANGED
@@ -27,6 +27,7 @@ export declare namespace ConnectionConfiguration {
|
|
27
27
|
connectringStringFor5250: string;
|
28
28
|
autoSaveBeforeAction: boolean;
|
29
29
|
showDescInLibList: boolean;
|
30
|
+
debugCertDirectory: string;
|
30
31
|
debugPort: string;
|
31
32
|
debugIsSecure: boolean;
|
32
33
|
debugUpdateProductionFiles: boolean;
|
package/api/CustomUI.d.ts
CHANGED
@@ -6,6 +6,7 @@ export interface Page<T> {
|
|
6
6
|
export interface Button {
|
7
7
|
id: string;
|
8
8
|
label: string;
|
9
|
+
requiresValidation?: boolean;
|
9
10
|
}
|
10
11
|
export interface SelectItem {
|
11
12
|
text: string;
|
@@ -30,6 +31,9 @@ export declare class Section {
|
|
30
31
|
default?: string;
|
31
32
|
readonly?: boolean;
|
32
33
|
rows?: number;
|
34
|
+
minlength?: number;
|
35
|
+
maxlength?: number;
|
36
|
+
regexTest?: string;
|
33
37
|
}): this;
|
34
38
|
addParagraph(label: string): this;
|
35
39
|
addFile(id: string, label: string, description?: string): this;
|
@@ -54,7 +58,7 @@ export declare class CustomUI extends Section {
|
|
54
58
|
private createPage;
|
55
59
|
private getHTML;
|
56
60
|
}
|
57
|
-
export declare type FieldType = "input" | "password" | "
|
61
|
+
export declare type FieldType = "input" | "password" | "buttons" | "checkbox" | "file" | "complexTabs" | "tabs" | "tree" | "select" | "paragraph" | "hr" | "heading";
|
58
62
|
export interface TreeListItemIcon {
|
59
63
|
branch?: string;
|
60
64
|
open?: string;
|
@@ -89,6 +93,9 @@ export declare class Field {
|
|
89
93
|
default?: string;
|
90
94
|
readonly?: boolean;
|
91
95
|
rows?: number;
|
96
|
+
minlength?: number;
|
97
|
+
maxlength?: number;
|
98
|
+
regexTest?: string;
|
92
99
|
constructor(type: FieldType, id: string, label: string, description?: string);
|
93
100
|
getHTML(): string;
|
94
101
|
private renderLabel;
|
package/api/IBMiContent.d.ts
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
import { IBMiError, IBMiFile, IBMiMember, IBMiObject, IFSFile, QsysPath } from '../typings';
|
2
2
|
import { default as IBMi } from './IBMi';
|
3
3
|
import { Tools } from './Tools';
|
4
|
+
declare type Authority = "*ADD" | "*DLT" | "*EXECUTE" | "*READ" | "*UPD" | "*NONE" | "*ALL" | "*CHANGE" | "*USE" | "*EXCLUDE" | "*AUTLMGT";
|
4
5
|
export declare type SortOptions = {
|
5
6
|
order: "name" | "date" | "?";
|
6
7
|
ascending?: boolean;
|
@@ -17,7 +18,7 @@ export default class IBMiContent {
|
|
17
18
|
/**
|
18
19
|
* Download the contents of a source member
|
19
20
|
*/
|
20
|
-
downloadMemberContent(asp: string | undefined, library: string, sourceFile: string, member: string): Promise<string>;
|
21
|
+
downloadMemberContent(asp: string | undefined, library: string, sourceFile: string, member: string, localPath?: string): Promise<string>;
|
21
22
|
/**
|
22
23
|
* Upload to a member
|
23
24
|
*/
|
@@ -77,10 +78,10 @@ export default class IBMiContent {
|
|
77
78
|
* @param remotePath
|
78
79
|
* @return an array of IFSFile
|
79
80
|
*/
|
80
|
-
getFileList(remotePath: string, sort?: SortOptions): Promise<IFSFile[]>;
|
81
|
+
getFileList(remotePath: string, sort?: SortOptions, onListError?: (errors: string[]) => void): Promise<IFSFile[]>;
|
81
82
|
memberResolve(member: string, files: QsysPath[]): Promise<IBMiMember | undefined>;
|
82
83
|
objectResolve(object: string, libraries: string[]): Promise<string | undefined>;
|
83
|
-
streamfileResolve(
|
84
|
+
streamfileResolve(names: string[], directories: string[]): Promise<string | undefined>;
|
84
85
|
/**
|
85
86
|
* Fix Comments in an SQL string so that the comments always start at position 0 of the line.
|
86
87
|
* Required to work with QZDFMDB2.
|
@@ -106,4 +107,10 @@ export default class IBMiContent {
|
|
106
107
|
* @param remotePath: a remote IFS path
|
107
108
|
*/
|
108
109
|
isDirectory(remotePath: string): Promise<boolean>;
|
110
|
+
checkObject(object: {
|
111
|
+
library: string;
|
112
|
+
name: string;
|
113
|
+
type: string;
|
114
|
+
}, ...authorities: Authority[]): Promise<boolean>;
|
109
115
|
}
|
116
|
+
export {};
|
package/api/Tools.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import vscode from "vscode";
|
1
2
|
import { API } from "./import/git";
|
2
3
|
export declare namespace Tools {
|
3
4
|
class SqlError extends Error {
|
@@ -17,7 +18,7 @@ export declare namespace Tools {
|
|
17
18
|
* @returns rows
|
18
19
|
*/
|
19
20
|
function db2Parse(output: string): DB2Row[];
|
20
|
-
function makeid(): string;
|
21
|
+
function makeid(length?: number): string;
|
21
22
|
/**
|
22
23
|
* Build the IFS path string to a member
|
23
24
|
* @param library
|
@@ -37,4 +38,5 @@ export declare namespace Tools {
|
|
37
38
|
function escapePath(Path: string): string;
|
38
39
|
function getGitAPI(): API | undefined;
|
39
40
|
function distinct(value: any, index: number, array: any[]): boolean;
|
41
|
+
function md5Hash(file: vscode.Uri): string;
|
40
42
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import IBMi from "../IBMi";
|
2
|
-
export declare function getKeystorePath(): string;
|
2
|
+
export declare function getKeystorePath(connection: IBMi): string;
|
3
3
|
export declare function getLocalCertPath(connection: IBMi): string;
|
4
4
|
export declare function checkRemoteExists(connection: IBMi): Promise<boolean>;
|
5
5
|
export declare function setup(connection: IBMi): Promise<void>;
|
package/api/errors/handler.d.ts
CHANGED
@@ -1,4 +1,29 @@
|
|
1
1
|
import { FileError } from "../../typings";
|
2
|
+
export declare enum RecordType {
|
3
|
+
TIMESTAMP = "TIMESTAMP",
|
4
|
+
PROCESSOR = "PROCESSOR",
|
5
|
+
FILE_ID = "FILEID",
|
6
|
+
FILE_ID_CONT = "FILEIDCONT",
|
7
|
+
FILE_END = "FILEEND",
|
8
|
+
ERROR_INFORMATION = "ERROR",
|
9
|
+
EXPANSION = "EXPANSION",
|
10
|
+
PROGRAM = "PROGRAM",
|
11
|
+
MAP_DEFINE = "MAPDEFINE",
|
12
|
+
MAP_START = "MAPSTART",
|
13
|
+
MAP_END = "MAPEND",
|
14
|
+
FEEDBACK_CODE = "FEEDBACK"
|
15
|
+
}
|
16
|
+
export interface FileId {
|
17
|
+
version: number;
|
18
|
+
sourceId: number;
|
19
|
+
line: number;
|
20
|
+
length: number;
|
21
|
+
filename: string;
|
22
|
+
sourcefileTimestamp: number;
|
23
|
+
tempFlag: number;
|
24
|
+
}
|
2
25
|
export declare function formatName(input: string): string;
|
3
26
|
export declare function formatIFS(path: string): string;
|
4
27
|
export declare function parseErrors(lines: string[]): Map<string, FileError[]>;
|
28
|
+
export declare function getLinesByRecodType(lines: string[], recordType: RecordType, sourceFileId?: number): string[];
|
29
|
+
export declare function getSourcePath(lines: string[], fileId: number): string;
|
package/extension.d.ts
CHANGED