import { CommonAPIHandler } from "../../zohocrmsdk.js"; import { Fields } from "../../core/com/zoho/crm/api/fields/fields.js"; /** * This class handles module field details. */ declare class Utility { static apiTypeVsDataType: Map; static apiTypeVsStructureName: Map; static newFile: boolean; static getModifiedModules: boolean; static forceRefresh: boolean; static moduleAPIName: string | null; static apiSupportedModule: { [key: string]: any; }; static assertNotNull(value: any, errorCode: any, errorMessage: any): Promise; static fileExistsFlow(moduleAPIName: string | null, recordFieldDetailsPath: string, lastModifiedTime: number | null): Promise; static verifyModuleAPIName(moduleName: string): Promise; static setHandlerAPIPath(moduleAPIName: string | null, handlerInstance: CommonAPIHandler | null): Promise; /** * This method to fetch field details of the current module for the current user and store the result in a JSON file. * @param {string} moduleAPIName - A String containing the CRM module API name. * @param {string} handlerInstance - A String containing CommonAPIHandler Instance. */ static getFields(moduleAPIName: string | null, handlerInstance?: CommonAPIHandler | null): Promise; /** * This method to fetch field details of the current module for the current user and store the result in a JSON file. * @param {string} moduleAPIName - A String containing the CRM module API name. * @param {string} handlerInstance - A String containing CommonAPIHandler Instance. */ static getFieldsInfo(moduleAPIName: string | null, handlerInstance?: CommonAPIHandler | null): Promise; static modifyFields(recordFieldDetailsPath: string, modifiedTime: number | null): Promise; static deleteFields(recordFieldDetailsJson: { [key: string]: any; }, module: string): Promise; static getFileName(): Promise; static getRelatedLists(relatedModuleName: string, moduleAPIName: string, commonAPIHandler: CommonAPIHandler): Promise; static checkRelatedListExists(relatedModuleName: string, modulerelatedListArray: any[], commonAPIHandler: CommonAPIHandler): Promise; static getRelatedListDetails(moduleAPIName: string): Promise; /** * This method is to get module field data from Zoho CRM. * @param {string} moduleAPIName - A String containing the CRM module API name. * @returns {object} An Object representing the Zoho CRM module field details. */ static getFieldsDetails(moduleAPIName: string): Promise; static verifyPhotoSupport(moduleAPIName: string): Promise; static getModuleNames(): Promise; static writeModuleMetaData(recordFieldDetailsPath: string, moduleData: any): Promise; static getModules(header: number | null): Promise; static refreshModules(): Promise; static getJSONObject(json: { [key: string]: any; }, key: string): Promise; static setDataType(fieldDetail: { [key: string]: any; }, field: Fields, moduleAPIName: string): Promise; static fillDataType(): Promise; getUserName(token: string | null): Promise; getUserOrgID(token: string | null): Promise; } export { Utility as Utility, Utility as MasterModel };