@twinmatrix/spatialverse-sdk-web 3.0.0 → 3.1.2

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.
Files changed (157) hide show
  1. package/lib/cjs/index.js +65 -39
  2. package/lib/cjs/react/index.js +65 -39
  3. package/lib/esm/index.js +65 -39
  4. package/lib/esm/react/index.js +65 -39
  5. package/lib/types/meta-atlas-sdk/3DMap/auth/authentication.d.ts +7 -0
  6. package/lib/types/meta-atlas-sdk/3DMap/auth/authentication.d.ts.map +1 -0
  7. package/lib/types/meta-atlas-sdk/3DMap/data/Constants.d.ts +17 -0
  8. package/lib/types/meta-atlas-sdk/3DMap/data/Constants.d.ts.map +1 -0
  9. package/lib/types/meta-atlas-sdk/3DMap/data/DataManager.d.ts +69 -0
  10. package/lib/types/meta-atlas-sdk/3DMap/data/DataManager.d.ts.map +1 -0
  11. package/lib/types/meta-atlas-sdk/3DMap/data/auth.d.ts +10 -0
  12. package/lib/types/meta-atlas-sdk/3DMap/data/auth.d.ts.map +1 -0
  13. package/lib/types/meta-atlas-sdk/3DMap/data/data.service.d.ts +12 -0
  14. package/lib/types/meta-atlas-sdk/3DMap/data/data.service.d.ts.map +1 -0
  15. package/lib/types/meta-atlas-sdk/3DMap/data/jewel-data.d.ts +8 -0
  16. package/lib/types/meta-atlas-sdk/3DMap/data/jewel-data.d.ts.map +1 -0
  17. package/lib/types/meta-atlas-sdk/3DMap/deckgl/DeckGLManager.d.ts +71 -0
  18. package/lib/types/meta-atlas-sdk/3DMap/deckgl/DeckGLManager.d.ts.map +1 -0
  19. package/lib/types/meta-atlas-sdk/3DMap/deckgl/MVTFloorLayer.d.ts +77 -0
  20. package/lib/types/meta-atlas-sdk/3DMap/deckgl/MVTFloorLayer.d.ts.map +1 -0
  21. package/lib/types/meta-atlas-sdk/3DMap/legacy/Changi.d.ts +1 -0
  22. package/lib/types/meta-atlas-sdk/3DMap/legacy/Changi.d.ts.map +1 -0
  23. package/lib/types/meta-atlas-sdk/3DMap/{CustomThreeJsWrapper → legacy/CustomThreeJsWrapper}/CustomThreeJsWrapper.d.ts +26 -3
  24. package/lib/types/meta-atlas-sdk/3DMap/legacy/CustomThreeJsWrapper/CustomThreeJsWrapper.d.ts.map +1 -0
  25. package/lib/types/meta-atlas-sdk/3DMap/legacy/DeckglLayerFactory.d.ts +322 -0
  26. package/lib/types/meta-atlas-sdk/3DMap/legacy/DeckglLayerFactory.d.ts.map +1 -0
  27. package/lib/types/meta-atlas-sdk/3DMap/legacy/DeckglLayerManager.d.ts +121 -0
  28. package/lib/types/meta-atlas-sdk/3DMap/legacy/DeckglLayerManager.d.ts.map +1 -0
  29. package/lib/types/meta-atlas-sdk/3DMap/legacy/EventEmitter.d.ts +10 -0
  30. package/lib/types/meta-atlas-sdk/3DMap/legacy/EventEmitter.d.ts.map +1 -0
  31. package/lib/types/meta-atlas-sdk/3DMap/legacy/Jewel.d.ts +35 -0
  32. package/lib/types/meta-atlas-sdk/3DMap/legacy/Jewel.d.ts.map +1 -0
  33. package/lib/types/meta-atlas-sdk/3DMap/legacy/MainMap.d.ts +314 -0
  34. package/lib/types/meta-atlas-sdk/3DMap/legacy/MainMap.d.ts.map +1 -0
  35. package/lib/types/meta-atlas-sdk/3DMap/legacy/Marker.d.ts +17 -0
  36. package/lib/types/meta-atlas-sdk/3DMap/legacy/Marker.d.ts.map +1 -0
  37. package/lib/types/meta-atlas-sdk/3DMap/legacy/MicrophoneBubbleFactory.d.ts +71 -0
  38. package/lib/types/meta-atlas-sdk/3DMap/legacy/MicrophoneBubbleFactory.d.ts.map +1 -0
  39. package/lib/types/meta-atlas-sdk/3DMap/legacy/aeroport.d.ts +6 -0
  40. package/lib/types/meta-atlas-sdk/3DMap/legacy/aeroport.d.ts.map +1 -0
  41. package/lib/types/meta-atlas-sdk/3DMap/legacy/deckgl-helper.d.ts +14 -0
  42. package/lib/types/meta-atlas-sdk/3DMap/legacy/deckgl-helper.d.ts.map +1 -0
  43. package/lib/types/meta-atlas-sdk/3DMap/legacy/helper-utils.d.ts +4 -0
  44. package/lib/types/meta-atlas-sdk/3DMap/legacy/helper-utils.d.ts.map +1 -0
  45. package/lib/types/meta-atlas-sdk/3DMap/legacy/hotspot-utils.d.ts +13 -0
  46. package/lib/types/meta-atlas-sdk/3DMap/legacy/hotspot-utils.d.ts.map +1 -0
  47. package/lib/types/meta-atlas-sdk/3DMap/legacy/loader.d.ts +3 -0
  48. package/lib/types/meta-atlas-sdk/3DMap/legacy/loader.d.ts.map +1 -0
  49. package/lib/types/meta-atlas-sdk/3DMap/legacy/mapIcons.d.ts +12 -0
  50. package/lib/types/meta-atlas-sdk/3DMap/legacy/mapIcons.d.ts.map +1 -0
  51. package/lib/types/meta-atlas-sdk/3DMap/legacy/markers.d.ts +4 -0
  52. package/lib/types/meta-atlas-sdk/3DMap/legacy/markers.d.ts.map +1 -0
  53. package/lib/types/meta-atlas-sdk/3DMap/legacy/timestampUtils.d.ts +6 -0
  54. package/lib/types/meta-atlas-sdk/3DMap/legacy/timestampUtils.d.ts.map +1 -0
  55. package/lib/types/meta-atlas-sdk/3DMap/legacy/types/aeroport-legacy.d.ts +65 -0
  56. package/lib/types/meta-atlas-sdk/3DMap/legacy/types/aeroport-legacy.d.ts.map +1 -0
  57. package/lib/types/meta-atlas-sdk/3DMap/legacy/types/apiParams.d.ts +25 -0
  58. package/lib/types/meta-atlas-sdk/3DMap/legacy/types/apiParams.d.ts.map +1 -0
  59. package/lib/types/meta-atlas-sdk/3DMap/legacy/types/cameraMatrix.d.ts +8 -0
  60. package/lib/types/meta-atlas-sdk/3DMap/legacy/types/cameraMatrix.d.ts.map +1 -0
  61. package/lib/types/meta-atlas-sdk/3DMap/legacy/types/extrusionSettings.d.ts +32 -0
  62. package/lib/types/meta-atlas-sdk/3DMap/legacy/types/extrusionSettings.d.ts.map +1 -0
  63. package/lib/types/meta-atlas-sdk/3DMap/legacy/types/marker-data.d.ts +12 -0
  64. package/lib/types/meta-atlas-sdk/3DMap/legacy/types/marker-data.d.ts.map +1 -0
  65. package/lib/types/meta-atlas-sdk/3DMap/legacy/types/modelSettings.d.ts +7 -0
  66. package/lib/types/meta-atlas-sdk/3DMap/legacy/types/modelSettings.d.ts.map +1 -0
  67. package/lib/types/meta-atlas-sdk/3DMap/legacy/types/panoramaSettings.d.ts +18 -0
  68. package/lib/types/meta-atlas-sdk/3DMap/legacy/types/panoramaSettings.d.ts.map +1 -0
  69. package/lib/types/meta-atlas-sdk/3DMap/meta-atlas-sdk-3D.d.ts +80 -0
  70. package/lib/types/meta-atlas-sdk/3DMap/meta-atlas-sdk-3D.d.ts.map +1 -0
  71. package/lib/types/meta-atlas-sdk/3DMap/threejs/ThreeJSManager.d.ts +92 -0
  72. package/lib/types/meta-atlas-sdk/3DMap/threejs/ThreeJSManager.d.ts.map +1 -0
  73. package/lib/types/meta-atlas-sdk/3DMap/{CustomThreeJsWrapper → threejs}/utility/CameraSync.d.ts +1 -1
  74. package/lib/types/meta-atlas-sdk/3DMap/threejs/utility/CameraSync.d.ts.map +1 -0
  75. package/lib/types/meta-atlas-sdk/3DMap/{CustomThreeJsWrapper → threejs}/utility/CameraUtils.d.ts +1 -1
  76. package/lib/types/meta-atlas-sdk/3DMap/threejs/utility/CameraUtils.d.ts.map +1 -0
  77. package/lib/types/meta-atlas-sdk/3DMap/{CustomThreeJsWrapper → threejs}/utility/constants.d.ts +6 -6
  78. package/lib/types/meta-atlas-sdk/3DMap/threejs/utility/constants.d.ts.map +1 -0
  79. package/lib/types/meta-atlas-sdk/3DMap/{CustomThreeJsWrapper → threejs}/utility/suncalc.d.ts +1 -1
  80. package/lib/types/meta-atlas-sdk/3DMap/threejs/utility/suncalc.d.ts.map +1 -0
  81. package/lib/types/meta-atlas-sdk/3DMap/{CustomThreeJsWrapper → threejs}/utility/utils.d.ts +1 -1
  82. package/lib/types/meta-atlas-sdk/3DMap/threejs/utility/utils.d.ts.map +1 -0
  83. package/lib/types/meta-atlas-sdk/3DMap/types/aeroport.d.ts +14 -0
  84. package/lib/types/meta-atlas-sdk/3DMap/types/aeroport.d.ts.map +1 -0
  85. package/lib/types/meta-atlas-sdk/3DMap/types/render-manager.interface.d.ts +130 -0
  86. package/lib/types/meta-atlas-sdk/3DMap/types/render-manager.interface.d.ts.map +1 -0
  87. package/lib/types/meta-atlas-sdk/3DMap/utils/EventBus.d.ts +35 -0
  88. package/lib/types/meta-atlas-sdk/3DMap/utils/EventBus.d.ts.map +1 -0
  89. package/lib/types/meta-atlas-sdk/3DMap/utils/colors.d.ts +8 -0
  90. package/lib/types/meta-atlas-sdk/3DMap/utils/colors.d.ts.map +1 -0
  91. package/lib/types/meta-atlas-sdk/3DMap/utils/feature-transform.d.ts +12 -0
  92. package/lib/types/meta-atlas-sdk/3DMap/utils/feature-transform.d.ts.map +1 -0
  93. package/lib/types/meta-atlas-sdk/3DMap/utils/helper.d.ts +2 -0
  94. package/lib/types/meta-atlas-sdk/3DMap/utils/helper.d.ts.map +1 -0
  95. package/lib/types/meta-atlas-sdk/IfcModelLoader/index.d.ts +14 -0
  96. package/lib/types/meta-atlas-sdk/IfcModelLoader/index.d.ts.map +1 -0
  97. package/lib/types/meta-atlas-sdk/MetaAtlasCore/custom-map-objects-manager.d.ts +57 -0
  98. package/lib/types/meta-atlas-sdk/MetaAtlasCore/custom-map-objects-manager.d.ts.map +1 -0
  99. package/lib/types/meta-atlas-sdk/MetaAtlasCore/focus-core/focus-tree-state.d.ts +4 -0
  100. package/lib/types/meta-atlas-sdk/MetaAtlasCore/focus-core/focus-tree-state.d.ts.map +1 -0
  101. package/lib/types/meta-atlas-sdk/MetaAtlasCore/focus-core/focus-tree-types.d.ts +45 -0
  102. package/lib/types/meta-atlas-sdk/MetaAtlasCore/focus-core/focus-tree-types.d.ts.map +1 -0
  103. package/lib/types/meta-atlas-sdk/MetaAtlasCore/focus-core/focus-tree-utils.d.ts +72 -0
  104. package/lib/types/meta-atlas-sdk/MetaAtlasCore/focus-core/focus-tree-utils.d.ts.map +1 -0
  105. package/lib/types/meta-atlas-sdk/MetaAtlasCore/{focustree.d.ts → focus-core/focustree.d.ts} +376 -131
  106. package/lib/types/meta-atlas-sdk/MetaAtlasCore/focus-core/focustree.d.ts.map +1 -0
  107. package/lib/types/meta-atlas-sdk/MetaAtlasCore/focus-core/index.d.ts +661 -0
  108. package/lib/types/meta-atlas-sdk/MetaAtlasCore/focus-core/index.d.ts.map +1 -0
  109. package/lib/types/meta-atlas-sdk/MetaAtlasCore/meta-atlas-sdk-core.d.ts +37 -407
  110. package/lib/types/meta-atlas-sdk/MetaAtlasCore/meta-atlas-sdk-core.d.ts.map +1 -1
  111. package/lib/types/meta-atlas-sdk/MetaAtlasCore/routing-core/routing-helpers.d.ts.map +1 -1
  112. package/lib/types/meta-atlas-sdk/MetaAtlasCore/routing-core/utils.d.ts +0 -1
  113. package/lib/types/meta-atlas-sdk/MetaAtlasCore/routing-core/utils.d.ts.map +1 -1
  114. package/lib/types/meta-atlas-sdk/{customerLayer.d.ts → MetaAtlasCore/shared-layers/customerLayer.d.ts} +530 -536
  115. package/lib/types/meta-atlas-sdk/{customerLayer.d.ts.map → MetaAtlasCore/shared-layers/customerLayer.d.ts.map} +1 -1
  116. package/lib/types/meta-atlas-sdk/MetaAtlasCore/shared-layers/customerLayerService.d.ts +108 -0
  117. package/lib/types/meta-atlas-sdk/MetaAtlasCore/shared-layers/customerLayerService.d.ts.map +1 -0
  118. package/lib/types/meta-atlas-sdk/meta-atlas-sdk.d.ts +52 -414
  119. package/lib/types/meta-atlas-sdk/meta-atlas-sdk.d.ts.map +1 -1
  120. package/lib/types/meta-atlas-sdk/utils/helpers.d.ts.map +1 -1
  121. package/lib/types/meta-atlas-sdk/utils/mapobjects-store.d.ts +5 -0
  122. package/lib/types/meta-atlas-sdk/utils/mapobjects-store.d.ts.map +1 -1
  123. package/lib/types/meta-atlas-sdk/utils/routing-visualizer/index.d.ts +2 -6
  124. package/lib/types/meta-atlas-sdk/utils/routing-visualizer/index.d.ts.map +1 -1
  125. package/lib/types/react/MetaAtlasMap.d.ts.map +1 -1
  126. package/lib/types/react/hooks/useCustomMapObject/index.d.ts +3 -0
  127. package/lib/types/react/hooks/useCustomMapObject/index.d.ts.map +1 -0
  128. package/lib/types/react/hooks/useCustomMapObject/types.d.ts +30 -0
  129. package/lib/types/react/hooks/useCustomMapObject/types.d.ts.map +1 -0
  130. package/lib/types/react/hooks/useFocus/index.d.ts.map +1 -1
  131. package/lib/types/react/hooks/useFocus/types.d.ts +11 -0
  132. package/lib/types/react/hooks/useFocus/types.d.ts.map +1 -1
  133. package/lib/types/react/hooks/useMapEvents/index.d.ts.map +1 -1
  134. package/lib/types/react/hooks/useMapOverlays/index.d.ts.map +1 -1
  135. package/lib/types/react/hooks/useMapOverlays/types.d.ts +16 -0
  136. package/lib/types/react/hooks/useMapOverlays/types.d.ts.map +1 -1
  137. package/lib/types/react/hooks/useMetaAtlas/index.d.ts.map +1 -1
  138. package/lib/types/react/index.d.ts +3 -0
  139. package/lib/types/react/index.d.ts.map +1 -1
  140. package/lib/types/react/stores/useMapDataStore.d.ts +2 -0
  141. package/lib/types/react/stores/useMapDataStore.d.ts.map +1 -1
  142. package/lib/types/react/stores/useMetaAtlasStore.d.ts +2 -0
  143. package/lib/types/react/stores/useMetaAtlasStore.d.ts.map +1 -1
  144. package/lib/types/react/types/index.d.ts +8 -0
  145. package/lib/types/react/types/index.d.ts.map +1 -1
  146. package/package.json +20 -11
  147. package/lib/types/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/CustomThreeJsWrapper.d.ts.map +0 -1
  148. package/lib/types/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/CameraSync.d.ts.map +0 -1
  149. package/lib/types/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/CameraUtils.d.ts.map +0 -1
  150. package/lib/types/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/constants.d.ts.map +0 -1
  151. package/lib/types/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/suncalc.d.ts.map +0 -1
  152. package/lib/types/meta-atlas-sdk/3DMap/CustomThreeJsWrapper/utility/utils.d.ts.map +0 -1
  153. package/lib/types/meta-atlas-sdk/3DMap/MainMap.d.ts +0 -28
  154. package/lib/types/meta-atlas-sdk/3DMap/MainMap.d.ts.map +0 -1
  155. package/lib/types/meta-atlas-sdk/MetaAtlasCore/focustree.d.ts.map +0 -1
  156. package/lib/types/meta-atlas-sdk/customerLayerVariant.d.ts +0 -5156
  157. package/lib/types/meta-atlas-sdk/customerLayerVariant.d.ts.map +0 -1
