@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,1454 @@
|
|
|
1
|
+
|
|
2
|
+
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
/**
|
|
6
|
+
* This file exports the `TerminalSession` 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 TerminalSession
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
export type TerminalSessionModel = runtime.Types.Result.DefaultSelection<Prisma.$TerminalSessionPayload>
|
|
21
|
+
|
|
22
|
+
export type AggregateTerminalSession = {
|
|
23
|
+
_count: TerminalSessionCountAggregateOutputType | null
|
|
24
|
+
_min: TerminalSessionMinAggregateOutputType | null
|
|
25
|
+
_max: TerminalSessionMaxAggregateOutputType | null
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export type TerminalSessionMinAggregateOutputType = {
|
|
29
|
+
id: string | null
|
|
30
|
+
terminalId: string | null
|
|
31
|
+
startedAt: Date | null
|
|
32
|
+
finishedAt: Date | null
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export type TerminalSessionMaxAggregateOutputType = {
|
|
36
|
+
id: string | null
|
|
37
|
+
terminalId: string | null
|
|
38
|
+
startedAt: Date | null
|
|
39
|
+
finishedAt: Date | null
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export type TerminalSessionCountAggregateOutputType = {
|
|
43
|
+
id: number
|
|
44
|
+
terminalId: number
|
|
45
|
+
startedAt: number
|
|
46
|
+
finishedAt: number
|
|
47
|
+
_all: number
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
export type TerminalSessionMinAggregateInputType = {
|
|
52
|
+
id?: true
|
|
53
|
+
terminalId?: true
|
|
54
|
+
startedAt?: true
|
|
55
|
+
finishedAt?: true
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export type TerminalSessionMaxAggregateInputType = {
|
|
59
|
+
id?: true
|
|
60
|
+
terminalId?: true
|
|
61
|
+
startedAt?: true
|
|
62
|
+
finishedAt?: true
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export type TerminalSessionCountAggregateInputType = {
|
|
66
|
+
id?: true
|
|
67
|
+
terminalId?: true
|
|
68
|
+
startedAt?: true
|
|
69
|
+
finishedAt?: true
|
|
70
|
+
_all?: true
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export type TerminalSessionAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
74
|
+
/**
|
|
75
|
+
* Filter which TerminalSession to aggregate.
|
|
76
|
+
*/
|
|
77
|
+
where?: Prisma.TerminalSessionWhereInput
|
|
78
|
+
/**
|
|
79
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
80
|
+
*
|
|
81
|
+
* Determine the order of TerminalSessions to fetch.
|
|
82
|
+
*/
|
|
83
|
+
orderBy?: Prisma.TerminalSessionOrderByWithRelationInput | Prisma.TerminalSessionOrderByWithRelationInput[]
|
|
84
|
+
/**
|
|
85
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
86
|
+
*
|
|
87
|
+
* Sets the start position
|
|
88
|
+
*/
|
|
89
|
+
cursor?: Prisma.TerminalSessionWhereUniqueInput
|
|
90
|
+
/**
|
|
91
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
92
|
+
*
|
|
93
|
+
* Take `±n` TerminalSessions from the position of the cursor.
|
|
94
|
+
*/
|
|
95
|
+
take?: number
|
|
96
|
+
/**
|
|
97
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
98
|
+
*
|
|
99
|
+
* Skip the first `n` TerminalSessions.
|
|
100
|
+
*/
|
|
101
|
+
skip?: number
|
|
102
|
+
/**
|
|
103
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
104
|
+
*
|
|
105
|
+
* Count returned TerminalSessions
|
|
106
|
+
**/
|
|
107
|
+
_count?: true | TerminalSessionCountAggregateInputType
|
|
108
|
+
/**
|
|
109
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
110
|
+
*
|
|
111
|
+
* Select which fields to find the minimum value
|
|
112
|
+
**/
|
|
113
|
+
_min?: TerminalSessionMinAggregateInputType
|
|
114
|
+
/**
|
|
115
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
116
|
+
*
|
|
117
|
+
* Select which fields to find the maximum value
|
|
118
|
+
**/
|
|
119
|
+
_max?: TerminalSessionMaxAggregateInputType
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export type GetTerminalSessionAggregateType<T extends TerminalSessionAggregateArgs> = {
|
|
123
|
+
[P in keyof T & keyof AggregateTerminalSession]: P extends '_count' | 'count'
|
|
124
|
+
? T[P] extends true
|
|
125
|
+
? number
|
|
126
|
+
: Prisma.GetScalarType<T[P], AggregateTerminalSession[P]>
|
|
127
|
+
: Prisma.GetScalarType<T[P], AggregateTerminalSession[P]>
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
export type TerminalSessionGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
134
|
+
where?: Prisma.TerminalSessionWhereInput
|
|
135
|
+
orderBy?: Prisma.TerminalSessionOrderByWithAggregationInput | Prisma.TerminalSessionOrderByWithAggregationInput[]
|
|
136
|
+
by: Prisma.TerminalSessionScalarFieldEnum[] | Prisma.TerminalSessionScalarFieldEnum
|
|
137
|
+
having?: Prisma.TerminalSessionScalarWhereWithAggregatesInput
|
|
138
|
+
take?: number
|
|
139
|
+
skip?: number
|
|
140
|
+
_count?: TerminalSessionCountAggregateInputType | true
|
|
141
|
+
_min?: TerminalSessionMinAggregateInputType
|
|
142
|
+
_max?: TerminalSessionMaxAggregateInputType
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export type TerminalSessionGroupByOutputType = {
|
|
146
|
+
id: string
|
|
147
|
+
terminalId: string
|
|
148
|
+
startedAt: Date
|
|
149
|
+
finishedAt: Date | null
|
|
150
|
+
_count: TerminalSessionCountAggregateOutputType | null
|
|
151
|
+
_min: TerminalSessionMinAggregateOutputType | null
|
|
152
|
+
_max: TerminalSessionMaxAggregateOutputType | null
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
type GetTerminalSessionGroupByPayload<T extends TerminalSessionGroupByArgs> = Prisma.PrismaPromise<
|
|
156
|
+
Array<
|
|
157
|
+
Prisma.PickEnumerable<TerminalSessionGroupByOutputType, T['by']> &
|
|
158
|
+
{
|
|
159
|
+
[P in ((keyof T) & (keyof TerminalSessionGroupByOutputType))]: P extends '_count'
|
|
160
|
+
? T[P] extends boolean
|
|
161
|
+
? number
|
|
162
|
+
: Prisma.GetScalarType<T[P], TerminalSessionGroupByOutputType[P]>
|
|
163
|
+
: Prisma.GetScalarType<T[P], TerminalSessionGroupByOutputType[P]>
|
|
164
|
+
}
|
|
165
|
+
>
|
|
166
|
+
>
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
export type TerminalSessionWhereInput = {
|
|
171
|
+
AND?: Prisma.TerminalSessionWhereInput | Prisma.TerminalSessionWhereInput[]
|
|
172
|
+
OR?: Prisma.TerminalSessionWhereInput[]
|
|
173
|
+
NOT?: Prisma.TerminalSessionWhereInput | Prisma.TerminalSessionWhereInput[]
|
|
174
|
+
id?: Prisma.StringFilter<"TerminalSession"> | string
|
|
175
|
+
terminalId?: Prisma.StringFilter<"TerminalSession"> | string
|
|
176
|
+
startedAt?: Prisma.DateTimeFilter<"TerminalSession"> | Date | string
|
|
177
|
+
finishedAt?: Prisma.DateTimeNullableFilter<"TerminalSession"> | Date | string | null
|
|
178
|
+
terminal?: Prisma.XOR<Prisma.TerminalScalarRelationFilter, Prisma.TerminalWhereInput>
|
|
179
|
+
logs?: Prisma.TerminalSessionLogListRelationFilter
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export type TerminalSessionOrderByWithRelationInput = {
|
|
183
|
+
id?: Prisma.SortOrder
|
|
184
|
+
terminalId?: Prisma.SortOrder
|
|
185
|
+
startedAt?: Prisma.SortOrder
|
|
186
|
+
finishedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
187
|
+
terminal?: Prisma.TerminalOrderByWithRelationInput
|
|
188
|
+
logs?: Prisma.TerminalSessionLogOrderByRelationAggregateInput
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export type TerminalSessionWhereUniqueInput = Prisma.AtLeast<{
|
|
192
|
+
id?: string
|
|
193
|
+
AND?: Prisma.TerminalSessionWhereInput | Prisma.TerminalSessionWhereInput[]
|
|
194
|
+
OR?: Prisma.TerminalSessionWhereInput[]
|
|
195
|
+
NOT?: Prisma.TerminalSessionWhereInput | Prisma.TerminalSessionWhereInput[]
|
|
196
|
+
terminalId?: Prisma.StringFilter<"TerminalSession"> | string
|
|
197
|
+
startedAt?: Prisma.DateTimeFilter<"TerminalSession"> | Date | string
|
|
198
|
+
finishedAt?: Prisma.DateTimeNullableFilter<"TerminalSession"> | Date | string | null
|
|
199
|
+
terminal?: Prisma.XOR<Prisma.TerminalScalarRelationFilter, Prisma.TerminalWhereInput>
|
|
200
|
+
logs?: Prisma.TerminalSessionLogListRelationFilter
|
|
201
|
+
}, "id">
|
|
202
|
+
|
|
203
|
+
export type TerminalSessionOrderByWithAggregationInput = {
|
|
204
|
+
id?: Prisma.SortOrder
|
|
205
|
+
terminalId?: Prisma.SortOrder
|
|
206
|
+
startedAt?: Prisma.SortOrder
|
|
207
|
+
finishedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
208
|
+
_count?: Prisma.TerminalSessionCountOrderByAggregateInput
|
|
209
|
+
_max?: Prisma.TerminalSessionMaxOrderByAggregateInput
|
|
210
|
+
_min?: Prisma.TerminalSessionMinOrderByAggregateInput
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
export type TerminalSessionScalarWhereWithAggregatesInput = {
|
|
214
|
+
AND?: Prisma.TerminalSessionScalarWhereWithAggregatesInput | Prisma.TerminalSessionScalarWhereWithAggregatesInput[]
|
|
215
|
+
OR?: Prisma.TerminalSessionScalarWhereWithAggregatesInput[]
|
|
216
|
+
NOT?: Prisma.TerminalSessionScalarWhereWithAggregatesInput | Prisma.TerminalSessionScalarWhereWithAggregatesInput[]
|
|
217
|
+
id?: Prisma.StringWithAggregatesFilter<"TerminalSession"> | string
|
|
218
|
+
terminalId?: Prisma.StringWithAggregatesFilter<"TerminalSession"> | string
|
|
219
|
+
startedAt?: Prisma.DateTimeWithAggregatesFilter<"TerminalSession"> | Date | string
|
|
220
|
+
finishedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"TerminalSession"> | Date | string | null
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
export type TerminalSessionCreateInput = {
|
|
224
|
+
id?: string
|
|
225
|
+
startedAt?: Date | string
|
|
226
|
+
finishedAt?: Date | string | null
|
|
227
|
+
terminal: Prisma.TerminalCreateNestedOneWithoutSessionsInput
|
|
228
|
+
logs?: Prisma.TerminalSessionLogCreateNestedManyWithoutSessionInput
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
export type TerminalSessionUncheckedCreateInput = {
|
|
232
|
+
id?: string
|
|
233
|
+
terminalId: string
|
|
234
|
+
startedAt?: Date | string
|
|
235
|
+
finishedAt?: Date | string | null
|
|
236
|
+
logs?: Prisma.TerminalSessionLogUncheckedCreateNestedManyWithoutSessionInput
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
export type TerminalSessionUpdateInput = {
|
|
240
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
241
|
+
startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
242
|
+
finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
243
|
+
terminal?: Prisma.TerminalUpdateOneRequiredWithoutSessionsNestedInput
|
|
244
|
+
logs?: Prisma.TerminalSessionLogUpdateManyWithoutSessionNestedInput
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
export type TerminalSessionUncheckedUpdateInput = {
|
|
248
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
249
|
+
terminalId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
250
|
+
startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
251
|
+
finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
252
|
+
logs?: Prisma.TerminalSessionLogUncheckedUpdateManyWithoutSessionNestedInput
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
export type TerminalSessionCreateManyInput = {
|
|
256
|
+
id?: string
|
|
257
|
+
terminalId: string
|
|
258
|
+
startedAt?: Date | string
|
|
259
|
+
finishedAt?: Date | string | null
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
export type TerminalSessionUpdateManyMutationInput = {
|
|
263
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
264
|
+
startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
265
|
+
finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
export type TerminalSessionUncheckedUpdateManyInput = {
|
|
269
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
270
|
+
terminalId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
271
|
+
startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
272
|
+
finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
export type TerminalSessionListRelationFilter = {
|
|
276
|
+
every?: Prisma.TerminalSessionWhereInput
|
|
277
|
+
some?: Prisma.TerminalSessionWhereInput
|
|
278
|
+
none?: Prisma.TerminalSessionWhereInput
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
export type TerminalSessionOrderByRelationAggregateInput = {
|
|
282
|
+
_count?: Prisma.SortOrder
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
export type TerminalSessionCountOrderByAggregateInput = {
|
|
286
|
+
id?: Prisma.SortOrder
|
|
287
|
+
terminalId?: Prisma.SortOrder
|
|
288
|
+
startedAt?: Prisma.SortOrder
|
|
289
|
+
finishedAt?: Prisma.SortOrder
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
export type TerminalSessionMaxOrderByAggregateInput = {
|
|
293
|
+
id?: Prisma.SortOrder
|
|
294
|
+
terminalId?: Prisma.SortOrder
|
|
295
|
+
startedAt?: Prisma.SortOrder
|
|
296
|
+
finishedAt?: Prisma.SortOrder
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
export type TerminalSessionMinOrderByAggregateInput = {
|
|
300
|
+
id?: Prisma.SortOrder
|
|
301
|
+
terminalId?: Prisma.SortOrder
|
|
302
|
+
startedAt?: Prisma.SortOrder
|
|
303
|
+
finishedAt?: Prisma.SortOrder
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
export type TerminalSessionScalarRelationFilter = {
|
|
307
|
+
is?: Prisma.TerminalSessionWhereInput
|
|
308
|
+
isNot?: Prisma.TerminalSessionWhereInput
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
export type TerminalSessionCreateNestedManyWithoutTerminalInput = {
|
|
312
|
+
create?: Prisma.XOR<Prisma.TerminalSessionCreateWithoutTerminalInput, Prisma.TerminalSessionUncheckedCreateWithoutTerminalInput> | Prisma.TerminalSessionCreateWithoutTerminalInput[] | Prisma.TerminalSessionUncheckedCreateWithoutTerminalInput[]
|
|
313
|
+
connectOrCreate?: Prisma.TerminalSessionCreateOrConnectWithoutTerminalInput | Prisma.TerminalSessionCreateOrConnectWithoutTerminalInput[]
|
|
314
|
+
createMany?: Prisma.TerminalSessionCreateManyTerminalInputEnvelope
|
|
315
|
+
connect?: Prisma.TerminalSessionWhereUniqueInput | Prisma.TerminalSessionWhereUniqueInput[]
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
export type TerminalSessionUncheckedCreateNestedManyWithoutTerminalInput = {
|
|
319
|
+
create?: Prisma.XOR<Prisma.TerminalSessionCreateWithoutTerminalInput, Prisma.TerminalSessionUncheckedCreateWithoutTerminalInput> | Prisma.TerminalSessionCreateWithoutTerminalInput[] | Prisma.TerminalSessionUncheckedCreateWithoutTerminalInput[]
|
|
320
|
+
connectOrCreate?: Prisma.TerminalSessionCreateOrConnectWithoutTerminalInput | Prisma.TerminalSessionCreateOrConnectWithoutTerminalInput[]
|
|
321
|
+
createMany?: Prisma.TerminalSessionCreateManyTerminalInputEnvelope
|
|
322
|
+
connect?: Prisma.TerminalSessionWhereUniqueInput | Prisma.TerminalSessionWhereUniqueInput[]
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
export type TerminalSessionUpdateManyWithoutTerminalNestedInput = {
|
|
326
|
+
create?: Prisma.XOR<Prisma.TerminalSessionCreateWithoutTerminalInput, Prisma.TerminalSessionUncheckedCreateWithoutTerminalInput> | Prisma.TerminalSessionCreateWithoutTerminalInput[] | Prisma.TerminalSessionUncheckedCreateWithoutTerminalInput[]
|
|
327
|
+
connectOrCreate?: Prisma.TerminalSessionCreateOrConnectWithoutTerminalInput | Prisma.TerminalSessionCreateOrConnectWithoutTerminalInput[]
|
|
328
|
+
upsert?: Prisma.TerminalSessionUpsertWithWhereUniqueWithoutTerminalInput | Prisma.TerminalSessionUpsertWithWhereUniqueWithoutTerminalInput[]
|
|
329
|
+
createMany?: Prisma.TerminalSessionCreateManyTerminalInputEnvelope
|
|
330
|
+
set?: Prisma.TerminalSessionWhereUniqueInput | Prisma.TerminalSessionWhereUniqueInput[]
|
|
331
|
+
disconnect?: Prisma.TerminalSessionWhereUniqueInput | Prisma.TerminalSessionWhereUniqueInput[]
|
|
332
|
+
delete?: Prisma.TerminalSessionWhereUniqueInput | Prisma.TerminalSessionWhereUniqueInput[]
|
|
333
|
+
connect?: Prisma.TerminalSessionWhereUniqueInput | Prisma.TerminalSessionWhereUniqueInput[]
|
|
334
|
+
update?: Prisma.TerminalSessionUpdateWithWhereUniqueWithoutTerminalInput | Prisma.TerminalSessionUpdateWithWhereUniqueWithoutTerminalInput[]
|
|
335
|
+
updateMany?: Prisma.TerminalSessionUpdateManyWithWhereWithoutTerminalInput | Prisma.TerminalSessionUpdateManyWithWhereWithoutTerminalInput[]
|
|
336
|
+
deleteMany?: Prisma.TerminalSessionScalarWhereInput | Prisma.TerminalSessionScalarWhereInput[]
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
export type TerminalSessionUncheckedUpdateManyWithoutTerminalNestedInput = {
|
|
340
|
+
create?: Prisma.XOR<Prisma.TerminalSessionCreateWithoutTerminalInput, Prisma.TerminalSessionUncheckedCreateWithoutTerminalInput> | Prisma.TerminalSessionCreateWithoutTerminalInput[] | Prisma.TerminalSessionUncheckedCreateWithoutTerminalInput[]
|
|
341
|
+
connectOrCreate?: Prisma.TerminalSessionCreateOrConnectWithoutTerminalInput | Prisma.TerminalSessionCreateOrConnectWithoutTerminalInput[]
|
|
342
|
+
upsert?: Prisma.TerminalSessionUpsertWithWhereUniqueWithoutTerminalInput | Prisma.TerminalSessionUpsertWithWhereUniqueWithoutTerminalInput[]
|
|
343
|
+
createMany?: Prisma.TerminalSessionCreateManyTerminalInputEnvelope
|
|
344
|
+
set?: Prisma.TerminalSessionWhereUniqueInput | Prisma.TerminalSessionWhereUniqueInput[]
|
|
345
|
+
disconnect?: Prisma.TerminalSessionWhereUniqueInput | Prisma.TerminalSessionWhereUniqueInput[]
|
|
346
|
+
delete?: Prisma.TerminalSessionWhereUniqueInput | Prisma.TerminalSessionWhereUniqueInput[]
|
|
347
|
+
connect?: Prisma.TerminalSessionWhereUniqueInput | Prisma.TerminalSessionWhereUniqueInput[]
|
|
348
|
+
update?: Prisma.TerminalSessionUpdateWithWhereUniqueWithoutTerminalInput | Prisma.TerminalSessionUpdateWithWhereUniqueWithoutTerminalInput[]
|
|
349
|
+
updateMany?: Prisma.TerminalSessionUpdateManyWithWhereWithoutTerminalInput | Prisma.TerminalSessionUpdateManyWithWhereWithoutTerminalInput[]
|
|
350
|
+
deleteMany?: Prisma.TerminalSessionScalarWhereInput | Prisma.TerminalSessionScalarWhereInput[]
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
export type TerminalSessionCreateNestedOneWithoutLogsInput = {
|
|
354
|
+
create?: Prisma.XOR<Prisma.TerminalSessionCreateWithoutLogsInput, Prisma.TerminalSessionUncheckedCreateWithoutLogsInput>
|
|
355
|
+
connectOrCreate?: Prisma.TerminalSessionCreateOrConnectWithoutLogsInput
|
|
356
|
+
connect?: Prisma.TerminalSessionWhereUniqueInput
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
export type TerminalSessionUpdateOneRequiredWithoutLogsNestedInput = {
|
|
360
|
+
create?: Prisma.XOR<Prisma.TerminalSessionCreateWithoutLogsInput, Prisma.TerminalSessionUncheckedCreateWithoutLogsInput>
|
|
361
|
+
connectOrCreate?: Prisma.TerminalSessionCreateOrConnectWithoutLogsInput
|
|
362
|
+
upsert?: Prisma.TerminalSessionUpsertWithoutLogsInput
|
|
363
|
+
connect?: Prisma.TerminalSessionWhereUniqueInput
|
|
364
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.TerminalSessionUpdateToOneWithWhereWithoutLogsInput, Prisma.TerminalSessionUpdateWithoutLogsInput>, Prisma.TerminalSessionUncheckedUpdateWithoutLogsInput>
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
export type TerminalSessionCreateWithoutTerminalInput = {
|
|
368
|
+
id?: string
|
|
369
|
+
startedAt?: Date | string
|
|
370
|
+
finishedAt?: Date | string | null
|
|
371
|
+
logs?: Prisma.TerminalSessionLogCreateNestedManyWithoutSessionInput
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
export type TerminalSessionUncheckedCreateWithoutTerminalInput = {
|
|
375
|
+
id?: string
|
|
376
|
+
startedAt?: Date | string
|
|
377
|
+
finishedAt?: Date | string | null
|
|
378
|
+
logs?: Prisma.TerminalSessionLogUncheckedCreateNestedManyWithoutSessionInput
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
export type TerminalSessionCreateOrConnectWithoutTerminalInput = {
|
|
382
|
+
where: Prisma.TerminalSessionWhereUniqueInput
|
|
383
|
+
create: Prisma.XOR<Prisma.TerminalSessionCreateWithoutTerminalInput, Prisma.TerminalSessionUncheckedCreateWithoutTerminalInput>
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
export type TerminalSessionCreateManyTerminalInputEnvelope = {
|
|
387
|
+
data: Prisma.TerminalSessionCreateManyTerminalInput | Prisma.TerminalSessionCreateManyTerminalInput[]
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
export type TerminalSessionUpsertWithWhereUniqueWithoutTerminalInput = {
|
|
391
|
+
where: Prisma.TerminalSessionWhereUniqueInput
|
|
392
|
+
update: Prisma.XOR<Prisma.TerminalSessionUpdateWithoutTerminalInput, Prisma.TerminalSessionUncheckedUpdateWithoutTerminalInput>
|
|
393
|
+
create: Prisma.XOR<Prisma.TerminalSessionCreateWithoutTerminalInput, Prisma.TerminalSessionUncheckedCreateWithoutTerminalInput>
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
export type TerminalSessionUpdateWithWhereUniqueWithoutTerminalInput = {
|
|
397
|
+
where: Prisma.TerminalSessionWhereUniqueInput
|
|
398
|
+
data: Prisma.XOR<Prisma.TerminalSessionUpdateWithoutTerminalInput, Prisma.TerminalSessionUncheckedUpdateWithoutTerminalInput>
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
export type TerminalSessionUpdateManyWithWhereWithoutTerminalInput = {
|
|
402
|
+
where: Prisma.TerminalSessionScalarWhereInput
|
|
403
|
+
data: Prisma.XOR<Prisma.TerminalSessionUpdateManyMutationInput, Prisma.TerminalSessionUncheckedUpdateManyWithoutTerminalInput>
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
export type TerminalSessionScalarWhereInput = {
|
|
407
|
+
AND?: Prisma.TerminalSessionScalarWhereInput | Prisma.TerminalSessionScalarWhereInput[]
|
|
408
|
+
OR?: Prisma.TerminalSessionScalarWhereInput[]
|
|
409
|
+
NOT?: Prisma.TerminalSessionScalarWhereInput | Prisma.TerminalSessionScalarWhereInput[]
|
|
410
|
+
id?: Prisma.StringFilter<"TerminalSession"> | string
|
|
411
|
+
terminalId?: Prisma.StringFilter<"TerminalSession"> | string
|
|
412
|
+
startedAt?: Prisma.DateTimeFilter<"TerminalSession"> | Date | string
|
|
413
|
+
finishedAt?: Prisma.DateTimeNullableFilter<"TerminalSession"> | Date | string | null
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
export type TerminalSessionCreateWithoutLogsInput = {
|
|
417
|
+
id?: string
|
|
418
|
+
startedAt?: Date | string
|
|
419
|
+
finishedAt?: Date | string | null
|
|
420
|
+
terminal: Prisma.TerminalCreateNestedOneWithoutSessionsInput
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
export type TerminalSessionUncheckedCreateWithoutLogsInput = {
|
|
424
|
+
id?: string
|
|
425
|
+
terminalId: string
|
|
426
|
+
startedAt?: Date | string
|
|
427
|
+
finishedAt?: Date | string | null
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
export type TerminalSessionCreateOrConnectWithoutLogsInput = {
|
|
431
|
+
where: Prisma.TerminalSessionWhereUniqueInput
|
|
432
|
+
create: Prisma.XOR<Prisma.TerminalSessionCreateWithoutLogsInput, Prisma.TerminalSessionUncheckedCreateWithoutLogsInput>
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
export type TerminalSessionUpsertWithoutLogsInput = {
|
|
436
|
+
update: Prisma.XOR<Prisma.TerminalSessionUpdateWithoutLogsInput, Prisma.TerminalSessionUncheckedUpdateWithoutLogsInput>
|
|
437
|
+
create: Prisma.XOR<Prisma.TerminalSessionCreateWithoutLogsInput, Prisma.TerminalSessionUncheckedCreateWithoutLogsInput>
|
|
438
|
+
where?: Prisma.TerminalSessionWhereInput
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
export type TerminalSessionUpdateToOneWithWhereWithoutLogsInput = {
|
|
442
|
+
where?: Prisma.TerminalSessionWhereInput
|
|
443
|
+
data: Prisma.XOR<Prisma.TerminalSessionUpdateWithoutLogsInput, Prisma.TerminalSessionUncheckedUpdateWithoutLogsInput>
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
export type TerminalSessionUpdateWithoutLogsInput = {
|
|
447
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
448
|
+
startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
449
|
+
finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
450
|
+
terminal?: Prisma.TerminalUpdateOneRequiredWithoutSessionsNestedInput
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
export type TerminalSessionUncheckedUpdateWithoutLogsInput = {
|
|
454
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
455
|
+
terminalId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
456
|
+
startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
457
|
+
finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
export type TerminalSessionCreateManyTerminalInput = {
|
|
461
|
+
id?: string
|
|
462
|
+
startedAt?: Date | string
|
|
463
|
+
finishedAt?: Date | string | null
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
export type TerminalSessionUpdateWithoutTerminalInput = {
|
|
467
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
468
|
+
startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
469
|
+
finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
470
|
+
logs?: Prisma.TerminalSessionLogUpdateManyWithoutSessionNestedInput
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
export type TerminalSessionUncheckedUpdateWithoutTerminalInput = {
|
|
474
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
475
|
+
startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
476
|
+
finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
477
|
+
logs?: Prisma.TerminalSessionLogUncheckedUpdateManyWithoutSessionNestedInput
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
export type TerminalSessionUncheckedUpdateManyWithoutTerminalInput = {
|
|
481
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
482
|
+
startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
483
|
+
finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
|
|
487
|
+
/**
|
|
488
|
+
* Count Type TerminalSessionCountOutputType
|
|
489
|
+
*/
|
|
490
|
+
|
|
491
|
+
export type TerminalSessionCountOutputType = {
|
|
492
|
+
logs: number
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
export type TerminalSessionCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
496
|
+
logs?: boolean | TerminalSessionCountOutputTypeCountLogsArgs
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
/**
|
|
500
|
+
* TerminalSessionCountOutputType without action
|
|
501
|
+
*/
|
|
502
|
+
export type TerminalSessionCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
503
|
+
/**
|
|
504
|
+
* Select specific fields to fetch from the TerminalSessionCountOutputType
|
|
505
|
+
*/
|
|
506
|
+
select?: Prisma.TerminalSessionCountOutputTypeSelect<ExtArgs> | null
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
/**
|
|
510
|
+
* TerminalSessionCountOutputType without action
|
|
511
|
+
*/
|
|
512
|
+
export type TerminalSessionCountOutputTypeCountLogsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
513
|
+
where?: Prisma.TerminalSessionLogWhereInput
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
|
|
517
|
+
export type TerminalSessionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
518
|
+
id?: boolean
|
|
519
|
+
terminalId?: boolean
|
|
520
|
+
startedAt?: boolean
|
|
521
|
+
finishedAt?: boolean
|
|
522
|
+
terminal?: boolean | Prisma.TerminalDefaultArgs<ExtArgs>
|
|
523
|
+
logs?: boolean | Prisma.TerminalSession$logsArgs<ExtArgs>
|
|
524
|
+
_count?: boolean | Prisma.TerminalSessionCountOutputTypeDefaultArgs<ExtArgs>
|
|
525
|
+
}, ExtArgs["result"]["terminalSession"]>
|
|
526
|
+
|
|
527
|
+
export type TerminalSessionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
528
|
+
id?: boolean
|
|
529
|
+
terminalId?: boolean
|
|
530
|
+
startedAt?: boolean
|
|
531
|
+
finishedAt?: boolean
|
|
532
|
+
terminal?: boolean | Prisma.TerminalDefaultArgs<ExtArgs>
|
|
533
|
+
}, ExtArgs["result"]["terminalSession"]>
|
|
534
|
+
|
|
535
|
+
export type TerminalSessionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
536
|
+
id?: boolean
|
|
537
|
+
terminalId?: boolean
|
|
538
|
+
startedAt?: boolean
|
|
539
|
+
finishedAt?: boolean
|
|
540
|
+
terminal?: boolean | Prisma.TerminalDefaultArgs<ExtArgs>
|
|
541
|
+
}, ExtArgs["result"]["terminalSession"]>
|
|
542
|
+
|
|
543
|
+
export type TerminalSessionSelectScalar = {
|
|
544
|
+
id?: boolean
|
|
545
|
+
terminalId?: boolean
|
|
546
|
+
startedAt?: boolean
|
|
547
|
+
finishedAt?: boolean
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
export type TerminalSessionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "terminalId" | "startedAt" | "finishedAt", ExtArgs["result"]["terminalSession"]>
|
|
551
|
+
export type TerminalSessionInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
552
|
+
terminal?: boolean | Prisma.TerminalDefaultArgs<ExtArgs>
|
|
553
|
+
logs?: boolean | Prisma.TerminalSession$logsArgs<ExtArgs>
|
|
554
|
+
_count?: boolean | Prisma.TerminalSessionCountOutputTypeDefaultArgs<ExtArgs>
|
|
555
|
+
}
|
|
556
|
+
export type TerminalSessionIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
557
|
+
terminal?: boolean | Prisma.TerminalDefaultArgs<ExtArgs>
|
|
558
|
+
}
|
|
559
|
+
export type TerminalSessionIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
560
|
+
terminal?: boolean | Prisma.TerminalDefaultArgs<ExtArgs>
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
export type $TerminalSessionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
564
|
+
name: "TerminalSession"
|
|
565
|
+
objects: {
|
|
566
|
+
/**
|
|
567
|
+
* The terminal this session belongs to.
|
|
568
|
+
*/
|
|
569
|
+
terminal: Prisma.$TerminalPayload<ExtArgs>
|
|
570
|
+
/**
|
|
571
|
+
* The logs of the terminal session.
|
|
572
|
+
*/
|
|
573
|
+
logs: Prisma.$TerminalSessionLogPayload<ExtArgs>[]
|
|
574
|
+
}
|
|
575
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
576
|
+
/**
|
|
577
|
+
* The CUIDv2 of the terminal session.
|
|
578
|
+
*/
|
|
579
|
+
id: string
|
|
580
|
+
/**
|
|
581
|
+
* The ID of the terminal this session belongs to.
|
|
582
|
+
*/
|
|
583
|
+
terminalId: string
|
|
584
|
+
/**
|
|
585
|
+
* The time when the terminal session started.
|
|
586
|
+
*/
|
|
587
|
+
startedAt: Date
|
|
588
|
+
/**
|
|
589
|
+
* The time when the terminal session finished.
|
|
590
|
+
*/
|
|
591
|
+
finishedAt: Date | null
|
|
592
|
+
}, ExtArgs["result"]["terminalSession"]>
|
|
593
|
+
composites: {}
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
export type TerminalSessionGetPayload<S extends boolean | null | undefined | TerminalSessionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$TerminalSessionPayload, S>
|
|
597
|
+
|
|
598
|
+
export type TerminalSessionCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
599
|
+
Omit<TerminalSessionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
600
|
+
select?: TerminalSessionCountAggregateInputType | true
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
export interface TerminalSessionDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
604
|
+
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['TerminalSession'], meta: { name: 'TerminalSession' } }
|
|
605
|
+
/**
|
|
606
|
+
* Find zero or one TerminalSession that matches the filter.
|
|
607
|
+
* @param {TerminalSessionFindUniqueArgs} args - Arguments to find a TerminalSession
|
|
608
|
+
* @example
|
|
609
|
+
* // Get one TerminalSession
|
|
610
|
+
* const terminalSession = await prisma.terminalSession.findUnique({
|
|
611
|
+
* where: {
|
|
612
|
+
* // ... provide filter here
|
|
613
|
+
* }
|
|
614
|
+
* })
|
|
615
|
+
*/
|
|
616
|
+
findUnique<T extends TerminalSessionFindUniqueArgs>(args: Prisma.SelectSubset<T, TerminalSessionFindUniqueArgs<ExtArgs>>): Prisma.Prisma__TerminalSessionClient<runtime.Types.Result.GetResult<Prisma.$TerminalSessionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
617
|
+
|
|
618
|
+
/**
|
|
619
|
+
* Find one TerminalSession that matches the filter or throw an error with `error.code='P2025'`
|
|
620
|
+
* if no matches were found.
|
|
621
|
+
* @param {TerminalSessionFindUniqueOrThrowArgs} args - Arguments to find a TerminalSession
|
|
622
|
+
* @example
|
|
623
|
+
* // Get one TerminalSession
|
|
624
|
+
* const terminalSession = await prisma.terminalSession.findUniqueOrThrow({
|
|
625
|
+
* where: {
|
|
626
|
+
* // ... provide filter here
|
|
627
|
+
* }
|
|
628
|
+
* })
|
|
629
|
+
*/
|
|
630
|
+
findUniqueOrThrow<T extends TerminalSessionFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, TerminalSessionFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__TerminalSessionClient<runtime.Types.Result.GetResult<Prisma.$TerminalSessionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
631
|
+
|
|
632
|
+
/**
|
|
633
|
+
* Find the first TerminalSession that matches the filter.
|
|
634
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
635
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
636
|
+
* @param {TerminalSessionFindFirstArgs} args - Arguments to find a TerminalSession
|
|
637
|
+
* @example
|
|
638
|
+
* // Get one TerminalSession
|
|
639
|
+
* const terminalSession = await prisma.terminalSession.findFirst({
|
|
640
|
+
* where: {
|
|
641
|
+
* // ... provide filter here
|
|
642
|
+
* }
|
|
643
|
+
* })
|
|
644
|
+
*/
|
|
645
|
+
findFirst<T extends TerminalSessionFindFirstArgs>(args?: Prisma.SelectSubset<T, TerminalSessionFindFirstArgs<ExtArgs>>): Prisma.Prisma__TerminalSessionClient<runtime.Types.Result.GetResult<Prisma.$TerminalSessionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
646
|
+
|
|
647
|
+
/**
|
|
648
|
+
* Find the first TerminalSession that matches the filter or
|
|
649
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
650
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
651
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
652
|
+
* @param {TerminalSessionFindFirstOrThrowArgs} args - Arguments to find a TerminalSession
|
|
653
|
+
* @example
|
|
654
|
+
* // Get one TerminalSession
|
|
655
|
+
* const terminalSession = await prisma.terminalSession.findFirstOrThrow({
|
|
656
|
+
* where: {
|
|
657
|
+
* // ... provide filter here
|
|
658
|
+
* }
|
|
659
|
+
* })
|
|
660
|
+
*/
|
|
661
|
+
findFirstOrThrow<T extends TerminalSessionFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, TerminalSessionFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__TerminalSessionClient<runtime.Types.Result.GetResult<Prisma.$TerminalSessionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
662
|
+
|
|
663
|
+
/**
|
|
664
|
+
* Find zero or more TerminalSessions that matches the filter.
|
|
665
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
666
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
667
|
+
* @param {TerminalSessionFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
668
|
+
* @example
|
|
669
|
+
* // Get all TerminalSessions
|
|
670
|
+
* const terminalSessions = await prisma.terminalSession.findMany()
|
|
671
|
+
*
|
|
672
|
+
* // Get first 10 TerminalSessions
|
|
673
|
+
* const terminalSessions = await prisma.terminalSession.findMany({ take: 10 })
|
|
674
|
+
*
|
|
675
|
+
* // Only select the `id`
|
|
676
|
+
* const terminalSessionWithIdOnly = await prisma.terminalSession.findMany({ select: { id: true } })
|
|
677
|
+
*
|
|
678
|
+
*/
|
|
679
|
+
findMany<T extends TerminalSessionFindManyArgs>(args?: Prisma.SelectSubset<T, TerminalSessionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TerminalSessionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
680
|
+
|
|
681
|
+
/**
|
|
682
|
+
* Create a TerminalSession.
|
|
683
|
+
* @param {TerminalSessionCreateArgs} args - Arguments to create a TerminalSession.
|
|
684
|
+
* @example
|
|
685
|
+
* // Create one TerminalSession
|
|
686
|
+
* const TerminalSession = await prisma.terminalSession.create({
|
|
687
|
+
* data: {
|
|
688
|
+
* // ... data to create a TerminalSession
|
|
689
|
+
* }
|
|
690
|
+
* })
|
|
691
|
+
*
|
|
692
|
+
*/
|
|
693
|
+
create<T extends TerminalSessionCreateArgs>(args: Prisma.SelectSubset<T, TerminalSessionCreateArgs<ExtArgs>>): Prisma.Prisma__TerminalSessionClient<runtime.Types.Result.GetResult<Prisma.$TerminalSessionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
694
|
+
|
|
695
|
+
/**
|
|
696
|
+
* Create many TerminalSessions.
|
|
697
|
+
* @param {TerminalSessionCreateManyArgs} args - Arguments to create many TerminalSessions.
|
|
698
|
+
* @example
|
|
699
|
+
* // Create many TerminalSessions
|
|
700
|
+
* const terminalSession = await prisma.terminalSession.createMany({
|
|
701
|
+
* data: [
|
|
702
|
+
* // ... provide data here
|
|
703
|
+
* ]
|
|
704
|
+
* })
|
|
705
|
+
*
|
|
706
|
+
*/
|
|
707
|
+
createMany<T extends TerminalSessionCreateManyArgs>(args?: Prisma.SelectSubset<T, TerminalSessionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
708
|
+
|
|
709
|
+
/**
|
|
710
|
+
* Create many TerminalSessions and returns the data saved in the database.
|
|
711
|
+
* @param {TerminalSessionCreateManyAndReturnArgs} args - Arguments to create many TerminalSessions.
|
|
712
|
+
* @example
|
|
713
|
+
* // Create many TerminalSessions
|
|
714
|
+
* const terminalSession = await prisma.terminalSession.createManyAndReturn({
|
|
715
|
+
* data: [
|
|
716
|
+
* // ... provide data here
|
|
717
|
+
* ]
|
|
718
|
+
* })
|
|
719
|
+
*
|
|
720
|
+
* // Create many TerminalSessions and only return the `id`
|
|
721
|
+
* const terminalSessionWithIdOnly = await prisma.terminalSession.createManyAndReturn({
|
|
722
|
+
* select: { id: true },
|
|
723
|
+
* data: [
|
|
724
|
+
* // ... provide data here
|
|
725
|
+
* ]
|
|
726
|
+
* })
|
|
727
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
728
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
729
|
+
*
|
|
730
|
+
*/
|
|
731
|
+
createManyAndReturn<T extends TerminalSessionCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, TerminalSessionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TerminalSessionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
732
|
+
|
|
733
|
+
/**
|
|
734
|
+
* Delete a TerminalSession.
|
|
735
|
+
* @param {TerminalSessionDeleteArgs} args - Arguments to delete one TerminalSession.
|
|
736
|
+
* @example
|
|
737
|
+
* // Delete one TerminalSession
|
|
738
|
+
* const TerminalSession = await prisma.terminalSession.delete({
|
|
739
|
+
* where: {
|
|
740
|
+
* // ... filter to delete one TerminalSession
|
|
741
|
+
* }
|
|
742
|
+
* })
|
|
743
|
+
*
|
|
744
|
+
*/
|
|
745
|
+
delete<T extends TerminalSessionDeleteArgs>(args: Prisma.SelectSubset<T, TerminalSessionDeleteArgs<ExtArgs>>): Prisma.Prisma__TerminalSessionClient<runtime.Types.Result.GetResult<Prisma.$TerminalSessionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
746
|
+
|
|
747
|
+
/**
|
|
748
|
+
* Update one TerminalSession.
|
|
749
|
+
* @param {TerminalSessionUpdateArgs} args - Arguments to update one TerminalSession.
|
|
750
|
+
* @example
|
|
751
|
+
* // Update one TerminalSession
|
|
752
|
+
* const terminalSession = await prisma.terminalSession.update({
|
|
753
|
+
* where: {
|
|
754
|
+
* // ... provide filter here
|
|
755
|
+
* },
|
|
756
|
+
* data: {
|
|
757
|
+
* // ... provide data here
|
|
758
|
+
* }
|
|
759
|
+
* })
|
|
760
|
+
*
|
|
761
|
+
*/
|
|
762
|
+
update<T extends TerminalSessionUpdateArgs>(args: Prisma.SelectSubset<T, TerminalSessionUpdateArgs<ExtArgs>>): Prisma.Prisma__TerminalSessionClient<runtime.Types.Result.GetResult<Prisma.$TerminalSessionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
763
|
+
|
|
764
|
+
/**
|
|
765
|
+
* Delete zero or more TerminalSessions.
|
|
766
|
+
* @param {TerminalSessionDeleteManyArgs} args - Arguments to filter TerminalSessions to delete.
|
|
767
|
+
* @example
|
|
768
|
+
* // Delete a few TerminalSessions
|
|
769
|
+
* const { count } = await prisma.terminalSession.deleteMany({
|
|
770
|
+
* where: {
|
|
771
|
+
* // ... provide filter here
|
|
772
|
+
* }
|
|
773
|
+
* })
|
|
774
|
+
*
|
|
775
|
+
*/
|
|
776
|
+
deleteMany<T extends TerminalSessionDeleteManyArgs>(args?: Prisma.SelectSubset<T, TerminalSessionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
777
|
+
|
|
778
|
+
/**
|
|
779
|
+
* Update zero or more TerminalSessions.
|
|
780
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
781
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
782
|
+
* @param {TerminalSessionUpdateManyArgs} args - Arguments to update one or more rows.
|
|
783
|
+
* @example
|
|
784
|
+
* // Update many TerminalSessions
|
|
785
|
+
* const terminalSession = await prisma.terminalSession.updateMany({
|
|
786
|
+
* where: {
|
|
787
|
+
* // ... provide filter here
|
|
788
|
+
* },
|
|
789
|
+
* data: {
|
|
790
|
+
* // ... provide data here
|
|
791
|
+
* }
|
|
792
|
+
* })
|
|
793
|
+
*
|
|
794
|
+
*/
|
|
795
|
+
updateMany<T extends TerminalSessionUpdateManyArgs>(args: Prisma.SelectSubset<T, TerminalSessionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
796
|
+
|
|
797
|
+
/**
|
|
798
|
+
* Update zero or more TerminalSessions and returns the data updated in the database.
|
|
799
|
+
* @param {TerminalSessionUpdateManyAndReturnArgs} args - Arguments to update many TerminalSessions.
|
|
800
|
+
* @example
|
|
801
|
+
* // Update many TerminalSessions
|
|
802
|
+
* const terminalSession = await prisma.terminalSession.updateManyAndReturn({
|
|
803
|
+
* where: {
|
|
804
|
+
* // ... provide filter here
|
|
805
|
+
* },
|
|
806
|
+
* data: [
|
|
807
|
+
* // ... provide data here
|
|
808
|
+
* ]
|
|
809
|
+
* })
|
|
810
|
+
*
|
|
811
|
+
* // Update zero or more TerminalSessions and only return the `id`
|
|
812
|
+
* const terminalSessionWithIdOnly = await prisma.terminalSession.updateManyAndReturn({
|
|
813
|
+
* select: { id: true },
|
|
814
|
+
* where: {
|
|
815
|
+
* // ... provide filter here
|
|
816
|
+
* },
|
|
817
|
+
* data: [
|
|
818
|
+
* // ... provide data here
|
|
819
|
+
* ]
|
|
820
|
+
* })
|
|
821
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
822
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
823
|
+
*
|
|
824
|
+
*/
|
|
825
|
+
updateManyAndReturn<T extends TerminalSessionUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, TerminalSessionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TerminalSessionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
826
|
+
|
|
827
|
+
/**
|
|
828
|
+
* Create or update one TerminalSession.
|
|
829
|
+
* @param {TerminalSessionUpsertArgs} args - Arguments to update or create a TerminalSession.
|
|
830
|
+
* @example
|
|
831
|
+
* // Update or create a TerminalSession
|
|
832
|
+
* const terminalSession = await prisma.terminalSession.upsert({
|
|
833
|
+
* create: {
|
|
834
|
+
* // ... data to create a TerminalSession
|
|
835
|
+
* },
|
|
836
|
+
* update: {
|
|
837
|
+
* // ... in case it already exists, update
|
|
838
|
+
* },
|
|
839
|
+
* where: {
|
|
840
|
+
* // ... the filter for the TerminalSession we want to update
|
|
841
|
+
* }
|
|
842
|
+
* })
|
|
843
|
+
*/
|
|
844
|
+
upsert<T extends TerminalSessionUpsertArgs>(args: Prisma.SelectSubset<T, TerminalSessionUpsertArgs<ExtArgs>>): Prisma.Prisma__TerminalSessionClient<runtime.Types.Result.GetResult<Prisma.$TerminalSessionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
845
|
+
|
|
846
|
+
|
|
847
|
+
/**
|
|
848
|
+
* Count the number of TerminalSessions.
|
|
849
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
850
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
851
|
+
* @param {TerminalSessionCountArgs} args - Arguments to filter TerminalSessions to count.
|
|
852
|
+
* @example
|
|
853
|
+
* // Count the number of TerminalSessions
|
|
854
|
+
* const count = await prisma.terminalSession.count({
|
|
855
|
+
* where: {
|
|
856
|
+
* // ... the filter for the TerminalSessions we want to count
|
|
857
|
+
* }
|
|
858
|
+
* })
|
|
859
|
+
**/
|
|
860
|
+
count<T extends TerminalSessionCountArgs>(
|
|
861
|
+
args?: Prisma.Subset<T, TerminalSessionCountArgs>,
|
|
862
|
+
): Prisma.PrismaPromise<
|
|
863
|
+
T extends runtime.Types.Utils.Record<'select', any>
|
|
864
|
+
? T['select'] extends true
|
|
865
|
+
? number
|
|
866
|
+
: Prisma.GetScalarType<T['select'], TerminalSessionCountAggregateOutputType>
|
|
867
|
+
: number
|
|
868
|
+
>
|
|
869
|
+
|
|
870
|
+
/**
|
|
871
|
+
* Allows you to perform aggregations operations on a TerminalSession.
|
|
872
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
873
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
874
|
+
* @param {TerminalSessionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
875
|
+
* @example
|
|
876
|
+
* // Ordered by age ascending
|
|
877
|
+
* // Where email contains prisma.io
|
|
878
|
+
* // Limited to the 10 users
|
|
879
|
+
* const aggregations = await prisma.user.aggregate({
|
|
880
|
+
* _avg: {
|
|
881
|
+
* age: true,
|
|
882
|
+
* },
|
|
883
|
+
* where: {
|
|
884
|
+
* email: {
|
|
885
|
+
* contains: "prisma.io",
|
|
886
|
+
* },
|
|
887
|
+
* },
|
|
888
|
+
* orderBy: {
|
|
889
|
+
* age: "asc",
|
|
890
|
+
* },
|
|
891
|
+
* take: 10,
|
|
892
|
+
* })
|
|
893
|
+
**/
|
|
894
|
+
aggregate<T extends TerminalSessionAggregateArgs>(args: Prisma.Subset<T, TerminalSessionAggregateArgs>): Prisma.PrismaPromise<GetTerminalSessionAggregateType<T>>
|
|
895
|
+
|
|
896
|
+
/**
|
|
897
|
+
* Group by TerminalSession.
|
|
898
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
899
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
900
|
+
* @param {TerminalSessionGroupByArgs} args - Group by arguments.
|
|
901
|
+
* @example
|
|
902
|
+
* // Group by city, order by createdAt, get count
|
|
903
|
+
* const result = await prisma.user.groupBy({
|
|
904
|
+
* by: ['city', 'createdAt'],
|
|
905
|
+
* orderBy: {
|
|
906
|
+
* createdAt: true
|
|
907
|
+
* },
|
|
908
|
+
* _count: {
|
|
909
|
+
* _all: true
|
|
910
|
+
* },
|
|
911
|
+
* })
|
|
912
|
+
*
|
|
913
|
+
**/
|
|
914
|
+
groupBy<
|
|
915
|
+
T extends TerminalSessionGroupByArgs,
|
|
916
|
+
HasSelectOrTake extends Prisma.Or<
|
|
917
|
+
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
918
|
+
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
919
|
+
>,
|
|
920
|
+
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
921
|
+
? { orderBy: TerminalSessionGroupByArgs['orderBy'] }
|
|
922
|
+
: { orderBy?: TerminalSessionGroupByArgs['orderBy'] },
|
|
923
|
+
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
924
|
+
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
925
|
+
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
926
|
+
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
927
|
+
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
928
|
+
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
|
929
|
+
InputErrors extends ByEmpty extends Prisma.True
|
|
930
|
+
? `Error: "by" must not be empty.`
|
|
931
|
+
: HavingValid extends Prisma.False
|
|
932
|
+
? {
|
|
933
|
+
[P in HavingFields]: P extends ByFields
|
|
934
|
+
? never
|
|
935
|
+
: P extends string
|
|
936
|
+
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
937
|
+
: [
|
|
938
|
+
Error,
|
|
939
|
+
'Field ',
|
|
940
|
+
P,
|
|
941
|
+
` in "having" needs to be provided in "by"`,
|
|
942
|
+
]
|
|
943
|
+
}[HavingFields]
|
|
944
|
+
: 'take' extends Prisma.Keys<T>
|
|
945
|
+
? 'orderBy' extends Prisma.Keys<T>
|
|
946
|
+
? ByValid extends Prisma.True
|
|
947
|
+
? {}
|
|
948
|
+
: {
|
|
949
|
+
[P in OrderFields]: P extends ByFields
|
|
950
|
+
? never
|
|
951
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
952
|
+
}[OrderFields]
|
|
953
|
+
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
954
|
+
: 'skip' extends Prisma.Keys<T>
|
|
955
|
+
? 'orderBy' extends Prisma.Keys<T>
|
|
956
|
+
? ByValid extends Prisma.True
|
|
957
|
+
? {}
|
|
958
|
+
: {
|
|
959
|
+
[P in OrderFields]: P extends ByFields
|
|
960
|
+
? never
|
|
961
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
962
|
+
}[OrderFields]
|
|
963
|
+
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
964
|
+
: ByValid extends Prisma.True
|
|
965
|
+
? {}
|
|
966
|
+
: {
|
|
967
|
+
[P in OrderFields]: P extends ByFields
|
|
968
|
+
? never
|
|
969
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
970
|
+
}[OrderFields]
|
|
971
|
+
>(args: Prisma.SubsetIntersection<T, TerminalSessionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetTerminalSessionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
972
|
+
/**
|
|
973
|
+
* Fields of the TerminalSession model
|
|
974
|
+
*/
|
|
975
|
+
readonly fields: TerminalSessionFieldRefs;
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
/**
|
|
979
|
+
* The delegate class that acts as a "Promise-like" for TerminalSession.
|
|
980
|
+
* Why is this prefixed with `Prisma__`?
|
|
981
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
982
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
983
|
+
*/
|
|
984
|
+
export interface Prisma__TerminalSessionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
985
|
+
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
986
|
+
terminal<T extends Prisma.TerminalDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.TerminalDefaultArgs<ExtArgs>>): Prisma.Prisma__TerminalClient<runtime.Types.Result.GetResult<Prisma.$TerminalPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
987
|
+
logs<T extends Prisma.TerminalSession$logsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.TerminalSession$logsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TerminalSessionLogPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
988
|
+
/**
|
|
989
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
990
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
991
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
992
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
993
|
+
*/
|
|
994
|
+
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>
|
|
995
|
+
/**
|
|
996
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
997
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
998
|
+
* @returns A Promise for the completion of the callback.
|
|
999
|
+
*/
|
|
1000
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
1001
|
+
/**
|
|
1002
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
1003
|
+
* resolved value cannot be modified from the callback.
|
|
1004
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
1005
|
+
* @returns A Promise for the completion of the callback.
|
|
1006
|
+
*/
|
|
1007
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
|
|
1011
|
+
|
|
1012
|
+
|
|
1013
|
+
/**
|
|
1014
|
+
* Fields of the TerminalSession model
|
|
1015
|
+
*/
|
|
1016
|
+
export interface TerminalSessionFieldRefs {
|
|
1017
|
+
readonly id: Prisma.FieldRef<"TerminalSession", 'String'>
|
|
1018
|
+
readonly terminalId: Prisma.FieldRef<"TerminalSession", 'String'>
|
|
1019
|
+
readonly startedAt: Prisma.FieldRef<"TerminalSession", 'DateTime'>
|
|
1020
|
+
readonly finishedAt: Prisma.FieldRef<"TerminalSession", 'DateTime'>
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
|
|
1024
|
+
// Custom InputTypes
|
|
1025
|
+
/**
|
|
1026
|
+
* TerminalSession findUnique
|
|
1027
|
+
*/
|
|
1028
|
+
export type TerminalSessionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1029
|
+
/**
|
|
1030
|
+
* Select specific fields to fetch from the TerminalSession
|
|
1031
|
+
*/
|
|
1032
|
+
select?: Prisma.TerminalSessionSelect<ExtArgs> | null
|
|
1033
|
+
/**
|
|
1034
|
+
* Omit specific fields from the TerminalSession
|
|
1035
|
+
*/
|
|
1036
|
+
omit?: Prisma.TerminalSessionOmit<ExtArgs> | null
|
|
1037
|
+
/**
|
|
1038
|
+
* Choose, which related nodes to fetch as well
|
|
1039
|
+
*/
|
|
1040
|
+
include?: Prisma.TerminalSessionInclude<ExtArgs> | null
|
|
1041
|
+
/**
|
|
1042
|
+
* Filter, which TerminalSession to fetch.
|
|
1043
|
+
*/
|
|
1044
|
+
where: Prisma.TerminalSessionWhereUniqueInput
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
/**
|
|
1048
|
+
* TerminalSession findUniqueOrThrow
|
|
1049
|
+
*/
|
|
1050
|
+
export type TerminalSessionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1051
|
+
/**
|
|
1052
|
+
* Select specific fields to fetch from the TerminalSession
|
|
1053
|
+
*/
|
|
1054
|
+
select?: Prisma.TerminalSessionSelect<ExtArgs> | null
|
|
1055
|
+
/**
|
|
1056
|
+
* Omit specific fields from the TerminalSession
|
|
1057
|
+
*/
|
|
1058
|
+
omit?: Prisma.TerminalSessionOmit<ExtArgs> | null
|
|
1059
|
+
/**
|
|
1060
|
+
* Choose, which related nodes to fetch as well
|
|
1061
|
+
*/
|
|
1062
|
+
include?: Prisma.TerminalSessionInclude<ExtArgs> | null
|
|
1063
|
+
/**
|
|
1064
|
+
* Filter, which TerminalSession to fetch.
|
|
1065
|
+
*/
|
|
1066
|
+
where: Prisma.TerminalSessionWhereUniqueInput
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
/**
|
|
1070
|
+
* TerminalSession findFirst
|
|
1071
|
+
*/
|
|
1072
|
+
export type TerminalSessionFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1073
|
+
/**
|
|
1074
|
+
* Select specific fields to fetch from the TerminalSession
|
|
1075
|
+
*/
|
|
1076
|
+
select?: Prisma.TerminalSessionSelect<ExtArgs> | null
|
|
1077
|
+
/**
|
|
1078
|
+
* Omit specific fields from the TerminalSession
|
|
1079
|
+
*/
|
|
1080
|
+
omit?: Prisma.TerminalSessionOmit<ExtArgs> | null
|
|
1081
|
+
/**
|
|
1082
|
+
* Choose, which related nodes to fetch as well
|
|
1083
|
+
*/
|
|
1084
|
+
include?: Prisma.TerminalSessionInclude<ExtArgs> | null
|
|
1085
|
+
/**
|
|
1086
|
+
* Filter, which TerminalSession to fetch.
|
|
1087
|
+
*/
|
|
1088
|
+
where?: Prisma.TerminalSessionWhereInput
|
|
1089
|
+
/**
|
|
1090
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1091
|
+
*
|
|
1092
|
+
* Determine the order of TerminalSessions to fetch.
|
|
1093
|
+
*/
|
|
1094
|
+
orderBy?: Prisma.TerminalSessionOrderByWithRelationInput | Prisma.TerminalSessionOrderByWithRelationInput[]
|
|
1095
|
+
/**
|
|
1096
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1097
|
+
*
|
|
1098
|
+
* Sets the position for searching for TerminalSessions.
|
|
1099
|
+
*/
|
|
1100
|
+
cursor?: Prisma.TerminalSessionWhereUniqueInput
|
|
1101
|
+
/**
|
|
1102
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1103
|
+
*
|
|
1104
|
+
* Take `±n` TerminalSessions from the position of the cursor.
|
|
1105
|
+
*/
|
|
1106
|
+
take?: number
|
|
1107
|
+
/**
|
|
1108
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1109
|
+
*
|
|
1110
|
+
* Skip the first `n` TerminalSessions.
|
|
1111
|
+
*/
|
|
1112
|
+
skip?: number
|
|
1113
|
+
/**
|
|
1114
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1115
|
+
*
|
|
1116
|
+
* Filter by unique combinations of TerminalSessions.
|
|
1117
|
+
*/
|
|
1118
|
+
distinct?: Prisma.TerminalSessionScalarFieldEnum | Prisma.TerminalSessionScalarFieldEnum[]
|
|
1119
|
+
}
|
|
1120
|
+
|
|
1121
|
+
/**
|
|
1122
|
+
* TerminalSession findFirstOrThrow
|
|
1123
|
+
*/
|
|
1124
|
+
export type TerminalSessionFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1125
|
+
/**
|
|
1126
|
+
* Select specific fields to fetch from the TerminalSession
|
|
1127
|
+
*/
|
|
1128
|
+
select?: Prisma.TerminalSessionSelect<ExtArgs> | null
|
|
1129
|
+
/**
|
|
1130
|
+
* Omit specific fields from the TerminalSession
|
|
1131
|
+
*/
|
|
1132
|
+
omit?: Prisma.TerminalSessionOmit<ExtArgs> | null
|
|
1133
|
+
/**
|
|
1134
|
+
* Choose, which related nodes to fetch as well
|
|
1135
|
+
*/
|
|
1136
|
+
include?: Prisma.TerminalSessionInclude<ExtArgs> | null
|
|
1137
|
+
/**
|
|
1138
|
+
* Filter, which TerminalSession to fetch.
|
|
1139
|
+
*/
|
|
1140
|
+
where?: Prisma.TerminalSessionWhereInput
|
|
1141
|
+
/**
|
|
1142
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1143
|
+
*
|
|
1144
|
+
* Determine the order of TerminalSessions to fetch.
|
|
1145
|
+
*/
|
|
1146
|
+
orderBy?: Prisma.TerminalSessionOrderByWithRelationInput | Prisma.TerminalSessionOrderByWithRelationInput[]
|
|
1147
|
+
/**
|
|
1148
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1149
|
+
*
|
|
1150
|
+
* Sets the position for searching for TerminalSessions.
|
|
1151
|
+
*/
|
|
1152
|
+
cursor?: Prisma.TerminalSessionWhereUniqueInput
|
|
1153
|
+
/**
|
|
1154
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1155
|
+
*
|
|
1156
|
+
* Take `±n` TerminalSessions from the position of the cursor.
|
|
1157
|
+
*/
|
|
1158
|
+
take?: number
|
|
1159
|
+
/**
|
|
1160
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1161
|
+
*
|
|
1162
|
+
* Skip the first `n` TerminalSessions.
|
|
1163
|
+
*/
|
|
1164
|
+
skip?: number
|
|
1165
|
+
/**
|
|
1166
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1167
|
+
*
|
|
1168
|
+
* Filter by unique combinations of TerminalSessions.
|
|
1169
|
+
*/
|
|
1170
|
+
distinct?: Prisma.TerminalSessionScalarFieldEnum | Prisma.TerminalSessionScalarFieldEnum[]
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1173
|
+
/**
|
|
1174
|
+
* TerminalSession findMany
|
|
1175
|
+
*/
|
|
1176
|
+
export type TerminalSessionFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1177
|
+
/**
|
|
1178
|
+
* Select specific fields to fetch from the TerminalSession
|
|
1179
|
+
*/
|
|
1180
|
+
select?: Prisma.TerminalSessionSelect<ExtArgs> | null
|
|
1181
|
+
/**
|
|
1182
|
+
* Omit specific fields from the TerminalSession
|
|
1183
|
+
*/
|
|
1184
|
+
omit?: Prisma.TerminalSessionOmit<ExtArgs> | null
|
|
1185
|
+
/**
|
|
1186
|
+
* Choose, which related nodes to fetch as well
|
|
1187
|
+
*/
|
|
1188
|
+
include?: Prisma.TerminalSessionInclude<ExtArgs> | null
|
|
1189
|
+
/**
|
|
1190
|
+
* Filter, which TerminalSessions to fetch.
|
|
1191
|
+
*/
|
|
1192
|
+
where?: Prisma.TerminalSessionWhereInput
|
|
1193
|
+
/**
|
|
1194
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1195
|
+
*
|
|
1196
|
+
* Determine the order of TerminalSessions to fetch.
|
|
1197
|
+
*/
|
|
1198
|
+
orderBy?: Prisma.TerminalSessionOrderByWithRelationInput | Prisma.TerminalSessionOrderByWithRelationInput[]
|
|
1199
|
+
/**
|
|
1200
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1201
|
+
*
|
|
1202
|
+
* Sets the position for listing TerminalSessions.
|
|
1203
|
+
*/
|
|
1204
|
+
cursor?: Prisma.TerminalSessionWhereUniqueInput
|
|
1205
|
+
/**
|
|
1206
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1207
|
+
*
|
|
1208
|
+
* Take `±n` TerminalSessions from the position of the cursor.
|
|
1209
|
+
*/
|
|
1210
|
+
take?: number
|
|
1211
|
+
/**
|
|
1212
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1213
|
+
*
|
|
1214
|
+
* Skip the first `n` TerminalSessions.
|
|
1215
|
+
*/
|
|
1216
|
+
skip?: number
|
|
1217
|
+
distinct?: Prisma.TerminalSessionScalarFieldEnum | Prisma.TerminalSessionScalarFieldEnum[]
|
|
1218
|
+
}
|
|
1219
|
+
|
|
1220
|
+
/**
|
|
1221
|
+
* TerminalSession create
|
|
1222
|
+
*/
|
|
1223
|
+
export type TerminalSessionCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1224
|
+
/**
|
|
1225
|
+
* Select specific fields to fetch from the TerminalSession
|
|
1226
|
+
*/
|
|
1227
|
+
select?: Prisma.TerminalSessionSelect<ExtArgs> | null
|
|
1228
|
+
/**
|
|
1229
|
+
* Omit specific fields from the TerminalSession
|
|
1230
|
+
*/
|
|
1231
|
+
omit?: Prisma.TerminalSessionOmit<ExtArgs> | null
|
|
1232
|
+
/**
|
|
1233
|
+
* Choose, which related nodes to fetch as well
|
|
1234
|
+
*/
|
|
1235
|
+
include?: Prisma.TerminalSessionInclude<ExtArgs> | null
|
|
1236
|
+
/**
|
|
1237
|
+
* The data needed to create a TerminalSession.
|
|
1238
|
+
*/
|
|
1239
|
+
data: Prisma.XOR<Prisma.TerminalSessionCreateInput, Prisma.TerminalSessionUncheckedCreateInput>
|
|
1240
|
+
}
|
|
1241
|
+
|
|
1242
|
+
/**
|
|
1243
|
+
* TerminalSession createMany
|
|
1244
|
+
*/
|
|
1245
|
+
export type TerminalSessionCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1246
|
+
/**
|
|
1247
|
+
* The data used to create many TerminalSessions.
|
|
1248
|
+
*/
|
|
1249
|
+
data: Prisma.TerminalSessionCreateManyInput | Prisma.TerminalSessionCreateManyInput[]
|
|
1250
|
+
}
|
|
1251
|
+
|
|
1252
|
+
/**
|
|
1253
|
+
* TerminalSession createManyAndReturn
|
|
1254
|
+
*/
|
|
1255
|
+
export type TerminalSessionCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1256
|
+
/**
|
|
1257
|
+
* Select specific fields to fetch from the TerminalSession
|
|
1258
|
+
*/
|
|
1259
|
+
select?: Prisma.TerminalSessionSelectCreateManyAndReturn<ExtArgs> | null
|
|
1260
|
+
/**
|
|
1261
|
+
* Omit specific fields from the TerminalSession
|
|
1262
|
+
*/
|
|
1263
|
+
omit?: Prisma.TerminalSessionOmit<ExtArgs> | null
|
|
1264
|
+
/**
|
|
1265
|
+
* The data used to create many TerminalSessions.
|
|
1266
|
+
*/
|
|
1267
|
+
data: Prisma.TerminalSessionCreateManyInput | Prisma.TerminalSessionCreateManyInput[]
|
|
1268
|
+
/**
|
|
1269
|
+
* Choose, which related nodes to fetch as well
|
|
1270
|
+
*/
|
|
1271
|
+
include?: Prisma.TerminalSessionIncludeCreateManyAndReturn<ExtArgs> | null
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1274
|
+
/**
|
|
1275
|
+
* TerminalSession update
|
|
1276
|
+
*/
|
|
1277
|
+
export type TerminalSessionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1278
|
+
/**
|
|
1279
|
+
* Select specific fields to fetch from the TerminalSession
|
|
1280
|
+
*/
|
|
1281
|
+
select?: Prisma.TerminalSessionSelect<ExtArgs> | null
|
|
1282
|
+
/**
|
|
1283
|
+
* Omit specific fields from the TerminalSession
|
|
1284
|
+
*/
|
|
1285
|
+
omit?: Prisma.TerminalSessionOmit<ExtArgs> | null
|
|
1286
|
+
/**
|
|
1287
|
+
* Choose, which related nodes to fetch as well
|
|
1288
|
+
*/
|
|
1289
|
+
include?: Prisma.TerminalSessionInclude<ExtArgs> | null
|
|
1290
|
+
/**
|
|
1291
|
+
* The data needed to update a TerminalSession.
|
|
1292
|
+
*/
|
|
1293
|
+
data: Prisma.XOR<Prisma.TerminalSessionUpdateInput, Prisma.TerminalSessionUncheckedUpdateInput>
|
|
1294
|
+
/**
|
|
1295
|
+
* Choose, which TerminalSession to update.
|
|
1296
|
+
*/
|
|
1297
|
+
where: Prisma.TerminalSessionWhereUniqueInput
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1300
|
+
/**
|
|
1301
|
+
* TerminalSession updateMany
|
|
1302
|
+
*/
|
|
1303
|
+
export type TerminalSessionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1304
|
+
/**
|
|
1305
|
+
* The data used to update TerminalSessions.
|
|
1306
|
+
*/
|
|
1307
|
+
data: Prisma.XOR<Prisma.TerminalSessionUpdateManyMutationInput, Prisma.TerminalSessionUncheckedUpdateManyInput>
|
|
1308
|
+
/**
|
|
1309
|
+
* Filter which TerminalSessions to update
|
|
1310
|
+
*/
|
|
1311
|
+
where?: Prisma.TerminalSessionWhereInput
|
|
1312
|
+
/**
|
|
1313
|
+
* Limit how many TerminalSessions to update.
|
|
1314
|
+
*/
|
|
1315
|
+
limit?: number
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1318
|
+
/**
|
|
1319
|
+
* TerminalSession updateManyAndReturn
|
|
1320
|
+
*/
|
|
1321
|
+
export type TerminalSessionUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1322
|
+
/**
|
|
1323
|
+
* Select specific fields to fetch from the TerminalSession
|
|
1324
|
+
*/
|
|
1325
|
+
select?: Prisma.TerminalSessionSelectUpdateManyAndReturn<ExtArgs> | null
|
|
1326
|
+
/**
|
|
1327
|
+
* Omit specific fields from the TerminalSession
|
|
1328
|
+
*/
|
|
1329
|
+
omit?: Prisma.TerminalSessionOmit<ExtArgs> | null
|
|
1330
|
+
/**
|
|
1331
|
+
* The data used to update TerminalSessions.
|
|
1332
|
+
*/
|
|
1333
|
+
data: Prisma.XOR<Prisma.TerminalSessionUpdateManyMutationInput, Prisma.TerminalSessionUncheckedUpdateManyInput>
|
|
1334
|
+
/**
|
|
1335
|
+
* Filter which TerminalSessions to update
|
|
1336
|
+
*/
|
|
1337
|
+
where?: Prisma.TerminalSessionWhereInput
|
|
1338
|
+
/**
|
|
1339
|
+
* Limit how many TerminalSessions to update.
|
|
1340
|
+
*/
|
|
1341
|
+
limit?: number
|
|
1342
|
+
/**
|
|
1343
|
+
* Choose, which related nodes to fetch as well
|
|
1344
|
+
*/
|
|
1345
|
+
include?: Prisma.TerminalSessionIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1348
|
+
/**
|
|
1349
|
+
* TerminalSession upsert
|
|
1350
|
+
*/
|
|
1351
|
+
export type TerminalSessionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1352
|
+
/**
|
|
1353
|
+
* Select specific fields to fetch from the TerminalSession
|
|
1354
|
+
*/
|
|
1355
|
+
select?: Prisma.TerminalSessionSelect<ExtArgs> | null
|
|
1356
|
+
/**
|
|
1357
|
+
* Omit specific fields from the TerminalSession
|
|
1358
|
+
*/
|
|
1359
|
+
omit?: Prisma.TerminalSessionOmit<ExtArgs> | null
|
|
1360
|
+
/**
|
|
1361
|
+
* Choose, which related nodes to fetch as well
|
|
1362
|
+
*/
|
|
1363
|
+
include?: Prisma.TerminalSessionInclude<ExtArgs> | null
|
|
1364
|
+
/**
|
|
1365
|
+
* The filter to search for the TerminalSession to update in case it exists.
|
|
1366
|
+
*/
|
|
1367
|
+
where: Prisma.TerminalSessionWhereUniqueInput
|
|
1368
|
+
/**
|
|
1369
|
+
* In case the TerminalSession found by the `where` argument doesn't exist, create a new TerminalSession with this data.
|
|
1370
|
+
*/
|
|
1371
|
+
create: Prisma.XOR<Prisma.TerminalSessionCreateInput, Prisma.TerminalSessionUncheckedCreateInput>
|
|
1372
|
+
/**
|
|
1373
|
+
* In case the TerminalSession was found with the provided `where` argument, update it with this data.
|
|
1374
|
+
*/
|
|
1375
|
+
update: Prisma.XOR<Prisma.TerminalSessionUpdateInput, Prisma.TerminalSessionUncheckedUpdateInput>
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1378
|
+
/**
|
|
1379
|
+
* TerminalSession delete
|
|
1380
|
+
*/
|
|
1381
|
+
export type TerminalSessionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1382
|
+
/**
|
|
1383
|
+
* Select specific fields to fetch from the TerminalSession
|
|
1384
|
+
*/
|
|
1385
|
+
select?: Prisma.TerminalSessionSelect<ExtArgs> | null
|
|
1386
|
+
/**
|
|
1387
|
+
* Omit specific fields from the TerminalSession
|
|
1388
|
+
*/
|
|
1389
|
+
omit?: Prisma.TerminalSessionOmit<ExtArgs> | null
|
|
1390
|
+
/**
|
|
1391
|
+
* Choose, which related nodes to fetch as well
|
|
1392
|
+
*/
|
|
1393
|
+
include?: Prisma.TerminalSessionInclude<ExtArgs> | null
|
|
1394
|
+
/**
|
|
1395
|
+
* Filter which TerminalSession to delete.
|
|
1396
|
+
*/
|
|
1397
|
+
where: Prisma.TerminalSessionWhereUniqueInput
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1400
|
+
/**
|
|
1401
|
+
* TerminalSession deleteMany
|
|
1402
|
+
*/
|
|
1403
|
+
export type TerminalSessionDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1404
|
+
/**
|
|
1405
|
+
* Filter which TerminalSessions to delete
|
|
1406
|
+
*/
|
|
1407
|
+
where?: Prisma.TerminalSessionWhereInput
|
|
1408
|
+
/**
|
|
1409
|
+
* Limit how many TerminalSessions to delete.
|
|
1410
|
+
*/
|
|
1411
|
+
limit?: number
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1414
|
+
/**
|
|
1415
|
+
* TerminalSession.logs
|
|
1416
|
+
*/
|
|
1417
|
+
export type TerminalSession$logsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1418
|
+
/**
|
|
1419
|
+
* Select specific fields to fetch from the TerminalSessionLog
|
|
1420
|
+
*/
|
|
1421
|
+
select?: Prisma.TerminalSessionLogSelect<ExtArgs> | null
|
|
1422
|
+
/**
|
|
1423
|
+
* Omit specific fields from the TerminalSessionLog
|
|
1424
|
+
*/
|
|
1425
|
+
omit?: Prisma.TerminalSessionLogOmit<ExtArgs> | null
|
|
1426
|
+
/**
|
|
1427
|
+
* Choose, which related nodes to fetch as well
|
|
1428
|
+
*/
|
|
1429
|
+
include?: Prisma.TerminalSessionLogInclude<ExtArgs> | null
|
|
1430
|
+
where?: Prisma.TerminalSessionLogWhereInput
|
|
1431
|
+
orderBy?: Prisma.TerminalSessionLogOrderByWithRelationInput | Prisma.TerminalSessionLogOrderByWithRelationInput[]
|
|
1432
|
+
cursor?: Prisma.TerminalSessionLogWhereUniqueInput
|
|
1433
|
+
take?: number
|
|
1434
|
+
skip?: number
|
|
1435
|
+
distinct?: Prisma.TerminalSessionLogScalarFieldEnum | Prisma.TerminalSessionLogScalarFieldEnum[]
|
|
1436
|
+
}
|
|
1437
|
+
|
|
1438
|
+
/**
|
|
1439
|
+
* TerminalSession without action
|
|
1440
|
+
*/
|
|
1441
|
+
export type TerminalSessionDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1442
|
+
/**
|
|
1443
|
+
* Select specific fields to fetch from the TerminalSession
|
|
1444
|
+
*/
|
|
1445
|
+
select?: Prisma.TerminalSessionSelect<ExtArgs> | null
|
|
1446
|
+
/**
|
|
1447
|
+
* Omit specific fields from the TerminalSession
|
|
1448
|
+
*/
|
|
1449
|
+
omit?: Prisma.TerminalSessionOmit<ExtArgs> | null
|
|
1450
|
+
/**
|
|
1451
|
+
* Choose, which related nodes to fetch as well
|
|
1452
|
+
*/
|
|
1453
|
+
include?: Prisma.TerminalSessionInclude<ExtArgs> | null
|
|
1454
|
+
}
|