zixflow-reactnative 1.0.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +8 -8
- package/android/build.gradle +4 -13
- package/android/gradle.properties +1 -1
- package/android/src/main/AndroidManifest.xml +5 -5
- package/android/src/main/java/{io/customer/reactnative/sdk/NativeCustomerIOModule.kt → com/zixflow/reactnative/sdk/NativeZixflowModule.kt} +35 -35
- package/android/src/main/java/{io/customer/reactnative/sdk/CustomerIOReactNativePackage.kt → com/zixflow/reactnative/sdk/ZixflowReactNativePackage.kt} +15 -15
- package/android/src/main/java/{io/customer → com/zixflow}/reactnative/sdk/constant/Keys.kt +1 -1
- package/android/src/main/java/{io/customer → com/zixflow}/reactnative/sdk/extension/MapExtensions.kt +1 -1
- package/android/src/main/java/{io/customer → com/zixflow}/reactnative/sdk/extension/ReactExtensions.kt +1 -1
- package/android/src/main/java/{io/customer → com/zixflow}/reactnative/sdk/extension/StringExtensions.kt +1 -1
- package/android/src/main/java/{io/customer → com/zixflow}/reactnative/sdk/extension/ViewExtensions.kt +1 -1
- package/android/src/main/java/{io/customer → com/zixflow}/reactnative/sdk/location/NativeLocationModule.kt +15 -15
- package/android/src/main/java/{io/customer/reactnative/sdk/logging/NativeCustomerIOLoggingModule.kt → com/zixflow/reactnative/sdk/logging/NativeZixflowLoggingModule.kt} +10 -10
- package/android/src/main/java/{io/customer → com/zixflow}/reactnative/sdk/messaginginapp/InlineInAppMessageViewManager.kt +2 -2
- package/android/src/main/java/{io/customer → com/zixflow}/reactnative/sdk/messaginginapp/NativeMessagingInAppModule.kt +26 -26
- package/android/src/main/java/{io/customer → com/zixflow}/reactnative/sdk/messaginginapp/NotificationInboxExtensions.kt +5 -5
- package/android/src/main/java/{io/customer → com/zixflow}/reactnative/sdk/messaginginapp/ReactInAppEventListener.kt +4 -4
- package/android/src/main/java/{io/customer → com/zixflow}/reactnative/sdk/messaginginapp/ReactInAppPlatformDelegate.kt +3 -3
- package/android/src/main/java/{io/customer → com/zixflow}/reactnative/sdk/messaginginapp/ReactInlineInAppMessageView.kt +5 -5
- package/android/src/main/java/{io/customer → com/zixflow}/reactnative/sdk/messaginginapp/ReactNotificationInboxChangeListener.kt +3 -3
- package/android/src/main/java/{io/customer → com/zixflow}/reactnative/sdk/messagingpush/NativeMessagingPushModule.kt +25 -25
- package/android/src/main/java/{io/customer → com/zixflow}/reactnative/sdk/messagingpush/PermissionStatus.kt +1 -1
- package/android/src/main/java/{io/customer → com/zixflow}/reactnative/sdk/messagingpush/PushMessagingExtensions.kt +2 -2
- package/android/src/main/java/{io/customer → com/zixflow}/reactnative/sdk/util/Preconditions.kt +3 -3
- package/android/src/main/res/values/{customer_io_config.xml → zixflow_config.xml} +2 -2
- package/ios/wrappers/{NativeCustomerIO.mm → NativeZixflow.mm} +9 -9
- package/ios/wrappers/{NativeCustomerIO.swift → NativeZixflow.swift} +31 -31
- package/ios/wrappers/inapp/InboxMessage+Conversion.swift +1 -1
- package/ios/wrappers/inapp/NativeMessagingInApp.mm +8 -8
- package/ios/wrappers/inapp/NativeMessagingInApp.swift +7 -7
- package/ios/wrappers/inapp/ReactInAppEventListener.swift +12 -12
- package/ios/wrappers/inapp/inline/ReactInlineMessageView.swift +1 -1
- package/ios/wrappers/location/NativeLocation.mm +8 -8
- package/ios/wrappers/location/NativeLocation.swift +6 -6
- package/ios/wrappers/logging/{NativeCustomerIOLogging.mm → NativeZixflowLogging.mm} +14 -14
- package/ios/wrappers/logging/{NativeCustomerIOLogging.swift → NativeZixflowLogging.swift} +6 -6
- package/ios/wrappers/push/NativeMessagingPush.mm +8 -8
- package/ios/wrappers/push/NativeMessagingPush.swift +12 -12
- package/ios/wrappers/utils/Preconditions.swift +1 -1
- package/ios/wrappers/utils/{RCTCustomerIOUtils.h → RCTZixflowUtils.h} +3 -3
- package/ios/wrappers/utils/{CioConfigUtils.swift → ZixflowConfigUtils.swift} +4 -4
- package/ios/wrappers/utils/{CioConstants.swift → ZixflowConstants.swift} +4 -4
- package/lib/commonjs/native-logger-listener.js +10 -10
- package/lib/commonjs/native-logger-listener.js.map +1 -1
- package/lib/commonjs/notification-inbox.js +4 -4
- package/lib/commonjs/notification-inbox.js.map +1 -1
- package/lib/commonjs/postInstall.js +1 -1
- package/lib/commonjs/postInstall.js.map +1 -1
- package/lib/commonjs/specs/modules/{NativeCustomerIO.js → NativeZixflow.js} +6 -6
- package/lib/commonjs/specs/modules/NativeZixflow.js.map +1 -0
- package/lib/commonjs/specs/modules/{NativeCustomerIOLocation.js → NativeZixflowLocation.js} +4 -4
- package/lib/commonjs/specs/modules/NativeZixflowLocation.js.map +1 -0
- package/lib/commonjs/specs/modules/NativeZixflowLogging.js +19 -0
- package/lib/commonjs/specs/modules/NativeZixflowLogging.js.map +1 -0
- package/lib/commonjs/specs/modules/NativeZixflowMessagingInApp.js +16 -0
- package/lib/commonjs/specs/modules/NativeZixflowMessagingInApp.js.map +1 -0
- package/lib/commonjs/specs/modules/{NativeCustomerIOMessagingPush.js → NativeZixflowMessagingPush.js} +4 -4
- package/lib/commonjs/specs/modules/NativeZixflowMessagingPush.js.map +1 -0
- package/lib/commonjs/types/data-pipelines.js +23 -23
- package/lib/commonjs/types/data-pipelines.js.map +1 -1
- package/lib/commonjs/types/push.js +6 -6
- package/lib/commonjs/types/push.js.map +1 -1
- package/lib/commonjs/utils/native-bridge.js +1 -1
- package/lib/commonjs/utils/native-bridge.js.map +1 -1
- package/lib/commonjs/utils/param-validation.js +4 -4
- package/lib/commonjs/utils/param-validation.js.map +1 -1
- package/lib/commonjs/{customerio-cdp.js → zixflow-cdp.js} +19 -19
- package/lib/commonjs/zixflow-cdp.js.map +1 -0
- package/lib/commonjs/{customerio-inapp.js → zixflow-inapp.js} +8 -7
- package/lib/commonjs/zixflow-inapp.js.map +1 -0
- package/lib/commonjs/{customerio-location.js → zixflow-location.js} +10 -10
- package/lib/commonjs/zixflow-location.js.map +1 -0
- package/lib/commonjs/zixflow-params.js +2 -0
- package/lib/commonjs/zixflow-params.js.map +1 -0
- package/lib/commonjs/{customerio-push.js → zixflow-push.js} +11 -11
- package/lib/commonjs/zixflow-push.js.map +1 -0
- package/lib/commonjs/zixflow.js +19 -26
- package/lib/commonjs/zixflow.js.map +1 -1
- package/lib/module/index.js +3 -3
- package/lib/module/native-logger-listener.js +11 -11
- package/lib/module/native-logger-listener.js.map +1 -1
- package/lib/module/notification-inbox.js +4 -4
- package/lib/module/notification-inbox.js.map +1 -1
- package/lib/module/postInstall.js +1 -1
- package/lib/module/postInstall.js.map +1 -1
- package/lib/module/specs/modules/{NativeCustomerIO.js → NativeZixflow.js} +6 -6
- package/lib/module/specs/modules/NativeZixflow.js.map +1 -0
- package/lib/module/specs/modules/NativeZixflowLocation.js +13 -0
- package/lib/module/specs/modules/NativeZixflowLocation.js.map +1 -0
- package/lib/module/specs/modules/NativeZixflowLogging.js +18 -0
- package/lib/module/specs/modules/NativeZixflowLogging.js.map +1 -0
- package/lib/module/specs/modules/NativeZixflowMessagingInApp.js +15 -0
- package/lib/module/specs/modules/NativeZixflowMessagingInApp.js.map +1 -0
- package/lib/module/specs/modules/NativeZixflowMessagingPush.js +13 -0
- package/lib/module/specs/modules/NativeZixflowMessagingPush.js.map +1 -0
- package/lib/module/types/data-pipelines.js +22 -22
- package/lib/module/types/data-pipelines.js.map +1 -1
- package/lib/module/types/push.js +5 -5
- package/lib/module/types/push.js.map +1 -1
- package/lib/module/utils/native-bridge.js +1 -1
- package/lib/module/utils/native-bridge.js.map +1 -1
- package/lib/module/utils/param-validation.js +4 -4
- package/lib/module/utils/param-validation.js.map +1 -1
- package/lib/module/{customerio-cdp.js → zixflow-cdp.js} +16 -16
- package/lib/module/zixflow-cdp.js.map +1 -0
- package/lib/module/{customerio-inapp.js → zixflow-inapp.js} +6 -6
- package/lib/module/zixflow-inapp.js.map +1 -0
- package/lib/module/{customerio-location.js → zixflow-location.js} +6 -6
- package/lib/module/zixflow-location.js.map +1 -0
- package/lib/module/zixflow-params.js +2 -0
- package/lib/module/zixflow-params.js.map +1 -0
- package/lib/module/{customerio-push.js → zixflow-push.js} +10 -10
- package/lib/module/zixflow-push.js.map +1 -0
- package/lib/module/zixflow.js +5 -11
- package/lib/module/zixflow.js.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +2 -2
- package/lib/typescript/commonjs/native-logger-listener.d.ts.map +1 -1
- package/lib/typescript/commonjs/notification-inbox.d.ts +1 -1
- package/lib/typescript/commonjs/specs/modules/{NativeCustomerIO.d.ts → NativeZixflow.d.ts} +5 -5
- package/lib/typescript/commonjs/specs/modules/NativeZixflow.d.ts.map +1 -0
- package/lib/typescript/commonjs/specs/modules/{NativeCustomerIOLocation.d.ts → NativeZixflowLocation.d.ts} +3 -3
- package/lib/typescript/commonjs/specs/modules/NativeZixflowLocation.d.ts.map +1 -0
- package/lib/typescript/commonjs/specs/modules/NativeZixflowLogging.d.ts +18 -0
- package/lib/typescript/commonjs/specs/modules/NativeZixflowLogging.d.ts.map +1 -0
- package/lib/typescript/commonjs/specs/modules/{NativeCustomerIOMessagingInApp.d.ts → NativeZixflowMessagingInApp.d.ts} +4 -4
- package/lib/typescript/commonjs/specs/modules/NativeZixflowMessagingInApp.d.ts.map +1 -0
- package/lib/typescript/{module/specs/modules/NativeCustomerIOMessagingPush.d.ts → commonjs/specs/modules/NativeZixflowMessagingPush.d.ts} +3 -3
- package/lib/typescript/commonjs/specs/modules/NativeZixflowMessagingPush.d.ts.map +1 -0
- package/lib/typescript/commonjs/types/data-pipelines.d.ts +14 -14
- package/lib/typescript/commonjs/types/data-pipelines.d.ts.map +1 -1
- package/lib/typescript/commonjs/types/internal.d.ts +2 -2
- package/lib/typescript/commonjs/types/push.d.ts +2 -2
- package/lib/typescript/commonjs/types/push.d.ts.map +1 -1
- package/lib/typescript/commonjs/utils/param-validation.d.ts +2 -2
- package/lib/typescript/commonjs/utils/param-validation.d.ts.map +1 -1
- package/lib/typescript/commonjs/{customerio-cdp.d.ts → zixflow-cdp.d.ts} +12 -12
- package/lib/typescript/commonjs/zixflow-cdp.d.ts.map +1 -0
- package/lib/typescript/{module/customerio-inapp.d.ts → commonjs/zixflow-inapp.d.ts} +4 -4
- package/lib/typescript/commonjs/zixflow-inapp.d.ts.map +1 -0
- package/lib/typescript/commonjs/{customerio-location.d.ts → zixflow-location.d.ts} +5 -5
- package/lib/typescript/commonjs/zixflow-location.d.ts.map +1 -0
- package/lib/typescript/commonjs/{cio-params.d.ts → zixflow-params.d.ts} +1 -1
- package/lib/typescript/commonjs/zixflow-params.d.ts.map +1 -0
- package/lib/typescript/{module/customerio-push.d.ts → commonjs/zixflow-push.d.ts} +11 -11
- package/lib/typescript/commonjs/zixflow-push.d.ts.map +1 -0
- package/lib/typescript/commonjs/zixflow.d.ts +5 -7
- package/lib/typescript/commonjs/zixflow.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +2 -2
- package/lib/typescript/module/native-logger-listener.d.ts.map +1 -1
- package/lib/typescript/module/notification-inbox.d.ts +1 -1
- package/lib/typescript/module/specs/modules/{NativeCustomerIO.d.ts → NativeZixflow.d.ts} +5 -5
- package/lib/typescript/module/specs/modules/NativeZixflow.d.ts.map +1 -0
- package/lib/typescript/module/specs/modules/{NativeCustomerIOLocation.d.ts → NativeZixflowLocation.d.ts} +3 -3
- package/lib/typescript/module/specs/modules/NativeZixflowLocation.d.ts.map +1 -0
- package/lib/typescript/module/specs/modules/NativeZixflowLogging.d.ts +18 -0
- package/lib/typescript/module/specs/modules/NativeZixflowLogging.d.ts.map +1 -0
- package/lib/typescript/module/specs/modules/{NativeCustomerIOMessagingInApp.d.ts → NativeZixflowMessagingInApp.d.ts} +4 -4
- package/lib/typescript/module/specs/modules/NativeZixflowMessagingInApp.d.ts.map +1 -0
- package/lib/typescript/{commonjs/specs/modules/NativeCustomerIOMessagingPush.d.ts → module/specs/modules/NativeZixflowMessagingPush.d.ts} +3 -3
- package/lib/typescript/module/specs/modules/NativeZixflowMessagingPush.d.ts.map +1 -0
- package/lib/typescript/module/types/data-pipelines.d.ts +14 -14
- package/lib/typescript/module/types/data-pipelines.d.ts.map +1 -1
- package/lib/typescript/module/types/internal.d.ts +2 -2
- package/lib/typescript/module/types/push.d.ts +2 -2
- package/lib/typescript/module/types/push.d.ts.map +1 -1
- package/lib/typescript/module/utils/param-validation.d.ts +2 -2
- package/lib/typescript/module/utils/param-validation.d.ts.map +1 -1
- package/lib/typescript/module/{customerio-cdp.d.ts → zixflow-cdp.d.ts} +12 -12
- package/lib/typescript/module/zixflow-cdp.d.ts.map +1 -0
- package/lib/typescript/{commonjs/customerio-inapp.d.ts → module/zixflow-inapp.d.ts} +4 -4
- package/lib/typescript/module/zixflow-inapp.d.ts.map +1 -0
- package/lib/typescript/module/{customerio-location.d.ts → zixflow-location.d.ts} +5 -5
- package/lib/typescript/module/zixflow-location.d.ts.map +1 -0
- package/lib/typescript/module/{cio-params.d.ts → zixflow-params.d.ts} +1 -1
- package/lib/typescript/module/zixflow-params.d.ts.map +1 -0
- package/lib/typescript/{commonjs/customerio-push.d.ts → module/zixflow-push.d.ts} +11 -11
- package/lib/typescript/module/zixflow-push.d.ts.map +1 -0
- package/lib/typescript/module/zixflow.d.ts +5 -7
- package/lib/typescript/module/zixflow.d.ts.map +1 -1
- package/package.json +11 -12
- package/src/index.ts +3 -3
- package/src/native-logger-listener.ts +14 -14
- package/src/notification-inbox.ts +5 -5
- package/src/postInstall.js +1 -1
- package/src/specs/modules/{NativeCustomerIO.ts → NativeZixflow.ts} +5 -5
- package/src/specs/modules/{NativeCustomerIOLocation.ts → NativeZixflowLocation.ts} +3 -3
- package/src/specs/modules/NativeZixflowLogging.ts +22 -0
- package/src/specs/modules/{NativeCustomerIOMessagingInApp.ts → NativeZixflowMessagingInApp.ts} +4 -4
- package/src/specs/modules/{NativeCustomerIOMessagingPush.ts → NativeZixflowMessagingPush.ts} +3 -3
- package/src/types/data-pipelines.ts +14 -14
- package/src/types/internal.ts +2 -2
- package/src/types/push.ts +2 -2
- package/src/utils/native-bridge.ts +1 -1
- package/src/utils/param-validation.ts +8 -8
- package/src/{customerio-cdp.ts → zixflow-cdp.ts} +17 -17
- package/src/{customerio-inapp.ts → zixflow-inapp.ts} +6 -6
- package/src/{customerio-location.ts → zixflow-location.ts} +6 -6
- package/src/{customerio-push.ts → zixflow-push.ts} +19 -17
- package/src/zixflow.ts +5 -15
- package/zixflow-reactnative.podspec +16 -22
- package/customerio-reactnative.podspec +0 -60
- package/lib/commonjs/cio-params.js +0 -2
- package/lib/commonjs/cio-params.js.map +0 -1
- package/lib/commonjs/customerio-cdp.js.map +0 -1
- package/lib/commonjs/customerio-inapp.js.map +0 -1
- package/lib/commonjs/customerio-location.js.map +0 -1
- package/lib/commonjs/customerio-push.js.map +0 -1
- package/lib/commonjs/specs/modules/NativeCustomerIO.js.map +0 -1
- package/lib/commonjs/specs/modules/NativeCustomerIOLocation.js.map +0 -1
- package/lib/commonjs/specs/modules/NativeCustomerIOLogging.js +0 -19
- package/lib/commonjs/specs/modules/NativeCustomerIOLogging.js.map +0 -1
- package/lib/commonjs/specs/modules/NativeCustomerIOMessagingInApp.js +0 -16
- package/lib/commonjs/specs/modules/NativeCustomerIOMessagingInApp.js.map +0 -1
- package/lib/commonjs/specs/modules/NativeCustomerIOMessagingPush.js.map +0 -1
- package/lib/module/cio-params.js +0 -2
- package/lib/module/cio-params.js.map +0 -1
- package/lib/module/customerio-cdp.js.map +0 -1
- package/lib/module/customerio-inapp.js.map +0 -1
- package/lib/module/customerio-location.js.map +0 -1
- package/lib/module/customerio-push.js.map +0 -1
- package/lib/module/specs/modules/NativeCustomerIO.js.map +0 -1
- package/lib/module/specs/modules/NativeCustomerIOLocation.js +0 -13
- package/lib/module/specs/modules/NativeCustomerIOLocation.js.map +0 -1
- package/lib/module/specs/modules/NativeCustomerIOLogging.js +0 -18
- package/lib/module/specs/modules/NativeCustomerIOLogging.js.map +0 -1
- package/lib/module/specs/modules/NativeCustomerIOMessagingInApp.js +0 -15
- package/lib/module/specs/modules/NativeCustomerIOMessagingInApp.js.map +0 -1
- package/lib/module/specs/modules/NativeCustomerIOMessagingPush.js +0 -13
- package/lib/module/specs/modules/NativeCustomerIOMessagingPush.js.map +0 -1
- package/lib/typescript/commonjs/cio-params.d.ts.map +0 -1
- package/lib/typescript/commonjs/customerio-cdp.d.ts.map +0 -1
- package/lib/typescript/commonjs/customerio-inapp.d.ts.map +0 -1
- package/lib/typescript/commonjs/customerio-location.d.ts.map +0 -1
- package/lib/typescript/commonjs/customerio-push.d.ts.map +0 -1
- package/lib/typescript/commonjs/specs/modules/NativeCustomerIO.d.ts.map +0 -1
- package/lib/typescript/commonjs/specs/modules/NativeCustomerIOLocation.d.ts.map +0 -1
- package/lib/typescript/commonjs/specs/modules/NativeCustomerIOLogging.d.ts +0 -18
- package/lib/typescript/commonjs/specs/modules/NativeCustomerIOLogging.d.ts.map +0 -1
- package/lib/typescript/commonjs/specs/modules/NativeCustomerIOMessagingInApp.d.ts.map +0 -1
- package/lib/typescript/commonjs/specs/modules/NativeCustomerIOMessagingPush.d.ts.map +0 -1
- package/lib/typescript/module/cio-params.d.ts.map +0 -1
- package/lib/typescript/module/customerio-cdp.d.ts.map +0 -1
- package/lib/typescript/module/customerio-inapp.d.ts.map +0 -1
- package/lib/typescript/module/customerio-location.d.ts.map +0 -1
- package/lib/typescript/module/customerio-push.d.ts.map +0 -1
- package/lib/typescript/module/specs/modules/NativeCustomerIO.d.ts.map +0 -1
- package/lib/typescript/module/specs/modules/NativeCustomerIOLocation.d.ts.map +0 -1
- package/lib/typescript/module/specs/modules/NativeCustomerIOLogging.d.ts +0 -18
- package/lib/typescript/module/specs/modules/NativeCustomerIOLogging.d.ts.map +0 -1
- package/lib/typescript/module/specs/modules/NativeCustomerIOMessagingInApp.d.ts.map +0 -1
- package/lib/typescript/module/specs/modules/NativeCustomerIOMessagingPush.d.ts.map +0 -1
- package/src/specs/modules/NativeCustomerIOLogging.ts +0 -24
- /package/android/{cio-core.gradle → zixflow-core.gradle} +0 -0
- /package/src/{cio-params.ts → zixflow-params.ts} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { default as NativeModule } from "./specs/modules/
|
|
3
|
+
import { default as NativeModule } from "./specs/modules/NativeZixflowLocation.js";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Ensures all methods defined in codegen spec are implemented by the public module
|
|
@@ -16,16 +16,16 @@ const withNativeModule = fn => {
|
|
|
16
16
|
fn(NativeModule);
|
|
17
17
|
} else if (__DEV__ && !hasWarnedNotEnabled) {
|
|
18
18
|
hasWarnedNotEnabled = true;
|
|
19
|
-
console.warn('
|
|
19
|
+
console.warn('Zixflow: Location module is not enabled. ' + 'To use location features, set zixflow_location_enabled=true in ' + 'gradle.properties (Android) or add the location subspec to your Podfile (iOS).');
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
/** @public */
|
|
24
|
-
export class
|
|
24
|
+
export class ZixflowLocation {
|
|
25
25
|
/**
|
|
26
26
|
* Sets the last known location from the host app's existing location system.
|
|
27
27
|
* Use this when your app already manages location and you want to send that data
|
|
28
|
-
* to
|
|
28
|
+
* to Zixflow without the SDK managing location permissions directly.
|
|
29
29
|
*
|
|
30
30
|
* @param latitude - Latitude in degrees, must be between -90 and 90
|
|
31
31
|
* @param longitude - Longitude in degrees, must be between -180 and 180
|
|
@@ -35,7 +35,7 @@ export class CustomerIOLocation {
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
|
-
* Requests a single location update and sends the result to
|
|
38
|
+
* Requests a single location update and sends the result to Zixflow.
|
|
39
39
|
* No-ops if location tracking is disabled or permission is not granted.
|
|
40
40
|
*
|
|
41
41
|
* The SDK does not request location permission. The host app must request
|
|
@@ -45,4 +45,4 @@ export class CustomerIOLocation {
|
|
|
45
45
|
return withNativeModule(native => native.requestLocationUpdate());
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
//# sourceMappingURL=
|
|
48
|
+
//# sourceMappingURL=zixflow-location.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["default","NativeModule","hasWarnedNotEnabled","withNativeModule","fn","__DEV__","console","warn","ZixflowLocation","setLastKnownLocation","latitude","longitude","native","requestLocationUpdate"],"sourceRoot":"../../src","sources":["zixflow-location.ts"],"mappings":";;AACA,SACEA,OAAO,IAAIC,YAAY,QAElB,0CAAuC;;AAE9C;AACA;AACA;AACA;AACA;;AAGA;AACA;AACA,IAAIC,mBAAmB,GAAG,KAAK;AAC/B,MAAMC,gBAAgB,GAAIC,EAAiC,IAAW;EACpE,IAAIH,YAAY,EAAE;IAChBG,EAAE,CAACH,YAAY,CAAC;EAClB,CAAC,MAAM,IAAII,OAAO,IAAI,CAACH,mBAAmB,EAAE;IAC1CA,mBAAmB,GAAG,IAAI;IAC1BI,OAAO,CAACC,IAAI,CACV,2CAA2C,GACzC,iEAAiE,GACjE,gFACJ,CAAC;EACH;AACF,CAAC;;AAED;AACA,OAAO,MAAMC,eAAe,CAA+B;EACzD;AACF;AACA;AACA;AACA;AACA;AACA;AACA;EACEC,oBAAoBA,CAACC,QAAgB,EAAEC,SAAiB,EAAQ;IAC9D,OAAOR,gBAAgB,CAAES,MAAM,IAC7BA,MAAM,CAACH,oBAAoB,CAACC,QAAQ,EAAEC,SAAS,CACjD,CAAC;EACH;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;EACEE,qBAAqBA,CAAA,EAAS;IAC5B,OAAOV,gBAAgB,CAAES,MAAM,IAAKA,MAAM,CAACC,qBAAqB,CAAC,CAAC,CAAC;EACrE;AACF","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../src","sources":["zixflow-params.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { Platform } from 'react-native';
|
|
4
|
-
import
|
|
4
|
+
import NativeZixflowMessagingPush from "./specs/modules/NativeZixflowMessagingPush.js";
|
|
5
5
|
import { callNativeModule, ensureNativeModule } from "./utils/native-bridge.js";
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -10,8 +10,8 @@ import { callNativeModule, ensureNativeModule } from "./utils/native-bridge.js";
|
|
|
10
10
|
* @internal
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
// Reference to the native
|
|
14
|
-
const nativeModule = ensureNativeModule(
|
|
13
|
+
// Reference to the native Zixflow Data Pipelines module for SDK operations
|
|
14
|
+
const nativeModule = ensureNativeModule(NativeZixflowMessagingPush);
|
|
15
15
|
|
|
16
16
|
// Wrapper function that ensures SDK is initialized before calling native methods
|
|
17
17
|
const withNativeModule = fn => {
|
|
@@ -19,10 +19,10 @@ const withNativeModule = fn => {
|
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
/** @public */
|
|
22
|
-
class
|
|
22
|
+
class ZixflowPushMessaging {
|
|
23
23
|
/**
|
|
24
|
-
* Processes push notification received outside the
|
|
25
|
-
* device and tracks
|
|
24
|
+
* Processes push notification received outside the Zixflow SDK. The method displays notification on
|
|
25
|
+
* device and tracks metrics for push notification.
|
|
26
26
|
*
|
|
27
27
|
* @param message - push payload received from FCM. The payload must contain data payload received in push
|
|
28
28
|
* notification.
|
|
@@ -57,7 +57,7 @@ class CustomerIOPushMessaging {
|
|
|
57
57
|
/**
|
|
58
58
|
* Track push notifications metrics using this method.
|
|
59
59
|
* Call this method when a user interacts and taps open the push notification.
|
|
60
|
-
* @param payload -
|
|
60
|
+
* @param payload - Zixflow payload as received from the push notification
|
|
61
61
|
*/
|
|
62
62
|
trackNotificationResponseReceived(payload) {
|
|
63
63
|
// Tracking push notification metrics on Android is handled automatically
|
|
@@ -72,7 +72,7 @@ class CustomerIOPushMessaging {
|
|
|
72
72
|
/**
|
|
73
73
|
* Track push notifications metrics using this method.
|
|
74
74
|
* Call this method when a push notification is received.
|
|
75
|
-
* @param payload -
|
|
75
|
+
* @param payload - Zixflow payload as received from the push notification
|
|
76
76
|
*/
|
|
77
77
|
trackNotificationReceived(payload) {
|
|
78
78
|
// Tracking push notification metrics on Android is handled automatically
|
|
@@ -107,5 +107,5 @@ class CustomerIOPushMessaging {
|
|
|
107
107
|
return Platform.OS === 'android';
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
-
export {
|
|
111
|
-
//# sourceMappingURL=
|
|
110
|
+
export { ZixflowPushMessaging };
|
|
111
|
+
//# sourceMappingURL=zixflow-push.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Platform","NativeZixflowMessagingPush","callNativeModule","ensureNativeModule","nativeModule","withNativeModule","fn","ZixflowPushMessaging","onMessageReceived","message","handleNotificationTrigger","OS","Promise","resolve","native","onBackgroundMessageReceived","notification","trackNotificationResponseReceived","payload","isAndroid","trackNotificationReceived","getRegisteredDeviceToken","showPromptForPushNotifications","options","ios","badge","sound","then","status","getPushPermissionStatus"],"sourceRoot":"../../src","sources":["zixflow-push.ts"],"mappings":";;AAAA,SAASA,QAAQ,QAA0B,cAAc;AACzD,OAAOC,0BAA0B,MAE1B,+CAA4C;AAKnD,SAASC,gBAAgB,EAAEC,kBAAkB,QAAQ,0BAAuB;;AAE5E;AACA;AACA;AACA;AACA;;AAGA;AACA,MAAMC,YAAY,GAAGD,kBAAkB,CAACF,0BAA0B,CAAC;;AAEnE;AACA,MAAMI,gBAAgB,GAAOC,EAA8B,IAAQ;EACjE,OAAOJ,gBAAgB,CAACE,YAAY,EAAEE,EAAE,CAAC;AAC3C,CAAC;;AAED;AACA,MAAMC,oBAAoB,CAA2B;EACnD;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACEC,iBAAiBA,CACfC,OAAY,EACZC,yBAAkC,GAAG,IAAI,EACvB;IAClB,IAAIV,QAAQ,CAACW,EAAE,KAAK,KAAK,EAAE;MACzB;MACA;MACA;MACA;MACA,OAAOC,OAAO,CAACC,OAAO,CAAC,IAAI,CAAC;IAC9B,CAAC,MAAM;MACL,OAAOR,gBAAgB,CAAES,MAAM,IAC7BA,MAAM,CAACN,iBAAiB,CAACC,OAAO,EAAEC,yBAAyB,CAC7D,CAAC;IACH;EACF;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;EACEK,2BAA2BA,CAACN,OAAY,EAAoB;IAC1D,OAAO,IAAI,CAACD,iBAAiB,CAACC,OAAO,EAAE,CAACA,OAAO,CAACO,YAAY,CAAC;EAC/D;;EAEA;AACF;AACA;AACA;AACA;EACEC,iCAAiCA,CAACC,OAAe,EAAE;IACjD;IACA;IACA;IACA,IAAIA,OAAO,IAAI,IAAI,IAAI,IAAI,CAACC,SAAS,CAAC,CAAC,EAAE;MACvC;IACF;IACAd,gBAAgB,CAAES,MAAM,IACtBA,MAAM,CAACG,iCAAiC,CAACC,OAAO,CAClD,CAAC;EACH;;EAEA;AACF;AACA;AACA;AACA;EACEE,yBAAyBA,CAACF,OAAe,EAAE;IACzC;IACA;IACA;IACA,IAAIA,OAAO,IAAI,IAAI,IAAI,IAAI,CAACC,SAAS,CAAC,CAAC,EAAE;MACvC;IACF;IACAd,gBAAgB,CAAES,MAAM,IAAKA,MAAM,CAACM,yBAAyB,CAACF,OAAO,CAAC,CAAC;EACzE;;EAEA;AACF;AACA;AACA;AACA;EACEG,wBAAwBA,CAAA,EAAoB;IAC1C,OAAOhB,gBAAgB,CAAES,MAAM,IAAKA,MAAM,CAACO,wBAAwB,CAAC,CAAC,CAAC;EACxE;EAEAC,8BAA8BA,CAC5BC,OAAqC,GAAG;IACtCC,GAAG,EAAE;MAAEC,KAAK,EAAE,IAAI;MAAEC,KAAK,EAAE;IAAK;EAClC,CAAC,EACqC;IACtC,OAAOrB,gBAAgB,CAAES,MAAM,IAC7BA,MAAM,CAACQ,8BAA8B,CAACC,OAAO,CAC/C,CAAC,CAACI,IAAI,CAAEC,MAAM,IAAKA,MAAqC,CAAC;EAC3D;EAEAC,uBAAuBA,CAAA,EAAyC;IAC9D,OAAOxB,gBAAgB,CAAES,MAAM,IAAKA,MAAM,CAACe,uBAAuB,CAAC,CAAC,CAAC,CAACF,IAAI,CACvEC,MAAM,IAAKA,MACd,CAAC;EACH;EAEAT,SAASA,CAAA,EAAY;IACnB,OAAOnB,QAAQ,CAACW,EAAE,KAAK,SAAS;EAClC;AACF;AAEA,SAASJ,oBAAoB","ignoreList":[]}
|
package/lib/module/zixflow.js
CHANGED
|
@@ -3,21 +3,15 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Zixflow SDK - Main entry point
|
|
5
5
|
*
|
|
6
|
-
* This provides the Zixflow-branded API
|
|
6
|
+
* This provides the Zixflow-branded API.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
// Re-export the CustomerIO class as Zixflow for branding
|
|
15
|
-
export const Zixflow = CustomerIO;
|
|
9
|
+
export { Zixflow } from "./zixflow-cdp.js";
|
|
10
|
+
export { ZixflowInAppMessaging } from "./zixflow-inapp.js";
|
|
11
|
+
export { ZixflowLocation } from "./zixflow-location.js";
|
|
12
|
+
export { ZixflowPushMessaging } from "./zixflow-push.js";
|
|
16
13
|
|
|
17
14
|
// Re-export all types and utilities
|
|
18
15
|
export * from "./types/index.js";
|
|
19
16
|
export * from "./notification-inbox.js";
|
|
20
|
-
|
|
21
|
-
// Export sub-modules with their original names (they work with the main Zixflow class)
|
|
22
|
-
export { CustomerIOInAppMessaging, CustomerIOLocation, CustomerIOPushMessaging };
|
|
23
17
|
//# sourceMappingURL=zixflow.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["Zixflow","ZixflowInAppMessaging","ZixflowLocation","ZixflowPushMessaging"],"sourceRoot":"../../src","sources":["zixflow.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;;AAEA,SAASA,OAAO,QAAQ,kBAAe;AACvC,SAASC,qBAAqB,QAAQ,oBAAiB;AACvD,SAASC,eAAe,QAAQ,uBAAoB;AACpD,SAASC,oBAAoB,QAAQ,mBAAgB;;AAErD;AACA,cAAc,kBAAS;AACvB,cAAc,yBAAsB","ignoreList":[]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file serves as the entry point for the module zixflow-reactnative.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* Zixflow React Native SDK - A powerful SDK for building
|
|
5
|
+
* customer engagement features in React Native applications.
|
|
6
6
|
*/
|
|
7
7
|
export * from './zixflow';
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"native-logger-listener.d.ts","sourceRoot":"","sources":["../../../src/native-logger-listener.ts"],"names":[],"mappings":"AAeA,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,MAAM,CAAC,aAAa,CAAS;IAErC,OAAO,CAAC,MAAM,CAAC,YAAY,
|
|
1
|
+
{"version":3,"file":"native-logger-listener.d.ts","sourceRoot":"","sources":["../../../src/native-logger-listener.ts"],"names":[],"mappings":"AAeA,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,MAAM,CAAC,aAAa,CAAS;IAErC,OAAO,CAAC,MAAM,CAAC,YAAY,CAAgB;WAE9B,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAiDxC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO;IAO5C,MAAM,CAAC,gBAAgB;CAOxB"}
|
|
@@ -15,7 +15,7 @@ interface NotificationInboxPublicSpec {
|
|
|
15
15
|
trackMessageClicked(message: InboxMessage, actionName?: string): void;
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
|
-
* Native inbox methods from CodegenSpec that should be excluded from
|
|
18
|
+
* Native inbox methods from CodegenSpec that should be excluded from ZixflowInAppMessaging.
|
|
19
19
|
* Includes both public methods (in NotificationInboxPublicSpec) and internal methods.
|
|
20
20
|
*
|
|
21
21
|
* @internal
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { type TurboModule } from 'react-native';
|
|
2
2
|
import type { UnsafeObject } from 'react-native/Libraries/Types/CodegenTypes';
|
|
3
3
|
/**
|
|
4
|
-
* Native module specification for
|
|
4
|
+
* Native module specification for Zixflow React Native SDK
|
|
5
5
|
*
|
|
6
|
-
* This module defines the TurboModule interface for
|
|
6
|
+
* This module defines the TurboModule interface for Zixflow SDK native bridge.
|
|
7
7
|
* Types use basic primitives for React Native Codegen compatibility, while the public
|
|
8
8
|
* API layer provides more specific TypeScript types for better developer experience.
|
|
9
9
|
*
|
|
@@ -19,14 +19,14 @@ import type { UnsafeObject } from 'react-native/Libraries/Types/CodegenTypes';
|
|
|
19
19
|
*
|
|
20
20
|
* Used for all complex data structures passed to native methods to ensure
|
|
21
21
|
* React Native Codegen compatibility. The public API layer converts these
|
|
22
|
-
* to proper TypeScript types (CustomAttributes,
|
|
22
|
+
* to proper TypeScript types (CustomAttributes, ZixflowConfig, etc.) for
|
|
23
23
|
* better type safety and developer experience.
|
|
24
24
|
*
|
|
25
25
|
* @internal - Not exported to avoid conflicts with public API types
|
|
26
26
|
*/
|
|
27
27
|
type NativeBridgeObject = UnsafeObject;
|
|
28
28
|
/**
|
|
29
|
-
* TurboModule specification for
|
|
29
|
+
* TurboModule specification for Zixflow SDK native bridge methods.
|
|
30
30
|
* Uses generic Object types for React Native Codegen compatibility.
|
|
31
31
|
*/
|
|
32
32
|
export interface Spec extends TurboModule {
|
|
@@ -43,4 +43,4 @@ export interface Spec extends TurboModule {
|
|
|
43
43
|
}
|
|
44
44
|
declare const _default: Spec;
|
|
45
45
|
export default _default;
|
|
46
|
-
//# sourceMappingURL=
|
|
46
|
+
//# sourceMappingURL=NativeZixflow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NativeZixflow.d.ts","sourceRoot":"","sources":["../../../../../src/specs/modules/NativeZixflow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AACrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AAE9E;;;;;;;;;;;;;GAaG;AAEH;;;;;;;;;GASG;AACH,KAAK,kBAAkB,GAAG,YAAY,CAAC;AAMvC;;;GAGG;AACH,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,UAAU,CACR,MAAM,EAAE,kBAAkB,EAC1B,IAAI,EAAE,kBAAkB,GACvB,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB,QAAQ,CAAC,MAAM,CAAC,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAC5C,aAAa,IAAI,IAAI,CAAC;IACtB,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAC3D,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAC7D,oBAAoB,CAAC,UAAU,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAC3D,mBAAmB,CAAC,UAAU,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAC1D,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACzC,WAAW,CAAC,UAAU,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1E,iBAAiB,IAAI,IAAI,CAAC;CAC3B;;AAED,wBAAuE"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type TurboModule } from 'react-native';
|
|
2
2
|
/**
|
|
3
|
-
* Native module specification for
|
|
3
|
+
* Native module specification for Zixflow Location React Native SDK
|
|
4
4
|
*
|
|
5
|
-
* @see
|
|
5
|
+
* @see NativeZixflow.ts for detailed documentation on TurboModule patterns,
|
|
6
6
|
* Codegen compatibility, and type safety approach.
|
|
7
7
|
*/
|
|
8
8
|
export interface Spec extends TurboModule {
|
|
@@ -11,4 +11,4 @@ export interface Spec extends TurboModule {
|
|
|
11
11
|
}
|
|
12
12
|
declare const _default: Spec | null;
|
|
13
13
|
export default _default;
|
|
14
|
-
//# sourceMappingURL=
|
|
14
|
+
//# sourceMappingURL=NativeZixflowLocation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NativeZixflowLocation.d.ts","sourceRoot":"","sources":["../../../../../src/specs/modules/NativeZixflowLocation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAErE;;;;;GAKG;AAEH,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,oBAAoB,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAChE,qBAAqB,IAAI,IAAI,CAAC;CAC/B;;AAED,wBAAsE"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type TurboModule } from 'react-native';
|
|
2
|
+
import type { EventEmitter, UnsafeObject } from 'react-native/Libraries/Types/CodegenTypes';
|
|
3
|
+
/**
|
|
4
|
+
* Native module specification for Zixflow Logging React Native SDK
|
|
5
|
+
*
|
|
6
|
+
* This module defines the TurboModule interface for Zixflow logging bridge.
|
|
7
|
+
* Used internally for printing logs to React Native environment instead of native.
|
|
8
|
+
*
|
|
9
|
+
* @see NativeZixflow.ts for detailed documentation on TurboModule patterns,
|
|
10
|
+
* Codegen compatibility, and type safety approach.
|
|
11
|
+
*/
|
|
12
|
+
/** TurboModule interface for Zixflow logging native operations */
|
|
13
|
+
export interface Spec extends TurboModule {
|
|
14
|
+
readonly onZixflowLogEvent: EventEmitter<UnsafeObject>;
|
|
15
|
+
}
|
|
16
|
+
declare const _default: Spec;
|
|
17
|
+
export default _default;
|
|
18
|
+
//# sourceMappingURL=NativeZixflowLogging.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NativeZixflowLogging.d.ts","sourceRoot":"","sources":["../../../../../src/specs/modules/NativeZixflowLogging.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AACrE,OAAO,KAAK,EACV,YAAY,EACZ,YAAY,EACb,MAAM,2CAA2C,CAAC;AAEnD;;;;;;;;GAQG;AAEH,kEAAkE;AAClE,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,QAAQ,CAAC,iBAAiB,EAAE,YAAY,CAAC,YAAY,CAAC,CAAC;CACxD;;AAED,wBAA8E"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { type TurboModule } from 'react-native';
|
|
2
2
|
import type { EventEmitter, UnsafeObject } from 'react-native/Libraries/Types/CodegenTypes';
|
|
3
3
|
/**
|
|
4
|
-
* Native module specification for
|
|
4
|
+
* Native module specification for Zixflow In-App Messaging React Native SDK
|
|
5
5
|
*
|
|
6
|
-
* @see
|
|
6
|
+
* @see NativeZixflow.ts for detailed documentation on TurboModule patterns,
|
|
7
7
|
* Codegen compatibility, and type safety approach.
|
|
8
8
|
*/
|
|
9
|
-
/** TurboModule interface for
|
|
9
|
+
/** TurboModule interface for Zixflow In-App Messaging native operations */
|
|
10
10
|
export interface Spec extends TurboModule {
|
|
11
11
|
dismissMessage(): void;
|
|
12
12
|
readonly onInAppEventReceived: EventEmitter<UnsafeObject>;
|
|
@@ -20,4 +20,4 @@ export interface Spec extends TurboModule {
|
|
|
20
20
|
}
|
|
21
21
|
declare const _default: Spec;
|
|
22
22
|
export default _default;
|
|
23
|
-
//# sourceMappingURL=
|
|
23
|
+
//# sourceMappingURL=NativeZixflowMessagingInApp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NativeZixflowMessagingInApp.d.ts","sourceRoot":"","sources":["../../../../../src/specs/modules/NativeZixflowMessagingInApp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AACrE,OAAO,KAAK,EACV,YAAY,EACZ,YAAY,EACb,MAAM,2CAA2C,CAAC;AAEnD;;;;;GAKG;AAEH,2EAA2E;AAC3E,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,cAAc,IAAI,IAAI,CAAC;IACvB,QAAQ,CAAC,oBAAoB,EAAE,YAAY,CAAC,YAAY,CAAC,CAAC;IAE1D,kBAAkB,IAAI,IAAI,CAAC;IAC3B,QAAQ,CAAC,0BAA0B,EAAE,YAAY,CAAC,YAAY,CAAC,CAAC;IAChE,WAAW,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC,CAAC;IACrD,iBAAiB,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI,CAAC;IAC/C,mBAAmB,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI,CAAC;IACjD,kBAAkB,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI,CAAC;IAChD,mBAAmB,CAAC,OAAO,EAAE,YAAY,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvE;;AAED,wBAEE"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { type TurboModule } from 'react-native';
|
|
2
2
|
import type { UnsafeObject } from 'react-native/Libraries/Types/CodegenTypes';
|
|
3
3
|
/**
|
|
4
|
-
* Native module specification for
|
|
4
|
+
* Native module specification for Zixflow Push Messaging React Native SDK
|
|
5
5
|
*
|
|
6
|
-
* @see
|
|
6
|
+
* @see NativeZixflow.ts for detailed documentation on TurboModule patterns,
|
|
7
7
|
* Codegen compatibility, and type safety approach.
|
|
8
8
|
*/
|
|
9
9
|
type NativeBridgeObject = UnsafeObject;
|
|
@@ -17,4 +17,4 @@ export interface Spec extends TurboModule {
|
|
|
17
17
|
}
|
|
18
18
|
declare const _default: Spec;
|
|
19
19
|
export default _default;
|
|
20
|
-
//# sourceMappingURL=
|
|
20
|
+
//# sourceMappingURL=NativeZixflowMessagingPush.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NativeZixflowMessagingPush.d.ts","sourceRoot":"","sources":["../../../../../src/specs/modules/NativeZixflowMessagingPush.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AACrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AAE9E;;;;;GAKG;AAEH,KAAK,kBAAkB,GAAG,YAAY,CAAC;AAEvC,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,iBAAiB,CACf,OAAO,EAAE,kBAAkB,EAC3B,yBAAyB,EAAE,OAAO,GACjC,OAAO,CAAC,OAAO,CAAC,CAAC;IACpB,iCAAiC,CAAC,OAAO,EAAE,kBAAkB,GAAG,IAAI,CAAC;IACrE,yBAAyB,CAAC,OAAO,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAC7D,wBAAwB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAC5C,8BAA8B,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC7E,uBAAuB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;CAC5C;;AAED,wBAEE"}
|
|
@@ -2,7 +2,7 @@ import type { PushClickBehaviorAndroid } from './push';
|
|
|
2
2
|
/**
|
|
3
3
|
* Key-value pairs for custom user attributes and event properties.
|
|
4
4
|
*
|
|
5
|
-
* Provides a type-safe interface for passing custom data to
|
|
5
|
+
* Provides a type-safe interface for passing custom data to Zixflow.
|
|
6
6
|
* While the native bridge uses generic Object types for Codegen compatibility,
|
|
7
7
|
* this type gives developers better TypeScript intellisense and validation.
|
|
8
8
|
*
|
|
@@ -19,7 +19,7 @@ import type { PushClickBehaviorAndroid } from './push';
|
|
|
19
19
|
*/
|
|
20
20
|
export type CustomAttributes = Record<string, any>;
|
|
21
21
|
/**
|
|
22
|
-
* Parameters for identifying a user in
|
|
22
|
+
* Parameters for identifying a user in Zixflow.
|
|
23
23
|
*
|
|
24
24
|
* @param userId - Unique identifier for the user (email, username, etc.)
|
|
25
25
|
* @param traits - Additional user attributes and properties
|
|
@@ -31,9 +31,9 @@ export interface IdentifyParams {
|
|
|
31
31
|
traits?: CustomAttributes;
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
|
-
* Configuration options for initializing the
|
|
34
|
+
* Configuration options for initializing the Zixflow SDK.
|
|
35
35
|
*
|
|
36
|
-
* @param cdpApiKey - Customer Data Platform API key from
|
|
36
|
+
* @param cdpApiKey - Customer Data Platform API key from Zixflow dashboard
|
|
37
37
|
* @param migrationSiteId - Legacy site ID for migrating from tracking API
|
|
38
38
|
* @param region - Data center region (US or EU)
|
|
39
39
|
* @param logLevel - SDK logging verbosity level
|
|
@@ -49,11 +49,11 @@ export interface IdentifyParams {
|
|
|
49
49
|
*
|
|
50
50
|
* @public
|
|
51
51
|
*/
|
|
52
|
-
export type
|
|
52
|
+
export type ZixflowConfig = {
|
|
53
53
|
cdpApiKey: string;
|
|
54
54
|
migrationSiteId?: string;
|
|
55
|
-
region?:
|
|
56
|
-
logLevel?:
|
|
55
|
+
region?: ZixflowRegion;
|
|
56
|
+
logLevel?: ZixflowLogLevel;
|
|
57
57
|
apiHost?: string;
|
|
58
58
|
cdnHost?: string;
|
|
59
59
|
flushAt?: number;
|
|
@@ -71,17 +71,17 @@ export type CioConfig = {
|
|
|
71
71
|
};
|
|
72
72
|
location?: {
|
|
73
73
|
/** Location tracking mode. Defaults to 'manual' if location config is provided. */
|
|
74
|
-
trackingMode?:
|
|
74
|
+
trackingMode?: ZixflowLocationTrackingMode;
|
|
75
75
|
};
|
|
76
76
|
};
|
|
77
77
|
/**
|
|
78
|
-
* Log levels for
|
|
78
|
+
* Log levels for Zixflow SDK debugging and monitoring.
|
|
79
79
|
*
|
|
80
80
|
* Controls the verbosity of SDK logging output for debugging purposes.
|
|
81
81
|
*
|
|
82
82
|
* @public
|
|
83
83
|
*/
|
|
84
|
-
export declare enum
|
|
84
|
+
export declare enum ZixflowLogLevel {
|
|
85
85
|
/** No logging output */
|
|
86
86
|
None = "none",
|
|
87
87
|
/** Only error messages */
|
|
@@ -92,11 +92,11 @@ export declare enum CioLogLevel {
|
|
|
92
92
|
Debug = "debug"
|
|
93
93
|
}
|
|
94
94
|
/**
|
|
95
|
-
* Data center regions for
|
|
95
|
+
* Data center regions for Zixflow API endpoints.
|
|
96
96
|
*
|
|
97
97
|
* @public
|
|
98
98
|
*/
|
|
99
|
-
export declare enum
|
|
99
|
+
export declare enum ZixflowRegion {
|
|
100
100
|
US = "US",
|
|
101
101
|
EU = "EU"
|
|
102
102
|
}
|
|
@@ -115,11 +115,11 @@ export declare enum ScreenView {
|
|
|
115
115
|
InApp = "inApp"
|
|
116
116
|
}
|
|
117
117
|
/**
|
|
118
|
-
* Location tracking mode for the
|
|
118
|
+
* Location tracking mode for the Zixflow Location module.
|
|
119
119
|
*
|
|
120
120
|
* @public
|
|
121
121
|
*/
|
|
122
|
-
export declare enum
|
|
122
|
+
export declare enum ZixflowLocationTrackingMode {
|
|
123
123
|
/** Location tracking is disabled. All location operations no-op. */
|
|
124
124
|
Off = "OFF",
|
|
125
125
|
/** Host app controls when location is captured (default when location config is provided). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-pipelines.d.ts","sourceRoot":"","sources":["../../../../src/types/data-pipelines.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,QAAQ,CAAC;AAEvD;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAEnD;;;;;;;GAOG;AACH,MAAM,WAAW,cAAc;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,gBAAgB,CAAC;CAC3B;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"data-pipelines.d.ts","sourceRoot":"","sources":["../../../../src/types/data-pipelines.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,QAAQ,CAAC;AAEvD;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAEnD;;;;;;;GAOG;AACH,MAAM,WAAW,cAAc;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,gBAAgB,CAAC;CAC3B;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,QAAQ,CAAC,EAAE,eAAe,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,UAAU,CAAC;IAC3B,+BAA+B,CAAC,EAAE,OAAO,CAAC;IAC1C,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,KAAK,CAAC,EAAE;QACN,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,IAAI,CAAC,EAAE;QACL,OAAO,CAAC,EAAE;YACR,iBAAiB,CAAC,EAAE,wBAAwB,CAAC;SAC9C,CAAC;KACH,CAAC;IACF,QAAQ,CAAC,EAAE;QACT,mFAAmF;QACnF,YAAY,CAAC,EAAE,2BAA2B,CAAC;KAC5C,CAAC;CACH,CAAC;AAEF;;;;;;GAMG;AACH,oBAAY,eAAe;IACzB,wBAAwB;IACxB,IAAI,SAAS;IACb,0BAA0B;IAC1B,KAAK,UAAU;IACf,uCAAuC;IACvC,IAAI,SAAS;IACb,+CAA+C;IAC/C,KAAK,UAAU;CAChB;AAED;;;;GAIG;AACH,oBAAY,aAAa;IACvB,EAAE,OAAO;IACT,EAAE,OAAO;CACV;AAED;;;;;;;GAOG;AACH,oBAAY,UAAU;IACpB,qEAAqE;IACrE,GAAG,QAAQ;IACX,+DAA+D;IAC/D,KAAK,UAAU;CAChB;AAED;;;;GAIG;AACH,oBAAY,2BAA2B;IACrC,oEAAoE;IACpE,GAAG,QAAQ;IACX,8FAA8F;IAC9F,MAAM,WAAW;IACjB,kFAAkF;IAClF,UAAU,iBAAiB;CAC5B;AAED;;;;GAIG;AACH,oBAAY,WAAW;IACrB,oDAAoD;IACpD,SAAS,cAAc;IACvB,+CAA+C;IAC/C,MAAM,WAAW;IACjB,iDAAiD;IACjD,SAAS,cAAc;CACxB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Internal-only types used within the
|
|
2
|
+
* Internal-only types used within the Zixflow React Native SDK implementation.
|
|
3
3
|
*
|
|
4
4
|
* Not intended for public use.
|
|
5
5
|
*/
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* Arguments passed to native SDK for package identification.
|
|
8
8
|
*
|
|
9
9
|
* Provides metadata about the host environment and SDK version to native
|
|
10
|
-
*
|
|
10
|
+
* Zixflow SDK for debugging and analytics.
|
|
11
11
|
*
|
|
12
12
|
* @internal
|
|
13
13
|
*/
|
|
@@ -22,7 +22,7 @@ export declare enum PushClickBehaviorAndroid {
|
|
|
22
22
|
*
|
|
23
23
|
* @public
|
|
24
24
|
*/
|
|
25
|
-
export type
|
|
25
|
+
export type ZixflowPushPermissionOptions = {
|
|
26
26
|
ios?: {
|
|
27
27
|
/** Request permission to show badge numbers on app icon */
|
|
28
28
|
badge: boolean;
|
|
@@ -38,7 +38,7 @@ export type CioPushPermissionOptions = {
|
|
|
38
38
|
*
|
|
39
39
|
* @public
|
|
40
40
|
*/
|
|
41
|
-
export declare enum
|
|
41
|
+
export declare enum ZixflowPushPermissionStatus {
|
|
42
42
|
/** User has granted push notification permissions */
|
|
43
43
|
Granted = "GRANTED",
|
|
44
44
|
/** User has denied push notification permissions */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"push.d.ts","sourceRoot":"","sources":["../../../../src/types/push.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,oBAAY,wBAAwB;IAClC,oDAAoD;IACpD,cAAc,qBAAqB;IACnC,mDAAmD;IACnD,sBAAsB,6BAA6B;IACnD,iDAAiD;IACjD,eAAe,sBAAsB;CACtC;AAED;;;;;;;GAOG;AACH,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"push.d.ts","sourceRoot":"","sources":["../../../../src/types/push.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,oBAAY,wBAAwB;IAClC,oDAAoD;IACpD,cAAc,qBAAqB;IACnC,mDAAmD;IACnD,sBAAsB,6BAA6B;IACnD,iDAAiD;IACjD,eAAe,sBAAsB;CACtC;AAED;;;;;;;GAOG;AACH,MAAM,MAAM,4BAA4B,GAAG;IACzC,GAAG,CAAC,EAAE;QACJ,2DAA2D;QAC3D,KAAK,EAAE,OAAO,CAAC;QACf,qDAAqD;QACrD,KAAK,EAAE,OAAO,CAAC;KAChB,CAAC;CACH,CAAC;AAEF;;;;;;;GAOG;AACH,oBAAY,2BAA2B;IACrC,qDAAqD;IACrD,OAAO,YAAY;IACnB,oDAAoD;IACpD,MAAM,WAAW;IACjB,wFAAwF;IACxF,aAAa,kBAAkB;CAChC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ZixflowConfig, CustomAttributes } from '../types';
|
|
2
2
|
/**
|
|
3
3
|
* Returns true if the value is undefined or null.
|
|
4
4
|
*/
|
|
@@ -30,7 +30,7 @@ declare function validateAttributes(value: unknown, fieldName: string, options?:
|
|
|
30
30
|
expectedType?: string;
|
|
31
31
|
optional?: boolean;
|
|
32
32
|
}): CustomAttributes | undefined;
|
|
33
|
-
type ConfigValidator = (value: unknown) => asserts value is
|
|
33
|
+
type ConfigValidator = (value: unknown) => asserts value is ZixflowConfig;
|
|
34
34
|
export declare const assert: {
|
|
35
35
|
string: typeof validateString;
|
|
36
36
|
record: typeof validateRecord;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"param-validation.d.ts","sourceRoot":"","sources":["../../../../src/utils/param-validation.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"param-validation.d.ts","sourceRoot":"","sources":["../../../../src/utils/param-validation.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAchE;;GAEG;AACH,iBAAS,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAE5C;AA0BD;;;GAGG;AACH,iBAAS,cAAc,CACrB,KAAK,EAAE,OAAO,EACd,SAAS,EAAE,MAAM,EACjB,OAAO,GAAE;IACP,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;CACG,QAqBzB;AAED;;GAEG;AACH,iBAAS,cAAc,CACrB,KAAK,EAAE,OAAO,EACd,SAAS,EAAE,MAAM,EACjB,OAAO,GAAE;IACP,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACf,QAeP;AAED;;;;GAIG;AACH,iBAAS,kBAAkB,CACzB,KAAK,EAAE,OAAO,EACd,SAAS,EAAE,MAAM,EACjB,OAAO,GAAE;IACP,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACf,GACL,gBAAgB,GAAG,SAAS,CAe9B;AAwBD,KAAK,eAAe,GAAG,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC,KAAK,IAAI,aAAa,CAAC;AAE1E,eAAO,MAAM,MAAM,EAAE;IACnB,MAAM,EAAE,OAAO,cAAc,CAAC;IAC9B,MAAM,EAAE,OAAO,cAAc,CAAC;IAC9B,UAAU,EAAE,OAAO,kBAAkB,CAAC;IACtC,MAAM,EAAE,eAAe,CAAC;CAMzB,CAAC;AAEF,eAAO,MAAM,QAAQ;;CAEpB,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { MetricEvent, type
|
|
1
|
+
import { ZixflowInAppMessaging } from './zixflow-inapp';
|
|
2
|
+
import { ZixflowLocation } from './zixflow-location';
|
|
3
|
+
import { ZixflowPushMessaging } from './zixflow-push';
|
|
4
|
+
import { MetricEvent, type ZixflowConfig, type IdentifyParams } from './types';
|
|
5
5
|
/** @public */
|
|
6
|
-
export declare class
|
|
7
|
-
/** Initialize the
|
|
8
|
-
static readonly initialize: (config:
|
|
6
|
+
export declare class Zixflow {
|
|
7
|
+
/** Initialize the Zixflow SDK with given configuration. */
|
|
8
|
+
static readonly initialize: (config: ZixflowConfig) => Promise<void>;
|
|
9
9
|
/** Identify a user to start tracking their activity. Requires userId, traits, or both. */
|
|
10
10
|
static readonly identify: ({ userId, traits, }?: IdentifyParams) => Promise<any>;
|
|
11
11
|
/** Clear current user identification and stop tracking. */
|
|
@@ -29,12 +29,12 @@ export declare class CustomerIO {
|
|
|
29
29
|
event: MetricEvent;
|
|
30
30
|
}) => Promise<void>;
|
|
31
31
|
/**
|
|
32
|
-
* Check if the
|
|
32
|
+
* Check if the Zixflow SDK has been initialized.
|
|
33
33
|
* @deprecated This method will be removed in a future version. If you need this functionality, please contact us.
|
|
34
34
|
*/
|
|
35
35
|
static readonly isInitialized: () => boolean;
|
|
36
|
-
static readonly inAppMessaging:
|
|
37
|
-
static readonly location:
|
|
38
|
-
static readonly pushMessaging:
|
|
36
|
+
static readonly inAppMessaging: ZixflowInAppMessaging;
|
|
37
|
+
static readonly location: ZixflowLocation;
|
|
38
|
+
static readonly pushMessaging: ZixflowPushMessaging;
|
|
39
39
|
}
|
|
40
|
-
//# sourceMappingURL=
|
|
40
|
+
//# sourceMappingURL=zixflow-cdp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zixflow-cdp.d.ts","sourceRoot":"","sources":["../../../src/zixflow-cdp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAMtD,OAAO,EAEL,WAAW,EACX,KAAK,aAAa,EAElB,KAAK,cAAc,EACpB,MAAM,SAAS,CAAC;AAkBjB,cAAc;AACd,qBAAa,OAAO;IAClB,2DAA2D;IAC3D,MAAM,CAAC,QAAQ,CAAC,UAAU,GAAU,QAAQ,aAAa,mBAmBvD;IAEF,0FAA0F;IAC1F,MAAM,CAAC,QAAQ,CAAC,QAAQ,GAAU,sBAG/B,cAAmB,kBAkBpB;IAEF,2DAA2D;IAC3D,MAAM,CAAC,QAAQ,CAAC,aAAa,qBAE3B;IAEF,+CAA+C;IAC/C,MAAM,CAAC,QAAQ,CAAC,KAAK,GACnB,MAAM,MAAM,EACZ,aAAa,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,kBAWhC;IAEF,0DAA0D;IAC1D,MAAM,CAAC,QAAQ,CAAC,MAAM,GACpB,OAAO,MAAM,EACb,aAAa,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,kBAWhC;IAEF,0EAA0E;IAC1E,MAAM,CAAC,QAAQ,CAAC,oBAAoB,GAClC,YAAY,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,kBAS/B;IAEF,6CAA6C;IAC7C,MAAM,CAAC,QAAQ,CAAC,mBAAmB,GACjC,YAAY,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,kBAS/B;IAEF,sDAAsD;IACtD,MAAM,CAAC,QAAQ,CAAC,mBAAmB,GAAU,OAAO,MAAM,mBAIxD;IAEF,4EAA4E;IAC5E,MAAM,CAAC,QAAQ,CAAC,iBAAiB,sBAE/B;IAEF,kFAAkF;IAClF,MAAM,CAAC,QAAQ,CAAC,WAAW,GAAU,qCAIlC;QACD,UAAU,EAAE,MAAM,CAAC;QACnB,WAAW,EAAE,MAAM,CAAC;QACpB,KAAK,EAAE,WAAW,CAAC;KACpB,mBAQC;IAEF;;;OAGG;IACH,MAAM,CAAC,QAAQ,CAAC,aAAa,gBAAsB;IAEnD,MAAM,CAAC,QAAQ,CAAC,cAAc,wBAA+B;IAC7D,MAAM,CAAC,QAAQ,CAAC,QAAQ,kBAAyB;IACjD,MAAM,CAAC,QAAQ,CAAC,aAAa,uBAA8B;CAC5D"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type EventSubscription, type TurboModule } from 'react-native';
|
|
2
2
|
import { InlineInAppMessageView } from './components';
|
|
3
3
|
import { NotificationInbox, type NotificationInboxSpec } from './notification-inbox';
|
|
4
|
-
import { type Spec as CodegenSpec } from './specs/modules/
|
|
4
|
+
import { type Spec as CodegenSpec } from './specs/modules/NativeZixflowMessagingInApp';
|
|
5
5
|
import type { InAppMessageEventType } from './types';
|
|
6
6
|
/**
|
|
7
7
|
* Ensures all methods defined in codegen spec are implemented by the public module
|
|
@@ -15,7 +15,7 @@ interface NativeInAppSpec extends Omit<CodegenSpec, keyof TurboModule | Notifica
|
|
|
15
15
|
*
|
|
16
16
|
* @public
|
|
17
17
|
*/
|
|
18
|
-
declare class
|
|
18
|
+
declare class ZixflowInAppMessaging implements NativeInAppSpec {
|
|
19
19
|
private _notificationInbox?;
|
|
20
20
|
registerEventsListener(listener: (event: InAppMessageEvent) => void): EventSubscription;
|
|
21
21
|
/**
|
|
@@ -44,5 +44,5 @@ declare class InAppMessageEvent {
|
|
|
44
44
|
export type { InlineInAppMessageViewProps } from './components';
|
|
45
45
|
export { NotificationInbox } from './notification-inbox';
|
|
46
46
|
export type { InboxMessage, NotificationInboxChangeListener } from './types';
|
|
47
|
-
export {
|
|
48
|
-
//# sourceMappingURL=
|
|
47
|
+
export { ZixflowInAppMessaging, InAppMessageEvent, InlineInAppMessageView };
|
|
48
|
+
//# sourceMappingURL=zixflow-inapp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zixflow-inapp.d.ts","sourceRoot":"","sources":["../../../src/zixflow-inapp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AACxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAEtD,OAAO,EACL,iBAAiB,EACjB,KAAK,qBAAqB,EAC3B,MAAM,sBAAsB,CAAC;AAC9B,OAAoC,EAClC,KAAK,IAAI,IAAI,WAAW,EACzB,MAAM,6CAA6C,CAAC;AACrD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAGrD;;;;GAIG;AACH,UAAU,eAAgB,SAAQ,IAAI,CACpC,WAAW,EACX,MAAM,WAAW,GAAG,qBAAqB,GAAG,sBAAsB,CACnE;CAAG;AAUJ;;;;GAIG;AACH,cAAM,qBAAsB,YAAW,eAAe;IACpD,OAAO,CAAC,kBAAkB,CAAC,CAAoB;IAE/C,sBAAsB,CACpB,QAAQ,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,GAC3C,iBAAiB;IAmCpB;;OAEG;IACH,cAAc;IAId;;;;OAIG;IACH,KAAK,IAAI,iBAAiB;CAM3B;AAED;;GAEG;AACH,cAAc;AACd,cAAM,iBAAiB;IACrB,SAAS,EAAE,qBAAqB,CAAC;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;gBAGlB,SAAS,EAAE,qBAAqB,EAChC,SAAS,EAAE,MAAM,EACjB,UAAU,CAAC,EAAE,MAAM,EACnB,WAAW,CAAC,EAAE,MAAM,EACpB,UAAU,CAAC,EAAE,MAAM;CAQtB;AAGD,YAAY,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,YAAY,EAAE,YAAY,EAAE,+BAA+B,EAAE,MAAM,SAAS,CAAC;AAC7E,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type TurboModule } from 'react-native';
|
|
2
|
-
import { type Spec as CodegenSpec } from './specs/modules/
|
|
2
|
+
import { type Spec as CodegenSpec } from './specs/modules/NativeZixflowLocation';
|
|
3
3
|
/**
|
|
4
4
|
* Ensures all methods defined in codegen spec are implemented by the public module
|
|
5
5
|
*
|
|
@@ -8,18 +8,18 @@ import { type Spec as CodegenSpec } from './specs/modules/NativeCustomerIOLocati
|
|
|
8
8
|
interface NativeLocationSpec extends Omit<CodegenSpec, keyof TurboModule> {
|
|
9
9
|
}
|
|
10
10
|
/** @public */
|
|
11
|
-
export declare class
|
|
11
|
+
export declare class ZixflowLocation implements NativeLocationSpec {
|
|
12
12
|
/**
|
|
13
13
|
* Sets the last known location from the host app's existing location system.
|
|
14
14
|
* Use this when your app already manages location and you want to send that data
|
|
15
|
-
* to
|
|
15
|
+
* to Zixflow without the SDK managing location permissions directly.
|
|
16
16
|
*
|
|
17
17
|
* @param latitude - Latitude in degrees, must be between -90 and 90
|
|
18
18
|
* @param longitude - Longitude in degrees, must be between -180 and 180
|
|
19
19
|
*/
|
|
20
20
|
setLastKnownLocation(latitude: number, longitude: number): void;
|
|
21
21
|
/**
|
|
22
|
-
* Requests a single location update and sends the result to
|
|
22
|
+
* Requests a single location update and sends the result to Zixflow.
|
|
23
23
|
* No-ops if location tracking is disabled or permission is not granted.
|
|
24
24
|
*
|
|
25
25
|
* The SDK does not request location permission. The host app must request
|
|
@@ -28,4 +28,4 @@ export declare class CustomerIOLocation implements NativeLocationSpec {
|
|
|
28
28
|
requestLocationUpdate(): void;
|
|
29
29
|
}
|
|
30
30
|
export {};
|
|
31
|
-
//# sourceMappingURL=
|
|
31
|
+
//# sourceMappingURL=zixflow-location.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zixflow-location.d.ts","sourceRoot":"","sources":["../../../src/zixflow-location.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAEL,KAAK,IAAI,IAAI,WAAW,EACzB,MAAM,uCAAuC,CAAC;AAE/C;;;;GAIG;AACH,UAAU,kBAAmB,SAAQ,IAAI,CAAC,WAAW,EAAE,MAAM,WAAW,CAAC;CAAG;AAkB5E,cAAc;AACd,qBAAa,eAAgB,YAAW,kBAAkB;IACxD;;;;;;;OAOG;IACH,oBAAoB,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI;IAM/D;;;;;;OAMG;IACH,qBAAqB,IAAI,IAAI;CAG9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zixflow-params.d.ts","sourceRoot":"","sources":["../../../src/zixflow-params.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC9B"}
|