package dialectsfcrm

import querycodec "github.com/pingcap-inc/nexuscrm-app-packs/sfcrm/querycodec"

// Transitional aliases keep non-query CRM surfaces on the same L1 history
// object facts. The sfcrm/querycodec module is the sole implementation owner.
const (
	historyDefaultBatchSize       = querycodec.HistoryBatchSize
	historySuffix                 = querycodec.HistorySuffix
	opportunityFieldHistoryObject = querycodec.OpportunityFieldHistoryObject
	opportunityHistoryObject      = querycodec.OpportunityHistoryObject
)

func isHistoryObject(name string) bool {
	return querycodec.IsHistoryObject(name)
}

func fieldHistoryParentSupportsFieldHistory(parentObjectName string) bool {
	return querycodec.SupportsFieldHistory(parentObjectName)
}

func parentObjectFromHistoryName(name string) string {
	return querycodec.ParentObjectFromHistoryName(name)
}

func historyParentFieldName(historyObjectName string) string {
	return querycodec.HistoryParentFieldName(historyObjectName)
}
