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