@woosmap/react-native-plugin-geofencing 0.5.1 → 0.6.0-beta.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 (69) hide show
  1. package/android/build.gradle +9 -9
  2. package/android/gradle.properties +4 -4
  3. package/package.json +22 -20
  4. package/lib/commonjs/index.js +0 -429
  5. package/lib/commonjs/index.js.map +0 -1
  6. package/lib/commonjs/internal/Airship.js +0 -25
  7. package/lib/commonjs/internal/Airship.js.map +0 -1
  8. package/lib/commonjs/internal/IndoorBeacon.js +0 -73
  9. package/lib/commonjs/internal/IndoorBeacon.js.map +0 -1
  10. package/lib/commonjs/internal/Location.js +0 -36
  11. package/lib/commonjs/internal/Location.js.map +0 -1
  12. package/lib/commonjs/internal/MarketingCloud.js +0 -25
  13. package/lib/commonjs/internal/MarketingCloud.js.map +0 -1
  14. package/lib/commonjs/internal/Poi.js +0 -62
  15. package/lib/commonjs/internal/Poi.js.map +0 -1
  16. package/lib/commonjs/internal/Region.js +0 -44
  17. package/lib/commonjs/internal/Region.js.map +0 -1
  18. package/lib/commonjs/internal/Visit.js +0 -32
  19. package/lib/commonjs/internal/Visit.js.map +0 -1
  20. package/lib/commonjs/internal/Zoi.js +0 -57
  21. package/lib/commonjs/internal/Zoi.js.map +0 -1
  22. package/lib/commonjs/internal/nativeInterface.js +0 -13
  23. package/lib/commonjs/internal/nativeInterface.js.map +0 -1
  24. package/lib/commonjs/internal/types.js +0 -2
  25. package/lib/commonjs/internal/types.js.map +0 -1
  26. package/lib/module/index.js +0 -422
  27. package/lib/module/index.js.map +0 -1
  28. package/lib/module/internal/Airship.js +0 -23
  29. package/lib/module/internal/Airship.js.map +0 -1
  30. package/lib/module/internal/IndoorBeacon.js +0 -67
  31. package/lib/module/internal/IndoorBeacon.js.map +0 -1
  32. package/lib/module/internal/Location.js +0 -30
  33. package/lib/module/internal/Location.js.map +0 -1
  34. package/lib/module/internal/MarketingCloud.js +0 -23
  35. package/lib/module/internal/MarketingCloud.js.map +0 -1
  36. package/lib/module/internal/Poi.js +0 -56
  37. package/lib/module/internal/Poi.js.map +0 -1
  38. package/lib/module/internal/Region.js +0 -38
  39. package/lib/module/internal/Region.js.map +0 -1
  40. package/lib/module/internal/Visit.js +0 -30
  41. package/lib/module/internal/Visit.js.map +0 -1
  42. package/lib/module/internal/Zoi.js +0 -55
  43. package/lib/module/internal/Zoi.js.map +0 -1
  44. package/lib/module/internal/nativeInterface.js +0 -7
  45. package/lib/module/internal/nativeInterface.js.map +0 -1
  46. package/lib/module/internal/types.js +0 -2
  47. package/lib/module/internal/types.js.map +0 -1
  48. package/lib/typescript/src/index.d.ts +0 -191
  49. package/lib/typescript/src/index.d.ts.map +0 -1
  50. package/lib/typescript/src/internal/Airship.d.ts +0 -19
  51. package/lib/typescript/src/internal/Airship.d.ts.map +0 -1
  52. package/lib/typescript/src/internal/IndoorBeacon.d.ts +0 -50
  53. package/lib/typescript/src/internal/IndoorBeacon.d.ts.map +0 -1
  54. package/lib/typescript/src/internal/Location.d.ts +0 -27
  55. package/lib/typescript/src/internal/Location.d.ts.map +0 -1
  56. package/lib/typescript/src/internal/MarketingCloud.d.ts +0 -19
  57. package/lib/typescript/src/internal/MarketingCloud.d.ts.map +0 -1
  58. package/lib/typescript/src/internal/Poi.d.ts +0 -52
  59. package/lib/typescript/src/internal/Poi.d.ts.map +0 -1
  60. package/lib/typescript/src/internal/Region.d.ts +0 -35
  61. package/lib/typescript/src/internal/Region.d.ts.map +0 -1
  62. package/lib/typescript/src/internal/Visit.d.ts +0 -26
  63. package/lib/typescript/src/internal/Visit.d.ts.map +0 -1
  64. package/lib/typescript/src/internal/Zoi.d.ts +0 -50
  65. package/lib/typescript/src/internal/Zoi.d.ts.map +0 -1
  66. package/lib/typescript/src/internal/nativeInterface.d.ts +0 -3
  67. package/lib/typescript/src/internal/nativeInterface.d.ts.map +0 -1
  68. package/lib/typescript/src/internal/types.d.ts +0 -19
  69. package/lib/typescript/src/internal/types.d.ts.map +0 -1
