@sap/artifact-management-types 1.2.0 → 1.6.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 +6 -3
- package/sap-artifact-management-types-1.6.0.tgz +0 -0
- package/src/cp/CFProjectBuilder.d.ts +3 -0
- package/src/cp/LaunchpadPageGenerator.d.ts +9 -0
- package/src/plugins/cap/readers/CapModuleReader.d.ts +2 -0
- package/src/plugins/workflow/readers/WorkflowModuleParser.d.ts +2 -2
- package/src/plugins/xsuaa/InfoList.d.ts +2 -2
- package/src/plugins/xsuaa/readers/XsSecurityModuleReader.d.ts +2 -14
- package/src/project/ProjectBuilder.d.ts +2 -0
- package/src/project-api/ModuleInstance.d.ts +2 -2
- package/src/project-api/ProjectApi.d.ts +10 -0
- package/src/project-api/ProjectImpl.d.ts +7 -1
package/package.json
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap/artifact-management-types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "Type signatures for artifact management",
|
|
5
5
|
"types": "./src/index.d.ts",
|
|
6
6
|
"main": "./src/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"compile": "tsc -p ./"
|
|
8
|
+
"compile": "tsc -p ./",
|
|
9
|
+
"modify-types-import": "npm i && gulp --gulpfile ../../gulpfile.js modifyTypesImport",
|
|
10
|
+
"pack": "npm run modify-types-import && npm pack"
|
|
9
11
|
},
|
|
10
12
|
"dependencies": {
|
|
11
|
-
"@sap/artifact-management-base-types": "^1.1.0"
|
|
13
|
+
"@sap/artifact-management-base-types": "^1.1.0",
|
|
14
|
+
"gulp": "4.0.2"
|
|
12
15
|
},
|
|
13
16
|
"keywords": [
|
|
14
17
|
"artifact-management-types",
|
|
Binary file
|
|
@@ -22,6 +22,7 @@ export default class CFProjectBuilder implements ProjectBuilder {
|
|
|
22
22
|
*/
|
|
23
23
|
buildFs: ProjectFileSystem;
|
|
24
24
|
constructor(project: Project, fs: ProjectFileSystem);
|
|
25
|
+
private filterWorkflowModule;
|
|
25
26
|
build(): Promise<void>;
|
|
26
27
|
generateManifest(): Promise<void>;
|
|
27
28
|
private addResources;
|
|
@@ -34,6 +35,8 @@ export default class CFProjectBuilder implements ProjectBuilder {
|
|
|
34
35
|
mtarFileName(): string;
|
|
35
36
|
private buildMtar;
|
|
36
37
|
deploy(): Promise<void>;
|
|
38
|
+
updateDeployedTime(): Promise<void>;
|
|
39
|
+
getDeployedTime(): Promise<string>;
|
|
37
40
|
getProjectOverviewURL(): Promise<string | undefined>;
|
|
38
41
|
getOverviewApplicationId(): Promise<string>;
|
|
39
42
|
private generateOverviewApplication;
|
|
@@ -5,6 +5,15 @@ export default class LaunchpadPageGenerator {
|
|
|
5
5
|
render(project: Project, fs: ProjectFileSystem, isCurrentApiDeploy: boolean): Promise<number>;
|
|
6
6
|
buildUShellConfig(applications: RunUIApplication[], isCurrentApiDeploy: boolean): {
|
|
7
7
|
defaultRenderer: string;
|
|
8
|
+
renderers: {
|
|
9
|
+
fiori2: {
|
|
10
|
+
componentData: {
|
|
11
|
+
config: {
|
|
12
|
+
enableSearch: boolean;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
8
17
|
applications: any;
|
|
9
18
|
};
|
|
10
19
|
}
|
|
@@ -32,6 +32,8 @@ export default class CapModuleReader extends ModuleReader {
|
|
|
32
32
|
provideFromCds({ fs }: ProjectEntityReaderReadOptions): Promise<Item[]>;
|
|
33
33
|
detailInfo(fs: ProjectFileSystem, ref: string): Promise<Item | undefined>;
|
|
34
34
|
readCSV({ fs, matchedFiles }: ProjectEntityReaderReadOptions): Promise<Item[]>;
|
|
35
|
+
private getExternalServicePaths;
|
|
36
|
+
private getRef;
|
|
35
37
|
/**
|
|
36
38
|
* Get the service ref from service object.
|
|
37
39
|
* The method parses the service object and
|
|
@@ -5,8 +5,8 @@ export default class WorkflowModuleParser {
|
|
|
5
5
|
private json;
|
|
6
6
|
constructor(fs: ProjectFileSystem, path: string);
|
|
7
7
|
findTaskUIDependencies(): Promise<string[]>;
|
|
8
|
-
findSchemaDependencies(): Promise<[string,
|
|
8
|
+
findSchemaDependencies(): Promise<[string, string[]][]>;
|
|
9
9
|
private getJson;
|
|
10
|
-
private
|
|
10
|
+
private getServiceRefForWorkflow;
|
|
11
11
|
private getServiceRef;
|
|
12
12
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
1
|
import { ProjectFileSystem, KeyIn, ProjectEntityReaderReadOptions, ModuleType, Item, ModuleData, ModuleReader, DetectionMechanism } from '@sap/artifact-management-base-types';
|
|
2
|
-
interface XsSecurity {
|
|
3
|
-
xsappname: string;
|
|
4
|
-
'tenant-mode': string;
|
|
5
|
-
'role-templates': [
|
|
6
|
-
{
|
|
7
|
-
name: string;
|
|
8
|
-
description: string;
|
|
9
|
-
'scope-references': string[];
|
|
10
|
-
'attribute-references': string[];
|
|
11
|
-
}
|
|
12
|
-
];
|
|
13
|
-
}
|
|
14
2
|
export default class XsSecurityModuleReader extends ModuleReader {
|
|
15
3
|
getType(): KeyIn<typeof ModuleType>;
|
|
16
4
|
getDetectionMechanism(): DetectionMechanism;
|
|
@@ -27,10 +15,10 @@ export default class XsSecurityModuleReader extends ModuleReader {
|
|
|
27
15
|
read: (options: ProjectEntityReaderReadOptions) => Promise<Item[]>;
|
|
28
16
|
}[];
|
|
29
17
|
tags: string[];
|
|
30
|
-
|
|
18
|
+
readPackageJson(fs: ProjectFileSystem): Promise<any>;
|
|
19
|
+
readDefaultRoles(fs: ProjectFileSystem): Promise<any>;
|
|
31
20
|
read({ fs }: {
|
|
32
21
|
fs: ProjectFileSystem;
|
|
33
22
|
}): Promise<ModuleData | undefined>;
|
|
34
23
|
readRoles({ fs }: ProjectEntityReaderReadOptions): Promise<Item[]>;
|
|
35
24
|
}
|
|
36
|
-
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ModuleData, Item, ProjectFileSystem, FileSystemWatchManager, ModuleReader
|
|
1
|
+
import { ModuleData, Item, ProjectFileSystem, FileSystemWatchManager, ModuleReader } from '@sap/artifact-management-base-types';
|
|
2
2
|
import ItemSetInstance from './ItemSetInstance';
|
|
3
3
|
import ProjectEntityInstance from './ProjectEntityInstance';
|
|
4
4
|
declare class ModuleInstance extends ProjectEntityInstance<ModuleData | undefined> {
|
|
@@ -12,7 +12,7 @@ declare class ModuleInstance extends ProjectEntityInstance<ModuleData | undefine
|
|
|
12
12
|
getModuleType(): Promise<string>;
|
|
13
13
|
getItems(): Promise<{
|
|
14
14
|
items: Item[];
|
|
15
|
-
info?:
|
|
15
|
+
info?: {} | undefined;
|
|
16
16
|
}>;
|
|
17
17
|
}
|
|
18
18
|
export default ModuleInstance;
|
|
@@ -52,6 +52,9 @@ export default interface ProjectApi {
|
|
|
52
52
|
/**
|
|
53
53
|
* get Launch URL of Project Already Deployed
|
|
54
54
|
*/
|
|
55
|
+
/**
|
|
56
|
+
* @deprecated Use getApplicationDeploymentSummary() instead
|
|
57
|
+
*/
|
|
55
58
|
getProjectOverviewURL(logger?: IChildLogger): Promise<string | undefined>;
|
|
56
59
|
/**
|
|
57
60
|
* Get Project level info of the project
|
|
@@ -65,4 +68,11 @@ export default interface ProjectApi {
|
|
|
65
68
|
* Get contents of mta.yaml file
|
|
66
69
|
*/
|
|
67
70
|
getManifest(logger?: IChildLogger): Promise<any>;
|
|
71
|
+
/**
|
|
72
|
+
* Get summary of application deployment
|
|
73
|
+
*/
|
|
74
|
+
getApplicationDeploymentSummary(logger?: IChildLogger): Promise<{
|
|
75
|
+
ProjectOverviewURL?: string;
|
|
76
|
+
DeployedUTCTime?: string;
|
|
77
|
+
} | undefined>;
|
|
68
78
|
}
|
|
@@ -12,7 +12,6 @@ export default class ProjectImpl implements ProjectApi {
|
|
|
12
12
|
private watchClients;
|
|
13
13
|
private watchManager?;
|
|
14
14
|
private readModuleAsProject;
|
|
15
|
-
private cachedLaunchURL;
|
|
16
15
|
constructor(path: string, readModuleAsProject?: boolean);
|
|
17
16
|
autoBuild(logger?: IChildLogger): Promise<AutoBuilder>;
|
|
18
17
|
projectInstance(): ProjectInstance;
|
|
@@ -54,6 +53,13 @@ export default class ProjectImpl implements ProjectApi {
|
|
|
54
53
|
deploy(logger?: IChildLogger): Promise<void>;
|
|
55
54
|
getProjectInfo(logger?: IChildLogger): Promise<ProjectData | undefined>;
|
|
56
55
|
getModulesInfo(logger?: IChildLogger): Promise<ModuleData[]>;
|
|
56
|
+
/**
|
|
57
|
+
* @deprecated Use getApplicationDeploymentSummary() instead
|
|
58
|
+
*/
|
|
57
59
|
getProjectOverviewURL(logger?: IChildLogger): Promise<string | undefined>;
|
|
60
|
+
getApplicationDeploymentSummary(logger?: IChildLogger): Promise<{
|
|
61
|
+
ProjectOverviewURL?: string;
|
|
62
|
+
DeployedUTCTime?: string;
|
|
63
|
+
} | undefined>;
|
|
58
64
|
invalidate_cachedLaunchURL(): Promise<void>;
|
|
59
65
|
}
|