venue-js 1.4.0-next.14 → 1.4.0-next.16

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.
@@ -124,14 +124,14 @@ type KioskProperties = EntityTimestamps & {
124
124
  style: SymbolProperties;
125
125
  venue_id: Id;
126
126
  };
127
- type KioskFeature = ImdfFeature<KioskGeometry, KioskProperties, "fixture">;
127
+ type KioskFeature = ImdfFeature<KioskGeometry, KioskProperties, "kiosk">;
128
128
  type LevelGeometry = Polygon | MultiPolygon;
129
129
  type LevelProperties = EntityTimestamps & {
130
130
  alt_name: string | null;
131
- display_point: Point;
131
+ display_point: Point | null;
132
132
  name: TransalatableString;
133
133
  ordinal: number;
134
- properties: unknown;
134
+ properties?: unknown;
135
135
  venue_id: Id;
136
136
  };
137
137
  type LevelFeature = ImdfFeature<LevelGeometry, LevelProperties, "level">;
@@ -204,10 +204,11 @@ type OpeningProperties = EntityTimestamps & {
204
204
  venue_id: Id;
205
205
  };
206
206
  type OpeningFeature = ImdfFeature<OpeningGeometry, OpeningProperties, "opening">;
207
+ /** Relationship */
207
208
  type RelationshipCategories = "elevator" | "escalator" | "movingwalkway" | "ramp" | "stairs" | "stairs.emergencyexit" | "traversal" | "traversal.path" | string;
208
209
  type RelationshipDirectionTypes = "directed" | "undirected";
209
210
  type RelationshipGeometry = SingleGeometry | null;
