@lokalise/prisma-utils 5.0.1 → 6.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.
- package/README.md +129 -12
- package/dist/{errors → src/errors}/cockroachdbError.d.ts +1 -1
- package/dist/src/errors/cockroachdbError.js.map +1 -0
- package/dist/src/errors/index.js.map +1 -0
- package/dist/{errors → src/errors}/prismaError.d.ts +1 -1
- package/dist/src/errors/prismaError.js.map +1 -0
- package/dist/src/factory/extendPrismaClientWithMetrics.d.ts +3 -0
- package/dist/src/factory/extendPrismaClientWithMetrics.js +90 -0
- package/dist/src/factory/extendPrismaClientWithMetrics.js.map +1 -0
- package/dist/src/factory/index.d.ts +1 -0
- package/dist/src/factory/index.js +2 -0
- package/dist/src/factory/index.js.map +1 -0
- package/dist/src/factory/prismaClientFactory.d.ts +20 -0
- package/dist/src/factory/prismaClientFactory.js +26 -0
- package/dist/src/factory/prismaClientFactory.js.map +1 -0
- package/dist/src/index.d.ts +4 -0
- package/dist/src/index.js +4 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/transaction/index.d.ts +2 -0
- package/dist/src/transaction/index.js +2 -0
- package/dist/src/transaction/index.js.map +1 -0
- package/dist/src/transaction/prismaTransaction.d.ts +17 -0
- package/dist/{prismaTransaction.js → src/transaction/prismaTransaction.js} +5 -6
- package/dist/src/transaction/prismaTransaction.js.map +1 -0
- package/dist/src/transaction/types.d.ts +15 -0
- package/dist/src/transaction/types.js +2 -0
- package/dist/src/transaction/types.js.map +1 -0
- package/dist/src/types.d.ts +7 -0
- package/dist/src/types.js +5 -0
- package/dist/src/types.js.map +1 -0
- package/dist/test/db-client/client.d.ts +31 -0
- package/dist/test/db-client/client.js +36 -0
- package/dist/test/db-client/client.js.map +1 -0
- package/dist/test/db-client/commonInputTypes.d.ts +119 -0
- package/dist/test/db-client/commonInputTypes.js +11 -0
- package/dist/test/db-client/commonInputTypes.js.map +1 -0
- package/dist/test/db-client/enums.d.ts +1 -0
- package/dist/test/db-client/enums.js +12 -0
- package/dist/test/db-client/enums.js.map +1 -0
- package/dist/test/db-client/internal/class.d.ts +137 -0
- package/dist/test/db-client/internal/class.js +50 -0
- package/dist/test/db-client/internal/class.js.map +1 -0
- package/dist/test/db-client/internal/prismaNamespace.d.ts +592 -0
- package/dist/test/db-client/internal/prismaNamespace.js +98 -0
- package/dist/test/db-client/internal/prismaNamespace.js.map +1 -0
- package/dist/test/db-client/models/Item1.d.ts +912 -0
- package/dist/test/db-client/models/Item1.js +2 -0
- package/dist/test/db-client/models/Item1.js.map +1 -0
- package/dist/test/db-client/models/Item2.d.ts +909 -0
- package/dist/test/db-client/models/Item2.js +2 -0
- package/dist/test/db-client/models/Item2.js.map +1 -0
- package/dist/test/db-client/models.d.ts +3 -0
- package/dist/test/db-client/models.js +2 -0
- package/dist/test/db-client/models.js.map +1 -0
- package/package.json +13 -18
- package/dist/errors/cockroachdbError.js.map +0 -1
- package/dist/errors/index.js.map +0 -1
- package/dist/errors/prismaError.js.map +0 -1
- package/dist/index.d.ts +0 -5
- package/dist/index.js +0 -5
- package/dist/index.js.map +0 -1
- package/dist/isolation_level/isolationLevel.d.ts +0 -3
- package/dist/isolation_level/isolationLevel.js +0 -2
- package/dist/isolation_level/isolationLevel.js.map +0 -1
- package/dist/plugins/CollectionScheduler.d.ts +0 -12
- package/dist/plugins/CollectionScheduler.js +0 -20
- package/dist/plugins/CollectionScheduler.js.map +0 -1
- package/dist/plugins/MetricsCollector.d.ts +0 -36
- package/dist/plugins/MetricsCollector.js +0 -188
- package/dist/plugins/MetricsCollector.js.map +0 -1
- package/dist/plugins/prismaMetricsPlugin.d.ts +0 -21
- package/dist/plugins/prismaMetricsPlugin.js +0 -49
- package/dist/plugins/prismaMetricsPlugin.js.map +0 -1
- package/dist/prismaClientFactory.d.ts +0 -5
- package/dist/prismaClientFactory.js +0 -11
- package/dist/prismaClientFactory.js.map +0 -1
- package/dist/prismaTransaction.d.ts +0 -17
- package/dist/prismaTransaction.js.map +0 -1
- package/dist/types.d.ts +0 -44
- package/dist/types.js +0 -4
- package/dist/types.js.map +0 -1
- /package/dist/{errors → src/errors}/cockroachdbError.js +0 -0
- /package/dist/{errors → src/errors}/index.d.ts +0 -0
- /package/dist/{errors → src/errors}/index.js +0 -0
- /package/dist/{errors → src/errors}/prismaError.js +0 -0
|
@@ -0,0 +1,909 @@
|
|
|
1
|
+
import type * as runtime from "@prisma/client/runtime/client";
|
|
2
|
+
import type * as Prisma from "../internal/prismaNamespace.ts";
|
|
3
|
+
/**
|
|
4
|
+
* Model Item2
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
export type Item2Model = runtime.Types.Result.DefaultSelection<Prisma.$Item2Payload>;
|
|
8
|
+
export type AggregateItem2 = {
|
|
9
|
+
_count: Item2CountAggregateOutputType | null;
|
|
10
|
+
_min: Item2MinAggregateOutputType | null;
|
|
11
|
+
_max: Item2MaxAggregateOutputType | null;
|
|
12
|
+
};
|
|
13
|
+
export type Item2MinAggregateOutputType = {
|
|
14
|
+
id: string | null;
|
|
15
|
+
value: string | null;
|
|
16
|
+
};
|
|
17
|
+
export type Item2MaxAggregateOutputType = {
|
|
18
|
+
id: string | null;
|
|
19
|
+
value: string | null;
|
|
20
|
+
};
|
|
21
|
+
export type Item2CountAggregateOutputType = {
|
|
22
|
+
id: number;
|
|
23
|
+
value: number;
|
|
24
|
+
_all: number;
|
|
25
|
+
};
|
|
26
|
+
export type Item2MinAggregateInputType = {
|
|
27
|
+
id?: true;
|
|
28
|
+
value?: true;
|
|
29
|
+
};
|
|
30
|
+
export type Item2MaxAggregateInputType = {
|
|
31
|
+
id?: true;
|
|
32
|
+
value?: true;
|
|
33
|
+
};
|
|
34
|
+
export type Item2CountAggregateInputType = {
|
|
35
|
+
id?: true;
|
|
36
|
+
value?: true;
|
|
37
|
+
_all?: true;
|
|
38
|
+
};
|
|
39
|
+
export type Item2AggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
40
|
+
/**
|
|
41
|
+
* Filter which Item2 to aggregate.
|
|
42
|
+
*/
|
|
43
|
+
where?: Prisma.Item2WhereInput;
|
|
44
|
+
/**
|
|
45
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
46
|
+
*
|
|
47
|
+
* Determine the order of Item2s to fetch.
|
|
48
|
+
*/
|
|
49
|
+
orderBy?: Prisma.Item2OrderByWithRelationInput | Prisma.Item2OrderByWithRelationInput[];
|
|
50
|
+
/**
|
|
51
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
52
|
+
*
|
|
53
|
+
* Sets the start position
|
|
54
|
+
*/
|
|
55
|
+
cursor?: Prisma.Item2WhereUniqueInput;
|
|
56
|
+
/**
|
|
57
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
58
|
+
*
|
|
59
|
+
* Take `±n` Item2s from the position of the cursor.
|
|
60
|
+
*/
|
|
61
|
+
take?: number;
|
|
62
|
+
/**
|
|
63
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
64
|
+
*
|
|
65
|
+
* Skip the first `n` Item2s.
|
|
66
|
+
*/
|
|
67
|
+
skip?: number;
|
|
68
|
+
/**
|
|
69
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
70
|
+
*
|
|
71
|
+
* Count returned Item2s
|
|
72
|
+
**/
|
|
73
|
+
_count?: true | Item2CountAggregateInputType;
|
|
74
|
+
/**
|
|
75
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
76
|
+
*
|
|
77
|
+
* Select which fields to find the minimum value
|
|
78
|
+
**/
|
|
79
|
+
_min?: Item2MinAggregateInputType;
|
|
80
|
+
/**
|
|
81
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
82
|
+
*
|
|
83
|
+
* Select which fields to find the maximum value
|
|
84
|
+
**/
|
|
85
|
+
_max?: Item2MaxAggregateInputType;
|
|
86
|
+
};
|
|
87
|
+
export type GetItem2AggregateType<T extends Item2AggregateArgs> = {
|
|
88
|
+
[P in keyof T & keyof AggregateItem2]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateItem2[P]> : Prisma.GetScalarType<T[P], AggregateItem2[P]>;
|
|
89
|
+
};
|
|
90
|
+
export type Item2GroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
91
|
+
where?: Prisma.Item2WhereInput;
|
|
92
|
+
orderBy?: Prisma.Item2OrderByWithAggregationInput | Prisma.Item2OrderByWithAggregationInput[];
|
|
93
|
+
by: Prisma.Item2ScalarFieldEnum[] | Prisma.Item2ScalarFieldEnum;
|
|
94
|
+
having?: Prisma.Item2ScalarWhereWithAggregatesInput;
|
|
95
|
+
take?: number;
|
|
96
|
+
skip?: number;
|
|
97
|
+
_count?: Item2CountAggregateInputType | true;
|
|
98
|
+
_min?: Item2MinAggregateInputType;
|
|
99
|
+
_max?: Item2MaxAggregateInputType;
|
|
100
|
+
};
|
|
101
|
+
export type Item2GroupByOutputType = {
|
|
102
|
+
id: string;
|
|
103
|
+
value: string;
|
|
104
|
+
_count: Item2CountAggregateOutputType | null;
|
|
105
|
+
_min: Item2MinAggregateOutputType | null;
|
|
106
|
+
_max: Item2MaxAggregateOutputType | null;
|
|
107
|
+
};
|
|
108
|
+
type GetItem2GroupByPayload<T extends Item2GroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<Item2GroupByOutputType, T['by']> & {
|
|
109
|
+
[P in ((keyof T) & (keyof Item2GroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], Item2GroupByOutputType[P]> : Prisma.GetScalarType<T[P], Item2GroupByOutputType[P]>;
|
|
110
|
+
}>>;
|
|
111
|
+
export type Item2WhereInput = {
|
|
112
|
+
AND?: Prisma.Item2WhereInput | Prisma.Item2WhereInput[];
|
|
113
|
+
OR?: Prisma.Item2WhereInput[];
|
|
114
|
+
NOT?: Prisma.Item2WhereInput | Prisma.Item2WhereInput[];
|
|
115
|
+
id?: Prisma.UuidFilter<"Item2"> | string;
|
|
116
|
+
value?: Prisma.StringFilter<"Item2"> | string;
|
|
117
|
+
};
|
|
118
|
+
export type Item2OrderByWithRelationInput = {
|
|
119
|
+
id?: Prisma.SortOrder;
|
|
120
|
+
value?: Prisma.SortOrder;
|
|
121
|
+
};
|
|
122
|
+
export type Item2WhereUniqueInput = Prisma.AtLeast<{
|
|
123
|
+
id?: string;
|
|
124
|
+
AND?: Prisma.Item2WhereInput | Prisma.Item2WhereInput[];
|
|
125
|
+
OR?: Prisma.Item2WhereInput[];
|
|
126
|
+
NOT?: Prisma.Item2WhereInput | Prisma.Item2WhereInput[];
|
|
127
|
+
value?: Prisma.StringFilter<"Item2"> | string;
|
|
128
|
+
}, "id" | "id">;
|
|
129
|
+
export type Item2OrderByWithAggregationInput = {
|
|
130
|
+
id?: Prisma.SortOrder;
|
|
131
|
+
value?: Prisma.SortOrder;
|
|
132
|
+
_count?: Prisma.Item2CountOrderByAggregateInput;
|
|
133
|
+
_max?: Prisma.Item2MaxOrderByAggregateInput;
|
|
134
|
+
_min?: Prisma.Item2MinOrderByAggregateInput;
|
|
135
|
+
};
|
|
136
|
+
export type Item2ScalarWhereWithAggregatesInput = {
|
|
137
|
+
AND?: Prisma.Item2ScalarWhereWithAggregatesInput | Prisma.Item2ScalarWhereWithAggregatesInput[];
|
|
138
|
+
OR?: Prisma.Item2ScalarWhereWithAggregatesInput[];
|
|
139
|
+
NOT?: Prisma.Item2ScalarWhereWithAggregatesInput | Prisma.Item2ScalarWhereWithAggregatesInput[];
|
|
140
|
+
id?: Prisma.UuidWithAggregatesFilter<"Item2"> | string;
|
|
141
|
+
value?: Prisma.StringWithAggregatesFilter<"Item2"> | string;
|
|
142
|
+
};
|
|
143
|
+
export type Item2CreateInput = {
|
|
144
|
+
id?: string;
|
|
145
|
+
value: string;
|
|
146
|
+
};
|
|
147
|
+
export type Item2UncheckedCreateInput = {
|
|
148
|
+
id?: string;
|
|
149
|
+
value: string;
|
|
150
|
+
};
|
|
151
|
+
export type Item2UpdateInput = {
|
|
152
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
153
|
+
value?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
154
|
+
};
|
|
155
|
+
export type Item2UncheckedUpdateInput = {
|
|
156
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
157
|
+
value?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
158
|
+
};
|
|
159
|
+
export type Item2CreateManyInput = {
|
|
160
|
+
id?: string;
|
|
161
|
+
value: string;
|
|
162
|
+
};
|
|
163
|
+
export type Item2UpdateManyMutationInput = {
|
|
164
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
165
|
+
value?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
166
|
+
};
|
|
167
|
+
export type Item2UncheckedUpdateManyInput = {
|
|
168
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
169
|
+
value?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
170
|
+
};
|
|
171
|
+
export type Item2CountOrderByAggregateInput = {
|
|
172
|
+
id?: Prisma.SortOrder;
|
|
173
|
+
value?: Prisma.SortOrder;
|
|
174
|
+
};
|
|
175
|
+
export type Item2MaxOrderByAggregateInput = {
|
|
176
|
+
id?: Prisma.SortOrder;
|
|
177
|
+
value?: Prisma.SortOrder;
|
|
178
|
+
};
|
|
179
|
+
export type Item2MinOrderByAggregateInput = {
|
|
180
|
+
id?: Prisma.SortOrder;
|
|
181
|
+
value?: Prisma.SortOrder;
|
|
182
|
+
};
|
|
183
|
+
export type Item2Select<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
184
|
+
id?: boolean;
|
|
185
|
+
value?: boolean;
|
|
186
|
+
}, ExtArgs["result"]["item2"]>;
|
|
187
|
+
export type Item2SelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
188
|
+
id?: boolean;
|
|
189
|
+
value?: boolean;
|
|
190
|
+
}, ExtArgs["result"]["item2"]>;
|
|
191
|
+
export type Item2SelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
192
|
+
id?: boolean;
|
|
193
|
+
value?: boolean;
|
|
194
|
+
}, ExtArgs["result"]["item2"]>;
|
|
195
|
+
export type Item2SelectScalar = {
|
|
196
|
+
id?: boolean;
|
|
197
|
+
value?: boolean;
|
|
198
|
+
};
|
|
199
|
+
export type Item2Omit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "value", ExtArgs["result"]["item2"]>;
|
|
200
|
+
export type $Item2Payload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
201
|
+
name: "Item2";
|
|
202
|
+
objects: {};
|
|
203
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
204
|
+
id: string;
|
|
205
|
+
value: string;
|
|
206
|
+
}, ExtArgs["result"]["item2"]>;
|
|
207
|
+
composites: {};
|
|
208
|
+
};
|
|
209
|
+
export type Item2GetPayload<S extends boolean | null | undefined | Item2DefaultArgs> = runtime.Types.Result.GetResult<Prisma.$Item2Payload, S>;
|
|
210
|
+
export type Item2CountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<Item2FindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
211
|
+
select?: Item2CountAggregateInputType | true;
|
|
212
|
+
};
|
|
213
|
+
export interface Item2Delegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
214
|
+
[K: symbol]: {
|
|
215
|
+
types: Prisma.TypeMap<ExtArgs>['model']['Item2'];
|
|
216
|
+
meta: {
|
|
217
|
+
name: 'Item2';
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
/**
|
|
221
|
+
* Find zero or one Item2 that matches the filter.
|
|
222
|
+
* @param {Item2FindUniqueArgs} args - Arguments to find a Item2
|
|
223
|
+
* @example
|
|
224
|
+
* // Get one Item2
|
|
225
|
+
* const item2 = await prisma.item2.findUnique({
|
|
226
|
+
* where: {
|
|
227
|
+
* // ... provide filter here
|
|
228
|
+
* }
|
|
229
|
+
* })
|
|
230
|
+
*/
|
|
231
|
+
findUnique<T extends Item2FindUniqueArgs>(args: Prisma.SelectSubset<T, Item2FindUniqueArgs<ExtArgs>>): Prisma.Prisma__Item2Client<runtime.Types.Result.GetResult<Prisma.$Item2Payload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
232
|
+
/**
|
|
233
|
+
* Find one Item2 that matches the filter or throw an error with `error.code='P2025'`
|
|
234
|
+
* if no matches were found.
|
|
235
|
+
* @param {Item2FindUniqueOrThrowArgs} args - Arguments to find a Item2
|
|
236
|
+
* @example
|
|
237
|
+
* // Get one Item2
|
|
238
|
+
* const item2 = await prisma.item2.findUniqueOrThrow({
|
|
239
|
+
* where: {
|
|
240
|
+
* // ... provide filter here
|
|
241
|
+
* }
|
|
242
|
+
* })
|
|
243
|
+
*/
|
|
244
|
+
findUniqueOrThrow<T extends Item2FindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, Item2FindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__Item2Client<runtime.Types.Result.GetResult<Prisma.$Item2Payload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
245
|
+
/**
|
|
246
|
+
* Find the first Item2 that matches the filter.
|
|
247
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
248
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
249
|
+
* @param {Item2FindFirstArgs} args - Arguments to find a Item2
|
|
250
|
+
* @example
|
|
251
|
+
* // Get one Item2
|
|
252
|
+
* const item2 = await prisma.item2.findFirst({
|
|
253
|
+
* where: {
|
|
254
|
+
* // ... provide filter here
|
|
255
|
+
* }
|
|
256
|
+
* })
|
|
257
|
+
*/
|
|
258
|
+
findFirst<T extends Item2FindFirstArgs>(args?: Prisma.SelectSubset<T, Item2FindFirstArgs<ExtArgs>>): Prisma.Prisma__Item2Client<runtime.Types.Result.GetResult<Prisma.$Item2Payload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
259
|
+
/**
|
|
260
|
+
* Find the first Item2 that matches the filter or
|
|
261
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
262
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
263
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
264
|
+
* @param {Item2FindFirstOrThrowArgs} args - Arguments to find a Item2
|
|
265
|
+
* @example
|
|
266
|
+
* // Get one Item2
|
|
267
|
+
* const item2 = await prisma.item2.findFirstOrThrow({
|
|
268
|
+
* where: {
|
|
269
|
+
* // ... provide filter here
|
|
270
|
+
* }
|
|
271
|
+
* })
|
|
272
|
+
*/
|
|
273
|
+
findFirstOrThrow<T extends Item2FindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, Item2FindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__Item2Client<runtime.Types.Result.GetResult<Prisma.$Item2Payload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
274
|
+
/**
|
|
275
|
+
* Find zero or more Item2s that matches the filter.
|
|
276
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
277
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
278
|
+
* @param {Item2FindManyArgs} args - Arguments to filter and select certain fields only.
|
|
279
|
+
* @example
|
|
280
|
+
* // Get all Item2s
|
|
281
|
+
* const item2s = await prisma.item2.findMany()
|
|
282
|
+
*
|
|
283
|
+
* // Get first 10 Item2s
|
|
284
|
+
* const item2s = await prisma.item2.findMany({ take: 10 })
|
|
285
|
+
*
|
|
286
|
+
* // Only select the `id`
|
|
287
|
+
* const item2WithIdOnly = await prisma.item2.findMany({ select: { id: true } })
|
|
288
|
+
*
|
|
289
|
+
*/
|
|
290
|
+
findMany<T extends Item2FindManyArgs>(args?: Prisma.SelectSubset<T, Item2FindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$Item2Payload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
|
|
291
|
+
/**
|
|
292
|
+
* Create a Item2.
|
|
293
|
+
* @param {Item2CreateArgs} args - Arguments to create a Item2.
|
|
294
|
+
* @example
|
|
295
|
+
* // Create one Item2
|
|
296
|
+
* const Item2 = await prisma.item2.create({
|
|
297
|
+
* data: {
|
|
298
|
+
* // ... data to create a Item2
|
|
299
|
+
* }
|
|
300
|
+
* })
|
|
301
|
+
*
|
|
302
|
+
*/
|
|
303
|
+
create<T extends Item2CreateArgs>(args: Prisma.SelectSubset<T, Item2CreateArgs<ExtArgs>>): Prisma.Prisma__Item2Client<runtime.Types.Result.GetResult<Prisma.$Item2Payload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
304
|
+
/**
|
|
305
|
+
* Create many Item2s.
|
|
306
|
+
* @param {Item2CreateManyArgs} args - Arguments to create many Item2s.
|
|
307
|
+
* @example
|
|
308
|
+
* // Create many Item2s
|
|
309
|
+
* const item2 = await prisma.item2.createMany({
|
|
310
|
+
* data: [
|
|
311
|
+
* // ... provide data here
|
|
312
|
+
* ]
|
|
313
|
+
* })
|
|
314
|
+
*
|
|
315
|
+
*/
|
|
316
|
+
createMany<T extends Item2CreateManyArgs>(args?: Prisma.SelectSubset<T, Item2CreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
317
|
+
/**
|
|
318
|
+
* Create many Item2s and returns the data saved in the database.
|
|
319
|
+
* @param {Item2CreateManyAndReturnArgs} args - Arguments to create many Item2s.
|
|
320
|
+
* @example
|
|
321
|
+
* // Create many Item2s
|
|
322
|
+
* const item2 = await prisma.item2.createManyAndReturn({
|
|
323
|
+
* data: [
|
|
324
|
+
* // ... provide data here
|
|
325
|
+
* ]
|
|
326
|
+
* })
|
|
327
|
+
*
|
|
328
|
+
* // Create many Item2s and only return the `id`
|
|
329
|
+
* const item2WithIdOnly = await prisma.item2.createManyAndReturn({
|
|
330
|
+
* select: { id: true },
|
|
331
|
+
* data: [
|
|
332
|
+
* // ... provide data here
|
|
333
|
+
* ]
|
|
334
|
+
* })
|
|
335
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
336
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
337
|
+
*
|
|
338
|
+
*/
|
|
339
|
+
createManyAndReturn<T extends Item2CreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, Item2CreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$Item2Payload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
|
|
340
|
+
/**
|
|
341
|
+
* Delete a Item2.
|
|
342
|
+
* @param {Item2DeleteArgs} args - Arguments to delete one Item2.
|
|
343
|
+
* @example
|
|
344
|
+
* // Delete one Item2
|
|
345
|
+
* const Item2 = await prisma.item2.delete({
|
|
346
|
+
* where: {
|
|
347
|
+
* // ... filter to delete one Item2
|
|
348
|
+
* }
|
|
349
|
+
* })
|
|
350
|
+
*
|
|
351
|
+
*/
|
|
352
|
+
delete<T extends Item2DeleteArgs>(args: Prisma.SelectSubset<T, Item2DeleteArgs<ExtArgs>>): Prisma.Prisma__Item2Client<runtime.Types.Result.GetResult<Prisma.$Item2Payload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
353
|
+
/**
|
|
354
|
+
* Update one Item2.
|
|
355
|
+
* @param {Item2UpdateArgs} args - Arguments to update one Item2.
|
|
356
|
+
* @example
|
|
357
|
+
* // Update one Item2
|
|
358
|
+
* const item2 = await prisma.item2.update({
|
|
359
|
+
* where: {
|
|
360
|
+
* // ... provide filter here
|
|
361
|
+
* },
|
|
362
|
+
* data: {
|
|
363
|
+
* // ... provide data here
|
|
364
|
+
* }
|
|
365
|
+
* })
|
|
366
|
+
*
|
|
367
|
+
*/
|
|
368
|
+
update<T extends Item2UpdateArgs>(args: Prisma.SelectSubset<T, Item2UpdateArgs<ExtArgs>>): Prisma.Prisma__Item2Client<runtime.Types.Result.GetResult<Prisma.$Item2Payload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
369
|
+
/**
|
|
370
|
+
* Delete zero or more Item2s.
|
|
371
|
+
* @param {Item2DeleteManyArgs} args - Arguments to filter Item2s to delete.
|
|
372
|
+
* @example
|
|
373
|
+
* // Delete a few Item2s
|
|
374
|
+
* const { count } = await prisma.item2.deleteMany({
|
|
375
|
+
* where: {
|
|
376
|
+
* // ... provide filter here
|
|
377
|
+
* }
|
|
378
|
+
* })
|
|
379
|
+
*
|
|
380
|
+
*/
|
|
381
|
+
deleteMany<T extends Item2DeleteManyArgs>(args?: Prisma.SelectSubset<T, Item2DeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
382
|
+
/**
|
|
383
|
+
* Update zero or more Item2s.
|
|
384
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
385
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
386
|
+
* @param {Item2UpdateManyArgs} args - Arguments to update one or more rows.
|
|
387
|
+
* @example
|
|
388
|
+
* // Update many Item2s
|
|
389
|
+
* const item2 = await prisma.item2.updateMany({
|
|
390
|
+
* where: {
|
|
391
|
+
* // ... provide filter here
|
|
392
|
+
* },
|
|
393
|
+
* data: {
|
|
394
|
+
* // ... provide data here
|
|
395
|
+
* }
|
|
396
|
+
* })
|
|
397
|
+
*
|
|
398
|
+
*/
|
|
399
|
+
updateMany<T extends Item2UpdateManyArgs>(args: Prisma.SelectSubset<T, Item2UpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
400
|
+
/**
|
|
401
|
+
* Update zero or more Item2s and returns the data updated in the database.
|
|
402
|
+
* @param {Item2UpdateManyAndReturnArgs} args - Arguments to update many Item2s.
|
|
403
|
+
* @example
|
|
404
|
+
* // Update many Item2s
|
|
405
|
+
* const item2 = await prisma.item2.updateManyAndReturn({
|
|
406
|
+
* where: {
|
|
407
|
+
* // ... provide filter here
|
|
408
|
+
* },
|
|
409
|
+
* data: [
|
|
410
|
+
* // ... provide data here
|
|
411
|
+
* ]
|
|
412
|
+
* })
|
|
413
|
+
*
|
|
414
|
+
* // Update zero or more Item2s and only return the `id`
|
|
415
|
+
* const item2WithIdOnly = await prisma.item2.updateManyAndReturn({
|
|
416
|
+
* select: { id: true },
|
|
417
|
+
* where: {
|
|
418
|
+
* // ... provide filter here
|
|
419
|
+
* },
|
|
420
|
+
* data: [
|
|
421
|
+
* // ... provide data here
|
|
422
|
+
* ]
|
|
423
|
+
* })
|
|
424
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
425
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
426
|
+
*
|
|
427
|
+
*/
|
|
428
|
+
updateManyAndReturn<T extends Item2UpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, Item2UpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$Item2Payload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
|
|
429
|
+
/**
|
|
430
|
+
* Create or update one Item2.
|
|
431
|
+
* @param {Item2UpsertArgs} args - Arguments to update or create a Item2.
|
|
432
|
+
* @example
|
|
433
|
+
* // Update or create a Item2
|
|
434
|
+
* const item2 = await prisma.item2.upsert({
|
|
435
|
+
* create: {
|
|
436
|
+
* // ... data to create a Item2
|
|
437
|
+
* },
|
|
438
|
+
* update: {
|
|
439
|
+
* // ... in case it already exists, update
|
|
440
|
+
* },
|
|
441
|
+
* where: {
|
|
442
|
+
* // ... the filter for the Item2 we want to update
|
|
443
|
+
* }
|
|
444
|
+
* })
|
|
445
|
+
*/
|
|
446
|
+
upsert<T extends Item2UpsertArgs>(args: Prisma.SelectSubset<T, Item2UpsertArgs<ExtArgs>>): Prisma.Prisma__Item2Client<runtime.Types.Result.GetResult<Prisma.$Item2Payload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
447
|
+
/**
|
|
448
|
+
* Count the number of Item2s.
|
|
449
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
450
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
451
|
+
* @param {Item2CountArgs} args - Arguments to filter Item2s to count.
|
|
452
|
+
* @example
|
|
453
|
+
* // Count the number of Item2s
|
|
454
|
+
* const count = await prisma.item2.count({
|
|
455
|
+
* where: {
|
|
456
|
+
* // ... the filter for the Item2s we want to count
|
|
457
|
+
* }
|
|
458
|
+
* })
|
|
459
|
+
**/
|
|
460
|
+
count<T extends Item2CountArgs>(args?: Prisma.Subset<T, Item2CountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], Item2CountAggregateOutputType> : number>;
|
|
461
|
+
/**
|
|
462
|
+
* Allows you to perform aggregations operations on a Item2.
|
|
463
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
464
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
465
|
+
* @param {Item2AggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
466
|
+
* @example
|
|
467
|
+
* // Ordered by age ascending
|
|
468
|
+
* // Where email contains prisma.io
|
|
469
|
+
* // Limited to the 10 users
|
|
470
|
+
* const aggregations = await prisma.user.aggregate({
|
|
471
|
+
* _avg: {
|
|
472
|
+
* age: true,
|
|
473
|
+
* },
|
|
474
|
+
* where: {
|
|
475
|
+
* email: {
|
|
476
|
+
* contains: "prisma.io",
|
|
477
|
+
* },
|
|
478
|
+
* },
|
|
479
|
+
* orderBy: {
|
|
480
|
+
* age: "asc",
|
|
481
|
+
* },
|
|
482
|
+
* take: 10,
|
|
483
|
+
* })
|
|
484
|
+
**/
|
|
485
|
+
aggregate<T extends Item2AggregateArgs>(args: Prisma.Subset<T, Item2AggregateArgs>): Prisma.PrismaPromise<GetItem2AggregateType<T>>;
|
|
486
|
+
/**
|
|
487
|
+
* Group by Item2.
|
|
488
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
489
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
490
|
+
* @param {Item2GroupByArgs} args - Group by arguments.
|
|
491
|
+
* @example
|
|
492
|
+
* // Group by city, order by createdAt, get count
|
|
493
|
+
* const result = await prisma.user.groupBy({
|
|
494
|
+
* by: ['city', 'createdAt'],
|
|
495
|
+
* orderBy: {
|
|
496
|
+
* createdAt: true
|
|
497
|
+
* },
|
|
498
|
+
* _count: {
|
|
499
|
+
* _all: true
|
|
500
|
+
* },
|
|
501
|
+
* })
|
|
502
|
+
*
|
|
503
|
+
**/
|
|
504
|
+
groupBy<T extends Item2GroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
|
|
505
|
+
orderBy: Item2GroupByArgs['orderBy'];
|
|
506
|
+
} : {
|
|
507
|
+
orderBy?: Item2GroupByArgs['orderBy'];
|
|
508
|
+
}, 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 ? {
|
|
509
|
+
[P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
|
|
510
|
+
Error,
|
|
511
|
+
'Field ',
|
|
512
|
+
P,
|
|
513
|
+
` in "having" needs to be provided in "by"`
|
|
514
|
+
];
|
|
515
|
+
}[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
516
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
517
|
+
}[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 ? {} : {
|
|
518
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
519
|
+
}[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
|
|
520
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
521
|
+
}[OrderFields]>(args: Prisma.SubsetIntersection<T, Item2GroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetItem2GroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
|
|
522
|
+
/**
|
|
523
|
+
* Fields of the Item2 model
|
|
524
|
+
*/
|
|
525
|
+
readonly fields: Item2FieldRefs;
|
|
526
|
+
}
|
|
527
|
+
/**
|
|
528
|
+
* The delegate class that acts as a "Promise-like" for Item2.
|
|
529
|
+
* Why is this prefixed with `Prisma__`?
|
|
530
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
531
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
532
|
+
*/
|
|
533
|
+
export interface Prisma__Item2Client<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
534
|
+
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
535
|
+
/**
|
|
536
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
537
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
538
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
539
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
540
|
+
*/
|
|
541
|
+
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>;
|
|
542
|
+
/**
|
|
543
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
544
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
545
|
+
* @returns A Promise for the completion of the callback.
|
|
546
|
+
*/
|
|
547
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
|
|
548
|
+
/**
|
|
549
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
550
|
+
* resolved value cannot be modified from the callback.
|
|
551
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
552
|
+
* @returns A Promise for the completion of the callback.
|
|
553
|
+
*/
|
|
554
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
|
|
555
|
+
}
|
|
556
|
+
/**
|
|
557
|
+
* Fields of the Item2 model
|
|
558
|
+
*/
|
|
559
|
+
export interface Item2FieldRefs {
|
|
560
|
+
readonly id: Prisma.FieldRef<"Item2", 'String'>;
|
|
561
|
+
readonly value: Prisma.FieldRef<"Item2", 'String'>;
|
|
562
|
+
}
|
|
563
|
+
/**
|
|
564
|
+
* Item2 findUnique
|
|
565
|
+
*/
|
|
566
|
+
export type Item2FindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
567
|
+
/**
|
|
568
|
+
* Select specific fields to fetch from the Item2
|
|
569
|
+
*/
|
|
570
|
+
select?: Prisma.Item2Select<ExtArgs> | null;
|
|
571
|
+
/**
|
|
572
|
+
* Omit specific fields from the Item2
|
|
573
|
+
*/
|
|
574
|
+
omit?: Prisma.Item2Omit<ExtArgs> | null;
|
|
575
|
+
/**
|
|
576
|
+
* Filter, which Item2 to fetch.
|
|
577
|
+
*/
|
|
578
|
+
where: Prisma.Item2WhereUniqueInput;
|
|
579
|
+
};
|
|
580
|
+
/**
|
|
581
|
+
* Item2 findUniqueOrThrow
|
|
582
|
+
*/
|
|
583
|
+
export type Item2FindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
584
|
+
/**
|
|
585
|
+
* Select specific fields to fetch from the Item2
|
|
586
|
+
*/
|
|
587
|
+
select?: Prisma.Item2Select<ExtArgs> | null;
|
|
588
|
+
/**
|
|
589
|
+
* Omit specific fields from the Item2
|
|
590
|
+
*/
|
|
591
|
+
omit?: Prisma.Item2Omit<ExtArgs> | null;
|
|
592
|
+
/**
|
|
593
|
+
* Filter, which Item2 to fetch.
|
|
594
|
+
*/
|
|
595
|
+
where: Prisma.Item2WhereUniqueInput;
|
|
596
|
+
};
|
|
597
|
+
/**
|
|
598
|
+
* Item2 findFirst
|
|
599
|
+
*/
|
|
600
|
+
export type Item2FindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
601
|
+
/**
|
|
602
|
+
* Select specific fields to fetch from the Item2
|
|
603
|
+
*/
|
|
604
|
+
select?: Prisma.Item2Select<ExtArgs> | null;
|
|
605
|
+
/**
|
|
606
|
+
* Omit specific fields from the Item2
|
|
607
|
+
*/
|
|
608
|
+
omit?: Prisma.Item2Omit<ExtArgs> | null;
|
|
609
|
+
/**
|
|
610
|
+
* Filter, which Item2 to fetch.
|
|
611
|
+
*/
|
|
612
|
+
where?: Prisma.Item2WhereInput;
|
|
613
|
+
/**
|
|
614
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
615
|
+
*
|
|
616
|
+
* Determine the order of Item2s to fetch.
|
|
617
|
+
*/
|
|
618
|
+
orderBy?: Prisma.Item2OrderByWithRelationInput | Prisma.Item2OrderByWithRelationInput[];
|
|
619
|
+
/**
|
|
620
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
621
|
+
*
|
|
622
|
+
* Sets the position for searching for Item2s.
|
|
623
|
+
*/
|
|
624
|
+
cursor?: Prisma.Item2WhereUniqueInput;
|
|
625
|
+
/**
|
|
626
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
627
|
+
*
|
|
628
|
+
* Take `±n` Item2s from the position of the cursor.
|
|
629
|
+
*/
|
|
630
|
+
take?: number;
|
|
631
|
+
/**
|
|
632
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
633
|
+
*
|
|
634
|
+
* Skip the first `n` Item2s.
|
|
635
|
+
*/
|
|
636
|
+
skip?: number;
|
|
637
|
+
/**
|
|
638
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
639
|
+
*
|
|
640
|
+
* Filter by unique combinations of Item2s.
|
|
641
|
+
*/
|
|
642
|
+
distinct?: Prisma.Item2ScalarFieldEnum | Prisma.Item2ScalarFieldEnum[];
|
|
643
|
+
};
|
|
644
|
+
/**
|
|
645
|
+
* Item2 findFirstOrThrow
|
|
646
|
+
*/
|
|
647
|
+
export type Item2FindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
648
|
+
/**
|
|
649
|
+
* Select specific fields to fetch from the Item2
|
|
650
|
+
*/
|
|
651
|
+
select?: Prisma.Item2Select<ExtArgs> | null;
|
|
652
|
+
/**
|
|
653
|
+
* Omit specific fields from the Item2
|
|
654
|
+
*/
|
|
655
|
+
omit?: Prisma.Item2Omit<ExtArgs> | null;
|
|
656
|
+
/**
|
|
657
|
+
* Filter, which Item2 to fetch.
|
|
658
|
+
*/
|
|
659
|
+
where?: Prisma.Item2WhereInput;
|
|
660
|
+
/**
|
|
661
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
662
|
+
*
|
|
663
|
+
* Determine the order of Item2s to fetch.
|
|
664
|
+
*/
|
|
665
|
+
orderBy?: Prisma.Item2OrderByWithRelationInput | Prisma.Item2OrderByWithRelationInput[];
|
|
666
|
+
/**
|
|
667
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
668
|
+
*
|
|
669
|
+
* Sets the position for searching for Item2s.
|
|
670
|
+
*/
|
|
671
|
+
cursor?: Prisma.Item2WhereUniqueInput;
|
|
672
|
+
/**
|
|
673
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
674
|
+
*
|
|
675
|
+
* Take `±n` Item2s from the position of the cursor.
|
|
676
|
+
*/
|
|
677
|
+
take?: number;
|
|
678
|
+
/**
|
|
679
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
680
|
+
*
|
|
681
|
+
* Skip the first `n` Item2s.
|
|
682
|
+
*/
|
|
683
|
+
skip?: number;
|
|
684
|
+
/**
|
|
685
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
686
|
+
*
|
|
687
|
+
* Filter by unique combinations of Item2s.
|
|
688
|
+
*/
|
|
689
|
+
distinct?: Prisma.Item2ScalarFieldEnum | Prisma.Item2ScalarFieldEnum[];
|
|
690
|
+
};
|
|
691
|
+
/**
|
|
692
|
+
* Item2 findMany
|
|
693
|
+
*/
|
|
694
|
+
export type Item2FindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
695
|
+
/**
|
|
696
|
+
* Select specific fields to fetch from the Item2
|
|
697
|
+
*/
|
|
698
|
+
select?: Prisma.Item2Select<ExtArgs> | null;
|
|
699
|
+
/**
|
|
700
|
+
* Omit specific fields from the Item2
|
|
701
|
+
*/
|
|
702
|
+
omit?: Prisma.Item2Omit<ExtArgs> | null;
|
|
703
|
+
/**
|
|
704
|
+
* Filter, which Item2s to fetch.
|
|
705
|
+
*/
|
|
706
|
+
where?: Prisma.Item2WhereInput;
|
|
707
|
+
/**
|
|
708
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
709
|
+
*
|
|
710
|
+
* Determine the order of Item2s to fetch.
|
|
711
|
+
*/
|
|
712
|
+
orderBy?: Prisma.Item2OrderByWithRelationInput | Prisma.Item2OrderByWithRelationInput[];
|
|
713
|
+
/**
|
|
714
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
715
|
+
*
|
|
716
|
+
* Sets the position for listing Item2s.
|
|
717
|
+
*/
|
|
718
|
+
cursor?: Prisma.Item2WhereUniqueInput;
|
|
719
|
+
/**
|
|
720
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
721
|
+
*
|
|
722
|
+
* Take `±n` Item2s from the position of the cursor.
|
|
723
|
+
*/
|
|
724
|
+
take?: number;
|
|
725
|
+
/**
|
|
726
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
727
|
+
*
|
|
728
|
+
* Skip the first `n` Item2s.
|
|
729
|
+
*/
|
|
730
|
+
skip?: number;
|
|
731
|
+
distinct?: Prisma.Item2ScalarFieldEnum | Prisma.Item2ScalarFieldEnum[];
|
|
732
|
+
};
|
|
733
|
+
/**
|
|
734
|
+
* Item2 create
|
|
735
|
+
*/
|
|
736
|
+
export type Item2CreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
737
|
+
/**
|
|
738
|
+
* Select specific fields to fetch from the Item2
|
|
739
|
+
*/
|
|
740
|
+
select?: Prisma.Item2Select<ExtArgs> | null;
|
|
741
|
+
/**
|
|
742
|
+
* Omit specific fields from the Item2
|
|
743
|
+
*/
|
|
744
|
+
omit?: Prisma.Item2Omit<ExtArgs> | null;
|
|
745
|
+
/**
|
|
746
|
+
* The data needed to create a Item2.
|
|
747
|
+
*/
|
|
748
|
+
data: Prisma.XOR<Prisma.Item2CreateInput, Prisma.Item2UncheckedCreateInput>;
|
|
749
|
+
};
|
|
750
|
+
/**
|
|
751
|
+
* Item2 createMany
|
|
752
|
+
*/
|
|
753
|
+
export type Item2CreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
754
|
+
/**
|
|
755
|
+
* The data used to create many Item2s.
|
|
756
|
+
*/
|
|
757
|
+
data: Prisma.Item2CreateManyInput | Prisma.Item2CreateManyInput[];
|
|
758
|
+
skipDuplicates?: boolean;
|
|
759
|
+
};
|
|
760
|
+
/**
|
|
761
|
+
* Item2 createManyAndReturn
|
|
762
|
+
*/
|
|
763
|
+
export type Item2CreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
764
|
+
/**
|
|
765
|
+
* Select specific fields to fetch from the Item2
|
|
766
|
+
*/
|
|
767
|
+
select?: Prisma.Item2SelectCreateManyAndReturn<ExtArgs> | null;
|
|
768
|
+
/**
|
|
769
|
+
* Omit specific fields from the Item2
|
|
770
|
+
*/
|
|
771
|
+
omit?: Prisma.Item2Omit<ExtArgs> | null;
|
|
772
|
+
/**
|
|
773
|
+
* The data used to create many Item2s.
|
|
774
|
+
*/
|
|
775
|
+
data: Prisma.Item2CreateManyInput | Prisma.Item2CreateManyInput[];
|
|
776
|
+
skipDuplicates?: boolean;
|
|
777
|
+
};
|
|
778
|
+
/**
|
|
779
|
+
* Item2 update
|
|
780
|
+
*/
|
|
781
|
+
export type Item2UpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
782
|
+
/**
|
|
783
|
+
* Select specific fields to fetch from the Item2
|
|
784
|
+
*/
|
|
785
|
+
select?: Prisma.Item2Select<ExtArgs> | null;
|
|
786
|
+
/**
|
|
787
|
+
* Omit specific fields from the Item2
|
|
788
|
+
*/
|
|
789
|
+
omit?: Prisma.Item2Omit<ExtArgs> | null;
|
|
790
|
+
/**
|
|
791
|
+
* The data needed to update a Item2.
|
|
792
|
+
*/
|
|
793
|
+
data: Prisma.XOR<Prisma.Item2UpdateInput, Prisma.Item2UncheckedUpdateInput>;
|
|
794
|
+
/**
|
|
795
|
+
* Choose, which Item2 to update.
|
|
796
|
+
*/
|
|
797
|
+
where: Prisma.Item2WhereUniqueInput;
|
|
798
|
+
};
|
|
799
|
+
/**
|
|
800
|
+
* Item2 updateMany
|
|
801
|
+
*/
|
|
802
|
+
export type Item2UpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
803
|
+
/**
|
|
804
|
+
* The data used to update Item2s.
|
|
805
|
+
*/
|
|
806
|
+
data: Prisma.XOR<Prisma.Item2UpdateManyMutationInput, Prisma.Item2UncheckedUpdateManyInput>;
|
|
807
|
+
/**
|
|
808
|
+
* Filter which Item2s to update
|
|
809
|
+
*/
|
|
810
|
+
where?: Prisma.Item2WhereInput;
|
|
811
|
+
/**
|
|
812
|
+
* Limit how many Item2s to update.
|
|
813
|
+
*/
|
|
814
|
+
limit?: number;
|
|
815
|
+
};
|
|
816
|
+
/**
|
|
817
|
+
* Item2 updateManyAndReturn
|
|
818
|
+
*/
|
|
819
|
+
export type Item2UpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
820
|
+
/**
|
|
821
|
+
* Select specific fields to fetch from the Item2
|
|
822
|
+
*/
|
|
823
|
+
select?: Prisma.Item2SelectUpdateManyAndReturn<ExtArgs> | null;
|
|
824
|
+
/**
|
|
825
|
+
* Omit specific fields from the Item2
|
|
826
|
+
*/
|
|
827
|
+
omit?: Prisma.Item2Omit<ExtArgs> | null;
|
|
828
|
+
/**
|
|
829
|
+
* The data used to update Item2s.
|
|
830
|
+
*/
|
|
831
|
+
data: Prisma.XOR<Prisma.Item2UpdateManyMutationInput, Prisma.Item2UncheckedUpdateManyInput>;
|
|
832
|
+
/**
|
|
833
|
+
* Filter which Item2s to update
|
|
834
|
+
*/
|
|
835
|
+
where?: Prisma.Item2WhereInput;
|
|
836
|
+
/**
|
|
837
|
+
* Limit how many Item2s to update.
|
|
838
|
+
*/
|
|
839
|
+
limit?: number;
|
|
840
|
+
};
|
|
841
|
+
/**
|
|
842
|
+
* Item2 upsert
|
|
843
|
+
*/
|
|
844
|
+
export type Item2UpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
845
|
+
/**
|
|
846
|
+
* Select specific fields to fetch from the Item2
|
|
847
|
+
*/
|
|
848
|
+
select?: Prisma.Item2Select<ExtArgs> | null;
|
|
849
|
+
/**
|
|
850
|
+
* Omit specific fields from the Item2
|
|
851
|
+
*/
|
|
852
|
+
omit?: Prisma.Item2Omit<ExtArgs> | null;
|
|
853
|
+
/**
|
|
854
|
+
* The filter to search for the Item2 to update in case it exists.
|
|
855
|
+
*/
|
|
856
|
+
where: Prisma.Item2WhereUniqueInput;
|
|
857
|
+
/**
|
|
858
|
+
* In case the Item2 found by the `where` argument doesn't exist, create a new Item2 with this data.
|
|
859
|
+
*/
|
|
860
|
+
create: Prisma.XOR<Prisma.Item2CreateInput, Prisma.Item2UncheckedCreateInput>;
|
|
861
|
+
/**
|
|
862
|
+
* In case the Item2 was found with the provided `where` argument, update it with this data.
|
|
863
|
+
*/
|
|
864
|
+
update: Prisma.XOR<Prisma.Item2UpdateInput, Prisma.Item2UncheckedUpdateInput>;
|
|
865
|
+
};
|
|
866
|
+
/**
|
|
867
|
+
* Item2 delete
|
|
868
|
+
*/
|
|
869
|
+
export type Item2DeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
870
|
+
/**
|
|
871
|
+
* Select specific fields to fetch from the Item2
|
|
872
|
+
*/
|
|
873
|
+
select?: Prisma.Item2Select<ExtArgs> | null;
|
|
874
|
+
/**
|
|
875
|
+
* Omit specific fields from the Item2
|
|
876
|
+
*/
|
|
877
|
+
omit?: Prisma.Item2Omit<ExtArgs> | null;
|
|
878
|
+
/**
|
|
879
|
+
* Filter which Item2 to delete.
|
|
880
|
+
*/
|
|
881
|
+
where: Prisma.Item2WhereUniqueInput;
|
|
882
|
+
};
|
|
883
|
+
/**
|
|
884
|
+
* Item2 deleteMany
|
|
885
|
+
*/
|
|
886
|
+
export type Item2DeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
887
|
+
/**
|
|
888
|
+
* Filter which Item2s to delete
|
|
889
|
+
*/
|
|
890
|
+
where?: Prisma.Item2WhereInput;
|
|
891
|
+
/**
|
|
892
|
+
* Limit how many Item2s to delete.
|
|
893
|
+
*/
|
|
894
|
+
limit?: number;
|
|
895
|
+
};
|
|
896
|
+
/**
|
|
897
|
+
* Item2 without action
|
|
898
|
+
*/
|
|
899
|
+
export type Item2DefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
900
|
+
/**
|
|
901
|
+
* Select specific fields to fetch from the Item2
|
|
902
|
+
*/
|
|
903
|
+
select?: Prisma.Item2Select<ExtArgs> | null;
|
|
904
|
+
/**
|
|
905
|
+
* Omit specific fields from the Item2
|
|
906
|
+
*/
|
|
907
|
+
omit?: Prisma.Item2Omit<ExtArgs> | null;
|
|
908
|
+
};
|
|
909
|
+
export {};
|