@halcyontech/vscode-ibmi-types 2.17.0 → 2.17.2
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 +1 -2
- 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/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,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/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
|
-
}
|