@woosmap/react-native-plugin-geofencing 0.6.0-beta.2 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/android/build.gradle +1 -1
- package/lib/commonjs/index.js +429 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/internal/Airship.js +25 -0
- package/lib/commonjs/internal/Airship.js.map +1 -0
- package/lib/commonjs/internal/IndoorBeacon.js +73 -0
- package/lib/commonjs/internal/IndoorBeacon.js.map +1 -0
- package/lib/commonjs/internal/Location.js +36 -0
- package/lib/commonjs/internal/Location.js.map +1 -0
- package/lib/commonjs/internal/MarketingCloud.js +25 -0
- package/lib/commonjs/internal/MarketingCloud.js.map +1 -0
- package/lib/commonjs/internal/Poi.js +62 -0
- package/lib/commonjs/internal/Poi.js.map +1 -0
- package/lib/commonjs/internal/Region.js +44 -0
- package/lib/commonjs/internal/Region.js.map +1 -0
- package/lib/commonjs/internal/Visit.js +32 -0
- package/lib/commonjs/internal/Visit.js.map +1 -0
- package/lib/commonjs/internal/Zoi.js +57 -0
- package/lib/commonjs/internal/Zoi.js.map +1 -0
- package/lib/commonjs/internal/nativeInterface.js +13 -0
- package/lib/commonjs/internal/nativeInterface.js.map +1 -0
- package/lib/commonjs/internal/types.js +2 -0
- package/lib/commonjs/internal/types.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/module/index.js +424 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/internal/Airship.js +25 -0
- package/lib/module/internal/Airship.js.map +1 -0
- package/lib/module/internal/IndoorBeacon.js +69 -0
- package/lib/module/internal/IndoorBeacon.js.map +1 -0
- package/lib/module/internal/Location.js +32 -0
- package/lib/module/internal/Location.js.map +1 -0
- package/lib/module/internal/MarketingCloud.js +25 -0
- package/lib/module/internal/MarketingCloud.js.map +1 -0
- package/lib/module/internal/Poi.js +58 -0
- package/lib/module/internal/Poi.js.map +1 -0
- package/lib/module/internal/Region.js +40 -0
- package/lib/module/internal/Region.js.map +1 -0
- package/lib/module/internal/Visit.js +32 -0
- package/lib/module/internal/Visit.js.map +1 -0
- package/lib/module/internal/Zoi.js +57 -0
- package/lib/module/internal/Zoi.js.map +1 -0
- package/lib/module/internal/nativeInterface.js +9 -0
- package/lib/module/internal/nativeInterface.js.map +1 -0
- package/lib/module/internal/types.js +2 -0
- package/lib/module/internal/types.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/typescript/src/index.d.ts +191 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/internal/Airship.d.ts +19 -0
- package/lib/typescript/src/internal/Airship.d.ts.map +1 -0
- package/lib/typescript/src/internal/IndoorBeacon.d.ts +50 -0
- package/lib/typescript/src/internal/IndoorBeacon.d.ts.map +1 -0
- package/lib/typescript/src/internal/Location.d.ts +27 -0
- package/lib/typescript/src/internal/Location.d.ts.map +1 -0
- package/lib/typescript/src/internal/MarketingCloud.d.ts +19 -0
- package/lib/typescript/src/internal/MarketingCloud.d.ts.map +1 -0
- package/lib/typescript/src/internal/Poi.d.ts +52 -0
- package/lib/typescript/src/internal/Poi.d.ts.map +1 -0
- package/lib/typescript/src/internal/Region.d.ts +35 -0
- package/lib/typescript/src/internal/Region.d.ts.map +1 -0
- package/lib/typescript/src/internal/Visit.d.ts +26 -0
- package/lib/typescript/src/internal/Visit.d.ts.map +1 -0
- package/lib/typescript/src/internal/Zoi.d.ts +50 -0
- package/lib/typescript/src/internal/Zoi.d.ts.map +1 -0
- package/lib/typescript/src/internal/nativeInterface.d.ts +3 -0
- package/lib/typescript/src/internal/nativeInterface.d.ts.map +1 -0
- package/lib/typescript/src/internal/types.d.ts +19 -0
- package/lib/typescript/src/internal/types.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +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","refreshPois","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,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,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KF,GAAG,EAAE;YAC3B3B,SAAS,CAACG,IAAI,CAACnD,YAAY,CAAC2B,SAAS,CAACuB,IAAI,CAAC,CAAC;UAC9C;QACF,CAAC,MAAM;UACLF,SAAS,CAACG,IAAI,CAACnD,YAAY,CAAC2B,SAAS,CAACuB,IAAI,CAAC,CAAC;QAC9C;MACF,CAAC,CAAC;MACF,OAAOnC,OAAO,CAACC,OAAO,CAACgC,SAAS,CAAC;IACnC,CAAC,CAAC,CACDI,KAAK,CAAEC,CAAM,IAAK;MACjB,OAAOtC,OAAO,CAACuC,MAAM,CAACD,CAAC,CAAC;IAC1B,CAAC,CAAC;EACN;AACF;;AAEA;AACA;AACA;AACA;AACA,SAASyB,mBAAmBA,CAAA,EAAoB;EAC9C,OAAOlF,gBAAgB,CAACkF,mBAAmB,CAAC,CAAC;AAC/C;;AAEA;AACA;AACA;AACA;AACA,SAASC,WAAWA,CAAA,EAAoB;EACtC,OAAOnF,gBAAgB,CAACmF,WAAW,CAAC,CAAC;AACvC;AAYA,MAAMC,iBAAiB,GAAG;EACxB5E,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,mBAAmB;EACnBC;AACF,CAAC;AAED,eAAeC,iBAAiB","ignoreList":[]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @classdesc A class that represents the Airship object.
|
|
5
|
+
* @constructs Airship
|
|
6
|
+
* @param {string} name The name of the custom event.
|
|
7
|
+
* @param {string} properties The attributes of the POI such as `name`, `address`, `zipCode` etc.
|
|
8
|
+
*/
|
|
9
|
+
class Airship {
|
|
10
|
+
constructor(name, properties) {
|
|
11
|
+
this.Name = name;
|
|
12
|
+
this.Properties = properties;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Converts json object to an object of type Airship.
|
|
16
|
+
* @param {Object} json The json representation of Airship.
|
|
17
|
+
* @returns Object
|
|
18
|
+
* @memberof Airship
|
|
19
|
+
*/
|
|
20
|
+
static jsonToObj(json) {
|
|
21
|
+
return new Airship(json.name, json.properties);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
module.exports = Airship;
|
|
25
|
+
//# sourceMappingURL=Airship.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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","ignoreList":[]}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Represents an indoor beacon.
|
|
5
|
+
* @class
|
|
6
|
+
* @param {string} beaconId - The ID of the beacon.
|
|
7
|
+
* @param {number} major - The major version number of the beacon.
|
|
8
|
+
* @param {number} minor - The minor version number of the beacon.
|
|
9
|
+
* @param {string} venueId - The ID of the venue where the beacon is located.
|
|
10
|
+
* @param {string} identifier - The identifier of the beacon.
|
|
11
|
+
* @param {number} latitude - The latitude coordinate of the beacon's location.
|
|
12
|
+
* @param {number} longitude - The longitude coordinate of the beacon's location.
|
|
13
|
+
* @param {number} date - The date when the beacon was created.
|
|
14
|
+
* @param {Object} properties - custom property share with beacon
|
|
15
|
+
*/
|
|
16
|
+
class IndoorBeacon {
|
|
17
|
+
/// The UUID of the beacon.
|
|
18
|
+
|
|
19
|
+
/// The Major version of the beacon.
|
|
20
|
+
|
|
21
|
+
/// The Minor version of the beacon.
|
|
22
|
+
|
|
23
|
+
/// The ID of the venue to which this beacon belongs to.
|
|
24
|
+
|
|
25
|
+
/// Woosmap identifier of the beacon.
|
|
26
|
+
|
|
27
|
+
/// Latitude of the beacon.
|
|
28
|
+
|
|
29
|
+
/// Longitude of the beacon.
|
|
30
|
+
|
|
31
|
+
/// The date when the beacon was added/updated.
|
|
32
|
+
|
|
33
|
+
/// Custom properties associated to the beacon.
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Creates a new instance of the Beacon class.
|
|
37
|
+
* @param {string} beaconId - The ID of the beacon.
|
|
38
|
+
* @param {number} major - The major version number of the beacon.
|
|
39
|
+
* @param {number} minor - The minor version number of the beacon.
|
|
40
|
+
* @param {string} venueId - The ID of the venue where the beacon is located.
|
|
41
|
+
* @param {string} identifier - The identifier of the beacon.
|
|
42
|
+
* @param {number} latitude - The latitude coordinate of the beacon's location.
|
|
43
|
+
* @param {number} longitude - The longitude coordinate of the beacon's location.
|
|
44
|
+
* @param {number} date - The date when the beacon was created.
|
|
45
|
+
* @param {Object} properties - custom property share with beacon
|
|
46
|
+
*/
|
|
47
|
+
constructor(beaconId, major, minor, venueId, identifier, latitude, longitude, date, properties) {
|
|
48
|
+
this.beaconId = beaconId;
|
|
49
|
+
this.major = major;
|
|
50
|
+
this.minor = minor;
|
|
51
|
+
this.venueId = venueId;
|
|
52
|
+
this.identifier = identifier;
|
|
53
|
+
this.latitude = latitude;
|
|
54
|
+
this.longitude = longitude;
|
|
55
|
+
this.date = date;
|
|
56
|
+
this.properties = properties;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Converts json object to an object of type IndoorBeacon.
|
|
60
|
+
* @param {Object} json The json representation of the IndoorBeacon.
|
|
61
|
+
* @returns Object
|
|
62
|
+
* @memberof Poi
|
|
63
|
+
*/
|
|
64
|
+
static jsonToObj(json) {
|
|
65
|
+
return new IndoorBeacon(json.beaconId, json.major, json.minor, json.venueId, json.identifier, json.latitude, json.longitude, json.date, json.properties);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
export default IndoorBeacon;
|
|
69
|
+
//# sourceMappingURL=IndoorBeacon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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","ignoreList":[]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @classdesc A class that represents the location object.
|
|
5
|
+
* @constructs Location
|
|
6
|
+
* @param {number} date The datetime stamp.
|
|
7
|
+
* @param {number} latitude The latitude of the location.
|
|
8
|
+
|
|
9
|
+
* @param {string} Locationdescription The description of the location.
|
|
10
|
+
* @param {string} Locationid A unique identifier for the location.
|
|
11
|
+
* @param {number} longitude The longitude of the location.
|
|
12
|
+
*/
|
|
13
|
+
class Location {
|
|
14
|
+
constructor(date, latitude, locationdescription, locationid, longitude) {
|
|
15
|
+
this.Date = date;
|
|
16
|
+
this.Latitude = latitude;
|
|
17
|
+
this.Locationdescription = locationdescription;
|
|
18
|
+
this.Locationid = locationid;
|
|
19
|
+
this.Longitude = longitude;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Converts json object to an object of type Location.
|
|
23
|
+
* @param {Object} json The json representation of the Location.
|
|
24
|
+
* @returns Object
|
|
25
|
+
* @memberof Location
|
|
26
|
+
*/
|
|
27
|
+
static jsonToObj(json) {
|
|
28
|
+
return new Location(json.date, json.latitude, json.locationdescription, json.locationid, json.longitude);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
export default Location;
|
|
32
|
+
//# sourceMappingURL=Location.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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","ignoreList":[]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @classdesc A class that represents the Marketing Cloud object.
|
|
5
|
+
* @constructs MarketingCloud
|
|
6
|
+
* @param {string} name The name of the custom event.
|
|
7
|
+
* @param {string} properties The attributes of the POI such as `name`, `address`, `zipCode` etc.
|
|
8
|
+
*/
|
|
9
|
+
class MarketingCloud {
|
|
10
|
+
constructor(name, properties) {
|
|
11
|
+
this.Name = name;
|
|
12
|
+
this.Properties = properties;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Converts json object to an object of type MarketingCloud.
|
|
16
|
+
* @param {Object} json The json representation of MarketingCloud.
|
|
17
|
+
* @returns Object
|
|
18
|
+
* @memberof MarketingCloud
|
|
19
|
+
*/
|
|
20
|
+
static jsonToObj(json) {
|
|
21
|
+
return new MarketingCloud(json.name, json.properties);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
module.exports = MarketingCloud;
|
|
25
|
+
//# sourceMappingURL=MarketingCloud.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["MarketingCloud","constructor","name","properties","Name","Properties","jsonToObj","json","module","exports"],"sourceRoot":"../../../src","sources":["internal/MarketingCloud.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMA,cAAc,CAAC;EAGnBC,WAAWA,CAACC,IAAY,EAAEC,UAAkB,EAAE;IAC5C,IAAI,CAACC,IAAI,GAAGF,IAAI;IAChB,IAAI,CAACG,UAAU,GAAGF,UAAU;EAC9B;EACA;AACF;AACA;AACA;AACA;AACA;EACE,OAAOG,SAASA,CAACC,IAAS,EAAE;IAC1B,OAAO,IAAIP,cAAc,CAACO,IAAI,CAACL,IAAI,EAAEK,IAAI,CAACJ,UAAU,CAAC;EACvD;AACF;AACAK,MAAM,CAACC,OAAO,GAAGT,cAAc","ignoreList":[]}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* A class that represents the POI object.
|
|
5
|
+
* @classdesc A class that represents the POI object.
|
|
6
|
+
* @constructs Poi
|
|
7
|
+
* @param {Object} jsonData A json object representing the POI.
|
|
8
|
+
* @param {string} city The name of the city the POI belongs to.
|
|
9
|
+
* @param {string} idstore A unique identifier for the POI.
|
|
10
|
+
* @param {name} name The name of the POI.
|
|
11
|
+
* @param {number} date The datetime stamp.
|
|
12
|
+
* @param {number} distance The distance between the POI and the user's location.
|
|
13
|
+
* @param {number} duration The duration to travel to the POI from the user's location.
|
|
14
|
+
* @param {number} latitude The latitude of the POI.
|
|
15
|
+
* @param {string} locationid Location id of the POI.
|
|
16
|
+
* @param {number} longitude The longitude of the POI.
|
|
17
|
+
* @param {string} zipcode The zip code of the POI.
|
|
18
|
+
* @param {number} radius The radius of the POI.
|
|
19
|
+
* @param {string} address The address of the POI.
|
|
20
|
+
* @param {string} countrycode The countrycode of the POI.
|
|
21
|
+
* @param {string} tags The tags for the POI.
|
|
22
|
+
* @param {string} types The types of the POI.
|
|
23
|
+
* @param {string} contact The contact for the POI.
|
|
24
|
+
*/
|
|
25
|
+
class Poi {
|
|
26
|
+
constructor(jsondata, city, idstore, name, date, distance, duration, latitude, locationid, longitude, zipcode, radius, address, countrycode, tags, types, contact, userProperties) {
|
|
27
|
+
this.Jsondata = jsondata;
|
|
28
|
+
this.City = city;
|
|
29
|
+
this.Idstore = idstore;
|
|
30
|
+
this.Name = name;
|
|
31
|
+
this.Date = date;
|
|
32
|
+
this.Distance = distance;
|
|
33
|
+
this.Duration = duration;
|
|
34
|
+
this.Latitude = latitude;
|
|
35
|
+
this.Locationid = locationid;
|
|
36
|
+
this.Longitude = longitude;
|
|
37
|
+
this.Zipcode = zipcode;
|
|
38
|
+
this.Radius = radius;
|
|
39
|
+
this.Idstore = idstore;
|
|
40
|
+
this.Countrycode = countrycode;
|
|
41
|
+
this.Tags = tags;
|
|
42
|
+
this.Types = types;
|
|
43
|
+
this.Contact = contact;
|
|
44
|
+
this.Address = address;
|
|
45
|
+
this.userProperties = userProperties;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Converts json object to an object of type Poi.
|
|
49
|
+
* @param {Object} json The json representation of the Poi.
|
|
50
|
+
* @returns Object
|
|
51
|
+
* @memberof Poi
|
|
52
|
+
*/
|
|
53
|
+
static jsonToObj(json) {
|
|
54
|
+
return new Poi(json.jsondata, json.city, json.idstore, json.name, json.date, json.distance, json.duration, json.latitude, json.locationid, json.longitude, json.zipcode, json.radius, json.address, json.countrycode, json.tags, json.types, json.contact, json.userProperties);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
export default Poi;
|
|
58
|
+
//# sourceMappingURL=Poi.js.map
|
|
@@ -0,0 +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","Jsondata","City","Idstore","Name","Date","Distance","Duration","Latitude","Locationid","Longitude","Zipcode","Radius","Countrycode","Tags","Types","Contact","Address","jsonToObj","json"],"sourceRoot":"../../../src","sources":["internal/Poi.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMA,GAAG,CAAC;EAmBRC,WAAWA,CACTC,QAAgB,EAChBC,IAAY,EACZC,OAAe,EACfC,IAAY,EACZC,IAAY,EACZC,QAAgB,EAChBC,QAAgB,EAChBC,QAAgB,EAChBC,UAAkB,EAClBC,SAAiB,EACjBC,OAAe,EACfC,MAAc,EACdC,OAAe,EACfC,WAAmB,EACnBC,IAAY,EACZC,KAAa,EACbC,OAAe,EACfC,cAA6B,EAC7B;IACA,IAAI,CAACC,QAAQ,GAAGlB,QAAQ;IACxB,IAAI,CAACmB,IAAI,GAAGlB,IAAI;IAChB,IAAI,CAACmB,OAAO,GAAGlB,OAAO;IACtB,IAAI,CAACmB,IAAI,GAAGlB,IAAI;IAChB,IAAI,CAACmB,IAAI,GAAGlB,IAAI;IAChB,IAAI,CAACmB,QAAQ,GAAGlB,QAAQ;IACxB,IAAI,CAACmB,QAAQ,GAAGlB,QAAQ;IACxB,IAAI,CAACmB,QAAQ,GAAGlB,QAAQ;IACxB,IAAI,CAACmB,UAAU,GAAGlB,UAAU;IAC5B,IAAI,CAACmB,SAAS,GAAGlB,SAAS;IAC1B,IAAI,CAACmB,OAAO,GAAGlB,OAAO;IACtB,IAAI,CAACmB,MAAM,GAAGlB,MAAM;IACpB,IAAI,CAACS,OAAO,GAAGlB,OAAO;IACtB,IAAI,CAAC4B,WAAW,GAAGjB,WAAW;IAC9B,IAAI,CAACkB,IAAI,GAAGjB,IAAI;IAChB,IAAI,CAACkB,KAAK,GAAGjB,KAAK;IAClB,IAAI,CAACkB,OAAO,GAAGjB,OAAO;IACtB,IAAI,CAACkB,OAAO,GAAGtB,OAAO;IACtB,IAAI,CAACK,cAAc,GAAGA,cAAc;EACtC;EACA;AACF;AACA;AACA;AACA;AACA;EACE,OAAOkB,SAASA,CAACC,IAAS,EAAE;IAC1B,OAAO,IAAItC,GAAG,CACZsC,IAAI,CAACpC,QAAQ,EACboC,IAAI,CAACnC,IAAI,EACTmC,IAAI,CAAClC,OAAO,EACZkC,IAAI,CAACjC,IAAI,EACTiC,IAAI,CAAChC,IAAI,EACTgC,IAAI,CAAC/B,QAAQ,EACb+B,IAAI,CAAC9B,QAAQ,EACb8B,IAAI,CAAC7B,QAAQ,EACb6B,IAAI,CAAC5B,UAAU,EACf4B,IAAI,CAAC3B,SAAS,EACd2B,IAAI,CAAC1B,OAAO,EACZ0B,IAAI,CAACzB,MAAM,EACXyB,IAAI,CAACxB,OAAO,EACZwB,IAAI,CAACvB,WAAW,EAChBuB,IAAI,CAACtB,IAAI,EACTsB,IAAI,CAACrB,KAAK,EACVqB,IAAI,CAACpB,OAAO,EACZoB,IAAI,CAACnB,cACP,CAAC;EACH;AACF;AACA,eAAenB,GAAG","ignoreList":[]}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* A class that represents the Region object.
|
|
5
|
+
* @classdesc A class that represents the Region object.
|
|
6
|
+
* @constructs Region
|
|
7
|
+
* @param {number} date The datetime stamp.
|
|
8
|
+
* @param {boolean} didEnter A boolean value indicating whether the region was entered.
|
|
9
|
+
* @param {string} identifier An alphanumeric unique identifier for the region.
|
|
10
|
+
* @param {number} latitude The latitude of the region.
|
|
11
|
+
* @param {number} longitude The longitude of the region.
|
|
12
|
+
* @param {number} radius The radius of the region in meters.
|
|
13
|
+
* @param {boolean} frompositiondetection Determines whether the user's current position is inside the region.
|
|
14
|
+
* @param {string} eventName Describe cause of region event, Entry or Exit.
|
|
15
|
+
* @param {number} spenttime Number of seconds the user spent in region in case of event name Exit.
|
|
16
|
+
*/
|
|
17
|
+
class Region {
|
|
18
|
+
constructor(date, didenter, identifier, latitude, longitude, radius, frompositiondetection, eventname, spenttime) {
|
|
19
|
+
this.Date = date;
|
|
20
|
+
this.Didenter = didenter;
|
|
21
|
+
this.Identifier = identifier;
|
|
22
|
+
this.Latitude = latitude;
|
|
23
|
+
this.Longitude = longitude;
|
|
24
|
+
this.Radius = radius;
|
|
25
|
+
this.Frompositiondetection = frompositiondetection;
|
|
26
|
+
this.Eventname = eventname;
|
|
27
|
+
this.SpentTime = spenttime;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Converts json object to an object of type Region.
|
|
31
|
+
* @param {Object} json The json representation of the region.
|
|
32
|
+
* @returns Object
|
|
33
|
+
* @memberof Region
|
|
34
|
+
*/
|
|
35
|
+
static jsonToObj(json) {
|
|
36
|
+
return new Region(json.date, json.didenter, json.identifier, json.latitude, json.longitude, json.radius, json.frompositiondetection, json.eventname, json.spenttime);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
export default Region;
|
|
40
|
+
//# sourceMappingURL=Region.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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":[]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @classdesc A class that represents the visits object.
|
|
5
|
+
* @constructs Visit
|
|
6
|
+
* @param {number} accuracy The accuracy in meters.
|
|
7
|
+
* @param {number} arrivalDate The datetime stamp for the arrival at the place of visit.
|
|
8
|
+
* @param {number} date Current datetime stamp.
|
|
9
|
+
* @param {number} latitude The latitude of the place of visit.
|
|
10
|
+
* @param {number} longitude The longitude of the plaee of visit.
|
|
11
|
+
*/
|
|
12
|
+
class Visit {
|
|
13
|
+
constructor(accuracy, arrivaldate, date, departuredate, latitude, longitude) {
|
|
14
|
+
this.Accuracy = accuracy;
|
|
15
|
+
this.Arrivaldate = arrivaldate;
|
|
16
|
+
this.Date = date;
|
|
17
|
+
this.Departuredate = departuredate;
|
|
18
|
+
this.Latitude = latitude;
|
|
19
|
+
this.Longitude = longitude;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Converts json object to an object of type Visits.
|
|
23
|
+
* @param {Object} json The json representation of the Visits.
|
|
24
|
+
* @returns Visit
|
|
25
|
+
* @memberof Visit
|
|
26
|
+
*/
|
|
27
|
+
static jsonToObj(json) {
|
|
28
|
+
return new Visit(json.accuracy, json.arrivaldate, json.date, json.departuredate, json.latitude, json.longitude);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
module.exports = Visit;
|
|
32
|
+
//# sourceMappingURL=Visit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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":[]}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @classdesc A class that represents the Zones of Interest (ZOI) object.
|
|
5
|
+
* @constructs Zoi
|
|
6
|
+
* @param {number} accumulator Represents the number of visits used to build the ZOI (only for calculation of ZOI)
|
|
7
|
+
* @param {number} age Age is used to determine if a ZOI should be deleted by the algorithm (only for calculation of ZOI)
|
|
8
|
+
* @param {number} covariance_det The covariance determinant (only for calculation of ZOI)
|
|
9
|
+
* @param {number} duration The duration of all the accumulated visits of the ZOI
|
|
10
|
+
* @param {number} endtime The exit date of the last ZOI visit
|
|
11
|
+
* @param {string[]} idvisits The list of id visits included in this ZOI
|
|
12
|
+
* @param {number} latmean The latitude of the center of the ZOI
|
|
13
|
+
* @param {number} lngmean The longitude of the center of the ZOI
|
|
14
|
+
* @param {string} period The classification of the period (HOME, WORK, OTHER or NO QUALIFIER)
|
|
15
|
+
* @param {number} prior_probability Estimation of probability (only for calculation of ZOI)
|
|
16
|
+
* @param {number} starttime The entry date for the first ZOI visit
|
|
17
|
+
* @param {number} weekly_density The weekly density of the ZOI visit (only for classification of ZOI)
|
|
18
|
+
* @param {string} wktpolygon This is the Well-known text representation of geometry of the ZOI polygon.
|
|
19
|
+
* @param {number} x00covariance_matrix_inverse The covariance of a cluster (only for calculation of ZOI)
|
|
20
|
+
* @param {number} x01covariance_matrix_inverse The covariance of a cluster (only for calculation of ZOI)
|
|
21
|
+
* @param {number} x10covariance_matrix_inverse The covariance of a cluster (only for calculation of ZOI)
|
|
22
|
+
* @param {number} x11covariance_matrix_inverse The covariance of a cluster (only for calculation of ZOI)
|
|
23
|
+
|
|
24
|
+
*/
|
|
25
|
+
class Zoi {
|
|
26
|
+
constructor(accumulator, age, covariance_det, duration, endtime, idvisits, latmean, lngmean, period, prior_probability, starttime, weekly_density, wktpolygon, x00covariance_matrix_inverse, x01covariance_matrix_inverse, x10covariance_matrix_inverse, x11covariance_matrix_inverse) {
|
|
27
|
+
this.Accumulator = accumulator;
|
|
28
|
+
this.Age = age;
|
|
29
|
+
this.Covariance_Det = covariance_det;
|
|
30
|
+
this.Duration = duration;
|
|
31
|
+
this.Endtime = endtime;
|
|
32
|
+
this.Idvisits = idvisits;
|
|
33
|
+
this.Latmean = latmean;
|
|
34
|
+
this.Lngmean = lngmean;
|
|
35
|
+
this.Period = period;
|
|
36
|
+
this.Prior_Probability = prior_probability;
|
|
37
|
+
this.Starttime = starttime;
|
|
38
|
+
this.Weekly_Density = weekly_density;
|
|
39
|
+
this.Covariance_Det = covariance_det;
|
|
40
|
+
this.Wktpolygon = wktpolygon;
|
|
41
|
+
this.X00Covariance_Matrix_Inverse = x00covariance_matrix_inverse;
|
|
42
|
+
this.X01Covariance_Matrix_Inverse = x01covariance_matrix_inverse;
|
|
43
|
+
this.X10Covariance_Matrix_Inverse = x10covariance_matrix_inverse;
|
|
44
|
+
this.X11Covariance_Matrix_Inverse = x11covariance_matrix_inverse;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Converts json object to an object of type Zoi.
|
|
48
|
+
* @param {Object} json The json representation of the Zoi.
|
|
49
|
+
* @returns Object
|
|
50
|
+
* @memberof Zoi
|
|
51
|
+
*/
|
|
52
|
+
static jsonToObj(json) {
|
|
53
|
+
return new Zoi(json.accumulator, json.age, json.covariance_det, json.duration, json.endtime, json.idvisits, json.latmean, json.lngmean, json.period, json.prior_probability, json.starttime, json.weekly_density, json.wktpolygon, json.x00covariance_matrix_inverse, json.x01covariance_matrix_inverse, json.x10covariance_matrix_inverse, json.x11covariance_matrix_inverse);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
module.exports = Zoi;
|
|
57
|
+
//# sourceMappingURL=Zoi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Zoi","constructor","accumulator","age","covariance_det","duration","endtime","idvisits","latmean","lngmean","period","prior_probability","starttime","weekly_density","wktpolygon","x00covariance_matrix_inverse","x01covariance_matrix_inverse","x10covariance_matrix_inverse","x11covariance_matrix_inverse","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":[]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { NativeModules } from 'react-native';
|
|
4
|
+
let PluginGeofencing = NativeModules.PluginGeofencing;
|
|
5
|
+
if (!PluginGeofencing) {
|
|
6
|
+
throw new Error('NativeModules.PluginGeofencing is undefined');
|
|
7
|
+
}
|
|
8
|
+
export default PluginGeofencing;
|
|
9
|
+
//# sourceMappingURL=nativeInterface.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["internal/types.tsx"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module"}
|
|
@@ -0,0 +1,191 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAGA,OAAO,QAAQ,MAAM,qBAAqB,CAAC;AAC3C,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,GAAG,MAAM,gBAAgB,CAAC;AACjC,OAAO,YAAY,MAAM,yBAAyB,CAAC;AACnD,OAAO,KAAK,EACV,cAAc,EACd,UAAU,EACV,aAAa,EACd,MAAM,kBAAkB,CAAC;AAM1B;;;;;GAKG;AACH,iBAAS,UAAU,CAAC,IAAI,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,MAAM,CAAC,CAK/C;AAED;;;;;GAKG;AACH,iBAAS,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAEzD;AAED;;;;;GAKG;AACH,iBAAS,aAAa,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAE/D;AAED;;;;G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