/**
 * @aurora-catalyst-generated
 * @source cliter/iam/tag.aurora.yaml
 */
import { IamTag } from '@api/graphql';
import { IamSequelizeTagRepository } from '@app/iam/tag';
import { HandlerMeta } from '@aurorajs.dev/core-back';
import { QueryStatement } from '@aurorajs.dev/core-common';
import { Injectable } from '@nestjs/common';

@Injectable()
export class IamGetTagsService {
  constructor(private readonly repository: IamSequelizeTagRepository) {}

  async main(
    queryStatement?: QueryStatement,
    constraint?: QueryStatement,
    handlerMeta?: HandlerMeta,
  ): Promise<IamTag[]> {
    return await this.repository.get({
      queryStatement,
      constraint,
      handlerMeta,
    });
  }
}
