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