@shophost/rest-api 2.0.31 → 2.0.33

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 (348) hide show
  1. package/package.json +13 -14
  2. package/src/app.js +53 -1
  3. package/src/app.js.map +1 -0
  4. package/src/core/auth/auth.schema.js +41 -1
  5. package/src/core/auth/auth.schema.js.map +1 -0
  6. package/src/core/auth/auth.util.js +44 -1
  7. package/src/core/auth/auth.util.js.map +1 -0
  8. package/src/core/auth/better-auth.lib.js +100 -1
  9. package/src/core/auth/better-auth.lib.js.map +1 -0
  10. package/src/core/auth/generate-password-hash.util.d.ts +3 -0
  11. package/src/core/auth/generate-password-hash.util.js +30 -1
  12. package/src/core/auth/generate-password-hash.util.js.map +1 -0
  13. package/src/core/auth/headers.schema.js +22 -1
  14. package/src/core/auth/headers.schema.js.map +1 -0
  15. package/src/core/auth/user.schema.js +30 -1
  16. package/src/core/auth/user.schema.js.map +1 -0
  17. package/src/core/db/__generated__/client/browser.d.ts +128 -0
  18. package/src/core/db/__generated__/client/browser.js +18 -1
  19. package/src/core/db/__generated__/client/browser.js.map +1 -0
  20. package/src/core/db/__generated__/client/client.d.ts +143 -0
  21. package/src/core/db/__generated__/client/client.js +35 -1
  22. package/src/core/db/__generated__/client/client.js.map +1 -0
  23. package/src/core/db/__generated__/client/commonInputTypes.js +11 -1
  24. package/src/core/db/__generated__/client/commonInputTypes.js.map +1 -0
  25. package/src/core/db/__generated__/client/enums.js +200 -1
  26. package/src/core/db/__generated__/client/enums.js.map +1 -0
  27. package/src/core/db/__generated__/client/internal/class.d.ts +343 -0
  28. package/src/core/db/__generated__/client/internal/class.js +55 -1
  29. package/src/core/db/__generated__/client/internal/class.js.map +1 -0
  30. package/src/core/db/__generated__/client/internal/prismaNamespace.d.ts +234 -0
  31. package/src/core/db/__generated__/client/internal/prismaNamespace.js +541 -1
  32. package/src/core/db/__generated__/client/internal/prismaNamespace.js.map +1 -0
  33. package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.d.ts +15 -0
  34. package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.js +512 -1
  35. package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.js.map +1 -0
  36. package/src/core/db/__generated__/client/models/Account.d.ts +633 -0
  37. package/src/core/db/__generated__/client/models/Account.js +2 -1
  38. package/src/core/db/__generated__/client/models/Account.js.map +1 -0
  39. package/src/core/db/__generated__/client/models/Address.d.ts +706 -0
  40. package/src/core/db/__generated__/client/models/Address.js +2 -1
  41. package/src/core/db/__generated__/client/models/Address.js.map +1 -0
  42. package/src/core/db/__generated__/client/models/Campaign.d.ts +643 -0
  43. package/src/core/db/__generated__/client/models/Campaign.js +2 -1
  44. package/src/core/db/__generated__/client/models/Campaign.js.map +1 -0
  45. package/src/core/db/__generated__/client/models/ClosingTimes.d.ts +639 -0
  46. package/src/core/db/__generated__/client/models/ClosingTimes.js +2 -1
  47. package/src/core/db/__generated__/client/models/ClosingTimes.js.map +1 -0
  48. package/src/core/db/__generated__/client/models/File.d.ts +757 -0
  49. package/src/core/db/__generated__/client/models/File.js +2 -1
  50. package/src/core/db/__generated__/client/models/File.js.map +1 -0
  51. package/src/core/db/__generated__/client/models/Invitation.d.ts +633 -0
  52. package/src/core/db/__generated__/client/models/Invitation.js +2 -1
  53. package/src/core/db/__generated__/client/models/Invitation.js.map +1 -0
  54. package/src/core/db/__generated__/client/models/LegalEntity.d.ts +657 -0
  55. package/src/core/db/__generated__/client/models/LegalEntity.js +2 -1
  56. package/src/core/db/__generated__/client/models/LegalEntity.js.map +1 -0
  57. package/src/core/db/__generated__/client/models/Manufacturer.d.ts +684 -0
  58. package/src/core/db/__generated__/client/models/Manufacturer.js +2 -1
  59. package/src/core/db/__generated__/client/models/Manufacturer.js.map +1 -0
  60. package/src/core/db/__generated__/client/models/ManufacturerTranslation.d.ts +633 -0
  61. package/src/core/db/__generated__/client/models/ManufacturerTranslation.js +2 -1
  62. package/src/core/db/__generated__/client/models/ManufacturerTranslation.js.map +1 -0
  63. package/src/core/db/__generated__/client/models/Member.d.ts +633 -0
  64. package/src/core/db/__generated__/client/models/Member.js +2 -1
  65. package/src/core/db/__generated__/client/models/Member.js.map +1 -0
  66. package/src/core/db/__generated__/client/models/Modifier.d.ts +667 -0
  67. package/src/core/db/__generated__/client/models/Modifier.js +2 -1
  68. package/src/core/db/__generated__/client/models/Modifier.js.map +1 -0
  69. package/src/core/db/__generated__/client/models/ModifierGroup.d.ts +691 -0
  70. package/src/core/db/__generated__/client/models/ModifierGroup.js +2 -1
  71. package/src/core/db/__generated__/client/models/ModifierGroup.js.map +1 -0
  72. package/src/core/db/__generated__/client/models/ModifierGroupTranslation.d.ts +633 -0
  73. package/src/core/db/__generated__/client/models/ModifierGroupTranslation.js +2 -1
  74. package/src/core/db/__generated__/client/models/ModifierGroupTranslation.js.map +1 -0
  75. package/src/core/db/__generated__/client/models/OpeningTimes.d.ts +639 -0
  76. package/src/core/db/__generated__/client/models/OpeningTimes.js +2 -1
  77. package/src/core/db/__generated__/client/models/OpeningTimes.js.map +1 -0
  78. package/src/core/db/__generated__/client/models/Order.d.ts +705 -0
  79. package/src/core/db/__generated__/client/models/Order.js +2 -1
  80. package/src/core/db/__generated__/client/models/Order.js.map +1 -0
  81. package/src/core/db/__generated__/client/models/OrderItem.d.ts +691 -0
  82. package/src/core/db/__generated__/client/models/OrderItem.js +2 -1
  83. package/src/core/db/__generated__/client/models/OrderItem.js.map +1 -0
  84. package/src/core/db/__generated__/client/models/OrderItemTranslation.d.ts +633 -0
  85. package/src/core/db/__generated__/client/models/OrderItemTranslation.js +2 -1
  86. package/src/core/db/__generated__/client/models/OrderItemTranslation.js.map +1 -0
  87. package/src/core/db/__generated__/client/models/Organization.d.ts +816 -0
  88. package/src/core/db/__generated__/client/models/Organization.js +2 -1
  89. package/src/core/db/__generated__/client/models/Organization.js.map +1 -0
  90. package/src/core/db/__generated__/client/models/OrganizationConfiguration.d.ts +681 -0
  91. package/src/core/db/__generated__/client/models/OrganizationConfiguration.js +2 -1
  92. package/src/core/db/__generated__/client/models/OrganizationConfiguration.js.map +1 -0
  93. package/src/core/db/__generated__/client/models/Payment.d.ts +673 -0
  94. package/src/core/db/__generated__/client/models/Payment.js +2 -1
  95. package/src/core/db/__generated__/client/models/Payment.js.map +1 -0
  96. package/src/core/db/__generated__/client/models/PaymentSession.d.ts +643 -0
  97. package/src/core/db/__generated__/client/models/PaymentSession.js +2 -1
  98. package/src/core/db/__generated__/client/models/PaymentSession.js.map +1 -0
  99. package/src/core/db/__generated__/client/models/Product.d.ts +751 -0
  100. package/src/core/db/__generated__/client/models/Product.js +2 -1
  101. package/src/core/db/__generated__/client/models/Product.js.map +1 -0
  102. package/src/core/db/__generated__/client/models/ProductCategory.d.ts +694 -0
  103. package/src/core/db/__generated__/client/models/ProductCategory.js +2 -1
  104. package/src/core/db/__generated__/client/models/ProductCategory.js.map +1 -0
  105. package/src/core/db/__generated__/client/models/ProductCategoryTranslation.d.ts +633 -0
  106. package/src/core/db/__generated__/client/models/ProductCategoryTranslation.js +2 -1
  107. package/src/core/db/__generated__/client/models/ProductCategoryTranslation.js.map +1 -0
  108. package/src/core/db/__generated__/client/models/ProductSnapshot.d.ts +669 -0
  109. package/src/core/db/__generated__/client/models/ProductSnapshot.js +2 -1
  110. package/src/core/db/__generated__/client/models/ProductSnapshot.js.map +1 -0
  111. package/src/core/db/__generated__/client/models/ProductTranslation.d.ts +633 -0
  112. package/src/core/db/__generated__/client/models/ProductTranslation.js +2 -1
  113. package/src/core/db/__generated__/client/models/ProductTranslation.js.map +1 -0
  114. package/src/core/db/__generated__/client/models/Reservation.d.ts +655 -0
  115. package/src/core/db/__generated__/client/models/Reservation.js +2 -1
  116. package/src/core/db/__generated__/client/models/Reservation.js.map +1 -0
  117. package/src/core/db/__generated__/client/models/Session.d.ts +633 -0
  118. package/src/core/db/__generated__/client/models/Session.js +2 -1
  119. package/src/core/db/__generated__/client/models/Session.js.map +1 -0
  120. package/src/core/db/__generated__/client/models/ShippingMethod.d.ts +684 -0
  121. package/src/core/db/__generated__/client/models/ShippingMethod.js +2 -1
  122. package/src/core/db/__generated__/client/models/ShippingMethod.js.map +1 -0
  123. package/src/core/db/__generated__/client/models/ShippingZone.d.ts +643 -0
  124. package/src/core/db/__generated__/client/models/ShippingZone.js +2 -1
  125. package/src/core/db/__generated__/client/models/ShippingZone.js.map +1 -0
  126. package/src/core/db/__generated__/client/models/User.d.ts +741 -0
  127. package/src/core/db/__generated__/client/models/User.js +2 -1
  128. package/src/core/db/__generated__/client/models/User.js.map +1 -0
  129. package/src/core/db/__generated__/client/models/Verification.d.ts +597 -0
  130. package/src/core/db/__generated__/client/models/Verification.js +2 -1
  131. package/src/core/db/__generated__/client/models/Verification.js.map +1 -0
  132. package/src/core/db/__generated__/client/models.js +2 -1
  133. package/src/core/db/__generated__/client/models.js.map +1 -0
  134. package/src/core/db/index.js +2 -1
  135. package/src/core/db/index.js.map +1 -0
  136. package/src/core/exceptions/http-exception.js +9 -1
  137. package/src/core/exceptions/http-exception.js.map +1 -0
  138. package/src/core/hono/hono.js +123 -1
  139. package/src/core/hono/hono.js.map +1 -0
  140. package/src/core/lib/prisma.js +11 -1
  141. package/src/core/lib/prisma.js.map +1 -0
  142. package/src/core/logging/pino.js +5 -1
  143. package/src/core/logging/pino.js.map +1 -0
  144. package/src/core/notifications/email.service.d.ts +15 -0
  145. package/src/core/notifications/email.service.js +116 -1
  146. package/src/core/notifications/email.service.js.map +1 -0
  147. package/src/core/openapi/openapi.lib.js +26 -1
  148. package/src/core/openapi/openapi.lib.js.map +1 -0
  149. package/src/core/types/google-maps.types.js +2 -1
  150. package/src/core/types/google-maps.types.js.map +1 -0
  151. package/src/core/utils/currency.util.js +11 -1
  152. package/src/core/utils/currency.util.js.map +1 -0
  153. package/src/core/utils/env.util.js +8 -1
  154. package/src/core/utils/env.util.js.map +1 -0
  155. package/src/core/utils/object.util.d.ts +10 -0
  156. package/src/core/utils/object.util.js +39 -1
  157. package/src/core/utils/object.util.js.map +1 -0
  158. package/src/core/utils/translations.util.js +2 -0
  159. package/src/core/utils/translations.util.js.map +1 -0
  160. package/src/core/utils/zod.util.d.ts +12 -0
  161. package/src/core/utils/zod.util.js +85 -1
  162. package/src/core/utils/zod.util.js.map +1 -0
  163. package/src/db.js +3 -1
  164. package/src/db.js.map +1 -0
  165. package/src/features/access/access.handler.js +91 -1
  166. package/src/features/access/access.handler.js.map +1 -0
  167. package/src/features/access/access.route.js +220 -1
  168. package/src/features/access/access.route.js.map +1 -0
  169. package/src/features/access/access.schema.js +108 -1
  170. package/src/features/access/access.schema.js.map +1 -0
  171. package/src/features/access/access.service.js +294 -1
  172. package/src/features/access/access.service.js.map +1 -0
  173. package/src/features/cart/cart.handler.js +17 -1
  174. package/src/features/cart/cart.handler.js.map +1 -0
  175. package/src/features/cart/cart.route.js +32 -1
  176. package/src/features/cart/cart.route.js.map +1 -0
  177. package/src/features/cart/cart.schema.js +39 -1
  178. package/src/features/cart/cart.schema.js.map +1 -0
  179. package/src/features/cart/cart.service.d.ts +7 -0
  180. package/src/features/cart/cart.service.js +97 -1
  181. package/src/features/cart/cart.service.js.map +1 -0
  182. package/src/features/cart/cart.util.js +76 -1
  183. package/src/features/cart/cart.util.js.map +1 -0
  184. package/src/features/file/file.handler.js +23 -1
  185. package/src/features/file/file.handler.js.map +1 -0
  186. package/src/features/file/file.route.js +34 -1
  187. package/src/features/file/file.route.js.map +1 -0
  188. package/src/features/file/file.schema.js +77 -1
  189. package/src/features/file/file.schema.js.map +1 -0
  190. package/src/features/file/file.service.d.ts +6 -0
  191. package/src/features/file/file.service.js +66 -1
  192. package/src/features/file/file.service.js.map +1 -0
  193. package/src/features/health/health.handler.js +10 -1
  194. package/src/features/health/health.handler.js.map +1 -0
  195. package/src/features/health/health.route.js +25 -1
  196. package/src/features/health/health.route.js.map +1 -0
  197. package/src/features/index.js +16 -1
  198. package/src/features/index.js.map +1 -0
  199. package/src/features/location/location.handler.js +25 -1
  200. package/src/features/location/location.handler.js.map +1 -0
  201. package/src/features/location/location.route.js +56 -1
  202. package/src/features/location/location.route.js.map +1 -0
  203. package/src/features/location/location.schema.js +50 -1
  204. package/src/features/location/location.schema.js.map +1 -0
  205. package/src/features/location/location.service.d.ts +3 -0
  206. package/src/features/location/location.service.js +141 -1
  207. package/src/features/location/location.service.js.map +1 -0
  208. package/src/features/manufacturer/manufacturer.handler.js +53 -1
  209. package/src/features/manufacturer/manufacturer.handler.js.map +1 -0
  210. package/src/features/manufacturer/manufacturer.route.js +97 -1
  211. package/src/features/manufacturer/manufacturer.route.js.map +1 -0
  212. package/src/features/manufacturer/manufacturer.schema.js +125 -1
  213. package/src/features/manufacturer/manufacturer.schema.js.map +1 -0
  214. package/src/features/manufacturer/manufacturer.service.d.ts +19 -0
  215. package/src/features/manufacturer/manufacturer.service.js +190 -1
  216. package/src/features/manufacturer/manufacturer.service.js.map +1 -0
  217. package/src/features/order/emails/order-confirmation.email.js +229 -1
  218. package/src/features/order/emails/order-confirmation.email.js.map +1 -0
  219. package/src/features/order/emails/order-notification.email.js +229 -1
  220. package/src/features/order/emails/order-notification.email.js.map +1 -0
  221. package/src/features/order/fulfilment.schema.js +3 -1
  222. package/src/features/order/fulfilment.schema.js.map +1 -0
  223. package/src/features/order/order.handler.js +54 -1
  224. package/src/features/order/order.handler.js.map +1 -0
  225. package/src/features/order/order.route.js +111 -1
  226. package/src/features/order/order.route.js.map +1 -0
  227. package/src/features/order/order.schema.js +158 -1
  228. package/src/features/order/order.schema.js.map +1 -0
  229. package/src/features/order/order.service.d.ts +15 -0
  230. package/src/features/order/order.service.js +306 -1
  231. package/src/features/order/order.service.js.map +1 -0
  232. package/src/features/order/recipient.schema.js +38 -1
  233. package/src/features/order/recipient.schema.js.map +1 -0
  234. package/src/features/organization/legal-entity.schema.js +83 -1
  235. package/src/features/organization/legal-entity.schema.js.map +1 -0
  236. package/src/features/organization/organization-configuration.schema.js +115 -1
  237. package/src/features/organization/organization-configuration.schema.js.map +1 -0
  238. package/src/features/organization/organization.handler.js +48 -1
  239. package/src/features/organization/organization.handler.js.map +1 -0
  240. package/src/features/organization/organization.route.js +84 -1
  241. package/src/features/organization/organization.route.js.map +1 -0
  242. package/src/features/organization/organization.schema.js +64 -1
  243. package/src/features/organization/organization.schema.js.map +1 -0
  244. package/src/features/organization/organization.service.d.ts +15 -0
  245. package/src/features/organization/organization.service.js +334 -1
  246. package/src/features/organization/organization.service.js.map +1 -0
  247. package/src/features/payment/payment.handler.js +16 -1
  248. package/src/features/payment/payment.handler.js.map +1 -0
  249. package/src/features/payment/payment.route.js +22 -1
  250. package/src/features/payment/payment.route.js.map +1 -0
  251. package/src/features/payment/payment.schema.js +46 -1
  252. package/src/features/payment/payment.schema.js.map +1 -0
  253. package/src/features/payment/payment.service.js +100 -1
  254. package/src/features/payment/payment.service.js.map +1 -0
  255. package/src/features/payment/stripe.service.js +164 -1
  256. package/src/features/payment/stripe.service.js.map +1 -0
  257. package/src/features/product/product-modifier.schema.js +84 -1
  258. package/src/features/product/product-modifier.schema.js.map +1 -0
  259. package/src/features/product/product.handler.js +87 -1
  260. package/src/features/product/product.handler.js.map +1 -0
  261. package/src/features/product/product.route.js +179 -1
  262. package/src/features/product/product.route.js.map +1 -0
  263. package/src/features/product/product.schema.js +143 -1
  264. package/src/features/product/product.schema.js.map +1 -0
  265. package/src/features/product/product.service.d.ts +25 -0
  266. package/src/features/product/product.service.js +440 -1
  267. package/src/features/product/product.service.js.map +1 -0
  268. package/src/features/product-category/product-category.handler.js +59 -1
  269. package/src/features/product-category/product-category.handler.js.map +1 -0
  270. package/src/features/product-category/product-category.route.js +139 -1
  271. package/src/features/product-category/product-category.route.js.map +1 -0
  272. package/src/features/product-category/product-category.schema.js +86 -1
  273. package/src/features/product-category/product-category.schema.js.map +1 -0
  274. package/src/features/product-category/product-category.service.d.ts +22 -0
  275. package/src/features/product-category/product-category.service.js +220 -1
  276. package/src/features/product-category/product-category.service.js.map +1 -0
  277. package/src/features/reservation/emails/reservation-cancellation.email.js +82 -1
  278. package/src/features/reservation/emails/reservation-cancellation.email.js.map +1 -0
  279. package/src/features/reservation/emails/reservation-confirmation.email.js +82 -1
  280. package/src/features/reservation/emails/reservation-confirmation.email.js.map +1 -0
  281. package/src/features/reservation/emails/reservation-notification.email.js +93 -1
  282. package/src/features/reservation/emails/reservation-notification.email.js.map +1 -0
  283. package/src/features/reservation/reservation.handler.js +65 -1
  284. package/src/features/reservation/reservation.handler.js.map +1 -0
  285. package/src/features/reservation/reservation.route.js +167 -1
  286. package/src/features/reservation/reservation.route.js.map +1 -0
  287. package/src/features/reservation/reservation.schema.js +51 -1
  288. package/src/features/reservation/reservation.schema.js.map +1 -0
  289. package/src/features/reservation/reservation.service.d.ts +18 -0
  290. package/src/features/reservation/reservation.service.js +231 -1
  291. package/src/features/reservation/reservation.service.js.map +1 -0
  292. package/src/features/shipping/shipping.handler.js +32 -1
  293. package/src/features/shipping/shipping.handler.js.map +1 -0
  294. package/src/features/shipping/shipping.route.js +51 -1
  295. package/src/features/shipping/shipping.route.js.map +1 -0
  296. package/src/features/shipping/shipping.service.d.ts +7 -0
  297. package/src/features/shipping/shipping.service.js +96 -1
  298. package/src/features/shipping/shipping.service.js.map +1 -0
  299. package/src/features/shipping-method/shipping-method.handler.js +60 -1
  300. package/src/features/shipping-method/shipping-method.handler.js.map +1 -0
  301. package/src/features/shipping-method/shipping-method.route.js +144 -1
  302. package/src/features/shipping-method/shipping-method.route.js.map +1 -0
  303. package/src/features/shipping-method/shipping-method.schema.js +48 -1
  304. package/src/features/shipping-method/shipping-method.schema.js.map +1 -0
  305. package/src/features/shipping-method/shipping-method.service.d.ts +25 -0
  306. package/src/features/shipping-method/shipping-method.service.js +229 -1
  307. package/src/features/shipping-method/shipping-method.service.js.map +1 -0
  308. package/src/features/shipping-method/shipping-zone.schema.js +31 -1
  309. package/src/features/shipping-method/shipping-zone.schema.js.map +1 -0
  310. package/src/features/webhook/webhook.handler.js +50 -1
  311. package/src/features/webhook/webhook.handler.js.map +1 -0
  312. package/src/features/webhook/webhook.route.js +33 -1
  313. package/src/features/webhook/webhook.route.js.map +1 -0
  314. package/src/index.js +6 -1
  315. package/src/index.js.map +1 -0
  316. package/src/integrations/next.js +82 -1
  317. package/src/integrations/next.js.map +1 -0
  318. package/src/schemas/address.schema.d.ts +8 -0
  319. package/src/schemas/address.schema.js +112 -1
  320. package/src/schemas/address.schema.js.map +1 -0
  321. package/src/schemas/currency.schema.d.ts +42 -0
  322. package/src/schemas/currency.schema.js +118 -1
  323. package/src/schemas/currency.schema.js.map +1 -0
  324. package/src/schemas/error.schema.js +12 -1
  325. package/src/schemas/error.schema.js.map +1 -0
  326. package/src/schemas/index.js +29 -1
  327. package/src/schemas/index.js.map +1 -0
  328. package/src/schemas/locales.schema.js +238 -1
  329. package/src/schemas/locales.schema.js.map +1 -0
  330. package/src/schemas/number.schema.js +29 -1
  331. package/src/schemas/number.schema.js.map +1 -0
  332. package/src/schemas/pagination.schema.js +54 -1
  333. package/src/schemas/pagination.schema.js.map +1 -0
  334. package/src/schemas/params.schema.js +20 -1
  335. package/src/schemas/params.schema.js.map +1 -0
  336. package/src/schemas/queries.schema.js +6 -1
  337. package/src/schemas/queries.schema.js.map +1 -0
  338. package/src/test/global-setup.js +37 -1
  339. package/src/test/global-setup.js.map +1 -0
  340. package/src/test/integration/api-fixtures.js +160 -1
  341. package/src/test/integration/api-fixtures.js.map +1 -0
  342. package/src/test/integration/seed.js +368 -1
  343. package/src/test/integration/seed.js.map +1 -0
  344. package/src/test/integration/test-helpers.js +154 -1
  345. package/src/test/integration/test-helpers.js.map +1 -0
  346. package/src/test/setup-test-env.js +7 -1
  347. package/src/test/setup-test-env.js.map +1 -0
  348. package/scripts/minify.mjs +0 -110
