@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.
- package/app/models/data/area-annotation.data.model.d.ts +1 -7
- package/app/models/data/attachment.model.d.ts +1 -21
- package/app/models/data/comment-annotation.data.model.d.ts +4 -80
- package/app/models/data/comment.data.model.d.ts +1 -26
- package/app/models/data/config.data.model.d.ts +0 -23
- package/app/models/data/cursor-position.data.model.d.ts +0 -15
- package/app/models/data/cursor-user.data.model.d.ts +0 -5
- package/app/models/data/custom-filter.data.model.d.ts +0 -8
- package/app/models/data/document-iam.data.model.d.ts +0 -8
- package/app/models/data/document-metadata.model.d.ts +0 -28
- package/app/models/data/document-paths.data.model.d.ts +1 -51
- package/app/models/data/huddle.model.d.ts +1 -2
- package/app/models/data/live-state-data-map.data.model.d.ts +6 -7
- package/app/models/data/live-state-data.data.model.d.ts +2 -37
- package/app/models/data/location-metadata.model.d.ts +0 -14
- package/app/models/data/location.model.d.ts +2 -0
- package/app/models/data/media-preview-config.data.model.d.ts +0 -3
- package/app/models/data/notification.model.d.ts +3 -129
- package/app/models/data/page-info.model.d.ts +0 -4
- package/app/models/data/presence-user.data.model.d.ts +0 -7
- package/app/models/data/recorder-annotation.data.model.d.ts +9 -101
- package/app/models/data/recorder.model.d.ts +2 -31
- package/app/models/data/selection.model.d.ts +0 -12
- package/app/models/data/target-element.data.model.d.ts +0 -5
- package/app/models/data/target-text-range.data.model.d.ts +0 -13
- package/app/models/data/user-contact.data.model.d.ts +0 -21
- package/app/models/data/user-iam.data.model.d.ts +0 -15
- package/app/models/data/user.data.model.d.ts +0 -82
- package/app/utils/constants.d.ts +6 -133
- package/app/utils/enums.d.ts +4 -208
- package/models.d.ts +0 -36
- package/package.json +2 -2
- package/app/models/data/anchor-record.data.model.d.ts +0 -109
- package/app/models/data/arrow-annotation.data.model.d.ts +0 -51
- package/app/models/data/attachment-resolver.data.model.d.ts +0 -52
- package/app/models/data/autocomplete.data.model.d.ts +0 -51
- package/app/models/data/base-metadata.data.model.d.ts +0 -9
- package/app/models/data/button.data.model.d.ts +0 -37
- package/app/models/data/comment-actions.data.model.d.ts +0 -190
- package/app/models/data/comment-events.data.model.d.ts +0 -272
- package/app/models/data/comment-resolver.data.model.d.ts +0 -72
- package/app/models/data/comment-sidebar-config.model.d.ts +0 -95
- package/app/models/data/comment-utils.data.model.d.ts +0 -16
- package/app/models/data/contact-utils.data.model.d.ts +0 -9
- package/app/models/data/core-events.data.model.d.ts +0 -180
- package/app/models/data/crdt-events.data.model.d.ts +0 -25
- package/app/models/data/crdt.data.model.d.ts +0 -60
- package/app/models/data/custom-chip-dropdown.data.model.d.ts +0 -10
- package/app/models/data/custom-css.data.model.d.ts +0 -10
- package/app/models/data/customer-metadata.data.model.d.ts +0 -15
- package/app/models/data/document-events.data.model.d.ts +0 -8
- package/app/models/data/document.data.model.d.ts +0 -63
- package/app/models/data/encryption-provider.data.model.d.ts +0 -12
- package/app/models/data/event-metadata.data.model.d.ts +0 -32
- package/app/models/data/folder-metadata.model.d.ts +0 -40
- package/app/models/data/heartbeat.data.model.d.ts +0 -16
- package/app/models/data/live-state-events.data.model.d.ts +0 -23
- package/app/models/data/multi-thread.data.model.d.ts +0 -63
- package/app/models/data/notifications-events.data.model.d.ts +0 -9
- package/app/models/data/organization-groups.data.model.d.ts +0 -16
- package/app/models/data/organization-metadata.model.d.ts +0 -31
- package/app/models/data/presence-actions.data.model.d.ts +0 -5
- package/app/models/data/presence-events.data.model.d.ts +0 -16
- package/app/models/data/provider.data.model.d.ts +0 -10
- package/app/models/data/reaction-annotation.data.model.d.ts +0 -68
- package/app/models/data/reaction-resolver.data.model.d.ts +0 -42
- package/app/models/data/reaction.data.model.d.ts +0 -18
- package/app/models/data/recorder-events.data.model.d.ts +0 -45
- package/app/models/data/resolver.data.model.d.ts +0 -36
- package/app/models/data/screenshot.data.model.d.ts +0 -10
- package/app/models/data/sync-video-player.data.model.d.ts +0 -47
- package/app/models/data/user-organization.data.model.d.ts +0 -12
- package/app/models/data/user-resolver.data.model.d.ts +0 -56
- package/app/models/data/views.data.model.d.ts +0 -64
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AreaStatus, ArrowStatus, CommentStatus,
|
|
1
|
+
import { AreaStatus, ArrowStatus, CommentStatus, 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";
|
|
@@ -19,11 +19,11 @@ export declare class NotificationRawData {
|
|
|
19
19
|
/**
|
|
20
20
|
* Source of a notification
|
|
21
21
|
*/
|
|
22
|
-
notificationSource?:
|
|
22
|
+
notificationSource?: 'area' | 'arrow' | 'comment' | 'tag' | 'huddle' | 'userInvite' | 'user' | 'recorder' | 'huddleInvite' | 'userFeedback' | 'userContactUs' | 'userReportBug' | 'documentViews' | 'custom';
|
|
23
23
|
/**
|
|
24
24
|
* Type of notification like 'Added', 'Updated' etc.
|
|
25
25
|
*/
|
|
26
|
-
actionType?: AreaStatus | ArrowStatus | CommentStatus | TagStatus | UserActionTypes
|
|
26
|
+
actionType?: AreaStatus | ArrowStatus | CommentStatus | TagStatus | UserActionTypes;
|
|
27
27
|
/**
|
|
28
28
|
* Annotation object
|
|
29
29
|
*/
|
|
@@ -39,8 +39,6 @@ export declare class NotificationRawData {
|
|
|
39
39
|
newStatus?: string;
|
|
40
40
|
metadata?: DocumentMetadata & {
|
|
41
41
|
apiKey?: string;
|
|
42
|
-
clientOrganizationId?: string;
|
|
43
|
-
organizationId?: string;
|
|
44
42
|
} | null;
|
|
45
43
|
documentUser?: DocumentUser;
|
|
46
44
|
oldAccess?: string;
|
|
@@ -67,8 +65,6 @@ export declare class NotificationRawData {
|
|
|
67
65
|
commenter?: {
|
|
68
66
|
clientDocumentId: string;
|
|
69
67
|
documentId: string;
|
|
70
|
-
clientOrganizationId?: string;
|
|
71
|
-
organizationId?: string;
|
|
72
68
|
emails: string[];
|
|
73
69
|
emailProperties: {
|
|
74
70
|
url?: string;
|
|
@@ -88,17 +84,10 @@ export declare class NotificationRawData {
|
|
|
88
84
|
[key: string]: any;
|
|
89
85
|
};
|
|
90
86
|
displayBodyMessage?: string;
|
|
91
|
-
displayBodyMessageTemplate?: string;
|
|
92
|
-
displayBodyMessageTemplateData?: {
|
|
93
|
-
users?: User[];
|
|
94
|
-
[key: string]: any;
|
|
95
|
-
};
|
|
96
87
|
customData?: any;
|
|
97
88
|
notifyUsers?: {
|
|
98
89
|
[email: string]: boolean;
|
|
99
90
|
};
|
|
100
|
-
crdtData?: unknown;
|
|
101
|
-
notificationSourceData?: any;
|
|
102
91
|
}
|
|
103
92
|
export declare class Notification {
|
|
104
93
|
/**
|
|
@@ -133,123 +122,8 @@ export declare class Notification {
|
|
|
133
122
|
* Notification body message
|
|
134
123
|
*/
|
|
135
124
|
displayBodyMessage?: string;
|
|
136
|
-
/**
|
|
137
|
-
* Is comment text available
|
|
138
|
-
*/
|
|
139
|
-
isCommentResolverUsed?: boolean;
|
|
140
|
-
/**
|
|
141
|
-
* Display body message template
|
|
142
|
-
*/
|
|
143
|
-
displayBodyMessageTemplate?: string;
|
|
144
|
-
/**
|
|
145
|
-
* Display body message template data
|
|
146
|
-
*/
|
|
147
|
-
displayBodyMessageTemplateData?: {
|
|
148
|
-
users?: User[];
|
|
149
|
-
[key: string]: any;
|
|
150
|
-
};
|
|
151
|
-
/**
|
|
152
|
-
* Display message template
|
|
153
|
-
*/
|
|
154
|
-
displayHeadlineMessageTemplate?: string;
|
|
155
|
-
/**
|
|
156
|
-
* Display message template data
|
|
157
|
-
*/
|
|
158
|
-
displayHeadlineMessageTemplateData?: {
|
|
159
|
-
actionUser: User;
|
|
160
|
-
recipientUser: User;
|
|
161
|
-
actionMessage: string;
|
|
162
|
-
project: string;
|
|
163
|
-
[key: string]: any;
|
|
164
|
-
};
|
|
165
125
|
/**
|
|
166
126
|
* Is notification for you
|
|
167
127
|
*/
|
|
168
128
|
forYou?: boolean;
|
|
169
|
-
/**
|
|
170
|
-
* Notification annotation target
|
|
171
|
-
*/
|
|
172
|
-
targetAnnotationId?: string;
|
|
173
|
-
/**
|
|
174
|
-
* Notification annotation data
|
|
175
|
-
*/
|
|
176
|
-
notificationSourceData?: any;
|
|
177
|
-
/**
|
|
178
|
-
* Notification metadata
|
|
179
|
-
*/
|
|
180
|
-
metadata?: NotificationMetadata;
|
|
181
|
-
/**
|
|
182
|
-
* Notification notify users map by email hash
|
|
183
|
-
*/
|
|
184
|
-
notifyUsers?: {
|
|
185
|
-
[email: string]: boolean;
|
|
186
|
-
};
|
|
187
|
-
/**
|
|
188
|
-
* Notification notify users map by user id hash
|
|
189
|
-
*/
|
|
190
|
-
notifyUsersByUserId?: {
|
|
191
|
-
[userId: string]: boolean;
|
|
192
|
-
};
|
|
193
|
-
}
|
|
194
|
-
export declare class NotificationMetadata {
|
|
195
|
-
/**
|
|
196
|
-
* API Key
|
|
197
|
-
*/
|
|
198
|
-
apiKey?: string;
|
|
199
|
-
/**
|
|
200
|
-
* Client organization ID
|
|
201
|
-
*/
|
|
202
|
-
clientOrganizationId?: string;
|
|
203
|
-
/**
|
|
204
|
-
* Organization ID
|
|
205
|
-
*/
|
|
206
|
-
organizationId?: string;
|
|
207
|
-
/**
|
|
208
|
-
* Client document ID
|
|
209
|
-
*/
|
|
210
|
-
clientDocumentId?: string | number;
|
|
211
|
-
/**
|
|
212
|
-
* Document ID
|
|
213
|
-
*/
|
|
214
|
-
documentId?: string;
|
|
215
|
-
/**
|
|
216
|
-
* Location ID
|
|
217
|
-
*/
|
|
218
|
-
locationId?: number;
|
|
219
|
-
/**
|
|
220
|
-
* Location object
|
|
221
|
-
*/
|
|
222
|
-
location?: Location;
|
|
223
|
-
}
|
|
224
|
-
export declare class NotificationTabConfigItem {
|
|
225
|
-
name?: string;
|
|
226
|
-
enable?: boolean;
|
|
227
|
-
}
|
|
228
|
-
export declare class NotificationTabConfig {
|
|
229
|
-
forYou?: NotificationTabConfigItem;
|
|
230
|
-
documents?: NotificationTabConfigItem;
|
|
231
|
-
all?: NotificationTabConfigItem;
|
|
232
|
-
people?: NotificationTabConfigItem;
|
|
233
|
-
}
|
|
234
|
-
export declare class NotificationInitialSettingsConfig {
|
|
235
|
-
name?: string;
|
|
236
|
-
id: string;
|
|
237
|
-
default?: string;
|
|
238
|
-
enable?: boolean;
|
|
239
|
-
values?: NotificationConfigValue[];
|
|
240
|
-
}
|
|
241
|
-
export declare class NotificationConfigValue {
|
|
242
|
-
name?: string;
|
|
243
|
-
id: NotificationSettingsItemType;
|
|
244
|
-
}
|
|
245
|
-
export declare class NotificationSettingsConfig {
|
|
246
|
-
[key: string]: NotificationSettingsItemType;
|
|
247
|
-
}
|
|
248
|
-
export interface NotificationsDocConfig {
|
|
249
|
-
inbox: 'ALL' | 'NONE' | 'MINE';
|
|
250
|
-
email: 'ALL' | 'NONE' | 'MINE';
|
|
251
|
-
[key: string]: string;
|
|
252
|
-
}
|
|
253
|
-
export interface GetNotificationsDataQuery {
|
|
254
|
-
type?: 'all' | 'forYou' | 'documents';
|
|
255
129
|
}
|
|
@@ -38,10 +38,6 @@ export declare class PresenceUser {
|
|
|
38
38
|
* This is the color on the avatar border and live cursor, if these features are enabled.
|
|
39
39
|
*/
|
|
40
40
|
color?: string;
|
|
41
|
-
/**
|
|
42
|
-
* This is the color on the avatar text.
|
|
43
|
-
*/
|
|
44
|
-
textColor?: string;
|
|
45
41
|
/**
|
|
46
42
|
* Server Timestamp.
|
|
47
43
|
*
|
|
@@ -80,7 +76,4 @@ export declare class PresenceUser {
|
|
|
80
76
|
*/
|
|
81
77
|
isAnonymous?: boolean;
|
|
82
78
|
pageInfo: PageInfo;
|
|
83
|
-
initial?: string;
|
|
84
|
-
isTabAway?: boolean;
|
|
85
|
-
isUserIdle?: boolean;
|
|
86
79
|
}
|
|
@@ -1,24 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RecorderBoundedScaleRange } from "src/models";
|
|
2
2
|
import { Attachment } from "./attachment.model";
|
|
3
|
-
import { BaseMetadata } from "./base-metadata.data.model";
|
|
4
3
|
import { CursorPosition } from "./cursor-position.data.model";
|
|
5
4
|
import { Location } from "./location.model";
|
|
6
5
|
import { PageInfo } from "./page-info.model";
|
|
7
6
|
import { TargetElement } from "./target-element.data.model";
|
|
8
7
|
import { Transcription } from "./transcription.data.model";
|
|
9
|
-
import {
|
|
8
|
+
import { User } from "./user.data.model";
|
|
10
9
|
export declare class RecorderAnnotation {
|
|
11
|
-
context?: Context;
|
|
12
10
|
/**
|
|
13
11
|
* Unique identifier for the recorder pin annotation.
|
|
14
12
|
*
|
|
15
13
|
* Auto generated.
|
|
16
14
|
*/
|
|
17
15
|
annotationId: string;
|
|
18
|
-
/**
|
|
19
|
-
* Connected comment annotation id of reaction annotation
|
|
20
|
-
*/
|
|
21
|
-
commentAnnotationId?: string;
|
|
22
16
|
/**
|
|
23
17
|
* The user who created this recorder pin annotation.
|
|
24
18
|
*
|
|
@@ -94,8 +88,8 @@ export declare class RecorderAnnotation {
|
|
|
94
88
|
*/
|
|
95
89
|
location?: Location | null;
|
|
96
90
|
type?: string;
|
|
97
|
-
recordingType:
|
|
98
|
-
mode:
|
|
91
|
+
recordingType: string;
|
|
92
|
+
mode: 'floating' | 'thread';
|
|
99
93
|
approved?: boolean;
|
|
100
94
|
/**
|
|
101
95
|
* Attachment object of recorded media
|
|
@@ -124,116 +118,30 @@ export declare class RecorderAnnotation {
|
|
|
124
118
|
* Transcription of the recorded media
|
|
125
119
|
*/
|
|
126
120
|
transcription?: Transcription;
|
|
127
|
-
/**
|
|
128
|
-
* Waveform data for the annotation
|
|
129
|
-
*/
|
|
130
|
-
waveformData?: number[];
|
|
131
|
-
/**
|
|
132
|
-
* Display name for the annotation
|
|
133
|
-
*/
|
|
134
|
-
displayName?: string;
|
|
135
|
-
metadata?: RecorderMetadata;
|
|
136
121
|
/**
|
|
137
122
|
* Current version of the recording edit
|
|
138
123
|
*/
|
|
139
124
|
latestVersion?: number;
|
|
140
125
|
/**
|
|
141
126
|
* History of all editing versions of this recording
|
|
142
|
-
* Maps version number to version data
|
|
143
127
|
*/
|
|
144
|
-
recordingEditVersions?: {
|
|
145
|
-
[key: number]: RecorderAnnotationEditVersion;
|
|
146
|
-
};
|
|
147
|
-
/**
|
|
148
|
-
* URLs for individual uploaded chunks
|
|
149
|
-
*/
|
|
150
|
-
chunkUrls?: {
|
|
151
|
-
[key: number]: string;
|
|
152
|
-
};
|
|
128
|
+
recordingEditVersions?: { [key: number]: RecorderAnnotationEditVersion };
|
|
153
129
|
}
|
|
130
|
+
|
|
154
131
|
export interface RecorderAnnotationEditVersion {
|
|
155
132
|
from?: User;
|
|
156
133
|
createdAt?: Date;
|
|
157
134
|
attachment?: Attachment | null;
|
|
158
135
|
attachments?: Attachment[];
|
|
159
|
-
recordedTime?: {
|
|
160
|
-
duration?: number;
|
|
161
|
-
display?: string;
|
|
162
|
-
} | null;
|
|
136
|
+
recordedTime?: { duration?: number, display?: string } | null;
|
|
163
137
|
transcription?: Transcription;
|
|
164
138
|
waveformData?: number[];
|
|
165
139
|
displayName?: string;
|
|
166
140
|
boundedTrimRanges?: RecorderBoundedTrimRange[];
|
|
167
141
|
boundedScaleRanges?: RecorderBoundedScaleRange[];
|
|
168
142
|
}
|
|
143
|
+
|
|
169
144
|
export interface RecorderBoundedTrimRange {
|
|
170
145
|
start: number;
|
|
171
146
|
end: number;
|
|
172
|
-
}
|
|
173
|
-
export interface RecorderBoundedScaleRange {
|
|
174
|
-
start: number;
|
|
175
|
-
end: number;
|
|
176
|
-
zoomInDuration?: number;
|
|
177
|
-
holdDuration?: number;
|
|
178
|
-
zoomOutDuration?: number;
|
|
179
|
-
zoomFactor?: number;
|
|
180
|
-
centerX?: number;
|
|
181
|
-
centerY?: number;
|
|
182
|
-
topLeftX?: number;
|
|
183
|
-
topLeftY?: number;
|
|
184
|
-
topLeftXPixels?: number;
|
|
185
|
-
topLeftYPixels?: number;
|
|
186
|
-
}
|
|
187
|
-
export interface RecorderEditRange {
|
|
188
|
-
trimRanges: RecorderBoundedTrimRange[];
|
|
189
|
-
scaleRanges: RecorderBoundedScaleRange[];
|
|
190
|
-
}
|
|
191
|
-
export declare class RecorderMetadata extends BaseMetadata {
|
|
192
|
-
[key: string]: any;
|
|
193
|
-
}
|
|
194
|
-
declare class RecorderDataTranscriptSegment {
|
|
195
|
-
startTime: string;
|
|
196
|
-
endTime: string;
|
|
197
|
-
startTimeInSeconds: number;
|
|
198
|
-
endTimeInSeconds: number;
|
|
199
|
-
text: string;
|
|
200
|
-
}
|
|
201
|
-
declare class RecorderDataTranscription {
|
|
202
|
-
transcriptSegments?: RecorderDataTranscriptSegment[];
|
|
203
|
-
vttFileUrl?: string;
|
|
204
|
-
contentSummary?: string;
|
|
205
|
-
}
|
|
206
|
-
declare class RecorderDataAsset {
|
|
207
|
-
version?: number;
|
|
208
|
-
url: string;
|
|
209
|
-
mimeType?: string;
|
|
210
|
-
fileName?: string;
|
|
211
|
-
/** File size in bytes */
|
|
212
|
-
fileSizeInBytes?: number;
|
|
213
|
-
/**
|
|
214
|
-
* The format/extension of the file
|
|
215
|
-
* @example 'mp3', 'mp4', 'webm'
|
|
216
|
-
*/
|
|
217
|
-
fileFormat?: RecorderFileFormat;
|
|
218
|
-
thumbnailUrl?: string;
|
|
219
|
-
transcription: RecorderDataTranscription;
|
|
220
|
-
}
|
|
221
|
-
export declare class RecorderData {
|
|
222
|
-
recorderId: string;
|
|
223
|
-
from?: User | null;
|
|
224
|
-
metadata?: RecorderMetadata;
|
|
225
|
-
assets: RecorderDataAsset[];
|
|
226
|
-
assetsAllVersions: RecorderDataAsset[];
|
|
227
|
-
transcription: RecorderDataTranscription;
|
|
228
|
-
}
|
|
229
|
-
export interface RecorderRequestQuery {
|
|
230
|
-
recorderIds: string[];
|
|
231
|
-
}
|
|
232
|
-
export interface GetRecordingDataResponse {
|
|
233
|
-
data: Record<string, RecorderData> | null;
|
|
234
|
-
}
|
|
235
|
-
export interface GetRecordingsResponse extends RecorderData {
|
|
236
|
-
}
|
|
237
|
-
export interface DeleteRecordingsResponse extends RecorderData {
|
|
238
|
-
}
|
|
239
|
-
export {};
|
|
147
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Observable } from "rxjs";
|
|
2
|
-
import { RecorderType } from "../../utils/enums";
|
|
3
2
|
export declare class RecorderConfig {
|
|
4
3
|
type: {
|
|
5
4
|
audio?: boolean;
|
|
@@ -27,7 +26,7 @@ export declare class RecorderInitData {
|
|
|
27
26
|
/**
|
|
28
27
|
* Type of media recorder, possible values are 'audio', 'video' and 'screen'
|
|
29
28
|
*/
|
|
30
|
-
type:
|
|
29
|
+
type: 'audio' | 'video' | 'screen';
|
|
31
30
|
/**
|
|
32
31
|
* Observable of recorded raw data.
|
|
33
32
|
*/
|
|
@@ -45,7 +44,7 @@ export declare class RecordedRawData {
|
|
|
45
44
|
/**
|
|
46
45
|
* Type of recorded data, possible values are 'audio' and 'video'
|
|
47
46
|
*/
|
|
48
|
-
type:
|
|
47
|
+
type: 'audio' | 'video' | 'screen';
|
|
49
48
|
/**
|
|
50
49
|
* Base64 encoded string of thumbnail image of one frame of recorded video
|
|
51
50
|
*/
|
|
@@ -57,12 +56,6 @@ export declare class RecordedRawData {
|
|
|
57
56
|
duration?: number;
|
|
58
57
|
display?: string;
|
|
59
58
|
} | null;
|
|
60
|
-
/**
|
|
61
|
-
* Array of URLs for individual uploaded chunks
|
|
62
|
-
*/
|
|
63
|
-
chunkUrls?: {
|
|
64
|
-
[key: number]: string;
|
|
65
|
-
};
|
|
66
59
|
}
|
|
67
60
|
export declare class RecordedData {
|
|
68
61
|
/**
|
|
@@ -85,27 +78,5 @@ export declare class RecordedData {
|
|
|
85
78
|
* URL of the hosted website to open video in new tab
|
|
86
79
|
*/
|
|
87
80
|
videoPlayerUrl?: string;
|
|
88
|
-
/**
|
|
89
|
-
* URLs for individual uploaded chunks
|
|
90
|
-
*/
|
|
91
|
-
chunkUrls?: {
|
|
92
|
-
[key: number]: string;
|
|
93
|
-
};
|
|
94
81
|
getThumbnailTag: (url?: string) => string;
|
|
95
82
|
}
|
|
96
|
-
export declare class RecorderQualityConstraintsOptions {
|
|
97
|
-
video?: MediaTrackConstraints;
|
|
98
|
-
audio?: MediaTrackConstraints;
|
|
99
|
-
}
|
|
100
|
-
export declare class RecorderQualityConstraints {
|
|
101
|
-
safari?: RecorderQualityConstraintsOptions;
|
|
102
|
-
other?: RecorderQualityConstraintsOptions;
|
|
103
|
-
}
|
|
104
|
-
export declare class RecorderEncodingOptions {
|
|
105
|
-
safari?: MediaRecorderOptions;
|
|
106
|
-
other?: MediaRecorderOptions;
|
|
107
|
-
}
|
|
108
|
-
export declare class RecorderDevicePermissionOptions {
|
|
109
|
-
audio?: boolean;
|
|
110
|
-
video?: boolean;
|
|
111
|
-
}
|
|
@@ -19,16 +19,4 @@ export declare class Selection {
|
|
|
19
19
|
*/
|
|
20
20
|
targetTextRange?: TargetTextRange | null;
|
|
21
21
|
pageInfo: PageInfo;
|
|
22
|
-
timestamp: number;
|
|
23
|
-
}
|
|
24
|
-
export declare enum UserIndicatorPosition {
|
|
25
|
-
Start = "start",
|
|
26
|
-
End = "end"
|
|
27
|
-
}
|
|
28
|
-
export declare enum UserIndicatorType {
|
|
29
|
-
Avatar = "avatar",
|
|
30
|
-
Label = "label"
|
|
31
|
-
}
|
|
32
|
-
export declare class LiveSelectionData {
|
|
33
|
-
[userIdHash: string]: Selection;
|
|
34
22
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { AnchorRecord } from './anchor-record.data.model';
|
|
2
1
|
export declare class TargetElement {
|
|
3
2
|
/**
|
|
4
3
|
* Xpath of target element
|
|
@@ -20,8 +19,4 @@ export declare class TargetElement {
|
|
|
20
19
|
* Relative left position of cursor on target element
|
|
21
20
|
*/
|
|
22
21
|
leftPercentage: number;
|
|
23
|
-
/**
|
|
24
|
-
* Robust anchor descriptor for the element
|
|
25
|
-
*/
|
|
26
|
-
anchor?: AnchorRecord | null;
|
|
27
22
|
}
|
|
@@ -1,21 +1,8 @@
|
|
|
1
|
-
import { AnchorRecord } from "./anchor-record.data.model";
|
|
2
1
|
export declare class TargetTextRange {
|
|
3
2
|
/**
|
|
4
3
|
* Xpath of common Ancestor Container
|
|
5
4
|
*/
|
|
6
5
|
commonAncestorContainer?: string;
|
|
7
|
-
/**
|
|
8
|
-
* Full xpath of common Ancestor Container
|
|
9
|
-
*/
|
|
10
|
-
commonAncestorContainerFXpath?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Full xpath of common Ancestor Container with class names
|
|
13
|
-
*/
|
|
14
|
-
commonAncestorContainerCFXpath?: string;
|
|
15
|
-
/**
|
|
16
|
-
* Anchor of common Ancestor Container
|
|
17
|
-
*/
|
|
18
|
-
commonAncestorContainerAnchor?: AnchorRecord;
|
|
19
6
|
/**
|
|
20
7
|
* Selected text
|
|
21
8
|
*/
|
|
@@ -26,25 +26,4 @@ export declare class UserContact {
|
|
|
26
26
|
groupId?: string;
|
|
27
27
|
source?: string;
|
|
28
28
|
visibility: 'group' | 'private';
|
|
29
|
-
color?: string;
|
|
30
|
-
textColor?: string;
|
|
31
|
-
initial?: string;
|
|
32
|
-
}
|
|
33
|
-
export declare class SelectedUserContact {
|
|
34
|
-
/**
|
|
35
|
-
* Selected user contact details.
|
|
36
|
-
*/
|
|
37
|
-
contact: UserContact;
|
|
38
|
-
/**
|
|
39
|
-
* Is user part of organization contact.
|
|
40
|
-
*/
|
|
41
|
-
isOrganizationContact: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* Is user part of document contact.
|
|
44
|
-
*/
|
|
45
|
-
isDocumentContact: boolean;
|
|
46
|
-
/**
|
|
47
|
-
* Document access type.
|
|
48
|
-
*/
|
|
49
|
-
documentAccessType: string;
|
|
50
29
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { BaseMetadata } from "./base-metadata.data.model";
|
|
2
1
|
import { UserContact } from "./user-contact.data.model";
|
|
3
2
|
import { UserRole } from "./user-role.data.model";
|
|
4
3
|
import { User } from "./user.data.model";
|
|
@@ -11,16 +10,6 @@ export declare class UserIAM {
|
|
|
11
10
|
* The user's contact details
|
|
12
11
|
*/
|
|
13
12
|
user: UserContact;
|
|
14
|
-
accessFields?: string[];
|
|
15
|
-
documentIds?: string[];
|
|
16
|
-
viewerDocumentIds?: string[];
|
|
17
|
-
folderIds?: string[];
|
|
18
|
-
viewerFolderIds?: string[];
|
|
19
|
-
organizationIds?: string[];
|
|
20
|
-
viewerOrganizationIds?: string[];
|
|
21
|
-
documentIdsCount?: number;
|
|
22
|
-
folderIdsCount?: number;
|
|
23
|
-
organizationIdsCount?: number;
|
|
24
13
|
/**
|
|
25
14
|
* The user's role in the document
|
|
26
15
|
*/
|
|
@@ -41,8 +30,4 @@ export declare class UserIAM {
|
|
|
41
30
|
* Date when this user was updated
|
|
42
31
|
*/
|
|
43
32
|
updatedDate?: any;
|
|
44
|
-
groups?: {
|
|
45
|
-
[groupId: string]: boolean;
|
|
46
|
-
};
|
|
47
|
-
metadata?: BaseMetadata;
|
|
48
33
|
}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { SetDocumentsContext } from "./document.data.model";
|
|
2
1
|
import { UserContact } from "./user-contact.data.model";
|
|
3
|
-
import { UserPermissionAccessRole } from "./user-resolver.data.model";
|
|
4
2
|
export declare class User {
|
|
5
3
|
/**
|
|
6
4
|
* Unique user identifier that you use to identify your user.
|
|
@@ -12,7 +10,6 @@ export declare class User {
|
|
|
12
10
|
* Default: Random avatar name.
|
|
13
11
|
*/
|
|
14
12
|
name?: string;
|
|
15
|
-
clientUserName?: string;
|
|
16
13
|
/**
|
|
17
14
|
* Your user's display picture URL.
|
|
18
15
|
*
|
|
@@ -40,8 +37,6 @@ export declare class User {
|
|
|
40
37
|
* Original groupId provided by the user.
|
|
41
38
|
*/
|
|
42
39
|
clientGroupId?: string;
|
|
43
|
-
organizationId?: string;
|
|
44
|
-
clientOrganizationId?: string;
|
|
45
40
|
/**
|
|
46
41
|
* Auto generated unique user id that is linked with your app's user ID.
|
|
47
42
|
* This is needed by us for internal processing.
|
|
@@ -52,10 +47,6 @@ export declare class User {
|
|
|
52
47
|
* This is the color on the avatar border and live cursor, if these features are enabled.
|
|
53
48
|
*/
|
|
54
49
|
color?: string;
|
|
55
|
-
/**
|
|
56
|
-
* This is the color on the avatar text.
|
|
57
|
-
*/
|
|
58
|
-
textColor?: string;
|
|
59
50
|
/**
|
|
60
51
|
* User type.
|
|
61
52
|
*
|
|
@@ -74,7 +65,6 @@ export declare class User {
|
|
|
74
65
|
* Guest user
|
|
75
66
|
*/
|
|
76
67
|
isGuest?: boolean;
|
|
77
|
-
initial?: string;
|
|
78
68
|
}
|
|
79
69
|
export declare class Options {
|
|
80
70
|
/**
|
|
@@ -96,76 +86,4 @@ export declare class Options {
|
|
|
96
86
|
* Pass the auth token of the user.
|
|
97
87
|
*/
|
|
98
88
|
authToken?: string;
|
|
99
|
-
/**
|
|
100
|
-
* If you want to force re-login the user.
|
|
101
|
-
*/
|
|
102
|
-
forceReset?: boolean;
|
|
103
|
-
/**
|
|
104
|
-
* If you want to throw an error if the user is not authenticated.
|
|
105
|
-
*/
|
|
106
|
-
throwError?: boolean;
|
|
107
|
-
}
|
|
108
|
-
export interface AuthRetryConfig {
|
|
109
|
-
retryCount?: number;
|
|
110
|
-
retryDelay?: number;
|
|
111
|
-
}
|
|
112
|
-
export interface Context {
|
|
113
|
-
access: {
|
|
114
|
-
[key: string]: string | number;
|
|
115
|
-
};
|
|
116
|
-
accessFields?: Array<string>;
|
|
117
|
-
}
|
|
118
|
-
export interface VeltAuthProvider {
|
|
119
|
-
user: User;
|
|
120
|
-
options?: Options;
|
|
121
|
-
retryConfig?: AuthRetryConfig;
|
|
122
|
-
generateToken?: () => Promise<string>;
|
|
123
|
-
onError?: (err: unknown) => void;
|
|
124
|
-
}
|
|
125
|
-
export declare enum RevokeAccessOnType {
|
|
126
|
-
DOCUMENT_UNSET = "document_unset",
|
|
127
|
-
USER_LOGOUT = "user_logout"
|
|
128
|
-
}
|
|
129
|
-
export declare enum PermissionSource {
|
|
130
|
-
SET_DOCUMENTS = "setDocuments",
|
|
131
|
-
IDENTIFY = "identify",
|
|
132
|
-
GET_NOTIFICATIONS = "getNotifications",
|
|
133
|
-
SET_NOTIFICATIONS = "setNotifications",
|
|
134
|
-
REVOKE_ACCESS_ON_USER_LOGOUT = "revokeAccessOnUserLogout",
|
|
135
|
-
REVOKE_ACCESS_ON_DOCUMENT_UNSET = "revokeAccessOnDocumentUnset"
|
|
136
|
-
}
|
|
137
|
-
export interface RevokeAccessOn {
|
|
138
|
-
type: RevokeAccessOnType;
|
|
139
|
-
revokeOrganizationAccess?: boolean;
|
|
140
|
-
}
|
|
141
|
-
export interface VeltPermissionProvider {
|
|
142
|
-
retryConfig?: AuthRetryConfig;
|
|
143
|
-
isContextEnabled?: boolean;
|
|
144
|
-
revokeAccessOn?: RevokeAccessOn[];
|
|
145
|
-
forceRefresh?: boolean;
|
|
146
|
-
}
|
|
147
|
-
export declare enum PermissionResourceType {
|
|
148
|
-
FOLDER = "folder",
|
|
149
|
-
DOCUMENT = "document",
|
|
150
|
-
ORGANIZATION = "organization",
|
|
151
|
-
CONTEXT = "context"
|
|
152
|
-
}
|
|
153
|
-
export interface PermissionQuery {
|
|
154
|
-
userId: string;
|
|
155
|
-
resource: {
|
|
156
|
-
id: string;
|
|
157
|
-
type: PermissionResourceType;
|
|
158
|
-
source: PermissionSource;
|
|
159
|
-
organizationId: string;
|
|
160
|
-
context?: Context | SetDocumentsContext;
|
|
161
|
-
};
|
|
162
|
-
}
|
|
163
|
-
export interface PermissionResult {
|
|
164
|
-
userId: string;
|
|
165
|
-
resourceId: string;
|
|
166
|
-
organizationId: string;
|
|
167
|
-
type: PermissionResourceType;
|
|
168
|
-
accessRole?: UserPermissionAccessRole;
|
|
169
|
-
expiresAt?: number;
|
|
170
|
-
hasAccess: boolean;
|
|
171
89
|
}
|