@sap/artifact-management-types 1.20.2 → 1.22.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap/artifact-management-types",
3
- "version": "1.20.2",
3
+ "version": "1.22.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.20.2"
13
+ "@sap/artifact-management-base-types": "1.22.0"
14
14
  },
15
15
  "devDependencies": {
16
16
  "gulp": "4.0.2"
@@ -0,0 +1,16 @@
1
+ export declare const NavigationMode: Readonly<{
2
+ EMBEDDED: string;
3
+ NEW_WINDOW: string;
4
+ REPLACE: string;
5
+ NEW_WINDOW_THEN_EMBEDDED: string;
6
+ }>;
7
+ export declare const WEBAPP_SECTION_DESCRIPTION: {
8
+ ZERO_APPS: string;
9
+ NON_ZERO_APPS: string;
10
+ };
11
+ export declare const PAGE_TITLE: {
12
+ PREVIEW: string;
13
+ DEPLOY: string;
14
+ };
15
+ export declare const UI5Version = "1.108.7";
16
+ export declare const UI5Theme = "sap_horizon";
@@ -1,18 +1,17 @@
1
- export declare const PLUGIN: {
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
- getDefintion(pluginName: string): any;
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,2 +1,5 @@
1
1
  export default interface MtaGeneratorSettings {
2
+ ui5version?: string;
3
+ ui5theme?: string;
4
+ platform?: string;
2
5
  }
@@ -12,7 +12,7 @@ declare class ModuleInstance extends ProjectEntityInstance<ModuleData | undefine
12
12
  getModuleType(): Promise<string>;
13
13
  getItems(withDetailInfo?: boolean): Promise<{
14
14
  items: Item[];
15
- info?: {} | undefined;
15
+ info?: {};
16
16
  }>;
17
17
  }
18
18
  export default ModuleInstance;
@@ -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
  }
@@ -55,6 +55,7 @@ export default interface ProjectApi {
55
55
  * Delta-build approach to build appliaction
56
56
  */
57
57
  buildV2(options?: MtaGeneratorSettings, logger?: IChildLogger): Promise<void>;
58
+ buildManifest(options?: MtaGeneratorSettings, logger?: IChildLogger): Promise<void>;
58
59
  /**
59
60
  * Deploy already built project
60
61
  */
@@ -4,8 +4,8 @@ import ProjectApi from './ProjectApi';
4
4
  import ItemWatcher from './ItemWatcher';
5
5
  import AutoBuilder from './AutoBuilder';
6
6
  import LocalFileSystemWatchManager from './LocalFileSystemWatchManager';
7
- import { PlatformContext } from '../project/PlatformContext';
8
7
  import { IChildLogger } from '@vscode-logging/types';
8
+ import MtaGeneratorSettings from '../mta-generator/MtaGeneratorSettings';
9
9
  export default class ProjectImpl implements ProjectApi {
10
10
  private path;
11
11
  private cachedProjectInstance?;
@@ -54,10 +54,10 @@ export default class ProjectImpl implements ProjectApi {
54
54
  */
55
55
  getDetailInfo(type: KeyIn<typeof ItemType>, ref: string, entityPath?: string, options?: ItemDetailInfoOptions, logger?: IChildLogger): Promise<Item | undefined>;
56
56
  run(options?: string[] | undefined, logger?: IChildLogger): Promise<void>;
57
- buildManifest(context?: PlatformContext, logger?: IChildLogger): Promise<void>;
57
+ buildManifest(options?: MtaGeneratorSettings, logger?: IChildLogger): Promise<void>;
58
58
  getManifest(logger?: IChildLogger): Promise<any>;
59
- build(context?: PlatformContext, logger?: IChildLogger): Promise<void>;
60
- buildV2(context?: PlatformContext, logger?: IChildLogger): Promise<void>;
59
+ build(options?: MtaGeneratorSettings, logger?: IChildLogger): Promise<void>;
60
+ buildV2(options?: MtaGeneratorSettings, logger?: IChildLogger): Promise<void>;
61
61
  private updateStatusTracker;
62
62
  deploy(logger?: IChildLogger): Promise<void>;
63
63
  deployV2(logger?: IChildLogger): Promise<void>;
@@ -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
  }