@veltdev/sdk 4.0.0-beta.1 → 4.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 +10 -0
- package/app/models/data/arrow-annotation.data.model.d.ts +51 -0
- package/app/models/data/comment-actions.data.model.d.ts +4 -5
- package/app/models/data/comment-events.data.model.d.ts +7 -10
- package/app/models/data/comment-sidebar-config.model.d.ts +1 -0
- package/app/models/data/config.data.model.d.ts +1 -0
- package/app/models/data/document.data.model.d.ts +8 -0
- package/app/models/data/event-metadata.data.model.d.ts +3 -3
- package/app/models/data/multi-thread.data.model.d.ts +61 -0
- package/app/models/data/notification.model.d.ts +16 -0
- package/app/models/data/recorder-annotation.data.model.d.ts +6 -0
- package/app/models/data/recorder-events.data.model.d.ts +16 -0
- package/app/models/data/user-resolver.data.model.d.ts +5 -0
- package/app/models/element/comment-element.model.d.ts +48 -28
- package/app/models/element/recorder-element.model.d.ts +22 -1
- package/app/utils/constants.d.ts +1 -0
- package/app/utils/enums.d.ts +4 -0
- package/models.d.ts +5 -0
- package/package.json +1 -1
- package/velt.js +2 -2
|
@@ -26,6 +26,8 @@ import { DocumentMetadata } from "../models/data/document-metadata.model";
|
|
|
26
26
|
import { ReactionElement } from "../models/element/reaction-element.model";
|
|
27
27
|
import { VeltEventMetadata } from "../models/data/event-metadata.data.model";
|
|
28
28
|
import { CoreEventTypesMap } from "../models/data/core-events.data.model";
|
|
29
|
+
import { Document, SetDocumentsRequestOptions } from "../models/data/document.data.model";
|
|
30
|
+
import { UserDataProvider } from "../models/data/user-resolver.data.model";
|
|
29
31
|
export declare class Snippyly {
|
|
30
32
|
constructor();
|
|
31
33
|
initConfig: (apiKey: string, config?: Config) => void;
|
|
@@ -48,10 +50,18 @@ export declare class Snippyly {
|
|
|
48
50
|
* @param id unique document ID
|
|
49
51
|
*/
|
|
50
52
|
setDocumentId: (id: string) => void;
|
|
53
|
+
/**
|
|
54
|
+
* To set multiple documents
|
|
55
|
+
*/
|
|
56
|
+
setDocuments: (documents: Document[], options?: SetDocumentsRequestOptions) => void;
|
|
51
57
|
/**
|
|
52
58
|
* To unset the document id
|
|
53
59
|
*/
|
|
54
60
|
unsetDocumentId: () => void;
|
|
61
|
+
/**
|
|
62
|
+
* To set the user data provider.
|
|
63
|
+
*/
|
|
64
|
+
setUserDataProvider: (userDataProvider: UserDataProvider) => void;
|
|
55
65
|
/**
|
|
56
66
|
* Get Document ID
|
|
57
67
|
*/
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { AnnotationProperty } from "./annotation-property.data.model";
|
|
2
|
+
import { CursorPosition } from "./cursor-position.data.model";
|
|
3
|
+
import { Location } from "./location.model";
|
|
4
|
+
import { PageInfo } from "./page-info.model";
|
|
5
|
+
import { TargetElement } from "./target-element.data.model";
|
|
6
|
+
import { User } from "./user.data.model";
|
|
7
|
+
export declare class ArrowAnnotation {
|
|
8
|
+
/**
|
|
9
|
+
* Unique identifier for the arrow pin annotation.
|
|
10
|
+
*
|
|
11
|
+
* Auto generated.
|
|
12
|
+
*/
|
|
13
|
+
annotationId: string;
|
|
14
|
+
/**
|
|
15
|
+
* The user who created this arrow pin annotation.
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
from: User;
|
|
19
|
+
/**
|
|
20
|
+
* Color used for the arrow pin annotation.
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
color?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Timestamp when the arrow annotation was last updated.
|
|
26
|
+
*
|
|
27
|
+
* Auto generated.
|
|
28
|
+
*/
|
|
29
|
+
lastUpdated?: any;
|
|
30
|
+
/**
|
|
31
|
+
* Target element of attached annotation.
|
|
32
|
+
*/
|
|
33
|
+
targetElement?: TargetElement | null;
|
|
34
|
+
position?: CursorPosition | null;
|
|
35
|
+
/**
|
|
36
|
+
* Unique location id generated from provided location
|
|
37
|
+
*/
|
|
38
|
+
locationId?: number | null;
|
|
39
|
+
/**
|
|
40
|
+
* Set location to identify user on sub document
|
|
41
|
+
*/
|
|
42
|
+
location?: Location | null;
|
|
43
|
+
type?: string;
|
|
44
|
+
props: AnnotationProperty;
|
|
45
|
+
/**
|
|
46
|
+
* To maintain index of current annotation in available list of annotations
|
|
47
|
+
* It will start from 1, so no need to add 1 in that.
|
|
48
|
+
*/
|
|
49
|
+
annotationIndex?: number;
|
|
50
|
+
pageInfo?: PageInfo;
|
|
51
|
+
}
|
|
@@ -59,11 +59,10 @@ export interface DeleteCommentAnnotationRequest {
|
|
|
59
59
|
annotationId: string;
|
|
60
60
|
options?: RequestOptions;
|
|
61
61
|
}
|
|
62
|
-
export interface
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
options?: RequestOptions;
|
|
62
|
+
export interface CommentRequestQuery {
|
|
63
|
+
documentIds?: string[];
|
|
64
|
+
locationIds?: string[];
|
|
65
|
+
statusIds?: string[];
|
|
67
66
|
}
|
|
68
67
|
export interface SubscribeCommentAnnotationRequest {
|
|
69
68
|
annotationId: string;
|
|
@@ -126,18 +126,15 @@ export interface DeleteCommentAnnotationEvent {
|
|
|
126
126
|
commentAnnotation: CommentAnnotation;
|
|
127
127
|
metadata: VeltEventMetadata;
|
|
128
128
|
}
|
|
129
|
-
export interface
|
|
130
|
-
|
|
131
|
-
metadata: VeltEventMetadata;
|
|
132
|
-
}
|
|
133
|
-
export interface GetCommentAnnotationResponse {
|
|
134
|
-
[documentId: string]: CommentAnnotation[];
|
|
129
|
+
export interface GetCommentAnnotationsResponse {
|
|
130
|
+
data: Record<string, CommentAnnotation[]> | null;
|
|
135
131
|
}
|
|
136
132
|
export interface GetCommentAnnotationsCountResponse {
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
133
|
+
data: Record<string, CommentAnnotationsCount> | null;
|
|
134
|
+
}
|
|
135
|
+
export interface CommentAnnotationsCount {
|
|
136
|
+
unread: number;
|
|
137
|
+
total: number;
|
|
141
138
|
}
|
|
142
139
|
export interface SubscribeCommentAnnotationEvent {
|
|
143
140
|
annotationId: string;
|
|
@@ -12,6 +12,7 @@ export declare class CommentSidebarFilterConfig {
|
|
|
12
12
|
location?: FilterTypeConfig;
|
|
13
13
|
people?: FilterTypeConfig;
|
|
14
14
|
priority?: FilterTypeConfig;
|
|
15
|
+
status?: FilterTypeConfig;
|
|
15
16
|
category?: FilterTypeConfig;
|
|
16
17
|
commentType?: FilterTypeConfig;
|
|
17
18
|
version?: FilterTypeConfig;
|
|
@@ -2,7 +2,7 @@ import { DocumentMetadata } from "./document-metadata.model";
|
|
|
2
2
|
import { Location } from "./location.model";
|
|
3
3
|
import { OrganizationMetadata } from "./organization-metadata.model";
|
|
4
4
|
export interface VeltEventMetadata {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
organization?: OrganizationMetadata | null;
|
|
6
|
+
documents?: DocumentMetadata[];
|
|
7
|
+
locations?: Location[];
|
|
8
8
|
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { BaseMetadata } from "./base-metadata.data.model";
|
|
2
|
+
import { CommentAnnotation, GhostComment, InlineCommentSectionConfig } from "./comment-annotation.data.model";
|
|
3
|
+
import { CursorPosition } from "./cursor-position.data.model";
|
|
4
|
+
import { Location } from "./location.model";
|
|
5
|
+
import { TargetElement } from "./target-element.data.model";
|
|
6
|
+
import { TargetTextRange } from "./target-text-range.data.model";
|
|
7
|
+
import { User } from "./user.data.model";
|
|
8
|
+
export declare class MultiThreadCommentAnnotation {
|
|
9
|
+
/**
|
|
10
|
+
* The id of the annotation.
|
|
11
|
+
*/
|
|
12
|
+
annotationId: string;
|
|
13
|
+
/**
|
|
14
|
+
* The id of the area annotation.
|
|
15
|
+
*/
|
|
16
|
+
areaAnnotationId?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The target element of the annotation.
|
|
19
|
+
*/
|
|
20
|
+
targetElement?: TargetElement | null;
|
|
21
|
+
/**
|
|
22
|
+
* The id of the target element.
|
|
23
|
+
*/
|
|
24
|
+
targetElementId?: string | null;
|
|
25
|
+
/**
|
|
26
|
+
* Selected text range of comment annotation
|
|
27
|
+
*/
|
|
28
|
+
targetTextRange?: TargetTextRange | null;
|
|
29
|
+
/**
|
|
30
|
+
* The id of the target inline comment element.
|
|
31
|
+
*/
|
|
32
|
+
targetInlineCommentElementId?: string;
|
|
33
|
+
/**
|
|
34
|
+
* The inline comment section config.
|
|
35
|
+
*/
|
|
36
|
+
inlineCommentSectionConfig?: InlineCommentSectionConfig;
|
|
37
|
+
commentAnnotations?: {
|
|
38
|
+
[commentAnnotationId: string]: boolean;
|
|
39
|
+
};
|
|
40
|
+
commentAnnotationsMap?: {
|
|
41
|
+
[commentAnnotationId: string]: CommentAnnotation;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Unique location id generated from provided location
|
|
45
|
+
*/
|
|
46
|
+
locationId?: number | null;
|
|
47
|
+
/**
|
|
48
|
+
* Set location to identify user on sub document
|
|
49
|
+
*/
|
|
50
|
+
location?: Location | null;
|
|
51
|
+
position?: CursorPosition | null;
|
|
52
|
+
ghostComment?: GhostComment | null;
|
|
53
|
+
from: User;
|
|
54
|
+
type: string;
|
|
55
|
+
isDraft?: boolean;
|
|
56
|
+
sourceId?: string;
|
|
57
|
+
metadata?: MultiThreadMetadata;
|
|
58
|
+
}
|
|
59
|
+
export declare class MultiThreadMetadata extends BaseMetadata {
|
|
60
|
+
[key: string]: any;
|
|
61
|
+
}
|
|
@@ -88,6 +88,11 @@ export declare class NotificationRawData {
|
|
|
88
88
|
[key: string]: any;
|
|
89
89
|
};
|
|
90
90
|
displayBodyMessage?: string;
|
|
91
|
+
displayBodyMessageTemplate?: string;
|
|
92
|
+
displayBodyMessageTemplateData?: {
|
|
93
|
+
users?: User[];
|
|
94
|
+
[key: string]: any;
|
|
95
|
+
};
|
|
91
96
|
customData?: any;
|
|
92
97
|
notifyUsers?: {
|
|
93
98
|
[email: string]: boolean;
|
|
@@ -127,6 +132,17 @@ export declare class Notification {
|
|
|
127
132
|
* Notification body message
|
|
128
133
|
*/
|
|
129
134
|
displayBodyMessage?: string;
|
|
135
|
+
/**
|
|
136
|
+
* Display body message template
|
|
137
|
+
*/
|
|
138
|
+
displayBodyMessageTemplate?: string;
|
|
139
|
+
/**
|
|
140
|
+
* Display body message template data
|
|
141
|
+
*/
|
|
142
|
+
displayBodyMessageTemplateData?: {
|
|
143
|
+
users?: User[];
|
|
144
|
+
[key: string]: any;
|
|
145
|
+
};
|
|
130
146
|
/**
|
|
131
147
|
* Display message template
|
|
132
148
|
*/
|
|
@@ -164,4 +164,10 @@ export declare class RecorderData {
|
|
|
164
164
|
assets: RecorderDataAsset[];
|
|
165
165
|
transcription: RecorderDataTranscription;
|
|
166
166
|
}
|
|
167
|
+
export interface RecorderRequestQuery {
|
|
168
|
+
recorderIds: string[];
|
|
169
|
+
}
|
|
170
|
+
export interface GetRecordingDataResponse {
|
|
171
|
+
data: Record<string, RecorderData> | null;
|
|
172
|
+
}
|
|
167
173
|
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { RecorderEventTypes } from "../../utils/enums";
|
|
2
|
+
export interface TranscriptionDoneEvent {
|
|
3
|
+
transcription: string;
|
|
4
|
+
id?: string;
|
|
5
|
+
tag?: string;
|
|
6
|
+
type?: string;
|
|
7
|
+
thumbnailUrl?: string;
|
|
8
|
+
thumbnailWithPlayIconUrl?: string;
|
|
9
|
+
videoUrl?: string;
|
|
10
|
+
audioUrl?: string;
|
|
11
|
+
videoPlayerUrl?: string;
|
|
12
|
+
getThumbnailTag?: (url?: string) => string;
|
|
13
|
+
}
|
|
14
|
+
export type RecorderEventTypesMap = {
|
|
15
|
+
[RecorderEventTypes.TRANSCRIPTION_DONE]: TranscriptionDoneEvent;
|
|
16
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
import { Observable } from "rxjs";
|
|
3
3
|
import { CommentAnnotation, CommentOnElementConfig, CommentSelectionChangeData, ManualCommentAnnotationConfig, UpdateContextConfig } from "../data/comment-annotation.data.model";
|
|
4
|
-
import { AcceptCommentAnnotationEvent, AddCommentAnnotationEvent, AddCommentEvent, AddReactionEvent, ApproveCommentAnnotationEvent, CommentAddEventData, CommentEventTypesMap, CommentUpdateEventData, CopyLinkEvent, DeleteAttachmentEvent, DeleteCommentAnnotationEvent, DeleteCommentEvent, DeleteReactionEvent, DeleteRecordingEvent, GetLinkEvent, RejectCommentAnnotationEvent, ToggleReactionEvent, UpdateAccessEvent, UpdateCommentEvent, UpdatePriorityEvent, UpdateStatusEvent } from "../data/comment-events.data.model";
|
|
4
|
+
import { AcceptCommentAnnotationEvent, AddCommentAnnotationEvent, AddCommentEvent, AddReactionEvent, ApproveCommentAnnotationEvent, CommentAddEventData, CommentEventTypesMap, CommentUpdateEventData, CopyLinkEvent, DeleteAttachmentEvent, DeleteCommentAnnotationEvent, DeleteCommentEvent, DeleteReactionEvent, DeleteRecordingEvent, GetLinkEvent, RejectCommentAnnotationEvent, ToggleReactionEvent, UpdateAccessEvent, UpdateCommentEvent, UpdatePriorityEvent, UpdateStatusEvent, GetCommentAnnotationsResponse, GetCommentAnnotationsCountResponse } from "../data/comment-events.data.model";
|
|
5
5
|
import { CustomCategory, CustomPriority, CustomStatus } from "../data/custom-filter.data.model";
|
|
6
6
|
import { CustomAnnotationDropdownData } from "../data/custom-chip-dropdown.data.model";
|
|
7
7
|
import { AutocompleteData } from "../data/autocomplete.data.model";
|
|
8
8
|
import { CommentSidebarCustomActionEventData, CommentSidebarData, CommentSidebarDataOptions } from "../data/comment-sidebar-config.model";
|
|
9
9
|
export { ReactionMap } from '../data/reaction-annotation.data.model';
|
|
10
|
-
import { AcceptCommentAnnotationRequest, AddAttachmentRequest, AddAttachmentResponse, AddCommentAnnotationRequest, AddCommentRequest, AddReactionRequest, ApproveCommentAnnotationRequest, AssignUserRequest, AssignUserEvent, CopyLinkRequest, DeleteAttachmentRequest, DeleteCommentAnnotationRequest, DeleteCommentRequest, DeleteReactionRequest, DeleteRecordingRequest, GetAttachmentRequest, GetCommentRequest, GetLinkRequest, GetRecordingRequest, RejectCommentAnnotationRequest, ResolveCommentAnnotationRequest, SubscribeCommentAnnotationRequest, UnsubscribeCommentAnnotationRequest, ToggleReactionRequest, UpdateAccessRequest, UpdateCommentRequest, UpdatePriorityRequest, UpdateStatusRequest } from "../data/comment-actions.data.model";
|
|
10
|
+
import { AcceptCommentAnnotationRequest, AddAttachmentRequest, AddAttachmentResponse, AddCommentAnnotationRequest, AddCommentRequest, AddReactionRequest, ApproveCommentAnnotationRequest, AssignUserRequest, AssignUserEvent, CopyLinkRequest, DeleteAttachmentRequest, DeleteCommentAnnotationRequest, CommentRequestQuery, CommentRequestQuery, DeleteCommentRequest, DeleteReactionRequest, DeleteRecordingRequest, GetAttachmentRequest, GetCommentRequest, GetLinkRequest, GetRecordingRequest, RejectCommentAnnotationRequest, ResolveCommentAnnotationRequest, SubscribeCommentAnnotationRequest, UnsubscribeCommentAnnotationRequest, ToggleReactionRequest, UpdateAccessRequest, UpdateCommentRequest, UpdatePriorityRequest, UpdateStatusRequest } from "../data/comment-actions.data.model";
|
|
11
11
|
import { UnreadCommentsCount } from "../data/comment-utils.data.model";
|
|
12
12
|
export declare class CommentElement {
|
|
13
13
|
/**
|
|
@@ -921,132 +921,142 @@ export declare class CommentElement {
|
|
|
921
921
|
/**
|
|
922
922
|
* To add comment annotation
|
|
923
923
|
*/
|
|
924
|
-
public addCommentAnnotation: (
|
|
924
|
+
public addCommentAnnotation: (request: AddCommentAnnotationRequest) => Promise<AddCommentAnnotationEvent | null>;
|
|
925
925
|
|
|
926
926
|
/**
|
|
927
927
|
* To approve comment annotation
|
|
928
928
|
*/
|
|
929
|
-
public approveCommentAnnotation: (
|
|
929
|
+
public approveCommentAnnotation: (request: ApproveCommentAnnotationRequest) => Promise<ApproveCommentAnnotationEvent | null>;
|
|
930
930
|
|
|
931
931
|
/**
|
|
932
932
|
* To accept comment annotation
|
|
933
933
|
*/
|
|
934
|
-
public acceptCommentAnnotation: (
|
|
934
|
+
public acceptCommentAnnotation: (request: AcceptCommentAnnotationRequest) => Promise<AcceptCommentAnnotationEvent | null>;
|
|
935
935
|
|
|
936
936
|
/**
|
|
937
937
|
* To reject comment annotation
|
|
938
938
|
*/
|
|
939
|
-
public rejectCommentAnnotation: (
|
|
939
|
+
public rejectCommentAnnotation: (request: RejectCommentAnnotationRequest) => Promise<RejectCommentAnnotationEvent | null>;
|
|
940
940
|
|
|
941
941
|
/**
|
|
942
942
|
* To subscribe comment annotation
|
|
943
943
|
*/
|
|
944
|
-
public subscribeCommentAnnotation: (
|
|
944
|
+
public subscribeCommentAnnotation: (request: SubscribeCommentAnnotationRequest) => Promise<SubscribeCommentAnnotationEvent | null>;
|
|
945
945
|
|
|
946
946
|
/**
|
|
947
947
|
* To unsubscribe comment annotation
|
|
948
948
|
*/
|
|
949
|
-
public unsubscribeCommentAnnotation: (
|
|
949
|
+
public unsubscribeCommentAnnotation: (request: UnsubscribeCommentAnnotationRequest) => Promise<UnsubscribeCommentAnnotationEvent | null>;
|
|
950
950
|
|
|
951
951
|
/**
|
|
952
952
|
* To delete comment annotation
|
|
953
953
|
*/
|
|
954
|
-
public deleteCommentAnnotation: (
|
|
954
|
+
public deleteCommentAnnotation: (request: DeleteCommentAnnotationRequest) => Promise<DeleteCommentAnnotationEvent | null>;
|
|
955
|
+
|
|
956
|
+
/**
|
|
957
|
+
* To get comment annotations
|
|
958
|
+
*/
|
|
959
|
+
public getCommentAnnotations: (query?: CommentRequestQuery) => Observable<GetCommentAnnotationsResponse>;
|
|
960
|
+
|
|
961
|
+
/**
|
|
962
|
+
* To get comment annotations count
|
|
963
|
+
*/
|
|
964
|
+
public getCommentAnnotationsCount: (query?: CommentRequestQuery) => Observable<GetCommentAnnotationsCountResponse>;
|
|
955
965
|
|
|
956
966
|
/**
|
|
957
967
|
* To assign user to comment annotation
|
|
958
968
|
*/
|
|
959
|
-
public assignUser: (
|
|
969
|
+
public assignUser: (request: AssignUserRequest) => Promise<AssignUserEvent | null>;
|
|
960
970
|
|
|
961
971
|
/**
|
|
962
972
|
* To update priority
|
|
963
973
|
*/
|
|
964
|
-
public updatePriority: (
|
|
974
|
+
public updatePriority: (request: UpdatePriorityRequest) => Promise<UpdatePriorityEvent | null>;
|
|
965
975
|
|
|
966
976
|
/**
|
|
967
977
|
* To update status
|
|
968
978
|
*/
|
|
969
|
-
public updateStatus: (
|
|
979
|
+
public updateStatus: (request: UpdateStatusRequest) => Promise<UpdateStatusEvent | null>;
|
|
970
980
|
|
|
971
981
|
/**
|
|
972
982
|
* To update access
|
|
973
983
|
*/
|
|
974
|
-
public updateAccess: (
|
|
984
|
+
public updateAccess: (request: UpdateAccessRequest) => Promise<UpdateAccessEvent | null>;
|
|
975
985
|
|
|
976
986
|
/**
|
|
977
987
|
* To resolve comment annotation
|
|
978
988
|
*/
|
|
979
|
-
public resolveCommentAnnotation: (
|
|
989
|
+
public resolveCommentAnnotation: (request: ResolveCommentAnnotationRequest) => Promise<any>;
|
|
980
990
|
|
|
981
991
|
/**
|
|
982
992
|
* To get link
|
|
983
993
|
*/
|
|
984
|
-
public getLink: (
|
|
994
|
+
public getLink: (request: GetLinkRequest) => Promise<GetLinkEvent | null>;
|
|
985
995
|
|
|
986
996
|
/**
|
|
987
997
|
* To copy link
|
|
988
998
|
*/
|
|
989
|
-
public copyLink: (
|
|
999
|
+
public copyLink: (request: CopyLinkRequest) => Promise<CopyLinkEvent | null>;
|
|
990
1000
|
|
|
991
1001
|
/**
|
|
992
1002
|
* To add comment
|
|
993
1003
|
*/
|
|
994
|
-
public addComment: (
|
|
1004
|
+
public addComment: (request: AddCommentRequest) => Promise<AddCommentEvent | null>;
|
|
995
1005
|
|
|
996
1006
|
/**
|
|
997
1007
|
* To update comment
|
|
998
1008
|
*/
|
|
999
|
-
public updateComment: (
|
|
1009
|
+
public updateComment: (request: UpdateCommentRequest) => Promise<UpdateCommentEvent | null>;
|
|
1000
1010
|
|
|
1001
1011
|
/**
|
|
1002
1012
|
* To delete comment
|
|
1003
1013
|
*/
|
|
1004
|
-
public deleteComment: (
|
|
1014
|
+
public deleteComment: (request: DeleteCommentRequest) => Promise<DeleteCommentEvent | null>;
|
|
1005
1015
|
|
|
1006
1016
|
/**
|
|
1007
1017
|
* To get comment
|
|
1008
1018
|
*/
|
|
1009
|
-
public getComment: (
|
|
1019
|
+
public getComment: (request: GetCommentRequest) => Promise<Comment[]>;
|
|
1010
1020
|
|
|
1011
1021
|
/**
|
|
1012
1022
|
* To add attachment
|
|
1013
1023
|
*/
|
|
1014
|
-
public addAttachment: (
|
|
1024
|
+
public addAttachment: (request: AddAttachmentRequest) => Promise<AddAttachmentResponse[]>;
|
|
1015
1025
|
|
|
1016
1026
|
/**
|
|
1017
1027
|
* To get attachment
|
|
1018
1028
|
*/
|
|
1019
|
-
public getAttachment: (
|
|
1029
|
+
public getAttachment: (request: GetAttachmentRequest) => Promise<Attachment[]>;
|
|
1020
1030
|
|
|
1021
1031
|
/**
|
|
1022
1032
|
* To delete attachment
|
|
1023
1033
|
*/
|
|
1024
|
-
public deleteAttachment: (
|
|
1034
|
+
public deleteAttachment: (request: DeleteAttachmentRequest) => Promise<DeleteAttachmentEvent | null>;
|
|
1025
1035
|
|
|
1026
1036
|
/**
|
|
1027
1037
|
* To get recording
|
|
1028
1038
|
*/
|
|
1029
|
-
public getRecording: (
|
|
1039
|
+
public getRecording: (request: GetRecordingRequest) => Promise<RecordedData[]>;
|
|
1030
1040
|
|
|
1031
1041
|
/**
|
|
1032
1042
|
* To delete recording
|
|
1033
1043
|
*/
|
|
1034
|
-
public deleteRecording: (
|
|
1044
|
+
public deleteRecording: (request: DeleteRecordingRequest) => Promise<DeleteRecordingEvent | null>;
|
|
1035
1045
|
|
|
1036
1046
|
/**
|
|
1037
1047
|
* To add reaction
|
|
1038
1048
|
*/
|
|
1039
|
-
public addReaction: (
|
|
1049
|
+
public addReaction: (request: AddReactionRequest) => Promise<AddReactionEvent | null>;
|
|
1040
1050
|
|
|
1041
1051
|
/**
|
|
1042
1052
|
* To delete reaction
|
|
1043
1053
|
*/
|
|
1044
|
-
public deleteReaction: (
|
|
1054
|
+
public deleteReaction: (request: DeleteReactionRequest) => Promise<DeleteReactionEvent | null>;
|
|
1045
1055
|
|
|
1046
1056
|
/**
|
|
1047
1057
|
* To toggle reaction
|
|
1048
1058
|
*/
|
|
1049
|
-
public toggleReaction: (
|
|
1059
|
+
public toggleReaction: (request: ToggleReactionRequest) => Promise<ToggleReactionEvent | null>;
|
|
1050
1060
|
|
|
1051
1061
|
/**
|
|
1052
1062
|
* Subscribe to comment actions
|
|
@@ -1998,6 +2008,16 @@ export declare class CommentElement {
|
|
|
1998
2008
|
*/
|
|
1999
2009
|
private _deleteCommentAnnotation;
|
|
2000
2010
|
|
|
2011
|
+
/**
|
|
2012
|
+
* To get comment annotations
|
|
2013
|
+
*/
|
|
2014
|
+
private _getCommentAnnotations;
|
|
2015
|
+
|
|
2016
|
+
/**
|
|
2017
|
+
* To get comment annotations count
|
|
2018
|
+
*/
|
|
2019
|
+
private _getCommentAnnotationsCount;
|
|
2020
|
+
|
|
2001
2021
|
/**
|
|
2002
2022
|
* To assign user to comment annotation
|
|
2003
2023
|
*/
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
import { Observable } from "rxjs";
|
|
3
|
-
import { RecorderData } from "../data/recorder-annotation.data.model";
|
|
3
|
+
import { RecorderData, RecorderRequestQuery, GetRecordingDataResponse } from "../data/recorder-annotation.data.model";
|
|
4
|
+
import { RecorderEventTypesMap } from "../data/recorder-events.data.model";
|
|
4
5
|
|
|
5
6
|
export declare class RecorderElement {
|
|
6
7
|
|
|
@@ -33,6 +34,16 @@ export declare class RecorderElement {
|
|
|
33
34
|
*/
|
|
34
35
|
disableRecordingTranscription: () => void;
|
|
35
36
|
|
|
37
|
+
/**
|
|
38
|
+
* Subscribe to recorder actions
|
|
39
|
+
*/
|
|
40
|
+
public on: <T extends keyof RecorderEventTypesMap>(action: T) => Observable<RecorderEventTypesMap[T]>;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* To get recording data by recorder ids
|
|
44
|
+
*/
|
|
45
|
+
getRecordingData: (query: RecorderRequestQuery) => Promise<GetRecordingDataResponse>;
|
|
46
|
+
|
|
36
47
|
constructor();
|
|
37
48
|
|
|
38
49
|
private _initRecording;
|
|
@@ -63,4 +74,14 @@ export declare class RecorderElement {
|
|
|
63
74
|
* To disable recording transcription
|
|
64
75
|
*/
|
|
65
76
|
private _disableRecordingTranscription;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Subscribe to recorder actions
|
|
80
|
+
*/
|
|
81
|
+
private _on;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* To get recording data by recorder ids
|
|
85
|
+
*/
|
|
86
|
+
private _getRecordingData;
|
|
66
87
|
}
|
package/app/utils/constants.d.ts
CHANGED
|
@@ -242,6 +242,7 @@ export declare class Constants {
|
|
|
242
242
|
VELT_COMMENT_DIALOG_BODY_THREAD_CARD: string;
|
|
243
243
|
VELT_COMMENT_DIALOG_PRIVATE_BANNER: string;
|
|
244
244
|
VELT_COMMENT_COMPOSER: string;
|
|
245
|
+
VELT_SKELETON_LOADER: string;
|
|
245
246
|
VELT_SHADOW_DOM_INTERNAL: string;
|
|
246
247
|
};
|
|
247
248
|
static ATTRIBUTES: {
|
package/app/utils/enums.d.ts
CHANGED
|
@@ -42,10 +42,14 @@ export declare const CommentEventTypes: {
|
|
|
42
42
|
readonly COMMENT_SIDEBAR_DATA_INIT: "commentSidebarDataInit";
|
|
43
43
|
readonly COMMENT_SIDEBAR_DATA_UPDATE: "commentSidebarDataUpdate";
|
|
44
44
|
};
|
|
45
|
+
export declare const RecorderEventTypes: {
|
|
46
|
+
readonly TRANSCRIPTION_DONE: "transcriptionDone";
|
|
47
|
+
};
|
|
45
48
|
export declare const CoreEventTypes: {
|
|
46
49
|
readonly VELT_BUTTON_CLICK: "veltButtonClick";
|
|
47
50
|
};
|
|
48
51
|
export type CommentEventType = typeof CommentEventTypes[keyof typeof CommentEventTypes];
|
|
52
|
+
export type RecorderEventType = typeof RecorderEventTypes[keyof typeof RecorderEventTypes];
|
|
49
53
|
export type CoreEventType = typeof CoreEventTypes[keyof typeof CoreEventTypes];
|
|
50
54
|
export declare enum TagStatus {
|
|
51
55
|
ADDED = "added",
|
package/models.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from './app/utils/enums';
|
|
2
2
|
export * from './app/models/data/attachment.model';
|
|
3
3
|
export * from './app/models/data/area-annotation.data.model';
|
|
4
|
+
export * from './app/models/data/arrow-annotation.data.model';
|
|
4
5
|
export * from './app/models/data/base-metadata.data.model';
|
|
5
6
|
export * from './app/models/data/button.data.model';
|
|
6
7
|
export * from './app/models/data/chatgpt.data.model';
|
|
@@ -16,6 +17,7 @@ export * from './app/models/data/cursor-user.data.model';
|
|
|
16
17
|
export * from './app/models/data/custom-css.data.model';
|
|
17
18
|
export * from './app/models/data/custom-chip-dropdown.data.model';
|
|
18
19
|
export * from './app/models/data/device-info.model';
|
|
20
|
+
export * from './app/models/data/document.data.model';
|
|
19
21
|
export * from './app/models/data/document-iam.data.model';
|
|
20
22
|
export * from './app/models/data/document-metadata.model';
|
|
21
23
|
export * from './app/models/data/document-paths.data.model';
|
|
@@ -27,12 +29,14 @@ export * from './app/models/data/localstorage.data.model';
|
|
|
27
29
|
export * from './app/models/data/location-metadata.model';
|
|
28
30
|
export * from './app/models/data/location.model';
|
|
29
31
|
export * from './app/models/data/media-preview-config.data.model';
|
|
32
|
+
export * from './app/models/data/multi-thread.data.model';
|
|
30
33
|
export * from './app/models/data/notification.model';
|
|
31
34
|
export * from './app/models/data/page-info.model';
|
|
32
35
|
export * from './app/models/data/permission.data.model';
|
|
33
36
|
export * from './app/models/data/presence-user.data.model';
|
|
34
37
|
export * from './app/models/data/recorder.model';
|
|
35
38
|
export * from './app/models/data/recorder-annotation.data.model';
|
|
39
|
+
export * from './app/models/data/recorder-events.data.model';
|
|
36
40
|
export * from './app/models/data/rewriter-annotation.data.model';
|
|
37
41
|
export * from './app/models/data/screen-size.data.model';
|
|
38
42
|
export * from './app/models/data/selection.model';
|
|
@@ -61,3 +65,4 @@ export * from './app/models/data/organization-groups.data.model';
|
|
|
61
65
|
export * from './app/models/data/organization-metadata.model';
|
|
62
66
|
export * from './app/models/data/user-organization.data.model';
|
|
63
67
|
export * from './app/models/data/event-metadata.data.model';
|
|
68
|
+
export * from './app/models/data/user-resolver.data.model';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/sdk",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.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": [
|