mapp-intelligence-reactnative-plugin 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/android/build.gradle +19 -8
  2. package/android/gradle.properties +2 -2
  3. package/android/settings.gradle +24 -0
  4. package/android/specs/MappinteligencePluginSpec.js +8 -0
  5. package/android/src/main/AndroidManifest.xml +3 -1
  6. package/android/src/main/java/com/mappinteligenceplugin/MappinteligencePluginModule.kt +291 -262
  7. package/android/src/main/java/com/mappinteligenceplugin/MappinteligencePluginPackage.kt +18 -7
  8. package/android/src/main/java/com/mappinteligenceplugin/MappintelligencePluginSpec.kt +59 -0
  9. package/ios/Frameworks/MappIntelligenceiOS.xcframework/Info.plist +48 -0
  10. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MIActionEvent.h +33 -0
  11. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MICampaignParameters.h +32 -0
  12. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MIDefaultTracker.h +49 -0
  13. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MIEcommerceParameters.h +52 -0
  14. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MIEventParameters.h +23 -0
  15. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MIFormField.h +28 -0
  16. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MIFormParameters.h +48 -0
  17. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MIFormSubmitEvent.h +22 -0
  18. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MIMediaEvent.h +30 -0
  19. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MIMediaParameters.h +31 -0
  20. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MIPageParameters.h +27 -0
  21. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MIPageViewEvent.h +34 -0
  22. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MIParamType.h +28 -0
  23. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MIParams.h +28 -0
  24. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MIProduct.h +28 -0
  25. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MIProperties.h +49 -0
  26. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MISessionParameters.h +20 -0
  27. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MITrackerRequest.h +39 -0
  28. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MITrackingEvent.h +23 -0
  29. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MIUsageStatistics.h +32 -0
  30. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MIUserCategories.h +49 -0
  31. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MappIntelligence.h +260 -0
  32. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceSDK/MappIntelligenceSDK.h +9 -0
  33. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MIActionEvent.h +33 -0
  34. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MICampaignParameters.h +32 -0
  35. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MIDefaultTracker.h +49 -0
  36. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MIEcommerceParameters.h +52 -0
  37. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MIEventParameters.h +23 -0
  38. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MIFormField.h +28 -0
  39. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MIFormParameters.h +48 -0
  40. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MIFormSubmitEvent.h +22 -0
  41. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MIMediaEvent.h +30 -0
  42. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MIMediaParameters.h +31 -0
  43. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MIPageParameters.h +27 -0
  44. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MIPageViewEvent.h +34 -0
  45. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MIParamType.h +28 -0
  46. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MIParams.h +28 -0
  47. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MIProduct.h +28 -0
  48. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MISessionParameters.h +20 -0
  49. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MITrackingEvent.h +23 -0
  50. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MIUsageStatistics.h +32 -0
  51. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MIUserCategories.h +49 -0
  52. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MIWebViewTracker.h +21 -0
  53. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MappIntelligence.h +260 -0
  54. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MappIntelligenceLogger.h +47 -0
  55. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/Headers/MappIntelligenceiOS/MappIntelligenceiOS.h +13 -0
  56. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64/libMappIntelligenceiOS.a +0 -0
  57. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MIActionEvent.h +33 -0
  58. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MICampaignParameters.h +32 -0
  59. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MIDefaultTracker.h +49 -0
  60. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MIEcommerceParameters.h +52 -0
  61. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MIEventParameters.h +23 -0
  62. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MIFormField.h +28 -0
  63. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MIFormParameters.h +48 -0
  64. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MIFormSubmitEvent.h +22 -0
  65. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MIMediaEvent.h +30 -0
  66. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MIMediaParameters.h +31 -0
  67. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MIPageParameters.h +27 -0
  68. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MIPageViewEvent.h +34 -0
  69. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MIParamType.h +28 -0
  70. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MIParams.h +28 -0
  71. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MIProduct.h +28 -0
  72. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MIProperties.h +49 -0
  73. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MISessionParameters.h +20 -0
  74. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MITrackerRequest.h +39 -0
  75. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MITrackingEvent.h +23 -0
  76. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MIUsageStatistics.h +32 -0
  77. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MIUserCategories.h +49 -0
  78. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MappIntelligence.h +260 -0
  79. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceSDK/MappIntelligenceSDK.h +9 -0
  80. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MIActionEvent.h +33 -0
  81. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MICampaignParameters.h +32 -0
  82. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MIDefaultTracker.h +49 -0
  83. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MIEcommerceParameters.h +52 -0
  84. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MIEventParameters.h +23 -0
  85. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MIFormField.h +28 -0
  86. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MIFormParameters.h +48 -0
  87. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MIFormSubmitEvent.h +22 -0
  88. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MIMediaEvent.h +30 -0
  89. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MIMediaParameters.h +31 -0
  90. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MIPageParameters.h +27 -0
  91. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MIPageViewEvent.h +34 -0
  92. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MIParamType.h +28 -0
  93. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MIParams.h +28 -0
  94. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MIProduct.h +28 -0
  95. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MISessionParameters.h +20 -0
  96. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MITrackingEvent.h +23 -0
  97. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MIUsageStatistics.h +32 -0
  98. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MIUserCategories.h +49 -0
  99. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MIWebViewTracker.h +21 -0
  100. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MappIntelligence.h +260 -0
  101. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MappIntelligenceLogger.h +47 -0
  102. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/Headers/MappIntelligenceiOS/MappIntelligenceiOS.h +13 -0
  103. package/ios/Frameworks/MappIntelligenceiOS.xcframework/ios-arm64_x86_64-simulator/libMappIntelligenceiOS.a +0 -0
  104. package/lib/module/GlobalErrorHandler.js +6 -11
  105. package/lib/module/GlobalErrorHandler.js.map +1 -1
  106. package/lib/module/MappIntelligencePlugin.js +6 -2
  107. package/lib/module/MappIntelligencePlugin.js.map +1 -1
  108. package/lib/module/NativeMappintelligencePlugin.js +5 -0
  109. package/lib/module/NativeMappintelligencePlugin.js.map +1 -0
  110. package/lib/module/UseWebTracking.js +20 -20
  111. package/lib/module/UseWebTracking.js.map +1 -1
  112. package/lib/module/promiseRejectionHandler.js +4 -9
  113. package/lib/module/promiseRejectionHandler.js.map +1 -1
  114. package/lib/typescript/src/GlobalErrorHandler.d.ts.map +1 -1
  115. package/lib/typescript/src/MappIntelligencePlugin.d.ts.map +1 -1
  116. package/lib/typescript/src/NativeMappintelligencePlugin.d.ts +39 -0
  117. package/lib/typescript/src/NativeMappintelligencePlugin.d.ts.map +1 -0
  118. package/lib/typescript/src/UseWebTracking.d.ts +1 -1
  119. package/lib/typescript/src/UseWebTracking.d.ts.map +1 -1
  120. package/lib/typescript/src/promiseRejectionHandler.d.ts.map +1 -1
  121. package/mapp-intelligence-reactnative-plugin.podspec +4 -1
  122. package/package.json +20 -41
  123. package/src/GlobalErrorHandler.tsx +7 -12
  124. package/src/MappIntelligencePlugin.tsx +16 -11
  125. package/src/NativeMappintelligencePlugin.ts +55 -0
  126. package/src/UseWebTracking.tsx +29 -27
  127. package/src/promiseRejectionHandler.tsx +5 -10
