@woosmap/react-native-plugin-geofencing 0.6.0-beta.2 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/android/build.gradle +1 -1
  3. package/lib/commonjs/index.js +429 -0
  4. package/lib/commonjs/index.js.map +1 -0
  5. package/lib/commonjs/internal/Airship.js +25 -0
  6. package/lib/commonjs/internal/Airship.js.map +1 -0
  7. package/lib/commonjs/internal/IndoorBeacon.js +73 -0
  8. package/lib/commonjs/internal/IndoorBeacon.js.map +1 -0
  9. package/lib/commonjs/internal/Location.js +36 -0
  10. package/lib/commonjs/internal/Location.js.map +1 -0
  11. package/lib/commonjs/internal/MarketingCloud.js +25 -0
  12. package/lib/commonjs/internal/MarketingCloud.js.map +1 -0
  13. package/lib/commonjs/internal/Poi.js +62 -0
  14. package/lib/commonjs/internal/Poi.js.map +1 -0
  15. package/lib/commonjs/internal/Region.js +44 -0
  16. package/lib/commonjs/internal/Region.js.map +1 -0
  17. package/lib/commonjs/internal/Visit.js +32 -0
  18. package/lib/commonjs/internal/Visit.js.map +1 -0
  19. package/lib/commonjs/internal/Zoi.js +57 -0
  20. package/lib/commonjs/internal/Zoi.js.map +1 -0
  21. package/lib/commonjs/internal/nativeInterface.js +13 -0
  22. package/lib/commonjs/internal/nativeInterface.js.map +1 -0
  23. package/lib/commonjs/internal/types.js +2 -0
  24. package/lib/commonjs/internal/types.js.map +1 -0
  25. package/lib/commonjs/package.json +1 -0
  26. package/lib/module/index.js +424 -0
  27. package/lib/module/index.js.map +1 -0
  28. package/lib/module/internal/Airship.js +25 -0
  29. package/lib/module/internal/Airship.js.map +1 -0
  30. package/lib/module/internal/IndoorBeacon.js +69 -0
  31. package/lib/module/internal/IndoorBeacon.js.map +1 -0
  32. package/lib/module/internal/Location.js +32 -0
  33. package/lib/module/internal/Location.js.map +1 -0
  34. package/lib/module/internal/MarketingCloud.js +25 -0
  35. package/lib/module/internal/MarketingCloud.js.map +1 -0
  36. package/lib/module/internal/Poi.js +58 -0
  37. package/lib/module/internal/Poi.js.map +1 -0
  38. package/lib/module/internal/Region.js +40 -0
  39. package/lib/module/internal/Region.js.map +1 -0
  40. package/lib/module/internal/Visit.js +32 -0
  41. package/lib/module/internal/Visit.js.map +1 -0
  42. package/lib/module/internal/Zoi.js +57 -0
  43. package/lib/module/internal/Zoi.js.map +1 -0
  44. package/lib/module/internal/nativeInterface.js +9 -0
  45. package/lib/module/internal/nativeInterface.js.map +1 -0
  46. package/lib/module/internal/types.js +2 -0
  47. package/lib/module/internal/types.js.map +1 -0
  48. package/lib/module/package.json +1 -0
  49. package/lib/typescript/src/index.d.ts +191 -0
  50. package/lib/typescript/src/index.d.ts.map +1 -0
  51. package/lib/typescript/src/internal/Airship.d.ts +19 -0
  52. package/lib/typescript/src/internal/Airship.d.ts.map +1 -0
  53. package/lib/typescript/src/internal/IndoorBeacon.d.ts +50 -0
  54. package/lib/typescript/src/internal/IndoorBeacon.d.ts.map +1 -0
  55. package/lib/typescript/src/internal/Location.d.ts +27 -0
  56. package/lib/typescript/src/internal/Location.d.ts.map +1 -0
  57. package/lib/typescript/src/internal/MarketingCloud.d.ts +19 -0
  58. package/lib/typescript/src/internal/MarketingCloud.d.ts.map +1 -0
  59. package/lib/typescript/src/internal/Poi.d.ts +52 -0
  60. package/lib/typescript/src/internal/Poi.d.ts.map +1 -0
  61. package/lib/typescript/src/internal/Region.d.ts +35 -0
  62. package/lib/typescript/src/internal/Region.d.ts.map +1 -0
  63. package/lib/typescript/src/internal/Visit.d.ts +26 -0
  64. package/lib/typescript/src/internal/Visit.d.ts.map +1 -0
  65. package/lib/typescript/src/internal/Zoi.d.ts +50 -0
  66. package/lib/typescript/src/internal/Zoi.d.ts.map +1 -0
  67. package/lib/typescript/src/internal/nativeInterface.d.ts +3 -0
  68. package/lib/typescript/src/internal/nativeInterface.d.ts.map +1 -0
  69. package/lib/typescript/src/internal/types.d.ts +19 -0
  70. package/lib/typescript/src/internal/types.d.ts.map +1 -0
  71. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.6.0
2
+ - Upgrade Gradle plugin to 8.9 and upgrade plugin and example app dependencies
3
+
4
+
1
5
  ## 0.5.1
2
6
  - Fixes: Internal bug fixed regarding WoosmapGeofencing (4.3.6)
3
7
 
@@ -88,7 +88,7 @@ dependencies {
88
88
  implementation 'com.google.android.gms:play-services-location:21.3.0'
89
89
  implementation 'com.google.code.gson:gson:2.10.1'
90
90
  implementation "com.github.Woosmap:geofencing-core-android-sdk:core_geofence_2.+"
91
- implementation "com.webgeoservices.woosmapgeofencing:woosmap-mobile-sdk:06122024-Beta-1"
91
+ implementation "com.webgeoservices.woosmapgeofencing:woosmap-mobile-sdk:4.+"
92
92
  implementation 'com.google.android.gms:play-services-maps:19.0.0'
93
93
  implementation 'androidx.room:room-runtime:2.6.1'
94
94
  annotationProcessor 'androidx.room:room-compiler:2.6.1'
@@ -0,0 +1,429 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _reactNative = require("react-native");
8
+ var _reactNativeUuid = _interopRequireDefault(require("react-native-uuid"));
9
+ var _nativeInterface = _interopRequireDefault(require("./internal/nativeInterface"));
10
+ var _Location = _interopRequireDefault(require("./internal/Location"));
11
+ var _Region = _interopRequireDefault(require("./internal/Region"));
12
+ var _Poi = _interopRequireDefault(require("./internal/Poi"));
13
+ var _IndoorBeacon = _interopRequireDefault(require("./internal/IndoorBeacon"));
14
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
15
+ const eventEmitter = new _reactNative.NativeEventEmitter(_nativeInterface.default);
16
+ let subscriptionsLocation = {};
17
+ let subscriptionsRegion = {};
18
+ /**
19
+ * Initializes the Woosmap object
20
+ * @param arg0 A JSON object with Woosmap Key (optional) and tracking profile (`liveTracking`,`passiveTracking`,`visitsTracking`).
21
+ * @returns promise:success - A callback function that will be called on success.
22
+ error - A callback function that will be called on error.
23
+ */
24
+ function initialize(arg0) {
25
+ if (arg0 == null) {
26
+ arg0 = {};
27
+ }
28
+ return _nativeInterface.default.initialize(arg0);
29
+ }
30
+
31
+ /**
32
+ * A method that sets Woosmap private API key
33
+ * @param apiKey new API key.
34
+ * @returns promise:success - A callback function that will be called on success.
35
+ error - A callback function that will be called on error.
36
+ */
37
+ function setWoosmapApiKey(apiKey) {
38
+ return _nativeInterface.default.setWoosmapApiKey([apiKey]);
39
+ }
40
+
41
+ /**
42
+ * A method to start tracking the user's location.
43
+ * @param trackingProfile The configuration profile to use. Values could be anyone of the following: liveTracking, passiveTracking and visitsTracking.
44
+ * @returns promise:success - A callback function that will be called on success.
45
+ error - A callback function that will be called on error.
46
+ */
47
+ function startTracking(trackingProfile) {
48
+ return _nativeInterface.default.startTracking([trackingProfile]);
49
+ }
50
+
51
+ /**
52
+ * Stops tracking the user's location.
53
+ * @returns promise:success - A callback function that will be called on success.
54
+ error - A callback function that will be called on error.
55
+ */
56
+ function stopTracking() {
57
+ return _nativeInterface.default.stopTracking();
58
+ }
59
+
60
+ /**
61
+ * A method to request the required permissions to collect locations.
62
+ * @param background - A boolean value indicating whether the permissions to request is for background or foreground permission.
63
+ * @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'.
64
+ */
65
+ function requestPermissions(background) {
66
+ if (background == null) {
67
+ background = false;
68
+ }
69
+ return _nativeInterface.default.requestPermissions([background]);
70
+ }
71
+
72
+ /**
73
+ * A method to request the required permissions to collect locations.
74
+ * @returns A callback that will be called on successful authorization by the app. A callback that will be called when the app denies permission.
75
+ * The plugin will return an object with either one of the messages - BACKGROUND_LOCATION_DENIED, GRANTED, DENIED
76
+ */
77
+ function requestBLEPermissions() {
78
+ if (_reactNative.Platform.OS === 'android') {
79
+ return _nativeInterface.default.requestBLEPermissions();
80
+ } else {
81
+ return new Promise(resolve => {
82
+ resolve('GRANTED');
83
+ });
84
+ }
85
+ }
86
+
87
+ /**
88
+ * A method to check if the app has granted required permissions to track location.
89
+ * @returns A callback that will be called with the following status - GRANTED_BACKGROUND, GRANTED_FOREGROUND, DENIED
90
+ */
91
+ function getPermissionsStatus() {
92
+ return _nativeInterface.default.getPermissionsStatus();
93
+ }
94
+
95
+ /**
96
+ * A method to check if the app has granted required permissions to track location.
97
+ * @returns A callback that will be called with the following status - BACKGROUND_LOCATION_DENIED, GRANTED, DENIED
98
+ */
99
+ function getBLEPermissionsStatus() {
100
+ if (_reactNative.Platform.OS == 'android') {
101
+ return _nativeInterface.default.getBLEPermissionsStatus();
102
+ } else {
103
+ return new Promise(resolve => {
104
+ resolve('GRANTED');
105
+ });
106
+ }
107
+ }
108
+
109
+ /**
110
+ * Method will
111
+ invoke callback and pass a location object as a parameter. Method will return a watchId . This id can be used to remove a callback.
112
+ * @param success new location found callback
113
+ * @param error error status callback
114
+ * @returns watchid
115
+ */
116
+ function watchLocation(success, error) {
117
+ const watchID = _reactNativeUuid.default.v1().toString();
118
+ const successCallback = result => {
119
+ success(_Location.default.jsonToObj(result));
120
+ };
121
+ subscriptionsLocation[watchID] = [eventEmitter.addListener('geolocationDidChange', successCallback), error ? eventEmitter.addListener('geolocationError', error) : null];
122
+ return _nativeInterface.default.watchLocation(watchID);
123
+ }
124
+
125
+ /**
126
+ * A method to stop tracking location for a specified watch. If watchId is null or undefined the plugin will clear all watches.
127
+ * @param watchID Reference ID.
128
+ * @returns return promise with same id back in case of success otherwise error info
129
+ */
130
+ function clearLocationWatch(watchID) {
131
+ if (watchID == null) {
132
+ eventEmitter.removeAllListeners('geolocationDidChange');
133
+ eventEmitter.removeAllListeners('geolocationError');
134
+ subscriptionsLocation = {};
135
+ return _nativeInterface.default.clearAllLocationWatch();
136
+ } else {
137
+ const saved = subscriptionsLocation[watchID];
138
+ if (saved) {
139
+ const arg0 = saved[0];
140
+ arg0.remove();
141
+ //eventEmitter.removeListener('geolocationDidChange', arg0);
142
+ const arg1 = saved[1];
143
+ if (arg1) {
144
+ arg1.remove();
145
+ //eventEmitter.removeListener('geolocationError', arg1);
146
+ }
147
+ subscriptionsLocation[watchID] = undefined;
148
+ }
149
+ return _nativeInterface.default.clearLocationWatch(watchID);
150
+ }
151
+ }
152
+
153
+ /**
154
+ * A method to to track Regions. Method will invoke a callback with Region object. Method will return
155
+ a watch id which can be used later to remove the callback.
156
+ * @param success new location found callback
157
+ * @param error error status callback
158
+ * @returns watchid
159
+ */
160
+ function watchRegions(success, error) {
161
+ const watchID = _reactNativeUuid.default.v1().toString();
162
+ const successCallback = result => {
163
+ success(_Region.default.jsonToObj(result));
164
+ };
165
+ subscriptionsRegion[watchID] = [eventEmitter.addListener('woosmapgeofenceRegionDidChange', successCallback), error ? eventEmitter.addListener('woosmapgeofenceRegionError', error) : null];
166
+ return _nativeInterface.default.watchRegions(watchID);
167
+ }
168
+
169
+ /**
170
+ * 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.
171
+ * @param watchID Reference ID.
172
+ * @returns return promise with same id back in case of success otherwise error info
173
+ */
174
+ function clearRegionsWatch(watchID) {
175
+ if (watchID == null) {
176
+ eventEmitter.removeAllListeners('woosmapgeofenceRegionDidChange');
177
+ eventEmitter.removeAllListeners('woosmapgeofenceRegionError');
178
+ subscriptionsRegion = {};
179
+ return _nativeInterface.default.clearAllRegionsWatch();
180
+ } else {
181
+ const saved = subscriptionsRegion[watchID];
182
+ if (saved) {
183
+ const arg0 = saved[0];
184
+ arg0.remove();
185
+ //eventEmitter.removeListener('woosmapgeofenceRegionDidChange', arg0);
186
+ const arg1 = saved[1];
187
+ if (arg1) {
188
+ arg1.remove();
189
+ //eventEmitter.removeListener('woosmapgeofenceRegionError', arg1);
190
+ }
191
+ subscriptionsRegion[watchID] = undefined;
192
+ }
193
+ return _nativeInterface.default.clearRegionsWatch(watchID);
194
+ }
195
+ }
196
+ /**
197
+ * Sets Sales Force Marketing Cloud (SFMC) credentials
198
+ * @param arg0 A JSON object with SFMC credentials. Keys authenticationBaseURI, restBaseURI, client_id, client_secret and contactKey are required.
199
+ * @returns promise with A callback that will be called on success or error.
200
+ */
201
+ function setSFMCCredentials(arg0) {
202
+ return _nativeInterface.default.setSFMCCredentials(arg0);
203
+ }
204
+
205
+ /**
206
+ * 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").
207
+ * @param radius can be integer or string.
208
+ * @returns promise with A callback that will be called on success or error.
209
+ */
210
+ function setPoiRadius(radius) {
211
+ return _nativeInterface.default.setPoiRadius(radius);
212
+ }
213
+ /**
214
+ * Adds a custom region that you want to monitor.
215
+ * @param region A GeofenceRegion object with latitude, longitude, radius and type.
216
+ * @returns promise with A callback that will be called on success or error.
217
+ */
218
+
219
+ function addRegion(region) {
220
+ return _nativeInterface.default.addRegion(region);
221
+ }
222
+ /**
223
+ * Retrieve saved region info
224
+ * @param regionID If it pass return info for given region or return all region info
225
+ * @returns promise with A callback that will be called on success or error.
226
+ */
227
+ function getRegions(regionID) {
228
+ if (regionID == null) {
229
+ return _nativeInterface.default.getAllRegions().then(result => {
230
+ var formatted = [];
231
+ result.forEach(item => {
232
+ formatted.push(_Region.default.jsonToObj(item));
233
+ });
234
+ return Promise.resolve(formatted);
235
+ }).catch(e => {
236
+ return Promise.reject(e);
237
+ });
238
+ } else {
239
+ return _nativeInterface.default.getRegions(regionID).then(result => {
240
+ var formatted = [];
241
+ formatted.push(_Region.default.jsonToObj(result));
242
+ return Promise.resolve(formatted);
243
+ }).catch(e => {
244
+ return Promise.reject(e);
245
+ });
246
+ }
247
+ }
248
+
249
+ /**
250
+ * Retrieve saved location info
251
+ * @param locationID - Optional in case of location id pass it return only that location info
252
+ * @returns promise with A callback that will be called on success or error.
253
+ */
254
+ function getLocations(locationID) {
255
+ if (locationID == null) {
256
+ return _nativeInterface.default.getAllLocations().then(result => {
257
+ var formatted = [];
258
+ result.forEach(item => {
259
+ formatted.push(_Location.default.jsonToObj(item));
260
+ });
261
+ return Promise.resolve(formatted);
262
+ }).catch(e => {
263
+ return Promise.reject(e);
264
+ });
265
+ } else {
266
+ return _nativeInterface.default.getLocation(locationID).then(result => {
267
+ var formatted = [];
268
+ formatted.push(_Location.default.jsonToObj(result));
269
+ return Promise.resolve(formatted);
270
+ }).catch(e => {
271
+ return Promise.reject(e);
272
+ });
273
+ }
274
+ }
275
+
276
+ /**
277
+ * Retrieve saved POI info
278
+ * @param poiID - Optional in case of poi id (LocationID or StoreID) pass it return only that POI info
279
+ * @returns promise with A callback that will be called on success or error.
280
+ */
281
+ function getPois(poiID) {
282
+ if (poiID == null) {
283
+ return _nativeInterface.default.getAllPois().then(result => {
284
+ var formatted = [];
285
+ result.forEach(item => {
286
+ formatted.push(_Poi.default.jsonToObj(item));
287
+ });
288
+ return Promise.resolve(formatted);
289
+ }).catch(e => {
290
+ return Promise.reject(e);
291
+ });
292
+ } else {
293
+ return _nativeInterface.default.getPoi(poiID).then(result => {
294
+ var formatted = [];
295
+ formatted.push(_Poi.default.jsonToObj(result));
296
+ return Promise.resolve(formatted);
297
+ }).catch(e => {
298
+ return Promise.reject(e);
299
+ });
300
+ }
301
+ }
302
+
303
+ /**
304
+ * Remove saved region info
305
+ * @param regionID If it pass remove info for given region or removes all region info
306
+ * @returns promise with A callback that will be called on success or error.
307
+ */
308
+ function removeRegions(regionID) {
309
+ if (regionID == null) {
310
+ return _nativeInterface.default.removeAllRegions();
311
+ } else {
312
+ return _nativeInterface.default.removeRegion(regionID);
313
+ }
314
+ }
315
+
316
+ /**
317
+ * Remove saved location info
318
+ * @returns promise with A callback that will be called on success or error.
319
+ */
320
+ function removeLocations() {
321
+ return _nativeInterface.default.removeAllLocations();
322
+ }
323
+
324
+ /**
325
+ * Remove saved POI info
326
+ * @returns promise with A callback that will be called on success or error.
327
+ */
328
+ function removePois() {
329
+ return _nativeInterface.default.removeAllPois();
330
+ }
331
+ /**
332
+ * if preset tracking profiles don’t fit with your use cases, you can build your own profile and uses the startCustomTracking() method.
333
+ * There are two way to host the json file:
334
+ * - included in the client application (local)
335
+ * - hosted externally in a file folder in your information system (external)
336
+ * @param sourceType local/external
337
+ * @param source location of profile to be fetch
338
+ * @returns promise with A callback that will be called on success or error.
339
+ */
340
+ function startCustomTracking(sourceType, source) {
341
+ return _nativeInterface.default.startCustomTracking(sourceType, source);
342
+ }
343
+
344
+ /**
345
+ * Retrieve Beacon info for venue
346
+ * @param venueID - Optional venue id
347
+ * @param ref - Optional beacon id return by region event
348
+ * @returns promise with A callback that will be called on success or error.
349
+ */
350
+ function getIndoorBeacons(venueID, ref) {
351
+ if (venueID == null) {
352
+ return _nativeInterface.default.getAllIndoorBeacons().then(result => {
353
+ var formatted = [];
354
+ result.forEach(item => {
355
+ if (ref !== undefined) {
356
+ if (item.identifier === ref) {
357
+ formatted.push(_IndoorBeacon.default.jsonToObj(item));
358
+ }
359
+ } else {
360
+ formatted.push(_IndoorBeacon.default.jsonToObj(item));
361
+ }
362
+ });
363
+ return Promise.resolve(formatted);
364
+ }).catch(e => {
365
+ return Promise.reject(e);
366
+ });
367
+ } else {
368
+ return _nativeInterface.default.getIndoorBeacons(venueID).then(result => {
369
+ var formatted = [];
370
+ result.forEach(item => {
371
+ if (ref !== undefined) {
372
+ if (item.identifier === ref) {
373
+ formatted.push(_IndoorBeacon.default.jsonToObj(item));
374
+ }
375
+ } else {
376
+ formatted.push(_IndoorBeacon.default.jsonToObj(item));
377
+ }
378
+ });
379
+ return Promise.resolve(formatted);
380
+ }).catch(e => {
381
+ return Promise.reject(e);
382
+ });
383
+ }
384
+ }
385
+
386
+ /**
387
+ * Remove saved POI info
388
+ * @returns promise with A callback that will be called on success or error.
389
+ */
390
+ function removeIndoorBeacons() {
391
+ return _nativeInterface.default.removeIndoorBeacons();
392
+ }
393
+
394
+ /**
395
+ * Remove saved POI info
396
+ * @returns promise with A callback that will be called on success or error.
397
+ */
398
+ function refreshPois() {
399
+ return _nativeInterface.default.refreshPois();
400
+ }
401
+ const WoosmapGeofencing = {
402
+ initialize,
403
+ setWoosmapApiKey,
404
+ startTracking,
405
+ requestPermissions,
406
+ requestBLEPermissions,
407
+ getPermissionsStatus,
408
+ getBLEPermissionsStatus,
409
+ stopTracking,
410
+ watchLocation,
411
+ clearLocationWatch,
412
+ watchRegions,
413
+ clearRegionsWatch,
414
+ setSFMCCredentials,
415
+ setPoiRadius,
416
+ addRegion,
417
+ getRegions,
418
+ removeRegions,
419
+ getLocations,
420
+ removeLocations,
421
+ getPois,
422
+ removePois,
423
+ startCustomTracking,
424
+ getIndoorBeacons,
425
+ removeIndoorBeacons,
426
+ refreshPois
427
+ };
428
+ var _default = exports.default = WoosmapGeofencing;
429
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNative","require","_reactNativeUuid","_interopRequireDefault","_nativeInterface","_Location","_Region","_Poi","_IndoorBeacon","e","__esModule","default","eventEmitter","NativeEventEmitter","PluginGeofencing","subscriptionsLocation","subscriptionsRegion","initialize","arg0","setWoosmapApiKey","apiKey","startTracking","trackingProfile","stopTracking","requestPermissions","background","requestBLEPermissions","Platform","OS","Promise","resolve","getPermissionsStatus","getBLEPermissionsStatus","watchLocation","success","error","watchID","uuid","v1","toString","successCallback","result","Location","jsonToObj","addListener","clearLocationWatch","removeAllListeners","clearAllLocationWatch","saved","remove","arg1","undefined","watchRegions","Region","clearRegionsWatch","clearAllRegionsWatch","setSFMCCredentials","setPoiRadius","radius","addRegion","region","getRegions","regionID","getAllRegions","then","formatted","forEach","item","push","catch","reject","getLocations","locationID","getAllLocations","getLocation","getPois","poiID","getAllPois","Poi","getPoi","removeRegions","removeAllRegions","removeRegion","removeLocations","removeAllLocations","removePois","removeAllPois","startCustomTracking","sourceType","source","getIndoorBeacons","venueID","ref","getAllIndoorBeacons","identifier","IndoorBeacon","removeIndoorBeacons","refreshPois","WoosmapGeofencing","_default","exports"],"sourceRoot":"../../src","sources":["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C;IAC1B,CAAC,CAAC;EACN;AACF;;AAEA;AACA;AACA;AACA;AACA,SAASuF,mBAAmBA,CAAA,EAAoB;EAC9C,OAAOlF,wBAAgB,CAACkF,mBAAmB,CAAC,CAAC;AAC/C;;AAEA;AACA;AACA;AACA;AACA,SAASC,WAAWA,CAAA,EAAoB;EACtC,OAAOnF,wBAAgB,CAACmF,WAAW,CAAC,CAAC;AACvC;AAYA,MAAMC,iBAAiB,GAAG;EACxBjF,UAAU;EACVE,gBAAgB;EAChBE,aAAa;EACbG,kBAAkB;EAClBE,qBAAqB;EACrBK,oBAAoB;EACpBC,uBAAuB;EACvBT,YAAY;EACZU,aAAa;EACbY,kBAAkB;EAClBO,YAAY;EACZE,iBAAiB;EACjBE,kBAAkB;EAClBC,YAAY;EACZE,SAAS;EACTE,UAAU;EACVmB,aAAa;EACbT,YAAY;EACZY,eAAe;EACfR,OAAO;EACPU,UAAU;EACVE,mBAAmB;EACnBG,gBAAgB;EAChBM,mBAAmB;EACnBC;AACF,CAAC;AAAC,IAAAE,QAAA,GAAAC,OAAA,CAAAzF,OAAA,GAEauF,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,73 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ /**
8
+ * Represents an indoor beacon.
9
+ * @class
10
+ * @param {string} beaconId - The ID of the beacon.
11
+ * @param {number} major - The major version number of the beacon.
12
+ * @param {number} minor - The minor version number of the beacon.
13
+ * @param {string} venueId - The ID of the venue where the beacon is located.
14
+ * @param {string} identifier - The identifier of the beacon.
15
+ * @param {number} latitude - The latitude coordinate of the beacon's location.
16
+ * @param {number} longitude - The longitude coordinate of the beacon's location.
17
+ * @param {number} date - The date when the beacon was created.
18
+ * @param {Object} properties - custom property share with beacon
19
+ */
20
+ class IndoorBeacon {
21
+ /// The UUID of the beacon.
22
+
23
+ /// The Major version of the beacon.
24
+
25
+ /// The Minor version of the beacon.
26
+
27
+ /// The ID of the venue to which this beacon belongs to.
28
+
29
+ /// Woosmap identifier of the beacon.
30
+
31
+ /// Latitude of the beacon.
32
+
33
+ /// Longitude of the beacon.
34
+
35
+ /// The date when the beacon was added/updated.
36
+
37
+ /// Custom properties associated to the beacon.
38
+
39
+ /**
40
+ * Creates a new instance of the Beacon class.
41
+ * @param {string} beaconId - The ID of the beacon.
42
+ * @param {number} major - The major version number of the beacon.
43
+ * @param {number} minor - The minor version number of the beacon.
44
+ * @param {string} venueId - The ID of the venue where the beacon is located.
45
+ * @param {string} identifier - The identifier of the beacon.
46
+ * @param {number} latitude - The latitude coordinate of the beacon's location.
47
+ * @param {number} longitude - The longitude coordinate of the beacon's location.
48
+ * @param {number} date - The date when the beacon was created.
49
+ * @param {Object} properties - custom property share with beacon
50
+ */
51
+ constructor(beaconId, major, minor, venueId, identifier, latitude, longitude, date, properties) {
52
+ this.beaconId = beaconId;
53
+ this.major = major;
54
+ this.minor = minor;
55
+ this.venueId = venueId;
56
+ this.identifier = identifier;
57
+ this.latitude = latitude;
58
+ this.longitude = longitude;
59
+ this.date = date;
60
+ this.properties = properties;
61
+ }
62
+ /**
63
+ * Converts json object to an object of type IndoorBeacon.
64
+ * @param {Object} json The json representation of the IndoorBeacon.
65
+ * @returns Object
66
+ * @memberof Poi
67
+ */
68
+ static jsonToObj(json) {
69
+ return new IndoorBeacon(json.beaconId, json.major, json.minor, json.venueId, json.identifier, json.latitude, json.longitude, json.date, json.properties);
70
+ }
71
+ }
72
+ var _default = exports.default = IndoorBeacon;
73
+ //# sourceMappingURL=IndoorBeacon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["IndoorBeacon","constructor","beaconId","major","minor","venueId","identifier","latitude","longitude","date","properties","jsonToObj","json","_default","exports","default"],"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;AAAC,IAAAG,QAAA,GAAAC,OAAA,CAAAC,OAAA,GACcf,YAAY","ignoreList":[]}
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ /**
8
+ * @classdesc A class that represents the location object.
9
+ * @constructs Location
10
+ * @param {number} date The datetime stamp.
11
+ * @param {number} latitude The latitude of the location.
12
+
13
+ * @param {string} Locationdescription The description of the location.
14
+ * @param {string} Locationid A unique identifier for the location.
15
+ * @param {number} longitude The longitude of the location.
16
+ */
17
+ class Location {
18
+ constructor(date, latitude, locationdescription, locationid, longitude) {
19
+ this.Date = date;
20
+ this.Latitude = latitude;
21
+ this.Locationdescription = locationdescription;
22
+ this.Locationid = locationid;
23
+ this.Longitude = longitude;
24
+ }
25
+ /**
26
+ * Converts json object to an object of type Location.
27
+ * @param {Object} json The json representation of the Location.
28
+ * @returns Object
29
+ * @memberof Location
30
+ */
31
+ static jsonToObj(json) {
32
+ return new Location(json.date, json.latitude, json.locationdescription, json.locationid, json.longitude);
33
+ }
34
+ }
35
+ var _default = exports.default = Location;
36
+ //# 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","_default","exports","default"],"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;AAAC,IAAAQ,QAAA,GAAAC,OAAA,CAAAC,OAAA,GACchB,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":[]}