@woosmap/react-native-plugin-geofencing 0.4.5-beta.1 → 0.4.5-beta.3

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 (76) hide show
  1. package/android/build.gradle +80 -53
  2. package/android/gradle.properties +5 -0
  3. package/android/src/main/AndroidManifest.xml +0 -1
  4. package/android/src/main/AndroidManifestNew.xml +2 -0
  5. package/android/src/main/java/com/reactnativeplugingeofencing/AirshipPushHelper.java +0 -1
  6. package/android/src/main/java/com/reactnativeplugingeofencing/PluginGeofencingModule.java +23 -25
  7. package/android/src/main/java/com/reactnativeplugingeofencing/PluginGeofencingPackage.java +12 -12
  8. package/android/src/main/java/com/reactnativeplugingeofencing/WoosmapMessageAndKey.java +0 -10
  9. package/android/src/main/java/com/reactnativeplugingeofencing/WoosmapTask.java +2 -2
  10. package/ios/PluginGeofencing-Bridging-Header.h +0 -1
  11. package/ios/{PluginGeofencing.m → PluginGeofencing.mm} +6 -1
  12. package/ios/PluginGeofencing.swift +2 -2
  13. package/lib/commonjs/index.js.map +1 -1
  14. package/lib/commonjs/internal/Airship.js +0 -5
  15. package/lib/commonjs/internal/Airship.js.map +1 -1
  16. package/lib/commonjs/internal/IndoorBeacon.js +18 -21
  17. package/lib/commonjs/internal/IndoorBeacon.js.map +1 -1
  18. package/lib/commonjs/internal/Location.js +0 -8
  19. package/lib/commonjs/internal/Location.js.map +1 -1
  20. package/lib/commonjs/internal/MarketingCloud.js +0 -5
  21. package/lib/commonjs/internal/MarketingCloud.js.map +1 -1
  22. package/lib/commonjs/internal/Poi.js +0 -21
  23. package/lib/commonjs/internal/Poi.js.map +1 -1
  24. package/lib/commonjs/internal/Region.js +0 -12
  25. package/lib/commonjs/internal/Region.js.map +1 -1
  26. package/lib/commonjs/internal/Visit.js +0 -9
  27. package/lib/commonjs/internal/Visit.js.map +1 -1
  28. package/lib/commonjs/internal/Zoi.js +0 -20
  29. package/lib/commonjs/internal/Zoi.js.map +1 -1
  30. package/lib/commonjs/internal/nativeInterface.js.map +1 -1
  31. package/lib/commonjs/internal/types.js.map +1 -1
  32. package/lib/module/index.js.map +1 -1
  33. package/lib/module/internal/Airship.js +0 -5
  34. package/lib/module/internal/Airship.js.map +1 -1
  35. package/lib/module/internal/IndoorBeacon.js +18 -21
  36. package/lib/module/internal/IndoorBeacon.js.map +1 -1
  37. package/lib/module/internal/Location.js +0 -8
  38. package/lib/module/internal/Location.js.map +1 -1
  39. package/lib/module/internal/MarketingCloud.js +0 -5
  40. package/lib/module/internal/MarketingCloud.js.map +1 -1
  41. package/lib/module/internal/Poi.js +0 -21
  42. package/lib/module/internal/Poi.js.map +1 -1
  43. package/lib/module/internal/Region.js +0 -12
  44. package/lib/module/internal/Region.js.map +1 -1
  45. package/lib/module/internal/Visit.js +0 -9
  46. package/lib/module/internal/Visit.js.map +1 -1
  47. package/lib/module/internal/Zoi.js +0 -20
  48. package/lib/module/internal/Zoi.js.map +1 -1
  49. package/lib/module/internal/nativeInterface.js.map +1 -1
  50. package/lib/module/internal/types.js.map +1 -1
  51. package/lib/typescript/{index.d.ts → src/index.d.ts} +1 -0
  52. package/lib/typescript/src/index.d.ts.map +1 -0
  53. package/lib/typescript/{internal → src/internal}/Airship.d.ts +1 -0
  54. package/lib/typescript/src/internal/Airship.d.ts.map +1 -0
  55. package/lib/typescript/{internal → src/internal}/IndoorBeacon.d.ts +1 -0
  56. package/lib/typescript/src/internal/IndoorBeacon.d.ts.map +1 -0
  57. package/lib/typescript/{internal → src/internal}/Location.d.ts +1 -0
  58. package/lib/typescript/src/internal/Location.d.ts.map +1 -0
  59. package/lib/typescript/{internal → src/internal}/MarketingCloud.d.ts +1 -0
  60. package/lib/typescript/src/internal/MarketingCloud.d.ts.map +1 -0
  61. package/lib/typescript/{internal → src/internal}/Poi.d.ts +1 -0
  62. package/lib/typescript/src/internal/Poi.d.ts.map +1 -0
  63. package/lib/typescript/{internal → src/internal}/Region.d.ts +1 -0
  64. package/lib/typescript/src/internal/Region.d.ts.map +1 -0
  65. package/lib/typescript/{internal → src/internal}/Visit.d.ts +1 -0
  66. package/lib/typescript/src/internal/Visit.d.ts.map +1 -0
  67. package/lib/typescript/{internal → src/internal}/Zoi.d.ts +1 -0
  68. package/lib/typescript/src/internal/Zoi.d.ts.map +1 -0
  69. package/lib/typescript/{internal → src/internal}/nativeInterface.d.ts +1 -0
  70. package/lib/typescript/src/internal/nativeInterface.d.ts.map +1 -0
  71. package/lib/typescript/{internal → src/internal}/types.d.ts +1 -0
  72. package/lib/typescript/src/internal/types.d.ts.map +1 -0
  73. package/package.json +56 -34
  74. package/react-native-plugin-geofencing.podspec +24 -2
  75. package/ios/PluginGeofencing.xcodeproj/project.pbxproj +0 -293
  76. package/lib/typescript/__tests__/index.test.d.ts +0 -0
