@shophost/rest-api 2.0.29 → 2.0.31

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 (352) hide show
  1. package/package.json +18 -13
  2. package/scripts/minify.mjs +110 -0
  3. package/src/app.js +1 -53
  4. package/src/core/auth/auth.schema.js +1 -41
  5. package/src/core/auth/auth.util.js +1 -44
  6. package/src/core/auth/better-auth.lib.js +1 -100
  7. package/src/core/auth/generate-password-hash.util.d.ts +0 -3
  8. package/src/core/auth/generate-password-hash.util.js +1 -30
  9. package/src/core/auth/headers.schema.js +1 -22
  10. package/src/core/auth/user.schema.js +1 -30
  11. package/src/core/db/__generated__/client/browser.d.ts +0 -128
  12. package/src/core/db/__generated__/client/browser.js +1 -18
  13. package/src/core/db/__generated__/client/client.d.ts +0 -143
  14. package/src/core/db/__generated__/client/client.js +1 -35
  15. package/src/core/db/__generated__/client/commonInputTypes.js +1 -11
  16. package/src/core/db/__generated__/client/enums.js +1 -200
  17. package/src/core/db/__generated__/client/internal/class.d.ts +0 -343
  18. package/src/core/db/__generated__/client/internal/class.js +1 -55
  19. package/src/core/db/__generated__/client/internal/prismaNamespace.d.ts +0 -234
  20. package/src/core/db/__generated__/client/internal/prismaNamespace.js +1 -541
  21. package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.d.ts +0 -15
  22. package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.js +1 -512
  23. package/src/core/db/__generated__/client/models/Account.d.ts +0 -628
  24. package/src/core/db/__generated__/client/models/Account.js +1 -2
  25. package/src/core/db/__generated__/client/models/Address.d.ts +0 -701
  26. package/src/core/db/__generated__/client/models/Address.js +1 -2
  27. package/src/core/db/__generated__/client/models/Campaign.d.ts +0 -638
  28. package/src/core/db/__generated__/client/models/Campaign.js +1 -2
  29. package/src/core/db/__generated__/client/models/ClosingTimes.d.ts +0 -634
  30. package/src/core/db/__generated__/client/models/ClosingTimes.js +1 -2
  31. package/src/core/db/__generated__/client/models/File.d.ts +0 -752
  32. package/src/core/db/__generated__/client/models/File.js +1 -2
  33. package/src/core/db/__generated__/client/models/Invitation.d.ts +0 -628
  34. package/src/core/db/__generated__/client/models/Invitation.js +1 -2
  35. package/src/core/db/__generated__/client/models/LegalEntity.d.ts +0 -652
  36. package/src/core/db/__generated__/client/models/LegalEntity.js +1 -2
  37. package/src/core/db/__generated__/client/models/Manufacturer.d.ts +0 -679
  38. package/src/core/db/__generated__/client/models/Manufacturer.js +1 -2
  39. package/src/core/db/__generated__/client/models/ManufacturerTranslation.d.ts +0 -628
  40. package/src/core/db/__generated__/client/models/ManufacturerTranslation.js +1 -2
  41. package/src/core/db/__generated__/client/models/Member.d.ts +0 -628
  42. package/src/core/db/__generated__/client/models/Member.js +1 -2
  43. package/src/core/db/__generated__/client/models/Modifier.d.ts +0 -662
  44. package/src/core/db/__generated__/client/models/Modifier.js +1 -2
  45. package/src/core/db/__generated__/client/models/ModifierGroup.d.ts +0 -686
  46. package/src/core/db/__generated__/client/models/ModifierGroup.js +1 -2
  47. package/src/core/db/__generated__/client/models/ModifierGroupTranslation.d.ts +0 -628
  48. package/src/core/db/__generated__/client/models/ModifierGroupTranslation.js +1 -2
  49. package/src/core/db/__generated__/client/models/OpeningTimes.d.ts +0 -634
  50. package/src/core/db/__generated__/client/models/OpeningTimes.js +1 -2
  51. package/src/core/db/__generated__/client/models/Order.d.ts +0 -700
  52. package/src/core/db/__generated__/client/models/Order.js +1 -2
  53. package/src/core/db/__generated__/client/models/OrderItem.d.ts +0 -686
  54. package/src/core/db/__generated__/client/models/OrderItem.js +1 -2
  55. package/src/core/db/__generated__/client/models/OrderItemTranslation.d.ts +0 -628
  56. package/src/core/db/__generated__/client/models/OrderItemTranslation.js +1 -2
  57. package/src/core/db/__generated__/client/models/Organization.d.ts +0 -811
  58. package/src/core/db/__generated__/client/models/Organization.js +1 -2
  59. package/src/core/db/__generated__/client/models/OrganizationConfiguration.d.ts +0 -676
  60. package/src/core/db/__generated__/client/models/OrganizationConfiguration.js +1 -2
  61. package/src/core/db/__generated__/client/models/Payment.d.ts +0 -668
  62. package/src/core/db/__generated__/client/models/Payment.js +1 -2
  63. package/src/core/db/__generated__/client/models/PaymentSession.d.ts +0 -638
  64. package/src/core/db/__generated__/client/models/PaymentSession.js +1 -2
  65. package/src/core/db/__generated__/client/models/Product.d.ts +0 -746
  66. package/src/core/db/__generated__/client/models/Product.js +1 -2
  67. package/src/core/db/__generated__/client/models/ProductCategory.d.ts +0 -689
  68. package/src/core/db/__generated__/client/models/ProductCategory.js +1 -2
  69. package/src/core/db/__generated__/client/models/ProductCategoryTranslation.d.ts +0 -628
  70. package/src/core/db/__generated__/client/models/ProductCategoryTranslation.js +1 -2
  71. package/src/core/db/__generated__/client/models/ProductSnapshot.d.ts +0 -664
  72. package/src/core/db/__generated__/client/models/ProductSnapshot.js +1 -2
  73. package/src/core/db/__generated__/client/models/ProductTranslation.d.ts +0 -628
  74. package/src/core/db/__generated__/client/models/ProductTranslation.js +1 -2
  75. package/src/core/db/__generated__/client/models/Reservation.d.ts +0 -650
  76. package/src/core/db/__generated__/client/models/Reservation.js +1 -2
  77. package/src/core/db/__generated__/client/models/Session.d.ts +0 -628
  78. package/src/core/db/__generated__/client/models/Session.js +1 -2
  79. package/src/core/db/__generated__/client/models/ShippingMethod.d.ts +0 -679
  80. package/src/core/db/__generated__/client/models/ShippingMethod.js +1 -2
  81. package/src/core/db/__generated__/client/models/ShippingZone.d.ts +0 -638
  82. package/src/core/db/__generated__/client/models/ShippingZone.js +1 -2
  83. package/src/core/db/__generated__/client/models/User.d.ts +0 -736
  84. package/src/core/db/__generated__/client/models/User.js +1 -2
  85. package/src/core/db/__generated__/client/models/Verification.d.ts +0 -592
  86. package/src/core/db/__generated__/client/models/Verification.js +1 -2
  87. package/src/core/db/__generated__/client/models.js +1 -2
  88. package/src/core/db/index.js +1 -2
  89. package/src/core/exceptions/http-exception.js +1 -9
  90. package/src/core/hono/hono.js +1 -123
  91. package/src/core/lib/prisma.d.ts +9 -1
  92. package/src/core/lib/prisma.js +1 -11
  93. package/src/core/logging/pino.js +1 -5
  94. package/src/core/notifications/email.service.d.ts +0 -15
  95. package/src/core/notifications/email.service.js +1 -116
  96. package/src/core/openapi/openapi.lib.js +1 -26
  97. package/src/core/types/google-maps.types.js +1 -2
  98. package/src/core/utils/currency.util.js +1 -11
  99. package/src/core/utils/env.util.js +1 -8
  100. package/src/core/utils/object.util.d.ts +0 -10
  101. package/src/core/utils/object.util.js +1 -39
  102. package/src/core/utils/translations.util.js +0 -2
  103. package/src/core/utils/zod.util.d.ts +0 -12
  104. package/src/core/utils/zod.util.js +1 -85
  105. package/src/db.js +1 -3
  106. package/src/features/access/access.handler.js +1 -91
  107. package/src/features/access/access.route.js +1 -220
  108. package/src/features/access/access.schema.js +1 -108
  109. package/src/features/access/access.service.js +1 -294
  110. package/src/features/cart/cart.handler.js +1 -17
  111. package/src/features/cart/cart.route.js +1 -32
  112. package/src/features/cart/cart.schema.js +1 -39
  113. package/src/features/cart/cart.service.d.ts +0 -7
  114. package/src/features/cart/cart.service.js +1 -97
  115. package/src/features/cart/cart.util.js +1 -76
  116. package/src/features/file/file.handler.js +1 -23
  117. package/src/features/file/file.route.js +1 -34
  118. package/src/features/file/file.schema.js +1 -77
  119. package/src/features/file/file.service.d.ts +0 -6
  120. package/src/features/file/file.service.js +1 -66
  121. package/src/features/health/health.handler.js +1 -10
  122. package/src/features/health/health.route.js +1 -25
  123. package/src/features/index.js +1 -16
  124. package/src/features/location/location.handler.js +1 -25
  125. package/src/features/location/location.route.js +1 -56
  126. package/src/features/location/location.schema.js +1 -50
  127. package/src/features/location/location.service.d.ts +0 -3
  128. package/src/features/location/location.service.js +1 -141
  129. package/src/features/manufacturer/manufacturer.handler.js +1 -53
  130. package/src/features/manufacturer/manufacturer.route.js +1 -97
  131. package/src/features/manufacturer/manufacturer.schema.js +1 -125
  132. package/src/features/manufacturer/manufacturer.service.d.ts +0 -19
  133. package/src/features/manufacturer/manufacturer.service.js +1 -190
  134. package/src/features/order/emails/order-confirmation.email.js +1 -229
  135. package/src/features/order/emails/order-notification.email.js +1 -229
  136. package/src/features/order/fulfilment.schema.js +1 -3
  137. package/src/features/order/order.handler.js +1 -54
  138. package/src/features/order/order.route.js +1 -111
  139. package/src/features/order/order.schema.js +1 -158
  140. package/src/features/order/order.service.d.ts +0 -15
  141. package/src/features/order/order.service.js +1 -306
  142. package/src/features/order/recipient.schema.js +1 -38
  143. package/src/features/organization/legal-entity.schema.js +1 -83
  144. package/src/features/organization/organization-configuration.schema.js +1 -115
  145. package/src/features/organization/organization.handler.js +1 -48
  146. package/src/features/organization/organization.route.js +1 -84
  147. package/src/features/organization/organization.schema.js +1 -64
  148. package/src/features/organization/organization.service.d.ts +0 -15
  149. package/src/features/organization/organization.service.js +1 -334
  150. package/src/features/payment/payment.handler.js +1 -16
  151. package/src/features/payment/payment.route.js +1 -22
  152. package/src/features/payment/payment.schema.js +1 -46
  153. package/src/features/payment/payment.service.js +1 -100
  154. package/src/features/payment/stripe.service.js +1 -164
  155. package/src/features/product/product-modifier.schema.js +1 -84
  156. package/src/features/product/product.handler.js +1 -87
  157. package/src/features/product/product.route.js +1 -179
  158. package/src/features/product/product.schema.js +1 -143
  159. package/src/features/product/product.service.d.ts +0 -25
  160. package/src/features/product/product.service.js +1 -440
  161. package/src/features/product-category/product-category.handler.js +1 -59
  162. package/src/features/product-category/product-category.route.js +1 -139
  163. package/src/features/product-category/product-category.schema.js +1 -86
  164. package/src/features/product-category/product-category.service.d.ts +0 -22
  165. package/src/features/product-category/product-category.service.js +1 -220
  166. package/src/features/reservation/emails/reservation-cancellation.email.js +1 -82
  167. package/src/features/reservation/emails/reservation-confirmation.email.js +1 -82
  168. package/src/features/reservation/emails/reservation-notification.email.js +1 -93
  169. package/src/features/reservation/reservation.handler.js +1 -65
  170. package/src/features/reservation/reservation.route.js +1 -167
  171. package/src/features/reservation/reservation.schema.js +1 -51
  172. package/src/features/reservation/reservation.service.d.ts +0 -18
  173. package/src/features/reservation/reservation.service.js +1 -231
  174. package/src/features/shipping/shipping.handler.js +1 -32
  175. package/src/features/shipping/shipping.route.js +1 -51
  176. package/src/features/shipping/shipping.service.d.ts +0 -7
  177. package/src/features/shipping/shipping.service.js +1 -96
  178. package/src/features/shipping-method/shipping-method.handler.js +1 -60
  179. package/src/features/shipping-method/shipping-method.route.js +1 -144
  180. package/src/features/shipping-method/shipping-method.schema.js +1 -48
  181. package/src/features/shipping-method/shipping-method.service.d.ts +0 -25
  182. package/src/features/shipping-method/shipping-method.service.js +1 -229
  183. package/src/features/shipping-method/shipping-zone.schema.js +1 -31
  184. package/src/features/webhook/webhook.handler.js +1 -50
  185. package/src/features/webhook/webhook.route.js +1 -33
  186. package/src/index.js +1 -6
  187. package/src/integrations/next.js +1 -82
  188. package/src/schemas/address.schema.d.ts +0 -8
  189. package/src/schemas/address.schema.js +1 -112
  190. package/src/schemas/currency.schema.d.ts +0 -42
  191. package/src/schemas/currency.schema.js +1 -118
  192. package/src/schemas/error.schema.js +1 -12
  193. package/src/schemas/index.js +1 -29
  194. package/src/schemas/locales.schema.js +1 -238
  195. package/src/schemas/number.schema.js +1 -29
  196. package/src/schemas/pagination.schema.js +1 -54
  197. package/src/schemas/params.schema.js +1 -20
  198. package/src/schemas/queries.schema.js +1 -6
  199. package/src/test/global-setup.d.ts +1 -0
  200. package/src/test/global-setup.js +1 -0
  201. package/src/test/integration/api-fixtures.d.ts +4 -16
  202. package/src/test/integration/api-fixtures.js +1 -225
  203. package/src/test/integration/seed.d.ts +81 -0
  204. package/src/test/integration/seed.js +1 -0
  205. package/src/test/integration/test-helpers.d.ts +107 -924
  206. package/src/test/integration/test-helpers.js +1 -1100
  207. package/src/test/setup-test-env.d.ts +1 -1
  208. package/src/test/setup-test-env.js +1 -29
  209. package/src/app.js.map +0 -1
  210. package/src/core/auth/auth.schema.js.map +0 -1
  211. package/src/core/auth/auth.util.js.map +0 -1
  212. package/src/core/auth/better-auth.lib.js.map +0 -1
  213. package/src/core/auth/generate-password-hash.util.js.map +0 -1
  214. package/src/core/auth/headers.schema.js.map +0 -1
  215. package/src/core/auth/user.schema.js.map +0 -1
  216. package/src/core/db/__generated__/client/browser.js.map +0 -1
  217. package/src/core/db/__generated__/client/client.js.map +0 -1
  218. package/src/core/db/__generated__/client/commonInputTypes.js.map +0 -1
  219. package/src/core/db/__generated__/client/enums.js.map +0 -1
  220. package/src/core/db/__generated__/client/internal/class.js.map +0 -1
  221. package/src/core/db/__generated__/client/internal/prismaNamespace.js.map +0 -1
  222. package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.js.map +0 -1
  223. package/src/core/db/__generated__/client/models/Account.js.map +0 -1
  224. package/src/core/db/__generated__/client/models/Address.js.map +0 -1
  225. package/src/core/db/__generated__/client/models/Campaign.js.map +0 -1
  226. package/src/core/db/__generated__/client/models/ClosingTimes.js.map +0 -1
  227. package/src/core/db/__generated__/client/models/File.js.map +0 -1
  228. package/src/core/db/__generated__/client/models/Invitation.js.map +0 -1
  229. package/src/core/db/__generated__/client/models/LegalEntity.js.map +0 -1
  230. package/src/core/db/__generated__/client/models/Manufacturer.js.map +0 -1
  231. package/src/core/db/__generated__/client/models/ManufacturerTranslation.js.map +0 -1
  232. package/src/core/db/__generated__/client/models/Member.js.map +0 -1
  233. package/src/core/db/__generated__/client/models/Modifier.js.map +0 -1
  234. package/src/core/db/__generated__/client/models/ModifierGroup.js.map +0 -1
  235. package/src/core/db/__generated__/client/models/ModifierGroupTranslation.js.map +0 -1
  236. package/src/core/db/__generated__/client/models/OpeningTimes.js.map +0 -1
  237. package/src/core/db/__generated__/client/models/Order.js.map +0 -1
  238. package/src/core/db/__generated__/client/models/OrderItem.js.map +0 -1
  239. package/src/core/db/__generated__/client/models/OrderItemTranslation.js.map +0 -1
  240. package/src/core/db/__generated__/client/models/Organization.js.map +0 -1
  241. package/src/core/db/__generated__/client/models/OrganizationConfiguration.js.map +0 -1
  242. package/src/core/db/__generated__/client/models/Payment.js.map +0 -1
  243. package/src/core/db/__generated__/client/models/PaymentSession.js.map +0 -1
  244. package/src/core/db/__generated__/client/models/Product.js.map +0 -1
  245. package/src/core/db/__generated__/client/models/ProductCategory.js.map +0 -1
  246. package/src/core/db/__generated__/client/models/ProductCategoryTranslation.js.map +0 -1
  247. package/src/core/db/__generated__/client/models/ProductSnapshot.js.map +0 -1
  248. package/src/core/db/__generated__/client/models/ProductTranslation.js.map +0 -1
  249. package/src/core/db/__generated__/client/models/Reservation.js.map +0 -1
  250. package/src/core/db/__generated__/client/models/Session.js.map +0 -1
  251. package/src/core/db/__generated__/client/models/ShippingMethod.js.map +0 -1
  252. package/src/core/db/__generated__/client/models/ShippingZone.js.map +0 -1
  253. package/src/core/db/__generated__/client/models/User.js.map +0 -1
  254. package/src/core/db/__generated__/client/models/Verification.js.map +0 -1
  255. package/src/core/db/__generated__/client/models.js.map +0 -1
  256. package/src/core/db/index.js.map +0 -1
  257. package/src/core/exceptions/http-exception.js.map +0 -1
  258. package/src/core/hono/hono.js.map +0 -1
  259. package/src/core/lib/prisma.js.map +0 -1
  260. package/src/core/logging/pino.js.map +0 -1
  261. package/src/core/notifications/email.service.js.map +0 -1
  262. package/src/core/openapi/openapi.lib.js.map +0 -1
  263. package/src/core/types/google-maps.types.js.map +0 -1
  264. package/src/core/utils/currency.util.js.map +0 -1
  265. package/src/core/utils/env.util.js.map +0 -1
  266. package/src/core/utils/object.util.js.map +0 -1
  267. package/src/core/utils/translations.util.js.map +0 -1
  268. package/src/core/utils/zod.util.js.map +0 -1
  269. package/src/db.js.map +0 -1
  270. package/src/features/access/access.handler.js.map +0 -1
  271. package/src/features/access/access.route.js.map +0 -1
  272. package/src/features/access/access.schema.js.map +0 -1
  273. package/src/features/access/access.service.js.map +0 -1
  274. package/src/features/cart/cart.handler.js.map +0 -1
  275. package/src/features/cart/cart.route.js.map +0 -1
  276. package/src/features/cart/cart.schema.js.map +0 -1
  277. package/src/features/cart/cart.service.js.map +0 -1
  278. package/src/features/cart/cart.util.js.map +0 -1
  279. package/src/features/file/file.handler.js.map +0 -1
  280. package/src/features/file/file.route.js.map +0 -1
  281. package/src/features/file/file.schema.js.map +0 -1
  282. package/src/features/file/file.service.js.map +0 -1
  283. package/src/features/health/health.handler.js.map +0 -1
  284. package/src/features/health/health.route.js.map +0 -1
  285. package/src/features/index.js.map +0 -1
  286. package/src/features/location/location.handler.js.map +0 -1
  287. package/src/features/location/location.route.js.map +0 -1
  288. package/src/features/location/location.schema.js.map +0 -1
  289. package/src/features/location/location.service.js.map +0 -1
  290. package/src/features/manufacturer/manufacturer.handler.js.map +0 -1
  291. package/src/features/manufacturer/manufacturer.route.js.map +0 -1
  292. package/src/features/manufacturer/manufacturer.schema.js.map +0 -1
  293. package/src/features/manufacturer/manufacturer.service.js.map +0 -1
  294. package/src/features/order/emails/order-confirmation.email.js.map +0 -1
  295. package/src/features/order/emails/order-notification.email.js.map +0 -1
  296. package/src/features/order/fulfilment.schema.js.map +0 -1
  297. package/src/features/order/order.handler.js.map +0 -1
  298. package/src/features/order/order.route.js.map +0 -1
  299. package/src/features/order/order.schema.js.map +0 -1
  300. package/src/features/order/order.service.js.map +0 -1
  301. package/src/features/order/recipient.schema.js.map +0 -1
  302. package/src/features/organization/legal-entity.schema.js.map +0 -1
  303. package/src/features/organization/organization-configuration.schema.js.map +0 -1
  304. package/src/features/organization/organization.handler.js.map +0 -1
  305. package/src/features/organization/organization.route.js.map +0 -1
  306. package/src/features/organization/organization.schema.js.map +0 -1
  307. package/src/features/organization/organization.service.js.map +0 -1
  308. package/src/features/payment/payment.handler.js.map +0 -1
  309. package/src/features/payment/payment.route.js.map +0 -1
  310. package/src/features/payment/payment.schema.js.map +0 -1
  311. package/src/features/payment/payment.service.js.map +0 -1
  312. package/src/features/payment/stripe.service.js.map +0 -1
  313. package/src/features/product/product-modifier.schema.js.map +0 -1
  314. package/src/features/product/product.handler.js.map +0 -1
  315. package/src/features/product/product.route.js.map +0 -1
  316. package/src/features/product/product.schema.js.map +0 -1
  317. package/src/features/product/product.service.js.map +0 -1
  318. package/src/features/product-category/product-category.handler.js.map +0 -1
  319. package/src/features/product-category/product-category.route.js.map +0 -1
  320. package/src/features/product-category/product-category.schema.js.map +0 -1
  321. package/src/features/product-category/product-category.service.js.map +0 -1
  322. package/src/features/reservation/emails/reservation-cancellation.email.js.map +0 -1
  323. package/src/features/reservation/emails/reservation-confirmation.email.js.map +0 -1
  324. package/src/features/reservation/emails/reservation-notification.email.js.map +0 -1
  325. package/src/features/reservation/reservation.handler.js.map +0 -1
  326. package/src/features/reservation/reservation.route.js.map +0 -1
  327. package/src/features/reservation/reservation.schema.js.map +0 -1
  328. package/src/features/reservation/reservation.service.js.map +0 -1
  329. package/src/features/shipping/shipping.handler.js.map +0 -1
  330. package/src/features/shipping/shipping.route.js.map +0 -1
  331. package/src/features/shipping/shipping.service.js.map +0 -1
  332. package/src/features/shipping-method/shipping-method.handler.js.map +0 -1
  333. package/src/features/shipping-method/shipping-method.route.js.map +0 -1
  334. package/src/features/shipping-method/shipping-method.schema.js.map +0 -1
  335. package/src/features/shipping-method/shipping-method.service.js.map +0 -1
  336. package/src/features/shipping-method/shipping-zone.schema.js.map +0 -1
  337. package/src/features/webhook/webhook.handler.js.map +0 -1
  338. package/src/features/webhook/webhook.route.js.map +0 -1
  339. package/src/index.js.map +0 -1
  340. package/src/integrations/next.js.map +0 -1
  341. package/src/schemas/address.schema.js.map +0 -1
  342. package/src/schemas/currency.schema.js.map +0 -1
  343. package/src/schemas/error.schema.js.map +0 -1
  344. package/src/schemas/index.js.map +0 -1
  345. package/src/schemas/locales.schema.js.map +0 -1
  346. package/src/schemas/number.schema.js.map +0 -1
  347. package/src/schemas/pagination.schema.js.map +0 -1
  348. package/src/schemas/params.schema.js.map +0 -1
  349. package/src/schemas/queries.schema.js.map +0 -1
  350. package/src/test/integration/api-fixtures.js.map +0 -1
  351. package/src/test/integration/test-helpers.js.map +0 -1
  352. package/src/test/setup-test-env.js.map +0 -1
