@situm/react-native 3.0.2 → 3.0.3-beta.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.
Files changed (111) hide show
  1. package/ReactNativeSitumPlugin.podspec +13 -10
  2. package/lib/commonjs/index.js +10 -22
  3. package/lib/commonjs/index.js.map +1 -1
  4. package/lib/commonjs/sdk/index.js +13 -0
  5. package/lib/commonjs/sdk/index.js.map +1 -1
  6. package/lib/commonjs/sdk/types/constants.js +30 -0
  7. package/lib/commonjs/sdk/types/constants.js.map +1 -0
  8. package/lib/commonjs/{wayfinding/types/index.d.js → sdk/types/index.js} +1 -1
  9. package/lib/commonjs/{wayfinding/types/index.d.js.map → sdk/types/index.js.map} +1 -1
  10. package/lib/commonjs/utils/index.js +28 -0
  11. package/lib/commonjs/utils/index.js.map +1 -0
  12. package/lib/commonjs/utils/requestPermission.js +15 -14
  13. package/lib/commonjs/utils/requestPermission.js.map +1 -1
  14. package/lib/commonjs/wayfinding/components/MapView.js +11 -17
  15. package/lib/commonjs/wayfinding/components/MapView.js.map +1 -1
  16. package/lib/commonjs/wayfinding/hooks/index.js +44 -44
  17. package/lib/commonjs/wayfinding/hooks/index.js.map +1 -1
  18. package/lib/commonjs/wayfinding/index.js +4 -4
  19. package/lib/commonjs/wayfinding/index.js.map +1 -1
  20. package/lib/commonjs/wayfinding/store/index.js +3 -5
  21. package/lib/commonjs/wayfinding/store/index.js.map +1 -1
  22. package/lib/commonjs/wayfinding/types/constants.js +14 -0
  23. package/lib/commonjs/wayfinding/types/constants.js.map +1 -0
  24. package/lib/commonjs/wayfinding/types/index.js +6 -0
  25. package/lib/{module/wayfinding/types/index.d.js.map → commonjs/wayfinding/types/index.js.map} +1 -1
  26. package/lib/commonjs/wayfinding/utils/mapper.js +1 -0
  27. package/lib/commonjs/wayfinding/utils/mapper.js.map +1 -1
  28. package/lib/module/index.js +2 -3
  29. package/lib/module/index.js.map +1 -1
  30. package/lib/module/sdk/index.js +1 -0
  31. package/lib/module/sdk/index.js.map +1 -1
  32. package/lib/module/sdk/types/constants.js +21 -0
  33. package/lib/module/sdk/types/constants.js.map +1 -0
  34. package/lib/module/sdk/types/index.js +2 -0
  35. package/lib/module/sdk/types/index.js.map +1 -0
  36. package/lib/module/utils/index.js +3 -0
  37. package/lib/module/utils/index.js.map +1 -0
  38. package/lib/module/utils/requestPermission.js +14 -14
  39. package/lib/module/utils/requestPermission.js.map +1 -1
  40. package/lib/module/wayfinding/components/MapView.js +6 -11
  41. package/lib/module/wayfinding/components/MapView.js.map +1 -1
  42. package/lib/module/wayfinding/hooks/index.js +2 -2
  43. package/lib/module/wayfinding/hooks/index.js.map +1 -1
  44. package/lib/module/wayfinding/index.js +2 -1
  45. package/lib/module/wayfinding/index.js.map +1 -1
  46. package/lib/module/wayfinding/store/index.js +1 -4
  47. package/lib/module/wayfinding/store/index.js.map +1 -1
  48. package/lib/module/wayfinding/store/utils.js.map +1 -1
  49. package/lib/module/wayfinding/types/constants.js +7 -0
  50. package/lib/module/wayfinding/types/constants.js.map +1 -0
  51. package/lib/module/wayfinding/types/index.js +2 -0
  52. package/lib/module/wayfinding/types/index.js.map +1 -0
  53. package/lib/module/wayfinding/utils/mapper.js +1 -0
  54. package/lib/module/wayfinding/utils/mapper.js.map +1 -1
  55. package/lib/typescript/src/index.d.ts +4 -3
  56. package/lib/typescript/src/index.d.ts.map +1 -1
  57. package/lib/typescript/src/sdk/index.d.ts +4 -2
  58. package/lib/typescript/src/sdk/index.d.ts.map +1 -1
  59. package/lib/typescript/src/sdk/types/constants.d.ts +18 -0
  60. package/lib/typescript/src/sdk/types/constants.d.ts.map +1 -0
  61. package/lib/{commonjs/sdk/types/index.d.js → typescript/src/sdk/types/index.d.ts} +266 -32
  62. package/lib/typescript/src/sdk/types/index.d.ts.map +1 -0
  63. package/lib/typescript/src/utils/index.d.ts +3 -0
  64. package/lib/typescript/src/utils/index.d.ts.map +1 -0
  65. package/lib/typescript/src/utils/requestPermission.d.ts +1 -1
  66. package/lib/typescript/src/utils/requestPermission.d.ts.map +1 -1
  67. package/lib/typescript/src/wayfinding/components/MapView.d.ts +2 -5
  68. package/lib/typescript/src/wayfinding/components/MapView.d.ts.map +1 -1
  69. package/lib/typescript/src/wayfinding/hooks/index.d.ts +1 -1
  70. package/lib/typescript/src/wayfinding/hooks/index.d.ts.map +1 -1
  71. package/lib/typescript/src/wayfinding/index.d.ts +2 -1
  72. package/lib/typescript/src/wayfinding/index.d.ts.map +1 -1
  73. package/lib/typescript/src/wayfinding/store/index.d.ts +3 -3
  74. package/lib/typescript/src/wayfinding/store/index.d.ts.map +1 -1
  75. package/lib/typescript/src/wayfinding/store/utils.d.ts +1 -1
  76. package/lib/typescript/src/wayfinding/store/utils.d.ts.map +1 -1
  77. package/lib/typescript/src/wayfinding/types/constants.d.ts +5 -0
  78. package/lib/typescript/src/wayfinding/types/constants.d.ts.map +1 -0
  79. package/lib/typescript/src/wayfinding/types/index.d.ts +57 -0
  80. package/lib/typescript/src/wayfinding/types/index.d.ts.map +1 -0
  81. package/lib/typescript/src/wayfinding/utils/mapper.d.ts +3 -3
  82. package/lib/typescript/src/wayfinding/utils/mapper.d.ts.map +1 -1
  83. package/package.json +56 -14
  84. package/src/index.ts +5 -3
  85. package/src/sdk/index.ts +6 -2
  86. package/src/sdk/types/constants.ts +21 -0
  87. package/src/sdk/types/{index.d.ts → index.ts} +20 -158
  88. package/src/utils/index.ts +2 -0
  89. package/src/utils/requestPermission.ts +14 -15
  90. package/src/wayfinding/components/MapView.tsx +23 -21
  91. package/src/wayfinding/hooks/index.ts +10 -8
  92. package/src/wayfinding/index.ts +2 -1
  93. package/src/wayfinding/store/index.tsx +10 -10
  94. package/src/wayfinding/store/utils.ts +1 -1
  95. package/src/wayfinding/types/constants.ts +5 -0
  96. package/src/wayfinding/types/{index.d.ts → index.ts} +7 -3
  97. package/src/wayfinding/utils/mapper.ts +5 -5
  98. package/android/.idea/.name +0 -1
  99. package/android/.idea/codeStyles/Project.xml +0 -116
  100. package/android/.idea/encodings.xml +0 -6
  101. package/android/.idea/misc.xml +0 -31
  102. package/android/.idea/sonarlint/issuestore/index.pb +0 -15
  103. package/android/.project +0 -34
  104. package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  105. package/android/gradle/wrapper/gradle-wrapper.properties +0 -6
  106. package/android/gradlew +0 -172
  107. package/android/gradlew.bat +0 -84
  108. package/lib/commonjs/sdk/types/index.d.js.map +0 -1
  109. package/lib/module/sdk/types/index.d.js +0 -347
  110. package/lib/module/sdk/types/index.d.js.map +0 -1
  111. package/lib/module/wayfinding/types/index.d.js +0 -2
