import { TenantRecord } from "./TenantRecord.mjs";
import { __decorateMetadata } from "../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.mjs";
import { __decorate } from "../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.mjs";
import { __decorateParam } from "../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateParam.mjs";
import { EventEmitter, InjectionSymbols, Repository, inject, injectable } from "@credo-ts/core";

//#region ../tenants/src/repository/TenantRepository.ts
var _ref;
let TenantRepository = class TenantRepository$1 extends Repository {
	constructor(storageService, eventEmitter) {
		super(TenantRecord, storageService, eventEmitter);
	}
	async findByLabel(agentContext, label) {
		return this.findByQuery(agentContext, { label });
	}
};
TenantRepository = __decorate([
	injectable(),
	__decorateParam(0, inject(InjectionSymbols.StorageService)),
	__decorateMetadata("design:paramtypes", [Object, typeof (_ref = typeof EventEmitter !== "undefined" && EventEmitter) === "function" ? _ref : Object])
], TenantRepository);

//#endregion
export { TenantRepository };
//# sourceMappingURL=TenantRepository.mjs.map