mirror of
https://github.com/samiyev/puaros.git
synced 2025-12-27 23:06:54 +05:00
- Extract DDD folder names and repository method suggestions to constants - Fix regex pattern to support relative paths (domain/... without leading /) - Add non-aggregate folder exclusions (constants, shared, factories, etc.) - Remove findAll, exists, count from ORM_QUERY_METHODS (valid domain methods) - Add exists, count, countBy patterns to domainMethodPatterns - Add aggregate boundary test examples
22 lines
383 B
TypeScript
22 lines
383 B
TypeScript
export const ORM_QUERY_METHODS = [
|
|
"findOne",
|
|
"findMany",
|
|
"findFirst",
|
|
"findAndCountAll",
|
|
"insert",
|
|
"insertMany",
|
|
"insertOne",
|
|
"updateOne",
|
|
"updateMany",
|
|
"deleteOne",
|
|
"deleteMany",
|
|
"select",
|
|
"query",
|
|
"execute",
|
|
"run",
|
|
"exec",
|
|
"aggregate",
|
|
] as const
|
|
|
|
export type OrmQueryMethod = (typeof ORM_QUERY_METHODS)[number]
|