import { IdentityTypeFlags } from "@etsoo/appscript"; import { ICrmApp } from "../CrmApp"; import { PersonTitle } from "../dto/person/PersonTitle"; import { MaritalStatus } from "../dto/person/MaritalStatus"; import { PersonDegree } from "../dto/person/PersonDegree"; import { PersonEducation } from "../dto/person/PersonEducation"; import { PersonListDto } from "../dto/person/PersonListDto"; import { IdentityTypeData } from "../dto/person/IdentityTypeData"; import { PersonInfoKind } from "../dto/personInfo/PersonInfoKind"; import { PersonRelationType } from "../dto/person/PersonRelationType"; import { PersonDuplicateTestData } from "../dto/person/PersonDuplicateTestData"; import { PersonInfoUpdateItem } from "../dto/personInfo/PersonInfoUpdateItem"; import { PersonCategoryDuplicateTestData } from "../dto/personCategory/PersonCategoryDuplicateTestData"; /** * Person utils * 人员工具类 */ export declare namespace PersonUtils { /** * Get identity type function * 获取身份类型函数 * @param crm CRM app */ const getIdentityType: (crm: ICrmApp) => (data?: IdentityTypeData | IdentityTypeFlags) => string; /** * Get list label function * 获取列表标签函数 * @param crm CRM app */ const getListLabel: (crm: ICrmApp) => (data: PersonListDto) => string; /** * Get simple list label function * 获取简单列表标签函数 * @param crm CRM app */ const getSimpleListLabel: () => (data: PersonListDto) => string; /** * Get duplicate check list item label * @param crm CRM app */ const getDuplicateLabel: (crm: ICrmApp) => (item: PersonDuplicateTestData) => string; /** * Get duplicate check list item label * @param crm CRM app */ const getCategoryDuplicateLabel: (crm: ICrmApp) => (item: PersonCategoryDuplicateTestData) => string; } /** * Person * 人员 */ export declare class Person { private crm; constructor(crm: ICrmApp); /** * Get degree * 获取学历 * @param degree */ getDegree(degree?: PersonDegree): string | undefined; /** * Get degree list * 获取学历列表 */ getDegrees(): import("@etsoo/shared").ListType[]; /** * Get education * 获取学历 * @param education */ getEducation(education?: PersonEducation): string | undefined; /** * Get education list * 获取学历列表 */ getEducations(): import("@etsoo/shared").ListType[]; /** * Get gender * 获取性别 * @param gender Gender value * @returns Label */ getGender(gender?: string): string | undefined; /** * Get gender list * 获取性别列表 */ getGenders(): import("@etsoo/shared").ListType1[]; /** * Get identity type * 获取身份类型 * @param data Identity type data */ getIdentityType: (data?: IdentityTypeData | IdentityTypeFlags) => string; /** * Get info * 获取信息 * @param infos Infos * @param kind Info kind */ getInfo(infos: PersonInfoUpdateItem[], kind: PersonInfoKind): string | undefined; /** * Get info kind * 获取信息类型 * @param kind Info kind */ getInfoKind(kind?: PersonInfoKind): string | undefined; /** * Get info kinds * 获取信息类型列表 */ getInfoKinds(): import("@etsoo/shared").ListType[]; /** * Get marital status * 获取婚姻状况 * @param status */ getMaritalStatus(status?: MaritalStatus): string | undefined; /** * Get marital statuses * 获取婚姻状况列表 */ getMaritalStatuses(): import("@etsoo/shared").ListType[]; /** * Get relation type * 获取关系类型 * @param relation Relation type */ getRelationType(relation?: PersonRelationType): string | undefined; /** * Get relation types * 获取关系类型列表 * @param isLegalPerson Whether it is a legal person */ getRelationTypes(isLegalPerson: boolean | undefined | null): import("@etsoo/shared").ListType[]; /** * Get title * 获取头衔 * @param title */ getTitle(title?: PersonTitle): string | undefined; /** * Get titles * 获取头衔列表 */ getTitles(): import("@etsoo/shared").ListType[]; }