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