fix: add revenue to nextjs package and bump 1.0.18
This commit is contained in:
@@ -121,6 +121,11 @@ export function useOpenPanel() {
|
||||
decrement,
|
||||
clear,
|
||||
setGlobalProperties,
|
||||
revenue,
|
||||
flushRevenue,
|
||||
clearRevenue,
|
||||
pendingRevenue,
|
||||
fetchDeviceId,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -153,6 +158,22 @@ function decrement(payload: DecrementPayload) {
|
||||
window.op('decrement', payload);
|
||||
}
|
||||
|
||||
function fetchDeviceId() {
|
||||
return window.op.fetchDeviceId();
|
||||
}
|
||||
function clearRevenue() {
|
||||
window.op.clearRevenue();
|
||||
}
|
||||
function pendingRevenue(amount: number, properties?: Record<string, unknown>) {
|
||||
window.op.pendingRevenue(amount, properties);
|
||||
}
|
||||
function revenue(amount: number, properties?: Record<string, unknown>) {
|
||||
return window.op.revenue(amount, properties);
|
||||
}
|
||||
function flushRevenue() {
|
||||
return window.op.flushRevenue();
|
||||
}
|
||||
|
||||
function clear() {
|
||||
window.op?.('clear');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user