@trii/types 2.10.317 → 2.10.319

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,30 @@
1
+ export interface UserNotificationsConfig {
2
+ id: string;
3
+ spaceId: string;
4
+ userId: string;
5
+ conversations: UserConfig_Conversations;
6
+ chat: UserConfig_Chat;
7
+ tickets: UserConfig_Tickets;
8
+ }
9
+ export declare class UserConfig_Conversations {
10
+ newConversation: UserConfig_SendTo;
11
+ transferIn: UserConfig_SendTo;
12
+ newMessage: UserConfig_SendTo;
13
+ responseTimeOut: UserConfig_SendTo;
14
+ reminders: UserConfig_SendTo;
15
+ }
16
+ export declare class UserConfig_Chat {
17
+ newConversation: UserConfig_SendTo;
18
+ newMessage: UserConfig_SendTo;
19
+ }
20
+ export declare class UserConfig_Tickets {
21
+ newTicketAssigned: UserConfig_SendTo;
22
+ transferIn: UserConfig_SendTo;
23
+ newContactMessage: UserConfig_SendTo;
24
+ firstResponseTimeOut: UserConfig_SendTo;
25
+ resolutionTimeOut: UserConfig_SendTo;
26
+ }
27
+ export declare class UserConfig_SendTo {
28
+ email: boolean;
29
+ push: boolean;
30
+ }
@@ -0,0 +1,8 @@
1
+ export class UserConfig_Conversations {
2
+ }
3
+ export class UserConfig_Chat {
4
+ }
5
+ export class UserConfig_Tickets {
6
+ }
7
+ export class UserConfig_SendTo {
8
+ }
@@ -1 +1,2 @@
1
1
  export * from './Notification';
2
+ export * from './UserNotificationsConfig';
@@ -1 +1,2 @@
1
1
  export * from './Notification';
2
+ export * from './UserNotificationsConfig';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trii/types",
3
- "version": "2.10.317",
3
+ "version": "2.10.319",
4
4
  "description": "Types definitions for Trii projects - ",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,33 +0,0 @@
1
- import { UserInfo } from "../Users/UserTrii";
2
- export interface IChat {
3
- id: string;
4
- spaceId: string;
5
- ownerId: string;
6
- type: ChatType;
7
- chatName: string;
8
- to: string;
9
- members: IChatMemeber[];
10
- memberCount: number;
11
- chatImage: string;
12
- lastMessage: string;
13
- newMessagesCount: number;
14
- archived: boolean;
15
- createdAt: Date;
16
- updatedAt: Date;
17
- }
18
- export interface IChatMemeber {
19
- joinTimeStamp: Date;
20
- isAdmin: boolean;
21
- userId: string;
22
- user: UserInfo;
23
- }
24
- export declare enum ChatType {
25
- /**messages between two users */
26
- DIRECT = 1,
27
- /**messages between multiple users */
28
- GROUP = 2,
29
- /**Messages to discuss a conversation */
30
- DISCUSS_CONVERSATION = 11,
31
- /**Messages to discuss a ticket */
32
- DISCUSS_TICKET = 12
33
- }
@@ -1,11 +0,0 @@
1
- export var ChatType;
2
- (function (ChatType) {
3
- /**messages between two users */
4
- ChatType[ChatType["DIRECT"] = 1] = "DIRECT";
5
- /**messages between multiple users */
6
- ChatType[ChatType["GROUP"] = 2] = "GROUP";
7
- /**Messages to discuss a conversation */
8
- ChatType[ChatType["DISCUSS_CONVERSATION"] = 11] = "DISCUSS_CONVERSATION";
9
- /**Messages to discuss a ticket */
10
- ChatType[ChatType["DISCUSS_TICKET"] = 12] = "DISCUSS_TICKET";
11
- })(ChatType || (ChatType = {}));