vsrepo 1.0.1 → 1.0.2

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 (33) hide show
  1. package/VSRepository/index.d.ts +2 -0
  2. package/VSRepository/index.js +2 -0
  3. package/package.json +4 -8
  4. package/src/db.ts +0 -14
  5. package/src/generated/prisma/browser.ts +0 -44
  6. package/src/generated/prisma/client.ts +0 -66
  7. package/src/generated/prisma/commonInputTypes.ts +0 -370
  8. package/src/generated/prisma/enums.ts +0 -38
  9. package/src/generated/prisma/internal/class.ts +0 -246
  10. package/src/generated/prisma/internal/prismaNamespace.ts +0 -1195
  11. package/src/generated/prisma/internal/prismaNamespaceBrowser.ts +0 -163
  12. package/src/generated/prisma/models/Admin.ts +0 -1342
  13. package/src/generated/prisma/models/CommonUser.ts +0 -1592
  14. package/src/generated/prisma/models/Post.ts +0 -1594
  15. package/src/generated/prisma/models/PostTag.ts +0 -1380
  16. package/src/generated/prisma/models/User.ts +0 -1519
  17. package/src/generated/prisma/models.ts +0 -16
  18. package/src/index.d.ts +0 -2
  19. package/src/index.js +0 -2
  20. package/src/repositories/base.ts +0 -38
  21. package/src/repositories/categoriaRepository.ts +0 -56
  22. package/src/repositories/commonUser.repository.ts +0 -45
  23. package/src/repositories/perfilRepository.ts +0 -29
  24. package/src/repositories/postagemRepository.ts +0 -71
  25. package/src/repositories/user.repository.ts +0 -57
  26. package/src/repositories/usuarioRepository.ts +0 -151
  27. package/src/tests/base-methods/user.bm.test.ts +0 -57
  28. package/src/tests/postagem.test.ts +0 -140
  29. package/src/tests/usuario.test.ts +0 -200
  30. /package/{src/VSRepository → VSRepository}/VSRepoError.d.ts +0 -0
  31. /package/{src/VSRepository → VSRepository}/VSRepoError.js +0 -0
  32. /package/{src/VSRepository → VSRepository}/VSRepository.d.ts +0 -0
  33. /package/{src/VSRepository → VSRepository}/VSRepository.js +0 -0
