Home > widget-integration > PredictiveBundleModule > normalizeOpenEventBundleData
PredictiveBundleModule.normalizeOpenEventBundleData() method
Normalizes bundle payloads coming from the global open event bridge.
Override to accept additional payload fields or custom product metadata.
Signature:
protected normalizeOpenEventBundleData(bundleData: unknown, expectedWidgetId: string): PredictiveBundleData | undefined;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
bundleData |
unknown |
Unknown payload supplied by the event dispatcher. |
|
expectedWidgetId |
string |
Widget id from the event detail used to verify payload ownership. |
Returns:
PredictiveBundleData | undefined
Predictive bundle payload when the minimum contract is satisfied; otherwise undefined.