@woosmap/react-native-plugin-geofencing 0.9.0 → 0.11.0-beta.1

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 CHANGED
@@ -1,3 +1,6 @@
1
+ ## 0.10.0
2
+ - Enhancement: Expose `openNow` within the POI class that represents the store's status.
3
+
1
4
  ## 0.9.0
2
5
  - Enhancement: Added support for new `optimalPassiveTracking` profile on Android
3
6
 
@@ -132,6 +132,7 @@ public class WoosmapUtil {
132
132
  map.putString("duration", poi.duration);
133
133
  map.putString("zipcode", poi.zipCode);
134
134
  //map.putString("jsondata", poi.data);
135
+ map.putBoolean("openNow", poi.openNow());
135
136
  try {
136
137
  JSONObject userProperties = new JSONObject();
137
138
  Map<String, Object> userPropertiesMap = poi.getUserPropertyMap();
@@ -1058,6 +1058,7 @@ class PluginGeofencing: RCTEventEmitter {
1058
1058
  result["types"] = woosdata.types
1059
1059
  result["contact"] = woosdata.contact
1060
1060
  result["userProperties"] = woosdata.user_properties
1061
+ result["openNow"] = woosdata.openNow
1061
1062
  return result
1062
1063
  }
1063
1064
  private func formatZOIData(woosdata: ZOI) -> [AnyHashable: Any] {
@@ -25,9 +25,50 @@ exports.default = void 0;
25
25
  * @param {string} tags The tags for the POI.
26
26
  * @param {string} types The types of the POI.
27
27
  * @param {string} contact The contact for the POI.
28
+ * @param {Array} userProperties The user defined properties for the POI.
29
+ * @param {boolean} openNow Whether the POI is open now.
28
30
  */
31
+
29
32
  class Poi {
30
- constructor(jsondata, city, idstore, name, date, distance, duration, latitude, locationid, longitude, zipcode, radius, address, countrycode, tags, types, contact, userProperties) {
33
+ /** A json object representing the POI. */
34
+
35
+ /** The name of the city the POI belongs to. */
36
+
37
+ /** A unique identifier for the POI. */
38
+
39
+ /** The name of the POI. */
40
+
41
+ /** The datetime stamp. */
42
+
43
+ /** The distance between the POI and the user's location. */
44
+
45
+ /** The duration to travel to the POI from the user's location. */
46
+
47
+ /** The latitude of the POI. */
48
+
49
+ /** Location id of the POI. */
50
+
51
+ /** The longitude of the POI. */
52
+
53
+ /** The zip code of the POI. */
54
+
55
+ /** The radius of the POI. */
56
+
57
+ /** The country code of the POI. */
58
+
59
+ /** The tags for the POI. */
60
+
61
+ /** The types of the POI. */
62
+
63
+ /** The contact for the POI. */
64
+
65
+ /** The address of the POI. */
66
+
67
+ /** The user defined properties for the POI. */
68
+
69
+ /** Whether the POI is open now. */
70
+
71
+ constructor(jsondata, city, idstore, name, date, distance, duration, latitude, locationid, longitude, zipcode, radius, address, countrycode, tags, types, contact, userProperties, openNow) {
31
72
  this.Jsondata = jsondata;
32
73
  this.City = city;
33
74
  this.Idstore = idstore;
@@ -47,6 +88,7 @@ class Poi {
47
88
  this.Contact = contact;
48
89
  this.Address = address;
49
90
  this.userProperties = userProperties;
91
+ this.openNow = openNow;
50
92
  }
51
93
  /**
52
94
  * Converts json object to an object of type Poi.
@@ -55,7 +97,7 @@ class Poi {
55
97
  * @memberof Poi
56
98
  */
57
99
  static jsonToObj(json) {
58
- return new Poi(json.jsondata, json.city, json.idstore, json.name, json.date, json.distance, json.duration, json.latitude, json.locationid, json.longitude, json.zipcode, json.radius, json.address, json.countrycode, json.tags, json.types, json.contact, json.userProperties);
100
+ 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, json.openNow);
59
101
  }
60
102
  }
61
103
  var _default = exports.default = Poi;
@@ -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","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;A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AItC,GAAG,CACZsC,IAAI,CAACpC,QAAQ,EACboC,IAAI,CAACnC,IAAI,EACTmC,IAAI,CAAClC,OAAO,EACZkC,IAAI,CAACjC,IAAI,EACTiC,IAAI,CAAChC,IAAI,EACTgC,IAAI,CAAC/B,QAAQ,EACb+B,IAAI,CAAC9B,QAAQ,EACb8B,IAAI,CAAC7B,QAAQ,EACb6B,IAAI,CAAC5B,UAAU,EACf4B,IAAI,CAAC3B,SAAS,EACd2B,IAAI,CAAC1B,OAAO,EACZ0B,IAAI,CAACzB,MAAM,EACXyB,IAAI,CAACxB,OAAO,EACZwB,IAAI,CAACvB,WAAW,EAChBuB,IAAI,CAACtB,IAAI,EACTsB,IAAI,CAACrB,KAAK,EACVqB,IAAI,CAACpB,OAAO,EACZoB,IAAI,CAACnB,cACP,CAAC;EACH;AACF;AAAC,IAAAoB,QAAA,GAAAC,OAAA,CAAAC,OAAA,GACczC,GAAG","ignoreList":[]}
1
+ {"version":3,"names":["Poi","constructor","jsondata","city","idstore","name","date","distance","duration","latitude","locationid","longitude","zipcode","radius","address","countrycode","tags","types","contact","userProperties","openNow","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;AACA;;AAEA,MAAMA,GAAG,CAAC;EACR;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEAC,WAAWA,CACTC,QAAgB,EAChBC,IAAY,EACZC,OAAe,EACfC,IAAY,EACZC,IAAY,EACZC,QAAgB,EAChBC,QAAgB,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,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,cAAc,EACnBoB,IAAI,CAACnB,OACP,CAAC;EACH;AACF;AAAC,IAAAoB,QAAA,GAAAC,OAAA,CAAAC,OAAA,GACc1C,GAAG","ignoreList":[]}
@@ -21,9 +21,50 @@
21
21
  * @param {string} tags The tags for the POI.
22
22
  * @param {string} types The types of the POI.
23
23
  * @param {string} contact The contact for the POI.
24
+ * @param {Array} userProperties The user defined properties for the POI.
25
+ * @param {boolean} openNow Whether the POI is open now.
24
26
  */
27
+
25
28
  class Poi {
26
- constructor(jsondata, city, idstore, name, date, distance, duration, latitude, locationid, longitude, zipcode, radius, address, countrycode, tags, types, contact, userProperties) {
29
+ /** A json object representing the POI. */
30
+
31
+ /** The name of the city the POI belongs to. */
32
+
33
+ /** A unique identifier for the POI. */
34
+
35
+ /** The name of the POI. */
36
+
37
+ /** The datetime stamp. */
38
+
39
+ /** The distance between the POI and the user's location. */
40
+
41
+ /** The duration to travel to the POI from the user's location. */
42
+
43
+ /** The latitude of the POI. */
44
+
45
+ /** Location id of the POI. */
46
+
47
+ /** The longitude of the POI. */
48
+
49
+ /** The zip code of the POI. */
50
+
51
+ /** The radius of the POI. */
52
+
53
+ /** The country code of the POI. */
54
+
55
+ /** The tags for the POI. */
56
+
57
+ /** The types of the POI. */
58
+
59
+ /** The contact for the POI. */
60
+
61
+ /** The address of the POI. */
62
+
63
+ /** The user defined properties for the POI. */
64
+
65
+ /** Whether the POI is open now. */
66
+
67
+ constructor(jsondata, city, idstore, name, date, distance, duration, latitude, locationid, longitude, zipcode, radius, address, countrycode, tags, types, contact, userProperties, openNow) {
27
68
  this.Jsondata = jsondata;
28
69
  this.City = city;
29
70
  this.Idstore = idstore;
@@ -43,6 +84,7 @@ class Poi {
43
84
  this.Contact = contact;
44
85
  this.Address = address;
45
86
  this.userProperties = userProperties;
87
+ this.openNow = openNow;
46
88
  }
47
89
  /**
48
90
  * Converts json object to an object of type Poi.
@@ -51,7 +93,7 @@ class Poi {
51
93
  * @memberof Poi
52
94
  */
53
95
  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);
96
+ 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, json.openNow);
55
97
  }
56
98
  }
57
99
  export default Poi;
@@ -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","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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ACXyB,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":[]}
1
+ {"version":3,"names":["Poi","constructor","jsondata","city","idstore","name","date","distance","duration","latitude","locationid","longitude","zipcode","radius","address","countrycode","tags","types","contact","userProperties","openNow","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;AACA;;AAEA,MAAMA,GAAG,CAAC;EACR;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEAC,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,EAC7BC,OAAgB,EAChB;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,GAAGn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@ -19,27 +19,49 @@
19
19
  * @param {string} tags The tags for the POI.
20
20
  * @param {string} types The types of the POI.
21
21
  * @param {string} contact The contact for the POI.
22
+ * @param {Array} userProperties The user defined properties for the POI.
23
+ * @param {boolean} openNow Whether the POI is open now.
22
24
  */
23
25
  declare class Poi {
26
+ /** A json object representing the POI. */
24
27
  Jsondata: object;
28
+ /** The name of the city the POI belongs to. */
25
29
  City: string;
30
+ /** A unique identifier for the POI. */
26
31
  Idstore: string;
32
+ /** The name of the POI. */
27
33
  Name: string;
34
+ /** The datetime stamp. */
28
35
  Date: number;
36
+ /** The distance between the POI and the user's location. */
29
37
  Distance: number;
38
+ /** The duration to travel to the POI from the user's location. */
30
39
  Duration: number;
40
+ /** The latitude of the POI. */
31
41
  Latitude: number;
42
+ /** Location id of the POI. */
32
43
  Locationid: string;
44
+ /** The longitude of the POI. */
33
45
  Longitude: number;
46
+ /** The zip code of the POI. */
34
47
  Zipcode: string;
48
+ /** The radius of the POI. */
35
49
  Radius: number;
50
+ /** The country code of the POI. */
36
51
  Countrycode: string;
52
+ /** The tags for the POI. */
37
53
  Tags: string;
54
+ /** The types of the POI. */
38
55
  Types: string;
56
+ /** The contact for the POI. */
39
57
  Contact: string;
58
+ /** The address of the POI. */
40
59
  Address: string;
60
+ /** The user defined properties for the POI. */
41
61
  userProperties: [string: any];
42
- constructor(jsondata: object, city: string, idstore: string, name: string, date: number, distance: number, duration: number, latitude: number, locationid: string, longitude: number, zipcode: string, radius: number, address: string, countrycode: string, tags: string, types: string, contact: string, userProperties: [string: any]);
62
+ /** Whether the POI is open now. */
63
+ openNow: boolean;
64
+ constructor(jsondata: object, city: string, idstore: string, name: string, date: number, distance: number, duration: number, latitude: number, locationid: string, longitude: number, zipcode: string, radius: number, address: string, countrycode: string, tags: string, types: string, contact: string, userProperties: [string: any], openNow: boolean);
43
65
  /**
44
66
  * Converts json object to an object of type Poi.
45
67
  * @param {Object} json The json representation of the Poi.
@@ -1 +1 @@
1
- {"version":3,"file":"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EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,CAAC,MAAM,EAAE,GAAG,CAAC,EAC7B,OAAO,EAAE,OAAO;IAuBlB;;;;;OAKG;IACH,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,GAAG;CAuB3B;AACD,eAAe,GAAG,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@woosmap/react-native-plugin-geofencing",
3
- "version": "0.9.0",
3
+ "version": "0.11.0-beta.1",
4
4
  "description": "This react-native plugin extends the functionality offered by the Woosmap Geofencing Mobile SDKs. Find more about the Woosmap Geofencing SDK",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -38,7 +38,19 @@ Pod::Spec.new do |s|
38
38
  end
39
39
  end
40
40
 
41
- s.dependency "WoosmapGeofencing", '~> 4.0'
41
+ begin
42
+ s.spm_dependency "https://github.com/Woosmap/geofencing-ios-sdk-spm-release.git",
43
+ :up_to_next_major => "4.0.0"
44
+ rescue NoMethodError
45
+ s.dependency "WoosmapGeofencing", "~> 4.0"
46
+ end
47
+ # if s.respond_to?(:spm_dependency)
48
+ # s.spm_dependency "https://github.com/Woosmap/geofencing-ios-sdk-spm-release.git",
49
+ # :up_to_next_major => "4.0.0"
50
+ # else
51
+ # s.dependency "WoosmapGeofencing", "~> 4.0"
52
+ # end
53
+
42
54
  s.default_subspec = :default
43
55
 
44
56
  s.subspec "default" do |spec|