robbyson-frontend-library 1.0.40 → 1.0.41

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "robbyson-frontend-library",
3
- "version": "1.0.40",
3
+ "version": "1.0.41",
4
4
  "description": "Robbyson frontend Library",
5
5
  "main": "./dist/index.js",
6
6
  "license": "MIT",
@@ -12,6 +12,7 @@ export type MenuItem = {
12
12
  checkWeight?: boolean;
13
13
  weight?: number;
14
14
  condition?: IWeightConditionTypes
15
+ shouldRender?: boolean;
15
16
  }
16
17
 
17
18
  export interface IMenuProps {
@@ -156,6 +156,8 @@ export interface IAngelFriendStatus {
156
156
  activeSponsorships: ISponsorship[];
157
157
  color: string;
158
158
  countTotalGodson?: number;
159
+ isGodson: boolean;
160
+ isGodfather: boolean;
159
161
  }
160
162
 
161
163
  export interface IAngelFriendStatusResponse {
@@ -23,6 +23,7 @@ export class ChatModel {
23
23
  active?: boolean;
24
24
  deleted?: boolean;
25
25
  classification?: ChatClassification;
26
+ isUserActive?: boolean;
26
27
  }
27
28
 
28
29
  export class ChatUser {
@@ -41,6 +42,8 @@ export class ChatUser {
41
42
  user_id: number;
42
43
  _id: string;
43
44
  id?: string;
45
+ isUserActive?: boolean;
46
+ hierarchyLevel?: number;
44
47
  }
45
48
 
46
49
  // InviteList is a combination of UserListModel and ChatModel
@@ -94,6 +94,7 @@ export class UserSessionModel extends BaseRepositoryModel {
94
94
  chatSendFiles: boolean;
95
95
  chatMaxSizeFile?: number;
96
96
  enableVariableIncomes?: boolean;
97
+ enableEAD: boolean;
97
98
  };
98
99
  UsuarioAceitouTermoUsoAtual: boolean;
99
100
  colorBadge?: string;
@@ -1,7 +1,6 @@
1
1
  import { ChatModel, ChatUser, MessageModel, UserListModel } from "../models";
2
2
  import { ChatDTO, UserDTO } from "./dtos";
3
3
  import { RequestPayload } from "./dtos/chat.dto";
4
- import { ChatConstants } from "../constants";
5
4
 
6
5
  export interface IChatService {
7
6
  getConversation(conversationId: string): Promise<ChatModel>;
@@ -83,4 +82,10 @@ export interface IChatService {
83
82
  setEditGroupModal(isOpen: boolean): void;
84
83
  getEditGroupModal(): boolean;
85
84
  getGroupImage(): Promise<string>;
85
+ getIsAngelFriendInChat(
86
+ identification: number,
87
+ chat: ChatModel
88
+ ): Promise<boolean>;
89
+ readConversationMessages(conversationId: string): Promise<void>;
90
+ isCallOpen(conversationId: string): Promise<boolean>;
86
91
  }
@@ -177,6 +177,7 @@ export interface ISubscribeMessage {
177
177
  sender: string;
178
178
  receivedAt: string;
179
179
  receiver: string;
180
+ conversation?: ChatModel;
180
181
  }
181
182
 
182
183
  export interface IUpdatedUsers {