robbyson-frontend-library 1.0.39 → 1.0.40

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 @@
1
+ export * from './notification-sound.interface';
@@ -11,6 +11,7 @@ export var TypeChat;
11
11
  (function (TypeChat) {
12
12
  TypeChat["CHAT"] = "chat";
13
13
  TypeChat["GROUP"] = "group";
14
+ TypeChat["GROUPS"] = "groups";
14
15
  TypeChat["CHATBOT"] = "chat-bot";
15
16
  })(TypeChat || (TypeChat = {}));
16
17
  export var ChatClassification;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "robbyson-frontend-library",
3
- "version": "1.0.39",
3
+ "version": "1.0.40",
4
4
  "description": "Robbyson frontend Library",
5
5
  "main": "./dist/index.js",
6
6
  "license": "MIT",
@@ -0,0 +1 @@
1
+ export * from './notification-sound.interface';
@@ -0,0 +1,10 @@
1
+ ///<reference types="react" />
2
+ ///<reference types="robbyson-frontend-library" />
3
+
4
+ declare module 'terms_of_use_application/NotificationSound' {
5
+
6
+ import { INotificationSoundProps } from "robbyson-frontend-library";
7
+ const NotificationSound: React.ComponentType<INotificationSoundProps<any>>;
8
+
9
+ export default NotificationSound;
10
+ }
@@ -0,0 +1,5 @@
1
+ import { IBaseComponentProp } from "../base-component.prop.interface";
2
+
3
+ export interface INotificationSoundProps extends IBaseComponentProp {}
4
+
5
+ export interface INotificationSoundState {}
@@ -11,4 +11,5 @@ export interface ITermsOfUseState {
11
11
  isRead: boolean;
12
12
  disableButton: boolean;
13
13
  hasScroll: boolean | null;
14
+ hasError: boolean;
14
15
  }
@@ -1,6 +1,7 @@
1
1
  export enum TypeChat {
2
2
  CHAT = "chat",
3
3
  GROUP = "group",
4
+ GROUPS = "groups",
4
5
  CHATBOT = "chat-bot",
5
6
  }
6
7
 
@@ -163,6 +163,14 @@ export interface IAngelFriendStatusResponse {
163
163
  statusLog: StatusLog[];
164
164
  }
165
165
 