@@ -1,9 +1,5 @@
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
- */
7
3
  export type ShippingZoneModel = runtime.Types.Result.DefaultSelection<Prisma.$ShippingZonePayload>;
8
4
  export type AggregateShippingZone = {
9
5
  _count: ShippingZoneCountAggregateOutputType | null;
@@ -101,63 +97,15 @@ export type ShippingZoneCountAggregateInputType = {
101
97
  _all?: true;
102
98
  };
103
99
  export type ShippingZoneAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
104
- /**
105
- * Filter which ShippingZone to aggregate.
106
- */
107
100
  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
- */
113
101
  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
- */
119
102
  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
- */
125
103
  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
- */
131
104
  skip?: number;
132
- /**
133
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
134
- *
135
- * Count returned ShippingZones
136
- **/
137
105
  _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
- **/
143
106
  _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
- **/
149
107
  _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
- **/
155
108
  _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
- **/
161
109
  _max?: ShippingZoneMaxAggregateInputType;
162
110
  };
163
111
  export type GetShippingZoneAggregateType<T extends ShippingZoneAggregateArgs> = {
@@ -613,290 +561,22 @@ export interface ShippingZoneDelegate<ExtArgs extends runtime.Types.Extensions.I
613
561
  name: 'ShippingZone';
614
562
  };
