import { ListType } from "@etsoo/shared"; import { ICrmApp } from "../CrmApp"; import { AppModule } from "../dto/system/AppModule"; import { CustomerType } from "../dto/system/CustomerType"; import { IdentityTypeFlags } from "@etsoo/appscript"; import { FeatureTagKind } from "../dto/tag/FeatureTagKind"; /** * System * 系统 */ export declare class System { private crm; constructor(crm: ICrmApp); /** * Can manage cultures * 是否可以管理文化 */ canManageCultures(): boolean; /** * Get customer type label * 获取客户类型标签 * @param type Customer type * @returns Customer type label */ getCustomerType(type?: CustomerType): string | undefined; /** * Get customer types * 获取客户类型 */ getCustomerTypes(): ListType[]; /** * Get default culture * 获取默认文化 */ getDefaultCulture(): string; /** * Get default currency * 获取默认币种 */ getDefaultCurrency(): string; /** * Get module label * 获取模块标签 * @param module Module * @returns Module label */ getModule(module?: AppModule): string | undefined; private getModuleLabel; /** * Get all modules * 获取所有模块 */ getModules(): ListType[]; /** * Get tag kind from identity type * 从身份类型获取标签类型 * @param type Identity type * @returns Result */ identityTypeToTagKind(type: IdentityTypeFlags): FeatureTagKind; }