procbay-schema 1.0.171 → 1.0.174

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 (148) hide show
  1. package/package.json +13 -22
  2. package/prisma/schema.prisma +4 -5
  3. package/scripts/sync-schemas.js +1 -5
  4. package/src/create-prisma-client.js +9 -49
  5. package/src/prisma/client.d.ts +1 -0
  6. package/src/prisma/client.js +4 -0
  7. package/src/prisma/default.d.ts +1 -0
  8. package/src/prisma/default.js +4 -0
  9. package/src/prisma/edge.d.ts +1 -0
  10. package/src/prisma/edge.js +2900 -0
  11. package/src/{generated/prisma/internal/prismaNamespaceBrowser.ts → prisma/index-browser.js} +980 -739
  12. package/src/prisma/index.d.ts +286683 -0
  13. package/src/prisma/index.js +2929 -2
  14. package/src/prisma/libquery_engine-darwin.dylib.node +0 -0
  15. package/src/prisma/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
  16. package/src/prisma/package.json +140 -0
  17. package/src/prisma/query_engine-windows.dll.node +0 -0
  18. package/src/prisma/runtime/edge-esm.js +34 -0
  19. package/src/prisma/runtime/edge.js +34 -0
  20. package/src/prisma/runtime/index-browser.d.ts +370 -0
  21. package/src/prisma/runtime/index-browser.js +16 -0
  22. package/src/prisma/runtime/library.d.ts +3647 -0
  23. package/src/prisma/runtime/library.js +146 -0
  24. package/src/prisma/runtime/react-native.js +83 -0
  25. package/src/prisma/runtime/wasm.js +35 -0
  26. package/src/prisma/schema.prisma +3820 -0
  27. package/src/prisma/wasm.d.ts +1 -0
  28. package/src/prisma/wasm.js +2862 -0
  29. package/prisma.config.js +0 -19
  30. package/src/generated/prisma/browser.ts +0 -574
  31. package/src/generated/prisma/client.bundle.mjs +0 -6733
  32. package/src/generated/prisma/client.ts +0 -598
  33. package/src/generated/prisma/commonInputTypes.ts +0 -2911
  34. package/src/generated/prisma/enums.ts +0 -730
  35. package/src/generated/prisma/internal/class.ts +0 -1304
  36. package/src/generated/prisma/internal/prismaNamespace.ts +0 -12506
  37. package/src/generated/prisma/models/ActivityLog.ts +0 -1590
  38. package/src/generated/prisma/models/AdminAlert.ts +0 -1547
  39. package/src/generated/prisma/models/ApprovalCondition.ts +0 -2085
  40. package/src/generated/prisma/models/ApprovalDelegation.ts +0 -3057
  41. package/src/generated/prisma/models/ApprovalDelegationDelegate.ts +0 -1784
  42. package/src/generated/prisma/models/ApprovalHierarchy.ts +0 -3083
  43. package/src/generated/prisma/models/ApprovalJourney.ts +0 -2867
  44. package/src/generated/prisma/models/ApprovalLevel.ts +0 -2335
  45. package/src/generated/prisma/models/ApprovalLevelEscalation.ts +0 -2128
  46. package/src/generated/prisma/models/ApprovalLevelEscalationUser.ts +0 -1863
  47. package/src/generated/prisma/models/ApprovalLevelUser.ts +0 -1863
  48. package/src/generated/prisma/models/ApprovalManagement.ts +0 -1728
  49. package/src/generated/prisma/models/Attribute.ts +0 -2075
  50. package/src/generated/prisma/models/AttributeValue.ts +0 -1882
  51. package/src/generated/prisma/models/Bid.ts +0 -2719
  52. package/src/generated/prisma/models/BidLog.ts +0 -3560
  53. package/src/generated/prisma/models/BlanketPurchaseOrder.ts +0 -3527
  54. package/src/generated/prisma/models/BlanketPurchaseOrderItem.ts +0 -2532
  55. package/src/generated/prisma/models/BlanketPurchaseOrderRelease.ts +0 -2713
  56. package/src/generated/prisma/models/BoqEventItem.ts +0 -4056
  57. package/src/generated/prisma/models/Budget.ts +0 -1954
  58. package/src/generated/prisma/models/BudgetHold.ts +0 -1904
  59. package/src/generated/prisma/models/BusinessEntity.ts +0 -3901
  60. package/src/generated/prisma/models/BusinessEntityDepartment.ts +0 -2032
  61. package/src/generated/prisma/models/BusinessEntityLocation.ts +0 -1567
  62. package/src/generated/prisma/models/Catalogue.ts +0 -2081
  63. package/src/generated/prisma/models/CatalogueCart.ts +0 -2305
  64. package/src/generated/prisma/models/CatalogueVendor.ts +0 -2252
  65. package/src/generated/prisma/models/Category.ts +0 -3091
  66. package/src/generated/prisma/models/CategoryBudget.ts +0 -2690
  67. package/src/generated/prisma/models/City.ts +0 -2180
  68. package/src/generated/prisma/models/Cms.ts +0 -1492
  69. package/src/generated/prisma/models/ContactUs.ts +0 -1654
  70. package/src/generated/prisma/models/Conversation.ts +0 -2389
  71. package/src/generated/prisma/models/ConversationParticipant.ts +0 -1833
  72. package/src/generated/prisma/models/CounterOffer.ts +0 -2156
  73. package/src/generated/prisma/models/Country.ts +0 -3394
  74. package/src/generated/prisma/models/Currency.ts +0 -1642
  75. package/src/generated/prisma/models/CustomerNotification.ts +0 -1653
  76. package/src/generated/prisma/models/Department.ts +0 -2372
  77. package/src/generated/prisma/models/DepartmentBudget.ts +0 -2494
  78. package/src/generated/prisma/models/DynamicForm.ts +0 -2021
  79. package/src/generated/prisma/models/EmailTemplate.ts +0 -1516
  80. package/src/generated/prisma/models/Event.ts +0 -6819
  81. package/src/generated/prisma/models/EventConfigurations.ts +0 -1736
  82. package/src/generated/prisma/models/EventCriteria.ts +0 -2134
  83. package/src/generated/prisma/models/EventItems.ts +0 -2821
  84. package/src/generated/prisma/models/EventRfiForm.ts +0 -2020
  85. package/src/generated/prisma/models/EventRfiFormLog.ts +0 -2608
  86. package/src/generated/prisma/models/EventStrategies.ts +0 -1857
  87. package/src/generated/prisma/models/EventVendorCriteria.ts +0 -2186
  88. package/src/generated/prisma/models/EventVendors.ts +0 -3446
  89. package/src/generated/prisma/models/Expense.ts +0 -1625
  90. package/src/generated/prisma/models/ExportLog.ts +0 -1822
  91. package/src/generated/prisma/models/Faq.ts +0 -1753
  92. package/src/generated/prisma/models/FaqCategory.ts +0 -1610
  93. package/src/generated/prisma/models/FiscalYear.ts +0 -1460
  94. package/src/generated/prisma/models/FormMaster.ts +0 -1831
  95. package/src/generated/prisma/models/GRN.ts +0 -3354
  96. package/src/generated/prisma/models/GRNItem.ts +0 -2119
  97. package/src/generated/prisma/models/Industry.ts +0 -1642
  98. package/src/generated/prisma/models/Invoice.ts +0 -2949
  99. package/src/generated/prisma/models/InvoiceItem.ts +0 -2397
  100. package/src/generated/prisma/models/Item.ts +0 -10644
  101. package/src/generated/prisma/models/ItemAttribute.ts +0 -1750
  102. package/src/generated/prisma/models/ItemAttributeValue.ts +0 -1802
  103. package/src/generated/prisma/models/ItemDocument.ts +0 -1590
  104. package/src/generated/prisma/models/Location.ts +0 -2711
  105. package/src/generated/prisma/models/Message.ts +0 -2744
  106. package/src/generated/prisma/models/MessageRecipient.ts +0 -1759
  107. package/src/generated/prisma/models/Module.ts +0 -1630
  108. package/src/generated/prisma/models/Permission.ts +0 -1640
  109. package/src/generated/prisma/models/PurchaseIntake.ts +0 -4672
  110. package/src/generated/prisma/models/PurchaseIntakeItem.ts +0 -2366
  111. package/src/generated/prisma/models/PurchaseOrder.ts +0 -4012
  112. package/src/generated/prisma/models/PurchaseOrderActivityLog.ts +0 -1720
  113. package/src/generated/prisma/models/PurchaseOrderItem.ts +0 -2623
  114. package/src/generated/prisma/models/Quotation.ts +0 -3207
  115. package/src/generated/prisma/models/QuotationLog.ts +0 -3239
  116. package/src/generated/prisma/models/Region.ts +0 -1746
  117. package/src/generated/prisma/models/RequestedCatalogue.ts +0 -1618
  118. package/src/generated/prisma/models/RequestedCatalogueDetails.ts +0 -2252
  119. package/src/generated/prisma/models/Role.ts +0 -1907
  120. package/src/generated/prisma/models/RolePermission.ts +0 -1737
  121. package/src/generated/prisma/models/SendBack.ts +0 -1830
  122. package/src/generated/prisma/models/SerialNumberConfiguration.ts +0 -1254
  123. package/src/generated/prisma/models/SmtpConfig.ts +0 -1522
  124. package/src/generated/prisma/models/State.ts +0 -2174
  125. package/src/generated/prisma/models/Strategies.ts +0 -1791
  126. package/src/generated/prisma/models/SubModule.ts +0 -1450
  127. package/src/generated/prisma/models/Subregion.ts +0 -1870
  128. package/src/generated/prisma/models/SupportCategory.ts +0 -1712
  129. package/src/generated/prisma/models/SupportTicket.ts +0 -2478
  130. package/src/generated/prisma/models/SupportingDocument.ts +0 -2283
  131. package/src/generated/prisma/models/Template.ts +0 -2429
  132. package/src/generated/prisma/models/TemplateField.ts +0 -1916
  133. package/src/generated/prisma/models/TemplateStrategies.ts +0 -1614
  134. package/src/generated/prisma/models/TenantConfiguration.ts +0 -1694
  135. package/src/generated/prisma/models/TicketAssignment.ts +0 -1742
  136. package/src/generated/prisma/models/TicketHistory.ts +0 -1789
  137. package/src/generated/prisma/models/TicketReply.ts +0 -1640
  138. package/src/generated/prisma/models/Uom.ts +0 -1752
  139. package/src/generated/prisma/models/UomCategory.ts +0 -1558
  140. package/src/generated/prisma/models/UploadLog.ts +0 -1731
  141. package/src/generated/prisma/models/User.ts +0 -19397
  142. package/src/generated/prisma/models/UserDepartmentEntity.ts +0 -2099
  143. package/src/generated/prisma/models/UserEventConfiguration.ts +0 -1370
  144. package/src/generated/prisma/models/UserLoginActivity.ts +0 -1693
  145. package/src/generated/prisma/models/UserRole.ts +0 -1696
  146. package/src/generated/prisma/models/UserVendorSocketTokens.ts +0 -1450
  147. package/src/generated/prisma/models/VendorReference.ts +0 -1707
  148. package/src/generated/prisma/models.ts +0 -122
