@cerbos/orm-prisma 4.0.0 → 4.1.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 +168 -12
- package/lib/index.d.ts +74 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +344 -90
- package/lib/index.js.map +1 -1
- package/package.json +10 -7
- package/src/adversarial.test.ts +948 -253
- package/src/corpus.ts +414 -0
- package/src/generated/prisma-adversarial/browser.ts +10 -0
- package/src/generated/prisma-adversarial/client.ts +10 -0
- package/src/generated/prisma-adversarial/internal/class.ts +24 -4
- package/src/generated/prisma-adversarial/internal/prismaNamespace.ts +178 -2
- package/src/generated/prisma-adversarial/internal/prismaNamespaceBrowser.ts +27 -1
- package/src/generated/prisma-adversarial/models/AdversarialInner.ts +1369 -0
- package/src/generated/prisma-adversarial/models/AdversarialParent.ts +1474 -0
- package/src/generated/prisma-adversarial/models/AdversarialResource.ts +124 -0
- package/src/generated/prisma-adversarial/models.ts +2 -0
- package/src/generated/{prisma → prisma-adversarial-pg}/browser.ts +14 -19
- package/src/generated/{prisma → prisma-adversarial-pg}/client.ts +16 -21
- package/src/generated/{prisma → prisma-adversarial-pg}/commonInputTypes.ts +153 -71
- package/src/generated/prisma-adversarial-pg/internal/class.ts +264 -0
- package/src/generated/{prisma → prisma-adversarial-pg}/internal/prismaNamespace.ts +339 -371
- package/src/generated/{prisma → prisma-adversarial-pg}/internal/prismaNamespaceBrowser.ts +56 -48
- package/src/generated/prisma-adversarial-pg/models/AdversarialCategory.ts +1404 -0
- package/src/generated/prisma-adversarial-pg/models/AdversarialInner.ts +1371 -0
- package/src/generated/prisma-adversarial-pg/models/AdversarialLabel.ts +1275 -0
- package/src/generated/prisma-adversarial-pg/models/AdversarialParent.ts +1476 -0
- package/src/generated/prisma-adversarial-pg/models/AdversarialResource.ts +1791 -0
- package/src/generated/prisma-adversarial-pg/models/AdversarialSubCategory.ts +1404 -0
- package/src/generated/prisma-adversarial-pg/models/AdversarialTag.ts +1310 -0
- package/src/generated/prisma-adversarial-pg/models.ts +18 -0
- package/src/generated/prisma-adversarial-pg-v6/index.d.ts +11830 -0
- package/src/generated/prisma-adversarial-v6/index.d.ts +3173 -44
- package/src/index.ts +508 -119
- package/src/test-setup.adversarial-url.ts +18 -0
- package/src/test-setup.adversarial.pg.v6.ts +13 -0
- package/src/test-setup.adversarial.pg.v7.ts +9 -0
- package/src/translator.test.ts +1586 -0
- package/src/generated/prisma/internal/class.ts +0 -274
- package/src/generated/prisma/models/Category.ts +0 -1412
- package/src/generated/prisma/models/Label.ts +0 -1276
- package/src/generated/prisma/models/NestedResource.ts +0 -1562
- package/src/generated/prisma/models/NextLevelNestedResource.ts +0 -1337
- package/src/generated/prisma/models/Resource.ts +0 -2196
- package/src/generated/prisma/models/SubCategory.ts +0 -1412
- package/src/generated/prisma/models/Tag.ts +0 -1276
- package/src/generated/prisma/models/User.ts +0 -1503
- package/src/generated/prisma/models.ts +0 -19
- package/src/generated/prisma-v6/index.d.ts +0 -13726
- package/src/index.test.ts +0 -8885
- package/src/test-setup.v6.ts +0 -5
- package/src/test-setup.v7.ts +0 -7
- /package/src/generated/{prisma → prisma-adversarial-pg}/enums.ts +0 -0
- /package/src/generated/{prisma-v6 → prisma-adversarial-pg-v6}/client.d.ts +0 -0
- /package/src/generated/{prisma-v6 → prisma-adversarial-pg-v6}/default.d.ts +0 -0
- /package/src/generated/{prisma-v6 → prisma-adversarial-pg-v6}/edge.d.ts +0 -0
- /package/src/generated/{prisma-v6 → prisma-adversarial-pg-v6}/runtime/index-browser.d.ts +0 -0
- /package/src/generated/{prisma-v6 → prisma-adversarial-pg-v6}/runtime/library.d.ts +0 -0
- /package/src/generated/{prisma-v6 → prisma-adversarial-pg-v6}/wasm.d.ts +0 -0
|
@@ -1,1412 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
// biome-ignore-all lint: generated file
|
|
5
|
-
// @ts-nocheck
|
|
6
|
-
/*
|
|
7
|
-
* This file exports the `SubCategory` model and its related types.
|
|
8
|
-
*
|
|
9
|
-
* 🟢 You can import this file directly.
|
|
10
|
-
*/
|
|
11
|
-
import type * as runtime from "@prisma/client/runtime/client"
|
|
12
|
-
import type * as $Enums from "../enums.js"
|
|
13
|
-
import type * as Prisma from "../internal/prismaNamespace.js"
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Model SubCategory
|
|
17
|
-
*
|
|
18
|
-
*/
|
|
19
|
-
export type SubCategoryModel = runtime.Types.Result.DefaultSelection<Prisma.$SubCategoryPayload>
|
|
20
|
-
|
|
21
|
-
export type AggregateSubCategory = {
|
|
22
|
-
_count: SubCategoryCountAggregateOutputType | null
|
|
23
|
-
_min: SubCategoryMinAggregateOutputType | null
|
|
24
|
-
_max: SubCategoryMaxAggregateOutputType | null
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export type SubCategoryMinAggregateOutputType = {
|
|
28
|
-
id: string | null
|
|
29
|
-
name: string | null
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export type SubCategoryMaxAggregateOutputType = {
|
|
33
|
-
id: string | null
|
|
34
|
-
name: string | null
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export type SubCategoryCountAggregateOutputType = {
|
|
38
|
-
id: number
|
|
39
|
-
name: number
|
|
40
|
-
_all: number
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
export type SubCategoryMinAggregateInputType = {
|
|
45
|
-
id?: true
|
|
46
|
-
name?: true
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export type SubCategoryMaxAggregateInputType = {
|
|
50
|
-
id?: true
|
|
51
|
-
name?: true
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export type SubCategoryCountAggregateInputType = {
|
|
55
|
-
id?: true
|
|
56
|
-
name?: true
|
|
57
|
-
_all?: true
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export type SubCategoryAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
61
|
-
/**
|
|
62
|
-
* Filter which SubCategory to aggregate.
|
|
63
|
-
*/
|
|
64
|
-
where?: Prisma.SubCategoryWhereInput
|
|
65
|
-
/**
|
|
66
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
67
|
-
*
|
|
68
|
-
* Determine the order of SubCategories to fetch.
|
|
69
|
-
*/
|
|
70
|
-
orderBy?: Prisma.SubCategoryOrderByWithRelationInput | Prisma.SubCategoryOrderByWithRelationInput[]
|
|
71
|
-
/**
|
|
72
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
73
|
-
*
|
|
74
|
-
* Sets the start position
|
|
75
|
-
*/
|
|
76
|
-
cursor?: Prisma.SubCategoryWhereUniqueInput
|
|
77
|
-
/**
|
|
78
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
79
|
-
*
|
|
80
|
-
* Take `±n` SubCategories from the position of the cursor.
|
|
81
|
-
*/
|
|
82
|
-
take?: number
|
|
83
|
-
/**
|
|
84
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
85
|
-
*
|
|
86
|
-
* Skip the first `n` SubCategories.
|
|
87
|
-
*/
|
|
88
|
-
skip?: number
|
|
89
|
-
/**
|
|
90
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
91
|
-
*
|
|
92
|
-
* Count returned SubCategories
|
|
93
|
-
**/
|
|
94
|
-
_count?: true | SubCategoryCountAggregateInputType
|
|
95
|
-
/**
|
|
96
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
97
|
-
*
|
|
98
|
-
* Select which fields to find the minimum value
|
|
99
|
-
**/
|
|
100
|
-
_min?: SubCategoryMinAggregateInputType
|
|
101
|
-
/**
|
|
102
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
103
|
-
*
|
|
104
|
-
* Select which fields to find the maximum value
|
|
105
|
-
**/
|
|
106
|
-
_max?: SubCategoryMaxAggregateInputType
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
export type GetSubCategoryAggregateType<T extends SubCategoryAggregateArgs> = {
|
|
110
|
-
[P in keyof T & keyof AggregateSubCategory]: P extends '_count' | 'count'
|
|
111
|
-
? T[P] extends true
|
|
112
|
-
? number
|
|
113
|
-
: Prisma.GetScalarType<T[P], AggregateSubCategory[P]>
|
|
114
|
-
: Prisma.GetScalarType<T[P], AggregateSubCategory[P]>
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
export type SubCategoryGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
121
|
-
where?: Prisma.SubCategoryWhereInput
|
|
122
|
-
orderBy?: Prisma.SubCategoryOrderByWithAggregationInput | Prisma.SubCategoryOrderByWithAggregationInput[]
|
|
123
|
-
by: Prisma.SubCategoryScalarFieldEnum[] | Prisma.SubCategoryScalarFieldEnum
|
|
124
|
-
having?: Prisma.SubCategoryScalarWhereWithAggregatesInput
|
|
125
|
-
take?: number
|
|
126
|
-
skip?: number
|
|
127
|
-
_count?: SubCategoryCountAggregateInputType | true
|
|
128
|
-
_min?: SubCategoryMinAggregateInputType
|
|
129
|
-
_max?: SubCategoryMaxAggregateInputType
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
export type SubCategoryGroupByOutputType = {
|
|
133
|
-
id: string
|
|
134
|
-
name: string
|
|
135
|
-
_count: SubCategoryCountAggregateOutputType | null
|
|
136
|
-
_min: SubCategoryMinAggregateOutputType | null
|
|
137
|
-
_max: SubCategoryMaxAggregateOutputType | null
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
export type GetSubCategoryGroupByPayload<T extends SubCategoryGroupByArgs> = Prisma.PrismaPromise<
|
|
141
|
-
Array<
|
|
142
|
-
Prisma.PickEnumerable<SubCategoryGroupByOutputType, T['by']> &
|
|
143
|
-
{
|
|
144
|
-
[P in ((keyof T) & (keyof SubCategoryGroupByOutputType))]: P extends '_count'
|
|
145
|
-
? T[P] extends boolean
|
|
146
|
-
? number
|
|
147
|
-
: Prisma.GetScalarType<T[P], SubCategoryGroupByOutputType[P]>
|
|
148
|
-
: Prisma.GetScalarType<T[P], SubCategoryGroupByOutputType[P]>
|
|
149
|
-
}
|
|
150
|
-
>
|
|
151
|
-
>
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
export type SubCategoryWhereInput = {
|
|
156
|
-
AND?: Prisma.SubCategoryWhereInput | Prisma.SubCategoryWhereInput[]
|
|
157
|
-
OR?: Prisma.SubCategoryWhereInput[]
|
|
158
|
-
NOT?: Prisma.SubCategoryWhereInput | Prisma.SubCategoryWhereInput[]
|
|
159
|
-
id?: Prisma.StringFilter<"SubCategory"> | string
|
|
160
|
-
name?: Prisma.StringFilter<"SubCategory"> | string
|
|
161
|
-
categories?: Prisma.CategoryListRelationFilter
|
|
162
|
-
labels?: Prisma.LabelListRelationFilter
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
export type SubCategoryOrderByWithRelationInput = {
|
|
166
|
-
id?: Prisma.SortOrder
|
|
167
|
-
name?: Prisma.SortOrder
|
|
168
|
-
categories?: Prisma.CategoryOrderByRelationAggregateInput
|
|
169
|
-
labels?: Prisma.LabelOrderByRelationAggregateInput
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
export type SubCategoryWhereUniqueInput = Prisma.AtLeast<{
|
|
173
|
-
id?: string
|
|
174
|
-
name?: string
|
|
175
|
-
AND?: Prisma.SubCategoryWhereInput | Prisma.SubCategoryWhereInput[]
|
|
176
|
-
OR?: Prisma.SubCategoryWhereInput[]
|
|
177
|
-
NOT?: Prisma.SubCategoryWhereInput | Prisma.SubCategoryWhereInput[]
|
|
178
|
-
categories?: Prisma.CategoryListRelationFilter
|
|
179
|
-
labels?: Prisma.LabelListRelationFilter
|
|
180
|
-
}, "id" | "name">
|
|
181
|
-
|
|
182
|
-
export type SubCategoryOrderByWithAggregationInput = {
|
|
183
|
-
id?: Prisma.SortOrder
|
|
184
|
-
name?: Prisma.SortOrder
|
|
185
|
-
_count?: Prisma.SubCategoryCountOrderByAggregateInput
|
|
186
|
-
_max?: Prisma.SubCategoryMaxOrderByAggregateInput
|
|
187
|
-
_min?: Prisma.SubCategoryMinOrderByAggregateInput
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
export type SubCategoryScalarWhereWithAggregatesInput = {
|
|
191
|
-
AND?: Prisma.SubCategoryScalarWhereWithAggregatesInput | Prisma.SubCategoryScalarWhereWithAggregatesInput[]
|
|
192
|
-
OR?: Prisma.SubCategoryScalarWhereWithAggregatesInput[]
|
|
193
|
-
NOT?: Prisma.SubCategoryScalarWhereWithAggregatesInput | Prisma.SubCategoryScalarWhereWithAggregatesInput[]
|
|
194
|
-
id?: Prisma.StringWithAggregatesFilter<"SubCategory"> | string
|
|
195
|
-
name?: Prisma.StringWithAggregatesFilter<"SubCategory"> | string
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
export type SubCategoryCreateInput = {
|
|
199
|
-
id?: string
|
|
200
|
-
name: string
|
|
201
|
-
categories?: Prisma.CategoryCreateNestedManyWithoutSubCategoriesInput
|
|
202
|
-
labels?: Prisma.LabelCreateNestedManyWithoutSubCategoriesInput
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
export type SubCategoryUncheckedCreateInput = {
|
|
206
|
-
id?: string
|
|
207
|
-
name: string
|
|
208
|
-
categories?: Prisma.CategoryUncheckedCreateNestedManyWithoutSubCategoriesInput
|
|
209
|
-
labels?: Prisma.LabelUncheckedCreateNestedManyWithoutSubCategoriesInput
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
export type SubCategoryUpdateInput = {
|
|
213
|
-
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
214
|
-
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
215
|
-
categories?: Prisma.CategoryUpdateManyWithoutSubCategoriesNestedInput
|
|
216
|
-
labels?: Prisma.LabelUpdateManyWithoutSubCategoriesNestedInput
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
export type SubCategoryUncheckedUpdateInput = {
|
|
220
|
-
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
221
|
-
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
222
|
-
categories?: Prisma.CategoryUncheckedUpdateManyWithoutSubCategoriesNestedInput
|
|
223
|
-
labels?: Prisma.LabelUncheckedUpdateManyWithoutSubCategoriesNestedInput
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
export type SubCategoryCreateManyInput = {
|
|
227
|
-
id?: string
|
|
228
|
-
name: string
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
export type SubCategoryUpdateManyMutationInput = {
|
|
232
|
-
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
233
|
-
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
export type SubCategoryUncheckedUpdateManyInput = {
|
|
237
|
-
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
238
|
-
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
export type SubCategoryListRelationFilter = {
|
|
242
|
-
every?: Prisma.SubCategoryWhereInput
|
|
243
|
-
some?: Prisma.SubCategoryWhereInput
|
|
244
|
-
none?: Prisma.SubCategoryWhereInput
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
export type SubCategoryOrderByRelationAggregateInput = {
|
|
248
|
-
_count?: Prisma.SortOrder
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
export type SubCategoryCountOrderByAggregateInput = {
|
|
252
|
-
id?: Prisma.SortOrder
|
|
253
|
-
name?: Prisma.SortOrder
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
export type SubCategoryMaxOrderByAggregateInput = {
|
|
257
|
-
id?: Prisma.SortOrder
|
|
258
|
-
name?: Prisma.SortOrder
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
export type SubCategoryMinOrderByAggregateInput = {
|
|
262
|
-
id?: Prisma.SortOrder
|
|
263
|
-
name?: Prisma.SortOrder
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
export type SubCategoryCreateNestedManyWithoutCategoriesInput = {
|
|
267
|
-
create?: Prisma.XOR<Prisma.SubCategoryCreateWithoutCategoriesInput, Prisma.SubCategoryUncheckedCreateWithoutCategoriesInput> | Prisma.SubCategoryCreateWithoutCategoriesInput[] | Prisma.SubCategoryUncheckedCreateWithoutCategoriesInput[]
|
|
268
|
-
connectOrCreate?: Prisma.SubCategoryCreateOrConnectWithoutCategoriesInput | Prisma.SubCategoryCreateOrConnectWithoutCategoriesInput[]
|
|
269
|
-
connect?: Prisma.SubCategoryWhereUniqueInput | Prisma.SubCategoryWhereUniqueInput[]
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
export type SubCategoryUncheckedCreateNestedManyWithoutCategoriesInput = {
|
|
273
|
-
create?: Prisma.XOR<Prisma.SubCategoryCreateWithoutCategoriesInput, Prisma.SubCategoryUncheckedCreateWithoutCategoriesInput> | Prisma.SubCategoryCreateWithoutCategoriesInput[] | Prisma.SubCategoryUncheckedCreateWithoutCategoriesInput[]
|
|
274
|
-
connectOrCreate?: Prisma.SubCategoryCreateOrConnectWithoutCategoriesInput | Prisma.SubCategoryCreateOrConnectWithoutCategoriesInput[]
|
|
275
|
-
connect?: Prisma.SubCategoryWhereUniqueInput | Prisma.SubCategoryWhereUniqueInput[]
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
export type SubCategoryUpdateManyWithoutCategoriesNestedInput = {
|
|
279
|
-
create?: Prisma.XOR<Prisma.SubCategoryCreateWithoutCategoriesInput, Prisma.SubCategoryUncheckedCreateWithoutCategoriesInput> | Prisma.SubCategoryCreateWithoutCategoriesInput[] | Prisma.SubCategoryUncheckedCreateWithoutCategoriesInput[]
|
|
280
|
-
connectOrCreate?: Prisma.SubCategoryCreateOrConnectWithoutCategoriesInput | Prisma.SubCategoryCreateOrConnectWithoutCategoriesInput[]
|
|
281
|
-
upsert?: Prisma.SubCategoryUpsertWithWhereUniqueWithoutCategoriesInput | Prisma.SubCategoryUpsertWithWhereUniqueWithoutCategoriesInput[]
|
|
282
|
-
set?: Prisma.SubCategoryWhereUniqueInput | Prisma.SubCategoryWhereUniqueInput[]
|
|
283
|
-
disconnect?: Prisma.SubCategoryWhereUniqueInput | Prisma.SubCategoryWhereUniqueInput[]
|
|
284
|
-
delete?: Prisma.SubCategoryWhereUniqueInput | Prisma.SubCategoryWhereUniqueInput[]
|
|
285
|
-
connect?: Prisma.SubCategoryWhereUniqueInput | Prisma.SubCategoryWhereUniqueInput[]
|
|
286
|
-
update?: Prisma.SubCategoryUpdateWithWhereUniqueWithoutCategoriesInput | Prisma.SubCategoryUpdateWithWhereUniqueWithoutCategoriesInput[]
|
|
287
|
-
updateMany?: Prisma.SubCategoryUpdateManyWithWhereWithoutCategoriesInput | Prisma.SubCategoryUpdateManyWithWhereWithoutCategoriesInput[]
|
|
288
|
-
deleteMany?: Prisma.SubCategoryScalarWhereInput | Prisma.SubCategoryScalarWhereInput[]
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
export type SubCategoryUncheckedUpdateManyWithoutCategoriesNestedInput = {
|
|
292
|
-
create?: Prisma.XOR<Prisma.SubCategoryCreateWithoutCategoriesInput, Prisma.SubCategoryUncheckedCreateWithoutCategoriesInput> | Prisma.SubCategoryCreateWithoutCategoriesInput[] | Prisma.SubCategoryUncheckedCreateWithoutCategoriesInput[]
|
|
293
|
-
connectOrCreate?: Prisma.SubCategoryCreateOrConnectWithoutCategoriesInput | Prisma.SubCategoryCreateOrConnectWithoutCategoriesInput[]
|
|
294
|
-
upsert?: Prisma.SubCategoryUpsertWithWhereUniqueWithoutCategoriesInput | Prisma.SubCategoryUpsertWithWhereUniqueWithoutCategoriesInput[]
|
|
295
|
-
set?: Prisma.SubCategoryWhereUniqueInput | Prisma.SubCategoryWhereUniqueInput[]
|
|
296
|
-
disconnect?: Prisma.SubCategoryWhereUniqueInput | Prisma.SubCategoryWhereUniqueInput[]
|
|
297
|
-
delete?: Prisma.SubCategoryWhereUniqueInput | Prisma.SubCategoryWhereUniqueInput[]
|
|
298
|
-
connect?: Prisma.SubCategoryWhereUniqueInput | Prisma.SubCategoryWhereUniqueInput[]
|
|
299
|
-
update?: Prisma.SubCategoryUpdateWithWhereUniqueWithoutCategoriesInput | Prisma.SubCategoryUpdateWithWhereUniqueWithoutCategoriesInput[]
|
|
300
|
-
updateMany?: Prisma.SubCategoryUpdateManyWithWhereWithoutCategoriesInput | Prisma.SubCategoryUpdateManyWithWhereWithoutCategoriesInput[]
|
|
301
|
-
deleteMany?: Prisma.SubCategoryScalarWhereInput | Prisma.SubCategoryScalarWhereInput[]
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
export type SubCategoryCreateNestedManyWithoutLabelsInput = {
|
|
305
|
-
create?: Prisma.XOR<Prisma.SubCategoryCreateWithoutLabelsInput, Prisma.SubCategoryUncheckedCreateWithoutLabelsInput> | Prisma.SubCategoryCreateWithoutLabelsInput[] | Prisma.SubCategoryUncheckedCreateWithoutLabelsInput[]
|
|
306
|
-
connectOrCreate?: Prisma.SubCategoryCreateOrConnectWithoutLabelsInput | Prisma.SubCategoryCreateOrConnectWithoutLabelsInput[]
|
|
307
|
-
connect?: Prisma.SubCategoryWhereUniqueInput | Prisma.SubCategoryWhereUniqueInput[]
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
export type SubCategoryUncheckedCreateNestedManyWithoutLabelsInput = {
|
|
311
|
-
create?: Prisma.XOR<Prisma.SubCategoryCreateWithoutLabelsInput, Prisma.SubCategoryUncheckedCreateWithoutLabelsInput> | Prisma.SubCategoryCreateWithoutLabelsInput[] | Prisma.SubCategoryUncheckedCreateWithoutLabelsInput[]
|
|
312
|
-
connectOrCreate?: Prisma.SubCategoryCreateOrConnectWithoutLabelsInput | Prisma.SubCategoryCreateOrConnectWithoutLabelsInput[]
|
|
313
|
-
connect?: Prisma.SubCategoryWhereUniqueInput | Prisma.SubCategoryWhereUniqueInput[]
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
export type SubCategoryUpdateManyWithoutLabelsNestedInput = {
|
|
317
|
-
create?: Prisma.XOR<Prisma.SubCategoryCreateWithoutLabelsInput, Prisma.SubCategoryUncheckedCreateWithoutLabelsInput> | Prisma.SubCategoryCreateWithoutLabelsInput[] | Prisma.SubCategoryUncheckedCreateWithoutLabelsInput[]
|
|
318
|
-
connectOrCreate?: Prisma.SubCategoryCreateOrConnectWithoutLabelsInput | Prisma.SubCategoryCreateOrConnectWithoutLabelsInput[]
|
|
319
|
-
upsert?: Prisma.SubCategoryUpsertWithWhereUniqueWithoutLabelsInput | Prisma.SubCategoryUpsertWithWhereUniqueWithoutLabelsInput[]
|
|
320
|
-
set?: Prisma.SubCategoryWhereUniqueInput | Prisma.SubCategoryWhereUniqueInput[]
|
|
321
|
-
disconnect?: Prisma.SubCategoryWhereUniqueInput | Prisma.SubCategoryWhereUniqueInput[]
|
|
322
|
-
delete?: Prisma.SubCategoryWhereUniqueInput | Prisma.SubCategoryWhereUniqueInput[]
|
|
323
|
-
connect?: Prisma.SubCategoryWhereUniqueInput | Prisma.SubCategoryWhereUniqueInput[]
|
|
324
|
-
update?: Prisma.SubCategoryUpdateWithWhereUniqueWithoutLabelsInput | Prisma.SubCategoryUpdateWithWhereUniqueWithoutLabelsInput[]
|
|
325
|
-
updateMany?: Prisma.SubCategoryUpdateManyWithWhereWithoutLabelsInput | Prisma.SubCategoryUpdateManyWithWhereWithoutLabelsInput[]
|
|
326
|
-
deleteMany?: Prisma.SubCategoryScalarWhereInput | Prisma.SubCategoryScalarWhereInput[]
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
export type SubCategoryUncheckedUpdateManyWithoutLabelsNestedInput = {
|
|
330
|
-
create?: Prisma.XOR<Prisma.SubCategoryCreateWithoutLabelsInput, Prisma.SubCategoryUncheckedCreateWithoutLabelsInput> | Prisma.SubCategoryCreateWithoutLabelsInput[] | Prisma.SubCategoryUncheckedCreateWithoutLabelsInput[]
|
|
331
|
-
connectOrCreate?: Prisma.SubCategoryCreateOrConnectWithoutLabelsInput | Prisma.SubCategoryCreateOrConnectWithoutLabelsInput[]
|
|
332
|
-
upsert?: Prisma.SubCategoryUpsertWithWhereUniqueWithoutLabelsInput | Prisma.SubCategoryUpsertWithWhereUniqueWithoutLabelsInput[]
|
|
333
|
-
set?: Prisma.SubCategoryWhereUniqueInput | Prisma.SubCategoryWhereUniqueInput[]
|
|
334
|
-
disconnect?: Prisma.SubCategoryWhereUniqueInput | Prisma.SubCategoryWhereUniqueInput[]
|
|
335
|
-
delete?: Prisma.SubCategoryWhereUniqueInput | Prisma.SubCategoryWhereUniqueInput[]
|
|
336
|
-
connect?: Prisma.SubCategoryWhereUniqueInput | Prisma.SubCategoryWhereUniqueInput[]
|
|
337
|
-
update?: Prisma.SubCategoryUpdateWithWhereUniqueWithoutLabelsInput | Prisma.SubCategoryUpdateWithWhereUniqueWithoutLabelsInput[]
|
|
338
|
-
updateMany?: Prisma.SubCategoryUpdateManyWithWhereWithoutLabelsInput | Prisma.SubCategoryUpdateManyWithWhereWithoutLabelsInput[]
|
|
339
|
-
deleteMany?: Prisma.SubCategoryScalarWhereInput | Prisma.SubCategoryScalarWhereInput[]
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
export type SubCategoryCreateWithoutCategoriesInput = {
|
|
343
|
-
id?: string
|
|
344
|
-
name: string
|
|
345
|
-
labels?: Prisma.LabelCreateNestedManyWithoutSubCategoriesInput
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
export type SubCategoryUncheckedCreateWithoutCategoriesInput = {
|
|
349
|
-
id?: string
|
|
350
|
-
name: string
|
|
351
|
-
labels?: Prisma.LabelUncheckedCreateNestedManyWithoutSubCategoriesInput
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
export type SubCategoryCreateOrConnectWithoutCategoriesInput = {
|
|
355
|
-
where: Prisma.SubCategoryWhereUniqueInput
|
|
356
|
-
create: Prisma.XOR<Prisma.SubCategoryCreateWithoutCategoriesInput, Prisma.SubCategoryUncheckedCreateWithoutCategoriesInput>
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
export type SubCategoryUpsertWithWhereUniqueWithoutCategoriesInput = {
|
|
360
|
-
where: Prisma.SubCategoryWhereUniqueInput
|
|
361
|
-
update: Prisma.XOR<Prisma.SubCategoryUpdateWithoutCategoriesInput, Prisma.SubCategoryUncheckedUpdateWithoutCategoriesInput>
|
|
362
|
-
create: Prisma.XOR<Prisma.SubCategoryCreateWithoutCategoriesInput, Prisma.SubCategoryUncheckedCreateWithoutCategoriesInput>
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
export type SubCategoryUpdateWithWhereUniqueWithoutCategoriesInput = {
|
|
366
|
-
where: Prisma.SubCategoryWhereUniqueInput
|
|
367
|
-
data: Prisma.XOR<Prisma.SubCategoryUpdateWithoutCategoriesInput, Prisma.SubCategoryUncheckedUpdateWithoutCategoriesInput>
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
export type SubCategoryUpdateManyWithWhereWithoutCategoriesInput = {
|
|
371
|
-
where: Prisma.SubCategoryScalarWhereInput
|
|
372
|
-
data: Prisma.XOR<Prisma.SubCategoryUpdateManyMutationInput, Prisma.SubCategoryUncheckedUpdateManyWithoutCategoriesInput>
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
export type SubCategoryScalarWhereInput = {
|
|
376
|
-
AND?: Prisma.SubCategoryScalarWhereInput | Prisma.SubCategoryScalarWhereInput[]
|
|
377
|
-
OR?: Prisma.SubCategoryScalarWhereInput[]
|
|
378
|
-
NOT?: Prisma.SubCategoryScalarWhereInput | Prisma.SubCategoryScalarWhereInput[]
|
|
379
|
-
id?: Prisma.StringFilter<"SubCategory"> | string
|
|
380
|
-
name?: Prisma.StringFilter<"SubCategory"> | string
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
export type SubCategoryCreateWithoutLabelsInput = {
|
|
384
|
-
id?: string
|
|
385
|
-
name: string
|
|
386
|
-
categories?: Prisma.CategoryCreateNestedManyWithoutSubCategoriesInput
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
export type SubCategoryUncheckedCreateWithoutLabelsInput = {
|
|
390
|
-
id?: string
|
|
391
|
-
name: string
|
|
392
|
-
categories?: Prisma.CategoryUncheckedCreateNestedManyWithoutSubCategoriesInput
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
export type SubCategoryCreateOrConnectWithoutLabelsInput = {
|
|
396
|
-
where: Prisma.SubCategoryWhereUniqueInput
|
|
397
|
-
create: Prisma.XOR<Prisma.SubCategoryCreateWithoutLabelsInput, Prisma.SubCategoryUncheckedCreateWithoutLabelsInput>
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
export type SubCategoryUpsertWithWhereUniqueWithoutLabelsInput = {
|
|
401
|
-
where: Prisma.SubCategoryWhereUniqueInput
|
|
402
|
-
update: Prisma.XOR<Prisma.SubCategoryUpdateWithoutLabelsInput, Prisma.SubCategoryUncheckedUpdateWithoutLabelsInput>
|
|
403
|
-
create: Prisma.XOR<Prisma.SubCategoryCreateWithoutLabelsInput, Prisma.SubCategoryUncheckedCreateWithoutLabelsInput>
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
export type SubCategoryUpdateWithWhereUniqueWithoutLabelsInput = {
|
|
407
|
-
where: Prisma.SubCategoryWhereUniqueInput
|
|
408
|
-
data: Prisma.XOR<Prisma.SubCategoryUpdateWithoutLabelsInput, Prisma.SubCategoryUncheckedUpdateWithoutLabelsInput>
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
export type SubCategoryUpdateManyWithWhereWithoutLabelsInput = {
|
|
412
|
-
where: Prisma.SubCategoryScalarWhereInput
|
|
413
|
-
data: Prisma.XOR<Prisma.SubCategoryUpdateManyMutationInput, Prisma.SubCategoryUncheckedUpdateManyWithoutLabelsInput>
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
export type SubCategoryUpdateWithoutCategoriesInput = {
|
|
417
|
-
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
418
|
-
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
419
|
-
labels?: Prisma.LabelUpdateManyWithoutSubCategoriesNestedInput
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
export type SubCategoryUncheckedUpdateWithoutCategoriesInput = {
|
|
423
|
-
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
424
|
-
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
425
|
-
labels?: Prisma.LabelUncheckedUpdateManyWithoutSubCategoriesNestedInput
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
export type SubCategoryUncheckedUpdateManyWithoutCategoriesInput = {
|
|
429
|
-
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
430
|
-
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
export type SubCategoryUpdateWithoutLabelsInput = {
|
|
434
|
-
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
435
|
-
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
436
|
-
categories?: Prisma.CategoryUpdateManyWithoutSubCategoriesNestedInput
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
export type SubCategoryUncheckedUpdateWithoutLabelsInput = {
|
|
440
|
-
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
441
|
-
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
442
|
-
categories?: Prisma.CategoryUncheckedUpdateManyWithoutSubCategoriesNestedInput
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
export type SubCategoryUncheckedUpdateManyWithoutLabelsInput = {
|
|
446
|
-
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
447
|
-
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
/**
|
|
452
|
-
* Count Type SubCategoryCountOutputType
|
|
453
|
-
*/
|
|
454
|
-
|
|
455
|
-
export type SubCategoryCountOutputType = {
|
|
456
|
-
categories: number
|
|
457
|
-
labels: number
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
export type SubCategoryCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
461
|
-
categories?: boolean | SubCategoryCountOutputTypeCountCategoriesArgs
|
|
462
|
-
labels?: boolean | SubCategoryCountOutputTypeCountLabelsArgs
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
/**
|
|
466
|
-
* SubCategoryCountOutputType without action
|
|
467
|
-
*/
|
|
468
|
-
export type SubCategoryCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
469
|
-
/**
|
|
470
|
-
* Select specific fields to fetch from the SubCategoryCountOutputType
|
|
471
|
-
*/
|
|
472
|
-
select?: Prisma.SubCategoryCountOutputTypeSelect<ExtArgs> | null
|
|
473
|
-
}
|
|
474
|
-
|
|
475
|
-
/**
|
|
476
|
-
* SubCategoryCountOutputType without action
|
|
477
|
-
*/
|
|
478
|
-
export type SubCategoryCountOutputTypeCountCategoriesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
479
|
-
where?: Prisma.CategoryWhereInput
|
|
480
|
-
}
|
|
481
|
-
|
|
482
|
-
/**
|
|
483
|
-
* SubCategoryCountOutputType without action
|
|
484
|
-
*/
|
|
485
|
-
export type SubCategoryCountOutputTypeCountLabelsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
486
|
-
where?: Prisma.LabelWhereInput
|
|
487
|
-
}
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
export type SubCategorySelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
491
|
-
id?: boolean
|
|
492
|
-
name?: boolean
|
|
493
|
-
categories?: boolean | Prisma.SubCategory$categoriesArgs<ExtArgs>
|
|
494
|
-
labels?: boolean | Prisma.SubCategory$labelsArgs<ExtArgs>
|
|
495
|
-
_count?: boolean | Prisma.SubCategoryCountOutputTypeDefaultArgs<ExtArgs>
|
|
496
|
-
}, ExtArgs["result"]["subCategory"]>
|
|
497
|
-
|
|
498
|
-
export type SubCategorySelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
499
|
-
id?: boolean
|
|
500
|
-
name?: boolean
|
|
501
|
-
}, ExtArgs["result"]["subCategory"]>
|
|
502
|
-
|
|
503
|
-
export type SubCategorySelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
504
|
-
id?: boolean
|
|
505
|
-
name?: boolean
|
|
506
|
-
}, ExtArgs["result"]["subCategory"]>
|
|
507
|
-
|
|
508
|
-
export type SubCategorySelectScalar = {
|
|
509
|
-
id?: boolean
|
|
510
|
-
name?: boolean
|
|
511
|
-
}
|
|
512
|
-
|
|
513
|
-
export type SubCategoryOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name", ExtArgs["result"]["subCategory"]>
|
|
514
|
-
export type SubCategoryInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
515
|
-
categories?: boolean | Prisma.SubCategory$categoriesArgs<ExtArgs>
|
|
516
|
-
labels?: boolean | Prisma.SubCategory$labelsArgs<ExtArgs>
|
|
517
|
-
_count?: boolean | Prisma.SubCategoryCountOutputTypeDefaultArgs<ExtArgs>
|
|
518
|
-
}
|
|
519
|
-
export type SubCategoryIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
|
|
520
|
-
export type SubCategoryIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
|
|
521
|
-
|
|
522
|
-
export type $SubCategoryPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
523
|
-
name: "SubCategory"
|
|
524
|
-
objects: {
|
|
525
|
-
categories: Prisma.$CategoryPayload<ExtArgs>[]
|
|
526
|
-
labels: Prisma.$LabelPayload<ExtArgs>[]
|
|
527
|
-
}
|
|
528
|
-
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
529
|
-
id: string
|
|
530
|
-
name: string
|
|
531
|
-
}, ExtArgs["result"]["subCategory"]>
|
|
532
|
-
composites: {}
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
export type SubCategoryGetPayload<S extends boolean | null | undefined | SubCategoryDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$SubCategoryPayload, S>
|
|
536
|
-
|
|
537
|
-
export type SubCategoryCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
538
|
-
Omit<SubCategoryFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
539
|
-
select?: SubCategoryCountAggregateInputType | true
|
|
540
|
-
}
|
|
541
|
-
|
|
542
|
-
export interface SubCategoryDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
543
|
-
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['SubCategory'], meta: { name: 'SubCategory' } }
|
|
544
|
-
/**
|
|
545
|
-
* Find zero or one SubCategory that matches the filter.
|
|
546
|
-
* @param {SubCategoryFindUniqueArgs} args - Arguments to find a SubCategory
|
|
547
|
-
* @example
|
|
548
|
-
* // Get one SubCategory
|
|
549
|
-
* const subCategory = await prisma.subCategory.findUnique({
|
|
550
|
-
* where: {
|
|
551
|
-
* // ... provide filter here
|
|
552
|
-
* }
|
|
553
|
-
* })
|
|
554
|
-
*/
|
|
555
|
-
findUnique<T extends SubCategoryFindUniqueArgs>(args: Prisma.SelectSubset<T, SubCategoryFindUniqueArgs<ExtArgs>>): Prisma.Prisma__SubCategoryClient<runtime.Types.Result.GetResult<Prisma.$SubCategoryPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
556
|
-
|
|
557
|
-
/**
|
|
558
|
-
* Find one SubCategory that matches the filter or throw an error with `error.code='P2025'`
|
|
559
|
-
* if no matches were found.
|
|
560
|
-
* @param {SubCategoryFindUniqueOrThrowArgs} args - Arguments to find a SubCategory
|
|
561
|
-
* @example
|
|
562
|
-
* // Get one SubCategory
|
|
563
|
-
* const subCategory = await prisma.subCategory.findUniqueOrThrow({
|
|
564
|
-
* where: {
|
|
565
|
-
* // ... provide filter here
|
|
566
|
-
* }
|
|
567
|
-
* })
|
|
568
|
-
*/
|
|
569
|
-
findUniqueOrThrow<T extends SubCategoryFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, SubCategoryFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__SubCategoryClient<runtime.Types.Result.GetResult<Prisma.$SubCategoryPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
570
|
-
|
|
571
|
-
/**
|
|
572
|
-
* Find the first SubCategory that matches the filter.
|
|
573
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
574
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
575
|
-
* @param {SubCategoryFindFirstArgs} args - Arguments to find a SubCategory
|
|
576
|
-
* @example
|
|
577
|
-
* // Get one SubCategory
|
|
578
|
-
* const subCategory = await prisma.subCategory.findFirst({
|
|
579
|
-
* where: {
|
|
580
|
-
* // ... provide filter here
|
|
581
|
-
* }
|
|
582
|
-
* })
|
|
583
|
-
*/
|
|
584
|
-
findFirst<T extends SubCategoryFindFirstArgs>(args?: Prisma.SelectSubset<T, SubCategoryFindFirstArgs<ExtArgs>>): Prisma.Prisma__SubCategoryClient<runtime.Types.Result.GetResult<Prisma.$SubCategoryPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
585
|
-
|
|
586
|
-
/**
|
|
587
|
-
* Find the first SubCategory that matches the filter or
|
|
588
|
-
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
589
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
590
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
591
|
-
* @param {SubCategoryFindFirstOrThrowArgs} args - Arguments to find a SubCategory
|
|
592
|
-
* @example
|
|
593
|
-
* // Get one SubCategory
|
|
594
|
-
* const subCategory = await prisma.subCategory.findFirstOrThrow({
|
|
595
|
-
* where: {
|
|
596
|
-
* // ... provide filter here
|
|
597
|
-
* }
|
|
598
|
-
* })
|
|
599
|
-
*/
|
|
600
|
-
findFirstOrThrow<T extends SubCategoryFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, SubCategoryFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__SubCategoryClient<runtime.Types.Result.GetResult<Prisma.$SubCategoryPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
601
|
-
|
|
602
|
-
/**
|
|
603
|
-
* Find zero or more SubCategories that matches the filter.
|
|
604
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
605
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
606
|
-
* @param {SubCategoryFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
607
|
-
* @example
|
|
608
|
-
* // Get all SubCategories
|
|
609
|
-
* const subCategories = await prisma.subCategory.findMany()
|
|
610
|
-
*
|
|
611
|
-
* // Get first 10 SubCategories
|
|
612
|
-
* const subCategories = await prisma.subCategory.findMany({ take: 10 })
|
|
613
|
-
*
|
|
614
|
-
* // Only select the `id`
|
|
615
|
-
* const subCategoryWithIdOnly = await prisma.subCategory.findMany({ select: { id: true } })
|
|
616
|
-
*
|
|
617
|
-
*/
|
|
618
|
-
findMany<T extends SubCategoryFindManyArgs>(args?: Prisma.SelectSubset<T, SubCategoryFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SubCategoryPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
619
|
-
|
|
620
|
-
/**
|
|
621
|
-
* Create a SubCategory.
|
|
622
|
-
* @param {SubCategoryCreateArgs} args - Arguments to create a SubCategory.
|
|
623
|
-
* @example
|
|
624
|
-
* // Create one SubCategory
|
|
625
|
-
* const SubCategory = await prisma.subCategory.create({
|
|
626
|
-
* data: {
|
|
627
|
-
* // ... data to create a SubCategory
|
|
628
|
-
* }
|
|
629
|
-
* })
|
|
630
|
-
*
|
|
631
|
-
*/
|
|
632
|
-
create<T extends SubCategoryCreateArgs>(args: Prisma.SelectSubset<T, SubCategoryCreateArgs<ExtArgs>>): Prisma.Prisma__SubCategoryClient<runtime.Types.Result.GetResult<Prisma.$SubCategoryPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
633
|
-
|
|
634
|
-
/**
|
|
635
|
-
* Create many SubCategories.
|
|
636
|
-
* @param {SubCategoryCreateManyArgs} args - Arguments to create many SubCategories.
|
|
637
|
-
* @example
|
|
638
|
-
* // Create many SubCategories
|
|
639
|
-
* const subCategory = await prisma.subCategory.createMany({
|
|
640
|
-
* data: [
|
|
641
|
-
* // ... provide data here
|
|
642
|
-
* ]
|
|
643
|
-
* })
|
|
644
|
-
*
|
|
645
|
-
*/
|
|
646
|
-
createMany<T extends SubCategoryCreateManyArgs>(args?: Prisma.SelectSubset<T, SubCategoryCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
647
|
-
|
|
648
|
-
/**
|
|
649
|
-
* Create many SubCategories and returns the data saved in the database.
|
|
650
|
-
* @param {SubCategoryCreateManyAndReturnArgs} args - Arguments to create many SubCategories.
|
|
651
|
-
* @example
|
|
652
|
-
* // Create many SubCategories
|
|
653
|
-
* const subCategory = await prisma.subCategory.createManyAndReturn({
|
|
654
|
-
* data: [
|
|
655
|
-
* // ... provide data here
|
|
656
|
-
* ]
|
|
657
|
-
* })
|
|
658
|
-
*
|
|
659
|
-
* // Create many SubCategories and only return the `id`
|
|
660
|
-
* const subCategoryWithIdOnly = await prisma.subCategory.createManyAndReturn({
|
|
661
|
-
* select: { id: true },
|
|
662
|
-
* data: [
|
|
663
|
-
* // ... provide data here
|
|
664
|
-
* ]
|
|
665
|
-
* })
|
|
666
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
667
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
668
|
-
*
|
|
669
|
-
*/
|
|
670
|
-
createManyAndReturn<T extends SubCategoryCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, SubCategoryCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SubCategoryPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
671
|
-
|
|
672
|
-
/**
|
|
673
|
-
* Delete a SubCategory.
|
|
674
|
-
* @param {SubCategoryDeleteArgs} args - Arguments to delete one SubCategory.
|
|
675
|
-
* @example
|
|
676
|
-
* // Delete one SubCategory
|
|
677
|
-
* const SubCategory = await prisma.subCategory.delete({
|
|
678
|
-
* where: {
|
|
679
|
-
* // ... filter to delete one SubCategory
|
|
680
|
-
* }
|
|
681
|
-
* })
|
|
682
|
-
*
|
|
683
|
-
*/
|
|
684
|
-
delete<T extends SubCategoryDeleteArgs>(args: Prisma.SelectSubset<T, SubCategoryDeleteArgs<ExtArgs>>): Prisma.Prisma__SubCategoryClient<runtime.Types.Result.GetResult<Prisma.$SubCategoryPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
685
|
-
|
|
686
|
-
/**
|
|
687
|
-
* Update one SubCategory.
|
|
688
|
-
* @param {SubCategoryUpdateArgs} args - Arguments to update one SubCategory.
|
|
689
|
-
* @example
|
|
690
|
-
* // Update one SubCategory
|
|
691
|
-
* const subCategory = await prisma.subCategory.update({
|
|
692
|
-
* where: {
|
|
693
|
-
* // ... provide filter here
|
|
694
|
-
* },
|
|
695
|
-
* data: {
|
|
696
|
-
* // ... provide data here
|
|
697
|
-
* }
|
|
698
|
-
* })
|
|
699
|
-
*
|
|
700
|
-
*/
|
|
701
|
-
update<T extends SubCategoryUpdateArgs>(args: Prisma.SelectSubset<T, SubCategoryUpdateArgs<ExtArgs>>): Prisma.Prisma__SubCategoryClient<runtime.Types.Result.GetResult<Prisma.$SubCategoryPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
702
|
-
|
|
703
|
-
/**
|
|
704
|
-
* Delete zero or more SubCategories.
|
|
705
|
-
* @param {SubCategoryDeleteManyArgs} args - Arguments to filter SubCategories to delete.
|
|
706
|
-
* @example
|
|
707
|
-
* // Delete a few SubCategories
|
|
708
|
-
* const { count } = await prisma.subCategory.deleteMany({
|
|
709
|
-
* where: {
|
|
710
|
-
* // ... provide filter here
|
|
711
|
-
* }
|
|
712
|
-
* })
|
|
713
|
-
*
|
|
714
|
-
*/
|
|
715
|
-
deleteMany<T extends SubCategoryDeleteManyArgs>(args?: Prisma.SelectSubset<T, SubCategoryDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
716
|
-
|
|
717
|
-
/**
|
|
718
|
-
* Update zero or more SubCategories.
|
|
719
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
720
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
721
|
-
* @param {SubCategoryUpdateManyArgs} args - Arguments to update one or more rows.
|
|
722
|
-
* @example
|
|
723
|
-
* // Update many SubCategories
|
|
724
|
-
* const subCategory = await prisma.subCategory.updateMany({
|
|
725
|
-
* where: {
|
|
726
|
-
* // ... provide filter here
|
|
727
|
-
* },
|
|
728
|
-
* data: {
|
|
729
|
-
* // ... provide data here
|
|
730
|
-
* }
|
|
731
|
-
* })
|
|
732
|
-
*
|
|
733
|
-
*/
|
|
734
|
-
updateMany<T extends SubCategoryUpdateManyArgs>(args: Prisma.SelectSubset<T, SubCategoryUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
735
|
-
|
|
736
|
-
/**
|
|
737
|
-
* Update zero or more SubCategories and returns the data updated in the database.
|
|
738
|
-
* @param {SubCategoryUpdateManyAndReturnArgs} args - Arguments to update many SubCategories.
|
|
739
|
-
* @example
|
|
740
|
-
* // Update many SubCategories
|
|
741
|
-
* const subCategory = await prisma.subCategory.updateManyAndReturn({
|
|
742
|
-
* where: {
|
|
743
|
-
* // ... provide filter here
|
|
744
|
-
* },
|
|
745
|
-
* data: [
|
|
746
|
-
* // ... provide data here
|
|
747
|
-
* ]
|
|
748
|
-
* })
|
|
749
|
-
*
|
|
750
|
-
* // Update zero or more SubCategories and only return the `id`
|
|
751
|
-
* const subCategoryWithIdOnly = await prisma.subCategory.updateManyAndReturn({
|
|
752
|
-
* select: { id: true },
|
|
753
|
-
* where: {
|
|
754
|
-
* // ... provide filter here
|
|
755
|
-
* },
|
|
756
|
-
* data: [
|
|
757
|
-
* // ... provide data here
|
|
758
|
-
* ]
|
|
759
|
-
* })
|
|
760
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
761
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
762
|
-
*
|
|
763
|
-
*/
|
|
764
|
-
updateManyAndReturn<T extends SubCategoryUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, SubCategoryUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SubCategoryPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
765
|
-
|
|
766
|
-
/**
|
|
767
|
-
* Create or update one SubCategory.
|
|
768
|
-
* @param {SubCategoryUpsertArgs} args - Arguments to update or create a SubCategory.
|
|
769
|
-
* @example
|
|
770
|
-
* // Update or create a SubCategory
|
|
771
|
-
* const subCategory = await prisma.subCategory.upsert({
|
|
772
|
-
* create: {
|
|
773
|
-
* // ... data to create a SubCategory
|
|
774
|
-
* },
|
|
775
|
-
* update: {
|
|
776
|
-
* // ... in case it already exists, update
|
|
777
|
-
* },
|
|
778
|
-
* where: {
|
|
779
|
-
* // ... the filter for the SubCategory we want to update
|
|
780
|
-
* }
|
|
781
|
-
* })
|
|
782
|
-
*/
|
|
783
|
-
upsert<T extends SubCategoryUpsertArgs>(args: Prisma.SelectSubset<T, SubCategoryUpsertArgs<ExtArgs>>): Prisma.Prisma__SubCategoryClient<runtime.Types.Result.GetResult<Prisma.$SubCategoryPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
/**
|
|
787
|
-
* Count the number of SubCategories.
|
|
788
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
789
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
790
|
-
* @param {SubCategoryCountArgs} args - Arguments to filter SubCategories to count.
|
|
791
|
-
* @example
|
|
792
|
-
* // Count the number of SubCategories
|
|
793
|
-
* const count = await prisma.subCategory.count({
|
|
794
|
-
* where: {
|
|
795
|
-
* // ... the filter for the SubCategories we want to count
|
|
796
|
-
* }
|
|
797
|
-
* })
|
|
798
|
-
**/
|
|
799
|
-
count<T extends SubCategoryCountArgs>(
|
|
800
|
-
args?: Prisma.Subset<T, SubCategoryCountArgs>,
|
|
801
|
-
): Prisma.PrismaPromise<
|
|
802
|
-
T extends runtime.Types.Utils.Record<'select', any>
|
|
803
|
-
? T['select'] extends true
|
|
804
|
-
? number
|
|
805
|
-
: Prisma.GetScalarType<T['select'], SubCategoryCountAggregateOutputType>
|
|
806
|
-
: number
|
|
807
|
-
>
|
|
808
|
-
|
|
809
|
-
/**
|
|
810
|
-
* Allows you to perform aggregations operations on a SubCategory.
|
|
811
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
812
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
813
|
-
* @param {SubCategoryAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
814
|
-
* @example
|
|
815
|
-
* // Ordered by age ascending
|
|
816
|
-
* // Where email contains prisma.io
|
|
817
|
-
* // Limited to the 10 users
|
|
818
|
-
* const aggregations = await prisma.user.aggregate({
|
|
819
|
-
* _avg: {
|
|
820
|
-
* age: true,
|
|
821
|
-
* },
|
|
822
|
-
* where: {
|
|
823
|
-
* email: {
|
|
824
|
-
* contains: "prisma.io",
|
|
825
|
-
* },
|
|
826
|
-
* },
|
|
827
|
-
* orderBy: {
|
|
828
|
-
* age: "asc",
|
|
829
|
-
* },
|
|
830
|
-
* take: 10,
|
|
831
|
-
* })
|
|
832
|
-
**/
|
|
833
|
-
aggregate<T extends SubCategoryAggregateArgs>(args: Prisma.Subset<T, SubCategoryAggregateArgs>): Prisma.PrismaPromise<GetSubCategoryAggregateType<T>>
|
|
834
|
-
|
|
835
|
-
/**
|
|
836
|
-
* Group by SubCategory.
|
|
837
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
838
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
839
|
-
* @param {SubCategoryGroupByArgs} args - Group by arguments.
|
|
840
|
-
* @example
|
|
841
|
-
* // Group by city, order by createdAt, get count
|
|
842
|
-
* const result = await prisma.user.groupBy({
|
|
843
|
-
* by: ['city', 'createdAt'],
|
|
844
|
-
* orderBy: {
|
|
845
|
-
* createdAt: true
|
|
846
|
-
* },
|
|
847
|
-
* _count: {
|
|
848
|
-
* _all: true
|
|
849
|
-
* },
|
|
850
|
-
* })
|
|
851
|
-
*
|
|
852
|
-
**/
|
|
853
|
-
groupBy<
|
|
854
|
-
T extends SubCategoryGroupByArgs,
|
|
855
|
-
HasSelectOrTake extends Prisma.Or<
|
|
856
|
-
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
857
|
-
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
858
|
-
>,
|
|
859
|
-
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
860
|
-
? { orderBy: SubCategoryGroupByArgs['orderBy'] }
|
|
861
|
-
: { orderBy?: SubCategoryGroupByArgs['orderBy'] },
|
|
862
|
-
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
863
|
-
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
864
|
-
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
865
|
-
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
866
|
-
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
867
|
-
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
|
868
|
-
InputErrors extends ByEmpty extends Prisma.True
|
|
869
|
-
? `Error: "by" must not be empty.`
|
|
870
|
-
: HavingValid extends Prisma.False
|
|
871
|
-
? {
|
|
872
|
-
[P in HavingFields]: P extends ByFields
|
|
873
|
-
? never
|
|
874
|
-
: P extends string
|
|
875
|
-
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
876
|
-
: [
|
|
877
|
-
Error,
|
|
878
|
-
'Field ',
|
|
879
|
-
P,
|
|
880
|
-
` in "having" needs to be provided in "by"`,
|
|
881
|
-
]
|
|
882
|
-
}[HavingFields]
|
|
883
|
-
: 'take' extends Prisma.Keys<T>
|
|
884
|
-
? 'orderBy' extends Prisma.Keys<T>
|
|
885
|
-
? ByValid extends Prisma.True
|
|
886
|
-
? {}
|
|
887
|
-
: {
|
|
888
|
-
[P in OrderFields]: P extends ByFields
|
|
889
|
-
? never
|
|
890
|
-
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
891
|
-
}[OrderFields]
|
|
892
|
-
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
893
|
-
: 'skip' extends Prisma.Keys<T>
|
|
894
|
-
? 'orderBy' extends Prisma.Keys<T>
|
|
895
|
-
? ByValid extends Prisma.True
|
|
896
|
-
? {}
|
|
897
|
-
: {
|
|
898
|
-
[P in OrderFields]: P extends ByFields
|
|
899
|
-
? never
|
|
900
|
-
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
901
|
-
}[OrderFields]
|
|
902
|
-
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
903
|
-
: ByValid extends Prisma.True
|
|
904
|
-
? {}
|
|
905
|
-
: {
|
|
906
|
-
[P in OrderFields]: P extends ByFields
|
|
907
|
-
? never
|
|
908
|
-
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
909
|
-
}[OrderFields]
|
|
910
|
-
>(args: Prisma.SubsetIntersection<T, SubCategoryGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSubCategoryGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
911
|
-
/**
|
|
912
|
-
* Fields of the SubCategory model
|
|
913
|
-
*/
|
|
914
|
-
readonly fields: SubCategoryFieldRefs;
|
|
915
|
-
}
|
|
916
|
-
|
|
917
|
-
/**
|
|
918
|
-
* The delegate class that acts as a "Promise-like" for SubCategory.
|
|
919
|
-
* Why is this prefixed with `Prisma__`?
|
|
920
|
-
* Because we want to prevent naming conflicts as mentioned in
|
|
921
|
-
* https://github.com/prisma/prisma-client-js/issues/707
|
|
922
|
-
*/
|
|
923
|
-
export interface Prisma__SubCategoryClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
924
|
-
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
925
|
-
categories<T extends Prisma.SubCategory$categoriesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.SubCategory$categoriesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CategoryPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
926
|
-
labels<T extends Prisma.SubCategory$labelsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.SubCategory$labelsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LabelPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
927
|
-
/**
|
|
928
|
-
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
929
|
-
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
930
|
-
* @param onrejected The callback to execute when the Promise is rejected.
|
|
931
|
-
* @returns A Promise for the completion of which ever callback is executed.
|
|
932
|
-
*/
|
|
933
|
-
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>
|
|
934
|
-
/**
|
|
935
|
-
* Attaches a callback for only the rejection of the Promise.
|
|
936
|
-
* @param onrejected The callback to execute when the Promise is rejected.
|
|
937
|
-
* @returns A Promise for the completion of the callback.
|
|
938
|
-
*/
|
|
939
|
-
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
940
|
-
/**
|
|
941
|
-
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
942
|
-
* resolved value cannot be modified from the callback.
|
|
943
|
-
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
944
|
-
* @returns A Promise for the completion of the callback.
|
|
945
|
-
*/
|
|
946
|
-
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
947
|
-
}
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
/**
|
|
953
|
-
* Fields of the SubCategory model
|
|
954
|
-
*/
|
|
955
|
-
export interface SubCategoryFieldRefs {
|
|
956
|
-
readonly id: Prisma.FieldRef<"SubCategory", 'String'>
|
|
957
|
-
readonly name: Prisma.FieldRef<"SubCategory", 'String'>
|
|
958
|
-
}
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
// Custom InputTypes
|
|
962
|
-
/**
|
|
963
|
-
* SubCategory findUnique
|
|
964
|
-
*/
|
|
965
|
-
export type SubCategoryFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
966
|
-
/**
|
|
967
|
-
* Select specific fields to fetch from the SubCategory
|
|
968
|
-
*/
|
|
969
|
-
select?: Prisma.SubCategorySelect<ExtArgs> | null
|
|
970
|
-
/**
|
|
971
|
-
* Omit specific fields from the SubCategory
|
|
972
|
-
*/
|
|
973
|
-
omit?: Prisma.SubCategoryOmit<ExtArgs> | null
|
|
974
|
-
/**
|
|
975
|
-
* Choose, which related nodes to fetch as well
|
|
976
|
-
*/
|
|
977
|
-
include?: Prisma.SubCategoryInclude<ExtArgs> | null
|
|
978
|
-
/**
|
|
979
|
-
* Filter, which SubCategory to fetch.
|
|
980
|
-
*/
|
|
981
|
-
where: Prisma.SubCategoryWhereUniqueInput
|
|
982
|
-
}
|
|
983
|
-
|
|
984
|
-
/**
|
|
985
|
-
* SubCategory findUniqueOrThrow
|
|
986
|
-
*/
|
|
987
|
-
export type SubCategoryFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
988
|
-
/**
|
|
989
|
-
* Select specific fields to fetch from the SubCategory
|
|
990
|
-
*/
|
|
991
|
-
select?: Prisma.SubCategorySelect<ExtArgs> | null
|
|
992
|
-
/**
|
|
993
|
-
* Omit specific fields from the SubCategory
|
|
994
|
-
*/
|
|
995
|
-
omit?: Prisma.SubCategoryOmit<ExtArgs> | null
|
|
996
|
-
/**
|
|
997
|
-
* Choose, which related nodes to fetch as well
|
|
998
|
-
*/
|
|
999
|
-
include?: Prisma.SubCategoryInclude<ExtArgs> | null
|
|
1000
|
-
/**
|
|
1001
|
-
* Filter, which SubCategory to fetch.
|
|
1002
|
-
*/
|
|
1003
|
-
where: Prisma.SubCategoryWhereUniqueInput
|
|
1004
|
-
}
|
|
1005
|
-
|
|
1006
|
-
/**
|
|
1007
|
-
* SubCategory findFirst
|
|
1008
|
-
*/
|
|
1009
|
-
export type SubCategoryFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1010
|
-
/**
|
|
1011
|
-
* Select specific fields to fetch from the SubCategory
|
|
1012
|
-
*/
|
|
1013
|
-
select?: Prisma.SubCategorySelect<ExtArgs> | null
|
|
1014
|
-
/**
|
|
1015
|
-
* Omit specific fields from the SubCategory
|
|
1016
|
-
*/
|
|
1017
|
-
omit?: Prisma.SubCategoryOmit<ExtArgs> | null
|
|
1018
|
-
/**
|
|
1019
|
-
* Choose, which related nodes to fetch as well
|
|
1020
|
-
*/
|
|
1021
|
-
include?: Prisma.SubCategoryInclude<ExtArgs> | null
|
|
1022
|
-
/**
|
|
1023
|
-
* Filter, which SubCategory to fetch.
|
|
1024
|
-
*/
|
|
1025
|
-
where?: Prisma.SubCategoryWhereInput
|
|
1026
|
-
/**
|
|
1027
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1028
|
-
*
|
|
1029
|
-
* Determine the order of SubCategories to fetch.
|
|
1030
|
-
*/
|
|
1031
|
-
orderBy?: Prisma.SubCategoryOrderByWithRelationInput | Prisma.SubCategoryOrderByWithRelationInput[]
|
|
1032
|
-
/**
|
|
1033
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1034
|
-
*
|
|
1035
|
-
* Sets the position for searching for SubCategories.
|
|
1036
|
-
*/
|
|
1037
|
-
cursor?: Prisma.SubCategoryWhereUniqueInput
|
|
1038
|
-
/**
|
|
1039
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1040
|
-
*
|
|
1041
|
-
* Take `±n` SubCategories from the position of the cursor.
|
|
1042
|
-
*/
|
|
1043
|
-
take?: number
|
|
1044
|
-
/**
|
|
1045
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1046
|
-
*
|
|
1047
|
-
* Skip the first `n` SubCategories.
|
|
1048
|
-
*/
|
|
1049
|
-
skip?: number
|
|
1050
|
-
/**
|
|
1051
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1052
|
-
*
|
|
1053
|
-
* Filter by unique combinations of SubCategories.
|
|
1054
|
-
*/
|
|
1055
|
-
distinct?: Prisma.SubCategoryScalarFieldEnum | Prisma.SubCategoryScalarFieldEnum[]
|
|
1056
|
-
}
|
|
1057
|
-
|
|
1058
|
-
/**
|
|
1059
|
-
* SubCategory findFirstOrThrow
|
|
1060
|
-
*/
|
|
1061
|
-
export type SubCategoryFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1062
|
-
/**
|
|
1063
|
-
* Select specific fields to fetch from the SubCategory
|
|
1064
|
-
*/
|
|
1065
|
-
select?: Prisma.SubCategorySelect<ExtArgs> | null
|
|
1066
|
-
/**
|
|
1067
|
-
* Omit specific fields from the SubCategory
|
|
1068
|
-
*/
|
|
1069
|
-
omit?: Prisma.SubCategoryOmit<ExtArgs> | null
|
|
1070
|
-
/**
|
|
1071
|
-
* Choose, which related nodes to fetch as well
|
|
1072
|
-
*/
|
|
1073
|
-
include?: Prisma.SubCategoryInclude<ExtArgs> | null
|
|
1074
|
-
/**
|
|
1075
|
-
* Filter, which SubCategory to fetch.
|
|
1076
|
-
*/
|
|
1077
|
-
where?: Prisma.SubCategoryWhereInput
|
|
1078
|
-
/**
|
|
1079
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1080
|
-
*
|
|
1081
|
-
* Determine the order of SubCategories to fetch.
|
|
1082
|
-
*/
|
|
1083
|
-
orderBy?: Prisma.SubCategoryOrderByWithRelationInput | Prisma.SubCategoryOrderByWithRelationInput[]
|
|
1084
|
-
/**
|
|
1085
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1086
|
-
*
|
|
1087
|
-
* Sets the position for searching for SubCategories.
|
|
1088
|
-
*/
|
|
1089
|
-
cursor?: Prisma.SubCategoryWhereUniqueInput
|
|
1090
|
-
/**
|
|
1091
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1092
|
-
*
|
|
1093
|
-
* Take `±n` SubCategories from the position of the cursor.
|
|
1094
|
-
*/
|
|
1095
|
-
take?: number
|
|
1096
|
-
/**
|
|
1097
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1098
|
-
*
|
|
1099
|
-
* Skip the first `n` SubCategories.
|
|
1100
|
-
*/
|
|
1101
|
-
skip?: number
|
|
1102
|
-
/**
|
|
1103
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1104
|
-
*
|
|
1105
|
-
* Filter by unique combinations of SubCategories.
|
|
1106
|
-
*/
|
|
1107
|
-
distinct?: Prisma.SubCategoryScalarFieldEnum | Prisma.SubCategoryScalarFieldEnum[]
|
|
1108
|
-
}
|
|
1109
|
-
|
|
1110
|
-
/**
|
|
1111
|
-
* SubCategory findMany
|
|
1112
|
-
*/
|
|
1113
|
-
export type SubCategoryFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1114
|
-
/**
|
|
1115
|
-
* Select specific fields to fetch from the SubCategory
|
|
1116
|
-
*/
|
|
1117
|
-
select?: Prisma.SubCategorySelect<ExtArgs> | null
|
|
1118
|
-
/**
|
|
1119
|
-
* Omit specific fields from the SubCategory
|
|
1120
|
-
*/
|
|
1121
|
-
omit?: Prisma.SubCategoryOmit<ExtArgs> | null
|
|
1122
|
-
/**
|
|
1123
|
-
* Choose, which related nodes to fetch as well
|
|
1124
|
-
*/
|
|
1125
|
-
include?: Prisma.SubCategoryInclude<ExtArgs> | null
|
|
1126
|
-
/**
|
|
1127
|
-
* Filter, which SubCategories to fetch.
|
|
1128
|
-
*/
|
|
1129
|
-
where?: Prisma.SubCategoryWhereInput
|
|
1130
|
-
/**
|
|
1131
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1132
|
-
*
|
|
1133
|
-
* Determine the order of SubCategories to fetch.
|
|
1134
|
-
*/
|
|
1135
|
-
orderBy?: Prisma.SubCategoryOrderByWithRelationInput | Prisma.SubCategoryOrderByWithRelationInput[]
|
|
1136
|
-
/**
|
|
1137
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1138
|
-
*
|
|
1139
|
-
* Sets the position for listing SubCategories.
|
|
1140
|
-
*/
|
|
1141
|
-
cursor?: Prisma.SubCategoryWhereUniqueInput
|
|
1142
|
-
/**
|
|
1143
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1144
|
-
*
|
|
1145
|
-
* Take `±n` SubCategories from the position of the cursor.
|
|
1146
|
-
*/
|
|
1147
|
-
take?: number
|
|
1148
|
-
/**
|
|
1149
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1150
|
-
*
|
|
1151
|
-
* Skip the first `n` SubCategories.
|
|
1152
|
-
*/
|
|
1153
|
-
skip?: number
|
|
1154
|
-
/**
|
|
1155
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1156
|
-
*
|
|
1157
|
-
* Filter by unique combinations of SubCategories.
|
|
1158
|
-
*/
|
|
1159
|
-
distinct?: Prisma.SubCategoryScalarFieldEnum | Prisma.SubCategoryScalarFieldEnum[]
|
|
1160
|
-
}
|
|
1161
|
-
|
|
1162
|
-
/**
|
|
1163
|
-
* SubCategory create
|
|
1164
|
-
*/
|
|
1165
|
-
export type SubCategoryCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1166
|
-
/**
|
|
1167
|
-
* Select specific fields to fetch from the SubCategory
|
|
1168
|
-
*/
|
|
1169
|
-
select?: Prisma.SubCategorySelect<ExtArgs> | null
|
|
1170
|
-
/**
|
|
1171
|
-
* Omit specific fields from the SubCategory
|
|
1172
|
-
*/
|
|
1173
|
-
omit?: Prisma.SubCategoryOmit<ExtArgs> | null
|
|
1174
|
-
/**
|
|
1175
|
-
* Choose, which related nodes to fetch as well
|
|
1176
|
-
*/
|
|
1177
|
-
include?: Prisma.SubCategoryInclude<ExtArgs> | null
|
|
1178
|
-
/**
|
|
1179
|
-
* The data needed to create a SubCategory.
|
|
1180
|
-
*/
|
|
1181
|
-
data: Prisma.XOR<Prisma.SubCategoryCreateInput, Prisma.SubCategoryUncheckedCreateInput>
|
|
1182
|
-
}
|
|
1183
|
-
|
|
1184
|
-
/**
|
|
1185
|
-
* SubCategory createMany
|
|
1186
|
-
*/
|
|
1187
|
-
export type SubCategoryCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1188
|
-
/**
|
|
1189
|
-
* The data used to create many SubCategories.
|
|
1190
|
-
*/
|
|
1191
|
-
data: Prisma.SubCategoryCreateManyInput | Prisma.SubCategoryCreateManyInput[]
|
|
1192
|
-
}
|
|
1193
|
-
|
|
1194
|
-
/**
|
|
1195
|
-
* SubCategory createManyAndReturn
|
|
1196
|
-
*/
|
|
1197
|
-
export type SubCategoryCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1198
|
-
/**
|
|
1199
|
-
* Select specific fields to fetch from the SubCategory
|
|
1200
|
-
*/
|
|
1201
|
-
select?: Prisma.SubCategorySelectCreateManyAndReturn<ExtArgs> | null
|
|
1202
|
-
/**
|
|
1203
|
-
* Omit specific fields from the SubCategory
|
|
1204
|
-
*/
|
|
1205
|
-
omit?: Prisma.SubCategoryOmit<ExtArgs> | null
|
|
1206
|
-
/**
|
|
1207
|
-
* The data used to create many SubCategories.
|
|
1208
|
-
*/
|
|
1209
|
-
data: Prisma.SubCategoryCreateManyInput | Prisma.SubCategoryCreateManyInput[]
|
|
1210
|
-
}
|
|
1211
|
-
|
|
1212
|
-
/**
|
|
1213
|
-
* SubCategory update
|
|
1214
|
-
*/
|
|
1215
|
-
export type SubCategoryUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1216
|
-
/**
|
|
1217
|
-
* Select specific fields to fetch from the SubCategory
|
|
1218
|
-
*/
|
|
1219
|
-
select?: Prisma.SubCategorySelect<ExtArgs> | null
|
|
1220
|
-
/**
|
|
1221
|
-
* Omit specific fields from the SubCategory
|
|
1222
|
-
*/
|
|
1223
|
-
omit?: Prisma.SubCategoryOmit<ExtArgs> | null
|
|
1224
|
-
/**
|
|
1225
|
-
* Choose, which related nodes to fetch as well
|
|
1226
|
-
*/
|
|
1227
|
-
include?: Prisma.SubCategoryInclude<ExtArgs> | null
|
|
1228
|
-
/**
|
|
1229
|
-
* The data needed to update a SubCategory.
|
|
1230
|
-
*/
|
|
1231
|
-
data: Prisma.XOR<Prisma.SubCategoryUpdateInput, Prisma.SubCategoryUncheckedUpdateInput>
|
|
1232
|
-
/**
|
|
1233
|
-
* Choose, which SubCategory to update.
|
|
1234
|
-
*/
|
|
1235
|
-
where: Prisma.SubCategoryWhereUniqueInput
|
|
1236
|
-
}
|
|
1237
|
-
|
|
1238
|
-
/**
|
|
1239
|
-
* SubCategory updateMany
|
|
1240
|
-
*/
|
|
1241
|
-
export type SubCategoryUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1242
|
-
/**
|
|
1243
|
-
* The data used to update SubCategories.
|
|
1244
|
-
*/
|
|
1245
|
-
data: Prisma.XOR<Prisma.SubCategoryUpdateManyMutationInput, Prisma.SubCategoryUncheckedUpdateManyInput>
|
|
1246
|
-
/**
|
|
1247
|
-
* Filter which SubCategories to update
|
|
1248
|
-
*/
|
|
1249
|
-
where?: Prisma.SubCategoryWhereInput
|
|
1250
|
-
/**
|
|
1251
|
-
* Limit how many SubCategories to update.
|
|
1252
|
-
*/
|
|
1253
|
-
limit?: number
|
|
1254
|
-
}
|
|
1255
|
-
|
|
1256
|
-
/**
|
|
1257
|
-
* SubCategory updateManyAndReturn
|
|
1258
|
-
*/
|
|
1259
|
-
export type SubCategoryUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1260
|
-
/**
|
|
1261
|
-
* Select specific fields to fetch from the SubCategory
|
|
1262
|
-
*/
|
|
1263
|
-
select?: Prisma.SubCategorySelectUpdateManyAndReturn<ExtArgs> | null
|
|
1264
|
-
/**
|
|
1265
|
-
* Omit specific fields from the SubCategory
|
|
1266
|
-
*/
|
|
1267
|
-
omit?: Prisma.SubCategoryOmit<ExtArgs> | null
|
|
1268
|
-
/**
|
|
1269
|
-
* The data used to update SubCategories.
|
|
1270
|
-
*/
|
|
1271
|
-
data: Prisma.XOR<Prisma.SubCategoryUpdateManyMutationInput, Prisma.SubCategoryUncheckedUpdateManyInput>
|
|
1272
|
-
/**
|
|
1273
|
-
* Filter which SubCategories to update
|
|
1274
|
-
*/
|
|
1275
|
-
where?: Prisma.SubCategoryWhereInput
|
|
1276
|
-
/**
|
|
1277
|
-
* Limit how many SubCategories to update.
|
|
1278
|
-
*/
|
|
1279
|
-
limit?: number
|
|
1280
|
-
}
|
|
1281
|
-
|
|
1282
|
-
/**
|
|
1283
|
-
* SubCategory upsert
|
|
1284
|
-
*/
|
|
1285
|
-
export type SubCategoryUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1286
|
-
/**
|
|
1287
|
-
* Select specific fields to fetch from the SubCategory
|
|
1288
|
-
*/
|
|
1289
|
-
select?: Prisma.SubCategorySelect<ExtArgs> | null
|
|
1290
|
-
/**
|
|
1291
|
-
* Omit specific fields from the SubCategory
|
|
1292
|
-
*/
|
|
1293
|
-
omit?: Prisma.SubCategoryOmit<ExtArgs> | null
|
|
1294
|
-
/**
|
|
1295
|
-
* Choose, which related nodes to fetch as well
|
|
1296
|
-
*/
|
|
1297
|
-
include?: Prisma.SubCategoryInclude<ExtArgs> | null
|
|
1298
|
-
/**
|
|
1299
|
-
* The filter to search for the SubCategory to update in case it exists.
|
|
1300
|
-
*/
|
|
1301
|
-
where: Prisma.SubCategoryWhereUniqueInput
|
|
1302
|
-
/**
|
|
1303
|
-
* In case the SubCategory found by the `where` argument doesn't exist, create a new SubCategory with this data.
|
|
1304
|
-
*/
|
|
1305
|
-
create: Prisma.XOR<Prisma.SubCategoryCreateInput, Prisma.SubCategoryUncheckedCreateInput>
|
|
1306
|
-
/**
|
|
1307
|
-
* In case the SubCategory was found with the provided `where` argument, update it with this data.
|
|
1308
|
-
*/
|
|
1309
|
-
update: Prisma.XOR<Prisma.SubCategoryUpdateInput, Prisma.SubCategoryUncheckedUpdateInput>
|
|
1310
|
-
}
|
|
1311
|
-
|
|
1312
|
-
/**
|
|
1313
|
-
* SubCategory delete
|
|
1314
|
-
*/
|
|
1315
|
-
export type SubCategoryDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1316
|
-
/**
|
|
1317
|
-
* Select specific fields to fetch from the SubCategory
|
|
1318
|
-
*/
|
|
1319
|
-
select?: Prisma.SubCategorySelect<ExtArgs> | null
|
|
1320
|
-
/**
|
|
1321
|
-
* Omit specific fields from the SubCategory
|
|
1322
|
-
*/
|
|
1323
|
-
omit?: Prisma.SubCategoryOmit<ExtArgs> | null
|
|
1324
|
-
/**
|
|
1325
|
-
* Choose, which related nodes to fetch as well
|
|
1326
|
-
*/
|
|
1327
|
-
include?: Prisma.SubCategoryInclude<ExtArgs> | null
|
|
1328
|
-
/**
|
|
1329
|
-
* Filter which SubCategory to delete.
|
|
1330
|
-
*/
|
|
1331
|
-
where: Prisma.SubCategoryWhereUniqueInput
|
|
1332
|
-
}
|
|
1333
|
-
|
|
1334
|
-
/**
|
|
1335
|
-
* SubCategory deleteMany
|
|
1336
|
-
*/
|
|
1337
|
-
export type SubCategoryDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1338
|
-
/**
|
|
1339
|
-
* Filter which SubCategories to delete
|
|
1340
|
-
*/
|
|
1341
|
-
where?: Prisma.SubCategoryWhereInput
|
|
1342
|
-
/**
|
|
1343
|
-
* Limit how many SubCategories to delete.
|
|
1344
|
-
*/
|
|
1345
|
-
limit?: number
|
|
1346
|
-
}
|
|
1347
|
-
|
|
1348
|
-
/**
|
|
1349
|
-
* SubCategory.categories
|
|
1350
|
-
*/
|
|
1351
|
-
export type SubCategory$categoriesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1352
|
-
/**
|
|
1353
|
-
* Select specific fields to fetch from the Category
|
|
1354
|
-
*/
|
|
1355
|
-
select?: Prisma.CategorySelect<ExtArgs> | null
|
|
1356
|
-
/**
|
|
1357
|
-
* Omit specific fields from the Category
|
|
1358
|
-
*/
|
|
1359
|
-
omit?: Prisma.CategoryOmit<ExtArgs> | null
|
|
1360
|
-
/**
|
|
1361
|
-
* Choose, which related nodes to fetch as well
|
|
1362
|
-
*/
|
|
1363
|
-
include?: Prisma.CategoryInclude<ExtArgs> | null
|
|
1364
|
-
where?: Prisma.CategoryWhereInput
|
|
1365
|
-
orderBy?: Prisma.CategoryOrderByWithRelationInput | Prisma.CategoryOrderByWithRelationInput[]
|
|
1366
|
-
cursor?: Prisma.CategoryWhereUniqueInput
|
|
1367
|
-
take?: number
|
|
1368
|
-
skip?: number
|
|
1369
|
-
distinct?: Prisma.CategoryScalarFieldEnum | Prisma.CategoryScalarFieldEnum[]
|
|
1370
|
-
}
|
|
1371
|
-
|
|
1372
|
-
/**
|
|
1373
|
-
* SubCategory.labels
|
|
1374
|
-
*/
|
|
1375
|
-
export type SubCategory$labelsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1376
|
-
/**
|
|
1377
|
-
* Select specific fields to fetch from the Label
|
|
1378
|
-
*/
|
|
1379
|
-
select?: Prisma.LabelSelect<ExtArgs> | null
|
|
1380
|
-
/**
|
|
1381
|
-
* Omit specific fields from the Label
|
|
1382
|
-
*/
|
|
1383
|
-
omit?: Prisma.LabelOmit<ExtArgs> | null
|
|
1384
|
-
/**
|
|
1385
|
-
* Choose, which related nodes to fetch as well
|
|
1386
|
-
*/
|
|
1387
|
-
include?: Prisma.LabelInclude<ExtArgs> | null
|
|
1388
|
-
where?: Prisma.LabelWhereInput
|
|
1389
|
-
orderBy?: Prisma.LabelOrderByWithRelationInput | Prisma.LabelOrderByWithRelationInput[]
|
|
1390
|
-
cursor?: Prisma.LabelWhereUniqueInput
|
|
1391
|
-
take?: number
|
|
1392
|
-
skip?: number
|
|
1393
|
-
distinct?: Prisma.LabelScalarFieldEnum | Prisma.LabelScalarFieldEnum[]
|
|
1394
|
-
}
|
|
1395
|
-
|
|
1396
|
-
/**
|
|
1397
|
-
* SubCategory without action
|
|
1398
|
-
*/
|
|
1399
|
-
export type SubCategoryDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1400
|
-
/**
|
|
1401
|
-
* Select specific fields to fetch from the SubCategory
|
|
1402
|
-
*/
|
|
1403
|
-
select?: Prisma.SubCategorySelect<ExtArgs> | null
|
|
1404
|
-
/**
|
|
1405
|
-
* Omit specific fields from the SubCategory
|
|
1406
|
-
*/
|
|
1407
|
-
omit?: Prisma.SubCategoryOmit<ExtArgs> | null
|
|
1408
|
-
/**
|
|
1409
|
-
* Choose, which related nodes to fetch as well
|
|
1410
|
-
*/
|
|
1411
|
-
include?: Prisma.SubCategoryInclude<ExtArgs> | null
|
|
1412
|
-
}
|