@veltdev/types 6.0.0-beta.2 → 6.0.0-beta.4
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 +2 -3
- package/app/models/data/reaction-resolver.data.model.d.ts +1 -0
- package/app/models/data/selection.model.d.ts +10 -8
- package/app/models/data/user-resolver.data.model.d.ts +11 -9
- package/app/models/data/user.data.model.d.ts +21 -18
- package/app/models/element/activity-element.model.d.ts +0 -1
- package/app/models/element/area-element.model.d.ts +0 -1
- package/app/models/element/arrow-element.model.d.ts +1 -2
- package/app/models/element/autocomplete-element.model.d.ts +0 -1
- package/app/models/element/comment-element.model.d.ts +103 -77
- package/app/models/element/contact-element.model.d.ts +1 -2
- package/app/models/element/crdt-element.model.d.ts +1 -1
- package/app/models/element/cursor-element.model.d.ts +1 -2
- package/app/models/element/huddle-element.model.d.ts +1 -2
- package/app/models/element/live-state-sync-element.model.d.ts +1 -1
- package/app/models/element/notification-element.model.d.ts +33 -2
- package/app/models/element/presence-element.model.d.ts +32 -11
- package/app/models/element/reaction-element.model.d.ts +1 -1
- package/app/models/element/recorder-element.model.d.ts +21 -2
- package/app/models/element/rewriter-element.model.d.ts +43 -1
- package/app/models/element/selection-element.model.d.ts +1 -1
- package/app/models/element/suggestion-element.model.d.ts +0 -1
- package/app/models/element/tag-element.model.d.ts +7 -8
- package/app/models/element/views-element.model.d.ts +1 -1
- package/app/utils/enums.d.ts +91 -82
- package/package.json +8 -2
- package/types.d.ts +22 -22
- package/velt.d.ts +1 -2
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
1
|
import { Observable } from "rxjs";
|
|
3
2
|
import { Config, DisableLogsConfig } from "../models/data/config.data.model";
|
|
4
3
|
import { DocumentUser } from "../models/data/document-user.data.model";
|
|
5
4
|
import { Location } from "../models/data/location.model";
|
|
6
|
-
import { User,
|
|
5
|
+
import { User, Options, VeltAuthProvider, VeltPermissionProvider } from "../models/data/user.data.model";
|
|
7
6
|
import { CustomCss } from "../models/data/custom-css.data.model";
|
|
8
7
|
import { ActivityElement } from "../models/element/activity-element.model";
|
|
9
8
|
import { AreaElement } from "../models/element/area-element.model";
|
|
@@ -40,7 +39,7 @@ import { HeartbeatConfig, Heartbeat, GetHeartbeatResponse } from "../models/data
|
|
|
40
39
|
export declare class Snippyly {
|
|
41
40
|
constructor();
|
|
42
41
|
initConfig: (apiKey: string, config?: Config) => void;
|
|
43
|
-
identify: (user: User, userOptions?:
|
|
42
|
+
identify: (user: User, userOptions?: Options) => Promise<unknown>;
|
|
44
43
|
setVeltAuthProvider: (veltAuthProvider: VeltAuthProvider) => Promise<User | null>;
|
|
45
44
|
/**
|
|
46
45
|
* Tell us who the currently logged in user is.
|
|
@@ -21,14 +21,16 @@ export declare class Selection {
|
|
|
21
21
|
pageInfo: PageInfo;
|
|
22
22
|
timestamp: number;
|
|
23
23
|
}
|
|
24
|
-
export declare
|
|
25
|
-
Start
|
|
26
|
-
End
|
|
27
|
-
}
|
|
28
|
-
export
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
24
|
+
export declare const UserIndicatorPosition: {
|
|
25
|
+
readonly Start: "start";
|
|
26
|
+
readonly End: "end";
|
|
27
|
+
};
|
|
28
|
+
export type UserIndicatorPosition = (typeof UserIndicatorPosition)[keyof typeof UserIndicatorPosition];
|
|
29
|
+
export declare const UserIndicatorType: {
|
|
30
|
+
readonly Avatar: "avatar";
|
|
31
|
+
readonly Label: "label";
|
|
32
|
+
};
|
|
33
|
+
export type UserIndicatorType = (typeof UserIndicatorType)[keyof typeof UserIndicatorType];
|
|
32
34
|
export declare class LiveSelectionData {
|
|
33
35
|
[userIdHash: string]: Selection;
|
|
34
36
|
}
|
|
@@ -61,12 +61,14 @@ export interface GetUserPermissionsResponse {
|
|
|
61
61
|
};
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
|
-
export declare
|
|
65
|
-
EDITOR
|
|
66
|
-
VIEWER
|
|
67
|
-
}
|
|
68
|
-
export
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
64
|
+
export declare const UserPermissionAccessRole: {
|
|
65
|
+
readonly EDITOR: "editor";
|
|
66
|
+
readonly VIEWER: "viewer";
|
|
67
|
+
};
|
|
68
|
+
export type UserPermissionAccessRole = (typeof UserPermissionAccessRole)[keyof typeof UserPermissionAccessRole];
|
|
69
|
+
export declare const UserPermissionAccessRoleResult: {
|
|
70
|
+
readonly DOES_NOT_EXIST: "does_not_exist";
|
|
71
|
+
readonly PERMISSION_DENIED: "permission_denied";
|
|
72
|
+
readonly SOMETHING_WENT_WRONG: "something_went_wrong";
|
|
73
|
+
};
|
|
74
|
+
export type UserPermissionAccessRoleResult = (typeof UserPermissionAccessRoleResult)[keyof typeof UserPermissionAccessRoleResult];
|
|
@@ -125,18 +125,20 @@ export interface VeltAuthProvider {
|
|
|
125
125
|
generateToken?: () => Promise<string>;
|
|
126
126
|
onError?: (err: unknown) => void;
|
|
127
127
|
}
|
|
128
|
-
export declare
|
|
129
|
-
DOCUMENT_UNSET
|
|
130
|
-
USER_LOGOUT
|
|
131
|
-
}
|
|
132
|
-
export
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
128
|
+
export declare const RevokeAccessOnType: {
|
|
129
|
+
readonly DOCUMENT_UNSET: "document_unset";
|
|
130
|
+
readonly USER_LOGOUT: "user_logout";
|
|
131
|
+
};
|
|
132
|
+
export type RevokeAccessOnType = (typeof RevokeAccessOnType)[keyof typeof RevokeAccessOnType];
|
|
133
|
+
export declare const PermissionSource: {
|
|
134
|
+
readonly SET_DOCUMENTS: "setDocuments";
|
|
135
|
+
readonly IDENTIFY: "identify";
|
|
136
|
+
readonly GET_NOTIFICATIONS: "getNotifications";
|
|
137
|
+
readonly SET_NOTIFICATIONS: "setNotifications";
|
|
138
|
+
readonly REVOKE_ACCESS_ON_USER_LOGOUT: "revokeAccessOnUserLogout";
|
|
139
|
+
readonly REVOKE_ACCESS_ON_DOCUMENT_UNSET: "revokeAccessOnDocumentUnset";
|
|
140
|
+
};
|
|
141
|
+
export type PermissionSource = (typeof PermissionSource)[keyof typeof PermissionSource];
|
|
140
142
|
export interface RevokeAccessOn {
|
|
141
143
|
type: RevokeAccessOnType;
|
|
142
144
|
revokeOrganizationAccess?: boolean;
|
|
@@ -192,12 +194,13 @@ export interface PermissionResolverRequest {
|
|
|
192
194
|
requests: PermissionQuery[];
|
|
193
195
|
};
|
|
194
196
|
}
|
|
195
|
-
export declare
|
|
196
|
-
FOLDER
|
|
197
|
-
DOCUMENT
|
|
198
|
-
ORGANIZATION
|
|
199
|
-
CONTEXT
|
|
200
|
-
}
|
|
197
|
+
export declare const PermissionResourceType: {
|
|
198
|
+
readonly FOLDER: "folder";
|
|
199
|
+
readonly DOCUMENT: "document";
|
|
200
|
+
readonly ORGANIZATION: "organization";
|
|
201
|
+
readonly CONTEXT: "context";
|
|
202
|
+
};
|
|
203
|
+
export type PermissionResourceType = (typeof PermissionResourceType)[keyof typeof PermissionResourceType];
|
|
201
204
|
export interface PermissionQuery {
|
|
202
205
|
userId: string;
|
|
203
206
|
resource: {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
1
|
export declare class ArrowElement {
|
|
3
2
|
/**
|
|
4
3
|
* To allow arrow in specific elements only
|
|
5
4
|
* @param elementIds Element ids to be allowed for arrow
|
|
6
5
|
*/
|
|
7
|
-
public allowedElementIds: (elementIds: string[]) =>
|
|
6
|
+
public allowedElementIds: (elementIds: string[]) => void;
|
|
8
7
|
|
|
9
8
|
constructor();
|
|
10
9
|
|