@veltdev/types-dev 4.0.0-beta.98 → 4.0.0
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 +0 -14
- package/app/models/data/base-metadata.data.model.d.ts +0 -2
- package/app/models/data/comment-actions.data.model.d.ts +5 -24
- package/app/models/data/comment-events.data.model.d.ts +10 -7
- package/app/models/data/comment-sidebar-config.model.d.ts +0 -1
- package/app/models/data/config.data.model.d.ts +0 -1
- package/app/models/data/document-metadata.model.d.ts +0 -8
- package/app/models/data/event-metadata.data.model.d.ts +3 -3
- package/app/models/data/notification.model.d.ts +0 -16
- package/app/models/data/recorder-annotation.data.model.d.ts +0 -6
- package/app/models/element/comment-element.model.d.ts +28 -48
- package/app/models/element/recorder-element.model.d.ts +1 -22
- package/app/utils/constants.d.ts +1 -3
- package/app/utils/enums.d.ts +0 -4
- package/models.d.ts +0 -5
- package/package.json +1 -1
- package/app/models/data/arrow-annotation.data.model.d.ts +0 -51
- package/app/models/data/document.data.model.d.ts +0 -11
- package/app/models/data/multi-thread.data.model.d.ts +0 -61
- package/app/models/data/recorder-events.data.model.d.ts +0 -16
- package/app/models/data/user-resolver.data.model.d.ts +0 -5
|
@@ -26,8 +26,6 @@ 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";
|
|
31
29
|
export declare class Snippyly {
|
|
32
30
|
constructor();
|
|
33
31
|
initConfig: (apiKey: string, config?: Config) => void;
|
|
@@ -50,22 +48,10 @@ export declare class Snippyly {
|
|
|
50
48
|
* @param id unique document ID
|
|
51
49
|
*/
|
|
52
50
|
setDocumentId: (id: string) => void;
|
|
53
|
-
/**
|
|
54
|
-
* To set multiple documents
|
|
55
|
-
*/
|
|
56
|
-
setDocuments: (documents: Document[], options?: SetDocumentsRequestOptions) => void;
|
|
57
51
|
/**
|
|
58
52
|
* To unset the document id
|
|
59
53
|
*/
|
|
60
54
|
unsetDocumentId: () => void;
|
|
61
|
-
/**
|
|
62
|
-
* To unset the documents
|
|
63
|
-
*/
|
|
64
|
-
unsetDocuments: () => void;
|
|
65
|
-
/**
|
|
66
|
-
* To set the user data provider.
|
|
67
|
-
*/
|
|
68
|
-
setUserDataProvider: (userDataProvider: UserDataProvider) => void;
|
|
69
55
|
/**
|
|
70
56
|
* Get Document ID
|
|
71
57
|
*/
|
|
@@ -9,10 +9,8 @@ import { User } from "./user.data.model";
|
|
|
9
9
|
export interface RequestOptions {
|
|
10
10
|
organizationId?: string;
|
|
11
11
|
documentId?: string;
|
|
12
|
-
folderId?: string;
|
|
13
12
|
filters?: any;
|
|
14
13
|
documentIds?: string[];
|
|
15
|
-
allDocuments?: boolean;
|
|
16
14
|
}
|
|
17
15
|
export interface UpdatePriorityRequest {
|
|
18
16
|
annotationId: string;
|
|
@@ -61,10 +59,11 @@ export interface DeleteCommentAnnotationRequest {
|
|
|
61
59
|
annotationId: string;
|
|
62
60
|
options?: RequestOptions;
|
|
63
61
|
}
|
|
64
|
-
export interface
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
62
|
+
export interface GetCommentAnnotationRequest {
|
|
63
|
+
options?: RequestOptions;
|
|
64
|
+
}
|
|
65
|
+
export interface GetCommentAnnotationsCountRequest {
|
|
66
|
+
options?: RequestOptions;
|
|
68
67
|
}
|
|
69
68
|
export interface SubscribeCommentAnnotationRequest {
|
|
70
69
|
annotationId: string;
|
|
@@ -130,12 +129,6 @@ export interface GetRecordingRequest {
|
|
|
130
129
|
commentId: number;
|
|
131
130
|
options?: RequestOptions;
|
|
132
131
|
}
|
|
133
|
-
export interface GetDocumentsRequest {
|
|
134
|
-
options?: RequestOptions;
|
|
135
|
-
}
|
|
136
|
-
export interface GetFoldersRequest {
|
|
137
|
-
options?: RequestOptions;
|
|
138
|
-
}
|
|
139
132
|
export interface DeleteRecordingRequest {
|
|
140
133
|
annotationId: string;
|
|
141
134
|
commentId: number;
|
|
@@ -169,15 +162,3 @@ export interface ToggleReactionRequest {
|
|
|
169
162
|
};
|
|
170
163
|
options?: RequestOptions;
|
|
171
164
|
}
|
|
172
|
-
export interface GetCommentAnnotationsRequest {
|
|
173
|
-
createdAfter?: number;
|
|
174
|
-
createdBefore?: number;
|
|
175
|
-
updatedAfter?: number;
|
|
176
|
-
updatedBefore?: number;
|
|
177
|
-
statusIds?: string[];
|
|
178
|
-
order?: 'asc' | 'desc';
|
|
179
|
-
pageToken?: string;
|
|
180
|
-
groupByDocumentId?: boolean;
|
|
181
|
-
pageSize?: number;
|
|
182
|
-
options?: RequestOptions;
|
|
183
|
-
}
|
|
@@ -126,15 +126,18 @@ export interface DeleteCommentAnnotationEvent {
|
|
|
126
126
|
commentAnnotation: CommentAnnotation;
|
|
127
127
|
metadata: VeltEventMetadata;
|
|
128
128
|
}
|
|
129
|
-
export interface
|
|
130
|
-
|
|
129
|
+
export interface GetCommentAnnotationEvent {
|
|
130
|
+
commentAnnotations: CommentAnnotation[];
|
|
131
|
+
metadata: VeltEventMetadata;
|
|
131
132
|
}
|
|
132
|
-
export interface
|
|
133
|
-
|
|
133
|
+
export interface GetCommentAnnotationResponse {
|
|
134
|
+
[documentId: string]: CommentAnnotation[];
|
|
134
135
|
}
|
|
135
|
-
export interface
|
|
136
|
-
|
|
137
|
-
|
|
136
|
+
export interface GetCommentAnnotationsCountResponse {
|
|
137
|
+
[documentId: string]: {
|
|
138
|
+
total: number;
|
|
139
|
+
unread: number;
|
|
140
|
+
};
|
|
138
141
|
}
|
|
139
142
|
export interface SubscribeCommentAnnotationEvent {
|
|
140
143
|
annotationId: string;
|
|
@@ -12,7 +12,6 @@ export declare class CommentSidebarFilterConfig {
|
|
|
12
12
|
location?: FilterTypeConfig;
|
|
13
13
|
people?: FilterTypeConfig;
|
|
14
14
|
priority?: FilterTypeConfig;
|
|
15
|
-
status?: FilterTypeConfig;
|
|
16
15
|
category?: FilterTypeConfig;
|
|
17
16
|
commentType?: FilterTypeConfig;
|
|
18
17
|
version?: FilterTypeConfig;
|
|
@@ -6,14 +6,6 @@ export declare class DocumentMetadata {
|
|
|
6
6
|
* Unique document id generated from client document id
|
|
7
7
|
*/
|
|
8
8
|
documentId?: string;
|
|
9
|
-
/**
|
|
10
|
-
* Folders
|
|
11
|
-
*/
|
|
12
|
-
folderId?: string;
|
|
13
|
-
/**
|
|
14
|
-
* Velt folder id
|
|
15
|
-
*/
|
|
16
|
-
veltFolderId?: string;
|
|
17
9
|
/**
|
|
18
10
|
* API key
|
|
19
11
|
*/
|
|
@@ -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
|
+
organizationMetadata?: OrganizationMetadata | null;
|
|
6
|
+
documentMetadata?: DocumentMetadata | null;
|
|
7
|
+
location?: Location | null;
|
|
8
8
|
}
|
|
@@ -88,11 +88,6 @@ 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
|
-
};
|
|
96
91
|
customData?: any;
|
|
97
92
|
notifyUsers?: {
|
|
98
93
|
[email: string]: boolean;
|
|
@@ -132,17 +127,6 @@ export declare class Notification {
|
|
|
132
127
|
* Notification body message
|
|
133
128
|
*/
|
|
134
129
|
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
|
-
};
|
|
146
130
|
/**
|
|
147
131
|
* Display message template
|
|
148
132
|
*/
|
|
@@ -164,10 +164,4 @@ 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
|
-
}
|
|
173
167
|
export {};
|
|
@@ -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
|
|
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";
|
|
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,
|
|
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";
|
|
11
11
|
import { UnreadCommentsCount } from "../data/comment-utils.data.model";
|
|
12
12
|
export declare class CommentElement {
|
|
13
13
|
/**
|
|
@@ -921,142 +921,132 @@ export declare class CommentElement {
|
|
|
921
921
|
/**
|
|
922
922
|
* To add comment annotation
|
|
923
923
|
*/
|
|
924
|
-
public addCommentAnnotation: (
|
|
924
|
+
public addCommentAnnotation: (config: AddCommentAnnotationRequest) => Promise<AddCommentAnnotationEvent | null>;
|
|
925
925
|
|
|
926
926
|
/**
|
|
927
927
|
* To approve comment annotation
|
|
928
928
|
*/
|
|
929
|
-
public approveCommentAnnotation: (
|
|
929
|
+
public approveCommentAnnotation: (config: ApproveCommentAnnotationRequest) => Promise<ApproveCommentAnnotationEvent | null>;
|
|
930
930
|
|
|
931
931
|
/**
|
|
932
932
|
* To accept comment annotation
|
|
933
933
|
*/
|
|
934
|
-
public acceptCommentAnnotation: (
|
|
934
|
+
public acceptCommentAnnotation: (config: AcceptCommentAnnotationRequest) => Promise<AcceptCommentAnnotationEvent | null>;
|
|
935
935
|
|
|
936
936
|
/**
|
|
937
937
|
* To reject comment annotation
|
|
938
938
|
*/
|
|
939
|
-
public rejectCommentAnnotation: (
|
|
939
|
+
public rejectCommentAnnotation: (config: RejectCommentAnnotationRequest) => Promise<RejectCommentAnnotationEvent | null>;
|
|
940
940
|
|
|
941
941
|
/**
|
|
942
942
|
* To subscribe comment annotation
|
|
943
943
|
*/
|
|
944
|
-
public subscribeCommentAnnotation: (
|
|
944
|
+
public subscribeCommentAnnotation: (config: SubscribeCommentAnnotationRequest) => Promise<SubscribeCommentAnnotationEvent | null>;
|
|
945
945
|
|
|
946
946
|
/**
|
|
947
947
|
* To unsubscribe comment annotation
|
|
948
948
|
*/
|
|
949
|
-
public unsubscribeCommentAnnotation: (
|
|
949
|
+
public unsubscribeCommentAnnotation: (config: UnsubscribeCommentAnnotationRequest) => Promise<UnsubscribeCommentAnnotationEvent | null>;
|
|
950
950
|
|
|
951
951
|
/**
|
|
952
952
|
* To delete comment annotation
|
|
953
953
|
*/
|
|
954
|
-
public deleteCommentAnnotation: (
|
|
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>;
|
|
954
|
+
public deleteCommentAnnotation: (config: DeleteCommentAnnotationRequest) => Promise<DeleteCommentAnnotationEvent | null>;
|
|
965
955
|
|
|
966
956
|
/**
|
|
967
957
|
* To assign user to comment annotation
|
|
968
958
|
*/
|
|
969
|
-
public assignUser: (
|
|
959
|
+
public assignUser: (config: AssignUserRequest) => Promise<AssignUserEvent | null>;
|
|
970
960
|
|
|
971
961
|
/**
|
|
972
962
|
* To update priority
|
|
973
963
|
*/
|
|
974
|
-
public updatePriority: (
|
|
964
|
+
public updatePriority: (config: UpdatePriorityRequest) => Promise<UpdatePriorityEvent | null>;
|
|
975
965
|
|
|
976
966
|
/**
|
|
977
967
|
* To update status
|
|
978
968
|
*/
|
|
979
|
-
public updateStatus: (
|
|
969
|
+
public updateStatus: (config: UpdateStatusRequest) => Promise<UpdateStatusEvent | null>;
|
|
980
970
|
|
|
981
971
|
/**
|
|
982
972
|
* To update access
|
|
983
973
|
*/
|
|
984
|
-
public updateAccess: (
|
|
974
|
+
public updateAccess: (config: UpdateAccessRequest) => Promise<UpdateAccessEvent | null>;
|
|
985
975
|
|
|
986
976
|
/**
|
|
987
977
|
* To resolve comment annotation
|
|
988
978
|
*/
|
|
989
|
-
public resolveCommentAnnotation: (
|
|
979
|
+
public resolveCommentAnnotation: (config: ResolveCommentAnnotationRequest) => Promise<any>;
|
|
990
980
|
|
|
991
981
|
/**
|
|
992
982
|
* To get link
|
|
993
983
|
*/
|
|
994
|
-
public getLink: (
|
|
984
|
+
public getLink: (config: GetLinkRequest) => Promise<GetLinkEvent | null>;
|
|
995
985
|
|
|
996
986
|
/**
|
|
997
987
|
* To copy link
|
|
998
988
|
*/
|
|
999
|
-
public copyLink: (
|
|
989
|
+
public copyLink: (config: CopyLinkRequest) => Promise<CopyLinkEvent | null>;
|
|
1000
990
|
|
|
1001
991
|
/**
|
|
1002
992
|
* To add comment
|
|
1003
993
|
*/
|
|
1004
|
-
public addComment: (
|
|
994
|
+
public addComment: (config: AddCommentRequest) => Promise<AddCommentEvent | null>;
|
|
1005
995
|
|
|
1006
996
|
/**
|
|
1007
997
|
* To update comment
|
|
1008
998
|
*/
|
|
1009
|
-
public updateComment: (
|
|
999
|
+
public updateComment: (config: UpdateCommentRequest) => Promise<UpdateCommentEvent | null>;
|
|
1010
1000
|
|
|
1011
1001
|
/**
|
|
1012
1002
|
* To delete comment
|
|
1013
1003
|
*/
|
|
1014
|
-
public deleteComment: (
|
|
1004
|
+
public deleteComment: (config: DeleteCommentRequest) => Promise<DeleteCommentEvent | null>;
|
|
1015
1005
|
|
|
1016
1006
|
/**
|
|
1017
1007
|
* To get comment
|
|
1018
1008
|
*/
|
|
1019
|
-
public getComment: (
|
|
1009
|
+
public getComment: (config: GetCommentRequest) => Promise<Comment[]>;
|
|
1020
1010
|
|
|
1021
1011
|
/**
|
|
1022
1012
|
* To add attachment
|
|
1023
1013
|
*/
|
|
1024
|
-
public addAttachment: (
|
|
1014
|
+
public addAttachment: (config: AddAttachmentRequest) => Promise<AddAttachmentResponse[]>;
|
|
1025
1015
|
|
|
1026
1016
|
/**
|
|
1027
1017
|
* To get attachment
|
|
1028
1018
|
*/
|
|
1029
|
-
public getAttachment: (
|
|
1019
|
+
public getAttachment: (config: GetAttachmentRequest) => Promise<Attachment[]>;
|
|
1030
1020
|
|
|
1031
1021
|
/**
|
|
1032
1022
|
* To delete attachment
|
|
1033
1023
|
*/
|
|
1034
|
-
public deleteAttachment: (
|
|
1024
|
+
public deleteAttachment: (config: DeleteAttachmentRequest) => Promise<DeleteAttachmentEvent | null>;
|
|
1035
1025
|
|
|
1036
1026
|
/**
|
|
1037
1027
|
* To get recording
|
|
1038
1028
|
*/
|
|
1039
|
-
public getRecording: (
|
|
1029
|
+
public getRecording: (config: GetRecordingRequest) => Promise<RecordedData[]>;
|
|
1040
1030
|
|
|
1041
1031
|
/**
|
|
1042
1032
|
* To delete recording
|
|
1043
1033
|
*/
|
|
1044
|
-
public deleteRecording: (
|
|
1034
|
+
public deleteRecording: (config: DeleteRecordingRequest) => Promise<DeleteRecordingEvent | null>;
|
|
1045
1035
|
|
|
1046
1036
|
/**
|
|
1047
1037
|
* To add reaction
|
|
1048
1038
|
*/
|
|
1049
|
-
public addReaction: (
|
|
1039
|
+
public addReaction: (config: AddReactionRequest) => Promise<AddReactionEvent | null>;
|
|
1050
1040
|
|
|
1051
1041
|
/**
|
|
1052
1042
|
* To delete reaction
|
|
1053
1043
|
*/
|
|
1054
|
-
public deleteReaction: (
|
|
1044
|
+
public deleteReaction: (config: DeleteReactionRequest) => Promise<DeleteReactionEvent | null>;
|
|
1055
1045
|
|
|
1056
1046
|
/**
|
|
1057
1047
|
* To toggle reaction
|
|
1058
1048
|
*/
|
|
1059
|
-
public toggleReaction: (
|
|
1049
|
+
public toggleReaction: (config: ToggleReactionRequest) => Promise<ToggleReactionEvent | null>;
|
|
1060
1050
|
|
|
1061
1051
|
/**
|
|
1062
1052
|
* Subscribe to comment actions
|
|
@@ -2008,16 +1998,6 @@ export declare class CommentElement {
|
|
|
2008
1998
|
*/
|
|
2009
1999
|
private _deleteCommentAnnotation;
|
|
2010
2000
|
|
|
2011
|
-
/**
|
|
2012
|
-
* To get comment annotations
|
|
2013
|
-
*/
|
|
2014
|
-
private _getCommentAnnotations;
|
|
2015
|
-
|
|
2016
|
-
/**
|
|
2017
|
-
* To get comment annotations count
|
|
2018
|
-
*/
|
|
2019
|
-
private _getCommentAnnotationsCount;
|
|
2020
|
-
|
|
2021
2001
|
/**
|
|
2022
2002
|
* To assign user to comment annotation
|
|
2023
2003
|
*/
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
import { Observable } from "rxjs";
|
|
3
|
-
import { RecorderData
|
|
4
|
-
import { RecorderEventTypesMap } from "../data/recorder-events.data.model";
|
|
3
|
+
import { RecorderData } from "../data/recorder-annotation.data.model";
|
|
5
4
|
|
|
6
5
|
export declare class RecorderElement {
|
|
7
6
|
|
|
@@ -34,16 +33,6 @@ export declare class RecorderElement {
|
|
|
34
33
|
*/
|
|
35
34
|
disableRecordingTranscription: () => void;
|
|
36
35
|
|
|
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
|
-
|
|
47
36
|
constructor();
|
|
48
37
|
|
|
49
38
|
private _initRecording;
|
|
@@ -74,14 +63,4 @@ export declare class RecorderElement {
|
|
|
74
63
|
* To disable recording transcription
|
|
75
64
|
*/
|
|
76
65
|
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;
|
|
87
66
|
}
|
package/app/utils/constants.d.ts
CHANGED
|
@@ -8,9 +8,7 @@ export declare class Constants {
|
|
|
8
8
|
static LOCALSTORAGE_DATA_ID: string;
|
|
9
9
|
static NO_ORGANIZATION_ID: string;
|
|
10
10
|
static DEFAULT_QUERY_HASH: string;
|
|
11
|
-
static LISTENER_BATCH_SIZE: number;
|
|
12
11
|
static FIREBASE_PARTIAL_PATH_ORGANIZATIONS: string;
|
|
13
|
-
static FIREBASE_PARTIAL_PATH_FOLDERS: string;
|
|
14
12
|
static FIREBASE_PARTIAL_PATH_DOCS: string;
|
|
15
13
|
static FIREBASE_PARTIAL_PATH_PRESENCE: string;
|
|
16
14
|
static FIREBASE_PARTIAL_PATH_ORGANIZATION_USERS: string;
|
|
@@ -244,8 +242,8 @@ export declare class Constants {
|
|
|
244
242
|
VELT_COMMENT_DIALOG_BODY_THREAD_CARD: string;
|
|
245
243
|
VELT_COMMENT_DIALOG_PRIVATE_BANNER: string;
|
|
246
244
|
VELT_COMMENT_COMPOSER: string;
|
|
247
|
-
VELT_SKELETON_LOADER: string;
|
|
248
245
|
VELT_SHADOW_DOM_INTERNAL: string;
|
|
246
|
+
VELT_OVERLAY: string;
|
|
249
247
|
};
|
|
250
248
|
static ATTRIBUTES: {
|
|
251
249
|
VELT_TARGET_COMMENT_ELEMENT_ID: string;
|
package/app/utils/enums.d.ts
CHANGED
|
@@ -42,14 +42,10 @@ 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
|
-
};
|
|
48
45
|
export declare const CoreEventTypes: {
|
|
49
46
|
readonly VELT_BUTTON_CLICK: "veltButtonClick";
|
|
50
47
|
};
|
|
51
48
|
export type CommentEventType = typeof CommentEventTypes[keyof typeof CommentEventTypes];
|
|
52
|
-
export type RecorderEventType = typeof RecorderEventTypes[keyof typeof RecorderEventTypes];
|
|
53
49
|
export type CoreEventType = typeof CoreEventTypes[keyof typeof CoreEventTypes];
|
|
54
50
|
export declare enum TagStatus {
|
|
55
51
|
ADDED = "added",
|
package/models.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
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';
|
|
5
4
|
export * from './app/models/data/base-metadata.data.model';
|
|
6
5
|
export * from './app/models/data/button.data.model';
|
|
7
6
|
export * from './app/models/data/chatgpt.data.model';
|
|
@@ -17,7 +16,6 @@ export * from './app/models/data/cursor-user.data.model';
|
|
|
17
16
|
export * from './app/models/data/custom-css.data.model';
|
|
18
17
|
export * from './app/models/data/custom-chip-dropdown.data.model';
|
|
19
18
|
export * from './app/models/data/device-info.model';
|
|
20
|
-
export * from './app/models/data/document.data.model';
|
|
21
19
|
export * from './app/models/data/document-iam.data.model';
|
|
22
20
|
export * from './app/models/data/document-metadata.model';
|
|
23
21
|
export * from './app/models/data/document-paths.data.model';
|
|
@@ -29,14 +27,12 @@ export * from './app/models/data/localstorage.data.model';
|
|
|
29
27
|
export * from './app/models/data/location-metadata.model';
|
|
30
28
|
export * from './app/models/data/location.model';
|
|
31
29
|
export * from './app/models/data/media-preview-config.data.model';
|
|
32
|
-
export * from './app/models/data/multi-thread.data.model';
|
|
33
30
|
export * from './app/models/data/notification.model';
|
|
34
31
|
export * from './app/models/data/page-info.model';
|
|
35
32
|
export * from './app/models/data/permission.data.model';
|
|
36
33
|
export * from './app/models/data/presence-user.data.model';
|
|
37
34
|
export * from './app/models/data/recorder.model';
|
|
38
35
|
export * from './app/models/data/recorder-annotation.data.model';
|
|
39
|
-
export * from './app/models/data/recorder-events.data.model';
|
|
40
36
|
export * from './app/models/data/rewriter-annotation.data.model';
|
|
41
37
|
export * from './app/models/data/screen-size.data.model';
|
|
42
38
|
export * from './app/models/data/selection.model';
|
|
@@ -65,4 +61,3 @@ export * from './app/models/data/organization-groups.data.model';
|
|
|
65
61
|
export * from './app/models/data/organization-metadata.model';
|
|
66
62
|
export * from './app/models/data/user-organization.data.model';
|
|
67
63
|
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/types-dev",
|
|
3
|
-
"version": "4.0.0
|
|
3
|
+
"version": "4.0.0",
|
|
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": [
|
|
@@ -1,51 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { DocumentMetadata } from "./document-metadata.model";
|
|
2
|
-
export interface Document {
|
|
3
|
-
id: string;
|
|
4
|
-
metadata?: DocumentMetadata;
|
|
5
|
-
}
|
|
6
|
-
export interface SetDocumentsRequestOptions {
|
|
7
|
-
organizationId?: string;
|
|
8
|
-
folderId?: string;
|
|
9
|
-
allDocuments?: boolean;
|
|
10
|
-
locationId?: string;
|
|
11
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
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
|
-
};
|