@sagebox-be/prisma-inventory 0.0.1 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
- sku: string | null
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
- sku: string | null
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
- sku: number
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
- sku?: true
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
- sku?: true
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
- sku?: true
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
- sku: string
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
- sku?: boolean
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
- sku?: boolean
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
- sku?: boolean
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
- sku?: boolean
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" | "sku" | "quantityOnHand" | "quantityReserved" | "version" | "createdAt" | "updatedAt", ExtArgs["result"]["inventoryItem"]>
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
- sku: string
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 sku: FieldRef<"InventoryItem", 'String'>
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'>
@@ -3721,7 +3825,7 @@ export namespace Prisma {
3721
3825
  id: string | null
3722
3826
  warehouseId: string | null
3723
3827
  orderId: string | null
3724
- sku: string | null
3828
+ skuId: string | null
3725
3829
  quantity: number | null
3726
3830
  status: string | null
3727
3831
  expiredAt: Date | null
@@ -3733,7 +3837,7 @@ export namespace Prisma {
3733
3837
  id: string | null
3734
3838
  warehouseId: string | null
3735
3839
  orderId: string | null
3736
- sku: string | null
3840
+ skuId: string | null
3737
3841
  quantity: number | null
3738
3842
  status: string | null
3739
3843
  expiredAt: Date | null
@@ -3745,7 +3849,7 @@ export namespace Prisma {
3745
3849
  id: number
3746
3850
  warehouseId: number
3747
3851
  orderId: number
3748
- sku: number
3852
+ skuId: number
3749
3853
  quantity: number
3750
3854
  status: number
3751
3855
  expiredAt: number
@@ -3767,7 +3871,7 @@ export namespace Prisma {
3767
3871
  id?: true
3768
3872
  warehouseId?: true
3769
3873
  orderId?: true
3770
- sku?: true
3874
+ skuId?: true
3771
3875
  quantity?: true
3772
3876
  status?: true
3773
3877
  expiredAt?: true
@@ -3779,7 +3883,7 @@ export namespace Prisma {
3779
3883
  id?: true
3780
3884
  warehouseId?: true
3781
3885
  orderId?: true
3782
- sku?: true
3886
+ skuId?: true
3783
3887
  quantity?: true
3784
3888
  status?: true
3785
3889
  expiredAt?: true
@@ -3791,7 +3895,7 @@ export namespace Prisma {
3791
3895
  id?: true
3792
3896
  warehouseId?: true
3793
3897
  orderId?: true
3794
- sku?: true
3898
+ skuId?: true
3795
3899
  quantity?: true
3796
3900
  status?: true
3797
3901
  expiredAt?: true
@@ -3890,7 +3994,7 @@ export namespace Prisma {
3890
3994
  id: string
3891
3995
  warehouseId: string
3892
3996
  orderId: string
3893
- sku: string
3997
+ skuId: string
3894
3998
  quantity: number
3895
3999
  status: string
3896
4000
  expiredAt: Date
@@ -3921,7 +4025,7 @@ export namespace Prisma {
3921
4025
  id?: boolean
3922
4026
  warehouseId?: boolean
3923
4027
  orderId?: boolean
3924
- sku?: boolean
4028
+ skuId?: boolean
3925
4029
  quantity?: boolean
3926
4030
  status?: boolean
3927
4031
  expiredAt?: boolean
@@ -3934,7 +4038,7 @@ export namespace Prisma {
3934
4038
  id?: boolean
3935
4039
  warehouseId?: boolean
3936
4040
  orderId?: boolean
3937
- sku?: boolean
4041
+ skuId?: boolean
3938
4042
  quantity?: boolean
3939
4043
  status?: boolean
3940
4044
  expiredAt?: boolean
@@ -3947,7 +4051,7 @@ export namespace Prisma {
3947
4051
  id?: boolean
3948
4052
  warehouseId?: boolean
3949
4053
  orderId?: boolean
3950
- sku?: boolean
4054
+ skuId?: boolean
3951
4055
  quantity?: boolean
3952
4056
  status?: boolean
3953
4057
  expiredAt?: boolean
@@ -3960,7 +4064,7 @@ export namespace Prisma {
3960
4064
  id?: boolean
3961
4065
  warehouseId?: boolean
3962
4066
  orderId?: boolean
3963
- sku?: boolean
4067
+ skuId?: boolean
3964
4068
  quantity?: boolean
3965
4069
  status?: boolean
3966
4070
  expiredAt?: boolean
@@ -3968,7 +4072,7 @@ export namespace Prisma {
3968
4072
  updatedAt?: boolean
3969
4073
  }
3970
4074
 
3971
- export type InventoryReservationOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "warehouseId" | "orderId" | "sku" | "quantity" | "status" | "expiredAt" | "createdAt" | "updatedAt", ExtArgs["result"]["inventoryReservation"]>
4075
+ export type InventoryReservationOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "warehouseId" | "orderId" | "skuId" | "quantity" | "status" | "expiredAt" | "createdAt" | "updatedAt", ExtArgs["result"]["inventoryReservation"]>
3972
4076
  export type InventoryReservationInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
3973
4077
  warehouse?: boolean | WarehouseDefaultArgs<ExtArgs>
3974
4078
  }
@@ -3988,7 +4092,7 @@ export namespace Prisma {
3988
4092
  id: string
3989
4093
  warehouseId: string
3990
4094
  orderId: string
3991
- sku: string
4095
+ skuId: string
3992
4096
  quantity: number
3993
4097
  status: string
3994
4098
  expiredAt: Date
@@ -4421,7 +4525,7 @@ export namespace Prisma {
4421
4525
  readonly id: FieldRef<"InventoryReservation", 'String'>
4422
4526
  readonly warehouseId: FieldRef<"InventoryReservation", 'String'>
4423
4527
  readonly orderId: FieldRef<"InventoryReservation", 'String'>
4424
- readonly sku: FieldRef<"InventoryReservation", 'String'>
4528
+ readonly skuId: FieldRef<"InventoryReservation", 'String'>
4425
4529
  readonly quantity: FieldRef<"InventoryReservation", 'Int'>
4426
4530
  readonly status: FieldRef<"InventoryReservation", 'String'>
4427
4531
  readonly expiredAt: FieldRef<"InventoryReservation", 'DateTime'>
@@ -4865,38 +4969,44 @@ export namespace Prisma {
4865
4969
 
4866
4970
  export type InventoryLedgerMinAggregateOutputType = {
4867
4971
  id: string | null
4972
+ inventoryItemId: string | null
4868
4973
  warehouseId: string | null
4869
- sku: string | null
4974
+ skuId: string | null
4870
4975
  type: string | null
4871
4976
  amount: number | null
4872
4977
  balanceAfter: number | null
4873
4978
  referenceId: string | null
4874
4979
  note: string | null
4875
4980
  createdAt: Date | null
4981
+ updatedAt: Date | null
4876
4982
  }
4877
4983
 
4878
4984
  export type InventoryLedgerMaxAggregateOutputType = {
4879
4985
  id: string | null
4986
+ inventoryItemId: string | null
4880
4987
  warehouseId: string | null
4881
- sku: string | null
4988
+ skuId: string | null
4882
4989
  type: string | null
4883
4990
  amount: number | null
4884
4991
  balanceAfter: number | null
4885
4992
  referenceId: string | null
4886
4993
  note: string | null
4887
4994
  createdAt: Date | null
4995
+ updatedAt: Date | null
4888
4996
  }
4889
4997
 
4890
4998
  export type InventoryLedgerCountAggregateOutputType = {
4891
4999
  id: number
5000
+ inventoryItemId: number
4892
5001
  warehouseId: number
4893
- sku: number
5002
+ skuId: number
4894
5003
  type: number
4895
5004
  amount: number
4896
5005
  balanceAfter: number
4897
5006
  referenceId: number
4898
5007
  note: number
4899
5008
  createdAt: number
5009
+ updatedAt: number
4900
5010
  _all: number
4901
5011
  }
4902
5012
 
@@ -4913,38 +5023,44 @@ export namespace Prisma {
4913
5023
 
4914
5024
  export type InventoryLedgerMinAggregateInputType = {
4915
5025
  id?: true
5026
+ inventoryItemId?: true
4916
5027
  warehouseId?: true
4917
- sku?: true
5028
+ skuId?: true
4918
5029
  type?: true
4919
5030
  amount?: true
4920
5031
  balanceAfter?: true
4921
5032
  referenceId?: true
4922
5033
  note?: true
4923
5034
  createdAt?: true
5035
+ updatedAt?: true
4924
5036
  }
4925
5037
 
4926
5038
  export type InventoryLedgerMaxAggregateInputType = {
4927
5039
  id?: true
5040
+ inventoryItemId?: true
4928
5041
  warehouseId?: true
4929
- sku?: true
5042
+ skuId?: true
4930
5043
  type?: true
4931
5044
  amount?: true
4932
5045
  balanceAfter?: true
4933
5046
  referenceId?: true
4934
5047
  note?: true
4935
5048
  createdAt?: true
5049
+ updatedAt?: true
4936
5050
  }
4937
5051
 
4938
5052
  export type InventoryLedgerCountAggregateInputType = {
4939
5053
  id?: true
5054
+ inventoryItemId?: true
4940
5055
  warehouseId?: true
4941
- sku?: true
5056
+ skuId?: true
4942
5057
  type?: true
4943
5058
  amount?: true
4944
5059
  balanceAfter?: true
4945
5060
  referenceId?: true
4946
5061
  note?: true
4947
5062
  createdAt?: true
5063
+ updatedAt?: true
4948
5064
  _all?: true
4949
5065
  }
4950
5066
 
@@ -5036,14 +5152,16 @@ export namespace Prisma {
5036
5152
 
5037
5153
  export type InventoryLedgerGroupByOutputType = {
5038
5154
  id: string
5155
+ inventoryItemId: string
5039
5156
  warehouseId: string
5040
- sku: string
5157
+ skuId: string
5041
5158
  type: string
5042
5159
  amount: number
5043
5160
  balanceAfter: number
5044
5161
  referenceId: string
5045
5162
  note: string | null
5046
5163
  createdAt: Date
5164
+ updatedAt: Date
5047
5165
  _count: InventoryLedgerCountAggregateOutputType | null
5048
5166
  _avg: InventoryLedgerAvgAggregateOutputType | null
5049
5167
  _sum: InventoryLedgerSumAggregateOutputType | null
@@ -5067,56 +5185,64 @@ export namespace Prisma {
5067
5185
 
5068
5186
  export type InventoryLedgerSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
5069
5187
  id?: boolean
5188
+ inventoryItemId?: boolean
5070
5189
  warehouseId?: boolean
5071
- sku?: boolean
5190
+ skuId?: boolean
5072
5191
  type?: boolean
5073
5192
  amount?: boolean
5074
5193
  balanceAfter?: boolean
5075
5194
  referenceId?: boolean
5076
5195
  note?: boolean
5077
5196
  createdAt?: boolean
5197
+ updatedAt?: boolean
5078
5198
  warehouse?: boolean | WarehouseDefaultArgs<ExtArgs>
5079
5199
  }, ExtArgs["result"]["inventoryLedger"]>
5080
5200
 
5081
5201
  export type InventoryLedgerSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
5082
5202
  id?: boolean
5203
+ inventoryItemId?: boolean
5083
5204
  warehouseId?: boolean
5084
- sku?: boolean
5205
+ skuId?: boolean
5085
5206
  type?: boolean
5086
5207
  amount?: boolean
5087
5208
  balanceAfter?: boolean
5088
5209
  referenceId?: boolean
5089
5210
  note?: boolean
5090
5211
  createdAt?: boolean
5212
+ updatedAt?: boolean
5091
5213
  warehouse?: boolean | WarehouseDefaultArgs<ExtArgs>
5092
5214
  }, ExtArgs["result"]["inventoryLedger"]>
5093
5215
 
5094
5216
  export type InventoryLedgerSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
5095
5217
  id?: boolean
5218
+ inventoryItemId?: boolean
5096
5219
  warehouseId?: boolean
5097
- sku?: boolean
5220
+ skuId?: boolean
5098
5221
  type?: boolean
5099
5222
  amount?: boolean
5100
5223
  balanceAfter?: boolean
5101
5224
  referenceId?: boolean
5102
5225
  note?: boolean
5103
5226
  createdAt?: boolean
5227
+ updatedAt?: boolean
5104
5228
  warehouse?: boolean | WarehouseDefaultArgs<ExtArgs>
5105
5229
  }, ExtArgs["result"]["inventoryLedger"]>
5106
5230
 
5107
5231
  export type InventoryLedgerSelectScalar = {
5108
5232
  id?: boolean
5233
+ inventoryItemId?: boolean
5109
5234
  warehouseId?: boolean
5110
- sku?: boolean
5235
+ skuId?: boolean
5111
5236
  type?: boolean
5112
5237
  amount?: boolean
5113
5238
  balanceAfter?: boolean
5114
5239
  referenceId?: boolean
5115
5240
  note?: boolean
5116
5241
  createdAt?: boolean
5242
+ updatedAt?: boolean
5117
5243
  }
5118
5244
 
5119
- export type InventoryLedgerOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "warehouseId" | "sku" | "type" | "amount" | "balanceAfter" | "referenceId" | "note" | "createdAt", ExtArgs["result"]["inventoryLedger"]>
5245
+ export type InventoryLedgerOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "inventoryItemId" | "warehouseId" | "skuId" | "type" | "amount" | "balanceAfter" | "referenceId" | "note" | "createdAt" | "updatedAt", ExtArgs["result"]["inventoryLedger"]>
5120
5246
  export type InventoryLedgerInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
5121
5247
  warehouse?: boolean | WarehouseDefaultArgs<ExtArgs>
5122
5248
  }
@@ -5134,14 +5260,16 @@ export namespace Prisma {
5134
5260
  }
5135
5261
  scalars: $Extensions.GetPayloadResult<{
5136
5262
  id: string
5263
+ inventoryItemId: string
5137
5264
  warehouseId: string
5138
- sku: string
5265
+ skuId: string
5139
5266
  type: string
5140
5267
  amount: number
5141
5268
  balanceAfter: number
5142
5269
  referenceId: string
5143
5270
  note: string | null
5144
5271
  createdAt: Date
5272
+ updatedAt: Date
5145
5273
  }, ExtArgs["result"]["inventoryLedger"]>
5146
5274
  composites: {}
5147
5275
  }
@@ -5567,14 +5695,16 @@ export namespace Prisma {
5567
5695
  */
5568
5696
  interface InventoryLedgerFieldRefs {
5569
5697
  readonly id: FieldRef<"InventoryLedger", 'String'>
5698
+ readonly inventoryItemId: FieldRef<"InventoryLedger", 'String'>
5570
5699
  readonly warehouseId: FieldRef<"InventoryLedger", 'String'>
5571
- readonly sku: FieldRef<"InventoryLedger", 'String'>
5700
+ readonly skuId: FieldRef<"InventoryLedger", 'String'>
5572
5701
  readonly type: FieldRef<"InventoryLedger", 'String'>
5573
5702
  readonly amount: FieldRef<"InventoryLedger", 'Int'>
5574
5703
  readonly balanceAfter: FieldRef<"InventoryLedger", 'Int'>
5575
5704
  readonly referenceId: FieldRef<"InventoryLedger", 'String'>
5576
5705
  readonly note: FieldRef<"InventoryLedger", 'String'>
5577
5706
  readonly createdAt: FieldRef<"InventoryLedger", 'DateTime'>
5707
+ readonly updatedAt: FieldRef<"InventoryLedger", 'DateTime'>
5578
5708
  }
5579
5709
 
5580
5710
 
@@ -5990,123 +6120,1234 @@ export namespace Prisma {
5990
6120
 
5991
6121
 
5992
6122
  /**
5993
- * Enums
6123
+ * Model Inbox
5994
6124
  */
5995
6125
 
5996
- export const TransactionIsolationLevel: {
5997
- ReadUncommitted: 'ReadUncommitted',
5998
- ReadCommitted: 'ReadCommitted',
5999
- RepeatableRead: 'RepeatableRead',
6000
- Serializable: 'Serializable'
6001
- };
6002
-
6003
- export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
6126
+ export type AggregateInbox = {
6127
+ _count: InboxCountAggregateOutputType | null
6128
+ _avg: InboxAvgAggregateOutputType | null
6129
+ _sum: InboxSumAggregateOutputType | null
6130
+ _min: InboxMinAggregateOutputType | null
6131
+ _max: InboxMaxAggregateOutputType | null
6132
+ }
6004
6133
 
6134
+ export type InboxAvgAggregateOutputType = {
6135
+ retryCount: number | null
6136
+ }
6005
6137
 
6006
- export const WarehouseScalarFieldEnum: {
6007
- id: 'id',
6008
- code: 'code',
6009
- name: 'name',
6010
- province: 'province',
6011
- district: 'district',
6012
- ward: 'ward',
6013
- address: 'address',
6014
- isActive: 'isActive',
6015
- createdAt: 'createdAt',
6016
- updatedAt: 'updatedAt'
6017
- };
6138
+ export type InboxSumAggregateOutputType = {
6139
+ retryCount: number | null
6140
+ }
6018
6141
 
6019
- export type WarehouseScalarFieldEnum = (typeof WarehouseScalarFieldEnum)[keyof typeof WarehouseScalarFieldEnum]
6142
+ export type InboxMinAggregateOutputType = {
6143
+ eventId: string | null
6144
+ eventType: string | null
6145
+ status: string | null
6146
+ retryCount: number | null
6147
+ lastError: string | null
6148
+ createdAt: Date | null
6149
+ updatedAt: Date | null
6150
+ processedAt: Date | null
6151
+ }
6020
6152
 
6153
+ export type InboxMaxAggregateOutputType = {
6154
+ eventId: string | null
6155
+ eventType: string | null
6156
+ status: string | null
6157
+ retryCount: number | null
6158
+ lastError: string | null
6159
+ createdAt: Date | null
6160
+ updatedAt: Date | null
6161
+ processedAt: Date | null
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
- };
6164
+ export type InboxCountAggregateOutputType = {
6165
+ eventId: number
6166
+ eventType: number
6167
+ payload: number
6168
+ status: number
6169
+ retryCount: number
6170
+ lastError: number
6171
+ createdAt: number
6172
+ updatedAt: number
6173
+ processedAt: number
6174
+ _all: number
6175
+ }
6032
6176
 
6033
- export type InventoryItemScalarFieldEnum = (typeof InventoryItemScalarFieldEnum)[keyof typeof InventoryItemScalarFieldEnum]
6034
6177
 
6178
+ export type InboxAvgAggregateInputType = {
6179
+ retryCount?: true
6180
+ }
6035
6181
 
6036
- export const InventoryReservationScalarFieldEnum: {
6037
- id: 'id',
6038
- warehouseId: 'warehouseId',
6039
- orderId: 'orderId',
6040
- sku: 'sku',
6041
- quantity: 'quantity',
6042
- status: 'status',
6043
- expiredAt: 'expiredAt',
6044
- createdAt: 'createdAt',
6045
- updatedAt: 'updatedAt'
6046
- };
6182
+ export type InboxSumAggregateInputType = {
6183
+ retryCount?: true
6184
+ }
6047
6185
 
6048
- export type InventoryReservationScalarFieldEnum = (typeof InventoryReservationScalarFieldEnum)[keyof typeof InventoryReservationScalarFieldEnum]
6186
+ export type InboxMinAggregateInputType = {
6187
+ eventId?: true
6188
+ eventType?: true
6189
+ status?: true
6190
+ retryCount?: true
6191
+ lastError?: true
6192
+ createdAt?: true
6193
+ updatedAt?: true
6194
+ processedAt?: true
6195
+ }
6049
6196
 
6197
+ export type InboxMaxAggregateInputType = {
6198
+ eventId?: true
6199
+ eventType?: true
6200
+ status?: true
6201
+ retryCount?: true
6202
+ lastError?: true
6203
+ createdAt?: true
6204
+ updatedAt?: true
6205
+ processedAt?: true
6206
+ }
6050
6207
 
6051
- export const InventoryLedgerScalarFieldEnum: {
6052
- id: 'id',
6053
- warehouseId: 'warehouseId',
6054
- sku: 'sku',
6055
- type: 'type',
6056
- amount: 'amount',
6057
- balanceAfter: 'balanceAfter',
6058
- referenceId: 'referenceId',
6059
- note: 'note',
6060
- createdAt: 'createdAt'
6061
- };
6208
+ export type InboxCountAggregateInputType = {
6209
+ eventId?: true
6210
+ eventType?: true
6211
+ payload?: true
6212
+ status?: true
6213
+ retryCount?: true
6214
+ lastError?: true
6215
+ createdAt?: true
6216
+ updatedAt?: true
6217
+ processedAt?: true
6218
+ _all?: true
6219
+ }
6062
6220
 
6063
- export type InventoryLedgerScalarFieldEnum = (typeof InventoryLedgerScalarFieldEnum)[keyof typeof InventoryLedgerScalarFieldEnum]
6221
+ export type InboxAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
6222
+ /**
6223
+ * Filter which Inbox to aggregate.
6224
+ */
6225
+ where?: InboxWhereInput
6226
+ /**
6227
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
6228
+ *
6229
+ * Determine the order of Inboxes to fetch.
6230
+ */
6231
+ orderBy?: InboxOrderByWithRelationInput | InboxOrderByWithRelationInput[]
6232
+ /**
6233
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
6234
+ *
6235
+ * Sets the start position
6236
+ */
6237
+ cursor?: InboxWhereUniqueInput
6238
+ /**
6239
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
6240
+ *
6241
+ * Take `±n` Inboxes from the position of the cursor.
6242
+ */
6243
+ take?: number
6244
+ /**
6245
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
6246
+ *
6247
+ * Skip the first `n` Inboxes.
6248
+ */
6249
+ skip?: number
6250
+ /**
6251
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
6252
+ *
6253
+ * Count returned Inboxes
6254
+ **/
6255
+ _count?: true | InboxCountAggregateInputType
6256
+ /**
6257
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
6258
+ *
6259
+ * Select which fields to average
6260
+ **/
6261
+ _avg?: InboxAvgAggregateInputType
6262
+ /**
6263
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
6264
+ *
6265
+ * Select which fields to sum
6266
+ **/
6267
+ _sum?: InboxSumAggregateInputType
6268
+ /**
6269
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
6270
+ *
6271
+ * Select which fields to find the minimum value
6272
+ **/
6273
+ _min?: InboxMinAggregateInputType
6274
+ /**
6275
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
6276
+ *
6277
+ * Select which fields to find the maximum value
6278
+ **/
6279
+ _max?: InboxMaxAggregateInputType
6280
+ }
6064
6281
 
6282
+ export type GetInboxAggregateType<T extends InboxAggregateArgs> = {
6283
+ [P in keyof T & keyof AggregateInbox]: P extends '_count' | 'count'
6284
+ ? T[P] extends true
6285
+ ? number
6286
+ : GetScalarType<T[P], AggregateInbox[P]>
6287
+ : GetScalarType<T[P], AggregateInbox[P]>
6288
+ }
6065
6289
 
6066
- export const SortOrder: {
6067
- asc: 'asc',
6068
- desc: 'desc'
6069
- };
6070
6290
 
6071
- export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]
6072
6291
 
6073
6292
 
6074
- export const QueryMode: {
6075
- default: 'default',
6076
- insensitive: 'insensitive'
6077
- };
6293
+ export type InboxGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
6294
+ where?: InboxWhereInput
6295
+ orderBy?: InboxOrderByWithAggregationInput | InboxOrderByWithAggregationInput[]
6296
+ by: InboxScalarFieldEnum[] | InboxScalarFieldEnum
6297
+ having?: InboxScalarWhereWithAggregatesInput
6298
+ take?: number
6299
+ skip?: number
6300
+ _count?: InboxCountAggregateInputType | true
6301
+ _avg?: InboxAvgAggregateInputType
6302
+ _sum?: InboxSumAggregateInputType
6303
+ _min?: InboxMinAggregateInputType
6304
+ _max?: InboxMaxAggregateInputType
6305
+ }
6078
6306
 
6079
- export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode]
6307
+ export type InboxGroupByOutputType = {
6308
+ eventId: string
6309
+ eventType: string
6310
+ payload:unknown
6311
+ status: string
6312
+ retryCount: number
6313
+ lastError: string | null
6314
+ createdAt: Date
6315
+ updatedAt: Date
6316
+ processedAt: Date | null
6317
+ _count: InboxCountAggregateOutputType | null
6318
+ _avg: InboxAvgAggregateOutputType | null
6319
+ _sum: InboxSumAggregateOutputType | null
6320
+ _min: InboxMinAggregateOutputType | null
6321
+ _max: InboxMaxAggregateOutputType | null
6322
+ }
6080
6323
 
6324
+ type GetInboxGroupByPayload<T extends InboxGroupByArgs> = Prisma.PrismaPromise<
6325
+ Array<
6326
+ PickEnumerable<InboxGroupByOutputType, T['by']> &
6327
+ {
6328
+ [P in ((keyof T) & (keyof InboxGroupByOutputType))]: P extends '_count'
6329
+ ? T[P] extends boolean
6330
+ ? number
6331
+ : GetScalarType<T[P], InboxGroupByOutputType[P]>
6332
+ : GetScalarType<T[P], InboxGroupByOutputType[P]>
6333
+ }
6334
+ >
6335
+ >
6081
6336
 
6082
- export const NullsOrder: {
6083
- first: 'first',
6084
- last: 'last'
6085
- };
6086
6337
 
6087
- export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]
6338
+ export type InboxSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
6339
+ eventId?: boolean
6340
+ eventType?: boolean
6341
+ payload?: boolean
6342
+ status?: boolean
6343
+ retryCount?: boolean
6344
+ lastError?: boolean
6345
+ createdAt?: boolean
6346
+ updatedAt?: boolean
6347
+ processedAt?: boolean
6348
+ }, ExtArgs["result"]["inbox"]>
6088
6349
 
6350
+ export type InboxSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
6351
+ eventId?: boolean
6352
+ eventType?: boolean
6353
+ payload?: boolean
6354
+ status?: boolean
6355
+ retryCount?: boolean
6356
+ lastError?: boolean
6357
+ createdAt?: boolean
6358
+ updatedAt?: boolean
6359
+ processedAt?: boolean
6360
+ }, ExtArgs["result"]["inbox"]>
6089
6361
 
6090
- /**
6091
- * Field references
6092
- */
6362
+ export type InboxSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
6363
+ eventId?: boolean
6364
+ eventType?: boolean
6365
+ payload?: boolean
6366
+ status?: boolean
6367
+ retryCount?: boolean
6368
+ lastError?: boolean
6369
+ createdAt?: boolean
6370
+ updatedAt?: boolean
6371
+ processedAt?: boolean
6372
+ }, ExtArgs["result"]["inbox"]>
6093
6373
 
6374
+ export type InboxSelectScalar = {
6375
+ eventId?: boolean
6376
+ eventType?: boolean
6377
+ payload?: boolean
6378
+ status?: boolean
6379
+ retryCount?: boolean
6380
+ lastError?: boolean
6381
+ createdAt?: boolean
6382
+ updatedAt?: boolean
6383
+ processedAt?: boolean
6384
+ }
6094
6385
 
6095
- /**
6096
- * Reference to a field of type 'String'
6097
- */
6098
- export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'>
6099
-
6386
+ export type InboxOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"eventId" | "eventType" | "payload" | "status" | "retryCount" | "lastError" | "createdAt" | "updatedAt" | "processedAt", ExtArgs["result"]["inbox"]>
6100
6387
 
6388
+ export type $InboxPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
6389
+ name: "Inbox"
6390
+ objects: {}
6391
+ scalars: $Extensions.GetPayloadResult<{
6392
+ eventId: string
6393
+ eventType: string
6394
+ payload:unknown
6395
+ status: string
6396
+ retryCount: number
6397
+ lastError: string | null
6398
+ createdAt: Date
6399
+ updatedAt: Date
6400
+ processedAt: Date | null
6401
+ }, ExtArgs["result"]["inbox"]>
6402
+ composites: {}
6403
+ }
6101
6404
 
6102
- /**
6103
- * Reference to a field of type 'String[]'
6104
- */
6105
- export type ListStringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String[]'>
6106
-
6405
+ type InboxGetPayload<S extends boolean | null | undefined | InboxDefaultArgs> = $Result.GetResult<Prisma.$InboxPayload, S>
6107
6406
 
6407
+ type InboxCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
6408
+ Omit<InboxFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
6409
+ select?: InboxCountAggregateInputType | true
6410
+ }
6108
6411
 
6109
- /**
6412
+ export interface InboxDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
6413
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Inbox'], meta: { name: 'Inbox' } }
6414
+ /**
6415
+ * Find zero or one Inbox that matches the filter.
6416
+ * @param {InboxFindUniqueArgs} args - Arguments to find a Inbox
6417
+ * @example
6418
+ * // Get one Inbox
6419
+ * const inbox = await prisma.inbox.findUnique({
6420
+ * where: {
6421
+ * // ... provide filter here
6422
+ * }
6423
+ * })
6424
+ */
6425
+ findUnique<T extends InboxFindUniqueArgs>(args: SelectSubset<T, InboxFindUniqueArgs<ExtArgs>>): Prisma__InboxClient<$Result.GetResult<Prisma.$InboxPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
6426
+
6427
+ /**
6428
+ * Find one Inbox that matches the filter or throw an error with `error.code='P2025'`
6429
+ * if no matches were found.
6430
+ * @param {InboxFindUniqueOrThrowArgs} args - Arguments to find a Inbox
6431
+ * @example
6432
+ * // Get one Inbox
6433
+ * const inbox = await prisma.inbox.findUniqueOrThrow({
6434
+ * where: {
6435
+ * // ... provide filter here
6436
+ * }
6437
+ * })
6438
+ */
6439
+ findUniqueOrThrow<T extends InboxFindUniqueOrThrowArgs>(args: SelectSubset<T, InboxFindUniqueOrThrowArgs<ExtArgs>>): Prisma__InboxClient<$Result.GetResult<Prisma.$InboxPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
6440
+
6441
+ /**
6442
+ * Find the first Inbox that matches the filter.
6443
+ * Note, that providing `undefined` is treated as the value not being there.
6444
+ * Read more here: https://pris.ly/d/null-undefined
6445
+ * @param {InboxFindFirstArgs} args - Arguments to find a Inbox
6446
+ * @example
6447
+ * // Get one Inbox
6448
+ * const inbox = await prisma.inbox.findFirst({
6449
+ * where: {
6450
+ * // ... provide filter here
6451
+ * }
6452
+ * })
6453
+ */
6454
+ findFirst<T extends InboxFindFirstArgs>(args?: SelectSubset<T, InboxFindFirstArgs<ExtArgs>>): Prisma__InboxClient<$Result.GetResult<Prisma.$InboxPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
6455
+
6456
+ /**
6457
+ * Find the first Inbox that matches the filter or
6458
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
6459
+ * Note, that providing `undefined` is treated as the value not being there.
6460
+ * Read more here: https://pris.ly/d/null-undefined
6461
+ * @param {InboxFindFirstOrThrowArgs} args - Arguments to find a Inbox
6462
+ * @example
6463
+ * // Get one Inbox
6464
+ * const inbox = await prisma.inbox.findFirstOrThrow({
6465
+ * where: {
6466
+ * // ... provide filter here
6467
+ * }
6468
+ * })
6469
+ */
6470
+ findFirstOrThrow<T extends InboxFindFirstOrThrowArgs>(args?: SelectSubset<T, InboxFindFirstOrThrowArgs<ExtArgs>>): Prisma__InboxClient<$Result.GetResult<Prisma.$InboxPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
6471
+
6472
+ /**
6473
+ * Find zero or more Inboxes that matches the filter.
6474
+ * Note, that providing `undefined` is treated as the value not being there.
6475
+ * Read more here: https://pris.ly/d/null-undefined
6476
+ * @param {InboxFindManyArgs} args - Arguments to filter and select certain fields only.
6477
+ * @example
6478
+ * // Get all Inboxes
6479
+ * const inboxes = await prisma.inbox.findMany()
6480
+ *
6481
+ * // Get first 10 Inboxes
6482
+ * const inboxes = await prisma.inbox.findMany({ take: 10 })
6483
+ *
6484
+ * // Only select the `eventId`
6485
+ * const inboxWithEventIdOnly = await prisma.inbox.findMany({ select: { eventId: true } })
6486
+ *
6487
+ */
6488
+ findMany<T extends InboxFindManyArgs>(args?: SelectSubset<T, InboxFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$InboxPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
6489
+
6490
+ /**
6491
+ * Create a Inbox.
6492
+ * @param {InboxCreateArgs} args - Arguments to create a Inbox.
6493
+ * @example
6494
+ * // Create one Inbox
6495
+ * const Inbox = await prisma.inbox.create({
6496
+ * data: {
6497
+ * // ... data to create a Inbox
6498
+ * }
6499
+ * })
6500
+ *
6501
+ */
6502
+ create<T extends InboxCreateArgs>(args: SelectSubset<T, InboxCreateArgs<ExtArgs>>): Prisma__InboxClient<$Result.GetResult<Prisma.$InboxPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
6503
+
6504
+ /**
6505
+ * Create many Inboxes.
6506
+ * @param {InboxCreateManyArgs} args - Arguments to create many Inboxes.
6507
+ * @example
6508
+ * // Create many Inboxes
6509
+ * const inbox = await prisma.inbox.createMany({
6510
+ * data: [
6511
+ * // ... provide data here
6512
+ * ]
6513
+ * })
6514
+ *
6515
+ */
6516
+ createMany<T extends InboxCreateManyArgs>(args?: SelectSubset<T, InboxCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
6517
+
6518
+ /**
6519
+ * Create many Inboxes and returns the data saved in the database.
6520
+ * @param {InboxCreateManyAndReturnArgs} args - Arguments to create many Inboxes.
6521
+ * @example
6522
+ * // Create many Inboxes
6523
+ * const inbox = await prisma.inbox.createManyAndReturn({
6524
+ * data: [
6525
+ * // ... provide data here
6526
+ * ]
6527
+ * })
6528
+ *
6529
+ * // Create many Inboxes and only return the `eventId`
6530
+ * const inboxWithEventIdOnly = await prisma.inbox.createManyAndReturn({
6531
+ * select: { eventId: true },
6532
+ * data: [
6533
+ * // ... provide data here
6534
+ * ]
6535
+ * })
6536
+ * Note, that providing `undefined` is treated as the value not being there.
6537
+ * Read more here: https://pris.ly/d/null-undefined
6538
+ *
6539
+ */
6540
+ createManyAndReturn<T extends InboxCreateManyAndReturnArgs>(args?: SelectSubset<T, InboxCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$InboxPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
6541
+
6542
+ /**
6543
+ * Delete a Inbox.
6544
+ * @param {InboxDeleteArgs} args - Arguments to delete one Inbox.
6545
+ * @example
6546
+ * // Delete one Inbox
6547
+ * const Inbox = await prisma.inbox.delete({
6548
+ * where: {
6549
+ * // ... filter to delete one Inbox
6550
+ * }
6551
+ * })
6552
+ *
6553
+ */
6554
+ delete<T extends InboxDeleteArgs>(args: SelectSubset<T, InboxDeleteArgs<ExtArgs>>): Prisma__InboxClient<$Result.GetResult<Prisma.$InboxPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
6555
+
6556
+ /**
6557
+ * Update one Inbox.
6558
+ * @param {InboxUpdateArgs} args - Arguments to update one Inbox.
6559
+ * @example
6560
+ * // Update one Inbox
6561
+ * const inbox = await prisma.inbox.update({
6562
+ * where: {
6563
+ * // ... provide filter here
6564
+ * },
6565
+ * data: {
6566
+ * // ... provide data here
6567
+ * }
6568
+ * })
6569
+ *
6570
+ */
6571
+ update<T extends InboxUpdateArgs>(args: SelectSubset<T, InboxUpdateArgs<ExtArgs>>): Prisma__InboxClient<$Result.GetResult<Prisma.$InboxPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
6572
+
6573
+ /**
6574
+ * Delete zero or more Inboxes.
6575
+ * @param {InboxDeleteManyArgs} args - Arguments to filter Inboxes to delete.
6576
+ * @example
6577
+ * // Delete a few Inboxes
6578
+ * const { count } = await prisma.inbox.deleteMany({
6579
+ * where: {
6580
+ * // ... provide filter here
6581
+ * }
6582
+ * })
6583
+ *
6584
+ */
6585
+ deleteMany<T extends InboxDeleteManyArgs>(args?: SelectSubset<T, InboxDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
6586
+
6587
+ /**
6588
+ * Update zero or more Inboxes.
6589
+ * Note, that providing `undefined` is treated as the value not being there.
6590
+ * Read more here: https://pris.ly/d/null-undefined
6591
+ * @param {InboxUpdateManyArgs} args - Arguments to update one or more rows.
6592
+ * @example
6593
+ * // Update many Inboxes
6594
+ * const inbox = await prisma.inbox.updateMany({
6595
+ * where: {
6596
+ * // ... provide filter here
6597
+ * },
6598
+ * data: {
6599
+ * // ... provide data here
6600
+ * }
6601
+ * })
6602
+ *
6603
+ */
6604
+ updateMany<T extends InboxUpdateManyArgs>(args: SelectSubset<T, InboxUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
6605
+
6606
+ /**
6607
+ * Update zero or more Inboxes and returns the data updated in the database.
6608
+ * @param {InboxUpdateManyAndReturnArgs} args - Arguments to update many Inboxes.
6609
+ * @example
6610
+ * // Update many Inboxes
6611
+ * const inbox = await prisma.inbox.updateManyAndReturn({
6612
+ * where: {
6613
+ * // ... provide filter here
6614
+ * },
6615
+ * data: [
6616
+ * // ... provide data here
6617
+ * ]
6618
+ * })
6619
+ *
6620
+ * // Update zero or more Inboxes and only return the `eventId`
6621
+ * const inboxWithEventIdOnly = await prisma.inbox.updateManyAndReturn({
6622
+ * select: { eventId: true },
6623
+ * where: {
6624
+ * // ... provide filter here
6625
+ * },
6626
+ * data: [
6627
+ * // ... provide data here
6628
+ * ]
6629
+ * })
6630
+ * Note, that providing `undefined` is treated as the value not being there.
6631
+ * Read more here: https://pris.ly/d/null-undefined
6632
+ *
6633
+ */
6634
+ updateManyAndReturn<T extends InboxUpdateManyAndReturnArgs>(args: SelectSubset<T, InboxUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$InboxPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
6635
+
6636
+ /**
6637
+ * Create or update one Inbox.
6638
+ * @param {InboxUpsertArgs} args - Arguments to update or create a Inbox.
6639
+ * @example
6640
+ * // Update or create a Inbox
6641
+ * const inbox = await prisma.inbox.upsert({
6642
+ * create: {
6643
+ * // ... data to create a Inbox
6644
+ * },
6645
+ * update: {
6646
+ * // ... in case it already exists, update
6647
+ * },
6648
+ * where: {
6649
+ * // ... the filter for the Inbox we want to update
6650
+ * }
6651
+ * })
6652
+ */
6653
+ upsert<T extends InboxUpsertArgs>(args: SelectSubset<T, InboxUpsertArgs<ExtArgs>>): Prisma__InboxClient<$Result.GetResult<Prisma.$InboxPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
6654
+
6655
+
6656
+ /**
6657
+ * Count the number of Inboxes.
6658
+ * Note, that providing `undefined` is treated as the value not being there.
6659
+ * Read more here: https://pris.ly/d/null-undefined
6660
+ * @param {InboxCountArgs} args - Arguments to filter Inboxes to count.
6661
+ * @example
6662
+ * // Count the number of Inboxes
6663
+ * const count = await prisma.inbox.count({
6664
+ * where: {
6665
+ * // ... the filter for the Inboxes we want to count
6666
+ * }
6667
+ * })
6668
+ **/
6669
+ count<T extends InboxCountArgs>(
6670
+ args?: Subset<T, InboxCountArgs>,
6671
+ ): Prisma.PrismaPromise<
6672
+ T extends $Utils.Record<'select', any>
6673
+ ? T['select'] extends true
6674
+ ? number
6675
+ : GetScalarType<T['select'], InboxCountAggregateOutputType>
6676
+ : number
6677
+ >
6678
+
6679
+ /**
6680
+ * Allows you to perform aggregations operations on a Inbox.
6681
+ * Note, that providing `undefined` is treated as the value not being there.
6682
+ * Read more here: https://pris.ly/d/null-undefined
6683
+ * @param {InboxAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
6684
+ * @example
6685
+ * // Ordered by age ascending
6686
+ * // Where email contains prisma.io
6687
+ * // Limited to the 10 users
6688
+ * const aggregations = await prisma.user.aggregate({
6689
+ * _avg: {
6690
+ * age: true,
6691
+ * },
6692
+ * where: {
6693
+ * email: {
6694
+ * contains: "prisma.io",
6695
+ * },
6696
+ * },
6697
+ * orderBy: {
6698
+ * age: "asc",
6699
+ * },
6700
+ * take: 10,
6701
+ * })
6702
+ **/
6703
+ aggregate<T extends InboxAggregateArgs>(args: Subset<T, InboxAggregateArgs>): Prisma.PrismaPromise<GetInboxAggregateType<T>>
6704
+
6705
+ /**
6706
+ * Group by Inbox.
6707
+ * Note, that providing `undefined` is treated as the value not being there.
6708
+ * Read more here: https://pris.ly/d/null-undefined
6709
+ * @param {InboxGroupByArgs} args - Group by arguments.
6710
+ * @example
6711
+ * // Group by city, order by createdAt, get count
6712
+ * const result = await prisma.user.groupBy({
6713
+ * by: ['city', 'createdAt'],
6714
+ * orderBy: {
6715
+ * createdAt: true
6716
+ * },
6717
+ * _count: {
6718
+ * _all: true
6719
+ * },
6720
+ * })
6721
+ *
6722
+ **/
6723
+ groupBy<
6724
+ T extends InboxGroupByArgs,
6725
+ HasSelectOrTake extends Or<
6726
+ Extends<'skip', Keys<T>>,
6727
+ Extends<'take', Keys<T>>
6728
+ >,
6729
+ OrderByArg extends True extends HasSelectOrTake
6730
+ ? { orderBy: InboxGroupByArgs['orderBy'] }
6731
+ : { orderBy?: InboxGroupByArgs['orderBy'] },
6732
+ OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
6733
+ ByFields extends MaybeTupleToUnion<T['by']>,
6734
+ ByValid extends Has<ByFields, OrderFields>,
6735
+ HavingFields extends GetHavingFields<T['having']>,
6736
+ HavingValid extends Has<ByFields, HavingFields>,
6737
+ ByEmpty extends T['by'] extends never[] ? True : False,
6738
+ InputErrors extends ByEmpty extends True
6739
+ ? `Error: "by" must not be empty.`
6740
+ : HavingValid extends False
6741
+ ? {
6742
+ [P in HavingFields]: P extends ByFields
6743
+ ? never
6744
+ : P extends string
6745
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
6746
+ : [
6747
+ Error,
6748
+ 'Field ',
6749
+ P,
6750
+ ` in "having" needs to be provided in "by"`,
6751
+ ]
6752
+ }[HavingFields]
6753
+ : 'take' extends Keys<T>
6754
+ ? 'orderBy' extends Keys<T>
6755
+ ? ByValid extends True
6756
+ ? {}
6757
+ : {
6758
+ [P in OrderFields]: P extends ByFields
6759
+ ? never
6760
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
6761
+ }[OrderFields]
6762
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
6763
+ : 'skip' extends Keys<T>
6764
+ ? 'orderBy' extends Keys<T>
6765
+ ? ByValid extends True
6766
+ ? {}
6767
+ : {
6768
+ [P in OrderFields]: P extends ByFields
6769
+ ? never
6770
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
6771
+ }[OrderFields]
6772
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
6773
+ : ByValid extends True
6774
+ ? {}
6775
+ : {
6776
+ [P in OrderFields]: P extends ByFields
6777
+ ? never
6778
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
6779
+ }[OrderFields]
6780
+ >(args: SubsetIntersection<T, InboxGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetInboxGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
6781
+ /**
6782
+ * Fields of the Inbox model
6783
+ */
6784
+ readonly fields: InboxFieldRefs;
6785
+ }
6786
+
6787
+ /**
6788
+ * The delegate class that acts as a "Promise-like" for Inbox.
6789
+ * Why is this prefixed with `Prisma__`?
6790
+ * Because we want to prevent naming conflicts as mentioned in
6791
+ * https://github.com/prisma/prisma-client-js/issues/707
6792
+ */
6793
+ export interface Prisma__InboxClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
6794
+ readonly [Symbol.toStringTag]: "PrismaPromise"
6795
+ /**
6796
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
6797
+ * @param onfulfilled The callback to execute when the Promise is resolved.
6798
+ * @param onrejected The callback to execute when the Promise is rejected.
6799
+ * @returns A Promise for the completion of which ever callback is executed.
6800
+ */
6801
+ 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>
6802
+ /**
6803
+ * Attaches a callback for only the rejection of the Promise.
6804
+ * @param onrejected The callback to execute when the Promise is rejected.
6805
+ * @returns A Promise for the completion of the callback.
6806
+ */
6807
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
6808
+ /**
6809
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
6810
+ * resolved value cannot be modified from the callback.
6811
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
6812
+ * @returns A Promise for the completion of the callback.
6813
+ */
6814
+ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
6815
+ }
6816
+
6817
+
6818
+
6819
+
6820
+ /**
6821
+ * Fields of the Inbox model
6822
+ */
6823
+ interface InboxFieldRefs {
6824
+ readonly eventId: FieldRef<"Inbox", 'String'>
6825
+ readonly eventType: FieldRef<"Inbox", 'String'>
6826
+ readonly payload: FieldRef<"Inbox", 'Json'>
6827
+ readonly status: FieldRef<"Inbox", 'String'>
6828
+ readonly retryCount: FieldRef<"Inbox", 'Int'>
6829
+ readonly lastError: FieldRef<"Inbox", 'String'>
6830
+ readonly createdAt: FieldRef<"Inbox", 'DateTime'>
6831
+ readonly updatedAt: FieldRef<"Inbox", 'DateTime'>
6832
+ readonly processedAt: FieldRef<"Inbox", 'DateTime'>
6833
+ }
6834
+
6835
+
6836
+ // Custom InputTypes
6837
+ /**
6838
+ * Inbox findUnique
6839
+ */
6840
+ export type InboxFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
6841
+ /**
6842
+ * Select specific fields to fetch from the Inbox
6843
+ */
6844
+ select?: InboxSelect<ExtArgs> | null
6845
+ /**
6846
+ * Omit specific fields from the Inbox
6847
+ */
6848
+ omit?: InboxOmit<ExtArgs> | null
6849
+ /**
6850
+ * Filter, which Inbox to fetch.
6851
+ */
6852
+ where: InboxWhereUniqueInput
6853
+ }
6854
+
6855
+ /**
6856
+ * Inbox findUniqueOrThrow
6857
+ */
6858
+ export type InboxFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
6859
+ /**
6860
+ * Select specific fields to fetch from the Inbox
6861
+ */
6862
+ select?: InboxSelect<ExtArgs> | null
6863
+ /**
6864
+ * Omit specific fields from the Inbox
6865
+ */
6866
+ omit?: InboxOmit<ExtArgs> | null
6867
+ /**
6868
+ * Filter, which Inbox to fetch.
6869
+ */
6870
+ where: InboxWhereUniqueInput
6871
+ }
6872
+
6873
+ /**
6874
+ * Inbox findFirst
6875
+ */
6876
+ export type InboxFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
6877
+ /**
6878
+ * Select specific fields to fetch from the Inbox
6879
+ */
6880
+ select?: InboxSelect<ExtArgs> | null
6881
+ /**
6882
+ * Omit specific fields from the Inbox
6883
+ */
6884
+ omit?: InboxOmit<ExtArgs> | null
6885
+ /**
6886
+ * Filter, which Inbox to fetch.
6887
+ */
6888
+ where?: InboxWhereInput
6889
+ /**
6890
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
6891
+ *
6892
+ * Determine the order of Inboxes to fetch.
6893
+ */
6894
+ orderBy?: InboxOrderByWithRelationInput | InboxOrderByWithRelationInput[]
6895
+ /**
6896
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
6897
+ *
6898
+ * Sets the position for searching for Inboxes.
6899
+ */
6900
+ cursor?: InboxWhereUniqueInput
6901
+ /**
6902
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
6903
+ *
6904
+ * Take `±n` Inboxes from the position of the cursor.
6905
+ */
6906
+ take?: number
6907
+ /**
6908
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
6909
+ *
6910
+ * Skip the first `n` Inboxes.
6911
+ */
6912
+ skip?: number
6913
+ /**
6914
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
6915
+ *
6916
+ * Filter by unique combinations of Inboxes.
6917
+ */
6918
+ distinct?: InboxScalarFieldEnum | InboxScalarFieldEnum[]
6919
+ }
6920
+
6921
+ /**
6922
+ * Inbox findFirstOrThrow
6923
+ */
6924
+ export type InboxFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
6925
+ /**
6926
+ * Select specific fields to fetch from the Inbox
6927
+ */
6928
+ select?: InboxSelect<ExtArgs> | null
6929
+ /**
6930
+ * Omit specific fields from the Inbox
6931
+ */
6932
+ omit?: InboxOmit<ExtArgs> | null
6933
+ /**
6934
+ * Filter, which Inbox to fetch.
6935
+ */
6936
+ where?: InboxWhereInput
6937
+ /**
6938
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
6939
+ *
6940
+ * Determine the order of Inboxes to fetch.
6941
+ */
6942
+ orderBy?: InboxOrderByWithRelationInput | InboxOrderByWithRelationInput[]
6943
+ /**
6944
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
6945
+ *
6946
+ * Sets the position for searching for Inboxes.
6947
+ */
6948
+ cursor?: InboxWhereUniqueInput
6949
+ /**
6950
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
6951
+ *
6952
+ * Take `±n` Inboxes from the position of the cursor.
6953
+ */
6954
+ take?: number
6955
+ /**
6956
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
6957
+ *
6958
+ * Skip the first `n` Inboxes.
6959
+ */
6960
+ skip?: number
6961
+ /**
6962
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
6963
+ *
6964
+ * Filter by unique combinations of Inboxes.
6965
+ */
6966
+ distinct?: InboxScalarFieldEnum | InboxScalarFieldEnum[]
6967
+ }
6968
+
6969
+ /**
6970
+ * Inbox findMany
6971
+ */
6972
+ export type InboxFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
6973
+ /**
6974
+ * Select specific fields to fetch from the Inbox
6975
+ */
6976
+ select?: InboxSelect<ExtArgs> | null
6977
+ /**
6978
+ * Omit specific fields from the Inbox
6979
+ */
6980
+ omit?: InboxOmit<ExtArgs> | null
6981
+ /**
6982
+ * Filter, which Inboxes to fetch.
6983
+ */
6984
+ where?: InboxWhereInput
6985
+ /**
6986
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
6987
+ *
6988
+ * Determine the order of Inboxes to fetch.
6989
+ */
6990
+ orderBy?: InboxOrderByWithRelationInput | InboxOrderByWithRelationInput[]
6991
+ /**
6992
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
6993
+ *
6994
+ * Sets the position for listing Inboxes.
6995
+ */
6996
+ cursor?: InboxWhereUniqueInput
6997
+ /**
6998
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
6999
+ *
7000
+ * Take `±n` Inboxes from the position of the cursor.
7001
+ */
7002
+ take?: number
7003
+ /**
7004
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
7005
+ *
7006
+ * Skip the first `n` Inboxes.
7007
+ */
7008
+ skip?: number
7009
+ distinct?: InboxScalarFieldEnum | InboxScalarFieldEnum[]
7010
+ }
7011
+
7012
+ /**
7013
+ * Inbox create
7014
+ */
7015
+ export type InboxCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
7016
+ /**
7017
+ * Select specific fields to fetch from the Inbox
7018
+ */
7019
+ select?: InboxSelect<ExtArgs> | null
7020
+ /**
7021
+ * Omit specific fields from the Inbox
7022
+ */
7023
+ omit?: InboxOmit<ExtArgs> | null
7024
+ /**
7025
+ * The data needed to create a Inbox.
7026
+ */
7027
+ data: XOR<InboxCreateInput, InboxUncheckedCreateInput>
7028
+ }
7029
+
7030
+ /**
7031
+ * Inbox createMany
7032
+ */
7033
+ export type InboxCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
7034
+ /**
7035
+ * The data used to create many Inboxes.
7036
+ */
7037
+ data: InboxCreateManyInput | InboxCreateManyInput[]
7038
+ skipDuplicates?: boolean
7039
+ }
7040
+
7041
+ /**
7042
+ * Inbox createManyAndReturn
7043
+ */
7044
+ export type InboxCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
7045
+ /**
7046
+ * Select specific fields to fetch from the Inbox
7047
+ */
7048
+ select?: InboxSelectCreateManyAndReturn<ExtArgs> | null
7049
+ /**
7050
+ * Omit specific fields from the Inbox
7051
+ */
7052
+ omit?: InboxOmit<ExtArgs> | null
7053
+ /**
7054
+ * The data used to create many Inboxes.
7055
+ */
7056
+ data: InboxCreateManyInput | InboxCreateManyInput[]
7057
+ skipDuplicates?: boolean
7058
+ }
7059
+
7060
+ /**
7061
+ * Inbox update
7062
+ */
7063
+ export type InboxUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
7064
+ /**
7065
+ * Select specific fields to fetch from the Inbox
7066
+ */
7067
+ select?: InboxSelect<ExtArgs> | null
7068
+ /**
7069
+ * Omit specific fields from the Inbox
7070
+ */
7071
+ omit?: InboxOmit<ExtArgs> | null
7072
+ /**
7073
+ * The data needed to update a Inbox.
7074
+ */
7075
+ data: XOR<InboxUpdateInput, InboxUncheckedUpdateInput>
7076
+ /**
7077
+ * Choose, which Inbox to update.
7078
+ */
7079
+ where: InboxWhereUniqueInput
7080
+ }
7081
+
7082
+ /**
7083
+ * Inbox updateMany
7084
+ */
7085
+ export type InboxUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
7086
+ /**
7087
+ * The data used to update Inboxes.
7088
+ */
7089
+ data: XOR<InboxUpdateManyMutationInput, InboxUncheckedUpdateManyInput>
7090
+ /**
7091
+ * Filter which Inboxes to update
7092
+ */
7093
+ where?: InboxWhereInput
7094
+ /**
7095
+ * Limit how many Inboxes to update.
7096
+ */
7097
+ limit?: number
7098
+ }
7099
+
7100
+ /**
7101
+ * Inbox updateManyAndReturn
7102
+ */
7103
+ export type InboxUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
7104
+ /**
7105
+ * Select specific fields to fetch from the Inbox
7106
+ */
7107
+ select?: InboxSelectUpdateManyAndReturn<ExtArgs> | null
7108
+ /**
7109
+ * Omit specific fields from the Inbox
7110
+ */
7111
+ omit?: InboxOmit<ExtArgs> | null
7112
+ /**
7113
+ * The data used to update Inboxes.
7114
+ */
7115
+ data: XOR<InboxUpdateManyMutationInput, InboxUncheckedUpdateManyInput>
7116
+ /**
7117
+ * Filter which Inboxes to update
7118
+ */
7119
+ where?: InboxWhereInput
7120
+ /**
7121
+ * Limit how many Inboxes to update.
7122
+ */
7123
+ limit?: number
7124
+ }
7125
+
7126
+ /**
7127
+ * Inbox upsert
7128
+ */
7129
+ export type InboxUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
7130
+ /**
7131
+ * Select specific fields to fetch from the Inbox
7132
+ */
7133
+ select?: InboxSelect<ExtArgs> | null
7134
+ /**
7135
+ * Omit specific fields from the Inbox
7136
+ */
7137
+ omit?: InboxOmit<ExtArgs> | null
7138
+ /**
7139
+ * The filter to search for the Inbox to update in case it exists.
7140
+ */
7141
+ where: InboxWhereUniqueInput
7142
+ /**
7143
+ * In case the Inbox found by the `where` argument doesn't exist, create a new Inbox with this data.
7144
+ */
7145
+ create: XOR<InboxCreateInput, InboxUncheckedCreateInput>
7146
+ /**
7147
+ * In case the Inbox was found with the provided `where` argument, update it with this data.
7148
+ */
7149
+ update: XOR<InboxUpdateInput, InboxUncheckedUpdateInput>
7150
+ }
7151
+
7152
+ /**
7153
+ * Inbox delete
7154
+ */
7155
+ export type InboxDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
7156
+ /**
7157
+ * Select specific fields to fetch from the Inbox
7158
+ */
7159
+ select?: InboxSelect<ExtArgs> | null
7160
+ /**
7161
+ * Omit specific fields from the Inbox
7162
+ */
7163
+ omit?: InboxOmit<ExtArgs> | null
7164
+ /**
7165
+ * Filter which Inbox to delete.
7166
+ */
7167
+ where: InboxWhereUniqueInput
7168
+ }
7169
+
7170
+ /**
7171
+ * Inbox deleteMany
7172
+ */
7173
+ export type InboxDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
7174
+ /**
7175
+ * Filter which Inboxes to delete
7176
+ */
7177
+ where?: InboxWhereInput
7178
+ /**
7179
+ * Limit how many Inboxes to delete.
7180
+ */
7181
+ limit?: number
7182
+ }
7183
+
7184
+ /**
7185
+ * Inbox without action
7186
+ */
7187
+ export type InboxDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
7188
+ /**
7189
+ * Select specific fields to fetch from the Inbox
7190
+ */
7191
+ select?: InboxSelect<ExtArgs> | null
7192
+ /**
7193
+ * Omit specific fields from the Inbox
7194
+ */
7195
+ omit?: InboxOmit<ExtArgs> | null
7196
+ }
7197
+
7198
+
7199
+ /**
7200
+ * Enums
7201
+ */
7202
+
7203
+ export const TransactionIsolationLevel: {
7204
+ ReadUncommitted: 'ReadUncommitted',
7205
+ ReadCommitted: 'ReadCommitted',
7206
+ RepeatableRead: 'RepeatableRead',
7207
+ Serializable: 'Serializable'
7208
+ };
7209
+
7210
+ export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
7211
+
7212
+
7213
+ export const WarehouseScalarFieldEnum: {
7214
+ id: 'id',
7215
+ code: 'code',
7216
+ name: 'name',
7217
+ province: 'province',
7218
+ district: 'district',
7219
+ ward: 'ward',
7220
+ address: 'address',
7221
+ isActive: 'isActive',
7222
+ createdAt: 'createdAt',
7223
+ updatedAt: 'updatedAt'
7224
+ };
7225
+
7226
+ export type WarehouseScalarFieldEnum = (typeof WarehouseScalarFieldEnum)[keyof typeof WarehouseScalarFieldEnum]
7227
+
7228
+
7229
+ export const InventoryItemScalarFieldEnum: {
7230
+ id: 'id',
7231
+ productId: 'productId',
7232
+ warehouseId: 'warehouseId',
7233
+ skuId: 'skuId',
7234
+ quantityOnHand: 'quantityOnHand',
7235
+ quantityReserved: 'quantityReserved',
7236
+ version: 'version',
7237
+ createdAt: 'createdAt',
7238
+ updatedAt: 'updatedAt'
7239
+ };
7240
+
7241
+ export type InventoryItemScalarFieldEnum = (typeof InventoryItemScalarFieldEnum)[keyof typeof InventoryItemScalarFieldEnum]
7242
+
7243
+
7244
+ export const InventoryReservationScalarFieldEnum: {
7245
+ id: 'id',
7246
+ warehouseId: 'warehouseId',
7247
+ orderId: 'orderId',
7248
+ skuId: 'skuId',
7249
+ quantity: 'quantity',
7250
+ status: 'status',
7251
+ expiredAt: 'expiredAt',
7252
+ createdAt: 'createdAt',
7253
+ updatedAt: 'updatedAt'
7254
+ };
7255
+
7256
+ export type InventoryReservationScalarFieldEnum = (typeof InventoryReservationScalarFieldEnum)[keyof typeof InventoryReservationScalarFieldEnum]
7257
+
7258
+
7259
+ export const InventoryLedgerScalarFieldEnum: {
7260
+ id: 'id',
7261
+ inventoryItemId: 'inventoryItemId',
7262
+ warehouseId: 'warehouseId',
7263
+ skuId: 'skuId',
7264
+ type: 'type',
7265
+ amount: 'amount',
7266
+ balanceAfter: 'balanceAfter',
7267
+ referenceId: 'referenceId',
7268
+ note: 'note',
7269
+ createdAt: 'createdAt',
7270
+ updatedAt: 'updatedAt'
7271
+ };
7272
+
7273
+ export type InventoryLedgerScalarFieldEnum = (typeof InventoryLedgerScalarFieldEnum)[keyof typeof InventoryLedgerScalarFieldEnum]
7274
+
7275
+
7276
+ export const InboxScalarFieldEnum: {
7277
+ eventId: 'eventId',
7278
+ eventType: 'eventType',
7279
+ payload: 'payload',
7280
+ status: 'status',
7281
+ retryCount: 'retryCount',
7282
+ lastError: 'lastError',
7283
+ createdAt: 'createdAt',
7284
+ updatedAt: 'updatedAt',
7285
+ processedAt: 'processedAt'
7286
+ };
7287
+
7288
+ export type InboxScalarFieldEnum = (typeof InboxScalarFieldEnum)[keyof typeof InboxScalarFieldEnum]
7289
+
7290
+
7291
+ export const SortOrder: {
7292
+ asc: 'asc',
7293
+ desc: 'desc'
7294
+ };
7295
+
7296
+ export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]
7297
+
7298
+
7299
+ export const JsonNullValueInput: {
7300
+ JsonNull: typeof JsonNull
7301
+ };
7302
+
7303
+ export type JsonNullValueInput = (typeof JsonNullValueInput)[keyof typeof JsonNullValueInput]
7304
+
7305
+
7306
+ export const QueryMode: {
7307
+ default: 'default',
7308
+ insensitive: 'insensitive'
7309
+ };
7310
+
7311
+ export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode]
7312
+
7313
+
7314
+ export const NullsOrder: {
7315
+ first: 'first',
7316
+ last: 'last'
7317
+ };
7318
+
7319
+ export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]
7320
+
7321
+
7322
+ export const JsonNullValueFilter: {
7323
+ DbNull: typeof DbNull,
7324
+ JsonNull: typeof JsonNull,
7325
+ AnyNull: typeof AnyNull
7326
+ };
7327
+
7328
+ export type JsonNullValueFilter = (typeof JsonNullValueFilter)[keyof typeof JsonNullValueFilter]
7329
+
7330
+
7331
+ /**
7332
+ * Field references
7333
+ */
7334
+
7335
+
7336
+ /**
7337
+ * Reference to a field of type 'String'
7338
+ */
7339
+ export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'>
7340
+
7341
+
7342
+
7343
+ /**
7344
+ * Reference to a field of type 'String[]'
7345
+ */
7346
+ export type ListStringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String[]'>
7347
+
7348
+
7349
+
7350
+ /**
6110
7351
  * Reference to a field of type 'Boolean'
6111
7352
  */
