@veltdev/sdk-staging 6.0.0-beta.4 → 6.0.0-beta.6

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.
Files changed (80) hide show
  1. package/app/client/snippyly.model.d.ts +2 -3
  2. package/app/models/data/selection.model.d.ts +10 -8
  3. package/app/models/data/user-resolver.data.model.d.ts +11 -9
  4. package/app/models/data/user.data.model.d.ts +21 -18
  5. package/app/models/element/activity-element.model.d.ts +0 -1
  6. package/app/models/element/area-element.model.d.ts +0 -1
  7. package/app/models/element/arrow-element.model.d.ts +1 -2
  8. package/app/models/element/autocomplete-element.model.d.ts +0 -1
  9. package/app/models/element/comment-element.model.d.ts +77 -76
  10. package/app/models/element/contact-element.model.d.ts +1 -2
  11. package/app/models/element/crdt-element.model.d.ts +1 -1
  12. package/app/models/element/cursor-element.model.d.ts +1 -2
  13. package/app/models/element/huddle-element.model.d.ts +1 -2
  14. package/app/models/element/live-state-sync-element.model.d.ts +1 -1
  15. package/app/models/element/notification-element.model.d.ts +1 -1
  16. package/app/models/element/presence-element.model.d.ts +2 -3
  17. package/app/models/element/reaction-element.model.d.ts +1 -1
  18. package/app/models/element/recorder-element.model.d.ts +1 -2
  19. package/app/models/element/rewriter-element.model.d.ts +0 -1
  20. package/app/models/element/selection-element.model.d.ts +1 -1
  21. package/app/models/element/suggestion-element.model.d.ts +0 -1
  22. package/app/models/element/tag-element.model.d.ts +7 -8
  23. package/app/models/element/views-element.model.d.ts +1 -1
  24. package/app/utils/enums.d.ts +91 -82
  25. package/{chunk-HRMFENXY.js → chunk-2SCLSWUI.js} +1 -1
  26. package/{chunk-JWZNY6MR.js → chunk-35INURYJ.js} +1 -1
  27. package/{chunk-EJCDV3ZL.js → chunk-4BYJUQVK.js} +1 -1
  28. package/{chunk-XQKUJSNO.js → chunk-5XJNMHCQ.js} +1 -1
  29. package/{chunk-2CSNE6K3.js → chunk-6IWSFGHO.js} +1 -1
  30. package/{chunk-NVSEAZ7V.js → chunk-7RLDJ3TX.js} +1 -1
  31. package/{chunk-62IPFSNC.js → chunk-AJBPEYH2.js} +1 -1
  32. package/{chunk-3HVKHN3C.js → chunk-B3CJKZVO.js} +26 -26
  33. package/{chunk-NREV2I2E.js → chunk-BBHGUBZX.js} +1 -1
  34. package/{chunk-6YU4HPC3.js → chunk-BCAZZFTN.js} +1 -1
  35. package/{chunk-DEKTLMP2.js → chunk-BK5JJW2P.js} +1 -1
  36. package/{chunk-S6BGMPB5.js → chunk-GEH4RJOJ.js} +1 -1
  37. package/{chunk-HPCGJVBV.js → chunk-HO4WGONW.js} +1 -1
  38. package/{chunk-BLOVLKDQ.js → chunk-IPXYNWSO.js} +1 -1
  39. package/{chunk-ZOM7FOLY.js → chunk-J3LHRGBW.js} +1 -1
  40. package/{chunk-4KHSKSMM.js → chunk-JTH67F4J.js} +1 -1
  41. package/{chunk-I3QEZDJJ.js → chunk-LFO2GQRO.js} +1 -1
  42. package/{chunk-OSPUUVRC.js → chunk-MAGKH3OV.js} +1 -1
  43. package/{chunk-6YAEGDTT.js → chunk-MAGSGLOK.js} +1 -1
  44. package/{chunk-4RKIO2W6.js → chunk-MEOHEVHF.js} +1 -1
  45. package/{chunk-NM7DOIHZ.js → chunk-MRHAAI4W.js} +1 -1
  46. package/{chunk-H4F2DT7C.js → chunk-RGMVMDST.js} +1 -1
  47. package/{chunk-A7KXFTE5.js → chunk-RLWXLNWS.js} +1 -1
  48. package/{chunk-GY4HESRT.js → chunk-ULEKI3MZ.js} +1 -1
  49. package/{chunk-4HTRJDUT.js → chunk-UZBBNATV.js} +1 -1
  50. package/{chunk-WEQZFWL6.js → chunk-VOWPK6CE.js} +1 -1
  51. package/{chunk-GUCATQJB.js → chunk-VQG5C7MZ.js} +1 -1
  52. package/{chunk-CAH7LK67.js → chunk-VTZB5JOQ.js} +1 -1
  53. package/{chunk-GG5L5Y4V.js → chunk-W7S7KT6W.js} +1 -1
  54. package/{chunk-AUXK5IGY.js → chunk-WGSKTJUY.js} +1 -1
  55. package/{chunk-ZOEYUSVF.js → chunk-XQ7NWRSX.js} +1 -1
  56. package/{chunk-M6OYNJUV.js → chunk-YUOWYJZO.js} +1 -1
  57. package/{chunk-ONMQQFFH.js → chunk-ZPRS6JQT.js} +1 -1
  58. package/package.json +1 -1
  59. package/types.d.ts +22 -22
  60. package/velt-activity-log.js +1 -1
  61. package/velt-area.js +1 -1
  62. package/velt-arrow.js +1 -1
  63. package/velt-comment.js +7 -7
  64. package/velt-crdt.js +1 -1
  65. package/velt-cursor.js +1 -1
  66. package/velt-huddle.js +1 -1
  67. package/velt-live-state-sync.js +1 -1
  68. package/velt-notification.js +1 -1
  69. package/velt-presence.js +1 -1
  70. package/velt-reaction.js +1 -1
  71. package/velt-recorder.js +1 -1
  72. package/velt-rewriter.js +1 -1
  73. package/velt-selection.js +1 -1
  74. package/velt-tag.js +1 -1
  75. package/velt-user-invite.js +1 -1
  76. package/velt-user-request.js +1 -1
  77. package/velt-video-player.js +1 -1
  78. package/velt-views.js +1 -1
  79. package/velt.d.ts +1 -2
  80. package/velt.js +3 -3
