@highstate/backend 0.9.18 → 0.9.20

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-OU5OQBLB.js → chunk-I7BWSAN6.js} +3 -28
  2. package/dist/{chunk-OU5OQBLB.js.map → chunk-I7BWSAN6.js.map} +1 -1
  3. package/dist/chunk-RC6Q3XQQ.js +1547 -0
  4. package/dist/chunk-RC6Q3XQQ.js.map +1 -0
  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 +7590 -7289
  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 +32 -0
  32. package/prisma/project/artifact.prisma +52 -0
  33. package/prisma/project/custom-status.prisma +46 -0
  34. package/prisma/project/evaluation.prisma +45 -0
  35. package/prisma/project/instance.prisma +157 -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 +49 -0
  72. package/prisma/project/secret.prisma +54 -0
  73. package/prisma/project/service-account.prisma +42 -0
  74. package/prisma/project/terminal.prisma +107 -0
  75. package/prisma/project/trigger.prisma +37 -0
  76. package/prisma/project/unlock-method.prisma +46 -0
  77. package/prisma/project/worker.prisma +169 -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 +469 -130
  97. package/src/business/secret.ts +177 -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 +440 -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 +40 -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 +74 -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 +235 -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 +9 -2
  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,1707 @@
1
+
2
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+ /**
6
+ * This file exports the `InstanceOperationState` 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 InstanceOperationState
18
+ *
19
+ */
20
+ export type InstanceOperationStateModel = runtime.Types.Result.DefaultSelection<Prisma.$InstanceOperationStatePayload>
21
+
22
+ export type AggregateInstanceOperationState = {
23
+ _count: InstanceOperationStateCountAggregateOutputType | null
24
+ _avg: InstanceOperationStateAvgAggregateOutputType | null
25
+ _sum: InstanceOperationStateSumAggregateOutputType | null
26
+ _min: InstanceOperationStateMinAggregateOutputType | null
27
+ _max: InstanceOperationStateMaxAggregateOutputType | null
28
+ }
29
+
30
+ export type InstanceOperationStateAvgAggregateOutputType = {
31
+ currentResourceCount: number | null
32
+ totalResourceCount: number | null
33
+ }
34
+
35
+ export type InstanceOperationStateSumAggregateOutputType = {
36
+ currentResourceCount: number | null
37
+ totalResourceCount: number | null
38
+ }
39
+
40
+ export type InstanceOperationStateMinAggregateOutputType = {
41
+ operationId: string | null
42
+ stateId: string | null
43
+ status: $Enums.InstanceOperationStatus | null
44
+ currentResourceCount: number | null
45
+ totalResourceCount: number | null
46
+ startedAt: Date | null
47
+ finishedAt: Date | null
48
+ }
49
+
50
+ export type InstanceOperationStateMaxAggregateOutputType = {
51
+ operationId: string | null
52
+ stateId: string | null
53
+ status: $Enums.InstanceOperationStatus | null
54
+ currentResourceCount: number | null
55
+ totalResourceCount: number | null
56
+ startedAt: Date | null
57
+ finishedAt: Date | null
58
+ }
59
+
60
+ export type InstanceOperationStateCountAggregateOutputType = {
61
+ operationId: number
62
+ stateId: number
63
+ status: number
64
+ currentResourceCount: number
65
+ totalResourceCount: number
66
+ model: number
67
+ resolvedInputs: number
68
+ startedAt: number
69
+ finishedAt: number
70
+ _all: number
71
+ }
72
+
73
+
74
+ export type InstanceOperationStateAvgAggregateInputType = {
75
+ currentResourceCount?: true
76
+ totalResourceCount?: true
77
+ }
78
+
79
+ export type InstanceOperationStateSumAggregateInputType = {
80
+ currentResourceCount?: true
81
+ totalResourceCount?: true
82
+ }
83
+
84
+ export type InstanceOperationStateMinAggregateInputType = {
85
+ operationId?: true
86
+ stateId?: true
87
+ status?: true
88
+ currentResourceCount?: true
89
+ totalResourceCount?: true
90
+ startedAt?: true
91
+ finishedAt?: true
92
+ }
93
+
94
+ export type InstanceOperationStateMaxAggregateInputType = {
95
+ operationId?: true
96
+ stateId?: true
97
+ status?: true
98
+ currentResourceCount?: true
99
+ totalResourceCount?: true
100
+ startedAt?: true
101
+ finishedAt?: true
102
+ }
103
+
104
+ export type InstanceOperationStateCountAggregateInputType = {
105
+ operationId?: true
106
+ stateId?: true
107
+ status?: true
108
+ currentResourceCount?: true
109
+ totalResourceCount?: true
110
+ model?: true
111
+ resolvedInputs?: true
112
+ startedAt?: true
113
+ finishedAt?: true
114
+ _all?: true
115
+ }
116
+
117
+ export type InstanceOperationStateAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
118
+ /**
119
+ * Filter which InstanceOperationState to aggregate.
120
+ */
121
+ where?: Prisma.InstanceOperationStateWhereInput
122
+ /**
123
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
124
+ *
125
+ * Determine the order of InstanceOperationStates to fetch.
126
+ */
127
+ orderBy?: Prisma.InstanceOperationStateOrderByWithRelationInput | Prisma.InstanceOperationStateOrderByWithRelationInput[]
128
+ /**
129
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
130
+ *
131
+ * Sets the start position
132
+ */
133
+ cursor?: Prisma.InstanceOperationStateWhereUniqueInput
134
+ /**
135
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
136
+ *
137
+ * Take `±n` InstanceOperationStates from the position of the cursor.
138
+ */
139
+ take?: number
140
+ /**
141
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
142
+ *
143
+ * Skip the first `n` InstanceOperationStates.
144
+ */
145
+ skip?: number
146
+ /**
147
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
148
+ *
149
+ * Count returned InstanceOperationStates
150
+ **/
151
+ _count?: true | InstanceOperationStateCountAggregateInputType
152
+ /**
153
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
154
+ *
155
+ * Select which fields to average
156
+ **/
157
+ _avg?: InstanceOperationStateAvgAggregateInputType
158
+ /**
159
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
160
+ *
161
+ * Select which fields to sum
162
+ **/
163
+ _sum?: InstanceOperationStateSumAggregateInputType
164
+ /**
165
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
166
+ *
167
+ * Select which fields to find the minimum value
168
+ **/
169
+ _min?: InstanceOperationStateMinAggregateInputType
170
+ /**
171
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
172
+ *
173
+ * Select which fields to find the maximum value
174
+ **/
175
+ _max?: InstanceOperationStateMaxAggregateInputType
176
+ }
177
+
178
+ export type GetInstanceOperationStateAggregateType<T extends InstanceOperationStateAggregateArgs> = {
179
+ [P in keyof T & keyof AggregateInstanceOperationState]: P extends '_count' | 'count'
180
+ ? T[P] extends true
181
+ ? number
182
+ : Prisma.GetScalarType<T[P], AggregateInstanceOperationState[P]>
183
+ : Prisma.GetScalarType<T[P], AggregateInstanceOperationState[P]>
184
+ }
185
+
186
+
187
+
188
+
189
+ export type InstanceOperationStateGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
190
+ where?: Prisma.InstanceOperationStateWhereInput
191
+ orderBy?: Prisma.InstanceOperationStateOrderByWithAggregationInput | Prisma.InstanceOperationStateOrderByWithAggregationInput[]
192
+ by: Prisma.InstanceOperationStateScalarFieldEnum[] | Prisma.InstanceOperationStateScalarFieldEnum
193
+ having?: Prisma.InstanceOperationStateScalarWhereWithAggregatesInput
194
+ take?: number
195
+ skip?: number
196
+ _count?: InstanceOperationStateCountAggregateInputType | true
197
+ _avg?: InstanceOperationStateAvgAggregateInputType
198
+ _sum?: InstanceOperationStateSumAggregateInputType
199
+ _min?: InstanceOperationStateMinAggregateInputType
200
+ _max?: InstanceOperationStateMaxAggregateInputType
201
+ }
202
+
203
+ export type InstanceOperationStateGroupByOutputType = {
204
+ operationId: string
205
+ stateId: string
206
+ status: $Enums.InstanceOperationStatus
207
+ currentResourceCount: number | null
208
+ totalResourceCount: number | null
209
+ model: PrismaJson.InstanceModel
210
+ resolvedInputs: PrismaJson.InstanceResolvedInputs
211
+ startedAt: Date | null
212
+ finishedAt: Date | null
213
+ _count: InstanceOperationStateCountAggregateOutputType | null
214
+ _avg: InstanceOperationStateAvgAggregateOutputType | null
215
+ _sum: InstanceOperationStateSumAggregateOutputType | null
216
+ _min: InstanceOperationStateMinAggregateOutputType | null
217
+ _max: InstanceOperationStateMaxAggregateOutputType | null
218
+ }
219
+
220
+ type GetInstanceOperationStateGroupByPayload<T extends InstanceOperationStateGroupByArgs> = Prisma.PrismaPromise<
221
+ Array<
222
+ Prisma.PickEnumerable<InstanceOperationStateGroupByOutputType, T['by']> &
223
+ {
224
+ [P in ((keyof T) & (keyof InstanceOperationStateGroupByOutputType))]: P extends '_count'
225
+ ? T[P] extends boolean
226
+ ? number
227
+ : Prisma.GetScalarType<T[P], InstanceOperationStateGroupByOutputType[P]>
228
+ : Prisma.GetScalarType<T[P], InstanceOperationStateGroupByOutputType[P]>
229
+ }
230
+ >
231
+ >
232
+
233
+
234
+
235
+ export type InstanceOperationStateWhereInput = {
236
+ AND?: Prisma.InstanceOperationStateWhereInput | Prisma.InstanceOperationStateWhereInput[]
237
+ OR?: Prisma.InstanceOperationStateWhereInput[]
238
+ NOT?: Prisma.InstanceOperationStateWhereInput | Prisma.InstanceOperationStateWhereInput[]
239
+ operationId?: Prisma.StringFilter<"InstanceOperationState"> | string
240
+ stateId?: Prisma.StringFilter<"InstanceOperationState"> | string
241
+ status?: Prisma.EnumInstanceOperationStatusFilter<"InstanceOperationState"> | $Enums.InstanceOperationStatus
242
+ currentResourceCount?: Prisma.IntNullableFilter<"InstanceOperationState"> | number | null
243
+ totalResourceCount?: Prisma.IntNullableFilter<"InstanceOperationState"> | number | null
244
+ model?: Prisma.JsonFilter<"InstanceOperationState">
245
+ resolvedInputs?: Prisma.JsonFilter<"InstanceOperationState">
246
+ startedAt?: Prisma.DateTimeNullableFilter<"InstanceOperationState"> | Date | string | null
247
+ finishedAt?: Prisma.DateTimeNullableFilter<"InstanceOperationState"> | Date | string | null
248
+ operation?: Prisma.XOR<Prisma.OperationScalarRelationFilter, Prisma.OperationWhereInput>
249
+ state?: Prisma.XOR<Prisma.InstanceStateScalarRelationFilter, Prisma.InstanceStateWhereInput>
250
+ }
251
+
252
+ export type InstanceOperationStateOrderByWithRelationInput = {
253
+ operationId?: Prisma.SortOrder
254
+ stateId?: Prisma.SortOrder
255
+ status?: Prisma.SortOrder
256
+ currentResourceCount?: Prisma.SortOrderInput | Prisma.SortOrder
257
+ totalResourceCount?: Prisma.SortOrderInput | Prisma.SortOrder
258
+ model?: Prisma.SortOrder
259
+ resolvedInputs?: Prisma.SortOrder
260
+ startedAt?: Prisma.SortOrderInput | Prisma.SortOrder
261
+ finishedAt?: Prisma.SortOrderInput | Prisma.SortOrder
262
+ operation?: Prisma.OperationOrderByWithRelationInput
263
+ state?: Prisma.InstanceStateOrderByWithRelationInput
264
+ }
265
+
266
+ export type InstanceOperationStateWhereUniqueInput = Prisma.AtLeast<{
267
+ operationId_stateId?: Prisma.InstanceOperationStateOperationIdStateIdCompoundUniqueInput
268
+ AND?: Prisma.InstanceOperationStateWhereInput | Prisma.InstanceOperationStateWhereInput[]
269
+ OR?: Prisma.InstanceOperationStateWhereInput[]
270
+ NOT?: Prisma.InstanceOperationStateWhereInput | Prisma.InstanceOperationStateWhereInput[]
271
+ operationId?: Prisma.StringFilter<"InstanceOperationState"> | string
272
+ stateId?: Prisma.StringFilter<"InstanceOperationState"> | string
273
+ status?: Prisma.EnumInstanceOperationStatusFilter<"InstanceOperationState"> | $Enums.InstanceOperationStatus
274
+ currentResourceCount?: Prisma.IntNullableFilter<"InstanceOperationState"> | number | null
275
+ totalResourceCount?: Prisma.IntNullableFilter<"InstanceOperationState"> | number | null
276
+ model?: Prisma.JsonFilter<"InstanceOperationState">
277
+ resolvedInputs?: Prisma.JsonFilter<"InstanceOperationState">
278
+ startedAt?: Prisma.DateTimeNullableFilter<"InstanceOperationState"> | Date | string | null
279
+ finishedAt?: Prisma.DateTimeNullableFilter<"InstanceOperationState"> | Date | string | null
280
+ operation?: Prisma.XOR<Prisma.OperationScalarRelationFilter, Prisma.OperationWhereInput>
281
+ state?: Prisma.XOR<Prisma.InstanceStateScalarRelationFilter, Prisma.InstanceStateWhereInput>
282
+ }, "operationId_stateId">
283
+
284
+ export type InstanceOperationStateOrderByWithAggregationInput = {
285
+ operationId?: Prisma.SortOrder
286
+ stateId?: Prisma.SortOrder
287
+ status?: Prisma.SortOrder
288
+ currentResourceCount?: Prisma.SortOrderInput | Prisma.SortOrder
289
+ totalResourceCount?: Prisma.SortOrderInput | Prisma.SortOrder
290
+ model?: Prisma.SortOrder
291
+ resolvedInputs?: Prisma.SortOrder
292
+ startedAt?: Prisma.SortOrderInput | Prisma.SortOrder
293
+ finishedAt?: Prisma.SortOrderInput | Prisma.SortOrder
294
+ _count?: Prisma.InstanceOperationStateCountOrderByAggregateInput
295
+ _avg?: Prisma.InstanceOperationStateAvgOrderByAggregateInput
296
+ _max?: Prisma.InstanceOperationStateMaxOrderByAggregateInput
297
+ _min?: Prisma.InstanceOperationStateMinOrderByAggregateInput
298
+ _sum?: Prisma.InstanceOperationStateSumOrderByAggregateInput
299
+ }
300
+
301
+ export type InstanceOperationStateScalarWhereWithAggregatesInput = {
302
+ AND?: Prisma.InstanceOperationStateScalarWhereWithAggregatesInput | Prisma.InstanceOperationStateScalarWhereWithAggregatesInput[]
303
+ OR?: Prisma.InstanceOperationStateScalarWhereWithAggregatesInput[]
304
+ NOT?: Prisma.InstanceOperationStateScalarWhereWithAggregatesInput | Prisma.InstanceOperationStateScalarWhereWithAggregatesInput[]
305
+ operationId?: Prisma.StringWithAggregatesFilter<"InstanceOperationState"> | string
306
+ stateId?: Prisma.StringWithAggregatesFilter<"InstanceOperationState"> | string
307
+ status?: Prisma.EnumInstanceOperationStatusWithAggregatesFilter<"InstanceOperationState"> | $Enums.InstanceOperationStatus
308
+ currentResourceCount?: Prisma.IntNullableWithAggregatesFilter<"InstanceOperationState"> | number | null
309
+ totalResourceCount?: Prisma.IntNullableWithAggregatesFilter<"InstanceOperationState"> | number | null
310
+ model?: Prisma.JsonWithAggregatesFilter<"InstanceOperationState">
311
+ resolvedInputs?: Prisma.JsonWithAggregatesFilter<"InstanceOperationState">
312
+ startedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"InstanceOperationState"> | Date | string | null
313
+ finishedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"InstanceOperationState"> | Date | string | null
314
+ }
315
+
316
+ export type InstanceOperationStateCreateInput = {
317
+ status: $Enums.InstanceOperationStatus
318
+ currentResourceCount?: number | null
319
+ totalResourceCount?: number | null
320
+ model: PrismaJson.InstanceModel
321
+ resolvedInputs: PrismaJson.InstanceResolvedInputs
322
+ startedAt?: Date | string | null
323
+ finishedAt?: Date | string | null
324
+ operation: Prisma.OperationCreateNestedOneWithoutOperationStatesInput
325
+ state: Prisma.InstanceStateCreateNestedOneWithoutOperationStatesInput
326
+ }
327
+
328
+ export type InstanceOperationStateUncheckedCreateInput = {
329
+ operationId: string
330
+ stateId: string
331
+ status: $Enums.InstanceOperationStatus
332
+ currentResourceCount?: number | null
333
+ totalResourceCount?: number | null
334
+ model: PrismaJson.InstanceModel
335
+ resolvedInputs: PrismaJson.InstanceResolvedInputs
336
+ startedAt?: Date | string | null
337
+ finishedAt?: Date | string | null
338
+ }
339
+
340
+ export type InstanceOperationStateUpdateInput = {
341
+ status?: Prisma.EnumInstanceOperationStatusFieldUpdateOperationsInput | $Enums.InstanceOperationStatus
342
+ currentResourceCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
343
+ totalResourceCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
344
+ model?: PrismaJson.InstanceModel
345
+ resolvedInputs?: PrismaJson.InstanceResolvedInputs
346
+ startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
347
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
348
+ operation?: Prisma.OperationUpdateOneRequiredWithoutOperationStatesNestedInput
349
+ state?: Prisma.InstanceStateUpdateOneRequiredWithoutOperationStatesNestedInput
350
+ }
351
+
352
+ export type InstanceOperationStateUncheckedUpdateInput = {
353
+ operationId?: Prisma.StringFieldUpdateOperationsInput | string
354
+ stateId?: Prisma.StringFieldUpdateOperationsInput | string
355
+ status?: Prisma.EnumInstanceOperationStatusFieldUpdateOperationsInput | $Enums.InstanceOperationStatus
356
+ currentResourceCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
357
+ totalResourceCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
358
+ model?: PrismaJson.InstanceModel
359
+ resolvedInputs?: PrismaJson.InstanceResolvedInputs
360
+ startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
361
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
362
+ }
363
+
364
+ export type InstanceOperationStateCreateManyInput = {
365
+ operationId: string
366
+ stateId: string
367
+ status: $Enums.InstanceOperationStatus
368
+ currentResourceCount?: number | null
369
+ totalResourceCount?: number | null
370
+ model: PrismaJson.InstanceModel
371
+ resolvedInputs: PrismaJson.InstanceResolvedInputs
372
+ startedAt?: Date | string | null
373
+ finishedAt?: Date | string | null
374
+ }
375
+
376
+ export type InstanceOperationStateUpdateManyMutationInput = {
377
+ status?: Prisma.EnumInstanceOperationStatusFieldUpdateOperationsInput | $Enums.InstanceOperationStatus
378
+ currentResourceCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
379
+ totalResourceCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
380
+ model?: PrismaJson.InstanceModel
381
+ resolvedInputs?: PrismaJson.InstanceResolvedInputs
382
+ startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
383
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
384
+ }
385
+
386
+ export type InstanceOperationStateUncheckedUpdateManyInput = {
387
+ operationId?: Prisma.StringFieldUpdateOperationsInput | string
388
+ stateId?: Prisma.StringFieldUpdateOperationsInput | string
389
+ status?: Prisma.EnumInstanceOperationStatusFieldUpdateOperationsInput | $Enums.InstanceOperationStatus
390
+ currentResourceCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
391
+ totalResourceCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
392
+ model?: PrismaJson.InstanceModel
393
+ resolvedInputs?: PrismaJson.InstanceResolvedInputs
394
+ startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
395
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
396
+ }
397
+
398
+ export type InstanceOperationStateListRelationFilter = {
399
+ every?: Prisma.InstanceOperationStateWhereInput
400
+ some?: Prisma.InstanceOperationStateWhereInput
401
+ none?: Prisma.InstanceOperationStateWhereInput
402
+ }
403
+
404
+ export type InstanceOperationStateOrderByRelationAggregateInput = {
405
+ _count?: Prisma.SortOrder
406
+ }
407
+
408
+ export type InstanceOperationStateOperationIdStateIdCompoundUniqueInput = {
409
+ operationId: string
410
+ stateId: string
411
+ }
412
+
413
+ export type InstanceOperationStateCountOrderByAggregateInput = {
414
+ operationId?: Prisma.SortOrder
415
+ stateId?: Prisma.SortOrder
416
+ status?: Prisma.SortOrder
417
+ currentResourceCount?: Prisma.SortOrder
418
+ totalResourceCount?: Prisma.SortOrder
419
+ model?: Prisma.SortOrder
420
+ resolvedInputs?: Prisma.SortOrder
421
+ startedAt?: Prisma.SortOrder
422
+ finishedAt?: Prisma.SortOrder
423
+ }
424
+
425
+ export type InstanceOperationStateAvgOrderByAggregateInput = {
426
+ currentResourceCount?: Prisma.SortOrder
427
+ totalResourceCount?: Prisma.SortOrder
428
+ }
429
+
430
+ export type InstanceOperationStateMaxOrderByAggregateInput = {
431
+ operationId?: Prisma.SortOrder
432
+ stateId?: Prisma.SortOrder
433
+ status?: Prisma.SortOrder
434
+ currentResourceCount?: Prisma.SortOrder
435
+ totalResourceCount?: Prisma.SortOrder
436
+ startedAt?: Prisma.SortOrder
437
+ finishedAt?: Prisma.SortOrder
438
+ }
439
+
440
+ export type InstanceOperationStateMinOrderByAggregateInput = {
441
+ operationId?: Prisma.SortOrder
442
+ stateId?: Prisma.SortOrder
443
+ status?: Prisma.SortOrder
444
+ currentResourceCount?: Prisma.SortOrder
445
+ totalResourceCount?: Prisma.SortOrder
446
+ startedAt?: Prisma.SortOrder
447
+ finishedAt?: Prisma.SortOrder
448
+ }
449
+
450
+ export type InstanceOperationStateSumOrderByAggregateInput = {
451
+ currentResourceCount?: Prisma.SortOrder
452
+ totalResourceCount?: Prisma.SortOrder
453
+ }
454
+
455
+ export type InstanceOperationStateCreateNestedManyWithoutStateInput = {
456
+ create?: Prisma.XOR<Prisma.InstanceOperationStateCreateWithoutStateInput, Prisma.InstanceOperationStateUncheckedCreateWithoutStateInput> | Prisma.InstanceOperationStateCreateWithoutStateInput[] | Prisma.InstanceOperationStateUncheckedCreateWithoutStateInput[]
457
+ connectOrCreate?: Prisma.InstanceOperationStateCreateOrConnectWithoutStateInput | Prisma.InstanceOperationStateCreateOrConnectWithoutStateInput[]
458
+ createMany?: Prisma.InstanceOperationStateCreateManyStateInputEnvelope
459
+ connect?: Prisma.InstanceOperationStateWhereUniqueInput | Prisma.InstanceOperationStateWhereUniqueInput[]
460
+ }
461
+
462
+ export type InstanceOperationStateUncheckedCreateNestedManyWithoutStateInput = {
463
+ create?: Prisma.XOR<Prisma.InstanceOperationStateCreateWithoutStateInput, Prisma.InstanceOperationStateUncheckedCreateWithoutStateInput> | Prisma.InstanceOperationStateCreateWithoutStateInput[] | Prisma.InstanceOperationStateUncheckedCreateWithoutStateInput[]
464
+ connectOrCreate?: Prisma.InstanceOperationStateCreateOrConnectWithoutStateInput | Prisma.InstanceOperationStateCreateOrConnectWithoutStateInput[]
465
+ createMany?: Prisma.InstanceOperationStateCreateManyStateInputEnvelope
466
+ connect?: Prisma.InstanceOperationStateWhereUniqueInput | Prisma.InstanceOperationStateWhereUniqueInput[]
467
+ }
468
+
469
+ export type InstanceOperationStateUpdateManyWithoutStateNestedInput = {
470
+ create?: Prisma.XOR<Prisma.InstanceOperationStateCreateWithoutStateInput, Prisma.InstanceOperationStateUncheckedCreateWithoutStateInput> | Prisma.InstanceOperationStateCreateWithoutStateInput[] | Prisma.InstanceOperationStateUncheckedCreateWithoutStateInput[]
471
+ connectOrCreate?: Prisma.InstanceOperationStateCreateOrConnectWithoutStateInput | Prisma.InstanceOperationStateCreateOrConnectWithoutStateInput[]
472
+ upsert?: Prisma.InstanceOperationStateUpsertWithWhereUniqueWithoutStateInput | Prisma.InstanceOperationStateUpsertWithWhereUniqueWithoutStateInput[]
473
+ createMany?: Prisma.InstanceOperationStateCreateManyStateInputEnvelope
474
+ set?: Prisma.InstanceOperationStateWhereUniqueInput | Prisma.InstanceOperationStateWhereUniqueInput[]
475
+ disconnect?: Prisma.InstanceOperationStateWhereUniqueInput | Prisma.InstanceOperationStateWhereUniqueInput[]
476
+ delete?: Prisma.InstanceOperationStateWhereUniqueInput | Prisma.InstanceOperationStateWhereUniqueInput[]
477
+ connect?: Prisma.InstanceOperationStateWhereUniqueInput | Prisma.InstanceOperationStateWhereUniqueInput[]
478
+ update?: Prisma.InstanceOperationStateUpdateWithWhereUniqueWithoutStateInput | Prisma.InstanceOperationStateUpdateWithWhereUniqueWithoutStateInput[]
479
+ updateMany?: Prisma.InstanceOperationStateUpdateManyWithWhereWithoutStateInput | Prisma.InstanceOperationStateUpdateManyWithWhereWithoutStateInput[]
480
+ deleteMany?: Prisma.InstanceOperationStateScalarWhereInput | Prisma.InstanceOperationStateScalarWhereInput[]
481
+ }
482
+
483
+ export type InstanceOperationStateUncheckedUpdateManyWithoutStateNestedInput = {
484
+ create?: Prisma.XOR<Prisma.InstanceOperationStateCreateWithoutStateInput, Prisma.InstanceOperationStateUncheckedCreateWithoutStateInput> | Prisma.InstanceOperationStateCreateWithoutStateInput[] | Prisma.InstanceOperationStateUncheckedCreateWithoutStateInput[]
485
+ connectOrCreate?: Prisma.InstanceOperationStateCreateOrConnectWithoutStateInput | Prisma.InstanceOperationStateCreateOrConnectWithoutStateInput[]
486
+ upsert?: Prisma.InstanceOperationStateUpsertWithWhereUniqueWithoutStateInput | Prisma.InstanceOperationStateUpsertWithWhereUniqueWithoutStateInput[]
487
+ createMany?: Prisma.InstanceOperationStateCreateManyStateInputEnvelope
488
+ set?: Prisma.InstanceOperationStateWhereUniqueInput | Prisma.InstanceOperationStateWhereUniqueInput[]
489
+ disconnect?: Prisma.InstanceOperationStateWhereUniqueInput | Prisma.InstanceOperationStateWhereUniqueInput[]
490
+ delete?: Prisma.InstanceOperationStateWhereUniqueInput | Prisma.InstanceOperationStateWhereUniqueInput[]
491
+ connect?: Prisma.InstanceOperationStateWhereUniqueInput | Prisma.InstanceOperationStateWhereUniqueInput[]
492
+ update?: Prisma.InstanceOperationStateUpdateWithWhereUniqueWithoutStateInput | Prisma.InstanceOperationStateUpdateWithWhereUniqueWithoutStateInput[]
493
+ updateMany?: Prisma.InstanceOperationStateUpdateManyWithWhereWithoutStateInput | Prisma.InstanceOperationStateUpdateManyWithWhereWithoutStateInput[]
494
+ deleteMany?: Prisma.InstanceOperationStateScalarWhereInput | Prisma.InstanceOperationStateScalarWhereInput[]
495
+ }
496
+
497
+ export type InstanceOperationStateCreateNestedManyWithoutOperationInput = {
498
+ create?: Prisma.XOR<Prisma.InstanceOperationStateCreateWithoutOperationInput, Prisma.InstanceOperationStateUncheckedCreateWithoutOperationInput> | Prisma.InstanceOperationStateCreateWithoutOperationInput[] | Prisma.InstanceOperationStateUncheckedCreateWithoutOperationInput[]
499
+ connectOrCreate?: Prisma.InstanceOperationStateCreateOrConnectWithoutOperationInput | Prisma.InstanceOperationStateCreateOrConnectWithoutOperationInput[]
500
+ createMany?: Prisma.InstanceOperationStateCreateManyOperationInputEnvelope
501
+ connect?: Prisma.InstanceOperationStateWhereUniqueInput | Prisma.InstanceOperationStateWhereUniqueInput[]
502
+ }
503
+
504
+ export type InstanceOperationStateUncheckedCreateNestedManyWithoutOperationInput = {
505
+ create?: Prisma.XOR<Prisma.InstanceOperationStateCreateWithoutOperationInput, Prisma.InstanceOperationStateUncheckedCreateWithoutOperationInput> | Prisma.InstanceOperationStateCreateWithoutOperationInput[] | Prisma.InstanceOperationStateUncheckedCreateWithoutOperationInput[]
506
+ connectOrCreate?: Prisma.InstanceOperationStateCreateOrConnectWithoutOperationInput | Prisma.InstanceOperationStateCreateOrConnectWithoutOperationInput[]
507
+ createMany?: Prisma.InstanceOperationStateCreateManyOperationInputEnvelope
508
+ connect?: Prisma.InstanceOperationStateWhereUniqueInput | Prisma.InstanceOperationStateWhereUniqueInput[]
509
+ }
510
+
511
+ export type InstanceOperationStateUpdateManyWithoutOperationNestedInput = {
512
+ create?: Prisma.XOR<Prisma.InstanceOperationStateCreateWithoutOperationInput, Prisma.InstanceOperationStateUncheckedCreateWithoutOperationInput> | Prisma.InstanceOperationStateCreateWithoutOperationInput[] | Prisma.InstanceOperationStateUncheckedCreateWithoutOperationInput[]
513
+ connectOrCreate?: Prisma.InstanceOperationStateCreateOrConnectWithoutOperationInput | Prisma.InstanceOperationStateCreateOrConnectWithoutOperationInput[]
514
+ upsert?: Prisma.InstanceOperationStateUpsertWithWhereUniqueWithoutOperationInput | Prisma.InstanceOperationStateUpsertWithWhereUniqueWithoutOperationInput[]
515
+ createMany?: Prisma.InstanceOperationStateCreateManyOperationInputEnvelope
516
+ set?: Prisma.InstanceOperationStateWhereUniqueInput | Prisma.InstanceOperationStateWhereUniqueInput[]
517
+ disconnect?: Prisma.InstanceOperationStateWhereUniqueInput | Prisma.InstanceOperationStateWhereUniqueInput[]
518
+ delete?: Prisma.InstanceOperationStateWhereUniqueInput | Prisma.InstanceOperationStateWhereUniqueInput[]
519
+ connect?: Prisma.InstanceOperationStateWhereUniqueInput | Prisma.InstanceOperationStateWhereUniqueInput[]
520
+ update?: Prisma.InstanceOperationStateUpdateWithWhereUniqueWithoutOperationInput | Prisma.InstanceOperationStateUpdateWithWhereUniqueWithoutOperationInput[]
521
+ updateMany?: Prisma.InstanceOperationStateUpdateManyWithWhereWithoutOperationInput | Prisma.InstanceOperationStateUpdateManyWithWhereWithoutOperationInput[]
522
+ deleteMany?: Prisma.InstanceOperationStateScalarWhereInput | Prisma.InstanceOperationStateScalarWhereInput[]
523
+ }
524
+
525
+ export type InstanceOperationStateUncheckedUpdateManyWithoutOperationNestedInput = {
526
+ create?: Prisma.XOR<Prisma.InstanceOperationStateCreateWithoutOperationInput, Prisma.InstanceOperationStateUncheckedCreateWithoutOperationInput> | Prisma.InstanceOperationStateCreateWithoutOperationInput[] | Prisma.InstanceOperationStateUncheckedCreateWithoutOperationInput[]
527
+ connectOrCreate?: Prisma.InstanceOperationStateCreateOrConnectWithoutOperationInput | Prisma.InstanceOperationStateCreateOrConnectWithoutOperationInput[]
528
+ upsert?: Prisma.InstanceOperationStateUpsertWithWhereUniqueWithoutOperationInput | Prisma.InstanceOperationStateUpsertWithWhereUniqueWithoutOperationInput[]
529
+ createMany?: Prisma.InstanceOperationStateCreateManyOperationInputEnvelope
530
+ set?: Prisma.InstanceOperationStateWhereUniqueInput | Prisma.InstanceOperationStateWhereUniqueInput[]
531
+ disconnect?: Prisma.InstanceOperationStateWhereUniqueInput | Prisma.InstanceOperationStateWhereUniqueInput[]
532
+ delete?: Prisma.InstanceOperationStateWhereUniqueInput | Prisma.InstanceOperationStateWhereUniqueInput[]
533
+ connect?: Prisma.InstanceOperationStateWhereUniqueInput | Prisma.InstanceOperationStateWhereUniqueInput[]
534
+ update?: Prisma.InstanceOperationStateUpdateWithWhereUniqueWithoutOperationInput | Prisma.InstanceOperationStateUpdateWithWhereUniqueWithoutOperationInput[]
535
+ updateMany?: Prisma.InstanceOperationStateUpdateManyWithWhereWithoutOperationInput | Prisma.InstanceOperationStateUpdateManyWithWhereWithoutOperationInput[]
536
+ deleteMany?: Prisma.InstanceOperationStateScalarWhereInput | Prisma.InstanceOperationStateScalarWhereInput[]
537
+ }
538
+
539
+ export type EnumInstanceOperationStatusFieldUpdateOperationsInput = {
540
+ set?: $Enums.InstanceOperationStatus
541
+ }
542
+
543
+ export type InstanceOperationStateCreateWithoutStateInput = {
544
+ status: $Enums.InstanceOperationStatus
545
+ currentResourceCount?: number | null
546
+ totalResourceCount?: number | null
547
+ model: PrismaJson.InstanceModel
548
+ resolvedInputs: PrismaJson.InstanceResolvedInputs
549
+ startedAt?: Date | string | null
550
+ finishedAt?: Date | string | null
551
+ operation: Prisma.OperationCreateNestedOneWithoutOperationStatesInput
552
+ }
553
+
554
+ export type InstanceOperationStateUncheckedCreateWithoutStateInput = {
555
+ operationId: string
556
+ status: $Enums.InstanceOperationStatus
557
+ currentResourceCount?: number | null
558
+ totalResourceCount?: number | null
559
+ model: PrismaJson.InstanceModel
560
+ resolvedInputs: PrismaJson.InstanceResolvedInputs
561
+ startedAt?: Date | string | null
562
+ finishedAt?: Date | string | null
563
+ }
564
+
565
+ export type InstanceOperationStateCreateOrConnectWithoutStateInput = {
566
+ where: Prisma.InstanceOperationStateWhereUniqueInput
567
+ create: Prisma.XOR<Prisma.InstanceOperationStateCreateWithoutStateInput, Prisma.InstanceOperationStateUncheckedCreateWithoutStateInput>
568
+ }
569
+
570
+ export type InstanceOperationStateCreateManyStateInputEnvelope = {
571
+ data: Prisma.InstanceOperationStateCreateManyStateInput | Prisma.InstanceOperationStateCreateManyStateInput[]
572
+ }
573
+
574
+ export type InstanceOperationStateUpsertWithWhereUniqueWithoutStateInput = {
575
+ where: Prisma.InstanceOperationStateWhereUniqueInput
576
+ update: Prisma.XOR<Prisma.InstanceOperationStateUpdateWithoutStateInput, Prisma.InstanceOperationStateUncheckedUpdateWithoutStateInput>
577
+ create: Prisma.XOR<Prisma.InstanceOperationStateCreateWithoutStateInput, Prisma.InstanceOperationStateUncheckedCreateWithoutStateInput>
578
+ }
579
+
580
+ export type InstanceOperationStateUpdateWithWhereUniqueWithoutStateInput = {
581
+ where: Prisma.InstanceOperationStateWhereUniqueInput
582
+ data: Prisma.XOR<Prisma.InstanceOperationStateUpdateWithoutStateInput, Prisma.InstanceOperationStateUncheckedUpdateWithoutStateInput>
583
+ }
584
+
585
+ export type InstanceOperationStateUpdateManyWithWhereWithoutStateInput = {
586
+ where: Prisma.InstanceOperationStateScalarWhereInput
587
+ data: Prisma.XOR<Prisma.InstanceOperationStateUpdateManyMutationInput, Prisma.InstanceOperationStateUncheckedUpdateManyWithoutStateInput>
588
+ }
589
+
590
+ export type InstanceOperationStateScalarWhereInput = {
591
+ AND?: Prisma.InstanceOperationStateScalarWhereInput | Prisma.InstanceOperationStateScalarWhereInput[]
592
+ OR?: Prisma.InstanceOperationStateScalarWhereInput[]
593
+ NOT?: Prisma.InstanceOperationStateScalarWhereInput | Prisma.InstanceOperationStateScalarWhereInput[]
594
+ operationId?: Prisma.StringFilter<"InstanceOperationState"> | string
595
+ stateId?: Prisma.StringFilter<"InstanceOperationState"> | string
596
+ status?: Prisma.EnumInstanceOperationStatusFilter<"InstanceOperationState"> | $Enums.InstanceOperationStatus
597
+ currentResourceCount?: Prisma.IntNullableFilter<"InstanceOperationState"> | number | null
598
+ totalResourceCount?: Prisma.IntNullableFilter<"InstanceOperationState"> | number | null
599
+ model?: Prisma.JsonFilter<"InstanceOperationState">
600
+ resolvedInputs?: Prisma.JsonFilter<"InstanceOperationState">
601
+ startedAt?: Prisma.DateTimeNullableFilter<"InstanceOperationState"> | Date | string | null
602
+ finishedAt?: Prisma.DateTimeNullableFilter<"InstanceOperationState"> | Date | string | null
603
+ }
604
+
605
+ export type InstanceOperationStateCreateWithoutOperationInput = {
606
+ status: $Enums.InstanceOperationStatus
607
+ currentResourceCount?: number | null
608
+ totalResourceCount?: number | null
609
+ model: PrismaJson.InstanceModel
610
+ resolvedInputs: PrismaJson.InstanceResolvedInputs
611
+ startedAt?: Date | string | null
612
+ finishedAt?: Date | string | null
613
+ state: Prisma.InstanceStateCreateNestedOneWithoutOperationStatesInput
614
+ }
615
+
616
+ export type InstanceOperationStateUncheckedCreateWithoutOperationInput = {
617
+ stateId: string
618
+ status: $Enums.InstanceOperationStatus
619
+ currentResourceCount?: number | null
620
+ totalResourceCount?: number | null
621
+ model: PrismaJson.InstanceModel
622
+ resolvedInputs: PrismaJson.InstanceResolvedInputs
623
+ startedAt?: Date | string | null
624
+ finishedAt?: Date | string | null
625
+ }
626
+
627
+ export type InstanceOperationStateCreateOrConnectWithoutOperationInput = {
628
+ where: Prisma.InstanceOperationStateWhereUniqueInput
629
+ create: Prisma.XOR<Prisma.InstanceOperationStateCreateWithoutOperationInput, Prisma.InstanceOperationStateUncheckedCreateWithoutOperationInput>
630
+ }
631
+
632
+ export type InstanceOperationStateCreateManyOperationInputEnvelope = {
633
+ data: Prisma.InstanceOperationStateCreateManyOperationInput | Prisma.InstanceOperationStateCreateManyOperationInput[]
634
+ }
635
+
636
+ export type InstanceOperationStateUpsertWithWhereUniqueWithoutOperationInput = {
637
+ where: Prisma.InstanceOperationStateWhereUniqueInput
638
+ update: Prisma.XOR<Prisma.InstanceOperationStateUpdateWithoutOperationInput, Prisma.InstanceOperationStateUncheckedUpdateWithoutOperationInput>
639
+ create: Prisma.XOR<Prisma.InstanceOperationStateCreateWithoutOperationInput, Prisma.InstanceOperationStateUncheckedCreateWithoutOperationInput>
640
+ }
641
+
642
+ export type InstanceOperationStateUpdateWithWhereUniqueWithoutOperationInput = {
643
+ where: Prisma.InstanceOperationStateWhereUniqueInput
644
+ data: Prisma.XOR<Prisma.InstanceOperationStateUpdateWithoutOperationInput, Prisma.InstanceOperationStateUncheckedUpdateWithoutOperationInput>
645
+ }
646
+
647
+ export type InstanceOperationStateUpdateManyWithWhereWithoutOperationInput = {
648
+ where: Prisma.InstanceOperationStateScalarWhereInput
649
+ data: Prisma.XOR<Prisma.InstanceOperationStateUpdateManyMutationInput, Prisma.InstanceOperationStateUncheckedUpdateManyWithoutOperationInput>
650
+ }
651
+
652
+ export type InstanceOperationStateCreateManyStateInput = {
653
+ operationId: string
654
+ status: $Enums.InstanceOperationStatus
655
+ currentResourceCount?: number | null
656
+ totalResourceCount?: number | null
657
+ model: PrismaJson.InstanceModel
658
+ resolvedInputs: PrismaJson.InstanceResolvedInputs
659
+ startedAt?: Date | string | null
660
+ finishedAt?: Date | string | null
661
+ }
662
+
663
+ export type InstanceOperationStateUpdateWithoutStateInput = {
664
+ status?: Prisma.EnumInstanceOperationStatusFieldUpdateOperationsInput | $Enums.InstanceOperationStatus
665
+ currentResourceCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
666
+ totalResourceCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
667
+ model?: PrismaJson.InstanceModel
668
+ resolvedInputs?: PrismaJson.InstanceResolvedInputs
669
+ startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
670
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
671
+ operation?: Prisma.OperationUpdateOneRequiredWithoutOperationStatesNestedInput
672
+ }
673
+
674
+ export type InstanceOperationStateUncheckedUpdateWithoutStateInput = {
675
+ operationId?: Prisma.StringFieldUpdateOperationsInput | string
676
+ status?: Prisma.EnumInstanceOperationStatusFieldUpdateOperationsInput | $Enums.InstanceOperationStatus
677
+ currentResourceCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
678
+ totalResourceCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
679
+ model?: PrismaJson.InstanceModel
680
+ resolvedInputs?: PrismaJson.InstanceResolvedInputs
681
+ startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
682
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
683
+ }
684
+
685
+ export type InstanceOperationStateUncheckedUpdateManyWithoutStateInput = {
686
+ operationId?: Prisma.StringFieldUpdateOperationsInput | string
687
+ status?: Prisma.EnumInstanceOperationStatusFieldUpdateOperationsInput | $Enums.InstanceOperationStatus
688
+ currentResourceCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
689
+ totalResourceCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
690
+ model?: Prisma.JsonNullValueInput | runtime.InputJsonValue
691
+ resolvedInputs?: Prisma.JsonNullValueInput | runtime.InputJsonValue
692
+ startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
693
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
694
+ }
695
+
696
+ export type InstanceOperationStateCreateManyOperationInput = {
697
+ stateId: string
698
+ status: $Enums.InstanceOperationStatus
699
+ currentResourceCount?: number | null
700
+ totalResourceCount?: number | null
701
+ model: PrismaJson.InstanceModel
702
+ resolvedInputs: PrismaJson.InstanceResolvedInputs
703
+ startedAt?: Date | string | null
704
+ finishedAt?: Date | string | null
705
+ }
706
+
707
+ export type InstanceOperationStateUpdateWithoutOperationInput = {
708
+ status?: Prisma.EnumInstanceOperationStatusFieldUpdateOperationsInput | $Enums.InstanceOperationStatus
709
+ currentResourceCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
710
+ totalResourceCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
711
+ model?: PrismaJson.InstanceModel
712
+ resolvedInputs?: PrismaJson.InstanceResolvedInputs
713
+ startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
714
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
715
+ state?: Prisma.InstanceStateUpdateOneRequiredWithoutOperationStatesNestedInput
716
+ }
717
+
718
+ export type InstanceOperationStateUncheckedUpdateWithoutOperationInput = {
719
+ stateId?: Prisma.StringFieldUpdateOperationsInput | string
720
+ status?: Prisma.EnumInstanceOperationStatusFieldUpdateOperationsInput | $Enums.InstanceOperationStatus
721
+ currentResourceCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
722
+ totalResourceCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
723
+ model?: PrismaJson.InstanceModel
724
+ resolvedInputs?: PrismaJson.InstanceResolvedInputs
725
+ startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
726
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
727
+ }
728
+
729
+ export type InstanceOperationStateUncheckedUpdateManyWithoutOperationInput = {
730
+ stateId?: Prisma.StringFieldUpdateOperationsInput | string
731
+ status?: Prisma.EnumInstanceOperationStatusFieldUpdateOperationsInput | $Enums.InstanceOperationStatus
732
+ currentResourceCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
733
+ totalResourceCount?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
734
+ model?: Prisma.JsonNullValueInput | runtime.InputJsonValue
735
+ resolvedInputs?: Prisma.JsonNullValueInput | runtime.InputJsonValue
736
+ startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
737
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
738
+ }
739
+
740
+
741
+
742
+ export type InstanceOperationStateSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
743
+ operationId?: boolean
744
+ stateId?: boolean
745
+ status?: boolean
746
+ currentResourceCount?: boolean
747
+ totalResourceCount?: boolean
748
+ model?: boolean
749
+ resolvedInputs?: boolean
750
+ startedAt?: boolean
751
+ finishedAt?: boolean
752
+ operation?: boolean | Prisma.OperationDefaultArgs<ExtArgs>
753
+ state?: boolean | Prisma.InstanceStateDefaultArgs<ExtArgs>
754
+ }, ExtArgs["result"]["instanceOperationState"]>
755
+
756
+ export type InstanceOperationStateSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
757
+ operationId?: boolean
758
+ stateId?: boolean
759
+ status?: boolean
760
+ currentResourceCount?: boolean
761
+ totalResourceCount?: boolean
762
+ model?: boolean
763
+ resolvedInputs?: boolean
764
+ startedAt?: boolean
765
+ finishedAt?: boolean
766
+ operation?: boolean | Prisma.OperationDefaultArgs<ExtArgs>
767
+ state?: boolean | Prisma.InstanceStateDefaultArgs<ExtArgs>
768
+ }, ExtArgs["result"]["instanceOperationState"]>
769
+
770
+ export type InstanceOperationStateSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
771
+ operationId?: boolean
772
+ stateId?: boolean
773
+ status?: boolean
774
+ currentResourceCount?: boolean
775
+ totalResourceCount?: boolean
776
+ model?: boolean
777
+ resolvedInputs?: boolean
778
+ startedAt?: boolean
779
+ finishedAt?: boolean
780
+ operation?: boolean | Prisma.OperationDefaultArgs<ExtArgs>
781
+ state?: boolean | Prisma.InstanceStateDefaultArgs<ExtArgs>
782
+ }, ExtArgs["result"]["instanceOperationState"]>
783
+
784
+ export type InstanceOperationStateSelectScalar = {
785
+ operationId?: boolean
786
+ stateId?: boolean
787
+ status?: boolean
788
+ currentResourceCount?: boolean
789
+ totalResourceCount?: boolean
790
+ model?: boolean
791
+ resolvedInputs?: boolean
792
+ startedAt?: boolean
793
+ finishedAt?: boolean
794
+ }
795
+
796
+ export type InstanceOperationStateOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"operationId" | "stateId" | "status" | "currentResourceCount" | "totalResourceCount" | "model" | "resolvedInputs" | "startedAt" | "finishedAt", ExtArgs["result"]["instanceOperationState"]>
797
+ export type InstanceOperationStateInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
798
+ operation?: boolean | Prisma.OperationDefaultArgs<ExtArgs>
799
+ state?: boolean | Prisma.InstanceStateDefaultArgs<ExtArgs>
800
+ }
801
+ export type InstanceOperationStateIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
802
+ operation?: boolean | Prisma.OperationDefaultArgs<ExtArgs>
803
+ state?: boolean | Prisma.InstanceStateDefaultArgs<ExtArgs>
804
+ }
805
+ export type InstanceOperationStateIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
806
+ operation?: boolean | Prisma.OperationDefaultArgs<ExtArgs>
807
+ state?: boolean | Prisma.InstanceStateDefaultArgs<ExtArgs>
808
+ }
809
+
810
+ export type $InstanceOperationStatePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
811
+ name: "InstanceOperationState"
812
+ objects: {
813
+ /**
814
+ * The operation this state belongs to.
815
+ */
816
+ operation: Prisma.$OperationPayload<ExtArgs>
817
+ /**
818
+ * The instance this state belongs to.
819
+ */
820
+ state: Prisma.$InstanceStatePayload<ExtArgs>
821
+ }
822
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
823
+ /**
824
+ * The ID of the operation this state belongs to.
825
+ */
826
+ operationId: string
827
+ /**
828
+ * The ID of the instance state affected by the operation.
829
+ */
830
+ stateId: string
831
+ /**
832
+ * The enum representing the current status of the instance from the operation perspective.
833
+ */
834
+ status: $Enums.InstanceOperationStatus
835
+ /**
836
+ * The current count of the Pulumi resources being managed by this instance.
837
+ */
838
+ currentResourceCount: number | null
839
+ /**
840
+ * The total count of the Pulumi resources that this instance is expected to manage.
841
+ */
842
+ totalResourceCount: number | null
843
+ /**
844
+ * The snapshot of the instance model at the moment of operation start.
845
+ *
846
+ * [InstanceModel]
847
+ */
848
+ model: PrismaJson.InstanceModel
849
+ /**
850
+ * The snapshot of the resolved inputs at the moment of operation start.
851
+ *
852
+ * [InstanceResolvedInputs]
853
+ */
854
+ resolvedInputs: PrismaJson.InstanceResolvedInputs
855
+ /**
856
+ * The time when the operation on this instance started.
857
+ * Not populated on create, even if the instance is ready to start immediately.
858
+ */
859
+ startedAt: Date | null
860
+ /**
861
+ * The time when the operation on this instance finished.
862
+ */
863
+ finishedAt: Date | null
864
+ }, ExtArgs["result"]["instanceOperationState"]>
865
+ composites: {}
866
+ }
867
+
868
+ export type InstanceOperationStateGetPayload<S extends boolean | null | undefined | InstanceOperationStateDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$InstanceOperationStatePayload, S>
869
+
870
+ export type InstanceOperationStateCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
871
+ Omit<InstanceOperationStateFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
872
+ select?: InstanceOperationStateCountAggregateInputType | true
873
+ }
874
+
875
+ export interface InstanceOperationStateDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
876
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['InstanceOperationState'], meta: { name: 'InstanceOperationState' } }
877
+ /**
878
+ * Find zero or one InstanceOperationState that matches the filter.
879
+ * @param {InstanceOperationStateFindUniqueArgs} args - Arguments to find a InstanceOperationState
880
+ * @example
881
+ * // Get one InstanceOperationState
882
+ * const instanceOperationState = await prisma.instanceOperationState.findUnique({
883
+ * where: {
884
+ * // ... provide filter here
885
+ * }
886
+ * })
887
+ */
888
+ findUnique<T extends InstanceOperationStateFindUniqueArgs>(args: Prisma.SelectSubset<T, InstanceOperationStateFindUniqueArgs<ExtArgs>>): Prisma.Prisma__InstanceOperationStateClient<runtime.Types.Result.GetResult<Prisma.$InstanceOperationStatePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
889
+
890
+ /**
891
+ * Find one InstanceOperationState that matches the filter or throw an error with `error.code='P2025'`
892
+ * if no matches were found.
893
+ * @param {InstanceOperationStateFindUniqueOrThrowArgs} args - Arguments to find a InstanceOperationState
894
+ * @example
895
+ * // Get one InstanceOperationState
896
+ * const instanceOperationState = await prisma.instanceOperationState.findUniqueOrThrow({
897
+ * where: {
898
+ * // ... provide filter here
899
+ * }
900
+ * })
901
+ */
902
+ findUniqueOrThrow<T extends InstanceOperationStateFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, InstanceOperationStateFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__InstanceOperationStateClient<runtime.Types.Result.GetResult<Prisma.$InstanceOperationStatePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
903
+
904
+ /**
905
+ * Find the first InstanceOperationState that matches the filter.
906
+ * Note, that providing `undefined` is treated as the value not being there.
907
+ * Read more here: https://pris.ly/d/null-undefined
908
+ * @param {InstanceOperationStateFindFirstArgs} args - Arguments to find a InstanceOperationState
909
+ * @example
910
+ * // Get one InstanceOperationState
911
+ * const instanceOperationState = await prisma.instanceOperationState.findFirst({
912
+ * where: {
913
+ * // ... provide filter here
914
+ * }
915
+ * })
916
+ */
917
+ findFirst<T extends InstanceOperationStateFindFirstArgs>(args?: Prisma.SelectSubset<T, InstanceOperationStateFindFirstArgs<ExtArgs>>): Prisma.Prisma__InstanceOperationStateClient<runtime.Types.Result.GetResult<Prisma.$InstanceOperationStatePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
918
+
919
+ /**
920
+ * Find the first InstanceOperationState that matches the filter or
921
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
922
+ * Note, that providing `undefined` is treated as the value not being there.
923
+ * Read more here: https://pris.ly/d/null-undefined
924
+ * @param {InstanceOperationStateFindFirstOrThrowArgs} args - Arguments to find a InstanceOperationState
925
+ * @example
926
+ * // Get one InstanceOperationState
927
+ * const instanceOperationState = await prisma.instanceOperationState.findFirstOrThrow({
928
+ * where: {
929
+ * // ... provide filter here
930
+ * }
931
+ * })
932
+ */
933
+ findFirstOrThrow<T extends InstanceOperationStateFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, InstanceOperationStateFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__InstanceOperationStateClient<runtime.Types.Result.GetResult<Prisma.$InstanceOperationStatePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
934
+
935
+ /**
936
+ * Find zero or more InstanceOperationStates that matches the filter.
937
+ * Note, that providing `undefined` is treated as the value not being there.
938
+ * Read more here: https://pris.ly/d/null-undefined
939
+ * @param {InstanceOperationStateFindManyArgs} args - Arguments to filter and select certain fields only.
940
+ * @example
941
+ * // Get all InstanceOperationStates
942
+ * const instanceOperationStates = await prisma.instanceOperationState.findMany()
943
+ *
944
+ * // Get first 10 InstanceOperationStates
945
+ * const instanceOperationStates = await prisma.instanceOperationState.findMany({ take: 10 })
946
+ *
947
+ * // Only select the `operationId`
948
+ * const instanceOperationStateWithOperationIdOnly = await prisma.instanceOperationState.findMany({ select: { operationId: true } })
949
+ *
950
+ */
951
+ findMany<T extends InstanceOperationStateFindManyArgs>(args?: Prisma.SelectSubset<T, InstanceOperationStateFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$InstanceOperationStatePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
952
+
953
+ /**
954
+ * Create a InstanceOperationState.
955
+ * @param {InstanceOperationStateCreateArgs} args - Arguments to create a InstanceOperationState.
956
+ * @example
957
+ * // Create one InstanceOperationState
958
+ * const InstanceOperationState = await prisma.instanceOperationState.create({
959
+ * data: {
960
+ * // ... data to create a InstanceOperationState
961
+ * }
962
+ * })
963
+ *
964
+ */
965
+ create<T extends InstanceOperationStateCreateArgs>(args: Prisma.SelectSubset<T, InstanceOperationStateCreateArgs<ExtArgs>>): Prisma.Prisma__InstanceOperationStateClient<runtime.Types.Result.GetResult<Prisma.$InstanceOperationStatePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
966
+
967
+ /**
968
+ * Create many InstanceOperationStates.
969
+ * @param {InstanceOperationStateCreateManyArgs} args - Arguments to create many InstanceOperationStates.
970
+ * @example
971
+ * // Create many InstanceOperationStates
972
+ * const instanceOperationState = await prisma.instanceOperationState.createMany({
973
+ * data: [
974
+ * // ... provide data here
975
+ * ]
976
+ * })
977
+ *
978
+ */
979
+ createMany<T extends InstanceOperationStateCreateManyArgs>(args?: Prisma.SelectSubset<T, InstanceOperationStateCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
980
+
981
+ /**
982
+ * Create many InstanceOperationStates and returns the data saved in the database.
983
+ * @param {InstanceOperationStateCreateManyAndReturnArgs} args - Arguments to create many InstanceOperationStates.
984
+ * @example
985
+ * // Create many InstanceOperationStates
986
+ * const instanceOperationState = await prisma.instanceOperationState.createManyAndReturn({
987
+ * data: [
988
+ * // ... provide data here
989
+ * ]
990
+ * })
991
+ *
992
+ * // Create many InstanceOperationStates and only return the `operationId`
993
+ * const instanceOperationStateWithOperationIdOnly = await prisma.instanceOperationState.createManyAndReturn({
994
+ * select: { operationId: true },
995
+ * data: [
996
+ * // ... provide data here
997
+ * ]
998
+ * })
999
+ * Note, that providing `undefined` is treated as the value not being there.
1000
+ * Read more here: https://pris.ly/d/null-undefined
1001
+ *
1002
+ */
1003
+ createManyAndReturn<T extends InstanceOperationStateCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, InstanceOperationStateCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$InstanceOperationStatePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
1004
+
1005
+ /**
1006
+ * Delete a InstanceOperationState.
1007
+ * @param {InstanceOperationStateDeleteArgs} args - Arguments to delete one InstanceOperationState.
1008
+ * @example
1009
+ * // Delete one InstanceOperationState
1010
+ * const InstanceOperationState = await prisma.instanceOperationState.delete({
1011
+ * where: {
1012
+ * // ... filter to delete one InstanceOperationState
1013
+ * }
1014
+ * })
1015
+ *
1016
+ */
1017
+ delete<T extends InstanceOperationStateDeleteArgs>(args: Prisma.SelectSubset<T, InstanceOperationStateDeleteArgs<ExtArgs>>): Prisma.Prisma__InstanceOperationStateClient<runtime.Types.Result.GetResult<Prisma.$InstanceOperationStatePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1018
+
1019
+ /**
1020
+ * Update one InstanceOperationState.
1021
+ * @param {InstanceOperationStateUpdateArgs} args - Arguments to update one InstanceOperationState.
1022
+ * @example
1023
+ * // Update one InstanceOperationState
1024
+ * const instanceOperationState = await prisma.instanceOperationState.update({
1025
+ * where: {
1026
+ * // ... provide filter here
1027
+ * },
1028
+ * data: {
1029
+ * // ... provide data here
1030
+ * }
1031
+ * })
1032
+ *
1033
+ */
1034
+ update<T extends InstanceOperationStateUpdateArgs>(args: Prisma.SelectSubset<T, InstanceOperationStateUpdateArgs<ExtArgs>>): Prisma.Prisma__InstanceOperationStateClient<runtime.Types.Result.GetResult<Prisma.$InstanceOperationStatePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1035
+
1036
+ /**
1037
+ * Delete zero or more InstanceOperationStates.
1038
+ * @param {InstanceOperationStateDeleteManyArgs} args - Arguments to filter InstanceOperationStates to delete.
1039
+ * @example
1040
+ * // Delete a few InstanceOperationStates
1041
+ * const { count } = await prisma.instanceOperationState.deleteMany({
1042
+ * where: {
1043
+ * // ... provide filter here
1044
+ * }
1045
+ * })
1046
+ *
1047
+ */
1048
+ deleteMany<T extends InstanceOperationStateDeleteManyArgs>(args?: Prisma.SelectSubset<T, InstanceOperationStateDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1049
+
1050
+ /**
1051
+ * Update zero or more InstanceOperationStates.
1052
+ * Note, that providing `undefined` is treated as the value not being there.
1053
+ * Read more here: https://pris.ly/d/null-undefined
1054
+ * @param {InstanceOperationStateUpdateManyArgs} args - Arguments to update one or more rows.
1055
+ * @example
1056
+ * // Update many InstanceOperationStates
1057
+ * const instanceOperationState = await prisma.instanceOperationState.updateMany({
1058
+ * where: {
1059
+ * // ... provide filter here
1060
+ * },
1061
+ * data: {
1062
+ * // ... provide data here
1063
+ * }
1064
+ * })
1065
+ *
1066
+ */
1067
+ updateMany<T extends InstanceOperationStateUpdateManyArgs>(args: Prisma.SelectSubset<T, InstanceOperationStateUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1068
+
1069
+ /**
1070
+ * Update zero or more InstanceOperationStates and returns the data updated in the database.
1071
+ * @param {InstanceOperationStateUpdateManyAndReturnArgs} args - Arguments to update many InstanceOperationStates.
1072
+ * @example
1073
+ * // Update many InstanceOperationStates
1074
+ * const instanceOperationState = await prisma.instanceOperationState.updateManyAndReturn({
1075
+ * where: {
1076
+ * // ... provide filter here
1077
+ * },
1078
+ * data: [
1079
+ * // ... provide data here
1080
+ * ]
1081
+ * })
1082
+ *
1083
+ * // Update zero or more InstanceOperationStates and only return the `operationId`
1084
+ * const instanceOperationStateWithOperationIdOnly = await prisma.instanceOperationState.updateManyAndReturn({
1085
+ * select: { operationId: true },
1086
+ * where: {
1087
+ * // ... provide filter here
1088
+ * },
1089
+ * data: [
1090
+ * // ... provide data here
1091
+ * ]
1092
+ * })
1093
+ * Note, that providing `undefined` is treated as the value not being there.
1094
+ * Read more here: https://pris.ly/d/null-undefined
1095
+ *
1096
+ */
1097
+ updateManyAndReturn<T extends InstanceOperationStateUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, InstanceOperationStateUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$InstanceOperationStatePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
1098
+
1099
+ /**
1100
+ * Create or update one InstanceOperationState.
1101
+ * @param {InstanceOperationStateUpsertArgs} args - Arguments to update or create a InstanceOperationState.
1102
+ * @example
1103
+ * // Update or create a InstanceOperationState
1104
+ * const instanceOperationState = await prisma.instanceOperationState.upsert({
1105
+ * create: {
1106
+ * // ... data to create a InstanceOperationState
1107
+ * },
1108
+ * update: {
1109
+ * // ... in case it already exists, update
1110
+ * },
1111
+ * where: {
1112
+ * // ... the filter for the InstanceOperationState we want to update
1113
+ * }
1114
+ * })
1115
+ */
1116
+ upsert<T extends InstanceOperationStateUpsertArgs>(args: Prisma.SelectSubset<T, InstanceOperationStateUpsertArgs<ExtArgs>>): Prisma.Prisma__InstanceOperationStateClient<runtime.Types.Result.GetResult<Prisma.$InstanceOperationStatePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1117
+
1118
+
1119
+ /**
1120
+ * Count the number of InstanceOperationStates.
1121
+ * Note, that providing `undefined` is treated as the value not being there.
1122
+ * Read more here: https://pris.ly/d/null-undefined
1123
+ * @param {InstanceOperationStateCountArgs} args - Arguments to filter InstanceOperationStates to count.
1124
+ * @example
1125
+ * // Count the number of InstanceOperationStates
1126
+ * const count = await prisma.instanceOperationState.count({
1127
+ * where: {
1128
+ * // ... the filter for the InstanceOperationStates we want to count
1129
+ * }
1130
+ * })
1131
+ **/
1132
+ count<T extends InstanceOperationStateCountArgs>(
1133
+ args?: Prisma.Subset<T, InstanceOperationStateCountArgs>,
1134
+ ): Prisma.PrismaPromise<
1135
+ T extends runtime.Types.Utils.Record<'select', any>
1136
+ ? T['select'] extends true
1137
+ ? number
1138
+ : Prisma.GetScalarType<T['select'], InstanceOperationStateCountAggregateOutputType>
1139
+ : number
1140
+ >
1141
+
1142
+ /**
1143
+ * Allows you to perform aggregations operations on a InstanceOperationState.
1144
+ * Note, that providing `undefined` is treated as the value not being there.
1145
+ * Read more here: https://pris.ly/d/null-undefined
1146
+ * @param {InstanceOperationStateAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1147
+ * @example
1148
+ * // Ordered by age ascending
1149
+ * // Where email contains prisma.io
1150
+ * // Limited to the 10 users
1151
+ * const aggregations = await prisma.user.aggregate({
1152
+ * _avg: {
1153
+ * age: true,
1154
+ * },
1155
+ * where: {
1156
+ * email: {
1157
+ * contains: "prisma.io",
1158
+ * },
1159
+ * },
1160
+ * orderBy: {
1161
+ * age: "asc",
1162
+ * },
1163
+ * take: 10,
1164
+ * })
1165
+ **/
1166
+ aggregate<T extends InstanceOperationStateAggregateArgs>(args: Prisma.Subset<T, InstanceOperationStateAggregateArgs>): Prisma.PrismaPromise<GetInstanceOperationStateAggregateType<T>>
1167
+
1168
+ /**
1169
+ * Group by InstanceOperationState.
1170
+ * Note, that providing `undefined` is treated as the value not being there.
1171
+ * Read more here: https://pris.ly/d/null-undefined
1172
+ * @param {InstanceOperationStateGroupByArgs} args - Group by arguments.
1173
+ * @example
1174
+ * // Group by city, order by createdAt, get count
1175
+ * const result = await prisma.user.groupBy({
1176
+ * by: ['city', 'createdAt'],
1177
+ * orderBy: {
1178
+ * createdAt: true
1179
+ * },
1180
+ * _count: {
1181
+ * _all: true
1182
+ * },
1183
+ * })
1184
+ *
1185
+ **/
1186
+ groupBy<
1187
+ T extends InstanceOperationStateGroupByArgs,
1188
+ HasSelectOrTake extends Prisma.Or<
1189
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
1190
+ Prisma.Extends<'take', Prisma.Keys<T>>
1191
+ >,
1192
+ OrderByArg extends Prisma.True extends HasSelectOrTake
1193
+ ? { orderBy: InstanceOperationStateGroupByArgs['orderBy'] }
1194
+ : { orderBy?: InstanceOperationStateGroupByArgs['orderBy'] },
1195
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1196
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1197
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
1198
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
1199
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
1200
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1201
+ InputErrors extends ByEmpty extends Prisma.True
1202
+ ? `Error: "by" must not be empty.`
1203
+ : HavingValid extends Prisma.False
1204
+ ? {
1205
+ [P in HavingFields]: P extends ByFields
1206
+ ? never
1207
+ : P extends string
1208
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1209
+ : [
1210
+ Error,
1211
+ 'Field ',
1212
+ P,
1213
+ ` in "having" needs to be provided in "by"`,
1214
+ ]
1215
+ }[HavingFields]
1216
+ : 'take' extends Prisma.Keys<T>
1217
+ ? 'orderBy' extends Prisma.Keys<T>
1218
+ ? ByValid extends Prisma.True
1219
+ ? {}
1220
+ : {
1221
+ [P in OrderFields]: P extends ByFields
1222
+ ? never
1223
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1224
+ }[OrderFields]
1225
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
1226
+ : 'skip' extends Prisma.Keys<T>
1227
+ ? 'orderBy' extends Prisma.Keys<T>
1228
+ ? ByValid extends Prisma.True
1229
+ ? {}
1230
+ : {
1231
+ [P in OrderFields]: P extends ByFields
1232
+ ? never
1233
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1234
+ }[OrderFields]
1235
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
1236
+ : ByValid extends Prisma.True
1237
+ ? {}
1238
+ : {
1239
+ [P in OrderFields]: P extends ByFields
1240
+ ? never
1241
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1242
+ }[OrderFields]
1243
+ >(args: Prisma.SubsetIntersection<T, InstanceOperationStateGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetInstanceOperationStateGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1244
+ /**
1245
+ * Fields of the InstanceOperationState model
1246
+ */
1247
+ readonly fields: InstanceOperationStateFieldRefs;
1248
+ }
1249
+
1250
+ /**
1251
+ * The delegate class that acts as a "Promise-like" for InstanceOperationState.
1252
+ * Why is this prefixed with `Prisma__`?
1253
+ * Because we want to prevent naming conflicts as mentioned in
1254
+ * https://github.com/prisma/prisma-client-js/issues/707
1255
+ */
1256
+ export interface Prisma__InstanceOperationStateClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1257
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1258
+ operation<T extends Prisma.OperationDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.OperationDefaultArgs<ExtArgs>>): Prisma.Prisma__OperationClient<runtime.Types.Result.GetResult<Prisma.$OperationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
1259
+ state<T extends Prisma.InstanceStateDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.InstanceStateDefaultArgs<ExtArgs>>): Prisma.Prisma__InstanceStateClient<runtime.Types.Result.GetResult<Prisma.$InstanceStatePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
1260
+ /**
1261
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1262
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1263
+ * @param onrejected The callback to execute when the Promise is rejected.
1264
+ * @returns A Promise for the completion of which ever callback is executed.
1265
+ */
1266
+ 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>
1267
+ /**
1268
+ * Attaches a callback for only the rejection of the Promise.
1269
+ * @param onrejected The callback to execute when the Promise is rejected.
1270
+ * @returns A Promise for the completion of the callback.
1271
+ */
1272
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1273
+ /**
1274
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1275
+ * resolved value cannot be modified from the callback.
1276
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1277
+ * @returns A Promise for the completion of the callback.
1278
+ */
1279
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1280
+ }
1281
+
1282
+
1283
+
1284
+
1285
+ /**
1286
+ * Fields of the InstanceOperationState model
1287
+ */
1288
+ export interface InstanceOperationStateFieldRefs {
1289
+ readonly operationId: Prisma.FieldRef<"InstanceOperationState", 'String'>
1290
+ readonly stateId: Prisma.FieldRef<"InstanceOperationState", 'String'>
1291
+ readonly status: Prisma.FieldRef<"InstanceOperationState", 'InstanceOperationStatus'>
1292
+ readonly currentResourceCount: Prisma.FieldRef<"InstanceOperationState", 'Int'>
1293
+ readonly totalResourceCount: Prisma.FieldRef<"InstanceOperationState", 'Int'>
1294
+ readonly model: Prisma.FieldRef<"InstanceOperationState", 'Json'>
1295
+ readonly resolvedInputs: Prisma.FieldRef<"InstanceOperationState", 'Json'>
1296
+ readonly startedAt: Prisma.FieldRef<"InstanceOperationState", 'DateTime'>
1297
+ readonly finishedAt: Prisma.FieldRef<"InstanceOperationState", 'DateTime'>
1298
+ }
1299
+
1300
+
1301
+ // Custom InputTypes
1302
+ /**
1303
+ * InstanceOperationState findUnique
1304
+ */
1305
+ export type InstanceOperationStateFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1306
+ /**
1307
+ * Select specific fields to fetch from the InstanceOperationState
1308
+ */
1309
+ select?: Prisma.InstanceOperationStateSelect<ExtArgs> | null
1310
+ /**
1311
+ * Omit specific fields from the InstanceOperationState
1312
+ */
1313
+ omit?: Prisma.InstanceOperationStateOmit<ExtArgs> | null
1314
+ /**
1315
+ * Choose, which related nodes to fetch as well
1316
+ */
1317
+ include?: Prisma.InstanceOperationStateInclude<ExtArgs> | null
1318
+ /**
1319
+ * Filter, which InstanceOperationState to fetch.
1320
+ */
1321
+ where: Prisma.InstanceOperationStateWhereUniqueInput
1322
+ }
1323
+
1324
+ /**
1325
+ * InstanceOperationState findUniqueOrThrow
1326
+ */
1327
+ export type InstanceOperationStateFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1328
+ /**
1329
+ * Select specific fields to fetch from the InstanceOperationState
1330
+ */
1331
+ select?: Prisma.InstanceOperationStateSelect<ExtArgs> | null
1332
+ /**
1333
+ * Omit specific fields from the InstanceOperationState
1334
+ */
1335
+ omit?: Prisma.InstanceOperationStateOmit<ExtArgs> | null
1336
+ /**
1337
+ * Choose, which related nodes to fetch as well
1338
+ */
1339
+ include?: Prisma.InstanceOperationStateInclude<ExtArgs> | null
1340
+ /**
1341
+ * Filter, which InstanceOperationState to fetch.
1342
+ */
1343
+ where: Prisma.InstanceOperationStateWhereUniqueInput
1344
+ }
1345
+
1346
+ /**
1347
+ * InstanceOperationState findFirst
1348
+ */
1349
+ export type InstanceOperationStateFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1350
+ /**
1351
+ * Select specific fields to fetch from the InstanceOperationState
1352
+ */
1353
+ select?: Prisma.InstanceOperationStateSelect<ExtArgs> | null
1354
+ /**
1355
+ * Omit specific fields from the InstanceOperationState
1356
+ */
1357
+ omit?: Prisma.InstanceOperationStateOmit<ExtArgs> | null
1358
+ /**
1359
+ * Choose, which related nodes to fetch as well
1360
+ */
1361
+ include?: Prisma.InstanceOperationStateInclude<ExtArgs> | null
1362
+ /**
1363
+ * Filter, which InstanceOperationState to fetch.
1364
+ */
1365
+ where?: Prisma.InstanceOperationStateWhereInput
1366
+ /**
1367
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1368
+ *
1369
+ * Determine the order of InstanceOperationStates to fetch.
1370
+ */
1371
+ orderBy?: Prisma.InstanceOperationStateOrderByWithRelationInput | Prisma.InstanceOperationStateOrderByWithRelationInput[]
1372
+ /**
1373
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1374
+ *
1375
+ * Sets the position for searching for InstanceOperationStates.
1376
+ */
1377
+ cursor?: Prisma.InstanceOperationStateWhereUniqueInput
1378
+ /**
1379
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1380
+ *
1381
+ * Take `±n` InstanceOperationStates from the position of the cursor.
1382
+ */
1383
+ take?: number
1384
+ /**
1385
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1386
+ *
1387
+ * Skip the first `n` InstanceOperationStates.
1388
+ */
1389
+ skip?: number
1390
+ /**
1391
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1392
+ *
1393
+ * Filter by unique combinations of InstanceOperationStates.
1394
+ */
1395
+ distinct?: Prisma.InstanceOperationStateScalarFieldEnum | Prisma.InstanceOperationStateScalarFieldEnum[]
1396
+ }
1397
+
1398
+ /**
1399
+ * InstanceOperationState findFirstOrThrow
1400
+ */
1401
+ export type InstanceOperationStateFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1402
+ /**
1403
+ * Select specific fields to fetch from the InstanceOperationState
1404
+ */
1405
+ select?: Prisma.InstanceOperationStateSelect<ExtArgs> | null
1406
+ /**
1407
+ * Omit specific fields from the InstanceOperationState
1408
+ */
1409
+ omit?: Prisma.InstanceOperationStateOmit<ExtArgs> | null
1410
+ /**
1411
+ * Choose, which related nodes to fetch as well
1412
+ */
1413
+ include?: Prisma.InstanceOperationStateInclude<ExtArgs> | null
1414
+ /**
1415
+ * Filter, which InstanceOperationState to fetch.
1416
+ */
1417
+ where?: Prisma.InstanceOperationStateWhereInput
1418
+ /**
1419
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1420
+ *
1421
+ * Determine the order of InstanceOperationStates to fetch.
1422
+ */
1423
+ orderBy?: Prisma.InstanceOperationStateOrderByWithRelationInput | Prisma.InstanceOperationStateOrderByWithRelationInput[]
1424
+ /**
1425
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1426
+ *
1427
+ * Sets the position for searching for InstanceOperationStates.
1428
+ */
1429
+ cursor?: Prisma.InstanceOperationStateWhereUniqueInput
1430
+ /**
1431
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1432
+ *
1433
+ * Take `±n` InstanceOperationStates from the position of the cursor.
1434
+ */
1435
+ take?: number
1436
+ /**
1437
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1438
+ *
1439
+ * Skip the first `n` InstanceOperationStates.
1440
+ */
1441
+ skip?: number
1442
+ /**
1443
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1444
+ *
1445
+ * Filter by unique combinations of InstanceOperationStates.
1446
+ */
1447
+ distinct?: Prisma.InstanceOperationStateScalarFieldEnum | Prisma.InstanceOperationStateScalarFieldEnum[]
1448
+ }
1449
+
1450
+ /**
1451
+ * InstanceOperationState findMany
1452
+ */
1453
+ export type InstanceOperationStateFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1454
+ /**
1455
+ * Select specific fields to fetch from the InstanceOperationState
1456
+ */
1457
+ select?: Prisma.InstanceOperationStateSelect<ExtArgs> | null
1458
+ /**
1459
+ * Omit specific fields from the InstanceOperationState
1460
+ */
1461
+ omit?: Prisma.InstanceOperationStateOmit<ExtArgs> | null
1462
+ /**
1463
+ * Choose, which related nodes to fetch as well
1464
+ */
1465
+ include?: Prisma.InstanceOperationStateInclude<ExtArgs> | null
1466
+ /**
1467
+ * Filter, which InstanceOperationStates to fetch.
1468
+ */
1469
+ where?: Prisma.InstanceOperationStateWhereInput
1470
+ /**
1471
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1472
+ *
1473
+ * Determine the order of InstanceOperationStates to fetch.
1474
+ */
1475
+ orderBy?: Prisma.InstanceOperationStateOrderByWithRelationInput | Prisma.InstanceOperationStateOrderByWithRelationInput[]
1476
+ /**
1477
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1478
+ *
1479
+ * Sets the position for listing InstanceOperationStates.
1480
+ */
1481
+ cursor?: Prisma.InstanceOperationStateWhereUniqueInput
1482
+ /**
1483
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1484
+ *
1485
+ * Take `±n` InstanceOperationStates from the position of the cursor.
1486
+ */
1487
+ take?: number
1488
+ /**
1489
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1490
+ *
1491
+ * Skip the first `n` InstanceOperationStates.
1492
+ */
1493
+ skip?: number
1494
+ distinct?: Prisma.InstanceOperationStateScalarFieldEnum | Prisma.InstanceOperationStateScalarFieldEnum[]
1495
+ }
1496
+
1497
+ /**
1498
+ * InstanceOperationState create
1499
+ */
1500
+ export type InstanceOperationStateCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1501
+ /**
1502
+ * Select specific fields to fetch from the InstanceOperationState
1503
+ */
1504
+ select?: Prisma.InstanceOperationStateSelect<ExtArgs> | null
1505
+ /**
1506
+ * Omit specific fields from the InstanceOperationState
1507
+ */
1508
+ omit?: Prisma.InstanceOperationStateOmit<ExtArgs> | null
1509
+ /**
1510
+ * Choose, which related nodes to fetch as well
1511
+ */
1512
+ include?: Prisma.InstanceOperationStateInclude<ExtArgs> | null
1513
+ /**
1514
+ * The data needed to create a InstanceOperationState.
1515
+ */
1516
+ data: Prisma.XOR<Prisma.InstanceOperationStateCreateInput, Prisma.InstanceOperationStateUncheckedCreateInput>
1517
+ }
1518
+
1519
+ /**
1520
+ * InstanceOperationState createMany
1521
+ */
1522
+ export type InstanceOperationStateCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1523
+ /**
1524
+ * The data used to create many InstanceOperationStates.
1525
+ */
1526
+ data: Prisma.InstanceOperationStateCreateManyInput | Prisma.InstanceOperationStateCreateManyInput[]
1527
+ }
1528
+
1529
+ /**
1530
+ * InstanceOperationState createManyAndReturn
1531
+ */
1532
+ export type InstanceOperationStateCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1533
+ /**
1534
+ * Select specific fields to fetch from the InstanceOperationState
1535
+ */
1536
+ select?: Prisma.InstanceOperationStateSelectCreateManyAndReturn<ExtArgs> | null
1537
+ /**
1538
+ * Omit specific fields from the InstanceOperationState
1539
+ */
1540
+ omit?: Prisma.InstanceOperationStateOmit<ExtArgs> | null
1541
+ /**
1542
+ * The data used to create many InstanceOperationStates.
1543
+ */
1544
+ data: Prisma.InstanceOperationStateCreateManyInput | Prisma.InstanceOperationStateCreateManyInput[]
1545
+ /**
1546
+ * Choose, which related nodes to fetch as well
1547
+ */
1548
+ include?: Prisma.InstanceOperationStateIncludeCreateManyAndReturn<ExtArgs> | null
1549
+ }
1550
+
1551
+ /**
1552
+ * InstanceOperationState update
1553
+ */
1554
+ export type InstanceOperationStateUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1555
+ /**
1556
+ * Select specific fields to fetch from the InstanceOperationState
1557
+ */
1558
+ select?: Prisma.InstanceOperationStateSelect<ExtArgs> | null
1559
+ /**
1560
+ * Omit specific fields from the InstanceOperationState
1561
+ */
1562
+ omit?: Prisma.InstanceOperationStateOmit<ExtArgs> | null
1563
+ /**
1564
+ * Choose, which related nodes to fetch as well
1565
+ */
1566
+ include?: Prisma.InstanceOperationStateInclude<ExtArgs> | null
1567
+ /**
1568
+ * The data needed to update a InstanceOperationState.
1569
+ */
1570
+ data: Prisma.XOR<Prisma.InstanceOperationStateUpdateInput, Prisma.InstanceOperationStateUncheckedUpdateInput>
1571
+ /**
1572
+ * Choose, which InstanceOperationState to update.
1573
+ */
1574
+ where: Prisma.InstanceOperationStateWhereUniqueInput
1575
+ }
1576
+
1577
+ /**
1578
+ * InstanceOperationState updateMany
1579
+ */
1580
+ export type InstanceOperationStateUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1581
+ /**
1582
+ * The data used to update InstanceOperationStates.
1583
+ */
1584
+ data: Prisma.XOR<Prisma.InstanceOperationStateUpdateManyMutationInput, Prisma.InstanceOperationStateUncheckedUpdateManyInput>
1585
+ /**
1586
+ * Filter which InstanceOperationStates to update
1587
+ */
1588
+ where?: Prisma.InstanceOperationStateWhereInput
1589
+ /**
1590
+ * Limit how many InstanceOperationStates to update.
1591
+ */
1592
+ limit?: number
1593
+ }
1594
+
1595
+ /**
1596
+ * InstanceOperationState updateManyAndReturn
1597
+ */
1598
+ export type InstanceOperationStateUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1599
+ /**
1600
+ * Select specific fields to fetch from the InstanceOperationState
1601
+ */
1602
+ select?: Prisma.InstanceOperationStateSelectUpdateManyAndReturn<ExtArgs> | null
1603
+ /**
1604
+ * Omit specific fields from the InstanceOperationState
1605
+ */
1606
+ omit?: Prisma.InstanceOperationStateOmit<ExtArgs> | null
1607
+ /**
1608
+ * The data used to update InstanceOperationStates.
1609
+ */
1610
+ data: Prisma.XOR<Prisma.InstanceOperationStateUpdateManyMutationInput, Prisma.InstanceOperationStateUncheckedUpdateManyInput>
1611
+ /**
1612
+ * Filter which InstanceOperationStates to update
1613
+ */
1614
+ where?: Prisma.InstanceOperationStateWhereInput
1615
+ /**
1616
+ * Limit how many InstanceOperationStates to update.
1617
+ */
1618
+ limit?: number
1619
+ /**
1620
+ * Choose, which related nodes to fetch as well
1621
+ */
1622
+ include?: Prisma.InstanceOperationStateIncludeUpdateManyAndReturn<ExtArgs> | null
1623
+ }
1624
+
1625
+ /**
1626
+ * InstanceOperationState upsert
1627
+ */
1628
+ export type InstanceOperationStateUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1629
+ /**
1630
+ * Select specific fields to fetch from the InstanceOperationState
1631
+ */
1632
+ select?: Prisma.InstanceOperationStateSelect<ExtArgs> | null
1633
+ /**
1634
+ * Omit specific fields from the InstanceOperationState
1635
+ */
1636
+ omit?: Prisma.InstanceOperationStateOmit<ExtArgs> | null
1637
+ /**
1638
+ * Choose, which related nodes to fetch as well
1639
+ */
1640
+ include?: Prisma.InstanceOperationStateInclude<ExtArgs> | null
1641
+ /**
1642
+ * The filter to search for the InstanceOperationState to update in case it exists.
1643
+ */
1644
+ where: Prisma.InstanceOperationStateWhereUniqueInput
1645
+ /**
1646
+ * In case the InstanceOperationState found by the `where` argument doesn't exist, create a new InstanceOperationState with this data.
1647
+ */
1648
+ create: Prisma.XOR<Prisma.InstanceOperationStateCreateInput, Prisma.InstanceOperationStateUncheckedCreateInput>
1649
+ /**
1650
+ * In case the InstanceOperationState was found with the provided `where` argument, update it with this data.
1651
+ */
1652
+ update: Prisma.XOR<Prisma.InstanceOperationStateUpdateInput, Prisma.InstanceOperationStateUncheckedUpdateInput>
1653
+ }
1654
+
1655
+ /**
1656
+ * InstanceOperationState delete
1657
+ */
1658
+ export type InstanceOperationStateDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1659
+ /**
1660
+ * Select specific fields to fetch from the InstanceOperationState
1661
+ */
1662
+ select?: Prisma.InstanceOperationStateSelect<ExtArgs> | null
1663
+ /**
1664
+ * Omit specific fields from the InstanceOperationState
1665
+ */
1666
+ omit?: Prisma.InstanceOperationStateOmit<ExtArgs> | null
1667
+ /**
1668
+ * Choose, which related nodes to fetch as well
1669
+ */
1670
+ include?: Prisma.InstanceOperationStateInclude<ExtArgs> | null
1671
+ /**
1672
+ * Filter which InstanceOperationState to delete.
1673
+ */
1674
+ where: Prisma.InstanceOperationStateWhereUniqueInput
1675
+ }
1676
+
1677
+ /**
1678
+ * InstanceOperationState deleteMany
1679
+ */
1680
+ export type InstanceOperationStateDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1681
+ /**
1682
+ * Filter which InstanceOperationStates to delete
1683
+ */
1684
+ where?: Prisma.InstanceOperationStateWhereInput
1685
+ /**
1686
+ * Limit how many InstanceOperationStates to delete.
1687
+ */
1688
+ limit?: number
1689
+ }
1690
+
1691
+ /**
1692
+ * InstanceOperationState without action
1693
+ */
1694
+ export type InstanceOperationStateDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1695
+ /**
1696
+ * Select specific fields to fetch from the InstanceOperationState
1697
+ */
1698
+ select?: Prisma.InstanceOperationStateSelect<ExtArgs> | null
1699
+ /**
1700
+ * Omit specific fields from the InstanceOperationState
1701
+ */
1702
+ omit?: Prisma.InstanceOperationStateOmit<ExtArgs> | null
1703
+ /**
1704
+ * Choose, which related nodes to fetch as well
1705
+ */
1706
+ include?: Prisma.InstanceOperationStateInclude<ExtArgs> | null
1707
+ }