const { items } = await client.entityMatching.list({ filter: { name: 'model123' }});
const response = await client.entityMatching.predict({
externalId: 'model123',
sources: [{externalId: 'asset1', name: 'asset1'}, {externalId: 'asset2', name: 'asset2'}],
targets: [{externalId: 'ts1', name: 'ts1'}, {externalId: 'ts2', name: 'ts2'}],
});
const { status, items } = await client.entityMatching.predictResult(12345678);
await client.entityMatching.refit({
newExternalId: 'newModel123',
sources: [{externalId: 'asset1', name: 'asset1'}, {externalId: 'asset2', name: 'asset2'}],
targets: [{externalId: 'ts1', name: 'ts1'}, {externalId: 'ts2', name: 'ts2'}],
externalId: 'model123',
trueMatches: [{sourceExternalId: 'asset1', targetExternalId: 'ts1'}]
});
const [result] = await client.entityMatching.retrieve([{ externalId: 'model123' }]);
const [updated] = await client.entityMatching.update([{
externalId: 'model123',
update: { description: { set: 'ΓΈ' }}
}]);
Create entity matcher
const result = await client.entityMatching.create({ sources: [{externalId: 'asset1', name: 'asset1'}, {externalId: 'asset2', name: 'asset2'}], targets: [{externalId: 'ts1', name: 'ts1'}, {externalId: 'ts2', name: 'ts2'}], externalId: 'model123', name: 'model123', });