@koalarx/nest-cli 1.2.21 → 1.2.24

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 (24) hide show
  1. package/README.md +35 -1
  2. package/code-base/startup-project/.vscode/launch.json +11 -12
  3. package/code-base/startup-project/.vscode/settings.json +5 -23
  4. package/code-base/startup-project/.vscode/tasks.json +9 -5
  5. package/code-base/startup-project/package.json +6 -5
  6. package/code-base/startup-project/prisma/scripts/fix-extensions.mjs +28 -0
  7. package/code-base/startup-project/tsconfig.build-prisma.json +21 -0
  8. package/code-base/startup-project/tsconfig.build.json +7 -2
  9. package/code-base/startup-project/vitest.config.e2e.mts +2 -2
  10. package/code-base/startup-project/vitest.config.mts +5 -5
  11. package/commands/new-project/index.ts +1 -1
  12. package/index.js +2 -2
  13. package/package.json +1 -1
  14. package/code-base/startup-project/prisma/generated/browser.ts +0 -34
  15. package/code-base/startup-project/prisma/generated/client.ts +0 -54
  16. package/code-base/startup-project/prisma/generated/commonInputTypes.ts +0 -172
  17. package/code-base/startup-project/prisma/generated/enums.ts +0 -15
  18. package/code-base/startup-project/prisma/generated/internal/class.ts +0 -210
  19. package/code-base/startup-project/prisma/generated/internal/prismaNamespace.ts +0 -927
  20. package/code-base/startup-project/prisma/generated/internal/prismaNamespaceBrowser.ts +0 -116
  21. package/code-base/startup-project/prisma/generated/models/Person.ts +0 -1497
  22. package/code-base/startup-project/prisma/generated/models/PersonAddress.ts +0 -1265
  23. package/code-base/startup-project/prisma/generated/models/PersonPhone.ts +0 -1315
  24. package/code-base/startup-project/prisma/generated/models.ts +0 -14
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,15 +1,12 @@
1
1
  {
2
- // Use o IntelliSense para saber mais sobre os atributos possíveis.
3
- // Focalizar para exibir as descrições dos atributos existentes.
4
- // Para obter mais informações, acesse: https://go.microsoft.com/fwlink/?linkid=830387
5
2
  "version": "0.2.0",
6
3
  "configurations": [
7
4
  {
8
5
  "type": "node",
9
6
  "request": "launch",
10
- "name": "Nest Debug",
11
- "runtimeExecutable": "npm",
12
- "runtimeArgs": ["run", "start:debug", "--", "--inspect-brk"],
7
+ "name": "Nest Debug (Bun)",
8
+ "runtimeExecutable": "bun",
9
+ "runtimeArgs": ["run", "start:debug"],
13
10
  "console": "integratedTerminal",
14
11
  "restart": true,
15
12
  "protocol": "auto",
@@ -19,22 +16,24 @@
19
16
  {
20
17
  "type": "node",
21
18
  "request": "launch",
22
- "name": "Debug Unit Tests",
23
- "autoAttachChildProcesses": true,
24
- "skipFiles": ["<node_internals>/**"],
19
+ "name": "Debug Unit Tests (Bun)",
20
+ "runtimeExecutable": "bun",
25
21
  "program": "${workspaceFolder}/node_modules/vitest/vitest.mjs",
26
22
  "args": ["run", "${relativeFile}"],
23
+ "autoAttachChildProcesses": true,
24
+ "skipFiles": ["<node_internals>/**"],
27
25
  "smartStep": true,
28
26
  "console": "integratedTerminal"
29
27
  },
30
28
  {
31
29
  "type": "node",
32
30
  "request": "launch",
33
- "name": "Debug E2E Tests",
34
- "autoAttachChildProcesses": true,
35
- "skipFiles": ["<node_internals>/**"],
31
+ "name": "Debug E2E Tests (Bun)",
32
+ "runtimeExecutable": "bun",
36
33
  "program": "${workspaceFolder}/node_modules/vitest/vitest.mjs",
37
34
  "args": ["run", "${relativeFile}", "--config", "./vitest.config.e2e.ts"],
35
+ "autoAttachChildProcesses": true,
36
+ "skipFiles": ["<node_internals>/**"],
38
37
  "smartStep": true,
39
38
  "console": "integratedTerminal"
40
39
  }
@@ -1,6 +1,4 @@
1
1
  {
2
- "vsicons.presets.angular": false,
3
- "vsicons.presets.nestjs": true,
4
2
  "material-icon-theme.activeIconPack": "nest",
5
3
  "editor.fontFamily": "Fira Code",
6
4
  "editor.fontSize": 15,
@@ -99,27 +97,13 @@
99
97
  "repositories": "mappings",
100
98
  "filters": "pipe"
101
99
  },
102
- "symbols.folders.associations": {
103
- "data": "folder-database",
104
- "auth": "folder-purple",
105
- "common": "folder-green",
106
- "controllers": "folder-yellow",
107
- "decorators": "folder-yellow",
108
- "repositories": "folder-yellow",
109
- "services": "folder-yellow",
110
- "filters": "folder-blue",
111
- "guards": "folder-orange",
112
- "test": "folder-context"
100
+ "[javascript]": {
101
+ "editor.defaultFormatter": "esbenp.prettier-vscode"
113
102
  },
114
- "symbols.files.associations": {
115
- "*.module.ts": "nest",
116
- "*.controller.ts": "nest",
117
- "*.guard.ts": "nest",
118
- "*.spec.ts": "ts-test",
119
- "*.e2e-spec.ts": "ts-test",
120
- "vitest.config.e2e.ts": "vite",
121
- ".env.example": "gear"
103
+ "[typescript]": {
104
+ "editor.defaultFormatter": "esbenp.prettier-vscode"
122
105
  },
106
+ "prettier.documentSelectors": ["**/*.ts", "**/*.tsx", "**/*.js"],
123
107
  "editor.codeActionsOnSave": {
124
108
  "source.fixAll.eslint": "explicit"
125
109
  },
@@ -131,6 +115,4 @@
131
115
  "npm.packageManager": "npm",
132
116
  "editor.wordWrap": "on",
133
117
  "editor.wrappingIndent": "indent",
134
- "a-file-icon-vscode.activeIconPacks": ["nest"],
135
- "a-file-icon-vscode.arrowTheme": "plusMinus"
136
118
  }
@@ -2,12 +2,16 @@
2
2
  "version": "2.0.0",
3
3
  "tasks": [
4
4
  {
5
- "type": "npm",
6
- "script": "start:debug",
7
- "group": "build",
5
+ "label": "bun: start:debug",
6
+ "type": "shell",
7
+ "command": "bun",
8
+ "args": ["run", "start:debug"],
9
+ "group": {
10
+ "kind": "build",
11
+ "isDefault": true
12
+ },
8
13
  "problemMatcher": [],
9
- "label": "npm: start:debug",
10
- "detail": "nest start --debug --watch"
14
+ "isBackground": true
11
15
  }
12
16
  ]
13
17
  }
@@ -6,10 +6,11 @@
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
16
  "test": "vitest run",
@@ -21,7 +22,7 @@
21
22
  },
22
23
  "dependencies": {
23
24
  "@koalarx/utils": "^4.2.1",
24
- "@koalarx/nest": "^1.18.3",
25
+ "@koalarx/nest": "^1.18.4",
25
26
  "@nestjs/common": "^11.0.12",
26
27
  "@nestjs/config": "^4.0.1",
27
28
  "@nestjs/core": "^11.0.12",
@@ -0,0 +1,28 @@
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) {}
@@ -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
+ }
@@ -6,7 +6,7 @@ export default defineConfig({
6
6
  test: {
7
7
  globals: true,
8
8
  root: "./",
9
- environment: 'bun',
9
+ environment: "node",
10
10
  include: ["**/*.e2e-spec.ts"],
11
11
  setupFiles: ["./src/test/setup-e2e.ts"],
12
12
  },
@@ -14,6 +14,6 @@ export default defineConfig({
14
14
  tsConfigPatchs(),
15
15
  swc.vite({
16
16
  module: { type: "es6" },
17
- })
17
+ }),
18
18
  ],
19
19
  });
@@ -1,12 +1,12 @@
1
1
  import swc from "unplugin-swc";
2
- import tsConfigPatchs from 'vite-tsconfig-paths'
3
- import { defineConfig } from 'vitest/config'
2
+ import tsConfigPatchs from "vite-tsconfig-paths";
3
+ import { defineConfig } from "vitest/config";
4
4
 
5
5
  export default defineConfig({
6
6
  test: {
7
7
  globals: true,
8
- root: './',
9
- environment: 'bun',
8
+ root: "./",
9
+ environment: "node",
10
10
  },
11
11
  plugins: [
12
12
  tsConfigPatchs(),
@@ -15,4 +15,4 @@ export default defineConfig({
15
15
  sourceMaps: true,
16
16
  }),
17
17
  ],
18
- })
18
+ });
@@ -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.21",
30638
+ version: "1.2.24",
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.21",
3
+ "version": "1.2.24",
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 {}