@highstate/backend 0.9.18 → 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 (331) hide show
  1. package/dist/chunk-5WVU2AK4.js +1535 -0
  2. package/dist/chunk-5WVU2AK4.js.map +1 -0
  3. package/dist/{chunk-OU5OQBLB.js → chunk-I7BWSAN6.js} +3 -28
  4. package/dist/{chunk-OU5OQBLB.js.map → chunk-I7BWSAN6.js.map} +1 -1
  5. package/dist/chunk-VB4YL327.js +139 -0
  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 +2 -1
  10. package/dist/index.js +7587 -7291
  11. package/dist/index.js.map +1 -1
  12. package/dist/library/package-resolution-worker.js +1 -1
  13. package/dist/library/package-resolution-worker.js.map +1 -1
  14. package/dist/library/worker/main.js +35 -29
  15. package/dist/library/worker/main.js.map +1 -1
  16. package/dist/shared/index.js +2 -2
  17. package/package.json +18 -9
  18. package/prisma/backend/_schema/layout.prisma +7 -0
  19. package/prisma/backend/_schema/library.prisma +17 -0
  20. package/prisma/backend/_schema/project.prisma +101 -0
  21. package/prisma/backend/_schema/pulumi.prisma +17 -0
  22. package/prisma/backend/postgresql/main.prisma +17 -0
  23. package/prisma/backend/sqlite/main.prisma +17 -0
  24. package/prisma/backend/sqlite/migrations/20250817070609_initiial/migration.sql +34 -0
  25. package/prisma/backend/sqlite/migrations/20250817104948_add_fields/migration.sql +59 -0
  26. package/prisma/backend/sqlite/migrations/20250818082732_add_models/migration.sql +41 -0
  27. package/prisma/backend/sqlite/migrations/20250818083106_a/migration.sql +19 -0
  28. package/prisma/backend/sqlite/migrations/20250818101945_hi/migration.sql +1 -0
  29. package/prisma/backend/sqlite/migrations/20250819082315_a/migration.sql +5 -0
  30. package/prisma/backend/sqlite/migrations/migration_lock.toml +3 -0
  31. package/prisma/project/api-key.prisma +27 -0
  32. package/prisma/project/artifact.prisma +52 -0
  33. package/prisma/project/custom-status.prisma +46 -0
  34. package/prisma/project/evaluation.prisma +35 -0
  35. package/prisma/project/instance.prisma +160 -0
  36. package/prisma/project/layout.prisma +23 -0
  37. package/prisma/project/lock.prisma +18 -0
  38. package/prisma/project/main.prisma +17 -0
  39. package/prisma/project/migrations/20250816081310_initial/migration.sql +300 -0
  40. package/prisma/project/migrations/20250816082523_test/migration.sql +72 -0
  41. package/prisma/project/migrations/20250818065643_update/migration.sql +42 -0
  42. package/prisma/project/migrations/20250818070758_a/migration.sql +8 -0
  43. package/prisma/project/migrations/20250818070913_a/migration.sql +8 -0
  44. package/prisma/project/migrations/20250818082720_add_motels/migration.sql +11 -0
  45. package/prisma/project/migrations/20250818112523_hello/migration.sql +35 -0
  46. package/prisma/project/migrations/20250819082305_a/migration.sql +14 -0
  47. package/prisma/project/migrations/20250819165004_add_missing_fields/migration.sql +216 -0
  48. package/prisma/project/migrations/20250819171309_a/migration.sql +22 -0
  49. package/prisma/project/migrations/20250820113949_a/migration.sql +66 -0
  50. package/prisma/project/migrations/20250820144256_b/migration.sql +31 -0
  51. package/prisma/project/migrations/20250820145547_a/migration.sql +24 -0
  52. package/prisma/project/migrations/20250820182517_b/migration.sql +2 -0
  53. package/prisma/project/migrations/20250821172324_a/migration.sql +2 -0
  54. package/prisma/project/migrations/20250822081339_a/migration.sql +219 -0
  55. package/prisma/project/migrations/20250822083742_b/migration.sql +1 -0
  56. package/prisma/project/migrations/20250822105134_boom/migration.sql +1 -0
  57. package/prisma/project/migrations/20250822141028_b/migration.sql +1 -0
  58. package/prisma/project/migrations/20250822142342_b/migration.sql +16 -0
  59. package/prisma/project/migrations/20250824072720_a/migration.sql +1 -0
  60. package/prisma/project/migrations/20250824093656_b/migration.sql +21 -0
  61. package/prisma/project/migrations/20250825082518_a/migration.sql +1 -0
  62. package/prisma/project/migrations/20250825085343_b/migration.sql +1 -0
  63. package/prisma/project/migrations/20250825091312_a/migration.sql +1 -0
  64. package/prisma/project/migrations/20250903095431_hi/migration.sql +44 -0
  65. package/prisma/project/migrations/20250903174255_a/migration.sql +24 -0
  66. package/prisma/project/migrations/20250908095205_hi/migration.sql +18 -0
  67. package/prisma/project/migrations/20250909155857_hi/migration.sql +15 -0
  68. package/prisma/project/migrations/migration_lock.toml +3 -0
  69. package/prisma/project/model.prisma +37 -0
  70. package/prisma/project/operation.prisma +148 -0
  71. package/prisma/project/page.prisma +41 -0
  72. package/prisma/project/secret.prisma +42 -0
  73. package/prisma/project/service-account.prisma +36 -0
  74. package/prisma/project/terminal.prisma +90 -0
  75. package/prisma/project/trigger.prisma +31 -0
  76. package/prisma/project/unlock-method.prisma +32 -0
  77. package/prisma/project/worker.prisma +138 -0
  78. package/src/artifact/abstractions.ts +13 -13
  79. package/src/artifact/encryption.ts +30 -54
  80. package/src/artifact/factory.ts +6 -9
  81. package/src/artifact/local.ts +33 -46
  82. package/src/business/api-key.ts +24 -36
  83. package/src/business/artifact.test.ts +978 -0
  84. package/src/business/artifact.ts +136 -216
  85. package/src/business/evaluation.ts +328 -0
  86. package/src/business/index.ts +5 -2
  87. package/src/business/instance-lock.test.ts +1060 -0
  88. package/src/business/instance-lock.ts +387 -78
  89. package/src/business/instance-state.test.ts +735 -0
  90. package/src/business/instance-state.ts +582 -337
  91. package/src/business/operation.test.ts +439 -0
  92. package/src/business/operation.ts +174 -208
  93. package/src/business/project-model.ts +258 -0
  94. package/src/business/project-unlock.ts +168 -126
  95. package/src/business/project.ts +287 -179
  96. package/src/business/secret.test.ts +465 -130
  97. package/src/business/secret.ts +186 -217
  98. package/src/business/settings.test.ts +695 -0
  99. package/src/business/settings.ts +855 -0
  100. package/src/business/terminal-session.ts +90 -0
  101. package/src/business/unit-extra.test.ts +539 -0
  102. package/src/business/unit-extra.ts +160 -0
  103. package/src/business/worker.test.ts +356 -579
  104. package/src/business/worker.ts +238 -339
  105. package/src/common/codebase.ts +65 -0
  106. package/src/common/index.ts +3 -5
  107. package/src/common/logger.ts +5 -0
  108. package/src/common/utils.ts +4 -3
  109. package/src/config.ts +10 -11
  110. package/src/database/_generated/backend/postgresql/client.ts +72 -0
  111. package/src/database/_generated/backend/postgresql/commonInputTypes.ts +350 -0
  112. package/src/database/_generated/backend/postgresql/enums.ts +13 -0
  113. package/src/database/_generated/backend/postgresql/internal/class.ts +320 -0
  114. package/src/database/_generated/backend/postgresql/internal/prismaNamespace.ts +1238 -0
  115. package/src/database/_generated/backend/postgresql/models/Library.ts +1263 -0
  116. package/src/database/_generated/backend/postgresql/models/Project.ts +2175 -0
  117. package/src/database/_generated/backend/postgresql/models/ProjectModelStorage.ts +1263 -0
  118. package/src/database/_generated/backend/postgresql/models/ProjectSpace.ts +1602 -0
  119. package/src/database/_generated/backend/postgresql/models/PulumiBackend.ts +1263 -0
  120. package/src/database/_generated/backend/postgresql/models/UserWorkspaseLayout.ts +1065 -0
  121. package/src/database/_generated/backend/postgresql/models.ts +16 -0
  122. package/src/database/_generated/backend/postgresql/pjtg.ts +182 -0
  123. package/src/database/_generated/backend/sqlite/client.ts +72 -0
  124. package/src/database/_generated/backend/sqlite/commonInputTypes.ts +331 -0
  125. package/src/database/_generated/backend/sqlite/enums.ts +13 -0
  126. package/src/database/_generated/backend/sqlite/internal/class.ts +318 -0
  127. package/src/database/_generated/backend/sqlite/internal/prismaNamespace.ts +1207 -0
  128. package/src/database/_generated/backend/sqlite/models/Library.ts +1261 -0
  129. package/src/database/_generated/backend/sqlite/models/Project.ts +2169 -0
  130. package/src/database/_generated/backend/sqlite/models/ProjectModelStorage.ts +1261 -0
  131. package/src/database/_generated/backend/sqlite/models/ProjectSpace.ts +1599 -0
  132. package/src/database/_generated/backend/sqlite/models/PulumiBackend.ts +1261 -0
  133. package/src/database/_generated/backend/sqlite/models/UserWorkspaseLayout.ts +1063 -0
  134. package/src/database/_generated/backend/sqlite/models.ts +16 -0
  135. package/src/database/_generated/backend/sqlite/pjtg.ts +182 -0
  136. package/src/database/_generated/project/client.ts +204 -0
  137. package/src/database/_generated/project/commonInputTypes.ts +827 -0
  138. package/src/database/_generated/project/enums.ts +104 -0
  139. package/src/database/_generated/project/internal/class.ts +479 -0
  140. package/src/database/_generated/project/internal/prismaNamespace.ts +2974 -0
  141. package/src/database/_generated/project/models/ApiKey.ts +1506 -0
  142. package/src/database/_generated/project/models/Artifact.ts +2051 -0
  143. package/src/database/_generated/project/models/HubModel.ts +1125 -0
  144. package/src/database/_generated/project/models/InstanceCustomStatus.ts +1713 -0
  145. package/src/database/_generated/project/models/InstanceEvaluationState.ts +1312 -0
  146. package/src/database/_generated/project/models/InstanceLock.ts +1268 -0
  147. package/src/database/_generated/project/models/InstanceModel.ts +1125 -0
  148. package/src/database/_generated/project/models/InstanceOperationState.ts +1707 -0
  149. package/src/database/_generated/project/models/InstanceState.ts +4613 -0
  150. package/src/database/_generated/project/models/Operation.ts +1647 -0
  151. package/src/database/_generated/project/models/OperationLog.ts +1455 -0
  152. package/src/database/_generated/project/models/Page.ts +1838 -0
  153. package/src/database/_generated/project/models/Secret.ts +1692 -0
  154. package/src/database/_generated/project/models/ServiceAccount.ts +2165 -0
  155. package/src/database/_generated/project/models/Terminal.ts +2038 -0
  156. package/src/database/_generated/project/models/TerminalSession.ts +1454 -0
  157. package/src/database/_generated/project/models/TerminalSessionLog.ts +1280 -0
  158. package/src/database/_generated/project/models/Trigger.ts +1430 -0
  159. package/src/database/_generated/project/models/UnlockMethod.ts +1220 -0
  160. package/src/database/_generated/project/models/UserCompositeViewport.ts +1280 -0
  161. package/src/database/_generated/project/models/UserProjectViewport.ts +1059 -0
  162. package/src/database/_generated/project/models/Worker.ts +1459 -0
  163. package/src/database/_generated/project/models/WorkerUnitRegistration.ts +1524 -0
  164. package/src/database/_generated/project/models/WorkerVersion.ts +1974 -0
  165. package/src/database/_generated/project/models/WorkerVersionLog.ts +1318 -0
  166. package/src/database/_generated/project/models.ts +35 -0
  167. package/src/database/_generated/project/pjtg.ts +182 -0
  168. package/src/database/abstractions.ts +19 -0
  169. package/src/database/factory.ts +37 -0
  170. package/src/database/index.ts +6 -0
  171. package/src/database/local/backend.ts +134 -0
  172. package/src/database/local/index.ts +3 -0
  173. package/src/database/local/meta.ts +46 -0
  174. package/src/database/local/prisma.config.ts +25 -0
  175. package/src/database/local/project.ts +39 -0
  176. package/src/database/manager.ts +181 -0
  177. package/src/database/migrate.ts +35 -0
  178. package/src/database/prisma.ts +56 -0
  179. package/src/database/well-known.ts +38 -0
  180. package/src/index.ts +4 -4
  181. package/src/library/abstractions.ts +3 -5
  182. package/src/library/factory.ts +1 -1
  183. package/src/library/local.ts +81 -26
  184. package/src/library/package-resolution-worker.ts +1 -1
  185. package/src/library/worker/evaluator.ts +40 -23
  186. package/src/library/worker/loader.lite.ts +1 -1
  187. package/src/library/worker/main.ts +3 -10
  188. package/src/library/worker/protocol.ts +0 -1
  189. package/src/lock/index.ts +0 -1
  190. package/src/lock/manager.ts +0 -10
  191. package/src/orchestrator/manager.ts +190 -104
  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 +233 -578
  203. package/src/orchestrator/operation.ts +435 -948
  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 +29 -13
  217. package/src/pubsub/memory.ts +31 -0
  218. package/src/runner/abstractions.ts +33 -41
  219. package/src/runner/artifact-env.ts +19 -8
  220. package/src/runner/factory.ts +6 -6
  221. package/src/runner/force-abort.ts +3 -6
  222. package/src/runner/local.ts +64 -67
  223. package/src/runner/pulumi.ts +23 -63
  224. package/src/services.ts +181 -123
  225. package/src/shared/models/backend/index.ts +3 -1
  226. package/src/shared/models/backend/library.ts +9 -1
  227. package/src/shared/models/backend/project.ts +43 -42
  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 -26
  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 -59
  236. package/src/shared/models/project/artifact.ts +16 -76
  237. package/src/shared/models/project/custom-status.ts +12 -0
  238. package/src/shared/models/project/index.ts +8 -7
  239. package/src/shared/models/project/lock.ts +10 -78
  240. package/src/shared/models/project/model.ts +19 -1
  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 -89
  244. package/src/shared/models/project/service-account.ts +12 -17
  245. package/src/shared/models/project/state.ts +100 -407
  246. package/src/shared/models/project/terminal.ts +75 -88
  247. package/src/shared/models/project/trigger.ts +13 -49
  248. package/src/shared/models/project/unlock-method.ts +20 -26
  249. package/src/shared/models/project/worker.ts +89 -90
  250. package/src/shared/resolvers/graph-resolver.ts +21 -0
  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 +1 -1
  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 +7 -3
  257. package/src/shared/utils/index.ts +1 -2
  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 +5 -23
  266. package/src/unlock/memory.ts +9 -14
  267. package/src/worker/abstractions.ts +7 -4
  268. package/src/worker/docker.ts +14 -19
  269. package/src/worker/manager.ts +366 -97
  270. package/dist/chunk-NAAIDR4U.js +0 -8499
  271. package/dist/chunk-NAAIDR4U.js.map +0 -1
  272. package/dist/chunk-Y7DXREVO.js +0 -1745
  273. package/dist/chunk-Y7DXREVO.js.map +0 -1
  274. package/dist/magic-string.es-5ABAC4JN.js +0 -1292
  275. package/dist/magic-string.es-5ABAC4JN.js.map +0 -1
  276. package/src/business/__traces__/secret/update-instance-secrets/create-and-delete-secrets-simultaneously.md +0 -356
  277. package/src/business/__traces__/secret/update-instance-secrets/create-new-secrets-for-instance.md +0 -274
  278. package/src/business/__traces__/secret/update-instance-secrets/delete-existing-secrets.md +0 -223
  279. package/src/business/__traces__/secret/update-instance-secrets/no-op-when-no-changes.md +0 -147
  280. package/src/business/__traces__/secret/update-instance-secrets/update-existing-secrets.md +0 -280
  281. package/src/business/__traces__/worker/update-unit-registrations/add-new-unit-registration-when-other-exists.md +0 -360
  282. package/src/business/__traces__/worker/update-unit-registrations/add-new-unit-registration.md +0 -215
  283. package/src/business/__traces__/worker/update-unit-registrations/create-multiple-workers-with-different-identities.md +0 -427
  284. package/src/business/__traces__/worker/update-unit-registrations/handle-nonexistent-registration-id-gracefully.md +0 -217
  285. package/src/business/__traces__/worker/update-unit-registrations/no-op-when-no-changes.md +0 -132
  286. package/src/business/__traces__/worker/update-unit-registrations/recreate-worker-when-image-changes.md +0 -454
  287. package/src/business/__traces__/worker/update-unit-registrations/recreate-worker-when-image-version-changes.md +0 -426
  288. package/src/business/__traces__/worker/update-unit-registrations/recreate-worker-with-same-identity-reuses-service-account.md +0 -372
  289. package/src/business/__traces__/worker/update-unit-registrations/remove-one-of-multiple-unit-registrations.md +0 -383
  290. package/src/business/__traces__/worker/update-unit-registrations/remove-unit-registration.md +0 -245
  291. package/src/business/__traces__/worker/update-unit-registrations/update-existing-unit-registration-when-params-change.md +0 -174
  292. package/src/business/__traces__/worker/update-unit-registrations/update-params-and-image-simultaneously.md +0 -432
  293. package/src/business/__traces__/worker/update-unit-registrations/worker-with-multiple-registrations-not-deleted-when-one-removed.md +0 -220
  294. package/src/business/backend-unlock.ts +0 -10
  295. package/src/common/clock.ts +0 -18
  296. package/src/common/performance.ts +0 -44
  297. package/src/common/random.ts +0 -68
  298. package/src/common/test/index.ts +0 -2
  299. package/src/common/test/render.ts +0 -98
  300. package/src/common/test/tracer.ts +0 -359
  301. package/src/hotstate/abstractions.ts +0 -48
  302. package/src/hotstate/factory.ts +0 -17
  303. package/src/hotstate/index.ts +0 -3
  304. package/src/hotstate/manager.ts +0 -192
  305. package/src/hotstate/memory.ts +0 -100
  306. package/src/hotstate/validation.ts +0 -100
  307. package/src/lock/test.ts +0 -108
  308. package/src/project/abstractions.ts +0 -78
  309. package/src/project/evaluation.ts +0 -248
  310. package/src/project/factory.ts +0 -11
  311. package/src/project/index.ts +0 -3
  312. package/src/project/local.ts +0 -417
  313. package/src/pubsub/local.ts +0 -36
  314. package/src/pubsub/validation.ts +0 -33
  315. package/src/shared/utils/args.ts +0 -25
  316. package/src/state/abstractions.ts +0 -289
  317. package/src/state/encryption.ts +0 -98
  318. package/src/state/factory.ts +0 -20
  319. package/src/state/index.ts +0 -7
  320. package/src/state/local/backend.ts +0 -106
  321. package/src/state/local/collection.ts +0 -361
  322. package/src/state/local/index.ts +0 -2
  323. package/src/state/manager.ts +0 -890
  324. package/src/state/memory/backend.ts +0 -70
  325. package/src/state/memory/collection.ts +0 -270
  326. package/src/state/memory/index.ts +0 -2
  327. package/src/state/repository/index.ts +0 -2
  328. package/src/state/repository/repository.index.ts +0 -193
  329. package/src/state/repository/repository.ts +0 -507
  330. package/src/state/test.ts +0 -457
  331. /package/src/{state → database/local}/keyring.ts +0 -0
