wovvmap-webview-bridge 1.0.28 → 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.
- package/README.md +1563 -221
- package/dist/handlers/WebBridgeHandlers.d.ts +3 -9
- package/dist/handlers/WebBridgeHandlers.d.ts.map +1 -1
- package/dist/handlers/WebBridgeHandlers.js +94 -51
- package/dist/index.d.ts +19 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +19 -3
- package/dist/types/types.d.ts +280 -302
- package/dist/types/types.d.ts.map +1 -1
- package/dist/web.d.ts +19 -3
- package/dist/web.d.ts.map +1 -1
- package/dist/web.js +19 -3
- package/dist/webviewBridge/BridgeService.d.ts +34 -15
- package/dist/webviewBridge/BridgeService.d.ts.map +1 -1
- package/dist/webviewBridge/BridgeService.js +227 -45
- package/dist/webviewBridge/WebViewBridgeRef.d.ts +3 -3
- package/dist/webviewBridge/WebViewBridgeRef.d.ts.map +1 -1
- package/dist/webviewBridge/WebViewBridgeRef.js +1 -1
- package/dist/webviewBridge/WebViewScreen.d.ts.map +1 -1
- package/dist/webviewBridge/services/DirectionBridgeService.d.ts +32 -0
- package/dist/webviewBridge/services/DirectionBridgeService.d.ts.map +1 -0
- package/dist/webviewBridge/services/DirectionBridgeService.js +72 -0
- package/dist/webviewBridge/services/FloorBridgeService.d.ts +4 -0
- package/dist/webviewBridge/services/FloorBridgeService.d.ts.map +1 -0
- package/dist/webviewBridge/services/FloorBridgeService.js +11 -0
- package/dist/webviewBridge/services/SelectionBridgeService.d.ts +10 -0
- package/dist/webviewBridge/services/SelectionBridgeService.d.ts.map +1 -0
- package/dist/webviewBridge/services/SelectionBridgeService.js +43 -0
- package/dist/webviewBridge/services/StepNavigationBridgeService.d.ts +7 -0
- package/dist/webviewBridge/services/StepNavigationBridgeService.d.ts.map +1 -0
- package/dist/webviewBridge/services/StepNavigationBridgeService.js +15 -0
- package/dist/webviewBridge/services/ViewerBridgeService.d.ts +8 -0
- package/dist/webviewBridge/services/ViewerBridgeService.d.ts.map +1 -0
- package/dist/webviewBridge/services/ViewerBridgeService.js +20 -0
- package/dist/webviewBridge/services/ZoomBridgeService.d.ts +5 -0
- package/dist/webviewBridge/services/ZoomBridgeService.d.ts.map +1 -0
- package/dist/webviewBridge/services/ZoomBridgeService.js +9 -0
- package/dist/webviewBridge/store/useAmenityStore.d.ts +20 -0
- package/dist/webviewBridge/store/useAmenityStore.d.ts.map +1 -0
- package/dist/webviewBridge/store/useAmenityStore.js +6 -0
- package/dist/webviewBridge/store/useBridgeStorage.d.ts +14 -0
- package/dist/webviewBridge/store/useBridgeStorage.d.ts.map +1 -0
- package/dist/webviewBridge/store/useBridgeStorage.js +13 -0
- package/dist/webviewBridge/store/useCategoryStore.d.ts +20 -0
- package/dist/webviewBridge/store/useCategoryStore.d.ts.map +1 -0
- package/dist/webviewBridge/store/useCategoryStore.js +6 -0
- package/dist/webviewBridge/store/useDirectionStore.d.ts +55 -0
- package/dist/webviewBridge/store/useDirectionStore.d.ts.map +1 -0
- package/dist/webviewBridge/store/useDirectionStore.js +35 -0
- package/dist/webviewBridge/store/useDirectionsRouteRequestStore.d.ts +14 -0
- package/dist/webviewBridge/store/useDirectionsRouteRequestStore.d.ts.map +1 -0
- package/dist/webviewBridge/store/useDirectionsRouteRequestStore.js +25 -0
- package/dist/webviewBridge/store/useFloorStore.d.ts +18 -0
- package/dist/webviewBridge/store/useFloorStore.d.ts.map +1 -0
- package/dist/webviewBridge/store/useFloorStore.js +8 -0
- package/dist/webviewBridge/store/useNavigationStore.d.ts +23 -0
- package/dist/webviewBridge/store/useNavigationStore.d.ts.map +1 -0
- package/dist/webviewBridge/store/useNavigationStore.js +18 -0
- package/dist/webviewBridge/store/useNodePointStore.d.ts +42 -0
- package/dist/webviewBridge/store/useNodePointStore.d.ts.map +1 -0
- package/dist/webviewBridge/store/useNodePointStore.js +19 -0
- package/dist/webviewBridge/store/useSelectionStore.d.ts +35 -0
- package/dist/webviewBridge/store/useSelectionStore.d.ts.map +1 -0
- package/dist/webviewBridge/store/useSelectionStore.js +32 -0
- package/dist/webviewBridge/store/useSubCategoryStore.d.ts +20 -0
- package/dist/webviewBridge/store/useSubCategoryStore.d.ts.map +1 -0
- package/dist/webviewBridge/store/useSubCategoryStore.js +6 -0
- package/dist/webviewBridge/store/useViewerStore.d.ts +35 -0
- package/dist/webviewBridge/store/useViewerStore.d.ts.map +1 -0
- package/dist/webviewBridge/store/useViewerStore.js +35 -0
- package/dist/webviewBridge/useBridgeStorage.d.ts +45 -0
- package/dist/webviewBridge/useBridgeStorage.d.ts.map +1 -0
- package/dist/webviewBridge/useBridgeStorage.js +43 -0
- package/package.json +1 -1
package/dist/types/types.d.ts
CHANGED
|
@@ -1,34 +1,68 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface Point2D {
|
|
2
2
|
x: number;
|
|
3
3
|
y: number;
|
|
4
4
|
}
|
|
5
5
|
export interface LocationName {
|
|
6
6
|
text: string;
|
|
7
|
-
area
|
|
8
|
-
rotate
|
|
9
|
-
textColor
|
|
10
|
-
textSize
|
|
11
|
-
textStyle
|
|
12
|
-
width
|
|
13
|
-
height
|
|
14
|
-
|
|
15
|
-
export interface Logo {
|
|
16
|
-
show: boolean;
|
|
17
|
-
url: string;
|
|
18
|
-
size: number;
|
|
19
|
-
x: number;
|
|
20
|
-
y: number;
|
|
21
|
-
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;
|
|
22
15
|
}
|
|
23
|
-
export interface
|
|
16
|
+
export interface colleague {
|
|
24
17
|
x: number;
|
|
25
18
|
y: number;
|
|
19
|
+
z: number;
|
|
20
|
+
key: string;
|
|
26
21
|
}
|
|
27
22
|
export interface BrandId {
|
|
28
23
|
sit: string;
|
|
29
24
|
pro: string;
|
|
30
25
|
}
|
|
31
|
-
export
|
|
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
|
+
};
|
|
32
66
|
export type DayHours = {
|
|
33
67
|
open?: string;
|
|
34
68
|
close?: string;
|
|
@@ -42,409 +76,353 @@ export type WeeklyHours = {
|
|
|
42
76
|
fri?: DayHours;
|
|
43
77
|
sat?: DayHours;
|
|
44
78
|
};
|
|
45
|
-
export type NodePointOffer = {
|
|
46
|
-
offerMstId?: ExternalId;
|
|
47
|
-
offerName?: string;
|
|
48
|
-
offerRemark?: string;
|
|
49
|
-
offerShortDesc?: string;
|
|
50
|
-
validFrom?: number;
|
|
51
|
-
validTo?: number;
|
|
52
|
-
brandLogo?: string;
|
|
53
|
-
partyCategoryCode?: ExternalId;
|
|
54
|
-
brandCode?: ExternalId;
|
|
55
|
-
brandName?: string;
|
|
56
|
-
};
|
|
57
|
-
export type BrandInfo = {
|
|
58
|
-
brandNumber?: ExternalId;
|
|
59
|
-
brandLogo?: string;
|
|
60
|
-
brandImages?: string[];
|
|
61
|
-
};
|
|
62
79
|
export interface NodePoint {
|
|
80
|
+
key: string;
|
|
63
81
|
x: number;
|
|
64
82
|
y: number;
|
|
65
83
|
z: number;
|
|
66
|
-
|
|
67
|
-
previousNode: any;
|
|
68
|
-
close: boolean;
|
|
69
|
-
colleague: any[];
|
|
70
|
-
elementTag: string;
|
|
71
|
-
LocationName: LocationName | null;
|
|
72
|
-
Category: string;
|
|
73
|
-
categoryCode?: ExternalId;
|
|
74
|
-
subCategoryCode?: ExternalId;
|
|
75
|
-
weeklyHoursId?: ExternalId;
|
|
84
|
+
shapeDetail: shapeDetail;
|
|
76
85
|
type: string;
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
color: string;
|
|
80
|
-
Description: string;
|
|
86
|
+
contactInfo: ContactInfo;
|
|
87
|
+
assets: Assets;
|
|
81
88
|
weeklyHours?: WeeklyHours;
|
|
82
|
-
offers
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
shape: ShapePoint[];
|
|
86
|
-
up: boolean;
|
|
87
|
-
down: boolean;
|
|
88
|
-
depth: number;
|
|
89
|
+
offers: NodePointOffer[];
|
|
90
|
+
amenitiesId?: string | number;
|
|
91
|
+
weeklyHoursId?: string | number;
|
|
89
92
|
brand_Id: BrandId;
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
NavigationInstruction: any;
|
|
93
|
+
categoryCode?: string | number;
|
|
94
|
+
subCategoryCode?: string | number;
|
|
95
|
+
floorIndex: number;
|
|
96
|
+
floorName: string;
|
|
95
97
|
distanceToNextPoint: number;
|
|
96
|
-
|
|
97
|
-
|
|
98
|
+
colleague: colleague[];
|
|
99
|
+
up: boolean;
|
|
100
|
+
down: boolean;
|
|
98
101
|
}
|
|
99
|
-
export
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
defaultDist: number;
|
|
107
|
-
};
|
|
108
|
-
export type GeometryFloor = {
|
|
109
|
-
id: string;
|
|
110
|
-
number: number;
|
|
111
|
-
url: string;
|
|
112
|
-
width?: number;
|
|
113
|
-
height?: number;
|
|
114
|
-
};
|
|
115
|
-
export type GeometryNodePoint = {
|
|
116
|
-
id: string;
|
|
117
|
-
x?: number;
|
|
118
|
-
y?: number;
|
|
119
|
-
z?: number;
|
|
120
|
-
shape?: Array<{
|
|
121
|
-
x: number;
|
|
122
|
-
y: number;
|
|
123
|
-
}>;
|
|
124
|
-
shapeColor?: string;
|
|
125
|
-
metaId?: string;
|
|
126
|
-
source?: "path-graph";
|
|
127
|
-
};
|
|
128
|
-
export type GeometryLayer = {
|
|
129
|
-
floors: GeometryFloor[];
|
|
130
|
-
nodePoints: GeometryNodePoint[];
|
|
131
|
-
nodeLines: Array<{
|
|
132
|
-
id: string;
|
|
133
|
-
pointAId: string;
|
|
134
|
-
pointBId: string;
|
|
135
|
-
} | {
|
|
136
|
-
a: string;
|
|
137
|
-
b: string;
|
|
138
|
-
}>;
|
|
139
|
-
};
|
|
140
|
-
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;
|
|
141
109
|
id?: string;
|
|
142
|
-
|
|
143
|
-
textId?: string;
|
|
144
|
-
text?: string;
|
|
145
|
-
categoryCode?: ExternalId;
|
|
146
|
-
subCategoryCode?: ExternalId;
|
|
147
|
-
weeklyHoursId?: ExternalId;
|
|
148
|
-
pointImageIds?: ExternalId[];
|
|
149
|
-
logoImageIds?: ExternalId[];
|
|
150
|
-
type?: string;
|
|
151
|
-
description?: string;
|
|
152
|
-
color?: string;
|
|
153
|
-
brandInfo?: BrandInfo;
|
|
154
|
-
weeklyHours?: WeeklyHours;
|
|
155
|
-
offers?: NodePointOffer[];
|
|
156
|
-
customNotes?: string;
|
|
157
|
-
};
|
|
158
|
-
export type AssetPayloads = {
|
|
159
|
-
texts?: Array<{
|
|
160
|
-
id: string;
|
|
161
|
-
text: string;
|
|
162
|
-
nodePointId?: string;
|
|
163
|
-
x?: number;
|
|
164
|
-
y?: number;
|
|
165
|
-
rotation?: number;
|
|
166
|
-
fontSize?: number;
|
|
167
|
-
color?: string;
|
|
168
|
-
}> | Record<string, {
|
|
169
|
-
text: string;
|
|
170
|
-
nodePointId?: string;
|
|
171
|
-
x?: number;
|
|
172
|
-
y?: number;
|
|
173
|
-
rotation?: number;
|
|
174
|
-
fontSize?: number;
|
|
175
|
-
color?: string;
|
|
176
|
-
}>;
|
|
177
|
-
pointImages?: Array<{
|
|
178
|
-
id: string;
|
|
179
|
-
src: string;
|
|
180
|
-
nodePointId?: string;
|
|
181
|
-
}> | Record<string, {
|
|
182
|
-
src: string;
|
|
183
|
-
nodePointId?: string;
|
|
184
|
-
}>;
|
|
185
|
-
logoImages?: Array<{
|
|
186
|
-
id: string;
|
|
187
|
-
src: string;
|
|
188
|
-
nodePointId?: string;
|
|
189
|
-
}> | Record<string, {
|
|
190
|
-
src: string;
|
|
191
|
-
nodePointId?: string;
|
|
192
|
-
}>;
|
|
193
|
-
};
|
|
110
|
+
}
|
|
194
111
|
export type Category = {
|
|
195
|
-
code:
|
|
112
|
+
code: string | number;
|
|
196
113
|
name: string;
|
|
197
114
|
image?: string;
|
|
198
|
-
subCategoryCodes:
|
|
115
|
+
subCategoryCodes: string[] | number[];
|
|
199
116
|
nodePointsKey?: string[];
|
|
117
|
+
nodePoints?: NodePoint[];
|
|
200
118
|
};
|
|
201
119
|
export type SubCategory = {
|
|
202
|
-
code:
|
|
120
|
+
code: string | number;
|
|
203
121
|
name: string;
|
|
204
122
|
image?: string;
|
|
205
123
|
description?: string;
|
|
206
|
-
categoryCode:
|
|
124
|
+
categoryCode: string | number;
|
|
207
125
|
nodePointsKey?: string[];
|
|
126
|
+
nodePoints?: NodePoint[];
|
|
208
127
|
};
|
|
209
128
|
export type Amenity = {
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
wayfinding_id
|
|
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[];
|
|
216
137
|
};
|
|
217
|
-
export type
|
|
218
|
-
|
|
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;
|
|
219
146
|
};
|
|
220
|
-
export
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
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;
|
|
229
197
|
instruction: string;
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
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;
|
|
234
207
|
}
|
|
235
|
-
export interface
|
|
208
|
+
export interface NavigationSummary {
|
|
236
209
|
totalDistance: string;
|
|
237
|
-
totalSteps: number;
|
|
238
210
|
totalApproxTime: string;
|
|
239
211
|
}
|
|
240
|
-
export interface
|
|
241
|
-
|
|
242
|
-
summary:
|
|
212
|
+
export interface NavigationResult {
|
|
213
|
+
steps: NavigationStep[];
|
|
214
|
+
summary: NavigationSummary;
|
|
215
|
+
fallbackUsed?: 'elevator_to_escalator' | 'escalator_to_elevator';
|
|
243
216
|
}
|
|
244
|
-
export type
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
canNext: boolean;
|
|
251
|
-
isLastStep: boolean;
|
|
252
|
-
hasPath: boolean;
|
|
253
|
-
};
|
|
254
|
-
export type filterPath = {
|
|
255
|
-
elevator: boolean;
|
|
256
|
-
escalator: boolean;
|
|
257
|
-
stair: boolean;
|
|
258
|
-
};
|
|
259
|
-
export type Theme = {
|
|
260
|
-
"theme-path-color"?: string;
|
|
261
|
-
"theme-path-highlight-color"?: string;
|
|
262
|
-
"theme-anchor-store-color"?: string[];
|
|
263
|
-
"theme-platform-color"?: string;
|
|
264
|
-
"theme-endpoint-shape-color"?: string[];
|
|
265
|
-
"theme-startpoint-shape-color"?: string[];
|
|
266
|
-
"theme-shape-theme-color"?: string[];
|
|
267
|
-
};
|
|
268
|
-
export type CameraPosition = {
|
|
269
|
-
x: number;
|
|
270
|
-
y: number;
|
|
271
|
-
z: number;
|
|
272
|
-
zoom: number;
|
|
273
|
-
};
|
|
274
|
-
export type ControlsPosition = {
|
|
275
|
-
x: number;
|
|
276
|
-
y: number;
|
|
277
|
-
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;
|
|
278
223
|
};
|
|
279
|
-
export type
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
assets?: AssetPayloads;
|
|
284
|
-
categories?: Record<ExternalId, Category>;
|
|
285
|
-
subCategories?: Record<ExternalId, SubCategory>;
|
|
286
|
-
amenities?: Amenity[];
|
|
287
|
-
weeklyHours?: Record<ExternalId, WeeklyHours>;
|
|
224
|
+
export type DirectionsRouteResult = {
|
|
225
|
+
status: "success" | "error";
|
|
226
|
+
navigationResult: NavigationResult | null;
|
|
227
|
+
error: string | null;
|
|
288
228
|
};
|
|
289
|
-
export type MapApiResponse = MapDataExport;
|
|
290
229
|
export type IncomingMessage = {
|
|
291
230
|
type: "event";
|
|
292
231
|
key: "pong";
|
|
293
|
-
file
|
|
232
|
+
file?: string;
|
|
294
233
|
} | {
|
|
295
234
|
type: "event";
|
|
296
|
-
key: "
|
|
297
|
-
value:
|
|
298
|
-
file
|
|
235
|
+
key: "viewerState";
|
|
236
|
+
value: ViewerBridgeState;
|
|
237
|
+
file?: string;
|
|
299
238
|
} | {
|
|
300
239
|
type: "event";
|
|
301
|
-
key: "
|
|
302
|
-
value:
|
|
303
|
-
file
|
|
240
|
+
key: "bridgeState";
|
|
241
|
+
value: BridgeLoadState;
|
|
242
|
+
file?: string;
|
|
304
243
|
} | {
|
|
305
244
|
type: "event";
|
|
306
|
-
key: "
|
|
307
|
-
value:
|
|
308
|
-
file
|
|
245
|
+
key: "tenantState";
|
|
246
|
+
value: TenantBridgeState;
|
|
247
|
+
file?: string;
|
|
309
248
|
} | {
|
|
310
249
|
type: "event";
|
|
311
|
-
key: "
|
|
312
|
-
value:
|
|
313
|
-
file
|
|
250
|
+
key: "catalogState";
|
|
251
|
+
value: CatalogBridgeState;
|
|
252
|
+
file?: string;
|
|
314
253
|
} | {
|
|
315
254
|
type: "event";
|
|
316
|
-
key: "
|
|
317
|
-
value:
|
|
318
|
-
file
|
|
255
|
+
key: "floorState";
|
|
256
|
+
value: FloorBridgeState;
|
|
257
|
+
file?: string;
|
|
319
258
|
} | {
|
|
320
259
|
type: "event";
|
|
321
|
-
key: "
|
|
322
|
-
value:
|
|
323
|
-
file
|
|
260
|
+
key: "nodePointState";
|
|
261
|
+
value: NodePointBridgeState;
|
|
262
|
+
file?: string;
|
|
324
263
|
} | {
|
|
325
264
|
type: "event";
|
|
326
|
-
key: "
|
|
327
|
-
value:
|
|
328
|
-
file
|
|
265
|
+
key: "selectionState";
|
|
266
|
+
value: SelectionBridgeState;
|
|
267
|
+
file?: string;
|
|
329
268
|
} | {
|
|
330
269
|
type: "event";
|
|
331
|
-
key: "
|
|
332
|
-
value:
|
|
333
|
-
file
|
|
270
|
+
key: "isShapeClick";
|
|
271
|
+
value: string;
|
|
272
|
+
file?: string;
|
|
334
273
|
} | {
|
|
335
274
|
type: "event";
|
|
336
|
-
key: "
|
|
337
|
-
value:
|
|
338
|
-
file
|
|
275
|
+
key: "isConnection";
|
|
276
|
+
value: boolean;
|
|
277
|
+
file?: string;
|
|
339
278
|
} | {
|
|
340
279
|
type: "event";
|
|
341
|
-
key: "
|
|
342
|
-
|
|
280
|
+
key: "directionState";
|
|
281
|
+
value: DirectionBridgeState;
|
|
282
|
+
file?: string;
|
|
343
283
|
} | {
|
|
344
284
|
type: "event";
|
|
345
|
-
key: "
|
|
346
|
-
value:
|
|
285
|
+
key: "navigationState";
|
|
286
|
+
value: NavigationBridgeState;
|
|
287
|
+
file?: string;
|
|
288
|
+
} | {
|
|
289
|
+
type: "event";
|
|
290
|
+
key: "directionsRouteResult";
|
|
291
|
+
value: DirectionsRouteResult;
|
|
292
|
+
file?: string;
|
|
293
|
+
};
|
|
294
|
+
export type OutgoingMessage = {
|
|
295
|
+
type: "event";
|
|
296
|
+
key: "ping";
|
|
297
|
+
value: boolean;
|
|
347
298
|
file: string;
|
|
348
299
|
} | {
|
|
349
300
|
type: "event";
|
|
350
|
-
key: "
|
|
351
|
-
value:
|
|
301
|
+
key: "setDestination";
|
|
302
|
+
value: {
|
|
303
|
+
nodeId: string | null;
|
|
304
|
+
cameraAnimate: boolean;
|
|
305
|
+
clearSelection: boolean;
|
|
306
|
+
};
|
|
352
307
|
file: string;
|
|
353
308
|
} | {
|
|
354
309
|
type: "event";
|
|
355
|
-
key: "
|
|
356
|
-
value:
|
|
310
|
+
key: "clearDestination";
|
|
311
|
+
value: undefined;
|
|
357
312
|
file: string;
|
|
358
313
|
} | {
|
|
359
314
|
type: "event";
|
|
360
|
-
key: "
|
|
315
|
+
key: "setOrigin";
|
|
361
316
|
value: {
|
|
362
|
-
|
|
363
|
-
|
|
317
|
+
nodeId: string | null;
|
|
318
|
+
cameraAnimate: boolean;
|
|
319
|
+
clearSelection: boolean;
|
|
364
320
|
};
|
|
365
321
|
file: string;
|
|
366
|
-
};
|
|
367
|
-
export type OutgoingMessage = {
|
|
368
|
-
type: "applyCSS";
|
|
369
|
-
selector: string;
|
|
370
|
-
style: Partial<CSSStyleDeclaration>;
|
|
371
322
|
} | {
|
|
372
323
|
type: "event";
|
|
373
|
-
key: "
|
|
374
|
-
value:
|
|
324
|
+
key: "clearOrigin";
|
|
325
|
+
value: undefined;
|
|
375
326
|
file: string;
|
|
376
327
|
} | {
|
|
377
328
|
type: "event";
|
|
378
|
-
key: "
|
|
379
|
-
value:
|
|
329
|
+
key: "swapOriginDestination";
|
|
330
|
+
value: undefined;
|
|
380
331
|
file: string;
|
|
381
332
|
} | {
|
|
382
333
|
type: "event";
|
|
383
|
-
key: "
|
|
384
|
-
value:
|
|
334
|
+
key: "setActiveSelection";
|
|
335
|
+
value: {
|
|
336
|
+
type: "Category" | "SubCategory" | "Amenity" | null;
|
|
337
|
+
code: string | null;
|
|
338
|
+
};
|
|
385
339
|
file: string;
|
|
386
340
|
} | {
|
|
387
341
|
type: "event";
|
|
388
|
-
key: "
|
|
389
|
-
value:
|
|
342
|
+
key: "clearActiveSelection";
|
|
343
|
+
value: undefined;
|
|
390
344
|
file: string;
|
|
391
345
|
} | {
|
|
392
346
|
type: "event";
|
|
393
|
-
key: "
|
|
347
|
+
key: "setOfferSelected";
|
|
348
|
+
value: boolean;
|
|
394
349
|
file: string;
|
|
395
350
|
} | {
|
|
396
351
|
type: "event";
|
|
397
|
-
key: "
|
|
352
|
+
key: "generateDirectionsRoute";
|
|
353
|
+
value: undefined;
|
|
398
354
|
file: string;
|
|
399
355
|
} | {
|
|
400
356
|
type: "event";
|
|
401
|
-
key: "
|
|
357
|
+
key: "clearActivePath";
|
|
358
|
+
value: undefined;
|
|
402
359
|
file: string;
|
|
403
360
|
} | {
|
|
404
361
|
type: "event";
|
|
405
|
-
key: "
|
|
406
|
-
value:
|
|
362
|
+
key: "changeFloor";
|
|
363
|
+
value: {
|
|
364
|
+
floorIndex: number;
|
|
365
|
+
animateCamera: boolean;
|
|
366
|
+
};
|
|
407
367
|
file: string;
|
|
408
368
|
} | {
|
|
409
369
|
type: "event";
|
|
410
|
-
key: "
|
|
370
|
+
key: "goToStep";
|
|
371
|
+
value: number;
|
|
411
372
|
file: string;
|
|
412
373
|
} | {
|
|
413
374
|
type: "event";
|
|
414
|
-
key: "
|
|
375
|
+
key: "nextStep";
|
|
376
|
+
value: undefined;
|
|
415
377
|
file: string;
|
|
416
378
|
} | {
|
|
417
379
|
type: "event";
|
|
418
|
-
key: "
|
|
380
|
+
key: "prevStep";
|
|
381
|
+
value: undefined;
|
|
419
382
|
file: string;
|
|
420
383
|
} | {
|
|
421
384
|
type: "event";
|
|
422
|
-
key: "
|
|
423
|
-
value:
|
|
385
|
+
key: "finishStep";
|
|
386
|
+
value: undefined;
|
|
424
387
|
file: string;
|
|
425
388
|
} | {
|
|
426
389
|
type: "event";
|
|
427
|
-
key: "
|
|
390
|
+
key: "zoomIn";
|
|
391
|
+
value: undefined;
|
|
428
392
|
file: string;
|
|
429
393
|
} | {
|
|
430
394
|
type: "event";
|
|
431
|
-
key: "
|
|
395
|
+
key: "zoomOut";
|
|
396
|
+
value: undefined;
|
|
432
397
|
file: string;
|
|
433
|
-
value: Theme | null;
|
|
434
398
|
} | {
|
|
435
399
|
type: "event";
|
|
436
|
-
key: "
|
|
437
|
-
value:
|
|
400
|
+
key: "setViewMode";
|
|
401
|
+
value: {
|
|
402
|
+
viewMode: ViewMode;
|
|
403
|
+
animate: boolean;
|
|
404
|
+
};
|
|
438
405
|
file: string;
|
|
439
406
|
} | {
|
|
440
407
|
type: "event";
|
|
441
|
-
key: "
|
|
442
|
-
value:
|
|
408
|
+
key: "setCameraView";
|
|
409
|
+
value: {
|
|
410
|
+
cameraView: CameraView;
|
|
411
|
+
};
|
|
443
412
|
file: string;
|
|
444
413
|
} | {
|
|
445
414
|
type: "event";
|
|
446
|
-
key: "
|
|
447
|
-
value:
|
|
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
|
+
};
|
|
448
426
|
file: string;
|
|
449
427
|
};
|
|
450
428
|
//# sourceMappingURL=types.d.ts.map
|