615
563
  };
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
- */
627
564
  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
- */
640
565
  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
- */
654
566
  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
- */
669
567
  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
- */
686
568
  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
- */
699
569
  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
- */
712
570
  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
- */
735
571
  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
- */
748
572
  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
- */
764
573
  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
- */
777
574
  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
- */
795
575
  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
- */
824
576
  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
- */
842
577
  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
- **/
856
578
  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
- **/
881
579
  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
- **/
900
580
  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 ? {
901
581
  orderBy: ShippingZoneGroupByArgs['orderBy'];
902
582
  } : {
@@ -915,44 +595,15 @@ export interface ShippingZoneDelegate<ExtArgs extends runtime.Types.Extensions.I
915
595
  }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
916
596
  [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
917
597
  }[OrderFields]>(args: Prisma.SubsetIntersection<T, ShippingZoneGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetShippingZoneGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
918
- /**
919
- * Fields of the ShippingZone model
920
- */
921
598
  readonly fields: ShippingZoneFieldRefs;
922
599
  }
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
- */
929
600
  export interface Prisma__ShippingZoneClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
930
601
  readonly [Symbol.toStringTag]: "PrismaPromise";
931
602
  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
- */
938
603
  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
- */
944
604
  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
- */
951
605
  finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
952
606
  }