@@ -1,5 +1,9 @@
1
1
  import type * as runtime from "@prisma/client/runtime/client";
2
2
  import type * as Prisma from "../internal/prismaNamespace";
3
+ /**
4
+ * Model ShippingZone
5
+ *
6
+ */
3
7
  export type ShippingZoneModel = runtime.Types.Result.DefaultSelection<Prisma.$ShippingZonePayload>;
4
8
  export type AggregateShippingZone = {
5
9
  _count: ShippingZoneCountAggregateOutputType | null;
@@ -97,15 +101,63 @@ export type ShippingZoneCountAggregateInputType = {
97
101
  _all?: true;
98
102
  };
99
103
  export type ShippingZoneAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
104
+ /**
105
+ * Filter which ShippingZone to aggregate.
106
+ */
100
107
  where?: Prisma.ShippingZoneWhereInput;
108
+ /**
109
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
110
+ *
111
+ * Determine the order of ShippingZones to fetch.
112
+ */
101
113
  orderBy?: Prisma.ShippingZoneOrderByWithRelationInput | Prisma.ShippingZoneOrderByWithRelationInput[];
114
+ /**
115
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
116
+ *
117
+ * Sets the start position
118
+ */
102
119
  cursor?: Prisma.ShippingZoneWhereUniqueInput;
120
+ /**
121
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
122
+ *
123
+ * Take `±n` ShippingZones from the position of the cursor.
124
+ */
103
125
  take?: number;
126
+ /**
127
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
128
+ *
129
+ * Skip the first `n` ShippingZones.
130
+ */
104
131
  skip?: number;
132
+ /**
133
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
134
+ *
135
+ * Count returned ShippingZones
136
+ **/
105
137
  _count?: true | ShippingZoneCountAggregateInputType;
138
+ /**
139
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
140
+ *
141
+ * Select which fields to average
142
+ **/
106
143
  _avg?: ShippingZoneAvgAggregateInputType;
144
+ /**
145
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
146
+ *
147
+ * Select which fields to sum
148
+ **/
107
149
  _sum?: ShippingZoneSumAggregateInputType;
150
+ /**
151
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
152
+ *
153
+ * Select which fields to find the minimum value
154
+ **/
108
155
  _min?: ShippingZoneMinAggregateInputType;
156
+ /**
157
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
158
+ *
159
+ * Select which fields to find the maximum value
160
+ **/
109
161
  _max?: ShippingZoneMaxAggregateInputType;
110
162
  };
