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