@@ -1,4 +1,3 @@
1
- // @ts-nocheck
2
1
  export declare class HuddleElement {
3
2
  /**
4
3
  * To enable huddle bubble on cursor feature
@@ -39,7 +38,7 @@ export declare class HuddleElement {
39
38
  /**
40
39
  * To disable huddle on cursor feature
41
40
  */
42
- public _disableCursorMode;
41
+ public _disableCursorMode: () => void;
43
42
 
44
43
  /**
45
44
  * To enable chat
@@ -1,4 +1,4 @@
1
- // @ts-nocheck
1
+ import { Observable } from "rxjs";
2
2
  import { ServerConnectionState } from '../../utils/enums';
3
3
  import { EditorAccessTimer, FetchLiveStateDataRequest, LiveStateDataConfig, LiveStateSingleEditorExternalUserPresence, SetLiveStateDataConfig, SetUserAsEditorResponse, SingleEditorConfig, UserEditorAccess } from '../data/live-state-data.data.model';
4
4
  import { LiveStateEventTypesMap } from '../data/live-state-events.data.model';
@@ -1,4 +1,4 @@
1
- // @ts-nocheck
1
+ import { Observable } from "rxjs";
2
2
 
3
3
  import { GetNotificationsDataQuery, Notification, NotificationInitialSettingsConfig, NotificationSettingsConfig, NotificationTabConfig } from "../data/notification.model";
4
4
 
@@ -1,4 +1,3 @@
1
- // @ts-nocheck
2
1
  import { Observable } from "rxjs";
3
2
  import { PresenceUser } from "../data/presence-user.data.model";
4
3
  import { GetPresenceDataResponse, PresenceEventTypesMap } from "../data/presence-events.data.model";
@@ -24,12 +23,12 @@ export declare class PresenceElement {
24
23
  * Enables follow along mode globally
25
24
  * @param options {FollowOptions: {useHistoryAPI: boolean, onNavigate: (url: PageInfo) => void}}}
26
25
  */
27
- enableFollowAlongMode: (useHistoryAPI: boolean) => any;
26
+ enableFollowAlongMode: (useHistoryAPI: boolean) => void;
28
27
 
29
28
  /**
30
29
  * To disable follow along mode
31
30
  */
32
- disableFollowAlongMode: () => any;
31
+ disableFollowAlongMode: () => void;
33
32
 
34
33
  /**
35
34
  * To enable adding self to the presence list
@@ -1,4 +1,4 @@
1
- // @ts-nocheck
1
+ import { ReactionMap } from '../data/reaction-annotation.data.model';
2
2
  export { ReactionMap } from '../data/reaction-annotation.data.model';
3
3
 
4
4
  export declare class ReactionElement {
@@ -1,4 +1,3 @@
1
- // @ts-nocheck
2
1
  import { Observable } from "rxjs";
3
2
  import { RecorderData, RecorderRequestQuery, GetRecordingDataResponse, GetRecordingsResponse, DeleteRecordingsResponse } from "../data/recorder-annotation.data.model";
4
3
  import { RecorderEventTypesMap } from "../data/recorder-events.data.model";
@@ -6,7 +5,7 @@ import { RecordedData, RecorderQualityConstraints, RecorderEncodingOptions, Reco
6
5
 
7
6
  export declare class RecorderElement {
8
7
 
9
- initRecording: (type: string, panelId?: string) => any;
8
+ initRecording: (type: string, panelId?: string) => Promise<void>;
10
9
 
11
10
  /**
12
11
  * @deprecated Use on('recordingDone') method instead
@@ -1,4 +1,3 @@
1
- // @ts-nocheck
2
1
  export declare class RewriterElement {
3
2
  /**
4
3
  * To enable rewriter feature
@@ -1,4 +1,4 @@
1
- // @ts-nocheck
1
+ import { Observable } from "rxjs";
2
2
  import { LiveSelectionData, UserIndicatorPosition, UserIndicatorType } from "../data/selection.model";
3
3
  export declare class SelectionElement {
4
4
  /**
@@ -1,4 +1,3 @@
1
- // @ts-nocheck
2
1
  import { Observable } from "rxjs";
3
2
  import { SuggestionEventType } from "../../utils/enums";
4
3
  import { SuggestionEventTypesMap } from "../data/suggestion-events.data.model";
@@ -1,31 +1,30 @@
1
- // @ts-nocheck
2
1
  import { Observable } from "rxjs";
3
- import { TagPinAnnotation } from "../data/tag-annotation.data.model";
2
+ import { TagAnnotation } from "../data/tag-annotation.data.model";
4
3
  export declare class TagElement {
5
4
  /**
6
5
  * Subscribe to tags on the current document.
7
6
  *
8
- * Returns Observable<TagPinAnnotation[] | null>.
7
+ * Returns Observable<TagAnnotation[] | null>.
9
8
  */
10
- getAllTagAnnotations: (documentId?: string, documentParams?: object) => Observable<TagPinAnnotation[] | null>;
9
+ getAllTagAnnotations: (documentId?: string, documentParams?: object) => Observable<TagAnnotation[] | null>;
11
10
 
12
11
  /**
13
12
  * To delete selected tags
14
13
  */
15
- deleteTag: () => any;
14
+ deleteTag: () => void;
16
15
 
17
16
  /**
18
17
  * To allow text selection in specific elements only
19
18
  * @param elementIds Element ids to be allowed
20
19
  */
21
- allowedElementIds: (elementIds: string[]) => any;
20
+ allowedElementIds: (elementIds: string[]) => void;
22
21
 
23
22
  /**
24
23
  * To add tags on specific elements
25
24
  *
26
25
  * @param elementId ID of html element
27
26
  */
28
- attachTag: (elementId: string) => any;
27
+ attachTag: (elementId: string) => void;
29
28
 
30
29
  /**
31
30
  * Subscribe to add tag mode change.
@@ -37,7 +36,7 @@ export declare class TagElement {
37
36
  /**
38
37
  * Subscribe to tags on the current document.
39
38
  *
40
- * Returns Observable<TagPinAnnotation[] | null>.
39
+ * Returns Observable<TagAnnotation[] | null>.
41
40
  */
42
41
  private _getAllTagAnnotations;
43
42
 
@@ -1,4 +1,4 @@
1
- // @ts-nocheck
1
+ import { Observable } from "rxjs";
2
2
  import { ViewsByUser, ViewsByDate } from "../data/views.data.model";
3
3
 
4
4
  export declare class ViewsElement {
@@ -1,38 +1,40 @@
1
- export declare enum CommentStatus {
2
- NEWLY_ADDED = "newlyAdded",
3
- ADDED = "added",
4
- UPDATED = "updated",
5
- DELETED = "deleted",
6
- APPROVED = "approved",
7
- ASSIGNED = "assigned",
8
- STATUS_CHANGED = "statusChanged",
9
- PRIORITY_CHANGED = "priorityChanged",
10
- ACCESS_MODE_CHANGED = "accessModeChanged",
11
- CUSTOM_LIST_CHANGED = "customListChanged",
12
- ACCEPTED = "accepted",
13
- REJECTED = "rejected",
14
- REACTION_ADDED = "reactionAdded",
15
- REACTION_DELETED = "reactionDeleted",
16
- SUBSCRIBED = "subscribed",
17
- UNSUBSCRIBED = "unsubscribed",
18
- SUGGESTION_ACCEPTED = "suggestionAccepted",
19
- SUGGESTION_REJECTED = "suggestionRejected"
20
- }
21
- export declare enum ResolverActions {
22
- COMMENT_ANNOTATION_ADD = "comment_annotation.add",
23
- COMMENT_ANNOTATION_DELETE = "comment_annotation.delete",
24
- COMMENT_ADD = "comment.add",
25
- COMMENT_DELETE = "comment.delete",
26
- COMMENT_UPDATE = "comment.update",
27
- REACTION_ADD = "reaction.add",
28
- REACTION_DELETE = "reaction.delete",
29
- ATTACHMENT_ADD = "attachment.add",
30
- ATTACHMENT_DELETE = "attachment.delete",
31
- RECORDER_ANNOTATION_ADD = "recorder_annotation.add",
32
- RECORDER_ANNOTATION_UPDATE = "recorder_annotation.update",
33
- RECORDER_ANNOTATION_DELETE = "recorder_annotation.delete",
34
- ACTIVITY_SAVE = "activity.save"
35
- }
1
+ export declare const CommentStatus: {
2
+ readonly NEWLY_ADDED: "newlyAdded";
3
+ readonly ADDED: "added";
4
+ readonly UPDATED: "updated";
5
+ readonly DELETED: "deleted";
6
+ readonly APPROVED: "approved";
7
+ readonly ASSIGNED: "assigned";
8
+ readonly STATUS_CHANGED: "statusChanged";
9
+ readonly PRIORITY_CHANGED: "priorityChanged";
10
+ readonly ACCESS_MODE_CHANGED: "accessModeChanged";
11
+ readonly CUSTOM_LIST_CHANGED: "customListChanged";
12
+ readonly ACCEPTED: "accepted";
13
+ readonly REJECTED: "rejected";
14
+ readonly REACTION_ADDED: "reactionAdded";
15
+ readonly REACTION_DELETED: "reactionDeleted";
16
+ readonly SUBSCRIBED: "subscribed";
17
+ readonly UNSUBSCRIBED: "unsubscribed";
18
+ readonly SUGGESTION_ACCEPTED: "suggestionAccepted";
19
+ readonly SUGGESTION_REJECTED: "suggestionRejected";
20
+ };
21
+ export type CommentStatus = (typeof CommentStatus)[keyof typeof CommentStatus];
22
+ export declare const ResolverActions: {
23
+ readonly COMMENT_ANNOTATION_ADD: "comment_annotation.add";
24
+ readonly COMMENT_ANNOTATION_DELETE: "comment_annotation.delete";
25
+ readonly COMMENT_ADD: "comment.add";
26
+ readonly COMMENT_DELETE: "comment.delete";
27
+ readonly COMMENT_UPDATE: "comment.update";
28
+ readonly REACTION_ADD: "reaction.add";
29
+ readonly REACTION_DELETE: "reaction.delete";
30
+ readonly ATTACHMENT_ADD: "attachment.add";
31
+ readonly ATTACHMENT_DELETE: "attachment.delete";
32
+ readonly RECORDER_ANNOTATION_ADD: "recorder_annotation.add";
33
+ readonly RECORDER_ANNOTATION_UPDATE: "recorder_annotation.update";
34
+ readonly RECORDER_ANNOTATION_DELETE: "recorder_annotation.delete";
35
+ readonly ACTIVITY_SAVE: "activity.save";
36
+ };
37
+ export type ResolverActions = (typeof ResolverActions)[keyof typeof ResolverActions];
36
38
  /**
37
39
  * Opt-in additional (non-core) comment save events for the Comment Annotations Resolver
38
40
  * (specs/comment-resolver iteration-2). Values mirror the non-core `CommentActivityActionTypes`
@@ -42,22 +44,23 @@ export declare enum ResolverActions {
42
44
  * `ResolverActions`. Kept in enums.ts (a leaf module) to avoid a
43
45
  * resolver.data.model ↔ comment-resolver.data.model import cycle.
44
46
  */
45
- export declare enum CommentResolverSaveEvent {
46
- STATUS_CHANGE = "comment_annotation.status_change",
47
- PRIORITY_CHANGE = "comment_annotation.priority_change",
48
- ASSIGN = "comment_annotation.assign",
49
- ACCESS_MODE_CHANGE = "comment_annotation.access_mode_change",
50
- CUSTOM_LIST_CHANGE = "comment_annotation.custom_list_change",
51
- APPROVE = "comment_annotation.approve",
52
- ACCEPT = "comment.accept",
53
- REJECT = "comment.reject",
54
- SUGGESTION_ACCEPT = "comment_annotation.suggestion_accept",
55
- SUGGESTION_REJECT = "comment_annotation.suggestion_reject",
56
- REACTION_ADD = "comment.reaction_add",
57
- REACTION_DELETE = "comment.reaction_delete",
58
- SUBSCRIBE = "comment_annotation.subscribe",
59
- UNSUBSCRIBE = "comment_annotation.unsubscribe"
60
- }
47
+ export declare const CommentResolverSaveEvent: {
48
+ readonly STATUS_CHANGE: "comment_annotation.status_change";
49
+ readonly PRIORITY_CHANGE: "comment_annotation.priority_change";
50
+ readonly ASSIGN: "comment_annotation.assign";
51
+ readonly ACCESS_MODE_CHANGE: "comment_annotation.access_mode_change";
52
+ readonly CUSTOM_LIST_CHANGE: "comment_annotation.custom_list_change";
53
+ readonly APPROVE: "comment_annotation.approve";
54
+ readonly ACCEPT: "comment.accept";
55
+ readonly REJECT: "comment.reject";
56
+ readonly SUGGESTION_ACCEPT: "comment_annotation.suggestion_accept";
57
+ readonly SUGGESTION_REJECT: "comment_annotation.suggestion_reject";
58
+ readonly REACTION_ADD: "comment.reaction_add";
59
+ readonly REACTION_DELETE: "comment.reaction_delete";
60
+ readonly SUBSCRIBE: "comment_annotation.subscribe";
61
+ readonly UNSUBSCRIBE: "comment_annotation.unsubscribe";
62
+ };
63
+ export type CommentResolverSaveEvent = (typeof CommentResolverSaveEvent)[keyof typeof CommentResolverSaveEvent];
61
64
  export declare const CommentEventTypes: {
62
65
  readonly ADD_COMMENT_ANNOTATION: "addCommentAnnotation";
63
66
  readonly ADD_COMMENT_ANNOTATION_DRAFT: "addCommentAnnotationDraft";
@@ -204,11 +207,12 @@ export declare enum ArrowStatus {
204
207
  UPDATED = "updated",
205
208
  DELETED = "deleted"
206
209
  }
207
- export declare enum AreaStatus {
208
- ADDED = "added",
209
- UPDATED = "updated",
210
- DELETED = "deleted"
211
- }
210
+ export declare const AreaStatus: {
211
+ readonly ADDED: "added";
212
+ readonly UPDATED: "updated";
213
+ readonly DELETED: "deleted";
214
+ };
215
+ export type AreaStatus = (typeof AreaStatus)[keyof typeof AreaStatus];
212
216
  export declare enum DocumentViewsStatus {
213
217
  FIRST_VIEWED = "firstViewed"
214
218
  }
@@ -281,19 +285,21 @@ export declare enum Roles {
281
285
  ADMIN = "Admin",
282
286
  COMMENTER = "Commenter"
283
287
  }
284
- export declare enum DocumentAccessType {
285
- PUBLIC = "public",
286
- RESTRICTED = "restricted",
287
- ORGANIZATION_PRIVATE = "organizationPrivate"
288
- }
288
+ export declare const DocumentAccessType: {
289
+ readonly PUBLIC: "public";
290
+ readonly RESTRICTED: "restricted";
291
+ readonly ORGANIZATION_PRIVATE: "organizationPrivate";
292
+ };
293
+ export type DocumentAccessType = (typeof DocumentAccessType)[keyof typeof DocumentAccessType];
289
294
  export declare enum DetectionStrategy {
290
295
  DEFAULT = "default",
291
296
  DYNAMIC_ID = "dynamicId"
292
297
  }
293
- export declare enum CommentAccessMode {
294
- PUBLIC = "public",
295
- PRIVATE = "private"
296
- }
298
+ export declare const CommentAccessMode: {
299
+ readonly PUBLIC: "public";
300
+ readonly PRIVATE: "private";
301
+ };
302
+ export type CommentAccessMode = (typeof CommentAccessMode)[keyof typeof CommentAccessMode];
297
303
  export declare enum UnreadIndicatorMode {
298
304
  MINIMAL = "minimal",
299
305
  VERBOSE = "verbose"
@@ -306,19 +312,21 @@ export declare enum CommentCountType {
306
312
  TOTAL = "total",
307
313
  UNREAD = "unread"
308
314
  }
309
- export declare enum ServerConnectionState {
310
- ONLINE = "online",
311
- OFFLINE = "offline",
312
- PENDING_INIT = "pendingInit",
313
- PENDING_DATA = "pendingData"
314
- }
315
- export declare enum ContactListScopeForOrganizationUsers {
316
- ALL = "all",
317
- ORGANIZATION = "organization",
318
- ORGANIZATION_USER_GROUP = "organizationUserGroup",
319
- DOCUMENT = "document",
320
- FOLDER = "folder"
321
- }
315
+ export declare const ServerConnectionState: {
316
+ readonly ONLINE: "online";
317
+ readonly OFFLINE: "offline";
318
+ readonly PENDING_INIT: "pendingInit";
319
+ readonly PENDING_DATA: "pendingData";
320
+ };
321
+ export type ServerConnectionState = (typeof ServerConnectionState)[keyof typeof ServerConnectionState];
322
+ export declare const ContactListScopeForOrganizationUsers: {
323
+ readonly ALL: "all";
324
+ readonly ORGANIZATION: "organization";
325
+ readonly ORGANIZATION_USER_GROUP: "organizationUserGroup";
326
+ readonly DOCUMENT: "document";
327
+ readonly FOLDER: "folder";
328
+ };
329
+ export type ContactListScopeForOrganizationUsers = (typeof ContactListScopeForOrganizationUsers)[keyof typeof ContactListScopeForOrganizationUsers];
322
330
  export type RecorderMode = 'audio' | 'video' | 'screen' | 'all' | string;
323
331
  export type RecorderType = 'audio' | 'video' | 'screen';
324
332
  export type RecorderFileFormat = 'mp3' | 'mp4' | 'webm';
@@ -358,10 +366,11 @@ export type InlineSortingCriteria = 'createdFirst' | 'createdLast' | 'updatedFir
358
366
  export type NotificationPanelMode = 'popover' | 'sidebar';
359
367
  export type SidebarActionButtonType = 'default' | 'toggle';
360
368
  export type SidebarButtonCountType = 'default' | 'filter';
361
- export declare enum CommentSidebarSystemFiltersOperator {
362
- AND = "and",
363
- OR = "or"
364
- }
369
+ export declare const CommentSidebarSystemFiltersOperator: {
370
+ readonly AND: "and";
371
+ readonly OR: "or";
372
+ };
373
+ export type CommentSidebarSystemFiltersOperator = (typeof CommentSidebarSystemFiltersOperator)[keyof typeof CommentSidebarSystemFiltersOperator];
365
374
  /**
366
375
  * Type for notification settings accordion types
367
376
  */