111
163
  export type GetShippingZoneAggregateType<T extends ShippingZoneAggregateArgs> = {
@@ -561,22 +613,290 @@ export interface ShippingZoneDelegate<ExtArgs extends runtime.Types.Extensions.I
561
613
  name: 'ShippingZone';
562
614
  };
563
615
  };
616
+ /**
617
+ * Find zero or one ShippingZone that matches the filter.
618
+ * @param {ShippingZoneFindUniqueArgs} args - Arguments to find a ShippingZone
619
+ * @example
620
+ * // Get one ShippingZone
621
+ * const shippingZone = await prisma.shippingZone.findUnique({
622
+ * where: {
623
+ * // ... provide filter here
624
+ * }
625
+ * })
626
+ */
564
627
  findUnique<T extends ShippingZoneFindUniqueArgs>(args: Prisma.SelectSubset<T, ShippingZoneFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ShippingZoneClient<runtime.Types.Result.GetResult<Prisma.$ShippingZonePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
628
+ /**
629
+ * Find one ShippingZone that matches the filter or throw an error with `error.code='P2025'`
630
+ * if no matches were found.
631
+ * @param {ShippingZoneFindUniqueOrThrowArgs} args - Arguments to find a ShippingZone
632
+ * @example
633
+ * // Get one ShippingZone
634
+ * const shippingZone = await prisma.shippingZone.findUniqueOrThrow({
635
+ * where: {
636
+ * // ... provide filter here
637
+ * }
638
+ * })
639
+ */
565
640
  findUniqueOrThrow<T extends ShippingZoneFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ShippingZoneFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ShippingZoneClient<runtime.Types.Result.GetResult<Prisma.$ShippingZonePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
641
+ /**
642
+ * Find the first ShippingZone that matches the filter.
643
+ * Note, that providing `undefined` is treated as the value not being there.
644
+ * Read more here: https://pris.ly/d/null-undefined
645
+ * @param {ShippingZoneFindFirstArgs} args - Arguments to find a ShippingZone
646
+ * @example
647
+ * // Get one ShippingZone
648
+ * const shippingZone = await prisma.shippingZone.findFirst({
649
+ * where: {
650
+ * // ... provide filter here
651
+ * }
652
+ * })
653
+ */
566
654
  findFirst<T extends ShippingZoneFindFirstArgs>(args?: Prisma.SelectSubset<T, ShippingZoneFindFirstArgs<ExtArgs>>): Prisma.Prisma__ShippingZoneClient<runtime.Types.Result.GetResult<Prisma.$ShippingZonePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
655
+ /**
656
+ * Find the first ShippingZone that matches the filter or
657
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
658
+ * Note, that providing `undefined` is treated as the value not being there.
659
+ * Read more here: https://pris.ly/d/null-undefined
660
+ * @param {ShippingZoneFindFirstOrThrowArgs} args - Arguments to find a ShippingZone
661
+ * @example
662
+ * // Get one ShippingZone
663
+ * const shippingZone = await prisma.shippingZone.findFirstOrThrow({
664
+ * where: {
665
+ * // ... provide filter here
666
+ * }
667
+ * })
668
+ */
567
669
  findFirstOrThrow<T extends ShippingZoneFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ShippingZoneFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ShippingZoneClient<runtime.Types.Result.GetResult<Prisma.$ShippingZonePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
670
+ /**
671
+ * Find zero or more ShippingZones that matches the filter.
672
+ * Note, that providing `undefined` is treated as the value not being there.
673
+ * Read more here: https://pris.ly/d/null-undefined
674
+ * @param {ShippingZoneFindManyArgs} args - Arguments to filter and select certain fields only.
675
+ * @example
676
+ * // Get all ShippingZones
677
+ * const shippingZones = await prisma.shippingZone.findMany()
678
+ *
679
+ * // Get first 10 ShippingZones
680
+ * const shippingZones = await prisma.shippingZone.findMany({ take: 10 })
681
+ *
682
+ * // Only select the `id`
683
+ * const shippingZoneWithIdOnly = await prisma.shippingZone.findMany({ select: { id: true } })
684
+ *
685
+ */
568
686
  findMany<T extends ShippingZoneFindManyArgs>(args?: Prisma.SelectSubset<T, ShippingZoneFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ShippingZonePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
687
+ /**
688
+ * Create a ShippingZone.
689
+ * @param {ShippingZoneCreateArgs} args - Arguments to create a ShippingZone.
690
+ * @example
691
+ * // Create one ShippingZone
692
+ * const ShippingZone = await prisma.shippingZone.create({
693
+ * data: {
694
+ * // ... data to create a ShippingZone
695
+ * }
696
+ * })
697
+ *
698
+ */
569
699
  create<T extends ShippingZoneCreateArgs>(args: Prisma.SelectSubset<T, ShippingZoneCreateArgs<ExtArgs>>): Prisma.Prisma__ShippingZoneClient<runtime.Types.Result.GetResult<Prisma.$ShippingZonePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
700
+ /**
701
+ * Create many ShippingZones.
702
+ * @param {ShippingZoneCreateManyArgs} args - Arguments to create many ShippingZones.
703
+ * @example
704
+ * // Create many ShippingZones
705
+ * const shippingZone = await prisma.shippingZone.createMany({
706
+ * data: [
707
+ * // ... provide data here
708
+ * ]
709
+ * })
710
+ *
711
+ */
570
712
  createMany<T extends ShippingZoneCreateManyArgs>(args?: Prisma.SelectSubset<T, ShippingZoneCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
713
+ /**
714
+ * Create many ShippingZones and returns the data saved in the database.
715
+ * @param {ShippingZoneCreateManyAndReturnArgs} args - Arguments to create many ShippingZones.
716
+ * @example
717
+ * // Create many ShippingZones
718
+ * const shippingZone = await prisma.shippingZone.createManyAndReturn({
719
+ * data: [
720
+ * // ... provide data here
721
+ * ]
722
+ * })
723
+ *
724
+ * // Create many ShippingZones and only return the `id`
725
+ * const shippingZoneWithIdOnly = await prisma.shippingZone.createManyAndReturn({
726
+ * select: { id: true },
727
+ * data: [
728
+ * // ... provide data here
729
+ * ]
730
+ * })
731
+ * Note, that providing `undefined` is treated as the value not being there.
732
+ * Read more here: https://pris.ly/d/null-undefined
733
+ *
734
+ */
571
735
  createManyAndReturn<T extends ShippingZoneCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ShippingZoneCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ShippingZonePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
736
+ /**
737
+ * Delete a ShippingZone.
738
+ * @param {ShippingZoneDeleteArgs} args - Arguments to delete one ShippingZone.
739
+ * @example
740
+ * // Delete one ShippingZone
741
+ * const ShippingZone = await prisma.shippingZone.delete({
742
+ * where: {
743
+ * // ... filter to delete one ShippingZone
744
+ * }
745
+ * })
746
+ *
747
+ */
572
748
  delete<T extends ShippingZoneDeleteArgs>(args: Prisma.SelectSubset<T, ShippingZoneDeleteArgs<ExtArgs>>): Prisma.Prisma__ShippingZoneClient<runtime.Types.Result.GetResult<Prisma.$ShippingZonePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
749
+ /**
750
+ * Update one ShippingZone.
751
+ * @param {ShippingZoneUpdateArgs} args - Arguments to update one ShippingZone.
752
+ * @example
753
+ * // Update one ShippingZone
754
+ * const shippingZone = await prisma.shippingZone.update({
755
+ * where: {
756
+ * // ... provide filter here
757
+ * },
758
+ * data: {
759
+ * // ... provide data here
760
+ * }
761
+ * })
762
+ *
763
+ */
573
764
  update<T extends ShippingZoneUpdateArgs>(args: Prisma.SelectSubset<T, ShippingZoneUpdateArgs<ExtArgs>>): Prisma.Prisma__ShippingZoneClient<runtime.Types.Result.GetResult<Prisma.$ShippingZonePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
765
+ /**
766
+ * Delete zero or more ShippingZones.
767
+ * @param {ShippingZoneDeleteManyArgs} args - Arguments to filter ShippingZones to delete.
768
+ * @example
769
+ * // Delete a few ShippingZones
770
+ * const { count } = await prisma.shippingZone.deleteMany({
771
+ * where: {
772
+ * // ... provide filter here
773
+ * }
774
+ * })
775
+ *
776
+ */
574
777
  deleteMany<T extends ShippingZoneDeleteManyArgs>(args?: Prisma.SelectSubset<T, ShippingZoneDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
778
+ /**
779
+ * Update zero or more ShippingZones.
780
+ * Note, that providing `undefined` is treated as the value not being there.
781
+ * Read more here: https://pris.ly/d/null-undefined
782
+ * @param {ShippingZoneUpdateManyArgs} args - Arguments to update one or more rows.
783
+ * @example
784
+ * // Update many ShippingZones
785
+ * const shippingZone = await prisma.shippingZone.updateMany({
786
+ * where: {
787
+ * // ... provide filter here
788
+ * },
789
+ * data: {
790
+ * // ... provide data here
791
+ * }
792
+ * })
793
+ *
794
+ */
575
795
  updateMany<T extends ShippingZoneUpdateManyArgs>(args: Prisma.SelectSubset<T, ShippingZoneUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
796
+ /**
797
+ * Update zero or more ShippingZones and returns the data updated in the database.
798
+ * @param {ShippingZoneUpdateManyAndReturnArgs} args - Arguments to update many ShippingZones.
799
+ * @example
800
+ * // Update many ShippingZones
801
+ * const shippingZone = await prisma.shippingZone.updateManyAndReturn({
802
+ * where: {
803
+ * // ... provide filter here
804
+ * },
805
+ * data: [
806
+ * // ... provide data here
807
+ * ]
808
+ * })
809
+ *
810
+ * // Update zero or more ShippingZones and only return the `id`
811
+ * const shippingZoneWithIdOnly = await prisma.shippingZone.updateManyAndReturn({
812
+ * select: { id: true },
813
+ * where: {
814
+ * // ... provide filter here
815
+ * },
816
+ * data: [
817
+ * // ... provide data here
818
+ * ]
819
+ * })
820
+ * Note, that providing `undefined` is treated as the value not being there.
821
+ * Read more here: https://pris.ly/d/null-undefined
822
+ *
823
+ */
576
824
  updateManyAndReturn<T extends ShippingZoneUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ShippingZoneUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ShippingZonePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
825
+ /**
826
+ * Create or update one ShippingZone.
827
+ * @param {ShippingZoneUpsertArgs} args - Arguments to update or create a ShippingZone.
828
+ * @example
829
+ * // Update or create a ShippingZone
830
+ * const shippingZone = await prisma.shippingZone.upsert({
831
+ * create: {
832
+ * // ... data to create a ShippingZone
833
+ * },
834
+ * update: {
835
+ * // ... in case it already exists, update
836
+ * },
837
+ * where: {
838
+ * // ... the filter for the ShippingZone we want to update
839
+ * }
840
+ * })
841
+ */
577
842
  upsert<T extends ShippingZoneUpsertArgs>(args: Prisma.SelectSubset<T, ShippingZoneUpsertArgs<ExtArgs>>): Prisma.Prisma__ShippingZoneClient<runtime.Types.Result.GetResult<Prisma.$ShippingZonePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
843
+ /**
844
+ * Count the number of ShippingZones.
845
+ * Note, that providing `undefined` is treated as the value not being there.
846
+ * Read more here: https://pris.ly/d/null-undefined
847
+ * @param {ShippingZoneCountArgs} args - Arguments to filter ShippingZones to count.
848
+ * @example
849
+ * // Count the number of ShippingZones
850
+ * const count = await prisma.shippingZone.count({
851
+ * where: {
852
+ * // ... the filter for the ShippingZones we want to count
853
+ * }
854
+ * })
855
+ **/
578
856
  count<T extends ShippingZoneCountArgs>(args?: Prisma.Subset<T, ShippingZoneCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], ShippingZoneCountAggregateOutputType> : number>;
857
+ /**
858
+ * Allows you to perform aggregations operations on a ShippingZone.
859
+ * Note, that providing `undefined` is treated as the value not being there.
860
+ * Read more here: https://pris.ly/d/null-undefined
861
+ * @param {ShippingZoneAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
862
+ * @example
863
+ * // Ordered by age ascending
864
+ * // Where email contains prisma.io
865
+ * // Limited to the 10 users
866
+ * const aggregations = await prisma.user.aggregate({
867
+ * _avg: {
868
+ * age: true,
869
+ * },
870
+ * where: {
871
+ * email: {
872
+ * contains: "prisma.io",
873
+ * },
874
+ * },
875
+ * orderBy: {
876
+ * age: "asc",
877
+ * },
878
+ * take: 10,
879
+ * })
880
+ **/
579
881
  aggregate<T extends ShippingZoneAggregateArgs>(args: Prisma.Subset<T, ShippingZoneAggregateArgs>): Prisma.PrismaPromise<GetShippingZoneAggregateType<T>>;
882
+ /**
883
+ * Group by ShippingZone.
884
+ * Note, that providing `undefined` is treated as the value not being there.
885
+ * Read more here: https://pris.ly/d/null-undefined
886
+ * @param {ShippingZoneGroupByArgs} args - Group by arguments.
887
+ * @example
888
+ * // Group by city, order by createdAt, get count
889
+ * const result = await prisma.user.groupBy({
890
+ * by: ['city', 'createdAt'],
891
+ * orderBy: {
892
+ * createdAt: true
893
+ * },
894
+ * _count: {
895
+ * _all: true
896
+ * },
897
+ * })
898
+ *
899
+ **/
580
900
  groupBy<T extends ShippingZoneGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
581
901
  orderBy: ShippingZoneGroupByArgs['orderBy'];
582
902
  } : {
@@ -595,15 +915,44 @@ export interface ShippingZoneDelegate<ExtArgs extends runtime.Types.Extensions.I
595
915
  }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
596
916
  [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
597
917
  }[OrderFields]>(args: Prisma.SubsetIntersection<T, ShippingZoneGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetShippingZoneGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
918
+ /**
919
+ * Fields of the ShippingZone model
920
+ */
598
921
  readonly fields: ShippingZoneFieldRefs;
599
922
  }
923
+ /**
924
+ * The delegate class that acts as a "Promise-like" for ShippingZone.
925
+ * Why is this prefixed with `Prisma__`?
926
+ * Because we want to prevent naming conflicts as mentioned in
927
+ * https://github.com/prisma/prisma-client-js/issues/707
928
+ */
600
929
  export interface Prisma__ShippingZoneClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
601
930
  readonly [Symbol.toStringTag]: "PrismaPromise";
602
931
  shippingMethod<T extends Prisma.ShippingMethodDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ShippingMethodDefaultArgs<ExtArgs>>): Prisma.Prisma__ShippingMethodClient<runtime.Types.Result.GetResult<Prisma.$ShippingMethodPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
932
+ /**
933
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
934
+ * @param onfulfilled The callback to execute when the Promise is resolved.
935
+ * @param onrejected The callback to execute when the Promise is rejected.
936
+ * @returns A Promise for the completion of which ever callback is executed.
937
+ */
603
938
  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>;
939
+ /**
940
+ * Attaches a callback for only the rejection of the Promise.
941
+ * @param onrejected The callback to execute when the Promise is rejected.
942
+ * @returns A Promise for the completion of the callback.
943
+ */
604
944
  catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
945
+ /**
946
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
947
+ * resolved value cannot be modified from the callback.
948
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
949
+ * @returns A Promise for the completion of the callback.
950
+ */
605
951
  finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
606
952
  }
953
+ /**
954
+ * Fields of the ShippingZone model
955
+ */
607
956
  export interface ShippingZoneFieldRefs {
608
957
  readonly id: Prisma.FieldRef<"ShippingZone", 'String'>;
609
958
  readonly title: Prisma.FieldRef<"ShippingZone", 'String'>;
@@ -615,109 +964,403 @@ export interface ShippingZoneFieldRefs {
615
964
  readonly createdAt: Prisma.FieldRef<"ShippingZone", 'DateTime'>;
616
965
  readonly updatedAt: Prisma.FieldRef<"ShippingZone", 'DateTime'>;
617
966
  }
967
+ /**
968
+ * ShippingZone findUnique
969
+ */
618
970
  export type ShippingZoneFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
971
+ /**
972
+ * Select specific fields to fetch from the ShippingZone
973
+ */
619
974
  select?: Prisma.ShippingZoneSelect<ExtArgs> | null;
975
+ /**
976
+ * Omit specific fields from the ShippingZone
977
+ */
620
978
  omit?: Prisma.ShippingZoneOmit<ExtArgs> | null;
979
+ /**
980
+ * Choose, which related nodes to fetch as well
981
+ */
621
982
  include?: Prisma.ShippingZoneInclude<ExtArgs> | null;
983
+ /**
984
+ * Filter, which ShippingZone to fetch.
985
+ */
622
986
  where: Prisma.ShippingZoneWhereUniqueInput;
623
987
  };
988
+ /**
989
+ * ShippingZone findUniqueOrThrow
990
+ */
624
991
  export type ShippingZoneFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
992
+ /**
993
+ * Select specific fields to fetch from the ShippingZone
994
+ */
625
995
  select?: Prisma.ShippingZoneSelect<ExtArgs> | null;
996
+ /**
997
+ * Omit specific fields from the ShippingZone
998
+ */
626
999
  omit?: Prisma.ShippingZoneOmit<ExtArgs> | null;
1000
+ /**
1001
+ * Choose, which related nodes to fetch as well
1002
+ */
627
1003
  include?: Prisma.ShippingZoneInclude<ExtArgs> | null;
1004
+ /**
1005
+ * Filter, which ShippingZone to fetch.
1006
+ */
628
1007
  where: Prisma.ShippingZoneWhereUniqueInput;
629
1008
  };
1009
+ /**
1010
+ * ShippingZone findFirst
1011
+ */
630
1012
  export type ShippingZoneFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1013
+ /**
1014
+ * Select specific fields to fetch from the ShippingZone
1015
+ */
631
1016
  select?: Prisma.ShippingZoneSelect<ExtArgs> | null;
1017
+ /**
1018
+ * Omit specific fields from the ShippingZone
1019
+ */
632
1020
  omit?: Prisma.ShippingZoneOmit<ExtArgs> | null;
1021
+ /**
1022
+ * Choose, which related nodes to fetch as well
1023
+ */
633
1024
  include?: Prisma.ShippingZoneInclude<ExtArgs> | null;
1025
+ /**
1026
+ * Filter, which ShippingZone to fetch.
1027
+ */
634
1028
  where?: Prisma.ShippingZoneWhereInput;
1029
+ /**
1030
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1031
+ *
1032
+ * Determine the order of ShippingZones to fetch.
1033
+ */
635
1034
  orderBy?: Prisma.ShippingZoneOrderByWithRelationInput | Prisma.ShippingZoneOrderByWithRelationInput[];
1035
+ /**
1036
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1037
+ *
1038
+ * Sets the position for searching for ShippingZones.
1039
+ */
636
1040
  cursor?: Prisma.ShippingZoneWhereUniqueInput;
1041
+ /**
1042
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1043
+ *
1044
+ * Take `±n` ShippingZones from the position of the cursor.
1045
+ */
637
1046
  take?: number;
1047
+ /**
1048
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1049
+ *
1050
+ * Skip the first `n` ShippingZones.
1051
+ */
638
1052
  skip?: number;
1053
+ /**
1054
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1055
+ *
1056
+ * Filter by unique combinations of ShippingZones.
1057
+ */
639
1058
  distinct?: Prisma.ShippingZoneScalarFieldEnum | Prisma.ShippingZoneScalarFieldEnum[];
640
1059
  };
