Cleaned up import paths
This commit is contained in:
parent
3263db9f84
commit
f70b4b34e4
|
|
@ -3,10 +3,6 @@
|
||||||
"collection": "@nestjs/schematics",
|
"collection": "@nestjs/schematics",
|
||||||
"sourceRoot": "src",
|
"sourceRoot": "src",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"deleteOutDir": true,
|
"deleteOutDir": true
|
||||||
"assets": [
|
|
||||||
"generated/prisma/package.json"
|
|
||||||
],
|
|
||||||
"watchAssets": true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
7
package-lock.json
generated
7
package-lock.json
generated
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "pandektes-challenge",
|
"name": "pandektes-challenge",
|
||||||
"version": "0.0.1",
|
"version": "1.0.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "pandektes-challenge",
|
"name": "pandektes-challenge",
|
||||||
"version": "0.0.1",
|
"version": "1.0.0",
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"license": "UNLICENSED",
|
"license": "UNLICENSED",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
@ -67,6 +67,9 @@
|
||||||
"tsconfig-paths": "^4.2.0",
|
"tsconfig-paths": "^4.2.0",
|
||||||
"typescript": "^5.7.3",
|
"typescript": "^5.7.3",
|
||||||
"typescript-eslint": "^8.20.0"
|
"typescript-eslint": "^8.20.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=20"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@angular-devkit/core": {
|
"node_modules/@angular-devkit/core": {
|
||||||
|
|
|
||||||
21
package.json
21
package.json
|
|
@ -1,23 +1,15 @@
|
||||||
{
|
{
|
||||||
"name": "pandektes-challenge",
|
"name": "pandektes-challenge",
|
||||||
"version": "0.0.1",
|
"version": "1.0.0",
|
||||||
"description": "",
|
"description": "Legal document parsing API — extracts case law metadata from PDF/HTML using Gemini AI",
|
||||||
"author": "",
|
"author": "George W.",
|
||||||
"private": true,
|
"private": true,
|
||||||
"license": "UNLICENSED",
|
"license": "UNLICENSED",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "nest build",
|
"build": "nest build && cp src/generated/prisma/package.json dist/src/generated/prisma/package.json",
|
||||||
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
||||||
"start": "nest start",
|
"start": "nest start",
|
||||||
"start:dev": "nest start --watch",
|
"start:dev": "nest start --watch",
|
||||||
"start:debug": "nest start --debug --watch",
|
"start:prod": "npm run build && nest start",
|
||||||
"start:prod": "node dist/main",
|
|
||||||
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
|
|
||||||
"test": "jest",
|
|
||||||
"test:watch": "jest --watch",
|
|
||||||
"test:cov": "jest --coverage",
|
|
||||||
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
|
|
||||||
"test:e2e": "jest --config ./test/jest-e2e.json",
|
|
||||||
"postinstall": "prisma generate"
|
"postinstall": "prisma generate"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
@ -79,6 +71,9 @@
|
||||||
"typescript": "^5.7.3",
|
"typescript": "^5.7.3",
|
||||||
"typescript-eslint": "^8.20.0"
|
"typescript-eslint": "^8.20.0"
|
||||||
},
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=20"
|
||||||
|
},
|
||||||
"jest": {
|
"jest": {
|
||||||
"moduleFileExtensions": [
|
"moduleFileExtensions": [
|
||||||
"js",
|
"js",
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,8 @@ import { GraphQLUpload } from 'graphql-upload-ts';
|
||||||
import type { FileUpload } from 'graphql-upload-ts';
|
import type { FileUpload } from 'graphql-upload-ts';
|
||||||
import { CasesService } from './cases.service';
|
import { CasesService } from './cases.service';
|
||||||
import { CaseLaw } from './entities/case-law.entity';
|
import { CaseLaw } from './entities/case-law.entity';
|
||||||
import { StorageService } from '../common/storage/storage.service';
|
import { StorageService } from '@app/common/storage/storage.service';
|
||||||
import { CaseFileValidationPipe } from '../common/pipes/file-validation.pipe';
|
import { CaseFileValidationPipe } from '@app/common/pipes/file-validation.pipe';
|
||||||
import { CaseStatus } from '../generated/prisma/client.js';
|
import { CaseStatus } from '../generated/prisma/client.js';
|
||||||
|
|
||||||
@Resolver(() => CaseLaw)
|
@Resolver(() => CaseLaw)
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
import { Injectable, NotFoundException, BadRequestException, Logger, Inject } from '@nestjs/common';
|
import { Injectable, NotFoundException, BadRequestException, Logger, Inject } from '@nestjs/common';
|
||||||
import { PRISMA_CLIENT, type PrismaClientInstance } from '../common/prisma/prisma.service';
|
import { PRISMA_CLIENT, type PrismaClientInstance } from '@app/common/prisma/prisma.service';
|
||||||
import { isUuid } from 'src/common/utils/string.utils';
|
import { isUuid } from '@app/common/utils/string.utils';
|
||||||
import { Queue } from 'bullmq';
|
import { Queue } from 'bullmq';
|
||||||
import { StorageService } from 'src/common/storage/storage.service';
|
import { StorageService } from '@app/common/storage/storage.service';
|
||||||
import { InjectQueue } from '@nestjs/bullmq';
|
import { InjectQueue } from '@nestjs/bullmq';
|
||||||
import { CaseStatus } from 'src/generated/prisma/enums';
|
import { CaseStatus } from '../generated/prisma/client.js';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class CasesService {
|
export class CasesService {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import { QueueEventsListener, QueueEventsHost, OnQueueEvent, InjectQueue } from '@nestjs/bullmq';
|
import { QueueEventsListener, QueueEventsHost, OnQueueEvent, InjectQueue } from '@nestjs/bullmq';
|
||||||
import { Queue } from 'bullmq';
|
import { Queue } from 'bullmq';
|
||||||
import { PRISMA_CLIENT, type PrismaClientInstance } from '../../common/prisma/prisma.service';
|
import { PRISMA_CLIENT, type PrismaClientInstance } from '@app/common/prisma/prisma.service';
|
||||||
import { CaseStatus } from '../../generated/prisma/client.js';
|
import { CaseStatus } from '../../generated/prisma/client.js';
|
||||||
import { Logger, Inject } from '@nestjs/common';
|
import { Logger, Inject } from '@nestjs/common';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import { Global, Module } from '@nestjs/common';
|
||||||
import {
|
import {
|
||||||
PrismaService,
|
PrismaService,
|
||||||
PRISMA_CLIENT,
|
PRISMA_CLIENT,
|
||||||
} from './prisma.service.js';
|
} from './prisma.service';
|
||||||
|
|
||||||
@Global()
|
@Global()
|
||||||
@Module({
|
@Module({
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,11 @@
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"outDir": "./dist",
|
"outDir": "./dist",
|
||||||
"baseUrl": "./",
|
"baseUrl": "./",
|
||||||
"paths": {},
|
"paths": {
|
||||||
|
"@app/*": [
|
||||||
|
"./src/*"
|
||||||
|
]
|
||||||
|
},
|
||||||
"incremental": true,
|
"incremental": true,
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
"strictNullChecks": true,
|
"strictNullChecks": true,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue