procbay-schema 1.0.171 → 1.0.175

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (150) hide show
  1. package/package.json +13 -22
  2. package/prisma/migrations/20260518124524_added_new_template_builder_changes/migration.sql +26 -0
  3. package/prisma/schema.prisma +17 -7
  4. package/scripts/sync-schemas.js +1 -5
  5. package/src/create-prisma-client.js +9 -49
  6. package/src/prisma/client.d.ts +1 -0
  7. package/src/prisma/client.js +4 -0
  8. package/src/prisma/default.d.ts +1 -0
  9. package/src/prisma/default.js +4 -0
  10. package/src/prisma/edge.d.ts +1 -0
  11. package/src/prisma/edge.js +2911 -0
  12. package/src/{generated/prisma/internal/prismaNamespaceBrowser.ts → prisma/index-browser.js} +991 -739
  13. package/src/prisma/index.d.ts +286785 -0
  14. package/src/prisma/index.js +2940 -2
  15. package/src/prisma/libquery_engine-darwin.dylib.node +0 -0
  16. package/src/prisma/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
  17. package/src/prisma/package.json +140 -0
  18. package/src/prisma/query_engine-windows.dll.node +0 -0
  19. package/src/prisma/runtime/edge-esm.js +34 -0
  20. package/src/prisma/runtime/edge.js +34 -0
  21. package/src/prisma/runtime/index-browser.d.ts +370 -0
  22. package/src/prisma/runtime/index-browser.js +16 -0
  23. package/src/prisma/runtime/library.d.ts +3647 -0
  24. package/src/prisma/runtime/library.js +146 -0
  25. package/src/prisma/runtime/react-native.js +83 -0
  26. package/src/prisma/runtime/wasm.js +35 -0
  27. package/src/prisma/schema.prisma +3831 -0
  28. package/src/prisma/wasm.d.ts +1 -0
  29. package/src/prisma/wasm.js +2873 -0
  30. package/prisma/migrations/20260515130204_updated_user_approval_management_schema/migration.sql +0 -55
  31. package/prisma.config.js +0 -19
  32. package/src/generated/prisma/browser.ts +0 -574
  33. package/src/generated/prisma/client.bundle.mjs +0 -6733
  34. package/src/generated/prisma/client.ts +0 -598
  35. package/src/generated/prisma/commonInputTypes.ts +0 -2911
  36. package/src/generated/prisma/enums.ts +0 -730
  37. package/src/generated/prisma/internal/class.ts +0 -1304
  38. package/src/generated/prisma/internal/prismaNamespace.ts +0 -12506
  39. package/src/generated/prisma/models/ActivityLog.ts +0 -1590
  40. package/src/generated/prisma/models/AdminAlert.ts +0 -1547
  41. package/src/generated/prisma/models/ApprovalCondition.ts +0 -2085
  42. package/src/generated/prisma/models/ApprovalDelegation.ts +0 -3057
  43. package/src/generated/prisma/models/ApprovalDelegationDelegate.ts +0 -1784
  44. package/src/generated/prisma/models/ApprovalHierarchy.ts +0 -3083
  45. package/src/generated/prisma/models/ApprovalJourney.ts +0 -2867
  46. package/src/generated/prisma/models/ApprovalLevel.ts +0 -2335
  47. package/src/generated/prisma/models/ApprovalLevelEscalation.ts +0 -2128
  48. package/src/generated/prisma/models/ApprovalLevelEscalationUser.ts +0 -1863
  49. package/src/generated/prisma/models/ApprovalLevelUser.ts +0 -1863
  50. package/src/generated/prisma/models/ApprovalManagement.ts +0 -1728
  51. package/src/generated/prisma/models/Attribute.ts +0 -2075
  52. package/src/generated/prisma/models/AttributeValue.ts +0 -1882
  53. package/src/generated/prisma/models/Bid.ts +0 -2719
  54. package/src/generated/prisma/models/BidLog.ts +0 -3560
  55. package/src/generated/prisma/models/BlanketPurchaseOrder.ts +0 -3527
  56. package/src/generated/prisma/models/BlanketPurchaseOrderItem.ts +0 -2532
  57. package/src/generated/prisma/models/BlanketPurchaseOrderRelease.ts +0 -2713
  58. package/src/generated/prisma/models/BoqEventItem.ts +0 -4056
  59. package/src/generated/prisma/models/Budget.ts +0 -1954
  60. package/src/generated/prisma/models/BudgetHold.ts +0 -1904
  61. package/src/generated/prisma/models/BusinessEntity.ts +0 -3901
  62. package/src/generated/prisma/models/BusinessEntityDepartment.ts +0 -2032
  63. package/src/generated/prisma/models/BusinessEntityLocation.ts +0 -1567
  64. package/src/generated/prisma/models/Catalogue.ts +0 -2081
  65. package/src/generated/prisma/models/CatalogueCart.ts +0 -2305
  66. package/src/generated/prisma/models/CatalogueVendor.ts +0 -2252
  67. package/src/generated/prisma/models/Category.ts +0 -3091
  68. package/src/generated/prisma/models/CategoryBudget.ts +0 -2690
  69. package/src/generated/prisma/models/City.ts +0 -2180
  70. package/src/generated/prisma/models/Cms.ts +0 -1492
  71. package/src/generated/prisma/models/ContactUs.ts +0 -1654
  72. package/src/generated/prisma/models/Conversation.ts +0 -2389
  73. package/src/generated/prisma/models/ConversationParticipant.ts +0 -1833
  74. package/src/generated/prisma/models/CounterOffer.ts +0 -2156
  75. package/src/generated/prisma/models/Country.ts +0 -3394
  76. package/src/generated/prisma/models/Currency.ts +0 -1642
  77. package/src/generated/prisma/models/CustomerNotification.ts +0 -1653
  78. package/src/generated/prisma/models/Department.ts +0 -2372
  79. package/src/generated/prisma/models/DepartmentBudget.ts +0 -2494
  80. package/src/generated/prisma/models/DynamicForm.ts +0 -2021
  81. package/src/generated/prisma/models/EmailTemplate.ts +0 -1516
  82. package/src/generated/prisma/models/Event.ts +0 -6819
  83. package/src/generated/prisma/models/EventConfigurations.ts +0 -1736
  84. package/src/generated/prisma/models/EventCriteria.ts +0 -2134
  85. package/src/generated/prisma/models/EventItems.ts +0 -2821
  86. package/src/generated/prisma/models/EventRfiForm.ts +0 -2020
  87. package/src/generated/prisma/models/EventRfiFormLog.ts +0 -2608
  88. package/src/generated/prisma/models/EventStrategies.ts +0 -1857
  89. package/src/generated/prisma/models/EventVendorCriteria.ts +0 -2186
  90. package/src/generated/prisma/models/EventVendors.ts +0 -3446
  91. package/src/generated/prisma/models/Expense.ts +0 -1625
  92. package/src/generated/prisma/models/ExportLog.ts +0 -1822
  93. package/src/generated/prisma/models/Faq.ts +0 -1753
  94. package/src/generated/prisma/models/FaqCategory.ts +0 -1610
  95. package/src/generated/prisma/models/FiscalYear.ts +0 -1460
  96. package/src/generated/prisma/models/FormMaster.ts +0 -1831
  97. package/src/generated/prisma/models/GRN.ts +0 -3354
  98. package/src/generated/prisma/models/GRNItem.ts +0 -2119
  99. package/src/generated/prisma/models/Industry.ts +0 -1642
  100. package/src/generated/prisma/models/Invoice.ts +0 -2949
  101. package/src/generated/prisma/models/InvoiceItem.ts +0 -2397
  102. package/src/generated/prisma/models/Item.ts +0 -10644
  103. package/src/generated/prisma/models/ItemAttribute.ts +0 -1750
  104. package/src/generated/prisma/models/ItemAttributeValue.ts +0 -1802
  105. package/src/generated/prisma/models/ItemDocument.ts +0 -1590
  106. package/src/generated/prisma/models/Location.ts +0 -2711
  107. package/src/generated/prisma/models/Message.ts +0 -2744
  108. package/src/generated/prisma/models/MessageRecipient.ts +0 -1759
  109. package/src/generated/prisma/models/Module.ts +0 -1630
  110. package/src/generated/prisma/models/Permission.ts +0 -1640
  111. package/src/generated/prisma/models/PurchaseIntake.ts +0 -4672
  112. package/src/generated/prisma/models/PurchaseIntakeItem.ts +0 -2366
  113. package/src/generated/prisma/models/PurchaseOrder.ts +0 -4012
  114. package/src/generated/prisma/models/PurchaseOrderActivityLog.ts +0 -1720
  115. package/src/generated/prisma/models/PurchaseOrderItem.ts +0 -2623
  116. package/src/generated/prisma/models/Quotation.ts +0 -3207
  117. package/src/generated/prisma/models/QuotationLog.ts +0 -3239
  118. package/src/generated/prisma/models/Region.ts +0 -1746
  119. package/src/generated/prisma/models/RequestedCatalogue.ts +0 -1618
  120. package/src/generated/prisma/models/RequestedCatalogueDetails.ts +0 -2252
  121. package/src/generated/prisma/models/Role.ts +0 -1907
  122. package/src/generated/prisma/models/RolePermission.ts +0 -1737
  123. package/src/generated/prisma/models/SendBack.ts +0 -1830
  124. package/src/generated/prisma/models/SerialNumberConfiguration.ts +0 -1254
  125. package/src/generated/prisma/models/SmtpConfig.ts +0 -1522
  126. package/src/generated/prisma/models/State.ts +0 -2174
  127. package/src/generated/prisma/models/Strategies.ts +0 -1791
  128. package/src/generated/prisma/models/SubModule.ts +0 -1450
  129. package/src/generated/prisma/models/Subregion.ts +0 -1870
  130. package/src/generated/prisma/models/SupportCategory.ts +0 -1712
  131. package/src/generated/prisma/models/SupportTicket.ts +0 -2478
  132. package/src/generated/prisma/models/SupportingDocument.ts +0 -2283
  133. package/src/generated/prisma/models/Template.ts +0 -2429
  134. package/src/generated/prisma/models/TemplateField.ts +0 -1916
  135. package/src/generated/prisma/models/TemplateStrategies.ts +0 -1614
  136. package/src/generated/prisma/models/TenantConfiguration.ts +0 -1694
  137. package/src/generated/prisma/models/TicketAssignment.ts +0 -1742
  138. package/src/generated/prisma/models/TicketHistory.ts +0 -1789
  139. package/src/generated/prisma/models/TicketReply.ts +0 -1640
  140. package/src/generated/prisma/models/Uom.ts +0 -1752
  141. package/src/generated/prisma/models/UomCategory.ts +0 -1558
  142. package/src/generated/prisma/models/UploadLog.ts +0 -1731
  143. package/src/generated/prisma/models/User.ts +0 -19397
  144. package/src/generated/prisma/models/UserDepartmentEntity.ts +0 -2099
  145. package/src/generated/prisma/models/UserEventConfiguration.ts +0 -1370
  146. package/src/generated/prisma/models/UserLoginActivity.ts +0 -1693
  147. package/src/generated/prisma/models/UserRole.ts +0 -1696
  148. package/src/generated/prisma/models/UserVendorSocketTokens.ts +0 -1450
  149. package/src/generated/prisma/models/VendorReference.ts +0 -1707
  150. package/src/generated/prisma/models.ts +0 -122