1060
+ /**
1061
+ * ShippingZone findFirstOrThrow
1062
+ */
641
1063
  export type ShippingZoneFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1064
+ /**
1065
+ * Select specific fields to fetch from the ShippingZone
1066
+ */
642
1067
  select?: Prisma.ShippingZoneSelect<ExtArgs> | null;
1068
+ /**
1069
+ * Omit specific fields from the ShippingZone
1070
+ */
643
1071
  omit?: Prisma.ShippingZoneOmit<ExtArgs> | null;
1072
+ /**
1073
+ * Choose, which related nodes to fetch as well
1074
+ */
644
1075
  include?: Prisma.ShippingZoneInclude<ExtArgs> | null;
1076
+ /**
1077
+ * Filter, which ShippingZone to fetch.
1078
+ */
645
1079
  where?: Prisma.ShippingZoneWhereInput;
1080
+ /**
1081
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1082
+ *
1083
+ * Determine the order of ShippingZones to fetch.
1084
+ */
646
1085
  orderBy?: Prisma.ShippingZoneOrderByWithRelationInput | Prisma.ShippingZoneOrderByWithRelationInput[];
1086
+ /**
1087
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1088
+ *
1089
+ * Sets the position for searching for ShippingZones.
1090
+ */
647
1091
  cursor?: Prisma.ShippingZoneWhereUniqueInput;