@@ -1,36 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- /**
8
- * @classdesc A class that represents the location object.
9
- * @constructs Location
10
- * @param {number} date The datetime stamp.
11
- * @param {number} latitude The latitude of the location.
12
-
13
- * @param {string} Locationdescription The description of the location.
14
- * @param {string} Locationid A unique identifier for the location.
15
- * @param {number} longitude The longitude of the location.
16
- */
17
- class Location {
18
- constructor(date, latitude, locationdescription, locationid, longitude) {
19
- this.Date = date;
20
- this.Latitude = latitude;
21
- this.Locationdescription = locationdescription;
22
- this.Locationid = locationid;
23
- this.Longitude = longitude;
24
- }
25
- /**
26
- * Converts json object to an object of type Location.
27
- * @param {Object} json The json representation of the Location.
28
- * @returns Object
29
- * @memberof Location
30
- */
31
- static jsonToObj(json) {
32
- return new Location(json.date, json.latitude, json.locationdescription, json.locationid, json.longitude);
33
- }
34
- }
35
- var _default = exports.default = Location;
36
- //# sourceMappingURL=Location.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["Location","constructor","date","latitude","locationdescription","locationid","longitude","Date","Latitude","Locationdescription","Locationid","Longitude","jsonToObj","json","_default","exports","default"],"sourceRoot":"../../../src","sources":["internal/Location.tsx"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMA,QAAQ,CAAC;EAMbC,WAAWA,CACTC,IAAY,EACZC,QAAgB,EAChBC,mBAA2B,EAC3BC,UAAkB,EAClBC,SAAiB,EACjB;IACA,IAAI,CAACC,IAAI,GAAGL,IAAI;IAChB,IAAI,CAACM,QAAQ,GAAGL,QAAQ;IACxB,IAAI,CAACM,mBAAmB,GAAGL,mBAAmB;IAC9C,IAAI,CAACM,UAAU,GAAGL,UAAU;IAC5B,IAAI,CAACM,SAAS,GAAGL,SAAS;EAC5B;EACA;AACF;AACA;AACA;AACA;AACA;EACE,OAAOM,SAASA,CAACC,IAAS,EAAE;IAC1B,OAAO,IAAIb,QAAQ,CACjBa,IAAI,CAACX,IAAI,EACTW,IAAI,CAACV,QAAQ,EACbU,IAAI,CAACT,mBAAmB,EACxBS,IAAI,CAACR,UAAU,EACfQ,IAAI,CAACP,SACP,CAAC;EACH;AACF;AAAC,IAAAQ,QAAA,GAAAC,OAAA,CAAAC,OAAA,GACchB,QAAQ","ignoreList":[]}
@@ -1,25 +0,0 @@
1
- "use strict";
2
-
3
- /**
4
- * @classdesc A class that represents the Marketing Cloud object.
5
- * @constructs MarketingCloud
6
- * @param {string} name The name of the custom event.
7
- * @param {string} properties The attributes of the POI such as `name`, `address`, `zipCode` etc.
8
- */
9
- class MarketingCloud {
10
- constructor(name, properties) {
11
- this.Name = name;
12
- this.Properties = properties;
13
- }
14
- /**
15
- * Converts json object to an object of type MarketingCloud.
16
- * @param {Object} json The json representation of MarketingCloud.
17
- * @returns Object
18
- * @memberof MarketingCloud
19
- */
20
- static jsonToObj(json) {
21
- return new MarketingCloud(json.name, json.properties);
22
- }
23
- }
24
- module.exports = MarketingCloud;
25
- //# sourceMappingURL=MarketingCloud.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["MarketingCloud","constructor","name","properties","Name","Properties","jsonToObj","json","module","exports"],"sourceRoot":"../../../src","sources":["internal/MarketingCloud.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMA,cAAc,CAAC;EAGnBC,WAAWA,CAACC,IAAY,EAAEC,UAAkB,EAAE;IAC5C,IAAI,CAACC,IAAI,GAAGF,IAAI;IAChB,IAAI,CAACG,UAAU,GAAGF,UAAU;EAC9B;EACA;AACF;AACA;AACA;AACA;AACA;EACE,OAAOG,SAASA,CAACC,IAAS,EAAE;IAC1B,OAAO,IAAIP,cAAc,CAACO,IAAI,CAACL,IAAI,EAAEK,IAAI,CAACJ,UAAU,CAAC;EACvD;AACF;AACAK,MAAM,CAACC,OAAO,GAAGT,cAAc","ignoreList":[]}
@@ -1,62 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- /**
8
- * A class that represents the POI object.
9
- * @classdesc A class that represents the POI object.
10
- * @constructs Poi
11
- * @param {Object} jsonData A json object representing the POI.
12
- * @param {string} city The name of the city the POI belongs to.
13
- * @param {string} idstore A unique identifier for the POI.
14
- * @param {name} name The name of the POI.
15
- * @param {number} date The datetime stamp.
16
- * @param {number} distance The distance between the POI and the user's location.
17
- * @param {number} duration The duration to travel to the POI from the user's location.
18
- * @param {number} latitude The latitude of the POI.
19
- * @param {string} locationid Location id of the POI.
20
- * @param {number} longitude The longitude of the POI.
21
- * @param {string} zipcode The zip code of the POI.
22
- * @param {number} radius The radius of the POI.
23
- * @param {string} address The address of the POI.
24
- * @param {string} countrycode The countrycode of the POI.
25
- * @param {string} tags The tags for the POI.
26
- * @param {string} types The types of the POI.
27
- * @param {string} contact The contact for the POI.
28
- */
29
- class Poi {
30
- constructor(jsondata, city, idstore, name, date, distance, duration, latitude, locationid, longitude, zipcode, radius, address, countrycode, tags, types, contact, userProperties) {
31
- this.Jsondata = jsondata;
32
- this.City = city;
33
- this.Idstore = idstore;
34
- this.Name = name;
35
- this.Date = date;
36
- this.Distance = distance;
37
- this.Duration = duration;
38
- this.Latitude = latitude;
39
- this.Locationid = locationid;
40
- this.Longitude = longitude;
41
- this.Zipcode = zipcode;
42
- this.Radius = radius;
43
- this.Idstore = idstore;
44
- this.Countrycode = countrycode;
45
- this.Tags = tags;
46
- this.Types = types;
47
- this.Contact = contact;
48
- this.Address = address;
49
- this.userProperties = userProperties;
50
- }
51
- /**
52
- * Converts json object to an object of type Poi.
53
- * @param {Object} json The json representation of the Poi.
54
- * @returns Object
55
- * @memberof Poi
56
- */
57
- static jsonToObj(json) {
58
- return new Poi(json.jsondata, json.city, json.idstore, json.name, json.date, json.distance, json.duration, json.latitude, json.locationid, json.longitude, json.zipcode, json.radius, json.address, json.countrycode, json.tags, json.types, json.contact, json.userProperties);
59
- }
60
- }
61
- var _default = exports.default = Poi;
62
- //# sourceMappingURL=Poi.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["Poi","constructor","jsondata","city","idstore","name","date","distance","duration","latitude","locationid","longitude","zipcode","radius","address","countrycode","tags","types","contact","userProperties","Jsondata","City","Idstore","Name","Date","Distance","Duration","Latitude","Locationid","Longitude","Zipcode","Radius","Countrycode","Tags","Types","Contact","Address","jsonToObj","json","_default","exports","default"],"sourceRoot":"../../../src","sources":["internal/Poi.tsx"],"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;EAmBRC,WAAWA,CACTC,QAAgB,EAChBC,IAAY,EACZC,OAAe,EACfC,IAAY,EACZC,IAAY,EACZC,QAAgB,EAChBC,QAAgB,EAChBC,QAAgB,EAChBC,UAAkB,EAClBC,SAAiB,EACjBC,OAAe,EACfC,MAAc,EACdC,OAAe,EACfC,WAAmB,EACnBC,IAAY,EACZC,KAAa,EACbC,OAAe,EACfC,cAA6B,EAC7B;IACA,IAAI,CAACC,QAAQ,GAAGlB,QAAQ;IACxB,IAAI,CAACmB,IAAI,GAAGlB,IAAI;IAChB,IAAI,CAACmB,OAAO,GAAGlB,OAAO;IACtB,IAAI,CAACmB,IAAI,GAAGlB,IAAI;IAChB,IAAI,CAACmB,IAAI,GAAGlB,IAAI;IAChB,IAAI,CAACmB,QAAQ,GAAGlB,QAAQ;IACxB,IAAI,CAACmB,QAAQ,GAAGlB,QAAQ;IACxB,IAAI,CAACmB,QAAQ,GAAGlB,QAAQ;IACxB,IAAI,CAACmB,UAAU,GAAGlB,UAAU;IAC5B,IAAI,CAACmB,SAAS,GAAGlB,SAAS;IAC1B,IAAI,CAACmB,OAAO,GAAGlB,OAAO;IACtB,IAAI,CAACmB,MAAM,GAAGlB,MAAM;IACpB,IAAI,CAACS,OAAO,GAAGlB,OAAO;IACtB,IAAI,CAAC4B,WAAW,GAAGjB,WAAW;IAC9B,IAAI,CAACkB,IAAI,GAAGjB,IAAI;IAChB,IAAI,CAACkB,KAAK,GAAGjB,KAAK;IAClB,IAAI,CAACkB,OAAO,GAAGjB,OAAO;IACtB,IAAI,CAACkB,OAAO,GAAGtB,OAAO;IACtB,IAAI,CAACK,cAAc,GAAGA,cAAc;EACtC;EACA;AACF;AACA;AACA;AACA;AACA;EACE,OAAOkB,SAASA,CAACC,IAAS,EAAE;IAC1B,OAAO,IAAItC,GAAG,CACZsC,IAAI,CAACpC,QAAQ,EACboC,IAAI,CAACnC,IAAI,EACTmC,IAAI,CAAClC,OAAO,EACZkC,IAAI,CAACjC,IAAI,EACTiC,IAAI,CAAChC,IAAI,EACTgC,IAAI,CAAC/B,QAAQ,EACb+B,IAAI,CAAC9B,QAAQ,EACb8B,IAAI,CAAC7B,QAAQ,EACb6B,IAAI,CAAC5B,UAAU,EACf4B,IAAI,CAAC3B,SAAS,EACd2B,IAAI,CAAC1B,OAAO,EACZ0B,IAAI,CAACzB,MAAM,EACXyB,IAAI,CAACxB,OAAO,EACZwB,IAAI,CAACvB,WAAW,EAChBuB,IAAI,CAACtB,IAAI,EACTsB,IAAI,CAACrB,KAAK,EACVqB,IAAI,CAACpB,OAAO,EACZoB,IAAI,CAACnB,cACP,CAAC;EACH;AACF;AAAC,IAAAoB,QAAA,GAAAC,OAAA,CAAAC,OAAA,GACczC,GAAG","ignoreList":[]}
@@ -1,44 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- /**
8
- * A class that represents the Region object.
9
- * @classdesc A class that represents the Region object.
10
- * @constructs Region
11
- * @param {number} date The datetime stamp.
12
- * @param {boolean} didEnter A boolean value indicating whether the region was entered.
13
- * @param {string} identifier An alphanumeric unique identifier for the region.
14
- * @param {number} latitude The latitude of the region.
15
- * @param {number} longitude The longitude of the region.
16
- * @param {number} radius The radius of the region in meters.
17
- * @param {boolean} frompositiondetection Determines whether the user's current position is inside the region.
18
- * @param {string} eventName Describe cause of region event, Entry or Exit.
19
- * @param {number} spenttime Number of seconds the user spent in region in case of event name Exit.
20
- */
21
- class Region {
22
- constructor(date, didenter, identifier, latitude, longitude, radius, frompositiondetection, eventname, spenttime) {
23
- this.Date = date;
24
- this.Didenter = didenter;
25
- this.Identifier = identifier;
26
- this.Latitude = latitude;
27
- this.Longitude = longitude;
28
- this.Radius = radius;
29
- this.Frompositiondetection = frompositiondetection;
30
- this.Eventname = eventname;
31
- this.SpentTime = spenttime;
32
- }
33
- /**
34
- * Converts json object to an object of type Region.
35
- * @param {Object} json The json representation of the region.
36
- * @returns Object
37
- * @memberof Region
38
- */
39
- static jsonToObj(json) {
40
- return new Region(json.date, json.didenter, json.identifier, json.latitude, json.longitude, json.radius, json.frompositiondetection, json.eventname, json.spenttime);
41
- }
42
- }
43
- var _default = exports.default = Region;
44
- //# sourceMappingURL=Region.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["Region","constructor","date","didenter","identifier","latitude","longitude","radius","frompositiondetection","eventname","spenttime","Date","Didenter","Identifier","Latitude","Longitude","Radius","Frompositiondetection","Eventname","SpentTime","jsonToObj","json","_default","exports","default"],"sourceRoot":"../../../src","sources":["internal/Region.tsx"],"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;IACA,IAAI,CAACC,IAAI,GAAGT,IAAI;IAChB,IAAI,CAACU,QAAQ,GAAGT,QAAQ;IACxB,IAAI,CAACU,UAAU,GAAGT,UAAU;IAC5B,IAAI,CAACU,QAAQ,GAAGT,QAAQ;IACxB,IAAI,CAACU,SAAS,GAAGT,SAAS;IAC1B,IAAI,CAACU,MAAM,GAAGT,MAAM;IACpB,IAAI,CAACU,qBAAqB,GAAGT,qBAAqB;IAClD,IAAI,CAACU,SAAS,GAAGT,SAAS;IAC1B,IAAI,CAACU,SAAS,GAAGT,SAAS;EAC5B;EACA;AACF;AACA;AACA;AACA;AACA;EACE,OAAOU,SAASA,CAACC,IAAS,EAAE;IAC1B,OAAO,IAAIrB,MAAM,CACfqB,IAAI,CAACnB,IAAI,EACTmB,IAAI,CAAClB,QAAQ,EACbkB,IAAI,CAACjB,UAAU,EACfiB,IAAI,CAAChB,QAAQ,EACbgB,IAAI,CAACf,SAAS,EACde,IAAI,CAACd,MAAM,EACXc,IAAI,CAACb,qBAAqB,EAC1Ba,IAAI,CAACZ,SAAS,EACdY,IAAI,CAACX,SACP,CAAC;EACH;AACF;AAAC,IAAAY,QAAA,GAAAC,OAAA,CAAAC,OAAA,GACcxB,MAAM","ignoreList":[]}
@@ -1,32 +0,0 @@
1
- "use strict";
2
-
3
- /**
4
- * @classdesc A class that represents the visits object.
5
- * @constructs Visit
6
- * @param {number} accuracy The accuracy in meters.
7
- * @param {number} arrivalDate The datetime stamp for the arrival at the place of visit.
8
- * @param {number} date Current datetime stamp.
9
- * @param {number} latitude The latitude of the place of visit.
10
- * @param {number} longitude The longitude of the plaee of visit.
11
- */
12
- class Visit {
13
- constructor(accuracy, arrivaldate, date, departuredate, latitude, longitude) {
14
- this.Accuracy = accuracy;
15
- this.Arrivaldate = arrivaldate;
16
- this.Date = date;
17
- this.Departuredate = departuredate;
18
- this.Latitude = latitude;
19
- this.Longitude = longitude;
20
- }
21
- /**
22
- * Converts json object to an object of type Visits.
23
- * @param {Object} json The json representation of the Visits.
24
- * @returns Visit
25
- * @memberof Visit
26
- */
27
- static jsonToObj(json) {
28
- return new Visit(json.accuracy, json.arrivaldate, json.date, json.departuredate, json.latitude, json.longitude);
29
- }
30
- }
31
- module.exports = Visit;
32
- //# sourceMappingURL=Visit.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["Visit","constructor","accuracy","arrivaldate","date","departuredate","latitude","longitude","Accuracy","Arrivaldate","Date","Departuredate","Latitude","Longitude","jsonToObj","json","module","exports"],"sourceRoot":"../../../src","sources":["internal/Visit.tsx"],"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;IACA,IAAI,CAACC,QAAQ,GAAGN,QAAQ;IACxB,IAAI,CAACO,WAAW,GAAGN,WAAW;IAC9B,IAAI,CAACO,IAAI,GAAGN,IAAI;IAChB,IAAI,CAACO,aAAa,GAAGN,aAAa;IAClC,IAAI,CAACO,QAAQ,GAAGN,QAAQ;IACxB,IAAI,CAACO,SAAS,GAAGN,SAAS;EAC5B;EACA;AACF;AACA;AACA;AACA;AACA;EACE,OAAOO,SAASA,CAACC,IAAS,EAAS;IACjC,OAAO,IAAIf,KAAK,CACde,IAAI,CAACb,QAAQ,EACba,IAAI,CAACZ,WAAW,EAChBY,IAAI,CAACX,IAAI,EACTW,IAAI,CAACV,aAAa,EAClBU,IAAI,CAACT,QAAQ,EACbS,IAAI,CAACR,SACP,CAAC;EACH;AACF;AACAS,MAAM,CAACC,OAAO,GAAGjB,KAAK","ignoreList":[]}
@@ -1,57 +0,0 @@
1
- "use strict";
2
-
3
- /**
4
- * @classdesc A class that represents the Zones of Interest (ZOI) object.
5
- * @constructs Zoi
6
- * @param {number} accumulator Represents the number of visits used to build the ZOI (only for calculation of ZOI)
7
- * @param {number} age Age is used to determine if a ZOI should be deleted by the algorithm (only for calculation of ZOI)
8
- * @param {number} covariance_det The covariance determinant (only for calculation of ZOI)
9
- * @param {number} duration The duration of all the accumulated visits of the ZOI
10
- * @param {number} endtime The exit date of the last ZOI visit
11
- * @param {string[]} idvisits The list of id visits included in this ZOI
12
- * @param {number} latmean The latitude of the center of the ZOI
13
- * @param {number} lngmean The longitude of the center of the ZOI
14
- * @param {string} period The classification of the period (HOME, WORK, OTHER or NO QUALIFIER)
15
- * @param {number} prior_probability Estimation of probability (only for calculation of ZOI)
16
- * @param {number} starttime The entry date for the first ZOI visit
17
- * @param {number} weekly_density The weekly density of the ZOI visit (only for classification of ZOI)
18
- * @param {string} wktpolygon This is the Well-known text representation of geometry of the ZOI polygon.
19
- * @param {number} x00covariance_matrix_inverse The covariance of a cluster (only for calculation of ZOI)
20
- * @param {number} x01covariance_matrix_inverse The covariance of a cluster (only for calculation of ZOI)
21
- * @param {number} x10covariance_matrix_inverse The covariance of a cluster (only for calculation of ZOI)
22
- * @param {number} x11covariance_matrix_inverse The covariance of a cluster (only for calculation of ZOI)
23
-
24
- */
25
- class Zoi {
26
- 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) {
27
- this.Accumulator = accumulator;
28
- this.Age = age;
29
- this.Covariance_Det = covariance_det;
30
- this.Duration = duration;
31
- this.Endtime = endtime;
32
- this.Idvisits = idvisits;
33
- this.Latmean = latmean;
34
- this.Lngmean = lngmean;
35
- this.Period = period;
36
- this.Prior_Probability = prior_probability;
37
- this.Starttime = starttime;
38
- this.Weekly_Density = weekly_density;
39
- this.Covariance_Det = covariance_det;
40
- this.Wktpolygon = wktpolygon;
41
- this.X00Covariance_Matrix_Inverse = x00covariance_matrix_inverse;
42
- this.X01Covariance_Matrix_Inverse = x01covariance_matrix_inverse;
43
- this.X10Covariance_Matrix_Inverse = x10covariance_matrix_inverse;
44
- this.X11Covariance_Matrix_Inverse = x11covariance_matrix_inverse;
45
- }
46
- /**
47
- * Converts json object to an object of type Zoi.
48
- * @param {Object} json The json representation of the Zoi.
49
- * @returns Object
50
- * @memberof Zoi
51
- */
52
- static jsonToObj(json) {
53
- 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);
54
- }
55
- }
56
- module.exports = Zoi;
57
- //# sourceMappingURL=Zoi.js.map
@@ -1 +0,0 @@
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","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"],"sourceRoot":"../../../src","sources":["internal/Zoi.tsx"],"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;IACA,IAAI,CAACC,WAAW,GAAGjB,WAAW;IAC9B,IAAI,CAACkB,GAAG,GAAGjB,GAAG;IACd,IAAI,CAACkB,cAAc,GAAGjB,cAAc;IACpC,IAAI,CAACkB,QAAQ,GAAGjB,QAAQ;IACxB,IAAI,CAACkB,OAAO,GAAGjB,OAAO;IACtB,IAAI,CAACkB,QAAQ,GAAGjB,QAAQ;IACxB,IAAI,CAACkB,OAAO,GAAGjB,OAAO;IACtB,IAAI,CAACkB,OAAO,GAAGjB,OAAO;IACtB,IAAI,CAACkB,MAAM,GAAGjB,MAAM;IACpB,IAAI,CAACkB,iBAAiB,GAAGjB,iBAAiB;IAC1C,IAAI,CAACkB,SAAS,GAAGjB,SAAS;IAC1B,IAAI,CAACkB,cAAc,GAAGjB,cAAc;IACpC,IAAI,CAACQ,cAAc,GAAGjB,cAAc;IACpC,IAAI,CAAC2B,UAAU,GAAGjB,UAAU;IAC5B,IAAI,CAACkB,4BAA4B,GAAGjB,4BAA4B;IAChE,IAAI,CAACkB,4BAA4B,GAAGjB,4BAA4B;IAChE,IAAI,CAACkB,4BAA4B,GAAGjB,4BAA4B;IAChE,IAAI,CAACkB,4BAA4B,GAAGjB,4BAA4B;EAClE;EACA;AACF;AACA;AACA;AACA;AACA;EACE,OAAOkB,SAASA,CAACC,IAAS,EAAE;IAC1B,OAAO,IAAIrC,GAAG,CACZqC,IAAI,CAACnC,WAAW,EAChBmC,IAAI,CAAClC,GAAG,EACRkC,IAAI,CAACjC,cAAc,EACnBiC,IAAI,CAAChC,QAAQ,EACbgC,IAAI,CAAC/B,OAAO,EACZ+B,IAAI,CAAC9B,QAAQ,EACb8B,IAAI,CAAC7B,OAAO,EACZ6B,IAAI,CAAC5B,OAAO,EACZ4B,IAAI,CAAC3B,MAAM,EACX2B,IAAI,CAAC1B,iBAAiB,EACtB0B,IAAI,CAACzB,SAAS,EACdyB,IAAI,CAACxB,cAAc,EACnBwB,IAAI,CAACvB,UAAU,EACfuB,IAAI,CAACtB,4BAA4B,EACjCsB,IAAI,CAACrB,4BAA4B,EACjCqB,IAAI,CAACpB,4BAA4B,EACjCoB,IAAI,CAACnB,4BACP,CAAC;EACH;AACF;AACAoB,MAAM,CAACC,OAAO,GAAGvC,GAAG","ignoreList":[]}
@@ -1,13 +0,0 @@
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 = exports.default = PluginGeofencing;
13
- //# sourceMappingURL=nativeInterface.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_reactNative","require","PluginGeofencing","NativeModules","Error","_default","exports","default"],"sourceRoot":"../../../src","sources":["internal/nativeInterface.tsx"],"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,GAAAC,OAAA,CAAAC,OAAA,GAEcL,gBAAgB","ignoreList":[]}
@@ -1,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../src","sources":["internal/types.tsx"],"mappings":"","ignoreList":[]}