@sagebox-be/prisma-product 0.0.8 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/prisma/client/edge.js +14 -4
- package/prisma/client/index-browser.js +11 -1
- package/prisma/client/index.d.ts +1360 -105
- package/prisma/client/index.js +14 -4
- package/prisma/client/package.json +1 -1
- package/prisma/client/schema.prisma +14 -0
- package/prisma/client/wasm.js +14 -4
package/prisma/client/index.d.ts
CHANGED
|
@@ -236,6 +236,11 @@ export type AttributeValue = $Result.DefaultSelection<Prisma.$AttributeValuePayl
|
|
|
236
236
|
*
|
|
237
237
|
*/
|
|
238
238
|
export type Sku = $Result.DefaultSelection<Prisma.$SkuPayload>
|
|
239
|
+
/**
|
|
240
|
+
* Model ProductHistory
|
|
241
|
+
*
|
|
242
|
+
*/
|
|
243
|
+
export type ProductHistory = $Result.DefaultSelection<Prisma.$ProductHistoryPayload>
|
|
239
244
|
|
|
240
245
|
/**
|
|
241
246
|
* ## Prisma Client ʲˢ
|
|
@@ -434,6 +439,16 @@ export class PrismaClient<
|
|
|
434
439
|
* ```
|
|
435
440
|
*/
|
|
436
441
|
get sku(): Prisma.SkuDelegate<ExtArgs, ClientOptions>;
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
* `prisma.productHistory`: Exposes CRUD operations for the **ProductHistory** model.
|
|
445
|
+
* Example usage:
|
|
446
|
+
* ```ts
|
|
447
|
+
* // Fetch zero or more ProductHistories
|
|
448
|
+
* const productHistories = await prisma.productHistory.findMany()
|
|
449
|
+
* ```
|
|
450
|
+
*/
|
|
451
|
+
get productHistory(): Prisma.ProductHistoryDelegate<ExtArgs, ClientOptions>;
|
|
437
452
|
}
|
|
438
453
|
|
|
439
454
|
export namespace Prisma {
|
|
@@ -881,7 +896,8 @@ export namespace Prisma {
|
|
|
881
896
|
ProductSyncOutbox: 'ProductSyncOutbox',
|
|
882
897
|
InventoryOutbox: 'InventoryOutbox',
|
|
883
898
|
AttributeValue: 'AttributeValue',
|
|
884
|
-
Sku: 'Sku'
|
|
899
|
+
Sku: 'Sku',
|
|
900
|
+
ProductHistory: 'ProductHistory'
|
|
885
901
|
};
|
|
886
902
|
|
|
887
903
|
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
|
@@ -900,7 +916,7 @@ export namespace Prisma {
|
|
|
900
916
|
omit: GlobalOmitOptions
|
|
901
917
|
}
|
|
902
918
|
meta: {
|
|
903
|
-
modelProps: "attribute" | "category" | "brand" | "product" | "productSyncOutbox" | "inventoryOutbox" | "attributeValue" | "sku"
|
|
919
|
+
modelProps: "attribute" | "category" | "brand" | "product" | "productSyncOutbox" | "inventoryOutbox" | "attributeValue" | "sku" | "productHistory"
|
|
904
920
|
txIsolationLevel: Prisma.TransactionIsolationLevel
|
|
905
921
|
}
|
|
906
922
|
model: {
|
|
@@ -1496,6 +1512,80 @@ export namespace Prisma {
|
|
|
1496
1512
|
}
|
|
1497
1513
|
}
|
|
1498
1514
|
}
|
|
1515
|
+
ProductHistory: {
|
|
1516
|
+
payload: Prisma.$ProductHistoryPayload<ExtArgs>
|
|
1517
|
+
fields: Prisma.ProductHistoryFieldRefs
|
|
1518
|
+
operations: {
|
|
1519
|
+
findUnique: {
|
|
1520
|
+
args: Prisma.ProductHistoryFindUniqueArgs<ExtArgs>
|
|
1521
|
+
result: $Utils.PayloadToResult<Prisma.$ProductHistoryPayload> | null
|
|
1522
|
+
}
|
|
1523
|
+
findUniqueOrThrow: {
|
|
1524
|
+
args: Prisma.ProductHistoryFindUniqueOrThrowArgs<ExtArgs>
|
|
1525
|
+
result: $Utils.PayloadToResult<Prisma.$ProductHistoryPayload>
|
|
1526
|
+
}
|
|
1527
|
+
findFirst: {
|
|
1528
|
+
args: Prisma.ProductHistoryFindFirstArgs<ExtArgs>
|
|
1529
|
+
result: $Utils.PayloadToResult<Prisma.$ProductHistoryPayload> | null
|
|
1530
|
+
}
|
|
1531
|
+
findFirstOrThrow: {
|
|
1532
|
+
args: Prisma.ProductHistoryFindFirstOrThrowArgs<ExtArgs>
|
|
1533
|
+
result: $Utils.PayloadToResult<Prisma.$ProductHistoryPayload>
|
|
1534
|
+
}
|
|
1535
|
+
findMany: {
|
|
1536
|
+
args: Prisma.ProductHistoryFindManyArgs<ExtArgs>
|
|
1537
|
+
result: $Utils.PayloadToResult<Prisma.$ProductHistoryPayload>[]
|
|
1538
|
+
}
|
|
1539
|
+
create: {
|
|
1540
|
+
args: Prisma.ProductHistoryCreateArgs<ExtArgs>
|
|
1541
|
+
result: $Utils.PayloadToResult<Prisma.$ProductHistoryPayload>
|
|
1542
|
+
}
|
|
1543
|
+
createMany: {
|
|
1544
|
+
args: Prisma.ProductHistoryCreateManyArgs<ExtArgs>
|
|
1545
|
+
result: BatchPayload
|
|
1546
|
+
}
|
|
1547
|
+
createManyAndReturn: {
|
|
1548
|
+
args: Prisma.ProductHistoryCreateManyAndReturnArgs<ExtArgs>
|
|
1549
|
+
result: $Utils.PayloadToResult<Prisma.$ProductHistoryPayload>[]
|
|
1550
|
+
}
|
|
1551
|
+
delete: {
|
|
1552
|
+
args: Prisma.ProductHistoryDeleteArgs<ExtArgs>
|
|
1553
|
+
result: $Utils.PayloadToResult<Prisma.$ProductHistoryPayload>
|
|
1554
|
+
}
|
|
1555
|
+
update: {
|
|
1556
|
+
args: Prisma.ProductHistoryUpdateArgs<ExtArgs>
|
|
1557
|
+
result: $Utils.PayloadToResult<Prisma.$ProductHistoryPayload>
|
|
1558
|
+
}
|
|
1559
|
+
deleteMany: {
|
|
1560
|
+
args: Prisma.ProductHistoryDeleteManyArgs<ExtArgs>
|
|
1561
|
+
result: BatchPayload
|
|
1562
|
+
}
|
|
1563
|
+
updateMany: {
|
|
1564
|
+
args: Prisma.ProductHistoryUpdateManyArgs<ExtArgs>
|
|
1565
|
+
result: BatchPayload
|
|
1566
|
+
}
|
|
1567
|
+
updateManyAndReturn: {
|
|
1568
|
+
args: Prisma.ProductHistoryUpdateManyAndReturnArgs<ExtArgs>
|
|
1569
|
+
result: $Utils.PayloadToResult<Prisma.$ProductHistoryPayload>[]
|
|
1570
|
+
}
|
|
1571
|
+
upsert: {
|
|
1572
|
+
args: Prisma.ProductHistoryUpsertArgs<ExtArgs>
|
|
1573
|
+
result: $Utils.PayloadToResult<Prisma.$ProductHistoryPayload>
|
|
1574
|
+
}
|
|
1575
|
+
aggregate: {
|
|
1576
|
+
args: Prisma.ProductHistoryAggregateArgs<ExtArgs>
|
|
1577
|
+
result: $Utils.Optional<AggregateProductHistory>
|
|
1578
|
+
}
|
|
1579
|
+
groupBy: {
|
|
1580
|
+
args: Prisma.ProductHistoryGroupByArgs<ExtArgs>
|
|
1581
|
+
result: $Utils.Optional<ProductHistoryGroupByOutputType>[]
|
|
1582
|
+
}
|
|
1583
|
+
count: {
|
|
1584
|
+
args: Prisma.ProductHistoryCountArgs<ExtArgs>
|
|
1585
|
+
result: $Utils.Optional<ProductHistoryCountAggregateOutputType> | number
|
|
1586
|
+
}
|
|
1587
|
+
}
|
|
1588
|
+
}
|
|
1499
1589
|
}
|
|
1500
1590
|
} & {
|
|
1501
1591
|
other: {
|
|
@@ -1600,6 +1690,7 @@ export namespace Prisma {
|
|
|
1600
1690
|
inventoryOutbox?: InventoryOutboxOmit
|
|
1601
1691
|
attributeValue?: AttributeValueOmit
|
|
1602
1692
|
sku?: SkuOmit
|
|
1693
|
+
productHistory?: ProductHistoryOmit
|
|
1603
1694
|
}
|
|
1604
1695
|
|
|
1605
1696
|
/* Types for Logging */
|
|
@@ -11025,134 +11116,1153 @@ export namespace Prisma {
|
|
|
11025
11116
|
|
|
11026
11117
|
|
|
11027
11118
|
/**
|
|
11028
|
-
*
|
|
11119
|
+
* Model ProductHistory
|
|
11029
11120
|
*/
|
|
11030
11121
|
|
|
11031
|
-
export
|
|
11032
|
-
|
|
11033
|
-
|
|
11034
|
-
|
|
11035
|
-
|
|
11036
|
-
};
|
|
11037
|
-
|
|
11038
|
-
export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
|
|
11039
|
-
|
|
11122
|
+
export type AggregateProductHistory = {
|
|
11123
|
+
_count: ProductHistoryCountAggregateOutputType | null
|
|
11124
|
+
_min: ProductHistoryMinAggregateOutputType | null
|
|
11125
|
+
_max: ProductHistoryMaxAggregateOutputType | null
|
|
11126
|
+
}
|
|
11040
11127
|
|
|
11041
|
-
export
|
|
11042
|
-
id:
|
|
11043
|
-
|
|
11044
|
-
|
|
11045
|
-
|
|
11046
|
-
createdAt:
|
|
11047
|
-
|
|
11048
|
-
};
|
|
11128
|
+
export type ProductHistoryMinAggregateOutputType = {
|
|
11129
|
+
id: string | null
|
|
11130
|
+
productId: string | null
|
|
11131
|
+
changeType: string | null
|
|
11132
|
+
changedBy: string | null
|
|
11133
|
+
createdAt: Date | null
|
|
11134
|
+
}
|
|
11049
11135
|
|
|
11050
|
-
export type
|
|
11136
|
+
export type ProductHistoryMaxAggregateOutputType = {
|
|
11137
|
+
id: string | null
|
|
11138
|
+
productId: string | null
|
|
11139
|
+
changeType: string | null
|
|
11140
|
+
changedBy: string | null
|
|
11141
|
+
createdAt: Date | null
|
|
11142
|
+
}
|
|
11051
11143
|
|
|
11144
|
+
export type ProductHistoryCountAggregateOutputType = {
|
|
11145
|
+
id: number
|
|
11146
|
+
productId: number
|
|
11147
|
+
changeType: number
|
|
11148
|
+
changedBy: number
|
|
11149
|
+
snapshot: number
|
|
11150
|
+
createdAt: number
|
|
11151
|
+
_all: number
|
|
11152
|
+
}
|
|
11052
11153
|
|
|
11053
|
-
export const CategoryScalarFieldEnum: {
|
|
11054
|
-
id: 'id',
|
|
11055
|
-
key: 'key',
|
|
11056
|
-
name: 'name',
|
|
11057
|
-
priority: 'priority',
|
|
11058
|
-
parentId: 'parentId',
|
|
11059
|
-
primary: 'primary',
|
|
11060
|
-
createdAt: 'createdAt',
|
|
11061
|
-
updatedAt: 'updatedAt'
|
|
11062
|
-
};
|
|
11063
11154
|
|
|
11064
|
-
export type
|
|
11155
|
+
export type ProductHistoryMinAggregateInputType = {
|
|
11156
|
+
id?: true
|
|
11157
|
+
productId?: true
|
|
11158
|
+
changeType?: true
|
|
11159
|
+
changedBy?: true
|
|
11160
|
+
createdAt?: true
|
|
11161
|
+
}
|
|
11065
11162
|
|
|
11163
|
+
export type ProductHistoryMaxAggregateInputType = {
|
|
11164
|
+
id?: true
|
|
11165
|
+
productId?: true
|
|
11166
|
+
changeType?: true
|
|
11167
|
+
changedBy?: true
|
|
11168
|
+
createdAt?: true
|
|
11169
|
+
}
|
|
11066
11170
|
|
|
11067
|
-
export
|
|
11068
|
-
id
|
|
11069
|
-
|
|
11070
|
-
|
|
11071
|
-
|
|
11072
|
-
|
|
11073
|
-
|
|
11171
|
+
export type ProductHistoryCountAggregateInputType = {
|
|
11172
|
+
id?: true
|
|
11173
|
+
productId?: true
|
|
11174
|
+
changeType?: true
|
|
11175
|
+
changedBy?: true
|
|
11176
|
+
snapshot?: true
|
|
11177
|
+
createdAt?: true
|
|
11178
|
+
_all?: true
|
|
11179
|
+
}
|
|
11074
11180
|
|
|
11075
|
-
export type
|
|
11181
|
+
export type ProductHistoryAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
11182
|
+
/**
|
|
11183
|
+
* Filter which ProductHistory to aggregate.
|
|
11184
|
+
*/
|
|
11185
|
+
where?: ProductHistoryWhereInput
|
|
11186
|
+
/**
|
|
11187
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
11188
|
+
*
|
|
11189
|
+
* Determine the order of ProductHistories to fetch.
|
|
11190
|
+
*/
|
|
11191
|
+
orderBy?: ProductHistoryOrderByWithRelationInput | ProductHistoryOrderByWithRelationInput[]
|
|
11192
|
+
/**
|
|
11193
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
11194
|
+
*
|
|
11195
|
+
* Sets the start position
|
|
11196
|
+
*/
|
|
11197
|
+
cursor?: ProductHistoryWhereUniqueInput
|
|
11198
|
+
/**
|
|
11199
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
11200
|
+
*
|
|
11201
|
+
* Take `±n` ProductHistories from the position of the cursor.
|
|
11202
|
+
*/
|
|
11203
|
+
take?: number
|
|
11204
|
+
/**
|
|
11205
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
11206
|
+
*
|
|
11207
|
+
* Skip the first `n` ProductHistories.
|
|
11208
|
+
*/
|
|
11209
|
+
skip?: number
|
|
11210
|
+
/**
|
|
11211
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
11212
|
+
*
|
|
11213
|
+
* Count returned ProductHistories
|
|
11214
|
+
**/
|
|
11215
|
+
_count?: true | ProductHistoryCountAggregateInputType
|
|
11216
|
+
/**
|
|
11217
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
11218
|
+
*
|
|
11219
|
+
* Select which fields to find the minimum value
|
|
11220
|
+
**/
|
|
11221
|
+
_min?: ProductHistoryMinAggregateInputType
|
|
11222
|
+
/**
|
|
11223
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
11224
|
+
*
|
|
11225
|
+
* Select which fields to find the maximum value
|
|
11226
|
+
**/
|
|
11227
|
+
_max?: ProductHistoryMaxAggregateInputType
|
|
11228
|
+
}
|
|
11076
11229
|
|
|
11230
|
+
export type GetProductHistoryAggregateType<T extends ProductHistoryAggregateArgs> = {
|
|
11231
|
+
[P in keyof T & keyof AggregateProductHistory]: P extends '_count' | 'count'
|
|
11232
|
+
? T[P] extends true
|
|
11233
|
+
? number
|
|
11234
|
+
: GetScalarType<T[P], AggregateProductHistory[P]>
|
|
11235
|
+
: GetScalarType<T[P], AggregateProductHistory[P]>
|
|
11236
|
+
}
|
|
11077
11237
|
|
|
11078
|
-
export const ProductScalarFieldEnum: {
|
|
11079
|
-
id: 'id',
|
|
11080
|
-
name: 'name',
|
|
11081
|
-
brandId: 'brandId',
|
|
11082
|
-
description: 'description',
|
|
11083
|
-
keywords: 'keywords',
|
|
11084
|
-
categoryId: 'categoryId',
|
|
11085
|
-
viewedCount: 'viewedCount',
|
|
11086
|
-
status: 'status',
|
|
11087
|
-
media: 'media',
|
|
11088
|
-
createdAt: 'createdAt',
|
|
11089
|
-
updatedAt: 'updatedAt'
|
|
11090
|
-
};
|
|
11091
11238
|
|
|
11092
|
-
export type ProductScalarFieldEnum = (typeof ProductScalarFieldEnum)[keyof typeof ProductScalarFieldEnum]
|
|
11093
11239
|
|
|
11094
11240
|
|
|
11095
|
-
export
|
|
11096
|
-
|
|
11097
|
-
|
|
11098
|
-
|
|
11099
|
-
|
|
11100
|
-
|
|
11101
|
-
|
|
11102
|
-
|
|
11103
|
-
|
|
11104
|
-
|
|
11105
|
-
|
|
11106
|
-
createdAt: 'createdAt',
|
|
11107
|
-
updatedAt: 'updatedAt'
|
|
11108
|
-
};
|
|
11241
|
+
export type ProductHistoryGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
11242
|
+
where?: ProductHistoryWhereInput
|
|
11243
|
+
orderBy?: ProductHistoryOrderByWithAggregationInput | ProductHistoryOrderByWithAggregationInput[]
|
|
11244
|
+
by: ProductHistoryScalarFieldEnum[] | ProductHistoryScalarFieldEnum
|
|
11245
|
+
having?: ProductHistoryScalarWhereWithAggregatesInput
|
|
11246
|
+
take?: number
|
|
11247
|
+
skip?: number
|
|
11248
|
+
_count?: ProductHistoryCountAggregateInputType | true
|
|
11249
|
+
_min?: ProductHistoryMinAggregateInputType
|
|
11250
|
+
_max?: ProductHistoryMaxAggregateInputType
|
|
11251
|
+
}
|
|
11109
11252
|
|
|
11110
|
-
export type
|
|
11253
|
+
export type ProductHistoryGroupByOutputType = {
|
|
11254
|
+
id: string
|
|
11255
|
+
productId: string
|
|
11256
|
+
changeType: string
|
|
11257
|
+
changedBy: string | null
|
|
11258
|
+
snapshot:PrismaJson.PrismaProductEntityPopulated
|
|
11259
|
+
createdAt: Date
|
|
11260
|
+
_count: ProductHistoryCountAggregateOutputType | null
|
|
11261
|
+
_min: ProductHistoryMinAggregateOutputType | null
|
|
11262
|
+
_max: ProductHistoryMaxAggregateOutputType | null
|
|
11263
|
+
}
|
|
11111
11264
|
|
|
11265
|
+
type GetProductHistoryGroupByPayload<T extends ProductHistoryGroupByArgs> = Prisma.PrismaPromise<
|
|
11266
|
+
Array<
|
|
11267
|
+
PickEnumerable<ProductHistoryGroupByOutputType, T['by']> &
|
|
11268
|
+
{
|
|
11269
|
+
[P in ((keyof T) & (keyof ProductHistoryGroupByOutputType))]: P extends '_count'
|
|
11270
|
+
? T[P] extends boolean
|
|
11271
|
+
? number
|
|
11272
|
+
: GetScalarType<T[P], ProductHistoryGroupByOutputType[P]>
|
|
11273
|
+
: GetScalarType<T[P], ProductHistoryGroupByOutputType[P]>
|
|
11274
|
+
}
|
|
11275
|
+
>
|
|
11276
|
+
>
|
|
11112
11277
|
|
|
11113
|
-
export const InventoryOutboxScalarFieldEnum: {
|
|
11114
|
-
id: 'id',
|
|
11115
|
-
publishStatus: 'publishStatus',
|
|
11116
|
-
publishRetryCount: 'publishRetryCount',
|
|
11117
|
-
publishError: 'publishError',
|
|
11118
|
-
publishedAt: 'publishedAt',
|
|
11119
|
-
payload: 'payload',
|
|
11120
|
-
createdAt: 'createdAt',
|
|
11121
|
-
updatedAt: 'updatedAt'
|
|
11122
|
-
};
|
|
11123
11278
|
|
|
11124
|
-
export type
|
|
11279
|
+
export type ProductHistorySelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
11280
|
+
id?: boolean
|
|
11281
|
+
productId?: boolean
|
|
11282
|
+
changeType?: boolean
|
|
11283
|
+
changedBy?: boolean
|
|
11284
|
+
snapshot?: boolean
|
|
11285
|
+
createdAt?: boolean
|
|
11286
|
+
}, ExtArgs["result"]["productHistory"]>
|
|
11125
11287
|
|
|
11288
|
+
export type ProductHistorySelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
11289
|
+
id?: boolean
|
|
11290
|
+
productId?: boolean
|
|
11291
|
+
changeType?: boolean
|
|
11292
|
+
changedBy?: boolean
|
|
11293
|
+
snapshot?: boolean
|
|
11294
|
+
createdAt?: boolean
|
|
11295
|
+
}, ExtArgs["result"]["productHistory"]>
|
|
11126
11296
|
|
|
11127
|
-
export
|
|
11128
|
-
id
|
|
11129
|
-
|
|
11130
|
-
|
|
11131
|
-
|
|
11132
|
-
|
|
11133
|
-
createdAt
|
|
11134
|
-
|
|
11135
|
-
};
|
|
11297
|
+
export type ProductHistorySelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
11298
|
+
id?: boolean
|
|
11299
|
+
productId?: boolean
|
|
11300
|
+
changeType?: boolean
|
|
11301
|
+
changedBy?: boolean
|
|
11302
|
+
snapshot?: boolean
|
|
11303
|
+
createdAt?: boolean
|
|
11304
|
+
}, ExtArgs["result"]["productHistory"]>
|
|
11136
11305
|
|
|
11137
|
-
export type
|
|
11306
|
+
export type ProductHistorySelectScalar = {
|
|
11307
|
+
id?: boolean
|
|
11308
|
+
productId?: boolean
|
|
11309
|
+
changeType?: boolean
|
|
11310
|
+
changedBy?: boolean
|
|
11311
|
+
snapshot?: boolean
|
|
11312
|
+
createdAt?: boolean
|
|
11313
|
+
}
|
|
11138
11314
|
|
|
11315
|
+
export type ProductHistoryOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "productId" | "changeType" | "changedBy" | "snapshot" | "createdAt", ExtArgs["result"]["productHistory"]>
|
|
11139
11316
|
|
|
11140
|
-
export
|
|
11141
|
-
|
|
11142
|
-
|
|
11143
|
-
|
|
11144
|
-
|
|
11145
|
-
|
|
11146
|
-
|
|
11147
|
-
|
|
11148
|
-
|
|
11149
|
-
|
|
11150
|
-
|
|
11151
|
-
|
|
11152
|
-
|
|
11153
|
-
|
|
11317
|
+
export type $ProductHistoryPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
11318
|
+
name: "ProductHistory"
|
|
11319
|
+
objects: {}
|
|
11320
|
+
scalars: $Extensions.GetPayloadResult<{
|
|
11321
|
+
id: string
|
|
11322
|
+
productId: string
|
|
11323
|
+
changeType: string
|
|
11324
|
+
changedBy: string | null
|
|
11325
|
+
/**
|
|
11326
|
+
* [PrismaProductEntityPopulated]
|
|
11327
|
+
*/
|
|
11328
|
+
snapshot:PrismaJson.PrismaProductEntityPopulated
|
|
11329
|
+
createdAt: Date
|
|
11330
|
+
}, ExtArgs["result"]["productHistory"]>
|
|
11331
|
+
composites: {}
|
|
11332
|
+
}
|
|
11154
11333
|
|
|
11155
|
-
|
|
11334
|
+
type ProductHistoryGetPayload<S extends boolean | null | undefined | ProductHistoryDefaultArgs> = $Result.GetResult<Prisma.$ProductHistoryPayload, S>
|
|
11335
|
+
|
|
11336
|
+
type ProductHistoryCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
11337
|
+
Omit<ProductHistoryFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
11338
|
+
select?: ProductHistoryCountAggregateInputType | true
|
|
11339
|
+
}
|
|
11340
|
+
|
|
11341
|
+
export interface ProductHistoryDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
11342
|
+
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ProductHistory'], meta: { name: 'ProductHistory' } }
|
|
11343
|
+
/**
|
|
11344
|
+
* Find zero or one ProductHistory that matches the filter.
|
|
11345
|
+
* @param {ProductHistoryFindUniqueArgs} args - Arguments to find a ProductHistory
|
|
11346
|
+
* @example
|
|
11347
|
+
* // Get one ProductHistory
|
|
11348
|
+
* const productHistory = await prisma.productHistory.findUnique({
|
|
11349
|
+
* where: {
|
|
11350
|
+
* // ... provide filter here
|
|
11351
|
+
* }
|
|
11352
|
+
* })
|
|
11353
|
+
*/
|
|
11354
|
+
findUnique<T extends ProductHistoryFindUniqueArgs>(args: SelectSubset<T, ProductHistoryFindUniqueArgs<ExtArgs>>): Prisma__ProductHistoryClient<$Result.GetResult<Prisma.$ProductHistoryPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
11355
|
+
|
|
11356
|
+
/**
|
|
11357
|
+
* Find one ProductHistory that matches the filter or throw an error with `error.code='P2025'`
|
|
11358
|
+
* if no matches were found.
|
|
11359
|
+
* @param {ProductHistoryFindUniqueOrThrowArgs} args - Arguments to find a ProductHistory
|
|
11360
|
+
* @example
|
|
11361
|
+
* // Get one ProductHistory
|
|
11362
|
+
* const productHistory = await prisma.productHistory.findUniqueOrThrow({
|
|
11363
|
+
* where: {
|
|
11364
|
+
* // ... provide filter here
|
|
11365
|
+
* }
|
|
11366
|
+
* })
|
|
11367
|
+
*/
|
|
11368
|
+
findUniqueOrThrow<T extends ProductHistoryFindUniqueOrThrowArgs>(args: SelectSubset<T, ProductHistoryFindUniqueOrThrowArgs<ExtArgs>>): Prisma__ProductHistoryClient<$Result.GetResult<Prisma.$ProductHistoryPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
11369
|
+
|
|
11370
|
+
/**
|
|
11371
|
+
* Find the first ProductHistory that matches the filter.
|
|
11372
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
11373
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
11374
|
+
* @param {ProductHistoryFindFirstArgs} args - Arguments to find a ProductHistory
|
|
11375
|
+
* @example
|
|
11376
|
+
* // Get one ProductHistory
|
|
11377
|
+
* const productHistory = await prisma.productHistory.findFirst({
|
|
11378
|
+
* where: {
|
|
11379
|
+
* // ... provide filter here
|
|
11380
|
+
* }
|
|
11381
|
+
* })
|
|
11382
|
+
*/
|
|
11383
|
+
findFirst<T extends ProductHistoryFindFirstArgs>(args?: SelectSubset<T, ProductHistoryFindFirstArgs<ExtArgs>>): Prisma__ProductHistoryClient<$Result.GetResult<Prisma.$ProductHistoryPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
11384
|
+
|
|
11385
|
+
/**
|
|
11386
|
+
* Find the first ProductHistory that matches the filter or
|
|
11387
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
11388
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
11389
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
11390
|
+
* @param {ProductHistoryFindFirstOrThrowArgs} args - Arguments to find a ProductHistory
|
|
11391
|
+
* @example
|
|
11392
|
+
* // Get one ProductHistory
|
|
11393
|
+
* const productHistory = await prisma.productHistory.findFirstOrThrow({
|
|
11394
|
+
* where: {
|
|
11395
|
+
* // ... provide filter here
|
|
11396
|
+
* }
|
|
11397
|
+
* })
|
|
11398
|
+
*/
|
|
11399
|
+
findFirstOrThrow<T extends ProductHistoryFindFirstOrThrowArgs>(args?: SelectSubset<T, ProductHistoryFindFirstOrThrowArgs<ExtArgs>>): Prisma__ProductHistoryClient<$Result.GetResult<Prisma.$ProductHistoryPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
11400
|
+
|
|
11401
|
+
/**
|
|
11402
|
+
* Find zero or more ProductHistories that matches the filter.
|
|
11403
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
11404
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
11405
|
+
* @param {ProductHistoryFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
11406
|
+
* @example
|
|
11407
|
+
* // Get all ProductHistories
|
|
11408
|
+
* const productHistories = await prisma.productHistory.findMany()
|
|
11409
|
+
*
|
|
11410
|
+
* // Get first 10 ProductHistories
|
|
11411
|
+
* const productHistories = await prisma.productHistory.findMany({ take: 10 })
|
|
11412
|
+
*
|
|
11413
|
+
* // Only select the `id`
|
|
11414
|
+
* const productHistoryWithIdOnly = await prisma.productHistory.findMany({ select: { id: true } })
|
|
11415
|
+
*
|
|
11416
|
+
*/
|
|
11417
|
+
findMany<T extends ProductHistoryFindManyArgs>(args?: SelectSubset<T, ProductHistoryFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ProductHistoryPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
11418
|
+
|
|
11419
|
+
/**
|
|
11420
|
+
* Create a ProductHistory.
|
|
11421
|
+
* @param {ProductHistoryCreateArgs} args - Arguments to create a ProductHistory.
|
|
11422
|
+
* @example
|
|
11423
|
+
* // Create one ProductHistory
|
|
11424
|
+
* const ProductHistory = await prisma.productHistory.create({
|
|
11425
|
+
* data: {
|
|
11426
|
+
* // ... data to create a ProductHistory
|
|
11427
|
+
* }
|
|
11428
|
+
* })
|
|
11429
|
+
*
|
|
11430
|
+
*/
|
|
11431
|
+
create<T extends ProductHistoryCreateArgs>(args: SelectSubset<T, ProductHistoryCreateArgs<ExtArgs>>): Prisma__ProductHistoryClient<$Result.GetResult<Prisma.$ProductHistoryPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
11432
|
+
|
|
11433
|
+
/**
|
|
11434
|
+
* Create many ProductHistories.
|
|
11435
|
+
* @param {ProductHistoryCreateManyArgs} args - Arguments to create many ProductHistories.
|
|
11436
|
+
* @example
|
|
11437
|
+
* // Create many ProductHistories
|
|
11438
|
+
* const productHistory = await prisma.productHistory.createMany({
|
|
11439
|
+
* data: [
|
|
11440
|
+
* // ... provide data here
|
|
11441
|
+
* ]
|
|
11442
|
+
* })
|
|
11443
|
+
*
|
|
11444
|
+
*/
|
|
11445
|
+
createMany<T extends ProductHistoryCreateManyArgs>(args?: SelectSubset<T, ProductHistoryCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
11446
|
+
|
|
11447
|
+
/**
|
|
11448
|
+
* Create many ProductHistories and returns the data saved in the database.
|
|
11449
|
+
* @param {ProductHistoryCreateManyAndReturnArgs} args - Arguments to create many ProductHistories.
|
|
11450
|
+
* @example
|
|
11451
|
+
* // Create many ProductHistories
|
|
11452
|
+
* const productHistory = await prisma.productHistory.createManyAndReturn({
|
|
11453
|
+
* data: [
|
|
11454
|
+
* // ... provide data here
|
|
11455
|
+
* ]
|
|
11456
|
+
* })
|
|
11457
|
+
*
|
|
11458
|
+
* // Create many ProductHistories and only return the `id`
|
|
11459
|
+
* const productHistoryWithIdOnly = await prisma.productHistory.createManyAndReturn({
|
|
11460
|
+
* select: { id: true },
|
|
11461
|
+
* data: [
|
|
11462
|
+
* // ... provide data here
|
|
11463
|
+
* ]
|
|
11464
|
+
* })
|
|
11465
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
11466
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
11467
|
+
*
|
|
11468
|
+
*/
|
|
11469
|
+
createManyAndReturn<T extends ProductHistoryCreateManyAndReturnArgs>(args?: SelectSubset<T, ProductHistoryCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ProductHistoryPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
11470
|
+
|
|
11471
|
+
/**
|
|
11472
|
+
* Delete a ProductHistory.
|
|
11473
|
+
* @param {ProductHistoryDeleteArgs} args - Arguments to delete one ProductHistory.
|
|
11474
|
+
* @example
|
|
11475
|
+
* // Delete one ProductHistory
|
|
11476
|
+
* const ProductHistory = await prisma.productHistory.delete({
|
|
11477
|
+
* where: {
|
|
11478
|
+
* // ... filter to delete one ProductHistory
|
|
11479
|
+
* }
|
|
11480
|
+
* })
|
|
11481
|
+
*
|
|
11482
|
+
*/
|
|
11483
|
+
delete<T extends ProductHistoryDeleteArgs>(args: SelectSubset<T, ProductHistoryDeleteArgs<ExtArgs>>): Prisma__ProductHistoryClient<$Result.GetResult<Prisma.$ProductHistoryPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
11484
|
+
|
|
11485
|
+
/**
|
|
11486
|
+
* Update one ProductHistory.
|
|
11487
|
+
* @param {ProductHistoryUpdateArgs} args - Arguments to update one ProductHistory.
|
|
11488
|
+
* @example
|
|
11489
|
+
* // Update one ProductHistory
|
|
11490
|
+
* const productHistory = await prisma.productHistory.update({
|
|
11491
|
+
* where: {
|
|
11492
|
+
* // ... provide filter here
|
|
11493
|
+
* },
|
|
11494
|
+
* data: {
|
|
11495
|
+
* // ... provide data here
|
|
11496
|
+
* }
|
|
11497
|
+
* })
|
|
11498
|
+
*
|
|
11499
|
+
*/
|
|
11500
|
+
update<T extends ProductHistoryUpdateArgs>(args: SelectSubset<T, ProductHistoryUpdateArgs<ExtArgs>>): Prisma__ProductHistoryClient<$Result.GetResult<Prisma.$ProductHistoryPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
11501
|
+
|
|
11502
|
+
/**
|
|
11503
|
+
* Delete zero or more ProductHistories.
|
|
11504
|
+
* @param {ProductHistoryDeleteManyArgs} args - Arguments to filter ProductHistories to delete.
|
|
11505
|
+
* @example
|
|
11506
|
+
* // Delete a few ProductHistories
|
|
11507
|
+
* const { count } = await prisma.productHistory.deleteMany({
|
|
11508
|
+
* where: {
|
|
11509
|
+
* // ... provide filter here
|
|
11510
|
+
* }
|
|
11511
|
+
* })
|
|
11512
|
+
*
|
|
11513
|
+
*/
|
|
11514
|
+
deleteMany<T extends ProductHistoryDeleteManyArgs>(args?: SelectSubset<T, ProductHistoryDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
11515
|
+
|
|
11516
|
+
/**
|
|
11517
|
+
* Update zero or more ProductHistories.
|
|
11518
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
11519
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
11520
|
+
* @param {ProductHistoryUpdateManyArgs} args - Arguments to update one or more rows.
|
|
11521
|
+
* @example
|
|
11522
|
+
* // Update many ProductHistories
|
|
11523
|
+
* const productHistory = await prisma.productHistory.updateMany({
|
|
11524
|
+
* where: {
|
|
11525
|
+
* // ... provide filter here
|
|
11526
|
+
* },
|
|
11527
|
+
* data: {
|
|
11528
|
+
* // ... provide data here
|
|
11529
|
+
* }
|
|
11530
|
+
* })
|
|
11531
|
+
*
|
|
11532
|
+
*/
|
|
11533
|
+
updateMany<T extends ProductHistoryUpdateManyArgs>(args: SelectSubset<T, ProductHistoryUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
11534
|
+
|
|
11535
|
+
/**
|
|
11536
|
+
* Update zero or more ProductHistories and returns the data updated in the database.
|
|
11537
|
+
* @param {ProductHistoryUpdateManyAndReturnArgs} args - Arguments to update many ProductHistories.
|
|
11538
|
+
* @example
|
|
11539
|
+
* // Update many ProductHistories
|
|
11540
|
+
* const productHistory = await prisma.productHistory.updateManyAndReturn({
|
|
11541
|
+
* where: {
|
|
11542
|
+
* // ... provide filter here
|
|
11543
|
+
* },
|
|
11544
|
+
* data: [
|
|
11545
|
+
* // ... provide data here
|
|
11546
|
+
* ]
|
|
11547
|
+
* })
|
|
11548
|
+
*
|
|
11549
|
+
* // Update zero or more ProductHistories and only return the `id`
|
|
11550
|
+
* const productHistoryWithIdOnly = await prisma.productHistory.updateManyAndReturn({
|
|
11551
|
+
* select: { id: true },
|
|
11552
|
+
* where: {
|
|
11553
|
+
* // ... provide filter here
|
|
11554
|
+
* },
|
|
11555
|
+
* data: [
|
|
11556
|
+
* // ... provide data here
|
|
11557
|
+
* ]
|
|
11558
|
+
* })
|
|
11559
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
11560
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
11561
|
+
*
|
|
11562
|
+
*/
|
|
11563
|
+
updateManyAndReturn<T extends ProductHistoryUpdateManyAndReturnArgs>(args: SelectSubset<T, ProductHistoryUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ProductHistoryPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
11564
|
+
|
|
11565
|
+
/**
|
|
11566
|
+
* Create or update one ProductHistory.
|
|
11567
|
+
* @param {ProductHistoryUpsertArgs} args - Arguments to update or create a ProductHistory.
|
|
11568
|
+
* @example
|
|
11569
|
+
* // Update or create a ProductHistory
|
|
11570
|
+
* const productHistory = await prisma.productHistory.upsert({
|
|
11571
|
+
* create: {
|
|
11572
|
+
* // ... data to create a ProductHistory
|
|
11573
|
+
* },
|
|
11574
|
+
* update: {
|
|
11575
|
+
* // ... in case it already exists, update
|
|
11576
|
+
* },
|
|
11577
|
+
* where: {
|
|
11578
|
+
* // ... the filter for the ProductHistory we want to update
|
|
11579
|
+
* }
|
|
11580
|
+
* })
|
|
11581
|
+
*/
|
|
11582
|
+
upsert<T extends ProductHistoryUpsertArgs>(args: SelectSubset<T, ProductHistoryUpsertArgs<ExtArgs>>): Prisma__ProductHistoryClient<$Result.GetResult<Prisma.$ProductHistoryPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
11583
|
+
|
|
11584
|
+
|
|
11585
|
+
/**
|
|
11586
|
+
* Count the number of ProductHistories.
|
|
11587
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
11588
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
11589
|
+
* @param {ProductHistoryCountArgs} args - Arguments to filter ProductHistories to count.
|
|
11590
|
+
* @example
|
|
11591
|
+
* // Count the number of ProductHistories
|
|
11592
|
+
* const count = await prisma.productHistory.count({
|
|
11593
|
+
* where: {
|
|
11594
|
+
* // ... the filter for the ProductHistories we want to count
|
|
11595
|
+
* }
|
|
11596
|
+
* })
|
|
11597
|
+
**/
|
|
11598
|
+
count<T extends ProductHistoryCountArgs>(
|
|
11599
|
+
args?: Subset<T, ProductHistoryCountArgs>,
|
|
11600
|
+
): Prisma.PrismaPromise<
|
|
11601
|
+
T extends $Utils.Record<'select', any>
|
|
11602
|
+
? T['select'] extends true
|
|
11603
|
+
? number
|
|
11604
|
+
: GetScalarType<T['select'], ProductHistoryCountAggregateOutputType>
|
|
11605
|
+
: number
|
|
11606
|
+
>
|
|
11607
|
+
|
|
11608
|
+
/**
|
|
11609
|
+
* Allows you to perform aggregations operations on a ProductHistory.
|
|
11610
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
11611
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
11612
|
+
* @param {ProductHistoryAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
11613
|
+
* @example
|
|
11614
|
+
* // Ordered by age ascending
|
|
11615
|
+
* // Where email contains prisma.io
|
|
11616
|
+
* // Limited to the 10 users
|
|
11617
|
+
* const aggregations = await prisma.user.aggregate({
|
|
11618
|
+
* _avg: {
|
|
11619
|
+
* age: true,
|
|
11620
|
+
* },
|
|
11621
|
+
* where: {
|
|
11622
|
+
* email: {
|
|
11623
|
+
* contains: "prisma.io",
|
|
11624
|
+
* },
|
|
11625
|
+
* },
|
|
11626
|
+
* orderBy: {
|
|
11627
|
+
* age: "asc",
|
|
11628
|
+
* },
|
|
11629
|
+
* take: 10,
|
|
11630
|
+
* })
|
|
11631
|
+
**/
|
|
11632
|
+
aggregate<T extends ProductHistoryAggregateArgs>(args: Subset<T, ProductHistoryAggregateArgs>): Prisma.PrismaPromise<GetProductHistoryAggregateType<T>>
|
|
11633
|
+
|
|
11634
|
+
/**
|
|
11635
|
+
* Group by ProductHistory.
|
|
11636
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
11637
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
11638
|
+
* @param {ProductHistoryGroupByArgs} args - Group by arguments.
|
|
11639
|
+
* @example
|
|
11640
|
+
* // Group by city, order by createdAt, get count
|
|
11641
|
+
* const result = await prisma.user.groupBy({
|
|
11642
|
+
* by: ['city', 'createdAt'],
|
|
11643
|
+
* orderBy: {
|
|
11644
|
+
* createdAt: true
|
|
11645
|
+
* },
|
|
11646
|
+
* _count: {
|
|
11647
|
+
* _all: true
|
|
11648
|
+
* },
|
|
11649
|
+
* })
|
|
11650
|
+
*
|
|
11651
|
+
**/
|
|
11652
|
+
groupBy<
|
|
11653
|
+
T extends ProductHistoryGroupByArgs,
|
|
11654
|
+
HasSelectOrTake extends Or<
|
|
11655
|
+
Extends<'skip', Keys<T>>,
|
|
11656
|
+
Extends<'take', Keys<T>>
|
|
11657
|
+
>,
|
|
11658
|
+
OrderByArg extends True extends HasSelectOrTake
|
|
11659
|
+
? { orderBy: ProductHistoryGroupByArgs['orderBy'] }
|
|
11660
|
+
: { orderBy?: ProductHistoryGroupByArgs['orderBy'] },
|
|
11661
|
+
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
11662
|
+
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
11663
|
+
ByValid extends Has<ByFields, OrderFields>,
|
|
11664
|
+
HavingFields extends GetHavingFields<T['having']>,
|
|
11665
|
+
HavingValid extends Has<ByFields, HavingFields>,
|
|
11666
|
+
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
11667
|
+
InputErrors extends ByEmpty extends True
|
|
11668
|
+
? `Error: "by" must not be empty.`
|
|
11669
|
+
: HavingValid extends False
|
|
11670
|
+
? {
|
|
11671
|
+
[P in HavingFields]: P extends ByFields
|
|
11672
|
+
? never
|
|
11673
|
+
: P extends string
|
|
11674
|
+
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
11675
|
+
: [
|
|
11676
|
+
Error,
|
|
11677
|
+
'Field ',
|
|
11678
|
+
P,
|
|
11679
|
+
` in "having" needs to be provided in "by"`,
|
|
11680
|
+
]
|
|
11681
|
+
}[HavingFields]
|
|
11682
|
+
: 'take' extends Keys<T>
|
|
11683
|
+
? 'orderBy' extends Keys<T>
|
|
11684
|
+
? ByValid extends True
|
|
11685
|
+
? {}
|
|
11686
|
+
: {
|
|
11687
|
+
[P in OrderFields]: P extends ByFields
|
|
11688
|
+
? never
|
|
11689
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
11690
|
+
}[OrderFields]
|
|
11691
|
+
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
11692
|
+
: 'skip' extends Keys<T>
|
|
11693
|
+
? 'orderBy' extends Keys<T>
|
|
11694
|
+
? ByValid extends True
|
|
11695
|
+
? {}
|
|
11696
|
+
: {
|
|
11697
|
+
[P in OrderFields]: P extends ByFields
|
|
11698
|
+
? never
|
|
11699
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
11700
|
+
}[OrderFields]
|
|
11701
|
+
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
11702
|
+
: ByValid extends True
|
|
11703
|
+
? {}
|
|
11704
|
+
: {
|
|
11705
|
+
[P in OrderFields]: P extends ByFields
|
|
11706
|
+
? never
|
|
11707
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
11708
|
+
}[OrderFields]
|
|
11709
|
+
>(args: SubsetIntersection<T, ProductHistoryGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetProductHistoryGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
11710
|
+
/**
|
|
11711
|
+
* Fields of the ProductHistory model
|
|
11712
|
+
*/
|
|
11713
|
+
readonly fields: ProductHistoryFieldRefs;
|
|
11714
|
+
}
|
|
11715
|
+
|
|
11716
|
+
/**
|
|
11717
|
+
* The delegate class that acts as a "Promise-like" for ProductHistory.
|
|
11718
|
+
* Why is this prefixed with `Prisma__`?
|
|
11719
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
11720
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
11721
|
+
*/
|
|
11722
|
+
export interface Prisma__ProductHistoryClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
11723
|
+
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
11724
|
+
/**
|
|
11725
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
11726
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
11727
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
11728
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
11729
|
+
*/
|
|
11730
|
+
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>
|
|
11731
|
+
/**
|
|
11732
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
11733
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
11734
|
+
* @returns A Promise for the completion of the callback.
|
|
11735
|
+
*/
|
|
11736
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
11737
|
+
/**
|
|
11738
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
11739
|
+
* resolved value cannot be modified from the callback.
|
|
11740
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
11741
|
+
* @returns A Promise for the completion of the callback.
|
|
11742
|
+
*/
|
|
11743
|
+
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
11744
|
+
}
|
|
11745
|
+
|
|
11746
|
+
|
|
11747
|
+
|
|
11748
|
+
|
|
11749
|
+
/**
|
|
11750
|
+
* Fields of the ProductHistory model
|
|
11751
|
+
*/
|
|
11752
|
+
interface ProductHistoryFieldRefs {
|
|
11753
|
+
readonly id: FieldRef<"ProductHistory", 'String'>
|
|
11754
|
+
readonly productId: FieldRef<"ProductHistory", 'String'>
|
|
11755
|
+
readonly changeType: FieldRef<"ProductHistory", 'String'>
|
|
11756
|
+
readonly changedBy: FieldRef<"ProductHistory", 'String'>
|
|
11757
|
+
readonly snapshot: FieldRef<"ProductHistory", 'Json'>
|
|
11758
|
+
readonly createdAt: FieldRef<"ProductHistory", 'DateTime'>
|
|
11759
|
+
}
|
|
11760
|
+
|
|
11761
|
+
|
|
11762
|
+
// Custom InputTypes
|
|
11763
|
+
/**
|
|
11764
|
+
* ProductHistory findUnique
|
|
11765
|
+
*/
|
|
11766
|
+
export type ProductHistoryFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
11767
|
+
/**
|
|
11768
|
+
* Select specific fields to fetch from the ProductHistory
|
|
11769
|
+
*/
|
|
11770
|
+
select?: ProductHistorySelect<ExtArgs> | null
|
|
11771
|
+
/**
|
|
11772
|
+
* Omit specific fields from the ProductHistory
|
|
11773
|
+
*/
|
|
11774
|
+
omit?: ProductHistoryOmit<ExtArgs> | null
|
|
11775
|
+
/**
|
|
11776
|
+
* Filter, which ProductHistory to fetch.
|
|
11777
|
+
*/
|
|
11778
|
+
where: ProductHistoryWhereUniqueInput
|
|
11779
|
+
}
|
|
11780
|
+
|
|
11781
|
+
/**
|
|
11782
|
+
* ProductHistory findUniqueOrThrow
|
|
11783
|
+
*/
|
|
11784
|
+
export type ProductHistoryFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
11785
|
+
/**
|
|
11786
|
+
* Select specific fields to fetch from the ProductHistory
|
|
11787
|
+
*/
|
|
11788
|
+
select?: ProductHistorySelect<ExtArgs> | null
|
|
11789
|
+
/**
|
|
11790
|
+
* Omit specific fields from the ProductHistory
|
|
11791
|
+
*/
|
|
11792
|
+
omit?: ProductHistoryOmit<ExtArgs> | null
|
|
11793
|
+
/**
|
|
11794
|
+
* Filter, which ProductHistory to fetch.
|
|
11795
|
+
*/
|
|
11796
|
+
where: ProductHistoryWhereUniqueInput
|
|
11797
|
+
}
|
|
11798
|
+
|
|
11799
|
+
/**
|
|
11800
|
+
* ProductHistory findFirst
|
|
11801
|
+
*/
|
|
11802
|
+
export type ProductHistoryFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
11803
|
+
/**
|
|
11804
|
+
* Select specific fields to fetch from the ProductHistory
|
|
11805
|
+
*/
|
|
11806
|
+
select?: ProductHistorySelect<ExtArgs> | null
|
|
11807
|
+
/**
|
|
11808
|
+
* Omit specific fields from the ProductHistory
|
|
11809
|
+
*/
|
|
11810
|
+
omit?: ProductHistoryOmit<ExtArgs> | null
|
|
11811
|
+
/**
|
|
11812
|
+
* Filter, which ProductHistory to fetch.
|
|
11813
|
+
*/
|
|
11814
|
+
where?: ProductHistoryWhereInput
|
|
11815
|
+
/**
|
|
11816
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
11817
|
+
*
|
|
11818
|
+
* Determine the order of ProductHistories to fetch.
|
|
11819
|
+
*/
|
|
11820
|
+
orderBy?: ProductHistoryOrderByWithRelationInput | ProductHistoryOrderByWithRelationInput[]
|
|
11821
|
+
/**
|
|
11822
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
11823
|
+
*
|
|
11824
|
+
* Sets the position for searching for ProductHistories.
|
|
11825
|
+
*/
|
|
11826
|
+
cursor?: ProductHistoryWhereUniqueInput
|
|
11827
|
+
/**
|
|
11828
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
11829
|
+
*
|
|
11830
|
+
* Take `±n` ProductHistories from the position of the cursor.
|
|
11831
|
+
*/
|
|
11832
|
+
take?: number
|
|
11833
|
+
/**
|
|
11834
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
11835
|
+
*
|
|
11836
|
+
* Skip the first `n` ProductHistories.
|
|
11837
|
+
*/
|
|
11838
|
+
skip?: number
|
|
11839
|
+
/**
|
|
11840
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
11841
|
+
*
|
|
11842
|
+
* Filter by unique combinations of ProductHistories.
|
|
11843
|
+
*/
|
|
11844
|
+
distinct?: ProductHistoryScalarFieldEnum | ProductHistoryScalarFieldEnum[]
|
|
11845
|
+
}
|
|
11846
|
+
|
|
11847
|
+
/**
|
|
11848
|
+
* ProductHistory findFirstOrThrow
|
|
11849
|
+
*/
|
|
11850
|
+
export type ProductHistoryFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
11851
|
+
/**
|
|
11852
|
+
* Select specific fields to fetch from the ProductHistory
|
|
11853
|
+
*/
|
|
11854
|
+
select?: ProductHistorySelect<ExtArgs> | null
|
|
11855
|
+
/**
|
|
11856
|
+
* Omit specific fields from the ProductHistory
|
|
11857
|
+
*/
|
|
11858
|
+
omit?: ProductHistoryOmit<ExtArgs> | null
|
|
11859
|
+
/**
|
|
11860
|
+
* Filter, which ProductHistory to fetch.
|
|
11861
|
+
*/
|
|
11862
|
+
where?: ProductHistoryWhereInput
|
|
11863
|
+
/**
|
|
11864
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
11865
|
+
*
|
|
11866
|
+
* Determine the order of ProductHistories to fetch.
|
|
11867
|
+
*/
|
|
11868
|
+
orderBy?: ProductHistoryOrderByWithRelationInput | ProductHistoryOrderByWithRelationInput[]
|
|
11869
|
+
/**
|
|
11870
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
11871
|
+
*
|
|
11872
|
+
* Sets the position for searching for ProductHistories.
|
|
11873
|
+
*/
|
|
11874
|
+
cursor?: ProductHistoryWhereUniqueInput
|
|
11875
|
+
/**
|
|
11876
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
11877
|
+
*
|
|
11878
|
+
* Take `±n` ProductHistories from the position of the cursor.
|
|
11879
|
+
*/
|
|
11880
|
+
take?: number
|
|
11881
|
+
/**
|
|
11882
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
11883
|
+
*
|
|
11884
|
+
* Skip the first `n` ProductHistories.
|
|
11885
|
+
*/
|
|
11886
|
+
skip?: number
|
|
11887
|
+
/**
|
|
11888
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
11889
|
+
*
|
|
11890
|
+
* Filter by unique combinations of ProductHistories.
|
|
11891
|
+
*/
|
|
11892
|
+
distinct?: ProductHistoryScalarFieldEnum | ProductHistoryScalarFieldEnum[]
|
|
11893
|
+
}
|
|
11894
|
+
|
|
11895
|
+
/**
|
|
11896
|
+
* ProductHistory findMany
|
|
11897
|
+
*/
|
|
11898
|
+
export type ProductHistoryFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
11899
|
+
/**
|
|
11900
|
+
* Select specific fields to fetch from the ProductHistory
|
|
11901
|
+
*/
|
|
11902
|
+
select?: ProductHistorySelect<ExtArgs> | null
|
|
11903
|
+
/**
|
|
11904
|
+
* Omit specific fields from the ProductHistory
|
|
11905
|
+
*/
|
|
11906
|
+
omit?: ProductHistoryOmit<ExtArgs> | null
|
|
11907
|
+
/**
|
|
11908
|
+
* Filter, which ProductHistories to fetch.
|
|
11909
|
+
*/
|
|
11910
|
+
where?: ProductHistoryWhereInput
|
|
11911
|
+
/**
|
|
11912
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
11913
|
+
*
|
|
11914
|
+
* Determine the order of ProductHistories to fetch.
|
|
11915
|
+
*/
|
|
11916
|
+
orderBy?: ProductHistoryOrderByWithRelationInput | ProductHistoryOrderByWithRelationInput[]
|
|
11917
|
+
/**
|
|
11918
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
11919
|
+
*
|
|
11920
|
+
* Sets the position for listing ProductHistories.
|
|
11921
|
+
*/
|
|
11922
|
+
cursor?: ProductHistoryWhereUniqueInput
|
|
11923
|
+
/**
|
|
11924
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
11925
|
+
*
|
|
11926
|
+
* Take `±n` ProductHistories from the position of the cursor.
|
|
11927
|
+
*/
|
|
11928
|
+
take?: number
|
|
11929
|
+
/**
|
|
11930
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
11931
|
+
*
|
|
11932
|
+
* Skip the first `n` ProductHistories.
|
|
11933
|
+
*/
|
|
11934
|
+
skip?: number
|
|
11935
|
+
distinct?: ProductHistoryScalarFieldEnum | ProductHistoryScalarFieldEnum[]
|
|
11936
|
+
}
|
|
11937
|
+
|
|
11938
|
+
/**
|
|
11939
|
+
* ProductHistory create
|
|
11940
|
+
*/
|
|
11941
|
+
export type ProductHistoryCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
11942
|
+
/**
|
|
11943
|
+
* Select specific fields to fetch from the ProductHistory
|
|
11944
|
+
*/
|
|
11945
|
+
select?: ProductHistorySelect<ExtArgs> | null
|
|
11946
|
+
/**
|
|
11947
|
+
* Omit specific fields from the ProductHistory
|
|
11948
|
+
*/
|
|
11949
|
+
omit?: ProductHistoryOmit<ExtArgs> | null
|
|
11950
|
+
/**
|
|
11951
|
+
* The data needed to create a ProductHistory.
|
|
11952
|
+
*/
|
|
11953
|
+
data: XOR<ProductHistoryCreateInput, ProductHistoryUncheckedCreateInput>
|
|
11954
|
+
}
|
|
11955
|
+
|
|
11956
|
+
/**
|
|
11957
|
+
* ProductHistory createMany
|
|
11958
|
+
*/
|
|
11959
|
+
export type ProductHistoryCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
11960
|
+
/**
|
|
11961
|
+
* The data used to create many ProductHistories.
|
|
11962
|
+
*/
|
|
11963
|
+
data: ProductHistoryCreateManyInput | ProductHistoryCreateManyInput[]
|
|
11964
|
+
skipDuplicates?: boolean
|
|
11965
|
+
}
|
|
11966
|
+
|
|
11967
|
+
/**
|
|
11968
|
+
* ProductHistory createManyAndReturn
|
|
11969
|
+
*/
|
|
11970
|
+
export type ProductHistoryCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
11971
|
+
/**
|
|
11972
|
+
* Select specific fields to fetch from the ProductHistory
|
|
11973
|
+
*/
|
|
11974
|
+
select?: ProductHistorySelectCreateManyAndReturn<ExtArgs> | null
|
|
11975
|
+
/**
|
|
11976
|
+
* Omit specific fields from the ProductHistory
|
|
11977
|
+
*/
|
|
11978
|
+
omit?: ProductHistoryOmit<ExtArgs> | null
|
|
11979
|
+
/**
|
|
11980
|
+
* The data used to create many ProductHistories.
|
|
11981
|
+
*/
|
|
11982
|
+
data: ProductHistoryCreateManyInput | ProductHistoryCreateManyInput[]
|
|
11983
|
+
skipDuplicates?: boolean
|
|
11984
|
+
}
|
|
11985
|
+
|
|
11986
|
+
/**
|
|
11987
|
+
* ProductHistory update
|
|
11988
|
+
*/
|
|
11989
|
+
export type ProductHistoryUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
11990
|
+
/**
|
|
11991
|
+
* Select specific fields to fetch from the ProductHistory
|
|
11992
|
+
*/
|
|
11993
|
+
select?: ProductHistorySelect<ExtArgs> | null
|
|
11994
|
+
/**
|
|
11995
|
+
* Omit specific fields from the ProductHistory
|
|
11996
|
+
*/
|
|
11997
|
+
omit?: ProductHistoryOmit<ExtArgs> | null
|
|
11998
|
+
/**
|
|
11999
|
+
* The data needed to update a ProductHistory.
|
|
12000
|
+
*/
|
|
12001
|
+
data: XOR<ProductHistoryUpdateInput, ProductHistoryUncheckedUpdateInput>
|
|
12002
|
+
/**
|
|
12003
|
+
* Choose, which ProductHistory to update.
|
|
12004
|
+
*/
|
|
12005
|
+
where: ProductHistoryWhereUniqueInput
|
|
12006
|
+
}
|
|
12007
|
+
|
|
12008
|
+
/**
|
|
12009
|
+
* ProductHistory updateMany
|
|
12010
|
+
*/
|
|
12011
|
+
export type ProductHistoryUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
12012
|
+
/**
|
|
12013
|
+
* The data used to update ProductHistories.
|
|
12014
|
+
*/
|
|
12015
|
+
data: XOR<ProductHistoryUpdateManyMutationInput, ProductHistoryUncheckedUpdateManyInput>
|
|
12016
|
+
/**
|
|
12017
|
+
* Filter which ProductHistories to update
|
|
12018
|
+
*/
|
|
12019
|
+
where?: ProductHistoryWhereInput
|
|
12020
|
+
/**
|
|
12021
|
+
* Limit how many ProductHistories to update.
|
|
12022
|
+
*/
|
|
12023
|
+
limit?: number
|
|
12024
|
+
}
|
|
12025
|
+
|
|
12026
|
+
/**
|
|
12027
|
+
* ProductHistory updateManyAndReturn
|
|
12028
|
+
*/
|
|
12029
|
+
export type ProductHistoryUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
12030
|
+
/**
|
|
12031
|
+
* Select specific fields to fetch from the ProductHistory
|
|
12032
|
+
*/
|
|
12033
|
+
select?: ProductHistorySelectUpdateManyAndReturn<ExtArgs> | null
|
|
12034
|
+
/**
|
|
12035
|
+
* Omit specific fields from the ProductHistory
|
|
12036
|
+
*/
|
|
12037
|
+
omit?: ProductHistoryOmit<ExtArgs> | null
|
|
12038
|
+
/**
|
|
12039
|
+
* The data used to update ProductHistories.
|
|
12040
|
+
*/
|
|
12041
|
+
data: XOR<ProductHistoryUpdateManyMutationInput, ProductHistoryUncheckedUpdateManyInput>
|
|
12042
|
+
/**
|
|
12043
|
+
* Filter which ProductHistories to update
|
|
12044
|
+
*/
|
|
12045
|
+
where?: ProductHistoryWhereInput
|
|
12046
|
+
/**
|
|
12047
|
+
* Limit how many ProductHistories to update.
|
|
12048
|
+
*/
|
|
12049
|
+
limit?: number
|
|
12050
|
+
}
|
|
12051
|
+
|
|
12052
|
+
/**
|
|
12053
|
+
* ProductHistory upsert
|
|
12054
|
+
*/
|
|
12055
|
+
export type ProductHistoryUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
12056
|
+
/**
|
|
12057
|
+
* Select specific fields to fetch from the ProductHistory
|
|
12058
|
+
*/
|
|
12059
|
+
select?: ProductHistorySelect<ExtArgs> | null
|
|
12060
|
+
/**
|
|
12061
|
+
* Omit specific fields from the ProductHistory
|
|
12062
|
+
*/
|
|
12063
|
+
omit?: ProductHistoryOmit<ExtArgs> | null
|
|
12064
|
+
/**
|
|
12065
|
+
* The filter to search for the ProductHistory to update in case it exists.
|
|
12066
|
+
*/
|
|
12067
|
+
where: ProductHistoryWhereUniqueInput
|
|
12068
|
+
/**
|
|
12069
|
+
* In case the ProductHistory found by the `where` argument doesn't exist, create a new ProductHistory with this data.
|
|
12070
|
+
*/
|
|
12071
|
+
create: XOR<ProductHistoryCreateInput, ProductHistoryUncheckedCreateInput>
|
|
12072
|
+
/**
|
|
12073
|
+
* In case the ProductHistory was found with the provided `where` argument, update it with this data.
|
|
12074
|
+
*/
|
|
12075
|
+
update: XOR<ProductHistoryUpdateInput, ProductHistoryUncheckedUpdateInput>
|
|
12076
|
+
}
|
|
12077
|
+
|
|
12078
|
+
/**
|
|
12079
|
+
* ProductHistory delete
|
|
12080
|
+
*/
|
|
12081
|
+
export type ProductHistoryDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
12082
|
+
/**
|
|
12083
|
+
* Select specific fields to fetch from the ProductHistory
|
|
12084
|
+
*/
|
|
12085
|
+
select?: ProductHistorySelect<ExtArgs> | null
|
|
12086
|
+
/**
|
|
12087
|
+
* Omit specific fields from the ProductHistory
|
|
12088
|
+
*/
|
|
12089
|
+
omit?: ProductHistoryOmit<ExtArgs> | null
|
|
12090
|
+
/**
|
|
12091
|
+
* Filter which ProductHistory to delete.
|
|
12092
|
+
*/
|
|
12093
|
+
where: ProductHistoryWhereUniqueInput
|
|
12094
|
+
}
|
|
12095
|
+
|
|
12096
|
+
/**
|
|
12097
|
+
* ProductHistory deleteMany
|
|
12098
|
+
*/
|
|
12099
|
+
export type ProductHistoryDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
12100
|
+
/**
|
|
12101
|
+
* Filter which ProductHistories to delete
|
|
12102
|
+
*/
|
|
12103
|
+
where?: ProductHistoryWhereInput
|
|
12104
|
+
/**
|
|
12105
|
+
* Limit how many ProductHistories to delete.
|
|
12106
|
+
*/
|
|
12107
|
+
limit?: number
|
|
12108
|
+
}
|
|
12109
|
+
|
|
12110
|
+
/**
|
|
12111
|
+
* ProductHistory without action
|
|
12112
|
+
*/
|
|
12113
|
+
export type ProductHistoryDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
12114
|
+
/**
|
|
12115
|
+
* Select specific fields to fetch from the ProductHistory
|
|
12116
|
+
*/
|
|
12117
|
+
select?: ProductHistorySelect<ExtArgs> | null
|
|
12118
|
+
/**
|
|
12119
|
+
* Omit specific fields from the ProductHistory
|
|
12120
|
+
*/
|
|
12121
|
+
omit?: ProductHistoryOmit<ExtArgs> | null
|
|
12122
|
+
}
|
|
12123
|
+
|
|
12124
|
+
|
|
12125
|
+
/**
|
|
12126
|
+
* Enums
|
|
12127
|
+
*/
|
|
12128
|
+
|
|
12129
|
+
export const TransactionIsolationLevel: {
|
|
12130
|
+
ReadUncommitted: 'ReadUncommitted',
|
|
12131
|
+
ReadCommitted: 'ReadCommitted',
|
|
12132
|
+
RepeatableRead: 'RepeatableRead',
|
|
12133
|
+
Serializable: 'Serializable'
|
|
12134
|
+
};
|
|
12135
|
+
|
|
12136
|
+
export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
|
|
12137
|
+
|
|
12138
|
+
|
|
12139
|
+
export const AttributeScalarFieldEnum: {
|
|
12140
|
+
id: 'id',
|
|
12141
|
+
name: 'name',
|
|
12142
|
+
productId: 'productId',
|
|
12143
|
+
order: 'order',
|
|
12144
|
+
createdAt: 'createdAt',
|
|
12145
|
+
updatedAt: 'updatedAt'
|
|
12146
|
+
};
|
|
12147
|
+
|
|
12148
|
+
export type AttributeScalarFieldEnum = (typeof AttributeScalarFieldEnum)[keyof typeof AttributeScalarFieldEnum]
|
|
12149
|
+
|
|
12150
|
+
|
|
12151
|
+
export const CategoryScalarFieldEnum: {
|
|
12152
|
+
id: 'id',
|
|
12153
|
+
key: 'key',
|
|
12154
|
+
name: 'name',
|
|
12155
|
+
priority: 'priority',
|
|
12156
|
+
parentId: 'parentId',
|
|
12157
|
+
primary: 'primary',
|
|
12158
|
+
createdAt: 'createdAt',
|
|
12159
|
+
updatedAt: 'updatedAt'
|
|
12160
|
+
};
|
|
12161
|
+
|
|
12162
|
+
export type CategoryScalarFieldEnum = (typeof CategoryScalarFieldEnum)[keyof typeof CategoryScalarFieldEnum]
|
|
12163
|
+
|
|
12164
|
+
|
|
12165
|
+
export const BrandScalarFieldEnum: {
|
|
12166
|
+
id: 'id',
|
|
12167
|
+
code: 'code',
|
|
12168
|
+
name: 'name',
|
|
12169
|
+
createdAt: 'createdAt',
|
|
12170
|
+
updatedAt: 'updatedAt'
|
|
12171
|
+
};
|
|
12172
|
+
|
|
12173
|
+
export type BrandScalarFieldEnum = (typeof BrandScalarFieldEnum)[keyof typeof BrandScalarFieldEnum]
|
|
12174
|
+
|
|
12175
|
+
|
|
12176
|
+
export const ProductScalarFieldEnum: {
|
|
12177
|
+
id: 'id',
|
|
12178
|
+
name: 'name',
|
|
12179
|
+
brandId: 'brandId',
|
|
12180
|
+
description: 'description',
|
|
12181
|
+
keywords: 'keywords',
|
|
12182
|
+
categoryId: 'categoryId',
|
|
12183
|
+
viewedCount: 'viewedCount',
|
|
12184
|
+
status: 'status',
|
|
12185
|
+
media: 'media',
|
|
12186
|
+
createdAt: 'createdAt',
|
|
12187
|
+
updatedAt: 'updatedAt'
|
|
12188
|
+
};
|
|
12189
|
+
|
|
12190
|
+
export type ProductScalarFieldEnum = (typeof ProductScalarFieldEnum)[keyof typeof ProductScalarFieldEnum]
|
|
12191
|
+
|
|
12192
|
+
|
|
12193
|
+
export const ProductSyncOutboxScalarFieldEnum: {
|
|
12194
|
+
id: 'id',
|
|
12195
|
+
publishStatus: 'publishStatus',
|
|
12196
|
+
publishRetryCount: 'publishRetryCount',
|
|
12197
|
+
publishError: 'publishError',
|
|
12198
|
+
publishedAt: 'publishedAt',
|
|
12199
|
+
esSyncStatus: 'esSyncStatus',
|
|
12200
|
+
esRetryCount: 'esRetryCount',
|
|
12201
|
+
esSyncedAt: 'esSyncedAt',
|
|
12202
|
+
esSyncError: 'esSyncError',
|
|
12203
|
+
payload: 'payload',
|
|
12204
|
+
createdAt: 'createdAt',
|
|
12205
|
+
updatedAt: 'updatedAt'
|
|
12206
|
+
};
|
|
12207
|
+
|
|
12208
|
+
export type ProductSyncOutboxScalarFieldEnum = (typeof ProductSyncOutboxScalarFieldEnum)[keyof typeof ProductSyncOutboxScalarFieldEnum]
|
|
12209
|
+
|
|
12210
|
+
|
|
12211
|
+
export const InventoryOutboxScalarFieldEnum: {
|
|
12212
|
+
id: 'id',
|
|
12213
|
+
publishStatus: 'publishStatus',
|
|
12214
|
+
publishRetryCount: 'publishRetryCount',
|
|
12215
|
+
publishError: 'publishError',
|
|
12216
|
+
publishedAt: 'publishedAt',
|
|
12217
|
+
payload: 'payload',
|
|
12218
|
+
createdAt: 'createdAt',
|
|
12219
|
+
updatedAt: 'updatedAt'
|
|
12220
|
+
};
|
|
12221
|
+
|
|
12222
|
+
export type InventoryOutboxScalarFieldEnum = (typeof InventoryOutboxScalarFieldEnum)[keyof typeof InventoryOutboxScalarFieldEnum]
|
|
12223
|
+
|
|
12224
|
+
|
|
12225
|
+
export const AttributeValueScalarFieldEnum: {
|
|
12226
|
+
id: 'id',
|
|
12227
|
+
skuId: 'skuId',
|
|
12228
|
+
attrId: 'attrId',
|
|
12229
|
+
value: 'value',
|
|
12230
|
+
order: 'order',
|
|
12231
|
+
createdAt: 'createdAt',
|
|
12232
|
+
updatedAt: 'updatedAt'
|
|
12233
|
+
};
|
|
12234
|
+
|
|
12235
|
+
export type AttributeValueScalarFieldEnum = (typeof AttributeValueScalarFieldEnum)[keyof typeof AttributeValueScalarFieldEnum]
|
|
12236
|
+
|
|
12237
|
+
|
|
12238
|
+
export const SkuScalarFieldEnum: {
|
|
12239
|
+
id: 'id',
|
|
12240
|
+
skuNo: 'skuNo',
|
|
12241
|
+
productId: 'productId',
|
|
12242
|
+
price: 'price',
|
|
12243
|
+
width: 'width',
|
|
12244
|
+
height: 'height',
|
|
12245
|
+
length: 'length',
|
|
12246
|
+
weight: 'weight',
|
|
12247
|
+
media: 'media',
|
|
12248
|
+
inactive: 'inactive',
|
|
12249
|
+
createdAt: 'createdAt',
|
|
12250
|
+
updatedAt: 'updatedAt'
|
|
12251
|
+
};
|
|
12252
|
+
|
|
12253
|
+
export type SkuScalarFieldEnum = (typeof SkuScalarFieldEnum)[keyof typeof SkuScalarFieldEnum]
|
|
12254
|
+
|
|
12255
|
+
|
|
12256
|
+
export const ProductHistoryScalarFieldEnum: {
|
|
12257
|
+
id: 'id',
|
|
12258
|
+
productId: 'productId',
|
|
12259
|
+
changeType: 'changeType',
|
|
12260
|
+
changedBy: 'changedBy',
|
|
12261
|
+
snapshot: 'snapshot',
|
|
12262
|
+
createdAt: 'createdAt'
|
|
12263
|
+
};
|
|
12264
|
+
|
|
12265
|
+
export type ProductHistoryScalarFieldEnum = (typeof ProductHistoryScalarFieldEnum)[keyof typeof ProductHistoryScalarFieldEnum]
|
|
11156
12266
|
|
|
11157
12267
|
|
|
11158
12268
|
export const SortOrder: {
|
|
@@ -11914,6 +13024,63 @@ export namespace Prisma {
|
|
|
11914
13024
|
updatedAt?: DateTimeWithAggregatesFilter<"Sku"> | Date | string
|
|
11915
13025
|
}
|
|
11916
13026
|
|
|
13027
|
+
export type ProductHistoryWhereInput = {
|
|
13028
|
+
AND?: ProductHistoryWhereInput | ProductHistoryWhereInput[]
|
|
13029
|
+
OR?: ProductHistoryWhereInput[]
|
|
13030
|
+
NOT?: ProductHistoryWhereInput | ProductHistoryWhereInput[]
|
|
13031
|
+
id?: UuidFilter<"ProductHistory"> | string
|
|
13032
|
+
productId?: UuidFilter<"ProductHistory"> | string
|
|
13033
|
+
changeType?: StringFilter<"ProductHistory"> | string
|
|
13034
|
+
changedBy?: UuidNullableFilter<"ProductHistory"> | string | null
|
|
13035
|
+
snapshot?: JsonFilter<"ProductHistory">
|
|
13036
|
+
createdAt?: DateTimeFilter<"ProductHistory"> | Date | string
|
|
13037
|
+
}
|
|
13038
|
+
|
|
13039
|
+
export type ProductHistoryOrderByWithRelationInput = {
|
|
13040
|
+
id?: SortOrder
|
|
13041
|
+
productId?: SortOrder
|
|
13042
|
+
changeType?: SortOrder
|
|
13043
|
+
changedBy?: SortOrderInput | SortOrder
|
|
13044
|
+
snapshot?: SortOrder
|
|
13045
|
+
createdAt?: SortOrder
|
|
13046
|
+
}
|
|
13047
|
+
|
|
13048
|
+
export type ProductHistoryWhereUniqueInput = Prisma.AtLeast<{
|
|
13049
|
+
id?: string
|
|
13050
|
+
AND?: ProductHistoryWhereInput | ProductHistoryWhereInput[]
|
|
13051
|
+
OR?: ProductHistoryWhereInput[]
|
|
13052
|
+
NOT?: ProductHistoryWhereInput | ProductHistoryWhereInput[]
|
|
13053
|
+
productId?: UuidFilter<"ProductHistory"> | string
|
|
13054
|
+
changeType?: StringFilter<"ProductHistory"> | string
|
|
13055
|
+
changedBy?: UuidNullableFilter<"ProductHistory"> | string | null
|
|
13056
|
+
snapshot?: JsonFilter<"ProductHistory">
|
|
13057
|
+
createdAt?: DateTimeFilter<"ProductHistory"> | Date | string
|
|
13058
|
+
}, "id">
|
|
13059
|
+
|
|
13060
|
+
export type ProductHistoryOrderByWithAggregationInput = {
|
|
13061
|
+
id?: SortOrder
|
|
13062
|
+
productId?: SortOrder
|
|
13063
|
+
changeType?: SortOrder
|
|
13064
|
+
changedBy?: SortOrderInput | SortOrder
|
|
13065
|
+
snapshot?: SortOrder
|
|
13066
|
+
createdAt?: SortOrder
|
|
13067
|
+
_count?: ProductHistoryCountOrderByAggregateInput
|
|
13068
|
+
_max?: ProductHistoryMaxOrderByAggregateInput
|
|
13069
|
+
_min?: ProductHistoryMinOrderByAggregateInput
|
|
13070
|
+
}
|
|
13071
|
+
|
|
13072
|
+
export type ProductHistoryScalarWhereWithAggregatesInput = {
|
|
13073
|
+
AND?: ProductHistoryScalarWhereWithAggregatesInput | ProductHistoryScalarWhereWithAggregatesInput[]
|
|
13074
|
+
OR?: ProductHistoryScalarWhereWithAggregatesInput[]
|
|
13075
|
+
NOT?: ProductHistoryScalarWhereWithAggregatesInput | ProductHistoryScalarWhereWithAggregatesInput[]
|
|
13076
|
+
id?: UuidWithAggregatesFilter<"ProductHistory"> | string
|
|
13077
|
+
productId?: UuidWithAggregatesFilter<"ProductHistory"> | string
|
|
13078
|
+
changeType?: StringWithAggregatesFilter<"ProductHistory"> | string
|
|
13079
|
+
changedBy?: UuidNullableWithAggregatesFilter<"ProductHistory"> | string | null
|
|
13080
|
+
snapshot?: JsonWithAggregatesFilter<"ProductHistory">
|
|
13081
|
+
createdAt?: DateTimeWithAggregatesFilter<"ProductHistory"> | Date | string
|
|
13082
|
+
}
|
|
13083
|
+
|
|
11917
13084
|
export type AttributeCreateInput = {
|
|
11918
13085
|
id?: string
|
|
11919
13086
|
name: string
|
|
@@ -12583,6 +13750,69 @@ export namespace Prisma {
|
|
|
12583
13750
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
12584
13751
|
}
|
|
12585
13752
|
|
|
13753
|
+
export type ProductHistoryCreateInput = {
|
|
13754
|
+
id?: string
|
|
13755
|
+
productId: string
|
|
13756
|
+
changeType: string
|
|
13757
|
+
changedBy?: string | null
|
|
13758
|
+
snapshot:PrismaJson.PrismaProductEntityPopulated
|
|
13759
|
+
createdAt?: Date | string
|
|
13760
|
+
}
|
|
13761
|
+
|
|
13762
|
+
export type ProductHistoryUncheckedCreateInput = {
|
|
13763
|
+
id?: string
|
|
13764
|
+
productId: string
|
|
13765
|
+
changeType: string
|
|
13766
|
+
changedBy?: string | null
|
|
13767
|
+
snapshot:PrismaJson.PrismaProductEntityPopulated
|
|
13768
|
+
createdAt?: Date | string
|
|
13769
|
+
}
|
|
13770
|
+
|
|
13771
|
+
export type ProductHistoryUpdateInput = {
|
|
13772
|
+
id?: StringFieldUpdateOperationsInput | string
|
|
13773
|
+
productId?: StringFieldUpdateOperationsInput | string
|
|
13774
|
+
changeType?: StringFieldUpdateOperationsInput | string
|
|
13775
|
+
changedBy?: NullableStringFieldUpdateOperationsInput | string | null
|
|
13776
|
+
snapshot?:PrismaJson.PrismaProductEntityPopulated
|
|
13777
|
+
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
13778
|
+
}
|
|
13779
|
+
|
|
13780
|
+
export type ProductHistoryUncheckedUpdateInput = {
|
|
13781
|
+
id?: StringFieldUpdateOperationsInput | string
|
|
13782
|
+
productId?: StringFieldUpdateOperationsInput | string
|
|
13783
|
+
changeType?: StringFieldUpdateOperationsInput | string
|
|
13784
|
+
changedBy?: NullableStringFieldUpdateOperationsInput | string | null
|
|
13785
|
+
snapshot?:PrismaJson.PrismaProductEntityPopulated
|
|
13786
|
+
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
13787
|
+
}
|
|
13788
|
+
|
|
13789
|
+
export type ProductHistoryCreateManyInput = {
|
|
13790
|
+
id?: string
|
|
13791
|
+
productId: string
|
|
13792
|
+
changeType: string
|
|
13793
|
+
changedBy?: string | null
|
|
13794
|
+
snapshot:PrismaJson.PrismaProductEntityPopulated
|
|
13795
|
+
createdAt?: Date | string
|
|
13796
|
+
}
|
|
13797
|
+
|
|
13798
|
+
export type ProductHistoryUpdateManyMutationInput = {
|
|
13799
|
+
id?: StringFieldUpdateOperationsInput | string
|
|
13800
|
+
productId?: StringFieldUpdateOperationsInput | string
|
|
13801
|
+
changeType?: StringFieldUpdateOperationsInput | string
|
|
13802
|
+
changedBy?: NullableStringFieldUpdateOperationsInput | string | null
|
|
13803
|
+
snapshot?:PrismaJson.PrismaProductEntityPopulated
|
|
13804
|
+
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
13805
|
+
}
|
|
13806
|
+
|
|
13807
|
+
export type ProductHistoryUncheckedUpdateManyInput = {
|
|
13808
|
+
id?: StringFieldUpdateOperationsInput | string
|
|
13809
|
+
productId?: StringFieldUpdateOperationsInput | string
|
|
13810
|
+
changeType?: StringFieldUpdateOperationsInput | string
|
|
13811
|
+
changedBy?: NullableStringFieldUpdateOperationsInput | string | null
|
|
13812
|
+
snapshot?:PrismaJson.PrismaProductEntityPopulated
|
|
13813
|
+
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
13814
|
+
}
|
|
13815
|
+
|
|
12586
13816
|
export type UuidFilter<$PrismaModel = never> = {
|
|
12587
13817
|
equals?: string | StringFieldRefInput<$PrismaModel>
|
|
12588
13818
|
in?: string[] | ListStringFieldRefInput<$PrismaModel>
|
|
@@ -13335,6 +14565,31 @@ export namespace Prisma {
|
|
|
13335
14565
|
_max?: NestedBigIntFilter<$PrismaModel>
|
|
13336
14566
|
}
|
|
13337
14567
|
|
|
14568
|
+
export type ProductHistoryCountOrderByAggregateInput = {
|
|
14569
|
+
id?: SortOrder
|
|
14570
|
+
productId?: SortOrder
|
|
14571
|
+
changeType?: SortOrder
|
|
14572
|
+
changedBy?: SortOrder
|
|
14573
|
+
snapshot?: SortOrder
|
|
14574
|
+
createdAt?: SortOrder
|
|
14575
|
+
}
|
|
14576
|
+
|
|
14577
|
+
export type ProductHistoryMaxOrderByAggregateInput = {
|
|
14578
|
+
id?: SortOrder
|
|
14579
|
+
productId?: SortOrder
|
|
14580
|
+
changeType?: SortOrder
|
|
14581
|
+
changedBy?: SortOrder
|
|
14582
|
+
createdAt?: SortOrder
|
|
14583
|
+
}
|
|
14584
|
+
|
|
14585
|
+
export type ProductHistoryMinOrderByAggregateInput = {
|
|
14586
|
+
id?: SortOrder
|
|
14587
|
+
productId?: SortOrder
|
|
14588
|
+
changeType?: SortOrder
|
|
14589
|
+
changedBy?: SortOrder
|
|
14590
|
+
createdAt?: SortOrder
|
|
14591
|
+
}
|
|
14592
|
+
|
|
13338
14593
|
export type AttributeValueCreateNestedManyWithoutAttrInput = {
|
|
13339
14594
|
create?: XOR<AttributeValueCreateWithoutAttrInput, AttributeValueUncheckedCreateWithoutAttrInput> | AttributeValueCreateWithoutAttrInput[] | AttributeValueUncheckedCreateWithoutAttrInput[]
|
|
13340
14595
|
connectOrCreate?: AttributeValueCreateOrConnectWithoutAttrInput | AttributeValueCreateOrConnectWithoutAttrInput[]
|