@mappedin/react-sdk 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-EAT7BLOM.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/index.css +1 -1
- package/lib/esm/index.d.ts +476 -97
- package/lib/esm/index.js +1 -1
- package/lib/esm/inspector-75FCRCUV.js +1 -0
- package/lib/esm/internal-HPJHR4P2.js +1 -0
- package/lib/esm/{outdoor-context-v4-WPXDFBZG.js → outdoor-context-v4-F52YJ3ZQ.js} +1 -1
- package/package.json +2 -2
- package/lib/esm/chunk-VEG6JSMV.js +0 -1
- package/lib/esm/inspector-IGN26JNY.js +0 -1
package/lib/esm/index.d.ts
CHANGED
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
// ../react/@packages/internal/quad-tree
|
|
17
17
|
// ../react/@packages/internal/outdoor-context-v4
|
|
18
18
|
// ../react/@packages/internal/geojson-navigator
|
|
19
|
+
// ../react/minisearch
|
|
19
20
|
// ../react/three/addons/loaders/GLTFLoader.js
|
|
20
21
|
// ../react/@mapbox/point-geometry
|
|
21
22
|
// ../react/@maplibre/maplibre-gl-style-spec
|
|
@@ -520,8 +521,9 @@ declare module '@mappedin/react-sdk/mappedin-js/src' {
|
|
|
520
521
|
export type { Label, Marker, Path, Shape, CameraTransform, Model } from '@mappedin/react-sdk/mappedin-js/src/map-view-objects';
|
|
521
522
|
export type { Navigation, TNavigationOptions } from '@mappedin/react-sdk/mappedin-js/src/navigation';
|
|
522
523
|
export type { TSpaceType } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
|
|
523
|
-
export { Coordinate, Annotation, Connection, Door, Floor, MapObject, PointOfInterest, Space, Image, Hyperlink,
|
|
524
|
+
export { Coordinate, Annotation, Connection, Door, Floor, MapObject, PointOfInterest, Space, Image, Hyperlink, EnterpriseLocation, EnterpriseCategory, EnterpriseVenue, type Places, } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
|
|
524
525
|
export type { Camera, Models, Labels, Markers, Paths, Exporter, Directions, Style, Shapes, Outdoor, } from '@mappedin/react-sdk/mappedin-js/src/api-geojson';
|
|
526
|
+
export type { SearchResult, SearchResultItem, SearchResultEnterpriseCategory, SearchResultEnterpriseLocations, SearchResultPlaces, SearchOptions, Search, Suggestion, MatchInfo, } from '@mappedin/react-sdk/mappedin-js/src/search';
|
|
525
527
|
}
|
|
526
528
|
|
|
527
529
|
declare module '@mappedin/react-sdk/react-sdk/src/type-utils' {
|
|
@@ -550,12 +552,14 @@ declare module '@mappedin/react-sdk/react-sdk/src' {
|
|
|
550
552
|
}
|
|
551
553
|
|
|
552
554
|
declare module '@mappedin/react-sdk/mappedin-js/src/map-data' {
|
|
553
|
-
import { PubSub } from '@packages/internal/common';
|
|
554
555
|
import { Analytics } from '@mappedin/react-sdk/mappedin-js/src/analytics';
|
|
556
|
+
import { PubSub } from '@packages/internal/common';
|
|
557
|
+
import type { TSearchOptions } from '@packages/internal/mvf-utils';
|
|
555
558
|
import type { Connection, Door, Floor, MapDataInternal, Space, MapObject, PointOfInterest, Annotation, Coordinate } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
|
|
556
|
-
import type
|
|
557
|
-
import type
|
|
558
|
-
import type
|
|
559
|
+
import type EnterpriseCategory from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/category';
|
|
560
|
+
import type EnterpriseLocation from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/location';
|
|
561
|
+
import type EnterpriseVenue from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/venue';
|
|
562
|
+
import { Search } from '@mappedin/react-sdk/mappedin-js/src/search';
|
|
559
563
|
/**
|
|
560
564
|
* A WeakMap to associate {@link MapData} instances with their internal representation.
|
|
561
565
|
* We need a way to get the internal data object from the API
|
|
@@ -575,12 +579,32 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data' {
|
|
|
575
579
|
}> {
|
|
576
580
|
#private;
|
|
577
581
|
Analytics: Analytics;
|
|
582
|
+
/**
|
|
583
|
+
* Search API for MapData
|
|
584
|
+
*
|
|
585
|
+
* @example
|
|
586
|
+
* // Enable search
|
|
587
|
+
* const mapData = await getMapData({ search: { enabled: true } });
|
|
588
|
+
* // or
|
|
589
|
+
* await mapData.Search.enable();
|
|
590
|
+
*
|
|
591
|
+
* // Perform a search query
|
|
592
|
+
* const results = await mapData.Search.query('Coffee Shop');
|
|
593
|
+
* console.log(results.locations);
|
|
594
|
+
*
|
|
595
|
+
* // Get search suggestions
|
|
596
|
+
* const suggestions = await mapData.Search.suggest('Coff');
|
|
597
|
+
* console.log(suggestions);
|
|
598
|
+
*/
|
|
599
|
+
Search: Search;
|
|
578
600
|
/**
|
|
579
601
|
* Constructs a new instance of {@link MapData}.
|
|
580
602
|
*
|
|
581
603
|
* @internal
|
|
582
604
|
*/
|
|
583
|
-
constructor(internal: MapDataInternal
|
|
605
|
+
constructor(internal: MapDataInternal, { search }?: {
|
|
606
|
+
search?: TSearchOptions;
|
|
607
|
+
});
|
|
584
608
|
/**
|
|
585
609
|
* The name of the map.
|
|
586
610
|
*
|
|
@@ -599,10 +623,6 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data' {
|
|
|
599
623
|
* @returns {string} The organization ID of the map.
|
|
600
624
|
*/
|
|
601
625
|
get organizationId(): string;
|
|
602
|
-
/**
|
|
603
|
-
* @internal
|
|
604
|
-
*/
|
|
605
|
-
get venue(): Venue | undefined;
|
|
606
626
|
/**
|
|
607
627
|
* The token is used to fetch outdoor tiles.
|
|
608
628
|
*
|
|
@@ -661,13 +681,23 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data' {
|
|
|
661
681
|
*/
|
|
662
682
|
getByType(type: 'annotation'): Annotation[];
|
|
663
683
|
/**
|
|
664
|
-
* @
|
|
684
|
+
* @returns The enterprise locations ({@link EnterpriseLocation}) on the map.
|
|
685
|
+
* @example
|
|
686
|
+
* const enterpriseLocations = mapData.getByType('enterprise-location');
|
|
665
687
|
*/
|
|
666
|
-
getByType(type: 'location'):
|
|
688
|
+
getByType(type: 'enterprise-location'): EnterpriseLocation[];
|
|
667
689
|
/**
|
|
668
|
-
* @
|
|
690
|
+
* @returns The enterprise categories ({@link EnterpriseCategory}) on the map.
|
|
691
|
+
* @example
|
|
692
|
+
* const enterpriseCategories = mapData.getByType('enterprise-category');
|
|
669
693
|
*/
|
|
670
|
-
getByType(type: 'category'):
|
|
694
|
+
getByType(type: 'enterprise-category'): EnterpriseCategory[];
|
|
695
|
+
/**
|
|
696
|
+
* @returns The enterprise venue ({@link EnterpriseVenue}) on the map.
|
|
697
|
+
* @example
|
|
698
|
+
* const enterpriseVenue = mapData.getByType('enterprise-venue');
|
|
699
|
+
*/
|
|
700
|
+
getByType(type: 'enterprise-venue'): EnterpriseVenue;
|
|
671
701
|
/**
|
|
672
702
|
* Retrieves a specific map feature by its type and ID.
|
|
673
703
|
*
|
|
@@ -684,8 +714,8 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data' {
|
|
|
684
714
|
getById(type: 'object', id: string): MapObject | undefined;
|
|
685
715
|
getById(type: 'point-of-interest', id: string): PointOfInterest | undefined;
|
|
686
716
|
getById(type: 'annotation', id: string): Annotation | undefined;
|
|
687
|
-
getById(type: 'location', id: string):
|
|
688
|
-
getById(type: 'category', id: string):
|
|
717
|
+
getById(type: 'enterprise-location', id: string): EnterpriseLocation | undefined;
|
|
718
|
+
getById(type: 'enterprise-category', id: string): EnterpriseCategory | undefined;
|
|
689
719
|
getById(type: string, id: string): object | undefined;
|
|
690
720
|
/**
|
|
691
721
|
* @internal
|
|
@@ -827,13 +857,13 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects' {
|
|
|
827
857
|
import Annotation from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/annotation';
|
|
828
858
|
import Hyperlink from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/hyperlink';
|
|
829
859
|
import Image from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/image';
|
|
830
|
-
import type { AnnotationCollection, ParsedMVF, Connection as MVFConnection, EntranceCollection, NodeCollection, ObstructionCollection, SpaceCollection, Map as MVFMap, EnterpriseLocation, EnterpriseCategory } from '@mappedin/mvf';
|
|
831
|
-
import type { MapDataObjects } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/types';
|
|
832
|
-
import Location from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/location';
|
|
833
|
-
import Category from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/category';
|
|
834
|
-
import Venue from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/venue';
|
|
835
|
-
import { PubSub } from '@packages/internal/common';
|
|
860
|
+
import type { AnnotationCollection, ParsedMVF, Connection as MVFConnection, EntranceCollection, NodeCollection, ObstructionCollection, SpaceCollection, Map as MVFMap, EnterpriseLocation as MVFEnterpriseLocation, EnterpriseCategory as MVFEnterpriseCategory } from '@mappedin/mvf';
|
|
836
861
|
import { AnalyticsInternal } from '@mappedin/react-sdk/mappedin-js/src/analytics';
|
|
862
|
+
import EnterpriseLocation from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/location';
|
|
863
|
+
import EnterpriseCategory from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/category';
|
|
864
|
+
import EnterpriseVenue from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/venue';
|
|
865
|
+
import { PubSub } from '@packages/internal/common';
|
|
866
|
+
import type { Places } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/types';
|
|
837
867
|
/**
|
|
838
868
|
* Internal class representing detailed map data.
|
|
839
869
|
*
|
|
@@ -867,9 +897,9 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects' {
|
|
|
867
897
|
* Represents a map of entrance IDs to obstruction IDs.
|
|
868
898
|
*/
|
|
869
899
|
readonly obstructionIdByEntranceId: Record<string, string>;
|
|
870
|
-
readonly venue?:
|
|
900
|
+
readonly venue?: EnterpriseVenue;
|
|
871
901
|
doorsByNodeId: Record<string, Door>;
|
|
872
|
-
locationsBySpaceId: Record<string,
|
|
902
|
+
locationsBySpaceId: Record<string, MVFEnterpriseLocation[]>;
|
|
873
903
|
/**
|
|
874
904
|
* @internal
|
|
875
905
|
*/
|
|
@@ -932,8 +962,8 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects' {
|
|
|
932
962
|
* @returns {Annotation[]} An array of Annotation objects.
|
|
933
963
|
*/
|
|
934
964
|
get nodes(): Node[];
|
|
935
|
-
get locations():
|
|
936
|
-
get categories():
|
|
965
|
+
get locations(): EnterpriseLocation[];
|
|
966
|
+
get categories(): EnterpriseCategory[];
|
|
937
967
|
/**
|
|
938
968
|
* Retrieves an object by its type and ID.
|
|
939
969
|
*
|
|
@@ -949,9 +979,9 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects' {
|
|
|
949
979
|
getById(type: 'object', id: string): MapObject | undefined;
|
|
950
980
|
getById(type: 'point-of-interest', id: string): PointOfInterest | undefined;
|
|
951
981
|
getById(type: 'annotation', id: string): Annotation | undefined;
|
|
952
|
-
getById(type: 'location', id: string):
|
|
953
|
-
getById(type: 'category', id: string):
|
|
954
|
-
getMapDataById(id: string):
|
|
982
|
+
getById(type: 'enterprise-location', id: string): EnterpriseLocation | undefined;
|
|
983
|
+
getById(type: 'enterprise-category', id: string): EnterpriseCategory | undefined;
|
|
984
|
+
getMapDataById(id: string): Places | undefined;
|
|
955
985
|
/**
|
|
956
986
|
* Retrieves a feature by its type and ID from the Mappedin Venue Format (MVF) data.
|
|
957
987
|
*
|
|
@@ -978,14 +1008,14 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects' {
|
|
|
978
1008
|
languagePacks: {
|
|
979
1009
|
[key: string]: {
|
|
980
1010
|
location: {
|
|
981
|
-
[key: string]: Partial<
|
|
1011
|
+
[key: string]: Partial<MVFEnterpriseLocation>;
|
|
982
1012
|
};
|
|
983
1013
|
category: {
|
|
984
|
-
[key: string]: Partial<
|
|
1014
|
+
[key: string]: Partial<MVFEnterpriseCategory>;
|
|
985
1015
|
};
|
|
986
1016
|
};
|
|
987
1017
|
};
|
|
988
|
-
getPropTranslation(type: 'location' | 'category', prop: string, id: string, fallback:
|
|
1018
|
+
getPropTranslation(type: 'enterprise-location' | 'enterprise-category', prop: string, id: string, fallback: MVFEnterpriseLocation[keyof MVFEnterpriseLocation] | MVFEnterpriseCategory[keyof MVFEnterpriseCategory]): unknown;
|
|
989
1019
|
changeLanguage(languageCode: string): Promise<void>;
|
|
990
1020
|
/**
|
|
991
1021
|
* Cleans up resources used by the instance.
|
|
@@ -994,9 +1024,9 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects' {
|
|
|
994
1024
|
*/
|
|
995
1025
|
destroy(): void;
|
|
996
1026
|
}
|
|
997
|
-
export { MapDataInternal, Space, Floor, Connection, MapObject, Door, Coordinate, PointOfInterest, Annotation, Hyperlink, Image,
|
|
1027
|
+
export { MapDataInternal, Space, Floor, Connection, MapObject, Door, Coordinate, PointOfInterest, Annotation, Hyperlink, Image, EnterpriseLocation, EnterpriseCategory, EnterpriseVenue, };
|
|
998
1028
|
export type { TSpaceType } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/space';
|
|
999
|
-
export type {
|
|
1029
|
+
export type { Places };
|
|
1000
1030
|
}
|
|
1001
1031
|
|
|
1002
1032
|
declare module '@mappedin/react-sdk/mappedin-js/src/map-view' {
|
|
@@ -2231,29 +2261,35 @@ declare module '@mappedin/react-sdk/mappedin-js/src/api-geojson' {
|
|
|
2231
2261
|
export { Images } from '@mappedin/react-sdk/mappedin-js/src/api-geojson/images';
|
|
2232
2262
|
}
|
|
2233
2263
|
|
|
2264
|
+
declare module '@mappedin/react-sdk/mappedin-js/src/search' {
|
|
2265
|
+
export type { SearchResult, SearchResultItem, SearchOptions, Suggestion, SearchResultEnterpriseCategory, SearchResultEnterpriseLocations, SearchResultPlaces, MatchInfo, } from '@mappedin/react-sdk/mappedin-js/src/search/internal';
|
|
2266
|
+
export type { SearchState } from '@mappedin/react-sdk/mappedin-js/src/search/external';
|
|
2267
|
+
export { Search } from '@mappedin/react-sdk/mappedin-js/src/search/external';
|
|
2268
|
+
}
|
|
2269
|
+
|
|
2234
2270
|
declare module '@mappedin/react-sdk/mappedin-js/src/analytics' {
|
|
2235
2271
|
export { Analytics, AnalyticsInternal } from '@mappedin/react-sdk/mappedin-js/src/analytics/customer';
|
|
2236
2272
|
export type { AnalyticsUpdateOptions } from '@mappedin/react-sdk/mappedin-js/src/analytics/customer';
|
|
2237
2273
|
}
|
|
2238
2274
|
|
|
2239
2275
|
declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/category' {
|
|
2240
|
-
import type { EnterpriseCategory } from '@mappedin/mvf';
|
|
2241
|
-
import type { MapDataInternal,
|
|
2276
|
+
import type { EnterpriseCategory as MVFEnterpriseCategory } from '@mappedin/mvf';
|
|
2277
|
+
import type { MapDataInternal, EnterpriseLocation } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
|
|
2242
2278
|
import BaseMapData from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/base-object';
|
|
2243
2279
|
/**
|
|
2244
|
-
*
|
|
2280
|
+
* An EnterpriseCategory is a collection of similar EnterpriseLocations.
|
|
2245
2281
|
*
|
|
2246
2282
|
*/
|
|
2247
|
-
class
|
|
2283
|
+
class EnterpriseCategory extends BaseMapData implements Omit<MVFEnterpriseCategory, 'children' | 'locations'> {
|
|
2248
2284
|
#private;
|
|
2249
2285
|
/**
|
|
2250
2286
|
* @internal
|
|
2251
2287
|
*/
|
|
2252
|
-
static readonly __type = "category";
|
|
2288
|
+
static readonly __type = "enterprise-category";
|
|
2253
2289
|
/**
|
|
2254
2290
|
* @internal
|
|
2255
2291
|
*/
|
|
2256
|
-
readonly __type = "category";
|
|
2292
|
+
readonly __type = "enterprise-category";
|
|
2257
2293
|
name: string;
|
|
2258
2294
|
color?: string | undefined;
|
|
2259
2295
|
externalId: string;
|
|
@@ -2262,24 +2298,24 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/category' {
|
|
|
2262
2298
|
iconFromDefaultList?: string | null | undefined;
|
|
2263
2299
|
sortOrder: number;
|
|
2264
2300
|
/**
|
|
2265
|
-
* Checks if the provided instance is of type
|
|
2301
|
+
* Checks if the provided instance is of type EnterpriseCategory.
|
|
2266
2302
|
*
|
|
2267
2303
|
* @param instance The instance to check.
|
|
2268
|
-
* @returns {boolean} True if the instance is a
|
|
2304
|
+
* @returns {boolean} True if the instance is a EnterpriseCategory, false otherwise.
|
|
2269
2305
|
*/
|
|
2270
|
-
static is(instance: object): instance is
|
|
2306
|
+
static is(instance: object): instance is EnterpriseCategory;
|
|
2271
2307
|
/**
|
|
2272
2308
|
* @internal
|
|
2273
2309
|
*/
|
|
2274
2310
|
constructor(data: MapDataInternal, options: {
|
|
2275
|
-
mvfData:
|
|
2311
|
+
mvfData: MVFEnterpriseCategory;
|
|
2276
2312
|
});
|
|
2277
|
-
get children():
|
|
2278
|
-
get locations():
|
|
2313
|
+
get children(): EnterpriseCategory[];
|
|
2314
|
+
get locations(): EnterpriseLocation[];
|
|
2279
2315
|
/**
|
|
2280
|
-
* Serializes the
|
|
2316
|
+
* Serializes the EnterpriseCategory data to JSON.
|
|
2281
2317
|
*
|
|
2282
|
-
* @returns An object representing the
|
|
2318
|
+
* @returns An object representing the EnterpriseCategory.
|
|
2283
2319
|
*/
|
|
2284
2320
|
toJSON(): {
|
|
2285
2321
|
id: string;
|
|
@@ -2292,29 +2328,29 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/category' {
|
|
|
2292
2328
|
*/
|
|
2293
2329
|
destroy(): void;
|
|
2294
2330
|
}
|
|
2295
|
-
export default
|
|
2331
|
+
export default EnterpriseCategory;
|
|
2296
2332
|
}
|
|
2297
2333
|
|
|
2298
2334
|
declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/location' {
|
|
2299
|
-
import type { EnterpriseLocation, LocationState, OperationHours, SiblingGroup } from '@mappedin/mvf';
|
|
2335
|
+
import type { EnterpriseLocation as MVFEnterpriseLocation, LocationState, OperationHours, SiblingGroup } from '@mappedin/mvf';
|
|
2300
2336
|
import type { Coordinate, MapDataInternal, Space } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
|
|
2301
2337
|
import BaseMapData from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/base-object';
|
|
2302
2338
|
import type Node from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/node';
|
|
2303
2339
|
/**
|
|
2304
|
-
* A class representing location data within the map.
|
|
2340
|
+
* A class representing enterprise location data within the map.
|
|
2305
2341
|
*
|
|
2306
|
-
*
|
|
2342
|
+
* An EnterpriseLocation is something like a store, or a washroom on a map.
|
|
2307
2343
|
*/
|
|
2308
|
-
class
|
|
2344
|
+
class EnterpriseLocation extends BaseMapData implements Omit<MVFEnterpriseLocation, 'polygons' | 'nodes' | 'links'> {
|
|
2309
2345
|
#private;
|
|
2310
2346
|
/**
|
|
2311
2347
|
* @internal
|
|
2312
2348
|
*/
|
|
2313
|
-
static readonly __type = "location";
|
|
2349
|
+
static readonly __type = "enterprise-location";
|
|
2314
2350
|
/**
|
|
2315
2351
|
* @internal
|
|
2316
2352
|
*/
|
|
2317
|
-
readonly __type = "location";
|
|
2353
|
+
readonly __type = "enterprise-location";
|
|
2318
2354
|
description?: string | undefined;
|
|
2319
2355
|
name: string;
|
|
2320
2356
|
amenity?: string | undefined;
|
|
@@ -2347,25 +2383,25 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/location' {
|
|
|
2347
2383
|
tags?: string[] | undefined;
|
|
2348
2384
|
type: string;
|
|
2349
2385
|
/**
|
|
2350
|
-
* Checks if the provided instance is of type
|
|
2386
|
+
* Checks if the provided instance is of type EnterpriseLocation.
|
|
2351
2387
|
*
|
|
2352
2388
|
* @param instance The instance to check.
|
|
2353
|
-
* @returns {boolean} True if the instance is a
|
|
2389
|
+
* @returns {boolean} True if the instance is a EnterpriseLocation, false otherwise.
|
|
2354
2390
|
*/
|
|
2355
|
-
static is(instance: object): instance is
|
|
2391
|
+
static is(instance: object): instance is EnterpriseLocation;
|
|
2356
2392
|
/**
|
|
2357
2393
|
* @internal
|
|
2358
2394
|
*/
|
|
2359
2395
|
constructor(data: MapDataInternal, options: {
|
|
2360
|
-
mvfData:
|
|
2396
|
+
mvfData: MVFEnterpriseLocation;
|
|
2361
2397
|
});
|
|
2362
2398
|
get coordinates(): Coordinate[];
|
|
2363
2399
|
get nodes(): Node[];
|
|
2364
2400
|
get spaces(): Space[];
|
|
2365
2401
|
/**
|
|
2366
|
-
* Serializes the
|
|
2402
|
+
* Serializes the EnterpriseLocation data to JSON.
|
|
2367
2403
|
*
|
|
2368
|
-
* @returns An object representing the
|
|
2404
|
+
* @returns An object representing the EnterpriseLocation.
|
|
2369
2405
|
*/
|
|
2370
2406
|
toJSON(): {
|
|
2371
2407
|
id: string;
|
|
@@ -2378,26 +2414,26 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/location' {
|
|
|
2378
2414
|
*/
|
|
2379
2415
|
destroy(): void;
|
|
2380
2416
|
}
|
|
2381
|
-
export default
|
|
2417
|
+
export default EnterpriseLocation;
|
|
2382
2418
|
}
|
|
2383
2419
|
|
|
2384
2420
|
declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/venue' {
|
|
2385
|
-
import type { EnterpriseVenue, Language } from '@mappedin/mvf';
|
|
2421
|
+
import type { EnterpriseVenue as MVFEnterpriseVenue, Language } from '@mappedin/mvf';
|
|
2386
2422
|
import type { Hyperlink, MapDataInternal } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
|
|
2387
2423
|
import BaseMapData from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/base-object';
|
|
2388
2424
|
/**
|
|
2389
|
-
*
|
|
2425
|
+
* An EnterpriseVenue is a specific place (like a mall, office building, or stadium) with one or more Floors
|
|
2390
2426
|
*/
|
|
2391
|
-
class
|
|
2427
|
+
class EnterpriseVenue extends BaseMapData implements MVFEnterpriseVenue {
|
|
2392
2428
|
#private;
|
|
2393
2429
|
/**
|
|
2394
2430
|
* @internal
|
|
2395
2431
|
*/
|
|
2396
|
-
static readonly __type = "venue";
|
|
2432
|
+
static readonly __type = "enterprise-venue";
|
|
2397
2433
|
/**
|
|
2398
2434
|
* @internal
|
|
2399
2435
|
*/
|
|
2400
|
-
readonly __type = "venue";
|
|
2436
|
+
readonly __type = "enterprise-venue";
|
|
2401
2437
|
countrycode?: string | undefined;
|
|
2402
2438
|
externalId: string;
|
|
2403
2439
|
defaultLanguage: Language;
|
|
@@ -2412,28 +2448,28 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/venue' {
|
|
|
2412
2448
|
topLocations?: string[] | undefined;
|
|
2413
2449
|
tzid?: string | undefined;
|
|
2414
2450
|
/**
|
|
2415
|
-
* Checks if the provided instance is of type
|
|
2451
|
+
* Checks if the provided instance is of type EnterpriseVenue.
|
|
2416
2452
|
*
|
|
2417
2453
|
* @param instance The instance to check.
|
|
2418
|
-
* @returns {boolean} True if the instance is a
|
|
2454
|
+
* @returns {boolean} True if the instance is a EnterpriseVenue, false otherwise.
|
|
2419
2455
|
*/
|
|
2420
|
-
static is(instance: object): instance is
|
|
2456
|
+
static is(instance: object): instance is EnterpriseVenue;
|
|
2421
2457
|
/**
|
|
2422
2458
|
* @internal
|
|
2423
2459
|
*/
|
|
2424
2460
|
constructor(_data: MapDataInternal, options: {
|
|
2425
|
-
mvfData:
|
|
2461
|
+
mvfData: MVFEnterpriseVenue;
|
|
2426
2462
|
});
|
|
2427
2463
|
/**
|
|
2428
|
-
* Gets the name of the
|
|
2464
|
+
* Gets the name of the EnterpriseVenue.
|
|
2429
2465
|
*
|
|
2430
|
-
* @returns {string} The name of the
|
|
2466
|
+
* @returns {string} The name of the EnterpriseVenue.
|
|
2431
2467
|
*/
|
|
2432
2468
|
get name(): string;
|
|
2433
2469
|
/**
|
|
2434
|
-
* Serializes the
|
|
2470
|
+
* Serializes the EnterpriseVenue data to JSON.
|
|
2435
2471
|
*
|
|
2436
|
-
* @returns An object representing the
|
|
2472
|
+
* @returns An object representing the EnterpriseVenue.
|
|
2437
2473
|
*/
|
|
2438
2474
|
toJSON(): {
|
|
2439
2475
|
id: string;
|
|
@@ -2446,7 +2482,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/venue' {
|
|
|
2446
2482
|
*/
|
|
2447
2483
|
destroy(): void;
|
|
2448
2484
|
}
|
|
2449
|
-
export default
|
|
2485
|
+
export default EnterpriseVenue;
|
|
2450
2486
|
}
|
|
2451
2487
|
|
|
2452
2488
|
declare module '@mappedin/react-sdk/mappedin-js/src/api-geojson/stacked-maps/stacked-maps' {
|
|
@@ -2685,10 +2721,10 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/door' {
|
|
|
2685
2721
|
declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/space' {
|
|
2686
2722
|
import type { Image, SpaceCollection } from '@mappedin/mvf';
|
|
2687
2723
|
import Coordinate from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/coordinate';
|
|
2688
|
-
import type {
|
|
2724
|
+
import type { EnterpriseLocation, MapDataInternal } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
|
|
2689
2725
|
import type Floor from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/floor';
|
|
2690
2726
|
import BaseMapData from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/base-object';
|
|
2691
|
-
import Door from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/door';
|
|
2727
|
+
import type Door from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/door';
|
|
2692
2728
|
/**
|
|
2693
2729
|
* Represents the various types of spaces that can be defined within a map.
|
|
2694
2730
|
* - 'room': A standard room or enclosed area.
|
|
@@ -2746,7 +2782,7 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/space' {
|
|
|
2746
2782
|
/**
|
|
2747
2783
|
* @internal
|
|
2748
2784
|
*/
|
|
2749
|
-
get locations():
|
|
2785
|
+
get locations(): EnterpriseLocation[];
|
|
2750
2786
|
/**
|
|
2751
2787
|
* Gets the {@link Floor} object associated with the space.
|
|
2752
2788
|
*
|
|
@@ -3441,13 +3477,15 @@ declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/image' {
|
|
|
3441
3477
|
declare module '@mappedin/react-sdk/mappedin-js/src/map-data-objects/types' {
|
|
3442
3478
|
import type Door from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/door';
|
|
3443
3479
|
import type Floor from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/floor';
|
|
3444
|
-
import type Node from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/node';
|
|
3445
3480
|
import type Space from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/space';
|
|
3446
3481
|
import type PointOfInterest from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/poi';
|
|
3447
3482
|
import type Annotation from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/annotation';
|
|
3448
3483
|
import type Connection from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/connection';
|
|
3449
3484
|
import type MapObject from '@mappedin/react-sdk/mappedin-js/src/map-data-objects/object';
|
|
3450
|
-
|
|
3485
|
+
/**
|
|
3486
|
+
* Places are the main objects that can be searched for.
|
|
3487
|
+
*/
|
|
3488
|
+
export type Places = Space | Floor | Door | Connection | MapObject | PointOfInterest | Annotation;
|
|
3451
3489
|
}
|
|
3452
3490
|
|
|
3453
3491
|
declare module '@mappedin/react-sdk/mappedin-js/src/api-geojson/blue-dot/blue-dot' {
|
|
@@ -3678,10 +3716,18 @@ declare module '@mappedin/react-sdk/geojson/src/components/marker' {
|
|
|
3678
3716
|
}
|
|
3679
3717
|
|
|
3680
3718
|
declare module '@mappedin/react-sdk/geojson/src/components/path' {
|
|
3681
|
-
import {
|
|
3682
|
-
import type {
|
|
3719
|
+
import { Vector3 } from 'three';
|
|
3720
|
+
import type { Mesh, ShaderMaterial, BufferGeometry } from 'three';
|
|
3721
|
+
import type { EntityId, Position } from '@mappedin/react-sdk/geojson/src/types';
|
|
3683
3722
|
import { Geometry3DObject3D } from '@mappedin/react-sdk/geojson/src/entities/geometry3d';
|
|
3684
3723
|
import type { FeatureCollection, Point } from 'geojson';
|
|
3724
|
+
import type { GroupContainerState } from '@mappedin/react-sdk/geojson/src/entities/group-container';
|
|
3725
|
+
export type PathProperties = {
|
|
3726
|
+
/**
|
|
3727
|
+
* The parentId of the point. The point will be anchored to the altitude of this parent group container.
|
|
3728
|
+
*/
|
|
3729
|
+
parentId?: EntityId<GroupContainerState> | string | null;
|
|
3730
|
+
};
|
|
3685
3731
|
/**
|
|
3686
3732
|
* State representing a Path
|
|
3687
3733
|
*/
|
|
@@ -3753,7 +3799,7 @@ declare module '@mappedin/react-sdk/geojson/src/components/path' {
|
|
|
3753
3799
|
material?: ShaderMaterial;
|
|
3754
3800
|
geometry?: BufferGeometry;
|
|
3755
3801
|
outline?: Mesh;
|
|
3756
|
-
feature: FeatureCollection<Point>;
|
|
3802
|
+
feature: FeatureCollection<Point, PathProperties>;
|
|
3757
3803
|
options: AddPathOptions;
|
|
3758
3804
|
nearRadius: number;
|
|
3759
3805
|
farRadius: number;
|
|
@@ -3762,8 +3808,12 @@ declare module '@mappedin/react-sdk/geojson/src/components/path' {
|
|
|
3762
3808
|
altitudeAdjustment: number;
|
|
3763
3809
|
displayArrowsOnPath: boolean;
|
|
3764
3810
|
animateArrowsOnPath: boolean;
|
|
3811
|
+
/**
|
|
3812
|
+
* If the path is vertical it will be rebuilt whenever altitudeDirty = true. This will be set during the first render of the path.
|
|
3813
|
+
*/
|
|
3814
|
+
isVertical: boolean;
|
|
3765
3815
|
dirty: boolean;
|
|
3766
|
-
constructor(feature: FeatureCollection<Point,
|
|
3816
|
+
constructor(feature: FeatureCollection<Point, PathProperties>, options?: AddPathOptions);
|
|
3767
3817
|
setColor(): void;
|
|
3768
3818
|
setOpacity(): void;
|
|
3769
3819
|
set completeFraction(value: number);
|
|
@@ -5138,6 +5188,7 @@ declare module '@mappedin/react-sdk/geojson/src/renderer' {
|
|
|
5138
5188
|
import './utils/object-this-polyfill';
|
|
5139
5189
|
import { Vector3, Raycaster, Camera as ThreeCamera } from 'three';
|
|
5140
5190
|
import type { GroupContainerState } from '@mappedin/react-sdk/geojson/src/entities/group-container';
|
|
5191
|
+
import { GroupContainerObject3D } from '@mappedin/react-sdk/geojson/src/entities/group-container';
|
|
5141
5192
|
import { PubSub } from '@mappedin/react-sdk/packages/common/pubsub';
|
|
5142
5193
|
import { CollisionSystem } from '@mappedin/react-sdk/geojson/src/systems/collisions/system';
|
|
5143
5194
|
import { InteractionSystem } from '@mappedin/react-sdk/geojson/src/systems/interactions';
|
|
@@ -5155,7 +5206,7 @@ declare module '@mappedin/react-sdk/geojson/src/renderer' {
|
|
|
5155
5206
|
import { TwoDVisibilitySystem } from '@mappedin/react-sdk/geojson/src/systems/2d-visibility/system';
|
|
5156
5207
|
import { RenderSystem } from '@mappedin/react-sdk/geojson/src/systems/render/system';
|
|
5157
5208
|
import type { Position as GeoJsonPosition, FeatureCollection, LineString, MultiPolygon, Polygon, Point, Feature } from 'geojson';
|
|
5158
|
-
import type { AddPathOptions, PathState } from '@mappedin/react-sdk/geojson/src/components/path';
|
|
5209
|
+
import type { AddPathOptions, PathProperties, PathState } from '@mappedin/react-sdk/geojson/src/components/path';
|
|
5159
5210
|
import { StackSystem } from '@mappedin/react-sdk/geojson/src/systems/stack/system';
|
|
5160
5211
|
import { CameraSystem } from '@mappedin/react-sdk/geojson/src/systems/camera';
|
|
5161
5212
|
import { DOMDrawSystem } from '@mappedin/react-sdk/geojson/src/systems/dom-draw/system';
|
|
@@ -5268,6 +5319,7 @@ declare module '@mappedin/react-sdk/geojson/src/renderer' {
|
|
|
5268
5319
|
id: string;
|
|
5269
5320
|
type: string;
|
|
5270
5321
|
};
|
|
5322
|
+
getParentContainer: (parent?: EntityId<GroupContainerState> | string | number | null, defaultToScene?: boolean) => GroupContainerObject3D | undefined;
|
|
5271
5323
|
/**
|
|
5272
5324
|
* Add a custom THREE.js entity to the map. The geometry is placed at the GeoJSON coordinate and includes a `setup` and `update` methods.
|
|
5273
5325
|
* Setup is called when the first time the geometry visible, and update is called every render frame.
|
|
@@ -5296,21 +5348,13 @@ declare module '@mappedin/react-sdk/geojson/src/renderer' {
|
|
|
5296
5348
|
/**
|
|
5297
5349
|
* Add a Path along a set of GeoJSON coordinates that can be animated.
|
|
5298
5350
|
*/
|
|
5299
|
-
addPath(geometry: FeatureCollection<Point,
|
|
5351
|
+
addPath(geometry: FeatureCollection<Point, PathProperties>, options?: AddPathOptions, parent?: EntityId<GroupContainerState> | string | null): EntityId<PathState>;
|
|
5300
5352
|
/**
|
|
5301
5353
|
* Updates the watermark on the map.
|
|
5302
5354
|
*
|
|
5303
5355
|
* @param options {WatermarkOptions}
|
|
5304
5356
|
*/
|
|
5305
5357
|
updateWatermark(options: Omit<WatermarkOptions, 'onClick'>): void;
|
|
5306
|
-
/**
|
|
5307
|
-
* @deprecated
|
|
5308
|
-
* @TODO: remove this method and do this in setstate instead
|
|
5309
|
-
*/
|
|
5310
|
-
updateStackState(container: EntityId<GroupContainerState> | string | number, opts: {
|
|
5311
|
-
expandedFactor?: number;
|
|
5312
|
-
activeId?: string;
|
|
5313
|
-
}): void;
|
|
5314
5358
|
/**
|
|
5315
5359
|
* Remove an entity from the renderer and release associated resources.
|
|
5316
5360
|
*/
|
|
@@ -6856,6 +6900,339 @@ declare module '@mappedin/react-sdk/mappedin-js/src/api-geojson/images' {
|
|
|
6856
6900
|
export {};
|
|
6857
6901
|
}
|
|
6858
6902
|
|
|
6903
|
+
declare module '@mappedin/react-sdk/mappedin-js/src/search/internal' {
|
|
6904
|
+
import type { SearchResult as MiniSearchResult, Suggestion, MatchInfo } from 'minisearch';
|
|
6905
|
+
import type { EnterpriseLocation, EnterpriseCategory, Places } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
|
|
6906
|
+
import type MapData from '@mappedin/react-sdk/mappedin-js/src/map-data';
|
|
6907
|
+
import { z } from 'zod';
|
|
6908
|
+
export class InternalSearch {
|
|
6909
|
+
constructor(mapData: MapData);
|
|
6910
|
+
/**
|
|
6911
|
+
* Populates the search indexes with the map data.
|
|
6912
|
+
* @returns A promise that resolves when the indexes are populated.
|
|
6913
|
+
*/
|
|
6914
|
+
populate(): Promise<any[]>;
|
|
6915
|
+
search(term: string, options?: SearchOptions): Promise<SearchResult>;
|
|
6916
|
+
suggest(term: string, options?: SuggestOptions): Promise<Suggestion[]>;
|
|
6917
|
+
}
|
|
6918
|
+
export type SearchResultItem<T extends Places | EnterpriseLocation | EnterpriseCategory> = {
|
|
6919
|
+
type: T['__type'];
|
|
6920
|
+
match: MiniSearchResult['match'];
|
|
6921
|
+
score: number;
|
|
6922
|
+
item: T;
|
|
6923
|
+
};
|
|
6924
|
+
/**
|
|
6925
|
+
* @interface
|
|
6926
|
+
*/
|
|
6927
|
+
export type SearchResultEnterpriseCategory = SearchResultItem<EnterpriseCategory>;
|
|
6928
|
+
/**
|
|
6929
|
+
* @interface
|
|
6930
|
+
*/
|
|
6931
|
+
export type SearchResultEnterpriseLocations = SearchResultItem<EnterpriseLocation>;
|
|
6932
|
+
/**
|
|
6933
|
+
* @interface
|
|
6934
|
+
*/
|
|
6935
|
+
export type SearchResultPlaces = SearchResultItem<Places>;
|
|
6936
|
+
/**
|
|
6937
|
+
* Search results
|
|
6938
|
+
*/
|
|
6939
|
+
export type SearchResult = {
|
|
6940
|
+
/**
|
|
6941
|
+
* Places search results
|
|
6942
|
+
*/
|
|
6943
|
+
places: SearchResultPlaces[];
|
|
6944
|
+
/**
|
|
6945
|
+
* Enterprise Locations search results
|
|
6946
|
+
*/
|
|
6947
|
+
enterpriseLocations?: SearchResultEnterpriseLocations[];
|
|
6948
|
+
/**
|
|
6949
|
+
* Enterprise Categories search results
|
|
6950
|
+
*/
|
|
6951
|
+
enterpriseCategories?: SearchResultEnterpriseCategory[];
|
|
6952
|
+
};
|
|
6953
|
+
export function removeAccents(it: string): string;
|
|
6954
|
+
const searchOptionsSchema: z.ZodObject<{
|
|
6955
|
+
/**
|
|
6956
|
+
* Options for searching places.
|
|
6957
|
+
* @property {Object} [fields] - Fields to search in places.
|
|
6958
|
+
* @property {boolean} [name] - Whether to search in the name field of places.
|
|
6959
|
+
* @property {boolean} [description] - Whether to search in the description field of places.
|
|
6960
|
+
* @property {number} [limit] - Maximum number of place results to return.
|
|
6961
|
+
*/
|
|
6962
|
+
places: z.ZodOptional<z.ZodObject<{
|
|
6963
|
+
/**
|
|
6964
|
+
* Fields to search in places.
|
|
6965
|
+
* @property {boolean} [name] - Whether to search in the name field of places.
|
|
6966
|
+
* @property {boolean} [description] - Whether to search in the description field of places.
|
|
6967
|
+
*/
|
|
6968
|
+
fields: z.ZodOptional<z.ZodObject<{
|
|
6969
|
+
/** Enable searching by place name */
|
|
6970
|
+
name: z.ZodOptional<z.ZodBoolean>;
|
|
6971
|
+
/** Enable searching by place description */
|
|
6972
|
+
description: z.ZodOptional<z.ZodBoolean>;
|
|
6973
|
+
}, "strip", z.ZodTypeAny, {
|
|
6974
|
+
name?: boolean | undefined;
|
|
6975
|
+
description?: boolean | undefined;
|
|
6976
|
+
}, {
|
|
6977
|
+
name?: boolean | undefined;
|
|
6978
|
+
description?: boolean | undefined;
|
|
6979
|
+
}>>;
|
|
6980
|
+
/** Maximum number of place results to return */
|
|
6981
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
6982
|
+
}, "strip", z.ZodTypeAny, {
|
|
6983
|
+
limit?: number | undefined;
|
|
6984
|
+
fields?: {
|
|
6985
|
+
name?: boolean | undefined;
|
|
6986
|
+
description?: boolean | undefined;
|
|
6987
|
+
} | undefined;
|
|
6988
|
+
}, {
|
|
6989
|
+
limit?: number | undefined;
|
|
6990
|
+
fields?: {
|
|
6991
|
+
name?: boolean | undefined;
|
|
6992
|
+
description?: boolean | undefined;
|
|
6993
|
+
} | undefined;
|
|
6994
|
+
}>>;
|
|
6995
|
+
/**
|
|
6996
|
+
* Options for searching categories.
|
|
6997
|
+
* @property {Object} [fields] - Fields to search in categories.
|
|
6998
|
+
* @property {boolean} [name] - Whether to search in the name field of categories.
|
|
6999
|
+
* @property {boolean} [description] - Whether to search in the description field of categories.
|
|
7000
|
+
* @property {boolean} ['locations.name'] - Whether to search in the locations' names of categories.
|
|
7001
|
+
* @property {number} [limit] - Maximum number of category results to return.
|
|
7002
|
+
*/
|
|
7003
|
+
enterpriseCategories: z.ZodOptional<z.ZodObject<{
|
|
7004
|
+
/**
|
|
7005
|
+
* Fields to search in categories.
|
|
7006
|
+
* @property {boolean} [name] - Whether to search in the name field of categories.
|
|
7007
|
+
* @property {boolean} [description] - Whether to search in the description field of categories.
|
|
7008
|
+
* @property {boolean} ['locations.name'] - Whether to search in the locations' names of categories.
|
|
7009
|
+
*/
|
|
7010
|
+
fields: z.ZodOptional<z.ZodObject<{
|
|
7011
|
+
/** Enable searching by category name */
|
|
7012
|
+
name: z.ZodOptional<z.ZodBoolean>;
|
|
7013
|
+
/** Enable searching by category description */
|
|
7014
|
+
description: z.ZodOptional<z.ZodBoolean>;
|
|
7015
|
+
/** Enable searching by names of locations within the category */
|
|
7016
|
+
'locations.name': z.ZodOptional<z.ZodBoolean>;
|
|
7017
|
+
}, "strip", z.ZodTypeAny, {
|
|
7018
|
+
name?: boolean | undefined;
|
|
7019
|
+
description?: boolean | undefined;
|
|
7020
|
+
'locations.name'?: boolean | undefined;
|
|
7021
|
+
}, {
|
|
7022
|
+
name?: boolean | undefined;
|
|
7023
|
+
description?: boolean | undefined;
|
|
7024
|
+
'locations.name'?: boolean | undefined;
|
|
7025
|
+
}>>;
|
|
7026
|
+
/** Maximum number of category results to return */
|
|
7027
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
7028
|
+
}, "strip", z.ZodTypeAny, {
|
|
7029
|
+
limit?: number | undefined;
|
|
7030
|
+
fields?: {
|
|
7031
|
+
name?: boolean | undefined;
|
|
7032
|
+
description?: boolean | undefined;
|
|
7033
|
+
'locations.name'?: boolean | undefined;
|
|
7034
|
+
} | undefined;
|
|
7035
|
+
}, {
|
|
7036
|
+
limit?: number | undefined;
|
|
7037
|
+
fields?: {
|
|
7038
|
+
name?: boolean | undefined;
|
|
7039
|
+
description?: boolean | undefined;
|
|
7040
|
+
'locations.name'?: boolean | undefined;
|
|
7041
|
+
} | undefined;
|
|
7042
|
+
}>>;
|
|
7043
|
+
/**
|
|
7044
|
+
* Options for searching locations.
|
|
7045
|
+
* @property {Object} [fields] - Fields to search in locations.
|
|
7046
|
+
* @property {boolean} [name] - Whether to search in the name field of locations.
|
|
7047
|
+
* @property {boolean} [tags] - Whether to search in the tags field of locations.
|
|
7048
|
+
* @property {boolean} [description] - Whether to search in the description field of locations.
|
|
7049
|
+
* @property {number} [limit] - Maximum number of location results to return.
|
|
7050
|
+
*/
|
|
7051
|
+
enterpriseLocations: z.ZodOptional<z.ZodObject<{
|
|
7052
|
+
/**
|
|
7053
|
+
* Fields to search in locations.
|
|
7054
|
+
* @property {boolean} [name] - Whether to search in the name field of locations.
|
|
7055
|
+
* @property {boolean} [tags] - Whether to search in the tags field of locations.
|
|
7056
|
+
* @property {boolean} [description] - Whether to search in the description field of locations.
|
|
7057
|
+
*/
|
|
7058
|
+
fields: z.ZodOptional<z.ZodObject<{
|
|
7059
|
+
/** Enable searching by location name */
|
|
7060
|
+
name: z.ZodOptional<z.ZodBoolean>;
|
|
7061
|
+
/** Enable searching by location tags */
|
|
7062
|
+
tags: z.ZodOptional<z.ZodBoolean>;
|
|
7063
|
+
/** Enable searching by location description */
|
|
7064
|
+
description: z.ZodOptional<z.ZodBoolean>;
|
|
7065
|
+
}, "strip", z.ZodTypeAny, {
|
|
7066
|
+
name?: boolean | undefined;
|
|
7067
|
+
description?: boolean | undefined;
|
|
7068
|
+
tags?: boolean | undefined;
|
|
7069
|
+
}, {
|
|
7070
|
+
name?: boolean | undefined;
|
|
7071
|
+
description?: boolean | undefined;
|
|
7072
|
+
tags?: boolean | undefined;
|
|
7073
|
+
}>>;
|
|
7074
|
+
/** Maximum number of location results to return */
|
|
7075
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
7076
|
+
}, "strip", z.ZodTypeAny, {
|
|
7077
|
+
limit?: number | undefined;
|
|
7078
|
+
fields?: {
|
|
7079
|
+
name?: boolean | undefined;
|
|
7080
|
+
description?: boolean | undefined;
|
|
7081
|
+
tags?: boolean | undefined;
|
|
7082
|
+
} | undefined;
|
|
7083
|
+
}, {
|
|
7084
|
+
limit?: number | undefined;
|
|
7085
|
+
fields?: {
|
|
7086
|
+
name?: boolean | undefined;
|
|
7087
|
+
description?: boolean | undefined;
|
|
7088
|
+
tags?: boolean | undefined;
|
|
7089
|
+
} | undefined;
|
|
7090
|
+
}>>;
|
|
7091
|
+
}, "strip", z.ZodTypeAny, {
|
|
7092
|
+
enterpriseLocations?: {
|
|
7093
|
+
limit?: number | undefined;
|
|
7094
|
+
fields?: {
|
|
7095
|
+
name?: boolean | undefined;
|
|
7096
|
+
description?: boolean | undefined;
|
|
7097
|
+
tags?: boolean | undefined;
|
|
7098
|
+
} | undefined;
|
|
7099
|
+
} | undefined;
|
|
7100
|
+
enterpriseCategories?: {
|
|
7101
|
+
limit?: number | undefined;
|
|
7102
|
+
fields?: {
|
|
7103
|
+
name?: boolean | undefined;
|
|
7104
|
+
description?: boolean | undefined;
|
|
7105
|
+
'locations.name'?: boolean | undefined;
|
|
7106
|
+
} | undefined;
|
|
7107
|
+
} | undefined;
|
|
7108
|
+
places?: {
|
|
7109
|
+
limit?: number | undefined;
|
|
7110
|
+
fields?: {
|
|
7111
|
+
name?: boolean | undefined;
|
|
7112
|
+
description?: boolean | undefined;
|
|
7113
|
+
} | undefined;
|
|
7114
|
+
} | undefined;
|
|
7115
|
+
}, {
|
|
7116
|
+
enterpriseLocations?: {
|
|
7117
|
+
limit?: number | undefined;
|
|
7118
|
+
fields?: {
|
|
7119
|
+
name?: boolean | undefined;
|
|
7120
|
+
description?: boolean | undefined;
|
|
7121
|
+
tags?: boolean | undefined;
|
|
7122
|
+
} | undefined;
|
|
7123
|
+
} | undefined;
|
|
7124
|
+
enterpriseCategories?: {
|
|
7125
|
+
limit?: number | undefined;
|
|
7126
|
+
fields?: {
|
|
7127
|
+
name?: boolean | undefined;
|
|
7128
|
+
description?: boolean | undefined;
|
|
7129
|
+
'locations.name'?: boolean | undefined;
|
|
7130
|
+
} | undefined;
|
|
7131
|
+
} | undefined;
|
|
7132
|
+
places?: {
|
|
7133
|
+
limit?: number | undefined;
|
|
7134
|
+
fields?: {
|
|
7135
|
+
name?: boolean | undefined;
|
|
7136
|
+
description?: boolean | undefined;
|
|
7137
|
+
} | undefined;
|
|
7138
|
+
} | undefined;
|
|
7139
|
+
}>;
|
|
7140
|
+
const suggestOptionsSchema: z.ZodObject<{
|
|
7141
|
+
/**
|
|
7142
|
+
* Options for searching places.
|
|
7143
|
+
* @property {boolean} [enabled] - Whether to search in places.
|
|
7144
|
+
*/
|
|
7145
|
+
places: z.ZodOptional<z.ZodObject<{
|
|
7146
|
+
/** Enable searching by place name */
|
|
7147
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
7148
|
+
}, "strip", z.ZodTypeAny, {
|
|
7149
|
+
enabled?: boolean | undefined;
|
|
7150
|
+
}, {
|
|
7151
|
+
enabled?: boolean | undefined;
|
|
7152
|
+
}>>;
|
|
7153
|
+
/**
|
|
7154
|
+
* Options for searching locations.
|
|
7155
|
+
* @property {boolean} [enabled] - Whether to search in locations.
|
|
7156
|
+
*/
|
|
7157
|
+
enterpriseLocations: z.ZodOptional<z.ZodObject<{
|
|
7158
|
+
/** Enable searching by location name */
|
|
7159
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
7160
|
+
}, "strip", z.ZodTypeAny, {
|
|
7161
|
+
enabled?: boolean | undefined;
|
|
7162
|
+
}, {
|
|
7163
|
+
enabled?: boolean | undefined;
|
|
7164
|
+
}>>;
|
|
7165
|
+
}, "strip", z.ZodTypeAny, {
|
|
7166
|
+
enterpriseLocations?: {
|
|
7167
|
+
enabled?: boolean | undefined;
|
|
7168
|
+
} | undefined;
|
|
7169
|
+
places?: {
|
|
7170
|
+
enabled?: boolean | undefined;
|
|
7171
|
+
} | undefined;
|
|
7172
|
+
}, {
|
|
7173
|
+
enterpriseLocations?: {
|
|
7174
|
+
enabled?: boolean | undefined;
|
|
7175
|
+
} | undefined;
|
|
7176
|
+
places?: {
|
|
7177
|
+
enabled?: boolean | undefined;
|
|
7178
|
+
} | undefined;
|
|
7179
|
+
}>;
|
|
7180
|
+
export type SearchOptions = z.infer<typeof searchOptionsSchema>;
|
|
7181
|
+
export type SuggestOptions = z.infer<typeof suggestOptionsSchema>;
|
|
7182
|
+
export { Suggestion, MatchInfo };
|
|
7183
|
+
}
|
|
7184
|
+
|
|
7185
|
+
declare module '@mappedin/react-sdk/mappedin-js/src/search/external' {
|
|
7186
|
+
import type MapData from '@mappedin/react-sdk/mappedin-js/src/map-data';
|
|
7187
|
+
import type { InternalSearch, SearchOptions, SuggestOptions } from '@mappedin/react-sdk/mappedin-js/src/search/internal';
|
|
7188
|
+
import type { MapDataInternal } from '@mappedin/react-sdk/mappedin-js/src/map-data-objects';
|
|
7189
|
+
export class Search {
|
|
7190
|
+
#private;
|
|
7191
|
+
/**
|
|
7192
|
+
* Whether the search is enabled.
|
|
7193
|
+
* @default false
|
|
7194
|
+
*/
|
|
7195
|
+
enabled: boolean;
|
|
7196
|
+
constructor(mapData: MapData, mapDataInternal: MapDataInternal, { enabled }?: {
|
|
7197
|
+
enabled?: boolean;
|
|
7198
|
+
});
|
|
7199
|
+
/**
|
|
7200
|
+
* Searches for places, locations, and categories.
|
|
7201
|
+
* @param term - The search term.
|
|
7202
|
+
* @param options - The search options.
|
|
7203
|
+
* @returns The search results.
|
|
7204
|
+
* @example
|
|
7205
|
+
* ```ts
|
|
7206
|
+
* const results = await search.query('Coffee Shop');
|
|
7207
|
+
* console.log(results.locations);
|
|
7208
|
+
* ```
|
|
7209
|
+
*/
|
|
7210
|
+
query(term: string, options?: SearchOptions): ReturnType<typeof InternalSearch.prototype.search>;
|
|
7211
|
+
/**
|
|
7212
|
+
* Suggests the names of places, locations, and categories.
|
|
7213
|
+
* @param term - The search term.
|
|
7214
|
+
* @param options - The suggest options.
|
|
7215
|
+
* @returns The search suggestions.
|
|
7216
|
+
* @example
|
|
7217
|
+
* ```ts
|
|
7218
|
+
* const suggestions = await search.suggest('Coffee');
|
|
7219
|
+
* console.log(suggestions);
|
|
7220
|
+
* ```
|
|
7221
|
+
*/
|
|
7222
|
+
suggest(term: string, options?: SuggestOptions): Promise<import("minisearch").Suggestion[]>;
|
|
7223
|
+
/**
|
|
7224
|
+
* Enables the search.
|
|
7225
|
+
*/
|
|
7226
|
+
enable(): Promise<void>;
|
|
7227
|
+
}
|
|
7228
|
+
export type SearchState = {
|
|
7229
|
+
/**
|
|
7230
|
+
* Whether the search is enabled.
|
|
7231
|
+
*/
|
|
7232
|
+
enabled: boolean;
|
|
7233
|
+
};
|
|
7234
|
+
}
|
|
7235
|
+
|
|
6859
7236
|
declare module '@mappedin/react-sdk/mappedin-js/src/analytics/customer' {
|
|
6860
7237
|
/**
|
|
6861
7238
|
* Valid track-analytics API contexts. These should match the expected values of that endpoint or the requests will fail.
|
|
@@ -8241,7 +8618,7 @@ declare module '@mappedin/react-sdk/geojson/src/entities/utils' {
|
|
|
8241
8618
|
export function updateGroupTexture(entity: Geometry3D | Geometry2D | GeometryGroupObject3D | GroupContainerObject3D, update?: Pick<GeometryGroupStyleComponent, 'texture' | 'topTexture'>): void;
|
|
8242
8619
|
export function updateIndividualGeometryTexture(entity: Geometry3D, update?: Pick<StyleComponent, 'texture' | 'topTexture'>): boolean;
|
|
8243
8620
|
export function updateIndividualGeometryOpacity(entity: Geometry3D, update?: number): boolean;
|
|
8244
|
-
export function updateAltitude(entity: Geometry3D | Geometry2D | GeometryGroupObject3D | GroupContainerObject3D, update?: number):
|
|
8621
|
+
export function updateAltitude(entity: Geometry3D | Geometry2D | GeometryGroupObject3D | GroupContainerObject3D, update?: number): boolean;
|
|
8245
8622
|
export function updateOutline(entity: Geometry3DTypes, update?: boolean): boolean;
|
|
8246
8623
|
}
|
|
8247
8624
|
|
|
@@ -16824,8 +17201,10 @@ declare module '@mappedin/react-sdk/geojson/src/systems/path/system' {
|
|
|
16824
17201
|
export class PathSystem extends PubSub<{
|
|
16825
17202
|
'animate:path': undefined;
|
|
16826
17203
|
}> {
|
|
17204
|
+
altitudeDirty: boolean;
|
|
16827
17205
|
convertTo3DMapPosition: RendererCore['convertTo3DMapPosition'];
|
|
16828
|
-
|
|
17206
|
+
getParentContainer: RendererCore['getParentContainer'];
|
|
17207
|
+
constructor(rendererState: RendererState, convertTo3DMapPosition: RendererCore['convertTo3DMapPosition'], getParentContainer: RendererCore['getParentContainer']);
|
|
16829
17208
|
update(minZoomAltitude: number, maxZoomAltitude: number, currentZoomAltitude: number): void;
|
|
16830
17209
|
}
|
|
16831
17210
|
}
|