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