@woosmap/react-native-plugin-geofencing 0.1.25 → 0.2.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 (70) hide show
  1. package/android/build.gradle +3 -3
  2. package/android/src/main/java/com/reactnativeplugingeofencing/AbstractPushHelper.java +7 -0
  3. package/android/src/main/java/com/reactnativeplugingeofencing/AirshipPushHelper.java +157 -0
  4. package/android/src/main/java/com/reactnativeplugingeofencing/PluginGeofencingModule.java +4 -0
  5. package/android/src/main/java/com/reactnativeplugingeofencing/WoosRegionReadyListener.java +8 -1
  6. package/android/src/main/java/com/reactnativeplugingeofencing/WoosmapMessageAndKey.java +1 -0
  7. package/android/src/main/java/com/reactnativeplugingeofencing/WoosmapUtil.java +17 -0
  8. package/ios/AirshipEvents.swift +48 -12
  9. package/ios/PluginGeofencing.swift +64 -54
  10. package/ios/WoosmapGeofenceService.swift +14 -13
  11. package/lib/commonjs/index.js +333 -0
  12. package/lib/commonjs/index.js.map +1 -0
  13. package/lib/commonjs/internal/Airship.js +30 -0
  14. package/lib/commonjs/internal/Airship.js.map +1 -0
  15. package/lib/commonjs/internal/Location.js +45 -0
  16. package/lib/commonjs/internal/Location.js.map +1 -0
  17. package/lib/commonjs/internal/MarketingCloud.js +30 -0
  18. package/lib/commonjs/internal/MarketingCloud.js.map +1 -0
  19. package/lib/commonjs/internal/Poi.js +82 -0
  20. package/lib/commonjs/internal/Poi.js.map +1 -0
  21. package/lib/commonjs/internal/Region.js +57 -0
  22. package/lib/commonjs/internal/Region.js.map +1 -0
  23. package/lib/commonjs/internal/Visit.js +41 -0
  24. package/lib/commonjs/internal/Visit.js.map +1 -0
  25. package/lib/commonjs/internal/Zoi.js +77 -0
  26. package/lib/commonjs/internal/Zoi.js.map +1 -0
  27. package/lib/commonjs/internal/nativeInterface.js +14 -0
  28. package/lib/commonjs/internal/nativeInterface.js.map +1 -0
  29. package/lib/commonjs/internal/types.js +2 -0
  30. package/lib/commonjs/internal/types.js.map +1 -0
  31. package/{src/index.tsx → lib/module/index.js} +73 -123
  32. package/lib/module/index.js.map +1 -0
  33. package/lib/module/internal/Airship.js +28 -0
  34. package/lib/module/internal/Airship.js.map +1 -0
  35. package/lib/module/internal/Location.js +38 -0
  36. package/lib/module/internal/Location.js.map +1 -0
  37. package/lib/module/internal/MarketingCloud.js +28 -0
  38. package/lib/module/internal/MarketingCloud.js.map +1 -0
  39. package/lib/module/internal/Poi.js +75 -0
  40. package/lib/module/internal/Poi.js.map +1 -0
  41. package/lib/module/internal/Region.js +50 -0
  42. package/lib/module/internal/Region.js.map +1 -0
  43. package/lib/module/internal/Visit.js +39 -0
  44. package/lib/module/internal/Visit.js.map +1 -0
  45. package/{src/internal/Zoi.tsx → lib/module/internal/Zoi.js} +24 -56
  46. package/lib/module/internal/Zoi.js.map +1 -0
  47. package/{src/internal/nativeInterface.tsx → lib/module/internal/nativeInterface.js} +1 -2
  48. package/lib/module/internal/nativeInterface.js.map +1 -0
  49. package/lib/module/internal/types.js +2 -0
  50. package/lib/module/internal/types.js.map +1 -0
  51. package/lib/typescript/__tests__/index.test.d.ts +0 -0
  52. package/lib/typescript/index.d.ts +156 -0
  53. package/lib/typescript/internal/Airship.d.ts +18 -0
  54. package/lib/typescript/internal/Location.d.ts +26 -0
  55. package/lib/typescript/internal/MarketingCloud.d.ts +18 -0
  56. package/lib/typescript/internal/Poi.d.ts +50 -0
  57. package/lib/typescript/internal/Region.d.ts +34 -0
  58. package/lib/typescript/internal/Visit.d.ts +25 -0
  59. package/lib/typescript/internal/Zoi.d.ts +49 -0
  60. package/lib/typescript/internal/nativeInterface.d.ts +2 -0
  61. package/{src/internal/types.tsx → lib/typescript/internal/types.d.ts} +5 -7
  62. package/package.json +144 -1
  63. package/react-native-plugin-geofencing.podspec +8 -1
  64. package/src/__tests__/index.test.tsx +0 -1
  65. package/src/internal/Airship.tsx +0 -24
  66. package/src/internal/Location.tsx +0 -46
  67. package/src/internal/MarketingCloud.tsx +0 -24
  68. package/src/internal/Poi.tsx +0 -107
  69. package/src/internal/Region.tsx +0 -66
  70. package/src/internal/Visit.tsx +0 -49
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
8
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
9
+ function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
10
+ /**
11
+ * A class that represents the Region object.
12
+ * @classdesc A class that represents the Region object.
13
+ * @constructs Region
14
+ * @param {number} date The datetime stamp.
15
+ * @param {boolean} didEnter A boolean value indicating whether the region was entered.
16
+ * @param {string} identifier An alphanumeric unique identifier for the region.
17
+ * @param {number} latitude The latitude of the region.
18
+ * @param {number} longitude The longitude of the region.
19
+ * @param {number} radius The radius of the region in meters.
20
+ * @param {boolean} frompositiondetection Determines whether the user's current position is inside the region.
21
+ * @param {string} eventName Describe cause of region event, Entry or Exit.
22
+ * @param {number} spenttime Number of seconds the user spent in region in case of event name Exit.
23
+ */
24
+ class Region {
25
+ constructor(date, didenter, identifier, latitude, longitude, radius, frompositiondetection, eventname, spenttime) {
26
+ _defineProperty(this, "Date", void 0);
27
+ _defineProperty(this, "Didenter", void 0);
28
+ _defineProperty(this, "Identifier", void 0);
29
+ _defineProperty(this, "Latitude", void 0);
30
+ _defineProperty(this, "Longitude", void 0);
31
+ _defineProperty(this, "Radius", void 0);
32
+ _defineProperty(this, "Frompositiondetection", void 0);
33
+ _defineProperty(this, "Eventname", void 0);
34
+ _defineProperty(this, "SpentTime", void 0);
35
+ this.Date = date;
36
+ this.Didenter = didenter;
37
+ this.Identifier = identifier;
38
+ this.Latitude = latitude;
39
+ this.Longitude = longitude;
40
+ this.Radius = radius;
41
+ this.Frompositiondetection = frompositiondetection;
42
+ this.Eventname = eventname;
43
+ this.SpentTime = spenttime;
44
+ }
45
+ /**
46
+ * Converts json object to an object of type Region.
47
+ * @param {Object} json The json representation of the region.
48
+ * @returns Object
49
+ * @memberof Region
50
+ */
51
+ static jsonToObj(json) {
52
+ return new Region(json.date, json.didenter, json.identifier, json.latitude, json.longitude, json.radius, json.frompositiondetection, json.eventname, json.spenttime);
53
+ }
54
+ }
55
+ var _default = Region;
56
+ exports.default = _default;
57
+ //# sourceMappingURL=Region.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Region","constructor","date","didenter","identifier","latitude","longitude","radius","frompositiondetection","eventname","spenttime","_defineProperty","Date","Didenter","Identifier","Latitude","Longitude","Radius","Frompositiondetection","Eventname","SpentTime","jsonToObj","json","_default","exports","default"],"sources":["Region.tsx"],"sourcesContent":["/**\n * A class that represents the Region object.\n * @classdesc A class that represents the Region object.\n * @constructs Region\n * @param {number} date The datetime stamp.\n * @param {boolean} didEnter A boolean value indicating whether the region was entered.\n * @param {string} identifier An alphanumeric unique identifier for the region.\n * @param {number} latitude The latitude of the region.\n * @param {number} longitude The longitude of the region.\n * @param {number} radius The radius of the region in meters.\n * @param {boolean} frompositiondetection Determines whether the user's current position is inside the region.\n * @param {string} eventName Describe cause of region event, Entry or Exit.\n * @param {number} spenttime Number of seconds the user spent in region in case of event name Exit.\n */\nclass Region {\n Date: number;\n Didenter: boolean;\n Identifier: string;\n Latitude: number;\n Longitude: number;\n Radius: number;\n Frompositiondetection: boolean;\n Eventname: string;\n SpentTime: number;\n constructor(\n date: number,\n didenter: boolean,\n identifier: string,\n latitude: number,\n longitude: number,\n radius: number,\n frompositiondetection: boolean,\n eventname: string,\n spenttime: number\n ) {\n this.Date = date;\n this.Didenter = didenter;\n this.Identifier = identifier;\n this.Latitude = latitude;\n this.Longitude = longitude;\n this.Radius = radius;\n this.Frompositiondetection = frompositiondetection;\n this.Eventname = eventname;\n this.SpentTime = spenttime;\n }\n /**\n * Converts json object to an object of type Region.\n * @param {Object} json The json representation of the region.\n * @returns Object\n * @memberof Region\n */\n static jsonToObj(json: any) {\n return new Region(\n json.date,\n json.didenter,\n json.identifier,\n json.latitude,\n json.longitude,\n json.radius,\n json.frompositiondetection,\n json.eventname,\n json.spenttime\n );\n }\n}\nexport default Region;\n"],"mappings":";;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMA,MAAM,CAAC;EAUXC,WAAWA,CACTC,IAAY,EACZC,QAAiB,EACjBC,UAAkB,EAClBC,QAAgB,EAChBC,SAAiB,EACjBC,MAAc,EACdC,qBAA8B,EAC9BC,SAAiB,EACjBC,SAAiB,EACjB;IAAAC,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IACA,IAAI,CAACC,IAAI,GAAGV,IAAI;IAChB,IAAI,CAACW,QAAQ,GAAGV,QAAQ;IACxB,IAAI,CAACW,UAAU,GAAGV,UAAU;IAC5B,IAAI,CAACW,QAAQ,GAAGV,QAAQ;IACxB,IAAI,CAACW,SAAS,GAAGV,SAAS;IAC1B,IAAI,CAACW,MAAM,GAAGV,MAAM;IACpB,IAAI,CAACW,qBAAqB,GAAGV,qBAAqB;IAClD,IAAI,CAACW,SAAS,GAAGV,SAAS;IAC1B,IAAI,CAACW,SAAS,GAAGV,SAAS;EAC5B;EACA;AACF;AACA;AACA;AACA;AACA;EACE,OAAOW,SAASA,CAACC,IAAS,EAAE;IAC1B,OAAO,IAAItB,MAAM,CACfsB,IAAI,CAACpB,IAAI,EACToB,IAAI,CAACnB,QAAQ,EACbmB,IAAI,CAAClB,UAAU,EACfkB,IAAI,CAACjB,QAAQ,EACbiB,IAAI,CAAChB,SAAS,EACdgB,IAAI,CAACf,MAAM,EACXe,IAAI,CAACd,qBAAqB,EAC1Bc,IAAI,CAACb,SAAS,EACda,IAAI,CAACZ,SACP,CAAC;EACH;AACF;AAAC,IAAAa,QAAA,GACcvB,MAAM;AAAAwB,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+
3
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
4
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
5
+ function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
6
+ /**
7
+ * @classdesc A class that represents the visits object.
8
+ * @constructs Visit
9
+ * @param {number} accuracy The accuracy in meters.
10
+ * @param {number} arrivalDate The datetime stamp for the arrival at the place of visit.
11
+ * @param {number} date Current datetime stamp.
12
+ * @param {number} latitude The latitude of the place of visit.
13
+ * @param {number} longitude The longitude of the plaee of visit.
14
+ */
15
+ class Visit {
16
+ constructor(accuracy, arrivaldate, date, departuredate, latitude, longitude) {
17
+ _defineProperty(this, "Accuracy", void 0);
18
+ _defineProperty(this, "Arrivaldate", void 0);
19
+ _defineProperty(this, "Date", void 0);
20
+ _defineProperty(this, "Departuredate", void 0);
21
+ _defineProperty(this, "Latitude", void 0);
22
+ _defineProperty(this, "Longitude", void 0);
23
+ this.Accuracy = accuracy;
24
+ this.Arrivaldate = arrivaldate;
25
+ this.Date = date;
26
+ this.Departuredate = departuredate;
27
+ this.Latitude = latitude;
28
+ this.Longitude = longitude;
29
+ }
30
+ /**
31
+ * Converts json object to an object of type Visits.
32
+ * @param {Object} json The json representation of the Visits.
33
+ * @returns Visit
34
+ * @memberof Visit
35
+ */
36
+ static jsonToObj(json) {
37
+ return new Visit(json.accuracy, json.arrivaldate, json.date, json.departuredate, json.latitude, json.longitude);
38
+ }
39
+ }
40
+ module.exports = Visit;
41
+ //# sourceMappingURL=Visit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Visit","constructor","accuracy","arrivaldate","date","departuredate","latitude","longitude","_defineProperty","Accuracy","Arrivaldate","Date","Departuredate","Latitude","Longitude","jsonToObj","json","module","exports"],"sources":["Visit.tsx"],"sourcesContent":["/**\n * @classdesc A class that represents the visits object.\n * @constructs Visit\n * @param {number} accuracy The accuracy in meters.\n * @param {number} arrivalDate The datetime stamp for the arrival at the place of visit.\n * @param {number} date Current datetime stamp.\n * @param {number} latitude The latitude of the place of visit.\n * @param {number} longitude The longitude of the plaee of visit.\n */\nclass Visit {\n Accuracy: number;\n Arrivaldate: number;\n Date: number;\n Departuredate: number;\n Latitude: number;\n Longitude: number;\n constructor(\n accuracy: number,\n arrivaldate: number,\n date: number,\n departuredate: number,\n latitude: number,\n longitude: number\n ) {\n this.Accuracy = accuracy;\n this.Arrivaldate = arrivaldate;\n this.Date = date;\n this.Departuredate = departuredate;\n this.Latitude = latitude;\n this.Longitude = longitude;\n }\n /**\n * Converts json object to an object of type Visits.\n * @param {Object} json The json representation of the Visits.\n * @returns Visit\n * @memberof Visit\n */\n static jsonToObj(json: any): Visit {\n return new Visit(\n json.accuracy,\n json.arrivaldate,\n json.date,\n json.departuredate,\n json.latitude,\n json.longitude\n );\n }\n}\nmodule.exports = Visit;\n"],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMA,KAAK,CAAC;EAOVC,WAAWA,CACTC,QAAgB,EAChBC,WAAmB,EACnBC,IAAY,EACZC,aAAqB,EACrBC,QAAgB,EAChBC,SAAiB,EACjB;IAAAC,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IACA,IAAI,CAACC,QAAQ,GAAGP,QAAQ;IACxB,IAAI,CAACQ,WAAW,GAAGP,WAAW;IAC9B,IAAI,CAACQ,IAAI,GAAGP,IAAI;IAChB,IAAI,CAACQ,aAAa,GAAGP,aAAa;IAClC,IAAI,CAACQ,QAAQ,GAAGP,QAAQ;IACxB,IAAI,CAACQ,SAAS,GAAGP,SAAS;EAC5B;EACA;AACF;AACA;AACA;AACA;AACA;EACE,OAAOQ,SAASA,CAACC,IAAS,EAAS;IACjC,OAAO,IAAIhB,KAAK,CACdgB,IAAI,CAACd,QAAQ,EACbc,IAAI,CAACb,WAAW,EAChBa,IAAI,CAACZ,IAAI,EACTY,IAAI,CAACX,aAAa,EAClBW,IAAI,CAACV,QAAQ,EACbU,IAAI,CAACT,SACP,CAAC;EACH;AACF;AACAU,MAAM,CAACC,OAAO,GAAGlB,KAAK"}
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+
3
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
4
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
5
+ function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
6
+ /**
7
+ * @classdesc A class that represents the Zones of Interest (ZOI) object.
8
+ * @constructs Zoi
9
+ * @param {number} accumulator Represents the number of visits used to build the ZOI (only for calculation of ZOI)
10
+ * @param {number} age Age is used to determine if a ZOI should be deleted by the algorithm (only for calculation of ZOI)
11
+ * @param {number} covariance_det The covariance determinant (only for calculation of ZOI)
12
+ * @param {number} duration The duration of all the accumulated visits of the ZOI
13
+ * @param {number} endtime The exit date of the last ZOI visit
14
+ * @param {string[]} idvisits The list of id visits included in this ZOI
15
+ * @param {number} latmean The latitude of the center of the ZOI
16
+ * @param {number} lngmean The longitude of the center of the ZOI
17
+ * @param {string} period The classification of the period (HOME, WORK, OTHER or NO QUALIFIER)
18
+ * @param {number} prior_probability Estimation of probability (only for calculation of ZOI)
19
+ * @param {number} starttime The entry date for the first ZOI visit
20
+ * @param {number} weekly_density The weekly density of the ZOI visit (only for classification of ZOI)
21
+ * @param {string} wktpolygon This is the Well-known text representation of geometry of the ZOI polygon.
22
+ * @param {number} x00covariance_matrix_inverse The covariance of a cluster (only for calculation of ZOI)
23
+ * @param {number} x01covariance_matrix_inverse The covariance of a cluster (only for calculation of ZOI)
24
+ * @param {number} x10covariance_matrix_inverse The covariance of a cluster (only for calculation of ZOI)
25
+ * @param {number} x11covariance_matrix_inverse The covariance of a cluster (only for calculation of ZOI)
26
+
27
+ */
28
+ class Zoi {
29
+ constructor(accumulator, age, covariance_det, duration, endtime, idvisits, latmean, lngmean, period, prior_probability, starttime, weekly_density, wktpolygon, x00covariance_matrix_inverse, x01covariance_matrix_inverse, x10covariance_matrix_inverse, x11covariance_matrix_inverse) {
30
+ _defineProperty(this, "Accumulator", void 0);
31
+ _defineProperty(this, "Age", void 0);
32
+ _defineProperty(this, "Covariance_Det", void 0);
33
+ _defineProperty(this, "Duration", void 0);
34
+ _defineProperty(this, "Endtime", void 0);
35
+ _defineProperty(this, "Idvisits", void 0);
36
+ _defineProperty(this, "Latmean", void 0);
37
+ _defineProperty(this, "Lngmean", void 0);
38
+ _defineProperty(this, "Period", void 0);
39
+ _defineProperty(this, "Prior_Probability", void 0);
40
+ _defineProperty(this, "Starttime", void 0);
41
+ _defineProperty(this, "Weekly_Density", void 0);
42
+ _defineProperty(this, "X00Covariance_Matrix_Inverse", void 0);
43
+ _defineProperty(this, "X01Covariance_Matrix_Inverse", void 0);
44
+ _defineProperty(this, "X10Covariance_Matrix_Inverse", void 0);
45
+ _defineProperty(this, "X11Covariance_Matrix_Inverse", void 0);
46
+ _defineProperty(this, "Wktpolygon", void 0);
47
+ this.Accumulator = accumulator;
48
+ this.Age = age;
49
+ this.Covariance_Det = covariance_det;
50
+ this.Duration = duration;
51
+ this.Endtime = endtime;
52
+ this.Idvisits = idvisits;
53
+ this.Latmean = latmean;
54
+ this.Lngmean = lngmean;
55
+ this.Period = period;
56
+ this.Prior_Probability = prior_probability;
57
+ this.Starttime = starttime;
58
+ this.Weekly_Density = weekly_density;
59
+ this.Covariance_Det = covariance_det;
60
+ this.Wktpolygon = wktpolygon;
61
+ this.X00Covariance_Matrix_Inverse = x00covariance_matrix_inverse;
62
+ this.X01Covariance_Matrix_Inverse = x01covariance_matrix_inverse;
63
+ this.X10Covariance_Matrix_Inverse = x10covariance_matrix_inverse;
64
+ this.X11Covariance_Matrix_Inverse = x11covariance_matrix_inverse;
65
+ }
66
+ /**
67
+ * Converts json object to an object of type Zoi.
68
+ * @param {Object} json The json representation of the Zoi.
69
+ * @returns Object
70
+ * @memberof Zoi
71
+ */
72
+ static jsonToObj(json) {
73
+ return new Zoi(json.accumulator, json.age, json.covariance_det, json.duration, json.endtime, json.idvisits, json.latmean, json.lngmean, json.period, json.prior_probability, json.starttime, json.weekly_density, json.wktpolygon, json.x00covariance_matrix_inverse, json.x01covariance_matrix_inverse, json.x10covariance_matrix_inverse, json.x11covariance_matrix_inverse);
74
+ }
75
+ }
76
+ module.exports = Zoi;
77
+ //# sourceMappingURL=Zoi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Zoi","constructor","accumulator","age","covariance_det","duration","endtime","idvisits","latmean","lngmean","period","prior_probability","starttime","weekly_density","wktpolygon","x00covariance_matrix_inverse","x01covariance_matrix_inverse","x10covariance_matrix_inverse","x11covariance_matrix_inverse","_defineProperty","Accumulator","Age","Covariance_Det","Duration","Endtime","Idvisits","Latmean","Lngmean","Period","Prior_Probability","Starttime","Weekly_Density","Wktpolygon","X00Covariance_Matrix_Inverse","X01Covariance_Matrix_Inverse","X10Covariance_Matrix_Inverse","X11Covariance_Matrix_Inverse","jsonToObj","json","module","exports"],"sources":["Zoi.tsx"],"sourcesContent":["/**\n * @classdesc A class that represents the Zones of Interest (ZOI) object.\n * @constructs Zoi\n * @param {number} accumulator Represents the number of visits used to build the ZOI (only for calculation of ZOI)\n * @param {number} age Age is used to determine if a ZOI should be deleted by the algorithm (only for calculation of ZOI)\n * @param {number} covariance_det The covariance determinant (only for calculation of ZOI)\n * @param {number} duration The duration of all the accumulated visits of the ZOI\n * @param {number} endtime The exit date of the last ZOI visit\n * @param {string[]} idvisits The list of id visits included in this ZOI\n * @param {number} latmean The latitude of the center of the ZOI\n * @param {number} lngmean The longitude of the center of the ZOI\n * @param {string} period The classification of the period (HOME, WORK, OTHER or NO QUALIFIER)\n * @param {number} prior_probability Estimation of probability (only for calculation of ZOI)\n * @param {number} starttime The entry date for the first ZOI visit\n * @param {number} weekly_density The weekly density of the ZOI visit (only for classification of ZOI)\n * @param {string} wktpolygon This is the Well-known text representation of geometry of the ZOI polygon.\n * @param {number} x00covariance_matrix_inverse The covariance of a cluster (only for calculation of ZOI)\n * @param {number} x01covariance_matrix_inverse The covariance of a cluster (only for calculation of ZOI)\n * @param {number} x10covariance_matrix_inverse The covariance of a cluster (only for calculation of ZOI)\n * @param {number} x11covariance_matrix_inverse The covariance of a cluster (only for calculation of ZOI)\n\n */\nclass Zoi {\n Accumulator: number;\n Age: number;\n Covariance_Det: number;\n Duration: number;\n Endtime: number;\n Idvisits: string[];\n Latmean: number;\n Lngmean: number;\n Period: string;\n Prior_Probability: number;\n Starttime: number;\n Weekly_Density: number;\n X00Covariance_Matrix_Inverse: number;\n X01Covariance_Matrix_Inverse: number;\n X10Covariance_Matrix_Inverse: number;\n X11Covariance_Matrix_Inverse: number;\n Wktpolygon: string;\n constructor(\n accumulator: number,\n age: number,\n covariance_det: number,\n duration: number,\n endtime: number,\n idvisits: string[],\n latmean: number,\n lngmean: number,\n period: string,\n prior_probability: number,\n starttime: number,\n weekly_density: number,\n wktpolygon: string,\n x00covariance_matrix_inverse: number,\n x01covariance_matrix_inverse: number,\n x10covariance_matrix_inverse: number,\n x11covariance_matrix_inverse: number\n ) {\n this.Accumulator = accumulator;\n this.Age = age;\n this.Covariance_Det = covariance_det;\n this.Duration = duration;\n this.Endtime = endtime;\n this.Idvisits = idvisits;\n this.Latmean = latmean;\n this.Lngmean = lngmean;\n this.Period = period;\n this.Prior_Probability = prior_probability;\n this.Starttime = starttime;\n this.Weekly_Density = weekly_density;\n this.Covariance_Det = covariance_det;\n this.Wktpolygon = wktpolygon;\n this.X00Covariance_Matrix_Inverse = x00covariance_matrix_inverse;\n this.X01Covariance_Matrix_Inverse = x01covariance_matrix_inverse;\n this.X10Covariance_Matrix_Inverse = x10covariance_matrix_inverse;\n this.X11Covariance_Matrix_Inverse = x11covariance_matrix_inverse;\n }\n /**\n * Converts json object to an object of type Zoi.\n * @param {Object} json The json representation of the Zoi.\n * @returns Object\n * @memberof Zoi\n */\n static jsonToObj(json: any) {\n return new Zoi(\n json.accumulator,\n json.age,\n json.covariance_det,\n json.duration,\n json.endtime,\n json.idvisits,\n json.latmean,\n json.lngmean,\n json.period,\n json.prior_probability,\n json.starttime,\n json.weekly_density,\n json.wktpolygon,\n json.x00covariance_matrix_inverse,\n json.x01covariance_matrix_inverse,\n json.x10covariance_matrix_inverse,\n json.x11covariance_matrix_inverse\n );\n }\n}\nmodule.exports = Zoi;\n"],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMA,GAAG,CAAC;EAkBRC,WAAWA,CACTC,WAAmB,EACnBC,GAAW,EACXC,cAAsB,EACtBC,QAAgB,EAChBC,OAAe,EACfC,QAAkB,EAClBC,OAAe,EACfC,OAAe,EACfC,MAAc,EACdC,iBAAyB,EACzBC,SAAiB,EACjBC,cAAsB,EACtBC,UAAkB,EAClBC,4BAAoC,EACpCC,4BAAoC,EACpCC,4BAAoC,EACpCC,4BAAoC,EACpC;IAAAC,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IACA,IAAI,CAACC,WAAW,GAAGlB,WAAW;IAC9B,IAAI,CAACmB,GAAG,GAAGlB,GAAG;IACd,IAAI,CAACmB,cAAc,GAAGlB,cAAc;IACpC,IAAI,CAACmB,QAAQ,GAAGlB,QAAQ;IACxB,IAAI,CAACmB,OAAO,GAAGlB,OAAO;IACtB,IAAI,CAACmB,QAAQ,GAAGlB,QAAQ;IACxB,IAAI,CAACmB,OAAO,GAAGlB,OAAO;IACtB,IAAI,CAACmB,OAAO,GAAGlB,OAAO;IACtB,IAAI,CAACmB,MAAM,GAAGlB,MAAM;IACpB,IAAI,CAACmB,iBAAiB,GAAGlB,iBAAiB;IAC1C,IAAI,CAACmB,SAAS,GAAGlB,SAAS;IAC1B,IAAI,CAACmB,cAAc,GAAGlB,cAAc;IACpC,IAAI,CAACS,cAAc,GAAGlB,cAAc;IACpC,IAAI,CAAC4B,UAAU,GAAGlB,UAAU;IAC5B,IAAI,CAACmB,4BAA4B,GAAGlB,4BAA4B;IAChE,IAAI,CAACmB,4BAA4B,GAAGlB,4BAA4B;IAChE,IAAI,CAACmB,4BAA4B,GAAGlB,4BAA4B;IAChE,IAAI,CAACmB,4BAA4B,GAAGlB,4BAA4B;EAClE;EACA;AACF;AACA;AACA;AACA;AACA;EACE,OAAOmB,SAASA,CAACC,IAAS,EAAE;IAC1B,OAAO,IAAItC,GAAG,CACZsC,IAAI,CAACpC,WAAW,EAChBoC,IAAI,CAACnC,GAAG,EACRmC,IAAI,CAAClC,cAAc,EACnBkC,IAAI,CAACjC,QAAQ,EACbiC,IAAI,CAAChC,OAAO,EACZgC,IAAI,CAAC/B,QAAQ,EACb+B,IAAI,CAAC9B,OAAO,EACZ8B,IAAI,CAAC7B,OAAO,EACZ6B,IAAI,CAAC5B,MAAM,EACX4B,IAAI,CAAC3B,iBAAiB,EACtB2B,IAAI,CAAC1B,SAAS,EACd0B,IAAI,CAACzB,cAAc,EACnByB,IAAI,CAACxB,UAAU,EACfwB,IAAI,CAACvB,4BAA4B,EACjCuB,IAAI,CAACtB,4BAA4B,EACjCsB,IAAI,CAACrB,4BAA4B,EACjCqB,IAAI,CAACpB,4BACP,CAAC;EACH;AACF;AACAqB,MAAM,CAACC,OAAO,GAAGxC,GAAG"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _reactNative = require("react-native");
8
+ let PluginGeofencing = _reactNative.NativeModules.PluginGeofencing;
9
+ if (!PluginGeofencing) {
10
+ throw new Error('NativeModules.PluginGeofencing is undefined');
11
+ }
12
+ var _default = PluginGeofencing;
13
+ exports.default = _default;
14
+ //# sourceMappingURL=nativeInterface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNative","require","PluginGeofencing","NativeModules","Error","_default","exports","default"],"sources":["nativeInterface.tsx"],"sourcesContent":["import { NativeModules } from 'react-native';\nlet PluginGeofencing = NativeModules.PluginGeofencing;\n\nif (!PluginGeofencing) {\n throw new Error('NativeModules.PluginGeofencing is undefined');\n}\n\nexport default PluginGeofencing;\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAIC,gBAAgB,GAAGC,0BAAa,CAACD,gBAAgB;AAErD,IAAI,CAACA,gBAAgB,EAAE;EACrB,MAAM,IAAIE,KAAK,CAAC,6CAA6C,CAAC;AAChE;AAAC,IAAAC,QAAA,GAEcH,gBAAgB;AAAAI,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["types.tsx"],"sourcesContent":["/**\n * Geofence region types\n */\nexport type RegionType = 'circle' | 'isochrone';\n\n/**\n * Location of custom profile to fetch\n */\nexport type ProfileSource = 'local' | 'external';\n\n/**\n * GeofenceRegion structure\n */\nexport interface GeofenceRegion {\n regionId: string;\n lat: number;\n lng: number;\n radius: number;\n type: RegionType;\n}\n"],"mappings":""}
@@ -4,23 +4,16 @@ import PluginGeofencing from './internal/nativeInterface';
4
4
  import Location from './internal/Location';
5
5
  import Region from './internal/Region';
6
6
  import Poi from './internal/Poi';
7
- import type {
8
- GeofenceRegion,
9
- RegionType,
10
- ProfileSource,
11
- } from './internal/types';
12
-
13
7
  const eventEmitter = new NativeEventEmitter(PluginGeofencing);
14
-
15
- let subscriptionsLocation: any = {};
16
- let subscriptionsRegion: any = {};
8
+ let subscriptionsLocation = {};
9
+ let subscriptionsRegion = {};
17
10
  /**
18
11
  * Initializes the Woosmap object
19
12
  * @param arg0 A JSON object with Woosmap Key (optional) and tracking profile (`liveTracking`,`passiveTracking`,`visitsTracking`).
20
13
  * @returns promise:success - A callback function that will be called on success.
21
14
  error - A callback function that will be called on error.
22
15
  */
23
- function initialize(arg0?: any): Promise<string> {
16
+ function initialize(arg0) {
24
17
  if (arg0 == null) {
25
18
  arg0 = {};
26
19
  }
@@ -33,7 +26,7 @@ function initialize(arg0?: any): Promise<string> {
33
26
  * @returns promise:success - A callback function that will be called on success.
34
27
  error - A callback function that will be called on error.
35
28
  */
36
- function setWoosmapApiKey(apiKey: string): Promise<string> {
29
+ function setWoosmapApiKey(apiKey) {
37
30
  return PluginGeofencing.setWoosmapApiKey([apiKey]);
38
31
  }
39
32
 
@@ -43,7 +36,7 @@ function setWoosmapApiKey(apiKey: string): Promise<string> {
43
36
  * @returns promise:success - A callback function that will be called on success.
44
37
  error - A callback function that will be called on error.
45
38
  */
46
- function startTracking(trackingProfile: string): Promise<string> {
39
+ function startTracking(trackingProfile) {
47
40
  return PluginGeofencing.startTracking([trackingProfile]);
48
41
  }
49
42
 
@@ -52,7 +45,7 @@ function startTracking(trackingProfile: string): Promise<string> {
52
45
  * @returns promise:success - A callback function that will be called on success.
53
46
  error - A callback function that will be called on error.
54
47
  */
55
- function stopTracking(): Promise<string> {
48
+ function stopTracking() {
56
49
  return PluginGeofencing.stopTracking();
57
50
  }
58
51
 
@@ -61,7 +54,7 @@ function stopTracking(): Promise<string> {
61
54
  * @param background - A boolean value indicating whether the permissions to request is for background or foreground permission.
62
55
  * @returns A callback that will be called on successful authorization by the app. A callback that will be called when the app denies permission. The plugin will return an object with a message - 'Permission Denied'.
63
56
  */
64
- function requestPermissions(background?: boolean): Promise<string> {
57
+ function requestPermissions(background) {
65
58
  if (background == null) {
66
59
  background = false;
67
60
  }
@@ -72,7 +65,7 @@ function requestPermissions(background?: boolean): Promise<string> {
72
65
  * A method to check if the app has granted required permissions to track location.
73
66
  * @returns A callback that will be called with the following status - GRANTED_BACKGROUND, GRANTED_FOREGROUND, DENIED
74
67
  */
75
- function getPermissionsStatus(): Promise<string> {
68
+ function getPermissionsStatus() {
76
69
  return PluginGeofencing.getPermissionsStatus();
77
70
  }
78
71
 
@@ -83,20 +76,12 @@ invoke callback and pass a location object as a parameter. Method will return a
83
76
  * @param error error status callback
84
77
  * @returns watchid
85
78
  */
86
- function watchLocation(
87
- success: (result: Location) => any,
88
- error?: any
89
- ): Promise<string> {
79
+ function watchLocation(success, error) {
90
80
  const watchID = uuid.v1().toString();
91
-
92
- const successCallback = (result: any) => {
81
+ const successCallback = result => {
93
82
  success(Location.jsonToObj(result));
94
83
  };
95
-
96
- subscriptionsLocation[watchID] = [
97
- eventEmitter.addListener('geolocationDidChange', successCallback),
98
- error ? eventEmitter.addListener('geolocationError', error) : null,
99
- ];
84
+ subscriptionsLocation[watchID] = [eventEmitter.addListener('geolocationDidChange', successCallback), error ? eventEmitter.addListener('geolocationError', error) : null];
100
85
  return PluginGeofencing.watchLocation(watchID);
101
86
  }
102
87
 
@@ -105,7 +90,7 @@ function watchLocation(
105
90
  * @param watchID Reference ID.
106
91
  * @returns return promise with same id back in case of success otherwise error info
107
92
  */
108
- function clearLocationWatch(watchID?: string): Promise<string> {
93
+ function clearLocationWatch(watchID) {
109
94
  if (watchID == null) {
110
95
  eventEmitter.removeAllListeners('geolocationDidChange');
111
96
  eventEmitter.removeAllListeners('geolocationError');
@@ -133,22 +118,12 @@ a watch id which can be used later to remove the callback.
133
118
  * @param error error status callback
134
119
  * @returns watchid
135
120
  */
136
- function watchRegions(
137
- success: (result: Region) => any,
138
- error?: any
139
- ): Promise<string> {
121
+ function watchRegions(success, error) {
140
122
  const watchID = uuid.v1().toString();
141
-
142
- const successCallback = (result: any) => {
123
+ const successCallback = result => {
143
124
  success(Region.jsonToObj(result));
144
125
  };
145
-
146
- subscriptionsRegion[watchID] = [
147
- eventEmitter.addListener('woosmapgeofenceRegionDidChange', successCallback),
148
- error
149
- ? eventEmitter.addListener('woosmapgeofenceRegionError', error)
150
- : null,
151
- ];
126
+ subscriptionsRegion[watchID] = [eventEmitter.addListener('woosmapgeofenceRegionDidChange', successCallback), error ? eventEmitter.addListener('woosmapgeofenceRegionError', error) : null];
152
127
  return PluginGeofencing.watchRegions(watchID);
153
128
  }
154
129
 
@@ -157,7 +132,7 @@ function watchRegions(
157
132
  * @param watchID Reference ID.
158
133
  * @returns return promise with same id back in case of success otherwise error info
159
134
  */
160
- function clearRegionsWatch(watchID: string): Promise<string> {
135
+ function clearRegionsWatch(watchID) {
161
136
  if (watchID == null) {
162
137
  eventEmitter.removeAllListeners('woosmapgeofenceRegionDidChange');
163
138
  eventEmitter.removeAllListeners('woosmapgeofenceRegionError');
@@ -182,7 +157,7 @@ function clearRegionsWatch(watchID: string): Promise<string> {
182
157
  * @param arg0 A JSON object with SFMC credentials. Keys authenticationBaseURI, restBaseURI, client_id, client_secret and contactKey are required.
183
158
  * @returns promise with A callback that will be called on success or error.
184
159
  */
185
- function setSFMCCredentials(arg0: Object): Promise<string> {
160
+ function setSFMCCredentials(arg0) {
186
161
  return PluginGeofencing.setSFMCCredentials(arg0);
187
162
  }
188
163
 
@@ -191,7 +166,7 @@ function setSFMCCredentials(arg0: Object): Promise<string> {
191
166
  * @param radius can be integer or string.
192
167
  * @returns promise with A callback that will be called on success or error.
193
168
  */
194
- function setPoiRadius(radius: string): Promise<string> {
169
+ function setPoiRadius(radius) {
195
170
  return PluginGeofencing.setPoiRadius(radius);
196
171
  }
197
172
  /**
@@ -200,7 +175,7 @@ function setPoiRadius(radius: string): Promise<string> {
200
175
  * @returns promise with A callback that will be called on success or error.
201
176
  */
202
177
 
203
- function addRegion(region: GeofenceRegion): Promise<string> {
178
+ function addRegion(region) {
204
179
  return PluginGeofencing.addRegion(region);
205
180
  }
206
181
  /**
@@ -208,29 +183,25 @@ function addRegion(region: GeofenceRegion): Promise<string> {
208
183
  * @param regionID If it pass return info for given region or return all region info
209
184
  * @returns promise with A callback that will be called on success or error.
210
185
  */
211
- function getRegions(regionID?: string): Promise<Region[]> {
186
+ function getRegions(regionID) {
212
187
  if (regionID == null) {
213
- return PluginGeofencing.getAllRegions()
214
- .then((result: any[]) => {
215
- var formatted: Region[] = [];
216
- result.forEach((item) => {
217
- formatted.push(Region.jsonToObj(item));
218
- });
219
- return Promise.resolve(formatted);
220
- })
221
- .catch((e: any) => {
222
- return Promise.reject(e);
188
+ return PluginGeofencing.getAllRegions().then(result => {
189
+ var formatted = [];
190
+ result.forEach(item => {
191
+ formatted.push(Region.jsonToObj(item));
223
192
  });
193
+ return Promise.resolve(formatted);
194
+ }).catch(e => {
195
+ return Promise.reject(e);
196
+ });
224
197
  } else {
225
- return PluginGeofencing.getRegions(regionID)
226
- .then((result: any) => {
227
- var formatted: Region[] = [];
228
- formatted.push(Region.jsonToObj(result));
229
- return Promise.resolve(formatted);
230
- })
231
- .catch((e: any) => {
232
- return Promise.reject(e);
233
- });
198
+ return PluginGeofencing.getRegions(regionID).then(result => {
199
+ var formatted = [];
200
+ formatted.push(Region.jsonToObj(result));
201
+ return Promise.resolve(formatted);
202
+ }).catch(e => {
203
+ return Promise.reject(e);
204
+ });
234
205
  }
235
206
  }
236
207
 
@@ -239,29 +210,25 @@ function getRegions(regionID?: string): Promise<Region[]> {
239
210
  * @param locationID - Optional in case of location id pass it return only that location info
240
211
  * @returns promise with A callback that will be called on success or error.
241
212
  */
242
- function getLocations(locationID?: string): Promise<Location[]> {
213
+ function getLocations(locationID) {
243
214
  if (locationID == null) {
244
- return PluginGeofencing.getAllLocations()
245
- .then((result: any[]) => {
246
- var formatted: Location[] = [];
247
- result.forEach((item) => {
248
- formatted.push(Location.jsonToObj(item));
249
- });
250
- return Promise.resolve(formatted);
251
- })
252
- .catch((e: any) => {
253
- return Promise.reject(e);
215
+ return PluginGeofencing.getAllLocations().then(result => {
216
+ var formatted = [];
217
+ result.forEach(item => {
218
+ formatted.push(Location.jsonToObj(item));
254
219
  });
220
+ return Promise.resolve(formatted);
221
+ }).catch(e => {
222
+ return Promise.reject(e);
223
+ });
255
224
  } else {
256
- return PluginGeofencing.getLocation(locationID)
257
- .then((result: any) => {
258
- var formatted: Location[] = [];
259
- formatted.push(Location.jsonToObj(result));
260
- return Promise.resolve(formatted);
261
- })
262
- .catch((e: any) => {
263
- return Promise.reject(e);
264
- });
225
+ return PluginGeofencing.getLocation(locationID).then(result => {
226
+ var formatted = [];
227
+ formatted.push(Location.jsonToObj(result));
228
+ return Promise.resolve(formatted);
229
+ }).catch(e => {
230
+ return Promise.reject(e);
231
+ });
265
232
  }
266
233
  }
267
234
 
@@ -270,29 +237,25 @@ function getLocations(locationID?: string): Promise<Location[]> {
270
237
  * @param poiID - Optional in case of poi id (LocationID or StoreID) pass it return only that POI info
271
238
  * @returns promise with A callback that will be called on success or error.
272
239
  */
273
- function getPois(poiID?: string): Promise<Poi[]> {
240
+ function getPois(poiID) {
274
241
  if (poiID == null) {
275
- return PluginGeofencing.getAllPois()
276
- .then((result: any[]) => {
277
- var formatted: Poi[] = [];
278
- result.forEach((item) => {
279
- formatted.push(Poi.jsonToObj(item));
280
- });
281
- return Promise.resolve(formatted);
282
- })
283
- .catch((e: any) => {
284
- return Promise.reject(e);
242
+ return PluginGeofencing.getAllPois().then(result => {
243
+ var formatted = [];
244
+ result.forEach(item => {
245
+ formatted.push(Poi.jsonToObj(item));
285
246
  });
247
+ return Promise.resolve(formatted);
248
+ }).catch(e => {
249
+ return Promise.reject(e);
250
+ });
286
251
  } else {
287
- return PluginGeofencing.getPoi(poiID)
288
- .then((result: any) => {
289
- var formatted: Poi[] = [];
290
- formatted.push(Poi.jsonToObj(result));
291
- return Promise.resolve(formatted);
292
- })
293
- .catch((e: any) => {
294
- return Promise.reject(e);
295
- });
252
+ return PluginGeofencing.getPoi(poiID).then(result => {
253
+ var formatted = [];
254
+ formatted.push(Poi.jsonToObj(result));
255
+ return Promise.resolve(formatted);
256
+ }).catch(e => {
257
+ return Promise.reject(e);
258
+ });
296
259
  }
297
260
  }
298
261
 
@@ -301,7 +264,7 @@ function getPois(poiID?: string): Promise<Poi[]> {
301
264
  * @param regionID If it pass remove info for given region or removes all region info
302
265
  * @returns promise with A callback that will be called on success or error.
303
266
  */
304
- function removeRegions(regionID?: string): Promise<string> {
267
+ function removeRegions(regionID) {
305
268
  if (regionID == null) {
306
269
  return PluginGeofencing.removeAllRegions();
307
270
  } else {
@@ -313,7 +276,7 @@ function removeRegions(regionID?: string): Promise<string> {
313
276
  * Remove saved location info
314
277
  * @returns promise with A callback that will be called on success or error.
315
278
  */
316
- function removeLocations(): Promise<string> {
279
+ function removeLocations() {
317
280
  return PluginGeofencing.removeAllLocations();
318
281
  }
319
282
 
@@ -321,7 +284,7 @@ function removeLocations(): Promise<string> {
321
284
  * Remove saved POI info
322
285
  * @returns promise with A callback that will be called on success or error.
323
286
  */
324
- function removePois(): Promise<string> {
287
+ function removePois() {
325
288
  return PluginGeofencing.removeAllPois();
326
289
  }
327
290
  /**
@@ -333,22 +296,9 @@ function removePois(): Promise<string> {
333
296
  * @param source location of profile to be fetch
334
297
  * @returns promise with A callback that will be called on success or error.
335
298
  */
336
- function startCustomTracking(
337
- sourceType: ProfileSource,
338
- source: string
339
- ): Promise<string> {
299
+ function startCustomTracking(sourceType, source) {
340
300
  return PluginGeofencing.startCustomTracking(sourceType, source);
341
301
  }
342
-
343
- export type {
344
- RegionType,
345
- GeofenceRegion,
346
- Region,
347
- Location,
348
- Poi,
349
- ProfileSource,
350
- };
351
-
352
302
  const WoosmapGeofencing = {
353
303
  initialize,
354
304
  setWoosmapApiKey,
@@ -369,7 +319,7 @@ const WoosmapGeofencing = {
369
319
  removeLocations,
370
320
  getPois,
371
321
  removePois,
372
- startCustomTracking,
322
+ startCustomTracking
373
323
  };
374
-
375
324
  export default WoosmapGeofencing;
325
+ //# sourceMappingURL=index.js.map