@ua/react-native-airship 21.1.0 → 22.0.0
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/android/build.gradle +22 -28
- package/android/{src/oldarch/java/com/facebook/react/viewmanagers/RTNAirshipEmbeddedViewManagerDelegate.java → generated/java/com/facebook/react/viewmanagers/RNAirshipEmbeddedViewManagerDelegate.java} +4 -3
- package/android/generated/java/com/facebook/react/viewmanagers/RNAirshipEmbeddedViewManagerInterface.java +18 -0
- package/android/{src/oldarch/java/com/facebook/react/viewmanagers/RTNAirshipMessageViewManagerDelegate.java → generated/java/com/facebook/react/viewmanagers/RNAirshipMessageViewManagerDelegate.java} +4 -3
- package/android/generated/java/com/facebook/react/viewmanagers/RNAirshipMessageViewManagerInterface.java +18 -0
- package/android/generated/java/com/urbanairship/reactnative/NativeRNAirshipSpec.java +409 -0
- package/android/generated/jni/CMakeLists.txt +36 -0
- package/android/generated/jni/RNAirshipSpec-generated.cpp +584 -0
- package/android/generated/jni/RNAirshipSpec.h +31 -0
- package/android/generated/jni/react/renderer/components/RNAirshipSpec/ComponentDescriptors.cpp +23 -0
- package/android/generated/jni/react/renderer/components/RNAirshipSpec/ComponentDescriptors.h +25 -0
- package/android/generated/jni/react/renderer/components/RNAirshipSpec/EventEmitters.cpp +54 -0
- package/android/generated/jni/react/renderer/components/RNAirshipSpec/EventEmitters.h +52 -0
- package/android/generated/jni/react/renderer/components/RNAirshipSpec/Props.cpp +32 -0
- package/android/generated/jni/react/renderer/components/RNAirshipSpec/Props.h +37 -0
- package/android/generated/jni/react/renderer/components/RNAirshipSpec/RNAirshipSpecJSI-generated.cpp +659 -0
- package/android/generated/jni/react/renderer/components/RNAirshipSpec/RNAirshipSpecJSI.h +899 -0
- package/android/generated/jni/react/renderer/components/RNAirshipSpec/ShadowNodes.cpp +18 -0
- package/android/generated/jni/react/renderer/components/RNAirshipSpec/ShadowNodes.h +43 -0
- package/android/generated/jni/react/renderer/components/RNAirshipSpec/States.cpp +16 -0
- package/android/generated/jni/react/renderer/components/RNAirshipSpec/States.h +41 -0
- package/android/gradle.properties +1 -1
- package/android/src/main/java/com/urbanairship/reactnative/AirshipModule.kt +1 -1
- package/android/src/main/java/com/urbanairship/reactnative/ReactEmbeddedViewManager.kt +19 -10
- package/android/src/main/java/com/urbanairship/reactnative/ReactMessageViewManager.kt +19 -7
- package/android/src/newarch/java/com/urbanairship/reactnative/AirshipSpec.kt +1 -1
- package/android/src/oldarch/java/com/facebook/react/viewmanagers/{RTNAirshipEmbeddedViewManagerInterface.java → RNAirshipEmbeddedViewManagerInterface.java} +1 -1
- package/android/src/oldarch/java/com/facebook/react/viewmanagers/{RTNAirshipMessageViewManagerInterface.java → RNAirshipMessageViewManagerInterface.java} +1 -1
- package/ios/AirshipEmbeddedViewWrapper.swift +1 -1
- package/ios/AirshipReactNative.swift +1 -1
- package/ios/MessageWebViewWrapper.swift +2 -2
- package/ios/{RTNAirship.h → RNAirship.h} +3 -3
- package/ios/{RTNAirship.mm → RNAirship.mm} +27 -26
- package/ios/{RTNAirshipBootloader.h → RNAirshipBootloader.h} +1 -1
- package/ios/{RTNAirshipBootloader.m → RNAirshipBootloader.m} +2 -2
- package/ios/{RTNAirshipEmbeddedView.h → RNAirshipEmbeddedView.h} +7 -2
- package/ios/{RTNAirshipEmbeddedView.mm → RNAirshipEmbeddedView.mm} +28 -33
- package/ios/{RTNAirshipMessageViewManager.h → RNAirshipEmbeddedViewManager.h} +1 -1
- package/ios/RNAirshipEmbeddedViewViewManager.mm +17 -0
- package/ios/{RTNAirshipMessageView.h → RNAirshipMessageView.h} +9 -2
- package/ios/{RTNAirshipMessageView.mm → RNAirshipMessageView.mm} +54 -51
- package/ios/{RTNAirshipEmbeddedViewManager.h → RNAirshipMessageViewManager.h} +1 -1
- package/ios/RNAirshipMessageViewManager.mm +23 -0
- package/ios/generated/RNAirshipSpec/ComponentDescriptors.cpp +23 -0
- package/ios/generated/RNAirshipSpec/ComponentDescriptors.h +25 -0
- package/ios/generated/RNAirshipSpec/EventEmitters.cpp +54 -0
- package/ios/generated/RNAirshipSpec/EventEmitters.h +52 -0
- package/ios/generated/RNAirshipSpec/Props.cpp +32 -0
- package/ios/generated/RNAirshipSpec/Props.h +37 -0
- package/ios/generated/RNAirshipSpec/RCTComponentViewHelpers.h +24 -0
- package/ios/generated/RNAirshipSpec/RNAirshipSpec-generated.mm +683 -0
- package/ios/generated/RNAirshipSpec/RNAirshipSpec.h +291 -0
- package/ios/generated/RNAirshipSpec/ShadowNodes.cpp +18 -0
- package/ios/generated/RNAirshipSpec/ShadowNodes.h +43 -0
- package/ios/generated/RNAirshipSpec/States.cpp +16 -0
- package/ios/generated/RNAirshipSpec/States.h +41 -0
- package/ios/generated/RNAirshipSpecJSI-generated.cpp +659 -0
- package/ios/generated/RNAirshipSpecJSI.h +899 -0
- package/lib/commonjs/AirshipActions.js.map +1 -1
- package/lib/commonjs/AirshipAnalytics.js.map +1 -1
- package/lib/commonjs/AirshipChannel.js +4 -4
- package/lib/commonjs/AirshipChannel.js.map +1 -1
- package/lib/commonjs/AirshipContact.js +3 -3
- package/lib/commonjs/AirshipContact.js.map +1 -1
- package/lib/commonjs/AirshipEmbeddedView.js +6 -3
- package/lib/commonjs/AirshipEmbeddedView.js.map +1 -1
- package/lib/commonjs/AirshipFeatureFlagManager.js.map +1 -1
- package/lib/commonjs/AirshipInApp.js +5 -9
- package/lib/commonjs/AirshipInApp.js.map +1 -1
- package/lib/commonjs/AirshipLiveActivityManager.js.map +1 -1
- package/lib/commonjs/AirshipLiveUpdateManager.js.map +1 -1
- package/lib/commonjs/AirshipLocale.js.map +1 -1
- package/lib/commonjs/AirshipMessageCenter.js.map +1 -1
- package/lib/commonjs/AirshipPreferenceCenter.js.map +1 -1
- package/lib/commonjs/AirshipPrivacyManager.js +1 -1
- package/lib/commonjs/AirshipPrivacyManager.js.map +1 -1
- package/lib/commonjs/AirshipPush.js.map +1 -1
- package/lib/commonjs/AirshipRoot.js +14 -14
- package/lib/commonjs/AirshipRoot.js.map +1 -1
- package/lib/commonjs/AttributeEditor.js.map +1 -1
- package/lib/commonjs/MessageView.js +15 -5
- package/lib/commonjs/MessageView.js.map +1 -1
- package/lib/commonjs/{NativeRTNAirship.js → NativeRNAirship.js} +2 -2
- package/lib/commonjs/NativeRNAirship.js.map +1 -0
- package/lib/commonjs/{MessageViewNativeComponent.js → RNAirshipEmbeddedViewNativeComponent.js} +3 -3
- package/lib/commonjs/RNAirshipEmbeddedViewNativeComponent.js.map +1 -0
- package/lib/commonjs/{AirshipEmbeddedViewNativeComponent.js → RNAirshipMessageViewNativeComponent.js} +3 -3
- package/lib/commonjs/RNAirshipMessageViewNativeComponent.js.map +1 -0
- package/lib/commonjs/ScopedSubscriptionListEditor.js.map +1 -1
- package/lib/commonjs/SubscriptionListEditor.js.map +1 -1
- package/lib/commonjs/TagEditor.js.map +1 -1
- package/lib/commonjs/TagGroupEditor.js.map +1 -1
- package/lib/commonjs/UAEventEmitter.js +1 -2
- package/lib/commonjs/UAEventEmitter.js.map +1 -1
- package/lib/commonjs/index.js +22 -22
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/types.js +95 -2
- package/lib/commonjs/types.js.map +1 -1
- package/lib/module/AirshipActions.js +2 -0
- package/lib/module/AirshipActions.js.map +1 -1
- package/lib/module/AirshipAnalytics.js +2 -0
- package/lib/module/AirshipAnalytics.js.map +1 -1
- package/lib/module/AirshipChannel.js +6 -4
- package/lib/module/AirshipChannel.js.map +1 -1
- package/lib/module/AirshipContact.js +5 -3
- package/lib/module/AirshipContact.js.map +1 -1
- package/lib/module/AirshipEmbeddedView.js +5 -3
- package/lib/module/AirshipEmbeddedView.js.map +1 -1
- package/lib/module/AirshipFeatureFlagManager.js +2 -0
- package/lib/module/AirshipFeatureFlagManager.js.map +1 -1
- package/lib/module/AirshipInApp.js +7 -9
- package/lib/module/AirshipInApp.js.map +1 -1
- package/lib/module/AirshipLiveActivityManager.js +2 -0
- package/lib/module/AirshipLiveActivityManager.js.map +1 -1
- package/lib/module/AirshipLiveUpdateManager.js +2 -0
- package/lib/module/AirshipLiveUpdateManager.js.map +1 -1
- package/lib/module/AirshipLocale.js +2 -0
- package/lib/module/AirshipLocale.js.map +1 -1
- package/lib/module/AirshipMessageCenter.js +2 -0
- package/lib/module/AirshipMessageCenter.js.map +1 -1
- package/lib/module/AirshipPreferenceCenter.js +2 -0
- package/lib/module/AirshipPreferenceCenter.js.map +1 -1
- package/lib/module/AirshipPrivacyManager.js +3 -1
- package/lib/module/AirshipPrivacyManager.js.map +1 -1
- package/lib/module/AirshipPush.js +2 -0
- package/lib/module/AirshipPush.js.map +1 -1
- package/lib/module/AirshipRoot.js +16 -14
- package/lib/module/AirshipRoot.js.map +1 -1
- package/lib/module/AttributeEditor.js.map +1 -1
- package/lib/module/MessageView.js +14 -4
- package/lib/module/MessageView.js.map +1 -1
- package/lib/module/NativeRNAirship.js +5 -0
- package/lib/module/NativeRNAirship.js.map +1 -0
- package/lib/module/RNAirshipEmbeddedViewNativeComponent.js +6 -0
- package/lib/module/RNAirshipEmbeddedViewNativeComponent.js.map +1 -0
- package/lib/module/RNAirshipMessageViewNativeComponent.js +6 -0
- package/lib/module/RNAirshipMessageViewNativeComponent.js.map +1 -0
- package/lib/module/ScopedSubscriptionListEditor.js.map +1 -1
- package/lib/module/SubscriptionListEditor.js.map +1 -1
- package/lib/module/TagEditor.js.map +1 -1
- package/lib/module/TagGroupEditor.js.map +1 -1
- package/lib/module/UAEventEmitter.js +3 -2
- package/lib/module/UAEventEmitter.js.map +1 -1
- package/lib/module/index.js +25 -23
- package/lib/module/index.js.map +1 -1
- package/lib/module/types.js +97 -2
- package/lib/module/types.js.map +1 -1
- package/lib/typescript/commonjs/package.json +1 -0
- package/lib/typescript/commonjs/src/AirshipActions.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/AirshipAnalytics.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/AirshipChannel.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/AirshipContact.d.ts.map +1 -0
- package/lib/typescript/{AirshipEmbeddedView.d.ts → commonjs/src/AirshipEmbeddedView.d.ts} +3 -1
- package/lib/typescript/commonjs/src/AirshipEmbeddedView.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/AirshipFeatureFlagManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/AirshipInApp.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/AirshipLiveActivityManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/AirshipLiveUpdateManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/AirshipLocale.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/AirshipMessageCenter.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/AirshipPreferenceCenter.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/AirshipPrivacyManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/AirshipPush.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/AirshipRoot.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/AttributeEditor.d.ts.map +1 -0
- package/lib/typescript/{MessageView.d.ts → commonjs/src/MessageView.d.ts} +7 -6
- package/lib/typescript/commonjs/src/MessageView.d.ts.map +1 -0
- package/lib/typescript/{NativeRTNAirship.d.ts → commonjs/src/NativeRNAirship.d.ts} +2 -2
- package/lib/typescript/commonjs/src/NativeRNAirship.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/RNAirshipEmbeddedViewNativeComponent.d.ts +7 -0
- package/lib/typescript/commonjs/src/RNAirshipEmbeddedViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/{MessageViewNativeComponent.d.ts → commonjs/src/RNAirshipMessageViewNativeComponent.d.ts} +3 -5
- package/lib/typescript/commonjs/src/RNAirshipMessageViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ScopedSubscriptionListEditor.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/SubscriptionListEditor.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/TagEditor.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/TagGroupEditor.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/UAEventEmitter.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
- package/lib/typescript/{types.d.ts → commonjs/src/types.d.ts} +2 -2
- package/lib/typescript/commonjs/src/types.d.ts.map +1 -0
- package/lib/typescript/module/package.json +1 -0
- package/lib/typescript/module/src/AirshipActions.d.ts +18 -0
- package/lib/typescript/module/src/AirshipActions.d.ts.map +1 -0
- package/lib/typescript/module/src/AirshipAnalytics.d.ts +35 -0
- package/lib/typescript/module/src/AirshipAnalytics.d.ts.map +1 -0
- package/lib/typescript/module/src/AirshipChannel.d.ts +69 -0
- package/lib/typescript/module/src/AirshipChannel.d.ts.map +1 -0
- package/lib/typescript/module/src/AirshipContact.d.ts +53 -0
- package/lib/typescript/module/src/AirshipContact.d.ts.map +1 -0
- package/lib/typescript/module/src/AirshipEmbeddedView.d.ts +19 -0
- package/lib/typescript/module/src/AirshipEmbeddedView.d.ts.map +1 -0
- package/lib/typescript/module/src/AirshipFeatureFlagManager.d.ts +51 -0
- package/lib/typescript/module/src/AirshipFeatureFlagManager.d.ts.map +1 -0
- package/lib/typescript/module/src/AirshipInApp.d.ts +47 -0
- package/lib/typescript/module/src/AirshipInApp.d.ts.map +1 -0
- package/lib/typescript/module/src/AirshipLiveActivityManager.d.ts +39 -0
- package/lib/typescript/module/src/AirshipLiveActivityManager.d.ts.map +1 -0
- package/lib/typescript/module/src/AirshipLiveUpdateManager.d.ts +43 -0
- package/lib/typescript/module/src/AirshipLiveUpdateManager.d.ts.map +1 -0
- package/lib/typescript/module/src/AirshipLocale.d.ts +24 -0
- package/lib/typescript/module/src/AirshipLocale.d.ts.map +1 -0
- package/lib/typescript/module/src/AirshipMessageCenter.d.ts +74 -0
- package/lib/typescript/module/src/AirshipMessageCenter.d.ts.map +1 -0
- package/lib/typescript/module/src/AirshipPreferenceCenter.d.ts +32 -0
- package/lib/typescript/module/src/AirshipPreferenceCenter.d.ts.map +1 -0
- package/lib/typescript/module/src/AirshipPrivacyManager.d.ts +38 -0
- package/lib/typescript/module/src/AirshipPrivacyManager.d.ts.map +1 -0
- package/lib/typescript/module/src/AirshipPush.d.ts +161 -0
- package/lib/typescript/module/src/AirshipPush.d.ts.map +1 -0
- package/lib/typescript/module/src/AirshipRoot.d.ts +84 -0
- package/lib/typescript/module/src/AirshipRoot.d.ts.map +1 -0
- package/lib/typescript/module/src/AttributeEditor.d.ts +55 -0
- package/lib/typescript/module/src/AttributeEditor.d.ts.map +1 -0
- package/lib/typescript/module/src/MessageView.d.ts +108 -0
- package/lib/typescript/module/src/MessageView.d.ts.map +1 -0
- package/lib/typescript/module/src/NativeRNAirship.d.ts +99 -0
- package/lib/typescript/module/src/NativeRNAirship.d.ts.map +1 -0
- package/lib/typescript/module/src/RNAirshipEmbeddedViewNativeComponent.d.ts +7 -0
- package/lib/typescript/module/src/RNAirshipEmbeddedViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/src/RNAirshipMessageViewNativeComponent.d.ts +26 -0
- package/lib/typescript/module/src/RNAirshipMessageViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/src/ScopedSubscriptionListEditor.d.ts +60 -0
- package/lib/typescript/module/src/ScopedSubscriptionListEditor.d.ts.map +1 -0
- package/lib/typescript/module/src/SubscriptionListEditor.d.ts +51 -0
- package/lib/typescript/module/src/SubscriptionListEditor.d.ts.map +1 -0
- package/lib/typescript/module/src/TagEditor.d.ts +47 -0
- package/lib/typescript/module/src/TagEditor.d.ts.map +1 -0
- package/lib/typescript/module/src/TagGroupEditor.d.ts +61 -0
- package/lib/typescript/module/src/TagGroupEditor.d.ts.map +1 -0
- package/lib/typescript/module/src/UAEventEmitter.d.ts +27 -0
- package/lib/typescript/module/src/UAEventEmitter.d.ts.map +1 -0
- package/lib/typescript/module/src/index.d.ts +25 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -0
- package/lib/typescript/module/src/types.d.ts +938 -0
- package/lib/typescript/module/src/types.d.ts.map +1 -0
- package/package.json +79 -45
- package/react-native-airship.podspec +22 -4
- package/react-native.config.js +12 -0
- package/src/AirshipEmbeddedView.tsx +5 -2
- package/src/MessageView.tsx +9 -7
- package/src/{NativeRTNAirship.ts → NativeRNAirship.ts} +2 -2
- package/src/{AirshipEmbeddedViewNativeComponent.ts → RNAirshipEmbeddedViewNativeComponent.ts} +2 -2
- package/src/{MessageViewNativeComponent.ts → RNAirshipMessageViewNativeComponent.ts} +2 -2
- package/src/index.tsx +2 -2
- package/ios/RTNAirshipEmbeddedViewViewManager.mm +0 -17
- package/ios/RTNAirshipMessageViewManager.mm +0 -22
- package/lib/commonjs/AirshipEmbeddedViewNativeComponent.js.map +0 -1
- package/lib/commonjs/MessageViewNativeComponent.js.map +0 -1
- package/lib/commonjs/NativeRTNAirship.js.map +0 -1
- package/lib/module/AirshipEmbeddedViewNativeComponent.js +0 -4
- package/lib/module/AirshipEmbeddedViewNativeComponent.js.map +0 -1
- package/lib/module/MessageViewNativeComponent.js +0 -4
- package/lib/module/MessageViewNativeComponent.js.map +0 -1
- package/lib/module/NativeRTNAirship.js +0 -3
- package/lib/module/NativeRTNAirship.js.map +0 -1
- package/lib/typescript/AirshipActions.d.ts.map +0 -1
- package/lib/typescript/AirshipAnalytics.d.ts.map +0 -1
- package/lib/typescript/AirshipChannel.d.ts.map +0 -1
- package/lib/typescript/AirshipContact.d.ts.map +0 -1
- package/lib/typescript/AirshipEmbeddedView.d.ts.map +0 -1
- package/lib/typescript/AirshipEmbeddedViewNativeComponent.d.ts +0 -9
- package/lib/typescript/AirshipEmbeddedViewNativeComponent.d.ts.map +0 -1
- package/lib/typescript/AirshipFeatureFlagManager.d.ts.map +0 -1
- package/lib/typescript/AirshipInApp.d.ts.map +0 -1
- package/lib/typescript/AirshipLiveActivityManager.d.ts.map +0 -1
- package/lib/typescript/AirshipLiveUpdateManager.d.ts.map +0 -1
- package/lib/typescript/AirshipLocale.d.ts.map +0 -1
- package/lib/typescript/AirshipMessageCenter.d.ts.map +0 -1
- package/lib/typescript/AirshipPreferenceCenter.d.ts.map +0 -1
- package/lib/typescript/AirshipPrivacyManager.d.ts.map +0 -1
- package/lib/typescript/AirshipPush.d.ts.map +0 -1
- package/lib/typescript/AirshipRoot.d.ts.map +0 -1
- package/lib/typescript/AttributeEditor.d.ts.map +0 -1
- package/lib/typescript/MessageView.d.ts.map +0 -1
- package/lib/typescript/MessageViewNativeComponent.d.ts.map +0 -1
- package/lib/typescript/NativeRTNAirship.d.ts.map +0 -1
- package/lib/typescript/ScopedSubscriptionListEditor.d.ts.map +0 -1
- package/lib/typescript/SubscriptionListEditor.d.ts.map +0 -1
- package/lib/typescript/TagEditor.d.ts.map +0 -1
- package/lib/typescript/TagGroupEditor.d.ts.map +0 -1
- package/lib/typescript/UAEventEmitter.d.ts.map +0 -1
- package/lib/typescript/index.d.ts.map +0 -1
- package/lib/typescript/types.d.ts.map +0 -1
- /package/lib/typescript/{AirshipActions.d.ts → commonjs/src/AirshipActions.d.ts} +0 -0
- /package/lib/typescript/{AirshipAnalytics.d.ts → commonjs/src/AirshipAnalytics.d.ts} +0 -0
- /package/lib/typescript/{AirshipChannel.d.ts → commonjs/src/AirshipChannel.d.ts} +0 -0
- /package/lib/typescript/{AirshipContact.d.ts → commonjs/src/AirshipContact.d.ts} +0 -0
- /package/lib/typescript/{AirshipFeatureFlagManager.d.ts → commonjs/src/AirshipFeatureFlagManager.d.ts} +0 -0
- /package/lib/typescript/{AirshipInApp.d.ts → commonjs/src/AirshipInApp.d.ts} +0 -0
- /package/lib/typescript/{AirshipLiveActivityManager.d.ts → commonjs/src/AirshipLiveActivityManager.d.ts} +0 -0
- /package/lib/typescript/{AirshipLiveUpdateManager.d.ts → commonjs/src/AirshipLiveUpdateManager.d.ts} +0 -0
- /package/lib/typescript/{AirshipLocale.d.ts → commonjs/src/AirshipLocale.d.ts} +0 -0
- /package/lib/typescript/{AirshipMessageCenter.d.ts → commonjs/src/AirshipMessageCenter.d.ts} +0 -0
- /package/lib/typescript/{AirshipPreferenceCenter.d.ts → commonjs/src/AirshipPreferenceCenter.d.ts} +0 -0
- /package/lib/typescript/{AirshipPrivacyManager.d.ts → commonjs/src/AirshipPrivacyManager.d.ts} +0 -0
- /package/lib/typescript/{AirshipPush.d.ts → commonjs/src/AirshipPush.d.ts} +0 -0
- /package/lib/typescript/{AirshipRoot.d.ts → commonjs/src/AirshipRoot.d.ts} +0 -0
- /package/lib/typescript/{AttributeEditor.d.ts → commonjs/src/AttributeEditor.d.ts} +0 -0
- /package/lib/typescript/{ScopedSubscriptionListEditor.d.ts → commonjs/src/ScopedSubscriptionListEditor.d.ts} +0 -0
- /package/lib/typescript/{SubscriptionListEditor.d.ts → commonjs/src/SubscriptionListEditor.d.ts} +0 -0
- /package/lib/typescript/{TagEditor.d.ts → commonjs/src/TagEditor.d.ts} +0 -0
- /package/lib/typescript/{TagGroupEditor.d.ts → commonjs/src/TagGroupEditor.d.ts} +0 -0
- /package/lib/typescript/{UAEventEmitter.d.ts → commonjs/src/UAEventEmitter.d.ts} +0 -0
- /package/lib/typescript/{index.d.ts → commonjs/src/index.d.ts} +0 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { LiveUpdate, LiveUpdateListRequest, LiveUpdateStartRequest, LiveUpdateUpdateRequest, LiveUpdateEndRequest } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Live Update manager.
|
|
4
|
+
*/
|
|
5
|
+
export declare class AirshipLiveUpdateManager {
|
|
6
|
+
private readonly module;
|
|
7
|
+
constructor(module: any);
|
|
8
|
+
/**
|
|
9
|
+
* Lists any Live Updates for the request.
|
|
10
|
+
* @param request The request options.
|
|
11
|
+
* @returns A promise with the result.
|
|
12
|
+
*/
|
|
13
|
+
list(request: LiveUpdateListRequest): Promise<LiveUpdate[]>;
|
|
14
|
+
/**
|
|
15
|
+
* Lists all Live Updates.
|
|
16
|
+
* @returns A promise with the result.
|
|
17
|
+
*/
|
|
18
|
+
listAll(): Promise<LiveUpdate[]>;
|
|
19
|
+
/**
|
|
20
|
+
* Starts a Live Update.
|
|
21
|
+
* @param request The request options.
|
|
22
|
+
* @returns A promise with the result.
|
|
23
|
+
*/
|
|
24
|
+
start(request: LiveUpdateStartRequest): Promise<void>;
|
|
25
|
+
/**
|
|
26
|
+
* Updates a Live Update.
|
|
27
|
+
* @param request The request options.
|
|
28
|
+
* @returns A promise with the result.
|
|
29
|
+
*/
|
|
30
|
+
update(request: LiveUpdateUpdateRequest): Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
* Ends a Live Update.
|
|
33
|
+
* @param request The request options.
|
|
34
|
+
* @returns A promise with the result.
|
|
35
|
+
*/
|
|
36
|
+
end(request: LiveUpdateEndRequest): Promise<void>;
|
|
37
|
+
/**
|
|
38
|
+
* Clears all Live Updates.
|
|
39
|
+
* @returns A promise with the result.
|
|
40
|
+
*/
|
|
41
|
+
clearAll(): Promise<void>;
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=AirshipLiveUpdateManager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AirshipLiveUpdateManager.d.ts","sourceRoot":"","sources":["../../../../src/AirshipLiveUpdateManager.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,qBAAqB,EACrB,sBAAsB,EACtB,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,SAAS,CAAC;AAEjB;;GAEG;AACH,qBAAa,wBAAwB;IACvB,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,GAAG;IAExC;;;;OAIG;IACI,IAAI,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC;IAIlE;;;OAGG;IACI,OAAO,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;IAIvC;;;;OAIG;IACI,KAAK,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC;IAI5D;;;;OAIG;IACI,MAAM,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC;IAI9D;;;;OAIG;IACI,GAAG,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC;IAIxD;;;OAGG;IACI,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;CAGjC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Manages locale used by Airship messaging.
|
|
3
|
+
*/
|
|
4
|
+
export declare class AirshipLocale {
|
|
5
|
+
private readonly module;
|
|
6
|
+
constructor(module: any);
|
|
7
|
+
/**
|
|
8
|
+
* Sets the locale override.
|
|
9
|
+
* @param localeIdentifier The locale identifier.
|
|
10
|
+
* @returns A promise.
|
|
11
|
+
*/
|
|
12
|
+
setLocaleOverride(localeIdentifier: string): Promise<void>;
|
|
13
|
+
/**
|
|
14
|
+
* Clears the locale override.
|
|
15
|
+
* @returns A promise.
|
|
16
|
+
*/
|
|
17
|
+
clearLocaleOverride(): Promise<void>;
|
|
18
|
+
/**
|
|
19
|
+
* Gets the current locale.
|
|
20
|
+
* @returns A promise with the result.
|
|
21
|
+
*/
|
|
22
|
+
getLocale(): Promise<string>;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=AirshipLocale.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AirshipLocale.d.ts","sourceRoot":"","sources":["../../../../src/AirshipLocale.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,aAAa;IACZ,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,GAAG;IAExC;;;;OAIG;IACI,iBAAiB,CAAC,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIjE;;;OAGG;IACI,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC;IAI3C;;;OAGG;IACI,SAAS,IAAI,OAAO,CAAC,MAAM,CAAC;CAGpC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { InboxMessage } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Airship Message Center
|
|
4
|
+
*/
|
|
5
|
+
export declare class AirshipMessageCenter {
|
|
6
|
+
private readonly module;
|
|
7
|
+
constructor(module: any);
|
|
8
|
+
/**
|
|
9
|
+
* Gets the unread count.
|
|
10
|
+
* @returns A promise with the result.
|
|
11
|
+
*/
|
|
12
|
+
getUnreadCount(): Promise<number>;
|
|
13
|
+
/**
|
|
14
|
+
* Gets the inbox messages.
|
|
15
|
+
* @returns A promise with the result.
|
|
16
|
+
*/
|
|
17
|
+
getMessages(): Promise<InboxMessage[]>;
|
|
18
|
+
/**
|
|
19
|
+
* Marks a message as read.
|
|
20
|
+
* @param messageId The message Id.
|
|
21
|
+
* @returns A promise. Will reject if the message is not
|
|
22
|
+
* found or if takeOff is not called.
|
|
23
|
+
*/
|
|
24
|
+
markMessageRead(messageId: string): Promise<void>;
|
|
25
|
+
/**
|
|
26
|
+
* Deletes a message.
|
|
27
|
+
* @param messageId The message Id.
|
|
28
|
+
* @returns A promise. Will reject if the message is not
|
|
29
|
+
* found or if takeOff is not called.
|
|
30
|
+
*/
|
|
31
|
+
deleteMessage(messageId: string): Promise<void>;
|
|
32
|
+
/**
|
|
33
|
+
* Dismisses the OOTB message center if displayed.
|
|
34
|
+
* @returns A promise.
|
|
35
|
+
*/
|
|
36
|
+
dismiss(): Promise<void>;
|
|
37
|
+
/**
|
|
38
|
+
* Requests to display the Message Center.
|
|
39
|
+
*
|
|
40
|
+
* Will either emit an event to display the
|
|
41
|
+
* Message Center if auto launch message center
|
|
42
|
+
* is disabled, or display the OOTB message center.
|
|
43
|
+
* @param messageId Optional message Id.
|
|
44
|
+
* @returns A promise.
|
|
45
|
+
*/
|
|
46
|
+
display(messageId?: string): Promise<void>;
|
|
47
|
+
/**
|
|
48
|
+
* Overlays the Message Center regardless if auto launch Message Center is enabled or not.
|
|
49
|
+
*
|
|
50
|
+
* @param messageId Optional message Id.
|
|
51
|
+
* @returns A promise.
|
|
52
|
+
*/
|
|
53
|
+
showMessageCenter(messageId?: string): Promise<void>;
|
|
54
|
+
/**
|
|
55
|
+
* Overlays the message view regardless if auto launch Message Center is enabled or not.
|
|
56
|
+
*
|
|
57
|
+
* @param messageId The message Id.
|
|
58
|
+
* @returns A promise.
|
|
59
|
+
*/
|
|
60
|
+
showMessageView(messageId: string): Promise<void>;
|
|
61
|
+
/**
|
|
62
|
+
* Refreshes the messages.
|
|
63
|
+
* @returns A promise. Will reject if the list fails to refresh or if
|
|
64
|
+
* takeOff is not called yet.
|
|
65
|
+
*/
|
|
66
|
+
refreshMessages(): Promise<void>;
|
|
67
|
+
/**
|
|
68
|
+
* Enables or disables showing the OOTB UI when requested to display by either
|
|
69
|
+
* `display` or by a notification with a Message Center action.
|
|
70
|
+
* @param autoLaunch true to show OOTB UI, false to emit events.
|
|
71
|
+
*/
|
|
72
|
+
setAutoLaunchDefaultMessageCenter(autoLaunch: boolean): void;
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=AirshipMessageCenter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AirshipMessageCenter.d.ts","sourceRoot":"","sources":["../../../../src/AirshipMessageCenter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC;;GAEG;AACH,qBAAa,oBAAoB;IACnB,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,GAAG;IAExC;;;OAGG;IACI,cAAc,IAAI,OAAO,CAAC,MAAM,CAAC;IAIxC;;;OAGG;IACI,WAAW,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC;IAI7C;;;;;OAKG;IACI,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIxD;;;;;OAKG;IACI,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAItD;;;OAGG;IACI,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAI/B;;;;;;;;OAQG;IACI,OAAO,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIjD;;;;;OAKG;IACI,iBAAiB,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAI3D;;;;;OAKG;IACI,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIxD;;;;OAIG;IACI,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC;IAIvC;;;;OAIG;IACI,iCAAiC,CAAC,UAAU,EAAE,OAAO;CAG7D"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { PreferenceCenter } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Airship Preference Center.
|
|
4
|
+
*/
|
|
5
|
+
export declare class AirshipPreferenceCenter {
|
|
6
|
+
private readonly module;
|
|
7
|
+
constructor(module: any);
|
|
8
|
+
/**
|
|
9
|
+
* Requests to display a preference center.
|
|
10
|
+
*
|
|
11
|
+
* Will either emit an event to display the
|
|
12
|
+
* Preference Center if auto launch is disabled,
|
|
13
|
+
* or display the OOTB UI.
|
|
14
|
+
* @param preferenceCenterId The preference center Id.
|
|
15
|
+
* @returns A promise.
|
|
16
|
+
*/
|
|
17
|
+
display(preferenceCenterId: string): Promise<void>;
|
|
18
|
+
/**
|
|
19
|
+
* Gets the preference center config.
|
|
20
|
+
* @param preferenceCenterId The preference center Id.
|
|
21
|
+
* @returns A promise with the result.
|
|
22
|
+
*/
|
|
23
|
+
getConfig(preferenceCenterId: string): Promise<PreferenceCenter>;
|
|
24
|
+
/**
|
|
25
|
+
* Enables or disables showing the OOTB UI when requested to display by either
|
|
26
|
+
* `display` or by a notification with some other action.
|
|
27
|
+
* @param preferenceCenterId The preference center Id.
|
|
28
|
+
* @param autoLaunch true to show OOTB UI, false to emit events.
|
|
29
|
+
*/
|
|
30
|
+
setAutoLaunchDefaultPreferenceCenter(preferenceCenterId: string, autoLaunch: boolean): void;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=AirshipPreferenceCenter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AirshipPreferenceCenter.d.ts","sourceRoot":"","sources":["../../../../src/AirshipPreferenceCenter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C;;GAEG;AACH,qBAAa,uBAAuB;IACtB,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,GAAG;IAExC;;;;;;;;OAQG;IACI,OAAO,CAAC,kBAAkB,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIzD;;;;OAIG;IACI,SAAS,CAAC,kBAAkB,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAItE;;;;;MAKE;IACI,oCAAoC,CACzC,kBAAkB,EAAE,MAAM,EAC1B,UAAU,EAAE,OAAO,GAClB,IAAI;CAMR"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Feature } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Airship Privacy Manager.
|
|
4
|
+
*/
|
|
5
|
+
export declare class AirshipPrivacyManager {
|
|
6
|
+
private readonly module;
|
|
7
|
+
constructor(module: any);
|
|
8
|
+
/**
|
|
9
|
+
* Sets the current set of enabled features.
|
|
10
|
+
* @param features The features to set.
|
|
11
|
+
* @returns A promise.
|
|
12
|
+
*/
|
|
13
|
+
setEnabledFeatures(features: Feature[]): Promise<void>;
|
|
14
|
+
/**
|
|
15
|
+
* Gets the current enabled features.
|
|
16
|
+
* @returns A promise with the result.
|
|
17
|
+
*/
|
|
18
|
+
getEnabledFeatures(): Promise<Feature[]>;
|
|
19
|
+
/**
|
|
20
|
+
* Enables additional features.
|
|
21
|
+
* @param features The features to enable.
|
|
22
|
+
* @returns A promise.
|
|
23
|
+
*/
|
|
24
|
+
enableFeatures(features: Feature[]): Promise<void>;
|
|
25
|
+
/**
|
|
26
|
+
* Disable features.
|
|
27
|
+
* @param features The features to disable.
|
|
28
|
+
* @returns A promise.
|
|
29
|
+
*/
|
|
30
|
+
disableFeatures(features: Feature[]): Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
* Checks if the features are enabled or not.
|
|
33
|
+
* @param features The features to check.
|
|
34
|
+
* @returns A promise with the result.
|
|
35
|
+
*/
|
|
36
|
+
isFeaturesEnabled(features: Feature[]): Promise<void>;
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=AirshipPrivacyManager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AirshipPrivacyManager.d.ts","sourceRoot":"","sources":["../../../../src/AirshipPrivacyManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC;;GAEG;AACH,qBAAa,qBAAqB;IACpB,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,GAAG;IAExC;;;;OAIG;IACI,kBAAkB,CAAC,QAAQ,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAO7D;;;OAGG;IACI,kBAAkB,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;IAI/C;;;;OAIG;IACI,cAAc,CAAC,QAAQ,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAQzD;;;;OAIG;IACI,eAAe,CAAC,QAAQ,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAQ1D;;;;OAIG;IACI,iBAAiB,CAAC,QAAQ,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAO7D"}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { Android, iOS, PushNotificationStatus, PushPayload, PromptPermissionFallback } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Airship Push.
|
|
4
|
+
*/
|
|
5
|
+
export declare class AirshipPush {
|
|
6
|
+
private readonly module;
|
|
7
|
+
/**
|
|
8
|
+
* iOS only push methods.
|
|
9
|
+
*/
|
|
10
|
+
readonly iOS: AirshipPushIOS;
|
|
11
|
+
/**
|
|
12
|
+
* Android only push methods.
|
|
13
|
+
*/
|
|
14
|
+
readonly android: AirshipPushAndroid;
|
|
15
|
+
constructor(module: any);
|
|
16
|
+
/**
|
|
17
|
+
* Enables/disables notifications on Airship.
|
|
18
|
+
*
|
|
19
|
+
* When enabled, it will cause the user to be prompted for
|
|
20
|
+
* the permission on platforms that support it.
|
|
21
|
+
* To get the result of the prompt, use `enableUserNotifications`.
|
|
22
|
+
* @param enabled true to enable, false to disable
|
|
23
|
+
* @returns A promise.
|
|
24
|
+
*/
|
|
25
|
+
setUserNotificationsEnabled(enabled: boolean): Promise<void>;
|
|
26
|
+
/**
|
|
27
|
+
* Checks if user notifications are enabled or not on Airship.
|
|
28
|
+
* @returns A promise with the result.
|
|
29
|
+
*/
|
|
30
|
+
isUserNotificationsEnabled(): Promise<boolean>;
|
|
31
|
+
/**
|
|
32
|
+
* Enables user notifications.
|
|
33
|
+
* @param options Optional options.
|
|
34
|
+
* @returns A promise with the permission result.
|
|
35
|
+
*/
|
|
36
|
+
enableUserNotifications(options?: {
|
|
37
|
+
fallback?: PromptPermissionFallback;
|
|
38
|
+
}): Promise<boolean>;
|
|
39
|
+
/**
|
|
40
|
+
* Gets the notification status.
|
|
41
|
+
* @returns A promise with the result.
|
|
42
|
+
*/
|
|
43
|
+
getNotificationStatus(): Promise<PushNotificationStatus>;
|
|
44
|
+
/**
|
|
45
|
+
* Gets the registration token if generated.
|
|
46
|
+
* Use the event EventType.PushTokenReceived to be notified
|
|
47
|
+
* when available.
|
|
48
|
+
* @returns A promise with the result.
|
|
49
|
+
*/
|
|
50
|
+
getRegistrationToken(): Promise<string | null | undefined>;
|
|
51
|
+
/**
|
|
52
|
+
* Gets the list of active notifications.
|
|
53
|
+
*
|
|
54
|
+
* On Android, this list only includes notifications
|
|
55
|
+
* sent through Airship.
|
|
56
|
+
* @returns A promise with the result.
|
|
57
|
+
*/
|
|
58
|
+
getActiveNotifications(): Promise<PushPayload[]>;
|
|
59
|
+
/**
|
|
60
|
+
* Clears all notifications for the app.
|
|
61
|
+
*/
|
|
62
|
+
clearNotifications(): void;
|
|
63
|
+
/**
|
|
64
|
+
* Clears a specific notification.
|
|
65
|
+
*
|
|
66
|
+
* On Android, you can use this method to clear
|
|
67
|
+
* notifications outside of Airship, The identifier is in
|
|
68
|
+
* the format of <tag>:<id>.
|
|
69
|
+
* @param identifier The identifier.
|
|
70
|
+
*/
|
|
71
|
+
clearNotification(identifier: string): void;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* iOS Push.
|
|
75
|
+
*/
|
|
76
|
+
export declare class AirshipPushIOS {
|
|
77
|
+
private readonly module;
|
|
78
|
+
private eventEmitter;
|
|
79
|
+
private presentationOverridesCallback?;
|
|
80
|
+
constructor(module: any);
|
|
81
|
+
/**
|
|
82
|
+
* Overrides the presentation options per notification. If a `null` is returned, the default
|
|
83
|
+
* options will be used. The callback should return as quickly as possible to avoid delaying notification delivery.
|
|
84
|
+
*
|
|
85
|
+
* @param callback A callback that can override the foreground presentation options.
|
|
86
|
+
*/
|
|
87
|
+
setForegroundPresentationOptionsCallback(callback?: (pushPayload: PushPayload) => Promise<iOS.ForegroundPresentationOption[] | null>): void;
|
|
88
|
+
/**
|
|
89
|
+
* Sets the foreground presentation options.
|
|
90
|
+
* @param options The foreground options.
|
|
91
|
+
* @returns A promise.
|
|
92
|
+
*/
|
|
93
|
+
setForegroundPresentationOptions(options: iOS.ForegroundPresentationOption[]): Promise<void>;
|
|
94
|
+
/**
|
|
95
|
+
* Sets the notification options.
|
|
96
|
+
* @param options The notification options.
|
|
97
|
+
* @returns A promise.
|
|
98
|
+
*/
|
|
99
|
+
setNotificationOptions(options: iOS.NotificationOption[]): Promise<void>;
|
|
100
|
+
/**
|
|
101
|
+
* Checks if autobadge is enabled.
|
|
102
|
+
* @returns A promise with the result.
|
|
103
|
+
*/
|
|
104
|
+
isAutobadgeEnabled(): Promise<boolean>;
|
|
105
|
+
/**
|
|
106
|
+
* Enables/disables autobadge.
|
|
107
|
+
* @param enabled true to enable, false to disable.
|
|
108
|
+
* @returns A promise.
|
|
109
|
+
*/
|
|
110
|
+
setAutobadgeEnabled(enabled: boolean): Promise<void>;
|
|
111
|
+
/**
|
|
112
|
+
* Set the badge number.
|
|
113
|
+
* @param badge The badge number.
|
|
114
|
+
* @returns A promise.
|
|
115
|
+
*/
|
|
116
|
+
setBadgeNumber(badge: number): Promise<void>;
|
|
117
|
+
/**
|
|
118
|
+
* Gets the badge number.
|
|
119
|
+
* @returns A promise with the result.
|
|
120
|
+
*/
|
|
121
|
+
getBadgeNumber(): Promise<number>;
|
|
122
|
+
/**
|
|
123
|
+
* Gets the list of authorized notification settings.
|
|
124
|
+
* @returns A promise with the result.
|
|
125
|
+
*/
|
|
126
|
+
getAuthorizedNotificationSettings(): Promise<iOS.AuthorizedNotificationSetting[]>;
|
|
127
|
+
/**
|
|
128
|
+
* Gets the authorized notification status.
|
|
129
|
+
* @returns A promise with the result.
|
|
130
|
+
*/
|
|
131
|
+
getAuthorizedNotificationStatus(): Promise<iOS.AuthorizedNotificationStatus>;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Android Push.
|
|
135
|
+
*/
|
|
136
|
+
export declare class AirshipPushAndroid {
|
|
137
|
+
private readonly module;
|
|
138
|
+
private eventEmitter;
|
|
139
|
+
private foregroundDisplayPredicate?;
|
|
140
|
+
constructor(module: any);
|
|
141
|
+
/**
|
|
142
|
+
* Checks if a notification category/channel is enabled.
|
|
143
|
+
* @param channel The channel name.
|
|
144
|
+
* @returns A promise with the result.
|
|
145
|
+
*/
|
|
146
|
+
isNotificationChannelEnabled(channel: string): Promise<boolean>;
|
|
147
|
+
/**
|
|
148
|
+
* Sets the notification config.
|
|
149
|
+
* @param config The notification config.
|
|
150
|
+
*/
|
|
151
|
+
setNotificationConfig(config: Android.NotificationConfig): void;
|
|
152
|
+
/**
|
|
153
|
+
* Overrides the foreground display per notification.
|
|
154
|
+
*
|
|
155
|
+
* The predicate should return as quickly as possible to avoid delaying notification delivery.
|
|
156
|
+
*
|
|
157
|
+
* @param predicate A foreground display predicate.
|
|
158
|
+
*/
|
|
159
|
+
setForegroundDisplayPredicate(predicate?: (pushPayload: PushPayload) => Promise<boolean>): void;
|
|
160
|
+
}
|
|
161
|
+
//# sourceMappingURL=AirshipPush.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AirshipPush.d.ts","sourceRoot":"","sources":["../../../../src/AirshipPush.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,sBAAsB,EAAE,WAAW,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAEtG;;GAEG;AACH,qBAAa,WAAW;IAaV,OAAO,CAAC,QAAQ,CAAC,MAAM;IAZnC;;OAEG;IACH,SAAgB,GAAG,EAAE,cAAc,CAAC;IAGpC;;OAEG;IACH,SAAgB,OAAO,EAAE,kBAAkB,CAAC;gBAGf,MAAM,EAAE,GAAG;IAKxC;;;;;;;;OAQG;IACI,2BAA2B,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAInE;;;OAGG;IACI,0BAA0B,IAAI,OAAO,CAAC,OAAO,CAAC;IAIrD;;;;OAIG;IACI,uBAAuB,CAAC,OAAO,CAAC,EAAE;QACvC,QAAQ,CAAC,EAAE,wBAAwB,CAAA;KACpC,GAAG,OAAO,CAAC,OAAO,CAAC;IAIpB;;;OAGG;IACI,qBAAqB,IAAI,OAAO,CAAC,sBAAsB,CAAC;IAI/D;;;;;OAKG;IACI,oBAAoB,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAIjE;;;;;;OAMG;IACI,sBAAsB,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC;IAIvD;;OAEG;IACI,kBAAkB,IAAI,IAAI;IAIjC;;;;;;;OAOG;IACI,iBAAiB,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI;CAGnD;AAED;;GAEG;AACH,qBAAa,cAAc;IAKb,OAAO,CAAC,QAAQ,CAAC,MAAM;IAHnC,OAAO,CAAC,YAAY,CAAqB;IACzC,OAAO,CAAC,6BAA6B,CAAC,CAAkF;gBAE3F,MAAM,EAAE,GAAG;IAoBxC;;;;;OAKG;IACI,wCAAwC,CAAC,QAAQ,CAAC,EAAE,CAAC,WAAW,EAAE,WAAW,KAAK,OAAO,CAAC,GAAG,CAAC,4BAA4B,EAAE,GAAG,IAAI,CAAC;IAQ3I;;;;OAIG;IACI,gCAAgC,CACrC,OAAO,EAAE,GAAG,CAAC,4BAA4B,EAAE,GAC1C,OAAO,CAAC,IAAI,CAAC;IAIhB;;;;OAIG;IACI,sBAAsB,CAC3B,OAAO,EAAE,GAAG,CAAC,kBAAkB,EAAE,GAChC,OAAO,CAAC,IAAI,CAAC;IAIhB;;;OAGG;IACI,kBAAkB,IAAI,OAAO,CAAC,OAAO,CAAC;IAI7C;;;;OAIG;IACI,mBAAmB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAI3D;;;;OAIG;IACI,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAInD;;;OAGG;IACI,cAAc,IAAI,OAAO,CAAC,MAAM,CAAC;IAIxC;;;OAGG;IACI,iCAAiC,IAAI,OAAO,CAAC,GAAG,CAAC,6BAA6B,EAAE,CAAC;IAIxF;;;OAGG;IACI,+BAA+B,IAAI,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC;CAGpF;AAED;;GAEG;AACH,qBAAa,kBAAkB;IAKjB,OAAO,CAAC,QAAQ,CAAC,MAAM;IAHnC,OAAO,CAAC,YAAY,CAAqB;IACzC,OAAO,CAAC,0BAA0B,CAAC,CAAgD;gBAEtD,MAAM,EAAE,GAAG;IAmBxC;;;;OAIG;IACI,4BAA4B,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAItE;;;OAGG;IACI,qBAAqB,CAAC,MAAM,EAAE,OAAO,CAAC,kBAAkB,GAAG,IAAI;IAItE;;;;;;OAMG;IACI,6BAA6B,CAAC,SAAS,CAAC,EAAE,CAAC,WAAW,EAAE,WAAW,KAAK,OAAO,CAAC,OAAO,CAAC;CAMhG"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { AirshipActions } from './AirshipActions';
|
|
2
|
+
import { AirshipAnalytics } from './AirshipAnalytics';
|
|
3
|
+
import { AirshipChannel } from './AirshipChannel';
|
|
4
|
+
import { AirshipContact } from './AirshipContact';
|
|
5
|
+
import { AirshipInApp } from './AirshipInApp';
|
|
6
|
+
import { AirshipLocale } from './AirshipLocale';
|
|
7
|
+
import { AirshipMessageCenter } from './AirshipMessageCenter';
|
|
8
|
+
import { AirshipPreferenceCenter } from './AirshipPreferenceCenter';
|
|
9
|
+
import { AirshipPrivacyManager } from './AirshipPrivacyManager';
|
|
10
|
+
import { AirshipPush } from './AirshipPush';
|
|
11
|
+
import { AirshipFeatureFlagManager } from './AirshipFeatureFlagManager';
|
|
12
|
+
import { AirshipConfig, EventTypeMap, EventType } from './types';
|
|
13
|
+
import { Subscription } from './UAEventEmitter';
|
|
14
|
+
import { AirshipLiveActivityManager } from './AirshipLiveActivityManager';
|
|
15
|
+
import { AirshipLiveUpdateManager } from './AirshipLiveUpdateManager';
|
|
16
|
+
/**
|
|
17
|
+
* Airship
|
|
18
|
+
*/
|
|
19
|
+
export declare class AirshipRoot {
|
|
20
|
+
private readonly module;
|
|
21
|
+
readonly actions: AirshipActions;
|
|
22
|
+
readonly analytics: AirshipAnalytics;
|
|
23
|
+
readonly channel: AirshipChannel;
|
|
24
|
+
readonly contact: AirshipContact;
|
|
25
|
+
readonly inApp: AirshipInApp;
|
|
26
|
+
readonly locale: AirshipLocale;
|
|
27
|
+
readonly messageCenter: AirshipMessageCenter;
|
|
28
|
+
readonly preferenceCenter: AirshipPreferenceCenter;
|
|
29
|
+
readonly privacyManager: AirshipPrivacyManager;
|
|
30
|
+
readonly push: AirshipPush;
|
|
31
|
+
readonly featureFlagManager: AirshipFeatureFlagManager;
|
|
32
|
+
/**
|
|
33
|
+
* iOS only accessors
|
|
34
|
+
*/
|
|
35
|
+
readonly iOS: AirshipRootIOS;
|
|
36
|
+
/**
|
|
37
|
+
* iOS only accessors
|
|
38
|
+
*/
|
|
39
|
+
readonly android: AirshipRootAndroid;
|
|
40
|
+
private readonly eventEmitter;
|
|
41
|
+
constructor(module: any);
|
|
42
|
+
/**
|
|
43
|
+
* Calls takeOff. If Airship is already configured for
|
|
44
|
+
* the app session, the new config will be applied on the next
|
|
45
|
+
* app init.
|
|
46
|
+
* @param config The config.
|
|
47
|
+
* @returns A promise with the result. `true` if airship is ready.
|
|
48
|
+
*/
|
|
49
|
+
takeOff(config: AirshipConfig): Promise<boolean>;
|
|
50
|
+
/**
|
|
51
|
+
* Checks if Airship is ready.
|
|
52
|
+
* @returns A promise with the result.
|
|
53
|
+
*/
|
|
54
|
+
isFlying(): Promise<boolean>;
|
|
55
|
+
/**
|
|
56
|
+
* Adds a listener.
|
|
57
|
+
* @param eventType The listener type.
|
|
58
|
+
* @param listener The listener.
|
|
59
|
+
* @returns A subscription.
|
|
60
|
+
*/
|
|
61
|
+
addListener<T extends EventType>(eventType: T, listener: (event: EventTypeMap[T]) => any): Subscription;
|
|
62
|
+
/**
|
|
63
|
+
* Removes a listener.
|
|
64
|
+
*
|
|
65
|
+
* @param eventType The event type.
|
|
66
|
+
* @param listener The event listener. Should be a reference to the function passed into addListener.
|
|
67
|
+
*/
|
|
68
|
+
removeListener<T extends EventType>(eventType: EventType, listener: (event: EventTypeMap[T]) => any): void;
|
|
69
|
+
/**
|
|
70
|
+
* Removes all listeners for a given type.
|
|
71
|
+
*
|
|
72
|
+
* @param eventType The event type.
|
|
73
|
+
*/
|
|
74
|
+
removeAllListeners(eventType: EventType): void;
|
|
75
|
+
}
|
|
76
|
+
export declare class AirshipRootIOS {
|
|
77
|
+
readonly liveActivityManager: AirshipLiveActivityManager;
|
|
78
|
+
constructor(module: any);
|
|
79
|
+
}
|
|
80
|
+
export declare class AirshipRootAndroid {
|
|
81
|
+
readonly liveUpdateManager: AirshipLiveUpdateManager;
|
|
82
|
+
constructor(module: any);
|
|
83
|
+
}
|
|
84
|
+
//# sourceMappingURL=AirshipRoot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AirshipRoot.d.ts","sourceRoot":"","sources":["../../../../src/AirshipRoot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAExE,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACjE,OAAO,EAAE,YAAY,EAAkB,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAEtE;;GAEG;AACH,qBAAa,WAAW;IAyBV,OAAO,CAAC,QAAQ,CAAC,MAAM;IAxBnC,SAAgB,OAAO,EAAE,cAAc,CAAC;IACxC,SAAgB,SAAS,EAAE,gBAAgB,CAAC;IAC5C,SAAgB,OAAO,EAAE,cAAc,CAAC;IACxC,SAAgB,OAAO,EAAE,cAAc,CAAC;IACxC,SAAgB,KAAK,EAAE,YAAY,CAAC;IACpC,SAAgB,MAAM,EAAE,aAAa,CAAC;IACtC,SAAgB,aAAa,EAAE,oBAAoB,CAAC;IACpD,SAAgB,gBAAgB,EAAE,uBAAuB,CAAC;IAC1D,SAAgB,cAAc,EAAE,qBAAqB,CAAC;IACtD,SAAgB,IAAI,EAAE,WAAW,CAAC;IAClC,SAAgB,kBAAkB,EAAE,yBAAyB,CAAC;IAE9D;;OAEG;IACH,SAAgB,GAAG,EAAE,cAAc,CAAC;IAEpC;;OAEG;IACH,SAAgB,OAAO,EAAE,kBAAkB,CAAC;IAE5C,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAiB;gBAEjB,MAAM,EAAE,GAAG;IAkBxC;;;;;;OAMG;IACI,OAAO,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO,CAAC,OAAO,CAAC;IAIvD;;;OAGG;IACI,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC;IAInC;;;;;OAKG;IACI,WAAW,CAAC,CAAC,SAAS,SAAS,EACpC,SAAS,EAAE,CAAC,EACZ,QAAQ,EAAE,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC,CAAC,KAAK,GAAG,GACxC,YAAY;IAOf;;;;;OAKG;IACI,cAAc,CAAC,CAAC,SAAS,SAAS,EACvC,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC,CAAC,KAAK,GAAG;IAK3C;;;;OAIG;IACI,kBAAkB,CAAC,SAAS,EAAE,SAAS;CAG/C;AAED,qBAAa,cAAc;IACzB,SAAgB,mBAAmB,EAAE,0BAA0B,CAAC;gBAEpD,MAAM,EAAE,GAAG;CAGxB;AAED,qBAAa,kBAAkB;IAC7B,SAAgB,iBAAiB,EAAE,wBAAwB,CAAC;gBAEhD,MAAM,EAAE,GAAG;CAGxB"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Attribute operation
|
|
3
|
+
* @hidden
|
|
4
|
+
*/
|
|
5
|
+
export interface AttributeOperation {
|
|
6
|
+
/**
|
|
7
|
+
* The operation name.
|
|
8
|
+
*/
|
|
9
|
+
action: string;
|
|
10
|
+
/**
|
|
11
|
+
* The attribute key.
|
|
12
|
+
*/
|
|
13
|
+
key: string;
|
|
14
|
+
/**
|
|
15
|
+
* The attribute value, if available.
|
|
16
|
+
*/
|
|
17
|
+
value?: string | number | Date;
|
|
18
|
+
/**
|
|
19
|
+
* The attribute type, if available.
|
|
20
|
+
*/
|
|
21
|
+
type?: 'string' | 'number' | 'date';
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Editor for attributes.
|
|
25
|
+
*/
|
|
26
|
+
export declare class AttributeEditor {
|
|
27
|
+
onApply: (operations: AttributeOperation[]) => Promise<void>;
|
|
28
|
+
operations: AttributeOperation[];
|
|
29
|
+
/**
|
|
30
|
+
* AttributeEditor constructor
|
|
31
|
+
*
|
|
32
|
+
* @hidden
|
|
33
|
+
* @param onApply The apply function
|
|
34
|
+
*/
|
|
35
|
+
constructor(onApply: (operations: AttributeOperation[]) => Promise<void>);
|
|
36
|
+
/**
|
|
37
|
+
* Adds an attribute.
|
|
38
|
+
*
|
|
39
|
+
* @param value The attribute value.
|
|
40
|
+
* @param name The attribute name.
|
|
41
|
+
* @return The attribute editor instance.
|
|
42
|
+
*/
|
|
43
|
+
setAttribute(name: string, value: string | number | boolean | Date): AttributeEditor;
|
|
44
|
+
/**
|
|
45
|
+
* Removes an attribute.
|
|
46
|
+
* @param name The name of the attribute to remove.
|
|
47
|
+
* @return The attribute editor instance.
|
|
48
|
+
*/
|
|
49
|
+
removeAttribute(name: string): AttributeEditor;
|
|
50
|
+
/**
|
|
51
|
+
* Applies the attribute operations.
|
|
52
|
+
*/
|
|
53
|
+
apply(): Promise<void>;
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=AttributeEditor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AttributeEditor.d.ts","sourceRoot":"","sources":["../../../../src/AttributeEditor.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAC/B;;OAEG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,MAAM,CAAC;CACrC;AAED;;GAEG;AACH,qBAAa,eAAe;IAC1B,OAAO,EAAE,CAAC,UAAU,EAAE,kBAAkB,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7D,UAAU,EAAE,kBAAkB,EAAE,CAAC;IAEjC;;;;;OAKG;gBACS,OAAO,EAAE,CAAC,UAAU,EAAE,kBAAkB,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC;IAKxE;;;;;;OAMG;IACH,YAAY,CACV,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GACtC,eAAe;IAmClB;;;;OAIG;IACH,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,eAAe;IAM9C;;OAEG;IACH,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CAGvB"}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { NativeSyntheticEvent, ViewStyle } from 'react-native';
|
|
3
|
+
/**
|
|
4
|
+
* Enum of possible message load errors
|
|
5
|
+
*/
|
|
6
|
+
export declare enum MessageLoadError {
|
|
7
|
+
/**
|
|
8
|
+
* The message is not available.
|
|
9
|
+
*/
|
|
10
|
+
NotAvailable = "MESSAGE_NOT_AVAILABLE",
|
|
11
|
+
/**
|
|
12
|
+
* Failed to fetch the message.
|
|
13
|
+
*/
|
|
14
|
+
FetchFailed = "FAILED_TO_FETCH_MESSAGE",
|
|
15
|
+
/**
|
|
16
|
+
* Failed to load the message.
|
|
17
|
+
*/
|
|
18
|
+
LoadFailed = "MESSAGE_LOAD_FAILED"
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Message load started event.
|
|
22
|
+
*/
|
|
23
|
+
export interface MessageLoadStartedEvent {
|
|
24
|
+
/**
|
|
25
|
+
* The message ID.
|
|
26
|
+
*/
|
|
27
|
+
messageId: string;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Message load finished event.
|
|
31
|
+
*/
|
|
32
|
+
export interface MessageLoadFinishedEvent {
|
|
33
|
+
/**
|
|
34
|
+
* The message ID.
|
|
35
|
+
*/
|
|
36
|
+
messageId: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Message load error event.
|
|
40
|
+
*/
|
|
41
|
+
export interface MessageLoadErrorEvent {
|
|
42
|
+
/**
|
|
43
|
+
* The message ID.
|
|
44
|
+
*/
|
|
45
|
+
messageId: string;
|
|
46
|
+
/**
|
|
47
|
+
* Whether the failure is retryable.
|
|
48
|
+
*/
|
|
49
|
+
retryable: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* The error
|
|
52
|
+
*/
|
|
53
|
+
error: string;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Message closed event
|
|
57
|
+
*/
|
|
58
|
+
export interface MessageClosedEvent {
|
|
59
|
+
/**
|
|
60
|
+
* The message ID.
|
|
61
|
+
*/
|
|
62
|
+
messageId: string;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* MessageView props
|
|
66
|
+
*/
|
|
67
|
+
export interface MessageViewProps {
|
|
68
|
+
style?: ViewStyle;
|
|
69
|
+
/**
|
|
70
|
+
* A callback when the view starts loading a message.
|
|
71
|
+
*
|
|
72
|
+
* @param event: The message load started event.
|
|
73
|
+
*/
|
|
74
|
+
onLoadStarted?: (event: MessageLoadStartedEvent) => void;
|
|
75
|
+
/**
|
|
76
|
+
* A callback when the view finishes loading a message.
|
|
77
|
+
*
|
|
78
|
+
* @param event: The message load finished event.
|
|
79
|
+
*/
|
|
80
|
+
onLoadFinished?: (event: MessageLoadFinishedEvent) => void;
|
|
81
|
+
/**
|
|
82
|
+
* A callback when the view fails to load a message with an error.
|
|
83
|
+
*
|
|
84
|
+
* @param event: The message load error event.
|
|
85
|
+
*/
|
|
86
|
+
onLoadError?: (event: MessageLoadErrorEvent) => void;
|
|
87
|
+
/**
|
|
88
|
+
* A callback when the message is closed.
|
|
89
|
+
*
|
|
90
|
+
* @param event: The message closed event.
|
|
91
|
+
*/
|
|
92
|
+
onClose?: (event: MessageClosedEvent) => void;
|
|
93
|
+
/**
|
|
94
|
+
* The message Id.
|
|
95
|
+
*/
|
|
96
|
+
messageId: string;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Inbox message view component.
|
|
100
|
+
*/
|
|
101
|
+
export declare class MessageView extends React.Component<MessageViewProps> {
|
|
102
|
+
_onLoadStarted: (event: NativeSyntheticEvent<MessageLoadStartedEvent>) => void;
|
|
103
|
+
_onLoadFinished: (event: NativeSyntheticEvent<MessageLoadFinishedEvent>) => void;
|
|
104
|
+
_onLoadError: (event: NativeSyntheticEvent<MessageLoadErrorEvent>) => void;
|
|
105
|
+
_onClose: (event: NativeSyntheticEvent<MessageClosedEvent>) => void;
|
|
106
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
107
|
+
}
|
|
108
|
+
//# sourceMappingURL=MessageView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MessageView.d.ts","sourceRoot":"","sources":["../../../../src/MessageView.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG/D;;GAEG;AACH,oBAAY,gBAAgB;IAC1B;;OAEG;IACH,YAAY,0BAA0B;IACtC;;OAEG;IACH,WAAW,4BAA4B;IACvC;;OAEG;IACH,UAAU,wBAAwB;CACnC;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,SAAS,CAAC;IAElB;;;;OAIG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,uBAAuB,KAAK,IAAI,CAAC;IACzD;;;;OAIG;IACH,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,wBAAwB,KAAK,IAAI,CAAC;IAC3D;;;;OAIG;IACH,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACrD;;;;OAIG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAE9C;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,qBAAa,WAAY,SAAQ,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC;IAChE,cAAc,GAAI,OAAO,oBAAoB,CAAC,uBAAuB,CAAC,UAKpE;IAEF,eAAe,GAAI,OAAO,oBAAoB,CAAC,wBAAwB,CAAC,UAKtE;IAEF,YAAY,GAAI,OAAO,oBAAoB,CAAC,qBAAqB,CAAC,UAKhE;IAEF,QAAQ,GAAI,OAAO,oBAAoB,CAAC,kBAAkB,CAAC,UAKzD;IAEF,MAAM;CAWP"}
|