@veltdev/types-dev 4.5.0-beta.186 → 4.5.0-beta.19

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 (39) hide show
  1. package/app/client/snippyly.model.d.ts +8 -62
  2. package/app/models/data/button.data.model.d.ts +0 -2
  3. package/app/models/data/comment-actions.data.model.d.ts +0 -7
  4. package/app/models/data/comment-annotation.data.model.d.ts +0 -10
  5. package/app/models/data/comment-events.data.model.d.ts +0 -5
  6. package/app/models/data/comment-resolver.data.model.d.ts +0 -19
  7. package/app/models/data/comment-sidebar-config.model.d.ts +0 -26
  8. package/app/models/data/comment.data.model.d.ts +0 -1
  9. package/app/models/data/core-events.data.model.d.ts +0 -9
  10. package/app/models/data/custom-filter.data.model.d.ts +0 -8
  11. package/app/models/data/document-paths.data.model.d.ts +0 -13
  12. package/app/models/data/document.data.model.d.ts +0 -2
  13. package/app/models/data/location.model.d.ts +0 -10
  14. package/app/models/data/media-preview-config.data.model.d.ts +0 -2
  15. package/app/models/data/multi-thread.data.model.d.ts +0 -2
  16. package/app/models/data/notification.model.d.ts +1 -23
  17. package/app/models/data/presence-events.data.model.d.ts +0 -8
  18. package/app/models/data/reaction-resolver.data.model.d.ts +2 -4
  19. package/app/models/data/recorder-annotation.data.model.d.ts +0 -3
  20. package/app/models/data/recorder-events.data.model.d.ts +0 -29
  21. package/app/models/data/recorder.model.d.ts +8 -10
  22. package/app/models/data/resolver.data.model.d.ts +0 -7
  23. package/app/models/data/user-iam.data.model.d.ts +0 -6
  24. package/app/models/data/user-resolver.data.model.d.ts +0 -2
  25. package/app/models/data/user.data.model.d.ts +0 -10
  26. package/app/models/element/comment-element.model.d.ts +13 -148
  27. package/app/models/element/notification-element.model.d.ts +3 -103
  28. package/app/models/element/presence-element.model.d.ts +1 -15
  29. package/app/models/element/recorder-element.model.d.ts +159 -239
  30. package/app/utils/constants.d.ts +1 -45
  31. package/app/utils/enums.d.ts +2 -26
  32. package/models.d.ts +0 -4
  33. package/package.json +1 -1
  34. package/types.d.ts +0 -1
  35. package/app/models/data/crdt.data.model.d.ts +0 -59
  36. package/app/models/data/encryption-provider.data.model.d.ts +0 -12
  37. package/app/models/data/notifications-events.data.model.d.ts +0 -9
  38. package/app/models/data/presence-actions.data.model.d.ts +0 -5
  39. package/app/models/element/crdt-element.model.d.ts +0 -166
@@ -3,7 +3,7 @@ import { Observable } from "rxjs";
3
3
  import { Config, DisableLogsConfig } from "../models/data/config.data.model";
4
4
  import { DocumentUser } from "../models/data/document-user.data.model";
5
5
  import { Location } from "../models/data/location.model";
6
- import { User, UserOptions, VeltAuthProvider } from "../models/data/user.data.model";
6
+ import { User, UserOptions } from "../models/data/user.data.model";
7
7
  import { CustomCss } from "../models/data/custom-css.data.model";
8
8
  import { AreaElement } from "../models/element/area-element.model";
9
9
  import { ArrowElement } from "../models/element/arrow-element.model";
@@ -24,22 +24,18 @@ 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 { CrdtElement } from "../models/element/crdt-element.model";
28
27
  import { VeltEventMetadata } from "../models/data/event-metadata.data.model";
29
28
  import { CoreEventTypesMap } from "../models/data/core-events.data.model";
30
29
  import { Document, SetDocumentsRequestOptions, FetchDocumentsRequest, FetchFoldersRequest, UpdateDocumentsRequest, UpdateLocationsRequest } from "../models/data/document.data.model";
31
30
  import { FetchDocumentsResponse, FetchFoldersResponse } from "../models/data/document-events.data.model";
32
31
  import { UserDataProvider } from "../models/data/user-resolver.data.model";
