@woosmap/react-native-plugin-geofencing 0.4.5-beta.1 → 0.4.5-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 (87) hide show
  1. package/android/build.gradle +80 -53
  2. package/android/gradle.properties +5 -0
  3. package/android/src/main/AndroidManifest.xml +0 -1
  4. package/android/src/main/AndroidManifestNew.xml +2 -0
  5. package/android/src/main/java/com/reactnativeplugingeofencing/AirshipPushHelper.java +0 -1
  6. package/android/src/main/java/com/reactnativeplugingeofencing/PluginGeofencingModule.java +23 -25
  7. package/android/src/main/java/com/reactnativeplugingeofencing/PluginGeofencingPackage.java +12 -12
  8. package/android/src/main/java/com/reactnativeplugingeofencing/WoosmapMessageAndKey.java +0 -10
  9. package/android/src/main/java/com/reactnativeplugingeofencing/WoosmapTask.java +2 -2
  10. package/ios/PluginGeofencing-Bridging-Header.h +0 -1
  11. package/ios/{PluginGeofencing.m → PluginGeofencing.mm} +6 -1
  12. package/ios/PluginGeofencing.swift +2 -2
  13. package/lib/commonjs/index.js.map +1 -1
  14. package/lib/commonjs/internal/Airship.js +0 -5
  15. package/lib/commonjs/internal/Airship.js.map +1 -1
  16. package/lib/commonjs/internal/IndoorBeacon.js +18 -21
  17. package/lib/commonjs/internal/IndoorBeacon.js.map +1 -1
  18. package/lib/commonjs/internal/Location.js +0 -8
  19. package/lib/commonjs/internal/Location.js.map +1 -1
  20. package/lib/commonjs/internal/MarketingCloud.js +0 -5
  21. package/lib/commonjs/internal/MarketingCloud.js.map +1 -1
  22. package/lib/commonjs/internal/Poi.js +0 -21
  23. package/lib/commonjs/internal/Poi.js.map +1 -1
  24. package/lib/commonjs/internal/Region.js +0 -12
  25. package/lib/commonjs/internal/Region.js.map +1 -1
  26. package/lib/commonjs/internal/Visit.js +0 -9
  27. package/lib/commonjs/internal/Visit.js.map +1 -1
  28. package/lib/commonjs/internal/Zoi.js +0 -20
  29. package/lib/commonjs/internal/Zoi.js.map +1 -1
  30. package/lib/commonjs/internal/nativeInterface.js.map +1 -1
  31. package/lib/commonjs/internal/types.js.map +1 -1
  32. package/lib/module/index.js.map +1 -1
  33. package/lib/module/internal/Airship.js +0 -5
  34. package/lib/module/internal/Airship.js.map +1 -1
  35. package/lib/module/internal/IndoorBeacon.js +18 -21
  36. package/lib/module/internal/IndoorBeacon.js.map +1 -1
  37. package/lib/module/internal/Location.js +0 -8
  38. package/lib/module/internal/Location.js.map +1 -1
  39. package/lib/module/internal/MarketingCloud.js +0 -5
  40. package/lib/module/internal/MarketingCloud.js.map +1 -1
  41. package/lib/module/internal/Poi.js +0 -21
  42. package/lib/module/internal/Poi.js.map +1 -1
  43. package/lib/module/internal/Region.js +0 -12
  44. package/lib/module/internal/Region.js.map +1 -1
  45. package/lib/module/internal/Visit.js +0 -9
  46. package/lib/module/internal/Visit.js.map +1 -1
  47. package/lib/module/internal/Zoi.js +0 -20
  48. package/lib/module/internal/Zoi.js.map +1 -1
  49. package/lib/module/internal/nativeInterface.js.map +1 -1
  50. package/lib/module/internal/types.js.map +1 -1
  51. package/lib/typescript/{index.d.ts → src/index.d.ts} +1 -0
  52. package/lib/typescript/src/index.d.ts.map +1 -0
  53. package/lib/typescript/{internal → src/internal}/Airship.d.ts +1 -0
  54. package/lib/typescript/src/internal/Airship.d.ts.map +1 -0
  55. package/lib/typescript/{internal → src/internal}/IndoorBeacon.d.ts +1 -0
  56. package/lib/typescript/src/internal/IndoorBeacon.d.ts.map +1 -0
  57. package/lib/typescript/{internal → src/internal}/Location.d.ts +1 -0
  58. package/lib/typescript/src/internal/Location.d.ts.map +1 -0
  59. package/lib/typescript/{internal → src/internal}/MarketingCloud.d.ts +1 -0
  60. package/lib/typescript/src/internal/MarketingCloud.d.ts.map +1 -0
  61. package/lib/typescript/{internal → src/internal}/Poi.d.ts +1 -0
  62. package/lib/typescript/src/internal/Poi.d.ts.map +1 -0
  63. package/lib/typescript/{internal → src/internal}/Region.d.ts +1 -0
  64. package/lib/typescript/src/internal/Region.d.ts.map +1 -0
  65. package/lib/typescript/{internal → src/internal}/Visit.d.ts +1 -0
  66. package/lib/typescript/src/internal/Visit.d.ts.map +1 -0
  67. package/lib/typescript/{internal → src/internal}/Zoi.d.ts +1 -0
  68. package/lib/typescript/src/internal/Zoi.d.ts.map +1 -0
  69. package/lib/typescript/{internal → src/internal}/nativeInterface.d.ts +1 -0
  70. package/lib/typescript/src/internal/nativeInterface.d.ts.map +1 -0
  71. package/lib/typescript/{internal → src/internal}/types.d.ts +1 -0
  72. package/lib/typescript/src/internal/types.d.ts.map +1 -0
  73. package/package.json +57 -34
  74. package/react-native-plugin-geofencing.podspec +24 -2
  75. package/src/index.tsx +471 -0
  76. package/src/internal/Airship.tsx +24 -0
  77. package/src/internal/IndoorBeacon.tsx +95 -0
  78. package/src/internal/Location.tsx +46 -0
  79. package/src/internal/MarketingCloud.tsx +24 -0
  80. package/src/internal/Poi.tsx +111 -0
  81. package/src/internal/Region.tsx +66 -0
  82. package/src/internal/Visit.tsx +49 -0
  83. package/src/internal/Zoi.tsx +107 -0
  84. package/src/internal/nativeInterface.tsx +8 -0
  85. package/src/internal/types.tsx +20 -0
  86. package/ios/PluginGeofencing.xcodeproj/project.pbxproj +0 -293
  87. package/lib/typescript/__tests__/index.test.d.ts +0 -0
