import { getClient } from '@/services/BaseService' ; import { IDynoCollectionKeyValue } from '@dynomitetypes/dynomite' ; export async function addKeyFields ( clusterName , keyName , keyType , values ) { const result = await getClient ( ) . post ( `/REST/datastores/dynomite/clusters/${ clusterName }/fields/${ keyName }` , { type : keyType , values , } ) ; return result . data ; } export async function deleteKeyFields ( clusterName , keyName , keyType , values ) { const result = await getClient ( ) . delete ( `/REST/datastores/dynomite/clusters/${ clusterName }/fields/${ keyName }` , { data : { type : keyType , values , } , } ) ; return result . data ; } export async function updateKeyFields ( clusterName , keyName , keyType , values ) { const result = await getClient ( ) . put ( `/REST/datastores/dynomite/clusters/${ clusterName }/fields/${ keyName }` , { type : keyType , values , } ) ; return result . data ; }