@@ -0,0 +1,57 @@
1
+ import { MetaAtlasCore, CustomMapObject, metaFeature } from './meta-atlas-sdk-core';
2
+ import { MetaAtlasSdk } from '../meta-atlas-sdk';
3
+ export declare class CustomMapObjectsManager {
4
+ private metaAtlasCore;
5
+ private metaAtlasSdk;
6
+ constructor(metaAtlasCore: MetaAtlasCore, metaAtlasSdk: MetaAtlasSdk);
7
+ /**
8
+ * Add a custom map object (handles both core and map operations)
9
+ */
10
+ addMapObject(mapObject: CustomMapObject): void;
11
+ /**
12
+ * Remove a custom map object (handles both core and map operations)
13
+ */
14
+ removeMapObject(mapObjectId: string): void;
15
+ /**
16
+ * Update a custom map object (handles both core and map operations)
17
+ */
18
+ updateMapObject(mapObjectId: string, updates: Partial<CustomMapObject>): void;
19
+ /**
20
+ * Get all custom map objects
21
+ */
22
+ getCustomMapObjects(): metaFeature[];
23
+ /**
24
+ * Clear all custom map objects (handles both core and map operations)
25
+ */
26
+ clearCustomMapObjects(): void;
27
+ /**
28
+ * Re-apply the current where/what filters from the core SDK
29
+ * so custom map objects stay in sync with the SDK's filter state.
30
+ */
31
+ private applyCurrentFilters;
32
+ /**
33
+ * Ensure default layers are added to the map (only adds if they don't exist)
34
+ */
35
+ ensureDefaultLayersAdded(): void;
36
+ /**
37
+ * Get default layers for custom map objects
38
+ */
39
+ getDefaultCustomMapObjectLayers(): any[];
40
+ /**
41
+ * Add custom map object to map layer
42
+ */
43
+ addCustomMapObjectToMap(mapObject: CustomMapObject): void;
44
+ /**
45
+ * Remove custom map object from map layer
46
+ */
47
+ removeCustomMapObjectFromMap(mapObjectId: string): void;
48
+ /**
49
+ * Update custom map objects layer with current data
50
+ */
51
+ updateCustomMapObjectsLayer(): void;
52
+ /**
53
+ * Clear all custom map objects from map
54
+ */
55
+ clearCustomMapObjectsFromMap(): void;
56
+ }
57
+ //# sourceMappingURL=custom-map-objects-manager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom-map-objects-manager.d.ts","sourceRoot":"","sources":["../../../../src/meta-atlas-sdk/MetaAtlasCore/custom-map-objects-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpF,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAIjD,qBAAa,uBAAuB;IAClC,OAAO,CAAC,aAAa,CAAgB;IACrC,OAAO,CAAC,YAAY,CAAe;gBAEvB,aAAa,EAAE,aAAa,EAAE,YAAY,EAAE,YAAY;IAKpE;;OAEG;IACH,YAAY,CAAC,SAAS,EAAE,eAAe,GAAG,IAAI;IAe9C;;OAEG;IACH,eAAe,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI;IAQ1C;;OAEG;IACH,eAAe,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,eAAe,CAAC,GAAG,IAAI;IAW7E;;OAEG;IACH,mBAAmB,IAAI,WAAW,EAAE;IAIpC;;OAEG;IACH,qBAAqB,IAAI,IAAI;IAQ7B;;;OAGG;IACH,OAAO,CAAC,mBAAmB;IAqB3B;;OAEG;IACH,wBAAwB,IAAI,IAAI;IAkBhC;;OAEG;IACH,+BAA+B,IAAI,GAAG,EAAE;IA+DxC;;OAEG;IACH,uBAAuB,CAAC,SAAS,EAAE,eAAe,GAAG,IAAI;IA2EzD;;OAEG;IACH,4BAA4B,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI;IAIvD;;OAEG;IACH,2BAA2B,IAAI,IAAI;IAgCnC;;OAEG;IACH,4BAA4B,IAAI,IAAI;CAWrC"}
@@ -0,0 +1,4 @@
1
+ import type { FocusTree } from './focus-tree-types';
2
+ export declare function setGlobalFocusTree(rawTree: any): void;
3
+ export declare function getGlobalFocusTree(): FocusTree;
4
+ //# sourceMappingURL=focus-tree-state.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"focus-tree-state.d.ts","sourceRoot":"","sources":["../../../../../src/meta-atlas-sdk/MetaAtlasCore/focus-core/focus-tree-state.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AA+EpD,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,GAAG,QAK9C;AAED,wBAAgB,kBAAkB,IAAI,SAAS,CAE9C"}
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Type definitions for focus tree structure and utility functions
3
+ */
4
+ export interface Site {
5
+ name: string;
6
+ taxonomyPath: string;
7
+ buildings?: Building[];
8
+ cameraConfigs?: any;
9
+ isAirport?: boolean;
10
+ [key: string]: any;
11
+ }
12
+ export interface Building {
13
+ name: string;
14
+ taxonomyPath: string;
15
+ floors?: Floor[];
16
+ defaultFloorPath?: string;
17
+ cameraConfigs?: any;
18
+ bounds?: any;
19
+ model3D?: any;
20
+ [key: string]: any;
21
+ }
22
+ export interface Floor {
23
+ name: string;
24
+ taxonomyPath: string;
25
+ id?: string;
26
+ levelIndex?: number;
27
+ groundStackHeight?: number;
28
+ zoomLevel?: number;
29
+ bounds?: any;
30
+ [key: string]: any;
31
+ }
32
+ export type TaxonomyLevel = 'site' | 'building' | 'floor' | null;
33
+ export interface FindBuildingResult {
34
+ building: Building;
35
+ site: Site;
36
+ }
37
+ export interface FindFloorResult {
38
+ floor: Floor;
39
+ building: Building;
40
+ site: Site;
41
+ }
42
+ export type FocusTree = Record<string, Site> | {
43
+ readonly [key: string]: Site;
44
+ };
45
+ //# sourceMappingURL=focus-tree-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"focus-tree-types.d.ts","sourceRoot":"","sources":["../../../../../src/meta-atlas-sdk/MetaAtlasCore/focus-core/focus-tree-types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,IAAI;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,aAAa,CAAC,EAAE,GAAG,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC;IACjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,aAAa,CAAC,EAAE,GAAG,CAAC;IACpB,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,WAAW,KAAK;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,UAAU,GAAG,OAAO,GAAG,IAAI,CAAC;AAEjE,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,QAAQ,CAAC;IACnB,IAAI,EAAE,IAAI,CAAC;CACZ;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,KAAK,CAAC;IACb,QAAQ,EAAE,QAAQ,CAAC;IACnB,IAAI,EAAE,IAAI,CAAC;CACZ;AAED,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,GAAG;IAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAAC"}
@@ -0,0 +1,72 @@
1
+ /**
2
+ * Utility functions for working with the focus tree structure
3
+ * These functions provide reusable logic for finding sites, buildings, and floors
4
+ * by taxonomy path, and determining the level type of a taxonomy path.
5
+ */
6
+ import type { Site, Building, Floor, TaxonomyLevel, FindBuildingResult, FindFloorResult } from './focus-tree-types';
7
+ /**
8
+ * Extract the site taxonomy portion from a full taxonomy path
9
+ * Example: "where.changi.terminals.t1.l1" -> "where.changi"
10
+ *
11
+ * @param taxonomyPath - Full taxonomy path
12
+ * @returns Site taxonomy string or null if invalid
13
+ */
14
+ export declare function extractSiteTaxonomy(taxonomyPath: string): string | null;
15
+ /**
16
+ * Extract the building taxonomy portion from a full taxonomy path
17
+ * Example: "where.changi.terminals.t1.l1" -> "where.changi.terminals.t1"
18
+ *
19
+ * @param taxonomyPath - Full taxonomy path
20
+ * @returns Building taxonomy string or null if invalid
21
+ */
22
+ export declare function extractBuildingTaxonomy(taxonomyPath: string): string | null;
23
+ /**
24
+ * Find a site by its taxonomy path
25
+ *
26
+ * @param taxonomyPath - Taxonomy path to search for
27
+ * @returns Site object or null if not found
28
+ */
29
+ export declare function findSiteByTaxonomy(taxonomyPath: string): Site | null;
30
+ /**
31
+ * Find a building by its taxonomy path across all sites
32
+ *
33
+ * @param taxonomyPath - Taxonomy path to search for
34
+ * @returns Object containing building and its parent site, or null if not found
35
+ */
36
+ export declare function findBuildingByTaxonomy(taxonomyPath: string): FindBuildingResult | null;
37
+ /**
38
+ * Find a floor by its taxonomy path across all sites and buildings
39
+ *
40
+ * @param taxonomyPath - Taxonomy path to search for
41
+ * @returns Object containing floor, its parent building, and parent site, or null if not found
42
+ */
43
+ export declare function findFloorByTaxonomy(taxonomyPath: string): FindFloorResult | null;
44
+ /**
45
+ * Determine the level type (site, building, or floor) of a taxonomy path
46
+ * Uses sequential matching: site -> building -> floor
47
+ *
48
+ * @param taxonomyPath - Taxonomy path to check
49
+ * @returns Level type or null if not found
50
+ */
51
+ export declare function getTaxonomyLevel(taxonomyPath: string): TaxonomyLevel;
52
+ /**
53
+ * Get all sites from the focus tree
54
+ *
55
+ * @returns Array of site objects
56
+ */
57
+ export declare function getAllSites(): Site[];
58
+ /**
59
+ * Get all buildings for a specific site
60
+ *
61
+ * @param siteTaxonomy - Taxonomy path of the site
62
+ * @returns Array of building objects
63
+ */
64
+ export declare function getBuildingsBySite(siteTaxonomy: string): Building[];
65
+ /**
66
+ * Get all floors for a specific building
67
+ *
68
+ * @param buildingTaxonomy - Taxonomy path of the building
69
+ * @returns Array of floor objects
70
+ */
71
+ export declare function getFloorsByBuilding(buildingTaxonomy: string): Floor[];
72
+ //# sourceMappingURL=focus-tree-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"focus-tree-utils.d.ts","sourceRoot":"","sources":["../../../../../src/meta-atlas-sdk/MetaAtlasCore/focus-core/focus-tree-utils.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAEV,IAAI,EACJ,QAAQ,EACR,KAAK,EACL,aAAa,EACb,kBAAkB,EAClB,eAAe,EAChB,MAAM,oBAAoB,CAAC;AAK5B;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAcvE;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAc3E;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAcpE;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACpC,YAAY,EAAE,MAAM,GACnB,kBAAkB,GAAG,IAAI,CAwB3B;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,YAAY,EAAE,MAAM,GACnB,eAAe,GAAG,IAAI,CAkCxB;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAC9B,YAAY,EAAE,MAAM,GACnB,aAAa,CAwBf;AAED;;;;GAIG;AACH,wBAAgB,WAAW,IAAI,IAAI,EAAE,CAWpC;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAChC,YAAY,EAAE,MAAM,GACnB,QAAQ,EAAE,CAeZ;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,gBAAgB,EAAE,MAAM,GACvB,KAAK,EAAE,CAeT"}