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.
@@ -5518,6 +5518,38 @@ var EntityType;
5518
5518
  });
5519
5519
  }
5520
5520
  EntityType.SuggestDataSchemaByPrompt = SuggestDataSchemaByPrompt;
5521
+ /**
5522
+ * Suggests one unified target Data Schema and source-to-target Data Mappings for multiple Entity Types.
5523
+ * This calls: POST v1/entityType/DataSchema/SuggestUnification
5524
+ */
5525
+ function SuggestUnifiedDataSchemaAndMapping(params) {
5526
+ var _a;
5527
+ return __awaiter(this, void 0, void 0, function* () {
5528
+ let { api, request, req } = params;
5529
+ if (!((_a = request === null || request === void 0 ? void 0 : request["EntityType.ID"]) === null || _a === void 0 ? void 0 : _a.length)) {
5530
+ throw ("EntityType.ID is required.");
5531
+ }
5532
+ if (!api) {
5533
+ api = ENVIRONMENT.Api().GetBruceApi();
5534
+ }
5535
+ const res = yield api.POST("v1/entityType/DataSchema/SuggestUnification", request, req ? Api.PrepReqParams(req) : undefined);
5536
+ return ParseSuggestUnifiedDataSchemaAndMappingResponse(res);
5537
+ });
5538
+ }
5539
+ EntityType.SuggestUnifiedDataSchemaAndMapping = SuggestUnifiedDataSchemaAndMapping;
5540
+ /**
5541
+ * Parses the response from SuggestUnifiedDataSchemaAndMapping.
5542
+ */
5543
+ function ParseSuggestUnifiedDataSchemaAndMappingResponse(response) {
5544
+ const parsed = (response === null || response === void 0 ? void 0 : response.Result) != null ? response.Result : response;
5545
+ return {
5546
+ entityTypeDefinitions: parsed === null || parsed === void 0 ? void 0 : parsed.EntityTypeDefinitions,
5547
+ targetDataSchema: parsed === null || parsed === void 0 ? void 0 : parsed.TargetDataSchema,
5548
+ dataMappingSuggestion: parsed === null || parsed === void 0 ? void 0 : parsed.DataMappingSuggestion,
5549
+ raw: response
5550
+ };
5551
+ }
5552
+ EntityType.ParseSuggestUnifiedDataSchemaAndMappingResponse = ParseSuggestUnifiedDataSchemaAndMappingResponse;
5521
5553
  /**
5522
5554
  * Exports Entity Type ontology data.
5523
5555
  * This calls: POST entityType/ontology/export
@@ -19301,7 +19333,7 @@ var UrlUtils;
19301
19333
  })(UrlUtils || (UrlUtils = {}));
19302
19334
 
19303
19335
  // This is updated with the package.json version on build.
19304
- const VERSION = "7.1.60";
19336
+ const VERSION = "7.1.61";
19305
19337
 
19306
19338
  export { VERSION, Account, AccountAudit, AccountConcept, AccountFeatures, AccountInvite, AccountLimits, AccountTemplate, AccountType, AnnDocument, AbstractApi, Api, ApiGetters, BruceApi, GlobalApi, GuardianApi, Assembly, Calculator, ChangeSet, ClientFile, Bounds, BruceEvent, BruceVariable, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, GeoJson, Geometry, LRUCache, UTC, CustomForm, DashboardView, DataFeed, DataLab, DataLabGroup, DataSource, DataTransform, Comment, Entity, EntityAttachment, EntityAttachmentType, EntityAttribute, EntityComment, EntityCoords, EntityHistoricData, EntityLink, EntityLod, EntityLodCategory, EntityRelation, EntityRelationType, EntitySource, EntityTableView, EntityTag, EntityType, EntityTypeTrigger, ENVIRONMENT, ExportBrz, ExportUsd, ImportAssembly, ImportCad, ImportCsv, ImportGeoJson, ImportJson, ImportKml, ImportLcc, ImportedFile, Uploader, Markup, NAVIGATOR_CHAT_EVENT_ENTITY_HIGHLIGHT_APPLIED, NAVIGATOR_CHAT_EVENT_SCENE_CONTEXT_PREFETCHED, NavigatorChatClient, NavigatorMcpWebSocketClient, Plugin, ProgramKey, MenuItem, ProjectView, ProjectViewBookmark, ProjectViewBookmarkGroup, ProjectViewLegacy, ProjectViewLegacyBookmark, ProjectViewLegacyTile, ProjectViewTile, ZoomControl, Scenario, HostingLocation, MessageBroker, PendingAction, RecordChangeFeed, Style, Tileset, Tracking, Permission, Session, User, UserGroup, UserMfaMethod, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils };
19307
19339
  //# sourceMappingURL=bruce-models.es5.js.map