@highstate/backend 0.9.16 → 0.9.19

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 (302) hide show
  1. package/dist/chunk-5WVU2AK4.js +1535 -0
  2. package/dist/chunk-5WVU2AK4.js.map +1 -0
  3. package/dist/chunk-I7BWSAN6.js +49 -0
  4. package/dist/chunk-I7BWSAN6.js.map +1 -0
  5. package/dist/{chunk-RCB4AFGD.js → chunk-VB4YL327.js} +51 -71
  6. package/dist/chunk-VB4YL327.js.map +1 -0
  7. package/dist/database/local/prisma.config.js +26 -0
  8. package/dist/database/local/prisma.config.js.map +1 -0
  9. package/dist/highstate.manifest.json +5 -4
  10. package/dist/index.js +7676 -6634
  11. package/dist/index.js.map +1 -1
  12. package/dist/library/package-resolution-worker.js +8 -6
  13. package/dist/library/package-resolution-worker.js.map +1 -1
  14. package/dist/library/worker/main.js +63 -58
  15. package/dist/library/worker/main.js.map +1 -1
  16. package/dist/shared/index.js +3 -216
  17. package/dist/shared/index.js.map +1 -1
  18. package/package.json +23 -11
  19. package/prisma/backend/_schema/layout.prisma +7 -0
  20. package/prisma/backend/_schema/library.prisma +17 -0
  21. package/prisma/backend/_schema/project.prisma +101 -0
  22. package/prisma/backend/_schema/pulumi.prisma +17 -0
  23. package/prisma/backend/postgresql/main.prisma +17 -0
  24. package/prisma/backend/sqlite/main.prisma +17 -0
  25. package/prisma/backend/sqlite/migrations/20250817070609_initiial/migration.sql +34 -0
  26. package/prisma/backend/sqlite/migrations/20250817104948_add_fields/migration.sql +59 -0
  27. package/prisma/backend/sqlite/migrations/20250818082732_add_models/migration.sql +41 -0
  28. package/prisma/backend/sqlite/migrations/20250818083106_a/migration.sql +19 -0
  29. package/prisma/backend/sqlite/migrations/20250818101945_hi/migration.sql +1 -0
  30. package/prisma/backend/sqlite/migrations/20250819082315_a/migration.sql +5 -0
  31. package/prisma/backend/sqlite/migrations/migration_lock.toml +3 -0
  32. package/prisma/project/api-key.prisma +27 -0
  33. package/prisma/project/artifact.prisma +52 -0
  34. package/prisma/project/custom-status.prisma +46 -0
  35. package/prisma/project/evaluation.prisma +35 -0
  36. package/prisma/project/instance.prisma +160 -0
  37. package/prisma/project/layout.prisma +23 -0
  38. package/prisma/project/lock.prisma +18 -0
  39. package/prisma/project/main.prisma +17 -0
  40. package/prisma/project/migrations/20250816081310_initial/migration.sql +300 -0
  41. package/prisma/project/migrations/20250816082523_test/migration.sql +72 -0
  42. package/prisma/project/migrations/20250818065643_update/migration.sql +42 -0
  43. package/prisma/project/migrations/20250818070758_a/migration.sql +8 -0
  44. package/prisma/project/migrations/20250818070913_a/migration.sql +8 -0
  45. package/prisma/project/migrations/20250818082720_add_motels/migration.sql +11 -0
  46. package/prisma/project/migrations/20250818112523_hello/migration.sql +35 -0
  47. package/prisma/project/migrations/20250819082305_a/migration.sql +14 -0
  48. package/prisma/project/migrations/20250819165004_add_missing_fields/migration.sql +216 -0
  49. package/prisma/project/migrations/20250819171309_a/migration.sql +22 -0
  50. package/prisma/project/migrations/20250820113949_a/migration.sql +66 -0
  51. package/prisma/project/migrations/20250820144256_b/migration.sql +31 -0
  52. package/prisma/project/migrations/20250820145547_a/migration.sql +24 -0
  53. package/prisma/project/migrations/20250820182517_b/migration.sql +2 -0
  54. package/prisma/project/migrations/20250821172324_a/migration.sql +2 -0
  55. package/prisma/project/migrations/20250822081339_a/migration.sql +219 -0
  56. package/prisma/project/migrations/20250822083742_b/migration.sql +1 -0
  57. package/prisma/project/migrations/20250822105134_boom/migration.sql +1 -0
  58. package/prisma/project/migrations/20250822141028_b/migration.sql +1 -0
  59. package/prisma/project/migrations/20250822142342_b/migration.sql +16 -0
  60. package/prisma/project/migrations/20250824072720_a/migration.sql +1 -0
  61. package/prisma/project/migrations/20250824093656_b/migration.sql +21 -0
  62. package/prisma/project/migrations/20250825082518_a/migration.sql +1 -0
  63. package/prisma/project/migrations/20250825085343_b/migration.sql +1 -0
  64. package/prisma/project/migrations/20250825091312_a/migration.sql +1 -0
  65. package/prisma/project/migrations/20250903095431_hi/migration.sql +44 -0
  66. package/prisma/project/migrations/20250903174255_a/migration.sql +24 -0
  67. package/prisma/project/migrations/20250908095205_hi/migration.sql +18 -0
  68. package/prisma/project/migrations/20250909155857_hi/migration.sql +15 -0
  69. package/prisma/project/migrations/migration_lock.toml +3 -0
  70. package/prisma/project/model.prisma +37 -0
  71. package/prisma/project/operation.prisma +148 -0
  72. package/prisma/project/page.prisma +41 -0
  73. package/prisma/project/secret.prisma +42 -0
  74. package/prisma/project/service-account.prisma +36 -0
  75. package/prisma/project/terminal.prisma +90 -0
  76. package/prisma/project/trigger.prisma +31 -0
  77. package/prisma/project/unlock-method.prisma +32 -0
  78. package/prisma/project/worker.prisma +138 -0
  79. package/src/artifact/abstractions.ts +13 -13
  80. package/src/artifact/encryption.ts +31 -15
  81. package/src/artifact/factory.ts +7 -10
  82. package/src/artifact/local.ts +33 -50
  83. package/src/business/api-key.ts +24 -36
  84. package/src/business/artifact.test.ts +978 -0
  85. package/src/business/artifact.ts +136 -215
  86. package/src/business/evaluation.ts +328 -0
  87. package/src/business/index.ts +5 -1
  88. package/src/business/instance-lock.test.ts +1060 -0
  89. package/src/business/instance-lock.ts +387 -77
  90. package/src/business/instance-state.test.ts +735 -0
  91. package/src/business/instance-state.ts +604 -217
  92. package/src/business/operation.test.ts +439 -0
  93. package/src/business/operation.ts +174 -208
  94. package/src/business/project-model.ts +258 -0
  95. package/src/business/project-unlock.ts +172 -112
  96. package/src/business/project.ts +407 -0
  97. package/src/business/secret.test.ts +513 -0
  98. package/src/business/secret.ts +194 -131
  99. package/src/business/settings.test.ts +695 -0
  100. package/src/business/settings.ts +855 -0
  101. package/src/business/terminal-session.ts +90 -0
  102. package/src/business/unit-extra.test.ts +539 -0
  103. package/src/business/unit-extra.ts +160 -0
  104. package/src/business/worker.test.ts +391 -0
  105. package/src/business/worker.ts +250 -114
  106. package/src/common/codebase.ts +65 -0
  107. package/src/common/index.ts +3 -2
  108. package/src/common/logger.ts +5 -0
  109. package/src/common/utils.ts +4 -3
  110. package/src/config.ts +15 -12
  111. package/src/database/_generated/backend/postgresql/client.ts +72 -0
  112. package/src/database/_generated/backend/postgresql/commonInputTypes.ts +350 -0
  113. package/src/database/_generated/backend/postgresql/enums.ts +13 -0
  114. package/src/database/_generated/backend/postgresql/internal/class.ts +320 -0
  115. package/src/database/_generated/backend/postgresql/internal/prismaNamespace.ts +1238 -0
  116. package/src/database/_generated/backend/postgresql/models/Library.ts +1263 -0
  117. package/src/database/_generated/backend/postgresql/models/Project.ts +2175 -0
  118. package/src/database/_generated/backend/postgresql/models/ProjectModelStorage.ts +1263 -0
  119. package/src/database/_generated/backend/postgresql/models/ProjectSpace.ts +1602 -0
  120. package/src/database/_generated/backend/postgresql/models/PulumiBackend.ts +1263 -0
  121. package/src/database/_generated/backend/postgresql/models/UserWorkspaseLayout.ts +1065 -0
  122. package/src/database/_generated/backend/postgresql/models.ts +16 -0
  123. package/src/database/_generated/backend/postgresql/pjtg.ts +182 -0
  124. package/src/database/_generated/backend/sqlite/client.ts +72 -0
  125. package/src/database/_generated/backend/sqlite/commonInputTypes.ts +331 -0
  126. package/src/database/_generated/backend/sqlite/enums.ts +13 -0
  127. package/src/database/_generated/backend/sqlite/internal/class.ts +318 -0
  128. package/src/database/_generated/backend/sqlite/internal/prismaNamespace.ts +1207 -0
  129. package/src/database/_generated/backend/sqlite/models/Library.ts +1261 -0
  130. package/src/database/_generated/backend/sqlite/models/Project.ts +2169 -0
  131. package/src/database/_generated/backend/sqlite/models/ProjectModelStorage.ts +1261 -0
  132. package/src/database/_generated/backend/sqlite/models/ProjectSpace.ts +1599 -0
  133. package/src/database/_generated/backend/sqlite/models/PulumiBackend.ts +1261 -0
  134. package/src/database/_generated/backend/sqlite/models/UserWorkspaseLayout.ts +1063 -0
  135. package/src/database/_generated/backend/sqlite/models.ts +16 -0
  136. package/src/database/_generated/backend/sqlite/pjtg.ts +182 -0
  137. package/src/database/_generated/project/client.ts +204 -0
  138. package/src/database/_generated/project/commonInputTypes.ts +827 -0
  139. package/src/database/_generated/project/enums.ts +104 -0
  140. package/src/database/_generated/project/internal/class.ts +479 -0
  141. package/src/database/_generated/project/internal/prismaNamespace.ts +2974 -0
  142. package/src/database/_generated/project/models/ApiKey.ts +1506 -0
  143. package/src/database/_generated/project/models/Artifact.ts +2051 -0
  144. package/src/database/_generated/project/models/HubModel.ts +1125 -0
  145. package/src/database/_generated/project/models/InstanceCustomStatus.ts +1713 -0
  146. package/src/database/_generated/project/models/InstanceEvaluationState.ts +1312 -0
  147. package/src/database/_generated/project/models/InstanceLock.ts +1268 -0
  148. package/src/database/_generated/project/models/InstanceModel.ts +1125 -0
  149. package/src/database/_generated/project/models/InstanceOperationState.ts +1707 -0
  150. package/src/database/_generated/project/models/InstanceState.ts +4613 -0
  151. package/src/database/_generated/project/models/Operation.ts +1647 -0
  152. package/src/database/_generated/project/models/OperationLog.ts +1455 -0
  153. package/src/database/_generated/project/models/Page.ts +1838 -0
  154. package/src/database/_generated/project/models/Secret.ts +1692 -0
  155. package/src/database/_generated/project/models/ServiceAccount.ts +2165 -0
  156. package/src/database/_generated/project/models/Terminal.ts +2038 -0
  157. package/src/database/_generated/project/models/TerminalSession.ts +1454 -0
  158. package/src/database/_generated/project/models/TerminalSessionLog.ts +1280 -0
  159. package/src/database/_generated/project/models/Trigger.ts +1430 -0
  160. package/src/database/_generated/project/models/UnlockMethod.ts +1220 -0
  161. package/src/database/_generated/project/models/UserCompositeViewport.ts +1280 -0
  162. package/src/database/_generated/project/models/UserProjectViewport.ts +1059 -0
  163. package/src/database/_generated/project/models/Worker.ts +1459 -0
  164. package/src/database/_generated/project/models/WorkerUnitRegistration.ts +1524 -0
  165. package/src/database/_generated/project/models/WorkerVersion.ts +1974 -0
  166. package/src/database/_generated/project/models/WorkerVersionLog.ts +1318 -0
  167. package/src/database/_generated/project/models.ts +35 -0
  168. package/src/database/_generated/project/pjtg.ts +182 -0
  169. package/src/database/abstractions.ts +19 -0
  170. package/src/database/factory.ts +37 -0
  171. package/src/database/index.ts +6 -0
  172. package/src/database/local/backend.ts +134 -0
  173. package/src/database/local/index.ts +3 -0
  174. package/src/database/local/meta.ts +46 -0
  175. package/src/database/local/prisma.config.ts +25 -0
  176. package/src/database/local/project.ts +39 -0
  177. package/src/database/manager.ts +181 -0
  178. package/src/database/migrate.ts +35 -0
  179. package/src/database/prisma.ts +56 -0
  180. package/src/database/well-known.ts +38 -0
  181. package/src/index.ts +4 -4
  182. package/src/library/abstractions.ts +21 -14
  183. package/src/library/factory.ts +1 -1
  184. package/src/library/local.ts +86 -38
  185. package/src/library/package-resolution-worker.ts +1 -1
  186. package/src/library/worker/evaluator.ts +61 -48
  187. package/src/library/worker/loader.lite.ts +14 -1
  188. package/src/library/worker/main.ts +9 -16
  189. package/src/library/worker/protocol.ts +0 -12
  190. package/src/lock/manager.ts +12 -7
  191. package/src/orchestrator/manager.ts +198 -131
  192. package/src/orchestrator/operation-context.ts +357 -0
  193. package/src/orchestrator/operation-plan.destroy.test.md +357 -0
  194. package/src/orchestrator/operation-plan.destroy.test.ts +775 -0
  195. package/src/orchestrator/operation-plan.fixtures.ts +213 -0
  196. package/src/orchestrator/operation-plan.md +198 -0
  197. package/src/orchestrator/operation-plan.refresh.test.md +199 -0
  198. package/src/orchestrator/operation-plan.refresh.test.ts +367 -0
  199. package/src/orchestrator/operation-plan.ts +709 -0
  200. package/src/orchestrator/operation-plan.update.test.md +485 -0
  201. package/src/orchestrator/operation-plan.update.test.ts +1066 -0
  202. package/src/orchestrator/operation-workset.ts +235 -583
  203. package/src/orchestrator/operation.ts +446 -904
  204. package/src/orchestrator/plan-test-builder.ts +267 -0
  205. package/src/project-model/abstractions.ts +118 -0
  206. package/src/project-model/backends/codebase.ts +365 -0
  207. package/src/project-model/backends/database.ts +440 -0
  208. package/src/project-model/errors.ts +81 -0
  209. package/src/project-model/factory.ts +24 -0
  210. package/src/project-model/index.ts +4 -0
  211. package/src/project-model/utils.test.ts +544 -0
  212. package/src/project-model/utils.ts +242 -0
  213. package/src/pubsub/abstractions.ts +10 -1
  214. package/src/pubsub/factory.ts +4 -4
  215. package/src/pubsub/index.ts +1 -0
  216. package/src/pubsub/manager.ts +49 -25
  217. package/src/pubsub/memory.ts +31 -0
  218. package/src/runner/abstractions.ts +38 -26
  219. package/src/runner/artifact-env.ts +17 -6
  220. package/src/runner/factory.ts +6 -6
  221. package/src/runner/force-abort.ts +3 -6
  222. package/src/runner/local.ts +79 -72
  223. package/src/runner/pulumi.ts +26 -63
  224. package/src/services.ts +214 -103
  225. package/src/shared/models/backend/index.ts +3 -1
  226. package/src/shared/models/backend/library.ts +12 -4
  227. package/src/shared/models/backend/project.ts +43 -23
  228. package/src/shared/models/backend/pulumi.ts +14 -0
  229. package/src/shared/models/backend/unlock-method.ts +1 -1
  230. package/src/shared/models/backend/well-known.ts +58 -0
  231. package/src/shared/models/base.ts +40 -109
  232. package/src/shared/models/errors.ts +82 -1
  233. package/src/shared/models/index.ts +3 -2
  234. package/src/shared/models/prisma.ts +36 -0
  235. package/src/shared/models/project/api-key.ts +37 -56
  236. package/src/shared/models/project/artifact.ts +15 -105
  237. package/src/shared/models/project/custom-status.ts +12 -0
  238. package/src/shared/models/project/index.ts +9 -9
  239. package/src/shared/models/project/lock.ts +10 -78
  240. package/src/shared/models/project/model.ts +32 -0
  241. package/src/shared/models/project/operation.ts +222 -99
  242. package/src/shared/models/project/page.ts +37 -48
  243. package/src/shared/models/project/secret.ts +29 -103
  244. package/src/shared/models/project/service-account.ts +12 -17
  245. package/src/shared/models/project/state.ts +100 -390
  246. package/src/shared/models/project/terminal.ts +75 -89
  247. package/src/shared/models/project/trigger.ts +13 -49
  248. package/src/shared/models/project/unlock-method.ts +21 -20
  249. package/src/shared/models/project/worker.ts +89 -88
  250. package/src/shared/resolvers/graph-resolver.ts +62 -26
  251. package/src/shared/resolvers/index.ts +1 -1
  252. package/src/shared/resolvers/input-hash.ts +24 -14
  253. package/src/shared/resolvers/input.ts +48 -6
  254. package/src/shared/resolvers/registry.ts +5 -4
  255. package/src/shared/resolvers/state.ts +12 -1
  256. package/src/shared/resolvers/validation.ts +29 -9
  257. package/src/shared/utils/index.ts +1 -1
  258. package/src/shared/utils/promise-tracker.ts +30 -3
  259. package/src/terminal/abstractions.ts +1 -1
  260. package/src/terminal/docker.ts +3 -3
  261. package/src/terminal/manager.ts +102 -118
  262. package/src/test-utils/database.ts +119 -0
  263. package/src/test-utils/index.ts +2 -0
  264. package/src/test-utils/services.ts +134 -0
  265. package/src/unlock/abstractions.ts +31 -0
  266. package/src/unlock/index.ts +2 -0
  267. package/src/unlock/memory.ts +27 -0
  268. package/src/worker/abstractions.ts +7 -4
  269. package/src/worker/docker.ts +14 -19
  270. package/src/worker/manager.ts +376 -79
  271. package/dist/chunk-RCB4AFGD.js.map +0 -1
  272. package/dist/chunk-WHALQHEZ.js +0 -2017
  273. package/dist/chunk-WHALQHEZ.js.map +0 -1
  274. package/src/business/backend-unlock.ts +0 -10
  275. package/src/common/performance.ts +0 -44
  276. package/src/hotstate/abstractions.ts +0 -48
  277. package/src/hotstate/factory.ts +0 -17
  278. package/src/hotstate/index.ts +0 -3
  279. package/src/hotstate/manager.ts +0 -192
  280. package/src/hotstate/memory.ts +0 -100
  281. package/src/hotstate/validation.ts +0 -101
  282. package/src/project/abstractions.ts +0 -102
  283. package/src/project/factory.ts +0 -11
  284. package/src/project/index.ts +0 -3
  285. package/src/project/local.ts +0 -469
  286. package/src/project/manager.ts +0 -574
  287. package/src/pubsub/local.ts +0 -36
  288. package/src/pubsub/validation.ts +0 -33
  289. package/src/shared/models/project/component.ts +0 -45
  290. package/src/shared/models/project/instance.ts +0 -74
  291. package/src/state/abstractions.ts +0 -450
  292. package/src/state/encryption.ts +0 -59
  293. package/src/state/factory.ts +0 -20
  294. package/src/state/index.ts +0 -6
  295. package/src/state/local/backend.ts +0 -299
  296. package/src/state/local/collection.ts +0 -342
  297. package/src/state/local/index.ts +0 -2
  298. package/src/state/manager.ts +0 -819
  299. package/src/state/repository/index.ts +0 -2
  300. package/src/state/repository/repository.index.ts +0 -193
  301. package/src/state/repository/repository.ts +0 -458
  302. /package/src/{state → database/local}/keyring.ts +0 -0