953
- /**
954
- * Fields of the ShippingZone model
955
- */
956
607
  export interface ShippingZoneFieldRefs {
957
608
  readonly id: Prisma.FieldRef<"ShippingZone", 'String'>;
958
609
  readonly title: Prisma.FieldRef<"ShippingZone", 'String'>;
@@ -964,398 +615,109 @@ export interface ShippingZoneFieldRefs {
964
615
  readonly createdAt: Prisma.FieldRef<"ShippingZone", 'DateTime'>;
965
616
  readonly updatedAt: Prisma.FieldRef<"ShippingZone", 'DateTime'>;
966
617
  }
967
- /**
968
- * ShippingZone findUnique
969
- */
970
618
  export type ShippingZoneFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
971
- /**
972
- * Select specific fields to fetch from the ShippingZone
973
- */
974
619
  select?: Prisma.ShippingZoneSelect<ExtArgs> | null;
975
- /**
976
- * Omit specific fields from the ShippingZone
977
- */
978
620
  omit?: Prisma.ShippingZoneOmit<ExtArgs> | null;
979
- /**
980
- * Choose, which related nodes to fetch as well
981
- */
982
621
  include?: Prisma.ShippingZoneInclude<ExtArgs> | null;
983
- /**
984
- * Filter, which ShippingZone to fetch.
985
- */
986
622
  where: Prisma.ShippingZoneWhereUniqueInput;
987
623
  };
