@halcyontech/vscode-ibmi-types 2.3.1 → 2.5.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.
@@ -1,5 +1,5 @@
1
1
  import vscode, { EventEmitter } from 'vscode';
2
- import { Action, CommandResult, DeploymentMethod, RemoteCommand } from '../typings';
2
+ import { Action, BrowserItem, CommandResult, DeploymentMethod, RemoteCommand } from '../typings';
3
3
  import Instance from './Instance';
4
4
  export interface ILELibrarySettings {
5
5
  currentLibrary: string;
@@ -7,7 +7,7 @@ export interface ILELibrarySettings {
7
7
  }
8
8
  export declare namespace CompileTools {
9
9
  function register(context: vscode.ExtensionContext): void;
10
- function runAction(instance: Instance, uri: vscode.Uri, customAction?: Action, method?: DeploymentMethod): Promise<boolean>;
10
+ function runAction(instance: Instance, uri: vscode.Uri, customAction?: Action, method?: DeploymentMethod, browserItem?: BrowserItem): Promise<boolean>;
11
11
  /**
12
12
  * Execute a command
13
13
  */
@@ -1,4 +1,5 @@
1
1
  import * as vscode from 'vscode';
2
+ import { DeploymentMethod } from '../typings';
2
3
  export declare type SourceDateMode = "edit" | "diff";
3
4
  export declare function onCodeForIBMiConfigurationChange<T>(props: string | string[], todo: (value: vscode.ConfigurationChangeEvent) => void): vscode.Disposable;
4
5
  export declare namespace GlobalConfiguration {
@@ -35,6 +36,7 @@ export declare namespace ConnectionConfiguration {
35
36
  debugEnableDebugTracing: boolean;
36
37
  readOnlyMode: boolean;
37
38
  quickConnect: boolean;
39
+ defaultDeploymentMethod: DeploymentMethod | '';
38
40
  [name: string]: any;
39
41
  }
40
42
  interface ObjectFilters {
package/api/Tools.d.ts CHANGED
@@ -40,4 +40,5 @@ export declare namespace Tools {
40
40
  function distinct(value: any, index: number, array: any[]): boolean;
41
41
  function md5Hash(file: vscode.Uri): string;
42
42
  function capitalize(text: string): string;
43
+ function sanitizeLibraryNames(libraries: string[]): string[];
43
44
  }
@@ -1,6 +1,12 @@
1
1
  import IBMi from "../IBMi";
2
- export declare function getKeystorePath(connection: IBMi): string;
3
- export declare function getLocalCertPath(connection: IBMi): string;
4
- export declare function checkRemoteExists(connection: IBMi): Promise<boolean>;
2
+ export declare function getRemoteServerCertPath(connection: IBMi): string;
3
+ export declare function getRemoteClientCertPath(connection: IBMi): string;
4
+ export declare function remoteServerCertExists(connection: IBMi): Promise<boolean>;
5
+ export declare function remoteClientCertExists(connection: IBMi): Promise<boolean>;
6
+ /**
7
+ * Generate all certifcates on the server
8
+ */
5
9
  export declare function setup(connection: IBMi): Promise<void>;
6
- export declare function checkLocalExists(connection: IBMi): Promise<boolean>;
10
+ export declare function downloadClientCert(connection: IBMi): Promise<void>;
11
+ export declare function getLocalCertPath(connection: IBMi): string;
12
+ export declare function localClientCertExists(connection: IBMi): Promise<boolean>;
@@ -1,10 +1,13 @@
1
1
  import { ExtensionContext } from "vscode";
2
2
  import Instance from "../Instance";
3
+ import { ILELibrarySettings } from "../CompileTools";
4
+ export declare function isManaged(): boolean;
3
5
  export declare function initialize(context: ExtensionContext): Promise<void>;
4
6
  interface DebugOptions {
5
7
  password: string;
6
8
  library: string;
7
9
  object: string;
10
+ libraries: ILELibrarySettings;
8
11
  }
9
12
  export declare function startDebug(instance: Instance, options: DebugOptions): Promise<void>;
10
13
  export {};
@@ -12,6 +12,7 @@ export declare function registerDiagnostics(): vscode.Disposable[];
12
12
  * Does what it says on the tin.
13
13
  */
14
14
  export declare function clearDiagnostics(): void;
15
+ export declare function clearDiagnostic(uri: vscode.Uri, changeRange: vscode.Range): void;
15
16
  export declare function refreshDiagnosticsFromServer(instance: Instance, evfeventInfo: EvfEventInfo): Promise<void>;
16
17
  export declare function refreshDiagnosticsFromLocal(instance: Instance, evfeventInfo: EvfEventInfo): Promise<void>;
17
18
  export declare function handleEvfeventLines(lines: string[], instance: Instance, evfeventInfo: EvfEventInfo): Promise<void>;
@@ -2,3 +2,4 @@ import { WorkspaceFolder } from "vscode";
2
2
  export declare function getEnvConfig(currentWorkspace: WorkspaceFolder): Promise<{
3
3
  [key: string]: string;
4
4
  }>;
5
+ export declare function getBranchLibraryName(currentBranch: string): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@halcyontech/vscode-ibmi-types",
3
- "version": "2.3.1",
3
+ "version": "2.5.0",
4
4
  "description": "Types for vscode-ibmi",
5
5
  "typings": "./typings.d.ts",
6
6
  "scripts": {
@@ -8,7 +8,7 @@
8
8
  "deploy": "npm publish --access public"
9
9
  },
10
10
  "repository": {
11
- "url": "https://github.com/halcyon-tech/vscode-ibmi"
11
+ "url": "https://github.com/codefori/vscode-ibmi"
12
12
  },
13
13
  "author": "halcyontech",
14
14
  "license": "ISC"
package/typings.d.ts CHANGED
@@ -47,6 +47,7 @@ export interface CommandResult {
47
47
  command?: string;
48
48
  }
49
49
  export declare type ActionType = "member" | "streamfile" | "object" | "file";
50
+ export declare type ActionRefresh = "no" | "parent" | "filter" | "browser";
50
51
  export declare type ActionEnvironment = "ile" | "qsh" | "pase";
51
52
  export interface Action {
52
53
  name: string;
@@ -56,6 +57,8 @@ export interface Action {
56
57
  extensions?: string[];
57
58
  deployFirst?: boolean;
58
59
  postDownload?: string[];
60
+ refresh?: ActionRefresh;
61
+ runOnProtected?: boolean;
59
62
  }
60
63
  export interface ConnectionData {
61
64
  name: string;
@@ -63,6 +66,7 @@ export interface ConnectionData {
63
66
  port: number;
64
67
  username: string;
65
68
  password?: string;
69
+ privateKey?: string;
66
70
  privateKeyPath?: string;
67
71
  keepaliveInterval?: number;
68
72
  }
@@ -101,7 +105,7 @@ export interface IFSFile {
101
105
  name: string;
102
106
  path: string;
103
107
  size?: number;
104
- modified?: Date | string;
108
+ modified?: Date;
105
109
  owner?: string;
106
110
  }
107
111
  export interface IBMiError {