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

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