@@ -1,11 +1,4 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.NavigationUpdateType = exports.NavigationStatus = exports.LocationStatusName = void 0;
7
- /* eslint-disable @typescript-eslint/no-explicit-any */
8
- /* eslint-disable @typescript-eslint/ban-types */
1
+ import type { LocationStatusName, NavigationStatus, NavigationUpdateType } from "src/sdk";
9
2
  /**
10
3
  * @name Building
11
4
  * @description A Building object definition
@@ -24,6 +17,21 @@ exports.NavigationUpdateType = exports.NavigationStatus = exports.LocationStatus
24
17
  * @property {string} userIdentifier - Unique identifier of the owner user of the building
25
18
  * @property {object} customFields - Map of custom fields, indexed by their name.
26
19
  */
20
+ export type Building = {
21
+ buildingIdentifier: string;
22
+ name: string;
23
+ address: string;
24
+ bounds: Bounds;
25
+ boundsRotated: Bounds;
26
+ center: Coordinate;
27
+ dimensions: Dimensions;
28
+ infoHtml: string;
29
+ pictureThumbUrl: string;
30
+ pictureUrl: string;
31
+ rotation: number;
32
+ userIdentifier: string;
33
+ customFields: object;
34
+ };
27
35
  /** @name Bounds
28
36
  * @description Represents a rectangle bounds in a greographic 2D space.
29
37
  *
@@ -32,12 +40,22 @@ exports.NavigationUpdateType = exports.NavigationStatus = exports.LocationStatus
32
40
  * @property {Coordinate} southEast - The coordinate of the south-east corner of the bound.
33
41
  * @property {Coordinate} southWest - The coordinate of the south-east corner of the bound.
34
42
  */
43
+ export type Bounds = {
44
+ northEast: Coordinate;
45
+ northWest: Coordinate;
46
+ southEast: Coordinate;
47
+ southWest: Coordinate;
48
+ };
35
49
  /** @name Dimensions
36
50
  * @description Define 2D dimensions of a rectangular area.
37
51
  *
38
52
  * @property {number} width - Width of rectangle in meters
39
53
  * @property {number} height - Height of rectangle in meters.
40
54
  */
