@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,1599 @@
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
+ }
486
+
487
+ export type ProjectSpaceUpsertWithoutChildrenInput = {
488
+ update: Prisma.XOR<Prisma.ProjectSpaceUpdateWithoutChildrenInput, Prisma.ProjectSpaceUncheckedUpdateWithoutChildrenInput>
489
+ create: Prisma.XOR<Prisma.ProjectSpaceCreateWithoutChildrenInput, Prisma.ProjectSpaceUncheckedCreateWithoutChildrenInput>
490
+ where?: Prisma.ProjectSpaceWhereInput
491
+ }
492
+
493
+ export type ProjectSpaceUpdateToOneWithWhereWithoutChildrenInput = {
494
+ where?: Prisma.ProjectSpaceWhereInput
495
+ data: Prisma.XOR<Prisma.ProjectSpaceUpdateWithoutChildrenInput, Prisma.ProjectSpaceUncheckedUpdateWithoutChildrenInput>
496
+ }
497
+
498
+ export type ProjectSpaceUpdateWithoutChildrenInput = {
499
+ id?: Prisma.StringFieldUpdateOperationsInput | string
500
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
501
+ meta?: PrismaJson.CommonObjectMeta
502
+ projects?: Prisma.ProjectUpdateManyWithoutSpaceNestedInput
503
+ parent?: Prisma.ProjectSpaceUpdateOneWithoutChildrenNestedInput
504
+ }
505
+
506
+ export type ProjectSpaceUncheckedUpdateWithoutChildrenInput = {
507
+ id?: Prisma.StringFieldUpdateOperationsInput | string
508
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
509
+ parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
510
+ meta?: PrismaJson.CommonObjectMeta
511
+ projects?: Prisma.ProjectUncheckedUpdateManyWithoutSpaceNestedInput
512
+ }
513
+
514
+ export type ProjectSpaceUpsertWithWhereUniqueWithoutParentInput = {
515
+ where: Prisma.ProjectSpaceWhereUniqueInput
516
+ update: Prisma.XOR<Prisma.ProjectSpaceUpdateWithoutParentInput, Prisma.ProjectSpaceUncheckedUpdateWithoutParentInput>
517
+ create: Prisma.XOR<Prisma.ProjectSpaceCreateWithoutParentInput, Prisma.ProjectSpaceUncheckedCreateWithoutParentInput>
518
+ }
519
+
520
+ export type ProjectSpaceUpdateWithWhereUniqueWithoutParentInput = {
521
+ where: Prisma.ProjectSpaceWhereUniqueInput
522
+ data: Prisma.XOR<Prisma.ProjectSpaceUpdateWithoutParentInput, Prisma.ProjectSpaceUncheckedUpdateWithoutParentInput>
523
+ }
524
+
525
+ export type ProjectSpaceUpdateManyWithWhereWithoutParentInput = {
526
+ where: Prisma.ProjectSpaceScalarWhereInput
527
+ data: Prisma.XOR<Prisma.ProjectSpaceUpdateManyMutationInput, Prisma.ProjectSpaceUncheckedUpdateManyWithoutParentInput>
528
+ }
529
+
530
+ export type ProjectSpaceScalarWhereInput = {
531
+ AND?: Prisma.ProjectSpaceScalarWhereInput | Prisma.ProjectSpaceScalarWhereInput[]
532
+ OR?: Prisma.ProjectSpaceScalarWhereInput[]
533
+ NOT?: Prisma.ProjectSpaceScalarWhereInput | Prisma.ProjectSpaceScalarWhereInput[]
534
+ id?: Prisma.StringFilter<"ProjectSpace"> | string
535
+ name?: Prisma.StringNullableFilter<"ProjectSpace"> | string | null
536
+ parentId?: Prisma.StringNullableFilter<"ProjectSpace"> | string | null
537
+ meta?: Prisma.JsonFilter<"ProjectSpace">
538
+ }
539
+
540
+ export type ProjectSpaceCreateManyParentInput = {
541
+ id?: string
542
+ name?: string | null
543
+ meta: PrismaJson.CommonObjectMeta
544
+ }
545
+
546
+ export type ProjectSpaceUpdateWithoutParentInput = {
547
+ id?: Prisma.StringFieldUpdateOperationsInput | string
548
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
549
+ meta?: PrismaJson.CommonObjectMeta
550
+ projects?: Prisma.ProjectUpdateManyWithoutSpaceNestedInput
551
+ children?: Prisma.ProjectSpaceUpdateManyWithoutParentNestedInput
552
+ }
553
+
554
+ export type ProjectSpaceUncheckedUpdateWithoutParentInput = {
555
+ id?: Prisma.StringFieldUpdateOperationsInput | string
556
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
557
+ meta?: PrismaJson.CommonObjectMeta
558
+ projects?: Prisma.ProjectUncheckedUpdateManyWithoutSpaceNestedInput
559
+ children?: Prisma.ProjectSpaceUncheckedUpdateManyWithoutParentNestedInput
560
+ }
561
+
562
+ export type ProjectSpaceUncheckedUpdateManyWithoutParentInput = {
563
+ id?: Prisma.StringFieldUpdateOperationsInput | string
564
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
565
+ meta?: Prisma.JsonNullValueInput | runtime.InputJsonValue
566
+ }
567
+
568
+
569
+ /**
570
+ * Count Type ProjectSpaceCountOutputType
571
+ */
572
+
573
+ export type ProjectSpaceCountOutputType = {
574
+ projects: number
575
+ children: number
576
+ }
577
+
578
+ export type ProjectSpaceCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
579
+ projects?: boolean | ProjectSpaceCountOutputTypeCountProjectsArgs
580
+ children?: boolean | ProjectSpaceCountOutputTypeCountChildrenArgs
581
+ }
582
+
583
+ /**
584
+ * ProjectSpaceCountOutputType without action
585
+ */
586
+ export type ProjectSpaceCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
587
+ /**
588
+ * Select specific fields to fetch from the ProjectSpaceCountOutputType
589
+ */
590
+ select?: Prisma.ProjectSpaceCountOutputTypeSelect<ExtArgs> | null
591
+ }
592
+
593
+ /**
594
+ * ProjectSpaceCountOutputType without action
595
+ */
596
+ export type ProjectSpaceCountOutputTypeCountProjectsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
597
+ where?: Prisma.ProjectWhereInput
598
+ }
599
+
600
+ /**
601
+ * ProjectSpaceCountOutputType without action
602
+ */
603
+ export type ProjectSpaceCountOutputTypeCountChildrenArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
604
+ where?: Prisma.ProjectSpaceWhereInput
605
+ }
606
+
607
+
608
+ export type ProjectSpaceSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
609
+ id?: boolean
610
+ name?: boolean
611
+ parentId?: boolean
612
+ meta?: boolean
613
+ projects?: boolean | Prisma.ProjectSpace$projectsArgs<ExtArgs>
614
+ parent?: boolean | Prisma.ProjectSpace$parentArgs<ExtArgs>
615
+ children?: boolean | Prisma.ProjectSpace$childrenArgs<ExtArgs>
616
+ _count?: boolean | Prisma.ProjectSpaceCountOutputTypeDefaultArgs<ExtArgs>
617
+ }, ExtArgs["result"]["projectSpace"]>
618
+
619
+ export type ProjectSpaceSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
620
+ id?: boolean
621
+ name?: boolean
622
+ parentId?: boolean
623
+ meta?: boolean
624
+ parent?: boolean | Prisma.ProjectSpace$parentArgs<ExtArgs>
625
+ }, ExtArgs["result"]["projectSpace"]>
626
+
627
+ export type ProjectSpaceSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
628
+ id?: boolean
629
+ name?: boolean
630
+ parentId?: boolean
631
+ meta?: boolean
632
+ parent?: boolean | Prisma.ProjectSpace$parentArgs<ExtArgs>
633
+ }, ExtArgs["result"]["projectSpace"]>
634
+
635
+ export type ProjectSpaceSelectScalar = {
636
+ id?: boolean
637
+ name?: boolean
638
+ parentId?: boolean
639
+ meta?: boolean
640
+ }
641
+
642
+ export type ProjectSpaceOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "parentId" | "meta", ExtArgs["result"]["projectSpace"]>
643
+ export type ProjectSpaceInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
644
+ projects?: boolean | Prisma.ProjectSpace$projectsArgs<ExtArgs>
645
+ parent?: boolean | Prisma.ProjectSpace$parentArgs<ExtArgs>
646
+ children?: boolean | Prisma.ProjectSpace$childrenArgs<ExtArgs>
647
+ _count?: boolean | Prisma.ProjectSpaceCountOutputTypeDefaultArgs<ExtArgs>
648
+ }
649
+ export type ProjectSpaceIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
650
+ parent?: boolean | Prisma.ProjectSpace$parentArgs<ExtArgs>
651
+ }
652
+ export type ProjectSpaceIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
653
+ parent?: boolean | Prisma.ProjectSpace$parentArgs<ExtArgs>
654
+ }
655
+
656
+ export type $ProjectSpacePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
657
+ name: "ProjectSpace"
658
+ objects: {
659
+ /**
660
+ * The projects in this project space.
661
+ */
662
+ projects: Prisma.$ProjectPayload<ExtArgs>[]
663
+ /**
664
+ * The parent project space, if any.
665
+ */
666
+ parent: Prisma.$ProjectSpacePayload<ExtArgs> | null
667
+ /**
668
+ * The child project spaces, if any.
669
+ */
670
+ children: Prisma.$ProjectSpacePayload<ExtArgs>[]
671
+ }
672
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
673
+ /**
674
+ * The CUIDv2 of the project space.
675
+ */
676
+ id: string
677
+ /**
678
+ * The name of the project space within the parent space.
679
+ *
680
+ * Will be null for the global project space.
681
+ */
682
+ name: string | null
683
+ /**
684
+ * The ID of the parent project space, if any.
685
+ */
686
+ parentId: string | null
687
+ /**
688
+ * The metadata of the project space managed by the backend.
689
+ *
690
+ * [CommonObjectMeta]
691
+ */
692
+ meta: PrismaJson.CommonObjectMeta
693
+ }, ExtArgs["result"]["projectSpace"]>
694
+ composites: {}
695
+ }
696
+
697
+ export type ProjectSpaceGetPayload<S extends boolean | null | undefined | ProjectSpaceDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ProjectSpacePayload, S>
698
+
699
+ export type ProjectSpaceCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
700
+ Omit<ProjectSpaceFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
701
+ select?: ProjectSpaceCountAggregateInputType | true
702
+ }
703
+
704
+ export interface ProjectSpaceDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
705
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ProjectSpace'], meta: { name: 'ProjectSpace' } }
706
+ /**
707
+ * Find zero or one ProjectSpace that matches the filter.
708
+ * @param {ProjectSpaceFindUniqueArgs} args - Arguments to find a ProjectSpace
709
+ * @example
710
+ * // Get one ProjectSpace
711
+ * const projectSpace = await prisma.projectSpace.findUnique({
712
+ * where: {
713
+ * // ... provide filter here
714
+ * }
715
+ * })
716
+ */
717
+ 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>
718
+
719
+ /**
720
+ * Find one ProjectSpace that matches the filter or throw an error with `error.code='P2025'`
721
+ * if no matches were found.
722
+ * @param {ProjectSpaceFindUniqueOrThrowArgs} args - Arguments to find a ProjectSpace
723
+ * @example
724
+ * // Get one ProjectSpace
725
+ * const projectSpace = await prisma.projectSpace.findUniqueOrThrow({
726
+ * where: {
727
+ * // ... provide filter here
728
+ * }
729
+ * })
730
+ */
731
+ 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>
732
+
733
+ /**
734
+ * Find the first ProjectSpace that matches the filter.
735
+ * Note, that providing `undefined` is treated as the value not being there.
736
+ * Read more here: https://pris.ly/d/null-undefined
737
+ * @param {ProjectSpaceFindFirstArgs} args - Arguments to find a ProjectSpace
738
+ * @example
739
+ * // Get one ProjectSpace
740
+ * const projectSpace = await prisma.projectSpace.findFirst({
741
+ * where: {
742
+ * // ... provide filter here
743
+ * }
744
+ * })
745
+ */
746
+ 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>
747
+
748
+ /**
749
+ * Find the first ProjectSpace that matches the filter or
750
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
751
+ * Note, that providing `undefined` is treated as the value not being there.
752
+ * Read more here: https://pris.ly/d/null-undefined
753
+ * @param {ProjectSpaceFindFirstOrThrowArgs} args - Arguments to find a ProjectSpace
754
+ * @example
755
+ * // Get one ProjectSpace
756
+ * const projectSpace = await prisma.projectSpace.findFirstOrThrow({
757
+ * where: {
758
+ * // ... provide filter here
759
+ * }
760
+ * })
761
+ */
762
+ 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>
763
+
764
+ /**
765
+ * Find zero or more ProjectSpaces that matches the filter.
766
+ * Note, that providing `undefined` is treated as the value not being there.
767
+ * Read more here: https://pris.ly/d/null-undefined
768
+ * @param {ProjectSpaceFindManyArgs} args - Arguments to filter and select certain fields only.
769
+ * @example
770
+ * // Get all ProjectSpaces
771
+ * const projectSpaces = await prisma.projectSpace.findMany()
772
+ *
773
+ * // Get first 10 ProjectSpaces
774
+ * const projectSpaces = await prisma.projectSpace.findMany({ take: 10 })
775
+ *
776
+ * // Only select the `id`
777
+ * const projectSpaceWithIdOnly = await prisma.projectSpace.findMany({ select: { id: true } })
778
+ *
779
+ */
780
+ findMany<T extends ProjectSpaceFindManyArgs>(args?: Prisma.SelectSubset<T, ProjectSpaceFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProjectSpacePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
781
+
782
+ /**
783
+ * Create a ProjectSpace.
784
+ * @param {ProjectSpaceCreateArgs} args - Arguments to create a ProjectSpace.
785
+ * @example
786
+ * // Create one ProjectSpace
787
+ * const ProjectSpace = await prisma.projectSpace.create({
788
+ * data: {
789
+ * // ... data to create a ProjectSpace
790
+ * }
791
+ * })
792
+ *
793
+ */
794
+ 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>
795
+
796
+ /**
797
+ * Create many ProjectSpaces.
798
+ * @param {ProjectSpaceCreateManyArgs} args - Arguments to create many ProjectSpaces.
799
+ * @example
800
+ * // Create many ProjectSpaces
801
+ * const projectSpace = await prisma.projectSpace.createMany({
802
+ * data: [
803
+ * // ... provide data here
804
+ * ]
805
+ * })
806
+ *
807
+ */
808
+ createMany<T extends ProjectSpaceCreateManyArgs>(args?: Prisma.SelectSubset<T, ProjectSpaceCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
809
+
810
+ /**
811
+ * Create many ProjectSpaces and returns the data saved in the database.
812
+ * @param {ProjectSpaceCreateManyAndReturnArgs} args - Arguments to create many ProjectSpaces.
813
+ * @example
814
+ * // Create many ProjectSpaces
815
+ * const projectSpace = await prisma.projectSpace.createManyAndReturn({
816
+ * data: [
817
+ * // ... provide data here
818
+ * ]
819
+ * })
820
+ *
821
+ * // Create many ProjectSpaces and only return the `id`
822
+ * const projectSpaceWithIdOnly = await prisma.projectSpace.createManyAndReturn({
823
+ * select: { id: true },
824
+ * data: [
825
+ * // ... provide data here
826
+ * ]
827
+ * })
828
+ * Note, that providing `undefined` is treated as the value not being there.
829
+ * Read more here: https://pris.ly/d/null-undefined
830
+ *
831
+ */
832
+ createManyAndReturn<T extends ProjectSpaceCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ProjectSpaceCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProjectSpacePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
833
+
834
+ /**
835
+ * Delete a ProjectSpace.
836
+ * @param {ProjectSpaceDeleteArgs} args - Arguments to delete one ProjectSpace.
837
+ * @example
838
+ * // Delete one ProjectSpace
839
+ * const ProjectSpace = await prisma.projectSpace.delete({
840
+ * where: {
841
+ * // ... filter to delete one ProjectSpace
842
+ * }
843
+ * })
844
+ *
845
+ */
846
+ 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>
847
+
848
+ /**
849
+ * Update one ProjectSpace.
850
+ * @param {ProjectSpaceUpdateArgs} args - Arguments to update one ProjectSpace.
851
+ * @example
852
+ * // Update one ProjectSpace
853
+ * const projectSpace = await prisma.projectSpace.update({
854
+ * where: {
855
+ * // ... provide filter here
856
+ * },
857
+ * data: {
858
+ * // ... provide data here
859
+ * }
860
+ * })
861
+ *
862
+ */
863
+ 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>
864
+
865
+ /**
866
+ * Delete zero or more ProjectSpaces.
867
+ * @param {ProjectSpaceDeleteManyArgs} args - Arguments to filter ProjectSpaces to delete.
868
+ * @example
869
+ * // Delete a few ProjectSpaces
870
+ * const { count } = await prisma.projectSpace.deleteMany({
871
+ * where: {
872
+ * // ... provide filter here
873
+ * }
874
+ * })
875
+ *
876
+ */
877
+ deleteMany<T extends ProjectSpaceDeleteManyArgs>(args?: Prisma.SelectSubset<T, ProjectSpaceDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
878
+
879
+ /**
880
+ * Update zero or more ProjectSpaces.
881
+ * Note, that providing `undefined` is treated as the value not being there.
882
+ * Read more here: https://pris.ly/d/null-undefined
883
+ * @param {ProjectSpaceUpdateManyArgs} args - Arguments to update one or more rows.
884
+ * @example
885
+ * // Update many ProjectSpaces
886
+ * const projectSpace = await prisma.projectSpace.updateMany({
887
+ * where: {
888
+ * // ... provide filter here
889
+ * },
890
+ * data: {
891
+ * // ... provide data here
892
+ * }
893
+ * })
894
+ *
895
+ */
896
+ updateMany<T extends ProjectSpaceUpdateManyArgs>(args: Prisma.SelectSubset<T, ProjectSpaceUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
897
+
898
+ /**
899
+ * Update zero or more ProjectSpaces and returns the data updated in the database.
900
+ * @param {ProjectSpaceUpdateManyAndReturnArgs} args - Arguments to update many ProjectSpaces.
901
+ * @example
902
+ * // Update many ProjectSpaces
903
+ * const projectSpace = await prisma.projectSpace.updateManyAndReturn({
904
+ * where: {
905
+ * // ... provide filter here
906
+ * },
907
+ * data: [
908
+ * // ... provide data here
909
+ * ]
910
+ * })
911
+ *
912
+ * // Update zero or more ProjectSpaces and only return the `id`
913
+ * const projectSpaceWithIdOnly = await prisma.projectSpace.updateManyAndReturn({
914
+ * select: { id: true },
915
+ * where: {
916
+ * // ... provide filter here
917
+ * },
918
+ * data: [
919
+ * // ... provide data here
920
+ * ]
921
+ * })
922
+ * Note, that providing `undefined` is treated as the value not being there.
923
+ * Read more here: https://pris.ly/d/null-undefined
924
+ *
925
+ */
926
+ updateManyAndReturn<T extends ProjectSpaceUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ProjectSpaceUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProjectSpacePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
927
+
928
+ /**
929
+ * Create or update one ProjectSpace.
930
+ * @param {ProjectSpaceUpsertArgs} args - Arguments to update or create a ProjectSpace.
931
+ * @example
932
+ * // Update or create a ProjectSpace
933
+ * const projectSpace = await prisma.projectSpace.upsert({
934
+ * create: {
935
+ * // ... data to create a ProjectSpace
936
+ * },
937
+ * update: {
938
+ * // ... in case it already exists, update
939
+ * },
940
+ * where: {
941
+ * // ... the filter for the ProjectSpace we want to update
942
+ * }
943
+ * })
944
+ */
945
+ 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>
946
+
947
+
948
+ /**
949
+ * Count the number of ProjectSpaces.
950
+ * Note, that providing `undefined` is treated as the value not being there.
951
+ * Read more here: https://pris.ly/d/null-undefined
952
+ * @param {ProjectSpaceCountArgs} args - Arguments to filter ProjectSpaces to count.
953
+ * @example
954
+ * // Count the number of ProjectSpaces
955
+ * const count = await prisma.projectSpace.count({
956
+ * where: {
957
+ * // ... the filter for the ProjectSpaces we want to count
958
+ * }
959
+ * })
960
+ **/
961
+ count<T extends ProjectSpaceCountArgs>(
962
+ args?: Prisma.Subset<T, ProjectSpaceCountArgs>,
963
+ ): Prisma.PrismaPromise<
964
+ T extends runtime.Types.Utils.Record<'select', any>
965
+ ? T['select'] extends true
966
+ ? number
967
+ : Prisma.GetScalarType<T['select'], ProjectSpaceCountAggregateOutputType>
968
+ : number
969
+ >
970
+
971
+ /**
972
+ * Allows you to perform aggregations operations on a ProjectSpace.
973
+ * Note, that providing `undefined` is treated as the value not being there.
974
+ * Read more here: https://pris.ly/d/null-undefined
975
+ * @param {ProjectSpaceAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
976
+ * @example
977
+ * // Ordered by age ascending
978
+ * // Where email contains prisma.io
979
+ * // Limited to the 10 users
980
+ * const aggregations = await prisma.user.aggregate({
981
+ * _avg: {
982
+ * age: true,
983
+ * },
984
+ * where: {
985
+ * email: {
986
+ * contains: "prisma.io",
987
+ * },
988
+ * },
989
+ * orderBy: {
990
+ * age: "asc",
991
+ * },
992
+ * take: 10,
993
+ * })
994
+ **/
995
+ aggregate<T extends ProjectSpaceAggregateArgs>(args: Prisma.Subset<T, ProjectSpaceAggregateArgs>): Prisma.PrismaPromise<GetProjectSpaceAggregateType<T>>
996
+
997
+ /**
998
+ * Group by ProjectSpace.
999
+ * Note, that providing `undefined` is treated as the value not being there.
1000
+ * Read more here: https://pris.ly/d/null-undefined
1001
+ * @param {ProjectSpaceGroupByArgs} args - Group by arguments.
1002
+ * @example
1003
+ * // Group by city, order by createdAt, get count
1004
+ * const result = await prisma.user.groupBy({
1005
+ * by: ['city', 'createdAt'],
1006
+ * orderBy: {
1007
+ * createdAt: true
1008
+ * },
1009
+ * _count: {
1010
+ * _all: true
1011
+ * },
1012
+ * })
1013
+ *
1014
+ **/
1015
+ groupBy<
1016
+ T extends ProjectSpaceGroupByArgs,
1017
+ HasSelectOrTake extends Prisma.Or<
1018
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
1019
+ Prisma.Extends<'take', Prisma.Keys<T>>
1020
+ >,
1021
+ OrderByArg extends Prisma.True extends HasSelectOrTake
1022
+ ? { orderBy: ProjectSpaceGroupByArgs['orderBy'] }
1023
+ : { orderBy?: ProjectSpaceGroupByArgs['orderBy'] },
1024
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1025
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1026
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
1027
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
1028
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
1029
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1030
+ InputErrors extends ByEmpty extends Prisma.True
1031
+ ? `Error: "by" must not be empty.`
1032
+ : HavingValid extends Prisma.False
1033
+ ? {
1034
+ [P in HavingFields]: P extends ByFields
1035
+ ? never
1036
+ : P extends string
1037
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1038
+ : [
1039
+ Error,
1040
+ 'Field ',
1041
+ P,
1042
+ ` in "having" needs to be provided in "by"`,
1043
+ ]
1044
+ }[HavingFields]
1045
+ : 'take' extends Prisma.Keys<T>
1046
+ ? 'orderBy' extends Prisma.Keys<T>
1047
+ ? ByValid extends Prisma.True
1048
+ ? {}
1049
+ : {
1050
+ [P in OrderFields]: P extends ByFields
1051
+ ? never
1052
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1053
+ }[OrderFields]
1054
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
1055
+ : 'skip' extends Prisma.Keys<T>
1056
+ ? 'orderBy' extends Prisma.Keys<T>
1057
+ ? ByValid extends Prisma.True
1058
+ ? {}
1059
+ : {
1060
+ [P in OrderFields]: P extends ByFields
1061
+ ? never
1062
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1063
+ }[OrderFields]
1064
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
1065
+ : ByValid extends Prisma.True
1066
+ ? {}
1067
+ : {
1068
+ [P in OrderFields]: P extends ByFields
1069
+ ? never
1070
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1071
+ }[OrderFields]
1072
+ >(args: Prisma.SubsetIntersection<T, ProjectSpaceGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetProjectSpaceGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1073
+ /**
1074
+ * Fields of the ProjectSpace model
1075
+ */
1076
+ readonly fields: ProjectSpaceFieldRefs;
1077
+ }
1078
+
1079
+ /**
1080
+ * The delegate class that acts as a "Promise-like" for ProjectSpace.
1081
+ * Why is this prefixed with `Prisma__`?
1082
+ * Because we want to prevent naming conflicts as mentioned in
1083
+ * https://github.com/prisma/prisma-client-js/issues/707
1084
+ */
1085
+ export interface Prisma__ProjectSpaceClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1086
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1087
+ 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>
1088
+ 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>
1089
+ 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>
1090
+ /**
1091
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1092
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1093
+ * @param onrejected The callback to execute when the Promise is rejected.
1094
+ * @returns A Promise for the completion of which ever callback is executed.
1095
+ */
1096
+ 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>
1097
+ /**
1098
+ * Attaches a callback for only the rejection of the Promise.
1099
+ * @param onrejected The callback to execute when the Promise is rejected.
1100
+ * @returns A Promise for the completion of the callback.
1101
+ */
1102
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1103
+ /**
1104
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1105
+ * resolved value cannot be modified from the callback.
1106
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1107
+ * @returns A Promise for the completion of the callback.
1108
+ */
1109
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1110
+ }
1111
+
1112
+
1113
+
1114
+
1115
+ /**
1116
+ * Fields of the ProjectSpace model
1117
+ */
1118
+ export interface ProjectSpaceFieldRefs {
1119
+ readonly id: Prisma.FieldRef<"ProjectSpace", 'String'>
1120
+ readonly name: Prisma.FieldRef<"ProjectSpace", 'String'>
1121
+ readonly parentId: Prisma.FieldRef<"ProjectSpace", 'String'>
1122
+ readonly meta: Prisma.FieldRef<"ProjectSpace", 'Json'>
1123
+ }
1124
+
1125
+
1126
+ // Custom InputTypes
1127
+ /**
1128
+ * ProjectSpace findUnique
1129
+ */
1130
+ export type ProjectSpaceFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1131
+ /**
1132
+ * Select specific fields to fetch from the ProjectSpace
1133
+ */
1134
+ select?: Prisma.ProjectSpaceSelect<ExtArgs> | null
1135
+ /**
1136
+ * Omit specific fields from the ProjectSpace
1137
+ */
1138
+ omit?: Prisma.ProjectSpaceOmit<ExtArgs> | null
1139
+ /**
1140
+ * Choose, which related nodes to fetch as well
1141
+ */
1142
+ include?: Prisma.ProjectSpaceInclude<ExtArgs> | null
1143
+ /**
1144
+ * Filter, which ProjectSpace to fetch.
1145
+ */
1146
+ where: Prisma.ProjectSpaceWhereUniqueInput
1147
+ }
1148
+
1149
+ /**
1150
+ * ProjectSpace findUniqueOrThrow
1151
+ */
1152
+ export type ProjectSpaceFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1153
+ /**
1154
+ * Select specific fields to fetch from the ProjectSpace
1155
+ */
1156
+ select?: Prisma.ProjectSpaceSelect<ExtArgs> | null
1157
+ /**
1158
+ * Omit specific fields from the ProjectSpace
1159
+ */
1160
+ omit?: Prisma.ProjectSpaceOmit<ExtArgs> | null
1161
+ /**
1162
+ * Choose, which related nodes to fetch as well
1163
+ */
1164
+ include?: Prisma.ProjectSpaceInclude<ExtArgs> | null
1165
+ /**
1166
+ * Filter, which ProjectSpace to fetch.
1167
+ */
1168
+ where: Prisma.ProjectSpaceWhereUniqueInput
1169
+ }
1170
+
1171
+ /**
1172
+ * ProjectSpace findFirst
1173
+ */
1174
+ export type ProjectSpaceFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1175
+ /**
1176
+ * Select specific fields to fetch from the ProjectSpace
1177
+ */
1178
+ select?: Prisma.ProjectSpaceSelect<ExtArgs> | null
1179
+ /**
1180
+ * Omit specific fields from the ProjectSpace
1181
+ */
1182
+ omit?: Prisma.ProjectSpaceOmit<ExtArgs> | null
1183
+ /**
1184
+ * Choose, which related nodes to fetch as well
1185
+ */
1186
+ include?: Prisma.ProjectSpaceInclude<ExtArgs> | null
1187
+ /**
1188
+ * Filter, which ProjectSpace to fetch.
1189
+ */
1190
+ where?: Prisma.ProjectSpaceWhereInput
1191
+ /**
1192
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1193
+ *
1194
+ * Determine the order of ProjectSpaces to fetch.
1195
+ */
1196
+ orderBy?: Prisma.ProjectSpaceOrderByWithRelationInput | Prisma.ProjectSpaceOrderByWithRelationInput[]
1197
+ /**
1198
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1199
+ *
1200
+ * Sets the position for searching for ProjectSpaces.
1201
+ */
1202
+ cursor?: Prisma.ProjectSpaceWhereUniqueInput
1203
+ /**
1204
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1205
+ *
1206
+ * Take `±n` ProjectSpaces from the position of the cursor.
1207
+ */
1208
+ take?: number
1209
+ /**
1210
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1211
+ *
1212
+ * Skip the first `n` ProjectSpaces.
1213
+ */
1214
+ skip?: number
1215
+ /**
1216
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1217
+ *
1218
+ * Filter by unique combinations of ProjectSpaces.
1219
+ */
1220
+ distinct?: Prisma.ProjectSpaceScalarFieldEnum | Prisma.ProjectSpaceScalarFieldEnum[]
1221
+ }
1222
+
1223
+ /**
1224
+ * ProjectSpace findFirstOrThrow
1225
+ */
1226
+ export type ProjectSpaceFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1227
+ /**
1228
+ * Select specific fields to fetch from the ProjectSpace
1229
+ */
1230
+ select?: Prisma.ProjectSpaceSelect<ExtArgs> | null
1231
+ /**
1232
+ * Omit specific fields from the ProjectSpace
1233
+ */
1234
+ omit?: Prisma.ProjectSpaceOmit<ExtArgs> | null
1235
+ /**
1236
+ * Choose, which related nodes to fetch as well
1237
+ */
1238
+ include?: Prisma.ProjectSpaceInclude<ExtArgs> | null
1239
+ /**
1240
+ * Filter, which ProjectSpace to fetch.
1241
+ */
1242
+ where?: Prisma.ProjectSpaceWhereInput
1243
+ /**
1244
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1245
+ *
1246
+ * Determine the order of ProjectSpaces to fetch.
1247
+ */
1248
+ orderBy?: Prisma.ProjectSpaceOrderByWithRelationInput | Prisma.ProjectSpaceOrderByWithRelationInput[]
1249
+ /**
1250
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1251
+ *
1252
+ * Sets the position for searching for ProjectSpaces.
1253
+ */
1254
+ cursor?: Prisma.ProjectSpaceWhereUniqueInput
1255
+ /**
1256
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1257
+ *
1258
+ * Take `±n` ProjectSpaces from the position of the cursor.
1259
+ */
1260
+ take?: number
1261
+ /**
1262
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1263
+ *
1264
+ * Skip the first `n` ProjectSpaces.
1265
+ */
1266
+ skip?: number
1267
+ /**
1268
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1269
+ *
1270
+ * Filter by unique combinations of ProjectSpaces.
1271
+ */
1272
+ distinct?: Prisma.ProjectSpaceScalarFieldEnum | Prisma.ProjectSpaceScalarFieldEnum[]
1273
+ }
1274
+
1275
+ /**
1276
+ * ProjectSpace findMany
1277
+ */
1278
+ export type ProjectSpaceFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1279
+ /**
1280
+ * Select specific fields to fetch from the ProjectSpace
1281
+ */
1282
+ select?: Prisma.ProjectSpaceSelect<ExtArgs> | null
1283
+ /**
1284
+ * Omit specific fields from the ProjectSpace
1285
+ */
1286
+ omit?: Prisma.ProjectSpaceOmit<ExtArgs> | null
1287
+ /**
1288
+ * Choose, which related nodes to fetch as well
1289
+ */
1290
+ include?: Prisma.ProjectSpaceInclude<ExtArgs> | null
1291
+ /**
1292
+ * Filter, which ProjectSpaces to fetch.
1293
+ */
1294
+ where?: Prisma.ProjectSpaceWhereInput
1295
+ /**
1296
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1297
+ *
1298
+ * Determine the order of ProjectSpaces to fetch.
1299
+ */
1300
+ orderBy?: Prisma.ProjectSpaceOrderByWithRelationInput | Prisma.ProjectSpaceOrderByWithRelationInput[]
1301
+ /**
1302
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1303
+ *
1304
+ * Sets the position for listing ProjectSpaces.
1305
+ */
1306
+ cursor?: Prisma.ProjectSpaceWhereUniqueInput
1307
+ /**
1308
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1309
+ *
1310
+ * Take `±n` ProjectSpaces from the position of the cursor.
1311
+ */
1312
+ take?: number
1313
+ /**
1314
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1315
+ *
1316
+ * Skip the first `n` ProjectSpaces.
1317
+ */
1318
+ skip?: number
1319
+ distinct?: Prisma.ProjectSpaceScalarFieldEnum | Prisma.ProjectSpaceScalarFieldEnum[]
1320
+ }
1321
+
1322
+ /**
1323
+ * ProjectSpace create
1324
+ */
1325
+ export type ProjectSpaceCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1326
+ /**
1327
+ * Select specific fields to fetch from the ProjectSpace
1328
+ */
1329
+ select?: Prisma.ProjectSpaceSelect<ExtArgs> | null
1330
+ /**
1331
+ * Omit specific fields from the ProjectSpace
1332
+ */
1333
+ omit?: Prisma.ProjectSpaceOmit<ExtArgs> | null
1334
+ /**
1335
+ * Choose, which related nodes to fetch as well
1336
+ */
1337
+ include?: Prisma.ProjectSpaceInclude<ExtArgs> | null
1338
+ /**
1339
+ * The data needed to create a ProjectSpace.
1340
+ */
1341
+ data: Prisma.XOR<Prisma.ProjectSpaceCreateInput, Prisma.ProjectSpaceUncheckedCreateInput>
1342
+ }
1343
+
1344
+ /**
1345
+ * ProjectSpace createMany
1346
+ */
1347
+ export type ProjectSpaceCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1348
+ /**
1349
+ * The data used to create many ProjectSpaces.
1350
+ */
1351
+ data: Prisma.ProjectSpaceCreateManyInput | Prisma.ProjectSpaceCreateManyInput[]
1352
+ }
1353
+
1354
+ /**
1355
+ * ProjectSpace createManyAndReturn
1356
+ */
1357
+ export type ProjectSpaceCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1358
+ /**
1359
+ * Select specific fields to fetch from the ProjectSpace
1360
+ */
1361
+ select?: Prisma.ProjectSpaceSelectCreateManyAndReturn<ExtArgs> | null
1362
+ /**
1363
+ * Omit specific fields from the ProjectSpace
1364
+ */
1365
+ omit?: Prisma.ProjectSpaceOmit<ExtArgs> | null
1366
+ /**
1367
+ * The data used to create many ProjectSpaces.
1368
+ */
1369
+ data: Prisma.ProjectSpaceCreateManyInput | Prisma.ProjectSpaceCreateManyInput[]
1370
+ /**
1371
+ * Choose, which related nodes to fetch as well
1372
+ */
1373
+ include?: Prisma.ProjectSpaceIncludeCreateManyAndReturn<ExtArgs> | null
1374
+ }
1375
+
1376
+ /**
1377
+ * ProjectSpace update
1378
+ */
1379
+ export type ProjectSpaceUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1380
+ /**
1381
+ * Select specific fields to fetch from the ProjectSpace
1382
+ */
1383
+ select?: Prisma.ProjectSpaceSelect<ExtArgs> | null
1384
+ /**
1385
+ * Omit specific fields from the ProjectSpace
1386
+ */
1387
+ omit?: Prisma.ProjectSpaceOmit<ExtArgs> | null
1388
+ /**
1389
+ * Choose, which related nodes to fetch as well
1390
+ */
1391
+ include?: Prisma.ProjectSpaceInclude<ExtArgs> | null
1392
+ /**
1393
+ * The data needed to update a ProjectSpace.
1394
+ */
1395
+ data: Prisma.XOR<Prisma.ProjectSpaceUpdateInput, Prisma.ProjectSpaceUncheckedUpdateInput>
1396
+ /**
1397
+ * Choose, which ProjectSpace to update.
1398
+ */
1399
+ where: Prisma.ProjectSpaceWhereUniqueInput
1400
+ }
1401
+
1402
+ /**
1403
+ * ProjectSpace updateMany
1404
+ */
1405
+ export type ProjectSpaceUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1406
+ /**
1407
+ * The data used to update ProjectSpaces.
1408
+ */
1409
+ data: Prisma.XOR<Prisma.ProjectSpaceUpdateManyMutationInput, Prisma.ProjectSpaceUncheckedUpdateManyInput>
1410
+ /**
1411
+ * Filter which ProjectSpaces to update
1412
+ */
1413
+ where?: Prisma.ProjectSpaceWhereInput
1414
+ /**
1415
+ * Limit how many ProjectSpaces to update.
1416
+ */
1417
+ limit?: number
1418
+ }
1419
+
1420
+ /**
1421
+ * ProjectSpace updateManyAndReturn
1422
+ */
1423
+ export type ProjectSpaceUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1424
+ /**
1425
+ * Select specific fields to fetch from the ProjectSpace
1426
+ */
1427
+ select?: Prisma.ProjectSpaceSelectUpdateManyAndReturn<ExtArgs> | null
1428
+ /**
1429
+ * Omit specific fields from the ProjectSpace
1430
+ */
1431
+ omit?: Prisma.ProjectSpaceOmit<ExtArgs> | null
1432
+ /**
1433
+ * The data used to update ProjectSpaces.
1434
+ */
1435
+ data: Prisma.XOR<Prisma.ProjectSpaceUpdateManyMutationInput, Prisma.ProjectSpaceUncheckedUpdateManyInput>
1436
+ /**
1437
+ * Filter which ProjectSpaces to update
1438
+ */
1439
+ where?: Prisma.ProjectSpaceWhereInput
1440
+ /**
1441
+ * Limit how many ProjectSpaces to update.
1442
+ */
1443
+ limit?: number
1444
+ /**
1445
+ * Choose, which related nodes to fetch as well
1446
+ */
1447
+ include?: Prisma.ProjectSpaceIncludeUpdateManyAndReturn<ExtArgs> | null
1448
+ }
1449
+
1450
+ /**
1451
+ * ProjectSpace upsert
1452
+ */
1453
+ export type ProjectSpaceUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1454
+ /**
1455
+ * Select specific fields to fetch from the ProjectSpace
1456
+ */
1457
+ select?: Prisma.ProjectSpaceSelect<ExtArgs> | null
1458
+ /**
1459
+ * Omit specific fields from the ProjectSpace
1460
+ */
1461
+ omit?: Prisma.ProjectSpaceOmit<ExtArgs> | null
1462
+ /**
1463
+ * Choose, which related nodes to fetch as well
1464
+ */
1465
+ include?: Prisma.ProjectSpaceInclude<ExtArgs> | null
1466
+ /**
1467
+ * The filter to search for the ProjectSpace to update in case it exists.
1468
+ */
1469
+ where: Prisma.ProjectSpaceWhereUniqueInput
1470
+ /**
1471
+ * In case the ProjectSpace found by the `where` argument doesn't exist, create a new ProjectSpace with this data.
1472
+ */
1473
+ create: Prisma.XOR<Prisma.ProjectSpaceCreateInput, Prisma.ProjectSpaceUncheckedCreateInput>
1474
+ /**
1475
+ * In case the ProjectSpace was found with the provided `where` argument, update it with this data.
1476
+ */
1477
+ update: Prisma.XOR<Prisma.ProjectSpaceUpdateInput, Prisma.ProjectSpaceUncheckedUpdateInput>
1478
+ }
1479
+
1480
+ /**
1481
+ * ProjectSpace delete
1482
+ */
1483
+ export type ProjectSpaceDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1484
+ /**
1485
+ * Select specific fields to fetch from the ProjectSpace
1486
+ */
1487
+ select?: Prisma.ProjectSpaceSelect<ExtArgs> | null
1488
+ /**
1489
+ * Omit specific fields from the ProjectSpace
1490
+ */
1491
+ omit?: Prisma.ProjectSpaceOmit<ExtArgs> | null
1492
+ /**
1493
+ * Choose, which related nodes to fetch as well
1494
+ */
1495
+ include?: Prisma.ProjectSpaceInclude<ExtArgs> | null
1496
+ /**
1497
+ * Filter which ProjectSpace to delete.
1498
+ */
1499
+ where: Prisma.ProjectSpaceWhereUniqueInput
1500
+ }
1501
+
1502
+ /**
1503
+ * ProjectSpace deleteMany
1504
+ */
1505
+ export type ProjectSpaceDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1506
+ /**
1507
+ * Filter which ProjectSpaces to delete
1508
+ */
1509
+ where?: Prisma.ProjectSpaceWhereInput
1510
+ /**
1511
+ * Limit how many ProjectSpaces to delete.
1512
+ */
1513
+ limit?: number
1514
+ }
1515
+
1516
+ /**
1517
+ * ProjectSpace.projects
1518
+ */
1519
+ export type ProjectSpace$projectsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1520
+ /**
1521
+ * Select specific fields to fetch from the Project
1522
+ */
1523
+ select?: Prisma.ProjectSelect<ExtArgs> | null
1524
+ /**
1525
+ * Omit specific fields from the Project
1526
+ */
1527
+ omit?: Prisma.ProjectOmit<ExtArgs> | null
1528
+ /**
1529
+ * Choose, which related nodes to fetch as well
1530
+ */
1531
+ include?: Prisma.ProjectInclude<ExtArgs> | null
1532
+ where?: Prisma.ProjectWhereInput
1533
+ orderBy?: Prisma.ProjectOrderByWithRelationInput | Prisma.ProjectOrderByWithRelationInput[]
1534
+ cursor?: Prisma.ProjectWhereUniqueInput
1535
+ take?: number
1536
+ skip?: number
1537
+ distinct?: Prisma.ProjectScalarFieldEnum | Prisma.ProjectScalarFieldEnum[]
1538
+ }
1539
+
1540
+ /**
1541
+ * ProjectSpace.parent
1542
+ */
1543
+ export type ProjectSpace$parentArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1544
+ /**
1545
+ * Select specific fields to fetch from the ProjectSpace
1546
+ */
1547
+ select?: Prisma.ProjectSpaceSelect<ExtArgs> | null
1548
+ /**
1549
+ * Omit specific fields from the ProjectSpace
1550
+ */
1551
+ omit?: Prisma.ProjectSpaceOmit<ExtArgs> | null
1552
+ /**
1553
+ * Choose, which related nodes to fetch as well
1554
+ */
1555
+ include?: Prisma.ProjectSpaceInclude<ExtArgs> | null
1556
+ where?: Prisma.ProjectSpaceWhereInput
1557
+ }
1558
+
1559
+ /**
1560
+ * ProjectSpace.children
1561
+ */
1562
+ export type ProjectSpace$childrenArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1563
+ /**
1564
+ * Select specific fields to fetch from the ProjectSpace
1565
+ */
1566
+ select?: Prisma.ProjectSpaceSelect<ExtArgs> | null
1567
+ /**
1568
+ * Omit specific fields from the ProjectSpace
1569
+ */
1570
+ omit?: Prisma.ProjectSpaceOmit<ExtArgs> | null
1571
+ /**
1572
+ * Choose, which related nodes to fetch as well
1573
+ */
1574
+ include?: Prisma.ProjectSpaceInclude<ExtArgs> | null
1575
+ where?: Prisma.ProjectSpaceWhereInput
1576
+ orderBy?: Prisma.ProjectSpaceOrderByWithRelationInput | Prisma.ProjectSpaceOrderByWithRelationInput[]
1577
+ cursor?: Prisma.ProjectSpaceWhereUniqueInput
1578
+ take?: number
1579
+ skip?: number
1580
+ distinct?: Prisma.ProjectSpaceScalarFieldEnum | Prisma.ProjectSpaceScalarFieldEnum[]
1581
+ }
1582
+
1583
+ /**
1584
+ * ProjectSpace without action
1585
+ */
1586
+ export type ProjectSpaceDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1587
+ /**
1588
+ * Select specific fields to fetch from the ProjectSpace
1589
+ */
1590
+ select?: Prisma.ProjectSpaceSelect<ExtArgs> | null
1591
+ /**
1592
+ * Omit specific fields from the ProjectSpace
1593
+ */
1594
+ omit?: Prisma.ProjectSpaceOmit<ExtArgs> | null
1595
+ /**
1596
+ * Choose, which related nodes to fetch as well
1597
+ */
1598
+ include?: Prisma.ProjectSpaceInclude<ExtArgs> | null
1599
+ }