@@ -0,0 +1,1602 @@
1
+
2
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+ /**
6
+ * This file exports the `ProjectSpace` 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 ProjectSpace
18
+ *
19
+ */
20
+ export type ProjectSpaceModel = runtime.Types.Result.DefaultSelection<Prisma.$ProjectSpacePayload>
21
+
22
+ export type AggregateProjectSpace = {
23
+ _count: ProjectSpaceCountAggregateOutputType | null
24
+ _min: ProjectSpaceMinAggregateOutputType | null
25
+ _max: ProjectSpaceMaxAggregateOutputType | null
26
+ }
27
+
28
+ export type ProjectSpaceMinAggregateOutputType = {
29
+ id: string | null
30
+ name: string | null
31
+ parentId: string | null
32
+ }
33
+
34
+ export type ProjectSpaceMaxAggregateOutputType = {
35
+ id: string | null
36
+ name: string | null
37
+ parentId: string | null
38
+ }
39
+
40
+ export type ProjectSpaceCountAggregateOutputType = {
41
+ id: number
42
+ name: number
43
+ parentId: number
44
+ meta: number
45
+ _all: number
46
+ }
47
+
48
+
49
+ export type ProjectSpaceMinAggregateInputType = {
50
+ id?: true
51
+ name?: true
52
+ parentId?: true
53
+ }
54
+
55
+ export type ProjectSpaceMaxAggregateInputType = {
56
+ id?: true
57
+ name?: true
58
+ parentId?: true
59
+ }
60
+
61
+ export type ProjectSpaceCountAggregateInputType = {
62
+ id?: true
63
+ name?: true
64
+ parentId?: true
65
+ meta?: true
66
+ _all?: true
67
+ }
68
+
69
+ export type ProjectSpaceAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
70
+ /**
71
+ * Filter which ProjectSpace to aggregate.
72
+ */
73
+ where?: Prisma.ProjectSpaceWhereInput
74
+ /**
75
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
76
+ *
77
+ * Determine the order of ProjectSpaces to fetch.
78
+ */
79
+ orderBy?: Prisma.ProjectSpaceOrderByWithRelationInput | Prisma.ProjectSpaceOrderByWithRelationInput[]
80
+ /**
81
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
82
+ *
83
+ * Sets the start position
84
+ */
85
+ cursor?: Prisma.ProjectSpaceWhereUniqueInput
86
+ /**
87
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
88
+ *
89
+ * Take `±n` ProjectSpaces from the position of the cursor.
90
+ */
91
+ take?: number
92
+ /**
93
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
94
+ *
95
+ * Skip the first `n` ProjectSpaces.
96
+ */
97
+ skip?: number
98
+ /**
99
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
100
+ *
101
+ * Count returned ProjectSpaces
102
+ **/
103
+ _count?: true | ProjectSpaceCountAggregateInputType
104
+ /**
105
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
106
+ *
107
+ * Select which fields to find the minimum value
108
+ **/
109
+ _min?: ProjectSpaceMinAggregateInputType
110
+ /**
111
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
112
+ *
113
+ * Select which fields to find the maximum value
114
+ **/
115
+ _max?: ProjectSpaceMaxAggregateInputType
116
+ }
117
+
118
+ export type GetProjectSpaceAggregateType<T extends ProjectSpaceAggregateArgs> = {
119
+ [P in keyof T & keyof AggregateProjectSpace]: P extends '_count' | 'count'
120
+ ? T[P] extends true
121
+ ? number
122
+ : Prisma.GetScalarType<T[P], AggregateProjectSpace[P]>
123
+ : Prisma.GetScalarType<T[P], AggregateProjectSpace[P]>
124
+ }
125
+
126
+
127
+
128
+
129
+ export type ProjectSpaceGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
130
+ where?: Prisma.ProjectSpaceWhereInput
131
+ orderBy?: Prisma.ProjectSpaceOrderByWithAggregationInput | Prisma.ProjectSpaceOrderByWithAggregationInput[]
132
+ by: Prisma.ProjectSpaceScalarFieldEnum[] | Prisma.ProjectSpaceScalarFieldEnum
133
+ having?: Prisma.ProjectSpaceScalarWhereWithAggregatesInput
134
+ take?: number
135
+ skip?: number
136
+ _count?: ProjectSpaceCountAggregateInputType | true
137
+ _min?: ProjectSpaceMinAggregateInputType
138
+ _max?: ProjectSpaceMaxAggregateInputType
139
+ }
140
+
141
+ export type ProjectSpaceGroupByOutputType = {
142
+ id: string
143
+ name: string | null
144
+ parentId: string | null
145
+ meta: PrismaJson.CommonObjectMeta
146
+ _count: ProjectSpaceCountAggregateOutputType | null
147
+ _min: ProjectSpaceMinAggregateOutputType | null
148
+ _max: ProjectSpaceMaxAggregateOutputType | null
149
+ }
150
+
151
+ type GetProjectSpaceGroupByPayload<T extends ProjectSpaceGroupByArgs> = Prisma.PrismaPromise<
152
+ Array<
153
+ Prisma.PickEnumerable<ProjectSpaceGroupByOutputType, T['by']> &
154
+ {
155
+ [P in ((keyof T) & (keyof ProjectSpaceGroupByOutputType))]: P extends '_count'
156
+ ? T[P] extends boolean
157
+ ? number
158
+ : Prisma.GetScalarType<T[P], ProjectSpaceGroupByOutputType[P]>
159
+ : Prisma.GetScalarType<T[P], ProjectSpaceGroupByOutputType[P]>
160
+ }
161
+ >
162
+ >
163
+
164
+
165
+
166
+ export type ProjectSpaceWhereInput = {
167
+ AND?: Prisma.ProjectSpaceWhereInput | Prisma.ProjectSpaceWhereInput[]
168
+ OR?: Prisma.ProjectSpaceWhereInput[]
169
+ NOT?: Prisma.ProjectSpaceWhereInput | Prisma.ProjectSpaceWhereInput[]
170
+ id?: Prisma.StringFilter<"ProjectSpace"> | string
171
+ name?: Prisma.StringNullableFilter<"ProjectSpace"> | string | null
172
+ parentId?: Prisma.StringNullableFilter<"ProjectSpace"> | string | null
173
+ meta?: Prisma.JsonFilter<"ProjectSpace">
174
+ projects?: Prisma.ProjectListRelationFilter
175
+ parent?: Prisma.XOR<Prisma.ProjectSpaceNullableScalarRelationFilter, Prisma.ProjectSpaceWhereInput> | null
176
+ children?: Prisma.ProjectSpaceListRelationFilter
177
+ }
178
+
179
+ export type ProjectSpaceOrderByWithRelationInput = {
180
+ id?: Prisma.SortOrder
181
+ name?: Prisma.SortOrderInput | Prisma.SortOrder
182
+ parentId?: Prisma.SortOrderInput | Prisma.SortOrder
183
+ meta?: Prisma.SortOrder
184
+ projects?: Prisma.ProjectOrderByRelationAggregateInput
185
+ parent?: Prisma.ProjectSpaceOrderByWithRelationInput
186
+ children?: Prisma.ProjectSpaceOrderByRelationAggregateInput
187
+ }
188
+
189
+ export type ProjectSpaceWhereUniqueInput = Prisma.AtLeast<{
190
+ id?: string
191
+ AND?: Prisma.ProjectSpaceWhereInput | Prisma.ProjectSpaceWhereInput[]
192
+ OR?: Prisma.ProjectSpaceWhereInput[]
193
+ NOT?: Prisma.ProjectSpaceWhereInput | Prisma.ProjectSpaceWhereInput[]
194
+ name?: Prisma.StringNullableFilter<"ProjectSpace"> | string | null
195
+ parentId?: Prisma.StringNullableFilter<"ProjectSpace"> | string | null
196
+ meta?: Prisma.JsonFilter<"ProjectSpace">
197
+ projects?: Prisma.ProjectListRelationFilter
198
+ parent?: Prisma.XOR<Prisma.ProjectSpaceNullableScalarRelationFilter, Prisma.ProjectSpaceWhereInput> | null
199
+ children?: Prisma.ProjectSpaceListRelationFilter
200
+ }, "id">
201
+
202
+ export type ProjectSpaceOrderByWithAggregationInput = {
203
+ id?: Prisma.SortOrder
204
+ name?: Prisma.SortOrderInput | Prisma.SortOrder
205
+ parentId?: Prisma.SortOrderInput | Prisma.SortOrder
206
+ meta?: Prisma.SortOrder
207
+ _count?: Prisma.ProjectSpaceCountOrderByAggregateInput
208
+ _max?: Prisma.ProjectSpaceMaxOrderByAggregateInput
209
+ _min?: Prisma.ProjectSpaceMinOrderByAggregateInput
210
+ }
211
+
212
+ export type ProjectSpaceScalarWhereWithAggregatesInput = {
213
+ AND?: Prisma.ProjectSpaceScalarWhereWithAggregatesInput | Prisma.ProjectSpaceScalarWhereWithAggregatesInput[]
214
+ OR?: Prisma.ProjectSpaceScalarWhereWithAggregatesInput[]
215
+ NOT?: Prisma.ProjectSpaceScalarWhereWithAggregatesInput | Prisma.ProjectSpaceScalarWhereWithAggregatesInput[]
216
+ id?: Prisma.StringWithAggregatesFilter<"ProjectSpace"> | string
217
+ name?: Prisma.StringNullableWithAggregatesFilter<"ProjectSpace"> | string | null
218
+ parentId?: Prisma.StringNullableWithAggregatesFilter<"ProjectSpace"> | string | null
219
+ meta?: Prisma.JsonWithAggregatesFilter<"ProjectSpace">
220
+ }
221
+
222
+ export type ProjectSpaceCreateInput = {
223
+ id?: string
224
+ name?: string | null
225
+ meta: PrismaJson.CommonObjectMeta
226
+ projects?: Prisma.ProjectCreateNestedManyWithoutSpaceInput
227
+ parent?: Prisma.ProjectSpaceCreateNestedOneWithoutChildrenInput
228
+ children?: Prisma.ProjectSpaceCreateNestedManyWithoutParentInput
229
+ }
230
+
231
+ export type ProjectSpaceUncheckedCreateInput = {
232
+ id?: string
233
+ name?: string | null
234
+ parentId?: string | null
235
+ meta: PrismaJson.CommonObjectMeta
236
+ projects?: Prisma.ProjectUncheckedCreateNestedManyWithoutSpaceInput
237
+ children?: Prisma.ProjectSpaceUncheckedCreateNestedManyWithoutParentInput
238
+ }
239
+
240
+ export type ProjectSpaceUpdateInput = {
241
+ id?: Prisma.StringFieldUpdateOperationsInput | string
242
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
243
+ meta?: PrismaJson.CommonObjectMeta
244
+ projects?: Prisma.ProjectUpdateManyWithoutSpaceNestedInput
245
+ parent?: Prisma.ProjectSpaceUpdateOneWithoutChildrenNestedInput
246
+ children?: Prisma.ProjectSpaceUpdateManyWithoutParentNestedInput
247
+ }
248
+
249
+ export type ProjectSpaceUncheckedUpdateInput = {
250
+ id?: Prisma.StringFieldUpdateOperationsInput | string
251
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
252
+ parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
253
+ meta?: PrismaJson.CommonObjectMeta
254
+ projects?: Prisma.ProjectUncheckedUpdateManyWithoutSpaceNestedInput
255
+ children?: Prisma.ProjectSpaceUncheckedUpdateManyWithoutParentNestedInput
256
+ }
257
+
258
+ export type ProjectSpaceCreateManyInput = {
259
+ id?: string
260
+ name?: string | null
261
+ parentId?: string | null
262
+ meta: PrismaJson.CommonObjectMeta
263
+ }
264
+
265
+ export type ProjectSpaceUpdateManyMutationInput = {
266
+ id?: Prisma.StringFieldUpdateOperationsInput | string
267
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
268
+ meta?: PrismaJson.CommonObjectMeta
269
+ }
270
+
271
+ export type ProjectSpaceUncheckedUpdateManyInput = {
272
+ id?: Prisma.StringFieldUpdateOperationsInput | string
273
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
274
+ parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
275
+ meta?: PrismaJson.CommonObjectMeta
276
+ }
277
+
278
+ export type ProjectSpaceScalarRelationFilter = {
279
+ is?: Prisma.ProjectSpaceWhereInput
280
+ isNot?: Prisma.ProjectSpaceWhereInput
281
+ }
282
+
283
+ export type ProjectSpaceNullableScalarRelationFilter = {
284
+ is?: Prisma.ProjectSpaceWhereInput | null
285
+ isNot?: Prisma.ProjectSpaceWhereInput | null
286
+ }
287
+
288
+ export type ProjectSpaceListRelationFilter = {
289
+ every?: Prisma.ProjectSpaceWhereInput
290
+ some?: Prisma.ProjectSpaceWhereInput
291
+ none?: Prisma.ProjectSpaceWhereInput
292
+ }
293
+
294
+ export type ProjectSpaceOrderByRelationAggregateInput = {
295
+ _count?: Prisma.SortOrder
296
+ }
297
+
298
+ export type ProjectSpaceCountOrderByAggregateInput = {
299
+ id?: Prisma.SortOrder
300
+ name?: Prisma.SortOrder
301
+ parentId?: Prisma.SortOrder
302
+ meta?: Prisma.SortOrder
303
+ }
304
+
305
+ export type ProjectSpaceMaxOrderByAggregateInput = {
306
+ id?: Prisma.SortOrder
307
+ name?: Prisma.SortOrder
308
+ parentId?: Prisma.SortOrder
309
+ }
310
+
311
+ export type ProjectSpaceMinOrderByAggregateInput = {
312
+ id?: Prisma.SortOrder
313
+ name?: Prisma.SortOrder
314
+ parentId?: Prisma.SortOrder
315
+ }
316
+
317
+ export type ProjectSpaceCreateNestedOneWithoutProjectsInput = {
318
+ create?: Prisma.XOR<Prisma.ProjectSpaceCreateWithoutProjectsInput, Prisma.ProjectSpaceUncheckedCreateWithoutProjectsInput>
319
+ connectOrCreate?: Prisma.ProjectSpaceCreateOrConnectWithoutProjectsInput
320
+ connect?: Prisma.ProjectSpaceWhereUniqueInput
321
+ }
322
+
323
+ export type ProjectSpaceUpdateOneRequiredWithoutProjectsNestedInput = {
324
+ create?: Prisma.XOR<Prisma.ProjectSpaceCreateWithoutProjectsInput, Prisma.ProjectSpaceUncheckedCreateWithoutProjectsInput>
325
+ connectOrCreate?: Prisma.ProjectSpaceCreateOrConnectWithoutProjectsInput
326
+ upsert?: Prisma.ProjectSpaceUpsertWithoutProjectsInput
327
+ connect?: Prisma.ProjectSpaceWhereUniqueInput
328
+ update?: Prisma.XOR<Prisma.XOR<Prisma.ProjectSpaceUpdateToOneWithWhereWithoutProjectsInput, Prisma.ProjectSpaceUpdateWithoutProjectsInput>, Prisma.ProjectSpaceUncheckedUpdateWithoutProjectsInput>
329
+ }
330
+
331
+ export type ProjectSpaceCreateNestedOneWithoutChildrenInput = {
332
+ create?: Prisma.XOR<Prisma.ProjectSpaceCreateWithoutChildrenInput, Prisma.ProjectSpaceUncheckedCreateWithoutChildrenInput>
333
+ connectOrCreate?: Prisma.ProjectSpaceCreateOrConnectWithoutChildrenInput
334
+ connect?: Prisma.ProjectSpaceWhereUniqueInput
335
+ }
336
+
337
+ export type ProjectSpaceCreateNestedManyWithoutParentInput = {
338
+ create?: Prisma.XOR<Prisma.ProjectSpaceCreateWithoutParentInput, Prisma.ProjectSpaceUncheckedCreateWithoutParentInput> | Prisma.ProjectSpaceCreateWithoutParentInput[] | Prisma.ProjectSpaceUncheckedCreateWithoutParentInput[]
339
+ connectOrCreate?: Prisma.ProjectSpaceCreateOrConnectWithoutParentInput | Prisma.ProjectSpaceCreateOrConnectWithoutParentInput[]
340
+ createMany?: Prisma.ProjectSpaceCreateManyParentInputEnvelope
341
+ connect?: Prisma.ProjectSpaceWhereUniqueInput | Prisma.ProjectSpaceWhereUniqueInput[]
342
+ }
343
+
344
+ export type ProjectSpaceUncheckedCreateNestedManyWithoutParentInput = {
345
+ create?: Prisma.XOR<Prisma.ProjectSpaceCreateWithoutParentInput, Prisma.ProjectSpaceUncheckedCreateWithoutParentInput> | Prisma.ProjectSpaceCreateWithoutParentInput[] | Prisma.ProjectSpaceUncheckedCreateWithoutParentInput[]
346
+ connectOrCreate?: Prisma.ProjectSpaceCreateOrConnectWithoutParentInput | Prisma.ProjectSpaceCreateOrConnectWithoutParentInput[]
347
+ createMany?: Prisma.ProjectSpaceCreateManyParentInputEnvelope
348
+ connect?: Prisma.ProjectSpaceWhereUniqueInput | Prisma.ProjectSpaceWhereUniqueInput[]
349
+ }
350
+
351
+ export type NullableStringFieldUpdateOperationsInput = {
352
+ set?: string | null
353
+ }
354
+
355
+ export type ProjectSpaceUpdateOneWithoutChildrenNestedInput = {
356
+ create?: Prisma.XOR<Prisma.ProjectSpaceCreateWithoutChildrenInput, Prisma.ProjectSpaceUncheckedCreateWithoutChildrenInput>
357
+ connectOrCreate?: Prisma.ProjectSpaceCreateOrConnectWithoutChildrenInput
358
+ upsert?: Prisma.ProjectSpaceUpsertWithoutChildrenInput
359
+ disconnect?: Prisma.ProjectSpaceWhereInput | boolean
360
+ delete?: Prisma.ProjectSpaceWhereInput | boolean
361
+ connect?: Prisma.ProjectSpaceWhereUniqueInput
362
+ update?: Prisma.XOR<Prisma.XOR<Prisma.ProjectSpaceUpdateToOneWithWhereWithoutChildrenInput, Prisma.ProjectSpaceUpdateWithoutChildrenInput>, Prisma.ProjectSpaceUncheckedUpdateWithoutChildrenInput>
363
+ }
364
+
365
+ export type ProjectSpaceUpdateManyWithoutParentNestedInput = {
366
+ create?: Prisma.XOR<Prisma.ProjectSpaceCreateWithoutParentInput, Prisma.ProjectSpaceUncheckedCreateWithoutParentInput> | Prisma.ProjectSpaceCreateWithoutParentInput[] | Prisma.ProjectSpaceUncheckedCreateWithoutParentInput[]
367
+ connectOrCreate?: Prisma.ProjectSpaceCreateOrConnectWithoutParentInput | Prisma.ProjectSpaceCreateOrConnectWithoutParentInput[]
368
+ upsert?: Prisma.ProjectSpaceUpsertWithWhereUniqueWithoutParentInput | Prisma.ProjectSpaceUpsertWithWhereUniqueWithoutParentInput[]
369
+ createMany?: Prisma.ProjectSpaceCreateManyParentInputEnvelope
370
+ set?: Prisma.ProjectSpaceWhereUniqueInput | Prisma.ProjectSpaceWhereUniqueInput[]
371
+ disconnect?: Prisma.ProjectSpaceWhereUniqueInput | Prisma.ProjectSpaceWhereUniqueInput[]
372
+ delete?: Prisma.ProjectSpaceWhereUniqueInput | Prisma.ProjectSpaceWhereUniqueInput[]
373
+ connect?: Prisma.ProjectSpaceWhereUniqueInput | Prisma.ProjectSpaceWhereUniqueInput[]
374
+ update?: Prisma.ProjectSpaceUpdateWithWhereUniqueWithoutParentInput | Prisma.ProjectSpaceUpdateWithWhereUniqueWithoutParentInput[]
375
+ updateMany?: Prisma.ProjectSpaceUpdateManyWithWhereWithoutParentInput | Prisma.ProjectSpaceUpdateManyWithWhereWithoutParentInput[]
376
+ deleteMany?: Prisma.ProjectSpaceScalarWhereInput | Prisma.ProjectSpaceScalarWhereInput[]
377
+ }
378
+
379
+ export type ProjectSpaceUncheckedUpdateManyWithoutParentNestedInput = {
380
+ create?: Prisma.XOR<Prisma.ProjectSpaceCreateWithoutParentInput, Prisma.ProjectSpaceUncheckedCreateWithoutParentInput> | Prisma.ProjectSpaceCreateWithoutParentInput[] | Prisma.ProjectSpaceUncheckedCreateWithoutParentInput[]
381
+ connectOrCreate?: Prisma.ProjectSpaceCreateOrConnectWithoutParentInput | Prisma.ProjectSpaceCreateOrConnectWithoutParentInput[]
382
+ upsert?: Prisma.ProjectSpaceUpsertWithWhereUniqueWithoutParentInput | Prisma.ProjectSpaceUpsertWithWhereUniqueWithoutParentInput[]
383
+ createMany?: Prisma.ProjectSpaceCreateManyParentInputEnvelope
384
+ set?: Prisma.ProjectSpaceWhereUniqueInput | Prisma.ProjectSpaceWhereUniqueInput[]
385
+ disconnect?: Prisma.ProjectSpaceWhereUniqueInput | Prisma.ProjectSpaceWhereUniqueInput[]
386
+ delete?: Prisma.ProjectSpaceWhereUniqueInput | Prisma.ProjectSpaceWhereUniqueInput[]
387
+ connect?: Prisma.ProjectSpaceWhereUniqueInput | Prisma.ProjectSpaceWhereUniqueInput[]
388
+ update?: Prisma.ProjectSpaceUpdateWithWhereUniqueWithoutParentInput | Prisma.ProjectSpaceUpdateWithWhereUniqueWithoutParentInput[]
389
+ updateMany?: Prisma.ProjectSpaceUpdateManyWithWhereWithoutParentInput | Prisma.ProjectSpaceUpdateManyWithWhereWithoutParentInput[]
390
+ deleteMany?: Prisma.ProjectSpaceScalarWhereInput | Prisma.ProjectSpaceScalarWhereInput[]
391
+ }
392
+
393
+ export type ProjectSpaceCreateWithoutProjectsInput = {
394
+ id?: string
395
+ name?: string | null
396
+ meta: PrismaJson.CommonObjectMeta
397
+ parent?: Prisma.ProjectSpaceCreateNestedOneWithoutChildrenInput
398
+ children?: Prisma.ProjectSpaceCreateNestedManyWithoutParentInput
399
+ }
400
+
401
+ export type ProjectSpaceUncheckedCreateWithoutProjectsInput = {
402
+ id?: string
403
+ name?: string | null
404
+ parentId?: string | null
405
+ meta: PrismaJson.CommonObjectMeta
406
+ children?: Prisma.ProjectSpaceUncheckedCreateNestedManyWithoutParentInput
407
+ }
408
+
409
+ export type ProjectSpaceCreateOrConnectWithoutProjectsInput = {
410
+ where: Prisma.ProjectSpaceWhereUniqueInput
411
+ create: Prisma.XOR<Prisma.ProjectSpaceCreateWithoutProjectsInput, Prisma.ProjectSpaceUncheckedCreateWithoutProjectsInput>
412
+ }
413
+
414
+ export type ProjectSpaceUpsertWithoutProjectsInput = {
415
+ update: Prisma.XOR<Prisma.ProjectSpaceUpdateWithoutProjectsInput, Prisma.ProjectSpaceUncheckedUpdateWithoutProjectsInput>
416
+ create: Prisma.XOR<Prisma.ProjectSpaceCreateWithoutProjectsInput, Prisma.ProjectSpaceUncheckedCreateWithoutProjectsInput>
417
+ where?: Prisma.ProjectSpaceWhereInput
418
+ }
419
+
420
+ export type ProjectSpaceUpdateToOneWithWhereWithoutProjectsInput = {
421
+ where?: Prisma.ProjectSpaceWhereInput
422
+ data: Prisma.XOR<Prisma.ProjectSpaceUpdateWithoutProjectsInput, Prisma.ProjectSpaceUncheckedUpdateWithoutProjectsInput>
423
+ }
424
+
425
+ export type ProjectSpaceUpdateWithoutProjectsInput = {
426
+ id?: Prisma.StringFieldUpdateOperationsInput | string
427
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
428
+ meta?: PrismaJson.CommonObjectMeta
429
+ parent?: Prisma.ProjectSpaceUpdateOneWithoutChildrenNestedInput
430
+ children?: Prisma.ProjectSpaceUpdateManyWithoutParentNestedInput
431
+ }
432
+
433
+ export type ProjectSpaceUncheckedUpdateWithoutProjectsInput = {
434
+ id?: Prisma.StringFieldUpdateOperationsInput | string
435
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
436
+ parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
437
+ meta?: PrismaJson.CommonObjectMeta
438
+ children?: Prisma.ProjectSpaceUncheckedUpdateManyWithoutParentNestedInput
439
+ }
440
+
441
+ export type ProjectSpaceCreateWithoutChildrenInput = {
442
+ id?: string
443
+ name?: string | null
444
+ meta: PrismaJson.CommonObjectMeta
445
+ projects?: Prisma.ProjectCreateNestedManyWithoutSpaceInput
446
+ parent?: Prisma.ProjectSpaceCreateNestedOneWithoutChildrenInput
447
+ }
448
+
449
+ export type ProjectSpaceUncheckedCreateWithoutChildrenInput = {
450
+ id?: string
451
+ name?: string | null
452
+ parentId?: string | null
453
+ meta: PrismaJson.CommonObjectMeta
454
+ projects?: Prisma.ProjectUncheckedCreateNestedManyWithoutSpaceInput
455
+ }
456
+
457
+ export type ProjectSpaceCreateOrConnectWithoutChildrenInput = {
458
+ where: Prisma.ProjectSpaceWhereUniqueInput
459
+ create: Prisma.XOR<Prisma.ProjectSpaceCreateWithoutChildrenInput, Prisma.ProjectSpaceUncheckedCreateWithoutChildrenInput>
460
+ }
461
+
462
+ export type ProjectSpaceCreateWithoutParentInput = {
463
+ id?: string
464
+ name?: string | null
465
+ meta: PrismaJson.CommonObjectMeta
466
+ projects?: Prisma.ProjectCreateNestedManyWithoutSpaceInput
467
+ children?: Prisma.ProjectSpaceCreateNestedManyWithoutParentInput
468
+ }
469
+
470
+ export type ProjectSpaceUncheckedCreateWithoutParentInput = {
471
+ id?: string
472
+ name?: string | null
473
+ meta: PrismaJson.CommonObjectMeta
474
+ projects?: Prisma.ProjectUncheckedCreateNestedManyWithoutSpaceInput
475
+ children?: Prisma.ProjectSpaceUncheckedCreateNestedManyWithoutParentInput
476
+ }
477
+
478
+ export type ProjectSpaceCreateOrConnectWithoutParentInput = {
479
+ where: Prisma.ProjectSpaceWhereUniqueInput
480
+ create: Prisma.XOR<Prisma.ProjectSpaceCreateWithoutParentInput, Prisma.ProjectSpaceUncheckedCreateWithoutParentInput>
481
+ }
482
+
483
+ export type ProjectSpaceCreateManyParentInputEnvelope = {
484
+ data: Prisma.ProjectSpaceCreateManyParentInput | Prisma.ProjectSpaceCreateManyParentInput[]
485
+ skipDuplicates?: boolean
486
+ }
487
+
488
+ export type ProjectSpaceUpsertWithoutChildrenInput = {
489
+ update: Prisma.XOR<Prisma.ProjectSpaceUpdateWithoutChildrenInput, Prisma.ProjectSpaceUncheckedUpdateWithoutChildrenInput>
490
+ create: Prisma.XOR<Prisma.ProjectSpaceCreateWithoutChildrenInput, Prisma.ProjectSpaceUncheckedCreateWithoutChildrenInput>
491
+ where?: Prisma.ProjectSpaceWhereInput
492
+ }
493
+
494
+ export type ProjectSpaceUpdateToOneWithWhereWithoutChildrenInput = {
495
+ where?: Prisma.ProjectSpaceWhereInput
496
+ data: Prisma.XOR<Prisma.ProjectSpaceUpdateWithoutChildrenInput, Prisma.ProjectSpaceUncheckedUpdateWithoutChildrenInput>
497
+ }
498
+
499
+ export type ProjectSpaceUpdateWithoutChildrenInput = {
500
+ id?: Prisma.StringFieldUpdateOperationsInput | string
501
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
502
+ meta?: PrismaJson.CommonObjectMeta
503
+ projects?: Prisma.ProjectUpdateManyWithoutSpaceNestedInput
504
+ parent?: Prisma.ProjectSpaceUpdateOneWithoutChildrenNestedInput
505
+ }
506
+
507
+ export type ProjectSpaceUncheckedUpdateWithoutChildrenInput = {
508
+ id?: Prisma.StringFieldUpdateOperationsInput | string
509
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
510
+ parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
511
+ meta?: PrismaJson.CommonObjectMeta
512
+ projects?: Prisma.ProjectUncheckedUpdateManyWithoutSpaceNestedInput
513
+ }
514
+
515
+ export type ProjectSpaceUpsertWithWhereUniqueWithoutParentInput = {
516
+ where: Prisma.ProjectSpaceWhereUniqueInput
517
+ update: Prisma.XOR<Prisma.ProjectSpaceUpdateWithoutParentInput, Prisma.ProjectSpaceUncheckedUpdateWithoutParentInput>
518
+ create: Prisma.XOR<Prisma.ProjectSpaceCreateWithoutParentInput, Prisma.ProjectSpaceUncheckedCreateWithoutParentInput>
519
+ }
520
+
521
+ export type ProjectSpaceUpdateWithWhereUniqueWithoutParentInput = {
522
+ where: Prisma.ProjectSpaceWhereUniqueInput
523
+ data: Prisma.XOR<Prisma.ProjectSpaceUpdateWithoutParentInput, Prisma.ProjectSpaceUncheckedUpdateWithoutParentInput>
524
+ }
525
+
526
+ export type ProjectSpaceUpdateManyWithWhereWithoutParentInput = {
527
+ where: Prisma.ProjectSpaceScalarWhereInput
528
+ data: Prisma.XOR<Prisma.ProjectSpaceUpdateManyMutationInput, Prisma.ProjectSpaceUncheckedUpdateManyWithoutParentInput>
529
+ }
530
+
531
+ export type ProjectSpaceScalarWhereInput = {
532
+ AND?: Prisma.ProjectSpaceScalarWhereInput | Prisma.ProjectSpaceScalarWhereInput[]
533
+ OR?: Prisma.ProjectSpaceScalarWhereInput[]
534
+ NOT?: Prisma.ProjectSpaceScalarWhereInput | Prisma.ProjectSpaceScalarWhereInput[]
535
+ id?: Prisma.StringFilter<"ProjectSpace"> | string
536
+ name?: Prisma.StringNullableFilter<"ProjectSpace"> | string | null
537
+ parentId?: Prisma.StringNullableFilter<"ProjectSpace"> | string | null
538
+ meta?: Prisma.JsonFilter<"ProjectSpace">
539
+ }
540
+
541
+ export type ProjectSpaceCreateManyParentInput = {
542
+ id?: string
543
+ name?: string | null
544
+ meta: PrismaJson.CommonObjectMeta
545
+ }
546
+
547
+ export type ProjectSpaceUpdateWithoutParentInput = {
548
+ id?: Prisma.StringFieldUpdateOperationsInput | string
549
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
550
+ meta?: PrismaJson.CommonObjectMeta
551
+ projects?: Prisma.ProjectUpdateManyWithoutSpaceNestedInput
552
+ children?: Prisma.ProjectSpaceUpdateManyWithoutParentNestedInput
553
+ }
554
+
555
+ export type ProjectSpaceUncheckedUpdateWithoutParentInput = {
556
+ id?: Prisma.StringFieldUpdateOperationsInput | string
557
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
558
+ meta?: PrismaJson.CommonObjectMeta
559
+ projects?: Prisma.ProjectUncheckedUpdateManyWithoutSpaceNestedInput
560
+ children?: Prisma.ProjectSpaceUncheckedUpdateManyWithoutParentNestedInput
561
+ }
562
+
563
+ export type ProjectSpaceUncheckedUpdateManyWithoutParentInput = {
564
+ id?: Prisma.StringFieldUpdateOperationsInput | string
565
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
566
+ meta?: Prisma.JsonNullValueInput | runtime.InputJsonValue
567
+ }
568
+
569
+
570
+ /**
571
+ * Count Type ProjectSpaceCountOutputType
572
+ */
573
+
574
+ export type ProjectSpaceCountOutputType = {
575
+ projects: number
576
+ children: number
577
+ }
578
+
579
+ export type ProjectSpaceCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
580
+ projects?: boolean | ProjectSpaceCountOutputTypeCountProjectsArgs
581
+ children?: boolean | ProjectSpaceCountOutputTypeCountChildrenArgs
582
+ }
583
+
584
+ /**
585
+ * ProjectSpaceCountOutputType without action
586
+ */
587
+ export type ProjectSpaceCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
588
+ /**
589
+ * Select specific fields to fetch from the ProjectSpaceCountOutputType
590
+ */
591
+ select?: Prisma.ProjectSpaceCountOutputTypeSelect<ExtArgs> | null
592
+ }
593
+
594
+ /**
595
+ * ProjectSpaceCountOutputType without action
596
+ */
597
+ export type ProjectSpaceCountOutputTypeCountProjectsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
598
+ where?: Prisma.ProjectWhereInput
599
+ }
600
+
601
+ /**
602
+ * ProjectSpaceCountOutputType without action
603
+ */
604
+ export type ProjectSpaceCountOutputTypeCountChildrenArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
605
+ where?: Prisma.ProjectSpaceWhereInput
606
+ }
607
+
608
+
609
+ export type ProjectSpaceSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
610
+ id?: boolean
611
+ name?: boolean
612
+ parentId?: boolean
613
+ meta?: boolean
614
+ projects?: boolean | Prisma.ProjectSpace$projectsArgs<ExtArgs>
615
+ parent?: boolean | Prisma.ProjectSpace$parentArgs<ExtArgs>
616
+ children?: boolean | Prisma.ProjectSpace$childrenArgs<ExtArgs>
617
+ _count?: boolean | Prisma.ProjectSpaceCountOutputTypeDefaultArgs<ExtArgs>
618
+ }, ExtArgs["result"]["projectSpace"]>
619
+
620
+ export type ProjectSpaceSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
621
+ id?: boolean
622
+ name?: boolean
623
+ parentId?: boolean
624
+ meta?: boolean
625
+ parent?: boolean | Prisma.ProjectSpace$parentArgs<ExtArgs>
626
+ }, ExtArgs["result"]["projectSpace"]>
627
+
628
+ export type ProjectSpaceSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
629
+ id?: boolean
630
+ name?: boolean
631
+ parentId?: boolean
632
+ meta?: boolean
633
+ parent?: boolean | Prisma.ProjectSpace$parentArgs<ExtArgs>
634
+ }, ExtArgs["result"]["projectSpace"]>
635
+
636
+ export type ProjectSpaceSelectScalar = {
637
+ id?: boolean
638
+ name?: boolean
639
+ parentId?: boolean
640
+ meta?: boolean
641
+ }
642
+
643
+ export type ProjectSpaceOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "parentId" | "meta", ExtArgs["result"]["projectSpace"]>
644
+ export type ProjectSpaceInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
645
+ projects?: boolean | Prisma.ProjectSpace$projectsArgs<ExtArgs>
646
+ parent?: boolean | Prisma.ProjectSpace$parentArgs<ExtArgs>
647
+ children?: boolean | Prisma.ProjectSpace$childrenArgs<ExtArgs>
648
+ _count?: boolean | Prisma.ProjectSpaceCountOutputTypeDefaultArgs<ExtArgs>
649
+ }
650
+ export type ProjectSpaceIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
651
+ parent?: boolean | Prisma.ProjectSpace$parentArgs<ExtArgs>
652
+ }
653
+ export type ProjectSpaceIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
654
+ parent?: boolean | Prisma.ProjectSpace$parentArgs<ExtArgs>
655
+ }
656
+
657
+ export type $ProjectSpacePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
658
+ name: "ProjectSpace"
659
+ objects: {
660
+ /**
661
+ * The projects in this project space.
662
+ */
663
+ projects: Prisma.$ProjectPayload<ExtArgs>[]
664
+ /**
665
+ * The parent project space, if any.
666
+ */
667
+ parent: Prisma.$ProjectSpacePayload<ExtArgs> | null
668
+ /**
669
+ * The child project spaces, if any.
670
+ */
671
+ children: Prisma.$ProjectSpacePayload<ExtArgs>[]
672
+ }
673
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
674
+ /**
675
+ * The CUIDv2 of the project space.
676
+ */
677
+ id: string
678
+ /**
679
+ * The name of the project space within the parent space.
680
+ *
681
+ * Will be null for the global project space.
682
+ */
683
+ name: string | null
684
+ /**
685
+ * The ID of the parent project space, if any.
686
+ */
687
+ parentId: string | null
688
+ /**
689
+ * The metadata of the project space managed by the backend.
690
+ *
691
+ * [CommonObjectMeta]
692
+ */
693
+ meta: PrismaJson.CommonObjectMeta
694
+ }, ExtArgs["result"]["projectSpace"]>
695
+ composites: {}
696
+ }
697
+
698
+ export type ProjectSpaceGetPayload<S extends boolean | null | undefined | ProjectSpaceDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ProjectSpacePayload, S>
699
+
700
+ export type ProjectSpaceCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
701
+ Omit<ProjectSpaceFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
702
+ select?: ProjectSpaceCountAggregateInputType | true
703
+ }
704
+
705
+ export interface ProjectSpaceDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
706
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ProjectSpace'], meta: { name: 'ProjectSpace' } }
707
+ /**
708
+ * Find zero or one ProjectSpace that matches the filter.
709
+ * @param {ProjectSpaceFindUniqueArgs} args - Arguments to find a ProjectSpace
710
+ * @example
711
+ * // Get one ProjectSpace
712
+ * const projectSpace = await prisma.projectSpace.findUnique({
713
+ * where: {
714
+ * // ... provide filter here
715
+ * }
716
+ * })
717
+ */
718
+ findUnique<T extends ProjectSpaceFindUniqueArgs>(args: Prisma.SelectSubset<T, ProjectSpaceFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ProjectSpaceClient<runtime.Types.Result.GetResult<Prisma.$ProjectSpacePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
719
+
720
+ /**
721
+ * Find one ProjectSpace that matches the filter or throw an error with `error.code='P2025'`
722
+ * if no matches were found.
723
+ * @param {ProjectSpaceFindUniqueOrThrowArgs} args - Arguments to find a ProjectSpace
724
+ * @example
725
+ * // Get one ProjectSpace
726
+ * const projectSpace = await prisma.projectSpace.findUniqueOrThrow({
727
+ * where: {
728
+ * // ... provide filter here
729
+ * }
730
+ * })
731
+ */
732
+ findUniqueOrThrow<T extends ProjectSpaceFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ProjectSpaceFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ProjectSpaceClient<runtime.Types.Result.GetResult<Prisma.$ProjectSpacePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
733
+
734
+ /**
735
+ * Find the first ProjectSpace that matches the filter.
736
+ * Note, that providing `undefined` is treated as the value not being there.
737
+ * Read more here: https://pris.ly/d/null-undefined
738
+ * @param {ProjectSpaceFindFirstArgs} args - Arguments to find a ProjectSpace
739
+ * @example
740
+ * // Get one ProjectSpace
741
+ * const projectSpace = await prisma.projectSpace.findFirst({
742
+ * where: {
743
+ * // ... provide filter here
744
+ * }
745
+ * })
746
+ */
747
+ findFirst<T extends ProjectSpaceFindFirstArgs>(args?: Prisma.SelectSubset<T, ProjectSpaceFindFirstArgs<ExtArgs>>): Prisma.Prisma__ProjectSpaceClient<runtime.Types.Result.GetResult<Prisma.$ProjectSpacePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
748
+
749
+ /**
750
+ * Find the first ProjectSpace that matches the filter or
751
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
752
+ * Note, that providing `undefined` is treated as the value not being there.
753
+ * Read more here: https://pris.ly/d/null-undefined
754
+ * @param {ProjectSpaceFindFirstOrThrowArgs} args - Arguments to find a ProjectSpace
755
+ * @example
756
+ * // Get one ProjectSpace
757
+ * const projectSpace = await prisma.projectSpace.findFirstOrThrow({
758
+ * where: {
759
+ * // ... provide filter here
760
+ * }
761
+ * })
762
+ */
763
+ findFirstOrThrow<T extends ProjectSpaceFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ProjectSpaceFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ProjectSpaceClient<runtime.Types.Result.GetResult<Prisma.$ProjectSpacePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
764
+
765
+ /**
766
+ * Find zero or more ProjectSpaces that matches the filter.
767
+ * Note, that providing `undefined` is treated as the value not being there.
768
+ * Read more here: https://pris.ly/d/null-undefined
769
+ * @param {ProjectSpaceFindManyArgs} args - Arguments to filter and select certain fields only.
770
+ * @example
771
+ * // Get all ProjectSpaces
772
+ * const projectSpaces = await prisma.projectSpace.findMany()
773
+ *
774
+ * // Get first 10 ProjectSpaces
775
+ * const projectSpaces = await prisma.projectSpace.findMany({ take: 10 })
776
+ *
777
+ * // Only select the `id`
778
+ * const projectSpaceWithIdOnly = await prisma.projectSpace.findMany({ select: { id: true } })
779
+ *
780
+ */
781
+ findMany<T extends ProjectSpaceFindManyArgs>(args?: Prisma.SelectSubset<T, ProjectSpaceFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProjectSpacePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
782
+
783
+ /**
784
+ * Create a ProjectSpace.
785
+ * @param {ProjectSpaceCreateArgs} args - Arguments to create a ProjectSpace.
786
+ * @example
787
+ * // Create one ProjectSpace
788
+ * const ProjectSpace = await prisma.projectSpace.create({
789
+ * data: {
790
+ * // ... data to create a ProjectSpace
791
+ * }
792
+ * })
793
+ *
794
+ */
795
+ create<T extends ProjectSpaceCreateArgs>(args: Prisma.SelectSubset<T, ProjectSpaceCreateArgs<ExtArgs>>): Prisma.Prisma__ProjectSpaceClient<runtime.Types.Result.GetResult<Prisma.$ProjectSpacePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
796
+
797
+ /**
798
+ * Create many ProjectSpaces.
799
+ * @param {ProjectSpaceCreateManyArgs} args - Arguments to create many ProjectSpaces.
800
+ * @example
801
+ * // Create many ProjectSpaces
802
+ * const projectSpace = await prisma.projectSpace.createMany({
803
+ * data: [
804
+ * // ... provide data here
805
+ * ]
806
+ * })
807
+ *
808
+ */
809
+ createMany<T extends ProjectSpaceCreateManyArgs>(args?: Prisma.SelectSubset<T, ProjectSpaceCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
810
+
811
+ /**
812
+ * Create many ProjectSpaces and returns the data saved in the database.
813
+ * @param {ProjectSpaceCreateManyAndReturnArgs} args - Arguments to create many ProjectSpaces.
814
+ * @example
815
+ * // Create many ProjectSpaces
816
+ * const projectSpace = await prisma.projectSpace.createManyAndReturn({
817
+ * data: [
818
+ * // ... provide data here
819
+ * ]
820
+ * })
821
+ *
822
+ * // Create many ProjectSpaces and only return the `id`
823
+ * const projectSpaceWithIdOnly = await prisma.projectSpace.createManyAndReturn({
824
+ * select: { id: true },
825
+ * data: [
826
+ * // ... provide data here
827
+ * ]
828
+ * })
829
+ * Note, that providing `undefined` is treated as the value not being there.
830
+ * Read more here: https://pris.ly/d/null-undefined
831
+ *
832
+ */
833
+ createManyAndReturn<T extends ProjectSpaceCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ProjectSpaceCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProjectSpacePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
834
+
835
+ /**
836
+ * Delete a ProjectSpace.
837
+ * @param {ProjectSpaceDeleteArgs} args - Arguments to delete one ProjectSpace.
838
+ * @example
839
+ * // Delete one ProjectSpace
840
+ * const ProjectSpace = await prisma.projectSpace.delete({
841
+ * where: {
842
+ * // ... filter to delete one ProjectSpace
843
+ * }
844
+ * })
845
+ *
846
+ */
847
+ delete<T extends ProjectSpaceDeleteArgs>(args: Prisma.SelectSubset<T, ProjectSpaceDeleteArgs<ExtArgs>>): Prisma.Prisma__ProjectSpaceClient<runtime.Types.Result.GetResult<Prisma.$ProjectSpacePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
848
+
849
+ /**
850
+ * Update one ProjectSpace.
851
+ * @param {ProjectSpaceUpdateArgs} args - Arguments to update one ProjectSpace.
852
+ * @example
853
+ * // Update one ProjectSpace
854
+ * const projectSpace = await prisma.projectSpace.update({
855
+ * where: {
856
+ * // ... provide filter here
857
+ * },
858
+ * data: {
859
+ * // ... provide data here
860
+ * }
861
+ * })
862
+ *
863
+ */
864
+ update<T extends ProjectSpaceUpdateArgs>(args: Prisma.SelectSubset<T, ProjectSpaceUpdateArgs<ExtArgs>>): Prisma.Prisma__ProjectSpaceClient<runtime.Types.Result.GetResult<Prisma.$ProjectSpacePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
865
+
866
+ /**
867
+ * Delete zero or more ProjectSpaces.
868
+ * @param {ProjectSpaceDeleteManyArgs} args - Arguments to filter ProjectSpaces to delete.
869
+ * @example
870
+ * // Delete a few ProjectSpaces
871
+ * const { count } = await prisma.projectSpace.deleteMany({
872
+ * where: {
873
+ * // ... provide filter here
874
+ * }
875
+ * })
876
+ *
877
+ */
878
+ deleteMany<T extends ProjectSpaceDeleteManyArgs>(args?: Prisma.SelectSubset<T, ProjectSpaceDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
879
+
880
+ /**
881
+ * Update zero or more ProjectSpaces.
882
+ * Note, that providing `undefined` is treated as the value not being there.
883
+ * Read more here: https://pris.ly/d/null-undefined
884
+ * @param {ProjectSpaceUpdateManyArgs} args - Arguments to update one or more rows.
885
+ * @example
886
+ * // Update many ProjectSpaces
887
+ * const projectSpace = await prisma.projectSpace.updateMany({
888
+ * where: {
889
+ * // ... provide filter here
890
+ * },
891
+ * data: {
892
+ * // ... provide data here
893
+ * }
894
+ * })
895
+ *
896
+ */
897
+ updateMany<T extends ProjectSpaceUpdateManyArgs>(args: Prisma.SelectSubset<T, ProjectSpaceUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
898
+
899
+ /**
900
+ * Update zero or more ProjectSpaces and returns the data updated in the database.
901
+ * @param {ProjectSpaceUpdateManyAndReturnArgs} args - Arguments to update many ProjectSpaces.
902
+ * @example
903
+ * // Update many ProjectSpaces
904
+ * const projectSpace = await prisma.projectSpace.updateManyAndReturn({
905
+ * where: {
906
+ * // ... provide filter here
907
+ * },
908
+ * data: [
909
+ * // ... provide data here
910
+ * ]
911
+ * })
912
+ *
913
+ * // Update zero or more ProjectSpaces and only return the `id`
914
+ * const projectSpaceWithIdOnly = await prisma.projectSpace.updateManyAndReturn({
915
+ * select: { id: true },
916
+ * where: {
917
+ * // ... provide filter here
918
+ * },
919
+ * data: [
920
+ * // ... provide data here
921
+ * ]
922
+ * })
923
+ * Note, that providing `undefined` is treated as the value not being there.
924
+ * Read more here: https://pris.ly/d/null-undefined
925
+ *
926
+ */
927
+ updateManyAndReturn<T extends ProjectSpaceUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ProjectSpaceUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProjectSpacePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
928
+
929
+ /**
930
+ * Create or update one ProjectSpace.
931
+ * @param {ProjectSpaceUpsertArgs} args - Arguments to update or create a ProjectSpace.
932
+ * @example
933
+ * // Update or create a ProjectSpace
934
+ * const projectSpace = await prisma.projectSpace.upsert({
935
+ * create: {
936
+ * // ... data to create a ProjectSpace
937
+ * },
938
+ * update: {
939
+ * // ... in case it already exists, update
940
+ * },
941
+ * where: {
942
+ * // ... the filter for the ProjectSpace we want to update
943
+ * }
944
+ * })
945
+ */
946
+ upsert<T extends ProjectSpaceUpsertArgs>(args: Prisma.SelectSubset<T, ProjectSpaceUpsertArgs<ExtArgs>>): Prisma.Prisma__ProjectSpaceClient<runtime.Types.Result.GetResult<Prisma.$ProjectSpacePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
947
+
948
+
949
+ /**
950
+ * Count the number of ProjectSpaces.
951
+ * Note, that providing `undefined` is treated as the value not being there.
952
+ * Read more here: https://pris.ly/d/null-undefined
953
+ * @param {ProjectSpaceCountArgs} args - Arguments to filter ProjectSpaces to count.
954
+ * @example
955
+ * // Count the number of ProjectSpaces
956
+ * const count = await prisma.projectSpace.count({
957
+ * where: {
958
+ * // ... the filter for the ProjectSpaces we want to count
959
+ * }
960
+ * })
961
+ **/
962
+ count<T extends ProjectSpaceCountArgs>(
963
+ args?: Prisma.Subset<T, ProjectSpaceCountArgs>,
964
+ ): Prisma.PrismaPromise<
965
+ T extends runtime.Types.Utils.Record<'select', any>
966
+ ? T['select'] extends true
967
+ ? number
968
+ : Prisma.GetScalarType<T['select'], ProjectSpaceCountAggregateOutputType>
969
+ : number
970
+ >
971
+
972
+ /**
973
+ * Allows you to perform aggregations operations on a ProjectSpace.
974
+ * Note, that providing `undefined` is treated as the value not being there.
975
+ * Read more here: https://pris.ly/d/null-undefined
976
+ * @param {ProjectSpaceAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
977
+ * @example
978
+ * // Ordered by age ascending
979
+ * // Where email contains prisma.io
980
+ * // Limited to the 10 users
981
+ * const aggregations = await prisma.user.aggregate({
982
+ * _avg: {
983
+ * age: true,
984
+ * },
985
+ * where: {
986
+ * email: {
987
+ * contains: "prisma.io",
988
+ * },
989
+ * },
990
+ * orderBy: {
991
+ * age: "asc",
992
+ * },
993
+ * take: 10,
994
+ * })
995
+ **/
996
+ aggregate<T extends ProjectSpaceAggregateArgs>(args: Prisma.Subset<T, ProjectSpaceAggregateArgs>): Prisma.PrismaPromise<GetProjectSpaceAggregateType<T>>
997
+
998
+ /**
999
+ * Group by ProjectSpace.
1000
+ * Note, that providing `undefined` is treated as the value not being there.
1001
+ * Read more here: https://pris.ly/d/null-undefined
1002
+ * @param {ProjectSpaceGroupByArgs} args - Group by arguments.
1003
+ * @example
1004
+ * // Group by city, order by createdAt, get count
1005
+ * const result = await prisma.user.groupBy({
1006
+ * by: ['city', 'createdAt'],
1007
+ * orderBy: {
1008
+ * createdAt: true
1009
+ * },
1010
+ * _count: {
1011
+ * _all: true
1012
+ * },
1013
+ * })
1014
+ *
1015
+ **/
1016
+ groupBy<
1017
+ T extends ProjectSpaceGroupByArgs,
1018
+ HasSelectOrTake extends Prisma.Or<
1019
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
1020
+ Prisma.Extends<'take', Prisma.Keys<T>>
1021
+ >,
1022
+ OrderByArg extends Prisma.True extends HasSelectOrTake
1023
+ ? { orderBy: ProjectSpaceGroupByArgs['orderBy'] }
1024
+ : { orderBy?: ProjectSpaceGroupByArgs['orderBy'] },
1025
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1026
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1027
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
1028
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
1029
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
1030
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1031
+ InputErrors extends ByEmpty extends Prisma.True
1032
+ ? `Error: "by" must not be empty.`
1033
+ : HavingValid extends Prisma.False
1034
+ ? {
1035
+ [P in HavingFields]: P extends ByFields
1036
+ ? never
1037
+ : P extends string
1038
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1039
+ : [
1040
+ Error,
1041
+ 'Field ',
1042
+ P,
1043
+ ` in "having" needs to be provided in "by"`,
1044
+ ]
1045
+ }[HavingFields]
1046
+ : 'take' extends Prisma.Keys<T>
1047
+ ? 'orderBy' extends Prisma.Keys<T>
1048
+ ? ByValid extends Prisma.True
1049
+ ? {}
1050
+ : {
1051
+ [P in OrderFields]: P extends ByFields
1052
+ ? never
1053
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1054
+ }[OrderFields]
1055
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
1056
+ : 'skip' extends Prisma.Keys<T>
1057
+ ? 'orderBy' extends Prisma.Keys<T>
1058
+ ? ByValid extends Prisma.True
1059
+ ? {}
1060
+ : {
1061
+ [P in OrderFields]: P extends ByFields
1062
+ ? never
1063
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1064
+ }[OrderFields]
1065
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
1066
+ : ByValid extends Prisma.True
1067
+ ? {}
1068
+ : {
1069
+ [P in OrderFields]: P extends ByFields
1070
+ ? never
1071
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1072
+ }[OrderFields]
1073
+ >(args: Prisma.SubsetIntersection<T, ProjectSpaceGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetProjectSpaceGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1074
+ /**
1075
+ * Fields of the ProjectSpace model
1076
+ */
1077
+ readonly fields: ProjectSpaceFieldRefs;
1078
+ }
1079
+
1080
+ /**
1081
+ * The delegate class that acts as a "Promise-like" for ProjectSpace.
1082
+ * Why is this prefixed with `Prisma__`?
1083
+ * Because we want to prevent naming conflicts as mentioned in
1084
+ * https://github.com/prisma/prisma-client-js/issues/707
1085
+ */
1086
+ export interface Prisma__ProjectSpaceClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1087
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1088
+ projects<T extends Prisma.ProjectSpace$projectsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ProjectSpace$projectsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProjectPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1089
+ parent<T extends Prisma.ProjectSpace$parentArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ProjectSpace$parentArgs<ExtArgs>>): Prisma.Prisma__ProjectSpaceClient<runtime.Types.Result.GetResult<Prisma.$ProjectSpacePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1090
+ children<T extends Prisma.ProjectSpace$childrenArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ProjectSpace$childrenArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProjectSpacePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1091
+ /**
1092
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1093
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1094
+ * @param onrejected The callback to execute when the Promise is rejected.
1095
+ * @returns A Promise for the completion of which ever callback is executed.
1096
+ */
1097
+ 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>
1098
+ /**
1099
+ * Attaches a callback for only the rejection of the Promise.
1100
+ * @param onrejected The callback to execute when the Promise is rejected.
1101
+ * @returns A Promise for the completion of the callback.
1102
+ */
1103
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1104
+ /**
1105
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1106
+ * resolved value cannot be modified from the callback.
1107
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1108
+ * @returns A Promise for the completion of the callback.
1109
+ */
1110
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1111
+ }
1112
+
1113
+
1114
+
1115
+
1116
+ /**
1117
+ * Fields of the ProjectSpace model
1118
+ */
1119
+ export interface ProjectSpaceFieldRefs {
1120
+ readonly id: Prisma.FieldRef<"ProjectSpace", 'String'>
1121
+ readonly name: Prisma.FieldRef<"ProjectSpace", 'String'>
1122
+ readonly parentId: Prisma.FieldRef<"ProjectSpace", 'String'>
1123
+ readonly meta: Prisma.FieldRef<"ProjectSpace", 'Json'>
1124
+ }
1125
+
1126
+
1127
+ // Custom InputTypes
1128
+ /**
1129
+ * ProjectSpace findUnique
1130
+ */
1131
+ export type ProjectSpaceFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1132
+ /**
1133
+ * Select specific fields to fetch from the ProjectSpace
1134
+ */
1135
+ select?: Prisma.ProjectSpaceSelect<ExtArgs> | null
1136
+ /**
1137
+ * Omit specific fields from the ProjectSpace
1138
+ */
1139
+ omit?: Prisma.ProjectSpaceOmit<ExtArgs> | null
1140
+ /**
1141
+ * Choose, which related nodes to fetch as well
1142
+ */
1143
+ include?: Prisma.ProjectSpaceInclude<ExtArgs> | null
1144
+ /**
1145
+ * Filter, which ProjectSpace to fetch.
1146
+ */
1147
+ where: Prisma.ProjectSpaceWhereUniqueInput
1148
+ }
1149
+
1150
+ /**
1151
+ * ProjectSpace findUniqueOrThrow
1152
+ */
1153
+ export type ProjectSpaceFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1154
+ /**
1155
+ * Select specific fields to fetch from the ProjectSpace
1156
+ */
1157
+ select?: Prisma.ProjectSpaceSelect<ExtArgs> | null
1158
+ /**
1159
+ * Omit specific fields from the ProjectSpace
1160
+ */
1161
+ omit?: Prisma.ProjectSpaceOmit<ExtArgs> | null
1162
+ /**
1163
+ * Choose, which related nodes to fetch as well
1164
+ */
1165
+ include?: Prisma.ProjectSpaceInclude<ExtArgs> | null
1166
+ /**
1167
+ * Filter, which ProjectSpace to fetch.
1168
+ */
1169
+ where: Prisma.ProjectSpaceWhereUniqueInput
1170
+ }
1171
+
1172
+ /**
1173
+ * ProjectSpace findFirst
1174
+ */
1175
+ export type ProjectSpaceFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1176
+ /**
1177
+ * Select specific fields to fetch from the ProjectSpace
1178
+ */
1179
+ select?: Prisma.ProjectSpaceSelect<ExtArgs> | null
1180
+ /**
1181
+ * Omit specific fields from the ProjectSpace
1182
+ */
1183
+ omit?: Prisma.ProjectSpaceOmit<ExtArgs> | null
1184
+ /**
1185
+ * Choose, which related nodes to fetch as well
1186
+ */
1187
+ include?: Prisma.ProjectSpaceInclude<ExtArgs> | null
1188
+ /**
1189
+ * Filter, which ProjectSpace to fetch.
1190
+ */
1191
+ where?: Prisma.ProjectSpaceWhereInput
1192
+ /**
1193
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1194
+ *
1195
+ * Determine the order of ProjectSpaces to fetch.
1196
+ */
1197
+ orderBy?: Prisma.ProjectSpaceOrderByWithRelationInput | Prisma.ProjectSpaceOrderByWithRelationInput[]
1198
+ /**
1199
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1200
+ *
1201
+ * Sets the position for searching for ProjectSpaces.
1202
+ */
1203
+ cursor?: Prisma.ProjectSpaceWhereUniqueInput
1204
+ /**
1205
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1206
+ *
1207
+ * Take `±n` ProjectSpaces from the position of the cursor.
1208
+ */
1209
+ take?: number
1210
+ /**
1211
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1212
+ *
1213
+ * Skip the first `n` ProjectSpaces.
1214
+ */
1215
+ skip?: number
1216
+ /**
1217
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1218
+ *
1219
+ * Filter by unique combinations of ProjectSpaces.
1220
+ */
1221
+ distinct?: Prisma.ProjectSpaceScalarFieldEnum | Prisma.ProjectSpaceScalarFieldEnum[]
1222
+ }
1223
+
1224
+ /**
1225
+ * ProjectSpace findFirstOrThrow
1226
+ */
1227
+ export type ProjectSpaceFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1228
+ /**
1229
+ * Select specific fields to fetch from the ProjectSpace
1230
+ */
1231
+ select?: Prisma.ProjectSpaceSelect<ExtArgs> | null
1232
+ /**
1233
+ * Omit specific fields from the ProjectSpace
1234
+ */
1235
+ omit?: Prisma.ProjectSpaceOmit<ExtArgs> | null
1236
+ /**
1237
+ * Choose, which related nodes to fetch as well
1238
+ */
1239
+ include?: Prisma.ProjectSpaceInclude<ExtArgs> | null
1240
+ /**
1241
+ * Filter, which ProjectSpace to fetch.
1242
+ */
1243
+ where?: Prisma.ProjectSpaceWhereInput
1244
+ /**
1245
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1246
+ *
1247
+ * Determine the order of ProjectSpaces to fetch.
1248
+ */
1249
+ orderBy?: Prisma.ProjectSpaceOrderByWithRelationInput | Prisma.ProjectSpaceOrderByWithRelationInput[]
1250
+ /**
1251
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1252
+ *
1253
+ * Sets the position for searching for ProjectSpaces.
1254
+ */
1255
+ cursor?: Prisma.ProjectSpaceWhereUniqueInput
1256
+ /**
1257
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1258
+ *
1259
+ * Take `±n` ProjectSpaces from the position of the cursor.
1260
+ */
1261
+ take?: number
1262
+ /**
1263
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1264
+ *
1265
+ * Skip the first `n` ProjectSpaces.
1266
+ */
1267
+ skip?: number
1268
+ /**
1269
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1270
+ *
1271
+ * Filter by unique combinations of ProjectSpaces.
1272
+ */
1273
+ distinct?: Prisma.ProjectSpaceScalarFieldEnum | Prisma.ProjectSpaceScalarFieldEnum[]
1274
+ }
1275
+
1276
+ /**
1277
+ * ProjectSpace findMany
1278
+ */
1279
+ export type ProjectSpaceFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1280
+ /**
1281
+ * Select specific fields to fetch from the ProjectSpace
1282
+ */
1283
+ select?: Prisma.ProjectSpaceSelect<ExtArgs> | null
1284
+ /**
1285
+ * Omit specific fields from the ProjectSpace
1286
+ */
1287
+ omit?: Prisma.ProjectSpaceOmit<ExtArgs> | null
1288
+ /**
1289
+ * Choose, which related nodes to fetch as well
1290
+ */
1291
+ include?: Prisma.ProjectSpaceInclude<ExtArgs> | null
1292
+ /**
1293
+ * Filter, which ProjectSpaces to fetch.
1294
+ */
1295
+ where?: Prisma.ProjectSpaceWhereInput
1296
+ /**
1297
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1298
+ *
1299
+ * Determine the order of ProjectSpaces to fetch.
1300
+ */
1301
+ orderBy?: Prisma.ProjectSpaceOrderByWithRelationInput | Prisma.ProjectSpaceOrderByWithRelationInput[]
1302
+ /**
1303
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1304
+ *
1305
+ * Sets the position for listing ProjectSpaces.
1306
+ */
1307
+ cursor?: Prisma.ProjectSpaceWhereUniqueInput
1308
+ /**
1309
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1310
+ *
1311
+ * Take `±n` ProjectSpaces from the position of the cursor.
1312
+ */
1313
+ take?: number
1314
+ /**
1315
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1316
+ *
1317
+ * Skip the first `n` ProjectSpaces.
1318
+ */
1319
+ skip?: number
1320
+ distinct?: Prisma.ProjectSpaceScalarFieldEnum | Prisma.ProjectSpaceScalarFieldEnum[]
1321
+ }
1322
+
1323
+ /**
1324
+ * ProjectSpace create
1325
+ */
1326
+ export type ProjectSpaceCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1327
+ /**
1328
+ * Select specific fields to fetch from the ProjectSpace
1329
+ */
1330
+ select?: Prisma.ProjectSpaceSelect<ExtArgs> | null
1331
+ /**
1332
+ * Omit specific fields from the ProjectSpace
1333
+ */
1334
+ omit?: Prisma.ProjectSpaceOmit<ExtArgs> | null
1335
+ /**
1336
+ * Choose, which related nodes to fetch as well
1337
+ */
1338
+ include?: Prisma.ProjectSpaceInclude<ExtArgs> | null
1339
+ /**
1340
+ * The data needed to create a ProjectSpace.
1341
+ */
1342
+ data: Prisma.XOR<Prisma.ProjectSpaceCreateInput, Prisma.ProjectSpaceUncheckedCreateInput>
1343
+ }
1344
+
1345
+ /**
1346
+ * ProjectSpace createMany
1347
+ */
1348
+ export type ProjectSpaceCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1349
+ /**
1350
+ * The data used to create many ProjectSpaces.
1351
+ */
1352
+ data: Prisma.ProjectSpaceCreateManyInput | Prisma.ProjectSpaceCreateManyInput[]
1353
+ skipDuplicates?: boolean
1354
+ }
1355
+
1356
+ /**
1357
+ * ProjectSpace createManyAndReturn
1358
+ */
1359
+ export type ProjectSpaceCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1360
+ /**
1361
+ * Select specific fields to fetch from the ProjectSpace
1362
+ */
1363
+ select?: Prisma.ProjectSpaceSelectCreateManyAndReturn<ExtArgs> | null
1364
+ /**
1365
+ * Omit specific fields from the ProjectSpace
1366
+ */
1367
+ omit?: Prisma.ProjectSpaceOmit<ExtArgs> | null
1368
+ /**
1369
+ * The data used to create many ProjectSpaces.
1370
+ */
1371
+ data: Prisma.ProjectSpaceCreateManyInput | Prisma.ProjectSpaceCreateManyInput[]
1372
+ skipDuplicates?: boolean
1373
+ /**
1374
+ * Choose, which related nodes to fetch as well
1375
+ */
1376
+ include?: Prisma.ProjectSpaceIncludeCreateManyAndReturn<ExtArgs> | null
1377
+ }
1378
+
1379
+ /**
1380
+ * ProjectSpace update
1381
+ */
1382
+ export type ProjectSpaceUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1383
+ /**
1384
+ * Select specific fields to fetch from the ProjectSpace
1385
+ */
1386
+ select?: Prisma.ProjectSpaceSelect<ExtArgs> | null
1387
+ /**
1388
+ * Omit specific fields from the ProjectSpace
1389
+ */
1390
+ omit?: Prisma.ProjectSpaceOmit<ExtArgs> | null
1391
+ /**
1392
+ * Choose, which related nodes to fetch as well
1393
+ */
1394
+ include?: Prisma.ProjectSpaceInclude<ExtArgs> | null
1395
+ /**
1396
+ * The data needed to update a ProjectSpace.
1397
+ */
1398
+ data: Prisma.XOR<Prisma.ProjectSpaceUpdateInput, Prisma.ProjectSpaceUncheckedUpdateInput>
1399
+ /**
1400
+ * Choose, which ProjectSpace to update.
1401
+ */
1402
+ where: Prisma.ProjectSpaceWhereUniqueInput
1403
+ }
1404
+
1405
+ /**
1406
+ * ProjectSpace updateMany
1407
+ */
1408
+ export type ProjectSpaceUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1409
+ /**
1410
+ * The data used to update ProjectSpaces.
1411
+ */
1412
+ data: Prisma.XOR<Prisma.ProjectSpaceUpdateManyMutationInput, Prisma.ProjectSpaceUncheckedUpdateManyInput>
1413
+ /**
1414
+ * Filter which ProjectSpaces to update
1415
+ */
1416
+ where?: Prisma.ProjectSpaceWhereInput
1417
+ /**
1418
+ * Limit how many ProjectSpaces to update.
1419
+ */
1420
+ limit?: number
1421
+ }
1422
+
1423
+ /**
1424
+ * ProjectSpace updateManyAndReturn
1425
+ */
1426
+ export type ProjectSpaceUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1427
+ /**
1428
+ * Select specific fields to fetch from the ProjectSpace
1429
+ */
1430
+ select?: Prisma.ProjectSpaceSelectUpdateManyAndReturn<ExtArgs> | null
1431
+ /**
1432
+ * Omit specific fields from the ProjectSpace
1433
+ */
1434
+ omit?: Prisma.ProjectSpaceOmit<ExtArgs> | null
1435
+ /**
1436
+ * The data used to update ProjectSpaces.
1437
+ */
1438
+ data: Prisma.XOR<Prisma.ProjectSpaceUpdateManyMutationInput, Prisma.ProjectSpaceUncheckedUpdateManyInput>
1439
+ /**
1440
+ * Filter which ProjectSpaces to update
1441
+ */
1442
+ where?: Prisma.ProjectSpaceWhereInput
1443
+ /**
1444
+ * Limit how many ProjectSpaces to update.
1445
+ */
1446
+ limit?: number
1447
+ /**
1448
+ * Choose, which related nodes to fetch as well
1449
+ */
1450
+ include?: Prisma.ProjectSpaceIncludeUpdateManyAndReturn<ExtArgs> | null
1451
+ }
1452
+
1453
+ /**
1454
+ * ProjectSpace upsert
1455
+ */
1456
+ export type ProjectSpaceUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1457
+ /**
1458
+ * Select specific fields to fetch from the ProjectSpace
1459
+ */
1460
+ select?: Prisma.ProjectSpaceSelect<ExtArgs> | null
1461
+ /**
1462
+ * Omit specific fields from the ProjectSpace
1463
+ */
1464
+ omit?: Prisma.ProjectSpaceOmit<ExtArgs> | null
1465
+ /**
1466
+ * Choose, which related nodes to fetch as well
1467
+ */
1468
+ include?: Prisma.ProjectSpaceInclude<ExtArgs> | null
1469
+ /**
1470
+ * The filter to search for the ProjectSpace to update in case it exists.
1471
+ */
1472
+ where: Prisma.ProjectSpaceWhereUniqueInput
1473
+ /**
1474
+ * In case the ProjectSpace found by the `where` argument doesn't exist, create a new ProjectSpace with this data.
1475
+ */
1476
+ create: Prisma.XOR<Prisma.ProjectSpaceCreateInput, Prisma.ProjectSpaceUncheckedCreateInput>
1477
+ /**
1478
+ * In case the ProjectSpace was found with the provided `where` argument, update it with this data.
1479
+ */
1480
+ update: Prisma.XOR<Prisma.ProjectSpaceUpdateInput, Prisma.ProjectSpaceUncheckedUpdateInput>
1481
+ }
1482
+
1483
+ /**
1484
+ * ProjectSpace delete
1485
+ */
1486
+ export type ProjectSpaceDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1487
+ /**
1488
+ * Select specific fields to fetch from the ProjectSpace
1489
+ */
1490
+ select?: Prisma.ProjectSpaceSelect<ExtArgs> | null
1491
+ /**
1492
+ * Omit specific fields from the ProjectSpace
1493
+ */
1494
+ omit?: Prisma.ProjectSpaceOmit<ExtArgs> | null
1495
+ /**
1496
+ * Choose, which related nodes to fetch as well
1497
+ */
1498
+ include?: Prisma.ProjectSpaceInclude<ExtArgs> | null
1499
+ /**
1500
+ * Filter which ProjectSpace to delete.
1501
+ */
1502
+ where: Prisma.ProjectSpaceWhereUniqueInput
1503
+ }
1504
+
1505
+ /**
1506
+ * ProjectSpace deleteMany
1507
+ */
1508
+ export type ProjectSpaceDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1509
+ /**
1510
+ * Filter which ProjectSpaces to delete
1511
+ */
1512
+ where?: Prisma.ProjectSpaceWhereInput
1513
+ /**
1514
+ * Limit how many ProjectSpaces to delete.
1515
+ */
1516
+ limit?: number
1517
+ }
1518
+
1519
+ /**
1520
+ * ProjectSpace.projects
1521
+ */
1522
+ export type ProjectSpace$projectsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1523
+ /**
1524
+ * Select specific fields to fetch from the Project
1525
+ */
1526
+ select?: Prisma.ProjectSelect<ExtArgs> | null
1527
+ /**
1528
+ * Omit specific fields from the Project
1529
+ */
1530
+ omit?: Prisma.ProjectOmit<ExtArgs> | null
1531
+ /**
1532
+ * Choose, which related nodes to fetch as well
1533
+ */
1534
+ include?: Prisma.ProjectInclude<ExtArgs> | null
1535
+ where?: Prisma.ProjectWhereInput
1536
+ orderBy?: Prisma.ProjectOrderByWithRelationInput | Prisma.ProjectOrderByWithRelationInput[]
1537
+ cursor?: Prisma.ProjectWhereUniqueInput
1538
+ take?: number
1539
+ skip?: number
1540
+ distinct?: Prisma.ProjectScalarFieldEnum | Prisma.ProjectScalarFieldEnum[]
1541
+ }
1542
+
1543
+ /**
1544
+ * ProjectSpace.parent
1545
+ */
1546
+ export type ProjectSpace$parentArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1547
+ /**
1548
+ * Select specific fields to fetch from the ProjectSpace
1549
+ */
1550
+ select?: Prisma.ProjectSpaceSelect<ExtArgs> | null
1551
+ /**
1552
+ * Omit specific fields from the ProjectSpace
1553
+ */
1554
+ omit?: Prisma.ProjectSpaceOmit<ExtArgs> | null
1555
+ /**
1556
+ * Choose, which related nodes to fetch as well
1557
+ */
1558
+ include?: Prisma.ProjectSpaceInclude<ExtArgs> | null
1559
+ where?: Prisma.ProjectSpaceWhereInput
1560
+ }
1561
+
1562
+ /**
1563
+ * ProjectSpace.children
1564
+ */
1565
+ export type ProjectSpace$childrenArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1566
+ /**
1567
+ * Select specific fields to fetch from the ProjectSpace
1568
+ */
1569
+ select?: Prisma.ProjectSpaceSelect<ExtArgs> | null
1570
+ /**
1571
+ * Omit specific fields from the ProjectSpace
1572
+ */
1573
+ omit?: Prisma.ProjectSpaceOmit<ExtArgs> | null
1574
+ /**
1575
+ * Choose, which related nodes to fetch as well
1576
+ */
1577
+ include?: Prisma.ProjectSpaceInclude<ExtArgs> | null
1578
+ where?: Prisma.ProjectSpaceWhereInput
1579
+ orderBy?: Prisma.ProjectSpaceOrderByWithRelationInput | Prisma.ProjectSpaceOrderByWithRelationInput[]
1580
+ cursor?: Prisma.ProjectSpaceWhereUniqueInput
1581
+ take?: number
1582
+ skip?: number
1583
+ distinct?: Prisma.ProjectSpaceScalarFieldEnum | Prisma.ProjectSpaceScalarFieldEnum[]
1584
+ }
1585
+
1586
+ /**
1587
+ * ProjectSpace without action
1588
+ */
1589
+ export type ProjectSpaceDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1590
+ /**
1591
+ * Select specific fields to fetch from the ProjectSpace
1592
+ */
1593
+ select?: Prisma.ProjectSpaceSelect<ExtArgs> | null
1594
+ /**
1595
+ * Omit specific fields from the ProjectSpace
1596
+ */
1597
+ omit?: Prisma.ProjectSpaceOmit<ExtArgs> | null
1598
+ /**
1599
+ * Choose, which related nodes to fetch as well
1600
+ */
1601
+ include?: Prisma.ProjectSpaceInclude<ExtArgs> | null
1602
+ }