@koalarx/nest-cli 1.2.23 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/README.md +35 -1
  2. package/code-base/env/config.txt +0 -2
  3. package/code-base/startup-project/.eslintrc.js +12 -10
  4. package/code-base/startup-project/.vscode/launch.json +9 -24
  5. package/code-base/startup-project/Dockerfile +26 -5
  6. package/code-base/startup-project/package.json +11 -14
  7. package/code-base/startup-project/prisma/scripts/fix-extensions.mjs +31 -0
  8. package/code-base/startup-project/src/test/setup-e2e.ts +7 -2
  9. package/code-base/startup-project/tsconfig.build-prisma.json +21 -0
  10. package/code-base/startup-project/tsconfig.build.json +7 -2
  11. package/code-base/startup-project/tsconfig.json +1 -2
  12. package/commands/new-project/index.ts +1 -1
  13. package/index.js +2 -2
  14. package/package.json +1 -1
  15. package/code-base/startup-project/prisma/generated/browser.ts +0 -34
  16. package/code-base/startup-project/prisma/generated/client.ts +0 -54
  17. package/code-base/startup-project/prisma/generated/commonInputTypes.ts +0 -172
  18. package/code-base/startup-project/prisma/generated/enums.ts +0 -15
  19. package/code-base/startup-project/prisma/generated/internal/class.ts +0 -210
  20. package/code-base/startup-project/prisma/generated/internal/prismaNamespace.ts +0 -927
  21. package/code-base/startup-project/prisma/generated/internal/prismaNamespaceBrowser.ts +0 -116
  22. package/code-base/startup-project/prisma/generated/models/Person.ts +0 -1497
  23. package/code-base/startup-project/prisma/generated/models/PersonAddress.ts +0 -1265
  24. package/code-base/startup-project/prisma/generated/models/PersonPhone.ts +0 -1315
  25. package/code-base/startup-project/prisma/generated/models.ts +0 -14
  26. package/code-base/startup-project/vitest.config.e2e.mts +0 -19
  27. package/code-base/startup-project/vitest.config.mts +0 -18
package/README.md CHANGED
@@ -30,7 +30,41 @@ bun start:dev
30
30
 
31
31
  > **Nota:** A CLI utiliza **Bun** por debaixo dos panos para instalar os pacotes do projeto no comando `koala-nest new`. Isso torna o processo mais rápido e eficiente.
32
32
 
33
- ## 📖 Documentação Completa
33
+ ## Comandos Disponíveis
34
+
35
+ ### `prisma:generate`
36
+
37
+ Comando especializado que substitui o comando nativo do Prisma para compatibilidade com a biblioteca `@koalarx/nest`.
38
+
39
+ ```bash
40
+ bun run prisma:generate
41
+ ```
42
+
43
+ #### O problema:
44
+
45
+ As versões mais recentes do Prisma utilizam um provider que gera arquivos de cliente com importações que não funcionam corretamente ao ser integrados com a biblioteca `@koalarx/nest`. O comando nativo `prisma generate` não resolve esses problemas automaticamente.
46
+
47
+ #### A solução:
48
+
49
+ Este comando executa uma sequência de operações para corrigir os importes e garantir compatibilidade total:
50
+
51
+ 1. **`prisma generate`** — Gera o cliente Prisma baseado no schema atual
52
+ 2. **`tsc --project tsconfig.build-prisma.json`** — Compila os arquivos TypeScript gerados na pasta `prisma/generated` para JavaScript utilizando a configuração específica do Prisma
53
+ 3. **`bun prisma/scripts/fix-extensions.mjs`** — Corrige os importes ESM dos arquivos compilados, adicionando extensões `.js` onde necessário
54
+
55
+ #### Por que não usar `prisma generate` diretamente:
56
+
57
+ O comando nativo do Prisma gera importações relativas sem extensão (ex: `from './generated'`), que não funcionam corretamente com ESM e causam incompatibilidades com a biblioteca `@koalarx/nest`. Este comando customizado resolve isso automaticamente.
58
+
59
+ #### Quando executar:
60
+
61
+ - Após modificar `prisma/schema.prisma`
62
+ - Ao atualizar as versões do Prisma ou NestJS
63
+ - Antes de fazer deploy em produção (incluído no CI/CD)
64
+
65
+ > **Importante:** Sempre use `bun run prisma:generate` ao invés do comando nativo `prisma generate` ao trabalhar com projetos `@koalarx/nest`.
66
+
67
+ ## Documentação Completa
34
68
 
