123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195 |
- declare namespace TASK_CREATE {
- interface DefaultChangeProps<T> {
- onChange?: (value?: T) => void;
- value?: T;
- }
- interface DefaultProps {
- visible?: boolean;
- onClose?: () => void;
- }
- type BookPlatFormProps = { platformName: string, id: number, platformKey: string }
- type BookListProps = { id: number, bookName: string, platformId: number }
- interface DispatchTaskCreate {
- settings: TASK_CREATE.SettingsProps
- setSettings: React.Dispatch<React.SetStateAction<TASK_CREATE.SettingsProps>>
- bookPlatForm: BookPlatFormProps[]
- bookList: BookListProps[]
- msgJobTypeList: {
- value: string;
- label: string;
- }[]
- onPreviewReset: () => void
- }
- interface previewDataProps {
- welcome?: any[];
- userInherit?: any[];
- massSending?: any[];
- highMassSending?: any[];
- friends?: any[];
- }
- interface WelcomeProps<T> extends DefaultProps, DefaultChangeProps<T> {
- value?: { [x: string]: any };
- }
- interface MassSendingProps<T> extends DefaultProps, DefaultChangeProps<T> {
- value?: {
- massSendingStrategy?: { [x: string]: any };
- massSendingContent?: { massSendingContentDTO: any };
- };
- onChange?: (value?: { [x: string]: any }, type?: string) => void;
- createType?: 'STRATEGY' | 'CONTENT'
- }
- interface HighMassSendingProps<T> extends DefaultProps, DefaultChangeProps<T> {
- value?: {
- highMassSendingStrategy?: { [x: string]: any };
- highMassSendingContent?: { massSendingContentDTO: any };
- };
- onChange?: (value?: { [x: string]: any }, type?: string) => void;
- createType?: 'STRATEGY' | 'CONTENT'
- }
- interface FriendsProps<T> extends DefaultProps, DefaultChangeProps<T> {
- value?: {
- friendsStrategy?: { [x: string]: any };
- friendsContent?: { friendsContentDTO: any };
- };
- onChange?: (value?: { [x: string]: any }, type?: string) => void;
- createType?: 'STRATEGY' | 'CONTENT'
- }
- interface UserInheritProps<T> extends DefaultProps, DefaultChangeProps<T> {
- value?: { [x: string]: any };
- }
- interface corpUsersProps {
- corpUserId: string,
- name: string,
- corpName: string,
- corpId: string,
- welcomeMsgContent?: any[],
- groupMsgContent?: any[],
- highGroupMsgContent?: any[],
- externalUserTransferContent?: any[],
- externalUserList?: any[]
- friendsTagContent?: any[],
- friendsMsgContent?: any[],
- }
- // 配置保存字段
- interface SettingsProps {
- corpUsers?: corpUsersProps[]; // 企微号列表
- bizType?: string; // 业务类型
- platform?: string; // 书城
- channel?: string; // 渠道
- templateProductId?: string; // 适用产品
- welcomeMsgTemplateDTO?: { [x: string]: any };
- massSendingStrategy?: { [x: string]: any };
- massSendingContent?: { massSendingContentDTO: any };
- highMassSendingStrategy?: { [x: string]: any };
- highMassSendingContent?: { massSendingContentDTO: any };
- userInherit?: { [x: string]: any };
- friendsStrategy?: { [x: string]: any };
- friendsContent?: { friendsContentDTO: any };
- }
- // 群发策略
- interface StrategyProps {
- onChange?: (value?: { [x: string]: any }, type: string) => void;
- value?: { [x: string]: any };
- }
- // 群发内容
- interface ContentProps {
- massSendingStrategy: { [x: string]: any };
- onChange?: (value?: { [x: string]: any }, type: string) => void;
- value?: { massSendingContentDTO: any };
- }
- interface FriendsContentProps {
- friendsStrategy: { [x: string]: any };
- onChange?: (value?: { [x: string]: any }, type: string) => void;
- value?: { friendsContentDTO: any };
- }
- interface ContentDTOProps {
- attachmentList?: Attachment[],
- text?: {
- content: string
- }
- }
- interface AddUpdateProps {
- taskName: string,
- contentDTO: ContentDTOProps
- corpId: string, // 企业 id
- corpUserIds: string[], // 企微号id列表
- startTime: string,
- endTime: string,
- timeRepeatType: TimeType
- sendTime: {
- hour: number
- minute: number
- nano: number
- second: number
- }
- sendDay: string // 发送日期
- groupId: number
- sendGroup: boolean, // 发送客户是群 true 其它 false
- externalUserFilterCondition?: ConditionDTO
- externalUserRemoveCondition?: ConditionDTO
- groupChatFilterCondition?: ConditionDTO
- groupChatRemoveCondition?: ConditionDTO
- repeatArray?: any[]
- id?: number
- }
- interface Attachment {
- file?: {
- fileUrl: string
- }
- image?: {
- picUrl: string
- }
- link?: {
- desc: string,
- picUrl: string,
- title: string,
- url: string
- }
- miniprogram?: {
- appId: string,
- page: string,
- picUrl: string,
- title: string
- }
- video?: {
- videoUrl: string
- }
- text?: {
- content: string
- }
- msgType: MsgType
- }
- interface MediaContentProps {
- fileUrl?: string
- fileName?: string,
- // fileSize?: string,
- id?: number
- imageUrl?: string
- linkDesc?: string
- linkPicurl?: string
- linkTitle?: string
- linkUrl?: string
- mediaType?: MediaTypeProps
- miniprogramAppid?: string
- miniprogramPage?: string
- miniprogramPicurl?: string
- miniprogramTitle?: string
- textContent?: string
- videoUrl?: string
- voiceUrl?: string
- mediaFormat?: string,
- mediaSize?: string,
- mediaPlayTime?: string,
- mediaWidth?: string,
- mediaHeight?: string
- }
- type CorpListProps = {
- corpId: string, corpName: string, weList: { corpUserId: string, name: string }[]
- }
- interface DispatchTaskDetails {
- bookPlatForm: BookPlatFormProps[]
- bookList: BookListProps[]
- }
- }
|