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