1092
+ /**
1093
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1094
+ *
1095
+ * Take `±n` ShippingZones from the position of the cursor.
1096
+ */
648
1097
  take?: number;
1098
+ /**
1099
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1100
+ *
1101
+ * Skip the first `n` ShippingZones.
1102
+ */
649
1103
  skip?: number;
1104
+ /**
1105
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1106
+ *
1107
+ * Filter by unique combinations of ShippingZones.
1108
+ */
650
1109
  distinct?: Prisma.ShippingZoneScalarFieldEnum | Prisma.ShippingZoneScalarFieldEnum[];
651
1110
  };
1111
+ /**
1112
+ * ShippingZone findMany
1113
+ */
652
1114
  export type ShippingZoneFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1115
+ /**
1116
+ * Select specific fields to fetch from the ShippingZone
1117
+ */
653
1118
  select?: Prisma.ShippingZoneSelect<ExtArgs> | null;
1119
+ /**
1120
+ * Omit specific fields from the ShippingZone
1121
+ */
654
1122
  omit?: Prisma.ShippingZoneOmit<ExtArgs> | null;
1123
+ /**
1124
+ * Choose, which related nodes to fetch as well
1125
+ */
655
1126
  include?: Prisma.ShippingZoneInclude<ExtArgs> | null;