@@ -0,0 +1,1261 @@
1
+
2
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+ /**
6
+ * This file exports the `Library` model and its related types.
7
+ *
8
+ * 🟢 You can import this file directly.
9
+ */
10
+
11
+ import type * as PJTG from '../pjtg.ts';
12
+ import * as runtime from "@prisma/client/runtime/client"
13
+ import type * as $Enums from "../enums.ts"
14
+ import type * as Prisma from "../internal/prismaNamespace.ts"
15
+
16
+ /**
17
+ * Model Library
18
+ *
19
+ */
20
+ export type LibraryModel = runtime.Types.Result.DefaultSelection<Prisma.$LibraryPayload>
21
+
22
+ export type AggregateLibrary = {
23
+ _count: LibraryCountAggregateOutputType | null
24
+ _min: LibraryMinAggregateOutputType | null
25
+ _max: LibraryMaxAggregateOutputType | null
26
+ }
27
+
28
+ export type LibraryMinAggregateOutputType = {
29
+ id: string | null
30
+ }
31
+
32
+ export type LibraryMaxAggregateOutputType = {
33
+ id: string | null
34
+ }
35
+
36
+ export type LibraryCountAggregateOutputType = {
37
+ id: number
38
+ meta: number
39
+ spec: number
40
+ _all: number
41
+ }
42
+
43
+
44
+ export type LibraryMinAggregateInputType = {
45
+ id?: true
46
+ }
47
+
48
+ export type LibraryMaxAggregateInputType = {
49
+ id?: true
50
+ }
51
+
52
+ export type LibraryCountAggregateInputType = {
53
+ id?: true
54
+ meta?: true
55
+ spec?: true
56
+ _all?: true
57
+ }
58
+
59
+ export type LibraryAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
60
+ /**
61
+ * Filter which Library to aggregate.
62
+ */
63
+ where?: Prisma.LibraryWhereInput
64
+ /**
65
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
66
+ *
67
+ * Determine the order of Libraries to fetch.
68
+ */
69
+ orderBy?: Prisma.LibraryOrderByWithRelationInput | Prisma.LibraryOrderByWithRelationInput[]
70
+ /**
71
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
72
+ *
73
+ * Sets the start position
74
+ */
75
+ cursor?: Prisma.LibraryWhereUniqueInput
76
+ /**
77
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
78
+ *
79
+ * Take `±n` Libraries from the position of the cursor.
80
+ */
81
+ take?: number
82
+ /**
83
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
84
+ *
85
+ * Skip the first `n` Libraries.
86
+ */
87
+ skip?: number
88
+ /**
89
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
90
+ *
91
+ * Count returned Libraries
92
+ **/
93
+ _count?: true | LibraryCountAggregateInputType
94
+ /**
95
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
96
+ *
97
+ * Select which fields to find the minimum value
98
+ **/
99
+ _min?: LibraryMinAggregateInputType
100
+ /**
101
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
102
+ *
103
+ * Select which fields to find the maximum value
104
+ **/
105
+ _max?: LibraryMaxAggregateInputType
106
+ }
107
+
108
+ export type GetLibraryAggregateType<T extends LibraryAggregateArgs> = {
109
+ [P in keyof T & keyof AggregateLibrary]: P extends '_count' | 'count'
110
+ ? T[P] extends true
111
+ ? number
112
+ : Prisma.GetScalarType<T[P], AggregateLibrary[P]>
113
+ : Prisma.GetScalarType<T[P], AggregateLibrary[P]>
114
+ }
115
+
116
+
117
+
118
+
119
+ export type LibraryGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
120
+ where?: Prisma.LibraryWhereInput
121
+ orderBy?: Prisma.LibraryOrderByWithAggregationInput | Prisma.LibraryOrderByWithAggregationInput[]
122
+ by: Prisma.LibraryScalarFieldEnum[] | Prisma.LibraryScalarFieldEnum
123
+ having?: Prisma.LibraryScalarWhereWithAggregatesInput
124
+ take?: number
125
+ skip?: number
126
+ _count?: LibraryCountAggregateInputType | true
127
+ _min?: LibraryMinAggregateInputType
128
+ _max?: LibraryMaxAggregateInputType
129
+ }
130
+
131
+ export type LibraryGroupByOutputType = {
132
+ id: string
133
+ meta: PrismaJson.CommonObjectMeta
134
+ spec: PrismaJson.LibrarySpec
135
+ _count: LibraryCountAggregateOutputType | null
136
+ _min: LibraryMinAggregateOutputType | null
137
+ _max: LibraryMaxAggregateOutputType | null
138
+ }
139
+
140
+ type GetLibraryGroupByPayload<T extends LibraryGroupByArgs> = Prisma.PrismaPromise<
141
+ Array<
142
+ Prisma.PickEnumerable<LibraryGroupByOutputType, T['by']> &
143
+ {
144
+ [P in ((keyof T) & (keyof LibraryGroupByOutputType))]: P extends '_count'
145
+ ? T[P] extends boolean
146
+ ? number
147
+ : Prisma.GetScalarType<T[P], LibraryGroupByOutputType[P]>
148
+ : Prisma.GetScalarType<T[P], LibraryGroupByOutputType[P]>
149
+ }
150
+ >
151
+ >
152
+
153
+
154
+
155
+ export type LibraryWhereInput = {
156
+ AND?: Prisma.LibraryWhereInput | Prisma.LibraryWhereInput[]
157
+ OR?: Prisma.LibraryWhereInput[]
158
+ NOT?: Prisma.LibraryWhereInput | Prisma.LibraryWhereInput[]
159
+ id?: Prisma.StringFilter<"Library"> | string
160
+ meta?: Prisma.JsonFilter<"Library">
161
+ spec?: Prisma.JsonFilter<"Library">
162
+ projects?: Prisma.ProjectListRelationFilter
163
+ }
164
+
165
+ export type LibraryOrderByWithRelationInput = {
166
+ id?: Prisma.SortOrder
167
+ meta?: Prisma.SortOrder
168
+ spec?: Prisma.SortOrder
169
+ projects?: Prisma.ProjectOrderByRelationAggregateInput
170
+ }
171
+
172
+ export type LibraryWhereUniqueInput = Prisma.AtLeast<{
173
+ id?: string
174
+ AND?: Prisma.LibraryWhereInput | Prisma.LibraryWhereInput[]
175
+ OR?: Prisma.LibraryWhereInput[]
176
+ NOT?: Prisma.LibraryWhereInput | Prisma.LibraryWhereInput[]
177
+ meta?: Prisma.JsonFilter<"Library">
178
+ spec?: Prisma.JsonFilter<"Library">
179
+ projects?: Prisma.ProjectListRelationFilter
180
+ }, "id">
181
+
182
+ export type LibraryOrderByWithAggregationInput = {
183
+ id?: Prisma.SortOrder
184
+ meta?: Prisma.SortOrder
185
+ spec?: Prisma.SortOrder
186
+ _count?: Prisma.LibraryCountOrderByAggregateInput
187
+ _max?: Prisma.LibraryMaxOrderByAggregateInput
188
+ _min?: Prisma.LibraryMinOrderByAggregateInput
189
+ }
190
+
191
+ export type LibraryScalarWhereWithAggregatesInput = {
192
+ AND?: Prisma.LibraryScalarWhereWithAggregatesInput | Prisma.LibraryScalarWhereWithAggregatesInput[]
193
+ OR?: Prisma.LibraryScalarWhereWithAggregatesInput[]
194
+ NOT?: Prisma.LibraryScalarWhereWithAggregatesInput | Prisma.LibraryScalarWhereWithAggregatesInput[]
195
+ id?: Prisma.StringWithAggregatesFilter<"Library"> | string
196
+ meta?: Prisma.JsonWithAggregatesFilter<"Library">
197
+ spec?: Prisma.JsonWithAggregatesFilter<"Library">
198
+ }
199
+
200
+ export type LibraryCreateInput = {
201
+ id?: string
202
+ meta: PrismaJson.CommonObjectMeta
203
+ spec: PrismaJson.LibrarySpec
204
+ projects?: Prisma.ProjectCreateNestedManyWithoutLibraryInput
205
+ }
206
+
207
+ export type LibraryUncheckedCreateInput = {
208
+ id?: string
209
+ meta: PrismaJson.CommonObjectMeta
210
+ spec: PrismaJson.LibrarySpec
211
+ projects?: Prisma.ProjectUncheckedCreateNestedManyWithoutLibraryInput
212
+ }
213
+
214
+ export type LibraryUpdateInput = {
215
+ id?: Prisma.StringFieldUpdateOperationsInput | string
216
+ meta?: PrismaJson.CommonObjectMeta
217
+ spec?: PrismaJson.LibrarySpec
218
+ projects?: Prisma.ProjectUpdateManyWithoutLibraryNestedInput
219
+ }
220
+
221
+ export type LibraryUncheckedUpdateInput = {
222
+ id?: Prisma.StringFieldUpdateOperationsInput | string
223
+ meta?: PrismaJson.CommonObjectMeta
224
+ spec?: PrismaJson.LibrarySpec
225
+ projects?: Prisma.ProjectUncheckedUpdateManyWithoutLibraryNestedInput
226
+ }
227
+
228
+ export type LibraryCreateManyInput = {
229
+ id?: string
230
+ meta: PrismaJson.CommonObjectMeta
231
+ spec: PrismaJson.LibrarySpec
232
+ }
233
+
234
+ export type LibraryUpdateManyMutationInput = {
235
+ id?: Prisma.StringFieldUpdateOperationsInput | string
236
+ meta?: PrismaJson.CommonObjectMeta
237
+ spec?: PrismaJson.LibrarySpec
238
+ }
239
+
240
+ export type LibraryUncheckedUpdateManyInput = {
241
+ id?: Prisma.StringFieldUpdateOperationsInput | string
242
+ meta?: PrismaJson.CommonObjectMeta
243
+ spec?: PrismaJson.LibrarySpec
244
+ }
245
+
246
+ export type LibraryCountOrderByAggregateInput = {
247
+ id?: Prisma.SortOrder
248
+ meta?: Prisma.SortOrder
249
+ spec?: Prisma.SortOrder
250
+ }
251
+
252
+ export type LibraryMaxOrderByAggregateInput = {
253
+ id?: Prisma.SortOrder
254
+ }
255
+
256
+ export type LibraryMinOrderByAggregateInput = {
257
+ id?: Prisma.SortOrder
258
+ }
259
+
260
+ export type LibraryScalarRelationFilter = {
261
+ is?: Prisma.LibraryWhereInput
262
+ isNot?: Prisma.LibraryWhereInput
263
+ }
264
+
265
+ export type LibraryCreateNestedOneWithoutProjectsInput = {
266
+ create?: Prisma.XOR<Prisma.LibraryCreateWithoutProjectsInput, Prisma.LibraryUncheckedCreateWithoutProjectsInput>
267
+ connectOrCreate?: Prisma.LibraryCreateOrConnectWithoutProjectsInput
268
+ connect?: Prisma.LibraryWhereUniqueInput
269
+ }
270
+
271
+ export type LibraryUpdateOneRequiredWithoutProjectsNestedInput = {
272
+ create?: Prisma.XOR<Prisma.LibraryCreateWithoutProjectsInput, Prisma.LibraryUncheckedCreateWithoutProjectsInput>
273
+ connectOrCreate?: Prisma.LibraryCreateOrConnectWithoutProjectsInput
274
+ upsert?: Prisma.LibraryUpsertWithoutProjectsInput
275
+ connect?: Prisma.LibraryWhereUniqueInput
276
+ update?: Prisma.XOR<Prisma.XOR<Prisma.LibraryUpdateToOneWithWhereWithoutProjectsInput, Prisma.LibraryUpdateWithoutProjectsInput>, Prisma.LibraryUncheckedUpdateWithoutProjectsInput>
277
+ }
278
+
279
+ export type LibraryCreateWithoutProjectsInput = {
280
+ id?: string
281
+ meta: PrismaJson.CommonObjectMeta
282
+ spec: PrismaJson.LibrarySpec
283
+ }
284
+
285
+ export type LibraryUncheckedCreateWithoutProjectsInput = {
286
+ id?: string
287
+ meta: PrismaJson.CommonObjectMeta
288
+ spec: PrismaJson.LibrarySpec
289
+ }
290
+
291
+ export type LibraryCreateOrConnectWithoutProjectsInput = {
292
+ where: Prisma.LibraryWhereUniqueInput
293
+ create: Prisma.XOR<Prisma.LibraryCreateWithoutProjectsInput, Prisma.LibraryUncheckedCreateWithoutProjectsInput>
294
+ }
295
+
296
+ export type LibraryUpsertWithoutProjectsInput = {
297
+ update: Prisma.XOR<Prisma.LibraryUpdateWithoutProjectsInput, Prisma.LibraryUncheckedUpdateWithoutProjectsInput>
298
+ create: Prisma.XOR<Prisma.LibraryCreateWithoutProjectsInput, Prisma.LibraryUncheckedCreateWithoutProjectsInput>
299
+ where?: Prisma.LibraryWhereInput
300
+ }
301
+
302
+ export type LibraryUpdateToOneWithWhereWithoutProjectsInput = {
303
+ where?: Prisma.LibraryWhereInput
304
+ data: Prisma.XOR<Prisma.LibraryUpdateWithoutProjectsInput, Prisma.LibraryUncheckedUpdateWithoutProjectsInput>
305
+ }
306
+
307
+ export type LibraryUpdateWithoutProjectsInput = {
308
+ id?: Prisma.StringFieldUpdateOperationsInput | string
309
+ meta?: PrismaJson.CommonObjectMeta
310
+ spec?: PrismaJson.LibrarySpec
311
+ }
312
+
313
+ export type LibraryUncheckedUpdateWithoutProjectsInput = {
314
+ id?: Prisma.StringFieldUpdateOperationsInput | string
315
+ meta?: PrismaJson.CommonObjectMeta
316
+ spec?: PrismaJson.LibrarySpec
317
+ }
318
+
319
+
320
+ /**
321
+ * Count Type LibraryCountOutputType
322
+ */
323
+
324
+ export type LibraryCountOutputType = {
325
+ projects: number
326
+ }
327
+
328
+ export type LibraryCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
329
+ projects?: boolean | LibraryCountOutputTypeCountProjectsArgs
330
+ }
331
+
332
+ /**
333
+ * LibraryCountOutputType without action
334
+ */
335
+ export type LibraryCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
336
+ /**
337
+ * Select specific fields to fetch from the LibraryCountOutputType
338
+ */
339
+ select?: Prisma.LibraryCountOutputTypeSelect<ExtArgs> | null
340
+ }
341
+
342
+ /**
343
+ * LibraryCountOutputType without action
344
+ */
345
+ export type LibraryCountOutputTypeCountProjectsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
346
+ where?: Prisma.ProjectWhereInput
347
+ }
348
+
349
+
350
+ export type LibrarySelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
351
+ id?: boolean
352
+ meta?: boolean
353
+ spec?: boolean
354
+ projects?: boolean | Prisma.Library$projectsArgs<ExtArgs>
355
+ _count?: boolean | Prisma.LibraryCountOutputTypeDefaultArgs<ExtArgs>
356
+ }, ExtArgs["result"]["library"]>
357
+
358
+ export type LibrarySelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
359
+ id?: boolean
360
+ meta?: boolean
361
+ spec?: boolean
362
+ }, ExtArgs["result"]["library"]>
363
+
364
+ export type LibrarySelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
365
+ id?: boolean
366
+ meta?: boolean
367
+ spec?: boolean
368
+ }, ExtArgs["result"]["library"]>
369
+
370
+ export type LibrarySelectScalar = {
371
+ id?: boolean
372
+ meta?: boolean
373
+ spec?: boolean
374
+ }
375
+
376
+ export type LibraryOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "meta" | "spec", ExtArgs["result"]["library"]>
377
+ export type LibraryInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
378
+ projects?: boolean | Prisma.Library$projectsArgs<ExtArgs>
379
+ _count?: boolean | Prisma.LibraryCountOutputTypeDefaultArgs<ExtArgs>
380
+ }
381
+ export type LibraryIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
382
+ export type LibraryIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
383
+
384
+ export type $LibraryPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
385
+ name: "Library"
386
+ objects: {
387
+ /**
388
+ * The projects using this library.
389
+ */
390
+ projects: Prisma.$ProjectPayload<ExtArgs>[]
391
+ }
392
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
393
+ /**
394
+ * The CUIDv2 of the library.
395
+ */
396
+ id: string
397
+ /**
398
+ * The metadata of the library managed by the backend.
399
+ *
400
+ * [CommonObjectMeta]
401
+ */
402
+ meta: PrismaJson.CommonObjectMeta
403
+ /**
404
+ * The spec of the library.
405
+ *
406
+ * [LibrarySpec]
407
+ */
408
+ spec: PrismaJson.LibrarySpec
409
+ }, ExtArgs["result"]["library"]>
410
+ composites: {}
411
+ }
412
+
413
+ export type LibraryGetPayload<S extends boolean | null | undefined | LibraryDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$LibraryPayload, S>
414
+
415
+ export type LibraryCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
416
+ Omit<LibraryFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
417
+ select?: LibraryCountAggregateInputType | true
418
+ }
419
+
420
+ export interface LibraryDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
421
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Library'], meta: { name: 'Library' } }
422
+ /**
423
+ * Find zero or one Library that matches the filter.
424
+ * @param {LibraryFindUniqueArgs} args - Arguments to find a Library
425
+ * @example
426
+ * // Get one Library
427
+ * const library = await prisma.library.findUnique({
428
+ * where: {
429
+ * // ... provide filter here
430
+ * }
431
+ * })
432
+ */
433
+ findUnique<T extends LibraryFindUniqueArgs>(args: Prisma.SelectSubset<T, LibraryFindUniqueArgs<ExtArgs>>): Prisma.Prisma__LibraryClient<runtime.Types.Result.GetResult<Prisma.$LibraryPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
434
+
435
+ /**
436
+ * Find one Library that matches the filter or throw an error with `error.code='P2025'`
437
+ * if no matches were found.
438
+ * @param {LibraryFindUniqueOrThrowArgs} args - Arguments to find a Library
439
+ * @example
440
+ * // Get one Library
441
+ * const library = await prisma.library.findUniqueOrThrow({
442
+ * where: {
443
+ * // ... provide filter here
444
+ * }
445
+ * })
446
+ */
447
+ findUniqueOrThrow<T extends LibraryFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, LibraryFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__LibraryClient<runtime.Types.Result.GetResult<Prisma.$LibraryPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
448
+
449
+ /**
450
+ * Find the first Library that matches the filter.
451
+ * Note, that providing `undefined` is treated as the value not being there.
452
+ * Read more here: https://pris.ly/d/null-undefined
453
+ * @param {LibraryFindFirstArgs} args - Arguments to find a Library
454
+ * @example
455
+ * // Get one Library
456
+ * const library = await prisma.library.findFirst({
457
+ * where: {
458
+ * // ... provide filter here
459
+ * }
460
+ * })
461
+ */
462
+ findFirst<T extends LibraryFindFirstArgs>(args?: Prisma.SelectSubset<T, LibraryFindFirstArgs<ExtArgs>>): Prisma.Prisma__LibraryClient<runtime.Types.Result.GetResult<Prisma.$LibraryPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
463
+
464
+ /**
465
+ * Find the first Library that matches the filter or
466
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
467
+ * Note, that providing `undefined` is treated as the value not being there.
468
+ * Read more here: https://pris.ly/d/null-undefined
469
+ * @param {LibraryFindFirstOrThrowArgs} args - Arguments to find a Library
470
+ * @example
471
+ * // Get one Library
472
+ * const library = await prisma.library.findFirstOrThrow({
473
+ * where: {
474
+ * // ... provide filter here
475
+ * }
476
+ * })
477
+ */
478
+ findFirstOrThrow<T extends LibraryFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, LibraryFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__LibraryClient<runtime.Types.Result.GetResult<Prisma.$LibraryPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
479
+
480
+ /**
481
+ * Find zero or more Libraries that matches the filter.
482
+ * Note, that providing `undefined` is treated as the value not being there.
483
+ * Read more here: https://pris.ly/d/null-undefined
484
+ * @param {LibraryFindManyArgs} args - Arguments to filter and select certain fields only.
485
+ * @example
486
+ * // Get all Libraries
487
+ * const libraries = await prisma.library.findMany()
488
+ *
489
+ * // Get first 10 Libraries
490
+ * const libraries = await prisma.library.findMany({ take: 10 })
491
+ *
492
+ * // Only select the `id`
493
+ * const libraryWithIdOnly = await prisma.library.findMany({ select: { id: true } })
494
+ *
495
+ */
496
+ findMany<T extends LibraryFindManyArgs>(args?: Prisma.SelectSubset<T, LibraryFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LibraryPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
497
+
498
+ /**
499
+ * Create a Library.
500
+ * @param {LibraryCreateArgs} args - Arguments to create a Library.
501
+ * @example
502
+ * // Create one Library
503
+ * const Library = await prisma.library.create({
504
+ * data: {
505
+ * // ... data to create a Library
506
+ * }
507
+ * })
508
+ *
509
+ */
510
+ create<T extends LibraryCreateArgs>(args: Prisma.SelectSubset<T, LibraryCreateArgs<ExtArgs>>): Prisma.Prisma__LibraryClient<runtime.Types.Result.GetResult<Prisma.$LibraryPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
511
+
512
+ /**
513
+ * Create many Libraries.
514
+ * @param {LibraryCreateManyArgs} args - Arguments to create many Libraries.
515
+ * @example
516
+ * // Create many Libraries
517
+ * const library = await prisma.library.createMany({
518
+ * data: [
519
+ * // ... provide data here
520
+ * ]
521
+ * })
522
+ *
523
+ */
524
+ createMany<T extends LibraryCreateManyArgs>(args?: Prisma.SelectSubset<T, LibraryCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
525
+
526
+ /**
527
+ * Create many Libraries and returns the data saved in the database.
528
+ * @param {LibraryCreateManyAndReturnArgs} args - Arguments to create many Libraries.
529
+ * @example
530
+ * // Create many Libraries
531
+ * const library = await prisma.library.createManyAndReturn({
532
+ * data: [
533
+ * // ... provide data here
534
+ * ]
535
+ * })
536
+ *
537
+ * // Create many Libraries and only return the `id`
538
+ * const libraryWithIdOnly = await prisma.library.createManyAndReturn({
539
+ * select: { id: true },
540
+ * data: [
541
+ * // ... provide data here
542
+ * ]
543
+ * })
544
+ * Note, that providing `undefined` is treated as the value not being there.
545
+ * Read more here: https://pris.ly/d/null-undefined
546
+ *
547
+ */
548
+ createManyAndReturn<T extends LibraryCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, LibraryCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LibraryPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
549
+
550
+ /**
551
+ * Delete a Library.
552
+ * @param {LibraryDeleteArgs} args - Arguments to delete one Library.
553
+ * @example
554
+ * // Delete one Library
555
+ * const Library = await prisma.library.delete({
556
+ * where: {
557
+ * // ... filter to delete one Library
558
+ * }
559
+ * })
560
+ *
561
+ */
562
+ delete<T extends LibraryDeleteArgs>(args: Prisma.SelectSubset<T, LibraryDeleteArgs<ExtArgs>>): Prisma.Prisma__LibraryClient<runtime.Types.Result.GetResult<Prisma.$LibraryPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
563
+
564
+ /**
565
+ * Update one Library.
566
+ * @param {LibraryUpdateArgs} args - Arguments to update one Library.
567
+ * @example
568
+ * // Update one Library
569
+ * const library = await prisma.library.update({
570
+ * where: {
571
+ * // ... provide filter here
572
+ * },
573
+ * data: {
574
+ * // ... provide data here
575
+ * }
576
+ * })
577
+ *
578
+ */
579
+ update<T extends LibraryUpdateArgs>(args: Prisma.SelectSubset<T, LibraryUpdateArgs<ExtArgs>>): Prisma.Prisma__LibraryClient<runtime.Types.Result.GetResult<Prisma.$LibraryPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
580
+
581
+ /**
582
+ * Delete zero or more Libraries.
583
+ * @param {LibraryDeleteManyArgs} args - Arguments to filter Libraries to delete.
584
+ * @example
585
+ * // Delete a few Libraries
586
+ * const { count } = await prisma.library.deleteMany({
587
+ * where: {
588
+ * // ... provide filter here
589
+ * }
590
+ * })
591
+ *
592
+ */
593
+ deleteMany<T extends LibraryDeleteManyArgs>(args?: Prisma.SelectSubset<T, LibraryDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
594
+
595
+ /**
596
+ * Update zero or more Libraries.
597
+ * Note, that providing `undefined` is treated as the value not being there.
598
+ * Read more here: https://pris.ly/d/null-undefined
599
+ * @param {LibraryUpdateManyArgs} args - Arguments to update one or more rows.
600
+ * @example
601
+ * // Update many Libraries
602
+ * const library = await prisma.library.updateMany({
603
+ * where: {
604
+ * // ... provide filter here
605
+ * },
606
+ * data: {
607
+ * // ... provide data here
608
+ * }
609
+ * })
610
+ *
611
+ */
612
+ updateMany<T extends LibraryUpdateManyArgs>(args: Prisma.SelectSubset<T, LibraryUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
613
+
614
+ /**
615
+ * Update zero or more Libraries and returns the data updated in the database.
616
+ * @param {LibraryUpdateManyAndReturnArgs} args - Arguments to update many Libraries.
617
+ * @example
618
+ * // Update many Libraries
619
+ * const library = await prisma.library.updateManyAndReturn({
620
+ * where: {
621
+ * // ... provide filter here
622
+ * },
623
+ * data: [
624
+ * // ... provide data here
625
+ * ]
626
+ * })
627
+ *
628
+ * // Update zero or more Libraries and only return the `id`
629
+ * const libraryWithIdOnly = await prisma.library.updateManyAndReturn({
630
+ * select: { id: true },
631
+ * where: {
632
+ * // ... provide filter here
633
+ * },
634
+ * data: [
635
+ * // ... provide data here
636
+ * ]
637
+ * })
638
+ * Note, that providing `undefined` is treated as the value not being there.
639
+ * Read more here: https://pris.ly/d/null-undefined
640
+ *
641
+ */
642
+ updateManyAndReturn<T extends LibraryUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, LibraryUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LibraryPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
643
+
644
+ /**
645
+ * Create or update one Library.
646
+ * @param {LibraryUpsertArgs} args - Arguments to update or create a Library.
647
+ * @example
648
+ * // Update or create a Library
649
+ * const library = await prisma.library.upsert({
650
+ * create: {
651
+ * // ... data to create a Library
652
+ * },
653
+ * update: {
654
+ * // ... in case it already exists, update
655
+ * },
656
+ * where: {
657
+ * // ... the filter for the Library we want to update
658
+ * }
659
+ * })
660
+ */
661
+ upsert<T extends LibraryUpsertArgs>(args: Prisma.SelectSubset<T, LibraryUpsertArgs<ExtArgs>>): Prisma.Prisma__LibraryClient<runtime.Types.Result.GetResult<Prisma.$LibraryPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
662
+
663
+
664
+ /**
665
+ * Count the number of Libraries.
666
+ * Note, that providing `undefined` is treated as the value not being there.
667
+ * Read more here: https://pris.ly/d/null-undefined
668
+ * @param {LibraryCountArgs} args - Arguments to filter Libraries to count.
669
+ * @example
670
+ * // Count the number of Libraries
671
+ * const count = await prisma.library.count({
672
+ * where: {
673
+ * // ... the filter for the Libraries we want to count
674
+ * }
675
+ * })
676
+ **/
677
+ count<T extends LibraryCountArgs>(
678
+ args?: Prisma.Subset<T, LibraryCountArgs>,
679
+ ): Prisma.PrismaPromise<
680
+ T extends runtime.Types.Utils.Record<'select', any>
681
+ ? T['select'] extends true
682
+ ? number
683
+ : Prisma.GetScalarType<T['select'], LibraryCountAggregateOutputType>
684
+ : number
685
+ >
686
+
687
+ /**
688
+ * Allows you to perform aggregations operations on a Library.
689
+ * Note, that providing `undefined` is treated as the value not being there.
690
+ * Read more here: https://pris.ly/d/null-undefined
691
+ * @param {LibraryAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
692
+ * @example
693
+ * // Ordered by age ascending
694
+ * // Where email contains prisma.io
695
+ * // Limited to the 10 users
696
+ * const aggregations = await prisma.user.aggregate({
697
+ * _avg: {
698
+ * age: true,
699
+ * },
700
+ * where: {
701
+ * email: {
702
+ * contains: "prisma.io",
703
+ * },
704
+ * },
705
+ * orderBy: {
706
+ * age: "asc",
707
+ * },
708
+ * take: 10,
709
+ * })
710
+ **/
711
+ aggregate<T extends LibraryAggregateArgs>(args: Prisma.Subset<T, LibraryAggregateArgs>): Prisma.PrismaPromise<GetLibraryAggregateType<T>>
712
+
713
+ /**
714
+ * Group by Library.
715
+ * Note, that providing `undefined` is treated as the value not being there.
716
+ * Read more here: https://pris.ly/d/null-undefined
717
+ * @param {LibraryGroupByArgs} args - Group by arguments.
718
+ * @example
719
+ * // Group by city, order by createdAt, get count
720
+ * const result = await prisma.user.groupBy({
721
+ * by: ['city', 'createdAt'],
722
+ * orderBy: {
723
+ * createdAt: true
724
+ * },
725
+ * _count: {
726
+ * _all: true
727
+ * },
728
+ * })
729
+ *
730
+ **/
731
+ groupBy<
732
+ T extends LibraryGroupByArgs,
733
+ HasSelectOrTake extends Prisma.Or<
734
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
735
+ Prisma.Extends<'take', Prisma.Keys<T>>
736
+ >,
737
+ OrderByArg extends Prisma.True extends HasSelectOrTake
738
+ ? { orderBy: LibraryGroupByArgs['orderBy'] }
739
+ : { orderBy?: LibraryGroupByArgs['orderBy'] },
740
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
741
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
742
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
743
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
744
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
745
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
746
+ InputErrors extends ByEmpty extends Prisma.True
747
+ ? `Error: "by" must not be empty.`
748
+ : HavingValid extends Prisma.False
749
+ ? {
750
+ [P in HavingFields]: P extends ByFields
751
+ ? never
752
+ : P extends string
753
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
754
+ : [
755
+ Error,
756
+ 'Field ',
757
+ P,
758
+ ` in "having" needs to be provided in "by"`,
759
+ ]
760
+ }[HavingFields]
761
+ : 'take' extends Prisma.Keys<T>
762
+ ? 'orderBy' extends Prisma.Keys<T>
763
+ ? ByValid extends Prisma.True
764
+ ? {}
765
+ : {
766
+ [P in OrderFields]: P extends ByFields
767
+ ? never
768
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
769
+ }[OrderFields]
770
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
771
+ : 'skip' extends Prisma.Keys<T>
772
+ ? 'orderBy' extends Prisma.Keys<T>
773
+ ? ByValid extends Prisma.True
774
+ ? {}
775
+ : {
776
+ [P in OrderFields]: P extends ByFields
777
+ ? never
778
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
779
+ }[OrderFields]
780
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
781
+ : ByValid extends Prisma.True
782
+ ? {}
783
+ : {
784
+ [P in OrderFields]: P extends ByFields
785
+ ? never
786
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
787
+ }[OrderFields]
788
+ >(args: Prisma.SubsetIntersection<T, LibraryGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetLibraryGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
789
+ /**
790
+ * Fields of the Library model
791
+ */
792
+ readonly fields: LibraryFieldRefs;
793
+ }
794
+
795
+ /**
796
+ * The delegate class that acts as a "Promise-like" for Library.
797
+ * Why is this prefixed with `Prisma__`?
798
+ * Because we want to prevent naming conflicts as mentioned in
799
+ * https://github.com/prisma/prisma-client-js/issues/707
800
+ */
801
+ export interface Prisma__LibraryClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
802
+ readonly [Symbol.toStringTag]: "PrismaPromise"
803
+ projects<T extends Prisma.Library$projectsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Library$projectsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProjectPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
804
+ /**
805
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
806
+ * @param onfulfilled The callback to execute when the Promise is resolved.
807
+ * @param onrejected The callback to execute when the Promise is rejected.
808
+ * @returns A Promise for the completion of which ever callback is executed.
809
+ */
810
+ 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>
811
+ /**
812
+ * Attaches a callback for only the rejection of the Promise.
813
+ * @param onrejected The callback to execute when the Promise is rejected.
814
+ * @returns A Promise for the completion of the callback.
815
+ */
816
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
817
+ /**
818
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
819
+ * resolved value cannot be modified from the callback.
820
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
821
+ * @returns A Promise for the completion of the callback.
822
+ */
823
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
824
+ }
825
+
826
+
827
+
828
+
829
+ /**
830
+ * Fields of the Library model
831
+ */
832
+ export interface LibraryFieldRefs {
833
+ readonly id: Prisma.FieldRef<"Library", 'String'>
834
+ readonly meta: Prisma.FieldRef<"Library", 'Json'>
835
+ readonly spec: Prisma.FieldRef<"Library", 'Json'>
836
+ }
837
+
838
+
839
+ // Custom InputTypes
840
+ /**
841
+ * Library findUnique
842
+ */
843
+ export type LibraryFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
844
+ /**
845
+ * Select specific fields to fetch from the Library
846
+ */
847
+ select?: Prisma.LibrarySelect<ExtArgs> | null
848
+ /**
849
+ * Omit specific fields from the Library
850
+ */
851
+ omit?: Prisma.LibraryOmit<ExtArgs> | null
852
+ /**
853
+ * Choose, which related nodes to fetch as well
854
+ */
855
+ include?: Prisma.LibraryInclude<ExtArgs> | null
856
+ /**
857
+ * Filter, which Library to fetch.
858
+ */
859
+ where: Prisma.LibraryWhereUniqueInput
860
+ }
861
+
862
+ /**
863
+ * Library findUniqueOrThrow
864
+ */
865
+ export type LibraryFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
866
+ /**
867
+ * Select specific fields to fetch from the Library
868
+ */
869
+ select?: Prisma.LibrarySelect<ExtArgs> | null
870
+ /**
871
+ * Omit specific fields from the Library
872
+ */
873
+ omit?: Prisma.LibraryOmit<ExtArgs> | null
874
+ /**
875
+ * Choose, which related nodes to fetch as well
876
+ */
877
+ include?: Prisma.LibraryInclude<ExtArgs> | null
878
+ /**
879
+ * Filter, which Library to fetch.
880
+ */
881
+ where: Prisma.LibraryWhereUniqueInput
882
+ }
883
+
884
+ /**
885
+ * Library findFirst
886
+ */
887
+ export type LibraryFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
888
+ /**
889
+ * Select specific fields to fetch from the Library
890
+ */
891
+ select?: Prisma.LibrarySelect<ExtArgs> | null
892
+ /**
893
+ * Omit specific fields from the Library
894
+ */
895
+ omit?: Prisma.LibraryOmit<ExtArgs> | null
896
+ /**
897
+ * Choose, which related nodes to fetch as well
898
+ */
899
+ include?: Prisma.LibraryInclude<ExtArgs> | null
900
+ /**
901
+ * Filter, which Library to fetch.
902
+ */
903
+ where?: Prisma.LibraryWhereInput
904
+ /**
905
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
906
+ *
907
+ * Determine the order of Libraries to fetch.
908
+ */
909
+ orderBy?: Prisma.LibraryOrderByWithRelationInput | Prisma.LibraryOrderByWithRelationInput[]
910
+ /**
911
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
912
+ *
913
+ * Sets the position for searching for Libraries.
914
+ */
915
+ cursor?: Prisma.LibraryWhereUniqueInput
916
+ /**
917
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
918
+ *
919
+ * Take `±n` Libraries from the position of the cursor.
920
+ */
921
+ take?: number
922
+ /**
923
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
924
+ *
925
+ * Skip the first `n` Libraries.
926
+ */
927
+ skip?: number
928
+ /**
929
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
930
+ *
931
+ * Filter by unique combinations of Libraries.
932
+ */
933
+ distinct?: Prisma.LibraryScalarFieldEnum | Prisma.LibraryScalarFieldEnum[]
934
+ }
935
+
936
+ /**
937
+ * Library findFirstOrThrow
938
+ */
939
+ export type LibraryFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
940
+ /**
941
+ * Select specific fields to fetch from the Library
942
+ */
943
+ select?: Prisma.LibrarySelect<ExtArgs> | null
944
+ /**
945
+ * Omit specific fields from the Library
946
+ */
947
+ omit?: Prisma.LibraryOmit<ExtArgs> | null
948
+ /**
949
+ * Choose, which related nodes to fetch as well
950
+ */
951
+ include?: Prisma.LibraryInclude<ExtArgs> | null
952
+ /**
953
+ * Filter, which Library to fetch.
954
+ */
955
+ where?: Prisma.LibraryWhereInput
956
+ /**
957
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
958
+ *
959
+ * Determine the order of Libraries to fetch.
960
+ */
961
+ orderBy?: Prisma.LibraryOrderByWithRelationInput | Prisma.LibraryOrderByWithRelationInput[]
962
+ /**
963
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
964
+ *
965
+ * Sets the position for searching for Libraries.
966
+ */
967
+ cursor?: Prisma.LibraryWhereUniqueInput
968
+ /**
969
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
970
+ *
971
+ * Take `±n` Libraries from the position of the cursor.
972
+ */
973
+ take?: number
974
+ /**
975
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
976
+ *
977
+ * Skip the first `n` Libraries.
978
+ */
979
+ skip?: number
980
+ /**
981
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
982
+ *
983
+ * Filter by unique combinations of Libraries.
984
+ */
985
+ distinct?: Prisma.LibraryScalarFieldEnum | Prisma.LibraryScalarFieldEnum[]
986
+ }
987
+
988
+ /**
989
+ * Library findMany
990
+ */
991
+ export type LibraryFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
992
+ /**
993
+ * Select specific fields to fetch from the Library
994
+ */
995
+ select?: Prisma.LibrarySelect<ExtArgs> | null
996
+ /**
997
+ * Omit specific fields from the Library
998
+ */
999
+ omit?: Prisma.LibraryOmit<ExtArgs> | null
1000
+ /**
1001
+ * Choose, which related nodes to fetch as well
1002
+ */
1003
+ include?: Prisma.LibraryInclude<ExtArgs> | null
1004
+ /**
1005
+ * Filter, which Libraries to fetch.
1006
+ */
1007
+ where?: Prisma.LibraryWhereInput
1008
+ /**
1009
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1010
+ *
1011
+ * Determine the order of Libraries to fetch.
1012
+ */
1013
+ orderBy?: Prisma.LibraryOrderByWithRelationInput | Prisma.LibraryOrderByWithRelationInput[]
1014
+ /**
1015
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1016
+ *
1017
+ * Sets the position for listing Libraries.
1018
+ */
1019
+ cursor?: Prisma.LibraryWhereUniqueInput
1020
+ /**
1021
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1022
+ *
1023
+ * Take `±n` Libraries from the position of the cursor.
1024
+ */
1025
+ take?: number
1026
+ /**
1027
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1028
+ *
1029
+ * Skip the first `n` Libraries.
1030
+ */
1031
+ skip?: number
1032
+ distinct?: Prisma.LibraryScalarFieldEnum | Prisma.LibraryScalarFieldEnum[]
1033
+ }
1034
+
1035
+ /**
1036
+ * Library create
1037
+ */
1038
+ export type LibraryCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1039
+ /**
1040
+ * Select specific fields to fetch from the Library
1041
+ */
1042
+ select?: Prisma.LibrarySelect<ExtArgs> | null
1043
+ /**
1044
+ * Omit specific fields from the Library
1045
+ */
1046
+ omit?: Prisma.LibraryOmit<ExtArgs> | null
1047
+ /**
1048
+ * Choose, which related nodes to fetch as well
1049
+ */
1050
+ include?: Prisma.LibraryInclude<ExtArgs> | null
1051
+ /**
1052
+ * The data needed to create a Library.
1053
+ */
1054
+ data: Prisma.XOR<Prisma.LibraryCreateInput, Prisma.LibraryUncheckedCreateInput>
1055
+ }
1056
+
1057
+ /**
1058
+ * Library createMany
1059
+ */
1060
+ export type LibraryCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1061
+ /**
1062
+ * The data used to create many Libraries.
1063
+ */
1064
+ data: Prisma.LibraryCreateManyInput | Prisma.LibraryCreateManyInput[]
1065
+ }
1066
+
1067
+ /**
1068
+ * Library createManyAndReturn
1069
+ */
1070
+ export type LibraryCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1071
+ /**
1072
+ * Select specific fields to fetch from the Library
1073
+ */
1074
+ select?: Prisma.LibrarySelectCreateManyAndReturn<ExtArgs> | null
1075
+ /**
1076
+ * Omit specific fields from the Library
1077
+ */
1078
+ omit?: Prisma.LibraryOmit<ExtArgs> | null
1079
+ /**
1080
+ * The data used to create many Libraries.
1081
+ */
1082
+ data: Prisma.LibraryCreateManyInput | Prisma.LibraryCreateManyInput[]
1083
+ }
1084
+
1085
+ /**
1086
+ * Library update
1087
+ */
1088
+ export type LibraryUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1089
+ /**
1090
+ * Select specific fields to fetch from the Library
1091
+ */
1092
+ select?: Prisma.LibrarySelect<ExtArgs> | null
1093
+ /**
1094
+ * Omit specific fields from the Library
1095
+ */
1096
+ omit?: Prisma.LibraryOmit<ExtArgs> | null
1097
+ /**
1098
+ * Choose, which related nodes to fetch as well
1099
+ */
1100
+ include?: Prisma.LibraryInclude<ExtArgs> | null
1101
+ /**
1102
+ * The data needed to update a Library.
1103
+ */
1104
+ data: Prisma.XOR<Prisma.LibraryUpdateInput, Prisma.LibraryUncheckedUpdateInput>
1105
+ /**
1106
+ * Choose, which Library to update.
1107
+ */
1108
+ where: Prisma.LibraryWhereUniqueInput
1109
+ }
1110
+
1111
+ /**
1112
+ * Library updateMany
1113
+ */
1114
+ export type LibraryUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1115
+ /**
1116
+ * The data used to update Libraries.
1117
+ */
1118
+ data: Prisma.XOR<Prisma.LibraryUpdateManyMutationInput, Prisma.LibraryUncheckedUpdateManyInput>
1119
+ /**
1120
+ * Filter which Libraries to update
1121
+ */
1122
+ where?: Prisma.LibraryWhereInput
1123
+ /**
1124
+ * Limit how many Libraries to update.
1125
+ */
1126
+ limit?: number
1127
+ }
1128
+
1129
+ /**
1130
+ * Library updateManyAndReturn
1131
+ */
1132
+ export type LibraryUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1133
+ /**
1134
+ * Select specific fields to fetch from the Library
1135
+ */
1136
+ select?: Prisma.LibrarySelectUpdateManyAndReturn<ExtArgs> | null
1137
+ /**
1138
+ * Omit specific fields from the Library
1139
+ */
1140
+ omit?: Prisma.LibraryOmit<ExtArgs> | null
1141
+ /**
1142
+ * The data used to update Libraries.
1143
+ */
1144
+ data: Prisma.XOR<Prisma.LibraryUpdateManyMutationInput, Prisma.LibraryUncheckedUpdateManyInput>
1145
+ /**
1146
+ * Filter which Libraries to update
1147
+ */
1148
+ where?: Prisma.LibraryWhereInput
1149
+ /**
1150
+ * Limit how many Libraries to update.
1151
+ */
1152
+ limit?: number
1153
+ }
1154
+
1155
+ /**
1156
+ * Library upsert
1157
+ */
1158
+ export type LibraryUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1159
+ /**
1160
+ * Select specific fields to fetch from the Library
1161
+ */
1162
+ select?: Prisma.LibrarySelect<ExtArgs> | null
1163
+ /**
1164
+ * Omit specific fields from the Library
1165
+ */
1166
+ omit?: Prisma.LibraryOmit<ExtArgs> | null
1167
+ /**
1168
+ * Choose, which related nodes to fetch as well
1169
+ */
1170
+ include?: Prisma.LibraryInclude<ExtArgs> | null
1171
+ /**
1172
+ * The filter to search for the Library to update in case it exists.
1173
+ */
1174
+ where: Prisma.LibraryWhereUniqueInput
1175
+ /**
1176
+ * In case the Library found by the `where` argument doesn't exist, create a new Library with this data.
1177
+ */
1178
+ create: Prisma.XOR<Prisma.LibraryCreateInput, Prisma.LibraryUncheckedCreateInput>
1179
+ /**
1180
+ * In case the Library was found with the provided `where` argument, update it with this data.
1181
+ */
1182
+ update: Prisma.XOR<Prisma.LibraryUpdateInput, Prisma.LibraryUncheckedUpdateInput>
1183
+ }
1184
+
1185
+ /**
1186
+ * Library delete
1187
+ */
1188
+ export type LibraryDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1189
+ /**
1190
+ * Select specific fields to fetch from the Library
1191
+ */
1192
+ select?: Prisma.LibrarySelect<ExtArgs> | null
1193
+ /**
1194
+ * Omit specific fields from the Library
1195
+ */
1196
+ omit?: Prisma.LibraryOmit<ExtArgs> | null
1197
+ /**
1198
+ * Choose, which related nodes to fetch as well
1199
+ */
1200
+ include?: Prisma.LibraryInclude<ExtArgs> | null
1201
+ /**
1202
+ * Filter which Library to delete.
1203
+ */
1204
+ where: Prisma.LibraryWhereUniqueInput
1205
+ }
1206
+
1207
+ /**
1208
+ * Library deleteMany
1209
+ */
1210
+ export type LibraryDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1211
+ /**
1212
+ * Filter which Libraries to delete
1213
+ */
1214
+ where?: Prisma.LibraryWhereInput
1215
+ /**
1216
+ * Limit how many Libraries to delete.
1217
+ */
1218
+ limit?: number
1219
+ }
1220
+
1221
+ /**
1222
+ * Library.projects
1223
+ */
1224
+ export type Library$projectsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1225
+ /**
1226
+ * Select specific fields to fetch from the Project
1227
+ */
1228
+ select?: Prisma.ProjectSelect<ExtArgs> | null
1229
+ /**
1230
+ * Omit specific fields from the Project
1231
+ */
1232
+ omit?: Prisma.ProjectOmit<ExtArgs> | null
1233
+ /**
1234
+ * Choose, which related nodes to fetch as well
1235
+ */
1236
+ include?: Prisma.ProjectInclude<ExtArgs> | null
1237
+ where?: Prisma.ProjectWhereInput
1238
+ orderBy?: Prisma.ProjectOrderByWithRelationInput | Prisma.ProjectOrderByWithRelationInput[]
1239
+ cursor?: Prisma.ProjectWhereUniqueInput
1240
+ take?: number
1241
+ skip?: number
1242
+ distinct?: Prisma.ProjectScalarFieldEnum | Prisma.ProjectScalarFieldEnum[]
1243
+ }
1244
+
1245
+ /**
1246
+ * Library without action
1247
+ */
1248
+ export type LibraryDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1249
+ /**
1250
+ * Select specific fields to fetch from the Library
1251
+ */
1252
+ select?: Prisma.LibrarySelect<ExtArgs> | null
1253
+ /**
1254
+ * Omit specific fields from the Library
1255
+ */
1256
+ omit?: Prisma.LibraryOmit<ExtArgs> | null
1257
+ /**
1258
+ * Choose, which related nodes to fetch as well
1259
+ */
1260
+ include?: Prisma.LibraryInclude<ExtArgs> | null
1261
+ }