@appweaver/core 1.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 (271) hide show
  1. package/LICENSE +1 -0
  2. package/README.md +7 -0
  3. package/app/application.d.ts +43 -0
  4. package/app/application.js +112 -0
  5. package/app/create-app.d.ts +32 -0
  6. package/app/create-app.js +38 -0
  7. package/app/index.d.ts +2 -0
  8. package/app/index.js +18 -0
  9. package/app/lifecycle-manager.d.ts +20 -0
  10. package/app/lifecycle-manager.js +42 -0
  11. package/app/load-modules.d.ts +10 -0
  12. package/app/load-modules.js +50 -0
  13. package/app/load-providers.d.ts +8 -0
  14. package/app/load-providers.js +33 -0
  15. package/cache/cache-service.d.ts +72 -0
  16. package/cache/cache-service.js +202 -0
  17. package/cache/cache.d.ts +12 -0
  18. package/cache/cache.js +184 -0
  19. package/cache/caching.d.ts +8 -0
  20. package/cache/caching.js +72 -0
  21. package/cache/eviction/eviction-index.d.ts +35 -0
  22. package/cache/eviction/eviction-index.js +2 -0
  23. package/cache/eviction/fifo-eviction-index.d.ts +7 -0
  24. package/cache/eviction/fifo-eviction-index.js +28 -0
  25. package/cache/eviction/index.d.ts +4 -0
  26. package/cache/eviction/index.js +20 -0
  27. package/cache/eviction/lfu-eviction-index.d.ts +8 -0
  28. package/cache/eviction/lfu-eviction-index.js +82 -0
  29. package/cache/eviction/lru-eviction-index.d.ts +8 -0
  30. package/cache/eviction/lru-eviction-index.js +81 -0
  31. package/cache/index.d.ts +2 -0
  32. package/cache/index.js +18 -0
  33. package/cache/memory-cache.d.ts +4 -0
  34. package/cache/memory-cache.js +12 -0
  35. package/cache/redis-cache.d.ts +4 -0
  36. package/cache/redis-cache.js +12 -0
  37. package/context/context.d.ts +2 -0
  38. package/context/context.js +13 -0
  39. package/context/dependency-injection.d.ts +98 -0
  40. package/context/dependency-injection.js +276 -0
  41. package/context/index.d.ts +2 -0
  42. package/context/index.js +18 -0
  43. package/database/create-client.d.ts +11 -0
  44. package/database/create-client.js +142 -0
  45. package/database/index.d.ts +1 -0
  46. package/database/index.js +17 -0
  47. package/database/prisma-database.d.ts +15 -0
  48. package/database/prisma-database.js +53 -0
  49. package/errors/error-handler.d.ts +3 -0
  50. package/errors/error-handler.js +24 -0
  51. package/errors/error-schema.d.ts +32 -0
  52. package/errors/error-schema.js +31 -0
  53. package/errors/http-error.d.ts +21 -0
  54. package/errors/http-error.js +33 -0
  55. package/errors/index.d.ts +3 -0
  56. package/errors/index.js +19 -0
  57. package/events/node-events.d.ts +7 -0
  58. package/events/node-events.js +39 -0
  59. package/export/export-service.d.ts +19 -0
  60. package/export/export-service.js +154 -0
  61. package/export/index.d.ts +1 -0
  62. package/export/index.js +17 -0
  63. package/factory/create-model.d.ts +2 -0
  64. package/factory/create-model.js +366 -0
  65. package/factory/create-policy.d.ts +2 -0
  66. package/factory/create-policy.js +16 -0
  67. package/factory/create-routes.d.ts +2 -0
  68. package/factory/create-routes.js +21 -0
  69. package/factory/create-service.d.ts +3 -0
  70. package/factory/create-service.js +97 -0
  71. package/factory/index.d.ts +4 -0
  72. package/factory/index.js +20 -0
  73. package/health/health-routes.d.ts +2 -0
  74. package/health/health-routes.js +36 -0
  75. package/health/health-schema.d.ts +45 -0
  76. package/health/health-schema.js +52 -0
  77. package/health/health-service.d.ts +38 -0
  78. package/health/health-service.js +82 -0
  79. package/health/index.d.ts +2 -0
  80. package/health/index.js +18 -0
  81. package/index.d.ts +15 -0
  82. package/index.js +31 -0
  83. package/mailer/email-service.d.ts +36 -0
  84. package/mailer/email-service.js +89 -0
  85. package/mailer/index.d.ts +1 -0
  86. package/mailer/index.js +17 -0
  87. package/mailer/json-mailer.d.ts +7 -0
  88. package/mailer/json-mailer.js +32 -0
  89. package/mailer/smtp-mailer.d.ts +7 -0
  90. package/mailer/smtp-mailer.js +43 -0
  91. package/memory/in-memory.d.ts +24 -0
  92. package/memory/in-memory.js +164 -0
  93. package/memory/redis.d.ts +26 -0
  94. package/memory/redis.js +158 -0
  95. package/package.json +68 -0
  96. package/prisma/client/browser.d.ts +34 -0
  97. package/prisma/client/browser.js +56 -0
  98. package/prisma/client/client.d.ts +53 -0
  99. package/prisma/client/client.js +70 -0
  100. package/prisma/client/commonInputTypes.d.ts +395 -0
  101. package/prisma/client/commonInputTypes.js +11 -0
  102. package/prisma/client/enums.d.ts +1 -0
  103. package/prisma/client/enums.js +11 -0
  104. package/prisma/client/internal/class.d.ts +187 -0
  105. package/prisma/client/internal/class.js +85 -0
  106. package/prisma/client/internal/prismaNamespace.d.ts +987 -0
  107. package/prisma/client/internal/prismaNamespace.js +193 -0
  108. package/prisma/client/internal/prismaNamespaceBrowser.d.ts +125 -0
  109. package/prisma/client/internal/prismaNamespaceBrowser.js +164 -0
  110. package/prisma/client/models/ApiKey.d.ts +1167 -0
  111. package/prisma/client/models/ApiKey.js +2 -0
  112. package/prisma/client/models/File.d.ts +1248 -0
  113. package/prisma/client/models/File.js +2 -0
  114. package/prisma/client/models/OneTimeToken.d.ts +1083 -0
  115. package/prisma/client/models/OneTimeToken.js +2 -0
  116. package/prisma/client/models/Permission.d.ts +1209 -0
  117. package/prisma/client/models/Permission.js +2 -0
  118. package/prisma/client/models/Role.d.ts +1209 -0
  119. package/prisma/client/models/Role.js +2 -0
  120. package/prisma/client/models/Seeder.d.ts +1023 -0
  121. package/prisma/client/models/Seeder.js +2 -0
  122. package/prisma/client/models.d.ts +7 -0
  123. package/prisma/client/models.js +2 -0
  124. package/queue/bull-queue.d.ts +37 -0
  125. package/queue/bull-queue.js +207 -0
  126. package/queue/memory-queue.d.ts +54 -0
  127. package/queue/memory-queue.js +283 -0
  128. package/resource/index.d.ts +4 -0
  129. package/resource/index.js +20 -0
  130. package/resource/resource-loader.d.ts +26 -0
  131. package/resource/resource-loader.js +161 -0
  132. package/resource/resource-routes.d.ts +3 -0
  133. package/resource/resource-routes.js +174 -0
  134. package/resource/resource-schema.d.ts +33 -0
  135. package/resource/resource-schema.js +186 -0
  136. package/resource/resource-service.d.ts +89 -0
  137. package/resource/resource-service.js +772 -0
  138. package/resources.d.ts +9 -0
  139. package/resources.js +24 -0
  140. package/scheduler/cron-scheduler.d.ts +12 -0
  141. package/scheduler/cron-scheduler.js +73 -0
  142. package/security/account/account-routes.d.ts +2 -0
  143. package/security/account/account-routes.js +104 -0
  144. package/security/account/account-schema.d.ts +290 -0
  145. package/security/account/account-schema.js +166 -0
  146. package/security/account/account-service.d.ts +88 -0
  147. package/security/account/account-service.js +218 -0
  148. package/security/account/index.d.ts +3 -0
  149. package/security/account/index.js +19 -0
  150. package/security/api-key/api-key-auth.d.ts +4 -0
  151. package/security/api-key/api-key-auth.js +66 -0
  152. package/security/api-key/index.d.ts +1 -0
  153. package/security/api-key/index.js +17 -0
  154. package/security/auth-routes.d.ts +2 -0
  155. package/security/auth-routes.js +80 -0
  156. package/security/auth-schema.d.ts +215 -0
  157. package/security/auth-schema.js +129 -0
  158. package/security/auth-service.d.ts +117 -0
  159. package/security/auth-service.js +272 -0
  160. package/security/auth.d.ts +3 -0
  161. package/security/auth.js +127 -0
  162. package/security/basic/basic-auth.d.ts +4 -0
  163. package/security/basic/basic-auth.js +32 -0
  164. package/security/basic/index.d.ts +1 -0
  165. package/security/basic/index.js +17 -0
  166. package/security/create-auth-resources.d.ts +6 -0
  167. package/security/create-auth-resources.js +129 -0
  168. package/security/helper.d.ts +127 -0
  169. package/security/helper.js +329 -0
  170. package/security/index.d.ts +4 -0
  171. package/security/index.js +20 -0
  172. package/security/jwt/index.d.ts +2 -0
  173. package/security/jwt/index.js +18 -0
  174. package/security/jwt/jwt-auth.d.ts +4 -0
  175. package/security/jwt/jwt-auth.js +57 -0
  176. package/security/jwt/jwt-keys.d.ts +7 -0
  177. package/security/jwt/jwt-keys.js +43 -0
  178. package/security/oauth2/create-oauth2-plugin.d.ts +17 -0
  179. package/security/oauth2/create-oauth2-plugin.js +85 -0
  180. package/security/oauth2/index.d.ts +3 -0
  181. package/security/oauth2/index.js +19 -0
  182. package/security/oauth2/oauth2-custom.d.ts +7 -0
  183. package/security/oauth2/oauth2-custom.js +40 -0
  184. package/security/oauth2/oauth2-facebook.d.ts +1 -0
  185. package/security/oauth2/oauth2-facebook.js +30 -0
  186. package/security/oauth2/oauth2-google.d.ts +1 -0
  187. package/security/oauth2/oauth2-google.js +28 -0
  188. package/security/oauth2/oauth2-schema.d.ts +10 -0
  189. package/security/oauth2/oauth2-schema.js +53 -0
  190. package/security/recaptcha/index.d.ts +2 -0
  191. package/security/recaptcha/index.js +18 -0
  192. package/security/recaptcha/recaptcha-verify.d.ts +1 -0
  193. package/security/recaptcha/recaptcha-verify.js +33 -0
  194. package/security/recaptcha/recaptcha.d.ts +2 -0
  195. package/security/recaptcha/recaptcha.js +22 -0
  196. package/security/resources/api-key/model.d.ts +2 -0
  197. package/security/resources/api-key/model.js +63 -0
  198. package/security/resources/api-key/policy.d.ts +2 -0
  199. package/security/resources/api-key/policy.js +26 -0
  200. package/security/resources/api-key/routes.d.ts +2 -0
  201. package/security/resources/api-key/routes.js +15 -0
  202. package/security/resources/api-key/service.d.ts +3 -0
  203. package/security/resources/api-key/service.js +33 -0
  204. package/security/resources/one-time-token/model.d.ts +2 -0
  205. package/security/resources/one-time-token/model.js +32 -0
  206. package/security/resources/permission/model.d.ts +2 -0
  207. package/security/resources/permission/model.js +16 -0
  208. package/security/resources/role/model.d.ts +2 -0
  209. package/security/resources/role/model.js +22 -0
  210. package/security/store/database-security-store.d.ts +5 -0
  211. package/security/store/database-security-store.js +51 -0
  212. package/security/store/redis-security-store.d.ts +5 -0
  213. package/security/store/redis-security-store.js +32 -0
  214. package/seeder/create-seeder.d.ts +21 -0
  215. package/seeder/create-seeder.js +17 -0
  216. package/seeder/index.d.ts +2 -0
  217. package/seeder/index.js +18 -0
  218. package/seeder/resources/seeder/model.d.ts +2 -0
  219. package/seeder/resources/seeder/model.js +38 -0
  220. package/seeder/seeder.d.ts +20 -0
  221. package/seeder/seeder.js +175 -0
  222. package/server/create-server.d.ts +20 -0
  223. package/server/create-server.js +160 -0
  224. package/server/index.d.ts +4 -0
  225. package/server/index.js +20 -0
  226. package/server/info-route.d.ts +2 -0
  227. package/server/info-route.js +18 -0
  228. package/server/info-schema.d.ts +37 -0
  229. package/server/info-schema.js +19 -0
  230. package/server/register-model.d.ts +2 -0
  231. package/server/register-model.js +12 -0
  232. package/server/register-plugin.d.ts +2 -0
  233. package/server/register-plugin.js +13 -0
  234. package/server/register-route.d.ts +3 -0
  235. package/server/register-route.js +74 -0
  236. package/server/schemas.d.ts +3 -0
  237. package/server/schemas.js +30 -0
  238. package/server/swagger.d.ts +3 -0
  239. package/server/swagger.js +122 -0
  240. package/storage/file-route.d.ts +2 -0
  241. package/storage/file-route.js +39 -0
  242. package/storage/file-schema.d.ts +9 -0
  243. package/storage/file-schema.js +42 -0
  244. package/storage/file-service.d.ts +81 -0
  245. package/storage/file-service.js +384 -0
  246. package/storage/filesystem-storage.d.ts +10 -0
  247. package/storage/filesystem-storage.js +128 -0
  248. package/storage/index.d.ts +2 -0
  249. package/storage/index.js +18 -0
  250. package/storage/resources/file/model.d.ts +2 -0
  251. package/storage/resources/file/model.js +75 -0
  252. package/types/application-context.d.ts +20 -0
  253. package/types/application-context.js +2 -0
  254. package/types/auth.d.ts +31 -0
  255. package/types/auth.js +2 -0
  256. package/types/fastify-extensions.d.ts +24 -0
  257. package/types/fastify-extensions.js +4 -0
  258. package/types/generated.d.ts +193 -0
  259. package/types/generated.js +3 -0
  260. package/types/index.d.ts +4 -0
  261. package/types/index.js +20 -0
  262. package/types/server.d.ts +4 -0
  263. package/types/server.js +2 -0
  264. package/utils/export-util.d.ts +8 -0
  265. package/utils/export-util.js +25 -0
  266. package/utils/file-util.d.ts +64 -0
  267. package/utils/file-util.js +141 -0
  268. package/utils/index.d.ts +3 -0
  269. package/utils/index.js +19 -0
  270. package/utils/schema-util.d.ts +20 -0
  271. package/utils/schema-util.js +37 -0
