import {ObjectTreesApplicationInterface} from '../../application.interface';
import {ExtensionProvider} from '../../integration/extension.provider';
import {
  HIDDEN_LABEL_TYPE,
  HIDDEN_NAME_TYPE,
  OPTIONAL_LABEL_TYPE,
  UTILS_COMMON_PROVIDER,
} from './utils-common.const';

export class UtilsCommonProvider extends ExtensionProvider {
  constructor(protected app: ObjectTreesApplicationInterface) {
    super(UTILS_COMMON_PROVIDER, app);

    this.objectTypes.push(
      HIDDEN_NAME_TYPE,
      OPTIONAL_LABEL_TYPE,
      HIDDEN_LABEL_TYPE,
    );
  }
}
