@veltdev/sdk 4.5.9 → 4.6.0-beta.1

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.
@@ -34,6 +34,7 @@ import { VeltDataProvider } from "../models/data/provider.data.model";
34
34
  import { VeltEncryptionProvider } from "../models/data/encryption-provider.data.model";
35
35
  import { VeltResetButtonStateConfig } from "../models/data/button.data.model";
36
36
  import { SetLocationsRequestOptions } from "../models/data/location.model";
37
+ import { HeartbeatConfig, Heartbeat, GetHeartbeatResponse } from "../models/data/heartbeat.data.model";
37
38
 
38
39
  export declare class Snippyly {
39
40
  constructor();
@@ -284,6 +285,11 @@ export declare class Snippyly {
284
285
  */
285
286
  getUser: () => User | null;
286
287
 
288
+ /**
289
+ * To get heartbeat.
290
+ */
291
+ getHeartbeat: (heartbeatConfig?: HeartbeatConfig) => Observable<GetHeartbeatResponse>;
292
+
287
293
  /**
288
294
  * To get user role in provided document.
289
295
  */
@@ -8,3 +8,9 @@ export interface Heartbeat {
8
8
  metadata: BaseMetadata;
9
9
  lastUpdatedTimestamp: number;
10
10
  }
11
+ export interface HeartbeatConfig {
12
+ userId?: string;
13
+ }
14
+ export interface GetHeartbeatResponse {
15
+ data: Heartbeat[] | null;
16
+ }
@@ -361,6 +361,7 @@ export declare class Constants {
361
361
  VELT_COMMENT_SIDEBAR_CUSTOM_ACTIONS_STATE: string;
362
362
  VELT_CURSOR_MULTIPLE_USERS_DETECTED: string;
363
363
  VELT_PRESENCE_MULTIPLE_USERS_DETECTED: string;
364
+ VELT_PRESENCE_MULTIPLE_USERS_ONLINE: string;
364
365
  VELT_CUSTOM_PRIORITY_MAP: string;
365
366
  VELT_CUSTOM_STATUS_MAP: string;
366
367
  VELT_CUSTOM_CATEGORY_MAP: string;
@@ -369,6 +370,7 @@ export declare class Constants {
369
370
  SNIPPYLY_DEFAULT_MEDIA_SOURCE_OPTIONS: string;
370
371
  SNIPPYLY_QUEUED_COMMENT: string;
371
372
  VELT_USER: string;
373
+ VELT_IDENTIFY_USER: string;
372
374
  VELT_USER_FORCE_RE_LOGGED_IN: string;
373
375
  VELT_VERSION: string;
374
376
  VELT_ADVANCED_QUERIES: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/sdk",
3
- "version": "4.5.9",
3
+ "version": "4.6.0-beta.1",
4
4
  "description": "Velt is an SDK to add collaborative features to your product within minutes. Example: Comments like Figma, Frame.io, Google docs or sheets, Recording like Loom, Huddles like Slack and much more.",
5
5
  "homepage": "https://velt.dev",
6
6
  "keywords": [