@sap/artifact-management-types 1.48.0 → 1.49.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.
|
|
3
|
+
"version": "1.49.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.49.0"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"gulp": "4.0.2"
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ProjectReader, ProjectReaderOptions, ProjectReaderHelper, ProjectData, ProjectType, DetectionMechanism, KeyIn, ProjectFileSystem } from '@sap/artifact-management-base-types';
|
|
2
2
|
import XsSecurityModuleReader from '../../xsuaa/readers/XsSecurityModuleReader';
|
|
3
|
+
import WorkflowModuleReader from '../../workflow/readers/WorkflowModuleReader';
|
|
3
4
|
export default class CapProjectReader extends ProjectReader {
|
|
4
5
|
constructor();
|
|
5
6
|
getType(): KeyIn<typeof ProjectType>;
|
|
6
7
|
getDetectionMechanism(): DetectionMechanism;
|
|
7
|
-
additionalModuleReaders: XsSecurityModuleReader[][];
|
|
8
|
+
additionalModuleReaders: (XsSecurityModuleReader | WorkflowModuleReader)[][];
|
|
8
9
|
tags: string[];
|
|
9
10
|
read({ fs }: ProjectReaderOptions): Promise<ProjectData | undefined>;
|
|
10
11
|
isCapProject(fs: ProjectFileSystem, helper: ProjectReaderHelper): Promise<boolean>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ProjectFileSystem, KeyIn, ProjectEntityReaderReadOptions, ModuleType, Item, ModuleData, ModuleReader, DetectionMechanism } from '@sap/artifact-management-base-types';
|
|
2
|
+
export default class WorkflowModuleReader extends ModuleReader {
|
|
3
|
+
getType(): KeyIn<typeof ModuleType>;
|
|
4
|
+
getDetectionMechanism(): DetectionMechanism;
|
|
5
|
+
matchConditions: {
|
|
6
|
+
requiredFilePatterns: string[];
|
|
7
|
+
};
|
|
8
|
+
itemTags: string[];
|
|
9
|
+
itemReaders: {
|
|
10
|
+
matchConditions: {
|
|
11
|
+
requiredFilePatterns: string[];
|
|
12
|
+
};
|
|
13
|
+
types: string[];
|
|
14
|
+
tags: string[];
|
|
15
|
+
read: (options: ProjectEntityReaderReadOptions) => Promise<Item[]>;
|
|
16
|
+
}[];
|
|
17
|
+
tags: string[];
|
|
18
|
+
read({ fs }: {
|
|
19
|
+
fs: ProjectFileSystem;
|
|
20
|
+
}): Promise<ModuleData | undefined>;
|
|
21
|
+
readWorkflows({ fs, matchedFiles }: ProjectEntityReaderReadOptions): Promise<Item[]>;
|
|
22
|
+
}
|