zixflow-reactnative 1.0.0 → 1.1.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/README.md +2 -2
- 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
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.ZixflowRegion = exports.ZixflowLogLevel = exports.ZixflowLocationTrackingMode = exports.ScreenView = exports.MetricEvent = void 0;
|
|
7
7
|
/**
|
|
8
8
|
* Key-value pairs for custom user attributes and event properties.
|
|
9
9
|
*
|
|
10
|
-
* Provides a type-safe interface for passing custom data to
|
|
10
|
+
* Provides a type-safe interface for passing custom data to Zixflow.
|
|
11
11
|
* While the native bridge uses generic Object types for Codegen compatibility,
|
|
12
12
|
* this type gives developers better TypeScript intellisense and validation.
|
|
13
13
|
*
|
|
@@ -23,7 +23,7 @@ exports.ScreenView = exports.MetricEvent = exports.CioRegion = exports.CioLogLev
|
|
|
23
23
|
* @public
|
|
24
24
|
*/
|
|
25
25
|
/**
|
|
26
|
-
* Parameters for identifying a user in
|
|
26
|
+
* Parameters for identifying a user in Zixflow.
|
|
27
27
|
*
|
|
28
28
|
* @param userId - Unique identifier for the user (email, username, etc.)
|
|
29
29
|
* @param traits - Additional user attributes and properties
|
|
@@ -31,9 +31,9 @@ exports.ScreenView = exports.MetricEvent = exports.CioRegion = exports.CioLogLev
|
|
|
31
31
|
* @public
|
|
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
|
|
@@ -50,32 +50,32 @@ exports.ScreenView = exports.MetricEvent = exports.CioRegion = exports.CioLogLev
|
|
|
50
50
|
* @public
|
|
51
51
|
*/
|
|
52
52
|
/**
|
|
53
|
-
* Log levels for
|
|
53
|
+
* Log levels for Zixflow SDK debugging and monitoring.
|
|
54
54
|
*
|
|
55
55
|
* Controls the verbosity of SDK logging output for debugging purposes.
|
|
56
56
|
*
|
|
57
57
|
* @public
|
|
58
58
|
*/
|
|
59
|
-
let
|
|
59
|
+
let ZixflowLogLevel = exports.ZixflowLogLevel = /*#__PURE__*/function (ZixflowLogLevel) {
|
|
60
60
|
/** No logging output */
|
|
61
|
-
|
|
61
|
+
ZixflowLogLevel["None"] = "none";
|
|
62
62
|
/** Only error messages */
|
|
63
|
-
|
|
63
|
+
ZixflowLogLevel["Error"] = "error";
|
|
64
64
|
/** Error and informational messages */
|
|
65
|
-
|
|
65
|
+
ZixflowLogLevel["Info"] = "info";
|
|
66
66
|
/** All messages including debug information */
|
|
67
|
-
|
|
68
|
-
return
|
|
67
|
+
ZixflowLogLevel["Debug"] = "debug";
|
|
68
|
+
return ZixflowLogLevel;
|
|
69
69
|
}({});
|
|
70
70
|
/**
|
|
71
|
-
* Data center regions for
|
|
71
|
+
* Data center regions for Zixflow API endpoints.
|
|
72
72
|
*
|
|
73
73
|
* @public
|
|
74
74
|
*/
|
|
75
|
-
let
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
return
|
|
75
|
+
let ZixflowRegion = exports.ZixflowRegion = /*#__PURE__*/function (ZixflowRegion) {
|
|
76
|
+
ZixflowRegion["US"] = "US";
|
|
77
|
+
ZixflowRegion["EU"] = "EU";
|
|
78
|
+
return ZixflowRegion;
|
|
79
79
|
}({});
|
|
80
80
|
/**
|
|
81
81
|
* Screen view tracking behavior configuration.
|
|
@@ -93,18 +93,18 @@ let ScreenView = exports.ScreenView = /*#__PURE__*/function (ScreenView) {
|
|
|
93
93
|
return ScreenView;
|
|
94
94
|
}({});
|
|
95
95
|
/**
|
|
96
|
-
* Location tracking mode for the
|
|
96
|
+
* Location tracking mode for the Zixflow Location module.
|
|
97
97
|
*
|
|
98
98
|
* @public
|
|
99
99
|
*/
|
|
100
|
-
let
|
|
100
|
+
let ZixflowLocationTrackingMode = exports.ZixflowLocationTrackingMode = /*#__PURE__*/function (ZixflowLocationTrackingMode) {
|
|
101
101
|
/** Location tracking is disabled. All location operations no-op. */
|
|
102
|
-
|
|
102
|
+
ZixflowLocationTrackingMode["Off"] = "OFF";
|
|
103
103
|
/** Host app controls when location is captured (default when location config is provided). */
|
|
104
|
-
|
|
104
|
+
ZixflowLocationTrackingMode["Manual"] = "MANUAL";
|
|
105
105
|
/** SDK auto-captures location once per app launch when the app becomes active. */
|
|
106
|
-
|
|
107
|
-
return
|
|
106
|
+
ZixflowLocationTrackingMode["OnAppStart"] = "ON_APP_START";
|
|
107
|
+
return ZixflowLocationTrackingMode;
|
|
108
108
|
}({});
|
|
109
109
|
/**
|
|
110
110
|
* Enum to specify the type of metric for tracking
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["ZixflowLogLevel","exports","ZixflowRegion","ScreenView","ZixflowLocationTrackingMode","MetricEvent"],"sourceRoot":"../../../src","sources":["types/data-pipelines.ts"],"mappings":";;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA2BA;AACA;AACA;AACA;AACA;AACA;AACA;AANA,IAOYA,eAAe,GAAAC,OAAA,CAAAD,eAAA,0BAAfA,eAAe;EACzB;EADUA,eAAe;EAGzB;EAHUA,eAAe;EAKzB;EALUA,eAAe;EAOzB;EAPUA,eAAe;EAAA,OAAfA,eAAe;AAAA;AAW3B;AACA;AACA;AACA;AACA;AAJA,IAKYE,aAAa,GAAAD,OAAA,CAAAC,aAAA,0BAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAA,OAAbA,aAAa;AAAA;AAKzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAPA,IAQYC,UAAU,GAAAF,OAAA,CAAAE,UAAA,0BAAVA,UAAU;EACpB;EADUA,UAAU;EAGpB;EAHUA,UAAU;EAAA,OAAVA,UAAU;AAAA;AAOtB;AACA;AACA;AACA;AACA;AAJA,IAKYC,2BAA2B,GAAAH,OAAA,CAAAG,2BAAA,0BAA3BA,2BAA2B;EACrC;EADUA,2BAA2B;EAGrC;EAHUA,2BAA2B;EAKrC;EALUA,2BAA2B;EAAA,OAA3BA,2BAA2B;AAAA;AASvC;AACA;AACA;AACA;AACA;AAJA,IAKYC,WAAW,GAAAJ,OAAA,CAAAI,WAAA,0BAAXA,WAAW;EACrB;EADUA,WAAW;EAGrB;EAHUA,WAAW;EAKrB;EALUA,WAAW;EAAA,OAAXA,WAAW;AAAA","ignoreList":[]}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.ZixflowPushPermissionStatus = exports.PushClickBehaviorAndroid = void 0;
|
|
7
7
|
/**
|
|
8
8
|
* Android-specific behavior when a push notification is clicked.
|
|
9
9
|
*
|
|
@@ -37,13 +37,13 @@ let PushClickBehaviorAndroid = exports.PushClickBehaviorAndroid = /*#__PURE__*/f
|
|
|
37
37
|
*
|
|
38
38
|
* @public
|
|
39
39
|
*/
|
|
40
|
-
let
|
|
40
|
+
let ZixflowPushPermissionStatus = exports.ZixflowPushPermissionStatus = /*#__PURE__*/function (ZixflowPushPermissionStatus) {
|
|
41
41
|
/** User has granted push notification permissions */
|
|
42
|
-
|
|
42
|
+
ZixflowPushPermissionStatus["Granted"] = "GRANTED";
|
|
43
43
|
/** User has denied push notification permissions */
|
|
44
|
-
|
|
44
|
+
ZixflowPushPermissionStatus["Denied"] = "DENIED";
|
|
45
45
|
/** User may not yet have been asked for permissions and permission status is unknown */
|
|
46
|
-
|
|
47
|
-
return
|
|
46
|
+
ZixflowPushPermissionStatus["NotDetermined"] = "NOTDETERMINED";
|
|
47
|
+
return ZixflowPushPermissionStatus;
|
|
48
48
|
}({});
|
|
49
49
|
//# sourceMappingURL=push.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["PushClickBehaviorAndroid","exports","
|
|
1
|
+
{"version":3,"names":["PushClickBehaviorAndroid","exports","ZixflowPushPermissionStatus"],"sourceRoot":"../../../src","sources":["types/push.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAPA,IAQYA,wBAAwB,GAAAC,OAAA,CAAAD,wBAAA,0BAAxBA,wBAAwB;EAClC;EADUA,wBAAwB;EAGlC;EAHUA,wBAAwB;EAKlC;EALUA,wBAAwB;EAAA,OAAxBA,wBAAwB;AAAA;AASpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAUA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAPA,IAQYE,2BAA2B,GAAAD,OAAA,CAAAC,2BAAA,0BAA3BA,2BAA2B;EACrC;EADUA,2BAA2B;EAGrC;EAHUA,2BAA2B;EAKrC;EALUA,2BAA2B;EAAA,OAA3BA,2BAA2B;AAAA","ignoreList":[]}
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.callNativeModule = void 0;
|
|
7
7
|
exports.ensureNativeModule = ensureNativeModule;
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
|
-
const LINKING_ERROR = `The package '
|
|
9
|
+
const LINKING_ERROR = `The package 'zixflow-reactnative' doesn't seem to be linked. Make sure: \n\n` + _reactNative.Platform.select({
|
|
10
10
|
ios: "- You have run 'pod install'\n",
|
|
11
11
|
default: ''
|
|
12
12
|
}) + '- You rebuilt the app after installing the package\n' + '- You are not using Expo managed workflow\n';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","LINKING_ERROR","Platform","select","ios","default","ensureNativeModule","nativeModule","Error","callNativeModule","fn","exports"],"sourceRoot":"../../../src","sources":["utils/native-bridge.ts"],"mappings":";;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,MAAMC,aAAa,GACjB,
|
|
1
|
+
{"version":3,"names":["_reactNative","require","LINKING_ERROR","Platform","select","ios","default","ensureNativeModule","nativeModule","Error","callNativeModule","fn","exports"],"sourceRoot":"../../../src","sources":["utils/native-bridge.ts"],"mappings":";;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,MAAMC,aAAa,GACjB,8EAA8E,GAC9EC,qBAAQ,CAACC,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,6CAA6C;;AAE/C;AACA;AACA;AACO,SAASC,kBAAkBA,CAChCC,YAAiC,EACnB;EACd,IAAI,CAACA,YAAY,EAAE;IACjB,MAAM,IAAIC,KAAK,CAACP,aAAa,CAAC;EAChC;EAEA,OAAOM,YAAY;AACrB;;AAEA;AACA;AACA;AACO,MAAME,gBAAgB,GAAGA,CAC9BF,YAAkB,EAClBG,EAA4B,KACjB;EACX,OAAOA,EAAE,CAACH,YAAY,CAAC;AACzB,CAAC;AAACI,OAAA,CAAAF,gBAAA,GAAAA,gBAAA","ignoreList":[]}
|
|
@@ -28,7 +28,7 @@ function isUndefined(value) {
|
|
|
28
28
|
*/
|
|
29
29
|
function failIf(condition, message) {
|
|
30
30
|
if (__DEV__ && condition) {
|
|
31
|
-
throw new Error(`[
|
|
31
|
+
throw new Error(`[Zixflow] ${message()}`);
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
|
|
@@ -104,14 +104,14 @@ function validateAttributes(value, fieldName, options = {}) {
|
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
/**
|
|
107
|
-
* Validates that the given value is a valid
|
|
107
|
+
* Validates that the given value is a valid ZixflowConfig object.
|
|
108
108
|
* Throws if required fields are missing or incorrectly typed.
|
|
109
109
|
*/
|
|
110
110
|
function validateConfig(value) {
|
|
111
111
|
const fieldName = 'config';
|
|
112
112
|
const usage = 'SDK';
|
|
113
113
|
validateRecord(value, fieldName, {
|
|
114
|
-
expectedType: '
|
|
114
|
+
expectedType: 'ZixflowConfig',
|
|
115
115
|
usage: usage
|
|
116
116
|
});
|
|
117
117
|
const obj = value;
|
|
@@ -121,7 +121,7 @@ function validateConfig(value) {
|
|
|
121
121
|
});
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
-
// For type safety, we define a ConfigValidator type that asserts the value is a
|
|
124
|
+
// For type safety, we define a ConfigValidator type that asserts the value is a ZixflowConfig
|
|
125
125
|
// This allows us to use it in the assert object without needing to redefine the function signature
|
|
126
126
|
|
|
127
127
|
const assert = exports.assert = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["buildErrorMessage","usage","fieldName","error","prefix","isUndefined","value","undefined","failIf","condition","message","__DEV__","Error","failIfUndefined","validateString","options","allowEmpty","optional","typedValue","trim","validateRecord","expectedType","typeName","Array","isArray","validateAttributes","exists","attributes","Map","Object","fromEntries","validateConfig","obj","cdpApiKey","assert","exports","string","record","config","validate"],"sourceRoot":"../../../src","sources":["utils/param-validation.ts"],"mappings":";;;;;;AAAA;AACA;;AAIA;AACA;AACA;AACA,SAASA,iBAAiBA,CACxBC,KAAyB,EACzBC,SAAiB,EACjBC,KAAa,EACL;EACR,MAAMC,MAAM,GAAGH,KAAK,GAAG,GAAGA,KAAK,GAAG,GAAG,EAAE;EACvC,OAAO,GAAGG,MAAM,IAAIF,SAAS,KAAKC,KAAK,GAAG;AAC5C;;AAEA;AACA;AACA;AACA,SAASE,WAAWA,CAACC,KAAc,EAAW;EAC5C,OAAOA,KAAK,KAAKC,SAAS,IAAID,KAAK,KAAK,IAAI;AAC9C;;AAEA;AACA;AACA;AACA;AACA,SAASE,MAAMA,CAACC,SAAkB,EAAEC,OAAqB,EAAQ;EAC/D,IAAIC,OAAO,IAAIF,SAAS,EAAE;IACxB,MAAM,IAAIG,KAAK,CAAC,
|
|
1
|
+
{"version":3,"names":["buildErrorMessage","usage","fieldName","error","prefix","isUndefined","value","undefined","failIf","condition","message","__DEV__","Error","failIfUndefined","validateString","options","allowEmpty","optional","typedValue","trim","validateRecord","expectedType","typeName","Array","isArray","validateAttributes","exists","attributes","Map","Object","fromEntries","validateConfig","obj","cdpApiKey","assert","exports","string","record","config","validate"],"sourceRoot":"../../../src","sources":["utils/param-validation.ts"],"mappings":";;;;;;AAAA;AACA;;AAIA;AACA;AACA;AACA,SAASA,iBAAiBA,CACxBC,KAAyB,EACzBC,SAAiB,EACjBC,KAAa,EACL;EACR,MAAMC,MAAM,GAAGH,KAAK,GAAG,GAAGA,KAAK,GAAG,GAAG,EAAE;EACvC,OAAO,GAAGG,MAAM,IAAIF,SAAS,KAAKC,KAAK,GAAG;AAC5C;;AAEA;AACA;AACA;AACA,SAASE,WAAWA,CAACC,KAAc,EAAW;EAC5C,OAAOA,KAAK,KAAKC,SAAS,IAAID,KAAK,KAAK,IAAI;AAC9C;;AAEA;AACA;AACA;AACA;AACA,SAASE,MAAMA,CAACC,SAAkB,EAAEC,OAAqB,EAAQ;EAC/D,IAAIC,OAAO,IAAIF,SAAS,EAAE;IACxB,MAAM,IAAIG,KAAK,CAAC,aAAaF,OAAO,CAAC,CAAC,EAAE,CAAC;EAC3C;AACF;;AAEA;AACA;AACA;AACA;AACA,SAASG,eAAeA,CACtBP,KAAc,EACdJ,SAAiB,EACjBD,KAAc,EACR;EACNO,MAAM,CAACH,WAAW,CAACC,KAAK,CAAC,EAAE,MACzBN,iBAAiB,CAACC,KAAK,EAAEC,SAAS,EAAE,aAAa,CACnD,CAAC;AACH;;AAEA;AACA;AACA;AACA;AACA,SAASY,cAAcA,CACrBR,KAAc,EACdJ,SAAiB,EACjBa,OAIC,GAAG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object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
6
|
+
exports.Zixflow = void 0;
|
|
7
|
+
var _zixflowInapp = require("./zixflow-inapp.js");
|
|
8
|
+
var _zixflowLocation = require("./zixflow-location.js");
|
|
9
|
+
var _zixflowPush = require("./zixflow-push.js");
|
|
10
10
|
var _nativeLoggerListener = require("./native-logger-listener.js");
|
|
11
|
-
var
|
|
11
|
+
var _NativeZixflow = _interopRequireDefault(require("./specs/modules/NativeZixflow.js"));
|
|
12
12
|
var _index = require("./types/index.js");
|
|
13
13
|
var _nativeBridge = require("./utils/native-bridge.js");
|
|
14
14
|
var _paramValidation = require("./utils/param-validation.js");
|
|
15
15
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
16
|
const packageJson = require('../../package.json');
|
|
17
17
|
|
|
18
|
-
// Track whether
|
|
18
|
+
// Track whether Zixflow SDK has been initialized to prevent usage before setup
|
|
19
19
|
let _initialized = false;
|
|
20
20
|
|
|
21
|
-
// Reference to the native
|
|
22
|
-
const nativeModule = (0, _nativeBridge.ensureNativeModule)(
|
|
21
|
+
// Reference to the native Zixflow Data Pipelines module for SDK operations
|
|
22
|
+
const nativeModule = (0, _nativeBridge.ensureNativeModule)(_NativeZixflow.default);
|
|
23
23
|
|
|
24
24
|
// Wrapper function that ensures SDK is initialized before calling native methods
|
|
25
25
|
const withNativeModule = fn => {
|
|
@@ -27,11 +27,11 @@ const withNativeModule = fn => {
|
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
/** @public */
|
|
30
|
-
class
|
|
31
|
-
/** Initialize the
|
|
30
|
+
class Zixflow {
|
|
31
|
+
/** Initialize the Zixflow SDK with given configuration. */
|
|
32
32
|
static initialize = async config => {
|
|
33
33
|
_paramValidation.assert.config(config);
|
|
34
|
-
if (config.logLevel && config.logLevel !== _index.
|
|
34
|
+
if (config.logLevel && config.logLevel !== _index.ZixflowLogLevel.None) {
|
|
35
35
|
_nativeLoggerListener.NativeLoggerListener.initialize();
|
|
36
36
|
}
|
|
37
37
|
const expoVersion = packageJson.expoVersion ?? '';
|
|
@@ -39,7 +39,7 @@ class CustomerIO {
|
|
|
39
39
|
packageSource: expoVersion ? 'Expo' : 'ReactNative',
|
|
40
40
|
packageVersion: expoVersion || packageJson.version || ''
|
|
41
41
|
};
|
|
42
|
-
const promise = (0, _nativeBridge.callNativeModule)(
|
|
42
|
+
const promise = (0, _nativeBridge.callNativeModule)(_NativeZixflow.default, native => native.initialize(config, args));
|
|
43
43
|
return promise.then(() => {
|
|
44
44
|
_initialized = true;
|
|
45
45
|
});
|
|
@@ -145,19 +145,19 @@ class CustomerIO {
|
|
|
145
145
|
};
|
|
146
146
|
|
|
147
147
|
/**
|
|
148
|
-
* Check if the
|
|
148
|
+
* Check if the Zixflow SDK has been initialized.
|
|
149
149
|
* @deprecated This method will be removed in a future version. If you need this functionality, please contact us.
|
|
150
150
|
*/
|
|
151
151
|
static isInitialized = () => _initialized;
|
|
152
|
-
static inAppMessaging = new
|
|
153
|
-
static location = new
|
|
154
|
-
static pushMessaging = new
|
|
152
|
+
static inAppMessaging = new _zixflowInapp.ZixflowInAppMessaging();
|
|
153
|
+
static location = new _zixflowLocation.ZixflowLocation();
|
|
154
|
+
static pushMessaging = new _zixflowPush.ZixflowPushMessaging();
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
// Initialize native logger when this module loads to ensure it's always available.
|
|
158
|
-
// Since
|
|
158
|
+
// Since this is the main SDK entry point and always imported,
|
|
159
159
|
// this guarantees logger initialization even when native-logger-listener.ts
|
|
160
160
|
// isn't directly accessed, also supporting auto-initialization in Expo apps.
|
|
161
|
-
exports.
|
|
161
|
+
exports.Zixflow = Zixflow;
|
|
162
162
|
_nativeLoggerListener.NativeLoggerListener.initNativeLogger();
|
|
163
|
-
//# sourceMappingURL=
|
|
163
|
+
//# sourceMappingURL=zixflow-cdp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_zixflowInapp","require","_zixflowLocation","_zixflowPush","_nativeLoggerListener","_NativeZixflow","_interopRequireDefault","_index","_nativeBridge","_paramValidation","e","__esModule","default","packageJson","_initialized","nativeModule","ensureNativeModule","NativeModule","withNativeModule","fn","callNativeModule","Zixflow","initialize","config","assert","logLevel","ZixflowLogLevel","None","NativeLoggerListener","expoVersion","args","packageSource","packageVersion","version","promise","native","then","identify","userId","traits","validate","isUndefined","Error","string","allowEmpty","usage","optional","normalizedTraits","attributes","clearIdentify","track","name","properties","normalizedProps","screen","title","setProfileAttributes","normalizedAttrs","setDeviceAttributes","registerDeviceToken","token","deleteDeviceToken","trackMetric","deliveryID","deviceToken","event","isInitialized","inAppMessaging","ZixflowInAppMessaging","location","ZixflowLocation","pushMessaging","ZixflowPushMessaging","exports","initNativeLogger"],"sourceRoot":"../../src","sources":["zixflow-cdp.ts"],"mappings":";;;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AACA,IAAAC,gBAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,qBAAA,GAAAH,OAAA;AACA,IAAAI,cAAA,GAAAC,sBAAA,CAAAL,OAAA;AAIA,IAAAM,MAAA,GAAAN,OAAA;AAQA,IAAAO,aAAA,GAAAP,OAAA;AACA,IAAAQ,gBAAA,GAAAR,OAAA;AAA4D,SAAAK,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE5D,MAAMG,WAAW,GAAGZ,OAAO,CAAC,oBAAoB,CAAC;;AAEjD;AACA,IAAIa,YAAY,GAAG,KAAK;;AAExB;AACA,MAAMC,YAAY,GAAG,IAAAC,gCAAkB,EAACC,sBAAY,CAAC;;AAErD;AACA,MAAMC,gBAAgB,GAAOC,EAA8B,IAAQ;EACjE,OAAO,IAAAC,8BAAgB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,CAACsB,KAAK,EAAE,OAAO,EAAE;MAAEpB,KAAK,EAAE;IAAe,CAAC,CAAC;IAExD,OAAO3B,gBAAgB,CAAEiB,MAAM,IAC7BA,MAAM,CAAC2B,WAAW,CAACC,UAAU,EAAEC,WAAW,EAAEC,KAAK,CACnD,CAAC;EACH,CAAC;;EAED;AACF;AACA;AACA;EACE,OAAgBC,aAAa,GAAGA,CAAA,KAAMpD,YAAY;EAElD,OAAgBqD,cAAc,GAAG,IAAIC,mCAAqB,CAAC,CAAC;EAC5D,OAAgBC,QAAQ,GAAG,IAAIC,gCAAe,CAAC,CAAC;EAChD,OAAgBC,aAAa,GAAG,IAAIC,iCAAoB,CAAC,CAAC;AAC5D;;AAEA;AACA;AACA;AACA;AAAAC,OAAA,CAAApD,OAAA,GAAAA,OAAA;AACAO,0CAAoB,CAAC8C,gBAAgB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.InAppMessageEvent =
|
|
6
|
+
exports.InAppMessageEvent = void 0;
|
|
7
7
|
Object.defineProperty(exports, "InlineInAppMessageView", {
|
|
8
8
|
enumerable: true,
|
|
9
9
|
get: function () {
|
|
@@ -16,10 +16,11 @@ Object.defineProperty(exports, "NotificationInbox", {
|
|
|
16
16
|
return _notificationInbox.NotificationInbox;
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
|
+
exports.ZixflowInAppMessaging = void 0;
|
|
19
20
|
var _index = require("./components/index.js");
|
|
20
21
|
var _nativeLoggerListener = require("./native-logger-listener.js");
|
|
21
22
|
var _notificationInbox = require("./notification-inbox.js");
|
|
22
|
-
var
|
|
23
|
+
var _NativeZixflowMessagingInApp = _interopRequireDefault(require("./specs/modules/NativeZixflowMessagingInApp.js"));
|
|
23
24
|
var _nativeBridge = require("./utils/native-bridge.js");
|
|
24
25
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
25
26
|
/**
|
|
@@ -28,8 +29,8 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
28
29
|
* @internal
|
|
29
30
|
*/
|
|
30
31
|
|
|
31
|
-
// Reference to the native
|
|
32
|
-
const nativeModule = (0, _nativeBridge.ensureNativeModule)(
|
|
32
|
+
// Reference to the native Zixflow Data Pipelines module for SDK operations
|
|
33
|
+
const nativeModule = (0, _nativeBridge.ensureNativeModule)(_NativeZixflowMessagingInApp.default);
|
|
33
34
|
|
|
34
35
|
// Wrapper function that ensures SDK is initialized before calling native methods
|
|
35
36
|
const withNativeModule = fn => {
|
|
@@ -41,7 +42,7 @@ const withNativeModule = fn => {
|
|
|
41
42
|
*
|
|
42
43
|
* @public
|
|
43
44
|
*/
|
|
44
|
-
class
|
|
45
|
+
class ZixflowInAppMessaging {
|
|
45
46
|
registerEventsListener(listener) {
|
|
46
47
|
const emitter = data => {
|
|
47
48
|
// Convert raw native payload to InAppMessageEvent
|
|
@@ -91,7 +92,7 @@ class CustomerIOInAppMessaging {
|
|
|
91
92
|
* Class to hold in-app event attributes.
|
|
92
93
|
*/
|
|
93
94
|
/** @public */
|
|
94
|
-
exports.
|
|
95
|
+
exports.ZixflowInAppMessaging = ZixflowInAppMessaging;
|
|
95
96
|
class InAppMessageEvent {
|
|
96
97
|
constructor(eventType, messageId, deliveryId, actionValue, actionName) {
|
|
97
98
|
this.eventType = eventType;
|
|
@@ -104,4 +105,4 @@ class InAppMessageEvent {
|
|
|
104
105
|
|
|
105
106
|
// Export in-app messaging types and components for simplified imports
|
|
106
107
|
exports.InAppMessageEvent = InAppMessageEvent;
|
|
107
|
-
//# sourceMappingURL=
|
|
108
|
+
//# sourceMappingURL=zixflow-inapp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_index","require","_nativeLoggerListener","_notificationInbox","_NativeZixflowMessagingInApp","_interopRequireDefault","_nativeBridge","e","__esModule","default","nativeModule","ensureNativeModule","NativeZixflowMessagingInApp","withNativeModule","fn","callNativeModule","ZixflowInAppMessaging","registerEventsListener","listener","emitter","data","event","InAppMessageEvent","eventType","messageId","deliveryId","actionValue","actionName","native","onInAppEventReceived","error","NativeLoggerListener","warn","remove","key","subscriber","dismissMessage","inbox","NotificationInbox","exports","constructor"],"sourceRoot":"../../src","sources":["zixflow-inapp.ts"],"mappings":";;;;;;;;;;;;;;;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,qBAAA,GAAAD,OAAA;AACA,IAAAE,kBAAA,GAAAF,OAAA;AAIA,IAAAG,4BAAA,GAAAC,sBAAA,CAAAJ,OAAA;AAIA,IAAAK,aAAA,GAAAL,OAAA;AAA6E,SAAAI,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE7E;AACA;AACA;AACA;AACA;;AAMA;AACA,MAAMG,YAAY,GAAG,IAAAC,gCAAkB,EAACC,oCAA2B,CAAC;;AAEpE;AACA,MAAMC,gBAAgB,GAAOC,EAA8B,IAAQ;EACjE,OAAO,IAAAC,8BAAgB,EAACL,YAAY,EAAEI,EAAE,CAAC;AAC3C,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA,MAAME,qBAAqB,CAA4B;EAGrDC,sBAAsBA,CACpBC,QAA4C,EACzB;IACnB,MAAMC,OAAO,GAAIC,IAAS,IAAK;MAC7B;MACA,MAAMC,KAAK,GAAG,IAAIC,iBAAiB,CACjCF,IAAI,CAACG,SAAS,EACdH,IAAI,CAACI,SAAS,EACdJ,IAAI,CAACK,UAAU,EACfL,IAAI,CAACM,WAAW,EAChBN,IAAI,CAACO,UACP,CAAC;MACDT,QAAQ,CAACG,KAAK,CAAC;IACjB,CAAC;IAED,OAAOR,gBAAgB,CAAEe,MAAM,IAAK;MAClC,IAAI;QACF;QACA;QACA;QACA,OAAOA,MAAM,CAACC,oBAAoB,CAACV,OAAO,CAAC;MAC7C,CAAC,CAAC,OAAOW,KAAK,EAAE;QACdC,0CAAoB,CAACC,IAAI,CACvB,yCAAyC,EACzCF,KACF,CAAC;QACD;QACA,OAAO;UACLG,MAAM,EAAEA,CAAA,KAAM,CAAC,CAAC;UAChBV,SAAS,EAAE,EAAE;UACbW,GAAG,EAAE,CAAC;UACNC,UAAU,EAAE;QACd,CAAC;MACH;IACF,CAAC,CAAC;EACJ;;EAEA;AACF;AACA;EACEC,cAAcA,CAAA,EAAG;IACfvB,gBAAgB,CAAEe,MAAM,IAAKA,MAAM,CAACQ,cAAc,CAAC,CAAC,CAAC;EACvD;;EAEA;AACF;AACA;AACA;AACA;EACEC,KAAKA,CAAA,EAAsB;IACzB,IAAI,CAAC,IAAI,CAAClC,kBAAkB,EAAE;MAC5B,IAAI,CAACA,kBAAkB,GAAG,IAAImC,oCAAiB,CAAC,CAAC;IACnD;IACA,OAAO,IAAI,CAACnC,kBAAkB;EAChC;AACF;;AAEA;AACA;AACA;AACA;AAAAoC,OAAA,CAAAvB,qBAAA,GAAAA,qBAAA;AACA,MAAMM,iBAAiB,CAAC;EAOtBkB,WAAWA,CACTjB,SAAgC,EAChCC,SAAiB,EACjBC,UAAmB,EACnBC,WAAoB,EACpBC,UAAmB,EACnB;IACA,IAAI,CAACJ,SAAS,GAAGA,SAAS;IAC1B,IAAI,CAACE,UAAU,GAAGA,UAAU;IAC5B,IAAI,CAACD,SAAS,GAAGA,SAAS;IAC1B,IAAI,CAACE,WAAW,GAAGA,WAAW;IAC9B,IAAI,CAACC,UAAU,GAAGA,UAAU;EAC9B;AACF;;AAEA;AAAAY,OAAA,CAAAjB,iBAAA,GAAAA,iBAAA","ignoreList":[]}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
7
|
-
var
|
|
6
|
+
exports.ZixflowLocation = void 0;
|
|
7
|
+
var _NativeZixflowLocation = _interopRequireDefault(require("./specs/modules/NativeZixflowLocation.js"));
|
|
8
8
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
9
|
/**
|
|
10
10
|
* Ensures all methods defined in codegen spec are implemented by the public module
|
|
@@ -16,20 +16,20 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
16
16
|
// Methods silently no-op when the native module is unavailable, with a one-time dev warning.
|
|
17
17
|
let hasWarnedNotEnabled = false;
|
|
18
18
|
const withNativeModule = fn => {
|
|
19
|
-
if (
|
|
20
|
-
fn(
|
|
19
|
+
if (_NativeZixflowLocation.default) {
|
|
20
|
+
fn(_NativeZixflowLocation.default);
|
|
21
21
|
} else if (__DEV__ && !hasWarnedNotEnabled) {
|
|
22
22
|
hasWarnedNotEnabled = true;
|
|
23
|
-
console.warn('
|
|
23
|
+
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).');
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
/** @public */
|
|
28
|
-
class
|
|
28
|
+
class ZixflowLocation {
|
|
29
29
|
/**
|
|
30
30
|
* Sets the last known location from the host app's existing location system.
|
|
31
31
|
* Use this when your app already manages location and you want to send that data
|
|
32
|
-
* to
|
|
32
|
+
* to Zixflow without the SDK managing location permissions directly.
|
|
33
33
|
*
|
|
34
34
|
* @param latitude - Latitude in degrees, must be between -90 and 90
|
|
35
35
|
* @param longitude - Longitude in degrees, must be between -180 and 180
|
|
@@ -39,7 +39,7 @@ class CustomerIOLocation {
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
|
-
* Requests a single location update and sends the result to
|
|
42
|
+
* Requests a single location update and sends the result to Zixflow.
|
|
43
43
|
* No-ops if location tracking is disabled or permission is not granted.
|
|
44
44
|
*
|
|
45
45
|
* The SDK does not request location permission. The host app must request
|
|
@@ -49,5 +49,5 @@ class CustomerIOLocation {
|
|
|
49
49
|
return withNativeModule(native => native.requestLocationUpdate());
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
exports.
|
|
53
|
-
//# sourceMappingURL=
|
|
52
|
+
exports.ZixflowLocation = ZixflowLocation;
|
|
53
|
+
//# sourceMappingURL=zixflow-location.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_NativeZixflowLocation","_interopRequireDefault","require","e","__esModule","default","hasWarnedNotEnabled","withNativeModule","fn","NativeModule","__DEV__","console","warn","ZixflowLocation","setLastKnownLocation","latitude","longitude","native","requestLocationUpdate","exports"],"sourceRoot":"../../src","sources":["zixflow-location.ts"],"mappings":";;;;;;AACA,IAAAA,sBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAG+C,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE/C;AACA;AACA;AACA;AACA;;AAGA;AACA;AACA,IAAIG,mBAAmB,GAAG,KAAK;AAC/B,MAAMC,gBAAgB,GAAIC,EAAiC,IAAW;EACpE,IAAIC,8BAAY,EAAE;IAChBD,EAAE,CAACC,8BAAY,CAAC;EAClB,CAAC,MAAM,IAAIC,OAAO,IAAI,CAACJ,mBAAmB,EAAE;IAC1CA,mBAAmB,GAAG,IAAI;IAC1BK,OAAO,CAACC,IAAI,CACV,2CAA2C,GACzC,iEAAiE,GACjE,gFACJ,CAAC;EACH;AACF,CAAC;;AAED;AACO,MAAMC,eAAe,CAA+B;EACzD;AACF;AACA;AACA;AACA;AACA;AACA;AACA;EACEC,oBAAoBA,CAACC,QAAgB,EAAEC,SAAiB,EAAQ;IAC9D,OAAOT,gBAAgB,CAAEU,MAAM,IAC7BA,MAAM,CAACH,oBAAoB,CAACC,QAAQ,EAAEC,SAAS,CACjD,CAAC;EACH;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;EACEE,qBAAqBA,CAAA,EAAS;IAC5B,OAAOX,gBAAgB,CAAEU,MAAM,IAAKA,MAAM,CAACC,qBAAqB,CAAC,CAAC,CAAC;EACrE;AACF;AAACC,OAAA,CAAAN,eAAA,GAAAA,eAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../src","sources":["zixflow-params.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.ZixflowPushMessaging = void 0;
|
|
7
7
|
var _reactNative = require("react-native");
|
|
8
|
-
var
|
|
8
|
+
var _NativeZixflowMessagingPush = _interopRequireDefault(require("./specs/modules/NativeZixflowMessagingPush.js"));
|
|
9
9
|
var _nativeBridge = require("./utils/native-bridge.js");
|
|
10
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
11
|
/**
|
|
@@ -14,8 +14,8 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
14
14
|
* @internal
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
// Reference to the native
|
|
18
|
-
const nativeModule = (0, _nativeBridge.ensureNativeModule)(
|
|
17
|
+
// Reference to the native Zixflow Data Pipelines module for SDK operations
|
|
18
|
+
const nativeModule = (0, _nativeBridge.ensureNativeModule)(_NativeZixflowMessagingPush.default);
|
|
19
19
|
|
|
20
20
|
// Wrapper function that ensures SDK is initialized before calling native methods
|
|
21
21
|
const withNativeModule = fn => {
|
|
@@ -23,10 +23,10 @@ const withNativeModule = fn => {
|
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
/** @public */
|
|
26
|
-
class
|
|
26
|
+
class ZixflowPushMessaging {
|
|
27
27
|
/**
|
|
28
|
-
* Processes push notification received outside the
|
|
29
|
-
* device and tracks
|
|
28
|
+
* Processes push notification received outside the Zixflow SDK. The method displays notification on
|
|
29
|
+
* device and tracks metrics for push notification.
|
|
30
30
|
*
|
|
31
31
|
* @param message - push payload received from FCM. The payload must contain data payload received in push
|
|
32
32
|
* notification.
|
|
@@ -61,7 +61,7 @@ class CustomerIOPushMessaging {
|
|
|
61
61
|
/**
|
|
62
62
|
* Track push notifications metrics using this method.
|
|
63
63
|
* Call this method when a user interacts and taps open the push notification.
|
|
64
|
-
* @param payload -
|
|
64
|
+
* @param payload - Zixflow payload as received from the push notification
|
|
65
65
|
*/
|
|
66
66
|
trackNotificationResponseReceived(payload) {
|
|
67
67
|
// Tracking push notification metrics on Android is handled automatically
|
|
@@ -76,7 +76,7 @@ class CustomerIOPushMessaging {
|
|
|
76
76
|
/**
|
|
77
77
|
* Track push notifications metrics using this method.
|
|
78
78
|
* Call this method when a push notification is received.
|
|
79
|
-
* @param payload -
|
|
79
|
+
* @param payload - Zixflow payload as received from the push notification
|
|
80
80
|
*/
|
|
81
81
|
trackNotificationReceived(payload) {
|
|
82
82
|
// Tracking push notification metrics on Android is handled automatically
|
|
@@ -111,5 +111,5 @@ class CustomerIOPushMessaging {
|
|
|
111
111
|
return _reactNative.Platform.OS === 'android';
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
exports.
|
|
115
|
-
//# sourceMappingURL=
|
|
114
|
+
exports.ZixflowPushMessaging = ZixflowPushMessaging;
|
|
115
|
+
//# sourceMappingURL=zixflow-push.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_NativeZixflowMessagingPush","_interopRequireDefault","_nativeBridge","e","__esModule","default","nativeModule","ensureNativeModule","NativeZixflowMessagingPush","withNativeModule","fn","callNativeModule","ZixflowPushMessaging","onMessageReceived","message","handleNotificationTrigger","Platform","OS","Promise","resolve","native","onBackgroundMessageReceived","notification","trackNotificationResponseReceived","payload","isAndroid","trackNotificationReceived","getRegisteredDeviceToken","showPromptForPushNotifications","options","ios","badge","sound","then","status","getPushPermissionStatus","exports"],"sourceRoot":"../../src","sources":["zixflow-push.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,2BAAA,GAAAC,sBAAA,CAAAF,OAAA;AAOA,IAAAG,aAAA,GAAAH,OAAA;AAA6E,SAAAE,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE7E;AACA;AACA;AACA;AACA;;AAGA;AACA,MAAMG,YAAY,GAAG,IAAAC,gCAAkB,EAACC,mCAA0B,CAAC;;AAEnE;AACA,MAAMC,gBAAgB,GAAOC,EAA8B,IAAQ;EACjE,OAAO,IAAAC,8BAAgB,EAACL,YAAY,EAAEI,EAAE,CAAC;AAC3C,CAAC;;AAED;AACA,MAAME,oBAAoB,CAA2B;EACnD;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACEC,iBAAiBA,CACfC,OAAY,EACZC,yBAAkC,GAAG,IAAI,EACvB;IAClB,IAAIC,qBAAQ,CAACC,EAAE,KAAK,KAAK,EAAE;MACzB;MACA;MACA;MACA;MACA,OAAOC,OAAO,CAACC,OAAO,CAAC,IAAI,CAAC;IAC9B,CAAC,MAAM;MACL,OAAOV,gBAAgB,CAAEW,MAAM,IAC7BA,MAAM,CAACP,iBAAiB,CAACC,OAAO,EAAEC,yBAAyB,CAC7D,CAAC;IACH;EACF;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;EACEM,2BAA2BA,CAACP,OAAY,EAAoB;IAC1D,OAAO,IAAI,CAACD,iBAAiB,CAACC,OAAO,EAAE,CAACA,OAAO,CAACQ,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;IACAhB,gBAAgB,CAAEW,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;IACAhB,gBAAgB,CAAEW,MAAM,IAAKA,MAAM,CAACM,yBAAyB,CAACF,OAAO,CAAC,CAAC;EACzE;;EAEA;AACF;AACA;AACA;AACA;EACEG,wBAAwBA,CAAA,EAAoB;IAC1C,OAAOlB,gBAAgB,CAAEW,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,OAAOvB,gBAAgB,CAAEW,MAAM,IAC7BA,MAAM,CAACQ,8BAA8B,CAACC,OAAO,CAC/C,CAAC,CAACI,IAAI,CAAEC,MAAM,IAAKA,MAAqC,CAAC;EAC3D;EAEAC,uBAAuBA,CAAA,EAAyC;IAC9D,OAAO1B,gBAAgB,CAAEW,MAAM,IAAKA,MAAM,CAACe,uBAAuB,CAAC,CAAC,CAAC,CAACF,IAAI,CACvEC,MAAM,IAAKA,MACd,CAAC;EACH;EAEAT,SAASA,CAAA,EAAY;IACnB,OAAOT,qBAAQ,CAACC,EAAE,KAAK,SAAS;EAClC;AACF;AAACmB,OAAA,CAAAxB,oBAAA,GAAAA,oBAAA","ignoreList":[]}
|
package/lib/commonjs/zixflow.js
CHANGED
|
@@ -5,33 +5,38 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
var _exportNames = {
|
|
7
7
|
Zixflow: true,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
ZixflowInAppMessaging: true,
|
|
9
|
+
ZixflowLocation: true,
|
|
10
|
+
ZixflowPushMessaging: true
|
|
11
11
|
};
|
|
12
|
-
Object.defineProperty(exports, "
|
|
12
|
+
Object.defineProperty(exports, "Zixflow", {
|
|
13
13
|
enumerable: true,
|
|
14
14
|
get: function () {
|
|
15
|
-
return
|
|
15
|
+
return _zixflowCdp.Zixflow;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
-
Object.defineProperty(exports, "
|
|
18
|
+
Object.defineProperty(exports, "ZixflowInAppMessaging", {
|
|
19
19
|
enumerable: true,
|
|
20
20
|
get: function () {
|
|
21
|
-
return
|
|
21
|
+
return _zixflowInapp.ZixflowInAppMessaging;
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
|
-
Object.defineProperty(exports, "
|
|
24
|
+
Object.defineProperty(exports, "ZixflowLocation", {
|
|
25
25
|
enumerable: true,
|
|
26
26
|
get: function () {
|
|
27
|
-
return
|
|
27
|
+
return _zixflowLocation.ZixflowLocation;
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
|
-
exports
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
30
|
+
Object.defineProperty(exports, "ZixflowPushMessaging", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () {
|
|
33
|
+
return _zixflowPush.ZixflowPushMessaging;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
var _zixflowCdp = require("./zixflow-cdp.js");
|
|
37
|
+
var _zixflowInapp = require("./zixflow-inapp.js");
|
|
38
|
+
var _zixflowLocation = require("./zixflow-location.js");
|
|
39
|
+
var _zixflowPush = require("./zixflow-push.js");
|
|
35
40
|
var _index = require("./types/index.js");
|
|
36
41
|
Object.keys(_index).forEach(function (key) {
|
|
37
42
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -56,16 +61,4 @@ Object.keys(_notificationInbox).forEach(function (key) {
|
|
|
56
61
|
}
|
|
57
62
|
});
|
|
58
63
|
});
|
|
59
|
-
/**
|
|
60
|
-
* Zixflow SDK - Main entry point
|
|
61
|
-
*
|
|
62
|
-
* This provides the Zixflow-branded API that wraps the underlying Customer.io implementation.
|
|
63
|
-
*/
|
|
64
|
-
|
|
65
|
-
// Re-export the CustomerIO class as Zixflow for branding
|
|
66
|
-
const Zixflow = exports.Zixflow = _customerioCdp.CustomerIO;
|
|
67
|
-
|
|
68
|
-
// Re-export all types and utilities
|
|
69
|
-
|
|
70
|
-
// Export sub-modules with their original names (they work with the main Zixflow class)
|
|
71
64
|
//# sourceMappingURL=zixflow.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_zixflowCdp","require","_zixflowInapp","_zixflowLocation","_zixflowPush","_index","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_notificationInbox"],"sourceRoot":"../../src","sources":["zixflow.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AACA,IAAAE,gBAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AAGA,IAAAI,MAAA,GAAAJ,OAAA;AAAAK,MAAA,CAAAC,IAAA,CAAAF,MAAA,EAAAG,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAJ,MAAA,CAAAI,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAZ,MAAA,CAAAI,GAAA;IAAA;EAAA;AAAA;AACA,IAAAS,kBAAA,GAAAjB,OAAA;AAAAK,MAAA,CAAAC,IAAA,CAAAW,kBAAA,EAAAV,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAS,kBAAA,CAAAT,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,kBAAA,CAAAT,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
package/lib/module/index.js
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* This file serves as the entry point for the module zixflow-reactnative.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
6
|
+
* Zixflow React Native SDK - A powerful SDK for building
|
|
7
|
+
* customer engagement features in React Native applications.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
// Export
|
|
10
|
+
// Export the Zixflow API
|
|
11
11
|
export * from "./zixflow.js";
|
|
12
12
|
//# sourceMappingURL=index.js.map
|