'use strict';
import { eq } from 'drizzle-orm';
import { getQuery } from '../../../../../meta/server/web/drizzle.js';
import { applyFilterToQuery, getTableColumn, runQuery } from '../../../../../db/drizzle-queries.js';
import { getDbSchema } from '../../../../../db/db-schema.js';
import { schemaNames, columnNames } from '../../../../../db/constants/schema-names.js';

var __defProp=Object['defineProperty'],__name=(_0x40f4b2,_0x141556)=>__defProp(_0x40f4b2,'name',{'value':_0x141556,'configurable':!![]});async function getListByPermissionPackageId(_0x833f93){const _0x31b46d=getDbSchema(),_0x321ea5=_0x31b46d[schemaNames['permissionPackageToPermissionSchema']],{query:_0x2170e4}=await getQuery(_0x321ea5);applyFilterToQuery(_0x2170e4,eq(getTableColumn(_0x321ea5,columnNames['permissionPackageId']),_0x833f93));const _0x2ce7e7=await runQuery(_0x2170e4);return _0x2ce7e7;}__name(getListByPermissionPackageId,'getListByPermissionPackageId');

export { getListByPermissionPackageId };
