@veltdev/sdk 1.0.176 → 1.0.177

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.
@@ -1,10 +1,11 @@
1
+ import { OrganizationUserGroup } from "./organization-groups.data.model";
1
2
  export declare class AutocompleteDataMap {
2
3
  [hotkey: string]: AutocompleteData;
3
4
  }
4
5
  export declare class AutocompleteData {
5
6
  hotkey: string;
6
7
  description?: string;
7
- type: 'custom' | 'contact';
8
+ type: 'custom' | 'contact' | 'group';
8
9
  list: AutocompleteItem[];
9
10
  }
10
11
  export declare class AutocompleteItem {
@@ -21,6 +22,12 @@ export declare class AutocompleteReplaceData {
21
22
  text: string;
22
23
  custom: AutocompleteItem;
23
24
  }
25
+ export declare class AutocompleteGroupReplaceData {
26
+ text: string;
27
+ groupId: string;
28
+ clientGroupId: string;
29
+ group?: OrganizationUserGroup;
30
+ }
24
31
  export declare class AutocompleteChipData extends AutocompleteItem {
25
32
  type: 'contact' | 'custom';
26
33
  }
@@ -1,5 +1,5 @@
1
1
  import { Attachment } from "./attachment.model";
2
- import { AutocompleteReplaceData } from "./autocomplete.data.model";
2
+ import { AutocompleteGroupReplaceData, AutocompleteReplaceData } from "./autocomplete.data.model";
3
3
  import { RecordedData } from "./recorder.model";
4
4
  import { User } from "./user.data.model";
5
5
  export declare class Comment {
@@ -65,4 +65,5 @@ export declare class Comment {
65
65
  recorders: RecordedData[];
66
66
  reactionAnnotationIds: string[];
67
67
  customList: AutocompleteReplaceData[];
68
+ toOrganizationUserGroup: AutocompleteGroupReplaceData[];
68
69
  }
@@ -43,6 +43,10 @@ export declare class DocumentPaths {
43
43
  * Organization metadata path.
44
44
  */
45
45
  organizationMetadata?: string;
46
+ /**
47
+ * Organization groups path.
48
+ */
49
+ organizationGroups?: string;
46
50
  /**
47
51
  * Group contacts path.
48
52
  */
@@ -0,0 +1,10 @@
1
+ export declare class OrganizationUserGroup {
2
+ metadata: {
3
+ groupId: string;
4
+ clientGroupId: string;
5
+ groupName: string;
6
+ };
7
+ users: {
8
+ [userIdHash: string]: boolean;
9
+ };
10
+ }
@@ -27,7 +27,7 @@ export declare class UserContact {
27
27
  source?: string;
28
28
  visibility: 'group' | 'private';
29
29
  }
30
- export declare class UserContactSelectedPayload {
30
+ export declare class SelectedUserContact {
31
31
  /**
32
32
  * Selected user contact details.
33
33
  */
@@ -1,6 +1,7 @@
1
1
  // @ts-nocheck
2
2
  import { Observable } from "rxjs";
3
- import { UserContactSelectedPayload } from "../data/user-contact.data.model";
3
+ import { SelectedUserContact } from "../data/user-contact.data.model";
4
+ import { ContactListScopeForOrganizationUsers } from "../../utils/enums";
4
5
  export declare class ContactElement {
5
6
  /**
6
7
  * Get if user is part of global contact or not.
@@ -10,7 +11,23 @@ export declare class ContactElement {
10
11
  /**
11
12
  * Get selected contact details.
12
13
  */
13
- public onContactSelected: () => Observable<UserContactSelectedPayload | null>;
14
+ public onContactSelected: () => Observable<SelectedUserContact | null>;
15
+
16
+ /**
17
+ * Enable @here for contact list.
18
+ */
19
+ public enableAtHere: () => void;
20
+
21
+ /**
22
+ * Disable @here for contact list.
23
+ */
24
+ public disableAtHere: () => void;
25
+
26
+ /**
27
+ * Update contact list scope for organization users.
28
+ * @param scope ContactListScopeForOrganizationUsers[]
29
+ */
30
+ public updateContactListScopeForOrganizationUsers: (scope: ContactListScopeForOrganizationUsers[]) => void;
14
31
  constructor();
15
32
  /**
16
33
  * Get if user is part of global contact or not.
@@ -21,4 +38,20 @@ export declare class ContactElement {
21
38
  * Get selected contact details.
22
39
  */
23
40
  private _onContactSelected;
41
+
42
+ /**
43
+ * Enable @here for contact list.
44
+ */
45
+ private _enableAtHere;
46
+
47
+ /**
48
+ * Disable @here for contact list.
49
+ */
50
+ private _disableAtHere;
51
+
52
+ /**
53
+ * Update contact list scope for organization users.
54
+ * @param scope ContactListScopeForOrganizationUsers[]
55
+ */
56
+ private _updateContactListScopeForOrganizationUsers;
24
57
  }
@@ -23,6 +23,7 @@ export declare class Constants {
23
23
  static FIREBASE_PARTIAL_PATH_LOGINS: string;
24
24
  static FIREBASE_PARTIAL_PATH_METADATA: string;
25
25
  static FIREBASE_PARTIAL_PATH_ORGANIZATION_METADATA: string;
26
+ static FIREBASE_PARTIAL_PATH_ORGANIZATION_GROUPS: string;
26
27
  static FIREBASE_PARTIAL_PATH_LOCATIONS: string;
27
28
  static FIREBASE_PARTIAL_PATH_RECORDER: string;
28
29
  static FIREBASE_PARTIAL_PATH_FOLLOW_ALONG: string;
@@ -116,3 +116,9 @@ export declare enum ServerConnectionState {
116
116
  PENDING_INIT = "pendingInit",
117
117
  PENDING_DATA = "pendingData"
118
118
  }
119
+ export declare enum ContactListScopeForOrganizationUsers {
120
+ ALL = "all",
121
+ ORGANIZATION = "organization",
122
+ ORGANIZATION_USER_GROUP = "organizationUserGroup",
123
+ DOCUMENT = "document"
124
+ }
package/models.d.ts CHANGED
@@ -50,3 +50,4 @@ export * from './app/models/data/views.data.model';
50
50
  export * from './app/models/data/autocomplete.data.model';
51
51
  export * from './app/models/data/reaction-annotation.data.model';
52
52
  export * from './app/models/data/reaction.data.model';
53
+ export * from './app/models/data/organization-groups.data.model';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/sdk",
3
- "version": "1.0.176",
3
+ "version": "1.0.177",
4
4
  "description": "",
5
5
  "main": "velt.js",
6
6
  "scripts": {