@halcyontech/vscode-ibmi-types 2.10.0 → 2.10.1

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
  /// <reference types="node" />
2
- import { IBMiError, IBMiMember, IBMiObject, IFSFile, QsysPath } from '../typings';
2
+ import { AttrOperands, IBMiError, IBMiMember, IBMiObject, IFSFile, QsysPath } from '../typings';
3
3
  import { FilterType } from './Filter';
4
4
  import { default as IBMi } from './IBMi';
5
5
  import { Tools } from './Tools';
@@ -166,5 +166,10 @@ export default class IBMiContent {
166
166
  toCl(command: string, parameters: {
167
167
  [parameter: string]: string | number | undefined;
168
168
  }): string;
169
+ getAttributes(path: string | (QsysPath & {
170
+ member?: string;
171
+ }), ...operands: AttrOperands[]): Promise<Record<string, string>>;
172
+ countMembers(path: QsysPath): Promise<number>;
173
+ countFiles(directory: string): Promise<number>;
169
174
  }
170
175
  export {};
package/api/Tools.d.ts CHANGED
@@ -21,13 +21,13 @@ export declare namespace Tools {
21
21
  function db2Parse(output: string): DB2Row[];
22
22
  function makeid(length?: number): string;
23
23
  /**
24
- * Build the IFS path string to a member
24
+ * Build the IFS path string to an object or member
25
25
  * @param library
26
26
  * @param object
27
- * @param member
27
+ * @param member Optional
28
28
  * @param iasp Optional: an iASP name
29
29
  */
30
- function qualifyPath(library: string, object: string, member: string, iasp?: string, sanitise?: boolean): string;
30
+ function qualifyPath(library: string, object: string, member?: string, iasp?: string, sanitise?: boolean): string;
31
31
  /**
32
32
  * Unqualify member path from root
33
33
  */
@@ -13,6 +13,7 @@ export declare namespace Deployment {
13
13
  const workspaceChanges: Map<vscode.WorkspaceFolder, Map<string, vscode.Uri>>;
14
14
  function initialize(context: vscode.ExtensionContext): void;
15
15
  function getConnection(): IBMi;
16
+ function getContent(): import("../IBMiContent").default;
16
17
  function createRemoteDirectory(remotePath: string): Promise<import("../../typings").CommandResult>;
17
18
  function showErrorButton(): Promise<void>;
18
19
  function getWorkspaceFolder(workspaceIndex?: number): Promise<vscode.WorkspaceFolder>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@halcyontech/vscode-ibmi-types",
3
- "version": "2.10.0",
3
+ "version": "2.10.1",
4
4
  "description": "Types for vscode-ibmi",
5
5
  "typings": "./typings.d.ts",
6
6
  "scripts": {
package/typings.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /// <reference types="node" />
2
2
  import { Ignore } from 'ignore';
3
- import { ProviderResult, Range, TreeItem, TreeItemCollapsibleState, WorkspaceFolder } from "vscode";
3
+ import { MarkdownString, ProviderResult, Range, TreeItem, TreeItemCollapsibleState, WorkspaceFolder } from "vscode";
4
4
  import { ConnectionConfiguration } from './api/Configuration';
5
5
  import { CustomUI } from "./api/CustomUI";
6
6
  import Instance from "./api/Instance";
@@ -91,9 +91,7 @@ export interface IBMiObject extends QsysPath {
91
91
  text: string;
92
92
  sourceFile?: boolean;
93
93
  attribute?: string;
94
- memberCount?: number;
95
94
  sourceLength?: number;
96
- CCSID?: number;
97
95
  size?: number;
98
96
  created?: Date;
99
97
  changed?: Date;
@@ -161,6 +159,7 @@ export declare class BrowserItem extends TreeItem {
161
159
  getChildren?(): ProviderResult<BrowserItem[]>;
162
160
  refresh?(): void;
163
161
  reveal?(options?: FocusOptions): Thenable<void>;
162
+ getToolTip?(): Promise<MarkdownString | undefined>;
164
163
  }
165
164
  export interface FilteredItem {
166
165
  filter: ConnectionConfiguration.ObjectFilters;
@@ -185,3 +184,4 @@ export declare type OpenEditableOptions = QsysFsOptions & {
185
184
  position?: Range;
186
185
  };
187
186
  export declare type SpecialAuthorities = "*ALLOBJ" | "*AUDIT" | "*IOSYSCFG" | "*JOBCTL" | "*SAVSYS" | "*SECADM" | "*SERVICE" | "*SPLCTL";
187
+ export declare type AttrOperands = 'ACCESS_TIME' | 'ALLOC_SIZE' | 'ALLOC_SIZE_64' | 'ALWCKPWR' | 'ALWSAV' | 'ASP' | 'AUDIT' | 'AUTH_GROUP' | 'AUTH_LIST_NAME' | 'AUTH_OWNER' | 'AUTH_USERS' | 'CCSID' | 'CHANGE_TIME' | 'CHECKED_OUT' | 'CHECKED_OUT_USER' | 'CHECKED_OUT_TIME' | 'CODEPAGE' | 'CREATE_TIME' | 'CRTOBJAUD' | 'CRTOBJSCAN' | 'DATA_SIZE' | 'DATA_SIZE_64' | 'DIR_FORMAT' | 'DISK_STG_OPT' | 'EXTENDED_ATTR_SIZE' | 'FILE_FORMAT' | 'FILE_ID' | 'JOURNAL_APPLY_CHANGES' | 'JOURNAL_ID' | 'JOURNAL_LIBRARY' | 'JOURNAL_NAME' | 'JOURNAL_OPTIONS' | 'JOURNAL_RCVR_ASP' | 'JOURNAL_RCVR_LIBRARY' | 'JOURNAL_RCVR_NAME' | 'JOURNAL_ROLLBACK_ENDED' | 'JOURNAL_START_TIME' | 'JOURNAL_STATUS' | 'LOCAL_REMOTE' | 'MAIN_STG_OPT' | 'MODIFY_TIME' | 'MULT_SIGS' | 'OBJTYPE' | 'PC_ARCHIVE' | 'PC_HIDDEN' | 'PC_READ_ONLY' | 'PC_SYSTEM' | 'RSTDRNMUNL' | 'SCAN' | 'SCAN_BINARY' | 'SCAN_CCSID1' | 'SCAN_CCSID2' | 'SCAN_SIGS_DIFF' | 'SCAN_STATUS' | 'SGID' | 'SIGNED' | 'STG_FREE' | 'SUID' | 'SYSTEM_ARCHIVE' | 'SYSTEM_USE' | 'SYS_SIGNED' | 'UDFS_DEFAULT_FORMAT' | 'USAGE_DAYS_USED' | 'USAGE_LAST_USED_TIME' | 'USAGE_RESET_TIME';