@halcyontech/vscode-ibmi-types 2.7.0 → 2.9.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 +2 -0
- package/api/IBMi.d.ts +16 -0
- package/api/IBMiContent.d.ts +8 -3
- package/api/Storage.d.ts +12 -0
- package/api/Tools.d.ts +2 -0
- package/api/debug/certificates.d.ts +6 -4
- package/api/debug/index.d.ts +6 -0
- package/api/debug/server.d.ts +11 -3
- package/package.json +1 -1
- package/typings.d.ts +10 -4
package/api/Configuration.d.ts
CHANGED
@@ -33,6 +33,7 @@ export declare namespace ConnectionConfiguration {
|
|
33
33
|
showDescInLibList: boolean;
|
34
34
|
debugCertDirectory: string;
|
35
35
|
debugPort: string;
|
36
|
+
debugSepPort: string;
|
36
37
|
debugIsSecure: boolean;
|
37
38
|
debugUpdateProductionFiles: boolean;
|
38
39
|
debugEnableDebugTracing: boolean;
|
@@ -41,6 +42,7 @@ export declare namespace ConnectionConfiguration {
|
|
41
42
|
defaultDeploymentMethod: DeploymentMethod | '';
|
42
43
|
protectedPaths: string[];
|
43
44
|
showHiddenFiles: boolean;
|
45
|
+
lastDownloadLocation: string;
|
44
46
|
[name: string]: any;
|
45
47
|
}
|
46
48
|
interface ObjectFilters {
|
package/api/IBMi.d.ts
CHANGED
@@ -30,7 +30,9 @@ export default class IBMi {
|
|
30
30
|
};
|
31
31
|
lastErrors: object[];
|
32
32
|
config?: ConnectionConfiguration.Parameters;
|
33
|
+
shell?: string;
|
33
34
|
commandsExecuted: number;
|
35
|
+
dangerousVariants: boolean;
|
34
36
|
constructor();
|
35
37
|
/**
|
36
38
|
* @returns {Promise<{success: boolean, error?: any}>} Was succesful at connecting or not.
|
@@ -39,6 +41,7 @@ export default class IBMi {
|
|
39
41
|
success: boolean;
|
40
42
|
error?: any;
|
41
43
|
}>;
|
44
|
+
usingBash(): boolean;
|
42
45
|
/**
|
43
46
|
* - Send PASE/QSH/ILE commands simply
|
44
47
|
* - Commands sent here end in the 'IBM i Output' channel
|
@@ -80,5 +83,18 @@ export default class IBMi {
|
|
80
83
|
downloadFile(localFile: string | vscode.Uri, remoteFile: string): Promise<void>;
|
81
84
|
uploadDirectory(localDirectory: string | vscode.Uri, remoteDirectory: string, options?: node_ssh.SSHGetPutDirectoryOptions): Promise<void>;
|
82
85
|
downloadDirectory(localDirectory: string | vscode.Uri, remoteDirectory: string, options?: node_ssh.SSHGetPutDirectoryOptions): Promise<void>;
|
86
|
+
getLastDownloadLocation(): string;
|
87
|
+
setLastDownloadLocation(location: string): Promise<void>;
|
83
88
|
fileToPath(file: string | vscode.Uri): string;
|
89
|
+
/**
|
90
|
+
* Creates a temporary directory and pass it on to a `process` function.
|
91
|
+
* The directory is guaranteed to be empty when created and deleted after the `process` is done.
|
92
|
+
* @param process the process that will run on the empty directory
|
93
|
+
*/
|
94
|
+
withTempDirectory(process: (directory: string) => Promise<void>): Promise<void>;
|
95
|
+
/**
|
96
|
+
* Uppercases an object name, keeping the variant chars case intact
|
97
|
+
* @param name
|
98
|
+
*/
|
99
|
+
upperCaseName(name: string): string;
|
84
100
|
}
|
package/api/IBMiContent.d.ts
CHANGED
@@ -46,6 +46,11 @@ export default class IBMiContent {
|
|
46
46
|
* Upload to a member
|
47
47
|
*/
|
48
48
|
uploadMemberContent(asp: string | undefined, library: string, sourceFile: string, member: string, content: string | Uint8Array): Promise<boolean>;
|
49
|
+
/**
|
50
|
+
* @param statements Either an SQL statement or CL statement. CL statements start with @
|
51
|
+
* @returns result set
|
52
|
+
*/
|
53
|
+
runStatements(...statements: string[]): Promise<Tools.DB2Row[]>;
|
49
54
|
/**
|
50
55
|
* Run SQL statements.
|
51
56
|
* Each statement must be separated by a semi-colon and a new line (i.e. ;\n).
|
@@ -96,7 +101,7 @@ export default class IBMiContent {
|
|
96
101
|
/**
|
97
102
|
* @param filters
|
98
103
|
* @param sortOrder
|
99
|
-
* @returns an array of
|
104
|
+
* @returns an array of IBMiObject
|
100
105
|
*/
|
101
106
|
getObjectList(filters: {
|
102
107
|
library: string;
|
@@ -137,7 +142,7 @@ export default class IBMiContent {
|
|
137
142
|
* @param timeString: string in HHMMSS
|
138
143
|
* @returns date
|
139
144
|
*/
|
140
|
-
|
145
|
+
getDspObjDdDate(century?: string, MMDDYY?: string, HHMMSS?: string): Date;
|
141
146
|
/**
|
142
147
|
* Return `true` if `remotePath` denotes a directory
|
143
148
|
*
|
@@ -158,7 +163,7 @@ export default class IBMiContent {
|
|
158
163
|
* @param parameters A key/value object of parameters
|
159
164
|
* @returns Formatted CL string
|
160
165
|
*/
|
161
|
-
|
166
|
+
toCl(command: string, parameters: {
|
162
167
|
[parameter: string]: string | number | undefined;
|
163
168
|
}): string;
|
164
169
|
}
|
package/api/Storage.d.ts
CHANGED
@@ -2,6 +2,12 @@ import vscode from 'vscode';
|
|
2
2
|
export declare type PathContent = Record<string, string[]>;
|
3
3
|
export declare type DeploymentPath = Record<string, string>;
|
4
4
|
export declare type DebugCommands = Record<string, string>;
|
5
|
+
declare type AuthorisedExtension = {
|
6
|
+
id: string;
|
7
|
+
displayName: string;
|
8
|
+
since: number;
|
9
|
+
lastAccess: number;
|
10
|
+
};
|
5
11
|
declare abstract class Storage {
|
6
12
|
protected readonly globalState: any;
|
7
13
|
constructor(context: vscode.ExtensionContext);
|
@@ -59,6 +65,7 @@ export declare class GlobalStorage extends Storage {
|
|
59
65
|
defaultCCSID: number;
|
60
66
|
};
|
61
67
|
setServerSettingsCache(name: string, serverSettings: CachedServerSettings): Promise<void>;
|
68
|
+
setServerSettingsCacheSpecific(name: string, newSettings: Partial<CachedServerSettings>): Promise<void>;
|
62
69
|
deleteServerSettingsCache(name: string): Promise<void>;
|
63
70
|
getPreviousSearchTerms(): string[];
|
64
71
|
setPreviousSearchTerms(previousSearchTerms: string[]): Promise<void>;
|
@@ -83,5 +90,10 @@ export declare class ConnectionStorage extends Storage {
|
|
83
90
|
getRecentlyOpenedFiles(): string[];
|
84
91
|
setRecentlyOpenedFiles(recentlyOpenedFiles: string[]): Promise<void>;
|
85
92
|
clearRecentlyOpenedFiles(): Promise<void>;
|
93
|
+
grantExtensionAuthorisation(extension: vscode.Extension<any>): Promise<void>;
|
94
|
+
getExtensionAuthorisation(extension: vscode.Extension<any>): AuthorisedExtension;
|
95
|
+
getAuthorisedExtensions(): AuthorisedExtension[];
|
96
|
+
revokeAllExtensionAuthorisations(): void;
|
97
|
+
revokeExtensionAuthorisation(...extensions: AuthorisedExtension[]): Promise<void>;
|
86
98
|
}
|
87
99
|
export {};
|
package/api/Tools.d.ts
CHANGED
@@ -57,4 +57,6 @@ export declare namespace Tools {
|
|
57
57
|
* @returns statement compatible with QZDFMDB2
|
58
58
|
*/
|
59
59
|
function fixSQL(statement: string): string;
|
60
|
+
function generateTooltipHtmlTable(header: string, rows: Record<string, any>): string;
|
61
|
+
function fixWindowsPath(path: string): string;
|
60
62
|
}
|
@@ -1,8 +1,9 @@
|
|
1
1
|
import IBMi from "../IBMi";
|
2
|
-
export declare
|
3
|
-
export declare
|
4
|
-
export declare function
|
5
|
-
export declare function
|
2
|
+
export declare const LEGACY_CERT_DIRECTORY = "/QIBM/ProdData/IBMiDebugService/bin/certs";
|
3
|
+
export declare const DEFAULT_CERT_DIRECTORY = "/QIBM/UserData/IBMiDebugService/certs";
|
4
|
+
export declare function getRemoteCertificateDirectory(connection: IBMi): string;
|
5
|
+
export declare function getRemoteServerCertificatePath(connection: IBMi): string;
|
6
|
+
export declare function remoteServerCertificateExists(connection: IBMi, legacy?: boolean): Promise<boolean>;
|
6
7
|
/**
|
7
8
|
* Generate all certifcates on the server
|
8
9
|
*/
|
@@ -10,3 +11,4 @@ export declare function setup(connection: IBMi): Promise<void>;
|
|
10
11
|
export declare function downloadClientCert(connection: IBMi): Promise<void>;
|
11
12
|
export declare function getLocalCertPath(connection: IBMi): string;
|
12
13
|
export declare function localClientCertExists(connection: IBMi): Promise<boolean>;
|
14
|
+
export declare function legacyCertificateChecks(connection: IBMi, existingDebugService: string | undefined): Promise<void>;
|
package/api/debug/index.d.ts
CHANGED
@@ -8,6 +8,12 @@ interface DebugOptions {
|
|
8
8
|
library: string;
|
9
9
|
object: string;
|
10
10
|
libraries: ILELibrarySettings;
|
11
|
+
sep?: {
|
12
|
+
type: DebugObjectType;
|
13
|
+
moduleName?: string;
|
14
|
+
procedureName?: string;
|
15
|
+
};
|
11
16
|
}
|
17
|
+
declare type DebugObjectType = "*PGM" | "*SRVPGM";
|
12
18
|
export declare function startDebug(instance: Instance, options: DebugOptions): Promise<void>;
|
13
19
|
export {};
|
package/api/debug/server.d.ts
CHANGED
@@ -1,11 +1,19 @@
|
|
1
1
|
import IBMi from "../IBMi";
|
2
2
|
import IBMiContent from "../IBMiContent";
|
3
|
-
|
4
|
-
|
3
|
+
import Instance from "../Instance";
|
4
|
+
interface DebugServiceDetails {
|
5
|
+
version: string;
|
6
|
+
java: string;
|
7
|
+
}
|
8
|
+
export declare function resetDebugServiceDetails(): void;
|
9
|
+
export declare function getDebugServiceDetails(content: IBMiContent): Promise<DebugServiceDetails>;
|
10
|
+
export declare function startup(instance: Instance): Promise<void>;
|
11
|
+
export declare function stop(instance: Instance): Promise<void>;
|
5
12
|
export declare function getRunningJob(localPort: string, content: IBMiContent): Promise<string | undefined>;
|
6
|
-
export declare function end(
|
13
|
+
export declare function end(instance: Instance): Promise<void>;
|
7
14
|
/**
|
8
15
|
* Gets a list of debug jobs stuck at MSGW in QSYSWRK
|
9
16
|
*/
|
10
17
|
export declare function getStuckJobs(userProfile: string, content: IBMiContent): Promise<string[]>;
|
11
18
|
export declare function endJobs(jobIds: string[], connection: IBMi): Promise<import("../../typings").CommandResult[]>;
|
19
|
+
export {};
|
package/package.json
CHANGED
package/typings.d.ts
CHANGED
@@ -88,6 +88,13 @@ export interface IBMiObject extends QsysPath {
|
|
88
88
|
sourceFile?: boolean;
|
89
89
|
attribute?: string;
|
90
90
|
memberCount?: number;
|
91
|
+
sourceLength?: number;
|
92
|
+
CCSID?: number;
|
93
|
+
size?: number;
|
94
|
+
created?: Date;
|
95
|
+
changed?: Date;
|
96
|
+
created_by?: string;
|
97
|
+
owner?: string;
|
91
98
|
}
|
92
99
|
export interface IBMiMember {
|
93
100
|
library: string;
|
@@ -129,7 +136,8 @@ export declare type IBMiEvent = "connected" | "disconnected" | "deployLocation"
|
|
129
136
|
export interface WithPath {
|
130
137
|
path: string;
|
131
138
|
}
|
132
|
-
export interface
|
139
|
+
export interface WithLibrary {
|
140
|
+
library: string;
|
133
141
|
}
|
134
142
|
export declare type FocusOptions = {
|
135
143
|
select?: boolean;
|
@@ -155,9 +163,6 @@ export interface FilteredItem {
|
|
155
163
|
export interface ObjectItem extends FilteredItem, WithPath {
|
156
164
|
object: IBMiObject;
|
157
165
|
}
|
158
|
-
export interface SourcePhysicalFileItem extends FilteredItem, WithPath {
|
159
|
-
sourceFile: IBMiObject;
|
160
|
-
}
|
161
166
|
export interface MemberItem extends FilteredItem, WithPath {
|
162
167
|
member: IBMiMember;
|
163
168
|
}
|
@@ -169,6 +174,7 @@ export declare type IBMiMessages = {
|
|
169
174
|
messages: IBMiMessage[];
|
170
175
|
findId(id: string): IBMiMessage | undefined;
|
171
176
|
};
|
177
|
+
export declare const OBJECT_BROWSER_MIMETYPE = "application/vnd.code.tree.objectbrowser";
|
172
178
|
export declare const IFS_BROWSER_MIMETYPE = "application/vnd.code.tree.ifsbrowser";
|
173
179
|
export declare type OpenEditableOptions = QsysFsOptions & {
|
174
180
|
position?: Range;
|