wovvmap-webview-bridge 1.0.29 → 1.0.39

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 (74) hide show
  1. package/README.md +1563 -228
  2. package/dist/handlers/WebBridgeHandlers.d.ts +3 -15
  3. package/dist/handlers/WebBridgeHandlers.d.ts.map +1 -1
  4. package/dist/handlers/WebBridgeHandlers.js +94 -53
  5. package/dist/index.d.ts +19 -3
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js +19 -3
  8. package/dist/types/types.d.ts +277 -316
  9. package/dist/types/types.d.ts.map +1 -1
  10. package/dist/web.d.ts +19 -3
  11. package/dist/web.d.ts.map +1 -1
  12. package/dist/web.js +19 -3
  13. package/dist/webviewBridge/BridgeService.d.ts +34 -17
  14. package/dist/webviewBridge/BridgeService.d.ts.map +1 -1
  15. package/dist/webviewBridge/BridgeService.js +227 -51
  16. package/dist/webviewBridge/WebViewBridgeRef.d.ts +3 -3
  17. package/dist/webviewBridge/WebViewBridgeRef.d.ts.map +1 -1
  18. package/dist/webviewBridge/WebViewBridgeRef.js +1 -1
  19. package/dist/webviewBridge/WebViewScreen.d.ts.map +1 -1
  20. package/dist/webviewBridge/services/DirectionBridgeService.d.ts +32 -0
  21. package/dist/webviewBridge/services/DirectionBridgeService.d.ts.map +1 -0
  22. package/dist/webviewBridge/services/DirectionBridgeService.js +72 -0
  23. package/dist/webviewBridge/services/FloorBridgeService.d.ts +4 -0
  24. package/dist/webviewBridge/services/FloorBridgeService.d.ts.map +1 -0
  25. package/dist/webviewBridge/services/FloorBridgeService.js +11 -0
  26. package/dist/webviewBridge/services/SelectionBridgeService.d.ts +10 -0
  27. package/dist/webviewBridge/services/SelectionBridgeService.d.ts.map +1 -0
  28. package/dist/webviewBridge/services/SelectionBridgeService.js +43 -0
  29. package/dist/webviewBridge/services/StepNavigationBridgeService.d.ts +7 -0
  30. package/dist/webviewBridge/services/StepNavigationBridgeService.d.ts.map +1 -0
  31. package/dist/webviewBridge/services/StepNavigationBridgeService.js +15 -0
  32. package/dist/webviewBridge/services/ViewerBridgeService.d.ts +8 -0
  33. package/dist/webviewBridge/services/ViewerBridgeService.d.ts.map +1 -0
  34. package/dist/webviewBridge/services/ViewerBridgeService.js +20 -0
  35. package/dist/webviewBridge/services/ZoomBridgeService.d.ts +5 -0
  36. package/dist/webviewBridge/services/ZoomBridgeService.d.ts.map +1 -0
  37. package/dist/webviewBridge/services/ZoomBridgeService.js +9 -0
  38. package/dist/webviewBridge/store/useAmenityStore.d.ts +20 -0
  39. package/dist/webviewBridge/store/useAmenityStore.d.ts.map +1 -0
  40. package/dist/webviewBridge/store/useAmenityStore.js +6 -0
  41. package/dist/webviewBridge/store/useBridgeStorage.d.ts +14 -0
  42. package/dist/webviewBridge/store/useBridgeStorage.d.ts.map +1 -0
  43. package/dist/webviewBridge/store/useBridgeStorage.js +13 -0
  44. package/dist/webviewBridge/store/useCategoryStore.d.ts +20 -0
  45. package/dist/webviewBridge/store/useCategoryStore.d.ts.map +1 -0
  46. package/dist/webviewBridge/store/useCategoryStore.js +6 -0
  47. package/dist/webviewBridge/store/useDirectionStore.d.ts +55 -0
  48. package/dist/webviewBridge/store/useDirectionStore.d.ts.map +1 -0
  49. package/dist/webviewBridge/store/useDirectionStore.js +35 -0
  50. package/dist/webviewBridge/store/useDirectionsRouteRequestStore.d.ts +14 -0
  51. package/dist/webviewBridge/store/useDirectionsRouteRequestStore.d.ts.map +1 -0
  52. package/dist/webviewBridge/store/useDirectionsRouteRequestStore.js +25 -0
  53. package/dist/webviewBridge/store/useFloorStore.d.ts +18 -0
  54. package/dist/webviewBridge/store/useFloorStore.d.ts.map +1 -0
  55. package/dist/webviewBridge/store/useFloorStore.js +8 -0
  56. package/dist/webviewBridge/store/useNavigationStore.d.ts +23 -0
  57. package/dist/webviewBridge/store/useNavigationStore.d.ts.map +1 -0
  58. package/dist/webviewBridge/store/useNavigationStore.js +18 -0
  59. package/dist/webviewBridge/store/useNodePointStore.d.ts +42 -0
  60. package/dist/webviewBridge/store/useNodePointStore.d.ts.map +1 -0
  61. package/dist/webviewBridge/store/useNodePointStore.js +19 -0
  62. package/dist/webviewBridge/store/useSelectionStore.d.ts +35 -0
  63. package/dist/webviewBridge/store/useSelectionStore.d.ts.map +1 -0
  64. package/dist/webviewBridge/store/useSelectionStore.js +32 -0
  65. package/dist/webviewBridge/store/useSubCategoryStore.d.ts +20 -0
  66. package/dist/webviewBridge/store/useSubCategoryStore.d.ts.map +1 -0
  67. package/dist/webviewBridge/store/useSubCategoryStore.js +6 -0
  68. package/dist/webviewBridge/store/useViewerStore.d.ts +35 -0
  69. package/dist/webviewBridge/store/useViewerStore.d.ts.map +1 -0
  70. package/dist/webviewBridge/store/useViewerStore.js +35 -0
  71. package/dist/webviewBridge/useBridgeStorage.d.ts +45 -0
  72. package/dist/webviewBridge/useBridgeStorage.d.ts.map +1 -0
  73. package/dist/webviewBridge/useBridgeStorage.js +43 -0
  74. package/package.json +1 -1
