@naisys/erp 3.0.0-beta.3

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.

Potentially problematic release.


This version of @naisys/erp might be problematic. Click here for more details.

Files changed (201) hide show
  1. package/bin/naisys-erp +2 -0
  2. package/client-dist/android-chrome-192x192.png +0 -0
  3. package/client-dist/android-chrome-512x512.png +0 -0
  4. package/client-dist/apple-touch-icon.png +0 -0
  5. package/client-dist/assets/index-45dVo30p.css +1 -0
  6. package/client-dist/assets/index-Dffms7F_.js +168 -0
  7. package/client-dist/assets/naisys-logo-CzoPnn5I.webp +0 -0
  8. package/client-dist/favicon.ico +0 -0
  9. package/client-dist/index.html +42 -0
  10. package/client-dist/site.webmanifest +22 -0
  11. package/dist/api-reference.d.ts +10 -0
  12. package/dist/api-reference.js +101 -0
  13. package/dist/audit.d.ts +5 -0
  14. package/dist/audit.js +14 -0
  15. package/dist/auth-middleware.d.ts +18 -0
  16. package/dist/auth-middleware.js +203 -0
  17. package/dist/dbConfig.d.ts +5 -0
  18. package/dist/dbConfig.js +10 -0
  19. package/dist/erpDb.d.ts +10 -0
  20. package/dist/erpDb.js +34 -0
  21. package/dist/erpServer.d.ts +10 -0
  22. package/dist/erpServer.js +321 -0
  23. package/dist/error-handler.d.ts +7 -0
  24. package/dist/error-handler.js +17 -0
  25. package/dist/generated/prisma/client.d.ts +154 -0
  26. package/dist/generated/prisma/client.js +35 -0
  27. package/dist/generated/prisma/commonInputTypes.d.ts +637 -0
  28. package/dist/generated/prisma/commonInputTypes.js +11 -0
  29. package/dist/generated/prisma/enums.d.ts +59 -0
  30. package/dist/generated/prisma/enums.js +60 -0
  31. package/dist/generated/prisma/internal/class.d.ts +406 -0
  32. package/dist/generated/prisma/internal/class.js +50 -0
  33. package/dist/generated/prisma/internal/prismaNamespace.d.ts +2722 -0
  34. package/dist/generated/prisma/internal/prismaNamespace.js +366 -0
  35. package/dist/generated/prisma/models/Attachment.d.ts +1455 -0
  36. package/dist/generated/prisma/models/Attachment.js +2 -0
  37. package/dist/generated/prisma/models/AuditLog.d.ts +1359 -0
  38. package/dist/generated/prisma/models/AuditLog.js +2 -0
  39. package/dist/generated/prisma/models/Field.d.ts +1880 -0
  40. package/dist/generated/prisma/models/Field.js +2 -0
  41. package/dist/generated/prisma/models/FieldAttachment.d.ts +1245 -0
  42. package/dist/generated/prisma/models/FieldAttachment.js +2 -0
  43. package/dist/generated/prisma/models/FieldRecord.d.ts +1625 -0
  44. package/dist/generated/prisma/models/FieldRecord.js +2 -0
  45. package/dist/generated/prisma/models/FieldSet.d.ts +1577 -0
  46. package/dist/generated/prisma/models/FieldSet.js +2 -0
  47. package/dist/generated/prisma/models/FieldValue.d.ts +1908 -0
  48. package/dist/generated/prisma/models/FieldValue.js +2 -0
  49. package/dist/generated/prisma/models/Item.d.ts +1858 -0
  50. package/dist/generated/prisma/models/Item.js +2 -0
  51. package/dist/generated/prisma/models/ItemInstance.d.ts +1987 -0
  52. package/dist/generated/prisma/models/ItemInstance.js +2 -0
  53. package/dist/generated/prisma/models/LaborTicket.d.ts +1867 -0
  54. package/dist/generated/prisma/models/LaborTicket.js +2 -0
  55. package/dist/generated/prisma/models/Operation.d.ts +2578 -0
  56. package/dist/generated/prisma/models/Operation.js +2 -0
  57. package/dist/generated/prisma/models/OperationDependency.d.ts +1434 -0
  58. package/dist/generated/prisma/models/OperationDependency.js +2 -0
  59. package/dist/generated/prisma/models/OperationFieldRef.d.ts +1539 -0
  60. package/dist/generated/prisma/models/OperationFieldRef.js +2 -0
  61. package/dist/generated/prisma/models/OperationRun.d.ts +2563 -0
  62. package/dist/generated/prisma/models/OperationRun.js +2 -0
  63. package/dist/generated/prisma/models/OperationRunComment.d.ts +1366 -0
  64. package/dist/generated/prisma/models/OperationRunComment.js +2 -0
  65. package/dist/generated/prisma/models/Order.d.ts +1931 -0
  66. package/dist/generated/prisma/models/Order.js +2 -0
  67. package/dist/generated/prisma/models/OrderRevision.d.ts +1962 -0
  68. package/dist/generated/prisma/models/OrderRevision.js +2 -0
  69. package/dist/generated/prisma/models/OrderRun.d.ts +2310 -0
  70. package/dist/generated/prisma/models/OrderRun.js +2 -0
  71. package/dist/generated/prisma/models/SchemaVersion.d.ts +985 -0
  72. package/dist/generated/prisma/models/SchemaVersion.js +2 -0
  73. package/dist/generated/prisma/models/Session.d.ts +1213 -0
  74. package/dist/generated/prisma/models/Session.js +2 -0
  75. package/dist/generated/prisma/models/Step.d.ts +2180 -0
  76. package/dist/generated/prisma/models/Step.js +2 -0
  77. package/dist/generated/prisma/models/StepRun.d.ts +1963 -0
  78. package/dist/generated/prisma/models/StepRun.js +2 -0
  79. package/dist/generated/prisma/models/User.d.ts +11819 -0
  80. package/dist/generated/prisma/models/User.js +2 -0
  81. package/dist/generated/prisma/models/UserPermission.d.ts +1348 -0
  82. package/dist/generated/prisma/models/UserPermission.js +2 -0
  83. package/dist/generated/prisma/models/WorkCenter.d.ts +1657 -0
  84. package/dist/generated/prisma/models/WorkCenter.js +2 -0
  85. package/dist/generated/prisma/models/WorkCenterUser.d.ts +1390 -0
  86. package/dist/generated/prisma/models/WorkCenterUser.js +2 -0
  87. package/dist/generated/prisma/models.d.ts +28 -0
  88. package/dist/generated/prisma/models.js +2 -0
  89. package/dist/hateoas.d.ts +7 -0
  90. package/dist/hateoas.js +61 -0
  91. package/dist/route-helpers.d.ts +318 -0
  92. package/dist/route-helpers.js +220 -0
  93. package/dist/routes/admin.d.ts +3 -0
  94. package/dist/routes/admin.js +147 -0
  95. package/dist/routes/audit.d.ts +3 -0
  96. package/dist/routes/audit.js +36 -0
  97. package/dist/routes/auth.d.ts +3 -0
  98. package/dist/routes/auth.js +112 -0
  99. package/dist/routes/dispatch.d.ts +3 -0
  100. package/dist/routes/dispatch.js +174 -0
  101. package/dist/routes/inventory.d.ts +3 -0
  102. package/dist/routes/inventory.js +70 -0
  103. package/dist/routes/item-fields.d.ts +3 -0
  104. package/dist/routes/item-fields.js +220 -0
  105. package/dist/routes/item-instances.d.ts +3 -0
  106. package/dist/routes/item-instances.js +426 -0
  107. package/dist/routes/items.d.ts +3 -0
  108. package/dist/routes/items.js +252 -0
  109. package/dist/routes/labor-tickets.d.ts +3 -0
  110. package/dist/routes/labor-tickets.js +268 -0
  111. package/dist/routes/operation-dependencies.d.ts +3 -0
  112. package/dist/routes/operation-dependencies.js +170 -0
  113. package/dist/routes/operation-field-refs.d.ts +3 -0
  114. package/dist/routes/operation-field-refs.js +263 -0
  115. package/dist/routes/operation-run-comments.d.ts +3 -0
  116. package/dist/routes/operation-run-comments.js +108 -0
  117. package/dist/routes/operation-run-transitions.d.ts +3 -0
  118. package/dist/routes/operation-run-transitions.js +249 -0
  119. package/dist/routes/operation-runs.d.ts +112 -0
  120. package/dist/routes/operation-runs.js +299 -0
  121. package/dist/routes/operations.d.ts +3 -0
  122. package/dist/routes/operations.js +283 -0
  123. package/dist/routes/order-revision-transitions.d.ts +3 -0
  124. package/dist/routes/order-revision-transitions.js +86 -0
  125. package/dist/routes/order-revisions.d.ts +51 -0
  126. package/dist/routes/order-revisions.js +327 -0
  127. package/dist/routes/order-run-transitions.d.ts +3 -0
  128. package/dist/routes/order-run-transitions.js +215 -0
  129. package/dist/routes/order-runs.d.ts +58 -0
  130. package/dist/routes/order-runs.js +335 -0
  131. package/dist/routes/orders.d.ts +3 -0
  132. package/dist/routes/orders.js +262 -0
  133. package/dist/routes/root.d.ts +3 -0
  134. package/dist/routes/root.js +123 -0
  135. package/dist/routes/schemas.d.ts +3 -0
  136. package/dist/routes/schemas.js +31 -0
  137. package/dist/routes/step-field-attachments.d.ts +3 -0
  138. package/dist/routes/step-field-attachments.js +231 -0
  139. package/dist/routes/step-fields.d.ts +100 -0
  140. package/dist/routes/step-fields.js +315 -0
  141. package/dist/routes/step-run-fields.d.ts +3 -0
  142. package/dist/routes/step-run-fields.js +438 -0
  143. package/dist/routes/step-run-transitions.d.ts +3 -0
  144. package/dist/routes/step-run-transitions.js +113 -0
  145. package/dist/routes/step-runs.d.ts +332 -0
  146. package/dist/routes/step-runs.js +324 -0
  147. package/dist/routes/steps.d.ts +3 -0
  148. package/dist/routes/steps.js +283 -0
  149. package/dist/routes/user-permissions.d.ts +3 -0
  150. package/dist/routes/user-permissions.js +100 -0
  151. package/dist/routes/users.d.ts +57 -0
  152. package/dist/routes/users.js +381 -0
  153. package/dist/routes/work-centers.d.ts +3 -0
  154. package/dist/routes/work-centers.js +280 -0
  155. package/dist/schema-registry.d.ts +3 -0
  156. package/dist/schema-registry.js +45 -0
  157. package/dist/services/attachment-service.d.ts +33 -0
  158. package/dist/services/attachment-service.js +118 -0
  159. package/dist/services/field-ref-service.d.ts +96 -0
  160. package/dist/services/field-ref-service.js +74 -0
  161. package/dist/services/field-service.d.ts +49 -0
  162. package/dist/services/field-service.js +114 -0
  163. package/dist/services/field-value-service.d.ts +61 -0
  164. package/dist/services/field-value-service.js +256 -0
  165. package/dist/services/item-instance-service.d.ts +152 -0
  166. package/dist/services/item-instance-service.js +155 -0
  167. package/dist/services/item-service.d.ts +47 -0
  168. package/dist/services/item-service.js +56 -0
  169. package/dist/services/labor-ticket-service.d.ts +40 -0
  170. package/dist/services/labor-ticket-service.js +148 -0
  171. package/dist/services/log-file-service.d.ts +4 -0
  172. package/dist/services/log-file-service.js +11 -0
  173. package/dist/services/operation-dependency-service.d.ts +33 -0
  174. package/dist/services/operation-dependency-service.js +30 -0
  175. package/dist/services/operation-run-comment-service.d.ts +17 -0
  176. package/dist/services/operation-run-comment-service.js +26 -0
  177. package/dist/services/operation-run-service.d.ts +126 -0
  178. package/dist/services/operation-run-service.js +347 -0
  179. package/dist/services/operation-service.d.ts +47 -0
  180. package/dist/services/operation-service.js +132 -0
  181. package/dist/services/order-revision-service.d.ts +53 -0
  182. package/dist/services/order-revision-service.js +264 -0
  183. package/dist/services/order-run-service.d.ts +138 -0
  184. package/dist/services/order-run-service.js +356 -0
  185. package/dist/services/order-service.d.ts +15 -0
  186. package/dist/services/order-service.js +68 -0
  187. package/dist/services/revision-diff-service.d.ts +3 -0
  188. package/dist/services/revision-diff-service.js +194 -0
  189. package/dist/services/step-run-service.d.ts +172 -0
  190. package/dist/services/step-run-service.js +106 -0
  191. package/dist/services/step-service.d.ts +104 -0
  192. package/dist/services/step-service.js +89 -0
  193. package/dist/services/user-service.d.ts +185 -0
  194. package/dist/services/user-service.js +132 -0
  195. package/dist/services/work-center-service.d.ts +29 -0
  196. package/dist/services/work-center-service.js +106 -0
  197. package/dist/supervisorAuth.d.ts +3 -0
  198. package/dist/supervisorAuth.js +16 -0
  199. package/dist/userService.d.ts +20 -0
  200. package/dist/userService.js +118 -0
  201. package/package.json +69 -0