35
69
  Para guias detalhados, exemplos avançados e referência de features, consulte:
36
70
 
@@ -1,8 +1,6 @@
1
1
  DATABASE_URL="postgres://postgres:root@localhost:5432/[projectName]"
2
- DIRECT_URL="postgres://postgres:root@localhost:5432/[projectName]"
3
2
 
4
3
  NODE_ENV="develop"
5
- ENVIRONMENT_TYPE="develop"
6
4
 
7
5
  PRISMA_QUERY_LOG="false"
8
6
 
@@ -3,18 +3,20 @@ module.exports = {
3
3
  NodeJS: true,
4
4
  },
5
5
  extends: [
6
- '@rocketseat/eslint-config/node',
7
- 'plugin:vitest-globals/recommended',
6
+ "@rocketseat/eslint-config/node",
7
+ "plugin:vitest-globals/recommended",
8
8
  ],
9
9
  env: {
10
- 'vitest-globals/env': true,
10
+ "vitest-globals/env": true,
11
11
  },
12
- ignorePatterns: ['*.json'],
12
+ ignorePatterns: ["*.json"],
13
13
  rules: {
14
- 'no-unused-vars': 'off',
15
- 'no-useless-constructor': 'off',
16
- 'no-new': 'off',
17
- 'no-use-before-define': 'off',
18
- '@typescript-eslint/no-explicit-any': 'off',
14
+ "no-unused-vars": "off",
15
+ "no-useless-constructor": "off",
16
+ "no-new": "off",
17
+ "no-use-before-define": "off",
18
+ "@typescript-eslint/no-explicit-any": "off",
19
+ "@typescript-eslint/no-unsafe-function-type": "off",
20
+ "@typescript-eslint/ban-ts-comment": "off",
19
21
  },
20
- }
22
+ };
@@ -6,36 +6,21 @@
6
6
  "request": "launch",
7
7
  "name": "Nest Debug (Bun)",
8
8
  "runtimeExecutable": "bun",
9
- "runtimeArgs": ["run", "start:debug"],
9
+ "runtimeArgs": [
10
+ "run",
11
+ "start:debug"
12
+ ],
10
13
  "console": "integratedTerminal",
11
14
  "restart": true,
12
- "protocol": "auto",
13
- "port": 9229,
14
15
  "autoAttachChildProcesses": true
15
16
  },
16
17
  {
17
- "type": "node",
18
+ "type": "bun",
18
19
  "request": "launch",
19
- "name": "Debug Unit Tests (Bun)",
20
- "runtimeExecutable": "bun",
21
- "program": "${workspaceFolder}/node_modules/vitest/vitest.mjs",
22
- "args": ["run", "${relativeFile}"],
23
- "autoAttachChildProcesses": true,
24
- "skipFiles": ["<node_internals>/**"],
25
- "smartStep": true,
26
- "console": "integratedTerminal"
20
+ "name": "Debug Bun File",
21
+ "program": "${file}", // This runs the currently active file
22
+ "cwd": "${workspaceFolder}",
23
+ "stopOnEntry": false // Set to true to pause on the first line
27
24
  },
28
- {
29
- "type": "node",
30
- "request": "launch",
31
- "name": "Debug E2E Tests (Bun)",
32
- "runtimeExecutable": "bun",
33
- "program": "${workspaceFolder}/node_modules/vitest/vitest.mjs",
34
- "args": ["run", "${relativeFile}", "--config", "./vitest.config.e2e.ts"],
35
- "autoAttachChildProcesses": true,
36
- "skipFiles": ["<node_internals>/**"],
37
- "smartStep": true,
38
- "console": "integratedTerminal"
39
- }
40
25
  ]
