@halcyontech/vscode-ibmi-types 2.7.0 → 2.8.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/IBMi.d.ts +8 -0
- package/api/IBMiContent.d.ts +2 -2
- package/api/Storage.d.ts +1 -0
- package/api/Tools.d.ts +2 -0
- package/package.json +1 -1
- package/typings.d.ts +8 -3
package/api/Configuration.d.ts
CHANGED
package/api/IBMi.d.ts
CHANGED
@@ -80,5 +80,13 @@ export default class IBMi {
|
|
80
80
|
downloadFile(localFile: string | vscode.Uri, remoteFile: string): Promise<void>;
|
81
81
|
uploadDirectory(localDirectory: string | vscode.Uri, remoteDirectory: string, options?: node_ssh.SSHGetPutDirectoryOptions): Promise<void>;
|
82
82
|
downloadDirectory(localDirectory: string | vscode.Uri, remoteDirectory: string, options?: node_ssh.SSHGetPutDirectoryOptions): Promise<void>;
|
83
|
+
getLastDownloadLocation(): string;
|
84
|
+
setLastDownloadLocation(location: string): Promise<void>;
|
83
85
|
fileToPath(file: string | vscode.Uri): string;
|
86
|
+
/**
|
87
|
+
* Creates a temporary directory and pass it on to a `process` function.
|
88
|
+
* The directory is guaranteed to be empty when created and deleted after the `process` is done.
|
89
|
+
* @param process the process that will run on the empty directory
|
90
|
+
*/
|
91
|
+
withTempDirectory(process: (directory: string) => Promise<void>): Promise<void>;
|
84
92
|
}
|
package/api/IBMiContent.d.ts
CHANGED
@@ -96,7 +96,7 @@ export default class IBMiContent {
|
|
96
96
|
/**
|
97
97
|
* @param filters
|
98
98
|
* @param sortOrder
|
99
|
-
* @returns an array of
|
99
|
+
* @returns an array of IBMiObject
|
100
100
|
*/
|
101
101
|
getObjectList(filters: {
|
102
102
|
library: string;
|
@@ -137,7 +137,7 @@ export default class IBMiContent {
|
|
137
137
|
* @param timeString: string in HHMMSS
|
138
138
|
* @returns date
|
139
139
|
*/
|
140
|
-
|
140
|
+
getDspObjDdDate(century?: string, MMDDYY?: string, HHMMSS?: string): Date;
|
141
141
|
/**
|
142
142
|
* Return `true` if `remotePath` denotes a directory
|
143
143
|
*
|
package/api/Storage.d.ts
CHANGED
@@ -59,6 +59,7 @@ export declare class GlobalStorage extends Storage {
|
|
59
59
|
defaultCCSID: number;
|
60
60
|
};
|
61
61
|
setServerSettingsCache(name: string, serverSettings: CachedServerSettings): Promise<void>;
|
62
|
+
setServerSettingsCacheSpecific(name: string, newSettings: Partial<CachedServerSettings>): Promise<void>;
|
62
63
|
deleteServerSettingsCache(name: string): Promise<void>;
|
63
64
|
getPreviousSearchTerms(): string[];
|
64
65
|
setPreviousSearchTerms(previousSearchTerms: string[]): Promise<void>;
|
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
|
}
|
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;
|
@@ -155,9 +162,6 @@ export interface FilteredItem {
|
|
155
162
|
export interface ObjectItem extends FilteredItem, WithPath {
|
156
163
|
object: IBMiObject;
|
157
164
|
}
|
158
|
-
export interface SourcePhysicalFileItem extends FilteredItem, WithPath {
|
159
|
-
sourceFile: IBMiObject;
|
160
|
-
}
|
161
165
|
export interface MemberItem extends FilteredItem, WithPath {
|
162
166
|
member: IBMiMember;
|
163
167
|
}
|
@@ -169,6 +173,7 @@ export declare type IBMiMessages = {
|
|
169
173
|
messages: IBMiMessage[];
|
170
174
|
findId(id: string): IBMiMessage | undefined;
|
171
175
|
};
|
176
|
+
export declare const OBJECT_BROWSER_MIMETYPE = "application/vnd.code.tree.objectbrowser";
|
172
177
|
export declare const IFS_BROWSER_MIMETYPE = "application/vnd.code.tree.ifsbrowser";
|
173
178
|
export declare type OpenEditableOptions = QsysFsOptions & {
|
174
179
|
position?: Range;
|