@@ -0,0 +1,1858 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace.js";
3
+ /**
4
+ * Model Item
5
+ *
6
+ */
7
+ export type ItemModel = runtime.Types.Result.DefaultSelection<Prisma.$ItemPayload>;
8
+ export type AggregateItem = {
9
+ _count: ItemCountAggregateOutputType | null;
10
+ _avg: ItemAvgAggregateOutputType | null;
11
+ _sum: ItemSumAggregateOutputType | null;
12
+ _min: ItemMinAggregateOutputType | null;
13
+ _max: ItemMaxAggregateOutputType | null;
14
+ };
15
+ export type ItemAvgAggregateOutputType = {
16
+ id: number | null;
17
+ fieldSetId: number | null;
18
+ createdById: number | null;
19
+ updatedById: number | null;
20
+ };
21
+ export type ItemSumAggregateOutputType = {
22
+ id: number | null;
23
+ fieldSetId: number | null;
24
+ createdById: number | null;
25
+ updatedById: number | null;
26
+ };
27
+ export type ItemMinAggregateOutputType = {
28
+ id: number | null;
29
+ key: string | null;
30
+ description: string | null;
31
+ fieldSetId: number | null;
32
+ createdAt: Date | null;
33
+ createdById: number | null;
34
+ updatedAt: Date | null;
35
+ updatedById: number | null;
36
+ };
37
+ export type ItemMaxAggregateOutputType = {
38
+ id: number | null;
39
+ key: string | null;
40
+ description: string | null;
41
+ fieldSetId: number | null;
42
+ createdAt: Date | null;
43
+ createdById: number | null;
44
+ updatedAt: Date | null;
45
+ updatedById: number | null;
46
+ };
47
+ export type ItemCountAggregateOutputType = {
48
+ id: number;
49
+ key: number;
50
+ description: number;
51
+ fieldSetId: number;
52
+ createdAt: number;
53
+ createdById: number;
54
+ updatedAt: number;
55
+ updatedById: number;
56
+ _all: number;
57
+ };
58
+ export type ItemAvgAggregateInputType = {
59
+ id?: true;
60
+ fieldSetId?: true;
61
+ createdById?: true;
62
+ updatedById?: true;
63
+ };
64
+ export type ItemSumAggregateInputType = {
65
+ id?: true;
66
+ fieldSetId?: true;
67
+ createdById?: true;
68
+ updatedById?: true;
69
+ };
70
+ export type ItemMinAggregateInputType = {
71
+ id?: true;
72
+ key?: true;
73
+ description?: true;
74
+ fieldSetId?: true;
75
+ createdAt?: true;
76
+ createdById?: true;
77
+ updatedAt?: true;
78
+ updatedById?: true;
79
+ };
80
+ export type ItemMaxAggregateInputType = {
81
+ id?: true;
82
+ key?: true;
83
+ description?: true;
84
+ fieldSetId?: true;
85
+ createdAt?: true;
86
+ createdById?: true;
87
+ updatedAt?: true;
88
+ updatedById?: true;
89
+ };
90
+ export type ItemCountAggregateInputType = {
91
+ id?: true;
92
+ key?: true;
93
+ description?: true;
94
+ fieldSetId?: true;
95
+ createdAt?: true;
96
+ createdById?: true;
97
+ updatedAt?: true;
98
+ updatedById?: true;
99
+ _all?: true;
100
+ };
101
+ export type ItemAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
102
+ /**
103
+ * Filter which Item to aggregate.
104
+ */
105
+ where?: Prisma.ItemWhereInput;
106
+ /**
107
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
108
+ *
109
+ * Determine the order of Items to fetch.
110
+ */
111
+ orderBy?: Prisma.ItemOrderByWithRelationInput | Prisma.ItemOrderByWithRelationInput[];
112
+ /**
113
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
114
+ *
115
+ * Sets the start position
116
+ */
117
+ cursor?: Prisma.ItemWhereUniqueInput;
118
+ /**
119
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
120
+ *
121
+ * Take `±n` Items from the position of the cursor.
122
+ */
123
+ take?: number;
124
+ /**
125
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
126
+ *
127
+ * Skip the first `n` Items.
128
+ */
129
+ skip?: number;
130
+ /**
131
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
132
+ *
133
+ * Count returned Items
134
+ **/
135
+ _count?: true | ItemCountAggregateInputType;
136
+ /**
137
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
138
+ *
139
+ * Select which fields to average
140
+ **/
141
+ _avg?: ItemAvgAggregateInputType;
142
+ /**
143
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
144
+ *
145
+ * Select which fields to sum
146
+ **/
147
+ _sum?: ItemSumAggregateInputType;
148
+ /**
149
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
150
+ *
151
+ * Select which fields to find the minimum value
152
+ **/
153
+ _min?: ItemMinAggregateInputType;
154
+ /**
155
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
156
+ *
157
+ * Select which fields to find the maximum value
158
+ **/
159
+ _max?: ItemMaxAggregateInputType;
160
+ };
161
+ export type GetItemAggregateType<T extends ItemAggregateArgs> = {
162
+ [P in keyof T & keyof AggregateItem]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateItem[P]> : Prisma.GetScalarType<T[P], AggregateItem[P]>;
163
+ };
164
+ export type ItemGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
165
+ where?: Prisma.ItemWhereInput;
166
+ orderBy?: Prisma.ItemOrderByWithAggregationInput | Prisma.ItemOrderByWithAggregationInput[];
167
+ by: Prisma.ItemScalarFieldEnum[] | Prisma.ItemScalarFieldEnum;
168
+ having?: Prisma.ItemScalarWhereWithAggregatesInput;
169
+ take?: number;
170
+ skip?: number;
171
+ _count?: ItemCountAggregateInputType | true;
172
+ _avg?: ItemAvgAggregateInputType;
173
+ _sum?: ItemSumAggregateInputType;
174
+ _min?: ItemMinAggregateInputType;
175
+ _max?: ItemMaxAggregateInputType;
176
+ };
177
+ export type ItemGroupByOutputType = {
178
+ id: number;
179
+ key: string;
180
+ description: string;
181
+ fieldSetId: number | null;
182
+ createdAt: Date;
183
+ createdById: number;
184
+ updatedAt: Date;
185
+ updatedById: number;
186
+ _count: ItemCountAggregateOutputType | null;
187
+ _avg: ItemAvgAggregateOutputType | null;
188
+ _sum: ItemSumAggregateOutputType | null;
189
+ _min: ItemMinAggregateOutputType | null;
190
+ _max: ItemMaxAggregateOutputType | null;
191
+ };
192
+ type GetItemGroupByPayload<T extends ItemGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<ItemGroupByOutputType, T['by']> & {
193
+ [P in ((keyof T) & (keyof ItemGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], ItemGroupByOutputType[P]> : Prisma.GetScalarType<T[P], ItemGroupByOutputType[P]>;
194
+ }>>;
195
+ export type ItemWhereInput = {
196
+ AND?: Prisma.ItemWhereInput | Prisma.ItemWhereInput[];
197
+ OR?: Prisma.ItemWhereInput[];
198
+ NOT?: Prisma.ItemWhereInput | Prisma.ItemWhereInput[];
199
+ id?: Prisma.IntFilter<"Item"> | number;
200
+ key?: Prisma.StringFilter<"Item"> | string;
201
+ description?: Prisma.StringFilter<"Item"> | string;
202
+ fieldSetId?: Prisma.IntNullableFilter<"Item"> | number | null;
203
+ createdAt?: Prisma.DateTimeFilter<"Item"> | Date | string;
204
+ createdById?: Prisma.IntFilter<"Item"> | number;
205
+ updatedAt?: Prisma.DateTimeFilter<"Item"> | Date | string;
206
+ updatedById?: Prisma.IntFilter<"Item"> | number;
207
+ createdBy?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
208
+ updatedBy?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
209
+ fieldSet?: Prisma.XOR<Prisma.FieldSetNullableScalarRelationFilter, Prisma.FieldSetWhereInput> | null;
210
+ orders?: Prisma.OrderListRelationFilter;
211
+ itemInstances?: Prisma.ItemInstanceListRelationFilter;
212
+ };
213
+ export type ItemOrderByWithRelationInput = {
214
+ id?: Prisma.SortOrder;
215
+ key?: Prisma.SortOrder;
216
+ description?: Prisma.SortOrder;
217
+ fieldSetId?: Prisma.SortOrderInput | Prisma.SortOrder;
218
+ createdAt?: Prisma.SortOrder;
219
+ createdById?: Prisma.SortOrder;
220
+ updatedAt?: Prisma.SortOrder;
221
+ updatedById?: Prisma.SortOrder;
222
+ createdBy?: Prisma.UserOrderByWithRelationInput;
223
+ updatedBy?: Prisma.UserOrderByWithRelationInput;
224
+ fieldSet?: Prisma.FieldSetOrderByWithRelationInput;
225
+ orders?: Prisma.OrderOrderByRelationAggregateInput;
226
+ itemInstances?: Prisma.ItemInstanceOrderByRelationAggregateInput;
227
+ };
228
+ export type ItemWhereUniqueInput = Prisma.AtLeast<{
229
+ id?: number;
230
+ key?: string;
231
+ AND?: Prisma.ItemWhereInput | Prisma.ItemWhereInput[];
232
+ OR?: Prisma.ItemWhereInput[];
233
+ NOT?: Prisma.ItemWhereInput | Prisma.ItemWhereInput[];
234
+ description?: Prisma.StringFilter<"Item"> | string;
235
+ fieldSetId?: Prisma.IntNullableFilter<"Item"> | number | null;
236
+ createdAt?: Prisma.DateTimeFilter<"Item"> | Date | string;
237
+ createdById?: Prisma.IntFilter<"Item"> | number;
238
+ updatedAt?: Prisma.DateTimeFilter<"Item"> | Date | string;
239
+ updatedById?: Prisma.IntFilter<"Item"> | number;
240
+ createdBy?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
241
+ updatedBy?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
242
+ fieldSet?: Prisma.XOR<Prisma.FieldSetNullableScalarRelationFilter, Prisma.FieldSetWhereInput> | null;
243
+ orders?: Prisma.OrderListRelationFilter;
244
+ itemInstances?: Prisma.ItemInstanceListRelationFilter;
245
+ }, "id" | "key">;
246
+ export type ItemOrderByWithAggregationInput = {
247
+ id?: Prisma.SortOrder;
248
+ key?: Prisma.SortOrder;
249
+ description?: Prisma.SortOrder;
250
+ fieldSetId?: Prisma.SortOrderInput | Prisma.SortOrder;
251
+ createdAt?: Prisma.SortOrder;
252
+ createdById?: Prisma.SortOrder;
253
+ updatedAt?: Prisma.SortOrder;
254
+ updatedById?: Prisma.SortOrder;
255
+ _count?: Prisma.ItemCountOrderByAggregateInput;
256
+ _avg?: Prisma.ItemAvgOrderByAggregateInput;
257
+ _max?: Prisma.ItemMaxOrderByAggregateInput;
258
+ _min?: Prisma.ItemMinOrderByAggregateInput;
259
+ _sum?: Prisma.ItemSumOrderByAggregateInput;
260
+ };
261
+ export type ItemScalarWhereWithAggregatesInput = {
262
+ AND?: Prisma.ItemScalarWhereWithAggregatesInput | Prisma.ItemScalarWhereWithAggregatesInput[];
263
+ OR?: Prisma.ItemScalarWhereWithAggregatesInput[];
264
+ NOT?: Prisma.ItemScalarWhereWithAggregatesInput | Prisma.ItemScalarWhereWithAggregatesInput[];
265
+ id?: Prisma.IntWithAggregatesFilter<"Item"> | number;
266
+ key?: Prisma.StringWithAggregatesFilter<"Item"> | string;
267
+ description?: Prisma.StringWithAggregatesFilter<"Item"> | string;
268
+ fieldSetId?: Prisma.IntNullableWithAggregatesFilter<"Item"> | number | null;
269
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"Item"> | Date | string;
270
+ createdById?: Prisma.IntWithAggregatesFilter<"Item"> | number;
271
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Item"> | Date | string;
272
+ updatedById?: Prisma.IntWithAggregatesFilter<"Item"> | number;
273
+ };
274
+ export type ItemCreateInput = {
275
+ key: string;
276
+ description?: string;
277
+ createdAt?: Date | string;
278
+ updatedAt?: Date | string;
279
+ createdBy: Prisma.UserCreateNestedOneWithoutItemsCreatedInput;
280
+ updatedBy: Prisma.UserCreateNestedOneWithoutItemsUpdatedInput;
281
+ fieldSet?: Prisma.FieldSetCreateNestedOneWithoutItemsInput;
282
+ orders?: Prisma.OrderCreateNestedManyWithoutItemInput;
283
+ itemInstances?: Prisma.ItemInstanceCreateNestedManyWithoutItemInput;
284
+ };
285
+ export type ItemUncheckedCreateInput = {
286
+ id?: number;
287
+ key: string;
288
+ description?: string;
289
+ fieldSetId?: number | null;
290
+ createdAt?: Date | string;
291
+ createdById: number;
292
+ updatedAt?: Date | string;
293
+ updatedById: number;
294
+ orders?: Prisma.OrderUncheckedCreateNestedManyWithoutItemInput;
295
+ itemInstances?: Prisma.ItemInstanceUncheckedCreateNestedManyWithoutItemInput;
296
+ };
297
+ export type ItemUpdateInput = {
298
+ key?: Prisma.StringFieldUpdateOperationsInput | string;
299
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
300
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
301
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
302
+ createdBy?: Prisma.UserUpdateOneRequiredWithoutItemsCreatedNestedInput;
303
+ updatedBy?: Prisma.UserUpdateOneRequiredWithoutItemsUpdatedNestedInput;
304
+ fieldSet?: Prisma.FieldSetUpdateOneWithoutItemsNestedInput;
305
+ orders?: Prisma.OrderUpdateManyWithoutItemNestedInput;
306
+ itemInstances?: Prisma.ItemInstanceUpdateManyWithoutItemNestedInput;
307
+ };
308
+ export type ItemUncheckedUpdateInput = {
309
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
310
+ key?: Prisma.StringFieldUpdateOperationsInput | string;
311
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
312
+ fieldSetId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
313
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
314
+ createdById?: Prisma.IntFieldUpdateOperationsInput | number;
315
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
316
+ updatedById?: Prisma.IntFieldUpdateOperationsInput | number;
317
+ orders?: Prisma.OrderUncheckedUpdateManyWithoutItemNestedInput;
318
+ itemInstances?: Prisma.ItemInstanceUncheckedUpdateManyWithoutItemNestedInput;
319
+ };
320
+ export type ItemCreateManyInput = {
321
+ id?: number;
322
+ key: string;
323
+ description?: string;
324
+ fieldSetId?: number | null;
325
+ createdAt?: Date | string;
326
+ createdById: number;
327
+ updatedAt?: Date | string;
328
+ updatedById: number;
329
+ };
330
+ export type ItemUpdateManyMutationInput = {
331
+ key?: Prisma.StringFieldUpdateOperationsInput | string;
332
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
333
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
334
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
335
+ };
336
+ export type ItemUncheckedUpdateManyInput = {
337
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
338
+ key?: Prisma.StringFieldUpdateOperationsInput | string;
339
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
340
+ fieldSetId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
341
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
342
+ createdById?: Prisma.IntFieldUpdateOperationsInput | number;
343
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
344
+ updatedById?: Prisma.IntFieldUpdateOperationsInput | number;
345
+ };
346
+ export type ItemNullableScalarRelationFilter = {
347
+ is?: Prisma.ItemWhereInput | null;
348
+ isNot?: Prisma.ItemWhereInput | null;
349
+ };
350
+ export type ItemListRelationFilter = {
351
+ every?: Prisma.ItemWhereInput;
352
+ some?: Prisma.ItemWhereInput;
353
+ none?: Prisma.ItemWhereInput;
354
+ };
355
+ export type ItemOrderByRelationAggregateInput = {
356
+ _count?: Prisma.SortOrder;
357
+ };
358
+ export type ItemCountOrderByAggregateInput = {
359
+ id?: Prisma.SortOrder;
360
+ key?: Prisma.SortOrder;
361
+ description?: Prisma.SortOrder;
362
+ fieldSetId?: Prisma.SortOrder;
363
+ createdAt?: Prisma.SortOrder;
364
+ createdById?: Prisma.SortOrder;
365
+ updatedAt?: Prisma.SortOrder;
366
+ updatedById?: Prisma.SortOrder;
367
+ };
368
+ export type ItemAvgOrderByAggregateInput = {
369
+ id?: Prisma.SortOrder;
370
+ fieldSetId?: Prisma.SortOrder;
371
+ createdById?: Prisma.SortOrder;
372
+ updatedById?: Prisma.SortOrder;
373
+ };
374
+ export type ItemMaxOrderByAggregateInput = {
375
+ id?: Prisma.SortOrder;
376
+ key?: Prisma.SortOrder;
377
+ description?: Prisma.SortOrder;
378
+ fieldSetId?: Prisma.SortOrder;
379
+ createdAt?: Prisma.SortOrder;
380
+ createdById?: Prisma.SortOrder;
381
+ updatedAt?: Prisma.SortOrder;
382
+ updatedById?: Prisma.SortOrder;
383
+ };
384
+ export type ItemMinOrderByAggregateInput = {
385
+ id?: Prisma.SortOrder;
386
+ key?: Prisma.SortOrder;
387
+ description?: Prisma.SortOrder;
388
+ fieldSetId?: Prisma.SortOrder;
389
+ createdAt?: Prisma.SortOrder;
390
+ createdById?: Prisma.SortOrder;
391
+ updatedAt?: Prisma.SortOrder;
392
+ updatedById?: Prisma.SortOrder;
393
+ };
394
+ export type ItemSumOrderByAggregateInput = {
395
+ id?: Prisma.SortOrder;
396
+ fieldSetId?: Prisma.SortOrder;
397
+ createdById?: Prisma.SortOrder;
398
+ updatedById?: Prisma.SortOrder;
399
+ };
400
+ export type ItemScalarRelationFilter = {
401
+ is?: Prisma.ItemWhereInput;
402
+ isNot?: Prisma.ItemWhereInput;
403
+ };
404
+ export type ItemCreateNestedOneWithoutOrdersInput = {
405
+ create?: Prisma.XOR<Prisma.ItemCreateWithoutOrdersInput, Prisma.ItemUncheckedCreateWithoutOrdersInput>;
406
+ connectOrCreate?: Prisma.ItemCreateOrConnectWithoutOrdersInput;
407
+ connect?: Prisma.ItemWhereUniqueInput;
408
+ };
409
+ export type ItemUpdateOneWithoutOrdersNestedInput = {
410
+ create?: Prisma.XOR<Prisma.ItemCreateWithoutOrdersInput, Prisma.ItemUncheckedCreateWithoutOrdersInput>;
411
+ connectOrCreate?: Prisma.ItemCreateOrConnectWithoutOrdersInput;
412
+ upsert?: Prisma.ItemUpsertWithoutOrdersInput;
413
+ disconnect?: Prisma.ItemWhereInput | boolean;
414
+ delete?: Prisma.ItemWhereInput | boolean;
415
+ connect?: Prisma.ItemWhereUniqueInput;
416
+ update?: Prisma.XOR<Prisma.XOR<Prisma.ItemUpdateToOneWithWhereWithoutOrdersInput, Prisma.ItemUpdateWithoutOrdersInput>, Prisma.ItemUncheckedUpdateWithoutOrdersInput>;
417
+ };
418
+ export type ItemCreateNestedManyWithoutFieldSetInput = {
419
+ create?: Prisma.XOR<Prisma.ItemCreateWithoutFieldSetInput, Prisma.ItemUncheckedCreateWithoutFieldSetInput> | Prisma.ItemCreateWithoutFieldSetInput[] | Prisma.ItemUncheckedCreateWithoutFieldSetInput[];
420
+ connectOrCreate?: Prisma.ItemCreateOrConnectWithoutFieldSetInput | Prisma.ItemCreateOrConnectWithoutFieldSetInput[];
421
+ createMany?: Prisma.ItemCreateManyFieldSetInputEnvelope;
422
+ connect?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[];
423
+ };
424
+ export type ItemUncheckedCreateNestedManyWithoutFieldSetInput = {
425
+ create?: Prisma.XOR<Prisma.ItemCreateWithoutFieldSetInput, Prisma.ItemUncheckedCreateWithoutFieldSetInput> | Prisma.ItemCreateWithoutFieldSetInput[] | Prisma.ItemUncheckedCreateWithoutFieldSetInput[];
426
+ connectOrCreate?: Prisma.ItemCreateOrConnectWithoutFieldSetInput | Prisma.ItemCreateOrConnectWithoutFieldSetInput[];
427
+ createMany?: Prisma.ItemCreateManyFieldSetInputEnvelope;
428
+ connect?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[];
429
+ };
430
+ export type ItemUpdateManyWithoutFieldSetNestedInput = {
431
+ create?: Prisma.XOR<Prisma.ItemCreateWithoutFieldSetInput, Prisma.ItemUncheckedCreateWithoutFieldSetInput> | Prisma.ItemCreateWithoutFieldSetInput[] | Prisma.ItemUncheckedCreateWithoutFieldSetInput[];
432
+ connectOrCreate?: Prisma.ItemCreateOrConnectWithoutFieldSetInput | Prisma.ItemCreateOrConnectWithoutFieldSetInput[];
433
+ upsert?: Prisma.ItemUpsertWithWhereUniqueWithoutFieldSetInput | Prisma.ItemUpsertWithWhereUniqueWithoutFieldSetInput[];
434
+ createMany?: Prisma.ItemCreateManyFieldSetInputEnvelope;
435
+ set?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[];
436
+ disconnect?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[];
437
+ delete?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[];
438
+ connect?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[];
439
+ update?: Prisma.ItemUpdateWithWhereUniqueWithoutFieldSetInput | Prisma.ItemUpdateWithWhereUniqueWithoutFieldSetInput[];
440
+ updateMany?: Prisma.ItemUpdateManyWithWhereWithoutFieldSetInput | Prisma.ItemUpdateManyWithWhereWithoutFieldSetInput[];
441
+ deleteMany?: Prisma.ItemScalarWhereInput | Prisma.ItemScalarWhereInput[];
442
+ };
443
+ export type ItemUncheckedUpdateManyWithoutFieldSetNestedInput = {
444
+ create?: Prisma.XOR<Prisma.ItemCreateWithoutFieldSetInput, Prisma.ItemUncheckedCreateWithoutFieldSetInput> | Prisma.ItemCreateWithoutFieldSetInput[] | Prisma.ItemUncheckedCreateWithoutFieldSetInput[];
445
+ connectOrCreate?: Prisma.ItemCreateOrConnectWithoutFieldSetInput | Prisma.ItemCreateOrConnectWithoutFieldSetInput[];
446
+ upsert?: Prisma.ItemUpsertWithWhereUniqueWithoutFieldSetInput | Prisma.ItemUpsertWithWhereUniqueWithoutFieldSetInput[];
447
+ createMany?: Prisma.ItemCreateManyFieldSetInputEnvelope;
448
+ set?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[];
449
+ disconnect?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[];
450
+ delete?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[];
451
+ connect?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[];
452
+ update?: Prisma.ItemUpdateWithWhereUniqueWithoutFieldSetInput | Prisma.ItemUpdateWithWhereUniqueWithoutFieldSetInput[];
453
+ updateMany?: Prisma.ItemUpdateManyWithWhereWithoutFieldSetInput | Prisma.ItemUpdateManyWithWhereWithoutFieldSetInput[];
454
+ deleteMany?: Prisma.ItemScalarWhereInput | Prisma.ItemScalarWhereInput[];
455
+ };
456
+ export type ItemCreateNestedOneWithoutItemInstancesInput = {
457
+ create?: Prisma.XOR<Prisma.ItemCreateWithoutItemInstancesInput, Prisma.ItemUncheckedCreateWithoutItemInstancesInput>;
458
+ connectOrCreate?: Prisma.ItemCreateOrConnectWithoutItemInstancesInput;
459
+ connect?: Prisma.ItemWhereUniqueInput;
460
+ };
461
+ export type ItemUpdateOneRequiredWithoutItemInstancesNestedInput = {
462
+ create?: Prisma.XOR<Prisma.ItemCreateWithoutItemInstancesInput, Prisma.ItemUncheckedCreateWithoutItemInstancesInput>;
463
+ connectOrCreate?: Prisma.ItemCreateOrConnectWithoutItemInstancesInput;
464
+ upsert?: Prisma.ItemUpsertWithoutItemInstancesInput;
465
+ connect?: Prisma.ItemWhereUniqueInput;
466
+ update?: Prisma.XOR<Prisma.XOR<Prisma.ItemUpdateToOneWithWhereWithoutItemInstancesInput, Prisma.ItemUpdateWithoutItemInstancesInput>, Prisma.ItemUncheckedUpdateWithoutItemInstancesInput>;
467
+ };
468
+ export type ItemCreateNestedManyWithoutCreatedByInput = {
469
+ create?: Prisma.XOR<Prisma.ItemCreateWithoutCreatedByInput, Prisma.ItemUncheckedCreateWithoutCreatedByInput> | Prisma.ItemCreateWithoutCreatedByInput[] | Prisma.ItemUncheckedCreateWithoutCreatedByInput[];
470
+ connectOrCreate?: Prisma.ItemCreateOrConnectWithoutCreatedByInput | Prisma.ItemCreateOrConnectWithoutCreatedByInput[];
471
+ createMany?: Prisma.ItemCreateManyCreatedByInputEnvelope;
472
+ connect?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[];
473
+ };
474
+ export type ItemCreateNestedManyWithoutUpdatedByInput = {
475
+ create?: Prisma.XOR<Prisma.ItemCreateWithoutUpdatedByInput, Prisma.ItemUncheckedCreateWithoutUpdatedByInput> | Prisma.ItemCreateWithoutUpdatedByInput[] | Prisma.ItemUncheckedCreateWithoutUpdatedByInput[];
476
+ connectOrCreate?: Prisma.ItemCreateOrConnectWithoutUpdatedByInput | Prisma.ItemCreateOrConnectWithoutUpdatedByInput[];
477
+ createMany?: Prisma.ItemCreateManyUpdatedByInputEnvelope;
478
+ connect?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[];
479
+ };
480
+ export type ItemUncheckedCreateNestedManyWithoutCreatedByInput = {
481
+ create?: Prisma.XOR<Prisma.ItemCreateWithoutCreatedByInput, Prisma.ItemUncheckedCreateWithoutCreatedByInput> | Prisma.ItemCreateWithoutCreatedByInput[] | Prisma.ItemUncheckedCreateWithoutCreatedByInput[];
482
+ connectOrCreate?: Prisma.ItemCreateOrConnectWithoutCreatedByInput | Prisma.ItemCreateOrConnectWithoutCreatedByInput[];
483
+ createMany?: Prisma.ItemCreateManyCreatedByInputEnvelope;
484
+ connect?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[];
485
+ };
486
+ export type ItemUncheckedCreateNestedManyWithoutUpdatedByInput = {
487
+ create?: Prisma.XOR<Prisma.ItemCreateWithoutUpdatedByInput, Prisma.ItemUncheckedCreateWithoutUpdatedByInput> | Prisma.ItemCreateWithoutUpdatedByInput[] | Prisma.ItemUncheckedCreateWithoutUpdatedByInput[];
488
+ connectOrCreate?: Prisma.ItemCreateOrConnectWithoutUpdatedByInput | Prisma.ItemCreateOrConnectWithoutUpdatedByInput[];
489
+ createMany?: Prisma.ItemCreateManyUpdatedByInputEnvelope;
490
+ connect?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[];
491
+ };
492
+ export type ItemUpdateManyWithoutCreatedByNestedInput = {
493
+ create?: Prisma.XOR<Prisma.ItemCreateWithoutCreatedByInput, Prisma.ItemUncheckedCreateWithoutCreatedByInput> | Prisma.ItemCreateWithoutCreatedByInput[] | Prisma.ItemUncheckedCreateWithoutCreatedByInput[];
494
+ connectOrCreate?: Prisma.ItemCreateOrConnectWithoutCreatedByInput | Prisma.ItemCreateOrConnectWithoutCreatedByInput[];
495
+ upsert?: Prisma.ItemUpsertWithWhereUniqueWithoutCreatedByInput | Prisma.ItemUpsertWithWhereUniqueWithoutCreatedByInput[];
496
+ createMany?: Prisma.ItemCreateManyCreatedByInputEnvelope;
497
+ set?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[];
498
+ disconnect?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[];
499
+ delete?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[];
500
+ connect?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[];
501
+ update?: Prisma.ItemUpdateWithWhereUniqueWithoutCreatedByInput | Prisma.ItemUpdateWithWhereUniqueWithoutCreatedByInput[];
502
+ updateMany?: Prisma.ItemUpdateManyWithWhereWithoutCreatedByInput | Prisma.ItemUpdateManyWithWhereWithoutCreatedByInput[];
503
+ deleteMany?: Prisma.ItemScalarWhereInput | Prisma.ItemScalarWhereInput[];
504
+ };
505
+ export type ItemUpdateManyWithoutUpdatedByNestedInput = {
506
+ create?: Prisma.XOR<Prisma.ItemCreateWithoutUpdatedByInput, Prisma.ItemUncheckedCreateWithoutUpdatedByInput> | Prisma.ItemCreateWithoutUpdatedByInput[] | Prisma.ItemUncheckedCreateWithoutUpdatedByInput[];
507
+ connectOrCreate?: Prisma.ItemCreateOrConnectWithoutUpdatedByInput | Prisma.ItemCreateOrConnectWithoutUpdatedByInput[];
508
+ upsert?: Prisma.ItemUpsertWithWhereUniqueWithoutUpdatedByInput | Prisma.ItemUpsertWithWhereUniqueWithoutUpdatedByInput[];
509
+ createMany?: Prisma.ItemCreateManyUpdatedByInputEnvelope;
510
+ set?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[];
511
+ disconnect?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[];
512
+ delete?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[];
513
+ connect?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[];
514
+ update?: Prisma.ItemUpdateWithWhereUniqueWithoutUpdatedByInput | Prisma.ItemUpdateWithWhereUniqueWithoutUpdatedByInput[];
515
+ updateMany?: Prisma.ItemUpdateManyWithWhereWithoutUpdatedByInput | Prisma.ItemUpdateManyWithWhereWithoutUpdatedByInput[];
516
+ deleteMany?: Prisma.ItemScalarWhereInput | Prisma.ItemScalarWhereInput[];
517
+ };
518
+ export type ItemUncheckedUpdateManyWithoutCreatedByNestedInput = {
519
+ create?: Prisma.XOR<Prisma.ItemCreateWithoutCreatedByInput, Prisma.ItemUncheckedCreateWithoutCreatedByInput> | Prisma.ItemCreateWithoutCreatedByInput[] | Prisma.ItemUncheckedCreateWithoutCreatedByInput[];
520
+ connectOrCreate?: Prisma.ItemCreateOrConnectWithoutCreatedByInput | Prisma.ItemCreateOrConnectWithoutCreatedByInput[];
521
+ upsert?: Prisma.ItemUpsertWithWhereUniqueWithoutCreatedByInput | Prisma.ItemUpsertWithWhereUniqueWithoutCreatedByInput[];
522
+ createMany?: Prisma.ItemCreateManyCreatedByInputEnvelope;
523
+ set?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[];
524
+ disconnect?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[];
525
+ delete?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[];
526
+ connect?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[];
527
+ update?: Prisma.ItemUpdateWithWhereUniqueWithoutCreatedByInput | Prisma.ItemUpdateWithWhereUniqueWithoutCreatedByInput[];
528
+ updateMany?: Prisma.ItemUpdateManyWithWhereWithoutCreatedByInput | Prisma.ItemUpdateManyWithWhereWithoutCreatedByInput[];
529
+ deleteMany?: Prisma.ItemScalarWhereInput | Prisma.ItemScalarWhereInput[];
530
+ };
531
+ export type ItemUncheckedUpdateManyWithoutUpdatedByNestedInput = {
532
+ create?: Prisma.XOR<Prisma.ItemCreateWithoutUpdatedByInput, Prisma.ItemUncheckedCreateWithoutUpdatedByInput> | Prisma.ItemCreateWithoutUpdatedByInput[] | Prisma.ItemUncheckedCreateWithoutUpdatedByInput[];
533
+ connectOrCreate?: Prisma.ItemCreateOrConnectWithoutUpdatedByInput | Prisma.ItemCreateOrConnectWithoutUpdatedByInput[];
534
+ upsert?: Prisma.ItemUpsertWithWhereUniqueWithoutUpdatedByInput | Prisma.ItemUpsertWithWhereUniqueWithoutUpdatedByInput[];
535
+ createMany?: Prisma.ItemCreateManyUpdatedByInputEnvelope;
536
+ set?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[];
537
+ disconnect?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[];
538
+ delete?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[];
539
+ connect?: Prisma.ItemWhereUniqueInput | Prisma.ItemWhereUniqueInput[];
540
+ update?: Prisma.ItemUpdateWithWhereUniqueWithoutUpdatedByInput | Prisma.ItemUpdateWithWhereUniqueWithoutUpdatedByInput[];
541
+ updateMany?: Prisma.ItemUpdateManyWithWhereWithoutUpdatedByInput | Prisma.ItemUpdateManyWithWhereWithoutUpdatedByInput[];
542
+ deleteMany?: Prisma.ItemScalarWhereInput | Prisma.ItemScalarWhereInput[];
543
+ };
544
+ export type ItemCreateWithoutOrdersInput = {
545
+ key: string;
546
+ description?: string;
547
+ createdAt?: Date | string;
548
+ updatedAt?: Date | string;
549
+ createdBy: Prisma.UserCreateNestedOneWithoutItemsCreatedInput;
550
+ updatedBy: Prisma.UserCreateNestedOneWithoutItemsUpdatedInput;
551
+ fieldSet?: Prisma.FieldSetCreateNestedOneWithoutItemsInput;
552
+ itemInstances?: Prisma.ItemInstanceCreateNestedManyWithoutItemInput;
553
+ };
554
+ export type ItemUncheckedCreateWithoutOrdersInput = {
555
+ id?: number;
556
+ key: string;
557
+ description?: string;
558
+ fieldSetId?: number | null;
559
+ createdAt?: Date | string;
560
+ createdById: number;
561
+ updatedAt?: Date | string;
562
+ updatedById: number;
563
+ itemInstances?: Prisma.ItemInstanceUncheckedCreateNestedManyWithoutItemInput;
564
+ };
565
+ export type ItemCreateOrConnectWithoutOrdersInput = {
566
+ where: Prisma.ItemWhereUniqueInput;
567
+ create: Prisma.XOR<Prisma.ItemCreateWithoutOrdersInput, Prisma.ItemUncheckedCreateWithoutOrdersInput>;
568
+ };
569
+ export type ItemUpsertWithoutOrdersInput = {
570
+ update: Prisma.XOR<Prisma.ItemUpdateWithoutOrdersInput, Prisma.ItemUncheckedUpdateWithoutOrdersInput>;
571
+ create: Prisma.XOR<Prisma.ItemCreateWithoutOrdersInput, Prisma.ItemUncheckedCreateWithoutOrdersInput>;
572
+ where?: Prisma.ItemWhereInput;
573
+ };
574
+ export type ItemUpdateToOneWithWhereWithoutOrdersInput = {
575
+ where?: Prisma.ItemWhereInput;
576
+ data: Prisma.XOR<Prisma.ItemUpdateWithoutOrdersInput, Prisma.ItemUncheckedUpdateWithoutOrdersInput>;
577
+ };
578
+ export type ItemUpdateWithoutOrdersInput = {
579
+ key?: Prisma.StringFieldUpdateOperationsInput | string;
580
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
581
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
582
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
583
+ createdBy?: Prisma.UserUpdateOneRequiredWithoutItemsCreatedNestedInput;
584
+ updatedBy?: Prisma.UserUpdateOneRequiredWithoutItemsUpdatedNestedInput;
585
+ fieldSet?: Prisma.FieldSetUpdateOneWithoutItemsNestedInput;
586
+ itemInstances?: Prisma.ItemInstanceUpdateManyWithoutItemNestedInput;
587
+ };
588
+ export type ItemUncheckedUpdateWithoutOrdersInput = {
589
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
590
+ key?: Prisma.StringFieldUpdateOperationsInput | string;
591
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
592
+ fieldSetId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
593
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
594
+ createdById?: Prisma.IntFieldUpdateOperationsInput | number;
595
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
596
+ updatedById?: Prisma.IntFieldUpdateOperationsInput | number;
597
+ itemInstances?: Prisma.ItemInstanceUncheckedUpdateManyWithoutItemNestedInput;
598
+ };
599
+ export type ItemCreateWithoutFieldSetInput = {
600
+ key: string;
601
+ description?: string;
602
+ createdAt?: Date | string;
603
+ updatedAt?: Date | string;
604
+ createdBy: Prisma.UserCreateNestedOneWithoutItemsCreatedInput;
605
+ updatedBy: Prisma.UserCreateNestedOneWithoutItemsUpdatedInput;
606
+ orders?: Prisma.OrderCreateNestedManyWithoutItemInput;
607
+ itemInstances?: Prisma.ItemInstanceCreateNestedManyWithoutItemInput;
608
+ };
609
+ export type ItemUncheckedCreateWithoutFieldSetInput = {
610
+ id?: number;
611
+ key: string;
612
+ description?: string;
613
+ createdAt?: Date | string;
614
+ createdById: number;
615
+ updatedAt?: Date | string;
616
+ updatedById: number;
617
+ orders?: Prisma.OrderUncheckedCreateNestedManyWithoutItemInput;
618
+ itemInstances?: Prisma.ItemInstanceUncheckedCreateNestedManyWithoutItemInput;
619
+ };
620
+ export type ItemCreateOrConnectWithoutFieldSetInput = {
621
+ where: Prisma.ItemWhereUniqueInput;
622
+ create: Prisma.XOR<Prisma.ItemCreateWithoutFieldSetInput, Prisma.ItemUncheckedCreateWithoutFieldSetInput>;
623
+ };
624
+ export type ItemCreateManyFieldSetInputEnvelope = {
625
+ data: Prisma.ItemCreateManyFieldSetInput | Prisma.ItemCreateManyFieldSetInput[];
626
+ };
627
+ export type ItemUpsertWithWhereUniqueWithoutFieldSetInput = {
628
+ where: Prisma.ItemWhereUniqueInput;
629
+ update: Prisma.XOR<Prisma.ItemUpdateWithoutFieldSetInput, Prisma.ItemUncheckedUpdateWithoutFieldSetInput>;
630
+ create: Prisma.XOR<Prisma.ItemCreateWithoutFieldSetInput, Prisma.ItemUncheckedCreateWithoutFieldSetInput>;
631
+ };
632
+ export type ItemUpdateWithWhereUniqueWithoutFieldSetInput = {
633
+ where: Prisma.ItemWhereUniqueInput;
634
+ data: Prisma.XOR<Prisma.ItemUpdateWithoutFieldSetInput, Prisma.ItemUncheckedUpdateWithoutFieldSetInput>;
635
+ };
636
+ export type ItemUpdateManyWithWhereWithoutFieldSetInput = {
637
+ where: Prisma.ItemScalarWhereInput;
638
+ data: Prisma.XOR<Prisma.ItemUpdateManyMutationInput, Prisma.ItemUncheckedUpdateManyWithoutFieldSetInput>;
639
+ };
640
+ export type ItemScalarWhereInput = {
641
+ AND?: Prisma.ItemScalarWhereInput | Prisma.ItemScalarWhereInput[];
642
+ OR?: Prisma.ItemScalarWhereInput[];
643
+ NOT?: Prisma.ItemScalarWhereInput | Prisma.ItemScalarWhereInput[];
644
+ id?: Prisma.IntFilter<"Item"> | number;
645
+ key?: Prisma.StringFilter<"Item"> | string;
646
+ description?: Prisma.StringFilter<"Item"> | string;
647
+ fieldSetId?: Prisma.IntNullableFilter<"Item"> | number | null;
648
+ createdAt?: Prisma.DateTimeFilter<"Item"> | Date | string;
649
+ createdById?: Prisma.IntFilter<"Item"> | number;
650
+ updatedAt?: Prisma.DateTimeFilter<"Item"> | Date | string;
651
+ updatedById?: Prisma.IntFilter<"Item"> | number;
652
+ };
653
+ export type ItemCreateWithoutItemInstancesInput = {
654
+ key: string;
655
+ description?: string;
656
+ createdAt?: Date | string;
657
+ updatedAt?: Date | string;
658
+ createdBy: Prisma.UserCreateNestedOneWithoutItemsCreatedInput;
659
+ updatedBy: Prisma.UserCreateNestedOneWithoutItemsUpdatedInput;
660
+ fieldSet?: Prisma.FieldSetCreateNestedOneWithoutItemsInput;
661
+ orders?: Prisma.OrderCreateNestedManyWithoutItemInput;
662
+ };
663
+ export type ItemUncheckedCreateWithoutItemInstancesInput = {
664
+ id?: number;
665
+ key: string;
666
+ description?: string;
667
+ fieldSetId?: number | null;
668
+ createdAt?: Date | string;
669
+ createdById: number;
670
+ updatedAt?: Date | string;
671
+ updatedById: number;
672
+ orders?: Prisma.OrderUncheckedCreateNestedManyWithoutItemInput;
673
+ };
674
+ export type ItemCreateOrConnectWithoutItemInstancesInput = {
675
+ where: Prisma.ItemWhereUniqueInput;
676
+ create: Prisma.XOR<Prisma.ItemCreateWithoutItemInstancesInput, Prisma.ItemUncheckedCreateWithoutItemInstancesInput>;
677
+ };
678
+ export type ItemUpsertWithoutItemInstancesInput = {
679
+ update: Prisma.XOR<Prisma.ItemUpdateWithoutItemInstancesInput, Prisma.ItemUncheckedUpdateWithoutItemInstancesInput>;
680
+ create: Prisma.XOR<Prisma.ItemCreateWithoutItemInstancesInput, Prisma.ItemUncheckedCreateWithoutItemInstancesInput>;
681
+ where?: Prisma.ItemWhereInput;
682
+ };
683
+ export type ItemUpdateToOneWithWhereWithoutItemInstancesInput = {
684
+ where?: Prisma.ItemWhereInput;
685
+ data: Prisma.XOR<Prisma.ItemUpdateWithoutItemInstancesInput, Prisma.ItemUncheckedUpdateWithoutItemInstancesInput>;
686
+ };
687
+ export type ItemUpdateWithoutItemInstancesInput = {
688
+ key?: Prisma.StringFieldUpdateOperationsInput | string;
689
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
690
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
691
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
692
+ createdBy?: Prisma.UserUpdateOneRequiredWithoutItemsCreatedNestedInput;
693
+ updatedBy?: Prisma.UserUpdateOneRequiredWithoutItemsUpdatedNestedInput;
694
+ fieldSet?: Prisma.FieldSetUpdateOneWithoutItemsNestedInput;
695
+ orders?: Prisma.OrderUpdateManyWithoutItemNestedInput;
696
+ };
697
+ export type ItemUncheckedUpdateWithoutItemInstancesInput = {
698
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
699
+ key?: Prisma.StringFieldUpdateOperationsInput | string;
700
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
701
+ fieldSetId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
702
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
703
+ createdById?: Prisma.IntFieldUpdateOperationsInput | number;
704
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
705
+ updatedById?: Prisma.IntFieldUpdateOperationsInput | number;
706
+ orders?: Prisma.OrderUncheckedUpdateManyWithoutItemNestedInput;
707
+ };
708
+ export type ItemCreateWithoutCreatedByInput = {
709
+ key: string;
710
+ description?: string;
711
+ createdAt?: Date | string;
712
+ updatedAt?: Date | string;
713
+ updatedBy: Prisma.UserCreateNestedOneWithoutItemsUpdatedInput;
714
+ fieldSet?: Prisma.FieldSetCreateNestedOneWithoutItemsInput;
715
+ orders?: Prisma.OrderCreateNestedManyWithoutItemInput;
716
+ itemInstances?: Prisma.ItemInstanceCreateNestedManyWithoutItemInput;
717
+ };
718
+ export type ItemUncheckedCreateWithoutCreatedByInput = {
719
+ id?: number;
720
+ key: string;
721
+ description?: string;
722
+ fieldSetId?: number | null;
723
+ createdAt?: Date | string;
724
+ updatedAt?: Date | string;
725
+ updatedById: number;
726
+ orders?: Prisma.OrderUncheckedCreateNestedManyWithoutItemInput;
727
+ itemInstances?: Prisma.ItemInstanceUncheckedCreateNestedManyWithoutItemInput;
728
+ };
729
+ export type ItemCreateOrConnectWithoutCreatedByInput = {
730
+ where: Prisma.ItemWhereUniqueInput;
731
+ create: Prisma.XOR<Prisma.ItemCreateWithoutCreatedByInput, Prisma.ItemUncheckedCreateWithoutCreatedByInput>;
732
+ };
733
+ export type ItemCreateManyCreatedByInputEnvelope = {
734
+ data: Prisma.ItemCreateManyCreatedByInput | Prisma.ItemCreateManyCreatedByInput[];
735
+ };
736
+ export type ItemCreateWithoutUpdatedByInput = {
737
+ key: string;
738
+ description?: string;
739
+ createdAt?: Date | string;
740
+ updatedAt?: Date | string;
741
+ createdBy: Prisma.UserCreateNestedOneWithoutItemsCreatedInput;
742
+ fieldSet?: Prisma.FieldSetCreateNestedOneWithoutItemsInput;
743
+ orders?: Prisma.OrderCreateNestedManyWithoutItemInput;
744
+ itemInstances?: Prisma.ItemInstanceCreateNestedManyWithoutItemInput;
745
+ };
746
+ export type ItemUncheckedCreateWithoutUpdatedByInput = {
747
+ id?: number;
748
+ key: string;
749
+ description?: string;
750
+ fieldSetId?: number | null;
751
+ createdAt?: Date | string;
752
+ createdById: number;
753
+ updatedAt?: Date | string;
754
+ orders?: Prisma.OrderUncheckedCreateNestedManyWithoutItemInput;
755
+ itemInstances?: Prisma.ItemInstanceUncheckedCreateNestedManyWithoutItemInput;
756
+ };
757
+ export type ItemCreateOrConnectWithoutUpdatedByInput = {
758
+ where: Prisma.ItemWhereUniqueInput;
759
+ create: Prisma.XOR<Prisma.ItemCreateWithoutUpdatedByInput, Prisma.ItemUncheckedCreateWithoutUpdatedByInput>;
760
+ };
761
+ export type ItemCreateManyUpdatedByInputEnvelope = {
762
+ data: Prisma.ItemCreateManyUpdatedByInput | Prisma.ItemCreateManyUpdatedByInput[];
763
+ };
764
+ export type ItemUpsertWithWhereUniqueWithoutCreatedByInput = {
765
+ where: Prisma.ItemWhereUniqueInput;
766
+ update: Prisma.XOR<Prisma.ItemUpdateWithoutCreatedByInput, Prisma.ItemUncheckedUpdateWithoutCreatedByInput>;
767
+ create: Prisma.XOR<Prisma.ItemCreateWithoutCreatedByInput, Prisma.ItemUncheckedCreateWithoutCreatedByInput>;
768
+ };
769
+ export type ItemUpdateWithWhereUniqueWithoutCreatedByInput = {
770
+ where: Prisma.ItemWhereUniqueInput;
771
+ data: Prisma.XOR<Prisma.ItemUpdateWithoutCreatedByInput, Prisma.ItemUncheckedUpdateWithoutCreatedByInput>;
772
+ };
773
+ export type ItemUpdateManyWithWhereWithoutCreatedByInput = {
774
+ where: Prisma.ItemScalarWhereInput;
775
+ data: Prisma.XOR<Prisma.ItemUpdateManyMutationInput, Prisma.ItemUncheckedUpdateManyWithoutCreatedByInput>;
776
+ };
777
+ export type ItemUpsertWithWhereUniqueWithoutUpdatedByInput = {
778
+ where: Prisma.ItemWhereUniqueInput;
779
+ update: Prisma.XOR<Prisma.ItemUpdateWithoutUpdatedByInput, Prisma.ItemUncheckedUpdateWithoutUpdatedByInput>;
780
+ create: Prisma.XOR<Prisma.ItemCreateWithoutUpdatedByInput, Prisma.ItemUncheckedCreateWithoutUpdatedByInput>;
781
+ };
782
+ export type ItemUpdateWithWhereUniqueWithoutUpdatedByInput = {
783
+ where: Prisma.ItemWhereUniqueInput;
784
+ data: Prisma.XOR<Prisma.ItemUpdateWithoutUpdatedByInput, Prisma.ItemUncheckedUpdateWithoutUpdatedByInput>;
785
+ };
786
+ export type ItemUpdateManyWithWhereWithoutUpdatedByInput = {
787
+ where: Prisma.ItemScalarWhereInput;
788
+ data: Prisma.XOR<Prisma.ItemUpdateManyMutationInput, Prisma.ItemUncheckedUpdateManyWithoutUpdatedByInput>;
789
+ };
790
+ export type ItemCreateManyFieldSetInput = {
791
+ id?: number;
792
+ key: string;
793
+ description?: string;
794
+ createdAt?: Date | string;
795
+ createdById: number;
796
+ updatedAt?: Date | string;
797
+ updatedById: number;
798
+ };
799
+ export type ItemUpdateWithoutFieldSetInput = {
800
+ key?: Prisma.StringFieldUpdateOperationsInput | string;
801
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
802
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
803
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
804
+ createdBy?: Prisma.UserUpdateOneRequiredWithoutItemsCreatedNestedInput;
805
+ updatedBy?: Prisma.UserUpdateOneRequiredWithoutItemsUpdatedNestedInput;
806
+ orders?: Prisma.OrderUpdateManyWithoutItemNestedInput;
807
+ itemInstances?: Prisma.ItemInstanceUpdateManyWithoutItemNestedInput;
808
+ };
809
+ export type ItemUncheckedUpdateWithoutFieldSetInput = {
810
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
811
+ key?: Prisma.StringFieldUpdateOperationsInput | string;
812
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
813
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
814
+ createdById?: Prisma.IntFieldUpdateOperationsInput | number;
815
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
816
+ updatedById?: Prisma.IntFieldUpdateOperationsInput | number;
817
+ orders?: Prisma.OrderUncheckedUpdateManyWithoutItemNestedInput;
818
+ itemInstances?: Prisma.ItemInstanceUncheckedUpdateManyWithoutItemNestedInput;
819
+ };
820
+ export type ItemUncheckedUpdateManyWithoutFieldSetInput = {
821
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
822
+ key?: Prisma.StringFieldUpdateOperationsInput | string;
823
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
824
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
825
+ createdById?: Prisma.IntFieldUpdateOperationsInput | number;
826
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
827
+ updatedById?: Prisma.IntFieldUpdateOperationsInput | number;
828
+ };
829
+ export type ItemCreateManyCreatedByInput = {
830
+ id?: number;
831
+ key: string;
832
+ description?: string;
833
+ fieldSetId?: number | null;
834
+ createdAt?: Date | string;
835
+ updatedAt?: Date | string;
836
+ updatedById: number;
837
+ };
838
+ export type ItemCreateManyUpdatedByInput = {
839
+ id?: number;
840
+ key: string;
841
+ description?: string;
842
+ fieldSetId?: number | null;
843
+ createdAt?: Date | string;
844
+ createdById: number;
845
+ updatedAt?: Date | string;
846
+ };
847
+ export type ItemUpdateWithoutCreatedByInput = {
848
+ key?: Prisma.StringFieldUpdateOperationsInput | string;
849
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
850
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
851
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
852
+ updatedBy?: Prisma.UserUpdateOneRequiredWithoutItemsUpdatedNestedInput;
853
+ fieldSet?: Prisma.FieldSetUpdateOneWithoutItemsNestedInput;
854
+ orders?: Prisma.OrderUpdateManyWithoutItemNestedInput;
855
+ itemInstances?: Prisma.ItemInstanceUpdateManyWithoutItemNestedInput;
856
+ };
857
+ export type ItemUncheckedUpdateWithoutCreatedByInput = {
858
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
859
+ key?: Prisma.StringFieldUpdateOperationsInput | string;
860
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
861
+ fieldSetId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
862
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
863
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
864
+ updatedById?: Prisma.IntFieldUpdateOperationsInput | number;
865
+ orders?: Prisma.OrderUncheckedUpdateManyWithoutItemNestedInput;
866
+ itemInstances?: Prisma.ItemInstanceUncheckedUpdateManyWithoutItemNestedInput;
867
+ };
868
+ export type ItemUncheckedUpdateManyWithoutCreatedByInput = {
869
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
870
+ key?: Prisma.StringFieldUpdateOperationsInput | string;
871
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
872
+ fieldSetId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
873
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
874
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
875
+ updatedById?: Prisma.IntFieldUpdateOperationsInput | number;
876
+ };
877
+ export type ItemUpdateWithoutUpdatedByInput = {
878
+ key?: Prisma.StringFieldUpdateOperationsInput | string;
879
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
880
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
881
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
882
+ createdBy?: Prisma.UserUpdateOneRequiredWithoutItemsCreatedNestedInput;
883
+ fieldSet?: Prisma.FieldSetUpdateOneWithoutItemsNestedInput;
884
+ orders?: Prisma.OrderUpdateManyWithoutItemNestedInput;
885
+ itemInstances?: Prisma.ItemInstanceUpdateManyWithoutItemNestedInput;
886
+ };
887
+ export type ItemUncheckedUpdateWithoutUpdatedByInput = {
888
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
889
+ key?: Prisma.StringFieldUpdateOperationsInput | string;
890
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
891
+ fieldSetId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
892
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
893
+ createdById?: Prisma.IntFieldUpdateOperationsInput | number;
894
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
895
+ orders?: Prisma.OrderUncheckedUpdateManyWithoutItemNestedInput;
896
+ itemInstances?: Prisma.ItemInstanceUncheckedUpdateManyWithoutItemNestedInput;
897
+ };
898
+ export type ItemUncheckedUpdateManyWithoutUpdatedByInput = {
899
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
900
+ key?: Prisma.StringFieldUpdateOperationsInput | string;
901
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
902
+ fieldSetId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
903
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
904
+ createdById?: Prisma.IntFieldUpdateOperationsInput | number;
905
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
906
+ };
907
+ /**
908
+ * Count Type ItemCountOutputType
909
+ */
910
+ export type ItemCountOutputType = {
911
+ orders: number;
912
+ itemInstances: number;
913
+ };
914
+ export type ItemCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
915
+ orders?: boolean | ItemCountOutputTypeCountOrdersArgs;
916
+ itemInstances?: boolean | ItemCountOutputTypeCountItemInstancesArgs;
917
+ };
918
+ /**
919
+ * ItemCountOutputType without action
920
+ */
921
+ export type ItemCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
922
+ /**
923
+ * Select specific fields to fetch from the ItemCountOutputType
924
+ */
925
+ select?: Prisma.ItemCountOutputTypeSelect<ExtArgs> | null;
926
+ };
927
+ /**
928
+ * ItemCountOutputType without action
929
+ */
930
+ export type ItemCountOutputTypeCountOrdersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
931
+ where?: Prisma.OrderWhereInput;
932
+ };
933
+ /**
934
+ * ItemCountOutputType without action
935
+ */
936
+ export type ItemCountOutputTypeCountItemInstancesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
937
+ where?: Prisma.ItemInstanceWhereInput;
938
+ };
939
+ export type ItemSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
940
+ id?: boolean;
941
+ key?: boolean;
942
+ description?: boolean;
943
+ fieldSetId?: boolean;
944
+ createdAt?: boolean;
945
+ createdById?: boolean;
946
+ updatedAt?: boolean;
947
+ updatedById?: boolean;
948
+ createdBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
949
+ updatedBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
950
+ fieldSet?: boolean | Prisma.Item$fieldSetArgs<ExtArgs>;
951
+ orders?: boolean | Prisma.Item$ordersArgs<ExtArgs>;
952
+ itemInstances?: boolean | Prisma.Item$itemInstancesArgs<ExtArgs>;
953
+ _count?: boolean | Prisma.ItemCountOutputTypeDefaultArgs<ExtArgs>;
954
+ }, ExtArgs["result"]["item"]>;
955
+ export type ItemSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
956
+ id?: boolean;
957
+ key?: boolean;
958
+ description?: boolean;
959
+ fieldSetId?: boolean;
960
+ createdAt?: boolean;
961
+ createdById?: boolean;
962
+ updatedAt?: boolean;
963
+ updatedById?: boolean;
964
+ createdBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
965
+ updatedBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
966
+ fieldSet?: boolean | Prisma.Item$fieldSetArgs<ExtArgs>;
967
+ }, ExtArgs["result"]["item"]>;
968
+ export type ItemSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
969
+ id?: boolean;
970
+ key?: boolean;
971
+ description?: boolean;
972
+ fieldSetId?: boolean;
973
+ createdAt?: boolean;
974
+ createdById?: boolean;
975
+ updatedAt?: boolean;
976
+ updatedById?: boolean;
977
+ createdBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
978
+ updatedBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
979
+ fieldSet?: boolean | Prisma.Item$fieldSetArgs<ExtArgs>;
980
+ }, ExtArgs["result"]["item"]>;
981
+ export type ItemSelectScalar = {
982
+ id?: boolean;
983
+ key?: boolean;
984
+ description?: boolean;
985
+ fieldSetId?: boolean;
986
+ createdAt?: boolean;
987
+ createdById?: boolean;
988
+ updatedAt?: boolean;
989
+ updatedById?: boolean;
990
+ };
991
+ export type ItemOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "key" | "description" | "fieldSetId" | "createdAt" | "createdById" | "updatedAt" | "updatedById", ExtArgs["result"]["item"]>;
992
+ export type ItemInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
993
+ createdBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
994
+ updatedBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
995
+ fieldSet?: boolean | Prisma.Item$fieldSetArgs<ExtArgs>;
996
+ orders?: boolean | Prisma.Item$ordersArgs<ExtArgs>;
997
+ itemInstances?: boolean | Prisma.Item$itemInstancesArgs<ExtArgs>;
998
+ _count?: boolean | Prisma.ItemCountOutputTypeDefaultArgs<ExtArgs>;
999
+ };
1000
+ export type ItemIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1001
+ createdBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
1002
+ updatedBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
1003
+ fieldSet?: boolean | Prisma.Item$fieldSetArgs<ExtArgs>;
1004
+ };
1005
+ export type ItemIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1006
+ createdBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
1007
+ updatedBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
1008
+ fieldSet?: boolean | Prisma.Item$fieldSetArgs<ExtArgs>;
1009
+ };
1010
+ export type $ItemPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1011
+ name: "Item";
1012
+ objects: {
1013
+ createdBy: Prisma.$UserPayload<ExtArgs>;
1014
+ updatedBy: Prisma.$UserPayload<ExtArgs>;
1015
+ fieldSet: Prisma.$FieldSetPayload<ExtArgs> | null;
1016
+ orders: Prisma.$OrderPayload<ExtArgs>[];
1017
+ itemInstances: Prisma.$ItemInstancePayload<ExtArgs>[];
1018
+ };
1019
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
1020
+ id: number;
1021
+ key: string;
1022
+ description: string;
1023
+ fieldSetId: number | null;
1024
+ createdAt: Date;
1025
+ createdById: number;
1026
+ updatedAt: Date;
1027
+ updatedById: number;
1028
+ }, ExtArgs["result"]["item"]>;
1029
+ composites: {};
1030
+ };
1031
+ export type ItemGetPayload<S extends boolean | null | undefined | ItemDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ItemPayload, S>;
1032
+ export type ItemCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<ItemFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
1033
+ select?: ItemCountAggregateInputType | true;
1034
+ };
1035
+ export interface ItemDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
1036
+ [K: symbol]: {
1037
+ types: Prisma.TypeMap<ExtArgs>['model']['Item'];
1038
+ meta: {
1039
+ name: 'Item';
1040
+ };
1041
+ };
1042
+ /**
1043
+ * Find zero or one Item that matches the filter.
1044
+ * @param {ItemFindUniqueArgs} args - Arguments to find a Item
1045
+ * @example
1046
+ * // Get one Item
1047
+ * const item = await prisma.item.findUnique({
1048
+ * where: {
1049
+ * // ... provide filter here
1050
+ * }
1051
+ * })
1052
+ */
1053
+ findUnique<T extends ItemFindUniqueArgs>(args: Prisma.SelectSubset<T, ItemFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ItemClient<runtime.Types.Result.GetResult<Prisma.$ItemPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1054
+ /**
1055
+ * Find one Item that matches the filter or throw an error with `error.code='P2025'`
1056
+ * if no matches were found.
1057
+ * @param {ItemFindUniqueOrThrowArgs} args - Arguments to find a Item
1058
+ * @example
1059
+ * // Get one Item
1060
+ * const item = await prisma.item.findUniqueOrThrow({
1061
+ * where: {
1062
+ * // ... provide filter here
1063
+ * }
1064
+ * })
1065
+ */
1066
+ findUniqueOrThrow<T extends ItemFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ItemFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ItemClient<runtime.Types.Result.GetResult<Prisma.$ItemPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1067
+ /**
1068
+ * Find the first Item that matches the filter.
1069
+ * Note, that providing `undefined` is treated as the value not being there.
1070
+ * Read more here: https://pris.ly/d/null-undefined
1071
+ * @param {ItemFindFirstArgs} args - Arguments to find a Item
1072
+ * @example
1073
+ * // Get one Item
1074
+ * const item = await prisma.item.findFirst({
1075
+ * where: {
1076
+ * // ... provide filter here
1077
+ * }
1078
+ * })
1079
+ */
1080
+ findFirst<T extends ItemFindFirstArgs>(args?: Prisma.SelectSubset<T, ItemFindFirstArgs<ExtArgs>>): Prisma.Prisma__ItemClient<runtime.Types.Result.GetResult<Prisma.$ItemPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1081
+ /**
1082
+ * Find the first Item that matches the filter or
1083
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1084
+ * Note, that providing `undefined` is treated as the value not being there.
1085
+ * Read more here: https://pris.ly/d/null-undefined
1086
+ * @param {ItemFindFirstOrThrowArgs} args - Arguments to find a Item
1087
+ * @example
1088
+ * // Get one Item
1089
+ * const item = await prisma.item.findFirstOrThrow({
1090
+ * where: {
1091
+ * // ... provide filter here
1092
+ * }
1093
+ * })
1094
+ */
1095
+ findFirstOrThrow<T extends ItemFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ItemFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ItemClient<runtime.Types.Result.GetResult<Prisma.$ItemPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1096
+ /**
1097
+ * Find zero or more Items that matches the filter.
1098
+ * Note, that providing `undefined` is treated as the value not being there.
1099
+ * Read more here: https://pris.ly/d/null-undefined
1100
+ * @param {ItemFindManyArgs} args - Arguments to filter and select certain fields only.
1101
+ * @example
1102
+ * // Get all Items
1103
+ * const items = await prisma.item.findMany()
1104
+ *
1105
+ * // Get first 10 Items
1106
+ * const items = await prisma.item.findMany({ take: 10 })
1107
+ *
1108
+ * // Only select the `id`
1109
+ * const itemWithIdOnly = await prisma.item.findMany({ select: { id: true } })
1110
+ *
1111
+ */
1112
+ findMany<T extends ItemFindManyArgs>(args?: Prisma.SelectSubset<T, ItemFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ItemPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
1113
+ /**
1114
+ * Create a Item.
1115
+ * @param {ItemCreateArgs} args - Arguments to create a Item.
1116
+ * @example
1117
+ * // Create one Item
1118
+ * const Item = await prisma.item.create({
1119
+ * data: {
1120
+ * // ... data to create a Item
1121
+ * }
1122
+ * })
1123
+ *
1124
+ */
1125
+ create<T extends ItemCreateArgs>(args: Prisma.SelectSubset<T, ItemCreateArgs<ExtArgs>>): Prisma.Prisma__ItemClient<runtime.Types.Result.GetResult<Prisma.$ItemPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1126
+ /**
1127
+ * Create many Items.
1128
+ * @param {ItemCreateManyArgs} args - Arguments to create many Items.
1129
+ * @example
1130
+ * // Create many Items
1131
+ * const item = await prisma.item.createMany({
1132
+ * data: [
1133
+ * // ... provide data here
1134
+ * ]
1135
+ * })
1136
+ *
1137
+ */
1138
+ createMany<T extends ItemCreateManyArgs>(args?: Prisma.SelectSubset<T, ItemCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1139
+ /**
1140
+ * Create many Items and returns the data saved in the database.
1141
+ * @param {ItemCreateManyAndReturnArgs} args - Arguments to create many Items.
1142
+ * @example
1143
+ * // Create many Items
1144
+ * const item = await prisma.item.createManyAndReturn({
1145
+ * data: [
1146
+ * // ... provide data here
1147
+ * ]
1148
+ * })
1149
+ *
1150
+ * // Create many Items and only return the `id`
1151
+ * const itemWithIdOnly = await prisma.item.createManyAndReturn({
1152
+ * select: { id: true },
1153
+ * data: [
1154
+ * // ... provide data here
1155
+ * ]
1156
+ * })
1157
+ * Note, that providing `undefined` is treated as the value not being there.
1158
+ * Read more here: https://pris.ly/d/null-undefined
1159
+ *
1160
+ */
1161
+ createManyAndReturn<T extends ItemCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ItemCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ItemPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
1162
+ /**
1163
+ * Delete a Item.
1164
+ * @param {ItemDeleteArgs} args - Arguments to delete one Item.
1165
+ * @example
1166
+ * // Delete one Item
1167
+ * const Item = await prisma.item.delete({
1168
+ * where: {
1169
+ * // ... filter to delete one Item
1170
+ * }
1171
+ * })
1172
+ *
1173
+ */
1174
+ delete<T extends ItemDeleteArgs>(args: Prisma.SelectSubset<T, ItemDeleteArgs<ExtArgs>>): Prisma.Prisma__ItemClient<runtime.Types.Result.GetResult<Prisma.$ItemPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1175
+ /**
1176
+ * Update one Item.
1177
+ * @param {ItemUpdateArgs} args - Arguments to update one Item.
1178
+ * @example
1179
+ * // Update one Item
1180
+ * const item = await prisma.item.update({
1181
+ * where: {
1182
+ * // ... provide filter here
1183
+ * },
1184
+ * data: {
1185
+ * // ... provide data here
1186
+ * }
1187
+ * })
1188
+ *
1189
+ */
1190
+ update<T extends ItemUpdateArgs>(args: Prisma.SelectSubset<T, ItemUpdateArgs<ExtArgs>>): Prisma.Prisma__ItemClient<runtime.Types.Result.GetResult<Prisma.$ItemPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1191
+ /**
1192
+ * Delete zero or more Items.
1193
+ * @param {ItemDeleteManyArgs} args - Arguments to filter Items to delete.
1194
+ * @example
1195
+ * // Delete a few Items
1196
+ * const { count } = await prisma.item.deleteMany({
1197
+ * where: {
1198
+ * // ... provide filter here
1199
+ * }
1200
+ * })
1201
+ *
1202
+ */
1203
+ deleteMany<T extends ItemDeleteManyArgs>(args?: Prisma.SelectSubset<T, ItemDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1204
+ /**
1205
+ * Update zero or more Items.
1206
+ * Note, that providing `undefined` is treated as the value not being there.
1207
+ * Read more here: https://pris.ly/d/null-undefined
1208
+ * @param {ItemUpdateManyArgs} args - Arguments to update one or more rows.
1209
+ * @example
1210
+ * // Update many Items
1211
+ * const item = await prisma.item.updateMany({
1212
+ * where: {
1213
+ * // ... provide filter here
1214
+ * },
1215
+ * data: {
1216
+ * // ... provide data here
1217
+ * }
1218
+ * })
1219
+ *
1220
+ */
1221
+ updateMany<T extends ItemUpdateManyArgs>(args: Prisma.SelectSubset<T, ItemUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1222
+ /**
1223
+ * Update zero or more Items and returns the data updated in the database.
1224
+ * @param {ItemUpdateManyAndReturnArgs} args - Arguments to update many Items.
1225
+ * @example
1226
+ * // Update many Items
1227
+ * const item = await prisma.item.updateManyAndReturn({
1228
+ * where: {
1229
+ * // ... provide filter here
1230
+ * },
1231
+ * data: [
1232
+ * // ... provide data here
1233
+ * ]
1234
+ * })
1235
+ *
1236
+ * // Update zero or more Items and only return the `id`
1237
+ * const itemWithIdOnly = await prisma.item.updateManyAndReturn({
1238
+ * select: { id: true },
1239
+ * where: {
1240
+ * // ... provide filter here
1241
+ * },
1242
+ * data: [
1243
+ * // ... provide data here
1244
+ * ]
1245
+ * })
1246
+ * Note, that providing `undefined` is treated as the value not being there.
1247
+ * Read more here: https://pris.ly/d/null-undefined
1248
+ *
1249
+ */
1250
+ updateManyAndReturn<T extends ItemUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ItemUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ItemPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
1251
+ /**
1252
+ * Create or update one Item.
1253
+ * @param {ItemUpsertArgs} args - Arguments to update or create a Item.
1254
+ * @example
1255
+ * // Update or create a Item
1256
+ * const item = await prisma.item.upsert({
1257
+ * create: {
1258
+ * // ... data to create a Item
1259
+ * },
1260
+ * update: {
1261
+ * // ... in case it already exists, update
1262
+ * },
1263
+ * where: {
1264
+ * // ... the filter for the Item we want to update
1265
+ * }
1266
+ * })
1267
+ */
1268
+ upsert<T extends ItemUpsertArgs>(args: Prisma.SelectSubset<T, ItemUpsertArgs<ExtArgs>>): Prisma.Prisma__ItemClient<runtime.Types.Result.GetResult<Prisma.$ItemPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1269
+ /**
1270
+ * Count the number of Items.
1271
+ * Note, that providing `undefined` is treated as the value not being there.
1272
+ * Read more here: https://pris.ly/d/null-undefined
1273
+ * @param {ItemCountArgs} args - Arguments to filter Items to count.
1274
+ * @example
1275
+ * // Count the number of Items
1276
+ * const count = await prisma.item.count({
1277
+ * where: {
1278
+ * // ... the filter for the Items we want to count
1279
+ * }
1280
+ * })
1281
+ **/
1282
+ count<T extends ItemCountArgs>(args?: Prisma.Subset<T, ItemCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], ItemCountAggregateOutputType> : number>;
1283
+ /**
1284
+ * Allows you to perform aggregations operations on a Item.
1285
+ * Note, that providing `undefined` is treated as the value not being there.
1286
+ * Read more here: https://pris.ly/d/null-undefined
1287
+ * @param {ItemAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1288
+ * @example
1289
+ * // Ordered by age ascending
1290
+ * // Where email contains prisma.io
1291
+ * // Limited to the 10 users
1292
+ * const aggregations = await prisma.user.aggregate({
1293
+ * _avg: {
1294
+ * age: true,
1295
+ * },
1296
+ * where: {
1297
+ * email: {
1298
+ * contains: "prisma.io",
1299
+ * },
1300
+ * },
1301
+ * orderBy: {
1302
+ * age: "asc",
1303
+ * },
1304
+ * take: 10,
1305
+ * })
1306
+ **/
1307
+ aggregate<T extends ItemAggregateArgs>(args: Prisma.Subset<T, ItemAggregateArgs>): Prisma.PrismaPromise<GetItemAggregateType<T>>;
1308
+ /**
1309
+ * Group by Item.
1310
+ * Note, that providing `undefined` is treated as the value not being there.
1311
+ * Read more here: https://pris.ly/d/null-undefined
1312
+ * @param {ItemGroupByArgs} args - Group by arguments.
1313
+ * @example
1314
+ * // Group by city, order by createdAt, get count
1315
+ * const result = await prisma.user.groupBy({
1316
+ * by: ['city', 'createdAt'],
1317
+ * orderBy: {
1318
+ * createdAt: true
1319
+ * },
1320
+ * _count: {
1321
+ * _all: true
1322
+ * },
1323
+ * })
1324
+ *
1325
+ **/
1326
+ groupBy<T extends ItemGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
1327
+ orderBy: ItemGroupByArgs['orderBy'];
1328
+ } : {
1329
+ orderBy?: ItemGroupByArgs['orderBy'];
1330
+ }, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
1331
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
1332
+ Error,
1333
+ 'Field ',
1334
+ P,
1335
+ ` in "having" needs to be provided in "by"`
1336
+ ];
1337
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1338
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1339
+ }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1340
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1341
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1342
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1343
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, ItemGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetItemGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1344
+ /**
1345
+ * Fields of the Item model
1346
+ */
1347
+ readonly fields: ItemFieldRefs;
1348
+ }
1349
+ /**
1350
+ * The delegate class that acts as a "Promise-like" for Item.
1351
+ * Why is this prefixed with `Prisma__`?
1352
+ * Because we want to prevent naming conflicts as mentioned in
1353
+ * https://github.com/prisma/prisma-client-js/issues/707
1354
+ */
1355
+ export interface Prisma__ItemClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1356
+ readonly [Symbol.toStringTag]: "PrismaPromise";
1357
+ createdBy<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1358
+ updatedBy<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1359
+ fieldSet<T extends Prisma.Item$fieldSetArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Item$fieldSetArgs<ExtArgs>>): Prisma.Prisma__FieldSetClient<runtime.Types.Result.GetResult<Prisma.$FieldSetPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1360
+ orders<T extends Prisma.Item$ordersArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Item$ordersArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OrderPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1361
+ itemInstances<T extends Prisma.Item$itemInstancesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Item$itemInstancesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ItemInstancePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1362
+ /**
1363
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1364
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1365
+ * @param onrejected The callback to execute when the Promise is rejected.
1366
+ * @returns A Promise for the completion of which ever callback is executed.
1367
+ */
1368
+ 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>;
1369
+ /**
1370
+ * Attaches a callback for only the rejection of the Promise.
1371
+ * @param onrejected The callback to execute when the Promise is rejected.
1372
+ * @returns A Promise for the completion of the callback.
1373
+ */
1374
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1375
+ /**
1376
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1377
+ * resolved value cannot be modified from the callback.
1378
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1379
+ * @returns A Promise for the completion of the callback.
1380
+ */
1381
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1382
+ }
1383
+ /**
1384
+ * Fields of the Item model
1385
+ */
1386
+ export interface ItemFieldRefs {
1387
+ readonly id: Prisma.FieldRef<"Item", 'Int'>;
1388
+ readonly key: Prisma.FieldRef<"Item", 'String'>;
1389
+ readonly description: Prisma.FieldRef<"Item", 'String'>;
1390
+ readonly fieldSetId: Prisma.FieldRef<"Item", 'Int'>;
1391
+ readonly createdAt: Prisma.FieldRef<"Item", 'DateTime'>;
1392
+ readonly createdById: Prisma.FieldRef<"Item", 'Int'>;
1393
+ readonly updatedAt: Prisma.FieldRef<"Item", 'DateTime'>;
1394
+ readonly updatedById: Prisma.FieldRef<"Item", 'Int'>;
1395
+ }
1396
+ /**
1397
+ * Item findUnique
1398
+ */
1399
+ export type ItemFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1400
+ /**
1401
+ * Select specific fields to fetch from the Item
1402
+ */
1403
+ select?: Prisma.ItemSelect<ExtArgs> | null;
1404
+ /**
1405
+ * Omit specific fields from the Item
1406
+ */
1407
+ omit?: Prisma.ItemOmit<ExtArgs> | null;
1408
+ /**
1409
+ * Choose, which related nodes to fetch as well
1410
+ */
1411
+ include?: Prisma.ItemInclude<ExtArgs> | null;
1412
+ /**
1413
+ * Filter, which Item to fetch.
1414
+ */
1415
+ where: Prisma.ItemWhereUniqueInput;
1416
+ };
1417
+ /**
1418
+ * Item findUniqueOrThrow
1419
+ */
1420
+ export type ItemFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1421
+ /**
1422
+ * Select specific fields to fetch from the Item
1423
+ */
1424
+ select?: Prisma.ItemSelect<ExtArgs> | null;
1425
+ /**
1426
+ * Omit specific fields from the Item
1427
+ */
1428
+ omit?: Prisma.ItemOmit<ExtArgs> | null;
1429
+ /**
1430
+ * Choose, which related nodes to fetch as well
1431
+ */
1432
+ include?: Prisma.ItemInclude<ExtArgs> | null;
1433
+ /**
1434
+ * Filter, which Item to fetch.
1435
+ */
1436
+ where: Prisma.ItemWhereUniqueInput;
1437
+ };
1438
+ /**
1439
+ * Item findFirst
1440
+ */
1441
+ export type ItemFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1442
+ /**
1443
+ * Select specific fields to fetch from the Item
1444
+ */
1445
+ select?: Prisma.ItemSelect<ExtArgs> | null;
1446
+ /**
1447
+ * Omit specific fields from the Item
1448
+ */
1449
+ omit?: Prisma.ItemOmit<ExtArgs> | null;
1450
+ /**
1451
+ * Choose, which related nodes to fetch as well
1452
+ */
1453
+ include?: Prisma.ItemInclude<ExtArgs> | null;
1454
+ /**
1455
+ * Filter, which Item to fetch.
1456
+ */
1457
+ where?: Prisma.ItemWhereInput;
1458
+ /**
1459
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1460
+ *
1461
+ * Determine the order of Items to fetch.
1462
+ */
1463
+ orderBy?: Prisma.ItemOrderByWithRelationInput | Prisma.ItemOrderByWithRelationInput[];
1464
+ /**
1465
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1466
+ *
1467
+ * Sets the position for searching for Items.
1468
+ */
1469
+ cursor?: Prisma.ItemWhereUniqueInput;
1470
+ /**
1471
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1472
+ *
1473
+ * Take `±n` Items from the position of the cursor.
1474
+ */
1475
+ take?: number;
1476
+ /**
1477
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1478
+ *
1479
+ * Skip the first `n` Items.
1480
+ */
1481
+ skip?: number;
1482
+ /**
1483
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1484
+ *
1485
+ * Filter by unique combinations of Items.
1486
+ */
1487
+ distinct?: Prisma.ItemScalarFieldEnum | Prisma.ItemScalarFieldEnum[];
1488
+ };
1489
+ /**
1490
+ * Item findFirstOrThrow
1491
+ */
1492
+ export type ItemFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1493
+ /**
1494
+ * Select specific fields to fetch from the Item
1495
+ */
1496
+ select?: Prisma.ItemSelect<ExtArgs> | null;
1497
+ /**
1498
+ * Omit specific fields from the Item
1499
+ */
1500
+ omit?: Prisma.ItemOmit<ExtArgs> | null;
1501
+ /**
1502
+ * Choose, which related nodes to fetch as well
1503
+ */
1504
+ include?: Prisma.ItemInclude<ExtArgs> | null;
1505
+ /**
1506
+ * Filter, which Item to fetch.
1507
+ */
1508
+ where?: Prisma.ItemWhereInput;
1509
+ /**
1510
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1511
+ *
1512
+ * Determine the order of Items to fetch.
1513
+ */
1514
+ orderBy?: Prisma.ItemOrderByWithRelationInput | Prisma.ItemOrderByWithRelationInput[];
1515
+ /**
1516
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1517
+ *
1518
+ * Sets the position for searching for Items.
1519
+ */
1520
+ cursor?: Prisma.ItemWhereUniqueInput;
1521
+ /**
1522
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1523
+ *
1524
+ * Take `±n` Items from the position of the cursor.
1525
+ */
1526
+ take?: number;
1527
+ /**
1528
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1529
+ *
1530
+ * Skip the first `n` Items.
1531
+ */
1532
+ skip?: number;
1533
+ /**
1534
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1535
+ *
1536
+ * Filter by unique combinations of Items.
1537
+ */
1538
+ distinct?: Prisma.ItemScalarFieldEnum | Prisma.ItemScalarFieldEnum[];
1539
+ };
1540
+ /**
1541
+ * Item findMany
1542
+ */
1543
+ export type ItemFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1544
+ /**
1545
+ * Select specific fields to fetch from the Item
1546
+ */
1547
+ select?: Prisma.ItemSelect<ExtArgs> | null;
1548
+ /**
1549
+ * Omit specific fields from the Item
1550
+ */
1551
+ omit?: Prisma.ItemOmit<ExtArgs> | null;
1552
+ /**
1553
+ * Choose, which related nodes to fetch as well
1554
+ */
1555
+ include?: Prisma.ItemInclude<ExtArgs> | null;
1556
+ /**
1557
+ * Filter, which Items to fetch.
1558
+ */
1559
+ where?: Prisma.ItemWhereInput;
1560
+ /**
1561
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1562
+ *
1563
+ * Determine the order of Items to fetch.
1564
+ */
1565
+ orderBy?: Prisma.ItemOrderByWithRelationInput | Prisma.ItemOrderByWithRelationInput[];
1566
+ /**
1567
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1568
+ *
1569
+ * Sets the position for listing Items.
1570
+ */
1571
+ cursor?: Prisma.ItemWhereUniqueInput;
1572
+ /**
1573
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1574
+ *
1575
+ * Take `±n` Items from the position of the cursor.
1576
+ */
1577
+ take?: number;
1578
+ /**
1579
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1580
+ *
1581
+ * Skip the first `n` Items.
1582
+ */
1583
+ skip?: number;
1584
+ /**
1585
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1586
+ *
1587
+ * Filter by unique combinations of Items.
1588
+ */
1589
+ distinct?: Prisma.ItemScalarFieldEnum | Prisma.ItemScalarFieldEnum[];
1590
+ };
1591
+ /**
1592
+ * Item create
1593
+ */
1594
+ export type ItemCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1595
+ /**
1596
+ * Select specific fields to fetch from the Item
1597
+ */
1598
+ select?: Prisma.ItemSelect<ExtArgs> | null;
1599
+ /**
1600
+ * Omit specific fields from the Item
1601
+ */
1602
+ omit?: Prisma.ItemOmit<ExtArgs> | null;
1603
+ /**
1604
+ * Choose, which related nodes to fetch as well
1605
+ */
1606
+ include?: Prisma.ItemInclude<ExtArgs> | null;
1607
+ /**
1608
+ * The data needed to create a Item.
1609
+ */
1610
+ data: Prisma.XOR<Prisma.ItemCreateInput, Prisma.ItemUncheckedCreateInput>;
1611
+ };
1612
+ /**
1613
+ * Item createMany
1614
+ */
1615
+ export type ItemCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1616
+ /**
1617
+ * The data used to create many Items.
1618
+ */
1619
+ data: Prisma.ItemCreateManyInput | Prisma.ItemCreateManyInput[];
1620
+ };
1621
+ /**
1622
+ * Item createManyAndReturn
1623
+ */
1624
+ export type ItemCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1625
+ /**
1626
+ * Select specific fields to fetch from the Item
1627
+ */
1628
+ select?: Prisma.ItemSelectCreateManyAndReturn<ExtArgs> | null;
1629
+ /**
1630
+ * Omit specific fields from the Item
1631
+ */
1632
+ omit?: Prisma.ItemOmit<ExtArgs> | null;
1633
+ /**
1634
+ * The data used to create many Items.
1635
+ */
1636
+ data: Prisma.ItemCreateManyInput | Prisma.ItemCreateManyInput[];
1637
+ /**
1638
+ * Choose, which related nodes to fetch as well
1639
+ */
1640
+ include?: Prisma.ItemIncludeCreateManyAndReturn<ExtArgs> | null;
1641
+ };
1642
+ /**
1643
+ * Item update
1644
+ */
1645
+ export type ItemUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1646
+ /**
1647
+ * Select specific fields to fetch from the Item
1648
+ */
1649
+ select?: Prisma.ItemSelect<ExtArgs> | null;
1650
+ /**
1651
+ * Omit specific fields from the Item
1652
+ */
1653
+ omit?: Prisma.ItemOmit<ExtArgs> | null;
1654
+ /**
1655
+ * Choose, which related nodes to fetch as well
1656
+ */
1657
+ include?: Prisma.ItemInclude<ExtArgs> | null;
1658
+ /**
1659
+ * The data needed to update a Item.
1660
+ */
1661
+ data: Prisma.XOR<Prisma.ItemUpdateInput, Prisma.ItemUncheckedUpdateInput>;
1662
+ /**
1663
+ * Choose, which Item to update.
1664
+ */
1665
+ where: Prisma.ItemWhereUniqueInput;
1666
+ };
1667
+ /**
1668
+ * Item updateMany
1669
+ */
1670
+ export type ItemUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1671
+ /**
1672
+ * The data used to update Items.
1673
+ */
1674
+ data: Prisma.XOR<Prisma.ItemUpdateManyMutationInput, Prisma.ItemUncheckedUpdateManyInput>;
1675
+ /**
1676
+ * Filter which Items to update
1677
+ */
1678
+ where?: Prisma.ItemWhereInput;
1679
+ /**
1680
+ * Limit how many Items to update.
1681
+ */
1682
+ limit?: number;
1683
+ };
1684
+ /**
1685
+ * Item updateManyAndReturn
1686
+ */
1687
+ export type ItemUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1688
+ /**
1689
+ * Select specific fields to fetch from the Item
1690
+ */
1691
+ select?: Prisma.ItemSelectUpdateManyAndReturn<ExtArgs> | null;
1692
+ /**
1693
+ * Omit specific fields from the Item
1694
+ */
1695
+ omit?: Prisma.ItemOmit<ExtArgs> | null;
1696
+ /**
1697
+ * The data used to update Items.
1698
+ */
1699
+ data: Prisma.XOR<Prisma.ItemUpdateManyMutationInput, Prisma.ItemUncheckedUpdateManyInput>;
1700
+ /**
1701
+ * Filter which Items to update
1702
+ */
1703
+ where?: Prisma.ItemWhereInput;
1704
+ /**
1705
+ * Limit how many Items to update.
1706
+ */
1707
+ limit?: number;
1708
+ /**
1709
+ * Choose, which related nodes to fetch as well
1710
+ */
1711
+ include?: Prisma.ItemIncludeUpdateManyAndReturn<ExtArgs> | null;
1712
+ };
1713
+ /**
1714
+ * Item upsert
1715
+ */
1716
+ export type ItemUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1717
+ /**
1718
+ * Select specific fields to fetch from the Item
1719
+ */
1720
+ select?: Prisma.ItemSelect<ExtArgs> | null;
1721
+ /**
1722
+ * Omit specific fields from the Item
1723
+ */
1724
+ omit?: Prisma.ItemOmit<ExtArgs> | null;
1725
+ /**
1726
+ * Choose, which related nodes to fetch as well
1727
+ */
1728
+ include?: Prisma.ItemInclude<ExtArgs> | null;
1729
+ /**
1730
+ * The filter to search for the Item to update in case it exists.
1731
+ */
1732
+ where: Prisma.ItemWhereUniqueInput;
1733
+ /**
1734
+ * In case the Item found by the `where` argument doesn't exist, create a new Item with this data.
1735
+ */
1736
+ create: Prisma.XOR<Prisma.ItemCreateInput, Prisma.ItemUncheckedCreateInput>;
1737
+ /**
1738
+ * In case the Item was found with the provided `where` argument, update it with this data.
1739
+ */
1740
+ update: Prisma.XOR<Prisma.ItemUpdateInput, Prisma.ItemUncheckedUpdateInput>;
1741
+ };
1742
+ /**
1743
+ * Item delete
1744
+ */
1745
+ export type ItemDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1746
+ /**
1747
+ * Select specific fields to fetch from the Item
1748
+ */
1749
+ select?: Prisma.ItemSelect<ExtArgs> | null;
1750
+ /**
1751
+ * Omit specific fields from the Item
1752
+ */
1753
+ omit?: Prisma.ItemOmit<ExtArgs> | null;
1754
+ /**
1755
+ * Choose, which related nodes to fetch as well
1756
+ */
1757
+ include?: Prisma.ItemInclude<ExtArgs> | null;
1758
+ /**
1759
+ * Filter which Item to delete.
1760
+ */
1761
+ where: Prisma.ItemWhereUniqueInput;
1762
+ };
1763
+ /**
1764
+ * Item deleteMany
1765
+ */
1766
+ export type ItemDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1767
+ /**
1768
+ * Filter which Items to delete
1769
+ */
1770
+ where?: Prisma.ItemWhereInput;
1771
+ /**
1772
+ * Limit how many Items to delete.
1773
+ */
1774
+ limit?: number;
1775
+ };
1776
+ /**
1777
+ * Item.fieldSet
1778
+ */
1779
+ export type Item$fieldSetArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1780
+ /**
1781
+ * Select specific fields to fetch from the FieldSet
1782
+ */
1783
+ select?: Prisma.FieldSetSelect<ExtArgs> | null;
1784
+ /**
1785
+ * Omit specific fields from the FieldSet
1786
+ */
1787
+ omit?: Prisma.FieldSetOmit<ExtArgs> | null;
1788
+ /**
1789
+ * Choose, which related nodes to fetch as well
1790
+ */
1791
+ include?: Prisma.FieldSetInclude<ExtArgs> | null;
1792
+ where?: Prisma.FieldSetWhereInput;
1793
+ };
1794
+ /**
1795
+ * Item.orders
1796
+ */
1797
+ export type Item$ordersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1798
+ /**
1799
+ * Select specific fields to fetch from the Order
1800
+ */
1801
+ select?: Prisma.OrderSelect<ExtArgs> | null;
1802
+ /**
1803
+ * Omit specific fields from the Order
1804
+ */
1805
+ omit?: Prisma.OrderOmit<ExtArgs> | null;
1806
+ /**
1807
+ * Choose, which related nodes to fetch as well
1808
+ */
1809
+ include?: Prisma.OrderInclude<ExtArgs> | null;
1810
+ where?: Prisma.OrderWhereInput;
1811
+ orderBy?: Prisma.OrderOrderByWithRelationInput | Prisma.OrderOrderByWithRelationInput[];
1812
+ cursor?: Prisma.OrderWhereUniqueInput;
1813
+ take?: number;
1814
+ skip?: number;
1815
+ distinct?: Prisma.OrderScalarFieldEnum | Prisma.OrderScalarFieldEnum[];
1816
+ };
1817
+ /**
1818
+ * Item.itemInstances
1819
+ */
1820
+ export type Item$itemInstancesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1821
+ /**
1822
+ * Select specific fields to fetch from the ItemInstance
1823
+ */
1824
+ select?: Prisma.ItemInstanceSelect<ExtArgs> | null;
1825
+ /**
1826
+ * Omit specific fields from the ItemInstance
1827
+ */
1828
+ omit?: Prisma.ItemInstanceOmit<ExtArgs> | null;
1829
+ /**
1830
+ * Choose, which related nodes to fetch as well
1831
+ */
1832
+ include?: Prisma.ItemInstanceInclude<ExtArgs> | null;
1833
+ where?: Prisma.ItemInstanceWhereInput;
1834
+ orderBy?: Prisma.ItemInstanceOrderByWithRelationInput | Prisma.ItemInstanceOrderByWithRelationInput[];
1835
+ cursor?: Prisma.ItemInstanceWhereUniqueInput;
1836
+ take?: number;
1837
+ skip?: number;
1838
+ distinct?: Prisma.ItemInstanceScalarFieldEnum | Prisma.ItemInstanceScalarFieldEnum[];
1839
+ };
1840
+ /**
1841
+ * Item without action
1842
+ */
1843
+ export type ItemDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1844
+ /**
1845
+ * Select specific fields to fetch from the Item
1846
+ */
1847
+ select?: Prisma.ItemSelect<ExtArgs> | null;
1848
+ /**
1849
+ * Omit specific fields from the Item
1850
+ */
1851
+ omit?: Prisma.ItemOmit<ExtArgs> | null;
1852
+ /**
1853
+ * Choose, which related nodes to fetch as well
1854
+ */
1855
+ include?: Prisma.ItemInclude<ExtArgs> | null;
1856
+ };
1857
+ export {};
1858
+ //# sourceMappingURL=Item.d.ts.map