988
- /**
989
- * ShippingZone findUniqueOrThrow
990
- */
991
624
  export type ShippingZoneFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
992
- /**
993
- * Select specific fields to fetch from the ShippingZone
994
- */
995
625
  select?: Prisma.ShippingZoneSelect<ExtArgs> | null;
996
- /**
997
- * Omit specific fields from the ShippingZone
998
- */
999
626
  omit?: Prisma.ShippingZoneOmit<ExtArgs> | null;
1000
- /**
1001
- * Choose, which related nodes to fetch as well
1002
- */
1003
627
  include?: Prisma.ShippingZoneInclude<ExtArgs> | null;
1004
- /**
1005
- * Filter, which ShippingZone to fetch.
1006
- */
1007
628
  where: Prisma.ShippingZoneWhereUniqueInput;
1008
629
  };
1009
- /**
1010
- * ShippingZone findFirst
1011
- */
1012
630
  export type ShippingZoneFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1013
- /**
1014
- * Select specific fields to fetch from the ShippingZone
1015
- */
1016
631
  select?: Prisma.ShippingZoneSelect<ExtArgs> | null;
1017
- /**
1018
- * Omit specific fields from the ShippingZone
1019
- */
1020
632
  omit?: Prisma.ShippingZoneOmit<ExtArgs> | null;
