wovvmap-webview-bridge 1.0.29 → 1.1.0
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 +1644 -226
- package/dist/handlers/WebBridgeHandlers.d.ts +3 -15
- package/dist/handlers/WebBridgeHandlers.d.ts.map +1 -1
- package/dist/handlers/WebBridgeHandlers.js +94 -53
- 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 +278 -316
- 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 -17
- package/dist/webviewBridge/BridgeService.d.ts.map +1 -1
- package/dist/webviewBridge/BridgeService.js +227 -51
- 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 +37 -0
- package/dist/webviewBridge/store/useViewerStore.d.ts.map +1 -0
- package/dist/webviewBridge/store/useViewerStore.js +41 -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,41 +1,68 @@
|
|
|
1
|
-
export interface
|
|
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
|
|
15
|
-
rotate
|
|
16
|
-
textColor
|
|
17
|
-
textSize
|
|
18
|
-
textStyle
|
|
19
|
-
width
|
|
20
|
-
height
|
|
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
|
|
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
|
|
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,354 @@ 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
|
-
|
|
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
|
-
|
|
85
|
-
|
|
86
|
-
color: string;
|
|
87
|
-
Description: string;
|
|
86
|
+
contactInfo: ContactInfo;
|
|
87
|
+
assets: Assets;
|
|
88
88
|
weeklyHours?: WeeklyHours;
|
|
89
|
-
offers
|
|
90
|
-
|
|
91
|
-
|
|
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
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
NavigationInstruction: any;
|
|
93
|
+
categoryCode?: string | number;
|
|
94
|
+
subCategoryCode?: string | number;
|
|
95
|
+
floorIndex: number;
|
|
96
|
+
floorName: string;
|
|
102
97
|
distanceToNextPoint: number;
|
|
103
|
-
|
|
104
|
-
|
|
98
|
+
colleague: colleague[];
|
|
99
|
+
up: boolean;
|
|
100
|
+
down: boolean;
|
|
105
101
|
}
|
|
106
|
-
export
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
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
|
-
|
|
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:
|
|
112
|
+
code: string | number;
|
|
203
113
|
name: string;
|
|
204
114
|
image?: string;
|
|
205
|
-
subCategoryCodes:
|
|
115
|
+
subCategoryCodes: string[] | number[];
|
|
206
116
|
nodePointsKey?: string[];
|
|
117
|
+
nodePoints?: NodePoint[];
|
|
207
118
|
};
|
|
208
119
|
export type SubCategory = {
|
|
209
|
-
code:
|
|
120
|
+
code: string | number;
|
|
210
121
|
name: string;
|
|
211
122
|
image?: string;
|
|
212
123
|
description?: string;
|
|
213
|
-
categoryCode:
|
|
124
|
+
categoryCode: string | number;
|
|
214
125
|
nodePointsKey?: string[];
|
|
126
|
+
nodePoints?: NodePoint[];
|
|
215
127
|
};
|
|
216
128
|
export type Amenity = {
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
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[];
|
|
223
137
|
};
|
|
224
|
-
export type
|
|
225
|
-
|
|
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
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
147
|
+
export type ViewMode = '2D' | '3D';
|
|
148
|
+
export type CameraView = 'street' | 'sky';
|
|
149
|
+
export type TextType = '2D' | '3D';
|
|
150
|
+
export type ViewerBridgeState = {
|
|
151
|
+
mallName: string | null;
|
|
152
|
+
apiVersion: string;
|
|
153
|
+
viewMode: ViewMode;
|
|
154
|
+
cameraView: CameraView;
|
|
155
|
+
textType: TextType;
|
|
156
|
+
show2DIcon: boolean;
|
|
157
|
+
isMapParsed: boolean;
|
|
158
|
+
isLoading: boolean;
|
|
159
|
+
};
|
|
160
|
+
export type DirectionBridgeState = {
|
|
161
|
+
selectedOriginPointId: string | null;
|
|
162
|
+
selectedDestinationPointId: string | null;
|
|
163
|
+
pathfindingError: string | null;
|
|
164
|
+
routingPreferences: RoutingPreferences;
|
|
165
|
+
};
|
|
166
|
+
export type BridgeLoadState = {
|
|
167
|
+
isMapLoaded: boolean;
|
|
168
|
+
};
|
|
169
|
+
export type TenantBridgeState = {
|
|
170
|
+
imageBaseUrl: string | null;
|
|
171
|
+
};
|
|
172
|
+
export type CatalogBridgeState = {
|
|
173
|
+
categories: Record<string, Category>;
|
|
174
|
+
subCategories: Record<string, SubCategory>;
|
|
175
|
+
amenities: Record<string, Amenity>;
|
|
176
|
+
};
|
|
177
|
+
export type FloorBridgeState = {
|
|
178
|
+
activeFloor: number | null;
|
|
179
|
+
floors: FloorImage[];
|
|
180
|
+
};
|
|
181
|
+
export type NodePointBridgeState = {
|
|
182
|
+
searchableNodePointMap: NodePoint[];
|
|
183
|
+
locationGroupedNodeMap: Record<string, string[]>;
|
|
184
|
+
keyNodeMap: Record<string, NodePoint>;
|
|
185
|
+
offersNodeMap: OffersNodeMap;
|
|
186
|
+
};
|
|
187
|
+
export type SelectionBridgeState = {
|
|
188
|
+
activeSelection: {
|
|
189
|
+
type: 'Category' | 'SubCategory' | 'Amenity' | null;
|
|
190
|
+
id: string | null;
|
|
191
|
+
};
|
|
192
|
+
activeCategory: Category | null;
|
|
193
|
+
isOfferSelected: boolean;
|
|
194
|
+
};
|
|
195
|
+
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";
|
|
196
|
+
export interface NavigationStep {
|
|
197
|
+
id: string;
|
|
236
198
|
instruction: string;
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
199
|
+
action: NavigationAction;
|
|
200
|
+
icon: string;
|
|
201
|
+
distance: number;
|
|
202
|
+
distanceText: string;
|
|
203
|
+
timeText: string;
|
|
204
|
+
pathNodes: NodePoint[];
|
|
205
|
+
startNode: NodePoint;
|
|
206
|
+
endNode: NodePoint;
|
|
207
|
+
floorIndex: number;
|
|
241
208
|
}
|
|
242
|
-
export interface
|
|
209
|
+
export interface NavigationSummary {
|
|
243
210
|
totalDistance: string;
|
|
244
|
-
totalSteps: number;
|
|
245
211
|
totalApproxTime: string;
|
|
246
212
|
}
|
|
247
|
-
export interface
|
|
248
|
-
|
|
249
|
-
summary:
|
|
213
|
+
export interface NavigationResult {
|
|
214
|
+
steps: NavigationStep[];
|
|
215
|
+
summary: NavigationSummary;
|
|
216
|
+
fallbackUsed?: 'elevator_to_escalator' | 'escalator_to_elevator';
|
|
250
217
|
}
|
|
251
|
-
export type
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
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;
|
|
218
|
+
export type SimulationMode = 'none' | 'full' | 'current';
|
|
219
|
+
export type NavigationBridgeState = {
|
|
220
|
+
activePath: NodePoint[] | null;
|
|
221
|
+
navigationResult: NavigationResult | null;
|
|
222
|
+
simulationMode: SimulationMode;
|
|
223
|
+
currentStepIndex: number;
|
|
285
224
|
};
|
|
286
|
-
export type
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
assets?: AssetPayloads;
|
|
291
|
-
categories?: Record<ExternalId, Category>;
|
|
292
|
-
subCategories?: Record<ExternalId, SubCategory>;
|
|
293
|
-
amenities?: Amenity[];
|
|
294
|
-
weeklyHours?: Record<ExternalId, WeeklyHours>;
|
|
225
|
+
export type DirectionsRouteResult = {
|
|
226
|
+
status: "success" | "error";
|
|
227
|
+
navigationResult: NavigationResult | null;
|
|
228
|
+
error: string | null;
|
|
295
229
|
};
|
|
296
|
-
export type MapApiResponse = MapDataExport;
|
|
297
230
|
export type IncomingMessage = {
|
|
298
231
|
type: "event";
|
|
299
232
|
key: "pong";
|
|
300
|
-
file
|
|
233
|
+
file?: string;
|
|
301
234
|
} | {
|
|
302
235
|
type: "event";
|
|
303
|
-
key: "
|
|
304
|
-
value:
|
|
305
|
-
file
|
|
236
|
+
key: "viewerState";
|
|
237
|
+
value: ViewerBridgeState;
|
|
238
|
+
file?: string;
|
|
306
239
|
} | {
|
|
307
240
|
type: "event";
|
|
308
|
-
key: "
|
|
309
|
-
value:
|
|
310
|
-
file
|
|
241
|
+
key: "bridgeState";
|
|
242
|
+
value: BridgeLoadState;
|
|
243
|
+
file?: string;
|
|
311
244
|
} | {
|
|
312
245
|
type: "event";
|
|
313
|
-
key: "
|
|
314
|
-
value:
|
|
315
|
-
file
|
|
246
|
+
key: "tenantState";
|
|
247
|
+
value: TenantBridgeState;
|
|
248
|
+
file?: string;
|
|
316
249
|
} | {
|
|
317
250
|
type: "event";
|
|
318
|
-
key: "
|
|
319
|
-
value:
|
|
320
|
-
file
|
|
251
|
+
key: "catalogState";
|
|
252
|
+
value: CatalogBridgeState;
|
|
253
|
+
file?: string;
|
|
321
254
|
} | {
|
|
322
255
|
type: "event";
|
|
323
|
-
key: "
|
|
324
|
-
value:
|
|
325
|
-
file
|
|
256
|
+
key: "floorState";
|
|
257
|
+
value: FloorBridgeState;
|
|
258
|
+
file?: string;
|
|
326
259
|
} | {
|
|
327
260
|
type: "event";
|
|
328
|
-
key: "
|
|
329
|
-
value:
|
|
330
|
-
file
|
|
261
|
+
key: "nodePointState";
|
|
262
|
+
value: NodePointBridgeState;
|
|
263
|
+
file?: string;
|
|
331
264
|
} | {
|
|
332
265
|
type: "event";
|
|
333
|
-
key: "
|
|
334
|
-
value:
|
|
335
|
-
file
|
|
266
|
+
key: "selectionState";
|
|
267
|
+
value: SelectionBridgeState;
|
|
268
|
+
file?: string;
|
|
336
269
|
} | {
|
|
337
270
|
type: "event";
|
|
338
|
-
key: "
|
|
339
|
-
value:
|
|
340
|
-
file
|
|
271
|
+
key: "isShapeClick";
|
|
272
|
+
value: string;
|
|
273
|
+
file?: string;
|
|
341
274
|
} | {
|
|
342
275
|
type: "event";
|
|
343
|
-
key: "
|
|
344
|
-
value:
|
|
345
|
-
file
|
|
276
|
+
key: "isConnection";
|
|
277
|
+
value: boolean;
|
|
278
|
+
file?: string;
|
|
346
279
|
} | {
|
|
347
280
|
type: "event";
|
|
348
|
-
key: "
|
|
349
|
-
|
|
281
|
+
key: "directionState";
|
|
282
|
+
value: DirectionBridgeState;
|
|
283
|
+
file?: string;
|
|
350
284
|
} | {
|
|
351
285
|
type: "event";
|
|
352
|
-
key: "
|
|
353
|
-
value:
|
|
354
|
-
file
|
|
286
|
+
key: "navigationState";
|
|
287
|
+
value: NavigationBridgeState;
|
|
288
|
+
file?: string;
|
|
355
289
|
} | {
|
|
356
290
|
type: "event";
|
|
357
|
-
key: "
|
|
358
|
-
value:
|
|
359
|
-
file
|
|
360
|
-
}
|
|
291
|
+
key: "directionsRouteResult";
|
|
292
|
+
value: DirectionsRouteResult;
|
|
293
|
+
file?: string;
|
|
294
|
+
};
|
|
295
|
+
export type OutgoingMessage = {
|
|
361
296
|
type: "event";
|
|
362
|
-
key: "
|
|
363
|
-
value:
|
|
297
|
+
key: "ping";
|
|
298
|
+
value: boolean;
|
|
364
299
|
file: string;
|
|
365
300
|
} | {
|
|
366
301
|
type: "event";
|
|
367
|
-
key: "
|
|
302
|
+
key: "setDestination";
|
|
368
303
|
value: {
|
|
369
|
-
|
|
370
|
-
|
|
304
|
+
nodeId: string | null;
|
|
305
|
+
cameraAnimate: boolean;
|
|
306
|
+
clearSelection: boolean;
|
|
371
307
|
};
|
|
372
308
|
file: string;
|
|
373
309
|
} | {
|
|
374
310
|
type: "event";
|
|
375
|
-
key: "
|
|
376
|
-
value:
|
|
311
|
+
key: "clearDestination";
|
|
312
|
+
value: undefined;
|
|
377
313
|
file: string;
|
|
378
|
-
};
|
|
379
|
-
export type OutgoingMessage = {
|
|
380
|
-
type: "applyCSS";
|
|
381
|
-
selector: string;
|
|
382
|
-
style: Partial<CSSStyleDeclaration>;
|
|
383
314
|
} | {
|
|
384
315
|
type: "event";
|
|
385
|
-
key: "
|
|
386
|
-
value:
|
|
316
|
+
key: "setOrigin";
|
|
317
|
+
value: {
|
|
318
|
+
nodeId: string | null;
|
|
319
|
+
cameraAnimate: boolean;
|
|
320
|
+
clearSelection: boolean;
|
|
321
|
+
};
|
|
387
322
|
file: string;
|
|
388
323
|
} | {
|
|
389
324
|
type: "event";
|
|
390
|
-
key: "
|
|
391
|
-
value:
|
|
325
|
+
key: "clearOrigin";
|
|
326
|
+
value: undefined;
|
|
392
327
|
file: string;
|
|
393
328
|
} | {
|
|
394
329
|
type: "event";
|
|
395
|
-
key: "
|
|
396
|
-
value:
|
|
330
|
+
key: "swapOriginDestination";
|
|
331
|
+
value: undefined;
|
|
397
332
|
file: string;
|
|
398
333
|
} | {
|
|
399
334
|
type: "event";
|
|
400
|
-
key: "
|
|
401
|
-
value:
|
|
335
|
+
key: "setActiveSelection";
|
|
336
|
+
value: {
|
|
337
|
+
type: "Category" | "SubCategory" | "Amenity" | null;
|
|
338
|
+
code: string | null;
|
|
339
|
+
};
|
|
402
340
|
file: string;
|
|
403
341
|
} | {
|
|
404
342
|
type: "event";
|
|
405
|
-
key: "
|
|
343
|
+
key: "clearActiveSelection";
|
|
344
|
+
value: undefined;
|
|
406
345
|
file: string;
|
|
407
346
|
} | {
|
|
408
347
|
type: "event";
|
|
409
|
-
key: "
|
|
348
|
+
key: "setOfferSelected";
|
|
349
|
+
value: boolean;
|
|
410
350
|
file: string;
|
|
411
351
|
} | {
|
|
412
352
|
type: "event";
|
|
413
|
-
key: "
|
|
353
|
+
key: "generateDirectionsRoute";
|
|
354
|
+
value: undefined;
|
|
414
355
|
file: string;
|
|
415
356
|
} | {
|
|
416
357
|
type: "event";
|
|
417
|
-
key: "
|
|
418
|
-
value:
|
|
358
|
+
key: "clearActivePath";
|
|
359
|
+
value: undefined;
|
|
419
360
|
file: string;
|
|
420
361
|
} | {
|
|
421
362
|
type: "event";
|
|
422
|
-
key: "
|
|
363
|
+
key: "changeFloor";
|
|
364
|
+
value: {
|
|
365
|
+
floorIndex: number;
|
|
366
|
+
animateCamera: boolean;
|
|
367
|
+
};
|
|
423
368
|
file: string;
|
|
424
369
|
} | {
|
|
425
370
|
type: "event";
|
|
426
|
-
key: "
|
|
371
|
+
key: "goToStep";
|
|
372
|
+
value: number;
|
|
427
373
|
file: string;
|
|
428
374
|
} | {
|
|
429
375
|
type: "event";
|
|
430
|
-
key: "
|
|
376
|
+
key: "nextStep";
|
|
377
|
+
value: undefined;
|
|
431
378
|
file: string;
|
|
432
379
|
} | {
|
|
433
380
|
type: "event";
|
|
434
|
-
key: "
|
|
435
|
-
value:
|
|
381
|
+
key: "prevStep";
|
|
382
|
+
value: undefined;
|
|
436
383
|
file: string;
|
|
437
384
|
} | {
|
|
438
385
|
type: "event";
|
|
439
|
-
key: "
|
|
386
|
+
key: "finishStep";
|
|
387
|
+
value: undefined;
|
|
440
388
|
file: string;
|
|
441
389
|
} | {
|
|
442
390
|
type: "event";
|
|
443
|
-
key: "
|
|
391
|
+
key: "zoomIn";
|
|
392
|
+
value: undefined;
|
|
444
393
|
file: string;
|
|
445
|
-
value: Theme | null;
|
|
446
394
|
} | {
|
|
447
395
|
type: "event";
|
|
448
|
-
key: "
|
|
449
|
-
value:
|
|
396
|
+
key: "zoomOut";
|
|
397
|
+
value: undefined;
|
|
450
398
|
file: string;
|
|
451
399
|
} | {
|
|
452
400
|
type: "event";
|
|
453
|
-
key: "
|
|
454
|
-
value:
|
|
401
|
+
key: "setViewMode";
|
|
402
|
+
value: {
|
|
403
|
+
viewMode: ViewMode;
|
|
404
|
+
animate: boolean;
|
|
405
|
+
};
|
|
455
406
|
file: string;
|
|
456
407
|
} | {
|
|
457
408
|
type: "event";
|
|
458
|
-
key: "
|
|
459
|
-
value:
|
|
409
|
+
key: "setCameraView";
|
|
410
|
+
value: {
|
|
411
|
+
cameraView: CameraView;
|
|
412
|
+
};
|
|
460
413
|
file: string;
|
|
461
414
|
} | {
|
|
462
415
|
type: "event";
|
|
463
|
-
key: "
|
|
464
|
-
value:
|
|
416
|
+
key: "setTextType";
|
|
417
|
+
value: {
|
|
418
|
+
textType: TextType;
|
|
419
|
+
};
|
|
420
|
+
file: string;
|
|
421
|
+
} | {
|
|
422
|
+
type: "event";
|
|
423
|
+
key: "setShow2DIcon";
|
|
424
|
+
value: {
|
|
425
|
+
show2DIcon: boolean;
|
|
426
|
+
};
|
|
465
427
|
file: string;
|
|
466
428
|
};
|
|
467
429
|
//# sourceMappingURL=types.d.ts.map
|