@obslysdk/rules
v2.0.0
Published
This library enables the execution of dynamic rules within the @obslysdk/browser SDK. These rules allow for advanced event processing and transformation.
Readme
@obslysdk/rules
This library enables the execution of dynamic rules within the @obslysdk/browser SDK. These rules allow for advanced event processing and transformation.
Features
- Dynamic Rule Execution: Process and transform events dynamically.
- Supported Event Types:
- Requests: Apply rules to HTTP requests or responses.
- Life Cycle Events: Execute rules based on application lifecycle events.
- UI Events: Trigger and process rules for user interface interactions.
- Event Generation: Automatically create new events based on processed data.
Installation
To use this functionality, simply install the @obslysdk/rules package using your preferred bundler or package manager:
npm install @obslysdk/rulesConfiguration
After installing the package, you must import the library in the main entry point of your web application before executing the init method of the @obslysdk/browser SDK. This ensures that all features and configurations are properly loaded.
// Import the rules library
import '@obslysdk/rules';
// Initialize the SDK after importing the rules
import { init } from '@obslysdk/browser';
init({
... //configuration options
});