@@ -1,2119 +0,0 @@
1
-
2
- /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
- /* eslint-disable */
4
- // biome-ignore-all lint: generated file
5
- // @ts-nocheck
6
- /*
7
- * This file exports the `GRNItem` model and its related types.
8
- *
9
- * 🟢 You can import this file directly.
10
- */
11
- import type * as runtime from "@prisma/client/runtime/client"
12
- import type * as $Enums from "../enums.ts"
13
- import type * as Prisma from "../internal/prismaNamespace.ts"
14
-
15
- /**
16
- * Model GRNItem
17
- *
18
- */
19
- export type GRNItemModel = runtime.Types.Result.DefaultSelection<Prisma.$GRNItemPayload>
20
-
21
- export type AggregateGRNItem = {
22
- _count: GRNItemCountAggregateOutputType | null
23
- _avg: GRNItemAvgAggregateOutputType | null
24
- _sum: GRNItemSumAggregateOutputType | null
25
- _min: GRNItemMinAggregateOutputType | null
26
- _max: GRNItemMaxAggregateOutputType | null
27
- }
28
-
29
- export type GRNItemAvgAggregateOutputType = {
30
- id: number | null
31
- grn_id: number | null
32
- purchase_order_item_id: number | null
33
- dispatch_quantity: number | null
34
- received_quantity: number | null
35
- accepted_quantity: number | null
36
- created_by: number | null
37
- updated_by: number | null
38
- deleted_by: number | null
39
- }
40
-
41
- export type GRNItemSumAggregateOutputType = {
42
- id: number | null
43
- grn_id: number | null
44
- purchase_order_item_id: number | null
45
- dispatch_quantity: number | null
46
- received_quantity: number | null
47
- accepted_quantity: number | null
48
- created_by: number | null
49
- updated_by: number | null
50
- deleted_by: number | null
51
- }
52
-
53
- export type GRNItemMinAggregateOutputType = {
54
- id: number | null
55
- uuid: string | null
56
- grn_id: number | null
57
- purchase_order_item_id: number | null
58
- dispatch_quantity: number | null
59
- received_quantity: number | null
60
- accepted_quantity: number | null
61
- remarks: string | null
62
- inspection_remarks: string | null
63
- status: $Enums.GRNItemStatus | null
64
- created_at: Date | null
65
- created_by: number | null
66
- updated_at: Date | null
67
- updated_by: number | null
68
- is_deleted: boolean | null
69
- deleted_at: Date | null
70
- deleted_by: number | null
71
- }
72
-
73
- export type GRNItemMaxAggregateOutputType = {
74
- id: number | null
75
- uuid: string | null
76
- grn_id: number | null
77
- purchase_order_item_id: number | null
78
- dispatch_quantity: number | null
79
- received_quantity: number | null
80
- accepted_quantity: number | null
81
- remarks: string | null
82
- inspection_remarks: string | null
83
- status: $Enums.GRNItemStatus | null
84
- created_at: Date | null
85
- created_by: number | null
86
- updated_at: Date | null
87
- updated_by: number | null
88
- is_deleted: boolean | null
89
- deleted_at: Date | null
90
- deleted_by: number | null
91
- }
92
-
93
- export type GRNItemCountAggregateOutputType = {
94
- id: number
95
- uuid: number
96
- grn_id: number
97
- purchase_order_item_id: number
98
- dispatch_quantity: number
99
- received_quantity: number
100
- accepted_quantity: number
101
- remarks: number
102
- inspection_remarks: number
103
- inspection_attachments: number
104
- status: number
105
- created_at: number
106
- created_by: number
107
- updated_at: number
108
- updated_by: number
109
- is_deleted: number
110
- deleted_at: number
111
- deleted_by: number
112
- _all: number
113
- }
114
-
115
-
116
- export type GRNItemAvgAggregateInputType = {
117
- id?: true
118
- grn_id?: true
119
- purchase_order_item_id?: true
120
- dispatch_quantity?: true
121
- received_quantity?: true
122
- accepted_quantity?: true
123
- created_by?: true
124
- updated_by?: true
125
- deleted_by?: true
126
- }
127
-
128
- export type GRNItemSumAggregateInputType = {
129
- id?: true
130
- grn_id?: true
131
- purchase_order_item_id?: true
132
- dispatch_quantity?: true
133
- received_quantity?: true
134
- accepted_quantity?: true
135
- created_by?: true
136
- updated_by?: true
137
- deleted_by?: true
138
- }
139
-
140
- export type GRNItemMinAggregateInputType = {
141
- id?: true
142
- uuid?: true
143
- grn_id?: true
144
- purchase_order_item_id?: true
145
- dispatch_quantity?: true
146
- received_quantity?: true
147
- accepted_quantity?: true
148
- remarks?: true
149
- inspection_remarks?: true
150
- status?: true
151
- created_at?: true
152
- created_by?: true
153
- updated_at?: true
154
- updated_by?: true
155
- is_deleted?: true
156
- deleted_at?: true
157
- deleted_by?: true
158
- }
159
-
160
- export type GRNItemMaxAggregateInputType = {
161
- id?: true
162
- uuid?: true
163
- grn_id?: true
164
- purchase_order_item_id?: true
165
- dispatch_quantity?: true
166
- received_quantity?: true
167
- accepted_quantity?: true
168
- remarks?: true
169
- inspection_remarks?: true
170
- status?: true
171
- created_at?: true
172
- created_by?: true
173
- updated_at?: true
174
- updated_by?: true
175
- is_deleted?: true
176
- deleted_at?: true
177
- deleted_by?: true
178
- }
179
-
180
- export type GRNItemCountAggregateInputType = {
181
- id?: true
182
- uuid?: true
183
- grn_id?: true
184
- purchase_order_item_id?: true
185
- dispatch_quantity?: true
186
- received_quantity?: true
187
- accepted_quantity?: true
188
- remarks?: true
189
- inspection_remarks?: true
190
- inspection_attachments?: true
191
- status?: true
192
- created_at?: true
193
- created_by?: true
194
- updated_at?: true
195
- updated_by?: true
196
- is_deleted?: true
197
- deleted_at?: true
198
- deleted_by?: true
199
- _all?: true
200
- }
201
-
202
- export type GRNItemAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
203
- /**
204
- * Filter which GRNItem to aggregate.
205
- */
206
- where?: Prisma.GRNItemWhereInput
207
- /**
208
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
209
- *
210
- * Determine the order of GRNItems to fetch.
211
- */
212
- orderBy?: Prisma.GRNItemOrderByWithRelationInput | Prisma.GRNItemOrderByWithRelationInput[]
213
- /**
214
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
215
- *
216
- * Sets the start position
217
- */
218
- cursor?: Prisma.GRNItemWhereUniqueInput
219
- /**
220
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
221
- *
222
- * Take `±n` GRNItems from the position of the cursor.
223
- */
224
- take?: number
225
- /**
226
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
227
- *
228
- * Skip the first `n` GRNItems.
229
- */
230
- skip?: number
231
- /**
232
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
233
- *
234
- * Count returned GRNItems
235
- **/
236
- _count?: true | GRNItemCountAggregateInputType
237
- /**
238
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
239
- *
240
- * Select which fields to average
241
- **/
242
- _avg?: GRNItemAvgAggregateInputType
243
- /**
244
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
245
- *
246
- * Select which fields to sum
247
- **/
248
- _sum?: GRNItemSumAggregateInputType
249
- /**
250
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
251
- *
252
- * Select which fields to find the minimum value
253
- **/
254
- _min?: GRNItemMinAggregateInputType
255
- /**
256
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
257
- *
258
- * Select which fields to find the maximum value
259
- **/
260
- _max?: GRNItemMaxAggregateInputType
261
- }
262
-
263
- export type GetGRNItemAggregateType<T extends GRNItemAggregateArgs> = {
264
- [P in keyof T & keyof AggregateGRNItem]: P extends '_count' | 'count'
265
- ? T[P] extends true
266
- ? number
267
- : Prisma.GetScalarType<T[P], AggregateGRNItem[P]>
268
- : Prisma.GetScalarType<T[P], AggregateGRNItem[P]>
269
- }
270
-
271
-
272
-
273
-
274
- export type GRNItemGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
275
- where?: Prisma.GRNItemWhereInput
276
- orderBy?: Prisma.GRNItemOrderByWithAggregationInput | Prisma.GRNItemOrderByWithAggregationInput[]
277
- by: Prisma.GRNItemScalarFieldEnum[] | Prisma.GRNItemScalarFieldEnum
278
- having?: Prisma.GRNItemScalarWhereWithAggregatesInput
279
- take?: number
280
- skip?: number
281
- _count?: GRNItemCountAggregateInputType | true
282
- _avg?: GRNItemAvgAggregateInputType
283
- _sum?: GRNItemSumAggregateInputType
284
- _min?: GRNItemMinAggregateInputType
285
- _max?: GRNItemMaxAggregateInputType
286
- }
287
-
288
- export type GRNItemGroupByOutputType = {
289
- id: number
290
- uuid: string
291
- grn_id: number | null
292
- purchase_order_item_id: number | null
293
- dispatch_quantity: number
294
- received_quantity: number
295
- accepted_quantity: number
296
- remarks: string | null
297
- inspection_remarks: string | null
298
- inspection_attachments: runtime.JsonValue | null
299
- status: $Enums.GRNItemStatus
300
- created_at: Date
301
- created_by: number | null
302
- updated_at: Date
303
- updated_by: number | null
304
- is_deleted: boolean
305
- deleted_at: Date | null
306
- deleted_by: number | null
307
- _count: GRNItemCountAggregateOutputType | null
308
- _avg: GRNItemAvgAggregateOutputType | null
309
- _sum: GRNItemSumAggregateOutputType | null
310
- _min: GRNItemMinAggregateOutputType | null
311
- _max: GRNItemMaxAggregateOutputType | null
312
- }
313
-
314
- export type GetGRNItemGroupByPayload<T extends GRNItemGroupByArgs> = Prisma.PrismaPromise<
315
- Array<
316
- Prisma.PickEnumerable<GRNItemGroupByOutputType, T['by']> &
317
- {
318
- [P in ((keyof T) & (keyof GRNItemGroupByOutputType))]: P extends '_count'
319
- ? T[P] extends boolean
320
- ? number
321
- : Prisma.GetScalarType<T[P], GRNItemGroupByOutputType[P]>
322
- : Prisma.GetScalarType<T[P], GRNItemGroupByOutputType[P]>
323
- }
324
- >
325
- >
326
-
327
-
328
-
329
- export type GRNItemWhereInput = {
330
- AND?: Prisma.GRNItemWhereInput | Prisma.GRNItemWhereInput[]
331
- OR?: Prisma.GRNItemWhereInput[]
332
- NOT?: Prisma.GRNItemWhereInput | Prisma.GRNItemWhereInput[]
333
- id?: Prisma.IntFilter<"GRNItem"> | number
334
- uuid?: Prisma.StringFilter<"GRNItem"> | string
335
- grn_id?: Prisma.IntNullableFilter<"GRNItem"> | number | null
336
- purchase_order_item_id?: Prisma.IntNullableFilter<"GRNItem"> | number | null
337
- dispatch_quantity?: Prisma.IntFilter<"GRNItem"> | number
338
- received_quantity?: Prisma.IntFilter<"GRNItem"> | number
339
- accepted_quantity?: Prisma.IntFilter<"GRNItem"> | number
340
- remarks?: Prisma.StringNullableFilter<"GRNItem"> | string | null
341
- inspection_remarks?: Prisma.StringNullableFilter<"GRNItem"> | string | null
342
- inspection_attachments?: Prisma.JsonNullableFilter<"GRNItem">
343
- status?: Prisma.EnumGRNItemStatusFilter<"GRNItem"> | $Enums.GRNItemStatus
344
- created_at?: Prisma.DateTimeFilter<"GRNItem"> | Date | string
345
- created_by?: Prisma.IntNullableFilter<"GRNItem"> | number | null
346
- updated_at?: Prisma.DateTimeFilter<"GRNItem"> | Date | string
347
- updated_by?: Prisma.IntNullableFilter<"GRNItem"> | number | null
348
- is_deleted?: Prisma.BoolFilter<"GRNItem"> | boolean
349
- deleted_at?: Prisma.DateTimeNullableFilter<"GRNItem"> | Date | string | null
350
- deleted_by?: Prisma.IntNullableFilter<"GRNItem"> | number | null
351
- grn?: Prisma.XOR<Prisma.GRNNullableScalarRelationFilter, Prisma.GRNWhereInput> | null
352
- purchase_order_item?: Prisma.XOR<Prisma.PurchaseOrderItemNullableScalarRelationFilter, Prisma.PurchaseOrderItemWhereInput> | null
353
- }
354
-
355
- export type GRNItemOrderByWithRelationInput = {
356
- id?: Prisma.SortOrder
357
- uuid?: Prisma.SortOrder
358
- grn_id?: Prisma.SortOrderInput | Prisma.SortOrder
359
- purchase_order_item_id?: Prisma.SortOrderInput | Prisma.SortOrder
360
- dispatch_quantity?: Prisma.SortOrder
361
- received_quantity?: Prisma.SortOrder
362
- accepted_quantity?: Prisma.SortOrder
363
- remarks?: Prisma.SortOrderInput | Prisma.SortOrder
364
- inspection_remarks?: Prisma.SortOrderInput | Prisma.SortOrder
365
- inspection_attachments?: Prisma.SortOrderInput | Prisma.SortOrder
366
- status?: Prisma.SortOrder
367
- created_at?: Prisma.SortOrder
368
- created_by?: Prisma.SortOrderInput | Prisma.SortOrder
369
- updated_at?: Prisma.SortOrder
370
- updated_by?: Prisma.SortOrderInput | Prisma.SortOrder
371
- is_deleted?: Prisma.SortOrder
372
- deleted_at?: Prisma.SortOrderInput | Prisma.SortOrder
373
- deleted_by?: Prisma.SortOrderInput | Prisma.SortOrder
374
- grn?: Prisma.GRNOrderByWithRelationInput
375
- purchase_order_item?: Prisma.PurchaseOrderItemOrderByWithRelationInput
376
- }
377
-
378
- export type GRNItemWhereUniqueInput = Prisma.AtLeast<{
379
- id?: number
380
- uuid?: string
381
- AND?: Prisma.GRNItemWhereInput | Prisma.GRNItemWhereInput[]
382
- OR?: Prisma.GRNItemWhereInput[]
383
- NOT?: Prisma.GRNItemWhereInput | Prisma.GRNItemWhereInput[]
384
- grn_id?: Prisma.IntNullableFilter<"GRNItem"> | number | null
385
- purchase_order_item_id?: Prisma.IntNullableFilter<"GRNItem"> | number | null
386
- dispatch_quantity?: Prisma.IntFilter<"GRNItem"> | number
387
- received_quantity?: Prisma.IntFilter<"GRNItem"> | number
388
- accepted_quantity?: Prisma.IntFilter<"GRNItem"> | number
389
- remarks?: Prisma.StringNullableFilter<"GRNItem"> | string | null
390
- inspection_remarks?: Prisma.StringNullableFilter<"GRNItem"> | string | null
391
- inspection_attachments?: Prisma.JsonNullableFilter<"GRNItem">
392
- status?: Prisma.EnumGRNItemStatusFilter<"GRNItem"> | $Enums.GRNItemStatus
393
- created_at?: Prisma.DateTimeFilter<"GRNItem"> | Date | string
394
- created_by?: Prisma.IntNullableFilter<"GRNItem"> | number | null
395
- updated_at?: Prisma.DateTimeFilter<"GRNItem"> | Date | string
396
- updated_by?: Prisma.IntNullableFilter<"GRNItem"> | number | null
397
- is_deleted?: Prisma.BoolFilter<"GRNItem"> | boolean
398
- deleted_at?: Prisma.DateTimeNullableFilter<"GRNItem"> | Date | string | null
399
- deleted_by?: Prisma.IntNullableFilter<"GRNItem"> | number | null
400
- grn?: Prisma.XOR<Prisma.GRNNullableScalarRelationFilter, Prisma.GRNWhereInput> | null
401
- purchase_order_item?: Prisma.XOR<Prisma.PurchaseOrderItemNullableScalarRelationFilter, Prisma.PurchaseOrderItemWhereInput> | null
402
- }, "id" | "uuid">
403
-
404
- export type GRNItemOrderByWithAggregationInput = {
405
- id?: Prisma.SortOrder
406
- uuid?: Prisma.SortOrder
407
- grn_id?: Prisma.SortOrderInput | Prisma.SortOrder
408
- purchase_order_item_id?: Prisma.SortOrderInput | Prisma.SortOrder
409
- dispatch_quantity?: Prisma.SortOrder
410
- received_quantity?: Prisma.SortOrder
411
- accepted_quantity?: Prisma.SortOrder
412
- remarks?: Prisma.SortOrderInput | Prisma.SortOrder
413
- inspection_remarks?: Prisma.SortOrderInput | Prisma.SortOrder
414
- inspection_attachments?: Prisma.SortOrderInput | Prisma.SortOrder
415
- status?: Prisma.SortOrder
416
- created_at?: Prisma.SortOrder
417
- created_by?: Prisma.SortOrderInput | Prisma.SortOrder
418
- updated_at?: Prisma.SortOrder
419
- updated_by?: Prisma.SortOrderInput | Prisma.SortOrder
420
- is_deleted?: Prisma.SortOrder
421
- deleted_at?: Prisma.SortOrderInput | Prisma.SortOrder
422
- deleted_by?: Prisma.SortOrderInput | Prisma.SortOrder
423
- _count?: Prisma.GRNItemCountOrderByAggregateInput
424
- _avg?: Prisma.GRNItemAvgOrderByAggregateInput
425
- _max?: Prisma.GRNItemMaxOrderByAggregateInput
426
- _min?: Prisma.GRNItemMinOrderByAggregateInput
427
- _sum?: Prisma.GRNItemSumOrderByAggregateInput
428
- }
429
-
430
- export type GRNItemScalarWhereWithAggregatesInput = {
431
- AND?: Prisma.GRNItemScalarWhereWithAggregatesInput | Prisma.GRNItemScalarWhereWithAggregatesInput[]
432
- OR?: Prisma.GRNItemScalarWhereWithAggregatesInput[]
433
- NOT?: Prisma.GRNItemScalarWhereWithAggregatesInput | Prisma.GRNItemScalarWhereWithAggregatesInput[]
434
- id?: Prisma.IntWithAggregatesFilter<"GRNItem"> | number
435
- uuid?: Prisma.StringWithAggregatesFilter<"GRNItem"> | string
436
- grn_id?: Prisma.IntNullableWithAggregatesFilter<"GRNItem"> | number | null
437
- purchase_order_item_id?: Prisma.IntNullableWithAggregatesFilter<"GRNItem"> | number | null
438
- dispatch_quantity?: Prisma.IntWithAggregatesFilter<"GRNItem"> | number
439
- received_quantity?: Prisma.IntWithAggregatesFilter<"GRNItem"> | number
440
- accepted_quantity?: Prisma.IntWithAggregatesFilter<"GRNItem"> | number
441
- remarks?: Prisma.StringNullableWithAggregatesFilter<"GRNItem"> | string | null
442
- inspection_remarks?: Prisma.StringNullableWithAggregatesFilter<"GRNItem"> | string | null
443
- inspection_attachments?: Prisma.JsonNullableWithAggregatesFilter<"GRNItem">
444
- status?: Prisma.EnumGRNItemStatusWithAggregatesFilter<"GRNItem"> | $Enums.GRNItemStatus
445
- created_at?: Prisma.DateTimeWithAggregatesFilter<"GRNItem"> | Date | string
446
- created_by?: Prisma.IntNullableWithAggregatesFilter<"GRNItem"> | number | null
447
- updated_at?: Prisma.DateTimeWithAggregatesFilter<"GRNItem"> | Date | string
448
- updated_by?: Prisma.IntNullableWithAggregatesFilter<"GRNItem"> | number | null
449
- is_deleted?: Prisma.BoolWithAggregatesFilter<"GRNItem"> | boolean
450
- deleted_at?: Prisma.DateTimeNullableWithAggregatesFilter<"GRNItem"> | Date | string | null
451
- deleted_by?: Prisma.IntNullableWithAggregatesFilter<"GRNItem"> | number | null
452
- }
453
-
454
- export type GRNItemCreateInput = {
455
- uuid?: string
456
- dispatch_quantity?: number
457
- received_quantity?: number
458
- accepted_quantity?: number
459
- remarks?: string | null
460
- inspection_remarks?: string | null
461
- inspection_attachments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
462
- status?: $Enums.GRNItemStatus
463
- created_at?: Date | string
464
- created_by?: number | null
465
- updated_at?: Date | string
466
- updated_by?: number | null
467
- is_deleted?: boolean
468
- deleted_at?: Date | string | null
469
- deleted_by?: number | null
470
- grn?: Prisma.GRNCreateNestedOneWithoutGrn_itemsInput
471
- purchase_order_item?: Prisma.PurchaseOrderItemCreateNestedOneWithoutGrn_itemsInput
472
- }
473
-
474
- export type GRNItemUncheckedCreateInput = {
475
- id?: number
476
- uuid?: string
477
- grn_id?: number | null
478
- purchase_order_item_id?: number | null
479
- dispatch_quantity?: number
480
- received_quantity?: number
481
- accepted_quantity?: number
482
- remarks?: string | null
483
- inspection_remarks?: string | null
484
- inspection_attachments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
485
- status?: $Enums.GRNItemStatus
486
- created_at?: Date | string
487
- created_by?: number | null
488
- updated_at?: Date | string
489
- updated_by?: number | null
490
- is_deleted?: boolean
491
- deleted_at?: Date | string | null
492
- deleted_by?: number | null
493
- }
494
-
495
- export type GRNItemUpdateInput = {
496
- uuid?: Prisma.StringFieldUpdateOperationsInput | string
497
- dispatch_quantity?: Prisma.IntFieldUpdateOperationsInput | number
498
- received_quantity?: Prisma.IntFieldUpdateOperationsInput | number
499
- accepted_quantity?: Prisma.IntFieldUpdateOperationsInput | number
500
- remarks?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
501
- inspection_remarks?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
502
- inspection_attachments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
503
- status?: Prisma.EnumGRNItemStatusFieldUpdateOperationsInput | $Enums.GRNItemStatus
504
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
505
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
506
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
507
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
508
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
509
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
510
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
511
- grn?: Prisma.GRNUpdateOneWithoutGrn_itemsNestedInput
512
- purchase_order_item?: Prisma.PurchaseOrderItemUpdateOneWithoutGrn_itemsNestedInput
513
- }
514
-
515
- export type GRNItemUncheckedUpdateInput = {
516
- id?: Prisma.IntFieldUpdateOperationsInput | number
517
- uuid?: Prisma.StringFieldUpdateOperationsInput | string
518
- grn_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
519
- purchase_order_item_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
520
- dispatch_quantity?: Prisma.IntFieldUpdateOperationsInput | number
521
- received_quantity?: Prisma.IntFieldUpdateOperationsInput | number
522
- accepted_quantity?: Prisma.IntFieldUpdateOperationsInput | number
523
- remarks?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
524
- inspection_remarks?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
525
- inspection_attachments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
526
- status?: Prisma.EnumGRNItemStatusFieldUpdateOperationsInput | $Enums.GRNItemStatus
527
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
528
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
529
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
530
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
531
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
532
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
533
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
534
- }
535
-
536
- export type GRNItemCreateManyInput = {
537
- id?: number
538
- uuid?: string
539
- grn_id?: number | null
540
- purchase_order_item_id?: number | null
541
- dispatch_quantity?: number
542
- received_quantity?: number
543
- accepted_quantity?: number
544
- remarks?: string | null
545
- inspection_remarks?: string | null
546
- inspection_attachments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
547
- status?: $Enums.GRNItemStatus
548
- created_at?: Date | string
549
- created_by?: number | null
550
- updated_at?: Date | string
551
- updated_by?: number | null
552
- is_deleted?: boolean
553
- deleted_at?: Date | string | null
554
- deleted_by?: number | null
555
- }
556
-
557
- export type GRNItemUpdateManyMutationInput = {
558
- uuid?: Prisma.StringFieldUpdateOperationsInput | string
559
- dispatch_quantity?: Prisma.IntFieldUpdateOperationsInput | number
560
- received_quantity?: Prisma.IntFieldUpdateOperationsInput | number
561
- accepted_quantity?: Prisma.IntFieldUpdateOperationsInput | number
562
- remarks?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
563
- inspection_remarks?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
564
- inspection_attachments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
565
- status?: Prisma.EnumGRNItemStatusFieldUpdateOperationsInput | $Enums.GRNItemStatus
566
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
567
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
568
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
569
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
570
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
571
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
572
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
573
- }
574
-
575
- export type GRNItemUncheckedUpdateManyInput = {
576
- id?: Prisma.IntFieldUpdateOperationsInput | number
577
- uuid?: Prisma.StringFieldUpdateOperationsInput | string
578
- grn_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
579
- purchase_order_item_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
580
- dispatch_quantity?: Prisma.IntFieldUpdateOperationsInput | number
581
- received_quantity?: Prisma.IntFieldUpdateOperationsInput | number
582
- accepted_quantity?: Prisma.IntFieldUpdateOperationsInput | number
583
- remarks?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
584
- inspection_remarks?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
585
- inspection_attachments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
586
- status?: Prisma.EnumGRNItemStatusFieldUpdateOperationsInput | $Enums.GRNItemStatus
587
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
588
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
589
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
590
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
591
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
592
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
593
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
594
- }
595
-
596
- export type GRNItemListRelationFilter = {
597
- every?: Prisma.GRNItemWhereInput
598
- some?: Prisma.GRNItemWhereInput
599
- none?: Prisma.GRNItemWhereInput
600
- }
601
-
602
- export type GRNItemOrderByRelationAggregateInput = {
603
- _count?: Prisma.SortOrder
604
- }
605
-
606
- export type GRNItemCountOrderByAggregateInput = {
607
- id?: Prisma.SortOrder
608
- uuid?: Prisma.SortOrder
609
- grn_id?: Prisma.SortOrder
610
- purchase_order_item_id?: Prisma.SortOrder
611
- dispatch_quantity?: Prisma.SortOrder
612
- received_quantity?: Prisma.SortOrder
613
- accepted_quantity?: Prisma.SortOrder
614
- remarks?: Prisma.SortOrder
615
- inspection_remarks?: Prisma.SortOrder
616
- inspection_attachments?: Prisma.SortOrder
617
- status?: Prisma.SortOrder
618
- created_at?: Prisma.SortOrder
619
- created_by?: Prisma.SortOrder
620
- updated_at?: Prisma.SortOrder
621
- updated_by?: Prisma.SortOrder
622
- is_deleted?: Prisma.SortOrder
623
- deleted_at?: Prisma.SortOrder
624
- deleted_by?: Prisma.SortOrder
625
- }
626
-
627
- export type GRNItemAvgOrderByAggregateInput = {
628
- id?: Prisma.SortOrder
629
- grn_id?: Prisma.SortOrder
630
- purchase_order_item_id?: Prisma.SortOrder
631
- dispatch_quantity?: Prisma.SortOrder
632
- received_quantity?: Prisma.SortOrder
633
- accepted_quantity?: Prisma.SortOrder
634
- created_by?: Prisma.SortOrder
635
- updated_by?: Prisma.SortOrder
636
- deleted_by?: Prisma.SortOrder
637
- }
638
-
639
- export type GRNItemMaxOrderByAggregateInput = {
640
- id?: Prisma.SortOrder
641
- uuid?: Prisma.SortOrder
642
- grn_id?: Prisma.SortOrder
643
- purchase_order_item_id?: Prisma.SortOrder
644
- dispatch_quantity?: Prisma.SortOrder
645
- received_quantity?: Prisma.SortOrder
646
- accepted_quantity?: Prisma.SortOrder
647
- remarks?: Prisma.SortOrder
648
- inspection_remarks?: Prisma.SortOrder
649
- status?: Prisma.SortOrder
650
- created_at?: Prisma.SortOrder
651
- created_by?: Prisma.SortOrder
652
- updated_at?: Prisma.SortOrder
653
- updated_by?: Prisma.SortOrder
654
- is_deleted?: Prisma.SortOrder
655
- deleted_at?: Prisma.SortOrder
656
- deleted_by?: Prisma.SortOrder
657
- }
658
-
659
- export type GRNItemMinOrderByAggregateInput = {
660
- id?: Prisma.SortOrder
661
- uuid?: Prisma.SortOrder
662
- grn_id?: Prisma.SortOrder
663
- purchase_order_item_id?: Prisma.SortOrder
664
- dispatch_quantity?: Prisma.SortOrder
665
- received_quantity?: Prisma.SortOrder
666
- accepted_quantity?: Prisma.SortOrder
667
- remarks?: Prisma.SortOrder
668
- inspection_remarks?: Prisma.SortOrder
669
- status?: Prisma.SortOrder
670
- created_at?: Prisma.SortOrder
671
- created_by?: Prisma.SortOrder
672
- updated_at?: Prisma.SortOrder
673
- updated_by?: Prisma.SortOrder
674
- is_deleted?: Prisma.SortOrder
675
- deleted_at?: Prisma.SortOrder
676
- deleted_by?: Prisma.SortOrder
677
- }
678
-
679
- export type GRNItemSumOrderByAggregateInput = {
680
- id?: Prisma.SortOrder
681
- grn_id?: Prisma.SortOrder
682
- purchase_order_item_id?: Prisma.SortOrder
683
- dispatch_quantity?: Prisma.SortOrder
684
- received_quantity?: Prisma.SortOrder
685
- accepted_quantity?: Prisma.SortOrder
686
- created_by?: Prisma.SortOrder
687
- updated_by?: Prisma.SortOrder
688
- deleted_by?: Prisma.SortOrder
689
- }
690
-
691
- export type GRNItemCreateNestedManyWithoutPurchase_order_itemInput = {
692
- create?: Prisma.XOR<Prisma.GRNItemCreateWithoutPurchase_order_itemInput, Prisma.GRNItemUncheckedCreateWithoutPurchase_order_itemInput> | Prisma.GRNItemCreateWithoutPurchase_order_itemInput[] | Prisma.GRNItemUncheckedCreateWithoutPurchase_order_itemInput[]
693
- connectOrCreate?: Prisma.GRNItemCreateOrConnectWithoutPurchase_order_itemInput | Prisma.GRNItemCreateOrConnectWithoutPurchase_order_itemInput[]
694
- createMany?: Prisma.GRNItemCreateManyPurchase_order_itemInputEnvelope
695
- connect?: Prisma.GRNItemWhereUniqueInput | Prisma.GRNItemWhereUniqueInput[]
696
- }
697
-
698
- export type GRNItemUncheckedCreateNestedManyWithoutPurchase_order_itemInput = {
699
- create?: Prisma.XOR<Prisma.GRNItemCreateWithoutPurchase_order_itemInput, Prisma.GRNItemUncheckedCreateWithoutPurchase_order_itemInput> | Prisma.GRNItemCreateWithoutPurchase_order_itemInput[] | Prisma.GRNItemUncheckedCreateWithoutPurchase_order_itemInput[]
700
- connectOrCreate?: Prisma.GRNItemCreateOrConnectWithoutPurchase_order_itemInput | Prisma.GRNItemCreateOrConnectWithoutPurchase_order_itemInput[]
701
- createMany?: Prisma.GRNItemCreateManyPurchase_order_itemInputEnvelope
702
- connect?: Prisma.GRNItemWhereUniqueInput | Prisma.GRNItemWhereUniqueInput[]
703
- }
704
-
705
- export type GRNItemUpdateManyWithoutPurchase_order_itemNestedInput = {
706
- create?: Prisma.XOR<Prisma.GRNItemCreateWithoutPurchase_order_itemInput, Prisma.GRNItemUncheckedCreateWithoutPurchase_order_itemInput> | Prisma.GRNItemCreateWithoutPurchase_order_itemInput[] | Prisma.GRNItemUncheckedCreateWithoutPurchase_order_itemInput[]
707
- connectOrCreate?: Prisma.GRNItemCreateOrConnectWithoutPurchase_order_itemInput | Prisma.GRNItemCreateOrConnectWithoutPurchase_order_itemInput[]
708
- upsert?: Prisma.GRNItemUpsertWithWhereUniqueWithoutPurchase_order_itemInput | Prisma.GRNItemUpsertWithWhereUniqueWithoutPurchase_order_itemInput[]
709
- createMany?: Prisma.GRNItemCreateManyPurchase_order_itemInputEnvelope
710
- set?: Prisma.GRNItemWhereUniqueInput | Prisma.GRNItemWhereUniqueInput[]
711
- disconnect?: Prisma.GRNItemWhereUniqueInput | Prisma.GRNItemWhereUniqueInput[]
712
- delete?: Prisma.GRNItemWhereUniqueInput | Prisma.GRNItemWhereUniqueInput[]
713
- connect?: Prisma.GRNItemWhereUniqueInput | Prisma.GRNItemWhereUniqueInput[]
714
- update?: Prisma.GRNItemUpdateWithWhereUniqueWithoutPurchase_order_itemInput | Prisma.GRNItemUpdateWithWhereUniqueWithoutPurchase_order_itemInput[]
715
- updateMany?: Prisma.GRNItemUpdateManyWithWhereWithoutPurchase_order_itemInput | Prisma.GRNItemUpdateManyWithWhereWithoutPurchase_order_itemInput[]
716
- deleteMany?: Prisma.GRNItemScalarWhereInput | Prisma.GRNItemScalarWhereInput[]
717
- }
718
-
719
- export type GRNItemUncheckedUpdateManyWithoutPurchase_order_itemNestedInput = {
720
- create?: Prisma.XOR<Prisma.GRNItemCreateWithoutPurchase_order_itemInput, Prisma.GRNItemUncheckedCreateWithoutPurchase_order_itemInput> | Prisma.GRNItemCreateWithoutPurchase_order_itemInput[] | Prisma.GRNItemUncheckedCreateWithoutPurchase_order_itemInput[]
721
- connectOrCreate?: Prisma.GRNItemCreateOrConnectWithoutPurchase_order_itemInput | Prisma.GRNItemCreateOrConnectWithoutPurchase_order_itemInput[]
722
- upsert?: Prisma.GRNItemUpsertWithWhereUniqueWithoutPurchase_order_itemInput | Prisma.GRNItemUpsertWithWhereUniqueWithoutPurchase_order_itemInput[]
723
- createMany?: Prisma.GRNItemCreateManyPurchase_order_itemInputEnvelope
724
- set?: Prisma.GRNItemWhereUniqueInput | Prisma.GRNItemWhereUniqueInput[]
725
- disconnect?: Prisma.GRNItemWhereUniqueInput | Prisma.GRNItemWhereUniqueInput[]
726
- delete?: Prisma.GRNItemWhereUniqueInput | Prisma.GRNItemWhereUniqueInput[]
727
- connect?: Prisma.GRNItemWhereUniqueInput | Prisma.GRNItemWhereUniqueInput[]
728
- update?: Prisma.GRNItemUpdateWithWhereUniqueWithoutPurchase_order_itemInput | Prisma.GRNItemUpdateWithWhereUniqueWithoutPurchase_order_itemInput[]
729
- updateMany?: Prisma.GRNItemUpdateManyWithWhereWithoutPurchase_order_itemInput | Prisma.GRNItemUpdateManyWithWhereWithoutPurchase_order_itemInput[]
730
- deleteMany?: Prisma.GRNItemScalarWhereInput | Prisma.GRNItemScalarWhereInput[]
731
- }
732
-
733
- export type GRNItemCreateNestedManyWithoutGrnInput = {
734
- create?: Prisma.XOR<Prisma.GRNItemCreateWithoutGrnInput, Prisma.GRNItemUncheckedCreateWithoutGrnInput> | Prisma.GRNItemCreateWithoutGrnInput[] | Prisma.GRNItemUncheckedCreateWithoutGrnInput[]
735
- connectOrCreate?: Prisma.GRNItemCreateOrConnectWithoutGrnInput | Prisma.GRNItemCreateOrConnectWithoutGrnInput[]
736
- createMany?: Prisma.GRNItemCreateManyGrnInputEnvelope
737
- connect?: Prisma.GRNItemWhereUniqueInput | Prisma.GRNItemWhereUniqueInput[]
738
- }
739
-
740
- export type GRNItemUncheckedCreateNestedManyWithoutGrnInput = {
741
- create?: Prisma.XOR<Prisma.GRNItemCreateWithoutGrnInput, Prisma.GRNItemUncheckedCreateWithoutGrnInput> | Prisma.GRNItemCreateWithoutGrnInput[] | Prisma.GRNItemUncheckedCreateWithoutGrnInput[]
742
- connectOrCreate?: Prisma.GRNItemCreateOrConnectWithoutGrnInput | Prisma.GRNItemCreateOrConnectWithoutGrnInput[]
743
- createMany?: Prisma.GRNItemCreateManyGrnInputEnvelope
744
- connect?: Prisma.GRNItemWhereUniqueInput | Prisma.GRNItemWhereUniqueInput[]
745
- }
746
-
747
- export type GRNItemUpdateManyWithoutGrnNestedInput = {
748
- create?: Prisma.XOR<Prisma.GRNItemCreateWithoutGrnInput, Prisma.GRNItemUncheckedCreateWithoutGrnInput> | Prisma.GRNItemCreateWithoutGrnInput[] | Prisma.GRNItemUncheckedCreateWithoutGrnInput[]
749
- connectOrCreate?: Prisma.GRNItemCreateOrConnectWithoutGrnInput | Prisma.GRNItemCreateOrConnectWithoutGrnInput[]
750
- upsert?: Prisma.GRNItemUpsertWithWhereUniqueWithoutGrnInput | Prisma.GRNItemUpsertWithWhereUniqueWithoutGrnInput[]
751
- createMany?: Prisma.GRNItemCreateManyGrnInputEnvelope
752
- set?: Prisma.GRNItemWhereUniqueInput | Prisma.GRNItemWhereUniqueInput[]
753
- disconnect?: Prisma.GRNItemWhereUniqueInput | Prisma.GRNItemWhereUniqueInput[]
754
- delete?: Prisma.GRNItemWhereUniqueInput | Prisma.GRNItemWhereUniqueInput[]
755
- connect?: Prisma.GRNItemWhereUniqueInput | Prisma.GRNItemWhereUniqueInput[]
756
- update?: Prisma.GRNItemUpdateWithWhereUniqueWithoutGrnInput | Prisma.GRNItemUpdateWithWhereUniqueWithoutGrnInput[]
757
- updateMany?: Prisma.GRNItemUpdateManyWithWhereWithoutGrnInput | Prisma.GRNItemUpdateManyWithWhereWithoutGrnInput[]
758
- deleteMany?: Prisma.GRNItemScalarWhereInput | Prisma.GRNItemScalarWhereInput[]
759
- }
760
-
761
- export type GRNItemUncheckedUpdateManyWithoutGrnNestedInput = {
762
- create?: Prisma.XOR<Prisma.GRNItemCreateWithoutGrnInput, Prisma.GRNItemUncheckedCreateWithoutGrnInput> | Prisma.GRNItemCreateWithoutGrnInput[] | Prisma.GRNItemUncheckedCreateWithoutGrnInput[]
763
- connectOrCreate?: Prisma.GRNItemCreateOrConnectWithoutGrnInput | Prisma.GRNItemCreateOrConnectWithoutGrnInput[]
764
- upsert?: Prisma.GRNItemUpsertWithWhereUniqueWithoutGrnInput | Prisma.GRNItemUpsertWithWhereUniqueWithoutGrnInput[]
765
- createMany?: Prisma.GRNItemCreateManyGrnInputEnvelope
766
- set?: Prisma.GRNItemWhereUniqueInput | Prisma.GRNItemWhereUniqueInput[]
767
- disconnect?: Prisma.GRNItemWhereUniqueInput | Prisma.GRNItemWhereUniqueInput[]
768
- delete?: Prisma.GRNItemWhereUniqueInput | Prisma.GRNItemWhereUniqueInput[]
769
- connect?: Prisma.GRNItemWhereUniqueInput | Prisma.GRNItemWhereUniqueInput[]
770
- update?: Prisma.GRNItemUpdateWithWhereUniqueWithoutGrnInput | Prisma.GRNItemUpdateWithWhereUniqueWithoutGrnInput[]
771
- updateMany?: Prisma.GRNItemUpdateManyWithWhereWithoutGrnInput | Prisma.GRNItemUpdateManyWithWhereWithoutGrnInput[]
772
- deleteMany?: Prisma.GRNItemScalarWhereInput | Prisma.GRNItemScalarWhereInput[]
773
- }
774
-
775
- export type EnumGRNItemStatusFieldUpdateOperationsInput = {
776
- set?: $Enums.GRNItemStatus
777
- }
778
-
779
- export type GRNItemCreateWithoutPurchase_order_itemInput = {
780
- uuid?: string
781
- dispatch_quantity?: number
782
- received_quantity?: number
783
- accepted_quantity?: number
784
- remarks?: string | null
785
- inspection_remarks?: string | null
786
- inspection_attachments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
787
- status?: $Enums.GRNItemStatus
788
- created_at?: Date | string
789
- created_by?: number | null
790
- updated_at?: Date | string
791
- updated_by?: number | null
792
- is_deleted?: boolean
793
- deleted_at?: Date | string | null
794
- deleted_by?: number | null
795
- grn?: Prisma.GRNCreateNestedOneWithoutGrn_itemsInput
796
- }
797
-
798
- export type GRNItemUncheckedCreateWithoutPurchase_order_itemInput = {
799
- id?: number
800
- uuid?: string
801
- grn_id?: number | null
802
- dispatch_quantity?: number
803
- received_quantity?: number
804
- accepted_quantity?: number
805
- remarks?: string | null
806
- inspection_remarks?: string | null
807
- inspection_attachments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
808
- status?: $Enums.GRNItemStatus
809
- created_at?: Date | string
810
- created_by?: number | null
811
- updated_at?: Date | string
812
- updated_by?: number | null
813
- is_deleted?: boolean
814
- deleted_at?: Date | string | null
815
- deleted_by?: number | null
816
- }
817
-
818
- export type GRNItemCreateOrConnectWithoutPurchase_order_itemInput = {
819
- where: Prisma.GRNItemWhereUniqueInput
820
- create: Prisma.XOR<Prisma.GRNItemCreateWithoutPurchase_order_itemInput, Prisma.GRNItemUncheckedCreateWithoutPurchase_order_itemInput>
821
- }
822
-
823
- export type GRNItemCreateManyPurchase_order_itemInputEnvelope = {
824
- data: Prisma.GRNItemCreateManyPurchase_order_itemInput | Prisma.GRNItemCreateManyPurchase_order_itemInput[]
825
- skipDuplicates?: boolean
826
- }
827
-
828
- export type GRNItemUpsertWithWhereUniqueWithoutPurchase_order_itemInput = {
829
- where: Prisma.GRNItemWhereUniqueInput
830
- update: Prisma.XOR<Prisma.GRNItemUpdateWithoutPurchase_order_itemInput, Prisma.GRNItemUncheckedUpdateWithoutPurchase_order_itemInput>
831
- create: Prisma.XOR<Prisma.GRNItemCreateWithoutPurchase_order_itemInput, Prisma.GRNItemUncheckedCreateWithoutPurchase_order_itemInput>
832
- }
833
-
834
- export type GRNItemUpdateWithWhereUniqueWithoutPurchase_order_itemInput = {
835
- where: Prisma.GRNItemWhereUniqueInput
836
- data: Prisma.XOR<Prisma.GRNItemUpdateWithoutPurchase_order_itemInput, Prisma.GRNItemUncheckedUpdateWithoutPurchase_order_itemInput>
837
- }
838
-
839
- export type GRNItemUpdateManyWithWhereWithoutPurchase_order_itemInput = {
840
- where: Prisma.GRNItemScalarWhereInput
841
- data: Prisma.XOR<Prisma.GRNItemUpdateManyMutationInput, Prisma.GRNItemUncheckedUpdateManyWithoutPurchase_order_itemInput>
842
- }
843
-
844
- export type GRNItemScalarWhereInput = {
845
- AND?: Prisma.GRNItemScalarWhereInput | Prisma.GRNItemScalarWhereInput[]
846
- OR?: Prisma.GRNItemScalarWhereInput[]
847
- NOT?: Prisma.GRNItemScalarWhereInput | Prisma.GRNItemScalarWhereInput[]
848
- id?: Prisma.IntFilter<"GRNItem"> | number
849
- uuid?: Prisma.StringFilter<"GRNItem"> | string
850
- grn_id?: Prisma.IntNullableFilter<"GRNItem"> | number | null
851
- purchase_order_item_id?: Prisma.IntNullableFilter<"GRNItem"> | number | null
852
- dispatch_quantity?: Prisma.IntFilter<"GRNItem"> | number
853
- received_quantity?: Prisma.IntFilter<"GRNItem"> | number
854
- accepted_quantity?: Prisma.IntFilter<"GRNItem"> | number
855
- remarks?: Prisma.StringNullableFilter<"GRNItem"> | string | null
856
- inspection_remarks?: Prisma.StringNullableFilter<"GRNItem"> | string | null
857
- inspection_attachments?: Prisma.JsonNullableFilter<"GRNItem">
858
- status?: Prisma.EnumGRNItemStatusFilter<"GRNItem"> | $Enums.GRNItemStatus
859
- created_at?: Prisma.DateTimeFilter<"GRNItem"> | Date | string
860
- created_by?: Prisma.IntNullableFilter<"GRNItem"> | number | null
861
- updated_at?: Prisma.DateTimeFilter<"GRNItem"> | Date | string
862
- updated_by?: Prisma.IntNullableFilter<"GRNItem"> | number | null
863
- is_deleted?: Prisma.BoolFilter<"GRNItem"> | boolean
864
- deleted_at?: Prisma.DateTimeNullableFilter<"GRNItem"> | Date | string | null
865
- deleted_by?: Prisma.IntNullableFilter<"GRNItem"> | number | null
866
- }
867
-
868
- export type GRNItemCreateWithoutGrnInput = {
869
- uuid?: string
870
- dispatch_quantity?: number
871
- received_quantity?: number
872
- accepted_quantity?: number
873
- remarks?: string | null
874
- inspection_remarks?: string | null
875
- inspection_attachments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
876
- status?: $Enums.GRNItemStatus
877
- created_at?: Date | string
878
- created_by?: number | null
879
- updated_at?: Date | string
880
- updated_by?: number | null
881
- is_deleted?: boolean
882
- deleted_at?: Date | string | null
883
- deleted_by?: number | null
884
- purchase_order_item?: Prisma.PurchaseOrderItemCreateNestedOneWithoutGrn_itemsInput
885
- }
886
-
887
- export type GRNItemUncheckedCreateWithoutGrnInput = {
888
- id?: number
889
- uuid?: string
890
- purchase_order_item_id?: number | null
891
- dispatch_quantity?: number
892
- received_quantity?: number
893
- accepted_quantity?: number
894
- remarks?: string | null
895
- inspection_remarks?: string | null
896
- inspection_attachments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
897
- status?: $Enums.GRNItemStatus
898
- created_at?: Date | string
899
- created_by?: number | null
900
- updated_at?: Date | string
901
- updated_by?: number | null
902
- is_deleted?: boolean
903
- deleted_at?: Date | string | null
904
- deleted_by?: number | null
905
- }
906
-
907
- export type GRNItemCreateOrConnectWithoutGrnInput = {
908
- where: Prisma.GRNItemWhereUniqueInput
909
- create: Prisma.XOR<Prisma.GRNItemCreateWithoutGrnInput, Prisma.GRNItemUncheckedCreateWithoutGrnInput>
910
- }
911
-
912
- export type GRNItemCreateManyGrnInputEnvelope = {
913
- data: Prisma.GRNItemCreateManyGrnInput | Prisma.GRNItemCreateManyGrnInput[]
914
- skipDuplicates?: boolean
915
- }
916
-
917
- export type GRNItemUpsertWithWhereUniqueWithoutGrnInput = {
918
- where: Prisma.GRNItemWhereUniqueInput
919
- update: Prisma.XOR<Prisma.GRNItemUpdateWithoutGrnInput, Prisma.GRNItemUncheckedUpdateWithoutGrnInput>
920
- create: Prisma.XOR<Prisma.GRNItemCreateWithoutGrnInput, Prisma.GRNItemUncheckedCreateWithoutGrnInput>
921
- }
922
-
923
- export type GRNItemUpdateWithWhereUniqueWithoutGrnInput = {
924
- where: Prisma.GRNItemWhereUniqueInput
925
- data: Prisma.XOR<Prisma.GRNItemUpdateWithoutGrnInput, Prisma.GRNItemUncheckedUpdateWithoutGrnInput>
926
- }
927
-
928
- export type GRNItemUpdateManyWithWhereWithoutGrnInput = {
929
- where: Prisma.GRNItemScalarWhereInput
930
- data: Prisma.XOR<Prisma.GRNItemUpdateManyMutationInput, Prisma.GRNItemUncheckedUpdateManyWithoutGrnInput>
931
- }
932
-
933
- export type GRNItemCreateManyPurchase_order_itemInput = {
934
- id?: number
935
- uuid?: string
936
- grn_id?: number | null
937
- dispatch_quantity?: number
938
- received_quantity?: number
939
- accepted_quantity?: number
940
- remarks?: string | null
941
- inspection_remarks?: string | null
942
- inspection_attachments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
943
- status?: $Enums.GRNItemStatus
944
- created_at?: Date | string
945
- created_by?: number | null
946
- updated_at?: Date | string
947
- updated_by?: number | null
948
- is_deleted?: boolean
949
- deleted_at?: Date | string | null
950
- deleted_by?: number | null
951
- }
952
-
953
- export type GRNItemUpdateWithoutPurchase_order_itemInput = {
954
- uuid?: Prisma.StringFieldUpdateOperationsInput | string
955
- dispatch_quantity?: Prisma.IntFieldUpdateOperationsInput | number
956
- received_quantity?: Prisma.IntFieldUpdateOperationsInput | number
957
- accepted_quantity?: Prisma.IntFieldUpdateOperationsInput | number
958
- remarks?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
959
- inspection_remarks?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
960
- inspection_attachments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
961
- status?: Prisma.EnumGRNItemStatusFieldUpdateOperationsInput | $Enums.GRNItemStatus
962
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
963
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
964
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
965
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
966
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
967
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
968
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
969
- grn?: Prisma.GRNUpdateOneWithoutGrn_itemsNestedInput
970
- }
971
-
972
- export type GRNItemUncheckedUpdateWithoutPurchase_order_itemInput = {
973
- id?: Prisma.IntFieldUpdateOperationsInput | number
974
- uuid?: Prisma.StringFieldUpdateOperationsInput | string
975
- grn_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
976
- dispatch_quantity?: Prisma.IntFieldUpdateOperationsInput | number
977
- received_quantity?: Prisma.IntFieldUpdateOperationsInput | number
978
- accepted_quantity?: Prisma.IntFieldUpdateOperationsInput | number
979
- remarks?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
980
- inspection_remarks?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
981
- inspection_attachments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
982
- status?: Prisma.EnumGRNItemStatusFieldUpdateOperationsInput | $Enums.GRNItemStatus
983
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
984
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
985
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
986
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
987
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
988
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
989
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
990
- }
991
-
992
- export type GRNItemUncheckedUpdateManyWithoutPurchase_order_itemInput = {
993
- id?: Prisma.IntFieldUpdateOperationsInput | number
994
- uuid?: Prisma.StringFieldUpdateOperationsInput | string
995
- grn_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
996
- dispatch_quantity?: Prisma.IntFieldUpdateOperationsInput | number
997
- received_quantity?: Prisma.IntFieldUpdateOperationsInput | number
998
- accepted_quantity?: Prisma.IntFieldUpdateOperationsInput | number
999
- remarks?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1000
- inspection_remarks?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1001
- inspection_attachments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1002
- status?: Prisma.EnumGRNItemStatusFieldUpdateOperationsInput | $Enums.GRNItemStatus
1003
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1004
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1005
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1006
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1007
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1008
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1009
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1010
- }
1011
-
1012
- export type GRNItemCreateManyGrnInput = {
1013
- id?: number
1014
- uuid?: string
1015
- purchase_order_item_id?: number | null
1016
- dispatch_quantity?: number
1017
- received_quantity?: number
1018
- accepted_quantity?: number
1019
- remarks?: string | null
1020
- inspection_remarks?: string | null
1021
- inspection_attachments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1022
- status?: $Enums.GRNItemStatus
1023
- created_at?: Date | string
1024
- created_by?: number | null
1025
- updated_at?: Date | string
1026
- updated_by?: number | null
1027
- is_deleted?: boolean
1028
- deleted_at?: Date | string | null
1029
- deleted_by?: number | null
1030
- }
1031
-
1032
- export type GRNItemUpdateWithoutGrnInput = {
1033
- uuid?: Prisma.StringFieldUpdateOperationsInput | string
1034
- dispatch_quantity?: Prisma.IntFieldUpdateOperationsInput | number
1035
- received_quantity?: Prisma.IntFieldUpdateOperationsInput | number
1036
- accepted_quantity?: Prisma.IntFieldUpdateOperationsInput | number
1037
- remarks?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1038
- inspection_remarks?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1039
- inspection_attachments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1040
- status?: Prisma.EnumGRNItemStatusFieldUpdateOperationsInput | $Enums.GRNItemStatus
1041
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1042
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1043
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1044
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1045
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1046
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1047
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1048
- purchase_order_item?: Prisma.PurchaseOrderItemUpdateOneWithoutGrn_itemsNestedInput
1049
- }
1050
-
1051
- export type GRNItemUncheckedUpdateWithoutGrnInput = {
1052
- id?: Prisma.IntFieldUpdateOperationsInput | number
1053
- uuid?: Prisma.StringFieldUpdateOperationsInput | string
1054
- purchase_order_item_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1055
- dispatch_quantity?: Prisma.IntFieldUpdateOperationsInput | number
1056
- received_quantity?: Prisma.IntFieldUpdateOperationsInput | number
1057
- accepted_quantity?: Prisma.IntFieldUpdateOperationsInput | number
1058
- remarks?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1059
- inspection_remarks?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1060
- inspection_attachments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1061
- status?: Prisma.EnumGRNItemStatusFieldUpdateOperationsInput | $Enums.GRNItemStatus
1062
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1063
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1064
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1065
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1066
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1067
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1068
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1069
- }
1070
-
1071
- export type GRNItemUncheckedUpdateManyWithoutGrnInput = {
1072
- id?: Prisma.IntFieldUpdateOperationsInput | number
1073
- uuid?: Prisma.StringFieldUpdateOperationsInput | string
1074
- purchase_order_item_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1075
- dispatch_quantity?: Prisma.IntFieldUpdateOperationsInput | number
1076
- received_quantity?: Prisma.IntFieldUpdateOperationsInput | number
1077
- accepted_quantity?: Prisma.IntFieldUpdateOperationsInput | number
1078
- remarks?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1079
- inspection_remarks?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1080
- inspection_attachments?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1081
- status?: Prisma.EnumGRNItemStatusFieldUpdateOperationsInput | $Enums.GRNItemStatus
1082
- created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1083
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1084
- updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1085
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1086
- is_deleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1087
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1088
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1089
- }
1090
-
1091
-
1092
-
1093
- export type GRNItemSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1094
- id?: boolean
1095
- uuid?: boolean
1096
- grn_id?: boolean
1097
- purchase_order_item_id?: boolean
1098
- dispatch_quantity?: boolean
1099
- received_quantity?: boolean
1100
- accepted_quantity?: boolean
1101
- remarks?: boolean
1102
- inspection_remarks?: boolean
1103
- inspection_attachments?: boolean
1104
- status?: boolean
1105
- created_at?: boolean
1106
- created_by?: boolean
1107
- updated_at?: boolean
1108
- updated_by?: boolean
1109
- is_deleted?: boolean
1110
- deleted_at?: boolean
1111
- deleted_by?: boolean
1112
- grn?: boolean | Prisma.GRNItem$grnArgs<ExtArgs>
1113
- purchase_order_item?: boolean | Prisma.GRNItem$purchase_order_itemArgs<ExtArgs>
1114
- }, ExtArgs["result"]["gRNItem"]>
1115
-
1116
- export type GRNItemSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1117
- id?: boolean
1118
- uuid?: boolean
1119
- grn_id?: boolean
1120
- purchase_order_item_id?: boolean
1121
- dispatch_quantity?: boolean
1122
- received_quantity?: boolean
1123
- accepted_quantity?: boolean
1124
- remarks?: boolean
1125
- inspection_remarks?: boolean
1126
- inspection_attachments?: boolean
1127
- status?: boolean
1128
- created_at?: boolean
1129
- created_by?: boolean
1130
- updated_at?: boolean
1131
- updated_by?: boolean
1132
- is_deleted?: boolean
1133
- deleted_at?: boolean
1134
- deleted_by?: boolean
1135
- grn?: boolean | Prisma.GRNItem$grnArgs<ExtArgs>
1136
- purchase_order_item?: boolean | Prisma.GRNItem$purchase_order_itemArgs<ExtArgs>
1137
- }, ExtArgs["result"]["gRNItem"]>
1138
-
1139
- export type GRNItemSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1140
- id?: boolean
1141
- uuid?: boolean
1142
- grn_id?: boolean
1143
- purchase_order_item_id?: boolean
1144
- dispatch_quantity?: boolean
1145
- received_quantity?: boolean
1146
- accepted_quantity?: boolean
1147
- remarks?: boolean
1148
- inspection_remarks?: boolean
1149
- inspection_attachments?: boolean
1150
- status?: boolean
1151
- created_at?: boolean
1152
- created_by?: boolean
1153
- updated_at?: boolean
1154
- updated_by?: boolean
1155
- is_deleted?: boolean
1156
- deleted_at?: boolean
1157
- deleted_by?: boolean
1158
- grn?: boolean | Prisma.GRNItem$grnArgs<ExtArgs>
1159
- purchase_order_item?: boolean | Prisma.GRNItem$purchase_order_itemArgs<ExtArgs>
1160
- }, ExtArgs["result"]["gRNItem"]>
1161
-
1162
- export type GRNItemSelectScalar = {
1163
- id?: boolean
1164
- uuid?: boolean
1165
- grn_id?: boolean
1166
- purchase_order_item_id?: boolean
1167
- dispatch_quantity?: boolean
1168
- received_quantity?: boolean
1169
- accepted_quantity?: boolean
1170
- remarks?: boolean
1171
- inspection_remarks?: boolean
1172
- inspection_attachments?: boolean
1173
- status?: boolean
1174
- created_at?: boolean
1175
- created_by?: boolean
1176
- updated_at?: boolean
1177
- updated_by?: boolean
1178
- is_deleted?: boolean
1179
- deleted_at?: boolean
1180
- deleted_by?: boolean
1181
- }
1182
-
1183
- export type GRNItemOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "uuid" | "grn_id" | "purchase_order_item_id" | "dispatch_quantity" | "received_quantity" | "accepted_quantity" | "remarks" | "inspection_remarks" | "inspection_attachments" | "status" | "created_at" | "created_by" | "updated_at" | "updated_by" | "is_deleted" | "deleted_at" | "deleted_by", ExtArgs["result"]["gRNItem"]>
1184
- export type GRNItemInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1185
- grn?: boolean | Prisma.GRNItem$grnArgs<ExtArgs>
1186
- purchase_order_item?: boolean | Prisma.GRNItem$purchase_order_itemArgs<ExtArgs>
1187
- }
1188
- export type GRNItemIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1189
- grn?: boolean | Prisma.GRNItem$grnArgs<ExtArgs>
1190
- purchase_order_item?: boolean | Prisma.GRNItem$purchase_order_itemArgs<ExtArgs>
1191
- }
1192
- export type GRNItemIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1193
- grn?: boolean | Prisma.GRNItem$grnArgs<ExtArgs>
1194
- purchase_order_item?: boolean | Prisma.GRNItem$purchase_order_itemArgs<ExtArgs>
1195
- }
1196
-
1197
- export type $GRNItemPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1198
- name: "GRNItem"
1199
- objects: {
1200
- grn: Prisma.$GRNPayload<ExtArgs> | null
1201
- purchase_order_item: Prisma.$PurchaseOrderItemPayload<ExtArgs> | null
1202
- }
1203
- scalars: runtime.Types.Extensions.GetPayloadResult<{
1204
- id: number
1205
- uuid: string
1206
- grn_id: number | null
1207
- purchase_order_item_id: number | null
1208
- dispatch_quantity: number
1209
- received_quantity: number
1210
- accepted_quantity: number
1211
- remarks: string | null
1212
- inspection_remarks: string | null
1213
- inspection_attachments: runtime.JsonValue | null
1214
- status: $Enums.GRNItemStatus
1215
- created_at: Date
1216
- created_by: number | null
1217
- updated_at: Date
1218
- updated_by: number | null
1219
- is_deleted: boolean
1220
- deleted_at: Date | null
1221
- deleted_by: number | null
1222
- }, ExtArgs["result"]["gRNItem"]>
1223
- composites: {}
1224
- }
1225
-
1226
- export type GRNItemGetPayload<S extends boolean | null | undefined | GRNItemDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$GRNItemPayload, S>
1227
-
1228
- export type GRNItemCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
1229
- Omit<GRNItemFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
1230
- select?: GRNItemCountAggregateInputType | true
1231
- }
1232
-
1233
- export interface GRNItemDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
1234
- [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['GRNItem'], meta: { name: 'GRNItem' } }
1235
- /**
1236
- * Find zero or one GRNItem that matches the filter.
1237
- * @param {GRNItemFindUniqueArgs} args - Arguments to find a GRNItem
1238
- * @example
1239
- * // Get one GRNItem
1240
- * const gRNItem = await prisma.gRNItem.findUnique({
1241
- * where: {
1242
- * // ... provide filter here
1243
- * }
1244
- * })
1245
- */
1246
- findUnique<T extends GRNItemFindUniqueArgs>(args: Prisma.SelectSubset<T, GRNItemFindUniqueArgs<ExtArgs>>): Prisma.Prisma__GRNItemClient<runtime.Types.Result.GetResult<Prisma.$GRNItemPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1247
-
1248
- /**
1249
- * Find one GRNItem that matches the filter or throw an error with `error.code='P2025'`
1250
- * if no matches were found.
1251
- * @param {GRNItemFindUniqueOrThrowArgs} args - Arguments to find a GRNItem
1252
- * @example
1253
- * // Get one GRNItem
1254
- * const gRNItem = await prisma.gRNItem.findUniqueOrThrow({
1255
- * where: {
1256
- * // ... provide filter here
1257
- * }
1258
- * })
1259
- */
1260
- findUniqueOrThrow<T extends GRNItemFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, GRNItemFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__GRNItemClient<runtime.Types.Result.GetResult<Prisma.$GRNItemPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1261
-
1262
- /**
1263
- * Find the first GRNItem that matches the filter.
1264
- * Note, that providing `undefined` is treated as the value not being there.
1265
- * Read more here: https://pris.ly/d/null-undefined
1266
- * @param {GRNItemFindFirstArgs} args - Arguments to find a GRNItem
1267
- * @example
1268
- * // Get one GRNItem
1269
- * const gRNItem = await prisma.gRNItem.findFirst({
1270
- * where: {
1271
- * // ... provide filter here
1272
- * }
1273
- * })
1274
- */
1275
- findFirst<T extends GRNItemFindFirstArgs>(args?: Prisma.SelectSubset<T, GRNItemFindFirstArgs<ExtArgs>>): Prisma.Prisma__GRNItemClient<runtime.Types.Result.GetResult<Prisma.$GRNItemPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1276
-
1277
- /**
1278
- * Find the first GRNItem that matches the filter or
1279
- * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1280
- * Note, that providing `undefined` is treated as the value not being there.
1281
- * Read more here: https://pris.ly/d/null-undefined
1282
- * @param {GRNItemFindFirstOrThrowArgs} args - Arguments to find a GRNItem
1283
- * @example
1284
- * // Get one GRNItem
1285
- * const gRNItem = await prisma.gRNItem.findFirstOrThrow({
1286
- * where: {
1287
- * // ... provide filter here
1288
- * }
1289
- * })
1290
- */
1291
- findFirstOrThrow<T extends GRNItemFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, GRNItemFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__GRNItemClient<runtime.Types.Result.GetResult<Prisma.$GRNItemPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1292
-
1293
- /**
1294
- * Find zero or more GRNItems that matches the filter.
1295
- * Note, that providing `undefined` is treated as the value not being there.
1296
- * Read more here: https://pris.ly/d/null-undefined
1297
- * @param {GRNItemFindManyArgs} args - Arguments to filter and select certain fields only.
1298
- * @example
1299
- * // Get all GRNItems
1300
- * const gRNItems = await prisma.gRNItem.findMany()
1301
- *
1302
- * // Get first 10 GRNItems
1303
- * const gRNItems = await prisma.gRNItem.findMany({ take: 10 })
1304
- *
1305
- * // Only select the `id`
1306
- * const gRNItemWithIdOnly = await prisma.gRNItem.findMany({ select: { id: true } })
1307
- *
1308
- */
1309
- findMany<T extends GRNItemFindManyArgs>(args?: Prisma.SelectSubset<T, GRNItemFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$GRNItemPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
1310
-
1311
- /**
1312
- * Create a GRNItem.
1313
- * @param {GRNItemCreateArgs} args - Arguments to create a GRNItem.
1314
- * @example
1315
- * // Create one GRNItem
1316
- * const GRNItem = await prisma.gRNItem.create({
1317
- * data: {
1318
- * // ... data to create a GRNItem
1319
- * }
1320
- * })
1321
- *
1322
- */
1323
- create<T extends GRNItemCreateArgs>(args: Prisma.SelectSubset<T, GRNItemCreateArgs<ExtArgs>>): Prisma.Prisma__GRNItemClient<runtime.Types.Result.GetResult<Prisma.$GRNItemPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1324
-
1325
- /**
1326
- * Create many GRNItems.
1327
- * @param {GRNItemCreateManyArgs} args - Arguments to create many GRNItems.
1328
- * @example
1329
- * // Create many GRNItems
1330
- * const gRNItem = await prisma.gRNItem.createMany({
1331
- * data: [
1332
- * // ... provide data here
1333
- * ]
1334
- * })
1335
- *
1336
- */
1337
- createMany<T extends GRNItemCreateManyArgs>(args?: Prisma.SelectSubset<T, GRNItemCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1338
-
1339
- /**
1340
- * Create many GRNItems and returns the data saved in the database.
1341
- * @param {GRNItemCreateManyAndReturnArgs} args - Arguments to create many GRNItems.
1342
- * @example
1343
- * // Create many GRNItems
1344
- * const gRNItem = await prisma.gRNItem.createManyAndReturn({
1345
- * data: [
1346
- * // ... provide data here
1347
- * ]
1348
- * })
1349
- *
1350
- * // Create many GRNItems and only return the `id`
1351
- * const gRNItemWithIdOnly = await prisma.gRNItem.createManyAndReturn({
1352
- * select: { id: true },
1353
- * data: [
1354
- * // ... provide data here
1355
- * ]
1356
- * })
1357
- * Note, that providing `undefined` is treated as the value not being there.
1358
- * Read more here: https://pris.ly/d/null-undefined
1359
- *
1360
- */
1361
- createManyAndReturn<T extends GRNItemCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, GRNItemCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$GRNItemPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
1362
-
1363
- /**
1364
- * Delete a GRNItem.
1365
- * @param {GRNItemDeleteArgs} args - Arguments to delete one GRNItem.
1366
- * @example
1367
- * // Delete one GRNItem
1368
- * const GRNItem = await prisma.gRNItem.delete({
1369
- * where: {
1370
- * // ... filter to delete one GRNItem
1371
- * }
1372
- * })
1373
- *
1374
- */
1375
- delete<T extends GRNItemDeleteArgs>(args: Prisma.SelectSubset<T, GRNItemDeleteArgs<ExtArgs>>): Prisma.Prisma__GRNItemClient<runtime.Types.Result.GetResult<Prisma.$GRNItemPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1376
-
1377
- /**
1378
- * Update one GRNItem.
1379
- * @param {GRNItemUpdateArgs} args - Arguments to update one GRNItem.
1380
- * @example
1381
- * // Update one GRNItem
1382
- * const gRNItem = await prisma.gRNItem.update({
1383
- * where: {
1384
- * // ... provide filter here
1385
- * },
1386
- * data: {
1387
- * // ... provide data here
1388
- * }
1389
- * })
1390
- *
1391
- */
1392
- update<T extends GRNItemUpdateArgs>(args: Prisma.SelectSubset<T, GRNItemUpdateArgs<ExtArgs>>): Prisma.Prisma__GRNItemClient<runtime.Types.Result.GetResult<Prisma.$GRNItemPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1393
-
1394
- /**
1395
- * Delete zero or more GRNItems.
1396
- * @param {GRNItemDeleteManyArgs} args - Arguments to filter GRNItems to delete.
1397
- * @example
1398
- * // Delete a few GRNItems
1399
- * const { count } = await prisma.gRNItem.deleteMany({
1400
- * where: {
1401
- * // ... provide filter here
1402
- * }
1403
- * })
1404
- *
1405
- */
1406
- deleteMany<T extends GRNItemDeleteManyArgs>(args?: Prisma.SelectSubset<T, GRNItemDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1407
-
1408
- /**
1409
- * Update zero or more GRNItems.
1410
- * Note, that providing `undefined` is treated as the value not being there.
1411
- * Read more here: https://pris.ly/d/null-undefined
1412
- * @param {GRNItemUpdateManyArgs} args - Arguments to update one or more rows.
1413
- * @example
1414
- * // Update many GRNItems
1415
- * const gRNItem = await prisma.gRNItem.updateMany({
1416
- * where: {
1417
- * // ... provide filter here
1418
- * },
1419
- * data: {
1420
- * // ... provide data here
1421
- * }
1422
- * })
1423
- *
1424
- */
1425
- updateMany<T extends GRNItemUpdateManyArgs>(args: Prisma.SelectSubset<T, GRNItemUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1426
-
1427
- /**
1428
- * Update zero or more GRNItems and returns the data updated in the database.
1429
- * @param {GRNItemUpdateManyAndReturnArgs} args - Arguments to update many GRNItems.
1430
- * @example
1431
- * // Update many GRNItems
1432
- * const gRNItem = await prisma.gRNItem.updateManyAndReturn({
1433
- * where: {
1434
- * // ... provide filter here
1435
- * },
1436
- * data: [
1437
- * // ... provide data here
1438
- * ]
1439
- * })
1440
- *
1441
- * // Update zero or more GRNItems and only return the `id`
1442
- * const gRNItemWithIdOnly = await prisma.gRNItem.updateManyAndReturn({
1443
- * select: { id: true },
1444
- * where: {
1445
- * // ... provide filter here
1446
- * },
1447
- * data: [
1448
- * // ... provide data here
1449
- * ]
1450
- * })
1451
- * Note, that providing `undefined` is treated as the value not being there.
1452
- * Read more here: https://pris.ly/d/null-undefined
1453
- *
1454
- */
1455
- updateManyAndReturn<T extends GRNItemUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, GRNItemUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$GRNItemPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
1456
-
1457
- /**
1458
- * Create or update one GRNItem.
1459
- * @param {GRNItemUpsertArgs} args - Arguments to update or create a GRNItem.
1460
- * @example
1461
- * // Update or create a GRNItem
1462
- * const gRNItem = await prisma.gRNItem.upsert({
1463
- * create: {
1464
- * // ... data to create a GRNItem
1465
- * },
1466
- * update: {
1467
- * // ... in case it already exists, update
1468
- * },
1469
- * where: {
1470
- * // ... the filter for the GRNItem we want to update
1471
- * }
1472
- * })
1473
- */
1474
- upsert<T extends GRNItemUpsertArgs>(args: Prisma.SelectSubset<T, GRNItemUpsertArgs<ExtArgs>>): Prisma.Prisma__GRNItemClient<runtime.Types.Result.GetResult<Prisma.$GRNItemPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1475
-
1476
-
1477
- /**
1478
- * Count the number of GRNItems.
1479
- * Note, that providing `undefined` is treated as the value not being there.
1480
- * Read more here: https://pris.ly/d/null-undefined
1481
- * @param {GRNItemCountArgs} args - Arguments to filter GRNItems to count.
1482
- * @example
1483
- * // Count the number of GRNItems
1484
- * const count = await prisma.gRNItem.count({
1485
- * where: {
1486
- * // ... the filter for the GRNItems we want to count
1487
- * }
1488
- * })
1489
- **/
1490
- count<T extends GRNItemCountArgs>(
1491
- args?: Prisma.Subset<T, GRNItemCountArgs>,
1492
- ): Prisma.PrismaPromise<
1493
- T extends runtime.Types.Utils.Record<'select', any>
1494
- ? T['select'] extends true
1495
- ? number
1496
- : Prisma.GetScalarType<T['select'], GRNItemCountAggregateOutputType>
1497
- : number
1498
- >
1499
-
1500
- /**
1501
- * Allows you to perform aggregations operations on a GRNItem.
1502
- * Note, that providing `undefined` is treated as the value not being there.
1503
- * Read more here: https://pris.ly/d/null-undefined
1504
- * @param {GRNItemAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1505
- * @example
1506
- * // Ordered by age ascending
1507
- * // Where email contains prisma.io
1508
- * // Limited to the 10 users
1509
- * const aggregations = await prisma.user.aggregate({
1510
- * _avg: {
1511
- * age: true,
1512
- * },
1513
- * where: {
1514
- * email: {
1515
- * contains: "prisma.io",
1516
- * },
1517
- * },
1518
- * orderBy: {
1519
- * age: "asc",
1520
- * },
1521
- * take: 10,
1522
- * })
1523
- **/
1524
- aggregate<T extends GRNItemAggregateArgs>(args: Prisma.Subset<T, GRNItemAggregateArgs>): Prisma.PrismaPromise<GetGRNItemAggregateType<T>>
1525
-
1526
- /**
1527
- * Group by GRNItem.
1528
- * Note, that providing `undefined` is treated as the value not being there.
1529
- * Read more here: https://pris.ly/d/null-undefined
1530
- * @param {GRNItemGroupByArgs} args - Group by arguments.
1531
- * @example
1532
- * // Group by city, order by createdAt, get count
1533
- * const result = await prisma.user.groupBy({
1534
- * by: ['city', 'createdAt'],
1535
- * orderBy: {
1536
- * createdAt: true
1537
- * },
1538
- * _count: {
1539
- * _all: true
1540
- * },
1541
- * })
1542
- *
1543
- **/
1544
- groupBy<
1545
- T extends GRNItemGroupByArgs,
1546
- HasSelectOrTake extends Prisma.Or<
1547
- Prisma.Extends<'skip', Prisma.Keys<T>>,
1548
- Prisma.Extends<'take', Prisma.Keys<T>>
1549
- >,
1550
- OrderByArg extends Prisma.True extends HasSelectOrTake
1551
- ? { orderBy: GRNItemGroupByArgs['orderBy'] }
1552
- : { orderBy?: GRNItemGroupByArgs['orderBy'] },
1553
- OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1554
- ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1555
- ByValid extends Prisma.Has<ByFields, OrderFields>,
1556
- HavingFields extends Prisma.GetHavingFields<T['having']>,
1557
- HavingValid extends Prisma.Has<ByFields, HavingFields>,
1558
- ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1559
- InputErrors extends ByEmpty extends Prisma.True
1560
- ? `Error: "by" must not be empty.`
1561
- : HavingValid extends Prisma.False
1562
- ? {
1563
- [P in HavingFields]: P extends ByFields
1564
- ? never
1565
- : P extends string
1566
- ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1567
- : [
1568
- Error,
1569
- 'Field ',
1570
- P,
1571
- ` in "having" needs to be provided in "by"`,
1572
- ]
1573
- }[HavingFields]
1574
- : 'take' extends Prisma.Keys<T>
1575
- ? 'orderBy' extends Prisma.Keys<T>
1576
- ? ByValid extends Prisma.True
1577
- ? {}
1578
- : {
1579
- [P in OrderFields]: P extends ByFields
1580
- ? never
1581
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1582
- }[OrderFields]
1583
- : 'Error: If you provide "take", you also need to provide "orderBy"'
1584
- : 'skip' extends Prisma.Keys<T>
1585
- ? 'orderBy' extends Prisma.Keys<T>
1586
- ? ByValid extends Prisma.True
1587
- ? {}
1588
- : {
1589
- [P in OrderFields]: P extends ByFields
1590
- ? never
1591
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1592
- }[OrderFields]
1593
- : 'Error: If you provide "skip", you also need to provide "orderBy"'
1594
- : ByValid extends Prisma.True
1595
- ? {}
1596
- : {
1597
- [P in OrderFields]: P extends ByFields
1598
- ? never
1599
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1600
- }[OrderFields]
1601
- >(args: Prisma.SubsetIntersection<T, GRNItemGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetGRNItemGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1602
- /**
1603
- * Fields of the GRNItem model
1604
- */
1605
- readonly fields: GRNItemFieldRefs;
1606
- }
1607
-
1608
- /**
1609
- * The delegate class that acts as a "Promise-like" for GRNItem.
1610
- * Why is this prefixed with `Prisma__`?
1611
- * Because we want to prevent naming conflicts as mentioned in
1612
- * https://github.com/prisma/prisma-client-js/issues/707
1613
- */
1614
- export interface Prisma__GRNItemClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1615
- readonly [Symbol.toStringTag]: "PrismaPromise"
1616
- grn<T extends Prisma.GRNItem$grnArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.GRNItem$grnArgs<ExtArgs>>): Prisma.Prisma__GRNClient<runtime.Types.Result.GetResult<Prisma.$GRNPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1617
- purchase_order_item<T extends Prisma.GRNItem$purchase_order_itemArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.GRNItem$purchase_order_itemArgs<ExtArgs>>): Prisma.Prisma__PurchaseOrderItemClient<runtime.Types.Result.GetResult<Prisma.$PurchaseOrderItemPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1618
- /**
1619
- * Attaches callbacks for the resolution and/or rejection of the Promise.
1620
- * @param onfulfilled The callback to execute when the Promise is resolved.
1621
- * @param onrejected The callback to execute when the Promise is rejected.
1622
- * @returns A Promise for the completion of which ever callback is executed.
1623
- */
1624
- 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>
1625
- /**
1626
- * Attaches a callback for only the rejection of the Promise.
1627
- * @param onrejected The callback to execute when the Promise is rejected.
1628
- * @returns A Promise for the completion of the callback.
1629
- */
1630
- catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1631
- /**
1632
- * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1633
- * resolved value cannot be modified from the callback.
1634
- * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1635
- * @returns A Promise for the completion of the callback.
1636
- */
1637
- finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1638
- }
1639
-
1640
-
1641
-
1642
-
1643
- /**
1644
- * Fields of the GRNItem model
1645
- */
1646
- export interface GRNItemFieldRefs {
1647
- readonly id: Prisma.FieldRef<"GRNItem", 'Int'>
1648
- readonly uuid: Prisma.FieldRef<"GRNItem", 'String'>
1649
- readonly grn_id: Prisma.FieldRef<"GRNItem", 'Int'>
1650
- readonly purchase_order_item_id: Prisma.FieldRef<"GRNItem", 'Int'>
1651
- readonly dispatch_quantity: Prisma.FieldRef<"GRNItem", 'Int'>
1652
- readonly received_quantity: Prisma.FieldRef<"GRNItem", 'Int'>
1653
- readonly accepted_quantity: Prisma.FieldRef<"GRNItem", 'Int'>
1654
- readonly remarks: Prisma.FieldRef<"GRNItem", 'String'>
1655
- readonly inspection_remarks: Prisma.FieldRef<"GRNItem", 'String'>
1656
- readonly inspection_attachments: Prisma.FieldRef<"GRNItem", 'Json'>
1657
- readonly status: Prisma.FieldRef<"GRNItem", 'GRNItemStatus'>
1658
- readonly created_at: Prisma.FieldRef<"GRNItem", 'DateTime'>
1659
- readonly created_by: Prisma.FieldRef<"GRNItem", 'Int'>
1660
- readonly updated_at: Prisma.FieldRef<"GRNItem", 'DateTime'>
1661
- readonly updated_by: Prisma.FieldRef<"GRNItem", 'Int'>
1662
- readonly is_deleted: Prisma.FieldRef<"GRNItem", 'Boolean'>
1663
- readonly deleted_at: Prisma.FieldRef<"GRNItem", 'DateTime'>
1664
- readonly deleted_by: Prisma.FieldRef<"GRNItem", 'Int'>
1665
- }
1666
-
1667
-
1668
- // Custom InputTypes
1669
- /**
1670
- * GRNItem findUnique
1671
- */
1672
- export type GRNItemFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1673
- /**
1674
- * Select specific fields to fetch from the GRNItem
1675
- */
1676
- select?: Prisma.GRNItemSelect<ExtArgs> | null
1677
- /**
1678
- * Omit specific fields from the GRNItem
1679
- */
1680
- omit?: Prisma.GRNItemOmit<ExtArgs> | null
1681
- /**
1682
- * Choose, which related nodes to fetch as well
1683
- */
1684
- include?: Prisma.GRNItemInclude<ExtArgs> | null
1685
- /**
1686
- * Filter, which GRNItem to fetch.
1687
- */
1688
- where: Prisma.GRNItemWhereUniqueInput
1689
- }
1690
-
1691
- /**
1692
- * GRNItem findUniqueOrThrow
1693
- */
1694
- export type GRNItemFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1695
- /**
1696
- * Select specific fields to fetch from the GRNItem
1697
- */
1698
- select?: Prisma.GRNItemSelect<ExtArgs> | null
1699
- /**
1700
- * Omit specific fields from the GRNItem
1701
- */
1702
- omit?: Prisma.GRNItemOmit<ExtArgs> | null
1703
- /**
1704
- * Choose, which related nodes to fetch as well
1705
- */
1706
- include?: Prisma.GRNItemInclude<ExtArgs> | null
1707
- /**
1708
- * Filter, which GRNItem to fetch.
1709
- */
1710
- where: Prisma.GRNItemWhereUniqueInput
1711
- }
1712
-
1713
- /**
1714
- * GRNItem findFirst
1715
- */
1716
- export type GRNItemFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1717
- /**
1718
- * Select specific fields to fetch from the GRNItem
1719
- */
1720
- select?: Prisma.GRNItemSelect<ExtArgs> | null
1721
- /**
1722
- * Omit specific fields from the GRNItem
1723
- */
1724
- omit?: Prisma.GRNItemOmit<ExtArgs> | null
1725
- /**
1726
- * Choose, which related nodes to fetch as well
1727
- */
1728
- include?: Prisma.GRNItemInclude<ExtArgs> | null
1729
- /**
1730
- * Filter, which GRNItem to fetch.
1731
- */
1732
- where?: Prisma.GRNItemWhereInput
1733
- /**
1734
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1735
- *
1736
- * Determine the order of GRNItems to fetch.
1737
- */
1738
- orderBy?: Prisma.GRNItemOrderByWithRelationInput | Prisma.GRNItemOrderByWithRelationInput[]
1739
- /**
1740
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1741
- *
1742
- * Sets the position for searching for GRNItems.
1743
- */
1744
- cursor?: Prisma.GRNItemWhereUniqueInput
1745
- /**
1746
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1747
- *
1748
- * Take `±n` GRNItems from the position of the cursor.
1749
- */
1750
- take?: number
1751
- /**
1752
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1753
- *
1754
- * Skip the first `n` GRNItems.
1755
- */
1756
- skip?: number
1757
- /**
1758
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1759
- *
1760
- * Filter by unique combinations of GRNItems.
1761
- */
1762
- distinct?: Prisma.GRNItemScalarFieldEnum | Prisma.GRNItemScalarFieldEnum[]
1763
- }
1764
-
1765
- /**
1766
- * GRNItem findFirstOrThrow
1767
- */
1768
- export type GRNItemFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1769
- /**
1770
- * Select specific fields to fetch from the GRNItem
1771
- */
1772
- select?: Prisma.GRNItemSelect<ExtArgs> | null
1773
- /**
1774
- * Omit specific fields from the GRNItem
1775
- */
1776
- omit?: Prisma.GRNItemOmit<ExtArgs> | null
1777
- /**
1778
- * Choose, which related nodes to fetch as well
1779
- */
1780
- include?: Prisma.GRNItemInclude<ExtArgs> | null
1781
- /**
1782
- * Filter, which GRNItem to fetch.
1783
- */
1784
- where?: Prisma.GRNItemWhereInput
1785
- /**
1786
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1787
- *
1788
- * Determine the order of GRNItems to fetch.
1789
- */
1790
- orderBy?: Prisma.GRNItemOrderByWithRelationInput | Prisma.GRNItemOrderByWithRelationInput[]
1791
- /**
1792
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1793
- *
1794
- * Sets the position for searching for GRNItems.
1795
- */
1796
- cursor?: Prisma.GRNItemWhereUniqueInput
1797
- /**
1798
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1799
- *
1800
- * Take `±n` GRNItems from the position of the cursor.
1801
- */
1802
- take?: number
1803
- /**
1804
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1805
- *
1806
- * Skip the first `n` GRNItems.
1807
- */
1808
- skip?: number
1809
- /**
1810
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1811
- *
1812
- * Filter by unique combinations of GRNItems.
1813
- */
1814
- distinct?: Prisma.GRNItemScalarFieldEnum | Prisma.GRNItemScalarFieldEnum[]
1815
- }
1816
-
1817
- /**
1818
- * GRNItem findMany
1819
- */
1820
- export type GRNItemFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1821
- /**
1822
- * Select specific fields to fetch from the GRNItem
1823
- */
1824
- select?: Prisma.GRNItemSelect<ExtArgs> | null
1825
- /**
1826
- * Omit specific fields from the GRNItem
1827
- */
1828
- omit?: Prisma.GRNItemOmit<ExtArgs> | null
1829
- /**
1830
- * Choose, which related nodes to fetch as well
1831
- */
1832
- include?: Prisma.GRNItemInclude<ExtArgs> | null
1833
- /**
1834
- * Filter, which GRNItems to fetch.
1835
- */
1836
- where?: Prisma.GRNItemWhereInput
1837
- /**
1838
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1839
- *
1840
- * Determine the order of GRNItems to fetch.
1841
- */
1842
- orderBy?: Prisma.GRNItemOrderByWithRelationInput | Prisma.GRNItemOrderByWithRelationInput[]
1843
- /**
1844
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1845
- *
1846
- * Sets the position for listing GRNItems.
1847
- */
1848
- cursor?: Prisma.GRNItemWhereUniqueInput
1849
- /**
1850
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1851
- *
1852
- * Take `±n` GRNItems from the position of the cursor.
1853
- */
1854
- take?: number
1855
- /**
1856
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1857
- *
1858
- * Skip the first `n` GRNItems.
1859
- */
1860
- skip?: number
1861
- /**
1862
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1863
- *
1864
- * Filter by unique combinations of GRNItems.
1865
- */
1866
- distinct?: Prisma.GRNItemScalarFieldEnum | Prisma.GRNItemScalarFieldEnum[]
1867
- }
1868
-
1869
- /**
1870
- * GRNItem create
1871
- */
1872
- export type GRNItemCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1873
- /**
1874
- * Select specific fields to fetch from the GRNItem
1875
- */
1876
- select?: Prisma.GRNItemSelect<ExtArgs> | null
1877
- /**
1878
- * Omit specific fields from the GRNItem
1879
- */
1880
- omit?: Prisma.GRNItemOmit<ExtArgs> | null
1881
- /**
1882
- * Choose, which related nodes to fetch as well
1883
- */
1884
- include?: Prisma.GRNItemInclude<ExtArgs> | null
1885
- /**
1886
- * The data needed to create a GRNItem.
1887
- */
1888
- data: Prisma.XOR<Prisma.GRNItemCreateInput, Prisma.GRNItemUncheckedCreateInput>
1889
- }
1890
-
1891
- /**
1892
- * GRNItem createMany
1893
- */
1894
- export type GRNItemCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1895
- /**
1896
- * The data used to create many GRNItems.
1897
- */
1898
- data: Prisma.GRNItemCreateManyInput | Prisma.GRNItemCreateManyInput[]
1899
- skipDuplicates?: boolean
1900
- }
1901
-
1902
- /**
1903
- * GRNItem createManyAndReturn
1904
- */
1905
- export type GRNItemCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1906
- /**
1907
- * Select specific fields to fetch from the GRNItem
1908
- */
1909
- select?: Prisma.GRNItemSelectCreateManyAndReturn<ExtArgs> | null
1910
- /**
1911
- * Omit specific fields from the GRNItem
1912
- */
1913
- omit?: Prisma.GRNItemOmit<ExtArgs> | null
1914
- /**
1915
- * The data used to create many GRNItems.
1916
- */
1917
- data: Prisma.GRNItemCreateManyInput | Prisma.GRNItemCreateManyInput[]
1918
- skipDuplicates?: boolean
1919
- /**
1920
- * Choose, which related nodes to fetch as well
1921
- */
1922
- include?: Prisma.GRNItemIncludeCreateManyAndReturn<ExtArgs> | null
1923
- }
1924
-
1925
- /**
1926
- * GRNItem update
1927
- */
1928
- export type GRNItemUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1929
- /**
1930
- * Select specific fields to fetch from the GRNItem
1931
- */
1932
- select?: Prisma.GRNItemSelect<ExtArgs> | null
1933
- /**
1934
- * Omit specific fields from the GRNItem
1935
- */
1936
- omit?: Prisma.GRNItemOmit<ExtArgs> | null
1937
- /**
1938
- * Choose, which related nodes to fetch as well
1939
- */
1940
- include?: Prisma.GRNItemInclude<ExtArgs> | null
1941
- /**
1942
- * The data needed to update a GRNItem.
1943
- */
1944
- data: Prisma.XOR<Prisma.GRNItemUpdateInput, Prisma.GRNItemUncheckedUpdateInput>
1945
- /**
1946
- * Choose, which GRNItem to update.
1947
- */
1948
- where: Prisma.GRNItemWhereUniqueInput
1949
- }
1950
-
1951
- /**
1952
- * GRNItem updateMany
1953
- */
1954
- export type GRNItemUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1955
- /**
1956
- * The data used to update GRNItems.
1957
- */
1958
- data: Prisma.XOR<Prisma.GRNItemUpdateManyMutationInput, Prisma.GRNItemUncheckedUpdateManyInput>
1959
- /**
1960
- * Filter which GRNItems to update
1961
- */
1962
- where?: Prisma.GRNItemWhereInput
1963
- /**
1964
- * Limit how many GRNItems to update.
1965
- */
1966
- limit?: number
1967
- }
1968
-
1969
- /**
1970
- * GRNItem updateManyAndReturn
1971
- */
1972
- export type GRNItemUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1973
- /**
1974
- * Select specific fields to fetch from the GRNItem
1975
- */
1976
- select?: Prisma.GRNItemSelectUpdateManyAndReturn<ExtArgs> | null
1977
- /**
1978
- * Omit specific fields from the GRNItem
1979
- */
1980
- omit?: Prisma.GRNItemOmit<ExtArgs> | null
1981
- /**
1982
- * The data used to update GRNItems.
1983
- */
1984
- data: Prisma.XOR<Prisma.GRNItemUpdateManyMutationInput, Prisma.GRNItemUncheckedUpdateManyInput>
1985
- /**
1986
- * Filter which GRNItems to update
1987
- */
1988
- where?: Prisma.GRNItemWhereInput
1989
- /**
1990
- * Limit how many GRNItems to update.
1991
- */
1992
- limit?: number
1993
- /**
1994
- * Choose, which related nodes to fetch as well
1995
- */
1996
- include?: Prisma.GRNItemIncludeUpdateManyAndReturn<ExtArgs> | null
1997
- }
1998
-
1999
- /**
2000
- * GRNItem upsert
2001
- */
2002
- export type GRNItemUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2003
- /**
2004
- * Select specific fields to fetch from the GRNItem
2005
- */
2006
- select?: Prisma.GRNItemSelect<ExtArgs> | null
2007
- /**
2008
- * Omit specific fields from the GRNItem
2009
- */
2010
- omit?: Prisma.GRNItemOmit<ExtArgs> | null
2011
- /**
2012
- * Choose, which related nodes to fetch as well
2013
- */
2014
- include?: Prisma.GRNItemInclude<ExtArgs> | null
2015
- /**
2016
- * The filter to search for the GRNItem to update in case it exists.
2017
- */
2018
- where: Prisma.GRNItemWhereUniqueInput
2019
- /**
2020
- * In case the GRNItem found by the `where` argument doesn't exist, create a new GRNItem with this data.
2021
- */
2022
- create: Prisma.XOR<Prisma.GRNItemCreateInput, Prisma.GRNItemUncheckedCreateInput>
2023
- /**
2024
- * In case the GRNItem was found with the provided `where` argument, update it with this data.
2025
- */
2026
- update: Prisma.XOR<Prisma.GRNItemUpdateInput, Prisma.GRNItemUncheckedUpdateInput>
2027
- }
2028
-
2029
- /**
2030
- * GRNItem delete
2031
- */
2032
- export type GRNItemDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2033
- /**
2034
- * Select specific fields to fetch from the GRNItem
2035
- */
2036
- select?: Prisma.GRNItemSelect<ExtArgs> | null
2037
- /**
2038
- * Omit specific fields from the GRNItem
2039
- */
2040
- omit?: Prisma.GRNItemOmit<ExtArgs> | null
2041
- /**
2042
- * Choose, which related nodes to fetch as well
2043
- */
2044
- include?: Prisma.GRNItemInclude<ExtArgs> | null
2045
- /**
2046
- * Filter which GRNItem to delete.
2047
- */
2048
- where: Prisma.GRNItemWhereUniqueInput
2049
- }
2050
-
2051
- /**
2052
- * GRNItem deleteMany
2053
- */
2054
- export type GRNItemDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2055
- /**
2056
- * Filter which GRNItems to delete
2057
- */
2058
- where?: Prisma.GRNItemWhereInput
2059
- /**
2060
- * Limit how many GRNItems to delete.
2061
- */
2062
- limit?: number
2063
- }
2064
-
2065
- /**
2066
- * GRNItem.grn
2067
- */
2068
- export type GRNItem$grnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2069
- /**
2070
- * Select specific fields to fetch from the GRN
2071
- */
2072
- select?: Prisma.GRNSelect<ExtArgs> | null
2073
- /**
2074
- * Omit specific fields from the GRN
2075
- */
2076
- omit?: Prisma.GRNOmit<ExtArgs> | null
2077
- /**
2078
- * Choose, which related nodes to fetch as well
2079
- */
2080
- include?: Prisma.GRNInclude<ExtArgs> | null
2081
- where?: Prisma.GRNWhereInput
2082
- }
2083
-
2084
- /**
2085
- * GRNItem.purchase_order_item
2086
- */
2087
- export type GRNItem$purchase_order_itemArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2088
- /**
2089
- * Select specific fields to fetch from the PurchaseOrderItem
2090
- */
2091
- select?: Prisma.PurchaseOrderItemSelect<ExtArgs> | null
2092
- /**
2093
- * Omit specific fields from the PurchaseOrderItem
2094
- */
2095
- omit?: Prisma.PurchaseOrderItemOmit<ExtArgs> | null
2096
- /**
2097
- * Choose, which related nodes to fetch as well
2098
- */
2099
- include?: Prisma.PurchaseOrderItemInclude<ExtArgs> | null
2100
- where?: Prisma.PurchaseOrderItemWhereInput
2101
- }
2102
-
2103
- /**
2104
- * GRNItem without action
2105
- */
2106
- export type GRNItemDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2107
- /**
2108
- * Select specific fields to fetch from the GRNItem
2109
- */
2110
- select?: Prisma.GRNItemSelect<ExtArgs> | null
2111
- /**
2112
- * Omit specific fields from the GRNItem
2113
- */
2114
- omit?: Prisma.GRNItemOmit<ExtArgs> | null
2115
- /**
2116
- * Choose, which related nodes to fetch as well
2117
- */
2118
- include?: Prisma.GRNItemInclude<ExtArgs> | null
2119
- }