package daenum

import (
	"github.com/kweaver-ai/kweaver-core/decision-agent/agent-backend/agent-factory/src/infra/common/cutil"
	"github.com/pkg/errors"
)

type DatasetObjectType string

const (
	DatasetObjTypeDir DatasetObjectType = "dir"
)

func (b DatasetObjectType) EnumCheck() (err error) {
	if !cutil.ExistsGeneric([]DatasetObjectType{DatasetObjTypeDir}, b) {
		err = errors.New("[DatasetObjectType]: invalid object type")
		return
	}

	return
}
