@sap/artifact-management-types 1.20.2 → 1.21.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/package.json +2 -2
- package/sap-artifact-management-types-1.21.0.tgz +0 -0
- package/src/definitions/PluginDefintionProvider.d.ts +8 -9
- package/src/project-api/NodeWorkspace.d.ts +2 -1
- package/src/project-api/VSCodeWorkspace.d.ts +2 -1
- package/src/project-api/WorkspaceApi.d.ts +2 -1
- package/src/project-api/WorkspaceImpl.d.ts +2 -1
- package/sap-artifact-management-types-1.20.2.tgz +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap/artifact-management-types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.21.0",
|
|
4
4
|
"description": "Type signatures for artifact management",
|
|
5
5
|
"types": "./src/index.d.ts",
|
|
6
6
|
"main": "./src/index.d.ts",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"pack": "npm run modify-types-import && npm pack"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@sap/artifact-management-base-types": "1.
|
|
13
|
+
"@sap/artifact-management-base-types": "1.21.0"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"gulp": "4.0.2"
|
|
Binary file
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
CAP: string;
|
|
3
|
-
XSUAA: string;
|
|
4
|
-
UI5: string;
|
|
5
|
-
MDK: string;
|
|
6
|
-
HANA: string;
|
|
7
|
-
};
|
|
1
|
+
import { IPluginManager, Plugin } from '@sap/artifact-management-base-types';
|
|
8
2
|
/**
|
|
9
3
|
* Central entrypoint for project and module specific implementations ("plugins").
|
|
10
4
|
*
|
|
11
5
|
* @todo: Later this needs to be able to be really plugable,
|
|
12
6
|
* meaning it should be possible to add plugins without changing this implementation.
|
|
13
7
|
*/
|
|
14
|
-
declare class PluginDefintionProvider {
|
|
15
|
-
|
|
8
|
+
declare class PluginDefintionProvider implements IPluginManager {
|
|
9
|
+
private pluginMap;
|
|
10
|
+
constructor();
|
|
11
|
+
register(plugin: Plugin): void;
|
|
12
|
+
get pluginNames(): string[];
|
|
13
|
+
get plugins(): Plugin[];
|
|
14
|
+
getPlugin(pluginName: string): Plugin;
|
|
16
15
|
}
|
|
17
16
|
declare const _default: PluginDefintionProvider;
|
|
18
17
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { FSWatcher } from 'fs';
|
|
3
|
-
import { KeyIn, Tag } from '@sap/artifact-management-base-types';
|
|
3
|
+
import { IPluginManager, KeyIn, Tag } from '@sap/artifact-management-base-types';
|
|
4
4
|
import ProjectApi from './ProjectApi';
|
|
5
5
|
import WorkspaceApi from './WorkspaceApi';
|
|
6
6
|
export default class NodeWorkspace implements WorkspaceApi {
|
|
@@ -21,4 +21,5 @@ export default class NodeWorkspace implements WorkspaceApi {
|
|
|
21
21
|
startWatch(): void;
|
|
22
22
|
stopWatch(): void;
|
|
23
23
|
onWorkspaceChanged(handler: (event: string, folders: string[]) => void): void;
|
|
24
|
+
getPluginManager(): IPluginManager;
|
|
24
25
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { FSWatcher } from 'fs';
|
|
3
3
|
import { Event, Uri, WorkspaceFolder, WorkspaceFoldersChangeEvent, FileSystem } from 'vscode';
|
|
4
|
-
import { KeyIn, Tag } from '@sap/artifact-management-base-types';
|
|
4
|
+
import { IPluginManager, KeyIn, Tag } from '@sap/artifact-management-base-types';
|
|
5
5
|
import ProjectApi from './ProjectApi';
|
|
6
6
|
import WorkspaceApi from './WorkspaceApi';
|
|
7
7
|
export interface VSCodeWorksapceLike {
|
|
@@ -36,4 +36,5 @@ export default class VSCodeWorkspace implements WorkspaceApi {
|
|
|
36
36
|
stopWatch(): void;
|
|
37
37
|
onWorkspaceChanged(handler: (event: string, folders: string[]) => void): void;
|
|
38
38
|
private getRootPath;
|
|
39
|
+
getPluginManager(): IPluginManager;
|
|
39
40
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { KeyIn, Tag } from '@sap/artifact-management-base-types';
|
|
1
|
+
import { IPluginManager, KeyIn, Tag } from '@sap/artifact-management-base-types';
|
|
2
2
|
import ProjectApi from './ProjectApi';
|
|
3
3
|
export default interface WorkspaceApi {
|
|
4
4
|
getProjects(tag?: KeyIn<typeof Tag>): Promise<ProjectApi[]>;
|
|
@@ -10,4 +10,5 @@ export default interface WorkspaceApi {
|
|
|
10
10
|
startWatch(): void;
|
|
11
11
|
stopWatch(): void;
|
|
12
12
|
onWorkspaceChanged(handler: (event: string, folders: string[]) => void): void;
|
|
13
|
+
getPluginManager(): IPluginManager;
|
|
13
14
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { KeyIn, Tag } from '@sap/artifact-management-base-types';
|
|
1
|
+
import { IPluginManager, KeyIn, Tag } from '@sap/artifact-management-base-types';
|
|
2
2
|
import ProjectApi from './ProjectApi';
|
|
3
3
|
import WorkspaceApi from './WorkspaceApi';
|
|
4
4
|
import { VSCodeLike } from './VSCodeWorkspace';
|
|
@@ -12,4 +12,5 @@ export default class WorkspaceImpl implements WorkspaceApi {
|
|
|
12
12
|
startWatch(): void;
|
|
13
13
|
stopWatch(): void;
|
|
14
14
|
onWorkspaceChanged(handler: (event: string, folders: string[]) => void): void;
|
|
15
|
+
getPluginManager(): IPluginManager;
|
|
15
16
|
}
|
|
Binary file
|