33
32
  import { VeltDataProvider } from "../models/data/provider.data.model";
34
- import { VeltEncryptionProvider } from "../models/data/encryption-provider.data.model";
35
33
  import { VeltResetButtonStateConfig } from "../models/data/button.data.model";
36
- import { SetLocationsRequestOptions } from "../models/data/location.model";
37
34
 
38
35
  export declare class Snippyly {
39
36
  constructor();
40
37
  initConfig: (apiKey: string, config?: Config) => void;
41
38
  identify: (user: User, userOptions?: UserOptions) => Promise<unknown>;
42
- setVeltAuthProvider: (veltAuthProvider: VeltAuthProvider) => Promise<User | null>;
43
39
  /**
44
40
  * Tell us who the currently logged in user is.
45
41
  *
@@ -52,22 +48,17 @@ export declare class Snippyly {
52
48
  * @param id unique document ID
53
49
  * @param documentMetadata Document Metadata
54
50
  */
55
- setDocument: (id: string, documentMetadata?: DocumentMetadata) => Promise<void>;
51
+ setDocument: (id: string, documentMetadata?: DocumentMetadata) => void;
56
52
  /**
57
53
  * Tell us the unique ID of the current document/resource on which you want to enable collaboration.
58
54
  * @param id unique document ID
59
55
  * @deprecated This method is deprecated. Use `setDocuments` method instead.
60
56
  */
61
- setDocumentId: (id: string) => Promise<void>;
57
+ setDocumentId: (id: string) => void;
62
58
  /**
63
59
  * To set multiple documents
64
60
  */
65
- setDocuments: (documents: Document[], options?: SetDocumentsRequestOptions) => Promise<void>;
66
- /**
67
- * To set the root document
68
- * @param document Document object
69
- */
70
- setRootDocument: (document: Document) => Promise<void>;
61
+ setDocuments: (documents: Document[], options?: SetDocumentsRequestOptions) => void;
71
62
  /**
72
63
  * To unset the document id
73
64
  * @deprecated This method is deprecated. Use `unsetDocuments` method instead.
@@ -100,10 +91,6 @@ export declare class Snippyly {
100
91
  * To set the data provider.
101
92
  */
102
93
  setDataProviders: (dataProvider: VeltDataProvider) => void;
103
- /**
104
- * To set the encryption provider.
105
- */
106
- setEncryptionProvider: (encryptionProvider: VeltEncryptionProvider) => void;
107
94
  /**
108
95
  * Get Document ID
109
96
  */
@@ -113,39 +100,12 @@ export declare class Snippyly {
113
100
  * @param params Location
114
101
  * @param appendLocation Append location to existing location
115
102
  */
116
- setLocation: (params: Location, appendLocation?: boolean) => Promise<void>;
117
-
118
- /**
119
- * To set the root location
120
- * @param location Location object
121
- */
122
- setRootLocation: (location: Location) => Promise<void>;
123
-
124
- /**
125
- * To set multiple locations
126
- * @param locations Location objects
127
- * @param options Set locations options
128
- */
129
- setLocations: (locations: Location[], options?: SetLocationsRequestOptions) => Promise<void>;
130
-
103
+ setLocation: (params: Location, appendLocation?: boolean) => void;
131
104
  /**
132
105
  * To remove location from a User
133
106
  * @param location Location
134
107
  */
135
108
  removeLocation: (location?: Location) => void;
136
-
137
- /**
138
- * To remove multiple locations
139
- * @param locations Location objects
140
- */
141
- removeLocations: (locations?: Location[]) => void;
142
-
143
- /**
144
- * To remove location ids
145
- * @param locationIds Location ids
146
- */
147
- unsetLocationIds: (locationIds?: string[]) => void;
148
-
149
109
  /**
150
110
  * To exclude data of specific location ids
151
111
  * @param ids Location Ids
@@ -232,10 +192,6 @@ export declare class Snippyly {
232
192
  * Get the Area Object.
233
193
  */
234
194
  getReactionElement: () => ReactionElement;
235
- /**
236
- * Get the CRDT Element Object.
237
- */
238
- getCrdtElement: () => CrdtElement;
239
195
  /**
240
196
  * Get the metadata of the current resource.
241
197
  */
@@ -255,7 +211,7 @@ export declare class Snippyly {
255
211
  * @param location Location object
256
212
  * @deprecated This method is deprecated and will be removed in next release. Use `setLocation` method with `appendLocation: true` instead.
257
213
  */
258
- addLocation: (location: any) => Promise<any>;
214
+ addLocation: (location: any) => any;
259
215
  /**
260
216
  * To set the dark mode of Velt components.
261
217
  * @param value {boolean} true/false
@@ -356,18 +312,8 @@ export declare class Snippyly {
356
312
  */
357
313
  disableLogs: (config?: DisableLogsConfig) => void;
358
314
 
359
- /**
360
- * To enable safe eval.
361
- */
362
- enableSafeEval: () => void;
363
-
364
- /**
365
- * To disable safe eval.
366
- */
367
- disableSafeEval: () => void;
368
-
369
315
  /**
370
316
  * To reset the button toggle map.
371
317
  */
372
- resetVeltButtonState: (config?: VeltResetButtonStateConfig) => void;
373
- }
318
+ resetVeltButtonState: (config?: VeltResetButtonStateConfig) => void;
319
+ }
@@ -1,13 +1,11 @@
1
1
  import { CommentAnnotation } from "./comment-annotation.data.model";
2
2
  import { UnreadCommentsMap } from "./comment-utils.data.model";
3
3
  import { Comment } from "./comment.data.model";
4
- import { CustomFilters } from "./custom-filter.data.model";
5
4
  import { VeltEventMetadata } from "./event-metadata.data.model";
6
5
  import { Notification } from "./notification.model";
7
6
  export interface VeltButtonClickEvent extends VeltButtonData {
8
7
  buttonContext?: VeltButtonContext;
9
8
  metadata?: VeltEventMetadata;
10
- customFilters?: CustomFilters;
11
9
  }
12
10
  export interface VeltButtonContext {
13
11
  type?: string;
@@ -45,10 +45,6 @@ export interface AddCommentAnnotationRequest {
45
45
  annotation: CommentAnnotation;
46
46
  options?: RequestOptions;
47
47
  }
48
- export interface PublishCommentAnnotationRequest {
49
- annotationId: string;
50
- options?: RequestOptions;
51
- }
52
48
  export interface ApproveCommentAnnotationRequest {
53
49
  annotationId: string;
54
50
  options?: RequestOptions;
@@ -66,15 +62,12 @@ export interface DeleteCommentAnnotationRequest {
66
62
  options?: RequestOptions;
67
63
  }
68
64
  export interface CommentRequestQuery {
69
- organizationId?: string;
70
65
  documentIds?: string[];
71
66
  locationIds?: string[];
72
67
  statusIds?: string[];
73
68
  folderId?: string;
74
69
  allDocuments?: boolean;
75
70
  locationId?: string;
76
- aggregateDocuments?: boolean;
77
- filterGhostComments?: boolean;
78
71
  }
79
72
  export interface SubscribeCommentAnnotationRequest {
80
73
  annotationId: string;
@@ -9,7 +9,6 @@ import { PageInfo } from "./page-info.model";
9
9
  import { TargetElement } from "./target-element.data.model";
10
10
  import { TargetTextRange } from "./target-text-range.data.model";
11
11
  import { User } from "./user.data.model";
12
- import { CommentAnnotationViews } from "./views.data.model";
13
12
  export declare class CommentAnnotation {
14
13
  /**
15
14
  * Unique identifier for the comment pin annotation.
@@ -165,10 +164,6 @@ export declare class CommentAnnotation {
165
164
  * Custom context data provided by the user
166
165
  */
167
166
  context?: any;
168
- /**
169
- * Context id generated from context data
170
- */
171
- contextId?: string;
172
167
  iam: CommentIAMConfig;
173
168
  isPageAnnotation?: boolean;
174
169
  targetInlineCommentElementId?: string;
@@ -181,8 +176,6 @@ export declare class CommentAnnotation {
181
176
  multiThreadAnnotationId?: string;
182
177
  isDraft?: boolean;
183
178
  sourceId?: string;
184
- views?: CommentAnnotationViews;
185
- viewedByUserIds?: string[];
186
179
  }
187
180
  export declare class GhostComment {
188
181
  targetElement?: TargetElement | null;
@@ -251,6 +244,3 @@ export declare class CommentAnnotationSubscribedGroups {
251
244
  export declare class UpdateContextConfig {
252
245
  merge?: boolean;
253
246
  }
254
- export interface ContextOptions {
255
- partialMatch?: boolean;
256
- }
@@ -102,11 +102,6 @@ export interface AddCommentAnnotationEvent {
102
102
  xpath: string;
103
103
  };
104
104
  }
105
- export interface PublishCommentAnnotationEvent {
106
- annotationId: string;
107
- commentAnnotation: CommentAnnotation;
108
- metadata: VeltEventMetadata;
109
- }
110
105
  export interface ApproveCommentAnnotationEvent {
111
106
  annotationId: string;
112
107
  commentAnnotation: CommentAnnotation;
@@ -29,14 +29,6 @@ export interface SaveCommentResolverRequest {
29
29
  metadata?: BaseMetadata;
30
30
  commentId?: string;
31
31
  }
32
- export interface PartialUser {
33
- userId: string;
34
- }
35
- export interface PartialTaggedUserContacts {
36
- userId: string;
37
- contact?: PartialUser;
38
- text?: string;
39
- }
40
32
  export interface PartialComment {
41
33
  commentId: string | number;
42
34
  commentHtml?: string;
@@ -44,9 +36,6 @@ export interface PartialComment {
44
36
  attachments?: {
45
37
  [attachmentId: number]: PartialAttachment;
46
38
  };
47
- from?: PartialUser;
48
- to?: PartialUser[];
49
- taggedUserContacts?: PartialTaggedUserContacts[];
50
39
  }
51
40
  export interface PartialCommentAnnotationResult {
52
41
  strippedData: {
@@ -55,18 +44,10 @@ export interface PartialCommentAnnotationResult {
55
44
  originalData: CommentAnnotation | null;
56
45
  eventType?: ResolverActions;
57
46
  }
58
- export interface PartialTargetTextRange {
59
- text: string;
60
- }
61
47
  export interface PartialCommentAnnotation {
62
48
  annotationId: string;
63
49
  metadata?: BaseMetadata;
64
50
  comments: {
65
51
  [commentId: string]: PartialComment;
66
52
  };
67
- from?: PartialUser;
68
- assignedTo?: PartialUser;
69
- targetTextRange?: PartialTargetTextRange;
70
- resolvedByUserId?: string | null;
71
- [key: string]: any;
72
53
  }
@@ -1,35 +1,23 @@
1
1
  import { CommentAnnotation } from "./comment-annotation.data.model";
2
2
  import { UnreadCommentsMap } from "./comment-utils.data.model";
3
- import { CustomFilters } from "./custom-filter.data.model";
4
3
  import { Location } from "./location.model";
5
- declare class FilterOption {
6
- id: string;
7
- name: string;
8
- }
9
4
  declare class FilterTypeConfig {
10
5
  name?: string;
11
6
  enable?: boolean;
12
7
  multiSelection?: boolean;
13
8
  enableGrouping?: boolean;
14
9
  order?: string[];
15
- placeholder?: string;
16
- id?: string;
17
- type?: 'custom' | 'system';
18
- options?: FilterOption[];
19
10
  }
20
11
  export declare class CommentSidebarFilterConfig {
21
12
  location?: FilterTypeConfig;
22
- document?: FilterTypeConfig;
23
13
  people?: FilterTypeConfig;
24
14
  assigned?: FilterTypeConfig;
25
15
  tagged?: FilterTypeConfig;
26
- involved?: FilterTypeConfig;
27
16
  priority?: FilterTypeConfig;
28
17
  status?: FilterTypeConfig;
29
18
  category?: FilterTypeConfig;
30
19
  commentType?: FilterTypeConfig;
31
20
  version?: FilterTypeConfig;
32
- [key: string]: FilterTypeConfig | undefined;
33
21
  }
34
22
  export declare class CommentSidebarGroupConfig {
35
23
  enable?: boolean;
@@ -37,10 +25,6 @@ export declare class CommentSidebarGroupConfig {
37
25
  }
38
26
  export declare class CommentSidebarFilters {
39
27
  location?: Location[];
40
- document?: {
41
- id?: string;
42
- documentName?: string;
43
- }[];
44
28
  people?: {
45
29
  userId?: string;
46
30
  email?: string;
@@ -56,11 +40,6 @@ export declare class CommentSidebarFilters {
56
40
  email?: string;
57
41
  name?: string;
58
42
  }[];
59
- involved?: {
60
- userId?: string;
61
- email?: string;
62
- name?: string;
63
- }[];
64
43
  priority?: string[];
65
44
  status?: string[];
66
45
  category?: string[];
@@ -68,10 +47,6 @@ export declare class CommentSidebarFilters {
68
47
  id: string;
69
48
  name?: string;
70
49
  }[];
71
- [key: string]: {
72
- id?: string;
73
- name?: string;
74
- }[] | string[] | undefined;
75
50
  }
76
51
  export interface CommentSidebarCustomActionsState {
77
52
  [key: string]: boolean;
@@ -81,7 +56,6 @@ export interface CommentSidebarCustomActionEventData {
81
56
  data: CommentAnnotation[];
82
57
  unreadDataMap: UnreadCommentsMap;
83
58
  systemFilteredData: CommentAnnotation[];
84
- customFilters: CustomFilters;
85
59
  }
86
60
  export declare class CommentSidebarData {
87
61
  groupId?: string;
@@ -9,7 +9,6 @@ export declare class Comment {
9
9
  * Auto generated.
10
10
  */
11
11
  commentId: number;
12
- context?: any;
13
12
  /**
14
13
  * This determines the comment content type.
15
14
  *
@@ -6,19 +6,10 @@ export type CoreEventTypesMap = {
6
6
  [CoreEventTypes.USER_UPDATE]: UserUpdateEvent;
7
7
  [CoreEventTypes.DOCUMENT_INIT]: DocumentInitEvent;
8
8
  [CoreEventTypes.ERROR]: ErrorEvent;
9
- [CoreEventTypes.INIT_UPDATE]: InitUpdateEvent;
10
9
  };
11
10
  export type UserUpdateEvent = User | null;
12
11
  export type DocumentInitEvent = boolean | undefined;
13
12
  export type ErrorEvent = {
14
- error?: string;
15
13
  code: string;
16
14
  message?: string;
17
- source?: string;
18
- };
19
- export type InitUpdateEvent = {
20
- event: string;
21
- methodName?: string;
22
- source?: string;
23
- payload?: any;
24
15
  };
@@ -13,14 +13,6 @@ export interface CustomStatus extends CustomFilter {
13
13
  svg?: string;
14
14
  iconUrl?: string;
15
15
  }
16
- export interface CustomFilterOption {
17
- id: string;
18
- name: string;
19
- selected: boolean;
20
- }
21
- export interface CustomFilters {
22
- [key: string]: CustomFilterOption[];
23
- }
24
16
  export interface CustomCategory extends CustomFilter {
25
17
  }
26
18
  export interface CustomCategoryMap {
@@ -3,19 +3,10 @@ export declare class DocumentPaths {
3
3
  * The document's unique identifier.
4
4
  */
5
5
  documentId?: string;
6
- folderId?: string;
7
- locationId?: string;
8
- allDocuments?: boolean;
9
- veltFolderId?: string;
10
- folder?: string;
11
6
  /**
12
7
  * Presence path.
13
8
  */
14
9
  presence?: string;
15
- /**
16
- * User config path.
17
- */
18
- userConfig?: string;
19
10
  docs?: string;
20
11
  /**
21
12
  * Cursor path.
@@ -73,10 +64,6 @@ export declare class DocumentPaths {
73
64
  * User login path.
74
65
  */
75
66
  logins?: string;
76
- /**
77
- * CRDT path.
78
- */
79
- crdt?: string;
80
67
  /**
81
68
  * Selection path.
82
69
  */
@@ -8,11 +8,9 @@ export interface SetDocumentsRequestOptions {
8
8
  folderId?: string;
9
9
  allDocuments?: boolean;
10
10
  locationId?: string;
11
- rootDocumentId?: string;
12
11
  }
13
12
  export interface UpdateDocumentsRequest<T = unknown> {
14
13
  organizationId?: string;
15
- folderId?: string;
16
14
  documents?: UpdateDocumentMetadata<T>[];
17
15
  }
18
16
  export interface UpdateDocumentMetadata<T = unknown> {
@@ -23,13 +23,3 @@ export declare class Version {
23
23
  */
24
24
  name: string;
25
25
  }
26
- export declare class SetLocationsRequestOptions {
27
- /**
28
- * Root location.
29
- */
30
- rootLocationId?: string;
31
- /**
32
- * Merge locations.
33
- */
34
- appendLocation?: boolean;
35
- }
@@ -2,13 +2,11 @@ export declare class MediaPreviewConfig {
2
2
  audio?: {
3
3
  enabled?: boolean;
4
4
  deviceId?: string;
5
- stream?: MediaStream;
6
5
  };
7
6
  video?: {
8
7
  enabled?: boolean;
9
8
  deviceId?: string;
10
9
  track?: MediaStreamTrack;
11
- stream?: MediaStream;
12
10
  };
13
11
  screen?: {
14
12
  enabled?: boolean;
@@ -55,8 +55,6 @@ export declare class MultiThreadCommentAnnotation {
55
55
  isDraft?: boolean;
56
56
  sourceId?: string;
57
57
  metadata?: MultiThreadMetadata;
58
- isTemporary?: boolean;
59
- context?: any;
60
58
  }
61
59
  export declare class MultiThreadMetadata extends BaseMetadata {
62
60
  [key: string]: any;
@@ -1,4 +1,4 @@
1
- import { AreaStatus, ArrowStatus, CommentStatus, HuddleActionTypes, NotificationSettingsItemType, NotificationSource, TagStatus, UserActionTypes } from "../../utils/enums";
1
+ import { AreaStatus, ArrowStatus, CommentStatus, HuddleActionTypes, NotificationSource, TagStatus, UserActionTypes } from "../../utils/enums";
2
2
  import { DocumentMetadata } from "./document-metadata.model";
3
3
  import { DocumentUser } from "./document-user.data.model";
4
4
  import { Location } from "./location.model";
@@ -230,25 +230,3 @@ export declare class NotificationTabConfig {
230
230
  all?: NotificationTabConfigItem;
231
231
  people?: NotificationTabConfigItem;
232
232
  }
233
- export declare class NotificationInitialSettingsConfig {
234
- name?: string;
235
- id: string;
236
- default?: string;
237
- enable?: boolean;
238
- values?: NotificationConfigValue[];
239
- }
240
- export declare class NotificationConfigValue {
241
- name?: string;
242
- id: NotificationSettingsItemType;
243
- }
244
- export declare class NotificationSettingsConfig {
245
- [key: string]: NotificationSettingsItemType;
246
- }
247
- export interface NotificationsDocConfig {
248
- inbox: 'ALL' | 'NONE' | 'MINE';
249
- email: 'ALL' | 'NONE' | 'MINE';
250
- [key: string]: string;
251
- }
252
- export interface GetNotificationsDataQuery {
253
- type?: 'all' | 'forYou' | 'documents';
254
- }
@@ -3,14 +3,6 @@ import { PresenceUser } from "./presence-user.data.model";
3
3
  export interface PresenceMultipleUsersOnlineEvent {
4
4
  users: PresenceUser[];
5
5
  }
6
- export interface PresenceUserStateChangeEvent {
7
- user: PresenceUser;
8
- state: string;
9
- }
10
6
  export type PresenceEventTypesMap = {
11
7
  [PresenceEventTypes.MULTIPLE_USERS_ONLINE]: PresenceMultipleUsersOnlineEvent;
12
- [PresenceEventTypes.USER_STATE_CHANGE]: PresenceUserStateChangeEvent;
13
8
  };
14
- export interface GetPresenceDataResponse {
15
- data: PresenceUser[] | null;
16
- }
@@ -1,8 +1,7 @@
1
- import { ResolverActions } from "../../utils/enums";
2
1
  import { BaseMetadata } from "./base-metadata.data.model";
3
- import { PartialUser } from "./comment-resolver.data.model";
4
2
  import { ReactionAnnotation } from "./reaction-annotation.data.model";
5
- import { ResolverConfig, ResolverResponse } from "./resolver.data.model";
3
+ import { ResolverResponse, ResolverConfig } from "./resolver.data.model";
4
+ import { ResolverActions } from "../../utils/enums";
6
5
  export interface ReactionAnnotationDataProvider {
7
6
  get: (request: GetReactionResolverRequest) => Promise<ResolverResponse<Record<string, PartialReactionAnnotation>>>;
8
7
  save: (request: SaveReactionResolverRequest) => Promise<ResolverResponse<undefined>>;
@@ -38,5 +37,4 @@ export interface PartialReactionAnnotation {
38
37
  annotationId: string;
39
38
  metadata?: BaseMetadata;
40
39
  icon?: string;
41
- from?: PartialUser;
42
40
  }
@@ -180,8 +180,6 @@ export interface RecorderBoundedScaleRange {
180
180
  centerY?: number;
181
181
  topLeftX?: number;
182
182
  topLeftY?: number;
183
- topLeftXPixels?: number;
184
- topLeftYPixels?: number;
185
183
  }
186
184
  export interface RecorderEditRange {
187
185
  trimRanges: RecorderBoundedTrimRange[];
@@ -215,7 +213,6 @@ declare class RecorderDataAsset {
215
213
  */
216
214
  fileFormat?: RecorderFileFormat;
217
215
  thumbnailUrl?: string;
218
- transcription: RecorderDataTranscription;
219
216
  }
220
217
  export declare class RecorderData {
221
218
  recorderId: string;
@@ -8,38 +8,9 @@ export interface RecordingDeleteEvent extends RecorderData {
8
8
  }
9
9
  export interface RecordingEditDoneEvent extends RecorderData {
10
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
11
  export type RecorderEventTypesMap = {
36
12
  [RecorderEventTypes.TRANSCRIPTION_DONE]: TranscriptionDoneEvent;
37
13
  [RecorderEventTypes.RECORDING_DONE]: RecordingDoneEvent;
38
14
  [RecorderEventTypes.RECORDING_EDIT_DONE]: RecordingEditDoneEvent;
39
15
  [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
16
  };
@@ -93,19 +93,17 @@ export declare class RecordedData {
93
93
  };
94
94
  getThumbnailTag: (url?: string) => string;
95
95
  }
96
- export declare class RecorderQualityConstraintsOptions {
97
- video?: MediaTrackConstraints;
98
- audio?: MediaTrackConstraints;
99
- }
100
96
  export declare class RecorderQualityConstraints {
101
- safari?: RecorderQualityConstraintsOptions;
102
- other?: RecorderQualityConstraintsOptions;
97
+ safari?: {
98
+ video?: MediaTrackConstraints;
99
+ audio?: MediaTrackConstraints;
100
+ };
101
+ other?: {
102
+ video?: MediaTrackConstraints;
103
+ audio?: MediaTrackConstraints;
104
+ };
103
105
  }
104
106
  export declare class RecorderEncodingOptions {
105
107
  safari?: MediaRecorderOptions;
106
108
  other?: MediaRecorderOptions;
107
109
  }
108
- export declare class RecorderDevicePermissionOptions {
109
- audio?: boolean;
110
- video?: boolean;
111
- }
@@ -3,13 +3,6 @@ export interface ResolverConfig {
3
3
  saveRetryConfig?: RetryConfig;
4
4
  deleteRetryConfig?: RetryConfig;
5
5
  getRetryConfig?: RetryConfig;
6
- resolveUsersConfig?: ResolveUsersConfig;
7
- fieldsToRemove?: string[];
8
- }
9
- export interface ResolveUsersConfig {
10
- organization?: boolean;
11
- folder?: boolean;
12
- document?: boolean;
13
6
  }
14
7
  export interface ResolverResponse<T> {
15
8
  data?: T;
@@ -11,12 +11,6 @@ export declare class UserIAM {
11
11
  * The user's contact details
12
12
  */
13
13
  user: UserContact;
14
- documentIds?: string[];
15
- folderIds?: string[];
16
- organizationIds?: string[];
17
- documentIdsCount?: number;
18
- folderIdsCount?: number;
19
- organizationIdsCount?: number;
20
14
  /**
21
15
  * The user's role in the document
22
16
  */
@@ -1,7 +1,5 @@
1
- import { ResolverConfig } from "./resolver.data.model";
2
1
  import { User } from "./user.data.model";
3
2
  export interface UserDataProvider {
4
3
  get(userIds: string[]): Promise<Record<string, User>>;
5
- config?: ResolverConfig;
6
4
  resolveTimeout?: number;
7
5
  }