robbyson-frontend-library 1.0.43 → 1.0.44

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.43",
3
+ "version": "1.0.44",
4
4
  "description": "Robbyson frontend Library",
5
5
  "main": "./dist/index.js",
6
6
  "license": "MIT",
@@ -1,6 +1,7 @@
1
1
  import { BaseRepositoryModel } from "./base.repository.model";
2
2
  import { IProfileImageProps } from "../components/profile-image/profile-image.interface";
3
3
  import { IBaseComponentProp } from "../components/base-component.prop.interface";
4
+ import { ChatClassification } from "../constants";
4
5
 
5
6
  export class AngelFriendStatusModel extends BaseRepositoryModel {
6
7
  configuration: IConfiguration;
@@ -149,6 +150,7 @@ export interface IAngelFriendStatus {
149
150
  __v: number;
150
151
  _id: number;
151
152
  accepted?: boolean;
153
+ lastConfigurationToAF?: string;
152
154
  }
153
155
  | undefined;
154
156
  configuration: IConfiguration;
@@ -183,6 +185,7 @@ export interface IAngelFriendProfileImageProps
183
185
  extends IProfileImageProps,
184
186
  IBaseComponentProp {
185
187
  robbysonUserId?: number;
188
+ classification?: ChatClassification | "";
186
189
  }
187
190
 
188
191
  export interface INotification {
@@ -341,6 +344,7 @@ export interface IGodfatherAnswer {
341
344
  __v?: number;
342
345
  accepted: boolean;
343
346
  possibleAF?: boolean;
347
+ lastConfigurationToAF?: string;
344
348
  }
345
349
 
346
350
  export interface IGodfatherAnswerResponse {
@@ -25,6 +25,7 @@ export class ChatModel {
25
25
  classification?: ChatClassification;
26
26
  isUserActive?: boolean;
27
27
  lastUpdatedBy?: string;
28
+ lastUpdatedAt?: Date;
28
29
  }
29
30
 
30
31
  export class ChatUser {
@@ -26,4 +26,4 @@ export interface IUserHierarchy {
26
26
  parents: string[];
27
27
  _id: string;
28
28
  identification: string;
29
- }
29
+ }
@@ -1,3 +1,4 @@
1
+ import { ChatClassification } from "../constants";
1
2
  import { BaseRepositoryModel } from "./base.repository.model";
2
3
  import { ChatUser } from "./chat.model";
3
4
 
@@ -25,6 +26,7 @@ export class UserListModel extends BaseRepositoryModel {
25
26
  profileImage?: string;
26
27
  users?: ChatUser[];
27
28
  countNotRead?: number;
29
+ classification?: ChatClassification;
28
30
  }
29
31
 
30
32
  interface System {
@@ -18,6 +18,7 @@ export interface IAngelFriendRepository {
18
18
  data: AngelFriendDTO.NotificationReceivedDTO,
19
19
  limit?: number
20
20
  ): Promise<INotificationResponse>;
21
+ getNotificationToBeGodfather(): Promise<IHttpGenericResponse>;
21
22
  getPossibleGodsons(data: {
22
23
  page: number;
23
24
  per: number;
@@ -3,7 +3,6 @@ import { CampaignDTO } from "../services";
3
3
  export interface ICampaignRepository {
4
4
  getCampaigns: (data: {
5
5
  userId: string;
6
- primaryAttributeId: string;
7
6
  }) => Promise<CampaignDTO.ICampaign[]>;
8
7
  getbyindicatorid: (id: number) => Promise<CampaignDTO.IIndicador>;
9
8
  }
@@ -17,6 +17,7 @@ export interface IAngelFriendService {
17
17
  data: { skip: number },
18
18
  limit?: number
19
19
  ): Promise<INotificationResponse>;
20
+ getNotificationToBeGodfather(): Promise<IHttpGenericResponse>;
20
21
  getPossibleGodsons(data: {
21
22
  page: number;
22
23
  per: number;
@@ -7,6 +7,7 @@ export interface IChatService {
7
7
  getConversations(
8
8
  parameters: ChatDTO.IGetConversationDTO,
9
9
  append?: boolean,
10
+ searchType?: string,
10
11
  angelFriends?: string[]
11
12
  ): Promise<ChatModel[] | UserListModel[]>;
12
13
  createConversation(