Data Models
CommentAnnotation
CommentAnnotation
Class
Property | Type | Optional | Description |
---|---|---|---|
annotationId | string | No | Unique identifier for the comment pin annotation. Auto generated. |
comments | Comment[] | No | The list of all comments part of this annotation. |
commentCategories | CustomCategory[] | No | The list of categories that this comment pin annotation belongs to. |
from | User | No | The user who created this comment pin annotation. |
color | string | Yes | Color used for the comment pin annotation. |
resolved | boolean | Yes | Whether the comment annotation is marked resolved. Deprecated. |
inProgress | boolean | Yes | Whether the comment annotation is marked as in progress. Deprecated. |
lastUpdated | any | Yes | Timestamp when the comment annotation was last updated. Auto generated. |
createdAt | any | Yes | Timestamp when the comment annotation was created. Auto generated. |
position | CursorPosition | null | Yes | Cursor position relative to the comment annotation. |
locationId | number | null | Yes | Unique location id generated from provided location. |
location | Location | null | Yes | Set location to identify user on sub document. |
type | string | Yes | Type of the comment annotation. |
selectAllContent | boolean | Yes | If true, sets text comment annotation on all the text content. |
approved | boolean | Yes | Whether the comment annotation is approved. |
status | CustomStatus | No | Status of the comment annotation. Default: CommentAnnotationStatusMap.OPEN |
annotationIndex | number | Yes | Index of current annotation in the list. |
pageInfo | PageInfo | Yes | Page information related to the comment annotation. |
assignedTo | User | Yes | User to whom the comment annotation is assigned. |
priority | CustomPriority | Yes | Priority level of the comment annotation. |
ghostComment | GhostComment | null | Yes | Placeholder for a non-existing comment. |
context | any | Yes | Custom context data provided by the user. |
resolvedByUserId | string | Yes | ID of the user who resolved the comment. |
subscribedUsers | CommentAnnotationSubscribedUsers | Yes | Users who explicitly subscribe to the comment. |
unsubscribedUsers | CommentAnnotationUnsubscribedUsers | Yes | Users who explicitly unsubscribe to the comment. |
multiThreadAnnotationId | string | Yes | This is the ID of the multithread annotation group it belongs to, if this was created when multithread mode was on. |
isDraft | boolean | Yes | Indicates if the comment annotation is in draft state. |
customList | CustomAnnotationDropdownItem[] | Yes | Custom list of items for the comment annotation. |
CommentAnnotationSubscribedUsers
Class
Property | Type | Optional | Description | |
---|---|---|---|---|
userIdHash | string | No | The user ID of the subscribed user. | |
user | User | No | The user object of the subscribed user. | |
type | ’manual' | 'auto’ | No | Manual: if the user used the UI option to subscribe; Auto: When the system automatically adds the user to the subscribed list. eg: when the user creates a comment annotation. |
CommentAnnotationUnsubscribedUsers
Class
Property | Type | Optional | Description | |
---|---|---|---|---|
userIdHash | string | No | The user ID of the unsubscribed user. | |
user | User | No | The user object of the unsubscribed user. | |
type | ’manual' | 'auto’ | No | Manual: if the user used the UI option to unsubscribe; Auto: When the system automatically removes the user from the unsubscribed list. eg: when the comment where user was tagged is deleted. |
CustomFilter
Class
Property | Type | Optional | Description |
---|---|---|---|
id | string | No | Unique identifier for the custom filter. |
color | string | No | Color associated with the custom filter. |
name | string | No | Name or label of the custom filter. |
CustomPriority
Class
Property | Type | Optional | Description |
---|---|---|---|
id | string | No | Unique identifier for the custom priority. |
color | string | No | Color associated with the custom priority. |
name | string | No | Name or label of the custom priority. |
lightColor | string | Yes | Light color variant for the custom priority. |
CustomStatus
Class
Property | Type | Optional | Description |
---|---|---|---|
id | string | No | Unique identifier for the custom status. |
color | string | No | Color associated with the custom status. |
name | string | No | Name or label of the custom status. |
type | StatusType | No | Type of the status (default , ongoing , or terminal ). |
lightColor | string | Yes | Light color for the custom status. |
svg | string | Yes | Raw SVG string for the custom status. |
iconUrl | string | Yes | URL to an icon image for the custom status. |
CustomCategory
Class
Property | Type | Optional | Description |
---|---|---|---|
id | string | No | Unique identifier for the custom category. |
color | string | No | Color associated with the custom category. |
name | string | No | Name or label of the custom category. |
CustomAnnotationDropdownData
Represents the configuration for a custom annotation dropdown.
Property | Type | Description |
---|---|---|
type | multi | single | The type of the custom annotation dropdown. |
placeholder | string | The placeholder text for the dropdown. Defaults to ‘Select’. |
data | CustomAnnotationDropdownItem[] | An array of dropdown items. |
CustomAnnotationDropdownItem
Represents an item in a custom annotation dropdown.
Property | Type | Description |
---|---|---|
id | string | The unique identifier for the dropdown item. |
label | string | The display text for the dropdown item. |
Default Status Object
The default status object is defined in the CommentAnnotationStatusMap
constant. It includes three predefined statuses: OPEN, IN_PROGRESS, and RESOLVED. Each status is an object with the following structure:
Was this page helpful?