interface.ts 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. export interface customerServicePayloadType {
  2. customerServicePlugin: number;
  3. src: string;
  4. content: any;
  5. }
  6. export interface ratingTemplateType {
  7. allowClientSendRating: boolean;
  8. effectiveHour: number;
  9. head: string;
  10. tail: string;
  11. type: number;
  12. menu: { content: string; id: string }[];
  13. expireTime: number;
  14. selected?: { content: string; id: string };
  15. sessionId?: string;
  16. }
  17. export interface TextMessagePayload {
  18. text: string;
  19. }
  20. export interface CustomMessagePayload {
  21. data: string;
  22. description: string;
  23. extension: string;
  24. }
  25. export interface IMessageModel {
  26. ID: string;
  27. type: string;
  28. payload: any;
  29. conversationID: string;
  30. conversationType: string;
  31. to: string;
  32. from: string;
  33. flow: string;
  34. time: number;
  35. status: string;
  36. isRevoked: boolean;
  37. priority: string;
  38. nick: string;
  39. avatar: string;
  40. isPeerRead: boolean;
  41. nameCard: string;
  42. atUserList: Array<string>;
  43. cloudCustomData: string;
  44. isDeleted: boolean;
  45. isModified: boolean;
  46. needReadReceipt: boolean;
  47. readReceiptInfo: any;
  48. isBroadcastMessage: boolean;
  49. isSupportExtension: boolean;
  50. receiverList?: Array<string>;
  51. revoker: string;
  52. sequence: number;
  53. progress: number;
  54. revokerInfo: {
  55. userID: string;
  56. nick: string;
  57. avatar: string;
  58. };
  59. revokeReason: string;
  60. hasRiskContent: boolean;
  61. [key: string]: any;
  62. }