touchstudy-core 0.1.22 → 0.1.24

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.
@@ -15,6 +15,7 @@ export interface IChatItemWithActionProps extends IChatItemProps {
15
15
  showTimestamp?: boolean;
16
16
  showName?: boolean;
17
17
  isStudent?: boolean;
18
+ toggleImageDialog?: () => void;
18
19
  }
19
20
  export declare enum ChatItemType {
20
21
  Default = 0,
@@ -3,6 +3,8 @@ export declare const getListConversation: (query: ConversationFilter) => Promise
3
3
  export declare const createConversation: (studentId: number) => Promise<import("axios").AxiosResponse<any, any>>;
4
4
  export declare const apiAddMessage: (conversationId: number, message: MessageRequest) => Promise<import("axios").AxiosResponse<any, any>>;
5
5
  export declare const getMessagesByConversation: (conversationId: number, filter: MessageFilter) => Promise<import("axios").AxiosResponse<any, any>>;
6
+ export declare const updateLastTimeReadConversation: (conversationId: number) => Promise<import("axios").AxiosResponse<any, any>>;
7
+ export declare const getImage: (content: string) => Promise<import("axios").AxiosResponse<any, any>>;
6
8
  export declare const completeConversation: (conversationId: number) => Promise<import("axios").AxiosResponse<any, any>>;
7
9
  export declare const apiMarkReadMessage: (conversationId: number, messageId: number) => Promise<import("axios").AxiosResponse<any, any>>;
8
10
  export declare const apiGetConversationByUserId: (userId: number) => Promise<import("axios").AxiosResponse<any, any>>;
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ declare type Props = {
3
+ open: boolean;
4
+ toggleDialog: () => void;
5
+ content: string;
6
+ downloadFile: (content: string) => void;
7
+ };
8
+ declare const ImageDetailDialog: ({ open, toggleDialog, content, downloadFile }: Props) => React.JSX.Element;
9
+ export default ImageDetailDialog;
@@ -2,5 +2,6 @@ declare const useDialog: () => {
2
2
  openConfirmDialog: boolean;
3
3
  toggleConfirmDialog: () => void;
4
4
  handleConfirm: (conversationId: number) => Promise<void>;
5
+ downloadFile: (content: string) => Promise<void>;
5
6
  };
6
7
  export default useDialog;
@@ -21,5 +21,6 @@ declare const useExamDetailView: (props: Props) => {
21
21
  handleChangeAnswerCount: (article: number, newAnswerCount: number, answerCount: number) => void;
22
22
  handleChangeQuestionCount: (article: number, questionCount: number, answerCount: number) => void;
23
23
  handleChangeCategory: (article: number, categoryId: number) => void;
24
+ handleDeleteArticle: (article: number) => void;
24
25
  };
25
26
  export default useExamDetailView;
@@ -5,5 +5,6 @@ export declare enum AuthenticationMessage {
5
5
  export declare enum Role {
6
6
  Student = "Student",
7
7
  Teacher = "Teacher",
8
- Admin = "Admin"
8
+ Admin = "Admin",
9
+ AcademyAdmin = "AcademyAdmin"
9
10
  }