venue-js 1.4.0-next.6 → 1.4.0-next.8

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.
package/dist/index.mjs CHANGED
@@ -550,6 +550,20 @@ var createPopulator = ({
550
550
  }
551
551
  };
552
552
  };
553
+ const populateModel3D = async (model3d) => {
554
+ const level = await internalFindById(model3d.properties.level_id);
555
+ try {
556
+ return {
557
+ ...model3d,
558
+ properties: {
559
+ ...model3d.properties,
560
+ level: await populateLevel(level)
561
+ }
562
+ };
563
+ } catch (err) {
564
+ console.log(`error finding level`, { model3d, level });
565
+ }
566
+ };
553
567
  const populateFeature = (feature2) => Promise.resolve(feature2);
554
568
  return {
555
569
  address: populateAddress,
@@ -574,7 +588,8 @@ var createPopulator = ({
574
588
  section: populateSection,
575
589
  unit: populateUnit,
576
590
  venue: populateVenue,
577
- taxonomy: populateTaxonomy
591
+ taxonomy: populateTaxonomy,
592
+ model3d: populateModel3D
578
593
  };
579
594
  };
580
595