interface.ts 1.4 KB

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