@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,2310 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as $Enums from "../enums.js";
3
+ import type * as Prisma from "../internal/prismaNamespace.js";
4
+ /**
5
+ * Model OrderRun
6
+ *
7
+ */
8
+ export type OrderRunModel = runtime.Types.Result.DefaultSelection<Prisma.$OrderRunPayload>;
9
+ export type AggregateOrderRun = {
10
+ _count: OrderRunCountAggregateOutputType | null;
11
+ _avg: OrderRunAvgAggregateOutputType | null;
12
+ _sum: OrderRunSumAggregateOutputType | null;
13
+ _min: OrderRunMinAggregateOutputType | null;
14
+ _max: OrderRunMaxAggregateOutputType | null;
15
+ };
16
+ export type OrderRunAvgAggregateOutputType = {
17
+ id: number | null;
18
+ runNo: number | null;
19
+ orderId: number | null;
20
+ orderRevId: number | null;
21
+ cost: number | null;
22
+ createdById: number | null;
23
+ updatedById: number | null;
24
+ };
25
+ export type OrderRunSumAggregateOutputType = {
26
+ id: number | null;
27
+ runNo: number | null;
28
+ orderId: number | null;
29
+ orderRevId: number | null;
30
+ cost: number | null;
31
+ createdById: number | null;
32
+ updatedById: number | null;
33
+ };
34
+ export type OrderRunMinAggregateOutputType = {
35
+ id: number | null;
36
+ runNo: number | null;
37
+ orderId: number | null;
38
+ orderRevId: number | null;
39
+ status: $Enums.OrderRunStatus | null;
40
+ priority: $Enums.OrderRunPriority | null;
41
+ cost: number | null;
42
+ dueAt: string | null;
43
+ releaseNote: string | null;
44
+ createdAt: Date | null;
45
+ createdById: number | null;
46
+ updatedAt: Date | null;
47
+ updatedById: number | null;
48
+ };
49
+ export type OrderRunMaxAggregateOutputType = {
50
+ id: number | null;
51
+ runNo: number | null;
52
+ orderId: number | null;
53
+ orderRevId: number | null;
54
+ status: $Enums.OrderRunStatus | null;
55
+ priority: $Enums.OrderRunPriority | null;
56
+ cost: number | null;
57
+ dueAt: string | null;
58
+ releaseNote: string | null;
59
+ createdAt: Date | null;
60
+ createdById: number | null;
61
+ updatedAt: Date | null;
62
+ updatedById: number | null;
63
+ };
64
+ export type OrderRunCountAggregateOutputType = {
65
+ id: number;
66
+ runNo: number;
67
+ orderId: number;
68
+ orderRevId: number;
69
+ status: number;
70
+ priority: number;
71
+ cost: number;
72
+ dueAt: number;
73
+ releaseNote: number;
74
+ createdAt: number;
75
+ createdById: number;
76
+ updatedAt: number;
77
+ updatedById: number;
78
+ _all: number;
79
+ };
80
+ export type OrderRunAvgAggregateInputType = {
81
+ id?: true;
82
+ runNo?: true;
83
+ orderId?: true;
84
+ orderRevId?: true;
85
+ cost?: true;
86
+ createdById?: true;
87
+ updatedById?: true;
88
+ };
89
+ export type OrderRunSumAggregateInputType = {
90
+ id?: true;
91
+ runNo?: true;
92
+ orderId?: true;
93
+ orderRevId?: true;
94
+ cost?: true;
95
+ createdById?: true;
96
+ updatedById?: true;
97
+ };
98
+ export type OrderRunMinAggregateInputType = {
99
+ id?: true;
100
+ runNo?: true;
101
+ orderId?: true;
102
+ orderRevId?: true;
103
+ status?: true;
104
+ priority?: true;
105
+ cost?: true;
106
+ dueAt?: true;
107
+ releaseNote?: true;
108
+ createdAt?: true;
109
+ createdById?: true;
110
+ updatedAt?: true;
111
+ updatedById?: true;
112
+ };
113
+ export type OrderRunMaxAggregateInputType = {
114
+ id?: true;
115
+ runNo?: true;
116
+ orderId?: true;
117
+ orderRevId?: true;
118
+ status?: true;
119
+ priority?: true;
120
+ cost?: true;
121
+ dueAt?: true;
122
+ releaseNote?: true;
123
+ createdAt?: true;
124
+ createdById?: true;
125
+ updatedAt?: true;
126
+ updatedById?: true;
127
+ };
128
+ export type OrderRunCountAggregateInputType = {
129
+ id?: true;
130
+ runNo?: true;
131
+ orderId?: true;
132
+ orderRevId?: true;
133
+ status?: true;
134
+ priority?: true;
135
+ cost?: true;
136
+ dueAt?: true;
137
+ releaseNote?: true;
138
+ createdAt?: true;
139
+ createdById?: true;
140
+ updatedAt?: true;
141
+ updatedById?: true;
142
+ _all?: true;
143
+ };
144
+ export type OrderRunAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
145
+ /**
146
+ * Filter which OrderRun to aggregate.
147
+ */
148
+ where?: Prisma.OrderRunWhereInput;
149
+ /**
150
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
151
+ *
152
+ * Determine the order of OrderRuns to fetch.
153
+ */
154
+ orderBy?: Prisma.OrderRunOrderByWithRelationInput | Prisma.OrderRunOrderByWithRelationInput[];
155
+ /**
156
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
157
+ *
158
+ * Sets the start position
159
+ */
160
+ cursor?: Prisma.OrderRunWhereUniqueInput;
161
+ /**
162
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
163
+ *
164
+ * Take `±n` OrderRuns from the position of the cursor.
165
+ */
166
+ take?: number;
167
+ /**
168
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
169
+ *
170
+ * Skip the first `n` OrderRuns.
171
+ */
172
+ skip?: number;
173
+ /**
174
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
175
+ *
176
+ * Count returned OrderRuns
177
+ **/
178
+ _count?: true | OrderRunCountAggregateInputType;
179
+ /**
180
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
181
+ *
182
+ * Select which fields to average
183
+ **/
184
+ _avg?: OrderRunAvgAggregateInputType;
185
+ /**
186
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
187
+ *
188
+ * Select which fields to sum
189
+ **/
190
+ _sum?: OrderRunSumAggregateInputType;
191
+ /**
192
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
193
+ *
194
+ * Select which fields to find the minimum value
195
+ **/
196
+ _min?: OrderRunMinAggregateInputType;
197
+ /**
198
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
199
+ *
200
+ * Select which fields to find the maximum value
201
+ **/
202
+ _max?: OrderRunMaxAggregateInputType;
203
+ };
204
+ export type GetOrderRunAggregateType<T extends OrderRunAggregateArgs> = {
205
+ [P in keyof T & keyof AggregateOrderRun]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateOrderRun[P]> : Prisma.GetScalarType<T[P], AggregateOrderRun[P]>;
206
+ };
207
+ export type OrderRunGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
208
+ where?: Prisma.OrderRunWhereInput;
209
+ orderBy?: Prisma.OrderRunOrderByWithAggregationInput | Prisma.OrderRunOrderByWithAggregationInput[];
210
+ by: Prisma.OrderRunScalarFieldEnum[] | Prisma.OrderRunScalarFieldEnum;
211
+ having?: Prisma.OrderRunScalarWhereWithAggregatesInput;
212
+ take?: number;
213
+ skip?: number;
214
+ _count?: OrderRunCountAggregateInputType | true;
215
+ _avg?: OrderRunAvgAggregateInputType;
216
+ _sum?: OrderRunSumAggregateInputType;
217
+ _min?: OrderRunMinAggregateInputType;
218
+ _max?: OrderRunMaxAggregateInputType;
219
+ };
220
+ export type OrderRunGroupByOutputType = {
221
+ id: number;
222
+ runNo: number;
223
+ orderId: number;
224
+ orderRevId: number;
225
+ status: $Enums.OrderRunStatus;
226
+ priority: $Enums.OrderRunPriority;
227
+ cost: number | null;
228
+ dueAt: string | null;
229
+ releaseNote: string | null;
230
+ createdAt: Date;
231
+ createdById: number;
232
+ updatedAt: Date;
233
+ updatedById: number;
234
+ _count: OrderRunCountAggregateOutputType | null;
235
+ _avg: OrderRunAvgAggregateOutputType | null;
236
+ _sum: OrderRunSumAggregateOutputType | null;
237
+ _min: OrderRunMinAggregateOutputType | null;
238
+ _max: OrderRunMaxAggregateOutputType | null;
239
+ };
240
+ type GetOrderRunGroupByPayload<T extends OrderRunGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<OrderRunGroupByOutputType, T['by']> & {
241
+ [P in ((keyof T) & (keyof OrderRunGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], OrderRunGroupByOutputType[P]> : Prisma.GetScalarType<T[P], OrderRunGroupByOutputType[P]>;
242
+ }>>;
243
+ export type OrderRunWhereInput = {
244
+ AND?: Prisma.OrderRunWhereInput | Prisma.OrderRunWhereInput[];
245
+ OR?: Prisma.OrderRunWhereInput[];
246
+ NOT?: Prisma.OrderRunWhereInput | Prisma.OrderRunWhereInput[];
247
+ id?: Prisma.IntFilter<"OrderRun"> | number;
248
+ runNo?: Prisma.IntFilter<"OrderRun"> | number;
249
+ orderId?: Prisma.IntFilter<"OrderRun"> | number;
250
+ orderRevId?: Prisma.IntFilter<"OrderRun"> | number;
251
+ status?: Prisma.EnumOrderRunStatusFilter<"OrderRun"> | $Enums.OrderRunStatus;
252
+ priority?: Prisma.EnumOrderRunPriorityFilter<"OrderRun"> | $Enums.OrderRunPriority;
253
+ cost?: Prisma.FloatNullableFilter<"OrderRun"> | number | null;
254
+ dueAt?: Prisma.StringNullableFilter<"OrderRun"> | string | null;
255
+ releaseNote?: Prisma.StringNullableFilter<"OrderRun"> | string | null;
256
+ createdAt?: Prisma.DateTimeFilter<"OrderRun"> | Date | string;
257
+ createdById?: Prisma.IntFilter<"OrderRun"> | number;
258
+ updatedAt?: Prisma.DateTimeFilter<"OrderRun"> | Date | string;
259
+ updatedById?: Prisma.IntFilter<"OrderRun"> | number;
260
+ createdBy?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
261
+ updatedBy?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
262
+ order?: Prisma.XOR<Prisma.OrderScalarRelationFilter, Prisma.OrderWhereInput>;
263
+ orderRev?: Prisma.XOR<Prisma.OrderRevisionScalarRelationFilter, Prisma.OrderRevisionWhereInput>;
264
+ operationRuns?: Prisma.OperationRunListRelationFilter;
265
+ itemInstances?: Prisma.ItemInstanceListRelationFilter;
266
+ };
267
+ export type OrderRunOrderByWithRelationInput = {
268
+ id?: Prisma.SortOrder;
269
+ runNo?: Prisma.SortOrder;
270
+ orderId?: Prisma.SortOrder;
271
+ orderRevId?: Prisma.SortOrder;
272
+ status?: Prisma.SortOrder;
273
+ priority?: Prisma.SortOrder;
274
+ cost?: Prisma.SortOrderInput | Prisma.SortOrder;
275
+ dueAt?: Prisma.SortOrderInput | Prisma.SortOrder;
276
+ releaseNote?: Prisma.SortOrderInput | Prisma.SortOrder;
277
+ createdAt?: Prisma.SortOrder;
278
+ createdById?: Prisma.SortOrder;
279
+ updatedAt?: Prisma.SortOrder;
280
+ updatedById?: Prisma.SortOrder;
281
+ createdBy?: Prisma.UserOrderByWithRelationInput;
282
+ updatedBy?: Prisma.UserOrderByWithRelationInput;
283
+ order?: Prisma.OrderOrderByWithRelationInput;
284
+ orderRev?: Prisma.OrderRevisionOrderByWithRelationInput;
285
+ operationRuns?: Prisma.OperationRunOrderByRelationAggregateInput;
286
+ itemInstances?: Prisma.ItemInstanceOrderByRelationAggregateInput;
287
+ };
288
+ export type OrderRunWhereUniqueInput = Prisma.AtLeast<{
289
+ id?: number;
290
+ orderId_runNo?: Prisma.OrderRunOrderIdRunNoCompoundUniqueInput;
291
+ AND?: Prisma.OrderRunWhereInput | Prisma.OrderRunWhereInput[];
292
+ OR?: Prisma.OrderRunWhereInput[];
293
+ NOT?: Prisma.OrderRunWhereInput | Prisma.OrderRunWhereInput[];
294
+ runNo?: Prisma.IntFilter<"OrderRun"> | number;
295
+ orderId?: Prisma.IntFilter<"OrderRun"> | number;
296
+ orderRevId?: Prisma.IntFilter<"OrderRun"> | number;
297
+ status?: Prisma.EnumOrderRunStatusFilter<"OrderRun"> | $Enums.OrderRunStatus;
298
+ priority?: Prisma.EnumOrderRunPriorityFilter<"OrderRun"> | $Enums.OrderRunPriority;
299
+ cost?: Prisma.FloatNullableFilter<"OrderRun"> | number | null;
300
+ dueAt?: Prisma.StringNullableFilter<"OrderRun"> | string | null;
301
+ releaseNote?: Prisma.StringNullableFilter<"OrderRun"> | string | null;
302
+ createdAt?: Prisma.DateTimeFilter<"OrderRun"> | Date | string;
303
+ createdById?: Prisma.IntFilter<"OrderRun"> | number;
304
+ updatedAt?: Prisma.DateTimeFilter<"OrderRun"> | Date | string;
305
+ updatedById?: Prisma.IntFilter<"OrderRun"> | number;
306
+ createdBy?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
307
+ updatedBy?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
308
+ order?: Prisma.XOR<Prisma.OrderScalarRelationFilter, Prisma.OrderWhereInput>;
309
+ orderRev?: Prisma.XOR<Prisma.OrderRevisionScalarRelationFilter, Prisma.OrderRevisionWhereInput>;
310
+ operationRuns?: Prisma.OperationRunListRelationFilter;
311
+ itemInstances?: Prisma.ItemInstanceListRelationFilter;
312
+ }, "id" | "orderId_runNo">;
313
+ export type OrderRunOrderByWithAggregationInput = {
314
+ id?: Prisma.SortOrder;
315
+ runNo?: Prisma.SortOrder;
316
+ orderId?: Prisma.SortOrder;
317
+ orderRevId?: Prisma.SortOrder;
318
+ status?: Prisma.SortOrder;
319
+ priority?: Prisma.SortOrder;
320
+ cost?: Prisma.SortOrderInput | Prisma.SortOrder;
321
+ dueAt?: Prisma.SortOrderInput | Prisma.SortOrder;
322
+ releaseNote?: Prisma.SortOrderInput | Prisma.SortOrder;
323
+ createdAt?: Prisma.SortOrder;
324
+ createdById?: Prisma.SortOrder;
325
+ updatedAt?: Prisma.SortOrder;
326
+ updatedById?: Prisma.SortOrder;
327
+ _count?: Prisma.OrderRunCountOrderByAggregateInput;
328
+ _avg?: Prisma.OrderRunAvgOrderByAggregateInput;
329
+ _max?: Prisma.OrderRunMaxOrderByAggregateInput;
330
+ _min?: Prisma.OrderRunMinOrderByAggregateInput;
331
+ _sum?: Prisma.OrderRunSumOrderByAggregateInput;
332
+ };
333
+ export type OrderRunScalarWhereWithAggregatesInput = {
334
+ AND?: Prisma.OrderRunScalarWhereWithAggregatesInput | Prisma.OrderRunScalarWhereWithAggregatesInput[];
335
+ OR?: Prisma.OrderRunScalarWhereWithAggregatesInput[];
336
+ NOT?: Prisma.OrderRunScalarWhereWithAggregatesInput | Prisma.OrderRunScalarWhereWithAggregatesInput[];
337
+ id?: Prisma.IntWithAggregatesFilter<"OrderRun"> | number;
338
+ runNo?: Prisma.IntWithAggregatesFilter<"OrderRun"> | number;
339
+ orderId?: Prisma.IntWithAggregatesFilter<"OrderRun"> | number;
340
+ orderRevId?: Prisma.IntWithAggregatesFilter<"OrderRun"> | number;
341
+ status?: Prisma.EnumOrderRunStatusWithAggregatesFilter<"OrderRun"> | $Enums.OrderRunStatus;
342
+ priority?: Prisma.EnumOrderRunPriorityWithAggregatesFilter<"OrderRun"> | $Enums.OrderRunPriority;
343
+ cost?: Prisma.FloatNullableWithAggregatesFilter<"OrderRun"> | number | null;
344
+ dueAt?: Prisma.StringNullableWithAggregatesFilter<"OrderRun"> | string | null;
345
+ releaseNote?: Prisma.StringNullableWithAggregatesFilter<"OrderRun"> | string | null;
346
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"OrderRun"> | Date | string;
347
+ createdById?: Prisma.IntWithAggregatesFilter<"OrderRun"> | number;
348
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"OrderRun"> | Date | string;
349
+ updatedById?: Prisma.IntWithAggregatesFilter<"OrderRun"> | number;
350
+ };
351
+ export type OrderRunCreateInput = {
352
+ runNo: number;
353
+ status?: $Enums.OrderRunStatus;
354
+ priority?: $Enums.OrderRunPriority;
355
+ cost?: number | null;
356
+ dueAt?: string | null;
357
+ releaseNote?: string | null;
358
+ createdAt?: Date | string;
359
+ updatedAt?: Date | string;
360
+ createdBy: Prisma.UserCreateNestedOneWithoutOrderRunsCreatedInput;
361
+ updatedBy: Prisma.UserCreateNestedOneWithoutOrderRunsUpdatedInput;
362
+ order: Prisma.OrderCreateNestedOneWithoutOrderRunsInput;
363
+ orderRev: Prisma.OrderRevisionCreateNestedOneWithoutOrderRunsInput;
364
+ operationRuns?: Prisma.OperationRunCreateNestedManyWithoutOrderRunInput;
365
+ itemInstances?: Prisma.ItemInstanceCreateNestedManyWithoutOrderRunInput;
366
+ };
367
+ export type OrderRunUncheckedCreateInput = {
368
+ id?: number;
369
+ runNo: number;
370
+ orderId: number;
371
+ orderRevId: number;
372
+ status?: $Enums.OrderRunStatus;
373
+ priority?: $Enums.OrderRunPriority;
374
+ cost?: number | null;
375
+ dueAt?: string | null;
376
+ releaseNote?: string | null;
377
+ createdAt?: Date | string;
378
+ createdById: number;
379
+ updatedAt?: Date | string;
380
+ updatedById: number;
381
+ operationRuns?: Prisma.OperationRunUncheckedCreateNestedManyWithoutOrderRunInput;
382
+ itemInstances?: Prisma.ItemInstanceUncheckedCreateNestedManyWithoutOrderRunInput;
383
+ };
384
+ export type OrderRunUpdateInput = {
385
+ runNo?: Prisma.IntFieldUpdateOperationsInput | number;
386
+ status?: Prisma.EnumOrderRunStatusFieldUpdateOperationsInput | $Enums.OrderRunStatus;
387
+ priority?: Prisma.EnumOrderRunPriorityFieldUpdateOperationsInput | $Enums.OrderRunPriority;
388
+ cost?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
389
+ dueAt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
390
+ releaseNote?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
391
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
392
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
393
+ createdBy?: Prisma.UserUpdateOneRequiredWithoutOrderRunsCreatedNestedInput;
394
+ updatedBy?: Prisma.UserUpdateOneRequiredWithoutOrderRunsUpdatedNestedInput;
395
+ order?: Prisma.OrderUpdateOneRequiredWithoutOrderRunsNestedInput;
396
+ orderRev?: Prisma.OrderRevisionUpdateOneRequiredWithoutOrderRunsNestedInput;
397
+ operationRuns?: Prisma.OperationRunUpdateManyWithoutOrderRunNestedInput;
398
+ itemInstances?: Prisma.ItemInstanceUpdateManyWithoutOrderRunNestedInput;
399
+ };
400
+ export type OrderRunUncheckedUpdateInput = {
401
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
402
+ runNo?: Prisma.IntFieldUpdateOperationsInput | number;
403
+ orderId?: Prisma.IntFieldUpdateOperationsInput | number;
404
+ orderRevId?: Prisma.IntFieldUpdateOperationsInput | number;
405
+ status?: Prisma.EnumOrderRunStatusFieldUpdateOperationsInput | $Enums.OrderRunStatus;
406
+ priority?: Prisma.EnumOrderRunPriorityFieldUpdateOperationsInput | $Enums.OrderRunPriority;
407
+ cost?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
408
+ dueAt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
409
+ releaseNote?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
410
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
411
+ createdById?: Prisma.IntFieldUpdateOperationsInput | number;
412
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
413
+ updatedById?: Prisma.IntFieldUpdateOperationsInput | number;
414
+ operationRuns?: Prisma.OperationRunUncheckedUpdateManyWithoutOrderRunNestedInput;
415
+ itemInstances?: Prisma.ItemInstanceUncheckedUpdateManyWithoutOrderRunNestedInput;
416
+ };
417
+ export type OrderRunCreateManyInput = {
418
+ id?: number;
419
+ runNo: number;
420
+ orderId: number;
421
+ orderRevId: number;
422
+ status?: $Enums.OrderRunStatus;
423
+ priority?: $Enums.OrderRunPriority;
424
+ cost?: number | null;
425
+ dueAt?: string | null;
426
+ releaseNote?: string | null;
427
+ createdAt?: Date | string;
428
+ createdById: number;
429
+ updatedAt?: Date | string;
430
+ updatedById: number;
431
+ };
432
+ export type OrderRunUpdateManyMutationInput = {
433
+ runNo?: Prisma.IntFieldUpdateOperationsInput | number;
434
+ status?: Prisma.EnumOrderRunStatusFieldUpdateOperationsInput | $Enums.OrderRunStatus;
435
+ priority?: Prisma.EnumOrderRunPriorityFieldUpdateOperationsInput | $Enums.OrderRunPriority;
436
+ cost?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
437
+ dueAt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
438
+ releaseNote?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
439
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
440
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
441
+ };
442
+ export type OrderRunUncheckedUpdateManyInput = {
443
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
444
+ runNo?: Prisma.IntFieldUpdateOperationsInput | number;
445
+ orderId?: Prisma.IntFieldUpdateOperationsInput | number;
446
+ orderRevId?: Prisma.IntFieldUpdateOperationsInput | number;
447
+ status?: Prisma.EnumOrderRunStatusFieldUpdateOperationsInput | $Enums.OrderRunStatus;
448
+ priority?: Prisma.EnumOrderRunPriorityFieldUpdateOperationsInput | $Enums.OrderRunPriority;
449
+ cost?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
450
+ dueAt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
451
+ releaseNote?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
452
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
453
+ createdById?: Prisma.IntFieldUpdateOperationsInput | number;
454
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
455
+ updatedById?: Prisma.IntFieldUpdateOperationsInput | number;
456
+ };
457
+ export type OrderRunListRelationFilter = {
458
+ every?: Prisma.OrderRunWhereInput;
459
+ some?: Prisma.OrderRunWhereInput;
460
+ none?: Prisma.OrderRunWhereInput;
461
+ };
462
+ export type OrderRunOrderByRelationAggregateInput = {
463
+ _count?: Prisma.SortOrder;
464
+ };
465
+ export type OrderRunOrderIdRunNoCompoundUniqueInput = {
466
+ orderId: number;
467
+ runNo: number;
468
+ };
469
+ export type OrderRunCountOrderByAggregateInput = {
470
+ id?: Prisma.SortOrder;
471
+ runNo?: Prisma.SortOrder;
472
+ orderId?: Prisma.SortOrder;
473
+ orderRevId?: Prisma.SortOrder;
474
+ status?: Prisma.SortOrder;
475
+ priority?: Prisma.SortOrder;
476
+ cost?: Prisma.SortOrder;
477
+ dueAt?: Prisma.SortOrder;
478
+ releaseNote?: Prisma.SortOrder;
479
+ createdAt?: Prisma.SortOrder;
480
+ createdById?: Prisma.SortOrder;
481
+ updatedAt?: Prisma.SortOrder;
482
+ updatedById?: Prisma.SortOrder;
483
+ };
484
+ export type OrderRunAvgOrderByAggregateInput = {
485
+ id?: Prisma.SortOrder;
486
+ runNo?: Prisma.SortOrder;
487
+ orderId?: Prisma.SortOrder;
488
+ orderRevId?: Prisma.SortOrder;
489
+ cost?: Prisma.SortOrder;
490
+ createdById?: Prisma.SortOrder;
491
+ updatedById?: Prisma.SortOrder;
492
+ };
493
+ export type OrderRunMaxOrderByAggregateInput = {
494
+ id?: Prisma.SortOrder;
495
+ runNo?: Prisma.SortOrder;
496
+ orderId?: Prisma.SortOrder;
497
+ orderRevId?: Prisma.SortOrder;
498
+ status?: Prisma.SortOrder;
499
+ priority?: Prisma.SortOrder;
500
+ cost?: Prisma.SortOrder;
501
+ dueAt?: Prisma.SortOrder;
502
+ releaseNote?: Prisma.SortOrder;
503
+ createdAt?: Prisma.SortOrder;
504
+ createdById?: Prisma.SortOrder;
505
+ updatedAt?: Prisma.SortOrder;
506
+ updatedById?: Prisma.SortOrder;
507
+ };
508
+ export type OrderRunMinOrderByAggregateInput = {
509
+ id?: Prisma.SortOrder;
510
+ runNo?: Prisma.SortOrder;
511
+ orderId?: Prisma.SortOrder;
512
+ orderRevId?: Prisma.SortOrder;
513
+ status?: Prisma.SortOrder;
514
+ priority?: Prisma.SortOrder;
515
+ cost?: Prisma.SortOrder;
516
+ dueAt?: Prisma.SortOrder;
517
+ releaseNote?: Prisma.SortOrder;
518
+ createdAt?: Prisma.SortOrder;
519
+ createdById?: Prisma.SortOrder;
520
+ updatedAt?: Prisma.SortOrder;
521
+ updatedById?: Prisma.SortOrder;
522
+ };
523
+ export type OrderRunSumOrderByAggregateInput = {
524
+ id?: Prisma.SortOrder;
525
+ runNo?: Prisma.SortOrder;
526
+ orderId?: Prisma.SortOrder;
527
+ orderRevId?: Prisma.SortOrder;
528
+ cost?: Prisma.SortOrder;
529
+ createdById?: Prisma.SortOrder;
530
+ updatedById?: Prisma.SortOrder;
531
+ };
532
+ export type OrderRunScalarRelationFilter = {
533
+ is?: Prisma.OrderRunWhereInput;
534
+ isNot?: Prisma.OrderRunWhereInput;
535
+ };
536
+ export type OrderRunNullableScalarRelationFilter = {
537
+ is?: Prisma.OrderRunWhereInput | null;
538
+ isNot?: Prisma.OrderRunWhereInput | null;
539
+ };
540
+ export type OrderRunCreateNestedManyWithoutOrderInput = {
541
+ create?: Prisma.XOR<Prisma.OrderRunCreateWithoutOrderInput, Prisma.OrderRunUncheckedCreateWithoutOrderInput> | Prisma.OrderRunCreateWithoutOrderInput[] | Prisma.OrderRunUncheckedCreateWithoutOrderInput[];
542
+ connectOrCreate?: Prisma.OrderRunCreateOrConnectWithoutOrderInput | Prisma.OrderRunCreateOrConnectWithoutOrderInput[];
543
+ createMany?: Prisma.OrderRunCreateManyOrderInputEnvelope;
544
+ connect?: Prisma.OrderRunWhereUniqueInput | Prisma.OrderRunWhereUniqueInput[];
545
+ };
546
+ export type OrderRunUncheckedCreateNestedManyWithoutOrderInput = {
547
+ create?: Prisma.XOR<Prisma.OrderRunCreateWithoutOrderInput, Prisma.OrderRunUncheckedCreateWithoutOrderInput> | Prisma.OrderRunCreateWithoutOrderInput[] | Prisma.OrderRunUncheckedCreateWithoutOrderInput[];
548
+ connectOrCreate?: Prisma.OrderRunCreateOrConnectWithoutOrderInput | Prisma.OrderRunCreateOrConnectWithoutOrderInput[];
549
+ createMany?: Prisma.OrderRunCreateManyOrderInputEnvelope;
550
+ connect?: Prisma.OrderRunWhereUniqueInput | Prisma.OrderRunWhereUniqueInput[];
551
+ };
552
+ export type OrderRunUpdateManyWithoutOrderNestedInput = {
553
+ create?: Prisma.XOR<Prisma.OrderRunCreateWithoutOrderInput, Prisma.OrderRunUncheckedCreateWithoutOrderInput> | Prisma.OrderRunCreateWithoutOrderInput[] | Prisma.OrderRunUncheckedCreateWithoutOrderInput[];
554
+ connectOrCreate?: Prisma.OrderRunCreateOrConnectWithoutOrderInput | Prisma.OrderRunCreateOrConnectWithoutOrderInput[];
555
+ upsert?: Prisma.OrderRunUpsertWithWhereUniqueWithoutOrderInput | Prisma.OrderRunUpsertWithWhereUniqueWithoutOrderInput[];
556
+ createMany?: Prisma.OrderRunCreateManyOrderInputEnvelope;
557
+ set?: Prisma.OrderRunWhereUniqueInput | Prisma.OrderRunWhereUniqueInput[];
558
+ disconnect?: Prisma.OrderRunWhereUniqueInput | Prisma.OrderRunWhereUniqueInput[];
559
+ delete?: Prisma.OrderRunWhereUniqueInput | Prisma.OrderRunWhereUniqueInput[];
560
+ connect?: Prisma.OrderRunWhereUniqueInput | Prisma.OrderRunWhereUniqueInput[];
561
+ update?: Prisma.OrderRunUpdateWithWhereUniqueWithoutOrderInput | Prisma.OrderRunUpdateWithWhereUniqueWithoutOrderInput[];
562
+ updateMany?: Prisma.OrderRunUpdateManyWithWhereWithoutOrderInput | Prisma.OrderRunUpdateManyWithWhereWithoutOrderInput[];
563
+ deleteMany?: Prisma.OrderRunScalarWhereInput | Prisma.OrderRunScalarWhereInput[];
564
+ };
565
+ export type OrderRunUncheckedUpdateManyWithoutOrderNestedInput = {
566
+ create?: Prisma.XOR<Prisma.OrderRunCreateWithoutOrderInput, Prisma.OrderRunUncheckedCreateWithoutOrderInput> | Prisma.OrderRunCreateWithoutOrderInput[] | Prisma.OrderRunUncheckedCreateWithoutOrderInput[];
567
+ connectOrCreate?: Prisma.OrderRunCreateOrConnectWithoutOrderInput | Prisma.OrderRunCreateOrConnectWithoutOrderInput[];
568
+ upsert?: Prisma.OrderRunUpsertWithWhereUniqueWithoutOrderInput | Prisma.OrderRunUpsertWithWhereUniqueWithoutOrderInput[];
569
+ createMany?: Prisma.OrderRunCreateManyOrderInputEnvelope;
570
+ set?: Prisma.OrderRunWhereUniqueInput | Prisma.OrderRunWhereUniqueInput[];
571
+ disconnect?: Prisma.OrderRunWhereUniqueInput | Prisma.OrderRunWhereUniqueInput[];
572
+ delete?: Prisma.OrderRunWhereUniqueInput | Prisma.OrderRunWhereUniqueInput[];
573
+ connect?: Prisma.OrderRunWhereUniqueInput | Prisma.OrderRunWhereUniqueInput[];
574
+ update?: Prisma.OrderRunUpdateWithWhereUniqueWithoutOrderInput | Prisma.OrderRunUpdateWithWhereUniqueWithoutOrderInput[];
575
+ updateMany?: Prisma.OrderRunUpdateManyWithWhereWithoutOrderInput | Prisma.OrderRunUpdateManyWithWhereWithoutOrderInput[];
576
+ deleteMany?: Prisma.OrderRunScalarWhereInput | Prisma.OrderRunScalarWhereInput[];
577
+ };
578
+ export type OrderRunCreateNestedManyWithoutOrderRevInput = {
579
+ create?: Prisma.XOR<Prisma.OrderRunCreateWithoutOrderRevInput, Prisma.OrderRunUncheckedCreateWithoutOrderRevInput> | Prisma.OrderRunCreateWithoutOrderRevInput[] | Prisma.OrderRunUncheckedCreateWithoutOrderRevInput[];
580
+ connectOrCreate?: Prisma.OrderRunCreateOrConnectWithoutOrderRevInput | Prisma.OrderRunCreateOrConnectWithoutOrderRevInput[];
581
+ createMany?: Prisma.OrderRunCreateManyOrderRevInputEnvelope;
582
+ connect?: Prisma.OrderRunWhereUniqueInput | Prisma.OrderRunWhereUniqueInput[];
583
+ };
584
+ export type OrderRunUncheckedCreateNestedManyWithoutOrderRevInput = {
585
+ create?: Prisma.XOR<Prisma.OrderRunCreateWithoutOrderRevInput, Prisma.OrderRunUncheckedCreateWithoutOrderRevInput> | Prisma.OrderRunCreateWithoutOrderRevInput[] | Prisma.OrderRunUncheckedCreateWithoutOrderRevInput[];
586
+ connectOrCreate?: Prisma.OrderRunCreateOrConnectWithoutOrderRevInput | Prisma.OrderRunCreateOrConnectWithoutOrderRevInput[];
587
+ createMany?: Prisma.OrderRunCreateManyOrderRevInputEnvelope;
588
+ connect?: Prisma.OrderRunWhereUniqueInput | Prisma.OrderRunWhereUniqueInput[];
589
+ };
590
+ export type OrderRunUpdateManyWithoutOrderRevNestedInput = {
591
+ create?: Prisma.XOR<Prisma.OrderRunCreateWithoutOrderRevInput, Prisma.OrderRunUncheckedCreateWithoutOrderRevInput> | Prisma.OrderRunCreateWithoutOrderRevInput[] | Prisma.OrderRunUncheckedCreateWithoutOrderRevInput[];
592
+ connectOrCreate?: Prisma.OrderRunCreateOrConnectWithoutOrderRevInput | Prisma.OrderRunCreateOrConnectWithoutOrderRevInput[];
593
+ upsert?: Prisma.OrderRunUpsertWithWhereUniqueWithoutOrderRevInput | Prisma.OrderRunUpsertWithWhereUniqueWithoutOrderRevInput[];
594
+ createMany?: Prisma.OrderRunCreateManyOrderRevInputEnvelope;
595
+ set?: Prisma.OrderRunWhereUniqueInput | Prisma.OrderRunWhereUniqueInput[];
596
+ disconnect?: Prisma.OrderRunWhereUniqueInput | Prisma.OrderRunWhereUniqueInput[];
597
+ delete?: Prisma.OrderRunWhereUniqueInput | Prisma.OrderRunWhereUniqueInput[];
598
+ connect?: Prisma.OrderRunWhereUniqueInput | Prisma.OrderRunWhereUniqueInput[];
599
+ update?: Prisma.OrderRunUpdateWithWhereUniqueWithoutOrderRevInput | Prisma.OrderRunUpdateWithWhereUniqueWithoutOrderRevInput[];
600
+ updateMany?: Prisma.OrderRunUpdateManyWithWhereWithoutOrderRevInput | Prisma.OrderRunUpdateManyWithWhereWithoutOrderRevInput[];
601
+ deleteMany?: Prisma.OrderRunScalarWhereInput | Prisma.OrderRunScalarWhereInput[];
602
+ };
603
+ export type OrderRunUncheckedUpdateManyWithoutOrderRevNestedInput = {
604
+ create?: Prisma.XOR<Prisma.OrderRunCreateWithoutOrderRevInput, Prisma.OrderRunUncheckedCreateWithoutOrderRevInput> | Prisma.OrderRunCreateWithoutOrderRevInput[] | Prisma.OrderRunUncheckedCreateWithoutOrderRevInput[];
605
+ connectOrCreate?: Prisma.OrderRunCreateOrConnectWithoutOrderRevInput | Prisma.OrderRunCreateOrConnectWithoutOrderRevInput[];
606
+ upsert?: Prisma.OrderRunUpsertWithWhereUniqueWithoutOrderRevInput | Prisma.OrderRunUpsertWithWhereUniqueWithoutOrderRevInput[];
607
+ createMany?: Prisma.OrderRunCreateManyOrderRevInputEnvelope;
608
+ set?: Prisma.OrderRunWhereUniqueInput | Prisma.OrderRunWhereUniqueInput[];
609
+ disconnect?: Prisma.OrderRunWhereUniqueInput | Prisma.OrderRunWhereUniqueInput[];
610
+ delete?: Prisma.OrderRunWhereUniqueInput | Prisma.OrderRunWhereUniqueInput[];
611
+ connect?: Prisma.OrderRunWhereUniqueInput | Prisma.OrderRunWhereUniqueInput[];
612
+ update?: Prisma.OrderRunUpdateWithWhereUniqueWithoutOrderRevInput | Prisma.OrderRunUpdateWithWhereUniqueWithoutOrderRevInput[];
613
+ updateMany?: Prisma.OrderRunUpdateManyWithWhereWithoutOrderRevInput | Prisma.OrderRunUpdateManyWithWhereWithoutOrderRevInput[];
614
+ deleteMany?: Prisma.OrderRunScalarWhereInput | Prisma.OrderRunScalarWhereInput[];
615
+ };
616
+ export type EnumOrderRunStatusFieldUpdateOperationsInput = {
617
+ set?: $Enums.OrderRunStatus;
618
+ };
619
+ export type EnumOrderRunPriorityFieldUpdateOperationsInput = {
620
+ set?: $Enums.OrderRunPriority;
621
+ };
622
+ export type NullableFloatFieldUpdateOperationsInput = {
623
+ set?: number | null;
624
+ increment?: number;
625
+ decrement?: number;
626
+ multiply?: number;
627
+ divide?: number;
628
+ };
629
+ export type OrderRunCreateNestedOneWithoutOperationRunsInput = {
630
+ create?: Prisma.XOR<Prisma.OrderRunCreateWithoutOperationRunsInput, Prisma.OrderRunUncheckedCreateWithoutOperationRunsInput>;
631
+ connectOrCreate?: Prisma.OrderRunCreateOrConnectWithoutOperationRunsInput;
632
+ connect?: Prisma.OrderRunWhereUniqueInput;
633
+ };
634
+ export type OrderRunUpdateOneRequiredWithoutOperationRunsNestedInput = {
635
+ create?: Prisma.XOR<Prisma.OrderRunCreateWithoutOperationRunsInput, Prisma.OrderRunUncheckedCreateWithoutOperationRunsInput>;
636
+ connectOrCreate?: Prisma.OrderRunCreateOrConnectWithoutOperationRunsInput;
637
+ upsert?: Prisma.OrderRunUpsertWithoutOperationRunsInput;
638
+ connect?: Prisma.OrderRunWhereUniqueInput;
639
+ update?: Prisma.XOR<Prisma.XOR<Prisma.OrderRunUpdateToOneWithWhereWithoutOperationRunsInput, Prisma.OrderRunUpdateWithoutOperationRunsInput>, Prisma.OrderRunUncheckedUpdateWithoutOperationRunsInput>;
640
+ };
641
+ export type OrderRunCreateNestedOneWithoutItemInstancesInput = {
642
+ create?: Prisma.XOR<Prisma.OrderRunCreateWithoutItemInstancesInput, Prisma.OrderRunUncheckedCreateWithoutItemInstancesInput>;
643
+ connectOrCreate?: Prisma.OrderRunCreateOrConnectWithoutItemInstancesInput;
644
+ connect?: Prisma.OrderRunWhereUniqueInput;
645
+ };
646
+ export type OrderRunUpdateOneWithoutItemInstancesNestedInput = {
647
+ create?: Prisma.XOR<Prisma.OrderRunCreateWithoutItemInstancesInput, Prisma.OrderRunUncheckedCreateWithoutItemInstancesInput>;
648
+ connectOrCreate?: Prisma.OrderRunCreateOrConnectWithoutItemInstancesInput;
649
+ upsert?: Prisma.OrderRunUpsertWithoutItemInstancesInput;
650
+ disconnect?: Prisma.OrderRunWhereInput | boolean;
651
+ delete?: Prisma.OrderRunWhereInput | boolean;
652
+ connect?: Prisma.OrderRunWhereUniqueInput;
653
+ update?: Prisma.XOR<Prisma.XOR<Prisma.OrderRunUpdateToOneWithWhereWithoutItemInstancesInput, Prisma.OrderRunUpdateWithoutItemInstancesInput>, Prisma.OrderRunUncheckedUpdateWithoutItemInstancesInput>;
654
+ };
655
+ export type OrderRunCreateNestedManyWithoutCreatedByInput = {
656
+ create?: Prisma.XOR<Prisma.OrderRunCreateWithoutCreatedByInput, Prisma.OrderRunUncheckedCreateWithoutCreatedByInput> | Prisma.OrderRunCreateWithoutCreatedByInput[] | Prisma.OrderRunUncheckedCreateWithoutCreatedByInput[];
657
+ connectOrCreate?: Prisma.OrderRunCreateOrConnectWithoutCreatedByInput | Prisma.OrderRunCreateOrConnectWithoutCreatedByInput[];
658
+ createMany?: Prisma.OrderRunCreateManyCreatedByInputEnvelope;
659
+ connect?: Prisma.OrderRunWhereUniqueInput | Prisma.OrderRunWhereUniqueInput[];
660
+ };
661
+ export type OrderRunCreateNestedManyWithoutUpdatedByInput = {
662
+ create?: Prisma.XOR<Prisma.OrderRunCreateWithoutUpdatedByInput, Prisma.OrderRunUncheckedCreateWithoutUpdatedByInput> | Prisma.OrderRunCreateWithoutUpdatedByInput[] | Prisma.OrderRunUncheckedCreateWithoutUpdatedByInput[];
663
+ connectOrCreate?: Prisma.OrderRunCreateOrConnectWithoutUpdatedByInput | Prisma.OrderRunCreateOrConnectWithoutUpdatedByInput[];
664
+ createMany?: Prisma.OrderRunCreateManyUpdatedByInputEnvelope;
665
+ connect?: Prisma.OrderRunWhereUniqueInput | Prisma.OrderRunWhereUniqueInput[];
666
+ };
667
+ export type OrderRunUncheckedCreateNestedManyWithoutCreatedByInput = {
668
+ create?: Prisma.XOR<Prisma.OrderRunCreateWithoutCreatedByInput, Prisma.OrderRunUncheckedCreateWithoutCreatedByInput> | Prisma.OrderRunCreateWithoutCreatedByInput[] | Prisma.OrderRunUncheckedCreateWithoutCreatedByInput[];
669
+ connectOrCreate?: Prisma.OrderRunCreateOrConnectWithoutCreatedByInput | Prisma.OrderRunCreateOrConnectWithoutCreatedByInput[];
670
+ createMany?: Prisma.OrderRunCreateManyCreatedByInputEnvelope;
671
+ connect?: Prisma.OrderRunWhereUniqueInput | Prisma.OrderRunWhereUniqueInput[];
672
+ };
673
+ export type OrderRunUncheckedCreateNestedManyWithoutUpdatedByInput = {
674
+ create?: Prisma.XOR<Prisma.OrderRunCreateWithoutUpdatedByInput, Prisma.OrderRunUncheckedCreateWithoutUpdatedByInput> | Prisma.OrderRunCreateWithoutUpdatedByInput[] | Prisma.OrderRunUncheckedCreateWithoutUpdatedByInput[];
675
+ connectOrCreate?: Prisma.OrderRunCreateOrConnectWithoutUpdatedByInput | Prisma.OrderRunCreateOrConnectWithoutUpdatedByInput[];
676
+ createMany?: Prisma.OrderRunCreateManyUpdatedByInputEnvelope;
677
+ connect?: Prisma.OrderRunWhereUniqueInput | Prisma.OrderRunWhereUniqueInput[];
678
+ };
679
+ export type OrderRunUpdateManyWithoutCreatedByNestedInput = {
680
+ create?: Prisma.XOR<Prisma.OrderRunCreateWithoutCreatedByInput, Prisma.OrderRunUncheckedCreateWithoutCreatedByInput> | Prisma.OrderRunCreateWithoutCreatedByInput[] | Prisma.OrderRunUncheckedCreateWithoutCreatedByInput[];
681
+ connectOrCreate?: Prisma.OrderRunCreateOrConnectWithoutCreatedByInput | Prisma.OrderRunCreateOrConnectWithoutCreatedByInput[];
682
+ upsert?: Prisma.OrderRunUpsertWithWhereUniqueWithoutCreatedByInput | Prisma.OrderRunUpsertWithWhereUniqueWithoutCreatedByInput[];
683
+ createMany?: Prisma.OrderRunCreateManyCreatedByInputEnvelope;
684
+ set?: Prisma.OrderRunWhereUniqueInput | Prisma.OrderRunWhereUniqueInput[];
685
+ disconnect?: Prisma.OrderRunWhereUniqueInput | Prisma.OrderRunWhereUniqueInput[];
686
+ delete?: Prisma.OrderRunWhereUniqueInput | Prisma.OrderRunWhereUniqueInput[];
687
+ connect?: Prisma.OrderRunWhereUniqueInput | Prisma.OrderRunWhereUniqueInput[];
688
+ update?: Prisma.OrderRunUpdateWithWhereUniqueWithoutCreatedByInput | Prisma.OrderRunUpdateWithWhereUniqueWithoutCreatedByInput[];
689
+ updateMany?: Prisma.OrderRunUpdateManyWithWhereWithoutCreatedByInput | Prisma.OrderRunUpdateManyWithWhereWithoutCreatedByInput[];
690
+ deleteMany?: Prisma.OrderRunScalarWhereInput | Prisma.OrderRunScalarWhereInput[];
691
+ };
692
+ export type OrderRunUpdateManyWithoutUpdatedByNestedInput = {
693
+ create?: Prisma.XOR<Prisma.OrderRunCreateWithoutUpdatedByInput, Prisma.OrderRunUncheckedCreateWithoutUpdatedByInput> | Prisma.OrderRunCreateWithoutUpdatedByInput[] | Prisma.OrderRunUncheckedCreateWithoutUpdatedByInput[];
694
+ connectOrCreate?: Prisma.OrderRunCreateOrConnectWithoutUpdatedByInput | Prisma.OrderRunCreateOrConnectWithoutUpdatedByInput[];
695
+ upsert?: Prisma.OrderRunUpsertWithWhereUniqueWithoutUpdatedByInput | Prisma.OrderRunUpsertWithWhereUniqueWithoutUpdatedByInput[];
696
+ createMany?: Prisma.OrderRunCreateManyUpdatedByInputEnvelope;
697
+ set?: Prisma.OrderRunWhereUniqueInput | Prisma.OrderRunWhereUniqueInput[];
698
+ disconnect?: Prisma.OrderRunWhereUniqueInput | Prisma.OrderRunWhereUniqueInput[];
699
+ delete?: Prisma.OrderRunWhereUniqueInput | Prisma.OrderRunWhereUniqueInput[];
700
+ connect?: Prisma.OrderRunWhereUniqueInput | Prisma.OrderRunWhereUniqueInput[];
701
+ update?: Prisma.OrderRunUpdateWithWhereUniqueWithoutUpdatedByInput | Prisma.OrderRunUpdateWithWhereUniqueWithoutUpdatedByInput[];
702
+ updateMany?: Prisma.OrderRunUpdateManyWithWhereWithoutUpdatedByInput | Prisma.OrderRunUpdateManyWithWhereWithoutUpdatedByInput[];
703
+ deleteMany?: Prisma.OrderRunScalarWhereInput | Prisma.OrderRunScalarWhereInput[];
704
+ };
705
+ export type OrderRunUncheckedUpdateManyWithoutCreatedByNestedInput = {
706
+ create?: Prisma.XOR<Prisma.OrderRunCreateWithoutCreatedByInput, Prisma.OrderRunUncheckedCreateWithoutCreatedByInput> | Prisma.OrderRunCreateWithoutCreatedByInput[] | Prisma.OrderRunUncheckedCreateWithoutCreatedByInput[];
707
+ connectOrCreate?: Prisma.OrderRunCreateOrConnectWithoutCreatedByInput | Prisma.OrderRunCreateOrConnectWithoutCreatedByInput[];
708
+ upsert?: Prisma.OrderRunUpsertWithWhereUniqueWithoutCreatedByInput | Prisma.OrderRunUpsertWithWhereUniqueWithoutCreatedByInput[];
709
+ createMany?: Prisma.OrderRunCreateManyCreatedByInputEnvelope;
710
+ set?: Prisma.OrderRunWhereUniqueInput | Prisma.OrderRunWhereUniqueInput[];
711
+ disconnect?: Prisma.OrderRunWhereUniqueInput | Prisma.OrderRunWhereUniqueInput[];
712
+ delete?: Prisma.OrderRunWhereUniqueInput | Prisma.OrderRunWhereUniqueInput[];
713
+ connect?: Prisma.OrderRunWhereUniqueInput | Prisma.OrderRunWhereUniqueInput[];
714
+ update?: Prisma.OrderRunUpdateWithWhereUniqueWithoutCreatedByInput | Prisma.OrderRunUpdateWithWhereUniqueWithoutCreatedByInput[];
715
+ updateMany?: Prisma.OrderRunUpdateManyWithWhereWithoutCreatedByInput | Prisma.OrderRunUpdateManyWithWhereWithoutCreatedByInput[];
716
+ deleteMany?: Prisma.OrderRunScalarWhereInput | Prisma.OrderRunScalarWhereInput[];
717
+ };
718
+ export type OrderRunUncheckedUpdateManyWithoutUpdatedByNestedInput = {
719
+ create?: Prisma.XOR<Prisma.OrderRunCreateWithoutUpdatedByInput, Prisma.OrderRunUncheckedCreateWithoutUpdatedByInput> | Prisma.OrderRunCreateWithoutUpdatedByInput[] | Prisma.OrderRunUncheckedCreateWithoutUpdatedByInput[];
720
+ connectOrCreate?: Prisma.OrderRunCreateOrConnectWithoutUpdatedByInput | Prisma.OrderRunCreateOrConnectWithoutUpdatedByInput[];
721
+ upsert?: Prisma.OrderRunUpsertWithWhereUniqueWithoutUpdatedByInput | Prisma.OrderRunUpsertWithWhereUniqueWithoutUpdatedByInput[];
722
+ createMany?: Prisma.OrderRunCreateManyUpdatedByInputEnvelope;
723
+ set?: Prisma.OrderRunWhereUniqueInput | Prisma.OrderRunWhereUniqueInput[];
724
+ disconnect?: Prisma.OrderRunWhereUniqueInput | Prisma.OrderRunWhereUniqueInput[];
725
+ delete?: Prisma.OrderRunWhereUniqueInput | Prisma.OrderRunWhereUniqueInput[];
726
+ connect?: Prisma.OrderRunWhereUniqueInput | Prisma.OrderRunWhereUniqueInput[];
727
+ update?: Prisma.OrderRunUpdateWithWhereUniqueWithoutUpdatedByInput | Prisma.OrderRunUpdateWithWhereUniqueWithoutUpdatedByInput[];
728
+ updateMany?: Prisma.OrderRunUpdateManyWithWhereWithoutUpdatedByInput | Prisma.OrderRunUpdateManyWithWhereWithoutUpdatedByInput[];
729
+ deleteMany?: Prisma.OrderRunScalarWhereInput | Prisma.OrderRunScalarWhereInput[];
730
+ };
731
+ export type OrderRunCreateWithoutOrderInput = {
732
+ runNo: number;
733
+ status?: $Enums.OrderRunStatus;
734
+ priority?: $Enums.OrderRunPriority;
735
+ cost?: number | null;
736
+ dueAt?: string | null;
737
+ releaseNote?: string | null;
738
+ createdAt?: Date | string;
739
+ updatedAt?: Date | string;
740
+ createdBy: Prisma.UserCreateNestedOneWithoutOrderRunsCreatedInput;
741
+ updatedBy: Prisma.UserCreateNestedOneWithoutOrderRunsUpdatedInput;
742
+ orderRev: Prisma.OrderRevisionCreateNestedOneWithoutOrderRunsInput;
743
+ operationRuns?: Prisma.OperationRunCreateNestedManyWithoutOrderRunInput;
744
+ itemInstances?: Prisma.ItemInstanceCreateNestedManyWithoutOrderRunInput;
745
+ };
746
+ export type OrderRunUncheckedCreateWithoutOrderInput = {
747
+ id?: number;
748
+ runNo: number;
749
+ orderRevId: number;
750
+ status?: $Enums.OrderRunStatus;
751
+ priority?: $Enums.OrderRunPriority;
752
+ cost?: number | null;
753
+ dueAt?: string | null;
754
+ releaseNote?: string | null;
755
+ createdAt?: Date | string;
756
+ createdById: number;
757
+ updatedAt?: Date | string;
758
+ updatedById: number;
759
+ operationRuns?: Prisma.OperationRunUncheckedCreateNestedManyWithoutOrderRunInput;
760
+ itemInstances?: Prisma.ItemInstanceUncheckedCreateNestedManyWithoutOrderRunInput;
761
+ };
762
+ export type OrderRunCreateOrConnectWithoutOrderInput = {
763
+ where: Prisma.OrderRunWhereUniqueInput;
764
+ create: Prisma.XOR<Prisma.OrderRunCreateWithoutOrderInput, Prisma.OrderRunUncheckedCreateWithoutOrderInput>;
765
+ };
766
+ export type OrderRunCreateManyOrderInputEnvelope = {
767
+ data: Prisma.OrderRunCreateManyOrderInput | Prisma.OrderRunCreateManyOrderInput[];
768
+ };
769
+ export type OrderRunUpsertWithWhereUniqueWithoutOrderInput = {
770
+ where: Prisma.OrderRunWhereUniqueInput;
771
+ update: Prisma.XOR<Prisma.OrderRunUpdateWithoutOrderInput, Prisma.OrderRunUncheckedUpdateWithoutOrderInput>;
772
+ create: Prisma.XOR<Prisma.OrderRunCreateWithoutOrderInput, Prisma.OrderRunUncheckedCreateWithoutOrderInput>;
773
+ };
774
+ export type OrderRunUpdateWithWhereUniqueWithoutOrderInput = {
775
+ where: Prisma.OrderRunWhereUniqueInput;
776
+ data: Prisma.XOR<Prisma.OrderRunUpdateWithoutOrderInput, Prisma.OrderRunUncheckedUpdateWithoutOrderInput>;
777
+ };
778
+ export type OrderRunUpdateManyWithWhereWithoutOrderInput = {
779
+ where: Prisma.OrderRunScalarWhereInput;
780
+ data: Prisma.XOR<Prisma.OrderRunUpdateManyMutationInput, Prisma.OrderRunUncheckedUpdateManyWithoutOrderInput>;
781
+ };
782
+ export type OrderRunScalarWhereInput = {
783
+ AND?: Prisma.OrderRunScalarWhereInput | Prisma.OrderRunScalarWhereInput[];
784
+ OR?: Prisma.OrderRunScalarWhereInput[];
785
+ NOT?: Prisma.OrderRunScalarWhereInput | Prisma.OrderRunScalarWhereInput[];
786
+ id?: Prisma.IntFilter<"OrderRun"> | number;
787
+ runNo?: Prisma.IntFilter<"OrderRun"> | number;
788
+ orderId?: Prisma.IntFilter<"OrderRun"> | number;
789
+ orderRevId?: Prisma.IntFilter<"OrderRun"> | number;
790
+ status?: Prisma.EnumOrderRunStatusFilter<"OrderRun"> | $Enums.OrderRunStatus;
791
+ priority?: Prisma.EnumOrderRunPriorityFilter<"OrderRun"> | $Enums.OrderRunPriority;
792
+ cost?: Prisma.FloatNullableFilter<"OrderRun"> | number | null;
793
+ dueAt?: Prisma.StringNullableFilter<"OrderRun"> | string | null;
794
+ releaseNote?: Prisma.StringNullableFilter<"OrderRun"> | string | null;
795
+ createdAt?: Prisma.DateTimeFilter<"OrderRun"> | Date | string;
796
+ createdById?: Prisma.IntFilter<"OrderRun"> | number;
797
+ updatedAt?: Prisma.DateTimeFilter<"OrderRun"> | Date | string;
798
+ updatedById?: Prisma.IntFilter<"OrderRun"> | number;
799
+ };
800
+ export type OrderRunCreateWithoutOrderRevInput = {
801
+ runNo: number;
802
+ status?: $Enums.OrderRunStatus;
803
+ priority?: $Enums.OrderRunPriority;
804
+ cost?: number | null;
805
+ dueAt?: string | null;
806
+ releaseNote?: string | null;
807
+ createdAt?: Date | string;
808
+ updatedAt?: Date | string;
809
+ createdBy: Prisma.UserCreateNestedOneWithoutOrderRunsCreatedInput;
810
+ updatedBy: Prisma.UserCreateNestedOneWithoutOrderRunsUpdatedInput;
811
+ order: Prisma.OrderCreateNestedOneWithoutOrderRunsInput;
812
+ operationRuns?: Prisma.OperationRunCreateNestedManyWithoutOrderRunInput;
813
+ itemInstances?: Prisma.ItemInstanceCreateNestedManyWithoutOrderRunInput;
814
+ };
815
+ export type OrderRunUncheckedCreateWithoutOrderRevInput = {
816
+ id?: number;
817
+ runNo: number;
818
+ orderId: number;
819
+ status?: $Enums.OrderRunStatus;
820
+ priority?: $Enums.OrderRunPriority;
821
+ cost?: number | null;
822
+ dueAt?: string | null;
823
+ releaseNote?: string | null;
824
+ createdAt?: Date | string;
825
+ createdById: number;
826
+ updatedAt?: Date | string;
827
+ updatedById: number;
828
+ operationRuns?: Prisma.OperationRunUncheckedCreateNestedManyWithoutOrderRunInput;
829
+ itemInstances?: Prisma.ItemInstanceUncheckedCreateNestedManyWithoutOrderRunInput;
830
+ };
831
+ export type OrderRunCreateOrConnectWithoutOrderRevInput = {
832
+ where: Prisma.OrderRunWhereUniqueInput;
833
+ create: Prisma.XOR<Prisma.OrderRunCreateWithoutOrderRevInput, Prisma.OrderRunUncheckedCreateWithoutOrderRevInput>;
834
+ };
835
+ export type OrderRunCreateManyOrderRevInputEnvelope = {
836
+ data: Prisma.OrderRunCreateManyOrderRevInput | Prisma.OrderRunCreateManyOrderRevInput[];
837
+ };
838
+ export type OrderRunUpsertWithWhereUniqueWithoutOrderRevInput = {
839
+ where: Prisma.OrderRunWhereUniqueInput;
840
+ update: Prisma.XOR<Prisma.OrderRunUpdateWithoutOrderRevInput, Prisma.OrderRunUncheckedUpdateWithoutOrderRevInput>;
841
+ create: Prisma.XOR<Prisma.OrderRunCreateWithoutOrderRevInput, Prisma.OrderRunUncheckedCreateWithoutOrderRevInput>;
842
+ };
843
+ export type OrderRunUpdateWithWhereUniqueWithoutOrderRevInput = {
844
+ where: Prisma.OrderRunWhereUniqueInput;
845
+ data: Prisma.XOR<Prisma.OrderRunUpdateWithoutOrderRevInput, Prisma.OrderRunUncheckedUpdateWithoutOrderRevInput>;
846
+ };
847
+ export type OrderRunUpdateManyWithWhereWithoutOrderRevInput = {
848
+ where: Prisma.OrderRunScalarWhereInput;
849
+ data: Prisma.XOR<Prisma.OrderRunUpdateManyMutationInput, Prisma.OrderRunUncheckedUpdateManyWithoutOrderRevInput>;
850
+ };
851
+ export type OrderRunCreateWithoutOperationRunsInput = {
852
+ runNo: number;
853
+ status?: $Enums.OrderRunStatus;
854
+ priority?: $Enums.OrderRunPriority;
855
+ cost?: number | null;
856
+ dueAt?: string | null;
857
+ releaseNote?: string | null;
858
+ createdAt?: Date | string;
859
+ updatedAt?: Date | string;
860
+ createdBy: Prisma.UserCreateNestedOneWithoutOrderRunsCreatedInput;
861
+ updatedBy: Prisma.UserCreateNestedOneWithoutOrderRunsUpdatedInput;
862
+ order: Prisma.OrderCreateNestedOneWithoutOrderRunsInput;
863
+ orderRev: Prisma.OrderRevisionCreateNestedOneWithoutOrderRunsInput;
864
+ itemInstances?: Prisma.ItemInstanceCreateNestedManyWithoutOrderRunInput;
865
+ };
866
+ export type OrderRunUncheckedCreateWithoutOperationRunsInput = {
867
+ id?: number;
868
+ runNo: number;
869
+ orderId: number;
870
+ orderRevId: number;
871
+ status?: $Enums.OrderRunStatus;
872
+ priority?: $Enums.OrderRunPriority;
873
+ cost?: number | null;
874
+ dueAt?: string | null;
875
+ releaseNote?: string | null;
876
+ createdAt?: Date | string;
877
+ createdById: number;
878
+ updatedAt?: Date | string;
879
+ updatedById: number;
880
+ itemInstances?: Prisma.ItemInstanceUncheckedCreateNestedManyWithoutOrderRunInput;
881
+ };
882
+ export type OrderRunCreateOrConnectWithoutOperationRunsInput = {
883
+ where: Prisma.OrderRunWhereUniqueInput;
884
+ create: Prisma.XOR<Prisma.OrderRunCreateWithoutOperationRunsInput, Prisma.OrderRunUncheckedCreateWithoutOperationRunsInput>;
885
+ };
886
+ export type OrderRunUpsertWithoutOperationRunsInput = {
887
+ update: Prisma.XOR<Prisma.OrderRunUpdateWithoutOperationRunsInput, Prisma.OrderRunUncheckedUpdateWithoutOperationRunsInput>;
888
+ create: Prisma.XOR<Prisma.OrderRunCreateWithoutOperationRunsInput, Prisma.OrderRunUncheckedCreateWithoutOperationRunsInput>;
889
+ where?: Prisma.OrderRunWhereInput;
890
+ };
891
+ export type OrderRunUpdateToOneWithWhereWithoutOperationRunsInput = {
892
+ where?: Prisma.OrderRunWhereInput;
893
+ data: Prisma.XOR<Prisma.OrderRunUpdateWithoutOperationRunsInput, Prisma.OrderRunUncheckedUpdateWithoutOperationRunsInput>;
894
+ };
895
+ export type OrderRunUpdateWithoutOperationRunsInput = {
896
+ runNo?: Prisma.IntFieldUpdateOperationsInput | number;
897
+ status?: Prisma.EnumOrderRunStatusFieldUpdateOperationsInput | $Enums.OrderRunStatus;
898
+ priority?: Prisma.EnumOrderRunPriorityFieldUpdateOperationsInput | $Enums.OrderRunPriority;
899
+ cost?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
900
+ dueAt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
901
+ releaseNote?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
902
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
903
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
904
+ createdBy?: Prisma.UserUpdateOneRequiredWithoutOrderRunsCreatedNestedInput;
905
+ updatedBy?: Prisma.UserUpdateOneRequiredWithoutOrderRunsUpdatedNestedInput;
906
+ order?: Prisma.OrderUpdateOneRequiredWithoutOrderRunsNestedInput;
907
+ orderRev?: Prisma.OrderRevisionUpdateOneRequiredWithoutOrderRunsNestedInput;
908
+ itemInstances?: Prisma.ItemInstanceUpdateManyWithoutOrderRunNestedInput;
909
+ };
910
+ export type OrderRunUncheckedUpdateWithoutOperationRunsInput = {
911
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
912
+ runNo?: Prisma.IntFieldUpdateOperationsInput | number;
913
+ orderId?: Prisma.IntFieldUpdateOperationsInput | number;
914
+ orderRevId?: Prisma.IntFieldUpdateOperationsInput | number;
915
+ status?: Prisma.EnumOrderRunStatusFieldUpdateOperationsInput | $Enums.OrderRunStatus;
916
+ priority?: Prisma.EnumOrderRunPriorityFieldUpdateOperationsInput | $Enums.OrderRunPriority;
917
+ cost?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
918
+ dueAt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
919
+ releaseNote?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
920
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
921
+ createdById?: Prisma.IntFieldUpdateOperationsInput | number;
922
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
923
+ updatedById?: Prisma.IntFieldUpdateOperationsInput | number;
924
+ itemInstances?: Prisma.ItemInstanceUncheckedUpdateManyWithoutOrderRunNestedInput;
925
+ };
926
+ export type OrderRunCreateWithoutItemInstancesInput = {
927
+ runNo: number;
928
+ status?: $Enums.OrderRunStatus;
929
+ priority?: $Enums.OrderRunPriority;
930
+ cost?: number | null;
931
+ dueAt?: string | null;
932
+ releaseNote?: string | null;
933
+ createdAt?: Date | string;
934
+ updatedAt?: Date | string;
935
+ createdBy: Prisma.UserCreateNestedOneWithoutOrderRunsCreatedInput;
936
+ updatedBy: Prisma.UserCreateNestedOneWithoutOrderRunsUpdatedInput;
937
+ order: Prisma.OrderCreateNestedOneWithoutOrderRunsInput;
938
+ orderRev: Prisma.OrderRevisionCreateNestedOneWithoutOrderRunsInput;
939
+ operationRuns?: Prisma.OperationRunCreateNestedManyWithoutOrderRunInput;
940
+ };
941
+ export type OrderRunUncheckedCreateWithoutItemInstancesInput = {
942
+ id?: number;
943
+ runNo: number;
944
+ orderId: number;
945
+ orderRevId: number;
946
+ status?: $Enums.OrderRunStatus;
947
+ priority?: $Enums.OrderRunPriority;
948
+ cost?: number | null;
949
+ dueAt?: string | null;
950
+ releaseNote?: string | null;
951
+ createdAt?: Date | string;
952
+ createdById: number;
953
+ updatedAt?: Date | string;
954
+ updatedById: number;
955
+ operationRuns?: Prisma.OperationRunUncheckedCreateNestedManyWithoutOrderRunInput;
956
+ };
957
+ export type OrderRunCreateOrConnectWithoutItemInstancesInput = {
958
+ where: Prisma.OrderRunWhereUniqueInput;
959
+ create: Prisma.XOR<Prisma.OrderRunCreateWithoutItemInstancesInput, Prisma.OrderRunUncheckedCreateWithoutItemInstancesInput>;
960
+ };
961
+ export type OrderRunUpsertWithoutItemInstancesInput = {
962
+ update: Prisma.XOR<Prisma.OrderRunUpdateWithoutItemInstancesInput, Prisma.OrderRunUncheckedUpdateWithoutItemInstancesInput>;
963
+ create: Prisma.XOR<Prisma.OrderRunCreateWithoutItemInstancesInput, Prisma.OrderRunUncheckedCreateWithoutItemInstancesInput>;
964
+ where?: Prisma.OrderRunWhereInput;
965
+ };
966
+ export type OrderRunUpdateToOneWithWhereWithoutItemInstancesInput = {
967
+ where?: Prisma.OrderRunWhereInput;
968
+ data: Prisma.XOR<Prisma.OrderRunUpdateWithoutItemInstancesInput, Prisma.OrderRunUncheckedUpdateWithoutItemInstancesInput>;
969
+ };
970
+ export type OrderRunUpdateWithoutItemInstancesInput = {
971
+ runNo?: Prisma.IntFieldUpdateOperationsInput | number;
972
+ status?: Prisma.EnumOrderRunStatusFieldUpdateOperationsInput | $Enums.OrderRunStatus;
973
+ priority?: Prisma.EnumOrderRunPriorityFieldUpdateOperationsInput | $Enums.OrderRunPriority;
974
+ cost?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
975
+ dueAt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
976
+ releaseNote?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
977
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
978
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
979
+ createdBy?: Prisma.UserUpdateOneRequiredWithoutOrderRunsCreatedNestedInput;
980
+ updatedBy?: Prisma.UserUpdateOneRequiredWithoutOrderRunsUpdatedNestedInput;
981
+ order?: Prisma.OrderUpdateOneRequiredWithoutOrderRunsNestedInput;
982
+ orderRev?: Prisma.OrderRevisionUpdateOneRequiredWithoutOrderRunsNestedInput;
983
+ operationRuns?: Prisma.OperationRunUpdateManyWithoutOrderRunNestedInput;
984
+ };
985
+ export type OrderRunUncheckedUpdateWithoutItemInstancesInput = {
986
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
987
+ runNo?: Prisma.IntFieldUpdateOperationsInput | number;
988
+ orderId?: Prisma.IntFieldUpdateOperationsInput | number;
989
+ orderRevId?: Prisma.IntFieldUpdateOperationsInput | number;
990
+ status?: Prisma.EnumOrderRunStatusFieldUpdateOperationsInput | $Enums.OrderRunStatus;
991
+ priority?: Prisma.EnumOrderRunPriorityFieldUpdateOperationsInput | $Enums.OrderRunPriority;
992
+ cost?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
993
+ dueAt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
994
+ releaseNote?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
995
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
996
+ createdById?: Prisma.IntFieldUpdateOperationsInput | number;
997
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
998
+ updatedById?: Prisma.IntFieldUpdateOperationsInput | number;
999
+ operationRuns?: Prisma.OperationRunUncheckedUpdateManyWithoutOrderRunNestedInput;
1000
+ };
1001
+ export type OrderRunCreateWithoutCreatedByInput = {
1002
+ runNo: number;
1003
+ status?: $Enums.OrderRunStatus;
1004
+ priority?: $Enums.OrderRunPriority;
1005
+ cost?: number | null;
1006
+ dueAt?: string | null;
1007
+ releaseNote?: string | null;
1008
+ createdAt?: Date | string;
1009
+ updatedAt?: Date | string;
1010
+ updatedBy: Prisma.UserCreateNestedOneWithoutOrderRunsUpdatedInput;
1011
+ order: Prisma.OrderCreateNestedOneWithoutOrderRunsInput;
1012
+ orderRev: Prisma.OrderRevisionCreateNestedOneWithoutOrderRunsInput;
1013
+ operationRuns?: Prisma.OperationRunCreateNestedManyWithoutOrderRunInput;
1014
+ itemInstances?: Prisma.ItemInstanceCreateNestedManyWithoutOrderRunInput;
1015
+ };
1016
+ export type OrderRunUncheckedCreateWithoutCreatedByInput = {
1017
+ id?: number;
1018
+ runNo: number;
1019
+ orderId: number;
1020
+ orderRevId: number;
1021
+ status?: $Enums.OrderRunStatus;
1022
+ priority?: $Enums.OrderRunPriority;
1023
+ cost?: number | null;
1024
+ dueAt?: string | null;
1025
+ releaseNote?: string | null;
1026
+ createdAt?: Date | string;
1027
+ updatedAt?: Date | string;
1028
+ updatedById: number;
1029
+ operationRuns?: Prisma.OperationRunUncheckedCreateNestedManyWithoutOrderRunInput;
1030
+ itemInstances?: Prisma.ItemInstanceUncheckedCreateNestedManyWithoutOrderRunInput;
1031
+ };
1032
+ export type OrderRunCreateOrConnectWithoutCreatedByInput = {
1033
+ where: Prisma.OrderRunWhereUniqueInput;
1034
+ create: Prisma.XOR<Prisma.OrderRunCreateWithoutCreatedByInput, Prisma.OrderRunUncheckedCreateWithoutCreatedByInput>;
1035
+ };
1036
+ export type OrderRunCreateManyCreatedByInputEnvelope = {
1037
+ data: Prisma.OrderRunCreateManyCreatedByInput | Prisma.OrderRunCreateManyCreatedByInput[];
1038
+ };
1039
+ export type OrderRunCreateWithoutUpdatedByInput = {
1040
+ runNo: number;
1041
+ status?: $Enums.OrderRunStatus;
1042
+ priority?: $Enums.OrderRunPriority;
1043
+ cost?: number | null;
1044
+ dueAt?: string | null;
1045
+ releaseNote?: string | null;
1046
+ createdAt?: Date | string;
1047
+ updatedAt?: Date | string;
1048
+ createdBy: Prisma.UserCreateNestedOneWithoutOrderRunsCreatedInput;
1049
+ order: Prisma.OrderCreateNestedOneWithoutOrderRunsInput;
1050
+ orderRev: Prisma.OrderRevisionCreateNestedOneWithoutOrderRunsInput;
1051
+ operationRuns?: Prisma.OperationRunCreateNestedManyWithoutOrderRunInput;
1052
+ itemInstances?: Prisma.ItemInstanceCreateNestedManyWithoutOrderRunInput;
1053
+ };
1054
+ export type OrderRunUncheckedCreateWithoutUpdatedByInput = {
1055
+ id?: number;
1056
+ runNo: number;
1057
+ orderId: number;
1058
+ orderRevId: number;
1059
+ status?: $Enums.OrderRunStatus;
1060
+ priority?: $Enums.OrderRunPriority;
1061
+ cost?: number | null;
1062
+ dueAt?: string | null;
1063
+ releaseNote?: string | null;
1064
+ createdAt?: Date | string;
1065
+ createdById: number;
1066
+ updatedAt?: Date | string;
1067
+ operationRuns?: Prisma.OperationRunUncheckedCreateNestedManyWithoutOrderRunInput;
1068
+ itemInstances?: Prisma.ItemInstanceUncheckedCreateNestedManyWithoutOrderRunInput;
1069
+ };
1070
+ export type OrderRunCreateOrConnectWithoutUpdatedByInput = {
1071
+ where: Prisma.OrderRunWhereUniqueInput;
1072
+ create: Prisma.XOR<Prisma.OrderRunCreateWithoutUpdatedByInput, Prisma.OrderRunUncheckedCreateWithoutUpdatedByInput>;
1073
+ };
1074
+ export type OrderRunCreateManyUpdatedByInputEnvelope = {
1075
+ data: Prisma.OrderRunCreateManyUpdatedByInput | Prisma.OrderRunCreateManyUpdatedByInput[];
1076
+ };
1077
+ export type OrderRunUpsertWithWhereUniqueWithoutCreatedByInput = {
1078
+ where: Prisma.OrderRunWhereUniqueInput;
1079
+ update: Prisma.XOR<Prisma.OrderRunUpdateWithoutCreatedByInput, Prisma.OrderRunUncheckedUpdateWithoutCreatedByInput>;
1080
+ create: Prisma.XOR<Prisma.OrderRunCreateWithoutCreatedByInput, Prisma.OrderRunUncheckedCreateWithoutCreatedByInput>;
1081
+ };
1082
+ export type OrderRunUpdateWithWhereUniqueWithoutCreatedByInput = {
1083
+ where: Prisma.OrderRunWhereUniqueInput;
1084
+ data: Prisma.XOR<Prisma.OrderRunUpdateWithoutCreatedByInput, Prisma.OrderRunUncheckedUpdateWithoutCreatedByInput>;
1085
+ };
1086
+ export type OrderRunUpdateManyWithWhereWithoutCreatedByInput = {
1087
+ where: Prisma.OrderRunScalarWhereInput;
1088
+ data: Prisma.XOR<Prisma.OrderRunUpdateManyMutationInput, Prisma.OrderRunUncheckedUpdateManyWithoutCreatedByInput>;
1089
+ };
1090
+ export type OrderRunUpsertWithWhereUniqueWithoutUpdatedByInput = {
1091
+ where: Prisma.OrderRunWhereUniqueInput;
1092
+ update: Prisma.XOR<Prisma.OrderRunUpdateWithoutUpdatedByInput, Prisma.OrderRunUncheckedUpdateWithoutUpdatedByInput>;
1093
+ create: Prisma.XOR<Prisma.OrderRunCreateWithoutUpdatedByInput, Prisma.OrderRunUncheckedCreateWithoutUpdatedByInput>;
1094
+ };
1095
+ export type OrderRunUpdateWithWhereUniqueWithoutUpdatedByInput = {
1096
+ where: Prisma.OrderRunWhereUniqueInput;
1097
+ data: Prisma.XOR<Prisma.OrderRunUpdateWithoutUpdatedByInput, Prisma.OrderRunUncheckedUpdateWithoutUpdatedByInput>;
1098
+ };
1099
+ export type OrderRunUpdateManyWithWhereWithoutUpdatedByInput = {
1100
+ where: Prisma.OrderRunScalarWhereInput;
1101
+ data: Prisma.XOR<Prisma.OrderRunUpdateManyMutationInput, Prisma.OrderRunUncheckedUpdateManyWithoutUpdatedByInput>;
1102
+ };
1103
+ export type OrderRunCreateManyOrderInput = {
1104
+ id?: number;
1105
+ runNo: number;
1106
+ orderRevId: number;
1107
+ status?: $Enums.OrderRunStatus;
1108
+ priority?: $Enums.OrderRunPriority;
1109
+ cost?: number | null;
1110
+ dueAt?: string | null;
1111
+ releaseNote?: string | null;
1112
+ createdAt?: Date | string;
1113
+ createdById: number;
1114
+ updatedAt?: Date | string;
1115
+ updatedById: number;
1116
+ };
1117
+ export type OrderRunUpdateWithoutOrderInput = {
1118
+ runNo?: Prisma.IntFieldUpdateOperationsInput | number;
1119
+ status?: Prisma.EnumOrderRunStatusFieldUpdateOperationsInput | $Enums.OrderRunStatus;
1120
+ priority?: Prisma.EnumOrderRunPriorityFieldUpdateOperationsInput | $Enums.OrderRunPriority;
1121
+ cost?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1122
+ dueAt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1123
+ releaseNote?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1124
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1125
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1126
+ createdBy?: Prisma.UserUpdateOneRequiredWithoutOrderRunsCreatedNestedInput;
1127
+ updatedBy?: Prisma.UserUpdateOneRequiredWithoutOrderRunsUpdatedNestedInput;
1128
+ orderRev?: Prisma.OrderRevisionUpdateOneRequiredWithoutOrderRunsNestedInput;
1129
+ operationRuns?: Prisma.OperationRunUpdateManyWithoutOrderRunNestedInput;
1130
+ itemInstances?: Prisma.ItemInstanceUpdateManyWithoutOrderRunNestedInput;
1131
+ };
1132
+ export type OrderRunUncheckedUpdateWithoutOrderInput = {
1133
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
1134
+ runNo?: Prisma.IntFieldUpdateOperationsInput | number;
1135
+ orderRevId?: Prisma.IntFieldUpdateOperationsInput | number;
1136
+ status?: Prisma.EnumOrderRunStatusFieldUpdateOperationsInput | $Enums.OrderRunStatus;
1137
+ priority?: Prisma.EnumOrderRunPriorityFieldUpdateOperationsInput | $Enums.OrderRunPriority;
1138
+ cost?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1139
+ dueAt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1140
+ releaseNote?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1141
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1142
+ createdById?: Prisma.IntFieldUpdateOperationsInput | number;
1143
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1144
+ updatedById?: Prisma.IntFieldUpdateOperationsInput | number;
1145
+ operationRuns?: Prisma.OperationRunUncheckedUpdateManyWithoutOrderRunNestedInput;
1146
+ itemInstances?: Prisma.ItemInstanceUncheckedUpdateManyWithoutOrderRunNestedInput;
1147
+ };
1148
+ export type OrderRunUncheckedUpdateManyWithoutOrderInput = {
1149
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
1150
+ runNo?: Prisma.IntFieldUpdateOperationsInput | number;
1151
+ orderRevId?: Prisma.IntFieldUpdateOperationsInput | number;
1152
+ status?: Prisma.EnumOrderRunStatusFieldUpdateOperationsInput | $Enums.OrderRunStatus;
1153
+ priority?: Prisma.EnumOrderRunPriorityFieldUpdateOperationsInput | $Enums.OrderRunPriority;
1154
+ cost?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1155
+ dueAt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1156
+ releaseNote?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1157
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1158
+ createdById?: Prisma.IntFieldUpdateOperationsInput | number;
1159
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1160
+ updatedById?: Prisma.IntFieldUpdateOperationsInput | number;
1161
+ };
1162
+ export type OrderRunCreateManyOrderRevInput = {
1163
+ id?: number;
1164
+ runNo: number;
1165
+ orderId: number;
1166
+ status?: $Enums.OrderRunStatus;
1167
+ priority?: $Enums.OrderRunPriority;
1168
+ cost?: number | null;
1169
+ dueAt?: string | null;
1170
+ releaseNote?: string | null;
1171
+ createdAt?: Date | string;
1172
+ createdById: number;
1173
+ updatedAt?: Date | string;
1174
+ updatedById: number;
1175
+ };
1176
+ export type OrderRunUpdateWithoutOrderRevInput = {
1177
+ runNo?: Prisma.IntFieldUpdateOperationsInput | number;
1178
+ status?: Prisma.EnumOrderRunStatusFieldUpdateOperationsInput | $Enums.OrderRunStatus;
1179
+ priority?: Prisma.EnumOrderRunPriorityFieldUpdateOperationsInput | $Enums.OrderRunPriority;
1180
+ cost?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1181
+ dueAt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1182
+ releaseNote?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1183
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1184
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1185
+ createdBy?: Prisma.UserUpdateOneRequiredWithoutOrderRunsCreatedNestedInput;
1186
+ updatedBy?: Prisma.UserUpdateOneRequiredWithoutOrderRunsUpdatedNestedInput;
1187
+ order?: Prisma.OrderUpdateOneRequiredWithoutOrderRunsNestedInput;
1188
+ operationRuns?: Prisma.OperationRunUpdateManyWithoutOrderRunNestedInput;
1189
+ itemInstances?: Prisma.ItemInstanceUpdateManyWithoutOrderRunNestedInput;
1190
+ };
1191
+ export type OrderRunUncheckedUpdateWithoutOrderRevInput = {
1192
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
1193
+ runNo?: Prisma.IntFieldUpdateOperationsInput | number;
1194
+ orderId?: Prisma.IntFieldUpdateOperationsInput | number;
1195
+ status?: Prisma.EnumOrderRunStatusFieldUpdateOperationsInput | $Enums.OrderRunStatus;
1196
+ priority?: Prisma.EnumOrderRunPriorityFieldUpdateOperationsInput | $Enums.OrderRunPriority;
1197
+ cost?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1198
+ dueAt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1199
+ releaseNote?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1200
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1201
+ createdById?: Prisma.IntFieldUpdateOperationsInput | number;
1202
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1203
+ updatedById?: Prisma.IntFieldUpdateOperationsInput | number;
1204
+ operationRuns?: Prisma.OperationRunUncheckedUpdateManyWithoutOrderRunNestedInput;
1205
+ itemInstances?: Prisma.ItemInstanceUncheckedUpdateManyWithoutOrderRunNestedInput;
1206
+ };
1207
+ export type OrderRunUncheckedUpdateManyWithoutOrderRevInput = {
1208
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
1209
+ runNo?: Prisma.IntFieldUpdateOperationsInput | number;
1210
+ orderId?: Prisma.IntFieldUpdateOperationsInput | number;
1211
+ status?: Prisma.EnumOrderRunStatusFieldUpdateOperationsInput | $Enums.OrderRunStatus;
1212
+ priority?: Prisma.EnumOrderRunPriorityFieldUpdateOperationsInput | $Enums.OrderRunPriority;
1213
+ cost?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1214
+ dueAt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1215
+ releaseNote?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1216
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1217
+ createdById?: Prisma.IntFieldUpdateOperationsInput | number;
1218
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1219
+ updatedById?: Prisma.IntFieldUpdateOperationsInput | number;
1220
+ };
1221
+ export type OrderRunCreateManyCreatedByInput = {
1222
+ id?: number;
1223
+ runNo: number;
1224
+ orderId: number;
1225
+ orderRevId: number;
1226
+ status?: $Enums.OrderRunStatus;
1227
+ priority?: $Enums.OrderRunPriority;
1228
+ cost?: number | null;
1229
+ dueAt?: string | null;
1230
+ releaseNote?: string | null;
1231
+ createdAt?: Date | string;
1232
+ updatedAt?: Date | string;
1233
+ updatedById: number;
1234
+ };
1235
+ export type OrderRunCreateManyUpdatedByInput = {
1236
+ id?: number;
1237
+ runNo: number;
1238
+ orderId: number;
1239
+ orderRevId: number;
1240
+ status?: $Enums.OrderRunStatus;
1241
+ priority?: $Enums.OrderRunPriority;
1242
+ cost?: number | null;
1243
+ dueAt?: string | null;
1244
+ releaseNote?: string | null;
1245
+ createdAt?: Date | string;
1246
+ createdById: number;
1247
+ updatedAt?: Date | string;
1248
+ };
1249
+ export type OrderRunUpdateWithoutCreatedByInput = {
1250
+ runNo?: Prisma.IntFieldUpdateOperationsInput | number;
1251
+ status?: Prisma.EnumOrderRunStatusFieldUpdateOperationsInput | $Enums.OrderRunStatus;
1252
+ priority?: Prisma.EnumOrderRunPriorityFieldUpdateOperationsInput | $Enums.OrderRunPriority;
1253
+ cost?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1254
+ dueAt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1255
+ releaseNote?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1256
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1257
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1258
+ updatedBy?: Prisma.UserUpdateOneRequiredWithoutOrderRunsUpdatedNestedInput;
1259
+ order?: Prisma.OrderUpdateOneRequiredWithoutOrderRunsNestedInput;
1260
+ orderRev?: Prisma.OrderRevisionUpdateOneRequiredWithoutOrderRunsNestedInput;
1261
+ operationRuns?: Prisma.OperationRunUpdateManyWithoutOrderRunNestedInput;
1262
+ itemInstances?: Prisma.ItemInstanceUpdateManyWithoutOrderRunNestedInput;
1263
+ };
1264
+ export type OrderRunUncheckedUpdateWithoutCreatedByInput = {
1265
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
1266
+ runNo?: Prisma.IntFieldUpdateOperationsInput | number;
1267
+ orderId?: Prisma.IntFieldUpdateOperationsInput | number;
1268
+ orderRevId?: Prisma.IntFieldUpdateOperationsInput | number;
1269
+ status?: Prisma.EnumOrderRunStatusFieldUpdateOperationsInput | $Enums.OrderRunStatus;
1270
+ priority?: Prisma.EnumOrderRunPriorityFieldUpdateOperationsInput | $Enums.OrderRunPriority;
1271
+ cost?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1272
+ dueAt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1273
+ releaseNote?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1274
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1275
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1276
+ updatedById?: Prisma.IntFieldUpdateOperationsInput | number;
1277
+ operationRuns?: Prisma.OperationRunUncheckedUpdateManyWithoutOrderRunNestedInput;
1278
+ itemInstances?: Prisma.ItemInstanceUncheckedUpdateManyWithoutOrderRunNestedInput;
1279
+ };
1280
+ export type OrderRunUncheckedUpdateManyWithoutCreatedByInput = {
1281
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
1282
+ runNo?: Prisma.IntFieldUpdateOperationsInput | number;
1283
+ orderId?: Prisma.IntFieldUpdateOperationsInput | number;
1284
+ orderRevId?: Prisma.IntFieldUpdateOperationsInput | number;
1285
+ status?: Prisma.EnumOrderRunStatusFieldUpdateOperationsInput | $Enums.OrderRunStatus;
1286
+ priority?: Prisma.EnumOrderRunPriorityFieldUpdateOperationsInput | $Enums.OrderRunPriority;
1287
+ cost?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1288
+ dueAt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1289
+ releaseNote?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1290
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1291
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1292
+ updatedById?: Prisma.IntFieldUpdateOperationsInput | number;
1293
+ };
1294
+ export type OrderRunUpdateWithoutUpdatedByInput = {
1295
+ runNo?: Prisma.IntFieldUpdateOperationsInput | number;
1296
+ status?: Prisma.EnumOrderRunStatusFieldUpdateOperationsInput | $Enums.OrderRunStatus;
1297
+ priority?: Prisma.EnumOrderRunPriorityFieldUpdateOperationsInput | $Enums.OrderRunPriority;
1298
+ cost?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1299
+ dueAt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1300
+ releaseNote?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1301
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1302
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1303
+ createdBy?: Prisma.UserUpdateOneRequiredWithoutOrderRunsCreatedNestedInput;
1304
+ order?: Prisma.OrderUpdateOneRequiredWithoutOrderRunsNestedInput;
1305
+ orderRev?: Prisma.OrderRevisionUpdateOneRequiredWithoutOrderRunsNestedInput;
1306
+ operationRuns?: Prisma.OperationRunUpdateManyWithoutOrderRunNestedInput;
1307
+ itemInstances?: Prisma.ItemInstanceUpdateManyWithoutOrderRunNestedInput;
1308
+ };
1309
+ export type OrderRunUncheckedUpdateWithoutUpdatedByInput = {
1310
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
1311
+ runNo?: Prisma.IntFieldUpdateOperationsInput | number;
1312
+ orderId?: Prisma.IntFieldUpdateOperationsInput | number;
1313
+ orderRevId?: Prisma.IntFieldUpdateOperationsInput | number;
1314
+ status?: Prisma.EnumOrderRunStatusFieldUpdateOperationsInput | $Enums.OrderRunStatus;
1315
+ priority?: Prisma.EnumOrderRunPriorityFieldUpdateOperationsInput | $Enums.OrderRunPriority;
1316
+ cost?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1317
+ dueAt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1318
+ releaseNote?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1319
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1320
+ createdById?: Prisma.IntFieldUpdateOperationsInput | number;
1321
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1322
+ operationRuns?: Prisma.OperationRunUncheckedUpdateManyWithoutOrderRunNestedInput;
1323
+ itemInstances?: Prisma.ItemInstanceUncheckedUpdateManyWithoutOrderRunNestedInput;
1324
+ };
1325
+ export type OrderRunUncheckedUpdateManyWithoutUpdatedByInput = {
1326
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
1327
+ runNo?: Prisma.IntFieldUpdateOperationsInput | number;
1328
+ orderId?: Prisma.IntFieldUpdateOperationsInput | number;
1329
+ orderRevId?: Prisma.IntFieldUpdateOperationsInput | number;
1330
+ status?: Prisma.EnumOrderRunStatusFieldUpdateOperationsInput | $Enums.OrderRunStatus;
1331
+ priority?: Prisma.EnumOrderRunPriorityFieldUpdateOperationsInput | $Enums.OrderRunPriority;
1332
+ cost?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
1333
+ dueAt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1334
+ releaseNote?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1335
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1336
+ createdById?: Prisma.IntFieldUpdateOperationsInput | number;
1337
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1338
+ };
1339
+ /**
1340
+ * Count Type OrderRunCountOutputType
1341
+ */
1342
+ export type OrderRunCountOutputType = {
1343
+ operationRuns: number;
1344
+ itemInstances: number;
1345
+ };
1346
+ export type OrderRunCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1347
+ operationRuns?: boolean | OrderRunCountOutputTypeCountOperationRunsArgs;
1348
+ itemInstances?: boolean | OrderRunCountOutputTypeCountItemInstancesArgs;
1349
+ };
1350
+ /**
1351
+ * OrderRunCountOutputType without action
1352
+ */
1353
+ export type OrderRunCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1354
+ /**
1355
+ * Select specific fields to fetch from the OrderRunCountOutputType
1356
+ */
1357
+ select?: Prisma.OrderRunCountOutputTypeSelect<ExtArgs> | null;
1358
+ };
1359
+ /**
1360
+ * OrderRunCountOutputType without action
1361
+ */
1362
+ export type OrderRunCountOutputTypeCountOperationRunsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1363
+ where?: Prisma.OperationRunWhereInput;
1364
+ };
1365
+ /**
1366
+ * OrderRunCountOutputType without action
1367
+ */
1368
+ export type OrderRunCountOutputTypeCountItemInstancesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1369
+ where?: Prisma.ItemInstanceWhereInput;
1370
+ };
1371
+ export type OrderRunSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1372
+ id?: boolean;
1373
+ runNo?: boolean;
1374
+ orderId?: boolean;
1375
+ orderRevId?: boolean;
1376
+ status?: boolean;
1377
+ priority?: boolean;
1378
+ cost?: boolean;
1379
+ dueAt?: boolean;
1380
+ releaseNote?: boolean;
1381
+ createdAt?: boolean;
1382
+ createdById?: boolean;
1383
+ updatedAt?: boolean;
1384
+ updatedById?: boolean;
1385
+ createdBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
1386
+ updatedBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
1387
+ order?: boolean | Prisma.OrderDefaultArgs<ExtArgs>;
1388
+ orderRev?: boolean | Prisma.OrderRevisionDefaultArgs<ExtArgs>;
1389
+ operationRuns?: boolean | Prisma.OrderRun$operationRunsArgs<ExtArgs>;
1390
+ itemInstances?: boolean | Prisma.OrderRun$itemInstancesArgs<ExtArgs>;
1391
+ _count?: boolean | Prisma.OrderRunCountOutputTypeDefaultArgs<ExtArgs>;
1392
+ }, ExtArgs["result"]["orderRun"]>;
1393
+ export type OrderRunSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1394
+ id?: boolean;
1395
+ runNo?: boolean;
1396
+ orderId?: boolean;
1397
+ orderRevId?: boolean;
1398
+ status?: boolean;
1399
+ priority?: boolean;
1400
+ cost?: boolean;
1401
+ dueAt?: boolean;
1402
+ releaseNote?: boolean;
1403
+ createdAt?: boolean;
1404
+ createdById?: boolean;
1405
+ updatedAt?: boolean;
1406
+ updatedById?: boolean;
1407
+ createdBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
1408
+ updatedBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
1409
+ order?: boolean | Prisma.OrderDefaultArgs<ExtArgs>;
1410
+ orderRev?: boolean | Prisma.OrderRevisionDefaultArgs<ExtArgs>;
1411
+ }, ExtArgs["result"]["orderRun"]>;
1412
+ export type OrderRunSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1413
+ id?: boolean;
1414
+ runNo?: boolean;
1415
+ orderId?: boolean;
1416
+ orderRevId?: boolean;
1417
+ status?: boolean;
1418
+ priority?: boolean;
1419
+ cost?: boolean;
1420
+ dueAt?: boolean;
1421
+ releaseNote?: boolean;
1422
+ createdAt?: boolean;
1423
+ createdById?: boolean;
1424
+ updatedAt?: boolean;
1425
+ updatedById?: boolean;
1426
+ createdBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
1427
+ updatedBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
1428
+ order?: boolean | Prisma.OrderDefaultArgs<ExtArgs>;
1429
+ orderRev?: boolean | Prisma.OrderRevisionDefaultArgs<ExtArgs>;
1430
+ }, ExtArgs["result"]["orderRun"]>;
1431
+ export type OrderRunSelectScalar = {
1432
+ id?: boolean;
1433
+ runNo?: boolean;
1434
+ orderId?: boolean;
1435
+ orderRevId?: boolean;
1436
+ status?: boolean;
1437
+ priority?: boolean;
1438
+ cost?: boolean;
1439
+ dueAt?: boolean;
1440
+ releaseNote?: boolean;
1441
+ createdAt?: boolean;
1442
+ createdById?: boolean;
1443
+ updatedAt?: boolean;
1444
+ updatedById?: boolean;
1445
+ };
1446
+ export type OrderRunOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "runNo" | "orderId" | "orderRevId" | "status" | "priority" | "cost" | "dueAt" | "releaseNote" | "createdAt" | "createdById" | "updatedAt" | "updatedById", ExtArgs["result"]["orderRun"]>;
1447
+ export type OrderRunInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1448
+ createdBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
1449
+ updatedBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
1450
+ order?: boolean | Prisma.OrderDefaultArgs<ExtArgs>;
1451
+ orderRev?: boolean | Prisma.OrderRevisionDefaultArgs<ExtArgs>;
1452
+ operationRuns?: boolean | Prisma.OrderRun$operationRunsArgs<ExtArgs>;
1453
+ itemInstances?: boolean | Prisma.OrderRun$itemInstancesArgs<ExtArgs>;
1454
+ _count?: boolean | Prisma.OrderRunCountOutputTypeDefaultArgs<ExtArgs>;
1455
+ };
1456
+ export type OrderRunIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1457
+ createdBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
1458
+ updatedBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
1459
+ order?: boolean | Prisma.OrderDefaultArgs<ExtArgs>;
1460
+ orderRev?: boolean | Prisma.OrderRevisionDefaultArgs<ExtArgs>;
1461
+ };
1462
+ export type OrderRunIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1463
+ createdBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
1464
+ updatedBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
1465
+ order?: boolean | Prisma.OrderDefaultArgs<ExtArgs>;
1466
+ orderRev?: boolean | Prisma.OrderRevisionDefaultArgs<ExtArgs>;
1467
+ };
1468
+ export type $OrderRunPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1469
+ name: "OrderRun";
1470
+ objects: {
1471
+ createdBy: Prisma.$UserPayload<ExtArgs>;
1472
+ updatedBy: Prisma.$UserPayload<ExtArgs>;
1473
+ order: Prisma.$OrderPayload<ExtArgs>;
1474
+ orderRev: Prisma.$OrderRevisionPayload<ExtArgs>;
1475
+ operationRuns: Prisma.$OperationRunPayload<ExtArgs>[];
1476
+ itemInstances: Prisma.$ItemInstancePayload<ExtArgs>[];
1477
+ };
1478
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
1479
+ id: number;
1480
+ runNo: number;
1481
+ orderId: number;
1482
+ orderRevId: number;
1483
+ status: $Enums.OrderRunStatus;
1484
+ priority: $Enums.OrderRunPriority;
1485
+ cost: number | null;
1486
+ dueAt: string | null;
1487
+ releaseNote: string | null;
1488
+ createdAt: Date;
1489
+ createdById: number;
1490
+ updatedAt: Date;
1491
+ updatedById: number;
1492
+ }, ExtArgs["result"]["orderRun"]>;
1493
+ composites: {};
1494
+ };
1495
+ export type OrderRunGetPayload<S extends boolean | null | undefined | OrderRunDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$OrderRunPayload, S>;
1496
+ export type OrderRunCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<OrderRunFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
1497
+ select?: OrderRunCountAggregateInputType | true;
1498
+ };
1499
+ export interface OrderRunDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
1500
+ [K: symbol]: {
1501
+ types: Prisma.TypeMap<ExtArgs>['model']['OrderRun'];
1502
+ meta: {
1503
+ name: 'OrderRun';
1504
+ };
1505
+ };
1506
+ /**
1507
+ * Find zero or one OrderRun that matches the filter.
1508
+ * @param {OrderRunFindUniqueArgs} args - Arguments to find a OrderRun
1509
+ * @example
1510
+ * // Get one OrderRun
1511
+ * const orderRun = await prisma.orderRun.findUnique({
1512
+ * where: {
1513
+ * // ... provide filter here
1514
+ * }
1515
+ * })
1516
+ */
1517
+ findUnique<T extends OrderRunFindUniqueArgs>(args: Prisma.SelectSubset<T, OrderRunFindUniqueArgs<ExtArgs>>): Prisma.Prisma__OrderRunClient<runtime.Types.Result.GetResult<Prisma.$OrderRunPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1518
+ /**
1519
+ * Find one OrderRun that matches the filter or throw an error with `error.code='P2025'`
1520
+ * if no matches were found.
1521
+ * @param {OrderRunFindUniqueOrThrowArgs} args - Arguments to find a OrderRun
1522
+ * @example
1523
+ * // Get one OrderRun
1524
+ * const orderRun = await prisma.orderRun.findUniqueOrThrow({
1525
+ * where: {
1526
+ * // ... provide filter here
1527
+ * }
1528
+ * })
1529
+ */
1530
+ findUniqueOrThrow<T extends OrderRunFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, OrderRunFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__OrderRunClient<runtime.Types.Result.GetResult<Prisma.$OrderRunPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1531
+ /**
1532
+ * Find the first OrderRun that matches the filter.
1533
+ * Note, that providing `undefined` is treated as the value not being there.
1534
+ * Read more here: https://pris.ly/d/null-undefined
1535
+ * @param {OrderRunFindFirstArgs} args - Arguments to find a OrderRun
1536
+ * @example
1537
+ * // Get one OrderRun
1538
+ * const orderRun = await prisma.orderRun.findFirst({
1539
+ * where: {
1540
+ * // ... provide filter here
1541
+ * }
1542
+ * })
1543
+ */
1544
+ findFirst<T extends OrderRunFindFirstArgs>(args?: Prisma.SelectSubset<T, OrderRunFindFirstArgs<ExtArgs>>): Prisma.Prisma__OrderRunClient<runtime.Types.Result.GetResult<Prisma.$OrderRunPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1545
+ /**
1546
+ * Find the first OrderRun that matches the filter or
1547
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1548
+ * Note, that providing `undefined` is treated as the value not being there.
1549
+ * Read more here: https://pris.ly/d/null-undefined
1550
+ * @param {OrderRunFindFirstOrThrowArgs} args - Arguments to find a OrderRun
1551
+ * @example
1552
+ * // Get one OrderRun
1553
+ * const orderRun = await prisma.orderRun.findFirstOrThrow({
1554
+ * where: {
1555
+ * // ... provide filter here
1556
+ * }
1557
+ * })
1558
+ */
1559
+ findFirstOrThrow<T extends OrderRunFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, OrderRunFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__OrderRunClient<runtime.Types.Result.GetResult<Prisma.$OrderRunPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1560
+ /**
1561
+ * Find zero or more OrderRuns that matches the filter.
1562
+ * Note, that providing `undefined` is treated as the value not being there.
1563
+ * Read more here: https://pris.ly/d/null-undefined
1564
+ * @param {OrderRunFindManyArgs} args - Arguments to filter and select certain fields only.
1565
+ * @example
1566
+ * // Get all OrderRuns
1567
+ * const orderRuns = await prisma.orderRun.findMany()
1568
+ *
1569
+ * // Get first 10 OrderRuns
1570
+ * const orderRuns = await prisma.orderRun.findMany({ take: 10 })
1571
+ *
1572
+ * // Only select the `id`
1573
+ * const orderRunWithIdOnly = await prisma.orderRun.findMany({ select: { id: true } })
1574
+ *
1575
+ */
1576
+ findMany<T extends OrderRunFindManyArgs>(args?: Prisma.SelectSubset<T, OrderRunFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OrderRunPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
1577
+ /**
1578
+ * Create a OrderRun.
1579
+ * @param {OrderRunCreateArgs} args - Arguments to create a OrderRun.
1580
+ * @example
1581
+ * // Create one OrderRun
1582
+ * const OrderRun = await prisma.orderRun.create({
1583
+ * data: {
1584
+ * // ... data to create a OrderRun
1585
+ * }
1586
+ * })
1587
+ *
1588
+ */
1589
+ create<T extends OrderRunCreateArgs>(args: Prisma.SelectSubset<T, OrderRunCreateArgs<ExtArgs>>): Prisma.Prisma__OrderRunClient<runtime.Types.Result.GetResult<Prisma.$OrderRunPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1590
+ /**
1591
+ * Create many OrderRuns.
1592
+ * @param {OrderRunCreateManyArgs} args - Arguments to create many OrderRuns.
1593
+ * @example
1594
+ * // Create many OrderRuns
1595
+ * const orderRun = await prisma.orderRun.createMany({
1596
+ * data: [
1597
+ * // ... provide data here
1598
+ * ]
1599
+ * })
1600
+ *
1601
+ */
1602
+ createMany<T extends OrderRunCreateManyArgs>(args?: Prisma.SelectSubset<T, OrderRunCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1603
+ /**
1604
+ * Create many OrderRuns and returns the data saved in the database.
1605
+ * @param {OrderRunCreateManyAndReturnArgs} args - Arguments to create many OrderRuns.
1606
+ * @example
1607
+ * // Create many OrderRuns
1608
+ * const orderRun = await prisma.orderRun.createManyAndReturn({
1609
+ * data: [
1610
+ * // ... provide data here
1611
+ * ]
1612
+ * })
1613
+ *
1614
+ * // Create many OrderRuns and only return the `id`
1615
+ * const orderRunWithIdOnly = await prisma.orderRun.createManyAndReturn({
1616
+ * select: { id: true },
1617
+ * data: [
1618
+ * // ... provide data here
1619
+ * ]
1620
+ * })
1621
+ * Note, that providing `undefined` is treated as the value not being there.
1622
+ * Read more here: https://pris.ly/d/null-undefined
1623
+ *
1624
+ */
1625
+ createManyAndReturn<T extends OrderRunCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, OrderRunCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OrderRunPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
1626
+ /**
1627
+ * Delete a OrderRun.
1628
+ * @param {OrderRunDeleteArgs} args - Arguments to delete one OrderRun.
1629
+ * @example
1630
+ * // Delete one OrderRun
1631
+ * const OrderRun = await prisma.orderRun.delete({
1632
+ * where: {
1633
+ * // ... filter to delete one OrderRun
1634
+ * }
1635
+ * })
1636
+ *
1637
+ */
1638
+ delete<T extends OrderRunDeleteArgs>(args: Prisma.SelectSubset<T, OrderRunDeleteArgs<ExtArgs>>): Prisma.Prisma__OrderRunClient<runtime.Types.Result.GetResult<Prisma.$OrderRunPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1639
+ /**
1640
+ * Update one OrderRun.
1641
+ * @param {OrderRunUpdateArgs} args - Arguments to update one OrderRun.
1642
+ * @example
1643
+ * // Update one OrderRun
1644
+ * const orderRun = await prisma.orderRun.update({
1645
+ * where: {
1646
+ * // ... provide filter here
1647
+ * },
1648
+ * data: {
1649
+ * // ... provide data here
1650
+ * }
1651
+ * })
1652
+ *
1653
+ */
1654
+ update<T extends OrderRunUpdateArgs>(args: Prisma.SelectSubset<T, OrderRunUpdateArgs<ExtArgs>>): Prisma.Prisma__OrderRunClient<runtime.Types.Result.GetResult<Prisma.$OrderRunPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1655
+ /**
1656
+ * Delete zero or more OrderRuns.
1657
+ * @param {OrderRunDeleteManyArgs} args - Arguments to filter OrderRuns to delete.
1658
+ * @example
1659
+ * // Delete a few OrderRuns
1660
+ * const { count } = await prisma.orderRun.deleteMany({
1661
+ * where: {
1662
+ * // ... provide filter here
1663
+ * }
1664
+ * })
1665
+ *
1666
+ */
1667
+ deleteMany<T extends OrderRunDeleteManyArgs>(args?: Prisma.SelectSubset<T, OrderRunDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1668
+ /**
1669
+ * Update zero or more OrderRuns.
1670
+ * Note, that providing `undefined` is treated as the value not being there.
1671
+ * Read more here: https://pris.ly/d/null-undefined
1672
+ * @param {OrderRunUpdateManyArgs} args - Arguments to update one or more rows.
1673
+ * @example
1674
+ * // Update many OrderRuns
1675
+ * const orderRun = await prisma.orderRun.updateMany({
1676
+ * where: {
1677
+ * // ... provide filter here
1678
+ * },
1679
+ * data: {
1680
+ * // ... provide data here
1681
+ * }
1682
+ * })
1683
+ *
1684
+ */
1685
+ updateMany<T extends OrderRunUpdateManyArgs>(args: Prisma.SelectSubset<T, OrderRunUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1686
+ /**
1687
+ * Update zero or more OrderRuns and returns the data updated in the database.
1688
+ * @param {OrderRunUpdateManyAndReturnArgs} args - Arguments to update many OrderRuns.
1689
+ * @example
1690
+ * // Update many OrderRuns
1691
+ * const orderRun = await prisma.orderRun.updateManyAndReturn({
1692
+ * where: {
1693
+ * // ... provide filter here
1694
+ * },
1695
+ * data: [
1696
+ * // ... provide data here
1697
+ * ]
1698
+ * })
1699
+ *
1700
+ * // Update zero or more OrderRuns and only return the `id`
1701
+ * const orderRunWithIdOnly = await prisma.orderRun.updateManyAndReturn({
1702
+ * select: { id: true },
1703
+ * where: {
1704
+ * // ... provide filter here
1705
+ * },
1706
+ * data: [
1707
+ * // ... provide data here
1708
+ * ]
1709
+ * })
1710
+ * Note, that providing `undefined` is treated as the value not being there.
1711
+ * Read more here: https://pris.ly/d/null-undefined
1712
+ *
1713
+ */
1714
+ updateManyAndReturn<T extends OrderRunUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, OrderRunUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OrderRunPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
1715
+ /**
1716
+ * Create or update one OrderRun.
1717
+ * @param {OrderRunUpsertArgs} args - Arguments to update or create a OrderRun.
1718
+ * @example
1719
+ * // Update or create a OrderRun
1720
+ * const orderRun = await prisma.orderRun.upsert({
1721
+ * create: {
1722
+ * // ... data to create a OrderRun
1723
+ * },
1724
+ * update: {
1725
+ * // ... in case it already exists, update
1726
+ * },
1727
+ * where: {
1728
+ * // ... the filter for the OrderRun we want to update
1729
+ * }
1730
+ * })
1731
+ */
1732
+ upsert<T extends OrderRunUpsertArgs>(args: Prisma.SelectSubset<T, OrderRunUpsertArgs<ExtArgs>>): Prisma.Prisma__OrderRunClient<runtime.Types.Result.GetResult<Prisma.$OrderRunPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1733
+ /**
1734
+ * Count the number of OrderRuns.
1735
+ * Note, that providing `undefined` is treated as the value not being there.
1736
+ * Read more here: https://pris.ly/d/null-undefined
1737
+ * @param {OrderRunCountArgs} args - Arguments to filter OrderRuns to count.
1738
+ * @example
1739
+ * // Count the number of OrderRuns
1740
+ * const count = await prisma.orderRun.count({
1741
+ * where: {
1742
+ * // ... the filter for the OrderRuns we want to count
1743
+ * }
1744
+ * })
1745
+ **/
1746
+ count<T extends OrderRunCountArgs>(args?: Prisma.Subset<T, OrderRunCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], OrderRunCountAggregateOutputType> : number>;
1747
+ /**
1748
+ * Allows you to perform aggregations operations on a OrderRun.
1749
+ * Note, that providing `undefined` is treated as the value not being there.
1750
+ * Read more here: https://pris.ly/d/null-undefined
1751
+ * @param {OrderRunAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1752
+ * @example
1753
+ * // Ordered by age ascending
1754
+ * // Where email contains prisma.io
1755
+ * // Limited to the 10 users
1756
+ * const aggregations = await prisma.user.aggregate({
1757
+ * _avg: {
1758
+ * age: true,
1759
+ * },
1760
+ * where: {
1761
+ * email: {
1762
+ * contains: "prisma.io",
1763
+ * },
1764
+ * },
1765
+ * orderBy: {
1766
+ * age: "asc",
1767
+ * },
1768
+ * take: 10,
1769
+ * })
1770
+ **/
1771
+ aggregate<T extends OrderRunAggregateArgs>(args: Prisma.Subset<T, OrderRunAggregateArgs>): Prisma.PrismaPromise<GetOrderRunAggregateType<T>>;
1772
+ /**
1773
+ * Group by OrderRun.
1774
+ * Note, that providing `undefined` is treated as the value not being there.
1775
+ * Read more here: https://pris.ly/d/null-undefined
1776
+ * @param {OrderRunGroupByArgs} args - Group by arguments.
1777
+ * @example
1778
+ * // Group by city, order by createdAt, get count
1779
+ * const result = await prisma.user.groupBy({
1780
+ * by: ['city', 'createdAt'],
1781
+ * orderBy: {
1782
+ * createdAt: true
1783
+ * },
1784
+ * _count: {
1785
+ * _all: true
1786
+ * },
1787
+ * })
1788
+ *
1789
+ **/
1790
+ groupBy<T extends OrderRunGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
1791
+ orderBy: OrderRunGroupByArgs['orderBy'];
1792
+ } : {
1793
+ orderBy?: OrderRunGroupByArgs['orderBy'];
1794
+ }, 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 ? {
1795
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
1796
+ Error,
1797
+ 'Field ',
1798
+ P,
1799
+ ` in "having" needs to be provided in "by"`
1800
+ ];
1801
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1802
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1803
+ }[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 ? {} : {
1804
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1805
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1806
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1807
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, OrderRunGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetOrderRunGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1808
+ /**
1809
+ * Fields of the OrderRun model
1810
+ */
1811
+ readonly fields: OrderRunFieldRefs;
1812
+ }
1813
+ /**
1814
+ * The delegate class that acts as a "Promise-like" for OrderRun.
1815
+ * Why is this prefixed with `Prisma__`?
1816
+ * Because we want to prevent naming conflicts as mentioned in
1817
+ * https://github.com/prisma/prisma-client-js/issues/707
1818
+ */
1819
+ export interface Prisma__OrderRunClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1820
+ readonly [Symbol.toStringTag]: "PrismaPromise";
1821
+ 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>;
1822
+ 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>;
1823
+ order<T extends Prisma.OrderDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.OrderDefaultArgs<ExtArgs>>): Prisma.Prisma__OrderClient<runtime.Types.Result.GetResult<Prisma.$OrderPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1824
+ orderRev<T extends Prisma.OrderRevisionDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.OrderRevisionDefaultArgs<ExtArgs>>): Prisma.Prisma__OrderRevisionClient<runtime.Types.Result.GetResult<Prisma.$OrderRevisionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1825
+ operationRuns<T extends Prisma.OrderRun$operationRunsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.OrderRun$operationRunsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OperationRunPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1826
+ itemInstances<T extends Prisma.OrderRun$itemInstancesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.OrderRun$itemInstancesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ItemInstancePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1827
+ /**
1828
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1829
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1830
+ * @param onrejected The callback to execute when the Promise is rejected.
1831
+ * @returns A Promise for the completion of which ever callback is executed.
1832
+ */
1833
+ 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>;
1834
+ /**
1835
+ * Attaches a callback for only the rejection of the Promise.
1836
+ * @param onrejected The callback to execute when the Promise is rejected.
1837
+ * @returns A Promise for the completion of the callback.
1838
+ */
1839
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1840
+ /**
1841
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1842
+ * resolved value cannot be modified from the callback.
1843
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1844
+ * @returns A Promise for the completion of the callback.
1845
+ */
1846
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1847
+ }
1848
+ /**
1849
+ * Fields of the OrderRun model
1850
+ */
1851
+ export interface OrderRunFieldRefs {
1852
+ readonly id: Prisma.FieldRef<"OrderRun", 'Int'>;
1853
+ readonly runNo: Prisma.FieldRef<"OrderRun", 'Int'>;
1854
+ readonly orderId: Prisma.FieldRef<"OrderRun", 'Int'>;
1855
+ readonly orderRevId: Prisma.FieldRef<"OrderRun", 'Int'>;
1856
+ readonly status: Prisma.FieldRef<"OrderRun", 'OrderRunStatus'>;
1857
+ readonly priority: Prisma.FieldRef<"OrderRun", 'OrderRunPriority'>;
1858
+ readonly cost: Prisma.FieldRef<"OrderRun", 'Float'>;
1859
+ readonly dueAt: Prisma.FieldRef<"OrderRun", 'String'>;
1860
+ readonly releaseNote: Prisma.FieldRef<"OrderRun", 'String'>;
1861
+ readonly createdAt: Prisma.FieldRef<"OrderRun", 'DateTime'>;
1862
+ readonly createdById: Prisma.FieldRef<"OrderRun", 'Int'>;
1863
+ readonly updatedAt: Prisma.FieldRef<"OrderRun", 'DateTime'>;
1864
+ readonly updatedById: Prisma.FieldRef<"OrderRun", 'Int'>;
1865
+ }
1866
+ /**
1867
+ * OrderRun findUnique
1868
+ */
1869
+ export type OrderRunFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1870
+ /**
1871
+ * Select specific fields to fetch from the OrderRun
1872
+ */
1873
+ select?: Prisma.OrderRunSelect<ExtArgs> | null;
1874
+ /**
1875
+ * Omit specific fields from the OrderRun
1876
+ */
1877
+ omit?: Prisma.OrderRunOmit<ExtArgs> | null;
1878
+ /**
1879
+ * Choose, which related nodes to fetch as well
1880
+ */
1881
+ include?: Prisma.OrderRunInclude<ExtArgs> | null;
1882
+ /**
1883
+ * Filter, which OrderRun to fetch.
1884
+ */
1885
+ where: Prisma.OrderRunWhereUniqueInput;
1886
+ };
1887
+ /**
1888
+ * OrderRun findUniqueOrThrow
1889
+ */
1890
+ export type OrderRunFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1891
+ /**
1892
+ * Select specific fields to fetch from the OrderRun
1893
+ */
1894
+ select?: Prisma.OrderRunSelect<ExtArgs> | null;
1895
+ /**
1896
+ * Omit specific fields from the OrderRun
1897
+ */
1898
+ omit?: Prisma.OrderRunOmit<ExtArgs> | null;
1899
+ /**
1900
+ * Choose, which related nodes to fetch as well
1901
+ */
1902
+ include?: Prisma.OrderRunInclude<ExtArgs> | null;
1903
+ /**
1904
+ * Filter, which OrderRun to fetch.
1905
+ */
1906
+ where: Prisma.OrderRunWhereUniqueInput;
1907
+ };
1908
+ /**
1909
+ * OrderRun findFirst
1910
+ */
1911
+ export type OrderRunFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1912
+ /**
1913
+ * Select specific fields to fetch from the OrderRun
1914
+ */
1915
+ select?: Prisma.OrderRunSelect<ExtArgs> | null;
1916
+ /**
1917
+ * Omit specific fields from the OrderRun
1918
+ */
1919
+ omit?: Prisma.OrderRunOmit<ExtArgs> | null;
1920
+ /**
1921
+ * Choose, which related nodes to fetch as well
1922
+ */
1923
+ include?: Prisma.OrderRunInclude<ExtArgs> | null;
1924
+ /**
1925
+ * Filter, which OrderRun to fetch.
1926
+ */
1927
+ where?: Prisma.OrderRunWhereInput;
1928
+ /**
1929
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1930
+ *
1931
+ * Determine the order of OrderRuns to fetch.
1932
+ */
1933
+ orderBy?: Prisma.OrderRunOrderByWithRelationInput | Prisma.OrderRunOrderByWithRelationInput[];
1934
+ /**
1935
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1936
+ *
1937
+ * Sets the position for searching for OrderRuns.
1938
+ */
1939
+ cursor?: Prisma.OrderRunWhereUniqueInput;
1940
+ /**
1941
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1942
+ *
1943
+ * Take `±n` OrderRuns from the position of the cursor.
1944
+ */
1945
+ take?: number;
1946
+ /**
1947
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1948
+ *
1949
+ * Skip the first `n` OrderRuns.
1950
+ */
1951
+ skip?: number;
1952
+ /**
1953
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1954
+ *
1955
+ * Filter by unique combinations of OrderRuns.
1956
+ */
1957
+ distinct?: Prisma.OrderRunScalarFieldEnum | Prisma.OrderRunScalarFieldEnum[];
1958
+ };
1959
+ /**
1960
+ * OrderRun findFirstOrThrow
1961
+ */
1962
+ export type OrderRunFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1963
+ /**
1964
+ * Select specific fields to fetch from the OrderRun
1965
+ */
1966
+ select?: Prisma.OrderRunSelect<ExtArgs> | null;
1967
+ /**
1968
+ * Omit specific fields from the OrderRun
1969
+ */
1970
+ omit?: Prisma.OrderRunOmit<ExtArgs> | null;
1971
+ /**
1972
+ * Choose, which related nodes to fetch as well
1973
+ */
1974
+ include?: Prisma.OrderRunInclude<ExtArgs> | null;
1975
+ /**
1976
+ * Filter, which OrderRun to fetch.
1977
+ */
1978
+ where?: Prisma.OrderRunWhereInput;
1979
+ /**
1980
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1981
+ *
1982
+ * Determine the order of OrderRuns to fetch.
1983
+ */
1984
+ orderBy?: Prisma.OrderRunOrderByWithRelationInput | Prisma.OrderRunOrderByWithRelationInput[];
1985
+ /**
1986
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1987
+ *
1988
+ * Sets the position for searching for OrderRuns.
1989
+ */
1990
+ cursor?: Prisma.OrderRunWhereUniqueInput;
1991
+ /**
1992
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1993
+ *
1994
+ * Take `±n` OrderRuns from the position of the cursor.
1995
+ */
1996
+ take?: number;
1997
+ /**
1998
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1999
+ *
2000
+ * Skip the first `n` OrderRuns.
2001
+ */
2002
+ skip?: number;
2003
+ /**
2004
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
2005
+ *
2006
+ * Filter by unique combinations of OrderRuns.
2007
+ */
2008
+ distinct?: Prisma.OrderRunScalarFieldEnum | Prisma.OrderRunScalarFieldEnum[];
2009
+ };
2010
+ /**
2011
+ * OrderRun findMany
2012
+ */
2013
+ export type OrderRunFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2014
+ /**
2015
+ * Select specific fields to fetch from the OrderRun
2016
+ */
2017
+ select?: Prisma.OrderRunSelect<ExtArgs> | null;
2018
+ /**
2019
+ * Omit specific fields from the OrderRun
2020
+ */
2021
+ omit?: Prisma.OrderRunOmit<ExtArgs> | null;
2022
+ /**
2023
+ * Choose, which related nodes to fetch as well
2024
+ */
2025
+ include?: Prisma.OrderRunInclude<ExtArgs> | null;
2026
+ /**
2027
+ * Filter, which OrderRuns to fetch.
2028
+ */
2029
+ where?: Prisma.OrderRunWhereInput;
2030
+ /**
2031
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2032
+ *
2033
+ * Determine the order of OrderRuns to fetch.
2034
+ */
2035
+ orderBy?: Prisma.OrderRunOrderByWithRelationInput | Prisma.OrderRunOrderByWithRelationInput[];
2036
+ /**
2037
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2038
+ *
2039
+ * Sets the position for listing OrderRuns.
2040
+ */
2041
+ cursor?: Prisma.OrderRunWhereUniqueInput;
2042
+ /**
2043
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2044
+ *
2045
+ * Take `±n` OrderRuns from the position of the cursor.
2046
+ */
2047
+ take?: number;
2048
+ /**
2049
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2050
+ *
2051
+ * Skip the first `n` OrderRuns.
2052
+ */
2053
+ skip?: number;
2054
+ /**
2055
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
2056
+ *
2057
+ * Filter by unique combinations of OrderRuns.
2058
+ */
2059
+ distinct?: Prisma.OrderRunScalarFieldEnum | Prisma.OrderRunScalarFieldEnum[];
2060
+ };
2061
+ /**
2062
+ * OrderRun create
2063
+ */
2064
+ export type OrderRunCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2065
+ /**
2066
+ * Select specific fields to fetch from the OrderRun
2067
+ */
2068
+ select?: Prisma.OrderRunSelect<ExtArgs> | null;
2069
+ /**
2070
+ * Omit specific fields from the OrderRun
2071
+ */
2072
+ omit?: Prisma.OrderRunOmit<ExtArgs> | null;
2073
+ /**
2074
+ * Choose, which related nodes to fetch as well
2075
+ */
2076
+ include?: Prisma.OrderRunInclude<ExtArgs> | null;
2077
+ /**
2078
+ * The data needed to create a OrderRun.
2079
+ */
2080
+ data: Prisma.XOR<Prisma.OrderRunCreateInput, Prisma.OrderRunUncheckedCreateInput>;
2081
+ };
2082
+ /**
2083
+ * OrderRun createMany
2084
+ */
2085
+ export type OrderRunCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2086
+ /**
2087
+ * The data used to create many OrderRuns.
2088
+ */
2089
+ data: Prisma.OrderRunCreateManyInput | Prisma.OrderRunCreateManyInput[];
2090
+ };
2091
+ /**
2092
+ * OrderRun createManyAndReturn
2093
+ */
2094
+ export type OrderRunCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2095
+ /**
2096
+ * Select specific fields to fetch from the OrderRun
2097
+ */
2098
+ select?: Prisma.OrderRunSelectCreateManyAndReturn<ExtArgs> | null;
2099
+ /**
2100
+ * Omit specific fields from the OrderRun
2101
+ */
2102
+ omit?: Prisma.OrderRunOmit<ExtArgs> | null;
2103
+ /**
2104
+ * The data used to create many OrderRuns.
2105
+ */
2106
+ data: Prisma.OrderRunCreateManyInput | Prisma.OrderRunCreateManyInput[];
2107
+ /**
2108
+ * Choose, which related nodes to fetch as well
2109
+ */
2110
+ include?: Prisma.OrderRunIncludeCreateManyAndReturn<ExtArgs> | null;
2111
+ };
2112
+ /**
2113
+ * OrderRun update
2114
+ */
2115
+ export type OrderRunUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2116
+ /**
2117
+ * Select specific fields to fetch from the OrderRun
2118
+ */
2119
+ select?: Prisma.OrderRunSelect<ExtArgs> | null;
2120
+ /**
2121
+ * Omit specific fields from the OrderRun
2122
+ */
2123
+ omit?: Prisma.OrderRunOmit<ExtArgs> | null;
2124
+ /**
2125
+ * Choose, which related nodes to fetch as well
2126
+ */
2127
+ include?: Prisma.OrderRunInclude<ExtArgs> | null;
2128
+ /**
2129
+ * The data needed to update a OrderRun.
2130
+ */
2131
+ data: Prisma.XOR<Prisma.OrderRunUpdateInput, Prisma.OrderRunUncheckedUpdateInput>;
2132
+ /**
2133
+ * Choose, which OrderRun to update.
2134
+ */
2135
+ where: Prisma.OrderRunWhereUniqueInput;
2136
+ };
2137
+ /**
2138
+ * OrderRun updateMany
2139
+ */
2140
+ export type OrderRunUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2141
+ /**
2142
+ * The data used to update OrderRuns.
2143
+ */
2144
+ data: Prisma.XOR<Prisma.OrderRunUpdateManyMutationInput, Prisma.OrderRunUncheckedUpdateManyInput>;
2145
+ /**
2146
+ * Filter which OrderRuns to update
2147
+ */
2148
+ where?: Prisma.OrderRunWhereInput;
2149
+ /**
2150
+ * Limit how many OrderRuns to update.
2151
+ */
2152
+ limit?: number;
2153
+ };
2154
+ /**
2155
+ * OrderRun updateManyAndReturn
2156
+ */
2157
+ export type OrderRunUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2158
+ /**
2159
+ * Select specific fields to fetch from the OrderRun
2160
+ */
2161
+ select?: Prisma.OrderRunSelectUpdateManyAndReturn<ExtArgs> | null;
2162
+ /**
2163
+ * Omit specific fields from the OrderRun
2164
+ */
2165
+ omit?: Prisma.OrderRunOmit<ExtArgs> | null;
2166
+ /**
2167
+ * The data used to update OrderRuns.
2168
+ */
2169
+ data: Prisma.XOR<Prisma.OrderRunUpdateManyMutationInput, Prisma.OrderRunUncheckedUpdateManyInput>;
2170
+ /**
2171
+ * Filter which OrderRuns to update
2172
+ */
2173
+ where?: Prisma.OrderRunWhereInput;
2174
+ /**
2175
+ * Limit how many OrderRuns to update.
2176
+ */
2177
+ limit?: number;
2178
+ /**
2179
+ * Choose, which related nodes to fetch as well
2180
+ */
2181
+ include?: Prisma.OrderRunIncludeUpdateManyAndReturn<ExtArgs> | null;
2182
+ };
2183
+ /**
2184
+ * OrderRun upsert
2185
+ */
2186
+ export type OrderRunUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2187
+ /**
2188
+ * Select specific fields to fetch from the OrderRun
2189
+ */
2190
+ select?: Prisma.OrderRunSelect<ExtArgs> | null;
2191
+ /**
2192
+ * Omit specific fields from the OrderRun
2193
+ */
2194
+ omit?: Prisma.OrderRunOmit<ExtArgs> | null;
2195
+ /**
2196
+ * Choose, which related nodes to fetch as well
2197
+ */
2198
+ include?: Prisma.OrderRunInclude<ExtArgs> | null;
2199
+ /**
2200
+ * The filter to search for the OrderRun to update in case it exists.
2201
+ */
2202
+ where: Prisma.OrderRunWhereUniqueInput;
2203
+ /**
2204
+ * In case the OrderRun found by the `where` argument doesn't exist, create a new OrderRun with this data.
2205
+ */
2206
+ create: Prisma.XOR<Prisma.OrderRunCreateInput, Prisma.OrderRunUncheckedCreateInput>;
2207
+ /**
2208
+ * In case the OrderRun was found with the provided `where` argument, update it with this data.
2209
+ */
2210
+ update: Prisma.XOR<Prisma.OrderRunUpdateInput, Prisma.OrderRunUncheckedUpdateInput>;
2211
+ };
2212
+ /**
2213
+ * OrderRun delete
2214
+ */
2215
+ export type OrderRunDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2216
+ /**
2217
+ * Select specific fields to fetch from the OrderRun
2218
+ */
2219
+ select?: Prisma.OrderRunSelect<ExtArgs> | null;
2220
+ /**
2221
+ * Omit specific fields from the OrderRun
2222
+ */
2223
+ omit?: Prisma.OrderRunOmit<ExtArgs> | null;
2224
+ /**
2225
+ * Choose, which related nodes to fetch as well
2226
+ */
2227
+ include?: Prisma.OrderRunInclude<ExtArgs> | null;
2228
+ /**
2229
+ * Filter which OrderRun to delete.
2230
+ */
2231
+ where: Prisma.OrderRunWhereUniqueInput;
2232
+ };
2233
+ /**
2234
+ * OrderRun deleteMany
2235
+ */
2236
+ export type OrderRunDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2237
+ /**
2238
+ * Filter which OrderRuns to delete
2239
+ */
2240
+ where?: Prisma.OrderRunWhereInput;
2241
+ /**
2242
+ * Limit how many OrderRuns to delete.
2243
+ */
2244
+ limit?: number;
2245
+ };
2246
+ /**
2247
+ * OrderRun.operationRuns
2248
+ */
2249
+ export type OrderRun$operationRunsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2250
+ /**
2251
+ * Select specific fields to fetch from the OperationRun
2252
+ */
2253
+ select?: Prisma.OperationRunSelect<ExtArgs> | null;
2254
+ /**
2255
+ * Omit specific fields from the OperationRun
2256
+ */
2257
+ omit?: Prisma.OperationRunOmit<ExtArgs> | null;
2258
+ /**
2259
+ * Choose, which related nodes to fetch as well
2260
+ */
2261
+ include?: Prisma.OperationRunInclude<ExtArgs> | null;
2262
+ where?: Prisma.OperationRunWhereInput;
2263
+ orderBy?: Prisma.OperationRunOrderByWithRelationInput | Prisma.OperationRunOrderByWithRelationInput[];
2264
+ cursor?: Prisma.OperationRunWhereUniqueInput;
2265
+ take?: number;
2266
+ skip?: number;
2267
+ distinct?: Prisma.OperationRunScalarFieldEnum | Prisma.OperationRunScalarFieldEnum[];
2268
+ };
2269
+ /**
2270
+ * OrderRun.itemInstances
2271
+ */
2272
+ export type OrderRun$itemInstancesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2273
+ /**
2274
+ * Select specific fields to fetch from the ItemInstance
2275
+ */
2276
+ select?: Prisma.ItemInstanceSelect<ExtArgs> | null;
2277
+ /**
2278
+ * Omit specific fields from the ItemInstance
2279
+ */
2280
+ omit?: Prisma.ItemInstanceOmit<ExtArgs> | null;
2281
+ /**
2282
+ * Choose, which related nodes to fetch as well
2283
+ */
2284
+ include?: Prisma.ItemInstanceInclude<ExtArgs> | null;
2285
+ where?: Prisma.ItemInstanceWhereInput;
2286
+ orderBy?: Prisma.ItemInstanceOrderByWithRelationInput | Prisma.ItemInstanceOrderByWithRelationInput[];
2287
+ cursor?: Prisma.ItemInstanceWhereUniqueInput;
2288
+ take?: number;
2289
+ skip?: number;
2290
+ distinct?: Prisma.ItemInstanceScalarFieldEnum | Prisma.ItemInstanceScalarFieldEnum[];
2291
+ };
2292
+ /**
2293
+ * OrderRun without action
2294
+ */
2295
+ export type OrderRunDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2296
+ /**
2297
+ * Select specific fields to fetch from the OrderRun
2298
+ */
2299
+ select?: Prisma.OrderRunSelect<ExtArgs> | null;
2300
+ /**
2301
+ * Omit specific fields from the OrderRun
2302
+ */
2303
+ omit?: Prisma.OrderRunOmit<ExtArgs> | null;
2304
+ /**
2305
+ * Choose, which related nodes to fetch as well
2306
+ */
2307
+ include?: Prisma.OrderRunInclude<ExtArgs> | null;
2308
+ };
2309
+ export {};
2310
+ //# sourceMappingURL=OrderRun.d.ts.map