@@ -1,41 +1,68 @@
1
- export interface SensorDataPayload {
2
- magnetometerSignal?: any;
3
- accelerometerSignal?: any;
4
- gyroscopeSignal?: any;
5
- orientationSignal?: any;
6
- [key: string]: any;
7
- }
8
- export interface LocationArea {
1
+ export interface Point2D {
9
2
  x: number;
10
3
  y: number;
11
4
  }
12
5
  export interface LocationName {
13
6
  text: string;
14
- area: LocationArea;
15
- rotate: number;
16
- textColor: string;
17
- textSize: string;
18
- textStyle: string;
19
- width: string;
20
- height: string;
21
- }
22
- export interface Logo {
23
- show: boolean;
24
- url: string;
25
- size: number;
26
- x: number;
27
- y: number;
28
- rotate: number;
7
+ area?: Point2D;
8
+ rotate?: number;
9
+ textColor?: string;
10
+ textSize?: string;
11
+ textStyle?: string;
12
+ width?: number;
13
+ height?: number;
14
+ pinpoint?: Point2D;
29
15
  }
30
- export interface ShapePoint {
16
+ export interface colleague {
31
17
  x: number;
32
18
  y: number;
19
+ z: number;
20
+ key: string;
33
21
  }
34
22
  export interface BrandId {
35
23
  sit: string;
36
24
  pro: string;
37
25
  }
38
- export type ExternalId = string | number;
26
+ export interface shapeDetail {
27
+ shape: Point2D[];
28
+ depth: number;
29
+ floorBash: boolean;
30
+ color: string;
31
+ }
32
+ export interface ContactInfo {
33
+ description: string;
34
+ phone_no: string;
35
+ website: string;
36
+ email: string;
37
+ address: string;
38
+ }
39
+ export interface PointImage {
40
+ url?: string;
41
+ width?: number;
42
+ height?: number;
43
+ x?: number;
44
+ y?: number;
45
+ z?: number;
46
+ }
47
+ export interface Assets {
48
+ locationName: LocationName | null;
49
+ pointImages: PointImage | null;
50
+ logo: string | null;
51
+ brandLogo: string | null;
52
+ brandImages: string[];
53
+ }
54
+ export type NodePointOffer = {
55
+ "offer_mst.id"?: string | number;
56
+ "offer_mst.offer_name"?: string;
57
+ offer_remark?: string | null;
58
+ offer_short_desc?: string | null;
59
+ "offer_mst.valid_from"?: number | string;
60
+ "offer_mst.valid_to"?: number | string;
61
+ brand_logo?: string;
62
+ partyc_cat_code?: string | number;
63
+ brand_code?: string | number;
64
+ brand_name?: string;
65
+ };
39
66
  export type DayHours = {
40
67
  open?: string;
41
68
  close?: string;
@@ -49,419 +76,353 @@ export type WeeklyHours = {
49
76
  fri?: DayHours;
50
77
  sat?: DayHours;
51
78
  };
52
- export type NodePointOffer = {
53
- offerMstId?: ExternalId;
54
- offerName?: string;
55
- offerRemark?: string;
56
- offerShortDesc?: string;
57
- validFrom?: number;
58
- validTo?: number;
59
- brandLogo?: string;
60
- partyCategoryCode?: ExternalId;
61
- brandCode?: ExternalId;
62
- brandName?: string;
63
- };
64
- export type BrandInfo = {
65
- brandNumber?: ExternalId;
66
- brandLogo?: string;
67
- brandImages?: string[];
68
- };
69
79
  export interface NodePoint {
80
+ key: string;
70
81
  x: number;
71
82
  y: number;
72
83
  z: number;
73
- targetDist: number;
74
- previousNode: any;
75
- close: boolean;
76
- colleague: any[];
77
- elementTag: string;
78
- LocationName: LocationName | null;
79
- Category: string;
80
- categoryCode?: ExternalId;
81
- subCategoryCode?: ExternalId;
82
- weeklyHoursId?: ExternalId;
84
+ shapeDetail: shapeDetail;
83
85
  type: string;
84
- LeaseType: string;
85
- logo: Logo | null;
86
- color: string;
87
- Description: string;
86
+ contactInfo: ContactInfo;
87
+ assets: Assets;
88
88
  weeklyHours?: WeeklyHours;
89
- offers?: NodePointOffer[];
90
- brandInfo?: BrandInfo;
91
- customNotes?: string;
92
- shape: ShapePoint[];
93
- up: boolean;
94
- down: boolean;
95
- depth: number;
89
+ offers: NodePointOffer[];
90
+ amenitiesId?: string | number;
91
+ weeklyHoursId?: string | number;
96
92
  brand_Id: BrandId;
97
- floorBash: boolean;
98
- extra: Record<string, any>;
99
- key: string;
100
- myAngle: number;
101
- NavigationInstruction: any;
93
+ categoryCode?: string | number;
94
+ subCategoryCode?: string | number;
95
+ floorIndex: number;
96
+ floorName: string;
102
97
  distanceToNextPoint: number;
103
- stepsToNextPoint: number;
104
- brand_phoneno: string;
98
+ colleague: colleague[];
99
+ up: boolean;
100
+ down: boolean;
105
101
  }
106
- export type Environment = "sit" | "prod" | "select";
107
- export type MapExportContext = {
108
- mapId: string;
109
- mapName: string;
110
- environment: Environment;
111
- floor: number;
112
- defaultFloor: number;
113
- defaultDist: number;
114
- };
115
- export type GeometryFloor = {
116
- id: string;
117
- number: number;
118
- url: string;
119
- width?: number;
120
- height?: number;
121
- };
122
- export type GeometryNodePoint = {
123
- id: string;
124
- x?: number;
125
- y?: number;
126
- z?: number;
127
- shape?: Array<{
128
- x: number;
129
- y: number;
130
- }>;
131
- shapeColor?: string;
132
- metaId?: string;
133
- source?: "path-graph";
134
- };
135
- export type GeometryLayer = {
136
- floors: GeometryFloor[];
137
- nodePoints: GeometryNodePoint[];
138
- nodeLines: Array<{
139
- id: string;
140
- pointAId: string;
141
- pointBId: string;
142
- } | {
143
- a: string;
144
- b: string;
145
- }>;
146
- };
147
- export type NodeMetadata = {
102
+ export interface FloorImage {
103
+ FloorName: string;
104
+ FloorUrl: string;
105
+ ShortName: string;
106
+ FloorNumber: number;
107
+ SubFloor?: boolean;
108
+ index?: number;
148
109
  id?: string;
149
- nodePointId?: string;
150
- textId?: string;
151
- text?: string;
152
- categoryCode?: ExternalId;
153
- subCategoryCode?: ExternalId;
154
- weeklyHoursId?: ExternalId;
155
- pointImageIds?: ExternalId[];
156
- logoImageIds?: ExternalId[];
157
- type?: string;
158
- description?: string;
159
- color?: string;
160
- brandInfo?: BrandInfo;
161
- weeklyHours?: WeeklyHours;
162
- offers?: NodePointOffer[];
163
- customNotes?: string;
164
- };
165
- export type AssetPayloads = {
166
- texts?: Array<{
167
- id: string;
168
- text: string;
169
- nodePointId?: string;
170
- x?: number;
171
- y?: number;
172
- rotation?: number;
173
- fontSize?: number;
174
- color?: string;
175
- }> | Record<string, {
176
- text: string;
177
- nodePointId?: string;
178
- x?: number;
179
- y?: number;
180
- rotation?: number;
181
- fontSize?: number;
182
- color?: string;
183
- }>;
184
- pointImages?: Array<{
185
- id: string;
186
- src: string;
187
- nodePointId?: string;
188
- }> | Record<string, {
189
- src: string;
190
- nodePointId?: string;
191
- }>;
192
- logoImages?: Array<{
193
- id: string;
194
- src: string;
195
- nodePointId?: string;
196
- }> | Record<string, {
197
- src: string;
198
- nodePointId?: string;
199
- }>;
200
- };
110
+ }
201
111
  export type Category = {
202
- code: ExternalId;
112
+ code: string | number;
203
113
  name: string;
204
114
  image?: string;
205
- subCategoryCodes: ExternalId[];
115
+ subCategoryCodes: string[] | number[];
206
116
  nodePointsKey?: string[];
117
+ nodePoints?: NodePoint[];
207
118
  };
208
119
  export type SubCategory = {
209
- code: ExternalId;
120
+ code: string | number;
210
121
  name: string;
211
122
  image?: string;
212
123
  description?: string;
213
- categoryCode: ExternalId;
124
+ categoryCode: string | number;
214
125
  nodePointsKey?: string[];
126
+ nodePoints?: NodePoint[];
215
127
  };
216
128
  export type Amenity = {
217
- aval_id: ExternalId;
218
- amenities_status: number;
219
- aval_field_code: ExternalId;
220
- amenities_name: string;
221
- amenities_image: string;
222
- wayfinding_id: ExternalId | null;
129
+ id: string | number;
130
+ status: number;
131
+ fieldCode: string | number;
132
+ name: string;
133
+ image: string;
134
+ wayfinding_id?: string | number | null;
135
+ nodePointsKey?: string[];
136
+ nodePoints?: NodePoint[];
223
137
  };
224
- export type AmenityWithNodePoint = Amenity & {
225
- nodePointKey?: string[];
138
+ export type OffersNodeMap = Record<string, {
139
+ nodePoints: NodePoint[];
140
+ nodePointsKey: string[];
141
+ }>;
142
+ export type RoutingPreferences = {
143
+ elevator?: boolean;
144
+ escalator?: boolean;
145
+ stair?: boolean;
226
146
  };
227
- export interface FloorImage {
228
- FloorName: string;
229
- FloorUrl: string;
230
- ShortName: string;
231
- FloorNumber: number;
232
- SubFloor?: boolean;
233
- index: number;
234
- }
235
- export interface StepInstruction {
147
+ export type ViewMode = '2D' | '3D';
148
+ export type CameraView = 'street' | 'sky';
149
+ export type TextType = '2D' | '3D';
150
+ export type ViewerBridgeState = {
151
+ apiVersion: string;
152
+ viewMode: ViewMode;
153
+ cameraView: CameraView;
154
+ textType: TextType;
155
+ show2DIcon: boolean;
156
+ isMapParsed: boolean;
157
+ isLoading: boolean;
158
+ };
159
+ export type DirectionBridgeState = {
160
+ selectedOriginPointId: string | null;
161
+ selectedDestinationPointId: string | null;
162
+ pathfindingError: string | null;
163
+ routingPreferences: RoutingPreferences;
164
+ };
165
+ export type BridgeLoadState = {
166
+ isMapLoaded: boolean;
167
+ };
168
+ export type TenantBridgeState = {
169
+ imageBaseUrl: string | null;
170
+ };
171
+ export type CatalogBridgeState = {
172
+ categories: Record<string, Category>;
173
+ subCategories: Record<string, SubCategory>;
174
+ amenities: Record<string, Amenity>;
175
+ };
176
+ export type FloorBridgeState = {
177
+ activeFloor: number | null;
178
+ floors: FloorImage[];
179
+ };
180
+ export type NodePointBridgeState = {
181
+ searchableNodePointMap: NodePoint[];
182
+ locationGroupedNodeMap: Record<string, string[]>;
183
+ keyNodeMap: Record<string, NodePoint>;
184
+ offersNodeMap: OffersNodeMap;
185
+ };
186
+ export type SelectionBridgeState = {
187
+ activeSelection: {
188
+ type: 'Category' | 'SubCategory' | 'Amenity' | null;
189
+ id: string | null;
190
+ };
191
+ activeCategory: Category | null;
192
+ isOfferSelected: boolean;
193
+ };
194
+ export type NavigationAction = "straight" | "turn_left" | "turn_right" | "take_elevator" | "take_escalator" | "take_elevator_up" | "take_elevator_down" | "take_escalator_up" | "take_escalator_down" | "exit_elevator" | "exit_escalator" | "start" | "arrive";
195
+ export interface NavigationStep {
196
+ id: string;
236
197
  instruction: string;
237
- distance: string;
238
- steps?: number;
239
- aproxTime?: string;
240
- icon: "left" | "right" | "startPoint" | "endPoint" | "Take Elevator" | "Take Escalator" | "Exit Elevator" | "Exit Escalator" | null;
198
+ action: NavigationAction;
199
+ icon: string;
200
+ distance: number;
201
+ distanceText: string;
202
+ timeText: string;
203
+ pathNodes: NodePoint[];
204
+ startNode: NodePoint;
205
+ endNode: NodePoint;
206
+ floorIndex: number;
241
207
  }
242
- export interface PathSummary {
208
+ export interface NavigationSummary {
243
209
  totalDistance: string;
244
- totalSteps: number;
245
210
  totalApproxTime: string;
246
211
  }
247
- export interface StepByStepResult {
248
- list: StepInstruction[];
249
- summary: PathSummary;
212
+ export interface NavigationResult {
213
+ steps: NavigationStep[];
214
+ summary: NavigationSummary;
215
+ fallbackUsed?: 'elevator_to_escalator' | 'escalator_to_elevator';
250
216
  }
251
- export type NavState = {
252
- currentFloorIndex: number;
253
- currentPointIndex: number;
254
- totalFloors: number;
255
- floorLengths: number[];
256
- canPrev: boolean;
257
- canNext: boolean;
258
- isLastStep: boolean;
259
- hasPath: boolean;
260
- };
261
- export type filterPath = {
262
- elevator: boolean;
263
- escalator: boolean;
264
- stair: boolean;
265
- };
266
- export type Theme = {
267
- "theme-path-color"?: string;
268
- "theme-path-highlight-color"?: string;
269
- "theme-anchor-store-color"?: string[];
270
- "theme-platform-color"?: string;
271
- "theme-endpoint-shape-color"?: string[];
272
- "theme-startpoint-shape-color"?: string[];
273
- "theme-shape-theme-color"?: string[];
274
- };
275
- export type CameraPosition = {
276
- x: number;
277
- y: number;
278
- z: number;
279
- zoom: number;
280
- };
281
- export type ControlsPosition = {
282
- x: number;
283
- y: number;
284
- z: number;
217
+ export type SimulationMode = 'none' | 'full' | 'current';
218
+ export type NavigationBridgeState = {
219
+ activePath: NodePoint[] | null;
220
+ navigationResult: NavigationResult | null;
221
+ simulationMode: SimulationMode;
222
+ currentStepIndex: number;
285
223
  };
286
- export type MapDataExport = {
287
- context: MapExportContext;
288
- geometry: GeometryLayer;
289
- metadata: NodeMetadata[] | Record<string, NodeMetadata>;
290
- assets?: AssetPayloads;
291
- categories?: Record<ExternalId, Category>;
292
- subCategories?: Record<ExternalId, SubCategory>;
293
- amenities?: Amenity[];
294
- weeklyHours?: Record<ExternalId, WeeklyHours>;
224
+ export type DirectionsRouteResult = {
225
+ status: "success" | "error";
226
+ navigationResult: NavigationResult | null;
227
+ error: string | null;
295
228
  };
296
- export type MapApiResponse = MapDataExport;
297
229
  export type IncomingMessage = {
298
230
  type: "event";
299
231
  key: "pong";
300
- file: string;
232
+ file?: string;
301
233
  } | {
302
234
  type: "event";
303
- key: "isConnection";
304
- value: boolean;
305
- file: string;
235
+ key: "viewerState";
236
+ value: ViewerBridgeState;
237
+ file?: string;
306
238
  } | {
307
239
  type: "event";
308
- key: "mapLoaded";
309
- value: boolean;
310
- file: string;
240
+ key: "bridgeState";
241
+ value: BridgeLoadState;
242
+ file?: string;
311
243
  } | {
312
244
  type: "event";
313
- key: "_searchablePoints";
314
- value: NodePoint[];
315
- file: string;
245
+ key: "tenantState";
246
+ value: TenantBridgeState;
247
+ file?: string;
316
248
  } | {
317
249
  type: "event";
318
- key: "_allAmenities";
319
- value: AmenityWithNodePoint[];
320
- file: string;
250
+ key: "catalogState";
251
+ value: CatalogBridgeState;
252
+ file?: string;
321
253
  } | {
322
254
  type: "event";
323
- key: "_allOffers";
324
- value: string[];
325
- file: string;
255
+ key: "floorState";
256
+ value: FloorBridgeState;
257
+ file?: string;
326
258
  } | {
327
259
  type: "event";
328
- key: "_activeFloor";
329
- value: number;
330
- file: string;
260
+ key: "nodePointState";
261
+ value: NodePointBridgeState;
262
+ file?: string;
331
263
  } | {
332
264
  type: "event";
333
- key: "FloorImg";
334
- value: FloorImage[];
335
- file: string;
265
+ key: "selectionState";
266
+ value: SelectionBridgeState;
267
+ file?: string;
336
268
  } | {
337
269
  type: "event";
338
- key: "categories";
339
- value: Record<ExternalId, Category>;
340
- file: string;
270
+ key: "isShapeClick";
271
+ value: string;
272
+ file?: string;
341
273
  } | {
342
274
  type: "event";
343
- key: "subCategories";
344
- value: Record<ExternalId, SubCategory>;
345
- file: string;
275
+ key: "isConnection";
276
+ value: boolean;
277
+ file?: string;
346
278
  } | {
347
279
  type: "event";
348
- key: "isSceneClick";
349
- file: string;
280
+ key: "directionState";
281
+ value: DirectionBridgeState;
282
+ file?: string;
350
283
  } | {
351
284
  type: "event";
352
- key: "isShapeClick";
353
- value: NodePoint;
354
- file: string;
285
+ key: "navigationState";
286
+ value: NavigationBridgeState;
287
+ file?: string;
355
288
  } | {
356
289
  type: "event";
357
- key: "stepByStepList";
358
- value: StepByStepResult;
359
- file: string;
360
- } | {
290
+ key: "directionsRouteResult";
291
+ value: DirectionsRouteResult;
292
+ file?: string;
293
+ };
294
+ export type OutgoingMessage = {
361
295
  type: "event";
362
- key: "pathNextPreState";
363
- value: NavState;
296
+ key: "ping";
297
+ value: boolean;
364
298
  file: string;
365
299
  } | {
366
300
  type: "event";
367
- key: "cameraControllerState";
301
+ key: "setDestination";
368
302
  value: {
369
- cameraPosition: CameraPosition;
370
- controlsPosition: ControlsPosition;
303
+ nodeId: string | null;
304
+ cameraAnimate: boolean;
305
+ clearSelection: boolean;
371
306
  };
372
307
  file: string;
373
308
  } | {
374
309
  type: "event";
375
- key: "sensorToggle";
376
- value: boolean;
310
+ key: "clearDestination";
311
+ value: undefined;
377
312
  file: string;
378
- };
379
- export type OutgoingMessage = {
380
- type: "applyCSS";
381
- selector: string;
382
- style: Partial<CSSStyleDeclaration>;
383
313
  } | {
384
314
  type: "event";
385
- key: "ping";
386
- value: boolean;
315
+ key: "setOrigin";
316
+ value: {
317
+ nodeId: string | null;
318
+ cameraAnimate: boolean;
319
+ clearSelection: boolean;
320
+ };
387
321
  file: string;
388
322
  } | {
389
323
  type: "event";
390
- key: "setEndPoint";
391
- value: string;
324
+ key: "clearOrigin";
325
+ value: undefined;
392
326
  file: string;
393
327
  } | {
394
328
  type: "event";
395
- key: "setStartPoint";
396
- value: string;
329
+ key: "swapOriginDestination";
330
+ value: undefined;
397
331
  file: string;
398
332
  } | {
399
333
  type: "event";
400
- key: "setActiveFloor";
401
- value: number;
334
+ key: "setActiveSelection";
335
+ value: {
336
+ type: "Category" | "SubCategory" | "Amenity" | null;
337
+ code: string | null;
338
+ };
402
339
  file: string;
403
340
  } | {
404
341
  type: "event";
405
- key: "pathNextBtnClick";
342
+ key: "clearActiveSelection";
343
+ value: undefined;
406
344
  file: string;
407
345
  } | {
408
346
  type: "event";
409
- key: "pathPreBtnClick";
347
+ key: "setOfferSelected";
348
+ value: boolean;
410
349
  file: string;
411
350
  } | {
412
351
  type: "event";
413
- key: "pathFinishBtnClick";
352
+ key: "generateDirectionsRoute";
353
+ value: undefined;
414
354
  file: string;
415
355
  } | {
416
356
  type: "event";
417
- key: "setSelectCategory";
418
- value: string | string[] | null;
357
+ key: "clearActivePath";
358
+ value: undefined;
419
359
  file: string;
420
360
  } | {
421
361
  type: "event";
422
- key: "zoomIn";
362
+ key: "changeFloor";
363
+ value: {
364
+ floorIndex: number;
365
+ animateCamera: boolean;
366
+ };
423
367
  file: string;
424
368
  } | {
425
369
  type: "event";
426
- key: "zoomOut";
370
+ key: "goToStep";
371
+ value: number;
427
372
  file: string;
428
373
  } | {
429
374
  type: "event";
430
- key: "clearStartAndEndPoint";
375
+ key: "nextStep";
376
+ value: undefined;
431
377
  file: string;
432
378
  } | {
433
379
  type: "event";
434
- key: "setPathFilter";
435
- value: filterPath;
380
+ key: "prevStep";
381
+ value: undefined;
436
382
  file: string;
437
383
  } | {
438
384
  type: "event";
439
- key: "getDirection";
385
+ key: "finishStep";
386
+ value: undefined;
440
387
  file: string;
441
388
  } | {
442
389
  type: "event";
443
- key: "setMapTheme";
390
+ key: "zoomIn";
391
+ value: undefined;
444
392
  file: string;
445
- value: Theme | null;
446
393
  } | {
447
394
  type: "event";
448
- key: "navigateTo";
449
- value: string;
395
+ key: "zoomOut";
396
+ value: undefined;
450
397
  file: string;
451
398
  } | {
452
399
  type: "event";
453
- key: "editableView";
454
- value: MapApiResponse;
400
+ key: "setViewMode";
401
+ value: {
402
+ viewMode: ViewMode;
403
+ animate: boolean;
404
+ };
455
405
  file: string;
456
406
  } | {
457
407
  type: "event";
458
- key: "pathHighlightByStepIndex";
459
- value: number;
408
+ key: "setCameraView";
409
+ value: {
410
+ cameraView: CameraView;
411
+ };
460
412
  file: string;
461
413
  } | {
462
414
  type: "event";
463
- key: "sensorData";
464
- value: SensorDataPayload;
415
+ key: "setTextType";
416
+ value: {
417
+ textType: TextType;
418
+ };
419
+ file: string;
420
+ } | {
421
+ type: "event";
422
+ key: "setShow2DIcon";
423
+ value: {
424
+ show2DIcon: boolean;
425
+ };
465
426
  file: string;
466
427
  };
467
428
  //# sourceMappingURL=types.d.ts.map