55
+ export type Dimensions = {
56
+ width: number;
57
+ height: number;
58
+ };
41
59
  /**
42
60
  * @name Coordinate
43
61
  * @description A structure that contains geographical coordinate.
@@ -45,6 +63,10 @@ exports.NavigationUpdateType = exports.NavigationStatus = exports.LocationStatus
45
63
  * @property {number} latitude - Latitude in degrees
46
64
  * @property {number} longitude - Longitude in degrees
47
65
  */
66
+ export type Coordinate = {
67
+ latitude: number;
68
+ longitude: number;
69
+ };
48
70
  /**
49
71
  * @name CartesianCoordinate
50
72
  * @description A structure that contains cartesian coordinate.
@@ -52,6 +74,10 @@ exports.NavigationUpdateType = exports.NavigationStatus = exports.LocationStatus
52
74
  * @property {number} x - Value of coordinate at x-axis
53
75
  * @property {number} y - Value of coordinate at y-axis
54
76
  */
77
+ export type CartesianCoordinate = {
78
+ x: number;
79
+ y: number;
80
+ };
55
81
  /**
56
82
  * @name Floor
57
83
  * @description Floor of a building.
@@ -64,6 +90,15 @@ exports.NavigationUpdateType = exports.NavigationStatus = exports.LocationStatus
64
90
  * @property {number} scale - The scale of the floor image, in px/meters
65
91
  * @property {string} floorIdentifier - The unique identifier of the resource
66
92
  */
93
+ export type Floor = {
94
+ altitude: number;
95
+ buildingIdentifier: string;
96
+ level: number;
97
+ name: string;
98
+ mapUrl: string;
99
+ scale: number;
100
+ floorIdentifier: string;
101
+ };
67
102
  /**
68
103
  * @name POI
69
104
  * @description Point of Interest, associated to a building, regardless of whether it's place inside or outside the building.
@@ -81,6 +116,20 @@ exports.NavigationUpdateType = exports.NavigationStatus = exports.LocationStatus
81
116
  * @property {string} infoHtml - Additional information about POI, in HTML
82
117
  * @property {object} customFields - Map of custom fields, indexed by their name.
83
118
  */
119
+ export type Poi = {
120
+ identifier: string;
121
+ buildingIdentifier: string;
122
+ cartesianCoordinate: CartesianCoordinate;
123
+ coordinate: Coordinate;
124
+ floorIdentifier: string;
125
+ poiName: string;
126
+ position: Point;
127
+ isIndoor: boolean;
128
+ isOutdoor: boolean;
129
+ category: PoiCategory;
130
+ infoHtml: string;
131
+ customFields: object;
132
+ };
84
133
  /**
85
134
  * @name Geofence
86
135
  * @description Point of Interest, associated to a building, regardless of whether it's place inside or outside the building.
@@ -93,6 +142,14 @@ exports.NavigationUpdateType = exports.NavigationStatus = exports.LocationStatus
93
142
  * @property {Point[]} polygonPoints - List of points of that define the area of the geofence
94
143
  * @property {object} customFields - Map of custom fields, indexed by their name.
95
144
  */
145
+ export type Geofence = {
146
+ identifier: string;
147
+ buildingIdentifier: string;
148
+ floorIdentifier: string;
149
+ infoHtml: string;
150
+ polygonPoints: Point[];
151
+ customFields: object;
152
+ };
96
153
  /**
97
154
  * @name PoiCategory
98
155
  * @description Category of Point of Interest.
@@ -103,6 +160,13 @@ exports.NavigationUpdateType = exports.NavigationStatus = exports.LocationStatus
103
160
  * @property {string} icon_unselected - The unselected icon url
104
161
  * @property {boolean} public - Whether the category is public or not
105
162
  */
163
+ export type PoiCategory = {
164
+ poiCategoryCode: string;
165
+ poiCategoryName: string;
166
+ icon_selected: string;
167
+ icon_unselected: string;
168
+ isPublic: boolean;
169
+ };
106
170
  /**
107
171
  * @name Point
108
172
  * @description Associate geographical coordinate (Location) with Building and Floor (Cartography) and cartesian coordinate relative to that building.
@@ -114,6 +178,19 @@ exports.NavigationUpdateType = exports.NavigationStatus = exports.LocationStatus
114
178
  * @property {boolean} isIndoor - If the POI is inside the building.
115
179
  * @property {boolean} idOutdoor - If the POI is outside the building.
116
180
  */
