@halcyontech/vscode-ibmi-types 2.17.0 → 2.18.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/IBMiContent.d.ts +1 -2
- package/api/Tools.d.ts +2 -3
- package/api/configuration/storage/BaseStorage.d.ts +14 -7
- package/api/configuration/storage/CodeForIStorage.d.ts +1 -1
- package/api/configuration/storage/ConnectionStorage.d.ts +2 -1
- package/package.json +1 -1
- package/ui/Tools.d.ts +1 -0
- package/ui/actions.d.ts +2 -1
- package/config/Storage.d.ts +0 -10
package/api/IBMiContent.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
/// <reference types="node" />
|
|
3
3
|
import * as node_ssh from "node-ssh";
|
|
4
|
-
import { EditorPath } from './types';
|
|
5
4
|
import { FilterType } from './Filter';
|
|
6
5
|
import { default as IBMi } from './IBMi';
|
|
7
6
|
import { Tools } from './Tools';
|
|
8
|
-
import { AttrOperands, CommandResult, IBMiError, IBMiMember, IBMiObject, IFSFile, ModuleExport, ProgramExportImportInfo, QsysPath, SpecialAuthorities } from './types';
|
|
7
|
+
import { AttrOperands, CommandResult, EditorPath, IBMiError, IBMiMember, IBMiObject, IFSFile, ModuleExport, ProgramExportImportInfo, QsysPath, SpecialAuthorities } from './types';
|
|
9
8
|
declare type Authority = "*ADD" | "*DLT" | "*EXECUTE" | "*READ" | "*UPD" | "*NONE" | "*ALL" | "*CHANGE" | "*USE" | "*EXCLUDE" | "*AUTLMGT";
|
|
10
9
|
export declare type SortOrder = `name` | `type`;
|
|
11
10
|
export declare type SortOptions = {
|
package/api/Tools.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { IBMiMessages, QsysPath } from './types';
|
|
2
|
-
import { EditorPath } from "./types";
|
|
1
|
+
import { EditorPath, IBMiMessages, QsysPath } from './types';
|
|
3
2
|
export declare namespace Tools {
|
|
4
3
|
class SqlError extends Error {
|
|
5
4
|
sqlstate: string;
|
|
@@ -52,7 +51,7 @@ export declare namespace Tools {
|
|
|
52
51
|
function fixSQL(statement: string, removeComments?: boolean): string;
|
|
53
52
|
function fileToPath(file: EditorPath): string;
|
|
54
53
|
function fixWindowsPath(path: string): string;
|
|
55
|
-
function assumeType(str: string): string | number;
|
|
54
|
+
function assumeType(str: string, col?: string): string | number;
|
|
56
55
|
/**
|
|
57
56
|
* Converts a timestamp from the attr command (in the form `Thu Dec 21 21:47:02 2023`) into a Date object
|
|
58
57
|
* @param timestamp an attr timestamp string
|
|
@@ -1,13 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
/// <reference types="vscode" />
|
|
2
|
+
/**
|
|
3
|
+
* A common type that works for both a Map and VS Code's Memento
|
|
4
|
+
*/
|
|
5
|
+
export declare type GlobalState = {
|
|
6
|
+
keys(): Iterable<string>;
|
|
7
|
+
get<T>(key: string): T | undefined;
|
|
8
|
+
update?(key: string, value: any): Thenable<void>;
|
|
9
|
+
set?(key: string, value: any): void;
|
|
10
|
+
};
|
|
11
|
+
export declare class BaseStorage {
|
|
12
|
+
protected readonly globalState: GlobalState;
|
|
13
|
+
private uniqueKeyPrefix?;
|
|
14
|
+
constructor(globalState: GlobalState);
|
|
5
15
|
keys(): readonly string[];
|
|
6
16
|
setUniqueKeyPrefix(prefix: string): void;
|
|
7
17
|
get<T>(key: string): T | undefined;
|
|
8
18
|
set(key: string, value: any): Promise<void>;
|
|
9
19
|
getStorageKey(key: string): string;
|
|
10
20
|
}
|
|
11
|
-
export declare class VirtualStorage extends BaseStorage {
|
|
12
|
-
constructor();
|
|
13
|
-
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AspInfo, ConnectionData } from "../../types";
|
|
2
1
|
import { ComponentInstallState } from "../../components/component";
|
|
2
|
+
import { AspInfo, ConnectionData } from "../../types";
|
|
3
3
|
import { BaseStorage } from "./BaseStorage";
|
|
4
4
|
export declare type PathContent = Record<string, string[]>;
|
|
5
5
|
export declare type DeploymentPath = Record<string, string>;
|
|
@@ -8,7 +8,7 @@ declare type AuthorisedExtension = {
|
|
|
8
8
|
};
|
|
9
9
|
export declare class ConnectionStorage {
|
|
10
10
|
private internalStorage;
|
|
11
|
-
private connectionName
|
|
11
|
+
private connectionName?;
|
|
12
12
|
constructor(internalStorage: BaseStorage);
|
|
13
13
|
get ready(): boolean;
|
|
14
14
|
setConnectionName(connectionName: string): void;
|
|
@@ -33,5 +33,6 @@ export declare class ConnectionStorage {
|
|
|
33
33
|
revokeExtensionAuthorisation(...extensions: AuthorisedExtension[]): Promise<void>;
|
|
34
34
|
hasMessageBeenShown(messageId: string): boolean;
|
|
35
35
|
markMessageAsShown(messageId: string): Promise<void>;
|
|
36
|
+
unmarkMessageAsShown(messageId: string): Promise<void>;
|
|
36
37
|
}
|
|
37
38
|
export {};
|
package/package.json
CHANGED
package/ui/Tools.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export declare namespace VscodeTools {
|
|
|
23
23
|
*/
|
|
24
24
|
function findUriTabs(uriToFind: vscode.Uri | string): vscode.Tab[];
|
|
25
25
|
function generateTooltipHtmlTable(header: string, rows: Record<string, any>): string;
|
|
26
|
+
function escapeHtml(html: string): string;
|
|
26
27
|
/**
|
|
27
28
|
* Runs a function while a context value is set to true.
|
|
28
29
|
*
|
package/ui/actions.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import vscode, { WorkspaceFolder } from 'vscode';
|
|
2
|
+
import IBMi from '../api/IBMi';
|
|
2
3
|
import Instance from '../Instance';
|
|
3
4
|
import { Action, DeploymentMethod } from '../typings';
|
|
4
5
|
import { BrowserItem } from './types';
|
|
@@ -14,7 +15,7 @@ export declare type ActionTarget = {
|
|
|
14
15
|
output: string[];
|
|
15
16
|
};
|
|
16
17
|
export declare function registerActionTools(context: vscode.ExtensionContext): void;
|
|
17
|
-
export declare function uriToActionTarget(uri: vscode.Uri, workspaceFolder?: WorkspaceFolder): ActionTarget;
|
|
18
|
+
export declare function uriToActionTarget(uri: vscode.Uri, workspaceFolder?: WorkspaceFolder, ibmi?: IBMi): ActionTarget;
|
|
18
19
|
export declare function runAction(instance: Instance, uris: vscode.Uri | vscode.Uri[], customAction?: Action, method?: DeploymentMethod, browserItems?: BrowserItem[], workspaceFolder?: WorkspaceFolder): Promise<boolean>;
|
|
19
20
|
export declare type AvailableAction = {
|
|
20
21
|
label: string;
|
package/config/Storage.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as vscode from 'vscode';
|
|
2
|
-
import { BaseStorage } from '../api/configuration/storage/BaseStorage';
|
|
3
|
-
export declare class VsStorage extends BaseStorage {
|
|
4
|
-
protected readonly globalState: vscode.Memento;
|
|
5
|
-
private connectionName;
|
|
6
|
-
constructor(context: vscode.ExtensionContext);
|
|
7
|
-
keys(): readonly string[];
|
|
8
|
-
get<T>(key: string): T | undefined;
|
|
9
|
-
set(key: string, value: any): Promise<void>;
|
|
10
|
-
}
|