@situm/react-native 3.4.0 → 3.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/README.md +9 -1
  2. package/android/src/main/java/com/situm/plugin/PluginHelper.java +6 -2
  3. package/android/src/main/java/com/situm/plugin/SitumMapper.java +17 -7
  4. package/ios/SitumPlugin.m +22 -6
  5. package/lib/commonjs/index.js +12 -0
  6. package/lib/commonjs/index.js.map +1 -1
  7. package/lib/commonjs/sdk/index.js +27 -12
  8. package/lib/commonjs/sdk/index.js.map +1 -1
  9. package/lib/commonjs/sdk/types/constants.js +1 -1
  10. package/lib/commonjs/sdk/types/index.js +352 -0
  11. package/lib/commonjs/sdk/types/index.js.map +1 -1
  12. package/lib/commonjs/sdk/utils.js +49 -5
  13. package/lib/commonjs/sdk/utils.js.map +1 -1
  14. package/lib/commonjs/utils/requestPermission.js +2 -15
  15. package/lib/commonjs/utils/requestPermission.js.map +1 -1
  16. package/lib/commonjs/wayfinding/hooks/index.js +6 -8
  17. package/lib/commonjs/wayfinding/hooks/index.js.map +1 -1
  18. package/lib/module/index.js +1 -1
  19. package/lib/module/index.js.map +1 -1
  20. package/lib/module/sdk/index.js +28 -13
  21. package/lib/module/sdk/index.js.map +1 -1
  22. package/lib/module/sdk/types/constants.js +1 -1
  23. package/lib/module/sdk/types/index.js +382 -1
  24. package/lib/module/sdk/types/index.js.map +1 -1
  25. package/lib/module/sdk/utils.js +46 -4
  26. package/lib/module/sdk/utils.js.map +1 -1
  27. package/lib/module/utils/requestPermission.js +2 -15
  28. package/lib/module/utils/requestPermission.js.map +1 -1
  29. package/lib/module/wayfinding/hooks/index.js +6 -8
  30. package/lib/module/wayfinding/hooks/index.js.map +1 -1
  31. package/lib/typescript/src/index.d.ts +1 -1
  32. package/lib/typescript/src/index.d.ts.map +1 -1
  33. package/lib/typescript/src/sdk/index.d.ts +3 -6
  34. package/lib/typescript/src/sdk/index.d.ts.map +1 -1
  35. package/lib/typescript/src/sdk/types/constants.d.ts +1 -1
  36. package/lib/typescript/src/sdk/types/index.d.ts +79 -1
  37. package/lib/typescript/src/sdk/types/index.d.ts.map +1 -1
  38. package/lib/typescript/src/sdk/utils.d.ts +1 -0
  39. package/lib/typescript/src/sdk/utils.d.ts.map +1 -1
  40. package/lib/typescript/src/utils/requestPermission.d.ts.map +1 -1
  41. package/lib/typescript/src/wayfinding/hooks/index.d.ts.map +1 -1
  42. package/package.json +3 -3
  43. package/src/index.ts +1 -1
  44. package/src/sdk/index.ts +52 -32
  45. package/src/sdk/types/constants.ts +1 -1
  46. package/src/sdk/types/index.ts +82 -1
  47. package/src/sdk/utils.ts +42 -2
  48. package/src/utils/requestPermission.ts +2 -19
  49. package/src/wayfinding/hooks/index.ts +11 -4
@@ -4,8 +4,9 @@
4
4
  import { NativeEventEmitter, NativeModules, Platform } from "react-native";
5
5
  import packageJson from "../../package.json";
6
6
  import { logError } from "../utils/logError";
7
+ import { ErrorCode, ErrorType } from "./types";
7
8
  import { SdkNavigationUpdateType } from "./types/constants";
8
- import { exceptionWrapper, promiseWrapper } from "./utils";
9
+ import { exceptionWrapper, locationErrorAdapter, promiseWrapper } from "./utils";
9
10
  export * from "./types/constants";
