@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,38 +0,0 @@
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
- class Region {
16
- constructor(date, didenter, identifier, latitude, longitude, radius, frompositiondetection, eventname, spenttime) {
17
- this.Date = date;
18
- this.Didenter = didenter;
19
- this.Identifier = identifier;
20
- this.Latitude = latitude;
21
- this.Longitude = longitude;
22
- this.Radius = radius;
23
- this.Frompositiondetection = frompositiondetection;
24
- this.Eventname = eventname;
25
- this.SpentTime = spenttime;
26
- }
27
- /**
28
- * Converts json object to an object of type Region.
29
- * @param {Object} json The json representation of the region.
30
- * @returns Object
31
- * @memberof Region
32
- */
33
- static jsonToObj(json) {
34
- return new Region(json.date, json.didenter, json.identifier, json.latitude, json.longitude, json.radius, json.frompositiondetection, json.eventname, json.spenttime);
35
- }
36
- }
37
- export default Region;
38
- //# 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"],"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;AACA,eAAeV,MAAM","ignoreList":[]}
@@ -1,30 +0,0 @@
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
- class Visit {
11
- constructor(accuracy, arrivaldate, date, departuredate, latitude, longitude) {
12
- this.Accuracy = accuracy;
13
- this.Arrivaldate = arrivaldate;
14
- this.Date = date;
15
- this.Departuredate = departuredate;
16
- this.Latitude = latitude;
17
- this.Longitude = longitude;
18
- }
19
- /**
20
- * Converts json object to an object of type Visits.
21
- * @param {Object} json The json representation of the Visits.
22
- * @returns Visit
23
- * @memberof Visit
24
- */
25
- static jsonToObj(json) {
26
- return new Visit(json.accuracy, json.arrivaldate, json.date, json.departuredate, json.latitude, json.longitude);
27
- }
28
- }
29
- module.exports = Visit;
30
- //# 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,55 +0,0 @@
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
- class Zoi {
24
- 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) {
25
- this.Accumulator = accumulator;
26
- this.Age = age;
27
- this.Covariance_Det = covariance_det;
28
- this.Duration = duration;
29
- this.Endtime = endtime;
30
- this.Idvisits = idvisits;
31
- this.Latmean = latmean;
32
- this.Lngmean = lngmean;
33
- this.Period = period;
34
- this.Prior_Probability = prior_probability;
35
- this.Starttime = starttime;
36
- this.Weekly_Density = weekly_density;
37
- this.Covariance_Det = covariance_det;
38
- this.Wktpolygon = wktpolygon;
39
- this.X00Covariance_Matrix_Inverse = x00covariance_matrix_inverse;
40
- this.X01Covariance_Matrix_Inverse = x01covariance_matrix_inverse;
41
- this.X10Covariance_Matrix_Inverse = x10covariance_matrix_inverse;
42
- this.X11Covariance_Matrix_Inverse = x11covariance_matrix_inverse;
43
- }
44
- /**
45
- * Converts json object to an object of type Zoi.
46
- * @param {Object} json The json representation of the Zoi.
47
- * @returns Object
48
- * @memberof Zoi
49
- */
50
- static jsonToObj(json) {
51
- 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);
52
- }
53
- }
54
- module.exports = Zoi;
55
- //# 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,7 +0,0 @@
1
- import { NativeModules } from 'react-native';
2
- let PluginGeofencing = NativeModules.PluginGeofencing;
3
- if (!PluginGeofencing) {
4
- throw new Error('NativeModules.PluginGeofencing is undefined');
5
- }
6
- export default PluginGeofencing;
7
- //# sourceMappingURL=nativeInterface.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["NativeModules","PluginGeofencing","Error"],"sourceRoot":"../../../src","sources":["internal/nativeInterface.tsx"],"mappings":"AAAA,SAASA,aAAa,QAAQ,cAAc;AAC5C,IAAIC,gBAAgB,GAAGD,aAAa,CAACC,gBAAgB;AAErD,IAAI,CAACA,gBAAgB,EAAE;EACrB,MAAM,IAAIC,KAAK,CAAC,6CAA6C,CAAC;AAChE;AAEA,eAAeD,gBAAgB","ignoreList":[]}
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../src","sources":["internal/types.tsx"],"mappings":"","ignoreList":[]}
@@ -1,191 +0,0 @@
1
- import Location from './internal/Location';
2
- import Region from './internal/Region';
3
- import Poi from './internal/Poi';
4
- import IndoorBeacon from './internal/IndoorBeacon';
5
- import type { GeofenceRegion, RegionType, ProfileSource } from './internal/types';
6
- /**
7
- * Initializes the Woosmap object
8
- * @param arg0 A JSON object with Woosmap Key (optional) and tracking profile (`liveTracking`,`passiveTracking`,`visitsTracking`).
9
- * @returns promise:success - A callback function that will be called on success.
10
- error - A callback function that will be called on error.
11
- */
12
- declare function initialize(arg0?: any): Promise<string>;
13
- /**
14
- * A method that sets Woosmap private API key
15
- * @param apiKey new API key.
16
- * @returns promise:success - A callback function that will be called on success.
17
- error - A callback function that will be called on error.
18
- */
19
- declare function setWoosmapApiKey(apiKey: string): Promise<string>;
20
- /**
21
- * A method to start tracking the user's location.
22
- * @param trackingProfile The configuration profile to use. Values could be anyone of the following: liveTracking, passiveTracking and visitsTracking.
23
- * @returns promise:success - A callback function that will be called on success.
24
- error - A callback function that will be called on error.
25
- */
26
- declare function startTracking(trackingProfile: string): Promise<string>;
27
- /**
28
- * Stops tracking the user's location.
29
- * @returns promise:success - A callback function that will be called on success.
30
- error - A callback function that will be called on error.
31
- */
32
- declare function stopTracking(): Promise<string>;
33
- /**
34
- * A method to request the required permissions to collect locations.
35
- * @param background - A boolean value indicating whether the permissions to request is for background or foreground permission.
36
- * @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'.
37
- */
38
- declare function requestPermissions(background?: boolean): Promise<string>;
39
- /**
40
- * A method to request the required permissions to collect locations.
41
- * @returns A callback that will be called on successful authorization by the app. A callback that will be called when the app denies permission.
42
- * The plugin will return an object with either one of the messages - BACKGROUND_LOCATION_DENIED, GRANTED, DENIED
43
- */
44
- declare function requestBLEPermissions(): Promise<string>;
45
- /**
46
- * A method to check if the app has granted required permissions to track location.
47
- * @returns A callback that will be called with the following status - GRANTED_BACKGROUND, GRANTED_FOREGROUND, DENIED
48
- */
49
- declare function getPermissionsStatus(): Promise<string>;
50
- /**
51
- * A method to check if the app has granted required permissions to track location.
52
- * @returns A callback that will be called with the following status - BACKGROUND_LOCATION_DENIED, GRANTED, DENIED
53
- */
54
- declare function getBLEPermissionsStatus(): Promise<string>;
55
- /**
56
- * Method will
57
- invoke callback and pass a location object as a parameter. Method will return a watchId . This id can be used to remove a callback.
58
- * @param success new location found callback
59
- * @param error error status callback
60
- * @returns watchid
61
- */
62
- declare function watchLocation(success: (result: Location) => any, error?: any): Promise<string>;
63
- /**
64
- * A method to stop tracking location for a specified watch. If watchId is null or undefined the plugin will clear all watches.
65
- * @param watchID Reference ID.
66
- * @returns return promise with same id back in case of success otherwise error info
67
- */
68
- declare function clearLocationWatch(watchID?: string): Promise<string>;
69
- /**
70
- * A method to to track Regions. Method will invoke a callback with Region object. Method will return
71
- a watch id which can be used later to remove the callback.
72
- * @param success new location found callback
73
- * @param error error status callback
74
- * @returns watchid
75
- */
76
- declare function watchRegions(success: (result: Region) => any, error?: any): Promise<string>;
77
- /**
78
- * A method to clear the specified watch tracing the regions. If the watchId is null or undefined then it will clear all the watches tracking the regions.
79
- * @param watchID Reference ID.
80
- * @returns return promise with same id back in case of success otherwise error info
81
- */
82
- declare function clearRegionsWatch(watchID: string): Promise<string>;
83
- /**
84
- * Sets Sales Force Marketing Cloud (SFMC) credentials
85
- * @param arg0 A JSON object with SFMC credentials. Keys authenticationBaseURI, restBaseURI, client_id, client_secret and contactKey are required.
86
- * @returns promise with A callback that will be called on success or error.
87
- */
88
- declare function setSFMCCredentials(arg0: Object): Promise<string>;
89
- /**
90
- * When you create a geofence around a POI, manually define the radius value (100.0) or choose the user_properties subfield that corresponds to radius value of the geofence ("radiusPOI").
91
- * @param radius can be integer or string.
92
- * @returns promise with A callback that will be called on success or error.
93
- */
94
- declare function setPoiRadius(radius: string): Promise<string>;
95
- /**
96
- * Adds a custom region that you want to monitor.
97
- * @param region A GeofenceRegion object with latitude, longitude, radius and type.
98
- * @returns promise with A callback that will be called on success or error.
99
- */
100
- declare function addRegion(region: GeofenceRegion): Promise<string>;
101
- /**
102
- * Retrieve saved region info
103
- * @param regionID If it pass return info for given region or return all region info
104
- * @returns promise with A callback that will be called on success or error.
105
- */
106
- declare function getRegions(regionID?: string): Promise<Region[]>;
107
- /**
108
- * Retrieve saved location info
109
- * @param locationID - Optional in case of location id pass it return only that location info
110
- * @returns promise with A callback that will be called on success or error.
111
- */
112
- declare function getLocations(locationID?: string): Promise<Location[]>;
113
- /**
114
- * Retrieve saved POI info
115
- * @param poiID - Optional in case of poi id (LocationID or StoreID) pass it return only that POI info
116
- * @returns promise with A callback that will be called on success or error.
117
- */
118
- declare function getPois(poiID?: string): Promise<Poi[]>;
119
- /**
120
- * Remove saved region info
121
- * @param regionID If it pass remove info for given region or removes all region info
122
- * @returns promise with A callback that will be called on success or error.
123
- */
124
- declare function removeRegions(regionID?: string): Promise<string>;
125
- /**
126
- * Remove saved location info
127
- * @returns promise with A callback that will be called on success or error.
128
- */
129
- declare function removeLocations(): Promise<string>;
130
- /**
131
- * Remove saved POI info
132
- * @returns promise with A callback that will be called on success or error.
133
- */
134
- declare function removePois(): Promise<string>;
135
- /**
136
- * if preset tracking profiles don’t fit with your use cases, you can build your own profile and uses the startCustomTracking() method.
137
- * There are two way to host the json file:
138
- * - included in the client application (local)
139
- * - hosted externally in a file folder in your information system (external)
140
- * @param sourceType local/external
141
- * @param source location of profile to be fetch
142
- * @returns promise with A callback that will be called on success or error.
143
- */
144
- declare function startCustomTracking(sourceType: ProfileSource, source: string): Promise<string>;
145
- /**
146
- * Retrieve Beacon info for venue
147
- * @param venueID - Optional venue id
148
- * @param ref - Optional beacon id return by region event
149
- * @returns promise with A callback that will be called on success or error.
150
- */
151
- declare function getIndoorBeacons(venueID?: string, ref?: string): Promise<IndoorBeacon[]>;
152
- /**
153
- * Remove saved POI info
154
- * @returns promise with A callback that will be called on success or error.
155
- */
156
- declare function removeIndoorBeacons(): Promise<string>;
157
- /**
158
- * Remove saved POI info
159
- * @returns promise with A callback that will be called on success or error.
160
- */
161
- declare function refreshPois(): Promise<string>;
162
- export type { RegionType, GeofenceRegion, Region, Location, Poi, ProfileSource, IndoorBeacon, };
163
- declare const WoosmapGeofencing: {
164
- initialize: typeof initialize;
165
- setWoosmapApiKey: typeof setWoosmapApiKey;
166
- startTracking: typeof startTracking;
167
- requestPermissions: typeof requestPermissions;
168
- requestBLEPermissions: typeof requestBLEPermissions;
169
- getPermissionsStatus: typeof getPermissionsStatus;
170
- getBLEPermissionsStatus: typeof getBLEPermissionsStatus;
171
- stopTracking: typeof stopTracking;
172
- watchLocation: typeof watchLocation;
173
- clearLocationWatch: typeof clearLocationWatch;
174
- watchRegions: typeof watchRegions;
175
- clearRegionsWatch: typeof clearRegionsWatch;
176
- setSFMCCredentials: typeof setSFMCCredentials;
177
- setPoiRadius: typeof setPoiRadius;
178
- addRegion: typeof addRegion;
179
- getRegions: typeof getRegions;
180
- removeRegions: typeof removeRegions;
181
- getLocations: typeof getLocations;
182
- removeLocations: typeof removeLocations;
183
- getPois: typeof getPois;
184
- removePois: typeof removePois;
185
- startCustomTracking: typeof startCustomTracking;
186
- getIndoorBeacons: typeof getIndoorBeacons;
187
- removeIndoorBeacons: typeof removeIndoorBeacons;
188
- refreshPois: typeof refreshPois;
189
- };
190
- export default WoosmapGeofencing;
191
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"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"}
@@ -1,19 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,50 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,27 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,19 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,52 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,35 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,26 +0,0 @@
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
@@ -1 +0,0 @@
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"}