41
26
  }
@@ -1,20 +1,41 @@
1
- ARG BUN_VERSION=latest
2
- FROM oven/bun:${BUN_VERSION}
1
+ ARG BUN_VERSION=1.3.5-debian
2
+
3
+ # ====== STAGE 1: BUILDER ======
4
+ FROM oven/bun:${BUN_VERSION} AS builder
3
5
 
4
6
  # Criando diretório de trabalho
5
7
  WORKDIR /home/bun/app
6
8
 
7
9
  # Copiando arquivos de configuração com permissões
8
- COPY --chown=bun:bun package.json bun.lockb ./
10
+ COPY package.json bun.lock ./
9
11
 
10
12
  # Instalando dependências
11
13
  RUN bun install --frozen-lockfile
12
14
 
13
15
  # Copiando o restante do código com permissões
14
- COPY --chown=bun:bun . .
16
+ COPY . .
17
+
18
+ ENV DATABASE_URL=" "
15
19
 
16
20
  # Compilando o app
17
- RUN bun run build
21
+ RUN bun run prisma:generate && bun run build
22
+
23
+ # ====== STAGE 2: RUNTIME ======
24
+ FROM oven/bun:${BUN_VERSION}
25
+
26
+ # Create a non-root user and group
27
+ RUN apt-get update -y && \
28
+ apt-get install -y openssl curl && \
29
+ apt-get clean
30
+
31
+ # Criando diretório de trabalho
32
+ WORKDIR /home/bun/app
33
+
34
+ # Copiando apenas os arquivos necessários do builder
35
+ COPY --from=builder --chown=bun:bun --chmod=555 /home/bun/app/node_modules ./node_modules
36
+ COPY --from=builder --chown=bun:bun --chmod=555 /home/bun/app/prisma ./prisma
37
+ COPY --from=builder --chown=bun:bun --chmod=555 /home/bun/app/dist ./dist
38
+ COPY --from=builder --chown=bun:bun --chmod=555 /home/bun/app/package.json ./package.json
18
39
 
19
40
  # Alterando o usuário para "bun" por segurança
20
41
  USER bun
@@ -6,17 +6,18 @@
6
6
  "private": true,
7
7
  "license": "UNLICENSED",
8
8
  "scripts": {
9
- "build": "nest build",
10
- "start": "nest start",
11
- "start:dev": "nest start --watch",
12
- "start:debug": "nest start --debug --watch",
9
+ "prisma:generate": "prisma generate && tsc --project tsconfig.build-prisma.json && bun prisma/scripts/fix-extensions.mjs",
10
+ "build": "nest build app",
11
+ "start": "nest start app",
12
+ "start:dev": "nest start app --watch",
13
+ "start:debug": "nest start app --debug --watch",
13
14
  "start:prod": "bun dist/host/main.js",
14
15
  "lint": "prettier --end-of-line lf --write . && bunx eslint --fix src/**/* && bunx eslint --fix .eslintrc.js",
15
- "test": "vitest run",
16
- "test:watch": "vitest",
17
- "test:cov": "vitest run --coverage",
18
- "test:debug": "vitest --inspect-brk --inspect --logHeapUsage --threads=false",
19
- "test:e2e": "vitest run --config ./vitest.config.e2e.mts",
16
+ "test": "bun test src/**/*.spec.ts",
17
+ "test:watch": "bun test --watch src/**/*.spec.ts",
18
+ "test:cov": "bun test --coverage src/**/*.spec.ts",
19
+ "test:debug": "bun test --inspect-brk src/**/*.spec.ts",
20
+ "test:e2e": "bun test --preload ./src/test/setup-e2e.ts src/**/*.e2e-spec.ts",
20
21
  "test:all": "bun run test && bun run test:e2e"
21
22
  },
