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