@commercejs/platform 0.1.0
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/README.md +156 -0
- package/dist/__tests__/platform.drizzle.test.d.ts +2 -0
- package/dist/__tests__/platform.drizzle.test.d.ts.map +1 -0
- package/dist/__tests__/platform.drizzle.test.js +27 -0
- package/dist/__tests__/platform.drizzle.test.js.map +1 -0
- package/dist/__tests__/platform.prisma.test.d.ts +2 -0
- package/dist/__tests__/platform.prisma.test.d.ts.map +1 -0
- package/dist/__tests__/platform.prisma.test.js +27 -0
- package/dist/__tests__/platform.prisma.test.js.map +1 -0
- package/dist/__tests__/platform.suite.d.ts +8 -0
- package/dist/__tests__/platform.suite.d.ts.map +1 -0
- package/dist/__tests__/platform.suite.js +406 -0
- package/dist/__tests__/platform.suite.js.map +1 -0
- package/dist/adapter.d.ts +20 -0
- package/dist/adapter.d.ts.map +1 -0
- package/dist/adapter.js +122 -0
- package/dist/adapter.js.map +1 -0
- package/dist/database/drizzle/client.d.ts +13 -0
- package/dist/database/drizzle/client.d.ts.map +1 -0
- package/dist/database/drizzle/client.js +29 -0
- package/dist/database/drizzle/client.js.map +1 -0
- package/dist/database/drizzle/index.d.ts +5 -0
- package/dist/database/drizzle/index.d.ts.map +1 -0
- package/dist/database/drizzle/index.js +7 -0
- package/dist/database/drizzle/index.js.map +1 -0
- package/dist/database/drizzle/migrate.d.ts +9 -0
- package/dist/database/drizzle/migrate.d.ts.map +1 -0
- package/dist/database/drizzle/migrate.js +317 -0
- package/dist/database/drizzle/migrate.js.map +1 -0
- package/dist/database/drizzle/queries/brands.d.ts +26 -0
- package/dist/database/drizzle/queries/brands.d.ts.map +1 -0
- package/dist/database/drizzle/queries/brands.js +19 -0
- package/dist/database/drizzle/queries/brands.js.map +1 -0
- package/dist/database/drizzle/queries/cart.d.ts +61 -0
- package/dist/database/drizzle/queries/cart.d.ts.map +1 -0
- package/dist/database/drizzle/queries/cart.js +57 -0
- package/dist/database/drizzle/queries/cart.js.map +1 -0
- package/dist/database/drizzle/queries/catalog.d.ts +149 -0
- package/dist/database/drizzle/queries/catalog.d.ts.map +1 -0
- package/dist/database/drizzle/queries/catalog.js +88 -0
- package/dist/database/drizzle/queries/catalog.js.map +1 -0
- package/dist/database/drizzle/queries/countries.d.ts +22 -0
- package/dist/database/drizzle/queries/countries.d.ts.map +1 -0
- package/dist/database/drizzle/queries/countries.js +19 -0
- package/dist/database/drizzle/queries/countries.js.map +1 -0
- package/dist/database/drizzle/queries/customers.d.ts +87 -0
- package/dist/database/drizzle/queries/customers.d.ts.map +1 -0
- package/dist/database/drizzle/queries/customers.js +41 -0
- package/dist/database/drizzle/queries/customers.js.map +1 -0
- package/dist/database/drizzle/queries/index.d.ts +12 -0
- package/dist/database/drizzle/queries/index.d.ts.map +1 -0
- package/dist/database/drizzle/queries/index.js +28 -0
- package/dist/database/drizzle/queries/index.js.map +1 -0
- package/dist/database/drizzle/queries/orders.d.ts +74 -0
- package/dist/database/drizzle/queries/orders.d.ts.map +1 -0
- package/dist/database/drizzle/queries/orders.js +39 -0
- package/dist/database/drizzle/queries/orders.js.map +1 -0
- package/dist/database/drizzle/queries/promotions.d.ts +61 -0
- package/dist/database/drizzle/queries/promotions.d.ts.map +1 -0
- package/dist/database/drizzle/queries/promotions.js +39 -0
- package/dist/database/drizzle/queries/promotions.js.map +1 -0
- package/dist/database/drizzle/queries/returns.d.ts +62 -0
- package/dist/database/drizzle/queries/returns.d.ts.map +1 -0
- package/dist/database/drizzle/queries/returns.js +58 -0
- package/dist/database/drizzle/queries/returns.js.map +1 -0
- package/dist/database/drizzle/queries/reviews.d.ts +25 -0
- package/dist/database/drizzle/queries/reviews.d.ts.map +1 -0
- package/dist/database/drizzle/queries/reviews.js +57 -0
- package/dist/database/drizzle/queries/reviews.js.map +1 -0
- package/dist/database/drizzle/queries/store.d.ts +22 -0
- package/dist/database/drizzle/queries/store.d.ts.map +1 -0
- package/dist/database/drizzle/queries/store.js +14 -0
- package/dist/database/drizzle/queries/store.js.map +1 -0
- package/dist/database/drizzle/queries/wishlists.d.ts +31 -0
- package/dist/database/drizzle/queries/wishlists.d.ts.map +1 -0
- package/dist/database/drizzle/queries/wishlists.js +44 -0
- package/dist/database/drizzle/queries/wishlists.js.map +1 -0
- package/dist/database/drizzle/schema/brands.d.ts +196 -0
- package/dist/database/drizzle/schema/brands.d.ts.map +1 -0
- package/dist/database/drizzle/schema/brands.js +17 -0
- package/dist/database/drizzle/schema/brands.js.map +1 -0
- package/dist/database/drizzle/schema/carts.d.ts +294 -0
- package/dist/database/drizzle/schema/carts.d.ts.map +1 -0
- package/dist/database/drizzle/schema/carts.js +28 -0
- package/dist/database/drizzle/schema/carts.js.map +1 -0
- package/dist/database/drizzle/schema/categories.d.ts +215 -0
- package/dist/database/drizzle/schema/categories.d.ts.map +1 -0
- package/dist/database/drizzle/schema/categories.js +18 -0
- package/dist/database/drizzle/schema/categories.js.map +1 -0
- package/dist/database/drizzle/schema/countries.d.ts +158 -0
- package/dist/database/drizzle/schema/countries.d.ts.map +1 -0
- package/dist/database/drizzle/schema/countries.js +15 -0
- package/dist/database/drizzle/schema/countries.js.map +1 -0
- package/dist/database/drizzle/schema/customers.d.ts +469 -0
- package/dist/database/drizzle/schema/customers.d.ts.map +1 -0
- package/dist/database/drizzle/schema/customers.js +33 -0
- package/dist/database/drizzle/schema/customers.js.map +1 -0
- package/dist/database/drizzle/schema/index.d.ts +13 -0
- package/dist/database/drizzle/schema/index.d.ts.map +1 -0
- package/dist/database/drizzle/schema/index.js +16 -0
- package/dist/database/drizzle/schema/index.js.map +1 -0
- package/dist/database/drizzle/schema/orders.d.ts +722 -0
- package/dist/database/drizzle/schema/orders.d.ts.map +1 -0
- package/dist/database/drizzle/schema/orders.js +63 -0
- package/dist/database/drizzle/schema/orders.js.map +1 -0
- package/dist/database/drizzle/schema/products.d.ts +1180 -0
- package/dist/database/drizzle/schema/products.d.ts.map +1 -0
- package/dist/database/drizzle/schema/products.js +99 -0
- package/dist/database/drizzle/schema/products.js.map +1 -0
- package/dist/database/drizzle/schema/promotions.d.ts +474 -0
- package/dist/database/drizzle/schema/promotions.d.ts.map +1 -0
- package/dist/database/drizzle/schema/promotions.js +34 -0
- package/dist/database/drizzle/schema/promotions.js.map +1 -0
- package/dist/database/drizzle/schema/returns.d.ts +467 -0
- package/dist/database/drizzle/schema/returns.d.ts.map +1 -0
- package/dist/database/drizzle/schema/returns.js +34 -0
- package/dist/database/drizzle/schema/returns.js.map +1 -0
- package/dist/database/drizzle/schema/reviews.d.ts +175 -0
- package/dist/database/drizzle/schema/reviews.d.ts.map +1 -0
- package/dist/database/drizzle/schema/reviews.js +17 -0
- package/dist/database/drizzle/schema/reviews.js.map +1 -0
- package/dist/database/drizzle/schema/store.d.ts +350 -0
- package/dist/database/drizzle/schema/store.d.ts.map +1 -0
- package/dist/database/drizzle/schema/store.js +25 -0
- package/dist/database/drizzle/schema/store.js.map +1 -0
- package/dist/database/drizzle/schema/wishlists.d.ts +167 -0
- package/dist/database/drizzle/schema/wishlists.d.ts.map +1 -0
- package/dist/database/drizzle/schema/wishlists.js +19 -0
- package/dist/database/drizzle/schema/wishlists.js.map +1 -0
- package/dist/database/drizzle/seed.d.ts +6 -0
- package/dist/database/drizzle/seed.d.ts.map +1 -0
- package/dist/database/drizzle/seed.js +166 -0
- package/dist/database/drizzle/seed.js.map +1 -0
- package/dist/database/index.d.ts +8 -0
- package/dist/database/index.d.ts.map +1 -0
- package/dist/database/index.js +12 -0
- package/dist/database/index.js.map +1 -0
- package/dist/database/prisma/client.d.ts +13 -0
- package/dist/database/prisma/client.d.ts.map +1 -0
- package/dist/database/prisma/client.js +25 -0
- package/dist/database/prisma/client.js.map +1 -0
- package/dist/database/prisma/generated/browser.d.ts +135 -0
- package/dist/database/prisma/generated/browser.d.ts.map +1 -0
- package/dist/database/prisma/generated/browser.js +18 -0
- package/dist/database/prisma/generated/browser.js.map +1 -0
- package/dist/database/prisma/generated/client.d.ts +152 -0
- package/dist/database/prisma/generated/client.d.ts.map +1 -0
- package/dist/database/prisma/generated/client.js +33 -0
- package/dist/database/prisma/generated/client.js.map +1 -0
- package/dist/database/prisma/generated/commonInputTypes.d.ts +344 -0
- package/dist/database/prisma/generated/commonInputTypes.d.ts.map +1 -0
- package/dist/database/prisma/generated/commonInputTypes.js +11 -0
- package/dist/database/prisma/generated/commonInputTypes.js.map +1 -0
- package/dist/database/prisma/generated/enums.d.ts +2 -0
- package/dist/database/prisma/generated/enums.d.ts.map +1 -0
- package/dist/database/prisma/generated/enums.js +11 -0
- package/dist/database/prisma/generated/enums.js.map +1 -0
- package/dist/database/prisma/generated/internal/class.d.ts +402 -0
- package/dist/database/prisma/generated/internal/class.d.ts.map +1 -0
- package/dist/database/prisma/generated/internal/class.js +42 -0
- package/dist/database/prisma/generated/internal/class.js.map +1 -0
- package/dist/database/prisma/generated/internal/prismaNamespace.d.ts +2735 -0
- package/dist/database/prisma/generated/internal/prismaNamespace.d.ts.map +1 -0
- package/dist/database/prisma/generated/internal/prismaNamespace.js +415 -0
- package/dist/database/prisma/generated/internal/prismaNamespace.js.map +1 -0
- package/dist/database/prisma/generated/internal/prismaNamespaceBrowser.d.ts +400 -0
- package/dist/database/prisma/generated/internal/prismaNamespaceBrowser.d.ts.map +1 -0
- package/dist/database/prisma/generated/internal/prismaNamespaceBrowser.js +386 -0
- package/dist/database/prisma/generated/internal/prismaNamespaceBrowser.js.map +1 -0
- package/dist/database/prisma/generated/models/Brand.d.ts +1141 -0
- package/dist/database/prisma/generated/models/Brand.d.ts.map +1 -0
- package/dist/database/prisma/generated/models/Brand.js +2 -0
- package/dist/database/prisma/generated/models/Brand.js.map +1 -0
- package/dist/database/prisma/generated/models/Cart.d.ts +1464 -0
- package/dist/database/prisma/generated/models/Cart.d.ts.map +1 -0
- package/dist/database/prisma/generated/models/Cart.js +2 -0
- package/dist/database/prisma/generated/models/Cart.js.map +1 -0
- package/dist/database/prisma/generated/models/CartItem.d.ts +1487 -0
- package/dist/database/prisma/generated/models/CartItem.d.ts.map +1 -0
- package/dist/database/prisma/generated/models/CartItem.js +2 -0
- package/dist/database/prisma/generated/models/CartItem.js.map +1 -0
- package/dist/database/prisma/generated/models/Category.d.ts +1717 -0
- package/dist/database/prisma/generated/models/Category.d.ts.map +1 -0
- package/dist/database/prisma/generated/models/Category.js +2 -0
- package/dist/database/prisma/generated/models/Category.js.map +1 -0
- package/dist/database/prisma/generated/models/Country.d.ts +1076 -0
- package/dist/database/prisma/generated/models/Country.d.ts.map +1 -0
- package/dist/database/prisma/generated/models/Country.js +2 -0
- package/dist/database/prisma/generated/models/Country.js.map +1 -0
- package/dist/database/prisma/generated/models/Coupon.d.ts +1242 -0
- package/dist/database/prisma/generated/models/Coupon.d.ts.map +1 -0
- package/dist/database/prisma/generated/models/Coupon.js +2 -0
- package/dist/database/prisma/generated/models/Coupon.js.map +1 -0
- package/dist/database/prisma/generated/models/Customer.d.ts +1536 -0
- package/dist/database/prisma/generated/models/Customer.d.ts.map +1 -0
- package/dist/database/prisma/generated/models/Customer.js +2 -0
- package/dist/database/prisma/generated/models/Customer.js.map +1 -0
- package/dist/database/prisma/generated/models/CustomerAddress.d.ts +1519 -0
- package/dist/database/prisma/generated/models/CustomerAddress.d.ts.map +1 -0
- package/dist/database/prisma/generated/models/CustomerAddress.js +2 -0
- package/dist/database/prisma/generated/models/CustomerAddress.js.map +1 -0
- package/dist/database/prisma/generated/models/Order.d.ts +2136 -0
- package/dist/database/prisma/generated/models/Order.d.ts.map +1 -0
- package/dist/database/prisma/generated/models/Order.js +2 -0
- package/dist/database/prisma/generated/models/Order.js.map +1 -0
- package/dist/database/prisma/generated/models/OrderHistory.d.ts +1204 -0
- package/dist/database/prisma/generated/models/OrderHistory.d.ts.map +1 -0
- package/dist/database/prisma/generated/models/OrderHistory.js +2 -0
- package/dist/database/prisma/generated/models/OrderHistory.js.map +1 -0
- package/dist/database/prisma/generated/models/OrderItem.d.ts +1464 -0
- package/dist/database/prisma/generated/models/OrderItem.d.ts.map +1 -0
- package/dist/database/prisma/generated/models/OrderItem.js +2 -0
- package/dist/database/prisma/generated/models/OrderItem.js.map +1 -0
- package/dist/database/prisma/generated/models/Product.d.ts +2969 -0
- package/dist/database/prisma/generated/models/Product.d.ts.map +1 -0
- package/dist/database/prisma/generated/models/Product.js +2 -0
- package/dist/database/prisma/generated/models/Product.js.map +1 -0
- package/dist/database/prisma/generated/models/ProductAttribute.d.ts +1239 -0
- package/dist/database/prisma/generated/models/ProductAttribute.d.ts.map +1 -0
- package/dist/database/prisma/generated/models/ProductAttribute.js +2 -0
- package/dist/database/prisma/generated/models/ProductAttribute.js.map +1 -0
- package/dist/database/prisma/generated/models/ProductCategory.d.ts +1154 -0
- package/dist/database/prisma/generated/models/ProductCategory.d.ts.map +1 -0
- package/dist/database/prisma/generated/models/ProductCategory.js +2 -0
- package/dist/database/prisma/generated/models/ProductCategory.js.map +1 -0
- package/dist/database/prisma/generated/models/ProductImage.d.ts +1242 -0
- package/dist/database/prisma/generated/models/ProductImage.d.ts.map +1 -0
- package/dist/database/prisma/generated/models/ProductImage.js +2 -0
- package/dist/database/prisma/generated/models/ProductImage.js.map +1 -0
- package/dist/database/prisma/generated/models/ProductOption.d.ts +1328 -0
- package/dist/database/prisma/generated/models/ProductOption.d.ts.map +1 -0
- package/dist/database/prisma/generated/models/ProductOption.js +2 -0
- package/dist/database/prisma/generated/models/ProductOption.js.map +1 -0
- package/dist/database/prisma/generated/models/ProductOptionValue.d.ts +1207 -0
- package/dist/database/prisma/generated/models/ProductOptionValue.d.ts.map +1 -0
- package/dist/database/prisma/generated/models/ProductOptionValue.js +2 -0
- package/dist/database/prisma/generated/models/ProductOptionValue.js.map +1 -0
- package/dist/database/prisma/generated/models/ProductTag.d.ts +1099 -0
- package/dist/database/prisma/generated/models/ProductTag.d.ts.map +1 -0
- package/dist/database/prisma/generated/models/ProductTag.js +2 -0
- package/dist/database/prisma/generated/models/ProductTag.js.map +1 -0
- package/dist/database/prisma/generated/models/ProductVariant.d.ts +1543 -0
- package/dist/database/prisma/generated/models/ProductVariant.d.ts.map +1 -0
- package/dist/database/prisma/generated/models/ProductVariant.js +2 -0
- package/dist/database/prisma/generated/models/ProductVariant.js.map +1 -0
- package/dist/database/prisma/generated/models/Promotion.d.ts +1658 -0
- package/dist/database/prisma/generated/models/Promotion.d.ts.map +1 -0
- package/dist/database/prisma/generated/models/Promotion.js +2 -0
- package/dist/database/prisma/generated/models/Promotion.js.map +1 -0
- package/dist/database/prisma/generated/models/Return.d.ts +1448 -0
- package/dist/database/prisma/generated/models/Return.d.ts.map +1 -0
- package/dist/database/prisma/generated/models/Return.js +2 -0
- package/dist/database/prisma/generated/models/Return.js.map +1 -0
- package/dist/database/prisma/generated/models/ReturnItem.d.ts +1417 -0
- package/dist/database/prisma/generated/models/ReturnItem.d.ts.map +1 -0
- package/dist/database/prisma/generated/models/ReturnItem.js +2 -0
- package/dist/database/prisma/generated/models/ReturnItem.js.map +1 -0
- package/dist/database/prisma/generated/models/Review.d.ts +1142 -0
- package/dist/database/prisma/generated/models/Review.d.ts.map +1 -0
- package/dist/database/prisma/generated/models/Review.js +2 -0
- package/dist/database/prisma/generated/models/Review.js.map +1 -0
- package/dist/database/prisma/generated/models/StoreInfo.d.ts +1356 -0
- package/dist/database/prisma/generated/models/StoreInfo.d.ts.map +1 -0
- package/dist/database/prisma/generated/models/StoreInfo.js +2 -0
- package/dist/database/prisma/generated/models/StoreInfo.js.map +1 -0
- package/dist/database/prisma/generated/models/Wishlist.d.ts +1090 -0
- package/dist/database/prisma/generated/models/Wishlist.d.ts.map +1 -0
- package/dist/database/prisma/generated/models/Wishlist.js +2 -0
- package/dist/database/prisma/generated/models/Wishlist.js.map +1 -0
- package/dist/database/prisma/generated/models/WishlistItem.d.ts +1169 -0
- package/dist/database/prisma/generated/models/WishlistItem.d.ts.map +1 -0
- package/dist/database/prisma/generated/models/WishlistItem.js +2 -0
- package/dist/database/prisma/generated/models/WishlistItem.js.map +1 -0
- package/dist/database/prisma/generated/models.d.ts +28 -0
- package/dist/database/prisma/generated/models.d.ts.map +1 -0
- package/dist/database/prisma/generated/models.js +2 -0
- package/dist/database/prisma/generated/models.js.map +1 -0
- package/dist/database/prisma/index.d.ts +5 -0
- package/dist/database/prisma/index.d.ts.map +1 -0
- package/dist/database/prisma/index.js +7 -0
- package/dist/database/prisma/index.js.map +1 -0
- package/dist/database/prisma/migrate.d.ts +8 -0
- package/dist/database/prisma/migrate.d.ts.map +1 -0
- package/dist/database/prisma/migrate.js +323 -0
- package/dist/database/prisma/migrate.js.map +1 -0
- package/dist/database/prisma/queries/brands.d.ts +26 -0
- package/dist/database/prisma/queries/brands.d.ts.map +1 -0
- package/dist/database/prisma/queries/brands.js +17 -0
- package/dist/database/prisma/queries/brands.js.map +1 -0
- package/dist/database/prisma/queries/cart.d.ts +61 -0
- package/dist/database/prisma/queries/cart.d.ts.map +1 -0
- package/dist/database/prisma/queries/cart.js +68 -0
- package/dist/database/prisma/queries/cart.js.map +1 -0
- package/dist/database/prisma/queries/catalog.d.ts +149 -0
- package/dist/database/prisma/queries/catalog.d.ts.map +1 -0
- package/dist/database/prisma/queries/catalog.js +94 -0
- package/dist/database/prisma/queries/catalog.js.map +1 -0
- package/dist/database/prisma/queries/countries.d.ts +22 -0
- package/dist/database/prisma/queries/countries.d.ts.map +1 -0
- package/dist/database/prisma/queries/countries.js +17 -0
- package/dist/database/prisma/queries/countries.js.map +1 -0
- package/dist/database/prisma/queries/customers.d.ts +87 -0
- package/dist/database/prisma/queries/customers.d.ts.map +1 -0
- package/dist/database/prisma/queries/customers.js +32 -0
- package/dist/database/prisma/queries/customers.js.map +1 -0
- package/dist/database/prisma/queries/index.d.ts +12 -0
- package/dist/database/prisma/queries/index.d.ts.map +1 -0
- package/dist/database/prisma/queries/index.js +28 -0
- package/dist/database/prisma/queries/index.js.map +1 -0
- package/dist/database/prisma/queries/orders.d.ts +74 -0
- package/dist/database/prisma/queries/orders.d.ts.map +1 -0
- package/dist/database/prisma/queries/orders.js +49 -0
- package/dist/database/prisma/queries/orders.js.map +1 -0
- package/dist/database/prisma/queries/promotions.d.ts +81 -0
- package/dist/database/prisma/queries/promotions.d.ts.map +1 -0
- package/dist/database/prisma/queries/promotions.js +31 -0
- package/dist/database/prisma/queries/promotions.js.map +1 -0
- package/dist/database/prisma/queries/returns.d.ts +102 -0
- package/dist/database/prisma/queries/returns.d.ts.map +1 -0
- package/dist/database/prisma/queries/returns.js +50 -0
- package/dist/database/prisma/queries/returns.js.map +1 -0
- package/dist/database/prisma/queries/reviews.d.ts +25 -0
- package/dist/database/prisma/queries/reviews.d.ts.map +1 -0
- package/dist/database/prisma/queries/reviews.js +50 -0
- package/dist/database/prisma/queries/reviews.js.map +1 -0
- package/dist/database/prisma/queries/store.d.ts +22 -0
- package/dist/database/prisma/queries/store.d.ts.map +1 -0
- package/dist/database/prisma/queries/store.js +31 -0
- package/dist/database/prisma/queries/store.js.map +1 -0
- package/dist/database/prisma/queries/wishlists.d.ts +37 -0
- package/dist/database/prisma/queries/wishlists.d.ts.map +1 -0
- package/dist/database/prisma/queries/wishlists.js +37 -0
- package/dist/database/prisma/queries/wishlists.js.map +1 -0
- package/dist/database/prisma/seed.d.ts +5 -0
- package/dist/database/prisma/seed.d.ts.map +1 -0
- package/dist/database/prisma/seed.js +127 -0
- package/dist/database/prisma/seed.js.map +1 -0
- package/dist/domains/brands.d.ts +5 -0
- package/dist/domains/brands.d.ts.map +1 -0
- package/dist/domains/brands.js +21 -0
- package/dist/domains/brands.js.map +1 -0
- package/dist/domains/cart.d.ts +11 -0
- package/dist/domains/cart.d.ts.map +1 -0
- package/dist/domains/cart.js +110 -0
- package/dist/domains/cart.js.map +1 -0
- package/dist/domains/catalog.d.ts +7 -0
- package/dist/domains/catalog.d.ts.map +1 -0
- package/dist/domains/catalog.js +157 -0
- package/dist/domains/catalog.js.map +1 -0
- package/dist/domains/checkout.d.ts +11 -0
- package/dist/domains/checkout.d.ts.map +1 -0
- package/dist/domains/checkout.js +174 -0
- package/dist/domains/checkout.js.map +1 -0
- package/dist/domains/countries.d.ts +5 -0
- package/dist/domains/countries.d.ts.map +1 -0
- package/dist/domains/countries.js +21 -0
- package/dist/domains/countries.js.map +1 -0
- package/dist/domains/customers.d.ts +17 -0
- package/dist/domains/customers.d.ts.map +1 -0
- package/dist/domains/customers.js +179 -0
- package/dist/domains/customers.js.map +1 -0
- package/dist/domains/helpers.d.ts +14 -0
- package/dist/domains/helpers.d.ts.map +1 -0
- package/dist/domains/helpers.js +46 -0
- package/dist/domains/helpers.js.map +1 -0
- package/dist/domains/not-supported.d.ts +31 -0
- package/dist/domains/not-supported.d.ts.map +1 -0
- package/dist/domains/not-supported.js +43 -0
- package/dist/domains/not-supported.js.map +1 -0
- package/dist/domains/orders.d.ts +12 -0
- package/dist/domains/orders.d.ts.map +1 -0
- package/dist/domains/orders.js +184 -0
- package/dist/domains/orders.js.map +1 -0
- package/dist/domains/promotions.d.ts +6 -0
- package/dist/domains/promotions.d.ts.map +1 -0
- package/dist/domains/promotions.js +56 -0
- package/dist/domains/promotions.js.map +1 -0
- package/dist/domains/returns.d.ts +15 -0
- package/dist/domains/returns.d.ts.map +1 -0
- package/dist/domains/returns.js +83 -0
- package/dist/domains/returns.js.map +1 -0
- package/dist/domains/reviews.d.ts +16 -0
- package/dist/domains/reviews.d.ts.map +1 -0
- package/dist/domains/reviews.js +60 -0
- package/dist/domains/reviews.js.map +1 -0
- package/dist/domains/store.d.ts +5 -0
- package/dist/domains/store.d.ts.map +1 -0
- package/dist/domains/store.js +45 -0
- package/dist/domains/store.js.map +1 -0
- package/dist/domains/wishlist.d.ts +9 -0
- package/dist/domains/wishlist.d.ts.map +1 -0
- package/dist/domains/wishlist.js +76 -0
- package/dist/domains/wishlist.js.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -0
- package/dist/types.d.ts +8 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +5 -0
- package/dist/types.js.map +1 -0
- package/package.json +49 -0
|
@@ -0,0 +1,1543 @@
|
|
|
1
|
+
import type * as runtime from "@prisma/client/runtime/client";
|
|
2
|
+
import type * as Prisma from "../internal/prismaNamespace.js";
|
|
3
|
+
/**
|
|
4
|
+
* Model ProductVariant
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
export type ProductVariantModel = runtime.Types.Result.DefaultSelection<Prisma.$ProductVariantPayload>;
|
|
8
|
+
export type AggregateProductVariant = {
|
|
9
|
+
_count: ProductVariantCountAggregateOutputType | null;
|
|
10
|
+
_avg: ProductVariantAvgAggregateOutputType | null;
|
|
11
|
+
_sum: ProductVariantSumAggregateOutputType | null;
|
|
12
|
+
_min: ProductVariantMinAggregateOutputType | null;
|
|
13
|
+
_max: ProductVariantMaxAggregateOutputType | null;
|
|
14
|
+
};
|
|
15
|
+
export type ProductVariantAvgAggregateOutputType = {
|
|
16
|
+
price: number | null;
|
|
17
|
+
compareAtPrice: number | null;
|
|
18
|
+
inventoryQuantity: number | null;
|
|
19
|
+
sortOrder: number | null;
|
|
20
|
+
};
|
|
21
|
+
export type ProductVariantSumAggregateOutputType = {
|
|
22
|
+
price: number | null;
|
|
23
|
+
compareAtPrice: number | null;
|
|
24
|
+
inventoryQuantity: number | null;
|
|
25
|
+
sortOrder: number | null;
|
|
26
|
+
};
|
|
27
|
+
export type ProductVariantMinAggregateOutputType = {
|
|
28
|
+
id: string | null;
|
|
29
|
+
productId: string | null;
|
|
30
|
+
sku: string | null;
|
|
31
|
+
name: string | null;
|
|
32
|
+
nameAr: string | null;
|
|
33
|
+
price: number | null;
|
|
34
|
+
compareAtPrice: number | null;
|
|
35
|
+
inStock: boolean | null;
|
|
36
|
+
inventoryQuantity: number | null;
|
|
37
|
+
sortOrder: number | null;
|
|
38
|
+
};
|
|
39
|
+
export type ProductVariantMaxAggregateOutputType = {
|
|
40
|
+
id: string | null;
|
|
41
|
+
productId: string | null;
|
|
42
|
+
sku: string | null;
|
|
43
|
+
name: string | null;
|
|
44
|
+
nameAr: string | null;
|
|
45
|
+
price: number | null;
|
|
46
|
+
compareAtPrice: number | null;
|
|
47
|
+
inStock: boolean | null;
|
|
48
|
+
inventoryQuantity: number | null;
|
|
49
|
+
sortOrder: number | null;
|
|
50
|
+
};
|
|
51
|
+
export type ProductVariantCountAggregateOutputType = {
|
|
52
|
+
id: number;
|
|
53
|
+
productId: number;
|
|
54
|
+
sku: number;
|
|
55
|
+
name: number;
|
|
56
|
+
nameAr: number;
|
|
57
|
+
price: number;
|
|
58
|
+
compareAtPrice: number;
|
|
59
|
+
inStock: number;
|
|
60
|
+
inventoryQuantity: number;
|
|
61
|
+
sortOrder: number;
|
|
62
|
+
_all: number;
|
|
63
|
+
};
|
|
64
|
+
export type ProductVariantAvgAggregateInputType = {
|
|
65
|
+
price?: true;
|
|
66
|
+
compareAtPrice?: true;
|
|
67
|
+
inventoryQuantity?: true;
|
|
68
|
+
sortOrder?: true;
|
|
69
|
+
};
|
|
70
|
+
export type ProductVariantSumAggregateInputType = {
|
|
71
|
+
price?: true;
|
|
72
|
+
compareAtPrice?: true;
|
|
73
|
+
inventoryQuantity?: true;
|
|
74
|
+
sortOrder?: true;
|
|
75
|
+
};
|
|
76
|
+
export type ProductVariantMinAggregateInputType = {
|
|
77
|
+
id?: true;
|
|
78
|
+
productId?: true;
|
|
79
|
+
sku?: true;
|
|
80
|
+
name?: true;
|
|
81
|
+
nameAr?: true;
|
|
82
|
+
price?: true;
|
|
83
|
+
compareAtPrice?: true;
|
|
84
|
+
inStock?: true;
|
|
85
|
+
inventoryQuantity?: true;
|
|
86
|
+
sortOrder?: true;
|
|
87
|
+
};
|
|
88
|
+
export type ProductVariantMaxAggregateInputType = {
|
|
89
|
+
id?: true;
|
|
90
|
+
productId?: true;
|
|
91
|
+
sku?: true;
|
|
92
|
+
name?: true;
|
|
93
|
+
nameAr?: true;
|
|
94
|
+
price?: true;
|
|
95
|
+
compareAtPrice?: true;
|
|
96
|
+
inStock?: true;
|
|
97
|
+
inventoryQuantity?: true;
|
|
98
|
+
sortOrder?: true;
|
|
99
|
+
};
|
|
100
|
+
export type ProductVariantCountAggregateInputType = {
|
|
101
|
+
id?: true;
|
|
102
|
+
productId?: true;
|
|
103
|
+
sku?: true;
|
|
104
|
+
name?: true;
|
|
105
|
+
nameAr?: true;
|
|
106
|
+
price?: true;
|
|
107
|
+
compareAtPrice?: true;
|
|
108
|
+
inStock?: true;
|
|
109
|
+
inventoryQuantity?: true;
|
|
110
|
+
sortOrder?: true;
|
|
111
|
+
_all?: true;
|
|
112
|
+
};
|
|
113
|
+
export type ProductVariantAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
114
|
+
/**
|
|
115
|
+
* Filter which ProductVariant to aggregate.
|
|
116
|
+
*/
|
|
117
|
+
where?: Prisma.ProductVariantWhereInput;
|
|
118
|
+
/**
|
|
119
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
120
|
+
*
|
|
121
|
+
* Determine the order of ProductVariants to fetch.
|
|
122
|
+
*/
|
|
123
|
+
orderBy?: Prisma.ProductVariantOrderByWithRelationInput | Prisma.ProductVariantOrderByWithRelationInput[];
|
|
124
|
+
/**
|
|
125
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
126
|
+
*
|
|
127
|
+
* Sets the start position
|
|
128
|
+
*/
|
|
129
|
+
cursor?: Prisma.ProductVariantWhereUniqueInput;
|
|
130
|
+
/**
|
|
131
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
132
|
+
*
|
|
133
|
+
* Take `±n` ProductVariants from the position of the cursor.
|
|
134
|
+
*/
|
|
135
|
+
take?: number;
|
|
136
|
+
/**
|
|
137
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
138
|
+
*
|
|
139
|
+
* Skip the first `n` ProductVariants.
|
|
140
|
+
*/
|
|
141
|
+
skip?: number;
|
|
142
|
+
/**
|
|
143
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
144
|
+
*
|
|
145
|
+
* Count returned ProductVariants
|
|
146
|
+
**/
|
|
147
|
+
_count?: true | ProductVariantCountAggregateInputType;
|
|
148
|
+
/**
|
|
149
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
150
|
+
*
|
|
151
|
+
* Select which fields to average
|
|
152
|
+
**/
|
|
153
|
+
_avg?: ProductVariantAvgAggregateInputType;
|
|
154
|
+
/**
|
|
155
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
156
|
+
*
|
|
157
|
+
* Select which fields to sum
|
|
158
|
+
**/
|
|
159
|
+
_sum?: ProductVariantSumAggregateInputType;
|
|
160
|
+
/**
|
|
161
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
162
|
+
*
|
|
163
|
+
* Select which fields to find the minimum value
|
|
164
|
+
**/
|
|
165
|
+
_min?: ProductVariantMinAggregateInputType;
|
|
166
|
+
/**
|
|
167
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
168
|
+
*
|
|
169
|
+
* Select which fields to find the maximum value
|
|
170
|
+
**/
|
|
171
|
+
_max?: ProductVariantMaxAggregateInputType;
|
|
172
|
+
};
|
|
173
|
+
export type GetProductVariantAggregateType<T extends ProductVariantAggregateArgs> = {
|
|
174
|
+
[P in keyof T & keyof AggregateProductVariant]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateProductVariant[P]> : Prisma.GetScalarType<T[P], AggregateProductVariant[P]>;
|
|
175
|
+
};
|
|
176
|
+
export type ProductVariantGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
177
|
+
where?: Prisma.ProductVariantWhereInput;
|
|
178
|
+
orderBy?: Prisma.ProductVariantOrderByWithAggregationInput | Prisma.ProductVariantOrderByWithAggregationInput[];
|
|
179
|
+
by: Prisma.ProductVariantScalarFieldEnum[] | Prisma.ProductVariantScalarFieldEnum;
|
|
180
|
+
having?: Prisma.ProductVariantScalarWhereWithAggregatesInput;
|
|
181
|
+
take?: number;
|
|
182
|
+
skip?: number;
|
|
183
|
+
_count?: ProductVariantCountAggregateInputType | true;
|
|
184
|
+
_avg?: ProductVariantAvgAggregateInputType;
|
|
185
|
+
_sum?: ProductVariantSumAggregateInputType;
|
|
186
|
+
_min?: ProductVariantMinAggregateInputType;
|
|
187
|
+
_max?: ProductVariantMaxAggregateInputType;
|
|
188
|
+
};
|
|
189
|
+
export type ProductVariantGroupByOutputType = {
|
|
190
|
+
id: string;
|
|
191
|
+
productId: string;
|
|
192
|
+
sku: string | null;
|
|
193
|
+
name: string | null;
|
|
194
|
+
nameAr: string | null;
|
|
195
|
+
price: number | null;
|
|
196
|
+
compareAtPrice: number | null;
|
|
197
|
+
inStock: boolean;
|
|
198
|
+
inventoryQuantity: number | null;
|
|
199
|
+
sortOrder: number;
|
|
200
|
+
_count: ProductVariantCountAggregateOutputType | null;
|
|
201
|
+
_avg: ProductVariantAvgAggregateOutputType | null;
|
|
202
|
+
_sum: ProductVariantSumAggregateOutputType | null;
|
|
203
|
+
_min: ProductVariantMinAggregateOutputType | null;
|
|
204
|
+
_max: ProductVariantMaxAggregateOutputType | null;
|
|
205
|
+
};
|
|
206
|
+
type GetProductVariantGroupByPayload<T extends ProductVariantGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<ProductVariantGroupByOutputType, T['by']> & {
|
|
207
|
+
[P in ((keyof T) & (keyof ProductVariantGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], ProductVariantGroupByOutputType[P]> : Prisma.GetScalarType<T[P], ProductVariantGroupByOutputType[P]>;
|
|
208
|
+
}>>;
|
|
209
|
+
export type ProductVariantWhereInput = {
|
|
210
|
+
AND?: Prisma.ProductVariantWhereInput | Prisma.ProductVariantWhereInput[];
|
|
211
|
+
OR?: Prisma.ProductVariantWhereInput[];
|
|
212
|
+
NOT?: Prisma.ProductVariantWhereInput | Prisma.ProductVariantWhereInput[];
|
|
213
|
+
id?: Prisma.StringFilter<"ProductVariant"> | string;
|
|
214
|
+
productId?: Prisma.StringFilter<"ProductVariant"> | string;
|
|
215
|
+
sku?: Prisma.StringNullableFilter<"ProductVariant"> | string | null;
|
|
216
|
+
name?: Prisma.StringNullableFilter<"ProductVariant"> | string | null;
|
|
217
|
+
nameAr?: Prisma.StringNullableFilter<"ProductVariant"> | string | null;
|
|
218
|
+
price?: Prisma.FloatNullableFilter<"ProductVariant"> | number | null;
|
|
219
|
+
compareAtPrice?: Prisma.FloatNullableFilter<"ProductVariant"> | number | null;
|
|
220
|
+
inStock?: Prisma.BoolFilter<"ProductVariant"> | boolean;
|
|
221
|
+
inventoryQuantity?: Prisma.IntNullableFilter<"ProductVariant"> | number | null;
|
|
222
|
+
sortOrder?: Prisma.IntFilter<"ProductVariant"> | number;
|
|
223
|
+
product?: Prisma.XOR<Prisma.ProductScalarRelationFilter, Prisma.ProductWhereInput>;
|
|
224
|
+
cartItems?: Prisma.CartItemListRelationFilter;
|
|
225
|
+
};
|
|
226
|
+
export type ProductVariantOrderByWithRelationInput = {
|
|
227
|
+
id?: Prisma.SortOrder;
|
|
228
|
+
productId?: Prisma.SortOrder;
|
|
229
|
+
sku?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
230
|
+
name?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
231
|
+
nameAr?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
232
|
+
price?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
233
|
+
compareAtPrice?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
234
|
+
inStock?: Prisma.SortOrder;
|
|
235
|
+
inventoryQuantity?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
236
|
+
sortOrder?: Prisma.SortOrder;
|
|
237
|
+
product?: Prisma.ProductOrderByWithRelationInput;
|
|
238
|
+
cartItems?: Prisma.CartItemOrderByRelationAggregateInput;
|
|
239
|
+
};
|
|
240
|
+
export type ProductVariantWhereUniqueInput = Prisma.AtLeast<{
|
|
241
|
+
id?: string;
|
|
242
|
+
AND?: Prisma.ProductVariantWhereInput | Prisma.ProductVariantWhereInput[];
|
|
243
|
+
OR?: Prisma.ProductVariantWhereInput[];
|
|
244
|
+
NOT?: Prisma.ProductVariantWhereInput | Prisma.ProductVariantWhereInput[];
|
|
245
|
+
productId?: Prisma.StringFilter<"ProductVariant"> | string;
|
|
246
|
+
sku?: Prisma.StringNullableFilter<"ProductVariant"> | string | null;
|
|
247
|
+
name?: Prisma.StringNullableFilter<"ProductVariant"> | string | null;
|
|
248
|
+
nameAr?: Prisma.StringNullableFilter<"ProductVariant"> | string | null;
|
|
249
|
+
price?: Prisma.FloatNullableFilter<"ProductVariant"> | number | null;
|
|
250
|
+
compareAtPrice?: Prisma.FloatNullableFilter<"ProductVariant"> | number | null;
|
|
251
|
+
inStock?: Prisma.BoolFilter<"ProductVariant"> | boolean;
|
|
252
|
+
inventoryQuantity?: Prisma.IntNullableFilter<"ProductVariant"> | number | null;
|
|
253
|
+
sortOrder?: Prisma.IntFilter<"ProductVariant"> | number;
|
|
254
|
+
product?: Prisma.XOR<Prisma.ProductScalarRelationFilter, Prisma.ProductWhereInput>;
|
|
255
|
+
cartItems?: Prisma.CartItemListRelationFilter;
|
|
256
|
+
}, "id">;
|
|
257
|
+
export type ProductVariantOrderByWithAggregationInput = {
|
|
258
|
+
id?: Prisma.SortOrder;
|
|
259
|
+
productId?: Prisma.SortOrder;
|
|
260
|
+
sku?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
261
|
+
name?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
262
|
+
nameAr?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
263
|
+
price?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
264
|
+
compareAtPrice?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
265
|
+
inStock?: Prisma.SortOrder;
|
|
266
|
+
inventoryQuantity?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
267
|
+
sortOrder?: Prisma.SortOrder;
|
|
268
|
+
_count?: Prisma.ProductVariantCountOrderByAggregateInput;
|
|
269
|
+
_avg?: Prisma.ProductVariantAvgOrderByAggregateInput;
|
|
270
|
+
_max?: Prisma.ProductVariantMaxOrderByAggregateInput;
|
|
271
|
+
_min?: Prisma.ProductVariantMinOrderByAggregateInput;
|
|
272
|
+
_sum?: Prisma.ProductVariantSumOrderByAggregateInput;
|
|
273
|
+
};
|
|
274
|
+
export type ProductVariantScalarWhereWithAggregatesInput = {
|
|
275
|
+
AND?: Prisma.ProductVariantScalarWhereWithAggregatesInput | Prisma.ProductVariantScalarWhereWithAggregatesInput[];
|
|
276
|
+
OR?: Prisma.ProductVariantScalarWhereWithAggregatesInput[];
|
|
277
|
+
NOT?: Prisma.ProductVariantScalarWhereWithAggregatesInput | Prisma.ProductVariantScalarWhereWithAggregatesInput[];
|
|
278
|
+
id?: Prisma.StringWithAggregatesFilter<"ProductVariant"> | string;
|
|
279
|
+
productId?: Prisma.StringWithAggregatesFilter<"ProductVariant"> | string;
|
|
280
|
+
sku?: Prisma.StringNullableWithAggregatesFilter<"ProductVariant"> | string | null;
|
|
281
|
+
name?: Prisma.StringNullableWithAggregatesFilter<"ProductVariant"> | string | null;
|
|
282
|
+
nameAr?: Prisma.StringNullableWithAggregatesFilter<"ProductVariant"> | string | null;
|
|
283
|
+
price?: Prisma.FloatNullableWithAggregatesFilter<"ProductVariant"> | number | null;
|
|
284
|
+
compareAtPrice?: Prisma.FloatNullableWithAggregatesFilter<"ProductVariant"> | number | null;
|
|
285
|
+
inStock?: Prisma.BoolWithAggregatesFilter<"ProductVariant"> | boolean;
|
|
286
|
+
inventoryQuantity?: Prisma.IntNullableWithAggregatesFilter<"ProductVariant"> | number | null;
|
|
287
|
+
sortOrder?: Prisma.IntWithAggregatesFilter<"ProductVariant"> | number;
|
|
288
|
+
};
|
|
289
|
+
export type ProductVariantCreateInput = {
|
|
290
|
+
id?: string;
|
|
291
|
+
sku?: string | null;
|
|
292
|
+
name?: string | null;
|
|
293
|
+
nameAr?: string | null;
|
|
294
|
+
price?: number | null;
|
|
295
|
+
compareAtPrice?: number | null;
|
|
296
|
+
inStock?: boolean;
|
|
297
|
+
inventoryQuantity?: number | null;
|
|
298
|
+
sortOrder?: number;
|
|
299
|
+
product: Prisma.ProductCreateNestedOneWithoutVariantsInput;
|
|
300
|
+
cartItems?: Prisma.CartItemCreateNestedManyWithoutVariantInput;
|
|
301
|
+
};
|
|
302
|
+
export type ProductVariantUncheckedCreateInput = {
|
|
303
|
+
id?: string;
|
|
304
|
+
productId: string;
|
|
305
|
+
sku?: string | null;
|
|
306
|
+
name?: string | null;
|
|
307
|
+
nameAr?: string | null;
|
|
308
|
+
price?: number | null;
|
|
309
|
+
compareAtPrice?: number | null;
|
|
310
|
+
inStock?: boolean;
|
|
311
|
+
inventoryQuantity?: number | null;
|
|
312
|
+
sortOrder?: number;
|
|
313
|
+
cartItems?: Prisma.CartItemUncheckedCreateNestedManyWithoutVariantInput;
|
|
314
|
+
};
|
|
315
|
+
export type ProductVariantUpdateInput = {
|
|
316
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
317
|
+
sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
318
|
+
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
319
|
+
nameAr?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
320
|
+
price?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
321
|
+
compareAtPrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
322
|
+
inStock?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
323
|
+
inventoryQuantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
324
|
+
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
325
|
+
product?: Prisma.ProductUpdateOneRequiredWithoutVariantsNestedInput;
|
|
326
|
+
cartItems?: Prisma.CartItemUpdateManyWithoutVariantNestedInput;
|
|
327
|
+
};
|
|
328
|
+
export type ProductVariantUncheckedUpdateInput = {
|
|
329
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
330
|
+
productId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
331
|
+
sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
332
|
+
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
333
|
+
nameAr?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
334
|
+
price?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
335
|
+
compareAtPrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
336
|
+
inStock?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
337
|
+
inventoryQuantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
338
|
+
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
339
|
+
cartItems?: Prisma.CartItemUncheckedUpdateManyWithoutVariantNestedInput;
|
|
340
|
+
};
|
|
341
|
+
export type ProductVariantCreateManyInput = {
|
|
342
|
+
id?: string;
|
|
343
|
+
productId: string;
|
|
344
|
+
sku?: string | null;
|
|
345
|
+
name?: string | null;
|
|
346
|
+
nameAr?: string | null;
|
|
347
|
+
price?: number | null;
|
|
348
|
+
compareAtPrice?: number | null;
|
|
349
|
+
inStock?: boolean;
|
|
350
|
+
inventoryQuantity?: number | null;
|
|
351
|
+
sortOrder?: number;
|
|
352
|
+
};
|
|
353
|
+
export type ProductVariantUpdateManyMutationInput = {
|
|
354
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
355
|
+
sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
356
|
+
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
357
|
+
nameAr?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
358
|
+
price?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
359
|
+
compareAtPrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
360
|
+
inStock?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
361
|
+
inventoryQuantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
362
|
+
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
363
|
+
};
|
|
364
|
+
export type ProductVariantUncheckedUpdateManyInput = {
|
|
365
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
366
|
+
productId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
367
|
+
sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
368
|
+
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
369
|
+
nameAr?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
370
|
+
price?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
371
|
+
compareAtPrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
372
|
+
inStock?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
373
|
+
inventoryQuantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
374
|
+
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
375
|
+
};
|
|
376
|
+
export type ProductVariantNullableScalarRelationFilter = {
|
|
377
|
+
is?: Prisma.ProductVariantWhereInput | null;
|
|
378
|
+
isNot?: Prisma.ProductVariantWhereInput | null;
|
|
379
|
+
};
|
|
380
|
+
export type ProductVariantListRelationFilter = {
|
|
381
|
+
every?: Prisma.ProductVariantWhereInput;
|
|
382
|
+
some?: Prisma.ProductVariantWhereInput;
|
|
383
|
+
none?: Prisma.ProductVariantWhereInput;
|
|
384
|
+
};
|
|
385
|
+
export type ProductVariantOrderByRelationAggregateInput = {
|
|
386
|
+
_count?: Prisma.SortOrder;
|
|
387
|
+
};
|
|
388
|
+
export type ProductVariantCountOrderByAggregateInput = {
|
|
389
|
+
id?: Prisma.SortOrder;
|
|
390
|
+
productId?: Prisma.SortOrder;
|
|
391
|
+
sku?: Prisma.SortOrder;
|
|
392
|
+
name?: Prisma.SortOrder;
|
|
393
|
+
nameAr?: Prisma.SortOrder;
|
|
394
|
+
price?: Prisma.SortOrder;
|
|
395
|
+
compareAtPrice?: Prisma.SortOrder;
|
|
396
|
+
inStock?: Prisma.SortOrder;
|
|
397
|
+
inventoryQuantity?: Prisma.SortOrder;
|
|
398
|
+
sortOrder?: Prisma.SortOrder;
|
|
399
|
+
};
|
|
400
|
+
export type ProductVariantAvgOrderByAggregateInput = {
|
|
401
|
+
price?: Prisma.SortOrder;
|
|
402
|
+
compareAtPrice?: Prisma.SortOrder;
|
|
403
|
+
inventoryQuantity?: Prisma.SortOrder;
|
|
404
|
+
sortOrder?: Prisma.SortOrder;
|
|
405
|
+
};
|
|
406
|
+
export type ProductVariantMaxOrderByAggregateInput = {
|
|
407
|
+
id?: Prisma.SortOrder;
|
|
408
|
+
productId?: Prisma.SortOrder;
|
|
409
|
+
sku?: Prisma.SortOrder;
|
|
410
|
+
name?: Prisma.SortOrder;
|
|
411
|
+
nameAr?: Prisma.SortOrder;
|
|
412
|
+
price?: Prisma.SortOrder;
|
|
413
|
+
compareAtPrice?: Prisma.SortOrder;
|
|
414
|
+
inStock?: Prisma.SortOrder;
|
|
415
|
+
inventoryQuantity?: Prisma.SortOrder;
|
|
416
|
+
sortOrder?: Prisma.SortOrder;
|
|
417
|
+
};
|
|
418
|
+
export type ProductVariantMinOrderByAggregateInput = {
|
|
419
|
+
id?: Prisma.SortOrder;
|
|
420
|
+
productId?: Prisma.SortOrder;
|
|
421
|
+
sku?: Prisma.SortOrder;
|
|
422
|
+
name?: Prisma.SortOrder;
|
|
423
|
+
nameAr?: Prisma.SortOrder;
|
|
424
|
+
price?: Prisma.SortOrder;
|
|
425
|
+
compareAtPrice?: Prisma.SortOrder;
|
|
426
|
+
inStock?: Prisma.SortOrder;
|
|
427
|
+
inventoryQuantity?: Prisma.SortOrder;
|
|
428
|
+
sortOrder?: Prisma.SortOrder;
|
|
429
|
+
};
|
|
430
|
+
export type ProductVariantSumOrderByAggregateInput = {
|
|
431
|
+
price?: Prisma.SortOrder;
|
|
432
|
+
compareAtPrice?: Prisma.SortOrder;
|
|
433
|
+
inventoryQuantity?: Prisma.SortOrder;
|
|
434
|
+
sortOrder?: Prisma.SortOrder;
|
|
435
|
+
};
|
|
436
|
+
export type ProductVariantCreateNestedOneWithoutCartItemsInput = {
|
|
437
|
+
create?: Prisma.XOR<Prisma.ProductVariantCreateWithoutCartItemsInput, Prisma.ProductVariantUncheckedCreateWithoutCartItemsInput>;
|
|
438
|
+
connectOrCreate?: Prisma.ProductVariantCreateOrConnectWithoutCartItemsInput;
|
|
439
|
+
connect?: Prisma.ProductVariantWhereUniqueInput;
|
|
440
|
+
};
|
|
441
|
+
export type ProductVariantUpdateOneWithoutCartItemsNestedInput = {
|
|
442
|
+
create?: Prisma.XOR<Prisma.ProductVariantCreateWithoutCartItemsInput, Prisma.ProductVariantUncheckedCreateWithoutCartItemsInput>;
|
|
443
|
+
connectOrCreate?: Prisma.ProductVariantCreateOrConnectWithoutCartItemsInput;
|
|
444
|
+
upsert?: Prisma.ProductVariantUpsertWithoutCartItemsInput;
|
|
445
|
+
disconnect?: Prisma.ProductVariantWhereInput | boolean;
|
|
446
|
+
delete?: Prisma.ProductVariantWhereInput | boolean;
|
|
447
|
+
connect?: Prisma.ProductVariantWhereUniqueInput;
|
|
448
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.ProductVariantUpdateToOneWithWhereWithoutCartItemsInput, Prisma.ProductVariantUpdateWithoutCartItemsInput>, Prisma.ProductVariantUncheckedUpdateWithoutCartItemsInput>;
|
|
449
|
+
};
|
|
450
|
+
export type ProductVariantCreateNestedManyWithoutProductInput = {
|
|
451
|
+
create?: Prisma.XOR<Prisma.ProductVariantCreateWithoutProductInput, Prisma.ProductVariantUncheckedCreateWithoutProductInput> | Prisma.ProductVariantCreateWithoutProductInput[] | Prisma.ProductVariantUncheckedCreateWithoutProductInput[];
|
|
452
|
+
connectOrCreate?: Prisma.ProductVariantCreateOrConnectWithoutProductInput | Prisma.ProductVariantCreateOrConnectWithoutProductInput[];
|
|
453
|
+
createMany?: Prisma.ProductVariantCreateManyProductInputEnvelope;
|
|
454
|
+
connect?: Prisma.ProductVariantWhereUniqueInput | Prisma.ProductVariantWhereUniqueInput[];
|
|
455
|
+
};
|
|
456
|
+
export type ProductVariantUncheckedCreateNestedManyWithoutProductInput = {
|
|
457
|
+
create?: Prisma.XOR<Prisma.ProductVariantCreateWithoutProductInput, Prisma.ProductVariantUncheckedCreateWithoutProductInput> | Prisma.ProductVariantCreateWithoutProductInput[] | Prisma.ProductVariantUncheckedCreateWithoutProductInput[];
|
|
458
|
+
connectOrCreate?: Prisma.ProductVariantCreateOrConnectWithoutProductInput | Prisma.ProductVariantCreateOrConnectWithoutProductInput[];
|
|
459
|
+
createMany?: Prisma.ProductVariantCreateManyProductInputEnvelope;
|
|
460
|
+
connect?: Prisma.ProductVariantWhereUniqueInput | Prisma.ProductVariantWhereUniqueInput[];
|
|
461
|
+
};
|
|
462
|
+
export type ProductVariantUpdateManyWithoutProductNestedInput = {
|
|
463
|
+
create?: Prisma.XOR<Prisma.ProductVariantCreateWithoutProductInput, Prisma.ProductVariantUncheckedCreateWithoutProductInput> | Prisma.ProductVariantCreateWithoutProductInput[] | Prisma.ProductVariantUncheckedCreateWithoutProductInput[];
|
|
464
|
+
connectOrCreate?: Prisma.ProductVariantCreateOrConnectWithoutProductInput | Prisma.ProductVariantCreateOrConnectWithoutProductInput[];
|
|
465
|
+
upsert?: Prisma.ProductVariantUpsertWithWhereUniqueWithoutProductInput | Prisma.ProductVariantUpsertWithWhereUniqueWithoutProductInput[];
|
|
466
|
+
createMany?: Prisma.ProductVariantCreateManyProductInputEnvelope;
|
|
467
|
+
set?: Prisma.ProductVariantWhereUniqueInput | Prisma.ProductVariantWhereUniqueInput[];
|
|
468
|
+
disconnect?: Prisma.ProductVariantWhereUniqueInput | Prisma.ProductVariantWhereUniqueInput[];
|
|
469
|
+
delete?: Prisma.ProductVariantWhereUniqueInput | Prisma.ProductVariantWhereUniqueInput[];
|
|
470
|
+
connect?: Prisma.ProductVariantWhereUniqueInput | Prisma.ProductVariantWhereUniqueInput[];
|
|
471
|
+
update?: Prisma.ProductVariantUpdateWithWhereUniqueWithoutProductInput | Prisma.ProductVariantUpdateWithWhereUniqueWithoutProductInput[];
|
|
472
|
+
updateMany?: Prisma.ProductVariantUpdateManyWithWhereWithoutProductInput | Prisma.ProductVariantUpdateManyWithWhereWithoutProductInput[];
|
|
473
|
+
deleteMany?: Prisma.ProductVariantScalarWhereInput | Prisma.ProductVariantScalarWhereInput[];
|
|
474
|
+
};
|
|
475
|
+
export type ProductVariantUncheckedUpdateManyWithoutProductNestedInput = {
|
|
476
|
+
create?: Prisma.XOR<Prisma.ProductVariantCreateWithoutProductInput, Prisma.ProductVariantUncheckedCreateWithoutProductInput> | Prisma.ProductVariantCreateWithoutProductInput[] | Prisma.ProductVariantUncheckedCreateWithoutProductInput[];
|
|
477
|
+
connectOrCreate?: Prisma.ProductVariantCreateOrConnectWithoutProductInput | Prisma.ProductVariantCreateOrConnectWithoutProductInput[];
|
|
478
|
+
upsert?: Prisma.ProductVariantUpsertWithWhereUniqueWithoutProductInput | Prisma.ProductVariantUpsertWithWhereUniqueWithoutProductInput[];
|
|
479
|
+
createMany?: Prisma.ProductVariantCreateManyProductInputEnvelope;
|
|
480
|
+
set?: Prisma.ProductVariantWhereUniqueInput | Prisma.ProductVariantWhereUniqueInput[];
|
|
481
|
+
disconnect?: Prisma.ProductVariantWhereUniqueInput | Prisma.ProductVariantWhereUniqueInput[];
|
|
482
|
+
delete?: Prisma.ProductVariantWhereUniqueInput | Prisma.ProductVariantWhereUniqueInput[];
|
|
483
|
+
connect?: Prisma.ProductVariantWhereUniqueInput | Prisma.ProductVariantWhereUniqueInput[];
|
|
484
|
+
update?: Prisma.ProductVariantUpdateWithWhereUniqueWithoutProductInput | Prisma.ProductVariantUpdateWithWhereUniqueWithoutProductInput[];
|
|
485
|
+
updateMany?: Prisma.ProductVariantUpdateManyWithWhereWithoutProductInput | Prisma.ProductVariantUpdateManyWithWhereWithoutProductInput[];
|
|
486
|
+
deleteMany?: Prisma.ProductVariantScalarWhereInput | Prisma.ProductVariantScalarWhereInput[];
|
|
487
|
+
};
|
|
488
|
+
export type ProductVariantCreateWithoutCartItemsInput = {
|
|
489
|
+
id?: string;
|
|
490
|
+
sku?: string | null;
|
|
491
|
+
name?: string | null;
|
|
492
|
+
nameAr?: string | null;
|
|
493
|
+
price?: number | null;
|
|
494
|
+
compareAtPrice?: number | null;
|
|
495
|
+
inStock?: boolean;
|
|
496
|
+
inventoryQuantity?: number | null;
|
|
497
|
+
sortOrder?: number;
|
|
498
|
+
product: Prisma.ProductCreateNestedOneWithoutVariantsInput;
|
|
499
|
+
};
|
|
500
|
+
export type ProductVariantUncheckedCreateWithoutCartItemsInput = {
|
|
501
|
+
id?: string;
|
|
502
|
+
productId: string;
|
|
503
|
+
sku?: string | null;
|
|
504
|
+
name?: string | null;
|
|
505
|
+
nameAr?: string | null;
|
|
506
|
+
price?: number | null;
|
|
507
|
+
compareAtPrice?: number | null;
|
|
508
|
+
inStock?: boolean;
|
|
509
|
+
inventoryQuantity?: number | null;
|
|
510
|
+
sortOrder?: number;
|
|
511
|
+
};
|
|
512
|
+
export type ProductVariantCreateOrConnectWithoutCartItemsInput = {
|
|
513
|
+
where: Prisma.ProductVariantWhereUniqueInput;
|
|
514
|
+
create: Prisma.XOR<Prisma.ProductVariantCreateWithoutCartItemsInput, Prisma.ProductVariantUncheckedCreateWithoutCartItemsInput>;
|
|
515
|
+
};
|
|
516
|
+
export type ProductVariantUpsertWithoutCartItemsInput = {
|
|
517
|
+
update: Prisma.XOR<Prisma.ProductVariantUpdateWithoutCartItemsInput, Prisma.ProductVariantUncheckedUpdateWithoutCartItemsInput>;
|
|
518
|
+
create: Prisma.XOR<Prisma.ProductVariantCreateWithoutCartItemsInput, Prisma.ProductVariantUncheckedCreateWithoutCartItemsInput>;
|
|
519
|
+
where?: Prisma.ProductVariantWhereInput;
|
|
520
|
+
};
|
|
521
|
+
export type ProductVariantUpdateToOneWithWhereWithoutCartItemsInput = {
|
|
522
|
+
where?: Prisma.ProductVariantWhereInput;
|
|
523
|
+
data: Prisma.XOR<Prisma.ProductVariantUpdateWithoutCartItemsInput, Prisma.ProductVariantUncheckedUpdateWithoutCartItemsInput>;
|
|
524
|
+
};
|
|
525
|
+
export type ProductVariantUpdateWithoutCartItemsInput = {
|
|
526
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
527
|
+
sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
528
|
+
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
529
|
+
nameAr?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
530
|
+
price?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
531
|
+
compareAtPrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
532
|
+
inStock?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
533
|
+
inventoryQuantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
534
|
+
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
535
|
+
product?: Prisma.ProductUpdateOneRequiredWithoutVariantsNestedInput;
|
|
536
|
+
};
|
|
537
|
+
export type ProductVariantUncheckedUpdateWithoutCartItemsInput = {
|
|
538
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
539
|
+
productId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
540
|
+
sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
541
|
+
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
542
|
+
nameAr?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
543
|
+
price?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
544
|
+
compareAtPrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
545
|
+
inStock?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
546
|
+
inventoryQuantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
547
|
+
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
548
|
+
};
|
|
549
|
+
export type ProductVariantCreateWithoutProductInput = {
|
|
550
|
+
id?: string;
|
|
551
|
+
sku?: string | null;
|
|
552
|
+
name?: string | null;
|
|
553
|
+
nameAr?: string | null;
|
|
554
|
+
price?: number | null;
|
|
555
|
+
compareAtPrice?: number | null;
|
|
556
|
+
inStock?: boolean;
|
|
557
|
+
inventoryQuantity?: number | null;
|
|
558
|
+
sortOrder?: number;
|
|
559
|
+
cartItems?: Prisma.CartItemCreateNestedManyWithoutVariantInput;
|
|
560
|
+
};
|
|
561
|
+
export type ProductVariantUncheckedCreateWithoutProductInput = {
|
|
562
|
+
id?: string;
|
|
563
|
+
sku?: string | null;
|
|
564
|
+
name?: string | null;
|
|
565
|
+
nameAr?: string | null;
|
|
566
|
+
price?: number | null;
|
|
567
|
+
compareAtPrice?: number | null;
|
|
568
|
+
inStock?: boolean;
|
|
569
|
+
inventoryQuantity?: number | null;
|
|
570
|
+
sortOrder?: number;
|
|
571
|
+
cartItems?: Prisma.CartItemUncheckedCreateNestedManyWithoutVariantInput;
|
|
572
|
+
};
|
|
573
|
+
export type ProductVariantCreateOrConnectWithoutProductInput = {
|
|
574
|
+
where: Prisma.ProductVariantWhereUniqueInput;
|
|
575
|
+
create: Prisma.XOR<Prisma.ProductVariantCreateWithoutProductInput, Prisma.ProductVariantUncheckedCreateWithoutProductInput>;
|
|
576
|
+
};
|
|
577
|
+
export type ProductVariantCreateManyProductInputEnvelope = {
|
|
578
|
+
data: Prisma.ProductVariantCreateManyProductInput | Prisma.ProductVariantCreateManyProductInput[];
|
|
579
|
+
};
|
|
580
|
+
export type ProductVariantUpsertWithWhereUniqueWithoutProductInput = {
|
|
581
|
+
where: Prisma.ProductVariantWhereUniqueInput;
|
|
582
|
+
update: Prisma.XOR<Prisma.ProductVariantUpdateWithoutProductInput, Prisma.ProductVariantUncheckedUpdateWithoutProductInput>;
|
|
583
|
+
create: Prisma.XOR<Prisma.ProductVariantCreateWithoutProductInput, Prisma.ProductVariantUncheckedCreateWithoutProductInput>;
|
|
584
|
+
};
|
|
585
|
+
export type ProductVariantUpdateWithWhereUniqueWithoutProductInput = {
|
|
586
|
+
where: Prisma.ProductVariantWhereUniqueInput;
|
|
587
|
+
data: Prisma.XOR<Prisma.ProductVariantUpdateWithoutProductInput, Prisma.ProductVariantUncheckedUpdateWithoutProductInput>;
|
|
588
|
+
};
|
|
589
|
+
export type ProductVariantUpdateManyWithWhereWithoutProductInput = {
|
|
590
|
+
where: Prisma.ProductVariantScalarWhereInput;
|
|
591
|
+
data: Prisma.XOR<Prisma.ProductVariantUpdateManyMutationInput, Prisma.ProductVariantUncheckedUpdateManyWithoutProductInput>;
|
|
592
|
+
};
|
|
593
|
+
export type ProductVariantScalarWhereInput = {
|
|
594
|
+
AND?: Prisma.ProductVariantScalarWhereInput | Prisma.ProductVariantScalarWhereInput[];
|
|
595
|
+
OR?: Prisma.ProductVariantScalarWhereInput[];
|
|
596
|
+
NOT?: Prisma.ProductVariantScalarWhereInput | Prisma.ProductVariantScalarWhereInput[];
|
|
597
|
+
id?: Prisma.StringFilter<"ProductVariant"> | string;
|
|
598
|
+
productId?: Prisma.StringFilter<"ProductVariant"> | string;
|
|
599
|
+
sku?: Prisma.StringNullableFilter<"ProductVariant"> | string | null;
|
|
600
|
+
name?: Prisma.StringNullableFilter<"ProductVariant"> | string | null;
|
|
601
|
+
nameAr?: Prisma.StringNullableFilter<"ProductVariant"> | string | null;
|
|
602
|
+
price?: Prisma.FloatNullableFilter<"ProductVariant"> | number | null;
|
|
603
|
+
compareAtPrice?: Prisma.FloatNullableFilter<"ProductVariant"> | number | null;
|
|
604
|
+
inStock?: Prisma.BoolFilter<"ProductVariant"> | boolean;
|
|
605
|
+
inventoryQuantity?: Prisma.IntNullableFilter<"ProductVariant"> | number | null;
|
|
606
|
+
sortOrder?: Prisma.IntFilter<"ProductVariant"> | number;
|
|
607
|
+
};
|
|
608
|
+
export type ProductVariantCreateManyProductInput = {
|
|
609
|
+
id?: string;
|
|
610
|
+
sku?: string | null;
|
|
611
|
+
name?: string | null;
|
|
612
|
+
nameAr?: string | null;
|
|
613
|
+
price?: number | null;
|
|
614
|
+
compareAtPrice?: number | null;
|
|
615
|
+
inStock?: boolean;
|
|
616
|
+
inventoryQuantity?: number | null;
|
|
617
|
+
sortOrder?: number;
|
|
618
|
+
};
|
|
619
|
+
export type ProductVariantUpdateWithoutProductInput = {
|
|
620
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
621
|
+
sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
622
|
+
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
623
|
+
nameAr?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
624
|
+
price?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
625
|
+
compareAtPrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
626
|
+
inStock?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
627
|
+
inventoryQuantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
628
|
+
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
629
|
+
cartItems?: Prisma.CartItemUpdateManyWithoutVariantNestedInput;
|
|
630
|
+
};
|
|
631
|
+
export type ProductVariantUncheckedUpdateWithoutProductInput = {
|
|
632
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
633
|
+
sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
634
|
+
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
635
|
+
nameAr?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
636
|
+
price?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
637
|
+
compareAtPrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
638
|
+
inStock?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
639
|
+
inventoryQuantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
640
|
+
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
641
|
+
cartItems?: Prisma.CartItemUncheckedUpdateManyWithoutVariantNestedInput;
|
|
642
|
+
};
|
|
643
|
+
export type ProductVariantUncheckedUpdateManyWithoutProductInput = {
|
|
644
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
645
|
+
sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
646
|
+
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
647
|
+
nameAr?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
648
|
+
price?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
649
|
+
compareAtPrice?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null;
|
|
650
|
+
inStock?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
651
|
+
inventoryQuantity?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
|
|
652
|
+
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
653
|
+
};
|
|
654
|
+
/**
|
|
655
|
+
* Count Type ProductVariantCountOutputType
|
|
656
|
+
*/
|
|
657
|
+
export type ProductVariantCountOutputType = {
|
|
658
|
+
cartItems: number;
|
|
659
|
+
};
|
|
660
|
+
export type ProductVariantCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
661
|
+
cartItems?: boolean | ProductVariantCountOutputTypeCountCartItemsArgs;
|
|
662
|
+
};
|
|
663
|
+
/**
|
|
664
|
+
* ProductVariantCountOutputType without action
|
|
665
|
+
*/
|
|
666
|
+
export type ProductVariantCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
667
|
+
/**
|
|
668
|
+
* Select specific fields to fetch from the ProductVariantCountOutputType
|
|
669
|
+
*/
|
|
670
|
+
select?: Prisma.ProductVariantCountOutputTypeSelect<ExtArgs> | null;
|
|
671
|
+
};
|
|
672
|
+
/**
|
|
673
|
+
* ProductVariantCountOutputType without action
|
|
674
|
+
*/
|
|
675
|
+
export type ProductVariantCountOutputTypeCountCartItemsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
676
|
+
where?: Prisma.CartItemWhereInput;
|
|
677
|
+
};
|
|
678
|
+
export type ProductVariantSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
679
|
+
id?: boolean;
|
|
680
|
+
productId?: boolean;
|
|
681
|
+
sku?: boolean;
|
|
682
|
+
name?: boolean;
|
|
683
|
+
nameAr?: boolean;
|
|
684
|
+
price?: boolean;
|
|
685
|
+
compareAtPrice?: boolean;
|
|
686
|
+
inStock?: boolean;
|
|
687
|
+
inventoryQuantity?: boolean;
|
|
688
|
+
sortOrder?: boolean;
|
|
689
|
+
product?: boolean | Prisma.ProductDefaultArgs<ExtArgs>;
|
|
690
|
+
cartItems?: boolean | Prisma.ProductVariant$cartItemsArgs<ExtArgs>;
|
|
691
|
+
_count?: boolean | Prisma.ProductVariantCountOutputTypeDefaultArgs<ExtArgs>;
|
|
692
|
+
}, ExtArgs["result"]["productVariant"]>;
|
|
693
|
+
export type ProductVariantSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
694
|
+
id?: boolean;
|
|
695
|
+
productId?: boolean;
|
|
696
|
+
sku?: boolean;
|
|
697
|
+
name?: boolean;
|
|
698
|
+
nameAr?: boolean;
|
|
699
|
+
price?: boolean;
|
|
700
|
+
compareAtPrice?: boolean;
|
|
701
|
+
inStock?: boolean;
|
|
702
|
+
inventoryQuantity?: boolean;
|
|
703
|
+
sortOrder?: boolean;
|
|
704
|
+
product?: boolean | Prisma.ProductDefaultArgs<ExtArgs>;
|
|
705
|
+
}, ExtArgs["result"]["productVariant"]>;
|
|
706
|
+
export type ProductVariantSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
707
|
+
id?: boolean;
|
|
708
|
+
productId?: boolean;
|
|
709
|
+
sku?: boolean;
|
|
710
|
+
name?: boolean;
|
|
711
|
+
nameAr?: boolean;
|
|
712
|
+
price?: boolean;
|
|
713
|
+
compareAtPrice?: boolean;
|
|
714
|
+
inStock?: boolean;
|
|
715
|
+
inventoryQuantity?: boolean;
|
|
716
|
+
sortOrder?: boolean;
|
|
717
|
+
product?: boolean | Prisma.ProductDefaultArgs<ExtArgs>;
|
|
718
|
+
}, ExtArgs["result"]["productVariant"]>;
|
|
719
|
+
export type ProductVariantSelectScalar = {
|
|
720
|
+
id?: boolean;
|
|
721
|
+
productId?: boolean;
|
|
722
|
+
sku?: boolean;
|
|
723
|
+
name?: boolean;
|
|
724
|
+
nameAr?: boolean;
|
|
725
|
+
price?: boolean;
|
|
726
|
+
compareAtPrice?: boolean;
|
|
727
|
+
inStock?: boolean;
|
|
728
|
+
inventoryQuantity?: boolean;
|
|
729
|
+
sortOrder?: boolean;
|
|
730
|
+
};
|
|
731
|
+
export type ProductVariantOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "productId" | "sku" | "name" | "nameAr" | "price" | "compareAtPrice" | "inStock" | "inventoryQuantity" | "sortOrder", ExtArgs["result"]["productVariant"]>;
|
|
732
|
+
export type ProductVariantInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
733
|
+
product?: boolean | Prisma.ProductDefaultArgs<ExtArgs>;
|
|
734
|
+
cartItems?: boolean | Prisma.ProductVariant$cartItemsArgs<ExtArgs>;
|
|
735
|
+
_count?: boolean | Prisma.ProductVariantCountOutputTypeDefaultArgs<ExtArgs>;
|
|
736
|
+
};
|
|
737
|
+
export type ProductVariantIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
738
|
+
product?: boolean | Prisma.ProductDefaultArgs<ExtArgs>;
|
|
739
|
+
};
|
|
740
|
+
export type ProductVariantIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
741
|
+
product?: boolean | Prisma.ProductDefaultArgs<ExtArgs>;
|
|
742
|
+
};
|
|
743
|
+
export type $ProductVariantPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
744
|
+
name: "ProductVariant";
|
|
745
|
+
objects: {
|
|
746
|
+
product: Prisma.$ProductPayload<ExtArgs>;
|
|
747
|
+
cartItems: Prisma.$CartItemPayload<ExtArgs>[];
|
|
748
|
+
};
|
|
749
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
750
|
+
id: string;
|
|
751
|
+
productId: string;
|
|
752
|
+
sku: string | null;
|
|
753
|
+
name: string | null;
|
|
754
|
+
nameAr: string | null;
|
|
755
|
+
price: number | null;
|
|
756
|
+
compareAtPrice: number | null;
|
|
757
|
+
inStock: boolean;
|
|
758
|
+
inventoryQuantity: number | null;
|
|
759
|
+
sortOrder: number;
|
|
760
|
+
}, ExtArgs["result"]["productVariant"]>;
|
|
761
|
+
composites: {};
|
|
762
|
+
};
|
|
763
|
+
export type ProductVariantGetPayload<S extends boolean | null | undefined | ProductVariantDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ProductVariantPayload, S>;
|
|
764
|
+
export type ProductVariantCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<ProductVariantFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
765
|
+
select?: ProductVariantCountAggregateInputType | true;
|
|
766
|
+
};
|
|
767
|
+
export interface ProductVariantDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
768
|
+
[K: symbol]: {
|
|
769
|
+
types: Prisma.TypeMap<ExtArgs>['model']['ProductVariant'];
|
|
770
|
+
meta: {
|
|
771
|
+
name: 'ProductVariant';
|
|
772
|
+
};
|
|
773
|
+
};
|
|
774
|
+
/**
|
|
775
|
+
* Find zero or one ProductVariant that matches the filter.
|
|
776
|
+
* @param {ProductVariantFindUniqueArgs} args - Arguments to find a ProductVariant
|
|
777
|
+
* @example
|
|
778
|
+
* // Get one ProductVariant
|
|
779
|
+
* const productVariant = await prisma.productVariant.findUnique({
|
|
780
|
+
* where: {
|
|
781
|
+
* // ... provide filter here
|
|
782
|
+
* }
|
|
783
|
+
* })
|
|
784
|
+
*/
|
|
785
|
+
findUnique<T extends ProductVariantFindUniqueArgs>(args: Prisma.SelectSubset<T, ProductVariantFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ProductVariantClient<runtime.Types.Result.GetResult<Prisma.$ProductVariantPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
786
|
+
/**
|
|
787
|
+
* Find one ProductVariant that matches the filter or throw an error with `error.code='P2025'`
|
|
788
|
+
* if no matches were found.
|
|
789
|
+
* @param {ProductVariantFindUniqueOrThrowArgs} args - Arguments to find a ProductVariant
|
|
790
|
+
* @example
|
|
791
|
+
* // Get one ProductVariant
|
|
792
|
+
* const productVariant = await prisma.productVariant.findUniqueOrThrow({
|
|
793
|
+
* where: {
|
|
794
|
+
* // ... provide filter here
|
|
795
|
+
* }
|
|
796
|
+
* })
|
|
797
|
+
*/
|
|
798
|
+
findUniqueOrThrow<T extends ProductVariantFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ProductVariantFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ProductVariantClient<runtime.Types.Result.GetResult<Prisma.$ProductVariantPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
799
|
+
/**
|
|
800
|
+
* Find the first ProductVariant that matches the filter.
|
|
801
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
802
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
803
|
+
* @param {ProductVariantFindFirstArgs} args - Arguments to find a ProductVariant
|
|
804
|
+
* @example
|
|
805
|
+
* // Get one ProductVariant
|
|
806
|
+
* const productVariant = await prisma.productVariant.findFirst({
|
|
807
|
+
* where: {
|
|
808
|
+
* // ... provide filter here
|
|
809
|
+
* }
|
|
810
|
+
* })
|
|
811
|
+
*/
|
|
812
|
+
findFirst<T extends ProductVariantFindFirstArgs>(args?: Prisma.SelectSubset<T, ProductVariantFindFirstArgs<ExtArgs>>): Prisma.Prisma__ProductVariantClient<runtime.Types.Result.GetResult<Prisma.$ProductVariantPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
813
|
+
/**
|
|
814
|
+
* Find the first ProductVariant that matches the filter or
|
|
815
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
816
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
817
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
818
|
+
* @param {ProductVariantFindFirstOrThrowArgs} args - Arguments to find a ProductVariant
|
|
819
|
+
* @example
|
|
820
|
+
* // Get one ProductVariant
|
|
821
|
+
* const productVariant = await prisma.productVariant.findFirstOrThrow({
|
|
822
|
+
* where: {
|
|
823
|
+
* // ... provide filter here
|
|
824
|
+
* }
|
|
825
|
+
* })
|
|
826
|
+
*/
|
|
827
|
+
findFirstOrThrow<T extends ProductVariantFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ProductVariantFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ProductVariantClient<runtime.Types.Result.GetResult<Prisma.$ProductVariantPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
828
|
+
/**
|
|
829
|
+
* Find zero or more ProductVariants that matches the filter.
|
|
830
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
831
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
832
|
+
* @param {ProductVariantFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
833
|
+
* @example
|
|
834
|
+
* // Get all ProductVariants
|
|
835
|
+
* const productVariants = await prisma.productVariant.findMany()
|
|
836
|
+
*
|
|
837
|
+
* // Get first 10 ProductVariants
|
|
838
|
+
* const productVariants = await prisma.productVariant.findMany({ take: 10 })
|
|
839
|
+
*
|
|
840
|
+
* // Only select the `id`
|
|
841
|
+
* const productVariantWithIdOnly = await prisma.productVariant.findMany({ select: { id: true } })
|
|
842
|
+
*
|
|
843
|
+
*/
|
|
844
|
+
findMany<T extends ProductVariantFindManyArgs>(args?: Prisma.SelectSubset<T, ProductVariantFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductVariantPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
|
|
845
|
+
/**
|
|
846
|
+
* Create a ProductVariant.
|
|
847
|
+
* @param {ProductVariantCreateArgs} args - Arguments to create a ProductVariant.
|
|
848
|
+
* @example
|
|
849
|
+
* // Create one ProductVariant
|
|
850
|
+
* const ProductVariant = await prisma.productVariant.create({
|
|
851
|
+
* data: {
|
|
852
|
+
* // ... data to create a ProductVariant
|
|
853
|
+
* }
|
|
854
|
+
* })
|
|
855
|
+
*
|
|
856
|
+
*/
|
|
857
|
+
create<T extends ProductVariantCreateArgs>(args: Prisma.SelectSubset<T, ProductVariantCreateArgs<ExtArgs>>): Prisma.Prisma__ProductVariantClient<runtime.Types.Result.GetResult<Prisma.$ProductVariantPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
858
|
+
/**
|
|
859
|
+
* Create many ProductVariants.
|
|
860
|
+
* @param {ProductVariantCreateManyArgs} args - Arguments to create many ProductVariants.
|
|
861
|
+
* @example
|
|
862
|
+
* // Create many ProductVariants
|
|
863
|
+
* const productVariant = await prisma.productVariant.createMany({
|
|
864
|
+
* data: [
|
|
865
|
+
* // ... provide data here
|
|
866
|
+
* ]
|
|
867
|
+
* })
|
|
868
|
+
*
|
|
869
|
+
*/
|
|
870
|
+
createMany<T extends ProductVariantCreateManyArgs>(args?: Prisma.SelectSubset<T, ProductVariantCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
871
|
+
/**
|
|
872
|
+
* Create many ProductVariants and returns the data saved in the database.
|
|
873
|
+
* @param {ProductVariantCreateManyAndReturnArgs} args - Arguments to create many ProductVariants.
|
|
874
|
+
* @example
|
|
875
|
+
* // Create many ProductVariants
|
|
876
|
+
* const productVariant = await prisma.productVariant.createManyAndReturn({
|
|
877
|
+
* data: [
|
|
878
|
+
* // ... provide data here
|
|
879
|
+
* ]
|
|
880
|
+
* })
|
|
881
|
+
*
|
|
882
|
+
* // Create many ProductVariants and only return the `id`
|
|
883
|
+
* const productVariantWithIdOnly = await prisma.productVariant.createManyAndReturn({
|
|
884
|
+
* select: { id: true },
|
|
885
|
+
* data: [
|
|
886
|
+
* // ... provide data here
|
|
887
|
+
* ]
|
|
888
|
+
* })
|
|
889
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
890
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
891
|
+
*
|
|
892
|
+
*/
|
|
893
|
+
createManyAndReturn<T extends ProductVariantCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ProductVariantCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductVariantPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
|
|
894
|
+
/**
|
|
895
|
+
* Delete a ProductVariant.
|
|
896
|
+
* @param {ProductVariantDeleteArgs} args - Arguments to delete one ProductVariant.
|
|
897
|
+
* @example
|
|
898
|
+
* // Delete one ProductVariant
|
|
899
|
+
* const ProductVariant = await prisma.productVariant.delete({
|
|
900
|
+
* where: {
|
|
901
|
+
* // ... filter to delete one ProductVariant
|
|
902
|
+
* }
|
|
903
|
+
* })
|
|
904
|
+
*
|
|
905
|
+
*/
|
|
906
|
+
delete<T extends ProductVariantDeleteArgs>(args: Prisma.SelectSubset<T, ProductVariantDeleteArgs<ExtArgs>>): Prisma.Prisma__ProductVariantClient<runtime.Types.Result.GetResult<Prisma.$ProductVariantPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
907
|
+
/**
|
|
908
|
+
* Update one ProductVariant.
|
|
909
|
+
* @param {ProductVariantUpdateArgs} args - Arguments to update one ProductVariant.
|
|
910
|
+
* @example
|
|
911
|
+
* // Update one ProductVariant
|
|
912
|
+
* const productVariant = await prisma.productVariant.update({
|
|
913
|
+
* where: {
|
|
914
|
+
* // ... provide filter here
|
|
915
|
+
* },
|
|
916
|
+
* data: {
|
|
917
|
+
* // ... provide data here
|
|
918
|
+
* }
|
|
919
|
+
* })
|
|
920
|
+
*
|
|
921
|
+
*/
|
|
922
|
+
update<T extends ProductVariantUpdateArgs>(args: Prisma.SelectSubset<T, ProductVariantUpdateArgs<ExtArgs>>): Prisma.Prisma__ProductVariantClient<runtime.Types.Result.GetResult<Prisma.$ProductVariantPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
923
|
+
/**
|
|
924
|
+
* Delete zero or more ProductVariants.
|
|
925
|
+
* @param {ProductVariantDeleteManyArgs} args - Arguments to filter ProductVariants to delete.
|
|
926
|
+
* @example
|
|
927
|
+
* // Delete a few ProductVariants
|
|
928
|
+
* const { count } = await prisma.productVariant.deleteMany({
|
|
929
|
+
* where: {
|
|
930
|
+
* // ... provide filter here
|
|
931
|
+
* }
|
|
932
|
+
* })
|
|
933
|
+
*
|
|
934
|
+
*/
|
|
935
|
+
deleteMany<T extends ProductVariantDeleteManyArgs>(args?: Prisma.SelectSubset<T, ProductVariantDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
936
|
+
/**
|
|
937
|
+
* Update zero or more ProductVariants.
|
|
938
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
939
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
940
|
+
* @param {ProductVariantUpdateManyArgs} args - Arguments to update one or more rows.
|
|
941
|
+
* @example
|
|
942
|
+
* // Update many ProductVariants
|
|
943
|
+
* const productVariant = await prisma.productVariant.updateMany({
|
|
944
|
+
* where: {
|
|
945
|
+
* // ... provide filter here
|
|
946
|
+
* },
|
|
947
|
+
* data: {
|
|
948
|
+
* // ... provide data here
|
|
949
|
+
* }
|
|
950
|
+
* })
|
|
951
|
+
*
|
|
952
|
+
*/
|
|
953
|
+
updateMany<T extends ProductVariantUpdateManyArgs>(args: Prisma.SelectSubset<T, ProductVariantUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
954
|
+
/**
|
|
955
|
+
* Update zero or more ProductVariants and returns the data updated in the database.
|
|
956
|
+
* @param {ProductVariantUpdateManyAndReturnArgs} args - Arguments to update many ProductVariants.
|
|
957
|
+
* @example
|
|
958
|
+
* // Update many ProductVariants
|
|
959
|
+
* const productVariant = await prisma.productVariant.updateManyAndReturn({
|
|
960
|
+
* where: {
|
|
961
|
+
* // ... provide filter here
|
|
962
|
+
* },
|
|
963
|
+
* data: [
|
|
964
|
+
* // ... provide data here
|
|
965
|
+
* ]
|
|
966
|
+
* })
|
|
967
|
+
*
|
|
968
|
+
* // Update zero or more ProductVariants and only return the `id`
|
|
969
|
+
* const productVariantWithIdOnly = await prisma.productVariant.updateManyAndReturn({
|
|
970
|
+
* select: { id: true },
|
|
971
|
+
* where: {
|
|
972
|
+
* // ... provide filter here
|
|
973
|
+
* },
|
|
974
|
+
* data: [
|
|
975
|
+
* // ... provide data here
|
|
976
|
+
* ]
|
|
977
|
+
* })
|
|
978
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
979
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
980
|
+
*
|
|
981
|
+
*/
|
|
982
|
+
updateManyAndReturn<T extends ProductVariantUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ProductVariantUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductVariantPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
|
|
983
|
+
/**
|
|
984
|
+
* Create or update one ProductVariant.
|
|
985
|
+
* @param {ProductVariantUpsertArgs} args - Arguments to update or create a ProductVariant.
|
|
986
|
+
* @example
|
|
987
|
+
* // Update or create a ProductVariant
|
|
988
|
+
* const productVariant = await prisma.productVariant.upsert({
|
|
989
|
+
* create: {
|
|
990
|
+
* // ... data to create a ProductVariant
|
|
991
|
+
* },
|
|
992
|
+
* update: {
|
|
993
|
+
* // ... in case it already exists, update
|
|
994
|
+
* },
|
|
995
|
+
* where: {
|
|
996
|
+
* // ... the filter for the ProductVariant we want to update
|
|
997
|
+
* }
|
|
998
|
+
* })
|
|
999
|
+
*/
|
|
1000
|
+
upsert<T extends ProductVariantUpsertArgs>(args: Prisma.SelectSubset<T, ProductVariantUpsertArgs<ExtArgs>>): Prisma.Prisma__ProductVariantClient<runtime.Types.Result.GetResult<Prisma.$ProductVariantPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
1001
|
+
/**
|
|
1002
|
+
* Count the number of ProductVariants.
|
|
1003
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1004
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1005
|
+
* @param {ProductVariantCountArgs} args - Arguments to filter ProductVariants to count.
|
|
1006
|
+
* @example
|
|
1007
|
+
* // Count the number of ProductVariants
|
|
1008
|
+
* const count = await prisma.productVariant.count({
|
|
1009
|
+
* where: {
|
|
1010
|
+
* // ... the filter for the ProductVariants we want to count
|
|
1011
|
+
* }
|
|
1012
|
+
* })
|
|
1013
|
+
**/
|
|
1014
|
+
count<T extends ProductVariantCountArgs>(args?: Prisma.Subset<T, ProductVariantCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], ProductVariantCountAggregateOutputType> : number>;
|
|
1015
|
+
/**
|
|
1016
|
+
* Allows you to perform aggregations operations on a ProductVariant.
|
|
1017
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1018
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1019
|
+
* @param {ProductVariantAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
1020
|
+
* @example
|
|
1021
|
+
* // Ordered by age ascending
|
|
1022
|
+
* // Where email contains prisma.io
|
|
1023
|
+
* // Limited to the 10 users
|
|
1024
|
+
* const aggregations = await prisma.user.aggregate({
|
|
1025
|
+
* _avg: {
|
|
1026
|
+
* age: true,
|
|
1027
|
+
* },
|
|
1028
|
+
* where: {
|
|
1029
|
+
* email: {
|
|
1030
|
+
* contains: "prisma.io",
|
|
1031
|
+
* },
|
|
1032
|
+
* },
|
|
1033
|
+
* orderBy: {
|
|
1034
|
+
* age: "asc",
|
|
1035
|
+
* },
|
|
1036
|
+
* take: 10,
|
|
1037
|
+
* })
|
|
1038
|
+
**/
|
|
1039
|
+
aggregate<T extends ProductVariantAggregateArgs>(args: Prisma.Subset<T, ProductVariantAggregateArgs>): Prisma.PrismaPromise<GetProductVariantAggregateType<T>>;
|
|
1040
|
+
/**
|
|
1041
|
+
* Group by ProductVariant.
|
|
1042
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1043
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1044
|
+
* @param {ProductVariantGroupByArgs} args - Group by arguments.
|
|
1045
|
+
* @example
|
|
1046
|
+
* // Group by city, order by createdAt, get count
|
|
1047
|
+
* const result = await prisma.user.groupBy({
|
|
1048
|
+
* by: ['city', 'createdAt'],
|
|
1049
|
+
* orderBy: {
|
|
1050
|
+
* createdAt: true
|
|
1051
|
+
* },
|
|
1052
|
+
* _count: {
|
|
1053
|
+
* _all: true
|
|
1054
|
+
* },
|
|
1055
|
+
* })
|
|
1056
|
+
*
|
|
1057
|
+
**/
|
|
1058
|
+
groupBy<T extends ProductVariantGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
|
|
1059
|
+
orderBy: ProductVariantGroupByArgs['orderBy'];
|
|
1060
|
+
} : {
|
|
1061
|
+
orderBy?: ProductVariantGroupByArgs['orderBy'];
|
|
1062
|
+
}, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
|
|
1063
|
+
[P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
|
|
1064
|
+
Error,
|
|
1065
|
+
'Field ',
|
|
1066
|
+
P,
|
|
1067
|
+
` in "having" needs to be provided in "by"`
|
|
1068
|
+
];
|
|
1069
|
+
}[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
1070
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
1071
|
+
}[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
1072
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
1073
|
+
}[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
|
|
1074
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
1075
|
+
}[OrderFields]>(args: Prisma.SubsetIntersection<T, ProductVariantGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetProductVariantGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
|
|
1076
|
+
/**
|
|
1077
|
+
* Fields of the ProductVariant model
|
|
1078
|
+
*/
|
|
1079
|
+
readonly fields: ProductVariantFieldRefs;
|
|
1080
|
+
}
|
|
1081
|
+
/**
|
|
1082
|
+
* The delegate class that acts as a "Promise-like" for ProductVariant.
|
|
1083
|
+
* Why is this prefixed with `Prisma__`?
|
|
1084
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
1085
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
1086
|
+
*/
|
|
1087
|
+
export interface Prisma__ProductVariantClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
1088
|
+
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
1089
|
+
product<T extends Prisma.ProductDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ProductDefaultArgs<ExtArgs>>): Prisma.Prisma__ProductClient<runtime.Types.Result.GetResult<Prisma.$ProductPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
|
|
1090
|
+
cartItems<T extends Prisma.ProductVariant$cartItemsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ProductVariant$cartItemsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CartItemPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
|
|
1091
|
+
/**
|
|
1092
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
1093
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
1094
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1095
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
1096
|
+
*/
|
|
1097
|
+
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>;
|
|
1098
|
+
/**
|
|
1099
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
1100
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1101
|
+
* @returns A Promise for the completion of the callback.
|
|
1102
|
+
*/
|
|
1103
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
|
|
1104
|
+
/**
|
|
1105
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
1106
|
+
* resolved value cannot be modified from the callback.
|
|
1107
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
1108
|
+
* @returns A Promise for the completion of the callback.
|
|
1109
|
+
*/
|
|
1110
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
|
|
1111
|
+
}
|
|
1112
|
+
/**
|
|
1113
|
+
* Fields of the ProductVariant model
|
|
1114
|
+
*/
|
|
1115
|
+
export interface ProductVariantFieldRefs {
|
|
1116
|
+
readonly id: Prisma.FieldRef<"ProductVariant", 'String'>;
|
|
1117
|
+
readonly productId: Prisma.FieldRef<"ProductVariant", 'String'>;
|
|
1118
|
+
readonly sku: Prisma.FieldRef<"ProductVariant", 'String'>;
|
|
1119
|
+
readonly name: Prisma.FieldRef<"ProductVariant", 'String'>;
|
|
1120
|
+
readonly nameAr: Prisma.FieldRef<"ProductVariant", 'String'>;
|
|
1121
|
+
readonly price: Prisma.FieldRef<"ProductVariant", 'Float'>;
|
|
1122
|
+
readonly compareAtPrice: Prisma.FieldRef<"ProductVariant", 'Float'>;
|
|
1123
|
+
readonly inStock: Prisma.FieldRef<"ProductVariant", 'Boolean'>;
|
|
1124
|
+
readonly inventoryQuantity: Prisma.FieldRef<"ProductVariant", 'Int'>;
|
|
1125
|
+
readonly sortOrder: Prisma.FieldRef<"ProductVariant", 'Int'>;
|
|
1126
|
+
}
|
|
1127
|
+
/**
|
|
1128
|
+
* ProductVariant findUnique
|
|
1129
|
+
*/
|
|
1130
|
+
export type ProductVariantFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1131
|
+
/**
|
|
1132
|
+
* Select specific fields to fetch from the ProductVariant
|
|
1133
|
+
*/
|
|
1134
|
+
select?: Prisma.ProductVariantSelect<ExtArgs> | null;
|
|
1135
|
+
/**
|
|
1136
|
+
* Omit specific fields from the ProductVariant
|
|
1137
|
+
*/
|
|
1138
|
+
omit?: Prisma.ProductVariantOmit<ExtArgs> | null;
|
|
1139
|
+
/**
|
|
1140
|
+
* Choose, which related nodes to fetch as well
|
|
1141
|
+
*/
|
|
1142
|
+
include?: Prisma.ProductVariantInclude<ExtArgs> | null;
|
|
1143
|
+
/**
|
|
1144
|
+
* Filter, which ProductVariant to fetch.
|
|
1145
|
+
*/
|
|
1146
|
+
where: Prisma.ProductVariantWhereUniqueInput;
|
|
1147
|
+
};
|
|
1148
|
+
/**
|
|
1149
|
+
* ProductVariant findUniqueOrThrow
|
|
1150
|
+
*/
|
|
1151
|
+
export type ProductVariantFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1152
|
+
/**
|
|
1153
|
+
* Select specific fields to fetch from the ProductVariant
|
|
1154
|
+
*/
|
|
1155
|
+
select?: Prisma.ProductVariantSelect<ExtArgs> | null;
|
|
1156
|
+
/**
|
|
1157
|
+
* Omit specific fields from the ProductVariant
|
|
1158
|
+
*/
|
|
1159
|
+
omit?: Prisma.ProductVariantOmit<ExtArgs> | null;
|
|
1160
|
+
/**
|
|
1161
|
+
* Choose, which related nodes to fetch as well
|
|
1162
|
+
*/
|
|
1163
|
+
include?: Prisma.ProductVariantInclude<ExtArgs> | null;
|
|
1164
|
+
/**
|
|
1165
|
+
* Filter, which ProductVariant to fetch.
|
|
1166
|
+
*/
|
|
1167
|
+
where: Prisma.ProductVariantWhereUniqueInput;
|
|
1168
|
+
};
|
|
1169
|
+
/**
|
|
1170
|
+
* ProductVariant findFirst
|
|
1171
|
+
*/
|
|
1172
|
+
export type ProductVariantFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1173
|
+
/**
|
|
1174
|
+
* Select specific fields to fetch from the ProductVariant
|
|
1175
|
+
*/
|
|
1176
|
+
select?: Prisma.ProductVariantSelect<ExtArgs> | null;
|
|
1177
|
+
/**
|
|
1178
|
+
* Omit specific fields from the ProductVariant
|
|
1179
|
+
*/
|
|
1180
|
+
omit?: Prisma.ProductVariantOmit<ExtArgs> | null;
|
|
1181
|
+
/**
|
|
1182
|
+
* Choose, which related nodes to fetch as well
|
|
1183
|
+
*/
|
|
1184
|
+
include?: Prisma.ProductVariantInclude<ExtArgs> | null;
|
|
1185
|
+
/**
|
|
1186
|
+
* Filter, which ProductVariant to fetch.
|
|
1187
|
+
*/
|
|
1188
|
+
where?: Prisma.ProductVariantWhereInput;
|
|
1189
|
+
/**
|
|
1190
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1191
|
+
*
|
|
1192
|
+
* Determine the order of ProductVariants to fetch.
|
|
1193
|
+
*/
|
|
1194
|
+
orderBy?: Prisma.ProductVariantOrderByWithRelationInput | Prisma.ProductVariantOrderByWithRelationInput[];
|
|
1195
|
+
/**
|
|
1196
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1197
|
+
*
|
|
1198
|
+
* Sets the position for searching for ProductVariants.
|
|
1199
|
+
*/
|
|
1200
|
+
cursor?: Prisma.ProductVariantWhereUniqueInput;
|
|
1201
|
+
/**
|
|
1202
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1203
|
+
*
|
|
1204
|
+
* Take `±n` ProductVariants from the position of the cursor.
|
|
1205
|
+
*/
|
|
1206
|
+
take?: number;
|
|
1207
|
+
/**
|
|
1208
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1209
|
+
*
|
|
1210
|
+
* Skip the first `n` ProductVariants.
|
|
1211
|
+
*/
|
|
1212
|
+
skip?: number;
|
|
1213
|
+
/**
|
|
1214
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1215
|
+
*
|
|
1216
|
+
* Filter by unique combinations of ProductVariants.
|
|
1217
|
+
*/
|
|
1218
|
+
distinct?: Prisma.ProductVariantScalarFieldEnum | Prisma.ProductVariantScalarFieldEnum[];
|
|
1219
|
+
};
|
|
1220
|
+
/**
|
|
1221
|
+
* ProductVariant findFirstOrThrow
|
|
1222
|
+
*/
|
|
1223
|
+
export type ProductVariantFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1224
|
+
/**
|
|
1225
|
+
* Select specific fields to fetch from the ProductVariant
|
|
1226
|
+
*/
|
|
1227
|
+
select?: Prisma.ProductVariantSelect<ExtArgs> | null;
|
|
1228
|
+
/**
|
|
1229
|
+
* Omit specific fields from the ProductVariant
|
|
1230
|
+
*/
|
|
1231
|
+
omit?: Prisma.ProductVariantOmit<ExtArgs> | null;
|
|
1232
|
+
/**
|
|
1233
|
+
* Choose, which related nodes to fetch as well
|
|
1234
|
+
*/
|
|
1235
|
+
include?: Prisma.ProductVariantInclude<ExtArgs> | null;
|
|
1236
|
+
/**
|
|
1237
|
+
* Filter, which ProductVariant to fetch.
|
|
1238
|
+
*/
|
|
1239
|
+
where?: Prisma.ProductVariantWhereInput;
|
|
1240
|
+
/**
|
|
1241
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1242
|
+
*
|
|
1243
|
+
* Determine the order of ProductVariants to fetch.
|
|
1244
|
+
*/
|
|
1245
|
+
orderBy?: Prisma.ProductVariantOrderByWithRelationInput | Prisma.ProductVariantOrderByWithRelationInput[];
|
|
1246
|
+
/**
|
|
1247
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1248
|
+
*
|
|
1249
|
+
* Sets the position for searching for ProductVariants.
|
|
1250
|
+
*/
|
|
1251
|
+
cursor?: Prisma.ProductVariantWhereUniqueInput;
|
|
1252
|
+
/**
|
|
1253
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1254
|
+
*
|
|
1255
|
+
* Take `±n` ProductVariants from the position of the cursor.
|
|
1256
|
+
*/
|
|
1257
|
+
take?: number;
|
|
1258
|
+
/**
|
|
1259
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1260
|
+
*
|
|
1261
|
+
* Skip the first `n` ProductVariants.
|
|
1262
|
+
*/
|
|
1263
|
+
skip?: number;
|
|
1264
|
+
/**
|
|
1265
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1266
|
+
*
|
|
1267
|
+
* Filter by unique combinations of ProductVariants.
|
|
1268
|
+
*/
|
|
1269
|
+
distinct?: Prisma.ProductVariantScalarFieldEnum | Prisma.ProductVariantScalarFieldEnum[];
|
|
1270
|
+
};
|
|
1271
|
+
/**
|
|
1272
|
+
* ProductVariant findMany
|
|
1273
|
+
*/
|
|
1274
|
+
export type ProductVariantFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1275
|
+
/**
|
|
1276
|
+
* Select specific fields to fetch from the ProductVariant
|
|
1277
|
+
*/
|
|
1278
|
+
select?: Prisma.ProductVariantSelect<ExtArgs> | null;
|
|
1279
|
+
/**
|
|
1280
|
+
* Omit specific fields from the ProductVariant
|
|
1281
|
+
*/
|
|
1282
|
+
omit?: Prisma.ProductVariantOmit<ExtArgs> | null;
|
|
1283
|
+
/**
|
|
1284
|
+
* Choose, which related nodes to fetch as well
|
|
1285
|
+
*/
|
|
1286
|
+
include?: Prisma.ProductVariantInclude<ExtArgs> | null;
|
|
1287
|
+
/**
|
|
1288
|
+
* Filter, which ProductVariants to fetch.
|
|
1289
|
+
*/
|
|
1290
|
+
where?: Prisma.ProductVariantWhereInput;
|
|
1291
|
+
/**
|
|
1292
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1293
|
+
*
|
|
1294
|
+
* Determine the order of ProductVariants to fetch.
|
|
1295
|
+
*/
|
|
1296
|
+
orderBy?: Prisma.ProductVariantOrderByWithRelationInput | Prisma.ProductVariantOrderByWithRelationInput[];
|
|
1297
|
+
/**
|
|
1298
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1299
|
+
*
|
|
1300
|
+
* Sets the position for listing ProductVariants.
|
|
1301
|
+
*/
|
|
1302
|
+
cursor?: Prisma.ProductVariantWhereUniqueInput;
|
|
1303
|
+
/**
|
|
1304
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1305
|
+
*
|
|
1306
|
+
* Take `±n` ProductVariants from the position of the cursor.
|
|
1307
|
+
*/
|
|
1308
|
+
take?: number;
|
|
1309
|
+
/**
|
|
1310
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1311
|
+
*
|
|
1312
|
+
* Skip the first `n` ProductVariants.
|
|
1313
|
+
*/
|
|
1314
|
+
skip?: number;
|
|
1315
|
+
distinct?: Prisma.ProductVariantScalarFieldEnum | Prisma.ProductVariantScalarFieldEnum[];
|
|
1316
|
+
};
|
|
1317
|
+
/**
|
|
1318
|
+
* ProductVariant create
|
|
1319
|
+
*/
|
|
1320
|
+
export type ProductVariantCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1321
|
+
/**
|
|
1322
|
+
* Select specific fields to fetch from the ProductVariant
|
|
1323
|
+
*/
|
|
1324
|
+
select?: Prisma.ProductVariantSelect<ExtArgs> | null;
|
|
1325
|
+
/**
|
|
1326
|
+
* Omit specific fields from the ProductVariant
|
|
1327
|
+
*/
|
|
1328
|
+
omit?: Prisma.ProductVariantOmit<ExtArgs> | null;
|
|
1329
|
+
/**
|
|
1330
|
+
* Choose, which related nodes to fetch as well
|
|
1331
|
+
*/
|
|
1332
|
+
include?: Prisma.ProductVariantInclude<ExtArgs> | null;
|
|
1333
|
+
/**
|
|
1334
|
+
* The data needed to create a ProductVariant.
|
|
1335
|
+
*/
|
|
1336
|
+
data: Prisma.XOR<Prisma.ProductVariantCreateInput, Prisma.ProductVariantUncheckedCreateInput>;
|
|
1337
|
+
};
|
|
1338
|
+
/**
|
|
1339
|
+
* ProductVariant createMany
|
|
1340
|
+
*/
|
|
1341
|
+
export type ProductVariantCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1342
|
+
/**
|
|
1343
|
+
* The data used to create many ProductVariants.
|
|
1344
|
+
*/
|
|
1345
|
+
data: Prisma.ProductVariantCreateManyInput | Prisma.ProductVariantCreateManyInput[];
|
|
1346
|
+
};
|
|
1347
|
+
/**
|
|
1348
|
+
* ProductVariant createManyAndReturn
|
|
1349
|
+
*/
|
|
1350
|
+
export type ProductVariantCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1351
|
+
/**
|
|
1352
|
+
* Select specific fields to fetch from the ProductVariant
|
|
1353
|
+
*/
|
|
1354
|
+
select?: Prisma.ProductVariantSelectCreateManyAndReturn<ExtArgs> | null;
|
|
1355
|
+
/**
|
|
1356
|
+
* Omit specific fields from the ProductVariant
|
|
1357
|
+
*/
|
|
1358
|
+
omit?: Prisma.ProductVariantOmit<ExtArgs> | null;
|
|
1359
|
+
/**
|
|
1360
|
+
* The data used to create many ProductVariants.
|
|
1361
|
+
*/
|
|
1362
|
+
data: Prisma.ProductVariantCreateManyInput | Prisma.ProductVariantCreateManyInput[];
|
|
1363
|
+
/**
|
|
1364
|
+
* Choose, which related nodes to fetch as well
|
|
1365
|
+
*/
|
|
1366
|
+
include?: Prisma.ProductVariantIncludeCreateManyAndReturn<ExtArgs> | null;
|
|
1367
|
+
};
|
|
1368
|
+
/**
|
|
1369
|
+
* ProductVariant update
|
|
1370
|
+
*/
|
|
1371
|
+
export type ProductVariantUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1372
|
+
/**
|
|
1373
|
+
* Select specific fields to fetch from the ProductVariant
|
|
1374
|
+
*/
|
|
1375
|
+
select?: Prisma.ProductVariantSelect<ExtArgs> | null;
|
|
1376
|
+
/**
|
|
1377
|
+
* Omit specific fields from the ProductVariant
|
|
1378
|
+
*/
|
|
1379
|
+
omit?: Prisma.ProductVariantOmit<ExtArgs> | null;
|
|
1380
|
+
/**
|
|
1381
|
+
* Choose, which related nodes to fetch as well
|
|
1382
|
+
*/
|
|
1383
|
+
include?: Prisma.ProductVariantInclude<ExtArgs> | null;
|
|
1384
|
+
/**
|
|
1385
|
+
* The data needed to update a ProductVariant.
|
|
1386
|
+
*/
|
|
1387
|
+
data: Prisma.XOR<Prisma.ProductVariantUpdateInput, Prisma.ProductVariantUncheckedUpdateInput>;
|
|
1388
|
+
/**
|
|
1389
|
+
* Choose, which ProductVariant to update.
|
|
1390
|
+
*/
|
|
1391
|
+
where: Prisma.ProductVariantWhereUniqueInput;
|
|
1392
|
+
};
|
|
1393
|
+
/**
|
|
1394
|
+
* ProductVariant updateMany
|
|
1395
|
+
*/
|
|
1396
|
+
export type ProductVariantUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1397
|
+
/**
|
|
1398
|
+
* The data used to update ProductVariants.
|
|
1399
|
+
*/
|
|
1400
|
+
data: Prisma.XOR<Prisma.ProductVariantUpdateManyMutationInput, Prisma.ProductVariantUncheckedUpdateManyInput>;
|
|
1401
|
+
/**
|
|
1402
|
+
* Filter which ProductVariants to update
|
|
1403
|
+
*/
|
|
1404
|
+
where?: Prisma.ProductVariantWhereInput;
|
|
1405
|
+
/**
|
|
1406
|
+
* Limit how many ProductVariants to update.
|
|
1407
|
+
*/
|
|
1408
|
+
limit?: number;
|
|
1409
|
+
};
|
|
1410
|
+
/**
|
|
1411
|
+
* ProductVariant updateManyAndReturn
|
|
1412
|
+
*/
|
|
1413
|
+
export type ProductVariantUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1414
|
+
/**
|
|
1415
|
+
* Select specific fields to fetch from the ProductVariant
|
|
1416
|
+
*/
|
|
1417
|
+
select?: Prisma.ProductVariantSelectUpdateManyAndReturn<ExtArgs> | null;
|
|
1418
|
+
/**
|
|
1419
|
+
* Omit specific fields from the ProductVariant
|
|
1420
|
+
*/
|
|
1421
|
+
omit?: Prisma.ProductVariantOmit<ExtArgs> | null;
|
|
1422
|
+
/**
|
|
1423
|
+
* The data used to update ProductVariants.
|
|
1424
|
+
*/
|
|
1425
|
+
data: Prisma.XOR<Prisma.ProductVariantUpdateManyMutationInput, Prisma.ProductVariantUncheckedUpdateManyInput>;
|
|
1426
|
+
/**
|
|
1427
|
+
* Filter which ProductVariants to update
|
|
1428
|
+
*/
|
|
1429
|
+
where?: Prisma.ProductVariantWhereInput;
|
|
1430
|
+
/**
|
|
1431
|
+
* Limit how many ProductVariants to update.
|
|
1432
|
+
*/
|
|
1433
|
+
limit?: number;
|
|
1434
|
+
/**
|
|
1435
|
+
* Choose, which related nodes to fetch as well
|
|
1436
|
+
*/
|
|
1437
|
+
include?: Prisma.ProductVariantIncludeUpdateManyAndReturn<ExtArgs> | null;
|
|
1438
|
+
};
|
|
1439
|
+
/**
|
|
1440
|
+
* ProductVariant upsert
|
|
1441
|
+
*/
|
|
1442
|
+
export type ProductVariantUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1443
|
+
/**
|
|
1444
|
+
* Select specific fields to fetch from the ProductVariant
|
|
1445
|
+
*/
|
|
1446
|
+
select?: Prisma.ProductVariantSelect<ExtArgs> | null;
|
|
1447
|
+
/**
|
|
1448
|
+
* Omit specific fields from the ProductVariant
|
|
1449
|
+
*/
|
|
1450
|
+
omit?: Prisma.ProductVariantOmit<ExtArgs> | null;
|
|
1451
|
+
/**
|
|
1452
|
+
* Choose, which related nodes to fetch as well
|
|
1453
|
+
*/
|
|
1454
|
+
include?: Prisma.ProductVariantInclude<ExtArgs> | null;
|
|
1455
|
+
/**
|
|
1456
|
+
* The filter to search for the ProductVariant to update in case it exists.
|
|
1457
|
+
*/
|
|
1458
|
+
where: Prisma.ProductVariantWhereUniqueInput;
|
|
1459
|
+
/**
|
|
1460
|
+
* In case the ProductVariant found by the `where` argument doesn't exist, create a new ProductVariant with this data.
|
|
1461
|
+
*/
|
|
1462
|
+
create: Prisma.XOR<Prisma.ProductVariantCreateInput, Prisma.ProductVariantUncheckedCreateInput>;
|
|
1463
|
+
/**
|
|
1464
|
+
* In case the ProductVariant was found with the provided `where` argument, update it with this data.
|
|
1465
|
+
*/
|
|
1466
|
+
update: Prisma.XOR<Prisma.ProductVariantUpdateInput, Prisma.ProductVariantUncheckedUpdateInput>;
|
|
1467
|
+
};
|
|
1468
|
+
/**
|
|
1469
|
+
* ProductVariant delete
|
|
1470
|
+
*/
|
|
1471
|
+
export type ProductVariantDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1472
|
+
/**
|
|
1473
|
+
* Select specific fields to fetch from the ProductVariant
|
|
1474
|
+
*/
|
|
1475
|
+
select?: Prisma.ProductVariantSelect<ExtArgs> | null;
|
|
1476
|
+
/**
|
|
1477
|
+
* Omit specific fields from the ProductVariant
|
|
1478
|
+
*/
|
|
1479
|
+
omit?: Prisma.ProductVariantOmit<ExtArgs> | null;
|
|
1480
|
+
/**
|
|
1481
|
+
* Choose, which related nodes to fetch as well
|
|
1482
|
+
*/
|
|
1483
|
+
include?: Prisma.ProductVariantInclude<ExtArgs> | null;
|
|
1484
|
+
/**
|
|
1485
|
+
* Filter which ProductVariant to delete.
|
|
1486
|
+
*/
|
|
1487
|
+
where: Prisma.ProductVariantWhereUniqueInput;
|
|
1488
|
+
};
|
|
1489
|
+
/**
|
|
1490
|
+
* ProductVariant deleteMany
|
|
1491
|
+
*/
|
|
1492
|
+
export type ProductVariantDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1493
|
+
/**
|
|
1494
|
+
* Filter which ProductVariants to delete
|
|
1495
|
+
*/
|
|
1496
|
+
where?: Prisma.ProductVariantWhereInput;
|
|
1497
|
+
/**
|
|
1498
|
+
* Limit how many ProductVariants to delete.
|
|
1499
|
+
*/
|
|
1500
|
+
limit?: number;
|
|
1501
|
+
};
|
|
1502
|
+
/**
|
|
1503
|
+
* ProductVariant.cartItems
|
|
1504
|
+
*/
|
|
1505
|
+
export type ProductVariant$cartItemsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1506
|
+
/**
|
|
1507
|
+
* Select specific fields to fetch from the CartItem
|
|
1508
|
+
*/
|
|
1509
|
+
select?: Prisma.CartItemSelect<ExtArgs> | null;
|
|
1510
|
+
/**
|
|
1511
|
+
* Omit specific fields from the CartItem
|
|
1512
|
+
*/
|
|
1513
|
+
omit?: Prisma.CartItemOmit<ExtArgs> | null;
|
|
1514
|
+
/**
|
|
1515
|
+
* Choose, which related nodes to fetch as well
|
|
1516
|
+
*/
|
|
1517
|
+
include?: Prisma.CartItemInclude<ExtArgs> | null;
|
|
1518
|
+
where?: Prisma.CartItemWhereInput;
|
|
1519
|
+
orderBy?: Prisma.CartItemOrderByWithRelationInput | Prisma.CartItemOrderByWithRelationInput[];
|
|
1520
|
+
cursor?: Prisma.CartItemWhereUniqueInput;
|
|
1521
|
+
take?: number;
|
|
1522
|
+
skip?: number;
|
|
1523
|
+
distinct?: Prisma.CartItemScalarFieldEnum | Prisma.CartItemScalarFieldEnum[];
|
|
1524
|
+
};
|
|
1525
|
+
/**
|
|
1526
|
+
* ProductVariant without action
|
|
1527
|
+
*/
|
|
1528
|
+
export type ProductVariantDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1529
|
+
/**
|
|
1530
|
+
* Select specific fields to fetch from the ProductVariant
|
|
1531
|
+
*/
|
|
1532
|
+
select?: Prisma.ProductVariantSelect<ExtArgs> | null;
|
|
1533
|
+
/**
|
|
1534
|
+
* Omit specific fields from the ProductVariant
|
|
1535
|
+
*/
|
|
1536
|
+
omit?: Prisma.ProductVariantOmit<ExtArgs> | null;
|
|
1537
|
+
/**
|
|
1538
|
+
* Choose, which related nodes to fetch as well
|
|
1539
|
+
*/
|
|
1540
|
+
include?: Prisma.ProductVariantInclude<ExtArgs> | null;
|
|
1541
|
+
};
|
|
1542
|
+
export {};
|
|
1543
|
+
//# sourceMappingURL=ProductVariant.d.ts.map
|