bruce-models 4.2.5 → 4.2.7

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.
@@ -3611,6 +3611,18 @@
3611
3611
  else if (path[0] == "boundaries") {
3612
3612
  value = checkForValue(["Bruce"].concat(path));
3613
3613
  }
3614
+ else if (path[0] == "position") {
3615
+ value = checkForValue(["Bruce"].concat(path));
3616
+ }
3617
+ else if (path[0] == "worldPosition") {
3618
+ value = checkForValue(["Bruce"].concat(path));
3619
+ }
3620
+ else if (path[0] == "tilesetID") {
3621
+ value = checkForValue(["Bruce"].concat(path));
3622
+ }
3623
+ else if (path[0] == "geometryRadius") {
3624
+ value = checkForValue(["Bruce"].concat(path));
3625
+ }
3614
3626
  // Now we'll check against properties that could still be in the top-level and haven't been migrated yet.
3615
3627
  if (path[0] == "Bruce" && path.length > 1) {
3616
3628
  if (path[1] == "location") {
@@ -3625,6 +3637,18 @@
3625
3637
  else if (path[1] == "boundaries") {
3626
3638
  value = checkForValue(path.slice(1));
3627
3639
  }
3640
+ else if (path[1] == "position") {
3641
+ value = checkForValue(path.slice(1));
3642
+ }
3643
+ else if (path[1] == "worldPosition") {
3644
+ value = checkForValue(path.slice(1));
3645
+ }
3646
+ else if (path[1] == "tilesetID") {
3647
+ value = checkForValue(path.slice(1));
3648
+ }
3649
+ else if (path[1] == "geometryRadius") {
3650
+ value = checkForValue(path.slice(1));
3651
+ }
3628
3652
  }
3629
3653
  }
3630
3654
  return value;
@@ -9242,10 +9266,13 @@
9242
9266
  */
9243
9267
  function IsAccessAllowed(params) {
9244
9268
  return __awaiter(this, void 0, void 0, function* () {
9245
- let { tilesetId, sourceAccountId, getters, forAccountId, req } = params;
9269
+ let { tilesetId, sourceAccountId, getters, forAccountId, checkFreeOption, req } = params;
9246
9270
  if (!forAccountId) {
9247
9271
  forAccountId = exports.ENVIRONMENT.PARAMS.accountId;
9248
9272
  }
9273
+ if (checkFreeOption == null) {
9274
+ checkFreeOption = true;
9275
+ }
9249
9276
  // Null source account id means it's a tileset from within the same account.
9250
9277
  // We also don't want to bother looking for records if we're loading in our own account.
9251
9278
  if (forAccountId == sourceAccountId || !sourceAccountId) {
@@ -9277,7 +9304,7 @@
9277
9304
  }
9278
9305
  // If not allowed we'll check if this is a CC3D tileset and if it's set as the selected "free" one.
9279
9306
  // This is a placeholder feature until a marketplace system is made.
9280
- if (String(sourceAccountId).toLowerCase().trim() == "cc3d") {
9307
+ if (String(sourceAccountId).toLowerCase().trim() == "cc3d" && checkFreeOption) {
9281
9308
  const settings = (yield exports.Account.GetAppSettings({
9282
9309
  accountId: forAccountId,
9283
9310
  appId: exports.Account.EAppId.Navigator,
@@ -12976,7 +13003,7 @@
12976
13003
  })(exports.DataSource || (exports.DataSource = {}));
12977
13004
 
12978
13005
  // This is updated with the package.json version on build.
12979
- const VERSION = "4.2.5";
13006
+ const VERSION = "4.2.7";
12980
13007
 
12981
13008
  exports.VERSION = VERSION;
12982
13009
  exports.AbstractApi = AbstractApi;