@woosmap/react-native-plugin-geofencing 0.6.0-beta.2 → 0.6.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 (71) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/android/build.gradle +1 -1
  3. package/lib/commonjs/index.js +429 -0
  4. package/lib/commonjs/index.js.map +1 -0
  5. package/lib/commonjs/internal/Airship.js +25 -0
  6. package/lib/commonjs/internal/Airship.js.map +1 -0
  7. package/lib/commonjs/internal/IndoorBeacon.js +73 -0
  8. package/lib/commonjs/internal/IndoorBeacon.js.map +1 -0
  9. package/lib/commonjs/internal/Location.js +36 -0
  10. package/lib/commonjs/internal/Location.js.map +1 -0
  11. package/lib/commonjs/internal/MarketingCloud.js +25 -0
  12. package/lib/commonjs/internal/MarketingCloud.js.map +1 -0
  13. package/lib/commonjs/internal/Poi.js +62 -0
  14. package/lib/commonjs/internal/Poi.js.map +1 -0
  15. package/lib/commonjs/internal/Region.js +44 -0
  16. package/lib/commonjs/internal/Region.js.map +1 -0
  17. package/lib/commonjs/internal/Visit.js +32 -0
  18. package/lib/commonjs/internal/Visit.js.map +1 -0
  19. package/lib/commonjs/internal/Zoi.js +57 -0
  20. package/lib/commonjs/internal/Zoi.js.map +1 -0
  21. package/lib/commonjs/internal/nativeInterface.js +13 -0
  22. package/lib/commonjs/internal/nativeInterface.js.map +1 -0
  23. package/lib/commonjs/internal/types.js +2 -0
  24. package/lib/commonjs/internal/types.js.map +1 -0
  25. package/lib/commonjs/package.json +1 -0
  26. package/lib/module/index.js +424 -0
  27. package/lib/module/index.js.map +1 -0
  28. package/lib/module/internal/Airship.js +25 -0
  29. package/lib/module/internal/Airship.js.map +1 -0
  30. package/lib/module/internal/IndoorBeacon.js +69 -0
  31. package/lib/module/internal/IndoorBeacon.js.map +1 -0
  32. package/lib/module/internal/Location.js +32 -0
  33. package/lib/module/internal/Location.js.map +1 -0
  34. package/lib/module/internal/MarketingCloud.js +25 -0
  35. package/lib/module/internal/MarketingCloud.js.map +1 -0
  36. package/lib/module/internal/Poi.js +58 -0
  37. package/lib/module/internal/Poi.js.map +1 -0
  38. package/lib/module/internal/Region.js +40 -0
  39. package/lib/module/internal/Region.js.map +1 -0
  40. package/lib/module/internal/Visit.js +32 -0
  41. package/lib/module/internal/Visit.js.map +1 -0
  42. package/lib/module/internal/Zoi.js +57 -0
  43. package/lib/module/internal/Zoi.js.map +1 -0
  44. package/lib/module/internal/nativeInterface.js +9 -0
  45. package/lib/module/internal/nativeInterface.js.map +1 -0
  46. package/lib/module/internal/types.js +2 -0
  47. package/lib/module/internal/types.js.map +1 -0
  48. package/lib/module/package.json +1 -0
  49. package/lib/typescript/src/index.d.ts +191 -0
  50. package/lib/typescript/src/index.d.ts.map +1 -0
  51. package/lib/typescript/src/internal/Airship.d.ts +19 -0
  52. package/lib/typescript/src/internal/Airship.d.ts.map +1 -0
  53. package/lib/typescript/src/internal/IndoorBeacon.d.ts +50 -0
  54. package/lib/typescript/src/internal/IndoorBeacon.d.ts.map +1 -0
  55. package/lib/typescript/src/internal/Location.d.ts +27 -0
  56. package/lib/typescript/src/internal/Location.d.ts.map +1 -0
  57. package/lib/typescript/src/internal/MarketingCloud.d.ts +19 -0
  58. package/lib/typescript/src/internal/MarketingCloud.d.ts.map +1 -0
  59. package/lib/typescript/src/internal/Poi.d.ts +52 -0
  60. package/lib/typescript/src/internal/Poi.d.ts.map +1 -0
  61. package/lib/typescript/src/internal/Region.d.ts +35 -0
  62. package/lib/typescript/src/internal/Region.d.ts.map +1 -0
  63. package/lib/typescript/src/internal/Visit.d.ts +26 -0
  64. package/lib/typescript/src/internal/Visit.d.ts.map +1 -0
  65. package/lib/typescript/src/internal/Zoi.d.ts +50 -0
  66. package/lib/typescript/src/internal/Zoi.d.ts.map +1 -0
  67. package/lib/typescript/src/internal/nativeInterface.d.ts +3 -0
  68. package/lib/typescript/src/internal/nativeInterface.d.ts.map +1 -0
  69. package/lib/typescript/src/internal/types.d.ts +19 -0
  70. package/lib/typescript/src/internal/types.d.ts.map +1 -0
  71. package/package.json +1 -1
