@mappedin/mappedin-js 6.0.1-beta.6 → 6.0.1-beta.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.
- package/THIRD_PARTY_LICENSES.txt +1 -1
- package/lib/esm/{GLTFExporter-4AFTQSTF.js → GLTFExporter-MGCABR77.js} +1 -1
- package/lib/esm/{GLTFLoader-2ILZ4XYA.js → GLTFLoader-72ZBLEGM.js} +1 -1
- package/lib/esm/{browser-V5DRRCF6.js → browser-TELZAKY7.js} +1 -1
- package/lib/esm/chunk-46NB4TVY.js +1 -0
- package/lib/esm/{chunk-5NEYOCFF.js → chunk-FLQMLIRH.js} +1 -1
- package/lib/esm/{chunk-UUNXGSCJ.js → chunk-K66IC5TR.js} +1 -1
- package/lib/esm/{chunk-LZEQNJVH.js → chunk-MFFCKTWY.js} +1 -1
- package/lib/esm/{chunk-SX72ICSH.js → chunk-YCXZFC5E.js} +1 -1
- package/lib/esm/chunk-YEVQMJLV.js +1 -0
- package/lib/esm/index.css +1 -1
- package/lib/esm/index.d.ts +478 -98
- package/lib/esm/index.js +1 -1
- package/lib/esm/inspector-4JMKXPRY.js +1 -0
- package/lib/esm/internal-36AUKLIR.js +1 -0
- package/lib/esm/{outdoor-context-v4-WPXDFBZG.js → outdoor-context-v4-F52YJ3ZQ.js} +1 -1
- package/lib/index.css +1 -1
- package/package.json +2 -2
- package/lib/esm/chunk-WRIAQRVE.js +0 -1
- package/lib/esm/inspector-HUVBAXG5.js +0 -1
package/lib/esm/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
// ../mappedin-js/@packages/internal/quad-tree
|
|
16
16
|
// ../mappedin-js/@packages/internal/outdoor-context-v4
|
|
17
17
|
// ../mappedin-js/@packages/internal/geojson-navigator
|
|
18
|
+
// ../mappedin-js/minisearch
|
|
18
19
|
// ../mappedin-js/three/addons/loaders/GLTFLoader.js
|
|
19
20
|
// ../mappedin-js/@mapbox/point-geometry
|
|
20
21
|
// ../mappedin-js/@maplibre/maplibre-gl-style-spec
|
|
@@ -310,17 +311,20 @@ declare module '@mappedin/mappedin-js' {
|
|
|
310
311
|
export type { Label, Marker, Path, Shape, CameraTransform, Model } from '@mappedin/mappedin-js/mappedin-js/src/map-view-objects';
|
|
311
312
|
export type { Navigation, TNavigationOptions } from '@mappedin/mappedin-js/mappedin-js/src/navigation';
|
|
312
313
|
export type { TSpaceType } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
|
|
313
|
-
export { Coordinate, Annotation, Connection, Door, Floor, MapObject, PointOfInterest, Space, Image, Hyperlink,
|
|
314
|
+
export { Coordinate, Annotation, Connection, Door, Floor, MapObject, PointOfInterest, Space, Image, Hyperlink, EnterpriseLocation, EnterpriseCategory, EnterpriseVenue, type Places, } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
|
|
314
315
|
export type { Camera, Models, Labels, Markers, Paths, Exporter, Directions, Style, Shapes, Outdoor, } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson';
|
|
316
|
+
export type { SearchResult, SearchResultItem, SearchResultEnterpriseCategory, SearchResultEnterpriseLocations, SearchResultPlaces, SearchOptions, Search, Suggestion, MatchInfo, } from '@mappedin/mappedin-js/mappedin-js/src/search';
|
|
315
317
|
}
|
|
316
318
|
|
|
317
319
|
declare module '@mappedin/mappedin-js/mappedin-js/src/map-data' {
|
|
318
|
-
import { PubSub } from '@packages/internal/common';
|
|
319
320
|
import { Analytics } from '@mappedin/mappedin-js/mappedin-js/src/analytics';
|
|
321
|
+
import { PubSub } from '@packages/internal/common';
|
|
322
|
+
import type { TSearchOptions } from '@packages/internal/mvf-utils';
|
|
320
323
|
import type { Connection, Door, Floor, MapDataInternal, Space, MapObject, PointOfInterest, Annotation, Coordinate } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
|
|
321
|
-
import type
|
|
322
|
-
import type
|
|
323
|
-
import type
|
|
324
|
+
import type EnterpriseCategory from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/category';
|
|
325
|
+
import type EnterpriseLocation from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/location';
|
|
326
|
+
import type EnterpriseVenue from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/venue';
|
|
327
|
+
import { Search } from '@mappedin/mappedin-js/mappedin-js/src/search';
|
|
324
328
|
/**
|
|
325
329
|
* A WeakMap to associate {@link MapData} instances with their internal representation.
|
|
326
330
|
* We need a way to get the internal data object from the API
|
|
@@ -340,12 +344,32 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data' {
|
|
|
340
344
|
}> {
|
|
341
345
|
#private;
|
|
342
346
|
Analytics: Analytics;
|
|
347
|
+
/**
|
|
348
|
+
* Search API for MapData
|
|
349
|
+
*
|
|
350
|
+
* @example
|
|
351
|
+
* // Enable search
|
|
352
|
+
* const mapData = await getMapData({ search: { enabled: true } });
|
|
353
|
+
* // or
|
|
354
|
+
* await mapData.Search.enable();
|
|
355
|
+
*
|
|
356
|
+
* // Perform a search query
|
|
357
|
+
* const results = await mapData.Search.query('Coffee Shop');
|
|
358
|
+
* console.log(results.locations);
|
|
359
|
+
*
|
|
360
|
+
* // Get search suggestions
|
|
361
|
+
* const suggestions = await mapData.Search.suggest('Coff');
|
|
362
|
+
* console.log(suggestions);
|
|
363
|
+
*/
|
|
364
|
+
Search: Search;
|
|
343
365
|
/**
|
|
344
366
|
* Constructs a new instance of {@link MapData}.
|
|
345
367
|
*
|
|
346
368
|
* @internal
|
|
347
369
|
*/
|
|
348
|
-
constructor(internal: MapDataInternal
|
|
370
|
+
constructor(internal: MapDataInternal, { search }?: {
|
|
371
|
+
search?: TSearchOptions;
|
|
372
|
+
});
|
|
349
373
|
/**
|
|
350
374
|
* The name of the map.
|
|
351
375
|
*
|
|
@@ -364,10 +388,6 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data' {
|
|
|
364
388
|
* @returns {string} The organization ID of the map.
|
|
365
389
|
*/
|
|
366
390
|
get organizationId(): string;
|
|
367
|
-
/**
|
|
368
|
-
* @internal
|
|
369
|
-
*/
|
|
370
|
-
get venue(): Venue | undefined;
|
|
371
391
|
/**
|
|
372
392
|
* The token is used to fetch outdoor tiles.
|
|
373
393
|
*
|
|
@@ -426,13 +446,23 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data' {
|
|
|
426
446
|
*/
|
|
427
447
|
getByType(type: 'annotation'): Annotation[];
|
|
428
448
|
/**
|
|
429
|
-
* @
|
|
449
|
+
* @returns The enterprise locations ({@link EnterpriseLocation}) on the map.
|
|
450
|
+
* @example
|
|
451
|
+
* const enterpriseLocations = mapData.getByType('enterprise-location');
|
|
430
452
|
*/
|
|
431
|
-
getByType(type: 'location'):
|
|
453
|
+
getByType(type: 'enterprise-location'): EnterpriseLocation[];
|
|
432
454
|
/**
|
|
433
|
-
* @
|
|
455
|
+
* @returns The enterprise categories ({@link EnterpriseCategory}) on the map.
|
|
456
|
+
* @example
|
|
457
|
+
* const enterpriseCategories = mapData.getByType('enterprise-category');
|
|
434
458
|
*/
|
|
435
|
-
getByType(type: 'category'):
|
|
459
|
+
getByType(type: 'enterprise-category'): EnterpriseCategory[];
|
|
460
|
+
/**
|
|
461
|
+
* @returns The enterprise venue ({@link EnterpriseVenue}) on the map.
|
|
462
|
+
* @example
|
|
463
|
+
* const enterpriseVenue = mapData.getByType('enterprise-venue');
|
|
464
|
+
*/
|
|
465
|
+
getByType(type: 'enterprise-venue'): EnterpriseVenue;
|
|
436
466
|
/**
|
|
437
467
|
* Retrieves a specific map feature by its type and ID.
|
|
438
468
|
*
|
|
@@ -449,8 +479,8 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data' {
|
|
|
449
479
|
getById(type: 'object', id: string): MapObject | undefined;
|
|
450
480
|
getById(type: 'point-of-interest', id: string): PointOfInterest | undefined;
|
|
451
481
|
getById(type: 'annotation', id: string): Annotation | undefined;
|
|
452
|
-
getById(type: 'location', id: string):
|
|
453
|
-
getById(type: 'category', id: string):
|
|
482
|
+
getById(type: 'enterprise-location', id: string): EnterpriseLocation | undefined;
|
|
483
|
+
getById(type: 'enterprise-category', id: string): EnterpriseCategory | undefined;
|
|
454
484
|
getById(type: string, id: string): object | undefined;
|
|
455
485
|
/**
|
|
456
486
|
* @internal
|
|
@@ -592,13 +622,13 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects' {
|
|
|
592
622
|
import Annotation from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/annotation';
|
|
593
623
|
import Hyperlink from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/hyperlink';
|
|
594
624
|
import Image from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/image';
|
|
595
|
-
import type { AnnotationCollection, ParsedMVF, Connection as MVFConnection, EntranceCollection, NodeCollection, ObstructionCollection, SpaceCollection, Map as MVFMap, EnterpriseLocation, EnterpriseCategory } from '@mappedin/mvf';
|
|
596
|
-
import type { MapDataObjects } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/types';
|
|
597
|
-
import Location from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/location';
|
|
598
|
-
import Category from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/category';
|
|
599
|
-
import Venue from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/venue';
|
|
600
|
-
import { PubSub } from '@packages/internal/common';
|
|
625
|
+
import type { AnnotationCollection, ParsedMVF, Connection as MVFConnection, EntranceCollection, NodeCollection, ObstructionCollection, SpaceCollection, Map as MVFMap, EnterpriseLocation as MVFEnterpriseLocation, EnterpriseCategory as MVFEnterpriseCategory } from '@mappedin/mvf';
|
|
601
626
|
import { AnalyticsInternal } from '@mappedin/mappedin-js/mappedin-js/src/analytics';
|
|
627
|
+
import EnterpriseLocation from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/location';
|
|
628
|
+
import EnterpriseCategory from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/category';
|
|
629
|
+
import EnterpriseVenue from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/venue';
|
|
630
|
+
import { PubSub } from '@packages/internal/common';
|
|
631
|
+
import type { Places } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/types';
|
|
602
632
|
/**
|
|
603
633
|
* Internal class representing detailed map data.
|
|
604
634
|
*
|
|
@@ -632,9 +662,9 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects' {
|
|
|
632
662
|
* Represents a map of entrance IDs to obstruction IDs.
|
|
633
663
|
*/
|
|
634
664
|
readonly obstructionIdByEntranceId: Record<string, string>;
|
|
635
|
-
readonly venue?:
|
|
665
|
+
readonly venue?: EnterpriseVenue;
|
|
636
666
|
doorsByNodeId: Record<string, Door>;
|
|
637
|
-
locationsBySpaceId: Record<string,
|
|
667
|
+
locationsBySpaceId: Record<string, MVFEnterpriseLocation[]>;
|
|
638
668
|
/**
|
|
639
669
|
* @internal
|
|
640
670
|
*/
|
|
@@ -697,8 +727,8 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects' {
|
|
|
697
727
|
* @returns {Annotation[]} An array of Annotation objects.
|
|
698
728
|
*/
|
|
699
729
|
get nodes(): Node[];
|
|
700
|
-
get locations():
|
|
701
|
-
get categories():
|
|
730
|
+
get locations(): EnterpriseLocation[];
|
|
731
|
+
get categories(): EnterpriseCategory[];
|
|
702
732
|
/**
|
|
703
733
|
* Retrieves an object by its type and ID.
|
|
704
734
|
*
|
|
@@ -714,9 +744,9 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects' {
|
|
|
714
744
|
getById(type: 'object', id: string): MapObject | undefined;
|
|
715
745
|
getById(type: 'point-of-interest', id: string): PointOfInterest | undefined;
|
|
716
746
|
getById(type: 'annotation', id: string): Annotation | undefined;
|
|
717
|
-
getById(type: 'location', id: string):
|
|
718
|
-
getById(type: 'category', id: string):
|
|
719
|
-
getMapDataById(id: string):
|
|
747
|
+
getById(type: 'enterprise-location', id: string): EnterpriseLocation | undefined;
|
|
748
|
+
getById(type: 'enterprise-category', id: string): EnterpriseCategory | undefined;
|
|
749
|
+
getMapDataById(id: string): Places | undefined;
|
|
720
750
|
/**
|
|
721
751
|
* Retrieves a feature by its type and ID from the Mappedin Venue Format (MVF) data.
|
|
722
752
|
*
|
|
@@ -743,14 +773,14 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects' {
|
|
|
743
773
|
languagePacks: {
|
|
744
774
|
[key: string]: {
|
|
745
775
|
location: {
|
|
746
|
-
[key: string]: Partial<
|
|
776
|
+
[key: string]: Partial<MVFEnterpriseLocation>;
|
|
747
777
|
};
|
|
748
778
|
category: {
|
|
749
|
-
[key: string]: Partial<
|
|
779
|
+
[key: string]: Partial<MVFEnterpriseCategory>;
|
|
750
780
|
};
|
|
751
781
|
};
|
|
752
782
|
};
|
|
753
|
-
getPropTranslation(type: 'location' | 'category', prop: string, id: string, fallback:
|
|
783
|
+
getPropTranslation(type: 'enterprise-location' | 'enterprise-category', prop: string, id: string, fallback: MVFEnterpriseLocation[keyof MVFEnterpriseLocation] | MVFEnterpriseCategory[keyof MVFEnterpriseCategory]): unknown;
|
|
754
784
|
changeLanguage(languageCode: string): Promise<void>;
|
|
755
785
|
/**
|
|
756
786
|
* Cleans up resources used by the instance.
|
|
@@ -759,9 +789,9 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects' {
|
|
|
759
789
|
*/
|
|
760
790
|
destroy(): void;
|
|
761
791
|
}
|
|
762
|
-
export { MapDataInternal, Space, Floor, Connection, MapObject, Door, Coordinate, PointOfInterest, Annotation, Hyperlink, Image,
|
|
792
|
+
export { MapDataInternal, Space, Floor, Connection, MapObject, Door, Coordinate, PointOfInterest, Annotation, Hyperlink, Image, EnterpriseLocation, EnterpriseCategory, EnterpriseVenue, };
|
|
763
793
|
export type { TSpaceType } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/space';
|
|
764
|
-
export type {
|
|
794
|
+
export type { Places };
|
|
765
795
|
}
|
|
766
796
|
|
|
767
797
|
declare module '@mappedin/mappedin-js/mappedin-js/src/map-view' {
|
|
@@ -1996,29 +2026,35 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson' {
|
|
|
1996
2026
|
export { Images } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson/images';
|
|
1997
2027
|
}
|
|
1998
2028
|
|
|
2029
|
+
declare module '@mappedin/mappedin-js/mappedin-js/src/search' {
|
|
2030
|
+
export type { SearchResult, SearchResultItem, SearchOptions, Suggestion, SearchResultEnterpriseCategory, SearchResultEnterpriseLocations, SearchResultPlaces, MatchInfo, } from '@mappedin/mappedin-js/mappedin-js/src/search/internal';
|
|
2031
|
+
export type { SearchState } from '@mappedin/mappedin-js/mappedin-js/src/search/external';
|
|
2032
|
+
export { Search } from '@mappedin/mappedin-js/mappedin-js/src/search/external';
|
|
2033
|
+
}
|
|
2034
|
+
|
|
1999
2035
|
declare module '@mappedin/mappedin-js/mappedin-js/src/analytics' {
|
|
2000
2036
|
export { Analytics, AnalyticsInternal } from '@mappedin/mappedin-js/mappedin-js/src/analytics/customer';
|
|
2001
2037
|
export type { AnalyticsUpdateOptions } from '@mappedin/mappedin-js/mappedin-js/src/analytics/customer';
|
|
2002
2038
|
}
|
|
2003
2039
|
|
|
2004
2040
|
declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/category' {
|
|
2005
|
-
import type { EnterpriseCategory } from '@mappedin/mvf';
|
|
2006
|
-
import type { MapDataInternal,
|
|
2041
|
+
import type { EnterpriseCategory as MVFEnterpriseCategory } from '@mappedin/mvf';
|
|
2042
|
+
import type { MapDataInternal, EnterpriseLocation } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
|
|
2007
2043
|
import BaseMapData from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/base-object';
|
|
2008
2044
|
/**
|
|
2009
|
-
*
|
|
2045
|
+
* An EnterpriseCategory is a collection of similar EnterpriseLocations.
|
|
2010
2046
|
*
|
|
2011
2047
|
*/
|
|
2012
|
-
class
|
|
2048
|
+
class EnterpriseCategory extends BaseMapData implements Omit<MVFEnterpriseCategory, 'children' | 'locations'> {
|
|
2013
2049
|
#private;
|
|
2014
2050
|
/**
|
|
2015
2051
|
* @internal
|
|
2016
2052
|
*/
|
|
2017
|
-
static readonly __type = "category";
|
|
2053
|
+
static readonly __type = "enterprise-category";
|
|
2018
2054
|
/**
|
|
2019
2055
|
* @internal
|
|
2020
2056
|
*/
|
|
2021
|
-
readonly __type = "category";
|
|
2057
|
+
readonly __type = "enterprise-category";
|
|
2022
2058
|
name: string;
|
|
2023
2059
|
color?: string | undefined;
|
|
2024
2060
|
externalId: string;
|
|
@@ -2027,24 +2063,24 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/category'
|
|
|
2027
2063
|
iconFromDefaultList?: string | null | undefined;
|
|
2028
2064
|
sortOrder: number;
|
|
2029
2065
|
/**
|
|
2030
|
-
* Checks if the provided instance is of type
|
|
2066
|
+
* Checks if the provided instance is of type EnterpriseCategory.
|
|
2031
2067
|
*
|
|
2032
2068
|
* @param instance The instance to check.
|
|
2033
|
-
* @returns {boolean} True if the instance is a
|
|
2069
|
+
* @returns {boolean} True if the instance is a EnterpriseCategory, false otherwise.
|
|
2034
2070
|
*/
|
|
2035
|
-
static is(instance: object): instance is
|
|
2071
|
+
static is(instance: object): instance is EnterpriseCategory;
|
|
2036
2072
|
/**
|
|
2037
2073
|
* @internal
|
|
2038
2074
|
*/
|
|
2039
2075
|
constructor(data: MapDataInternal, options: {
|
|
2040
|
-
mvfData:
|
|
2076
|
+
mvfData: MVFEnterpriseCategory;
|
|
2041
2077
|
});
|
|
2042
|
-
get children():
|
|
2043
|
-
get locations():
|
|
2078
|
+
get children(): EnterpriseCategory[];
|
|
2079
|
+
get locations(): EnterpriseLocation[];
|
|
2044
2080
|
/**
|
|
2045
|
-
* Serializes the
|
|
2081
|
+
* Serializes the EnterpriseCategory data to JSON.
|
|
2046
2082
|
*
|
|
2047
|
-
* @returns An object representing the
|
|
2083
|
+
* @returns An object representing the EnterpriseCategory.
|
|
2048
2084
|
*/
|
|
2049
2085
|
toJSON(): {
|
|
2050
2086
|
id: string;
|
|
@@ -2057,29 +2093,29 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/category'
|
|
|
2057
2093
|
*/
|
|
2058
2094
|
destroy(): void;
|
|
2059
2095
|
}
|
|
2060
|
-
export default
|
|
2096
|
+
export default EnterpriseCategory;
|
|
2061
2097
|
}
|
|
2062
2098
|
|
|
2063
2099
|
declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/location' {
|
|
2064
|
-
import type { EnterpriseLocation, LocationState, OperationHours, SiblingGroup } from '@mappedin/mvf';
|
|
2100
|
+
import type { EnterpriseLocation as MVFEnterpriseLocation, LocationState, OperationHours, SiblingGroup } from '@mappedin/mvf';
|
|
2065
2101
|
import type { Coordinate, MapDataInternal, Space } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
|
|
2066
2102
|
import BaseMapData from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/base-object';
|
|
2067
2103
|
import type Node from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/node';
|
|
2068
2104
|
/**
|
|
2069
|
-
* A class representing location data within the map.
|
|
2105
|
+
* A class representing enterprise location data within the map.
|
|
2070
2106
|
*
|
|
2071
|
-
*
|
|
2107
|
+
* An EnterpriseLocation is something like a store, or a washroom on a map.
|
|
2072
2108
|
*/
|
|
2073
|
-
class
|
|
2109
|
+
class EnterpriseLocation extends BaseMapData implements Omit<MVFEnterpriseLocation, 'polygons' | 'nodes' | 'links'> {
|
|
2074
2110
|
#private;
|
|
2075
2111
|
/**
|
|
2076
2112
|
* @internal
|
|
2077
2113
|
*/
|
|
2078
|
-
static readonly __type = "location";
|
|
2114
|
+
static readonly __type = "enterprise-location";
|
|
2079
2115
|
/**
|
|
2080
2116
|
* @internal
|
|
2081
2117
|
*/
|
|
2082
|
-
readonly __type = "location";
|
|
2118
|
+
readonly __type = "enterprise-location";
|
|
2083
2119
|
description?: string | undefined;
|
|
2084
2120
|
name: string;
|
|
2085
2121
|
amenity?: string | undefined;
|
|
@@ -2112,25 +2148,25 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/location'
|
|
|
2112
2148
|
tags?: string[] | undefined;
|
|
2113
2149
|
type: string;
|
|
2114
2150
|
/**
|
|
2115
|
-
* Checks if the provided instance is of type
|
|
2151
|
+
* Checks if the provided instance is of type EnterpriseLocation.
|
|
2116
2152
|
*
|
|
2117
2153
|
* @param instance The instance to check.
|
|
2118
|
-
* @returns {boolean} True if the instance is a
|
|
2154
|
+
* @returns {boolean} True if the instance is a EnterpriseLocation, false otherwise.
|
|
2119
2155
|
*/
|
|
2120
|
-
static is(instance: object): instance is
|
|
2156
|
+
static is(instance: object): instance is EnterpriseLocation;
|
|
2121
2157
|
/**
|
|
2122
2158
|
* @internal
|
|
2123
2159
|
*/
|
|
2124
2160
|
constructor(data: MapDataInternal, options: {
|
|
2125
|
-
mvfData:
|
|
2161
|
+
mvfData: MVFEnterpriseLocation;
|
|
2126
2162
|
});
|
|
2127
2163
|
get coordinates(): Coordinate[];
|
|
2128
2164
|
get nodes(): Node[];
|
|
2129
2165
|
get spaces(): Space[];
|
|
2130
2166
|
/**
|
|
2131
|
-
* Serializes the
|
|
2167
|
+
* Serializes the EnterpriseLocation data to JSON.
|
|
2132
2168
|
*
|
|
2133
|
-
* @returns An object representing the
|
|
2169
|
+
* @returns An object representing the EnterpriseLocation.
|
|
2134
2170
|
*/
|
|
2135
2171
|
toJSON(): {
|
|
2136
2172
|
id: string;
|
|
@@ -2143,26 +2179,26 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/location'
|
|
|
2143
2179
|
*/
|
|
2144
2180
|
destroy(): void;
|
|
2145
2181
|
}
|
|
2146
|
-
export default
|
|
2182
|
+
export default EnterpriseLocation;
|
|
2147
2183
|
}
|
|
2148
2184
|
|
|
2149
2185
|
declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/venue' {
|
|
2150
|
-
import type { EnterpriseVenue, Language } from '@mappedin/mvf';
|
|
2186
|
+
import type { EnterpriseVenue as MVFEnterpriseVenue, Language } from '@mappedin/mvf';
|
|
2151
2187
|
import type { Hyperlink, MapDataInternal } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
|
|
2152
2188
|
import BaseMapData from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/base-object';
|
|
2153
2189
|
/**
|
|
2154
|
-
*
|
|
2190
|
+
* An EnterpriseVenue is a specific place (like a mall, office building, or stadium) with one or more Floors
|
|
2155
2191
|
*/
|
|
2156
|
-
class
|
|
2192
|
+
class EnterpriseVenue extends BaseMapData implements MVFEnterpriseVenue {
|
|
2157
2193
|
#private;
|
|
2158
2194
|
/**
|
|
2159
2195
|
* @internal
|
|
2160
2196
|
*/
|
|
2161
|
-
static readonly __type = "venue";
|
|
2197
|
+
static readonly __type = "enterprise-venue";
|
|
2162
2198
|
/**
|
|
2163
2199
|
* @internal
|
|
2164
2200
|
*/
|
|
2165
|
-
readonly __type = "venue";
|
|
2201
|
+
readonly __type = "enterprise-venue";
|
|
2166
2202
|
countrycode?: string | undefined;
|
|
2167
2203
|
externalId: string;
|
|
2168
2204
|
defaultLanguage: Language;
|
|
@@ -2177,28 +2213,28 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/venue' {
|
|
|
2177
2213
|
topLocations?: string[] | undefined;
|
|
2178
2214
|
tzid?: string | undefined;
|
|
2179
2215
|
/**
|
|
2180
|
-
* Checks if the provided instance is of type
|
|
2216
|
+
* Checks if the provided instance is of type EnterpriseVenue.
|
|
2181
2217
|
*
|
|
2182
2218
|
* @param instance The instance to check.
|
|
2183
|
-
* @returns {boolean} True if the instance is a
|
|
2219
|
+
* @returns {boolean} True if the instance is a EnterpriseVenue, false otherwise.
|
|
2184
2220
|
*/
|
|
2185
|
-
static is(instance: object): instance is
|
|
2221
|
+
static is(instance: object): instance is EnterpriseVenue;
|
|
2186
2222
|
/**
|
|
2187
2223
|
* @internal
|
|
2188
2224
|
*/
|
|
2189
2225
|
constructor(_data: MapDataInternal, options: {
|
|
2190
|
-
mvfData:
|
|
2226
|
+
mvfData: MVFEnterpriseVenue;
|
|
2191
2227
|
});
|
|
2192
2228
|
/**
|
|
2193
|
-
* Gets the name of the
|
|
2229
|
+
* Gets the name of the EnterpriseVenue.
|
|
2194
2230
|
*
|
|
2195
|
-
* @returns {string} The name of the
|
|
2231
|
+
* @returns {string} The name of the EnterpriseVenue.
|
|
2196
2232
|
*/
|
|
2197
2233
|
get name(): string;
|
|
2198
2234
|
/**
|
|
2199
|
-
* Serializes the
|
|
2235
|
+
* Serializes the EnterpriseVenue data to JSON.
|
|
2200
2236
|
*
|
|
2201
|
-
* @returns An object representing the
|
|
2237
|
+
* @returns An object representing the EnterpriseVenue.
|
|
2202
2238
|
*/
|
|
2203
2239
|
toJSON(): {
|
|
2204
2240
|
id: string;
|
|
@@ -2211,7 +2247,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/venue' {
|
|
|
2211
2247
|
*/
|
|
2212
2248
|
destroy(): void;
|
|
2213
2249
|
}
|
|
2214
|
-
export default
|
|
2250
|
+
export default EnterpriseVenue;
|
|
2215
2251
|
}
|
|
2216
2252
|
|
|
2217
2253
|
declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/stacked-maps/stacked-maps' {
|
|
@@ -2450,10 +2486,10 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/door' {
|
|
|
2450
2486
|
declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/space' {
|
|
2451
2487
|
import type { Image, SpaceCollection } from '@mappedin/mvf';
|
|
2452
2488
|
import Coordinate from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/coordinate';
|
|
2453
|
-
import type {
|
|
2489
|
+
import type { EnterpriseLocation, MapDataInternal } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
|
|
2454
2490
|
import type Floor from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/floor';
|
|
2455
2491
|
import BaseMapData from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/base-object';
|
|
2456
|
-
import Door from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/door';
|
|
2492
|
+
import type Door from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/door';
|
|
2457
2493
|
/**
|
|
2458
2494
|
* Represents the various types of spaces that can be defined within a map.
|
|
2459
2495
|
* - 'room': A standard room or enclosed area.
|
|
@@ -2511,7 +2547,7 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/space' {
|
|
|
2511
2547
|
/**
|
|
2512
2548
|
* @internal
|
|
2513
2549
|
*/
|
|
2514
|
-
get locations():
|
|
2550
|
+
get locations(): EnterpriseLocation[];
|
|
2515
2551
|
/**
|
|
2516
2552
|
* Gets the {@link Floor} object associated with the space.
|
|
2517
2553
|
*
|
|
@@ -3206,13 +3242,15 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/image' {
|
|
|
3206
3242
|
declare module '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/types' {
|
|
3207
3243
|
import type Door from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/door';
|
|
3208
3244
|
import type Floor from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/floor';
|
|
3209
|
-
import type Node from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/node';
|
|
3210
3245
|
import type Space from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/space';
|
|
3211
3246
|
import type PointOfInterest from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/poi';
|
|
3212
3247
|
import type Annotation from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/annotation';
|
|
3213
3248
|
import type Connection from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/connection';
|
|
3214
3249
|
import type MapObject from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects/object';
|
|
3215
|
-
|
|
3250
|
+
/**
|
|
3251
|
+
* Places are the main objects that can be searched for.
|
|
3252
|
+
*/
|
|
3253
|
+
export type Places = Space | Floor | Door | Connection | MapObject | PointOfInterest | Annotation;
|
|
3216
3254
|
}
|
|
3217
3255
|
|
|
3218
3256
|
declare module '@mappedin/mappedin-js/mappedin-js/src' {
|
|
@@ -3498,8 +3536,9 @@ declare module '@mappedin/mappedin-js/mappedin-js/src' {
|
|
|
3498
3536
|
export type { Label, Marker, Path, Shape, CameraTransform, Model } from '@mappedin/mappedin-js/mappedin-js/src/map-view-objects';
|
|
3499
3537
|
export type { Navigation, TNavigationOptions } from '@mappedin/mappedin-js/mappedin-js/src/navigation';
|
|
3500
3538
|
export type { TSpaceType } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
|
|
3501
|
-
export { Coordinate, Annotation, Connection, Door, Floor, MapObject, PointOfInterest, Space, Image, Hyperlink,
|
|
3539
|
+
export { Coordinate, Annotation, Connection, Door, Floor, MapObject, PointOfInterest, Space, Image, Hyperlink, EnterpriseLocation, EnterpriseCategory, EnterpriseVenue, type Places, } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
|
|
3502
3540
|
export type { Camera, Models, Labels, Markers, Paths, Exporter, Directions, Style, Shapes, Outdoor, } from '@mappedin/mappedin-js/mappedin-js/src/api-geojson';
|
|
3541
|
+
export type { SearchResult, SearchResultItem, SearchResultEnterpriseCategory, SearchResultEnterpriseLocations, SearchResultPlaces, SearchOptions, Search, Suggestion, MatchInfo, } from '@mappedin/mappedin-js/mappedin-js/src/search';
|
|
3503
3542
|
}
|
|
3504
3543
|
|
|
3505
3544
|
declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/blue-dot/blue-dot' {
|
|
@@ -3730,10 +3769,18 @@ declare module '@mappedin/mappedin-js/geojson/src/components/marker' {
|
|
|
3730
3769
|
}
|
|
3731
3770
|
|
|
3732
3771
|
declare module '@mappedin/mappedin-js/geojson/src/components/path' {
|
|
3733
|
-
import {
|
|
3734
|
-
import type {
|
|
3772
|
+
import { Vector3 } from 'three';
|
|
3773
|
+
import type { Mesh, ShaderMaterial, BufferGeometry } from 'three';
|
|
3774
|
+
import type { EntityId, Position } from '@mappedin/mappedin-js/geojson/src/types';
|
|
3735
3775
|
import { Geometry3DObject3D } from '@mappedin/mappedin-js/geojson/src/entities/geometry3d';
|
|
3736
3776
|
import type { FeatureCollection, Point } from 'geojson';
|
|
3777
|
+
import type { GroupContainerState } from '@mappedin/mappedin-js/geojson/src/entities/group-container';
|
|
3778
|
+
export type PathProperties = {
|
|
3779
|
+
/**
|
|
3780
|
+
* The parentId of the point. The point will be anchored to the altitude of this parent group container.
|
|
3781
|
+
*/
|
|
3782
|
+
parentId?: EntityId<GroupContainerState> | string | null;
|
|
3783
|
+
};
|
|
3737
3784
|
/**
|
|
3738
3785
|
* State representing a Path
|
|
3739
3786
|
*/
|
|
@@ -3805,7 +3852,7 @@ declare module '@mappedin/mappedin-js/geojson/src/components/path' {
|
|
|
3805
3852
|
material?: ShaderMaterial;
|
|
3806
3853
|
geometry?: BufferGeometry;
|
|
3807
3854
|
outline?: Mesh;
|
|
3808
|
-
feature: FeatureCollection<Point>;
|
|
3855
|
+
feature: FeatureCollection<Point, PathProperties>;
|
|
3809
3856
|
options: AddPathOptions;
|
|
3810
3857
|
nearRadius: number;
|
|
3811
3858
|
farRadius: number;
|
|
@@ -3814,8 +3861,12 @@ declare module '@mappedin/mappedin-js/geojson/src/components/path' {
|
|
|
3814
3861
|
altitudeAdjustment: number;
|
|
3815
3862
|
displayArrowsOnPath: boolean;
|
|
3816
3863
|
animateArrowsOnPath: boolean;
|
|
3864
|
+
/**
|
|
3865
|
+
* If the path is vertical it will be rebuilt whenever altitudeDirty = true. This will be set during the first render of the path.
|
|
3866
|
+
*/
|
|
3867
|
+
isVertical: boolean;
|
|
3817
3868
|
dirty: boolean;
|
|
3818
|
-
constructor(feature: FeatureCollection<Point,
|
|
3869
|
+
constructor(feature: FeatureCollection<Point, PathProperties>, options?: AddPathOptions);
|
|
3819
3870
|
setColor(): void;
|
|
3820
3871
|
setOpacity(): void;
|
|
3821
3872
|
set completeFraction(value: number);
|
|
@@ -5190,6 +5241,7 @@ declare module '@mappedin/mappedin-js/geojson/src/renderer' {
|
|
|
5190
5241
|
import './utils/object-this-polyfill';
|
|
5191
5242
|
import { Vector3, Raycaster, Camera as ThreeCamera } from 'three';
|
|
5192
5243
|
import type { GroupContainerState } from '@mappedin/mappedin-js/geojson/src/entities/group-container';
|
|
5244
|
+
import { GroupContainerObject3D } from '@mappedin/mappedin-js/geojson/src/entities/group-container';
|
|
5193
5245
|
import { PubSub } from '@mappedin/mappedin-js/packages/common/pubsub';
|
|
5194
5246
|
import { CollisionSystem } from '@mappedin/mappedin-js/geojson/src/systems/collisions/system';
|
|
5195
5247
|
import { InteractionSystem } from '@mappedin/mappedin-js/geojson/src/systems/interactions';
|
|
@@ -5207,7 +5259,7 @@ declare module '@mappedin/mappedin-js/geojson/src/renderer' {
|
|
|
5207
5259
|
import { TwoDVisibilitySystem } from '@mappedin/mappedin-js/geojson/src/systems/2d-visibility/system';
|
|
5208
5260
|
import { RenderSystem } from '@mappedin/mappedin-js/geojson/src/systems/render/system';
|
|
5209
5261
|
import type { Position as GeoJsonPosition, FeatureCollection, LineString, MultiPolygon, Polygon, Point, Feature } from 'geojson';
|
|
5210
|
-
import type { AddPathOptions, PathState } from '@mappedin/mappedin-js/geojson/src/components/path';
|
|
5262
|
+
import type { AddPathOptions, PathProperties, PathState } from '@mappedin/mappedin-js/geojson/src/components/path';
|
|
5211
5263
|
import { StackSystem } from '@mappedin/mappedin-js/geojson/src/systems/stack/system';
|
|
5212
5264
|
import { CameraSystem } from '@mappedin/mappedin-js/geojson/src/systems/camera';
|
|
5213
5265
|
import { DOMDrawSystem } from '@mappedin/mappedin-js/geojson/src/systems/dom-draw/system';
|
|
@@ -5320,6 +5372,7 @@ declare module '@mappedin/mappedin-js/geojson/src/renderer' {
|
|
|
5320
5372
|
id: string;
|
|
5321
5373
|
type: string;
|
|
5322
5374
|
};
|
|
5375
|
+
getParentContainer: (parent?: EntityId<GroupContainerState> | string | number | null, defaultToScene?: boolean) => GroupContainerObject3D | undefined;
|
|
5323
5376
|
/**
|
|
5324
5377
|
* Add a custom THREE.js entity to the map. The geometry is placed at the GeoJSON coordinate and includes a `setup` and `update` methods.
|
|
5325
5378
|
* Setup is called when the first time the geometry visible, and update is called every render frame.
|
|
@@ -5348,21 +5401,13 @@ declare module '@mappedin/mappedin-js/geojson/src/renderer' {
|
|
|
5348
5401
|
/**
|
|
5349
5402
|
* Add a Path along a set of GeoJSON coordinates that can be animated.
|
|
5350
5403
|
*/
|
|
5351
|
-
addPath(geometry: FeatureCollection<Point,
|
|
5404
|
+
addPath(geometry: FeatureCollection<Point, PathProperties>, options?: AddPathOptions, parent?: EntityId<GroupContainerState> | string | null): EntityId<PathState>;
|
|
5352
5405
|
/**
|
|
5353
5406
|
* Updates the watermark on the map.
|
|
5354
5407
|
*
|
|
5355
5408
|
* @param options {WatermarkOptions}
|
|
5356
5409
|
*/
|
|
5357
5410
|
updateWatermark(options: Omit<WatermarkOptions, 'onClick'>): void;
|
|
5358
|
-
/**
|
|
5359
|
-
* @deprecated
|
|
5360
|
-
* @TODO: remove this method and do this in setstate instead
|
|
5361
|
-
*/
|
|
5362
|
-
updateStackState(container: EntityId<GroupContainerState> | string | number, opts: {
|
|
5363
|
-
expandedFactor?: number;
|
|
5364
|
-
activeId?: string;
|
|
5365
|
-
}): void;
|
|
5366
5411
|
/**
|
|
5367
5412
|
* Remove an entity from the renderer and release associated resources.
|
|
5368
5413
|
*/
|
|
@@ -6908,6 +6953,339 @@ declare module '@mappedin/mappedin-js/mappedin-js/src/api-geojson/images' {
|
|
|
6908
6953
|
export {};
|
|
6909
6954
|
}
|
|
6910
6955
|
|
|
6956
|
+
declare module '@mappedin/mappedin-js/mappedin-js/src/search/internal' {
|
|
6957
|
+
import type { SearchResult as MiniSearchResult, Suggestion, MatchInfo } from 'minisearch';
|
|
6958
|
+
import type { EnterpriseLocation, EnterpriseCategory, Places } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
|
|
6959
|
+
import type MapData from '@mappedin/mappedin-js/mappedin-js/src/map-data';
|
|
6960
|
+
import { z } from 'zod';
|
|
6961
|
+
export class InternalSearch {
|
|
6962
|
+
constructor(mapData: MapData);
|
|
6963
|
+
/**
|
|
6964
|
+
* Populates the search indexes with the map data.
|
|
6965
|
+
* @returns A promise that resolves when the indexes are populated.
|
|
6966
|
+
*/
|
|
6967
|
+
populate(): Promise<any[]>;
|
|
6968
|
+
search(term: string, options?: SearchOptions): Promise<SearchResult>;
|
|
6969
|
+
suggest(term: string, options?: SuggestOptions): Promise<Suggestion[]>;
|
|
6970
|
+
}
|
|
6971
|
+
export type SearchResultItem<T extends Places | EnterpriseLocation | EnterpriseCategory> = {
|
|
6972
|
+
type: T['__type'];
|
|
6973
|
+
match: MiniSearchResult['match'];
|
|
6974
|
+
score: number;
|
|
6975
|
+
item: T;
|
|
6976
|
+
};
|
|
6977
|
+
/**
|
|
6978
|
+
* @interface
|
|
6979
|
+
*/
|
|
6980
|
+
export type SearchResultEnterpriseCategory = SearchResultItem<EnterpriseCategory>;
|
|
6981
|
+
/**
|
|
6982
|
+
* @interface
|
|
6983
|
+
*/
|
|
6984
|
+
export type SearchResultEnterpriseLocations = SearchResultItem<EnterpriseLocation>;
|
|
6985
|
+
/**
|
|
6986
|
+
* @interface
|
|
6987
|
+
*/
|
|
6988
|
+
export type SearchResultPlaces = SearchResultItem<Places>;
|
|
6989
|
+
/**
|
|
6990
|
+
* Search results
|
|
6991
|
+
*/
|
|
6992
|
+
export type SearchResult = {
|
|
6993
|
+
/**
|
|
6994
|
+
* Places search results
|
|
6995
|
+
*/
|
|
6996
|
+
places: SearchResultPlaces[];
|
|
6997
|
+
/**
|
|
6998
|
+
* Enterprise Locations search results
|
|
6999
|
+
*/
|
|
7000
|
+
enterpriseLocations?: SearchResultEnterpriseLocations[];
|
|
7001
|
+
/**
|
|
7002
|
+
* Enterprise Categories search results
|
|
7003
|
+
*/
|
|
7004
|
+
enterpriseCategories?: SearchResultEnterpriseCategory[];
|
|
7005
|
+
};
|
|
7006
|
+
export function removeAccents(it: string): string;
|
|
7007
|
+
const searchOptionsSchema: z.ZodObject<{
|
|
7008
|
+
/**
|
|
7009
|
+
* Options for searching places.
|
|
7010
|
+
* @property {Object} [fields] - Fields to search in places.
|
|
7011
|
+
* @property {boolean} [name] - Whether to search in the name field of places.
|
|
7012
|
+
* @property {boolean} [description] - Whether to search in the description field of places.
|
|
7013
|
+
* @property {number} [limit] - Maximum number of place results to return.
|
|
7014
|
+
*/
|
|
7015
|
+
places: z.ZodOptional<z.ZodObject<{
|
|
7016
|
+
/**
|
|
7017
|
+
* Fields to search in places.
|
|
7018
|
+
* @property {boolean} [name] - Whether to search in the name field of places.
|
|
7019
|
+
* @property {boolean} [description] - Whether to search in the description field of places.
|
|
7020
|
+
*/
|
|
7021
|
+
fields: z.ZodOptional<z.ZodObject<{
|
|
7022
|
+
/** Enable searching by place name */
|
|
7023
|
+
name: z.ZodOptional<z.ZodBoolean>;
|
|
7024
|
+
/** Enable searching by place description */
|
|
7025
|
+
description: z.ZodOptional<z.ZodBoolean>;
|
|
7026
|
+
}, "strip", z.ZodTypeAny, {
|
|
7027
|
+
name?: boolean | undefined;
|
|
7028
|
+
description?: boolean | undefined;
|
|
7029
|
+
}, {
|
|
7030
|
+
name?: boolean | undefined;
|
|
7031
|
+
description?: boolean | undefined;
|
|
7032
|
+
}>>;
|
|
7033
|
+
/** Maximum number of place results to return */
|
|
7034
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
7035
|
+
}, "strip", z.ZodTypeAny, {
|
|
7036
|
+
limit?: number | undefined;
|
|
7037
|
+
fields?: {
|
|
7038
|
+
name?: boolean | undefined;
|
|
7039
|
+
description?: boolean | undefined;
|
|
7040
|
+
} | undefined;
|
|
7041
|
+
}, {
|
|
7042
|
+
limit?: number | undefined;
|
|
7043
|
+
fields?: {
|
|
7044
|
+
name?: boolean | undefined;
|
|
7045
|
+
description?: boolean | undefined;
|
|
7046
|
+
} | undefined;
|
|
7047
|
+
}>>;
|
|
7048
|
+
/**
|
|
7049
|
+
* Options for searching categories.
|
|
7050
|
+
* @property {Object} [fields] - Fields to search in categories.
|
|
7051
|
+
* @property {boolean} [name] - Whether to search in the name field of categories.
|
|
7052
|
+
* @property {boolean} [description] - Whether to search in the description field of categories.
|
|
7053
|
+
* @property {boolean} ['locations.name'] - Whether to search in the locations' names of categories.
|
|
7054
|
+
* @property {number} [limit] - Maximum number of category results to return.
|
|
7055
|
+
*/
|
|
7056
|
+
enterpriseCategories: z.ZodOptional<z.ZodObject<{
|
|
7057
|
+
/**
|
|
7058
|
+
* Fields to search in categories.
|
|
7059
|
+
* @property {boolean} [name] - Whether to search in the name field of categories.
|
|
7060
|
+
* @property {boolean} [description] - Whether to search in the description field of categories.
|
|
7061
|
+
* @property {boolean} ['locations.name'] - Whether to search in the locations' names of categories.
|
|
7062
|
+
*/
|
|
7063
|
+
fields: z.ZodOptional<z.ZodObject<{
|
|
7064
|
+
/** Enable searching by category name */
|
|
7065
|
+
name: z.ZodOptional<z.ZodBoolean>;
|
|
7066
|
+
/** Enable searching by category description */
|
|
7067
|
+
description: z.ZodOptional<z.ZodBoolean>;
|
|
7068
|
+
/** Enable searching by names of locations within the category */
|
|
7069
|
+
'locations.name': z.ZodOptional<z.ZodBoolean>;
|
|
7070
|
+
}, "strip", z.ZodTypeAny, {
|
|
7071
|
+
name?: boolean | undefined;
|
|
7072
|
+
description?: boolean | undefined;
|
|
7073
|
+
'locations.name'?: boolean | undefined;
|
|
7074
|
+
}, {
|
|
7075
|
+
name?: boolean | undefined;
|
|
7076
|
+
description?: boolean | undefined;
|
|
7077
|
+
'locations.name'?: boolean | undefined;
|
|
7078
|
+
}>>;
|
|
7079
|
+
/** Maximum number of category results to return */
|
|
7080
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
7081
|
+
}, "strip", z.ZodTypeAny, {
|
|
7082
|
+
limit?: number | undefined;
|
|
7083
|
+
fields?: {
|
|
7084
|
+
name?: boolean | undefined;
|
|
7085
|
+
description?: boolean | undefined;
|
|
7086
|
+
'locations.name'?: boolean | undefined;
|
|
7087
|
+
} | undefined;
|
|
7088
|
+
}, {
|
|
7089
|
+
limit?: number | undefined;
|
|
7090
|
+
fields?: {
|
|
7091
|
+
name?: boolean | undefined;
|
|
7092
|
+
description?: boolean | undefined;
|
|
7093
|
+
'locations.name'?: boolean | undefined;
|
|
7094
|
+
} | undefined;
|
|
7095
|
+
}>>;
|
|
7096
|
+
/**
|
|
7097
|
+
* Options for searching locations.
|
|
7098
|
+
* @property {Object} [fields] - Fields to search in locations.
|
|
7099
|
+
* @property {boolean} [name] - Whether to search in the name field of locations.
|
|
7100
|
+
* @property {boolean} [tags] - Whether to search in the tags field of locations.
|
|
7101
|
+
* @property {boolean} [description] - Whether to search in the description field of locations.
|
|
7102
|
+
* @property {number} [limit] - Maximum number of location results to return.
|
|
7103
|
+
*/
|
|
7104
|
+
enterpriseLocations: z.ZodOptional<z.ZodObject<{
|
|
7105
|
+
/**
|
|
7106
|
+
* Fields to search in locations.
|
|
7107
|
+
* @property {boolean} [name] - Whether to search in the name field of locations.
|
|
7108
|
+
* @property {boolean} [tags] - Whether to search in the tags field of locations.
|
|
7109
|
+
* @property {boolean} [description] - Whether to search in the description field of locations.
|
|
7110
|
+
*/
|
|
7111
|
+
fields: z.ZodOptional<z.ZodObject<{
|
|
7112
|
+
/** Enable searching by location name */
|
|
7113
|
+
name: z.ZodOptional<z.ZodBoolean>;
|
|
7114
|
+
/** Enable searching by location tags */
|
|
7115
|
+
tags: z.ZodOptional<z.ZodBoolean>;
|
|
7116
|
+
/** Enable searching by location description */
|
|
7117
|
+
description: z.ZodOptional<z.ZodBoolean>;
|
|
7118
|
+
}, "strip", z.ZodTypeAny, {
|
|
7119
|
+
name?: boolean | undefined;
|
|
7120
|
+
description?: boolean | undefined;
|
|
7121
|
+
tags?: boolean | undefined;
|
|
7122
|
+
}, {
|
|
7123
|
+
name?: boolean | undefined;
|
|
7124
|
+
description?: boolean | undefined;
|
|
7125
|
+
tags?: boolean | undefined;
|
|
7126
|
+
}>>;
|
|
7127
|
+
/** Maximum number of location results to return */
|
|
7128
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
7129
|
+
}, "strip", z.ZodTypeAny, {
|
|
7130
|
+
limit?: number | undefined;
|
|
7131
|
+
fields?: {
|
|
7132
|
+
name?: boolean | undefined;
|
|
7133
|
+
description?: boolean | undefined;
|
|
7134
|
+
tags?: boolean | undefined;
|
|
7135
|
+
} | undefined;
|
|
7136
|
+
}, {
|
|
7137
|
+
limit?: number | undefined;
|
|
7138
|
+
fields?: {
|
|
7139
|
+
name?: boolean | undefined;
|
|
7140
|
+
description?: boolean | undefined;
|
|
7141
|
+
tags?: boolean | undefined;
|
|
7142
|
+
} | undefined;
|
|
7143
|
+
}>>;
|
|
7144
|
+
}, "strip", z.ZodTypeAny, {
|
|
7145
|
+
enterpriseLocations?: {
|
|
7146
|
+
limit?: number | undefined;
|
|
7147
|
+
fields?: {
|
|
7148
|
+
name?: boolean | undefined;
|
|
7149
|
+
description?: boolean | undefined;
|
|
7150
|
+
tags?: boolean | undefined;
|
|
7151
|
+
} | undefined;
|
|
7152
|
+
} | undefined;
|
|
7153
|
+
enterpriseCategories?: {
|
|
7154
|
+
limit?: number | undefined;
|
|
7155
|
+
fields?: {
|
|
7156
|
+
name?: boolean | undefined;
|
|
7157
|
+
description?: boolean | undefined;
|
|
7158
|
+
'locations.name'?: boolean | undefined;
|
|
7159
|
+
} | undefined;
|
|
7160
|
+
} | undefined;
|
|
7161
|
+
places?: {
|
|
7162
|
+
limit?: number | undefined;
|
|
7163
|
+
fields?: {
|
|
7164
|
+
name?: boolean | undefined;
|
|
7165
|
+
description?: boolean | undefined;
|
|
7166
|
+
} | undefined;
|
|
7167
|
+
} | undefined;
|
|
7168
|
+
}, {
|
|
7169
|
+
enterpriseLocations?: {
|
|
7170
|
+
limit?: number | undefined;
|
|
7171
|
+
fields?: {
|
|
7172
|
+
name?: boolean | undefined;
|
|
7173
|
+
description?: boolean | undefined;
|
|
7174
|
+
tags?: boolean | undefined;
|
|
7175
|
+
} | undefined;
|
|
7176
|
+
} | undefined;
|
|
7177
|
+
enterpriseCategories?: {
|
|
7178
|
+
limit?: number | undefined;
|
|
7179
|
+
fields?: {
|
|
7180
|
+
name?: boolean | undefined;
|
|
7181
|
+
description?: boolean | undefined;
|
|
7182
|
+
'locations.name'?: boolean | undefined;
|
|
7183
|
+
} | undefined;
|
|
7184
|
+
} | undefined;
|
|
7185
|
+
places?: {
|
|
7186
|
+
limit?: number | undefined;
|
|
7187
|
+
fields?: {
|
|
7188
|
+
name?: boolean | undefined;
|
|
7189
|
+
description?: boolean | undefined;
|
|
7190
|
+
} | undefined;
|
|
7191
|
+
} | undefined;
|
|
7192
|
+
}>;
|
|
7193
|
+
const suggestOptionsSchema: z.ZodObject<{
|
|
7194
|
+
/**
|
|
7195
|
+
* Options for searching places.
|
|
7196
|
+
* @property {boolean} [enabled] - Whether to search in places.
|
|
7197
|
+
*/
|
|
7198
|
+
places: z.ZodOptional<z.ZodObject<{
|
|
7199
|
+
/** Enable searching by place name */
|
|
7200
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
7201
|
+
}, "strip", z.ZodTypeAny, {
|
|
7202
|
+
enabled?: boolean | undefined;
|
|
7203
|
+
}, {
|
|
7204
|
+
enabled?: boolean | undefined;
|
|
7205
|
+
}>>;
|
|
7206
|
+
/**
|
|
7207
|
+
* Options for searching locations.
|
|
7208
|
+
* @property {boolean} [enabled] - Whether to search in locations.
|
|
7209
|
+
*/
|
|
7210
|
+
enterpriseLocations: z.ZodOptional<z.ZodObject<{
|
|
7211
|
+
/** Enable searching by location name */
|
|
7212
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
7213
|
+
}, "strip", z.ZodTypeAny, {
|
|
7214
|
+
enabled?: boolean | undefined;
|
|
7215
|
+
}, {
|
|
7216
|
+
enabled?: boolean | undefined;
|
|
7217
|
+
}>>;
|
|
7218
|
+
}, "strip", z.ZodTypeAny, {
|
|
7219
|
+
enterpriseLocations?: {
|
|
7220
|
+
enabled?: boolean | undefined;
|
|
7221
|
+
} | undefined;
|
|
7222
|
+
places?: {
|
|
7223
|
+
enabled?: boolean | undefined;
|
|
7224
|
+
} | undefined;
|
|
7225
|
+
}, {
|
|
7226
|
+
enterpriseLocations?: {
|
|
7227
|
+
enabled?: boolean | undefined;
|
|
7228
|
+
} | undefined;
|
|
7229
|
+
places?: {
|
|
7230
|
+
enabled?: boolean | undefined;
|
|
7231
|
+
} | undefined;
|
|
7232
|
+
}>;
|
|
7233
|
+
export type SearchOptions = z.infer<typeof searchOptionsSchema>;
|
|
7234
|
+
export type SuggestOptions = z.infer<typeof suggestOptionsSchema>;
|
|
7235
|
+
export { Suggestion, MatchInfo };
|
|
7236
|
+
}
|
|
7237
|
+
|
|
7238
|
+
declare module '@mappedin/mappedin-js/mappedin-js/src/search/external' {
|
|
7239
|
+
import type MapData from '@mappedin/mappedin-js/mappedin-js/src/map-data';
|
|
7240
|
+
import type { InternalSearch, SearchOptions, SuggestOptions } from '@mappedin/mappedin-js/mappedin-js/src/search/internal';
|
|
7241
|
+
import type { MapDataInternal } from '@mappedin/mappedin-js/mappedin-js/src/map-data-objects';
|
|
7242
|
+
export class Search {
|
|
7243
|
+
#private;
|
|
7244
|
+
/**
|
|
7245
|
+
* Whether the search is enabled.
|
|
7246
|
+
* @default false
|
|
7247
|
+
*/
|
|
7248
|
+
enabled: boolean;
|
|
7249
|
+
constructor(mapData: MapData, mapDataInternal: MapDataInternal, { enabled }?: {
|
|
7250
|
+
enabled?: boolean;
|
|
7251
|
+
});
|
|
7252
|
+
/**
|
|
7253
|
+
* Searches for places, locations, and categories.
|
|
7254
|
+
* @param term - The search term.
|
|
7255
|
+
* @param options - The search options.
|
|
7256
|
+
* @returns The search results.
|
|
7257
|
+
* @example
|
|
7258
|
+
* ```ts
|
|
7259
|
+
* const results = await search.query('Coffee Shop');
|
|
7260
|
+
* console.log(results.locations);
|
|
7261
|
+
* ```
|
|
7262
|
+
*/
|
|
7263
|
+
query(term: string, options?: SearchOptions): ReturnType<typeof InternalSearch.prototype.search>;
|
|
7264
|
+
/**
|
|
7265
|
+
* Suggests the names of places, locations, and categories.
|
|
7266
|
+
* @param term - The search term.
|
|
7267
|
+
* @param options - The suggest options.
|
|
7268
|
+
* @returns The search suggestions.
|
|
7269
|
+
* @example
|
|
7270
|
+
* ```ts
|
|
7271
|
+
* const suggestions = await search.suggest('Coffee');
|
|
7272
|
+
* console.log(suggestions);
|
|
7273
|
+
* ```
|
|
7274
|
+
*/
|
|
7275
|
+
suggest(term: string, options?: SuggestOptions): Promise<import("minisearch").Suggestion[]>;
|
|
7276
|
+
/**
|
|
7277
|
+
* Enables the search.
|
|
7278
|
+
*/
|
|
7279
|
+
enable(): Promise<void>;
|
|
7280
|
+
}
|
|
7281
|
+
export type SearchState = {
|
|
7282
|
+
/**
|
|
7283
|
+
* Whether the search is enabled.
|
|
7284
|
+
*/
|
|
7285
|
+
enabled: boolean;
|
|
7286
|
+
};
|
|
7287
|
+
}
|
|
7288
|
+
|
|
6911
7289
|
declare module '@mappedin/mappedin-js/mappedin-js/src/analytics/customer' {
|
|
6912
7290
|
/**
|
|
6913
7291
|
* Valid track-analytics API contexts. These should match the expected values of that endpoint or the requests will fail.
|
|
@@ -8293,7 +8671,7 @@ declare module '@mappedin/mappedin-js/geojson/src/entities/utils' {
|
|
|
8293
8671
|
export function updateGroupTexture(entity: Geometry3D | Geometry2D | GeometryGroupObject3D | GroupContainerObject3D, update?: Pick<GeometryGroupStyleComponent, 'texture' | 'topTexture'>): void;
|
|
8294
8672
|
export function updateIndividualGeometryTexture(entity: Geometry3D, update?: Pick<StyleComponent, 'texture' | 'topTexture'>): boolean;
|
|
8295
8673
|
export function updateIndividualGeometryOpacity(entity: Geometry3D, update?: number): boolean;
|
|
8296
|
-
export function updateAltitude(entity: Geometry3D | Geometry2D | GeometryGroupObject3D | GroupContainerObject3D, update?: number):
|
|
8674
|
+
export function updateAltitude(entity: Geometry3D | Geometry2D | GeometryGroupObject3D | GroupContainerObject3D, update?: number): boolean;
|
|
8297
8675
|
export function updateOutline(entity: Geometry3DTypes, update?: boolean): boolean;
|
|
8298
8676
|
}
|
|
8299
8677
|
|
|
@@ -16876,8 +17254,10 @@ declare module '@mappedin/mappedin-js/geojson/src/systems/path/system' {
|
|
|
16876
17254
|
export class PathSystem extends PubSub<{
|
|
16877
17255
|
'animate:path': undefined;
|
|
16878
17256
|
}> {
|
|
17257
|
+
altitudeDirty: boolean;
|
|
16879
17258
|
convertTo3DMapPosition: RendererCore['convertTo3DMapPosition'];
|
|
16880
|
-
|
|
17259
|
+
getParentContainer: RendererCore['getParentContainer'];
|
|
17260
|
+
constructor(rendererState: RendererState, convertTo3DMapPosition: RendererCore['convertTo3DMapPosition'], getParentContainer: RendererCore['getParentContainer']);
|
|
16881
17261
|
update(minZoomAltitude: number, maxZoomAltitude: number, currentZoomAltitude: number): void;
|
|
16882
17262
|
}
|
|
16883
17263
|
}
|