@veltdev/sdk-staging 4.5.0-beta.10 → 4.5.0-beta.12

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.
@@ -10,6 +10,7 @@ declare class FilterTypeConfig {
10
10
  }
11
11
  export declare class CommentSidebarFilterConfig {
12
12
  location?: FilterTypeConfig;
13
+ document?: FilterTypeConfig;
13
14
  people?: FilterTypeConfig;
14
15
  assigned?: FilterTypeConfig;
15
16
  tagged?: FilterTypeConfig;
@@ -25,6 +26,10 @@ export declare class CommentSidebarGroupConfig {
25
26
  }
26
27
  export declare class CommentSidebarFilters {
27
28
  location?: Location[];
29
+ document?: {
30
+ id?: string;
31
+ documentName?: string;
32
+ }[];
28
33
  people?: {
29
34
  userId?: string;
30
35
  email?: string;
@@ -0,0 +1,5 @@
1
+ export interface PresenceRequestQuery {
2
+ documentId?: string;
3
+ organizationId?: string;
4
+ statuses?: string[];
5
+ }
@@ -3,18 +3,14 @@ import { PresenceUser } from "./presence-user.data.model";
3
3
  export interface PresenceMultipleUsersOnlineEvent {
4
4
  users: PresenceUser[];
5
5
  }
6
- export interface PresenceUserOnlineEvent {
7
- user: PresenceUser;
8
- }
9
- export interface PresenceUserOfflineEvent {
10
- user: PresenceUser;
11
- }
12
- export interface PresenceUserAwayEvent {
6
+ export interface PresenceUserStateChangeEvent {
13
7
  user: PresenceUser;
8
+ state: string;
14
9
  }
15
10
  export type PresenceEventTypesMap = {
16
11
  [PresenceEventTypes.MULTIPLE_USERS_ONLINE]: PresenceMultipleUsersOnlineEvent;
17
- [PresenceEventTypes.USER_ONLINE]: PresenceUserOnlineEvent;
18
- [PresenceEventTypes.USER_OFFLINE]: PresenceUserOfflineEvent;
19
- [PresenceEventTypes.USER_AWAY]: PresenceUserAwayEvent;
12
+ [PresenceEventTypes.USER_STATE_CHANGE]: PresenceUserStateChangeEvent;
20
13
  };
14
+ export interface GetPresenceDataResponse {
15
+ data: PresenceUser[] | null;
16
+ }
@@ -180,6 +180,8 @@ export interface RecorderBoundedScaleRange {
180
180
  centerY?: number;
181
181
  topLeftX?: number;
182
182
  topLeftY?: number;
183
+ topLeftXPixels?: number;
184
+ topLeftYPixels?: number;
183
185
  }
184
186
  export interface RecorderEditRange {
185
187
  trimRanges: RecorderBoundedTrimRange[];
@@ -1,7 +1,9 @@
1
1
  // @ts-nocheck
2
2
  import { Observable } from "rxjs";
3
3
  import { PresenceUser } from "../data/presence-user.data.model";
4
- import { PresenceEventTypesMap } from "../data/presence-events.data.model";
4
+ import { GetPresenceDataResponse, PresenceEventTypesMap } from "../data/presence-events.data.model";
5
+ import { PresenceRequestQuery } from "../data/presence-actions.data.model";
6
+
5
7
  export declare class PresenceElement {
6
8
 
7
9
  /**
@@ -38,6 +40,11 @@ export declare class PresenceElement {
38
40
  */
39
41
  disableSelf: () => void;
40
42
 
43
+ /**
44
+ * To get the presence data
45
+ */
46
+ getData: (query?: PresenceRequestQuery) => Observable<GetPresenceDataResponse>;
47
+
41
48
  /**
42
49
  * Subscribe to presence events
43
50
  */
@@ -77,6 +84,11 @@ export declare class PresenceElement {
77
84
  */
78
85
  private _disableSelf;
79
86
 
87
+ /**
88
+ * To get the presence data
89
+ */
90
+ private _getData;
91
+
80
92
  /**
81
93
  * Subscribe to presence events
82
94
  */
@@ -83,6 +83,12 @@ export declare class RecorderElement {
83
83
  * To set recording encoding options
84
84
  */
85
85
  setRecordingEncodingOptions: (options: RecorderEncodingOptions) => void;
86
+
87
+ /**
88
+ * To download latest video
89
+ */
90
+ downloadLatestVideo: (recorderId: string) => Promise<boolean>;
91
+
86
92
  constructor();
87
93
 
88
94
  private _initRecording;
@@ -162,4 +168,9 @@ export declare class RecorderElement {
162
168
  * To set recording encoding options
163
169
  */
164
170
  private _setRecordingEncodingOptions;
171
+
172
+ /**
173
+ * To download latest video
174
+ */
175
+ private _downloadLatestVideo;
165
176
  }
@@ -80,9 +80,7 @@ export declare const LiveStateSyncEventTypes: {
80
80
  };
81
81
  export declare const PresenceEventTypes: {
82
82
  readonly MULTIPLE_USERS_ONLINE: "multipleUsersOnline";
83
- readonly USER_ONLINE: "userOnline";
84
- readonly USER_OFFLINE: "userOffline";
85
- readonly USER_AWAY: "userAway";
83
+ readonly USER_STATE_CHANGE: "userStateChange";
86
84
  };
87
85
  export type CommentEventType = typeof CommentEventTypes[keyof typeof CommentEventTypes];
88
86
  export type RecorderEventType = typeof RecorderEventTypes[keyof typeof RecorderEventTypes];
@@ -258,7 +256,7 @@ export type ReactionPinType = 'timeline' | 'comment';
258
256
  export type SidebarPosition = 'left' | 'right';
259
257
  export type SidebarSortingCriteria = 'date' | 'unread' | null;
260
258
  export type SidebarFilterCriteria = 'all' | 'read' | 'unread' | 'resolved';
261
- export type SidebarFilterSearchType = 'people' | 'assigned' | 'tagged' | 'pages' | 'statuses' | 'priorities' | 'categories' | 'versions';
259
+ export type SidebarFilterSearchType = 'people' | 'assigned' | 'tagged' | 'pages' | 'documents' | 'statuses' | 'priorities' | 'categories' | 'versions';
262
260
  export type InlineSortingCriteria = 'createdFirst' | 'createdLast' | 'updatedFirst' | 'updatedLast';
263
261
  export type NotificationPanelMode = 'popover' | 'sidebar';
264
262
  export type SidebarActionButtonType = 'default' | 'toggle';
package/models.d.ts CHANGED
@@ -38,6 +38,7 @@ export * from './app/models/data/notification.model';
38
38
  export * from './app/models/data/page-info.model';
39
39
  export * from './app/models/data/permission.data.model';
40
40
  export * from './app/models/data/presence-user.data.model';
41
+ export * from './app/models/data/presence-actions.data.model';
41
42
  export * from './app/models/data/presence-events.data.model';
42
43
  export * from './app/models/data/recorder.model';
43
44
  export * from './app/models/data/recorder-annotation.data.model';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/sdk-staging",
3
- "version": "4.5.0-beta.10",
3
+ "version": "4.5.0-beta.12",
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": [