bruce-models 7.1.60 → 7.1.61
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/dist/bruce-models.es5.js +33 -1
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +33 -1
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/entity/entity-type.js +32 -0
- package/dist/lib/entity/entity-type.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/entity/entity-type.d.ts +74 -0
- package/package.json +1 -1
package/dist/bruce-models.umd.js
CHANGED
|
@@ -5446,6 +5446,38 @@
|
|
|
5446
5446
|
});
|
|
5447
5447
|
}
|
|
5448
5448
|
EntityType.SuggestDataSchemaByPrompt = SuggestDataSchemaByPrompt;
|
|
5449
|
+
/**
|
|
5450
|
+
* Suggests one unified target Data Schema and source-to-target Data Mappings for multiple Entity Types.
|
|
5451
|
+
* This calls: POST v1/entityType/DataSchema/SuggestUnification
|
|
5452
|
+
*/
|
|
5453
|
+
function SuggestUnifiedDataSchemaAndMapping(params) {
|
|
5454
|
+
var _a;
|
|
5455
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5456
|
+
let { api, request, req } = params;
|
|
5457
|
+
if (!((_a = request === null || request === void 0 ? void 0 : request["EntityType.ID"]) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
5458
|
+
throw ("EntityType.ID is required.");
|
|
5459
|
+
}
|
|
5460
|
+
if (!api) {
|
|
5461
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
5462
|
+
}
|
|
5463
|
+
const res = yield api.POST("v1/entityType/DataSchema/SuggestUnification", request, req ? exports.Api.PrepReqParams(req) : undefined);
|
|
5464
|
+
return ParseSuggestUnifiedDataSchemaAndMappingResponse(res);
|
|
5465
|
+
});
|
|
5466
|
+
}
|
|
5467
|
+
EntityType.SuggestUnifiedDataSchemaAndMapping = SuggestUnifiedDataSchemaAndMapping;
|
|
5468
|
+
/**
|
|
5469
|
+
* Parses the response from SuggestUnifiedDataSchemaAndMapping.
|
|
5470
|
+
*/
|
|
5471
|
+
function ParseSuggestUnifiedDataSchemaAndMappingResponse(response) {
|
|
5472
|
+
const parsed = (response === null || response === void 0 ? void 0 : response.Result) != null ? response.Result : response;
|
|
5473
|
+
return {
|
|
5474
|
+
entityTypeDefinitions: parsed === null || parsed === void 0 ? void 0 : parsed.EntityTypeDefinitions,
|
|
5475
|
+
targetDataSchema: parsed === null || parsed === void 0 ? void 0 : parsed.TargetDataSchema,
|
|
5476
|
+
dataMappingSuggestion: parsed === null || parsed === void 0 ? void 0 : parsed.DataMappingSuggestion,
|
|
5477
|
+
raw: response
|
|
5478
|
+
};
|
|
5479
|
+
}
|
|
5480
|
+
EntityType.ParseSuggestUnifiedDataSchemaAndMappingResponse = ParseSuggestUnifiedDataSchemaAndMappingResponse;
|
|
5449
5481
|
/**
|
|
5450
5482
|
* Exports Entity Type ontology data.
|
|
5451
5483
|
* This calls: POST entityType/ontology/export
|
|
@@ -18959,7 +18991,7 @@
|
|
|
18959
18991
|
})(exports.UrlUtils || (exports.UrlUtils = {}));
|
|
18960
18992
|
|
|
18961
18993
|
// This is updated with the package.json version on build.
|
|
18962
|
-
const VERSION = "7.1.
|
|
18994
|
+
const VERSION = "7.1.61";
|
|
18963
18995
|
|
|
18964
18996
|
exports.VERSION = VERSION;
|
|
18965
18997
|
exports.AbstractApi = AbstractApi;
|