@@ -0,0 +1,32 @@
1
+ //
2
+ // AdvertisementProperties.h
3
+ // MappIntelligenceSDK
4
+ //
5
+ // Created by Miroljub Stoilkovic on 28/10/2020.
6
+ // Copyright © 2020 Mapp Digital US, LLC. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+
11
+
12
+ typedef NS_ENUM(NSInteger, MICampaignAction) {
13
+ click = 1,
14
+ view = 2
15
+ };
16
+
17
+ NS_ASSUME_NONNULL_BEGIN
18
+
19
+ @interface MICampaignParameters : NSObject <NSCopying, NSSecureCoding>
20
+ @property (nullable) NSString *campaignId;
21
+ @property MICampaignAction action;
22
+ @property (nullable) NSString *mediaCode;
23
+ @property BOOL oncePerSession;
24
+ @property (nullable) NSDictionary<NSNumber* ,NSString*>* customParameters;
25
+
26
+ - (instancetype)initWith: (NSString *) campaignId;
27
+ - (instancetype)initWithDictionary:(NSDictionary*)dictionary;
28
+ - (NSMutableArray<NSURLQueryItem*>*)asQueryItems;
29
+
30
+ @end
31
+
32
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,49 @@
1
+ //
2
+ // MIDefaultTracker.h
3
+ // MappIntelligenceSDK
4
+ //
5
+ // Created by Vladan Randjelovic on 10/02/2020.
6
+ // Copyright © 2020 Mapp Digital US, LLC. All rights reserved.
7
+ //
8
+
9
+ #ifndef DefaultTracker_h
10
+ #define DefaultTracker_h
11
+ #import <UIKit/UIKit.h>
12
+ #import "MIPageViewEvent.h"
13
+ #import "MIFormSubmitEvent.h"
14
+ #import "MIActionEvent.h"
15
+
16
+ #endif /* DefaultTracker_h */
17
+
18
+ @interface MIDefaultTracker : NSObject
19
+ @property BOOL isReady;
20
+ @property (nonatomic) BOOL anonymousTracking;
21
+ @property (nonatomic) BOOL isItFlutter;
22
+ @property NSString*_Nullable temporaryID;
23
+ @property NSString* _Nonnull version;
24
+ @property NSString* _Nonnull platform;
25
+ @property (nonatomic) NSArray<NSString*> * _Nullable suppressedParameters;
26
+ @property MIUsageStatistics* _Nonnull usageStatistics;
27
+
28
+ + (nullable instancetype)sharedInstance;
29
+ - (NSString *_Nullable)generateEverId;
30
+ - (void)setEverIDFromString: (NSString *_Nonnull)everIDString;
31
+ - (NSString*_Nonnull)generateUserAgent;
32
+ - (BOOL)isBackgroundSendoutEnabled;
33
+ - (BOOL)isUserMatchingEnabled;
34
+ - (void)setupVersion: (NSString *_Nonnull) version andPlatform: (NSString *_Nonnull) platform;
35
+ - (NSError*_Nullable)track:(UIViewController *_Nonnull)controller;
36
+ - (void)updateFirstSessionWith: (UIApplicationState) state;
37
+ - (NSError*_Nullable)trackWith:(NSString *_Nonnull)name;
38
+ - (NSError*_Nullable)trackWithEvent:(MITrackingEvent *_Nonnull)event;
39
+ - (NSError *_Nullable)trackWithCustomEvent:(MITrackingEvent *_Nonnull)event;
40
+
41
+ + (NSUserDefaults *_Nonnull)sharedDefaults;
42
+ - (void)initHibernate;
43
+ - (void)reset;
44
+ - (void)initializeTracking;
45
+ - (void)sendRequestFromDatabaseWithCompletionHandler: (void (^_Nullable)(NSError * _Nullable error))handler;
46
+ - (void)sendBatchForRequestInBackground: (BOOL)background withCompletionHandler: (void (^_Nullable)(NSError * _Nullable error))handler;
47
+ - (void)removeAllRequestsFromDBWithCompletionHandler: (void (^_Nullable)(NSError * _Nullable error))handler;
48
+ - (void)migrateData;
49
+ @end
@@ -0,0 +1,52 @@
1
+ //
2
+ // EcommerceProperties.h
3
+ // MappIntelligenceSDK
4
+ //
5
+ // Created by Stefan Stevanovic on 26/10/2020.
6
+ // Copyright © 2020 Mapp Digital US, LLC. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+ #import "MIProduct.h"
11
+
12
+ NS_ASSUME_NONNULL_BEGIN
13
+
14
+ typedef NS_ENUM(NSInteger, MIStatus) {
15
+ noneStatus = 0,
16
+ addedToBasket = 1,
17
+ purchased = 2,
18
+ viewed = 3,
19
+ deletedFromBasket = 4,
20
+ addedToWishlist = 5,
21
+ deletedFromWishlist = 6,
22
+ checkout = 7
23
+ };
24
+
25
+ @interface MIEcommerceParameters : NSObject
26
+
27
+ @property (nullable) NSArray<MIProduct*>* products;
28
+ @property (nonatomic) MIStatus status;
29
+ @property (nullable) NSString* currency;
30
+ @property (nullable) NSString* orderID;
31
+ @property (nullable) NSNumber* orderValue;
32
+ //new values
33
+ @property (nullable) NSString* returningOrNewCustomer;
34
+ @property (nullable) NSNumber* returnValue;
35
+ @property (nullable) NSNumber* cancellationValue;
36
+ @property (nullable) NSNumber* couponValue;
37
+ @property (nullable) NSString* paymentMethod;
38
+ @property (nullable) NSString* shippingServiceProvider;
39
+ @property (nullable) NSString* shippingSpeed;
40
+ @property (nullable) NSNumber* shippingCost;
41
+ @property (nullable) NSNumber* markUp;
42
+ @property (nullable) NSString* orderStatus;
43
+
44
+ @property (nullable) NSDictionary<NSNumber* ,NSString*>* customParameters;
45
+
46
+ - (instancetype)initWithCustomParameters: (NSDictionary<NSNumber* ,NSString*>* _Nullable) parameters;
47
+ - (instancetype)initWithDictionary:(NSDictionary*)dictionary;
48
+ - (NSMutableArray<NSURLQueryItem*>*)asQueryItems;
49
+
50
+ @end
51
+
52
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,23 @@
1
+ //
2
+ // MIActionProperties.h
3
+ // MappIntelligenceSDK
4
+ //
5
+ // Created by Miroljub Stoilkovic on 08/09/2020.
6
+ // Copyright © 2020 Mapp Digital US, LLC. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+
11
+ NS_ASSUME_NONNULL_BEGIN
12
+
13
+ @interface MIEventParameters : NSObject
14
+
15
+ @property (nullable) NSDictionary<NSNumber* ,NSString*>* parameters;
16
+
17
+ -(instancetype)initWithParameters: (NSDictionary<NSNumber* ,NSString*>* _Nullable) parameters;
18
+ - (instancetype)initWithDictionary:(NSDictionary*)dictionary;
19
+ -(NSMutableArray<NSURLQueryItem*>*)asQueryItems;
20
+
21
+ @end
22
+
23
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,28 @@
1
+ //
2
+ // MIFormField.h
3
+ // MappIntelligenceSDK
4
+ //
5
+ // Created by Stefan Stevanovic on 26.1.22..
6
+ // Copyright © 2022 Mapp Digital US, LLC. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+
11
+ NS_ASSUME_NONNULL_BEGIN
12
+
13
+ @interface MIFormField : NSObject
14
+
15
+ @property (nonatomic, nullable) NSString* formFieldName;
16
+ @property (nonatomic, nullable) NSString* formFieldContent;
17
+ @property (nonatomic) NSInteger ID;
18
+ @property (nonatomic) BOOL lastFocus;
19
+ @property (nonatomic) BOOL anonymus;
20
+
21
+ - (instancetype)initWithDictionary:(NSDictionary*)dictionary;
22
+ - (instancetype)initWithName:(NSString*)name andContent: (NSString*)content andID: (NSInteger)ID andWithAnonymus:(BOOL)anonymus andFocus:(BOOL)focus;
23
+ -(void)renameField: (NSString*) renameValue;
24
+ - (NSString*)getFormFieldForQuery;
25
+
26
+ @end
27
+
28
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,48 @@
1
+ //
2
+ // MIFormParameters.h
3
+ // MappIntelligenceSDK
4
+ //
5
+ // Created by Stefan Stevanovic on 26.1.22..
6
+ // Copyright © 2022 Mapp Digital US, LLC. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+ #import <UIKit/UIKit.h>
11
+
12
+ NS_ASSUME_NONNULL_BEGIN
13
+
14
+ @interface MIFormParameters : NSObject
15
+
16
+ /// formName by default is name of uiviewcontroler, but user can specify it to be differnt one.
17
+ @property (nonatomic, nullable) NSString* formName;
18
+
19
+ /// fieldIds indicate ids which will be trackable, if it is not specified all trackable controls at form will be tracked
20
+ @property (nonatomic, nullable) NSMutableArray<NSNumber*>* fieldIds;
21
+
22
+ /// By default, the name of the field ID is used to generate the name of the field. If you want to change the default name you can specify this here.
23
+ @property (nonatomic, nullable) NSMutableDictionary* renameFields;
24
+
25
+ /// By default, the value of the text field is used as the value of the field. You can change the default value here. Please be aware that if hardcoded, the field value is changed permanently and does not indicate anymore if a field was left empty.
26
+ @property (nonatomic, nullable) NSMutableDictionary* changeFieldsValue;
27
+
28
+ /// By default, only EditText fields are anonymized and send as filled out or empty to the track server, instead of displaying the actual value of the field. If other field types need to be anonymized, you can indicate them here.
29
+ @property (nonatomic, nullable) NSMutableArray<NSNumber*>* anonymousSpecificFields;
30
+
31
+ /// By default, the SDK sends EditText fields anonymized (filled out / empty) to Mapp Intelligence. If you want to send the actual content of the specific fields instead, indicate them here.
32
+ @property (nonatomic, nullable) NSMutableArray<NSNumber*>* fullContentSpecificFields;
33
+
34
+ /// If you want to indicate that a form has been submitted or canceled, you can set the confirmButton to true or false. By default, the confirmButton is set to true.
35
+ @property (nonatomic) BOOL confirmButton;
36
+
37
+ /// If you want to anonymize all field types, set anonymous to true.
38
+ @property (nonatomic, nullable) NSNumber* anonymous;
39
+
40
+ /// You can track the order in which the user has filled out the fields. Please note that you need to track the order manually and parse the data to the fieldsOrder function. Mapp Intelligence cannot track the order in which the user filled out the form automatically.
41
+ @property (nonatomic, nullable) NSMutableArray<NSNumber*>* pathAnalysis;
42
+
43
+ - (instancetype)initWithDictionary:(NSDictionary*)dictionary;
44
+ - (NSMutableArray<NSURLQueryItem*>*)asQueryItems;
45
+
46
+ @end
47
+
48
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,22 @@
1
+ //
2
+ // MIFromSubmitEvent.h
3
+ // MappIntelligenceSDK
4
+ //
5
+ // Created by Stefan Stevanovic on 1.2.22..
6
+ // Copyright © 2022 Mapp Digital US, LLC. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+ #import "MITrackingEvent.h"
11
+ #import "MIUsageStatistics.h"
12
+ #import "MIFormParameters.h"
13
+
14
+ NS_ASSUME_NONNULL_BEGIN
15
+
16
+ @interface MIFormSubmitEvent : MITrackingEvent
17
+
18
+ @property (nonatomic, nullable) MIFormParameters *formParameters;
19
+
20
+ @end
21
+
22
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,30 @@
1
+ //
2
+ // MIMediaEvent.h
3
+ // MappIntelligenceSDK
4
+ //
5
+ // Created by Miroljub Stoilkovic on 28/12/2020.
6
+ // Copyright © 2020 Mapp Digital US, LLC. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+ #import "MIMediaParameters.h"
11
+ #import "MIEventParameters.h"
12
+ #import "MISessionParameters.h"
13
+ #import "MIEcommerceParameters.h"
14
+ #import "MITrackingEvent.h"
15
+
16
+ NS_ASSUME_NONNULL_BEGIN
17
+
18
+ @interface MIMediaEvent : MITrackingEvent
19
+
20
+ @property (nonatomic, nonnull) MIMediaParameters *mediaParameters;
21
+ @property (nonatomic, nullable) MIEventParameters* eventParameters;
22
+ @property (nonatomic, nullable) MISessionParameters *sessionParameters;
23
+ @property (nonatomic, nullable) MIEcommerceParameters *ecommerceParameters;
24
+
25
+ - (instancetype)init NS_UNAVAILABLE;
26
+ - (instancetype)initWithPageName:(NSString *)name parameters: (MIMediaParameters *)properties;
27
+
28
+ @end
29
+
30
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,31 @@
1
+ //
2
+ // MIMediaParameters.h
3
+ // MappIntelligenceSDK
4
+ //
5
+ // Created by Miroljub Stoilkovic on 27/12/2020.
6
+ // Copyright © 2020 Mapp Digital US, LLC. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+
11
+ NS_ASSUME_NONNULL_BEGIN
12
+
13
+ @interface MIMediaParameters : NSObject
14
+
15
+ @property (nonnull) NSString *name;
16
+ @property (nonnull) NSString *action;
17
+ @property (nullable) NSNumber *bandwith;
18
+ @property (nonnull) NSNumber *duration;
19
+ @property (nonnull) NSNumber *position;
20
+ @property (nullable)NSNumber *soundIsMuted;
21
+ @property (nullable)NSNumber *soundVolume;
22
+ @property (nullable) NSDictionary<NSNumber* ,NSString*>* customCategories;
23
+
24
+ - (instancetype)init NS_UNAVAILABLE;
25
+ - (instancetype)initWith: (NSString *) name action: (NSString *)action position: (NSNumber *) position duration: (NSNumber *) duration;
26
+ - (instancetype)initWithDictionary:(NSDictionary*)dictionary;
27
+ -(NSMutableArray<NSURLQueryItem*>*)asQueryItems;
28
+
29
+ @end
30
+
31
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,27 @@
1
+ //
2
+ // MIPageParameters.h
3
+ // MappIntelligenceSDK
4
+ //
5
+ // Created by Stefan Stevanovic on 17/07/2020.
6
+ // Copyright © 2020 Mapp Digital US, LLC. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+
11
+ NS_ASSUME_NONNULL_BEGIN
12
+
13
+ @interface MIPageParameters : NSObject
14
+
15
+ @property (nullable) NSString* internalSearch;
16
+ @property (nullable) NSDictionary<NSNumber* ,NSString*> *details;
17
+ @property (nullable) NSMutableDictionary* groups;
18
+
19
+ -(instancetype)initWithPageParams: (NSDictionary<NSNumber* ,NSString*>* _Nullable) parameters pageCategory: (NSMutableDictionary* _Nullable) category search: (NSString* _Nullable)internalSearch;
20
+
21
+ - (instancetype)initWithDictionary:(NSDictionary*)dictionary;
22
+
23
+ -(NSMutableArray<NSURLQueryItem*>*)asQueryItems;
24
+
25
+ @end
26
+
27
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,34 @@
1
+
2
+
3
+ //
4
+ // MIPageViewEvent.h
5
+ // MappIntelligenceSDK
6
+ //
7
+ // Created by Stefan Stevanovic on 3/6/20.
8
+ // Copyright © 2020 Mapp Digital US, LLC. All rights reserved.
9
+ //
10
+
11
+ #import <Foundation/Foundation.h>
12
+ #import "MIPageParameters.h"
13
+ #import "MITrackingEvent.h"
14
+ #import "MISessionParameters.h"
15
+ #import "MIUserCategories.h"
16
+ #import "MIEcommerceParameters.h"
17
+ #import "MICampaignParameters.h"
18
+
19
+ NS_ASSUME_NONNULL_BEGIN
20
+
21
+ @interface MIPageViewEvent : MITrackingEvent
22
+
23
+ @property (nonatomic, nonnull) MIPageParameters* pageParameters;
24
+ @property (nonatomic, nullable) MISessionParameters *sessionParameters;
25
+ @property (nonatomic, nullable) MIUserCategories *userCategories;
26
+ @property (nonatomic, nullable) MIEcommerceParameters *ecommerceParameters;
27
+ @property (nonatomic, nullable) MICampaignParameters *campaignParameters;
28
+
29
+ - (instancetype)initWithName:(NSString *)name;
30
+
31
+ @end
32
+
33
+ NS_ASSUME_NONNULL_END
34
+
@@ -0,0 +1,28 @@
1
+ //
2
+ // MIParamType.h
3
+ // MappIntelligenceSDK
4
+ //
5
+ // Created by Miroljub Stoilkovic on 17/12/2020.
6
+ // Copyright © 2020 Mapp Digital US, LLC. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+
11
+ NS_ASSUME_NONNULL_BEGIN
12
+
13
+ @interface MIParamType : NSObject
14
+
15
+ +(NSString *)pageParam;
16
+ +(NSString *)pageCategory;
17
+ +(NSString *)ecommerceParam;
18
+ +(NSString *)productCategory;
19
+ +(NSString *)eventParam;
20
+ +(NSString *)campaignParam;
21
+ +(NSString *)sessionParam;
22
+ +(NSString *)urmCategory;
23
+
24
+ +(NSString *) createCustomParam:(NSString *) type value: (NSInteger) value;
25
+
26
+ @end
27
+
28
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,28 @@
1
+ //
2
+ // MIParams.h
3
+ // MappIntelligenceSDK
4
+ //
5
+ // Created by Miroljub Stoilkovic on 17/12/2020.
6
+ // Copyright © 2020 Mapp Digital US, LLC. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+
11
+ NS_ASSUME_NONNULL_BEGIN
12
+
13
+ @interface MIParams : NSObject
14
+
15
+ +(NSString *)internalSearch;
16
+ +(NSString *)mediaCode;
17
+ +(NSString *)customerId;
18
+ +(NSString *)productName;
19
+ +(NSString *)productCost;
20
+ +(NSString *)productCurrency;
21
+ +(NSString *)productQuantity;
22
+ +(NSString *)statusOfShoppingCard;
23
+ +(NSString *)orderId;
24
+ +(NSString *)orderValue;
25
+
26
+ @end
27
+
28
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,28 @@
1
+ //
2
+ // Product.h
3
+ // MappIntelligenceSDK
4
+ //
5
+ // Created by Stefan Stevanovic on 26/10/2020.
6
+ // Copyright © 2020 Mapp Digital US, LLC. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+
11
+ NS_ASSUME_NONNULL_BEGIN
12
+
13
+ @interface MIProduct : NSObject
14
+
15
+ @property (nonatomic, nullable) NSString* name;
16
+ @property (nonatomic, nullable) NSNumber* cost;
17
+ @property (nonatomic, nullable) NSNumber* quantity;
18
+ @property (nullable) NSNumber* productAdvertiseID;
19
+ @property (nullable) NSNumber* productSoldOut;
20
+ @property (nullable) NSString* productVariant;
21
+
22
+ @property (nullable) NSDictionary<NSNumber* ,NSString*>* categories;
23
+ @property (nullable) NSDictionary<NSNumber* ,NSString*>* ecommerceParameters;
24
+
25
+ - (instancetype)initWithDictionary:(NSDictionary*)dictionary;
26
+ @end
27
+
28
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,20 @@
1
+ //
2
+ // MISessionProperties.h
3
+ // MappIntelligenceSDK
4
+ //
5
+ // Created by Miroljub Stoilkovic on 11/09/2020.
6
+ // Copyright © 2020 Mapp Digital US, LLC. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+
11
+ NS_ASSUME_NONNULL_BEGIN
12
+
13
+ @interface MISessionParameters : NSObject
14
+ @property (nullable) NSDictionary<NSNumber* ,NSString*>* parameters;
15
+ -(instancetype)initWithParameters: (NSDictionary<NSNumber* ,NSString*>* _Nullable) parameters;
16
+ - (instancetype)initWithDictionary:(NSDictionary*)dictionary;
17
+ -(NSMutableArray<NSURLQueryItem*>*)asQueryItems;
18
+ @end
19
+
20
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,23 @@
1
+ //
2
+ // TrackingEvent.h
3
+ // MappIntelligenceSDK
4
+ //
5
+ // Created by Stefan Stevanovic on 3/5/20.
6
+ // Copyright © 2020 Mapp Digital US, LLC. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+
11
+ NS_ASSUME_NONNULL_BEGIN
12
+
13
+ @interface MITrackingEvent : NSObject
14
+
15
+ @property NSString *pageName;
16
+ @property NSDictionary *variables;
17
+ @property NSObject *viewControllerType;
18
+
19
+ @property NSDictionary<NSString *,NSString *> *trackingParams;
20
+
21
+ @end
22
+
23
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,32 @@
1
+ //
2
+ // MIUsageStatistics.h
3
+ // MappIntelligenceSDK
4
+ //
5
+ // Created by Stefan Stevanovic on 21.6.23..
6
+ // Copyright © 2023 Mapp Digital US, LLC. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+
11
+ NS_ASSUME_NONNULL_BEGIN
12
+
13
+ @interface MIUsageStatistics : NSObject
14
+
15
+ @property (nonnull) NSNumber* activityAutoTracking;
16
+ @property (nonnull) NSNumber* fragmentsAutoTracking;
17
+ @property (nonatomic, nonnull) NSNumber* autoTracking;
18
+ @property (nonatomic, nonnull) NSNumber* backgroundSendout;
19
+ @property (nonatomic, nonnull) NSNumber* userMatching;
20
+ @property (nonatomic, nonnull) NSNumber* webview;
21
+ @property (nonatomic, nonnull) NSNumber* setEverId;
22
+ @property (nonatomic, nonnull) NSNumber* appVersionInEveryRequest;
23
+ @property (nonatomic, nonnull) NSNumber* crashTracking;
24
+ @property (nonatomic, nonnull) NSNumber* batchSupport;
25
+
26
+ - (void)printUserStatistics;
27
+ /// returns value which will be sent to server
28
+ - (NSString*)getUserStatisticsValue;
29
+ - (void)reset;
30
+ @end
31
+
32
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,49 @@
1
+ //
2
+ // MIUserCategories.h
3
+ // MappIntelligenceSDK
4
+ //
5
+ // Created by Miroljub Stoilkovic on 20/10/2020.
6
+ // Copyright © 2020 Mapp Digital US, LLC. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+
11
+ NS_ASSUME_NONNULL_BEGIN
12
+
13
+ typedef struct MIBirthday {
14
+ int day;
15
+ int month;
16
+ int year;
17
+ } MIBirthday;
18
+
19
+ typedef NS_ENUM(NSInteger, MIGender) {
20
+ unknown = 1,
21
+ male = 2,
22
+ female = 3
23
+ };
24
+
25
+ @interface MIUserCategories : NSObject
26
+
27
+ @property MIBirthday birthday;
28
+ @property (nullable) NSString *city;
29
+ @property (nullable) NSString *country;
30
+ @property (nullable) NSString *emailAddress;
31
+ @property (nonatomic, nullable) NSString *emailReceiverId;
32
+ @property (nullable) NSString *firstName;
33
+ @property MIGender gender;
34
+ @property (nullable) NSString *customerId;
35
+ @property (nullable) NSString *lastName;
36
+ @property BOOL newsletterSubscribed;
37
+ @property (nullable) NSString *phoneNumber;
38
+ @property (nullable) NSString *street;
39
+ @property (nullable) NSString *streetNumber;
40
+ @property (nullable) NSString *zipCode;
41
+ @property (nullable) NSDictionary<NSNumber* ,NSString*>* customCategories;
42
+
43
+ - (instancetype)initWithCustomProperties: (NSDictionary<NSNumber* ,NSString*>* _Nullable) properties;
44
+ - (instancetype)initWithDictionary:(NSDictionary*)dictionary;
45
+ - (NSMutableArray<NSURLQueryItem*>*)asQueryItems;
46
+
47
+ @end
48
+
49
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,21 @@
1
+ //
2
+ // MIWebViewTracker.h
3
+ // MappIntelligenceSDK
4
+ //
5
+ // Created by Miroljub Stoilkovic on 08/12/2020.
6
+ // Copyright © 2020 Mapp Digital US, LLC. All rights reserved.
7
+ //
8
+ #import <Foundation/Foundation.h>
9
+ #import <WebKit/WebKit.h>
10
+
11
+
12
+ NS_ASSUME_NONNULL_BEGIN
13
+
14
+ @interface MIWebViewTracker : NSObject<WKScriptMessageHandler>
15
+
16
+ + (nullable instancetype)sharedInstance;
17
+ -(WKWebViewConfiguration *_Nonnull) updateConfiguration: (WKWebViewConfiguration *_Nullable) configuration;
18
+
19
+ @end
20
+
21
+ NS_ASSUME_NONNULL_END