1021
- /**
1022
- * Choose, which related nodes to fetch as well
1023
- */
1024
633
  include?: Prisma.ShippingZoneInclude<ExtArgs> | null;
1025
- /**
1026
- * Filter, which ShippingZone to fetch.
1027
- */
1028
634
  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
- */
1034
635
  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
- */
1040
636
  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
- */
1046
637
  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
- */
1052
638
  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
- */
1058
639
  distinct?: Prisma.ShippingZoneScalarFieldEnum | Prisma.ShippingZoneScalarFieldEnum[];
1059
640
  };
1060
- /**
1061
- * ShippingZone findFirstOrThrow
1062
- */
1063
641
  export type ShippingZoneFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1064
- /**
1065
- * Select specific fields to fetch from the ShippingZone
1066
- */
1067
642
  select?: Prisma.ShippingZoneSelect<ExtArgs> | null;
1068
- /**
1069
- * Omit specific fields from the ShippingZone
1070
- */
1071
643
  omit?: Prisma.ShippingZoneOmit<ExtArgs> | null;
1072
- /**
1073
- * Choose, which related nodes to fetch as well
1074
- */
1075
644
  include?: Prisma.ShippingZoneInclude<ExtArgs> | null;
1076
- /**
1077
- * Filter, which ShippingZone to fetch.
1078
- */
1079
645
  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