@@ -0,0 +1,2 @@
1
+ export * from './VSRepoError';
2
+ export * from './VSRepository';
@@ -0,0 +1,2 @@
1
+ export * from './VSRepoError.js';
2
+ export * from './VSRepository.js';
package/package.json CHANGED
@@ -1,16 +1,12 @@
1
1
  {
2
2
  "name": "vsrepo",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Uma biblioteca de repositório virtual para Prisma",
5
- "main": "src/index.js",
6
- "types": "src/index.d.ts",
5
+ "main": "VSrepository/index.js",
6
+ "types": "VSrepository/index.d.ts",
7
7
  "type": "module",
8
- "scripts": {
9
- "test:base-methods:user": "tsx ./src/tests/base-methods/user.bm.test.ts",
10
- "test:usuario": "tsx ./src/tests/usuario.test.ts"
11
- },
12
8
  "files": [
13
- "src"
9
+ "VSrepository"
14
10
  ],
15
11
  "keywords": [
16
12
  "prisma",
package/src/db.ts DELETED
@@ -1,14 +0,0 @@
1
- // * Prisma
2
- import { PrismaClient } from './generated/prisma/client.js';
3
-
4
- import { PrismaPg } from '@prisma/adapter-pg';
5
-
6
- import 'dotenv/config.js'
7
-
8
- const adapter = new PrismaPg({
9
- connectionString: process.env.DATABASE_URL
10
- });
11
-
12
- const prisma = new PrismaClient({ adapter });
13
-
14
- export default prisma;
@@ -1,44 +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.js'
17
- export { Prisma }
18
- export * as $Enums from './enums.js'
19
- export * from './enums.js';
20
- /**
21
- * Model User
22
- *
23
- */
24
- export type User = Prisma.UserModel
25
- /**
26
- * Model CommonUser
27
- *
28
- */
29
- export type CommonUser = Prisma.CommonUserModel
30
- /**
31
- * Model Admin
32
- *
33
- */
34
- export type Admin = Prisma.AdminModel
35
- /**
36
- * Model Post
37
- *
38
- */
39
- export type Post = Prisma.PostModel
40
- /**
41
- * Model PostTag
42
- *
43
- */
44
- export type PostTag = Prisma.PostTagModel
@@ -1,66 +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.js"
18
- import * as $Class from "./internal/class.js"
19
- import * as Prisma from "./internal/prismaNamespace.js"
20
-
21
- export * as $Enums from './enums.js'
22
- export * from "./enums.js"
23
- /**
24
- * ## Prisma Client
25
- *
26
- * Type-safe database client for TypeScript
27
- * @example
28
- * ```
29
- * const prisma = new PrismaClient({
30
- * adapter: new PrismaPg({ connectionString: process.env.DATABASE_URL })
31
- * })
32
- * // Fetch zero or more Users
33
- * const users = await prisma.user.findMany()
34
- * ```
35
- *
36
- * Read more in our [docs](https://pris.ly/d/client).
37
- */
38
- export const PrismaClient = $Class.getPrismaClientClass()
39
- 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>
40
- export { Prisma }
41
-
42
- /**
43
- * Model User
44
- *
45
- */
46
- export type User = Prisma.UserModel
47
- /**
48
- * Model CommonUser
49
- *
50
- */
51
- export type CommonUser = Prisma.CommonUserModel
52
- /**
53
- * Model Admin
54
- *
55
- */
56
- export type Admin = Prisma.AdminModel
57
- /**
58
- * Model Post
59
- *
60
- */
61
- export type Post = Prisma.PostModel
62
- /**
63
- * Model PostTag
64
- *
65
- */
66
- export type PostTag = Prisma.PostTagModel
@@ -1,370 +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.js"
14
- import type * as Prisma from "./internal/prismaNamespace.js"
15
-
16
-
17
- export type StringFilter<$PrismaModel = never> = {
18
- equals?: string | Prisma.StringFieldRefInput<$PrismaModel>
19
- in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
20
- notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
21
- lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
22
- lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
23
- gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
24
- gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
25
- contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
26
- startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
27
- endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
28
- mode?: Prisma.QueryMode
29
- not?: Prisma.NestedStringFilter<$PrismaModel> | string
30
- }
31
-
32
- export type StringNullableFilter<$PrismaModel = never> = {
33
- equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null
34
- in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null
35
- notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null
36
- lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
37
- lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
38
- gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
39
- gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
40
- contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
41
- startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
42
- endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
43
- mode?: Prisma.QueryMode
44
- not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null
45
- }
46
-
47
- export type BoolFilter<$PrismaModel = never> = {
48
- equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>
49
- not?: Prisma.NestedBoolFilter<$PrismaModel> | boolean
50
- }
51
-
52
- export type EnumUSER_TYPEFilter<$PrismaModel = never> = {
53
- equals?: $Enums.USER_TYPE | Prisma.EnumUSER_TYPEFieldRefInput<$PrismaModel>
54
- in?: $Enums.USER_TYPE[] | Prisma.ListEnumUSER_TYPEFieldRefInput<$PrismaModel>
55
- notIn?: $Enums.USER_TYPE[] | Prisma.ListEnumUSER_TYPEFieldRefInput<$PrismaModel>
56
- not?: Prisma.NestedEnumUSER_TYPEFilter<$PrismaModel> | $Enums.USER_TYPE
57
- }
58
-
59
- export type DateTimeFilter<$PrismaModel = never> = {
60
- equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
61
- in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>
62
- notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>
63
- lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
64
- lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
65
- gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
66
- gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
67
- not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string
68
- }
69
-
70
- export type SortOrderInput = {
71
- sort: Prisma.SortOrder
72
- nulls?: Prisma.NullsOrder
73
- }
74
-
75
- export type StringWithAggregatesFilter<$PrismaModel = never> = {
76
- equals?: string | Prisma.StringFieldRefInput<$PrismaModel>
77
- in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
78
- notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
79
- lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
80
- lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
81
- gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
82
- gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
83
- contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
84
- startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
85
- endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
86
- mode?: Prisma.QueryMode
87
- not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string
88
- _count?: Prisma.NestedIntFilter<$PrismaModel>
89
- _min?: Prisma.NestedStringFilter<$PrismaModel>
90
- _max?: Prisma.NestedStringFilter<$PrismaModel>
91
- }
92
-
93
- export type StringNullableWithAggregatesFilter<$PrismaModel = never> = {
94
- equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null
95
- in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null
96
- notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null
97
- lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
98
- lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
99
- gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
100
- gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
101
- contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
102
- startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
103
- endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
104
- mode?: Prisma.QueryMode
105
- not?: Prisma.NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null
106
- _count?: Prisma.NestedIntNullableFilter<$PrismaModel>
107
- _min?: Prisma.NestedStringNullableFilter<$PrismaModel>
108
- _max?: Prisma.NestedStringNullableFilter<$PrismaModel>
109
- }
110
-
111
- export type BoolWithAggregatesFilter<$PrismaModel = never> = {
112
- equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>
113
- not?: Prisma.NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
114
- _count?: Prisma.NestedIntFilter<$PrismaModel>
115
- _min?: Prisma.NestedBoolFilter<$PrismaModel>
116
- _max?: Prisma.NestedBoolFilter<$PrismaModel>
117
- }
118
-
119
- export type EnumUSER_TYPEWithAggregatesFilter<$PrismaModel = never> = {
120
- equals?: $Enums.USER_TYPE | Prisma.EnumUSER_TYPEFieldRefInput<$PrismaModel>
121
- in?: $Enums.USER_TYPE[] | Prisma.ListEnumUSER_TYPEFieldRefInput<$PrismaModel>
122
- notIn?: $Enums.USER_TYPE[] | Prisma.ListEnumUSER_TYPEFieldRefInput<$PrismaModel>
123
- not?: Prisma.NestedEnumUSER_TYPEWithAggregatesFilter<$PrismaModel> | $Enums.USER_TYPE
124
- _count?: Prisma.NestedIntFilter<$PrismaModel>
125
- _min?: Prisma.NestedEnumUSER_TYPEFilter<$PrismaModel>
126
- _max?: Prisma.NestedEnumUSER_TYPEFilter<$PrismaModel>
127
- }
128
-
129
- export type DateTimeWithAggregatesFilter<$PrismaModel = never> = {
130
- equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
131
- in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>
132
- notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>
133
- lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
134
- lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
135
- gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
136
- gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
137
- not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string
138
- _count?: Prisma.NestedIntFilter<$PrismaModel>
139
- _min?: Prisma.NestedDateTimeFilter<$PrismaModel>
140
- _max?: Prisma.NestedDateTimeFilter<$PrismaModel>
141
- }
142
-
143
- export type IntFilter<$PrismaModel = never> = {
144
- equals?: number | Prisma.IntFieldRefInput<$PrismaModel>
145
- in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>
146
- notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>
147
- lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
148
- lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
149
- gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
150
- gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
151
- not?: Prisma.NestedIntFilter<$PrismaModel> | number
152
- }
153
-
154
- export type IntWithAggregatesFilter<$PrismaModel = never> = {
155
- equals?: number | Prisma.IntFieldRefInput<$PrismaModel>
156
- in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>
157
- notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>
158
- lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
159
- lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
160
- gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
161
- gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
162
- not?: Prisma.NestedIntWithAggregatesFilter<$PrismaModel> | number
163
- _count?: Prisma.NestedIntFilter<$PrismaModel>
164
- _avg?: Prisma.NestedFloatFilter<$PrismaModel>
165
- _sum?: Prisma.NestedIntFilter<$PrismaModel>
166
- _min?: Prisma.NestedIntFilter<$PrismaModel>
167
- _max?: Prisma.NestedIntFilter<$PrismaModel>
168
- }
169
-
170
- export type EnumSECTORSFilter<$PrismaModel = never> = {
171
- equals?: $Enums.SECTORS | Prisma.EnumSECTORSFieldRefInput<$PrismaModel>
172
- in?: $Enums.SECTORS[] | Prisma.ListEnumSECTORSFieldRefInput<$PrismaModel>
173
- notIn?: $Enums.SECTORS[] | Prisma.ListEnumSECTORSFieldRefInput<$PrismaModel>
174
- not?: Prisma.NestedEnumSECTORSFilter<$PrismaModel> | $Enums.SECTORS
175
- }
176
-
177
- export type EnumSECTORSWithAggregatesFilter<$PrismaModel = never> = {
178
- equals?: $Enums.SECTORS | Prisma.EnumSECTORSFieldRefInput<$PrismaModel>
179
- in?: $Enums.SECTORS[] | Prisma.ListEnumSECTORSFieldRefInput<$PrismaModel>
180
- notIn?: $Enums.SECTORS[] | Prisma.ListEnumSECTORSFieldRefInput<$PrismaModel>
181
- not?: Prisma.NestedEnumSECTORSWithAggregatesFilter<$PrismaModel> | $Enums.SECTORS
182
- _count?: Prisma.NestedIntFilter<$PrismaModel>
183
- _min?: Prisma.NestedEnumSECTORSFilter<$PrismaModel>
184
- _max?: Prisma.NestedEnumSECTORSFilter<$PrismaModel>
185
- }
186
-
187
- export type NestedStringFilter<$PrismaModel = never> = {
188
- equals?: string | Prisma.StringFieldRefInput<$PrismaModel>
189
- in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
190
- notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
191
- lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
192
- lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
193
- gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
194
- gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
195
- contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
196
- startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
197
- endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
198
- not?: Prisma.NestedStringFilter<$PrismaModel> | string
199
- }
200
-
201
- export type NestedStringNullableFilter<$PrismaModel = never> = {
202
- equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null
203
- in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null
204
- notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null
205
- lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
206
- lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
207
- gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
208
- gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
209
- contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
210
- startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
211
- endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
212
- not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null
213
- }
214
-
215
- export type NestedBoolFilter<$PrismaModel = never> = {
216
- equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>
217
- not?: Prisma.NestedBoolFilter<$PrismaModel> | boolean
218
- }
219
-
220
- export type NestedEnumUSER_TYPEFilter<$PrismaModel = never> = {
221
- equals?: $Enums.USER_TYPE | Prisma.EnumUSER_TYPEFieldRefInput<$PrismaModel>
222
- in?: $Enums.USER_TYPE[] | Prisma.ListEnumUSER_TYPEFieldRefInput<$PrismaModel>
223
- notIn?: $Enums.USER_TYPE[] | Prisma.ListEnumUSER_TYPEFieldRefInput<$PrismaModel>
224
- not?: Prisma.NestedEnumUSER_TYPEFilter<$PrismaModel> | $Enums.USER_TYPE
225
- }
226
-
227
- export type NestedDateTimeFilter<$PrismaModel = never> = {
228
- equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
229
- in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>
230
- notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>
231
- lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
232
- lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
233
- gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
234
- gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
235
- not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string
236
- }
237
-
238
- export type NestedStringWithAggregatesFilter<$PrismaModel = never> = {
239
- equals?: string | Prisma.StringFieldRefInput<$PrismaModel>
240
- in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
241
- notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
242
- lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
243
- lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
244
- gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
245
- gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
246
- contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
247
- startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
248
- endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
249
- not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string
250
- _count?: Prisma.NestedIntFilter<$PrismaModel>
251
- _min?: Prisma.NestedStringFilter<$PrismaModel>
252
- _max?: Prisma.NestedStringFilter<$PrismaModel>
253
- }
254
-
255
- export type NestedIntFilter<$PrismaModel = never> = {
256
- equals?: number | Prisma.IntFieldRefInput<$PrismaModel>
257
- in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>
258
- notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>
259
- lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
260
- lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
261
- gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
262
- gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
263
- not?: Prisma.NestedIntFilter<$PrismaModel> | number
264
- }
265
-
266
- export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = {
267
- equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null
268
- in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null
269
- notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null
270
- lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
271
- lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
272
- gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
273
- gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
274
- contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
275
- startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
276
- endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
277
- not?: Prisma.NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null
278
- _count?: Prisma.NestedIntNullableFilter<$PrismaModel>
279
- _min?: Prisma.NestedStringNullableFilter<$PrismaModel>
280
- _max?: Prisma.NestedStringNullableFilter<$PrismaModel>
281
- }
282
-
283
- export type NestedIntNullableFilter<$PrismaModel = never> = {
284
- equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null
285
- in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null
286
- notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null
287
- lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
288
- lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
289
- gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
290
- gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
291
- not?: Prisma.NestedIntNullableFilter<$PrismaModel> | number | null
292
- }
293
-
294
- export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = {
295
- equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>
296
- not?: Prisma.NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
297
- _count?: Prisma.NestedIntFilter<$PrismaModel>
298
- _min?: Prisma.NestedBoolFilter<$PrismaModel>
299
- _max?: Prisma.NestedBoolFilter<$PrismaModel>
300
- }
301
-
302
- export type NestedEnumUSER_TYPEWithAggregatesFilter<$PrismaModel = never> = {
303
- equals?: $Enums.USER_TYPE | Prisma.EnumUSER_TYPEFieldRefInput<$PrismaModel>
304
- in?: $Enums.USER_TYPE[] | Prisma.ListEnumUSER_TYPEFieldRefInput<$PrismaModel>
305
- notIn?: $Enums.USER_TYPE[] | Prisma.ListEnumUSER_TYPEFieldRefInput<$PrismaModel>
306
- not?: Prisma.NestedEnumUSER_TYPEWithAggregatesFilter<$PrismaModel> | $Enums.USER_TYPE
307
- _count?: Prisma.NestedIntFilter<$PrismaModel>
308
- _min?: Prisma.NestedEnumUSER_TYPEFilter<$PrismaModel>
309
- _max?: Prisma.NestedEnumUSER_TYPEFilter<$PrismaModel>
310
- }
311
-
312
- export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = {
313
- equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
314
- in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>
315
- notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>
316
- lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
317
- lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
318
- gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
319
- gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
320
- not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string
321
- _count?: Prisma.NestedIntFilter<$PrismaModel>
322
- _min?: Prisma.NestedDateTimeFilter<$PrismaModel>
323
- _max?: Prisma.NestedDateTimeFilter<$PrismaModel>
324
- }
325
-
326
- export type NestedIntWithAggregatesFilter<$PrismaModel = never> = {
327
- equals?: number | Prisma.IntFieldRefInput<$PrismaModel>
328
- in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>
329
- notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>
330
- lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
331
- lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
332
- gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
333
- gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
334
- not?: Prisma.NestedIntWithAggregatesFilter<$PrismaModel> | number
335
- _count?: Prisma.NestedIntFilter<$PrismaModel>
336
- _avg?: Prisma.NestedFloatFilter<$PrismaModel>
337
- _sum?: Prisma.NestedIntFilter<$PrismaModel>
338
- _min?: Prisma.NestedIntFilter<$PrismaModel>
339
- _max?: Prisma.NestedIntFilter<$PrismaModel>
340
- }
341
-
342
- export type NestedFloatFilter<$PrismaModel = never> = {
343
- equals?: number | Prisma.FloatFieldRefInput<$PrismaModel>
344
- in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel>
345
- notIn?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel>
346
- lt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
347
- lte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
348
- gt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
349
- gte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
350
- not?: Prisma.NestedFloatFilter<$PrismaModel> | number
351
- }
352
-
353
- export type NestedEnumSECTORSFilter<$PrismaModel = never> = {
354
- equals?: $Enums.SECTORS | Prisma.EnumSECTORSFieldRefInput<$PrismaModel>
355
- in?: $Enums.SECTORS[] | Prisma.ListEnumSECTORSFieldRefInput<$PrismaModel>
356
- notIn?: $Enums.SECTORS[] | Prisma.ListEnumSECTORSFieldRefInput<$PrismaModel>
357
- not?: Prisma.NestedEnumSECTORSFilter<$PrismaModel> | $Enums.SECTORS
358
- }
359
-
360
- export type NestedEnumSECTORSWithAggregatesFilter<$PrismaModel = never> = {
361
- equals?: $Enums.SECTORS | Prisma.EnumSECTORSFieldRefInput<$PrismaModel>
362
- in?: $Enums.SECTORS[] | Prisma.ListEnumSECTORSFieldRefInput<$PrismaModel>
363
- notIn?: $Enums.SECTORS[] | Prisma.ListEnumSECTORSFieldRefInput<$PrismaModel>
364
- not?: Prisma.NestedEnumSECTORSWithAggregatesFilter<$PrismaModel> | $Enums.SECTORS
365
- _count?: Prisma.NestedIntFilter<$PrismaModel>
366
- _min?: Prisma.NestedEnumSECTORSFilter<$PrismaModel>
367
- _max?: Prisma.NestedEnumSECTORSFilter<$PrismaModel>
368
- }
369
-
370
-
@@ -1,38 +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
- export const ROLES = {
13
- VIEWER: 'VIEWER',
14
- MODIFIER: 'MODIFIER',
15
- CIENTIST: 'CIENTIST',
16
- ALL: 'ALL'
17
- } as const
18
-
19
- export type ROLES = (typeof ROLES)[keyof typeof ROLES]
20
-
21
-
22
- export const SECTORS = {
23
- HUMAN_RESOURCES: 'HUMAN_RESOURCES',
24
- FINANCE: 'FINANCE',
25
- MARKETING: 'MARKETING',
26
- SALES: 'SALES',
27
- INFORMATION_TECHNOLOGY: 'INFORMATION_TECHNOLOGY'
28
- } as const
29
-
30
- export type SECTORS = (typeof SECTORS)[keyof typeof SECTORS]
31
-
32
-
33
- export const USER_TYPE = {
34
- ADMIN: 'ADMIN',
35
- COMMON: 'COMMON'
36
- } as const
37
-
38
- export type USER_TYPE = (typeof USER_TYPE)[keyof typeof USER_TYPE]