@@ -1,71 +1,98 @@
1
1
  buildscript {
2
- if (project == rootProject) {
3
- repositories {
4
- google()
5
- mavenCentral()
6
- jcenter()
7
- }
8
-
9
- dependencies {
10
- classpath 'com.android.tools.build:gradle:3.5.4'
11
- }
12
- }
2
+ repositories {
3
+ google()
4
+ mavenCentral()
5
+ }
6
+
7
+ dependencies {
8
+ classpath "com.android.tools.build:gradle:7.2.1"
9
+ }
10
+ }
11
+
12
+ def isNewArchitectureEnabled() {
13
+ return rootProject.hasProperty("newArchEnabled") && rootProject.getProperty("newArchEnabled") == "true"
14
+ }
15
+
16
+ apply plugin: "com.android.library"
17
+
18
+ if (isNewArchitectureEnabled()) {
19
+ apply plugin: "com.facebook.react"
13
20
  }
14
21
 
15
- apply plugin: 'com.android.library'
22
+ def getExtOrDefault(name) {
23
+ return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties["PluginGeofencing_" + name]
24
+ }
16
25
 
17
- def safeExtGet(prop, fallback) {
18
- rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
26
+ def getExtOrIntegerDefault(name) {
27
+ return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties["PluginGeofencing_" + name]).toInteger()
28
+ }
29
+
30
+ def supportsNamespace() {
31
+ def parsed = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.')
32
+ def major = parsed[0].toInteger()
33
+ def minor = parsed[1].toInteger()
34
+
35
+ // Namespace support was added in 7.3.0
36
+ return (major == 7 && minor >= 3) || major >= 8
19
37
  }
20
38
 