181
+ export type Point = {
182
+ buildingIdentifier: string;
183
+ cartesianCoordinate: CartesianCoordinate;
184
+ coordinate: Coordinate;
185
+ floorIdentifier: string;
186
+ isIndoor: boolean;
187
+ isOutdoor: boolean;
188
+ };
189
+ export type DirectionPoint = {
190
+ floorIdentifier: Floor["floorIdentifier"];
191
+ buildingIdentifier: Building["buildingIdentifier"];
192
+ coordinate: Coordinate;
193
+ };
117
194
  /**
118
195
  * @name Route
119
196
  * @description Route between two points.
@@ -129,6 +206,18 @@ exports.NavigationUpdateType = exports.NavigationStatus = exports.LocationStatus
129
206
  * @property {RouteStep[]} steps - Ordered list of steps to go to the goal point
130
207
  * @property {RouteSegment[]} segments - List of segments formed by consecutive points and a floor identifier
131
208
  */
209
+ export type Route = {
210
+ edges: RouteStep[];
211
+ firstStep: RouteStep;
212
+ from: Point;
213
+ indications: Indication;
214
+ lastStep: RouteStep;
215
+ nodes: Point[];
216
+ points: Point[];
217
+ to: Point;
218
+ steps: RouteStep[];
219
+ segments: RouteSegment[];
220
+ };
132
221
  /**
133
222
  * @name RouteStep
134
223
  * @description A fragment of a route, described by the initial point from and the last point to of the fragment, and some information about the step within the route.
@@ -141,6 +230,15 @@ exports.NavigationUpdateType = exports.NavigationStatus = exports.LocationStatus
141
230
  * @property {boolean} isFirst - Returns true if this is the first step in the route.
142
231
  * @property {boolean} isLast - Returns true if this is the last step in the route.
143
232
  */
233
+ export type RouteStep = {
234
+ distance: number;
235
+ distanceToGoal: number;
236
+ from: Point;
237
+ id: number;
238
+ to: Point;
239
+ isFirst: boolean;
240
+ isLast: boolean;
241
+ };
144
242
  /**
145
243
  * @name RouteSegment
146
244
  * @description A fragment of a route, described by a floor identifier and a list of consecutive points from the same floor
@@ -148,6 +246,10 @@ exports.NavigationUpdateType = exports.NavigationStatus = exports.LocationStatus
148
246
  * @property {string} floorIdentifier - Identifier of the floor containing the points in this segment
149
247
  * @property {Point[]} points - Consecutive points in the same floor forming a path
150
248
  */
249
+ export type RouteSegment = {
250
+ floorIdentifier: string;
251
+ points: Point[];
252
+ };
151
253
  /**
152
254
  * @name Indication
153
255
  * @description Represents the instruction that a user should follow when on a RouteStep to continue the route.
@@ -161,6 +263,16 @@ exports.NavigationUpdateType = exports.NavigationStatus = exports.LocationStatus
161
263
  * @property {number} stepIdxOrigin - The index of the indication's step of origin
162
264
  * @property {boolean} neededLevelChange - If the user should change the level in order to arrive to destination
163
265
  */
266
+ export type Indication = {
267
+ distance: number;
268
+ distanceToNextLevel: number;
269
+ indicationType: string;
270
+ orientation: number;
271
+ orientationType: string;
272
+ stepIdxDestination: number;
273
+ stepIdxOrigin: number;
274
+ neededLevelChange: boolean;
275
+ };
164
276
  /**
165
277
  * @name NavigationProgress
166
278
  * @description Provides information of the progress of a user while following a route.
@@ -179,6 +291,21 @@ exports.NavigationUpdateType = exports.NavigationStatus = exports.LocationStatus
179
291
  * @property {Point[]} points - List of ordered points of the remaining route
180
292
  * @property {RouteSegment[]} segments - List of segments formed by consecutive points and a floor identifier
181
293
  */
294
+ export type NavigationProgress = {
295
+ closestPointInRoute: Point;
296
+ closestLocationInRoute: Location;
297
+ distanceToClosestPointInRoute: number;
298
+ currentIndication: number;
299
+ nextIndication: Indication;
300
+ currentStepIndex: number;
301
+ distanceToGoal: number;
302
+ distanceToEndStep: number;
303
+ timeToEndStep: number;
304
+ timeToGoal: number;
305
+ routeStep: RouteStep;
306
+ points: Point[];
307
+ segments: RouteSegment[];
308
+ };
182
309
  /**
183
310
  * @name SitumEvent
184
311
  * @description An event: POI with radius, conversion area and asociated statistics. It is intended for usage in marketing apps.
@@ -196,6 +323,20 @@ exports.NavigationUpdateType = exports.NavigationStatus = exports.LocationStatus
196
323
  * @property {number} x - Center of the event in the x-axis. @deprecated, use trigger.center.cartesianCoordinate.x instead
197
324
  * @property {number} y - Center of the event in the y-axis. @deprecated, use trigger.center.cartesianCoordinate.y instead
198
325
  */
326
+ export type SitumEvent = {
327
+ buildingIdentifier: number;
328
+ identifier: number;
329
+ floorIdentifier: number;
330
+ infoHtml: string;
331
+ conversionArea: SitumConversionArea;
332
+ conversion: Circle;
333
+ trigget: Circle;
334
+ customFields: object;
335
+ radius: number;
336
+ name: string;
337
+ x: number;
338
+ y: number;
339
+ };
199
340
  /**
200
341
  * @name SitumConversionArea
201
342
  * @description A rectangular area of a floor defining the conversion area of an event
@@ -206,6 +347,13 @@ exports.NavigationUpdateType = exports.NavigationStatus = exports.LocationStatus
206
347
  * @property {object} bottomLeft - Bottom-left corner
207
348
  * @property {object} bottomRight - Bottom-right corner
208
349
  */