- */
1085
646
  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
- */
1091
647
  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
- */
1097
648
  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
- */
1103
649
  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
- */
1109
650
  distinct?: Prisma.ShippingZoneScalarFieldEnum | Prisma.ShippingZoneScalarFieldEnum[];
1110
651
  };
1111
- /**
1112
- * ShippingZone findMany
1113
- */
1114
652
  export type ShippingZoneFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1115
- /**
1116
- * Select specific fields to fetch from the ShippingZone
1117
- */
1118
653
  select?: Prisma.ShippingZoneSelect<ExtArgs> | null;
1119
- /**
1120
- * Omit specific fields from the ShippingZone
1121
- */
1122
654
  omit?: Prisma.ShippingZoneOmit<ExtArgs> | null;
1123
- /**
1124
- * Choose, which related nodes to fetch as well
1125
- */
1126
655
  include?: Prisma.ShippingZoneInclude<ExtArgs> | null;
1127
- /**
1128
- * Filter, which ShippingZones to fetch.
1129
- */
1130
656
  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
- */
1136
657
  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
- */
1142
658
  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
- */
1148
659
  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
- */
1154
660
  skip?: number;
1155
661
  distinct?: Prisma.ShippingZoneScalarFieldEnum | Prisma.ShippingZoneScalarFieldEnum[];
1156
662
  };
1157
- /**
1158
- * ShippingZone create
1159
- */
1160
663
  export type ShippingZoneCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1161
- /**
1162
- * Select specific fields to fetch from the ShippingZone
1163
- */
1164
664
  select?: Prisma.ShippingZoneSelect<ExtArgs> | null;
1165
- /**
1166
- * Omit specific fields from the ShippingZone
1167
- */
1168
665
  omit?: Prisma.ShippingZoneOmit<ExtArgs> | null;
1169
- /**
1170
- * Choose, which related nodes to fetch as well
1171
- */
1172
666
  include?: Prisma.ShippingZoneInclude<ExtArgs> | null;
1173
- /**
1174
- * The data needed to create a ShippingZone.
1175
- */
1176
667
  data: Prisma.XOR<Prisma.ShippingZoneCreateInput, Prisma.ShippingZoneUncheckedCreateInput>;
1177
668
  };
1178
- /**
1179
- * ShippingZone createMany
1180
- */
1181
669
  export type ShippingZoneCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1182
- /**
1183
- * The data used to create many ShippingZones.
1184
- */
1185
670
  data: Prisma.ShippingZoneCreateManyInput | Prisma.ShippingZoneCreateManyInput[];
1186
671
  skipDuplicates?: boolean;
1187
672
  };
1188
- /**
1189
- * ShippingZone createManyAndReturn
1190
- */
1191
673
  export type ShippingZoneCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1192
- /**
1193
- * Select specific fields to fetch from the ShippingZone
1194
- */
1195
674
  select?: Prisma.ShippingZoneSelectCreateManyAndReturn<ExtArgs> | null;
1196
- /**
1197
- * Omit specific fields from the ShippingZone
1198
- */
1199
675
  omit?: Prisma.ShippingZoneOmit<ExtArgs> | null;
1200
- /**
1201
- * The data used to create many ShippingZones.
1202
- */
1203
676
  data: Prisma.ShippingZoneCreateManyInput | Prisma.ShippingZoneCreateManyInput[];
1204
677
  skipDuplicates?: boolean;
1205
- /**
1206
- * Choose, which related nodes to fetch as well
1207
- */
1208
678
  include?: Prisma.ShippingZoneIncludeCreateManyAndReturn<ExtArgs> | null;
1209
679
  };
1210
- /**
1211
- * ShippingZone update
1212
- */
1213
680
  export type ShippingZoneUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1214
- /**
1215
- * Select specific fields to fetch from the ShippingZone
1216
- */
1217
681
  select?: Prisma.ShippingZoneSelect<ExtArgs> | null;
1218
- /**
1219
- * Omit specific fields from the ShippingZone
1220
- */
1221
682
  omit?: Prisma.ShippingZoneOmit<ExtArgs> | null;
1222
- /**
1223
- * Choose, which related nodes to fetch as well
1224
- */
1225
683
  include?: Prisma.ShippingZoneInclude<ExtArgs> | null;
1226
- /**
1227
- * The data needed to update a ShippingZone.
1228
- */
1229
684
  data: Prisma.XOR<Prisma.ShippingZoneUpdateInput, Prisma.ShippingZoneUncheckedUpdateInput>;
1230
- /**
1231
- * Choose, which ShippingZone to update.
1232
- */
1233
685
  where: Prisma.ShippingZoneWhereUniqueInput;
1234
686
  };