@@ -1,1752 +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 `Uom` 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 Uom
17
- *
18
- */
19
- export type UomModel = runtime.Types.Result.DefaultSelection<Prisma.$UomPayload>
20
-
21
- export type AggregateUom = {
22
- _count: UomCountAggregateOutputType | null
23
- _avg: UomAvgAggregateOutputType | null
24
- _sum: UomSumAggregateOutputType | null
25
- _min: UomMinAggregateOutputType | null
26
- _max: UomMaxAggregateOutputType | null
27
- }
28
-
29
- export type UomAvgAggregateOutputType = {
30
- id: number | null
31
- created_by: number | null
32
- updated_by: number | null
33
- deleted_by: number | null
34
- }
35
-
36
- export type UomSumAggregateOutputType = {
37
- id: number | null
38
- created_by: number | null
39
- updated_by: number | null
40
- deleted_by: number | null
41
- }
42
-
43
- export type UomMinAggregateOutputType = {
44
- id: number | null
45
- uuid: string | null
46
- uom_code: string | null
47
- description: string | null
48
- is_active: boolean | null
49
- created_at: Date | null
50
- created_by: number | null
51
- updated_at: Date | null
52
- updated_by: number | null
53
- is_deleted: boolean | null
54
- deleted_at: Date | null
55
- deleted_by: number | null
56
- }
57
-
58
- export type UomMaxAggregateOutputType = {
59
- id: number | null
60
- uuid: string | null
61
- uom_code: string | null
62
- description: string | null
63
- is_active: boolean | 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 UomCountAggregateOutputType = {
74
- id: number
75
- uuid: number
76
- uom_code: number
77
- description: number
78
- is_active: number
79
- created_at: number
80
- created_by: number
81
- updated_at: number
82
- updated_by: number
83
- is_deleted: number
84
- deleted_at: number
85
- deleted_by: number
86
- _all: number
87
- }
88
-
89
-
90
- export type UomAvgAggregateInputType = {
91
- id?: true
92
- created_by?: true
93
- updated_by?: true
94
- deleted_by?: true
95
- }
96
-
97
- export type UomSumAggregateInputType = {
98
- id?: true
99
- created_by?: true
100
- updated_by?: true
101
- deleted_by?: true
102
- }
103
-
104
- export type UomMinAggregateInputType = {
105
- id?: true
106
- uuid?: true
107
- uom_code?: true
108
- description?: true
109
- is_active?: true
110
- created_at?: true
111
- created_by?: true
112
- updated_at?: true
113
- updated_by?: true
114
- is_deleted?: true
115
- deleted_at?: true
116
- deleted_by?: true
117
- }
118
-
119
- export type UomMaxAggregateInputType = {
120
- id?: true
121
- uuid?: true
122
- uom_code?: true
123
- description?: true
124
- is_active?: true
125
- created_at?: true
126
- created_by?: true
127
- updated_at?: true
128
- updated_by?: true
129
- is_deleted?: true
130
- deleted_at?: true
131
- deleted_by?: true
132
- }
133
-
134
- export type UomCountAggregateInputType = {
135
- id?: true
136
- uuid?: true
137
- uom_code?: true
138
- description?: true
139
- is_active?: true
140
- created_at?: true
141
- created_by?: true
142
- updated_at?: true
143
- updated_by?: true
144
- is_deleted?: true
145
- deleted_at?: true
146
- deleted_by?: true
147
- _all?: true
148
- }
149
-
150
- export type UomAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
151
- /**
152
- * Filter which Uom to aggregate.
153
- */
154
- where?: Prisma.UomWhereInput
155
- /**
156
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
157
- *
158
- * Determine the order of Uoms to fetch.
159
- */
160
- orderBy?: Prisma.UomOrderByWithRelationInput | Prisma.UomOrderByWithRelationInput[]
161
- /**
162
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
163
- *
164
- * Sets the start position
165
- */
166
- cursor?: Prisma.UomWhereUniqueInput
167
- /**
168
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
169
- *
170
- * Take `±n` Uoms from the position of the cursor.
171
- */
172
- take?: number
173
- /**
174
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
175
- *
176
- * Skip the first `n` Uoms.
177
- */
178
- skip?: number
179
- /**
180
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
181
- *
182
- * Count returned Uoms
183
- **/
184
- _count?: true | UomCountAggregateInputType
185
- /**
186
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
187
- *
188
- * Select which fields to average
189
- **/
190
- _avg?: UomAvgAggregateInputType
191
- /**
192
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
193
- *
194
- * Select which fields to sum
195
- **/
196
- _sum?: UomSumAggregateInputType
197
- /**
198
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
199
- *
200
- * Select which fields to find the minimum value
201
- **/
202
- _min?: UomMinAggregateInputType
203
- /**
204
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
205
- *
206
- * Select which fields to find the maximum value
207
- **/
208
- _max?: UomMaxAggregateInputType
209
- }
210
-
211
- export type GetUomAggregateType<T extends UomAggregateArgs> = {
212
- [P in keyof T & keyof AggregateUom]: P extends '_count' | 'count'
213
- ? T[P] extends true
214
- ? number
215
- : Prisma.GetScalarType<T[P], AggregateUom[P]>
216
- : Prisma.GetScalarType<T[P], AggregateUom[P]>
217
- }
218
-
219
-
220
-
221
-
222
- export type UomGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
223
- where?: Prisma.UomWhereInput
224
- orderBy?: Prisma.UomOrderByWithAggregationInput | Prisma.UomOrderByWithAggregationInput[]
225
- by: Prisma.UomScalarFieldEnum[] | Prisma.UomScalarFieldEnum
226
- having?: Prisma.UomScalarWhereWithAggregatesInput
227
- take?: number
228
- skip?: number
229
- _count?: UomCountAggregateInputType | true
230
- _avg?: UomAvgAggregateInputType
231
- _sum?: UomSumAggregateInputType
232
- _min?: UomMinAggregateInputType
233
- _max?: UomMaxAggregateInputType
234
- }
235
-
236
- export type UomGroupByOutputType = {
237
- id: number
238
- uuid: string | null
239
- uom_code: string | null
240
- description: string | null
241
- is_active: boolean | null
242
- created_at: Date | null
243
- created_by: number | null
244
- updated_at: Date | null
245
- updated_by: number | null
246
- is_deleted: boolean | null
247
- deleted_at: Date | null
248
- deleted_by: number | null
249
- _count: UomCountAggregateOutputType | null
250
- _avg: UomAvgAggregateOutputType | null
251
- _sum: UomSumAggregateOutputType | null
252
- _min: UomMinAggregateOutputType | null
253
- _max: UomMaxAggregateOutputType | null
254
- }
255
-
256
- export type GetUomGroupByPayload<T extends UomGroupByArgs> = Prisma.PrismaPromise<
257
- Array<
258
- Prisma.PickEnumerable<UomGroupByOutputType, T['by']> &
259
- {
260
- [P in ((keyof T) & (keyof UomGroupByOutputType))]: P extends '_count'
261
- ? T[P] extends boolean
262
- ? number
263
- : Prisma.GetScalarType<T[P], UomGroupByOutputType[P]>
264
- : Prisma.GetScalarType<T[P], UomGroupByOutputType[P]>
265
- }
266
- >
267
- >
268
-
269
-
270
-
271
- export type UomWhereInput = {
272
- AND?: Prisma.UomWhereInput | Prisma.UomWhereInput[]
273
- OR?: Prisma.UomWhereInput[]
274
- NOT?: Prisma.UomWhereInput | Prisma.UomWhereInput[]
275
- id?: Prisma.IntFilter<"Uom"> | number
276
- uuid?: Prisma.StringNullableFilter<"Uom"> | string | null
277
- uom_code?: Prisma.StringNullableFilter<"Uom"> | string | null
278
- description?: Prisma.StringNullableFilter<"Uom"> | string | null
279
- is_active?: Prisma.BoolNullableFilter<"Uom"> | boolean | null
280
- created_at?: Prisma.DateTimeNullableFilter<"Uom"> | Date | string | null
281
- created_by?: Prisma.IntNullableFilter<"Uom"> | number | null
282
- updated_at?: Prisma.DateTimeNullableFilter<"Uom"> | Date | string | null
283
- updated_by?: Prisma.IntNullableFilter<"Uom"> | number | null
284
- is_deleted?: Prisma.BoolNullableFilter<"Uom"> | boolean | null
285
- deleted_at?: Prisma.DateTimeNullableFilter<"Uom"> | Date | string | null
286
- deleted_by?: Prisma.IntNullableFilter<"Uom"> | number | null
287
- items?: Prisma.ItemListRelationFilter
288
- uom_category?: Prisma.UomCategoryListRelationFilter
289
- }
290
-
291
- export type UomOrderByWithRelationInput = {
292
- id?: Prisma.SortOrder
293
- uuid?: Prisma.SortOrderInput | Prisma.SortOrder
294
- uom_code?: Prisma.SortOrderInput | Prisma.SortOrder
295
- description?: Prisma.SortOrderInput | Prisma.SortOrder
296
- is_active?: Prisma.SortOrderInput | Prisma.SortOrder
297
- created_at?: Prisma.SortOrderInput | Prisma.SortOrder
298
- created_by?: Prisma.SortOrderInput | Prisma.SortOrder
299
- updated_at?: Prisma.SortOrderInput | Prisma.SortOrder
300
- updated_by?: Prisma.SortOrderInput | Prisma.SortOrder
301
- is_deleted?: Prisma.SortOrderInput | Prisma.SortOrder
302
- deleted_at?: Prisma.SortOrderInput | Prisma.SortOrder
303
- deleted_by?: Prisma.SortOrderInput | Prisma.SortOrder
304
- items?: Prisma.ItemOrderByRelationAggregateInput
305
- uom_category?: Prisma.UomCategoryOrderByRelationAggregateInput
306
- }
307
-
308
- export type UomWhereUniqueInput = Prisma.AtLeast<{
309
- id?: number
310
- uuid?: string
311
- uom_code?: string
312
- AND?: Prisma.UomWhereInput | Prisma.UomWhereInput[]
313
- OR?: Prisma.UomWhereInput[]
314
- NOT?: Prisma.UomWhereInput | Prisma.UomWhereInput[]
315
- description?: Prisma.StringNullableFilter<"Uom"> | string | null
316
- is_active?: Prisma.BoolNullableFilter<"Uom"> | boolean | null
317
- created_at?: Prisma.DateTimeNullableFilter<"Uom"> | Date | string | null
318
- created_by?: Prisma.IntNullableFilter<"Uom"> | number | null
319
- updated_at?: Prisma.DateTimeNullableFilter<"Uom"> | Date | string | null
320
- updated_by?: Prisma.IntNullableFilter<"Uom"> | number | null
321
- is_deleted?: Prisma.BoolNullableFilter<"Uom"> | boolean | null
322
- deleted_at?: Prisma.DateTimeNullableFilter<"Uom"> | Date | string | null
323
- deleted_by?: Prisma.IntNullableFilter<"Uom"> | number | null
324
- items?: Prisma.ItemListRelationFilter
325
- uom_category?: Prisma.UomCategoryListRelationFilter
326
- }, "id" | "uuid" | "uom_code">
327
-
328
- export type UomOrderByWithAggregationInput = {
329
- id?: Prisma.SortOrder
330
- uuid?: Prisma.SortOrderInput | Prisma.SortOrder
331
- uom_code?: Prisma.SortOrderInput | Prisma.SortOrder
332
- description?: Prisma.SortOrderInput | Prisma.SortOrder
333
- is_active?: Prisma.SortOrderInput | Prisma.SortOrder
334
- created_at?: Prisma.SortOrderInput | Prisma.SortOrder
335
- created_by?: Prisma.SortOrderInput | Prisma.SortOrder
336
- updated_at?: Prisma.SortOrderInput | Prisma.SortOrder
337
- updated_by?: Prisma.SortOrderInput | Prisma.SortOrder
338
- is_deleted?: Prisma.SortOrderInput | Prisma.SortOrder
339
- deleted_at?: Prisma.SortOrderInput | Prisma.SortOrder
340
- deleted_by?: Prisma.SortOrderInput | Prisma.SortOrder
341
- _count?: Prisma.UomCountOrderByAggregateInput
342
- _avg?: Prisma.UomAvgOrderByAggregateInput
343
- _max?: Prisma.UomMaxOrderByAggregateInput
344
- _min?: Prisma.UomMinOrderByAggregateInput
345
- _sum?: Prisma.UomSumOrderByAggregateInput
346
- }
347
-
348
- export type UomScalarWhereWithAggregatesInput = {
349
- AND?: Prisma.UomScalarWhereWithAggregatesInput | Prisma.UomScalarWhereWithAggregatesInput[]
350
- OR?: Prisma.UomScalarWhereWithAggregatesInput[]
351
- NOT?: Prisma.UomScalarWhereWithAggregatesInput | Prisma.UomScalarWhereWithAggregatesInput[]
352
- id?: Prisma.IntWithAggregatesFilter<"Uom"> | number
353
- uuid?: Prisma.StringNullableWithAggregatesFilter<"Uom"> | string | null
354
- uom_code?: Prisma.StringNullableWithAggregatesFilter<"Uom"> | string | null
355
- description?: Prisma.StringNullableWithAggregatesFilter<"Uom"> | string | null
356
- is_active?: Prisma.BoolNullableWithAggregatesFilter<"Uom"> | boolean | null
357
- created_at?: Prisma.DateTimeNullableWithAggregatesFilter<"Uom"> | Date | string | null
358
- created_by?: Prisma.IntNullableWithAggregatesFilter<"Uom"> | number | null
359
- updated_at?: Prisma.DateTimeNullableWithAggregatesFilter<"Uom"> | Date | string | null
360
- updated_by?: Prisma.IntNullableWithAggregatesFilter<"Uom"> | number | null
361
- is_deleted?: Prisma.BoolNullableWithAggregatesFilter<"Uom"> | boolean | null
362
- deleted_at?: Prisma.DateTimeNullableWithAggregatesFilter<"Uom"> | Date | string | null
363
- deleted_by?: Prisma.IntNullableWithAggregatesFilter<"Uom"> | number | null
364
- }
365
-
366
- export type UomCreateInput = {
367
- uuid?: string | null
368
- uom_code?: string | null
369
- description?: string | null
370
- is_active?: boolean | null
371
- created_at?: Date | string | null
372
- created_by?: number | null
373
- updated_at?: Date | string | null
374
- updated_by?: number | null
375
- is_deleted?: boolean | null
376
- deleted_at?: Date | string | null
377
- deleted_by?: number | null
378
- items?: Prisma.ItemCreateNestedManyWithoutUomInput
379
- uom_category?: Prisma.UomCategoryCreateNestedManyWithoutUomInput
380
- }
381
-
382
- export type UomUncheckedCreateInput = {
383
- id?: number
384
- uuid?: string | null
385
- uom_code?: string | null
386
- description?: string | null
387
- is_active?: boolean | null
388
- created_at?: Date | string | null
389
- created_by?: number | null
390
- updated_at?: Date | string | null
391
- updated_by?: number | null
392
- is_deleted?: boolean | null
393
- deleted_at?: Date | string | null
394
- deleted_by?: number | null
395
- items?: Prisma.ItemUncheckedCreateNestedManyWithoutUomInput
396
- uom_category?: Prisma.UomCategoryUncheckedCreateNestedManyWithoutUomInput
397
- }
398
-
399
- export type UomUpdateInput = {
400
- uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
401
- uom_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
402
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
403
- is_active?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
404
- created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
405
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
406
- updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
407
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
408
- is_deleted?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
409
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
410
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
411
- items?: Prisma.ItemUpdateManyWithoutUomNestedInput
412
- uom_category?: Prisma.UomCategoryUpdateManyWithoutUomNestedInput
413
- }
414
-
415
- export type UomUncheckedUpdateInput = {
416
- id?: Prisma.IntFieldUpdateOperationsInput | number
417
- uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
418
- uom_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
419
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
420
- is_active?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
421
- created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
422
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
423
- updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
424
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
425
- is_deleted?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
426
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
427
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
428
- items?: Prisma.ItemUncheckedUpdateManyWithoutUomNestedInput
429
- uom_category?: Prisma.UomCategoryUncheckedUpdateManyWithoutUomNestedInput
430
- }
431
-
432
- export type UomCreateManyInput = {
433
- id?: number
434
- uuid?: string | null
435
- uom_code?: string | null
436
- description?: string | null
437
- is_active?: boolean | null
438
- created_at?: Date | string | null
439
- created_by?: number | null
440
- updated_at?: Date | string | null
441
- updated_by?: number | null
442
- is_deleted?: boolean | null
443
- deleted_at?: Date | string | null
444
- deleted_by?: number | null
445
- }
446
-
447
- export type UomUpdateManyMutationInput = {
448
- uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
449
- uom_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
450
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
451
- is_active?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
452
- created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
453
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
454
- updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
455
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
456
- is_deleted?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
457
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
458
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
459
- }
460
-
461
- export type UomUncheckedUpdateManyInput = {
462
- id?: Prisma.IntFieldUpdateOperationsInput | number
463
- uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
464
- uom_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
465
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
466
- is_active?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
467
- created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
468
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
469
- updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
470
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
471
- is_deleted?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
472
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
473
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
474
- }
475
-
476
- export type UomNullableScalarRelationFilter = {
477
- is?: Prisma.UomWhereInput | null
478
- isNot?: Prisma.UomWhereInput | null
479
- }
480
-
481
- export type UomCountOrderByAggregateInput = {
482
- id?: Prisma.SortOrder
483
- uuid?: Prisma.SortOrder
484
- uom_code?: Prisma.SortOrder
485
- description?: Prisma.SortOrder
486
- is_active?: Prisma.SortOrder
487
- created_at?: Prisma.SortOrder
488
- created_by?: Prisma.SortOrder
489
- updated_at?: Prisma.SortOrder
490
- updated_by?: Prisma.SortOrder
491
- is_deleted?: Prisma.SortOrder
492
- deleted_at?: Prisma.SortOrder
493
- deleted_by?: Prisma.SortOrder
494
- }
495
-
496
- export type UomAvgOrderByAggregateInput = {
497
- id?: Prisma.SortOrder
498
- created_by?: Prisma.SortOrder
499
- updated_by?: Prisma.SortOrder
500
- deleted_by?: Prisma.SortOrder
501
- }
502
-
503
- export type UomMaxOrderByAggregateInput = {
504
- id?: Prisma.SortOrder
505
- uuid?: Prisma.SortOrder
506
- uom_code?: Prisma.SortOrder
507
- description?: Prisma.SortOrder
508
- is_active?: Prisma.SortOrder
509
- created_at?: Prisma.SortOrder
510
- created_by?: Prisma.SortOrder
511
- updated_at?: Prisma.SortOrder
512
- updated_by?: Prisma.SortOrder
513
- is_deleted?: Prisma.SortOrder
514
- deleted_at?: Prisma.SortOrder
515
- deleted_by?: Prisma.SortOrder
516
- }
517
-
518
- export type UomMinOrderByAggregateInput = {
519
- id?: Prisma.SortOrder
520
- uuid?: Prisma.SortOrder
521
- uom_code?: Prisma.SortOrder
522
- description?: Prisma.SortOrder
523
- is_active?: Prisma.SortOrder
524
- created_at?: Prisma.SortOrder
525
- created_by?: Prisma.SortOrder
526
- updated_at?: Prisma.SortOrder
527
- updated_by?: Prisma.SortOrder
528
- is_deleted?: Prisma.SortOrder
529
- deleted_at?: Prisma.SortOrder
530
- deleted_by?: Prisma.SortOrder
531
- }
532
-
533
- export type UomSumOrderByAggregateInput = {
534
- id?: Prisma.SortOrder
535
- created_by?: Prisma.SortOrder
536
- updated_by?: Prisma.SortOrder
537
- deleted_by?: Prisma.SortOrder
538
- }
539
-
540
- export type UomCreateNestedOneWithoutItemsInput = {
541
- create?: Prisma.XOR<Prisma.UomCreateWithoutItemsInput, Prisma.UomUncheckedCreateWithoutItemsInput>
542
- connectOrCreate?: Prisma.UomCreateOrConnectWithoutItemsInput
543
- connect?: Prisma.UomWhereUniqueInput
544
- }
545
-
546
- export type UomUpdateOneWithoutItemsNestedInput = {
547
- create?: Prisma.XOR<Prisma.UomCreateWithoutItemsInput, Prisma.UomUncheckedCreateWithoutItemsInput>
548
- connectOrCreate?: Prisma.UomCreateOrConnectWithoutItemsInput
549
- upsert?: Prisma.UomUpsertWithoutItemsInput
550
- disconnect?: Prisma.UomWhereInput | boolean
551
- delete?: Prisma.UomWhereInput | boolean
552
- connect?: Prisma.UomWhereUniqueInput
553
- update?: Prisma.XOR<Prisma.XOR<Prisma.UomUpdateToOneWithWhereWithoutItemsInput, Prisma.UomUpdateWithoutItemsInput>, Prisma.UomUncheckedUpdateWithoutItemsInput>
554
- }
555
-
556
- export type UomCreateNestedOneWithoutUom_categoryInput = {
557
- create?: Prisma.XOR<Prisma.UomCreateWithoutUom_categoryInput, Prisma.UomUncheckedCreateWithoutUom_categoryInput>
558
- connectOrCreate?: Prisma.UomCreateOrConnectWithoutUom_categoryInput
559
- connect?: Prisma.UomWhereUniqueInput
560
- }
561
-
562
- export type UomUpdateOneWithoutUom_categoryNestedInput = {
563
- create?: Prisma.XOR<Prisma.UomCreateWithoutUom_categoryInput, Prisma.UomUncheckedCreateWithoutUom_categoryInput>
564
- connectOrCreate?: Prisma.UomCreateOrConnectWithoutUom_categoryInput
565
- upsert?: Prisma.UomUpsertWithoutUom_categoryInput
566
- disconnect?: Prisma.UomWhereInput | boolean
567
- delete?: Prisma.UomWhereInput | boolean
568
- connect?: Prisma.UomWhereUniqueInput
569
- update?: Prisma.XOR<Prisma.XOR<Prisma.UomUpdateToOneWithWhereWithoutUom_categoryInput, Prisma.UomUpdateWithoutUom_categoryInput>, Prisma.UomUncheckedUpdateWithoutUom_categoryInput>
570
- }
571
-
572
- export type UomCreateWithoutItemsInput = {
573
- uuid?: string | null
574
- uom_code?: string | null
575
- description?: string | null
576
- is_active?: boolean | null
577
- created_at?: Date | string | null
578
- created_by?: number | null
579
- updated_at?: Date | string | null
580
- updated_by?: number | null
581
- is_deleted?: boolean | null
582
- deleted_at?: Date | string | null
583
- deleted_by?: number | null
584
- uom_category?: Prisma.UomCategoryCreateNestedManyWithoutUomInput
585
- }
586
-
587
- export type UomUncheckedCreateWithoutItemsInput = {
588
- id?: number
589
- uuid?: string | null
590
- uom_code?: string | null
591
- description?: string | null
592
- is_active?: boolean | null
593
- created_at?: Date | string | null
594
- created_by?: number | null
595
- updated_at?: Date | string | null
596
- updated_by?: number | null
597
- is_deleted?: boolean | null
598
- deleted_at?: Date | string | null
599
- deleted_by?: number | null
600
- uom_category?: Prisma.UomCategoryUncheckedCreateNestedManyWithoutUomInput
601
- }
602
-
603
- export type UomCreateOrConnectWithoutItemsInput = {
604
- where: Prisma.UomWhereUniqueInput
605
- create: Prisma.XOR<Prisma.UomCreateWithoutItemsInput, Prisma.UomUncheckedCreateWithoutItemsInput>
606
- }
607
-
608
- export type UomUpsertWithoutItemsInput = {
609
- update: Prisma.XOR<Prisma.UomUpdateWithoutItemsInput, Prisma.UomUncheckedUpdateWithoutItemsInput>
610
- create: Prisma.XOR<Prisma.UomCreateWithoutItemsInput, Prisma.UomUncheckedCreateWithoutItemsInput>
611
- where?: Prisma.UomWhereInput
612
- }
613
-
614
- export type UomUpdateToOneWithWhereWithoutItemsInput = {
615
- where?: Prisma.UomWhereInput
616
- data: Prisma.XOR<Prisma.UomUpdateWithoutItemsInput, Prisma.UomUncheckedUpdateWithoutItemsInput>
617
- }
618
-
619
- export type UomUpdateWithoutItemsInput = {
620
- uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
621
- uom_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
622
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
623
- is_active?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
624
- created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
625
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
626
- updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
627
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
628
- is_deleted?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
629
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
630
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
631
- uom_category?: Prisma.UomCategoryUpdateManyWithoutUomNestedInput
632
- }
633
-
634
- export type UomUncheckedUpdateWithoutItemsInput = {
635
- id?: Prisma.IntFieldUpdateOperationsInput | number
636
- uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
637
- uom_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
638
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
639
- is_active?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
640
- created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
641
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
642
- updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
643
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
644
- is_deleted?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
645
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
646
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
647
- uom_category?: Prisma.UomCategoryUncheckedUpdateManyWithoutUomNestedInput
648
- }
649
-
650
- export type UomCreateWithoutUom_categoryInput = {
651
- uuid?: string | null
652
- uom_code?: string | null
653
- description?: string | null
654
- is_active?: boolean | null
655
- created_at?: Date | string | null
656
- created_by?: number | null
657
- updated_at?: Date | string | null
658
- updated_by?: number | null
659
- is_deleted?: boolean | null
660
- deleted_at?: Date | string | null
661
- deleted_by?: number | null
662
- items?: Prisma.ItemCreateNestedManyWithoutUomInput
663
- }
664
-
665
- export type UomUncheckedCreateWithoutUom_categoryInput = {
666
- id?: number
667
- uuid?: string | null
668
- uom_code?: string | null
669
- description?: string | null
670
- is_active?: boolean | null
671
- created_at?: Date | string | null
672
- created_by?: number | null
673
- updated_at?: Date | string | null
674
- updated_by?: number | null
675
- is_deleted?: boolean | null
676
- deleted_at?: Date | string | null
677
- deleted_by?: number | null
678
- items?: Prisma.ItemUncheckedCreateNestedManyWithoutUomInput
679
- }
680
-
681
- export type UomCreateOrConnectWithoutUom_categoryInput = {
682
- where: Prisma.UomWhereUniqueInput
683
- create: Prisma.XOR<Prisma.UomCreateWithoutUom_categoryInput, Prisma.UomUncheckedCreateWithoutUom_categoryInput>
684
- }
685
-
686
- export type UomUpsertWithoutUom_categoryInput = {
687
- update: Prisma.XOR<Prisma.UomUpdateWithoutUom_categoryInput, Prisma.UomUncheckedUpdateWithoutUom_categoryInput>
688
- create: Prisma.XOR<Prisma.UomCreateWithoutUom_categoryInput, Prisma.UomUncheckedCreateWithoutUom_categoryInput>
689
- where?: Prisma.UomWhereInput
690
- }
691
-
692
- export type UomUpdateToOneWithWhereWithoutUom_categoryInput = {
693
- where?: Prisma.UomWhereInput
694
- data: Prisma.XOR<Prisma.UomUpdateWithoutUom_categoryInput, Prisma.UomUncheckedUpdateWithoutUom_categoryInput>
695
- }
696
-
697
- export type UomUpdateWithoutUom_categoryInput = {
698
- uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
699
- uom_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
700
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
701
- is_active?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
702
- created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
703
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
704
- updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
705
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
706
- is_deleted?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
707
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
708
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
709
- items?: Prisma.ItemUpdateManyWithoutUomNestedInput
710
- }
711
-
712
- export type UomUncheckedUpdateWithoutUom_categoryInput = {
713
- id?: Prisma.IntFieldUpdateOperationsInput | number
714
- uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
715
- uom_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
716
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
717
- is_active?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
718
- created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
719
- created_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
720
- updated_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
721
- updated_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
722
- is_deleted?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
723
- deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
724
- deleted_by?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
725
- items?: Prisma.ItemUncheckedUpdateManyWithoutUomNestedInput
726
- }
727
-
728
-
729
- /**
730
- * Count Type UomCountOutputType
731
- */
732
-
733
- export type UomCountOutputType = {
734
- items: number
735
- uom_category: number
736
- }
737
-
738
- export type UomCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
739
- items?: boolean | UomCountOutputTypeCountItemsArgs
740
- uom_category?: boolean | UomCountOutputTypeCountUom_categoryArgs
741
- }
742
-
743
- /**
744
- * UomCountOutputType without action
745
- */
746
- export type UomCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
747
- /**
748
- * Select specific fields to fetch from the UomCountOutputType
749
- */
750
- select?: Prisma.UomCountOutputTypeSelect<ExtArgs> | null
751
- }
752
-
753
- /**
754
- * UomCountOutputType without action
755
- */
756
- export type UomCountOutputTypeCountItemsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
757
- where?: Prisma.ItemWhereInput
758
- }
759
-
760
- /**
761
- * UomCountOutputType without action
762
- */
763
- export type UomCountOutputTypeCountUom_categoryArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
764
- where?: Prisma.UomCategoryWhereInput
765
- }
766
-
767
-
768
- export type UomSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
769
- id?: boolean
770
- uuid?: boolean
771
- uom_code?: boolean
772
- description?: boolean
773
- is_active?: boolean
774
- created_at?: boolean
775
- created_by?: boolean
776
- updated_at?: boolean
777
- updated_by?: boolean
778
- is_deleted?: boolean
779
- deleted_at?: boolean
780
- deleted_by?: boolean
781
- items?: boolean | Prisma.Uom$itemsArgs<ExtArgs>
782
- uom_category?: boolean | Prisma.Uom$uom_categoryArgs<ExtArgs>
783
- _count?: boolean | Prisma.UomCountOutputTypeDefaultArgs<ExtArgs>
784
- }, ExtArgs["result"]["uom"]>
785
-
786
- export type UomSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
787
- id?: boolean
788
- uuid?: boolean
789
- uom_code?: boolean
790
- description?: boolean
791
- is_active?: boolean
792
- created_at?: boolean
793
- created_by?: boolean
794
- updated_at?: boolean
795
- updated_by?: boolean
796
- is_deleted?: boolean
797
- deleted_at?: boolean
798
- deleted_by?: boolean
799
- }, ExtArgs["result"]["uom"]>
800
-
801
- export type UomSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
802
- id?: boolean
803
- uuid?: boolean
804
- uom_code?: boolean
805
- description?: boolean
806
- is_active?: boolean
807
- created_at?: boolean
808
- created_by?: boolean
809
- updated_at?: boolean
810
- updated_by?: boolean
811
- is_deleted?: boolean
812
- deleted_at?: boolean
813
- deleted_by?: boolean
814
- }, ExtArgs["result"]["uom"]>
815
-
816
- export type UomSelectScalar = {
817
- id?: boolean
818
- uuid?: boolean
819
- uom_code?: boolean
820
- description?: boolean
821
- is_active?: boolean
822
- created_at?: boolean
823
- created_by?: boolean
824
- updated_at?: boolean
825
- updated_by?: boolean
826
- is_deleted?: boolean
827
- deleted_at?: boolean
828
- deleted_by?: boolean
829
- }
830
-
831
- export type UomOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "uuid" | "uom_code" | "description" | "is_active" | "created_at" | "created_by" | "updated_at" | "updated_by" | "is_deleted" | "deleted_at" | "deleted_by", ExtArgs["result"]["uom"]>
832
- export type UomInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
833
- items?: boolean | Prisma.Uom$itemsArgs<ExtArgs>
834
- uom_category?: boolean | Prisma.Uom$uom_categoryArgs<ExtArgs>
835
- _count?: boolean | Prisma.UomCountOutputTypeDefaultArgs<ExtArgs>
836
- }
837
- export type UomIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
838
- export type UomIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
839
-
840
- export type $UomPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
841
- name: "Uom"
842
- objects: {
843
- items: Prisma.$ItemPayload<ExtArgs>[]
844
- uom_category: Prisma.$UomCategoryPayload<ExtArgs>[]
845
- }
846
- scalars: runtime.Types.Extensions.GetPayloadResult<{
847
- id: number
848
- uuid: string | null
849
- uom_code: string | null
850
- description: string | null
851
- is_active: boolean | null
852
- created_at: Date | null
853
- created_by: number | null
854
- updated_at: Date | null
855
- updated_by: number | null
856
- is_deleted: boolean | null
857
- deleted_at: Date | null
858
- deleted_by: number | null
859
- }, ExtArgs["result"]["uom"]>
860
- composites: {}
861
- }
862
-
863
- export type UomGetPayload<S extends boolean | null | undefined | UomDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$UomPayload, S>
864
-
865
- export type UomCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
866
- Omit<UomFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
867
- select?: UomCountAggregateInputType | true
868
- }
869
-
870
- export interface UomDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
871
- [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Uom'], meta: { name: 'Uom' } }
872
- /**
873
- * Find zero or one Uom that matches the filter.
874
- * @param {UomFindUniqueArgs} args - Arguments to find a Uom
875
- * @example
876
- * // Get one Uom
877
- * const uom = await prisma.uom.findUnique({
878
- * where: {
879
- * // ... provide filter here
880
- * }
881
- * })
882
- */
883
- findUnique<T extends UomFindUniqueArgs>(args: Prisma.SelectSubset<T, UomFindUniqueArgs<ExtArgs>>): Prisma.Prisma__UomClient<runtime.Types.Result.GetResult<Prisma.$UomPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
884
-
885
- /**
886
- * Find one Uom that matches the filter or throw an error with `error.code='P2025'`
887
- * if no matches were found.
888
- * @param {UomFindUniqueOrThrowArgs} args - Arguments to find a Uom
889
- * @example
890
- * // Get one Uom
891
- * const uom = await prisma.uom.findUniqueOrThrow({
892
- * where: {
893
- * // ... provide filter here
894
- * }
895
- * })
896
- */
897
- findUniqueOrThrow<T extends UomFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, UomFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__UomClient<runtime.Types.Result.GetResult<Prisma.$UomPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
898
-
899
- /**
900
- * Find the first Uom that matches the filter.
901
- * Note, that providing `undefined` is treated as the value not being there.
902
- * Read more here: https://pris.ly/d/null-undefined
903
- * @param {UomFindFirstArgs} args - Arguments to find a Uom
904
- * @example
905
- * // Get one Uom
906
- * const uom = await prisma.uom.findFirst({
907
- * where: {
908
- * // ... provide filter here
909
- * }
910
- * })
911
- */
912
- findFirst<T extends UomFindFirstArgs>(args?: Prisma.SelectSubset<T, UomFindFirstArgs<ExtArgs>>): Prisma.Prisma__UomClient<runtime.Types.Result.GetResult<Prisma.$UomPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
913
-
914
- /**
915
- * Find the first Uom that matches the filter or
916
- * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
917
- * Note, that providing `undefined` is treated as the value not being there.
918
- * Read more here: https://pris.ly/d/null-undefined
919
- * @param {UomFindFirstOrThrowArgs} args - Arguments to find a Uom
920
- * @example
921
- * // Get one Uom
922
- * const uom = await prisma.uom.findFirstOrThrow({
923
- * where: {
924
- * // ... provide filter here
925
- * }
926
- * })
927
- */
928
- findFirstOrThrow<T extends UomFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, UomFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__UomClient<runtime.Types.Result.GetResult<Prisma.$UomPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
929
-
930
- /**
931
- * Find zero or more Uoms that matches the filter.
932
- * Note, that providing `undefined` is treated as the value not being there.
933
- * Read more here: https://pris.ly/d/null-undefined
934
- * @param {UomFindManyArgs} args - Arguments to filter and select certain fields only.
935
- * @example
936
- * // Get all Uoms
937
- * const uoms = await prisma.uom.findMany()
938
- *
939
- * // Get first 10 Uoms
940
- * const uoms = await prisma.uom.findMany({ take: 10 })
941
- *
942
- * // Only select the `id`
943
- * const uomWithIdOnly = await prisma.uom.findMany({ select: { id: true } })
944
- *
945
- */
946
- findMany<T extends UomFindManyArgs>(args?: Prisma.SelectSubset<T, UomFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UomPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
947
-
948
- /**
949
- * Create a Uom.
950
- * @param {UomCreateArgs} args - Arguments to create a Uom.
951
- * @example
952
- * // Create one Uom
953
- * const Uom = await prisma.uom.create({
954
- * data: {
955
- * // ... data to create a Uom
956
- * }
957
- * })
958
- *
959
- */
960
- create<T extends UomCreateArgs>(args: Prisma.SelectSubset<T, UomCreateArgs<ExtArgs>>): Prisma.Prisma__UomClient<runtime.Types.Result.GetResult<Prisma.$UomPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
961
-
962
- /**
963
- * Create many Uoms.
964
- * @param {UomCreateManyArgs} args - Arguments to create many Uoms.
965
- * @example
966
- * // Create many Uoms
967
- * const uom = await prisma.uom.createMany({
968
- * data: [
969
- * // ... provide data here
970
- * ]
971
- * })
972
- *
973
- */
974
- createMany<T extends UomCreateManyArgs>(args?: Prisma.SelectSubset<T, UomCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
975
-
976
- /**
977
- * Create many Uoms and returns the data saved in the database.
978
- * @param {UomCreateManyAndReturnArgs} args - Arguments to create many Uoms.
979
- * @example
980
- * // Create many Uoms
981
- * const uom = await prisma.uom.createManyAndReturn({
982
- * data: [
983
- * // ... provide data here
984
- * ]
985
- * })
986
- *
987
- * // Create many Uoms and only return the `id`
988
- * const uomWithIdOnly = await prisma.uom.createManyAndReturn({
989
- * select: { id: true },
990
- * data: [
991
- * // ... provide data here
992
- * ]
993
- * })
994
- * Note, that providing `undefined` is treated as the value not being there.
995
- * Read more here: https://pris.ly/d/null-undefined
996
- *
997
- */
998
- createManyAndReturn<T extends UomCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, UomCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UomPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
999
-
1000
- /**
1001
- * Delete a Uom.
1002
- * @param {UomDeleteArgs} args - Arguments to delete one Uom.
1003
- * @example
1004
- * // Delete one Uom
1005
- * const Uom = await prisma.uom.delete({
1006
- * where: {
1007
- * // ... filter to delete one Uom
1008
- * }
1009
- * })
1010
- *
1011
- */
1012
- delete<T extends UomDeleteArgs>(args: Prisma.SelectSubset<T, UomDeleteArgs<ExtArgs>>): Prisma.Prisma__UomClient<runtime.Types.Result.GetResult<Prisma.$UomPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1013
-
1014
- /**
1015
- * Update one Uom.
1016
- * @param {UomUpdateArgs} args - Arguments to update one Uom.
1017
- * @example
1018
- * // Update one Uom
1019
- * const uom = await prisma.uom.update({
1020
- * where: {
1021
- * // ... provide filter here
1022
- * },
1023
- * data: {
1024
- * // ... provide data here
1025
- * }
1026
- * })
1027
- *
1028
- */
1029
- update<T extends UomUpdateArgs>(args: Prisma.SelectSubset<T, UomUpdateArgs<ExtArgs>>): Prisma.Prisma__UomClient<runtime.Types.Result.GetResult<Prisma.$UomPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1030
-
1031
- /**
1032
- * Delete zero or more Uoms.
1033
- * @param {UomDeleteManyArgs} args - Arguments to filter Uoms to delete.
1034
- * @example
1035
- * // Delete a few Uoms
1036
- * const { count } = await prisma.uom.deleteMany({
1037
- * where: {
1038
- * // ... provide filter here
1039
- * }
1040
- * })
1041
- *
1042
- */
1043
- deleteMany<T extends UomDeleteManyArgs>(args?: Prisma.SelectSubset<T, UomDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1044
-
1045
- /**
1046
- * Update zero or more Uoms.
1047
- * Note, that providing `undefined` is treated as the value not being there.
1048
- * Read more here: https://pris.ly/d/null-undefined
1049
- * @param {UomUpdateManyArgs} args - Arguments to update one or more rows.
1050
- * @example
1051
- * // Update many Uoms
1052
- * const uom = await prisma.uom.updateMany({
1053
- * where: {
1054
- * // ... provide filter here
1055
- * },
1056
- * data: {
1057
- * // ... provide data here
1058
- * }
1059
- * })
1060
- *
1061
- */
1062
- updateMany<T extends UomUpdateManyArgs>(args: Prisma.SelectSubset<T, UomUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1063
-
1064
- /**
1065
- * Update zero or more Uoms and returns the data updated in the database.
1066
- * @param {UomUpdateManyAndReturnArgs} args - Arguments to update many Uoms.
1067
- * @example
1068
- * // Update many Uoms
1069
- * const uom = await prisma.uom.updateManyAndReturn({
1070
- * where: {
1071
- * // ... provide filter here
1072
- * },
1073
- * data: [
1074
- * // ... provide data here
1075
- * ]
1076
- * })
1077
- *
1078
- * // Update zero or more Uoms and only return the `id`
1079
- * const uomWithIdOnly = await prisma.uom.updateManyAndReturn({
1080
- * select: { id: true },
1081
- * where: {
1082
- * // ... provide filter here
1083
- * },
1084
- * data: [
1085
- * // ... provide data here
1086
- * ]
1087
- * })
1088
- * Note, that providing `undefined` is treated as the value not being there.
1089
- * Read more here: https://pris.ly/d/null-undefined
1090
- *
1091
- */
1092
- updateManyAndReturn<T extends UomUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, UomUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UomPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
1093
-
1094
- /**
1095
- * Create or update one Uom.
1096
- * @param {UomUpsertArgs} args - Arguments to update or create a Uom.
1097
- * @example
1098
- * // Update or create a Uom
1099
- * const uom = await prisma.uom.upsert({
1100
- * create: {
1101
- * // ... data to create a Uom
1102
- * },
1103
- * update: {
1104
- * // ... in case it already exists, update
1105
- * },
1106
- * where: {
1107
- * // ... the filter for the Uom we want to update
1108
- * }
1109
- * })
1110
- */
1111
- upsert<T extends UomUpsertArgs>(args: Prisma.SelectSubset<T, UomUpsertArgs<ExtArgs>>): Prisma.Prisma__UomClient<runtime.Types.Result.GetResult<Prisma.$UomPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1112
-
1113
-
1114
- /**
1115
- * Count the number of Uoms.
1116
- * Note, that providing `undefined` is treated as the value not being there.
1117
- * Read more here: https://pris.ly/d/null-undefined
1118
- * @param {UomCountArgs} args - Arguments to filter Uoms to count.
1119
- * @example
1120
- * // Count the number of Uoms
1121
- * const count = await prisma.uom.count({
1122
- * where: {
1123
- * // ... the filter for the Uoms we want to count
1124
- * }
1125
- * })
1126
- **/
1127
- count<T extends UomCountArgs>(
1128
- args?: Prisma.Subset<T, UomCountArgs>,
1129
- ): Prisma.PrismaPromise<
1130
- T extends runtime.Types.Utils.Record<'select', any>
1131
- ? T['select'] extends true
1132
- ? number
1133
- : Prisma.GetScalarType<T['select'], UomCountAggregateOutputType>
1134
- : number
1135
- >
1136
-
1137
- /**
1138
- * Allows you to perform aggregations operations on a Uom.
1139
- * Note, that providing `undefined` is treated as the value not being there.
1140
- * Read more here: https://pris.ly/d/null-undefined
1141
- * @param {UomAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1142
- * @example
1143
- * // Ordered by age ascending
1144
- * // Where email contains prisma.io
1145
- * // Limited to the 10 users
1146
- * const aggregations = await prisma.user.aggregate({
1147
- * _avg: {
1148
- * age: true,
1149
- * },
1150
- * where: {
1151
- * email: {
1152
- * contains: "prisma.io",
1153
- * },
1154
- * },
1155
- * orderBy: {
1156
- * age: "asc",
1157
- * },
1158
- * take: 10,
1159
- * })
1160
- **/
1161
- aggregate<T extends UomAggregateArgs>(args: Prisma.Subset<T, UomAggregateArgs>): Prisma.PrismaPromise<GetUomAggregateType<T>>
1162
-
1163
- /**
1164
- * Group by Uom.
1165
- * Note, that providing `undefined` is treated as the value not being there.
1166
- * Read more here: https://pris.ly/d/null-undefined
1167
- * @param {UomGroupByArgs} args - Group by arguments.
1168
- * @example
1169
- * // Group by city, order by createdAt, get count
1170
- * const result = await prisma.user.groupBy({
1171
- * by: ['city', 'createdAt'],
1172
- * orderBy: {
1173
- * createdAt: true
1174
- * },
1175
- * _count: {
1176
- * _all: true
1177
- * },
1178
- * })
1179
- *
1180
- **/
1181
- groupBy<
1182
- T extends UomGroupByArgs,
1183
- HasSelectOrTake extends Prisma.Or<
1184
- Prisma.Extends<'skip', Prisma.Keys<T>>,
1185
- Prisma.Extends<'take', Prisma.Keys<T>>
1186
- >,
1187
- OrderByArg extends Prisma.True extends HasSelectOrTake
1188
- ? { orderBy: UomGroupByArgs['orderBy'] }
1189
- : { orderBy?: UomGroupByArgs['orderBy'] },
1190
- OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1191
- ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1192
- ByValid extends Prisma.Has<ByFields, OrderFields>,
1193
- HavingFields extends Prisma.GetHavingFields<T['having']>,
1194
- HavingValid extends Prisma.Has<ByFields, HavingFields>,
1195
- ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1196
- InputErrors extends ByEmpty extends Prisma.True
1197
- ? `Error: "by" must not be empty.`
1198
- : HavingValid extends Prisma.False
1199
- ? {
1200
- [P in HavingFields]: P extends ByFields
1201
- ? never
1202
- : P extends string
1203
- ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1204
- : [
1205
- Error,
1206
- 'Field ',
1207
- P,
1208
- ` in "having" needs to be provided in "by"`,
1209
- ]
1210
- }[HavingFields]
1211
- : 'take' extends Prisma.Keys<T>
1212
- ? 'orderBy' extends Prisma.Keys<T>
1213
- ? ByValid extends Prisma.True
1214
- ? {}
1215
- : {
1216
- [P in OrderFields]: P extends ByFields
1217
- ? never
1218
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1219
- }[OrderFields]
1220
- : 'Error: If you provide "take", you also need to provide "orderBy"'
1221
- : 'skip' extends Prisma.Keys<T>
1222
- ? 'orderBy' extends Prisma.Keys<T>
1223
- ? ByValid extends Prisma.True
1224
- ? {}
1225
- : {
1226
- [P in OrderFields]: P extends ByFields
1227
- ? never
1228
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1229
- }[OrderFields]
1230
- : 'Error: If you provide "skip", you also need to provide "orderBy"'
1231
- : ByValid extends Prisma.True
1232
- ? {}
1233
- : {
1234
- [P in OrderFields]: P extends ByFields
1235
- ? never
1236
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1237
- }[OrderFields]
1238
- >(args: Prisma.SubsetIntersection<T, UomGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetUomGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1239
- /**
1240
- * Fields of the Uom model
1241
- */
1242
- readonly fields: UomFieldRefs;
1243
- }
1244
-
1245
- /**
1246
- * The delegate class that acts as a "Promise-like" for Uom.
1247
- * Why is this prefixed with `Prisma__`?
1248
- * Because we want to prevent naming conflicts as mentioned in
1249
- * https://github.com/prisma/prisma-client-js/issues/707
1250
- */
1251
- export interface Prisma__UomClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1252
- readonly [Symbol.toStringTag]: "PrismaPromise"
1253
- items<T extends Prisma.Uom$itemsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Uom$itemsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ItemPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1254
- uom_category<T extends Prisma.Uom$uom_categoryArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Uom$uom_categoryArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UomCategoryPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1255
- /**
1256
- * Attaches callbacks for the resolution and/or rejection of the Promise.
1257
- * @param onfulfilled The callback to execute when the Promise is resolved.
1258
- * @param onrejected The callback to execute when the Promise is rejected.
1259
- * @returns A Promise for the completion of which ever callback is executed.
1260
- */
1261
- 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>
1262
- /**
1263
- * Attaches a callback for only the rejection of the Promise.
1264
- * @param onrejected The callback to execute when the Promise is rejected.
1265
- * @returns A Promise for the completion of the callback.
1266
- */
1267
- catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1268
- /**
1269
- * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1270
- * resolved value cannot be modified from the callback.
1271
- * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1272
- * @returns A Promise for the completion of the callback.
1273
- */
1274
- finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1275
- }
1276
-
1277
-
1278
-
1279
-
1280
- /**
1281
- * Fields of the Uom model
1282
- */
1283
- export interface UomFieldRefs {
1284
- readonly id: Prisma.FieldRef<"Uom", 'Int'>
1285
- readonly uuid: Prisma.FieldRef<"Uom", 'String'>
1286
- readonly uom_code: Prisma.FieldRef<"Uom", 'String'>
1287
- readonly description: Prisma.FieldRef<"Uom", 'String'>
1288
- readonly is_active: Prisma.FieldRef<"Uom", 'Boolean'>
1289
- readonly created_at: Prisma.FieldRef<"Uom", 'DateTime'>
1290
- readonly created_by: Prisma.FieldRef<"Uom", 'Int'>
1291
- readonly updated_at: Prisma.FieldRef<"Uom", 'DateTime'>
1292
- readonly updated_by: Prisma.FieldRef<"Uom", 'Int'>
1293
- readonly is_deleted: Prisma.FieldRef<"Uom", 'Boolean'>
1294
- readonly deleted_at: Prisma.FieldRef<"Uom", 'DateTime'>
1295
- readonly deleted_by: Prisma.FieldRef<"Uom", 'Int'>
1296
- }
1297
-
1298
-
1299
- // Custom InputTypes
1300
- /**
1301
- * Uom findUnique
1302
- */
1303
- export type UomFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1304
- /**
1305
- * Select specific fields to fetch from the Uom
1306
- */
1307
- select?: Prisma.UomSelect<ExtArgs> | null
1308
- /**
1309
- * Omit specific fields from the Uom
1310
- */
1311
- omit?: Prisma.UomOmit<ExtArgs> | null
1312
- /**
1313
- * Choose, which related nodes to fetch as well
1314
- */
1315
- include?: Prisma.UomInclude<ExtArgs> | null
1316
- /**
1317
- * Filter, which Uom to fetch.
1318
- */
1319
- where: Prisma.UomWhereUniqueInput
1320
- }
1321
-
1322
- /**
1323
- * Uom findUniqueOrThrow
1324
- */
1325
- export type UomFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1326
- /**
1327
- * Select specific fields to fetch from the Uom
1328
- */
1329
- select?: Prisma.UomSelect<ExtArgs> | null
1330
- /**
1331
- * Omit specific fields from the Uom
1332
- */
1333
- omit?: Prisma.UomOmit<ExtArgs> | null
1334
- /**
1335
- * Choose, which related nodes to fetch as well
1336
- */
1337
- include?: Prisma.UomInclude<ExtArgs> | null
1338
- /**
1339
- * Filter, which Uom to fetch.
1340
- */
1341
- where: Prisma.UomWhereUniqueInput
1342
- }
1343
-
1344
- /**
1345
- * Uom findFirst
1346
- */
1347
- export type UomFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1348
- /**
1349
- * Select specific fields to fetch from the Uom
1350
- */
1351
- select?: Prisma.UomSelect<ExtArgs> | null
1352
- /**
1353
- * Omit specific fields from the Uom
1354
- */
1355
- omit?: Prisma.UomOmit<ExtArgs> | null
1356
- /**
1357
- * Choose, which related nodes to fetch as well
1358
- */
1359
- include?: Prisma.UomInclude<ExtArgs> | null
1360
- /**
1361
- * Filter, which Uom to fetch.
1362
- */
1363
- where?: Prisma.UomWhereInput
1364
- /**
1365
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1366
- *
1367
- * Determine the order of Uoms to fetch.
1368
- */
1369
- orderBy?: Prisma.UomOrderByWithRelationInput | Prisma.UomOrderByWithRelationInput[]
1370
- /**
1371
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1372
- *
1373
- * Sets the position for searching for Uoms.
1374
- */
1375
- cursor?: Prisma.UomWhereUniqueInput
1376
- /**
1377
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1378
- *
1379
- * Take `±n` Uoms from the position of the cursor.
1380
- */
1381
- take?: number
1382
- /**
1383
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1384
- *
1385
- * Skip the first `n` Uoms.
1386
- */
1387
- skip?: number
1388
- /**
1389
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1390
- *
1391
- * Filter by unique combinations of Uoms.
1392
- */
1393
- distinct?: Prisma.UomScalarFieldEnum | Prisma.UomScalarFieldEnum[]
1394
- }
1395
-
1396
- /**
1397
- * Uom findFirstOrThrow
1398
- */
1399
- export type UomFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1400
- /**
1401
- * Select specific fields to fetch from the Uom
1402
- */
1403
- select?: Prisma.UomSelect<ExtArgs> | null
1404
- /**
1405
- * Omit specific fields from the Uom
1406
- */
1407
- omit?: Prisma.UomOmit<ExtArgs> | null
1408
- /**
1409
- * Choose, which related nodes to fetch as well
1410
- */
1411
- include?: Prisma.UomInclude<ExtArgs> | null
1412
- /**
1413
- * Filter, which Uom to fetch.
1414
- */
1415
- where?: Prisma.UomWhereInput
1416
- /**
1417
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1418
- *
1419
- * Determine the order of Uoms to fetch.
1420
- */
1421
- orderBy?: Prisma.UomOrderByWithRelationInput | Prisma.UomOrderByWithRelationInput[]
1422
- /**
1423
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1424
- *
1425
- * Sets the position for searching for Uoms.
1426
- */
1427
- cursor?: Prisma.UomWhereUniqueInput
1428
- /**
1429
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1430
- *
1431
- * Take `±n` Uoms from the position of the cursor.
1432
- */
1433
- take?: number
1434
- /**
1435
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1436
- *
1437
- * Skip the first `n` Uoms.
1438
- */
1439
- skip?: number
1440
- /**
1441
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1442
- *
1443
- * Filter by unique combinations of Uoms.
1444
- */
1445
- distinct?: Prisma.UomScalarFieldEnum | Prisma.UomScalarFieldEnum[]
1446
- }
1447
-
1448
- /**
1449
- * Uom findMany
1450
- */
1451
- export type UomFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1452
- /**
1453
- * Select specific fields to fetch from the Uom
1454
- */
1455
- select?: Prisma.UomSelect<ExtArgs> | null
1456
- /**
1457
- * Omit specific fields from the Uom
1458
- */
1459
- omit?: Prisma.UomOmit<ExtArgs> | null
1460
- /**
1461
- * Choose, which related nodes to fetch as well
1462
- */
1463
- include?: Prisma.UomInclude<ExtArgs> | null
1464
- /**
1465
- * Filter, which Uoms to fetch.
1466
- */
1467
- where?: Prisma.UomWhereInput
1468
- /**
1469
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1470
- *
1471
- * Determine the order of Uoms to fetch.
1472
- */
1473
- orderBy?: Prisma.UomOrderByWithRelationInput | Prisma.UomOrderByWithRelationInput[]
1474
- /**
1475
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1476
- *
1477
- * Sets the position for listing Uoms.
1478
- */
1479
- cursor?: Prisma.UomWhereUniqueInput
1480
- /**
1481
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1482
- *
1483
- * Take `±n` Uoms from the position of the cursor.
1484
- */
1485
- take?: number
1486
- /**
1487
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1488
- *
1489
- * Skip the first `n` Uoms.
1490
- */
1491
- skip?: number
1492
- /**
1493
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1494
- *
1495
- * Filter by unique combinations of Uoms.
1496
- */
1497
- distinct?: Prisma.UomScalarFieldEnum | Prisma.UomScalarFieldEnum[]
1498
- }
1499
-
1500
- /**
1501
- * Uom create
1502
- */
1503
- export type UomCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1504
- /**
1505
- * Select specific fields to fetch from the Uom
1506
- */
1507
- select?: Prisma.UomSelect<ExtArgs> | null
1508
- /**
1509
- * Omit specific fields from the Uom
1510
- */
1511
- omit?: Prisma.UomOmit<ExtArgs> | null
1512
- /**
1513
- * Choose, which related nodes to fetch as well
1514
- */
1515
- include?: Prisma.UomInclude<ExtArgs> | null
1516
- /**
1517
- * The data needed to create a Uom.
1518
- */
1519
- data?: Prisma.XOR<Prisma.UomCreateInput, Prisma.UomUncheckedCreateInput>
1520
- }
1521
-
1522
- /**
1523
- * Uom createMany
1524
- */
1525
- export type UomCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1526
- /**
1527
- * The data used to create many Uoms.
1528
- */
1529
- data: Prisma.UomCreateManyInput | Prisma.UomCreateManyInput[]
1530
- skipDuplicates?: boolean
1531
- }
1532
-
1533
- /**
1534
- * Uom createManyAndReturn
1535
- */
1536
- export type UomCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1537
- /**
1538
- * Select specific fields to fetch from the Uom
1539
- */
1540
- select?: Prisma.UomSelectCreateManyAndReturn<ExtArgs> | null
1541
- /**
1542
- * Omit specific fields from the Uom
1543
- */
1544
- omit?: Prisma.UomOmit<ExtArgs> | null
1545
- /**
1546
- * The data used to create many Uoms.
1547
- */
1548
- data: Prisma.UomCreateManyInput | Prisma.UomCreateManyInput[]
1549
- skipDuplicates?: boolean
1550
- }
1551
-
1552
- /**
1553
- * Uom update
1554
- */
1555
- export type UomUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1556
- /**
1557
- * Select specific fields to fetch from the Uom
1558
- */
1559
- select?: Prisma.UomSelect<ExtArgs> | null
1560
- /**
1561
- * Omit specific fields from the Uom
1562
- */
1563
- omit?: Prisma.UomOmit<ExtArgs> | null
1564
- /**
1565
- * Choose, which related nodes to fetch as well
1566
- */
1567
- include?: Prisma.UomInclude<ExtArgs> | null
1568
- /**
1569
- * The data needed to update a Uom.
1570
- */
1571
- data: Prisma.XOR<Prisma.UomUpdateInput, Prisma.UomUncheckedUpdateInput>
1572
- /**
1573
- * Choose, which Uom to update.
1574
- */
1575
- where: Prisma.UomWhereUniqueInput
1576
- }
1577
-
1578
- /**
1579
- * Uom updateMany
1580
- */
1581
- export type UomUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1582
- /**
1583
- * The data used to update Uoms.
1584
- */
1585
- data: Prisma.XOR<Prisma.UomUpdateManyMutationInput, Prisma.UomUncheckedUpdateManyInput>
1586
- /**
1587
- * Filter which Uoms to update
1588
- */
1589
- where?: Prisma.UomWhereInput
1590
- /**
1591
- * Limit how many Uoms to update.
1592
- */
1593
- limit?: number
1594
- }
1595
-
1596
- /**
1597
- * Uom updateManyAndReturn
1598
- */
1599
- export type UomUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1600
- /**
1601
- * Select specific fields to fetch from the Uom
1602
- */
1603
- select?: Prisma.UomSelectUpdateManyAndReturn<ExtArgs> | null
1604
- /**
1605
- * Omit specific fields from the Uom
1606
- */
1607
- omit?: Prisma.UomOmit<ExtArgs> | null
1608
- /**
1609
- * The data used to update Uoms.
1610
- */
1611
- data: Prisma.XOR<Prisma.UomUpdateManyMutationInput, Prisma.UomUncheckedUpdateManyInput>
1612
- /**
1613
- * Filter which Uoms to update
1614
- */
1615
- where?: Prisma.UomWhereInput
1616
- /**
1617
- * Limit how many Uoms to update.
1618
- */
1619
- limit?: number
1620
- }
1621
-
1622
- /**
1623
- * Uom upsert
1624
- */
1625
- export type UomUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1626
- /**
1627
- * Select specific fields to fetch from the Uom
1628
- */
1629
- select?: Prisma.UomSelect<ExtArgs> | null
1630
- /**
1631
- * Omit specific fields from the Uom
1632
- */
1633
- omit?: Prisma.UomOmit<ExtArgs> | null
1634
- /**
1635
- * Choose, which related nodes to fetch as well
1636
- */
1637
- include?: Prisma.UomInclude<ExtArgs> | null
1638
- /**
1639
- * The filter to search for the Uom to update in case it exists.
1640
- */
1641
- where: Prisma.UomWhereUniqueInput
1642
- /**
1643
- * In case the Uom found by the `where` argument doesn't exist, create a new Uom with this data.
1644
- */
1645
- create: Prisma.XOR<Prisma.UomCreateInput, Prisma.UomUncheckedCreateInput>
1646
- /**
1647
- * In case the Uom was found with the provided `where` argument, update it with this data.
1648
- */
1649
- update: Prisma.XOR<Prisma.UomUpdateInput, Prisma.UomUncheckedUpdateInput>
1650
- }
1651
-
1652
- /**
1653
- * Uom delete
1654
- */
1655
- export type UomDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1656
- /**
1657
- * Select specific fields to fetch from the Uom
1658
- */
1659
- select?: Prisma.UomSelect<ExtArgs> | null
1660
- /**
1661
- * Omit specific fields from the Uom
1662
- */
1663
- omit?: Prisma.UomOmit<ExtArgs> | null
1664
- /**
1665
- * Choose, which related nodes to fetch as well
1666
- */
1667
- include?: Prisma.UomInclude<ExtArgs> | null
1668
- /**
1669
- * Filter which Uom to delete.
1670
- */
1671
- where: Prisma.UomWhereUniqueInput
1672
- }
1673
-
1674
- /**
1675
- * Uom deleteMany
1676
- */
1677
- export type UomDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1678
- /**
1679
- * Filter which Uoms to delete
1680
- */
1681
- where?: Prisma.UomWhereInput
1682
- /**
1683
- * Limit how many Uoms to delete.
1684
- */
1685
- limit?: number
1686
- }
1687
-
1688
- /**
1689
- * Uom.items
1690
- */
1691
- export type Uom$itemsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1692
- /**
1693
- * Select specific fields to fetch from the Item
1694
- */
1695
- select?: Prisma.ItemSelect<ExtArgs> | null
1696
- /**
1697
- * Omit specific fields from the Item
1698
- */
1699
- omit?: Prisma.ItemOmit<ExtArgs> | null
1700
- /**
1701
- * Choose, which related nodes to fetch as well
1702
- */
1703
- include?: Prisma.ItemInclude<ExtArgs> | null
1704
- where?: Prisma.ItemWhereInput
1705
- orderBy?: Prisma.ItemOrderByWithRelationInput | Prisma.ItemOrderByWithRelationInput[]
1706
- cursor?: Prisma.ItemWhereUniqueInput
1707
- take?: number
1708
- skip?: number
1709
- distinct?: Prisma.ItemScalarFieldEnum | Prisma.ItemScalarFieldEnum[]
1710
- }
1711
-
1712
- /**
1713
- * Uom.uom_category
1714
- */
1715
- export type Uom$uom_categoryArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1716
- /**
1717
- * Select specific fields to fetch from the UomCategory
1718
- */
1719
- select?: Prisma.UomCategorySelect<ExtArgs> | null
1720
- /**
1721
- * Omit specific fields from the UomCategory
1722
- */
1723
- omit?: Prisma.UomCategoryOmit<ExtArgs> | null
1724
- /**
1725
- * Choose, which related nodes to fetch as well
1726
- */
1727
- include?: Prisma.UomCategoryInclude<ExtArgs> | null
1728
- where?: Prisma.UomCategoryWhereInput
1729
- orderBy?: Prisma.UomCategoryOrderByWithRelationInput | Prisma.UomCategoryOrderByWithRelationInput[]
1730
- cursor?: Prisma.UomCategoryWhereUniqueInput
1731
- take?: number
1732
- skip?: number
1733
- distinct?: Prisma.UomCategoryScalarFieldEnum | Prisma.UomCategoryScalarFieldEnum[]
1734
- }
1735
-
1736
- /**
1737
- * Uom without action
1738
- */
1739
- export type UomDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1740
- /**
1741
- * Select specific fields to fetch from the Uom
1742
- */
1743
- select?: Prisma.UomSelect<ExtArgs> | null
1744
- /**
1745
- * Omit specific fields from the Uom
1746
- */
1747
- omit?: Prisma.UomOmit<ExtArgs> | null
1748
- /**
1749
- * Choose, which related nodes to fetch as well
1750
- */
1751
- include?: Prisma.UomInclude<ExtArgs> | null
1752
- }