feat build
This commit is contained in:
+16
-7
File diff suppressed because one or more lines are too long
+9
-1
@@ -243,7 +243,8 @@ exports.Prisma.ProductImageScalarFieldEnum = {
|
||||
id: 'id',
|
||||
productId: 'productId',
|
||||
url: 'url',
|
||||
sortOrder: 'sortOrder'
|
||||
sortOrder: 'sortOrder',
|
||||
role: 'role'
|
||||
};
|
||||
|
||||
exports.Prisma.ProductVariantScalarFieldEnum = {
|
||||
@@ -537,6 +538,13 @@ exports.VerificationStep = exports.$Enums.VerificationStep = {
|
||||
VERIFIED: 'VERIFIED'
|
||||
};
|
||||
|
||||
exports.ProductImageRole = exports.$Enums.ProductImageRole = {
|
||||
FEATURED: 'FEATURED',
|
||||
FEATURED_MOBILE: 'FEATURED_MOBILE',
|
||||
GALLERY: 'GALLERY',
|
||||
GALLERY_MOBILE: 'GALLERY_MOBILE'
|
||||
};
|
||||
|
||||
exports.OrderChannel = exports.$Enums.OrderChannel = {
|
||||
RETAIL: 'RETAIL',
|
||||
WHOLESALE: 'WHOLESALE'
|
||||
|
||||
+107
-1
@@ -230,6 +230,16 @@ export const VerificationStep: {
|
||||
export type VerificationStep = (typeof VerificationStep)[keyof typeof VerificationStep]
|
||||
|
||||
|
||||
export const ProductImageRole: {
|
||||
FEATURED: 'FEATURED',
|
||||
FEATURED_MOBILE: 'FEATURED_MOBILE',
|
||||
GALLERY: 'GALLERY',
|
||||
GALLERY_MOBILE: 'GALLERY_MOBILE'
|
||||
};
|
||||
|
||||
export type ProductImageRole = (typeof ProductImageRole)[keyof typeof ProductImageRole]
|
||||
|
||||
|
||||
export const OrderChannel: {
|
||||
RETAIL: 'RETAIL',
|
||||
WHOLESALE: 'WHOLESALE'
|
||||
@@ -346,6 +356,10 @@ export type VerificationStep = $Enums.VerificationStep
|
||||
|
||||
export const VerificationStep: typeof $Enums.VerificationStep
|
||||
|
||||
export type ProductImageRole = $Enums.ProductImageRole
|
||||
|
||||
export const ProductImageRole: typeof $Enums.ProductImageRole
|
||||
|
||||
export type OrderChannel = $Enums.OrderChannel
|
||||
|
||||
export const OrderChannel: typeof $Enums.OrderChannel
|
||||
@@ -16760,6 +16774,7 @@ export namespace Prisma {
|
||||
productId: string | null
|
||||
url: string | null
|
||||
sortOrder: number | null
|
||||
role: $Enums.ProductImageRole | null
|
||||
}
|
||||
|
||||
export type ProductImageMaxAggregateOutputType = {
|
||||
@@ -16767,6 +16782,7 @@ export namespace Prisma {
|
||||
productId: string | null
|
||||
url: string | null
|
||||
sortOrder: number | null
|
||||
role: $Enums.ProductImageRole | null
|
||||
}
|
||||
|
||||
export type ProductImageCountAggregateOutputType = {
|
||||
@@ -16774,6 +16790,7 @@ export namespace Prisma {
|
||||
productId: number
|
||||
url: number
|
||||
sortOrder: number
|
||||
role: number
|
||||
_all: number
|
||||
}
|
||||
|
||||
@@ -16791,6 +16808,7 @@ export namespace Prisma {
|
||||
productId?: true
|
||||
url?: true
|
||||
sortOrder?: true
|
||||
role?: true
|
||||
}
|
||||
|
||||
export type ProductImageMaxAggregateInputType = {
|
||||
@@ -16798,6 +16816,7 @@ export namespace Prisma {
|
||||
productId?: true
|
||||
url?: true
|
||||
sortOrder?: true
|
||||
role?: true
|
||||
}
|
||||
|
||||
export type ProductImageCountAggregateInputType = {
|
||||
@@ -16805,6 +16824,7 @@ export namespace Prisma {
|
||||
productId?: true
|
||||
url?: true
|
||||
sortOrder?: true
|
||||
role?: true
|
||||
_all?: true
|
||||
}
|
||||
|
||||
@@ -16899,6 +16919,7 @@ export namespace Prisma {
|
||||
productId: string
|
||||
url: string
|
||||
sortOrder: number
|
||||
role: $Enums.ProductImageRole
|
||||
_count: ProductImageCountAggregateOutputType | null
|
||||
_avg: ProductImageAvgAggregateOutputType | null
|
||||
_sum: ProductImageSumAggregateOutputType | null
|
||||
@@ -16925,6 +16946,7 @@ export namespace Prisma {
|
||||
productId?: boolean
|
||||
url?: boolean
|
||||
sortOrder?: boolean
|
||||
role?: boolean
|
||||
product?: boolean | ProductDefaultArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["productImage"]>
|
||||
|
||||
@@ -16933,6 +16955,7 @@ export namespace Prisma {
|
||||
productId?: boolean
|
||||
url?: boolean
|
||||
sortOrder?: boolean
|
||||
role?: boolean
|
||||
product?: boolean | ProductDefaultArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["productImage"]>
|
||||
|
||||
@@ -16941,6 +16964,7 @@ export namespace Prisma {
|
||||
productId?: boolean
|
||||
url?: boolean
|
||||
sortOrder?: boolean
|
||||
role?: boolean
|
||||
}
|
||||
|
||||
export type ProductImageInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
||||
@@ -16960,6 +16984,12 @@ export namespace Prisma {
|
||||
productId: string
|
||||
url: string
|
||||
sortOrder: number
|
||||
/**
|
||||
* Legacy had 4 distinct upload slots (تصویر شاخص / تصویر شاخص موبایل /
|
||||
* گالری تصاویر سایت / گالری تصاویر موبایل) — GALLERY is the default so
|
||||
* existing rows and any generic "just attach an image" caller keep working.
|
||||
*/
|
||||
role: $Enums.ProductImageRole
|
||||
}, ExtArgs["result"]["productImage"]>
|
||||
composites: {}
|
||||
}
|
||||
@@ -17358,6 +17388,7 @@ export namespace Prisma {
|
||||
readonly productId: FieldRef<"ProductImage", 'String'>
|
||||
readonly url: FieldRef<"ProductImage", 'String'>
|
||||
readonly sortOrder: FieldRef<"ProductImage", 'Int'>
|
||||
readonly role: FieldRef<"ProductImage", 'ProductImageRole'>
|
||||
}
|
||||
|
||||
|
||||
@@ -41095,7 +41126,8 @@ export namespace Prisma {
|
||||
id: 'id',
|
||||
productId: 'productId',
|
||||
url: 'url',
|
||||
sortOrder: 'sortOrder'
|
||||
sortOrder: 'sortOrder',
|
||||
role: 'role'
|
||||
};
|
||||
|
||||
export type ProductImageScalarFieldEnum = (typeof ProductImageScalarFieldEnum)[keyof typeof ProductImageScalarFieldEnum]
|
||||
@@ -41564,6 +41596,20 @@ export namespace Prisma {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'ProductImageRole'
|
||||
*/
|
||||
export type EnumProductImageRoleFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ProductImageRole'>
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'ProductImageRole[]'
|
||||
*/
|
||||
export type ListEnumProductImageRoleFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ProductImageRole[]'>
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'OrderChannel'
|
||||
*/
|
||||
@@ -42620,6 +42666,7 @@ export namespace Prisma {
|
||||
productId?: StringFilter<"ProductImage"> | string
|
||||
url?: StringFilter<"ProductImage"> | string
|
||||
sortOrder?: IntFilter<"ProductImage"> | number
|
||||
role?: EnumProductImageRoleFilter<"ProductImage"> | $Enums.ProductImageRole
|
||||
product?: XOR<ProductRelationFilter, ProductWhereInput>
|
||||
}
|
||||
|
||||
@@ -42628,6 +42675,7 @@ export namespace Prisma {
|
||||
productId?: SortOrder
|
||||
url?: SortOrder
|
||||
sortOrder?: SortOrder
|
||||
role?: SortOrder
|
||||
product?: ProductOrderByWithRelationInput
|
||||
}
|
||||
|
||||
@@ -42639,6 +42687,7 @@ export namespace Prisma {
|
||||
productId?: StringFilter<"ProductImage"> | string
|
||||
url?: StringFilter<"ProductImage"> | string
|
||||
sortOrder?: IntFilter<"ProductImage"> | number
|
||||
role?: EnumProductImageRoleFilter<"ProductImage"> | $Enums.ProductImageRole
|
||||
product?: XOR<ProductRelationFilter, ProductWhereInput>
|
||||
}, "id">
|
||||
|
||||
@@ -42647,6 +42696,7 @@ export namespace Prisma {
|
||||
productId?: SortOrder
|
||||
url?: SortOrder
|
||||
sortOrder?: SortOrder
|
||||
role?: SortOrder
|
||||
_count?: ProductImageCountOrderByAggregateInput
|
||||
_avg?: ProductImageAvgOrderByAggregateInput
|
||||
_max?: ProductImageMaxOrderByAggregateInput
|
||||
@@ -42662,6 +42712,7 @@ export namespace Prisma {
|
||||
productId?: StringWithAggregatesFilter<"ProductImage"> | string
|
||||
url?: StringWithAggregatesFilter<"ProductImage"> | string
|
||||
sortOrder?: IntWithAggregatesFilter<"ProductImage"> | number
|
||||
role?: EnumProductImageRoleWithAggregatesFilter<"ProductImage"> | $Enums.ProductImageRole
|
||||
}
|
||||
|
||||
export type ProductVariantWhereInput = {
|
||||
@@ -45295,6 +45346,7 @@ export namespace Prisma {
|
||||
id?: string
|
||||
url: string
|
||||
sortOrder?: number
|
||||
role?: $Enums.ProductImageRole
|
||||
product: ProductCreateNestedOneWithoutImagesInput
|
||||
}
|
||||
|
||||
@@ -45303,12 +45355,14 @@ export namespace Prisma {
|
||||
productId: string
|
||||
url: string
|
||||
sortOrder?: number
|
||||
role?: $Enums.ProductImageRole
|
||||
}
|
||||
|
||||
export type ProductImageUpdateInput = {
|
||||
id?: StringFieldUpdateOperationsInput | string
|
||||
url?: StringFieldUpdateOperationsInput | string
|
||||
sortOrder?: IntFieldUpdateOperationsInput | number
|
||||
role?: EnumProductImageRoleFieldUpdateOperationsInput | $Enums.ProductImageRole
|
||||
product?: ProductUpdateOneRequiredWithoutImagesNestedInput
|
||||
}
|
||||
|
||||
@@ -45317,6 +45371,7 @@ export namespace Prisma {
|
||||
productId?: StringFieldUpdateOperationsInput | string
|
||||
url?: StringFieldUpdateOperationsInput | string
|
||||
sortOrder?: IntFieldUpdateOperationsInput | number
|
||||
role?: EnumProductImageRoleFieldUpdateOperationsInput | $Enums.ProductImageRole
|
||||
}
|
||||
|
||||
export type ProductImageCreateManyInput = {
|
||||
@@ -45324,12 +45379,14 @@ export namespace Prisma {
|
||||
productId: string
|
||||
url: string
|
||||
sortOrder?: number
|
||||
role?: $Enums.ProductImageRole
|
||||
}
|
||||
|
||||
export type ProductImageUpdateManyMutationInput = {
|
||||
id?: StringFieldUpdateOperationsInput | string
|
||||
url?: StringFieldUpdateOperationsInput | string
|
||||
sortOrder?: IntFieldUpdateOperationsInput | number
|
||||
role?: EnumProductImageRoleFieldUpdateOperationsInput | $Enums.ProductImageRole
|
||||
}
|
||||
|
||||
export type ProductImageUncheckedUpdateManyInput = {
|
||||
@@ -45337,6 +45394,7 @@ export namespace Prisma {
|
||||
productId?: StringFieldUpdateOperationsInput | string
|
||||
url?: StringFieldUpdateOperationsInput | string
|
||||
sortOrder?: IntFieldUpdateOperationsInput | number
|
||||
role?: EnumProductImageRoleFieldUpdateOperationsInput | $Enums.ProductImageRole
|
||||
}
|
||||
|
||||
export type ProductVariantCreateInput = {
|
||||
@@ -48032,11 +48090,19 @@ export namespace Prisma {
|
||||
showType?: SortOrder
|
||||
}
|
||||
|
||||
export type EnumProductImageRoleFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.ProductImageRole | EnumProductImageRoleFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.ProductImageRole[] | ListEnumProductImageRoleFieldRefInput<$PrismaModel>
|
||||
notIn?: $Enums.ProductImageRole[] | ListEnumProductImageRoleFieldRefInput<$PrismaModel>
|
||||
not?: NestedEnumProductImageRoleFilter<$PrismaModel> | $Enums.ProductImageRole
|
||||
}
|
||||
|
||||
export type ProductImageCountOrderByAggregateInput = {
|
||||
id?: SortOrder
|
||||
productId?: SortOrder
|
||||
url?: SortOrder
|
||||
sortOrder?: SortOrder
|
||||
role?: SortOrder
|
||||
}
|
||||
|
||||
export type ProductImageAvgOrderByAggregateInput = {
|
||||
@@ -48048,6 +48114,7 @@ export namespace Prisma {
|
||||
productId?: SortOrder
|
||||
url?: SortOrder
|
||||
sortOrder?: SortOrder
|
||||
role?: SortOrder
|
||||
}
|
||||
|
||||
export type ProductImageMinOrderByAggregateInput = {
|
||||
@@ -48055,12 +48122,23 @@ export namespace Prisma {
|
||||
productId?: SortOrder
|
||||
url?: SortOrder
|
||||
sortOrder?: SortOrder
|
||||
role?: SortOrder
|
||||
}
|
||||
|
||||
export type ProductImageSumOrderByAggregateInput = {
|
||||
sortOrder?: SortOrder
|
||||
}
|
||||
|
||||
export type EnumProductImageRoleWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.ProductImageRole | EnumProductImageRoleFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.ProductImageRole[] | ListEnumProductImageRoleFieldRefInput<$PrismaModel>
|
||||
notIn?: $Enums.ProductImageRole[] | ListEnumProductImageRoleFieldRefInput<$PrismaModel>
|
||||
not?: NestedEnumProductImageRoleWithAggregatesFilter<$PrismaModel> | $Enums.ProductImageRole
|
||||
_count?: NestedIntFilter<$PrismaModel>
|
||||
_min?: NestedEnumProductImageRoleFilter<$PrismaModel>
|
||||
_max?: NestedEnumProductImageRoleFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type OrderItemListRelationFilter = {
|
||||
every?: OrderItemWhereInput
|
||||
some?: OrderItemWhereInput
|
||||
@@ -51177,6 +51255,10 @@ export namespace Prisma {
|
||||
connect?: ProductWhereUniqueInput
|
||||
}
|
||||
|
||||
export type EnumProductImageRoleFieldUpdateOperationsInput = {
|
||||
set?: $Enums.ProductImageRole
|
||||
}
|
||||
|
||||
export type ProductUpdateOneRequiredWithoutImagesNestedInput = {
|
||||
create?: XOR<ProductCreateWithoutImagesInput, ProductUncheckedCreateWithoutImagesInput>
|
||||
connectOrCreate?: ProductCreateOrConnectWithoutImagesInput
|
||||
@@ -52532,6 +52614,23 @@ export namespace Prisma {
|
||||
not?: NestedFloatFilter<$PrismaModel> | number
|
||||
}
|
||||
|
||||
export type NestedEnumProductImageRoleFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.ProductImageRole | EnumProductImageRoleFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.ProductImageRole[] | ListEnumProductImageRoleFieldRefInput<$PrismaModel>
|
||||
notIn?: $Enums.ProductImageRole[] | ListEnumProductImageRoleFieldRefInput<$PrismaModel>
|
||||
not?: NestedEnumProductImageRoleFilter<$PrismaModel> | $Enums.ProductImageRole
|
||||
}
|
||||
|
||||
export type NestedEnumProductImageRoleWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.ProductImageRole | EnumProductImageRoleFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.ProductImageRole[] | ListEnumProductImageRoleFieldRefInput<$PrismaModel>
|
||||
notIn?: $Enums.ProductImageRole[] | ListEnumProductImageRoleFieldRefInput<$PrismaModel>
|
||||
not?: NestedEnumProductImageRoleWithAggregatesFilter<$PrismaModel> | $Enums.ProductImageRole
|
||||
_count?: NestedIntFilter<$PrismaModel>
|
||||
_min?: NestedEnumProductImageRoleFilter<$PrismaModel>
|
||||
_max?: NestedEnumProductImageRoleFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type NestedEnumOrderChannelFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.OrderChannel | EnumOrderChannelFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.OrderChannel[] | ListEnumOrderChannelFieldRefInput<$PrismaModel>
|
||||
@@ -55882,12 +55981,14 @@ export namespace Prisma {
|
||||
id?: string
|
||||
url: string
|
||||
sortOrder?: number
|
||||
role?: $Enums.ProductImageRole
|
||||
}
|
||||
|
||||
export type ProductImageUncheckedCreateWithoutProductInput = {
|
||||
id?: string
|
||||
url: string
|
||||
sortOrder?: number
|
||||
role?: $Enums.ProductImageRole
|
||||
}
|
||||
|
||||
export type ProductImageCreateOrConnectWithoutProductInput = {
|
||||
@@ -56133,6 +56234,7 @@ export namespace Prisma {
|
||||
productId?: StringFilter<"ProductImage"> | string
|
||||
url?: StringFilter<"ProductImage"> | string
|
||||
sortOrder?: IntFilter<"ProductImage"> | number
|
||||
role?: EnumProductImageRoleFilter<"ProductImage"> | $Enums.ProductImageRole
|
||||
}
|
||||
|
||||
export type CollectionProductUpsertWithWhereUniqueWithoutProductInput = {
|
||||
@@ -62235,6 +62337,7 @@ export namespace Prisma {
|
||||
id?: string
|
||||
url: string
|
||||
sortOrder?: number
|
||||
role?: $Enums.ProductImageRole
|
||||
}
|
||||
|
||||
export type CollectionProductCreateManyProductInput = {
|
||||
@@ -62314,18 +62417,21 @@ export namespace Prisma {
|
||||
id?: StringFieldUpdateOperationsInput | string
|
||||
url?: StringFieldUpdateOperationsInput | string
|
||||
sortOrder?: IntFieldUpdateOperationsInput | number
|
||||
role?: EnumProductImageRoleFieldUpdateOperationsInput | $Enums.ProductImageRole
|
||||
}
|
||||
|
||||
export type ProductImageUncheckedUpdateWithoutProductInput = {
|
||||
id?: StringFieldUpdateOperationsInput | string
|
||||
url?: StringFieldUpdateOperationsInput | string
|
||||
sortOrder?: IntFieldUpdateOperationsInput | number
|
||||
role?: EnumProductImageRoleFieldUpdateOperationsInput | $Enums.ProductImageRole
|
||||
}
|
||||
|
||||
export type ProductImageUncheckedUpdateManyWithoutProductInput = {
|
||||
id?: StringFieldUpdateOperationsInput | string
|
||||
url?: StringFieldUpdateOperationsInput | string
|
||||
sortOrder?: IntFieldUpdateOperationsInput | number
|
||||
role?: EnumProductImageRoleFieldUpdateOperationsInput | $Enums.ProductImageRole
|
||||
}
|
||||
|
||||
export type CollectionProductUpdateWithoutProductInput = {
|
||||
|
||||
+16
-7
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "prisma-client-9a5464add1bac751da0fd2476fcc0a15f434a77547c687bcb5959b29d451c62b",
|
||||
"name": "prisma-client-ed6338840581098d1a6f6e7ebfa38995b890cf67ba58cec8ad302fd997d92a01",
|
||||
"main": "index.js",
|
||||
"types": "index.d.ts",
|
||||
"browser": "index-browser.js",
|
||||
|
||||
+14
-3
@@ -320,11 +320,22 @@ model Product {
|
||||
}
|
||||
|
||||
model ProductImage {
|
||||
id String @id @default(cuid())
|
||||
id String @id @default(cuid())
|
||||
productId String
|
||||
product Product @relation(fields: [productId], references: [id])
|
||||
product Product @relation(fields: [productId], references: [id])
|
||||
url String
|
||||
sortOrder Int @default(0)
|
||||
sortOrder Int @default(0)
|
||||
/// Legacy had 4 distinct upload slots (تصویر شاخص / تصویر شاخص موبایل /
|
||||
/// گالری تصاویر سایت / گالری تصاویر موبایل) — GALLERY is the default so
|
||||
/// existing rows and any generic "just attach an image" caller keep working.
|
||||
role ProductImageRole @default(GALLERY)
|
||||
}
|
||||
|
||||
enum ProductImageRole {
|
||||
FEATURED
|
||||
FEATURED_MOBILE
|
||||
GALLERY
|
||||
GALLERY_MOBILE
|
||||
}
|
||||
|
||||
model ProductVariant {
|
||||
|
||||
+9
-1
@@ -243,7 +243,8 @@ exports.Prisma.ProductImageScalarFieldEnum = {
|
||||
id: 'id',
|
||||
productId: 'productId',
|
||||
url: 'url',
|
||||
sortOrder: 'sortOrder'
|
||||
sortOrder: 'sortOrder',
|
||||
role: 'role'
|
||||
};
|
||||
|
||||
exports.Prisma.ProductVariantScalarFieldEnum = {
|
||||
@@ -537,6 +538,13 @@ exports.VerificationStep = exports.$Enums.VerificationStep = {
|
||||
VERIFIED: 'VERIFIED'
|
||||
};
|
||||
|
||||
exports.ProductImageRole = exports.$Enums.ProductImageRole = {
|
||||
FEATURED: 'FEATURED',
|
||||
FEATURED_MOBILE: 'FEATURED_MOBILE',
|
||||
GALLERY: 'GALLERY',
|
||||
GALLERY_MOBILE: 'GALLERY_MOBILE'
|
||||
};
|
||||
|
||||
exports.OrderChannel = exports.$Enums.OrderChannel = {
|
||||
RETAIL: 'RETAIL',
|
||||
WHOLESALE: 'WHOLESALE'
|
||||
|
||||
Reference in New Issue
Block a user