22
23
  "dependencies": {
@@ -60,7 +61,6 @@
60
61
  "@types/supertest": "^6.0.2",
61
62
  "@typescript-eslint/eslint-plugin": "^8.27.0",
62
63
  "@typescript-eslint/parser": "^8.27.0",
63
- "@vitest/coverage-v8": "^3.0.9",
64
64
  "eslint": "^8.57.0",
65
65
  "eslint-config-prettier": "^8.3.0",
66
66
  "eslint-plugin-prettier": "^4.0.0",
@@ -70,10 +70,7 @@
70
70
  "prisma": "^7.2.0",
71
71
  "source-map-support": "^0.5.20",
72
72
  "supertest": "^7.1.0",
73
- "tsconfig-paths": "^4.2.0",
74
73
  "typescript": "^5.1.3",
75
- "unplugin-swc": "^1.5.1",
76
- "vite-tsconfig-paths": "^5.1.4",
77
- "vitest": "^3.0.9"
74
+ "unplugin-swc": "^1.5.1"
78
75
  }
79
76
  }
@@ -0,0 +1,31 @@
1
+ #!/usr/bin/env node
2
+ import fs from 'fs';
3
+ import path from 'path';
4
+ import { fileURLToPath } from 'url';
5
+
6
+ const __dirname = path.dirname(fileURLToPath(import.meta.url));
7
+ const dir = path.join(__dirname, '..', 'generated');
8
+
9
+ function fix(p) {
10
+ const files = fs.readdirSync(p);
11
+ for (const file of files) {
12
+ const full = path.join(p, file);
13
+ if (fs.statSync(full).isDirectory()) {
14
+ fix(full);
15
+ } else if (file.endsWith('.js')) {
16
+ let content = fs.readFileSync(full, 'utf8');
17
+ const original = content;
18
+ // Adiciona .js a importações relativas ESM sem extensão
19
+ content = content.replace(/from\s+["'](\.\/[^"']+)["']/g, (match, p1) => {
20
+ if (p1.endsWith('.js') || p1.includes('node:') || p1.startsWith('@')) return match;
21
+ return `from "${p1}.js"`;
22
+ });
23
+ if (content !== original) fs.writeFileSync(full, content, 'utf8');
24
+ }
25
+ }
26
+ }
27
+
28
+ try { fix(dir); } catch (e) {
29
+ console.error('Error fixing extensions:', e);
30
+ process.exit(1);
31
+ }
@@ -3,5 +3,10 @@ import { dropE2EDatabase } from '@koalarx/nest/test/utils/drop-e2e-database'
3
3
 
4
4
  let schemaId: string
5
5
 
6
- beforeAll(() => (schemaId = createE2EDatabase()), 40000)
7
- afterAll(async () => dropE2EDatabase(schemaId))
6
+ beforeAll(async () => {
7
+ schemaId = await createE2EDatabase('bun')
8
+ }, 60000)
9
+
10
+ afterAll(async () => {
11
+ await dropE2EDatabase(schemaId)
12
+ })
@@ -0,0 +1,21 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "outDir": "prisma/generated",
5
+ "module": "ES2022",
6
+ "moduleResolution": "bundler",
7
+ "target": "ES2022",
8
+ "declarationMap": false,
9
+ "sourceMap": false
10
+ },
11
+ "include": [
12
+ "prisma/generated"
13
+ ],
14
+ "exclude": [
15
+ "node_modules",
16
+ "src",
17
+ "dist",
18
+ "**/*.config.*",
19
+ "**/*.test.ts"
20
+ ]
21
+ }
@@ -1,4 +1,9 @@
1
1
  {
2
2
  "extends": "./tsconfig.json",
3
- "exclude": ["node_modules", "test", "dist", "**/*spec.ts"]
4
- }
3
+ "exclude": [
4
+ "node_modules",
5
+ "test",
6
+ "dist",
7
+ "**/*spec.ts"
8
+ ]
9
+ }
@@ -22,7 +22,6 @@
22
22
  "strictBindCallApply": false,
23
23
  "forceConsistentCasingInFileNames": false,
24
24
  "noFallthroughCasesInSwitch": false,
