@woosmap/react-native-plugin-geofencing 0.1.18 → 0.1.19
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/package.json +1 -145
- package/android/build/.transforms/aa385bad2a83168414a07acde96b788d/results.bin +0 -1
- package/android/build/.transforms/aa385bad2a83168414a07acde96b788d/transformed/classes/classes.dex +0 -0
- package/android/build/generated/source/buildConfig/debug/com/reactnativeplugingeofencing/BuildConfig.java +0 -10
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/AndroidManifest.xml +0 -11
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/output-metadata.json +0 -16
- package/android/build/intermediates/aar_metadata/debug/aar-metadata.properties +0 -2
- package/android/build/intermediates/annotation_processor_list/debug/annotationProcessors.json +0 -1
- package/android/build/intermediates/compile_library_classes_jar/debug/classes.jar +0 -0
- package/android/build/intermediates/compile_r_class_jar/debug/R.jar +0 -0
- package/android/build/intermediates/compile_symbol_list/debug/R.txt +0 -2107
- package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +0 -2
- package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +0 -2
- package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +0 -2
- package/android/build/intermediates/incremental/packageDebugResources/compile-file-map.properties +0 -1
- package/android/build/intermediates/incremental/packageDebugResources/merger.xml +0 -2
- package/android/build/intermediates/javac/debug/classes/com/reactnativeplugingeofencing/BuildConfig.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/reactnativeplugingeofencing/PluginGeofencingModule.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/reactnativeplugingeofencing/PluginGeofencingPackage.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/reactnativeplugingeofencing/WoosLocationReadyListener.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/reactnativeplugingeofencing/WoosRegionReadyListener.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/reactnativeplugingeofencing/WoosmapMessageAndKey.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/reactnativeplugingeofencing/WoosmapTask.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/reactnativeplugingeofencing/WoosmapUtil.class +0 -0
- package/android/build/intermediates/library_manifest/debug/AndroidManifest.xml +0 -11
- package/android/build/intermediates/local_only_symbol_list/debug/R-def.txt +0 -2
- package/android/build/intermediates/manifest_merge_blame_file/debug/manifest-merger-blame-debug-report.txt +0 -13
- package/android/build/intermediates/navigation_json/debug/navigation.json +0 -1
- package/android/build/intermediates/packaged_manifests/debug/output-metadata.json +0 -16
- package/android/build/intermediates/runtime_library_classes_jar/debug/classes.jar +0 -0
- package/android/build/intermediates/symbol_list_with_package_name/debug/package-aware-r.txt +0 -1576
- package/android/build/outputs/logs/manifest-merger-debug-report.txt +0 -37
- package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/lib/commonjs/index.js +0 -379
- package/lib/commonjs/index.js.map +0 -1
- package/lib/commonjs/internal/Airship.js +0 -35
- package/lib/commonjs/internal/Airship.js.map +0 -1
- package/lib/commonjs/internal/Location.js +0 -54
- package/lib/commonjs/internal/Location.js.map +0 -1
- package/lib/commonjs/internal/MarketingCloud.js +0 -35
- package/lib/commonjs/internal/MarketingCloud.js.map +0 -1
- package/lib/commonjs/internal/Poi.js +0 -103
- package/lib/commonjs/internal/Poi.js.map +0 -1
- package/lib/commonjs/internal/Region.js +0 -66
- package/lib/commonjs/internal/Region.js.map +0 -1
- package/lib/commonjs/internal/Visit.js +0 -50
- package/lib/commonjs/internal/Visit.js.map +0 -1
- package/lib/commonjs/internal/Zoi.js +0 -97
- package/lib/commonjs/internal/Zoi.js.map +0 -1
- package/lib/commonjs/internal/nativeInterface.js +0 -18
- package/lib/commonjs/internal/nativeInterface.js.map +0 -1
- package/lib/commonjs/internal/types.js +0 -2
- package/lib/commonjs/internal/types.js.map +0 -1
- package/lib/module/index.js +0 -363
- package/lib/module/index.js.map +0 -1
- package/lib/module/internal/Airship.js +0 -33
- package/lib/module/internal/Airship.js.map +0 -1
- package/lib/module/internal/Location.js +0 -46
- package/lib/module/internal/Location.js.map +0 -1
- package/lib/module/internal/MarketingCloud.js +0 -33
- package/lib/module/internal/MarketingCloud.js.map +0 -1
- package/lib/module/internal/Poi.js +0 -95
- package/lib/module/internal/Poi.js.map +0 -1
- package/lib/module/internal/Region.js +0 -58
- package/lib/module/internal/Region.js.map +0 -1
- package/lib/module/internal/Visit.js +0 -48
- package/lib/module/internal/Visit.js.map +0 -1
- package/lib/module/internal/Zoi.js +0 -95
- package/lib/module/internal/Zoi.js.map +0 -1
- package/lib/module/internal/nativeInterface.js +0 -9
- package/lib/module/internal/nativeInterface.js.map +0 -1
- package/lib/module/internal/types.js +0 -2
- package/lib/module/internal/types.js.map +0 -1
- package/lib/typescript/__tests__/index.test.d.ts +0 -0
- package/lib/typescript/index.d.ts +0 -156
- package/lib/typescript/internal/Airship.d.ts +0 -18
- package/lib/typescript/internal/Location.d.ts +0 -26
- package/lib/typescript/internal/MarketingCloud.d.ts +0 -18
- package/lib/typescript/internal/Poi.d.ts +0 -50
- package/lib/typescript/internal/Region.d.ts +0 -32
- package/lib/typescript/internal/Visit.d.ts +0 -25
- package/lib/typescript/internal/Zoi.d.ts +0 -49
- package/lib/typescript/internal/nativeInterface.d.ts +0 -2
- package/lib/typescript/internal/types.d.ts +0 -18
package/lib/module/index.js
DELETED
|
@@ -1,363 +0,0 @@
|
|
|
1
|
-
import { NativeEventEmitter } 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
|
-
const eventEmitter = new NativeEventEmitter(PluginGeofencing);
|
|
8
|
-
let subscriptionsLocation = {};
|
|
9
|
-
let subscriptionsRegion = {};
|
|
10
|
-
/**
|
|
11
|
-
* Initializes the Woosmap object
|
|
12
|
-
* @param arg0 A JSON object with Woosmap Key (optional) and tracking profile (`liveTracking`,`passiveTracking`,`visitsTracking`).
|
|
13
|
-
* @returns promise:success - A callback function that will be called on success.
|
|
14
|
-
error - A callback function that will be called on error.
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
function initialize(arg0) {
|
|
18
|
-
if (arg0 == null) {
|
|
19
|
-
arg0 = {};
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
return PluginGeofencing.initialize(arg0);
|
|
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
|
-
|
|
31
|
-
|
|
32
|
-
function setWoosmapApiKey(apiKey) {
|
|
33
|
-
return PluginGeofencing.setWoosmapApiKey([apiKey]);
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* A method to start tracking the user's location.
|
|
37
|
-
* @param trackingProfile The configuration profile to use. Values could be anyone of the following: liveTracking, passiveTracking and visitsTracking.
|
|
38
|
-
* @returns promise:success - A callback function that will be called on success.
|
|
39
|
-
error - A callback function that will be called on error.
|
|
40
|
-
*/
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
function startTracking(trackingProfile) {
|
|
44
|
-
return PluginGeofencing.startTracking([trackingProfile]);
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Stops tracking the user's location.
|
|
48
|
-
* @returns promise:success - A callback function that will be called on success.
|
|
49
|
-
error - A callback function that will be called on error.
|
|
50
|
-
*/
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
function stopTracking() {
|
|
54
|
-
return PluginGeofencing.stopTracking();
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* A method to request the required permissions to collect locations.
|
|
58
|
-
* @param background - A boolean value indicating whether the permissions to request is for background or foreground permission.
|
|
59
|
-
* @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'.
|
|
60
|
-
*/
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
function requestPermissions(background) {
|
|
64
|
-
if (background == null) {
|
|
65
|
-
background = false;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
return PluginGeofencing.requestPermissions([background]);
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* A method to check if the app has granted required permissions to track location.
|
|
72
|
-
* @returns A callback that will be called with the following status - GRANTED_BACKGROUND, GRANTED_FOREGROUND, DENIED
|
|
73
|
-
*/
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
function getPermissionsStatus() {
|
|
77
|
-
return PluginGeofencing.getPermissionsStatus();
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Method will
|
|
81
|
-
invoke callback and pass a location object as a parameter. Method will return a watchId . This id can be used to remove a callback.
|
|
82
|
-
* @param success new location found callback
|
|
83
|
-
* @param error error status callback
|
|
84
|
-
* @returns watchid
|
|
85
|
-
*/
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
function watchLocation(success, error) {
|
|
89
|
-
const watchID = uuid.v1().toString();
|
|
90
|
-
|
|
91
|
-
const successCallback = result => {
|
|
92
|
-
success(Location.jsonToObj(result));
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
subscriptionsLocation[watchID] = [eventEmitter.addListener('geolocationDidChange', successCallback), error ? eventEmitter.addListener('geolocationError', error) : null];
|
|
96
|
-
return PluginGeofencing.watchLocation(watchID);
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* A method to stop tracking location for a specified watch. If watchId is null or undefined the plugin will clear all watches.
|
|
100
|
-
* @param watchID Reference ID.
|
|
101
|
-
* @returns return promise with same id back in case of success otherwise error info
|
|
102
|
-
*/
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
function clearLocationWatch(watchID) {
|
|
106
|
-
if (watchID == null) {
|
|
107
|
-
eventEmitter.removeAllListeners('geolocationDidChange');
|
|
108
|
-
eventEmitter.removeAllListeners('geolocationError');
|
|
109
|
-
subscriptionsLocation = {};
|
|
110
|
-
return PluginGeofencing.clearAllLocationWatch();
|
|
111
|
-
} else {
|
|
112
|
-
const saved = subscriptionsLocation[watchID];
|
|
113
|
-
|
|
114
|
-
if (saved) {
|
|
115
|
-
const arg0 = saved[0];
|
|
116
|
-
eventEmitter.removeListener('geolocationDidChange', arg0);
|
|
117
|
-
const arg1 = saved[1];
|
|
118
|
-
|
|
119
|
-
if (arg1) {
|
|
120
|
-
eventEmitter.removeListener('geolocationError', arg1);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
subscriptionsLocation[watchID] = undefined;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
return PluginGeofencing.clearLocationWatch(watchID);
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
/**
|
|
130
|
-
* A method to to track Regions. Method will invoke a callback with Region object. Method will return
|
|
131
|
-
a watch id which can be used later to remove the callback.
|
|
132
|
-
* @param success new location found callback
|
|
133
|
-
* @param error error status callback
|
|
134
|
-
* @returns watchid
|
|
135
|
-
*/
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
function watchRegions(success, error) {
|
|
139
|
-
const watchID = uuid.v1().toString();
|
|
140
|
-
|
|
141
|
-
const successCallback = result => {
|
|
142
|
-
success(Region.jsonToObj(result));
|
|
143
|
-
};
|
|
144
|
-
|
|
145
|
-
subscriptionsRegion[watchID] = [eventEmitter.addListener('woosmapgeofenceRegionDidChange', successCallback), error ? eventEmitter.addListener('woosmapgeofenceRegionError', error) : null];
|
|
146
|
-
return PluginGeofencing.watchRegions(watchID);
|
|
147
|
-
}
|
|
148
|
-
/**
|
|
149
|
-
* 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.
|
|
150
|
-
* @param watchID Reference ID.
|
|
151
|
-
* @returns return promise with same id back in case of success otherwise error info
|
|
152
|
-
*/
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
function clearRegionsWatch(watchID) {
|
|
156
|
-
if (watchID == null) {
|
|
157
|
-
eventEmitter.removeAllListeners('woosmapgeofenceRegionDidChange');
|
|
158
|
-
eventEmitter.removeAllListeners('woosmapgeofenceRegionError');
|
|
159
|
-
subscriptionsRegion = {};
|
|
160
|
-
return PluginGeofencing.clearAllRegionsWatch();
|
|
161
|
-
} else {
|
|
162
|
-
const saved = subscriptionsRegion[watchID];
|
|
163
|
-
|
|
164
|
-
if (saved) {
|
|
165
|
-
const arg0 = saved[0];
|
|
166
|
-
eventEmitter.removeListener('woosmapgeofenceRegionDidChange', arg0);
|
|
167
|
-
const arg1 = saved[1];
|
|
168
|
-
|
|
169
|
-
if (arg1) {
|
|
170
|
-
eventEmitter.removeListener('woosmapgeofenceRegionError', arg1);
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
subscriptionsRegion[watchID] = undefined;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
return PluginGeofencing.clearRegionsWatch(watchID);
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
/**
|
|
180
|
-
* Sets Sales Force Marketing Cloud (SFMC) credentials
|
|
181
|
-
* @param arg0 A JSON object with SFMC credentials. Keys authenticationBaseURI, restBaseURI, client_id, client_secret and contactKey are required.
|
|
182
|
-
* @returns promise with A callback that will be called on success or error.
|
|
183
|
-
*/
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
function setSFMCCredentials(arg0) {
|
|
187
|
-
return PluginGeofencing.setSFMCCredentials(arg0);
|
|
188
|
-
}
|
|
189
|
-
/**
|
|
190
|
-
* 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").
|
|
191
|
-
* @param radius can be integer or string.
|
|
192
|
-
* @returns promise with A callback that will be called on success or error.
|
|
193
|
-
*/
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
function setPoiRadius(radius) {
|
|
197
|
-
return PluginGeofencing.setPoiRadius(radius);
|
|
198
|
-
}
|
|
199
|
-
/**
|
|
200
|
-
* Adds a custom region that you want to monitor.
|
|
201
|
-
* @param region A GeofenceRegion object with latitude, longitude, radius and type.
|
|
202
|
-
* @returns promise with A callback that will be called on success or error.
|
|
203
|
-
*/
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
function addRegion(region) {
|
|
207
|
-
return PluginGeofencing.addRegion(region);
|
|
208
|
-
}
|
|
209
|
-
/**
|
|
210
|
-
* Retrieve saved region info
|
|
211
|
-
* @param regionID If it pass return info for given region or return all region info
|
|
212
|
-
* @returns promise with A callback that will be called on success or error.
|
|
213
|
-
*/
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
function getRegions(regionID) {
|
|
217
|
-
if (regionID == null) {
|
|
218
|
-
return PluginGeofencing.getAllRegions().then(result => {
|
|
219
|
-
var formatted = [];
|
|
220
|
-
result.forEach(item => {
|
|
221
|
-
formatted.push(Region.jsonToObj(item));
|
|
222
|
-
});
|
|
223
|
-
return Promise.resolve(formatted);
|
|
224
|
-
}).catch(e => {
|
|
225
|
-
return Promise.reject(e);
|
|
226
|
-
});
|
|
227
|
-
} else {
|
|
228
|
-
return PluginGeofencing.getRegions(regionID).then(result => {
|
|
229
|
-
var formatted = [];
|
|
230
|
-
formatted.push(Region.jsonToObj(result));
|
|
231
|
-
return Promise.resolve(formatted);
|
|
232
|
-
}).catch(e => {
|
|
233
|
-
return Promise.reject(e);
|
|
234
|
-
});
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
/**
|
|
238
|
-
* Retrieve saved location info
|
|
239
|
-
* @param locationID - Optional in case of location id pass it return only that location info
|
|
240
|
-
* @returns promise with A callback that will be called on success or error.
|
|
241
|
-
*/
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
function getLocations(locationID) {
|
|
245
|
-
if (locationID == null) {
|
|
246
|
-
return PluginGeofencing.getAllLocations().then(result => {
|
|
247
|
-
var formatted = [];
|
|
248
|
-
result.forEach(item => {
|
|
249
|
-
formatted.push(Location.jsonToObj(item));
|
|
250
|
-
});
|
|
251
|
-
return Promise.resolve(formatted);
|
|
252
|
-
}).catch(e => {
|
|
253
|
-
return Promise.reject(e);
|
|
254
|
-
});
|
|
255
|
-
} else {
|
|
256
|
-
return PluginGeofencing.getLocation(locationID).then(result => {
|
|
257
|
-
var formatted = [];
|
|
258
|
-
formatted.push(Location.jsonToObj(result));
|
|
259
|
-
return Promise.resolve(formatted);
|
|
260
|
-
}).catch(e => {
|
|
261
|
-
return Promise.reject(e);
|
|
262
|
-
});
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
/**
|
|
266
|
-
* Retrieve saved POI info
|
|
267
|
-
* @param poiID - Optional in case of poi id (LocationID or StoreID) pass it return only that POI info
|
|
268
|
-
* @returns promise with A callback that will be called on success or error.
|
|
269
|
-
*/
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
function getPois(poiID) {
|
|
273
|
-
if (poiID == null) {
|
|
274
|
-
return PluginGeofencing.getAllPois().then(result => {
|
|
275
|
-
var formatted = [];
|
|
276
|
-
result.forEach(item => {
|
|
277
|
-
formatted.push(Poi.jsonToObj(item));
|
|
278
|
-
});
|
|
279
|
-
return Promise.resolve(formatted);
|
|
280
|
-
}).catch(e => {
|
|
281
|
-
return Promise.reject(e);
|
|
282
|
-
});
|
|
283
|
-
} else {
|
|
284
|
-
return PluginGeofencing.getPoi(poiID).then(result => {
|
|
285
|
-
var formatted = [];
|
|
286
|
-
formatted.push(Poi.jsonToObj(result));
|
|
287
|
-
return Promise.resolve(formatted);
|
|
288
|
-
}).catch(e => {
|
|
289
|
-
return Promise.reject(e);
|
|
290
|
-
});
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
/**
|
|
294
|
-
* Remove saved region info
|
|
295
|
-
* @param regionID If it pass remove info for given region or removes all region info
|
|
296
|
-
* @returns promise with A callback that will be called on success or error.
|
|
297
|
-
*/
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
function removeRegions(regionID) {
|
|
301
|
-
if (regionID == null) {
|
|
302
|
-
return PluginGeofencing.removeAllRegions();
|
|
303
|
-
} else {
|
|
304
|
-
return PluginGeofencing.removeRegion(regionID);
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
/**
|
|
308
|
-
* Remove saved location info
|
|
309
|
-
* @returns promise with A callback that will be called on success or error.
|
|
310
|
-
*/
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
function removeLocations() {
|
|
314
|
-
return PluginGeofencing.removeAllLocations();
|
|
315
|
-
}
|
|
316
|
-
/**
|
|
317
|
-
* Remove saved POI info
|
|
318
|
-
* @returns promise with A callback that will be called on success or error.
|
|
319
|
-
*/
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
function removePois() {
|
|
323
|
-
return PluginGeofencing.removeAllPois();
|
|
324
|
-
}
|
|
325
|
-
/**
|
|
326
|
-
* if preset tracking profiles don’t fit with your use cases, you can build your own profile and uses the startCustomTracking() method.
|
|
327
|
-
* There are two way to host the json file:
|
|
328
|
-
* - included in the client application (local)
|
|
329
|
-
* - hosted externally in a file folder in your information system (external)
|
|
330
|
-
* @param sourceType local/external
|
|
331
|
-
* @param source location of profile to be fetch
|
|
332
|
-
* @returns promise with A callback that will be called on success or error.
|
|
333
|
-
*/
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
function startCustomTracking(sourceType, source) {
|
|
337
|
-
return PluginGeofencing.startCustomTracking(sourceType, source);
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
const WoosmapGeofencing = {
|
|
341
|
-
initialize,
|
|
342
|
-
setWoosmapApiKey,
|
|
343
|
-
startTracking,
|
|
344
|
-
requestPermissions,
|
|
345
|
-
getPermissionsStatus,
|
|
346
|
-
stopTracking,
|
|
347
|
-
watchLocation,
|
|
348
|
-
clearLocationWatch,
|
|
349
|
-
watchRegions,
|
|
350
|
-
clearRegionsWatch,
|
|
351
|
-
setSFMCCredentials,
|
|
352
|
-
setPoiRadius,
|
|
353
|
-
addRegion,
|
|
354
|
-
getRegions,
|
|
355
|
-
removeRegions,
|
|
356
|
-
getLocations,
|
|
357
|
-
removeLocations,
|
|
358
|
-
getPois,
|
|
359
|
-
removePois,
|
|
360
|
-
startCustomTracking
|
|
361
|
-
};
|
|
362
|
-
export default WoosmapGeofencing;
|
|
363
|
-
//# sourceMappingURL=index.js.map
|
package/lib/module/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["NativeEventEmitter","uuid","PluginGeofencing","Location","Region","Poi","eventEmitter","subscriptionsLocation","subscriptionsRegion","initialize","arg0","setWoosmapApiKey","apiKey","startTracking","trackingProfile","stopTracking","requestPermissions","background","getPermissionsStatus","watchLocation","success","error","watchID","v1","toString","successCallback","result","jsonToObj","addListener","clearLocationWatch","removeAllListeners","clearAllLocationWatch","saved","removeListener","arg1","undefined","watchRegions","clearRegionsWatch","clearAllRegionsWatch","setSFMCCredentials","setPoiRadius","radius","addRegion","region","getRegions","regionID","getAllRegions","then","formatted","forEach","item","push","Promise","resolve","catch","e","reject","getLocations","locationID","getAllLocations","getLocation","getPois","poiID","getAllPois","getPoi","removeRegions","removeAllRegions","removeRegion","removeLocations","removeAllLocations","removePois","removeAllPois","startCustomTracking","sourceType","source","WoosmapGeofencing"],"sources":["index.tsx"],"sourcesContent":["import { NativeEventEmitter } from 'react-native';\nimport uuid from 'react-native-uuid';\nimport PluginGeofencing from './internal/nativeInterface';\nimport Location from './internal/Location';\nimport Region from './internal/Region';\nimport Poi from './internal/Poi';\nimport type {\n GeofenceRegion,\n RegionType,\n ProfileSource,\n} from './internal/types';\n\nconst eventEmitter = new NativeEventEmitter(PluginGeofencing);\n\nlet subscriptionsLocation: any = {};\nlet subscriptionsRegion: any = {};\n/**\n * Initializes the Woosmap object\n * @param arg0 A JSON object with Woosmap Key (optional) and tracking profile (`liveTracking`,`passiveTracking`,`visitsTracking`).\n * @returns promise:success - A callback function that will be called on success.\n error - A callback function that will be called on error.\n */\nfunction initialize(arg0?: any): Promise<string> {\n if (arg0 == null) {\n arg0 = {};\n }\n return PluginGeofencing.initialize(arg0);\n}\n\n/**\n * A method that sets Woosmap private API key\n * @param apiKey new API key.\n * @returns promise:success - A callback function that will be called on success.\n error - A callback function that will be called on error.\n */\nfunction setWoosmapApiKey(apiKey: string): Promise<string> {\n return PluginGeofencing.setWoosmapApiKey([apiKey]);\n}\n\n/**\n * A method to start tracking the user's location.\n * @param trackingProfile The configuration profile to use. Values could be anyone of the following: liveTracking, passiveTracking and visitsTracking.\n * @returns promise:success - A callback function that will be called on success.\n error - A callback function that will be called on error.\n */\nfunction startTracking(trackingProfile: string): Promise<string> {\n return PluginGeofencing.startTracking([trackingProfile]);\n}\n\n/**\n * Stops tracking the user's location.\n * @returns promise:success - A callback function that will be called on success.\n error - A callback function that will be called on error.\n */\nfunction stopTracking(): Promise<string> {\n return PluginGeofencing.stopTracking();\n}\n\n/**\n * A method to request the required permissions to collect locations.\n * @param background - A boolean value indicating whether the permissions to request is for background or foreground permission.\n * @returns A callback that will be called on successful authorization by the app. A callback that will be called when the app denies permission. The plugin will return an object with a message - 'Permission Denied'.\n */\nfunction requestPermissions(background?: boolean): Promise<string> {\n if (background == null) {\n background = false;\n }\n return PluginGeofencing.requestPermissions([background]);\n}\n\n/**\n * A method to check if the app has granted required permissions to track location.\n * @returns A callback that will be called with the following status - GRANTED_BACKGROUND, GRANTED_FOREGROUND, DENIED\n */\nfunction getPermissionsStatus(): Promise<string> {\n return PluginGeofencing.getPermissionsStatus();\n}\n\n/**\n * Method will\ninvoke callback and pass a location object as a parameter. Method will return a watchId . This id can be used to remove a callback.\n * @param success new location found callback\n * @param error error status callback\n * @returns watchid\n */\nfunction watchLocation(\n success: (result: Location) => any,\n error?: any\n): Promise<string> {\n const watchID = uuid.v1().toString();\n\n const successCallback = (result: any) => {\n success(Location.jsonToObj(result));\n };\n\n subscriptionsLocation[watchID] = [\n eventEmitter.addListener('geolocationDidChange', successCallback),\n error ? eventEmitter.addListener('geolocationError', error) : null,\n ];\n return PluginGeofencing.watchLocation(watchID);\n}\n\n/**\n * A method to stop tracking location for a specified watch. If watchId is null or undefined the plugin will clear all watches.\n * @param watchID Reference ID.\n * @returns return promise with same id back in case of success otherwise error info\n */\nfunction clearLocationWatch(watchID?: string): Promise<string> {\n if (watchID == null) {\n eventEmitter.removeAllListeners('geolocationDidChange');\n eventEmitter.removeAllListeners('geolocationError');\n subscriptionsLocation = {};\n return PluginGeofencing.clearAllLocationWatch();\n } else {\n const saved = subscriptionsLocation[watchID];\n if (saved) {\n const arg0 = saved[0];\n eventEmitter.removeListener('geolocationDidChange', arg0);\n const arg1 = saved[1];\n if (arg1) {\n eventEmitter.removeListener('geolocationError', arg1);\n }\n subscriptionsLocation[watchID] = undefined;\n }\n return PluginGeofencing.clearLocationWatch(watchID);\n }\n}\n\n/**\n * A method to to track Regions. Method will invoke a callback with Region object. Method will return\na watch id which can be used later to remove the callback.\n * @param success new location found callback\n * @param error error status callback\n * @returns watchid\n */\nfunction watchRegions(\n success: (result: Region) => any,\n error?: any\n): Promise<string> {\n const watchID = uuid.v1().toString();\n\n const successCallback = (result: any) => {\n success(Region.jsonToObj(result));\n };\n\n subscriptionsRegion[watchID] = [\n eventEmitter.addListener('woosmapgeofenceRegionDidChange', successCallback),\n error\n ? eventEmitter.addListener('woosmapgeofenceRegionError', error)\n : null,\n ];\n return PluginGeofencing.watchRegions(watchID);\n}\n\n/**\n * A method to clear the specified watch tracing the regions. If the watchId is null or undefined then it will clear all the watches tracking the regions.\n * @param watchID Reference ID.\n * @returns return promise with same id back in case of success otherwise error info\n */\nfunction clearRegionsWatch(watchID: string): Promise<string> {\n if (watchID == null) {\n eventEmitter.removeAllListeners('woosmapgeofenceRegionDidChange');\n eventEmitter.removeAllListeners('woosmapgeofenceRegionError');\n subscriptionsRegion = {};\n return PluginGeofencing.clearAllRegionsWatch();\n } else {\n const saved = subscriptionsRegion[watchID];\n if (saved) {\n const arg0 = saved[0];\n eventEmitter.removeListener('woosmapgeofenceRegionDidChange', arg0);\n const arg1 = saved[1];\n if (arg1) {\n eventEmitter.removeListener('woosmapgeofenceRegionError', arg1);\n }\n subscriptionsRegion[watchID] = undefined;\n }\n return PluginGeofencing.clearRegionsWatch(watchID);\n }\n}\n/**\n * Sets Sales Force Marketing Cloud (SFMC) credentials\n * @param arg0 A JSON object with SFMC credentials. Keys authenticationBaseURI, restBaseURI, client_id, client_secret and contactKey are required.\n * @returns promise with A callback that will be called on success or error.\n */\nfunction setSFMCCredentials(arg0: Object): Promise<string> {\n return PluginGeofencing.setSFMCCredentials(arg0);\n}\n\n/**\n * When you create a geofence around a POI, manually define the radius value (100.0) or choose the user_properties subfield that corresponds to radius value of the geofence (\"radiusPOI\").\n * @param radius can be integer or string.\n * @returns promise with A callback that will be called on success or error.\n */\nfunction setPoiRadius(radius: string): Promise<string> {\n return PluginGeofencing.setPoiRadius(radius);\n}\n/**\n * Adds a custom region that you want to monitor.\n * @param region A GeofenceRegion object with latitude, longitude, radius and type.\n * @returns promise with A callback that will be called on success or error.\n */\n\nfunction addRegion(region: GeofenceRegion): Promise<string> {\n return PluginGeofencing.addRegion(region);\n}\n/**\n * Retrieve saved region info\n * @param regionID If it pass return info for given region or return all region info\n * @returns promise with A callback that will be called on success or error.\n */\nfunction getRegions(regionID?: string): Promise<Region[]> {\n if (regionID == null) {\n return PluginGeofencing.getAllRegions()\n .then((result: any[]) => {\n var formatted: Region[] = [];\n result.forEach((item) => {\n formatted.push(Region.jsonToObj(item));\n });\n return Promise.resolve(formatted);\n })\n .catch((e: any) => {\n return Promise.reject(e);\n });\n } else {\n return PluginGeofencing.getRegions(regionID)\n .then((result: any) => {\n var formatted: Region[] = [];\n formatted.push(Region.jsonToObj(result));\n return Promise.resolve(formatted);\n })\n .catch((e: any) => {\n return Promise.reject(e);\n });\n }\n}\n\n/**\n * Retrieve saved location info\n * @param locationID - Optional in case of location id pass it return only that location info\n * @returns promise with A callback that will be called on success or error.\n */\nfunction getLocations(locationID?: string): Promise<Location[]> {\n if (locationID == null) {\n return PluginGeofencing.getAllLocations()\n .then((result: any[]) => {\n var formatted: Location[] = [];\n result.forEach((item) => {\n formatted.push(Location.jsonToObj(item));\n });\n return Promise.resolve(formatted);\n })\n .catch((e: any) => {\n return Promise.reject(e);\n });\n } else {\n return PluginGeofencing.getLocation(locationID)\n .then((result: any) => {\n var formatted: Location[] = [];\n formatted.push(Location.jsonToObj(result));\n return Promise.resolve(formatted);\n })\n .catch((e: any) => {\n return Promise.reject(e);\n });\n }\n}\n\n/**\n * Retrieve saved POI info\n * @param poiID - Optional in case of poi id (LocationID or StoreID) pass it return only that POI info\n * @returns promise with A callback that will be called on success or error.\n */\nfunction getPois(poiID?: string): Promise<Poi[]> {\n if (poiID == null) {\n return PluginGeofencing.getAllPois()\n .then((result: any[]) => {\n var formatted: Poi[] = [];\n result.forEach((item) => {\n formatted.push(Poi.jsonToObj(item));\n });\n return Promise.resolve(formatted);\n })\n .catch((e: any) => {\n return Promise.reject(e);\n });\n } else {\n return PluginGeofencing.getPoi(poiID)\n .then((result: any) => {\n var formatted: Poi[] = [];\n formatted.push(Poi.jsonToObj(result));\n return Promise.resolve(formatted);\n })\n .catch((e: any) => {\n return Promise.reject(e);\n });\n }\n}\n\n/**\n * Remove saved region info\n * @param regionID If it pass remove info for given region or removes all region info\n * @returns promise with A callback that will be called on success or error.\n */\nfunction removeRegions(regionID?: string): Promise<string> {\n if (regionID == null) {\n return PluginGeofencing.removeAllRegions();\n } else {\n return PluginGeofencing.removeRegion(regionID);\n }\n}\n\n/**\n * Remove saved location info\n * @returns promise with A callback that will be called on success or error.\n */\nfunction removeLocations(): Promise<string> {\n return PluginGeofencing.removeAllLocations();\n}\n\n/**\n * Remove saved POI info\n * @returns promise with A callback that will be called on success or error.\n */\nfunction removePois(): Promise<string> {\n return PluginGeofencing.removeAllPois();\n}\n/**\n * if preset tracking profiles don’t fit with your use cases, you can build your own profile and uses the startCustomTracking() method. \n * There are two way to host the json file:\n * - included in the client application (local)\n * - hosted externally in a file folder in your information system (external)\n * @param sourceType local/external\n * @param source location of profile to be fetch\n * @returns promise with A callback that will be called on success or error.\n */\nfunction startCustomTracking(\n sourceType: ProfileSource,\n source: string\n): Promise<string> {\n return PluginGeofencing.startCustomTracking(sourceType, source);\n}\n\nexport type {\n RegionType,\n GeofenceRegion,\n Region,\n Location,\n Poi,\n ProfileSource,\n};\n\nconst WoosmapGeofencing = {\n initialize,\n setWoosmapApiKey,\n startTracking,\n requestPermissions,\n getPermissionsStatus,\n stopTracking,\n watchLocation,\n clearLocationWatch,\n watchRegions,\n clearRegionsWatch,\n setSFMCCredentials,\n setPoiRadius,\n addRegion,\n getRegions,\n removeRegions,\n getLocations,\n removeLocations,\n getPois,\n removePois,\n startCustomTracking,\n};\n\nexport default WoosmapGeofencing;\n"],"mappings":"AAAA,SAASA,kBAAT,QAAmC,cAAnC;AACA,OAAOC,IAAP,MAAiB,mBAAjB;AACA,OAAOC,gBAAP,MAA6B,4BAA7B;AACA,OAAOC,QAAP,MAAqB,qBAArB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAOC,GAAP,MAAgB,gBAAhB;AAOA,MAAMC,YAAY,GAAG,IAAIN,kBAAJ,CAAuBE,gBAAvB,CAArB;AAEA,IAAIK,qBAA0B,GAAG,EAAjC;AACA,IAAIC,mBAAwB,GAAG,EAA/B;AACA;AACA;AACA;AACA;AACA;AACA;;AACA,SAASC,UAAT,CAAoBC,IAApB,EAAiD;EAC/C,IAAIA,IAAI,IAAI,IAAZ,EAAkB;IAChBA,IAAI,GAAG,EAAP;EACD;;EACD,OAAOR,gBAAgB,CAACO,UAAjB,CAA4BC,IAA5B,CAAP;AACD;AAED;AACA;AACA;AACA;AACA;AACA;;;AACA,SAASC,gBAAT,CAA0BC,MAA1B,EAA2D;EACzD,OAAOV,gBAAgB,CAACS,gBAAjB,CAAkC,CAACC,MAAD,CAAlC,CA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P;IACD,CARI,CAAP;EASD;AACF;AAED;AACA;AACA;AACA;AACA;;;AACA,SAASU,aAAT,CAAuBpB,QAAvB,EAA2D;EACzD,IAAIA,QAAQ,IAAI,IAAhB,EAAsB;IACpB,OAAO3C,gBAAgB,CAACgE,gBAAjB,EAAP;EACD,CAFD,MAEO;IACL,OAAOhE,gBAAgB,CAACiE,YAAjB,CAA8BtB,QAA9B,CAAP;EACD;AACF;AAED;AACA;AACA;AACA;;;AACA,SAASuB,eAAT,GAA4C;EAC1C,OAAOlE,gBAAgB,CAACmE,kBAAjB,EAAP;AACD;AAED;AACA;AACA;AACA;;;AACA,SAASC,UAAT,GAAuC;EACrC,OAAOpE,gBAAgB,CAACqE,aAAjB,EAAP;AACD;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AACA,SAASC,mBAAT,CACEC,UADF,EAEEC,MAFF,EAGmB;EACjB,OAAOxE,gBAAgB,CAACsE,mBAAjB,CAAqCC,UAArC,EAAiDC,MAAjD,CAAP;AACD;;AAWD,MAAMC,iBAAiB,GAAG;EACxBlE,UADwB;EAExBE,gBAFwB;EAGxBE,aAHwB;EAIxBG,kBAJwB;EAKxBE,oBALwB;EAMxBH,YANwB;EAOxBI,aAPwB;EAQxBU,kBARwB;EASxBO,YATwB;EAUxBC,iBAVwB;EAWxBE,kBAXwB;EAYxBC,YAZwB;EAaxBE,SAbwB;EAcxBE,UAdwB;EAexBqB,aAfwB;EAgBxBR,YAhBwB;EAiBxBW,eAjBwB;EAkBxBP,OAlBwB;EAmBxBS,UAnBwB;EAoBxBE;AApBwB,CAA1B;AAuBA,eAAeG,iBAAf"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
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
|
-
_defineProperty(this, "Name", void 0);
|
|
12
|
-
|
|
13
|
-
_defineProperty(this, "Properties", void 0);
|
|
14
|
-
|
|
15
|
-
this.Name = name;
|
|
16
|
-
this.Properties = properties;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Converts json object to an object of type Airship.
|
|
20
|
-
* @param {Object} json The json representation of Airship.
|
|
21
|
-
* @returns Object
|
|
22
|
-
* @memberof Airship
|
|
23
|
-
*/
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
static jsonToObj(json) {
|
|
27
|
-
return new Airship(json.name, json.properties);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
module.exports = Airship;
|
|
33
|
-
//# sourceMappingURL=Airship.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["Airship","constructor","name","properties","Name","Properties","jsonToObj","json","module","exports"],"sources":["Airship.tsx"],"sourcesContent":["/**\n * @classdesc A class that represents the Airship object.\n * @constructs Airship\n * @param {string} name The name of the custom event.\n * @param {string} properties The attributes of the POI such as `name`, `address`, `zipCode` etc.\n */\nclass Airship {\n Name: String;\n Properties: String;\n constructor(name: String, properties: String) {\n this.Name = name;\n this.Properties = properties;\n }\n /**\n * Converts json object to an object of type Airship.\n * @param {Object} json The json representation of Airship.\n * @returns Object\n * @memberof Airship\n */\n static jsonToObj(json: any) {\n return new Airship(json.name, json.properties);\n }\n}\nmodule.exports = Airship;\n"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMA,OAAN,CAAc;EAGZC,WAAW,CAACC,IAAD,EAAeC,UAAf,EAAmC;IAAA;;IAAA;;IAC5C,KAAKC,IAAL,GAAYF,IAAZ;IACA,KAAKG,UAAL,GAAkBF,UAAlB;EACD;EACD;AACF;AACA;AACA;AACA;AACA;;;EACkB,OAATG,SAAS,CAACC,IAAD,EAAY;IAC1B,OAAO,IAAIP,OAAJ,CAAYO,IAAI,CAACL,IAAjB,EAAuBK,IAAI,CAACJ,UAA5B,CAAP;EACD;;AAfW;;AAiBdK,MAAM,CAACC,OAAP,GAAiBT,OAAjB"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
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
|
-
_defineProperty(this, "Date", void 0);
|
|
16
|
-
|
|
17
|
-
_defineProperty(this, "Latitude", void 0);
|
|
18
|
-
|
|
19
|
-
_defineProperty(this, "Locationdescription", void 0);
|
|
20
|
-
|
|
21
|
-
_defineProperty(this, "Locationid", void 0);
|
|
22
|
-
|
|
23
|
-
_defineProperty(this, "Longitude", void 0);
|
|
24
|
-
|
|
25
|
-
this.Date = date;
|
|
26
|
-
this.Latitude = latitude;
|
|
27
|
-
this.Locationdescription = locationdescription;
|
|
28
|
-
this.Locationid = locationid;
|
|
29
|
-
this.Longitude = longitude;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Converts json object to an object of type Location.
|
|
33
|
-
* @param {Object} json The json representation of the Location.
|
|
34
|
-
* @returns Object
|
|
35
|
-
* @memberof Location
|
|
36
|
-
*/
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
static jsonToObj(json) {
|
|
40
|
-
return new Location(json.date, json.latitude, json.locationdescription, json.locationid, json.longitude);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export default Location;
|
|
46
|
-
//# 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"],"sources":["Location.tsx"],"sourcesContent":["/**\n * @classdesc A class that represents the location object.\n * @constructs Location\n * @param {number} date The datetime stamp.\n * @param {number} latitude The latitude of the location.\n\n * @param {string} Locationdescription The description of the location. \n * @param {string} Locationid A unique identifier for the location.\n * @param {number} longitude The longitude of the location.\n */\nclass Location {\n Date: number;\n Latitude: number;\n Locationdescription: string;\n Locationid: string;\n Longitude: number;\n constructor(\n date: number,\n latitude: number,\n locationdescription: string,\n locationid: string,\n longitude: number\n ) {\n this.Date = date;\n this.Latitude = latitude;\n this.Locationdescription = locationdescription;\n this.Locationid = locationid;\n this.Longitude = longitude;\n }\n /**\n * Converts json object to an object of type Location.\n * @param {Object} json The json representation of the Location.\n * @returns Object\n * @memberof Location\n */\n static jsonToObj(json: any) {\n return new Location(\n json.date,\n json.latitude,\n json.locationdescription,\n json.locationid,\n json.longitude\n );\n }\n}\nexport default Location;\n"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMA,QAAN,CAAe;EAMbC,WAAW,CACTC,IADS,EAETC,QAFS,EAGTC,mBAHS,EAITC,UAJS,EAKTC,SALS,EAMT;IAAA;;IAAA;;IAAA;;IAAA;;IAAA;;IACA,KAAKC,IAAL,GAAYL,IAAZ;IACA,KAAKM,QAAL,GAAgBL,QAAhB;IACA,KAAKM,mBAAL,GAA2BL,mBAA3B;IACA,KAAKM,UAAL,GAAkBL,UAAlB;IACA,KAAKM,SAAL,GAAiBL,SAAjB;EACD;EACD;AACF;AACA;AACA;AACA;AACA;;;EACkB,OAATM,SAAS,CAACC,IAAD,EAAY;IAC1B,OAAO,IAAIb,QAAJ,CACLa,IAAI,CAACX,IADA,EAELW,IAAI,CAACV,QAFA,EAGLU,IAAI,CAACT,mBAHA,EAILS,IAAI,CAACR,UAJA,EAKLQ,IAAI,CAACP,SALA,CAAP;EAOD;;AAjCY;;AAmCf,eAAeN,QAAf"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
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
|
-
_defineProperty(this, "Name", void 0);
|
|
12
|
-
|
|
13
|
-
_defineProperty(this, "Properties", void 0);
|
|
14
|
-
|
|
15
|
-
this.Name = name;
|
|
16
|
-
this.Properties = properties;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Converts json object to an object of type MarketingCloud.
|
|
20
|
-
* @param {Object} json The json representation of MarketingCloud.
|
|
21
|
-
* @returns Object
|
|
22
|
-
* @memberof MarketingCloud
|
|
23
|
-
*/
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
static jsonToObj(json) {
|
|
27
|
-
return new MarketingCloud(json.name, json.properties);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
module.exports = MarketingCloud;
|
|
33
|
-
//# sourceMappingURL=MarketingCloud.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["MarketingCloud","constructor","name","properties","Name","Properties","jsonToObj","json","module","exports"],"sources":["MarketingCloud.tsx"],"sourcesContent":["/**\n * @classdesc A class that represents the Marketing Cloud object.\n * @constructs MarketingCloud\n * @param {string} name The name of the custom event.\n * @param {string} properties The attributes of the POI such as `name`, `address`, `zipCode` etc.\n */\nclass MarketingCloud {\n Name: string;\n Properties: string;\n constructor(name: string, properties: string) {\n this.Name = name;\n this.Properties = properties;\n }\n /**\n * Converts json object to an object of type MarketingCloud.\n * @param {Object} json The json representation of MarketingCloud.\n * @returns Object\n * @memberof MarketingCloud\n */\n static jsonToObj(json: any) {\n return new MarketingCloud(json.name, json.properties);\n }\n}\nmodule.exports = MarketingCloud;\n"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMA,cAAN,CAAqB;EAGnBC,WAAW,CAACC,IAAD,EAAeC,UAAf,EAAmC;IAAA;;IAAA;;IAC5C,KAAKC,IAAL,GAAYF,IAAZ;IACA,KAAKG,UAAL,GAAkBF,UAAlB;EACD;EACD;AACF;AACA;AACA;AACA;AACA;;;EACkB,OAATG,SAAS,CAACC,IAAD,EAAY;IAC1B,OAAO,IAAIP,cAAJ,CAAmBO,IAAI,CAACL,IAAxB,EAA8BK,IAAI,CAACJ,UAAnC,CAAP;EACD;;AAfkB;;AAiBrBK,MAAM,CAACC,OAAP,GAAiBT,cAAjB"}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
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) {
|
|
27
|
-
_defineProperty(this, "Jsondata", void 0);
|
|
28
|
-
|
|
29
|
-
_defineProperty(this, "City", void 0);
|
|
30
|
-
|
|
31
|
-
_defineProperty(this, "Idstore", void 0);
|
|
32
|
-
|
|
33
|
-
_defineProperty(this, "Name", void 0);
|
|
34
|
-
|
|
35
|
-
_defineProperty(this, "Date", void 0);
|
|
36
|
-
|
|
37
|
-
_defineProperty(this, "Distance", void 0);
|
|
38
|
-
|
|
39
|
-
_defineProperty(this, "Duration", void 0);
|
|
40
|
-
|
|
41
|
-
_defineProperty(this, "Latitude", void 0);
|
|
42
|
-
|
|
43
|
-
_defineProperty(this, "Locationid", void 0);
|
|
44
|
-
|
|
45
|
-
_defineProperty(this, "Longitude", void 0);
|
|
46
|
-
|
|
47
|
-
_defineProperty(this, "Zipcode", void 0);
|
|
48
|
-
|
|
49
|
-
_defineProperty(this, "Radius", void 0);
|
|
50
|
-
|
|
51
|
-
_defineProperty(this, "Countrycode", void 0);
|
|
52
|
-
|
|
53
|
-
_defineProperty(this, "Tags", void 0);
|
|
54
|
-
|
|
55
|
-
_defineProperty(this, "Types", void 0);
|
|
56
|
-
|
|
57
|
-
_defineProperty(this, "Contact", void 0);
|
|
58
|
-
|
|
59
|
-
_defineProperty(this, "Address", void 0);
|
|
60
|
-
|
|
61
|
-
this.Jsondata = jsondata;
|
|
62
|
-
this.City = city;
|
|
63
|
-
this.Idstore = idstore;
|
|
64
|
-
this.Name = name;
|
|
65
|
-
this.Date = date;
|
|
66
|
-
this.Distance = distance;
|
|
67
|
-
this.Duration = duration;
|
|
68
|
-
this.Latitude = latitude;
|
|
69
|
-
this.Locationid = locationid;
|
|
70
|
-
this.Longitude = longitude;
|
|
71
|
-
this.Zipcode = zipcode;
|
|
72
|
-
this.Radius = radius;
|
|
73
|
-
this.Idstore = idstore;
|
|
74
|
-
this.Countrycode = countrycode;
|
|
75
|
-
this.Tags = tags;
|
|
76
|
-
this.Types = types;
|
|
77
|
-
this.Contact = contact;
|
|
78
|
-
this.Address = address;
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* Converts json object to an object of type Poi.
|
|
82
|
-
* @param {Object} json The json representation of the Poi.
|
|
83
|
-
* @returns Object
|
|
84
|
-
* @memberof Poi
|
|
85
|
-
*/
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
static jsonToObj(json) {
|
|
89
|
-
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);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
export default Poi;
|
|
95
|
-
//# 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","Jsondata","City","Idstore","Name","Date","Distance","Duration","Latitude","Locationid","Longitude","Zipcode","Radius","Countrycode","Tags","Types","Contact","Address","jsonToObj","json"],"sources":["Poi.tsx"],"sourcesContent":["/**\n * A class that represents the POI object.\n * @classdesc A class that represents the POI object.\n * @constructs Poi\n * @param {Object} jsonData A json object representing the POI.\n * @param {string} city The name of the city the POI belongs to.\n * @param {string} idstore A unique identifier for the POI.\n * @param {name} name The name of the POI.\n * @param {number} date The datetime stamp.\n * @param {number} distance The distance between the POI and the user's location.\n * @param {number} duration The duration to travel to the POI from the user's location.\n * @param {number} latitude The latitude of the POI.\n * @param {string} locationid Location id of the POI.\n * @param {number} longitude The longitude of the POI.\n * @param {string} zipcode The zip code of the POI.\n * @param {number} radius The radius of the POI.\n * @param {string} address The address of the POI.\n * @param {string} countrycode The countrycode of the POI.\n * @param {string} tags The tags for the POI.\n * @param {string} types The types of the POI.\n * @param {string} contact The contact for the POI.\n */\nclass Poi {\n Jsondata: object;\n City: string;\n Idstore: string;\n Name: string;\n Date: number;\n Distance: number;\n Duration: number;\n Latitude: number;\n Locationid: string;\n Longitude: number;\n Zipcode: string;\n Radius: number;\n Countrycode: string;\n Tags: string;\n Types: string;\n Contact: string;\n Address: string;\n constructor(\n jsondata: object,\n city: string,\n idstore: string,\n name: string,\n date: number,\n distance: number,\n duration: number,\n latitude: number,\n locationid: string,\n longitude: number,\n zipcode: string,\n radius: number,\n address: string,\n countrycode: string,\n tags: string,\n types: string,\n contact: string\n ) {\n this.Jsondata = jsondata;\n this.City = city;\n this.Idstore = idstore;\n this.Name = name;\n this.Date = date;\n this.Distance = distance;\n this.Duration = duration;\n this.Latitude = latitude;\n this.Locationid = locationid;\n this.Longitude = longitude;\n this.Zipcode = zipcode;\n this.Radius = radius;\n this.Idstore = idstore;\n this.Countrycode = countrycode;\n this.Tags = tags;\n this.Types = types;\n this.Contact = contact;\n this.Address = address;\n }\n /**\n * Converts json object to an object of type Poi.\n * @param {Object} json The json representation of the Poi.\n * @returns Object\n * @memberof Poi\n */\n static jsonToObj(json: any) {\n return new Poi(\n json.jsondata,\n json.city,\n json.idstore,\n json.name,\n json.date,\n json.distance,\n json.duration,\n json.latitude,\n json.locationid,\n json.longitude,\n json.zipcode,\n json.radius,\n json.address,\n json.countrycode,\n json.tags,\n json.types,\n json.contact\n );\n }\n}\nexport default Poi;\n"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMA,GAAN,CAAU;EAkBRC,WAAW,CACTC,QADS,EAETC,IAFS,EAGTC,OAHS,EAITC,IAJS,EAKTC,IALS,EAMTC,QANS,EAOTC,QAPS,EAQTC,QARS,EASTC,UATS,EAUTC,SAVS,EAWTC,OAXS,EAYTC,MAZS,EAaTC,OAbS,EAcTC,WAdS,EAeTC,IAfS,EAgBTC,KAhBS,EAiBTC,OAjBS,EAkBT;IAAA;;IAAA;;IAAA;;IAAA;;IAAA;;IAAA;;IAAA;;IAAA;;IAAA;;IAAA;;IAAA;;IAAA;;IAAA;;IAAA;;IAAA;;IAAA;;IAAA;;IACA,KAAKC,QAAL,GAAgBjB,QAAhB;IACA,KAAKkB,IAAL,GAAYjB,IAAZ;IACA,KAAKkB,OAAL,GAAejB,OAAf;IACA,KAAKkB,IAAL,GAAYjB,IAAZ;IACA,KAAKkB,IAAL,GAAYjB,IAAZ;IACA,KAAKkB,QAAL,GAAgBjB,QAAhB;IACA,KAAKkB,QAAL,GAAgBjB,QAAhB;IACA,KAAKkB,QAAL,GAAgBjB,QAAhB;IACA,KAAKkB,UAAL,GAAkBjB,UAAlB;IACA,KAAKkB,SAAL,GAAiBjB,SAAjB;IACA,KAAKkB,OAAL,GAAejB,OAAf;IACA,KAAKkB,MAAL,GAAcjB,MAAd;IACA,KAAKQ,OAAL,GAAejB,OAAf;IACA,KAAK2B,WAAL,GAAmBhB,WAAnB;IACA,KAAKiB,IAAL,GAAYhB,IAAZ;IACA,KAAKiB,KAAL,GAAahB,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