@contrail/flexplm 1.1.35 → 1.1.36
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/lib/util/map-utils.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MapFileUtil } from '@contrail/transform-data';
|
|
2
2
|
export declare class MapUtil {
|
|
3
|
-
static applyTransformMap(transformMapFile: any, mapFileUtil: any, data: any, mapSectionKey: string, direction: string): Promise<any>;
|
|
3
|
+
static applyTransformMap(transformMapFile: any, mapFileUtil: any, data: any, mapSectionKey: string, direction: string, transformTaskOrderKey?: string): Promise<any>;
|
|
4
4
|
static getMapKey(transformMapFile: any, mapFileUtil: MapFileUtil, data: any, type: string, direction: string): Promise<string>;
|
|
5
5
|
static getFullMapSection(transformMapFile: string, mapFileUtil: MapFileUtil, mapSectionKey: string): Promise<any>;
|
|
6
6
|
}
|
package/lib/util/map-utils.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MapUtil = void 0;
|
|
4
4
|
class MapUtil {
|
|
5
|
-
static async applyTransformMap(transformMapFile, mapFileUtil, data, mapSectionKey, direction) {
|
|
6
|
-
return await mapFileUtil.applyTransformMap(transformMapFile, data, mapSectionKey, direction);
|
|
5
|
+
static async applyTransformMap(transformMapFile, mapFileUtil, data, mapSectionKey, direction, transformTaskOrderKey = 'transformOrder') {
|
|
6
|
+
return await mapFileUtil.applyTransformMap(transformMapFile, data, mapSectionKey, direction, transformTaskOrderKey);
|
|
7
7
|
}
|
|
8
8
|
static async getMapKey(transformMapFile, mapFileUtil, data, type, direction) {
|
|
9
9
|
return await mapFileUtil.getMapKey(transformMapFile, data, type, direction);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contrail/flexplm",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.36",
|
|
4
4
|
"description": "Library used for integration with flexplm.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@contrail/app-framework": "^1.2.4",
|
|
42
42
|
"@contrail/sdk": "^1.3.7",
|
|
43
|
-
"@contrail/transform-data": "^1.0.
|
|
43
|
+
"@contrail/transform-data": "^1.0.15",
|
|
44
44
|
"axios": "^1.4.0",
|
|
45
45
|
"p-limit": "^3.1.0"
|
|
46
46
|
}
|
package/src/util/map-utils.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MapFileUtil
|
|
1
|
+
import { MapFileUtil } from '@contrail/transform-data';
|
|
2
2
|
export class MapUtil {
|
|
3
3
|
/** Transforms the data, assumes mapSectionKey has been correctly determined.
|
|
4
4
|
*
|
|
@@ -7,10 +7,11 @@ export class MapUtil {
|
|
|
7
7
|
* @param data
|
|
8
8
|
* @param mapSectionKey key for section of map file
|
|
9
9
|
* @param direction vibe2flex or flex2vibe
|
|
10
|
+
* @param transformTaskOrderKey key for the list of tasks to be processed. default is 'transformOrder'
|
|
10
11
|
* @returns The converted data
|
|
11
12
|
*/
|
|
12
|
-
static async applyTransformMap(transformMapFile, mapFileUtil, data: any, mapSectionKey: string, direction: string) {
|
|
13
|
-
return await mapFileUtil.applyTransformMap(transformMapFile, data, mapSectionKey, direction);
|
|
13
|
+
static async applyTransformMap(transformMapFile, mapFileUtil, data: any, mapSectionKey: string, direction: string, transformTaskOrderKey: string = 'transformOrder'): Promise<any> {
|
|
14
|
+
return await mapFileUtil.applyTransformMap(transformMapFile, data, mapSectionKey, direction, transformTaskOrderKey);
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
/** Returns the mapKey based on the 'typeConversion' section of the map file.
|