@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.
Files changed (402) hide show
  1. package/README.md +156 -0
  2. package/dist/__tests__/platform.drizzle.test.d.ts +2 -0
  3. package/dist/__tests__/platform.drizzle.test.d.ts.map +1 -0
  4. package/dist/__tests__/platform.drizzle.test.js +27 -0
  5. package/dist/__tests__/platform.drizzle.test.js.map +1 -0
  6. package/dist/__tests__/platform.prisma.test.d.ts +2 -0
  7. package/dist/__tests__/platform.prisma.test.d.ts.map +1 -0
  8. package/dist/__tests__/platform.prisma.test.js +27 -0
  9. package/dist/__tests__/platform.prisma.test.js.map +1 -0
  10. package/dist/__tests__/platform.suite.d.ts +8 -0
  11. package/dist/__tests__/platform.suite.d.ts.map +1 -0
  12. package/dist/__tests__/platform.suite.js +406 -0
  13. package/dist/__tests__/platform.suite.js.map +1 -0
  14. package/dist/adapter.d.ts +20 -0
  15. package/dist/adapter.d.ts.map +1 -0
  16. package/dist/adapter.js +122 -0
  17. package/dist/adapter.js.map +1 -0
  18. package/dist/database/drizzle/client.d.ts +13 -0
  19. package/dist/database/drizzle/client.d.ts.map +1 -0
  20. package/dist/database/drizzle/client.js +29 -0
  21. package/dist/database/drizzle/client.js.map +1 -0
  22. package/dist/database/drizzle/index.d.ts +5 -0
  23. package/dist/database/drizzle/index.d.ts.map +1 -0
  24. package/dist/database/drizzle/index.js +7 -0
  25. package/dist/database/drizzle/index.js.map +1 -0
  26. package/dist/database/drizzle/migrate.d.ts +9 -0
  27. package/dist/database/drizzle/migrate.d.ts.map +1 -0
  28. package/dist/database/drizzle/migrate.js +317 -0
  29. package/dist/database/drizzle/migrate.js.map +1 -0
  30. package/dist/database/drizzle/queries/brands.d.ts +26 -0
  31. package/dist/database/drizzle/queries/brands.d.ts.map +1 -0
  32. package/dist/database/drizzle/queries/brands.js +19 -0
  33. package/dist/database/drizzle/queries/brands.js.map +1 -0
  34. package/dist/database/drizzle/queries/cart.d.ts +61 -0
  35. package/dist/database/drizzle/queries/cart.d.ts.map +1 -0
  36. package/dist/database/drizzle/queries/cart.js +57 -0
  37. package/dist/database/drizzle/queries/cart.js.map +1 -0
  38. package/dist/database/drizzle/queries/catalog.d.ts +149 -0
  39. package/dist/database/drizzle/queries/catalog.d.ts.map +1 -0
  40. package/dist/database/drizzle/queries/catalog.js +88 -0
  41. package/dist/database/drizzle/queries/catalog.js.map +1 -0
  42. package/dist/database/drizzle/queries/countries.d.ts +22 -0
  43. package/dist/database/drizzle/queries/countries.d.ts.map +1 -0
  44. package/dist/database/drizzle/queries/countries.js +19 -0
  45. package/dist/database/drizzle/queries/countries.js.map +1 -0
  46. package/dist/database/drizzle/queries/customers.d.ts +87 -0
  47. package/dist/database/drizzle/queries/customers.d.ts.map +1 -0
  48. package/dist/database/drizzle/queries/customers.js +41 -0
  49. package/dist/database/drizzle/queries/customers.js.map +1 -0
  50. package/dist/database/drizzle/queries/index.d.ts +12 -0
  51. package/dist/database/drizzle/queries/index.d.ts.map +1 -0
  52. package/dist/database/drizzle/queries/index.js +28 -0
  53. package/dist/database/drizzle/queries/index.js.map +1 -0
  54. package/dist/database/drizzle/queries/orders.d.ts +74 -0
  55. package/dist/database/drizzle/queries/orders.d.ts.map +1 -0
  56. package/dist/database/drizzle/queries/orders.js +39 -0
  57. package/dist/database/drizzle/queries/orders.js.map +1 -0
  58. package/dist/database/drizzle/queries/promotions.d.ts +61 -0
  59. package/dist/database/drizzle/queries/promotions.d.ts.map +1 -0
  60. package/dist/database/drizzle/queries/promotions.js +39 -0
  61. package/dist/database/drizzle/queries/promotions.js.map +1 -0
  62. package/dist/database/drizzle/queries/returns.d.ts +62 -0
  63. package/dist/database/drizzle/queries/returns.d.ts.map +1 -0
  64. package/dist/database/drizzle/queries/returns.js +58 -0
  65. package/dist/database/drizzle/queries/returns.js.map +1 -0
  66. package/dist/database/drizzle/queries/reviews.d.ts +25 -0
  67. package/dist/database/drizzle/queries/reviews.d.ts.map +1 -0
  68. package/dist/database/drizzle/queries/reviews.js +57 -0
  69. package/dist/database/drizzle/queries/reviews.js.map +1 -0
  70. package/dist/database/drizzle/queries/store.d.ts +22 -0
  71. package/dist/database/drizzle/queries/store.d.ts.map +1 -0
  72. package/dist/database/drizzle/queries/store.js +14 -0
  73. package/dist/database/drizzle/queries/store.js.map +1 -0
  74. package/dist/database/drizzle/queries/wishlists.d.ts +31 -0
  75. package/dist/database/drizzle/queries/wishlists.d.ts.map +1 -0
  76. package/dist/database/drizzle/queries/wishlists.js +44 -0
  77. package/dist/database/drizzle/queries/wishlists.js.map +1 -0
  78. package/dist/database/drizzle/schema/brands.d.ts +196 -0
  79. package/dist/database/drizzle/schema/brands.d.ts.map +1 -0
  80. package/dist/database/drizzle/schema/brands.js +17 -0
  81. package/dist/database/drizzle/schema/brands.js.map +1 -0
  82. package/dist/database/drizzle/schema/carts.d.ts +294 -0
  83. package/dist/database/drizzle/schema/carts.d.ts.map +1 -0
  84. package/dist/database/drizzle/schema/carts.js +28 -0
  85. package/dist/database/drizzle/schema/carts.js.map +1 -0
  86. package/dist/database/drizzle/schema/categories.d.ts +215 -0
  87. package/dist/database/drizzle/schema/categories.d.ts.map +1 -0
  88. package/dist/database/drizzle/schema/categories.js +18 -0
  89. package/dist/database/drizzle/schema/categories.js.map +1 -0
  90. package/dist/database/drizzle/schema/countries.d.ts +158 -0
  91. package/dist/database/drizzle/schema/countries.d.ts.map +1 -0
  92. package/dist/database/drizzle/schema/countries.js +15 -0
  93. package/dist/database/drizzle/schema/countries.js.map +1 -0
  94. package/dist/database/drizzle/schema/customers.d.ts +469 -0
  95. package/dist/database/drizzle/schema/customers.d.ts.map +1 -0
  96. package/dist/database/drizzle/schema/customers.js +33 -0
  97. package/dist/database/drizzle/schema/customers.js.map +1 -0
  98. package/dist/database/drizzle/schema/index.d.ts +13 -0
  99. package/dist/database/drizzle/schema/index.d.ts.map +1 -0
  100. package/dist/database/drizzle/schema/index.js +16 -0
  101. package/dist/database/drizzle/schema/index.js.map +1 -0
  102. package/dist/database/drizzle/schema/orders.d.ts +722 -0
  103. package/dist/database/drizzle/schema/orders.d.ts.map +1 -0
  104. package/dist/database/drizzle/schema/orders.js +63 -0
  105. package/dist/database/drizzle/schema/orders.js.map +1 -0
  106. package/dist/database/drizzle/schema/products.d.ts +1180 -0
  107. package/dist/database/drizzle/schema/products.d.ts.map +1 -0
  108. package/dist/database/drizzle/schema/products.js +99 -0
  109. package/dist/database/drizzle/schema/products.js.map +1 -0
  110. package/dist/database/drizzle/schema/promotions.d.ts +474 -0
  111. package/dist/database/drizzle/schema/promotions.d.ts.map +1 -0
  112. package/dist/database/drizzle/schema/promotions.js +34 -0
  113. package/dist/database/drizzle/schema/promotions.js.map +1 -0
  114. package/dist/database/drizzle/schema/returns.d.ts +467 -0
  115. package/dist/database/drizzle/schema/returns.d.ts.map +1 -0
  116. package/dist/database/drizzle/schema/returns.js +34 -0
  117. package/dist/database/drizzle/schema/returns.js.map +1 -0
  118. package/dist/database/drizzle/schema/reviews.d.ts +175 -0
  119. package/dist/database/drizzle/schema/reviews.d.ts.map +1 -0
  120. package/dist/database/drizzle/schema/reviews.js +17 -0
  121. package/dist/database/drizzle/schema/reviews.js.map +1 -0
  122. package/dist/database/drizzle/schema/store.d.ts +350 -0
  123. package/dist/database/drizzle/schema/store.d.ts.map +1 -0
  124. package/dist/database/drizzle/schema/store.js +25 -0
  125. package/dist/database/drizzle/schema/store.js.map +1 -0
  126. package/dist/database/drizzle/schema/wishlists.d.ts +167 -0
  127. package/dist/database/drizzle/schema/wishlists.d.ts.map +1 -0
  128. package/dist/database/drizzle/schema/wishlists.js +19 -0
  129. package/dist/database/drizzle/schema/wishlists.js.map +1 -0
  130. package/dist/database/drizzle/seed.d.ts +6 -0
  131. package/dist/database/drizzle/seed.d.ts.map +1 -0
  132. package/dist/database/drizzle/seed.js +166 -0
  133. package/dist/database/drizzle/seed.js.map +1 -0
  134. package/dist/database/index.d.ts +8 -0
  135. package/dist/database/index.d.ts.map +1 -0
  136. package/dist/database/index.js +12 -0
  137. package/dist/database/index.js.map +1 -0
  138. package/dist/database/prisma/client.d.ts +13 -0
  139. package/dist/database/prisma/client.d.ts.map +1 -0
  140. package/dist/database/prisma/client.js +25 -0
  141. package/dist/database/prisma/client.js.map +1 -0
  142. package/dist/database/prisma/generated/browser.d.ts +135 -0
  143. package/dist/database/prisma/generated/browser.d.ts.map +1 -0
  144. package/dist/database/prisma/generated/browser.js +18 -0
  145. package/dist/database/prisma/generated/browser.js.map +1 -0
  146. package/dist/database/prisma/generated/client.d.ts +152 -0
  147. package/dist/database/prisma/generated/client.d.ts.map +1 -0
  148. package/dist/database/prisma/generated/client.js +33 -0
  149. package/dist/database/prisma/generated/client.js.map +1 -0
  150. package/dist/database/prisma/generated/commonInputTypes.d.ts +344 -0
  151. package/dist/database/prisma/generated/commonInputTypes.d.ts.map +1 -0
  152. package/dist/database/prisma/generated/commonInputTypes.js +11 -0
  153. package/dist/database/prisma/generated/commonInputTypes.js.map +1 -0
  154. package/dist/database/prisma/generated/enums.d.ts +2 -0
  155. package/dist/database/prisma/generated/enums.d.ts.map +1 -0
  156. package/dist/database/prisma/generated/enums.js +11 -0
  157. package/dist/database/prisma/generated/enums.js.map +1 -0
  158. package/dist/database/prisma/generated/internal/class.d.ts +402 -0
  159. package/dist/database/prisma/generated/internal/class.d.ts.map +1 -0
  160. package/dist/database/prisma/generated/internal/class.js +42 -0
  161. package/dist/database/prisma/generated/internal/class.js.map +1 -0
  162. package/dist/database/prisma/generated/internal/prismaNamespace.d.ts +2735 -0
  163. package/dist/database/prisma/generated/internal/prismaNamespace.d.ts.map +1 -0
  164. package/dist/database/prisma/generated/internal/prismaNamespace.js +415 -0
  165. package/dist/database/prisma/generated/internal/prismaNamespace.js.map +1 -0
  166. package/dist/database/prisma/generated/internal/prismaNamespaceBrowser.d.ts +400 -0
  167. package/dist/database/prisma/generated/internal/prismaNamespaceBrowser.d.ts.map +1 -0
  168. package/dist/database/prisma/generated/internal/prismaNamespaceBrowser.js +386 -0
  169. package/dist/database/prisma/generated/internal/prismaNamespaceBrowser.js.map +1 -0
  170. package/dist/database/prisma/generated/models/Brand.d.ts +1141 -0
  171. package/dist/database/prisma/generated/models/Brand.d.ts.map +1 -0
  172. package/dist/database/prisma/generated/models/Brand.js +2 -0
  173. package/dist/database/prisma/generated/models/Brand.js.map +1 -0
  174. package/dist/database/prisma/generated/models/Cart.d.ts +1464 -0
  175. package/dist/database/prisma/generated/models/Cart.d.ts.map +1 -0
  176. package/dist/database/prisma/generated/models/Cart.js +2 -0
  177. package/dist/database/prisma/generated/models/Cart.js.map +1 -0
  178. package/dist/database/prisma/generated/models/CartItem.d.ts +1487 -0
  179. package/dist/database/prisma/generated/models/CartItem.d.ts.map +1 -0
  180. package/dist/database/prisma/generated/models/CartItem.js +2 -0
  181. package/dist/database/prisma/generated/models/CartItem.js.map +1 -0
  182. package/dist/database/prisma/generated/models/Category.d.ts +1717 -0
  183. package/dist/database/prisma/generated/models/Category.d.ts.map +1 -0
  184. package/dist/database/prisma/generated/models/Category.js +2 -0
  185. package/dist/database/prisma/generated/models/Category.js.map +1 -0
  186. package/dist/database/prisma/generated/models/Country.d.ts +1076 -0
  187. package/dist/database/prisma/generated/models/Country.d.ts.map +1 -0
  188. package/dist/database/prisma/generated/models/Country.js +2 -0
  189. package/dist/database/prisma/generated/models/Country.js.map +1 -0
  190. package/dist/database/prisma/generated/models/Coupon.d.ts +1242 -0
  191. package/dist/database/prisma/generated/models/Coupon.d.ts.map +1 -0
  192. package/dist/database/prisma/generated/models/Coupon.js +2 -0
  193. package/dist/database/prisma/generated/models/Coupon.js.map +1 -0
  194. package/dist/database/prisma/generated/models/Customer.d.ts +1536 -0
  195. package/dist/database/prisma/generated/models/Customer.d.ts.map +1 -0
  196. package/dist/database/prisma/generated/models/Customer.js +2 -0
  197. package/dist/database/prisma/generated/models/Customer.js.map +1 -0
  198. package/dist/database/prisma/generated/models/CustomerAddress.d.ts +1519 -0
  199. package/dist/database/prisma/generated/models/CustomerAddress.d.ts.map +1 -0
  200. package/dist/database/prisma/generated/models/CustomerAddress.js +2 -0
  201. package/dist/database/prisma/generated/models/CustomerAddress.js.map +1 -0
  202. package/dist/database/prisma/generated/models/Order.d.ts +2136 -0
  203. package/dist/database/prisma/generated/models/Order.d.ts.map +1 -0
  204. package/dist/database/prisma/generated/models/Order.js +2 -0
  205. package/dist/database/prisma/generated/models/Order.js.map +1 -0
  206. package/dist/database/prisma/generated/models/OrderHistory.d.ts +1204 -0
  207. package/dist/database/prisma/generated/models/OrderHistory.d.ts.map +1 -0
  208. package/dist/database/prisma/generated/models/OrderHistory.js +2 -0
  209. package/dist/database/prisma/generated/models/OrderHistory.js.map +1 -0
  210. package/dist/database/prisma/generated/models/OrderItem.d.ts +1464 -0
  211. package/dist/database/prisma/generated/models/OrderItem.d.ts.map +1 -0
  212. package/dist/database/prisma/generated/models/OrderItem.js +2 -0
  213. package/dist/database/prisma/generated/models/OrderItem.js.map +1 -0
  214. package/dist/database/prisma/generated/models/Product.d.ts +2969 -0
  215. package/dist/database/prisma/generated/models/Product.d.ts.map +1 -0
  216. package/dist/database/prisma/generated/models/Product.js +2 -0
  217. package/dist/database/prisma/generated/models/Product.js.map +1 -0
  218. package/dist/database/prisma/generated/models/ProductAttribute.d.ts +1239 -0
  219. package/dist/database/prisma/generated/models/ProductAttribute.d.ts.map +1 -0
  220. package/dist/database/prisma/generated/models/ProductAttribute.js +2 -0
  221. package/dist/database/prisma/generated/models/ProductAttribute.js.map +1 -0
  222. package/dist/database/prisma/generated/models/ProductCategory.d.ts +1154 -0
  223. package/dist/database/prisma/generated/models/ProductCategory.d.ts.map +1 -0
  224. package/dist/database/prisma/generated/models/ProductCategory.js +2 -0
  225. package/dist/database/prisma/generated/models/ProductCategory.js.map +1 -0
  226. package/dist/database/prisma/generated/models/ProductImage.d.ts +1242 -0
  227. package/dist/database/prisma/generated/models/ProductImage.d.ts.map +1 -0
  228. package/dist/database/prisma/generated/models/ProductImage.js +2 -0
  229. package/dist/database/prisma/generated/models/ProductImage.js.map +1 -0
  230. package/dist/database/prisma/generated/models/ProductOption.d.ts +1328 -0
  231. package/dist/database/prisma/generated/models/ProductOption.d.ts.map +1 -0
  232. package/dist/database/prisma/generated/models/ProductOption.js +2 -0
  233. package/dist/database/prisma/generated/models/ProductOption.js.map +1 -0
  234. package/dist/database/prisma/generated/models/ProductOptionValue.d.ts +1207 -0
  235. package/dist/database/prisma/generated/models/ProductOptionValue.d.ts.map +1 -0
  236. package/dist/database/prisma/generated/models/ProductOptionValue.js +2 -0
  237. package/dist/database/prisma/generated/models/ProductOptionValue.js.map +1 -0
  238. package/dist/database/prisma/generated/models/ProductTag.d.ts +1099 -0
  239. package/dist/database/prisma/generated/models/ProductTag.d.ts.map +1 -0
  240. package/dist/database/prisma/generated/models/ProductTag.js +2 -0
  241. package/dist/database/prisma/generated/models/ProductTag.js.map +1 -0
  242. package/dist/database/prisma/generated/models/ProductVariant.d.ts +1543 -0
  243. package/dist/database/prisma/generated/models/ProductVariant.d.ts.map +1 -0
  244. package/dist/database/prisma/generated/models/ProductVariant.js +2 -0
  245. package/dist/database/prisma/generated/models/ProductVariant.js.map +1 -0
  246. package/dist/database/prisma/generated/models/Promotion.d.ts +1658 -0
  247. package/dist/database/prisma/generated/models/Promotion.d.ts.map +1 -0
  248. package/dist/database/prisma/generated/models/Promotion.js +2 -0
  249. package/dist/database/prisma/generated/models/Promotion.js.map +1 -0
  250. package/dist/database/prisma/generated/models/Return.d.ts +1448 -0
  251. package/dist/database/prisma/generated/models/Return.d.ts.map +1 -0
  252. package/dist/database/prisma/generated/models/Return.js +2 -0
  253. package/dist/database/prisma/generated/models/Return.js.map +1 -0
  254. package/dist/database/prisma/generated/models/ReturnItem.d.ts +1417 -0
  255. package/dist/database/prisma/generated/models/ReturnItem.d.ts.map +1 -0
  256. package/dist/database/prisma/generated/models/ReturnItem.js +2 -0
  257. package/dist/database/prisma/generated/models/ReturnItem.js.map +1 -0
  258. package/dist/database/prisma/generated/models/Review.d.ts +1142 -0
  259. package/dist/database/prisma/generated/models/Review.d.ts.map +1 -0
  260. package/dist/database/prisma/generated/models/Review.js +2 -0
  261. package/dist/database/prisma/generated/models/Review.js.map +1 -0
  262. package/dist/database/prisma/generated/models/StoreInfo.d.ts +1356 -0
  263. package/dist/database/prisma/generated/models/StoreInfo.d.ts.map +1 -0
  264. package/dist/database/prisma/generated/models/StoreInfo.js +2 -0
  265. package/dist/database/prisma/generated/models/StoreInfo.js.map +1 -0
  266. package/dist/database/prisma/generated/models/Wishlist.d.ts +1090 -0
  267. package/dist/database/prisma/generated/models/Wishlist.d.ts.map +1 -0
  268. package/dist/database/prisma/generated/models/Wishlist.js +2 -0
  269. package/dist/database/prisma/generated/models/Wishlist.js.map +1 -0
  270. package/dist/database/prisma/generated/models/WishlistItem.d.ts +1169 -0
  271. package/dist/database/prisma/generated/models/WishlistItem.d.ts.map +1 -0
  272. package/dist/database/prisma/generated/models/WishlistItem.js +2 -0
  273. package/dist/database/prisma/generated/models/WishlistItem.js.map +1 -0
  274. package/dist/database/prisma/generated/models.d.ts +28 -0
  275. package/dist/database/prisma/generated/models.d.ts.map +1 -0
  276. package/dist/database/prisma/generated/models.js +2 -0
  277. package/dist/database/prisma/generated/models.js.map +1 -0
  278. package/dist/database/prisma/index.d.ts +5 -0
  279. package/dist/database/prisma/index.d.ts.map +1 -0
  280. package/dist/database/prisma/index.js +7 -0
  281. package/dist/database/prisma/index.js.map +1 -0
  282. package/dist/database/prisma/migrate.d.ts +8 -0
  283. package/dist/database/prisma/migrate.d.ts.map +1 -0
  284. package/dist/database/prisma/migrate.js +323 -0
  285. package/dist/database/prisma/migrate.js.map +1 -0
  286. package/dist/database/prisma/queries/brands.d.ts +26 -0
  287. package/dist/database/prisma/queries/brands.d.ts.map +1 -0
  288. package/dist/database/prisma/queries/brands.js +17 -0
  289. package/dist/database/prisma/queries/brands.js.map +1 -0
  290. package/dist/database/prisma/queries/cart.d.ts +61 -0
  291. package/dist/database/prisma/queries/cart.d.ts.map +1 -0
  292. package/dist/database/prisma/queries/cart.js +68 -0
  293. package/dist/database/prisma/queries/cart.js.map +1 -0
  294. package/dist/database/prisma/queries/catalog.d.ts +149 -0
  295. package/dist/database/prisma/queries/catalog.d.ts.map +1 -0
  296. package/dist/database/prisma/queries/catalog.js +94 -0
  297. package/dist/database/prisma/queries/catalog.js.map +1 -0
  298. package/dist/database/prisma/queries/countries.d.ts +22 -0
  299. package/dist/database/prisma/queries/countries.d.ts.map +1 -0
  300. package/dist/database/prisma/queries/countries.js +17 -0
  301. package/dist/database/prisma/queries/countries.js.map +1 -0
  302. package/dist/database/prisma/queries/customers.d.ts +87 -0
  303. package/dist/database/prisma/queries/customers.d.ts.map +1 -0
  304. package/dist/database/prisma/queries/customers.js +32 -0
  305. package/dist/database/prisma/queries/customers.js.map +1 -0
  306. package/dist/database/prisma/queries/index.d.ts +12 -0
  307. package/dist/database/prisma/queries/index.d.ts.map +1 -0
  308. package/dist/database/prisma/queries/index.js +28 -0
  309. package/dist/database/prisma/queries/index.js.map +1 -0
  310. package/dist/database/prisma/queries/orders.d.ts +74 -0
  311. package/dist/database/prisma/queries/orders.d.ts.map +1 -0
  312. package/dist/database/prisma/queries/orders.js +49 -0
  313. package/dist/database/prisma/queries/orders.js.map +1 -0
  314. package/dist/database/prisma/queries/promotions.d.ts +81 -0
  315. package/dist/database/prisma/queries/promotions.d.ts.map +1 -0
  316. package/dist/database/prisma/queries/promotions.js +31 -0
  317. package/dist/database/prisma/queries/promotions.js.map +1 -0
  318. package/dist/database/prisma/queries/returns.d.ts +102 -0
  319. package/dist/database/prisma/queries/returns.d.ts.map +1 -0
  320. package/dist/database/prisma/queries/returns.js +50 -0
  321. package/dist/database/prisma/queries/returns.js.map +1 -0
  322. package/dist/database/prisma/queries/reviews.d.ts +25 -0
  323. package/dist/database/prisma/queries/reviews.d.ts.map +1 -0
  324. package/dist/database/prisma/queries/reviews.js +50 -0
  325. package/dist/database/prisma/queries/reviews.js.map +1 -0
  326. package/dist/database/prisma/queries/store.d.ts +22 -0
  327. package/dist/database/prisma/queries/store.d.ts.map +1 -0
  328. package/dist/database/prisma/queries/store.js +31 -0
  329. package/dist/database/prisma/queries/store.js.map +1 -0
  330. package/dist/database/prisma/queries/wishlists.d.ts +37 -0
  331. package/dist/database/prisma/queries/wishlists.d.ts.map +1 -0
  332. package/dist/database/prisma/queries/wishlists.js +37 -0
  333. package/dist/database/prisma/queries/wishlists.js.map +1 -0
  334. package/dist/database/prisma/seed.d.ts +5 -0
  335. package/dist/database/prisma/seed.d.ts.map +1 -0
  336. package/dist/database/prisma/seed.js +127 -0
  337. package/dist/database/prisma/seed.js.map +1 -0
  338. package/dist/domains/brands.d.ts +5 -0
  339. package/dist/domains/brands.d.ts.map +1 -0
  340. package/dist/domains/brands.js +21 -0
  341. package/dist/domains/brands.js.map +1 -0
  342. package/dist/domains/cart.d.ts +11 -0
  343. package/dist/domains/cart.d.ts.map +1 -0
  344. package/dist/domains/cart.js +110 -0
  345. package/dist/domains/cart.js.map +1 -0
  346. package/dist/domains/catalog.d.ts +7 -0
  347. package/dist/domains/catalog.d.ts.map +1 -0
  348. package/dist/domains/catalog.js +157 -0
  349. package/dist/domains/catalog.js.map +1 -0
  350. package/dist/domains/checkout.d.ts +11 -0
  351. package/dist/domains/checkout.d.ts.map +1 -0
  352. package/dist/domains/checkout.js +174 -0
  353. package/dist/domains/checkout.js.map +1 -0
  354. package/dist/domains/countries.d.ts +5 -0
  355. package/dist/domains/countries.d.ts.map +1 -0
  356. package/dist/domains/countries.js +21 -0
  357. package/dist/domains/countries.js.map +1 -0
  358. package/dist/domains/customers.d.ts +17 -0
  359. package/dist/domains/customers.d.ts.map +1 -0
  360. package/dist/domains/customers.js +179 -0
  361. package/dist/domains/customers.js.map +1 -0
  362. package/dist/domains/helpers.d.ts +14 -0
  363. package/dist/domains/helpers.d.ts.map +1 -0
  364. package/dist/domains/helpers.js +46 -0
  365. package/dist/domains/helpers.js.map +1 -0
  366. package/dist/domains/not-supported.d.ts +31 -0
  367. package/dist/domains/not-supported.d.ts.map +1 -0
  368. package/dist/domains/not-supported.js +43 -0
  369. package/dist/domains/not-supported.js.map +1 -0
  370. package/dist/domains/orders.d.ts +12 -0
  371. package/dist/domains/orders.d.ts.map +1 -0
  372. package/dist/domains/orders.js +184 -0
  373. package/dist/domains/orders.js.map +1 -0
  374. package/dist/domains/promotions.d.ts +6 -0
  375. package/dist/domains/promotions.d.ts.map +1 -0
  376. package/dist/domains/promotions.js +56 -0
  377. package/dist/domains/promotions.js.map +1 -0
  378. package/dist/domains/returns.d.ts +15 -0
  379. package/dist/domains/returns.d.ts.map +1 -0
  380. package/dist/domains/returns.js +83 -0
  381. package/dist/domains/returns.js.map +1 -0
  382. package/dist/domains/reviews.d.ts +16 -0
  383. package/dist/domains/reviews.d.ts.map +1 -0
  384. package/dist/domains/reviews.js +60 -0
  385. package/dist/domains/reviews.js.map +1 -0
  386. package/dist/domains/store.d.ts +5 -0
  387. package/dist/domains/store.d.ts.map +1 -0
  388. package/dist/domains/store.js +45 -0
  389. package/dist/domains/store.js.map +1 -0
  390. package/dist/domains/wishlist.d.ts +9 -0
  391. package/dist/domains/wishlist.d.ts.map +1 -0
  392. package/dist/domains/wishlist.js +76 -0
  393. package/dist/domains/wishlist.js.map +1 -0
  394. package/dist/index.d.ts +9 -0
  395. package/dist/index.d.ts.map +1 -0
  396. package/dist/index.js +15 -0
  397. package/dist/index.js.map +1 -0
  398. package/dist/types.d.ts +8 -0
  399. package/dist/types.d.ts.map +1 -0
  400. package/dist/types.js +5 -0
  401. package/dist/types.js.map +1 -0
  402. package/package.json +49 -0