@@ -4,9 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
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(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
9
- function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
10
7
  /**
11
8
  * A class that represents the POI object.
12
9
  * @classdesc A class that represents the POI object.
@@ -31,24 +28,6 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
31
28
  */
32
29
  class Poi {
33
30
  constructor(jsondata, city, idstore, name, date, distance, duration, latitude, locationid, longitude, zipcode, radius, address, countrycode, tags, types, contact, userProperties) {
34
- _defineProperty(this, "Jsondata", void 0);
35
- _defineProperty(this, "City", void 0);
36
- _defineProperty(this, "Idstore", void 0);
37
- _defineProperty(this, "Name", void 0);
38
- _defineProperty(this, "Date", void 0);
39
- _defineProperty(this, "Distance", void 0);
40
- _defineProperty(this, "Duration", void 0);
41
- _defineProperty(this, "Latitude", void 0);
42
- _defineProperty(this, "Locationid", void 0);
43
- _defineProperty(this, "Longitude", void 0);
44
- _defineProperty(this, "Zipcode", void 0);
45
- _defineProperty(this, "Radius", void 0);
46
- _defineProperty(this, "Countrycode", void 0);
47
- _defineProperty(this, "Tags", void 0);
48
- _defineProperty(this, "Types", void 0);
49
- _defineProperty(this, "Contact", void 0);
50
- _defineProperty(this, "Address", void 0);
51
- _defineProperty(this, "userProperties", void 0);
52
31
  this.Jsondata = jsondata;
53
32
  this.City = city;
54
33
  this.Idstore = idstore;
@@ -1 +1 @@
1
- {"version":3,"names":["Poi","constructor","jsondata","city","idstore","name","date","distance","duration","latitude","locationid","longitude","zipcode","radius","address","countrycode","tags","types","contact","userProperties","_defineProperty","Jsondata","City","Idstore","Name","Date","Distance","Duration","Latitude","Locationid","Longitude","Zipcode","Radius","Countrycode","Tags","Types","Contact","Address","jsonToObj","json","_default","exports","default"],"sources":["Poi.tsx"],"sourcesContent":["/**\n * A class that represents the POI object.\n * @classdesc A class that represents the POI object.\n * @constructs Poi\n * @param {Object} jsonData A json object representing the POI.\n * @param {string} city The name of the city the POI belongs to.\n * @param {string} idstore A unique identifier for the POI.\n * @param {name} name The name of the POI.\n * @param {number} date The datetime stamp.\n * @param {number} distance The distance between the POI and the user's location.\n * @param {number} duration The duration to travel to the POI from the user's location.\n * @param {number} latitude The latitude of the POI.\n * @param {string} locationid Location id of the POI.\n * @param {number} longitude The longitude of the POI.\n * @param {string} zipcode The zip code of the POI.\n * @param {number} radius The radius of the POI.\n * @param {string} address The address of the POI.\n * @param {string} countrycode The countrycode of the POI.\n * @param {string} tags The tags for the POI.\n * @param {string} types The types of the POI.\n * @param {string} contact The contact for the POI.\n */\nclass Poi {\n Jsondata: object;\n City: string;\n Idstore: string;\n Name: string;\n Date: number;\n Distance: number;\n Duration: number;\n Latitude: number;\n Locationid: string;\n Longitude: number;\n Zipcode: string;\n Radius: number;\n Countrycode: string;\n Tags: string;\n Types: string;\n Contact: string;\n Address: string;\n userProperties: [string: any];\n constructor(\n jsondata: object,\n city: string,\n idstore: string,\n name: string,\n date: number,\n distance: number,\n duration: number,\n latitude: number,\n locationid: string,\n longitude: number,\n zipcode: string,\n radius: number,\n address: string,\n countrycode: string,\n tags: string,\n types: string,\n contact: string,\n userProperties: [string: any]\n ) {\n this.Jsondata = jsondata;\n this.City = city;\n this.Idstore = idstore;\n this.Name = name;\n this.Date = date;\n this.Distance = distance;\n this.Duration = duration;\n this.Latitude = latitude;\n this.Locationid = locationid;\n this.Longitude = longitude;\n this.Zipcode = zipcode;\n this.Radius = radius;\n this.Idstore = idstore;\n this.Countrycode = countrycode;\n this.Tags = tags;\n this.Types = types;\n this.Contact = contact;\n this.Address = address;\n this.userProperties = userProperties;\n }\n /**\n * Converts json object to an object of type Poi.\n * @param {Object} json The json representation of the Poi.\n * @returns Object\n * @memberof Poi\n */\n static jsonToObj(json: any) {\n return new Poi(\n json.jsondata,\n json.city,\n json.idstore,\n json.name,\n json.date,\n json.distance,\n json.duration,\n json.latitude,\n json.locationid,\n json.longitude,\n json.zipcode,\n json.radius,\n json.address,\n json.countrycode,\n json.tags,\n json.types,\n json.contact,\n json.userProperties\n );\n }\n}\nexport default Poi;\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;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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,CAAClC,IAAI,EACTkC,IAAI,CAACjC,IAAI,EACTiC,IAAI,CAAChC,QAAQ,EACbgC,IAAI,CAAC/B,QAAQ,EACb+B,IAAI,CAAC9B,QAAQ,EACb8B,IAAI,CAAC7B,UAAU,EACf6B,IAAI,CAAC5B,SAAS,EACd4B,IAAI,CAAC3B,OAAO,EACZ2B,IAAI,CAAC1B,MAAM,EACX0B,IAAI,CAACzB,OAAO,EACZyB,IAAI,CAACxB,WAAW,EAChBwB,IAAI,CAACvB,IAAI,EACTuB,IAAI,CAACtB,KAAK,EACVsB,IAAI,CAACrB,OAAO,EACZqB,IAAI,CAACpB,cACP,CAAC;EACH;AACF;AAAC,IAAAqB,QAAA,GAAAC,OAAA,CAAAC,OAAA,GACc1C,GAAG"}
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,GAAGl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B,cACP,CAAC;EACH;AACF;AAAC,IAAAoB,QAAA,GAAAC,OAAA,CAAAC,OAAA,GACczC,GAAG"}
@@ -4,9 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
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(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
9
- function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
10
7
  /**
11
8
  * A class that represents the Region object.
12
9
  * @classdesc A class that represents the Region object.
@@ -23,15 +20,6 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
23
20
  */
24
21
  class Region {
25
22
  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
23
  this.Date = date;
36
24
  this.Didenter = didenter;
37
25
  this.Identifier = identifier;
@@ -1 +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,GAAAC,OAAA,CAAAC,OAAA,GACczB,MAAM"}
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"}
@@ -1,8 +1,5 @@
1
1
  "use strict";
2
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(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
5
- function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
6
3
  /**
7
4
  * @classdesc A class that represents the visits object.
8
5
  * @constructs Visit
@@ -14,12 +11,6 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
14
11
  */
15
12
  class Visit {
16
13
  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
14
  this.Accuracy = accuracy;
24
15
  this.Arrivaldate = arrivaldate;
25
16
  this.Date = date;
@@ -1 +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"}
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"}
@@ -1,8 +1,5 @@
1
1
  "use strict";
2
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(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
5
- function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
6
3
  /**
7
4
  * @classdesc A class that represents the Zones of Interest (ZOI) object.
8
5
  * @constructs Zoi
@@ -27,23 +24,6 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
27
24
  */
28
25
  class Zoi {
29
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) {
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
27
  this.Accumulator = accumulator;
48
28
  this.Age = age;
49
29
  this.Covariance_Det = covariance_det;
@@ -1 +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"}
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"}
@@ -1 +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,GAAAC,OAAA,CAAAC,OAAA,GAEcL,gBAAgB"}
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"}
@@ -1 +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":""}
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["internal/types.tsx"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"names":["NativeEventEmitter","Platform","uuid","PluginGeofencing","Location","Region","Poi","IndoorBeacon","eventEmitter","subscriptionsLocation","subscriptionsRegion","initialize","arg0","setWoosmapApiKey","apiKey","startTracking","trackingProfile","stopTracking","requestPermissions","background","requestBLEPermissions","OS","Promise","resolve","getPermissionsStatus","getBLEPermissionsStatus","watchLocation","success","error","watchID","v1","toString","successCallback","result","jsonToObj","addListener","clearLocationWatch","removeAllListeners","clearAllLocationWatch","saved","remove","arg1","undefined","watchRegions","clearRegionsWatch","clearAllRegionsWatch","setSFMCCredentials","setPoiRadius","radius","addRegion","region","getRegions","regionID","getAllRegions","then","formatted","forEach","item","push","catch","e","reject","getLocations","locationID","getAllLocations","getLocation","getPois","poiID","getAllPois","getPoi","removeRegions","removeAllRegions","removeRegion","removeLocations","removeAllLocations","removePois","removeAllPois","startCustomTracking","sourceType","source","getIndoorBeacons","venueID","ref","getAllIndoorBeacons","identifier","removeIndoorBeacons","WoosmapGeofencing"],"sources":["index.tsx"],"sourcesContent":["import { NativeEventEmitter, Platform } from 'react-native';\nimport uuid from 'react-native-uuid';\nimport PluginGeofencing from './internal/nativeInterface';\nimport Location from './internal/Location';\nimport Region from './internal/Region';\nimport Poi from './internal/Poi';\nimport IndoorBeacon from './internal/IndoorBeacon';\nimport type {\n GeofenceRegion,\n RegionType,\n ProfileSource,\n} from './internal/types';\n\nconst eventEmitter = new NativeEventEmitter(PluginGeofencing);\n\nlet subscriptionsLocation: any = {};\nlet subscriptionsRegion: any = {};\n/**\n * Initializes the Woosmap object\n * @param arg0 A JSON object with Woosmap Key (optional) and tracking profile (`liveTracking`,`passiveTracking`,`visitsTracking`).\n * @returns promise:success - A callback function that will be called on success.\n error - A callback function that will be called on error.\n */\nfunction initialize(arg0?: any): Promise<string> {\n if (arg0 == null) {\n arg0 = {};\n }\n return PluginGeofencing.initialize(arg0);\n}\n\n/**\n * A method that sets Woosmap private API key\n * @param apiKey new API key.\n * @returns promise:success - A callback function that will be called on success.\n error - A callback function that will be called on error.\n */\nfunction setWoosmapApiKey(apiKey: string): Promise<string> {\n return PluginGeofencing.setWoosmapApiKey([apiKey]);\n}\n\n/**\n * A method to start tracking the user's location.\n * @param trackingProfile The configuration profile to use. Values could be anyone of the following: liveTracking, passiveTracking and visitsTracking.\n * @returns promise:success - A callback function that will be called on success.\n error - A callback function that will be called on error.\n */\nfunction startTracking(trackingProfile: string): Promise<string> {\n return PluginGeofencing.startTracking([trackingProfile]);\n}\n\n/**\n * Stops tracking the user's location.\n * @returns promise:success - A callback function that will be called on success.\n error - A callback function that will be called on error.\n */\nfunction stopTracking(): Promise<string> {\n return PluginGeofencing.stopTracking();\n}\n\n/**\n * A method to request the required permissions to collect locations.\n * @param background - A boolean value indicating whether the permissions to request is for background or foreground permission.\n * @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'.\n */\nfunction requestPermissions(background?: boolean): Promise<string> {\n if (background == null) {\n background = false;\n }\n return PluginGeofencing.requestPermissions([background]);\n}\n\n/**\n * A method to request the required permissions to collect locations.\n * @returns A callback that will be called on successful authorization by the app. A callback that will be called when the app denies permission.\n * The plugin will return an object with either one of the messages - BACKGROUND_LOCATION_DENIED, GRANTED, DENIED\n */\nfunction requestBLEPermissions(): Promise<string> {\n if (Platform.OS === 'android') {\n return PluginGeofencing.requestBLEPermissions();\n } else {\n return new Promise((resolve) => {\n resolve('GRANTED');\n });\n }\n}\n\n/**\n * A method to check if the app has granted required permissions to track location.\n * @returns A callback that will be called with the following status - GRANTED_BACKGROUND, GRANTED_FOREGROUND, DENIED\n */\nfunction getPermissionsStatus(): Promise<string> {\n return PluginGeofencing.getPermissionsStatus();\n}\n\n/**\n * A method to check if the app has granted required permissions to track location.\n * @returns A callback that will be called with the following status - BACKGROUND_LOCATION_DENIED, GRANTED, DENIED\n */\nfunction getBLEPermissionsStatus(): Promise<string> {\n if (Platform.OS == 'android') {\n return PluginGeofencing.getBLEPermissionsStatus();\n } else {\n return new Promise((resolve) => {\n resolve('GRANTED');\n });\n }\n}\n\n/**\n * Method will\ninvoke callback and pass a location object as a parameter. Method will return a watchId . This id can be used to remove a callback.\n * @param success new location found callback\n * @param error error status callback\n * @returns watchid\n */\nfunction watchLocation(\n success: (result: Location) => any,\n error?: any\n): Promise<string> {\n const watchID = uuid.v1().toString();\n\n const successCallback = (result: any) => {\n success(Location.jsonToObj(result));\n };\n\n subscriptionsLocation[watchID] = [\n eventEmitter.addListener('geolocationDidChange', successCallback),\n error ? eventEmitter.addListener('geolocationError', error) : null,\n ];\n return PluginGeofencing.watchLocation(watchID);\n}\n\n/**\n * A method to stop tracking location for a specified watch. If watchId is null or undefined the plugin will clear all watches.\n * @param watchID Reference ID.\n * @returns return promise with same id back in case of success otherwise error info\n */\nfunction clearLocationWatch(watchID?: string): Promise<string> {\n if (watchID == null) {\n eventEmitter.removeAllListeners('geolocationDidChange');\n eventEmitter.removeAllListeners('geolocationError');\n subscriptionsLocation = {};\n return PluginGeofencing.clearAllLocationWatch();\n } else {\n const saved = subscriptionsLocation[watchID];\n if (saved) {\n const arg0 = saved[0];\n arg0.remove();\n //eventEmitter.removeListener('geolocationDidChange', arg0);\n const arg1 = saved[1];\n if (arg1) {\n arg1.remove();\n //eventEmitter.removeListener('geolocationError', arg1);\n }\n subscriptionsLocation[watchID] = undefined;\n }\n return PluginGeofencing.clearLocationWatch(watchID);\n }\n}\n\n/**\n * A method to to track Regions. Method will invoke a callback with Region object. Method will return\na watch id which can be used later to remove the callback.\n * @param success new location found callback\n * @param error error status callback\n * @returns watchid\n */\nfunction watchRegions(\n success: (result: Region) => any,\n error?: any\n): Promise<string> {\n const watchID = uuid.v1().toString();\n\n const successCallback = (result: any) => {\n success(Region.jsonToObj(result));\n };\n\n subscriptionsRegion[watchID] = [\n eventEmitter.addListener('woosmapgeofenceRegionDidChange', successCallback),\n error\n ? eventEmitter.addListener('woosmapgeofenceRegionError', error)\n : null,\n ];\n return PluginGeofencing.watchRegions(watchID);\n}\n\n/**\n * 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.\n * @param watchID Reference ID.\n * @returns return promise with same id back in case of success otherwise error info\n */\nfunction clearRegionsWatch(watchID: string): Promise<string> {\n if (watchID == null) {\n eventEmitter.removeAllListeners('woosmapgeofenceRegionDidChange');\n eventEmitter.removeAllListeners('woosmapgeofenceRegionError');\n subscriptionsRegion = {};\n return PluginGeofencing.clearAllRegionsWatch();\n } else {\n const saved = subscriptionsRegion[watchID];\n if (saved) {\n const arg0 = saved[0];\n arg0.remove();\n //eventEmitter.removeListener('woosmapgeofenceRegionDidChange', arg0);\n const arg1 = saved[1];\n if (arg1) {\n arg1.remove();\n //eventEmitter.removeListener('woosmapgeofenceRegionError', arg1);\n }\n subscriptionsRegion[watchID] = undefined;\n }\n return PluginGeofencing.clearRegionsWatch(watchID);\n }\n}\n/**\n * Sets Sales Force Marketing Cloud (SFMC) credentials\n * @param arg0 A JSON object with SFMC credentials. Keys authenticationBaseURI, restBaseURI, client_id, client_secret and contactKey are required.\n * @returns promise with A callback that will be called on success or error.\n */\nfunction setSFMCCredentials(arg0: Object): Promise<string> {\n return PluginGeofencing.setSFMCCredentials(arg0);\n}\n\n/**\n * 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\").\n * @param radius can be integer or string.\n * @returns promise with A callback that will be called on success or error.\n */\nfunction setPoiRadius(radius: string): Promise<string> {\n return PluginGeofencing.setPoiRadius(radius);\n}\n/**\n * Adds a custom region that you want to monitor.\n * @param region A GeofenceRegion object with latitude, longitude, radius and type.\n * @returns promise with A callback that will be called on success or error.\n */\n\nfunction addRegion(region: GeofenceRegion): Promise<string> {\n return PluginGeofencing.addRegion(region);\n}\n/**\n * Retrieve saved region info\n * @param regionID If it pass return info for given region or return all region info\n * @returns promise with A callback that will be called on success or error.\n */\nfunction getRegions(regionID?: string): Promise<Region[]> {\n if (regionID == null) {\n return PluginGeofencing.getAllRegions()\n .then((result: any[]) => {\n var formatted: Region[] = [];\n result.forEach((item) => {\n formatted.push(Region.jsonToObj(item));\n });\n return Promise.resolve(formatted);\n })\n .catch((e: any) => {\n return Promise.reject(e);\n });\n } else {\n return PluginGeofencing.getRegions(regionID)\n .then((result: any) => {\n var formatted: Region[] = [];\n formatted.push(Region.jsonToObj(result));\n return Promise.resolve(formatted);\n })\n .catch((e: any) => {\n return Promise.reject(e);\n });\n }\n}\n\n/**\n * Retrieve saved location info\n * @param locationID - Optional in case of location id pass it return only that location info\n * @returns promise with A callback that will be called on success or error.\n */\nfunction getLocations(locationID?: string): Promise<Location[]> {\n if (locationID == null) {\n return PluginGeofencing.getAllLocations()\n .then((result: any[]) => {\n var formatted: Location[] = [];\n result.forEach((item) => {\n formatted.push(Location.jsonToObj(item));\n });\n return Promise.resolve(formatted);\n })\n .catch((e: any) => {\n return Promise.reject(e);\n });\n } else {\n return PluginGeofencing.getLocation(locationID)\n .then((result: any) => {\n var formatted: Location[] = [];\n formatted.push(Location.jsonToObj(result));\n return Promise.resolve(formatted);\n })\n .catch((e: any) => {\n return Promise.reject(e);\n });\n }\n}\n\n/**\n * Retrieve saved POI info\n * @param poiID - Optional in case of poi id (LocationID or StoreID) pass it return only that POI info\n * @returns promise with A callback that will be called on success or error.\n */\nfunction getPois(poiID?: string): Promise<Poi[]> {\n if (poiID == null) {\n return PluginGeofencing.getAllPois()\n .then((result: any[]) => {\n var formatted: Poi[] = [];\n result.forEach((item) => {\n formatted.push(Poi.jsonToObj(item));\n });\n return Promise.resolve(formatted);\n })\n .catch((e: any) => {\n return Promise.reject(e);\n });\n } else {\n return PluginGeofencing.getPoi(poiID)\n .then((result: any) => {\n var formatted: Poi[] = [];\n formatted.push(Poi.jsonToObj(result));\n return Promise.resolve(formatted);\n })\n .catch((e: any) => {\n return Promise.reject(e);\n });\n }\n}\n\n/**\n * Remove saved region info\n * @param regionID If it pass remove info for given region or removes all region info\n * @returns promise with A callback that will be called on success or error.\n */\nfunction removeRegions(regionID?: string): Promise<string> {\n if (regionID == null) {\n return PluginGeofencing.removeAllRegions();\n } else {\n return PluginGeofencing.removeRegion(regionID);\n }\n}\n\n/**\n * Remove saved location info\n * @returns promise with A callback that will be called on success or error.\n */\nfunction removeLocations(): Promise<string> {\n return PluginGeofencing.removeAllLocations();\n}\n\n/**\n * Remove saved POI info\n * @returns promise with A callback that will be called on success or error.\n */\nfunction removePois(): Promise<string> {\n return PluginGeofencing.removeAllPois();\n}\n/**\n * if preset tracking profiles don’t fit with your use cases, you can build your own profile and uses the startCustomTracking() method.\n * There are two way to host the json file:\n * - included in the client application (local)\n * - hosted externally in a file folder in your information system (external)\n * @param sourceType local/external\n * @param source location of profile to be fetch\n * @returns promise with A callback that will be called on success or error.\n */\nfunction startCustomTracking(\n sourceType: ProfileSource,\n source: string\n): Promise<string> {\n return PluginGeofencing.startCustomTracking(sourceType, source);\n}\n\n/**\n * Retrieve Beacon info for venue\n * @param venueID - Optional venue id\n * @param ref - Optional beacon id return by region event\n * @returns promise with A callback that will be called on success or error.\n */\nfunction getIndoorBeacons(\n venueID?: string,\n ref?: string\n): Promise<IndoorBeacon[]> {\n if (venueID == null) {\n return PluginGeofencing.getAllIndoorBeacons()\n .then((result: any[]) => {\n var formatted: IndoorBeacon[] = [];\n result.forEach((item) => {\n if (ref !== undefined) {\n if (item.identifier === ref) {\n formatted.push(IndoorBeacon.jsonToObj(item));\n }\n } else {\n formatted.push(IndoorBeacon.jsonToObj(item));\n }\n });\n return Promise.resolve(formatted);\n })\n .catch((e: any) => {\n return Promise.reject(e);\n });\n } else {\n return PluginGeofencing.getIndoorBeacons(venueID)\n .then((result: any[]) => {\n var formatted: IndoorBeacon[] = [];\n result.forEach((item) => {\n if (ref !== undefined) {\n if (item.identifier === ref) {\n formatted.push(IndoorBeacon.jsonToObj(item));\n }\n } else {\n formatted.push(IndoorBeacon.jsonToObj(item));\n }\n });\n return Promise.resolve(formatted);\n })\n .catch((e: any) => {\n return Promise.reject(e);\n });\n }\n}\n\n/**\n * Remove saved POI info\n * @returns promise with A callback that will be called on success or error.\n */\nfunction removeIndoorBeacons(): Promise<string> {\n return PluginGeofencing.removeIndoorBeacons();\n}\n\nexport type {\n RegionType,\n GeofenceRegion,\n Region,\n Location,\n Poi,\n ProfileSource,\n IndoorBeacon,\n};\n\nconst WoosmapGeofencing = {\n initialize,\n setWoosmapApiKey,\n startTracking,\n requestPermissions,\n requestBLEPermissions,\n getPermissionsStatus,\n getBLEPermissionsStatus,\n stopTracking,\n watchLocation,\n clearLocationWatch,\n watchRegions,\n clearRegionsWatch,\n setSFMCCredentials,\n setPoiRadius,\n addRegion,\n getRegions,\n removeRegions,\n getLocations,\n removeLocations,\n getPois,\n removePois,\n startCustomTracking,\n getIndoorBeacons,\n removeIndoorBeacons,\n};\n\nexport default WoosmapGeofencing;\n"],"mappings":"AAAA,SAASA,kBAAkB,EAAEC,QAAQ,QAAQ,cAAc;AAC3D,OAAOC,IAAI,MAAM,mBAAmB;AACpC,OAAOC,gBAAgB,MAAM,4BAA4B;AACzD,OAAOC,QAAQ,MAAM,qBAAqB;AAC1C,OAAOC,MAAM,MAAM,mBAAmB;AACtC,OAAOC,GAAG,MAAM,gBAAgB;AAChC,OAAOC,YAAY,MAAM,yBAAyB;AAOlD,MAAMC,YAAY,GAAG,IAAIR,kBAAkB,CAACG,gBAAgB,CAAC;AAE7D,IAAIM,qBAA0B,GAAG,CAAC,CAAC;AACnC,IAAIC,mBAAwB,GAAG,CAAC,CAAC;AACjC;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,UAAUA,CAACC,IAAU,EAAmB;EAC/C,IAAIA,IAAI,IAAI,IAAI,EAAE;IAChBA,IAAI,GAAG,CAAC,CAAC;EACX;EACA,OAAOT,gBAAgB,CAACQ,UAAU,CAACC,IAAI,CAAC;AAC1C;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,gBAAgBA,CAACC,MAAc,EAAmB;EACzD,OAAOX,gBAAgB,CAACU,gBAAgB,CAAC,CAACC,MAAM,CAAC,CAAC;AACpD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,aAAaA,CAACC,eAAuB,EAAmB;EAC/D,OAAOb,gBAAgB,CAACY,aAAa,CAAC,CAACC,eAAe,CAAC,CAAC;AAC1D;;AAEA;AACA;AACA;AACA;AACA;AACA,SAASC,YAAYA,CAAA,EAAoB;EACvC,OAAOd,gBAAgB,CAACc,YAAY,CAAC,CAAC;AACxC;;AAEA;AACA;AACA;AACA;AACA;AACA,SAASC,kBAAkBA,CAACC,UAAoB,EAAmB;EACjE,IAAIA,UAAU,IAAI,IAAI,EAAE;IACtBA,UAAU,GAAG,KAAK;EACpB;EACA,OAAOhB,gBAA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BAAmB,CAAC,CAAC;AAC/C;AAYA,MAAMC,iBAAiB,GAAG;EACxB3E,UAAU;EACVE,gBAAgB;EAChBE,aAAa;EACbG,kBAAkB;EAClBE,qBAAqB;EACrBI,oBAAoB;EACpBC,uBAAuB;EACvBR,YAAY;EACZS,aAAa;EACbU,kBAAkB;EAClBO,YAAY;EACZC,iBAAiB;EACjBE,kBAAkB;EAClBC,YAAY;EACZE,SAAS;EACTE,UAAU;EACVmB,aAAa;EACbR,YAAY;EACZW,eAAe;EACfP,OAAO;EACPS,UAAU;EACVE,mBAAmB;EACnBG,gBAAgB;EAChBK;AACF,CAAC;AAED,eAAeC,iBAAiB"}
1
+ {"version":3,"names":["NativeEventEmitter","Platform","uuid","PluginGeofencing","Location","Region","Poi","IndoorBeacon","eventEmitter","subscriptionsLocation","subscriptionsRegion","initialize","arg0","setWoosmapApiKey","apiKey","startTracking","trackingProfile","stopTracking","requestPermissions","background","requestBLEPermissions","OS","Promise","resolve","getPermissionsStatus","getBLEPermissionsStatus","watchLocation","success","error","watchID","v1","toString","successCallback","result","jsonToObj","addListener","clearLocationWatch","removeAllListeners","clearAllLocationWatch","saved","remove","arg1","undefined","watchRegions","clearRegionsWatch","clearAllRegionsWatch","setSFMCCredentials","setPoiRadius","radius","addRegion","region","getRegions","regionID","getAllRegions","then","formatted","forEach","item","push","catch","e","reject","getLocations","locationID","getAllLocations","getLocation","getPois","poiID","getAllPois","getPoi","removeRegions","removeAllRegions","removeRegion","removeLocations","removeAllLocations","removePois","removeAllPois","startCustomTracking","sourceType","source","getIndoorBeacons","venueID","ref","getAllIndoorBeacons","identifier","removeIndoorBeacons","WoosmapGeofencing"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"AAAA,SAASA,kBAAkB,EAAEC,QAAQ,QAAQ,cAAc;AAC3D,OAAOC,IAAI,MAAM,mBAAmB;AACpC,OAAOC,gBAAgB,MAAM,4BAA4B;AACzD,OAAOC,QAAQ,MAAM,qBAAqB;AAC1C,OAAOC,M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;EACZE,SAAS;EACTE,UAAU;EACVmB,aAAa;EACbR,YAAY;EACZW,eAAe;EACfP,OAAO;EACPS,UAAU;EACVE,mBAAmB;EACnBG,gBAAgB;EAChBK;AACF,CAAC;AAED,eAAeC,iBAAiB"}
@@ -1,6 +1,3 @@
1
- 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; }
2
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
3
- function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
4
1
  /**
5
2
  * @classdesc A class that represents the Airship object.
6
3
  * @constructs Airship
@@ -9,8 +6,6 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
9
6
  */
10
7
  class Airship {
11
8
  constructor(name, properties) {
12
- _defineProperty(this, "Name", void 0);
13
- _defineProperty(this, "Properties", void 0);
14
9
  this.Name = name;
15
10
  this.Properties = properties;
16
11
  }
@@ -1 +1 @@
1
- {"version":3,"names":["Airship","constructor","name","properties","_defineProperty","Name","Properties","jsonToObj","json","module","exports"],"sources":["Airship.tsx"],"sourcesContent":["/**\n * @classdesc A class that represents the Airship object.\n * @constructs Airship\n * @param {string} name The name of the custom event.\n * @param {string} properties The attributes of the POI such as `name`, `address`, `zipCode` etc.\n */\nclass Airship {\n Name: String;\n Properties: String;\n constructor(name: String, properties: String) {\n this.Name = name;\n this.Properties = properties;\n }\n /**\n * Converts json object to an object of type Airship.\n * @param {Object} json The json representation of Airship.\n * @returns Object\n * @memberof Airship\n */\n static jsonToObj(json: any) {\n return new Airship(json.name, json.properties);\n }\n}\nmodule.exports = Airship;\n"],"mappings":";;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMA,OAAO,CAAC;EAGZC,WAAWA,CAACC,IAAY,EAAEC,UAAkB,EAAE;IAAAC,eAAA;IAAAA,eAAA;IAC5C,IAAI,CAACC,IAAI,GAAGH,IAAI;IAChB,IAAI,CAACI,UAAU,GAAGH,UAAU;EAC9B;EACA;AACF;AACA;AACA;AACA;AACA;EACE,OAAOI,SAASA,CAACC,IAAS,EAAE;IAC1B,OAAO,IAAIR,OAAO,CAACQ,IAAI,CAACN,IAAI,EAAEM,IAAI,CAACL,UAAU,CAAC;EAChD;AACF;AACAM,MAAM,CAACC,OAAO,GAAGV,OAAO"}
1
+ {"version":3,"names":["Airship","constructor","name","properties","Name","Properties","jsonToObj","json","module","exports"],"sourceRoot":"../../../src","sources":["internal/Airship.tsx"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMA,OAAO,CAAC;EAGZC,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,OAAO,CAACO,IAAI,CAACL,IAAI,EAAEK,IAAI,CAACJ,UAAU,CAAC;EAChD;AACF;AACAK,MAAM,CAACC,OAAO,GAAGT,OAAO"}
@@ -1,6 +1,3 @@
1
- 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; }
2
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
3
- function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
4
1
  /**
5
2
  * Represents an indoor beacon.
6
3
  * @class
@@ -15,6 +12,24 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
15
12
  * @param {Object} properties - custom property share with beacon
16
13
  */
17
14
  class IndoorBeacon {
15
+ /// The UUID of the beacon.
16
+
17
+ /// The Major version of the beacon.
18
+
19
+ /// The Minor version of the beacon.
20
+
21
+ /// The ID of the venue to which this beacon belongs to.
22
+
23
+ /// Woosmap identifier of the beacon.
24
+
25
+ /// Latitude of the beacon.
26
+
27
+ /// Longitude of the beacon.
28
+
29
+ /// The date when the beacon was added/updated.
30
+
31
+ /// Custom properties associated to the beacon.
32
+
18
33
  /**
19
34
  * Creates a new instance of the Beacon class.
20
35
  * @param {string} beaconId - The ID of the beacon.
@@ -28,24 +43,6 @@ class IndoorBeacon {
28
43
  * @param {Object} properties - custom property share with beacon
29
44
  */
30
45
  constructor(beaconId, major, minor, venueId, identifier, latitude, longitude, date, properties) {
31
- /// The UUID of the beacon.
32
- _defineProperty(this, "beaconId", void 0);
33
- /// The Major version of the beacon.
34
- _defineProperty(this, "major", void 0);
35
- /// The Minor version of the beacon.
36
- _defineProperty(this, "minor", void 0);
37
- /// The ID of the venue to which this beacon belongs to.
38
- _defineProperty(this, "venueId", void 0);
39
- /// Woosmap identifier of the beacon.
40
- _defineProperty(this, "identifier", void 0);
41
- /// Latitude of the beacon.
42
- _defineProperty(this, "latitude", void 0);
43
- /// Longitude of the beacon.
44
- _defineProperty(this, "longitude", void 0);
45
- /// The date when the beacon was added/updated.
46
- _defineProperty(this, "date", void 0);
47
- /// Custom properties associated to the beacon.
48
- _defineProperty(this, "properties", void 0);
49
46
  this.beaconId = beaconId;
50
47
  this.major = major;
51
48
  this.minor = minor;
@@ -1 +1 @@
1
- {"version":3,"names":["IndoorBeacon","constructor","beaconId","major","minor","venueId","identifier","latitude","longitude","date","properties","_defineProperty","jsonToObj","json"],"sources":["IndoorBeacon.tsx"],"sourcesContent":["/**\n * Represents an indoor beacon.\n * @class\n * @param {string} beaconId - The ID of the beacon.\n * @param {number} major - The major version number of the beacon.\n * @param {number} minor - The minor version number of the beacon.\n * @param {string} venueId - The ID of the venue where the beacon is located.\n * @param {string} identifier - The identifier of the beacon.\n * @param {number} latitude - The latitude coordinate of the beacon's location.\n * @param {number} longitude - The longitude coordinate of the beacon's location.\n * @param {number} date - The date when the beacon was created.\n * @param {Object} properties - custom property share with beacon\n */\nclass IndoorBeacon {\n /// The UUID of the beacon.\n beaconId: string;\n\n /// The Major version of the beacon.\n major: number;\n\n /// The Minor version of the beacon.\n minor: number;\n\n /// The ID of the venue to which this beacon belongs to.\n venueId: string;\n\n /// Woosmap identifier of the beacon.\n identifier: string;\n\n /// Latitude of the beacon.\n latitude: number;\n\n /// Longitude of the beacon.\n longitude: number;\n\n /// The date when the beacon was added/updated.\n date: number;\n\n /// Custom properties associated to the beacon.\n properties: { [key: string]: any };\n\n /**\n * Creates a new instance of the Beacon class.\n * @param {string} beaconId - The ID of the beacon.\n * @param {number} major - The major version number of the beacon.\n * @param {number} minor - The minor version number of the beacon.\n * @param {string} venueId - The ID of the venue where the beacon is located.\n * @param {string} identifier - The identifier of the beacon.\n * @param {number} latitude - The latitude coordinate of the beacon's location.\n * @param {number} longitude - The longitude coordinate of the beacon's location.\n * @param {number} date - The date when the beacon was created.\n * @param {Object} properties - custom property share with beacon\n */\n constructor(\n beaconId: string,\n major: number,\n minor: number,\n venueId: string,\n identifier: string,\n latitude: number,\n longitude: number,\n date: number,\n properties: { [key: string]: any }\n ) {\n this.beaconId = beaconId;\n this.major = major;\n this.minor = minor;\n this.venueId = venueId;\n this.identifier = identifier;\n this.latitude = latitude;\n this.longitude = longitude;\n this.date = date;\n this.properties = properties;\n }\n /**\n * Converts json object to an object of type IndoorBeacon.\n * @param {Object} json The json representation of the IndoorBeacon.\n * @returns Object\n * @memberof Poi\n */\n static jsonToObj(json: any) {\n return new IndoorBeacon(\n json.beaconId,\n json.major,\n json.minor,\n json.venueId,\n json.identifier,\n json.latitude,\n json.longitude,\n json.date,\n json.properties\n );\n }\n}\nexport default IndoorBeacon;\n"],"mappings":";;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMA,YAAY,CAAC;EA4BjB;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACEC,WAAWA,CACTC,QAAgB,EAChBC,KAAa,EACbC,KAAa,EACbC,OAAe,EACfC,UAAkB,EAClBC,QAAgB,EAChBC,SAAiB,EACjBC,IAAY,EACZC,UAAkC,EAClC;IAjDF;IAAAC,eAAA;IAGA;IAAAA,eAAA;IAGA;IAAAA,eAAA;IAGA;IAAAA,eAAA;IAGA;IAAAA,eAAA;IAGA;IAAAA,eAAA;IAGA;IAAAA,eAAA;IAGA;IAAAA,eAAA;IAGA;IAAAA,eAAA;IA0BE,IAAI,CAACT,QAAQ,GAAGA,QAAQ;IACxB,IAAI,CAACC,KAAK,GAAGA,KAAK;IAClB,IAAI,CAACC,KAAK,GAAGA,KAAK;IAClB,IAAI,CAACC,OAAO,GAAGA,OAAO;IACtB,IAAI,CAACC,UAAU,GAAGA,UAAU;IAC5B,IAAI,CAACC,QAAQ,GAAGA,QAAQ;IACxB,IAAI,CAACC,SAAS,GAAGA,SAAS;IAC1B,IAAI,CAACC,IAAI,GAAGA,IAAI;IAChB,IAAI,CAACC,UAAU,GAAGA,UAAU;EAC9B;EACA;AACF;AACA;AACA;AACA;AACA;EACE,OAAOE,SAASA,CAACC,IAAS,EAAE;IAC1B,OAAO,IAAIb,YAAY,CACrBa,IAAI,CAACX,QAAQ,EACbW,IAAI,CAACV,KAAK,EACVU,IAAI,CAACT,KAAK,EACVS,IAAI,CAACR,OAAO,EACZQ,IAAI,CAACP,UAAU,EACfO,IAAI,CAACN,QAAQ,EACbM,IAAI,CAACL,SAAS,EACdK,IAAI,CAACJ,IAAI,EACTI,IAAI,CAACH,UACP,CAAC;EACH;AACF;AACA,eAAeV,YAAY"}
1
+ {"version":3,"names":["IndoorBeacon","constructor","beaconId","major","minor","venueId","identifier","latitude","longitude","date","properties","jsonToObj","json"],"sourceRoot":"../../../src","sources":["internal/IndoorBeacon.tsx"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMA,YAAY,CAAC;EACjB;;EAGA;;EAGA;;EAGA;;EAGA;;EAGA;;EAGA;;EAGA;;EAGA;;EAGA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACEC,WAAWA,CACTC,QAAgB,EAChBC,KAAa,EACbC,KAAa,EACbC,OAAe,EACfC,UAAkB,EAClBC,QAAgB,EAChBC,SAAiB,EACjBC,IAAY,EACZC,UAAkC,EAClC;IACA,IAAI,CAACR,QAAQ,GAAGA,QAAQ;IACxB,IAAI,CAACC,KAAK,GAAGA,KAAK;IAClB,IAAI,CAACC,KAAK,GAAGA,KAAK;IAClB,IAAI,CAACC,OAAO,GAAGA,OAAO;IACtB,IAAI,CAACC,UAAU,GAAGA,UAAU;IAC5B,IAAI,CAACC,QAAQ,GAAGA,QAAQ;IACxB,IAAI,CAACC,SAAS,GAAGA,SAAS;IAC1B,IAAI,CAACC,IAAI,GAAGA,IAAI;IAChB,IAAI,CAACC,UAAU,GAAGA,UAAU;EAC9B;EACA;AACF;AACA;AACA;AACA;AACA;EACE,OAAOC,SAASA,CAACC,IAAS,EAAE;IAC1B,OAAO,IAAIZ,YAAY,CACrBY,IAAI,CAACV,QAAQ,EACbU,IAAI,CAACT,KAAK,EACVS,IAAI,CAACR,KAAK,EACVQ,IAAI,CAACP,OAAO,EACZO,IAAI,CAACN,UAAU,EACfM,IAAI,CAACL,QAAQ,EACbK,IAAI,CAACJ,SAAS,EACdI,IAAI,CAACH,IAAI,EACTG,IAAI,CAACF,UACP,CAAC;EACH;AACF;AACA,eAAeV,YAAY"}
@@ -1,6 +1,3 @@
1
- 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; }
2
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
3
- function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
4
1
  /**
5
2
  * @classdesc A class that represents the location object.
6
3
  * @constructs Location
@@ -13,11 +10,6 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
13
10
  */
14
11
  class Location {
15
12
  constructor(date, latitude, locationdescription, locationid, longitude) {
16
- _defineProperty(this, "Date", void 0);
17
- _defineProperty(this, "Latitude", void 0);
18
- _defineProperty(this, "Locationdescription", void 0);
19
- _defineProperty(this, "Locationid", void 0);
20
- _defineProperty(this, "Longitude", void 0);
21
13
  this.Date = date;
22
14
  this.Latitude = latitude;
23
15
  this.Locationdescription = locationdescription;
@@ -1 +1 @@
1
- {"version":3,"names":["Location","constructor","date","latitude","locationdescription","locationid","longitude","_defineProperty","Date","Latitude","Locationdescription","Locationid","Longitude","jsonToObj","json"],"sources":["Location.tsx"],"sourcesContent":["/**\n * @classdesc A class that represents the location object.\n * @constructs Location\n * @param {number} date The datetime stamp.\n * @param {number} latitude The latitude of the location.\n\n * @param {string} Locationdescription The description of the location. \n * @param {string} Locationid A unique identifier for the location.\n * @param {number} longitude The longitude of the location.\n */\nclass Location {\n Date: number;\n Latitude: number;\n Locationdescription: string;\n Locationid: string;\n Longitude: number;\n constructor(\n date: number,\n latitude: number,\n locationdescription: string,\n locationid: string,\n longitude: number\n ) {\n this.Date = date;\n this.Latitude = latitude;\n this.Locationdescription = locationdescription;\n this.Locationid = locationid;\n this.Longitude = longitude;\n }\n /**\n * Converts json object to an object of type Location.\n * @param {Object} json The json representation of the Location.\n * @returns Object\n * @memberof Location\n */\n static jsonToObj(json: any) {\n return new Location(\n json.date,\n json.latitude,\n json.locationdescription,\n json.locationid,\n json.longitude\n );\n }\n}\nexport default Location;\n"],"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;IAAAC,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IACA,IAAI,CAACC,IAAI,GAAGN,IAAI;IAChB,IAAI,CAACO,QAAQ,GAAGN,QAAQ;IACxB,IAAI,CAACO,mBAAmB,GAAGN,mBAAmB;IAC9C,IAAI,CAACO,UAAU,GAAGN,UAAU;IAC5B,IAAI,CAACO,SAAS,GAAGN,SAAS;EAC5B;EACA;AACF;AACA;AACA;AACA;AACA;EACE,OAAOO,SAASA,CAACC,IAAS,EAAE;IAC1B,OAAO,IAAId,QAAQ,CACjBc,IAAI,CAACZ,IAAI,EACTY,IAAI,CAACX,QAAQ,EACbW,IAAI,CAACV,mBAAmB,EACxBU,IAAI,CAACT,UAAU,EACfS,IAAI,CAACR,SACP,CAAC;EACH;AACF;AACA,eAAeN,QAAQ"}
1
+ {"version":3,"names":["Location","constructor","date","latitude","locationdescription","locationid","longitude","Date","Latitude","Locationdescription","Locationid","Longitude","jsonToObj","json"],"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;AACA,eAAeN,QAAQ"}
@@ -1,6 +1,3 @@
1
- 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; }
2
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
3
- function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
4
1
  /**
5
2
  * @classdesc A class that represents the Marketing Cloud object.
6
3
  * @constructs MarketingCloud
@@ -9,8 +6,6 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
9
6
  */
10
7
  class MarketingCloud {
11
8
  constructor(name, properties) {
12
- _defineProperty(this, "Name", void 0);
13
- _defineProperty(this, "Properties", void 0);
14
9
  this.Name = name;
15
10
  this.Properties = properties;
16
11
  }
@@ -1 +1 @@
1
- {"version":3,"names":["MarketingCloud","constructor","name","properties","_defineProperty","Name","Properties","jsonToObj","json","module","exports"],"sources":["MarketingCloud.tsx"],"sourcesContent":["/**\n * @classdesc A class that represents the Marketing Cloud object.\n * @constructs MarketingCloud\n * @param {string} name The name of the custom event.\n * @param {string} properties The attributes of the POI such as `name`, `address`, `zipCode` etc.\n */\nclass MarketingCloud {\n Name: string;\n Properties: string;\n constructor(name: string, properties: string) {\n this.Name = name;\n this.Properties = properties;\n }\n /**\n * Converts json object to an object of type MarketingCloud.\n * @param {Object} json The json representation of MarketingCloud.\n * @returns Object\n * @memberof MarketingCloud\n */\n static jsonToObj(json: any) {\n return new MarketingCloud(json.name, json.properties);\n }\n}\nmodule.exports = MarketingCloud;\n"],"mappings":";;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMA,cAAc,CAAC;EAGnBC,WAAWA,CAACC,IAAY,EAAEC,UAAkB,EAAE;IAAAC,eAAA;IAAAA,eAAA;IAC5C,IAAI,CAACC,IAAI,GAAGH,IAAI;IAChB,IAAI,CAACI,UAAU,GAAGH,UAAU;EAC9B;EACA;AACF;AACA;AACA;AACA;AACA;EACE,OAAOI,SAASA,CAACC,IAAS,EAAE;IAC1B,OAAO,IAAIR,cAAc,CAACQ,IAAI,CAACN,IAAI,EAAEM,IAAI,CAACL,UAAU,CAAC;EACvD;AACF;AACAM,MAAM,CAACC,OAAO,GAAGV,cAAc"}
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"}
@@ -1,6 +1,3 @@
1
- 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; }
2
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
3
- function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
4
1
  /**
5
2
  * A class that represents the POI object.
6
3
  * @classdesc A class that represents the POI object.
@@ -25,24 +22,6 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
25
22
  */
26
23
  class Poi {
27
24
  constructor(jsondata, city, idstore, name, date, distance, duration, latitude, locationid, longitude, zipcode, radius, address, countrycode, tags, types, contact, userProperties) {
28
- _defineProperty(this, "Jsondata", void 0);
29
- _defineProperty(this, "City", void 0);
30
- _defineProperty(this, "Idstore", void 0);
31
- _defineProperty(this, "Name", void 0);
32
- _defineProperty(this, "Date", void 0);
33
- _defineProperty(this, "Distance", void 0);
34
- _defineProperty(this, "Duration", void 0);
35
- _defineProperty(this, "Latitude", void 0);
36
- _defineProperty(this, "Locationid", void 0);
37
- _defineProperty(this, "Longitude", void 0);
38
- _defineProperty(this, "Zipcode", void 0);
39
- _defineProperty(this, "Radius", void 0);
40
- _defineProperty(this, "Countrycode", void 0);
41
- _defineProperty(this, "Tags", void 0);
42
- _defineProperty(this, "Types", void 0);
43
- _defineProperty(this, "Contact", void 0);
44
- _defineProperty(this, "Address", void 0);
45
- _defineProperty(this, "userProperties", void 0);
46
25
  this.Jsondata = jsondata;
47
26
  this.City = city;
48
27
  this.Idstore = idstore;
@@ -1 +1 @@
1
- {"version":3,"names":["Poi","constructor","jsondata","city","idstore","name","date","distance","duration","latitude","locationid","longitude","zipcode","radius","address","countrycode","tags","types","contact","userProperties","_defineProperty","Jsondata","City","Idstore","Name","Date","Distance","Duration","Latitude","Locationid","Longitude","Zipcode","Radius","Countrycode","Tags","Types","Contact","Address","jsonToObj","json"],"sources":["Poi.tsx"],"sourcesContent":["/**\n * A class that represents the POI object.\n * @classdesc A class that represents the POI object.\n * @constructs Poi\n * @param {Object} jsonData A json object representing the POI.\n * @param {string} city The name of the city the POI belongs to.\n * @param {string} idstore A unique identifier for the POI.\n * @param {name} name The name of the POI.\n * @param {number} date The datetime stamp.\n * @param {number} distance The distance between the POI and the user's location.\n * @param {number} duration The duration to travel to the POI from the user's location.\n * @param {number} latitude The latitude of the POI.\n * @param {string} locationid Location id of the POI.\n * @param {number} longitude The longitude of the POI.\n * @param {string} zipcode The zip code of the POI.\n * @param {number} radius The radius of the POI.\n * @param {string} address The address of the POI.\n * @param {string} countrycode The countrycode of the POI.\n * @param {string} tags The tags for the POI.\n * @param {string} types The types of the POI.\n * @param {string} contact The contact for the POI.\n */\nclass Poi {\n Jsondata: object;\n City: string;\n Idstore: string;\n Name: string;\n Date: number;\n Distance: number;\n Duration: number;\n Latitude: number;\n Locationid: string;\n Longitude: number;\n Zipcode: string;\n Radius: number;\n Countrycode: string;\n Tags: string;\n Types: string;\n Contact: string;\n Address: string;\n userProperties: [string: any];\n constructor(\n jsondata: object,\n city: string,\n idstore: string,\n name: string,\n date: number,\n distance: number,\n duration: number,\n latitude: number,\n locationid: string,\n longitude: number,\n zipcode: string,\n radius: number,\n address: string,\n countrycode: string,\n tags: string,\n types: string,\n contact: string,\n userProperties: [string: any]\n ) {\n this.Jsondata = jsondata;\n this.City = city;\n this.Idstore = idstore;\n this.Name = name;\n this.Date = date;\n this.Distance = distance;\n this.Duration = duration;\n this.Latitude = latitude;\n this.Locationid = locationid;\n this.Longitude = longitude;\n this.Zipcode = zipcode;\n this.Radius = radius;\n this.Idstore = idstore;\n this.Countrycode = countrycode;\n this.Tags = tags;\n this.Types = types;\n this.Contact = contact;\n this.Address = address;\n this.userProperties = userProperties;\n }\n /**\n * Converts json object to an object of type Poi.\n * @param {Object} json The json representation of the Poi.\n * @returns Object\n * @memberof Poi\n */\n static jsonToObj(json: any) {\n return new Poi(\n json.jsondata,\n json.city,\n json.idstore,\n json.name,\n json.date,\n json.distance,\n json.duration,\n json.latitude,\n json.locationid,\n json.longitude,\n json.zipcode,\n json.radius,\n json.address,\n json.countrycode,\n json.tags,\n json.types,\n json.contact,\n json.userProperties\n );\n }\n}\nexport default Poi;\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;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;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;IAAAA,eAAA;IACA,IAAI,CAACC,QAAQ,GAAGnB,QAAQ;IACxB,IAAI,CAACoB,IAAI,GAAGnB,IAAI;IAChB,IAAI,CAACoB,OAAO,GAAGnB,OAAO;IACtB,IAAI,CAACoB,IAAI,GAAGnB,IAAI;IAChB,IAAI,CAACoB,IAAI,GAAGnB,IAAI;IAChB,IAAI,CAACoB,QAAQ,GAAGnB,QAAQ;IACxB,IAAI,CAACoB,QAAQ,GAAGnB,QAAQ;IACxB,IAAI,CAACoB,QAAQ,GAAGnB,QAAQ;IACxB,IAAI,CAACoB,UAAU,GAAGnB,UAAU;IAC5B,IAAI,CAACoB,SAAS,GAAGnB,SAAS;IAC1B,IAAI,CAACoB,OAAO,GAAGnB,OAAO;IACtB,IAAI,CAACoB,MAAM,GAAGnB,MAAM;IACpB,IAAI,CAACU,OAAO,GAAGnB,OAAO;IACtB,IAAI,CAAC6B,WAAW,GAAGlB,WAAW;IAC9B,IAAI,CAACmB,IAAI,GAAGlB,IAAI;IAChB,IAAI,CAACmB,KAAK,GAAGlB,KAAK;IAClB,IAAI,CAACmB,OAAO,GAAGlB,OAAO;IACtB,IAAI,CAACmB,OAAO,GAAGvB,OAAO;IACtB,IAAI,CAACK,cAAc,GAAGA,cAAc;EACtC;EACA;AACF;AACA;AACA;AACA;AACA;EACE,OAAOmB,SAASA,CAACC,IAAS,EAAE;IAC1B,OAAO,IAAIvC,GAAG,CACZuC,IAAI,CAACrC,QAAQ,EACbqC,IAAI,CAACpC,IAAI,EACToC,IAAI,CAACnC,OAAO,EACZmC,IAAI,CAAClC,IAAI,EACTkC,IAAI,CAACjC,IAAI,EACTiC,IAAI,CAAChC,QAAQ,EACbgC,IAAI,CAAC/B,QAAQ,EACb+B,IAAI,CAAC9B,QAAQ,EACb8B,IAAI,CAAC7B,UAAU,EACf6B,IAAI,CAAC5B,SAAS,EACd4B,IAAI,CAAC3B,OAAO,EACZ2B,IAAI,CAAC1B,MAAM,EACX0B,IAAI,CAACzB,OAAO,EACZyB,IAAI,CAACxB,WAAW,EAChBwB,IAAI,CAACvB,IAAI,EACTuB,IAAI,CAACtB,KAAK,EACVsB,IAAI,CAACrB,OAAO,EACZqB,IAAI,CAACpB,cACP,CAAC;EACH;AACF;AACA,eAAenB,GAAG"}
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"],"sourceRoot":"../../../src","s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AACC,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;AACA,eAAenB,GAAG"}
@@ -1,6 +1,3 @@
1
- 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; }
2
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
3
- function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
4
1
  /**
5
2
  * A class that represents the Region object.
6
3
  * @classdesc A class that represents the Region object.
@@ -17,15 +14,6 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
17
14
  */
18
15
  class Region {
19
16
  constructor(date, didenter, identifier, latitude, longitude, radius, frompositiondetection, eventname, spenttime) {
20
- _defineProperty(this, "Date", void 0);
21
- _defineProperty(this, "Didenter", void 0);
22
- _defineProperty(this, "Identifier", void 0);
23
- _defineProperty(this, "Latitude", void 0);
24
- _defineProperty(this, "Longitude", void 0);
25
- _defineProperty(this, "Radius", void 0);
26
- _defineProperty(this, "Frompositiondetection", void 0);
27
- _defineProperty(this, "Eventname", void 0);
28
- _defineProperty(this, "SpentTime", void 0);
29
17
  this.Date = date;
30
18
  this.Didenter = didenter;
31
19
  this.Identifier = identifier;
@@ -1 +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"],"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;AACA,eAAeV,MAAM"}
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"}
@@ -1,6 +1,3 @@
1
- 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; }
2
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
3
- function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
4
1
  /**
5
2
  * @classdesc A class that represents the visits object.
6
3
  * @constructs Visit
@@ -12,12 +9,6 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
12
9
  */
13
10
  class Visit {
14
11
  constructor(accuracy, arrivaldate, date, departuredate, latitude, longitude) {
15
- _defineProperty(this, "Accuracy", void 0);
16
- _defineProperty(this, "Arrivaldate", void 0);
17
- _defineProperty(this, "Date", void 0);
18
- _defineProperty(this, "Departuredate", void 0);
19
- _defineProperty(this, "Latitude", void 0);
20
- _defineProperty(this, "Longitude", void 0);
21
12
  this.Accuracy = accuracy;
22
13
  this.Arrivaldate = arrivaldate;
23
14
  this.Date = date;