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