@sap/artifact-management-types 1.37.0 → 1.39.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/src/mta-generator/MtaGeneratorSettings.d.ts +1 -0
- package/src/plugins/cap/generators/CapDestinationModuleGenerator.d.ts +1 -0
- package/src/plugins/cap/generators/CapUIDeployerGenerator.d.ts +2 -2
- package/src/plugins/cap/util/ItemUtil.d.ts +2 -0
- package/src/plugins/java/readers/JavaModuleReader.d.ts +22 -1
- package/src/plugins/java/readers/JavaProjectReader.d.ts +1 -0
- package/src/plugins/xsuaa/generators/XsSecurityModuleManifestGenerator.d.ts +1 -1
- package/src/project-api/NodeWorkspace.d.ts +1 -1
- package/src/project-api/ProjectApi.d.ts +8 -0
- package/src/project-api/ProjectImpl.d.ts +2 -0
- package/src/project-api/VSCodeWorkspace.d.ts +1 -1
- package/src/project-api/WorkspaceApi.d.ts +1 -1
- package/src/project-api/WorkspaceImpl.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap/artifact-management-types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.39.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.39.0"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"gulp": "4.0.2"
|
|
@@ -5,6 +5,7 @@ export declare class CapDestinationModuleGenerator implements ModuleManifestGene
|
|
|
5
5
|
beforeBuildCommands(): Promise<string[]>;
|
|
6
6
|
getModuleManifest(context: ModuleGeneratorContext): Promise<MtaModule | null>;
|
|
7
7
|
private getDesinationsForCapServices;
|
|
8
|
+
private getDesinationsForWorkzone;
|
|
8
9
|
private getDestinationsToBeCreated;
|
|
9
10
|
private getDestinationToServiceInstanceInfo;
|
|
10
11
|
private getDestinationToResourceBehindXsuaaInfo;
|
|
@@ -2,7 +2,7 @@ import { KeyIn, ModuleType, ModuleGeneratorContext, ModuleManifestGenerator, Mta
|
|
|
2
2
|
export default class CapUIDeployerGenerator implements ModuleManifestGenerator {
|
|
3
3
|
getType(): KeyIn<typeof ModuleType>;
|
|
4
4
|
provideResources(): Promise<never[]>;
|
|
5
|
-
beforeBuildCommands(): Promise<string[]>;
|
|
5
|
+
beforeBuildCommands(context: ModuleGeneratorContext): Promise<string[]>;
|
|
6
6
|
getModuleManifest(context: ModuleGeneratorContext): Promise<MtaModule | null>;
|
|
7
|
-
requires(): MtaModuleRequires[];
|
|
7
|
+
requires(context: ModuleGeneratorContext): MtaModuleRequires[];
|
|
8
8
|
}
|
|
@@ -16,7 +16,9 @@ export default class ItemUtil {
|
|
|
16
16
|
[key: string]: string;
|
|
17
17
|
}): void;
|
|
18
18
|
static addLinksToAppLogicItem(fs: ProjectFileSystem, file: string, capApi: CapApi, logicItem: Item): Promise<void>;
|
|
19
|
+
static addLinksToJavaAppLogicItem(fs: ProjectFileSystem, file: string, capApi: CapApi, logicItem: Item): Promise<void>;
|
|
19
20
|
private static addLinksToAppLogicItemWithEntity;
|
|
21
|
+
private static addLinksToAppLogicItemWithService;
|
|
20
22
|
private static addLinksToAppLogicItemWithoutEntity;
|
|
21
23
|
static addLinkToRoles(cdsObject: CDSDefinition, item: Item): void;
|
|
22
24
|
static getOperationItem(fs: ProjectFileSystem, operation: any, tags: string[], withDetailInfo: boolean): Item;
|
|
@@ -1,5 +1,26 @@
|
|
|
1
|
-
import { ModuleType, KeyIn } from '@sap/artifact-management-base-types';
|
|
1
|
+
import { ProjectFileSystem, Item, ModuleType, ModuleData, ProjectEntityReaderReadOptions, KeyIn, ItemDetailInfoOptions } from '@sap/artifact-management-base-types';
|
|
2
2
|
import CapModuleReader from '../../cap/readers/CapModuleReader';
|
|
3
3
|
export default class JavaModuleReader extends CapModuleReader {
|
|
4
4
|
getType(): KeyIn<typeof ModuleType>;
|
|
5
|
+
itemReaders: ({
|
|
6
|
+
matchConditions: {
|
|
7
|
+
requiredFilePatterns: string[];
|
|
8
|
+
};
|
|
9
|
+
types: string[];
|
|
10
|
+
tags: string[];
|
|
11
|
+
read: (options: ProjectEntityReaderReadOptions) => Promise<Item[]>;
|
|
12
|
+
detailInfo: (fs: ProjectFileSystem, ref: string, options?: ItemDetailInfoOptions | undefined) => Promise<Item | undefined>;
|
|
13
|
+
} | {
|
|
14
|
+
matchConditions: {
|
|
15
|
+
requiredFilePatterns: string[];
|
|
16
|
+
};
|
|
17
|
+
types: string[];
|
|
18
|
+
tags: string[];
|
|
19
|
+
read: (options: ProjectEntityReaderReadOptions) => Promise<Item[]>;
|
|
20
|
+
detailInfo?: undefined;
|
|
21
|
+
})[];
|
|
22
|
+
readJavaApplicationLogic({ fs, matchedFiles }: ProjectEntityReaderReadOptions): Promise<Item[]>;
|
|
23
|
+
read({ fs }: {
|
|
24
|
+
fs: ProjectFileSystem;
|
|
25
|
+
}): Promise<ModuleData | undefined>;
|
|
5
26
|
}
|
|
@@ -6,4 +6,5 @@ export default class JavaProjectReader extends ProjectReader {
|
|
|
6
6
|
moduleSearchPattern(): Promise<string[]>;
|
|
7
7
|
tags: string[];
|
|
8
8
|
read({ fs }: ProjectReaderOptions): Promise<ProjectData | undefined>;
|
|
9
|
+
resolveProperty(value: string, properties: Record<string, string>): string;
|
|
9
10
|
}
|
|
@@ -8,6 +8,6 @@ export default class XsSecurityModuleManifestGenerator implements ModuleManifest
|
|
|
8
8
|
requires(): MtaModuleRequires[];
|
|
9
9
|
getXsSecurityContents(fs: ProjectFileSystem): Promise<any>;
|
|
10
10
|
private configureXsSecurity;
|
|
11
|
-
getRoleCollection(fs: ProjectFileSystem): Promise<any[]>;
|
|
11
|
+
getRoleCollection(fs: ProjectFileSystem, updateXsSecurity: boolean): Promise<any[]>;
|
|
12
12
|
private getPDMServiceItem;
|
|
13
13
|
}
|
|
@@ -14,7 +14,7 @@ export default class NodeWorkspace implements WorkspaceApi {
|
|
|
14
14
|
constructor(path: string, readModuleAsProject: boolean);
|
|
15
15
|
getWorksapceFolders(): Promise<string[]>;
|
|
16
16
|
private getSubFolders;
|
|
17
|
-
getProjects(tag?: KeyIn<typeof Tag
|
|
17
|
+
getProjects(tag?: KeyIn<typeof Tag>, path?: string, shallow?: boolean): Promise<ProjectApi[]>;
|
|
18
18
|
getProject(path: string, useHeadlessGenerator?: boolean): Promise<ProjectApi>;
|
|
19
19
|
private getProjectsAllLevels;
|
|
20
20
|
getProjectUris(): Promise<string[]>;
|
|
@@ -94,4 +94,12 @@ export default interface ProjectApi {
|
|
|
94
94
|
getDataInfo(data: any, mainEntityName?: string, logger?: IChildLogger): Promise<any>;
|
|
95
95
|
enableSaas(): Promise<void>;
|
|
96
96
|
updateXsuaaService(): Promise<boolean>;
|
|
97
|
+
/**
|
|
98
|
+
* Get the list of all the services in the project
|
|
99
|
+
*/
|
|
100
|
+
getServicesInfo(): Promise<any[]>;
|
|
101
|
+
/**
|
|
102
|
+
* Get the edmx of a service
|
|
103
|
+
*/
|
|
104
|
+
getServiceEdmx(path: string, name: string): Promise<string>;
|
|
97
105
|
}
|
|
@@ -27,7 +27,7 @@ export default class VSCodeWorkspace implements WorkspaceApi {
|
|
|
27
27
|
private readers;
|
|
28
28
|
constructor(vscode: VSCodeLike, readModuleAsProject: boolean);
|
|
29
29
|
private getSubFolders;
|
|
30
|
-
getProjects(tag?: KeyIn<typeof Tag
|
|
30
|
+
getProjects(tag?: KeyIn<typeof Tag>, path?: string, shallow?: boolean): Promise<ProjectApi[]>;
|
|
31
31
|
getProject(path: string, useHeadlessGenerator?: boolean): Promise<ProjectApi>;
|
|
32
32
|
private getProjectsAllLevels;
|
|
33
33
|
private isExpectedProject;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IPluginManager, KeyIn, Tag } from '@sap/artifact-management-base-types';
|
|
2
2
|
import ProjectApi from './ProjectApi';
|
|
3
3
|
export default interface WorkspaceApi {
|
|
4
|
-
getProjects(tag?: KeyIn<typeof Tag>, path?: string): Promise<ProjectApi[]>;
|
|
4
|
+
getProjects(tag?: KeyIn<typeof Tag>, path?: string, shallow?: boolean): Promise<ProjectApi[]>;
|
|
5
5
|
getProject(path: string, useHeadlessGenerator?: boolean): Promise<ProjectApi>;
|
|
6
6
|
/**
|
|
7
7
|
* Get all paths that contain projects in the workspace
|
|
@@ -6,7 +6,7 @@ export { VSCodeLike };
|
|
|
6
6
|
export default class WorkspaceImpl implements WorkspaceApi {
|
|
7
7
|
private api;
|
|
8
8
|
constructor(pathOrWorkspace: string | VSCodeLike, readModuleAsProject?: boolean);
|
|
9
|
-
getProjects(tag?: KeyIn<typeof Tag>, path?: string): Promise<ProjectApi[]>;
|
|
9
|
+
getProjects(tag?: KeyIn<typeof Tag>, path?: string, shallow?: boolean): Promise<ProjectApi[]>;
|
|
10
10
|
getProject(path: string, useHeadlessGenerator?: boolean): Promise<ProjectApi>;
|
|
11
11
|
getProjectUris(): Promise<string[]>;
|
|
12
12
|
startWatch(): void;
|