@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,1125 @@
|
|
|
1
|
+
|
|
2
|
+
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
/**
|
|
6
|
+
* This file exports the `HubModel` 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 HubModel
|
|
18
|
+
* The container for project hubs.
|
|
19
|
+
*
|
|
20
|
+
* Only used when "database" project model storage is used.
|
|
21
|
+
*/
|
|
22
|
+
export type HubModelModel = runtime.Types.Result.DefaultSelection<Prisma.$HubModelPayload>
|
|
23
|
+
|
|
24
|
+
export type AggregateHubModel = {
|
|
25
|
+
_count: HubModelCountAggregateOutputType | null
|
|
26
|
+
_min: HubModelMinAggregateOutputType | null
|
|
27
|
+
_max: HubModelMaxAggregateOutputType | null
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export type HubModelMinAggregateOutputType = {
|
|
31
|
+
id: string | null
|
|
32
|
+
createdAt: Date | null
|
|
33
|
+
updatedAt: Date | null
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export type HubModelMaxAggregateOutputType = {
|
|
37
|
+
id: string | null
|
|
38
|
+
createdAt: Date | null
|
|
39
|
+
updatedAt: Date | null
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export type HubModelCountAggregateOutputType = {
|
|
43
|
+
id: number
|
|
44
|
+
model: number
|
|
45
|
+
createdAt: number
|
|
46
|
+
updatedAt: number
|
|
47
|
+
_all: number
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
export type HubModelMinAggregateInputType = {
|
|
52
|
+
id?: true
|
|
53
|
+
createdAt?: true
|
|
54
|
+
updatedAt?: true
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export type HubModelMaxAggregateInputType = {
|
|
58
|
+
id?: true
|
|
59
|
+
createdAt?: true
|
|
60
|
+
updatedAt?: true
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export type HubModelCountAggregateInputType = {
|
|
64
|
+
id?: true
|
|
65
|
+
model?: true
|
|
66
|
+
createdAt?: true
|
|
67
|
+
updatedAt?: true
|
|
68
|
+
_all?: true
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export type HubModelAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
72
|
+
/**
|
|
73
|
+
* Filter which HubModel to aggregate.
|
|
74
|
+
*/
|
|
75
|
+
where?: Prisma.HubModelWhereInput
|
|
76
|
+
/**
|
|
77
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
78
|
+
*
|
|
79
|
+
* Determine the order of HubModels to fetch.
|
|
80
|
+
*/
|
|
81
|
+
orderBy?: Prisma.HubModelOrderByWithRelationInput | Prisma.HubModelOrderByWithRelationInput[]
|
|
82
|
+
/**
|
|
83
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
84
|
+
*
|
|
85
|
+
* Sets the start position
|
|
86
|
+
*/
|
|
87
|
+
cursor?: Prisma.HubModelWhereUniqueInput
|
|
88
|
+
/**
|
|
89
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
90
|
+
*
|
|
91
|
+
* Take `±n` HubModels from the position of the cursor.
|
|
92
|
+
*/
|
|
93
|
+
take?: number
|
|
94
|
+
/**
|
|
95
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
96
|
+
*
|
|
97
|
+
* Skip the first `n` HubModels.
|
|
98
|
+
*/
|
|
99
|
+
skip?: number
|
|
100
|
+
/**
|
|
101
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
102
|
+
*
|
|
103
|
+
* Count returned HubModels
|
|
104
|
+
**/
|
|
105
|
+
_count?: true | HubModelCountAggregateInputType
|
|
106
|
+
/**
|
|
107
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
108
|
+
*
|
|
109
|
+
* Select which fields to find the minimum value
|
|
110
|
+
**/
|
|
111
|
+
_min?: HubModelMinAggregateInputType
|
|
112
|
+
/**
|
|
113
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
114
|
+
*
|
|
115
|
+
* Select which fields to find the maximum value
|
|
116
|
+
**/
|
|
117
|
+
_max?: HubModelMaxAggregateInputType
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export type GetHubModelAggregateType<T extends HubModelAggregateArgs> = {
|
|
121
|
+
[P in keyof T & keyof AggregateHubModel]: P extends '_count' | 'count'
|
|
122
|
+
? T[P] extends true
|
|
123
|
+
? number
|
|
124
|
+
: Prisma.GetScalarType<T[P], AggregateHubModel[P]>
|
|
125
|
+
: Prisma.GetScalarType<T[P], AggregateHubModel[P]>
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
export type HubModelGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
132
|
+
where?: Prisma.HubModelWhereInput
|
|
133
|
+
orderBy?: Prisma.HubModelOrderByWithAggregationInput | Prisma.HubModelOrderByWithAggregationInput[]
|
|
134
|
+
by: Prisma.HubModelScalarFieldEnum[] | Prisma.HubModelScalarFieldEnum
|
|
135
|
+
having?: Prisma.HubModelScalarWhereWithAggregatesInput
|
|
136
|
+
take?: number
|
|
137
|
+
skip?: number
|
|
138
|
+
_count?: HubModelCountAggregateInputType | true
|
|
139
|
+
_min?: HubModelMinAggregateInputType
|
|
140
|
+
_max?: HubModelMaxAggregateInputType
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export type HubModelGroupByOutputType = {
|
|
144
|
+
id: string
|
|
145
|
+
model: PrismaJson.HubModel
|
|
146
|
+
createdAt: Date
|
|
147
|
+
updatedAt: Date
|
|
148
|
+
_count: HubModelCountAggregateOutputType | null
|
|
149
|
+
_min: HubModelMinAggregateOutputType | null
|
|
150
|
+
_max: HubModelMaxAggregateOutputType | null
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
type GetHubModelGroupByPayload<T extends HubModelGroupByArgs> = Prisma.PrismaPromise<
|
|
154
|
+
Array<
|
|
155
|
+
Prisma.PickEnumerable<HubModelGroupByOutputType, T['by']> &
|
|
156
|
+
{
|
|
157
|
+
[P in ((keyof T) & (keyof HubModelGroupByOutputType))]: P extends '_count'
|
|
158
|
+
? T[P] extends boolean
|
|
159
|
+
? number
|
|
160
|
+
: Prisma.GetScalarType<T[P], HubModelGroupByOutputType[P]>
|
|
161
|
+
: Prisma.GetScalarType<T[P], HubModelGroupByOutputType[P]>
|
|
162
|
+
}
|
|
163
|
+
>
|
|
164
|
+
>
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
export type HubModelWhereInput = {
|
|
169
|
+
AND?: Prisma.HubModelWhereInput | Prisma.HubModelWhereInput[]
|
|
170
|
+
OR?: Prisma.HubModelWhereInput[]
|
|
171
|
+
NOT?: Prisma.HubModelWhereInput | Prisma.HubModelWhereInput[]
|
|
172
|
+
id?: Prisma.StringFilter<"HubModel"> | string
|
|
173
|
+
model?: Prisma.JsonFilter<"HubModel">
|
|
174
|
+
createdAt?: Prisma.DateTimeFilter<"HubModel"> | Date | string
|
|
175
|
+
updatedAt?: Prisma.DateTimeFilter<"HubModel"> | Date | string
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
export type HubModelOrderByWithRelationInput = {
|
|
179
|
+
id?: Prisma.SortOrder
|
|
180
|
+
model?: Prisma.SortOrder
|
|
181
|
+
createdAt?: Prisma.SortOrder
|
|
182
|
+
updatedAt?: Prisma.SortOrder
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export type HubModelWhereUniqueInput = Prisma.AtLeast<{
|
|
186
|
+
id?: string
|
|
187
|
+
AND?: Prisma.HubModelWhereInput | Prisma.HubModelWhereInput[]
|
|
188
|
+
OR?: Prisma.HubModelWhereInput[]
|
|
189
|
+
NOT?: Prisma.HubModelWhereInput | Prisma.HubModelWhereInput[]
|
|
190
|
+
model?: Prisma.JsonFilter<"HubModel">
|
|
191
|
+
createdAt?: Prisma.DateTimeFilter<"HubModel"> | Date | string
|
|
192
|
+
updatedAt?: Prisma.DateTimeFilter<"HubModel"> | Date | string
|
|
193
|
+
}, "id">
|
|
194
|
+
|
|
195
|
+
export type HubModelOrderByWithAggregationInput = {
|
|
196
|
+
id?: Prisma.SortOrder
|
|
197
|
+
model?: Prisma.SortOrder
|
|
198
|
+
createdAt?: Prisma.SortOrder
|
|
199
|
+
updatedAt?: Prisma.SortOrder
|
|
200
|
+
_count?: Prisma.HubModelCountOrderByAggregateInput
|
|
201
|
+
_max?: Prisma.HubModelMaxOrderByAggregateInput
|
|
202
|
+
_min?: Prisma.HubModelMinOrderByAggregateInput
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
export type HubModelScalarWhereWithAggregatesInput = {
|
|
206
|
+
AND?: Prisma.HubModelScalarWhereWithAggregatesInput | Prisma.HubModelScalarWhereWithAggregatesInput[]
|
|
207
|
+
OR?: Prisma.HubModelScalarWhereWithAggregatesInput[]
|
|
208
|
+
NOT?: Prisma.HubModelScalarWhereWithAggregatesInput | Prisma.HubModelScalarWhereWithAggregatesInput[]
|
|
209
|
+
id?: Prisma.StringWithAggregatesFilter<"HubModel"> | string
|
|
210
|
+
model?: Prisma.JsonWithAggregatesFilter<"HubModel">
|
|
211
|
+
createdAt?: Prisma.DateTimeWithAggregatesFilter<"HubModel"> | Date | string
|
|
212
|
+
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"HubModel"> | Date | string
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
export type HubModelCreateInput = {
|
|
216
|
+
id: string
|
|
217
|
+
model: PrismaJson.HubModel
|
|
218
|
+
createdAt?: Date | string
|
|
219
|
+
updatedAt?: Date | string
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
export type HubModelUncheckedCreateInput = {
|
|
223
|
+
id: string
|
|
224
|
+
model: PrismaJson.HubModel
|
|
225
|
+
createdAt?: Date | string
|
|
226
|
+
updatedAt?: Date | string
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
export type HubModelUpdateInput = {
|
|
230
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
231
|
+
model?: PrismaJson.HubModel
|
|
232
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
233
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
export type HubModelUncheckedUpdateInput = {
|
|
237
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
238
|
+
model?: PrismaJson.HubModel
|
|
239
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
240
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
export type HubModelCreateManyInput = {
|
|
244
|
+
id: string
|
|
245
|
+
model: PrismaJson.HubModel
|
|
246
|
+
createdAt?: Date | string
|
|
247
|
+
updatedAt?: Date | string
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
export type HubModelUpdateManyMutationInput = {
|
|
251
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
252
|
+
model?: PrismaJson.HubModel
|
|
253
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
254
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
export type HubModelUncheckedUpdateManyInput = {
|
|
258
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
259
|
+
model?: PrismaJson.HubModel
|
|
260
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
261
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
export type HubModelCountOrderByAggregateInput = {
|
|
265
|
+
id?: Prisma.SortOrder
|
|
266
|
+
model?: Prisma.SortOrder
|
|
267
|
+
createdAt?: Prisma.SortOrder
|
|
268
|
+
updatedAt?: Prisma.SortOrder
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
export type HubModelMaxOrderByAggregateInput = {
|
|
272
|
+
id?: Prisma.SortOrder
|
|
273
|
+
createdAt?: Prisma.SortOrder
|
|
274
|
+
updatedAt?: Prisma.SortOrder
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
export type HubModelMinOrderByAggregateInput = {
|
|
278
|
+
id?: Prisma.SortOrder
|
|
279
|
+
createdAt?: Prisma.SortOrder
|
|
280
|
+
updatedAt?: Prisma.SortOrder
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
export type HubModelSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
286
|
+
id?: boolean
|
|
287
|
+
model?: boolean
|
|
288
|
+
createdAt?: boolean
|
|
289
|
+
updatedAt?: boolean
|
|
290
|
+
}, ExtArgs["result"]["hubModel"]>
|
|
291
|
+
|
|
292
|
+
export type HubModelSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
293
|
+
id?: boolean
|
|
294
|
+
model?: boolean
|
|
295
|
+
createdAt?: boolean
|
|
296
|
+
updatedAt?: boolean
|
|
297
|
+
}, ExtArgs["result"]["hubModel"]>
|
|
298
|
+
|
|
299
|
+
export type HubModelSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
300
|
+
id?: boolean
|
|
301
|
+
model?: boolean
|
|
302
|
+
createdAt?: boolean
|
|
303
|
+
updatedAt?: boolean
|
|
304
|
+
}, ExtArgs["result"]["hubModel"]>
|
|
305
|
+
|
|
306
|
+
export type HubModelSelectScalar = {
|
|
307
|
+
id?: boolean
|
|
308
|
+
model?: boolean
|
|
309
|
+
createdAt?: boolean
|
|
310
|
+
updatedAt?: boolean
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
export type HubModelOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "model" | "createdAt" | "updatedAt", ExtArgs["result"]["hubModel"]>
|
|
314
|
+
|
|
315
|
+
export type $HubModelPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
316
|
+
name: "HubModel"
|
|
317
|
+
objects: {}
|
|
318
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
319
|
+
/**
|
|
320
|
+
* The CUIDv2 of the hub.
|
|
321
|
+
*/
|
|
322
|
+
id: string
|
|
323
|
+
/**
|
|
324
|
+
* The model of the hub managed by the backend.
|
|
325
|
+
*
|
|
326
|
+
* [HubModel]
|
|
327
|
+
*/
|
|
328
|
+
model: PrismaJson.HubModel
|
|
329
|
+
/**
|
|
330
|
+
* The time when the hub model was created.
|
|
331
|
+
*/
|
|
332
|
+
createdAt: Date
|
|
333
|
+
/**
|
|
334
|
+
* The time when the hub model was last updated.
|
|
335
|
+
*/
|
|
336
|
+
updatedAt: Date
|
|
337
|
+
}, ExtArgs["result"]["hubModel"]>
|
|
338
|
+
composites: {}
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
export type HubModelGetPayload<S extends boolean | null | undefined | HubModelDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$HubModelPayload, S>
|
|
342
|
+
|
|
343
|
+
export type HubModelCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
344
|
+
Omit<HubModelFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
345
|
+
select?: HubModelCountAggregateInputType | true
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
export interface HubModelDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
349
|
+
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['HubModel'], meta: { name: 'HubModel' } }
|
|
350
|
+
/**
|
|
351
|
+
* Find zero or one HubModel that matches the filter.
|
|
352
|
+
* @param {HubModelFindUniqueArgs} args - Arguments to find a HubModel
|
|
353
|
+
* @example
|
|
354
|
+
* // Get one HubModel
|
|
355
|
+
* const hubModel = await prisma.hubModel.findUnique({
|
|
356
|
+
* where: {
|
|
357
|
+
* // ... provide filter here
|
|
358
|
+
* }
|
|
359
|
+
* })
|
|
360
|
+
*/
|
|
361
|
+
findUnique<T extends HubModelFindUniqueArgs>(args: Prisma.SelectSubset<T, HubModelFindUniqueArgs<ExtArgs>>): Prisma.Prisma__HubModelClient<runtime.Types.Result.GetResult<Prisma.$HubModelPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
362
|
+
|
|
363
|
+
/**
|
|
364
|
+
* Find one HubModel that matches the filter or throw an error with `error.code='P2025'`
|
|
365
|
+
* if no matches were found.
|
|
366
|
+
* @param {HubModelFindUniqueOrThrowArgs} args - Arguments to find a HubModel
|
|
367
|
+
* @example
|
|
368
|
+
* // Get one HubModel
|
|
369
|
+
* const hubModel = await prisma.hubModel.findUniqueOrThrow({
|
|
370
|
+
* where: {
|
|
371
|
+
* // ... provide filter here
|
|
372
|
+
* }
|
|
373
|
+
* })
|
|
374
|
+
*/
|
|
375
|
+
findUniqueOrThrow<T extends HubModelFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, HubModelFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__HubModelClient<runtime.Types.Result.GetResult<Prisma.$HubModelPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* Find the first HubModel that matches the filter.
|
|
379
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
380
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
381
|
+
* @param {HubModelFindFirstArgs} args - Arguments to find a HubModel
|
|
382
|
+
* @example
|
|
383
|
+
* // Get one HubModel
|
|
384
|
+
* const hubModel = await prisma.hubModel.findFirst({
|
|
385
|
+
* where: {
|
|
386
|
+
* // ... provide filter here
|
|
387
|
+
* }
|
|
388
|
+
* })
|
|
389
|
+
*/
|
|
390
|
+
findFirst<T extends HubModelFindFirstArgs>(args?: Prisma.SelectSubset<T, HubModelFindFirstArgs<ExtArgs>>): Prisma.Prisma__HubModelClient<runtime.Types.Result.GetResult<Prisma.$HubModelPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* Find the first HubModel that matches the filter or
|
|
394
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
395
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
396
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
397
|
+
* @param {HubModelFindFirstOrThrowArgs} args - Arguments to find a HubModel
|
|
398
|
+
* @example
|
|
399
|
+
* // Get one HubModel
|
|
400
|
+
* const hubModel = await prisma.hubModel.findFirstOrThrow({
|
|
401
|
+
* where: {
|
|
402
|
+
* // ... provide filter here
|
|
403
|
+
* }
|
|
404
|
+
* })
|
|
405
|
+
*/
|
|
406
|
+
findFirstOrThrow<T extends HubModelFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, HubModelFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__HubModelClient<runtime.Types.Result.GetResult<Prisma.$HubModelPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
407
|
+
|
|
408
|
+
/**
|
|
409
|
+
* Find zero or more HubModels that matches the filter.
|
|
410
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
411
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
412
|
+
* @param {HubModelFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
413
|
+
* @example
|
|
414
|
+
* // Get all HubModels
|
|
415
|
+
* const hubModels = await prisma.hubModel.findMany()
|
|
416
|
+
*
|
|
417
|
+
* // Get first 10 HubModels
|
|
418
|
+
* const hubModels = await prisma.hubModel.findMany({ take: 10 })
|
|
419
|
+
*
|
|
420
|
+
* // Only select the `id`
|
|
421
|
+
* const hubModelWithIdOnly = await prisma.hubModel.findMany({ select: { id: true } })
|
|
422
|
+
*
|
|
423
|
+
*/
|
|
424
|
+
findMany<T extends HubModelFindManyArgs>(args?: Prisma.SelectSubset<T, HubModelFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$HubModelPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* Create a HubModel.
|
|
428
|
+
* @param {HubModelCreateArgs} args - Arguments to create a HubModel.
|
|
429
|
+
* @example
|
|
430
|
+
* // Create one HubModel
|
|
431
|
+
* const HubModel = await prisma.hubModel.create({
|
|
432
|
+
* data: {
|
|
433
|
+
* // ... data to create a HubModel
|
|
434
|
+
* }
|
|
435
|
+
* })
|
|
436
|
+
*
|
|
437
|
+
*/
|
|
438
|
+
create<T extends HubModelCreateArgs>(args: Prisma.SelectSubset<T, HubModelCreateArgs<ExtArgs>>): Prisma.Prisma__HubModelClient<runtime.Types.Result.GetResult<Prisma.$HubModelPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
439
|
+
|
|
440
|
+
/**
|
|
441
|
+
* Create many HubModels.
|
|
442
|
+
* @param {HubModelCreateManyArgs} args - Arguments to create many HubModels.
|
|
443
|
+
* @example
|
|
444
|
+
* // Create many HubModels
|
|
445
|
+
* const hubModel = await prisma.hubModel.createMany({
|
|
446
|
+
* data: [
|
|
447
|
+
* // ... provide data here
|
|
448
|
+
* ]
|
|
449
|
+
* })
|
|
450
|
+
*
|
|
451
|
+
*/
|
|
452
|
+
createMany<T extends HubModelCreateManyArgs>(args?: Prisma.SelectSubset<T, HubModelCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* Create many HubModels and returns the data saved in the database.
|
|
456
|
+
* @param {HubModelCreateManyAndReturnArgs} args - Arguments to create many HubModels.
|
|
457
|
+
* @example
|
|
458
|
+
* // Create many HubModels
|
|
459
|
+
* const hubModel = await prisma.hubModel.createManyAndReturn({
|
|
460
|
+
* data: [
|
|
461
|
+
* // ... provide data here
|
|
462
|
+
* ]
|
|
463
|
+
* })
|
|
464
|
+
*
|
|
465
|
+
* // Create many HubModels and only return the `id`
|
|
466
|
+
* const hubModelWithIdOnly = await prisma.hubModel.createManyAndReturn({
|
|
467
|
+
* select: { id: true },
|
|
468
|
+
* data: [
|
|
469
|
+
* // ... provide data here
|
|
470
|
+
* ]
|
|
471
|
+
* })
|
|
472
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
473
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
474
|
+
*
|
|
475
|
+
*/
|
|
476
|
+
createManyAndReturn<T extends HubModelCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, HubModelCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$HubModelPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
477
|
+
|
|
478
|
+
/**
|
|
479
|
+
* Delete a HubModel.
|
|
480
|
+
* @param {HubModelDeleteArgs} args - Arguments to delete one HubModel.
|
|
481
|
+
* @example
|
|
482
|
+
* // Delete one HubModel
|
|
483
|
+
* const HubModel = await prisma.hubModel.delete({
|
|
484
|
+
* where: {
|
|
485
|
+
* // ... filter to delete one HubModel
|
|
486
|
+
* }
|
|
487
|
+
* })
|
|
488
|
+
*
|
|
489
|
+
*/
|
|
490
|
+
delete<T extends HubModelDeleteArgs>(args: Prisma.SelectSubset<T, HubModelDeleteArgs<ExtArgs>>): Prisma.Prisma__HubModelClient<runtime.Types.Result.GetResult<Prisma.$HubModelPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
491
|
+
|
|
492
|
+
/**
|
|
493
|
+
* Update one HubModel.
|
|
494
|
+
* @param {HubModelUpdateArgs} args - Arguments to update one HubModel.
|
|
495
|
+
* @example
|
|
496
|
+
* // Update one HubModel
|
|
497
|
+
* const hubModel = await prisma.hubModel.update({
|
|
498
|
+
* where: {
|
|
499
|
+
* // ... provide filter here
|
|
500
|
+
* },
|
|
501
|
+
* data: {
|
|
502
|
+
* // ... provide data here
|
|
503
|
+
* }
|
|
504
|
+
* })
|
|
505
|
+
*
|
|
506
|
+
*/
|
|
507
|
+
update<T extends HubModelUpdateArgs>(args: Prisma.SelectSubset<T, HubModelUpdateArgs<ExtArgs>>): Prisma.Prisma__HubModelClient<runtime.Types.Result.GetResult<Prisma.$HubModelPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
508
|
+
|
|
509
|
+
/**
|
|
510
|
+
* Delete zero or more HubModels.
|
|
511
|
+
* @param {HubModelDeleteManyArgs} args - Arguments to filter HubModels to delete.
|
|
512
|
+
* @example
|
|
513
|
+
* // Delete a few HubModels
|
|
514
|
+
* const { count } = await prisma.hubModel.deleteMany({
|
|
515
|
+
* where: {
|
|
516
|
+
* // ... provide filter here
|
|
517
|
+
* }
|
|
518
|
+
* })
|
|
519
|
+
*
|
|
520
|
+
*/
|
|
521
|
+
deleteMany<T extends HubModelDeleteManyArgs>(args?: Prisma.SelectSubset<T, HubModelDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
522
|
+
|
|
523
|
+
/**
|
|
524
|
+
* Update zero or more HubModels.
|
|
525
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
526
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
527
|
+
* @param {HubModelUpdateManyArgs} args - Arguments to update one or more rows.
|
|
528
|
+
* @example
|
|
529
|
+
* // Update many HubModels
|
|
530
|
+
* const hubModel = await prisma.hubModel.updateMany({
|
|
531
|
+
* where: {
|
|
532
|
+
* // ... provide filter here
|
|
533
|
+
* },
|
|
534
|
+
* data: {
|
|
535
|
+
* // ... provide data here
|
|
536
|
+
* }
|
|
537
|
+
* })
|
|
538
|
+
*
|
|
539
|
+
*/
|
|
540
|
+
updateMany<T extends HubModelUpdateManyArgs>(args: Prisma.SelectSubset<T, HubModelUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
541
|
+
|
|
542
|
+
/**
|
|
543
|
+
* Update zero or more HubModels and returns the data updated in the database.
|
|
544
|
+
* @param {HubModelUpdateManyAndReturnArgs} args - Arguments to update many HubModels.
|
|
545
|
+
* @example
|
|
546
|
+
* // Update many HubModels
|
|
547
|
+
* const hubModel = await prisma.hubModel.updateManyAndReturn({
|
|
548
|
+
* where: {
|
|
549
|
+
* // ... provide filter here
|
|
550
|
+
* },
|
|
551
|
+
* data: [
|
|
552
|
+
* // ... provide data here
|
|
553
|
+
* ]
|
|
554
|
+
* })
|
|
555
|
+
*
|
|
556
|
+
* // Update zero or more HubModels and only return the `id`
|
|
557
|
+
* const hubModelWithIdOnly = await prisma.hubModel.updateManyAndReturn({
|
|
558
|
+
* select: { id: true },
|
|
559
|
+
* where: {
|
|
560
|
+
* // ... provide filter here
|
|
561
|
+
* },
|
|
562
|
+
* data: [
|
|
563
|
+
* // ... provide data here
|
|
564
|
+
* ]
|
|
565
|
+
* })
|
|
566
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
567
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
568
|
+
*
|
|
569
|
+
*/
|
|
570
|
+
updateManyAndReturn<T extends HubModelUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, HubModelUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$HubModelPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
571
|
+
|
|
572
|
+
/**
|
|
573
|
+
* Create or update one HubModel.
|
|
574
|
+
* @param {HubModelUpsertArgs} args - Arguments to update or create a HubModel.
|
|
575
|
+
* @example
|
|
576
|
+
* // Update or create a HubModel
|
|
577
|
+
* const hubModel = await prisma.hubModel.upsert({
|
|
578
|
+
* create: {
|
|
579
|
+
* // ... data to create a HubModel
|
|
580
|
+
* },
|
|
581
|
+
* update: {
|
|
582
|
+
* // ... in case it already exists, update
|
|
583
|
+
* },
|
|
584
|
+
* where: {
|
|
585
|
+
* // ... the filter for the HubModel we want to update
|
|
586
|
+
* }
|
|
587
|
+
* })
|
|
588
|
+
*/
|
|
589
|
+
upsert<T extends HubModelUpsertArgs>(args: Prisma.SelectSubset<T, HubModelUpsertArgs<ExtArgs>>): Prisma.Prisma__HubModelClient<runtime.Types.Result.GetResult<Prisma.$HubModelPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
590
|
+
|
|
591
|
+
|
|
592
|
+
/**
|
|
593
|
+
* Count the number of HubModels.
|
|
594
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
595
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
596
|
+
* @param {HubModelCountArgs} args - Arguments to filter HubModels to count.
|
|
597
|
+
* @example
|
|
598
|
+
* // Count the number of HubModels
|
|
599
|
+
* const count = await prisma.hubModel.count({
|
|
600
|
+
* where: {
|
|
601
|
+
* // ... the filter for the HubModels we want to count
|
|
602
|
+
* }
|
|
603
|
+
* })
|
|
604
|
+
**/
|
|
605
|
+
count<T extends HubModelCountArgs>(
|
|
606
|
+
args?: Prisma.Subset<T, HubModelCountArgs>,
|
|
607
|
+
): Prisma.PrismaPromise<
|
|
608
|
+
T extends runtime.Types.Utils.Record<'select', any>
|
|
609
|
+
? T['select'] extends true
|
|
610
|
+
? number
|
|
611
|
+
: Prisma.GetScalarType<T['select'], HubModelCountAggregateOutputType>
|
|
612
|
+
: number
|
|
613
|
+
>
|
|
614
|
+
|
|
615
|
+
/**
|
|
616
|
+
* Allows you to perform aggregations operations on a HubModel.
|
|
617
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
618
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
619
|
+
* @param {HubModelAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
620
|
+
* @example
|
|
621
|
+
* // Ordered by age ascending
|
|
622
|
+
* // Where email contains prisma.io
|
|
623
|
+
* // Limited to the 10 users
|
|
624
|
+
* const aggregations = await prisma.user.aggregate({
|
|
625
|
+
* _avg: {
|
|
626
|
+
* age: true,
|
|
627
|
+
* },
|
|
628
|
+
* where: {
|
|
629
|
+
* email: {
|
|
630
|
+
* contains: "prisma.io",
|
|
631
|
+
* },
|
|
632
|
+
* },
|
|
633
|
+
* orderBy: {
|
|
634
|
+
* age: "asc",
|
|
635
|
+
* },
|
|
636
|
+
* take: 10,
|
|
637
|
+
* })
|
|
638
|
+
**/
|
|
639
|
+
aggregate<T extends HubModelAggregateArgs>(args: Prisma.Subset<T, HubModelAggregateArgs>): Prisma.PrismaPromise<GetHubModelAggregateType<T>>
|
|
640
|
+
|
|
641
|
+
/**
|
|
642
|
+
* Group by HubModel.
|
|
643
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
644
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
645
|
+
* @param {HubModelGroupByArgs} args - Group by arguments.
|
|
646
|
+
* @example
|
|
647
|
+
* // Group by city, order by createdAt, get count
|
|
648
|
+
* const result = await prisma.user.groupBy({
|
|
649
|
+
* by: ['city', 'createdAt'],
|
|
650
|
+
* orderBy: {
|
|
651
|
+
* createdAt: true
|
|
652
|
+
* },
|
|
653
|
+
* _count: {
|
|
654
|
+
* _all: true
|
|
655
|
+
* },
|
|
656
|
+
* })
|
|
657
|
+
*
|
|
658
|
+
**/
|
|
659
|
+
groupBy<
|
|
660
|
+
T extends HubModelGroupByArgs,
|
|
661
|
+
HasSelectOrTake extends Prisma.Or<
|
|
662
|
+
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
663
|
+
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
664
|
+
>,
|
|
665
|
+
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
666
|
+
? { orderBy: HubModelGroupByArgs['orderBy'] }
|
|
667
|
+
: { orderBy?: HubModelGroupByArgs['orderBy'] },
|
|
668
|
+
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
669
|
+
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
670
|
+
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
671
|
+
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
672
|
+
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
673
|
+
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
|
674
|
+
InputErrors extends ByEmpty extends Prisma.True
|
|
675
|
+
? `Error: "by" must not be empty.`
|
|
676
|
+
: HavingValid extends Prisma.False
|
|
677
|
+
? {
|
|
678
|
+
[P in HavingFields]: P extends ByFields
|
|
679
|
+
? never
|
|
680
|
+
: P extends string
|
|
681
|
+
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
682
|
+
: [
|
|
683
|
+
Error,
|
|
684
|
+
'Field ',
|
|
685
|
+
P,
|
|
686
|
+
` in "having" needs to be provided in "by"`,
|
|
687
|
+
]
|
|
688
|
+
}[HavingFields]
|
|
689
|
+
: 'take' extends Prisma.Keys<T>
|
|
690
|
+
? 'orderBy' extends Prisma.Keys<T>
|
|
691
|
+
? ByValid extends Prisma.True
|
|
692
|
+
? {}
|
|
693
|
+
: {
|
|
694
|
+
[P in OrderFields]: P extends ByFields
|
|
695
|
+
? never
|
|
696
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
697
|
+
}[OrderFields]
|
|
698
|
+
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
699
|
+
: 'skip' extends Prisma.Keys<T>
|
|
700
|
+
? 'orderBy' extends Prisma.Keys<T>
|
|
701
|
+
? ByValid extends Prisma.True
|
|
702
|
+
? {}
|
|
703
|
+
: {
|
|
704
|
+
[P in OrderFields]: P extends ByFields
|
|
705
|
+
? never
|
|
706
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
707
|
+
}[OrderFields]
|
|
708
|
+
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
709
|
+
: ByValid extends Prisma.True
|
|
710
|
+
? {}
|
|
711
|
+
: {
|
|
712
|
+
[P in OrderFields]: P extends ByFields
|
|
713
|
+
? never
|
|
714
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
715
|
+
}[OrderFields]
|
|
716
|
+
>(args: Prisma.SubsetIntersection<T, HubModelGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetHubModelGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
717
|
+
/**
|
|
718
|
+
* Fields of the HubModel model
|
|
719
|
+
*/
|
|
720
|
+
readonly fields: HubModelFieldRefs;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
/**
|
|
724
|
+
* The delegate class that acts as a "Promise-like" for HubModel.
|
|
725
|
+
* Why is this prefixed with `Prisma__`?
|
|
726
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
727
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
728
|
+
*/
|
|
729
|
+
export interface Prisma__HubModelClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
730
|
+
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
731
|
+
/**
|
|
732
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
733
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
734
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
735
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
736
|
+
*/
|
|
737
|
+
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>
|
|
738
|
+
/**
|
|
739
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
740
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
741
|
+
* @returns A Promise for the completion of the callback.
|
|
742
|
+
*/
|
|
743
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
744
|
+
/**
|
|
745
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
746
|
+
* resolved value cannot be modified from the callback.
|
|
747
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
748
|
+
* @returns A Promise for the completion of the callback.
|
|
749
|
+
*/
|
|
750
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
|
|
754
|
+
|
|
755
|
+
|
|
756
|
+
/**
|
|
757
|
+
* Fields of the HubModel model
|
|
758
|
+
*/
|
|
759
|
+
export interface HubModelFieldRefs {
|
|
760
|
+
readonly id: Prisma.FieldRef<"HubModel", 'String'>
|
|
761
|
+
readonly model: Prisma.FieldRef<"HubModel", 'Json'>
|
|
762
|
+
readonly createdAt: Prisma.FieldRef<"HubModel", 'DateTime'>
|
|
763
|
+
readonly updatedAt: Prisma.FieldRef<"HubModel", 'DateTime'>
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
|
|
767
|
+
// Custom InputTypes
|
|
768
|
+
/**
|
|
769
|
+
* HubModel findUnique
|
|
770
|
+
*/
|
|
771
|
+
export type HubModelFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
772
|
+
/**
|
|
773
|
+
* Select specific fields to fetch from the HubModel
|
|
774
|
+
*/
|
|
775
|
+
select?: Prisma.HubModelSelect<ExtArgs> | null
|
|
776
|
+
/**
|
|
777
|
+
* Omit specific fields from the HubModel
|
|
778
|
+
*/
|
|
779
|
+
omit?: Prisma.HubModelOmit<ExtArgs> | null
|
|
780
|
+
/**
|
|
781
|
+
* Filter, which HubModel to fetch.
|
|
782
|
+
*/
|
|
783
|
+
where: Prisma.HubModelWhereUniqueInput
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
/**
|
|
787
|
+
* HubModel findUniqueOrThrow
|
|
788
|
+
*/
|
|
789
|
+
export type HubModelFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
790
|
+
/**
|
|
791
|
+
* Select specific fields to fetch from the HubModel
|
|
792
|
+
*/
|
|
793
|
+
select?: Prisma.HubModelSelect<ExtArgs> | null
|
|
794
|
+
/**
|
|
795
|
+
* Omit specific fields from the HubModel
|
|
796
|
+
*/
|
|
797
|
+
omit?: Prisma.HubModelOmit<ExtArgs> | null
|
|
798
|
+
/**
|
|
799
|
+
* Filter, which HubModel to fetch.
|
|
800
|
+
*/
|
|
801
|
+
where: Prisma.HubModelWhereUniqueInput
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
/**
|
|
805
|
+
* HubModel findFirst
|
|
806
|
+
*/
|
|
807
|
+
export type HubModelFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
808
|
+
/**
|
|
809
|
+
* Select specific fields to fetch from the HubModel
|
|
810
|
+
*/
|
|
811
|
+
select?: Prisma.HubModelSelect<ExtArgs> | null
|
|
812
|
+
/**
|
|
813
|
+
* Omit specific fields from the HubModel
|
|
814
|
+
*/
|
|
815
|
+
omit?: Prisma.HubModelOmit<ExtArgs> | null
|
|
816
|
+
/**
|
|
817
|
+
* Filter, which HubModel to fetch.
|
|
818
|
+
*/
|
|
819
|
+
where?: Prisma.HubModelWhereInput
|
|
820
|
+
/**
|
|
821
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
822
|
+
*
|
|
823
|
+
* Determine the order of HubModels to fetch.
|
|
824
|
+
*/
|
|
825
|
+
orderBy?: Prisma.HubModelOrderByWithRelationInput | Prisma.HubModelOrderByWithRelationInput[]
|
|
826
|
+
/**
|
|
827
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
828
|
+
*
|
|
829
|
+
* Sets the position for searching for HubModels.
|
|
830
|
+
*/
|
|
831
|
+
cursor?: Prisma.HubModelWhereUniqueInput
|
|
832
|
+
/**
|
|
833
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
834
|
+
*
|
|
835
|
+
* Take `±n` HubModels from the position of the cursor.
|
|
836
|
+
*/
|
|
837
|
+
take?: number
|
|
838
|
+
/**
|
|
839
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
840
|
+
*
|
|
841
|
+
* Skip the first `n` HubModels.
|
|
842
|
+
*/
|
|
843
|
+
skip?: number
|
|
844
|
+
/**
|
|
845
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
846
|
+
*
|
|
847
|
+
* Filter by unique combinations of HubModels.
|
|
848
|
+
*/
|
|
849
|
+
distinct?: Prisma.HubModelScalarFieldEnum | Prisma.HubModelScalarFieldEnum[]
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
/**
|
|
853
|
+
* HubModel findFirstOrThrow
|
|
854
|
+
*/
|
|
855
|
+
export type HubModelFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
856
|
+
/**
|
|
857
|
+
* Select specific fields to fetch from the HubModel
|
|
858
|
+
*/
|
|
859
|
+
select?: Prisma.HubModelSelect<ExtArgs> | null
|
|
860
|
+
/**
|
|
861
|
+
* Omit specific fields from the HubModel
|
|
862
|
+
*/
|
|
863
|
+
omit?: Prisma.HubModelOmit<ExtArgs> | null
|
|
864
|
+
/**
|
|
865
|
+
* Filter, which HubModel to fetch.
|
|
866
|
+
*/
|
|
867
|
+
where?: Prisma.HubModelWhereInput
|
|
868
|
+
/**
|
|
869
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
870
|
+
*
|
|
871
|
+
* Determine the order of HubModels to fetch.
|
|
872
|
+
*/
|
|
873
|
+
orderBy?: Prisma.HubModelOrderByWithRelationInput | Prisma.HubModelOrderByWithRelationInput[]
|
|
874
|
+
/**
|
|
875
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
876
|
+
*
|
|
877
|
+
* Sets the position for searching for HubModels.
|
|
878
|
+
*/
|
|
879
|
+
cursor?: Prisma.HubModelWhereUniqueInput
|
|
880
|
+
/**
|
|
881
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
882
|
+
*
|
|
883
|
+
* Take `±n` HubModels from the position of the cursor.
|
|
884
|
+
*/
|
|
885
|
+
take?: number
|
|
886
|
+
/**
|
|
887
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
888
|
+
*
|
|
889
|
+
* Skip the first `n` HubModels.
|
|
890
|
+
*/
|
|
891
|
+
skip?: number
|
|
892
|
+
/**
|
|
893
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
894
|
+
*
|
|
895
|
+
* Filter by unique combinations of HubModels.
|
|
896
|
+
*/
|
|
897
|
+
distinct?: Prisma.HubModelScalarFieldEnum | Prisma.HubModelScalarFieldEnum[]
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
/**
|
|
901
|
+
* HubModel findMany
|
|
902
|
+
*/
|
|
903
|
+
export type HubModelFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
904
|
+
/**
|
|
905
|
+
* Select specific fields to fetch from the HubModel
|
|
906
|
+
*/
|
|
907
|
+
select?: Prisma.HubModelSelect<ExtArgs> | null
|
|
908
|
+
/**
|
|
909
|
+
* Omit specific fields from the HubModel
|
|
910
|
+
*/
|
|
911
|
+
omit?: Prisma.HubModelOmit<ExtArgs> | null
|
|
912
|
+
/**
|
|
913
|
+
* Filter, which HubModels to fetch.
|
|
914
|
+
*/
|
|
915
|
+
where?: Prisma.HubModelWhereInput
|
|
916
|
+
/**
|
|
917
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
918
|
+
*
|
|
919
|
+
* Determine the order of HubModels to fetch.
|
|
920
|
+
*/
|
|
921
|
+
orderBy?: Prisma.HubModelOrderByWithRelationInput | Prisma.HubModelOrderByWithRelationInput[]
|
|
922
|
+
/**
|
|
923
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
924
|
+
*
|
|
925
|
+
* Sets the position for listing HubModels.
|
|
926
|
+
*/
|
|
927
|
+
cursor?: Prisma.HubModelWhereUniqueInput
|
|
928
|
+
/**
|
|
929
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
930
|
+
*
|
|
931
|
+
* Take `±n` HubModels from the position of the cursor.
|
|
932
|
+
*/
|
|
933
|
+
take?: number
|
|
934
|
+
/**
|
|
935
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
936
|
+
*
|
|
937
|
+
* Skip the first `n` HubModels.
|
|
938
|
+
*/
|
|
939
|
+
skip?: number
|
|
940
|
+
distinct?: Prisma.HubModelScalarFieldEnum | Prisma.HubModelScalarFieldEnum[]
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
/**
|
|
944
|
+
* HubModel create
|
|
945
|
+
*/
|
|
946
|
+
export type HubModelCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
947
|
+
/**
|
|
948
|
+
* Select specific fields to fetch from the HubModel
|
|
949
|
+
*/
|
|
950
|
+
select?: Prisma.HubModelSelect<ExtArgs> | null
|
|
951
|
+
/**
|
|
952
|
+
* Omit specific fields from the HubModel
|
|
953
|
+
*/
|
|
954
|
+
omit?: Prisma.HubModelOmit<ExtArgs> | null
|
|
955
|
+
/**
|
|
956
|
+
* The data needed to create a HubModel.
|
|
957
|
+
*/
|
|
958
|
+
data: Prisma.XOR<Prisma.HubModelCreateInput, Prisma.HubModelUncheckedCreateInput>
|
|
959
|
+
}
|
|
960
|
+
|
|
961
|
+
/**
|
|
962
|
+
* HubModel createMany
|
|
963
|
+
*/
|
|
964
|
+
export type HubModelCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
965
|
+
/**
|
|
966
|
+
* The data used to create many HubModels.
|
|
967
|
+
*/
|
|
968
|
+
data: Prisma.HubModelCreateManyInput | Prisma.HubModelCreateManyInput[]
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
/**
|
|
972
|
+
* HubModel createManyAndReturn
|
|
973
|
+
*/
|
|
974
|
+
export type HubModelCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
975
|
+
/**
|
|
976
|
+
* Select specific fields to fetch from the HubModel
|
|
977
|
+
*/
|
|
978
|
+
select?: Prisma.HubModelSelectCreateManyAndReturn<ExtArgs> | null
|
|
979
|
+
/**
|
|
980
|
+
* Omit specific fields from the HubModel
|
|
981
|
+
*/
|
|
982
|
+
omit?: Prisma.HubModelOmit<ExtArgs> | null
|
|
983
|
+
/**
|
|
984
|
+
* The data used to create many HubModels.
|
|
985
|
+
*/
|
|
986
|
+
data: Prisma.HubModelCreateManyInput | Prisma.HubModelCreateManyInput[]
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
/**
|
|
990
|
+
* HubModel update
|
|
991
|
+
*/
|
|
992
|
+
export type HubModelUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
993
|
+
/**
|
|
994
|
+
* Select specific fields to fetch from the HubModel
|
|
995
|
+
*/
|
|
996
|
+
select?: Prisma.HubModelSelect<ExtArgs> | null
|
|
997
|
+
/**
|
|
998
|
+
* Omit specific fields from the HubModel
|
|
999
|
+
*/
|
|
1000
|
+
omit?: Prisma.HubModelOmit<ExtArgs> | null
|
|
1001
|
+
/**
|
|
1002
|
+
* The data needed to update a HubModel.
|
|
1003
|
+
*/
|
|
1004
|
+
data: Prisma.XOR<Prisma.HubModelUpdateInput, Prisma.HubModelUncheckedUpdateInput>
|
|
1005
|
+
/**
|
|
1006
|
+
* Choose, which HubModel to update.
|
|
1007
|
+
*/
|
|
1008
|
+
where: Prisma.HubModelWhereUniqueInput
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
/**
|
|
1012
|
+
* HubModel updateMany
|
|
1013
|
+
*/
|
|
1014
|
+
export type HubModelUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1015
|
+
/**
|
|
1016
|
+
* The data used to update HubModels.
|
|
1017
|
+
*/
|
|
1018
|
+
data: Prisma.XOR<Prisma.HubModelUpdateManyMutationInput, Prisma.HubModelUncheckedUpdateManyInput>
|
|
1019
|
+
/**
|
|
1020
|
+
* Filter which HubModels to update
|
|
1021
|
+
*/
|
|
1022
|
+
where?: Prisma.HubModelWhereInput
|
|
1023
|
+
/**
|
|
1024
|
+
* Limit how many HubModels to update.
|
|
1025
|
+
*/
|
|
1026
|
+
limit?: number
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
/**
|
|
1030
|
+
* HubModel updateManyAndReturn
|
|
1031
|
+
*/
|
|
1032
|
+
export type HubModelUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1033
|
+
/**
|
|
1034
|
+
* Select specific fields to fetch from the HubModel
|
|
1035
|
+
*/
|
|
1036
|
+
select?: Prisma.HubModelSelectUpdateManyAndReturn<ExtArgs> | null
|
|
1037
|
+
/**
|
|
1038
|
+
* Omit specific fields from the HubModel
|
|
1039
|
+
*/
|
|
1040
|
+
omit?: Prisma.HubModelOmit<ExtArgs> | null
|
|
1041
|
+
/**
|
|
1042
|
+
* The data used to update HubModels.
|
|
1043
|
+
*/
|
|
1044
|
+
data: Prisma.XOR<Prisma.HubModelUpdateManyMutationInput, Prisma.HubModelUncheckedUpdateManyInput>
|
|
1045
|
+
/**
|
|
1046
|
+
* Filter which HubModels to update
|
|
1047
|
+
*/
|
|
1048
|
+
where?: Prisma.HubModelWhereInput
|
|
1049
|
+
/**
|
|
1050
|
+
* Limit how many HubModels to update.
|
|
1051
|
+
*/
|
|
1052
|
+
limit?: number
|
|
1053
|
+
}
|
|
1054
|
+
|
|
1055
|
+
/**
|
|
1056
|
+
* HubModel upsert
|
|
1057
|
+
*/
|
|
1058
|
+
export type HubModelUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1059
|
+
/**
|
|
1060
|
+
* Select specific fields to fetch from the HubModel
|
|
1061
|
+
*/
|
|
1062
|
+
select?: Prisma.HubModelSelect<ExtArgs> | null
|
|
1063
|
+
/**
|
|
1064
|
+
* Omit specific fields from the HubModel
|
|
1065
|
+
*/
|
|
1066
|
+
omit?: Prisma.HubModelOmit<ExtArgs> | null
|
|
1067
|
+
/**
|
|
1068
|
+
* The filter to search for the HubModel to update in case it exists.
|
|
1069
|
+
*/
|
|
1070
|
+
where: Prisma.HubModelWhereUniqueInput
|
|
1071
|
+
/**
|
|
1072
|
+
* In case the HubModel found by the `where` argument doesn't exist, create a new HubModel with this data.
|
|
1073
|
+
*/
|
|
1074
|
+
create: Prisma.XOR<Prisma.HubModelCreateInput, Prisma.HubModelUncheckedCreateInput>
|
|
1075
|
+
/**
|
|
1076
|
+
* In case the HubModel was found with the provided `where` argument, update it with this data.
|
|
1077
|
+
*/
|
|
1078
|
+
update: Prisma.XOR<Prisma.HubModelUpdateInput, Prisma.HubModelUncheckedUpdateInput>
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1081
|
+
/**
|
|
1082
|
+
* HubModel delete
|
|
1083
|
+
*/
|
|
1084
|
+
export type HubModelDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1085
|
+
/**
|
|
1086
|
+
* Select specific fields to fetch from the HubModel
|
|
1087
|
+
*/
|
|
1088
|
+
select?: Prisma.HubModelSelect<ExtArgs> | null
|
|
1089
|
+
/**
|
|
1090
|
+
* Omit specific fields from the HubModel
|
|
1091
|
+
*/
|
|
1092
|
+
omit?: Prisma.HubModelOmit<ExtArgs> | null
|
|
1093
|
+
/**
|
|
1094
|
+
* Filter which HubModel to delete.
|
|
1095
|
+
*/
|
|
1096
|
+
where: Prisma.HubModelWhereUniqueInput
|
|
1097
|
+
}
|
|
1098
|
+
|
|
1099
|
+
/**
|
|
1100
|
+
* HubModel deleteMany
|
|
1101
|
+
*/
|
|
1102
|
+
export type HubModelDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1103
|
+
/**
|
|
1104
|
+
* Filter which HubModels to delete
|
|
1105
|
+
*/
|
|
1106
|
+
where?: Prisma.HubModelWhereInput
|
|
1107
|
+
/**
|
|
1108
|
+
* Limit how many HubModels to delete.
|
|
1109
|
+
*/
|
|
1110
|
+
limit?: number
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
/**
|
|
1114
|
+
* HubModel without action
|
|
1115
|
+
*/
|
|
1116
|
+
export type HubModelDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1117
|
+
/**
|
|
1118
|
+
* Select specific fields to fetch from the HubModel
|
|
1119
|
+
*/
|
|
1120
|
+
select?: Prisma.HubModelSelect<ExtArgs> | null
|
|
1121
|
+
/**
|
|
1122
|
+
* Omit specific fields from the HubModel
|
|
1123
|
+
*/
|
|
1124
|
+
omit?: Prisma.HubModelOmit<ExtArgs> | null
|
|
1125
|
+
}
|