@bentolabs/sdk 1.0.3 → 1.2.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/dist/index.d.ts +12 -0
- package/dist/index.js +12944 -281
- package/dist/index.js.map +7 -0
- package/package.json +11 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { generateSelector } from 'rrweb';
|
|
2
|
+
export { generateSelector };
|
|
1
3
|
interface SDKConfig {
|
|
2
4
|
apiKey: string;
|
|
3
5
|
endpoint: string;
|
|
@@ -60,6 +62,10 @@ export declare class BentoLabsSDK {
|
|
|
60
62
|
* Schedule retry attempts for failed events
|
|
61
63
|
*/
|
|
62
64
|
private scheduleRetry;
|
|
65
|
+
/**
|
|
66
|
+
* Internal method to stop recording without logging (used during re-init)
|
|
67
|
+
*/
|
|
68
|
+
private stopRecordingInternal;
|
|
63
69
|
/**
|
|
64
70
|
* Stop recording and clean up resources
|
|
65
71
|
*/
|
|
@@ -86,6 +92,12 @@ export declare class BentoLabsSDK {
|
|
|
86
92
|
* Manually trigger a batch send
|
|
87
93
|
*/
|
|
88
94
|
flushEvents(): Promise<void>;
|
|
95
|
+
/**
|
|
96
|
+
* Track a custom event with custom data
|
|
97
|
+
* @param eventName - Name of the custom event
|
|
98
|
+
* @param data - Custom event data (will be JSON stringified)
|
|
99
|
+
*/
|
|
100
|
+
trackCustomEvent(eventName: string, data?: Record<string, any>): void;
|
|
89
101
|
}
|
|
90
102
|
declare const _default: BentoLabsSDK;
|
|
91
103
|
export default _default;
|