@veltdev/sdk 3.0.68 → 3.0.70
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 +5 -0
- package/app/models/data/comment-actions.data.model.d.ts +62 -48
- package/app/models/data/comment-events.data.model.d.ts +128 -66
- package/app/models/data/event-metadata.data.model.d.ts +8 -0
- package/app/models/element/comment-element.model.d.ts +60 -26
- package/app/utils/constants.d.ts +1 -1
- package/app/utils/enums.d.ts +25 -23
- package/models.d.ts +1 -0
- package/package.json +1 -1
- package/velt.js +2 -2
|
@@ -24,6 +24,7 @@ import { FeatureType } from "../utils/enums";
|
|
|
24
24
|
import { UserContact } from "../models/data/user-contact.data.model";
|
|
25
25
|
import { DocumentMetadata } from "../models/data/document-metadata.model";
|
|
26
26
|
import { ReactionElement } from "../models/element/reaction-element.model";
|
|
27
|
+
import { VeltEventMetadata } from "../models/data/event-metadata.data.model";
|
|
27
28
|
export declare class Snippyly {
|
|
28
29
|
constructor();
|
|
29
30
|
initConfig: (apiKey: string, config?: Config) => void;
|
|
@@ -162,6 +163,10 @@ export declare class Snippyly {
|
|
|
162
163
|
* Get the Area Object.
|
|
163
164
|
*/
|
|
164
165
|
getReactionElement: () => ReactionElement;
|
|
166
|
+
/**
|
|
167
|
+
* Get the metadata of the current resource.
|
|
168
|
+
*/
|
|
169
|
+
getMetadata: () => Promise<VeltEventMetadata | null>;
|
|
165
170
|
/**
|
|
166
171
|
* To signout a user
|
|
167
172
|
*/
|
|
@@ -4,139 +4,153 @@ import { CommentAnnotation } from "./comment-annotation.data.model";
|
|
|
4
4
|
import { Comment } from "./comment.data.model";
|
|
5
5
|
import { CustomPriority, CustomStatus } from "./custom-filter.data.model";
|
|
6
6
|
import { ReactionItem } from "./reaction-annotation.data.model";
|
|
7
|
+
import { UserContact } from "./user-contact.data.model";
|
|
7
8
|
import { User } from "./user.data.model";
|
|
8
|
-
export
|
|
9
|
+
export interface RequestOptions {
|
|
9
10
|
organizationId?: string;
|
|
10
11
|
documentId?: string;
|
|
11
12
|
}
|
|
12
|
-
export
|
|
13
|
+
export interface UpdatePriorityRequest {
|
|
13
14
|
annotationId: string;
|
|
14
15
|
priority?: CustomPriority;
|
|
15
|
-
options?:
|
|
16
|
+
options?: RequestOptions;
|
|
16
17
|
}
|
|
17
|
-
export
|
|
18
|
+
export interface UpdateStatusRequest {
|
|
18
19
|
annotationId: string;
|
|
19
20
|
status: CustomStatus;
|
|
20
|
-
options?:
|
|
21
|
+
options?: RequestOptions;
|
|
21
22
|
}
|
|
22
|
-
export
|
|
23
|
+
export interface UpdateAccessRequest {
|
|
23
24
|
annotationId: string;
|
|
24
25
|
accessMode: CommentAccessMode;
|
|
25
|
-
options?:
|
|
26
|
+
options?: RequestOptions;
|
|
26
27
|
}
|
|
27
|
-
export
|
|
28
|
+
export interface ResolveCommentAnnotationRequest {
|
|
28
29
|
annotationId: string;
|
|
29
|
-
options?:
|
|
30
|
+
options?: RequestOptions;
|
|
30
31
|
}
|
|
31
|
-
export
|
|
32
|
+
export interface GetLinkRequest {
|
|
32
33
|
annotationId: string;
|
|
33
|
-
options?:
|
|
34
|
+
options?: RequestOptions;
|
|
34
35
|
}
|
|
35
|
-
export
|
|
36
|
+
export interface CopyLinkRequest {
|
|
36
37
|
annotationId: string;
|
|
37
|
-
options?:
|
|
38
|
+
options?: RequestOptions;
|
|
38
39
|
}
|
|
39
|
-
export
|
|
40
|
+
export interface AddCommentAnnotationRequest {
|
|
40
41
|
annotation: CommentAnnotation;
|
|
41
|
-
options?:
|
|
42
|
+
options?: RequestOptions;
|
|
42
43
|
}
|
|
43
|
-
export
|
|
44
|
+
export interface ApproveCommentAnnotationRequest {
|
|
44
45
|
annotationId: string;
|
|
45
|
-
options?:
|
|
46
|
+
options?: RequestOptions;
|
|
46
47
|
}
|
|
47
|
-
export
|
|
48
|
+
export interface AcceptCommentAnnotationRequest {
|
|
48
49
|
annotationId: string;
|
|
49
|
-
options?:
|
|
50
|
+
options?: RequestOptions;
|
|
50
51
|
}
|
|
51
|
-
export
|
|
52
|
+
export interface RejectCommentAnnotationRequest {
|
|
52
53
|
annotationId: string;
|
|
53
|
-
options?:
|
|
54
|
+
options?: RequestOptions;
|
|
54
55
|
}
|
|
55
|
-
export
|
|
56
|
+
export interface DeleteCommentAnnotationRequest {
|
|
56
57
|
annotationId: string;
|
|
57
|
-
options?:
|
|
58
|
+
options?: RequestOptions;
|
|
58
59
|
}
|
|
59
|
-
export
|
|
60
|
+
export interface SubscribeCommentAnnotationRequest {
|
|
61
|
+
annotationId: string;
|
|
62
|
+
options?: RequestOptions;
|
|
63
|
+
}
|
|
64
|
+
export interface UnsubscribeCommentAnnotationRequest {
|
|
65
|
+
annotationId: string;
|
|
66
|
+
options?: RequestOptions;
|
|
67
|
+
}
|
|
68
|
+
export interface AssignUserRequest {
|
|
69
|
+
annotationId: string;
|
|
70
|
+
assignedTo: UserContact;
|
|
71
|
+
options?: RequestOptions;
|
|
72
|
+
}
|
|
73
|
+
export interface AddCommentRequest {
|
|
60
74
|
annotationId: string;
|
|
61
75
|
comment: Comment;
|
|
62
76
|
assignedTo?: User;
|
|
63
|
-
options?:
|
|
77
|
+
options?: RequestOptions;
|
|
64
78
|
}
|
|
65
|
-
export
|
|
79
|
+
export interface UpdateCommentRequest {
|
|
66
80
|
annotationId: string;
|
|
67
81
|
comment: Comment;
|
|
68
82
|
skipDeleteThreadConfirmation?: boolean;
|
|
69
83
|
merge?: boolean;
|
|
70
|
-
options?:
|
|
84
|
+
options?: RequestOptions;
|
|
71
85
|
}
|
|
72
|
-
export
|
|
86
|
+
export interface DeleteCommentRequest {
|
|
73
87
|
annotationId: string;
|
|
74
88
|
commentId: number;
|
|
75
89
|
skipDeleteThreadConfirmation?: boolean;
|
|
76
|
-
options?:
|
|
90
|
+
options?: RequestOptions;
|
|
77
91
|
}
|
|
78
|
-
export
|
|
92
|
+
export interface GetCommentRequest {
|
|
79
93
|
annotationId: string;
|
|
80
|
-
options?:
|
|
94
|
+
options?: RequestOptions;
|
|
81
95
|
}
|
|
82
|
-
export
|
|
96
|
+
export interface AddAttachmentRequest {
|
|
83
97
|
annotationId: string;
|
|
84
98
|
files: File[];
|
|
85
|
-
options?:
|
|
99
|
+
options?: RequestOptions;
|
|
86
100
|
}
|
|
87
|
-
export
|
|
101
|
+
export interface AddAttachmentResponse {
|
|
88
102
|
valid: boolean;
|
|
89
103
|
file?: File;
|
|
90
104
|
maxAllowedSize: number;
|
|
91
105
|
error?: string;
|
|
92
106
|
attachment?: Attachment;
|
|
93
107
|
}
|
|
94
|
-
export
|
|
108
|
+
export interface DeleteAttachmentRequest {
|
|
95
109
|
annotationId: string;
|
|
96
110
|
commentId: number;
|
|
97
111
|
attachmentId: number;
|
|
98
|
-
options?:
|
|
112
|
+
options?: RequestOptions;
|
|
99
113
|
}
|
|
100
|
-
export
|
|
114
|
+
export interface GetAttachmentRequest {
|
|
101
115
|
annotationId: string;
|
|
102
116
|
commentId: number;
|
|
103
|
-
options?:
|
|
117
|
+
options?: RequestOptions;
|
|
104
118
|
}
|
|
105
|
-
export
|
|
119
|
+
export interface GetRecordingRequest {
|
|
106
120
|
annotationId: string;
|
|
107
121
|
commentId: number;
|
|
108
|
-
options?:
|
|
122
|
+
options?: RequestOptions;
|
|
109
123
|
}
|
|
110
|
-
export
|
|
124
|
+
export interface DeleteRecordingRequest {
|
|
111
125
|
annotationId: string;
|
|
112
126
|
commentId: number;
|
|
113
127
|
recorderId: string;
|
|
114
|
-
options?:
|
|
128
|
+
options?: RequestOptions;
|
|
115
129
|
}
|
|
116
|
-
export
|
|
130
|
+
export interface AddReactionRequest {
|
|
117
131
|
annotationId: string;
|
|
118
132
|
commentId: number;
|
|
119
133
|
reaction: {
|
|
120
134
|
reactionId: string;
|
|
121
135
|
customReaction?: ReactionItem;
|
|
122
136
|
};
|
|
123
|
-
options?:
|
|
137
|
+
options?: RequestOptions;
|
|
124
138
|
}
|
|
125
|
-
export
|
|
139
|
+
export interface DeleteReactionRequest {
|
|
126
140
|
annotationId: string;
|
|
127
141
|
commentId: number;
|
|
128
142
|
reaction: {
|
|
129
143
|
reactionId: string;
|
|
130
144
|
customReaction?: ReactionItem;
|
|
131
145
|
};
|
|
132
|
-
options?:
|
|
146
|
+
options?: RequestOptions;
|
|
133
147
|
}
|
|
134
|
-
export
|
|
148
|
+
export interface ToggleReactionRequest {
|
|
135
149
|
annotationId: string;
|
|
136
150
|
commentId: number;
|
|
137
151
|
reaction: {
|
|
138
152
|
reactionId: string;
|
|
139
153
|
customReaction?: ReactionItem;
|
|
140
154
|
};
|
|
141
|
-
options?:
|
|
155
|
+
options?: RequestOptions;
|
|
142
156
|
}
|
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
import { CommentAccessMode, CommentStatus } from "../../utils/enums";
|
|
1
|
+
import { CommentAccessMode, CommentEventTypes, CommentStatus } from "../../utils/enums";
|
|
2
2
|
import { Attachment } from "./attachment.model";
|
|
3
3
|
import { AddAttachmentResponse } from "./comment-actions.data.model";
|
|
4
4
|
import { CommentAnnotation, UpdateContextConfig } from "./comment-annotation.data.model";
|
|
5
5
|
import { Comment } from "./comment.data.model";
|
|
6
6
|
import { CustomPriority, CustomStatus } from "./custom-filter.data.model";
|
|
7
|
-
import {
|
|
7
|
+
import { VeltEventMetadata } from "./event-metadata.data.model";
|
|
8
8
|
import { Location } from "./location.model";
|
|
9
|
-
import { OrganizationMetadata } from "./organization-metadata.model";
|
|
10
9
|
import { ReactionAnnotation } from "./reaction-annotation.data.model";
|
|
11
10
|
import { RecordedData } from "./recorder.model";
|
|
11
|
+
import { UserContact } from "./user-contact.data.model";
|
|
12
12
|
import { User } from "./user.data.model";
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated Use `AddCommentAnnotationEvent` instead
|
|
15
|
+
*/
|
|
13
16
|
export interface CommentAddEventData {
|
|
14
17
|
annotation: CommentAnnotation;
|
|
15
18
|
location?: Location;
|
|
@@ -21,6 +24,9 @@ export interface CommentAddEventData {
|
|
|
21
24
|
xpath: string;
|
|
22
25
|
};
|
|
23
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* @deprecated Use respective events instead
|
|
29
|
+
*/
|
|
24
30
|
export interface CommentEvent {
|
|
25
31
|
annotation?: CommentAnnotation | null;
|
|
26
32
|
element?: HTMLElement;
|
|
@@ -29,8 +35,14 @@ export interface CommentEvent {
|
|
|
29
35
|
targetCommentId?: number;
|
|
30
36
|
updateContext?: (context: any, config?: UpdateContextConfig) => void;
|
|
31
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* @deprecated Use respective events instead
|
|
40
|
+
*/
|
|
32
41
|
export interface CommentUpdateEventData extends CommentEvent {
|
|
33
42
|
}
|
|
43
|
+
/**
|
|
44
|
+
* @deprecated Use `AcceptCommentAnnotationEvent` and `RejectCommentAnnotationEvent` instead
|
|
45
|
+
*/
|
|
34
46
|
export interface CommentSuggestionEventData {
|
|
35
47
|
annotationId: string;
|
|
36
48
|
actionUser?: User;
|
|
@@ -39,83 +51,128 @@ export interface CommentSuggestionEventData {
|
|
|
39
51
|
replaceContentText?: string;
|
|
40
52
|
annotation?: any;
|
|
41
53
|
}
|
|
42
|
-
export
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
54
|
+
export type CommentEventTypesMap = {
|
|
55
|
+
[CommentEventTypes.ADD_COMMENT_ANNOTATION]: AddCommentAnnotationEvent;
|
|
56
|
+
[CommentEventTypes.APPROVE_COMMENT_ANNOTATION]: ApproveCommentAnnotationEvent;
|
|
57
|
+
[CommentEventTypes.ACCEPT_COMMENT_ANNOTATION]: AcceptCommentAnnotationEvent;
|
|
58
|
+
[CommentEventTypes.REJECT_COMMENT_ANNOTATION]: RejectCommentAnnotationEvent;
|
|
59
|
+
[CommentEventTypes.SUBSCRIBE_COMMENT_ANNOTATION]: SubscribeCommentAnnotationEvent;
|
|
60
|
+
[CommentEventTypes.UNSUBSCRIBE_COMMENT_ANNOTATION]: UnsubscribeCommentAnnotationEvent;
|
|
61
|
+
[CommentEventTypes.DELETE_COMMENT_ANNOTATION]: DeleteCommentAnnotationEvent;
|
|
62
|
+
[CommentEventTypes.ASSIGN_USER]: AssignUserEvent;
|
|
63
|
+
[CommentEventTypes.UPDATE_PRIORITY]: UpdatePriorityEvent;
|
|
64
|
+
[CommentEventTypes.UPDATE_STATUS]: UpdateStatusEvent;
|
|
65
|
+
[CommentEventTypes.UPDATE_ACCESS]: UpdateAccessEvent;
|
|
66
|
+
[CommentEventTypes.RESOLVE_COMMENT]: ResolveCommentEvent;
|
|
67
|
+
[CommentEventTypes.ADD_COMMENT]: AddCommentEvent;
|
|
68
|
+
[CommentEventTypes.UPDATE_COMMENT]: UpdateCommentEvent;
|
|
69
|
+
[CommentEventTypes.DELETE_COMMENT]: DeleteCommentEvent;
|
|
70
|
+
[CommentEventTypes.ADD_ATTACHMENT]: AddAttachmentEvent;
|
|
71
|
+
[CommentEventTypes.DELETE_ATTACHMENT]: DeleteAttachmentEvent;
|
|
72
|
+
[CommentEventTypes.DELETE_RECORDING]: DeleteRecordingEvent;
|
|
73
|
+
[CommentEventTypes.COPY_LINK]: CopyLinkEvent;
|
|
74
|
+
[CommentEventTypes.ADD_REACTION]: AddReactionEvent;
|
|
75
|
+
[CommentEventTypes.DELETE_REACTION]: DeleteReactionEvent;
|
|
76
|
+
[CommentEventTypes.TOGGLE_REACTION]: ToggleReactionEvent;
|
|
77
|
+
};
|
|
47
78
|
export interface AddAttachmentEvent {
|
|
48
|
-
annotationId
|
|
49
|
-
commentAnnotation
|
|
79
|
+
annotationId: string;
|
|
80
|
+
commentAnnotation: CommentAnnotation;
|
|
50
81
|
attachments: AddAttachmentResponse[];
|
|
51
|
-
metadata:
|
|
82
|
+
metadata: VeltEventMetadata;
|
|
52
83
|
}
|
|
53
84
|
export interface DeleteAttachmentEvent {
|
|
54
|
-
annotationId
|
|
55
|
-
commentId
|
|
56
|
-
commentAnnotation
|
|
85
|
+
annotationId: string;
|
|
86
|
+
commentId: number;
|
|
87
|
+
commentAnnotation: CommentAnnotation;
|
|
57
88
|
attachment: Attachment;
|
|
58
|
-
metadata:
|
|
89
|
+
metadata: VeltEventMetadata;
|
|
59
90
|
}
|
|
60
91
|
export interface AddCommentAnnotationEvent {
|
|
61
|
-
annotationId
|
|
62
|
-
commentAnnotation
|
|
63
|
-
metadata:
|
|
92
|
+
annotationId: string;
|
|
93
|
+
commentAnnotation: CommentAnnotation;
|
|
94
|
+
metadata: VeltEventMetadata;
|
|
95
|
+
addContext: (context: any) => void;
|
|
96
|
+
elementRef?: {
|
|
97
|
+
xpath: string;
|
|
98
|
+
};
|
|
64
99
|
}
|
|
65
100
|
export interface ApproveCommentAnnotationEvent {
|
|
66
|
-
annotationId
|
|
67
|
-
commentAnnotation
|
|
68
|
-
metadata:
|
|
101
|
+
annotationId: string;
|
|
102
|
+
commentAnnotation: CommentAnnotation;
|
|
103
|
+
metadata: VeltEventMetadata;
|
|
69
104
|
}
|
|
70
105
|
export interface AcceptCommentAnnotationEvent {
|
|
71
|
-
annotationId
|
|
72
|
-
commentAnnotation
|
|
73
|
-
metadata:
|
|
106
|
+
annotationId: string;
|
|
107
|
+
commentAnnotation: CommentAnnotation;
|
|
108
|
+
metadata: VeltEventMetadata;
|
|
109
|
+
actionUser: User;
|
|
110
|
+
replaceContentHtml?: string;
|
|
111
|
+
replaceContentText?: string;
|
|
74
112
|
}
|
|
75
113
|
export interface RejectCommentAnnotationEvent {
|
|
76
|
-
annotationId
|
|
77
|
-
commentAnnotation
|
|
78
|
-
metadata:
|
|
114
|
+
annotationId: string;
|
|
115
|
+
commentAnnotation: CommentAnnotation;
|
|
116
|
+
metadata: VeltEventMetadata;
|
|
117
|
+
actionUser: User;
|
|
118
|
+
replaceContentHtml?: string;
|
|
119
|
+
replaceContentText?: string;
|
|
79
120
|
}
|
|
80
121
|
export interface DeleteCommentAnnotationEvent {
|
|
81
|
-
annotationId
|
|
82
|
-
commentAnnotation
|
|
83
|
-
metadata:
|
|
122
|
+
annotationId: string;
|
|
123
|
+
commentAnnotation: CommentAnnotation;
|
|
124
|
+
metadata: VeltEventMetadata;
|
|
125
|
+
}
|
|
126
|
+
export interface SubscribeCommentAnnotationEvent {
|
|
127
|
+
annotationId: string;
|
|
128
|
+
commentAnnotation: CommentAnnotation;
|
|
129
|
+
metadata: VeltEventMetadata;
|
|
130
|
+
}
|
|
131
|
+
export interface UnsubscribeCommentAnnotationEvent {
|
|
132
|
+
annotationId: string;
|
|
133
|
+
commentAnnotation: CommentAnnotation;
|
|
134
|
+
metadata: VeltEventMetadata;
|
|
135
|
+
}
|
|
136
|
+
export interface AssignUserEvent {
|
|
137
|
+
annotationId: string;
|
|
138
|
+
assignedTo: UserContact;
|
|
139
|
+
commentAnnotation: CommentAnnotation;
|
|
140
|
+
metadata?: VeltEventMetadata;
|
|
84
141
|
}
|
|
85
142
|
export interface AddCommentEvent {
|
|
86
|
-
annotationId
|
|
87
|
-
commentAnnotation
|
|
88
|
-
commentId
|
|
143
|
+
annotationId: string;
|
|
144
|
+
commentAnnotation: CommentAnnotation;
|
|
145
|
+
commentId: number;
|
|
89
146
|
comment: Comment;
|
|
90
|
-
metadata:
|
|
147
|
+
metadata: VeltEventMetadata;
|
|
91
148
|
}
|
|
92
149
|
export interface UpdateCommentEvent {
|
|
93
|
-
annotationId
|
|
94
|
-
commentAnnotation
|
|
95
|
-
commentId
|
|
150
|
+
annotationId: string;
|
|
151
|
+
commentAnnotation: CommentAnnotation;
|
|
152
|
+
commentId: number;
|
|
96
153
|
comment: Comment;
|
|
97
|
-
metadata:
|
|
154
|
+
metadata: VeltEventMetadata;
|
|
98
155
|
}
|
|
99
156
|
export interface DeleteCommentEvent {
|
|
100
|
-
annotationId
|
|
101
|
-
commentAnnotation
|
|
102
|
-
commentId
|
|
157
|
+
annotationId: string;
|
|
158
|
+
commentAnnotation: CommentAnnotation;
|
|
159
|
+
commentId: number;
|
|
103
160
|
comment: Comment;
|
|
104
|
-
metadata:
|
|
161
|
+
metadata: VeltEventMetadata;
|
|
105
162
|
}
|
|
106
163
|
export interface DeleteRecordingEvent {
|
|
107
|
-
annotationId
|
|
108
|
-
commentAnnotation
|
|
109
|
-
commentId
|
|
164
|
+
annotationId: string;
|
|
165
|
+
commentAnnotation: CommentAnnotation;
|
|
166
|
+
commentId: number;
|
|
110
167
|
recording: RecordedData;
|
|
111
|
-
metadata:
|
|
168
|
+
metadata: VeltEventMetadata;
|
|
112
169
|
}
|
|
113
170
|
export interface ReactionEvent {
|
|
114
|
-
annotationId
|
|
115
|
-
commentAnnotation
|
|
116
|
-
commentId
|
|
171
|
+
annotationId: string;
|
|
172
|
+
commentAnnotation: CommentAnnotation;
|
|
173
|
+
commentId: number;
|
|
117
174
|
reaction: ReactionAnnotation;
|
|
118
|
-
metadata:
|
|
175
|
+
metadata: VeltEventMetadata;
|
|
119
176
|
}
|
|
120
177
|
export interface AddReactionEvent extends ReactionEvent {
|
|
121
178
|
}
|
|
@@ -124,35 +181,40 @@ export interface DeleteReactionEvent extends ReactionEvent {
|
|
|
124
181
|
export interface ToggleReactionEvent extends ReactionEvent {
|
|
125
182
|
}
|
|
126
183
|
export interface UpdateStatusEvent {
|
|
127
|
-
annotationId
|
|
128
|
-
commentAnnotation
|
|
184
|
+
annotationId: string;
|
|
185
|
+
commentAnnotation: CommentAnnotation;
|
|
129
186
|
newStatus: CustomStatus;
|
|
130
187
|
oldStatus: CustomStatus;
|
|
131
|
-
metadata:
|
|
188
|
+
metadata: VeltEventMetadata;
|
|
132
189
|
}
|
|
133
190
|
export interface UpdatePriorityEvent {
|
|
134
|
-
annotationId
|
|
135
|
-
commentAnnotation
|
|
191
|
+
annotationId: string;
|
|
192
|
+
commentAnnotation: CommentAnnotation;
|
|
136
193
|
newPriority?: CustomPriority;
|
|
137
194
|
oldPriority?: CustomPriority;
|
|
138
|
-
metadata:
|
|
195
|
+
metadata: VeltEventMetadata;
|
|
139
196
|
}
|
|
140
197
|
export interface UpdateAccessEvent {
|
|
141
|
-
annotationId
|
|
142
|
-
commentAnnotation
|
|
198
|
+
annotationId: string;
|
|
199
|
+
commentAnnotation: CommentAnnotation;
|
|
143
200
|
newAccessMode?: CommentAccessMode;
|
|
144
201
|
oldAccessMode?: CommentAccessMode;
|
|
145
|
-
metadata:
|
|
202
|
+
metadata: VeltEventMetadata;
|
|
146
203
|
}
|
|
147
|
-
export interface
|
|
148
|
-
annotationId
|
|
149
|
-
commentAnnotation
|
|
204
|
+
export interface ResolveCommentEvent {
|
|
205
|
+
annotationId: string;
|
|
206
|
+
commentAnnotation: CommentAnnotation;
|
|
207
|
+
metadata: VeltEventMetadata;
|
|
208
|
+
}
|
|
209
|
+
export interface GetLinkResponse {
|
|
210
|
+
annotationId: string;
|
|
211
|
+
commentAnnotation: CommentAnnotation;
|
|
150
212
|
link: string | null;
|
|
151
|
-
metadata:
|
|
213
|
+
metadata: VeltEventMetadata;
|
|
152
214
|
}
|
|
153
215
|
export interface CopyLinkEvent {
|
|
154
|
-
annotationId
|
|
155
|
-
commentAnnotation
|
|
216
|
+
annotationId: string;
|
|
217
|
+
commentAnnotation: CommentAnnotation;
|
|
156
218
|
link: string;
|
|
157
|
-
metadata:
|
|
219
|
+
metadata: VeltEventMetadata;
|
|
158
220
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DocumentMetadata } from "./document-metadata.model";
|
|
2
|
+
import { Location } from "./location.model";
|
|
3
|
+
import { OrganizationMetadata } from "./organization-metadata.model";
|
|
4
|
+
export interface VeltEventMetadata {
|
|
5
|
+
organizationMetadata?: OrganizationMetadata | null;
|
|
6
|
+
documentMetadata?: DocumentMetadata | null;
|
|
7
|
+
location?: Location | null;
|
|
8
|
+
}
|