@veltdev/types 4.7.1 → 4.7.2

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.
Files changed (74) hide show
  1. package/app/models/data/area-annotation.data.model.d.ts +1 -7
  2. package/app/models/data/attachment.model.d.ts +1 -21
  3. package/app/models/data/comment-annotation.data.model.d.ts +4 -80
  4. package/app/models/data/comment.data.model.d.ts +1 -26
  5. package/app/models/data/config.data.model.d.ts +0 -23
  6. package/app/models/data/cursor-position.data.model.d.ts +0 -15
  7. package/app/models/data/cursor-user.data.model.d.ts +0 -5
  8. package/app/models/data/custom-filter.data.model.d.ts +0 -8
  9. package/app/models/data/document-iam.data.model.d.ts +0 -8
  10. package/app/models/data/document-metadata.model.d.ts +0 -28
  11. package/app/models/data/document-paths.data.model.d.ts +1 -51
  12. package/app/models/data/huddle.model.d.ts +1 -2
  13. package/app/models/data/live-state-data-map.data.model.d.ts +6 -7
  14. package/app/models/data/live-state-data.data.model.d.ts +2 -37
  15. package/app/models/data/location-metadata.model.d.ts +0 -14
  16. package/app/models/data/location.model.d.ts +2 -0
  17. package/app/models/data/media-preview-config.data.model.d.ts +0 -3
  18. package/app/models/data/notification.model.d.ts +3 -129
  19. package/app/models/data/page-info.model.d.ts +0 -4
  20. package/app/models/data/presence-user.data.model.d.ts +0 -7
  21. package/app/models/data/recorder-annotation.data.model.d.ts +9 -101
  22. package/app/models/data/recorder.model.d.ts +2 -31
  23. package/app/models/data/selection.model.d.ts +0 -12
  24. package/app/models/data/target-element.data.model.d.ts +0 -5
  25. package/app/models/data/target-text-range.data.model.d.ts +0 -13
  26. package/app/models/data/user-contact.data.model.d.ts +0 -21
  27. package/app/models/data/user-iam.data.model.d.ts +0 -15
  28. package/app/models/data/user.data.model.d.ts +0 -82
  29. package/app/utils/constants.d.ts +6 -133
  30. package/app/utils/enums.d.ts +4 -208
  31. package/models.d.ts +0 -36
  32. package/package.json +2 -2
  33. package/app/models/data/anchor-record.data.model.d.ts +0 -109
  34. package/app/models/data/arrow-annotation.data.model.d.ts +0 -51
  35. package/app/models/data/attachment-resolver.data.model.d.ts +0 -52
  36. package/app/models/data/autocomplete.data.model.d.ts +0 -51
  37. package/app/models/data/base-metadata.data.model.d.ts +0 -9
  38. package/app/models/data/button.data.model.d.ts +0 -37
  39. package/app/models/data/comment-actions.data.model.d.ts +0 -190
  40. package/app/models/data/comment-events.data.model.d.ts +0 -272
  41. package/app/models/data/comment-resolver.data.model.d.ts +0 -72
  42. package/app/models/data/comment-sidebar-config.model.d.ts +0 -95
  43. package/app/models/data/comment-utils.data.model.d.ts +0 -16
  44. package/app/models/data/contact-utils.data.model.d.ts +0 -9
  45. package/app/models/data/core-events.data.model.d.ts +0 -180
  46. package/app/models/data/crdt-events.data.model.d.ts +0 -25
  47. package/app/models/data/crdt.data.model.d.ts +0 -60
  48. package/app/models/data/custom-chip-dropdown.data.model.d.ts +0 -10
  49. package/app/models/data/custom-css.data.model.d.ts +0 -10
  50. package/app/models/data/customer-metadata.data.model.d.ts +0 -15
  51. package/app/models/data/document-events.data.model.d.ts +0 -8
  52. package/app/models/data/document.data.model.d.ts +0 -63
  53. package/app/models/data/encryption-provider.data.model.d.ts +0 -12
  54. package/app/models/data/event-metadata.data.model.d.ts +0 -32
  55. package/app/models/data/folder-metadata.model.d.ts +0 -40
  56. package/app/models/data/heartbeat.data.model.d.ts +0 -16
  57. package/app/models/data/live-state-events.data.model.d.ts +0 -23
  58. package/app/models/data/multi-thread.data.model.d.ts +0 -63
  59. package/app/models/data/notifications-events.data.model.d.ts +0 -9
  60. package/app/models/data/organization-groups.data.model.d.ts +0 -16
  61. package/app/models/data/organization-metadata.model.d.ts +0 -31
  62. package/app/models/data/presence-actions.data.model.d.ts +0 -5
  63. package/app/models/data/presence-events.data.model.d.ts +0 -16
  64. package/app/models/data/provider.data.model.d.ts +0 -10
  65. package/app/models/data/reaction-annotation.data.model.d.ts +0 -68
  66. package/app/models/data/reaction-resolver.data.model.d.ts +0 -42
  67. package/app/models/data/reaction.data.model.d.ts +0 -18
  68. package/app/models/data/recorder-events.data.model.d.ts +0 -45
  69. package/app/models/data/resolver.data.model.d.ts +0 -36
  70. package/app/models/data/screenshot.data.model.d.ts +0 -10
  71. package/app/models/data/sync-video-player.data.model.d.ts +0 -47
  72. package/app/models/data/user-organization.data.model.d.ts +0 -12
  73. package/app/models/data/user-resolver.data.model.d.ts +0 -56
  74. package/app/models/data/views.data.model.d.ts +0 -64