1127
+ /**
1128
+ * Filter, which ShippingZones to fetch.
1129
+ */
656
1130
  where?: Prisma.ShippingZoneWhereInput;
1131
+ /**
1132
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1133
+ *
1134
+ * Determine the order of ShippingZones to fetch.
1135
+ */
657
1136
  orderBy?: Prisma.ShippingZoneOrderByWithRelationInput | Prisma.ShippingZoneOrderByWithRelationInput[];
1137
+ /**
1138
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1139
+ *
1140
+ * Sets the position for listing ShippingZones.
1141
+ */
658
1142
  cursor?: Prisma.ShippingZoneWhereUniqueInput;
1143
+ /**
1144
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1145
+ *
1146
+ * Take `±n` ShippingZones from the position of the cursor.
1147
+ */
659
1148
  take?: number;
1149
+ /**
1150
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1151
+ *
1152
+ * Skip the first `n` ShippingZones.
1153
+ */
660
1154
  skip?: number;
1155
+ /**
1156
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1157
+ *
1158
+ * Filter by unique combinations of ShippingZones.
1159
+ */
661
1160
  distinct?: Prisma.ShippingZoneScalarFieldEnum | Prisma.ShippingZoneScalarFieldEnum[];
662
1161
  };
1162
+ /**
1163
+ * ShippingZone create
1164
+ */
663
1165
  export type ShippingZoneCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1166
