@veltdev/sdk 4.5.0-beta.2 → 4.5.0-beta.20
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 +39 -6
- package/app/models/data/comment-annotation.data.model.d.ts +7 -0
- package/app/models/data/comment-sidebar-config.model.d.ts +5 -0
- package/app/models/data/config.data.model.d.ts +4 -0
- package/app/models/data/document-paths.data.model.d.ts +8 -0
- package/app/models/data/document.data.model.d.ts +1 -0
- package/app/models/data/location.model.d.ts +10 -0
- package/app/models/data/notification.model.d.ts +20 -1
- package/app/models/data/notifications-events.data.model.d.ts +9 -0
- package/app/models/data/presence-actions.data.model.d.ts +5 -0
- package/app/models/data/presence-events.data.model.d.ts +8 -0
- package/app/models/data/recorder-annotation.data.model.d.ts +5 -0
- package/app/models/data/recorder-events.data.model.d.ts +10 -0
- package/app/models/data/recorder.model.d.ts +12 -0
- package/app/models/data/resolver.data.model.d.ts +6 -0
- package/app/models/data/user-resolver.data.model.d.ts +2 -0
- package/app/models/element/comment-element.model.d.ts +21 -0
- package/app/models/element/notification-element.model.d.ts +61 -1
- package/app/models/element/presence-element.model.d.ts +15 -1
- package/app/models/element/recorder-element.model.d.ts +42 -2
- package/app/utils/constants.d.ts +1 -0
- package/app/utils/enums.d.ts +17 -1
- package/models.d.ts +2 -0
- package/package.json +1 -1
- package/velt.js +93 -93
|
@@ -31,6 +31,7 @@ import { FetchDocumentsResponse, FetchFoldersResponse } from "../models/data/doc
|
|
|
31
31
|
import { UserDataProvider } from "../models/data/user-resolver.data.model";
|
|
32
32
|
import { VeltDataProvider } from "../models/data/provider.data.model";
|
|
33
33
|
import { VeltResetButtonStateConfig } from "../models/data/button.data.model";
|
|
34
|
+
import { SetLocationsRequestOptions } from "../models/data/location.model";
|
|
34
35
|
|
|
35
36
|
export declare class Snippyly {
|
|
36
37
|
constructor();
|
|
@@ -48,17 +49,22 @@ export declare class Snippyly {
|
|
|
48
49
|
* @param id unique document ID
|
|
49
50
|
* @param documentMetadata Document Metadata
|
|
50
51
|
*/
|
|
51
|
-
setDocument: (id: string, documentMetadata?: DocumentMetadata) => void
|
|
52
|
+
setDocument: (id: string, documentMetadata?: DocumentMetadata) => Promise<void>;
|
|
52
53
|
/**
|
|
53
54
|
* Tell us the unique ID of the current document/resource on which you want to enable collaboration.
|
|
54
55
|
* @param id unique document ID
|
|
55
56
|
* @deprecated This method is deprecated. Use `setDocuments` method instead.
|
|
56
57
|
*/
|
|
57
|
-
setDocumentId: (id: string) => void
|
|
58
|
+
setDocumentId: (id: string) => Promise<void>;
|
|
58
59
|
/**
|
|
59
60
|
* To set multiple documents
|
|
60
61
|
*/
|
|
61
|
-
setDocuments: (documents: Document[], options?: SetDocumentsRequestOptions) => void
|
|
62
|
+
setDocuments: (documents: Document[], options?: SetDocumentsRequestOptions) => Promise<void>;
|
|
63
|
+
/**
|
|
64
|
+
* To set the root document
|
|
65
|
+
* @param document Document object
|
|
66
|
+
*/
|
|
67
|
+
setRootDocument: (document: Document) => Promise<void>;
|
|
62
68
|
/**
|
|
63
69
|
* To unset the document id
|
|
64
70
|
* @deprecated This method is deprecated. Use `unsetDocuments` method instead.
|
|
@@ -100,12 +106,39 @@ export declare class Snippyly {
|
|
|
100
106
|
* @param params Location
|
|
101
107
|
* @param appendLocation Append location to existing location
|
|
102
108
|
*/
|
|
103
|
-
setLocation: (params: Location, appendLocation?: boolean) => void
|
|
109
|
+
setLocation: (params: Location, appendLocation?: boolean) => Promise<void>;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* To set the root location
|
|
113
|
+
* @param location Location object
|
|
114
|
+
*/
|
|
115
|
+
setRootLocation: (location: Location) => Promise<void>;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* To set multiple locations
|
|
119
|
+
* @param locations Location objects
|
|
120
|
+
* @param options Set locations options
|
|
121
|
+
*/
|
|
122
|
+
setLocations: (locations: Location[], options?: SetLocationsRequestOptions) => Promise<void>;
|
|
123
|
+
|
|
104
124
|
/**
|
|
105
125
|
* To remove location from a User
|
|
106
126
|
* @param location Location
|
|
107
127
|
*/
|
|
108
128
|
removeLocation: (location?: Location) => void;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* To remove multiple locations
|
|
132
|
+
* @param locations Location objects
|
|
133
|
+
*/
|
|
134
|
+
removeLocations: (locations?: Location[]) => void;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* To remove location ids
|
|
138
|
+
* @param locationIds Location ids
|
|
139
|
+
*/
|
|
140
|
+
unsetLocationIds: (locationIds?: string[]) => void;
|
|
141
|
+
|
|
109
142
|
/**
|
|
110
143
|
* To exclude data of specific location ids
|
|
111
144
|
* @param ids Location Ids
|
|
@@ -211,7 +244,7 @@ export declare class Snippyly {
|
|
|
211
244
|
* @param location Location object
|
|
212
245
|
* @deprecated This method is deprecated and will be removed in next release. Use `setLocation` method with `appendLocation: true` instead.
|
|
213
246
|
*/
|
|
214
|
-
addLocation: (location: any) => any
|
|
247
|
+
addLocation: (location: any) => Promise<any>;
|
|
215
248
|
/**
|
|
216
249
|
* To set the dark mode of Velt components.
|
|
217
250
|
* @param value {boolean} true/false
|
|
@@ -315,5 +348,5 @@ export declare class Snippyly {
|
|
|
315
348
|
/**
|
|
316
349
|
* To reset the button toggle map.
|
|
317
350
|
*/
|
|
318
|
-
|
|
351
|
+
resetVeltButtonState: (config?: VeltResetButtonStateConfig) => void;
|
|
319
352
|
}
|
|
@@ -164,6 +164,10 @@ export declare class CommentAnnotation {
|
|
|
164
164
|
* Custom context data provided by the user
|
|
165
165
|
*/
|
|
166
166
|
context?: any;
|
|
167
|
+
/**
|
|
168
|
+
* Context id generated from context data
|
|
169
|
+
*/
|
|
170
|
+
contextId?: string;
|
|
167
171
|
iam: CommentIAMConfig;
|
|
168
172
|
isPageAnnotation?: boolean;
|
|
169
173
|
targetInlineCommentElementId?: string;
|
|
@@ -244,3 +248,6 @@ export declare class CommentAnnotationSubscribedGroups {
|
|
|
244
248
|
export declare class UpdateContextConfig {
|
|
245
249
|
merge?: boolean;
|
|
246
250
|
}
|
|
251
|
+
export interface ContextOptions {
|
|
252
|
+
partialMatch?: boolean;
|
|
253
|
+
}
|
|
@@ -10,6 +10,7 @@ declare class FilterTypeConfig {
|
|
|
10
10
|
}
|
|
11
11
|
export declare class CommentSidebarFilterConfig {
|
|
12
12
|
location?: FilterTypeConfig;
|
|
13
|
+
document?: FilterTypeConfig;
|
|
13
14
|
people?: FilterTypeConfig;
|
|
14
15
|
assigned?: FilterTypeConfig;
|
|
15
16
|
tagged?: FilterTypeConfig;
|
|
@@ -25,6 +26,10 @@ export declare class CommentSidebarGroupConfig {
|
|
|
25
26
|
}
|
|
26
27
|
export declare class CommentSidebarFilters {
|
|
27
28
|
location?: Location[];
|
|
29
|
+
document?: {
|
|
30
|
+
id?: string;
|
|
31
|
+
documentName?: string;
|
|
32
|
+
}[];
|
|
28
33
|
people?: {
|
|
29
34
|
userId?: string;
|
|
30
35
|
email?: string;
|
|
@@ -49,6 +49,10 @@ export declare class Config {
|
|
|
49
49
|
* Default: false
|
|
50
50
|
*/
|
|
51
51
|
advancedQueriesDisabled?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* The domain of the API proxy.
|
|
54
|
+
*/
|
|
55
|
+
apiProxyDomain?: string;
|
|
52
56
|
}
|
|
53
57
|
export interface ExtendedFirebaseOptions extends FirebaseOptions {
|
|
54
58
|
storeDbId: string;
|
|
@@ -3,10 +3,18 @@ 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;
|
|
6
10
|
/**
|
|
7
11
|
* Presence path.
|
|
8
12
|
*/
|
|
9
13
|
presence?: string;
|
|
14
|
+
/**
|
|
15
|
+
* User config path.
|
|
16
|
+
*/
|
|
17
|
+
userConfig?: string;
|
|
10
18
|
docs?: string;
|
|
11
19
|
/**
|
|
12
20
|
* Cursor path.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AreaStatus, ArrowStatus, CommentStatus, HuddleActionTypes, NotificationSource, TagStatus, UserActionTypes } from "../../utils/enums";
|
|
1
|
+
import { AreaStatus, ArrowStatus, CommentStatus, HuddleActionTypes, NotificationSettingsItemType, 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,3 +230,22 @@ 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
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
};
|
|
@@ -3,6 +3,14 @@ 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
|
+
}
|
|
6
10
|
export type PresenceEventTypesMap = {
|
|
7
11
|
[PresenceEventTypes.MULTIPLE_USERS_ONLINE]: PresenceMultipleUsersOnlineEvent;
|
|
12
|
+
[PresenceEventTypes.USER_STATE_CHANGE]: PresenceUserStateChangeEvent;
|
|
8
13
|
};
|
|
14
|
+
export interface GetPresenceDataResponse {
|
|
15
|
+
data: PresenceUser[] | null;
|
|
16
|
+
}
|
|
@@ -180,6 +180,8 @@ export interface RecorderBoundedScaleRange {
|
|
|
180
180
|
centerY?: number;
|
|
181
181
|
topLeftX?: number;
|
|
182
182
|
topLeftY?: number;
|
|
183
|
+
topLeftXPixels?: number;
|
|
184
|
+
topLeftYPixels?: number;
|
|
183
185
|
}
|
|
184
186
|
export interface RecorderEditRange {
|
|
185
187
|
trimRanges: RecorderBoundedTrimRange[];
|
|
@@ -213,6 +215,7 @@ declare class RecorderDataAsset {
|
|
|
213
215
|
*/
|
|
214
216
|
fileFormat?: RecorderFileFormat;
|
|
215
217
|
thumbnailUrl?: string;
|
|
218
|
+
transcription: RecorderDataTranscription;
|
|
216
219
|
}
|
|
217
220
|
export declare class RecorderData {
|
|
218
221
|
recorderId: string;
|
|
@@ -230,4 +233,6 @@ export interface GetRecordingDataResponse {
|
|
|
230
233
|
}
|
|
231
234
|
export interface GetRecordingsResponse extends RecorderData {
|
|
232
235
|
}
|
|
236
|
+
export interface DeleteRecordingsResponse extends RecorderData {
|
|
237
|
+
}
|
|
233
238
|
export {};
|
|
@@ -8,6 +8,16 @@ export interface RecordingDeleteEvent extends RecorderData {
|
|
|
8
8
|
}
|
|
9
9
|
export interface RecordingEditDoneEvent extends RecorderData {
|
|
10
10
|
}
|
|
11
|
+
export interface RecordingErrorEvent {
|
|
12
|
+
type: string;
|
|
13
|
+
message: string;
|
|
14
|
+
recorderId?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface RecordingSaveInitiatedEvent {
|
|
17
|
+
annotationId?: string;
|
|
18
|
+
message: string;
|
|
19
|
+
type: 'edit' | 'record';
|
|
20
|
+
}
|
|
11
21
|
export type RecorderEventTypesMap = {
|
|
12
22
|
[RecorderEventTypes.TRANSCRIPTION_DONE]: TranscriptionDoneEvent;
|
|
13
23
|
[RecorderEventTypes.RECORDING_DONE]: RecordingDoneEvent;
|
|
@@ -93,3 +93,15 @@ 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
|
+
export declare class RecorderQualityConstraints {
|
|
101
|
+
safari?: RecorderQualityConstraintsOptions;
|
|
102
|
+
other?: RecorderQualityConstraintsOptions;
|
|
103
|
+
}
|
|
104
|
+
export declare class RecorderEncodingOptions {
|
|
105
|
+
safari?: MediaRecorderOptions;
|
|
106
|
+
other?: MediaRecorderOptions;
|
|
107
|
+
}
|
|
@@ -3,6 +3,12 @@ export interface ResolverConfig {
|
|
|
3
3
|
saveRetryConfig?: RetryConfig;
|
|
4
4
|
deleteRetryConfig?: RetryConfig;
|
|
5
5
|
getRetryConfig?: RetryConfig;
|
|
6
|
+
resolveUsersConfig?: ResolveUsersConfig;
|
|
7
|
+
}
|
|
8
|
+
export interface ResolveUsersConfig {
|
|
9
|
+
organization?: boolean;
|
|
10
|
+
folder?: boolean;
|
|
11
|
+
document?: boolean;
|
|
6
12
|
}
|
|
7
13
|
export interface ResolverResponse<T> {
|
|
8
14
|
data?: T;
|
|
@@ -1140,6 +1140,17 @@ export declare class CommentElement {
|
|
|
1140
1140
|
* To disable draft mode
|
|
1141
1141
|
*/
|
|
1142
1142
|
public disableDraftMode: () => void;
|
|
1143
|
+
|
|
1144
|
+
/**
|
|
1145
|
+
* To enable filter comments on dom
|
|
1146
|
+
*/
|
|
1147
|
+
public enableFilterCommentsOnDom: () => void;
|
|
1148
|
+
|
|
1149
|
+
/**
|
|
1150
|
+
* To disable filter comments on dom
|
|
1151
|
+
*/
|
|
1152
|
+
public disableFilterCommentsOnDom: () => void;
|
|
1153
|
+
|
|
1143
1154
|
constructor();
|
|
1144
1155
|
/**
|
|
1145
1156
|
* Subscribe to comments on the current document.
|
|
@@ -2260,4 +2271,14 @@ export declare class CommentElement {
|
|
|
2260
2271
|
* To disable draft mode
|
|
2261
2272
|
*/
|
|
2262
2273
|
private _disableDraftMode;
|
|
2274
|
+
|
|
2275
|
+
/**
|
|
2276
|
+
* To enable filter comments on dom
|
|
2277
|
+
*/
|
|
2278
|
+
private _enableFilterCommentsOnDom;
|
|
2279
|
+
|
|
2280
|
+
/**
|
|
2281
|
+
* To disable filter comments on dom
|
|
2282
|
+
*/
|
|
2283
|
+
private _disableFilterCommentsOnDom;
|
|
2263
2284
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
|
|
3
|
-
import { Notification, NotificationTabConfig } from "../data/notification.model";
|
|
3
|
+
import { Notification, NotificationTabConfig, NotificationSettingsConfig, NotificationInitialSettingsConfig } from "../data/notification.model";
|
|
4
4
|
|
|
5
5
|
export declare class NotificationElement {
|
|
6
6
|
/**
|
|
@@ -58,6 +58,36 @@ export declare class NotificationElement {
|
|
|
58
58
|
*/
|
|
59
59
|
markNotificationAsReadById: (notificationId: string) => void;
|
|
60
60
|
|
|
61
|
+
/**
|
|
62
|
+
* To set settings
|
|
63
|
+
*/
|
|
64
|
+
setSettings: (config: NotificationSettingsConfig) => void;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* To get settings
|
|
68
|
+
*/
|
|
69
|
+
getSettings: () => NotificationSettingsConfig;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* To mute all notifications
|
|
73
|
+
*/
|
|
74
|
+
muteAllNotifications: () => void;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* To enable settings
|
|
78
|
+
*/
|
|
79
|
+
enableSettings: () => void;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* To disable settings
|
|
83
|
+
*/
|
|
84
|
+
disableSettings: () => void;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* To set settings initial config
|
|
88
|
+
*/
|
|
89
|
+
setSettingsInitialConfig: (settings: NotificationInitialSettingsConfig[]) => void;
|
|
90
|
+
|
|
61
91
|
constructor();
|
|
62
92
|
|
|
63
93
|
/**
|
|
@@ -114,4 +144,34 @@ export declare class NotificationElement {
|
|
|
114
144
|
* To mark notification as read by id
|
|
115
145
|
*/
|
|
116
146
|
private _markNotificationAsReadById;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* To set settings
|
|
150
|
+
*/
|
|
151
|
+
private _setSettings;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* To get settings
|
|
155
|
+
*/
|
|
156
|
+
private _getSettings;
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* To mute all notifications
|
|
160
|
+
*/
|
|
161
|
+
private _muteAllNotifications;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* To enable settings
|
|
165
|
+
*/
|
|
166
|
+
private _enableSettings;
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* To disable settings
|
|
170
|
+
*/
|
|
171
|
+
private _disableSettings;
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* To set settings initial config
|
|
175
|
+
*/
|
|
176
|
+
private _setSettingsInitialConfig;
|
|
117
177
|
}
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
import { Observable } from "rxjs";
|
|
3
3
|
import { PresenceUser } from "../data/presence-user.data.model";
|
|
4
|
-
import { PresenceEventTypesMap } from "../data/presence-events.data.model";
|
|
4
|
+
import { GetPresenceDataResponse, PresenceEventTypesMap } from "../data/presence-events.data.model";
|
|
5
|
+
import { PresenceRequestQuery } from "../data/presence-actions.data.model";
|
|
6
|
+
|
|
5
7
|
export declare class PresenceElement {
|
|
6
8
|
|
|
7
9
|
/**
|
|
8
10
|
* Subscribe to a list of all online users who are either active or inactive on the current document.
|
|
9
11
|
*
|
|
10
12
|
* Returns Observable<PresenceUser[] | null>.
|
|
13
|
+
* @deprecated This method is deprecated. Use `getData` method instead.
|
|
11
14
|
*/
|
|
12
15
|
getOnlineUsersOnCurrentDocument: () => Observable<PresenceUser[] | null>;
|
|
13
16
|
|
|
@@ -38,6 +41,11 @@ export declare class PresenceElement {
|
|
|
38
41
|
*/
|
|
39
42
|
disableSelf: () => void;
|
|
40
43
|
|
|
44
|
+
/**
|
|
45
|
+
* To get the presence data
|
|
46
|
+
*/
|
|
47
|
+
getData: (query?: PresenceRequestQuery) => Observable<GetPresenceDataResponse>;
|
|
48
|
+
|
|
41
49
|
/**
|
|
42
50
|
* Subscribe to presence events
|
|
43
51
|
*/
|
|
@@ -47,6 +55,7 @@ export declare class PresenceElement {
|
|
|
47
55
|
* Subscribe to a list of all online users who are either active or inactive on the current document.
|
|
48
56
|
*
|
|
49
57
|
* Returns Observable<PresenceUser[] | null>.
|
|
58
|
+
* @deprecated This method is deprecated. Use `getData` method instead.
|
|
50
59
|
*/
|
|
51
60
|
private _getOnlineUsersOnCurrentDocument;
|
|
52
61
|
|
|
@@ -77,6 +86,11 @@ export declare class PresenceElement {
|
|
|
77
86
|
*/
|
|
78
87
|
private _disableSelf;
|
|
79
88
|
|
|
89
|
+
/**
|
|
90
|
+
* To get the presence data
|
|
91
|
+
*/
|
|
92
|
+
private _getData;
|
|
93
|
+
|
|
80
94
|
/**
|
|
81
95
|
* Subscribe to presence events
|
|
82
96
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
import { Observable } from "rxjs";
|
|
3
|
-
import { RecorderData, RecorderRequestQuery, GetRecordingDataResponse, GetRecordingsResponse } from "../data/recorder-annotation.data.model";
|
|
3
|
+
import { RecorderData, RecorderRequestQuery, GetRecordingDataResponse, GetRecordingsResponse, DeleteRecordingsResponse } from "../data/recorder-annotation.data.model";
|
|
4
4
|
import { RecorderEventTypesMap } from "../data/recorder-events.data.model";
|
|
5
|
-
import { RecordedData } from "../data/recorder.model";
|
|
5
|
+
import { RecordedData, RecorderQualityConstraints, RecorderEncodingOptions } from "../data/recorder.model";
|
|
6
6
|
|
|
7
7
|
export declare class RecorderElement {
|
|
8
8
|
|
|
@@ -69,6 +69,26 @@ export declare class RecorderElement {
|
|
|
69
69
|
*/
|
|
70
70
|
fetchRecordings: (query?: RecorderRequestQuery) => Promise<GetRecordingsResponse[]>;
|
|
71
71
|
|
|
72
|
+
/**
|
|
73
|
+
* To delete recordings
|
|
74
|
+
*/
|
|
75
|
+
deleteRecordings: (query?: RecorderRequestQuery) => Promise<DeleteRecordingsResponse[]>;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* To set recording quality constraints
|
|
79
|
+
*/
|
|
80
|
+
setRecordingQualityConstraints: (constraints: RecorderQualityConstraints) => void;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* To set recording encoding options
|
|
84
|
+
*/
|
|
85
|
+
setRecordingEncodingOptions: (options: RecorderEncodingOptions) => void;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* To download latest video
|
|
89
|
+
*/
|
|
90
|
+
downloadLatestVideo: (recorderId: string) => Promise<boolean>;
|
|
91
|
+
|
|
72
92
|
constructor();
|
|
73
93
|
|
|
74
94
|
private _initRecording;
|
|
@@ -133,4 +153,24 @@ export declare class RecorderElement {
|
|
|
133
153
|
* To fetch recordings
|
|
134
154
|
*/
|
|
135
155
|
private _fetchRecordings;
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* To delete recordings
|
|
159
|
+
*/
|
|
160
|
+
private _deleteRecordings;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* To set recording quality constraints
|
|
164
|
+
*/
|
|
165
|
+
private _setRecordingQualityConstraints;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* To set recording encoding options
|
|
169
|
+
*/
|
|
170
|
+
private _setRecordingEncodingOptions;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* To download latest video
|
|
174
|
+
*/
|
|
175
|
+
private _downloadLatestVideo;
|
|
136
176
|
}
|
package/app/utils/constants.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export declare class Constants {
|
|
|
12
12
|
static FIREBASE_PARTIAL_PATH_ORGANIZATIONS: string;
|
|
13
13
|
static FIREBASE_PARTIAL_PATH_FOLDERS: string;
|
|
14
14
|
static FIREBASE_PARTIAL_PATH_DOCS: string;
|
|
15
|
+
static FIREBASE_PARTIAL_PATH_DOCUMENT_CONFIGURATIONS: string;
|
|
15
16
|
static FIREBASE_PARTIAL_PATH_PRESENCE: string;
|
|
16
17
|
static FIREBASE_PARTIAL_PATH_ORGANIZATION_USERS: string;
|
|
17
18
|
static FIREBASE_PARTIAL_PATH_FOLDER_USERS: string;
|
package/app/utils/enums.d.ts
CHANGED
|
@@ -60,10 +60,13 @@ export declare const RecorderEventTypes: {
|
|
|
60
60
|
readonly RECORDING_DONE: "recordingDone";
|
|
61
61
|
readonly RECORDING_EDIT_DONE: "recordingEditDone";
|
|
62
62
|
readonly DELETE_RECORDING: "deleteRecording";
|
|
63
|
+
readonly ERROR: "error";
|
|
64
|
+
readonly RECORDING_SAVE_INITIATED: "recordingSaveInitiated";
|
|
63
65
|
};
|
|
64
66
|
export declare const CoreEventTypes: {
|
|
65
67
|
readonly VELT_BUTTON_CLICK: "veltButtonClick";
|
|
66
68
|
readonly USER_UPDATE: "userUpdate";
|
|
69
|
+
readonly INIT_UPDATE: "initUpdate";
|
|
67
70
|
readonly DOCUMENT_INIT: "documentInit";
|
|
68
71
|
readonly ERROR: "error";
|
|
69
72
|
};
|
|
@@ -78,12 +81,17 @@ export declare const LiveStateSyncEventTypes: {
|
|
|
78
81
|
};
|
|
79
82
|
export declare const PresenceEventTypes: {
|
|
80
83
|
readonly MULTIPLE_USERS_ONLINE: "multipleUsersOnline";
|
|
84
|
+
readonly USER_STATE_CHANGE: "userStateChange";
|
|
85
|
+
};
|
|
86
|
+
export declare const NotificationEventTypes: {
|
|
87
|
+
readonly SETTINGS_UPDATED: "settingsUpdated";
|
|
81
88
|
};
|
|
82
89
|
export type CommentEventType = typeof CommentEventTypes[keyof typeof CommentEventTypes];
|
|
83
90
|
export type RecorderEventType = typeof RecorderEventTypes[keyof typeof RecorderEventTypes];
|
|
84
91
|
export type CoreEventType = typeof CoreEventTypes[keyof typeof CoreEventTypes];
|
|
85
92
|
export type LiveStateSyncEventType = typeof LiveStateSyncEventTypes[keyof typeof LiveStateSyncEventTypes];
|
|
86
93
|
export type PresenceEventType = typeof PresenceEventTypes[keyof typeof PresenceEventTypes];
|
|
94
|
+
export type NotificationEventType = typeof NotificationEventTypes[keyof typeof NotificationEventTypes];
|
|
87
95
|
export declare enum TagStatus {
|
|
88
96
|
ADDED = "added",
|
|
89
97
|
UPDATED = "updated",
|
|
@@ -253,7 +261,7 @@ export type ReactionPinType = 'timeline' | 'comment';
|
|
|
253
261
|
export type SidebarPosition = 'left' | 'right';
|
|
254
262
|
export type SidebarSortingCriteria = 'date' | 'unread' | null;
|
|
255
263
|
export type SidebarFilterCriteria = 'all' | 'read' | 'unread' | 'resolved';
|
|
256
|
-
export type SidebarFilterSearchType = 'people' | 'assigned' | 'tagged' | 'pages' | 'statuses' | 'priorities' | 'categories' | 'versions';
|
|
264
|
+
export type SidebarFilterSearchType = 'people' | 'assigned' | 'tagged' | 'pages' | 'documents' | 'statuses' | 'priorities' | 'categories' | 'versions';
|
|
257
265
|
export type InlineSortingCriteria = 'createdFirst' | 'createdLast' | 'updatedFirst' | 'updatedLast';
|
|
258
266
|
export type NotificationPanelMode = 'popover' | 'sidebar';
|
|
259
267
|
export type SidebarActionButtonType = 'default' | 'toggle';
|
|
@@ -261,3 +269,11 @@ export declare enum CommentSidebarSystemFiltersOperator {
|
|
|
261
269
|
AND = "and",
|
|
262
270
|
OR = "or"
|
|
263
271
|
}
|
|
272
|
+
/**
|
|
273
|
+
* Type for notification settings accordion types
|
|
274
|
+
*/
|
|
275
|
+
export type NotificationSettingsAccordionType = 'inbox' | 'email' | string;
|
|
276
|
+
/**
|
|
277
|
+
* Type for notification settings item options
|
|
278
|
+
*/
|
|
279
|
+
export type NotificationSettingsItemType = 'ALL' | 'MINE' | 'NONE' | string;
|
package/models.d.ts
CHANGED
|
@@ -35,9 +35,11 @@ export * from './app/models/data/location.model';
|
|
|
35
35
|
export * from './app/models/data/media-preview-config.data.model';
|
|
36
36
|
export * from './app/models/data/multi-thread.data.model';
|
|
37
37
|
export * from './app/models/data/notification.model';
|
|
38
|
+
export * from './app/models/data/notifications-events.data.model';
|
|
38
39
|
export * from './app/models/data/page-info.model';
|
|
39
40
|
export * from './app/models/data/permission.data.model';
|
|
40
41
|
export * from './app/models/data/presence-user.data.model';
|
|
42
|
+
export * from './app/models/data/presence-actions.data.model';
|
|
41
43
|
export * from './app/models/data/presence-events.data.model';
|
|
42
44
|
export * from './app/models/data/recorder.model';
|
|
43
45
|
export * from './app/models/data/recorder-annotation.data.model';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/sdk",
|
|
3
|
-
"version": "4.5.0-beta.
|
|
3
|
+
"version": "4.5.0-beta.20",
|
|
4
4
|
"description": "Velt is an SDK to add collaborative features to your product within minutes. Example: Comments like Figma, Frame.io, Google docs or sheets, Recording like Loom, Huddles like Slack and much more.",
|
|
5
5
|
"homepage": "https://velt.dev",
|
|
6
6
|
"keywords": [
|