bruce-models 7.1.81 → 7.1.82

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.
@@ -11004,6 +11004,26 @@ var DataLab;
11004
11004
  });
11005
11005
  }
11006
11006
  DataLab.Run = Run;
11007
+ /**
11008
+ * Runs one or more DataLab actions.
11009
+ * This calls: POST v3/datalab/runAction
11010
+ */
11011
+ function RunAction(params) {
11012
+ return __awaiter(this, void 0, void 0, function* () {
11013
+ let { api, body, req } = params;
11014
+ if (!body) {
11015
+ throw new Error("body is required.");
11016
+ }
11017
+ if (!api) {
11018
+ api = ENVIRONMENT.Api().GetBruceApi();
11019
+ }
11020
+ const res = yield api.POST("v3/datalab/runAction", body, Api.PrepReqParams(req));
11021
+ return {
11022
+ action: res
11023
+ };
11024
+ });
11025
+ }
11026
+ DataLab.RunAction = RunAction;
11007
11027
  })(DataLab || (DataLab = {}));
11008
11028
 
11009
11029
  var DataLabGroup;
@@ -14954,6 +14974,71 @@ var ExportBrz;
14954
14974
  ExportBrz.Export = Export;
14955
14975
  })(ExportBrz || (ExportBrz = {}));
14956
14976
 
14977
+ var ExportCsv;
14978
+ (function (ExportCsv) {
14979
+ /**
14980
+ * Exports CSV for Entities selected by Filter.
14981
+ * This calls: GET entities/ExportCSV
14982
+ */
14983
+ function Export(params) {
14984
+ return __awaiter(this, void 0, void 0, function* () {
14985
+ let { api, fileExport, req } = params;
14986
+ if (!api) {
14987
+ api = ENVIRONMENT.Api().GetBruceApi();
14988
+ }
14989
+ if (!(fileExport === null || fileExport === void 0 ? void 0 : fileExport.BruceEntityType)) {
14990
+ throw ("fileExport.BruceEntityType is required.");
14991
+ }
14992
+ const urlParams = new URLSearchParams();
14993
+ urlParams.append("BruceEntityType", fileExport.BruceEntityType);
14994
+ appendStringParam(urlParams, "OrderBy", fileExport.OrderBy);
14995
+ appendStringParam(urlParams, "SortOrder", fileExport.SortOrder);
14996
+ appendStringParam(urlParams, "Filter", fileExport.Filter);
14997
+ appendStringParam(urlParams, "LODType", fileExport.LODType);
14998
+ if (fileExport.ZIP != null) {
14999
+ urlParams.append("ZIP", String(fileExport.ZIP));
15000
+ }
15001
+ if (fileExport.ColumnSettings) {
15002
+ urlParams.append("ColumnSettings", JSON.stringify(fileExport.ColumnSettings));
15003
+ }
15004
+ return api.GET(`entities/ExportCSV?${urlParams.toString()}`, Api.PrepReqParams(req));
15005
+ });
15006
+ }
15007
+ ExportCsv.Export = Export;
15008
+ /**
15009
+ * Exports CSV for a provided list of Entity IDs.
15010
+ * This calls: POST entities/ExportCSV/{entityType_ID}
15011
+ */
15012
+ function ExportEntities(params) {
15013
+ var _a;
15014
+ return __awaiter(this, void 0, void 0, function* () {
15015
+ let { api, entityTypeId, fileExport, zip, req } = params;
15016
+ if (!api) {
15017
+ api = ENVIRONMENT.Api().GetBruceApi();
15018
+ }
15019
+ if (!entityTypeId) {
15020
+ throw ("entityTypeId is required.");
15021
+ }
15022
+ if (!((_a = fileExport === null || fileExport === void 0 ? void 0 : fileExport.EntityIDs) === null || _a === void 0 ? void 0 : _a.length)) {
15023
+ throw ("fileExport.EntityIDs is required and must be a non-empty list.");
15024
+ }
15025
+ let url = `entities/ExportCSV/${Api.Encode(entityTypeId)}`;
15026
+ if (zip != null) {
15027
+ const urlParams = new URLSearchParams();
15028
+ urlParams.append("ZIP", String(zip));
15029
+ url += `?${urlParams.toString()}`;
15030
+ }
15031
+ return api.POST(url, fileExport, Api.PrepReqParams(req));
15032
+ });
15033
+ }
15034
+ ExportCsv.ExportEntities = ExportEntities;
15035
+ function appendStringParam(urlParams, key, value) {
15036
+ if (value != null && value !== "") {
15037
+ urlParams.append(key, String(value));
15038
+ }
15039
+ }
15040
+ })(ExportCsv || (ExportCsv = {}));
15041
+
14957
15042
  var ExportUsd;
14958
15043
  (function (ExportUsd) {
14959
15044
  function Export(params) {
@@ -20617,7 +20702,7 @@ var UrlUtils;
20617
20702
  })(UrlUtils || (UrlUtils = {}));
20618
20703
 
20619
20704
  // This is updated with the package.json version on build.
20620
- const VERSION = "7.1.81";
20705
+ const VERSION = "7.1.82";
20621
20706
 
20622
- 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, EntityTypeRelation, EntityTypeTrigger, Ontology, OntologyDocument, ENVIRONMENT, ExportBrz, ExportUsd, Hexbin, ImportAssembly, ImportCad, ImportCsv, ImportGeoJson, ImportJson, ImportKml, ImportLcc, ImportedFile, Uploader, Markup, UIMarkup, 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 };
20707
+ 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, EntityTypeRelation, EntityTypeTrigger, Ontology, OntologyDocument, ENVIRONMENT, ExportBrz, ExportCsv, ExportUsd, Hexbin, ImportAssembly, ImportCad, ImportCsv, ImportGeoJson, ImportJson, ImportKml, ImportLcc, ImportedFile, Uploader, Markup, UIMarkup, 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 };
20623
20708
  //# sourceMappingURL=bruce-models.es5.js.map