@@ -0,0 +1,19 @@
1
+ /**
2
+ * @classdesc A class that represents the Airship object.
3
+ * @constructs Airship
4
+ * @param {string} name The name of the custom event.
5
+ * @param {string} properties The attributes of the POI such as `name`, `address`, `zipCode` etc.
6
+ */
7
+ declare class Airship {
8
+ Name: String;
9
+ Properties: String;
10
+ constructor(name: String, properties: String);
11
+ /**
12
+ * Converts json object to an object of type Airship.
13
+ * @param {Object} json The json representation of Airship.
14
+ * @returns Object
15
+ * @memberof Airship
16
+ */
17
+ static jsonToObj(json: any): Airship;
18
+ }
19
+ //# sourceMappingURL=Airship.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Airship.d.ts","sourceRoot":"","sources":["../../../../src/internal/Airship.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,cAAM,OAAO;IACX,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;gBACP,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM;IAI5C;;;;;OAKG;IACH,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,GAAG;CAG3B"}
@@ -0,0 +1,50 @@
1
+ /**
2
+ * Represents an indoor beacon.
3
+ * @class
4
+ * @param {string} beaconId - The ID of the beacon.
5
+ * @param {number} major - The major version number of the beacon.
6
+ * @param {number} minor - The minor version number of the beacon.
7
+ * @param {string} venueId - The ID of the venue where the beacon is located.
8
+ * @param {string} identifier - The identifier of the beacon.
9
+ * @param {number} latitude - The latitude coordinate of the beacon's location.
10
+ * @param {number} longitude - The longitude coordinate of the beacon's location.
11
+ * @param {number} date - The date when the beacon was created.
12
+ * @param {Object} properties - custom property share with beacon
13
+ */
14
+ declare class IndoorBeacon {
15
+ beaconId: string;
16
+ major: number;
17
+ minor: number;
18
+ venueId: string;
19
+ identifier: string;
20
+ latitude: number;
21
+ longitude: number;
22
+ date: number;
23
+ properties: {
24
+ [key: string]: any;
25
+ };
26
+ /**
27
+ * Creates a new instance of the Beacon class.
28
+ * @param {string} beaconId - The ID of the beacon.
29
+ * @param {number} major - The major version number of the beacon.
30
+ * @param {number} minor - The minor version number of the beacon.
31
+ * @param {string} venueId - The ID of the venue where the beacon is located.
32
+ * @param {string} identifier - The identifier of the beacon.
33
+ * @param {number} latitude - The latitude coordinate of the beacon's location.
34
+ * @param {number} longitude - The longitude coordinate of the beacon's location.
35
+ * @param {number} date - The date when the beacon was created.
36
+ * @param {Object} properties - custom property share with beacon
37
+ */
38
+ constructor(beaconId: string, major: number, minor: number, venueId: string, identifier: string, latitude: number, longitude: number, date: number, properties: {
39
+ [key: string]: any;
40
+ });
41
+ /**
42
+ * Converts json object to an object of type IndoorBeacon.
43
+ * @param {Object} json The json representation of the IndoorBeacon.
44
+ * @returns Object
45
+ * @memberof Poi
46
+ */
47
+ static jsonToObj(json: any): IndoorBeacon;
48
+ }
49
+ export default IndoorBeacon;
50
+ //# sourceMappingURL=IndoorBeacon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IndoorBeacon.d.ts","sourceRoot":"","sources":["../../../../src/internal/IndoorBeacon.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,cAAM,YAAY;IAEhB,QAAQ,EAAE,MAAM,CAAC;IAGjB,KAAK,EAAE,MAAM,CAAC;IAGd,KAAK,EAAE,MAAM,CAAC;IAGd,OAAO,EAAE,MAAM,CAAC;IAGhB,UAAU,EAAE,MAAM,CAAC;IAGnB,QAAQ,EAAE,MAAM,CAAC;IAGjB,SAAS,EAAE,MAAM,CAAC;IAGlB,IAAI,EAAE,MAAM,CAAC;IAGb,UAAU,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAEnC;;;;;;;;;;;OAWG;gBAED,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE;IAYpC;;;;;OAKG;IACH,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,GAAG;CAa3B;AACD,eAAe,YAAY,CAAC"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * @classdesc A class that represents the location object.
3
+ * @constructs Location
4
+ * @param {number} date The datetime stamp.
5
+ * @param {number} latitude The latitude of the location.
6
+
7
+ * @param {string} Locationdescription The description of the location.
8
+ * @param {string} Locationid A unique identifier for the location.
9
+ * @param {number} longitude The longitude of the location.
10
+ */
11
+ declare class Location {
12
+ Date: number;
13
+ Latitude: number;
14
+ Locationdescription: string;
15
+ Locationid: string;
16
+ Longitude: number;
17
+ constructor(date: number, latitude: number, locationdescription: string, locationid: string, longitude: number);
18
+ /**
19
+ * Converts json object to an object of type Location.
20
+ * @param {Object} json The json representation of the Location.
21
+ * @returns Object
22
+ * @memberof Location
23
+ */
24
+ static jsonToObj(json: any): Location;
25
+ }
26
+ export default Location;
27
+ //# sourceMappingURL=Location.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Location.d.ts","sourceRoot":"","sources":["../../../../src/internal/Location.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,cAAM,QAAQ;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;gBAEhB,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,EAChB,mBAAmB,EAAE,MAAM,EAC3B,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM;IAQnB;;;;;OAKG;IACH,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,GAAG;CAS3B;AACD,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * @classdesc A class that represents the Marketing Cloud object.
3
+ * @constructs MarketingCloud
4
+ * @param {string} name The name of the custom event.
5
+ * @param {string} properties The attributes of the POI such as `name`, `address`, `zipCode` etc.
6
+ */
7
+ declare class MarketingCloud {
8
+ Name: string;
9
+ Properties: string;
10
+ constructor(name: string, properties: string);
11
+ /**
12
+ * Converts json object to an object of type MarketingCloud.
13
+ * @param {Object} json The json representation of MarketingCloud.
14
+ * @returns Object
15
+ * @memberof MarketingCloud
16
+ */
17
+ static jsonToObj(json: any): MarketingCloud;
18
+ }
19
+ //# sourceMappingURL=MarketingCloud.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MarketingCloud.d.ts","sourceRoot":"","sources":["../../../../src/internal/MarketingCloud.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,cAAM,cAAc;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;gBACP,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM;IAI5C;;;;;OAKG;IACH,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,GAAG;CAG3B"}
@@ -0,0 +1,52 @@
1
+ /**
2
+ * A class that represents the POI object.
3
+ * @classdesc A class that represents the POI object.
4
+ * @constructs Poi
5
+ * @param {Object} jsonData A json object representing the POI.
6
+ * @param {string} city The name of the city the POI belongs to.
7
+ * @param {string} idstore A unique identifier for the POI.
8
+ * @param {name} name The name of the POI.
9
+ * @param {number} date The datetime stamp.
10
+ * @param {number} distance The distance between the POI and the user's location.
11
+ * @param {number} duration The duration to travel to the POI from the user's location.
12
+ * @param {number} latitude The latitude of the POI.
13
+ * @param {string} locationid Location id of the POI.
14
+ * @param {number} longitude The longitude of the POI.
15
+ * @param {string} zipcode The zip code of the POI.
16
+ * @param {number} radius The radius of the POI.
17
+ * @param {string} address The address of the POI.
18
+ * @param {string} countrycode The countrycode of the POI.
19
+ * @param {string} tags The tags for the POI.
20
+ * @param {string} types The types of the POI.
21
+ * @param {string} contact The contact for the POI.
22
+ */
23
+ declare class Poi {
24
+ Jsondata: object;
25
+ City: string;
26
+ Idstore: string;
27
+ Name: string;
28
+ Date: number;
29
+ Distance: number;
30
+ Duration: number;
31
+ Latitude: number;
32
+ Locationid: string;
33
+ Longitude: number;
34
+ Zipcode: string;
35
+ Radius: number;
36
+ Countrycode: string;
37
+ Tags: string;
38
+ Types: string;
39
+ Contact: string;
40
+ Address: string;
41
+ userProperties: [string: any];
42
+ constructor(jsondata: object, city: string, idstore: string, name: string, date: number, distance: number, duration: number, latitude: number, locationid: string, longitude: number, zipcode: string, radius: number, address: string, countrycode: string, tags: string, types: string, contact: string, userProperties: [string: any]);
43
+ /**
44
+ * Converts json object to an object of type Poi.
45
+ * @param {Object} json The json representation of the Poi.
46
+ * @returns Object
47
+ * @memberof Poi
48
+ */
49
+ static jsonToObj(json: any): Poi;
50
+ }
51
+ export default Poi;
52
+ //# sourceMappingURL=Poi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Poi.d.ts","sourceRoot":"","sources":["../../../../src/internal/Poi.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,cAAM,GAAG;IACP,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;gBAE5B,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,CAAC,MAAM,EAAE,GAAG,CAAC;IAsB/B;;;;;OAKG;IACH,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,GAAG;CAsB3B;AACD,eAAe,GAAG,CAAC"}
@@ -0,0 +1,35 @@
1
+ /**
2
+ * A class that represents the Region object.
3
+ * @classdesc A class that represents the Region object.
4
+ * @constructs Region
5
+ * @param {number} date The datetime stamp.
6
+ * @param {boolean} didEnter A boolean value indicating whether the region was entered.
7
+ * @param {string} identifier An alphanumeric unique identifier for the region.
8
+ * @param {number} latitude The latitude of the region.
9
+ * @param {number} longitude The longitude of the region.
10
+ * @param {number} radius The radius of the region in meters.
11
+ * @param {boolean} frompositiondetection Determines whether the user's current position is inside the region.
12
+ * @param {string} eventName Describe cause of region event, Entry or Exit.
13
+ * @param {number} spenttime Number of seconds the user spent in region in case of event name Exit.
14
+ */
15
+ declare class Region {
16
+ Date: number;
17
+ Didenter: boolean;
18
+ Identifier: string;
19
+ Latitude: number;
20
+ Longitude: number;
21
+ Radius: number;
22
+ Frompositiondetection: boolean;
23
+ Eventname: string;
24
+ SpentTime: number;
25
+ constructor(date: number, didenter: boolean, identifier: string, latitude: number, longitude: number, radius: number, frompositiondetection: boolean, eventname: string, spenttime: number);
26
+ /**
27
+ * Converts json object to an object of type Region.
28
+ * @param {Object} json The json representation of the region.
29
+ * @returns Object
30
+ * @memberof Region
31
+ */
32
+ static jsonToObj(json: any): Region;
33
+ }
34
+ export default Region;
35
+ //# sourceMappingURL=Region.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Region.d.ts","sourceRoot":"","sources":["../../../../src/internal/Region.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,cAAM,MAAM;IACV,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,qBAAqB,EAAE,OAAO,CAAC;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;gBAEhB,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,OAAO,EACjB,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,EACd,qBAAqB,EAAE,OAAO,EAC9B,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM;IAYnB;;;;;OAKG;IACH,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,GAAG;CAa3B;AACD,eAAe,MAAM,CAAC"}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @classdesc A class that represents the visits object.
3
+ * @constructs Visit
4
+ * @param {number} accuracy The accuracy in meters.
5
+ * @param {number} arrivalDate The datetime stamp for the arrival at the place of visit.
6
+ * @param {number} date Current datetime stamp.
7
+ * @param {number} latitude The latitude of the place of visit.
8
+ * @param {number} longitude The longitude of the plaee of visit.
9
+ */
10
+ declare class Visit {
11
+ Accuracy: number;
12
+ Arrivaldate: number;
13
+ Date: number;
14
+ Departuredate: number;
15
+ Latitude: number;
16
+ Longitude: number;
17
+ constructor(accuracy: number, arrivaldate: number, date: number, departuredate: number, latitude: number, longitude: number);
18
+ /**
19
+ * Converts json object to an object of type Visits.
20
+ * @param {Object} json The json representation of the Visits.
21
+ * @returns Visit
22
+ * @memberof Visit
23
+ */
24
+ static jsonToObj(json: any): Visit;
25
+ }
26
+ //# sourceMappingURL=Visit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Visit.d.ts","sourceRoot":"","sources":["../../../../src/internal/Visit.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,cAAM,KAAK;IACT,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;gBAEhB,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,MAAM,EACZ,aAAa,EAAE,MAAM,EACrB,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM;IASnB;;;;;OAKG;IACH,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,GAAG,GAAG,KAAK;CAUnC"}
@@ -0,0 +1,50 @@
1
+ /**
2
+ * @classdesc A class that represents the Zones of Interest (ZOI) object.
3
+ * @constructs Zoi
4
+ * @param {number} accumulator Represents the number of visits used to build the ZOI (only for calculation of ZOI)
5
+ * @param {number} age Age is used to determine if a ZOI should be deleted by the algorithm (only for calculation of ZOI)
6
+ * @param {number} covariance_det The covariance determinant (only for calculation of ZOI)
7
+ * @param {number} duration The duration of all the accumulated visits of the ZOI
8
+ * @param {number} endtime The exit date of the last ZOI visit
9
+ * @param {string[]} idvisits The list of id visits included in this ZOI
10
+ * @param {number} latmean The latitude of the center of the ZOI
11
+ * @param {number} lngmean The longitude of the center of the ZOI
12
+ * @param {string} period The classification of the period (HOME, WORK, OTHER or NO QUALIFIER)
13
+ * @param {number} prior_probability Estimation of probability (only for calculation of ZOI)
14
+ * @param {number} starttime The entry date for the first ZOI visit
15
+ * @param {number} weekly_density The weekly density of the ZOI visit (only for classification of ZOI)
16
+ * @param {string} wktpolygon This is the Well-known text representation of geometry of the ZOI polygon.
17
+ * @param {number} x00covariance_matrix_inverse The covariance of a cluster (only for calculation of ZOI)
18
+ * @param {number} x01covariance_matrix_inverse The covariance of a cluster (only for calculation of ZOI)
19
+ * @param {number} x10covariance_matrix_inverse The covariance of a cluster (only for calculation of ZOI)
20
+ * @param {number} x11covariance_matrix_inverse The covariance of a cluster (only for calculation of ZOI)
21
+
22
+ */
23
+ declare class Zoi {
24
+ Accumulator: number;
25
+ Age: number;
26
+ Covariance_Det: number;
27
+ Duration: number;
28
+ Endtime: number;
29
+ Idvisits: string[];
30
+ Latmean: number;
31
+ Lngmean: number;
32
+ Period: string;
33
+ Prior_Probability: number;
34
+ Starttime: number;
35
+ Weekly_Density: number;
36
+ X00Covariance_Matrix_Inverse: number;
37
+ X01Covariance_Matrix_Inverse: number;
38
+ X10Covariance_Matrix_Inverse: number;
39
+ X11Covariance_Matrix_Inverse: number;
40
+ Wktpolygon: string;
41
+ constructor(accumulator: number, age: number, covariance_det: number, duration: number, endtime: number, idvisits: string[], latmean: number, lngmean: number, period: string, prior_probability: number, starttime: number, weekly_density: number, wktpolygon: string, x00covariance_matrix_inverse: number, x01covariance_matrix_inverse: number, x10covariance_matrix_inverse: number, x11covariance_matrix_inverse: number);
42
+ /**
43
+ * Converts json object to an object of type Zoi.
44
+ * @param {Object} json The json representation of the Zoi.
45
+ * @returns Object
46
+ * @memberof Zoi
47
+ */
48
+ static jsonToObj(json: any): Zoi;
49
+ }
50
+ //# sourceMappingURL=Zoi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Zoi.d.ts","sourceRoot":"","sources":["../../../../src/internal/Zoi.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,cAAM,GAAG;IACP,WAAW,EAAE,MAAM,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,iBAAiB,EAAE,MAAM,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,4BAA4B,EAAE,MAAM,CAAC;IACrC,4BAA4B,EAAE,MAAM,CAAC;IACrC,4BAA4B,EAAE,MAAM,CAAC;IACrC,4BAA4B,EAAE,MAAM,CAAC;IACrC,UAAU,EAAE,MAAM,CAAC;gBAEjB,WAAW,EAAE,MAAM,EACnB,GAAG,EAAE,MAAM,EACX,cAAc,EAAE,MAAM,EACtB,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAAE,EAClB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,EACd,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,MAAM,EACjB,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,MAAM,EAClB,4BAA4B,EAAE,MAAM,EACpC,4BAA4B,EAAE,MAAM,EACpC,4BAA4B,EAAE,MAAM,EACpC,4BAA4B,EAAE,MAAM;IAqBtC;;;;;OAKG;IACH,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,GAAG;CAqB3B"}
@@ -0,0 +1,3 @@
1
+ declare let PluginGeofencing: any;
2
+ export default PluginGeofencing;
3
+ //# sourceMappingURL=nativeInterface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nativeInterface.d.ts","sourceRoot":"","sources":["../../../../src/internal/nativeInterface.tsx"],"names":[],"mappings":"AACA,QAAA,IAAI,gBAAgB,KAAiC,CAAC;AAMtD,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Geofence region types
3
+ */
4
+ export type RegionType = 'circle' | 'isochrone';
5
+ /**
6
+ * Location of custom profile to fetch
7
+ */
8
+ export type ProfileSource = 'local' | 'external';
9
+ /**
10
+ * GeofenceRegion structure
11
+ */
12
+ export interface GeofenceRegion {
13
+ regionId: string;
14
+ lat: number;
15
+ lng: number;
16
+ radius: number;
17
+ type: RegionType;
18
+ }
19
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/internal/types.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,WAAW,CAAC;AAEhD;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,UAAU,CAAC;AAEjD;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,UAAU,CAAC;CAClB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@woosmap/react-native-plugin-geofencing",
3
- "version":"0.6.0-beta.2",
3
+ "version":"0.6.0",
4
4
  "description": "This react-native plugin extends the functionality offered by the Woosmap Geofencing Mobile SDKs. Find more about the Woosmap Geofencing SDK",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",