@sap/artifact-management-types 1.12.0 → 1.13.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 +1 -1
- package/sap-artifact-management-types-1.13.1.tgz +0 -0
- package/src/mta-generator/MtaMerger.d.ts +17 -0
- package/src/project-api/DataFirstUtil.d.ts +17 -0
- package/src/project-api/ProjectApi.d.ts +5 -2
- package/src/project-api/ProjectImpl.d.ts +1 -4
- package/sap-artifact-management-types-1.12.0.tgz +0 -0
package/package.json
CHANGED
|
Binary file
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ProjectAPILogger, ProjectFileSystem } from '@sap/artifact-management-base-types';
|
|
2
|
+
import { SimpleGit } from 'simple-git';
|
|
3
|
+
export default class MtaMerger {
|
|
4
|
+
fs: ProjectFileSystem;
|
|
5
|
+
git: SimpleGit;
|
|
6
|
+
get Git(): SimpleGit;
|
|
7
|
+
logger: ProjectAPILogger;
|
|
8
|
+
constructor(fs: ProjectFileSystem);
|
|
9
|
+
merge(content: string): Promise<void>;
|
|
10
|
+
private writeDataObject;
|
|
11
|
+
private areDiffFiles;
|
|
12
|
+
private getDiffContent;
|
|
13
|
+
private diffAutoMtaFile;
|
|
14
|
+
private addToIndex;
|
|
15
|
+
private applyDiff;
|
|
16
|
+
private removeIndex;
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export default class DataFirstUtil {
|
|
2
|
+
private projectImpl;
|
|
3
|
+
constructor(projectImpl: any);
|
|
4
|
+
parseCSVFile(path: string, absolutePath?: boolean): Promise<any>;
|
|
5
|
+
parseXMLFile(path: string, absolutePath?: boolean): Promise<any>;
|
|
6
|
+
setMainEntity(data: any, mainEntityName?: string): void;
|
|
7
|
+
private processDataTypes;
|
|
8
|
+
private processValues;
|
|
9
|
+
private normalizeValues;
|
|
10
|
+
private setKeyColumn;
|
|
11
|
+
private alignAssociationProps;
|
|
12
|
+
private propsNeedAligned;
|
|
13
|
+
private getJsDataType;
|
|
14
|
+
private getExcelDataType;
|
|
15
|
+
private checkIfUUIDColumn;
|
|
16
|
+
private isId;
|
|
17
|
+
}
|
|
@@ -85,7 +85,10 @@ export default interface ProjectApi {
|
|
|
85
85
|
ApplicationLogURL?: string;
|
|
86
86
|
} | undefined>;
|
|
87
87
|
/**
|
|
88
|
-
* Read and parse data file (csv|xml)
|
|
88
|
+
* Read and parse a data file (csv|xml), or generate the main entity for a data model
|
|
89
|
+
* @param data
|
|
90
|
+
* @param mainEntityName
|
|
91
|
+
* @param logger
|
|
89
92
|
*/
|
|
90
|
-
|
|
93
|
+
getDataInfo(data: any, mainEntityName?: string, logger?: IChildLogger): Promise<any>;
|
|
91
94
|
}
|
|
@@ -66,8 +66,5 @@ export default class ProjectImpl implements ProjectApi {
|
|
|
66
66
|
ApplicationLogURL?: string;
|
|
67
67
|
} | undefined>;
|
|
68
68
|
invalidate_cachedLaunchURL(): Promise<void>;
|
|
69
|
-
|
|
70
|
-
private parseCSVFile;
|
|
71
|
-
private parseXMLFile;
|
|
72
|
-
private processValues;
|
|
69
|
+
getDataInfo(data: any, mainEntityName?: string, logger?: IChildLogger): Promise<any>;
|
|
73
70
|
}
|
|
Binary file
|