@koalarx/nest-cli 1.2.23 → 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.
- package/README.md +35 -1
- package/code-base/startup-project/package.json +5 -4
- package/code-base/startup-project/prisma/scripts/fix-extensions.mjs +28 -0
- package/code-base/startup-project/tsconfig.build-prisma.json +21 -0
- package/code-base/startup-project/tsconfig.build.json +7 -2
- package/code-base/startup-project/vitest.config.e2e.mts +2 -2
- package/code-base/startup-project/vitest.config.mts +5 -5
- package/commands/new-project/index.ts +1 -1
- package/index.js +2 -2
- package/package.json +1 -1
- package/code-base/startup-project/prisma/generated/browser.ts +0 -34
- package/code-base/startup-project/prisma/generated/client.ts +0 -54
- package/code-base/startup-project/prisma/generated/commonInputTypes.ts +0 -172
- package/code-base/startup-project/prisma/generated/enums.ts +0 -15
- package/code-base/startup-project/prisma/generated/internal/class.ts +0 -210
- package/code-base/startup-project/prisma/generated/internal/prismaNamespace.ts +0 -927
- package/code-base/startup-project/prisma/generated/internal/prismaNamespaceBrowser.ts +0 -116
- package/code-base/startup-project/prisma/generated/models/Person.ts +0 -1497
- package/code-base/startup-project/prisma/generated/models/PersonAddress.ts +0 -1265
- package/code-base/startup-project/prisma/generated/models/PersonPhone.ts +0 -1315
- 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
|
-
##
|
|
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
|
|
|
@@ -6,10 +6,11 @@
|
|
|
6
6
|
"private": true,
|
|
7
7
|
"license": "UNLICENSED",
|
|
8
8
|
"scripts": {
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"start
|
|
12
|
-
"start:
|
|
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",
|
|
@@ -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
|
+
}
|
|
@@ -6,7 +6,7 @@ export default defineConfig({
|
|
|
6
6
|
test: {
|
|
7
7
|
globals: true,
|
|
8
8
|
root: "./",
|
|
9
|
-
environment:
|
|
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
|
|
3
|
-
import { defineConfig } from
|
|
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:
|
|
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 &&
|
|
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 &&
|
|
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.
|
|
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,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 {}
|