1235
- /**
1236
- * ShippingZone updateMany
1237
- */
1238
687
  export type ShippingZoneUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1239
- /**
1240
- * The data used to update ShippingZones.
1241
- */
1242
688
  data: Prisma.XOR<Prisma.ShippingZoneUpdateManyMutationInput, Prisma.ShippingZoneUncheckedUpdateManyInput>;
1243
- /**
1244
- * Filter which ShippingZones to update
1245
- */
1246
689
  where?: Prisma.ShippingZoneWhereInput;
1247
- /**
1248
- * Limit how many ShippingZones to update.
1249
- */
1250
690
  limit?: number;
1251
691
  };
1252
- /**
1253
- * ShippingZone updateManyAndReturn
1254
- */
1255
692
  export type ShippingZoneUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1256
- /**
1257
- * Select specific fields to fetch from the ShippingZone
1258
- */
1259
693
  select?: Prisma.ShippingZoneSelectUpdateManyAndReturn<ExtArgs> | null;
1260
- /**
1261
- * Omit specific fields from the ShippingZone
1262
- */
1263
694
  omit?: Prisma.ShippingZoneOmit<ExtArgs> | null;
1264
- /**
1265
- * The data used to update ShippingZones.
1266
- */
1267
695
  data: Prisma.XOR<Prisma.ShippingZoneUpdateManyMutationInput, Prisma.ShippingZoneUncheckedUpdateManyInput>;
1268
- /**
1269
- * Filter which ShippingZones to update
1270
- */
1271
696
  where?: Prisma.ShippingZoneWhereInput;
1272
- /**
1273
- * Limit how many ShippingZones to update.
1274
- */
1275
697
  limit?: number;
1276
- /**
1277
- * Choose, which related nodes to fetch as well
1278
- */
1279
698
  include?: Prisma.ShippingZoneIncludeUpdateManyAndReturn<ExtArgs> | null;
1280
699
  };
1281
- /**
1282
- * ShippingZone upsert
1283
- */
1284
700
  export type ShippingZoneUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1285
- /**
1286
- * Select specific fields to fetch from the ShippingZone
1287
- */
1288
701
  select?: Prisma.ShippingZoneSelect<ExtArgs> | null;
1289
- /**
1290
- * Omit specific fields from the ShippingZone
1291
- */
1292
702
  omit?: Prisma.ShippingZoneOmit<ExtArgs> | null;
1293
- /**
1294
- * Choose, which related nodes to fetch as well
1295
- */
1296
703
  include?: Prisma.ShippingZoneInclude<ExtArgs> | null;
1297
- /**
1298
- * The filter to search for the ShippingZone to update in case it exists.
1299
- */
1300
704
  where: Prisma.ShippingZoneWhereUniqueInput;
1301
- /**
1302
- * In case the ShippingZone found by the `where` argument doesn't exist, create a new ShippingZone with this data.
1303
- */
1304
705
  create: Prisma.XOR<Prisma.ShippingZoneCreateInput, Prisma.ShippingZoneUncheckedCreateInput>;
1305
- /**
1306
- * In case the ShippingZone was found with the provided `where` argument, update it with this data.
1307
- */
1308
706
  update: Prisma.XOR<Prisma.ShippingZoneUpdateInput, Prisma.ShippingZoneUncheckedUpdateInput>;
1309
707
  };
1310
- /**
1311
- * ShippingZone delete
1312
- */
1313
708
  export type ShippingZoneDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1314
- /**
1315
- * Select specific fields to fetch from the ShippingZone
1316
- */
1317
709
  select?: Prisma.ShippingZoneSelect<ExtArgs> | null;
1318
- /**
1319
- * Omit specific fields from the ShippingZone
1320
- */
1321
710
  omit?: Prisma.ShippingZoneOmit<ExtArgs> | null;
1322
- /**
1323
- * Choose, which related nodes to fetch as well
1324
- */
1325
711
  include?: Prisma.ShippingZoneInclude<ExtArgs> | null;
1326
- /**
1327
- * Filter which ShippingZone to delete.
1328
- */
1329
712
  where: Prisma.ShippingZoneWhereUniqueInput;
1330
713
  };
1331
- /**
1332
- * ShippingZone deleteMany
1333
- */
1334
714
  export type ShippingZoneDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1335
- /**
1336
- * Filter which ShippingZones to delete
1337
- */
1338
715
  where?: Prisma.ShippingZoneWhereInput;
1339
- /**
1340
- * Limit how many ShippingZones to delete.
1341
- */
1342
716
  limit?: number;
1343
717
  };
1344
- /**
1345
- * ShippingZone without action
1346
- */
1347
718
  export type ShippingZoneDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1348
- /**
1349
- * Select specific fields to fetch from the ShippingZone
1350
- */
1351
719
  select?: Prisma.ShippingZoneSelect<ExtArgs> | null;
1352
- /**
1353
- * Omit specific fields from the ShippingZone
1354
- */
1355
720
  omit?: Prisma.ShippingZoneOmit<ExtArgs> | null;
1356
- /**
1357
- * Choose, which related nodes to fetch as well
1358
- */
1359
721
  include?: Prisma.ShippingZoneInclude<ExtArgs> | null;
1360
722
  };
1361
723
  export {};