import*asTfrom'types';import{EType}from'types';letcustomApi:T.ICustomApiSettingsTypes={name:'Create Customer',// unique ; the folder in GitrequestMethod:T.ERequestMethod.POST,path:'/customers',enableCaching:false,resetCacheOnModificationOf:[// 'DB:mongodb:shop:customers', // a write to this table resets the cache of this API// 'CA:other_custom_api', // a call of that custom API resets it],acceptOnlyEncryptedData:false,// customApiTimeoutInSeconds: 10,errorList:['Unable to process this request'],// translatable in i18napiAccessType:T.EAPIAccessType.TOKEN_ACCESS,// authProviders: ['users_tg'],reqBodySchema:{first_name:{__type:EType.string,validations:{required:true}},phone:{__type:EType.number,validations:{min:5}},},fileUpload:{enable:false,allowFileUploadFields:[T.EFilesVariables.files],validations:{}},};module.exports=customApi;