350
+ export type SitumConversionArea = {
351
+ floorIdentifier: number;
352
+ topLeft: object;
353
+ topRight: object;
354
+ bottomLeft: object;
355
+ bottomRight: object;
356
+ };
209
357
  /**
210
358
  * @name Circle
211
359
  * @description A circular area
@@ -213,6 +361,10 @@ exports.NavigationUpdateType = exports.NavigationStatus = exports.LocationStatus
213
361
  * @property {Point} center - The center of the circle
214
362
  * @property {number} radius - The radius of the circle
215
363
  */
364
+ export type Circle = {
365
+ center: Point;
366
+ radius: number;
367
+ };
216
368
  /**
217
369
  * @name LocationOptions
218
370
  * @description A data object that contains parameters for the location service, LocationManager.
@@ -233,6 +385,23 @@ exports.NavigationUpdateType = exports.NavigationStatus = exports.LocationStatus
233
385
  * @property {string} realtimeUpdateInterval - Default interval to send locations to the Realtime. Possible values are REALTIME, FAST, NORMAL, SLOW and BATTERY_SAVER
234
386
  * @property {boolean} autoEnableBleDuringPositioning - Set if the BLE should be re-enabled during positioning if the ble is used. Android only
235
387
  */
388
+ export type LocationRequestOptions = {
389
+ buildingIdentifier?: number;
390
+ interval?: number;
391
+ indoorProvider?: string;
392
+ useBle?: boolean;
393
+ useWifi?: boolean;
394
+ useGps?: boolean;
395
+ useBarometer?: boolean;
396
+ motionMode?: string;
397
+ useForegroundService?: boolean;
398
+ useDeadReckoning?: boolean;
399
+ outdoorLocationOptions?: OutdoorLocationOptions;
400
+ beaconFilters?: BeaconFilter[];
401
+ smallestDisplacement?: number;
402
+ realtimeUpdateInterval?: string;
403
+ autoEnableBleDuringPositioning?: boolean;
404
+ };
236
405
  /**
237
406
  * @name LocationRequest
238
407
  * @description A data object that contains parameters for the location service, LocationManager.
@@ -240,6 +409,10 @@ exports.NavigationUpdateType = exports.NavigationStatus = exports.LocationStatus
240
409
  * @property {Building} building 0 - Building on which the positioning will be started
241
410
  * @property {LocationOptions} locationOptions 1 - Location options.
242
411
  */
412
+ export type LocationRequest = {
413
+ building: Building;
414
+ locationOptions: LocationRequestOptions;
415
+ };
243
416
  /**
244
417
  * @name NavigationRequest
245
418
  * @description A data object that contains parameters for the navigation service, NavigationManager.
@@ -255,6 +428,18 @@ exports.NavigationUpdateType = exports.NavigationStatus = exports.LocationStatus
255
428
  * @property {number} timeToFirstIndication - Time to wait until the first indication is returned.
256
429
  * @property {number} timeToIgnoreUnexpectedFloorChanges - Time (in millis) to ignore the locations received during navigation, when the next indication is a floor change, if the locations are in a wrong floor (not in origin or destination floors).
257
430
  */
431
+ export type NavigationRequest = {
432
+ distanceToIgnoreFirstIndication?: number;
433
+ ignoreLowQualityLocations?: number;
434
+ distanceToGoalThreshold?: number;
435
+ outsideRouteThreshold?: number;
436
+ distanceToFloorChangeThreshold?: number;
437
+ distanceToChangeIndicationThreshold?: number;
438
+ indicationsInterval?: number;
439
+ timeToFirstIndication?: number;
440
+ roundIndicationsStep?: number;
441
+ timeToIgnoreUnexpectedFloorChanges?: number;
442
+ };
258
443
  /**
259
444
  * @name DirectionsRequest
260
445
  * @description A data object that contains the request for directions.
@@ -264,6 +449,12 @@ exports.NavigationUpdateType = exports.NavigationStatus = exports.LocationStatus
264
449
  * @property {Point|POI} to - Point to, where the route should end.
265
450
  * @property {DirectionsOptions} options - Options that can be added to the request.
266
451
  */
452
+ export type DirectionsRequest = {
453
+ positioningBuilding: Building;
454
+ from: Point | Location;
455
+ to: Point | Poi;
456
+ options: DirectionsOptions;
457
+ };
267
458
  /**
268
459
  * @name DirectionsOptions
269
460
  * @description A data object that contains the directions options.
@@ -274,6 +465,13 @@ exports.NavigationUpdateType = exports.NavigationStatus = exports.LocationStatus
274
465
  * @property {string} accessibilityMode - Defines the accessibility mode of the route. Possible values are: CHOOSE_SHORTEST, ONLY_NOT_ACCESSIBLE_FLOOR_CHANGES, ONLY_ACCESSIBLE
275
466
  * @property {number} startingAngle - Current user's orientation in degrees.
276
467
  */
