affise-attribution-lib 1.6.15 → 1.6.17
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/README.md +213 -23
- package/affise-attribution-native.podspec +1 -1
- package/android/build.gradle +1 -1
- package/lib/commonjs/Export.js +89 -1
- package/lib/commonjs/Export.js.map +1 -1
- package/lib/commonjs/deeplink/DeeplinkValue.js +32 -0
- package/lib/commonjs/deeplink/DeeplinkValue.js.map +1 -0
- package/lib/commonjs/deeplink/OnDeeplinkCallback.js +6 -0
- package/lib/commonjs/events/base/AffiseCustomEventProps.js +6 -0
- package/lib/commonjs/events/base/AffiseCustomEventProps.js.map +1 -0
- package/lib/commonjs/events/base/AffiseEvent.js +1 -1
- package/lib/commonjs/events/base/AffiseEvent.js.map +1 -1
- package/lib/commonjs/events/base/AffiseEventProps.js +2 -0
- package/lib/commonjs/events/base/AffiseEventProps.js.map +1 -0
- package/lib/commonjs/events/base/NativeEvent.js +7 -2
- package/lib/commonjs/events/base/NativeEvent.js.map +1 -1
- package/lib/commonjs/events/custom/CustomId01Event.js +5 -6
- package/lib/commonjs/events/custom/CustomId01Event.js.map +1 -1
- package/lib/commonjs/events/custom/CustomId02Event.js +5 -6
- package/lib/commonjs/events/custom/CustomId02Event.js.map +1 -1
- package/lib/commonjs/events/custom/CustomId03Event.js +5 -6
- package/lib/commonjs/events/custom/CustomId03Event.js.map +1 -1
- package/lib/commonjs/events/custom/CustomId04Event.js +5 -6
- package/lib/commonjs/events/custom/CustomId04Event.js.map +1 -1
- package/lib/commonjs/events/custom/CustomId05Event.js +5 -6
- package/lib/commonjs/events/custom/CustomId05Event.js.map +1 -1
- package/lib/commonjs/events/custom/CustomId06Event.js +5 -6
- package/lib/commonjs/events/custom/CustomId06Event.js.map +1 -1
- package/lib/commonjs/events/custom/CustomId07Event.js +5 -6
- package/lib/commonjs/events/custom/CustomId07Event.js.map +1 -1
- package/lib/commonjs/events/custom/CustomId08Event.js +5 -6
- package/lib/commonjs/events/custom/CustomId08Event.js.map +1 -1
- package/lib/commonjs/events/custom/CustomId09Event.js +5 -6
- package/lib/commonjs/events/custom/CustomId09Event.js.map +1 -1
- package/lib/commonjs/events/custom/CustomId10Event.js +5 -6
- package/lib/commonjs/events/custom/CustomId10Event.js.map +1 -1
- package/lib/commonjs/events/custom/UserCustomEvent.js +2 -7
- package/lib/commonjs/events/custom/UserCustomEvent.js.map +1 -1
- package/lib/commonjs/events/custom/UserCustomSubscriptionEvent.js +10 -8
- package/lib/commonjs/events/custom/UserCustomSubscriptionEvent.js.map +1 -1
- package/lib/commonjs/events/predefined/AchieveLevelEvent.js +5 -6
- package/lib/commonjs/events/predefined/AchieveLevelEvent.js.map +1 -1
- package/lib/commonjs/events/predefined/AdRevenueEvent.js +5 -6
- package/lib/commonjs/events/predefined/AdRevenueEvent.js.map +1 -1
- package/lib/commonjs/events/predefined/AddPaymentInfoEvent.js +5 -6
- package/lib/commonjs/events/predefined/AddPaymentInfoEvent.js.map +1 -1
- package/lib/commonjs/events/predefined/AddToCartEvent.js +5 -6
- package/lib/commonjs/events/predefined/AddToCartEvent.js.map +1 -1
- package/lib/commonjs/events/predefined/AddToWishlistEvent.js +5 -6
- package/lib/commonjs/events/predefined/AddToWishlistEvent.js.map +1 -1
- package/lib/commonjs/events/predefined/ClickAdvEvent.js +5 -6
- package/lib/commonjs/events/predefined/ClickAdvEvent.js.map +1 -1
- package/lib/commonjs/events/predefined/CompleteRegistrationEvent.js +5 -6
- package/lib/commonjs/events/predefined/CompleteRegistrationEvent.js.map +1 -1
- package/lib/commonjs/events/predefined/CompleteStreamEvent.js +5 -6
- package/lib/commonjs/events/predefined/CompleteStreamEvent.js.map +1 -1
- package/lib/commonjs/events/predefined/CompleteTrialEvent.js +5 -6
- package/lib/commonjs/events/predefined/CompleteTrialEvent.js.map +1 -1
- package/lib/commonjs/events/predefined/CompleteTutorialEvent.js +5 -6
- package/lib/commonjs/events/predefined/CompleteTutorialEvent.js.map +1 -1
- package/lib/commonjs/events/predefined/ContactEvent.js +5 -6
- package/lib/commonjs/events/predefined/ContactEvent.js.map +1 -1
- package/lib/commonjs/events/predefined/ContentItemsViewEvent.js +5 -6
- package/lib/commonjs/events/predefined/ContentItemsViewEvent.js.map +1 -1
- package/lib/commonjs/events/predefined/CustomizeProductEvent.js +5 -6
- package/lib/commonjs/events/predefined/CustomizeProductEvent.js.map +1 -1
- package/lib/commonjs/events/predefined/DeepLinkedEvent.js +5 -6
- package/lib/commonjs/events/predefined/DeepLinkedEvent.js.map +1 -1
- package/lib/commonjs/events/predefined/DonateEvent.js +5 -6
- package/lib/commonjs/events/predefined/DonateEvent.js.map +1 -1
- package/lib/commonjs/events/predefined/FindLocationEvent.js +5 -6
- package/lib/commonjs/events/predefined/FindLocationEvent.js.map +1 -1
- package/lib/commonjs/events/predefined/InitiateCheckoutEvent.js +5 -6
- package/lib/commonjs/events/predefined/InitiateCheckoutEvent.js.map +1 -1
- package/lib/commonjs/events/predefined/InitiatePurchaseEvent.js +5 -6
- package/lib/commonjs/events/predefined/InitiatePurchaseEvent.js.map +1 -1
- package/lib/commonjs/events/predefined/InitiateStreamEvent.js +5 -6
- package/lib/commonjs/events/predefined/InitiateStreamEvent.js.map +1 -1
- package/lib/commonjs/events/predefined/InviteEvent.js +5 -6
- package/lib/commonjs/events/predefined/InviteEvent.js.map +1 -1
- package/lib/commonjs/events/predefined/LastAttributedTouchEvent.js +5 -6
- package/lib/commonjs/events/predefined/LastAttributedTouchEvent.js.map +1 -1
- package/lib/commonjs/events/predefined/LeadEvent.js +5 -6
- package/lib/commonjs/events/predefined/LeadEvent.js.map +1 -1
- package/lib/commonjs/events/predefined/ListViewEvent.js +5 -6
- package/lib/commonjs/events/predefined/ListViewEvent.js.map +1 -1
- package/lib/commonjs/events/predefined/LoginEvent.js +5 -6
- package/lib/commonjs/events/predefined/LoginEvent.js.map +1 -1
- package/lib/commonjs/events/predefined/OpenedFromPushNotificationEvent.js +5 -6
- package/lib/commonjs/events/predefined/OpenedFromPushNotificationEvent.js.map +1 -1
- package/lib/commonjs/events/predefined/OrderCancelEvent.js +5 -6
- package/lib/commonjs/events/predefined/OrderCancelEvent.js.map +1 -1
- package/lib/commonjs/events/predefined/OrderEvent.js +5 -6
- package/lib/commonjs/events/predefined/OrderEvent.js.map +1 -1
- package/lib/commonjs/events/predefined/OrderItemAddedEvent.js +5 -6
- package/lib/commonjs/events/predefined/OrderItemAddedEvent.js.map +1 -1
- package/lib/commonjs/events/predefined/OrderItemRemoveEvent.js +5 -6
- package/lib/commonjs/events/predefined/OrderItemRemoveEvent.js.map +1 -1
- package/lib/commonjs/events/predefined/OrderReturnRequestCancelEvent.js +5 -6
- package/lib/commonjs/events/predefined/OrderReturnRequestCancelEvent.js.map +1 -1
- package/lib/commonjs/events/predefined/OrderReturnRequestEvent.js +5 -6
- package/lib/commonjs/events/predefined/OrderReturnRequestEvent.js.map +1 -1
- package/lib/commonjs/events/predefined/PurchaseEvent.js +5 -6
- package/lib/commonjs/events/predefined/PurchaseEvent.js.map +1 -1
- package/lib/commonjs/events/predefined/RateEvent.js +5 -6
- package/lib/commonjs/events/predefined/RateEvent.js.map +1 -1
- package/lib/commonjs/events/predefined/ReEngageEvent.js +5 -6
- package/lib/commonjs/events/predefined/ReEngageEvent.js.map +1 -1
- package/lib/commonjs/events/predefined/ReserveEvent.js +5 -6
- package/lib/commonjs/events/predefined/ReserveEvent.js.map +1 -1
- package/lib/commonjs/events/predefined/SalesEvent.js +5 -6
- package/lib/commonjs/events/predefined/SalesEvent.js.map +1 -1
- package/lib/commonjs/events/predefined/ScheduleEvent.js +5 -6
- package/lib/commonjs/events/predefined/ScheduleEvent.js.map +1 -1
- package/lib/commonjs/events/predefined/SearchEvent.js +5 -6
- package/lib/commonjs/events/predefined/SearchEvent.js.map +1 -1
- package/lib/commonjs/events/predefined/ShareEvent.js +5 -6
- package/lib/commonjs/events/predefined/ShareEvent.js.map +1 -1
- package/lib/commonjs/events/predefined/SpendCreditsEvent.js +5 -6
- package/lib/commonjs/events/predefined/SpendCreditsEvent.js.map +1 -1
- package/lib/commonjs/events/predefined/StartRegistrationEvent.js +5 -6
- package/lib/commonjs/events/predefined/StartRegistrationEvent.js.map +1 -1
- package/lib/commonjs/events/predefined/StartTrialEvent.js +5 -6
- package/lib/commonjs/events/predefined/StartTrialEvent.js.map +1 -1
- package/lib/commonjs/events/predefined/StartTutorialEvent.js +5 -6
- package/lib/commonjs/events/predefined/StartTutorialEvent.js.map +1 -1
- package/lib/commonjs/events/predefined/SubmitApplicationEvent.js +5 -6
- package/lib/commonjs/events/predefined/SubmitApplicationEvent.js.map +1 -1
- package/lib/commonjs/events/predefined/SubscribeEvent.js +5 -6
- package/lib/commonjs/events/predefined/SubscribeEvent.js.map +1 -1
- package/lib/commonjs/events/predefined/TravelBookingEvent.js +5 -6
- package/lib/commonjs/events/predefined/TravelBookingEvent.js.map +1 -1
- package/lib/commonjs/events/predefined/UnlockAchievementEvent.js +5 -6
- package/lib/commonjs/events/predefined/UnlockAchievementEvent.js.map +1 -1
- package/lib/commonjs/events/predefined/UnsubscribeEvent.js +5 -6
- package/lib/commonjs/events/predefined/UnsubscribeEvent.js.map +1 -1
- package/lib/commonjs/events/predefined/UpdateEvent.js +5 -6
- package/lib/commonjs/events/predefined/UpdateEvent.js.map +1 -1
- package/lib/commonjs/events/predefined/ViewAdvEvent.js +5 -6
- package/lib/commonjs/events/predefined/ViewAdvEvent.js.map +1 -1
- package/lib/commonjs/events/predefined/ViewCartEvent.js +5 -6
- package/lib/commonjs/events/predefined/ViewCartEvent.js.map +1 -1
- package/lib/commonjs/events/predefined/ViewContentEvent.js +5 -6
- package/lib/commonjs/events/predefined/ViewContentEvent.js.map +1 -1
- package/lib/commonjs/events/predefined/ViewItemEvent.js +5 -6
- package/lib/commonjs/events/predefined/ViewItemEvent.js.map +1 -1
- package/lib/commonjs/events/predefined/ViewItemsEvent.js +5 -6
- package/lib/commonjs/events/predefined/ViewItemsEvent.js.map +1 -1
- package/lib/commonjs/events/property/AffisePropertyBuilder.js +1 -1
- package/lib/commonjs/events/property/AffisePropertyBuilder.js.map +1 -1
- package/lib/commonjs/events/subscription/AffiseCustomSubscriptionEventProps.js +6 -0
- package/lib/commonjs/events/subscription/AffiseCustomSubscriptionEventProps.js.map +1 -0
- package/lib/commonjs/events/subscription/AffiseSubscriptionEventProps.js +2 -0
- package/lib/commonjs/events/subscription/AffiseSubscriptionEventProps.js.map +1 -0
- package/lib/commonjs/events/subscription/BaseSubscriptionEvent.js +12 -3
- package/lib/commonjs/events/subscription/BaseSubscriptionEvent.js.map +1 -1
- package/lib/commonjs/events/subscription/ConvertedOfferEvent.js +6 -6
- package/lib/commonjs/events/subscription/ConvertedOfferEvent.js.map +1 -1
- package/lib/commonjs/events/subscription/ConvertedOfferFromRetryEvent.js +6 -6
- package/lib/commonjs/events/subscription/ConvertedOfferFromRetryEvent.js.map +1 -1
- package/lib/commonjs/events/subscription/ConvertedTrialEvent.js +6 -6
- package/lib/commonjs/events/subscription/ConvertedTrialEvent.js.map +1 -1
- package/lib/commonjs/events/subscription/ConvertedTrialFromRetryEvent.js +6 -6
- package/lib/commonjs/events/subscription/ConvertedTrialFromRetryEvent.js.map +1 -1
- package/lib/commonjs/events/subscription/FailedOfferFromRetryEvent.js +6 -6
- package/lib/commonjs/events/subscription/FailedOfferFromRetryEvent.js.map +1 -1
- package/lib/commonjs/events/subscription/FailedOfferiseEvent.js +6 -6
- package/lib/commonjs/events/subscription/FailedOfferiseEvent.js.map +1 -1
- package/lib/commonjs/events/subscription/FailedSubscriptionEvent.js +6 -6
- package/lib/commonjs/events/subscription/FailedSubscriptionEvent.js.map +1 -1
- package/lib/commonjs/events/subscription/FailedSubscriptionFromRetryEvent.js +6 -6
- package/lib/commonjs/events/subscription/FailedSubscriptionFromRetryEvent.js.map +1 -1
- package/lib/commonjs/events/subscription/FailedTrialEvent.js +6 -6
- package/lib/commonjs/events/subscription/FailedTrialEvent.js.map +1 -1
- package/lib/commonjs/events/subscription/FailedTrialFromRetryEvent.js +6 -6
- package/lib/commonjs/events/subscription/FailedTrialFromRetryEvent.js.map +1 -1
- package/lib/commonjs/events/subscription/InitialOfferEvent.js +6 -6
- package/lib/commonjs/events/subscription/InitialOfferEvent.js.map +1 -1
- package/lib/commonjs/events/subscription/InitialSubscriptionEvent.js +6 -6
- package/lib/commonjs/events/subscription/InitialSubscriptionEvent.js.map +1 -1
- package/lib/commonjs/events/subscription/InitialTrialEvent.js +6 -6
- package/lib/commonjs/events/subscription/InitialTrialEvent.js.map +1 -1
- package/lib/commonjs/events/subscription/OfferInRetryEvent.js +6 -6
- package/lib/commonjs/events/subscription/OfferInRetryEvent.js.map +1 -1
- package/lib/commonjs/events/subscription/ReactivatedSubscriptionEvent.js +6 -6
- package/lib/commonjs/events/subscription/ReactivatedSubscriptionEvent.js.map +1 -1
- package/lib/commonjs/events/subscription/RenewedSubscriptionEvent.js +6 -6
- package/lib/commonjs/events/subscription/RenewedSubscriptionEvent.js.map +1 -1
- package/lib/commonjs/events/subscription/RenewedSubscriptionFromRetryEvent.js +6 -6
- package/lib/commonjs/events/subscription/RenewedSubscriptionFromRetryEvent.js.map +1 -1
- package/lib/commonjs/events/subscription/SubscriptionInRetryEvent.js +6 -6
- package/lib/commonjs/events/subscription/SubscriptionInRetryEvent.js.map +1 -1
- package/lib/commonjs/events/subscription/TrialInRetryEvent.js +6 -6
- package/lib/commonjs/events/subscription/TrialInRetryEvent.js.map +1 -1
- package/lib/commonjs/events/subscription/UnsubscriptionEvent.js +6 -6
- package/lib/commonjs/events/subscription/UnsubscriptionEvent.js.map +1 -1
- package/lib/commonjs/index.js +40 -3
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/module/AffiseKeyValue.js +0 -12
- package/lib/commonjs/module/AffiseKeyValue.js.map +1 -1
- package/lib/commonjs/module/AffiseModules.js +2 -0
- package/lib/commonjs/module/AffiseModules.js.map +1 -1
- package/lib/commonjs/module/link/AffiseLinkCallback.js +2 -0
- package/lib/commonjs/module/link/AffiseLinkCallback.js.map +1 -0
- package/lib/commonjs/native/AffiseApiMethod.js +7 -4
- package/lib/commonjs/native/AffiseApiMethod.js.map +1 -1
- package/lib/commonjs/native/AffiseNative.js +49 -41
- package/lib/commonjs/native/AffiseNative.js.map +1 -1
- package/lib/commonjs/native/NativeBasePlatform.js +3 -1
- package/lib/commonjs/native/NativeBasePlatform.js.map +1 -1
- package/lib/commonjs/native/utils/DataMapper.js +33 -0
- package/lib/commonjs/native/utils/DataMapper.js.map +1 -0
- package/lib/commonjs/native/utils/DebugUtils.js +13 -11
- package/lib/commonjs/native/utils/DebugUtils.js.map +1 -1
- package/lib/module/Export.js +9 -1
- package/lib/module/Export.js.map +1 -1
- package/lib/module/deeplink/DeeplinkValue.js +25 -0
- package/lib/module/deeplink/DeeplinkValue.js.map +1 -0
- package/lib/module/deeplink/OnDeeplinkCallback.js +2 -0
- package/lib/module/events/base/AffiseCustomEventProps.js +2 -0
- package/lib/module/events/base/AffiseCustomEventProps.js.map +1 -0
- package/lib/module/events/base/AffiseEvent.js +1 -1
- package/lib/module/events/base/AffiseEvent.js.map +1 -1
- package/lib/module/events/base/AffiseEventProps.js +2 -0
- package/lib/module/events/base/AffiseEventProps.js.map +1 -0
- package/lib/module/events/base/NativeEvent.js +7 -2
- package/lib/module/events/base/NativeEvent.js.map +1 -1
- package/lib/module/events/custom/CustomId01Event.js +5 -7
- package/lib/module/events/custom/CustomId01Event.js.map +1 -1
- package/lib/module/events/custom/CustomId02Event.js +5 -7
- package/lib/module/events/custom/CustomId02Event.js.map +1 -1
- package/lib/module/events/custom/CustomId03Event.js +5 -7
- package/lib/module/events/custom/CustomId03Event.js.map +1 -1
- package/lib/module/events/custom/CustomId04Event.js +5 -7
- package/lib/module/events/custom/CustomId04Event.js.map +1 -1
- package/lib/module/events/custom/CustomId05Event.js +5 -7
- package/lib/module/events/custom/CustomId05Event.js.map +1 -1
- package/lib/module/events/custom/CustomId06Event.js +5 -7
- package/lib/module/events/custom/CustomId06Event.js.map +1 -1
- package/lib/module/events/custom/CustomId07Event.js +5 -7
- package/lib/module/events/custom/CustomId07Event.js.map +1 -1
- package/lib/module/events/custom/CustomId08Event.js +5 -7
- package/lib/module/events/custom/CustomId08Event.js.map +1 -1
- package/lib/module/events/custom/CustomId09Event.js +5 -7
- package/lib/module/events/custom/CustomId09Event.js.map +1 -1
- package/lib/module/events/custom/CustomId10Event.js +5 -7
- package/lib/module/events/custom/CustomId10Event.js.map +1 -1
- package/lib/module/events/custom/UserCustomEvent.js +2 -8
- package/lib/module/events/custom/UserCustomEvent.js.map +1 -1
- package/lib/module/events/custom/UserCustomSubscriptionEvent.js +10 -8
- package/lib/module/events/custom/UserCustomSubscriptionEvent.js.map +1 -1
- package/lib/module/events/predefined/AchieveLevelEvent.js +5 -6
- package/lib/module/events/predefined/AchieveLevelEvent.js.map +1 -1
- package/lib/module/events/predefined/AdRevenueEvent.js +5 -6
- package/lib/module/events/predefined/AdRevenueEvent.js.map +1 -1
- package/lib/module/events/predefined/AddPaymentInfoEvent.js +5 -6
- package/lib/module/events/predefined/AddPaymentInfoEvent.js.map +1 -1
- package/lib/module/events/predefined/AddToCartEvent.js +5 -6
- package/lib/module/events/predefined/AddToCartEvent.js.map +1 -1
- package/lib/module/events/predefined/AddToWishlistEvent.js +5 -6
- package/lib/module/events/predefined/AddToWishlistEvent.js.map +1 -1
- package/lib/module/events/predefined/ClickAdvEvent.js +5 -6
- package/lib/module/events/predefined/ClickAdvEvent.js.map +1 -1
- package/lib/module/events/predefined/CompleteRegistrationEvent.js +5 -6
- package/lib/module/events/predefined/CompleteRegistrationEvent.js.map +1 -1
- package/lib/module/events/predefined/CompleteStreamEvent.js +5 -6
- package/lib/module/events/predefined/CompleteStreamEvent.js.map +1 -1
- package/lib/module/events/predefined/CompleteTrialEvent.js +5 -6
- package/lib/module/events/predefined/CompleteTrialEvent.js.map +1 -1
- package/lib/module/events/predefined/CompleteTutorialEvent.js +5 -6
- package/lib/module/events/predefined/CompleteTutorialEvent.js.map +1 -1
- package/lib/module/events/predefined/ContactEvent.js +5 -6
- package/lib/module/events/predefined/ContactEvent.js.map +1 -1
- package/lib/module/events/predefined/ContentItemsViewEvent.js +5 -6
- package/lib/module/events/predefined/ContentItemsViewEvent.js.map +1 -1
- package/lib/module/events/predefined/CustomizeProductEvent.js +5 -6
- package/lib/module/events/predefined/CustomizeProductEvent.js.map +1 -1
- package/lib/module/events/predefined/DeepLinkedEvent.js +5 -6
- package/lib/module/events/predefined/DeepLinkedEvent.js.map +1 -1
- package/lib/module/events/predefined/DonateEvent.js +5 -6
- package/lib/module/events/predefined/DonateEvent.js.map +1 -1
- package/lib/module/events/predefined/FindLocationEvent.js +5 -6
- package/lib/module/events/predefined/FindLocationEvent.js.map +1 -1
- package/lib/module/events/predefined/InitiateCheckoutEvent.js +5 -6
- package/lib/module/events/predefined/InitiateCheckoutEvent.js.map +1 -1
- package/lib/module/events/predefined/InitiatePurchaseEvent.js +5 -6
- package/lib/module/events/predefined/InitiatePurchaseEvent.js.map +1 -1
- package/lib/module/events/predefined/InitiateStreamEvent.js +5 -6
- package/lib/module/events/predefined/InitiateStreamEvent.js.map +1 -1
- package/lib/module/events/predefined/InviteEvent.js +5 -6
- package/lib/module/events/predefined/InviteEvent.js.map +1 -1
- package/lib/module/events/predefined/LastAttributedTouchEvent.js +5 -6
- package/lib/module/events/predefined/LastAttributedTouchEvent.js.map +1 -1
- package/lib/module/events/predefined/LeadEvent.js +5 -6
- package/lib/module/events/predefined/LeadEvent.js.map +1 -1
- package/lib/module/events/predefined/ListViewEvent.js +5 -6
- package/lib/module/events/predefined/ListViewEvent.js.map +1 -1
- package/lib/module/events/predefined/LoginEvent.js +5 -6
- package/lib/module/events/predefined/LoginEvent.js.map +1 -1
- package/lib/module/events/predefined/OpenedFromPushNotificationEvent.js +5 -6
- package/lib/module/events/predefined/OpenedFromPushNotificationEvent.js.map +1 -1
- package/lib/module/events/predefined/OrderCancelEvent.js +5 -6
- package/lib/module/events/predefined/OrderCancelEvent.js.map +1 -1
- package/lib/module/events/predefined/OrderEvent.js +5 -6
- package/lib/module/events/predefined/OrderEvent.js.map +1 -1
- package/lib/module/events/predefined/OrderItemAddedEvent.js +5 -6
- package/lib/module/events/predefined/OrderItemAddedEvent.js.map +1 -1
- package/lib/module/events/predefined/OrderItemRemoveEvent.js +5 -6
- package/lib/module/events/predefined/OrderItemRemoveEvent.js.map +1 -1
- package/lib/module/events/predefined/OrderReturnRequestCancelEvent.js +5 -6
- package/lib/module/events/predefined/OrderReturnRequestCancelEvent.js.map +1 -1
- package/lib/module/events/predefined/OrderReturnRequestEvent.js +5 -6
- package/lib/module/events/predefined/OrderReturnRequestEvent.js.map +1 -1
- package/lib/module/events/predefined/PurchaseEvent.js +5 -6
- package/lib/module/events/predefined/PurchaseEvent.js.map +1 -1
- package/lib/module/events/predefined/RateEvent.js +5 -6
- package/lib/module/events/predefined/RateEvent.js.map +1 -1
- package/lib/module/events/predefined/ReEngageEvent.js +5 -6
- package/lib/module/events/predefined/ReEngageEvent.js.map +1 -1
- package/lib/module/events/predefined/ReserveEvent.js +5 -6
- package/lib/module/events/predefined/ReserveEvent.js.map +1 -1
- package/lib/module/events/predefined/SalesEvent.js +5 -6
- package/lib/module/events/predefined/SalesEvent.js.map +1 -1
- package/lib/module/events/predefined/ScheduleEvent.js +5 -6
- package/lib/module/events/predefined/ScheduleEvent.js.map +1 -1
- package/lib/module/events/predefined/SearchEvent.js +5 -6
- package/lib/module/events/predefined/SearchEvent.js.map +1 -1
- package/lib/module/events/predefined/ShareEvent.js +5 -6
- package/lib/module/events/predefined/ShareEvent.js.map +1 -1
- package/lib/module/events/predefined/SpendCreditsEvent.js +5 -6
- package/lib/module/events/predefined/SpendCreditsEvent.js.map +1 -1
- package/lib/module/events/predefined/StartRegistrationEvent.js +5 -6
- package/lib/module/events/predefined/StartRegistrationEvent.js.map +1 -1
- package/lib/module/events/predefined/StartTrialEvent.js +5 -6
- package/lib/module/events/predefined/StartTrialEvent.js.map +1 -1
- package/lib/module/events/predefined/StartTutorialEvent.js +5 -6
- package/lib/module/events/predefined/StartTutorialEvent.js.map +1 -1
- package/lib/module/events/predefined/SubmitApplicationEvent.js +5 -6
- package/lib/module/events/predefined/SubmitApplicationEvent.js.map +1 -1
- package/lib/module/events/predefined/SubscribeEvent.js +5 -6
- package/lib/module/events/predefined/SubscribeEvent.js.map +1 -1
- package/lib/module/events/predefined/TravelBookingEvent.js +5 -6
- package/lib/module/events/predefined/TravelBookingEvent.js.map +1 -1
- package/lib/module/events/predefined/UnlockAchievementEvent.js +5 -6
- package/lib/module/events/predefined/UnlockAchievementEvent.js.map +1 -1
- package/lib/module/events/predefined/UnsubscribeEvent.js +5 -6
- package/lib/module/events/predefined/UnsubscribeEvent.js.map +1 -1
- package/lib/module/events/predefined/UpdateEvent.js +5 -6
- package/lib/module/events/predefined/UpdateEvent.js.map +1 -1
- package/lib/module/events/predefined/ViewAdvEvent.js +5 -6
- package/lib/module/events/predefined/ViewAdvEvent.js.map +1 -1
- package/lib/module/events/predefined/ViewCartEvent.js +5 -6
- package/lib/module/events/predefined/ViewCartEvent.js.map +1 -1
- package/lib/module/events/predefined/ViewContentEvent.js +5 -6
- package/lib/module/events/predefined/ViewContentEvent.js.map +1 -1
- package/lib/module/events/predefined/ViewItemEvent.js +5 -6
- package/lib/module/events/predefined/ViewItemEvent.js.map +1 -1
- package/lib/module/events/predefined/ViewItemsEvent.js +5 -6
- package/lib/module/events/predefined/ViewItemsEvent.js.map +1 -1
- package/lib/module/events/property/AffisePropertyBuilder.js +1 -1
- package/lib/module/events/property/AffisePropertyBuilder.js.map +1 -1
- package/lib/module/events/subscription/AffiseCustomSubscriptionEventProps.js +2 -0
- package/lib/module/events/subscription/AffiseCustomSubscriptionEventProps.js.map +1 -0
- package/lib/module/events/subscription/AffiseSubscriptionEventProps.js +2 -0
- package/lib/module/events/subscription/AffiseSubscriptionEventProps.js.map +1 -0
- package/lib/module/events/subscription/BaseSubscriptionEvent.js +12 -3
- package/lib/module/events/subscription/BaseSubscriptionEvent.js.map +1 -1
- package/lib/module/events/subscription/ConvertedOfferEvent.js +6 -6
- package/lib/module/events/subscription/ConvertedOfferEvent.js.map +1 -1
- package/lib/module/events/subscription/ConvertedOfferFromRetryEvent.js +6 -6
- package/lib/module/events/subscription/ConvertedOfferFromRetryEvent.js.map +1 -1
- package/lib/module/events/subscription/ConvertedTrialEvent.js +6 -6
- package/lib/module/events/subscription/ConvertedTrialEvent.js.map +1 -1
- package/lib/module/events/subscription/ConvertedTrialFromRetryEvent.js +6 -6
- package/lib/module/events/subscription/ConvertedTrialFromRetryEvent.js.map +1 -1
- package/lib/module/events/subscription/FailedOfferFromRetryEvent.js +6 -6
- package/lib/module/events/subscription/FailedOfferFromRetryEvent.js.map +1 -1
- package/lib/module/events/subscription/FailedOfferiseEvent.js +6 -6
- package/lib/module/events/subscription/FailedOfferiseEvent.js.map +1 -1
- package/lib/module/events/subscription/FailedSubscriptionEvent.js +6 -6
- package/lib/module/events/subscription/FailedSubscriptionEvent.js.map +1 -1
- package/lib/module/events/subscription/FailedSubscriptionFromRetryEvent.js +6 -6
- package/lib/module/events/subscription/FailedSubscriptionFromRetryEvent.js.map +1 -1
- package/lib/module/events/subscription/FailedTrialEvent.js +6 -6
- package/lib/module/events/subscription/FailedTrialEvent.js.map +1 -1
- package/lib/module/events/subscription/FailedTrialFromRetryEvent.js +6 -6
- package/lib/module/events/subscription/FailedTrialFromRetryEvent.js.map +1 -1
- package/lib/module/events/subscription/InitialOfferEvent.js +6 -6
- package/lib/module/events/subscription/InitialOfferEvent.js.map +1 -1
- package/lib/module/events/subscription/InitialSubscriptionEvent.js +6 -6
- package/lib/module/events/subscription/InitialSubscriptionEvent.js.map +1 -1
- package/lib/module/events/subscription/InitialTrialEvent.js +6 -6
- package/lib/module/events/subscription/InitialTrialEvent.js.map +1 -1
- package/lib/module/events/subscription/OfferInRetryEvent.js +6 -6
- package/lib/module/events/subscription/OfferInRetryEvent.js.map +1 -1
- package/lib/module/events/subscription/ReactivatedSubscriptionEvent.js +6 -6
- package/lib/module/events/subscription/ReactivatedSubscriptionEvent.js.map +1 -1
- package/lib/module/events/subscription/RenewedSubscriptionEvent.js +6 -6
- package/lib/module/events/subscription/RenewedSubscriptionEvent.js.map +1 -1
- package/lib/module/events/subscription/RenewedSubscriptionFromRetryEvent.js +6 -6
- package/lib/module/events/subscription/RenewedSubscriptionFromRetryEvent.js.map +1 -1
- package/lib/module/events/subscription/SubscriptionInRetryEvent.js +6 -6
- package/lib/module/events/subscription/SubscriptionInRetryEvent.js.map +1 -1
- package/lib/module/events/subscription/TrialInRetryEvent.js +6 -6
- package/lib/module/events/subscription/TrialInRetryEvent.js.map +1 -1
- package/lib/module/events/subscription/UnsubscriptionEvent.js +6 -6
- package/lib/module/events/subscription/UnsubscriptionEvent.js.map +1 -1
- package/lib/module/index.js +40 -3
- package/lib/module/index.js.map +1 -1
- package/lib/module/module/AffiseKeyValue.js +0 -11
- package/lib/module/module/AffiseKeyValue.js.map +1 -1
- package/lib/module/module/AffiseModules.js +2 -0
- package/lib/module/module/AffiseModules.js.map +1 -1
- package/lib/module/module/link/AffiseLinkCallback.js +2 -0
- package/lib/module/module/link/AffiseLinkCallback.js.map +1 -0
- package/lib/module/native/AffiseApiMethod.js +7 -4
- package/lib/module/native/AffiseApiMethod.js.map +1 -1
- package/lib/module/native/AffiseNative.js +49 -41
- package/lib/module/native/AffiseNative.js.map +1 -1
- package/lib/module/native/NativeBasePlatform.js +3 -1
- package/lib/module/native/NativeBasePlatform.js.map +1 -1
- package/lib/module/native/utils/DataMapper.js +26 -0
- package/lib/module/native/utils/DataMapper.js.map +1 -0
- package/lib/module/native/utils/DebugUtils.js +13 -11
- package/lib/module/native/utils/DebugUtils.js.map +1 -1
- package/lib/typescript/Export.d.ts +9 -1
- package/lib/typescript/Export.d.ts.map +1 -1
- package/lib/typescript/deeplink/DeeplinkValue.d.ts +10 -0
- package/lib/typescript/deeplink/DeeplinkValue.d.ts.map +1 -0
- package/lib/typescript/deeplink/OnDeeplinkCallback.d.ts +3 -0
- package/lib/typescript/deeplink/OnDeeplinkCallback.d.ts.map +1 -0
- package/lib/typescript/events/base/AffiseCustomEventProps.d.ts +5 -0
- package/lib/typescript/events/base/AffiseCustomEventProps.d.ts.map +1 -0
- package/lib/typescript/events/base/AffiseEvent.d.ts +1 -1
- package/lib/typescript/events/base/AffiseEvent.d.ts.map +1 -1
- package/lib/typescript/events/base/AffiseEventProps.d.ts +5 -0
- package/lib/typescript/events/base/AffiseEventProps.d.ts.map +1 -0
- package/lib/typescript/events/base/NativeEvent.d.ts +2 -1
- package/lib/typescript/events/base/NativeEvent.d.ts.map +1 -1
- package/lib/typescript/events/custom/CustomId01Event.d.ts +2 -4
- package/lib/typescript/events/custom/CustomId01Event.d.ts.map +1 -1
- package/lib/typescript/events/custom/CustomId02Event.d.ts +2 -4
- package/lib/typescript/events/custom/CustomId02Event.d.ts.map +1 -1
- package/lib/typescript/events/custom/CustomId03Event.d.ts +2 -4
- package/lib/typescript/events/custom/CustomId03Event.d.ts.map +1 -1
- package/lib/typescript/events/custom/CustomId04Event.d.ts +2 -4
- package/lib/typescript/events/custom/CustomId04Event.d.ts.map +1 -1
- package/lib/typescript/events/custom/CustomId05Event.d.ts +2 -4
- package/lib/typescript/events/custom/CustomId05Event.d.ts.map +1 -1
- package/lib/typescript/events/custom/CustomId06Event.d.ts +2 -4
- package/lib/typescript/events/custom/CustomId06Event.d.ts.map +1 -1
- package/lib/typescript/events/custom/CustomId07Event.d.ts +2 -4
- package/lib/typescript/events/custom/CustomId07Event.d.ts.map +1 -1
- package/lib/typescript/events/custom/CustomId08Event.d.ts +2 -4
- package/lib/typescript/events/custom/CustomId08Event.d.ts.map +1 -1
- package/lib/typescript/events/custom/CustomId09Event.d.ts +2 -4
- package/lib/typescript/events/custom/CustomId09Event.d.ts.map +1 -1
- package/lib/typescript/events/custom/CustomId10Event.d.ts +2 -4
- package/lib/typescript/events/custom/CustomId10Event.d.ts.map +1 -1
- package/lib/typescript/events/custom/UserCustomEvent.d.ts +2 -5
- package/lib/typescript/events/custom/UserCustomEvent.d.ts.map +1 -1
- package/lib/typescript/events/custom/UserCustomSubscriptionEvent.d.ts +10 -6
- package/lib/typescript/events/custom/UserCustomSubscriptionEvent.d.ts.map +1 -1
- package/lib/typescript/events/predefined/AchieveLevelEvent.d.ts +2 -4
- package/lib/typescript/events/predefined/AchieveLevelEvent.d.ts.map +1 -1
- package/lib/typescript/events/predefined/AdRevenueEvent.d.ts +2 -4
- package/lib/typescript/events/predefined/AdRevenueEvent.d.ts.map +1 -1
- package/lib/typescript/events/predefined/AddPaymentInfoEvent.d.ts +2 -4
- package/lib/typescript/events/predefined/AddPaymentInfoEvent.d.ts.map +1 -1
- package/lib/typescript/events/predefined/AddToCartEvent.d.ts +2 -4
- package/lib/typescript/events/predefined/AddToCartEvent.d.ts.map +1 -1
- package/lib/typescript/events/predefined/AddToWishlistEvent.d.ts +2 -4
- package/lib/typescript/events/predefined/AddToWishlistEvent.d.ts.map +1 -1
- package/lib/typescript/events/predefined/ClickAdvEvent.d.ts +2 -4
- package/lib/typescript/events/predefined/ClickAdvEvent.d.ts.map +1 -1
- package/lib/typescript/events/predefined/CompleteRegistrationEvent.d.ts +2 -4
- package/lib/typescript/events/predefined/CompleteRegistrationEvent.d.ts.map +1 -1
- package/lib/typescript/events/predefined/CompleteStreamEvent.d.ts +2 -4
- package/lib/typescript/events/predefined/CompleteStreamEvent.d.ts.map +1 -1
- package/lib/typescript/events/predefined/CompleteTrialEvent.d.ts +2 -4
- package/lib/typescript/events/predefined/CompleteTrialEvent.d.ts.map +1 -1
- package/lib/typescript/events/predefined/CompleteTutorialEvent.d.ts +2 -4
- package/lib/typescript/events/predefined/CompleteTutorialEvent.d.ts.map +1 -1
- package/lib/typescript/events/predefined/ContactEvent.d.ts +2 -4
- package/lib/typescript/events/predefined/ContactEvent.d.ts.map +1 -1
- package/lib/typescript/events/predefined/ContentItemsViewEvent.d.ts +2 -4
- package/lib/typescript/events/predefined/ContentItemsViewEvent.d.ts.map +1 -1
- package/lib/typescript/events/predefined/CustomizeProductEvent.d.ts +2 -4
- package/lib/typescript/events/predefined/CustomizeProductEvent.d.ts.map +1 -1
- package/lib/typescript/events/predefined/DeepLinkedEvent.d.ts +2 -4
- package/lib/typescript/events/predefined/DeepLinkedEvent.d.ts.map +1 -1
- package/lib/typescript/events/predefined/DonateEvent.d.ts +2 -4
- package/lib/typescript/events/predefined/DonateEvent.d.ts.map +1 -1
- package/lib/typescript/events/predefined/FindLocationEvent.d.ts +2 -4
- package/lib/typescript/events/predefined/FindLocationEvent.d.ts.map +1 -1
- package/lib/typescript/events/predefined/InitiateCheckoutEvent.d.ts +2 -4
- package/lib/typescript/events/predefined/InitiateCheckoutEvent.d.ts.map +1 -1
- package/lib/typescript/events/predefined/InitiatePurchaseEvent.d.ts +2 -4
- package/lib/typescript/events/predefined/InitiatePurchaseEvent.d.ts.map +1 -1
- package/lib/typescript/events/predefined/InitiateStreamEvent.d.ts +2 -4
- package/lib/typescript/events/predefined/InitiateStreamEvent.d.ts.map +1 -1
- package/lib/typescript/events/predefined/InviteEvent.d.ts +2 -4
- package/lib/typescript/events/predefined/InviteEvent.d.ts.map +1 -1
- package/lib/typescript/events/predefined/LastAttributedTouchEvent.d.ts +2 -4
- package/lib/typescript/events/predefined/LastAttributedTouchEvent.d.ts.map +1 -1
- package/lib/typescript/events/predefined/LeadEvent.d.ts +2 -4
- package/lib/typescript/events/predefined/LeadEvent.d.ts.map +1 -1
- package/lib/typescript/events/predefined/ListViewEvent.d.ts +2 -4
- package/lib/typescript/events/predefined/ListViewEvent.d.ts.map +1 -1
- package/lib/typescript/events/predefined/LoginEvent.d.ts +2 -4
- package/lib/typescript/events/predefined/LoginEvent.d.ts.map +1 -1
- package/lib/typescript/events/predefined/OpenedFromPushNotificationEvent.d.ts +2 -4
- package/lib/typescript/events/predefined/OpenedFromPushNotificationEvent.d.ts.map +1 -1
- package/lib/typescript/events/predefined/OrderCancelEvent.d.ts +2 -4
- package/lib/typescript/events/predefined/OrderCancelEvent.d.ts.map +1 -1
- package/lib/typescript/events/predefined/OrderEvent.d.ts +2 -4
- package/lib/typescript/events/predefined/OrderEvent.d.ts.map +1 -1
- package/lib/typescript/events/predefined/OrderItemAddedEvent.d.ts +2 -4
- package/lib/typescript/events/predefined/OrderItemAddedEvent.d.ts.map +1 -1
- package/lib/typescript/events/predefined/OrderItemRemoveEvent.d.ts +2 -4
- package/lib/typescript/events/predefined/OrderItemRemoveEvent.d.ts.map +1 -1
- package/lib/typescript/events/predefined/OrderReturnRequestCancelEvent.d.ts +2 -4
- package/lib/typescript/events/predefined/OrderReturnRequestCancelEvent.d.ts.map +1 -1
- package/lib/typescript/events/predefined/OrderReturnRequestEvent.d.ts +2 -4
- package/lib/typescript/events/predefined/OrderReturnRequestEvent.d.ts.map +1 -1
- package/lib/typescript/events/predefined/PurchaseEvent.d.ts +2 -4
- package/lib/typescript/events/predefined/PurchaseEvent.d.ts.map +1 -1
- package/lib/typescript/events/predefined/RateEvent.d.ts +2 -4
- package/lib/typescript/events/predefined/RateEvent.d.ts.map +1 -1
- package/lib/typescript/events/predefined/ReEngageEvent.d.ts +2 -4
- package/lib/typescript/events/predefined/ReEngageEvent.d.ts.map +1 -1
- package/lib/typescript/events/predefined/ReserveEvent.d.ts +2 -4
- package/lib/typescript/events/predefined/ReserveEvent.d.ts.map +1 -1
- package/lib/typescript/events/predefined/SalesEvent.d.ts +2 -4
- package/lib/typescript/events/predefined/SalesEvent.d.ts.map +1 -1
- package/lib/typescript/events/predefined/ScheduleEvent.d.ts +2 -4
- package/lib/typescript/events/predefined/ScheduleEvent.d.ts.map +1 -1
- package/lib/typescript/events/predefined/SearchEvent.d.ts +2 -4
- package/lib/typescript/events/predefined/SearchEvent.d.ts.map +1 -1
- package/lib/typescript/events/predefined/ShareEvent.d.ts +2 -4
- package/lib/typescript/events/predefined/ShareEvent.d.ts.map +1 -1
- package/lib/typescript/events/predefined/SpendCreditsEvent.d.ts +2 -4
- package/lib/typescript/events/predefined/SpendCreditsEvent.d.ts.map +1 -1
- package/lib/typescript/events/predefined/StartRegistrationEvent.d.ts +2 -4
- package/lib/typescript/events/predefined/StartRegistrationEvent.d.ts.map +1 -1
- package/lib/typescript/events/predefined/StartTrialEvent.d.ts +2 -4
- package/lib/typescript/events/predefined/StartTrialEvent.d.ts.map +1 -1
- package/lib/typescript/events/predefined/StartTutorialEvent.d.ts +2 -4
- package/lib/typescript/events/predefined/StartTutorialEvent.d.ts.map +1 -1
- package/lib/typescript/events/predefined/SubmitApplicationEvent.d.ts +2 -4
- package/lib/typescript/events/predefined/SubmitApplicationEvent.d.ts.map +1 -1
- package/lib/typescript/events/predefined/SubscribeEvent.d.ts +2 -4
- package/lib/typescript/events/predefined/SubscribeEvent.d.ts.map +1 -1
- package/lib/typescript/events/predefined/TravelBookingEvent.d.ts +2 -4
- package/lib/typescript/events/predefined/TravelBookingEvent.d.ts.map +1 -1
- package/lib/typescript/events/predefined/UnlockAchievementEvent.d.ts +2 -4
- package/lib/typescript/events/predefined/UnlockAchievementEvent.d.ts.map +1 -1
- package/lib/typescript/events/predefined/UnsubscribeEvent.d.ts +2 -4
- package/lib/typescript/events/predefined/UnsubscribeEvent.d.ts.map +1 -1
- package/lib/typescript/events/predefined/UpdateEvent.d.ts +2 -4
- package/lib/typescript/events/predefined/UpdateEvent.d.ts.map +1 -1
- package/lib/typescript/events/predefined/ViewAdvEvent.d.ts +2 -4
- package/lib/typescript/events/predefined/ViewAdvEvent.d.ts.map +1 -1
- package/lib/typescript/events/predefined/ViewCartEvent.d.ts +2 -4
- package/lib/typescript/events/predefined/ViewCartEvent.d.ts.map +1 -1
- package/lib/typescript/events/predefined/ViewContentEvent.d.ts +2 -4
- package/lib/typescript/events/predefined/ViewContentEvent.d.ts.map +1 -1
- package/lib/typescript/events/predefined/ViewItemEvent.d.ts +2 -4
- package/lib/typescript/events/predefined/ViewItemEvent.d.ts.map +1 -1
- package/lib/typescript/events/predefined/ViewItemsEvent.d.ts +2 -4
- package/lib/typescript/events/predefined/ViewItemsEvent.d.ts.map +1 -1
- package/lib/typescript/events/subscription/AffiseCustomSubscriptionEventProps.d.ts +6 -0
- package/lib/typescript/events/subscription/AffiseCustomSubscriptionEventProps.d.ts.map +1 -0
- package/lib/typescript/events/subscription/AffiseSubscriptionEventProps.d.ts +5 -0
- package/lib/typescript/events/subscription/AffiseSubscriptionEventProps.d.ts.map +1 -0
- package/lib/typescript/events/subscription/BaseSubscriptionEvent.d.ts +2 -1
- package/lib/typescript/events/subscription/BaseSubscriptionEvent.d.ts.map +1 -1
- package/lib/typescript/events/subscription/ConvertedOfferEvent.d.ts +2 -4
- package/lib/typescript/events/subscription/ConvertedOfferEvent.d.ts.map +1 -1
- package/lib/typescript/events/subscription/ConvertedOfferFromRetryEvent.d.ts +2 -4
- package/lib/typescript/events/subscription/ConvertedOfferFromRetryEvent.d.ts.map +1 -1
- package/lib/typescript/events/subscription/ConvertedTrialEvent.d.ts +2 -4
- package/lib/typescript/events/subscription/ConvertedTrialEvent.d.ts.map +1 -1
- package/lib/typescript/events/subscription/ConvertedTrialFromRetryEvent.d.ts +2 -4
- package/lib/typescript/events/subscription/ConvertedTrialFromRetryEvent.d.ts.map +1 -1
- package/lib/typescript/events/subscription/FailedOfferFromRetryEvent.d.ts +2 -4
- package/lib/typescript/events/subscription/FailedOfferFromRetryEvent.d.ts.map +1 -1
- package/lib/typescript/events/subscription/FailedOfferiseEvent.d.ts +2 -4
- package/lib/typescript/events/subscription/FailedOfferiseEvent.d.ts.map +1 -1
- package/lib/typescript/events/subscription/FailedSubscriptionEvent.d.ts +2 -4
- package/lib/typescript/events/subscription/FailedSubscriptionEvent.d.ts.map +1 -1
- package/lib/typescript/events/subscription/FailedSubscriptionFromRetryEvent.d.ts +2 -4
- package/lib/typescript/events/subscription/FailedSubscriptionFromRetryEvent.d.ts.map +1 -1
- package/lib/typescript/events/subscription/FailedTrialEvent.d.ts +2 -4
- package/lib/typescript/events/subscription/FailedTrialEvent.d.ts.map +1 -1
- package/lib/typescript/events/subscription/FailedTrialFromRetryEvent.d.ts +2 -4
- package/lib/typescript/events/subscription/FailedTrialFromRetryEvent.d.ts.map +1 -1
- package/lib/typescript/events/subscription/InitialOfferEvent.d.ts +2 -4
- package/lib/typescript/events/subscription/InitialOfferEvent.d.ts.map +1 -1
- package/lib/typescript/events/subscription/InitialSubscriptionEvent.d.ts +2 -4
- package/lib/typescript/events/subscription/InitialSubscriptionEvent.d.ts.map +1 -1
- package/lib/typescript/events/subscription/InitialTrialEvent.d.ts +2 -4
- package/lib/typescript/events/subscription/InitialTrialEvent.d.ts.map +1 -1
- package/lib/typescript/events/subscription/OfferInRetryEvent.d.ts +2 -4
- package/lib/typescript/events/subscription/OfferInRetryEvent.d.ts.map +1 -1
- package/lib/typescript/events/subscription/ReactivatedSubscriptionEvent.d.ts +2 -4
- package/lib/typescript/events/subscription/ReactivatedSubscriptionEvent.d.ts.map +1 -1
- package/lib/typescript/events/subscription/RenewedSubscriptionEvent.d.ts +2 -4
- package/lib/typescript/events/subscription/RenewedSubscriptionEvent.d.ts.map +1 -1
- package/lib/typescript/events/subscription/RenewedSubscriptionFromRetryEvent.d.ts +2 -4
- package/lib/typescript/events/subscription/RenewedSubscriptionFromRetryEvent.d.ts.map +1 -1
- package/lib/typescript/events/subscription/SubscriptionInRetryEvent.d.ts +2 -4
- package/lib/typescript/events/subscription/SubscriptionInRetryEvent.d.ts.map +1 -1
- package/lib/typescript/events/subscription/TrialInRetryEvent.d.ts +2 -4
- package/lib/typescript/events/subscription/TrialInRetryEvent.d.ts.map +1 -1
- package/lib/typescript/events/subscription/UnsubscriptionEvent.d.ts +2 -4
- package/lib/typescript/events/subscription/UnsubscriptionEvent.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +28 -3
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/module/AffiseKeyValue.d.ts +0 -1
- package/lib/typescript/module/AffiseKeyValue.d.ts.map +1 -1
- package/lib/typescript/module/AffiseModules.d.ts +2 -0
- package/lib/typescript/module/AffiseModules.d.ts.map +1 -1
- package/lib/typescript/module/link/AffiseLinkCallback.d.ts +2 -0
- package/lib/typescript/module/link/AffiseLinkCallback.d.ts.map +1 -0
- package/lib/typescript/native/AffiseApiMethod.d.ts +5 -4
- package/lib/typescript/native/AffiseApiMethod.d.ts.map +1 -1
- package/lib/typescript/native/AffiseNative.d.ts +10 -4
- package/lib/typescript/native/AffiseNative.d.ts.map +1 -1
- package/lib/typescript/native/NativeBasePlatform.d.ts.map +1 -1
- package/lib/typescript/native/utils/DataMapper.d.ts +8 -0
- package/lib/typescript/native/utils/DataMapper.d.ts.map +1 -0
- package/lib/typescript/native/utils/DebugUtils.d.ts +4 -3
- package/lib/typescript/native/utils/DebugUtils.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/Export.ts +11 -1
- package/src/deeplink/DeeplinkValue.ts +26 -0
- package/src/deeplink/OnDeeplinkCallback.ts +3 -0
- package/src/events/base/AffiseCustomEventProps.ts +5 -0
- package/src/events/base/AffiseEvent.ts +2 -2
- package/src/events/base/AffiseEventProps.ts +4 -0
- package/src/events/base/NativeEvent.ts +3 -2
- package/src/events/custom/CustomId01Event.ts +3 -2
- package/src/events/custom/CustomId02Event.ts +3 -2
- package/src/events/custom/CustomId03Event.ts +3 -2
- package/src/events/custom/CustomId04Event.ts +3 -2
- package/src/events/custom/CustomId05Event.ts +3 -2
- package/src/events/custom/CustomId06Event.ts +3 -2
- package/src/events/custom/CustomId07Event.ts +3 -2
- package/src/events/custom/CustomId08Event.ts +3 -2
- package/src/events/custom/CustomId09Event.ts +3 -2
- package/src/events/custom/CustomId10Event.ts +3 -2
- package/src/events/custom/UserCustomEvent.ts +3 -3
- package/src/events/custom/UserCustomSubscriptionEvent.ts +11 -7
- package/src/events/predefined/AchieveLevelEvent.ts +3 -2
- package/src/events/predefined/AdRevenueEvent.ts +3 -2
- package/src/events/predefined/AddPaymentInfoEvent.ts +3 -2
- package/src/events/predefined/AddToCartEvent.ts +3 -2
- package/src/events/predefined/AddToWishlistEvent.ts +3 -2
- package/src/events/predefined/ClickAdvEvent.ts +3 -2
- package/src/events/predefined/CompleteRegistrationEvent.ts +3 -2
- package/src/events/predefined/CompleteStreamEvent.ts +3 -2
- package/src/events/predefined/CompleteTrialEvent.ts +3 -2
- package/src/events/predefined/CompleteTutorialEvent.ts +3 -2
- package/src/events/predefined/ContactEvent.ts +3 -2
- package/src/events/predefined/ContentItemsViewEvent.ts +3 -2
- package/src/events/predefined/CustomizeProductEvent.ts +3 -2
- package/src/events/predefined/DeepLinkedEvent.ts +3 -2
- package/src/events/predefined/DonateEvent.ts +3 -2
- package/src/events/predefined/FindLocationEvent.ts +3 -2
- package/src/events/predefined/InitiateCheckoutEvent.ts +3 -2
- package/src/events/predefined/InitiatePurchaseEvent.ts +3 -2
- package/src/events/predefined/InitiateStreamEvent.ts +3 -2
- package/src/events/predefined/InviteEvent.ts +3 -2
- package/src/events/predefined/LastAttributedTouchEvent.ts +3 -2
- package/src/events/predefined/LeadEvent.ts +3 -2
- package/src/events/predefined/ListViewEvent.ts +3 -2
- package/src/events/predefined/LoginEvent.ts +3 -2
- package/src/events/predefined/OpenedFromPushNotificationEvent.ts +3 -2
- package/src/events/predefined/OrderCancelEvent.ts +3 -2
- package/src/events/predefined/OrderEvent.ts +3 -2
- package/src/events/predefined/OrderItemAddedEvent.ts +3 -2
- package/src/events/predefined/OrderItemRemoveEvent.ts +3 -2
- package/src/events/predefined/OrderReturnRequestCancelEvent.ts +3 -2
- package/src/events/predefined/OrderReturnRequestEvent.ts +3 -2
- package/src/events/predefined/PurchaseEvent.ts +3 -2
- package/src/events/predefined/RateEvent.ts +3 -2
- package/src/events/predefined/ReEngageEvent.ts +3 -2
- package/src/events/predefined/ReserveEvent.ts +3 -2
- package/src/events/predefined/SalesEvent.ts +3 -2
- package/src/events/predefined/ScheduleEvent.ts +3 -2
- package/src/events/predefined/SearchEvent.ts +3 -2
- package/src/events/predefined/ShareEvent.ts +3 -2
- package/src/events/predefined/SpendCreditsEvent.ts +3 -2
- package/src/events/predefined/StartRegistrationEvent.ts +3 -2
- package/src/events/predefined/StartTrialEvent.ts +3 -2
- package/src/events/predefined/StartTutorialEvent.ts +3 -2
- package/src/events/predefined/SubmitApplicationEvent.ts +3 -2
- package/src/events/predefined/SubscribeEvent.ts +3 -2
- package/src/events/predefined/TravelBookingEvent.ts +3 -2
- package/src/events/predefined/UnlockAchievementEvent.ts +3 -2
- package/src/events/predefined/UnsubscribeEvent.ts +3 -2
- package/src/events/predefined/UpdateEvent.ts +3 -2
- package/src/events/predefined/ViewAdvEvent.ts +3 -2
- package/src/events/predefined/ViewCartEvent.ts +3 -2
- package/src/events/predefined/ViewContentEvent.ts +3 -2
- package/src/events/predefined/ViewItemEvent.ts +3 -2
- package/src/events/predefined/ViewItemsEvent.ts +3 -2
- package/src/events/property/AffisePropertyBuilder.ts +1 -1
- package/src/events/subscription/AffiseCustomSubscriptionEventProps.ts +6 -0
- package/src/events/subscription/AffiseSubscriptionEventProps.ts +4 -0
- package/src/events/subscription/BaseSubscriptionEvent.ts +4 -8
- package/src/events/subscription/ConvertedOfferEvent.ts +7 -7
- package/src/events/subscription/ConvertedOfferFromRetryEvent.ts +7 -7
- package/src/events/subscription/ConvertedTrialEvent.ts +7 -7
- package/src/events/subscription/ConvertedTrialFromRetryEvent.ts +7 -7
- package/src/events/subscription/FailedOfferFromRetryEvent.ts +7 -7
- package/src/events/subscription/FailedOfferiseEvent.ts +7 -7
- package/src/events/subscription/FailedSubscriptionEvent.ts +7 -7
- package/src/events/subscription/FailedSubscriptionFromRetryEvent.ts +7 -7
- package/src/events/subscription/FailedTrialEvent.ts +7 -7
- package/src/events/subscription/FailedTrialFromRetryEvent.ts +7 -7
- package/src/events/subscription/InitialOfferEvent.ts +7 -7
- package/src/events/subscription/InitialSubscriptionEvent.ts +7 -7
- package/src/events/subscription/InitialTrialEvent.ts +7 -7
- package/src/events/subscription/OfferInRetryEvent.ts +7 -7
- package/src/events/subscription/ReactivatedSubscriptionEvent.ts +7 -7
- package/src/events/subscription/RenewedSubscriptionEvent.ts +7 -7
- package/src/events/subscription/RenewedSubscriptionFromRetryEvent.ts +7 -7
- package/src/events/subscription/SubscriptionInRetryEvent.ts +7 -7
- package/src/events/subscription/TrialInRetryEvent.ts +7 -7
- package/src/events/subscription/UnsubscriptionEvent.ts +7 -7
- package/src/index.ts +46 -6
- package/src/module/AffiseKeyValue.ts +0 -15
- package/src/module/AffiseModules.ts +2 -0
- package/src/module/link/AffiseLinkCallback.ts +1 -0
- package/src/native/AffiseApiMethod.ts +12 -3
- package/src/native/AffiseNative.ts +62 -39
- package/src/native/NativeBasePlatform.ts +3 -1
- package/src/native/utils/DataMapper.ts +37 -0
- package/src/native/utils/DebugUtils.ts +14 -13
- package/lib/commonjs/callback/OnDeeplinkCallback.js +0 -2
- package/lib/module/callback/OnDeeplinkCallback.js +0 -2
- package/lib/typescript/callback/OnDeeplinkCallback.d.ts +0 -2
- package/lib/typescript/callback/OnDeeplinkCallback.d.ts.map +0 -1
- package/src/callback/OnDeeplinkCallback.ts +0 -1
- /package/lib/commonjs/{callback → deeplink}/OnDeeplinkCallback.js.map +0 -0
- /package/lib/module/{callback → deeplink}/OnDeeplinkCallback.js.map +0 -0
package/lib/module/index.js
CHANGED
|
@@ -129,27 +129,30 @@ export class Affise {
|
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
/**
|
|
132
|
+
* @deprecated use Affise.module.getStatus
|
|
132
133
|
* Get module status
|
|
133
134
|
* @param module module name
|
|
134
135
|
* @param callback status response
|
|
135
136
|
*/
|
|
136
137
|
static getStatus(module, callback) {
|
|
137
|
-
|
|
138
|
+
Affise.module.getStatus(module, callback);
|
|
138
139
|
}
|
|
139
140
|
|
|
140
141
|
/**
|
|
142
|
+
* @deprecated use Affise.module.moduleStart
|
|
141
143
|
* Manual module start
|
|
142
144
|
* @param module module name
|
|
143
145
|
*/
|
|
144
146
|
static moduleStart(module) {
|
|
145
|
-
return
|
|
147
|
+
return Affise.module.moduleStart(module);
|
|
146
148
|
}
|
|
147
149
|
|
|
148
150
|
/**
|
|
151
|
+
* @deprecated use Affise.module.getModulesInstalled
|
|
149
152
|
* Get installed modules
|
|
150
153
|
*/
|
|
151
154
|
static getModulesInstalled() {
|
|
152
|
-
return
|
|
155
|
+
return Affise.module.getModulesInstalled();
|
|
153
156
|
}
|
|
154
157
|
|
|
155
158
|
/**
|
|
@@ -233,6 +236,40 @@ _defineProperty(Affise, "ios", class {
|
|
|
233
236
|
Affise.native.updatePostbackConversionValue(fineValue, coarseValue, completionHandler);
|
|
234
237
|
}
|
|
235
238
|
});
|
|
239
|
+
_defineProperty(Affise, "module", class {
|
|
240
|
+
/**
|
|
241
|
+
* Get module status
|
|
242
|
+
* @param module module name
|
|
243
|
+
* @param callback status response
|
|
244
|
+
*/
|
|
245
|
+
static getStatus(module, callback) {
|
|
246
|
+
Affise.native.getStatus(module, callback);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* Manual module start
|
|
251
|
+
* @param module module name
|
|
252
|
+
*/
|
|
253
|
+
static moduleStart(module) {
|
|
254
|
+
return Affise.native.moduleStart(module);
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* Get installed modules
|
|
259
|
+
*/
|
|
260
|
+
static getModulesInstalled() {
|
|
261
|
+
return Affise.native.getModulesInstalled();
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* Module Link url Resolve
|
|
266
|
+
* @param url url
|
|
267
|
+
* @param callback redirected url
|
|
268
|
+
*/
|
|
269
|
+
static linkResolve(url, callback) {
|
|
270
|
+
Affise.native.linkResolve(url, callback);
|
|
271
|
+
}
|
|
272
|
+
});
|
|
236
273
|
_defineProperty(Affise, "debug", class {
|
|
237
274
|
/**
|
|
238
275
|
* Won't work on Production
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["AffiseNative","Platform","AffiseSettings","Affise","settings","affiseAppId","secretKey","start","initProperties","native","init","isInitialized","sendEvent","event","sendEventNow","success","failed","addPushToken","pushToken","registerDeeplinkCallback","callback","setSecretKey","setAutoCatchingTypes","types","setOfflineModeEnabled","enabled","isOfflineModeEnabled","setBackgroundTrackingEnabled","isBackgroundTrackingEnabled","setTrackingEnabled","isTrackingEnabled","getStatus","module","moduleStart","getModulesInstalled","getRandomUserId","getRandomDeviceId","getProviders","isFirstRun","getReferrer","getReferrerValue","key","setEnabledMetrics","forget","userData","crashApplication","registerAppForAdNetworkAttribution","completionHandler","OS","updatePostbackConversionValue","fineValue","coarseValue","validate","network"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"names":["AffiseNative","Platform","AffiseSettings","Affise","settings","affiseAppId","secretKey","start","initProperties","native","init","isInitialized","sendEvent","event","sendEventNow","success","failed","addPushToken","pushToken","registerDeeplinkCallback","callback","setSecretKey","setAutoCatchingTypes","types","setOfflineModeEnabled","enabled","isOfflineModeEnabled","setBackgroundTrackingEnabled","isBackgroundTrackingEnabled","setTrackingEnabled","isTrackingEnabled","getStatus","module","moduleStart","getModulesInstalled","getRandomUserId","getRandomDeviceId","getProviders","isFirstRun","getReferrer","getReferrerValue","key","setEnabledMetrics","forget","userData","crashApplication","registerAppForAdNetworkAttribution","completionHandler","OS","updatePostbackConversionValue","fineValue","coarseValue","linkResolve","url","validate","network"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;;AAkBA,SAAQA,YAAY,QAAO,uBAAuB;AAClD,SAAQC,QAAQ,QAAO,cAAc;AACrC,SAAQC,cAAc,QAAO,UAAU;AAEvC,cAAc,UAAU;;AAExB;AACA;AACA;AACA,OAAO,MAAMC,MAAM,CAAC;EAIhB;AACJ;AACA;AACA;AACA;AACA;AACA;EACI,OAAOC,QAAQ,OAAuF;IAAA,IAAtF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K,KAAK,EAAE;IAC3B7C,MAAM,CAACM,MAAM,CAACwC,6BAA6B,CAACC,SAAS,EAAEC,WAAW,EAAEJ,iBAAiB,CAAC;EAC1F;AACJ,CAAC;AAAA,gBArOQ5C,MAAM,YAuOE,MAAM;EAEnB;AACR;AACA;AACA;AACA;EACQ,OAAO4B,SAAS,CAACC,MAAqB,EAAEZ,QAA4B,EAAE;IAClEjB,MAAM,CAACM,MAAM,CAACsB,SAAS,CAACC,MAAM,EAAEZ,QAAQ,CAAC;EAC7C;;EAEA;AACR;AACA;AACA;EACQ,OAAOa,WAAW,CAACD,MAAqB,EAAoB;IACxD,OAAO7B,MAAM,CAACM,MAAM,CAACwB,WAAW,CAACD,MAAM,CAAC;EAC5C;;EAEA;AACR;AACA;EACQ,OAAOE,mBAAmB,GAA6B;IACnD,OAAO/B,MAAM,CAACM,MAAM,CAACyB,mBAAmB,EAAE;EAC9C;;EAEA;AACR;AACA;AACA;AACA;EACQ,OAAOkB,WAAW,CAACC,GAAW,EAAEjC,QAA4B,EAAE;IAC1DjB,MAAM,CAACM,MAAM,CAAC2C,WAAW,CAACC,GAAG,EAAEjC,QAAQ,CAAC;EAC5C;AACJ,CAAC;AAAA,gBAzQQjB,MAAM,WA2QA,MAAM;EACjB;AACR;AACA;AACA;AACA;EACQ,OAAOmD,QAAQ,CAAClC,QAAiC,EAAE;IAC/CjB,MAAM,CAACM,MAAM,CAAC6C,QAAQ,CAAClC,QAAQ,CAAC;EACpC;;EAEA;AACR;AACA;AACA;AACA;EACQ,OAAOmC,OAAO,CAACnC,QAAgC,EAAE;IAC7CjB,MAAM,CAACM,MAAM,CAAC8C,OAAO,CAACnC,QAAQ,CAAC;EACnC;AACJ,CAAC"}
|
|
@@ -9,15 +9,4 @@ export class AffiseKeyValue {
|
|
|
9
9
|
this.value = value;
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
export function toAffiseKeyValueList(data) {
|
|
13
|
-
const result = [];
|
|
14
|
-
for (const item of data) {
|
|
15
|
-
const cast = item;
|
|
16
|
-
const key = cast['key'];
|
|
17
|
-
const value = cast["value"];
|
|
18
|
-
if (!(key && value)) continue;
|
|
19
|
-
result.push(new AffiseKeyValue(key, value));
|
|
20
|
-
}
|
|
21
|
-
return result;
|
|
22
|
-
}
|
|
23
12
|
//# sourceMappingURL=AffiseKeyValue.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["AffiseKeyValue","constructor","key","value"
|
|
1
|
+
{"version":3,"names":["AffiseKeyValue","constructor","key","value"],"sourceRoot":"../../src","sources":["AffiseKeyValue.ts"],"mappings":";;;AAAA,OAAO,MAAMA,cAAc,CAAC;EAIxBC,WAAW,CAACC,GAAW,EAAEC,KAAa,EAAE;IAAA;IAAA;IACpC,IAAI,CAACD,GAAG,GAAGA,GAAG;IACd,IAAI,CAACC,KAAK,GAAGA,KAAK;EACtB;AACJ"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export let AffiseModules;
|
|
2
2
|
(function (AffiseModules) {
|
|
3
3
|
AffiseModules["ADVERTISING"] = "Advertising";
|
|
4
|
+
AffiseModules["ANDROIDID"] = "AndroidId";
|
|
5
|
+
AffiseModules["LINK"] = "Link";
|
|
4
6
|
AffiseModules["NETWORK"] = "Network";
|
|
5
7
|
AffiseModules["PHONE"] = "Phone";
|
|
6
8
|
AffiseModules["STATUS"] = "Status";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["AffiseModules"],"sourceRoot":"../../src","sources":["AffiseModules.ts"],"mappings":"AAAA,WAAYA,aAAa;
|
|
1
|
+
{"version":3,"names":["AffiseModules"],"sourceRoot":"../../src","sources":["AffiseModules.ts"],"mappings":"AAAA,WAAYA,aAAa;AAOxB,WAPWA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;AAAA,GAAbA,aAAa,KAAbA,aAAa"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../src","sources":["AffiseLinkCallback.ts"],"mappings":""}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { getEnumFromString } from "../utils/EnumUtils";
|
|
2
|
-
export let AffiseApiMethod;
|
|
2
|
+
export let AffiseApiMethod; ////////////////////////////////////////
|
|
3
|
+
// modules
|
|
4
|
+
////////////////////////////////////////
|
|
3
5
|
(function (AffiseApiMethod) {
|
|
4
6
|
AffiseApiMethod["INIT"] = "init";
|
|
5
7
|
AffiseApiMethod["IS_INITIALIZED"] = "is_initialized";
|
|
@@ -22,17 +24,18 @@ export let AffiseApiMethod;
|
|
|
22
24
|
AffiseApiMethod["GET_RANDOM_USER_ID"] = "get_random_user_id";
|
|
23
25
|
AffiseApiMethod["GET_RANDOM_DEVICE_ID"] = "get_random_device_id";
|
|
24
26
|
AffiseApiMethod["GET_PROVIDERS"] = "get_providers";
|
|
25
|
-
AffiseApiMethod["MODULE_START"] = "module_start";
|
|
26
|
-
AffiseApiMethod["GET_MODULES_INSTALLED"] = "get_modules_installed";
|
|
27
27
|
AffiseApiMethod["IS_FIRST_RUN"] = "is_first_run";
|
|
28
28
|
AffiseApiMethod["GET_REFERRER_CALLBACK"] = "get_referrer_callback";
|
|
29
29
|
AffiseApiMethod["GET_REFERRER_VALUE_CALLBACK"] = "get_referrer_value_callback";
|
|
30
|
-
AffiseApiMethod["GET_STATUS_CALLBACK"] = "get_status_callback";
|
|
31
30
|
AffiseApiMethod["REGISTER_DEEPLINK_CALLBACK"] = "register_deeplink_callback";
|
|
32
31
|
AffiseApiMethod["SKAD_REGISTER_ERROR_CALLBACK"] = "skad_register_error_callback";
|
|
33
32
|
AffiseApiMethod["SKAD_POSTBACK_ERROR_CALLBACK"] = "skad_postback_error_callback";
|
|
34
33
|
AffiseApiMethod["DEBUG_VALIDATE_CALLBACK"] = "debug_validate_callback";
|
|
35
34
|
AffiseApiMethod["DEBUG_NETWORK_CALLBACK"] = "debug_network_callback";
|
|
35
|
+
AffiseApiMethod["MODULE_START"] = "module_start";
|
|
36
|
+
AffiseApiMethod["GET_MODULES_INSTALLED"] = "get_modules_installed";
|
|
37
|
+
AffiseApiMethod["GET_STATUS_CALLBACK"] = "get_status_callback";
|
|
38
|
+
AffiseApiMethod["MODULE_LINK_LINK_RESOLVE_CALLBACK"] = "module_link_link_resolve_callback";
|
|
36
39
|
})(AffiseApiMethod || (AffiseApiMethod = {}));
|
|
37
40
|
export function apiMethodFrom(name) {
|
|
38
41
|
return getEnumFromString(AffiseApiMethod, name);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getEnumFromString","AffiseApiMethod","apiMethodFrom","name"],"sourceRoot":"../../src","sources":["AffiseApiMethod.ts"],"mappings":"AAAA,SAAQA,iBAAiB,QAAO,oBAAoB;AAEpD,WAAYC,eAAe;
|
|
1
|
+
{"version":3,"names":["getEnumFromString","AffiseApiMethod","apiMethodFrom","name"],"sourceRoot":"../../src","sources":["AffiseApiMethod.ts"],"mappings":"AAAA,SAAQA,iBAAiB,QAAO,oBAAoB;AAEpD,WAAYC,eAAe,EA2CvB;AACA;AACA;AACH,WA9CWA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;AAAA,GAAfA,eAAe,KAAfA,eAAe;AAgD3B,OAAO,SAASC,aAAa,CAACC,IAAY,EAA0B;EAChE,OAAOH,iBAAiB,CAACC,eAAe,EAAEE,IAAI,CAAC;AACnD"}
|
|
@@ -5,13 +5,17 @@ import { NativeBase } from "./NativeBase";
|
|
|
5
5
|
import { AffiseApiMethod } from "./AffiseApiMethod";
|
|
6
6
|
import { AffiseInitProperties, isAffiseInitPropertiesType } from "../AffiseInitProperties";
|
|
7
7
|
import { tryCast } from "../utils/TryCast";
|
|
8
|
-
import { toAffiseKeyValueList } from "../module/AffiseKeyValue";
|
|
9
8
|
import { DebugUtils } from "./utils/DebugUtils";
|
|
9
|
+
import { DataMapper } from "./utils/DataMapper";
|
|
10
10
|
export class AffiseNative extends NativeBase {
|
|
11
11
|
constructor() {
|
|
12
12
|
super(...arguments);
|
|
13
|
+
_defineProperty(this, "FINE_VALUE", "fineValue");
|
|
14
|
+
_defineProperty(this, "COARSE_VALUE", "coarseValue");
|
|
13
15
|
_defineProperty(this, "SUCCESS", "success");
|
|
14
16
|
_defineProperty(this, "FAILED", "failed");
|
|
17
|
+
_defineProperty(this, "REQUEST", "request");
|
|
18
|
+
_defineProperty(this, "RESPONSE", "response");
|
|
15
19
|
}
|
|
16
20
|
init(initProperties) {
|
|
17
21
|
let option;
|
|
@@ -35,7 +39,7 @@ export class AffiseNative extends NativeBase {
|
|
|
35
39
|
this.native(AffiseApiMethod.ADD_PUSH_TOKEN, pushToken);
|
|
36
40
|
}
|
|
37
41
|
registerDeeplinkCallback(callback) {
|
|
38
|
-
this.
|
|
42
|
+
this.nativeCallback(AffiseApiMethod.REGISTER_DEEPLINK_CALLBACK, callback);
|
|
39
43
|
this.reactHandleDeeplink();
|
|
40
44
|
}
|
|
41
45
|
setSecretKey(secretKey) {
|
|
@@ -77,15 +81,6 @@ export class AffiseNative extends NativeBase {
|
|
|
77
81
|
getReferrerValue(key, callback) {
|
|
78
82
|
this.nativeCallbackOnce(AffiseApiMethod.GET_REFERRER_VALUE_CALLBACK, callback, key);
|
|
79
83
|
}
|
|
80
|
-
getStatus(module, callback) {
|
|
81
|
-
this.nativeCallbackOnce(AffiseApiMethod.GET_STATUS_CALLBACK, callback, module);
|
|
82
|
-
}
|
|
83
|
-
moduleStart(module) {
|
|
84
|
-
return this.nativeResult(AffiseApiMethod.MODULE_START, module);
|
|
85
|
-
}
|
|
86
|
-
getModulesInstalled() {
|
|
87
|
-
return this.nativeResult(AffiseApiMethod.GET_MODULES_INSTALLED);
|
|
88
|
-
}
|
|
89
84
|
isFirstRun() {
|
|
90
85
|
return this.nativeResult(AffiseApiMethod.IS_FIRST_RUN);
|
|
91
86
|
}
|
|
@@ -103,8 +98,8 @@ export class AffiseNative extends NativeBase {
|
|
|
103
98
|
}
|
|
104
99
|
updatePostbackConversionValue(fineValue, coarseValue, completionHandler) {
|
|
105
100
|
const value = {};
|
|
106
|
-
value[
|
|
107
|
-
value[
|
|
101
|
+
value[this.FINE_VALUE] = Number(fineValue);
|
|
102
|
+
value[this.COARSE_VALUE] = coarseValue.value;
|
|
108
103
|
this.nativeCallbackOnce(AffiseApiMethod.SKAD_POSTBACK_ERROR_CALLBACK, completionHandler, value);
|
|
109
104
|
}
|
|
110
105
|
validate(callback) {
|
|
@@ -113,8 +108,28 @@ export class AffiseNative extends NativeBase {
|
|
|
113
108
|
network(callback) {
|
|
114
109
|
this.nativeCallback(AffiseApiMethod.DEBUG_NETWORK_CALLBACK, callback);
|
|
115
110
|
}
|
|
111
|
+
|
|
112
|
+
////////////////////////////////////////
|
|
113
|
+
// modules
|
|
114
|
+
////////////////////////////////////////
|
|
115
|
+
getStatus(module, callback) {
|
|
116
|
+
this.nativeCallbackOnce(AffiseApiMethod.GET_STATUS_CALLBACK, callback, module);
|
|
117
|
+
}
|
|
118
|
+
moduleStart(module) {
|
|
119
|
+
return this.nativeResult(AffiseApiMethod.MODULE_START, module);
|
|
120
|
+
}
|
|
121
|
+
getModulesInstalled() {
|
|
122
|
+
return this.nativeResult(AffiseApiMethod.GET_MODULES_INSTALLED);
|
|
123
|
+
}
|
|
124
|
+
linkResolve(url, callback) {
|
|
125
|
+
this.nativeCallbackOnce(AffiseApiMethod.MODULE_LINK_LINK_RESOLVE_CALLBACK, callback, url);
|
|
126
|
+
}
|
|
127
|
+
////////////////////////////////////////
|
|
128
|
+
// modules
|
|
129
|
+
////////////////////////////////////////
|
|
130
|
+
|
|
116
131
|
handleCallback(api, callback, data, tag) {
|
|
117
|
-
var _tryCast, _tryCast3, _tryCast4, _tryCast6, _tryCast7, _tryCast8;
|
|
132
|
+
var _tryCast, _tryCast2, _tryCast3, _tryCast4, _tryCast5, _tryCast6, _tryCast7, _tryCast8, _tryCast9, _tryCast10, _tryCast11;
|
|
118
133
|
switch (api) {
|
|
119
134
|
case AffiseApiMethod.SEND_EVENT_NOW:
|
|
120
135
|
switch (tag) {
|
|
@@ -122,52 +137,45 @@ export class AffiseNative extends NativeBase {
|
|
|
122
137
|
(_tryCast = tryCast(callback)) === null || _tryCast === void 0 ? void 0 : _tryCast();
|
|
123
138
|
break;
|
|
124
139
|
case this.FAILED:
|
|
125
|
-
|
|
126
|
-
var _tryCast2;
|
|
127
|
-
const response = DebugUtils.parseResponse(data);
|
|
128
|
-
(_tryCast2 = tryCast(callback)) === null || _tryCast2 === void 0 ? void 0 : _tryCast2(response);
|
|
129
|
-
}
|
|
140
|
+
(_tryCast2 = tryCast(callback)) === null || _tryCast2 === void 0 ? void 0 : _tryCast2(DebugUtils.toResponse(data));
|
|
130
141
|
break;
|
|
131
142
|
default:
|
|
132
143
|
break;
|
|
133
144
|
}
|
|
134
145
|
break;
|
|
135
146
|
case AffiseApiMethod.GET_REFERRER_CALLBACK:
|
|
136
|
-
(_tryCast3 = tryCast(callback)) === null || _tryCast3 === void 0 ? void 0 : _tryCast3(data
|
|
147
|
+
(_tryCast3 = tryCast(callback)) === null || _tryCast3 === void 0 ? void 0 : _tryCast3(DataMapper.toNonNullString(data));
|
|
137
148
|
break;
|
|
138
149
|
case AffiseApiMethod.GET_REFERRER_VALUE_CALLBACK:
|
|
139
|
-
(_tryCast4 = tryCast(callback)) === null || _tryCast4 === void 0 ? void 0 : _tryCast4(data
|
|
150
|
+
(_tryCast4 = tryCast(callback)) === null || _tryCast4 === void 0 ? void 0 : _tryCast4(DataMapper.toNonNullString(data));
|
|
140
151
|
break;
|
|
141
|
-
case AffiseApiMethod.GET_STATUS_CALLBACK:
|
|
142
|
-
{
|
|
143
|
-
var _tryCast5;
|
|
144
|
-
const list = toAffiseKeyValueList(tryCast(data) || []);
|
|
145
|
-
(_tryCast5 = tryCast(callback)) === null || _tryCast5 === void 0 ? void 0 : _tryCast5(list);
|
|
146
|
-
break;
|
|
147
|
-
}
|
|
148
152
|
case AffiseApiMethod.REGISTER_DEEPLINK_CALLBACK:
|
|
149
|
-
(
|
|
153
|
+
(_tryCast5 = tryCast(callback)) === null || _tryCast5 === void 0 ? void 0 : _tryCast5(DataMapper.toDeeplinkValue(data));
|
|
150
154
|
break;
|
|
151
155
|
case AffiseApiMethod.SKAD_REGISTER_ERROR_CALLBACK:
|
|
152
|
-
(
|
|
156
|
+
(_tryCast6 = tryCast(callback)) === null || _tryCast6 === void 0 ? void 0 : _tryCast6(DataMapper.toNonNullString(data));
|
|
153
157
|
break;
|
|
154
158
|
case AffiseApiMethod.SKAD_POSTBACK_ERROR_CALLBACK:
|
|
155
|
-
(
|
|
159
|
+
(_tryCast7 = tryCast(callback)) === null || _tryCast7 === void 0 ? void 0 : _tryCast7(DataMapper.toNonNullString(data));
|
|
156
160
|
break;
|
|
157
161
|
case AffiseApiMethod.DEBUG_VALIDATE_CALLBACK:
|
|
158
|
-
|
|
159
|
-
var _tryCast9;
|
|
160
|
-
const status = DebugUtils.getValidationStatus(data);
|
|
161
|
-
(_tryCast9 = tryCast(callback)) === null || _tryCast9 === void 0 ? void 0 : _tryCast9(status);
|
|
162
|
-
}
|
|
162
|
+
(_tryCast8 = tryCast(callback)) === null || _tryCast8 === void 0 ? void 0 : _tryCast8(DebugUtils.getValidationStatus(data));
|
|
163
163
|
break;
|
|
164
164
|
case AffiseApiMethod.DEBUG_NETWORK_CALLBACK:
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
165
|
+
(_tryCast9 = tryCast(callback)) === null || _tryCast9 === void 0 ? void 0 : _tryCast9(DebugUtils.toRequestWithKey(data, this.REQUEST), DebugUtils.toResponseWithKey(data, this.RESPONSE));
|
|
166
|
+
break;
|
|
167
|
+
////////////////////////////////////////
|
|
168
|
+
// modules
|
|
169
|
+
////////////////////////////////////////
|
|
170
|
+
case AffiseApiMethod.GET_STATUS_CALLBACK:
|
|
171
|
+
(_tryCast10 = tryCast(callback)) === null || _tryCast10 === void 0 ? void 0 : _tryCast10(DataMapper.toAffiseKeyValueList(data));
|
|
172
|
+
break;
|
|
173
|
+
case AffiseApiMethod.MODULE_LINK_LINK_RESOLVE_CALLBACK:
|
|
174
|
+
(_tryCast11 = tryCast(callback)) === null || _tryCast11 === void 0 ? void 0 : _tryCast11(DataMapper.toNonNullString(data));
|
|
170
175
|
break;
|
|
176
|
+
////////////////////////////////////////
|
|
177
|
+
// modules
|
|
178
|
+
////////////////////////////////////////
|
|
171
179
|
default:
|
|
172
180
|
break;
|
|
173
181
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["NativeBase","AffiseApiMethod","AffiseInitProperties","isAffiseInitPropertiesType","tryCast","
|
|
1
|
+
{"version":3,"names":["NativeBase","AffiseApiMethod","AffiseInitProperties","isAffiseInitPropertiesType","tryCast","DebugUtils","DataMapper","AffiseNative","init","initProperties","option","native","INIT","isInitialized","nativeResult","IS_INITIALIZED","sendEvent","event","SEND_EVENT","toRecord","sendEventNow","success","failed","nativeCallbackGroup","SEND_EVENT_NOW","Map","SUCCESS","FAILED","addPushToken","pushToken","ADD_PUSH_TOKEN","registerDeeplinkCallback","callback","nativeCallback","REGISTER_DEEPLINK_CALLBACK","reactHandleDeeplink","setSecretKey","secretKey","SET_SECRET_KEY","setAutoCatchingTypes","types","SET_AUTO_CATCHING_TYPES","setOfflineModeEnabled","enabled","SET_OFFLINE_MODE_ENABLED","isOfflineModeEnabled","IS_OFFLINE_MODE_ENABLED","setBackgroundTrackingEnabled","SET_BACKGROUND_TRACKING_ENABLED","isBackgroundTrackingEnabled","IS_BACKGROUND_TRACKING_ENABLED","setTrackingEnabled","SET_TRACKING_ENABLED","isTrackingEnabled","IS_TRACKING_ENABLED","forget","userData","FORGET","setEnabledMetrics","SET_ENABLED_METRICS","crashApplication","CRASH_APPLICATION","getReferrer","nativeCallbackOnce","GET_REFERRER_CALLBACK","getReferrerValue","key","GET_REFERRER_VALUE_CALLBACK","isFirstRun","IS_FIRST_RUN","getRandomUserId","GET_RANDOM_USER_ID","getRandomDeviceId","GET_RANDOM_DEVICE_ID","getProviders","GET_PROVIDERS","registerAppForAdNetworkAttribution","completionHandler","SKAD_REGISTER_ERROR_CALLBACK","updatePostbackConversionValue","fineValue","coarseValue","value","FINE_VALUE","Number","COARSE_VALUE","SKAD_POSTBACK_ERROR_CALLBACK","validate","DEBUG_VALIDATE_CALLBACK","network","DEBUG_NETWORK_CALLBACK","getStatus","module","GET_STATUS_CALLBACK","moduleStart","MODULE_START","getModulesInstalled","GET_MODULES_INSTALLED","linkResolve","url","MODULE_LINK_LINK_RESOLVE_CALLBACK","handleCallback","api","data","tag","toResponse","toNonNullString","toDeeplinkValue","getValidationStatus","toRequestWithKey","REQUEST","toResponseWithKey","RESPONSE","toAffiseKeyValueList"],"sourceRoot":"../../src","sources":["AffiseNative.ts"],"mappings":";;;AAAA,SAAQA,UAAU,QAAO,cAAc;AACvC,SAAQC,eAAe,QAAO,mBAAmB;AAEjD,SAAQC,oBAAoB,EAAEC,0BAA0B,QAAO,yBAAyB;AAUxF,SAAQC,OAAO,QAAO,kBAAkB;AAGxC,SAAQC,UAAU,QAAO,oBAAoB;AAI7C,SAAQC,UAAU,QAAO,oBAAoB;AAE7C,OAAO,MAAMC,YAAY,SAASP,UAAU,CAAC;EAAA;IAAA;IAAA,oCAEl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export class NativeBasePlatform {
|
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
41
|
reactHandleDeeplink() {
|
|
42
|
-
Linking.getInitialURL().then(
|
|
42
|
+
Linking.getInitialURL().then(url => {
|
|
43
|
+
this.reactDeeplinkCallback(url);
|
|
44
|
+
});
|
|
43
45
|
Linking.addEventListener('url', evt => this.reactDeeplinkCallback(evt.url));
|
|
44
46
|
}
|
|
45
47
|
reactDeeplinkCallback(url) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Linking","NativeEventEmitter","NativeModules","Platform","LINKING_ERROR","select","ios","default","AffiseNative","AffiseAttributionNative","Proxy","get","Error","NativeBasePlatform","constructor","nativeEventEmitter","nativeHandleDeeplink","url","apiCallResult","apiName","data","invokeMethod","apiCall","catch","error","console","log","apiCallback","_apiName","_apiData","eventEmitter","addListener","CALLBACK","event","API","DATA","reactHandleDeeplink","getInitialURL","then","reactDeeplinkCallback","addEventListener","evt","trim","length"],"sourceRoot":"../../src","sources":["NativeBasePlatform.ts"],"mappings":";;;AAAA,SAAQA,OAAO,EAAEC,kBAAkB,EAAEC,aAAa,EAAEC,QAAQ,QAAO,cAAc;AAEjF,MAAMC,aAAa,GACd,iFAAgF,GACjFD,QAAQ,CAACE,MAAM,CAAC;EAACC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAE,CAAC,CAAC,GACrE,sDAAsD,GACtD,+BAA+B;AAEnC,MAAMC,YAAY,GAAGN,aAAa,CAACO,uBAAuB,GACpDP,aAAa,CAACO,uBAAuB,GACrC,IAAIC,KAAK,CACP,CAAC,CAAC,EACF;EACIC,GAAG,GAAG;IACF,MAAM,IAAIC,KAAK,CAACR,aAAa,CAAC;EAClC;AACJ,CAAC,CACJ;AAEL,OAAO,MAAeS,kBAAkB,CAAC;EAMrCC,WAAW,GAAG;IAAA,kCAJK,iBAAiB;IAAA,6BACtB,KAAK;IAAA,8BACJ,MAAM;IAGjB,IAAI,CAACC,kBAAkB,EAAE;EAC7B;EAEQC,oBAAoB,CAACC,GAAW,EAAE;IACtCT,YAAY,CAACQ,oBAAoB,CAACC,GAAG,CAAC;EAC1C;EAEUC,aAAa,CAAIC,OAAe,EAAEC,IAAyB,EAAc;IAC/E,OAAOZ,YAAY,CAACa,YAAY,CAACF,OAAO,EAAEC,IAAI,CAAC;EACnD;EAEUE,OAAO,CAACH,OAAe,EAAEC,IAAyB,EAAE;IAC1D,IAAI,CAACF,aAAa,CAACC,OAAO,EAAEC,IAAI,CAAC,CAACG,KAAK,CAAEC,KAAU,IAAK;MACpDC,OAAO,CAACC,GAAG,CAACF,KAAK,CAAC;IACtB,CAAC,CAAC;EACN;;EAEA;EACUG,WAAW,CAACC,QAAgB,EAAEC,QAAa,EAAE,CAEvD;EAEQd,kBAAkB,GAAG;IACzB,MAAMe,YAAY,GAAG,IAAI7B,kBAAkB,CAACO,YAAY,CAAC;IACzDsB,YAAY,CAACC,WAAW,CAAC,IAAI,CAACC,QAAQ,EAAGC,KAAK,IAAK;MAC/C,IAAI,CAACN,WAAW,CAACM,KAAK,CAAC,IAAI,CAACC,GAAG,CAAC,EAAED,KAAK,CAAC,IAAI,CAACE,IAAI,CAAC,CAAC;IACvD,CAAC,CAAC;EACN;EAEUC,mBAAmB,GAAG;IAC5BpC,OAAO,CAACqC,aAAa,EAAE,CAACC,IAAI,
|
|
1
|
+
{"version":3,"names":["Linking","NativeEventEmitter","NativeModules","Platform","LINKING_ERROR","select","ios","default","AffiseNative","AffiseAttributionNative","Proxy","get","Error","NativeBasePlatform","constructor","nativeEventEmitter","nativeHandleDeeplink","url","apiCallResult","apiName","data","invokeMethod","apiCall","catch","error","console","log","apiCallback","_apiName","_apiData","eventEmitter","addListener","CALLBACK","event","API","DATA","reactHandleDeeplink","getInitialURL","then","reactDeeplinkCallback","addEventListener","evt","trim","length"],"sourceRoot":"../../src","sources":["NativeBasePlatform.ts"],"mappings":";;;AAAA,SAAQA,OAAO,EAAEC,kBAAkB,EAAEC,aAAa,E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AAK,CAAC,IAAI,CAACE,IAAI,CAAC,CAAC;IACvD,CAAC,CAAC;EACN;EAEUC,mBAAmB,GAAG;IAC5BpC,OAAO,CAACqC,aAAa,EAAE,CAACC,IAAI,CAAErB,GAAG,IAAK;MAClC,IAAI,CAACsB,qBAAqB,CAACtB,GAAG,CAAC;IACnC,CAAC,CAAC;IACFjB,OAAO,CAACwC,gBAAgB,CAAC,KAAK,EAAGC,GAAG,IAAK,IAAI,CAACF,qBAAqB,CAACE,GAAG,CAACxB,GAAG,CAAC,CAAC;EACjF;EAEQsB,qBAAqB,CAACtB,GAAkB,EAAE;IAC9C,IAAIA,GAAG,IAAI,IAAI,IAAIA,GAAG,CAACyB,IAAI,EAAE,CAACC,MAAM,GAAG,CAAC,EAAE;MACtC,IAAI,CAAC3B,oBAAoB,CAACC,GAAG,CAAC;IAClC;EACJ;AACJ"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { AffiseKeyValue } from "../../module/AffiseKeyValue";
|
|
2
|
+
import { tryCast } from "../../utils/TryCast";
|
|
3
|
+
import { DeeplinkValue } from "../../deeplink/DeeplinkValue";
|
|
4
|
+
export class DataMapper {
|
|
5
|
+
static toNonNullString(from) {
|
|
6
|
+
return from || "";
|
|
7
|
+
}
|
|
8
|
+
static toAffiseKeyValueList(from) {
|
|
9
|
+
const data = tryCast(from) || [];
|
|
10
|
+
const result = [];
|
|
11
|
+
for (const item of data) {
|
|
12
|
+
const cast = item;
|
|
13
|
+
const key = cast["key"];
|
|
14
|
+
const value = cast["value"];
|
|
15
|
+
if (!(key && value)) continue;
|
|
16
|
+
result.push(new AffiseKeyValue(key, value));
|
|
17
|
+
}
|
|
18
|
+
return result;
|
|
19
|
+
}
|
|
20
|
+
static toDeeplinkValue(from) {
|
|
21
|
+
const data = tryCast(from) || {};
|
|
22
|
+
const parameters = tryCast(data["parameters"]) || {};
|
|
23
|
+
return new DeeplinkValue(data["deeplink"], data["scheme"], data["host"], data["path"], parameters);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=DataMapper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["AffiseKeyValue","tryCast","DeeplinkValue","DataMapper","toNonNullString","from","toAffiseKeyValueList","data","result","item","cast","key","value","push","toDeeplinkValue","parameters"],"sourceRoot":"../../src","sources":["DataMapper.ts"],"mappings":"AAAA,SAAQA,cAAc,QAAO,6BAA6B;AAC1D,SAAQC,OAAO,QAAO,qBAAqB;AAC3C,SAAQC,aAAa,QAAO,8BAA8B;AAE1D,OAAO,MAAMC,UAAU,CAAC;EACpB,OAAOC,eAAe,CAACC,IAAS,EAAU;IACtC,OAAOA,IAAI,IAAc,EAAE;EAC/B;EAEA,OAAOC,oBAAoB,CAACD,IAAS,EAAoB;IACrD,MAAME,IAAI,GAAGN,OAAO,CAAaI,IAAI,CAAC,IAAI,EAAE;IAC5C,MAAMG,MAAwB,GAAG,EAAE;IACnC,KAAK,MAAMC,IAAI,IAAIF,IAAI,EAAE;MACrB,MAAMG,IAA4B,GAAGD,IAA8B;MACnE,MAAME,GAAG,GAAGD,IAAI,CAAC,KAAK,CAAC;MACvB,MAAME,KAAK,GAAGF,IAAI,CAAC,OAAO,CAAC;MAE3B,IAAI,EAAEC,GAAG,IAAIC,KAAK,CAAC,EAAE;MAErBJ,MAAM,CAACK,IAAI,CAAC,IAAIb,cAAc,CAACW,GAAG,EAAEC,KAAK,CAAC,CAAC;IAC/C;IAEA,OAAOJ,MAAM;EACjB;EAEA,OAAOM,eAAe,CAACT,IAAS,EAAiB;IAC7C,MAAME,IAAI,GAAGN,OAAO,CAAsBI,IAAI,CAAC,IAAI,CAAC,CAAC;IACrD,MAAMU,UAAU,GAAGd,OAAO,CAA2BM,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,CAAC;IAC9E,OAAO,IAAIL,aAAa,CACpBK,IAAI,CAAC,UAAU,CAAC,EAChBA,IAAI,CAAC,QAAQ,CAAC,EACdA,IAAI,CAAC,MAAM,CAAC,EACZA,IAAI,CAAC,MAAM,CAAC,EACZQ,UAAU,CACb;EACL;AACJ"}
|
|
@@ -7,8 +7,8 @@ export class DebugUtils {
|
|
|
7
7
|
static getValidationStatus(data) {
|
|
8
8
|
return validationStatusFrom(data || "") || ValidationStatus.UNKNOWN_ERROR;
|
|
9
9
|
}
|
|
10
|
-
static
|
|
11
|
-
const json = tryCast(
|
|
10
|
+
static toResponse(from) {
|
|
11
|
+
const json = tryCast(from) || {};
|
|
12
12
|
const resCode = json["code"] || 0;
|
|
13
13
|
const resMessage = json["message"] || "";
|
|
14
14
|
const resBody = json["body"];
|
|
@@ -18,8 +18,8 @@ export class DebugUtils {
|
|
|
18
18
|
body: resBody
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
|
-
static
|
|
22
|
-
const json = tryCast(
|
|
21
|
+
static toRequest(from) {
|
|
22
|
+
const json = tryCast(from) || {};
|
|
23
23
|
const reqUrl = json["url"] || "";
|
|
24
24
|
const reqMethod = json["method"] || "";
|
|
25
25
|
const reqBody = json["body"];
|
|
@@ -31,13 +31,15 @@ export class DebugUtils {
|
|
|
31
31
|
body: reqBody
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
|
-
static
|
|
35
|
-
const json = tryCast(
|
|
36
|
-
const
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
34
|
+
static toResponseWithKey(from, key) {
|
|
35
|
+
const json = tryCast(from) || {};
|
|
36
|
+
const response = json[key];
|
|
37
|
+
return this.toResponse(response);
|
|
38
|
+
}
|
|
39
|
+
static toRequestWithKey(from, key) {
|
|
40
|
+
const json = tryCast(from) || {};
|
|
41
|
+
const request = json[key];
|
|
42
|
+
return this.toRequest(request);
|
|
41
43
|
}
|
|
42
44
|
}
|
|
43
45
|
//# sourceMappingURL=DebugUtils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ValidationStatus","validationStatusFrom","HttpRequest","HttpResponse","tryCast","HttpMethod","httpMethodFrom","DebugUtils","getValidationStatus","data","UNKNOWN_ERROR","
|
|
1
|
+
{"version":3,"names":["ValidationStatus","validationStatusFrom","HttpRequest","HttpResponse","tryCast","HttpMethod","httpMethodFrom","DebugUtils","getValidationStatus","data","UNKNOWN_ERROR","toResponse","from","json","resCode","resMessage","resBody","code","message","body","toRequest","reqUrl","reqMethod","reqBody","reqHeaders","url","method","POST","headers","toResponseWithKey","key","response","toRequestWithKey","request"],"sourceRoot":"../../src","sources":["DebugUtils.ts"],"mappings":"AAAA,SAAQA,gBAAgB,EAAEC,oBAAoB,QAAO,uCAAuC;AAC5F,SAAQC,WAAW,QAAO,2BAA2B;AACrD,SAAQC,YAAY,QAAO,4BAA4B;AACvD,SAAQC,OAAO,QAAO,qBAAqB;AAC3C,SAAQC,UAAU,EAAEC,cAAc,QAAO,0BAA0B;AAEnE,OAAO,MAAMC,UAAU,CAAC;EAEpB,OAAOC,mBAAmB,CAACC,IAAS,EAAoB;IACpD,OAAOR,oBAAoB,CAACQ,IAAI,IAAc,EAAE,CAAC,IAAIT,gBAAgB,CAACU,aAAa;EACvF;EAEA,OAAOC,UAAU,CAACC,IAAS,EAAgB;IACvC,MAAMC,IAAI,GAAGT,OAAO,CAAsBQ,IAAI,CAAC,IAAI,CAAC,CAAC;IACrD,MAAME,OAAO,GAAGD,IAAI,CAAC,MAAM,CAAC,IAAc,CAAC;IAC3C,MAAME,UAAU,GAAGF,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE;IACxC,MAAMG,OAAO,GAAGH,IAAI,CAAC,MAAM,CAAC;IAE5B,OAAO,IAAIV,YAAY,CAAC;MACpBc,IAAI,EAAEH,OAAO;MACbI,OAAO,EAAEH,UAAU;MACnBI,IAAI,EAAEH;IACV,CAAC,CAAC;EACN;EAEA,OAAOI,SAAS,CAACR,IAAS,EAAe;IACrC,MAAMC,IAAI,GAAGT,OAAO,CAAsBQ,IAAI,CAAC,IAAI,CAAC,CAAC;IACrD,MAAMS,MAAM,GAAGR,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE;IAChC,MAAMS,SAAS,GAAGT,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE;IACtC,MAAMU,OAAO,GAAGV,IAAI,CAAC,MAAM,CAAC;IAC5B,MAAMW,UAAU,GAAGpB,OAAO,CAAyBS,IAAI,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,CAAC;IAEzE,OAAO,IAAIX,WAAW,CAAC;MACnBuB,GAAG,EAAEJ,MAAM;MACXK,MAAM,EAAEpB,cAAc,CAACgB,SAAS,CAAC,IAAIjB,UAAU,CAACsB,IAAI;MACpDC,OAAO,EAAEJ,UAAU;MACnBL,IAAI,EAAEI;IACV,CAAC,CAAC;EACN;EAEA,OAAOM,iBAAiB,CAACjB,IAAS,EAAEkB,GAAW,EAAgB;IAC3D,MAAMjB,IAAI,GAAGT,OAAO,CAAsBQ,IAAI,CAAC,IAAI,CAAC,CAAC;IACrD,MAAMmB,QAAQ,GAAGlB,IAAI,CAACiB,GAAG,CAAC;IAC1B,OAAO,IAAI,CAACnB,UAAU,CAACoB,QAAQ,CAAC;EACpC;EAEA,OAAOC,gBAAgB,CAACpB,IAAS,EAAEkB,GAAW,EAAe;IACzD,MAAMjB,IAAI,GAAGT,OAAO,CAAsBQ,IAAI,CAAC,IAAI,CAAC,CAAC;IACrD,MAAMqB,OAAO,GAAGpB,IAAI,CAACiB,GAAG,CAAC;IACzB,OAAO,IAAI,CAACV,SAAS,CAACa,OAAO,CAAC;EAClC;AACJ"}
|
|
@@ -2,7 +2,8 @@ export * from './AffiseInitProperties';
|
|
|
2
2
|
export * from './events/AutoCatchingType';
|
|
3
3
|
export * from './events/TouchType';
|
|
4
4
|
export * from './callback/ErrorCallback';
|
|
5
|
-
export * from './
|
|
5
|
+
export * from './deeplink/OnDeeplinkCallback';
|
|
6
|
+
export * from './deeplink/DeeplinkValue';
|
|
6
7
|
export * from './debug/network/DebugOnNetworkCallback';
|
|
7
8
|
export * from './debug/validate/DebugOnValidateCallback';
|
|
8
9
|
export * from './debug/validate/ValidationStatus';
|
|
@@ -17,9 +18,12 @@ export * from './skad/CoarseValue';
|
|
|
17
18
|
export * from './module/AffiseModules';
|
|
18
19
|
export * from './module/AffiseKeyValue';
|
|
19
20
|
export * from './module/OnKeyValueCallback';
|
|
21
|
+
export * from './module/link/AffiseLinkCallback';
|
|
20
22
|
export * from './ad/AffiseAdRevenue';
|
|
21
23
|
export * from './ad/AffiseAdSource';
|
|
22
24
|
export * from './parameters/ProviderType';
|
|
25
|
+
export * from './events/OnSendSuccessCallback';
|
|
26
|
+
export * from './events/OnSendFailedCallback';
|
|
23
27
|
export * from './events/parameters/PredefinedListObject';
|
|
24
28
|
export * from './events/parameters/PredefinedFloat';
|
|
25
29
|
export * from "./events/parameters/PredefinedListString";
|
|
@@ -28,7 +32,11 @@ export * from './events/parameters/PredefinedObject';
|
|
|
28
32
|
export * from './events/parameters/PredefinedString';
|
|
29
33
|
export * from './events/parameters/PredefinedGroup';
|
|
30
34
|
export * from './events/base/AffiseEvent';
|
|
35
|
+
export * from './events/base/AffiseEventProps';
|
|
36
|
+
export * from './events/base/AffiseCustomEventProps';
|
|
31
37
|
export * from './events/subscription/BaseSubscriptionEvent';
|
|
38
|
+
export * from './events/subscription/AffiseSubscriptionEventProps';
|
|
39
|
+
export * from './events/subscription/AffiseCustomSubscriptionEventProps';
|
|
32
40
|
export * from './events/custom/UserCustomEvent';
|
|
33
41
|
export * from './events/custom/UserCustomSubscriptionEvent';
|
|
34
42
|
export * from './events/predefined/ClickAdvEvent';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Export.d.ts","sourceRoot":"","sources":["../../src/Export.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;AAEnC,cAAc,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"Export.d.ts","sourceRoot":"","sources":["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AAuC,CAAC;AACtD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,qCAAqC,CAAC;AACpD,cAAc,wCAAwC,CAAC;AACvD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,oCAAoC,CAAC;AACnD,cAAc,wCAAwC,CAAC;AACvD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,sCAAsC,CAAC;AACrD,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC;AACjD,cAAc,mCAAmC,CAAC;AAClD,cAAc,sCAAsC,CAAC;AACrD,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,yCAAyC,CAAC;AACxD,cAAc,yCAAyC,CAAC;AACxD,cAAc,wCAAwC,CAAC;AACvD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,iDAAiD,CAAC;AAChE,cAAc,iDAAiD,CAAC;AAChE,cAAc,wDAAwD,CAAC;AACvE,cAAc,yCAAyC,CAAC;AACxD,cAAc,yCAAyC,CAAC;AACxD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,oDAAoD,CAAC;AACnE,cAAc,gDAAgD,CAAC;AAC/D,cAAc,oDAAoD,CAAC;AACnE,cAAc,oDAAoD,CAAC;AACnE,cAAc,yDAAyD,CAAC;AACxE,cAAc,2CAA2C,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare class DeeplinkValue {
|
|
2
|
+
readonly deeplink: string;
|
|
3
|
+
readonly scheme?: string;
|
|
4
|
+
readonly host?: string;
|
|
5
|
+
readonly path?: string;
|
|
6
|
+
readonly parameters: Record<string, string[]>;
|
|
7
|
+
constructor(deeplink: string, scheme?: string, host?: string, path?: string, parameters?: Record<string, string[]>);
|
|
8
|
+
toString(): string;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=DeeplinkValue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeeplinkValue.d.ts","sourceRoot":"","sources":["../../../src/deeplink/DeeplinkValue.ts"],"names":[],"mappings":"AAAA,qBAAa,aAAa;IACtB,SAAgB,QAAQ,EAAE,MAAM,CAAC;IACjC,SAAgB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChC,SAAgB,IAAI,CAAC,EAAE,MAAM,CAAC;IAC9B,SAAgB,IAAI,CAAC,EAAE,MAAM,CAAC;IAC9B,SAAgB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAM;gBAGtD,QAAQ,EAAE,MAAM,EAChB,MAAM,CAAC,EAAE,MAAM,EACf,IAAI,CAAC,EAAE,MAAM,EACb,IAAI,CAAC,EAAE,MAAM,EACb,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC;IASzC,QAAQ,IAAI,MAAM;CAIrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OnDeeplinkCallback.d.ts","sourceRoot":"","sources":["../../../src/deeplink/OnDeeplinkCallback.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAEnD,MAAM,MAAM,kBAAkB,GAAG,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AffiseCustomEventProps.d.ts","sourceRoot":"","sources":["../../../../src/events/base/AffiseCustomEventProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AAEzD,MAAM,WAAW,sBAAuB,SAAQ,gBAAgB;IAC5D,SAAS,EAAE,MAAM,CAAA;CACpB"}
|
|
@@ -35,7 +35,7 @@ export declare class AffiseEvent implements PredefinedParameter {
|
|
|
35
35
|
* Event predefined parameters
|
|
36
36
|
*/
|
|
37
37
|
protected predefinedParameters: Record<string, unknown>;
|
|
38
|
-
constructor(name: string, userData?: string);
|
|
38
|
+
constructor(name: string, userData?: string | null);
|
|
39
39
|
/**
|
|
40
40
|
* Add predefined [parameter] with [value] of number to event
|
|
41
41
|
*/
|