@veltdev/types 6.0.0-beta.1 → 6.0.0-beta.11
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/app/client/snippyly.model.d.ts +12 -3
- package/app/models/data/comment-events.data.model.d.ts +39 -0
- package/app/models/data/config.data.model.d.ts +154 -0
- package/app/models/data/reaction-resolver.data.model.d.ts +1 -0
- package/app/models/data/selection.model.d.ts +10 -8
- package/app/models/data/user-resolver.data.model.d.ts +11 -9
- package/app/models/data/user.data.model.d.ts +21 -18
- package/app/models/element/activity-element.model.d.ts +0 -1
- package/app/models/element/area-element.model.d.ts +0 -1
- package/app/models/element/arrow-element.model.d.ts +1 -2
- package/app/models/element/autocomplete-element.model.d.ts +0 -1
- package/app/models/element/comment-element.model.d.ts +103 -77
- package/app/models/element/contact-element.model.d.ts +1 -2
- package/app/models/element/crdt-element.model.d.ts +1 -1
- package/app/models/element/cursor-element.model.d.ts +1 -2
- package/app/models/element/huddle-element.model.d.ts +1 -2
- package/app/models/element/live-state-sync-element.model.d.ts +1 -1
- package/app/models/element/notification-element.model.d.ts +33 -2
- package/app/models/element/presence-element.model.d.ts +32 -11
- package/app/models/element/reaction-element.model.d.ts +1 -1
- package/app/models/element/recorder-element.model.d.ts +21 -2
- package/app/models/element/rewriter-element.model.d.ts +43 -1
- package/app/models/element/selection-element.model.d.ts +1 -1
- package/app/models/element/suggestion-element.model.d.ts +0 -1
- package/app/models/element/tag-element.model.d.ts +7 -8
- package/app/models/element/views-element.model.d.ts +1 -1
- package/app/utils/enums.d.ts +97 -83
- package/package.json +8 -2
- package/types.d.ts +22 -22
- package/velt.d.ts +1 -2
|
@@ -1,8 +1,8 @@
|
|
|
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";
|
|
5
4
|
import { PresenceRequestQuery } from "../data/presence-actions.data.model";
|
|
5
|
+
import { FlockOptions } from "../data/flock-options.model";
|
|
6
6
|
|
|
7
7
|
export declare class PresenceElement {
|
|
8
8
|
|
|
@@ -21,15 +21,27 @@ export declare class PresenceElement {
|
|
|
21
21
|
setInactivityTime: (time: number) => void;
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
25
|
-
* @param options
|
|
24
|
+
* Enable flock mode globally
|
|
25
|
+
* @param options FlockOptions
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
enableFlockMode: (options?: FlockOptions) => void;
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Disable flock mode globally
|
|
31
31
|
*/
|
|
32
|
-
|
|
32
|
+
disableFlockMode: () => void;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Start/join a flock session by following the given user
|
|
36
|
+
* @param userId The leader user ID
|
|
37
|
+
* @param name The leader user name
|
|
38
|
+
*/
|
|
39
|
+
startFollowingUser: (userId: string, name: string) => void;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Exit the flock session / stop following
|
|
43
|
+
*/
|
|
44
|
+
stopFollowingUser: () => void;
|
|
33
45
|
|
|
34
46
|
/**
|
|
35
47
|
* To enable adding self to the presence list
|
|
@@ -81,15 +93,24 @@ export declare class PresenceElement {
|
|
|
81
93
|
private _setInactivityTime;
|
|
82
94
|
|
|
83
95
|
/**
|
|
84
|
-
*
|
|
85
|
-
|
|
96
|
+
* Enable flock mode globally
|
|
97
|
+
*/
|
|
98
|
+
private _enableFlockMode;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Disable flock mode globally
|
|
102
|
+
*/
|
|
103
|
+
private _disableFlockMode;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Start/join a flock session by following the given user
|
|
86
107
|
*/
|
|
87
|
-
private
|
|
108
|
+
private _startFollowingUser;
|
|
88
109
|
|
|
89
110
|
/**
|
|
90
|
-
*
|
|
111
|
+
* Exit the flock session / stop following
|
|
91
112
|
*/
|
|
92
|
-
private
|
|
113
|
+
private _stopFollowingUser;
|
|
93
114
|
|
|
94
115
|
/**
|
|
95
116
|
* To enable adding self to the presence list
|
|
@@ -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,13 +5,23 @@ import { RecordedData, RecorderQualityConstraints, RecorderEncodingOptions, Reco
|
|
|
6
5
|
|
|
7
6
|
export declare class RecorderElement {
|
|
8
7
|
|
|
9
|
-
initRecording: (type: string, panelId?: string) =>
|
|
8
|
+
initRecording: (type: string, panelId?: string) => Promise<void>;
|
|
10
9
|
|
|
11
10
|
/**
|
|
12
11
|
* @deprecated Use on('recordingDone') method instead
|
|
13
12
|
*/
|
|
14
13
|
onRecordedData: () => Observable<RecordedData | null>;
|
|
15
14
|
|
|
15
|
+
/**
|
|
16
|
+
* To enable dark mode in recording
|
|
17
|
+
*/
|
|
18
|
+
enableDarkMode: () => void;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* To disable dark mode in recording
|
|
22
|
+
*/
|
|
23
|
+
disableDarkMode: () => void;
|
|
24
|
+
|
|
16
25
|
/**
|
|
17
26
|
* To enable recording countdown
|
|
18
27
|
*/
|
|
@@ -173,6 +182,16 @@ export declare class RecorderElement {
|
|
|
173
182
|
*/
|
|
174
183
|
private _onRecordedData;
|
|
175
184
|
|
|
185
|
+
/**
|
|
186
|
+
* To enable dark mode in recording
|
|
187
|
+
*/
|
|
188
|
+
private _enableDarkMode;
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* To disable dark mode in recording
|
|
192
|
+
*/
|
|
193
|
+
private _disableDarkMode;
|
|
194
|
+
|
|
176
195
|
/**
|
|
177
196
|
* To enable dark mode in comments
|
|
178
197
|
*/
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { RewriterAskAiRequest, RewriterAskAiResponse, RewriterReplaceTextRequest, RewriterReplaceTextResponse, RewriterAddCommentRequest, RewriterAddCommentResponse, RewriterEventTypesMap } from "../data/rewriter-events.data.model";
|
|
3
|
+
|
|
2
4
|
export declare class RewriterElement {
|
|
3
5
|
/**
|
|
4
6
|
* To enable rewriter feature
|
|
@@ -19,6 +21,26 @@ export declare class RewriterElement {
|
|
|
19
21
|
* To disable the default rewriter UI on text selection
|
|
20
22
|
*/
|
|
21
23
|
disableDefaultUI: () => void;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Subscribe to rewriter events
|
|
27
|
+
*/
|
|
28
|
+
on: <T extends keyof RewriterEventTypesMap>(action: T) => Observable<RewriterEventTypesMap[T]>;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Call AI with the currently selected text
|
|
32
|
+
*/
|
|
33
|
+
askAi: (request: RewriterAskAiRequest) => Promise<RewriterAskAiResponse>;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Replace the selected text in the DOM with the given text
|
|
37
|
+
*/
|
|
38
|
+
replaceText: (request: RewriterReplaceTextRequest) => Promise<RewriterReplaceTextResponse>;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Add a comment annotation on the selected text with the given text as comment body
|
|
42
|
+
*/
|
|
43
|
+
addComment: (request: RewriterAddCommentRequest) => Promise<RewriterAddCommentResponse>;
|
|
22
44
|
constructor();
|
|
23
45
|
|
|
24
46
|
/**
|
|
@@ -40,4 +62,24 @@ export declare class RewriterElement {
|
|
|
40
62
|
* To disable the default rewriter UI on text selection
|
|
41
63
|
*/
|
|
42
64
|
private _disableDefaultUI;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Subscribe to rewriter events
|
|
68
|
+
*/
|
|
69
|
+
private _on;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Call AI with the currently selected text
|
|
73
|
+
*/
|
|
74
|
+
private _askAi;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Replace the selected text in the DOM with the given text
|
|
78
|
+
*/
|
|
79
|
+
private _replaceText;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Add a comment annotation on the selected text with the given text as comment body
|
|
83
|
+
*/
|
|
84
|
+
private _addComment;
|
|
43
85
|
}
|
|
@@ -1,31 +1,30 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
1
|
import { Observable } from "rxjs";
|
|
3
|
-
import {
|
|
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<
|
|
7
|
+
* Returns Observable<TagAnnotation[] | null>.
|
|
9
8
|
*/
|
|
10
|
-
getAllTagAnnotations: (documentId?: string, documentParams?: object) => Observable<
|
|
9
|
+
getAllTagAnnotations: (documentId?: string, documentParams?: object) => Observable<TagAnnotation[] | null>;
|
|
11
10
|
|
|
12
11
|
/**
|
|
13
12
|
* To delete selected tags
|
|
14
13
|
*/
|
|
15
|
-
deleteTag: () =>
|
|
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[]) =>
|
|
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) =>
|
|
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<
|
|
39
|
+
* Returns Observable<TagAnnotation[] | null>.
|
|
41
40
|
*/
|
|
42
41
|
private _getAllTagAnnotations;
|
|
43
42
|
|
package/app/utils/enums.d.ts
CHANGED
|
@@ -1,38 +1,40 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
NEWLY_ADDED
|
|
3
|
-
ADDED
|
|
4
|
-
UPDATED
|
|
5
|
-
DELETED
|
|
6
|
-
APPROVED
|
|
7
|
-
ASSIGNED
|
|
8
|
-
STATUS_CHANGED
|
|
9
|
-
PRIORITY_CHANGED
|
|
10
|
-
ACCESS_MODE_CHANGED
|
|
11
|
-
CUSTOM_LIST_CHANGED
|
|
12
|
-
ACCEPTED
|
|
13
|
-
REJECTED
|
|
14
|
-
REACTION_ADDED
|
|
15
|
-
REACTION_DELETED
|
|
16
|
-
SUBSCRIBED
|
|
17
|
-
UNSUBSCRIBED
|
|
18
|
-
SUGGESTION_ACCEPTED
|
|
19
|
-
SUGGESTION_REJECTED
|
|
20
|
-
}
|
|
21
|
-
export
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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
|
|
46
|
-
STATUS_CHANGE
|
|
47
|
-
PRIORITY_CHANGE
|
|
48
|
-
ASSIGN
|
|
49
|
-
ACCESS_MODE_CHANGE
|
|
50
|
-
CUSTOM_LIST_CHANGE
|
|
51
|
-
APPROVE
|
|
52
|
-
ACCEPT
|
|
53
|
-
REJECT
|
|
54
|
-
SUGGESTION_ACCEPT
|
|
55
|
-
SUGGESTION_REJECT
|
|
56
|
-
REACTION_ADD
|
|
57
|
-
REACTION_DELETE
|
|
58
|
-
SUBSCRIBE
|
|
59
|
-
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";
|
|
@@ -95,6 +98,11 @@ export declare const CommentEventTypes: {
|
|
|
95
98
|
readonly COMMENT_TOOL_CLICKED: "commentToolClicked";
|
|
96
99
|
readonly SIDEBAR_BUTTON_CLICK: "sidebarButtonClick";
|
|
97
100
|
readonly SIDEBAR_BUTTON_CLICKED: "sidebarButtonClicked";
|
|
101
|
+
readonly SIDEBAR_OPEN: "sidebarOpen";
|
|
102
|
+
readonly SIDEBAR_CLOSE: "sidebarClose";
|
|
103
|
+
readonly FULLSCREEN_CLICK: "fullscreenClick";
|
|
104
|
+
readonly COMMENT_CLICK: "commentClick";
|
|
105
|
+
readonly COMMENT_NAVIGATION_BUTTON_CLICK: "commentNavigationButtonClick";
|
|
98
106
|
readonly ATTACHMENT_DOWNLOAD_CLICKED: "attachmentDownloadClicked";
|
|
99
107
|
readonly COMMENT_SAVED: "commentSaved";
|
|
100
108
|
readonly COMMENT_SAVE_TRIGGERED: "commentSaveTriggered";
|
|
@@ -200,11 +208,12 @@ export declare enum ArrowStatus {
|
|
|
200
208
|
UPDATED = "updated",
|
|
201
209
|
DELETED = "deleted"
|
|
202
210
|
}
|
|
203
|
-
export declare
|
|
204
|
-
ADDED
|
|
205
|
-
UPDATED
|
|
206
|
-
DELETED
|
|
207
|
-
}
|
|
211
|
+
export declare const AreaStatus: {
|
|
212
|
+
readonly ADDED: "added";
|
|
213
|
+
readonly UPDATED: "updated";
|
|
214
|
+
readonly DELETED: "deleted";
|
|
215
|
+
};
|
|
216
|
+
export type AreaStatus = (typeof AreaStatus)[keyof typeof AreaStatus];
|
|
208
217
|
export declare enum DocumentViewsStatus {
|
|
209
218
|
FIRST_VIEWED = "firstViewed"
|
|
210
219
|
}
|
|
@@ -277,19 +286,21 @@ export declare enum Roles {
|
|
|
277
286
|
ADMIN = "Admin",
|
|
278
287
|
COMMENTER = "Commenter"
|
|
279
288
|
}
|
|
280
|
-
export declare
|
|
281
|
-
PUBLIC
|
|
282
|
-
RESTRICTED
|
|
283
|
-
ORGANIZATION_PRIVATE
|
|
284
|
-
}
|
|
289
|
+
export declare const DocumentAccessType: {
|
|
290
|
+
readonly PUBLIC: "public";
|
|
291
|
+
readonly RESTRICTED: "restricted";
|
|
292
|
+
readonly ORGANIZATION_PRIVATE: "organizationPrivate";
|
|
293
|
+
};
|
|
294
|
+
export type DocumentAccessType = (typeof DocumentAccessType)[keyof typeof DocumentAccessType];
|
|
285
295
|
export declare enum DetectionStrategy {
|
|
286
296
|
DEFAULT = "default",
|
|
287
297
|
DYNAMIC_ID = "dynamicId"
|
|
288
298
|
}
|
|
289
|
-
export declare
|
|
290
|
-
PUBLIC
|
|
291
|
-
PRIVATE
|
|
292
|
-
}
|
|
299
|
+
export declare const CommentAccessMode: {
|
|
300
|
+
readonly PUBLIC: "public";
|
|
301
|
+
readonly PRIVATE: "private";
|
|
302
|
+
};
|
|
303
|
+
export type CommentAccessMode = (typeof CommentAccessMode)[keyof typeof CommentAccessMode];
|
|
293
304
|
export declare enum UnreadIndicatorMode {
|
|
294
305
|
MINIMAL = "minimal",
|
|
295
306
|
VERBOSE = "verbose"
|
|
@@ -302,25 +313,27 @@ export declare enum CommentCountType {
|
|
|
302
313
|
TOTAL = "total",
|
|
303
314
|
UNREAD = "unread"
|
|
304
315
|
}
|
|
305
|
-
export declare
|
|
306
|
-
ONLINE
|
|
307
|
-
OFFLINE
|
|
308
|
-
PENDING_INIT
|
|
309
|
-
PENDING_DATA
|
|
310
|
-
}
|
|
311
|
-
export
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
316
|
+
export declare const ServerConnectionState: {
|
|
317
|
+
readonly ONLINE: "online";
|
|
318
|
+
readonly OFFLINE: "offline";
|
|
319
|
+
readonly PENDING_INIT: "pendingInit";
|
|
320
|
+
readonly PENDING_DATA: "pendingData";
|
|
321
|
+
};
|
|
322
|
+
export type ServerConnectionState = (typeof ServerConnectionState)[keyof typeof ServerConnectionState];
|
|
323
|
+
export declare const ContactListScopeForOrganizationUsers: {
|
|
324
|
+
readonly ALL: "all";
|
|
325
|
+
readonly ORGANIZATION: "organization";
|
|
326
|
+
readonly ORGANIZATION_USER_GROUP: "organizationUserGroup";
|
|
327
|
+
readonly DOCUMENT: "document";
|
|
328
|
+
readonly FOLDER: "folder";
|
|
329
|
+
};
|
|
330
|
+
export type ContactListScopeForOrganizationUsers = (typeof ContactListScopeForOrganizationUsers)[keyof typeof ContactListScopeForOrganizationUsers];
|
|
318
331
|
export type RecorderMode = 'audio' | 'video' | 'screen' | 'all' | string;
|
|
319
332
|
export type RecorderType = 'audio' | 'video' | 'screen';
|
|
320
333
|
export type RecorderFileFormat = 'mp3' | 'mp4' | 'webm';
|
|
321
334
|
export type RecorderLayoutMode = 'floating' | 'thread';
|
|
322
335
|
export type SupportedMimeType = 'audio' | 'video';
|
|
323
|
-
export type FirebaseRegion = 'usCentral1' | 'asiaSouthEast1' | 'europeWest1' | 'australiaSouthEast1';
|
|
336
|
+
export type FirebaseRegion = 'usCentral1' | 'asiaSouthEast1' | 'europeWest1' | 'australiaSouthEast1' | 'asiaNorthEast1';
|
|
324
337
|
export type VideoEventType = 'play' | 'pause' | 'ratechange' | 'seeked' | 'timeupdate' | 'volumechange';
|
|
325
338
|
export type RewriterType = 'copywriter' | 'generic';
|
|
326
339
|
export type RecorderStatusType = 'started' | 'paused' | 'resumed' | 'stopped' | 'error' | null;
|
|
@@ -354,10 +367,11 @@ export type InlineSortingCriteria = 'createdFirst' | 'createdLast' | 'updatedFir
|
|
|
354
367
|
export type NotificationPanelMode = 'popover' | 'sidebar';
|
|
355
368
|
export type SidebarActionButtonType = 'default' | 'toggle';
|
|
356
369
|
export type SidebarButtonCountType = 'default' | 'filter';
|
|
357
|
-
export declare
|
|
358
|
-
AND
|
|
359
|
-
OR
|
|
360
|
-
}
|
|
370
|
+
export declare const CommentSidebarSystemFiltersOperator: {
|
|
371
|
+
readonly AND: "and";
|
|
372
|
+
readonly OR: "or";
|
|
373
|
+
};
|
|
374
|
+
export type CommentSidebarSystemFiltersOperator = (typeof CommentSidebarSystemFiltersOperator)[keyof typeof CommentSidebarSystemFiltersOperator];
|
|
361
375
|
/**
|
|
362
376
|
* Type for notification settings accordion types
|
|
363
377
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/types",
|
|
3
|
-
"version": "6.0.0-beta.
|
|
3
|
+
"version": "6.0.0-beta.11",
|
|
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": [
|
|
@@ -38,5 +38,11 @@
|
|
|
38
38
|
},
|
|
39
39
|
"author": "",
|
|
40
40
|
"license": "ISC",
|
|
41
|
-
"typings": "./velt.d.ts"
|
|
41
|
+
"typings": "./velt.d.ts",
|
|
42
|
+
"types": "./velt.d.ts",
|
|
43
|
+
"exports": {
|
|
44
|
+
".": {
|
|
45
|
+
"types": "./velt.d.ts"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
42
48
|
}
|
package/types.d.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
export * from './app/client/snippyly.model';
|
|
2
|
-
export * from './app/client/velt.model';
|
|
3
|
-
export * from './app/models/element/area-element.model';
|
|
4
|
-
export * from './app/models/element/arrow-element.model';
|
|
5
|
-
export * from './app/models/element/comment-element.model';
|
|
6
|
-
export * from './app/models/element/contact-element.model';
|
|
7
|
-
export * from './app/models/element/cursor-element.model';
|
|
8
|
-
export * from './app/models/element/huddle-element.model';
|
|
9
|
-
export * from './app/models/element/live-state-sync-element.model';
|
|
10
|
-
export * from './app/models/element/presence-element.model';
|
|
11
|
-
export * from './app/models/element/recorder-element.model';
|
|
12
|
-
export * from './app/models/element/rewriter-element.model';
|
|
13
|
-
export * from './app/models/element/selection-element.model';
|
|
14
|
-
export * from './app/models/element/tag-element.model';
|
|
15
|
-
export * from './app/models/element/views-element.model';
|
|
16
|
-
export * from './app/models/element/notification-element.model';
|
|
17
|
-
export * from './app/models/element/autocomplete-element.model';
|
|
18
|
-
export * from './app/models/element/reaction-element.model';
|
|
19
|
-
export * from './app/models/element/crdt-element.model';
|
|
20
|
-
export * from './app/models/element/activity-element.model';
|
|
21
|
-
export * from './app/models/element/suggestion-element.model';
|
|
22
|
-
export * from './models';
|
|
1
|
+
export type * from './app/client/snippyly.model';
|
|
2
|
+
export type * from './app/client/velt.model';
|
|
3
|
+
export type * from './app/models/element/area-element.model';
|
|
4
|
+
export type * from './app/models/element/arrow-element.model';
|
|
5
|
+
export type * from './app/models/element/comment-element.model';
|
|
6
|
+
export type * from './app/models/element/contact-element.model';
|
|
7
|
+
export type * from './app/models/element/cursor-element.model';
|
|
8
|
+
export type * from './app/models/element/huddle-element.model';
|
|
9
|
+
export type * from './app/models/element/live-state-sync-element.model';
|
|
10
|
+
export type * from './app/models/element/presence-element.model';
|
|
11
|
+
export type * from './app/models/element/recorder-element.model';
|
|
12
|
+
export type * from './app/models/element/rewriter-element.model';
|
|
13
|
+
export type * from './app/models/element/selection-element.model';
|
|
14
|
+
export type * from './app/models/element/tag-element.model';
|
|
15
|
+
export type * from './app/models/element/views-element.model';
|
|
16
|
+
export type * from './app/models/element/notification-element.model';
|
|
17
|
+
export type * from './app/models/element/autocomplete-element.model';
|
|
18
|
+
export type * from './app/models/element/reaction-element.model';
|
|
19
|
+
export type * from './app/models/element/crdt-element.model';
|
|
20
|
+
export type * from './app/models/element/activity-element.model';
|
|
21
|
+
export type * from './app/models/element/suggestion-element.model';
|
|
22
|
+
export type * from './models';
|
package/velt.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
1
|
import * as velt from './types';
|
|
3
|
-
export * from './types';
|
|
2
|
+
export type * from './types';
|
|
4
3
|
export type Velt = { init: (api: string, config: velt.Config) => Velt, loaded: boolean, loadVelt: Function, loadSnippyly: Function } & velt.Velt;
|
|
5
4
|
export const Velt: {
|
|
6
5
|
init: (api: string, config?: velt.Config) => Promise<Velt>,
|