468
+ export type DirectionsOptions = {
469
+ minimizeFloorChanges: boolean;
470
+ accessibleRoute: boolean;
471
+ accessible: boolean;
472
+ assebilityMode: string;
473
+ startingAngle: number;
474
+ };
277
475
  /**
278
476
  * @name OutdoorLocationOptions
279
477
  * @description Outdoor location options are only used in indoor-outdoor mode (Only available for Android)
@@ -283,12 +481,21 @@ exports.NavigationUpdateType = exports.NavigationStatus = exports.LocationStatus
283
481
  * @property {number} burstInterval - Interval to scan for GPS and detect the environment (in seconds).
284
482
  * @property {number} averageSnrThreshold
285
483
  */
484
+ export type OutdoorLocationOptions = {
485
+ continuousMode?: boolean;
486
+ userDefinedThreshold?: boolean;
487
+ burstInterval?: number;
488
+ averageSnrThreshold?: number;
489
+ };
286
490
  /**
287
491
  * @name BeaconFilter
288
492
  * @description Represents a BLE filter. Now the only field is the BLE proximity UUID
289
493
  *
290
494
  * @property {string} uuid - Assigns the proximity UUID
291
495
  */
496
+ export type BeaconFilter = {
497
+ uuid: string;
498
+ };
292
499
  /**
293
500
  * @name RealTimeRequest
294
501
  * @description A data object that contains the parameters to process realtime data of the users.
@@ -296,33 +503,60 @@ exports.NavigationUpdateType = exports.NavigationStatus = exports.LocationStatus
296
503
  * @property {Building} building object
297
504
  * @property {int} pollTime - Interval in milliseconds (minimum is 3000ms).
298
505
  */
506
+ export type RealTimeRequest = {
507
+ building: Building;
508
+ pollTime: number;
509
+ };
299
510
  /**
300
511
  * @name RealTimeData
301
512
  * @description A data object that contains information of the location of users in realtime.
302
513
  *
303
514
  * @property {Array<Location>} locations object
304
515
  */
305
- let LocationStatusName = /*#__PURE__*/function (LocationStatusName) {
306
- LocationStatusName["STARTING"] = "STARTING";
307
- LocationStatusName["CALCULATING"] = "CALCULATING";
308
- LocationStatusName["POSITIONING"] = "POSITIONING";
309
- LocationStatusName["USER_NOT_IN_BUILDING"] = "USER_NOT_IN_BUILDING";
310
- LocationStatusName["STOPPED"] = "STOPPED";
311
- return LocationStatusName;
312
- }({});
313
- exports.LocationStatusName = LocationStatusName;
314
- let NavigationStatus = /*#__PURE__*/function (NavigationStatus) {
315
- NavigationStatus["START"] = "start";
316
- NavigationStatus["STOP"] = "stop";
317
- NavigationStatus["UPDATE"] = "update";
318
- return NavigationStatus;
319
- }({});
320
- exports.NavigationStatus = NavigationStatus;
321
- let NavigationUpdateType = /*#__PURE__*/function (NavigationUpdateType) {
322
- NavigationUpdateType["progress"] = "PROGRESS";
323
- NavigationUpdateType["userOutsideRoute"] = "OUT_OF_ROUTE";
324
- NavigationUpdateType["destinationReached"] = "DESTINATION_REACHED";
325
- return NavigationUpdateType;
326
- }({});
327
- exports.NavigationUpdateType = NavigationUpdateType;
328
- //# sourceMappingURL=index.d.js.map
516
+ export type RealTimeData = {
517
+ locations: Location[];
518
+ };
519
+ export interface Location {
520
+ position?: Position;
521
+ accuracy?: number;
522
+ bearing?: {
523
+ degrees: number;
524
+ degreesClockwise: number;
525
+ };
526
+ hasBearing?: boolean;
527
+ status: LocationStatusName;
528
+ }
529
+ export interface Position {
530
+ coordinate: {
531
+ latitude: number;
532
+ longitude: number;
533
+ };
534
+ cartesianCoordinate: {
535
+ x: number;
536
+ y: number;
537
+ };
538
+ isIndoor?: boolean;
539
+ isOutdoor?: boolean;
540
+ buildingIdentifier?: string;
541
+ floorIdentifier?: string;
542
+ }
543
+ export interface LocationStatus {
544
+ statusName: LocationStatusName;
545
+ statusCode: number;
546
+ }
547
+ export interface SDKError {
548
+ code?: number;
549
+ message: string;
550
+ }
551
+ export type Directions = any;
552
+ export interface SDKNavigation {
553
+ currentIndication?: any;
554
+ distanceToGoal?: number;
555
+ points?: any;
556
+ routeStep?: any;
557
+ segments?: any;
558
+ route?: Directions;
559
+ type?: NavigationUpdateType;
560
+ status: NavigationStatus;
561
+ }
562
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/types/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,kBAAkB,EAClB,gBAAgB,EAChB,oBAAoB,EACrB,MAAM,SAAS,CAAC;AAEjB;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,QAAQ,GAAG;IACrB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,UAAU,CAAC;IACnB,UAAU,EAAE,UAAU,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,MAAM,MAAM,GAAG;IACnB,SAAS,EAAE,UAAU,CAAC;IACtB,SAAS,EAAE,UAAU,CAAC;IACtB,SAAS,EAAE,UAAU,CAAC;IACtB,SAAS,EAAE,UAAU,CAAC;CACvB,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAEF;;;;;;;;;;;GA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-0,0 +1,3 @@
1
+ export * from "./logError";
2
+ export * from "./requestPermission";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC"}
@@ -1,3 +1,3 @@
1
- declare const requestPermission: () => Promise<void>;
1
+ export declare const requestPermission: () => Promise<void>;
2
2
  export default requestPermission;