+ /**
1167
+ * Select specific fields to fetch from the ShippingZone
1168
+ */
664
1169
  select?: Prisma.ShippingZoneSelect<ExtArgs> | null;
1170
+ /**
1171
+ * Omit specific fields from the ShippingZone
1172
+ */
665
1173
  omit?: Prisma.ShippingZoneOmit<ExtArgs> | null;
1174
+ /**
1175
+ * Choose, which related nodes to fetch as well
1176
+ */
666
1177
  include?: Prisma.ShippingZoneInclude<ExtArgs> | null;
1178
+ /**
1179
+ * The data needed to create a ShippingZone.
1180
+ */
667
1181
  data: Prisma.XOR<Prisma.ShippingZoneCreateInput, Prisma.ShippingZoneUncheckedCreateInput>;
668
1182
  };
1183
+ /**
1184
+ * ShippingZone createMany
1185
+ */
669
1186
  export type ShippingZoneCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1187
+ /**
1188
+ * The data used to create many ShippingZones.
1189
+ */
670
1190
  data: Prisma.ShippingZoneCreateManyInput | Prisma.ShippingZoneCreateManyInput[];
671
1191
  skipDuplicates?: boolean;
672
1192
  };
1193
+ /**
1194
+ * ShippingZone createManyAndReturn
1195
+ */
673
1196
  export type ShippingZoneCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1197