25
- "resolveJsonModule": true,
26
- "types": ["vitest/globals"]
25
+ "resolveJsonModule": true
27
26
  }
28
27
  }
@@ -26,7 +26,7 @@ export function newProject(projectName: string) {
26
26
  const gitIgnore = readFileSync(path.join(path.join(__dirname, 'code-base/gitignore', 'config.txt'))).toString()
27
27
  writeFileSync(path.join(process.cwd(), projectName, '.gitignore'), gitIgnore)
28
28
 
29
- execSync(`cd ${projectName} && bun install && bunx prisma generate`, {
29
+ execSync(`cd ${projectName} && bun install && bun run prisma:generate`, {
30
30
  stdio: 'inherit',
31
31
  })
32
32
 
package/index.js CHANGED
@@ -30624,7 +30624,7 @@ function newProject(projectName) {
30624
30624
  writeFileSync(path2.join(process.cwd(), projectName, ".env"), env);
30625
30625
  const gitIgnore = readFileSync(path2.join(path2.join(__dirname2, "code-base/gitignore", "config.txt"))).toString();
30626
30626
  writeFileSync(path2.join(process.cwd(), projectName, ".gitignore"), gitIgnore);
30627
- execSync(`cd ${projectName} && bun install && bunx prisma generate`, {
30627
+ execSync(`cd ${projectName} && bun install && bun run prisma:generate`, {
30628
30628
  stdio: "inherit"
30629
30629
  });
30630
30630
  console.log(`${import_chalk.default.green("Projeto criado com sucesso!")}`);
@@ -30635,7 +30635,7 @@ var import_chalk2 = __toESM(require_chalk(), 1);
30635
30635
  // package.json
30636
30636
  var package_default = {
30637
30637
  name: "@koalarx/nest-cli",
30638
- version: "1.2.23",
30638
+ version: "2.0.0",
30639
30639
  description: "Biblioteca de CLI para criação de projetos utilizando Koala Nest",
30640
30640
  scripts: {
30641
30641
  test: "vitest run",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@koalarx/nest-cli",
3
- "version": "1.2.23",
3
+ "version": "2.0.0",
4
4
  "description": "Biblioteca de CLI para criação de projetos utilizando Koala Nest",
5
5
  "scripts": {
6
6
  "test": "vitest run",
@@ -1,34 +0,0 @@
1
-
2
- /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
- /* eslint-disable */
4
- // biome-ignore-all lint: generated file
5
- // @ts-nocheck
6
- /*
7
- * This file should be your main import to use Prisma-related types and utilities in a browser.
8
- * Use it to get access to models, enums, and input types.
9
- *
10
- * This file does not contain a `PrismaClient` class, nor several other helpers that are intended as server-side only.
11
- * See `client.ts` for the standard, server-side entry point.
12
- *
13
- * 🟢 You can import this file directly.
14
- */
15
-
16
- import * as Prisma from './internal/prismaNamespaceBrowser'
17
- export { Prisma }
18
- export * as $Enums from './enums'
19
- export * from './enums';
20
- /**
21
- * Model Person
22
- *
23
- */
24
- export type Person = Prisma.PersonModel
25
- /**
26
- * Model PersonPhone
27
- *
28
- */
29
- export type PersonPhone = Prisma.PersonPhoneModel
30
- /**
31
- * Model PersonAddress
32
- *
33
- */
34
- export type PersonAddress = Prisma.PersonAddressModel
@@ -1,54 +0,0 @@
1
-
2
- /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
- /* eslint-disable */
4
- // biome-ignore-all lint: generated file
5
- // @ts-nocheck
6
- /*
7
- * This file should be your main import to use Prisma. Through it you get access to all the models, enums, and input types.
8
- * If you're looking for something you can import in the client-side of your application, please refer to the `browser.ts` file instead.
9
- *
10
- * 🟢 You can import this file directly.
11
- */
12
-
13
- import * as process from 'node:process'
14
- import * as path from 'node:path'
15
-
16
- import * as runtime from "@prisma/client/runtime/client"
17
- import * as $Enums from "./enums"
18
- import * as $Class from "./internal/class"
19
- import * as Prisma from "./internal/prismaNamespace"
20
-
21
- export * as $Enums from './enums'
22
- export * from "./enums"
23
- /**
24
- * ## Prisma Client
25
- *
26
- * Type-safe database client for TypeScript
27
- * @example
28
- * ```
29
- * const prisma = new PrismaClient()
30
- * // Fetch zero or more People
31
- * const people = await prisma.person.findMany()
32
- * ```
33
- *
34
- * Read more in our [docs](https://pris.ly/d/client).
35
- */
36
- export const PrismaClient = $Class.getPrismaClientClass()
37
- export type PrismaClient<LogOpts extends Prisma.LogLevel = never, OmitOpts extends Prisma.PrismaClientOptions["omit"] = Prisma.PrismaClientOptions["omit"], ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = $Class.PrismaClient<LogOpts, OmitOpts, ExtArgs>
38
- export { Prisma }
39
-
40
- /**
41
- * Model Person
42
- *
43
- */
44
- export type Person = Prisma.PersonModel
45
- /**
46
- * Model PersonPhone
47
- *
48
- */
49
- export type PersonPhone = Prisma.PersonPhoneModel
50
- /**
51
- * Model PersonAddress
52
- *
53
- */
54
- export type PersonAddress = Prisma.PersonAddressModel
@@ -1,172 +0,0 @@
1
-
2
- /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
- /* eslint-disable */
4
- // biome-ignore-all lint: generated file
5
- // @ts-nocheck
6
- /*
7
- * This file exports various common sort, input & filter types that are not directly linked to a particular model.
8
- *
9
- * 🟢 You can import this file directly.
10
- */
11
-
12
- import type * as runtime from "@prisma/client/runtime/client"
13
- import * as $Enums from "./enums"
14
- import type * as Prisma from "./internal/prismaNamespace"
15
-
16
-
17
- export type IntFilter<$PrismaModel = never> = {
18
- equals?: number | Prisma.IntFieldRefInput<$PrismaModel>
19
- in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>
20
- notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>
21
- lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
22
- lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
23
- gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
24
- gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
25
- not?: Prisma.NestedIntFilter<$PrismaModel> | number
26
- }
27
-
28
- export type StringFilter<$PrismaModel = never> = {
29
- equals?: string | Prisma.StringFieldRefInput<$PrismaModel>
30
- in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
31
- notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
32
- lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
33
- lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
34
- gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
35
- gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
36
- contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
37
- startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
38
- endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
39
- mode?: Prisma.QueryMode
40
- not?: Prisma.NestedStringFilter<$PrismaModel> | string
41
- }
42
-
43
- export type BoolFilter<$PrismaModel = never> = {
44
- equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>
45
- not?: Prisma.NestedBoolFilter<$PrismaModel> | boolean
46
- }
47
-
48
- export type IntWithAggregatesFilter<$PrismaModel = never> = {
49
- equals?: number | Prisma.IntFieldRefInput<$PrismaModel>
50
- in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>
51
- notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>
52
- lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
53
- lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
54
- gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
55
- gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
56
- not?: Prisma.NestedIntWithAggregatesFilter<$PrismaModel> | number
57
- _count?: Prisma.NestedIntFilter<$PrismaModel>
58
- _avg?: Prisma.NestedFloatFilter<$PrismaModel>
59
- _sum?: Prisma.NestedIntFilter<$PrismaModel>
60
- _min?: Prisma.NestedIntFilter<$PrismaModel>
61
- _max?: Prisma.NestedIntFilter<$PrismaModel>
62
- }
63
-
64
- export type StringWithAggregatesFilter<$PrismaModel = never> = {
65
- equals?: string | Prisma.StringFieldRefInput<$PrismaModel>
66
- in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
67
- notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
68
- lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
69
- lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
70
- gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
71
- gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
72
- contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
73
- startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
74
- endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
75
- mode?: Prisma.QueryMode
76
- not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string
77
- _count?: Prisma.NestedIntFilter<$PrismaModel>
78
- _min?: Prisma.NestedStringFilter<$PrismaModel>
79
- _max?: Prisma.NestedStringFilter<$PrismaModel>
80
- }
81
-
82
- export type BoolWithAggregatesFilter<$PrismaModel = never> = {
83
- equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>
84
- not?: Prisma.NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
85
- _count?: Prisma.NestedIntFilter<$PrismaModel>
86
- _min?: Prisma.NestedBoolFilter<$PrismaModel>
87
- _max?: Prisma.NestedBoolFilter<$PrismaModel>
88
- }
89
-
90
- export type NestedIntFilter<$PrismaModel = never> = {
91
- equals?: number | Prisma.IntFieldRefInput<$PrismaModel>
92
- in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>
93
- notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>
94
- lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
95
- lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
96
- gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
97
- gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
98
- not?: Prisma.NestedIntFilter<$PrismaModel> | number
99
- }
100
-
101
- export type NestedStringFilter<$PrismaModel = never> = {
102
- equals?: string | Prisma.StringFieldRefInput<$PrismaModel>
103
- in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
104
- notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
105
- lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
106
- lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
107
- gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
108
- gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
109
- contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
110
- startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
111
- endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
112
- not?: Prisma.NestedStringFilter<$PrismaModel> | string
113
- }
114
-
115
- export type NestedBoolFilter<$PrismaModel = never> = {
116
- equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>
117
- not?: Prisma.NestedBoolFilter<$PrismaModel> | boolean
118
- }
119
-
120
- export type NestedIntWithAggregatesFilter<$PrismaModel = never> = {
121
- equals?: number | Prisma.IntFieldRefInput<$PrismaModel>
122
- in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>
123
- notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>
124
- lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
125
- lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
126
- gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
127
- gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
128
- not?: Prisma.NestedIntWithAggregatesFilter<$PrismaModel> | number
129
- _count?: Prisma.NestedIntFilter<$PrismaModel>
130
- _avg?: Prisma.NestedFloatFilter<$PrismaModel>
131
- _sum?: Prisma.NestedIntFilter<$PrismaModel>
132
- _min?: Prisma.NestedIntFilter<$PrismaModel>
133
- _max?: Prisma.NestedIntFilter<$PrismaModel>
134
- }
135
-
136
- export type NestedFloatFilter<$PrismaModel = never> = {
137
- equals?: number | Prisma.FloatFieldRefInput<$PrismaModel>
138
- in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel>
139
- notIn?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel>
140
- lt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
141
- lte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
142
- gt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
143
- gte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
144
- not?: Prisma.NestedFloatFilter<$PrismaModel> | number
145
- }
146
-
147
- export type NestedStringWithAggregatesFilter<$PrismaModel = never> = {
148
- equals?: string | Prisma.StringFieldRefInput<$PrismaModel>
149
- in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
150
- notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
151
- lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
152
- lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
153
- gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
154
- gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
155
- contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
156
- startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
157
- endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
158
- not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string
159
- _count?: Prisma.NestedIntFilter<$PrismaModel>
160
- _min?: Prisma.NestedStringFilter<$PrismaModel>
161
- _max?: Prisma.NestedStringFilter<$PrismaModel>
162
- }
163
-
164
- export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = {
165
- equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>
166
- not?: Prisma.NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
167
- _count?: Prisma.NestedIntFilter<$PrismaModel>
168
- _min?: Prisma.NestedBoolFilter<$PrismaModel>
169
- _max?: Prisma.NestedBoolFilter<$PrismaModel>
170
- }
171
-
172
-
@@ -1,15 +0,0 @@
1
-
2
- /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
- /* eslint-disable */
4
- // biome-ignore-all lint: generated file
5
- // @ts-nocheck
6
- /*
7
- * This file exports all enum related types from the schema.
8
- *
9
- * 🟢 You can import this file directly.
10
- */
11
-
12
-
13
-
14
- // This file is empty because there are no enums in the schema.
15
- export {}