bruce-models 6.1.0 → 6.1.2

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.
@@ -1823,7 +1823,8 @@ var Assembly;
1823
1823
  ids: batch,
1824
1824
  parentId: params.parentId,
1825
1825
  search: params.search,
1826
- withTilesets: params.withTilesets
1826
+ withTilesets: params.withTilesets,
1827
+ rootEntityId: params.rootEntityId
1827
1828
  });
1828
1829
  assemblies.push(...result.assemblies);
1829
1830
  }
@@ -1864,6 +1865,17 @@ var Assembly;
1864
1865
  urlParams.append("PageSize", String(params.ids.length));
1865
1866
  }
1866
1867
  }
1868
+ if (params.rootEntityId != null) {
1869
+ for (let i = 0; i < params.rootEntityId.length; i++) {
1870
+ urlParams.append("RootEntityID", params.rootEntityId[i]);
1871
+ }
1872
+ if (params.pageIndex != null) {
1873
+ urlParams.append("PageIndex", String(0));
1874
+ }
1875
+ if (params.pageSize != null) {
1876
+ urlParams.append("PageSize", String(params.rootEntityId.length));
1877
+ }
1878
+ }
1867
1879
  url += "?" + urlParams.toString();
1868
1880
  const data = yield api.GET(url, Api.PrepReqParams(reqParams));
1869
1881
  const result = {};
@@ -15817,8 +15829,53 @@ var Scenario;
15817
15829
  Scenario.Delete = Delete;
15818
15830
  })(Scenario || (Scenario = {}));
15819
15831
 
15832
+ /**
15833
+ * Represents tracked content cross accounts.
15834
+ * Used so we can determine what old API requests can be removed, and what accounts are causing most server load.
15835
+ */
15836
+ var Tracking;
15837
+ (function (Tracking) {
15838
+ /**
15839
+ * Returns tracking data based on provided parameters.
15840
+ * @param params
15841
+ * @returns
15842
+ */
15843
+ function GetData(params) {
15844
+ return __awaiter(this, void 0, void 0, function* () {
15845
+ let { api, req } = params;
15846
+ if (!api) {
15847
+ api = ENVIRONMENT.Api().GetGuardianApi();
15848
+ }
15849
+ const query = new URLSearchParams();
15850
+ if (params.select) {
15851
+ query.append("Select", params.select);
15852
+ }
15853
+ if (params.cType) {
15854
+ query.append("CType", params.cType);
15855
+ }
15856
+ if (params.tCount) {
15857
+ query.append("TCount", params.tCount);
15858
+ }
15859
+ if (params.accountId) {
15860
+ query.append("Account", params.accountId);
15861
+ }
15862
+ if (params.app) {
15863
+ query.append("App", params.app);
15864
+ }
15865
+ if (params.year) {
15866
+ query.append("Year", String(params.year));
15867
+ }
15868
+ if (params.month) {
15869
+ query.append("Month", String(params.month));
15870
+ }
15871
+ return yield api.GET("tracking?" + query.toString(), Api.PrepReqParams(req));
15872
+ });
15873
+ }
15874
+ Tracking.GetData = GetData;
15875
+ })(Tracking || (Tracking = {}));
15876
+
15820
15877
  // This is updated with the package.json version on build.
15821
- const VERSION = "6.1.0";
15878
+ const VERSION = "6.1.2";
15822
15879
 
15823
- export { VERSION, Assembly, AnnDocument, CustomForm, AbstractApi, Api, BruceApi, GlobalApi, GuardianApi, ApiGetters, Calculator, Bounds, BruceEvent, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, Geometry, UTC, BruceVariable, LRUCache, GeoJson, EntityAttachmentType, EntityAttachment, EntityComment, EntityLink, EntityLod, EntityLodCategory, EntityRelationType, EntityRelation, EntitySource, EntityTag, EntityType, Entity, EntityCoords, EntityAttribute, EntityHistoricData, EntityTableView, Comment, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, ProjectViewLegacy, ProjectViewLegacyBookmark, ProjectViewBookmarkGroup, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, Account, AccountInvite, AccountFeatures, AccountLimits, AccountTemplate, AccountType, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, DataLabGroup, ImportAssembly, ImportCad, ImportCsv, ImportJson, ImportGeoJson, ImportKml, ImportedFile, ExportBrz, ExportUsd, Markup, Uploader, Plugin, ENVIRONMENT, DataSource, Scenario };
15880
+ export { VERSION, Assembly, AnnDocument, CustomForm, AbstractApi, Api, BruceApi, GlobalApi, GuardianApi, ApiGetters, Calculator, Bounds, BruceEvent, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, Geometry, UTC, BruceVariable, LRUCache, GeoJson, EntityAttachmentType, EntityAttachment, EntityComment, EntityLink, EntityLod, EntityLodCategory, EntityRelationType, EntityRelation, EntitySource, EntityTag, EntityType, Entity, EntityCoords, EntityAttribute, EntityHistoricData, EntityTableView, Comment, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, ProjectViewLegacy, ProjectViewLegacyBookmark, ProjectViewBookmarkGroup, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, Account, AccountInvite, AccountFeatures, AccountLimits, AccountTemplate, AccountType, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, DataLabGroup, ImportAssembly, ImportCad, ImportCsv, ImportJson, ImportGeoJson, ImportKml, ImportedFile, ExportBrz, ExportUsd, Markup, Uploader, Plugin, ENVIRONMENT, DataSource, Scenario, Tracking };
15824
15881
  //# sourceMappingURL=bruce-models.es5.js.map