63 lines
1.6 KiB
JSON
63 lines
1.6 KiB
JSON
{
|
|
"entity": "CategoryResource",
|
|
"files": {
|
|
"controller": {
|
|
"path": "server/src/modules/category-resource/category-resource.controller.ts",
|
|
"must_contain": [
|
|
"@Controller('category-resources')",
|
|
"@UseGuards(",
|
|
"JwtAuthGuard",
|
|
"@Get()",
|
|
"@Post()",
|
|
"@Get(':id')",
|
|
"@Patch(':id')",
|
|
"@Delete(':id')"
|
|
],
|
|
"must_not_contain": [
|
|
"@Put(':id')"
|
|
],
|
|
"must_match_regex": [
|
|
"@Delete\\(':id'\\)[\\s\\S]{0,120}@Roles\\('admin'\\)|@Roles\\('admin'\\)[\\s\\S]{0,120}@Delete\\(':id'\\)"
|
|
]
|
|
},
|
|
"service": {
|
|
"path": "server/src/modules/category-resource/category-resource.service.ts",
|
|
"must_contain": [
|
|
"setListHeaders",
|
|
"_start",
|
|
"_end",
|
|
"partId",
|
|
"employeeCode"
|
|
],
|
|
"must_match_regex": [
|
|
"part:\\s*\\{\\s*is:\\s*\\{\\s*name",
|
|
"employee:\\s*\\{\\s*is:\\s*\\{\\s*fullName"
|
|
]
|
|
},
|
|
"create_dto": {
|
|
"path": "server/src/modules/category-resource/dto/create-category-resource.dto.ts",
|
|
"must_contain": [
|
|
"from 'class-validator'",
|
|
"partId?:",
|
|
"employeeCode?:",
|
|
"@IsUUID(",
|
|
"@IsString(",
|
|
"@IsOptional("
|
|
],
|
|
"must_not_contain": [
|
|
"id?:",
|
|
"id!:"
|
|
]
|
|
},
|
|
"update_dto": {
|
|
"path": "server/src/modules/category-resource/dto/update-category-resource.dto.ts",
|
|
"must_contain": [
|
|
"from 'class-validator'",
|
|
"@IsOptional(",
|
|
"partId?:",
|
|
"employeeCode?:"
|
|
]
|
|
}
|
|
}
|
|
}
|