@@ -0,0 +1,1248 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace";
3
+ /**
4
+ * Model File
5
+ *
6
+ */
7
+ export type FileModel = runtime.Types.Result.DefaultSelection<Prisma.$FilePayload>;
8
+ export type AggregateFile = {
9
+ _count: FileCountAggregateOutputType | null;
10
+ _avg: FileAvgAggregateOutputType | null;
11
+ _sum: FileSumAggregateOutputType | null;
12
+ _min: FileMinAggregateOutputType | null;
13
+ _max: FileMaxAggregateOutputType | null;
14
+ };
15
+ export type FileAvgAggregateOutputType = {
16
+ id: number | null;
17
+ sizeBytes: number | null;
18
+ resourceId: number | null;
19
+ };
20
+ export type FileSumAggregateOutputType = {
21
+ id: number | null;
22
+ sizeBytes: number | null;
23
+ resourceId: number | null;
24
+ };
25
+ export type FileMinAggregateOutputType = {
26
+ id: number | null;
27
+ name: string | null;
28
+ originalName: string | null;
29
+ mimeType: string | null;
30
+ sizeBytes: number | null;
31
+ title: string | null;
32
+ description: string | null;
33
+ resourceField: string | null;
34
+ resourceName: string | null;
35
+ resourceId: number | null;
36
+ updatedAt: Date | null;
37
+ createdAt: Date | null;
38
+ };
39
+ export type FileMaxAggregateOutputType = {
40
+ id: number | null;
41
+ name: string | null;
42
+ originalName: string | null;
43
+ mimeType: string | null;
44
+ sizeBytes: number | null;
45
+ title: string | null;
46
+ description: string | null;
47
+ resourceField: string | null;
48
+ resourceName: string | null;
49
+ resourceId: number | null;
50
+ updatedAt: Date | null;
51
+ createdAt: Date | null;
52
+ };
53
+ export type FileCountAggregateOutputType = {
54
+ id: number;
55
+ name: number;
56
+ originalName: number;
57
+ mimeType: number;
58
+ sizeBytes: number;
59
+ title: number;
60
+ description: number;
61
+ resourceField: number;
62
+ resourceName: number;
63
+ resourceId: number;
64
+ updatedAt: number;
65
+ createdAt: number;
66
+ _all: number;
67
+ };
68
+ export type FileAvgAggregateInputType = {
69
+ id?: true;
70
+ sizeBytes?: true;
71
+ resourceId?: true;
72
+ };
73
+ export type FileSumAggregateInputType = {
74
+ id?: true;
75
+ sizeBytes?: true;
76
+ resourceId?: true;
77
+ };
78
+ export type FileMinAggregateInputType = {
79
+ id?: true;
80
+ name?: true;
81
+ originalName?: true;
82
+ mimeType?: true;
83
+ sizeBytes?: true;
84
+ title?: true;
85
+ description?: true;
86
+ resourceField?: true;
87
+ resourceName?: true;
88
+ resourceId?: true;
89
+ updatedAt?: true;
90
+ createdAt?: true;
91
+ };
92
+ export type FileMaxAggregateInputType = {
93
+ id?: true;
94
+ name?: true;
95
+ originalName?: true;
96
+ mimeType?: true;
97
+ sizeBytes?: true;
98
+ title?: true;
99
+ description?: true;
100
+ resourceField?: true;
101
+ resourceName?: true;
102
+ resourceId?: true;
103
+ updatedAt?: true;
104
+ createdAt?: true;
105
+ };
106
+ export type FileCountAggregateInputType = {
107
+ id?: true;
108
+ name?: true;
109
+ originalName?: true;
110
+ mimeType?: true;
111
+ sizeBytes?: true;
112
+ title?: true;
113
+ description?: true;
114
+ resourceField?: true;
115
+ resourceName?: true;
116
+ resourceId?: true;
117
+ updatedAt?: true;
118
+ createdAt?: true;
119
+ _all?: true;
120
+ };
121
+ export type FileAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
122
+ /**
123
+ * Filter which File to aggregate.
124
+ */
125
+ where?: Prisma.FileWhereInput;
126
+ /**
127
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
128
+ *
129
+ * Determine the order of Files to fetch.
130
+ */
131
+ orderBy?: Prisma.FileOrderByWithRelationInput | Prisma.FileOrderByWithRelationInput[];
132
+ /**
133
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
134
+ *
135
+ * Sets the start position
136
+ */
137
+ cursor?: Prisma.FileWhereUniqueInput;
138
+ /**
139
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
140
+ *
141
+ * Take `±n` Files from the position of the cursor.
142
+ */
143
+ take?: number;
144
+ /**
145
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
146
+ *
147
+ * Skip the first `n` Files.
148
+ */
149
+ skip?: number;
150
+ /**
151
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
152
+ *
153
+ * Count returned Files
154
+ **/
155
+ _count?: true | FileCountAggregateInputType;
156
+ /**
157
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
158
+ *
159
+ * Select which fields to average
160
+ **/
161
+ _avg?: FileAvgAggregateInputType;
162
+ /**
163
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
164
+ *
165
+ * Select which fields to sum
166
+ **/
167
+ _sum?: FileSumAggregateInputType;
168
+ /**
169
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
170
+ *
171
+ * Select which fields to find the minimum value
172
+ **/
173
+ _min?: FileMinAggregateInputType;
174
+ /**
175
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
176
+ *
177
+ * Select which fields to find the maximum value
178
+ **/
179
+ _max?: FileMaxAggregateInputType;
180
+ };
181
+ export type GetFileAggregateType<T extends FileAggregateArgs> = {
182
+ [P in keyof T & keyof AggregateFile]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateFile[P]> : Prisma.GetScalarType<T[P], AggregateFile[P]>;
183
+ };
184
+ export type FileGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
185
+ where?: Prisma.FileWhereInput;
186
+ orderBy?: Prisma.FileOrderByWithAggregationInput | Prisma.FileOrderByWithAggregationInput[];
187
+ by: Prisma.FileScalarFieldEnum[] | Prisma.FileScalarFieldEnum;
188
+ having?: Prisma.FileScalarWhereWithAggregatesInput;
189
+ take?: number;
190
+ skip?: number;
191
+ _count?: FileCountAggregateInputType | true;
192
+ _avg?: FileAvgAggregateInputType;
193
+ _sum?: FileSumAggregateInputType;
194
+ _min?: FileMinAggregateInputType;
195
+ _max?: FileMaxAggregateInputType;
196
+ };
197
+ export type FileGroupByOutputType = {
198
+ id: number;
199
+ name: string;
200
+ originalName: string;
201
+ mimeType: string;
202
+ sizeBytes: number;
203
+ title: string | null;
204
+ description: string | null;
205
+ resourceField: string | null;
206
+ resourceName: string | null;
207
+ resourceId: number | null;
208
+ updatedAt: Date;
209
+ createdAt: Date;
210
+ _count: FileCountAggregateOutputType | null;
211
+ _avg: FileAvgAggregateOutputType | null;
212
+ _sum: FileSumAggregateOutputType | null;
213
+ _min: FileMinAggregateOutputType | null;
214
+ _max: FileMaxAggregateOutputType | null;
215
+ };
216
+ export type GetFileGroupByPayload<T extends FileGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<FileGroupByOutputType, T['by']> & {
217
+ [P in ((keyof T) & (keyof FileGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], FileGroupByOutputType[P]> : Prisma.GetScalarType<T[P], FileGroupByOutputType[P]>;
218
+ }>>;
219
+ export type FileWhereInput = {
220
+ AND?: Prisma.FileWhereInput | Prisma.FileWhereInput[];
221
+ OR?: Prisma.FileWhereInput[];
222
+ NOT?: Prisma.FileWhereInput | Prisma.FileWhereInput[];
223
+ id?: Prisma.IntFilter<"File"> | number;
224
+ name?: Prisma.StringFilter<"File"> | string;
225
+ originalName?: Prisma.StringFilter<"File"> | string;
226
+ mimeType?: Prisma.StringFilter<"File"> | string;
227
+ sizeBytes?: Prisma.IntFilter<"File"> | number;
228
+ title?: Prisma.StringNullableFilter<"File"> | string | null;
229
+ description?: Prisma.StringNullableFilter<"File"> | string | null;
230
+ resourceField?: Prisma.StringNullableFilter<"File"> | string | null;
231
+ resourceName?: Prisma.StringNullableFilter<"File"> | string | null;
232
+ resourceId?: Prisma.IntNullableFilter<"File"> | number | null;
233
+ updatedAt?: Prisma.DateTimeFilter<"File"> | Date | string;
234
+ createdAt?: Prisma.DateTimeFilter<"File"> | Date | string;
235
+ };
236
+ export type FileOrderByWithRelationInput = {
237
+ id?: Prisma.SortOrder;
238
+ name?: Prisma.SortOrder;
239
+ originalName?: Prisma.SortOrder;
240
+ mimeType?: Prisma.SortOrder;
241
+ sizeBytes?: Prisma.SortOrder;
242
+ title?: Prisma.SortOrderInput | Prisma.SortOrder;
243
+ description?: Prisma.SortOrderInput | Prisma.SortOrder;
244
+ resourceField?: Prisma.SortOrderInput | Prisma.SortOrder;
245
+ resourceName?: Prisma.SortOrderInput | Prisma.SortOrder;
246
+ resourceId?: Prisma.SortOrderInput | Prisma.SortOrder;
247
+ updatedAt?: Prisma.SortOrder;
248
+ createdAt?: Prisma.SortOrder;
249
+ };
250
+ export type FileWhereUniqueInput = Prisma.AtLeast<{
251
+ id?: number;
252
+ name?: string;
253
+ AND?: Prisma.FileWhereInput | Prisma.FileWhereInput[];
254
+ OR?: Prisma.FileWhereInput[];
255
+ NOT?: Prisma.FileWhereInput | Prisma.FileWhereInput[];
256
+ originalName?: Prisma.StringFilter<"File"> | string;
257
+ mimeType?: Prisma.StringFilter<"File"> | string;
258
+ sizeBytes?: Prisma.IntFilter<"File"> | number;
259
+ title?: Prisma.StringNullableFilter<"File"> | string | null;
260
+ description?: Prisma.StringNullableFilter<"File"> | string | null;
261
+ resourceField?: Prisma.StringNullableFilter<"File"> | string | null;
262
+ resourceName?: Prisma.StringNullableFilter<"File"> | string | null;
263
+ resourceId?: Prisma.IntNullableFilter<"File"> | number | null;
264
+ updatedAt?: Prisma.DateTimeFilter<"File"> | Date | string;
265
+ createdAt?: Prisma.DateTimeFilter<"File"> | Date | string;
266
+ }, "id" | "name">;
267
+ export type FileOrderByWithAggregationInput = {
268
+ id?: Prisma.SortOrder;
269
+ name?: Prisma.SortOrder;
270
+ originalName?: Prisma.SortOrder;
271
+ mimeType?: Prisma.SortOrder;
272
+ sizeBytes?: Prisma.SortOrder;
273
+ title?: Prisma.SortOrderInput | Prisma.SortOrder;
274
+ description?: Prisma.SortOrderInput | Prisma.SortOrder;
275
+ resourceField?: Prisma.SortOrderInput | Prisma.SortOrder;
276
+ resourceName?: Prisma.SortOrderInput | Prisma.SortOrder;
277
+ resourceId?: Prisma.SortOrderInput | Prisma.SortOrder;
278
+ updatedAt?: Prisma.SortOrder;
279
+ createdAt?: Prisma.SortOrder;
280
+ _count?: Prisma.FileCountOrderByAggregateInput;
281
+ _avg?: Prisma.FileAvgOrderByAggregateInput;
282
+ _max?: Prisma.FileMaxOrderByAggregateInput;
283
+ _min?: Prisma.FileMinOrderByAggregateInput;
284
+ _sum?: Prisma.FileSumOrderByAggregateInput;
285
+ };
286
+ export type FileScalarWhereWithAggregatesInput = {
287
+ AND?: Prisma.FileScalarWhereWithAggregatesInput | Prisma.FileScalarWhereWithAggregatesInput[];
288
+ OR?: Prisma.FileScalarWhereWithAggregatesInput[];
289
+ NOT?: Prisma.FileScalarWhereWithAggregatesInput | Prisma.FileScalarWhereWithAggregatesInput[];
290
+ id?: Prisma.IntWithAggregatesFilter<"File"> | number;
291
+ name?: Prisma.StringWithAggregatesFilter<"File"> | string;
292
+ originalName?: Prisma.StringWithAggregatesFilter<"File"> | string;
293
+ mimeType?: Prisma.StringWithAggregatesFilter<"File"> | string;
294
+ sizeBytes?: Prisma.IntWithAggregatesFilter<"File"> | number;
295
+ title?: Prisma.StringNullableWithAggregatesFilter<"File"> | string | null;
296
+ description?: Prisma.StringNullableWithAggregatesFilter<"File"> | string | null;
297
+ resourceField?: Prisma.StringNullableWithAggregatesFilter<"File"> | string | null;
298
+ resourceName?: Prisma.StringNullableWithAggregatesFilter<"File"> | string | null;
299
+ resourceId?: Prisma.IntNullableWithAggregatesFilter<"File"> | number | null;
300
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"File"> | Date | string;
301
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"File"> | Date | string;
302
+ };
303
+ export type FileCreateInput = {
304
+ name: string;
305
+ originalName: string;
306
+ mimeType: string;
307
+ sizeBytes: number;
308
+ title?: string | null;
309
+ description?: string | null;
310
+ resourceField?: string | null;
311
+ resourceName?: string | null;
312
+ resourceId?: number | null;
313
+ updatedAt?: Date | string;
314
+ createdAt?: Date | string;
315
+ };
316
+ export type FileUncheckedCreateInput = {
317
+ id?: number;
318
+ name: string;
319
+ originalName: string;
320
+ mimeType: string;
321
+ sizeBytes: number;
322
+ title?: string | null;
323
+ description?: string | null;
324
+ resourceField?: string | null;
325
+ resourceName?: string | null;
326
+ resourceId?: number | null;
327
+ updatedAt?: Date | string;
328
+ createdAt?: Date | string;
329
+ };
330
+ export type FileUpdateInput = {
331
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
332
+ originalName?: Prisma.StringFieldUpdateOperationsInput | string;
333
+ mimeType?: Prisma.StringFieldUpdateOperationsInput | string;
334
+ sizeBytes?: Prisma.IntFieldUpdateOperationsInput | number;
335
+ title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
336
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
337
+ resourceField?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
338
+ resourceName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
339
+ resourceId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
340
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
341
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
342
+ };
343
+ export type FileUncheckedUpdateInput = {
344
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
345
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
346
+ originalName?: Prisma.StringFieldUpdateOperationsInput | string;
347
+ mimeType?: Prisma.StringFieldUpdateOperationsInput | string;
348
+ sizeBytes?: Prisma.IntFieldUpdateOperationsInput | number;
349
+ title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
350
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
351
+ resourceField?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
352
+ resourceName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
353
+ resourceId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
354
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
355
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
356
+ };
357
+ export type FileCreateManyInput = {
358
+ id?: number;
359
+ name: string;
360
+ originalName: string;
361
+ mimeType: string;
362
+ sizeBytes: number;
363
+ title?: string | null;
364
+ description?: string | null;
365
+ resourceField?: string | null;
366
+ resourceName?: string | null;
367
+ resourceId?: number | null;
368
+ updatedAt?: Date | string;
369
+ createdAt?: Date | string;
370
+ };
371
+ export type FileUpdateManyMutationInput = {
372
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
373
+ originalName?: Prisma.StringFieldUpdateOperationsInput | string;
374
+ mimeType?: Prisma.StringFieldUpdateOperationsInput | string;
375
+ sizeBytes?: Prisma.IntFieldUpdateOperationsInput | number;
376
+ title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
377
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
378
+ resourceField?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
379
+ resourceName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
380
+ resourceId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
381
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
382
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
383
+ };
384
+ export type FileUncheckedUpdateManyInput = {
385
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
386
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
387
+ originalName?: Prisma.StringFieldUpdateOperationsInput | string;
388
+ mimeType?: Prisma.StringFieldUpdateOperationsInput | string;
389
+ sizeBytes?: Prisma.IntFieldUpdateOperationsInput | number;
390
+ title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
391
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
392
+ resourceField?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
393
+ resourceName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
394
+ resourceId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
395
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
396
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
397
+ };
398
+ export type FileCountOrderByAggregateInput = {
399
+ id?: Prisma.SortOrder;
400
+ name?: Prisma.SortOrder;
401
+ originalName?: Prisma.SortOrder;
402
+ mimeType?: Prisma.SortOrder;
403
+ sizeBytes?: Prisma.SortOrder;
404
+ title?: Prisma.SortOrder;
405
+ description?: Prisma.SortOrder;
406
+ resourceField?: Prisma.SortOrder;
407
+ resourceName?: Prisma.SortOrder;
408
+ resourceId?: Prisma.SortOrder;
409
+ updatedAt?: Prisma.SortOrder;
410
+ createdAt?: Prisma.SortOrder;
411
+ };
412
+ export type FileAvgOrderByAggregateInput = {
413
+ id?: Prisma.SortOrder;
414
+ sizeBytes?: Prisma.SortOrder;
415
+ resourceId?: Prisma.SortOrder;
416
+ };
417
+ export type FileMaxOrderByAggregateInput = {
418
+ id?: Prisma.SortOrder;
419
+ name?: Prisma.SortOrder;
420
+ originalName?: Prisma.SortOrder;
421
+ mimeType?: Prisma.SortOrder;
422
+ sizeBytes?: Prisma.SortOrder;
423
+ title?: Prisma.SortOrder;
424
+ description?: Prisma.SortOrder;
425
+ resourceField?: Prisma.SortOrder;
426
+ resourceName?: Prisma.SortOrder;
427
+ resourceId?: Prisma.SortOrder;
428
+ updatedAt?: Prisma.SortOrder;
429
+ createdAt?: Prisma.SortOrder;
430
+ };
431
+ export type FileMinOrderByAggregateInput = {
432
+ id?: Prisma.SortOrder;
433
+ name?: Prisma.SortOrder;
434
+ originalName?: Prisma.SortOrder;
435
+ mimeType?: Prisma.SortOrder;
436
+ sizeBytes?: Prisma.SortOrder;
437
+ title?: Prisma.SortOrder;
438
+ description?: Prisma.SortOrder;
439
+ resourceField?: Prisma.SortOrder;
440
+ resourceName?: Prisma.SortOrder;
441
+ resourceId?: Prisma.SortOrder;
442
+ updatedAt?: Prisma.SortOrder;
443
+ createdAt?: Prisma.SortOrder;
444
+ };
445
+ export type FileSumOrderByAggregateInput = {
446
+ id?: Prisma.SortOrder;
447
+ sizeBytes?: Prisma.SortOrder;
448
+ resourceId?: Prisma.SortOrder;
449
+ };
450
+ export type NullableIntFieldUpdateOperationsInput = {
451
+ set?: number | null;
452
+ increment?: number;
453
+ decrement?: number;
454
+ multiply?: number;
455
+ divide?: number;
456
+ };
457
+ export type FileSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
458
+ id?: boolean;
459
+ name?: boolean;
460
+ originalName?: boolean;
461
+ mimeType?: boolean;
462
+ sizeBytes?: boolean;
463
+ title?: boolean;
464
+ description?: boolean;
465
+ resourceField?: boolean;
466
+ resourceName?: boolean;
467
+ resourceId?: boolean;
468
+ updatedAt?: boolean;
469
+ createdAt?: boolean;
470
+ }, ExtArgs["result"]["file"]>;
471
+ export type FileSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
472
+ id?: boolean;
473
+ name?: boolean;
474
+ originalName?: boolean;
475
+ mimeType?: boolean;
476
+ sizeBytes?: boolean;
477
+ title?: boolean;
478
+ description?: boolean;
479
+ resourceField?: boolean;
480
+ resourceName?: boolean;
481
+ resourceId?: boolean;
482
+ updatedAt?: boolean;
483
+ createdAt?: boolean;
484
+ }, ExtArgs["result"]["file"]>;
485
+ export type FileSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
486
+ id?: boolean;
487
+ name?: boolean;
488
+ originalName?: boolean;
489
+ mimeType?: boolean;
490
+ sizeBytes?: boolean;
491
+ title?: boolean;
492
+ description?: boolean;
493
+ resourceField?: boolean;
494
+ resourceName?: boolean;
495
+ resourceId?: boolean;
496
+ updatedAt?: boolean;
497
+ createdAt?: boolean;
498
+ }, ExtArgs["result"]["file"]>;
499
+ export type FileSelectScalar = {
500
+ id?: boolean;
501
+ name?: boolean;
502
+ originalName?: boolean;
503
+ mimeType?: boolean;
504
+ sizeBytes?: boolean;
505
+ title?: boolean;
506
+ description?: boolean;
507
+ resourceField?: boolean;
508
+ resourceName?: boolean;
509
+ resourceId?: boolean;
510
+ updatedAt?: boolean;
511
+ createdAt?: boolean;
512
+ };
513
+ export type FileOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "originalName" | "mimeType" | "sizeBytes" | "title" | "description" | "resourceField" | "resourceName" | "resourceId" | "updatedAt" | "createdAt", ExtArgs["result"]["file"]>;
514
+ export type $FilePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
515
+ name: "File";
516
+ objects: {};
517
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
518
+ id: number;
519
+ name: string;
520
+ originalName: string;
521
+ mimeType: string;
522
+ sizeBytes: number;
523
+ title: string | null;
524
+ description: string | null;
525
+ resourceField: string | null;
526
+ resourceName: string | null;
527
+ resourceId: number | null;
528
+ /**
529
+ * Audit columns
530
+ */
531
+ updatedAt: Date;
532
+ createdAt: Date;
533
+ }, ExtArgs["result"]["file"]>;
534
+ composites: {};
535
+ };
536
+ export type FileGetPayload<S extends boolean | null | undefined | FileDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$FilePayload, S>;
537
+ export type FileCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<FileFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
538
+ select?: FileCountAggregateInputType | true;
539
+ };
540
+ export interface FileDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
541
+ [K: symbol]: {
542
+ types: Prisma.TypeMap<ExtArgs>['model']['File'];
543
+ meta: {
544
+ name: 'File';
545
+ };
546
+ };
547
+ /**
548
+ * Find zero or one File that matches the filter.
549
+ * @param {FileFindUniqueArgs} args - Arguments to find a File
550
+ * @example
551
+ * // Get one File
552
+ * const file = await prisma.file.findUnique({
553
+ * where: {
554
+ * // ... provide filter here
555
+ * }
556
+ * })
557
+ */
558
+ findUnique<T extends FileFindUniqueArgs>(args: Prisma.SelectSubset<T, FileFindUniqueArgs<ExtArgs>>): Prisma.Prisma__FileClient<runtime.Types.Result.GetResult<Prisma.$FilePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
559
+ /**
560
+ * Find one File that matches the filter or throw an error with `error.code='P2025'`
561
+ * if no matches were found.
562
+ * @param {FileFindUniqueOrThrowArgs} args - Arguments to find a File
563
+ * @example
564
+ * // Get one File
565
+ * const file = await prisma.file.findUniqueOrThrow({
566
+ * where: {
567
+ * // ... provide filter here
568
+ * }
569
+ * })
570
+ */
571
+ findUniqueOrThrow<T extends FileFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, FileFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__FileClient<runtime.Types.Result.GetResult<Prisma.$FilePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
572
+ /**
573
+ * Find the first File that matches the filter.
574
+ * Note, that providing `undefined` is treated as the value not being there.
575
+ * Read more here: https://pris.ly/d/null-undefined
576
+ * @param {FileFindFirstArgs} args - Arguments to find a File
577
+ * @example
578
+ * // Get one File
579
+ * const file = await prisma.file.findFirst({
580
+ * where: {
581
+ * // ... provide filter here
582
+ * }
583
+ * })
584
+ */
585
+ findFirst<T extends FileFindFirstArgs>(args?: Prisma.SelectSubset<T, FileFindFirstArgs<ExtArgs>>): Prisma.Prisma__FileClient<runtime.Types.Result.GetResult<Prisma.$FilePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
586
+ /**
587
+ * Find the first File that matches the filter or
588
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
589
+ * Note, that providing `undefined` is treated as the value not being there.
590
+ * Read more here: https://pris.ly/d/null-undefined
591
+ * @param {FileFindFirstOrThrowArgs} args - Arguments to find a File
592
+ * @example
593
+ * // Get one File
594
+ * const file = await prisma.file.findFirstOrThrow({
595
+ * where: {
596
+ * // ... provide filter here
597
+ * }
598
+ * })
599
+ */
600
+ findFirstOrThrow<T extends FileFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, FileFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__FileClient<runtime.Types.Result.GetResult<Prisma.$FilePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
601
+ /**
602
+ * Find zero or more Files that matches the filter.
603
+ * Note, that providing `undefined` is treated as the value not being there.
604
+ * Read more here: https://pris.ly/d/null-undefined
605
+ * @param {FileFindManyArgs} args - Arguments to filter and select certain fields only.
606
+ * @example
607
+ * // Get all Files
608
+ * const files = await prisma.file.findMany()
609
+ *
610
+ * // Get first 10 Files
611
+ * const files = await prisma.file.findMany({ take: 10 })
612
+ *
613
+ * // Only select the `id`
614
+ * const fileWithIdOnly = await prisma.file.findMany({ select: { id: true } })
615
+ *
616
+ */
617
+ findMany<T extends FileFindManyArgs>(args?: Prisma.SelectSubset<T, FileFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FilePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
618
+ /**
619
+ * Create a File.
620
+ * @param {FileCreateArgs} args - Arguments to create a File.
621
+ * @example
622
+ * // Create one File
623
+ * const File = await prisma.file.create({
624
+ * data: {
625
+ * // ... data to create a File
626
+ * }
627
+ * })
628
+ *
629
+ */
630
+ create<T extends FileCreateArgs>(args: Prisma.SelectSubset<T, FileCreateArgs<ExtArgs>>): Prisma.Prisma__FileClient<runtime.Types.Result.GetResult<Prisma.$FilePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
631
+ /**
632
+ * Create many Files.
633
+ * @param {FileCreateManyArgs} args - Arguments to create many Files.
634
+ * @example
635
+ * // Create many Files
636
+ * const file = await prisma.file.createMany({
637
+ * data: [
638
+ * // ... provide data here
639
+ * ]
640
+ * })
641
+ *
642
+ */
643
+ createMany<T extends FileCreateManyArgs>(args?: Prisma.SelectSubset<T, FileCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
644
+ /**
645
+ * Create many Files and returns the data saved in the database.
646
+ * @param {FileCreateManyAndReturnArgs} args - Arguments to create many Files.
647
+ * @example
648
+ * // Create many Files
649
+ * const file = await prisma.file.createManyAndReturn({
650
+ * data: [
651
+ * // ... provide data here
652
+ * ]
653
+ * })
654
+ *
655
+ * // Create many Files and only return the `id`
656
+ * const fileWithIdOnly = await prisma.file.createManyAndReturn({
657
+ * select: { id: true },
658
+ * data: [
659
+ * // ... provide data here
660
+ * ]
661
+ * })
662
+ * Note, that providing `undefined` is treated as the value not being there.
663
+ * Read more here: https://pris.ly/d/null-undefined
664
+ *
665
+ */
666
+ createManyAndReturn<T extends FileCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, FileCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FilePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
667
+ /**
668
+ * Delete a File.
669
+ * @param {FileDeleteArgs} args - Arguments to delete one File.
670
+ * @example
671
+ * // Delete one File
672
+ * const File = await prisma.file.delete({
673
+ * where: {
674
+ * // ... filter to delete one File
675
+ * }
676
+ * })
677
+ *
678
+ */
679
+ delete<T extends FileDeleteArgs>(args: Prisma.SelectSubset<T, FileDeleteArgs<ExtArgs>>): Prisma.Prisma__FileClient<runtime.Types.Result.GetResult<Prisma.$FilePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
680
+ /**
681
+ * Update one File.
682
+ * @param {FileUpdateArgs} args - Arguments to update one File.
683
+ * @example
684
+ * // Update one File
685
+ * const file = await prisma.file.update({
686
+ * where: {
687
+ * // ... provide filter here
688
+ * },
689
+ * data: {
690
+ * // ... provide data here
691
+ * }
692
+ * })
693
+ *
694
+ */
695
+ update<T extends FileUpdateArgs>(args: Prisma.SelectSubset<T, FileUpdateArgs<ExtArgs>>): Prisma.Prisma__FileClient<runtime.Types.Result.GetResult<Prisma.$FilePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
696
+ /**
697
+ * Delete zero or more Files.
698
+ * @param {FileDeleteManyArgs} args - Arguments to filter Files to delete.
699
+ * @example
700
+ * // Delete a few Files
701
+ * const { count } = await prisma.file.deleteMany({
702
+ * where: {
703
+ * // ... provide filter here
704
+ * }
705
+ * })
706
+ *
707
+ */
708
+ deleteMany<T extends FileDeleteManyArgs>(args?: Prisma.SelectSubset<T, FileDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
709
+ /**
710
+ * Update zero or more Files.
711
+ * Note, that providing `undefined` is treated as the value not being there.
712
+ * Read more here: https://pris.ly/d/null-undefined
713
+ * @param {FileUpdateManyArgs} args - Arguments to update one or more rows.
714
+ * @example
715
+ * // Update many Files
716
+ * const file = await prisma.file.updateMany({
717
+ * where: {
718
+ * // ... provide filter here
719
+ * },
720
+ * data: {
721
+ * // ... provide data here
722
+ * }
723
+ * })
724
+ *
725
+ */
726
+ updateMany<T extends FileUpdateManyArgs>(args: Prisma.SelectSubset<T, FileUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
727
+ /**
728
+ * Update zero or more Files and returns the data updated in the database.
729
+ * @param {FileUpdateManyAndReturnArgs} args - Arguments to update many Files.
730
+ * @example
731
+ * // Update many Files
732
+ * const file = await prisma.file.updateManyAndReturn({
733
+ * where: {
734
+ * // ... provide filter here
735
+ * },
736
+ * data: [
737
+ * // ... provide data here
738
+ * ]
739
+ * })
740
+ *
741
+ * // Update zero or more Files and only return the `id`
742
+ * const fileWithIdOnly = await prisma.file.updateManyAndReturn({
743
+ * select: { id: true },
744
+ * where: {
745
+ * // ... provide filter here
746
+ * },
747
+ * data: [
748
+ * // ... provide data here
749
+ * ]
750
+ * })
751
+ * Note, that providing `undefined` is treated as the value not being there.
752
+ * Read more here: https://pris.ly/d/null-undefined
753
+ *
754
+ */
755
+ updateManyAndReturn<T extends FileUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, FileUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FilePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
756
+ /**
757
+ * Create or update one File.
758
+ * @param {FileUpsertArgs} args - Arguments to update or create a File.
759
+ * @example
760
+ * // Update or create a File
761
+ * const file = await prisma.file.upsert({
762
+ * create: {
763
+ * // ... data to create a File
764
+ * },
765
+ * update: {
766
+ * // ... in case it already exists, update
767
+ * },
768
+ * where: {
769
+ * // ... the filter for the File we want to update
770
+ * }
771
+ * })
772
+ */
773
+ upsert<T extends FileUpsertArgs>(args: Prisma.SelectSubset<T, FileUpsertArgs<ExtArgs>>): Prisma.Prisma__FileClient<runtime.Types.Result.GetResult<Prisma.$FilePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
774
+ /**
775
+ * Count the number of Files.
776
+ * Note, that providing `undefined` is treated as the value not being there.
777
+ * Read more here: https://pris.ly/d/null-undefined
778
+ * @param {FileCountArgs} args - Arguments to filter Files to count.
779
+ * @example
780
+ * // Count the number of Files
781
+ * const count = await prisma.file.count({
782
+ * where: {
783
+ * // ... the filter for the Files we want to count
784
+ * }
785
+ * })
786
+ **/
787
+ count<T extends FileCountArgs>(args?: Prisma.Subset<T, FileCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], FileCountAggregateOutputType> : number>;
788
+ /**
789
+ * Allows you to perform aggregations operations on a File.
790
+ * Note, that providing `undefined` is treated as the value not being there.
791
+ * Read more here: https://pris.ly/d/null-undefined
792
+ * @param {FileAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
793
+ * @example
794
+ * // Ordered by age ascending
795
+ * // Where email contains prisma.io
796
+ * // Limited to the 10 users
797
+ * const aggregations = await prisma.user.aggregate({
798
+ * _avg: {
799
+ * age: true,
800
+ * },
801
+ * where: {
802
+ * email: {
803
+ * contains: "prisma.io",
804
+ * },
805
+ * },
806
+ * orderBy: {
807
+ * age: "asc",
808
+ * },
809
+ * take: 10,
810
+ * })
811
+ **/
812
+ aggregate<T extends FileAggregateArgs>(args: Prisma.Subset<T, FileAggregateArgs>): Prisma.PrismaPromise<GetFileAggregateType<T>>;
813
+ /**
814
+ * Group by File.
815
+ * Note, that providing `undefined` is treated as the value not being there.
816
+ * Read more here: https://pris.ly/d/null-undefined
817
+ * @param {FileGroupByArgs} args - Group by arguments.
818
+ * @example
819
+ * // Group by city, order by createdAt, get count
820
+ * const result = await prisma.user.groupBy({
821
+ * by: ['city', 'createdAt'],
822
+ * orderBy: {
823
+ * createdAt: true
824
+ * },
825
+ * _count: {
826
+ * _all: true
827
+ * },
828
+ * })
829
+ *
830
+ **/
831
+ groupBy<T extends FileGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
832
+ orderBy: FileGroupByArgs['orderBy'];
833
+ } : {
834
+ orderBy?: FileGroupByArgs['orderBy'];
835
+ }, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
836
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
837
+ Error,
838
+ 'Field ',
839
+ P,
840
+ ` in "having" needs to be provided in "by"`
841
+ ];
842
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
843
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
844
+ }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
845
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
846
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
847
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
848
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, FileGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetFileGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
849
+ /**
850
+ * Fields of the File model
851
+ */
852
+ readonly fields: FileFieldRefs;
853
+ }
854
+ /**
855
+ * The delegate class that acts as a "Promise-like" for File.
856
+ * Why is this prefixed with `Prisma__`?
857
+ * Because we want to prevent naming conflicts as mentioned in
858
+ * https://github.com/prisma/prisma-client-js/issues/707
859
+ */
860
+ export interface Prisma__FileClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
861
+ readonly [Symbol.toStringTag]: "PrismaPromise";
862
+ /**
863
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
864
+ * @param onfulfilled The callback to execute when the Promise is resolved.
865
+ * @param onrejected The callback to execute when the Promise is rejected.
866
+ * @returns A Promise for the completion of which ever callback is executed.
867
+ */
868
+ then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>;
869
+ /**
870
+ * Attaches a callback for only the rejection of the Promise.
871
+ * @param onrejected The callback to execute when the Promise is rejected.
872
+ * @returns A Promise for the completion of the callback.
873
+ */
874
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
875
+ /**
876
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
877
+ * resolved value cannot be modified from the callback.
878
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
879
+ * @returns A Promise for the completion of the callback.
880
+ */
881
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
882
+ }
883
+ /**
884
+ * Fields of the File model
885
+ */
886
+ export interface FileFieldRefs {
887
+ readonly id: Prisma.FieldRef<"File", 'Int'>;
888
+ readonly name: Prisma.FieldRef<"File", 'String'>;
889
+ readonly originalName: Prisma.FieldRef<"File", 'String'>;
890
+ readonly mimeType: Prisma.FieldRef<"File", 'String'>;
891
+ readonly sizeBytes: Prisma.FieldRef<"File", 'Int'>;
892
+ readonly title: Prisma.FieldRef<"File", 'String'>;
893
+ readonly description: Prisma.FieldRef<"File", 'String'>;
894
+ readonly resourceField: Prisma.FieldRef<"File", 'String'>;
895
+ readonly resourceName: Prisma.FieldRef<"File", 'String'>;
896
+ readonly resourceId: Prisma.FieldRef<"File", 'Int'>;
897
+ readonly updatedAt: Prisma.FieldRef<"File", 'DateTime'>;
898
+ readonly createdAt: Prisma.FieldRef<"File", 'DateTime'>;
899
+ }
900
+ /**
901
+ * File findUnique
902
+ */
903
+ export type FileFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
904
+ /**
905
+ * Select specific fields to fetch from the File
906
+ */
907
+ select?: Prisma.FileSelect<ExtArgs> | null;
908
+ /**
909
+ * Omit specific fields from the File
910
+ */
911
+ omit?: Prisma.FileOmit<ExtArgs> | null;
912
+ /**
913
+ * Filter, which File to fetch.
914
+ */
915
+ where: Prisma.FileWhereUniqueInput;
916
+ };
917
+ /**
918
+ * File findUniqueOrThrow
919
+ */
920
+ export type FileFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
921
+ /**
922
+ * Select specific fields to fetch from the File
923
+ */
924
+ select?: Prisma.FileSelect<ExtArgs> | null;
925
+ /**
926
+ * Omit specific fields from the File
927
+ */
928
+ omit?: Prisma.FileOmit<ExtArgs> | null;
929
+ /**
930
+ * Filter, which File to fetch.
931
+ */
932
+ where: Prisma.FileWhereUniqueInput;
933
+ };
934
+ /**
935
+ * File findFirst
936
+ */
937
+ export type FileFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
938
+ /**
939
+ * Select specific fields to fetch from the File
940
+ */
941
+ select?: Prisma.FileSelect<ExtArgs> | null;
942
+ /**
943
+ * Omit specific fields from the File
944
+ */
945
+ omit?: Prisma.FileOmit<ExtArgs> | null;
946
+ /**
947
+ * Filter, which File to fetch.
948
+ */
949
+ where?: Prisma.FileWhereInput;
950
+ /**
951
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
952
+ *
953
+ * Determine the order of Files to fetch.
954
+ */
955
+ orderBy?: Prisma.FileOrderByWithRelationInput | Prisma.FileOrderByWithRelationInput[];
956
+ /**
957
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
958
+ *
959
+ * Sets the position for searching for Files.
960
+ */
961
+ cursor?: Prisma.FileWhereUniqueInput;
962
+ /**
963
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
964
+ *
965
+ * Take `±n` Files from the position of the cursor.
966
+ */
967
+ take?: number;
968
+ /**
969
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
970
+ *
971
+ * Skip the first `n` Files.
972
+ */
973
+ skip?: number;
974
+ /**
975
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
976
+ *
977
+ * Filter by unique combinations of Files.
978
+ */
979
+ distinct?: Prisma.FileScalarFieldEnum | Prisma.FileScalarFieldEnum[];
980
+ };
981
+ /**
982
+ * File findFirstOrThrow
983
+ */
984
+ export type FileFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
985
+ /**
986
+ * Select specific fields to fetch from the File
987
+ */
988
+ select?: Prisma.FileSelect<ExtArgs> | null;
989
+ /**
990
+ * Omit specific fields from the File
991
+ */
992
+ omit?: Prisma.FileOmit<ExtArgs> | null;
993
+ /**
994
+ * Filter, which File to fetch.
995
+ */
996
+ where?: Prisma.FileWhereInput;
997
+ /**
998
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
999
+ *
1000
+ * Determine the order of Files to fetch.
1001
+ */
1002
+ orderBy?: Prisma.FileOrderByWithRelationInput | Prisma.FileOrderByWithRelationInput[];
1003
+ /**
1004
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1005
+ *
1006
+ * Sets the position for searching for Files.
1007
+ */
1008
+ cursor?: Prisma.FileWhereUniqueInput;
1009
+ /**
1010
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1011
+ *
1012
+ * Take `±n` Files from the position of the cursor.
1013
+ */
1014
+ take?: number;
1015
+ /**
1016
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1017
+ *
1018
+ * Skip the first `n` Files.
1019
+ */
1020
+ skip?: number;
1021
+ /**
1022
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1023
+ *
1024
+ * Filter by unique combinations of Files.
1025
+ */
1026
+ distinct?: Prisma.FileScalarFieldEnum | Prisma.FileScalarFieldEnum[];
1027
+ };
1028
+ /**
1029
+ * File findMany
1030
+ */
1031
+ export type FileFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1032
+ /**
1033
+ * Select specific fields to fetch from the File
1034
+ */
1035
+ select?: Prisma.FileSelect<ExtArgs> | null;
1036
+ /**
1037
+ * Omit specific fields from the File
1038
+ */
1039
+ omit?: Prisma.FileOmit<ExtArgs> | null;
1040
+ /**
1041
+ * Filter, which Files to fetch.
1042
+ */
1043
+ where?: Prisma.FileWhereInput;
1044
+ /**
1045
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1046
+ *
1047
+ * Determine the order of Files to fetch.
1048
+ */
1049
+ orderBy?: Prisma.FileOrderByWithRelationInput | Prisma.FileOrderByWithRelationInput[];
1050
+ /**
1051
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1052
+ *
1053
+ * Sets the position for listing Files.
1054
+ */
1055
+ cursor?: Prisma.FileWhereUniqueInput;
1056
+ /**
1057
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1058
+ *
1059
+ * Take `±n` Files from the position of the cursor.
1060
+ */
1061
+ take?: number;
1062
+ /**
1063
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1064
+ *
1065
+ * Skip the first `n` Files.
1066
+ */
1067
+ skip?: number;
1068
+ /**
1069
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1070
+ *
1071
+ * Filter by unique combinations of Files.
1072
+ */
1073
+ distinct?: Prisma.FileScalarFieldEnum | Prisma.FileScalarFieldEnum[];
1074
+ };
1075
+ /**
1076
+ * File create
1077
+ */
1078
+ export type FileCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1079
+ /**
1080
+ * Select specific fields to fetch from the File
1081
+ */
1082
+ select?: Prisma.FileSelect<ExtArgs> | null;
1083
+ /**
1084
+ * Omit specific fields from the File
1085
+ */
1086
+ omit?: Prisma.FileOmit<ExtArgs> | null;
1087
+ /**
1088
+ * The data needed to create a File.
1089
+ */
1090
+ data: Prisma.XOR<Prisma.FileCreateInput, Prisma.FileUncheckedCreateInput>;
1091
+ };
1092
+ /**
1093
+ * File createMany
1094
+ */
1095
+ export type FileCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1096
+ /**
1097
+ * The data used to create many Files.
1098
+ */
1099
+ data: Prisma.FileCreateManyInput | Prisma.FileCreateManyInput[];
1100
+ };
1101
+ /**
1102
+ * File createManyAndReturn
1103
+ */
1104
+ export type FileCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1105
+ /**
1106
+ * Select specific fields to fetch from the File
1107
+ */
1108
+ select?: Prisma.FileSelectCreateManyAndReturn<ExtArgs> | null;
1109
+ /**
1110
+ * Omit specific fields from the File
1111
+ */
1112
+ omit?: Prisma.FileOmit<ExtArgs> | null;
1113
+ /**
1114
+ * The data used to create many Files.
1115
+ */
1116
+ data: Prisma.FileCreateManyInput | Prisma.FileCreateManyInput[];
1117
+ };
1118
+ /**
1119
+ * File update
1120
+ */
1121
+ export type FileUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1122
+ /**
1123
+ * Select specific fields to fetch from the File
1124
+ */
1125
+ select?: Prisma.FileSelect<ExtArgs> | null;
1126
+ /**
1127
+ * Omit specific fields from the File
1128
+ */
1129
+ omit?: Prisma.FileOmit<ExtArgs> | null;
1130
+ /**
1131
+ * The data needed to update a File.
1132
+ */
1133
+ data: Prisma.XOR<Prisma.FileUpdateInput, Prisma.FileUncheckedUpdateInput>;
1134
+ /**
1135
+ * Choose, which File to update.
1136
+ */
1137
+ where: Prisma.FileWhereUniqueInput;
1138
+ };
1139
+ /**
1140
+ * File updateMany
1141
+ */
1142
+ export type FileUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1143
+ /**
1144
+ * The data used to update Files.
1145
+ */
1146
+ data: Prisma.XOR<Prisma.FileUpdateManyMutationInput, Prisma.FileUncheckedUpdateManyInput>;
1147
+ /**
1148
+ * Filter which Files to update
1149
+ */
1150
+ where?: Prisma.FileWhereInput;
1151
+ /**
1152
+ * Limit how many Files to update.
1153
+ */
1154
+ limit?: number;
1155
+ };
1156
+ /**
1157
+ * File updateManyAndReturn
1158
+ */
1159
+ export type FileUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1160
+ /**
1161
+ * Select specific fields to fetch from the File
1162
+ */
1163
+ select?: Prisma.FileSelectUpdateManyAndReturn<ExtArgs> | null;
1164
+ /**
1165
+ * Omit specific fields from the File
1166
+ */
1167
+ omit?: Prisma.FileOmit<ExtArgs> | null;
1168
+ /**
1169
+ * The data used to update Files.
1170
+ */
1171
+ data: Prisma.XOR<Prisma.FileUpdateManyMutationInput, Prisma.FileUncheckedUpdateManyInput>;
1172
+ /**
1173
+ * Filter which Files to update
1174
+ */
1175
+ where?: Prisma.FileWhereInput;
1176
+ /**
1177
+ * Limit how many Files to update.
1178
+ */
1179
+ limit?: number;
1180
+ };
1181
+ /**
1182
+ * File upsert
1183
+ */
1184
+ export type FileUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1185
+ /**
1186
+ * Select specific fields to fetch from the File
1187
+ */
1188
+ select?: Prisma.FileSelect<ExtArgs> | null;
1189
+ /**
1190
+ * Omit specific fields from the File
1191
+ */
1192
+ omit?: Prisma.FileOmit<ExtArgs> | null;
1193
+ /**
1194
+ * The filter to search for the File to update in case it exists.
1195
+ */
1196
+ where: Prisma.FileWhereUniqueInput;
1197
+ /**
1198
+ * In case the File found by the `where` argument doesn't exist, create a new File with this data.
1199
+ */
1200
+ create: Prisma.XOR<Prisma.FileCreateInput, Prisma.FileUncheckedCreateInput>;
1201
+ /**
1202
+ * In case the File was found with the provided `where` argument, update it with this data.
1203
+ */
1204
+ update: Prisma.XOR<Prisma.FileUpdateInput, Prisma.FileUncheckedUpdateInput>;
1205
+ };
1206
+ /**
1207
+ * File delete
1208
+ */
1209
+ export type FileDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1210
+ /**
1211
+ * Select specific fields to fetch from the File
1212
+ */
1213
+ select?: Prisma.FileSelect<ExtArgs> | null;
1214
+ /**
1215
+ * Omit specific fields from the File
1216
+ */
1217
+ omit?: Prisma.FileOmit<ExtArgs> | null;
1218
+ /**
1219
+ * Filter which File to delete.
1220
+ */
1221
+ where: Prisma.FileWhereUniqueInput;
1222
+ };
1223
+ /**
1224
+ * File deleteMany
1225
+ */
1226
+ export type FileDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1227
+ /**
1228
+ * Filter which Files to delete
1229
+ */
1230
+ where?: Prisma.FileWhereInput;
1231
+ /**
1232
+ * Limit how many Files to delete.
1233
+ */
1234
+ limit?: number;
1235
+ };
1236
+ /**
1237
+ * File without action
1238
+ */
1239
+ export type FileDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1240
+ /**
1241
+ * Select specific fields to fetch from the File
1242
+ */
1243
+ select?: Prisma.FileSelect<ExtArgs> | null;
1244
+ /**
1245
+ * Omit specific fields from the File
1246
+ */
1247
+ omit?: Prisma.FileOmit<ExtArgs> | null;
1248
+ };