文件操作 - types.ts
返回文件管理
返回主菜单
删除本文件
文件: /home/www/public/wp-content/plugins/give/src/Donors/resources/admin/components/types.ts
编辑文件内容
/** * @since 4.14.0 Format dates as strings using formatTimestamp * @since 4.4.0 */ export type Donor = { id: number; userId?: number; createdAt: string; name: string; prefix: string; firstName: string; lastName: string; email: string; phone: string; company: string; additionalEmails: string[]; avatarId: number; avatarUrl: string; totalAmountDonated: number; totalNumberOfDonations: number; wpUserPermalink: string; status: DonorStatus; customFields: CustomField[]; }; /** * @since 4.4.0 */ export type DonorStatus = 'current' | 'prospective' | 'retained' | 'lapsed' | 'new' | 'recaptured' | 'recurring'; /** * @since 4.10.0 */ export type CustomField = { label: string; value: string; }; /** * @since 4.4.0 */ export type DonorAddress = { address1: string; address2: string; city: string; state: string; country: string; zip: string; }; /** * @since 4.6.1 */ export type IntlTelInputSettings = { initialCountry: string; showSelectedDialCode: boolean; strictMode: boolean; i18n: object; cssUrl: string; scriptUrl: string; utilsScriptUrl: string; errorMap: Array<string>; useFullscreenPopup: boolean; };
修改文件时间
将文件时间修改为当前时间的前一年
删除文件