/*
Real-time Online/Offline Charging System (OCS) for Telecom & ISP environments
Copyright (C) ITsysCOM GmbH

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>
*/

package migrator

import (
	"github.com/cgrates/cgrates/engine"
)

type MigratorDataDB interface {
	getv1Account() (v1Acnt *v1Account, err error)
	setV1Account(x *v1Account) (err error)
	remV1Account(id string) (err error)
	getV1ActionPlans() (v1aps *v1ActionPlans, err error)
	setV1ActionPlans(x *v1ActionPlans) (err error)
	remV1ActionPlans(x *v1ActionPlans) (err error)
	getV1Actions() (v1acs *v1Actions, err error)
	setV1Actions(x *v1Actions) (err error)
	remV1Actions(x v1Actions) (err error)
	getV1ActionTriggers() (v1acts *v1ActionTriggers, err error)
	setV1ActionTriggers(x *v1ActionTriggers) (err error)
	remV1ActionTriggers(x *v1ActionTriggers) (err error)
	getV1SharedGroup() (v1acts *v1SharedGroup, err error)
	setV1SharedGroup(x *v1SharedGroup) (err error)
	getV1Stats() (v1st *v1Stat, err error)
	setV1Stats(x *v1Stat) (err error)
	getV2Stats() (v2 *engine.StatQueue, err error)
	setV2Stats(v2 *engine.StatQueue) (err error)
	getV2ActionTrigger() (v2at *v2ActionTrigger, err error)
	setV2ActionTrigger(x *v2ActionTrigger) (err error)
	getv2Account() (v2Acnt *v2Account, err error)
	setV2Account(x *v2Account) (err error)
	remV2Account(id string) (err error)
	getV1AttributeProfile() (v1attrPrf *v1AttributeProfile, err error)
	setV1AttributeProfile(x *v1AttributeProfile) (err error)
	getV2ThresholdProfile() (v2T *v2Threshold, err error)
	setV2ThresholdProfile(x *v2Threshold) (err error)
	remV2ThresholdProfile(tenant, id string) (err error)
	getV1Alias() (v1a *v1Alias, err error)
	setV1Alias(al *v1Alias) (err error)
	remV1Alias(key string) (err error)
	getV1User() (v1u *v1UserProfile, err error)
	setV1User(us *v1UserProfile) (err error)
	remV1User(key string) (err error)
	getV1DerivedChargers() (v1d *v1DerivedChargersWithKey, err error)
	setV1DerivedChargers(dc *v1DerivedChargersWithKey) (err error)
	remV1DerivedChargers(key string) (err error)
	getV2AttributeProfile() (v2attrPrf *v2AttributeProfile, err error)
	setV2AttributeProfile(x *v2AttributeProfile) (err error)
	remV2AttributeProfile(tenant, id string) (err error)
	getV3AttributeProfile() (v3attrPrf *v3AttributeProfile, err error)
	setV3AttributeProfile(x *v3AttributeProfile) (err error)
	remV3AttributeProfile(tenant, id string) (err error)

	getV4AttributeProfile() (v4attrPrf *v4AttributeProfile, err error)
	setV4AttributeProfile(x *v4AttributeProfile) (err error)
	remV4AttributeProfile(tenant, id string) (err error)
	getV5AttributeProfile() (v5attrPrf *engine.AttributeProfile, err error)

	getV1Filter() (v1Fltr *v1Filter, err error)
	setV1Filter(x *v1Filter) (err error)
	remV1Filter(tenant, id string) (err error)
	getV4Filter() (v1Fltr *engine.Filter, err error)

	getSupplier() (spl *SupplierProfile, err error)
	setSupplier(spl *SupplierProfile) (err error)
	remSupplier(tenant, id string) (err error)

	getV1ChargerProfile() (v1chrPrf *engine.ChargerProfile, err error)
	getV1DispatcherProfile() (v1chrPrf *engine.DispatcherProfile, err error)
	getV1RouteProfile() (v1chrPrf *engine.RouteProfile, err error)

	getV3Stats() (v1st *engine.StatQueueProfile, err error)
	getV3ThresholdProfile() (v2T *engine.ThresholdProfile, err error)

	DataManager() *engine.DataManager
	close()
}
