userlens-analytics-sdk 0.1.31 → 0.1.33

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.
@@ -15,6 +15,5 @@ export default class EventCollector {
15
15
  }): void;
16
16
  updateUserTraits(newUserTraits: Record<string, any>): void;
17
17
  stop(): void;
18
- private saveWriteCode;
19
18
  private getUserContext;
20
19
  }
@@ -1,7 +1,6 @@
1
1
  import { SessionRecorderConfig } from "../types";
2
2
  export default class SessionRecorder {
3
3
  #private;
4
- private WRITE_CODE;
5
4
  private userId;
6
5
  private TIMEOUT;
7
6
  private BUFFER_SIZE;
@@ -1,6 +1,8 @@
1
+ import type { eventWithTime } from "rrweb";
1
2
  import { PushedEvent, PageViewEvent, RawEvent } from "../types";
2
3
  export declare const identify: (user: {
3
4
  userId: string;
4
5
  traits: Record<string, any>;
5
6
  }) => Promise<"ok" | undefined>;
6
7
  export declare const track: (events: (PushedEvent | PageViewEvent | RawEvent)[]) => Promise<string>;
8
+ export declare const uploadSessionEvents: (userId: string, sessionUuid: string, events: eventWithTime[], chunkTimestamp: number) => Promise<string>;
@@ -1,2 +1,3 @@
1
1
  export declare function generateUuid(): string;
2
2
  export declare function getUserlensVersion(): string;
3
+ export declare function saveWriteCode(writeCode: string): void;