efiber-prisma-schema 1.16.1 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (124) hide show
  1. package/index.d.ts +6 -1
  2. package/index.js +10 -1
  3. package/package.json +13 -5
  4. package/prisma/generated/browser.ts +559 -0
  5. package/prisma/generated/client.ts +581 -0
  6. package/prisma/generated/commonInputTypes.ts +1246 -0
  7. package/prisma/generated/enums.ts +188 -0
  8. package/prisma/generated/internal/class.ts +1260 -0
  9. package/prisma/generated/internal/prismaNamespace.ts +11532 -0
  10. package/prisma/generated/internal/prismaNamespaceBrowser.ts +2582 -0
  11. package/prisma/generated/models/AttributeDefinition.ts +1498 -0
  12. package/prisma/generated/models/AttributeValue.ts +1419 -0
  13. package/prisma/generated/models/Audit.ts +1725 -0
  14. package/prisma/generated/models/BillOfMaterial.ts +1934 -0
  15. package/prisma/generated/models/Building.ts +6130 -0
  16. package/prisma/generated/models/BuildingTemplate.ts +2912 -0
  17. package/prisma/generated/models/Cable.ts +10501 -0
  18. package/prisma/generated/models/CableAttachment.ts +1530 -0
  19. package/prisma/generated/models/CableAttributes.ts +2244 -0
  20. package/prisma/generated/models/CableTemplate.ts +3170 -0
  21. package/prisma/generated/models/CamusatClient.ts +2001 -0
  22. package/prisma/generated/models/CamusatCountry.ts +2425 -0
  23. package/prisma/generated/models/CentralOffice.ts +1921 -0
  24. package/prisma/generated/models/CentralOfficeTeam.ts +1620 -0
  25. package/prisma/generated/models/CentralOfficeUser.ts +1650 -0
  26. package/prisma/generated/models/Cluster.ts +10984 -0
  27. package/prisma/generated/models/ClusterComments.ts +1668 -0
  28. package/prisma/generated/models/ClusterNotes.ts +1703 -0
  29. package/prisma/generated/models/Conduit.ts +5119 -0
  30. package/prisma/generated/models/ConduitTemplate.ts +2940 -0
  31. package/prisma/generated/models/Country.ts +1795 -0
  32. package/prisma/generated/models/DispatchMaterial.ts +3070 -0
  33. package/prisma/generated/models/DispatchProject.ts +4179 -0
  34. package/prisma/generated/models/DispatchTeam.ts +3053 -0
  35. package/prisma/generated/models/Duct.ts +1813 -0
  36. package/prisma/generated/models/ElementNode.ts +4413 -0
  37. package/prisma/generated/models/ElementRelation.ts +1644 -0
  38. package/prisma/generated/models/EmailConfigurations.ts +3736 -0
  39. package/prisma/generated/models/EmailTemplates.ts +1739 -0
  40. package/prisma/generated/models/EmailsIncoming.ts +2010 -0
  41. package/prisma/generated/models/EmailsIncomingSample.ts +1503 -0
  42. package/prisma/generated/models/EmailsOutgoing.ts +1648 -0
  43. package/prisma/generated/models/FDTSRO.ts +6180 -0
  44. package/prisma/generated/models/FDTSROTemplate.ts +2912 -0
  45. package/prisma/generated/models/Feature.ts +1867 -0
  46. package/prisma/generated/models/FeatureType.ts +1430 -0
  47. package/prisma/generated/models/IntegrationReportTemplate.ts +1878 -0
  48. package/prisma/generated/models/Loop.ts +5271 -0
  49. package/prisma/generated/models/LoopTemplate.ts +2912 -0
  50. package/prisma/generated/models/MainProject.ts +1664 -0
  51. package/prisma/generated/models/Manhole.ts +5090 -0
  52. package/prisma/generated/models/ManholeTemplate.ts +2912 -0
  53. package/prisma/generated/models/MapElement.ts +3450 -0
  54. package/prisma/generated/models/MapElementTemplate.ts +2742 -0
  55. package/prisma/generated/models/Material.ts +1963 -0
  56. package/prisma/generated/models/MaterialBillOfMaterial.ts +1737 -0
  57. package/prisma/generated/models/MaterialChangeLog.ts +1454 -0
  58. package/prisma/generated/models/NetworkElement.ts +6891 -0
  59. package/prisma/generated/models/NetworkElementInstallation.ts +3320 -0
  60. package/prisma/generated/models/Notifications.ts +1563 -0
  61. package/prisma/generated/models/OptionSource.ts +1132 -0
  62. package/prisma/generated/models/PboFat.ts +8248 -0
  63. package/prisma/generated/models/PboFatAttributes.ts +2672 -0
  64. package/prisma/generated/models/PboFatTemplate.ts +3112 -0
  65. package/prisma/generated/models/Platform.ts +1759 -0
  66. package/prisma/generated/models/Pole.ts +5266 -0
  67. package/prisma/generated/models/PoleTemplate.ts +2912 -0
  68. package/prisma/generated/models/Position.ts +1490 -0
  69. package/prisma/generated/models/PreviousEquipment.ts +1881 -0
  70. package/prisma/generated/models/Project.ts +14893 -0
  71. package/prisma/generated/models/ProjectType.ts +1351 -0
  72. package/prisma/generated/models/ProjectWorkFlow.ts +1856 -0
  73. package/prisma/generated/models/ReportFormats.ts +1768 -0
  74. package/prisma/generated/models/ReportFormulaConfig.ts +1375 -0
  75. package/prisma/generated/models/ReportMetric.ts +1737 -0
  76. package/prisma/generated/models/ReportTable.ts +1498 -0
  77. package/prisma/generated/models/ReportVisualization.ts +1446 -0
  78. package/prisma/generated/models/Revision.ts +4653 -0
  79. package/prisma/generated/models/Role.ts +2960 -0
  80. package/prisma/generated/models/SFU.ts +5977 -0
  81. package/prisma/generated/models/SFUTemplate.ts +2912 -0
  82. package/prisma/generated/models/SpliceClosure.ts +6405 -0
  83. package/prisma/generated/models/SpliceClosureAttributes.ts +2172 -0
  84. package/prisma/generated/models/SpliceClosureTemplate.ts +3176 -0
  85. package/prisma/generated/models/Splitter.ts +1459 -0
  86. package/prisma/generated/models/StockMovement.ts +1589 -0
  87. package/prisma/generated/models/SubsidiaryMaterial.ts +2193 -0
  88. package/prisma/generated/models/SubsidiaryMaterialMovementLog.ts +1966 -0
  89. package/prisma/generated/models/Team.ts +2044 -0
  90. package/prisma/generated/models/TeamMaterial.ts +2193 -0
  91. package/prisma/generated/models/TeamMaterialMovementLog.ts +1966 -0
  92. package/prisma/generated/models/TeamPlatform.ts +1874 -0
  93. package/prisma/generated/models/TeamType.ts +1655 -0
  94. package/prisma/generated/models/Template.ts +1691 -0
  95. package/prisma/generated/models/TemplateComponent.ts +1995 -0
  96. package/prisma/generated/models/User.ts +25676 -0
  97. package/prisma/generated/models/WorkOrder.ts +5901 -0
  98. package/prisma/generated/models/WorkOrderActivityLog.ts +2126 -0
  99. package/prisma/generated/models/WorkOrderChannel.ts +1454 -0
  100. package/prisma/generated/models/WorkOrderComments.ts +1687 -0
  101. package/prisma/generated/models/WorkOrderEditLog.ts +1757 -0
  102. package/prisma/generated/models/WorkOrderMaterial.ts +1933 -0
  103. package/prisma/generated/models/WorkOrderPauses.ts +1454 -0
  104. package/prisma/generated/models/WorkOrderTask.ts +2220 -0
  105. package/prisma/generated/models/WorkOrderTaskData.ts +1244 -0
  106. package/prisma/generated/models/ZoneNro.ts +3926 -0
  107. package/prisma/generated/models/ZoneNroTemplate.ts +2966 -0
  108. package/prisma/generated/models/clientMaterial.ts +2193 -0
  109. package/prisma/generated/models/clientMaterialMovementLog.ts +1966 -0
  110. package/prisma/generated/models/ductTemplate.ts +1606 -0
  111. package/prisma/generated/models/installationSequence.ts +1708 -0
  112. package/prisma/generated/models/integrationProjectUserStatus.ts +1916 -0
  113. package/prisma/generated/models/integrationUserLocation.ts +1681 -0
  114. package/prisma/generated/models/problemCategorization.ts +1543 -0
  115. package/prisma/generated/models/projectPhaseLog.ts +1728 -0
  116. package/prisma/generated/models/qrCodeTag.ts +4978 -0
  117. package/prisma/generated/models/qrCodeTemplate.ts +6500 -0
  118. package/prisma/generated/models/ticketMaterialMovementLog.ts +1651 -0
  119. package/prisma/generated/models.ts +119 -0
  120. package/prisma/migrations/20251106101538_max_capacity_string/migration.sql +2 -0
  121. package/prisma/schema.prisma +3 -3
  122. package/prisma/seed.ts +33 -0
  123. package/prisma.config.ts +13 -0
  124. package/tsconfig.json +13 -0
