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