@@ -1,60 +0,0 @@
1
- export interface CrdtVersion {
2
- versionId: string;
3
- versionName?: string;
4
- state: Uint8Array | number[];
5
- timestamp: number;
6
- }
7
- export interface CrdtVersionWithEncryptedState extends Omit<CrdtVersion, 'state'> {
8
- encryptedState: string;
9
- }
10
- export interface CrdtUpdateDataQuery {
11
- id: string;
12
- state: Uint8Array | number[];
13
- data?: unknown;
14
- }
15
- export interface CrdtOnDataChangeQuery {
16
- id: string;
17
- callback: (data: any) => void;
18
- }
19
- export interface CrdtGetDataQuery {
20
- id: string;
21
- }
22
- export interface CrdtOnStateChangeQuery {
23
- id: string;
24
- callback: (data: any) => void;
25
- }
26
- export interface CrdtUpdateStateQuery {
27
- id: string;
28
- state: Uint8Array | number[];
29
- }
30
- export interface CrdtRegisterSyncUserQuery {
31
- id: string;
32
- }
33
- export interface CrdtOnRegisteredUserChangeQuery {
34
- id: string;
35
- callback: (data: any) => void;
36
- }
37
- export interface CrdtSetPresenceQuery {
38
- id: string;
39
- }
40
- export interface CrdtOnPresenceChangeQuery {
41
- id: string;
42
- callback: (data: any) => void;
43
- }
44
- export interface CrdtSaveVersionQuery {
45
- id: string;
46
- versionId: string;
47
- versionName?: string;
48
- state: Uint8Array | number[];
49
- }
50
- export interface CrdtGetVersionQuery {
51
- id: string;
52
- versionId: string;
53
- }
54
- export interface CrdtGetVersionsQuery {
55
- id: string;
56
- }
57
- export interface CrdtDeleteVersionQuery {
58
- id: string;
59
- versionId: string;
60
- }
@@ -1,10 +0,0 @@
1
- export type CustomAnnotationDropdownType = 'multi' | 'single';
2
- export declare class CustomAnnotationDropdownItem {
3
- id: string;
4
- label: string;
5
- }
6
- export declare class CustomAnnotationDropdownData {
7
- type: CustomAnnotationDropdownType;
8
- placeholder?: string;
9
- data: CustomAnnotationDropdownItem[];
10
- }
@@ -1,10 +0,0 @@
1
- export declare class CustomCss {
2
- /**
3
- * Type of custom css
4
- */
5
- type: 'link' | 'styles';
6
- /**
7
- * Value of custom css
8
- */
9
- value: string;
10
- }
@@ -1,15 +0,0 @@
1
- export declare class CustomerMetadata {
2
- customBranding?: CustomBranding;
3
- }
4
- export declare class CustomBranding {
5
- logo?: {
6
- logoMark?: {
7
- lightUrl?: string;
8
- darkUrl?: string;
9
- };
10
- wordMark?: {
11
- lightUrl?: string;
12
- darkUrl?: string;
13
- };
14
- };
15
- }
@@ -1,8 +0,0 @@
1
- import { DocumentMetadata } from "./document-metadata.model";
2
- import { FolderMetadata } from "./folder-metadata.model";
3
- export interface FetchDocumentsResponse {
4
- data: Record<string, DocumentMetadata> | null;
5
- }
6
- export interface FetchFoldersResponse {
7
- data: Record<string, FolderMetadata> | null;
8
- }
@@ -1,63 +0,0 @@
1
- import { DocumentMetadata } from "./document-metadata.model";
2
- export interface Document {
3
- id: string;
4
- metadata?: DocumentMetadata;
5
- }
6
- export interface SetDocumentsContext {
7
- access: {
8
- [key: string]: Array<string | number>;
9
- };
10
- accessFields?: Array<string>;
11
- }
12
- export interface SetDocumentsRequestOptions {
13
- organizationId?: string;
14
- folderId?: string;
15
- allDocuments?: boolean;
16
- locationId?: string;
17
- rootDocumentId?: string;
18
- context?: SetDocumentsContext;
19
- }
20
- export interface UpdateDocumentsRequest<T = unknown> {
21
- organizationId?: string;
22
- folderId?: string;
23
- documents?: UpdateDocumentMetadata<T>[];
24
- }
25
- export interface UpdateDocumentMetadata<T = unknown> {
26
- documentId: string;
27
- [key: string]: T | string;
28
- }
29
- export interface UpdateLocationsRequest<T = unknown> {
30
- organizationId?: string;
31
- documentIds?: string[];
32
- locations?: UpdateLocationMetadata<T>[];
33
- }
34
- export interface UpdateLocationMetadata<T = unknown> {
35
- id: string;
36
- [key: string]: T | string;
37
- }
38
- export interface FetchDocumentsRequest {
39
- organizationId?: string;
40
- documentIds?: string[];
41
- folderId?: string;
42
- allDocuments?: boolean;
43
- }
44
- export interface FetchLocationsRequest {
45
- organizationId?: string;
46
- documentIds?: string[];
47
- folderId?: string;
48
- allDocuments?: boolean;
49
- }
50
- export interface FetchFoldersRequest {
51
- organizationId?: string;
52
- folderId?: string;
53
- }
54
- export interface FolderConfig {
55
- folderId?: string;
56
- allDocuments?: boolean;
57
- locationId?: string;
58
- veltFolderId?: string;
59
- }
60
- export interface OrganizationConfig {
61
- organizationId: string;
62
- clientOrganizationId: string;
63
- }
@@ -1,12 +0,0 @@
1
- export interface EncryptConfig<T = any> {
2
- data: T;
3
- type?: string;
4
- }
5
- export interface DecryptConfig<R = any> {
6
- data: R;
7
- type?: string;
8
- }
9
- export interface VeltEncryptionProvider<T = any, R = any> {
10
- encrypt: (config: EncryptConfig<T>) => Promise<R>;
11
- decrypt: (config: DecryptConfig<R>) => Promise<T>;
12
- }
@@ -1,32 +0,0 @@
1
- import { DocumentMetadata } from "./document-metadata.model";
2
- import { SetDocumentsContext } from "./document.data.model";
3
- import { FolderMetadata } from "./folder-metadata.model";
4
- import { Location } from "./location.model";
5
- import { OrganizationMetadata } from "./organization-metadata.model";
6
- import { User } from "./user.data.model";
7
- export interface VeltEventMetadata {
8
- organization?: OrganizationMetadata | null;
9
- documents?: DocumentMetadata[];
10
- locations?: Location[];
11
- folderId?: string;
12
- }
13
- export interface VeltDebugInfo {
14
- veltVersion?: string;
15
- apiKey?: string;
16
- serverMap?: {
17
- organization?: OrganizationMetadata;
18
- documents?: DocumentMetadata[];
19
- locations?: Location[];
20
- folder?: FolderMetadata;
21
- user?: User;
22
- accessFields?: Array<string>;
23
- };
24
- clientMap?: {
25
- organization?: OrganizationMetadata;
26
- documents?: DocumentMetadata[];
27
- locations?: Location[];
28
- folder?: FolderMetadata;
29
- user?: User;
30
- context?: SetDocumentsContext;
31
- };
32
- }
@@ -1,40 +0,0 @@
1
- export declare class FolderMetadata {
2
- folderId?: string;
3
- /**
4
- * Velt folder id
5
- */
6
- veltFolderId?: string;
7
- /**
8
- * Parent folder id
9
- */
10
- parentFolderId?: string;
11
- /**
12
- * Velt parent folder id
13
- */
14
- veltParentFolderId?: string;
15
- /**
16
- * Created at
17
- */
18
- createdAt?: number;
19
- /**
20
- * Last updated
21
- */
22
- lastUpdated?: number;
23
- /**
24
- * API key
25
- */
26
- apiKey?: string;
27
- /**
28
- * Organization id
29
- */
30
- organizationId?: string;
31
- /**
32
- * Client organization id
33
- */
34
- clientOrganizationId?: string;
35
- /**
36
- * Folder name
37
- */
38
- folderName?: string;
39
- [key: string]: any;
40
- }
@@ -1,16 +0,0 @@
1
- import { BaseMetadata } from "./base-metadata.data.model";
2
- export interface Heartbeat {
3
- id: string;
4
- createdTimestamp: number;
5
- userId: string;
6
- veltUserId: string;
7
- tabId: string;
8
- metadata: BaseMetadata;
9
- lastUpdatedTimestamp: number;
10
- }
11
- export interface HeartbeatConfig {
12
- userId?: string;
13
- }
14
- export interface GetHeartbeatResponse {
15
- data: Heartbeat[] | null;
16
- }
@@ -1,23 +0,0 @@
1
- import { LiveStateSyncEventTypes } from "../../utils/enums";
2
- import { User } from "./user.data.model";
3
- export interface AccessRequestEvent {
4
- viewer?: User;
5
- editor?: User;
6
- timestamp?: number;
7
- status?: string;
8
- }
9
- export interface SEMEvent {
10
- viewer?: User;
11
- editor?: User;
12
- timestamp?: number;
13
- role?: string;
14
- }
15
- export type LiveStateEventTypesMap = {
16
- [LiveStateSyncEventTypes.ACCESS_REQUESTED]: AccessRequestEvent;
17
- [LiveStateSyncEventTypes.ACCESS_REQUEST_CANCELED]: AccessRequestEvent;
18
- [LiveStateSyncEventTypes.ACCESS_ACCEPTED]: AccessRequestEvent;
19
- [LiveStateSyncEventTypes.ACCESS_REJECTED]: AccessRequestEvent;
20
- [LiveStateSyncEventTypes.EDITOR_ASSIGNED]: SEMEvent;
21
- [LiveStateSyncEventTypes.VIEWER_ASSIGNED]: SEMEvent;
22
- [LiveStateSyncEventTypes.EDITOR_ON_DIFFERENT_TAB_DETECTED]: SEMEvent;
23
- };
@@ -1,63 +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
- isTemporary?: boolean;
59
- context?: any;
60
- }
61
- export declare class MultiThreadMetadata extends BaseMetadata {
62
- [key: string]: any;
63
- }
@@ -1,9 +0,0 @@
1
- import { NotificationSettingsConfig } from "./notification.model";
2
- import { NotificationEventTypes } from "../../utils/enums";
3
- export interface SettingsUpdatedEvent {
4
- settings: NotificationSettingsConfig;
5
- isMutedAll: boolean;
6
- }
7
- export type NotificationEventTypesMap = {
8
- [NotificationEventTypes.SETTINGS_UPDATED]: SettingsUpdatedEvent;
9
- };
@@ -1,16 +0,0 @@
1
- import { User } from "./user.data.model";
2
- export declare class OrganizationUserGroup {
3
- metadata: {
4
- groupId: string;
5
- clientGroupId: string;
6
- groupName: string;
7
- };
8
- users: {
9
- [userIdHash: string]: boolean;
10
- };
11
- }
12
- export interface UserGroup {
13
- groupId: string;
14
- groupName: string;
15
- users: User[];
16
- }
@@ -1,31 +0,0 @@
1
- import { DocumentMetadata } from "./document-metadata.model";
2
- import { PageInfo } from "./page-info.model";
3
- import { User } from "./user.data.model";
4
- export declare class OrganizationMetadata {
5
- /**
6
- * Unique organization id generated from client organization id
7
- */
8
- organizationId?: string;
9
- /**
10
- * API key
11
- */
12
- apiKey?: string;
13
- /**
14
- * Document id provided by client
15
- */
16
- clientOrganizationId?: string | number;
17
- /**
18
- * Page metadata
19
- */
20
- pageInfo?: PageInfo;
21
- /**
22
- *
23
- */
24
- documents?: {
25
- [documentId: number]: DocumentMetadata;
26
- };
27
- /**
28
- * Organization creator
29
- */
30
- creator?: User;
31
- }
@@ -1,5 +0,0 @@
1
- export interface PresenceRequestQuery {
2
- documentId?: string;
3
- organizationId?: string;
4
- statuses?: string[];
5
- }
@@ -1,16 +0,0 @@
1
- import { PresenceEventTypes } from "../../utils/enums";
2
- import { PresenceUser } from "./presence-user.data.model";
3
- export interface PresenceMultipleUsersOnlineEvent {
4
- users: PresenceUser[];
5
- }
6
- export interface PresenceUserStateChangeEvent {
7
- user: PresenceUser;
8
- state: string;
9
- }
10
- export type PresenceEventTypesMap = {
11
- [PresenceEventTypes.MULTIPLE_USERS_ONLINE]: PresenceMultipleUsersOnlineEvent;
12
- [PresenceEventTypes.USER_STATE_CHANGE]: PresenceUserStateChangeEvent;
13
- };
14
- export interface GetPresenceDataResponse {
15
- data: PresenceUser[] | null;
16
- }
@@ -1,10 +0,0 @@
1
- import { CommentAnnotationDataProvider } from "./comment-resolver.data.model";
2
- import { AttachmentDataProvider } from "./attachment-resolver.data.model";
3
- import { ReactionAnnotationDataProvider } from "./reaction-resolver.data.model";
4
- import { UserDataProvider } from "./user-resolver.data.model";
5
- export interface VeltDataProvider {
6
- comment?: CommentAnnotationDataProvider;
7
- user?: UserDataProvider;
8
- reaction?: ReactionAnnotationDataProvider;
9
- attachment?: AttachmentDataProvider;
10
- }
@@ -1,68 +0,0 @@
1
- import { BaseMetadata } from "./base-metadata.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 { Reaction } from "./reaction.data.model";
6
- import { TargetElement } from "./target-element.data.model";
7
- import { Context, User } from "./user.data.model";
8
- export declare class ReactionAnnotation {
9
- /**
10
- * Unique identifier for the reaction pin annotation.
11
- *
12
- * Auto generated.
13
- */
14
- annotationId: string;
15
- context?: Context;
16
- /**
17
- * Connected comment annotation id of reaction annotation
18
- */
19
- commentAnnotationId?: string;
20
- reactions?: Reaction[];
21
- /**
22
- * Timestamp when the reaction annotation was last updated.
23
- *
24
- * Auto generated.
25
- */
26
- lastUpdated?: any;
27
- /**
28
- * Target element of reaction annotation
29
- */
30
- targetElement?: TargetElement | null;
31
- /**
32
- * Target element id provided by user
33
- */
34
- targetElementId?: string | null;
35
- position?: CursorPosition | null;
36
- /**
37
- * Unique location id generated from provided location
38
- */
39
- locationId?: number | null;
40
- /**
41
- * Set location to identify user on sub document
42
- */
43
- location?: Location | null;
44
- type?: string;
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
- from?: User;
52
- icon?: string;
53
- isReactionResolverUsed?: boolean;
54
- iconUrl?: string;
55
- iconEmoji?: string;
56
- metadata?: ReactionMetadata;
57
- }
58
- export declare class ReactionMetadata extends BaseMetadata {
59
- [key: string]: any;
60
- }
61
- export declare class ReactionMap {
62
- [reactionId: string]: ReactionItem;
63
- }
64
- export declare class ReactionItem {
65
- url?: string;
66
- svg?: string;
67
- emoji?: string;
68
- }
@@ -1,42 +0,0 @@
1
- import { ResolverActions } from "../../utils/enums";
2
- import { BaseMetadata } from "./base-metadata.data.model";
3
- import { PartialUser } from "./comment-resolver.data.model";
4
- import { ReactionAnnotation } from "./reaction-annotation.data.model";
5
- import { ResolverConfig, ResolverResponse } from "./resolver.data.model";
6
- export interface ReactionAnnotationDataProvider {
7
- get: (request: GetReactionResolverRequest) => Promise<ResolverResponse<Record<string, PartialReactionAnnotation>>>;
8
- save: (request: SaveReactionResolverRequest) => Promise<ResolverResponse<undefined>>;
9
- delete: (request: DeleteReactionResolverRequest) => Promise<ResolverResponse<undefined>>;
10
- config?: ResolverConfig;
11
- }
12
- export interface GetReactionResolverRequest {
13
- organizationId: string;
14
- reactionAnnotationIds?: string[];
15
- documentIds?: string[];
16
- folderId?: string;
17
- allDocuments?: boolean;
18
- }
19
- export interface DeleteReactionResolverRequest {
20
- reactionAnnotationId: string;
21
- metadata?: BaseMetadata;
22
- event?: ResolverActions;
23
- }
24
- export interface SaveReactionResolverRequest {
25
- reactionAnnotation: {
26
- [key: string]: PartialReactionAnnotation;
27
- };
28
- metadata?: BaseMetadata;
29
- event?: ResolverActions;
30
- }
31
- export interface PartialReactionAnnotationResult {
32
- strippedData: {
33
- [annotationId: string]: PartialReactionAnnotation;
34
- } | null;
35
- originalData: ReactionAnnotation | null;
36
- }
37
- export interface PartialReactionAnnotation {
38
- annotationId: string;
39
- metadata?: BaseMetadata;
40
- icon?: string;
41
- from?: PartialUser;
42
- }
@@ -1,18 +0,0 @@
1
- import { User } from "./user.data.model";
2
- export declare class Reaction {
3
- /**
4
- * Emoji variant.
5
- */
6
- variant?: string;
7
- /**
8
- * The user who added reaction.
9
- *
10
- */
11
- from: User;
12
- /**
13
- * Timestamp when this reaction was added.
14
- *
15
- * Auto generated.
16
- */
17
- lastUpdated?: Date;
18
- }
@@ -1,45 +0,0 @@
1
- import { RecorderData } from "../../models/data/recorder-annotation.data.model";
2
- import { RecorderEventTypes } from "../../utils/enums";
3
- export interface TranscriptionDoneEvent extends RecorderData {
4
- }
5
- export interface RecordingDoneEvent extends RecorderData {
6
- }
7
- export interface RecordingDeleteEvent extends RecorderData {
8
- }
9
- export interface RecordingEditDoneEvent extends RecorderData {
10
- }
11
- export interface RecordingActionsEvent {
12
- type: 'audio' | 'video' | 'screen';
13
- }
14
- export interface RecordingStartedEvent extends RecordingActionsEvent {
15
- }
16
- export interface RecordingPausedEvent extends RecordingActionsEvent {
17
- }
18
- export interface RecordingCancelledEvent extends RecordingActionsEvent {
19
- }
20
- export interface RecordingStoppedEvent extends RecordingActionsEvent {
21
- }
22
- export interface RecordingResumedEvent extends RecordingActionsEvent {
23
- }
24
- export interface RecordingErrorEvent {
25
- type: string;
26
- message: string;
27
- recorderId?: string;
28
- url?: string;
29
- }
30
- export interface RecordingSaveInitiatedEvent {
31
- annotationId?: string;
32
- message: string;
33
- type: 'edit' | 'record';
34
- }
35
- export type RecorderEventTypesMap = {
36
- [RecorderEventTypes.TRANSCRIPTION_DONE]: TranscriptionDoneEvent;
37
- [RecorderEventTypes.RECORDING_DONE]: RecordingDoneEvent;
38
- [RecorderEventTypes.RECORDING_EDIT_DONE]: RecordingEditDoneEvent;
39
- [RecorderEventTypes.DELETE_RECORDING]: RecordingDeleteEvent;
40
- [RecorderEventTypes.RECORDING_STARTED]: RecordingStartedEvent;
41
- [RecorderEventTypes.RECORDING_PAUSED]: RecordingPausedEvent;
42
- [RecorderEventTypes.RECORDING_CANCELLED]: RecordingCancelledEvent;
43
- [RecorderEventTypes.RECORDING_STOPPED]: RecordingStoppedEvent;
44
- [RecorderEventTypes.RECORDING_RESUMED]: RecordingResumedEvent;
45
- };
@@ -1,36 +0,0 @@
1
- export interface ResolverEndpointConfig {
2
- url: string;
3
- headers?: Record<string, string>;
4
- }
5
- export interface ResolverConfig {
6
- resolveTimeout?: number;
7
- saveRetryConfig?: RetryConfig;
8
- deleteRetryConfig?: RetryConfig;
9
- getRetryConfig?: RetryConfig;
10
- resolveUsersConfig?: ResolveUsersConfig;
11
- fieldsToRemove?: string[];
12
- getConfig?: ResolverEndpointConfig;
13
- saveConfig?: ResolverEndpointConfig;
14
- deleteConfig?: ResolverEndpointConfig;
15
- }
16
- export interface ResolveUsersConfig {
17
- organization?: boolean;
18
- folder?: boolean;
19
- document?: boolean;
20
- }
21
- export interface ResolverResponse<T> {
22
- data?: T;
23
- success: boolean;
24
- message?: string;
25
- timestamp?: number;
26
- statusCode: number;
27
- }
28
- export interface RetryConfig {
29
- retryCount?: number;
30
- retryDelay?: number;
31
- revertOnFailure?: boolean;
32
- }
33
- export interface ResolverResponseConfig {
34
- revertOnFailure?: boolean;
35
- isSuccess?: boolean;
36
- }