@sap/artifact-management-types 1.52.0 → 1.53.1
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/plugins/dataproduct/readers/DataProductItemReader.d.ts +10 -0
- package/src/plugins/dataproduct/types/DataProductDefinition.d.ts +2 -0
- package/src/plugins/doc/index.d.ts +3 -0
- package/src/plugins/doc/readers/DocModuleReader.d.ts +22 -0
- package/src/plugins/doc/readers/DocProjectReader.d.ts +12 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap/artifact-management-types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.53.1",
|
|
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.53.1"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"gulp": "4.0.2"
|
|
@@ -4,6 +4,8 @@ import { Item, ProjectEntityReaderReadOptions } from '@sap/artifact-management-b
|
|
|
4
4
|
* Extracts metadata from each data product definition file.
|
|
5
5
|
*/
|
|
6
6
|
export default class DataProductItemReader {
|
|
7
|
+
private static readonly BDC_DESTINATION_NAME;
|
|
8
|
+
private static readonly DEFAULT_DOMAIN;
|
|
7
9
|
matchConditions: {
|
|
8
10
|
filePatterns: string[];
|
|
9
11
|
};
|
|
@@ -13,6 +15,14 @@ export default class DataProductItemReader {
|
|
|
13
15
|
* Read all .dpd files in the current directory and extract their metadata.
|
|
14
16
|
*/
|
|
15
17
|
read({ fs }: ProjectEntityReaderReadOptions): Promise<Item[]>;
|
|
18
|
+
/**
|
|
19
|
+
* Resolves the base URL of the SAP BDC destination.
|
|
20
|
+
*/
|
|
21
|
+
private getBDCBaseUrl;
|
|
22
|
+
/**
|
|
23
|
+
* Builds the full SAP Data Product Studio URL for a given data product.
|
|
24
|
+
*/
|
|
25
|
+
private buildFullUrl;
|
|
16
26
|
/**
|
|
17
27
|
* Parse a .dpd file and create an Item from it.
|
|
18
28
|
*/
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { KeyIn, ProjectEntityReaderReadOptions, ModuleType, Item, ModuleData, ModuleReader, DetectionMechanism } from '@sap/artifact-management-base-types';
|
|
2
|
+
export default class DocModuleReader extends ModuleReader {
|
|
3
|
+
supportedProjectType: string[];
|
|
4
|
+
getType(): KeyIn<typeof ModuleType>;
|
|
5
|
+
getDetectionMechanism(): DetectionMechanism;
|
|
6
|
+
matchConditions: {
|
|
7
|
+
filePatterns: string[];
|
|
8
|
+
};
|
|
9
|
+
tags: string[];
|
|
10
|
+
itemTags: string[];
|
|
11
|
+
itemReaders: {
|
|
12
|
+
matchConditions: {
|
|
13
|
+
filePatterns: string[];
|
|
14
|
+
};
|
|
15
|
+
types: string[];
|
|
16
|
+
tags: string[];
|
|
17
|
+
read: (options: ProjectEntityReaderReadOptions) => Promise<Item[]>;
|
|
18
|
+
}[];
|
|
19
|
+
read({ fs }: ProjectEntityReaderReadOptions): Promise<ModuleData | undefined>;
|
|
20
|
+
private readPrd;
|
|
21
|
+
private readSpecs;
|
|
22
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ProjectReader, ProjectReaderOptions, ProjectData, ProjectType, DetectionMechanism, KeyIn } from '@sap/artifact-management-base-types';
|
|
2
|
+
import DocModuleReader from './DocModuleReader';
|
|
3
|
+
export default class DocProjectReader extends ProjectReader {
|
|
4
|
+
constructor();
|
|
5
|
+
getType(): KeyIn<typeof ProjectType>;
|
|
6
|
+
getDetectionMechanism(): DetectionMechanism;
|
|
7
|
+
moduleSearchPattern(): Promise<string[]>;
|
|
8
|
+
additionalModuleReaders: DocModuleReader[][];
|
|
9
|
+
tags: string[];
|
|
10
|
+
read({ fs }: ProjectReaderOptions): Promise<ProjectData | undefined>;
|
|
11
|
+
private isDocProject;
|
|
12
|
+
}
|