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