21
39
  android {
22
- compileSdkVersion safeExtGet('PluginGeofencing_compileSdkVersion', 33)
23
- defaultConfig {
24
- minSdkVersion safeExtGet('PluginGeofencing_minSdkVersion', 21)
25
- targetSdkVersion safeExtGet('PluginGeofencing_targetSdkVersion', 33)
26
- versionCode 1
27
- versionName "1.0"
40
+ if (supportsNamespace()) {
41
+ namespace "com.plugingeofencing"
28
42
 
43
+ sourceSets {
44
+ main {
45
+ manifest.srcFile "src/main/AndroidManifestNew.xml"
46
+ }
29
47
  }
48
+ }
30
49
 
31
- buildTypes {
32
- release {
33
- minifyEnabled false
34
- }
35
- }
36
- lintOptions {
37
- disable 'GradleCompatible'
38
- }
39
- compileOptions {
40
- sourceCompatibility JavaVersion.VERSION_1_8
41
- targetCompatibility JavaVersion.VERSION_1_8
50
+ compileSdkVersion getExtOrIntegerDefault("compileSdkVersion")
51
+
52
+ defaultConfig {
53
+ minSdkVersion getExtOrIntegerDefault("minSdkVersion")
54
+ targetSdkVersion getExtOrIntegerDefault("targetSdkVersion")
55
+
56
+ }
57
+
58
+ buildTypes {
59
+ release {
60
+ minifyEnabled false
42
61
  }
62
+ }
63
+
64
+ lintOptions {
65
+ disable "GradleCompatible"
66
+ }
67
+
68
+ compileOptions {
69
+ sourceCompatibility JavaVersion.VERSION_1_8
70
+ targetCompatibility JavaVersion.VERSION_1_8
71
+ }
43
72
  }
44
73
 
45
74
  repositories {
46
- mavenLocal()
47
- maven {
48
- // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
49
- url("$rootDir/../node_modules/react-native/android")
50
- }
51
- google()
52
- mavenCentral()
53
- jcenter()
54
- maven { url 'https://jitpack.io' }
75
+ mavenCentral()
76
+ google()
77
+ maven {
78
+ url = uri("https://jitpack.io")
79
+ }
55
80
  }
56
81
 
57
- dependencies {
58
- //noinspection GradleDynamicVersion
59
- implementation "com.facebook.react:react-native:+" // From node_modules
60
- implementation 'com.google.android.gms:play-services-location:21.0.1'
61
- implementation 'com.google.code.gson:gson:2.8.8'
62
- implementation "com.github.woosmap:geofencing-core-android-sdk:core_geofence_2.+"
63
- implementation("com.webgeoservices.woosmapgeofencing:woosmap-mobile-sdk:4.+")
64
- implementation 'com.google.android.gms:play-services-maps:18.1.0'
65
- implementation 'androidx.room:room-runtime:2.2.4'
66
- annotationProcessor 'androidx.room:room-compiler:2.2.4'
67
- implementation 'androidx.room:room-rxjava2:2.2.4'
68
- implementation 'androidx.room:room-guava:2.2.4'
69
-
70
82
 
83
+ dependencies {
84
+ // For < 0.71, this will be from the local maven repo
85
+ // For > 0.71, this will be replaced by `com.facebook.react:react-android:$version` by react gradle plugin
86
+ //noinspection GradleDynamicVersion
87
+ implementation "com.facebook.react:react-native:+"
88
+ implementation 'com.google.android.gms:play-services-location:21.0.1'
89
+ implementation 'com.google.code.gson:gson:2.8.8'
90
+ implementation "com.github.woosmap:geofencing-core-android-sdk:core_geofence_2.+"
91
+ implementation("com.webgeoservices.woosmapgeofencing:woosmap-mobile-sdk:4.+")
92
+ implementation 'com.google.android.gms:play-services-maps:18.1.0'
93
+ implementation 'androidx.room:room-runtime:2.2.4'
94
+ annotationProcessor 'androidx.room:room-compiler:2.2.4'
95
+ implementation 'androidx.room:room-rxjava2:2.2.4'
96
+ implementation 'androidx.room:room-guava:2.2.4'
71
97
  }
98
+
@@ -0,0 +1,5 @@
1
+ PluginGeofencing_kotlinVersion=1.7.0
2
+ PluginGeofencing_minSdkVersion=21
3
+ PluginGeofencing_targetSdkVersion=31
4
+ PluginGeofencing_compileSdkVersion=31
5
+ PluginGeofencing_ndkversion=21.4.7075529
@@ -1,4 +1,3 @@
1
1
  <manifest xmlns:android="http://schemas.android.com/apk/res/android"
2
2
  package="com.reactnativeplugingeofencing">
3
-
4
3
  </manifest>
@@ -0,0 +1,2 @@
1
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android">
2
+ </manifest>
@@ -5,7 +5,6 @@ import android.util.Log;
5
5
 
6
6
  import com.webgeoservices.woosmapgeofencing.SearchAPIDataModel.SearchAPIResponseItem;
7
7
  import com.webgeoservices.woosmapgeofencingcore.database.POI;
8
- import com.webgeoservices.woosmapgeofencingcore.database.POIsDAO;
9
8
  import com.webgeoservices.woosmapgeofencingcore.database.RegionLog;
10
9
  import com.webgeoservices.woosmapgeofencingcore.database.WoosmapDb;
11
10
 
@@ -27,9 +27,6 @@ import com.webgeoservices.woosmapgeofencingcore.database.Region;
27
27
  import java.util.HashMap;
28
28
  import java.util.Iterator;
29
29
 
30
- /**
31
- * This is a React native plugin exposing Woosmap Geofencing SDK methods.
32
- */
33
30
  @ReactModule(name = PluginGeofencingModule.NAME)
34
31
  public class PluginGeofencingModule extends ReactContextBaseJavaModule implements PermissionListener, LifecycleEventListener {
35
32
  public static final String NAME = "PluginGeofencing";
@@ -660,26 +657,26 @@ public class PluginGeofencingModule extends ReactContextBaseJavaModule implement
660
657
  * @param regionid A string unique value for region.
661
658
  * @param promise React native callback context.
662
659
  */
663
- @RequiresApi(api = Build.VERSION_CODES.N)
664
- @ReactMethod
665
- public void getRegions(String regionid, Promise promise){
666
- try{
667
- if (isWoosmapInitialized()){
668
- if(!regionid.isEmpty()){
669
- WoosmapTask.getInstance(reactContext).enqueGetRegionsRequest(regionid,promise);
670
-
671
- }else {
672
- promise.reject(WoosmapMessageAndKey.errorCode,WoosmapMessageAndKey.requiredRegionid);
673
- }
660
+ @RequiresApi(api = Build.VERSION_CODES.N)
661
+ @ReactMethod
662
+ public void getRegions(String regionid, Promise promise){
663
+ try{
664
+ if (isWoosmapInitialized()){
665
+ if(!regionid.isEmpty()){
666
+ WoosmapTask.getInstance(reactContext).enqueGetRegionsRequest(regionid,promise);
674
667
 
675
668
  }else {
676
- promise.reject(WoosmapMessageAndKey.errorCode,WoosmapMessageAndKey.woosmapNotInitialized);
669
+ promise.reject(WoosmapMessageAndKey.errorCode,WoosmapMessageAndKey.requiredRegionid);
677
670
  }
671
+
672
+ }else {
673
+ promise.reject(WoosmapMessageAndKey.errorCode,WoosmapMessageAndKey.woosmapNotInitialized);
678
674
  }
679
- catch (Exception ex){
680
- promise.reject(WoosmapMessageAndKey.errorCode,ex.getMessage());
681
- }
682
675
  }
676
+ catch (Exception ex){
677
+ promise.reject(WoosmapMessageAndKey.errorCode,ex.getMessage());
678
+ }
679
+ }
683
680
 
684
681
  /**
685
682
  * Gets all saved region from the database.
@@ -966,12 +963,13 @@ public class PluginGeofencingModule extends ReactContextBaseJavaModule implement
966
963
  }
967
964
 
968
965
  @ReactMethod
969
- public void addListener(String eventName) {
970
- // Keep: Required for RN built in Event Emitter Calls.
971
- }
972
- @ReactMethod
973
- public void removeListeners(Integer count) {
974
- // Keep: Required for RN built in Event Emitter Calls.
975
- }
966
+ public void addListener(String eventName) {
967
+
968
+ }
969
+
970
+ @ReactMethod
971
+ public void removeListeners(Integer count) {
972
+
973
+ }
976
974
 
977
975
  }
@@ -12,17 +12,17 @@ import java.util.Collections;
12
12
  import java.util.List;
13
13
 
14
14
  public class PluginGeofencingPackage implements ReactPackage {
15
- @NonNull
16
- @Override
17
- public List<NativeModule> createNativeModules(@NonNull ReactApplicationContext reactContext) {
18
- List<NativeModule> modules = new ArrayList<>();
19
- modules.add(new PluginGeofencingModule(reactContext));
20
- return modules;
21
- }
15
+ @NonNull
16
+ @Override
17
+ public List<NativeModule> createNativeModules(@NonNull ReactApplicationContext reactContext) {
18
+ List<NativeModule> modules = new ArrayList<>();
19
+ modules.add(new PluginGeofencingModule(reactContext));
20
+ return modules;
21
+ }
22
22
 
23
- @NonNull
24
- @Override
25
- public List<ViewManager> createViewManagers(@NonNull ReactApplicationContext reactContext) {
26
- return Collections.emptyList();
27
- }
23
+ @NonNull
24
+ @Override
25
+ public List<ViewManager> createViewManagers(@NonNull ReactApplicationContext reactContext) {
26
+ return Collections.emptyList();
27
+ }
28
28
  }
@@ -52,14 +52,4 @@ public class WoosmapMessageAndKey {
52
52
  protected static String localMode="local";
53
53
  protected static String externalMode="external";
54
54
  protected static String enableAirshipConnectorKey="enableAirshipConnector";
55
-
56
-
57
-
58
-
59
-
60
-
61
-
62
-
63
-
64
-
65
55
  }
@@ -136,7 +136,7 @@ public class WoosmapTask {
136
136
  return null;
137
137
  }).whenComplete((unused, throwable) -> {
138
138
  if (throwable==null){
139
- promise.resolve(WoosmapMessageAndKey.deleteMessage);
139
+ promise.resolve(WoosmapMessageAndKey.deleteMessage);
140
140
  }
141
141
  else{
142
142
  promise.reject(WoosmapMessageAndKey.errorCode,throwable.getMessage());
@@ -148,7 +148,7 @@ public class WoosmapTask {
148
148
  public void removeAllPois(final Promise promise){
149
149
  CompletableFuture.supplyAsync((Supplier<Void>) () -> {
150
150
  try{
151
- WoosmapDb.getInstance(context).getPOIsDAO().deleteAllPOIs();
151
+ WoosmapDb.getInstance(context).getPOIsDAO().deleteAllPOIs();
152
152
  }
153
153
  catch (Exception ex){
154
154
  throw new CompletionException(ex);
@@ -1,3 +1,2 @@
1
1
  #import <React/RCTBridgeModule.h>
2
2
  #import <React/RCTViewManager.h>
3
- #import <React/RCTEventEmitter.h>
@@ -1,5 +1,5 @@
1
1
  #import <React/RCTBridgeModule.h>
2
- //@interface RCT_EXTERN_REMAP_MODULE(newname, PluginGeofencing, RCTEventEmitter)
2
+
3
3
  @interface RCT_EXTERN_MODULE(PluginGeofencing, NSObject)
4
4
 
5
5
  RCT_EXTERN_METHOD(multiply:(float)a withB:(float)b
@@ -112,4 +112,9 @@ RCT_EXTERN_METHOD(getIndoorBeacons:(NSString *)venueID
112
112
  RCT_EXTERN_METHOD(removeIndoorBeacons:(RCTPromiseResolveBlock)resolve
113
113
  withRejecter:(RCTPromiseRejectBlock)reject)
114
114
 
115
+ + (BOOL)requiresMainQueueSetup
116
+ {
117
+ return YES;
118
+ }
119
+
115
120
  @end
@@ -3,8 +3,7 @@ import WoosmapGeofencing
3
3
 
4
4
  @objc(PluginGeofencing)
5
5
  class PluginGeofencing: RCTEventEmitter {
6
-
7
- /// Location routing to check location permission
6
+ /// Location routing to check location permission
8
7
  private var templocationChecker: CLLocationManager!
9
8
 
10
9
  /// List of location watch collected by plugin
@@ -1139,3 +1138,4 @@ extension PluginGeofencing:CLLocationManagerDelegate{
1139
1138
  }
1140
1139
 
1141
1140
  }
1141
+
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNative","require","_reactNativeUuid","_interopRequireDefault","_nativeInterface","_Location","_Region","_Poi","_IndoorBeacon","obj","__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","e","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","WoosmapGeofencing","_default","exports"],"sources":["index.tsx"],"sourcesContent":["import { NativeEventEmitter, Platform } 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 IndoorBeacon from './internal/IndoorBeacon';\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 request the required permissions to collect locations.\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.\n * The plugin will return an object with either one of the messages - BACKGROUND_LOCATION_DENIED, GRANTED, DENIED\n */\nfunction requestBLEPermissions(): Promise<string> {\n if (Platform.OS === 'android') {\n return PluginGeofencing.requestBLEPermissions();\n } else {\n return new Promise((resolve) => {\n resolve('GRANTED');\n });\n }\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 * 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 - BACKGROUND_LOCATION_DENIED, GRANTED, DENIED\n */\nfunction getBLEPermissionsStatus(): Promise<string> {\n if (Platform.OS == 'android') {\n return PluginGeofencing.getBLEPermissionsStatus();\n } else {\n return new Promise((resolve) => {\n resolve('GRANTED');\n });\n }\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 arg0.remove();\n //eventEmitter.removeListener('geolocationDidChange', arg0);\n const arg1 = saved[1];\n if (arg1) {\n arg1.remove();\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 arg0.remove();\n //eventEmitter.removeListener('woosmapgeofenceRegionDidChange', arg0);\n const arg1 = saved[1];\n if (arg1) {\n arg1.remove();\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\n/**\n * Retrieve Beacon info for venue\n * @param venueID - Optional venue id\n * @param ref - Optional beacon id return by region event\n * @returns promise with A callback that will be called on success or error.\n */\nfunction getIndoorBeacons(\n venueID?: string,\n ref?: string\n): Promise<IndoorBeacon[]> {\n if (venueID == null) {\n return PluginGeofencing.getAllIndoorBeacons()\n .then((result: any[]) => {\n var formatted: IndoorBeacon[] = [];\n result.forEach((item) => {\n if (ref !== undefined) {\n if (item.identifier === ref) {\n formatted.push(IndoorBeacon.jsonToObj(item));\n }\n } else {\n formatted.push(IndoorBeacon.jsonToObj(item));\n }\n });\n return Promise.resolve(formatted);\n })\n .catch((e: any) => {\n return Promise.reject(e);\n });\n } else {\n return PluginGeofencing.getIndoorBeacons(venueID)\n .then((result: any[]) => {\n var formatted: IndoorBeacon[] = [];\n result.forEach((item) => {\n if (ref !== undefined) {\n if (item.identifier === ref) {\n formatted.push(IndoorBeacon.jsonToObj(item));\n }\n } else {\n formatted.push(IndoorBeacon.jsonToObj(item));\n }\n });\n return Promise.resolve(formatted);\n })\n .catch((e: any) => {\n return Promise.reject(e);\n });\n }\n}\n\n/**\n * Remove saved POI info\n * @returns promise with A callback that will be called on success or error.\n */\nfunction removeIndoorBeacons(): Promise<string> {\n return PluginGeofencing.removeIndoorBeacons();\n}\n\nexport type {\n RegionType,\n GeofenceRegion,\n Region,\n Location,\n Poi,\n ProfileSource,\n IndoorBeacon,\n};\n\nconst WoosmapGeofencing = {\n initialize,\n setWoosmapApiKey,\n startTracking,\n requestPermissions,\n requestBLEPermissions,\n getPermissionsStatus,\n getBLEPermissionsStatus,\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 getIndoorBeacons,\n removeIndoorBe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CAAC;IAC1B,CAAC,CAAC;EACN;AACF;;AAEA;AACA;AACA;AACA;AACA,SAAS2B,mBAAmBA,CAAA,EAAoB;EAC9C,OAAOnF,wBAAgB,CAACmF,mBAAmB,CAAC,CAAC;AAC/C;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;EACVoB,aAAa;EACbT,YAAY;EACZY,eAAe;EACfR,OAAO;EACPU,UAAU;EACVE,mBAAmB;EACnBG,gBAAgB;EAChBM;AACF,CAAC;AAAC,IAAAE,QAAA,GAAAC,OAAA,CAAAzF,OAAA,GAEauF,iBAAiB"}
1
+ {"version":3,"names":["_reactNative","require","_reactNativeUuid","_interopRequireDefault","_nativeInterface","_Location","_Region","_Poi","_IndoorBeacon","obj","__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","e","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","WoosmapGeofencing","_default","exports"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,gBAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,gBAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,SAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,OAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,IAAA,GAAAJ,sBAAA,CAAAF,OAAA;AACA,IAAAO,aAAA,GAAAL,sBAAA,CAAAF,OAAA;AAAmD,SAAAE,uBAAAM,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAOnD,MAAMG,YAAY,GAAG,IAAIC,+BAAkB,CAACC,wBAAgB,CAAC;AAE7D,IAAIC,qBAA0B,GAAG,CAAC,CAAC;AACnC,IAAIC,mBAAwB,GAAG,CAAC,CAAC;AACjC;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,UAAUA,CAACC,IAAU,EAAmB;EAC/C,IAAIA,IAAI,IAAI,IAAI,EAAE;IAChBA,IAAI,GAAG,CAAC,CAAC;EACX;EACA,OAAOJ,wBAAgB,CAACG,UAAU,CAACC,IAAI,CAAC;AAC1C;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,gBAAgBA,CAACC,MAAc,EAAmB;EACzD,OAAON,wBAAgB,CAACK,gBAAgB,CAAC,CAACC,MAAM,CAAC,CAAC;AACpD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,aAAaA,CAACC,eAAuB,EAAmB;EAC/D,OAAOR,wBAAgB,CAACO,aAAa,CAAC,CAACC,eAAe,CAAC,CAAC;AAC1D;;AAEA;AACA;AACA;AACA;AACA;AACA,SAASC,YAAYA,CAAA,EAAoB;EACvC,OAAOT,wBAAgB,CAACS,YAAY,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MACjB,OAAOzC,OAAO,CAAC0C,MAAM,CAACD,CAAC,CAAC;IAC1B,CAAC,CAAC;EACN;AACF;;AAEA;AACA;AACA;AACA;AACA,SAAS2B,mBAAmBA,CAAA,EAAoB;EAC9C,OAAOnF,wBAAgB,CAACmF,mBAAmB,CAAC,CAAC;AAC/C;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;EACVoB,aAAa;EACbT,YAAY;EACZY,eAAe;EACfR,OAAO;EACPU,UAAU;EACVE,mBAAmB;EACnBG,gBAAgB;EAChBM;AACF,CAAC;AAAC,IAAAE,QAAA,GAAAC,OAAA,CAAAzF,OAAA,GAEauF,iBAAiB"}
@@ -1,8 +1,5 @@
1
1
  "use strict";
2
2
 
3
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
4
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
5
- function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
6
3
  /**
7
4
  * @classdesc A class that represents the Airship object.
8
5
  * @constructs Airship
@@ -11,8 +8,6 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
11
8
  */
12
9
  class Airship {
13
10
  constructor(name, properties) {
14
- _defineProperty(this, "Name", void 0);
15
- _defineProperty(this, "Properties", void 0);
16
11
  this.Name = name;
17
12
  this.Properties = properties;
18
13
  }
@@ -1 +1 @@
1
- {"version":3,"names":["Airship","constructor","name","properties","_defineProperty","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,OAAO,CAAC;EAGZC,WAAWA,CAACC,IAAY,EAAEC,UAAkB,EAAE;IAAAC,eAAA;IAAAA,eAAA;IAC5C,IAAI,CAACC,IAAI,GAAGH,IAAI;IAChB,IAAI,CAACI,UAAU,GAAGH,UAAU;EAC9B;EACA;AACF;AACA;AACA;AACA;AACA;EACE,OAAOI,SAASA,CAACC,IAAS,EAAE;IAC1B,OAAO,IAAIR,OAAO,CAACQ,IAAI,CAACN,IAAI,EAAEM,IAAI,CAACL,UAAU,CAAC;EAChD;AACF;AACAM,MAAM,CAACC,OAAO,GAAGV,OAAO"}
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"}
@@ -4,9 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
8
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
9
- function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
10
7
  /**
11
8
  * Represents an indoor beacon.
12
9
  * @class
@@ -21,6 +18,24 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
21
18
  * @param {Object} properties - custom property share with beacon
22
19
  */
23
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
+
24
39
  /**
25
40
  * Creates a new instance of the Beacon class.
26
41
  * @param {string} beaconId - The ID of the beacon.
@@ -34,24 +49,6 @@ class IndoorBeacon {
34
49
  * @param {Object} properties - custom property share with beacon
35
50
  */
36
51
  constructor(beaconId, major, minor, venueId, identifier, latitude, longitude, date, properties) {
37
- /// The UUID of the beacon.
38
- _defineProperty(this, "beaconId", void 0);
39
- /// The Major version of the beacon.
40
- _defineProperty(this, "major", void 0);
41
- /// The Minor version of the beacon.
42
- _defineProperty(this, "minor", void 0);
43
- /// The ID of the venue to which this beacon belongs to.
44
- _defineProperty(this, "venueId", void 0);
45
- /// Woosmap identifier of the beacon.
46
- _defineProperty(this, "identifier", void 0);
47
- /// Latitude of the beacon.
48
- _defineProperty(this, "latitude", void 0);
49
- /// Longitude of the beacon.
50
- _defineProperty(this, "longitude", void 0);
51
- /// The date when the beacon was added/updated.
52
- _defineProperty(this, "date", void 0);
53
- /// Custom properties associated to the beacon.
54
- _defineProperty(this, "properties", void 0);
55
52
  this.beaconId = beaconId;
56
53
  this.major = major;
57
54
  this.minor = minor;
@@ -1 +1 @@
1
- {"version":3,"names":["IndoorBeacon","constructor","beaconId","major","minor","venueId","identifier","latitude","longitude","date","properties","_defineProperty","jsonToObj","json","_default","exports","default"],"sources":["IndoorBeacon.tsx"],"sourcesContent":["/**\n * Represents an indoor beacon.\n * @class\n * @param {string} beaconId - The ID of the beacon.\n * @param {number} major - The major version number of the beacon.\n * @param {number} minor - The minor version number of the beacon.\n * @param {string} venueId - The ID of the venue where the beacon is located.\n * @param {string} identifier - The identifier of the beacon.\n * @param {number} latitude - The latitude coordinate of the beacon's location.\n * @param {number} longitude - The longitude coordinate of the beacon's location.\n * @param {number} date - The date when the beacon was created.\n * @param {Object} properties - custom property share with beacon\n */\nclass IndoorBeacon {\n /// The UUID of the beacon.\n beaconId: string;\n\n /// The Major version of the beacon.\n major: number;\n\n /// The Minor version of the beacon.\n minor: number;\n\n /// The ID of the venue to which this beacon belongs to.\n venueId: string;\n\n /// Woosmap identifier of the beacon.\n identifier: string;\n\n /// Latitude of the beacon.\n latitude: number;\n\n /// Longitude of the beacon.\n longitude: number;\n\n /// The date when the beacon was added/updated.\n date: number;\n\n /// Custom properties associated to the beacon.\n properties: { [key: string]: any };\n\n /**\n * Creates a new instance of the Beacon class.\n * @param {string} beaconId - The ID of the beacon.\n * @param {number} major - The major version number of the beacon.\n * @param {number} minor - The minor version number of the beacon.\n * @param {string} venueId - The ID of the venue where the beacon is located.\n * @param {string} identifier - The identifier of the beacon.\n * @param {number} latitude - The latitude coordinate of the beacon's location.\n * @param {number} longitude - The longitude coordinate of the beacon's location.\n * @param {number} date - The date when the beacon was created.\n * @param {Object} properties - custom property share with beacon\n */\n constructor(\n beaconId: string,\n major: number,\n minor: number,\n venueId: string,\n identifier: string,\n latitude: number,\n longitude: number,\n date: number,\n properties: { [key: string]: any }\n ) {\n this.beaconId = beaconId;\n this.major = major;\n this.minor = minor;\n this.venueId = venueId;\n this.identifier = identifier;\n this.latitude = latitude;\n this.longitude = longitude;\n this.date = date;\n this.properties = properties;\n }\n /**\n * Converts json object to an object of type IndoorBeacon.\n * @param {Object} json The json representation of the IndoorBeacon.\n * @returns Object\n * @memberof Poi\n */\n static jsonToObj(json: any) {\n return new IndoorBeacon(\n json.beaconId,\n json.major,\n json.minor,\n json.venueId,\n json.identifier,\n json.latitude,\n json.longitude,\n json.date,\n json.properties\n );\n }\n}\nexport default IndoorBeacon;\n"],"mappings":";;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMA,YAAY,CAAC;EA4BjB;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;IAjDF;IAAAC,eAAA;IAGA;IAAAA,eAAA;IAGA;IAAAA,eAAA;IAGA;IAAAA,eAAA;IAGA;IAAAA,eAAA;IAGA;IAAAA,eAAA;IAGA;IAAAA,eAAA;IAGA;IAAAA,eAAA;IAGA;IAAAA,eAAA;IA0BE,IAAI,CAACT,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,OAAOE,SAASA,CAACC,IAAS,EAAE;IAC1B,OAAO,IAAIb,YAAY,CACrBa,IAAI,CAACX,QAAQ,EACbW,IAAI,CAACV,KAAK,EACVU,IAAI,CAACT,KAAK,EACVS,IAAI,CAACR,OAAO,EACZQ,IAAI,CAACP,UAAU,EACfO,IAAI,CAACN,QAAQ,EACbM,IAAI,CAACL,SAAS,EACdK,IAAI,CAACJ,IAAI,EACTI,IAAI,CAACH,UACP,CAAC;EACH;AACF;AAAC,IAAAI,QAAA,GAAAC,OAAA,CAAAC,OAAA,GACchB,YAAY"}
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"}
@@ -4,9 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
8
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
9
- function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
10
7
  /**
11
8
  * @classdesc A class that represents the location object.
12
9
  * @constructs Location
@@ -19,11 +16,6 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
19
16
  */
20
17
  class Location {
21
18
  constructor(date, latitude, locationdescription, locationid, longitude) {
22
- _defineProperty(this, "Date", void 0);
23
- _defineProperty(this, "Latitude", void 0);
24
- _defineProperty(this, "Locationdescription", void 0);
25
- _defineProperty(this, "Locationid", void 0);
26
- _defineProperty(this, "Longitude", void 0);
27
19
  this.Date = date;
28
20
  this.Latitude = latitude;
29
21
  this.Locationdescription = locationdescription;
@@ -1 +1 @@
1
- {"version":3,"names":["Location","constructor","date","latitude","locationdescription","locationid","longitude","_defineProperty","Date","Latitude","Locationdescription","Locationid","Longitude","jsonToObj","json","_default","exports","default"],"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,QAAQ,CAAC;EAMbC,WAAWA,CACTC,IAAY,EACZC,QAAgB,EAChBC,mBAA2B,EAC3BC,UAAkB,EAClBC,SAAiB,EACjB;IAAAC,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IACA,IAAI,CAACC,IAAI,GAAGN,IAAI;IAChB,IAAI,CAACO,QAAQ,GAAGN,QAAQ;IACxB,IAAI,CAACO,mBAAmB,GAAGN,mBAAmB;IAC9C,IAAI,CAACO,UAAU,GAAGN,UAAU;IAC5B,IAAI,CAACO,SAAS,GAAGN,SAAS;EAC5B;EACA;AACF;AACA;AACA;AACA;AACA;EACE,OAAOO,SAASA,CAACC,IAAS,EAAE;IAC1B,OAAO,IAAId,QAAQ,CACjBc,IAAI,CAACZ,IAAI,EACTY,IAAI,CAACX,QAAQ,EACbW,IAAI,CAACV,mBAAmB,EACxBU,IAAI,CAACT,UAAU,EACfS,IAAI,CAACR,SACP,CAAC;EACH;AACF;AAAC,IAAAS,QAAA,GAAAC,OAAA,CAAAC,OAAA,GACcjB,QAAQ"}
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"}
@@ -1,8 +1,5 @@
1
1
  "use strict";
2
2
 
3
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
4
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
5
- function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
6
3
  /**
7
4
  * @classdesc A class that represents the Marketing Cloud object.
8
5
  * @constructs MarketingCloud
@@ -11,8 +8,6 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
11
8
  */
12
9
  class MarketingCloud {
13
10
  constructor(name, properties) {
14
- _defineProperty(this, "Name", void 0);
15
- _defineProperty(this, "Properties", void 0);
16
11
  this.Name = name;
17
12
  this.Properties = properties;
18
13
  }
@@ -1 +1 @@
1
- {"version":3,"names":["MarketingCloud","constructor","name","properties","_defineProperty","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,cAAc,CAAC;EAGnBC,WAAWA,CAACC,IAAY,EAAEC,UAAkB,EAAE;IAAAC,eAAA;IAAAA,eAAA;IAC5C,IAAI,CAACC,IAAI,GAAGH,IAAI;IAChB,IAAI,CAACI,UAAU,GAAGH,UAAU;EAC9B;EACA;AACF;AACA;AACA;AACA;AACA;EACE,OAAOI,SAASA,CAACC,IAAS,EAAE;IAC1B,OAAO,IAAIR,cAAc,CAACQ,IAAI,CAACN,IAAI,EAAEM,IAAI,CAACL,UAAU,CAAC;EACvD;AACF;AACAM,MAAM,CAACC,OAAO,GAAGV,cAAc"}
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"}