6112
7353
  export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'>
@@ -6141,6 +7382,20 @@ export namespace Prisma {
6141
7382
 
6142
7383
 
6143
7384
 
7385
+ /**
7386
+ * Reference to a field of type 'Json'
7387
+ */
7388
+ export type JsonFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Json'>
7389
+
7390
+
7391
+
7392
+ /**
7393
+ * Reference to a field of type 'QueryMode'
7394
+ */
7395
+ export type EnumQueryModeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'QueryMode'>
7396
+
7397
+
7398
+
6144
7399
  /**
6145
7400
  * Reference to a field of type 'Float'
6146
7401
  */
@@ -6249,8 +7504,9 @@ export namespace Prisma {
6249
7504
  OR?: InventoryItemWhereInput[]
6250
7505
  NOT?: InventoryItemWhereInput | InventoryItemWhereInput[]
6251
7506
  id?: UuidFilter<"InventoryItem"> | string
7507
+ productId?: UuidFilter<"InventoryItem"> | string
6252
7508
  warehouseId?: UuidFilter<"InventoryItem"> | string
6253
- sku?: StringFilter<"InventoryItem"> | string
7509
+ skuId?: UuidFilter<"InventoryItem"> | string
6254
7510
  quantityOnHand?: IntFilter<"InventoryItem"> | number
6255
7511
  quantityReserved?: IntFilter<"InventoryItem"> | number
6256
7512
  version?: IntFilter<"InventoryItem"> | number
@@ -6261,8 +7517,9 @@ export namespace Prisma {
6261
7517
 
6262
7518
  export type InventoryItemOrderByWithRelationInput = {
6263
7519
  id?: SortOrder
7520
+ productId?: SortOrder
6264
7521
  warehouseId?: SortOrder
6265
- sku?: SortOrder
7522
+ skuId?: SortOrder
6266
7523
  quantityOnHand?: SortOrder
6267
7524
  quantityReserved?: SortOrder
6268
7525
  version?: SortOrder
@@ -6273,24 +7530,26 @@ export namespace Prisma {
6273
7530
 
6274
7531
  export type InventoryItemWhereUniqueInput = Prisma.AtLeast<{
6275
7532
  id?: string
6276
- warehouseId_sku?: InventoryItemWarehouseIdSkuCompoundUniqueInput
7533
+ warehouseId_skuId?: InventoryItemWarehouseIdSkuIdCompoundUniqueInput
6277
7534
  AND?: InventoryItemWhereInput | InventoryItemWhereInput[]
6278
7535
  OR?: InventoryItemWhereInput[]
6279
7536
  NOT?: InventoryItemWhereInput | InventoryItemWhereInput[]
7537
+ productId?: UuidFilter<"InventoryItem"> | string
6280
7538
  warehouseId?: UuidFilter<"InventoryItem"> | string
6281
- sku?: StringFilter<"InventoryItem"> | string
7539
+ skuId?: UuidFilter<"InventoryItem"> | string
6282
7540
  quantityOnHand?: IntFilter<"InventoryItem"> | number
6283
7541
  quantityReserved?: IntFilter<"InventoryItem"> | number
6284
7542
  version?: IntFilter<"InventoryItem"> | number
6285
7543
  createdAt?: DateTimeFilter<"InventoryItem"> | Date | string
6286
7544
  updatedAt?: DateTimeFilter<"InventoryItem"> | Date | string
6287
7545
  warehouse?: XOR<WarehouseScalarRelationFilter, WarehouseWhereInput>
6288
- }, "id" | "warehouseId_sku">
7546
+ }, "id" | "warehouseId_skuId">
6289
7547
 
6290
7548
  export type InventoryItemOrderByWithAggregationInput = {
6291
7549
  id?: SortOrder
7550
+ productId?: SortOrder
6292
7551
  warehouseId?: SortOrder
6293
- sku?: SortOrder
7552
+ skuId?: SortOrder
6294
7553
  quantityOnHand?: SortOrder
6295
7554
  quantityReserved?: SortOrder
6296
7555
  version?: SortOrder
@@ -6308,8 +7567,9 @@ export namespace Prisma {
6308
7567
  OR?: InventoryItemScalarWhereWithAggregatesInput[]
6309
7568
  NOT?: InventoryItemScalarWhereWithAggregatesInput | InventoryItemScalarWhereWithAggregatesInput[]
6310
7569
  id?: UuidWithAggregatesFilter<"InventoryItem"> | string
7570
+ productId?: UuidWithAggregatesFilter<"InventoryItem"> | string
6311
7571
  warehouseId?: UuidWithAggregatesFilter<"InventoryItem"> | string
6312
- sku?: StringWithAggregatesFilter<"InventoryItem"> | string
7572
+ skuId?: UuidWithAggregatesFilter<"InventoryItem"> | string
6313
7573
  quantityOnHand?: IntWithAggregatesFilter<"InventoryItem"> | number
6314
7574
  quantityReserved?: IntWithAggregatesFilter<"InventoryItem"> | number
6315
7575
  version?: IntWithAggregatesFilter<"InventoryItem"> | number
@@ -6323,8 +7583,8 @@ export namespace Prisma {
6323
7583
  NOT?: InventoryReservationWhereInput | InventoryReservationWhereInput[]
6324
7584
  id?: UuidFilter<"InventoryReservation"> | string
6325
7585
  warehouseId?: UuidFilter<"InventoryReservation"> | string
6326
- orderId?: StringFilter<"InventoryReservation"> | string
6327
- sku?: StringFilter<"InventoryReservation"> | string
7586
+ orderId?: UuidFilter<"InventoryReservation"> | string
7587
+ skuId?: UuidFilter<"InventoryReservation"> | string
6328
7588
  quantity?: IntFilter<"InventoryReservation"> | number
6329
7589
  status?: StringFilter<"InventoryReservation"> | string
6330
7590
  expiredAt?: DateTimeFilter<"InventoryReservation"> | Date | string
@@ -6337,7 +7597,7 @@ export namespace Prisma {
6337
7597
  id?: SortOrder
6338
7598
  warehouseId?: SortOrder
6339
7599
  orderId?: SortOrder
6340
- sku?: SortOrder
7600
+ skuId?: SortOrder
6341
7601
  quantity?: SortOrder
6342
7602
  status?: SortOrder
6343
7603
  expiredAt?: SortOrder
@@ -6348,26 +7608,26 @@ export namespace Prisma {
6348
7608
 
6349
7609
  export type InventoryReservationWhereUniqueInput = Prisma.AtLeast<{
6350
7610
  id?: string
6351
- orderId_sku?: InventoryReservationOrderIdSkuCompoundUniqueInput
7611
+ orderId_skuId?: InventoryReservationOrderIdSkuIdCompoundUniqueInput
6352
7612
  AND?: InventoryReservationWhereInput | InventoryReservationWhereInput[]
6353
7613
  OR?: InventoryReservationWhereInput[]
6354
7614
  NOT?: InventoryReservationWhereInput | InventoryReservationWhereInput[]
6355
7615
  warehouseId?: UuidFilter<"InventoryReservation"> | string
6356
- orderId?: StringFilter<"InventoryReservation"> | string
6357
- sku?: StringFilter<"InventoryReservation"> | string
7616
+ orderId?: UuidFilter<"InventoryReservation"> | string
7617
+ skuId?: UuidFilter<"InventoryReservation"> | string
6358
7618
  quantity?: IntFilter<"InventoryReservation"> | number
6359
7619
  status?: StringFilter<"InventoryReservation"> | string
6360
7620
  expiredAt?: DateTimeFilter<"InventoryReservation"> | Date | string
6361
7621
  createdAt?: DateTimeFilter<"InventoryReservation"> | Date | string
6362
7622
  updatedAt?: DateTimeFilter<"InventoryReservation"> | Date | string
6363
7623
  warehouse?: XOR<WarehouseScalarRelationFilter, WarehouseWhereInput>
6364
- }, "id" | "orderId_sku">
7624
+ }, "id" | "orderId_skuId">
6365
7625
 
6366
7626
  export type InventoryReservationOrderByWithAggregationInput = {
6367
7627
  id?: SortOrder
6368
7628
  warehouseId?: SortOrder
6369
7629
  orderId?: SortOrder
6370
- sku?: SortOrder
7630
+ skuId?: SortOrder
6371
7631
  quantity?: SortOrder
6372
7632
  status?: SortOrder
6373
7633
  expiredAt?: SortOrder
@@ -6386,8 +7646,8 @@ export namespace Prisma {
6386
7646
  NOT?: InventoryReservationScalarWhereWithAggregatesInput | InventoryReservationScalarWhereWithAggregatesInput[]
6387
7647
  id?: UuidWithAggregatesFilter<"InventoryReservation"> | string
6388
7648
  warehouseId?: UuidWithAggregatesFilter<"InventoryReservation"> | string
6389
- orderId?: StringWithAggregatesFilter<"InventoryReservation"> | string
6390
- sku?: StringWithAggregatesFilter<"InventoryReservation"> | string
7649
+ orderId?: UuidWithAggregatesFilter<"InventoryReservation"> | string
7650
+ skuId?: UuidWithAggregatesFilter<"InventoryReservation"> | string
6391
7651
  quantity?: IntWithAggregatesFilter<"InventoryReservation"> | number
6392
7652
  status?: StringWithAggregatesFilter<"InventoryReservation"> | string
6393
7653
  expiredAt?: DateTimeWithAggregatesFilter<"InventoryReservation"> | Date | string
@@ -6400,27 +7660,31 @@ export namespace Prisma {
6400
7660
  OR?: InventoryLedgerWhereInput[]
6401
7661
  NOT?: InventoryLedgerWhereInput | InventoryLedgerWhereInput[]
6402
7662
  id?: UuidFilter<"InventoryLedger"> | string
7663
+ inventoryItemId?: UuidFilter<"InventoryLedger"> | string
6403
7664
  warehouseId?: UuidFilter<"InventoryLedger"> | string
6404
- sku?: StringFilter<"InventoryLedger"> | string
7665
+ skuId?: UuidFilter<"InventoryLedger"> | string
6405
7666
  type?: StringFilter<"InventoryLedger"> | string
6406
7667
  amount?: IntFilter<"InventoryLedger"> | number
6407
7668
  balanceAfter?: IntFilter<"InventoryLedger"> | number
6408
7669
  referenceId?: StringFilter<"InventoryLedger"> | string
6409
7670
  note?: StringNullableFilter<"InventoryLedger"> | string | null
6410
7671
  createdAt?: DateTimeFilter<"InventoryLedger"> | Date | string
7672
+ updatedAt?: DateTimeFilter<"InventoryLedger"> | Date | string
6411
7673
  warehouse?: XOR<WarehouseScalarRelationFilter, WarehouseWhereInput>
6412
7674
  }
6413
7675
 
6414
7676
  export type InventoryLedgerOrderByWithRelationInput = {
6415
7677
  id?: SortOrder
7678
+ inventoryItemId?: SortOrder
6416
7679
  warehouseId?: SortOrder
6417
- sku?: SortOrder
7680
+ skuId?: SortOrder
6418
7681
  type?: SortOrder
6419
7682
  amount?: SortOrder
6420
7683
  balanceAfter?: SortOrder
6421
7684
  referenceId?: SortOrder
6422
7685
  note?: SortOrderInput | SortOrder
6423
7686
  createdAt?: SortOrder
7687
+ updatedAt?: SortOrder
6424
7688
  warehouse?: WarehouseOrderByWithRelationInput
6425
7689
  }
6426
7690
 
@@ -6429,27 +7693,31 @@ export namespace Prisma {
6429
7693
  AND?: InventoryLedgerWhereInput | InventoryLedgerWhereInput[]
6430
7694
  OR?: InventoryLedgerWhereInput[]
6431
7695
  NOT?: InventoryLedgerWhereInput | InventoryLedgerWhereInput[]
7696
+ inventoryItemId?: UuidFilter<"InventoryLedger"> | string
6432
7697
  warehouseId?: UuidFilter<"InventoryLedger"> | string
6433
- sku?: StringFilter<"InventoryLedger"> | string
7698
+ skuId?: UuidFilter<"InventoryLedger"> | string
6434
7699
  type?: StringFilter<"InventoryLedger"> | string
6435
7700
  amount?: IntFilter<"InventoryLedger"> | number
6436
7701
  balanceAfter?: IntFilter<"InventoryLedger"> | number
6437
7702
  referenceId?: StringFilter<"InventoryLedger"> | string
6438
7703
  note?: StringNullableFilter<"InventoryLedger"> | string | null
6439
7704
  createdAt?: DateTimeFilter<"InventoryLedger"> | Date | string
7705
+ updatedAt?: DateTimeFilter<"InventoryLedger"> | Date | string
6440
7706
  warehouse?: XOR<WarehouseScalarRelationFilter, WarehouseWhereInput>
6441
7707
  }, "id">
6442
7708
 
6443
7709
  export type InventoryLedgerOrderByWithAggregationInput = {
6444
7710
  id?: SortOrder
7711
+ inventoryItemId?: SortOrder
6445
7712
  warehouseId?: SortOrder
6446
- sku?: SortOrder
7713
+ skuId?: SortOrder
6447
7714
  type?: SortOrder
6448
7715
  amount?: SortOrder
6449
7716
  balanceAfter?: SortOrder
6450
7717
  referenceId?: SortOrder
6451
7718
  note?: SortOrderInput | SortOrder
6452
7719
  createdAt?: SortOrder
7720
+ updatedAt?: SortOrder
6453
7721
  _count?: InventoryLedgerCountOrderByAggregateInput
6454
7722
  _avg?: InventoryLedgerAvgOrderByAggregateInput
6455
7723
  _max?: InventoryLedgerMaxOrderByAggregateInput
@@ -6462,14 +7730,90 @@ export namespace Prisma {
6462
7730
  OR?: InventoryLedgerScalarWhereWithAggregatesInput[]
6463
7731
  NOT?: InventoryLedgerScalarWhereWithAggregatesInput | InventoryLedgerScalarWhereWithAggregatesInput[]
6464
7732
  id?: UuidWithAggregatesFilter<"InventoryLedger"> | string
7733
+ inventoryItemId?: UuidWithAggregatesFilter<"InventoryLedger"> | string
6465
7734
  warehouseId?: UuidWithAggregatesFilter<"InventoryLedger"> | string
6466
- sku?: StringWithAggregatesFilter<"InventoryLedger"> | string
7735
+ skuId?: UuidWithAggregatesFilter<"InventoryLedger"> | string
6467
7736
  type?: StringWithAggregatesFilter<"InventoryLedger"> | string
6468
7737
  amount?: IntWithAggregatesFilter<"InventoryLedger"> | number
6469
7738
  balanceAfter?: IntWithAggregatesFilter<"InventoryLedger"> | number
6470
7739
  referenceId?: StringWithAggregatesFilter<"InventoryLedger"> | string
6471
7740
  note?: StringNullableWithAggregatesFilter<"InventoryLedger"> | string | null
6472
7741
  createdAt?: DateTimeWithAggregatesFilter<"InventoryLedger"> | Date | string
7742
+ updatedAt?: DateTimeWithAggregatesFilter<"InventoryLedger"> | Date | string
7743
+ }
7744
+
7745
+ export type InboxWhereInput = {
7746
+ AND?: InboxWhereInput | InboxWhereInput[]
7747
+ OR?: InboxWhereInput[]
7748
+ NOT?: InboxWhereInput | InboxWhereInput[]
7749
+ eventId?: UuidFilter<"Inbox"> | string
7750
+ eventType?: StringFilter<"Inbox"> | string
7751
+ payload?: JsonFilter<"Inbox">
7752
+ status?: StringFilter<"Inbox"> | string
7753
+ retryCount?: IntFilter<"Inbox"> | number
7754
+ lastError?: StringNullableFilter<"Inbox"> | string | null
7755
+ createdAt?: DateTimeFilter<"Inbox"> | Date | string
7756
+ updatedAt?: DateTimeFilter<"Inbox"> | Date | string
7757
+ processedAt?: DateTimeNullableFilter<"Inbox"> | Date | string | null
7758
+ }
7759
+
7760
+ export type InboxOrderByWithRelationInput = {
7761
+ eventId?: SortOrder
7762
+ eventType?: SortOrder
7763
+ payload?: SortOrder
7764
+ status?: SortOrder
7765
+ retryCount?: SortOrder
7766
+ lastError?: SortOrderInput | SortOrder
7767
+ createdAt?: SortOrder
7768
+ updatedAt?: SortOrder
7769
+ processedAt?: SortOrderInput | SortOrder
7770
+ }
7771
+
7772
+ export type InboxWhereUniqueInput = Prisma.AtLeast<{
7773
+ eventId?: string
7774
+ AND?: InboxWhereInput | InboxWhereInput[]
7775
+ OR?: InboxWhereInput[]
7776
+ NOT?: InboxWhereInput | InboxWhereInput[]
7777
+ eventType?: StringFilter<"Inbox"> | string
7778
+ payload?: JsonFilter<"Inbox">
7779
+ status?: StringFilter<"Inbox"> | string
7780
+ retryCount?: IntFilter<"Inbox"> | number
7781
+ lastError?: StringNullableFilter<"Inbox"> | string | null
7782
+ createdAt?: DateTimeFilter<"Inbox"> | Date | string
7783
+ updatedAt?: DateTimeFilter<"Inbox"> | Date | string
7784
+ processedAt?: DateTimeNullableFilter<"Inbox"> | Date | string | null
7785
+ }, "eventId">
7786
+
7787
+ export type InboxOrderByWithAggregationInput = {
7788
+ eventId?: SortOrder
7789
+ eventType?: SortOrder
7790
+ payload?: SortOrder
7791
+ status?: SortOrder
7792
+ retryCount?: SortOrder
7793
+ lastError?: SortOrderInput | SortOrder
7794
+ createdAt?: SortOrder
7795
+ updatedAt?: SortOrder
7796
+ processedAt?: SortOrderInput | SortOrder
7797
+ _count?: InboxCountOrderByAggregateInput
7798
+ _avg?: InboxAvgOrderByAggregateInput
7799
+ _max?: InboxMaxOrderByAggregateInput
7800
+ _min?: InboxMinOrderByAggregateInput
7801
+ _sum?: InboxSumOrderByAggregateInput
7802
+ }
7803
+
7804
+ export type InboxScalarWhereWithAggregatesInput = {
7805
+ AND?: InboxScalarWhereWithAggregatesInput | InboxScalarWhereWithAggregatesInput[]
7806
+ OR?: InboxScalarWhereWithAggregatesInput[]
7807
+ NOT?: InboxScalarWhereWithAggregatesInput | InboxScalarWhereWithAggregatesInput[]
7808
+ eventId?: UuidWithAggregatesFilter<"Inbox"> | string
7809
+ eventType?: StringWithAggregatesFilter<"Inbox"> | string
7810
+ payload?: JsonWithAggregatesFilter<"Inbox">
7811
+ status?: StringWithAggregatesFilter<"Inbox"> | string
7812
+ retryCount?: IntWithAggregatesFilter<"Inbox"> | number
7813
+ lastError?: StringNullableWithAggregatesFilter<"Inbox"> | string | null
7814
+ createdAt?: DateTimeWithAggregatesFilter<"Inbox"> | Date | string
7815
+ updatedAt?: DateTimeWithAggregatesFilter<"Inbox"> | Date | string
7816
+ processedAt?: DateTimeNullableWithAggregatesFilter<"Inbox"> | Date | string | null
6473
7817
  }
6474
7818
 
6475
7819
  export type WarehouseCreateInput = {
@@ -6577,7 +7921,8 @@ export namespace Prisma {
6577
7921
 
6578
7922
  export type InventoryItemCreateInput = {
6579
7923
  id?: string
6580
- sku: string
7924
+ productId: string
7925
+ skuId: string
6581
7926
  quantityOnHand?: number
6582
7927
  quantityReserved?: number
6583
7928
  version?: number
@@ -6588,8 +7933,9 @@ export namespace Prisma {
6588
7933
 
6589
7934
  export type InventoryItemUncheckedCreateInput = {
6590
7935
  id?: string
7936
+ productId: string
6591
7937
  warehouseId: string
6592
- sku: string
7938
+ skuId: string
6593
7939
  quantityOnHand?: number
6594
7940
  quantityReserved?: number
6595
7941
  version?: number
@@ -6599,7 +7945,8 @@ export namespace Prisma {
6599
7945
 
6600
7946
  export type InventoryItemUpdateInput = {
6601
7947
  id?: StringFieldUpdateOperationsInput | string
6602
- sku?: StringFieldUpdateOperationsInput | string
7948
+ productId?: StringFieldUpdateOperationsInput | string
7949
+ skuId?: StringFieldUpdateOperationsInput | string
6603
7950
  quantityOnHand?: IntFieldUpdateOperationsInput | number
6604
7951
  quantityReserved?: IntFieldUpdateOperationsInput | number
6605
7952
  version?: IntFieldUpdateOperationsInput | number
@@ -6610,8 +7957,9 @@ export namespace Prisma {
6610
7957
 
6611
7958
  export type InventoryItemUncheckedUpdateInput = {
6612
7959
  id?: StringFieldUpdateOperationsInput | string
7960
+ productId?: StringFieldUpdateOperationsInput | string
6613
7961
  warehouseId?: StringFieldUpdateOperationsInput | string
6614
- sku?: StringFieldUpdateOperationsInput | string
7962
+ skuId?: StringFieldUpdateOperationsInput | string
6615
7963
  quantityOnHand?: IntFieldUpdateOperationsInput | number
6616
7964
  quantityReserved?: IntFieldUpdateOperationsInput | number
6617
7965
  version?: IntFieldUpdateOperationsInput | number
@@ -6621,8 +7969,9 @@ export namespace Prisma {
6621
7969
 
6622
7970
  export type InventoryItemCreateManyInput = {
6623
7971
  id?: string
7972
+ productId: string
6624
7973
  warehouseId: string
6625
- sku: string
7974
+ skuId: string
6626
7975
  quantityOnHand?: number
6627
7976
  quantityReserved?: number
6628
7977
  version?: number
@@ -6632,7 +7981,8 @@ export namespace Prisma {
6632
7981
 
6633
7982
  export type InventoryItemUpdateManyMutationInput = {
6634
7983
  id?: StringFieldUpdateOperationsInput | string
6635
- sku?: StringFieldUpdateOperationsInput | string
7984
+ productId?: StringFieldUpdateOperationsInput | string
7985
+ skuId?: StringFieldUpdateOperationsInput | string
6636
7986
  quantityOnHand?: IntFieldUpdateOperationsInput | number
6637
7987
  quantityReserved?: IntFieldUpdateOperationsInput | number
6638
7988
  version?: IntFieldUpdateOperationsInput | number
@@ -6642,8 +7992,9 @@ export namespace Prisma {
6642
7992
 
6643
7993
  export type InventoryItemUncheckedUpdateManyInput = {
6644
7994
  id?: StringFieldUpdateOperationsInput | string
7995
+ productId?: StringFieldUpdateOperationsInput | string
6645
7996
  warehouseId?: StringFieldUpdateOperationsInput | string
6646
- sku?: StringFieldUpdateOperationsInput | string
7997
+ skuId?: StringFieldUpdateOperationsInput | string
6647
7998
  quantityOnHand?: IntFieldUpdateOperationsInput | number
6648
7999
  quantityReserved?: IntFieldUpdateOperationsInput | number
6649
8000
  version?: IntFieldUpdateOperationsInput | number
@@ -6654,7 +8005,7 @@ export namespace Prisma {
6654
8005
  export type InventoryReservationCreateInput = {
6655
8006
  id?: string
6656
8007
  orderId: string
6657
- sku: string
8008
+ skuId: string
6658
8009
  quantity: number
6659
8010
  status?: string
6660
8011
  expiredAt: Date | string
@@ -6667,7 +8018,7 @@ export namespace Prisma {
6667
8018
  id?: string
6668
8019
  warehouseId: string
6669
8020
  orderId: string
6670
- sku: string
8021
+ skuId: string
6671
8022
  quantity: number
6672
8023
  status?: string
6673
8024
  expiredAt: Date | string
@@ -6678,7 +8029,7 @@ export namespace Prisma {
6678
8029
  export type InventoryReservationUpdateInput = {
6679
8030
  id?: StringFieldUpdateOperationsInput | string
6680
8031
  orderId?: StringFieldUpdateOperationsInput | string
6681
- sku?: StringFieldUpdateOperationsInput | string
8032
+ skuId?: StringFieldUpdateOperationsInput | string
6682
8033
  quantity?: IntFieldUpdateOperationsInput | number
6683
8034
  status?: StringFieldUpdateOperationsInput | string
6684
8035
  expiredAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -6691,7 +8042,7 @@ export namespace Prisma {
6691
8042
  id?: StringFieldUpdateOperationsInput | string
6692
8043
  warehouseId?: StringFieldUpdateOperationsInput | string
6693
8044
  orderId?: StringFieldUpdateOperationsInput | string
6694
- sku?: StringFieldUpdateOperationsInput | string
8045
+ skuId?: StringFieldUpdateOperationsInput | string
6695
8046
  quantity?: IntFieldUpdateOperationsInput | number
6696
8047
  status?: StringFieldUpdateOperationsInput | string
6697
8048
  expiredAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -6703,7 +8054,7 @@ export namespace Prisma {
6703
8054
  id?: string
6704
8055
  warehouseId: string
6705
8056
  orderId: string
6706
- sku: string
8057
+ skuId: string
6707
8058
  quantity: number
6708
8059
  status?: string
6709
8060
  expiredAt: Date | string
@@ -6714,7 +8065,7 @@ export namespace Prisma {
6714
8065
  export type InventoryReservationUpdateManyMutationInput = {
6715
8066
  id?: StringFieldUpdateOperationsInput | string
6716
8067
  orderId?: StringFieldUpdateOperationsInput | string
6717
- sku?: StringFieldUpdateOperationsInput | string
8068
+ skuId?: StringFieldUpdateOperationsInput | string
6718
8069
  quantity?: IntFieldUpdateOperationsInput | number
6719
8070
  status?: StringFieldUpdateOperationsInput | string
6720
8071
  expiredAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -6726,7 +8077,7 @@ export namespace Prisma {
6726
8077
  id?: StringFieldUpdateOperationsInput | string
6727
8078
  warehouseId?: StringFieldUpdateOperationsInput | string
6728
8079
  orderId?: StringFieldUpdateOperationsInput | string
6729
- sku?: StringFieldUpdateOperationsInput | string
8080
+ skuId?: StringFieldUpdateOperationsInput | string
6730
8081
  quantity?: IntFieldUpdateOperationsInput | number
6731
8082
  status?: StringFieldUpdateOperationsInput | string
6732
8083
  expiredAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -6736,85 +8087,183 @@ export namespace Prisma {
6736
8087
 
6737
8088
  export type InventoryLedgerCreateInput = {
6738
8089
  id?: string
6739
- sku: string
8090
+ inventoryItemId: string
8091
+ skuId: string
6740
8092
  type: string
6741
8093
  amount: number
6742
8094
  balanceAfter: number
6743
8095
  referenceId: string
6744
8096
  note?: string | null
6745
8097
  createdAt?: Date | string
8098
+ updatedAt?: Date | string
6746
8099
  warehouse: WarehouseCreateNestedOneWithoutLedgersInput
6747
8100
  }
6748
8101
 
6749
8102
  export type InventoryLedgerUncheckedCreateInput = {
6750
8103
  id?: string
8104
+ inventoryItemId: string
6751
8105
  warehouseId: string
6752
- sku: string
8106
+ skuId: string
6753
8107
  type: string
6754
8108
  amount: number
6755
8109
  balanceAfter: number
6756
8110
  referenceId: string
6757
8111
  note?: string | null
6758
8112
  createdAt?: Date | string
8113
+ updatedAt?: Date | string
6759
8114
  }
6760
8115
 
6761
8116
  export type InventoryLedgerUpdateInput = {
6762
8117
  id?: StringFieldUpdateOperationsInput | string
6763
- sku?: StringFieldUpdateOperationsInput | string
8118
+ inventoryItemId?: StringFieldUpdateOperationsInput | string
8119
+ skuId?: StringFieldUpdateOperationsInput | string
6764
8120
  type?: StringFieldUpdateOperationsInput | string
6765
8121
  amount?: IntFieldUpdateOperationsInput | number
6766
8122
  balanceAfter?: IntFieldUpdateOperationsInput | number
6767
8123
  referenceId?: StringFieldUpdateOperationsInput | string
6768
8124
  note?: NullableStringFieldUpdateOperationsInput | string | null
6769
8125
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
8126
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
6770
8127
  warehouse?: WarehouseUpdateOneRequiredWithoutLedgersNestedInput
6771
8128
  }
6772
8129
 
6773
8130
  export type InventoryLedgerUncheckedUpdateInput = {
6774
8131
  id?: StringFieldUpdateOperationsInput | string
8132
+ inventoryItemId?: StringFieldUpdateOperationsInput | string
6775
8133
  warehouseId?: StringFieldUpdateOperationsInput | string
6776
- sku?: StringFieldUpdateOperationsInput | string
8134
+ skuId?: StringFieldUpdateOperationsInput | string
6777
8135
  type?: StringFieldUpdateOperationsInput | string
6778
8136
  amount?: IntFieldUpdateOperationsInput | number
6779
8137
  balanceAfter?: IntFieldUpdateOperationsInput | number
6780
8138
  referenceId?: StringFieldUpdateOperationsInput | string
6781
8139
  note?: NullableStringFieldUpdateOperationsInput | string | null
6782
8140
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
8141
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
6783
8142
  }
6784
8143
 
6785
8144
  export type InventoryLedgerCreateManyInput = {
6786
8145
  id?: string
8146
+ inventoryItemId: string
6787
8147
  warehouseId: string
6788
- sku: string
8148
+ skuId: string
6789
8149
  type: string
6790
8150
  amount: number
6791
8151
  balanceAfter: number
6792
8152
  referenceId: string
6793
8153
  note?: string | null
6794
8154
  createdAt?: Date | string
8155
+ updatedAt?: Date | string
6795
8156
  }
6796
8157
 
6797
8158
  export type InventoryLedgerUpdateManyMutationInput = {
6798
8159
  id?: StringFieldUpdateOperationsInput | string
6799
- sku?: StringFieldUpdateOperationsInput | string
8160
+ inventoryItemId?: StringFieldUpdateOperationsInput | string
8161
+ skuId?: StringFieldUpdateOperationsInput | string
6800
8162
  type?: StringFieldUpdateOperationsInput | string
6801
8163
  amount?: IntFieldUpdateOperationsInput | number
6802
8164
  balanceAfter?: IntFieldUpdateOperationsInput | number
6803
8165
  referenceId?: StringFieldUpdateOperationsInput | string
6804
8166
  note?: NullableStringFieldUpdateOperationsInput | string | null
6805
8167
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
8168
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
6806
8169
  }
6807
8170
 
6808
8171
  export type InventoryLedgerUncheckedUpdateManyInput = {
6809
8172
  id?: StringFieldUpdateOperationsInput | string
8173
+ inventoryItemId?: StringFieldUpdateOperationsInput | string
6810
8174
  warehouseId?: StringFieldUpdateOperationsInput | string
6811
- sku?: StringFieldUpdateOperationsInput | string
8175
+ skuId?: StringFieldUpdateOperationsInput | string
6812
8176
  type?: StringFieldUpdateOperationsInput | string
6813
8177
  amount?: IntFieldUpdateOperationsInput | number
6814
8178
  balanceAfter?: IntFieldUpdateOperationsInput | number
6815
8179
  referenceId?: StringFieldUpdateOperationsInput | string
6816
8180
  note?: NullableStringFieldUpdateOperationsInput | string | null
6817
8181
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
8182
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
8183
+ }
8184
+
8185
+ export type InboxCreateInput = {
8186
+ eventId?: string
8187
+ eventType: string
8188
+ payload:unknown
8189
+ status: string
8190
+ retryCount?: number
8191
+ lastError?: string | null
8192
+ createdAt?: Date | string
8193
+ updatedAt?: Date | string
8194
+ processedAt?: Date | string | null
8195
+ }
8196
+
8197
+ export type InboxUncheckedCreateInput = {
8198
+ eventId?: string
8199
+ eventType: string
8200
+ payload:unknown
8201
+ status: string
8202
+ retryCount?: number
8203
+ lastError?: string | null
8204
+ createdAt?: Date | string
8205
+ updatedAt?: Date | string
8206
+ processedAt?: Date | string | null
8207
+ }
8208
+
8209
+ export type InboxUpdateInput = {
8210
+ eventId?: StringFieldUpdateOperationsInput | string
8211
+ eventType?: StringFieldUpdateOperationsInput | string
8212
+ payload?:unknown
8213
+ status?: StringFieldUpdateOperationsInput | string
8214
+ retryCount?: IntFieldUpdateOperationsInput | number
8215
+ lastError?: NullableStringFieldUpdateOperationsInput | string | null
8216
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
8217
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
8218
+ processedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
8219
+ }
8220
+
8221
+ export type InboxUncheckedUpdateInput = {
8222
+ eventId?: StringFieldUpdateOperationsInput | string
8223
+ eventType?: StringFieldUpdateOperationsInput | string
8224
+ payload?:unknown
8225
+ status?: StringFieldUpdateOperationsInput | string
8226
+ retryCount?: IntFieldUpdateOperationsInput | number
8227
+ lastError?: NullableStringFieldUpdateOperationsInput | string | null
8228
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
8229
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
8230
+ processedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
8231
+ }
8232
+
8233
+ export type InboxCreateManyInput = {
8234
+ eventId?: string
8235
+ eventType: string
8236
+ payload:unknown
8237
+ status: string
8238
+ retryCount?: number
8239
+ lastError?: string | null
8240
+ createdAt?: Date | string
8241
+ updatedAt?: Date | string
8242
+ processedAt?: Date | string | null
8243
+ }
8244
+
8245
+ export type InboxUpdateManyMutationInput = {
8246
+ eventId?: StringFieldUpdateOperationsInput | string
8247
+ eventType?: StringFieldUpdateOperationsInput | string
8248
+ payload?:unknown
8249
+ status?: StringFieldUpdateOperationsInput | string
8250
+ retryCount?: IntFieldUpdateOperationsInput | number
8251
+ lastError?: NullableStringFieldUpdateOperationsInput | string | null
8252
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
8253
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
8254
+ processedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
8255
+ }
8256
+
8257
+ export type InboxUncheckedUpdateManyInput = {
8258
+ eventId?: StringFieldUpdateOperationsInput | string
8259
+ eventType?: StringFieldUpdateOperationsInput | string
8260
+ payload?:unknown
8261
+ status?: StringFieldUpdateOperationsInput | string
8262
+ retryCount?: IntFieldUpdateOperationsInput | number
8263
+ lastError?: NullableStringFieldUpdateOperationsInput | string | null
8264
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
8265
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
8266
+ processedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
6818
8267
  }
6819
8268
 
6820
8269
  export type UuidFilter<$PrismaModel = never> = {
@@ -7038,15 +8487,16 @@ export namespace Prisma {
7038
8487
  isNot?: WarehouseWhereInput
7039
8488
  }
7040
8489
 
7041
- export type InventoryItemWarehouseIdSkuCompoundUniqueInput = {
8490
+ export type InventoryItemWarehouseIdSkuIdCompoundUniqueInput = {
7042
8491
  warehouseId: string
7043
- sku: string
8492
+ skuId: string
7044
8493
  }
7045
8494
 
7046
8495
  export type InventoryItemCountOrderByAggregateInput = {
7047
8496
  id?: SortOrder
8497
+ productId?: SortOrder
7048
8498
  warehouseId?: SortOrder
7049
- sku?: SortOrder
8499
+ skuId?: SortOrder
7050
8500
  quantityOnHand?: SortOrder
7051
8501
  quantityReserved?: SortOrder
7052
8502
  version?: SortOrder
@@ -7062,8 +8512,9 @@ export namespace Prisma {
7062
8512
 
7063
8513
  export type InventoryItemMaxOrderByAggregateInput = {
7064
8514
  id?: SortOrder
8515
+ productId?: SortOrder
7065
8516
  warehouseId?: SortOrder
7066
- sku?: SortOrder
8517
+ skuId?: SortOrder
7067
8518
  quantityOnHand?: SortOrder
7068
8519
  quantityReserved?: SortOrder
7069
8520
  version?: SortOrder
@@ -7073,8 +8524,9 @@ export namespace Prisma {
7073
8524
 
7074
8525
  export type InventoryItemMinOrderByAggregateInput = {
7075
8526
  id?: SortOrder
8527
+ productId?: SortOrder
7076
8528
  warehouseId?: SortOrder
7077
- sku?: SortOrder
8529
+ skuId?: SortOrder
7078
8530
  quantityOnHand?: SortOrder
7079
8531
  quantityReserved?: SortOrder
7080
8532
  version?: SortOrder
@@ -7104,16 +8556,16 @@ export namespace Prisma {
7104
8556
  _max?: NestedIntFilter<$PrismaModel>
7105
8557
  }
7106
8558
 
7107
- export type InventoryReservationOrderIdSkuCompoundUniqueInput = {
8559
+ export type InventoryReservationOrderIdSkuIdCompoundUniqueInput = {
7108
8560
  orderId: string
7109
- sku: string
8561
+ skuId: string
7110
8562
  }
7111
8563
 
7112
8564
  export type InventoryReservationCountOrderByAggregateInput = {
7113
8565
  id?: SortOrder
7114
8566
  warehouseId?: SortOrder
7115
8567
  orderId?: SortOrder
7116
- sku?: SortOrder
8568
+ skuId?: SortOrder
7117
8569
  quantity?: SortOrder
7118
8570
  status?: SortOrder
7119
8571
  expiredAt?: SortOrder
@@ -7129,7 +8581,7 @@ export namespace Prisma {
7129
8581
  id?: SortOrder
7130
8582
  warehouseId?: SortOrder
7131
8583
  orderId?: SortOrder
7132
- sku?: SortOrder
8584
+ skuId?: SortOrder
7133
8585
  quantity?: SortOrder
7134
8586
  status?: SortOrder
7135
8587
  expiredAt?: SortOrder
@@ -7141,7 +8593,7 @@ export namespace Prisma {
7141
8593
  id?: SortOrder
7142
8594
  warehouseId?: SortOrder
7143
8595
  orderId?: SortOrder
7144
- sku?: SortOrder
8596
+ skuId?: SortOrder
7145
8597
  quantity?: SortOrder
7146
8598
  status?: SortOrder
7147
8599
  expiredAt?: SortOrder
@@ -7155,14 +8607,16 @@ export namespace Prisma {
7155
8607
 
7156
8608
  export type InventoryLedgerCountOrderByAggregateInput = {
7157
8609
  id?: SortOrder
8610
+ inventoryItemId?: SortOrder
7158
8611
  warehouseId?: SortOrder
7159
- sku?: SortOrder
8612
+ skuId?: SortOrder
7160
8613
  type?: SortOrder
7161
8614
  amount?: SortOrder
7162
8615
  balanceAfter?: SortOrder
7163
8616
  referenceId?: SortOrder
7164
8617
  note?: SortOrder
7165
8618
  createdAt?: SortOrder
8619
+ updatedAt?: SortOrder
7166
8620
  }
7167
8621
 
7168
8622
  export type InventoryLedgerAvgOrderByAggregateInput = {
@@ -7172,32 +8626,152 @@ export namespace Prisma {
7172
8626
 
7173
8627
  export type InventoryLedgerMaxOrderByAggregateInput = {
7174
8628
  id?: SortOrder
8629
+ inventoryItemId?: SortOrder
7175
8630
  warehouseId?: SortOrder
7176
- sku?: SortOrder
8631
+ skuId?: SortOrder
7177
8632
  type?: SortOrder
7178
8633
  amount?: SortOrder
7179
8634
  balanceAfter?: SortOrder
7180
8635
  referenceId?: SortOrder
7181
8636
  note?: SortOrder
7182
8637
  createdAt?: SortOrder
8638
+ updatedAt?: SortOrder
7183
8639
  }
7184
8640
 
7185
8641
  export type InventoryLedgerMinOrderByAggregateInput = {
7186
8642
  id?: SortOrder
8643
+ inventoryItemId?: SortOrder
7187
8644
  warehouseId?: SortOrder
7188
- sku?: SortOrder
8645
+ skuId?: SortOrder
7189
8646
  type?: SortOrder
7190
8647
  amount?: SortOrder
7191
8648
  balanceAfter?: SortOrder
7192
8649
  referenceId?: SortOrder
7193
8650
  note?: SortOrder
7194
8651
  createdAt?: SortOrder
8652
+ updatedAt?: SortOrder
7195
8653
  }
7196
8654
 
7197
8655
  export type InventoryLedgerSumOrderByAggregateInput = {
7198
8656
  amount?: SortOrder
7199
8657
  balanceAfter?: SortOrder
7200
8658
  }
8659
+ export type JsonFilter<$PrismaModel = never> =
8660
+ | PatchUndefined<
8661
+ Either<Required<JsonFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonFilterBase<$PrismaModel>>, 'path'>>,
8662
+ Required<JsonFilterBase<$PrismaModel>>
8663
+ >
8664
+ | OptionalFlat<Omit<Required<JsonFilterBase<$PrismaModel>>, 'path'>>
8665
+
8666
+ export type JsonFilterBase<$PrismaModel = never> = {
8667
+ equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter
8668
+ path?: string[]
8669
+ mode?: QueryMode | EnumQueryModeFieldRefInput<$PrismaModel>
8670
+ string_contains?: string | StringFieldRefInput<$PrismaModel>
8671
+ string_starts_with?: string | StringFieldRefInput<$PrismaModel>
8672
+ string_ends_with?: string | StringFieldRefInput<$PrismaModel>
8673
+ array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
8674
+ array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
8675
+ array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
8676
+ lt?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
8677
+ lte?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
8678
+ gt?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
8679
+ gte?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
8680
+ not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter
8681
+ }
8682
+
8683
+ export type DateTimeNullableFilter<$PrismaModel = never> = {
8684
+ equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
8685
+ in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
8686
+ notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
8687
+ lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
8688
+ lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
8689
+ gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
8690
+ gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
8691
+ not?: NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null
8692
+ }
8693
+
8694
+ export type InboxCountOrderByAggregateInput = {
8695
+ eventId?: SortOrder
8696
+ eventType?: SortOrder
8697
+ payload?: SortOrder
8698
+ status?: SortOrder
8699
+ retryCount?: SortOrder
8700
+ lastError?: SortOrder
8701
+ createdAt?: SortOrder
8702
+ updatedAt?: SortOrder
8703
+ processedAt?: SortOrder
8704
+ }
8705
+
8706
+ export type InboxAvgOrderByAggregateInput = {
8707
+ retryCount?: SortOrder
8708
+ }
8709
+
8710
+ export type InboxMaxOrderByAggregateInput = {
8711
+ eventId?: SortOrder
8712
+ eventType?: SortOrder
8713
+ status?: SortOrder
8714
+ retryCount?: SortOrder
8715
+ lastError?: SortOrder
8716
+ createdAt?: SortOrder
8717
+ updatedAt?: SortOrder
8718
+ processedAt?: SortOrder
8719
+ }
8720
+
8721
+ export type InboxMinOrderByAggregateInput = {
8722
+ eventId?: SortOrder
8723
+ eventType?: SortOrder
8724
+ status?: SortOrder
8725
+ retryCount?: SortOrder
8726
+ lastError?: SortOrder
8727
+ createdAt?: SortOrder
8728
+ updatedAt?: SortOrder
8729
+ processedAt?: SortOrder
8730
+ }
8731
+
8732
+ export type InboxSumOrderByAggregateInput = {
8733
+ retryCount?: SortOrder
8734
+ }
8735
+ export type JsonWithAggregatesFilter<$PrismaModel = never> =
8736
+ | PatchUndefined<
8737
+ Either<Required<JsonWithAggregatesFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonWithAggregatesFilterBase<$PrismaModel>>, 'path'>>,
8738
+ Required<JsonWithAggregatesFilterBase<$PrismaModel>>
8739
+ >
8740
+ | OptionalFlat<Omit<Required<JsonWithAggregatesFilterBase<$PrismaModel>>, 'path'>>
8741
+
8742
+ export type JsonWithAggregatesFilterBase<$PrismaModel = never> = {
8743
+ equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter
8744
+ path?: string[]
8745
+ mode?: QueryMode | EnumQueryModeFieldRefInput<$PrismaModel>
8746
+ string_contains?: string | StringFieldRefInput<$PrismaModel>
8747
+ string_starts_with?: string | StringFieldRefInput<$PrismaModel>
8748
+ string_ends_with?: string | StringFieldRefInput<$PrismaModel>
8749
+ array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
8750
+ array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
8751
+ array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
8752
+ lt?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
8753
+ lte?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
8754
+ gt?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
8755
+ gte?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
8756
+ not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter
8757
+ _count?: NestedIntFilter<$PrismaModel>
8758
+ _min?: NestedJsonFilter<$PrismaModel>
8759
+ _max?: NestedJsonFilter<$PrismaModel>
8760
+ }
8761
+
8762
+ export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
8763
+ equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
8764
+ in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
8765
+ notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
8766
+ lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
8767
+ lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
8768
+ gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
8769
+ gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
8770
+ not?: NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null
8771
+ _count?: NestedIntNullableFilter<$PrismaModel>
8772
+ _min?: NestedDateTimeNullableFilter<$PrismaModel>
8773
+ _max?: NestedDateTimeNullableFilter<$PrismaModel>
8774
+ }
7201
8775
 
7202
8776
  export type InventoryItemCreateNestedManyWithoutWarehouseInput = {
7203
8777
  create?: XOR<InventoryItemCreateWithoutWarehouseInput, InventoryItemUncheckedCreateWithoutWarehouseInput> | InventoryItemCreateWithoutWarehouseInput[] | InventoryItemUncheckedCreateWithoutWarehouseInput[]
@@ -7391,6 +8965,10 @@ export namespace Prisma {
7391
8965
  update?: XOR<XOR<WarehouseUpdateToOneWithWhereWithoutLedgersInput, WarehouseUpdateWithoutLedgersInput>, WarehouseUncheckedUpdateWithoutLedgersInput>
7392
8966
  }
7393
8967
 
8968
+ export type NullableDateTimeFieldUpdateOperationsInput = {
8969
+ set?: Date | string | null
8970
+ }
8971
+
7394
8972
  export type NestedUuidFilter<$PrismaModel = never> = {
7395
8973
  equals?: string | StringFieldRefInput<$PrismaModel>
7396
8974
  in?: string[] | ListStringFieldRefInput<$PrismaModel>
@@ -7565,9 +9143,58 @@ export namespace Prisma {
7565
9143
  not?: NestedFloatFilter<$PrismaModel> | number
7566
9144
  }
7567
9145
 
9146
+ export type NestedDateTimeNullableFilter<$PrismaModel = never> = {
9147
+ equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
9148
+ in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
9149
+ notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
9150
+ lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
9151
+ lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
9152
+ gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
9153
+ gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
9154
+ not?: NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null
9155
+ }
9156
+ export type NestedJsonFilter<$PrismaModel = never> =
9157
+ | PatchUndefined<
9158
+ Either<Required<NestedJsonFilterBase<$PrismaModel>>, Exclude<keyof Required<NestedJsonFilterBase<$PrismaModel>>, 'path'>>,
9159
+ Required<NestedJsonFilterBase<$PrismaModel>>
9160
+ >
9161
+ | OptionalFlat<Omit<Required<NestedJsonFilterBase<$PrismaModel>>, 'path'>>
9162
+
9163
+ export type NestedJsonFilterBase<$PrismaModel = never> = {
9164
+ equals?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter
9165
+ path?: string[]
9166
+ mode?: QueryMode | EnumQueryModeFieldRefInput<$PrismaModel>
9167
+ string_contains?: string | StringFieldRefInput<$PrismaModel>
9168
+ string_starts_with?: string | StringFieldRefInput<$PrismaModel>
9169
+ string_ends_with?: string | StringFieldRefInput<$PrismaModel>
9170
+ array_starts_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
9171
+ array_ends_with?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
9172
+ array_contains?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | null
9173
+ lt?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
9174
+ lte?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
9175
+ gt?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
9176
+ gte?: InputJsonValue | JsonFieldRefInput<$PrismaModel>
9177
+ not?: InputJsonValue | JsonFieldRefInput<$PrismaModel> | JsonNullValueFilter
9178
+ }
9179
+
9180
+ export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
9181
+ equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
9182
+ in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
9183
+ notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
9184
+ lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
9185
+ lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
9186
+ gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
9187
+ gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
9188
+ not?: NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null
9189
+ _count?: NestedIntNullableFilter<$PrismaModel>
9190
+ _min?: NestedDateTimeNullableFilter<$PrismaModel>
9191
+ _max?: NestedDateTimeNullableFilter<$PrismaModel>
9192
+ }
9193
+
7568
9194
  export type InventoryItemCreateWithoutWarehouseInput = {
7569
9195
  id?: string
7570
- sku: string
9196
+ productId: string
9197
+ skuId: string
7571
9198
  quantityOnHand?: number
7572
9199
  quantityReserved?: number
7573
9200
  version?: number
@@ -7577,7 +9204,8 @@ export namespace Prisma {
7577
9204
 
7578
9205
  export type InventoryItemUncheckedCreateWithoutWarehouseInput = {
7579
9206
  id?: string
7580
- sku: string
9207
+ productId: string
9208
+ skuId: string
7581
9209
  quantityOnHand?: number
7582
9210
  quantityReserved?: number
7583
9211
  version?: number
@@ -7598,7 +9226,7 @@ export namespace Prisma {
7598
9226
  export type InventoryReservationCreateWithoutWarehouseInput = {
7599
9227
  id?: string
7600
9228
  orderId: string
7601
- sku: string
9229
+ skuId: string
7602
9230
  quantity: number
7603
9231
  status?: string
7604
9232
  expiredAt: Date | string
@@ -7609,7 +9237,7 @@ export namespace Prisma {
7609
9237
  export type InventoryReservationUncheckedCreateWithoutWarehouseInput = {
7610
9238
  id?: string
7611
9239
  orderId: string
7612
- sku: string
9240
+ skuId: string
7613
9241
  quantity: number
7614
9242
  status?: string
7615
9243
  expiredAt: Date | string
@@ -7629,24 +9257,28 @@ export namespace Prisma {
7629
9257
 
7630
9258
  export type InventoryLedgerCreateWithoutWarehouseInput = {
7631
9259
  id?: string
7632
- sku: string
9260
+ inventoryItemId: string
9261
+ skuId: string
7633
9262
  type: string
7634
9263
  amount: number
7635
9264
  balanceAfter: number
7636
9265
  referenceId: string
7637
9266
  note?: string | null
7638
9267
  createdAt?: Date | string
9268
+ updatedAt?: Date | string
7639
9269
  }
7640
9270
 
7641
9271
  export type InventoryLedgerUncheckedCreateWithoutWarehouseInput = {
7642
9272
  id?: string
7643
- sku: string
9273
+ inventoryItemId: string
9274
+ skuId: string
7644
9275
  type: string
7645
9276
  amount: number
7646
9277
  balanceAfter: number
7647
9278
  referenceId: string
7648
9279
  note?: string | null
7649
9280
  createdAt?: Date | string
9281
+ updatedAt?: Date | string
7650
9282
  }
7651
9283
 
7652
9284
  export type InventoryLedgerCreateOrConnectWithoutWarehouseInput = {
@@ -7680,8 +9312,9 @@ export namespace Prisma {
7680
9312
  OR?: InventoryItemScalarWhereInput[]
7681
9313
  NOT?: InventoryItemScalarWhereInput | InventoryItemScalarWhereInput[]
7682
9314
  id?: UuidFilter<"InventoryItem"> | string
9315
+ productId?: UuidFilter<"InventoryItem"> | string
7683
9316
  warehouseId?: UuidFilter<"InventoryItem"> | string
7684
- sku?: StringFilter<"InventoryItem"> | string
9317
+ skuId?: UuidFilter<"InventoryItem"> | string
7685
9318
  quantityOnHand?: IntFilter<"InventoryItem"> | number
7686
9319
  quantityReserved?: IntFilter<"InventoryItem"> | number
7687
9320
  version?: IntFilter<"InventoryItem"> | number
@@ -7711,8 +9344,8 @@ export namespace Prisma {
7711
9344
  NOT?: InventoryReservationScalarWhereInput | InventoryReservationScalarWhereInput[]
7712
9345
  id?: UuidFilter<"InventoryReservation"> | string
7713
9346
  warehouseId?: UuidFilter<"InventoryReservation"> | string
7714
- orderId?: StringFilter<"InventoryReservation"> | string
7715
- sku?: StringFilter<"InventoryReservation"> | string
9347
+ orderId?: UuidFilter<"InventoryReservation"> | string
9348
+ skuId?: UuidFilter<"InventoryReservation"> | string
7716
9349
  quantity?: IntFilter<"InventoryReservation"> | number
7717
9350
  status?: StringFilter<"InventoryReservation"> | string
7718
9351
  expiredAt?: DateTimeFilter<"InventoryReservation"> | Date | string
@@ -7741,14 +9374,16 @@ export namespace Prisma {
7741
9374
  OR?: InventoryLedgerScalarWhereInput[]
7742
9375
  NOT?: InventoryLedgerScalarWhereInput | InventoryLedgerScalarWhereInput[]
7743
9376
  id?: UuidFilter<"InventoryLedger"> | string
9377
+ inventoryItemId?: UuidFilter<"InventoryLedger"> | string
7744
9378
  warehouseId?: UuidFilter<"InventoryLedger"> | string
7745
- sku?: StringFilter<"InventoryLedger"> | string
9379
+ skuId?: UuidFilter<"InventoryLedger"> | string
7746
9380
  type?: StringFilter<"InventoryLedger"> | string
7747
9381
  amount?: IntFilter<"InventoryLedger"> | number
7748
9382
  balanceAfter?: IntFilter<"InventoryLedger"> | number
7749
9383
  referenceId?: StringFilter<"InventoryLedger"> | string
7750
9384
  note?: StringNullableFilter<"InventoryLedger"> | string | null
7751
9385
  createdAt?: DateTimeFilter<"InventoryLedger"> | Date | string
9386
+ updatedAt?: DateTimeFilter<"InventoryLedger"> | Date | string
7752
9387
  }
7753
9388
 
7754
9389
  export type WarehouseCreateWithoutInventoryItemsInput = {
@@ -7981,7 +9616,8 @@ export namespace Prisma {
7981
9616
 
7982
9617
  export type InventoryItemCreateManyWarehouseInput = {
7983
9618
  id?: string
7984
- sku: string
9619
+ productId: string
9620
+ skuId: string
7985
9621
  quantityOnHand?: number
7986
9622
  quantityReserved?: number
7987
9623
  version?: number
@@ -7992,7 +9628,7 @@ export namespace Prisma {
7992
9628
  export type InventoryReservationCreateManyWarehouseInput = {
7993
9629
  id?: string
7994
9630
  orderId: string
7995
- sku: string
9631
+ skuId: string
7996
9632
  quantity: number
7997
9633
  status?: string
7998
9634
  expiredAt: Date | string
@@ -8002,18 +9638,21 @@ export namespace Prisma {
8002
9638
 
8003
9639
  export type InventoryLedgerCreateManyWarehouseInput = {
8004
9640
  id?: string
8005
- sku: string
9641
+ inventoryItemId: string
9642
+ skuId: string
8006
9643
  type: string
8007
9644
  amount: number
8008
9645
  balanceAfter: number
8009
9646
  referenceId: string
8010
9647
  note?: string | null
8011
9648
  createdAt?: Date | string
9649
+ updatedAt?: Date | string
8012
9650
  }
8013
9651
 
8014
9652
  export type InventoryItemUpdateWithoutWarehouseInput = {
8015
9653
  id?: StringFieldUpdateOperationsInput | string
8016
- sku?: StringFieldUpdateOperationsInput | string
9654
+ productId?: StringFieldUpdateOperationsInput | string
9655
+ skuId?: StringFieldUpdateOperationsInput | string
8017
9656
  quantityOnHand?: IntFieldUpdateOperationsInput | number
8018
9657
  quantityReserved?: IntFieldUpdateOperationsInput | number
8019
9658
  version?: IntFieldUpdateOperationsInput | number
@@ -8023,7 +9662,8 @@ export namespace Prisma {
8023
9662
 
8024
9663
  export type InventoryItemUncheckedUpdateWithoutWarehouseInput = {
8025
9664
  id?: StringFieldUpdateOperationsInput | string
8026
- sku?: StringFieldUpdateOperationsInput | string
9665
+ productId?: StringFieldUpdateOperationsInput | string
9666
+ skuId?: StringFieldUpdateOperationsInput | string
8027
9667
  quantityOnHand?: IntFieldUpdateOperationsInput | number
8028
9668
  quantityReserved?: IntFieldUpdateOperationsInput | number
8029
9669
  version?: IntFieldUpdateOperationsInput | number
@@ -8033,7 +9673,8 @@ export namespace Prisma {
8033
9673
 
8034
9674
  export type InventoryItemUncheckedUpdateManyWithoutWarehouseInput = {
8035
9675
  id?: StringFieldUpdateOperationsInput | string
8036
- sku?: StringFieldUpdateOperationsInput | string
9676
+ productId?: StringFieldUpdateOperationsInput | string
9677
+ skuId?: StringFieldUpdateOperationsInput | string
8037
9678
  quantityOnHand?: IntFieldUpdateOperationsInput | number
8038
9679
  quantityReserved?: IntFieldUpdateOperationsInput | number
8039
9680
  version?: IntFieldUpdateOperationsInput | number
@@ -8044,7 +9685,7 @@ export namespace Prisma {
8044
9685
  export type InventoryReservationUpdateWithoutWarehouseInput = {
8045
9686
  id?: StringFieldUpdateOperationsInput | string
8046
9687
  orderId?: StringFieldUpdateOperationsInput | string
8047
- sku?: StringFieldUpdateOperationsInput | string
9688
+ skuId?: StringFieldUpdateOperationsInput | string
8048
9689
  quantity?: IntFieldUpdateOperationsInput | number
8049
9690
  status?: StringFieldUpdateOperationsInput | string
8050
9691
  expiredAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -8055,7 +9696,7 @@ export namespace Prisma {
8055
9696
  export type InventoryReservationUncheckedUpdateWithoutWarehouseInput = {
8056
9697
  id?: StringFieldUpdateOperationsInput | string
8057
9698
  orderId?: StringFieldUpdateOperationsInput | string
8058
- sku?: StringFieldUpdateOperationsInput | string
9699
+ skuId?: StringFieldUpdateOperationsInput | string
8059
9700
  quantity?: IntFieldUpdateOperationsInput | number
8060
9701
  status?: StringFieldUpdateOperationsInput | string
8061
9702
  expiredAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -8066,7 +9707,7 @@ export namespace Prisma {
8066
9707
  export type InventoryReservationUncheckedUpdateManyWithoutWarehouseInput = {
8067
9708
  id?: StringFieldUpdateOperationsInput | string
8068
9709
  orderId?: StringFieldUpdateOperationsInput | string
8069
- sku?: StringFieldUpdateOperationsInput | string
9710
+ skuId?: StringFieldUpdateOperationsInput | string
8070
9711
  quantity?: IntFieldUpdateOperationsInput | number
8071
9712
  status?: StringFieldUpdateOperationsInput | string
8072
9713
  expiredAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -8076,35 +9717,41 @@ export namespace Prisma {
8076
9717
 
8077
9718
  export type InventoryLedgerUpdateWithoutWarehouseInput = {
8078
9719
  id?: StringFieldUpdateOperationsInput | string
8079
- sku?: StringFieldUpdateOperationsInput | string
9720
+ inventoryItemId?: StringFieldUpdateOperationsInput | string
9721
+ skuId?: StringFieldUpdateOperationsInput | string
8080
9722
  type?: StringFieldUpdateOperationsInput | string
8081
9723
  amount?: IntFieldUpdateOperationsInput | number
8082
9724
  balanceAfter?: IntFieldUpdateOperationsInput | number
8083
9725
  referenceId?: StringFieldUpdateOperationsInput | string
8084
9726
  note?: NullableStringFieldUpdateOperationsInput | string | null
8085
9727
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
9728
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
8086
9729
  }
8087
9730
 
8088
9731
  export type InventoryLedgerUncheckedUpdateWithoutWarehouseInput = {
8089
9732
  id?: StringFieldUpdateOperationsInput | string
8090
- sku?: StringFieldUpdateOperationsInput | string
9733
+ inventoryItemId?: StringFieldUpdateOperationsInput | string
9734
+ skuId?: StringFieldUpdateOperationsInput | string
8091
9735
  type?: StringFieldUpdateOperationsInput | string
8092
9736
  amount?: IntFieldUpdateOperationsInput | number
8093
9737
  balanceAfter?: IntFieldUpdateOperationsInput | number
8094
9738
  referenceId?: StringFieldUpdateOperationsInput | string
8095
9739
  note?: NullableStringFieldUpdateOperationsInput | string | null
8096
9740
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
9741
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
8097
9742
  }
8098
9743
 
8099
9744
  export type InventoryLedgerUncheckedUpdateManyWithoutWarehouseInput = {
8100
9745
  id?: StringFieldUpdateOperationsInput | string
8101
- sku?: StringFieldUpdateOperationsInput | string
9746
+ inventoryItemId?: StringFieldUpdateOperationsInput | string
9747
+ skuId?: StringFieldUpdateOperationsInput | string
8102
9748
  type?: StringFieldUpdateOperationsInput | string
8103
9749
  amount?: IntFieldUpdateOperationsInput | number
8104
9750
  balanceAfter?: IntFieldUpdateOperationsInput | number
8105
9751
  referenceId?: StringFieldUpdateOperationsInput | string
8106
9752
  note?: NullableStringFieldUpdateOperationsInput | string | null
8107
9753
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
9754
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
8108
9755
  }
8109
9756
 
8110
9757