10
11
  const LINKING_ERROR = `The package 'react-native' doesn't seem to be linked. Make sure: \n\n` + Platform.select({
11
12
  ios: "- You have run 'pod install'\n",
@@ -212,16 +213,28 @@ export default class SitumPlugin {
212
213
 
213
214
  /**
214
215
  * Returns the device identifier that has generated the location
215
- *
216
- * @returns void
217
- * @throw Exception
218
216
  */
219
217
  static getDeviceId = () => {
220
- return exceptionWrapper(_ref7 => {
218
+ return promiseWrapper(_ref7 => {
221
219
  let {
222
- onSuccess
220
+ onSuccess,
221
+ onError
223
222
  } = _ref7;
224
- RNCSitumPlugin.getDeviceId(onSuccess);
223
+ RNCSitumPlugin.getDeviceId(response => {
224
+ //@ts-ignore
225
+ if (response !== null && response !== void 0 && response.deviceId) {
226
+ // Resolve with the actual deviceId
227
+ //@ts-ignore
228
+ onSuccess(response.deviceId);
229
+ } else {
230
+ // Reject if deviceId is not available in the response
231
+ onError({
232
+ code: ErrorCode.UNKNOWN,
233
+ message: "Couldn't get device ID",
234
+ type: ErrorType.CRITICAL
235
+ });
236
+ }
237
+ });
225
238
  });
226
239
  };
227
240
 
@@ -487,12 +500,10 @@ export default class SitumPlugin {
487
500
  let {
488
501
  onCallback
489
502
  } = _ref21;
490
- if (!SitumPlugin.navigationIsRunning()) {
491
- throw "Situm > hook > Navigation updates were not active.";
492
- }
503
+ if (!SitumPlugin.navigationIsRunning()) return;
493
504
  navigationRunning = false;
494
- RNCSitumPlugin.removeNavigationUpdates(reponse => {
495
- onCallback(reponse, "Failed to remove navigation updates");
505
+ RNCSitumPlugin.removeNavigationUpdates(response => {
506
+ onCallback(response, "Failed to remove navigation updates");
496
507
  });
497
508
  });
498
509
  };
@@ -587,7 +598,11 @@ export default class SitumPlugin {
587
598
  * @param callback the function called when there is an error
588
599
  */
589
600
  static onLocationError = callback => {
590
- SitumPluginEventEmitter.addListener("locationError", callback);
601
+ SitumPluginEventEmitter.addListener("locationError", error => {
602
+ const adaptedError = locationErrorAdapter(error);
603
+ if (adaptedError.type === ErrorType.CRITICAL) this.removeLocationUpdates();
604
+ callback(adaptedError);
605
+ });
591
606
  };
592
607
 
593
608
  /**
@@ -1 +1 @@
1
- {"version":3,"names":["NativeEventEmitter","NativeModules","Platform","packageJson","logError","SdkNavigationUpdateType","exceptionWrapper","promiseWrapper","LINKING_ERROR","select","ios","default","RNCSitumPlugin","Proxy","get","Error","SitumPluginEventEmitter","positioningRunning","navigationRunning","realtimeSubscriptions","SitumPlugin","positioningIsRunning","navigationIsRunning","init","initSitumSDK","setApiKey","apiKey","_ref","onCallback","response","setUserPass","email","password","_ref2","setDashboardURL","url","_ref3","setUseRemoteConfig","useRemoteConfig","_ref4","setMaxCacheAge","cacheAge","_ref5","setCacheMaxAge","setConfiguration","options","undefined","cacheMaxAge","invalidateCache","sdkVersion","_ref6","onSuccess","versions","react_native","version","OS","sdkVersions","android","getDeviceId","_ref7","fetchBuildings","_ref8","onError","fetchBuildingInfo","building","_ref9","fetchTilesFromBuilding","_ref10","fetchFloorsFromBuilding","_ref11","fetchMapFromFloor","floor","_ref12","fetchGeofencesFromBuilding","_ref13","fetchPoiCategories","_ref14","fetchPoiCategoryIconNormal","category","_ref15","fetchPoiCategoryIconSelected","_ref16","fetchIndoorPOIsFromBuilding","_ref17","fetchOutdoorPOIsFromBuilding","_ref18","requestLocationUpdates","locationRequest","startPositioning","onLocationUpdate","loc","updateNavigationWithLocation","removeLocationUpdates","stopPositioning","success","requestDirections","from","to","directionOptions","_ref19","params","requestNavigationUpdates","location","_ref20","removeNavigationUpdates","_ref21","reponse","requestRealTimeUpdates","realtimeUpdates","error","push","addListener","removeRealTimeUpdates","_callback","checkIfPointInsideGeofence","request","callback","onEnterGeofences","onExitGeofences","onLocationStatus","onLocationError","onLocationStopped","onNavigationProgress","progress","type","PROGRESS","onNavigationOutOfRoute","OUT_OF_ROUTE","onNavigationFinished","FINISHED","onNavigationError"],"sourceRoot":"../../../src","sources":["sdk/index.ts"],"mappings":"AAAA;AACA;;AAEA,SAASA,kBAAkB,EAAEC,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AAE1E,OAAOC,WAAW,MAAM,oBAAoB;AAC5C,SAASC,QAAQ,QAAQ,mBAAmB;AAsB5C,SAASC,uBAAuB,QAAQ,mBAAmB;AAC3D,SAASC,gBAAgB,EAAEC,cAAc,QAAQ,SAAS;AAG1D,cAAc,mBAAmB;AAEjC,MAAMC,aAAa,GAChB,uEAAsE,GACvEN,QAAQ,CAACO,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,6CAA6C;AAE/C,MAAMC,cAAc,GACjBX,aAAa,CAACW,cAAc,IAC5B,IAAIC,KAAK,CACR,CAAC,CAAC,EACF;EACEC,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A;AACA;AACA;EACE,OAAOG,sBAAsB,GAAIV,QAAoB,IAAK;IACxDpG,uBAAuB,CAAC+F,WAAW,CACjC,mBAAmB,EAClBY,QAA4B,IAAK;MAChC,IAAIA,QAAQ,CAACC,IAAI,KAAKvH,uBAAuB,CAAC0H,YAAY,EAAE;QAC1D;QACAX,QAAQ,CAAC,CAAC;MACZ;IACF,CACF,CAAC;EACH,CAAC;;EAED;AACF;AACA;AACA;AACA;EACE,OAAOY,oBAAoB,GAAIZ,QAAoB,IAAK;IACtDpG,uBAAuB,CAAC+F,WAAW,CACjC,mBAAmB,EAClBY,QAA4B,IAAK;MAChC,IAAIA,QAAQ,CAACC,IAAI,KAAKvH,uBAAuB,CAAC4H,QAAQ,EAAE;QACtDb,QAAQ,CAAC,CAAC;MACZ;IACF,CACF,CAAC;EACH,CAAC;;EAED;AACF;AACA;AACA;AACA;EACE,OAAOc,iBAAiB,GAAId,QAA8B,IAAK;IAC7DpG,uBAAuB,CAAC+F,WAAW,CAAC,iBAAiB,EAAEK,QAAQ,CAAC;EAClE,CAAC;AACH"}
1
+ {"version":3,"names":["NativeEventEmitter","NativeModules","Platform","packageJson","logError","ErrorCode","ErrorType","SdkNavigationUpdateType","exceptionWrapper","locationErrorAdapter","promiseWrapper","LINKING_ERROR","select","ios","default","RNCSitumPlugin","Proxy","get","Error","SitumPluginEventEmitter","positioningRunning","navigationRunning","realtimeSubscriptions","SitumPlugin","positioningIsRunning","navigationIsRunning","init","initSitumSDK","setApiKey","apiKey","_ref","onCallback","response","setUserPass","email","password","_ref2","setDashboardURL","url","_ref3","setUseRemoteConfig","useRemoteConfig","_ref4","setMaxCacheAge","cacheAge","_ref5","setCacheMaxAge","setConfiguration","options","undefined","cacheMaxAge","invalidateCache","sdkVersion","_ref6","onSuccess","versions","react_native","version","OS","sdkVersions","android","getDeviceId","_ref7","onError","deviceId","code","UNKNOWN","message","type","CRITICAL","fetchBuildings","_ref8","fetchBuildingInfo","building","_ref9","fetchTilesFromBuilding","_ref10","fetchFloorsFromBuilding","_ref11","fetchMapFromFloor","floor","_ref12","fetchGeofencesFromBuilding","_ref13","fetchPoiCategories","_ref14","fetchPoiCategoryIconNormal","category","_ref15","fetchPoiCategoryIconSelected","_ref16","fetchIndoorPOIsFromBuilding","_ref17","fetchOutdoorPOIsFromBuilding","_ref18","requestLocationUpdates","locationRequest","startPositioning","onLocationUpdate","loc","updateNavigationWithLocation","removeLocationUpdates","stopPositioning","success","requestDirections","from","to","directionOptions","_ref19","params","requestNavigationUpdates","location","_ref20","removeNavigationUpdates","_ref21","requestRealTimeUpdates","realtimeUpdates","error","push","addListener","removeRealTimeUpdates","_callback","checkIfPointInsideGeofence","request","callback","onEnterGeofences","onExitGeofences","onLocationStatus","onLocationError","adaptedError","onLocationStopped","onNavigationProgress","progress","PROGRESS","onNavigationOutOfRoute","OUT_OF_ROUTE","onNavigationFinished","FINISHED","onNavigationError"],"sourceRoot":"../../../src","sources":["sdk/index.ts"],"mappings":"AAAA;AACA;;AAEA,SAASA,kBAAkB,EAAEC,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AAE1E,OAAOC,WAAW,MAAM,oBAAoB;AAC5C,SAASC,QAAQ,QAAQ,mBAAmB;AAE5C,SAOEC,SAAS,EACTC,SAAS,QAaJ,SAAS;AAChB,SAASC,uBAAuB,QAAQ,mBAAmB;AAC3D,SACEC,gBAAgB,EAChBC,oBAAoB,EACpBC,cAAc,QACT,SAAS;AAGhB,cAAc,mBAAmB;AAEjC,MAAMC,aAAa,GAChB,uEAAsE,GACvET,QAAQ,CAACU,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,6CAA6C;AAE/C,MAAMC,cAAc,GACjBd,aAAa,CAACc,cAAc,IAC5B,IAAIC,KAAK,CACR,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACP,aAAa,CAAC;EA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AED;AACF;AACA;AACA;AACA;EACE,OAAOC,iBAAiB,GAAIN,QAAoB,IAAK;IACnDzG,uBAAuB,CAACoG,WAAW,CAAC,iBAAiB,EAAEK,QAAQ,CAAC;EAClE,CAAC;;EAED;AACF;AACA;AACA;AACA;EACE,OAAOO,oBAAoB,GACzBP,QAAgD,IAC7C;IACHzG,uBAAuB,CAACoG,WAAW,CACjC,mBAAmB,EAClBa,QAA4B,IAAK;MAChC,IAAIA,QAAQ,CAAChE,IAAI,KAAK7D,uBAAuB,CAAC8H,QAAQ,EAAE;QACtDT,QAAQ,CAACQ,QAAQ,CAAC;MACpB;IACF,CACF,CAAC;EACH,CAAC;;EAED;AACF;AACA;AACA;AACA;EACE,OAAOE,sBAAsB,GAAIV,QAAoB,IAAK;IACxDzG,uBAAuB,CAACoG,WAAW,CACjC,mBAAmB,EAClBa,QAA4B,IAAK;MAChC,IAAIA,QAAQ,CAAChE,IAAI,KAAK7D,uBAAuB,CAACgI,YAAY,EAAE;QAC1D;QACAX,QAAQ,CAAC,CAAC;MACZ;IACF,CACF,CAAC;EACH,CAAC;;EAED;AACF;AACA;AACA;AACA;EACE,OAAOY,oBAAoB,GAAIZ,QAAoB,IAAK;IACtDzG,uBAAuB,CAACoG,WAAW,CACjC,mBAAmB,EAClBa,QAA4B,IAAK;MAChC,IAAIA,QAAQ,CAAChE,IAAI,KAAK7D,uBAAuB,CAACkI,QAAQ,EAAE;QACtDb,QAAQ,CAAC,CAAC;MACZ;IACF,CACF,CAAC;EACH,CAAC;;EAED;AACF;AACA;AACA;AACA;EACE,OAAOc,iBAAiB,GAAId,QAA8B,IAAK;IAC7DzG,uBAAuB,CAACoG,WAAW,CAAC,iBAAiB,EAAEK,QAAQ,CAAC;EAClE,CAAC;AACH"}
@@ -29,7 +29,7 @@ export let LocationStatusName = /*#__PURE__*/function (LocationStatusName) {
29
29
  /**
30
30
  * Available accessibility modes used in the {@link DirectionsRequest}.
31
31
  *
32
- * @property CHOOSE_SHORTEST The route should choose the best route, without taking into account if it is accessible or not
32
+ * @property CHOOSE_SHORTEST The route should choose the best route, without taking into account if it is accessible or not.
33
33
  * This option is the default so you don't have to do anything in order to use it
34
34
  * @property ONLY_ACCESSIBLE The route should always use accessible nodes.
35
35
  * @property ONLY_NOT_ACCESSIBLE_FLOOR_CHANGES The route should never use accessible floor changes (use this to force routes not to use lifts).
@@ -1,2 +1,383 @@
1
- export {};
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
2
+
3
+ /**
4
+ * @name Building
5
+ * @description A Building object definition
6
+ *
7
+ * @property {string} buildingIdentifier - The unique identifier of the resource
8
+ * @property {string} name - The building name that is appropriate for display to the user.
9
+ * @property {string} address - Te building address.
10
+ * @property {Bounds} bounds - Compute corners of this building, without rotation, in earth coordinates.
11
+ * @property {Bounds} boundsRotated - Compute corners of this building, with rotation, in earth coordinates.
12
+ * @property {Coordinate} center - Center of the building's base, as geographical coordinate.
13
+ * @property {Dimensions} Dimensions - Dimensions of building's base (height and width) in meters.
14
+ * @property {string} infoHtml - Additional information about building, formatted with HTML
15
+ * @property {string} pictureThumbUrl - The URL of building thumbnail image
16
+ * @property {string} pictureUrl - The URL of building image
17
+ * @property {number} rotation - Rotation angle of the building's base, relative to the west-east axis, increasing in counter-clockwise, being 0 the west-east axis.
18
+ * @property {string} userIdentifier - Unique identifier of the owner user of the building
19
+ * @property {object} customFields - Map of custom fields, indexed by their name.
20
+ */
21
+
22
+ /**
23
+ * @name BuildingInfo
24
+ * @description Full information of a building
25
+ *
26
+ * @property {Building} building - Building basic information
27
+ * @property {Floor[]} floors - Array with the information of each floor
28
+ * @property {Poi[]} indoorPOIs - Array with the information of each indoor POI
29
+ * @property {Poi[]} outdoorPOIs - Array with the information of each outdoor POI
30
+ * @property {Geofence} geofences - Array with the information of each geofence
31
+ */
32
+
33
+ /** @name Bounds
34
+ * @description Represents a rectangle bounds in a greographic 2D space.
35
+ *
36
+ * @property {Coordinate} northEast - The coordinate of the north-east corner of the bound.
37
+ * @property {Coordinate} northWest - The coordinate of the north-west corner of the bound.
38
+ * @property {Coordinate} southEast - The coordinate of the south-east corner of the bound.
39
+ * @property {Coordinate} southWest - The coordinate of the south-east corner of the bound.
40
+ */
41
+
42
+ /** @name Dimensions
43
+ * @description Define 2D dimensions of a rectangular area.
44
+ *
45
+ * @property {number} width - Width of rectangle in meters
46
+ * @property {number} height - Height of rectangle in meters.
47
+ */
48
+
49
+ /**
50
+ * @name Coordinate
51
+ * @description A structure that contains geographical coordinate.
52
+ *
53
+ * @property {number} latitude - Latitude in degrees
54
+ * @property {number} longitude - Longitude in degrees
55
+ */
56
+
57
+ /**
58
+ * @name CartesianCoordinate
59
+ * @description A structure that contains cartesian coordinate.
60
+ *
61
+ * @property {number} x - Value of coordinate at x-axis
62
+ * @property {number} y - Value of coordinate at y-axis
63
+ */
64
+
65
+ /**
66
+ * @name Floor
67
+ * @description Floor of a building.
68
+ *
69
+ * @property {number} altitude - Altitude of the floor above ground level, in meters.
70
+ * @property {string} buildingIdentifier - The identifier of building which this floor belongs.
71
+ * @property {number} level - The number of the floor.
72
+ * @property {string} name - The name of the floor
73
+ * @property {string} mapUrl - The floor map image url
74
+ * @property {number} scale - The scale of the floor image, in px/meters
75
+ * @property {string} floorIdentifier - The unique identifier of the resource
76
+ */
77
+
78
+ /**
79
+ * @name POI
80
+ * @description Point of Interest, associated to a building, regardless of whether it's place inside or outside the building.
81
+ *
82
+ * @property {string} identifier - The unique identifier of the resource
83
+ * @property {string} buildingIdentifier - Identifier of building to which the POI belongs.
84
+ * @property {CartesianCoordinate} cartesianCoordinate - Cartesian coordinate of this position, relative to building {@link Bounds}.
85
+ * @property {Coordinate} coordinate - Geographical coordinate of this position
86
+ * @property {string} floorIdentifier - If this POI is outside the building (isOutdoor == true), this field has no meaning.
87
+ * @property {string} poiName - A name for the POI, appropriate for display to the user.
88
+ * @property {Point} position - {@link Point} where the point is located.
89
+ * @property {boolean} isIndoor - Whether the POI is placed outside the building or not.
90
+ * @property {boolean} isOutdoor - Whether the POI is placed outside the building or not.
91
+ * @property {PoiCategory} category - Category of the POI
92
+ * @property {string} infoHtml - Additional information about POI, in HTML
93
+ * @property {object} customFields - Map of custom fields, indexed by their name.
94
+ */
95
+
96
+ /**
97
+ * @name Geofence
98
+ * @description Point of Interest, associated to a building, regardless of whether it's place inside or outside the building.
99
+ *
100
+ * @property {string} identifier - The unique identifier of the resource
101
+ * @property {string} buildingIdentifier - Identifier of building to which the POI belongs.
102
+ * @property {string} floorIdentifier - If this POI is outside the building (isOutdoor == true), this field has no meaning.
103
+ * @property {string} name - A name for the geofence, appropriate for display to the user.
104
+ * @property {string} infoHtml - Additional information about POI, in HTML
105
+ * @property {Point[]} polygonPoints - List of points of that define the area of the geofence
106
+ * @property {object} customFields - Map of custom fields, indexed by their name.
107
+ */
108
+
109
+ /**
110
+ * @name PoiCategory
111
+ * @description Category of Point of Interest.
112
+ *
113
+ * @property {string} poiCategoryCode - Unique code of the category
114
+ * @property {string} poiCategoryName - The category name appropriate for display to the user
115
+ * @property {string} icon_selected - The selected icon url
116
+ * @property {string} icon_unselected - The unselected icon url
117
+ * @property {boolean} public - Whether the category is public or not
118
+ */
119
+
120
+ /**
121
+ * @name PoiIcon
122
+ * @description Category of Point of Interest.
123
+ *
124
+ * @property {string} data - Base64 POI icon image
125
+ */
126
+
127
+ /**
128
+ * @name Point
129
+ * @description Associate geographical coordinate (Location) with Building and Floor (Cartography) and cartesian coordinate relative to that building.
130
+ *
131
+ * @property {string} buildingIdentifier - Unique identifier for the building to which this point belongs
132
+ * @property {CartesianCoordinate} cartesianCoordinate - Cartesian coordinate (in meters) relative to the Bounds of building's base.
133
+ * @property {Coordinate} coordinate - Geographic coordinate (latitude, longitude) of the point, regardless of whether it's placed inside or outside the building.
134
+ * @property {string} floorIdentifier - Floor identifier (inside the building) where this point is placed.
135
+ * @property {boolean} isIndoor - If the POI is inside the building.
136
+ * @property {boolean} idOutdoor - If the POI is outside the building.
137
+ */
138
+
139
+ /**
140
+ * @name Route
141
+ * @description Route between two points.
142
+ *
143
+ * @property {RouteStep[]} edges - Ordered list of steps to go to the goal point
144
+ * @property {RouteStep} firstStep - First step
145
+ * @property {Point} from - Point where the route starts.
146
+ * @property {Indication} indications - Ordered list of instructions to go to the destination
147
+ * @property {RouteStep} lastStep - Last step
148
+ * @property {Point[]} nodes - A collection of points of the route (not ordered)
149
+ * @property {Point[]} points - List of ordered points of the route
150
+ * @property {Point} to - Last point and goal of the route.
151
+ * @property {RouteStep[]} steps - Ordered list of steps to go to the goal point
152
+ * @property {RouteSegment[]} segments - List of segments formed by consecutive points and a floor identifier
153
+ */
154
+
155
+ /**
156
+ * @name RouteStep
157
+ * @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.
158
+ *
159
+ * @property {number} distance - Distance between from and to in meters.
160
+ * @property {number} distanceToGoal - Distance in meters between the start point of this step (from) and the last point in the route ('to' of the last step).
161
+ * @property {Point} from - Start point of this step.
162
+ * @property {number} id - Position of this RouteStep in the list of steps (Route.steps) of the route to which it belongs.
163
+ * @property {Point} to - End point of this step.
164
+ * @property {boolean} isFirst - Returns true if this is the first step in the route.
165
+ * @property {boolean} isLast - Returns true if this is the last step in the route.
166
+ */
167
+
168
+ /**
169
+ * @name RouteSegment
170
+ * @description A fragment of a route, described by a floor identifier and a list of consecutive points from the same floor
171
+ *
172
+ * @property {string} floorIdentifier - Identifier of the floor containing the points in this segment
173
+ * @property {Point[]} points - Consecutive points in the same floor forming a path
174
+ */
175
+
176
+ /**
177
+ * @name Indication
178
+ * @description Represents the instruction that a user should follow when on a RouteStep to continue the route.
179
+ *
180
+ * @property {number} distance - The distance between the origin and destination
181
+ * @property {number} distanceToNextLevel - The number of levels between the origin and destination
182
+ * @property {string} indicationType - The Indication.Action of the instruction as String
183
+ * @property {number} orientation - The angle a user should change his direction in order to go from the origin to the destination.
184
+ * @property {string} orientationType - The Indication.Orientation of the instruction as String
185
+ * @property {number} stepIdxDestination - The index of the indication's step of destination.
186
+ * @property {number} stepIdxOrigin - The index of the indication's step of origin
187
+ * @property {boolean} neededLevelChange - If the user should change the level in order to arrive at the destination.
188
+ */
189
+
190
+ /**
191
+ * @name NavigationProgress
192
+ * @description Provides information of the progress of a user while following a route.
193
+ *
194
+ * @property {Location} closestLocationInRoute - Closest location in the route from the user location provided .
195
+ * @property {number} distanceToClosestPointInRoute - Distance between the real user location (provided to updateWithLocation(Location)) and the closest route location.
196
+ * @property {Indication} currentIndication - The current indication.
197
+ * @property {Indication} nextIndication - The next indication.
198
+ * @property {number} currentStepIndex - The index of the closest route step to the user, where closestLocationInRoute is.
199
+ * @property {number} distanceToGoal - The distance in meters from closestLocationInRoute to route's goal point.
200
+ * @property {number} distanceToEndStep - The distance in meters to go from closestLocationInRoute to the end of the current step.
201
+ * @property {number} timeToEndStep - The estimated time to go from closestLocationInRoute to the end of the current route step, considering a speed of 1 meter/second.
202
+ * @property {number} timeToGoal - The estimated time to go from closestLocationInRoute to the goal/end of route, considering a speed of 1 meter/second.
203
+ * @property {RouteStep} routeStep - The closest route step to the user, where closestLocationInRoute is.
204
+ * @property {Point[]} points - List of ordered points of the remaining route
205
+ * @property {RouteSegment[]} segments - List of segments formed by consecutive points and a floor identifier
206
+ */
207
+
208
+ /**
209
+ * @name LocationRequest
210
+ * @description A data object that contains parameters for the location service, LocationManager.
211
+ *
212
+ * @property {number} buildingIdentifier - Identifier of the building on which the positioning will be started
213
+ * @property {number} interval - Default interval (in milliseconds) to notify location updates
214
+ * @property {string} indoorProvider - Default indoor provider. Possible values are INPHONE and SUPPORT
215
+ * @property {boolean} useBle - Defines whether or not to use BLE for positioning
216
+ * @property {boolean} useWifi - Defines whether or not to use Wi-Fi for positioning
217
+ * @property {boolean} useGps - Defines whether or not to use GPS for indoor positioning
218
+ * @property {boolean} useBarometer - Defines whether or not to use the barometer for indoor positioning
219
+ * @property {string} motionMode - Default motion mode. Possible values are BY_CAR, BY_FOOT, and RADIOMAX
220
+ * @property {boolean} useForegroundService - Defines whether or not to activate the {@link http://developers.situm.es/pages/android/using_situm_sdk_background.html foreground service}
221
+ * @property {boolean} useDeadReckoning - Defines whether or not to use dead reckoning to get fast position updates using only the inertial sensors, between the server position updates.
222
+ * @property {OutdoorLocationOptions} outdoorLocationOptions - Outdoor location options. Only used in an indoor/outdoor request
223
+ * @property {BeaconFilter[]} beaconFilters - Deprecated - Beacon filters to be handled during scan time, otherwise only Situm beacons will be scanned. Can be invoked multiple times to add as much beacon filters as you want. The SitumSDK now does it automatically
224
+ * @property {number} smallestDisplacement - Default smallest displacement to notify location updates
225
+ * @property {string} realtimeUpdateInterval - Default interval to send locations to the Realtime. Possible values are REALTIME, FAST, NORMAL, SLOW, and BATTERY_SAVER
226
+ */
227
+
228
+ /**
229
+ * @name NavigationRequest
230
+ * @description A data object that contains the request for navigation.
231
+ *
232
+ * @property {number} distanceToGoalThreshold - Distance threshold to consider reaching the goal (meters).
233
+ * @property {number} distanceToIgnoreFirstIndication - Maximum distance to ignore the first indication when navigating (meters).
234
+ * @property {number} distanceToFloorChangeThreshold - Distance threshold from when a floor change is considered reached (meters).
235
+ * @property {number} distanceToChangeIndicationThreshold - Distance threshold to change the indication (meters).
236
+ * @property {boolean} ignoreLowQualityLocations - Ignore low-quality locations.
237
+ * @property {number} indicationsInterval - Interval between indications (milliseconds).
238
+ * @property {number} outsideRouteThreshold - Distance threshold to consider being outside the route (meters).
239
+ * @property {number} roundIndicationsStep - Step to round indications (meters).
240
+ * @property {number} timeToFirstIndication - Time to wait until the first indication is returned (milliseconds).
241
+ * @property {number} timeToIgnoreUnexpectedFloorChanges - Time to ignore the locations received during navigation, when the next indication is a floor change,
242
+ * if the locations are on a wrong floor (not in origin or destination floors) (milliseconds).
243
+ */
244
+
245
+ /**
246
+ * @name DirectionsRequest
247
+ * @description A data object that contains the request for directions.
248
+ *
249
+ * @property {Building} positioningBuilding
250
+ * @property {Point|Location} from - Current user's position as the starting point of the route.
251
+ * @property {Point|Poi} to - Point to, where the route should end.
252
+ * @property {DirectionsOptions} options - Options that can be added to the request.
253
+ */
254
+
255
+ /**
256
+ * @name DirectionsOptions
257
+ * @description A data object that contains the directions options.
258
+ *
259
+ * @property {boolean} minimizeFloorChanges - Defines wheter or not the route should be calculated minimizing the floor changes even if the result is longer.
260
+ * @property {string} accessibilityMode - Defines the accessibility mode of the route. Possible values are: CHOOSE_SHORTEST, ONLY_NOT_ACCESSIBLE_FLOOR_CHANGES, ONLY_ACCESSIBLE
261
+ * @property {number} startingAngle - Current user's orientation in degrees.
262
+ */
263
+
264
+ /**
265
+ * @name OutdoorLocationOptions
266
+ * @description Outdoor location options are only used in indoor-outdoor mode (Only available for Android)
267
+ *
268
+ * @property {boolean} continuousMode - Environment detection continuous mode (true) or burst mode (false).
269
+ * @property {boolean} userDefinedThreshold
270
+ * @property {number} burstInterval - Interval to scan for GPS and detect the environment (in seconds).
271
+ * @property {number} averageSnrThreshold
272
+ */
273
+
274
+ /**
275
+ * @name BeaconFilter
276
+ * @description Represents a BLE filter. Now the only field is the BLE proximity UUID
277
+ *
278
+ * @property {string} uuid - Assigns the proximity UUID
279
+ */
280
+
281
+ /**
282
+ * @name RealTimeRequest
283
+ * @description A data object that contains the parameters to process realtime data of the users.
284
+ *
285
+ * @property {Building} building object
286
+ * @property {int} pollTime - Interval in milliseconds (minimum is 3000ms).
287
+ */
288
+
289
+ /**
290
+ * @name RealTimeData
291
+ * @description A data object that contains information of the location of users in realtime.
292
+ *
293
+ * @property {Array<Location>} locations object
294
+ */
295
+
296
+ /**
297
+ * @name SdkVersion
298
+ * @description Represents the version information of the SDK and its compatibility with different platforms.
299
+ *
300
+ * @type
301
+ * @property {string} react_native - The version of React Native used in the SDK.
302
+ * @property {string} [ios] - Optional. The specific version of the Situm SDK for the iOS platform.
303
+ * @property {string} [android] - Optional. The specific version of the Situm SDK for the Android platform.
304
+ */
305
+
306
+ /**
307
+ * @name ConfigurationOptions
308
+ * @description Configuration options for initializing the SDK or other modules.
309
+ *
310
+ * @type
311
+ * @property {boolean} [useRemoteConfig] - Optional. Determines whether to use Remote Configuration settings.
312
+ * @property {number} [cacheMaxAge] - Optional. The maximum age of the cache in seconds.
313
+ */
314
+
315
+ /**
316
+ * @name Location
317
+ * @description Represents a location with various attributes including position, accuracy, and bearing.
318
+ *
319
+ * @interface
320
+ * @property {Position} [position] - Optional. The position information of the location.
321
+ * @property {number} [accuracy] - Optional. The accuracy of the location information in meters.
322
+ * @property {Object} [bearing] - Optional. Bearing information including degrees and degreesClockwise.
323
+ * @property {boolean} [hasBearing] - Optional. Indicates if bearing information is available.
324
+ * @property {LocationStatusName} status - The status of the location update.
325
+ */
326
+
327
+ /**
328
+ * @name LocationStatus
329
+ * @description Represents the status of a location, including a name and a numeric code.
330
+ *
331
+ * @interface
332
+ * @property {LocationStatusName} statusName - The name of the location status.
333
+ * @property {number} statusCode - The numeric code representing the location status.
334
+ */
335
+
336
+ /**
337
+ * @name ErrorType
338
+ * @description Enumeration of error types to categorize the severity of errors.
339
+ *
340
+ * @enum {string}
341
+ * @property {string} CRITICAL - Represents critical errors that will cause the system not to work (e.g. positioning will be stopped).
342
+ * @property {string} NON_CRITICAL - Represents non-critical errors that are less severe.
343
+ */
344
+ export let ErrorType = /*#__PURE__*/function (ErrorType) {
345
+ ErrorType["CRITICAL"] = "CRITICAL";
346
+ ErrorType["NON_CRITICAL"] = "NON_CRITICAL";
347
+ return ErrorType;
348
+ }({});
349
+
350
+ /**
351
+ * @name ErrorCode
352
+ * @description Enumeration of error codes provided by Situm SDK.
353
+ *
354
+ * @enum {string}
355
+ * @property {string} LOCATION_PERMISSION_DENIED - Indicates that location permissions were not granted by the user.
356
+ * @property {string} BLUETOOTH_PERMISSION_DENIED - Indicates that Bluetooth permissions were not granted.
357
+ * @property {string} BLUETOOTH_DISABLED - Indicates that Bluetooth is disabled on the device.
358
+ * @property {string} LOCATION_DISABLED - Indicates that the location services are disabled on the device.
359
+ * @property {string} REDUCED_ACCURACY - Indicates that the precise location has been turned off on the device.
360
+ * @property {string} UNKNOWN - Represents an unknown error or an error that does not fit other categories.
361
+ */
362
+ export let ErrorCode = /*#__PURE__*/function (ErrorCode) {
363
+ ErrorCode["LOCATION_PERMISSION_DENIED"] = "LOCATION_PERMISSION_DENIED";
364
+ ErrorCode["BLUETOOTH_PERMISSION_DENIED"] = "BLUETOOTH_PERMISSION_DENIED";
365
+ ErrorCode["BLUETOOTH_DISABLED"] = "BLUETOOTH_DISABLED";
366
+ ErrorCode["LOCATION_DISABLED"] = "LOCATION_DISABLED";
367
+ ErrorCode["REDUCED_ACCURACY"] = "REDUCED_ACCURACY";
368
+ ErrorCode["UNKNOWN"] = "UNKNOWN";
369
+ return ErrorCode;
370
+ }({});
371
+
372
+ /**
373
+ * @name Error
374
+ * @description Represents an error with a specific code, message, and type.
375
+ *
376
+ * @interface
377
+ * @property {ErrorCode} code - The specific error code associated with this error.
378
+ * @property {string} message - A descriptive message providing more details about the error.
379
+ * @property {ErrorType} type - The type of the error indicating its severity (critical or non-critical).
380
+ */
381
+
382
+ // TODO: add types
2
383
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["sdk/types/index.ts"],"mappings":""}
1
+ {"version":3,"names":["ErrorType","ErrorCode"],"sourceRoot":"../../../../src","sources":["sdk/types/index.ts"],"mappings":"AAAA;;AAQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAiBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAUA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAQA;AACA;AACA;AACA;AACA;AACA;;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAWA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAgBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAUA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AASA;AACA;AACA;AACA;AACA;AACA;;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAUA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAcA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAWA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAYA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAiBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAmBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAcA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AASA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAQA;AACA;AACA;AACA;AACA;AACA;;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMA;AACA;AACA;AACA;AACA;AACA;;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AA2BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAYA,SAAS,0BAATA,SAAS;EAATA,SAAS;EAATA,SAAS;EAAA,OAATA,SAAS;AAAA;;AAKrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAYC,SAAS,0BAATA,SAAS;EAATA,SAAS;EAATA,SAAS;EAATA,SAAS;EAATA,SAAS;EAATA,SAAS;EAATA,SAAS;EAAA,OAATA,SAAS;AAAA;;AASrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAOA"}
@@ -1,4 +1,5 @@
1
1
  import { logError } from "..";
2
+ import { ErrorCode, ErrorType } from "./types";
2
3
  /**
3
4
  * Handles callbacks coming from SDKs asynchronously
4
5
  *
@@ -13,8 +14,9 @@ export const handleAsyncCallback = (response, resolve, reject, errorMessage) =>
13
14
  resolve();
14
15
  } else {
15
16
  reject({
16
- code: -1,
17
- message: errorMessage || "Unknown error."
17
+ code: ErrorCode.UNKNOWN,
18
+ message: errorMessage || "Unknown error.",
19
+ type: ErrorType.NON_CRITICAL
18
20
  });
19
21
  }
20
22
  };
@@ -85,10 +87,50 @@ export const promiseWrapper = fn => {
85
87
  } catch (error) {
86
88
  logError(error);
87
89
  reject({
88
- code: (error === null || error === void 0 ? void 0 : error.code) || -1,
89
- message: (error === null || error === void 0 ? void 0 : error.message) || "Unknown error."
90
+ code: ErrorCode.UNKNOWN,
91
+ message: (error === null || error === void 0 ? void 0 : error.message) || "Unknown error.",
92
+ type: ErrorType.NON_CRITICAL
90
93
  });
91
94
  }
92
95
  });
93
96
  };
97
+ export function locationErrorAdapter(error) {
98
+ let adaptedCode = ErrorCode.UNKNOWN;
99
+ const adaptedMessage = error.message;
100
+ const adaptedType = ErrorType.CRITICAL;
101
+ switch (error.code.toString()) {
102
+ case "8001": // MISSING_LOCATION_PERMISSION
103
+ case "8": // kSITLocationErrorLocationDisabled
104
+ case "9": // kSITLocationErrorLocationRestricted
105
+ case "10":
106
+ // kSITLocationErrorLocationAuthStatusNotDetermined
107
+ adaptedCode = ErrorCode.LOCATION_PERMISSION_DENIED;
108
+ break;
109
+ case "8002":
110
+ // LOCATION_DISABLED
111
+ adaptedCode = ErrorCode.LOCATION_DISABLED;
112
+ break;
113
+ case "8012":
114
+ // MISSING_BLUETOOTH_PERMISSION
115
+ adaptedCode = ErrorCode.BLUETOOTH_PERMISSION_DENIED;
116
+ break;
117
+ case "8100": //BLUETOOTH_DISABLED. 8100 ->This number does not exist in Situm SDK. We made it up in SitumMapper.java (RN adapter)
118
+ case "6":
119
+ // kSITLocationErrorBluetoothisOff
120
+ adaptedCode = ErrorCode.BLUETOOTH_DISABLED;
121
+ break;
122
+ case "11":
123
+ //kSITLocationErrorLocationAccuracyAuthorizationStatusReducedAccuracy
124
+ adaptedCode = ErrorCode.REDUCED_ACCURACY;
125
+ break;
126
+ // Add more cases as needed
127
+ }
128
+
129
+ const returnError = {
130
+ code: adaptedCode,
131
+ message: adaptedMessage,
132
+ type: adaptedType
133
+ };
134
+ return returnError;
135
+ }
94
136
  //# sourceMappingURL=utils.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["logError","handleAsyncCallback","response","resolve","reject","errorMessage","success","code","message","handleSyncCallback","r","exceptionWrapper","fn","returnValue","onCallback","onSuccess","onError","error","promiseWrapper","Promise"],"sourceRoot":"../../../src","sources":["sdk/utils.ts"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,IAAI;AAM7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO,MAAMC,mBAAmB,GAAGA,CACjCC,QAA8B,EAC9BC,OAA6B,EAC7BC,MAAqB,EACrBC,YAAoB,KACjB;EACH,IAAIH,QAAQ,aAARA,QAAQ,eAARA,QAAQ,CAAEI,OAAO,EAAE;IACrBH,OAAO,CAAC,CAAC;EACX,CAAC,MAAM;IACLC,MAAM,CAAC;MACLG,IAAI,EAAE,CAAC,CAAC;MACRC,OAAO,EAAEH,YAAY,IAAI;IAC3B,CAAC,CAAC;EACJ;AACF,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO,MAAMI,kBAAkB,GAAGA,CACh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iB,KAAK,CAAC;MACfb,MAAM,CAAC;QACLG,IAAI,EAAE,CAAAU,KAAK,aAALA,KAAK,uBAALA,KAAK,CAAEV,IAAI,KAAI,CAAC,CAAC;QACvBC,OAAO,EAAE,CAAAS,KAAK,aAALA,KAAK,uBAALA,KAAK,CAAET,OAAO,KAAI;MAC7B,CAAC,CAAC;IACJ;EACF,CAAC,CAAC;AACJ,CAAC"}
1
+ {"version":3,"names":["logError","ErrorCode","ErrorType","handleAsyncCallback","response","resolve","reject","errorMessage","success","code","UNKNOWN","message","type","NON_CRITICAL","handleSyncCallback","r","exceptionWrapper","fn","returnValue","onCallback","onSuccess","onError","error","promiseWrapper","Promise","locationErrorAdapter","adaptedCode","adaptedMessage","adaptedType","CRITICAL","toString","LOCATION_PERMISSION_DENIED","LOCATION_DISABLED","BLUETOOTH_PERMISSION_DENIED","BLUETOOTH_DISABLED","REDUCED_ACCURACY","returnError"],"sourceRoot":"../../../src","sources":["sdk/utils.ts"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,IAAI;AAE7B,SAASC,SAAS,EAAEC,SAAS,QAAQ,SAAS;AAK9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO,MAAMC,mBAAmB,GAAGA,CACjCC,QAA8B,EAC9BC,OAA6B,EAC7BC,MAAqB,EACrBC,YAAoB,KACjB;EACH,IAAIH,QAAQ,aAARA,QAAQ,eAARA,QAAQ,CAAEI,OAAO,EAAE;IACrBH,OAAO,CAAC,CAAC;EACX,CAAC,MAAM;IACLC,MAAM,CAAC;MACLG,IAAI,EAAER,SAAS,CAACS,OAAO;MACvBC,OAAO,EAAEJ,YAAY,IAAI,gBAAgB;MACzCK,IAAI,EAAEV,SAAS,CAACW;IAClB,CAAC,CAAC;EACJ;AACF,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO,MAAMC,kBAAkB,GAAGA,CAChCC,CAAuB,EACvBR,YAAoB,KACjB;EACH,IAAIQ,CAAC,aAADA,CA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