import {
  BaseService
} from "./chunk-W72PRNJY.js";

// runtime/base-classes/integrated-entity-service.ts
var IntegratedEntityService = class extends BaseService {
  /**
   * Find a single entity by its external CRM identifier.
   */
  findByExternalId(externalId) {
    return this.repository.findByExternalId(externalId);
  }
  /**
   * Find multiple entities by external CRM identifiers.
   */
  findManyByExternalIds(externalIds) {
    return this.repository.findManyByExternalIds(externalIds);
  }
  /**
   * Find all entities owned by a specific user.
   */
  findAllByUser(userId) {
    return this.repository.findAllByUserId(userId);
  }
  /**
   * Find entities visible to a user (ownership + sharing rules).
   * Concrete services may override with domain-specific visibility logic.
   */
  findVisibleByUser(userId) {
    return this.repository.findVisibleByUserId(userId);
  }
};

export {
  IntegratedEntityService
};
//# sourceMappingURL=chunk-2VHZ7EKC.js.map