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