import type { Attachment, Model, User } from "timi-web-api"; import type { Customer } from "@/types/Customer"; /** 客户跟进提醒业务状态。 */ export type FollowUpReminderStatus = "PENDING" | "COMPLETED"; /** 客户跟进提醒来源。 */ export type FollowUpReminderSource = "MANUAL" | "SYSTEM"; /** 客户跟进提醒通知方式。 */ export type FollowUpReminderNotifyChannel = "INTERNAL" | "SMS"; /** 系统创建提醒的扩展信息快照。 */ export type FollowUpReminderMetadata = { /** 业务类型,BIRTHDAY 为客户生日提醒 */ bizType?: string; /** 生日对应的公历日期 */ birthdaySolar?: string; /** 生日对应的农历月日,仅农历生日有值 */ birthdayLunar?: string; /** true 为闰月,仅农历生日有值 */ leapMonth?: boolean; }; /** 跟进提醒附件请求项。 */ export type FollowUpReminderAttachment = Partial & { name?: string; title?: string; }; /** 客户跟进提醒。 */ export type FollowUpReminder = { storeId?: string; customerId?: string; responsibleUserId?: string; content?: string; remindAt?: number; status?: FollowUpReminderStatus; source?: FollowUpReminderSource; /** 系统创建的幂等键,手动创建为空 */ sourceKey?: string; metadata?: FollowUpReminderMetadata; internalNotifyEnabled?: boolean; smsNotifyEnabled?: boolean; internalNotifyDetailId?: string; smsNotifyDetailId?: string; completedBy?: string; completedAt?: number; createdBy?: string; updatedBy?: string; notifyChannelList?: FollowUpReminderNotifyChannel[]; customer?: Customer; responsibleUser?: Partial; attachmentList?: FollowUpReminderAttachment[]; } & Model; /** 客户跟进提醒列表查询参数。 */ export type FollowUpReminderPage = { index: number; size: number; storeId?: string; customerId?: string; responsibleUserId?: string; status?: FollowUpReminderStatus; beginRemindAt?: number; endRemindAt?: number; }; /** 客户跟进提醒创建或修改请求。 */ export type FollowUpReminderPayload = { id?: string; storeId?: string; customerId: string; responsibleUserId: string; content: string; remindAt: number; notifyChannelList: FollowUpReminderNotifyChannel[]; attachmentList: FollowUpReminderAttachment[]; };