@veltdev/sdk 5.0.2-beta.32 → 5.0.2-beta.33
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.
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Configuration for the opt-in cross-organization "For You" notifications feature.
|
|
5
|
+
*/
|
|
6
|
+
export interface CrossOrganizationConfig {
|
|
7
|
+
/** Whether cross-organization notifications are active. Defaults to `true` on enable. */
|
|
8
|
+
enabled?: boolean;
|
|
9
|
+
/** Allowlist of organization IDs to include. When omitted, all indexed orgs are eligible. */
|
|
10
|
+
organizationIds?: string[];
|
|
11
|
+
/** Organization IDs to exclude. The current organization is always excluded. */
|
|
12
|
+
excludeOrganizationIds?: string[];
|
|
13
|
+
/** Upper bound on the number of organizations fetched. Defaults to 20. */
|
|
14
|
+
maxOrganizations?: number;
|
|
15
|
+
/** Feeds the merge applies to. Only `'forYou'` is supported; `'all'` is ignored with a warning. */
|
|
16
|
+
feeds?: ('forYou' | 'all')[];
|
|
17
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
|
|
3
3
|
import { GetNotificationsDataQuery, Notification, NotificationInitialSettingsConfig, NotificationSettingsConfig, NotificationTabConfig } from "../data/notification.model";
|
|
4
|
+
import { CrossOrganizationConfig } from "./cross-organization-config.model";
|
|
4
5
|
|
|
5
6
|
export declare class NotificationElement {
|
|
6
7
|
/**
|
|
@@ -128,6 +129,16 @@ export declare class NotificationElement {
|
|
|
128
129
|
*/
|
|
129
130
|
disableCurrentDocumentOnly: () => void;
|
|
130
131
|
|
|
132
|
+
/**
|
|
133
|
+
* Opt in to cross-organization "For You" notifications.
|
|
134
|
+
*/
|
|
135
|
+
enableCrossOrganization: (config?: CrossOrganizationConfig | null) => void;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Opt out of cross-organization "For You" notifications.
|
|
139
|
+
*/
|
|
140
|
+
disableCrossOrganization: () => void;
|
|
141
|
+
|
|
131
142
|
constructor();
|
|
132
143
|
|
|
133
144
|
/**
|
|
@@ -254,4 +265,8 @@ export declare class NotificationElement {
|
|
|
254
265
|
* To disable current document only
|
|
255
266
|
*/
|
|
256
267
|
private _disableCurrentDocumentOnly;
|
|
268
|
+
|
|
269
|
+
private _enableCrossOrganization;
|
|
270
|
+
|
|
271
|
+
private _disableCrossOrganization;
|
|
257
272
|
}
|
package/app/utils/constants.d.ts
CHANGED
|
@@ -37,6 +37,7 @@ export declare class Constants {
|
|
|
37
37
|
static FIREBASE_PARTIAL_PATH_NOTIFICATION_USERS: string;
|
|
38
38
|
static FIREBASE_PARTIAL_PATH_DOC_NOTIFICATION: string;
|
|
39
39
|
static FIREBASE_PARTIAL_PATH_USER_NOTIFICATION: string;
|
|
40
|
+
static FIREBASE_PARTIAL_PATH_USER_NOTIFICATION_INDEX: string;
|
|
40
41
|
static FIREBASE_PARTIAL_PATH_GLOBAL: string;
|
|
41
42
|
static FIREBASE_PARTIAL_PATH_LOGINS: string;
|
|
42
43
|
static FIREBASE_PARTIAL_PATH_METADATA: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/sdk",
|
|
3
|
-
"version": "5.0.2-beta.
|
|
3
|
+
"version": "5.0.2-beta.33",
|
|
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": [
|
package/types.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export * from './app/models/element/selection-element.model';
|
|
|
14
14
|
export * from './app/models/element/tag-element.model';
|
|
15
15
|
export * from './app/models/element/views-element.model';
|
|
16
16
|
export * from './app/models/element/notification-element.model';
|
|
17
|
+
export * from './app/models/element/cross-organization-config.model';
|
|
17
18
|
export * from './app/models/element/autocomplete-element.model';
|
|
18
19
|
export * from './app/models/element/reaction-element.model';
|
|
19
20
|
export * from './app/models/element/crdt-element.model';
|