@@ -0,0 +1,1644 @@
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 `ElementRelation` 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 ElementRelation
17
+ *
18
+ */
19
+ export type ElementRelationModel = runtime.Types.Result.DefaultSelection<Prisma.$ElementRelationPayload>
20
+
21
+ export type AggregateElementRelation = {
22
+ _count: ElementRelationCountAggregateOutputType | null
23
+ _min: ElementRelationMinAggregateOutputType | null
24
+ _max: ElementRelationMaxAggregateOutputType | null
25
+ }
26
+
27
+ export type ElementRelationMinAggregateOutputType = {
28
+ id: string | null
29
+ fromId: string | null
30
+ toId: string | null
31
+ relationType: $Enums.RelationType | null
32
+ clusterId: string | null
33
+ }
34
+
35
+ export type ElementRelationMaxAggregateOutputType = {
36
+ id: string | null
37
+ fromId: string | null
38
+ toId: string | null
39
+ relationType: $Enums.RelationType | null
40
+ clusterId: string | null
41
+ }
42
+
43
+ export type ElementRelationCountAggregateOutputType = {
44
+ id: number
45
+ fromId: number
46
+ toId: number
47
+ relationType: number
48
+ metadata: number
49
+ clusterId: number
50
+ _all: number
51
+ }
52
+
53
+
54
+ export type ElementRelationMinAggregateInputType = {
55
+ id?: true
56
+ fromId?: true
57
+ toId?: true
58
+ relationType?: true
59
+ clusterId?: true
60
+ }
61
+
62
+ export type ElementRelationMaxAggregateInputType = {
63
+ id?: true
64
+ fromId?: true
65
+ toId?: true
66
+ relationType?: true
67
+ clusterId?: true
68
+ }
69
+
70
+ export type ElementRelationCountAggregateInputType = {
71
+ id?: true
72
+ fromId?: true
73
+ toId?: true
74
+ relationType?: true
75
+ metadata?: true
76
+ clusterId?: true
77
+ _all?: true
78
+ }
79
+
80
+ export type ElementRelationAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
81
+ /**
82
+ * Filter which ElementRelation to aggregate.
83
+ */
84
+ where?: Prisma.ElementRelationWhereInput
85
+ /**
86
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
87
+ *
88
+ * Determine the order of ElementRelations to fetch.
89
+ */
90
+ orderBy?: Prisma.ElementRelationOrderByWithRelationInput | Prisma.ElementRelationOrderByWithRelationInput[]
91
+ /**
92
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
93
+ *
94
+ * Sets the start position
95
+ */
96
+ cursor?: Prisma.ElementRelationWhereUniqueInput
97
+ /**
98
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
99
+ *
100
+ * Take `±n` ElementRelations from the position of the cursor.
101
+ */
102
+ take?: number
103
+ /**
104
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
105
+ *
106
+ * Skip the first `n` ElementRelations.
107
+ */
108
+ skip?: number
109
+ /**
110
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
111
+ *
112
+ * Count returned ElementRelations
113
+ **/
114
+ _count?: true | ElementRelationCountAggregateInputType
115
+ /**
116
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
117
+ *
118
+ * Select which fields to find the minimum value
119
+ **/
120
+ _min?: ElementRelationMinAggregateInputType
121
+ /**
122
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
123
+ *
124
+ * Select which fields to find the maximum value
125
+ **/
126
+ _max?: ElementRelationMaxAggregateInputType
127
+ }
128
+
129
+ export type GetElementRelationAggregateType<T extends ElementRelationAggregateArgs> = {
130
+ [P in keyof T & keyof AggregateElementRelation]: P extends '_count' | 'count'
131
+ ? T[P] extends true
132
+ ? number
133
+ : Prisma.GetScalarType<T[P], AggregateElementRelation[P]>
134
+ : Prisma.GetScalarType<T[P], AggregateElementRelation[P]>
135
+ }
136
+
137
+
138
+
139
+
140
+ export type ElementRelationGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
141
+ where?: Prisma.ElementRelationWhereInput
142
+ orderBy?: Prisma.ElementRelationOrderByWithAggregationInput | Prisma.ElementRelationOrderByWithAggregationInput[]
143
+ by: Prisma.ElementRelationScalarFieldEnum[] | Prisma.ElementRelationScalarFieldEnum
144
+ having?: Prisma.ElementRelationScalarWhereWithAggregatesInput
145
+ take?: number
146
+ skip?: number
147
+ _count?: ElementRelationCountAggregateInputType | true
148
+ _min?: ElementRelationMinAggregateInputType
149
+ _max?: ElementRelationMaxAggregateInputType
150
+ }
151
+
152
+ export type ElementRelationGroupByOutputType = {
153
+ id: string
154
+ fromId: string
155
+ toId: string
156
+ relationType: $Enums.RelationType
157
+ metadata: runtime.JsonValue | null
158
+ clusterId: string | null
159
+ _count: ElementRelationCountAggregateOutputType | null
160
+ _min: ElementRelationMinAggregateOutputType | null
161
+ _max: ElementRelationMaxAggregateOutputType | null
162
+ }
163
+
164
+ type GetElementRelationGroupByPayload<T extends ElementRelationGroupByArgs> = Prisma.PrismaPromise<
165
+ Array<
166
+ Prisma.PickEnumerable<ElementRelationGroupByOutputType, T['by']> &
167
+ {
168
+ [P in ((keyof T) & (keyof ElementRelationGroupByOutputType))]: P extends '_count'
169
+ ? T[P] extends boolean
170
+ ? number
171
+ : Prisma.GetScalarType<T[P], ElementRelationGroupByOutputType[P]>
172
+ : Prisma.GetScalarType<T[P], ElementRelationGroupByOutputType[P]>
173
+ }
174
+ >
175
+ >
176
+
177
+
178
+
179
+ export type ElementRelationWhereInput = {
180
+ AND?: Prisma.ElementRelationWhereInput | Prisma.ElementRelationWhereInput[]
181
+ OR?: Prisma.ElementRelationWhereInput[]
182
+ NOT?: Prisma.ElementRelationWhereInput | Prisma.ElementRelationWhereInput[]
183
+ id?: Prisma.StringFilter<"ElementRelation"> | string
184
+ fromId?: Prisma.StringFilter<"ElementRelation"> | string
185
+ toId?: Prisma.StringFilter<"ElementRelation"> | string
186
+ relationType?: Prisma.EnumRelationTypeFilter<"ElementRelation"> | $Enums.RelationType
187
+ metadata?: Prisma.JsonNullableFilter<"ElementRelation">
188
+ clusterId?: Prisma.StringNullableFilter<"ElementRelation"> | string | null
189
+ from?: Prisma.XOR<Prisma.ElementNodeScalarRelationFilter, Prisma.ElementNodeWhereInput>
190
+ to?: Prisma.XOR<Prisma.ElementNodeScalarRelationFilter, Prisma.ElementNodeWhereInput>
191
+ cluster?: Prisma.XOR<Prisma.ClusterNullableScalarRelationFilter, Prisma.ClusterWhereInput> | null
192
+ }
193
+
194
+ export type ElementRelationOrderByWithRelationInput = {
195
+ id?: Prisma.SortOrder
196
+ fromId?: Prisma.SortOrder
197
+ toId?: Prisma.SortOrder
198
+ relationType?: Prisma.SortOrder
199
+ metadata?: Prisma.SortOrderInput | Prisma.SortOrder
200
+ clusterId?: Prisma.SortOrderInput | Prisma.SortOrder
201
+ from?: Prisma.ElementNodeOrderByWithRelationInput
202
+ to?: Prisma.ElementNodeOrderByWithRelationInput
203
+ cluster?: Prisma.ClusterOrderByWithRelationInput
204
+ }
205
+
206
+ export type ElementRelationWhereUniqueInput = Prisma.AtLeast<{
207
+ id?: string
208
+ AND?: Prisma.ElementRelationWhereInput | Prisma.ElementRelationWhereInput[]
209
+ OR?: Prisma.ElementRelationWhereInput[]
210
+ NOT?: Prisma.ElementRelationWhereInput | Prisma.ElementRelationWhereInput[]
211
+ fromId?: Prisma.StringFilter<"ElementRelation"> | string
212
+ toId?: Prisma.StringFilter<"ElementRelation"> | string
213
+ relationType?: Prisma.EnumRelationTypeFilter<"ElementRelation"> | $Enums.RelationType
214
+ metadata?: Prisma.JsonNullableFilter<"ElementRelation">
215
+ clusterId?: Prisma.StringNullableFilter<"ElementRelation"> | string | null
216
+ from?: Prisma.XOR<Prisma.ElementNodeScalarRelationFilter, Prisma.ElementNodeWhereInput>
217
+ to?: Prisma.XOR<Prisma.ElementNodeScalarRelationFilter, Prisma.ElementNodeWhereInput>
218
+ cluster?: Prisma.XOR<Prisma.ClusterNullableScalarRelationFilter, Prisma.ClusterWhereInput> | null
219
+ }, "id" | "id">
220
+
221
+ export type ElementRelationOrderByWithAggregationInput = {
222
+ id?: Prisma.SortOrder
223
+ fromId?: Prisma.SortOrder
224
+ toId?: Prisma.SortOrder
225
+ relationType?: Prisma.SortOrder
226
+ metadata?: Prisma.SortOrderInput | Prisma.SortOrder
227
+ clusterId?: Prisma.SortOrderInput | Prisma.SortOrder
228
+ _count?: Prisma.ElementRelationCountOrderByAggregateInput
229
+ _max?: Prisma.ElementRelationMaxOrderByAggregateInput
230
+ _min?: Prisma.ElementRelationMinOrderByAggregateInput
231
+ }
232
+
233
+ export type ElementRelationScalarWhereWithAggregatesInput = {
234
+ AND?: Prisma.ElementRelationScalarWhereWithAggregatesInput | Prisma.ElementRelationScalarWhereWithAggregatesInput[]
235
+ OR?: Prisma.ElementRelationScalarWhereWithAggregatesInput[]
236
+ NOT?: Prisma.ElementRelationScalarWhereWithAggregatesInput | Prisma.ElementRelationScalarWhereWithAggregatesInput[]
237
+ id?: Prisma.StringWithAggregatesFilter<"ElementRelation"> | string
238
+ fromId?: Prisma.StringWithAggregatesFilter<"ElementRelation"> | string
239
+ toId?: Prisma.StringWithAggregatesFilter<"ElementRelation"> | string
240
+ relationType?: Prisma.EnumRelationTypeWithAggregatesFilter<"ElementRelation"> | $Enums.RelationType
241
+ metadata?: Prisma.JsonNullableWithAggregatesFilter<"ElementRelation">
242
+ clusterId?: Prisma.StringNullableWithAggregatesFilter<"ElementRelation"> | string | null
243
+ }
244
+
245
+ export type ElementRelationCreateInput = {
246
+ id?: string
247
+ relationType: $Enums.RelationType
248
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
249
+ from: Prisma.ElementNodeCreateNestedOneWithoutRelationsFromInput
250
+ to: Prisma.ElementNodeCreateNestedOneWithoutRelationsToInput
251
+ cluster?: Prisma.ClusterCreateNestedOneWithoutElementRelationInput
252
+ }
253
+
254
+ export type ElementRelationUncheckedCreateInput = {
255
+ id?: string
256
+ fromId: string
257
+ toId: string
258
+ relationType: $Enums.RelationType
259
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
260
+ clusterId?: string | null
261
+ }
262
+
263
+ export type ElementRelationUpdateInput = {
264
+ id?: Prisma.StringFieldUpdateOperationsInput | string
265
+ relationType?: Prisma.EnumRelationTypeFieldUpdateOperationsInput | $Enums.RelationType
266
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
267
+ from?: Prisma.ElementNodeUpdateOneRequiredWithoutRelationsFromNestedInput
268
+ to?: Prisma.ElementNodeUpdateOneRequiredWithoutRelationsToNestedInput
269
+ cluster?: Prisma.ClusterUpdateOneWithoutElementRelationNestedInput
270
+ }
271
+
272
+ export type ElementRelationUncheckedUpdateInput = {
273
+ id?: Prisma.StringFieldUpdateOperationsInput | string
274
+ fromId?: Prisma.StringFieldUpdateOperationsInput | string
275
+ toId?: Prisma.StringFieldUpdateOperationsInput | string
276
+ relationType?: Prisma.EnumRelationTypeFieldUpdateOperationsInput | $Enums.RelationType
277
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
278
+ clusterId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
279
+ }
280
+
281
+ export type ElementRelationCreateManyInput = {
282
+ id?: string
283
+ fromId: string
284
+ toId: string
285
+ relationType: $Enums.RelationType
286
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
287
+ clusterId?: string | null
288
+ }
289
+
290
+ export type ElementRelationUpdateManyMutationInput = {
291
+ id?: Prisma.StringFieldUpdateOperationsInput | string
292
+ relationType?: Prisma.EnumRelationTypeFieldUpdateOperationsInput | $Enums.RelationType
293
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
294
+ }
295
+
296
+ export type ElementRelationUncheckedUpdateManyInput = {
297
+ id?: Prisma.StringFieldUpdateOperationsInput | string
298
+ fromId?: Prisma.StringFieldUpdateOperationsInput | string
299
+ toId?: Prisma.StringFieldUpdateOperationsInput | string
300
+ relationType?: Prisma.EnumRelationTypeFieldUpdateOperationsInput | $Enums.RelationType
301
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
302
+ clusterId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
303
+ }
304
+
305
+ export type ElementRelationListRelationFilter = {
306
+ every?: Prisma.ElementRelationWhereInput
307
+ some?: Prisma.ElementRelationWhereInput
308
+ none?: Prisma.ElementRelationWhereInput
309
+ }
310
+
311
+ export type ElementRelationOrderByRelationAggregateInput = {
312
+ _count?: Prisma.SortOrder
313
+ }
314
+
315
+ export type ElementRelationCountOrderByAggregateInput = {
316
+ id?: Prisma.SortOrder
317
+ fromId?: Prisma.SortOrder
318
+ toId?: Prisma.SortOrder
319
+ relationType?: Prisma.SortOrder
320
+ metadata?: Prisma.SortOrder
321
+ clusterId?: Prisma.SortOrder
322
+ }
323
+
324
+ export type ElementRelationMaxOrderByAggregateInput = {
325
+ id?: Prisma.SortOrder
326
+ fromId?: Prisma.SortOrder
327
+ toId?: Prisma.SortOrder
328
+ relationType?: Prisma.SortOrder
329
+ clusterId?: Prisma.SortOrder
330
+ }
331
+
332
+ export type ElementRelationMinOrderByAggregateInput = {
333
+ id?: Prisma.SortOrder
334
+ fromId?: Prisma.SortOrder
335
+ toId?: Prisma.SortOrder
336
+ relationType?: Prisma.SortOrder
337
+ clusterId?: Prisma.SortOrder
338
+ }
339
+
340
+ export type ElementRelationCreateNestedManyWithoutFromInput = {
341
+ create?: Prisma.XOR<Prisma.ElementRelationCreateWithoutFromInput, Prisma.ElementRelationUncheckedCreateWithoutFromInput> | Prisma.ElementRelationCreateWithoutFromInput[] | Prisma.ElementRelationUncheckedCreateWithoutFromInput[]
342
+ connectOrCreate?: Prisma.ElementRelationCreateOrConnectWithoutFromInput | Prisma.ElementRelationCreateOrConnectWithoutFromInput[]
343
+ createMany?: Prisma.ElementRelationCreateManyFromInputEnvelope
344
+ connect?: Prisma.ElementRelationWhereUniqueInput | Prisma.ElementRelationWhereUniqueInput[]
345
+ }
346
+
347
+ export type ElementRelationCreateNestedManyWithoutToInput = {
348
+ create?: Prisma.XOR<Prisma.ElementRelationCreateWithoutToInput, Prisma.ElementRelationUncheckedCreateWithoutToInput> | Prisma.ElementRelationCreateWithoutToInput[] | Prisma.ElementRelationUncheckedCreateWithoutToInput[]
349
+ connectOrCreate?: Prisma.ElementRelationCreateOrConnectWithoutToInput | Prisma.ElementRelationCreateOrConnectWithoutToInput[]
350
+ createMany?: Prisma.ElementRelationCreateManyToInputEnvelope
351
+ connect?: Prisma.ElementRelationWhereUniqueInput | Prisma.ElementRelationWhereUniqueInput[]
352
+ }
353
+
354
+ export type ElementRelationUncheckedCreateNestedManyWithoutFromInput = {
355
+ create?: Prisma.XOR<Prisma.ElementRelationCreateWithoutFromInput, Prisma.ElementRelationUncheckedCreateWithoutFromInput> | Prisma.ElementRelationCreateWithoutFromInput[] | Prisma.ElementRelationUncheckedCreateWithoutFromInput[]
356
+ connectOrCreate?: Prisma.ElementRelationCreateOrConnectWithoutFromInput | Prisma.ElementRelationCreateOrConnectWithoutFromInput[]
357
+ createMany?: Prisma.ElementRelationCreateManyFromInputEnvelope
358
+ connect?: Prisma.ElementRelationWhereUniqueInput | Prisma.ElementRelationWhereUniqueInput[]
359
+ }
360
+
361
+ export type ElementRelationUncheckedCreateNestedManyWithoutToInput = {
362
+ create?: Prisma.XOR<Prisma.ElementRelationCreateWithoutToInput, Prisma.ElementRelationUncheckedCreateWithoutToInput> | Prisma.ElementRelationCreateWithoutToInput[] | Prisma.ElementRelationUncheckedCreateWithoutToInput[]
363
+ connectOrCreate?: Prisma.ElementRelationCreateOrConnectWithoutToInput | Prisma.ElementRelationCreateOrConnectWithoutToInput[]
364
+ createMany?: Prisma.ElementRelationCreateManyToInputEnvelope
365
+ connect?: Prisma.ElementRelationWhereUniqueInput | Prisma.ElementRelationWhereUniqueInput[]
366
+ }
367
+
368
+ export type ElementRelationUpdateManyWithoutFromNestedInput = {
369
+ create?: Prisma.XOR<Prisma.ElementRelationCreateWithoutFromInput, Prisma.ElementRelationUncheckedCreateWithoutFromInput> | Prisma.ElementRelationCreateWithoutFromInput[] | Prisma.ElementRelationUncheckedCreateWithoutFromInput[]
370
+ connectOrCreate?: Prisma.ElementRelationCreateOrConnectWithoutFromInput | Prisma.ElementRelationCreateOrConnectWithoutFromInput[]
371
+ upsert?: Prisma.ElementRelationUpsertWithWhereUniqueWithoutFromInput | Prisma.ElementRelationUpsertWithWhereUniqueWithoutFromInput[]
372
+ createMany?: Prisma.ElementRelationCreateManyFromInputEnvelope
373
+ set?: Prisma.ElementRelationWhereUniqueInput | Prisma.ElementRelationWhereUniqueInput[]
374
+ disconnect?: Prisma.ElementRelationWhereUniqueInput | Prisma.ElementRelationWhereUniqueInput[]
375
+ delete?: Prisma.ElementRelationWhereUniqueInput | Prisma.ElementRelationWhereUniqueInput[]
376
+ connect?: Prisma.ElementRelationWhereUniqueInput | Prisma.ElementRelationWhereUniqueInput[]
377
+ update?: Prisma.ElementRelationUpdateWithWhereUniqueWithoutFromInput | Prisma.ElementRelationUpdateWithWhereUniqueWithoutFromInput[]
378
+ updateMany?: Prisma.ElementRelationUpdateManyWithWhereWithoutFromInput | Prisma.ElementRelationUpdateManyWithWhereWithoutFromInput[]
379
+ deleteMany?: Prisma.ElementRelationScalarWhereInput | Prisma.ElementRelationScalarWhereInput[]
380
+ }
381
+
382
+ export type ElementRelationUpdateManyWithoutToNestedInput = {
383
+ create?: Prisma.XOR<Prisma.ElementRelationCreateWithoutToInput, Prisma.ElementRelationUncheckedCreateWithoutToInput> | Prisma.ElementRelationCreateWithoutToInput[] | Prisma.ElementRelationUncheckedCreateWithoutToInput[]
384
+ connectOrCreate?: Prisma.ElementRelationCreateOrConnectWithoutToInput | Prisma.ElementRelationCreateOrConnectWithoutToInput[]
385
+ upsert?: Prisma.ElementRelationUpsertWithWhereUniqueWithoutToInput | Prisma.ElementRelationUpsertWithWhereUniqueWithoutToInput[]
386
+ createMany?: Prisma.ElementRelationCreateManyToInputEnvelope
387
+ set?: Prisma.ElementRelationWhereUniqueInput | Prisma.ElementRelationWhereUniqueInput[]
388
+ disconnect?: Prisma.ElementRelationWhereUniqueInput | Prisma.ElementRelationWhereUniqueInput[]
389
+ delete?: Prisma.ElementRelationWhereUniqueInput | Prisma.ElementRelationWhereUniqueInput[]
390
+ connect?: Prisma.ElementRelationWhereUniqueInput | Prisma.ElementRelationWhereUniqueInput[]
391
+ update?: Prisma.ElementRelationUpdateWithWhereUniqueWithoutToInput | Prisma.ElementRelationUpdateWithWhereUniqueWithoutToInput[]
392
+ updateMany?: Prisma.ElementRelationUpdateManyWithWhereWithoutToInput | Prisma.ElementRelationUpdateManyWithWhereWithoutToInput[]
393
+ deleteMany?: Prisma.ElementRelationScalarWhereInput | Prisma.ElementRelationScalarWhereInput[]
394
+ }
395
+
396
+ export type ElementRelationUncheckedUpdateManyWithoutFromNestedInput = {
397
+ create?: Prisma.XOR<Prisma.ElementRelationCreateWithoutFromInput, Prisma.ElementRelationUncheckedCreateWithoutFromInput> | Prisma.ElementRelationCreateWithoutFromInput[] | Prisma.ElementRelationUncheckedCreateWithoutFromInput[]
398
+ connectOrCreate?: Prisma.ElementRelationCreateOrConnectWithoutFromInput | Prisma.ElementRelationCreateOrConnectWithoutFromInput[]
399
+ upsert?: Prisma.ElementRelationUpsertWithWhereUniqueWithoutFromInput | Prisma.ElementRelationUpsertWithWhereUniqueWithoutFromInput[]
400
+ createMany?: Prisma.ElementRelationCreateManyFromInputEnvelope
401
+ set?: Prisma.ElementRelationWhereUniqueInput | Prisma.ElementRelationWhereUniqueInput[]
402
+ disconnect?: Prisma.ElementRelationWhereUniqueInput | Prisma.ElementRelationWhereUniqueInput[]
403
+ delete?: Prisma.ElementRelationWhereUniqueInput | Prisma.ElementRelationWhereUniqueInput[]
404
+ connect?: Prisma.ElementRelationWhereUniqueInput | Prisma.ElementRelationWhereUniqueInput[]
405
+ update?: Prisma.ElementRelationUpdateWithWhereUniqueWithoutFromInput | Prisma.ElementRelationUpdateWithWhereUniqueWithoutFromInput[]
406
+ updateMany?: Prisma.ElementRelationUpdateManyWithWhereWithoutFromInput | Prisma.ElementRelationUpdateManyWithWhereWithoutFromInput[]
407
+ deleteMany?: Prisma.ElementRelationScalarWhereInput | Prisma.ElementRelationScalarWhereInput[]
408
+ }
409
+
410
+ export type ElementRelationUncheckedUpdateManyWithoutToNestedInput = {
411
+ create?: Prisma.XOR<Prisma.ElementRelationCreateWithoutToInput, Prisma.ElementRelationUncheckedCreateWithoutToInput> | Prisma.ElementRelationCreateWithoutToInput[] | Prisma.ElementRelationUncheckedCreateWithoutToInput[]
412
+ connectOrCreate?: Prisma.ElementRelationCreateOrConnectWithoutToInput | Prisma.ElementRelationCreateOrConnectWithoutToInput[]
413
+ upsert?: Prisma.ElementRelationUpsertWithWhereUniqueWithoutToInput | Prisma.ElementRelationUpsertWithWhereUniqueWithoutToInput[]
414
+ createMany?: Prisma.ElementRelationCreateManyToInputEnvelope
415
+ set?: Prisma.ElementRelationWhereUniqueInput | Prisma.ElementRelationWhereUniqueInput[]
416
+ disconnect?: Prisma.ElementRelationWhereUniqueInput | Prisma.ElementRelationWhereUniqueInput[]
417
+ delete?: Prisma.ElementRelationWhereUniqueInput | Prisma.ElementRelationWhereUniqueInput[]
418
+ connect?: Prisma.ElementRelationWhereUniqueInput | Prisma.ElementRelationWhereUniqueInput[]
419
+ update?: Prisma.ElementRelationUpdateWithWhereUniqueWithoutToInput | Prisma.ElementRelationUpdateWithWhereUniqueWithoutToInput[]
420
+ updateMany?: Prisma.ElementRelationUpdateManyWithWhereWithoutToInput | Prisma.ElementRelationUpdateManyWithWhereWithoutToInput[]
421
+ deleteMany?: Prisma.ElementRelationScalarWhereInput | Prisma.ElementRelationScalarWhereInput[]
422
+ }
423
+
424
+ export type EnumRelationTypeFieldUpdateOperationsInput = {
425
+ set?: $Enums.RelationType
426
+ }
427
+
428
+ export type ElementRelationCreateNestedManyWithoutClusterInput = {
429
+ create?: Prisma.XOR<Prisma.ElementRelationCreateWithoutClusterInput, Prisma.ElementRelationUncheckedCreateWithoutClusterInput> | Prisma.ElementRelationCreateWithoutClusterInput[] | Prisma.ElementRelationUncheckedCreateWithoutClusterInput[]
430
+ connectOrCreate?: Prisma.ElementRelationCreateOrConnectWithoutClusterInput | Prisma.ElementRelationCreateOrConnectWithoutClusterInput[]
431
+ createMany?: Prisma.ElementRelationCreateManyClusterInputEnvelope
432
+ connect?: Prisma.ElementRelationWhereUniqueInput | Prisma.ElementRelationWhereUniqueInput[]
433
+ }
434
+
435
+ export type ElementRelationUncheckedCreateNestedManyWithoutClusterInput = {
436
+ create?: Prisma.XOR<Prisma.ElementRelationCreateWithoutClusterInput, Prisma.ElementRelationUncheckedCreateWithoutClusterInput> | Prisma.ElementRelationCreateWithoutClusterInput[] | Prisma.ElementRelationUncheckedCreateWithoutClusterInput[]
437
+ connectOrCreate?: Prisma.ElementRelationCreateOrConnectWithoutClusterInput | Prisma.ElementRelationCreateOrConnectWithoutClusterInput[]
438
+ createMany?: Prisma.ElementRelationCreateManyClusterInputEnvelope
439
+ connect?: Prisma.ElementRelationWhereUniqueInput | Prisma.ElementRelationWhereUniqueInput[]
440
+ }
441
+
442
+ export type ElementRelationUpdateManyWithoutClusterNestedInput = {
443
+ create?: Prisma.XOR<Prisma.ElementRelationCreateWithoutClusterInput, Prisma.ElementRelationUncheckedCreateWithoutClusterInput> | Prisma.ElementRelationCreateWithoutClusterInput[] | Prisma.ElementRelationUncheckedCreateWithoutClusterInput[]
444
+ connectOrCreate?: Prisma.ElementRelationCreateOrConnectWithoutClusterInput | Prisma.ElementRelationCreateOrConnectWithoutClusterInput[]
445
+ upsert?: Prisma.ElementRelationUpsertWithWhereUniqueWithoutClusterInput | Prisma.ElementRelationUpsertWithWhereUniqueWithoutClusterInput[]
446
+ createMany?: Prisma.ElementRelationCreateManyClusterInputEnvelope
447
+ set?: Prisma.ElementRelationWhereUniqueInput | Prisma.ElementRelationWhereUniqueInput[]
448
+ disconnect?: Prisma.ElementRelationWhereUniqueInput | Prisma.ElementRelationWhereUniqueInput[]
449
+ delete?: Prisma.ElementRelationWhereUniqueInput | Prisma.ElementRelationWhereUniqueInput[]
450
+ connect?: Prisma.ElementRelationWhereUniqueInput | Prisma.ElementRelationWhereUniqueInput[]
451
+ update?: Prisma.ElementRelationUpdateWithWhereUniqueWithoutClusterInput | Prisma.ElementRelationUpdateWithWhereUniqueWithoutClusterInput[]
452
+ updateMany?: Prisma.ElementRelationUpdateManyWithWhereWithoutClusterInput | Prisma.ElementRelationUpdateManyWithWhereWithoutClusterInput[]
453
+ deleteMany?: Prisma.ElementRelationScalarWhereInput | Prisma.ElementRelationScalarWhereInput[]
454
+ }
455
+
456
+ export type ElementRelationUncheckedUpdateManyWithoutClusterNestedInput = {
457
+ create?: Prisma.XOR<Prisma.ElementRelationCreateWithoutClusterInput, Prisma.ElementRelationUncheckedCreateWithoutClusterInput> | Prisma.ElementRelationCreateWithoutClusterInput[] | Prisma.ElementRelationUncheckedCreateWithoutClusterInput[]
458
+ connectOrCreate?: Prisma.ElementRelationCreateOrConnectWithoutClusterInput | Prisma.ElementRelationCreateOrConnectWithoutClusterInput[]
459
+ upsert?: Prisma.ElementRelationUpsertWithWhereUniqueWithoutClusterInput | Prisma.ElementRelationUpsertWithWhereUniqueWithoutClusterInput[]
460
+ createMany?: Prisma.ElementRelationCreateManyClusterInputEnvelope
461
+ set?: Prisma.ElementRelationWhereUniqueInput | Prisma.ElementRelationWhereUniqueInput[]
462
+ disconnect?: Prisma.ElementRelationWhereUniqueInput | Prisma.ElementRelationWhereUniqueInput[]
463
+ delete?: Prisma.ElementRelationWhereUniqueInput | Prisma.ElementRelationWhereUniqueInput[]
464
+ connect?: Prisma.ElementRelationWhereUniqueInput | Prisma.ElementRelationWhereUniqueInput[]
465
+ update?: Prisma.ElementRelationUpdateWithWhereUniqueWithoutClusterInput | Prisma.ElementRelationUpdateWithWhereUniqueWithoutClusterInput[]
466
+ updateMany?: Prisma.ElementRelationUpdateManyWithWhereWithoutClusterInput | Prisma.ElementRelationUpdateManyWithWhereWithoutClusterInput[]
467
+ deleteMany?: Prisma.ElementRelationScalarWhereInput | Prisma.ElementRelationScalarWhereInput[]
468
+ }
469
+
470
+ export type ElementRelationCreateWithoutFromInput = {
471
+ id?: string
472
+ relationType: $Enums.RelationType
473
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
474
+ to: Prisma.ElementNodeCreateNestedOneWithoutRelationsToInput
475
+ cluster?: Prisma.ClusterCreateNestedOneWithoutElementRelationInput
476
+ }
477
+
478
+ export type ElementRelationUncheckedCreateWithoutFromInput = {
479
+ id?: string
480
+ toId: string
481
+ relationType: $Enums.RelationType
482
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
483
+ clusterId?: string | null
484
+ }
485
+
486
+ export type ElementRelationCreateOrConnectWithoutFromInput = {
487
+ where: Prisma.ElementRelationWhereUniqueInput
488
+ create: Prisma.XOR<Prisma.ElementRelationCreateWithoutFromInput, Prisma.ElementRelationUncheckedCreateWithoutFromInput>
489
+ }
490
+
491
+ export type ElementRelationCreateManyFromInputEnvelope = {
492
+ data: Prisma.ElementRelationCreateManyFromInput | Prisma.ElementRelationCreateManyFromInput[]
493
+ skipDuplicates?: boolean
494
+ }
495
+
496
+ export type ElementRelationCreateWithoutToInput = {
497
+ id?: string
498
+ relationType: $Enums.RelationType
499
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
500
+ from: Prisma.ElementNodeCreateNestedOneWithoutRelationsFromInput
501
+ cluster?: Prisma.ClusterCreateNestedOneWithoutElementRelationInput
502
+ }
503
+
504
+ export type ElementRelationUncheckedCreateWithoutToInput = {
505
+ id?: string
506
+ fromId: string
507
+ relationType: $Enums.RelationType
508
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
509
+ clusterId?: string | null
510
+ }
511
+
512
+ export type ElementRelationCreateOrConnectWithoutToInput = {
513
+ where: Prisma.ElementRelationWhereUniqueInput
514
+ create: Prisma.XOR<Prisma.ElementRelationCreateWithoutToInput, Prisma.ElementRelationUncheckedCreateWithoutToInput>
515
+ }
516
+
517
+ export type ElementRelationCreateManyToInputEnvelope = {
518
+ data: Prisma.ElementRelationCreateManyToInput | Prisma.ElementRelationCreateManyToInput[]
519
+ skipDuplicates?: boolean
520
+ }
521
+
522
+ export type ElementRelationUpsertWithWhereUniqueWithoutFromInput = {
523
+ where: Prisma.ElementRelationWhereUniqueInput
524
+ update: Prisma.XOR<Prisma.ElementRelationUpdateWithoutFromInput, Prisma.ElementRelationUncheckedUpdateWithoutFromInput>
525
+ create: Prisma.XOR<Prisma.ElementRelationCreateWithoutFromInput, Prisma.ElementRelationUncheckedCreateWithoutFromInput>
526
+ }
527
+
528
+ export type ElementRelationUpdateWithWhereUniqueWithoutFromInput = {
529
+ where: Prisma.ElementRelationWhereUniqueInput
530
+ data: Prisma.XOR<Prisma.ElementRelationUpdateWithoutFromInput, Prisma.ElementRelationUncheckedUpdateWithoutFromInput>
531
+ }
532
+
533
+ export type ElementRelationUpdateManyWithWhereWithoutFromInput = {
534
+ where: Prisma.ElementRelationScalarWhereInput
535
+ data: Prisma.XOR<Prisma.ElementRelationUpdateManyMutationInput, Prisma.ElementRelationUncheckedUpdateManyWithoutFromInput>
536
+ }
537
+
538
+ export type ElementRelationScalarWhereInput = {
539
+ AND?: Prisma.ElementRelationScalarWhereInput | Prisma.ElementRelationScalarWhereInput[]
540
+ OR?: Prisma.ElementRelationScalarWhereInput[]
541
+ NOT?: Prisma.ElementRelationScalarWhereInput | Prisma.ElementRelationScalarWhereInput[]
542
+ id?: Prisma.StringFilter<"ElementRelation"> | string
543
+ fromId?: Prisma.StringFilter<"ElementRelation"> | string
544
+ toId?: Prisma.StringFilter<"ElementRelation"> | string
545
+ relationType?: Prisma.EnumRelationTypeFilter<"ElementRelation"> | $Enums.RelationType
546
+ metadata?: Prisma.JsonNullableFilter<"ElementRelation">
547
+ clusterId?: Prisma.StringNullableFilter<"ElementRelation"> | string | null
548
+ }
549
+
550
+ export type ElementRelationUpsertWithWhereUniqueWithoutToInput = {
551
+ where: Prisma.ElementRelationWhereUniqueInput
552
+ update: Prisma.XOR<Prisma.ElementRelationUpdateWithoutToInput, Prisma.ElementRelationUncheckedUpdateWithoutToInput>
553
+ create: Prisma.XOR<Prisma.ElementRelationCreateWithoutToInput, Prisma.ElementRelationUncheckedCreateWithoutToInput>
554
+ }
555
+
556
+ export type ElementRelationUpdateWithWhereUniqueWithoutToInput = {
557
+ where: Prisma.ElementRelationWhereUniqueInput
558
+ data: Prisma.XOR<Prisma.ElementRelationUpdateWithoutToInput, Prisma.ElementRelationUncheckedUpdateWithoutToInput>
559
+ }
560
+
561
+ export type ElementRelationUpdateManyWithWhereWithoutToInput = {
562
+ where: Prisma.ElementRelationScalarWhereInput
563
+ data: Prisma.XOR<Prisma.ElementRelationUpdateManyMutationInput, Prisma.ElementRelationUncheckedUpdateManyWithoutToInput>
564
+ }
565
+
566
+ export type ElementRelationCreateWithoutClusterInput = {
567
+ id?: string
568
+ relationType: $Enums.RelationType
569
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
570
+ from: Prisma.ElementNodeCreateNestedOneWithoutRelationsFromInput
571
+ to: Prisma.ElementNodeCreateNestedOneWithoutRelationsToInput
572
+ }
573
+
574
+ export type ElementRelationUncheckedCreateWithoutClusterInput = {
575
+ id?: string
576
+ fromId: string
577
+ toId: string
578
+ relationType: $Enums.RelationType
579
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
580
+ }
581
+
582
+ export type ElementRelationCreateOrConnectWithoutClusterInput = {
583
+ where: Prisma.ElementRelationWhereUniqueInput
584
+ create: Prisma.XOR<Prisma.ElementRelationCreateWithoutClusterInput, Prisma.ElementRelationUncheckedCreateWithoutClusterInput>
585
+ }
586
+
587
+ export type ElementRelationCreateManyClusterInputEnvelope = {
588
+ data: Prisma.ElementRelationCreateManyClusterInput | Prisma.ElementRelationCreateManyClusterInput[]
589
+ skipDuplicates?: boolean
590
+ }
591
+
592
+ export type ElementRelationUpsertWithWhereUniqueWithoutClusterInput = {
593
+ where: Prisma.ElementRelationWhereUniqueInput
594
+ update: Prisma.XOR<Prisma.ElementRelationUpdateWithoutClusterInput, Prisma.ElementRelationUncheckedUpdateWithoutClusterInput>
595
+ create: Prisma.XOR<Prisma.ElementRelationCreateWithoutClusterInput, Prisma.ElementRelationUncheckedCreateWithoutClusterInput>
596
+ }
597
+
598
+ export type ElementRelationUpdateWithWhereUniqueWithoutClusterInput = {
599
+ where: Prisma.ElementRelationWhereUniqueInput
600
+ data: Prisma.XOR<Prisma.ElementRelationUpdateWithoutClusterInput, Prisma.ElementRelationUncheckedUpdateWithoutClusterInput>
601
+ }
602
+
603
+ export type ElementRelationUpdateManyWithWhereWithoutClusterInput = {
604
+ where: Prisma.ElementRelationScalarWhereInput
605
+ data: Prisma.XOR<Prisma.ElementRelationUpdateManyMutationInput, Prisma.ElementRelationUncheckedUpdateManyWithoutClusterInput>
606
+ }
607
+
608
+ export type ElementRelationCreateManyFromInput = {
609
+ id?: string
610
+ toId: string
611
+ relationType: $Enums.RelationType
612
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
613
+ clusterId?: string | null
614
+ }
615
+
616
+ export type ElementRelationCreateManyToInput = {
617
+ id?: string
618
+ fromId: string
619
+ relationType: $Enums.RelationType
620
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
621
+ clusterId?: string | null
622
+ }
623
+
624
+ export type ElementRelationUpdateWithoutFromInput = {
625
+ id?: Prisma.StringFieldUpdateOperationsInput | string
626
+ relationType?: Prisma.EnumRelationTypeFieldUpdateOperationsInput | $Enums.RelationType
627
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
628
+ to?: Prisma.ElementNodeUpdateOneRequiredWithoutRelationsToNestedInput
629
+ cluster?: Prisma.ClusterUpdateOneWithoutElementRelationNestedInput
630
+ }
631
+
632
+ export type ElementRelationUncheckedUpdateWithoutFromInput = {
633
+ id?: Prisma.StringFieldUpdateOperationsInput | string
634
+ toId?: Prisma.StringFieldUpdateOperationsInput | string
635
+ relationType?: Prisma.EnumRelationTypeFieldUpdateOperationsInput | $Enums.RelationType
636
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
637
+ clusterId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
638
+ }
639
+
640
+ export type ElementRelationUncheckedUpdateManyWithoutFromInput = {
641
+ id?: Prisma.StringFieldUpdateOperationsInput | string
642
+ toId?: Prisma.StringFieldUpdateOperationsInput | string
643
+ relationType?: Prisma.EnumRelationTypeFieldUpdateOperationsInput | $Enums.RelationType
644
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
645
+ clusterId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
646
+ }
647
+
648
+ export type ElementRelationUpdateWithoutToInput = {
649
+ id?: Prisma.StringFieldUpdateOperationsInput | string
650
+ relationType?: Prisma.EnumRelationTypeFieldUpdateOperationsInput | $Enums.RelationType
651
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
652
+ from?: Prisma.ElementNodeUpdateOneRequiredWithoutRelationsFromNestedInput
653
+ cluster?: Prisma.ClusterUpdateOneWithoutElementRelationNestedInput
654
+ }
655
+
656
+ export type ElementRelationUncheckedUpdateWithoutToInput = {
657
+ id?: Prisma.StringFieldUpdateOperationsInput | string
658
+ fromId?: Prisma.StringFieldUpdateOperationsInput | string
659
+ relationType?: Prisma.EnumRelationTypeFieldUpdateOperationsInput | $Enums.RelationType
660
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
661
+ clusterId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
662
+ }
663
+
664
+ export type ElementRelationUncheckedUpdateManyWithoutToInput = {
665
+ id?: Prisma.StringFieldUpdateOperationsInput | string
666
+ fromId?: Prisma.StringFieldUpdateOperationsInput | string
667
+ relationType?: Prisma.EnumRelationTypeFieldUpdateOperationsInput | $Enums.RelationType
668
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
669
+ clusterId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
670
+ }
671
+
672
+ export type ElementRelationCreateManyClusterInput = {
673
+ id?: string
674
+ fromId: string
675
+ toId: string
676
+ relationType: $Enums.RelationType
677
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
678
+ }
679
+
680
+ export type ElementRelationUpdateWithoutClusterInput = {
681
+ id?: Prisma.StringFieldUpdateOperationsInput | string
682
+ relationType?: Prisma.EnumRelationTypeFieldUpdateOperationsInput | $Enums.RelationType
683
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
684
+ from?: Prisma.ElementNodeUpdateOneRequiredWithoutRelationsFromNestedInput
685
+ to?: Prisma.ElementNodeUpdateOneRequiredWithoutRelationsToNestedInput
686
+ }
687
+
688
+ export type ElementRelationUncheckedUpdateWithoutClusterInput = {
689
+ id?: Prisma.StringFieldUpdateOperationsInput | string
690
+ fromId?: Prisma.StringFieldUpdateOperationsInput | string
691
+ toId?: Prisma.StringFieldUpdateOperationsInput | string
692
+ relationType?: Prisma.EnumRelationTypeFieldUpdateOperationsInput | $Enums.RelationType
693
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
694
+ }
695
+
696
+ export type ElementRelationUncheckedUpdateManyWithoutClusterInput = {
697
+ id?: Prisma.StringFieldUpdateOperationsInput | string
698
+ fromId?: Prisma.StringFieldUpdateOperationsInput | string
699
+ toId?: Prisma.StringFieldUpdateOperationsInput | string
700
+ relationType?: Prisma.EnumRelationTypeFieldUpdateOperationsInput | $Enums.RelationType
701
+ metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
702
+ }
703
+
704
+
705
+
706
+ export type ElementRelationSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
707
+ id?: boolean
708
+ fromId?: boolean
709
+ toId?: boolean
710
+ relationType?: boolean
711
+ metadata?: boolean
712
+ clusterId?: boolean
713
+ from?: boolean | Prisma.ElementNodeDefaultArgs<ExtArgs>
714
+ to?: boolean | Prisma.ElementNodeDefaultArgs<ExtArgs>
715
+ cluster?: boolean | Prisma.ElementRelation$clusterArgs<ExtArgs>
716
+ }, ExtArgs["result"]["elementRelation"]>
717
+
718
+ export type ElementRelationSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
719
+ id?: boolean
720
+ fromId?: boolean
721
+ toId?: boolean
722
+ relationType?: boolean
723
+ metadata?: boolean
724
+ clusterId?: boolean
725
+ from?: boolean | Prisma.ElementNodeDefaultArgs<ExtArgs>
726
+ to?: boolean | Prisma.ElementNodeDefaultArgs<ExtArgs>
727
+ cluster?: boolean | Prisma.ElementRelation$clusterArgs<ExtArgs>
728
+ }, ExtArgs["result"]["elementRelation"]>
729
+
730
+ export type ElementRelationSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
731
+ id?: boolean
732
+ fromId?: boolean
733
+ toId?: boolean
734
+ relationType?: boolean
735
+ metadata?: boolean
736
+ clusterId?: boolean
737
+ from?: boolean | Prisma.ElementNodeDefaultArgs<ExtArgs>
738
+ to?: boolean | Prisma.ElementNodeDefaultArgs<ExtArgs>
739
+ cluster?: boolean | Prisma.ElementRelation$clusterArgs<ExtArgs>
740
+ }, ExtArgs["result"]["elementRelation"]>
741
+
742
+ export type ElementRelationSelectScalar = {
743
+ id?: boolean
744
+ fromId?: boolean
745
+ toId?: boolean
746
+ relationType?: boolean
747
+ metadata?: boolean
748
+ clusterId?: boolean
749
+ }
750
+
751
+ export type ElementRelationOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "fromId" | "toId" | "relationType" | "metadata" | "clusterId", ExtArgs["result"]["elementRelation"]>
752
+ export type ElementRelationInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
753
+ from?: boolean | Prisma.ElementNodeDefaultArgs<ExtArgs>
754
+ to?: boolean | Prisma.ElementNodeDefaultArgs<ExtArgs>
755
+ cluster?: boolean | Prisma.ElementRelation$clusterArgs<ExtArgs>
756
+ }
757
+ export type ElementRelationIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
758
+ from?: boolean | Prisma.ElementNodeDefaultArgs<ExtArgs>
759
+ to?: boolean | Prisma.ElementNodeDefaultArgs<ExtArgs>
760
+ cluster?: boolean | Prisma.ElementRelation$clusterArgs<ExtArgs>
761
+ }
762
+ export type ElementRelationIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
763
+ from?: boolean | Prisma.ElementNodeDefaultArgs<ExtArgs>
764
+ to?: boolean | Prisma.ElementNodeDefaultArgs<ExtArgs>
765
+ cluster?: boolean | Prisma.ElementRelation$clusterArgs<ExtArgs>
766
+ }
767
+
768
+ export type $ElementRelationPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
769
+ name: "ElementRelation"
770
+ objects: {
771
+ from: Prisma.$ElementNodePayload<ExtArgs>
772
+ to: Prisma.$ElementNodePayload<ExtArgs>
773
+ cluster: Prisma.$ClusterPayload<ExtArgs> | null
774
+ }
775
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
776
+ id: string
777
+ fromId: string
778
+ toId: string
779
+ relationType: $Enums.RelationType
780
+ metadata: runtime.JsonValue | null
781
+ clusterId: string | null
782
+ }, ExtArgs["result"]["elementRelation"]>
783
+ composites: {}
784
+ }
785
+
786
+ export type ElementRelationGetPayload<S extends boolean | null | undefined | ElementRelationDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ElementRelationPayload, S>
787
+
788
+ export type ElementRelationCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
789
+ Omit<ElementRelationFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
790
+ select?: ElementRelationCountAggregateInputType | true
791
+ }
792
+
793
+ export interface ElementRelationDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
794
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ElementRelation'], meta: { name: 'ElementRelation' } }
795
+ /**
796
+ * Find zero or one ElementRelation that matches the filter.
797
+ * @param {ElementRelationFindUniqueArgs} args - Arguments to find a ElementRelation
798
+ * @example
799
+ * // Get one ElementRelation
800
+ * const elementRelation = await prisma.elementRelation.findUnique({
801
+ * where: {
802
+ * // ... provide filter here
803
+ * }
804
+ * })
805
+ */
806
+ findUnique<T extends ElementRelationFindUniqueArgs>(args: Prisma.SelectSubset<T, ElementRelationFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ElementRelationClient<runtime.Types.Result.GetResult<Prisma.$ElementRelationPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
807
+
808
+ /**
809
+ * Find one ElementRelation that matches the filter or throw an error with `error.code='P2025'`
810
+ * if no matches were found.
811
+ * @param {ElementRelationFindUniqueOrThrowArgs} args - Arguments to find a ElementRelation
812
+ * @example
813
+ * // Get one ElementRelation
814
+ * const elementRelation = await prisma.elementRelation.findUniqueOrThrow({
815
+ * where: {
816
+ * // ... provide filter here
817
+ * }
818
+ * })
819
+ */
820
+ findUniqueOrThrow<T extends ElementRelationFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ElementRelationFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ElementRelationClient<runtime.Types.Result.GetResult<Prisma.$ElementRelationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
821
+
822
+ /**
823
+ * Find the first ElementRelation that matches the filter.
824
+ * Note, that providing `undefined` is treated as the value not being there.
825
+ * Read more here: https://pris.ly/d/null-undefined
826
+ * @param {ElementRelationFindFirstArgs} args - Arguments to find a ElementRelation
827
+ * @example
828
+ * // Get one ElementRelation
829
+ * const elementRelation = await prisma.elementRelation.findFirst({
830
+ * where: {
831
+ * // ... provide filter here
832
+ * }
833
+ * })
834
+ */
835
+ findFirst<T extends ElementRelationFindFirstArgs>(args?: Prisma.SelectSubset<T, ElementRelationFindFirstArgs<ExtArgs>>): Prisma.Prisma__ElementRelationClient<runtime.Types.Result.GetResult<Prisma.$ElementRelationPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
836
+
837
+ /**
838
+ * Find the first ElementRelation that matches the filter or
839
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
840
+ * Note, that providing `undefined` is treated as the value not being there.
841
+ * Read more here: https://pris.ly/d/null-undefined
842
+ * @param {ElementRelationFindFirstOrThrowArgs} args - Arguments to find a ElementRelation
843
+ * @example
844
+ * // Get one ElementRelation
845
+ * const elementRelation = await prisma.elementRelation.findFirstOrThrow({
846
+ * where: {
847
+ * // ... provide filter here
848
+ * }
849
+ * })
850
+ */
851
+ findFirstOrThrow<T extends ElementRelationFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ElementRelationFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ElementRelationClient<runtime.Types.Result.GetResult<Prisma.$ElementRelationPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
852
+
853
+ /**
854
+ * Find zero or more ElementRelations that matches the filter.
855
+ * Note, that providing `undefined` is treated as the value not being there.
856
+ * Read more here: https://pris.ly/d/null-undefined
857
+ * @param {ElementRelationFindManyArgs} args - Arguments to filter and select certain fields only.
858
+ * @example
859
+ * // Get all ElementRelations
860
+ * const elementRelations = await prisma.elementRelation.findMany()
861
+ *
862
+ * // Get first 10 ElementRelations
863
+ * const elementRelations = await prisma.elementRelation.findMany({ take: 10 })
864
+ *
865
+ * // Only select the `id`
866
+ * const elementRelationWithIdOnly = await prisma.elementRelation.findMany({ select: { id: true } })
867
+ *
868
+ */
869
+ findMany<T extends ElementRelationFindManyArgs>(args?: Prisma.SelectSubset<T, ElementRelationFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ElementRelationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
870
+
871
+ /**
872
+ * Create a ElementRelation.
873
+ * @param {ElementRelationCreateArgs} args - Arguments to create a ElementRelation.
874
+ * @example
875
+ * // Create one ElementRelation
876
+ * const ElementRelation = await prisma.elementRelation.create({
877
+ * data: {
878
+ * // ... data to create a ElementRelation
879
+ * }
880
+ * })
881
+ *
882
+ */
883
+ create<T extends ElementRelationCreateArgs>(args: Prisma.SelectSubset<T, ElementRelationCreateArgs<ExtArgs>>): Prisma.Prisma__ElementRelationClient<runtime.Types.Result.GetResult<Prisma.$ElementRelationPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
884
+
885
+ /**
886
+ * Create many ElementRelations.
887
+ * @param {ElementRelationCreateManyArgs} args - Arguments to create many ElementRelations.
888
+ * @example
889
+ * // Create many ElementRelations
890
+ * const elementRelation = await prisma.elementRelation.createMany({
891
+ * data: [
892
+ * // ... provide data here
893
+ * ]
894
+ * })
895
+ *
896
+ */
897
+ createMany<T extends ElementRelationCreateManyArgs>(args?: Prisma.SelectSubset<T, ElementRelationCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
898
+
899
+ /**
900
+ * Create many ElementRelations and returns the data saved in the database.
901
+ * @param {ElementRelationCreateManyAndReturnArgs} args - Arguments to create many ElementRelations.
902
+ * @example
903
+ * // Create many ElementRelations
904
+ * const elementRelation = await prisma.elementRelation.createManyAndReturn({
905
+ * data: [
906
+ * // ... provide data here
907
+ * ]
908
+ * })
909
+ *
910
+ * // Create many ElementRelations and only return the `id`
911
+ * const elementRelationWithIdOnly = await prisma.elementRelation.createManyAndReturn({
912
+ * select: { id: true },
913
+ * data: [
914
+ * // ... provide data here
915
+ * ]
916
+ * })
917
+ * Note, that providing `undefined` is treated as the value not being there.
918
+ * Read more here: https://pris.ly/d/null-undefined
919
+ *
920
+ */
921
+ createManyAndReturn<T extends ElementRelationCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ElementRelationCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ElementRelationPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
922
+
923
+ /**
924
+ * Delete a ElementRelation.
925
+ * @param {ElementRelationDeleteArgs} args - Arguments to delete one ElementRelation.
926
+ * @example
927
+ * // Delete one ElementRelation
928
+ * const ElementRelation = await prisma.elementRelation.delete({
929
+ * where: {
930
+ * // ... filter to delete one ElementRelation
931
+ * }
932
+ * })
933
+ *
934
+ */
935
+ delete<T extends ElementRelationDeleteArgs>(args: Prisma.SelectSubset<T, ElementRelationDeleteArgs<ExtArgs>>): Prisma.Prisma__ElementRelationClient<runtime.Types.Result.GetResult<Prisma.$ElementRelationPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
936
+
937
+ /**
938
+ * Update one ElementRelation.
939
+ * @param {ElementRelationUpdateArgs} args - Arguments to update one ElementRelation.
940
+ * @example
941
+ * // Update one ElementRelation
942
+ * const elementRelation = await prisma.elementRelation.update({
943
+ * where: {
944
+ * // ... provide filter here
945
+ * },
946
+ * data: {
947
+ * // ... provide data here
948
+ * }
949
+ * })
950
+ *
951
+ */
952
+ update<T extends ElementRelationUpdateArgs>(args: Prisma.SelectSubset<T, ElementRelationUpdateArgs<ExtArgs>>): Prisma.Prisma__ElementRelationClient<runtime.Types.Result.GetResult<Prisma.$ElementRelationPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
953
+
954
+ /**
955
+ * Delete zero or more ElementRelations.
956
+ * @param {ElementRelationDeleteManyArgs} args - Arguments to filter ElementRelations to delete.
957
+ * @example
958
+ * // Delete a few ElementRelations
959
+ * const { count } = await prisma.elementRelation.deleteMany({
960
+ * where: {
961
+ * // ... provide filter here
962
+ * }
963
+ * })
964
+ *
965
+ */
966
+ deleteMany<T extends ElementRelationDeleteManyArgs>(args?: Prisma.SelectSubset<T, ElementRelationDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
967
+
968
+ /**
969
+ * Update zero or more ElementRelations.
970
+ * Note, that providing `undefined` is treated as the value not being there.
971
+ * Read more here: https://pris.ly/d/null-undefined
972
+ * @param {ElementRelationUpdateManyArgs} args - Arguments to update one or more rows.
973
+ * @example
974
+ * // Update many ElementRelations
975
+ * const elementRelation = await prisma.elementRelation.updateMany({
976
+ * where: {
977
+ * // ... provide filter here
978
+ * },
979
+ * data: {
980
+ * // ... provide data here
981
+ * }
982
+ * })
983
+ *
984
+ */
985
+ updateMany<T extends ElementRelationUpdateManyArgs>(args: Prisma.SelectSubset<T, ElementRelationUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
986
+
987
+ /**
988
+ * Update zero or more ElementRelations and returns the data updated in the database.
989
+ * @param {ElementRelationUpdateManyAndReturnArgs} args - Arguments to update many ElementRelations.
990
+ * @example
991
+ * // Update many ElementRelations
992
+ * const elementRelation = await prisma.elementRelation.updateManyAndReturn({
993
+ * where: {
994
+ * // ... provide filter here
995
+ * },
996
+ * data: [
997
+ * // ... provide data here
998
+ * ]
999
+ * })
1000
+ *
1001
+ * // Update zero or more ElementRelations and only return the `id`
1002
+ * const elementRelationWithIdOnly = await prisma.elementRelation.updateManyAndReturn({
1003
+ * select: { id: true },
1004
+ * where: {
1005
+ * // ... provide filter here
1006
+ * },
1007
+ * data: [
1008
+ * // ... provide data here
1009
+ * ]
1010
+ * })
1011
+ * Note, that providing `undefined` is treated as the value not being there.
1012
+ * Read more here: https://pris.ly/d/null-undefined
1013
+ *
1014
+ */
1015
+ updateManyAndReturn<T extends ElementRelationUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ElementRelationUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ElementRelationPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
1016
+
1017
+ /**
1018
+ * Create or update one ElementRelation.
1019
+ * @param {ElementRelationUpsertArgs} args - Arguments to update or create a ElementRelation.
1020
+ * @example
1021
+ * // Update or create a ElementRelation
1022
+ * const elementRelation = await prisma.elementRelation.upsert({
1023
+ * create: {
1024
+ * // ... data to create a ElementRelation
1025
+ * },
1026
+ * update: {
1027
+ * // ... in case it already exists, update
1028
+ * },
1029
+ * where: {
1030
+ * // ... the filter for the ElementRelation we want to update
1031
+ * }
1032
+ * })
1033
+ */
1034
+ upsert<T extends ElementRelationUpsertArgs>(args: Prisma.SelectSubset<T, ElementRelationUpsertArgs<ExtArgs>>): Prisma.Prisma__ElementRelationClient<runtime.Types.Result.GetResult<Prisma.$ElementRelationPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1035
+
1036
+
1037
+ /**
1038
+ * Count the number of ElementRelations.
1039
+ * Note, that providing `undefined` is treated as the value not being there.
1040
+ * Read more here: https://pris.ly/d/null-undefined
1041
+ * @param {ElementRelationCountArgs} args - Arguments to filter ElementRelations to count.
1042
+ * @example
1043
+ * // Count the number of ElementRelations
1044
+ * const count = await prisma.elementRelation.count({
1045
+ * where: {
1046
+ * // ... the filter for the ElementRelations we want to count
1047
+ * }
1048
+ * })
1049
+ **/
1050
+ count<T extends ElementRelationCountArgs>(
1051
+ args?: Prisma.Subset<T, ElementRelationCountArgs>,
1052
+ ): Prisma.PrismaPromise<
1053
+ T extends runtime.Types.Utils.Record<'select', any>
1054
+ ? T['select'] extends true
1055
+ ? number
1056
+ : Prisma.GetScalarType<T['select'], ElementRelationCountAggregateOutputType>
1057
+ : number
1058
+ >
1059
+
1060
+ /**
1061
+ * Allows you to perform aggregations operations on a ElementRelation.
1062
+ * Note, that providing `undefined` is treated as the value not being there.
1063
+ * Read more here: https://pris.ly/d/null-undefined
1064
+ * @param {ElementRelationAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1065
+ * @example
1066
+ * // Ordered by age ascending
1067
+ * // Where email contains prisma.io
1068
+ * // Limited to the 10 users
1069
+ * const aggregations = await prisma.user.aggregate({
1070
+ * _avg: {
1071
+ * age: true,
1072
+ * },
1073
+ * where: {
1074
+ * email: {
1075
+ * contains: "prisma.io",
1076
+ * },
1077
+ * },
1078
+ * orderBy: {
1079
+ * age: "asc",
1080
+ * },
1081
+ * take: 10,
1082
+ * })
1083
+ **/
1084
+ aggregate<T extends ElementRelationAggregateArgs>(args: Prisma.Subset<T, ElementRelationAggregateArgs>): Prisma.PrismaPromise<GetElementRelationAggregateType<T>>
1085
+
1086
+ /**
1087
+ * Group by ElementRelation.
1088
+ * Note, that providing `undefined` is treated as the value not being there.
1089
+ * Read more here: https://pris.ly/d/null-undefined
1090
+ * @param {ElementRelationGroupByArgs} args - Group by arguments.
1091
+ * @example
1092
+ * // Group by city, order by createdAt, get count
1093
+ * const result = await prisma.user.groupBy({
1094
+ * by: ['city', 'createdAt'],
1095
+ * orderBy: {
1096
+ * createdAt: true
1097
+ * },
1098
+ * _count: {
1099
+ * _all: true
1100
+ * },
1101
+ * })
1102
+ *
1103
+ **/
1104
+ groupBy<
1105
+ T extends ElementRelationGroupByArgs,
1106
+ HasSelectOrTake extends Prisma.Or<
1107
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
1108
+ Prisma.Extends<'take', Prisma.Keys<T>>
1109
+ >,
1110
+ OrderByArg extends Prisma.True extends HasSelectOrTake
1111
+ ? { orderBy: ElementRelationGroupByArgs['orderBy'] }
1112
+ : { orderBy?: ElementRelationGroupByArgs['orderBy'] },
1113
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1114
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1115
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
1116
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
1117
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
1118
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1119
+ InputErrors extends ByEmpty extends Prisma.True
1120
+ ? `Error: "by" must not be empty.`
1121
+ : HavingValid extends Prisma.False
1122
+ ? {
1123
+ [P in HavingFields]: P extends ByFields
1124
+ ? never
1125
+ : P extends string
1126
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1127
+ : [
1128
+ Error,
1129
+ 'Field ',
1130
+ P,
1131
+ ` in "having" needs to be provided in "by"`,
1132
+ ]
1133
+ }[HavingFields]
1134
+ : 'take' extends Prisma.Keys<T>
1135
+ ? 'orderBy' extends Prisma.Keys<T>
1136
+ ? ByValid extends Prisma.True
1137
+ ? {}
1138
+ : {
1139
+ [P in OrderFields]: P extends ByFields
1140
+ ? never
1141
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1142
+ }[OrderFields]
1143
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
1144
+ : 'skip' extends Prisma.Keys<T>
1145
+ ? 'orderBy' extends Prisma.Keys<T>
1146
+ ? ByValid extends Prisma.True
1147
+ ? {}
1148
+ : {
1149
+ [P in OrderFields]: P extends ByFields
1150
+ ? never
1151
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1152
+ }[OrderFields]
1153
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
1154
+ : ByValid extends Prisma.True
1155
+ ? {}
1156
+ : {
1157
+ [P in OrderFields]: P extends ByFields
1158
+ ? never
1159
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1160
+ }[OrderFields]
1161
+ >(args: Prisma.SubsetIntersection<T, ElementRelationGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetElementRelationGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1162
+ /**
1163
+ * Fields of the ElementRelation model
1164
+ */
1165
+ readonly fields: ElementRelationFieldRefs;
1166
+ }
1167
+
1168
+ /**
1169
+ * The delegate class that acts as a "Promise-like" for ElementRelation.
1170
+ * Why is this prefixed with `Prisma__`?
1171
+ * Because we want to prevent naming conflicts as mentioned in
1172
+ * https://github.com/prisma/prisma-client-js/issues/707
1173
+ */
1174
+ export interface Prisma__ElementRelationClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1175
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1176
+ from<T extends Prisma.ElementNodeDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ElementNodeDefaultArgs<ExtArgs>>): Prisma.Prisma__ElementNodeClient<runtime.Types.Result.GetResult<Prisma.$ElementNodePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
1177
+ to<T extends Prisma.ElementNodeDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ElementNodeDefaultArgs<ExtArgs>>): Prisma.Prisma__ElementNodeClient<runtime.Types.Result.GetResult<Prisma.$ElementNodePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
1178
+ cluster<T extends Prisma.ElementRelation$clusterArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ElementRelation$clusterArgs<ExtArgs>>): Prisma.Prisma__ClusterClient<runtime.Types.Result.GetResult<Prisma.$ClusterPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1179
+ /**
1180
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1181
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1182
+ * @param onrejected The callback to execute when the Promise is rejected.
1183
+ * @returns A Promise for the completion of which ever callback is executed.
1184
+ */
1185
+ 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>
1186
+ /**
1187
+ * Attaches a callback for only the rejection of the Promise.
1188
+ * @param onrejected The callback to execute when the Promise is rejected.
1189
+ * @returns A Promise for the completion of the callback.
1190
+ */
1191
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1192
+ /**
1193
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1194
+ * resolved value cannot be modified from the callback.
1195
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1196
+ * @returns A Promise for the completion of the callback.
1197
+ */
1198
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1199
+ }
1200
+
1201
+
1202
+
1203
+
1204
+ /**
1205
+ * Fields of the ElementRelation model
1206
+ */
1207
+ export interface ElementRelationFieldRefs {
1208
+ readonly id: Prisma.FieldRef<"ElementRelation", 'String'>
1209
+ readonly fromId: Prisma.FieldRef<"ElementRelation", 'String'>
1210
+ readonly toId: Prisma.FieldRef<"ElementRelation", 'String'>
1211
+ readonly relationType: Prisma.FieldRef<"ElementRelation", 'RelationType'>
1212
+ readonly metadata: Prisma.FieldRef<"ElementRelation", 'Json'>
1213
+ readonly clusterId: Prisma.FieldRef<"ElementRelation", 'String'>
1214
+ }
1215
+
1216
+
1217
+ // Custom InputTypes
1218
+ /**
1219
+ * ElementRelation findUnique
1220
+ */
1221
+ export type ElementRelationFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1222
+ /**
1223
+ * Select specific fields to fetch from the ElementRelation
1224
+ */
1225
+ select?: Prisma.ElementRelationSelect<ExtArgs> | null
1226
+ /**
1227
+ * Omit specific fields from the ElementRelation
1228
+ */
1229
+ omit?: Prisma.ElementRelationOmit<ExtArgs> | null
1230
+ /**
1231
+ * Choose, which related nodes to fetch as well
1232
+ */
1233
+ include?: Prisma.ElementRelationInclude<ExtArgs> | null
1234
+ /**
1235
+ * Filter, which ElementRelation to fetch.
1236
+ */
1237
+ where: Prisma.ElementRelationWhereUniqueInput
1238
+ }
1239
+
1240
+ /**
1241
+ * ElementRelation findUniqueOrThrow
1242
+ */
1243
+ export type ElementRelationFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1244
+ /**
1245
+ * Select specific fields to fetch from the ElementRelation
1246
+ */
1247
+ select?: Prisma.ElementRelationSelect<ExtArgs> | null
1248
+ /**
1249
+ * Omit specific fields from the ElementRelation
1250
+ */
1251
+ omit?: Prisma.ElementRelationOmit<ExtArgs> | null
1252
+ /**
1253
+ * Choose, which related nodes to fetch as well
1254
+ */
1255
+ include?: Prisma.ElementRelationInclude<ExtArgs> | null
1256
+ /**
1257
+ * Filter, which ElementRelation to fetch.
1258
+ */
1259
+ where: Prisma.ElementRelationWhereUniqueInput
1260
+ }
1261
+
1262
+ /**
1263
+ * ElementRelation findFirst
1264
+ */
1265
+ export type ElementRelationFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1266
+ /**
1267
+ * Select specific fields to fetch from the ElementRelation
1268
+ */
1269
+ select?: Prisma.ElementRelationSelect<ExtArgs> | null
1270
+ /**
1271
+ * Omit specific fields from the ElementRelation
1272
+ */
1273
+ omit?: Prisma.ElementRelationOmit<ExtArgs> | null
1274
+ /**
1275
+ * Choose, which related nodes to fetch as well
1276
+ */
1277
+ include?: Prisma.ElementRelationInclude<ExtArgs> | null
1278
+ /**
1279
+ * Filter, which ElementRelation to fetch.
1280
+ */
1281
+ where?: Prisma.ElementRelationWhereInput
1282
+ /**
1283
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1284
+ *
1285
+ * Determine the order of ElementRelations to fetch.
1286
+ */
1287
+ orderBy?: Prisma.ElementRelationOrderByWithRelationInput | Prisma.ElementRelationOrderByWithRelationInput[]
1288
+ /**
1289
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1290
+ *
1291
+ * Sets the position for searching for ElementRelations.
1292
+ */
1293
+ cursor?: Prisma.ElementRelationWhereUniqueInput
1294
+ /**
1295
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1296
+ *
1297
+ * Take `±n` ElementRelations from the position of the cursor.
1298
+ */
1299
+ take?: number
1300
+ /**
1301
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1302
+ *
1303
+ * Skip the first `n` ElementRelations.
1304
+ */
1305
+ skip?: number
1306
+ /**
1307
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1308
+ *
1309
+ * Filter by unique combinations of ElementRelations.
1310
+ */
1311
+ distinct?: Prisma.ElementRelationScalarFieldEnum | Prisma.ElementRelationScalarFieldEnum[]
1312
+ }
1313
+
1314
+ /**
1315
+ * ElementRelation findFirstOrThrow
1316
+ */
1317
+ export type ElementRelationFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1318
+ /**
1319
+ * Select specific fields to fetch from the ElementRelation
1320
+ */
1321
+ select?: Prisma.ElementRelationSelect<ExtArgs> | null
1322
+ /**
1323
+ * Omit specific fields from the ElementRelation
1324
+ */
1325
+ omit?: Prisma.ElementRelationOmit<ExtArgs> | null
1326
+ /**
1327
+ * Choose, which related nodes to fetch as well
1328
+ */
1329
+ include?: Prisma.ElementRelationInclude<ExtArgs> | null
1330
+ /**
1331
+ * Filter, which ElementRelation to fetch.
1332
+ */
1333
+ where?: Prisma.ElementRelationWhereInput
1334
+ /**
1335
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1336
+ *
1337
+ * Determine the order of ElementRelations to fetch.
1338
+ */
1339
+ orderBy?: Prisma.ElementRelationOrderByWithRelationInput | Prisma.ElementRelationOrderByWithRelationInput[]
1340
+ /**
1341
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1342
+ *
1343
+ * Sets the position for searching for ElementRelations.
1344
+ */
1345
+ cursor?: Prisma.ElementRelationWhereUniqueInput
1346
+ /**
1347
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1348
+ *
1349
+ * Take `±n` ElementRelations from the position of the cursor.
1350
+ */
1351
+ take?: number
1352
+ /**
1353
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1354
+ *
1355
+ * Skip the first `n` ElementRelations.
1356
+ */
1357
+ skip?: number
1358
+ /**
1359
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1360
+ *
1361
+ * Filter by unique combinations of ElementRelations.
1362
+ */
1363
+ distinct?: Prisma.ElementRelationScalarFieldEnum | Prisma.ElementRelationScalarFieldEnum[]
1364
+ }
1365
+
1366
+ /**
1367
+ * ElementRelation findMany
1368
+ */
1369
+ export type ElementRelationFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1370
+ /**
1371
+ * Select specific fields to fetch from the ElementRelation
1372
+ */
1373
+ select?: Prisma.ElementRelationSelect<ExtArgs> | null
1374
+ /**
1375
+ * Omit specific fields from the ElementRelation
1376
+ */
1377
+ omit?: Prisma.ElementRelationOmit<ExtArgs> | null
1378
+ /**
1379
+ * Choose, which related nodes to fetch as well
1380
+ */
1381
+ include?: Prisma.ElementRelationInclude<ExtArgs> | null
1382
+ /**
1383
+ * Filter, which ElementRelations to fetch.
1384
+ */
1385
+ where?: Prisma.ElementRelationWhereInput
1386
+ /**
1387
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1388
+ *
1389
+ * Determine the order of ElementRelations to fetch.
1390
+ */
1391
+ orderBy?: Prisma.ElementRelationOrderByWithRelationInput | Prisma.ElementRelationOrderByWithRelationInput[]
1392
+ /**
1393
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1394
+ *
1395
+ * Sets the position for listing ElementRelations.
1396
+ */
1397
+ cursor?: Prisma.ElementRelationWhereUniqueInput
1398
+ /**
1399
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1400
+ *
1401
+ * Take `±n` ElementRelations from the position of the cursor.
1402
+ */
1403
+ take?: number
1404
+ /**
1405
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1406
+ *
1407
+ * Skip the first `n` ElementRelations.
1408
+ */
1409
+ skip?: number
1410
+ distinct?: Prisma.ElementRelationScalarFieldEnum | Prisma.ElementRelationScalarFieldEnum[]
1411
+ }
1412
+
1413
+ /**
1414
+ * ElementRelation create
1415
+ */
1416
+ export type ElementRelationCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1417
+ /**
1418
+ * Select specific fields to fetch from the ElementRelation
1419
+ */
1420
+ select?: Prisma.ElementRelationSelect<ExtArgs> | null
1421
+ /**
1422
+ * Omit specific fields from the ElementRelation
1423
+ */
1424
+ omit?: Prisma.ElementRelationOmit<ExtArgs> | null
1425
+ /**
1426
+ * Choose, which related nodes to fetch as well
1427
+ */
1428
+ include?: Prisma.ElementRelationInclude<ExtArgs> | null
1429
+ /**
1430
+ * The data needed to create a ElementRelation.
1431
+ */
1432
+ data: Prisma.XOR<Prisma.ElementRelationCreateInput, Prisma.ElementRelationUncheckedCreateInput>
1433
+ }
1434
+
1435
+ /**
1436
+ * ElementRelation createMany
1437
+ */
1438
+ export type ElementRelationCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1439
+ /**
1440
+ * The data used to create many ElementRelations.
1441
+ */
1442
+ data: Prisma.ElementRelationCreateManyInput | Prisma.ElementRelationCreateManyInput[]
1443
+ skipDuplicates?: boolean
1444
+ }
1445
+
1446
+ /**
1447
+ * ElementRelation createManyAndReturn
1448
+ */
1449
+ export type ElementRelationCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1450
+ /**
1451
+ * Select specific fields to fetch from the ElementRelation
1452
+ */
1453
+ select?: Prisma.ElementRelationSelectCreateManyAndReturn<ExtArgs> | null
1454
+ /**
1455
+ * Omit specific fields from the ElementRelation
1456
+ */
1457
+ omit?: Prisma.ElementRelationOmit<ExtArgs> | null
1458
+ /**
1459
+ * The data used to create many ElementRelations.
1460
+ */
1461
+ data: Prisma.ElementRelationCreateManyInput | Prisma.ElementRelationCreateManyInput[]
1462
+ skipDuplicates?: boolean
1463
+ /**
1464
+ * Choose, which related nodes to fetch as well
1465
+ */
1466
+ include?: Prisma.ElementRelationIncludeCreateManyAndReturn<ExtArgs> | null
1467
+ }
1468
+
1469
+ /**
1470
+ * ElementRelation update
1471
+ */
1472
+ export type ElementRelationUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1473
+ /**
1474
+ * Select specific fields to fetch from the ElementRelation
1475
+ */
1476
+ select?: Prisma.ElementRelationSelect<ExtArgs> | null
1477
+ /**
1478
+ * Omit specific fields from the ElementRelation
1479
+ */
1480
+ omit?: Prisma.ElementRelationOmit<ExtArgs> | null
1481
+ /**
1482
+ * Choose, which related nodes to fetch as well
1483
+ */
1484
+ include?: Prisma.ElementRelationInclude<ExtArgs> | null
1485
+ /**
1486
+ * The data needed to update a ElementRelation.
1487
+ */
1488
+ data: Prisma.XOR<Prisma.ElementRelationUpdateInput, Prisma.ElementRelationUncheckedUpdateInput>
1489
+ /**
1490
+ * Choose, which ElementRelation to update.
1491
+ */
1492
+ where: Prisma.ElementRelationWhereUniqueInput
1493
+ }
1494
+
1495
+ /**
1496
+ * ElementRelation updateMany
1497
+ */
1498
+ export type ElementRelationUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1499
+ /**
1500
+ * The data used to update ElementRelations.
1501
+ */
1502
+ data: Prisma.XOR<Prisma.ElementRelationUpdateManyMutationInput, Prisma.ElementRelationUncheckedUpdateManyInput>
1503
+ /**
1504
+ * Filter which ElementRelations to update
1505
+ */
1506
+ where?: Prisma.ElementRelationWhereInput
1507
+ /**
1508
+ * Limit how many ElementRelations to update.
1509
+ */
1510
+ limit?: number
1511
+ }
1512
+
1513
+ /**
1514
+ * ElementRelation updateManyAndReturn
1515
+ */
1516
+ export type ElementRelationUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1517
+ /**
1518
+ * Select specific fields to fetch from the ElementRelation
1519
+ */
1520
+ select?: Prisma.ElementRelationSelectUpdateManyAndReturn<ExtArgs> | null
1521
+ /**
1522
+ * Omit specific fields from the ElementRelation
1523
+ */
1524
+ omit?: Prisma.ElementRelationOmit<ExtArgs> | null
1525
+ /**
1526
+ * The data used to update ElementRelations.
1527
+ */
1528
+ data: Prisma.XOR<Prisma.ElementRelationUpdateManyMutationInput, Prisma.ElementRelationUncheckedUpdateManyInput>
1529
+ /**
1530
+ * Filter which ElementRelations to update
1531
+ */
1532
+ where?: Prisma.ElementRelationWhereInput
1533
+ /**
1534
+ * Limit how many ElementRelations to update.
1535
+ */
1536
+ limit?: number
1537
+ /**
1538
+ * Choose, which related nodes to fetch as well
1539
+ */
1540
+ include?: Prisma.ElementRelationIncludeUpdateManyAndReturn<ExtArgs> | null
1541
+ }
1542
+
1543
+ /**
1544
+ * ElementRelation upsert
1545
+ */
1546
+ export type ElementRelationUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1547
+ /**
1548
+ * Select specific fields to fetch from the ElementRelation
1549
+ */
1550
+ select?: Prisma.ElementRelationSelect<ExtArgs> | null
1551
+ /**
1552
+ * Omit specific fields from the ElementRelation
1553
+ */
1554
+ omit?: Prisma.ElementRelationOmit<ExtArgs> | null
1555
+ /**
1556
+ * Choose, which related nodes to fetch as well
1557
+ */
1558
+ include?: Prisma.ElementRelationInclude<ExtArgs> | null
1559
+ /**
1560
+ * The filter to search for the ElementRelation to update in case it exists.
1561
+ */
1562
+ where: Prisma.ElementRelationWhereUniqueInput
1563
+ /**
1564
+ * In case the ElementRelation found by the `where` argument doesn't exist, create a new ElementRelation with this data.
1565
+ */
1566
+ create: Prisma.XOR<Prisma.ElementRelationCreateInput, Prisma.ElementRelationUncheckedCreateInput>
1567
+ /**
1568
+ * In case the ElementRelation was found with the provided `where` argument, update it with this data.
1569
+ */
1570
+ update: Prisma.XOR<Prisma.ElementRelationUpdateInput, Prisma.ElementRelationUncheckedUpdateInput>
1571
+ }
1572
+
1573
+ /**
1574
+ * ElementRelation delete
1575
+ */
1576
+ export type ElementRelationDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1577
+ /**
1578
+ * Select specific fields to fetch from the ElementRelation
1579
+ */
1580
+ select?: Prisma.ElementRelationSelect<ExtArgs> | null
1581
+ /**
1582
+ * Omit specific fields from the ElementRelation
1583
+ */
1584
+ omit?: Prisma.ElementRelationOmit<ExtArgs> | null
1585
+ /**
1586
+ * Choose, which related nodes to fetch as well
1587
+ */
1588
+ include?: Prisma.ElementRelationInclude<ExtArgs> | null
1589
+ /**
1590
+ * Filter which ElementRelation to delete.
1591
+ */
1592
+ where: Prisma.ElementRelationWhereUniqueInput
1593
+ }
1594
+
1595
+ /**
1596
+ * ElementRelation deleteMany
1597
+ */
1598
+ export type ElementRelationDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1599
+ /**
1600
+ * Filter which ElementRelations to delete
1601
+ */
1602
+ where?: Prisma.ElementRelationWhereInput
1603
+ /**
1604
+ * Limit how many ElementRelations to delete.
1605
+ */
1606
+ limit?: number
1607
+ }
1608
+
1609
+ /**
1610
+ * ElementRelation.cluster
1611
+ */
1612
+ export type ElementRelation$clusterArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1613
+ /**
1614
+ * Select specific fields to fetch from the Cluster
1615
+ */
1616
+ select?: Prisma.ClusterSelect<ExtArgs> | null
1617
+ /**
1618
+ * Omit specific fields from the Cluster
1619
+ */
1620
+ omit?: Prisma.ClusterOmit<ExtArgs> | null
1621
+ /**
1622
+ * Choose, which related nodes to fetch as well
1623
+ */
1624
+ include?: Prisma.ClusterInclude<ExtArgs> | null
1625
+ where?: Prisma.ClusterWhereInput
1626
+ }
1627
+
1628
+ /**
1629
+ * ElementRelation without action
1630
+ */
1631
+ export type ElementRelationDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1632
+ /**
1633
+ * Select specific fields to fetch from the ElementRelation
1634
+ */
1635
+ select?: Prisma.ElementRelationSelect<ExtArgs> | null
1636
+ /**
1637
+ * Omit specific fields from the ElementRelation
1638
+ */
1639
+ omit?: Prisma.ElementRelationOmit<ExtArgs> | null
1640
+ /**
1641
+ * Choose, which related nodes to fetch as well
1642
+ */
1643
+ include?: Prisma.ElementRelationInclude<ExtArgs> | null
1644
+ }