@veltdev/sdk 4.5.0-beta.54 → 4.5.0-beta.56
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.
|
@@ -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 } from "../models/data/user.data.model";
|
|
6
|
+
import { User, UserOptions, VeltAuthProvider } 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";
|
|
@@ -38,6 +38,7 @@ export declare class Snippyly {
|
|
|
38
38
|
constructor();
|
|
39
39
|
initConfig: (apiKey: string, config?: Config) => void;
|
|
40
40
|
identify: (user: User, userOptions?: UserOptions) => Promise<unknown>;
|
|
41
|
+
setVeltAuthProvider: (veltAuthProvider: VeltAuthProvider) => Promise<User | null>;
|
|
41
42
|
/**
|
|
42
43
|
* Tell us who the currently logged in user is.
|
|
43
44
|
*
|
|
@@ -99,3 +99,12 @@ export declare class Options {
|
|
|
99
99
|
*/
|
|
100
100
|
forceReset?: boolean;
|
|
101
101
|
}
|
|
102
|
+
export interface AuthRetryConfig {
|
|
103
|
+
retryCount?: number;
|
|
104
|
+
retryDelay?: number;
|
|
105
|
+
}
|
|
106
|
+
export interface VeltAuthProvider {
|
|
107
|
+
user: User;
|
|
108
|
+
options?: Options;
|
|
109
|
+
retryConfig?: AuthRetryConfig;
|
|
110
|
+
}
|
package/app/utils/constants.d.ts
CHANGED
|
@@ -56,6 +56,7 @@ export declare class Constants {
|
|
|
56
56
|
static FIREBASE_PARTIAL_PATH_ORGANIZATION_NOTIFICATIONS: string;
|
|
57
57
|
static FIREBASE_PARTIAL_PATH_LAST_NOTIFICATION_TIMESTAMP: string;
|
|
58
58
|
static FIREBASE_PARTIAL_PATH_USERS: string;
|
|
59
|
+
static FIREBASE_PARTIAL_PATH_PERMISSIONS_USERS: string;
|
|
59
60
|
static FIREBASE_PARTIAL_PATH_USER_REQUESTS: string;
|
|
60
61
|
static FIREBASE_PARTIAL_PATH_FEEDBACK: string;
|
|
61
62
|
static FIREBASE_PARTIAL_PATH_BUGS: string;
|
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.56",
|
|
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": [
|