@@ -0,0 +1,1076 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace.js";
3
+ /**
4
+ * Model Country
5
+ *
6
+ */
7
+ export type CountryModel = runtime.Types.Result.DefaultSelection<Prisma.$CountryPayload>;
8
+ export type AggregateCountry = {
9
+ _count: CountryCountAggregateOutputType | null;
10
+ _min: CountryMinAggregateOutputType | null;
11
+ _max: CountryMaxAggregateOutputType | null;
12
+ };
13
+ export type CountryMinAggregateOutputType = {
14
+ id: string | null;
15
+ code: string | null;
16
+ name: string | null;
17
+ nameAr: string | null;
18
+ callingCode: string | null;
19
+ currency: string | null;
20
+ capital: string | null;
21
+ isActive: boolean | null;
22
+ };
23
+ export type CountryMaxAggregateOutputType = {
24
+ id: string | null;
25
+ code: string | null;
26
+ name: string | null;
27
+ nameAr: string | null;
28
+ callingCode: string | null;
29
+ currency: string | null;
30
+ capital: string | null;
31
+ isActive: boolean | null;
32
+ };
33
+ export type CountryCountAggregateOutputType = {
34
+ id: number;
35
+ code: number;
36
+ name: number;
37
+ nameAr: number;
38
+ callingCode: number;
39
+ currency: number;
40
+ capital: number;
41
+ isActive: number;
42
+ _all: number;
43
+ };
44
+ export type CountryMinAggregateInputType = {
45
+ id?: true;
46
+ code?: true;
47
+ name?: true;
48
+ nameAr?: true;
49
+ callingCode?: true;
50
+ currency?: true;
51
+ capital?: true;
52
+ isActive?: true;
53
+ };
54
+ export type CountryMaxAggregateInputType = {
55
+ id?: true;
56
+ code?: true;
57
+ name?: true;
58
+ nameAr?: true;
59
+ callingCode?: true;
60
+ currency?: true;
61
+ capital?: true;
62
+ isActive?: true;
63
+ };
64
+ export type CountryCountAggregateInputType = {
65
+ id?: true;
66
+ code?: true;
67
+ name?: true;
68
+ nameAr?: true;
69
+ callingCode?: true;
70
+ currency?: true;
71
+ capital?: true;
72
+ isActive?: true;
73
+ _all?: true;
74
+ };
75
+ export type CountryAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
76
+ /**
77
+ * Filter which Country to aggregate.
78
+ */
79
+ where?: Prisma.CountryWhereInput;
80
+ /**
81
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
82
+ *
83
+ * Determine the order of Countries to fetch.
84
+ */
85
+ orderBy?: Prisma.CountryOrderByWithRelationInput | Prisma.CountryOrderByWithRelationInput[];
86
+ /**
87
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
88
+ *
89
+ * Sets the start position
90
+ */
91
+ cursor?: Prisma.CountryWhereUniqueInput;
92
+ /**
93
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
94
+ *
95
+ * Take `±n` Countries from the position of the cursor.
96
+ */
97
+ take?: number;
98
+ /**
99
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
100
+ *
101
+ * Skip the first `n` Countries.
102
+ */
103
+ skip?: number;
104
+ /**
105
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
106
+ *
107
+ * Count returned Countries
108
+ **/
109
+ _count?: true | CountryCountAggregateInputType;
110
+ /**
111
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
112
+ *
113
+ * Select which fields to find the minimum value
114
+ **/
115
+ _min?: CountryMinAggregateInputType;
116
+ /**
117
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
118
+ *
119
+ * Select which fields to find the maximum value
120
+ **/
121
+ _max?: CountryMaxAggregateInputType;
122
+ };
123
+ export type GetCountryAggregateType<T extends CountryAggregateArgs> = {
124
+ [P in keyof T & keyof AggregateCountry]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateCountry[P]> : Prisma.GetScalarType<T[P], AggregateCountry[P]>;
125
+ };
126
+ export type CountryGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
127
+ where?: Prisma.CountryWhereInput;
128
+ orderBy?: Prisma.CountryOrderByWithAggregationInput | Prisma.CountryOrderByWithAggregationInput[];
129
+ by: Prisma.CountryScalarFieldEnum[] | Prisma.CountryScalarFieldEnum;
130
+ having?: Prisma.CountryScalarWhereWithAggregatesInput;
131
+ take?: number;
132
+ skip?: number;
133
+ _count?: CountryCountAggregateInputType | true;
134
+ _min?: CountryMinAggregateInputType;
135
+ _max?: CountryMaxAggregateInputType;
136
+ };
137
+ export type CountryGroupByOutputType = {
138
+ id: string;
139
+ code: string;
140
+ name: string;
141
+ nameAr: string | null;
142
+ callingCode: string | null;
143
+ currency: string | null;
144
+ capital: string | null;
145
+ isActive: boolean;
146
+ _count: CountryCountAggregateOutputType | null;
147
+ _min: CountryMinAggregateOutputType | null;
148
+ _max: CountryMaxAggregateOutputType | null;
149
+ };
150
+ type GetCountryGroupByPayload<T extends CountryGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<CountryGroupByOutputType, T['by']> & {
151
+ [P in ((keyof T) & (keyof CountryGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], CountryGroupByOutputType[P]> : Prisma.GetScalarType<T[P], CountryGroupByOutputType[P]>;
152
+ }>>;
153
+ export type CountryWhereInput = {
154
+ AND?: Prisma.CountryWhereInput | Prisma.CountryWhereInput[];
155
+ OR?: Prisma.CountryWhereInput[];
156
+ NOT?: Prisma.CountryWhereInput | Prisma.CountryWhereInput[];
157
+ id?: Prisma.StringFilter<"Country"> | string;
158
+ code?: Prisma.StringFilter<"Country"> | string;
159
+ name?: Prisma.StringFilter<"Country"> | string;
160
+ nameAr?: Prisma.StringNullableFilter<"Country"> | string | null;
161
+ callingCode?: Prisma.StringNullableFilter<"Country"> | string | null;
162
+ currency?: Prisma.StringNullableFilter<"Country"> | string | null;
163
+ capital?: Prisma.StringNullableFilter<"Country"> | string | null;
164
+ isActive?: Prisma.BoolFilter<"Country"> | boolean;
165
+ };
166
+ export type CountryOrderByWithRelationInput = {
167
+ id?: Prisma.SortOrder;
168
+ code?: Prisma.SortOrder;
169
+ name?: Prisma.SortOrder;
170
+ nameAr?: Prisma.SortOrderInput | Prisma.SortOrder;
171
+ callingCode?: Prisma.SortOrderInput | Prisma.SortOrder;
172
+ currency?: Prisma.SortOrderInput | Prisma.SortOrder;
173
+ capital?: Prisma.SortOrderInput | Prisma.SortOrder;
174
+ isActive?: Prisma.SortOrder;
175
+ };
176
+ export type CountryWhereUniqueInput = Prisma.AtLeast<{
177
+ id?: string;
178
+ code?: string;
179
+ AND?: Prisma.CountryWhereInput | Prisma.CountryWhereInput[];
180
+ OR?: Prisma.CountryWhereInput[];
181
+ NOT?: Prisma.CountryWhereInput | Prisma.CountryWhereInput[];
182
+ name?: Prisma.StringFilter<"Country"> | string;
183
+ nameAr?: Prisma.StringNullableFilter<"Country"> | string | null;
184
+ callingCode?: Prisma.StringNullableFilter<"Country"> | string | null;
185
+ currency?: Prisma.StringNullableFilter<"Country"> | string | null;
186
+ capital?: Prisma.StringNullableFilter<"Country"> | string | null;
187
+ isActive?: Prisma.BoolFilter<"Country"> | boolean;
188
+ }, "id" | "code">;
189
+ export type CountryOrderByWithAggregationInput = {
190
+ id?: Prisma.SortOrder;
191
+ code?: Prisma.SortOrder;
192
+ name?: Prisma.SortOrder;
193
+ nameAr?: Prisma.SortOrderInput | Prisma.SortOrder;
194
+ callingCode?: Prisma.SortOrderInput | Prisma.SortOrder;
195
+ currency?: Prisma.SortOrderInput | Prisma.SortOrder;
196
+ capital?: Prisma.SortOrderInput | Prisma.SortOrder;
197
+ isActive?: Prisma.SortOrder;
198
+ _count?: Prisma.CountryCountOrderByAggregateInput;
199
+ _max?: Prisma.CountryMaxOrderByAggregateInput;
200
+ _min?: Prisma.CountryMinOrderByAggregateInput;
201
+ };
202
+ export type CountryScalarWhereWithAggregatesInput = {
203
+ AND?: Prisma.CountryScalarWhereWithAggregatesInput | Prisma.CountryScalarWhereWithAggregatesInput[];
204
+ OR?: Prisma.CountryScalarWhereWithAggregatesInput[];
205
+ NOT?: Prisma.CountryScalarWhereWithAggregatesInput | Prisma.CountryScalarWhereWithAggregatesInput[];
206
+ id?: Prisma.StringWithAggregatesFilter<"Country"> | string;
207
+ code?: Prisma.StringWithAggregatesFilter<"Country"> | string;
208
+ name?: Prisma.StringWithAggregatesFilter<"Country"> | string;
209
+ nameAr?: Prisma.StringNullableWithAggregatesFilter<"Country"> | string | null;
210
+ callingCode?: Prisma.StringNullableWithAggregatesFilter<"Country"> | string | null;
211
+ currency?: Prisma.StringNullableWithAggregatesFilter<"Country"> | string | null;
212
+ capital?: Prisma.StringNullableWithAggregatesFilter<"Country"> | string | null;
213
+ isActive?: Prisma.BoolWithAggregatesFilter<"Country"> | boolean;
214
+ };
215
+ export type CountryCreateInput = {
216
+ id?: string;
217
+ code: string;
218
+ name: string;
219
+ nameAr?: string | null;
220
+ callingCode?: string | null;
221
+ currency?: string | null;
222
+ capital?: string | null;
223
+ isActive?: boolean;
224
+ };
225
+ export type CountryUncheckedCreateInput = {
226
+ id?: string;
227
+ code: string;
228
+ name: string;
229
+ nameAr?: string | null;
230
+ callingCode?: string | null;
231
+ currency?: string | null;
232
+ capital?: string | null;
233
+ isActive?: boolean;
234
+ };
235
+ export type CountryUpdateInput = {
236
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
237
+ code?: Prisma.StringFieldUpdateOperationsInput | string;
238
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
239
+ nameAr?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
240
+ callingCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
241
+ currency?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
242
+ capital?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
243
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
244
+ };
245
+ export type CountryUncheckedUpdateInput = {
246
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
247
+ code?: Prisma.StringFieldUpdateOperationsInput | string;
248
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
249
+ nameAr?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
250
+ callingCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
251
+ currency?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
252
+ capital?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
253
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
254
+ };
255
+ export type CountryCreateManyInput = {
256
+ id?: string;
257
+ code: string;
258
+ name: string;
259
+ nameAr?: string | null;
260
+ callingCode?: string | null;
261
+ currency?: string | null;
262
+ capital?: string | null;
263
+ isActive?: boolean;
264
+ };
265
+ export type CountryUpdateManyMutationInput = {
266
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
267
+ code?: Prisma.StringFieldUpdateOperationsInput | string;
268
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
269
+ nameAr?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
270
+ callingCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
271
+ currency?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
272
+ capital?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
273
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
274
+ };
275
+ export type CountryUncheckedUpdateManyInput = {
276
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
277
+ code?: Prisma.StringFieldUpdateOperationsInput | string;
278
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
279
+ nameAr?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
280
+ callingCode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
281
+ currency?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
282
+ capital?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
283
+ isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean;
284
+ };
285
+ export type CountryCountOrderByAggregateInput = {
286
+ id?: Prisma.SortOrder;
287
+ code?: Prisma.SortOrder;
288
+ name?: Prisma.SortOrder;
289
+ nameAr?: Prisma.SortOrder;
290
+ callingCode?: Prisma.SortOrder;
291
+ currency?: Prisma.SortOrder;
292
+ capital?: Prisma.SortOrder;
293
+ isActive?: Prisma.SortOrder;
294
+ };
295
+ export type CountryMaxOrderByAggregateInput = {
296
+ id?: Prisma.SortOrder;
297
+ code?: Prisma.SortOrder;
298
+ name?: Prisma.SortOrder;
299
+ nameAr?: Prisma.SortOrder;
300
+ callingCode?: Prisma.SortOrder;
301
+ currency?: Prisma.SortOrder;
302
+ capital?: Prisma.SortOrder;
303
+ isActive?: Prisma.SortOrder;
304
+ };
305
+ export type CountryMinOrderByAggregateInput = {
306
+ id?: Prisma.SortOrder;
307
+ code?: Prisma.SortOrder;
308
+ name?: Prisma.SortOrder;
309
+ nameAr?: Prisma.SortOrder;
310
+ callingCode?: Prisma.SortOrder;
311
+ currency?: Prisma.SortOrder;
312
+ capital?: Prisma.SortOrder;
313
+ isActive?: Prisma.SortOrder;
314
+ };
315
+ export type CountrySelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
316
+ id?: boolean;
317
+ code?: boolean;
318
+ name?: boolean;
319
+ nameAr?: boolean;
320
+ callingCode?: boolean;
321
+ currency?: boolean;
322
+ capital?: boolean;
323
+ isActive?: boolean;
324
+ }, ExtArgs["result"]["country"]>;
325
+ export type CountrySelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
326
+ id?: boolean;
327
+ code?: boolean;
328
+ name?: boolean;
329
+ nameAr?: boolean;
330
+ callingCode?: boolean;
331
+ currency?: boolean;
332
+ capital?: boolean;
333
+ isActive?: boolean;
334
+ }, ExtArgs["result"]["country"]>;
335
+ export type CountrySelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
336
+ id?: boolean;
337
+ code?: boolean;
338
+ name?: boolean;
339
+ nameAr?: boolean;
340
+ callingCode?: boolean;
341
+ currency?: boolean;
342
+ capital?: boolean;
343
+ isActive?: boolean;
344
+ }, ExtArgs["result"]["country"]>;
345
+ export type CountrySelectScalar = {
346
+ id?: boolean;
347
+ code?: boolean;
348
+ name?: boolean;
349
+ nameAr?: boolean;
350
+ callingCode?: boolean;
351
+ currency?: boolean;
352
+ capital?: boolean;
353
+ isActive?: boolean;
354
+ };
355
+ export type CountryOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "code" | "name" | "nameAr" | "callingCode" | "currency" | "capital" | "isActive", ExtArgs["result"]["country"]>;
356
+ export type $CountryPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
357
+ name: "Country";
358
+ objects: {};
359
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
360
+ id: string;
361
+ code: string;
362
+ name: string;
363
+ nameAr: string | null;
364
+ callingCode: string | null;
365
+ currency: string | null;
366
+ capital: string | null;
367
+ isActive: boolean;
368
+ }, ExtArgs["result"]["country"]>;
369
+ composites: {};
370
+ };
371
+ export type CountryGetPayload<S extends boolean | null | undefined | CountryDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$CountryPayload, S>;
372
+ export type CountryCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<CountryFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
373
+ select?: CountryCountAggregateInputType | true;
374
+ };
375
+ export interface CountryDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
376
+ [K: symbol]: {
377
+ types: Prisma.TypeMap<ExtArgs>['model']['Country'];
378
+ meta: {
379
+ name: 'Country';
380
+ };
381
+ };
382
+ /**
383
+ * Find zero or one Country that matches the filter.
384
+ * @param {CountryFindUniqueArgs} args - Arguments to find a Country
385
+ * @example
386
+ * // Get one Country
387
+ * const country = await prisma.country.findUnique({
388
+ * where: {
389
+ * // ... provide filter here
390
+ * }
391
+ * })
392
+ */
393
+ findUnique<T extends CountryFindUniqueArgs>(args: Prisma.SelectSubset<T, CountryFindUniqueArgs<ExtArgs>>): Prisma.Prisma__CountryClient<runtime.Types.Result.GetResult<Prisma.$CountryPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
394
+ /**
395
+ * Find one Country that matches the filter or throw an error with `error.code='P2025'`
396
+ * if no matches were found.
397
+ * @param {CountryFindUniqueOrThrowArgs} args - Arguments to find a Country
398
+ * @example
399
+ * // Get one Country
400
+ * const country = await prisma.country.findUniqueOrThrow({
401
+ * where: {
402
+ * // ... provide filter here
403
+ * }
404
+ * })
405
+ */
406
+ findUniqueOrThrow<T extends CountryFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, CountryFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__CountryClient<runtime.Types.Result.GetResult<Prisma.$CountryPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
407
+ /**
408
+ * Find the first Country that matches the filter.
409
+ * Note, that providing `undefined` is treated as the value not being there.
410
+ * Read more here: https://pris.ly/d/null-undefined
411
+ * @param {CountryFindFirstArgs} args - Arguments to find a Country
412
+ * @example
413
+ * // Get one Country
414
+ * const country = await prisma.country.findFirst({
415
+ * where: {
416
+ * // ... provide filter here
417
+ * }
418
+ * })
419
+ */
420
+ findFirst<T extends CountryFindFirstArgs>(args?: Prisma.SelectSubset<T, CountryFindFirstArgs<ExtArgs>>): Prisma.Prisma__CountryClient<runtime.Types.Result.GetResult<Prisma.$CountryPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
421
+ /**
422
+ * Find the first Country that matches the filter or
423
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
424
+ * Note, that providing `undefined` is treated as the value not being there.
425
+ * Read more here: https://pris.ly/d/null-undefined
426
+ * @param {CountryFindFirstOrThrowArgs} args - Arguments to find a Country
427
+ * @example
428
+ * // Get one Country
429
+ * const country = await prisma.country.findFirstOrThrow({
430
+ * where: {
431
+ * // ... provide filter here
432
+ * }
433
+ * })
434
+ */
435
+ findFirstOrThrow<T extends CountryFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, CountryFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__CountryClient<runtime.Types.Result.GetResult<Prisma.$CountryPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
436
+ /**
437
+ * Find zero or more Countries that matches the filter.
438
+ * Note, that providing `undefined` is treated as the value not being there.
439
+ * Read more here: https://pris.ly/d/null-undefined
440
+ * @param {CountryFindManyArgs} args - Arguments to filter and select certain fields only.
441
+ * @example
442
+ * // Get all Countries
443
+ * const countries = await prisma.country.findMany()
444
+ *
445
+ * // Get first 10 Countries
446
+ * const countries = await prisma.country.findMany({ take: 10 })
447
+ *
448
+ * // Only select the `id`
449
+ * const countryWithIdOnly = await prisma.country.findMany({ select: { id: true } })
450
+ *
451
+ */
452
+ findMany<T extends CountryFindManyArgs>(args?: Prisma.SelectSubset<T, CountryFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CountryPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
453
+ /**
454
+ * Create a Country.
455
+ * @param {CountryCreateArgs} args - Arguments to create a Country.
456
+ * @example
457
+ * // Create one Country
458
+ * const Country = await prisma.country.create({
459
+ * data: {
460
+ * // ... data to create a Country
461
+ * }
462
+ * })
463
+ *
464
+ */
465
+ create<T extends CountryCreateArgs>(args: Prisma.SelectSubset<T, CountryCreateArgs<ExtArgs>>): Prisma.Prisma__CountryClient<runtime.Types.Result.GetResult<Prisma.$CountryPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
466
+ /**
467
+ * Create many Countries.
468
+ * @param {CountryCreateManyArgs} args - Arguments to create many Countries.
469
+ * @example
470
+ * // Create many Countries
471
+ * const country = await prisma.country.createMany({
472
+ * data: [
473
+ * // ... provide data here
474
+ * ]
475
+ * })
476
+ *
477
+ */
478
+ createMany<T extends CountryCreateManyArgs>(args?: Prisma.SelectSubset<T, CountryCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
479
+ /**
480
+ * Create many Countries and returns the data saved in the database.
481
+ * @param {CountryCreateManyAndReturnArgs} args - Arguments to create many Countries.
482
+ * @example
483
+ * // Create many Countries
484
+ * const country = await prisma.country.createManyAndReturn({
485
+ * data: [
486
+ * // ... provide data here
487
+ * ]
488
+ * })
489
+ *
490
+ * // Create many Countries and only return the `id`
491
+ * const countryWithIdOnly = await prisma.country.createManyAndReturn({
492
+ * select: { id: true },
493
+ * data: [
494
+ * // ... provide data here
495
+ * ]
496
+ * })
497
+ * Note, that providing `undefined` is treated as the value not being there.
498
+ * Read more here: https://pris.ly/d/null-undefined
499
+ *
500
+ */
501
+ createManyAndReturn<T extends CountryCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, CountryCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CountryPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
502
+ /**
503
+ * Delete a Country.
504
+ * @param {CountryDeleteArgs} args - Arguments to delete one Country.
505
+ * @example
506
+ * // Delete one Country
507
+ * const Country = await prisma.country.delete({
508
+ * where: {
509
+ * // ... filter to delete one Country
510
+ * }
511
+ * })
512
+ *
513
+ */
514
+ delete<T extends CountryDeleteArgs>(args: Prisma.SelectSubset<T, CountryDeleteArgs<ExtArgs>>): Prisma.Prisma__CountryClient<runtime.Types.Result.GetResult<Prisma.$CountryPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
515
+ /**
516
+ * Update one Country.
517
+ * @param {CountryUpdateArgs} args - Arguments to update one Country.
518
+ * @example
519
+ * // Update one Country
520
+ * const country = await prisma.country.update({
521
+ * where: {
522
+ * // ... provide filter here
523
+ * },
524
+ * data: {
525
+ * // ... provide data here
526
+ * }
527
+ * })
528
+ *
529
+ */
530
+ update<T extends CountryUpdateArgs>(args: Prisma.SelectSubset<T, CountryUpdateArgs<ExtArgs>>): Prisma.Prisma__CountryClient<runtime.Types.Result.GetResult<Prisma.$CountryPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
531
+ /**
532
+ * Delete zero or more Countries.
533
+ * @param {CountryDeleteManyArgs} args - Arguments to filter Countries to delete.
534
+ * @example
535
+ * // Delete a few Countries
536
+ * const { count } = await prisma.country.deleteMany({
537
+ * where: {
538
+ * // ... provide filter here
539
+ * }
540
+ * })
541
+ *
542
+ */
543
+ deleteMany<T extends CountryDeleteManyArgs>(args?: Prisma.SelectSubset<T, CountryDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
544
+ /**
545
+ * Update zero or more Countries.
546
+ * Note, that providing `undefined` is treated as the value not being there.
547
+ * Read more here: https://pris.ly/d/null-undefined
548
+ * @param {CountryUpdateManyArgs} args - Arguments to update one or more rows.
549
+ * @example
550
+ * // Update many Countries
551
+ * const country = await prisma.country.updateMany({
552
+ * where: {
553
+ * // ... provide filter here
554
+ * },
555
+ * data: {
556
+ * // ... provide data here
557
+ * }
558
+ * })
559
+ *
560
+ */
561
+ updateMany<T extends CountryUpdateManyArgs>(args: Prisma.SelectSubset<T, CountryUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
562
+ /**
563
+ * Update zero or more Countries and returns the data updated in the database.
564
+ * @param {CountryUpdateManyAndReturnArgs} args - Arguments to update many Countries.
565
+ * @example
566
+ * // Update many Countries
567
+ * const country = await prisma.country.updateManyAndReturn({
568
+ * where: {
569
+ * // ... provide filter here
570
+ * },
571
+ * data: [
572
+ * // ... provide data here
573
+ * ]
574
+ * })
575
+ *
576
+ * // Update zero or more Countries and only return the `id`
577
+ * const countryWithIdOnly = await prisma.country.updateManyAndReturn({
578
+ * select: { id: true },
579
+ * where: {
580
+ * // ... provide filter here
581
+ * },
582
+ * data: [
583
+ * // ... provide data here
584
+ * ]
585
+ * })
586
+ * Note, that providing `undefined` is treated as the value not being there.
587
+ * Read more here: https://pris.ly/d/null-undefined
588
+ *
589
+ */
590
+ updateManyAndReturn<T extends CountryUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, CountryUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CountryPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
591
+ /**
592
+ * Create or update one Country.
593
+ * @param {CountryUpsertArgs} args - Arguments to update or create a Country.
594
+ * @example
595
+ * // Update or create a Country
596
+ * const country = await prisma.country.upsert({
597
+ * create: {
598
+ * // ... data to create a Country
599
+ * },
600
+ * update: {
601
+ * // ... in case it already exists, update
602
+ * },
603
+ * where: {
604
+ * // ... the filter for the Country we want to update
605
+ * }
606
+ * })
607
+ */
608
+ upsert<T extends CountryUpsertArgs>(args: Prisma.SelectSubset<T, CountryUpsertArgs<ExtArgs>>): Prisma.Prisma__CountryClient<runtime.Types.Result.GetResult<Prisma.$CountryPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
609
+ /**
610
+ * Count the number of Countries.
611
+ * Note, that providing `undefined` is treated as the value not being there.
612
+ * Read more here: https://pris.ly/d/null-undefined
613
+ * @param {CountryCountArgs} args - Arguments to filter Countries to count.
614
+ * @example
615
+ * // Count the number of Countries
616
+ * const count = await prisma.country.count({
617
+ * where: {
618
+ * // ... the filter for the Countries we want to count
619
+ * }
620
+ * })
621
+ **/
622
+ count<T extends CountryCountArgs>(args?: Prisma.Subset<T, CountryCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], CountryCountAggregateOutputType> : number>;
623
+ /**
624
+ * Allows you to perform aggregations operations on a Country.
625
+ * Note, that providing `undefined` is treated as the value not being there.
626
+ * Read more here: https://pris.ly/d/null-undefined
627
+ * @param {CountryAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
628
+ * @example
629
+ * // Ordered by age ascending
630
+ * // Where email contains prisma.io
631
+ * // Limited to the 10 users
632
+ * const aggregations = await prisma.user.aggregate({
633
+ * _avg: {
634
+ * age: true,
635
+ * },
636
+ * where: {
637
+ * email: {
638
+ * contains: "prisma.io",
639
+ * },
640
+ * },
641
+ * orderBy: {
642
+ * age: "asc",
643
+ * },
644
+ * take: 10,
645
+ * })
646
+ **/
647
+ aggregate<T extends CountryAggregateArgs>(args: Prisma.Subset<T, CountryAggregateArgs>): Prisma.PrismaPromise<GetCountryAggregateType<T>>;
648
+ /**
649
+ * Group by Country.
650
+ * Note, that providing `undefined` is treated as the value not being there.
651
+ * Read more here: https://pris.ly/d/null-undefined
652
+ * @param {CountryGroupByArgs} args - Group by arguments.
653
+ * @example
654
+ * // Group by city, order by createdAt, get count
655
+ * const result = await prisma.user.groupBy({
656
+ * by: ['city', 'createdAt'],
657
+ * orderBy: {
658
+ * createdAt: true
659
+ * },
660
+ * _count: {
661
+ * _all: true
662
+ * },
663
+ * })
664
+ *
665
+ **/
666
+ groupBy<T extends CountryGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
667
+ orderBy: CountryGroupByArgs['orderBy'];
668
+ } : {
669
+ orderBy?: CountryGroupByArgs['orderBy'];
670
+ }, 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 ? {
671
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
672
+ Error,
673
+ 'Field ',
674
+ P,
675
+ ` in "having" needs to be provided in "by"`
676
+ ];
677
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
678
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
679
+ }[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 ? {} : {
680
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
681
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
682
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
683
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, CountryGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCountryGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
684
+ /**
685
+ * Fields of the Country model
686
+ */
687
+ readonly fields: CountryFieldRefs;
688
+ }
689
+ /**
690
+ * The delegate class that acts as a "Promise-like" for Country.
691
+ * Why is this prefixed with `Prisma__`?
692
+ * Because we want to prevent naming conflicts as mentioned in
693
+ * https://github.com/prisma/prisma-client-js/issues/707
694
+ */
695
+ export interface Prisma__CountryClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
696
+ readonly [Symbol.toStringTag]: "PrismaPromise";
697
+ /**
698
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
699
+ * @param onfulfilled The callback to execute when the Promise is resolved.
700
+ * @param onrejected The callback to execute when the Promise is rejected.
701
+ * @returns A Promise for the completion of which ever callback is executed.
702
+ */
703
+ 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>;
704
+ /**
705
+ * Attaches a callback for only the rejection of the Promise.
706
+ * @param onrejected The callback to execute when the Promise is rejected.
707
+ * @returns A Promise for the completion of the callback.
708
+ */
709
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
710
+ /**
711
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
712
+ * resolved value cannot be modified from the callback.
713
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
714
+ * @returns A Promise for the completion of the callback.
715
+ */
716
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
717
+ }
718
+ /**
719
+ * Fields of the Country model
720
+ */
721
+ export interface CountryFieldRefs {
722
+ readonly id: Prisma.FieldRef<"Country", 'String'>;
723
+ readonly code: Prisma.FieldRef<"Country", 'String'>;
724
+ readonly name: Prisma.FieldRef<"Country", 'String'>;
725
+ readonly nameAr: Prisma.FieldRef<"Country", 'String'>;
726
+ readonly callingCode: Prisma.FieldRef<"Country", 'String'>;
727
+ readonly currency: Prisma.FieldRef<"Country", 'String'>;
728
+ readonly capital: Prisma.FieldRef<"Country", 'String'>;
729
+ readonly isActive: Prisma.FieldRef<"Country", 'Boolean'>;
730
+ }
731
+ /**
732
+ * Country findUnique
733
+ */
734
+ export type CountryFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
735
+ /**
736
+ * Select specific fields to fetch from the Country
737
+ */
738
+ select?: Prisma.CountrySelect<ExtArgs> | null;
739
+ /**
740
+ * Omit specific fields from the Country
741
+ */
742
+ omit?: Prisma.CountryOmit<ExtArgs> | null;
743
+ /**
744
+ * Filter, which Country to fetch.
745
+ */
746
+ where: Prisma.CountryWhereUniqueInput;
747
+ };
748
+ /**
749
+ * Country findUniqueOrThrow
750
+ */
751
+ export type CountryFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
752
+ /**
753
+ * Select specific fields to fetch from the Country
754
+ */
755
+ select?: Prisma.CountrySelect<ExtArgs> | null;
756
+ /**
757
+ * Omit specific fields from the Country
758
+ */
759
+ omit?: Prisma.CountryOmit<ExtArgs> | null;
760
+ /**
761
+ * Filter, which Country to fetch.
762
+ */
763
+ where: Prisma.CountryWhereUniqueInput;
764
+ };
765
+ /**
766
+ * Country findFirst
767
+ */
768
+ export type CountryFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
769
+ /**
770
+ * Select specific fields to fetch from the Country
771
+ */
772
+ select?: Prisma.CountrySelect<ExtArgs> | null;
773
+ /**
774
+ * Omit specific fields from the Country
775
+ */
776
+ omit?: Prisma.CountryOmit<ExtArgs> | null;
777
+ /**
778
+ * Filter, which Country to fetch.
779
+ */
780
+ where?: Prisma.CountryWhereInput;
781
+ /**
782
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
783
+ *
784
+ * Determine the order of Countries to fetch.
785
+ */
786
+ orderBy?: Prisma.CountryOrderByWithRelationInput | Prisma.CountryOrderByWithRelationInput[];
787
+ /**
788
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
789
+ *
790
+ * Sets the position for searching for Countries.
791
+ */
792
+ cursor?: Prisma.CountryWhereUniqueInput;
793
+ /**
794
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
795
+ *
796
+ * Take `±n` Countries from the position of the cursor.
797
+ */
798
+ take?: number;
799
+ /**
800
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
801
+ *
802
+ * Skip the first `n` Countries.
803
+ */
804
+ skip?: number;
805
+ /**
806
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
807
+ *
808
+ * Filter by unique combinations of Countries.
809
+ */
810
+ distinct?: Prisma.CountryScalarFieldEnum | Prisma.CountryScalarFieldEnum[];
811
+ };
812
+ /**
813
+ * Country findFirstOrThrow
814
+ */
815
+ export type CountryFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
816
+ /**
817
+ * Select specific fields to fetch from the Country
818
+ */
819
+ select?: Prisma.CountrySelect<ExtArgs> | null;
820
+ /**
821
+ * Omit specific fields from the Country
822
+ */
823
+ omit?: Prisma.CountryOmit<ExtArgs> | null;
824
+ /**
825
+ * Filter, which Country to fetch.
826
+ */
827
+ where?: Prisma.CountryWhereInput;
828
+ /**
829
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
830
+ *
831
+ * Determine the order of Countries to fetch.
832
+ */
833
+ orderBy?: Prisma.CountryOrderByWithRelationInput | Prisma.CountryOrderByWithRelationInput[];
834
+ /**
835
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
836
+ *
837
+ * Sets the position for searching for Countries.
838
+ */
839
+ cursor?: Prisma.CountryWhereUniqueInput;
840
+ /**
841
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
842
+ *
843
+ * Take `±n` Countries from the position of the cursor.
844
+ */
845
+ take?: number;
846
+ /**
847
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
848
+ *
849
+ * Skip the first `n` Countries.
850
+ */
851
+ skip?: number;
852
+ /**
853
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
854
+ *
855
+ * Filter by unique combinations of Countries.
856
+ */
857
+ distinct?: Prisma.CountryScalarFieldEnum | Prisma.CountryScalarFieldEnum[];
858
+ };
859
+ /**
860
+ * Country findMany
861
+ */
862
+ export type CountryFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
863
+ /**
864
+ * Select specific fields to fetch from the Country
865
+ */
866
+ select?: Prisma.CountrySelect<ExtArgs> | null;
867
+ /**
868
+ * Omit specific fields from the Country
869
+ */
870
+ omit?: Prisma.CountryOmit<ExtArgs> | null;
871
+ /**
872
+ * Filter, which Countries to fetch.
873
+ */
874
+ where?: Prisma.CountryWhereInput;
875
+ /**
876
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
877
+ *
878
+ * Determine the order of Countries to fetch.
879
+ */
880
+ orderBy?: Prisma.CountryOrderByWithRelationInput | Prisma.CountryOrderByWithRelationInput[];
881
+ /**
882
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
883
+ *
884
+ * Sets the position for listing Countries.
885
+ */
886
+ cursor?: Prisma.CountryWhereUniqueInput;
887
+ /**
888
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
889
+ *
890
+ * Take `±n` Countries from the position of the cursor.
891
+ */
892
+ take?: number;
893
+ /**
894
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
895
+ *
896
+ * Skip the first `n` Countries.
897
+ */
898
+ skip?: number;
899
+ distinct?: Prisma.CountryScalarFieldEnum | Prisma.CountryScalarFieldEnum[];
900
+ };
901
+ /**
902
+ * Country create
903
+ */
904
+ export type CountryCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
905
+ /**
906
+ * Select specific fields to fetch from the Country
907
+ */
908
+ select?: Prisma.CountrySelect<ExtArgs> | null;
909
+ /**
910
+ * Omit specific fields from the Country
911
+ */
912
+ omit?: Prisma.CountryOmit<ExtArgs> | null;
913
+ /**
914
+ * The data needed to create a Country.
915
+ */
916
+ data: Prisma.XOR<Prisma.CountryCreateInput, Prisma.CountryUncheckedCreateInput>;
917
+ };
918
+ /**
919
+ * Country createMany
920
+ */
921
+ export type CountryCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
922
+ /**
923
+ * The data used to create many Countries.
924
+ */
925
+ data: Prisma.CountryCreateManyInput | Prisma.CountryCreateManyInput[];
926
+ };
927
+ /**
928
+ * Country createManyAndReturn
929
+ */
930
+ export type CountryCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
931
+ /**
932
+ * Select specific fields to fetch from the Country
933
+ */
934
+ select?: Prisma.CountrySelectCreateManyAndReturn<ExtArgs> | null;
935
+ /**
936
+ * Omit specific fields from the Country
937
+ */
938
+ omit?: Prisma.CountryOmit<ExtArgs> | null;
939
+ /**
940
+ * The data used to create many Countries.
941
+ */
942
+ data: Prisma.CountryCreateManyInput | Prisma.CountryCreateManyInput[];
943
+ };
944
+ /**
945
+ * Country update
946
+ */
947
+ export type CountryUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
948
+ /**
949
+ * Select specific fields to fetch from the Country
950
+ */
951
+ select?: Prisma.CountrySelect<ExtArgs> | null;
952
+ /**
953
+ * Omit specific fields from the Country
954
+ */
955
+ omit?: Prisma.CountryOmit<ExtArgs> | null;
956
+ /**
957
+ * The data needed to update a Country.
958
+ */
959
+ data: Prisma.XOR<Prisma.CountryUpdateInput, Prisma.CountryUncheckedUpdateInput>;
960
+ /**
961
+ * Choose, which Country to update.
962
+ */
963
+ where: Prisma.CountryWhereUniqueInput;
964
+ };
965
+ /**
966
+ * Country updateMany
967
+ */
968
+ export type CountryUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
969
+ /**
970
+ * The data used to update Countries.
971
+ */
972
+ data: Prisma.XOR<Prisma.CountryUpdateManyMutationInput, Prisma.CountryUncheckedUpdateManyInput>;
973
+ /**
974
+ * Filter which Countries to update
975
+ */
976
+ where?: Prisma.CountryWhereInput;
977
+ /**
978
+ * Limit how many Countries to update.
979
+ */
980
+ limit?: number;
981
+ };
982
+ /**
983
+ * Country updateManyAndReturn
984
+ */
985
+ export type CountryUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
986
+ /**
987
+ * Select specific fields to fetch from the Country
988
+ */
989
+ select?: Prisma.CountrySelectUpdateManyAndReturn<ExtArgs> | null;
990
+ /**
991
+ * Omit specific fields from the Country
992
+ */
993
+ omit?: Prisma.CountryOmit<ExtArgs> | null;
994
+ /**
995
+ * The data used to update Countries.
996
+ */
997
+ data: Prisma.XOR<Prisma.CountryUpdateManyMutationInput, Prisma.CountryUncheckedUpdateManyInput>;
998
+ /**
999
+ * Filter which Countries to update
1000
+ */
1001
+ where?: Prisma.CountryWhereInput;
1002
+ /**
1003
+ * Limit how many Countries to update.
1004
+ */
1005
+ limit?: number;
1006
+ };
1007
+ /**
1008
+ * Country upsert
1009
+ */
1010
+ export type CountryUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1011
+ /**
1012
+ * Select specific fields to fetch from the Country
1013
+ */
1014
+ select?: Prisma.CountrySelect<ExtArgs> | null;
1015
+ /**
1016
+ * Omit specific fields from the Country
1017
+ */
1018
+ omit?: Prisma.CountryOmit<ExtArgs> | null;
1019
+ /**
1020
+ * The filter to search for the Country to update in case it exists.
1021
+ */
1022
+ where: Prisma.CountryWhereUniqueInput;
1023
+ /**
1024
+ * In case the Country found by the `where` argument doesn't exist, create a new Country with this data.
1025
+ */
1026
+ create: Prisma.XOR<Prisma.CountryCreateInput, Prisma.CountryUncheckedCreateInput>;
1027
+ /**
1028
+ * In case the Country was found with the provided `where` argument, update it with this data.
1029
+ */
1030
+ update: Prisma.XOR<Prisma.CountryUpdateInput, Prisma.CountryUncheckedUpdateInput>;
1031
+ };
1032
+ /**
1033
+ * Country delete
1034
+ */
1035
+ export type CountryDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1036
+ /**
1037
+ * Select specific fields to fetch from the Country
1038
+ */
1039
+ select?: Prisma.CountrySelect<ExtArgs> | null;
1040
+ /**
1041
+ * Omit specific fields from the Country
1042
+ */
1043
+ omit?: Prisma.CountryOmit<ExtArgs> | null;
1044
+ /**
1045
+ * Filter which Country to delete.
1046
+ */
1047
+ where: Prisma.CountryWhereUniqueInput;
1048
+ };
1049
+ /**
1050
+ * Country deleteMany
1051
+ */
1052
+ export type CountryDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1053
+ /**
1054
+ * Filter which Countries to delete
1055
+ */
1056
+ where?: Prisma.CountryWhereInput;
1057
+ /**
1058
+ * Limit how many Countries to delete.
1059
+ */
1060
+ limit?: number;
1061
+ };
1062
+ /**
1063
+ * Country without action
1064
+ */
1065
+ export type CountryDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1066
+ /**
1067
+ * Select specific fields to fetch from the Country
1068
+ */
1069
+ select?: Prisma.CountrySelect<ExtArgs> | null;
1070
+ /**
1071
+ * Omit specific fields from the Country
1072
+ */
1073
+ omit?: Prisma.CountryOmit<ExtArgs> | null;
1074
+ };
1075
+ export {};
1076
+ //# sourceMappingURL=Country.d.ts.map