@veltdev/sdk-staging 4.5.8-beta.10 → 4.5.8-beta.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/client/snippyly.model.d.ts +1 -10
- package/app/models/data/document.data.model.d.ts +2 -7
- package/app/models/data/event-metadata.data.model.d.ts +0 -20
- package/app/models/data/user-iam.data.model.d.ts +0 -1
- package/app/models/data/user.data.model.d.ts +5 -11
- package/app/models/element/comment-element.model.d.ts +1 -21
- package/app/utils/constants.d.ts +0 -2
- package/models.d.ts +0 -1
- package/package.json +1 -1
- package/velt.js +97 -108
- package/app/models/data/screenshot.data.model.d.ts +0 -10
|
@@ -25,7 +25,7 @@ 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
27
|
import { CrdtElement } from "../models/element/crdt-element.model";
|
|
28
|
-
import { VeltEventMetadata
|
|
28
|
+
import { VeltEventMetadata } from "../models/data/event-metadata.data.model";
|
|
29
29
|
import { CoreEventTypesMap } from "../models/data/core-events.data.model";
|
|
30
30
|
import { Document, SetDocumentsRequestOptions, FetchDocumentsRequest, FetchFoldersRequest, UpdateDocumentsRequest, UpdateLocationsRequest } from "../models/data/document.data.model";
|
|
31
31
|
import { FetchDocumentsResponse, FetchFoldersResponse } from "../models/data/document-events.data.model";
|
|
@@ -243,15 +243,6 @@ export declare class Snippyly {
|
|
|
243
243
|
* Get the metadata of the current resource.
|
|
244
244
|
*/
|
|
245
245
|
getMetadata: () => Promise<VeltEventMetadata | null>;
|
|
246
|
-
/**
|
|
247
|
-
* To fetch debug info.
|
|
248
|
-
*/
|
|
249
|
-
fetchDebugInfo: () => Promise<VeltDebugInfo | null>;
|
|
250
|
-
/**
|
|
251
|
-
* To subscribe to debug info.
|
|
252
|
-
*/
|
|
253
|
-
getDebugInfo: () => Observable<VeltDebugInfo | null>;
|
|
254
|
-
|
|
255
246
|
/**
|
|
256
247
|
* To signout a user
|
|
257
248
|
*/
|
|
@@ -1,21 +1,16 @@
|
|
|
1
1
|
import { DocumentMetadata } from "./document-metadata.model";
|
|
2
|
+
import { Context } from "./user.data.model";
|
|
2
3
|
export interface Document {
|
|
3
4
|
id: string;
|
|
4
5
|
metadata?: DocumentMetadata;
|
|
5
6
|
}
|
|
6
|
-
export interface SetDocumentsContext {
|
|
7
|
-
access: {
|
|
8
|
-
[key: string]: Array<string | number>;
|
|
9
|
-
};
|
|
10
|
-
accessFields?: Array<string>;
|
|
11
|
-
}
|
|
12
7
|
export interface SetDocumentsRequestOptions {
|
|
13
8
|
organizationId?: string;
|
|
14
9
|
folderId?: string;
|
|
15
10
|
allDocuments?: boolean;
|
|
16
11
|
locationId?: string;
|
|
17
12
|
rootDocumentId?: string;
|
|
18
|
-
context?:
|
|
13
|
+
context?: Context;
|
|
19
14
|
}
|
|
20
15
|
export interface UpdateDocumentsRequest<T = unknown> {
|
|
21
16
|
organizationId?: string;
|
|
@@ -1,29 +1,9 @@
|
|
|
1
1
|
import { DocumentMetadata } from "./document-metadata.model";
|
|
2
|
-
import { FolderMetadata } from "./folder-metadata.model";
|
|
3
2
|
import { Location } from "./location.model";
|
|
4
3
|
import { OrganizationMetadata } from "./organization-metadata.model";
|
|
5
|
-
import { User } from "./user.data.model";
|
|
6
4
|
export interface VeltEventMetadata {
|
|
7
5
|
organization?: OrganizationMetadata | null;
|
|
8
6
|
documents?: DocumentMetadata[];
|
|
9
7
|
locations?: Location[];
|
|
10
8
|
folderId?: string;
|
|
11
9
|
}
|
|
12
|
-
export interface VeltDebugInfo {
|
|
13
|
-
veltVersion?: string;
|
|
14
|
-
apiKey?: string;
|
|
15
|
-
serverMap?: {
|
|
16
|
-
organization?: OrganizationMetadata;
|
|
17
|
-
documents?: DocumentMetadata[];
|
|
18
|
-
locations?: Location[];
|
|
19
|
-
folder?: FolderMetadata;
|
|
20
|
-
user?: User;
|
|
21
|
-
};
|
|
22
|
-
clientMap?: {
|
|
23
|
-
organization?: OrganizationMetadata;
|
|
24
|
-
documents?: DocumentMetadata[];
|
|
25
|
-
locations?: Location[];
|
|
26
|
-
folder?: FolderMetadata;
|
|
27
|
-
user?: User;
|
|
28
|
-
};
|
|
29
|
-
}
|
|
@@ -106,13 +106,14 @@ export interface AuthRetryConfig {
|
|
|
106
106
|
}
|
|
107
107
|
export interface Context {
|
|
108
108
|
access: {
|
|
109
|
-
[key: string]: string | number;
|
|
109
|
+
[key: string]: Array<string | number> | null;
|
|
110
110
|
};
|
|
111
111
|
accessFields?: Array<string>;
|
|
112
112
|
}
|
|
113
113
|
export interface VeltAuthProvider {
|
|
114
114
|
user: User;
|
|
115
115
|
options?: Options;
|
|
116
|
+
context?: Context;
|
|
116
117
|
retryConfig?: AuthRetryConfig;
|
|
117
118
|
generateToken?: () => Promise<string>;
|
|
118
119
|
}
|
|
@@ -132,31 +133,24 @@ export interface RevokeAccessOn {
|
|
|
132
133
|
}
|
|
133
134
|
export interface VeltPermissionProvider {
|
|
134
135
|
retryConfig?: AuthRetryConfig;
|
|
135
|
-
|
|
136
|
+
isProviderEnabled?: boolean;
|
|
136
137
|
revokeAccessOn?: RevokeAccessOn[];
|
|
137
138
|
forceRefresh?: boolean;
|
|
138
139
|
}
|
|
139
|
-
export declare enum PermissionResourceType {
|
|
140
|
-
FOLDER = "folder",
|
|
141
|
-
DOCUMENT = "document",
|
|
142
|
-
ORGANIZATION = "organization",
|
|
143
|
-
CONTEXT = "context"
|
|
144
|
-
}
|
|
145
140
|
export interface PermissionQuery {
|
|
146
141
|
userId: string;
|
|
147
142
|
resource: {
|
|
148
143
|
id: string;
|
|
149
|
-
type:
|
|
144
|
+
type: 'folder' | 'document' | 'organization';
|
|
150
145
|
source: PermissionSource;
|
|
151
146
|
organizationId: string;
|
|
152
|
-
context?: Context;
|
|
153
147
|
};
|
|
154
148
|
}
|
|
155
149
|
export interface PermissionResult {
|
|
156
150
|
userId: string;
|
|
157
151
|
resourceId: string;
|
|
158
152
|
organizationId: string;
|
|
159
|
-
type:
|
|
153
|
+
type: 'folder' | 'document' | 'organization';
|
|
160
154
|
accessRole?: UserPermissionAccessRole;
|
|
161
155
|
expiresAt?: number;
|
|
162
156
|
hasAccess: boolean;
|
|
@@ -562,7 +562,7 @@ export declare class CommentElement {
|
|
|
562
562
|
* To select comment by annotation id
|
|
563
563
|
* @param annotationId Comment annotation id
|
|
564
564
|
*/
|
|
565
|
-
public selectCommentByAnnotationId: (annotationId
|
|
565
|
+
public selectCommentByAnnotationId: (annotationId: string) => void;
|
|
566
566
|
|
|
567
567
|
/**
|
|
568
568
|
* To enable showing recording summary in comments
|
|
@@ -1254,16 +1254,6 @@ export declare class CommentElement {
|
|
|
1254
1254
|
*/
|
|
1255
1255
|
public markAsUnread: (annotationId: string) => Promise<void>;
|
|
1256
1256
|
|
|
1257
|
-
/**
|
|
1258
|
-
* To enable screenshot
|
|
1259
|
-
*/
|
|
1260
|
-
public enableScreenshot: () => void;
|
|
1261
|
-
|
|
1262
|
-
/**
|
|
1263
|
-
* To disable screenshot
|
|
1264
|
-
*/
|
|
1265
|
-
public disableScreenshot: () => void;
|
|
1266
|
-
|
|
1267
1257
|
constructor();
|
|
1268
1258
|
/**
|
|
1269
1259
|
* Subscribe to comments on the current document.
|
|
@@ -2496,14 +2486,4 @@ export declare class CommentElement {
|
|
|
2496
2486
|
* To mark comment annotation as unread
|
|
2497
2487
|
*/
|
|
2498
2488
|
private _markAsUnread;
|
|
2499
|
-
|
|
2500
|
-
/**
|
|
2501
|
-
* To enable screenshot
|
|
2502
|
-
*/
|
|
2503
|
-
private _enableScreenshot;
|
|
2504
|
-
|
|
2505
|
-
/**
|
|
2506
|
-
* To disable screenshot
|
|
2507
|
-
*/
|
|
2508
|
-
private _disableScreenshot;
|
|
2509
2489
|
}
|
package/app/utils/constants.d.ts
CHANGED
|
@@ -9,8 +9,6 @@ export declare class Constants {
|
|
|
9
9
|
static NO_ORGANIZATION_ID: string;
|
|
10
10
|
static DEFAULT_QUERY_HASH: string;
|
|
11
11
|
static LISTENER_BATCH_SIZE: number;
|
|
12
|
-
static LISTENER_CONTEXT_BATCH_SIZE: number;
|
|
13
|
-
static DEFAULT_VELT_CONTEXT: string;
|
|
14
12
|
static FIREBASE_PARTIAL_PATH_ORGANIZATIONS: string;
|
|
15
13
|
static FIREBASE_PARTIAL_PATH_FOLDERS: string;
|
|
16
14
|
static FIREBASE_PARTIAL_PATH_DOCS: string;
|
package/models.d.ts
CHANGED
|
@@ -48,7 +48,6 @@ export * from './app/models/data/recorder-annotation.data.model';
|
|
|
48
48
|
export * from './app/models/data/recorder-events.data.model';
|
|
49
49
|
export * from './app/models/data/rewriter-annotation.data.model';
|
|
50
50
|
export * from './app/models/data/screen-size.data.model';
|
|
51
|
-
export * from './app/models/data/screenshot.data.model';
|
|
52
51
|
export * from './app/models/data/selection.model';
|
|
53
52
|
export * from './app/models/data/sync-video-player.data.model';
|
|
54
53
|
export * from './app/models/data/tag-annotation.data.model';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/sdk-staging",
|
|
3
|
-
"version": "4.5.8-beta.
|
|
3
|
+
"version": "4.5.8-beta.2",
|
|
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": [
|