@highstate/backend 0.9.16 → 0.9.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-5WVU2AK4.js +1535 -0
- package/dist/chunk-5WVU2AK4.js.map +1 -0
- package/dist/chunk-I7BWSAN6.js +49 -0
- package/dist/chunk-I7BWSAN6.js.map +1 -0
- package/dist/{chunk-RCB4AFGD.js → chunk-VB4YL327.js} +51 -71
- 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 +5 -4
- package/dist/index.js +7676 -6634
- package/dist/index.js.map +1 -1
- package/dist/library/package-resolution-worker.js +8 -6
- package/dist/library/package-resolution-worker.js.map +1 -1
- package/dist/library/worker/main.js +63 -58
- package/dist/library/worker/main.js.map +1 -1
- package/dist/shared/index.js +3 -216
- package/dist/shared/index.js.map +1 -1
- package/package.json +23 -11
- 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 +27 -0
- package/prisma/project/artifact.prisma +52 -0
- package/prisma/project/custom-status.prisma +46 -0
- package/prisma/project/evaluation.prisma +35 -0
- package/prisma/project/instance.prisma +160 -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 +41 -0
- package/prisma/project/secret.prisma +42 -0
- package/prisma/project/service-account.prisma +36 -0
- package/prisma/project/terminal.prisma +90 -0
- package/prisma/project/trigger.prisma +31 -0
- package/prisma/project/unlock-method.prisma +32 -0
- package/prisma/project/worker.prisma +138 -0
- package/src/artifact/abstractions.ts +13 -13
- package/src/artifact/encryption.ts +31 -15
- package/src/artifact/factory.ts +7 -10
- package/src/artifact/local.ts +33 -50
- package/src/business/api-key.ts +24 -36
- package/src/business/artifact.test.ts +978 -0
- package/src/business/artifact.ts +136 -215
- package/src/business/evaluation.ts +328 -0
- package/src/business/index.ts +5 -1
- package/src/business/instance-lock.test.ts +1060 -0
- package/src/business/instance-lock.ts +387 -77
- package/src/business/instance-state.test.ts +735 -0
- package/src/business/instance-state.ts +604 -217
- 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 +172 -112
- package/src/business/project.ts +407 -0
- package/src/business/secret.test.ts +513 -0
- package/src/business/secret.ts +194 -131
- 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 +391 -0
- package/src/business/worker.ts +250 -114
- package/src/common/codebase.ts +65 -0
- package/src/common/index.ts +3 -2
- package/src/common/logger.ts +5 -0
- package/src/common/utils.ts +4 -3
- package/src/config.ts +15 -12
- 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 +21 -14
- package/src/library/factory.ts +1 -1
- package/src/library/local.ts +86 -38
- package/src/library/package-resolution-worker.ts +1 -1
- package/src/library/worker/evaluator.ts +61 -48
- package/src/library/worker/loader.lite.ts +14 -1
- package/src/library/worker/main.ts +9 -16
- package/src/library/worker/protocol.ts +0 -12
- package/src/lock/manager.ts +12 -7
- package/src/orchestrator/manager.ts +198 -131
- 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 +235 -583
- package/src/orchestrator/operation.ts +446 -904
- 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 +49 -25
- package/src/pubsub/memory.ts +31 -0
- package/src/runner/abstractions.ts +38 -26
- package/src/runner/artifact-env.ts +17 -6
- package/src/runner/factory.ts +6 -6
- package/src/runner/force-abort.ts +3 -6
- package/src/runner/local.ts +79 -72
- package/src/runner/pulumi.ts +26 -63
- package/src/services.ts +214 -103
- package/src/shared/models/backend/index.ts +3 -1
- package/src/shared/models/backend/library.ts +12 -4
- package/src/shared/models/backend/project.ts +43 -23
- 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 -109
- 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 -56
- package/src/shared/models/project/artifact.ts +15 -105
- package/src/shared/models/project/custom-status.ts +12 -0
- package/src/shared/models/project/index.ts +9 -9
- package/src/shared/models/project/lock.ts +10 -78
- package/src/shared/models/project/model.ts +32 -0
- package/src/shared/models/project/operation.ts +222 -99
- package/src/shared/models/project/page.ts +37 -48
- package/src/shared/models/project/secret.ts +29 -103
- package/src/shared/models/project/service-account.ts +12 -17
- package/src/shared/models/project/state.ts +100 -390
- package/src/shared/models/project/terminal.ts +75 -89
- package/src/shared/models/project/trigger.ts +13 -49
- package/src/shared/models/project/unlock-method.ts +21 -20
- package/src/shared/models/project/worker.ts +89 -88
- package/src/shared/resolvers/graph-resolver.ts +62 -26
- package/src/shared/resolvers/index.ts +1 -1
- package/src/shared/resolvers/input-hash.ts +24 -14
- package/src/shared/resolvers/input.ts +48 -6
- package/src/shared/resolvers/registry.ts +5 -4
- package/src/shared/resolvers/state.ts +12 -1
- package/src/shared/resolvers/validation.ts +29 -9
- package/src/shared/utils/index.ts +1 -1
- 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 +31 -0
- package/src/unlock/index.ts +2 -0
- package/src/unlock/memory.ts +27 -0
- package/src/worker/abstractions.ts +7 -4
- package/src/worker/docker.ts +14 -19
- package/src/worker/manager.ts +376 -79
- package/dist/chunk-RCB4AFGD.js.map +0 -1
- package/dist/chunk-WHALQHEZ.js +0 -2017
- package/dist/chunk-WHALQHEZ.js.map +0 -1
- package/src/business/backend-unlock.ts +0 -10
- package/src/common/performance.ts +0 -44
- 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 -101
- package/src/project/abstractions.ts +0 -102
- package/src/project/factory.ts +0 -11
- package/src/project/index.ts +0 -3
- package/src/project/local.ts +0 -469
- package/src/project/manager.ts +0 -574
- package/src/pubsub/local.ts +0 -36
- package/src/pubsub/validation.ts +0 -33
- package/src/shared/models/project/component.ts +0 -45
- package/src/shared/models/project/instance.ts +0 -74
- package/src/state/abstractions.ts +0 -450
- package/src/state/encryption.ts +0 -59
- package/src/state/factory.ts +0 -20
- package/src/state/index.ts +0 -6
- package/src/state/local/backend.ts +0 -299
- package/src/state/local/collection.ts +0 -342
- package/src/state/local/index.ts +0 -2
- package/src/state/manager.ts +0 -819
- package/src/state/repository/index.ts +0 -2
- package/src/state/repository/repository.index.ts +0 -193
- package/src/state/repository/repository.ts +0 -458
- /package/src/{state → database/local}/keyring.ts +0 -0
|
@@ -0,0 +1,1268 @@
|
|
|
1
|
+
|
|
2
|
+
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
/**
|
|
6
|
+
* This file exports the `InstanceLock` 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 InstanceLock
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
export type InstanceLockModel = runtime.Types.Result.DefaultSelection<Prisma.$InstanceLockPayload>
|
|
21
|
+
|
|
22
|
+
export type AggregateInstanceLock = {
|
|
23
|
+
_count: InstanceLockCountAggregateOutputType | null
|
|
24
|
+
_min: InstanceLockMinAggregateOutputType | null
|
|
25
|
+
_max: InstanceLockMaxAggregateOutputType | null
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export type InstanceLockMinAggregateOutputType = {
|
|
29
|
+
stateId: string | null
|
|
30
|
+
token: string | null
|
|
31
|
+
acquiredAt: Date | null
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export type InstanceLockMaxAggregateOutputType = {
|
|
35
|
+
stateId: string | null
|
|
36
|
+
token: string | null
|
|
37
|
+
acquiredAt: Date | null
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export type InstanceLockCountAggregateOutputType = {
|
|
41
|
+
stateId: number
|
|
42
|
+
meta: number
|
|
43
|
+
token: number
|
|
44
|
+
acquiredAt: number
|
|
45
|
+
_all: number
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
export type InstanceLockMinAggregateInputType = {
|
|
50
|
+
stateId?: true
|
|
51
|
+
token?: true
|
|
52
|
+
acquiredAt?: true
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export type InstanceLockMaxAggregateInputType = {
|
|
56
|
+
stateId?: true
|
|
57
|
+
token?: true
|
|
58
|
+
acquiredAt?: true
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export type InstanceLockCountAggregateInputType = {
|
|
62
|
+
stateId?: true
|
|
63
|
+
meta?: true
|
|
64
|
+
token?: true
|
|
65
|
+
acquiredAt?: true
|
|
66
|
+
_all?: true
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export type InstanceLockAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
70
|
+
/**
|
|
71
|
+
* Filter which InstanceLock to aggregate.
|
|
72
|
+
*/
|
|
73
|
+
where?: Prisma.InstanceLockWhereInput
|
|
74
|
+
/**
|
|
75
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
76
|
+
*
|
|
77
|
+
* Determine the order of InstanceLocks to fetch.
|
|
78
|
+
*/
|
|
79
|
+
orderBy?: Prisma.InstanceLockOrderByWithRelationInput | Prisma.InstanceLockOrderByWithRelationInput[]
|
|
80
|
+
/**
|
|
81
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
82
|
+
*
|
|
83
|
+
* Sets the start position
|
|
84
|
+
*/
|
|
85
|
+
cursor?: Prisma.InstanceLockWhereUniqueInput
|
|
86
|
+
/**
|
|
87
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
88
|
+
*
|
|
89
|
+
* Take `±n` InstanceLocks from the position of the cursor.
|
|
90
|
+
*/
|
|
91
|
+
take?: number
|
|
92
|
+
/**
|
|
93
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
94
|
+
*
|
|
95
|
+
* Skip the first `n` InstanceLocks.
|
|
96
|
+
*/
|
|
97
|
+
skip?: number
|
|
98
|
+
/**
|
|
99
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
100
|
+
*
|
|
101
|
+
* Count returned InstanceLocks
|
|
102
|
+
**/
|
|
103
|
+
_count?: true | InstanceLockCountAggregateInputType
|
|
104
|
+
/**
|
|
105
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
106
|
+
*
|
|
107
|
+
* Select which fields to find the minimum value
|
|
108
|
+
**/
|
|
109
|
+
_min?: InstanceLockMinAggregateInputType
|
|
110
|
+
/**
|
|
111
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
112
|
+
*
|
|
113
|
+
* Select which fields to find the maximum value
|
|
114
|
+
**/
|
|
115
|
+
_max?: InstanceLockMaxAggregateInputType
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export type GetInstanceLockAggregateType<T extends InstanceLockAggregateArgs> = {
|
|
119
|
+
[P in keyof T & keyof AggregateInstanceLock]: P extends '_count' | 'count'
|
|
120
|
+
? T[P] extends true
|
|
121
|
+
? number
|
|
122
|
+
: Prisma.GetScalarType<T[P], AggregateInstanceLock[P]>
|
|
123
|
+
: Prisma.GetScalarType<T[P], AggregateInstanceLock[P]>
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
export type InstanceLockGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
130
|
+
where?: Prisma.InstanceLockWhereInput
|
|
131
|
+
orderBy?: Prisma.InstanceLockOrderByWithAggregationInput | Prisma.InstanceLockOrderByWithAggregationInput[]
|
|
132
|
+
by: Prisma.InstanceLockScalarFieldEnum[] | Prisma.InstanceLockScalarFieldEnum
|
|
133
|
+
having?: Prisma.InstanceLockScalarWhereWithAggregatesInput
|
|
134
|
+
take?: number
|
|
135
|
+
skip?: number
|
|
136
|
+
_count?: InstanceLockCountAggregateInputType | true
|
|
137
|
+
_min?: InstanceLockMinAggregateInputType
|
|
138
|
+
_max?: InstanceLockMaxAggregateInputType
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export type InstanceLockGroupByOutputType = {
|
|
142
|
+
stateId: string
|
|
143
|
+
meta: PrismaJson.CommonObjectMeta
|
|
144
|
+
token: string
|
|
145
|
+
acquiredAt: Date
|
|
146
|
+
_count: InstanceLockCountAggregateOutputType | null
|
|
147
|
+
_min: InstanceLockMinAggregateOutputType | null
|
|
148
|
+
_max: InstanceLockMaxAggregateOutputType | null
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
type GetInstanceLockGroupByPayload<T extends InstanceLockGroupByArgs> = Prisma.PrismaPromise<
|
|
152
|
+
Array<
|
|
153
|
+
Prisma.PickEnumerable<InstanceLockGroupByOutputType, T['by']> &
|
|
154
|
+
{
|
|
155
|
+
[P in ((keyof T) & (keyof InstanceLockGroupByOutputType))]: P extends '_count'
|
|
156
|
+
? T[P] extends boolean
|
|
157
|
+
? number
|
|
158
|
+
: Prisma.GetScalarType<T[P], InstanceLockGroupByOutputType[P]>
|
|
159
|
+
: Prisma.GetScalarType<T[P], InstanceLockGroupByOutputType[P]>
|
|
160
|
+
}
|
|
161
|
+
>
|
|
162
|
+
>
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
export type InstanceLockWhereInput = {
|
|
167
|
+
AND?: Prisma.InstanceLockWhereInput | Prisma.InstanceLockWhereInput[]
|
|
168
|
+
OR?: Prisma.InstanceLockWhereInput[]
|
|
169
|
+
NOT?: Prisma.InstanceLockWhereInput | Prisma.InstanceLockWhereInput[]
|
|
170
|
+
stateId?: Prisma.StringFilter<"InstanceLock"> | string
|
|
171
|
+
meta?: Prisma.JsonFilter<"InstanceLock">
|
|
172
|
+
token?: Prisma.StringFilter<"InstanceLock"> | string
|
|
173
|
+
acquiredAt?: Prisma.DateTimeFilter<"InstanceLock"> | Date | string
|
|
174
|
+
state?: Prisma.XOR<Prisma.InstanceStateScalarRelationFilter, Prisma.InstanceStateWhereInput>
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export type InstanceLockOrderByWithRelationInput = {
|
|
178
|
+
stateId?: Prisma.SortOrder
|
|
179
|
+
meta?: Prisma.SortOrder
|
|
180
|
+
token?: Prisma.SortOrder
|
|
181
|
+
acquiredAt?: Prisma.SortOrder
|
|
182
|
+
state?: Prisma.InstanceStateOrderByWithRelationInput
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export type InstanceLockWhereUniqueInput = Prisma.AtLeast<{
|
|
186
|
+
stateId?: string
|
|
187
|
+
AND?: Prisma.InstanceLockWhereInput | Prisma.InstanceLockWhereInput[]
|
|
188
|
+
OR?: Prisma.InstanceLockWhereInput[]
|
|
189
|
+
NOT?: Prisma.InstanceLockWhereInput | Prisma.InstanceLockWhereInput[]
|
|
190
|
+
meta?: Prisma.JsonFilter<"InstanceLock">
|
|
191
|
+
token?: Prisma.StringFilter<"InstanceLock"> | string
|
|
192
|
+
acquiredAt?: Prisma.DateTimeFilter<"InstanceLock"> | Date | string
|
|
193
|
+
state?: Prisma.XOR<Prisma.InstanceStateScalarRelationFilter, Prisma.InstanceStateWhereInput>
|
|
194
|
+
}, "stateId">
|
|
195
|
+
|
|
196
|
+
export type InstanceLockOrderByWithAggregationInput = {
|
|
197
|
+
stateId?: Prisma.SortOrder
|
|
198
|
+
meta?: Prisma.SortOrder
|
|
199
|
+
token?: Prisma.SortOrder
|
|
200
|
+
acquiredAt?: Prisma.SortOrder
|
|
201
|
+
_count?: Prisma.InstanceLockCountOrderByAggregateInput
|
|
202
|
+
_max?: Prisma.InstanceLockMaxOrderByAggregateInput
|
|
203
|
+
_min?: Prisma.InstanceLockMinOrderByAggregateInput
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export type InstanceLockScalarWhereWithAggregatesInput = {
|
|
207
|
+
AND?: Prisma.InstanceLockScalarWhereWithAggregatesInput | Prisma.InstanceLockScalarWhereWithAggregatesInput[]
|
|
208
|
+
OR?: Prisma.InstanceLockScalarWhereWithAggregatesInput[]
|
|
209
|
+
NOT?: Prisma.InstanceLockScalarWhereWithAggregatesInput | Prisma.InstanceLockScalarWhereWithAggregatesInput[]
|
|
210
|
+
stateId?: Prisma.StringWithAggregatesFilter<"InstanceLock"> | string
|
|
211
|
+
meta?: Prisma.JsonWithAggregatesFilter<"InstanceLock">
|
|
212
|
+
token?: Prisma.StringWithAggregatesFilter<"InstanceLock"> | string
|
|
213
|
+
acquiredAt?: Prisma.DateTimeWithAggregatesFilter<"InstanceLock"> | Date | string
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
export type InstanceLockCreateInput = {
|
|
217
|
+
meta: PrismaJson.CommonObjectMeta
|
|
218
|
+
token: string
|
|
219
|
+
acquiredAt?: Date | string
|
|
220
|
+
state: Prisma.InstanceStateCreateNestedOneWithoutLockInput
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
export type InstanceLockUncheckedCreateInput = {
|
|
224
|
+
stateId: string
|
|
225
|
+
meta: PrismaJson.CommonObjectMeta
|
|
226
|
+
token: string
|
|
227
|
+
acquiredAt?: Date | string
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
export type InstanceLockUpdateInput = {
|
|
231
|
+
meta?: PrismaJson.CommonObjectMeta
|
|
232
|
+
token?: Prisma.StringFieldUpdateOperationsInput | string
|
|
233
|
+
acquiredAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
234
|
+
state?: Prisma.InstanceStateUpdateOneRequiredWithoutLockNestedInput
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
export type InstanceLockUncheckedUpdateInput = {
|
|
238
|
+
stateId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
239
|
+
meta?: PrismaJson.CommonObjectMeta
|
|
240
|
+
token?: Prisma.StringFieldUpdateOperationsInput | string
|
|
241
|
+
acquiredAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
export type InstanceLockCreateManyInput = {
|
|
245
|
+
stateId: string
|
|
246
|
+
meta: PrismaJson.CommonObjectMeta
|
|
247
|
+
token: string
|
|
248
|
+
acquiredAt?: Date | string
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
export type InstanceLockUpdateManyMutationInput = {
|
|
252
|
+
meta?: PrismaJson.CommonObjectMeta
|
|
253
|
+
token?: Prisma.StringFieldUpdateOperationsInput | string
|
|
254
|
+
acquiredAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
export type InstanceLockUncheckedUpdateManyInput = {
|
|
258
|
+
stateId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
259
|
+
meta?: PrismaJson.CommonObjectMeta
|
|
260
|
+
token?: Prisma.StringFieldUpdateOperationsInput | string
|
|
261
|
+
acquiredAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
export type InstanceLockNullableScalarRelationFilter = {
|
|
265
|
+
is?: Prisma.InstanceLockWhereInput | null
|
|
266
|
+
isNot?: Prisma.InstanceLockWhereInput | null
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
export type InstanceLockCountOrderByAggregateInput = {
|
|
270
|
+
stateId?: Prisma.SortOrder
|
|
271
|
+
meta?: Prisma.SortOrder
|
|
272
|
+
token?: Prisma.SortOrder
|
|
273
|
+
acquiredAt?: Prisma.SortOrder
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
export type InstanceLockMaxOrderByAggregateInput = {
|
|
277
|
+
stateId?: Prisma.SortOrder
|
|
278
|
+
token?: Prisma.SortOrder
|
|
279
|
+
acquiredAt?: Prisma.SortOrder
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
export type InstanceLockMinOrderByAggregateInput = {
|
|
283
|
+
stateId?: Prisma.SortOrder
|
|
284
|
+
token?: Prisma.SortOrder
|
|
285
|
+
acquiredAt?: Prisma.SortOrder
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
export type InstanceLockCreateNestedOneWithoutStateInput = {
|
|
289
|
+
create?: Prisma.XOR<Prisma.InstanceLockCreateWithoutStateInput, Prisma.InstanceLockUncheckedCreateWithoutStateInput>
|
|
290
|
+
connectOrCreate?: Prisma.InstanceLockCreateOrConnectWithoutStateInput
|
|
291
|
+
connect?: Prisma.InstanceLockWhereUniqueInput
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
export type InstanceLockUncheckedCreateNestedOneWithoutStateInput = {
|
|
295
|
+
create?: Prisma.XOR<Prisma.InstanceLockCreateWithoutStateInput, Prisma.InstanceLockUncheckedCreateWithoutStateInput>
|
|
296
|
+
connectOrCreate?: Prisma.InstanceLockCreateOrConnectWithoutStateInput
|
|
297
|
+
connect?: Prisma.InstanceLockWhereUniqueInput
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
export type InstanceLockUpdateOneWithoutStateNestedInput = {
|
|
301
|
+
create?: Prisma.XOR<Prisma.InstanceLockCreateWithoutStateInput, Prisma.InstanceLockUncheckedCreateWithoutStateInput>
|
|
302
|
+
connectOrCreate?: Prisma.InstanceLockCreateOrConnectWithoutStateInput
|
|
303
|
+
upsert?: Prisma.InstanceLockUpsertWithoutStateInput
|
|
304
|
+
disconnect?: Prisma.InstanceLockWhereInput | boolean
|
|
305
|
+
delete?: Prisma.InstanceLockWhereInput | boolean
|
|
306
|
+
connect?: Prisma.InstanceLockWhereUniqueInput
|
|
307
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.InstanceLockUpdateToOneWithWhereWithoutStateInput, Prisma.InstanceLockUpdateWithoutStateInput>, Prisma.InstanceLockUncheckedUpdateWithoutStateInput>
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
export type InstanceLockUncheckedUpdateOneWithoutStateNestedInput = {
|
|
311
|
+
create?: Prisma.XOR<Prisma.InstanceLockCreateWithoutStateInput, Prisma.InstanceLockUncheckedCreateWithoutStateInput>
|
|
312
|
+
connectOrCreate?: Prisma.InstanceLockCreateOrConnectWithoutStateInput
|
|
313
|
+
upsert?: Prisma.InstanceLockUpsertWithoutStateInput
|
|
314
|
+
disconnect?: Prisma.InstanceLockWhereInput | boolean
|
|
315
|
+
delete?: Prisma.InstanceLockWhereInput | boolean
|
|
316
|
+
connect?: Prisma.InstanceLockWhereUniqueInput
|
|
317
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.InstanceLockUpdateToOneWithWhereWithoutStateInput, Prisma.InstanceLockUpdateWithoutStateInput>, Prisma.InstanceLockUncheckedUpdateWithoutStateInput>
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
export type InstanceLockCreateWithoutStateInput = {
|
|
321
|
+
meta: PrismaJson.CommonObjectMeta
|
|
322
|
+
token: string
|
|
323
|
+
acquiredAt?: Date | string
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
export type InstanceLockUncheckedCreateWithoutStateInput = {
|
|
327
|
+
meta: PrismaJson.CommonObjectMeta
|
|
328
|
+
token: string
|
|
329
|
+
acquiredAt?: Date | string
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
export type InstanceLockCreateOrConnectWithoutStateInput = {
|
|
333
|
+
where: Prisma.InstanceLockWhereUniqueInput
|
|
334
|
+
create: Prisma.XOR<Prisma.InstanceLockCreateWithoutStateInput, Prisma.InstanceLockUncheckedCreateWithoutStateInput>
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
export type InstanceLockUpsertWithoutStateInput = {
|
|
338
|
+
update: Prisma.XOR<Prisma.InstanceLockUpdateWithoutStateInput, Prisma.InstanceLockUncheckedUpdateWithoutStateInput>
|
|
339
|
+
create: Prisma.XOR<Prisma.InstanceLockCreateWithoutStateInput, Prisma.InstanceLockUncheckedCreateWithoutStateInput>
|
|
340
|
+
where?: Prisma.InstanceLockWhereInput
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
export type InstanceLockUpdateToOneWithWhereWithoutStateInput = {
|
|
344
|
+
where?: Prisma.InstanceLockWhereInput
|
|
345
|
+
data: Prisma.XOR<Prisma.InstanceLockUpdateWithoutStateInput, Prisma.InstanceLockUncheckedUpdateWithoutStateInput>
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
export type InstanceLockUpdateWithoutStateInput = {
|
|
349
|
+
meta?: PrismaJson.CommonObjectMeta
|
|
350
|
+
token?: Prisma.StringFieldUpdateOperationsInput | string
|
|
351
|
+
acquiredAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
export type InstanceLockUncheckedUpdateWithoutStateInput = {
|
|
355
|
+
meta?: PrismaJson.CommonObjectMeta
|
|
356
|
+
token?: Prisma.StringFieldUpdateOperationsInput | string
|
|
357
|
+
acquiredAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
export type InstanceLockSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
363
|
+
stateId?: boolean
|
|
364
|
+
meta?: boolean
|
|
365
|
+
token?: boolean
|
|
366
|
+
acquiredAt?: boolean
|
|
367
|
+
state?: boolean | Prisma.InstanceStateDefaultArgs<ExtArgs>
|
|
368
|
+
}, ExtArgs["result"]["instanceLock"]>
|
|
369
|
+
|
|
370
|
+
export type InstanceLockSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
371
|
+
stateId?: boolean
|
|
372
|
+
meta?: boolean
|
|
373
|
+
token?: boolean
|
|
374
|
+
acquiredAt?: boolean
|
|
375
|
+
state?: boolean | Prisma.InstanceStateDefaultArgs<ExtArgs>
|
|
376
|
+
}, ExtArgs["result"]["instanceLock"]>
|
|
377
|
+
|
|
378
|
+
export type InstanceLockSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
379
|
+
stateId?: boolean
|
|
380
|
+
meta?: boolean
|
|
381
|
+
token?: boolean
|
|
382
|
+
acquiredAt?: boolean
|
|
383
|
+
state?: boolean | Prisma.InstanceStateDefaultArgs<ExtArgs>
|
|
384
|
+
}, ExtArgs["result"]["instanceLock"]>
|
|
385
|
+
|
|
386
|
+
export type InstanceLockSelectScalar = {
|
|
387
|
+
stateId?: boolean
|
|
388
|
+
meta?: boolean
|
|
389
|
+
token?: boolean
|
|
390
|
+
acquiredAt?: boolean
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
export type InstanceLockOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"stateId" | "meta" | "token" | "acquiredAt", ExtArgs["result"]["instanceLock"]>
|
|
394
|
+
export type InstanceLockInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
395
|
+
state?: boolean | Prisma.InstanceStateDefaultArgs<ExtArgs>
|
|
396
|
+
}
|
|
397
|
+
export type InstanceLockIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
398
|
+
state?: boolean | Prisma.InstanceStateDefaultArgs<ExtArgs>
|
|
399
|
+
}
|
|
400
|
+
export type InstanceLockIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
401
|
+
state?: boolean | Prisma.InstanceStateDefaultArgs<ExtArgs>
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
export type $InstanceLockPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
405
|
+
name: "InstanceLock"
|
|
406
|
+
objects: {
|
|
407
|
+
/**
|
|
408
|
+
* The instance being locked.
|
|
409
|
+
*/
|
|
410
|
+
state: Prisma.$InstanceStatePayload<ExtArgs>
|
|
411
|
+
}
|
|
412
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
413
|
+
/**
|
|
414
|
+
* The ID of the instance state being locked.
|
|
415
|
+
*/
|
|
416
|
+
stateId: string
|
|
417
|
+
/**
|
|
418
|
+
* The metadata of the lock managed by the backend.
|
|
419
|
+
*
|
|
420
|
+
* [CommonObjectMeta]
|
|
421
|
+
*/
|
|
422
|
+
meta: PrismaJson.CommonObjectMeta
|
|
423
|
+
/**
|
|
424
|
+
* The CUIDv2 token to ensure ownership of the lock.
|
|
425
|
+
*/
|
|
426
|
+
token: string
|
|
427
|
+
/**
|
|
428
|
+
* The time when the lock was acquired.
|
|
429
|
+
*/
|
|
430
|
+
acquiredAt: Date
|
|
431
|
+
}, ExtArgs["result"]["instanceLock"]>
|
|
432
|
+
composites: {}
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
export type InstanceLockGetPayload<S extends boolean | null | undefined | InstanceLockDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$InstanceLockPayload, S>
|
|
436
|
+
|
|
437
|
+
export type InstanceLockCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
438
|
+
Omit<InstanceLockFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
439
|
+
select?: InstanceLockCountAggregateInputType | true
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
export interface InstanceLockDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
443
|
+
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['InstanceLock'], meta: { name: 'InstanceLock' } }
|
|
444
|
+
/**
|
|
445
|
+
* Find zero or one InstanceLock that matches the filter.
|
|
446
|
+
* @param {InstanceLockFindUniqueArgs} args - Arguments to find a InstanceLock
|
|
447
|
+
* @example
|
|
448
|
+
* // Get one InstanceLock
|
|
449
|
+
* const instanceLock = await prisma.instanceLock.findUnique({
|
|
450
|
+
* where: {
|
|
451
|
+
* // ... provide filter here
|
|
452
|
+
* }
|
|
453
|
+
* })
|
|
454
|
+
*/
|
|
455
|
+
findUnique<T extends InstanceLockFindUniqueArgs>(args: Prisma.SelectSubset<T, InstanceLockFindUniqueArgs<ExtArgs>>): Prisma.Prisma__InstanceLockClient<runtime.Types.Result.GetResult<Prisma.$InstanceLockPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
456
|
+
|
|
457
|
+
/**
|
|
458
|
+
* Find one InstanceLock that matches the filter or throw an error with `error.code='P2025'`
|
|
459
|
+
* if no matches were found.
|
|
460
|
+
* @param {InstanceLockFindUniqueOrThrowArgs} args - Arguments to find a InstanceLock
|
|
461
|
+
* @example
|
|
462
|
+
* // Get one InstanceLock
|
|
463
|
+
* const instanceLock = await prisma.instanceLock.findUniqueOrThrow({
|
|
464
|
+
* where: {
|
|
465
|
+
* // ... provide filter here
|
|
466
|
+
* }
|
|
467
|
+
* })
|
|
468
|
+
*/
|
|
469
|
+
findUniqueOrThrow<T extends InstanceLockFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, InstanceLockFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__InstanceLockClient<runtime.Types.Result.GetResult<Prisma.$InstanceLockPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
470
|
+
|
|
471
|
+
/**
|
|
472
|
+
* Find the first InstanceLock that matches the filter.
|
|
473
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
474
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
475
|
+
* @param {InstanceLockFindFirstArgs} args - Arguments to find a InstanceLock
|
|
476
|
+
* @example
|
|
477
|
+
* // Get one InstanceLock
|
|
478
|
+
* const instanceLock = await prisma.instanceLock.findFirst({
|
|
479
|
+
* where: {
|
|
480
|
+
* // ... provide filter here
|
|
481
|
+
* }
|
|
482
|
+
* })
|
|
483
|
+
*/
|
|
484
|
+
findFirst<T extends InstanceLockFindFirstArgs>(args?: Prisma.SelectSubset<T, InstanceLockFindFirstArgs<ExtArgs>>): Prisma.Prisma__InstanceLockClient<runtime.Types.Result.GetResult<Prisma.$InstanceLockPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
485
|
+
|
|
486
|
+
/**
|
|
487
|
+
* Find the first InstanceLock that matches the filter or
|
|
488
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
489
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
490
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
491
|
+
* @param {InstanceLockFindFirstOrThrowArgs} args - Arguments to find a InstanceLock
|
|
492
|
+
* @example
|
|
493
|
+
* // Get one InstanceLock
|
|
494
|
+
* const instanceLock = await prisma.instanceLock.findFirstOrThrow({
|
|
495
|
+
* where: {
|
|
496
|
+
* // ... provide filter here
|
|
497
|
+
* }
|
|
498
|
+
* })
|
|
499
|
+
*/
|
|
500
|
+
findFirstOrThrow<T extends InstanceLockFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, InstanceLockFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__InstanceLockClient<runtime.Types.Result.GetResult<Prisma.$InstanceLockPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
501
|
+
|
|
502
|
+
/**
|
|
503
|
+
* Find zero or more InstanceLocks that matches the filter.
|
|
504
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
505
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
506
|
+
* @param {InstanceLockFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
507
|
+
* @example
|
|
508
|
+
* // Get all InstanceLocks
|
|
509
|
+
* const instanceLocks = await prisma.instanceLock.findMany()
|
|
510
|
+
*
|
|
511
|
+
* // Get first 10 InstanceLocks
|
|
512
|
+
* const instanceLocks = await prisma.instanceLock.findMany({ take: 10 })
|
|
513
|
+
*
|
|
514
|
+
* // Only select the `stateId`
|
|
515
|
+
* const instanceLockWithStateIdOnly = await prisma.instanceLock.findMany({ select: { stateId: true } })
|
|
516
|
+
*
|
|
517
|
+
*/
|
|
518
|
+
findMany<T extends InstanceLockFindManyArgs>(args?: Prisma.SelectSubset<T, InstanceLockFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$InstanceLockPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
519
|
+
|
|
520
|
+
/**
|
|
521
|
+
* Create a InstanceLock.
|
|
522
|
+
* @param {InstanceLockCreateArgs} args - Arguments to create a InstanceLock.
|
|
523
|
+
* @example
|
|
524
|
+
* // Create one InstanceLock
|
|
525
|
+
* const InstanceLock = await prisma.instanceLock.create({
|
|
526
|
+
* data: {
|
|
527
|
+
* // ... data to create a InstanceLock
|
|
528
|
+
* }
|
|
529
|
+
* })
|
|
530
|
+
*
|
|
531
|
+
*/
|
|
532
|
+
create<T extends InstanceLockCreateArgs>(args: Prisma.SelectSubset<T, InstanceLockCreateArgs<ExtArgs>>): Prisma.Prisma__InstanceLockClient<runtime.Types.Result.GetResult<Prisma.$InstanceLockPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
533
|
+
|
|
534
|
+
/**
|
|
535
|
+
* Create many InstanceLocks.
|
|
536
|
+
* @param {InstanceLockCreateManyArgs} args - Arguments to create many InstanceLocks.
|
|
537
|
+
* @example
|
|
538
|
+
* // Create many InstanceLocks
|
|
539
|
+
* const instanceLock = await prisma.instanceLock.createMany({
|
|
540
|
+
* data: [
|
|
541
|
+
* // ... provide data here
|
|
542
|
+
* ]
|
|
543
|
+
* })
|
|
544
|
+
*
|
|
545
|
+
*/
|
|
546
|
+
createMany<T extends InstanceLockCreateManyArgs>(args?: Prisma.SelectSubset<T, InstanceLockCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
547
|
+
|
|
548
|
+
/**
|
|
549
|
+
* Create many InstanceLocks and returns the data saved in the database.
|
|
550
|
+
* @param {InstanceLockCreateManyAndReturnArgs} args - Arguments to create many InstanceLocks.
|
|
551
|
+
* @example
|
|
552
|
+
* // Create many InstanceLocks
|
|
553
|
+
* const instanceLock = await prisma.instanceLock.createManyAndReturn({
|
|
554
|
+
* data: [
|
|
555
|
+
* // ... provide data here
|
|
556
|
+
* ]
|
|
557
|
+
* })
|
|
558
|
+
*
|
|
559
|
+
* // Create many InstanceLocks and only return the `stateId`
|
|
560
|
+
* const instanceLockWithStateIdOnly = await prisma.instanceLock.createManyAndReturn({
|
|
561
|
+
* select: { stateId: true },
|
|
562
|
+
* data: [
|
|
563
|
+
* // ... provide data here
|
|
564
|
+
* ]
|
|
565
|
+
* })
|
|
566
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
567
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
568
|
+
*
|
|
569
|
+
*/
|
|
570
|
+
createManyAndReturn<T extends InstanceLockCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, InstanceLockCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$InstanceLockPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
571
|
+
|
|
572
|
+
/**
|
|
573
|
+
* Delete a InstanceLock.
|
|
574
|
+
* @param {InstanceLockDeleteArgs} args - Arguments to delete one InstanceLock.
|
|
575
|
+
* @example
|
|
576
|
+
* // Delete one InstanceLock
|
|
577
|
+
* const InstanceLock = await prisma.instanceLock.delete({
|
|
578
|
+
* where: {
|
|
579
|
+
* // ... filter to delete one InstanceLock
|
|
580
|
+
* }
|
|
581
|
+
* })
|
|
582
|
+
*
|
|
583
|
+
*/
|
|
584
|
+
delete<T extends InstanceLockDeleteArgs>(args: Prisma.SelectSubset<T, InstanceLockDeleteArgs<ExtArgs>>): Prisma.Prisma__InstanceLockClient<runtime.Types.Result.GetResult<Prisma.$InstanceLockPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
585
|
+
|
|
586
|
+
/**
|
|
587
|
+
* Update one InstanceLock.
|
|
588
|
+
* @param {InstanceLockUpdateArgs} args - Arguments to update one InstanceLock.
|
|
589
|
+
* @example
|
|
590
|
+
* // Update one InstanceLock
|
|
591
|
+
* const instanceLock = await prisma.instanceLock.update({
|
|
592
|
+
* where: {
|
|
593
|
+
* // ... provide filter here
|
|
594
|
+
* },
|
|
595
|
+
* data: {
|
|
596
|
+
* // ... provide data here
|
|
597
|
+
* }
|
|
598
|
+
* })
|
|
599
|
+
*
|
|
600
|
+
*/
|
|
601
|
+
update<T extends InstanceLockUpdateArgs>(args: Prisma.SelectSubset<T, InstanceLockUpdateArgs<ExtArgs>>): Prisma.Prisma__InstanceLockClient<runtime.Types.Result.GetResult<Prisma.$InstanceLockPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
602
|
+
|
|
603
|
+
/**
|
|
604
|
+
* Delete zero or more InstanceLocks.
|
|
605
|
+
* @param {InstanceLockDeleteManyArgs} args - Arguments to filter InstanceLocks to delete.
|
|
606
|
+
* @example
|
|
607
|
+
* // Delete a few InstanceLocks
|
|
608
|
+
* const { count } = await prisma.instanceLock.deleteMany({
|
|
609
|
+
* where: {
|
|
610
|
+
* // ... provide filter here
|
|
611
|
+
* }
|
|
612
|
+
* })
|
|
613
|
+
*
|
|
614
|
+
*/
|
|
615
|
+
deleteMany<T extends InstanceLockDeleteManyArgs>(args?: Prisma.SelectSubset<T, InstanceLockDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
616
|
+
|
|
617
|
+
/**
|
|
618
|
+
* Update zero or more InstanceLocks.
|
|
619
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
620
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
621
|
+
* @param {InstanceLockUpdateManyArgs} args - Arguments to update one or more rows.
|
|
622
|
+
* @example
|
|
623
|
+
* // Update many InstanceLocks
|
|
624
|
+
* const instanceLock = await prisma.instanceLock.updateMany({
|
|
625
|
+
* where: {
|
|
626
|
+
* // ... provide filter here
|
|
627
|
+
* },
|
|
628
|
+
* data: {
|
|
629
|
+
* // ... provide data here
|
|
630
|
+
* }
|
|
631
|
+
* })
|
|
632
|
+
*
|
|
633
|
+
*/
|
|
634
|
+
updateMany<T extends InstanceLockUpdateManyArgs>(args: Prisma.SelectSubset<T, InstanceLockUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
635
|
+
|
|
636
|
+
/**
|
|
637
|
+
* Update zero or more InstanceLocks and returns the data updated in the database.
|
|
638
|
+
* @param {InstanceLockUpdateManyAndReturnArgs} args - Arguments to update many InstanceLocks.
|
|
639
|
+
* @example
|
|
640
|
+
* // Update many InstanceLocks
|
|
641
|
+
* const instanceLock = await prisma.instanceLock.updateManyAndReturn({
|
|
642
|
+
* where: {
|
|
643
|
+
* // ... provide filter here
|
|
644
|
+
* },
|
|
645
|
+
* data: [
|
|
646
|
+
* // ... provide data here
|
|
647
|
+
* ]
|
|
648
|
+
* })
|
|
649
|
+
*
|
|
650
|
+
* // Update zero or more InstanceLocks and only return the `stateId`
|
|
651
|
+
* const instanceLockWithStateIdOnly = await prisma.instanceLock.updateManyAndReturn({
|
|
652
|
+
* select: { stateId: true },
|
|
653
|
+
* where: {
|
|
654
|
+
* // ... provide filter here
|
|
655
|
+
* },
|
|
656
|
+
* data: [
|
|
657
|
+
* // ... provide data here
|
|
658
|
+
* ]
|
|
659
|
+
* })
|
|
660
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
661
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
662
|
+
*
|
|
663
|
+
*/
|
|
664
|
+
updateManyAndReturn<T extends InstanceLockUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, InstanceLockUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$InstanceLockPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
665
|
+
|
|
666
|
+
/**
|
|
667
|
+
* Create or update one InstanceLock.
|
|
668
|
+
* @param {InstanceLockUpsertArgs} args - Arguments to update or create a InstanceLock.
|
|
669
|
+
* @example
|
|
670
|
+
* // Update or create a InstanceLock
|
|
671
|
+
* const instanceLock = await prisma.instanceLock.upsert({
|
|
672
|
+
* create: {
|
|
673
|
+
* // ... data to create a InstanceLock
|
|
674
|
+
* },
|
|
675
|
+
* update: {
|
|
676
|
+
* // ... in case it already exists, update
|
|
677
|
+
* },
|
|
678
|
+
* where: {
|
|
679
|
+
* // ... the filter for the InstanceLock we want to update
|
|
680
|
+
* }
|
|
681
|
+
* })
|
|
682
|
+
*/
|
|
683
|
+
upsert<T extends InstanceLockUpsertArgs>(args: Prisma.SelectSubset<T, InstanceLockUpsertArgs<ExtArgs>>): Prisma.Prisma__InstanceLockClient<runtime.Types.Result.GetResult<Prisma.$InstanceLockPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
684
|
+
|
|
685
|
+
|
|
686
|
+
/**
|
|
687
|
+
* Count the number of InstanceLocks.
|
|
688
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
689
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
690
|
+
* @param {InstanceLockCountArgs} args - Arguments to filter InstanceLocks to count.
|
|
691
|
+
* @example
|
|
692
|
+
* // Count the number of InstanceLocks
|
|
693
|
+
* const count = await prisma.instanceLock.count({
|
|
694
|
+
* where: {
|
|
695
|
+
* // ... the filter for the InstanceLocks we want to count
|
|
696
|
+
* }
|
|
697
|
+
* })
|
|
698
|
+
**/
|
|
699
|
+
count<T extends InstanceLockCountArgs>(
|
|
700
|
+
args?: Prisma.Subset<T, InstanceLockCountArgs>,
|
|
701
|
+
): Prisma.PrismaPromise<
|
|
702
|
+
T extends runtime.Types.Utils.Record<'select', any>
|
|
703
|
+
? T['select'] extends true
|
|
704
|
+
? number
|
|
705
|
+
: Prisma.GetScalarType<T['select'], InstanceLockCountAggregateOutputType>
|
|
706
|
+
: number
|
|
707
|
+
>
|
|
708
|
+
|
|
709
|
+
/**
|
|
710
|
+
* Allows you to perform aggregations operations on a InstanceLock.
|
|
711
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
712
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
713
|
+
* @param {InstanceLockAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
714
|
+
* @example
|
|
715
|
+
* // Ordered by age ascending
|
|
716
|
+
* // Where email contains prisma.io
|
|
717
|
+
* // Limited to the 10 users
|
|
718
|
+
* const aggregations = await prisma.user.aggregate({
|
|
719
|
+
* _avg: {
|
|
720
|
+
* age: true,
|
|
721
|
+
* },
|
|
722
|
+
* where: {
|
|
723
|
+
* email: {
|
|
724
|
+
* contains: "prisma.io",
|
|
725
|
+
* },
|
|
726
|
+
* },
|
|
727
|
+
* orderBy: {
|
|
728
|
+
* age: "asc",
|
|
729
|
+
* },
|
|
730
|
+
* take: 10,
|
|
731
|
+
* })
|
|
732
|
+
**/
|
|
733
|
+
aggregate<T extends InstanceLockAggregateArgs>(args: Prisma.Subset<T, InstanceLockAggregateArgs>): Prisma.PrismaPromise<GetInstanceLockAggregateType<T>>
|
|
734
|
+
|
|
735
|
+
/**
|
|
736
|
+
* Group by InstanceLock.
|
|
737
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
738
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
739
|
+
* @param {InstanceLockGroupByArgs} args - Group by arguments.
|
|
740
|
+
* @example
|
|
741
|
+
* // Group by city, order by createdAt, get count
|
|
742
|
+
* const result = await prisma.user.groupBy({
|
|
743
|
+
* by: ['city', 'createdAt'],
|
|
744
|
+
* orderBy: {
|
|
745
|
+
* createdAt: true
|
|
746
|
+
* },
|
|
747
|
+
* _count: {
|
|
748
|
+
* _all: true
|
|
749
|
+
* },
|
|
750
|
+
* })
|
|
751
|
+
*
|
|
752
|
+
**/
|
|
753
|
+
groupBy<
|
|
754
|
+
T extends InstanceLockGroupByArgs,
|
|
755
|
+
HasSelectOrTake extends Prisma.Or<
|
|
756
|
+
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
757
|
+
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
758
|
+
>,
|
|
759
|
+
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
760
|
+
? { orderBy: InstanceLockGroupByArgs['orderBy'] }
|
|
761
|
+
: { orderBy?: InstanceLockGroupByArgs['orderBy'] },
|
|
762
|
+
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
763
|
+
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
764
|
+
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
765
|
+
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
766
|
+
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
767
|
+
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
|
768
|
+
InputErrors extends ByEmpty extends Prisma.True
|
|
769
|
+
? `Error: "by" must not be empty.`
|
|
770
|
+
: HavingValid extends Prisma.False
|
|
771
|
+
? {
|
|
772
|
+
[P in HavingFields]: P extends ByFields
|
|
773
|
+
? never
|
|
774
|
+
: P extends string
|
|
775
|
+
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
776
|
+
: [
|
|
777
|
+
Error,
|
|
778
|
+
'Field ',
|
|
779
|
+
P,
|
|
780
|
+
` in "having" needs to be provided in "by"`,
|
|
781
|
+
]
|
|
782
|
+
}[HavingFields]
|
|
783
|
+
: 'take' extends Prisma.Keys<T>
|
|
784
|
+
? 'orderBy' extends Prisma.Keys<T>
|
|
785
|
+
? ByValid extends Prisma.True
|
|
786
|
+
? {}
|
|
787
|
+
: {
|
|
788
|
+
[P in OrderFields]: P extends ByFields
|
|
789
|
+
? never
|
|
790
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
791
|
+
}[OrderFields]
|
|
792
|
+
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
793
|
+
: 'skip' extends Prisma.Keys<T>
|
|
794
|
+
? 'orderBy' extends Prisma.Keys<T>
|
|
795
|
+
? ByValid extends Prisma.True
|
|
796
|
+
? {}
|
|
797
|
+
: {
|
|
798
|
+
[P in OrderFields]: P extends ByFields
|
|
799
|
+
? never
|
|
800
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
801
|
+
}[OrderFields]
|
|
802
|
+
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
803
|
+
: ByValid extends Prisma.True
|
|
804
|
+
? {}
|
|
805
|
+
: {
|
|
806
|
+
[P in OrderFields]: P extends ByFields
|
|
807
|
+
? never
|
|
808
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
809
|
+
}[OrderFields]
|
|
810
|
+
>(args: Prisma.SubsetIntersection<T, InstanceLockGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetInstanceLockGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
811
|
+
/**
|
|
812
|
+
* Fields of the InstanceLock model
|
|
813
|
+
*/
|
|
814
|
+
readonly fields: InstanceLockFieldRefs;
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
/**
|
|
818
|
+
* The delegate class that acts as a "Promise-like" for InstanceLock.
|
|
819
|
+
* Why is this prefixed with `Prisma__`?
|
|
820
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
821
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
822
|
+
*/
|
|
823
|
+
export interface Prisma__InstanceLockClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
824
|
+
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
825
|
+
state<T extends Prisma.InstanceStateDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.InstanceStateDefaultArgs<ExtArgs>>): Prisma.Prisma__InstanceStateClient<runtime.Types.Result.GetResult<Prisma.$InstanceStatePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
826
|
+
/**
|
|
827
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
828
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
829
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
830
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
831
|
+
*/
|
|
832
|
+
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>
|
|
833
|
+
/**
|
|
834
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
835
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
836
|
+
* @returns A Promise for the completion of the callback.
|
|
837
|
+
*/
|
|
838
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
839
|
+
/**
|
|
840
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
841
|
+
* resolved value cannot be modified from the callback.
|
|
842
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
843
|
+
* @returns A Promise for the completion of the callback.
|
|
844
|
+
*/
|
|
845
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
|
|
849
|
+
|
|
850
|
+
|
|
851
|
+
/**
|
|
852
|
+
* Fields of the InstanceLock model
|
|
853
|
+
*/
|
|
854
|
+
export interface InstanceLockFieldRefs {
|
|
855
|
+
readonly stateId: Prisma.FieldRef<"InstanceLock", 'String'>
|
|
856
|
+
readonly meta: Prisma.FieldRef<"InstanceLock", 'Json'>
|
|
857
|
+
readonly token: Prisma.FieldRef<"InstanceLock", 'String'>
|
|
858
|
+
readonly acquiredAt: Prisma.FieldRef<"InstanceLock", 'DateTime'>
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
|
|
862
|
+
// Custom InputTypes
|
|
863
|
+
/**
|
|
864
|
+
* InstanceLock findUnique
|
|
865
|
+
*/
|
|
866
|
+
export type InstanceLockFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
867
|
+
/**
|
|
868
|
+
* Select specific fields to fetch from the InstanceLock
|
|
869
|
+
*/
|
|
870
|
+
select?: Prisma.InstanceLockSelect<ExtArgs> | null
|
|
871
|
+
/**
|
|
872
|
+
* Omit specific fields from the InstanceLock
|
|
873
|
+
*/
|
|
874
|
+
omit?: Prisma.InstanceLockOmit<ExtArgs> | null
|
|
875
|
+
/**
|
|
876
|
+
* Choose, which related nodes to fetch as well
|
|
877
|
+
*/
|
|
878
|
+
include?: Prisma.InstanceLockInclude<ExtArgs> | null
|
|
879
|
+
/**
|
|
880
|
+
* Filter, which InstanceLock to fetch.
|
|
881
|
+
*/
|
|
882
|
+
where: Prisma.InstanceLockWhereUniqueInput
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
/**
|
|
886
|
+
* InstanceLock findUniqueOrThrow
|
|
887
|
+
*/
|
|
888
|
+
export type InstanceLockFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
889
|
+
/**
|
|
890
|
+
* Select specific fields to fetch from the InstanceLock
|
|
891
|
+
*/
|
|
892
|
+
select?: Prisma.InstanceLockSelect<ExtArgs> | null
|
|
893
|
+
/**
|
|
894
|
+
* Omit specific fields from the InstanceLock
|
|
895
|
+
*/
|
|
896
|
+
omit?: Prisma.InstanceLockOmit<ExtArgs> | null
|
|
897
|
+
/**
|
|
898
|
+
* Choose, which related nodes to fetch as well
|
|
899
|
+
*/
|
|
900
|
+
include?: Prisma.InstanceLockInclude<ExtArgs> | null
|
|
901
|
+
/**
|
|
902
|
+
* Filter, which InstanceLock to fetch.
|
|
903
|
+
*/
|
|
904
|
+
where: Prisma.InstanceLockWhereUniqueInput
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
/**
|
|
908
|
+
* InstanceLock findFirst
|
|
909
|
+
*/
|
|
910
|
+
export type InstanceLockFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
911
|
+
/**
|
|
912
|
+
* Select specific fields to fetch from the InstanceLock
|
|
913
|
+
*/
|
|
914
|
+
select?: Prisma.InstanceLockSelect<ExtArgs> | null
|
|
915
|
+
/**
|
|
916
|
+
* Omit specific fields from the InstanceLock
|
|
917
|
+
*/
|
|
918
|
+
omit?: Prisma.InstanceLockOmit<ExtArgs> | null
|
|
919
|
+
/**
|
|
920
|
+
* Choose, which related nodes to fetch as well
|
|
921
|
+
*/
|
|
922
|
+
include?: Prisma.InstanceLockInclude<ExtArgs> | null
|
|
923
|
+
/**
|
|
924
|
+
* Filter, which InstanceLock to fetch.
|
|
925
|
+
*/
|
|
926
|
+
where?: Prisma.InstanceLockWhereInput
|
|
927
|
+
/**
|
|
928
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
929
|
+
*
|
|
930
|
+
* Determine the order of InstanceLocks to fetch.
|
|
931
|
+
*/
|
|
932
|
+
orderBy?: Prisma.InstanceLockOrderByWithRelationInput | Prisma.InstanceLockOrderByWithRelationInput[]
|
|
933
|
+
/**
|
|
934
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
935
|
+
*
|
|
936
|
+
* Sets the position for searching for InstanceLocks.
|
|
937
|
+
*/
|
|
938
|
+
cursor?: Prisma.InstanceLockWhereUniqueInput
|
|
939
|
+
/**
|
|
940
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
941
|
+
*
|
|
942
|
+
* Take `±n` InstanceLocks from the position of the cursor.
|
|
943
|
+
*/
|
|
944
|
+
take?: number
|
|
945
|
+
/**
|
|
946
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
947
|
+
*
|
|
948
|
+
* Skip the first `n` InstanceLocks.
|
|
949
|
+
*/
|
|
950
|
+
skip?: number
|
|
951
|
+
/**
|
|
952
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
953
|
+
*
|
|
954
|
+
* Filter by unique combinations of InstanceLocks.
|
|
955
|
+
*/
|
|
956
|
+
distinct?: Prisma.InstanceLockScalarFieldEnum | Prisma.InstanceLockScalarFieldEnum[]
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
/**
|
|
960
|
+
* InstanceLock findFirstOrThrow
|
|
961
|
+
*/
|
|
962
|
+
export type InstanceLockFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
963
|
+
/**
|
|
964
|
+
* Select specific fields to fetch from the InstanceLock
|
|
965
|
+
*/
|
|
966
|
+
select?: Prisma.InstanceLockSelect<ExtArgs> | null
|
|
967
|
+
/**
|
|
968
|
+
* Omit specific fields from the InstanceLock
|
|
969
|
+
*/
|
|
970
|
+
omit?: Prisma.InstanceLockOmit<ExtArgs> | null
|
|
971
|
+
/**
|
|
972
|
+
* Choose, which related nodes to fetch as well
|
|
973
|
+
*/
|
|
974
|
+
include?: Prisma.InstanceLockInclude<ExtArgs> | null
|
|
975
|
+
/**
|
|
976
|
+
* Filter, which InstanceLock to fetch.
|
|
977
|
+
*/
|
|
978
|
+
where?: Prisma.InstanceLockWhereInput
|
|
979
|
+
/**
|
|
980
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
981
|
+
*
|
|
982
|
+
* Determine the order of InstanceLocks to fetch.
|
|
983
|
+
*/
|
|
984
|
+
orderBy?: Prisma.InstanceLockOrderByWithRelationInput | Prisma.InstanceLockOrderByWithRelationInput[]
|
|
985
|
+
/**
|
|
986
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
987
|
+
*
|
|
988
|
+
* Sets the position for searching for InstanceLocks.
|
|
989
|
+
*/
|
|
990
|
+
cursor?: Prisma.InstanceLockWhereUniqueInput
|
|
991
|
+
/**
|
|
992
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
993
|
+
*
|
|
994
|
+
* Take `±n` InstanceLocks from the position of the cursor.
|
|
995
|
+
*/
|
|
996
|
+
take?: number
|
|
997
|
+
/**
|
|
998
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
999
|
+
*
|
|
1000
|
+
* Skip the first `n` InstanceLocks.
|
|
1001
|
+
*/
|
|
1002
|
+
skip?: number
|
|
1003
|
+
/**
|
|
1004
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1005
|
+
*
|
|
1006
|
+
* Filter by unique combinations of InstanceLocks.
|
|
1007
|
+
*/
|
|
1008
|
+
distinct?: Prisma.InstanceLockScalarFieldEnum | Prisma.InstanceLockScalarFieldEnum[]
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
/**
|
|
1012
|
+
* InstanceLock findMany
|
|
1013
|
+
*/
|
|
1014
|
+
export type InstanceLockFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1015
|
+
/**
|
|
1016
|
+
* Select specific fields to fetch from the InstanceLock
|
|
1017
|
+
*/
|
|
1018
|
+
select?: Prisma.InstanceLockSelect<ExtArgs> | null
|
|
1019
|
+
/**
|
|
1020
|
+
* Omit specific fields from the InstanceLock
|
|
1021
|
+
*/
|
|
1022
|
+
omit?: Prisma.InstanceLockOmit<ExtArgs> | null
|
|
1023
|
+
/**
|
|
1024
|
+
* Choose, which related nodes to fetch as well
|
|
1025
|
+
*/
|
|
1026
|
+
include?: Prisma.InstanceLockInclude<ExtArgs> | null
|
|
1027
|
+
/**
|
|
1028
|
+
* Filter, which InstanceLocks to fetch.
|
|
1029
|
+
*/
|
|
1030
|
+
where?: Prisma.InstanceLockWhereInput
|
|
1031
|
+
/**
|
|
1032
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1033
|
+
*
|
|
1034
|
+
* Determine the order of InstanceLocks to fetch.
|
|
1035
|
+
*/
|
|
1036
|
+
orderBy?: Prisma.InstanceLockOrderByWithRelationInput | Prisma.InstanceLockOrderByWithRelationInput[]
|
|
1037
|
+
/**
|
|
1038
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1039
|
+
*
|
|
1040
|
+
* Sets the position for listing InstanceLocks.
|
|
1041
|
+
*/
|
|
1042
|
+
cursor?: Prisma.InstanceLockWhereUniqueInput
|
|
1043
|
+
/**
|
|
1044
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1045
|
+
*
|
|
1046
|
+
* Take `±n` InstanceLocks from the position of the cursor.
|
|
1047
|
+
*/
|
|
1048
|
+
take?: number
|
|
1049
|
+
/**
|
|
1050
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1051
|
+
*
|
|
1052
|
+
* Skip the first `n` InstanceLocks.
|
|
1053
|
+
*/
|
|
1054
|
+
skip?: number
|
|
1055
|
+
distinct?: Prisma.InstanceLockScalarFieldEnum | Prisma.InstanceLockScalarFieldEnum[]
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
/**
|
|
1059
|
+
* InstanceLock create
|
|
1060
|
+
*/
|
|
1061
|
+
export type InstanceLockCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1062
|
+
/**
|
|
1063
|
+
* Select specific fields to fetch from the InstanceLock
|
|
1064
|
+
*/
|
|
1065
|
+
select?: Prisma.InstanceLockSelect<ExtArgs> | null
|
|
1066
|
+
/**
|
|
1067
|
+
* Omit specific fields from the InstanceLock
|
|
1068
|
+
*/
|
|
1069
|
+
omit?: Prisma.InstanceLockOmit<ExtArgs> | null
|
|
1070
|
+
/**
|
|
1071
|
+
* Choose, which related nodes to fetch as well
|
|
1072
|
+
*/
|
|
1073
|
+
include?: Prisma.InstanceLockInclude<ExtArgs> | null
|
|
1074
|
+
/**
|
|
1075
|
+
* The data needed to create a InstanceLock.
|
|
1076
|
+
*/
|
|
1077
|
+
data: Prisma.XOR<Prisma.InstanceLockCreateInput, Prisma.InstanceLockUncheckedCreateInput>
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
/**
|
|
1081
|
+
* InstanceLock createMany
|
|
1082
|
+
*/
|
|
1083
|
+
export type InstanceLockCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1084
|
+
/**
|
|
1085
|
+
* The data used to create many InstanceLocks.
|
|
1086
|
+
*/
|
|
1087
|
+
data: Prisma.InstanceLockCreateManyInput | Prisma.InstanceLockCreateManyInput[]
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
/**
|
|
1091
|
+
* InstanceLock createManyAndReturn
|
|
1092
|
+
*/
|
|
1093
|
+
export type InstanceLockCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1094
|
+
/**
|
|
1095
|
+
* Select specific fields to fetch from the InstanceLock
|
|
1096
|
+
*/
|
|
1097
|
+
select?: Prisma.InstanceLockSelectCreateManyAndReturn<ExtArgs> | null
|
|
1098
|
+
/**
|
|
1099
|
+
* Omit specific fields from the InstanceLock
|
|
1100
|
+
*/
|
|
1101
|
+
omit?: Prisma.InstanceLockOmit<ExtArgs> | null
|
|
1102
|
+
/**
|
|
1103
|
+
* The data used to create many InstanceLocks.
|
|
1104
|
+
*/
|
|
1105
|
+
data: Prisma.InstanceLockCreateManyInput | Prisma.InstanceLockCreateManyInput[]
|
|
1106
|
+
/**
|
|
1107
|
+
* Choose, which related nodes to fetch as well
|
|
1108
|
+
*/
|
|
1109
|
+
include?: Prisma.InstanceLockIncludeCreateManyAndReturn<ExtArgs> | null
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1112
|
+
/**
|
|
1113
|
+
* InstanceLock update
|
|
1114
|
+
*/
|
|
1115
|
+
export type InstanceLockUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1116
|
+
/**
|
|
1117
|
+
* Select specific fields to fetch from the InstanceLock
|
|
1118
|
+
*/
|
|
1119
|
+
select?: Prisma.InstanceLockSelect<ExtArgs> | null
|
|
1120
|
+
/**
|
|
1121
|
+
* Omit specific fields from the InstanceLock
|
|
1122
|
+
*/
|
|
1123
|
+
omit?: Prisma.InstanceLockOmit<ExtArgs> | null
|
|
1124
|
+
/**
|
|
1125
|
+
* Choose, which related nodes to fetch as well
|
|
1126
|
+
*/
|
|
1127
|
+
include?: Prisma.InstanceLockInclude<ExtArgs> | null
|
|
1128
|
+
/**
|
|
1129
|
+
* The data needed to update a InstanceLock.
|
|
1130
|
+
*/
|
|
1131
|
+
data: Prisma.XOR<Prisma.InstanceLockUpdateInput, Prisma.InstanceLockUncheckedUpdateInput>
|
|
1132
|
+
/**
|
|
1133
|
+
* Choose, which InstanceLock to update.
|
|
1134
|
+
*/
|
|
1135
|
+
where: Prisma.InstanceLockWhereUniqueInput
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
/**
|
|
1139
|
+
* InstanceLock updateMany
|
|
1140
|
+
*/
|
|
1141
|
+
export type InstanceLockUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1142
|
+
/**
|
|
1143
|
+
* The data used to update InstanceLocks.
|
|
1144
|
+
*/
|
|
1145
|
+
data: Prisma.XOR<Prisma.InstanceLockUpdateManyMutationInput, Prisma.InstanceLockUncheckedUpdateManyInput>
|
|
1146
|
+
/**
|
|
1147
|
+
* Filter which InstanceLocks to update
|
|
1148
|
+
*/
|
|
1149
|
+
where?: Prisma.InstanceLockWhereInput
|
|
1150
|
+
/**
|
|
1151
|
+
* Limit how many InstanceLocks to update.
|
|
1152
|
+
*/
|
|
1153
|
+
limit?: number
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1156
|
+
/**
|
|
1157
|
+
* InstanceLock updateManyAndReturn
|
|
1158
|
+
*/
|
|
1159
|
+
export type InstanceLockUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1160
|
+
/**
|
|
1161
|
+
* Select specific fields to fetch from the InstanceLock
|
|
1162
|
+
*/
|
|
1163
|
+
select?: Prisma.InstanceLockSelectUpdateManyAndReturn<ExtArgs> | null
|
|
1164
|
+
/**
|
|
1165
|
+
* Omit specific fields from the InstanceLock
|
|
1166
|
+
*/
|
|
1167
|
+
omit?: Prisma.InstanceLockOmit<ExtArgs> | null
|
|
1168
|
+
/**
|
|
1169
|
+
* The data used to update InstanceLocks.
|
|
1170
|
+
*/
|
|
1171
|
+
data: Prisma.XOR<Prisma.InstanceLockUpdateManyMutationInput, Prisma.InstanceLockUncheckedUpdateManyInput>
|
|
1172
|
+
/**
|
|
1173
|
+
* Filter which InstanceLocks to update
|
|
1174
|
+
*/
|
|
1175
|
+
where?: Prisma.InstanceLockWhereInput
|
|
1176
|
+
/**
|
|
1177
|
+
* Limit how many InstanceLocks to update.
|
|
1178
|
+
*/
|
|
1179
|
+
limit?: number
|
|
1180
|
+
/**
|
|
1181
|
+
* Choose, which related nodes to fetch as well
|
|
1182
|
+
*/
|
|
1183
|
+
include?: Prisma.InstanceLockIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
1184
|
+
}
|
|
1185
|
+
|
|
1186
|
+
/**
|
|
1187
|
+
* InstanceLock upsert
|
|
1188
|
+
*/
|
|
1189
|
+
export type InstanceLockUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1190
|
+
/**
|
|
1191
|
+
* Select specific fields to fetch from the InstanceLock
|
|
1192
|
+
*/
|
|
1193
|
+
select?: Prisma.InstanceLockSelect<ExtArgs> | null
|
|
1194
|
+
/**
|
|
1195
|
+
* Omit specific fields from the InstanceLock
|
|
1196
|
+
*/
|
|
1197
|
+
omit?: Prisma.InstanceLockOmit<ExtArgs> | null
|
|
1198
|
+
/**
|
|
1199
|
+
* Choose, which related nodes to fetch as well
|
|
1200
|
+
*/
|
|
1201
|
+
include?: Prisma.InstanceLockInclude<ExtArgs> | null
|
|
1202
|
+
/**
|
|
1203
|
+
* The filter to search for the InstanceLock to update in case it exists.
|
|
1204
|
+
*/
|
|
1205
|
+
where: Prisma.InstanceLockWhereUniqueInput
|
|
1206
|
+
/**
|
|
1207
|
+
* In case the InstanceLock found by the `where` argument doesn't exist, create a new InstanceLock with this data.
|
|
1208
|
+
*/
|
|
1209
|
+
create: Prisma.XOR<Prisma.InstanceLockCreateInput, Prisma.InstanceLockUncheckedCreateInput>
|
|
1210
|
+
/**
|
|
1211
|
+
* In case the InstanceLock was found with the provided `where` argument, update it with this data.
|
|
1212
|
+
*/
|
|
1213
|
+
update: Prisma.XOR<Prisma.InstanceLockUpdateInput, Prisma.InstanceLockUncheckedUpdateInput>
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1216
|
+
/**
|
|
1217
|
+
* InstanceLock delete
|
|
1218
|
+
*/
|
|
1219
|
+
export type InstanceLockDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1220
|
+
/**
|
|
1221
|
+
* Select specific fields to fetch from the InstanceLock
|
|
1222
|
+
*/
|
|
1223
|
+
select?: Prisma.InstanceLockSelect<ExtArgs> | null
|
|
1224
|
+
/**
|
|
1225
|
+
* Omit specific fields from the InstanceLock
|
|
1226
|
+
*/
|
|
1227
|
+
omit?: Prisma.InstanceLockOmit<ExtArgs> | null
|
|
1228
|
+
/**
|
|
1229
|
+
* Choose, which related nodes to fetch as well
|
|
1230
|
+
*/
|
|
1231
|
+
include?: Prisma.InstanceLockInclude<ExtArgs> | null
|
|
1232
|
+
/**
|
|
1233
|
+
* Filter which InstanceLock to delete.
|
|
1234
|
+
*/
|
|
1235
|
+
where: Prisma.InstanceLockWhereUniqueInput
|
|
1236
|
+
}
|
|
1237
|
+
|
|
1238
|
+
/**
|
|
1239
|
+
* InstanceLock deleteMany
|
|
1240
|
+
*/
|
|
1241
|
+
export type InstanceLockDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1242
|
+
/**
|
|
1243
|
+
* Filter which InstanceLocks to delete
|
|
1244
|
+
*/
|
|
1245
|
+
where?: Prisma.InstanceLockWhereInput
|
|
1246
|
+
/**
|
|
1247
|
+
* Limit how many InstanceLocks to delete.
|
|
1248
|
+
*/
|
|
1249
|
+
limit?: number
|
|
1250
|
+
}
|
|
1251
|
+
|
|
1252
|
+
/**
|
|
1253
|
+
* InstanceLock without action
|
|
1254
|
+
*/
|
|
1255
|
+
export type InstanceLockDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1256
|
+
/**
|
|
1257
|
+
* Select specific fields to fetch from the InstanceLock
|
|
1258
|
+
*/
|
|
1259
|
+
select?: Prisma.InstanceLockSelect<ExtArgs> | null
|
|
1260
|
+
/**
|
|
1261
|
+
* Omit specific fields from the InstanceLock
|
|
1262
|
+
*/
|
|
1263
|
+
omit?: Prisma.InstanceLockOmit<ExtArgs> | null
|
|
1264
|
+
/**
|
|
1265
|
+
* Choose, which related nodes to fetch as well
|
|
1266
|
+
*/
|
|
1267
|
+
include?: Prisma.InstanceLockInclude<ExtArgs> | null
|
|
1268
|
+
}
|