166
+ export interface ISponsorshipSendRating {
167
+ sponsorshipId: string,
168
+ userId: number,
169
+ stars: number,
170
+ message: string,
171
+ notification_id: string
172
+ }
173
+
166
174
  export interface AngelFriendMeta {
167
175
  type: string;
168
176
  sponsorship_id: string;
@@ -175,6 +183,7 @@ export interface INotification {
175
183
  favorite: boolean;
176
184
  read: boolean;
177
185
  notified: boolean;
186
+ answered?: boolean;
178
187
  targetSystems: number[];
179
188
  _id: string;
180
189
  hideSender: boolean;
@@ -256,6 +265,8 @@ export interface SponsorshipData {
256
265
  rating: string[];
257
266
  accepted: boolean;
258
267
  beginDate: string | null;
268
+ godsonEndLevel?: number;
269
+ godsonStartLevel?: number;
259
270
  }
260
271
 
261
272
  export interface INotificationResponse {
@@ -1,6 +1,7 @@
1
1
  import { AngelFriendDTO } from "../services";
2
2
  import {
3
3
  IAngelFriendStatus,
4
+ ISponsorshipSendRating,
4
5
  IGodfatherAnswer,
5
6
  IGodfatherAnswerResponse,
6
7
  INotificationResponse,
@@ -13,7 +14,8 @@ export interface IAngelFriendRepository {
13
14
  getAngelFriendStatus(_id: number): Promise<IAngelFriendStatus>;
14
15
  getNotificationList(
15
16
  robbysonUserId: number,
16
- data: AngelFriendDTO.NotificationReceivedDTO
17
+ data: AngelFriendDTO.NotificationReceivedDTO,
18
+ limit?: number
17
19
  ): Promise<INotificationResponse>;
18
20
  getPossibleGodsons(data: {
19
21
  page: number;
@@ -22,11 +24,13 @@ export interface IAngelFriendRepository {
22
24
  }): Promise<IPossibleGodsonResponse>;
23
25
  getPendingInvitations(): Promise<IPendingInvitationResponse>;
24
26
  getGodfatherAnswers(): Promise<IGodfatherAnswerResponse>;
27
+ sponsorshipSendRating(rating: ISponsorshipSendRating): Promise<void>;
25
28
  acceptGodfather(data: {
26
29
  _id: number | string;
27
30
  accepted: boolean;
28
31
  }): Promise<string>;
29
32
  removeSponsorship(sponsorship_id: string): Promise<string>;
33
+ getSponsorship(sponsorship_id: string): Promise<SponsorshipData[]>;
30
34
  answerSponsorship(
31
35
  data: { sponsorship_id: string },
32
36
  answer: boolean
@@ -1,4 +1,4 @@
1
- import { MenusNotificationsModel, NotificationModel } from "../models";
1
+ import { ISponsorshipSendRating, MenusNotificationsModel, NotificationModel } from "../models";
2
2
  export interface INotificationRepository {
3
3
  getMenusNotifications(params: {
4
4
  "$filter.$or.targetSystems.0.$exists": boolean;
@@ -22,6 +22,8 @@ export interface INotificationRepository {
22
22
  page: number;
23
23
  totalRecords: number;
24
24
  }>;
25
+
26
+ markAsAngelFriendRead(rating: ISponsorshipSendRating): Promise<void>;
25
27
  markAsRead(params: {
26
28
  user_id: number;
27
29
  arr_notification_id: Array<string>;
@@ -1,5 +1,6 @@
1
1
  import {
2
2
  IAngelFriendStatus,
3
+ ISponsorshipSendRating,
3
4
  IGodfatherAnswer,
4
5
  IGodfatherAnswerResponse,
5
6
  INotificationResponse,
@@ -12,7 +13,8 @@ export interface IAngelFriendService {
12
13
  getAngelFriendStatus(_id: number): Promise<IAngelFriendStatus>;
13
14
  getNotificationList(
14
15
  robbysonUserId: number,
15
- data: { skip: number }
16
+ data: { skip: number },
17
+ limit?: number
16
18
  ): Promise<INotificationResponse>;
17
19
  getPossibleGodsons(data: {
18
20
  page: number;
@@ -27,6 +29,8 @@ export interface IAngelFriendService {
27
29
  lastConfigurationToAF?: string;
28
30
  }): Promise<string>;
29
31
  removeSponsorship(sponsorship_id: string): Promise<string>;
32
+ getSponsorship(sponsorship_id: string): Promise<SponsorshipData[]>;
33
+ sponsorshipSendRating(rating: ISponsorshipSendRating): Promise<void>;
30
34
  answerSponsorship(
31
35
  data: { sponsorship_id: string },
32
36
  answer: boolean
@@ -67,6 +67,7 @@ export interface IChatService {
67
67
  ): Promise<void>;
68
68
  addMessage(message: ChatDTO.ISubscribeMessage): void;
69
69
  updateUsers(message: ChatDTO.IUpdatedUsers): void;
70
+ updateGroup(message: ChatDTO.IUpdatedGroup): void;
70
71
  getConversationSidebar(): ChatDTO.IConversationDTO;
71
72
  setConversationSidebar(payload: ChatDTO.IConversationDTO): void;
72
73
  sendBroadcast(
@@ -182,4 +182,9 @@ export interface ISubscribeMessage {
182
182
  export interface IUpdatedUsers {
183
183
  conversation_id: string;
184
184
  user: ChatModel;
185
+ conversation: ChatModel;
186
+ }
187
+
188
+ export interface IUpdatedGroup {
189
+ conversation: ChatModel;
185
190
  }
@@ -1,8 +1,9 @@
1
- import { MenusNotificationsModel, NotificationModel } from "../models";
1
+ import { ISponsorshipSendRating, MenusNotificationsModel, NotificationModel } from "../models";
2
2
 
3
3
  export interface INotificationService {
4
4
  showNotificationSidebar(data: boolean): void;
5
5
  getMenusNotifications(): Promise<Array<MenusNotificationsModel>>;
6
+ markAsAngelFriendRead(rating:ISponsorshipSendRating): Promise<void>;
6
7
  setRecentNotificationsSidebar(
7
8
  notification: Array<NotificationModel | undefined>
8
9
  ): Promise<void>;
@@ -41,4 +42,5 @@ export interface INotificationService {
41
42
  fileName: string
42
43
  ): Promise<Blob | MediaSource>;
43
44
  getVideo(fileName: string): Promise<Blob | MediaSource>;
45
+ playNotificationSound(data: boolean): void;
44
46
  }
@@ -20,4 +20,5 @@ export interface IChatApp {
20
20
  addMemberModal: boolean;
21
21
  editGroupModal: boolean;
22
22
  updatedUsers: ChatDTO.IUpdatedUsers;
23
+ lastConversationsSearch: { search: string; type: string };
23
24
  }
@@ -4,4 +4,5 @@ export interface INotificationApp {
4
4
  recentNotifications: Array<NotificationModel | undefined>,
5
5
  showNotificationSidebar: boolean,
6
6
  unreadNotifications: number,
7
+ playNotificationSound: boolean,
7
8
  }