210
- type RelationshipProperties<T extends RelationshipCategories = RelationshipCategories> = EntityTimestamps & {
211
+ type BaseRelationshipProperties = EntityTimestamps & {
211
212
  category: RelationshipCategories;
212
213
  destination: {
213
214
  id: Id;
@@ -226,7 +227,46 @@ type RelationshipProperties<T extends RelationshipCategories = RelationshipCateg
226
227
  feature_type: FeatureType;
227
228
  };
228
229
  };
229
- type RelationshipFeature = ImdfFeature<RelationshipGeometry, RelationshipProperties>;
230
+ type RelationshipFeature = ImdfFeature<RelationshipGeometry, BaseRelationshipProperties>;
231
+ type TraversalRelationshipProperties = Omit<BaseRelationshipProperties, "origin" | "destination" | "intermediary" | "category"> & {
232
+ origin: UnitFeature | null;
233
+ destination: UnitFeature;
234
+ intermediary: OpeningFeature[] | null;
235
+ category: "traversal" | "movingwalkway" | "traversal.path";
236
+ };
237
+ type TraversalRelationshipFeature = ImdfFeature<RelationshipGeometry, TraversalRelationshipProperties>;
238
+ type ElevatorRelationshipProperties = Omit<BaseRelationshipProperties, "origin" | "destination" | "intermediary" | "direction" | "category"> & {
239
+ origin: UnitFeature;
240
+ destination: UnitFeature;
241
+ intermediary: UnitFeature[] | null;
242
+ direction: "undirected";
243
+ category: "elevator";
244
+ };
245
+ type ElevatorRelationshipFeature = ImdfFeature<RelationshipGeometry, ElevatorRelationshipProperties>;
246
+ type RampRelationshipProperties = Omit<BaseRelationshipProperties, "origin" | "destination" | "intermediary" | "category"> & {
247
+ origin: OpeningFeature;
248
+ destination: OpeningFeature;
249
+ intermediary: UnitFeature[];
250
+ category: "ramp";
251
+ };
252
+ type RampRelationshipFeature = ImdfFeature<RelationshipGeometry, EscalatorRelationshipProperties>;
253
+ type StairsRelationshipProperties = Omit<BaseRelationshipProperties, "origin" | "destination" | "intermediary" | "direction" | "category"> & {
254
+ origin: UnitFeature;
255
+ destination: UnitFeature;
256
+ intermediary: UnitFeature[] | null;
257
+ direction: "undirected";
258
+ category: "stairs" | "stairs.emergencyexit";
259
+ };
260
+ type StairsRelationshipFeature = ImdfFeature<RelationshipGeometry, StairsRelationshipProperties>;
261
+ type EscalatorRelationshipProperties = Omit<BaseRelationshipProperties, "origin" | "destination" | "intermediary" | "direction" | "category"> & {
262
+ origin: OpeningFeature;
263
+ destination: OpeningFeature;
264
+ intermediary: UnitFeature[];
265
+ direction: "directed";
266
+ category: "escalator";
267
+ };
268
+ type EscalatorRelationshipFeature = ImdfFeature<RelationshipGeometry, EscalatorRelationshipProperties>;
269
+ type AnyRelationshipFeature = TraversalRelationshipFeature | EscalatorRelationshipFeature | ElevatorRelationshipFeature | RampRelationshipFeature | StairsRelationshipFeature;
230
270
  type SectionGeometry = Polygon | MultiPolygon;
231
271
  type SectionProperties = EntityTimestamps & {
232
272
  venue_id: Id;
@@ -633,6 +673,48 @@ type OpeningFeaturePopulated = OpeningFeature & {
633
673
  ordinal: number;
634
674
  };
635
675
  };
676
+ type RelationshipFeaturePopulated = RelationshipFeature & {
677
+ properties: RelationshipFeature["properties"] & {
678
+ origin: UnitFeature | OpeningFeature | null;
679
+ destination: UnitFeature;
680
+ intermediary: (UnitFeature | OpeningFeature)[] | null;
681
+ };
682
+ };
683
+ type TraversalRelationshipFeaturePopulated = TraversalRelationshipFeature & {
684
+ properties: TraversalRelationshipFeature["properties"] & {
685
+ origin: UnitFeature | null;
686
+ destination: UnitFeature;
687
+ intermediary: OpeningFeature[] | null;
688
+ };
689
+ };
690
+ type EscalatorRelationshipFeaturePopulated = EscalatorRelationshipFeature & {
691
+ properties: EscalatorRelationshipFeature["properties"] & {
692
+ origin: OpeningFeature;
693
+ destination: OpeningFeature;
694
+ intermediary: UnitFeature[] | null;
695
+ };
696
+ };
697
+ type RampRelationshipFeaturePopulated = RampRelationshipFeature & {
698
+ properties: RampRelationshipFeature["properties"] & {
699
+ origin: OpeningFeature;
700
+ destination: OpeningFeature;
701
+ intermediary: UnitFeature[] | null;
702
+ };
703
+ };
704
+ type ElevatorRelationshipFeaturePopulated = ElevatorRelationshipFeature & {
705
+ properties: ElevatorRelationshipFeature["properties"] & {
706
+ origin: UnitFeature;
707
+ destination: UnitFeature;
708
+ intermediary: UnitFeature[] | null;
709
+ };
710
+ };
711
+ type StairRelationshipFeaturePopulated = StairsRelationshipFeature & {
712
+ properties: StairsRelationshipFeature["properties"] & {
713
+ origin: UnitFeature;
714
+ destination: UnitFeature;
715
+ intermediary: UnitFeature[] | null;
716
+ };
717
+ };
636
718
  type SectionFeaturePopulated = SectionFeature & {
637
719
  properties: SectionFeature["properties"] & {
638
720
  /**
@@ -696,7 +778,7 @@ type FeaturePopulatedResponseMap = {
696
778
  level: LevelFeaturePopulated;
697
779
  occupant: OccupantFeaturePopulated;
698
780
  opening: OpeningFeaturePopulated;
699
- relationship: RelationshipFeature;
781
+ relationship: RelationshipFeaturePopulated;
700
782
  section: SectionFeaturePopulated;
701
783
  unit: UnitFeaturePopulated;
702
784
  venue: VenueFeaturePopulated;
@@ -758,6 +840,7 @@ interface VenueDataClient {
758
840
  destroyObservers: () => void;
759
841
  createFilterByTypeQueryOptions: <T extends FeatureType = FeatureType>(featureType: T, params: FilterParams, options: FeatureQueryOptions) => EnsureQueryDataOptions<FeatureResponseMap[T][] | FeaturePopulatedResponseMap[T][]>;
760
842
  createFindByIdQueryOptions: <T extends FeatureType = FeatureType>(featureType: T, id: string, params: FindParams, options: FeatureQueryOptions) => EnsureQueryDataOptions<FeatureResponseMap[T] | FeaturePopulatedResponseMap[T]>;
843
+ _internalFindById: InternalFindById;
761
844
  filterByType: <T extends FeatureType>(featureType: T, params?: FilterParams) => Promise<FeatureResponseMap[T][] | FeaturePopulatedResponseMap[T][]>;
762
845
  findById: <T extends FeatureType>(featureType: T, id: string, params?: FindParams) => Promise<FeatureResponseMap[T] | FeaturePopulatedResponseMap[T]>;
763
846
  search: (txt: string) => Promise<FuseResult<ImdfFeature>[]>;
@@ -842,4 +925,4 @@ declare const getSearchClient: ({ occupants, amenities }: {
842
925
  amenities: AmenityFeature[];
843
926
  }) => SearchClient;
844
927
 
845
- export { ALL_FEATURE_TYPES, type AmenityFeature, type AmenityFeaturePopulated, type AmenityGeometry, type AmenityProperties, type AnchorFeature, type AnchorFeaturePopulated, type AnchorGeometry, type AnchorProperties, DEFAULT_BASE_URL, type DetailFeature, type DetailGeometry, type DetailProperties, type ElementFeature, type ElementGeometry, type ElementProperties, type EventFeature, type EventGeometry, type EventProperties, type FeaturePopulatedResponseMap, type FeatureQueryOptions, type FeatureResponseMap, type FeatureType, type FilterParams, type FindParams, type FixtureFeature, type FixtureFeaturePopulated, type FixtureGeometry, type FixtureProperties, GEOJSON_FEATURE_TYPES, IMDF_FEATURE_TYPES, type Id, type ImdfFeature, type InternalFilterByType, type InternalFindById, type KioskFeature, type KioskFeaturePopulated, type KioskGeometry, type KioskProperties, type LabelFeature, type LabelGeometry, type LabelProperties, type LevelFeature, type LevelFeaturePopulated, type LevelGeometry, type LevelProperties, type Media, type MediaFile, type Model3d, type Model3dFeature, type Model3dGeometry, type Model3dPopulated, type Model3dProperties, NONIMDF_FEATURE_TYPES, type OccupantFeature, type OccupantFeaturePopulated, type OccupantGeometry, occupantHelper as OccupantHelpers, type OccupantProperties, type OpeningFeature, type OpeningFeaturePopulated, type OpeningGeometry, type OpeningProperties, type Page, type PolygonalFeature, type PopulatableFeatureType, type PopulatedParams, type PrivilegeFeature, type PrivilegeGeometry, type PrivilegeProperties, type PromotionFeature, type PromotionProperties, type RelationshipFeature, type RelationshipGeometry, type RelationshipProperties, type SearchClient, type SectionFeature, type SectionFeaturePopulated, type SectionGeometry, type SectionProperties, type SingleGeometry, type SponsoredContentFeature, type SponsoredContentLegacyType, type SponsoredContentPlacementType, type SponsoredContentStrapiV4ApiResponse, type TaxonomyFeature, type TaxonomyFeaturePopulated, type TaxonomyGeometry, type TaxonomyProperties, type UnitFeature, type UnitFeaturePopulated, type UnitGeometry, type UnitProperties, type VenueClientOptions, type VenueDataClient, type VenueFeature, type VenueFeaturePopulated, type VenueGeometry, type VenueProperties, defaultFeatureQueryOptionsMap, fetchDeliveryApi, fetchPreviewApi, getDataClient, getSearchClient, isValidCoordinate, isValidLineString, isValidLineStringCoordinates, isValidMultiPolygon, isValidMultiPolygonCoordinates, isValidPoint, isValidPolygon, isValidPolygonCoordinates, matchFilter, matchFilters, safeFetchFeature };
928
+ export { ALL_FEATURE_TYPES, type AmenityFeature, type AmenityFeaturePopulated, type AmenityGeometry, type AmenityProperties, type AnchorFeature, type AnchorFeaturePopulated, type AnchorGeometry, type AnchorProperties, type AnyRelationshipFeature, type BaseRelationshipProperties, DEFAULT_BASE_URL, type DetailFeature, type DetailGeometry, type DetailProperties, type ElementFeature, type ElementGeometry, type ElementProperties, type ElevatorRelationshipFeature, type ElevatorRelationshipFeaturePopulated, type ElevatorRelationshipProperties, type EscalatorRelationshipFeature, type EscalatorRelationshipFeaturePopulated, type EscalatorRelationshipProperties, type EventFeature, type EventGeometry, type EventProperties, type FeaturePopulatedResponseMap, type FeatureQueryOptions, type FeatureResponseMap, type FeatureType, type FilterParams, type FindParams, type FixtureFeature, type FixtureFeaturePopulated, type FixtureGeometry, type FixtureProperties, GEOJSON_FEATURE_TYPES, IMDF_FEATURE_TYPES, type Id, type ImdfFeature, type InternalFilterByType, type InternalFindById, type KioskFeature, type KioskFeaturePopulated, type KioskGeometry, type KioskProperties, type LabelFeature, type LabelGeometry, type LabelProperties, type LevelFeature, type LevelFeaturePopulated, type LevelGeometry, type LevelProperties, type Media, type MediaFile, type Model3d, type Model3dFeature, type Model3dGeometry, type Model3dPopulated, type Model3dProperties, NONIMDF_FEATURE_TYPES, type OccupantFeature, type OccupantFeaturePopulated, type OccupantGeometry, occupantHelper as OccupantHelpers, type OccupantProperties, type OpeningFeature, type OpeningFeaturePopulated, type OpeningGeometry, type OpeningProperties, type Page, type PolygonalFeature, type PopulatableFeatureType, type PopulatedParams, type PrivilegeFeature, type PrivilegeGeometry, type PrivilegeProperties, type PromotionFeature, type PromotionProperties, type RampRelationshipFeature, type RampRelationshipFeaturePopulated, type RampRelationshipProperties, type RelationshipCategories, type RelationshipDirectionTypes, type RelationshipFeature, type RelationshipFeaturePopulated, type RelationshipGeometry, type SearchClient, type SectionFeature, type SectionFeaturePopulated, type SectionGeometry, type SectionProperties, type SingleGeometry, type SponsoredContentFeature, type SponsoredContentLegacyType, type SponsoredContentPlacementType, type SponsoredContentStrapiV4ApiResponse, type StairRelationshipFeaturePopulated, type StairsRelationshipFeature, type StairsRelationshipProperties, type TaxonomyFeature, type TaxonomyFeaturePopulated, type TaxonomyGeometry, type TaxonomyProperties, type TransalatableString, type TraversalRelationshipFeature, type TraversalRelationshipFeaturePopulated, type TraversalRelationshipProperties, type UnitFeature, type UnitFeaturePopulated, type UnitGeometry, type UnitProperties, type VenueClientOptions, type VenueDataClient, type VenueFeature, type VenueFeaturePopulated, type VenueGeometry, type VenueProperties, defaultFeatureQueryOptionsMap, fetchDeliveryApi, fetchPreviewApi, getDataClient, getSearchClient, isValidCoordinate, isValidLineString, isValidLineStringCoordinates, isValidMultiPolygon, isValidMultiPolygonCoordinates, isValidPoint, isValidPolygon, isValidPolygonCoordinates, matchFilter, matchFilters, safeFetchFeature };
@@ -124,14 +124,14 @@ type KioskProperties = EntityTimestamps & {
124
124
  style: SymbolProperties;
125
125
  venue_id: Id;
126
126
  };
127
- type KioskFeature = ImdfFeature<KioskGeometry, KioskProperties, "fixture">;
127
+ type KioskFeature = ImdfFeature<KioskGeometry, KioskProperties, "kiosk">;
128
128
  type LevelGeometry = Polygon | MultiPolygon;
129
129
  type LevelProperties = EntityTimestamps & {
130
130
  alt_name: string | null;
131
- display_point: Point;
131
+ display_point: Point | null;
132
132
  name: TransalatableString;
133
133
  ordinal: number;
134
- properties: unknown;
134
+ properties?: unknown;
135
135
  venue_id: Id;
136
136
  };
137
137
  type LevelFeature = ImdfFeature<LevelGeometry, LevelProperties, "level">;
@@ -204,10 +204,11 @@ type OpeningProperties = EntityTimestamps & {
204
204
  venue_id: Id;
205
205
  };
206
206
  type OpeningFeature = ImdfFeature<OpeningGeometry, OpeningProperties, "opening">;
207
+ /** Relationship */
207
208
  type RelationshipCategories = "elevator" | "escalator" | "movingwalkway" | "ramp" | "stairs" | "stairs.emergencyexit" | "traversal" | "traversal.path" | string;
208
209
  type RelationshipDirectionTypes = "directed" | "undirected";
209
210
  type RelationshipGeometry = SingleGeometry | null;
210
- type RelationshipProperties<T extends RelationshipCategories = RelationshipCategories> = EntityTimestamps & {
211
+ type BaseRelationshipProperties = EntityTimestamps & {
211
212
  category: RelationshipCategories;
212
213
  destination: {
213
214
  id: Id;
@@ -226,7 +227,46 @@ type RelationshipProperties<T extends RelationshipCategories = RelationshipCateg
226
227
  feature_type: FeatureType;
227
228
  };
228
229
  };
229
- type RelationshipFeature = ImdfFeature<RelationshipGeometry, RelationshipProperties>;
230
+ type RelationshipFeature = ImdfFeature<RelationshipGeometry, BaseRelationshipProperties>;
231
+ type TraversalRelationshipProperties = Omit<BaseRelationshipProperties, "origin" | "destination" | "intermediary" | "category"> & {
232
+ origin: UnitFeature | null;
233
+ destination: UnitFeature;
234
+ intermediary: OpeningFeature[] | null;
235
+ category: "traversal" | "movingwalkway" | "traversal.path";
236
+ };
237
+ type TraversalRelationshipFeature = ImdfFeature<RelationshipGeometry, TraversalRelationshipProperties>;
238
+ type ElevatorRelationshipProperties = Omit<BaseRelationshipProperties, "origin" | "destination" | "intermediary" | "direction" | "category"> & {
239
+ origin: UnitFeature;
240
+ destination: UnitFeature;
241
+ intermediary: UnitFeature[] | null;
242
+ direction: "undirected";
243
+ category: "elevator";
244
+ };
245
+ type ElevatorRelationshipFeature = ImdfFeature<RelationshipGeometry, ElevatorRelationshipProperties>;
246
+ type RampRelationshipProperties = Omit<BaseRelationshipProperties, "origin" | "destination" | "intermediary" | "category"> & {
247
+ origin: OpeningFeature;
248
+ destination: OpeningFeature;
249
+ intermediary: UnitFeature[];
250
+ category: "ramp";
251
+ };
252
+ type RampRelationshipFeature = ImdfFeature<RelationshipGeometry, EscalatorRelationshipProperties>;
253
+ type StairsRelationshipProperties = Omit<BaseRelationshipProperties, "origin" | "destination" | "intermediary" | "direction" | "category"> & {
254
+ origin: UnitFeature;
255
+ destination: UnitFeature;
256
+ intermediary: UnitFeature[] | null;
257
+ direction: "undirected";
258
+ category: "stairs" | "stairs.emergencyexit";
259
+ };
260
+ type StairsRelationshipFeature = ImdfFeature<RelationshipGeometry, StairsRelationshipProperties>;
261
+ type EscalatorRelationshipProperties = Omit<BaseRelationshipProperties, "origin" | "destination" | "intermediary" | "direction" | "category"> & {
262
+ origin: OpeningFeature;
263
+ destination: OpeningFeature;
264
+ intermediary: UnitFeature[];
265
+ direction: "directed";
266
+ category: "escalator";
267
+ };
268
+ type EscalatorRelationshipFeature = ImdfFeature<RelationshipGeometry, EscalatorRelationshipProperties>;
269
+ type AnyRelationshipFeature = TraversalRelationshipFeature | EscalatorRelationshipFeature | ElevatorRelationshipFeature | RampRelationshipFeature | StairsRelationshipFeature;
230
270
  type SectionGeometry = Polygon | MultiPolygon;
231
271
  type SectionProperties = EntityTimestamps & {
232
272
  venue_id: Id;
@@ -633,6 +673,48 @@ type OpeningFeaturePopulated = OpeningFeature & {
633
673
  ordinal: number;
634
674
  };
635
675
  };
676
+ type RelationshipFeaturePopulated = RelationshipFeature & {
677
+ properties: RelationshipFeature["properties"] & {
678
+ origin: UnitFeature | OpeningFeature | null;
679
+ destination: UnitFeature;
680
+ intermediary: (UnitFeature | OpeningFeature)[] | null;
681
+ };
682
+ };
683
+ type TraversalRelationshipFeaturePopulated = TraversalRelationshipFeature & {
684
+ properties: TraversalRelationshipFeature["properties"] & {
685
+ origin: UnitFeature | null;
686
+ destination: UnitFeature;
687
+ intermediary: OpeningFeature[] | null;
688
+ };
689
+ };
690
+ type EscalatorRelationshipFeaturePopulated = EscalatorRelationshipFeature & {
691
+ properties: EscalatorRelationshipFeature["properties"] & {
692
+ origin: OpeningFeature;
693
+ destination: OpeningFeature;
694
+ intermediary: UnitFeature[] | null;
695
+ };
696
+ };
697
+ type RampRelationshipFeaturePopulated = RampRelationshipFeature & {
698
+ properties: RampRelationshipFeature["properties"] & {
699
+ origin: OpeningFeature;
700
+ destination: OpeningFeature;
701
+ intermediary: UnitFeature[] | null;
702
+ };
703
+ };
704
+ type ElevatorRelationshipFeaturePopulated = ElevatorRelationshipFeature & {
705
+ properties: ElevatorRelationshipFeature["properties"] & {
706
+ origin: UnitFeature;
707
+ destination: UnitFeature;
708
+ intermediary: UnitFeature[] | null;
709
+ };
710
+ };
711
+ type StairRelationshipFeaturePopulated = StairsRelationshipFeature & {
712
+ properties: StairsRelationshipFeature["properties"] & {
713
+ origin: UnitFeature;
714
+ destination: UnitFeature;
715
+ intermediary: UnitFeature[] | null;
716
+ };
717
+ };
636
718
  type SectionFeaturePopulated = SectionFeature & {
637
719
  properties: SectionFeature["properties"] & {
638
720
  /**
@@ -696,7 +778,7 @@ type FeaturePopulatedResponseMap = {
696
778
  level: LevelFeaturePopulated;
697
779
  occupant: OccupantFeaturePopulated;
698
780
  opening: OpeningFeaturePopulated;
699
- relationship: RelationshipFeature;
781
+ relationship: RelationshipFeaturePopulated;
700
782
  section: SectionFeaturePopulated;
701
783
  unit: UnitFeaturePopulated;
702
784
  venue: VenueFeaturePopulated;
@@ -758,6 +840,7 @@ interface VenueDataClient {
758
840
  destroyObservers: () => void;
759
841
  createFilterByTypeQueryOptions: <T extends FeatureType = FeatureType>(featureType: T, params: FilterParams, options: FeatureQueryOptions) => EnsureQueryDataOptions<FeatureResponseMap[T][] | FeaturePopulatedResponseMap[T][]>;
760
842
  createFindByIdQueryOptions: <T extends FeatureType = FeatureType>(featureType: T, id: string, params: FindParams, options: FeatureQueryOptions) => EnsureQueryDataOptions<FeatureResponseMap[T] | FeaturePopulatedResponseMap[T]>;
843
+ _internalFindById: InternalFindById;
761
844
  filterByType: <T extends FeatureType>(featureType: T, params?: FilterParams) => Promise<FeatureResponseMap[T][] | FeaturePopulatedResponseMap[T][]>;
762
845
  findById: <T extends FeatureType>(featureType: T, id: string, params?: FindParams) => Promise<FeatureResponseMap[T] | FeaturePopulatedResponseMap[T]>;
763
846
  search: (txt: string) => Promise<FuseResult<ImdfFeature>[]>;
@@ -842,4 +925,4 @@ declare const getSearchClient: ({ occupants, amenities }: {
842
925
  amenities: AmenityFeature[];
843
926
  }) => SearchClient;
844
927
 
845
- export { ALL_FEATURE_TYPES, type AmenityFeature, type AmenityFeaturePopulated, type AmenityGeometry, type AmenityProperties, type AnchorFeature, type AnchorFeaturePopulated, type AnchorGeometry, type AnchorProperties, DEFAULT_BASE_URL, type DetailFeature, type DetailGeometry, type DetailProperties, type ElementFeature, type ElementGeometry, type ElementProperties, type EventFeature, type EventGeometry, type EventProperties, type FeaturePopulatedResponseMap, type FeatureQueryOptions, type FeatureResponseMap, type FeatureType, type FilterParams, type FindParams, type FixtureFeature, type FixtureFeaturePopulated, type FixtureGeometry, type FixtureProperties, GEOJSON_FEATURE_TYPES, IMDF_FEATURE_TYPES, type Id, type ImdfFeature, type InternalFilterByType, type InternalFindById, type KioskFeature, type KioskFeaturePopulated, type KioskGeometry, type KioskProperties, type LabelFeature, type LabelGeometry, type LabelProperties, type LevelFeature, type LevelFeaturePopulated, type LevelGeometry, type LevelProperties, type Media, type MediaFile, type Model3d, type Model3dFeature, type Model3dGeometry, type Model3dPopulated, type Model3dProperties, NONIMDF_FEATURE_TYPES, type OccupantFeature, type OccupantFeaturePopulated, type OccupantGeometry, occupantHelper as OccupantHelpers, type OccupantProperties, type OpeningFeature, type OpeningFeaturePopulated, type OpeningGeometry, type OpeningProperties, type Page, type PolygonalFeature, type PopulatableFeatureType, type PopulatedParams, type PrivilegeFeature, type PrivilegeGeometry, type PrivilegeProperties, type PromotionFeature, type PromotionProperties, type RelationshipFeature, type RelationshipGeometry, type RelationshipProperties, type SearchClient, type SectionFeature, type SectionFeaturePopulated, type SectionGeometry, type SectionProperties, type SingleGeometry, type SponsoredContentFeature, type SponsoredContentLegacyType, type SponsoredContentPlacementType, type SponsoredContentStrapiV4ApiResponse, type TaxonomyFeature, type TaxonomyFeaturePopulated, type TaxonomyGeometry, type TaxonomyProperties, type UnitFeature, type UnitFeaturePopulated, type UnitGeometry, type UnitProperties, type VenueClientOptions, type VenueDataClient, type VenueFeature, type VenueFeaturePopulated, type VenueGeometry, type VenueProperties, defaultFeatureQueryOptionsMap, fetchDeliveryApi, fetchPreviewApi, getDataClient, getSearchClient, isValidCoordinate, isValidLineString, isValidLineStringCoordinates, isValidMultiPolygon, isValidMultiPolygonCoordinates, isValidPoint, isValidPolygon, isValidPolygonCoordinates, matchFilter, matchFilters, safeFetchFeature };
928
+ export { ALL_FEATURE_TYPES, type AmenityFeature, type AmenityFeaturePopulated, type AmenityGeometry, type AmenityProperties, type AnchorFeature, type AnchorFeaturePopulated, type AnchorGeometry, type AnchorProperties, type AnyRelationshipFeature, type BaseRelationshipProperties, DEFAULT_BASE_URL, type DetailFeature, type DetailGeometry, type DetailProperties, type ElementFeature, type ElementGeometry, type ElementProperties, type ElevatorRelationshipFeature, type ElevatorRelationshipFeaturePopulated, type ElevatorRelationshipProperties, type EscalatorRelationshipFeature, type EscalatorRelationshipFeaturePopulated, type EscalatorRelationshipProperties, type EventFeature, type EventGeometry, type EventProperties, type FeaturePopulatedResponseMap, type FeatureQueryOptions, type FeatureResponseMap, type FeatureType, type FilterParams, type FindParams, type FixtureFeature, type FixtureFeaturePopulated, type FixtureGeometry, type FixtureProperties, GEOJSON_FEATURE_TYPES, IMDF_FEATURE_TYPES, type Id, type ImdfFeature, type InternalFilterByType, type InternalFindById, type KioskFeature, type KioskFeaturePopulated, type KioskGeometry, type KioskProperties, type LabelFeature, type LabelGeometry, type LabelProperties, type LevelFeature, type LevelFeaturePopulated, type LevelGeometry, type LevelProperties, type Media, type MediaFile, type Model3d, type Model3dFeature, type Model3dGeometry, type Model3dPopulated, type Model3dProperties, NONIMDF_FEATURE_TYPES, type OccupantFeature, type OccupantFeaturePopulated, type OccupantGeometry, occupantHelper as OccupantHelpers, type OccupantProperties, type OpeningFeature, type OpeningFeaturePopulated, type OpeningGeometry, type OpeningProperties, type Page, type PolygonalFeature, type PopulatableFeatureType, type PopulatedParams, type PrivilegeFeature, type PrivilegeGeometry, type PrivilegeProperties, type PromotionFeature, type PromotionProperties, type RampRelationshipFeature, type RampRelationshipFeaturePopulated, type RampRelationshipProperties, type RelationshipCategories, type RelationshipDirectionTypes, type RelationshipFeature, type RelationshipFeaturePopulated, type RelationshipGeometry, type SearchClient, type SectionFeature, type SectionFeaturePopulated, type SectionGeometry, type SectionProperties, type SingleGeometry, type SponsoredContentFeature, type SponsoredContentLegacyType, type SponsoredContentPlacementType, type SponsoredContentStrapiV4ApiResponse, type StairRelationshipFeaturePopulated, type StairsRelationshipFeature, type StairsRelationshipProperties, type TaxonomyFeature, type TaxonomyFeaturePopulated, type TaxonomyGeometry, type TaxonomyProperties, type TransalatableString, type TraversalRelationshipFeature, type TraversalRelationshipFeaturePopulated, type TraversalRelationshipProperties, type UnitFeature, type UnitFeaturePopulated, type UnitGeometry, type UnitProperties, type VenueClientOptions, type VenueDataClient, type VenueFeature, type VenueFeaturePopulated, type VenueGeometry, type VenueProperties, defaultFeatureQueryOptionsMap, fetchDeliveryApi, fetchPreviewApi, getDataClient, getSearchClient, isValidCoordinate, isValidLineString, isValidLineStringCoordinates, isValidMultiPolygon, isValidMultiPolygonCoordinates, isValidPoint, isValidPolygon, isValidPolygonCoordinates, matchFilter, matchFilters, safeFetchFeature };
@@ -330,7 +330,11 @@ __export(occupant_helper_exports, {
330
330
  getOccupantMainLocation: () => getOccupantMainLocation,
331
331
  getOccupantMarkerLocations: () => getOccupantMarkerLocations
332
332
  });
333
- var import_lodash = require("lodash");
333
+
334
+ // src/data/utils/lodash/compact.ts
335
+ var compact = (arr) => arr.filter((item) => Boolean(item));
336
+
337
+ // src/data/utils/occupant-helper.ts
334
338
  var getOccupantMainLocation = (occupant) => {
335
339
  return occupant.properties.kiosk || occupant.properties.unit;
336
340
  };
@@ -339,7 +343,7 @@ var getOccupantCorrelatedLocations = (occupant) => {
339
343
  ...occupant.properties.units,
340
344
  ...occupant.properties.kiosks
341
345
  ];
342
- return (0, import_lodash.compact)(allCorrelatedLocations);
346
+ return compact(allCorrelatedLocations);
343
347
  };
344
348
  var getOccupantMarkerLocations = (occupant, options) => {
345
349
  const placementType = options?.type ? options.type : occupant.properties.show_name_on_all_units ? "ALL_LOCATIONS" : "ONCE_PER_LEVEL";
@@ -347,18 +351,17 @@ var getOccupantMarkerLocations = (occupant, options) => {
347
351
  const mainLocationLevel = mainLocation?.properties?.level_id;
348
352
  const allCorrelatedLocations = getOccupantCorrelatedLocations(occupant);
349
353
  if (placementType === "ALL_LOCATIONS") {
350
- return (0, import_lodash.compact)([mainLocation, ...allCorrelatedLocations]);
354
+ return compact([mainLocation, ...allCorrelatedLocations]);
351
355
  }
352
356
  const otherLevelLocations = allCorrelatedLocations.filter((f) => f.properties.level_id !== mainLocationLevel);
353
357
  const onePerLevelLocations = [...new Map(otherLevelLocations.map((loc) => [loc.properties.level_id, loc])).values()];
354
- return (0, import_lodash.compact)([mainLocation, ...onePerLevelLocations]);
358
+ return compact([mainLocation, ...onePerLevelLocations]);
355
359
  };
356
360
 
357
361
  // src/data/getDataClient.ts
358
362
  var import_query_core = require("@tanstack/query-core");
359
363
 
360
364
  // src/data/populator/index.ts
361
- var import_lodash2 = require("lodash");
362
365
  var import_boolean_within = require("@turf/boolean-within");
363
366
  var createPopulator = ({
364
367
  internalFindById,
@@ -516,7 +519,7 @@ var createPopulator = ({
516
519
  ...occupant.properties,
517
520
  anchor: anchor ? await populateAnchor(anchor) : null,
518
521
  local_categories: await Promise.all(
519
- (0, import_lodash2.compact)(localCategories).map(populateTaxonomy)
522
+ compact(localCategories).map(populateTaxonomy)
520
523
  ),
521
524
  venue,
522
525
  promotions,
@@ -2119,6 +2122,7 @@ var getDataClient = (options) => {
2119
2122
  destroyObservers,
2120
2123
  createFilterByTypeQueryOptions,
2121
2124
  createFindByIdQueryOptions,
2125
+ _internalFindById: internalFindById,
2122
2126
  filterByType,
2123
2127
  findById,
2124
2128
  search: searchFn