@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,1242 @@
|
|
|
1
|
+
import type * as runtime from "@prisma/client/runtime/client";
|
|
2
|
+
import type * as Prisma from "../internal/prismaNamespace.js";
|
|
3
|
+
/**
|
|
4
|
+
* Model ProductImage
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
export type ProductImageModel = runtime.Types.Result.DefaultSelection<Prisma.$ProductImagePayload>;
|
|
8
|
+
export type AggregateProductImage = {
|
|
9
|
+
_count: ProductImageCountAggregateOutputType | null;
|
|
10
|
+
_avg: ProductImageAvgAggregateOutputType | null;
|
|
11
|
+
_sum: ProductImageSumAggregateOutputType | null;
|
|
12
|
+
_min: ProductImageMinAggregateOutputType | null;
|
|
13
|
+
_max: ProductImageMaxAggregateOutputType | null;
|
|
14
|
+
};
|
|
15
|
+
export type ProductImageAvgAggregateOutputType = {
|
|
16
|
+
sortOrder: number | null;
|
|
17
|
+
};
|
|
18
|
+
export type ProductImageSumAggregateOutputType = {
|
|
19
|
+
sortOrder: number | null;
|
|
20
|
+
};
|
|
21
|
+
export type ProductImageMinAggregateOutputType = {
|
|
22
|
+
id: string | null;
|
|
23
|
+
productId: string | null;
|
|
24
|
+
url: string | null;
|
|
25
|
+
altText: string | null;
|
|
26
|
+
sortOrder: number | null;
|
|
27
|
+
isPrimary: boolean | null;
|
|
28
|
+
};
|
|
29
|
+
export type ProductImageMaxAggregateOutputType = {
|
|
30
|
+
id: string | null;
|
|
31
|
+
productId: string | null;
|
|
32
|
+
url: string | null;
|
|
33
|
+
altText: string | null;
|
|
34
|
+
sortOrder: number | null;
|
|
35
|
+
isPrimary: boolean | null;
|
|
36
|
+
};
|
|
37
|
+
export type ProductImageCountAggregateOutputType = {
|
|
38
|
+
id: number;
|
|
39
|
+
productId: number;
|
|
40
|
+
url: number;
|
|
41
|
+
altText: number;
|
|
42
|
+
sortOrder: number;
|
|
43
|
+
isPrimary: number;
|
|
44
|
+
_all: number;
|
|
45
|
+
};
|
|
46
|
+
export type ProductImageAvgAggregateInputType = {
|
|
47
|
+
sortOrder?: true;
|
|
48
|
+
};
|
|
49
|
+
export type ProductImageSumAggregateInputType = {
|
|
50
|
+
sortOrder?: true;
|
|
51
|
+
};
|
|
52
|
+
export type ProductImageMinAggregateInputType = {
|
|
53
|
+
id?: true;
|
|
54
|
+
productId?: true;
|
|
55
|
+
url?: true;
|
|
56
|
+
altText?: true;
|
|
57
|
+
sortOrder?: true;
|
|
58
|
+
isPrimary?: true;
|
|
59
|
+
};
|
|
60
|
+
export type ProductImageMaxAggregateInputType = {
|
|
61
|
+
id?: true;
|
|
62
|
+
productId?: true;
|
|
63
|
+
url?: true;
|
|
64
|
+
altText?: true;
|
|
65
|
+
sortOrder?: true;
|
|
66
|
+
isPrimary?: true;
|
|
67
|
+
};
|
|
68
|
+
export type ProductImageCountAggregateInputType = {
|
|
69
|
+
id?: true;
|
|
70
|
+
productId?: true;
|
|
71
|
+
url?: true;
|
|
72
|
+
altText?: true;
|
|
73
|
+
sortOrder?: true;
|
|
74
|
+
isPrimary?: true;
|
|
75
|
+
_all?: true;
|
|
76
|
+
};
|
|
77
|
+
export type ProductImageAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
78
|
+
/**
|
|
79
|
+
* Filter which ProductImage to aggregate.
|
|
80
|
+
*/
|
|
81
|
+
where?: Prisma.ProductImageWhereInput;
|
|
82
|
+
/**
|
|
83
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
84
|
+
*
|
|
85
|
+
* Determine the order of ProductImages to fetch.
|
|
86
|
+
*/
|
|
87
|
+
orderBy?: Prisma.ProductImageOrderByWithRelationInput | Prisma.ProductImageOrderByWithRelationInput[];
|
|
88
|
+
/**
|
|
89
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
90
|
+
*
|
|
91
|
+
* Sets the start position
|
|
92
|
+
*/
|
|
93
|
+
cursor?: Prisma.ProductImageWhereUniqueInput;
|
|
94
|
+
/**
|
|
95
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
96
|
+
*
|
|
97
|
+
* Take `±n` ProductImages from the position of the cursor.
|
|
98
|
+
*/
|
|
99
|
+
take?: number;
|
|
100
|
+
/**
|
|
101
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
102
|
+
*
|
|
103
|
+
* Skip the first `n` ProductImages.
|
|
104
|
+
*/
|
|
105
|
+
skip?: number;
|
|
106
|
+
/**
|
|
107
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
108
|
+
*
|
|
109
|
+
* Count returned ProductImages
|
|
110
|
+
**/
|
|
111
|
+
_count?: true | ProductImageCountAggregateInputType;
|
|
112
|
+
/**
|
|
113
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
114
|
+
*
|
|
115
|
+
* Select which fields to average
|
|
116
|
+
**/
|
|
117
|
+
_avg?: ProductImageAvgAggregateInputType;
|
|
118
|
+
/**
|
|
119
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
120
|
+
*
|
|
121
|
+
* Select which fields to sum
|
|
122
|
+
**/
|
|
123
|
+
_sum?: ProductImageSumAggregateInputType;
|
|
124
|
+
/**
|
|
125
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
126
|
+
*
|
|
127
|
+
* Select which fields to find the minimum value
|
|
128
|
+
**/
|
|
129
|
+
_min?: ProductImageMinAggregateInputType;
|
|
130
|
+
/**
|
|
131
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
132
|
+
*
|
|
133
|
+
* Select which fields to find the maximum value
|
|
134
|
+
**/
|
|
135
|
+
_max?: ProductImageMaxAggregateInputType;
|
|
136
|
+
};
|
|
137
|
+
export type GetProductImageAggregateType<T extends ProductImageAggregateArgs> = {
|
|
138
|
+
[P in keyof T & keyof AggregateProductImage]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateProductImage[P]> : Prisma.GetScalarType<T[P], AggregateProductImage[P]>;
|
|
139
|
+
};
|
|
140
|
+
export type ProductImageGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
141
|
+
where?: Prisma.ProductImageWhereInput;
|
|
142
|
+
orderBy?: Prisma.ProductImageOrderByWithAggregationInput | Prisma.ProductImageOrderByWithAggregationInput[];
|
|
143
|
+
by: Prisma.ProductImageScalarFieldEnum[] | Prisma.ProductImageScalarFieldEnum;
|
|
144
|
+
having?: Prisma.ProductImageScalarWhereWithAggregatesInput;
|
|
145
|
+
take?: number;
|
|
146
|
+
skip?: number;
|
|
147
|
+
_count?: ProductImageCountAggregateInputType | true;
|
|
148
|
+
_avg?: ProductImageAvgAggregateInputType;
|
|
149
|
+
_sum?: ProductImageSumAggregateInputType;
|
|
150
|
+
_min?: ProductImageMinAggregateInputType;
|
|
151
|
+
_max?: ProductImageMaxAggregateInputType;
|
|
152
|
+
};
|
|
153
|
+
export type ProductImageGroupByOutputType = {
|
|
154
|
+
id: string;
|
|
155
|
+
productId: string;
|
|
156
|
+
url: string;
|
|
157
|
+
altText: string | null;
|
|
158
|
+
sortOrder: number;
|
|
159
|
+
isPrimary: boolean;
|
|
160
|
+
_count: ProductImageCountAggregateOutputType | null;
|
|
161
|
+
_avg: ProductImageAvgAggregateOutputType | null;
|
|
162
|
+
_sum: ProductImageSumAggregateOutputType | null;
|
|
163
|
+
_min: ProductImageMinAggregateOutputType | null;
|
|
164
|
+
_max: ProductImageMaxAggregateOutputType | null;
|
|
165
|
+
};
|
|
166
|
+
type GetProductImageGroupByPayload<T extends ProductImageGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<ProductImageGroupByOutputType, T['by']> & {
|
|
167
|
+
[P in ((keyof T) & (keyof ProductImageGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], ProductImageGroupByOutputType[P]> : Prisma.GetScalarType<T[P], ProductImageGroupByOutputType[P]>;
|
|
168
|
+
}>>;
|
|
169
|
+
export type ProductImageWhereInput = {
|
|
170
|
+
AND?: Prisma.ProductImageWhereInput | Prisma.ProductImageWhereInput[];
|
|
171
|
+
OR?: Prisma.ProductImageWhereInput[];
|
|
172
|
+
NOT?: Prisma.ProductImageWhereInput | Prisma.ProductImageWhereInput[];
|
|
173
|
+
id?: Prisma.StringFilter<"ProductImage"> | string;
|
|
174
|
+
productId?: Prisma.StringFilter<"ProductImage"> | string;
|
|
175
|
+
url?: Prisma.StringFilter<"ProductImage"> | string;
|
|
176
|
+
altText?: Prisma.StringNullableFilter<"ProductImage"> | string | null;
|
|
177
|
+
sortOrder?: Prisma.IntFilter<"ProductImage"> | number;
|
|
178
|
+
isPrimary?: Prisma.BoolFilter<"ProductImage"> | boolean;
|
|
179
|
+
product?: Prisma.XOR<Prisma.ProductScalarRelationFilter, Prisma.ProductWhereInput>;
|
|
180
|
+
};
|
|
181
|
+
export type ProductImageOrderByWithRelationInput = {
|
|
182
|
+
id?: Prisma.SortOrder;
|
|
183
|
+
productId?: Prisma.SortOrder;
|
|
184
|
+
url?: Prisma.SortOrder;
|
|
185
|
+
altText?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
186
|
+
sortOrder?: Prisma.SortOrder;
|
|
187
|
+
isPrimary?: Prisma.SortOrder;
|
|
188
|
+
product?: Prisma.ProductOrderByWithRelationInput;
|
|
189
|
+
};
|
|
190
|
+
export type ProductImageWhereUniqueInput = Prisma.AtLeast<{
|
|
191
|
+
id?: string;
|
|
192
|
+
AND?: Prisma.ProductImageWhereInput | Prisma.ProductImageWhereInput[];
|
|
193
|
+
OR?: Prisma.ProductImageWhereInput[];
|
|
194
|
+
NOT?: Prisma.ProductImageWhereInput | Prisma.ProductImageWhereInput[];
|
|
195
|
+
productId?: Prisma.StringFilter<"ProductImage"> | string;
|
|
196
|
+
url?: Prisma.StringFilter<"ProductImage"> | string;
|
|
197
|
+
altText?: Prisma.StringNullableFilter<"ProductImage"> | string | null;
|
|
198
|
+
sortOrder?: Prisma.IntFilter<"ProductImage"> | number;
|
|
199
|
+
isPrimary?: Prisma.BoolFilter<"ProductImage"> | boolean;
|
|
200
|
+
product?: Prisma.XOR<Prisma.ProductScalarRelationFilter, Prisma.ProductWhereInput>;
|
|
201
|
+
}, "id">;
|
|
202
|
+
export type ProductImageOrderByWithAggregationInput = {
|
|
203
|
+
id?: Prisma.SortOrder;
|
|
204
|
+
productId?: Prisma.SortOrder;
|
|
205
|
+
url?: Prisma.SortOrder;
|
|
206
|
+
altText?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
207
|
+
sortOrder?: Prisma.SortOrder;
|
|
208
|
+
isPrimary?: Prisma.SortOrder;
|
|
209
|
+
_count?: Prisma.ProductImageCountOrderByAggregateInput;
|
|
210
|
+
_avg?: Prisma.ProductImageAvgOrderByAggregateInput;
|
|
211
|
+
_max?: Prisma.ProductImageMaxOrderByAggregateInput;
|
|
212
|
+
_min?: Prisma.ProductImageMinOrderByAggregateInput;
|
|
213
|
+
_sum?: Prisma.ProductImageSumOrderByAggregateInput;
|
|
214
|
+
};
|
|
215
|
+
export type ProductImageScalarWhereWithAggregatesInput = {
|
|
216
|
+
AND?: Prisma.ProductImageScalarWhereWithAggregatesInput | Prisma.ProductImageScalarWhereWithAggregatesInput[];
|
|
217
|
+
OR?: Prisma.ProductImageScalarWhereWithAggregatesInput[];
|
|
218
|
+
NOT?: Prisma.ProductImageScalarWhereWithAggregatesInput | Prisma.ProductImageScalarWhereWithAggregatesInput[];
|
|
219
|
+
id?: Prisma.StringWithAggregatesFilter<"ProductImage"> | string;
|
|
220
|
+
productId?: Prisma.StringWithAggregatesFilter<"ProductImage"> | string;
|
|
221
|
+
url?: Prisma.StringWithAggregatesFilter<"ProductImage"> | string;
|
|
222
|
+
altText?: Prisma.StringNullableWithAggregatesFilter<"ProductImage"> | string | null;
|
|
223
|
+
sortOrder?: Prisma.IntWithAggregatesFilter<"ProductImage"> | number;
|
|
224
|
+
isPrimary?: Prisma.BoolWithAggregatesFilter<"ProductImage"> | boolean;
|
|
225
|
+
};
|
|
226
|
+
export type ProductImageCreateInput = {
|
|
227
|
+
id?: string;
|
|
228
|
+
url: string;
|
|
229
|
+
altText?: string | null;
|
|
230
|
+
sortOrder?: number;
|
|
231
|
+
isPrimary?: boolean;
|
|
232
|
+
product: Prisma.ProductCreateNestedOneWithoutImagesInput;
|
|
233
|
+
};
|
|
234
|
+
export type ProductImageUncheckedCreateInput = {
|
|
235
|
+
id?: string;
|
|
236
|
+
productId: string;
|
|
237
|
+
url: string;
|
|
238
|
+
altText?: string | null;
|
|
239
|
+
sortOrder?: number;
|
|
240
|
+
isPrimary?: boolean;
|
|
241
|
+
};
|
|
242
|
+
export type ProductImageUpdateInput = {
|
|
243
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
244
|
+
url?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
245
|
+
altText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
246
|
+
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
247
|
+
isPrimary?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
248
|
+
product?: Prisma.ProductUpdateOneRequiredWithoutImagesNestedInput;
|
|
249
|
+
};
|
|
250
|
+
export type ProductImageUncheckedUpdateInput = {
|
|
251
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
252
|
+
productId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
253
|
+
url?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
254
|
+
altText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
255
|
+
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
256
|
+
isPrimary?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
257
|
+
};
|
|
258
|
+
export type ProductImageCreateManyInput = {
|
|
259
|
+
id?: string;
|
|
260
|
+
productId: string;
|
|
261
|
+
url: string;
|
|
262
|
+
altText?: string | null;
|
|
263
|
+
sortOrder?: number;
|
|
264
|
+
isPrimary?: boolean;
|
|
265
|
+
};
|
|
266
|
+
export type ProductImageUpdateManyMutationInput = {
|
|
267
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
268
|
+
url?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
269
|
+
altText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
270
|
+
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
271
|
+
isPrimary?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
272
|
+
};
|
|
273
|
+
export type ProductImageUncheckedUpdateManyInput = {
|
|
274
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
275
|
+
productId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
276
|
+
url?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
277
|
+
altText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
278
|
+
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
279
|
+
isPrimary?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
280
|
+
};
|
|
281
|
+
export type ProductImageListRelationFilter = {
|
|
282
|
+
every?: Prisma.ProductImageWhereInput;
|
|
283
|
+
some?: Prisma.ProductImageWhereInput;
|
|
284
|
+
none?: Prisma.ProductImageWhereInput;
|
|
285
|
+
};
|
|
286
|
+
export type ProductImageOrderByRelationAggregateInput = {
|
|
287
|
+
_count?: Prisma.SortOrder;
|
|
288
|
+
};
|
|
289
|
+
export type ProductImageCountOrderByAggregateInput = {
|
|
290
|
+
id?: Prisma.SortOrder;
|
|
291
|
+
productId?: Prisma.SortOrder;
|
|
292
|
+
url?: Prisma.SortOrder;
|
|
293
|
+
altText?: Prisma.SortOrder;
|
|
294
|
+
sortOrder?: Prisma.SortOrder;
|
|
295
|
+
isPrimary?: Prisma.SortOrder;
|
|
296
|
+
};
|
|
297
|
+
export type ProductImageAvgOrderByAggregateInput = {
|
|
298
|
+
sortOrder?: Prisma.SortOrder;
|
|
299
|
+
};
|
|
300
|
+
export type ProductImageMaxOrderByAggregateInput = {
|
|
301
|
+
id?: Prisma.SortOrder;
|
|
302
|
+
productId?: Prisma.SortOrder;
|
|
303
|
+
url?: Prisma.SortOrder;
|
|
304
|
+
altText?: Prisma.SortOrder;
|
|
305
|
+
sortOrder?: Prisma.SortOrder;
|
|
306
|
+
isPrimary?: Prisma.SortOrder;
|
|
307
|
+
};
|
|
308
|
+
export type ProductImageMinOrderByAggregateInput = {
|
|
309
|
+
id?: Prisma.SortOrder;
|
|
310
|
+
productId?: Prisma.SortOrder;
|
|
311
|
+
url?: Prisma.SortOrder;
|
|
312
|
+
altText?: Prisma.SortOrder;
|
|
313
|
+
sortOrder?: Prisma.SortOrder;
|
|
314
|
+
isPrimary?: Prisma.SortOrder;
|
|
315
|
+
};
|
|
316
|
+
export type ProductImageSumOrderByAggregateInput = {
|
|
317
|
+
sortOrder?: Prisma.SortOrder;
|
|
318
|
+
};
|
|
319
|
+
export type ProductImageCreateNestedManyWithoutProductInput = {
|
|
320
|
+
create?: Prisma.XOR<Prisma.ProductImageCreateWithoutProductInput, Prisma.ProductImageUncheckedCreateWithoutProductInput> | Prisma.ProductImageCreateWithoutProductInput[] | Prisma.ProductImageUncheckedCreateWithoutProductInput[];
|
|
321
|
+
connectOrCreate?: Prisma.ProductImageCreateOrConnectWithoutProductInput | Prisma.ProductImageCreateOrConnectWithoutProductInput[];
|
|
322
|
+
createMany?: Prisma.ProductImageCreateManyProductInputEnvelope;
|
|
323
|
+
connect?: Prisma.ProductImageWhereUniqueInput | Prisma.ProductImageWhereUniqueInput[];
|
|
324
|
+
};
|
|
325
|
+
export type ProductImageUncheckedCreateNestedManyWithoutProductInput = {
|
|
326
|
+
create?: Prisma.XOR<Prisma.ProductImageCreateWithoutProductInput, Prisma.ProductImageUncheckedCreateWithoutProductInput> | Prisma.ProductImageCreateWithoutProductInput[] | Prisma.ProductImageUncheckedCreateWithoutProductInput[];
|
|
327
|
+
connectOrCreate?: Prisma.ProductImageCreateOrConnectWithoutProductInput | Prisma.ProductImageCreateOrConnectWithoutProductInput[];
|
|
328
|
+
createMany?: Prisma.ProductImageCreateManyProductInputEnvelope;
|
|
329
|
+
connect?: Prisma.ProductImageWhereUniqueInput | Prisma.ProductImageWhereUniqueInput[];
|
|
330
|
+
};
|
|
331
|
+
export type ProductImageUpdateManyWithoutProductNestedInput = {
|
|
332
|
+
create?: Prisma.XOR<Prisma.ProductImageCreateWithoutProductInput, Prisma.ProductImageUncheckedCreateWithoutProductInput> | Prisma.ProductImageCreateWithoutProductInput[] | Prisma.ProductImageUncheckedCreateWithoutProductInput[];
|
|
333
|
+
connectOrCreate?: Prisma.ProductImageCreateOrConnectWithoutProductInput | Prisma.ProductImageCreateOrConnectWithoutProductInput[];
|
|
334
|
+
upsert?: Prisma.ProductImageUpsertWithWhereUniqueWithoutProductInput | Prisma.ProductImageUpsertWithWhereUniqueWithoutProductInput[];
|
|
335
|
+
createMany?: Prisma.ProductImageCreateManyProductInputEnvelope;
|
|
336
|
+
set?: Prisma.ProductImageWhereUniqueInput | Prisma.ProductImageWhereUniqueInput[];
|
|
337
|
+
disconnect?: Prisma.ProductImageWhereUniqueInput | Prisma.ProductImageWhereUniqueInput[];
|
|
338
|
+
delete?: Prisma.ProductImageWhereUniqueInput | Prisma.ProductImageWhereUniqueInput[];
|
|
339
|
+
connect?: Prisma.ProductImageWhereUniqueInput | Prisma.ProductImageWhereUniqueInput[];
|
|
340
|
+
update?: Prisma.ProductImageUpdateWithWhereUniqueWithoutProductInput | Prisma.ProductImageUpdateWithWhereUniqueWithoutProductInput[];
|
|
341
|
+
updateMany?: Prisma.ProductImageUpdateManyWithWhereWithoutProductInput | Prisma.ProductImageUpdateManyWithWhereWithoutProductInput[];
|
|
342
|
+
deleteMany?: Prisma.ProductImageScalarWhereInput | Prisma.ProductImageScalarWhereInput[];
|
|
343
|
+
};
|
|
344
|
+
export type ProductImageUncheckedUpdateManyWithoutProductNestedInput = {
|
|
345
|
+
create?: Prisma.XOR<Prisma.ProductImageCreateWithoutProductInput, Prisma.ProductImageUncheckedCreateWithoutProductInput> | Prisma.ProductImageCreateWithoutProductInput[] | Prisma.ProductImageUncheckedCreateWithoutProductInput[];
|
|
346
|
+
connectOrCreate?: Prisma.ProductImageCreateOrConnectWithoutProductInput | Prisma.ProductImageCreateOrConnectWithoutProductInput[];
|
|
347
|
+
upsert?: Prisma.ProductImageUpsertWithWhereUniqueWithoutProductInput | Prisma.ProductImageUpsertWithWhereUniqueWithoutProductInput[];
|
|
348
|
+
createMany?: Prisma.ProductImageCreateManyProductInputEnvelope;
|
|
349
|
+
set?: Prisma.ProductImageWhereUniqueInput | Prisma.ProductImageWhereUniqueInput[];
|
|
350
|
+
disconnect?: Prisma.ProductImageWhereUniqueInput | Prisma.ProductImageWhereUniqueInput[];
|
|
351
|
+
delete?: Prisma.ProductImageWhereUniqueInput | Prisma.ProductImageWhereUniqueInput[];
|
|
352
|
+
connect?: Prisma.ProductImageWhereUniqueInput | Prisma.ProductImageWhereUniqueInput[];
|
|
353
|
+
update?: Prisma.ProductImageUpdateWithWhereUniqueWithoutProductInput | Prisma.ProductImageUpdateWithWhereUniqueWithoutProductInput[];
|
|
354
|
+
updateMany?: Prisma.ProductImageUpdateManyWithWhereWithoutProductInput | Prisma.ProductImageUpdateManyWithWhereWithoutProductInput[];
|
|
355
|
+
deleteMany?: Prisma.ProductImageScalarWhereInput | Prisma.ProductImageScalarWhereInput[];
|
|
356
|
+
};
|
|
357
|
+
export type ProductImageCreateWithoutProductInput = {
|
|
358
|
+
id?: string;
|
|
359
|
+
url: string;
|
|
360
|
+
altText?: string | null;
|
|
361
|
+
sortOrder?: number;
|
|
362
|
+
isPrimary?: boolean;
|
|
363
|
+
};
|
|
364
|
+
export type ProductImageUncheckedCreateWithoutProductInput = {
|
|
365
|
+
id?: string;
|
|
366
|
+
url: string;
|
|
367
|
+
altText?: string | null;
|
|
368
|
+
sortOrder?: number;
|
|
369
|
+
isPrimary?: boolean;
|
|
370
|
+
};
|
|
371
|
+
export type ProductImageCreateOrConnectWithoutProductInput = {
|
|
372
|
+
where: Prisma.ProductImageWhereUniqueInput;
|
|
373
|
+
create: Prisma.XOR<Prisma.ProductImageCreateWithoutProductInput, Prisma.ProductImageUncheckedCreateWithoutProductInput>;
|
|
374
|
+
};
|
|
375
|
+
export type ProductImageCreateManyProductInputEnvelope = {
|
|
376
|
+
data: Prisma.ProductImageCreateManyProductInput | Prisma.ProductImageCreateManyProductInput[];
|
|
377
|
+
};
|
|
378
|
+
export type ProductImageUpsertWithWhereUniqueWithoutProductInput = {
|
|
379
|
+
where: Prisma.ProductImageWhereUniqueInput;
|
|
380
|
+
update: Prisma.XOR<Prisma.ProductImageUpdateWithoutProductInput, Prisma.ProductImageUncheckedUpdateWithoutProductInput>;
|
|
381
|
+
create: Prisma.XOR<Prisma.ProductImageCreateWithoutProductInput, Prisma.ProductImageUncheckedCreateWithoutProductInput>;
|
|
382
|
+
};
|
|
383
|
+
export type ProductImageUpdateWithWhereUniqueWithoutProductInput = {
|
|
384
|
+
where: Prisma.ProductImageWhereUniqueInput;
|
|
385
|
+
data: Prisma.XOR<Prisma.ProductImageUpdateWithoutProductInput, Prisma.ProductImageUncheckedUpdateWithoutProductInput>;
|
|
386
|
+
};
|
|
387
|
+
export type ProductImageUpdateManyWithWhereWithoutProductInput = {
|
|
388
|
+
where: Prisma.ProductImageScalarWhereInput;
|
|
389
|
+
data: Prisma.XOR<Prisma.ProductImageUpdateManyMutationInput, Prisma.ProductImageUncheckedUpdateManyWithoutProductInput>;
|
|
390
|
+
};
|
|
391
|
+
export type ProductImageScalarWhereInput = {
|
|
392
|
+
AND?: Prisma.ProductImageScalarWhereInput | Prisma.ProductImageScalarWhereInput[];
|
|
393
|
+
OR?: Prisma.ProductImageScalarWhereInput[];
|
|
394
|
+
NOT?: Prisma.ProductImageScalarWhereInput | Prisma.ProductImageScalarWhereInput[];
|
|
395
|
+
id?: Prisma.StringFilter<"ProductImage"> | string;
|
|
396
|
+
productId?: Prisma.StringFilter<"ProductImage"> | string;
|
|
397
|
+
url?: Prisma.StringFilter<"ProductImage"> | string;
|
|
398
|
+
altText?: Prisma.StringNullableFilter<"ProductImage"> | string | null;
|
|
399
|
+
sortOrder?: Prisma.IntFilter<"ProductImage"> | number;
|
|
400
|
+
isPrimary?: Prisma.BoolFilter<"ProductImage"> | boolean;
|
|
401
|
+
};
|
|
402
|
+
export type ProductImageCreateManyProductInput = {
|
|
403
|
+
id?: string;
|
|
404
|
+
url: string;
|
|
405
|
+
altText?: string | null;
|
|
406
|
+
sortOrder?: number;
|
|
407
|
+
isPrimary?: boolean;
|
|
408
|
+
};
|
|
409
|
+
export type ProductImageUpdateWithoutProductInput = {
|
|
410
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
411
|
+
url?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
412
|
+
altText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
413
|
+
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
414
|
+
isPrimary?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
415
|
+
};
|
|
416
|
+
export type ProductImageUncheckedUpdateWithoutProductInput = {
|
|
417
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
418
|
+
url?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
419
|
+
altText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
420
|
+
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
421
|
+
isPrimary?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
422
|
+
};
|
|
423
|
+
export type ProductImageUncheckedUpdateManyWithoutProductInput = {
|
|
424
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
425
|
+
url?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
426
|
+
altText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
427
|
+
sortOrder?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
428
|
+
isPrimary?: Prisma.BoolFieldUpdateOperationsInput | boolean;
|
|
429
|
+
};
|
|
430
|
+
export type ProductImageSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
431
|
+
id?: boolean;
|
|
432
|
+
productId?: boolean;
|
|
433
|
+
url?: boolean;
|
|
434
|
+
altText?: boolean;
|
|
435
|
+
sortOrder?: boolean;
|
|
436
|
+
isPrimary?: boolean;
|
|
437
|
+
product?: boolean | Prisma.ProductDefaultArgs<ExtArgs>;
|
|
438
|
+
}, ExtArgs["result"]["productImage"]>;
|
|
439
|
+
export type ProductImageSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
440
|
+
id?: boolean;
|
|
441
|
+
productId?: boolean;
|
|
442
|
+
url?: boolean;
|
|
443
|
+
altText?: boolean;
|
|
444
|
+
sortOrder?: boolean;
|
|
445
|
+
isPrimary?: boolean;
|
|
446
|
+
product?: boolean | Prisma.ProductDefaultArgs<ExtArgs>;
|
|
447
|
+
}, ExtArgs["result"]["productImage"]>;
|
|
448
|
+
export type ProductImageSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
449
|
+
id?: boolean;
|
|
450
|
+
productId?: boolean;
|
|
451
|
+
url?: boolean;
|
|
452
|
+
altText?: boolean;
|
|
453
|
+
sortOrder?: boolean;
|
|
454
|
+
isPrimary?: boolean;
|
|
455
|
+
product?: boolean | Prisma.ProductDefaultArgs<ExtArgs>;
|
|
456
|
+
}, ExtArgs["result"]["productImage"]>;
|
|
457
|
+
export type ProductImageSelectScalar = {
|
|
458
|
+
id?: boolean;
|
|
459
|
+
productId?: boolean;
|
|
460
|
+
url?: boolean;
|
|
461
|
+
altText?: boolean;
|
|
462
|
+
sortOrder?: boolean;
|
|
463
|
+
isPrimary?: boolean;
|
|
464
|
+
};
|
|
465
|
+
export type ProductImageOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "productId" | "url" | "altText" | "sortOrder" | "isPrimary", ExtArgs["result"]["productImage"]>;
|
|
466
|
+
export type ProductImageInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
467
|
+
product?: boolean | Prisma.ProductDefaultArgs<ExtArgs>;
|
|
468
|
+
};
|
|
469
|
+
export type ProductImageIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
470
|
+
product?: boolean | Prisma.ProductDefaultArgs<ExtArgs>;
|
|
471
|
+
};
|
|
472
|
+
export type ProductImageIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
473
|
+
product?: boolean | Prisma.ProductDefaultArgs<ExtArgs>;
|
|
474
|
+
};
|
|
475
|
+
export type $ProductImagePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
476
|
+
name: "ProductImage";
|
|
477
|
+
objects: {
|
|
478
|
+
product: Prisma.$ProductPayload<ExtArgs>;
|
|
479
|
+
};
|
|
480
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
481
|
+
id: string;
|
|
482
|
+
productId: string;
|
|
483
|
+
url: string;
|
|
484
|
+
altText: string | null;
|
|
485
|
+
sortOrder: number;
|
|
486
|
+
isPrimary: boolean;
|
|
487
|
+
}, ExtArgs["result"]["productImage"]>;
|
|
488
|
+
composites: {};
|
|
489
|
+
};
|
|
490
|
+
export type ProductImageGetPayload<S extends boolean | null | undefined | ProductImageDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ProductImagePayload, S>;
|
|
491
|
+
export type ProductImageCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<ProductImageFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
492
|
+
select?: ProductImageCountAggregateInputType | true;
|
|
493
|
+
};
|
|
494
|
+
export interface ProductImageDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
495
|
+
[K: symbol]: {
|
|
496
|
+
types: Prisma.TypeMap<ExtArgs>['model']['ProductImage'];
|
|
497
|
+
meta: {
|
|
498
|
+
name: 'ProductImage';
|
|
499
|
+
};
|
|
500
|
+
};
|
|
501
|
+
/**
|
|
502
|
+
* Find zero or one ProductImage that matches the filter.
|
|
503
|
+
* @param {ProductImageFindUniqueArgs} args - Arguments to find a ProductImage
|
|
504
|
+
* @example
|
|
505
|
+
* // Get one ProductImage
|
|
506
|
+
* const productImage = await prisma.productImage.findUnique({
|
|
507
|
+
* where: {
|
|
508
|
+
* // ... provide filter here
|
|
509
|
+
* }
|
|
510
|
+
* })
|
|
511
|
+
*/
|
|
512
|
+
findUnique<T extends ProductImageFindUniqueArgs>(args: Prisma.SelectSubset<T, ProductImageFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ProductImageClient<runtime.Types.Result.GetResult<Prisma.$ProductImagePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
513
|
+
/**
|
|
514
|
+
* Find one ProductImage that matches the filter or throw an error with `error.code='P2025'`
|
|
515
|
+
* if no matches were found.
|
|
516
|
+
* @param {ProductImageFindUniqueOrThrowArgs} args - Arguments to find a ProductImage
|
|
517
|
+
* @example
|
|
518
|
+
* // Get one ProductImage
|
|
519
|
+
* const productImage = await prisma.productImage.findUniqueOrThrow({
|
|
520
|
+
* where: {
|
|
521
|
+
* // ... provide filter here
|
|
522
|
+
* }
|
|
523
|
+
* })
|
|
524
|
+
*/
|
|
525
|
+
findUniqueOrThrow<T extends ProductImageFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ProductImageFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ProductImageClient<runtime.Types.Result.GetResult<Prisma.$ProductImagePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
526
|
+
/**
|
|
527
|
+
* Find the first ProductImage that matches the filter.
|
|
528
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
529
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
530
|
+
* @param {ProductImageFindFirstArgs} args - Arguments to find a ProductImage
|
|
531
|
+
* @example
|
|
532
|
+
* // Get one ProductImage
|
|
533
|
+
* const productImage = await prisma.productImage.findFirst({
|
|
534
|
+
* where: {
|
|
535
|
+
* // ... provide filter here
|
|
536
|
+
* }
|
|
537
|
+
* })
|
|
538
|
+
*/
|
|
539
|
+
findFirst<T extends ProductImageFindFirstArgs>(args?: Prisma.SelectSubset<T, ProductImageFindFirstArgs<ExtArgs>>): Prisma.Prisma__ProductImageClient<runtime.Types.Result.GetResult<Prisma.$ProductImagePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
540
|
+
/**
|
|
541
|
+
* Find the first ProductImage that matches the filter or
|
|
542
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
543
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
544
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
545
|
+
* @param {ProductImageFindFirstOrThrowArgs} args - Arguments to find a ProductImage
|
|
546
|
+
* @example
|
|
547
|
+
* // Get one ProductImage
|
|
548
|
+
* const productImage = await prisma.productImage.findFirstOrThrow({
|
|
549
|
+
* where: {
|
|
550
|
+
* // ... provide filter here
|
|
551
|
+
* }
|
|
552
|
+
* })
|
|
553
|
+
*/
|
|
554
|
+
findFirstOrThrow<T extends ProductImageFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ProductImageFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ProductImageClient<runtime.Types.Result.GetResult<Prisma.$ProductImagePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
555
|
+
/**
|
|
556
|
+
* Find zero or more ProductImages that matches the filter.
|
|
557
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
558
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
559
|
+
* @param {ProductImageFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
560
|
+
* @example
|
|
561
|
+
* // Get all ProductImages
|
|
562
|
+
* const productImages = await prisma.productImage.findMany()
|
|
563
|
+
*
|
|
564
|
+
* // Get first 10 ProductImages
|
|
565
|
+
* const productImages = await prisma.productImage.findMany({ take: 10 })
|
|
566
|
+
*
|
|
567
|
+
* // Only select the `id`
|
|
568
|
+
* const productImageWithIdOnly = await prisma.productImage.findMany({ select: { id: true } })
|
|
569
|
+
*
|
|
570
|
+
*/
|
|
571
|
+
findMany<T extends ProductImageFindManyArgs>(args?: Prisma.SelectSubset<T, ProductImageFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductImagePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
|
|
572
|
+
/**
|
|
573
|
+
* Create a ProductImage.
|
|
574
|
+
* @param {ProductImageCreateArgs} args - Arguments to create a ProductImage.
|
|
575
|
+
* @example
|
|
576
|
+
* // Create one ProductImage
|
|
577
|
+
* const ProductImage = await prisma.productImage.create({
|
|
578
|
+
* data: {
|
|
579
|
+
* // ... data to create a ProductImage
|
|
580
|
+
* }
|
|
581
|
+
* })
|
|
582
|
+
*
|
|
583
|
+
*/
|
|
584
|
+
create<T extends ProductImageCreateArgs>(args: Prisma.SelectSubset<T, ProductImageCreateArgs<ExtArgs>>): Prisma.Prisma__ProductImageClient<runtime.Types.Result.GetResult<Prisma.$ProductImagePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
585
|
+
/**
|
|
586
|
+
* Create many ProductImages.
|
|
587
|
+
* @param {ProductImageCreateManyArgs} args - Arguments to create many ProductImages.
|
|
588
|
+
* @example
|
|
589
|
+
* // Create many ProductImages
|
|
590
|
+
* const productImage = await prisma.productImage.createMany({
|
|
591
|
+
* data: [
|
|
592
|
+
* // ... provide data here
|
|
593
|
+
* ]
|
|
594
|
+
* })
|
|
595
|
+
*
|
|
596
|
+
*/
|
|
597
|
+
createMany<T extends ProductImageCreateManyArgs>(args?: Prisma.SelectSubset<T, ProductImageCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
598
|
+
/**
|
|
599
|
+
* Create many ProductImages and returns the data saved in the database.
|
|
600
|
+
* @param {ProductImageCreateManyAndReturnArgs} args - Arguments to create many ProductImages.
|
|
601
|
+
* @example
|
|
602
|
+
* // Create many ProductImages
|
|
603
|
+
* const productImage = await prisma.productImage.createManyAndReturn({
|
|
604
|
+
* data: [
|
|
605
|
+
* // ... provide data here
|
|
606
|
+
* ]
|
|
607
|
+
* })
|
|
608
|
+
*
|
|
609
|
+
* // Create many ProductImages and only return the `id`
|
|
610
|
+
* const productImageWithIdOnly = await prisma.productImage.createManyAndReturn({
|
|
611
|
+
* select: { id: true },
|
|
612
|
+
* data: [
|
|
613
|
+
* // ... provide data here
|
|
614
|
+
* ]
|
|
615
|
+
* })
|
|
616
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
617
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
618
|
+
*
|
|
619
|
+
*/
|
|
620
|
+
createManyAndReturn<T extends ProductImageCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ProductImageCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductImagePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
|
|
621
|
+
/**
|
|
622
|
+
* Delete a ProductImage.
|
|
623
|
+
* @param {ProductImageDeleteArgs} args - Arguments to delete one ProductImage.
|
|
624
|
+
* @example
|
|
625
|
+
* // Delete one ProductImage
|
|
626
|
+
* const ProductImage = await prisma.productImage.delete({
|
|
627
|
+
* where: {
|
|
628
|
+
* // ... filter to delete one ProductImage
|
|
629
|
+
* }
|
|
630
|
+
* })
|
|
631
|
+
*
|
|
632
|
+
*/
|
|
633
|
+
delete<T extends ProductImageDeleteArgs>(args: Prisma.SelectSubset<T, ProductImageDeleteArgs<ExtArgs>>): Prisma.Prisma__ProductImageClient<runtime.Types.Result.GetResult<Prisma.$ProductImagePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
634
|
+
/**
|
|
635
|
+
* Update one ProductImage.
|
|
636
|
+
* @param {ProductImageUpdateArgs} args - Arguments to update one ProductImage.
|
|
637
|
+
* @example
|
|
638
|
+
* // Update one ProductImage
|
|
639
|
+
* const productImage = await prisma.productImage.update({
|
|
640
|
+
* where: {
|
|
641
|
+
* // ... provide filter here
|
|
642
|
+
* },
|
|
643
|
+
* data: {
|
|
644
|
+
* // ... provide data here
|
|
645
|
+
* }
|
|
646
|
+
* })
|
|
647
|
+
*
|
|
648
|
+
*/
|
|
649
|
+
update<T extends ProductImageUpdateArgs>(args: Prisma.SelectSubset<T, ProductImageUpdateArgs<ExtArgs>>): Prisma.Prisma__ProductImageClient<runtime.Types.Result.GetResult<Prisma.$ProductImagePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
650
|
+
/**
|
|
651
|
+
* Delete zero or more ProductImages.
|
|
652
|
+
* @param {ProductImageDeleteManyArgs} args - Arguments to filter ProductImages to delete.
|
|
653
|
+
* @example
|
|
654
|
+
* // Delete a few ProductImages
|
|
655
|
+
* const { count } = await prisma.productImage.deleteMany({
|
|
656
|
+
* where: {
|
|
657
|
+
* // ... provide filter here
|
|
658
|
+
* }
|
|
659
|
+
* })
|
|
660
|
+
*
|
|
661
|
+
*/
|
|
662
|
+
deleteMany<T extends ProductImageDeleteManyArgs>(args?: Prisma.SelectSubset<T, ProductImageDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
663
|
+
/**
|
|
664
|
+
* Update zero or more ProductImages.
|
|
665
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
666
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
667
|
+
* @param {ProductImageUpdateManyArgs} args - Arguments to update one or more rows.
|
|
668
|
+
* @example
|
|
669
|
+
* // Update many ProductImages
|
|
670
|
+
* const productImage = await prisma.productImage.updateMany({
|
|
671
|
+
* where: {
|
|
672
|
+
* // ... provide filter here
|
|
673
|
+
* },
|
|
674
|
+
* data: {
|
|
675
|
+
* // ... provide data here
|
|
676
|
+
* }
|
|
677
|
+
* })
|
|
678
|
+
*
|
|
679
|
+
*/
|
|
680
|
+
updateMany<T extends ProductImageUpdateManyArgs>(args: Prisma.SelectSubset<T, ProductImageUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
681
|
+
/**
|
|
682
|
+
* Update zero or more ProductImages and returns the data updated in the database.
|
|
683
|
+
* @param {ProductImageUpdateManyAndReturnArgs} args - Arguments to update many ProductImages.
|
|
684
|
+
* @example
|
|
685
|
+
* // Update many ProductImages
|
|
686
|
+
* const productImage = await prisma.productImage.updateManyAndReturn({
|
|
687
|
+
* where: {
|
|
688
|
+
* // ... provide filter here
|
|
689
|
+
* },
|
|
690
|
+
* data: [
|
|
691
|
+
* // ... provide data here
|
|
692
|
+
* ]
|
|
693
|
+
* })
|
|
694
|
+
*
|
|
695
|
+
* // Update zero or more ProductImages and only return the `id`
|
|
696
|
+
* const productImageWithIdOnly = await prisma.productImage.updateManyAndReturn({
|
|
697
|
+
* select: { id: true },
|
|
698
|
+
* where: {
|
|
699
|
+
* // ... provide filter here
|
|
700
|
+
* },
|
|
701
|
+
* data: [
|
|
702
|
+
* // ... provide data here
|
|
703
|
+
* ]
|
|
704
|
+
* })
|
|
705
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
706
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
707
|
+
*
|
|
708
|
+
*/
|
|
709
|
+
updateManyAndReturn<T extends ProductImageUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ProductImageUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductImagePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
|
|
710
|
+
/**
|
|
711
|
+
* Create or update one ProductImage.
|
|
712
|
+
* @param {ProductImageUpsertArgs} args - Arguments to update or create a ProductImage.
|
|
713
|
+
* @example
|
|
714
|
+
* // Update or create a ProductImage
|
|
715
|
+
* const productImage = await prisma.productImage.upsert({
|
|
716
|
+
* create: {
|
|
717
|
+
* // ... data to create a ProductImage
|
|
718
|
+
* },
|
|
719
|
+
* update: {
|
|
720
|
+
* // ... in case it already exists, update
|
|
721
|
+
* },
|
|
722
|
+
* where: {
|
|
723
|
+
* // ... the filter for the ProductImage we want to update
|
|
724
|
+
* }
|
|
725
|
+
* })
|
|
726
|
+
*/
|
|
727
|
+
upsert<T extends ProductImageUpsertArgs>(args: Prisma.SelectSubset<T, ProductImageUpsertArgs<ExtArgs>>): Prisma.Prisma__ProductImageClient<runtime.Types.Result.GetResult<Prisma.$ProductImagePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
728
|
+
/**
|
|
729
|
+
* Count the number of ProductImages.
|
|
730
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
731
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
732
|
+
* @param {ProductImageCountArgs} args - Arguments to filter ProductImages to count.
|
|
733
|
+
* @example
|
|
734
|
+
* // Count the number of ProductImages
|
|
735
|
+
* const count = await prisma.productImage.count({
|
|
736
|
+
* where: {
|
|
737
|
+
* // ... the filter for the ProductImages we want to count
|
|
738
|
+
* }
|
|
739
|
+
* })
|
|
740
|
+
**/
|
|
741
|
+
count<T extends ProductImageCountArgs>(args?: Prisma.Subset<T, ProductImageCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], ProductImageCountAggregateOutputType> : number>;
|
|
742
|
+
/**
|
|
743
|
+
* Allows you to perform aggregations operations on a ProductImage.
|
|
744
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
745
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
746
|
+
* @param {ProductImageAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
747
|
+
* @example
|
|
748
|
+
* // Ordered by age ascending
|
|
749
|
+
* // Where email contains prisma.io
|
|
750
|
+
* // Limited to the 10 users
|
|
751
|
+
* const aggregations = await prisma.user.aggregate({
|
|
752
|
+
* _avg: {
|
|
753
|
+
* age: true,
|
|
754
|
+
* },
|
|
755
|
+
* where: {
|
|
756
|
+
* email: {
|
|
757
|
+
* contains: "prisma.io",
|
|
758
|
+
* },
|
|
759
|
+
* },
|
|
760
|
+
* orderBy: {
|
|
761
|
+
* age: "asc",
|
|
762
|
+
* },
|
|
763
|
+
* take: 10,
|
|
764
|
+
* })
|
|
765
|
+
**/
|
|
766
|
+
aggregate<T extends ProductImageAggregateArgs>(args: Prisma.Subset<T, ProductImageAggregateArgs>): Prisma.PrismaPromise<GetProductImageAggregateType<T>>;
|
|
767
|
+
/**
|
|
768
|
+
* Group by ProductImage.
|
|
769
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
770
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
771
|
+
* @param {ProductImageGroupByArgs} args - Group by arguments.
|
|
772
|
+
* @example
|
|
773
|
+
* // Group by city, order by createdAt, get count
|
|
774
|
+
* const result = await prisma.user.groupBy({
|
|
775
|
+
* by: ['city', 'createdAt'],
|
|
776
|
+
* orderBy: {
|
|
777
|
+
* createdAt: true
|
|
778
|
+
* },
|
|
779
|
+
* _count: {
|
|
780
|
+
* _all: true
|
|
781
|
+
* },
|
|
782
|
+
* })
|
|
783
|
+
*
|
|
784
|
+
**/
|
|
785
|
+
groupBy<T extends ProductImageGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
|
|
786
|
+
orderBy: ProductImageGroupByArgs['orderBy'];
|
|
787
|
+
} : {
|
|
788
|
+
orderBy?: ProductImageGroupByArgs['orderBy'];
|
|
789
|
+
}, 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 ? {
|
|
790
|
+
[P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
|
|
791
|
+
Error,
|
|
792
|
+
'Field ',
|
|
793
|
+
P,
|
|
794
|
+
` in "having" needs to be provided in "by"`
|
|
795
|
+
];
|
|
796
|
+
}[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
797
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
798
|
+
}[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 ? {} : {
|
|
799
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
800
|
+
}[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
|
|
801
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
802
|
+
}[OrderFields]>(args: Prisma.SubsetIntersection<T, ProductImageGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetProductImageGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
|
|
803
|
+
/**
|
|
804
|
+
* Fields of the ProductImage model
|
|
805
|
+
*/
|
|
806
|
+
readonly fields: ProductImageFieldRefs;
|
|
807
|
+
}
|
|
808
|
+
/**
|
|
809
|
+
* The delegate class that acts as a "Promise-like" for ProductImage.
|
|
810
|
+
* Why is this prefixed with `Prisma__`?
|
|
811
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
812
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
813
|
+
*/
|
|
814
|
+
export interface Prisma__ProductImageClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
815
|
+
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
816
|
+
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>;
|
|
817
|
+
/**
|
|
818
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
819
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
820
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
821
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
822
|
+
*/
|
|
823
|
+
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>;
|
|
824
|
+
/**
|
|
825
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
826
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
827
|
+
* @returns A Promise for the completion of the callback.
|
|
828
|
+
*/
|
|
829
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
|
|
830
|
+
/**
|
|
831
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
832
|
+
* resolved value cannot be modified from the callback.
|
|
833
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
834
|
+
* @returns A Promise for the completion of the callback.
|
|
835
|
+
*/
|
|
836
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
|
|
837
|
+
}
|
|
838
|
+
/**
|
|
839
|
+
* Fields of the ProductImage model
|
|
840
|
+
*/
|
|
841
|
+
export interface ProductImageFieldRefs {
|
|
842
|
+
readonly id: Prisma.FieldRef<"ProductImage", 'String'>;
|
|
843
|
+
readonly productId: Prisma.FieldRef<"ProductImage", 'String'>;
|
|
844
|
+
readonly url: Prisma.FieldRef<"ProductImage", 'String'>;
|
|
845
|
+
readonly altText: Prisma.FieldRef<"ProductImage", 'String'>;
|
|
846
|
+
readonly sortOrder: Prisma.FieldRef<"ProductImage", 'Int'>;
|
|
847
|
+
readonly isPrimary: Prisma.FieldRef<"ProductImage", 'Boolean'>;
|
|
848
|
+
}
|
|
849
|
+
/**
|
|
850
|
+
* ProductImage findUnique
|
|
851
|
+
*/
|
|
852
|
+
export type ProductImageFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
853
|
+
/**
|
|
854
|
+
* Select specific fields to fetch from the ProductImage
|
|
855
|
+
*/
|
|
856
|
+
select?: Prisma.ProductImageSelect<ExtArgs> | null;
|
|
857
|
+
/**
|
|
858
|
+
* Omit specific fields from the ProductImage
|
|
859
|
+
*/
|
|
860
|
+
omit?: Prisma.ProductImageOmit<ExtArgs> | null;
|
|
861
|
+
/**
|
|
862
|
+
* Choose, which related nodes to fetch as well
|
|
863
|
+
*/
|
|
864
|
+
include?: Prisma.ProductImageInclude<ExtArgs> | null;
|
|
865
|
+
/**
|
|
866
|
+
* Filter, which ProductImage to fetch.
|
|
867
|
+
*/
|
|
868
|
+
where: Prisma.ProductImageWhereUniqueInput;
|
|
869
|
+
};
|
|
870
|
+
/**
|
|
871
|
+
* ProductImage findUniqueOrThrow
|
|
872
|
+
*/
|
|
873
|
+
export type ProductImageFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
874
|
+
/**
|
|
875
|
+
* Select specific fields to fetch from the ProductImage
|
|
876
|
+
*/
|
|
877
|
+
select?: Prisma.ProductImageSelect<ExtArgs> | null;
|
|
878
|
+
/**
|
|
879
|
+
* Omit specific fields from the ProductImage
|
|
880
|
+
*/
|
|
881
|
+
omit?: Prisma.ProductImageOmit<ExtArgs> | null;
|
|
882
|
+
/**
|
|
883
|
+
* Choose, which related nodes to fetch as well
|
|
884
|
+
*/
|
|
885
|
+
include?: Prisma.ProductImageInclude<ExtArgs> | null;
|
|
886
|
+
/**
|
|
887
|
+
* Filter, which ProductImage to fetch.
|
|
888
|
+
*/
|
|
889
|
+
where: Prisma.ProductImageWhereUniqueInput;
|
|
890
|
+
};
|
|
891
|
+
/**
|
|
892
|
+
* ProductImage findFirst
|
|
893
|
+
*/
|
|
894
|
+
export type ProductImageFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
895
|
+
/**
|
|
896
|
+
* Select specific fields to fetch from the ProductImage
|
|
897
|
+
*/
|
|
898
|
+
select?: Prisma.ProductImageSelect<ExtArgs> | null;
|
|
899
|
+
/**
|
|
900
|
+
* Omit specific fields from the ProductImage
|
|
901
|
+
*/
|
|
902
|
+
omit?: Prisma.ProductImageOmit<ExtArgs> | null;
|
|
903
|
+
/**
|
|
904
|
+
* Choose, which related nodes to fetch as well
|
|
905
|
+
*/
|
|
906
|
+
include?: Prisma.ProductImageInclude<ExtArgs> | null;
|
|
907
|
+
/**
|
|
908
|
+
* Filter, which ProductImage to fetch.
|
|
909
|
+
*/
|
|
910
|
+
where?: Prisma.ProductImageWhereInput;
|
|
911
|
+
/**
|
|
912
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
913
|
+
*
|
|
914
|
+
* Determine the order of ProductImages to fetch.
|
|
915
|
+
*/
|
|
916
|
+
orderBy?: Prisma.ProductImageOrderByWithRelationInput | Prisma.ProductImageOrderByWithRelationInput[];
|
|
917
|
+
/**
|
|
918
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
919
|
+
*
|
|
920
|
+
* Sets the position for searching for ProductImages.
|
|
921
|
+
*/
|
|
922
|
+
cursor?: Prisma.ProductImageWhereUniqueInput;
|
|
923
|
+
/**
|
|
924
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
925
|
+
*
|
|
926
|
+
* Take `±n` ProductImages from the position of the cursor.
|
|
927
|
+
*/
|
|
928
|
+
take?: number;
|
|
929
|
+
/**
|
|
930
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
931
|
+
*
|
|
932
|
+
* Skip the first `n` ProductImages.
|
|
933
|
+
*/
|
|
934
|
+
skip?: number;
|
|
935
|
+
/**
|
|
936
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
937
|
+
*
|
|
938
|
+
* Filter by unique combinations of ProductImages.
|
|
939
|
+
*/
|
|
940
|
+
distinct?: Prisma.ProductImageScalarFieldEnum | Prisma.ProductImageScalarFieldEnum[];
|
|
941
|
+
};
|
|
942
|
+
/**
|
|
943
|
+
* ProductImage findFirstOrThrow
|
|
944
|
+
*/
|
|
945
|
+
export type ProductImageFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
946
|
+
/**
|
|
947
|
+
* Select specific fields to fetch from the ProductImage
|
|
948
|
+
*/
|
|
949
|
+
select?: Prisma.ProductImageSelect<ExtArgs> | null;
|
|
950
|
+
/**
|
|
951
|
+
* Omit specific fields from the ProductImage
|
|
952
|
+
*/
|
|
953
|
+
omit?: Prisma.ProductImageOmit<ExtArgs> | null;
|
|
954
|
+
/**
|
|
955
|
+
* Choose, which related nodes to fetch as well
|
|
956
|
+
*/
|
|
957
|
+
include?: Prisma.ProductImageInclude<ExtArgs> | null;
|
|
958
|
+
/**
|
|
959
|
+
* Filter, which ProductImage to fetch.
|
|
960
|
+
*/
|
|
961
|
+
where?: Prisma.ProductImageWhereInput;
|
|
962
|
+
/**
|
|
963
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
964
|
+
*
|
|
965
|
+
* Determine the order of ProductImages to fetch.
|
|
966
|
+
*/
|
|
967
|
+
orderBy?: Prisma.ProductImageOrderByWithRelationInput | Prisma.ProductImageOrderByWithRelationInput[];
|
|
968
|
+
/**
|
|
969
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
970
|
+
*
|
|
971
|
+
* Sets the position for searching for ProductImages.
|
|
972
|
+
*/
|
|
973
|
+
cursor?: Prisma.ProductImageWhereUniqueInput;
|
|
974
|
+
/**
|
|
975
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
976
|
+
*
|
|
977
|
+
* Take `±n` ProductImages from the position of the cursor.
|
|
978
|
+
*/
|
|
979
|
+
take?: number;
|
|
980
|
+
/**
|
|
981
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
982
|
+
*
|
|
983
|
+
* Skip the first `n` ProductImages.
|
|
984
|
+
*/
|
|
985
|
+
skip?: number;
|
|
986
|
+
/**
|
|
987
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
988
|
+
*
|
|
989
|
+
* Filter by unique combinations of ProductImages.
|
|
990
|
+
*/
|
|
991
|
+
distinct?: Prisma.ProductImageScalarFieldEnum | Prisma.ProductImageScalarFieldEnum[];
|
|
992
|
+
};
|
|
993
|
+
/**
|
|
994
|
+
* ProductImage findMany
|
|
995
|
+
*/
|
|
996
|
+
export type ProductImageFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
997
|
+
/**
|
|
998
|
+
* Select specific fields to fetch from the ProductImage
|
|
999
|
+
*/
|
|
1000
|
+
select?: Prisma.ProductImageSelect<ExtArgs> | null;
|
|
1001
|
+
/**
|
|
1002
|
+
* Omit specific fields from the ProductImage
|
|
1003
|
+
*/
|
|
1004
|
+
omit?: Prisma.ProductImageOmit<ExtArgs> | null;
|
|
1005
|
+
/**
|
|
1006
|
+
* Choose, which related nodes to fetch as well
|
|
1007
|
+
*/
|
|
1008
|
+
include?: Prisma.ProductImageInclude<ExtArgs> | null;
|
|
1009
|
+
/**
|
|
1010
|
+
* Filter, which ProductImages to fetch.
|
|
1011
|
+
*/
|
|
1012
|
+
where?: Prisma.ProductImageWhereInput;
|
|
1013
|
+
/**
|
|
1014
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1015
|
+
*
|
|
1016
|
+
* Determine the order of ProductImages to fetch.
|
|
1017
|
+
*/
|
|
1018
|
+
orderBy?: Prisma.ProductImageOrderByWithRelationInput | Prisma.ProductImageOrderByWithRelationInput[];
|
|
1019
|
+
/**
|
|
1020
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1021
|
+
*
|
|
1022
|
+
* Sets the position for listing ProductImages.
|
|
1023
|
+
*/
|
|
1024
|
+
cursor?: Prisma.ProductImageWhereUniqueInput;
|
|
1025
|
+
/**
|
|
1026
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1027
|
+
*
|
|
1028
|
+
* Take `±n` ProductImages from the position of the cursor.
|
|
1029
|
+
*/
|
|
1030
|
+
take?: number;
|
|
1031
|
+
/**
|
|
1032
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1033
|
+
*
|
|
1034
|
+
* Skip the first `n` ProductImages.
|
|
1035
|
+
*/
|
|
1036
|
+
skip?: number;
|
|
1037
|
+
distinct?: Prisma.ProductImageScalarFieldEnum | Prisma.ProductImageScalarFieldEnum[];
|
|
1038
|
+
};
|
|
1039
|
+
/**
|
|
1040
|
+
* ProductImage create
|
|
1041
|
+
*/
|
|
1042
|
+
export type ProductImageCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1043
|
+
/**
|
|
1044
|
+
* Select specific fields to fetch from the ProductImage
|
|
1045
|
+
*/
|
|
1046
|
+
select?: Prisma.ProductImageSelect<ExtArgs> | null;
|
|
1047
|
+
/**
|
|
1048
|
+
* Omit specific fields from the ProductImage
|
|
1049
|
+
*/
|
|
1050
|
+
omit?: Prisma.ProductImageOmit<ExtArgs> | null;
|
|
1051
|
+
/**
|
|
1052
|
+
* Choose, which related nodes to fetch as well
|
|
1053
|
+
*/
|
|
1054
|
+
include?: Prisma.ProductImageInclude<ExtArgs> | null;
|
|
1055
|
+
/**
|
|
1056
|
+
* The data needed to create a ProductImage.
|
|
1057
|
+
*/
|
|
1058
|
+
data: Prisma.XOR<Prisma.ProductImageCreateInput, Prisma.ProductImageUncheckedCreateInput>;
|
|
1059
|
+
};
|
|
1060
|
+
/**
|
|
1061
|
+
* ProductImage createMany
|
|
1062
|
+
*/
|
|
1063
|
+
export type ProductImageCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1064
|
+
/**
|
|
1065
|
+
* The data used to create many ProductImages.
|
|
1066
|
+
*/
|
|
1067
|
+
data: Prisma.ProductImageCreateManyInput | Prisma.ProductImageCreateManyInput[];
|
|
1068
|
+
};
|
|
1069
|
+
/**
|
|
1070
|
+
* ProductImage createManyAndReturn
|
|
1071
|
+
*/
|
|
1072
|
+
export type ProductImageCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1073
|
+
/**
|
|
1074
|
+
* Select specific fields to fetch from the ProductImage
|
|
1075
|
+
*/
|
|
1076
|
+
select?: Prisma.ProductImageSelectCreateManyAndReturn<ExtArgs> | null;
|
|
1077
|
+
/**
|
|
1078
|
+
* Omit specific fields from the ProductImage
|
|
1079
|
+
*/
|
|
1080
|
+
omit?: Prisma.ProductImageOmit<ExtArgs> | null;
|
|
1081
|
+
/**
|
|
1082
|
+
* The data used to create many ProductImages.
|
|
1083
|
+
*/
|
|
1084
|
+
data: Prisma.ProductImageCreateManyInput | Prisma.ProductImageCreateManyInput[];
|
|
1085
|
+
/**
|
|
1086
|
+
* Choose, which related nodes to fetch as well
|
|
1087
|
+
*/
|
|
1088
|
+
include?: Prisma.ProductImageIncludeCreateManyAndReturn<ExtArgs> | null;
|
|
1089
|
+
};
|
|
1090
|
+
/**
|
|
1091
|
+
* ProductImage update
|
|
1092
|
+
*/
|
|
1093
|
+
export type ProductImageUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1094
|
+
/**
|
|
1095
|
+
* Select specific fields to fetch from the ProductImage
|
|
1096
|
+
*/
|
|
1097
|
+
select?: Prisma.ProductImageSelect<ExtArgs> | null;
|
|
1098
|
+
/**
|
|
1099
|
+
* Omit specific fields from the ProductImage
|
|
1100
|
+
*/
|
|
1101
|
+
omit?: Prisma.ProductImageOmit<ExtArgs> | null;
|
|
1102
|
+
/**
|
|
1103
|
+
* Choose, which related nodes to fetch as well
|
|
1104
|
+
*/
|
|
1105
|
+
include?: Prisma.ProductImageInclude<ExtArgs> | null;
|
|
1106
|
+
/**
|
|
1107
|
+
* The data needed to update a ProductImage.
|
|
1108
|
+
*/
|
|
1109
|
+
data: Prisma.XOR<Prisma.ProductImageUpdateInput, Prisma.ProductImageUncheckedUpdateInput>;
|
|
1110
|
+
/**
|
|
1111
|
+
* Choose, which ProductImage to update.
|
|
1112
|
+
*/
|
|
1113
|
+
where: Prisma.ProductImageWhereUniqueInput;
|
|
1114
|
+
};
|
|
1115
|
+
/**
|
|
1116
|
+
* ProductImage updateMany
|
|
1117
|
+
*/
|
|
1118
|
+
export type ProductImageUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1119
|
+
/**
|
|
1120
|
+
* The data used to update ProductImages.
|
|
1121
|
+
*/
|
|
1122
|
+
data: Prisma.XOR<Prisma.ProductImageUpdateManyMutationInput, Prisma.ProductImageUncheckedUpdateManyInput>;
|
|
1123
|
+
/**
|
|
1124
|
+
* Filter which ProductImages to update
|
|
1125
|
+
*/
|
|
1126
|
+
where?: Prisma.ProductImageWhereInput;
|
|
1127
|
+
/**
|
|
1128
|
+
* Limit how many ProductImages to update.
|
|
1129
|
+
*/
|
|
1130
|
+
limit?: number;
|
|
1131
|
+
};
|
|
1132
|
+
/**
|
|
1133
|
+
* ProductImage updateManyAndReturn
|
|
1134
|
+
*/
|
|
1135
|
+
export type ProductImageUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1136
|
+
/**
|
|
1137
|
+
* Select specific fields to fetch from the ProductImage
|
|
1138
|
+
*/
|
|
1139
|
+
select?: Prisma.ProductImageSelectUpdateManyAndReturn<ExtArgs> | null;
|
|
1140
|
+
/**
|
|
1141
|
+
* Omit specific fields from the ProductImage
|
|
1142
|
+
*/
|
|
1143
|
+
omit?: Prisma.ProductImageOmit<ExtArgs> | null;
|
|
1144
|
+
/**
|
|
1145
|
+
* The data used to update ProductImages.
|
|
1146
|
+
*/
|
|
1147
|
+
data: Prisma.XOR<Prisma.ProductImageUpdateManyMutationInput, Prisma.ProductImageUncheckedUpdateManyInput>;
|
|
1148
|
+
/**
|
|
1149
|
+
* Filter which ProductImages to update
|
|
1150
|
+
*/
|
|
1151
|
+
where?: Prisma.ProductImageWhereInput;
|
|
1152
|
+
/**
|
|
1153
|
+
* Limit how many ProductImages to update.
|
|
1154
|
+
*/
|
|
1155
|
+
limit?: number;
|
|
1156
|
+
/**
|
|
1157
|
+
* Choose, which related nodes to fetch as well
|
|
1158
|
+
*/
|
|
1159
|
+
include?: Prisma.ProductImageIncludeUpdateManyAndReturn<ExtArgs> | null;
|
|
1160
|
+
};
|
|
1161
|
+
/**
|
|
1162
|
+
* ProductImage upsert
|
|
1163
|
+
*/
|
|
1164
|
+
export type ProductImageUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1165
|
+
/**
|
|
1166
|
+
* Select specific fields to fetch from the ProductImage
|
|
1167
|
+
*/
|
|
1168
|
+
select?: Prisma.ProductImageSelect<ExtArgs> | null;
|
|
1169
|
+
/**
|
|
1170
|
+
* Omit specific fields from the ProductImage
|
|
1171
|
+
*/
|
|
1172
|
+
omit?: Prisma.ProductImageOmit<ExtArgs> | null;
|
|
1173
|
+
/**
|
|
1174
|
+
* Choose, which related nodes to fetch as well
|
|
1175
|
+
*/
|
|
1176
|
+
include?: Prisma.ProductImageInclude<ExtArgs> | null;
|
|
1177
|
+
/**
|
|
1178
|
+
* The filter to search for the ProductImage to update in case it exists.
|
|
1179
|
+
*/
|
|
1180
|
+
where: Prisma.ProductImageWhereUniqueInput;
|
|
1181
|
+
/**
|
|
1182
|
+
* In case the ProductImage found by the `where` argument doesn't exist, create a new ProductImage with this data.
|
|
1183
|
+
*/
|
|
1184
|
+
create: Prisma.XOR<Prisma.ProductImageCreateInput, Prisma.ProductImageUncheckedCreateInput>;
|
|
1185
|
+
/**
|
|
1186
|
+
* In case the ProductImage was found with the provided `where` argument, update it with this data.
|
|
1187
|
+
*/
|
|
1188
|
+
update: Prisma.XOR<Prisma.ProductImageUpdateInput, Prisma.ProductImageUncheckedUpdateInput>;
|
|
1189
|
+
};
|
|
1190
|
+
/**
|
|
1191
|
+
* ProductImage delete
|
|
1192
|
+
*/
|
|
1193
|
+
export type ProductImageDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1194
|
+
/**
|
|
1195
|
+
* Select specific fields to fetch from the ProductImage
|
|
1196
|
+
*/
|
|
1197
|
+
select?: Prisma.ProductImageSelect<ExtArgs> | null;
|
|
1198
|
+
/**
|
|
1199
|
+
* Omit specific fields from the ProductImage
|
|
1200
|
+
*/
|
|
1201
|
+
omit?: Prisma.ProductImageOmit<ExtArgs> | null;
|
|
1202
|
+
/**
|
|
1203
|
+
* Choose, which related nodes to fetch as well
|
|
1204
|
+
*/
|
|
1205
|
+
include?: Prisma.ProductImageInclude<ExtArgs> | null;
|
|
1206
|
+
/**
|
|
1207
|
+
* Filter which ProductImage to delete.
|
|
1208
|
+
*/
|
|
1209
|
+
where: Prisma.ProductImageWhereUniqueInput;
|
|
1210
|
+
};
|
|
1211
|
+
/**
|
|
1212
|
+
* ProductImage deleteMany
|
|
1213
|
+
*/
|
|
1214
|
+
export type ProductImageDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1215
|
+
/**
|
|
1216
|
+
* Filter which ProductImages to delete
|
|
1217
|
+
*/
|
|
1218
|
+
where?: Prisma.ProductImageWhereInput;
|
|
1219
|
+
/**
|
|
1220
|
+
* Limit how many ProductImages to delete.
|
|
1221
|
+
*/
|
|
1222
|
+
limit?: number;
|
|
1223
|
+
};
|
|
1224
|
+
/**
|
|
1225
|
+
* ProductImage without action
|
|
1226
|
+
*/
|
|
1227
|
+
export type ProductImageDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1228
|
+
/**
|
|
1229
|
+
* Select specific fields to fetch from the ProductImage
|
|
1230
|
+
*/
|
|
1231
|
+
select?: Prisma.ProductImageSelect<ExtArgs> | null;
|
|
1232
|
+
/**
|
|
1233
|
+
* Omit specific fields from the ProductImage
|
|
1234
|
+
*/
|
|
1235
|
+
omit?: Prisma.ProductImageOmit<ExtArgs> | null;
|
|
1236
|
+
/**
|
|
1237
|
+
* Choose, which related nodes to fetch as well
|
|
1238
|
+
*/
|
|
1239
|
+
include?: Prisma.ProductImageInclude<ExtArgs> | null;
|
|
1240
|
+
};
|
|
1241
|
+
export {};
|
|
1242
|
+
//# sourceMappingURL=ProductImage.d.ts.map
|