@sagebox-be/prisma-inventory 0.0.1 → 0.0.2
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.
- package/package.json +1 -1
- package/prisma/client/edge.js +31 -6
- package/prisma/client/index-browser.js +28 -3
- package/prisma/client/index.d.ts +1732 -121
- package/prisma/client/index.js +31 -6
- package/prisma/client/package.json +1 -1
- package/prisma/client/schema.prisma +21 -3
- package/prisma/client/wasm.js +31 -6
package/prisma/client/index.d.ts
CHANGED
|
@@ -219,6 +219,11 @@ export type InventoryReservation = $Result.DefaultSelection<Prisma.$InventoryRes
|
|
|
219
219
|
* Records every change to inventory with full traceability
|
|
220
220
|
*/
|
|
221
221
|
export type InventoryLedger = $Result.DefaultSelection<Prisma.$InventoryLedgerPayload>
|
|
222
|
+
/**
|
|
223
|
+
* Model Inbox
|
|
224
|
+
*
|
|
225
|
+
*/
|
|
226
|
+
export type Inbox = $Result.DefaultSelection<Prisma.$InboxPayload>
|
|
222
227
|
|
|
223
228
|
/**
|
|
224
229
|
* ## Prisma Client ʲˢ
|
|
@@ -377,6 +382,16 @@ export class PrismaClient<
|
|
|
377
382
|
* ```
|
|
378
383
|
*/
|
|
379
384
|
get inventoryLedger(): Prisma.InventoryLedgerDelegate<ExtArgs, ClientOptions>;
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* `prisma.inbox`: Exposes CRUD operations for the **Inbox** model.
|
|
388
|
+
* Example usage:
|
|
389
|
+
* ```ts
|
|
390
|
+
* // Fetch zero or more Inboxes
|
|
391
|
+
* const inboxes = await prisma.inbox.findMany()
|
|
392
|
+
* ```
|
|
393
|
+
*/
|
|
394
|
+
get inbox(): Prisma.InboxDelegate<ExtArgs, ClientOptions>;
|
|
380
395
|
}
|
|
381
396
|
|
|
382
397
|
export namespace Prisma {
|
|
@@ -820,7 +835,8 @@ export namespace Prisma {
|
|
|
820
835
|
Warehouse: 'Warehouse',
|
|
821
836
|
InventoryItem: 'InventoryItem',
|
|
822
837
|
InventoryReservation: 'InventoryReservation',
|
|
823
|
-
InventoryLedger: 'InventoryLedger'
|
|
838
|
+
InventoryLedger: 'InventoryLedger',
|
|
839
|
+
Inbox: 'Inbox'
|
|
824
840
|
};
|
|
825
841
|
|
|
826
842
|
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
|
@@ -839,7 +855,7 @@ export namespace Prisma {
|
|
|
839
855
|
omit: GlobalOmitOptions
|
|
840
856
|
}
|
|
841
857
|
meta: {
|
|
842
|
-
modelProps: "warehouse" | "inventoryItem" | "inventoryReservation" | "inventoryLedger"
|
|
858
|
+
modelProps: "warehouse" | "inventoryItem" | "inventoryReservation" | "inventoryLedger" | "inbox"
|
|
843
859
|
txIsolationLevel: Prisma.TransactionIsolationLevel
|
|
844
860
|
}
|
|
845
861
|
model: {
|
|
@@ -1139,6 +1155,80 @@ export namespace Prisma {
|
|
|
1139
1155
|
}
|
|
1140
1156
|
}
|
|
1141
1157
|
}
|
|
1158
|
+
Inbox: {
|
|
1159
|
+
payload: Prisma.$InboxPayload<ExtArgs>
|
|
1160
|
+
fields: Prisma.InboxFieldRefs
|
|
1161
|
+
operations: {
|
|
1162
|
+
findUnique: {
|
|
1163
|
+
args: Prisma.InboxFindUniqueArgs<ExtArgs>
|
|
1164
|
+
result: $Utils.PayloadToResult<Prisma.$InboxPayload> | null
|
|
1165
|
+
}
|
|
1166
|
+
findUniqueOrThrow: {
|
|
1167
|
+
args: Prisma.InboxFindUniqueOrThrowArgs<ExtArgs>
|
|
1168
|
+
result: $Utils.PayloadToResult<Prisma.$InboxPayload>
|
|
1169
|
+
}
|
|
1170
|
+
findFirst: {
|
|
1171
|
+
args: Prisma.InboxFindFirstArgs<ExtArgs>
|
|
1172
|
+
result: $Utils.PayloadToResult<Prisma.$InboxPayload> | null
|
|
1173
|
+
}
|
|
1174
|
+
findFirstOrThrow: {
|
|
1175
|
+
args: Prisma.InboxFindFirstOrThrowArgs<ExtArgs>
|
|
1176
|
+
result: $Utils.PayloadToResult<Prisma.$InboxPayload>
|
|
1177
|
+
}
|
|
1178
|
+
findMany: {
|
|
1179
|
+
args: Prisma.InboxFindManyArgs<ExtArgs>
|
|
1180
|
+
result: $Utils.PayloadToResult<Prisma.$InboxPayload>[]
|
|
1181
|
+
}
|
|
1182
|
+
create: {
|
|
1183
|
+
args: Prisma.InboxCreateArgs<ExtArgs>
|
|
1184
|
+
result: $Utils.PayloadToResult<Prisma.$InboxPayload>
|
|
1185
|
+
}
|
|
1186
|
+
createMany: {
|
|
1187
|
+
args: Prisma.InboxCreateManyArgs<ExtArgs>
|
|
1188
|
+
result: BatchPayload
|
|
1189
|
+
}
|
|
1190
|
+
createManyAndReturn: {
|
|
1191
|
+
args: Prisma.InboxCreateManyAndReturnArgs<ExtArgs>
|
|
1192
|
+
result: $Utils.PayloadToResult<Prisma.$InboxPayload>[]
|
|
1193
|
+
}
|
|
1194
|
+
delete: {
|
|
1195
|
+
args: Prisma.InboxDeleteArgs<ExtArgs>
|
|
1196
|
+
result: $Utils.PayloadToResult<Prisma.$InboxPayload>
|
|
1197
|
+
}
|
|
1198
|
+
update: {
|
|
1199
|
+
args: Prisma.InboxUpdateArgs<ExtArgs>
|
|
1200
|
+
result: $Utils.PayloadToResult<Prisma.$InboxPayload>
|
|
1201
|
+
}
|
|
1202
|
+
deleteMany: {
|
|
1203
|
+
args: Prisma.InboxDeleteManyArgs<ExtArgs>
|
|
1204
|
+
result: BatchPayload
|
|
1205
|
+
}
|
|
1206
|
+
updateMany: {
|
|
1207
|
+
args: Prisma.InboxUpdateManyArgs<ExtArgs>
|
|
1208
|
+
result: BatchPayload
|
|
1209
|
+
}
|
|
1210
|
+
updateManyAndReturn: {
|
|
1211
|
+
args: Prisma.InboxUpdateManyAndReturnArgs<ExtArgs>
|
|
1212
|
+
result: $Utils.PayloadToResult<Prisma.$InboxPayload>[]
|
|
1213
|
+
}
|
|
1214
|
+
upsert: {
|
|
1215
|
+
args: Prisma.InboxUpsertArgs<ExtArgs>
|
|
1216
|
+
result: $Utils.PayloadToResult<Prisma.$InboxPayload>
|
|
1217
|
+
}
|
|
1218
|
+
aggregate: {
|
|
1219
|
+
args: Prisma.InboxAggregateArgs<ExtArgs>
|
|
1220
|
+
result: $Utils.Optional<AggregateInbox>
|
|
1221
|
+
}
|
|
1222
|
+
groupBy: {
|
|
1223
|
+
args: Prisma.InboxGroupByArgs<ExtArgs>
|
|
1224
|
+
result: $Utils.Optional<InboxGroupByOutputType>[]
|
|
1225
|
+
}
|
|
1226
|
+
count: {
|
|
1227
|
+
args: Prisma.InboxCountArgs<ExtArgs>
|
|
1228
|
+
result: $Utils.Optional<InboxCountAggregateOutputType> | number
|
|
1229
|
+
}
|
|
1230
|
+
}
|
|
1231
|
+
}
|
|
1142
1232
|
}
|
|
1143
1233
|
} & {
|
|
1144
1234
|
other: {
|
|
@@ -1239,6 +1329,7 @@ export namespace Prisma {
|
|
|
1239
1329
|
inventoryItem?: InventoryItemOmit
|
|
1240
1330
|
inventoryReservation?: InventoryReservationOmit
|
|
1241
1331
|
inventoryLedger?: InventoryLedgerOmit
|
|
1332
|
+
inbox?: InboxOmit
|
|
1242
1333
|
}
|
|
1243
1334
|
|
|
1244
1335
|
/* Types for Logging */
|
|
@@ -2584,8 +2675,9 @@ export namespace Prisma {
|
|
|
2584
2675
|
|
|
2585
2676
|
export type InventoryItemMinAggregateOutputType = {
|
|
2586
2677
|
id: string | null
|
|
2678
|
+
productId: string | null
|
|
2587
2679
|
warehouseId: string | null
|
|
2588
|
-
|
|
2680
|
+
skuId: string | null
|
|
2589
2681
|
quantityOnHand: number | null
|
|
2590
2682
|
quantityReserved: number | null
|
|
2591
2683
|
version: number | null
|
|
@@ -2595,8 +2687,9 @@ export namespace Prisma {
|
|
|
2595
2687
|
|
|
2596
2688
|
export type InventoryItemMaxAggregateOutputType = {
|
|
2597
2689
|
id: string | null
|
|
2690
|
+
productId: string | null
|
|
2598
2691
|
warehouseId: string | null
|
|
2599
|
-
|
|
2692
|
+
skuId: string | null
|
|
2600
2693
|
quantityOnHand: number | null
|
|
2601
2694
|
quantityReserved: number | null
|
|
2602
2695
|
version: number | null
|
|
@@ -2606,8 +2699,9 @@ export namespace Prisma {
|
|
|
2606
2699
|
|
|
2607
2700
|
export type InventoryItemCountAggregateOutputType = {
|
|
2608
2701
|
id: number
|
|
2702
|
+
productId: number
|
|
2609
2703
|
warehouseId: number
|
|
2610
|
-
|
|
2704
|
+
skuId: number
|
|
2611
2705
|
quantityOnHand: number
|
|
2612
2706
|
quantityReserved: number
|
|
2613
2707
|
version: number
|
|
@@ -2631,8 +2725,9 @@ export namespace Prisma {
|
|
|
2631
2725
|
|
|
2632
2726
|
export type InventoryItemMinAggregateInputType = {
|
|
2633
2727
|
id?: true
|
|
2728
|
+
productId?: true
|
|
2634
2729
|
warehouseId?: true
|
|
2635
|
-
|
|
2730
|
+
skuId?: true
|
|
2636
2731
|
quantityOnHand?: true
|
|
2637
2732
|
quantityReserved?: true
|
|
2638
2733
|
version?: true
|
|
@@ -2642,8 +2737,9 @@ export namespace Prisma {
|
|
|
2642
2737
|
|
|
2643
2738
|
export type InventoryItemMaxAggregateInputType = {
|
|
2644
2739
|
id?: true
|
|
2740
|
+
productId?: true
|
|
2645
2741
|
warehouseId?: true
|
|
2646
|
-
|
|
2742
|
+
skuId?: true
|
|
2647
2743
|
quantityOnHand?: true
|
|
2648
2744
|
quantityReserved?: true
|
|
2649
2745
|
version?: true
|
|
@@ -2653,8 +2749,9 @@ export namespace Prisma {
|
|
|
2653
2749
|
|
|
2654
2750
|
export type InventoryItemCountAggregateInputType = {
|
|
2655
2751
|
id?: true
|
|
2752
|
+
productId?: true
|
|
2656
2753
|
warehouseId?: true
|
|
2657
|
-
|
|
2754
|
+
skuId?: true
|
|
2658
2755
|
quantityOnHand?: true
|
|
2659
2756
|
quantityReserved?: true
|
|
2660
2757
|
version?: true
|
|
@@ -2751,8 +2848,9 @@ export namespace Prisma {
|
|
|
2751
2848
|
|
|
2752
2849
|
export type InventoryItemGroupByOutputType = {
|
|
2753
2850
|
id: string
|
|
2851
|
+
productId: string
|
|
2754
2852
|
warehouseId: string
|
|
2755
|
-
|
|
2853
|
+
skuId: string
|
|
2756
2854
|
quantityOnHand: number
|
|
2757
2855
|
quantityReserved: number
|
|
2758
2856
|
version: number
|
|
@@ -2781,8 +2879,9 @@ export namespace Prisma {
|
|
|
2781
2879
|
|
|
2782
2880
|
export type InventoryItemSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
2783
2881
|
id?: boolean
|
|
2882
|
+
productId?: boolean
|
|
2784
2883
|
warehouseId?: boolean
|
|
2785
|
-
|
|
2884
|
+
skuId?: boolean
|
|
2786
2885
|
quantityOnHand?: boolean
|
|
2787
2886
|
quantityReserved?: boolean
|
|
2788
2887
|
version?: boolean
|
|
@@ -2793,8 +2892,9 @@ export namespace Prisma {
|
|
|
2793
2892
|
|
|
2794
2893
|
export type InventoryItemSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
2795
2894
|
id?: boolean
|
|
2895
|
+
productId?: boolean
|
|
2796
2896
|
warehouseId?: boolean
|
|
2797
|
-
|
|
2897
|
+
skuId?: boolean
|
|
2798
2898
|
quantityOnHand?: boolean
|
|
2799
2899
|
quantityReserved?: boolean
|
|
2800
2900
|
version?: boolean
|
|
@@ -2805,8 +2905,9 @@ export namespace Prisma {
|
|
|
2805
2905
|
|
|
2806
2906
|
export type InventoryItemSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
2807
2907
|
id?: boolean
|
|
2908
|
+
productId?: boolean
|
|
2808
2909
|
warehouseId?: boolean
|
|
2809
|
-
|
|
2910
|
+
skuId?: boolean
|
|
2810
2911
|
quantityOnHand?: boolean
|
|
2811
2912
|
quantityReserved?: boolean
|
|
2812
2913
|
version?: boolean
|
|
@@ -2817,8 +2918,9 @@ export namespace Prisma {
|
|
|
2817
2918
|
|
|
2818
2919
|
export type InventoryItemSelectScalar = {
|
|
2819
2920
|
id?: boolean
|
|
2921
|
+
productId?: boolean
|
|
2820
2922
|
warehouseId?: boolean
|
|
2821
|
-
|
|
2923
|
+
skuId?: boolean
|
|
2822
2924
|
quantityOnHand?: boolean
|
|
2823
2925
|
quantityReserved?: boolean
|
|
2824
2926
|
version?: boolean
|
|
@@ -2826,7 +2928,7 @@ export namespace Prisma {
|
|
|
2826
2928
|
updatedAt?: boolean
|
|
2827
2929
|
}
|
|
2828
2930
|
|
|
2829
|
-
export type InventoryItemOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "warehouseId" | "
|
|
2931
|
+
export type InventoryItemOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "productId" | "warehouseId" | "skuId" | "quantityOnHand" | "quantityReserved" | "version" | "createdAt" | "updatedAt", ExtArgs["result"]["inventoryItem"]>
|
|
2830
2932
|
export type InventoryItemInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
2831
2933
|
warehouse?: boolean | WarehouseDefaultArgs<ExtArgs>
|
|
2832
2934
|
}
|
|
@@ -2844,8 +2946,9 @@ export namespace Prisma {
|
|
|
2844
2946
|
}
|
|
2845
2947
|
scalars: $Extensions.GetPayloadResult<{
|
|
2846
2948
|
id: string
|
|
2949
|
+
productId: string
|
|
2847
2950
|
warehouseId: string
|
|
2848
|
-
|
|
2951
|
+
skuId: string
|
|
2849
2952
|
quantityOnHand: number
|
|
2850
2953
|
quantityReserved: number
|
|
2851
2954
|
version: number
|
|
@@ -3276,8 +3379,9 @@ export namespace Prisma {
|
|
|
3276
3379
|
*/
|
|
3277
3380
|
interface InventoryItemFieldRefs {
|
|
3278
3381
|
readonly id: FieldRef<"InventoryItem", 'String'>
|
|
3382
|
+
readonly productId: FieldRef<"InventoryItem", 'String'>
|
|
3279
3383
|
readonly warehouseId: FieldRef<"InventoryItem", 'String'>
|
|
3280
|
-
readonly
|
|
3384
|
+
readonly skuId: FieldRef<"InventoryItem", 'String'>
|
|
3281
3385
|
readonly quantityOnHand: FieldRef<"InventoryItem", 'Int'>
|
|
3282
3386
|
readonly quantityReserved: FieldRef<"InventoryItem", 'Int'>
|
|
3283
3387
|
readonly version: FieldRef<"InventoryItem", 'Int'>
|
|
@@ -4873,6 +4977,7 @@ export namespace Prisma {
|
|
|
4873
4977
|
referenceId: string | null
|
|
4874
4978
|
note: string | null
|
|
4875
4979
|
createdAt: Date | null
|
|
4980
|
+
updatedAt: Date | null
|
|
4876
4981
|
}
|
|
4877
4982
|
|
|
4878
4983
|
export type InventoryLedgerMaxAggregateOutputType = {
|
|
@@ -4885,6 +4990,7 @@ export namespace Prisma {
|
|
|
4885
4990
|
referenceId: string | null
|
|
4886
4991
|
note: string | null
|
|
4887
4992
|
createdAt: Date | null
|
|
4993
|
+
updatedAt: Date | null
|
|
4888
4994
|
}
|
|
4889
4995
|
|
|
4890
4996
|
export type InventoryLedgerCountAggregateOutputType = {
|
|
@@ -4897,6 +5003,7 @@ export namespace Prisma {
|
|
|
4897
5003
|
referenceId: number
|
|
4898
5004
|
note: number
|
|
4899
5005
|
createdAt: number
|
|
5006
|
+
updatedAt: number
|
|
4900
5007
|
_all: number
|
|
4901
5008
|
}
|
|
4902
5009
|
|
|
@@ -4921,6 +5028,7 @@ export namespace Prisma {
|
|
|
4921
5028
|
referenceId?: true
|
|
4922
5029
|
note?: true
|
|
4923
5030
|
createdAt?: true
|
|
5031
|
+
updatedAt?: true
|
|
4924
5032
|
}
|
|
4925
5033
|
|
|
4926
5034
|
export type InventoryLedgerMaxAggregateInputType = {
|
|
@@ -4933,6 +5041,7 @@ export namespace Prisma {
|
|
|
4933
5041
|
referenceId?: true
|
|
4934
5042
|
note?: true
|
|
4935
5043
|
createdAt?: true
|
|
5044
|
+
updatedAt?: true
|
|
4936
5045
|
}
|
|
4937
5046
|
|
|
4938
5047
|
export type InventoryLedgerCountAggregateInputType = {
|
|
@@ -4945,6 +5054,7 @@ export namespace Prisma {
|
|
|
4945
5054
|
referenceId?: true
|
|
4946
5055
|
note?: true
|
|
4947
5056
|
createdAt?: true
|
|
5057
|
+
updatedAt?: true
|
|
4948
5058
|
_all?: true
|
|
4949
5059
|
}
|
|
4950
5060
|
|
|
@@ -5044,6 +5154,7 @@ export namespace Prisma {
|
|
|
5044
5154
|
referenceId: string
|
|
5045
5155
|
note: string | null
|
|
5046
5156
|
createdAt: Date
|
|
5157
|
+
updatedAt: Date
|
|
5047
5158
|
_count: InventoryLedgerCountAggregateOutputType | null
|
|
5048
5159
|
_avg: InventoryLedgerAvgAggregateOutputType | null
|
|
5049
5160
|
_sum: InventoryLedgerSumAggregateOutputType | null
|
|
@@ -5075,6 +5186,7 @@ export namespace Prisma {
|
|
|
5075
5186
|
referenceId?: boolean
|
|
5076
5187
|
note?: boolean
|
|
5077
5188
|
createdAt?: boolean
|
|
5189
|
+
updatedAt?: boolean
|
|
5078
5190
|
warehouse?: boolean | WarehouseDefaultArgs<ExtArgs>
|
|
5079
5191
|
}, ExtArgs["result"]["inventoryLedger"]>
|
|
5080
5192
|
|
|
@@ -5088,6 +5200,7 @@ export namespace Prisma {
|
|
|
5088
5200
|
referenceId?: boolean
|
|
5089
5201
|
note?: boolean
|
|
5090
5202
|
createdAt?: boolean
|
|
5203
|
+
updatedAt?: boolean
|
|
5091
5204
|
warehouse?: boolean | WarehouseDefaultArgs<ExtArgs>
|
|
5092
5205
|
}, ExtArgs["result"]["inventoryLedger"]>
|
|
5093
5206
|
|
|
@@ -5101,6 +5214,7 @@ export namespace Prisma {
|
|
|
5101
5214
|
referenceId?: boolean
|
|
5102
5215
|
note?: boolean
|
|
5103
5216
|
createdAt?: boolean
|
|
5217
|
+
updatedAt?: boolean
|
|
5104
5218
|
warehouse?: boolean | WarehouseDefaultArgs<ExtArgs>
|
|
5105
5219
|
}, ExtArgs["result"]["inventoryLedger"]>
|
|
5106
5220
|
|
|
@@ -5114,9 +5228,10 @@ export namespace Prisma {
|
|
|
5114
5228
|
referenceId?: boolean
|
|
5115
5229
|
note?: boolean
|
|
5116
5230
|
createdAt?: boolean
|
|
5231
|
+
updatedAt?: boolean
|
|
5117
5232
|
}
|
|
5118
5233
|
|
|
5119
|
-
export type InventoryLedgerOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "warehouseId" | "sku" | "type" | "amount" | "balanceAfter" | "referenceId" | "note" | "createdAt", ExtArgs["result"]["inventoryLedger"]>
|
|
5234
|
+
export type InventoryLedgerOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "warehouseId" | "sku" | "type" | "amount" | "balanceAfter" | "referenceId" | "note" | "createdAt" | "updatedAt", ExtArgs["result"]["inventoryLedger"]>
|
|
5120
5235
|
export type InventoryLedgerInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
5121
5236
|
warehouse?: boolean | WarehouseDefaultArgs<ExtArgs>
|
|
5122
5237
|
}
|
|
@@ -5142,6 +5257,7 @@ export namespace Prisma {
|
|
|
5142
5257
|
referenceId: string
|
|
5143
5258
|
note: string | null
|
|
5144
5259
|
createdAt: Date
|
|
5260
|
+
updatedAt: Date
|
|
5145
5261
|
}, ExtArgs["result"]["inventoryLedger"]>
|
|
5146
5262
|
composites: {}
|
|
5147
5263
|
}
|
|
@@ -5575,6 +5691,7 @@ export namespace Prisma {
|
|
|
5575
5691
|
readonly referenceId: FieldRef<"InventoryLedger", 'String'>
|
|
5576
5692
|
readonly note: FieldRef<"InventoryLedger", 'String'>
|
|
5577
5693
|
readonly createdAt: FieldRef<"InventoryLedger", 'DateTime'>
|
|
5694
|
+
readonly updatedAt: FieldRef<"InventoryLedger", 'DateTime'>
|
|
5578
5695
|
}
|
|
5579
5696
|
|
|
5580
5697
|
|
|
@@ -5990,112 +6107,1222 @@ export namespace Prisma {
|
|
|
5990
6107
|
|
|
5991
6108
|
|
|
5992
6109
|
/**
|
|
5993
|
-
*
|
|
6110
|
+
* Model Inbox
|
|
5994
6111
|
*/
|
|
5995
6112
|
|
|
5996
|
-
export
|
|
5997
|
-
|
|
5998
|
-
|
|
5999
|
-
|
|
6000
|
-
|
|
6001
|
-
|
|
6113
|
+
export type AggregateInbox = {
|
|
6114
|
+
_count: InboxCountAggregateOutputType | null
|
|
6115
|
+
_avg: InboxAvgAggregateOutputType | null
|
|
6116
|
+
_sum: InboxSumAggregateOutputType | null
|
|
6117
|
+
_min: InboxMinAggregateOutputType | null
|
|
6118
|
+
_max: InboxMaxAggregateOutputType | null
|
|
6119
|
+
}
|
|
6002
6120
|
|
|
6003
|
-
export type
|
|
6121
|
+
export type InboxAvgAggregateOutputType = {
|
|
6122
|
+
retryCount: number | null
|
|
6123
|
+
}
|
|
6004
6124
|
|
|
6125
|
+
export type InboxSumAggregateOutputType = {
|
|
6126
|
+
retryCount: number | null
|
|
6127
|
+
}
|
|
6005
6128
|
|
|
6006
|
-
export
|
|
6007
|
-
|
|
6008
|
-
|
|
6009
|
-
|
|
6010
|
-
|
|
6011
|
-
|
|
6012
|
-
|
|
6013
|
-
|
|
6014
|
-
|
|
6015
|
-
|
|
6016
|
-
updatedAt: 'updatedAt'
|
|
6017
|
-
};
|
|
6129
|
+
export type InboxMinAggregateOutputType = {
|
|
6130
|
+
eventId: string | null
|
|
6131
|
+
eventType: string | null
|
|
6132
|
+
status: string | null
|
|
6133
|
+
retryCount: number | null
|
|
6134
|
+
lastError: string | null
|
|
6135
|
+
createdAt: Date | null
|
|
6136
|
+
updatedAt: Date | null
|
|
6137
|
+
processedAt: Date | null
|
|
6138
|
+
}
|
|
6018
6139
|
|
|
6019
|
-
export type
|
|
6140
|
+
export type InboxMaxAggregateOutputType = {
|
|
6141
|
+
eventId: string | null
|
|
6142
|
+
eventType: string | null
|
|
6143
|
+
status: string | null
|
|
6144
|
+
retryCount: number | null
|
|
6145
|
+
lastError: string | null
|
|
6146
|
+
createdAt: Date | null
|
|
6147
|
+
updatedAt: Date | null
|
|
6148
|
+
processedAt: Date | null
|
|
6149
|
+
}
|
|
6020
6150
|
|
|
6151
|
+
export type InboxCountAggregateOutputType = {
|
|
6152
|
+
eventId: number
|
|
6153
|
+
eventType: number
|
|
6154
|
+
payload: number
|
|
6155
|
+
status: number
|
|
6156
|
+
retryCount: number
|
|
6157
|
+
lastError: number
|
|
6158
|
+
createdAt: number
|
|
6159
|
+
updatedAt: number
|
|
6160
|
+
processedAt: number
|
|
6161
|
+
_all: number
|
|
6162
|
+
}
|
|
6021
6163
|
|
|
6022
|
-
export const InventoryItemScalarFieldEnum: {
|
|
6023
|
-
id: 'id',
|
|
6024
|
-
warehouseId: 'warehouseId',
|
|
6025
|
-
sku: 'sku',
|
|
6026
|
-
quantityOnHand: 'quantityOnHand',
|
|
6027
|
-
quantityReserved: 'quantityReserved',
|
|
6028
|
-
version: 'version',
|
|
6029
|
-
createdAt: 'createdAt',
|
|
6030
|
-
updatedAt: 'updatedAt'
|
|
6031
|
-
};
|
|
6032
6164
|
|
|
6033
|
-
export type
|
|
6165
|
+
export type InboxAvgAggregateInputType = {
|
|
6166
|
+
retryCount?: true
|
|
6167
|
+
}
|
|
6034
6168
|
|
|
6169
|
+
export type InboxSumAggregateInputType = {
|
|
6170
|
+
retryCount?: true
|
|
6171
|
+
}
|
|
6035
6172
|
|
|
6036
|
-
export
|
|
6037
|
-
|
|
6038
|
-
|
|
6039
|
-
|
|
6040
|
-
|
|
6041
|
-
|
|
6042
|
-
|
|
6043
|
-
|
|
6044
|
-
|
|
6045
|
-
|
|
6046
|
-
};
|
|
6173
|
+
export type InboxMinAggregateInputType = {
|
|
6174
|
+
eventId?: true
|
|
6175
|
+
eventType?: true
|
|
6176
|
+
status?: true
|
|
6177
|
+
retryCount?: true
|
|
6178
|
+
lastError?: true
|
|
6179
|
+
createdAt?: true
|
|
6180
|
+
updatedAt?: true
|
|
6181
|
+
processedAt?: true
|
|
6182
|
+
}
|
|
6047
6183
|
|
|
6048
|
-
export type
|
|
6184
|
+
export type InboxMaxAggregateInputType = {
|
|
6185
|
+
eventId?: true
|
|
6186
|
+
eventType?: true
|
|
6187
|
+
status?: true
|
|
6188
|
+
retryCount?: true
|
|
6189
|
+
lastError?: true
|
|
6190
|
+
createdAt?: true
|
|
6191
|
+
updatedAt?: true
|
|
6192
|
+
processedAt?: true
|
|
6193
|
+
}
|
|
6049
6194
|
|
|
6195
|
+
export type InboxCountAggregateInputType = {
|
|
6196
|
+
eventId?: true
|
|
6197
|
+
eventType?: true
|
|
6198
|
+
payload?: true
|
|
6199
|
+
status?: true
|
|
6200
|
+
retryCount?: true
|
|
6201
|
+
lastError?: true
|
|
6202
|
+
createdAt?: true
|
|
6203
|
+
updatedAt?: true
|
|
6204
|
+
processedAt?: true
|
|
6205
|
+
_all?: true
|
|
6206
|
+
}
|
|
6050
6207
|
|
|
6051
|
-
export
|
|
6052
|
-
|
|
6053
|
-
|
|
6054
|
-
|
|
6055
|
-
|
|
6056
|
-
|
|
6057
|
-
|
|
6058
|
-
|
|
6059
|
-
|
|
6060
|
-
|
|
6061
|
-
|
|
6208
|
+
export type InboxAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
6209
|
+
/**
|
|
6210
|
+
* Filter which Inbox to aggregate.
|
|
6211
|
+
*/
|
|
6212
|
+
where?: InboxWhereInput
|
|
6213
|
+
/**
|
|
6214
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
6215
|
+
*
|
|
6216
|
+
* Determine the order of Inboxes to fetch.
|
|
6217
|
+
*/
|
|
6218
|
+
orderBy?: InboxOrderByWithRelationInput | InboxOrderByWithRelationInput[]
|
|
6219
|
+
/**
|
|
6220
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
6221
|
+
*
|
|
6222
|
+
* Sets the start position
|
|
6223
|
+
*/
|
|
6224
|
+
cursor?: InboxWhereUniqueInput
|
|
6225
|
+
/**
|
|
6226
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
6227
|
+
*
|
|
6228
|
+
* Take `±n` Inboxes from the position of the cursor.
|
|
6229
|
+
*/
|
|
6230
|
+
take?: number
|
|
6231
|
+
/**
|
|
6232
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
6233
|
+
*
|
|
6234
|
+
* Skip the first `n` Inboxes.
|
|
6235
|
+
*/
|
|
6236
|
+
skip?: number
|
|
6237
|
+
/**
|
|
6238
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
6239
|
+
*
|
|
6240
|
+
* Count returned Inboxes
|
|
6241
|
+
**/
|
|
6242
|
+
_count?: true | InboxCountAggregateInputType
|
|
6243
|
+
/**
|
|
6244
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
6245
|
+
*
|
|
6246
|
+
* Select which fields to average
|
|
6247
|
+
**/
|
|
6248
|
+
_avg?: InboxAvgAggregateInputType
|
|
6249
|
+
/**
|
|
6250
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
6251
|
+
*
|
|
6252
|
+
* Select which fields to sum
|
|
6253
|
+
**/
|
|
6254
|
+
_sum?: InboxSumAggregateInputType
|
|
6255
|
+
/**
|
|
6256
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
6257
|
+
*
|
|
6258
|
+
* Select which fields to find the minimum value
|
|
6259
|
+
**/
|
|
6260
|
+
_min?: InboxMinAggregateInputType
|
|
6261
|
+
/**
|
|
6262
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
6263
|
+
*
|
|
6264
|
+
* Select which fields to find the maximum value
|
|
6265
|
+
**/
|
|
6266
|
+
_max?: InboxMaxAggregateInputType
|
|
6267
|
+
}
|
|
6062
6268
|
|
|
6063
|
-
export type
|
|
6269
|
+
export type GetInboxAggregateType<T extends InboxAggregateArgs> = {
|
|
6270
|
+
[P in keyof T & keyof AggregateInbox]: P extends '_count' | 'count'
|
|
6271
|
+
? T[P] extends true
|
|
6272
|
+
? number
|
|
6273
|
+
: GetScalarType<T[P], AggregateInbox[P]>
|
|
6274
|
+
: GetScalarType<T[P], AggregateInbox[P]>
|
|
6275
|
+
}
|
|
6064
6276
|
|
|
6065
6277
|
|
|
6066
|
-
export const SortOrder: {
|
|
6067
|
-
asc: 'asc',
|
|
6068
|
-
desc: 'desc'
|
|
6069
|
-
};
|
|
6070
6278
|
|
|
6071
|
-
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]
|
|
6072
6279
|
|
|
6280
|
+
export type InboxGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
6281
|
+
where?: InboxWhereInput
|
|
6282
|
+
orderBy?: InboxOrderByWithAggregationInput | InboxOrderByWithAggregationInput[]
|
|
6283
|
+
by: InboxScalarFieldEnum[] | InboxScalarFieldEnum
|
|
6284
|
+
having?: InboxScalarWhereWithAggregatesInput
|
|
6285
|
+
take?: number
|
|
6286
|
+
skip?: number
|
|
6287
|
+
_count?: InboxCountAggregateInputType | true
|
|
6288
|
+
_avg?: InboxAvgAggregateInputType
|
|
6289
|
+
_sum?: InboxSumAggregateInputType
|
|
6290
|
+
_min?: InboxMinAggregateInputType
|
|
6291
|
+
_max?: InboxMaxAggregateInputType
|
|
6292
|
+
}
|
|
6073
6293
|
|
|
6074
|
-
export
|
|
6075
|
-
|
|
6076
|
-
|
|
6077
|
-
|
|
6294
|
+
export type InboxGroupByOutputType = {
|
|
6295
|
+
eventId: string
|
|
6296
|
+
eventType: string
|
|
6297
|
+
payload:unknown
|
|
6298
|
+
status: string
|
|
6299
|
+
retryCount: number
|
|
6300
|
+
lastError: string | null
|
|
6301
|
+
createdAt: Date
|
|
6302
|
+
updatedAt: Date
|
|
6303
|
+
processedAt: Date | null
|
|
6304
|
+
_count: InboxCountAggregateOutputType | null
|
|
6305
|
+
_avg: InboxAvgAggregateOutputType | null
|
|
6306
|
+
_sum: InboxSumAggregateOutputType | null
|
|
6307
|
+
_min: InboxMinAggregateOutputType | null
|
|
6308
|
+
_max: InboxMaxAggregateOutputType | null
|
|
6309
|
+
}
|
|
6078
6310
|
|
|
6079
|
-
|
|
6311
|
+
type GetInboxGroupByPayload<T extends InboxGroupByArgs> = Prisma.PrismaPromise<
|
|
6312
|
+
Array<
|
|
6313
|
+
PickEnumerable<InboxGroupByOutputType, T['by']> &
|
|
6314
|
+
{
|
|
6315
|
+
[P in ((keyof T) & (keyof InboxGroupByOutputType))]: P extends '_count'
|
|
6316
|
+
? T[P] extends boolean
|
|
6317
|
+
? number
|
|
6318
|
+
: GetScalarType<T[P], InboxGroupByOutputType[P]>
|
|
6319
|
+
: GetScalarType<T[P], InboxGroupByOutputType[P]>
|
|
6320
|
+
}
|
|
6321
|
+
>
|
|
6322
|
+
>
|
|
6080
6323
|
|
|
6081
6324
|
|
|
6082
|
-
export
|
|
6083
|
-
|
|
6084
|
-
|
|
6085
|
-
|
|
6325
|
+
export type InboxSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
6326
|
+
eventId?: boolean
|
|
6327
|
+
eventType?: boolean
|
|
6328
|
+
payload?: boolean
|
|
6329
|
+
status?: boolean
|
|
6330
|
+
retryCount?: boolean
|
|
6331
|
+
lastError?: boolean
|
|
6332
|
+
createdAt?: boolean
|
|
6333
|
+
updatedAt?: boolean
|
|
6334
|
+
processedAt?: boolean
|
|
6335
|
+
}, ExtArgs["result"]["inbox"]>
|
|
6086
6336
|
|
|
6087
|
-
export type
|
|
6337
|
+
export type InboxSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
6338
|
+
eventId?: boolean
|
|
6339
|
+
eventType?: boolean
|
|
6340
|
+
payload?: boolean
|
|
6341
|
+
status?: boolean
|
|
6342
|
+
retryCount?: boolean
|
|
6343
|
+
lastError?: boolean
|
|
6344
|
+
createdAt?: boolean
|
|
6345
|
+
updatedAt?: boolean
|
|
6346
|
+
processedAt?: boolean
|
|
6347
|
+
}, ExtArgs["result"]["inbox"]>
|
|
6088
6348
|
|
|
6349
|
+
export type InboxSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
6350
|
+
eventId?: boolean
|
|
6351
|
+
eventType?: boolean
|
|
6352
|
+
payload?: boolean
|
|
6353
|
+
status?: boolean
|
|
6354
|
+
retryCount?: boolean
|
|
6355
|
+
lastError?: boolean
|
|
6356
|
+
createdAt?: boolean
|
|
6357
|
+
updatedAt?: boolean
|
|
6358
|
+
processedAt?: boolean
|
|
6359
|
+
}, ExtArgs["result"]["inbox"]>
|
|
6089
6360
|
|
|
6090
|
-
|
|
6091
|
-
|
|
6092
|
-
|
|
6361
|
+
export type InboxSelectScalar = {
|
|
6362
|
+
eventId?: boolean
|
|
6363
|
+
eventType?: boolean
|
|
6364
|
+
payload?: boolean
|
|
6365
|
+
status?: boolean
|
|
6366
|
+
retryCount?: boolean
|
|
6367
|
+
lastError?: boolean
|
|
6368
|
+
createdAt?: boolean
|
|
6369
|
+
updatedAt?: boolean
|
|
6370
|
+
processedAt?: boolean
|
|
6371
|
+
}
|
|
6093
6372
|
|
|
6373
|
+
export type InboxOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"eventId" | "eventType" | "payload" | "status" | "retryCount" | "lastError" | "createdAt" | "updatedAt" | "processedAt", ExtArgs["result"]["inbox"]>
|
|
6094
6374
|
|
|
6095
|
-
|
|
6096
|
-
|
|
6097
|
-
|
|
6098
|
-
|
|
6375
|
+
export type $InboxPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
6376
|
+
name: "Inbox"
|
|
6377
|
+
objects: {}
|
|
6378
|
+
scalars: $Extensions.GetPayloadResult<{
|
|
6379
|
+
eventId: string
|
|
6380
|
+
eventType: string
|
|
6381
|
+
payload:unknown
|
|
6382
|
+
status: string
|
|
6383
|
+
retryCount: number
|
|
6384
|
+
lastError: string | null
|
|
6385
|
+
createdAt: Date
|
|
6386
|
+
updatedAt: Date
|
|
6387
|
+
processedAt: Date | null
|
|
6388
|
+
}, ExtArgs["result"]["inbox"]>
|
|
6389
|
+
composites: {}
|
|
6390
|
+
}
|
|
6391
|
+
|
|
6392
|
+
type InboxGetPayload<S extends boolean | null | undefined | InboxDefaultArgs> = $Result.GetResult<Prisma.$InboxPayload, S>
|
|
6393
|
+
|
|
6394
|
+
type InboxCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
6395
|
+
Omit<InboxFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
6396
|
+
select?: InboxCountAggregateInputType | true
|
|
6397
|
+
}
|
|
6398
|
+
|
|
6399
|
+
export interface InboxDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
6400
|
+
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Inbox'], meta: { name: 'Inbox' } }
|
|
6401
|
+
/**
|
|
6402
|
+
* Find zero or one Inbox that matches the filter.
|
|
6403
|
+
* @param {InboxFindUniqueArgs} args - Arguments to find a Inbox
|
|
6404
|
+
* @example
|
|
6405
|
+
* // Get one Inbox
|
|
6406
|
+
* const inbox = await prisma.inbox.findUnique({
|
|
6407
|
+
* where: {
|
|
6408
|
+
* // ... provide filter here
|
|
6409
|
+
* }
|
|
6410
|
+
* })
|
|
6411
|
+
*/
|
|
6412
|
+
findUnique<T extends InboxFindUniqueArgs>(args: SelectSubset<T, InboxFindUniqueArgs<ExtArgs>>): Prisma__InboxClient<$Result.GetResult<Prisma.$InboxPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
6413
|
+
|
|
6414
|
+
/**
|
|
6415
|
+
* Find one Inbox that matches the filter or throw an error with `error.code='P2025'`
|
|
6416
|
+
* if no matches were found.
|
|
6417
|
+
* @param {InboxFindUniqueOrThrowArgs} args - Arguments to find a Inbox
|
|
6418
|
+
* @example
|
|
6419
|
+
* // Get one Inbox
|
|
6420
|
+
* const inbox = await prisma.inbox.findUniqueOrThrow({
|
|
6421
|
+
* where: {
|
|
6422
|
+
* // ... provide filter here
|
|
6423
|
+
* }
|
|
6424
|
+
* })
|
|
6425
|
+
*/
|
|
6426
|
+
findUniqueOrThrow<T extends InboxFindUniqueOrThrowArgs>(args: SelectSubset<T, InboxFindUniqueOrThrowArgs<ExtArgs>>): Prisma__InboxClient<$Result.GetResult<Prisma.$InboxPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
6427
|
+
|
|
6428
|
+
/**
|
|
6429
|
+
* Find the first Inbox that matches the filter.
|
|
6430
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
6431
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
6432
|
+
* @param {InboxFindFirstArgs} args - Arguments to find a Inbox
|
|
6433
|
+
* @example
|
|
6434
|
+
* // Get one Inbox
|
|
6435
|
+
* const inbox = await prisma.inbox.findFirst({
|
|
6436
|
+
* where: {
|
|
6437
|
+
* // ... provide filter here
|
|
6438
|
+
* }
|
|
6439
|
+
* })
|
|
6440
|
+
*/
|
|
6441
|
+
findFirst<T extends InboxFindFirstArgs>(args?: SelectSubset<T, InboxFindFirstArgs<ExtArgs>>): Prisma__InboxClient<$Result.GetResult<Prisma.$InboxPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
6442
|
+
|
|
6443
|
+
/**
|
|
6444
|
+
* Find the first Inbox that matches the filter or
|
|
6445
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
6446
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
6447
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
6448
|
+
* @param {InboxFindFirstOrThrowArgs} args - Arguments to find a Inbox
|
|
6449
|
+
* @example
|
|
6450
|
+
* // Get one Inbox
|
|
6451
|
+
* const inbox = await prisma.inbox.findFirstOrThrow({
|
|
6452
|
+
* where: {
|
|
6453
|
+
* // ... provide filter here
|
|
6454
|
+
* }
|
|
6455
|
+
* })
|
|
6456
|
+
*/
|
|
6457
|
+
findFirstOrThrow<T extends InboxFindFirstOrThrowArgs>(args?: SelectSubset<T, InboxFindFirstOrThrowArgs<ExtArgs>>): Prisma__InboxClient<$Result.GetResult<Prisma.$InboxPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
6458
|
+
|
|
6459
|
+
/**
|
|
6460
|
+
* Find zero or more Inboxes that matches the filter.
|
|
6461
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
6462
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
6463
|
+
* @param {InboxFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
6464
|
+
* @example
|
|
6465
|
+
* // Get all Inboxes
|
|
6466
|
+
* const inboxes = await prisma.inbox.findMany()
|
|
6467
|
+
*
|
|
6468
|
+
* // Get first 10 Inboxes
|
|
6469
|
+
* const inboxes = await prisma.inbox.findMany({ take: 10 })
|
|
6470
|
+
*
|
|
6471
|
+
* // Only select the `eventId`
|
|
6472
|
+
* const inboxWithEventIdOnly = await prisma.inbox.findMany({ select: { eventId: true } })
|
|
6473
|
+
*
|
|
6474
|
+
*/
|
|
6475
|
+
findMany<T extends InboxFindManyArgs>(args?: SelectSubset<T, InboxFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$InboxPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
6476
|
+
|
|
6477
|
+
/**
|
|
6478
|
+
* Create a Inbox.
|
|
6479
|
+
* @param {InboxCreateArgs} args - Arguments to create a Inbox.
|
|
6480
|
+
* @example
|
|
6481
|
+
* // Create one Inbox
|
|
6482
|
+
* const Inbox = await prisma.inbox.create({
|
|
6483
|
+
* data: {
|
|
6484
|
+
* // ... data to create a Inbox
|
|
6485
|
+
* }
|
|
6486
|
+
* })
|
|
6487
|
+
*
|
|
6488
|
+
*/
|
|
6489
|
+
create<T extends InboxCreateArgs>(args: SelectSubset<T, InboxCreateArgs<ExtArgs>>): Prisma__InboxClient<$Result.GetResult<Prisma.$InboxPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
6490
|
+
|
|
6491
|
+
/**
|
|
6492
|
+
* Create many Inboxes.
|
|
6493
|
+
* @param {InboxCreateManyArgs} args - Arguments to create many Inboxes.
|
|
6494
|
+
* @example
|
|
6495
|
+
* // Create many Inboxes
|
|
6496
|
+
* const inbox = await prisma.inbox.createMany({
|
|
6497
|
+
* data: [
|
|
6498
|
+
* // ... provide data here
|
|
6499
|
+
* ]
|
|
6500
|
+
* })
|
|
6501
|
+
*
|
|
6502
|
+
*/
|
|
6503
|
+
createMany<T extends InboxCreateManyArgs>(args?: SelectSubset<T, InboxCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
6504
|
+
|
|
6505
|
+
/**
|
|
6506
|
+
* Create many Inboxes and returns the data saved in the database.
|
|
6507
|
+
* @param {InboxCreateManyAndReturnArgs} args - Arguments to create many Inboxes.
|
|
6508
|
+
* @example
|
|
6509
|
+
* // Create many Inboxes
|
|
6510
|
+
* const inbox = await prisma.inbox.createManyAndReturn({
|
|
6511
|
+
* data: [
|
|
6512
|
+
* // ... provide data here
|
|
6513
|
+
* ]
|
|
6514
|
+
* })
|
|
6515
|
+
*
|
|
6516
|
+
* // Create many Inboxes and only return the `eventId`
|
|
6517
|
+
* const inboxWithEventIdOnly = await prisma.inbox.createManyAndReturn({
|
|
6518
|
+
* select: { eventId: true },
|
|
6519
|
+
* data: [
|
|
6520
|
+
* // ... provide data here
|
|
6521
|
+
* ]
|
|
6522
|
+
* })
|
|
6523
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
6524
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
6525
|
+
*
|
|
6526
|
+
*/
|
|
6527
|
+
createManyAndReturn<T extends InboxCreateManyAndReturnArgs>(args?: SelectSubset<T, InboxCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$InboxPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
6528
|
+
|
|
6529
|
+
/**
|
|
6530
|
+
* Delete a Inbox.
|
|
6531
|
+
* @param {InboxDeleteArgs} args - Arguments to delete one Inbox.
|
|
6532
|
+
* @example
|
|
6533
|
+
* // Delete one Inbox
|
|
6534
|
+
* const Inbox = await prisma.inbox.delete({
|
|
6535
|
+
* where: {
|
|
6536
|
+
* // ... filter to delete one Inbox
|
|
6537
|
+
* }
|
|
6538
|
+
* })
|
|
6539
|
+
*
|
|
6540
|
+
*/
|
|
6541
|
+
delete<T extends InboxDeleteArgs>(args: SelectSubset<T, InboxDeleteArgs<ExtArgs>>): Prisma__InboxClient<$Result.GetResult<Prisma.$InboxPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
6542
|
+
|
|
6543
|
+
/**
|
|
6544
|
+
* Update one Inbox.
|
|
6545
|
+
* @param {InboxUpdateArgs} args - Arguments to update one Inbox.
|
|
6546
|
+
* @example
|
|
6547
|
+
* // Update one Inbox
|
|
6548
|
+
* const inbox = await prisma.inbox.update({
|
|
6549
|
+
* where: {
|
|
6550
|
+
* // ... provide filter here
|
|
6551
|
+
* },
|
|
6552
|
+
* data: {
|
|
6553
|
+
* // ... provide data here
|
|
6554
|
+
* }
|
|
6555
|
+
* })
|
|
6556
|
+
*
|
|
6557
|
+
*/
|
|
6558
|
+
update<T extends InboxUpdateArgs>(args: SelectSubset<T, InboxUpdateArgs<ExtArgs>>): Prisma__InboxClient<$Result.GetResult<Prisma.$InboxPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
6559
|
+
|
|
6560
|
+
/**
|
|
6561
|
+
* Delete zero or more Inboxes.
|
|
6562
|
+
* @param {InboxDeleteManyArgs} args - Arguments to filter Inboxes to delete.
|
|
6563
|
+
* @example
|
|
6564
|
+
* // Delete a few Inboxes
|
|
6565
|
+
* const { count } = await prisma.inbox.deleteMany({
|
|
6566
|
+
* where: {
|
|
6567
|
+
* // ... provide filter here
|
|
6568
|
+
* }
|
|
6569
|
+
* })
|
|
6570
|
+
*
|
|
6571
|
+
*/
|
|
6572
|
+
deleteMany<T extends InboxDeleteManyArgs>(args?: SelectSubset<T, InboxDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
6573
|
+
|
|
6574
|
+
/**
|
|
6575
|
+
* Update zero or more Inboxes.
|
|
6576
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
6577
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
6578
|
+
* @param {InboxUpdateManyArgs} args - Arguments to update one or more rows.
|
|
6579
|
+
* @example
|
|
6580
|
+
* // Update many Inboxes
|
|
6581
|
+
* const inbox = await prisma.inbox.updateMany({
|
|
6582
|
+
* where: {
|
|
6583
|
+
* // ... provide filter here
|
|
6584
|
+
* },
|
|
6585
|
+
* data: {
|
|
6586
|
+
* // ... provide data here
|
|
6587
|
+
* }
|
|
6588
|
+
* })
|
|
6589
|
+
*
|
|
6590
|
+
*/
|
|
6591
|
+
updateMany<T extends InboxUpdateManyArgs>(args: SelectSubset<T, InboxUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
6592
|
+
|
|
6593
|
+
/**
|
|
6594
|
+
* Update zero or more Inboxes and returns the data updated in the database.
|
|
6595
|
+
* @param {InboxUpdateManyAndReturnArgs} args - Arguments to update many Inboxes.
|
|
6596
|
+
* @example
|
|
6597
|
+
* // Update many Inboxes
|
|
6598
|
+
* const inbox = await prisma.inbox.updateManyAndReturn({
|
|
6599
|
+
* where: {
|
|
6600
|
+
* // ... provide filter here
|
|
6601
|
+
* },
|
|
6602
|
+
* data: [
|
|
6603
|
+
* // ... provide data here
|
|
6604
|
+
* ]
|
|
6605
|
+
* })
|
|
6606
|
+
*
|
|
6607
|
+
* // Update zero or more Inboxes and only return the `eventId`
|
|
6608
|
+
* const inboxWithEventIdOnly = await prisma.inbox.updateManyAndReturn({
|
|
6609
|
+
* select: { eventId: true },
|
|
6610
|
+
* where: {
|
|
6611
|
+
* // ... provide filter here
|
|
6612
|
+
* },
|
|
6613
|
+
* data: [
|
|
6614
|
+
* // ... provide data here
|
|
6615
|
+
* ]
|
|
6616
|
+
* })
|
|
6617
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
6618
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
6619
|
+
*
|
|
6620
|
+
*/
|
|
6621
|
+
updateManyAndReturn<T extends InboxUpdateManyAndReturnArgs>(args: SelectSubset<T, InboxUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$InboxPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
6622
|
+
|
|
6623
|
+
/**
|
|
6624
|
+
* Create or update one Inbox.
|
|
6625
|
+
* @param {InboxUpsertArgs} args - Arguments to update or create a Inbox.
|
|
6626
|
+
* @example
|
|
6627
|
+
* // Update or create a Inbox
|
|
6628
|
+
* const inbox = await prisma.inbox.upsert({
|
|
6629
|
+
* create: {
|
|
6630
|
+
* // ... data to create a Inbox
|
|
6631
|
+
* },
|
|
6632
|
+
* update: {
|
|
6633
|
+
* // ... in case it already exists, update
|
|
6634
|
+
* },
|
|
6635
|
+
* where: {
|
|
6636
|
+
* // ... the filter for the Inbox we want to update
|
|
6637
|
+
* }
|
|
6638
|
+
* })
|
|
6639
|
+
*/
|
|
6640
|
+
upsert<T extends InboxUpsertArgs>(args: SelectSubset<T, InboxUpsertArgs<ExtArgs>>): Prisma__InboxClient<$Result.GetResult<Prisma.$InboxPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
6641
|
+
|
|
6642
|
+
|
|
6643
|
+
/**
|
|
6644
|
+
* Count the number of Inboxes.
|
|
6645
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
6646
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
6647
|
+
* @param {InboxCountArgs} args - Arguments to filter Inboxes to count.
|
|
6648
|
+
* @example
|
|
6649
|
+
* // Count the number of Inboxes
|
|
6650
|
+
* const count = await prisma.inbox.count({
|
|
6651
|
+
* where: {
|
|
6652
|
+
* // ... the filter for the Inboxes we want to count
|
|
6653
|
+
* }
|
|
6654
|
+
* })
|
|
6655
|
+
**/
|
|
6656
|
+
count<T extends InboxCountArgs>(
|
|
6657
|
+
args?: Subset<T, InboxCountArgs>,
|
|
6658
|
+
): Prisma.PrismaPromise<
|
|
6659
|
+
T extends $Utils.Record<'select', any>
|
|
6660
|
+
? T['select'] extends true
|
|
6661
|
+
? number
|
|
6662
|
+
: GetScalarType<T['select'], InboxCountAggregateOutputType>
|
|
6663
|
+
: number
|
|
6664
|
+
>
|
|
6665
|
+
|
|
6666
|
+
/**
|
|
6667
|
+
* Allows you to perform aggregations operations on a Inbox.
|
|
6668
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
6669
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
6670
|
+
* @param {InboxAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
6671
|
+
* @example
|
|
6672
|
+
* // Ordered by age ascending
|
|
6673
|
+
* // Where email contains prisma.io
|
|
6674
|
+
* // Limited to the 10 users
|
|
6675
|
+
* const aggregations = await prisma.user.aggregate({
|
|
6676
|
+
* _avg: {
|
|
6677
|
+
* age: true,
|
|
6678
|
+
* },
|
|
6679
|
+
* where: {
|
|
6680
|
+
* email: {
|
|
6681
|
+
* contains: "prisma.io",
|
|
6682
|
+
* },
|
|
6683
|
+
* },
|
|
6684
|
+
* orderBy: {
|
|
6685
|
+
* age: "asc",
|
|
6686
|
+
* },
|
|
6687
|
+
* take: 10,
|
|
6688
|
+
* })
|
|
6689
|
+
**/
|
|
6690
|
+
aggregate<T extends InboxAggregateArgs>(args: Subset<T, InboxAggregateArgs>): Prisma.PrismaPromise<GetInboxAggregateType<T>>
|
|
6691
|
+
|
|
6692
|
+
/**
|
|
6693
|
+
* Group by Inbox.
|
|
6694
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
6695
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
6696
|
+
* @param {InboxGroupByArgs} args - Group by arguments.
|
|
6697
|
+
* @example
|
|
6698
|
+
* // Group by city, order by createdAt, get count
|
|
6699
|
+
* const result = await prisma.user.groupBy({
|
|
6700
|
+
* by: ['city', 'createdAt'],
|
|
6701
|
+
* orderBy: {
|
|
6702
|
+
* createdAt: true
|
|
6703
|
+
* },
|
|
6704
|
+
* _count: {
|
|
6705
|
+
* _all: true
|
|
6706
|
+
* },
|
|
6707
|
+
* })
|
|
6708
|
+
*
|
|
6709
|
+
**/
|
|
6710
|
+
groupBy<
|
|
6711
|
+
T extends InboxGroupByArgs,
|
|
6712
|
+
HasSelectOrTake extends Or<
|
|
6713
|
+
Extends<'skip', Keys<T>>,
|
|
6714
|
+
Extends<'take', Keys<T>>
|
|
6715
|
+
>,
|
|
6716
|
+
OrderByArg extends True extends HasSelectOrTake
|
|
6717
|
+
? { orderBy: InboxGroupByArgs['orderBy'] }
|
|
6718
|
+
: { orderBy?: InboxGroupByArgs['orderBy'] },
|
|
6719
|
+
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
6720
|
+
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
6721
|
+
ByValid extends Has<ByFields, OrderFields>,
|
|
6722
|
+
HavingFields extends GetHavingFields<T['having']>,
|
|
6723
|
+
HavingValid extends Has<ByFields, HavingFields>,
|
|
6724
|
+
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
6725
|
+
InputErrors extends ByEmpty extends True
|
|
6726
|
+
? `Error: "by" must not be empty.`
|
|
6727
|
+
: HavingValid extends False
|
|
6728
|
+
? {
|
|
6729
|
+
[P in HavingFields]: P extends ByFields
|
|
6730
|
+
? never
|
|
6731
|
+
: P extends string
|
|
6732
|
+
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
6733
|
+
: [
|
|
6734
|
+
Error,
|
|
6735
|
+
'Field ',
|
|
6736
|
+
P,
|
|
6737
|
+
` in "having" needs to be provided in "by"`,
|
|
6738
|
+
]
|
|
6739
|
+
}[HavingFields]
|
|
6740
|
+
: 'take' extends Keys<T>
|
|
6741
|
+
? 'orderBy' extends Keys<T>
|
|
6742
|
+
? ByValid extends True
|
|
6743
|
+
? {}
|
|
6744
|
+
: {
|
|
6745
|
+
[P in OrderFields]: P extends ByFields
|
|
6746
|
+
? never
|
|
6747
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
6748
|
+
}[OrderFields]
|
|
6749
|
+
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
6750
|
+
: 'skip' extends Keys<T>
|
|
6751
|
+
? 'orderBy' extends Keys<T>
|
|
6752
|
+
? ByValid extends True
|
|
6753
|
+
? {}
|
|
6754
|
+
: {
|
|
6755
|
+
[P in OrderFields]: P extends ByFields
|
|
6756
|
+
? never
|
|
6757
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
6758
|
+
}[OrderFields]
|
|
6759
|
+
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
6760
|
+
: ByValid extends True
|
|
6761
|
+
? {}
|
|
6762
|
+
: {
|
|
6763
|
+
[P in OrderFields]: P extends ByFields
|
|
6764
|
+
? never
|
|
6765
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
6766
|
+
}[OrderFields]
|
|
6767
|
+
>(args: SubsetIntersection<T, InboxGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetInboxGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
6768
|
+
/**
|
|
6769
|
+
* Fields of the Inbox model
|
|
6770
|
+
*/
|
|
6771
|
+
readonly fields: InboxFieldRefs;
|
|
6772
|
+
}
|
|
6773
|
+
|
|
6774
|
+
/**
|
|
6775
|
+
* The delegate class that acts as a "Promise-like" for Inbox.
|
|
6776
|
+
* Why is this prefixed with `Prisma__`?
|
|
6777
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
6778
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
6779
|
+
*/
|
|
6780
|
+
export interface Prisma__InboxClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
6781
|
+
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
6782
|
+
/**
|
|
6783
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
6784
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
6785
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
6786
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
6787
|
+
*/
|
|
6788
|
+
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
|
|
6789
|
+
/**
|
|
6790
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
6791
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
6792
|
+
* @returns A Promise for the completion of the callback.
|
|
6793
|
+
*/
|
|
6794
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
6795
|
+
/**
|
|
6796
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
6797
|
+
* resolved value cannot be modified from the callback.
|
|
6798
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
6799
|
+
* @returns A Promise for the completion of the callback.
|
|
6800
|
+
*/
|
|
6801
|
+
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
6802
|
+
}
|
|
6803
|
+
|
|
6804
|
+
|
|
6805
|
+
|
|
6806
|
+
|
|
6807
|
+
/**
|
|
6808
|
+
* Fields of the Inbox model
|
|
6809
|
+
*/
|
|
6810
|
+
interface InboxFieldRefs {
|
|
6811
|
+
readonly eventId: FieldRef<"Inbox", 'String'>
|
|
6812
|
+
readonly eventType: FieldRef<"Inbox", 'String'>
|
|
6813
|
+
readonly payload: FieldRef<"Inbox", 'Json'>
|
|
6814
|
+
readonly status: FieldRef<"Inbox", 'String'>
|
|
6815
|
+
readonly retryCount: FieldRef<"Inbox", 'Int'>
|
|
6816
|
+
readonly lastError: FieldRef<"Inbox", 'String'>
|
|
6817
|
+
readonly createdAt: FieldRef<"Inbox", 'DateTime'>
|
|
6818
|
+
readonly updatedAt: FieldRef<"Inbox", 'DateTime'>
|
|
6819
|
+
readonly processedAt: FieldRef<"Inbox", 'DateTime'>
|
|
6820
|
+
}
|
|
6821
|
+
|
|
6822
|
+
|
|
6823
|
+
// Custom InputTypes
|
|
6824
|
+
/**
|
|
6825
|
+
* Inbox findUnique
|
|
6826
|
+
*/
|
|
6827
|
+
export type InboxFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
6828
|
+
/**
|
|
6829
|
+
* Select specific fields to fetch from the Inbox
|
|
6830
|
+
*/
|
|
6831
|
+
select?: InboxSelect<ExtArgs> | null
|
|
6832
|
+
/**
|
|
6833
|
+
* Omit specific fields from the Inbox
|
|
6834
|
+
*/
|
|
6835
|
+
omit?: InboxOmit<ExtArgs> | null
|
|
6836
|
+
/**
|
|
6837
|
+
* Filter, which Inbox to fetch.
|
|
6838
|
+
*/
|
|
6839
|
+
where: InboxWhereUniqueInput
|
|
6840
|
+
}
|
|
6841
|
+
|
|
6842
|
+
/**
|
|
6843
|
+
* Inbox findUniqueOrThrow
|
|
6844
|
+
*/
|
|
6845
|
+
export type InboxFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
6846
|
+
/**
|
|
6847
|
+
* Select specific fields to fetch from the Inbox
|
|
6848
|
+
*/
|
|
6849
|
+
select?: InboxSelect<ExtArgs> | null
|
|
6850
|
+
/**
|
|
6851
|
+
* Omit specific fields from the Inbox
|
|
6852
|
+
*/
|
|
6853
|
+
omit?: InboxOmit<ExtArgs> | null
|
|
6854
|
+
/**
|
|
6855
|
+
* Filter, which Inbox to fetch.
|
|
6856
|
+
*/
|
|
6857
|
+
where: InboxWhereUniqueInput
|
|
6858
|
+
}
|
|
6859
|
+
|
|
6860
|
+
/**
|
|
6861
|
+
* Inbox findFirst
|
|
6862
|
+
*/
|
|
6863
|
+
export type InboxFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
6864
|
+
/**
|
|
6865
|
+
* Select specific fields to fetch from the Inbox
|
|
6866
|
+
*/
|
|
6867
|
+
select?: InboxSelect<ExtArgs> | null
|
|
6868
|
+
/**
|
|
6869
|
+
* Omit specific fields from the Inbox
|
|
6870
|
+
*/
|
|
6871
|
+
omit?: InboxOmit<ExtArgs> | null
|
|
6872
|
+
/**
|
|
6873
|
+
* Filter, which Inbox to fetch.
|
|
6874
|
+
*/
|
|
6875
|
+
where?: InboxWhereInput
|
|
6876
|
+
/**
|
|
6877
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
6878
|
+
*
|
|
6879
|
+
* Determine the order of Inboxes to fetch.
|
|
6880
|
+
*/
|
|
6881
|
+
orderBy?: InboxOrderByWithRelationInput | InboxOrderByWithRelationInput[]
|
|
6882
|
+
/**
|
|
6883
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
6884
|
+
*
|
|
6885
|
+
* Sets the position for searching for Inboxes.
|
|
6886
|
+
*/
|
|
6887
|
+
cursor?: InboxWhereUniqueInput
|
|
6888
|
+
/**
|
|
6889
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
6890
|
+
*
|
|
6891
|
+
* Take `±n` Inboxes from the position of the cursor.
|
|
6892
|
+
*/
|
|
6893
|
+
take?: number
|
|
6894
|
+
/**
|
|
6895
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
6896
|
+
*
|
|
6897
|
+
* Skip the first `n` Inboxes.
|
|
6898
|
+
*/
|
|
6899
|
+
skip?: number
|
|
6900
|
+
/**
|
|
6901
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
6902
|
+
*
|
|
6903
|
+
* Filter by unique combinations of Inboxes.
|
|
6904
|
+
*/
|
|
6905
|
+
distinct?: InboxScalarFieldEnum | InboxScalarFieldEnum[]
|
|
6906
|
+
}
|
|
6907
|
+
|
|
6908
|
+
/**
|
|
6909
|
+
* Inbox findFirstOrThrow
|
|
6910
|
+
*/
|
|
6911
|
+
export type InboxFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
6912
|
+
/**
|
|
6913
|
+
* Select specific fields to fetch from the Inbox
|
|
6914
|
+
*/
|
|
6915
|
+
select?: InboxSelect<ExtArgs> | null
|
|
6916
|
+
/**
|
|
6917
|
+
* Omit specific fields from the Inbox
|
|
6918
|
+
*/
|
|
6919
|
+
omit?: InboxOmit<ExtArgs> | null
|
|
6920
|
+
/**
|
|
6921
|
+
* Filter, which Inbox to fetch.
|
|
6922
|
+
*/
|
|
6923
|
+
where?: InboxWhereInput
|
|
6924
|
+
/**
|
|
6925
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
6926
|
+
*
|
|
6927
|
+
* Determine the order of Inboxes to fetch.
|
|
6928
|
+
*/
|
|
6929
|
+
orderBy?: InboxOrderByWithRelationInput | InboxOrderByWithRelationInput[]
|
|
6930
|
+
/**
|
|
6931
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
6932
|
+
*
|
|
6933
|
+
* Sets the position for searching for Inboxes.
|
|
6934
|
+
*/
|
|
6935
|
+
cursor?: InboxWhereUniqueInput
|
|
6936
|
+
/**
|
|
6937
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
6938
|
+
*
|
|
6939
|
+
* Take `±n` Inboxes from the position of the cursor.
|
|
6940
|
+
*/
|
|
6941
|
+
take?: number
|
|
6942
|
+
/**
|
|
6943
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
6944
|
+
*
|
|
6945
|
+
* Skip the first `n` Inboxes.
|
|
6946
|
+
*/
|
|
6947
|
+
skip?: number
|
|
6948
|
+
/**
|
|
6949
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
6950
|
+
*
|
|
6951
|
+
* Filter by unique combinations of Inboxes.
|
|
6952
|
+
*/
|
|
6953
|
+
distinct?: InboxScalarFieldEnum | InboxScalarFieldEnum[]
|
|
6954
|
+
}
|
|
6955
|
+
|
|
6956
|
+
/**
|
|
6957
|
+
* Inbox findMany
|
|
6958
|
+
*/
|
|
6959
|
+
export type InboxFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
6960
|
+
/**
|
|
6961
|
+
* Select specific fields to fetch from the Inbox
|
|
6962
|
+
*/
|
|
6963
|
+
select?: InboxSelect<ExtArgs> | null
|
|
6964
|
+
/**
|
|
6965
|
+
* Omit specific fields from the Inbox
|
|
6966
|
+
*/
|
|
6967
|
+
omit?: InboxOmit<ExtArgs> | null
|
|
6968
|
+
/**
|
|
6969
|
+
* Filter, which Inboxes to fetch.
|
|
6970
|
+
*/
|
|
6971
|
+
where?: InboxWhereInput
|
|
6972
|
+
/**
|
|
6973
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
6974
|
+
*
|
|
6975
|
+
* Determine the order of Inboxes to fetch.
|
|
6976
|
+
*/
|
|
6977
|
+
orderBy?: InboxOrderByWithRelationInput | InboxOrderByWithRelationInput[]
|
|
6978
|
+
/**
|
|
6979
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
6980
|
+
*
|
|
6981
|
+
* Sets the position for listing Inboxes.
|
|
6982
|
+
*/
|
|
6983
|
+
cursor?: InboxWhereUniqueInput
|
|
6984
|
+
/**
|
|
6985
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
6986
|
+
*
|
|
6987
|
+
* Take `±n` Inboxes from the position of the cursor.
|
|
6988
|
+
*/
|
|
6989
|
+
take?: number
|
|
6990
|
+
/**
|
|
6991
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
6992
|
+
*
|
|
6993
|
+
* Skip the first `n` Inboxes.
|
|
6994
|
+
*/
|
|
6995
|
+
skip?: number
|
|
6996
|
+
distinct?: InboxScalarFieldEnum | InboxScalarFieldEnum[]
|
|
6997
|
+
}
|
|
6998
|
+
|
|
6999
|
+
/**
|
|
7000
|
+
* Inbox create
|
|
7001
|
+
*/
|
|
7002
|
+
export type InboxCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
7003
|
+
/**
|
|
7004
|
+
* Select specific fields to fetch from the Inbox
|
|
7005
|
+
*/
|
|
7006
|
+
select?: InboxSelect<ExtArgs> | null
|
|
7007
|
+
/**
|
|
7008
|
+
* Omit specific fields from the Inbox
|
|
7009
|
+
*/
|
|
7010
|
+
omit?: InboxOmit<ExtArgs> | null
|
|
7011
|
+
/**
|
|
7012
|
+
* The data needed to create a Inbox.
|
|
7013
|
+
*/
|
|
7014
|
+
data: XOR<InboxCreateInput, InboxUncheckedCreateInput>
|
|
7015
|
+
}
|
|
7016
|
+
|
|
7017
|
+
/**
|
|
7018
|
+
* Inbox createMany
|
|
7019
|
+
*/
|
|
7020
|
+
export type InboxCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
7021
|
+
/**
|
|
7022
|
+
* The data used to create many Inboxes.
|
|
7023
|
+
*/
|
|
7024
|
+
data: InboxCreateManyInput | InboxCreateManyInput[]
|
|
7025
|
+
skipDuplicates?: boolean
|
|
7026
|
+
}
|
|
7027
|
+
|
|
7028
|
+
/**
|
|
7029
|
+
* Inbox createManyAndReturn
|
|
7030
|
+
*/
|
|
7031
|
+
export type InboxCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
7032
|
+
/**
|
|
7033
|
+
* Select specific fields to fetch from the Inbox
|
|
7034
|
+
*/
|
|
7035
|
+
select?: InboxSelectCreateManyAndReturn<ExtArgs> | null
|
|
7036
|
+
/**
|
|
7037
|
+
* Omit specific fields from the Inbox
|
|
7038
|
+
*/
|
|
7039
|
+
omit?: InboxOmit<ExtArgs> | null
|
|
7040
|
+
/**
|
|
7041
|
+
* The data used to create many Inboxes.
|
|
7042
|
+
*/
|
|
7043
|
+
data: InboxCreateManyInput | InboxCreateManyInput[]
|
|
7044
|
+
skipDuplicates?: boolean
|
|
7045
|
+
}
|
|
7046
|
+
|
|
7047
|
+
/**
|
|
7048
|
+
* Inbox update
|
|
7049
|
+
*/
|
|
7050
|
+
export type InboxUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
7051
|
+
/**
|
|
7052
|
+
* Select specific fields to fetch from the Inbox
|
|
7053
|
+
*/
|
|
7054
|
+
select?: InboxSelect<ExtArgs> | null
|
|
7055
|
+
/**
|
|
7056
|
+
* Omit specific fields from the Inbox
|
|
7057
|
+
*/
|
|
7058
|
+
omit?: InboxOmit<ExtArgs> | null
|
|
7059
|
+
/**
|
|
7060
|
+
* The data needed to update a Inbox.
|
|
7061
|
+
*/
|
|
7062
|
+
data: XOR<InboxUpdateInput, InboxUncheckedUpdateInput>
|
|
7063
|
+
/**
|
|
7064
|
+
* Choose, which Inbox to update.
|
|
7065
|
+
*/
|
|
7066
|
+
where: InboxWhereUniqueInput
|
|
7067
|
+
}
|
|
7068
|
+
|
|
7069
|
+
/**
|
|
7070
|
+
* Inbox updateMany
|
|
7071
|
+
*/
|
|
7072
|
+
export type InboxUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
7073
|
+
/**
|
|
7074
|
+
* The data used to update Inboxes.
|
|
7075
|
+
*/
|
|
7076
|
+
data: XOR<InboxUpdateManyMutationInput, InboxUncheckedUpdateManyInput>
|
|
7077
|
+
/**
|
|
7078
|
+
* Filter which Inboxes to update
|
|
7079
|
+
*/
|
|
7080
|
+
where?: InboxWhereInput
|
|
7081
|
+
/**
|
|
7082
|
+
* Limit how many Inboxes to update.
|
|
7083
|
+
*/
|
|
7084
|
+
limit?: number
|
|
7085
|
+
}
|
|
7086
|
+
|
|
7087
|
+
/**
|
|
7088
|
+
* Inbox updateManyAndReturn
|
|
7089
|
+
*/
|
|
7090
|
+
export type InboxUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
7091
|
+
/**
|
|
7092
|
+
* Select specific fields to fetch from the Inbox
|
|
7093
|
+
*/
|
|
7094
|
+
select?: InboxSelectUpdateManyAndReturn<ExtArgs> | null
|
|
7095
|
+
/**
|
|
7096
|
+
* Omit specific fields from the Inbox
|
|
7097
|
+
*/
|
|
7098
|
+
omit?: InboxOmit<ExtArgs> | null
|
|
7099
|
+
/**
|
|
7100
|
+
* The data used to update Inboxes.
|
|
7101
|
+
*/
|
|
7102
|
+
data: XOR<InboxUpdateManyMutationInput, InboxUncheckedUpdateManyInput>
|
|
7103
|
+
/**
|
|
7104
|
+
* Filter which Inboxes to update
|
|
7105
|
+
*/
|
|
7106
|
+
where?: InboxWhereInput
|
|
7107
|
+
/**
|
|
7108
|
+
* Limit how many Inboxes to update.
|
|
7109
|
+
*/
|
|
7110
|
+
limit?: number
|
|
7111
|
+
}
|
|
7112
|
+
|
|
7113
|
+
/**
|
|
7114
|
+
* Inbox upsert
|
|
7115
|
+
*/
|
|
7116
|
+
export type InboxUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
7117
|
+
/**
|
|
7118
|
+
* Select specific fields to fetch from the Inbox
|
|
7119
|
+
*/
|
|
7120
|
+
select?: InboxSelect<ExtArgs> | null
|
|
7121
|
+
/**
|
|
7122
|
+
* Omit specific fields from the Inbox
|
|
7123
|
+
*/
|
|
7124
|
+
omit?: InboxOmit<ExtArgs> | null
|
|
7125
|
+
/**
|
|
7126
|
+
* The filter to search for the Inbox to update in case it exists.
|
|
7127
|
+
*/
|
|
7128
|
+
where: InboxWhereUniqueInput
|
|
7129
|
+
/**
|
|
7130
|
+
* In case the Inbox found by the `where` argument doesn't exist, create a new Inbox with this data.
|
|
7131
|
+
*/
|
|
7132
|
+
create: XOR<InboxCreateInput, InboxUncheckedCreateInput>
|
|
7133
|
+
/**
|
|
7134
|
+
* In case the Inbox was found with the provided `where` argument, update it with this data.
|
|
7135
|
+
*/
|
|
7136
|
+
update: XOR<InboxUpdateInput, InboxUncheckedUpdateInput>
|
|
7137
|
+
}
|
|
7138
|
+
|
|
7139
|
+
/**
|
|
7140
|
+
* Inbox delete
|
|
7141
|
+
*/
|
|
7142
|
+
export type InboxDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
7143
|
+
/**
|
|
7144
|
+
* Select specific fields to fetch from the Inbox
|
|
7145
|
+
*/
|
|
7146
|
+
select?: InboxSelect<ExtArgs> | null
|
|
7147
|
+
/**
|
|
7148
|
+
* Omit specific fields from the Inbox
|
|
7149
|
+
*/
|
|
7150
|
+
omit?: InboxOmit<ExtArgs> | null
|
|
7151
|
+
/**
|
|
7152
|
+
* Filter which Inbox to delete.
|
|
7153
|
+
*/
|
|
7154
|
+
where: InboxWhereUniqueInput
|
|
7155
|
+
}
|
|
7156
|
+
|
|
7157
|
+
/**
|
|
7158
|
+
* Inbox deleteMany
|
|
7159
|
+
*/
|
|
7160
|
+
export type InboxDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
7161
|
+
/**
|
|
7162
|
+
* Filter which Inboxes to delete
|
|
7163
|
+
*/
|
|
7164
|
+
where?: InboxWhereInput
|
|
7165
|
+
/**
|
|
7166
|
+
* Limit how many Inboxes to delete.
|
|
7167
|
+
*/
|
|
7168
|
+
limit?: number
|
|
7169
|
+
}
|
|
7170
|
+
|
|
7171
|
+
/**
|
|
7172
|
+
* Inbox without action
|
|
7173
|
+
*/
|
|
7174
|
+
export type InboxDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
7175
|
+
/**
|
|
7176
|
+
* Select specific fields to fetch from the Inbox
|
|
7177
|
+
*/
|
|
7178
|
+
select?: InboxSelect<ExtArgs> | null
|
|
7179
|
+
/**
|
|
7180
|
+
* Omit specific fields from the Inbox
|
|
7181
|
+
*/
|
|
7182
|
+
omit?: InboxOmit<ExtArgs> | null
|
|
7183
|
+
}
|
|
7184
|
+
|
|
7185
|
+
|
|
7186
|
+
/**
|
|
7187
|
+
* Enums
|
|
7188
|
+
*/
|
|
7189
|
+
|
|
7190
|
+
export const TransactionIsolationLevel: {
|
|
7191
|
+
ReadUncommitted: 'ReadUncommitted',
|
|
7192
|
+
ReadCommitted: 'ReadCommitted',
|
|
7193
|
+
RepeatableRead: 'RepeatableRead',
|
|
7194
|
+
Serializable: 'Serializable'
|
|
7195
|
+
};
|
|
7196
|
+
|
|
7197
|
+
export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
|
|
7198
|
+
|
|
7199
|
+
|
|
7200
|
+
export const WarehouseScalarFieldEnum: {
|
|
7201
|
+
id: 'id',
|
|
7202
|
+
code: 'code',
|
|
7203
|
+
name: 'name',
|
|
7204
|
+
province: 'province',
|
|
7205
|
+
district: 'district',
|
|
7206
|
+
ward: 'ward',
|
|
7207
|
+
address: 'address',
|
|
7208
|
+
isActive: 'isActive',
|
|
7209
|
+
createdAt: 'createdAt',
|
|
7210
|
+
updatedAt: 'updatedAt'
|
|
7211
|
+
};
|
|
7212
|
+
|
|
7213
|
+
export type WarehouseScalarFieldEnum = (typeof WarehouseScalarFieldEnum)[keyof typeof WarehouseScalarFieldEnum]
|
|
7214
|
+
|
|
7215
|
+
|
|
7216
|
+
export const InventoryItemScalarFieldEnum: {
|
|
7217
|
+
id: 'id',
|
|
7218
|
+
productId: 'productId',
|
|
7219
|
+
warehouseId: 'warehouseId',
|
|
7220
|
+
skuId: 'skuId',
|
|
7221
|
+
quantityOnHand: 'quantityOnHand',
|
|
7222
|
+
quantityReserved: 'quantityReserved',
|
|
7223
|
+
version: 'version',
|
|
7224
|
+
createdAt: 'createdAt',
|
|
7225
|
+
updatedAt: 'updatedAt'
|
|
7226
|
+
};
|
|
7227
|
+
|
|
7228
|
+
export type InventoryItemScalarFieldEnum = (typeof InventoryItemScalarFieldEnum)[keyof typeof InventoryItemScalarFieldEnum]
|
|
7229
|
+
|
|
7230
|
+
|
|
7231
|
+
export const InventoryReservationScalarFieldEnum: {
|
|
7232
|
+
id: 'id',
|
|
7233
|
+
warehouseId: 'warehouseId',
|
|
7234
|
+
orderId: 'orderId',
|
|
7235
|
+
sku: 'sku',
|
|
7236
|
+
quantity: 'quantity',
|
|
7237
|
+
status: 'status',
|
|
7238
|
+
expiredAt: 'expiredAt',
|
|
7239
|
+
createdAt: 'createdAt',
|
|
7240
|
+
updatedAt: 'updatedAt'
|
|
7241
|
+
};
|
|
7242
|
+
|
|
7243
|
+
export type InventoryReservationScalarFieldEnum = (typeof InventoryReservationScalarFieldEnum)[keyof typeof InventoryReservationScalarFieldEnum]
|
|
7244
|
+
|
|
7245
|
+
|
|
7246
|
+
export const InventoryLedgerScalarFieldEnum: {
|
|
7247
|
+
id: 'id',
|
|
7248
|
+
warehouseId: 'warehouseId',
|
|
7249
|
+
sku: 'sku',
|
|
7250
|
+
type: 'type',
|
|
7251
|
+
amount: 'amount',
|
|
7252
|
+
balanceAfter: 'balanceAfter',
|
|
7253
|
+
referenceId: 'referenceId',
|
|
7254
|
+
note: 'note',
|
|
7255
|
+
createdAt: 'createdAt',
|
|
7256
|
+
updatedAt: 'updatedAt'
|
|
7257
|
+
};
|
|
7258
|
+
|
|
7259
|
+
export type InventoryLedgerScalarFieldEnum = (typeof InventoryLedgerScalarFieldEnum)[keyof typeof InventoryLedgerScalarFieldEnum]
|
|
7260
|
+
|
|
7261
|
+
|
|
7262
|
+
export const InboxScalarFieldEnum: {
|
|
7263
|
+
eventId: 'eventId',
|
|
7264
|
+
eventType: 'eventType',
|
|
7265
|
+
payload: 'payload',
|
|
7266
|
+
status: 'status',
|
|
7267
|
+
retryCount: 'retryCount',
|
|
7268
|
+
lastError: 'lastError',
|
|
7269
|
+
createdAt: 'createdAt',
|
|
7270
|
+
updatedAt: 'updatedAt',
|
|
7271
|
+
processedAt: 'processedAt'
|
|
7272
|
+
};
|
|
7273
|
+
|
|
7274
|
+
export type InboxScalarFieldEnum = (typeof InboxScalarFieldEnum)[keyof typeof InboxScalarFieldEnum]
|
|
7275
|
+
|
|
7276
|
+
|
|
7277
|
+
export const SortOrder: {
|
|
7278
|
+
asc: 'asc',
|
|
7279
|
+
desc: 'desc'
|
|
7280
|
+
};
|
|
7281
|
+
|
|
7282
|
+
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]
|
|
7283
|
+
|
|
7284
|
+
|
|
7285
|
+
export const JsonNullValueInput: {
|
|
7286
|
+
JsonNull: typeof JsonNull
|
|
7287
|
+
};
|
|
7288
|
+
|
|
7289
|
+
export type JsonNullValueInput = (typeof JsonNullValueInput)[keyof typeof JsonNullValueInput]
|
|
7290
|
+
|
|
7291
|
+
|
|
7292
|
+
export const QueryMode: {
|
|
7293
|
+
default: 'default',
|
|
7294
|
+
insensitive: 'insensitive'
|
|
7295
|
+
};
|
|
7296
|
+
|
|
7297
|
+
export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode]
|
|
7298
|
+
|
|
7299
|
+
|
|
7300
|
+
export const NullsOrder: {
|
|
7301
|
+
first: 'first',
|
|
7302
|
+
last: 'last'
|
|
7303
|
+
};
|
|
7304
|
+
|
|
7305
|
+
export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]
|
|
7306
|
+
|
|
7307
|
+
|
|
7308
|
+
export const JsonNullValueFilter: {
|
|
7309
|
+
DbNull: typeof DbNull,
|
|
7310
|
+
JsonNull: typeof JsonNull,
|
|
7311
|
+
AnyNull: typeof AnyNull
|
|
7312
|
+
};
|
|
7313
|
+
|
|
7314
|
+
export type JsonNullValueFilter = (typeof JsonNullValueFilter)[keyof typeof JsonNullValueFilter]
|
|
7315
|
+
|
|
7316
|
+
|
|
7317
|
+
/**
|
|
7318
|
+
* Field references
|
|
7319
|
+
*/
|
|
7320
|
+
|
|
7321
|
+
|
|
7322
|
+
/**
|
|
7323
|
+
* Reference to a field of type 'String'
|
|
7324
|
+
*/
|
|
7325
|
+
export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'>
|
|
6099
7326
|
|
|
6100
7327
|
|
|
6101
7328
|
|
|
@@ -6141,6 +7368,20 @@ export namespace Prisma {
|
|
|
6141
7368
|
|
|
6142
7369
|
|
|
6143
7370
|
|
|
7371
|
+
/**
|
|
7372
|
+
* Reference to a field of type 'Json'
|
|
7373
|
+
*/
|
|
7374
|
+
export type JsonFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Json'>
|
|
7375
|
+
|
|
7376
|
+
|
|
7377
|
+
|
|
7378
|
+
/**
|
|
7379
|
+
* Reference to a field of type 'QueryMode'
|
|
7380
|
+
*/
|
|
7381
|
+
export type EnumQueryModeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'QueryMode'>
|
|
7382
|
+
|
|
7383
|
+
|
|
7384
|
+
|
|
6144
7385
|
/**
|
|
6145
7386
|
* Reference to a field of type 'Float'
|
|
6146
7387
|
*/
|
|
@@ -6249,8 +7490,9 @@ export namespace Prisma {
|
|
|
6249
7490
|
OR?: InventoryItemWhereInput[]
|
|
6250
7491
|
NOT?: InventoryItemWhereInput | InventoryItemWhereInput[]
|
|
6251
7492
|
id?: UuidFilter<"InventoryItem"> | string
|
|
7493
|
+
productId?: UuidFilter<"InventoryItem"> | string
|
|
6252
7494
|
warehouseId?: UuidFilter<"InventoryItem"> | string
|
|
6253
|
-
|
|
7495
|
+
skuId?: StringFilter<"InventoryItem"> | string
|
|
6254
7496
|
quantityOnHand?: IntFilter<"InventoryItem"> | number
|
|
6255
7497
|
quantityReserved?: IntFilter<"InventoryItem"> | number
|
|
6256
7498
|
version?: IntFilter<"InventoryItem"> | number
|
|
@@ -6261,8 +7503,9 @@ export namespace Prisma {
|
|
|
6261
7503
|
|
|
6262
7504
|
export type InventoryItemOrderByWithRelationInput = {
|
|
6263
7505
|
id?: SortOrder
|
|
7506
|
+
productId?: SortOrder
|
|
6264
7507
|
warehouseId?: SortOrder
|
|
6265
|
-
|
|
7508
|
+
skuId?: SortOrder
|
|
6266
7509
|
quantityOnHand?: SortOrder
|
|
6267
7510
|
quantityReserved?: SortOrder
|
|
6268
7511
|
version?: SortOrder
|
|
@@ -6273,24 +7516,26 @@ export namespace Prisma {
|
|
|
6273
7516
|
|
|
6274
7517
|
export type InventoryItemWhereUniqueInput = Prisma.AtLeast<{
|
|
6275
7518
|
id?: string
|
|
6276
|
-
|
|
7519
|
+
warehouseId_skuId?: InventoryItemWarehouseIdSkuIdCompoundUniqueInput
|
|
6277
7520
|
AND?: InventoryItemWhereInput | InventoryItemWhereInput[]
|
|
6278
7521
|
OR?: InventoryItemWhereInput[]
|
|
6279
7522
|
NOT?: InventoryItemWhereInput | InventoryItemWhereInput[]
|
|
7523
|
+
productId?: UuidFilter<"InventoryItem"> | string
|
|
6280
7524
|
warehouseId?: UuidFilter<"InventoryItem"> | string
|
|
6281
|
-
|
|
7525
|
+
skuId?: StringFilter<"InventoryItem"> | string
|
|
6282
7526
|
quantityOnHand?: IntFilter<"InventoryItem"> | number
|
|
6283
7527
|
quantityReserved?: IntFilter<"InventoryItem"> | number
|
|
6284
7528
|
version?: IntFilter<"InventoryItem"> | number
|
|
6285
7529
|
createdAt?: DateTimeFilter<"InventoryItem"> | Date | string
|
|
6286
7530
|
updatedAt?: DateTimeFilter<"InventoryItem"> | Date | string
|
|
6287
7531
|
warehouse?: XOR<WarehouseScalarRelationFilter, WarehouseWhereInput>
|
|
6288
|
-
}, "id" | "
|
|
7532
|
+
}, "id" | "warehouseId_skuId">
|
|
6289
7533
|
|
|
6290
7534
|
export type InventoryItemOrderByWithAggregationInput = {
|
|
6291
7535
|
id?: SortOrder
|
|
7536
|
+
productId?: SortOrder
|
|
6292
7537
|
warehouseId?: SortOrder
|
|
6293
|
-
|
|
7538
|
+
skuId?: SortOrder
|
|
6294
7539
|
quantityOnHand?: SortOrder
|
|
6295
7540
|
quantityReserved?: SortOrder
|
|
6296
7541
|
version?: SortOrder
|
|
@@ -6308,8 +7553,9 @@ export namespace Prisma {
|
|
|
6308
7553
|
OR?: InventoryItemScalarWhereWithAggregatesInput[]
|
|
6309
7554
|
NOT?: InventoryItemScalarWhereWithAggregatesInput | InventoryItemScalarWhereWithAggregatesInput[]
|
|
6310
7555
|
id?: UuidWithAggregatesFilter<"InventoryItem"> | string
|
|
7556
|
+
productId?: UuidWithAggregatesFilter<"InventoryItem"> | string
|
|
6311
7557
|
warehouseId?: UuidWithAggregatesFilter<"InventoryItem"> | string
|
|
6312
|
-
|
|
7558
|
+
skuId?: StringWithAggregatesFilter<"InventoryItem"> | string
|
|
6313
7559
|
quantityOnHand?: IntWithAggregatesFilter<"InventoryItem"> | number
|
|
6314
7560
|
quantityReserved?: IntWithAggregatesFilter<"InventoryItem"> | number
|
|
6315
7561
|
version?: IntWithAggregatesFilter<"InventoryItem"> | number
|
|
@@ -6408,6 +7654,7 @@ export namespace Prisma {
|
|
|
6408
7654
|
referenceId?: StringFilter<"InventoryLedger"> | string
|
|
6409
7655
|
note?: StringNullableFilter<"InventoryLedger"> | string | null
|
|
6410
7656
|
createdAt?: DateTimeFilter<"InventoryLedger"> | Date | string
|
|
7657
|
+
updatedAt?: DateTimeFilter<"InventoryLedger"> | Date | string
|
|
6411
7658
|
warehouse?: XOR<WarehouseScalarRelationFilter, WarehouseWhereInput>
|
|
6412
7659
|
}
|
|
6413
7660
|
|
|
@@ -6421,6 +7668,7 @@ export namespace Prisma {
|
|
|
6421
7668
|
referenceId?: SortOrder
|
|
6422
7669
|
note?: SortOrderInput | SortOrder
|
|
6423
7670
|
createdAt?: SortOrder
|
|
7671
|
+
updatedAt?: SortOrder
|
|
6424
7672
|
warehouse?: WarehouseOrderByWithRelationInput
|
|
6425
7673
|
}
|
|
6426
7674
|
|
|
@@ -6437,6 +7685,7 @@ export namespace Prisma {
|
|
|
6437
7685
|
referenceId?: StringFilter<"InventoryLedger"> | string
|
|
6438
7686
|
note?: StringNullableFilter<"InventoryLedger"> | string | null
|
|
6439
7687
|
createdAt?: DateTimeFilter<"InventoryLedger"> | Date | string
|
|
7688
|
+
updatedAt?: DateTimeFilter<"InventoryLedger"> | Date | string
|
|
6440
7689
|
warehouse?: XOR<WarehouseScalarRelationFilter, WarehouseWhereInput>
|
|
6441
7690
|
}, "id">
|
|
6442
7691
|
|
|
@@ -6450,6 +7699,7 @@ export namespace Prisma {
|
|
|
6450
7699
|
referenceId?: SortOrder
|
|
6451
7700
|
note?: SortOrderInput | SortOrder
|
|
6452
7701
|
createdAt?: SortOrder
|
|
7702
|
+
updatedAt?: SortOrder
|
|
6453
7703
|
_count?: InventoryLedgerCountOrderByAggregateInput
|
|
6454
7704
|
_avg?: InventoryLedgerAvgOrderByAggregateInput
|
|
6455
7705
|
_max?: InventoryLedgerMaxOrderByAggregateInput
|
|
@@ -6470,6 +7720,81 @@ export namespace Prisma {
|
|
|
6470
7720
|
referenceId?: StringWithAggregatesFilter<"InventoryLedger"> | string
|
|
6471
7721
|
note?: StringNullableWithAggregatesFilter<"InventoryLedger"> | string | null
|
|
6472
7722
|
createdAt?: DateTimeWithAggregatesFilter<"InventoryLedger"> | Date | string
|
|
7723
|
+
updatedAt?: DateTimeWithAggregatesFilter<"InventoryLedger"> | Date | string
|
|
7724
|
+
}
|
|
7725
|
+
|
|
7726
|
+
export type InboxWhereInput = {
|
|
7727
|
+
AND?: InboxWhereInput | InboxWhereInput[]
|
|
7728
|
+
OR?: InboxWhereInput[]
|
|
7729
|
+
NOT?: InboxWhereInput | InboxWhereInput[]
|
|
7730
|
+
eventId?: UuidFilter<"Inbox"> | string
|
|
7731
|
+
eventType?: StringFilter<"Inbox"> | string
|
|
7732
|
+
payload?: JsonFilter<"Inbox">
|
|
7733
|
+
status?: StringFilter<"Inbox"> | string
|
|
7734
|
+
retryCount?: IntFilter<"Inbox"> | number
|
|
7735
|
+
lastError?: StringNullableFilter<"Inbox"> | string | null
|
|
7736
|
+
createdAt?: DateTimeFilter<"Inbox"> | Date | string
|
|
7737
|
+
updatedAt?: DateTimeFilter<"Inbox"> | Date | string
|
|
7738
|
+
processedAt?: DateTimeNullableFilter<"Inbox"> | Date | string | null
|
|
7739
|
+
}
|
|
7740
|
+
|
|
7741
|
+
export type InboxOrderByWithRelationInput = {
|
|
7742
|
+
eventId?: SortOrder
|
|
7743
|
+
eventType?: SortOrder
|
|
7744
|
+
payload?: SortOrder
|
|
7745
|
+
status?: SortOrder
|
|
7746
|
+
retryCount?: SortOrder
|
|
7747
|
+
lastError?: SortOrderInput | SortOrder
|
|
7748
|
+
createdAt?: SortOrder
|
|
7749
|
+
updatedAt?: SortOrder
|
|
7750
|
+
processedAt?: SortOrderInput | SortOrder
|
|
7751
|
+
}
|
|
7752
|
+
|
|
7753
|
+
export type InboxWhereUniqueInput = Prisma.AtLeast<{
|
|
7754
|
+
eventId?: string
|
|
7755
|
+
AND?: InboxWhereInput | InboxWhereInput[]
|
|
7756
|
+
OR?: InboxWhereInput[]
|
|
7757
|
+
NOT?: InboxWhereInput | InboxWhereInput[]
|
|
7758
|
+
eventType?: StringFilter<"Inbox"> | string
|
|
7759
|
+
payload?: JsonFilter<"Inbox">
|
|
7760
|
+
status?: StringFilter<"Inbox"> | string
|
|
7761
|
+
retryCount?: IntFilter<"Inbox"> | number
|
|
7762
|
+
lastError?: StringNullableFilter<"Inbox"> | string | null
|
|
7763
|
+
createdAt?: DateTimeFilter<"Inbox"> | Date | string
|
|
7764
|
+
updatedAt?: DateTimeFilter<"Inbox"> | Date | string
|
|
7765
|
+
processedAt?: DateTimeNullableFilter<"Inbox"> | Date | string | null
|
|
7766
|
+
}, "eventId">
|
|
7767
|
+
|
|
7768
|
+
export type InboxOrderByWithAggregationInput = {
|
|
7769
|
+
eventId?: SortOrder
|
|
7770
|
+
eventType?: SortOrder
|
|
7771
|
+
payload?: SortOrder
|
|
7772
|
+
status?: SortOrder
|
|
7773
|
+
retryCount?: SortOrder
|
|
7774
|
+
lastError?: SortOrderInput | SortOrder
|
|
7775
|
+
createdAt?: SortOrder
|
|
7776
|
+
updatedAt?: SortOrder
|
|
7777
|
+
processedAt?: SortOrderInput | SortOrder
|
|
7778
|
+
_count?: InboxCountOrderByAggregateInput
|
|
7779
|
+
_avg?: InboxAvgOrderByAggregateInput
|
|
7780
|
+
_max?: InboxMaxOrderByAggregateInput
|
|
7781
|
+
_min?: InboxMinOrderByAggregateInput
|
|
7782
|
+
_sum?: InboxSumOrderByAggregateInput
|
|
7783
|
+
}
|
|
7784
|
+
|
|
7785
|
+
export type InboxScalarWhereWithAggregatesInput = {
|
|
7786
|
+
AND?: InboxScalarWhereWithAggregatesInput | InboxScalarWhereWithAggregatesInput[]
|
|
7787
|
+
OR?: InboxScalarWhereWithAggregatesInput[]
|
|
7788
|
+
NOT?: InboxScalarWhereWithAggregatesInput | InboxScalarWhereWithAggregatesInput[]
|
|
7789
|
+
eventId?: UuidWithAggregatesFilter<"Inbox"> | string
|
|
7790
|
+
eventType?: StringWithAggregatesFilter<"Inbox"> | string
|
|
7791
|
+
payload?: JsonWithAggregatesFilter<"Inbox">
|
|
7792
|
+
status?: StringWithAggregatesFilter<"Inbox"> | string
|
|
7793
|
+
retryCount?: IntWithAggregatesFilter<"Inbox"> | number
|
|
7794
|
+
lastError?: StringNullableWithAggregatesFilter<"Inbox"> | string | null
|
|
7795
|
+
createdAt?: DateTimeWithAggregatesFilter<"Inbox"> | Date | string
|
|
7796
|
+
updatedAt?: DateTimeWithAggregatesFilter<"Inbox"> | Date | string
|
|
7797
|
+
processedAt?: DateTimeNullableWithAggregatesFilter<"Inbox"> | Date | string | null
|
|
6473
7798
|
}
|
|
6474
7799
|
|
|
6475
7800
|
export type WarehouseCreateInput = {
|
|
@@ -6577,7 +7902,8 @@ export namespace Prisma {
|
|
|
6577
7902
|
|
|
6578
7903
|
export type InventoryItemCreateInput = {
|
|
6579
7904
|
id?: string
|
|
6580
|
-
|
|
7905
|
+
productId: string
|
|
7906
|
+
skuId: string
|
|
6581
7907
|
quantityOnHand?: number
|
|
6582
7908
|
quantityReserved?: number
|
|
6583
7909
|
version?: number
|
|
@@ -6588,8 +7914,9 @@ export namespace Prisma {
|
|
|
6588
7914
|
|
|
6589
7915
|
export type InventoryItemUncheckedCreateInput = {
|
|
6590
7916
|
id?: string
|
|
7917
|
+
productId: string
|
|
6591
7918
|
warehouseId: string
|
|
6592
|
-
|
|
7919
|
+
skuId: string
|
|
6593
7920
|
quantityOnHand?: number
|
|
6594
7921
|
quantityReserved?: number
|
|
6595
7922
|
version?: number
|
|
@@ -6599,7 +7926,8 @@ export namespace Prisma {
|
|
|
6599
7926
|
|
|
6600
7927
|
export type InventoryItemUpdateInput = {
|
|
6601
7928
|
id?: StringFieldUpdateOperationsInput | string
|
|
6602
|
-
|
|
7929
|
+
productId?: StringFieldUpdateOperationsInput | string
|
|
7930
|
+
skuId?: StringFieldUpdateOperationsInput | string
|
|
6603
7931
|
quantityOnHand?: IntFieldUpdateOperationsInput | number
|
|
6604
7932
|
quantityReserved?: IntFieldUpdateOperationsInput | number
|
|
6605
7933
|
version?: IntFieldUpdateOperationsInput | number
|
|
@@ -6610,8 +7938,9 @@ export namespace Prisma {
|
|
|
6610
7938
|
|
|
6611
7939
|
export type InventoryItemUncheckedUpdateInput = {
|
|
6612
7940
|
id?: StringFieldUpdateOperationsInput | string
|
|
7941
|
+
productId?: StringFieldUpdateOperationsInput | string
|
|
6613
7942
|
warehouseId?: StringFieldUpdateOperationsInput | string
|
|
6614
|
-
|
|
7943
|
+
skuId?: StringFieldUpdateOperationsInput | string
|
|
6615
7944
|
quantityOnHand?: IntFieldUpdateOperationsInput | number
|
|
6616
7945
|
quantityReserved?: IntFieldUpdateOperationsInput | number
|
|
6617
7946
|
version?: IntFieldUpdateOperationsInput | number
|
|
@@ -6621,8 +7950,9 @@ export namespace Prisma {
|
|
|
6621
7950
|
|
|
6622
7951
|
export type InventoryItemCreateManyInput = {
|
|
6623
7952
|
id?: string
|
|
7953
|
+
productId: string
|
|
6624
7954
|
warehouseId: string
|
|
6625
|
-
|
|
7955
|
+
skuId: string
|
|
6626
7956
|
quantityOnHand?: number
|
|
6627
7957
|
quantityReserved?: number
|
|
6628
7958
|
version?: number
|
|
@@ -6632,7 +7962,8 @@ export namespace Prisma {
|
|
|
6632
7962
|
|
|
6633
7963
|
export type InventoryItemUpdateManyMutationInput = {
|
|
6634
7964
|
id?: StringFieldUpdateOperationsInput | string
|
|
6635
|
-
|
|
7965
|
+
productId?: StringFieldUpdateOperationsInput | string
|
|
7966
|
+
skuId?: StringFieldUpdateOperationsInput | string
|
|
6636
7967
|
quantityOnHand?: IntFieldUpdateOperationsInput | number
|
|
6637
7968
|
quantityReserved?: IntFieldUpdateOperationsInput | number
|
|
6638
7969
|
version?: IntFieldUpdateOperationsInput | number
|
|
@@ -6642,8 +7973,9 @@ export namespace Prisma {
|
|
|
6642
7973
|
|
|
6643
7974
|
export type InventoryItemUncheckedUpdateManyInput = {
|
|
6644
7975
|
id?: StringFieldUpdateOperationsInput | string
|
|
7976
|
+
productId?: StringFieldUpdateOperationsInput | string
|
|
6645
7977
|
warehouseId?: StringFieldUpdateOperationsInput | string
|
|
6646
|
-
|
|
7978
|
+
skuId?: StringFieldUpdateOperationsInput | string
|
|
6647
7979
|
quantityOnHand?: IntFieldUpdateOperationsInput | number
|
|
6648
7980
|
quantityReserved?: IntFieldUpdateOperationsInput | number
|
|
6649
7981
|
version?: IntFieldUpdateOperationsInput | number
|
|
@@ -6743,6 +8075,7 @@ export namespace Prisma {
|
|
|
6743
8075
|
referenceId: string
|
|
6744
8076
|
note?: string | null
|
|
6745
8077
|
createdAt?: Date | string
|
|
8078
|
+
updatedAt?: Date | string
|
|
6746
8079
|
warehouse: WarehouseCreateNestedOneWithoutLedgersInput
|
|
6747
8080
|
}
|
|
6748
8081
|
|
|
@@ -6756,6 +8089,7 @@ export namespace Prisma {
|
|
|
6756
8089
|
referenceId: string
|
|
6757
8090
|
note?: string | null
|
|
6758
8091
|
createdAt?: Date | string
|
|
8092
|
+
updatedAt?: Date | string
|
|
6759
8093
|
}
|
|
6760
8094
|
|
|
6761
8095
|
export type InventoryLedgerUpdateInput = {
|
|
@@ -6767,6 +8101,7 @@ export namespace Prisma {
|
|
|
6767
8101
|
referenceId?: StringFieldUpdateOperationsInput | string
|
|
6768
8102
|
note?: NullableStringFieldUpdateOperationsInput | string | null
|
|
6769
8103
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
8104
|
+
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
6770
8105
|
warehouse?: WarehouseUpdateOneRequiredWithoutLedgersNestedInput
|
|
6771
8106
|
}
|
|
6772
8107
|
|
|
@@ -6780,6 +8115,7 @@ export namespace Prisma {
|
|
|
6780
8115
|
referenceId?: StringFieldUpdateOperationsInput | string
|
|
6781
8116
|
note?: NullableStringFieldUpdateOperationsInput | string | null
|
|
6782
8117
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
8118
|
+
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
6783
8119
|
}
|
|
6784
8120
|
|
|
6785
8121
|
export type InventoryLedgerCreateManyInput = {
|
|
@@ -6792,6 +8128,7 @@ export namespace Prisma {
|
|
|
6792
8128
|
referenceId: string
|
|
6793
8129
|
note?: string | null
|
|
6794
8130
|
createdAt?: Date | string
|
|
8131
|
+
updatedAt?: Date | string
|
|
6795
8132
|
}
|
|
6796
8133
|
|
|
6797
8134
|
export type InventoryLedgerUpdateManyMutationInput = {
|
|
@@ -6803,6 +8140,7 @@ export namespace Prisma {
|
|
|
6803
8140
|
referenceId?: StringFieldUpdateOperationsInput | string
|
|
6804
8141
|
note?: NullableStringFieldUpdateOperationsInput | string | null
|
|
6805
8142
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
8143
|
+
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
6806
8144
|
}
|
|
6807
8145
|
|
|
6808
8146
|
export type InventoryLedgerUncheckedUpdateManyInput = {
|
|
@@ -6815,6 +8153,91 @@ export namespace Prisma {
|
|
|
6815
8153
|
referenceId?: StringFieldUpdateOperationsInput | string
|
|
6816
8154
|
note?: NullableStringFieldUpdateOperationsInput | string | null
|
|
6817
8155
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
8156
|
+
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
8157
|
+
}
|
|
8158
|
+
|
|
8159
|
+
export type InboxCreateInput = {
|
|
8160
|
+
eventId?: string
|
|
8161
|
+
eventType: string
|
|
8162
|
+
payload:unknown
|
|
8163
|
+
status: string
|
|
8164
|
+
retryCount?: number
|
|
8165
|
+
lastError?: string | null
|
|
8166
|
+
createdAt?: Date | string
|
|
8167
|
+
updatedAt?: Date | string
|
|
8168
|
+
processedAt?: Date | string | null
|
|
8169
|
+
}
|
|
8170
|
+
|
|
8171
|
+
export type InboxUncheckedCreateInput = {
|
|
8172
|
+
eventId?: string
|
|
8173
|
+
eventType: string
|
|
8174
|
+
payload:unknown
|
|
8175
|
+
status: string
|
|
8176
|
+
retryCount?: number
|
|
8177
|
+
lastError?: string | null
|
|
8178
|
+
createdAt?: Date | string
|
|
8179
|
+
updatedAt?: Date | string
|
|
8180
|
+
processedAt?: Date | string | null
|
|
8181
|
+
}
|
|
8182
|
+
|
|
8183
|
+
export type InboxUpdateInput = {
|
|
8184
|
+
eventId?: StringFieldUpdateOperationsInput | string
|
|
8185
|
+
eventType?: StringFieldUpdateOperationsInput | string
|
|
8186
|
+
payload?:unknown
|
|
8187
|
+
status?: StringFieldUpdateOperationsInput | string
|
|
8188
|
+
retryCount?: IntFieldUpdateOperationsInput | number
|
|
8189
|
+
lastError?: NullableStringFieldUpdateOperationsInput | string | null
|
|
8190
|
+
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
8191
|
+
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
8192
|
+
processedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
8193
|
+
}
|
|
8194
|
+
|
|
8195
|
+
export type InboxUncheckedUpdateInput = {
|
|
8196
|
+
eventId?: StringFieldUpdateOperationsInput | string
|
|
8197
|
+
eventType?: StringFieldUpdateOperationsInput | string
|
|
8198
|
+
payload?:unknown
|
|
8199
|
+
status?: StringFieldUpdateOperationsInput | string
|
|
8200
|
+
retryCount?: IntFieldUpdateOperationsInput | number
|
|
8201
|
+
lastError?: NullableStringFieldUpdateOperationsInput | string | null
|
|
8202
|
+
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
8203
|
+
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
8204
|
+
processedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
8205
|
+
}
|
|
8206
|
+
|
|
8207
|
+
export type InboxCreateManyInput = {
|
|
8208
|
+
eventId?: string
|
|
8209
|
+
eventType: string
|
|
8210
|
+
payload:unknown
|
|
8211
|
+
status: string
|
|
8212
|
+
retryCount?: number
|
|
8213
|
+
lastError?: string | null
|
|
8214
|
+
createdAt?: Date | string
|
|
8215
|
+
updatedAt?: Date | string
|
|
8216
|
+
processedAt?: Date | string | null
|
|
8217
|
+
}
|
|
8218
|
+
|
|
8219
|
+
export type InboxUpdateManyMutationInput = {
|
|
8220
|
+
eventId?: StringFieldUpdateOperationsInput | string
|
|
8221
|
+
eventType?: StringFieldUpdateOperationsInput | string
|
|
8222
|
+
payload?:unknown
|
|
8223
|
+
status?: StringFieldUpdateOperationsInput | string
|
|
8224
|
+
retryCount?: IntFieldUpdateOperationsInput | number
|
|
8225
|
+
lastError?: NullableStringFieldUpdateOperationsInput | string | null
|
|
8226
|
+
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
8227
|
+
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
8228
|
+
processedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
8229
|
+
}
|
|
8230
|
+
|
|
8231
|
+
export type InboxUncheckedUpdateManyInput = {
|
|
8232
|
+
eventId?: StringFieldUpdateOperationsInput | string
|
|
8233
|
+
eventType?: StringFieldUpdateOperationsInput | string
|
|
8234
|
+
payload?:unknown
|
|
8235
|
+
status?: StringFieldUpdateOperationsInput | string
|
|
8236
|
+
retryCount?: IntFieldUpdateOperationsInput | number
|
|
8237
|
+
lastError?: NullableStringFieldUpdateOperationsInput | string | null
|
|
8238
|
+
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
8239
|
+
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
8240
|
+
processedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
6818
8241
|
}
|
|
6819
8242
|
|
|
6820
8243
|
export type UuidFilter<$PrismaModel = never> = {
|
|
@@ -7038,15 +8461,16 @@ export namespace Prisma {
|
|
|
7038
8461
|
isNot?: WarehouseWhereInput
|
|
7039
8462
|
}
|
|
7040
8463
|
|
|
7041
|
-
export type
|
|
8464
|
+
export type InventoryItemWarehouseIdSkuIdCompoundUniqueInput = {
|
|
7042
8465
|
warehouseId: string
|
|
7043
|
-
|
|
8466
|
+
skuId: string
|
|
7044
8467
|
}
|
|
7045
8468
|
|
|
7046
8469
|
export type InventoryItemCountOrderByAggregateInput = {
|
|
7047
8470
|
id?: SortOrder
|
|
8471
|
+
productId?: SortOrder
|
|
7048
8472
|
warehouseId?: SortOrder
|
|
7049
|
-
|
|
8473
|
+
skuId?: SortOrder
|
|
7050
8474
|
quantityOnHand?: SortOrder
|
|
7051
8475
|
quantityReserved?: SortOrder
|
|
7052
8476
|
version?: SortOrder
|
|
@@ -7062,8 +8486,9 @@ export namespace Prisma {
|
|
|
7062
8486
|
|
|
7063
8487
|
export type InventoryItemMaxOrderByAggregateInput = {
|
|
7064
8488
|
id?: SortOrder
|
|
8489
|
+
productId?: SortOrder
|
|
7065
8490
|
warehouseId?: SortOrder
|
|
7066
|
-
|
|
8491
|
+
skuId?: SortOrder
|
|
7067
8492
|
quantityOnHand?: SortOrder
|
|
7068
8493
|
quantityReserved?: SortOrder
|
|
7069
8494
|
version?: SortOrder
|
|
@@ -7073,8 +8498,9 @@ export namespace Prisma {
|
|
|
7073
8498
|
|
|
7074
8499
|
export type InventoryItemMinOrderByAggregateInput = {
|
|
7075
8500
|
id?: SortOrder
|
|
8501
|
+
productId?: SortOrder
|
|
7076
8502
|
warehouseId?: SortOrder
|
|
7077
|
-
|
|
8503
|
+
skuId?: SortOrder
|
|
7078
8504
|
quantityOnHand?: SortOrder
|
|
7079
8505
|
quantityReserved?: SortOrder
|
|
7080
8506
|
version?: SortOrder
|
|
@@ -7163,6 +8589,7 @@ export namespace Prisma {
|
|
|
7163
8589
|
referenceId?: SortOrder
|
|
7164
8590
|
note?: SortOrder
|
|
7165
8591
|
createdAt?: SortOrder
|
|
8592
|
+
updatedAt?: SortOrder
|
|
7166
8593
|
}
|
|
7167
8594
|
|
|
7168
8595
|
export type InventoryLedgerAvgOrderByAggregateInput = {
|
|
@@ -7180,6 +8607,7 @@ export namespace Prisma {
|
|
|
7180
8607
|
referenceId?: SortOrder
|
|
7181
8608
|
note?: SortOrder
|
|
7182
8609
|
createdAt?: SortOrder
|
|
8610
|
+
updatedAt?: SortOrder
|
|
7183
8611
|
}
|
|
7184
8612
|
|
|
7185
8613
|
export type InventoryLedgerMinOrderByAggregateInput = {
|
|
@@ -7192,12 +8620,129 @@ export namespace Prisma {
|
|
|
7192
8620
|
referenceId?: SortOrder
|
|
7193
8621
|
note?: SortOrder
|
|
7194
8622
|
createdAt?: SortOrder
|
|
8623
|
+
updatedAt?: SortOrder
|
|
7195
8624
|
}
|
|
7196
8625
|
|
|
7197
8626
|
export type InventoryLedgerSumOrderByAggregateInput = {
|
|
7198
8627
|
amount?: SortOrder
|
|
7199
8628
|
balanceAfter?: SortOrder
|
|
7200
8629
|
}
|
|
8630
|
+
export type JsonFilter<$PrismaModel = never> =
|
|
8631
|
+
| PatchUndefined<
|
|
8632
|
+
Either<Required<JsonFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonFilterBase<$PrismaModel>>, 'path'>>,
|
|
8633
|
+
Required<JsonFilterBase<$PrismaModel>>
|
|
8634
|
+
>
|
|
8635
|
+
| OptionalFlat<Omit<Required<JsonFilterBase<$PrismaModel>>, 'path'>>
|
|
8636
|
+
|
|
8637
|
+
export type JsonFilterBase<$PrismaModel = never> = {
|
|
8638
|
+
equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter
|
|
8639
|
+
path?: string[]
|
|
8640
|
+
mode?: QueryMode | EnumQueryModeFieldRefInput<$PrismaModel>
|
|
8641
|
+
string_contains?: string | StringFieldRefInput<$PrismaModel>
|
|
8642
|
+
string_starts_with?: string | StringFieldRefInput<$PrismaModel>
|
|
8643
|
+
string_ends_with?: string | StringFieldRefInput<$PrismaModel>
|
|
8644
|
+
array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
|
|
8645
|
+
array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
|
|
8646
|
+
array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
|
|
8647
|
+
lt?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
|
|
8648
|
+
lte?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
|
|
8649
|
+
gt?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
|
|
8650
|
+
gte?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
|
|
8651
|
+
not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter
|
|
8652
|
+
}
|
|
8653
|
+
|
|
8654
|
+
export type DateTimeNullableFilter<$PrismaModel = never> = {
|
|
8655
|
+
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
|
|
8656
|
+
in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
|
|
8657
|
+
notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
|
|
8658
|
+
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
8659
|
+
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
8660
|
+
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
8661
|
+
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
8662
|
+
not?: NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null
|
|
8663
|
+
}
|
|
8664
|
+
|
|
8665
|
+
export type InboxCountOrderByAggregateInput = {
|
|
8666
|
+
eventId?: SortOrder
|
|
8667
|
+
eventType?: SortOrder
|
|
8668
|
+
payload?: SortOrder
|
|
8669
|
+
status?: SortOrder
|
|
8670
|
+
retryCount?: SortOrder
|
|
8671
|
+
lastError?: SortOrder
|
|
8672
|
+
createdAt?: SortOrder
|
|
8673
|
+
updatedAt?: SortOrder
|
|
8674
|
+
processedAt?: SortOrder
|
|
8675
|
+
}
|
|
8676
|
+
|
|
8677
|
+
export type InboxAvgOrderByAggregateInput = {
|
|
8678
|
+
retryCount?: SortOrder
|
|
8679
|
+
}
|
|
8680
|
+
|
|
8681
|
+
export type InboxMaxOrderByAggregateInput = {
|
|
8682
|
+
eventId?: SortOrder
|
|
8683
|
+
eventType?: SortOrder
|
|
8684
|
+
status?: SortOrder
|
|
8685
|
+
retryCount?: SortOrder
|
|
8686
|
+
lastError?: SortOrder
|
|
8687
|
+
createdAt?: SortOrder
|
|
8688
|
+
updatedAt?: SortOrder
|
|
8689
|
+
processedAt?: SortOrder
|
|
8690
|
+
}
|
|
8691
|
+
|
|
8692
|
+
export type InboxMinOrderByAggregateInput = {
|
|
8693
|
+
eventId?: SortOrder
|
|
8694
|
+
eventType?: SortOrder
|
|
8695
|
+
status?: SortOrder
|
|
8696
|
+
retryCount?: SortOrder
|
|
8697
|
+
lastError?: SortOrder
|
|
8698
|
+
createdAt?: SortOrder
|
|
8699
|
+
updatedAt?: SortOrder
|
|
8700
|
+
processedAt?: SortOrder
|
|
8701
|
+
}
|
|
8702
|
+
|
|
8703
|
+
export type InboxSumOrderByAggregateInput = {
|
|
8704
|
+
retryCount?: SortOrder
|
|
8705
|
+
}
|
|
8706
|
+
export type JsonWithAggregatesFilter<$PrismaModel = never> =
|
|
8707
|
+
| PatchUndefined<
|
|
8708
|
+
Either<Required<JsonWithAggregatesFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonWithAggregatesFilterBase<$PrismaModel>>, 'path'>>,
|
|
8709
|
+
Required<JsonWithAggregatesFilterBase<$PrismaModel>>
|
|
8710
|
+
>
|
|
8711
|
+
| OptionalFlat<Omit<Required<JsonWithAggregatesFilterBase<$PrismaModel>>, 'path'>>
|
|
8712
|
+
|
|
8713
|
+
export type JsonWithAggregatesFilterBase<$PrismaModel = never> = {
|
|
8714
|
+
equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter
|
|
8715
|
+
path?: string[]
|
|
8716
|
+
mode?: QueryMode | EnumQueryModeFieldRefInput<$PrismaModel>
|
|
8717
|
+
string_contains?: string | StringFieldRefInput<$PrismaModel>
|
|
8718
|
+
string_starts_with?: string | StringFieldRefInput<$PrismaModel>
|
|
8719
|
+
string_ends_with?: string | StringFieldRefInput<$PrismaModel>
|
|
8720
|
+
array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
|
|
8721
|
+
array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
|
|
8722
|
+
array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
|
|
8723
|
+
lt?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
|
|
8724
|
+
lte?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
|
|
8725
|
+
gt?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
|
|
8726
|
+
gte?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
|
|
8727
|
+
not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter
|
|
8728
|
+
_count?: NestedIntFilter<$PrismaModel>
|
|
8729
|
+
_min?: NestedJsonFilter<$PrismaModel>
|
|
8730
|
+
_max?: NestedJsonFilter<$PrismaModel>
|
|
8731
|
+
}
|
|
8732
|
+
|
|
8733
|
+
export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
8734
|
+
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
|
|
8735
|
+
in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
|
|
8736
|
+
notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
|
|
8737
|
+
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
8738
|
+
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
8739
|
+
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
8740
|
+
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
8741
|
+
not?: NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null
|
|
8742
|
+
_count?: NestedIntNullableFilter<$PrismaModel>
|
|
8743
|
+
_min?: NestedDateTimeNullableFilter<$PrismaModel>
|
|
8744
|
+
_max?: NestedDateTimeNullableFilter<$PrismaModel>
|
|
8745
|
+
}
|
|
7201
8746
|
|
|
7202
8747
|
export type InventoryItemCreateNestedManyWithoutWarehouseInput = {
|
|
7203
8748
|
create?: XOR<InventoryItemCreateWithoutWarehouseInput, InventoryItemUncheckedCreateWithoutWarehouseInput> | InventoryItemCreateWithoutWarehouseInput[] | InventoryItemUncheckedCreateWithoutWarehouseInput[]
|
|
@@ -7391,6 +8936,10 @@ export namespace Prisma {
|
|
|
7391
8936
|
update?: XOR<XOR<WarehouseUpdateToOneWithWhereWithoutLedgersInput, WarehouseUpdateWithoutLedgersInput>, WarehouseUncheckedUpdateWithoutLedgersInput>
|
|
7392
8937
|
}
|
|
7393
8938
|
|
|
8939
|
+
export type NullableDateTimeFieldUpdateOperationsInput = {
|
|
8940
|
+
set?: Date | string | null
|
|
8941
|
+
}
|
|
8942
|
+
|
|
7394
8943
|
export type NestedUuidFilter<$PrismaModel = never> = {
|
|
7395
8944
|
equals?: string | StringFieldRefInput<$PrismaModel>
|
|
7396
8945
|
in?: string[] | ListStringFieldRefInput<$PrismaModel>
|
|
@@ -7565,9 +9114,58 @@ export namespace Prisma {
|
|
|
7565
9114
|
not?: NestedFloatFilter<$PrismaModel> | number
|
|
7566
9115
|
}
|
|
7567
9116
|
|
|
9117
|
+
export type NestedDateTimeNullableFilter<$PrismaModel = never> = {
|
|
9118
|
+
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
|
|
9119
|
+
in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
|
|
9120
|
+
notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
|
|
9121
|
+
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
9122
|
+
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
9123
|
+
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
9124
|
+
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
9125
|
+
not?: NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null
|
|
9126
|
+
}
|
|
9127
|
+
export type NestedJsonFilter<$PrismaModel = never> =
|
|
9128
|
+
| PatchUndefined<
|
|
9129
|
+
Either<Required<NestedJsonFilterBase<$PrismaModel>>, Exclude<keyof Required<NestedJsonFilterBase<$PrismaModel>>, 'path'>>,
|
|
9130
|
+
Required<NestedJsonFilterBase<$PrismaModel>>
|
|
9131
|
+
>
|
|
9132
|
+
| OptionalFlat<Omit<Required<NestedJsonFilterBase<$PrismaModel>>, 'path'>>
|
|
9133
|
+
|
|
9134
|
+
export type NestedJsonFilterBase<$PrismaModel = never> = {
|
|
9135
|
+
equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter
|
|
9136
|
+
path?: string[]
|
|
9137
|
+
mode?: QueryMode | EnumQueryModeFieldRefInput<$PrismaModel>
|
|
9138
|
+
string_contains?: string | StringFieldRefInput<$PrismaModel>
|
|
9139
|
+
string_starts_with?: string | StringFieldRefInput<$PrismaModel>
|
|
9140
|
+
string_ends_with?: string | StringFieldRefInput<$PrismaModel>
|
|
9141
|
+
array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
|
|
9142
|
+
array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
|
|
9143
|
+
array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
|
|
9144
|
+
lt?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
|
|
9145
|
+
lte?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
|
|
9146
|
+
gt?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
|
|
9147
|
+
gte?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
|
|
9148
|
+
not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter
|
|
9149
|
+
}
|
|
9150
|
+
|
|
9151
|
+
export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
9152
|
+
equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
|
|
9153
|
+
in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
|
|
9154
|
+
notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
|
|
9155
|
+
lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
9156
|
+
lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
9157
|
+
gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
9158
|
+
gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
|
|
9159
|
+
not?: NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null
|
|
9160
|
+
_count?: NestedIntNullableFilter<$PrismaModel>
|
|
9161
|
+
_min?: NestedDateTimeNullableFilter<$PrismaModel>
|
|
9162
|
+
_max?: NestedDateTimeNullableFilter<$PrismaModel>
|
|
9163
|
+
}
|
|
9164
|
+
|
|
7568
9165
|
export type InventoryItemCreateWithoutWarehouseInput = {
|
|
7569
9166
|
id?: string
|
|
7570
|
-
|
|
9167
|
+
productId: string
|
|
9168
|
+
skuId: string
|
|
7571
9169
|
quantityOnHand?: number
|
|
7572
9170
|
quantityReserved?: number
|
|
7573
9171
|
version?: number
|
|
@@ -7577,7 +9175,8 @@ export namespace Prisma {
|
|
|
7577
9175
|
|
|
7578
9176
|
export type InventoryItemUncheckedCreateWithoutWarehouseInput = {
|
|
7579
9177
|
id?: string
|
|
7580
|
-
|
|
9178
|
+
productId: string
|
|
9179
|
+
skuId: string
|
|
7581
9180
|
quantityOnHand?: number
|
|
7582
9181
|
quantityReserved?: number
|
|
7583
9182
|
version?: number
|
|
@@ -7636,6 +9235,7 @@ export namespace Prisma {
|
|
|
7636
9235
|
referenceId: string
|
|
7637
9236
|
note?: string | null
|
|
7638
9237
|
createdAt?: Date | string
|
|
9238
|
+
updatedAt?: Date | string
|
|
7639
9239
|
}
|
|
7640
9240
|
|
|
7641
9241
|
export type InventoryLedgerUncheckedCreateWithoutWarehouseInput = {
|
|
@@ -7647,6 +9247,7 @@ export namespace Prisma {
|
|
|
7647
9247
|
referenceId: string
|
|
7648
9248
|
note?: string | null
|
|
7649
9249
|
createdAt?: Date | string
|
|
9250
|
+
updatedAt?: Date | string
|
|
7650
9251
|
}
|
|
7651
9252
|
|
|
7652
9253
|
export type InventoryLedgerCreateOrConnectWithoutWarehouseInput = {
|
|
@@ -7680,8 +9281,9 @@ export namespace Prisma {
|
|
|
7680
9281
|
OR?: InventoryItemScalarWhereInput[]
|
|
7681
9282
|
NOT?: InventoryItemScalarWhereInput | InventoryItemScalarWhereInput[]
|
|
7682
9283
|
id?: UuidFilter<"InventoryItem"> | string
|
|
9284
|
+
productId?: UuidFilter<"InventoryItem"> | string
|
|
7683
9285
|
warehouseId?: UuidFilter<"InventoryItem"> | string
|
|
7684
|
-
|
|
9286
|
+
skuId?: StringFilter<"InventoryItem"> | string
|
|
7685
9287
|
quantityOnHand?: IntFilter<"InventoryItem"> | number
|
|
7686
9288
|
quantityReserved?: IntFilter<"InventoryItem"> | number
|
|
7687
9289
|
version?: IntFilter<"InventoryItem"> | number
|
|
@@ -7749,6 +9351,7 @@ export namespace Prisma {
|
|
|
7749
9351
|
referenceId?: StringFilter<"InventoryLedger"> | string
|
|
7750
9352
|
note?: StringNullableFilter<"InventoryLedger"> | string | null
|
|
7751
9353
|
createdAt?: DateTimeFilter<"InventoryLedger"> | Date | string
|
|
9354
|
+
updatedAt?: DateTimeFilter<"InventoryLedger"> | Date | string
|
|
7752
9355
|
}
|
|
7753
9356
|
|
|
7754
9357
|
export type WarehouseCreateWithoutInventoryItemsInput = {
|
|
@@ -7981,7 +9584,8 @@ export namespace Prisma {
|
|
|
7981
9584
|
|
|
7982
9585
|
export type InventoryItemCreateManyWarehouseInput = {
|
|
7983
9586
|
id?: string
|
|
7984
|
-
|
|
9587
|
+
productId: string
|
|
9588
|
+
skuId: string
|
|
7985
9589
|
quantityOnHand?: number
|
|
7986
9590
|
quantityReserved?: number
|
|
7987
9591
|
version?: number
|
|
@@ -8009,11 +9613,13 @@ export namespace Prisma {
|
|
|
8009
9613
|
referenceId: string
|
|
8010
9614
|
note?: string | null
|
|
8011
9615
|
createdAt?: Date | string
|
|
9616
|
+
updatedAt?: Date | string
|
|
8012
9617
|
}
|
|
8013
9618
|
|
|
8014
9619
|
export type InventoryItemUpdateWithoutWarehouseInput = {
|
|
8015
9620
|
id?: StringFieldUpdateOperationsInput | string
|
|
8016
|
-
|
|
9621
|
+
productId?: StringFieldUpdateOperationsInput | string
|
|
9622
|
+
skuId?: StringFieldUpdateOperationsInput | string
|
|
8017
9623
|
quantityOnHand?: IntFieldUpdateOperationsInput | number
|
|
8018
9624
|
quantityReserved?: IntFieldUpdateOperationsInput | number
|
|
8019
9625
|
version?: IntFieldUpdateOperationsInput | number
|
|
@@ -8023,7 +9629,8 @@ export namespace Prisma {
|
|
|
8023
9629
|
|
|
8024
9630
|
export type InventoryItemUncheckedUpdateWithoutWarehouseInput = {
|
|
8025
9631
|
id?: StringFieldUpdateOperationsInput | string
|
|
8026
|
-
|
|
9632
|
+
productId?: StringFieldUpdateOperationsInput | string
|
|
9633
|
+
skuId?: StringFieldUpdateOperationsInput | string
|
|
8027
9634
|
quantityOnHand?: IntFieldUpdateOperationsInput | number
|
|
8028
9635
|
quantityReserved?: IntFieldUpdateOperationsInput | number
|
|
8029
9636
|
version?: IntFieldUpdateOperationsInput | number
|
|
@@ -8033,7 +9640,8 @@ export namespace Prisma {
|
|
|
8033
9640
|
|
|
8034
9641
|
export type InventoryItemUncheckedUpdateManyWithoutWarehouseInput = {
|
|
8035
9642
|
id?: StringFieldUpdateOperationsInput | string
|
|
8036
|
-
|
|
9643
|
+
productId?: StringFieldUpdateOperationsInput | string
|
|
9644
|
+
skuId?: StringFieldUpdateOperationsInput | string
|
|
8037
9645
|
quantityOnHand?: IntFieldUpdateOperationsInput | number
|
|
8038
9646
|
quantityReserved?: IntFieldUpdateOperationsInput | number
|
|
8039
9647
|
version?: IntFieldUpdateOperationsInput | number
|
|
@@ -8083,6 +9691,7 @@ export namespace Prisma {
|
|
|
8083
9691
|
referenceId?: StringFieldUpdateOperationsInput | string
|
|
8084
9692
|
note?: NullableStringFieldUpdateOperationsInput | string | null
|
|
8085
9693
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
9694
|
+
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
8086
9695
|
}
|
|
8087
9696
|
|
|
8088
9697
|
export type InventoryLedgerUncheckedUpdateWithoutWarehouseInput = {
|
|
@@ -8094,6 +9703,7 @@ export namespace Prisma {
|
|
|
8094
9703
|
referenceId?: StringFieldUpdateOperationsInput | string
|
|
8095
9704
|
note?: NullableStringFieldUpdateOperationsInput | string | null
|
|
8096
9705
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
9706
|
+
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
8097
9707
|
}
|
|
8098
9708
|
|
|
8099
9709
|
export type InventoryLedgerUncheckedUpdateManyWithoutWarehouseInput = {
|
|
@@ -8105,6 +9715,7 @@ export namespace Prisma {
|
|
|
8105
9715
|
referenceId?: StringFieldUpdateOperationsInput | string
|
|
8106
9716
|
note?: NullableStringFieldUpdateOperationsInput | string | null
|
|
8107
9717
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
9718
|
+
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
8108
9719
|
}
|
|
8109
9720
|
|
|
8110
9721
|
|