3
3
  //# sourceMappingURL=requestPermission.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"requestPermission.d.ts","sourceRoot":"","sources":["../../../../src/utils/requestPermission.ts"],"names":[],"mappings":"AA+EA,QAAA,MAAM,iBAAiB,qBAwBnB,CAAC;AAEL,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"requestPermission.d.ts","sourceRoot":"","sources":["../../../../src/utils/requestPermission.ts"],"names":[],"mappings":"AA+EA,eAAO,MAAM,iBAAiB,qBAuB1B,CAAC;AAEL,eAAe,iBAAiB,CAAC"}
@@ -1,9 +1,5 @@
1
1
  import React from "react";
2
- import { MapViewError, MapViewRef, OnFloorChangedResult, OnNavigationResult, OnPoiDeselectedResult, OnPoiSelectedResult, WayfindingResult } from "../types/index.d";
3
- export declare enum ErrorName {
4
- ERR_INTERNET_DISCONNECTED = "ERR_INTERNET_DISCONNECTED",
5
- ERR_INTERNAL_SERVER_ERROR = "ERR_INTERNAL_SERVER_ERROR"
6
- }
2
+ import { type MapViewError, type MapViewRef, type OnFloorChangedResult, type OnNavigationResult, type OnPoiDeselectedResult, type OnPoiSelectedResult, type WayfindingResult } from "../types";
7
3
  export interface MapViewProps {
8
4
  domain?: string;
9
5
  user?: string;
@@ -20,6 +16,7 @@ export interface MapViewProps {
20
16
  maxZoom?: number;
21
17
  initialZoom?: number;
22
18
  useDashboardTheme?: boolean;
19
+ language?: string;
23
20
  };
24
21
  googleApikey?: string;
25
22
  onLoadError?: (event: MapViewError) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"MapView.d.ts","sourceRoot":"","sources":["../../../../../src/wayfinding/components/MapView.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA2D,MAAM,OAAO,CAAC;AAmBhF,OAAO,EACL,YAAY,EACZ,UAAU,EACV,oBAAoB,EACpB,kBAAkB,EAClB,qBAAqB,EACrB,mBAAmB,EACnB,gBAAgB,EACjB,MAAM,kBAAkB,CAAC;AAO1B,oBAAY,SAAS;IACnB,yBAAyB,8BAA8B;IACvD,yBAAyB,8BAA8B;CACxD;AAWD,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE;QACd,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,kBAAkB,CAAC,EAAE,MAAM,CAAC;QAC5B,mBAAmB,CAAC,EAAE,OAAO,CAAC;QAC9B,YAAY,CAAC,EAAE,OAAO,CAAC;QACvB,eAAe,CAAC,EAAE,OAAO,CAAC;QAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,iBAAiB,CAAC,EAAE,OAAO,CAAC;KAC7B,CAAC;IACF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAC;IAC5C,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAC3C,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,KAAK,IAAI,CAAC;IACvD,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,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AC1B,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,iBAAiB,CAAC,EAAE,OAAO,CAAC;QAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAC;IAC5C,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAC3C,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,KAAK,IAAI,CAAC;IACvD,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI,CAAC;IACrD,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACzD,qBAAqB,CAAC,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC5D,mBAAmB,CAAC,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC1D,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAC;IACxD,oBAAoB,CAAC,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC3D,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AASD,QAAA,MAAM,OAAO,iFAqVZ,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { type Building, type SDKNavigation } from "../../index";
2
+ import { type Building, type SDKNavigation } from "../../sdk/types";
3
3
  export declare const useCallbackRef: <T>(fn: T, deps: any[]) => import("react").MutableRefObject<T>;
4
4
  export declare const useSitumInternal: () => {
5
5
  user: any;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/wayfinding/hooks/index.ts"],"names":[],"mappings":";AAGA,OAAO,EACL,KAAK,QAAQ,EAUb,KAAK,aAAa,EACnB,MAAM,aAAa,CAAC;AAwCrB,eAAO,MAAM,cAAc,mBAAoB,GAAG,EAAE,wCASnD,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;gBAuBjB,MAAM;iBACL,MAAM;yBACE,OAAO;2BACL,OAAO;0BACR,OAAO;;;4BAmFU,QAAQ;yCAbK,MAAM;;;;kBAsI5C,MAAM;uBACD,MAAM;4BACD,GAAG;sBACT,OAAO;;;4BA6DD,MAAM,eAAe,aAAa,KAAK,IAAI;uBAChD,MAAM;4BACD,GAAG;4BACH,GAAG;kBACb,MAAM;sBACF,OAAO;;0BAoDI,IAAI;CA6DhC,CAAC;AAEF,QAAA,MAAM,QAAQ,WAQb,CAAC;AAEF,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/wayfinding/hooks/index.ts"],"names":[],"mappings":";AAIA,OAAO,EACL,KAAK,QAAQ,EAOb,KAAK,aAAa,EACnB,MAAM,iBAAiB,CAAC;AA4CzB,eAAO,MAAM,cAAc,mBAAoB,GAAG,EAAE,wCASnD,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;gBAuBjB,MAAM;iBACL,MAAM;yBACE,OAAO;2BACL,OAAO;0BACR,OAAO;;;4BAmFU,QAAQ;yCAbK,MAAM;;;;kBAsI5C,MAAM;uBACD,MAAM;4BACD,GAAG;sBACT,OAAO;;;4BA6DD,MAAM,eAAe,aAAa,KAAK,IAAI;uBAChD,MAAM;4BACD,GAAG;4BACH,GAAG;kBACb,MAAM;sBACF,OAAO;;0BAoDI,IAAI;CA6DhC,CAAC;AAEF,QAAA,MAAM,QAAQ,WAQb,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -1,4 +1,5 @@
1
- export * from "./types";
1
+ export type * from "./types";
2
+ export * from "./types/constants";
2
3
  export { default as useSitum } from "./hooks";
3
4
  export { default as SitumProvider } from "./store";
4
5
  export { default as MapView } from "./components/MapView";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/wayfinding/index.ts"],"names":[],"mappings":"AACA,cAAc,SAAS,CAAC;AAGxB,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,SAAS,CAAC;AAG9C,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,SAAS,CAAC;AAGnD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/wayfinding/index.ts"],"names":[],"mappings":"AACA,mBAAmB,SAAS,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAGlC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,SAAS,CAAC;AAG9C,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,SAAS,CAAC;AAGnD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC"}
@@ -1,6 +1,6 @@
1
- import React, { MutableRefObject } from "react";
2
- import { Building, Location, LocationStatusName, Poi, SDKError, SDKNavigation } from "../../sdk/types/index.d";
3
- export type Directions = any;
1
+ import React, { type MutableRefObject } from "react";
2
+ import { type Building, type Directions, type Location, type Poi, type SDKError, type SDKNavigation } from "../../sdk/types";
3
+ import { LocationStatusName } from "../../sdk/types/constants";
4
4
  interface User {
5
5
  email?: string;
6
6
  apiKey?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/wayfinding/store/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAiB,gBAAgB,EAAc,MAAM,OAAO,CAAC;AAE3E,OAAO,EACL,QAAQ,EACR,QAAQ,EACR,kBAAkB,EAElB,GAAG,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e;cAA6B,GAAG;EAE3D,CAAC;AAgBF;;GAEG;AACH,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAC3B,KAAK,CAAC,iBAAiB,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC,CAiBH,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { State } from "./index";
2
+ import { type State } from "./index";
3
3
  export declare const createReducer: <T>() => (state: T, action: (state: T) => T) => T;
4
4
  export declare const createStore: <T>({ initialState, reducers, }: {
5
5
  initialState: T;
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/wayfinding/store/utils.ts"],"names":[],"mappings":";AAGA,OAAO,EAAgB,KAAK,EAAE,MAAM,SAAS,CAAC;AAE9C,eAAO,MAAM,aAAa,mDAKzB,CAAC;AAEF,eAAO,MAAM,WAAW;;iDAKuB,GAAG;;;uCAKb,GAAG;;CAOvC,CAAC;AAEF,eAAO,MAAM,WAAW,qBAAsB,KAAK,KAAK,GAAG,QAQ1D,CAAC;AAEF,eAAO,MAAM,WAAW,qDAQvB,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/wayfinding/store/utils.ts"],"names":[],"mappings":";AAGA,OAAO,EAAgB,KAAK,KAAK,EAAE,MAAM,SAAS,CAAC;AAEnD,eAAO,MAAM,aAAa,mDAKzB,CAAC;AAEF,eAAO,MAAM,WAAW;;iDAKuB,GAAG;;;uCAKb,GAAG;;CAOvC,CAAC;AAEF,eAAO,MAAM,WAAW,qBAAsB,KAAK,KAAK,GAAG,QAQ1D,CAAC;AAEF,eAAO,MAAM,WAAW,qDAQvB,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare enum ErrorName {
2
+ ERR_INTERNET_DISCONNECTED = "ERR_INTERNET_DISCONNECTED",
3
+ ERR_INTERNAL_SERVER_ERROR = "ERR_INTERNAL_SERVER_ERROR"
4
+ }
5
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/wayfinding/types/constants.ts"],"names":[],"mappings":"AACA,oBAAY,SAAS;IACnB,yBAAyB,8BAA8B;IACvD,yBAAyB,8BAA8B;CACxD"}