@contrail/flexplm 1.0.11 → 1.0.13
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/flexplm-request.d.ts +3 -0
- package/lib/flexplm-request.js +34 -0
- package/lib/flexplm-utils.d.ts +5 -0
- package/lib/flexplm-utils.js +33 -0
- package/lib/index.d.ts +12 -0
- package/lib/index.js +28 -0
- package/lib/process-entity/process-entity.d.ts +26 -0
- package/lib/process-entity/process-entity.js +141 -0
- package/lib/util/config-defaults.d.ts +6 -0
- package/lib/util/config-defaults.js +71 -0
- package/lib/util/data-converter.d.ts +22 -0
- package/lib/util/data-converter.js +318 -0
- package/lib/util/federation.d.ts +15 -0
- package/lib/util/federation.js +149 -0
- package/lib/util/flexplm-connect.d.ts +16 -0
- package/lib/util/flexplm-connect.js +130 -0
- package/lib/util/interfaces.d.ts +91 -0
- package/lib/util/interfaces.js +2 -0
- package/lib/util/logger-config.d.ts +1 -0
- package/lib/util/logger-config.js +26 -0
- package/lib/util/map-utils.d.ts +3 -0
- package/lib/util/map-utils.js +20 -0
- package/lib/util/mockData.d.ts +39 -0
- package/lib/util/mockData.js +100 -0
- package/lib/util/thumbnail-util.d.ts +15 -0
- package/lib/util/thumbnail-util.js +112 -0
- package/lib/util/type-utils.d.ts +12 -0
- package/lib/util/type-utils.js +101 -0
- package/package.json +1 -1
- package/lib/package.json +0 -46
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.FlexPLMRequest = void 0;
|
|
7
|
+
const axios_1 = __importDefault(require("axios"));
|
|
8
|
+
const BASE_URL = 'https://PP-2006031951wo.portal.ptc.io/Windchill/servlet/rest/cdee';
|
|
9
|
+
const BASE_CONFIG = {
|
|
10
|
+
method: 'POST',
|
|
11
|
+
headers: {
|
|
12
|
+
'Accept': 'application/json',
|
|
13
|
+
'Content-Type': 'application/json',
|
|
14
|
+
'CSRF_NONCE': '2OaLp+0dWNBtrkTwtdDC491zaacu6Hykvqi/lpl6bZgJ/QXBrK/B1J5FErMkmAmktr/I3thcbO1Xn3HJ7Ne/l9kpaedUmn7H75Xey4ZbNLsenW+anM3vxIZ7ELosk3k=',
|
|
15
|
+
'Authorization': 'Basic d2NhZG1pbjpSZXRhaWwyMDIwLQ==',
|
|
16
|
+
'Cookie': 'JSESSIONID=36D5B3C74C1F963C6C73E9AF5B6BDA78.tomcat1; JSESSIONID=B8090C802D8548EA773C97F5886FAB79.tomcat1',
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
class FlexPLMRequest {
|
|
20
|
+
static async request(path, data) {
|
|
21
|
+
const config = Object.assign({}, BASE_CONFIG);
|
|
22
|
+
config.url = BASE_URL + path;
|
|
23
|
+
config.data = data;
|
|
24
|
+
try {
|
|
25
|
+
const resp = await (0, axios_1.default)(config);
|
|
26
|
+
return Promise.resolve(resp.data);
|
|
27
|
+
}
|
|
28
|
+
catch (error) {
|
|
29
|
+
console.error(`${FlexPLMRequest} error: ${error.message}`);
|
|
30
|
+
return Promise.resolve(null);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.FlexPLMRequest = FlexPLMRequest;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FlexPLMUtils = void 0;
|
|
4
|
+
class FlexPLMUtils {
|
|
5
|
+
static computeLevelFromPath(path) {
|
|
6
|
+
return (path.match(/:/g) || []).length + 1;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
exports.FlexPLMUtils = FlexPLMUtils;
|
|
10
|
+
FlexPLMUtils.convertTypePath = (path) => {
|
|
11
|
+
if (!path) {
|
|
12
|
+
return null;
|
|
13
|
+
}
|
|
14
|
+
let newPath = path;
|
|
15
|
+
while (newPath.indexOf('\\') > 1) {
|
|
16
|
+
newPath = newPath.replace('\\', ':');
|
|
17
|
+
}
|
|
18
|
+
while (newPath.indexOf('[') > 1) {
|
|
19
|
+
newPath = newPath.replace('[', '*');
|
|
20
|
+
}
|
|
21
|
+
while (newPath.indexOf(']') > 1) {
|
|
22
|
+
newPath = newPath.replace(']', '*');
|
|
23
|
+
}
|
|
24
|
+
while (newPath.indexOf(' ') > 1) {
|
|
25
|
+
newPath = newPath.replace(' ', '_');
|
|
26
|
+
}
|
|
27
|
+
newPath = newPath.toLowerCase();
|
|
28
|
+
return newPath;
|
|
29
|
+
};
|
|
30
|
+
FlexPLMUtils.getParentTypePath = (path) => {
|
|
31
|
+
const newPath = FlexPLMUtils.convertTypePath(path);
|
|
32
|
+
return (!newPath || newPath.indexOf(':') < 0) ? null : newPath.substring(0, newPath.lastIndexOf(':'));
|
|
33
|
+
};
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from './flexplm-request';
|
|
2
|
+
export * from './flexplm-utils';
|
|
3
|
+
export * from './util/config-defaults';
|
|
4
|
+
export * from './util/data-converter';
|
|
5
|
+
export * from './util/federation';
|
|
6
|
+
export * from './util/flexplm-connect';
|
|
7
|
+
export * from './util/interfaces';
|
|
8
|
+
export * from './util/logger-config';
|
|
9
|
+
export * from './util/thumbnail-util';
|
|
10
|
+
export * from './util/type-utils';
|
|
11
|
+
export * from './util/map-utils';
|
|
12
|
+
export * from './process-entity/process-entity';
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./flexplm-request"), exports);
|
|
18
|
+
__exportStar(require("./flexplm-utils"), exports);
|
|
19
|
+
__exportStar(require("./util/config-defaults"), exports);
|
|
20
|
+
__exportStar(require("./util/data-converter"), exports);
|
|
21
|
+
__exportStar(require("./util/federation"), exports);
|
|
22
|
+
__exportStar(require("./util/flexplm-connect"), exports);
|
|
23
|
+
__exportStar(require("./util/interfaces"), exports);
|
|
24
|
+
__exportStar(require("./util/logger-config"), exports);
|
|
25
|
+
__exportStar(require("./util/thumbnail-util"), exports);
|
|
26
|
+
__exportStar(require("./util/type-utils"), exports);
|
|
27
|
+
__exportStar(require("./util/map-utils"), exports);
|
|
28
|
+
__exportStar(require("./process-entity/process-entity"), exports);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { FCConfig, EntityPayloadType } from '../util/interfaces';
|
|
2
|
+
import { DataConverter } from '../util/data-converter';
|
|
3
|
+
import { TypeUtils } from '../util/type-utils';
|
|
4
|
+
import { MapFileUtil } from '@contrail/transform-data';
|
|
5
|
+
export declare abstract class ProcessBaseEntity {
|
|
6
|
+
protected config: FCConfig;
|
|
7
|
+
protected dc: DataConverter;
|
|
8
|
+
protected mapFileUtil: MapFileUtil;
|
|
9
|
+
protected baseType: string;
|
|
10
|
+
protected typeUtil: TypeUtils;
|
|
11
|
+
protected transformMapFile: string;
|
|
12
|
+
protected entities: any;
|
|
13
|
+
constructor(config: FCConfig, dc: DataConverter, mapFileUtil: MapFileUtil, baseType: string);
|
|
14
|
+
inbound(event: EntityPayloadType): Promise<any>;
|
|
15
|
+
handleIncomingUpdate(event: EntityPayloadType): Promise<any>;
|
|
16
|
+
handleIncomingDelete(event: any): Promise<void>;
|
|
17
|
+
getTransformedData(event: any): Promise<any>;
|
|
18
|
+
getUpdatesForEntity(entity: any, inboundData: any): Promise<object>;
|
|
19
|
+
getVibeOwningKeys(entity: any): Promise<any[]>;
|
|
20
|
+
updateEntity(entityName: any, entity: any, diffs: any): Promise<any>;
|
|
21
|
+
protected abstract getIncomingEntity(event: any, inboundData: any): any;
|
|
22
|
+
outbound(event: any): Promise<void | import("../util/interfaces").FlexPLMResponseData>;
|
|
23
|
+
handleOutgoingUpsert(entityType: any, event: any): Promise<import("../util/interfaces").FlexPLMResponseData>;
|
|
24
|
+
handleOutgoingDelete(entityType: any, event: any): Promise<void>;
|
|
25
|
+
protected abstract getOutgoingUpsertPayload(entityType: any, event: any): Promise<EntityPayloadType>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProcessBaseEntity = void 0;
|
|
4
|
+
const type_utils_1 = require("../util/type-utils");
|
|
5
|
+
const flexplm_connect_1 = require("../util/flexplm-connect");
|
|
6
|
+
const map_utils_1 = require("../util/map-utils");
|
|
7
|
+
const sdk_1 = require("@contrail/sdk");
|
|
8
|
+
const UNSUPPORTED_TYPE = 'Unsupported eventType.';
|
|
9
|
+
class ProcessBaseEntity {
|
|
10
|
+
constructor(config, dc, mapFileUtil, baseType) {
|
|
11
|
+
this.config = config;
|
|
12
|
+
this.dc = dc;
|
|
13
|
+
this.mapFileUtil = mapFileUtil;
|
|
14
|
+
this.baseType = baseType;
|
|
15
|
+
this.typeUtil = new type_utils_1.TypeUtils();
|
|
16
|
+
this.transformMapFile = this.config['transformMapFile'];
|
|
17
|
+
this.entities = new sdk_1.Entities();
|
|
18
|
+
}
|
|
19
|
+
async inbound(event) {
|
|
20
|
+
const eventType = event.eventType;
|
|
21
|
+
console.log(`inbound entity: ${eventType}:${event.objectClass}`);
|
|
22
|
+
switch (eventType) {
|
|
23
|
+
case 'PERSIST':
|
|
24
|
+
return await this.handleIncomingUpdate(event);
|
|
25
|
+
case 'DELETE':
|
|
26
|
+
return await this.handleIncomingDelete(event);
|
|
27
|
+
default:
|
|
28
|
+
console.log(UNSUPPORTED_TYPE);
|
|
29
|
+
return {
|
|
30
|
+
status: 500,
|
|
31
|
+
data: { UNSUPPORTED_TYPE }
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
async handleIncomingUpdate(event) {
|
|
36
|
+
const inboundData = await this.getTransformedData(event);
|
|
37
|
+
const entity = await this.getIncomingEntity(event, inboundData);
|
|
38
|
+
if (!entity) {
|
|
39
|
+
const message = 'No entity found';
|
|
40
|
+
console.debug(message);
|
|
41
|
+
return {
|
|
42
|
+
status: 404,
|
|
43
|
+
data: { message }
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
else if (Object.keys(entity).length === 2 && entity?.status && entity?.data) {
|
|
47
|
+
return entity;
|
|
48
|
+
}
|
|
49
|
+
const diffs = await this.getUpdatesForEntity(entity, inboundData);
|
|
50
|
+
if (Object.getOwnPropertyNames(diffs).length == 0) {
|
|
51
|
+
const message = 'No Changes to persist for entity: ' + entity['id'];
|
|
52
|
+
console.log(message);
|
|
53
|
+
return {
|
|
54
|
+
status: 200,
|
|
55
|
+
data: { message }
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
return this.updateEntity(this.baseType, entity, diffs);
|
|
59
|
+
}
|
|
60
|
+
async handleIncomingDelete(event) {
|
|
61
|
+
console.warn('delete is not configured', event);
|
|
62
|
+
}
|
|
63
|
+
async getTransformedData(event) {
|
|
64
|
+
let inboundData = event.data;
|
|
65
|
+
console.debug('inboundData: ' + JSON.stringify(inboundData));
|
|
66
|
+
const objectClass = event.objectClass;
|
|
67
|
+
inboundData = await map_utils_1.MapUtil.applyTransformMap(this.transformMapFile, this.mapFileUtil, inboundData, objectClass, 'flex2vibe');
|
|
68
|
+
console.debug('Transformed-inboundData: ' + JSON.stringify(inboundData));
|
|
69
|
+
return inboundData;
|
|
70
|
+
}
|
|
71
|
+
async getUpdatesForEntity(entity, inboundData) {
|
|
72
|
+
const vibeOwningKeys = await this.getVibeOwningKeys(entity);
|
|
73
|
+
let updates = {
|
|
74
|
+
typeId: entity.typeId,
|
|
75
|
+
roles: entity.roles,
|
|
76
|
+
id: entity.id,
|
|
77
|
+
};
|
|
78
|
+
updates = await this.dc.setEntityValues(entity, inboundData, vibeOwningKeys);
|
|
79
|
+
for (const prop of ['typeId', 'roles', 'id']) {
|
|
80
|
+
delete updates[prop];
|
|
81
|
+
}
|
|
82
|
+
return this.dc.getPersistableChanges(entity, updates);
|
|
83
|
+
}
|
|
84
|
+
async getVibeOwningKeys(entity) {
|
|
85
|
+
let vibeOwningKeys = [];
|
|
86
|
+
if (this.transformMapFile) {
|
|
87
|
+
const wholeMap = await this.mapFileUtil.getMapFile(this.transformMapFile);
|
|
88
|
+
const objClass = this.dc.getMappingClass(entity, wholeMap);
|
|
89
|
+
if (objClass && wholeMap && wholeMap[objClass] && wholeMap[objClass]['vibeOwningKeys']) {
|
|
90
|
+
vibeOwningKeys = wholeMap[objClass]['vibeOwningKeys'];
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
console.debug('vibeOwningKeys: ' + vibeOwningKeys);
|
|
94
|
+
return vibeOwningKeys;
|
|
95
|
+
}
|
|
96
|
+
async updateEntity(entityName, entity, diffs) {
|
|
97
|
+
const options = {
|
|
98
|
+
entityName: entityName,
|
|
99
|
+
id: entity['id'],
|
|
100
|
+
object: diffs
|
|
101
|
+
};
|
|
102
|
+
console.log('options: ' + JSON.stringify(options));
|
|
103
|
+
return await new sdk_1.Entities().update(options);
|
|
104
|
+
}
|
|
105
|
+
async outbound(event) {
|
|
106
|
+
const entityType = event.entityType;
|
|
107
|
+
const eventType = event.eventType;
|
|
108
|
+
const entityId = event.id;
|
|
109
|
+
console.log(`outbound: ${entityType}:${entityId}`);
|
|
110
|
+
switch (eventType) {
|
|
111
|
+
case 'update':
|
|
112
|
+
case 'create':
|
|
113
|
+
return await this.handleOutgoingUpsert(entityType, event);
|
|
114
|
+
case 'delete':
|
|
115
|
+
return await this.handleOutgoingDelete(entityType, event);
|
|
116
|
+
default:
|
|
117
|
+
console.log(UNSUPPORTED_TYPE);
|
|
118
|
+
return {
|
|
119
|
+
status: 500,
|
|
120
|
+
data: { UNSUPPORTED_TYPE }
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
async handleOutgoingUpsert(entityType, event) {
|
|
125
|
+
const objectClass = this.typeUtil.getEventObjectClass(entityType, event.newData);
|
|
126
|
+
if (!objectClass) {
|
|
127
|
+
const message = 'ObjectClass must have a value.';
|
|
128
|
+
console.log(message);
|
|
129
|
+
return {
|
|
130
|
+
status: 500,
|
|
131
|
+
data: { message }
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
const payload = await this.getOutgoingUpsertPayload(entityType, event);
|
|
135
|
+
return await new flexplm_connect_1.FlexPLMConnect(this.config).sendToFlexPLM(payload);
|
|
136
|
+
}
|
|
137
|
+
async handleOutgoingDelete(entityType, event) {
|
|
138
|
+
console.warn('delete is not configured', entityType, event.oldData);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
exports.ProcessBaseEntity = ProcessBaseEntity;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConfigDefaults = void 0;
|
|
4
|
+
const sdk_1 = require("@contrail/sdk");
|
|
5
|
+
const util_1 = require("@contrail/util");
|
|
6
|
+
class ConfigDefaults {
|
|
7
|
+
static async setConfigDefaults(config) {
|
|
8
|
+
if (!config.apiHost || !config.userName || !config.password) {
|
|
9
|
+
throw new Error(ConfigDefaults.NEED_CONFIG_VALUES);
|
|
10
|
+
}
|
|
11
|
+
if (config?.itemPreDevelopmentLifecycleStages && !(config?.itemPreDevelopmentLifecycleStages instanceof Array)) {
|
|
12
|
+
config.itemPreDevelopmentLifecycleStages = config.itemPreDevelopmentLifecycleStages.split(',');
|
|
13
|
+
}
|
|
14
|
+
const defaultConfig = {
|
|
15
|
+
urlContext: '/Windchill',
|
|
16
|
+
sendMode: {
|
|
17
|
+
ASYNC_PUBLISH_SEASON: 'vibeiqfile'
|
|
18
|
+
},
|
|
19
|
+
itemPreDevelopmentLifecycleStages: ['concept'],
|
|
20
|
+
identifierAtts: {
|
|
21
|
+
LCSProduct: ['itemNumber'],
|
|
22
|
+
LCSSeason: ['flexPLMSeasonName'],
|
|
23
|
+
LCSSKU: ['itemNumber']
|
|
24
|
+
},
|
|
25
|
+
csrfEndpoint: '/servlet/rest/security/csrf',
|
|
26
|
+
vibeEventEndpoint: '/rfa/vibeiq/vibeEvents',
|
|
27
|
+
payloadDefaultAsArray: true
|
|
28
|
+
};
|
|
29
|
+
const configArr = [defaultConfig];
|
|
30
|
+
if (config.configFile) {
|
|
31
|
+
const fileConfig = await ConfigDefaults.getConfigFile(config.configFile);
|
|
32
|
+
configArr.push(fileConfig);
|
|
33
|
+
}
|
|
34
|
+
configArr.push(config);
|
|
35
|
+
const outputConfig = util_1.ObjectUtil.mergeDeep({}, ...configArr);
|
|
36
|
+
const uName = outputConfig.userName;
|
|
37
|
+
const pass = outputConfig.password;
|
|
38
|
+
outputConfig.userName = () => uName;
|
|
39
|
+
outputConfig.password = () => pass;
|
|
40
|
+
outputConfig['OOBvibeEventEndpoint'] = '/rfa/vibeiq/vibeEvents';
|
|
41
|
+
console.log('outputConfig: ' + JSON.stringify(outputConfig));
|
|
42
|
+
return outputConfig;
|
|
43
|
+
}
|
|
44
|
+
static async getConfigFile(fileId) {
|
|
45
|
+
try {
|
|
46
|
+
const options = {
|
|
47
|
+
entityName: 'file',
|
|
48
|
+
id: fileId,
|
|
49
|
+
};
|
|
50
|
+
const file = await new sdk_1.Entities().get(options);
|
|
51
|
+
if (!file) {
|
|
52
|
+
console.log('failed to find file with id: ' + fileId);
|
|
53
|
+
return {};
|
|
54
|
+
}
|
|
55
|
+
const downloadUrl = file['downloadUrl'];
|
|
56
|
+
if (!downloadUrl) {
|
|
57
|
+
console.log('file didnt have downloadUrl. fileId: ' + fileId);
|
|
58
|
+
return {};
|
|
59
|
+
}
|
|
60
|
+
const response = await fetch(downloadUrl);
|
|
61
|
+
const config = await response.json();
|
|
62
|
+
return config ? config : {};
|
|
63
|
+
}
|
|
64
|
+
catch (e) {
|
|
65
|
+
console.log('Error getting config file: ' + fileId + '- ' + e.message);
|
|
66
|
+
return {};
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
exports.ConfigDefaults = ConfigDefaults;
|
|
71
|
+
ConfigDefaults.NEED_CONFIG_VALUES = 'To connect to FlexPLM all these APP values need to be set apiHost, userName, and password';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { FCConfig } from './interfaces';
|
|
2
|
+
import { MapFileUtil } from '@contrail/transform-data';
|
|
3
|
+
export declare class DataConverter {
|
|
4
|
+
private config;
|
|
5
|
+
private mapFileUtil;
|
|
6
|
+
private typeUtils;
|
|
7
|
+
private transformMapFile;
|
|
8
|
+
private useDisplayForEnumerationMatching;
|
|
9
|
+
private objRefCache;
|
|
10
|
+
constructor(config: FCConfig, mapFileUtil: MapFileUtil);
|
|
11
|
+
getFlexPLMObjectDataFromEvent(event: any, dataToSkip: string[]): Promise<{}>;
|
|
12
|
+
getFlexPLMObjectData(newData: any, dataToSkip: string[], expandObjRef: boolean): Promise<{}>;
|
|
13
|
+
getFlexPLMValue(prop: any, newData: any, expandObjRef: boolean): Promise<any>;
|
|
14
|
+
getEnumerationValue(prop: any, nd: any): any;
|
|
15
|
+
getObjectReferenceValue(prop: any, newData: any, expandObjRef?: boolean): Promise<any>;
|
|
16
|
+
getMappingClass(entity: object, mapping: any): string;
|
|
17
|
+
setEntityValues(entity: any, data: any, keysToSkip?: string[]): Promise<any>;
|
|
18
|
+
getEntityValues(objectClass: string, data: any, keysToSkip?: string[]): Promise<{}>;
|
|
19
|
+
getEntityValue(prop: any, data: any): Promise<any>;
|
|
20
|
+
setEnumerationKeys(prop: any, nd: any, matchByDisplay: any): any;
|
|
21
|
+
getPersistableChanges(entity: object, changes: object): object;
|
|
22
|
+
}
|