bruce-models 7.1.60 → 7.1.62

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.
@@ -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
@@ -12061,6 +12093,9 @@
12061
12093
  "coordinates": {
12062
12094
  "Entity.ID": entityId
12063
12095
  }
12096
+ },
12097
+ "transform": {
12098
+ "scale": params.scale || 1
12064
12099
  }
12065
12100
  },
12066
12101
  "test": params.test
@@ -18959,7 +18994,7 @@
18959
18994
  })(exports.UrlUtils || (exports.UrlUtils = {}));
18960
18995
 
18961
18996
  // This is updated with the package.json version on build.
18962
- const VERSION = "7.1.60";
18997
+ const VERSION = "7.1.62";
18963
18998
 
18964
18999
  exports.VERSION = VERSION;
18965
19000
  exports.AbstractApi = AbstractApi;