+ /**
1198
+ * Select specific fields to fetch from the ShippingZone
1199
+ */
674
1200
  select?: Prisma.ShippingZoneSelectCreateManyAndReturn<ExtArgs> | null;
1201
+ /**
1202
+ * Omit specific fields from the ShippingZone
1203
+ */
675
1204
  omit?: Prisma.ShippingZoneOmit<ExtArgs> | null;
1205
+ /**
1206
+ * The data used to create many ShippingZones.
1207
+ */
676
1208
  data: Prisma.ShippingZoneCreateManyInput | Prisma.ShippingZoneCreateManyInput[];
677
1209
  skipDuplicates?: boolean;
1210
+ /**
1211
+ * Choose, which related nodes to fetch as well
1212
+ */
678
1213
  include?: Prisma.ShippingZoneIncludeCreateManyAndReturn<ExtArgs> | null;
679
1214
  };
1215
+ /**
1216
+ * ShippingZone update
1217
+ */
680
1218
  export type ShippingZoneUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1219
+ /**
1220
+ * Select specific fields to fetch from the ShippingZone
1221
+ */
681
1222
  select?: Prisma.ShippingZoneSelect<ExtArgs> | null;
1223
+ /**
1224
+ * Omit specific fields from the ShippingZone
1225
+ */
682
1226
  omit?: Prisma.ShippingZoneOmit<ExtArgs> | null;
1227
+ /**
1228
+ * Choose, which related nodes to fetch as well
1229
+ */
683
1230
  include?: Prisma.ShippingZoneInclude<ExtArgs> | null;
1231
+ /**
1232
+ * The data needed to update a ShippingZone.
1233
+ */
684
1234
  data: Prisma.XOR<Prisma.ShippingZoneUpdateInput, Prisma.ShippingZoneUncheckedUpdateInput>;
1235
+ /**
1236
+ * Choose, which ShippingZone to update.
1237
+ */
685
1238
  where: Prisma.ShippingZoneWhereUniqueInput;
686
1239
  };
1240
+ /**
1241
+ * ShippingZone updateMany
1242
+ */
687
1243
  export type ShippingZoneUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1244
+ /**
1245
+ * The data used to update ShippingZones.
1246
+ */
688
1247
  data: Prisma.XOR<Prisma.ShippingZoneUpdateManyMutationInput, Prisma.ShippingZoneUncheckedUpdateManyInput>;
1248
+ /**
1249
+ * Filter which ShippingZones to update
1250
+ */
689
1251
  where?: Prisma.ShippingZoneWhereInput;
1252
+ /**
1253
+ * Limit how many ShippingZones to update.
1254
+ */
690
1255
  limit?: number;
691
1256
  };
1257
+ /**
1258
+ * ShippingZone updateManyAndReturn
1259
+ */
692
1260
  export type ShippingZoneUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1261
+ /**
1262
+ * Select specific fields to fetch from the ShippingZone
1263
+ */
693
1264
  select?: Prisma.ShippingZoneSelectUpdateManyAndReturn<ExtArgs> | null;
1265
+ /**
1266
+ * Omit specific fields from the ShippingZone
1267
+ */
694
1268
  omit?: Prisma.ShippingZoneOmit<ExtArgs> | null;
1269
+ /**
1270
+ * The data used to update ShippingZones.
1271
+ */
695
1272
  data: Prisma.XOR<Prisma.ShippingZoneUpdateManyMutationInput, Prisma.ShippingZoneUncheckedUpdateManyInput>;
1273
+ /**
1274
+ * Filter which ShippingZones to update
1275
+ */
696
1276
  where?: Prisma.ShippingZoneWhereInput;
1277
+ /**
1278
+ * Limit how many ShippingZones to update.
1279
+ */
697
1280
  limit?: number;
1281
+ /**
1282
+ * Choose, which related nodes to fetch as well
1283
+ */
698
1284
  include?: Prisma.ShippingZoneIncludeUpdateManyAndReturn<ExtArgs> | null;
699
1285
  };
1286
+ /**
1287
+ * ShippingZone upsert
1288
+ */
700
1289
  export type ShippingZoneUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1290
+ /**
1291
+ * Select specific fields to fetch from the ShippingZone
1292
+ */
701
1293
  select?: Prisma.ShippingZoneSelect<ExtArgs> | null;
1294
+ /**
1295
+ * Omit specific fields from the ShippingZone
1296
+ */
702
1297
  omit?: Prisma.ShippingZoneOmit<ExtArgs> | null;
1298
+ /**
1299
+ * Choose, which related nodes to fetch as well
1300
+ */
703
1301
  include?: Prisma.ShippingZoneInclude<ExtArgs> | null;
1302
+ /**
1303
+ * The filter to search for the ShippingZone to update in case it exists.
1304
+ */
704
1305
  where: Prisma.ShippingZoneWhereUniqueInput;
1306
+ /**
1307
+ * In case the ShippingZone found by the `where` argument doesn't exist, create a new ShippingZone with this data.
1308
+ */
705
1309
  create: Prisma.XOR<Prisma.ShippingZoneCreateInput, Prisma.ShippingZoneUncheckedCreateInput>;
1310
+ /**
1311
+ * In case the ShippingZone was found with the provided `where` argument, update it with this data.
1312
+ */
706
1313
  update: Prisma.XOR<Prisma.ShippingZoneUpdateInput, Prisma.ShippingZoneUncheckedUpdateInput>;
707
1314
  };
1315
+ /**
1316
+ * ShippingZone delete
1317
+ */
708
1318
  export type ShippingZoneDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1319
+ /**
1320
+ * Select specific fields to fetch from the ShippingZone
1321
+ */
709
1322
  select?: Prisma.ShippingZoneSelect<ExtArgs> | null;
1323
+ /**
1324
+ * Omit specific fields from the ShippingZone
1325
+ */
710
1326
  omit?: Prisma.ShippingZoneOmit<ExtArgs> | null;
1327
+ /**
1328
+ * Choose, which related nodes to fetch as well
1329
+ */
711
1330
  include?: Prisma.ShippingZoneInclude<ExtArgs> | null;
1331
+ /**
1332
+ * Filter which ShippingZone to delete.
1333
+ */
712
1334
  where: Prisma.ShippingZoneWhereUniqueInput;
713
1335
  };
1336
+ /**
1337
+ * ShippingZone deleteMany
1338
+ */
714
1339
  export type ShippingZoneDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1340
+ /**
1341
+ * Filter which ShippingZones to delete
1342
+ */
715
1343
  where?: Prisma.ShippingZoneWhereInput;
1344
+ /**
1345
+ * Limit how many ShippingZones to delete.
1346
+ */
716
1347
  limit?: number;
717
1348
  };
1349
+ /**
1350
+ * ShippingZone without action
1351
+ */
718
1352
  export type ShippingZoneDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1353
+ /**
1354
+ * Select specific fields to fetch from the ShippingZone
1355
+ */
719
1356
  select?: Prisma.ShippingZoneSelect<ExtArgs> | null;
1357
+ /**
1358
+ * Omit specific fields from the ShippingZone
1359
+ */
720
1360
  omit?: Prisma.ShippingZoneOmit<ExtArgs> | null;
1361
+ /**
1362
+ * Choose, which related nodes to fetch as well
1363
+ */
721
1364
  include?: Prisma.ShippingZoneInclude<ExtArgs> | null;
722
1365
  };
723
1366
  export {};