@shophost/rest-api 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (430) hide show
  1. package/LICENSE +17 -0
  2. package/README.md +69 -0
  3. package/global.d.ts +1 -0
  4. package/package.json +53 -0
  5. package/schemas.d.ts +1 -0
  6. package/schemas.js +2 -0
  7. package/schemas.ts +1 -0
  8. package/src/contract.d.ts +3853 -0
  9. package/src/contract.js +6 -0
  10. package/src/contract.js.map +1 -0
  11. package/src/contracts/cart.contract.d.ts +536 -0
  12. package/src/contracts/cart.contract.js +29 -0
  13. package/src/contracts/cart.contract.js.map +1 -0
  14. package/src/contracts/customers.contract.d.ts +903 -0
  15. package/src/contracts/customers.contract.js +119 -0
  16. package/src/contracts/customers.contract.js.map +1 -0
  17. package/src/contracts/files.contract.d.ts +152 -0
  18. package/src/contracts/files.contract.js +29 -0
  19. package/src/contracts/files.contract.js.map +1 -0
  20. package/src/contracts/health.contract.d.ts +38 -0
  21. package/src/contracts/health.contract.js +25 -0
  22. package/src/contracts/health.contract.js.map +1 -0
  23. package/src/contracts/index.d.ts +15466 -0
  24. package/src/contracts/index.js +32 -0
  25. package/src/contracts/index.js.map +1 -0
  26. package/src/contracts/location.contract.d.ts +127 -0
  27. package/src/contracts/location.contract.js +40 -0
  28. package/src/contracts/location.contract.js.map +1 -0
  29. package/src/contracts/manufacturers.contract.d.ts +931 -0
  30. package/src/contracts/manufacturers.contract.js +85 -0
  31. package/src/contracts/manufacturers.contract.js.map +1 -0
  32. package/src/contracts/orders.contract.d.ts +3910 -0
  33. package/src/contracts/orders.contract.js +92 -0
  34. package/src/contracts/orders.contract.js.map +1 -0
  35. package/src/contracts/organizations.contract.d.ts +2234 -0
  36. package/src/contracts/organizations.contract.js +71 -0
  37. package/src/contracts/organizations.contract.js.map +1 -0
  38. package/src/contracts/payment.contract.d.ts +64 -0
  39. package/src/contracts/payment.contract.js +20 -0
  40. package/src/contracts/payment.contract.js.map +1 -0
  41. package/src/contracts/product-categories.contract.d.ts +1172 -0
  42. package/src/contracts/product-categories.contract.js +103 -0
  43. package/src/contracts/product-categories.contract.js.map +1 -0
  44. package/src/contracts/products.contract.d.ts +3976 -0
  45. package/src/contracts/products.contract.js +128 -0
  46. package/src/contracts/products.contract.js.map +1 -0
  47. package/src/contracts/reservation.contract.d.ts +675 -0
  48. package/src/contracts/reservation.contract.js +141 -0
  49. package/src/contracts/reservation.contract.js.map +1 -0
  50. package/src/contracts/shipping-methods.contract.d.ts +1276 -0
  51. package/src/contracts/shipping-methods.contract.js +118 -0
  52. package/src/contracts/shipping-methods.contract.js.map +1 -0
  53. package/src/contracts/shipping.contract.d.ts +319 -0
  54. package/src/contracts/shipping.contract.js +42 -0
  55. package/src/contracts/shipping.contract.js.map +1 -0
  56. package/src/contracts/webhook.contract.d.ts +66 -0
  57. package/src/contracts/webhook.contract.js +28 -0
  58. package/src/contracts/webhook.contract.js.map +1 -0
  59. package/src/db/__generated__/client/client.d.ts +385 -0
  60. package/src/db/__generated__/client/client.js +44 -0
  61. package/src/db/__generated__/client/client.js.map +1 -0
  62. package/src/db/__generated__/client/commonInputTypes.d.ts +816 -0
  63. package/src/db/__generated__/client/commonInputTypes.js +10 -0
  64. package/src/db/__generated__/client/commonInputTypes.js.map +1 -0
  65. package/src/db/__generated__/client/enums.d.ts +204 -0
  66. package/src/db/__generated__/client/enums.js +199 -0
  67. package/src/db/__generated__/client/enums.js.map +1 -0
  68. package/src/db/__generated__/client/index.d.ts +1 -0
  69. package/src/db/__generated__/client/index.js +5 -0
  70. package/src/db/__generated__/client/index.js.map +1 -0
  71. package/src/db/__generated__/client/internal/class.d.ts +414 -0
  72. package/src/db/__generated__/client/internal/class.js +76 -0
  73. package/src/db/__generated__/client/internal/class.js.map +1 -0
  74. package/src/db/__generated__/client/internal/prismaNamespace.d.ts +3474 -0
  75. package/src/db/__generated__/client/internal/prismaNamespace.js +543 -0
  76. package/src/db/__generated__/client/internal/prismaNamespace.js.map +1 -0
  77. package/src/db/__generated__/client/models/Account.d.ts +1459 -0
  78. package/src/db/__generated__/client/models/Account.js +2 -0
  79. package/src/db/__generated__/client/models/Account.js.map +1 -0
  80. package/src/db/__generated__/client/models/Address.d.ts +2337 -0
  81. package/src/db/__generated__/client/models/Address.js +2 -0
  82. package/src/db/__generated__/client/models/Address.js.map +1 -0
  83. package/src/db/__generated__/client/models/Campaign.d.ts +1469 -0
  84. package/src/db/__generated__/client/models/Campaign.js +2 -0
  85. package/src/db/__generated__/client/models/Campaign.js.map +1 -0
  86. package/src/db/__generated__/client/models/ClosingTimes.d.ts +1227 -0
  87. package/src/db/__generated__/client/models/ClosingTimes.js +2 -0
  88. package/src/db/__generated__/client/models/ClosingTimes.js.map +1 -0
  89. package/src/db/__generated__/client/models/File.d.ts +2670 -0
  90. package/src/db/__generated__/client/models/File.js +2 -0
  91. package/src/db/__generated__/client/models/File.js.map +1 -0
  92. package/src/db/__generated__/client/models/Invitation.d.ts +1363 -0
  93. package/src/db/__generated__/client/models/Invitation.js +2 -0
  94. package/src/db/__generated__/client/models/Invitation.js.map +1 -0
  95. package/src/db/__generated__/client/models/LegalEntity.d.ts +1572 -0
  96. package/src/db/__generated__/client/models/LegalEntity.js +2 -0
  97. package/src/db/__generated__/client/models/LegalEntity.js.map +1 -0
  98. package/src/db/__generated__/client/models/Manufacturer.d.ts +1746 -0
  99. package/src/db/__generated__/client/models/Manufacturer.js +2 -0
  100. package/src/db/__generated__/client/models/Manufacturer.js.map +1 -0
  101. package/src/db/__generated__/client/models/ManufacturerTranslation.d.ts +1286 -0
  102. package/src/db/__generated__/client/models/ManufacturerTranslation.js +2 -0
  103. package/src/db/__generated__/client/models/ManufacturerTranslation.js.map +1 -0
  104. package/src/db/__generated__/client/models/Member.d.ts +1281 -0
  105. package/src/db/__generated__/client/models/Member.js +2 -0
  106. package/src/db/__generated__/client/models/Member.js.map +1 -0
  107. package/src/db/__generated__/client/models/Modifier.d.ts +1404 -0
  108. package/src/db/__generated__/client/models/Modifier.js +2 -0
  109. package/src/db/__generated__/client/models/Modifier.js.map +1 -0
  110. package/src/db/__generated__/client/models/ModifierGroup.d.ts +1469 -0
  111. package/src/db/__generated__/client/models/ModifierGroup.js +2 -0
  112. package/src/db/__generated__/client/models/ModifierGroup.js.map +1 -0
  113. package/src/db/__generated__/client/models/ModifierGroupTranslation.d.ts +1181 -0
  114. package/src/db/__generated__/client/models/ModifierGroupTranslation.js +2 -0
  115. package/src/db/__generated__/client/models/ModifierGroupTranslation.js.map +1 -0
  116. package/src/db/__generated__/client/models/OpeningTimes.d.ts +1227 -0
  117. package/src/db/__generated__/client/models/OpeningTimes.js +2 -0
  118. package/src/db/__generated__/client/models/OpeningTimes.js.map +1 -0
  119. package/src/db/__generated__/client/models/Order.d.ts +2820 -0
  120. package/src/db/__generated__/client/models/Order.js +2 -0
  121. package/src/db/__generated__/client/models/Order.js.map +1 -0
  122. package/src/db/__generated__/client/models/OrderItem.d.ts +1755 -0
  123. package/src/db/__generated__/client/models/OrderItem.js +2 -0
  124. package/src/db/__generated__/client/models/OrderItem.js.map +1 -0
  125. package/src/db/__generated__/client/models/OrderItemTranslation.d.ts +1181 -0
  126. package/src/db/__generated__/client/models/OrderItemTranslation.js +2 -0
  127. package/src/db/__generated__/client/models/OrderItemTranslation.js.map +1 -0
  128. package/src/db/__generated__/client/models/Organization.d.ts +3996 -0
  129. package/src/db/__generated__/client/models/Organization.js +2 -0
  130. package/src/db/__generated__/client/models/Organization.js.map +1 -0
  131. package/src/db/__generated__/client/models/OrganizationConfiguration.d.ts +1954 -0
  132. package/src/db/__generated__/client/models/OrganizationConfiguration.js +2 -0
  133. package/src/db/__generated__/client/models/OrganizationConfiguration.js.map +1 -0
  134. package/src/db/__generated__/client/models/Payment.d.ts +1538 -0
  135. package/src/db/__generated__/client/models/Payment.js +2 -0
  136. package/src/db/__generated__/client/models/Payment.js.map +1 -0
  137. package/src/db/__generated__/client/models/PaymentSession.d.ts +1384 -0
  138. package/src/db/__generated__/client/models/PaymentSession.js +2 -0
  139. package/src/db/__generated__/client/models/PaymentSession.js.map +1 -0
  140. package/src/db/__generated__/client/models/Product.d.ts +3136 -0
  141. package/src/db/__generated__/client/models/Product.js +2 -0
  142. package/src/db/__generated__/client/models/Product.js.map +1 -0
  143. package/src/db/__generated__/client/models/ProductCategory.d.ts +1964 -0
  144. package/src/db/__generated__/client/models/ProductCategory.js +2 -0
  145. package/src/db/__generated__/client/models/ProductCategory.js.map +1 -0
  146. package/src/db/__generated__/client/models/ProductCategoryTranslation.d.ts +1321 -0
  147. package/src/db/__generated__/client/models/ProductCategoryTranslation.js +2 -0
  148. package/src/db/__generated__/client/models/ProductCategoryTranslation.js.map +1 -0
  149. package/src/db/__generated__/client/models/ProductSnapshot.d.ts +1389 -0
  150. package/src/db/__generated__/client/models/ProductSnapshot.js +2 -0
  151. package/src/db/__generated__/client/models/ProductSnapshot.js.map +1 -0
  152. package/src/db/__generated__/client/models/ProductTranslation.d.ts +1321 -0
  153. package/src/db/__generated__/client/models/ProductTranslation.js +2 -0
  154. package/src/db/__generated__/client/models/ProductTranslation.js.map +1 -0
  155. package/src/db/__generated__/client/models/Reservation.d.ts +1665 -0
  156. package/src/db/__generated__/client/models/Reservation.js +2 -0
  157. package/src/db/__generated__/client/models/Reservation.js.map +1 -0
  158. package/src/db/__generated__/client/models/Session.d.ts +1316 -0
  159. package/src/db/__generated__/client/models/Session.js +2 -0
  160. package/src/db/__generated__/client/models/Session.js.map +1 -0
  161. package/src/db/__generated__/client/models/ShippingMethod.d.ts +1934 -0
  162. package/src/db/__generated__/client/models/ShippingMethod.js +2 -0
  163. package/src/db/__generated__/client/models/ShippingMethod.js.map +1 -0
  164. package/src/db/__generated__/client/models/ShippingZone.d.ts +1366 -0
  165. package/src/db/__generated__/client/models/ShippingZone.js +2 -0
  166. package/src/db/__generated__/client/models/ShippingZone.js.map +1 -0
  167. package/src/db/__generated__/client/models/User.d.ts +2201 -0
  168. package/src/db/__generated__/client/models/User.js +2 -0
  169. package/src/db/__generated__/client/models/User.js.map +1 -0
  170. package/src/db/__generated__/client/models/Verification.d.ts +1026 -0
  171. package/src/db/__generated__/client/models/Verification.js +2 -0
  172. package/src/db/__generated__/client/models/Verification.js.map +1 -0
  173. package/src/db/__generated__/client/models.d.ts +38 -0
  174. package/src/db/__generated__/client/models.js +2 -0
  175. package/src/db/__generated__/client/models.js.map +1 -0
  176. package/src/db/index.d.ts +1 -0
  177. package/src/db/index.js +2 -0
  178. package/src/db/index.js.map +1 -0
  179. package/src/emails/order-confirmation-email.d.ts +10 -0
  180. package/src/emails/order-confirmation-email.js +229 -0
  181. package/src/emails/order-confirmation-email.js.map +1 -0
  182. package/src/emails/order-notification-email.d.ts +10 -0
  183. package/src/emails/order-notification-email.js +229 -0
  184. package/src/emails/order-notification-email.js.map +1 -0
  185. package/src/emails/reservation-cancellation-email.d.ts +10 -0
  186. package/src/emails/reservation-cancellation-email.js +82 -0
  187. package/src/emails/reservation-cancellation-email.js.map +1 -0
  188. package/src/emails/reservation-confirmation-email.d.ts +10 -0
  189. package/src/emails/reservation-confirmation-email.js +82 -0
  190. package/src/emails/reservation-confirmation-email.js.map +1 -0
  191. package/src/emails/reservation-notification-email.d.ts +11 -0
  192. package/src/emails/reservation-notification-email.js +93 -0
  193. package/src/emails/reservation-notification-email.js.map +1 -0
  194. package/src/exceptions/http-exception.d.ts +6 -0
  195. package/src/exceptions/http-exception.js +9 -0
  196. package/src/exceptions/http-exception.js.map +1 -0
  197. package/src/handlers/webhook.handler.d.ts +8 -0
  198. package/src/handlers/webhook.handler.js +36 -0
  199. package/src/handlers/webhook.handler.js.map +1 -0
  200. package/src/index.d.ts +5 -0
  201. package/src/index.js +7 -0
  202. package/src/index.js.map +1 -0
  203. package/src/integrations/next.d.ts +25 -0
  204. package/src/integrations/next.js +69 -0
  205. package/src/integrations/next.js.map +1 -0
  206. package/src/lib/better-auth.lib.d.ts +10215 -0
  207. package/src/lib/better-auth.lib.js +96 -0
  208. package/src/lib/better-auth.lib.js.map +1 -0
  209. package/src/lib/openapi.lib.d.ts +2 -0
  210. package/src/lib/openapi.lib.js +25 -0
  211. package/src/lib/openapi.lib.js.map +1 -0
  212. package/src/lib/pino.d.ts +1 -0
  213. package/src/lib/pino.js +5 -0
  214. package/src/lib/pino.js.map +1 -0
  215. package/src/lib/prisma.d.ts +819 -0
  216. package/src/lib/prisma.js +14 -0
  217. package/src/lib/prisma.js.map +1 -0
  218. package/src/lib/stripe.d.ts +2 -0
  219. package/src/lib/stripe.js +8 -0
  220. package/src/lib/stripe.js.map +1 -0
  221. package/src/lib/ts-rest.d.ts +2 -0
  222. package/src/lib/ts-rest.js +3 -0
  223. package/src/lib/ts-rest.js.map +1 -0
  224. package/src/routers/cart.router.d.ts +536 -0
  225. package/src/routers/cart.router.js +20 -0
  226. package/src/routers/cart.router.js.map +1 -0
  227. package/src/routers/file.router.d.ts +153 -0
  228. package/src/routers/file.router.js +28 -0
  229. package/src/routers/file.router.js.map +1 -0
  230. package/src/routers/health.router.d.ts +37 -0
  231. package/src/routers/health.router.js +17 -0
  232. package/src/routers/health.router.js.map +1 -0
  233. package/src/routers/index.d.ts +11 -0
  234. package/src/routers/index.js +12 -0
  235. package/src/routers/index.js.map +1 -0
  236. package/src/routers/manufacturer.router.d.ts +931 -0
  237. package/src/routers/manufacturer.router.js +58 -0
  238. package/src/routers/manufacturer.router.js.map +1 -0
  239. package/src/routers/order.router.d.ts +3911 -0
  240. package/src/routers/order.router.js +60 -0
  241. package/src/routers/order.router.js.map +1 -0
  242. package/src/routers/organization.router.d.ts +2234 -0
  243. package/src/routers/organization.router.js +55 -0
  244. package/src/routers/organization.router.js.map +1 -0
  245. package/src/routers/payment.router.d.ts +65 -0
  246. package/src/routers/payment.router.js +22 -0
  247. package/src/routers/payment.router.js.map +1 -0
  248. package/src/routers/places.router.d.ts +132 -0
  249. package/src/routers/places.router.js +31 -0
  250. package/src/routers/places.router.js.map +1 -0
  251. package/src/routers/product-category.router.d.ts +1172 -0
  252. package/src/routers/product-category.router.js +66 -0
  253. package/src/routers/product-category.router.js.map +1 -0
  254. package/src/routers/product.router.d.ts +3976 -0
  255. package/src/routers/product.router.js +86 -0
  256. package/src/routers/product.router.js.map +1 -0
  257. package/src/routers/reservation.router.d.ts +675 -0
  258. package/src/routers/reservation.router.js +71 -0
  259. package/src/routers/reservation.router.js.map +1 -0
  260. package/src/routers/shipping-method.router.d.ts +1276 -0
  261. package/src/routers/shipping-method.router.js +67 -0
  262. package/src/routers/shipping-method.router.js.map +1 -0
  263. package/src/routers/shipping.router.d.ts +320 -0
  264. package/src/routers/shipping.router.js +38 -0
  265. package/src/routers/shipping.router.js.map +1 -0
  266. package/src/routers/webhook.router.d.ts +65 -0
  267. package/src/routers/webhook.router.js +19 -0
  268. package/src/routers/webhook.router.js.map +1 -0
  269. package/src/schemas/address.schema.d.ts +235 -0
  270. package/src/schemas/address.schema.js +114 -0
  271. package/src/schemas/address.schema.js.map +1 -0
  272. package/src/schemas/auth.schema.d.ts +29 -0
  273. package/src/schemas/auth.schema.js +39 -0
  274. package/src/schemas/auth.schema.js.map +1 -0
  275. package/src/schemas/cart.schema.d.ts +446 -0
  276. package/src/schemas/cart.schema.js +41 -0
  277. package/src/schemas/cart.schema.js.map +1 -0
  278. package/src/schemas/currency.schema.d.ts +49 -0
  279. package/src/schemas/currency.schema.js +120 -0
  280. package/src/schemas/currency.schema.js.map +1 -0
  281. package/src/schemas/error.schema.d.ts +11 -0
  282. package/src/schemas/error.schema.js +14 -0
  283. package/src/schemas/error.schema.js.map +1 -0
  284. package/src/schemas/file.schema.d.ts +115 -0
  285. package/src/schemas/file.schema.js +79 -0
  286. package/src/schemas/file.schema.js.map +1 -0
  287. package/src/schemas/fulfilment.schema.d.ts +2 -0
  288. package/src/schemas/fulfilment.schema.js +5 -0
  289. package/src/schemas/fulfilment.schema.js.map +1 -0
  290. package/src/schemas/headers.schema.d.ts +11 -0
  291. package/src/schemas/headers.schema.js +15 -0
  292. package/src/schemas/headers.schema.js.map +1 -0
  293. package/src/schemas/index.d.ts +27 -0
  294. package/src/schemas/index.js +28 -0
  295. package/src/schemas/index.js.map +1 -0
  296. package/src/schemas/legal-entity.schema.d.ts +212 -0
  297. package/src/schemas/legal-entity.schema.js +85 -0
  298. package/src/schemas/legal-entity.schema.js.map +1 -0
  299. package/src/schemas/locales.schema.d.ts +8 -0
  300. package/src/schemas/locales.schema.js +240 -0
  301. package/src/schemas/locales.schema.js.map +1 -0
  302. package/src/schemas/location.schema.d.ts +41 -0
  303. package/src/schemas/location.schema.js +50 -0
  304. package/src/schemas/location.schema.js.map +1 -0
  305. package/src/schemas/manufacturer.schema.d.ts +287 -0
  306. package/src/schemas/manufacturer.schema.js +127 -0
  307. package/src/schemas/manufacturer.schema.js.map +1 -0
  308. package/src/schemas/number.schema.d.ts +3 -0
  309. package/src/schemas/number.schema.js +29 -0
  310. package/src/schemas/number.schema.js.map +1 -0
  311. package/src/schemas/order.schema.d.ts +1046 -0
  312. package/src/schemas/order.schema.js +160 -0
  313. package/src/schemas/order.schema.js.map +1 -0
  314. package/src/schemas/organization-configuration.schema.d.ts +287 -0
  315. package/src/schemas/organization-configuration.schema.js +117 -0
  316. package/src/schemas/organization-configuration.schema.js.map +1 -0
  317. package/src/schemas/organization.schema.d.ts +894 -0
  318. package/src/schemas/organization.schema.js +66 -0
  319. package/src/schemas/organization.schema.js.map +1 -0
  320. package/src/schemas/pagination.schema.d.ts +51 -0
  321. package/src/schemas/pagination.schema.js +54 -0
  322. package/src/schemas/pagination.schema.js.map +1 -0
  323. package/src/schemas/params.schema.d.ts +19 -0
  324. package/src/schemas/params.schema.js +22 -0
  325. package/src/schemas/params.schema.js.map +1 -0
  326. package/src/schemas/payment.schema.d.ts +54 -0
  327. package/src/schemas/payment.schema.js +48 -0
  328. package/src/schemas/payment.schema.js.map +1 -0
  329. package/src/schemas/product-category.schema.d.ts +352 -0
  330. package/src/schemas/product-category.schema.js +87 -0
  331. package/src/schemas/product-category.schema.js.map +1 -0
  332. package/src/schemas/product-modifier.schema.d.ts +280 -0
  333. package/src/schemas/product-modifier.schema.js +86 -0
  334. package/src/schemas/product-modifier.schema.js.map +1 -0
  335. package/src/schemas/product.schema.d.ts +1405 -0
  336. package/src/schemas/product.schema.js +136 -0
  337. package/src/schemas/product.schema.js.map +1 -0
  338. package/src/schemas/queries.schema.d.ts +8 -0
  339. package/src/schemas/queries.schema.js +8 -0
  340. package/src/schemas/queries.schema.js.map +1 -0
  341. package/src/schemas/recipient.schema.d.ts +260 -0
  342. package/src/schemas/recipient.schema.js +40 -0
  343. package/src/schemas/recipient.schema.js.map +1 -0
  344. package/src/schemas/reservation.schema.d.ts +61 -0
  345. package/src/schemas/reservation.schema.js +53 -0
  346. package/src/schemas/reservation.schema.js.map +1 -0
  347. package/src/schemas/shipping-method.schema.d.ts +335 -0
  348. package/src/schemas/shipping-method.schema.js +50 -0
  349. package/src/schemas/shipping-method.schema.js.map +1 -0
  350. package/src/schemas/shipping-zone.schema.d.ts +24 -0
  351. package/src/schemas/shipping-zone.schema.js +33 -0
  352. package/src/schemas/shipping-zone.schema.js.map +1 -0
  353. package/src/schemas/user.schema.d.ts +24 -0
  354. package/src/schemas/user.schema.js +32 -0
  355. package/src/schemas/user.schema.js.map +1 -0
  356. package/src/services/cart.service.d.ts +60 -0
  357. package/src/services/cart.service.js +97 -0
  358. package/src/services/cart.service.js.map +1 -0
  359. package/src/services/email.service.d.ts +32 -0
  360. package/src/services/email.service.js +116 -0
  361. package/src/services/email.service.js.map +1 -0
  362. package/src/services/file.service.d.ts +28 -0
  363. package/src/services/file.service.js +66 -0
  364. package/src/services/file.service.js.map +1 -0
  365. package/src/services/location.service.d.ts +28 -0
  366. package/src/services/location.service.js +109 -0
  367. package/src/services/location.service.js.map +1 -0
  368. package/src/services/manufacturer.service.d.ts +146 -0
  369. package/src/services/manufacturer.service.js +190 -0
  370. package/src/services/manufacturer.service.js.map +1 -0
  371. package/src/services/order.service.d.ts +444 -0
  372. package/src/services/order.service.js +306 -0
  373. package/src/services/order.service.js.map +1 -0
  374. package/src/services/organization.service.d.ts +301 -0
  375. package/src/services/organization.service.js +312 -0
  376. package/src/services/organization.service.js.map +1 -0
  377. package/src/services/payment.service.d.ts +35 -0
  378. package/src/services/payment.service.js +100 -0
  379. package/src/services/payment.service.js.map +1 -0
  380. package/src/services/product-category.service.d.ts +180 -0
  381. package/src/services/product-category.service.js +220 -0
  382. package/src/services/product-category.service.js.map +1 -0
  383. package/src/services/product.service.d.ts +493 -0
  384. package/src/services/product.service.js +437 -0
  385. package/src/services/product.service.js.map +1 -0
  386. package/src/services/reservation.service.d.ts +104 -0
  387. package/src/services/reservation.service.js +231 -0
  388. package/src/services/reservation.service.js.map +1 -0
  389. package/src/services/shipping-method.service.d.ts +206 -0
  390. package/src/services/shipping-method.service.js +229 -0
  391. package/src/services/shipping-method.service.js.map +1 -0
  392. package/src/services/shipping.service.d.ts +57 -0
  393. package/src/services/shipping.service.js +96 -0
  394. package/src/services/shipping.service.js.map +1 -0
  395. package/src/services/stripe.service.d.ts +26 -0
  396. package/src/services/stripe.service.js +164 -0
  397. package/src/services/stripe.service.js.map +1 -0
  398. package/src/types/google-maps.types.d.ts +53 -0
  399. package/src/types/google-maps.types.js +2 -0
  400. package/src/types/google-maps.types.js.map +1 -0
  401. package/src/utils/auth.util.d.ts +3 -0
  402. package/src/utils/auth.util.js +36 -0
  403. package/src/utils/auth.util.js.map +1 -0
  404. package/src/utils/cart.util.d.ts +27 -0
  405. package/src/utils/cart.util.js +76 -0
  406. package/src/utils/cart.util.js.map +1 -0
  407. package/src/utils/client.util.d.ts +3853 -0
  408. package/src/utils/client.util.js +6 -0
  409. package/src/utils/client.util.js.map +1 -0
  410. package/src/utils/currency.util.d.ts +1 -0
  411. package/src/utils/currency.util.js +11 -0
  412. package/src/utils/currency.util.js.map +1 -0
  413. package/src/utils/env.util.d.ts +2 -0
  414. package/src/utils/env.util.js +8 -0
  415. package/src/utils/env.util.js.map +1 -0
  416. package/src/utils/error-handler.util.d.ts +3 -0
  417. package/src/utils/error-handler.util.js +30 -0
  418. package/src/utils/error-handler.util.js.map +1 -0
  419. package/src/utils/generate-password-hash.util.d.ts +7 -0
  420. package/src/utils/generate-password-hash.util.js +30 -0
  421. package/src/utils/generate-password-hash.util.js.map +1 -0
  422. package/src/utils/object.util.d.ts +11 -0
  423. package/src/utils/object.util.js +39 -0
  424. package/src/utils/object.util.js.map +1 -0
  425. package/src/utils/translations.util.d.ts +0 -0
  426. package/src/utils/translations.util.js +2 -0
  427. package/src/utils/translations.util.js.map +1 -0
  428. package/src/utils/zod.util.d.ts +15 -0
  429. package/src/utils/zod.util.js +85 -0
  430. package/src/utils/zod.util.js.map +1 -0
@@ -0,0 +1,3853 @@
1
+ import { initClient as initTsRestClient } from "@ts-rest/core";
2
+ export declare const initClient: (options: Parameters<typeof initTsRestClient>[1]) => {
3
+ health: {
4
+ ping: (args?: {
5
+ cache?: RequestCache | undefined;
6
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
7
+ extraHeaders?: ({} & Record<string, string | undefined>) | undefined;
8
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
9
+ headers?: {} | undefined;
10
+ } | undefined) => Promise<{
11
+ status: 200;
12
+ body: {
13
+ ok: boolean;
14
+ };
15
+ headers: Headers;
16
+ } | {
17
+ status: 500;
18
+ body: {
19
+ message: string;
20
+ status: number;
21
+ };
22
+ headers: Headers;
23
+ } | {
24
+ status: 404 | 400 | 401 | 201 | 204 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
25
+ body: unknown;
26
+ headers: Headers;
27
+ }>;
28
+ };
29
+ organization: {
30
+ getOrganizations: (args?: {
31
+ cache?: RequestCache | undefined;
32
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
33
+ extraHeaders?: ({} & Record<string, string | undefined>) | undefined;
34
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
35
+ headers?: {} | undefined;
36
+ query?: {
37
+ search?: string | undefined;
38
+ locale?: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu" | undefined;
39
+ page?: number | undefined;
40
+ limit?: number | undefined;
41
+ published?: boolean | undefined;
42
+ } | undefined;
43
+ } | undefined) => Promise<{
44
+ status: 200;
45
+ body: {
46
+ meta: {
47
+ isFirstPage: boolean;
48
+ isLastPage: boolean;
49
+ currentPage: number;
50
+ previousPage: number | null;
51
+ nextPage: number | null;
52
+ pageCount: number;
53
+ totalCount: number;
54
+ };
55
+ list: {
56
+ id: string;
57
+ createdAt: Date;
58
+ name: string;
59
+ phone: string;
60
+ legalEntityId: string | null;
61
+ address: {
62
+ id: string;
63
+ addressLineOne: string;
64
+ city: string;
65
+ country: string;
66
+ placeId: string;
67
+ firstname?: string | null | undefined;
68
+ lastname?: string | null | undefined;
69
+ phone?: string | null | undefined;
70
+ doorNumber?: string | null | undefined;
71
+ addressLineTwo?: string | null | undefined;
72
+ zipCode?: string | undefined;
73
+ deliveryInstructions?: string | null | undefined;
74
+ };
75
+ configuration: {
76
+ id: string;
77
+ defaultLocale: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu";
78
+ createdAt: Date;
79
+ countriesShipping: string[];
80
+ enableHostCheckout: boolean;
81
+ enableHostTracking: boolean;
82
+ isAcceptingOrders: boolean;
83
+ isOpen: boolean;
84
+ supportedLocales: ("id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu")[];
85
+ defaultCurrency: "USD" | "EUR" | "GBP" | "JPY" | "AUD" | "CAD" | "CHF" | "CNY" | "SEK" | "NZD" | "MXN" | "SGD" | "HKD" | "NOK" | "KRW" | "TRY" | "RUB" | "INR" | "BRL" | "ZAR" | "DKK" | "PLN" | "THB" | "IDR" | "HUF" | "CZK" | "ILS" | "PHP" | "AED" | "COP" | "SAR" | "MYR" | "RON";
86
+ hostname?: string | undefined;
87
+ stripeAccountId?: string | undefined;
88
+ openingTimes?: {
89
+ monday: string | null;
90
+ tuesday: string | null;
91
+ wednesday: string | null;
92
+ thursday: string | null;
93
+ friday: string | null;
94
+ saturday: string | null;
95
+ sunday: string | null;
96
+ } | undefined;
97
+ closingTimes?: {
98
+ monday: string | null;
99
+ tuesday: string | null;
100
+ wednesday: string | null;
101
+ thursday: string | null;
102
+ friday: string | null;
103
+ saturday: string | null;
104
+ sunday: string | null;
105
+ } | undefined;
106
+ facebookProfile?: string | null | undefined;
107
+ instagramProfile?: string | null | undefined;
108
+ xProfile?: string | null | undefined;
109
+ };
110
+ email?: string | undefined;
111
+ logo?: string | null | undefined;
112
+ logoFile?: {
113
+ id: string;
114
+ mimeType: string;
115
+ size: number;
116
+ filename: string;
117
+ url: string;
118
+ } | null | undefined;
119
+ }[];
120
+ };
121
+ headers: Headers;
122
+ } | {
123
+ status: 404 | 400 | 401 | 201 | 204 | 500 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
124
+ body: unknown;
125
+ headers: Headers;
126
+ }>;
127
+ getOrganization: (args: {
128
+ params: {
129
+ organizationId: string;
130
+ };
131
+ cache?: RequestCache | undefined;
132
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
133
+ extraHeaders?: ({} & Record<string, string | undefined>) | undefined;
134
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
135
+ headers?: {} | undefined;
136
+ }) => Promise<{
137
+ status: 404;
138
+ body: {
139
+ message: string;
140
+ status: number;
141
+ };
142
+ headers: Headers;
143
+ } | {
144
+ status: 200;
145
+ body: {
146
+ id: string;
147
+ createdAt: Date;
148
+ name: string;
149
+ phone: string;
150
+ legalEntityId: string | null;
151
+ address: {
152
+ id: string;
153
+ addressLineOne: string;
154
+ city: string;
155
+ country: string;
156
+ placeId: string;
157
+ firstname?: string | null | undefined;
158
+ lastname?: string | null | undefined;
159
+ phone?: string | null | undefined;
160
+ doorNumber?: string | null | undefined;
161
+ addressLineTwo?: string | null | undefined;
162
+ zipCode?: string | undefined;
163
+ deliveryInstructions?: string | null | undefined;
164
+ };
165
+ configuration: {
166
+ id: string;
167
+ defaultLocale: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu";
168
+ createdAt: Date;
169
+ countriesShipping: string[];
170
+ enableHostCheckout: boolean;
171
+ enableHostTracking: boolean;
172
+ isAcceptingOrders: boolean;
173
+ isOpen: boolean;
174
+ supportedLocales: ("id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu")[];
175
+ defaultCurrency: "USD" | "EUR" | "GBP" | "JPY" | "AUD" | "CAD" | "CHF" | "CNY" | "SEK" | "NZD" | "MXN" | "SGD" | "HKD" | "NOK" | "KRW" | "TRY" | "RUB" | "INR" | "BRL" | "ZAR" | "DKK" | "PLN" | "THB" | "IDR" | "HUF" | "CZK" | "ILS" | "PHP" | "AED" | "COP" | "SAR" | "MYR" | "RON";
176
+ hostname?: string | undefined;
177
+ stripeAccountId?: string | undefined;
178
+ openingTimes?: {
179
+ monday: string | null;
180
+ tuesday: string | null;
181
+ wednesday: string | null;
182
+ thursday: string | null;
183
+ friday: string | null;
184
+ saturday: string | null;
185
+ sunday: string | null;
186
+ } | undefined;
187
+ closingTimes?: {
188
+ monday: string | null;
189
+ tuesday: string | null;
190
+ wednesday: string | null;
191
+ thursday: string | null;
192
+ friday: string | null;
193
+ saturday: string | null;
194
+ sunday: string | null;
195
+ } | undefined;
196
+ facebookProfile?: string | null | undefined;
197
+ instagramProfile?: string | null | undefined;
198
+ xProfile?: string | null | undefined;
199
+ };
200
+ email?: string | undefined;
201
+ logo?: string | null | undefined;
202
+ logoFile?: {
203
+ id: string;
204
+ mimeType: string;
205
+ size: number;
206
+ filename: string;
207
+ url: string;
208
+ } | null | undefined;
209
+ };
210
+ headers: Headers;
211
+ } | {
212
+ status: 400 | 401 | 201 | 204 | 500 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
213
+ body: unknown;
214
+ headers: Headers;
215
+ }>;
216
+ createOrganization: (args: {
217
+ body: {
218
+ name: string;
219
+ phone: string;
220
+ address: {
221
+ addressLineOne: string;
222
+ city: string;
223
+ country: string;
224
+ placeId: string;
225
+ doorNumber?: string | null | undefined;
226
+ addressLineTwo?: string | null | undefined;
227
+ zipCode?: string | undefined;
228
+ };
229
+ email?: string | undefined;
230
+ logoFile?: {
231
+ id: string;
232
+ mimeType: string;
233
+ size: number;
234
+ filename: string;
235
+ url: string;
236
+ } | null | undefined;
237
+ logoId?: string | null | undefined;
238
+ };
239
+ cache?: RequestCache | undefined;
240
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
241
+ extraHeaders?: ({} & Record<string, string | undefined>) | undefined;
242
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
243
+ headers?: {} | undefined;
244
+ }) => Promise<{
245
+ status: 400;
246
+ body: {
247
+ message: string;
248
+ status: number;
249
+ };
250
+ headers: Headers;
251
+ } | {
252
+ status: 201;
253
+ body: {
254
+ id: string;
255
+ createdAt: Date;
256
+ name: string;
257
+ phone: string;
258
+ legalEntityId: string | null;
259
+ address: {
260
+ id: string;
261
+ addressLineOne: string;
262
+ city: string;
263
+ country: string;
264
+ placeId: string;
265
+ firstname?: string | null | undefined;
266
+ lastname?: string | null | undefined;
267
+ phone?: string | null | undefined;
268
+ doorNumber?: string | null | undefined;
269
+ addressLineTwo?: string | null | undefined;
270
+ zipCode?: string | undefined;
271
+ deliveryInstructions?: string | null | undefined;
272
+ };
273
+ configuration: {
274
+ id: string;
275
+ defaultLocale: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu";
276
+ createdAt: Date;
277
+ countriesShipping: string[];
278
+ enableHostCheckout: boolean;
279
+ enableHostTracking: boolean;
280
+ isAcceptingOrders: boolean;
281
+ isOpen: boolean;
282
+ supportedLocales: ("id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu")[];
283
+ defaultCurrency: "USD" | "EUR" | "GBP" | "JPY" | "AUD" | "CAD" | "CHF" | "CNY" | "SEK" | "NZD" | "MXN" | "SGD" | "HKD" | "NOK" | "KRW" | "TRY" | "RUB" | "INR" | "BRL" | "ZAR" | "DKK" | "PLN" | "THB" | "IDR" | "HUF" | "CZK" | "ILS" | "PHP" | "AED" | "COP" | "SAR" | "MYR" | "RON";
284
+ hostname?: string | undefined;
285
+ stripeAccountId?: string | undefined;
286
+ openingTimes?: {
287
+ monday: string | null;
288
+ tuesday: string | null;
289
+ wednesday: string | null;
290
+ thursday: string | null;
291
+ friday: string | null;
292
+ saturday: string | null;
293
+ sunday: string | null;
294
+ } | undefined;
295
+ closingTimes?: {
296
+ monday: string | null;
297
+ tuesday: string | null;
298
+ wednesday: string | null;
299
+ thursday: string | null;
300
+ friday: string | null;
301
+ saturday: string | null;
302
+ sunday: string | null;
303
+ } | undefined;
304
+ facebookProfile?: string | null | undefined;
305
+ instagramProfile?: string | null | undefined;
306
+ xProfile?: string | null | undefined;
307
+ };
308
+ email?: string | undefined;
309
+ logo?: string | null | undefined;
310
+ logoFile?: {
311
+ id: string;
312
+ mimeType: string;
313
+ size: number;
314
+ filename: string;
315
+ url: string;
316
+ } | null | undefined;
317
+ };
318
+ headers: Headers;
319
+ } | {
320
+ status: 404 | 200 | 401 | 204 | 500 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
321
+ body: unknown;
322
+ headers: Headers;
323
+ }>;
324
+ updateOrganization: (args: {
325
+ params: {
326
+ organizationId: string;
327
+ };
328
+ cache?: RequestCache | undefined;
329
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
330
+ extraHeaders?: ({} & Record<string, string | undefined>) | undefined;
331
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
332
+ headers?: {} | undefined;
333
+ body?: {
334
+ email?: string | undefined;
335
+ name?: string | undefined;
336
+ phone?: string | undefined;
337
+ address?: {
338
+ addressLineOne?: string | undefined;
339
+ doorNumber?: string | null | undefined;
340
+ addressLineTwo?: string | null | undefined;
341
+ zipCode?: string | undefined;
342
+ city?: string | undefined;
343
+ country?: string | undefined;
344
+ placeId?: string | undefined;
345
+ } | undefined;
346
+ configuration?: {
347
+ defaultLocale?: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu" | undefined;
348
+ hostname?: string | undefined;
349
+ countriesShipping?: string[] | undefined;
350
+ stripeAccountId?: string | undefined;
351
+ enableHostCheckout?: boolean | undefined;
352
+ enableHostTracking?: boolean | undefined;
353
+ isAcceptingOrders?: boolean | undefined;
354
+ supportedLocales?: ("id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu")[] | undefined;
355
+ openingTimes?: {
356
+ monday: string | null;
357
+ tuesday: string | null;
358
+ wednesday: string | null;
359
+ thursday: string | null;
360
+ friday: string | null;
361
+ saturday: string | null;
362
+ sunday: string | null;
363
+ } | undefined;
364
+ closingTimes?: {
365
+ monday: string | null;
366
+ tuesday: string | null;
367
+ wednesday: string | null;
368
+ thursday: string | null;
369
+ friday: string | null;
370
+ saturday: string | null;
371
+ sunday: string | null;
372
+ } | undefined;
373
+ facebookProfile?: string | null | undefined;
374
+ instagramProfile?: string | null | undefined;
375
+ xProfile?: string | null | undefined;
376
+ defaultCurrency?: "USD" | "EUR" | "GBP" | "JPY" | "AUD" | "CAD" | "CHF" | "CNY" | "SEK" | "NZD" | "MXN" | "SGD" | "HKD" | "NOK" | "KRW" | "TRY" | "RUB" | "INR" | "BRL" | "ZAR" | "DKK" | "PLN" | "THB" | "IDR" | "HUF" | "CZK" | "ILS" | "PHP" | "AED" | "COP" | "SAR" | "MYR" | "RON" | undefined;
377
+ } | undefined;
378
+ logoFile?: {
379
+ id: string;
380
+ mimeType: string;
381
+ size: number;
382
+ filename: string;
383
+ url: string;
384
+ } | null | undefined;
385
+ logoId?: string | null | undefined;
386
+ } | undefined;
387
+ }) => Promise<{
388
+ status: 404;
389
+ body: {
390
+ message: string;
391
+ status: number;
392
+ };
393
+ headers: Headers;
394
+ } | {
395
+ status: 200;
396
+ body: {
397
+ id: string;
398
+ createdAt: Date;
399
+ name: string;
400
+ phone: string;
401
+ legalEntityId: string | null;
402
+ address: {
403
+ id: string;
404
+ addressLineOne: string;
405
+ city: string;
406
+ country: string;
407
+ placeId: string;
408
+ firstname?: string | null | undefined;
409
+ lastname?: string | null | undefined;
410
+ phone?: string | null | undefined;
411
+ doorNumber?: string | null | undefined;
412
+ addressLineTwo?: string | null | undefined;
413
+ zipCode?: string | undefined;
414
+ deliveryInstructions?: string | null | undefined;
415
+ };
416
+ configuration: {
417
+ id: string;
418
+ defaultLocale: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu";
419
+ createdAt: Date;
420
+ countriesShipping: string[];
421
+ enableHostCheckout: boolean;
422
+ enableHostTracking: boolean;
423
+ isAcceptingOrders: boolean;
424
+ isOpen: boolean;
425
+ supportedLocales: ("id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu")[];
426
+ defaultCurrency: "USD" | "EUR" | "GBP" | "JPY" | "AUD" | "CAD" | "CHF" | "CNY" | "SEK" | "NZD" | "MXN" | "SGD" | "HKD" | "NOK" | "KRW" | "TRY" | "RUB" | "INR" | "BRL" | "ZAR" | "DKK" | "PLN" | "THB" | "IDR" | "HUF" | "CZK" | "ILS" | "PHP" | "AED" | "COP" | "SAR" | "MYR" | "RON";
427
+ hostname?: string | undefined;
428
+ stripeAccountId?: string | undefined;
429
+ openingTimes?: {
430
+ monday: string | null;
431
+ tuesday: string | null;
432
+ wednesday: string | null;
433
+ thursday: string | null;
434
+ friday: string | null;
435
+ saturday: string | null;
436
+ sunday: string | null;
437
+ } | undefined;
438
+ closingTimes?: {
439
+ monday: string | null;
440
+ tuesday: string | null;
441
+ wednesday: string | null;
442
+ thursday: string | null;
443
+ friday: string | null;
444
+ saturday: string | null;
445
+ sunday: string | null;
446
+ } | undefined;
447
+ facebookProfile?: string | null | undefined;
448
+ instagramProfile?: string | null | undefined;
449
+ xProfile?: string | null | undefined;
450
+ };
451
+ email?: string | undefined;
452
+ logo?: string | null | undefined;
453
+ logoFile?: {
454
+ id: string;
455
+ mimeType: string;
456
+ size: number;
457
+ filename: string;
458
+ url: string;
459
+ } | null | undefined;
460
+ };
461
+ headers: Headers;
462
+ } | {
463
+ status: 400 | 401 | 201 | 204 | 500 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
464
+ body: unknown;
465
+ headers: Headers;
466
+ }>;
467
+ deleteOrganization: (args: {
468
+ params: {
469
+ organizationId: string;
470
+ };
471
+ cache?: RequestCache | undefined;
472
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
473
+ extraHeaders?: ({} & Record<string, string | undefined>) | undefined;
474
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
475
+ headers?: {} | undefined;
476
+ }) => Promise<{
477
+ status: 404;
478
+ body: {
479
+ message: string;
480
+ status: number;
481
+ };
482
+ headers: Headers;
483
+ } | {
484
+ status: 204;
485
+ body: void;
486
+ headers: Headers;
487
+ } | {
488
+ status: 200 | 400 | 401 | 201 | 500 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
489
+ body: unknown;
490
+ headers: Headers;
491
+ }>;
492
+ };
493
+ manufacturer: {
494
+ getManufacturers: (args: {
495
+ params: {
496
+ organizationId: string;
497
+ };
498
+ cache?: RequestCache | undefined;
499
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
500
+ extraHeaders?: ({} & Record<string, string | undefined>) | undefined;
501
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
502
+ headers?: {} | undefined;
503
+ query?: {
504
+ search?: string | undefined;
505
+ locale?: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu" | undefined;
506
+ page?: number | undefined;
507
+ limit?: number | undefined;
508
+ published?: boolean | undefined;
509
+ } | undefined;
510
+ }) => Promise<{
511
+ status: 200;
512
+ body: {
513
+ meta: {
514
+ isFirstPage: boolean;
515
+ isLastPage: boolean;
516
+ currentPage: number;
517
+ previousPage: number | null;
518
+ nextPage: number | null;
519
+ pageCount: number;
520
+ totalCount: number;
521
+ };
522
+ list: ({
523
+ id: string;
524
+ createdAt: Date;
525
+ name: string;
526
+ translations?: {
527
+ locale: string;
528
+ about?: string | null | undefined;
529
+ }[] | undefined;
530
+ logo?: {
531
+ id: string;
532
+ mimeType: string;
533
+ size: number;
534
+ filename: string;
535
+ url: string;
536
+ } | null | undefined;
537
+ } | {
538
+ id: string;
539
+ createdAt: Date;
540
+ name: string;
541
+ about: string | null;
542
+ logo?: {
543
+ id: string;
544
+ mimeType: string;
545
+ size: number;
546
+ filename: string;
547
+ url: string;
548
+ } | null | undefined;
549
+ })[];
550
+ };
551
+ headers: Headers;
552
+ } | {
553
+ status: 400;
554
+ body: {
555
+ message: string;
556
+ status: number;
557
+ };
558
+ headers: Headers;
559
+ } | {
560
+ status: 401;
561
+ body: {
562
+ message: string;
563
+ status: number;
564
+ };
565
+ headers: Headers;
566
+ } | {
567
+ status: 404 | 201 | 204 | 500 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
568
+ body: unknown;
569
+ headers: Headers;
570
+ }>;
571
+ createManufacturer: (args: {
572
+ params: {
573
+ organizationId: string;
574
+ };
575
+ body: {
576
+ translations: {
577
+ locale: string;
578
+ about?: string | null | undefined;
579
+ }[];
580
+ defaultLocale: string;
581
+ name: string;
582
+ logo?: {
583
+ id: string;
584
+ mimeType: string;
585
+ size: number;
586
+ filename: string;
587
+ url: string;
588
+ } | null | undefined;
589
+ logoId?: string | undefined;
590
+ };
591
+ cache?: RequestCache | undefined;
592
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
593
+ extraHeaders?: ({} & Record<string, string | undefined>) | undefined;
594
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
595
+ headers?: {} | undefined;
596
+ }) => Promise<{
597
+ status: 404;
598
+ body: {
599
+ message: string;
600
+ status: number;
601
+ };
602
+ headers: Headers;
603
+ } | {
604
+ status: 400;
605
+ body: {
606
+ message: string;
607
+ status: number;
608
+ };
609
+ headers: Headers;
610
+ } | {
611
+ status: 401;
612
+ body: {
613
+ message: string;
614
+ status: number;
615
+ };
616
+ headers: Headers;
617
+ } | {
618
+ status: 201;
619
+ body: {
620
+ id: string;
621
+ createdAt: Date;
622
+ name: string;
623
+ translations?: {
624
+ locale: string;
625
+ about?: string | null | undefined;
626
+ }[] | undefined;
627
+ logo?: {
628
+ id: string;
629
+ mimeType: string;
630
+ size: number;
631
+ filename: string;
632
+ url: string;
633
+ } | null | undefined;
634
+ };
635
+ headers: Headers;
636
+ } | {
637
+ status: 200 | 204 | 500 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
638
+ body: unknown;
639
+ headers: Headers;
640
+ }>;
641
+ getManufacturer: (args: {
642
+ params: {
643
+ id: string;
644
+ organizationId: string;
645
+ };
646
+ cache?: RequestCache | undefined;
647
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
648
+ extraHeaders?: ({} & Record<string, string | undefined>) | undefined;
649
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
650
+ headers?: {} | undefined;
651
+ query?: {
652
+ locale?: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu" | null | undefined;
653
+ } | undefined;
654
+ }) => Promise<{
655
+ status: 404;
656
+ body: {
657
+ message: string;
658
+ status: number;
659
+ };
660
+ headers: Headers;
661
+ } | {
662
+ status: 200;
663
+ body: {
664
+ id: string;
665
+ createdAt: Date;
666
+ name: string;
667
+ translations?: {
668
+ locale: string;
669
+ about?: string | null | undefined;
670
+ }[] | undefined;
671
+ logo?: {
672
+ id: string;
673
+ mimeType: string;
674
+ size: number;
675
+ filename: string;
676
+ url: string;
677
+ } | null | undefined;
678
+ } | {
679
+ id: string;
680
+ createdAt: Date;
681
+ name: string;
682
+ about: string | null;
683
+ logo?: {
684
+ id: string;
685
+ mimeType: string;
686
+ size: number;
687
+ filename: string;
688
+ url: string;
689
+ } | null | undefined;
690
+ };
691
+ headers: Headers;
692
+ } | {
693
+ status: 401;
694
+ body: {
695
+ message: string;
696
+ status: number;
697
+ };
698
+ headers: Headers;
699
+ } | {
700
+ status: 400 | 201 | 204 | 500 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
701
+ body: unknown;
702
+ headers: Headers;
703
+ }>;
704
+ updateManufacturer: (args: {
705
+ params: {
706
+ id: string;
707
+ organizationId: string;
708
+ };
709
+ body: {
710
+ defaultLocale: string;
711
+ translations?: {
712
+ locale: string;
713
+ about?: string | null | undefined;
714
+ }[] | undefined;
715
+ name?: string | undefined;
716
+ logo?: {
717
+ id: string;
718
+ mimeType: string;
719
+ size: number;
720
+ filename: string;
721
+ url: string;
722
+ } | null | undefined;
723
+ logoId?: string | null | undefined;
724
+ };
725
+ cache?: RequestCache | undefined;
726
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
727
+ extraHeaders?: ({} & Record<string, string | undefined>) | undefined;
728
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
729
+ headers?: {} | undefined;
730
+ }) => Promise<{
731
+ status: 404;
732
+ body: {
733
+ message: string;
734
+ status: number;
735
+ };
736
+ headers: Headers;
737
+ } | {
738
+ status: 200;
739
+ body: {
740
+ id: string;
741
+ createdAt: Date;
742
+ name: string;
743
+ translations?: {
744
+ locale: string;
745
+ about?: string | null | undefined;
746
+ }[] | undefined;
747
+ logo?: {
748
+ id: string;
749
+ mimeType: string;
750
+ size: number;
751
+ filename: string;
752
+ url: string;
753
+ } | null | undefined;
754
+ };
755
+ headers: Headers;
756
+ } | {
757
+ status: 400;
758
+ body: {
759
+ message: string;
760
+ status: number;
761
+ };
762
+ headers: Headers;
763
+ } | {
764
+ status: 401;
765
+ body: {
766
+ message: string;
767
+ status: number;
768
+ };
769
+ headers: Headers;
770
+ } | {
771
+ status: 201 | 204 | 500 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
772
+ body: unknown;
773
+ headers: Headers;
774
+ }>;
775
+ deleteManufacturer: (args: {
776
+ params: {
777
+ id: string;
778
+ organizationId: string;
779
+ };
780
+ cache?: RequestCache | undefined;
781
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
782
+ extraHeaders?: ({} & Record<string, string | undefined>) | undefined;
783
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
784
+ headers?: {} | undefined;
785
+ }) => Promise<{
786
+ status: 404;
787
+ body: {
788
+ message: string;
789
+ status: number;
790
+ };
791
+ headers: Headers;
792
+ } | {
793
+ status: 400;
794
+ body: {
795
+ message: string;
796
+ status: number;
797
+ };
798
+ headers: Headers;
799
+ } | {
800
+ status: 401;
801
+ body: {
802
+ message: string;
803
+ status: number;
804
+ };
805
+ headers: Headers;
806
+ } | {
807
+ status: 204;
808
+ body: undefined;
809
+ headers: Headers;
810
+ } | {
811
+ status: 200 | 201 | 500 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
812
+ body: unknown;
813
+ headers: Headers;
814
+ }>;
815
+ };
816
+ file: {
817
+ createTemporaryFile: (args: {
818
+ body: {
819
+ mimeType: string;
820
+ size: number;
821
+ filename: string;
822
+ organizationId?: string | undefined;
823
+ };
824
+ cache?: RequestCache | undefined;
825
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
826
+ extraHeaders?: ({} & Record<string, string | undefined>) | undefined;
827
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
828
+ headers?: {} | undefined;
829
+ }) => Promise<{
830
+ status: 201;
831
+ body: {
832
+ id: string;
833
+ mimeType: string;
834
+ size: number;
835
+ filename: string;
836
+ url: string;
837
+ };
838
+ headers: Headers;
839
+ } | {
840
+ status: 404 | 200 | 400 | 401 | 204 | 500 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
841
+ body: unknown;
842
+ headers: Headers;
843
+ }>;
844
+ getVercelToken: (args: {
845
+ body: {
846
+ type: "blob.generate-client-token";
847
+ payload: {
848
+ pathname: string;
849
+ callbackUrl: string;
850
+ multipart: boolean;
851
+ clientPayload: string | null;
852
+ };
853
+ } | {
854
+ type: "blob.upload-completed";
855
+ payload: {
856
+ blob?: any;
857
+ tokenPayload?: string | null | undefined;
858
+ };
859
+ };
860
+ cache?: RequestCache | undefined;
861
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
862
+ extraHeaders?: ({} & Record<string, string | undefined>) | undefined;
863
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
864
+ headers?: {} | undefined;
865
+ }) => Promise<{
866
+ status: 200;
867
+ body: {
868
+ type: "blob.generate-client-token";
869
+ clientToken: string;
870
+ } | {
871
+ type: "blob.upload-completed";
872
+ response: "ok";
873
+ };
874
+ headers: Headers;
875
+ } | {
876
+ status: 204;
877
+ body: undefined;
878
+ headers: Headers;
879
+ } | {
880
+ status: 404 | 400 | 401 | 201 | 500 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
881
+ body: unknown;
882
+ headers: Headers;
883
+ }>;
884
+ };
885
+ productCategory: {
886
+ getProductCategories: (args: {
887
+ params: {
888
+ organizationId: string;
889
+ };
890
+ cache?: RequestCache | undefined;
891
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
892
+ extraHeaders?: ({} & Record<string, string | undefined>) | undefined;
893
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
894
+ headers?: {} | undefined;
895
+ query?: {
896
+ search?: string | undefined;
897
+ locale?: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu" | undefined;
898
+ page?: number | undefined;
899
+ limit?: number | undefined;
900
+ published?: boolean | undefined;
901
+ } | undefined;
902
+ }) => Promise<{
903
+ status: 200;
904
+ body: {
905
+ meta: {
906
+ isFirstPage: boolean;
907
+ isLastPage: boolean;
908
+ currentPage: number;
909
+ previousPage: number | null;
910
+ nextPage: number | null;
911
+ pageCount: number;
912
+ totalCount: number;
913
+ };
914
+ list: ({
915
+ translations: {
916
+ locale: string;
917
+ title: string;
918
+ description?: string | undefined;
919
+ }[];
920
+ id: string;
921
+ slug: string;
922
+ createdAt: Date;
923
+ image?: {
924
+ id: string;
925
+ mimeType: string;
926
+ size: number;
927
+ filename: string;
928
+ url: string;
929
+ } | null | undefined;
930
+ publishedAt?: Date | null | undefined;
931
+ } | {
932
+ id: string;
933
+ slug: string;
934
+ createdAt: Date;
935
+ title: string;
936
+ description: string;
937
+ image?: {
938
+ id: string;
939
+ mimeType: string;
940
+ size: number;
941
+ filename: string;
942
+ url: string;
943
+ } | null | undefined;
944
+ publishedAt?: Date | null | undefined;
945
+ })[];
946
+ };
947
+ headers: Headers;
948
+ } | {
949
+ status: 400;
950
+ body: {
951
+ message: string;
952
+ status: number;
953
+ };
954
+ headers: Headers;
955
+ } | {
956
+ status: 401;
957
+ body: {
958
+ message: string;
959
+ status: number;
960
+ };
961
+ headers: Headers;
962
+ } | {
963
+ status: 404 | 201 | 204 | 500 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
964
+ body: unknown;
965
+ headers: Headers;
966
+ }>;
967
+ createProductCategory: (args: {
968
+ params: {
969
+ organizationId: string;
970
+ };
971
+ body: {
972
+ translations: {
973
+ locale: string;
974
+ title?: string | undefined;
975
+ description?: string | undefined;
976
+ }[];
977
+ defaultLocale: string;
978
+ slug: string;
979
+ image?: {
980
+ id: string;
981
+ mimeType: string;
982
+ size: number;
983
+ filename: string;
984
+ url: string;
985
+ } | null | undefined;
986
+ imageId?: string | undefined;
987
+ };
988
+ cache?: RequestCache | undefined;
989
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
990
+ extraHeaders?: ({} & Record<string, string | undefined>) | undefined;
991
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
992
+ headers?: {} | undefined;
993
+ }) => Promise<{
994
+ status: 404;
995
+ body: {
996
+ message: string;
997
+ status: number;
998
+ };
999
+ headers: Headers;
1000
+ } | {
1001
+ status: 400;
1002
+ body: {
1003
+ message: string;
1004
+ status: number;
1005
+ };
1006
+ headers: Headers;
1007
+ } | {
1008
+ status: 401;
1009
+ body: {
1010
+ message: string;
1011
+ status: number;
1012
+ };
1013
+ headers: Headers;
1014
+ } | {
1015
+ status: 201;
1016
+ body: {
1017
+ translations: {
1018
+ locale: string;
1019
+ title: string;
1020
+ description?: string | undefined;
1021
+ }[];
1022
+ id: string;
1023
+ slug: string;
1024
+ createdAt: Date;
1025
+ image?: {
1026
+ id: string;
1027
+ mimeType: string;
1028
+ size: number;
1029
+ filename: string;
1030
+ url: string;
1031
+ } | null | undefined;
1032
+ publishedAt?: Date | null | undefined;
1033
+ };
1034
+ headers: Headers;
1035
+ } | {
1036
+ status: 200 | 204 | 500 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
1037
+ body: unknown;
1038
+ headers: Headers;
1039
+ }>;
1040
+ getProductCategory: (args: {
1041
+ params: {
1042
+ id: string;
1043
+ organizationId: string;
1044
+ };
1045
+ cache?: RequestCache | undefined;
1046
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
1047
+ extraHeaders?: ({} & Record<string, string | undefined>) | undefined;
1048
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
1049
+ headers?: {} | undefined;
1050
+ query?: {
1051
+ locale?: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu" | null | undefined;
1052
+ } | undefined;
1053
+ }) => Promise<{
1054
+ status: 404;
1055
+ body: {
1056
+ message: string;
1057
+ status: number;
1058
+ };
1059
+ headers: Headers;
1060
+ } | {
1061
+ status: 200;
1062
+ body: {
1063
+ translations: {
1064
+ locale: string;
1065
+ title: string;
1066
+ description?: string | undefined;
1067
+ }[];
1068
+ id: string;
1069
+ slug: string;
1070
+ createdAt: Date;
1071
+ image?: {
1072
+ id: string;
1073
+ mimeType: string;
1074
+ size: number;
1075
+ filename: string;
1076
+ url: string;
1077
+ } | null | undefined;
1078
+ publishedAt?: Date | null | undefined;
1079
+ } | {
1080
+ id: string;
1081
+ slug: string;
1082
+ createdAt: Date;
1083
+ title: string;
1084
+ description: string;
1085
+ image?: {
1086
+ id: string;
1087
+ mimeType: string;
1088
+ size: number;
1089
+ filename: string;
1090
+ url: string;
1091
+ } | null | undefined;
1092
+ publishedAt?: Date | null | undefined;
1093
+ };
1094
+ headers: Headers;
1095
+ } | {
1096
+ status: 401;
1097
+ body: {
1098
+ message: string;
1099
+ status: number;
1100
+ };
1101
+ headers: Headers;
1102
+ } | {
1103
+ status: 400 | 201 | 204 | 500 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
1104
+ body: unknown;
1105
+ headers: Headers;
1106
+ }>;
1107
+ updateProductCategory: (args: {
1108
+ params: {
1109
+ id: string;
1110
+ organizationId: string;
1111
+ };
1112
+ cache?: RequestCache | undefined;
1113
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
1114
+ extraHeaders?: ({} & Record<string, string | undefined>) | undefined;
1115
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
1116
+ headers?: {} | undefined;
1117
+ body?: {
1118
+ translations?: {
1119
+ locale: string;
1120
+ title?: string | undefined;
1121
+ description?: string | undefined;
1122
+ }[] | undefined;
1123
+ defaultLocale?: string | undefined;
1124
+ slug?: string | undefined;
1125
+ image?: {
1126
+ id: string;
1127
+ mimeType: string;
1128
+ size: number;
1129
+ filename: string;
1130
+ url: string;
1131
+ } | null | undefined;
1132
+ imageId?: string | null | undefined;
1133
+ } | undefined;
1134
+ }) => Promise<{
1135
+ status: 404;
1136
+ body: {
1137
+ message: string;
1138
+ status: number;
1139
+ };
1140
+ headers: Headers;
1141
+ } | {
1142
+ status: 200;
1143
+ body: {
1144
+ translations: {
1145
+ locale: string;
1146
+ title: string;
1147
+ description?: string | undefined;
1148
+ }[];
1149
+ id: string;
1150
+ slug: string;
1151
+ createdAt: Date;
1152
+ image?: {
1153
+ id: string;
1154
+ mimeType: string;
1155
+ size: number;
1156
+ filename: string;
1157
+ url: string;
1158
+ } | null | undefined;
1159
+ publishedAt?: Date | null | undefined;
1160
+ };
1161
+ headers: Headers;
1162
+ } | {
1163
+ status: 400;
1164
+ body: {
1165
+ message: string;
1166
+ status: number;
1167
+ };
1168
+ headers: Headers;
1169
+ } | {
1170
+ status: 401;
1171
+ body: {
1172
+ message: string;
1173
+ status: number;
1174
+ };
1175
+ headers: Headers;
1176
+ } | {
1177
+ status: 201 | 204 | 500 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
1178
+ body: unknown;
1179
+ headers: Headers;
1180
+ }>;
1181
+ updateStatus: (args: {
1182
+ params: {
1183
+ id: string;
1184
+ organizationId: string;
1185
+ operation: "publish" | "unpublish";
1186
+ };
1187
+ cache?: RequestCache | undefined;
1188
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
1189
+ extraHeaders?: ({} & Record<string, string | undefined>) | undefined;
1190
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
1191
+ headers?: {} | undefined;
1192
+ }) => Promise<{
1193
+ status: 404;
1194
+ body: {
1195
+ message: string;
1196
+ status: number;
1197
+ };
1198
+ headers: Headers;
1199
+ } | {
1200
+ status: 200;
1201
+ body: {
1202
+ translations: {
1203
+ locale: string;
1204
+ title: string;
1205
+ description?: string | undefined;
1206
+ }[];
1207
+ id: string;
1208
+ slug: string;
1209
+ createdAt: Date;
1210
+ image?: {
1211
+ id: string;
1212
+ mimeType: string;
1213
+ size: number;
1214
+ filename: string;
1215
+ url: string;
1216
+ } | null | undefined;
1217
+ publishedAt?: Date | null | undefined;
1218
+ };
1219
+ headers: Headers;
1220
+ } | {
1221
+ status: 400;
1222
+ body: {
1223
+ message: string;
1224
+ status: number;
1225
+ };
1226
+ headers: Headers;
1227
+ } | {
1228
+ status: 401;
1229
+ body: {
1230
+ message: string;
1231
+ status: number;
1232
+ };
1233
+ headers: Headers;
1234
+ } | {
1235
+ status: 201 | 204 | 500 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
1236
+ body: unknown;
1237
+ headers: Headers;
1238
+ }>;
1239
+ deleteProductCategory: (args: {
1240
+ params: {
1241
+ id: string;
1242
+ organizationId: string;
1243
+ };
1244
+ cache?: RequestCache | undefined;
1245
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
1246
+ extraHeaders?: ({} & Record<string, string | undefined>) | undefined;
1247
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
1248
+ headers?: {} | undefined;
1249
+ }) => Promise<{
1250
+ status: 404;
1251
+ body: {
1252
+ message: string;
1253
+ status: number;
1254
+ };
1255
+ headers: Headers;
1256
+ } | {
1257
+ status: 400;
1258
+ body: {
1259
+ message: string;
1260
+ status: number;
1261
+ };
1262
+ headers: Headers;
1263
+ } | {
1264
+ status: 401;
1265
+ body: {
1266
+ message: string;
1267
+ status: number;
1268
+ };
1269
+ headers: Headers;
1270
+ } | {
1271
+ status: 204;
1272
+ body: undefined;
1273
+ headers: Headers;
1274
+ } | {
1275
+ status: 200 | 201 | 500 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
1276
+ body: unknown;
1277
+ headers: Headers;
1278
+ }>;
1279
+ };
1280
+ product: {
1281
+ getProducts: (args: {
1282
+ params: {
1283
+ organizationId: string;
1284
+ };
1285
+ cache?: RequestCache | undefined;
1286
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
1287
+ extraHeaders?: ({} & Record<string, string | undefined>) | undefined;
1288
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
1289
+ headers?: {} | undefined;
1290
+ query?: {
1291
+ search?: string | undefined;
1292
+ locale?: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu" | undefined;
1293
+ page?: number | undefined;
1294
+ limit?: number | undefined;
1295
+ published?: boolean | undefined;
1296
+ } | undefined;
1297
+ }) => Promise<{
1298
+ status: 200;
1299
+ body: {
1300
+ meta: {
1301
+ isFirstPage: boolean;
1302
+ isLastPage: boolean;
1303
+ currentPage: number;
1304
+ previousPage: number | null;
1305
+ nextPage: number | null;
1306
+ pageCount: number;
1307
+ totalCount: number;
1308
+ };
1309
+ list: ({
1310
+ id: string;
1311
+ createdAt: Date;
1312
+ basePrice: number;
1313
+ discountedBasePrice: number | null;
1314
+ currency: string;
1315
+ categories: {
1316
+ translations: {
1317
+ locale: string;
1318
+ title: string;
1319
+ description?: string | undefined;
1320
+ }[];
1321
+ id: string;
1322
+ slug: string;
1323
+ createdAt: Date;
1324
+ image?: {
1325
+ id: string;
1326
+ mimeType: string;
1327
+ size: number;
1328
+ filename: string;
1329
+ url: string;
1330
+ } | null | undefined;
1331
+ publishedAt?: Date | null | undefined;
1332
+ }[];
1333
+ translations?: {
1334
+ locale: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu";
1335
+ title?: string | undefined;
1336
+ description?: string | null | undefined;
1337
+ }[] | undefined;
1338
+ slug?: string | undefined;
1339
+ publishedAt?: Date | null | undefined;
1340
+ sku?: string | undefined;
1341
+ images?: {
1342
+ id: string;
1343
+ mimeType: string;
1344
+ size: number;
1345
+ filename: string;
1346
+ url: string;
1347
+ }[] | undefined;
1348
+ modifierGroups?: {
1349
+ translations: {
1350
+ locale: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu";
1351
+ title?: string | undefined;
1352
+ }[];
1353
+ id: string;
1354
+ selectMin: number;
1355
+ selectMax: number;
1356
+ defaultLocale?: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu" | undefined;
1357
+ modifiers?: {
1358
+ title: string;
1359
+ price: number;
1360
+ id?: string | undefined;
1361
+ sku?: string | undefined;
1362
+ }[] | undefined;
1363
+ }[] | undefined;
1364
+ manufacturerId?: string | null | undefined;
1365
+ } | {
1366
+ id: string;
1367
+ createdAt: Date;
1368
+ title: string;
1369
+ description: string | null;
1370
+ basePrice: number;
1371
+ discountedBasePrice: number | null;
1372
+ currency: string;
1373
+ modifierGroups: {
1374
+ id: string;
1375
+ title: string | null;
1376
+ selectMin: number;
1377
+ selectMax: number;
1378
+ defaultLocale?: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu" | undefined;
1379
+ modifiers?: {
1380
+ title: string;
1381
+ price: number;
1382
+ id?: string | undefined;
1383
+ sku?: string | undefined;
1384
+ }[] | undefined;
1385
+ }[];
1386
+ categories: {
1387
+ id: string;
1388
+ }[];
1389
+ slug?: string | undefined;
1390
+ publishedAt?: Date | null | undefined;
1391
+ sku?: string | undefined;
1392
+ images?: {
1393
+ id: string;
1394
+ mimeType: string;
1395
+ size: number;
1396
+ filename: string;
1397
+ url: string;
1398
+ }[] | undefined;
1399
+ manufacturerId?: string | null | undefined;
1400
+ })[];
1401
+ };
1402
+ headers: Headers;
1403
+ } | {
1404
+ status: 400;
1405
+ body: {
1406
+ message: string;
1407
+ status: number;
1408
+ };
1409
+ headers: Headers;
1410
+ } | {
1411
+ status: 401;
1412
+ body: {
1413
+ message: string;
1414
+ status: number;
1415
+ };
1416
+ headers: Headers;
1417
+ } | {
1418
+ status: 404 | 201 | 204 | 500 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
1419
+ body: unknown;
1420
+ headers: Headers;
1421
+ }>;
1422
+ getProduct: (args: {
1423
+ params: {
1424
+ id: string;
1425
+ organizationId: string;
1426
+ };
1427
+ cache?: RequestCache | undefined;
1428
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
1429
+ extraHeaders?: ({} & Record<string, string | undefined>) | undefined;
1430
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
1431
+ headers?: {} | undefined;
1432
+ query?: {
1433
+ locale?: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu" | null | undefined;
1434
+ } | undefined;
1435
+ }) => Promise<{
1436
+ status: 404;
1437
+ body: {
1438
+ message: string;
1439
+ status: number;
1440
+ };
1441
+ headers: Headers;
1442
+ } | {
1443
+ status: 200;
1444
+ body: {
1445
+ id: string;
1446
+ createdAt: Date;
1447
+ basePrice: number;
1448
+ discountedBasePrice: number | null;
1449
+ currency: string;
1450
+ categories: {
1451
+ translations: {
1452
+ locale: string;
1453
+ title: string;
1454
+ description?: string | undefined;
1455
+ }[];
1456
+ id: string;
1457
+ slug: string;
1458
+ createdAt: Date;
1459
+ image?: {
1460
+ id: string;
1461
+ mimeType: string;
1462
+ size: number;
1463
+ filename: string;
1464
+ url: string;
1465
+ } | null | undefined;
1466
+ publishedAt?: Date | null | undefined;
1467
+ }[];
1468
+ translations?: {
1469
+ locale: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu";
1470
+ title?: string | undefined;
1471
+ description?: string | null | undefined;
1472
+ }[] | undefined;
1473
+ slug?: string | undefined;
1474
+ publishedAt?: Date | null | undefined;
1475
+ sku?: string | undefined;
1476
+ images?: {
1477
+ id: string;
1478
+ mimeType: string;
1479
+ size: number;
1480
+ filename: string;
1481
+ url: string;
1482
+ }[] | undefined;
1483
+ modifierGroups?: {
1484
+ translations: {
1485
+ locale: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu";
1486
+ title?: string | undefined;
1487
+ }[];
1488
+ id: string;
1489
+ selectMin: number;
1490
+ selectMax: number;
1491
+ defaultLocale?: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu" | undefined;
1492
+ modifiers?: {
1493
+ title: string;
1494
+ price: number;
1495
+ id?: string | undefined;
1496
+ sku?: string | undefined;
1497
+ }[] | undefined;
1498
+ }[] | undefined;
1499
+ manufacturerId?: string | null | undefined;
1500
+ } | {
1501
+ id: string;
1502
+ createdAt: Date;
1503
+ title: string;
1504
+ description: string | null;
1505
+ basePrice: number;
1506
+ discountedBasePrice: number | null;
1507
+ currency: string;
1508
+ modifierGroups: {
1509
+ id: string;
1510
+ title: string | null;
1511
+ selectMin: number;
1512
+ selectMax: number;
1513
+ defaultLocale?: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu" | undefined;
1514
+ modifiers?: {
1515
+ title: string;
1516
+ price: number;
1517
+ id?: string | undefined;
1518
+ sku?: string | undefined;
1519
+ }[] | undefined;
1520
+ }[];
1521
+ categories: {
1522
+ id: string;
1523
+ }[];
1524
+ slug?: string | undefined;
1525
+ publishedAt?: Date | null | undefined;
1526
+ sku?: string | undefined;
1527
+ images?: {
1528
+ id: string;
1529
+ mimeType: string;
1530
+ size: number;
1531
+ filename: string;
1532
+ url: string;
1533
+ }[] | undefined;
1534
+ manufacturerId?: string | null | undefined;
1535
+ };
1536
+ headers: Headers;
1537
+ } | {
1538
+ status: 401;
1539
+ body: {
1540
+ message: string;
1541
+ status: number;
1542
+ };
1543
+ headers: Headers;
1544
+ } | {
1545
+ status: 400 | 201 | 204 | 500 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
1546
+ body: unknown;
1547
+ headers: Headers;
1548
+ }>;
1549
+ updateProduct: (args: {
1550
+ params: {
1551
+ id: string;
1552
+ organizationId: string;
1553
+ };
1554
+ cache?: RequestCache | undefined;
1555
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
1556
+ extraHeaders?: ({} & Record<string, string | undefined>) | undefined;
1557
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
1558
+ headers?: {} | undefined;
1559
+ body?: {
1560
+ translations?: {
1561
+ locale: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu";
1562
+ title?: string | undefined;
1563
+ description?: string | null | undefined;
1564
+ }[] | undefined;
1565
+ defaultLocale?: string | undefined;
1566
+ slug?: string | undefined;
1567
+ sku?: string | undefined;
1568
+ basePrice?: number | undefined;
1569
+ discountedBasePrice?: string | number | null | undefined;
1570
+ currency?: string | undefined;
1571
+ images?: {
1572
+ id: string;
1573
+ mimeType: string;
1574
+ size: number;
1575
+ filename: string;
1576
+ url: string;
1577
+ }[] | undefined;
1578
+ modifierGroups?: {
1579
+ translations: {
1580
+ locale: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu";
1581
+ title?: string | undefined;
1582
+ }[];
1583
+ selectMin: number;
1584
+ selectMax: number;
1585
+ defaultLocale?: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu" | undefined;
1586
+ modifiers?: {
1587
+ title: string;
1588
+ id?: string | undefined;
1589
+ sku?: string | undefined;
1590
+ price?: number | undefined;
1591
+ }[] | undefined;
1592
+ }[] | undefined;
1593
+ categories?: string[] | undefined;
1594
+ manufacturerId?: string | null | undefined;
1595
+ } | undefined;
1596
+ }) => Promise<{
1597
+ status: 404;
1598
+ body: {
1599
+ message: string;
1600
+ status: number;
1601
+ };
1602
+ headers: Headers;
1603
+ } | {
1604
+ status: 200;
1605
+ body: {
1606
+ id: string;
1607
+ createdAt: Date;
1608
+ basePrice: number;
1609
+ discountedBasePrice: number | null;
1610
+ currency: string;
1611
+ categories: {
1612
+ translations: {
1613
+ locale: string;
1614
+ title: string;
1615
+ description?: string | undefined;
1616
+ }[];
1617
+ id: string;
1618
+ slug: string;
1619
+ createdAt: Date;
1620
+ image?: {
1621
+ id: string;
1622
+ mimeType: string;
1623
+ size: number;
1624
+ filename: string;
1625
+ url: string;
1626
+ } | null | undefined;
1627
+ publishedAt?: Date | null | undefined;
1628
+ }[];
1629
+ translations?: {
1630
+ locale: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu";
1631
+ title?: string | undefined;
1632
+ description?: string | null | undefined;
1633
+ }[] | undefined;
1634
+ slug?: string | undefined;
1635
+ publishedAt?: Date | null | undefined;
1636
+ sku?: string | undefined;
1637
+ images?: {
1638
+ id: string;
1639
+ mimeType: string;
1640
+ size: number;
1641
+ filename: string;
1642
+ url: string;
1643
+ }[] | undefined;
1644
+ modifierGroups?: {
1645
+ translations: {
1646
+ locale: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu";
1647
+ title?: string | undefined;
1648
+ }[];
1649
+ id: string;
1650
+ selectMin: number;
1651
+ selectMax: number;
1652
+ defaultLocale?: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu" | undefined;
1653
+ modifiers?: {
1654
+ title: string;
1655
+ price: number;
1656
+ id?: string | undefined;
1657
+ sku?: string | undefined;
1658
+ }[] | undefined;
1659
+ }[] | undefined;
1660
+ manufacturerId?: string | null | undefined;
1661
+ };
1662
+ headers: Headers;
1663
+ } | {
1664
+ status: 400;
1665
+ body: {
1666
+ message: string;
1667
+ status: number;
1668
+ };
1669
+ headers: Headers;
1670
+ } | {
1671
+ status: 401;
1672
+ body: {
1673
+ message: string;
1674
+ status: number;
1675
+ };
1676
+ headers: Headers;
1677
+ } | {
1678
+ status: 201 | 204 | 500 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
1679
+ body: unknown;
1680
+ headers: Headers;
1681
+ }>;
1682
+ createProduct: (args: {
1683
+ params: {
1684
+ organizationId: string;
1685
+ };
1686
+ body: {
1687
+ defaultLocale: string;
1688
+ basePrice: number;
1689
+ currency: string;
1690
+ translations?: {
1691
+ locale: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu";
1692
+ title?: string | undefined;
1693
+ description?: string | null | undefined;
1694
+ }[] | undefined;
1695
+ slug?: string | undefined;
1696
+ sku?: string | undefined;
1697
+ discountedBasePrice?: string | number | null | undefined;
1698
+ images?: {
1699
+ id: string;
1700
+ mimeType: string;
1701
+ size: number;
1702
+ filename: string;
1703
+ url: string;
1704
+ }[] | undefined;
1705
+ modifierGroups?: {
1706
+ translations: {
1707
+ locale: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu";
1708
+ title?: string | undefined;
1709
+ }[];
1710
+ selectMin: number;
1711
+ selectMax: number;
1712
+ defaultLocale?: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu" | undefined;
1713
+ modifiers?: {
1714
+ title: string;
1715
+ id?: string | undefined;
1716
+ sku?: string | undefined;
1717
+ price?: number | undefined;
1718
+ }[] | undefined;
1719
+ }[] | undefined;
1720
+ categories?: string[] | undefined;
1721
+ manufacturerId?: string | null | undefined;
1722
+ };
1723
+ cache?: RequestCache | undefined;
1724
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
1725
+ extraHeaders?: ({} & Record<string, string | undefined>) | undefined;
1726
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
1727
+ headers?: {} | undefined;
1728
+ }) => Promise<{
1729
+ status: 404;
1730
+ body: {
1731
+ message: string;
1732
+ status: number;
1733
+ };
1734
+ headers: Headers;
1735
+ } | {
1736
+ status: 400;
1737
+ body: {
1738
+ message: string;
1739
+ status: number;
1740
+ };
1741
+ headers: Headers;
1742
+ } | {
1743
+ status: 401;
1744
+ body: {
1745
+ message: string;
1746
+ status: number;
1747
+ };
1748
+ headers: Headers;
1749
+ } | {
1750
+ status: 201;
1751
+ body: {
1752
+ id: string;
1753
+ createdAt: Date;
1754
+ basePrice: number;
1755
+ discountedBasePrice: number | null;
1756
+ currency: string;
1757
+ categories: {
1758
+ translations: {
1759
+ locale: string;
1760
+ title: string;
1761
+ description?: string | undefined;
1762
+ }[];
1763
+ id: string;
1764
+ slug: string;
1765
+ createdAt: Date;
1766
+ image?: {
1767
+ id: string;
1768
+ mimeType: string;
1769
+ size: number;
1770
+ filename: string;
1771
+ url: string;
1772
+ } | null | undefined;
1773
+ publishedAt?: Date | null | undefined;
1774
+ }[];
1775
+ translations?: {
1776
+ locale: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu";
1777
+ title?: string | undefined;
1778
+ description?: string | null | undefined;
1779
+ }[] | undefined;
1780
+ slug?: string | undefined;
1781
+ publishedAt?: Date | null | undefined;
1782
+ sku?: string | undefined;
1783
+ images?: {
1784
+ id: string;
1785
+ mimeType: string;
1786
+ size: number;
1787
+ filename: string;
1788
+ url: string;
1789
+ }[] | undefined;
1790
+ modifierGroups?: {
1791
+ translations: {
1792
+ locale: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu";
1793
+ title?: string | undefined;
1794
+ }[];
1795
+ id: string;
1796
+ selectMin: number;
1797
+ selectMax: number;
1798
+ defaultLocale?: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu" | undefined;
1799
+ modifiers?: {
1800
+ title: string;
1801
+ price: number;
1802
+ id?: string | undefined;
1803
+ sku?: string | undefined;
1804
+ }[] | undefined;
1805
+ }[] | undefined;
1806
+ manufacturerId?: string | null | undefined;
1807
+ };
1808
+ headers: Headers;
1809
+ } | {
1810
+ status: 200 | 204 | 500 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
1811
+ body: unknown;
1812
+ headers: Headers;
1813
+ }>;
1814
+ updateStatus: (args: {
1815
+ params: {
1816
+ id: string;
1817
+ organizationId: string;
1818
+ operation: "publish" | "unpublish";
1819
+ };
1820
+ cache?: RequestCache | undefined;
1821
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
1822
+ extraHeaders?: ({} & Record<string, string | undefined>) | undefined;
1823
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
1824
+ headers?: {} | undefined;
1825
+ }) => Promise<{
1826
+ status: 404;
1827
+ body: {
1828
+ message: string;
1829
+ status: number;
1830
+ };
1831
+ headers: Headers;
1832
+ } | {
1833
+ status: 200;
1834
+ body: {
1835
+ id: string;
1836
+ createdAt: Date;
1837
+ basePrice: number;
1838
+ discountedBasePrice: number | null;
1839
+ currency: string;
1840
+ categories: {
1841
+ translations: {
1842
+ locale: string;
1843
+ title: string;
1844
+ description?: string | undefined;
1845
+ }[];
1846
+ id: string;
1847
+ slug: string;
1848
+ createdAt: Date;
1849
+ image?: {
1850
+ id: string;
1851
+ mimeType: string;
1852
+ size: number;
1853
+ filename: string;
1854
+ url: string;
1855
+ } | null | undefined;
1856
+ publishedAt?: Date | null | undefined;
1857
+ }[];
1858
+ translations?: {
1859
+ locale: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu";
1860
+ title?: string | undefined;
1861
+ description?: string | null | undefined;
1862
+ }[] | undefined;
1863
+ slug?: string | undefined;
1864
+ publishedAt?: Date | null | undefined;
1865
+ sku?: string | undefined;
1866
+ images?: {
1867
+ id: string;
1868
+ mimeType: string;
1869
+ size: number;
1870
+ filename: string;
1871
+ url: string;
1872
+ }[] | undefined;
1873
+ modifierGroups?: {
1874
+ translations: {
1875
+ locale: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu";
1876
+ title?: string | undefined;
1877
+ }[];
1878
+ id: string;
1879
+ selectMin: number;
1880
+ selectMax: number;
1881
+ defaultLocale?: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu" | undefined;
1882
+ modifiers?: {
1883
+ title: string;
1884
+ price: number;
1885
+ id?: string | undefined;
1886
+ sku?: string | undefined;
1887
+ }[] | undefined;
1888
+ }[] | undefined;
1889
+ manufacturerId?: string | null | undefined;
1890
+ };
1891
+ headers: Headers;
1892
+ } | {
1893
+ status: 400;
1894
+ body: {
1895
+ message: string;
1896
+ status: number;
1897
+ };
1898
+ headers: Headers;
1899
+ } | {
1900
+ status: 401;
1901
+ body: {
1902
+ message: string;
1903
+ status: number;
1904
+ };
1905
+ headers: Headers;
1906
+ } | {
1907
+ status: 201 | 204 | 500 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
1908
+ body: unknown;
1909
+ headers: Headers;
1910
+ }>;
1911
+ deleteProduct: (args: {
1912
+ params: {
1913
+ id: string;
1914
+ organizationId: string;
1915
+ };
1916
+ cache?: RequestCache | undefined;
1917
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
1918
+ extraHeaders?: ({} & Record<string, string | undefined>) | undefined;
1919
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
1920
+ headers?: {} | undefined;
1921
+ }) => Promise<{
1922
+ status: 404;
1923
+ body: {
1924
+ message: string;
1925
+ status: number;
1926
+ };
1927
+ headers: Headers;
1928
+ } | {
1929
+ status: 400;
1930
+ body: {
1931
+ message: string;
1932
+ status: number;
1933
+ };
1934
+ headers: Headers;
1935
+ } | {
1936
+ status: 401;
1937
+ body: {
1938
+ message: string;
1939
+ status: number;
1940
+ };
1941
+ headers: Headers;
1942
+ } | {
1943
+ status: 204;
1944
+ body: undefined;
1945
+ headers: Headers;
1946
+ } | {
1947
+ status: 200 | 201 | 500 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
1948
+ body: unknown;
1949
+ headers: Headers;
1950
+ }>;
1951
+ getProductsByCategory: (args: {
1952
+ params: {
1953
+ organizationId: string;
1954
+ categoryId: string;
1955
+ };
1956
+ cache?: RequestCache | undefined;
1957
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
1958
+ extraHeaders?: ({} & Record<string, string | undefined>) | undefined;
1959
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
1960
+ headers?: {} | undefined;
1961
+ query?: {
1962
+ search?: string | undefined;
1963
+ locale?: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu" | undefined;
1964
+ page?: number | undefined;
1965
+ limit?: number | undefined;
1966
+ published?: boolean | undefined;
1967
+ } | undefined;
1968
+ }) => Promise<{
1969
+ status: 200;
1970
+ body: {
1971
+ meta: {
1972
+ isFirstPage: boolean;
1973
+ isLastPage: boolean;
1974
+ currentPage: number;
1975
+ previousPage: number | null;
1976
+ nextPage: number | null;
1977
+ pageCount: number;
1978
+ totalCount: number;
1979
+ };
1980
+ list: {
1981
+ id: string;
1982
+ createdAt: Date;
1983
+ basePrice: number;
1984
+ discountedBasePrice: number | null;
1985
+ currency: string;
1986
+ categories: {
1987
+ translations: {
1988
+ locale: string;
1989
+ title: string;
1990
+ description?: string | undefined;
1991
+ }[];
1992
+ id: string;
1993
+ slug: string;
1994
+ createdAt: Date;
1995
+ image?: {
1996
+ id: string;
1997
+ mimeType: string;
1998
+ size: number;
1999
+ filename: string;
2000
+ url: string;
2001
+ } | null | undefined;
2002
+ publishedAt?: Date | null | undefined;
2003
+ }[];
2004
+ translations?: {
2005
+ locale: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu";
2006
+ title?: string | undefined;
2007
+ description?: string | null | undefined;
2008
+ }[] | undefined;
2009
+ slug?: string | undefined;
2010
+ publishedAt?: Date | null | undefined;
2011
+ sku?: string | undefined;
2012
+ images?: {
2013
+ id: string;
2014
+ mimeType: string;
2015
+ size: number;
2016
+ filename: string;
2017
+ url: string;
2018
+ }[] | undefined;
2019
+ modifierGroups?: {
2020
+ translations: {
2021
+ locale: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu";
2022
+ title?: string | undefined;
2023
+ }[];
2024
+ id: string;
2025
+ selectMin: number;
2026
+ selectMax: number;
2027
+ defaultLocale?: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu" | undefined;
2028
+ modifiers?: {
2029
+ title: string;
2030
+ price: number;
2031
+ id?: string | undefined;
2032
+ sku?: string | undefined;
2033
+ }[] | undefined;
2034
+ }[] | undefined;
2035
+ manufacturerId?: string | null | undefined;
2036
+ }[];
2037
+ };
2038
+ headers: Headers;
2039
+ } | {
2040
+ status: 400;
2041
+ body: {
2042
+ message: string;
2043
+ status: number;
2044
+ };
2045
+ headers: Headers;
2046
+ } | {
2047
+ status: 401;
2048
+ body: {
2049
+ message: string;
2050
+ status: number;
2051
+ };
2052
+ headers: Headers;
2053
+ } | {
2054
+ status: 404 | 201 | 204 | 500 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
2055
+ body: unknown;
2056
+ headers: Headers;
2057
+ }>;
2058
+ };
2059
+ shippingMethod: {
2060
+ getShippingMethod: (args: {
2061
+ params: {
2062
+ id: string;
2063
+ organizationId: string;
2064
+ };
2065
+ cache?: RequestCache | undefined;
2066
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
2067
+ extraHeaders?: ({} & Record<string, string | undefined>) | undefined;
2068
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
2069
+ headers?: {} | undefined;
2070
+ }) => Promise<{
2071
+ status: 404;
2072
+ body: {
2073
+ message: string;
2074
+ status: number;
2075
+ };
2076
+ headers: Headers;
2077
+ } | {
2078
+ status: 200;
2079
+ body: {
2080
+ id: string;
2081
+ createdAt: Date;
2082
+ title: string;
2083
+ providerName: string;
2084
+ shippingZones: {
2085
+ title: string;
2086
+ price: number;
2087
+ distanceUpto: number;
2088
+ minimumOrderAmount: number | null;
2089
+ eta: string;
2090
+ id?: string | undefined;
2091
+ }[];
2092
+ updatedAt: Date;
2093
+ providerLogo?: {
2094
+ id: string;
2095
+ mimeType: string;
2096
+ size: number;
2097
+ filename: string;
2098
+ url: string;
2099
+ } | null | undefined;
2100
+ requireDateOfDelivery?: boolean | undefined;
2101
+ eligibleShippingZone?: {
2102
+ title: string;
2103
+ price: number;
2104
+ distanceUpto: number;
2105
+ minimumOrderAmount: number | null;
2106
+ eta: string;
2107
+ id?: string | undefined;
2108
+ } | undefined;
2109
+ };
2110
+ headers: Headers;
2111
+ } | {
2112
+ status: 401;
2113
+ body: {
2114
+ message: string;
2115
+ status: number;
2116
+ };
2117
+ headers: Headers;
2118
+ } | {
2119
+ status: 400 | 201 | 204 | 500 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
2120
+ body: unknown;
2121
+ headers: Headers;
2122
+ }>;
2123
+ accessEligibility: (args: {
2124
+ params: {
2125
+ organizationId: string;
2126
+ };
2127
+ cache?: RequestCache | undefined;
2128
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
2129
+ extraHeaders?: ({} & Record<string, string | undefined>) | undefined;
2130
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
2131
+ headers?: {} | undefined;
2132
+ }) => Promise<{
2133
+ status: 200;
2134
+ body: {
2135
+ id: string;
2136
+ createdAt: Date;
2137
+ title: string;
2138
+ providerName: string;
2139
+ shippingZones: {
2140
+ title: string;
2141
+ price: number;
2142
+ distanceUpto: number;
2143
+ minimumOrderAmount: number | null;
2144
+ eta: string;
2145
+ id?: string | undefined;
2146
+ }[];
2147
+ updatedAt: Date;
2148
+ providerLogo?: {
2149
+ id: string;
2150
+ mimeType: string;
2151
+ size: number;
2152
+ filename: string;
2153
+ url: string;
2154
+ } | null | undefined;
2155
+ requireDateOfDelivery?: boolean | undefined;
2156
+ eligibleShippingZone?: {
2157
+ title: string;
2158
+ price: number;
2159
+ distanceUpto: number;
2160
+ minimumOrderAmount: number | null;
2161
+ eta: string;
2162
+ id?: string | undefined;
2163
+ } | undefined;
2164
+ }[];
2165
+ headers: Headers;
2166
+ } | {
2167
+ status: 404 | 400 | 401 | 201 | 204 | 500 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
2168
+ body: unknown;
2169
+ headers: Headers;
2170
+ }>;
2171
+ getShippingMethods: (args: {
2172
+ params: {
2173
+ organizationId: string;
2174
+ };
2175
+ cache?: RequestCache | undefined;
2176
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
2177
+ extraHeaders?: ({} & Record<string, string | undefined>) | undefined;
2178
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
2179
+ headers?: {} | undefined;
2180
+ query?: {
2181
+ search?: string | undefined;
2182
+ locale?: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu" | undefined;
2183
+ page?: number | undefined;
2184
+ limit?: number | undefined;
2185
+ published?: boolean | undefined;
2186
+ } | undefined;
2187
+ }) => Promise<{
2188
+ status: 200;
2189
+ body: {
2190
+ meta: {
2191
+ isFirstPage: boolean;
2192
+ isLastPage: boolean;
2193
+ currentPage: number;
2194
+ previousPage: number | null;
2195
+ nextPage: number | null;
2196
+ pageCount: number;
2197
+ totalCount: number;
2198
+ };
2199
+ list: {
2200
+ id: string;
2201
+ createdAt: Date;
2202
+ title: string;
2203
+ providerName: string;
2204
+ shippingZones: {
2205
+ title: string;
2206
+ price: number;
2207
+ distanceUpto: number;
2208
+ minimumOrderAmount: number | null;
2209
+ eta: string;
2210
+ id?: string | undefined;
2211
+ }[];
2212
+ updatedAt: Date;
2213
+ providerLogo?: {
2214
+ id: string;
2215
+ mimeType: string;
2216
+ size: number;
2217
+ filename: string;
2218
+ url: string;
2219
+ } | null | undefined;
2220
+ requireDateOfDelivery?: boolean | undefined;
2221
+ eligibleShippingZone?: {
2222
+ title: string;
2223
+ price: number;
2224
+ distanceUpto: number;
2225
+ minimumOrderAmount: number | null;
2226
+ eta: string;
2227
+ id?: string | undefined;
2228
+ } | undefined;
2229
+ }[];
2230
+ };
2231
+ headers: Headers;
2232
+ } | {
2233
+ status: 400;
2234
+ body: {
2235
+ message: string;
2236
+ status: number;
2237
+ };
2238
+ headers: Headers;
2239
+ } | {
2240
+ status: 401;
2241
+ body: {
2242
+ message: string;
2243
+ status: number;
2244
+ };
2245
+ headers: Headers;
2246
+ } | {
2247
+ status: 404 | 201 | 204 | 500 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
2248
+ body: unknown;
2249
+ headers: Headers;
2250
+ }>;
2251
+ createShippingMethod: (args: {
2252
+ params: {
2253
+ organizationId: string;
2254
+ };
2255
+ body: {
2256
+ title: string;
2257
+ providerName: string;
2258
+ shippingZones: {
2259
+ title: string;
2260
+ price: number;
2261
+ distanceUpto: number;
2262
+ eta: string;
2263
+ id?: string | undefined;
2264
+ minimumOrderAmount?: string | number | null | undefined;
2265
+ }[];
2266
+ providerLogo?: {
2267
+ id: string;
2268
+ mimeType: string;
2269
+ size: number;
2270
+ filename: string;
2271
+ url: string;
2272
+ } | null | undefined;
2273
+ requireDateOfDelivery?: boolean | undefined;
2274
+ providerLogoId?: string | undefined;
2275
+ };
2276
+ cache?: RequestCache | undefined;
2277
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
2278
+ extraHeaders?: ({} & Record<string, string | undefined>) | undefined;
2279
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
2280
+ headers?: {} | undefined;
2281
+ }) => Promise<{
2282
+ status: 404;
2283
+ body: {
2284
+ message: string;
2285
+ status: number;
2286
+ };
2287
+ headers: Headers;
2288
+ } | {
2289
+ status: 400;
2290
+ body: {
2291
+ message: string;
2292
+ status: number;
2293
+ };
2294
+ headers: Headers;
2295
+ } | {
2296
+ status: 401;
2297
+ body: {
2298
+ message: string;
2299
+ status: number;
2300
+ };
2301
+ headers: Headers;
2302
+ } | {
2303
+ status: 201;
2304
+ body: {
2305
+ id: string;
2306
+ createdAt: Date;
2307
+ title: string;
2308
+ providerName: string;
2309
+ shippingZones: {
2310
+ title: string;
2311
+ price: number;
2312
+ distanceUpto: number;
2313
+ minimumOrderAmount: number | null;
2314
+ eta: string;
2315
+ id?: string | undefined;
2316
+ }[];
2317
+ updatedAt: Date;
2318
+ providerLogo?: {
2319
+ id: string;
2320
+ mimeType: string;
2321
+ size: number;
2322
+ filename: string;
2323
+ url: string;
2324
+ } | null | undefined;
2325
+ requireDateOfDelivery?: boolean | undefined;
2326
+ eligibleShippingZone?: {
2327
+ title: string;
2328
+ price: number;
2329
+ distanceUpto: number;
2330
+ minimumOrderAmount: number | null;
2331
+ eta: string;
2332
+ id?: string | undefined;
2333
+ } | undefined;
2334
+ };
2335
+ headers: Headers;
2336
+ } | {
2337
+ status: 200 | 204 | 500 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
2338
+ body: unknown;
2339
+ headers: Headers;
2340
+ }>;
2341
+ updateShippingMethod: (args: {
2342
+ params: {
2343
+ id: string;
2344
+ organizationId: string;
2345
+ };
2346
+ cache?: RequestCache | undefined;
2347
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
2348
+ extraHeaders?: ({} & Record<string, string | undefined>) | undefined;
2349
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
2350
+ headers?: {} | undefined;
2351
+ body?: {
2352
+ title?: string | undefined;
2353
+ providerName?: string | undefined;
2354
+ providerLogo?: {
2355
+ id: string;
2356
+ mimeType: string;
2357
+ size: number;
2358
+ filename: string;
2359
+ url: string;
2360
+ } | null | undefined;
2361
+ requireDateOfDelivery?: boolean | undefined;
2362
+ shippingZones?: {
2363
+ title: string;
2364
+ price: number;
2365
+ distanceUpto: number;
2366
+ eta: string;
2367
+ id?: string | undefined;
2368
+ minimumOrderAmount?: string | number | null | undefined;
2369
+ }[] | undefined;
2370
+ providerLogoId?: string | undefined;
2371
+ } | undefined;
2372
+ }) => Promise<{
2373
+ status: 404;
2374
+ body: {
2375
+ message: string;
2376
+ status: number;
2377
+ };
2378
+ headers: Headers;
2379
+ } | {
2380
+ status: 200;
2381
+ body: {
2382
+ id: string;
2383
+ createdAt: Date;
2384
+ title: string;
2385
+ providerName: string;
2386
+ shippingZones: {
2387
+ title: string;
2388
+ price: number;
2389
+ distanceUpto: number;
2390
+ minimumOrderAmount: number | null;
2391
+ eta: string;
2392
+ id?: string | undefined;
2393
+ }[];
2394
+ updatedAt: Date;
2395
+ providerLogo?: {
2396
+ id: string;
2397
+ mimeType: string;
2398
+ size: number;
2399
+ filename: string;
2400
+ url: string;
2401
+ } | null | undefined;
2402
+ requireDateOfDelivery?: boolean | undefined;
2403
+ eligibleShippingZone?: {
2404
+ title: string;
2405
+ price: number;
2406
+ distanceUpto: number;
2407
+ minimumOrderAmount: number | null;
2408
+ eta: string;
2409
+ id?: string | undefined;
2410
+ } | undefined;
2411
+ };
2412
+ headers: Headers;
2413
+ } | {
2414
+ status: 400;
2415
+ body: {
2416
+ message: string;
2417
+ status: number;
2418
+ };
2419
+ headers: Headers;
2420
+ } | {
2421
+ status: 401;
2422
+ body: {
2423
+ message: string;
2424
+ status: number;
2425
+ };
2426
+ headers: Headers;
2427
+ } | {
2428
+ status: 201 | 204 | 500 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
2429
+ body: unknown;
2430
+ headers: Headers;
2431
+ }>;
2432
+ deleteShippingMethod: (args: {
2433
+ params: {
2434
+ id: string;
2435
+ organizationId: string;
2436
+ };
2437
+ cache?: RequestCache | undefined;
2438
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
2439
+ extraHeaders?: ({} & Record<string, string | undefined>) | undefined;
2440
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
2441
+ headers?: {} | undefined;
2442
+ }) => Promise<{
2443
+ status: 404;
2444
+ body: {
2445
+ message: string;
2446
+ status: number;
2447
+ };
2448
+ headers: Headers;
2449
+ } | {
2450
+ status: 400;
2451
+ body: {
2452
+ message: string;
2453
+ status: number;
2454
+ };
2455
+ headers: Headers;
2456
+ } | {
2457
+ status: 401;
2458
+ body: {
2459
+ message: string;
2460
+ status: number;
2461
+ };
2462
+ headers: Headers;
2463
+ } | {
2464
+ status: 204;
2465
+ body: undefined;
2466
+ headers: Headers;
2467
+ } | {
2468
+ status: 200 | 201 | 500 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
2469
+ body: unknown;
2470
+ headers: Headers;
2471
+ }>;
2472
+ };
2473
+ order: {
2474
+ getOrders: (args: {
2475
+ params: {
2476
+ organizationId: string;
2477
+ };
2478
+ cache?: RequestCache | undefined;
2479
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
2480
+ extraHeaders?: ({} & Record<string, string | undefined>) | undefined;
2481
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
2482
+ headers?: {} | undefined;
2483
+ query?: {
2484
+ search?: string | undefined;
2485
+ locale?: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu" | undefined;
2486
+ page?: number | undefined;
2487
+ limit?: number | undefined;
2488
+ published?: boolean | undefined;
2489
+ } | undefined;
2490
+ }) => Promise<{
2491
+ status: 200;
2492
+ body: {
2493
+ meta: {
2494
+ isFirstPage: boolean;
2495
+ isLastPage: boolean;
2496
+ currentPage: number;
2497
+ previousPage: number | null;
2498
+ nextPage: number | null;
2499
+ pageCount: number;
2500
+ totalCount: number;
2501
+ };
2502
+ list: {
2503
+ status: "pending" | "accepted" | "ready-for-dispatch" | "dispatched" | "completed" | "cancelled";
2504
+ id: string;
2505
+ createdAt: Date;
2506
+ currency: "USD" | "EUR" | "GBP" | "JPY" | "AUD" | "CAD" | "CHF" | "CNY" | "SEK" | "NZD" | "MXN" | "SGD" | "HKD" | "NOK" | "KRW" | "TRY" | "RUB" | "INR" | "BRL" | "ZAR" | "DKK" | "PLN" | "THB" | "IDR" | "HUF" | "CZK" | "ILS" | "PHP" | "AED" | "COP" | "SAR" | "MYR" | "RON";
2507
+ items: {
2508
+ translations: {
2509
+ locale: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu";
2510
+ title: string;
2511
+ subtitle: string;
2512
+ }[];
2513
+ quantity: number;
2514
+ rawData: {
2515
+ modifierGroups: {
2516
+ id: string;
2517
+ modifiers: {
2518
+ id: string;
2519
+ quantity: number;
2520
+ }[];
2521
+ }[];
2522
+ productId: string;
2523
+ quantity?: number | undefined;
2524
+ };
2525
+ unitPrice: number;
2526
+ totalPrice: number;
2527
+ productSnapshotId: string;
2528
+ image?: {
2529
+ id: string;
2530
+ mimeType: string;
2531
+ size: number;
2532
+ filename: string;
2533
+ url: string;
2534
+ } | null | undefined;
2535
+ }[];
2536
+ referenceId: string;
2537
+ token: string;
2538
+ expiresAt: Date;
2539
+ shippingMethod: {
2540
+ id: string;
2541
+ createdAt: Date;
2542
+ title: string;
2543
+ providerName: string;
2544
+ shippingZones: {
2545
+ title: string;
2546
+ price: number;
2547
+ distanceUpto: number;
2548
+ minimumOrderAmount: number | null;
2549
+ eta: string;
2550
+ id?: string | undefined;
2551
+ }[];
2552
+ updatedAt: Date;
2553
+ providerLogo?: {
2554
+ id: string;
2555
+ mimeType: string;
2556
+ size: number;
2557
+ filename: string;
2558
+ url: string;
2559
+ } | null | undefined;
2560
+ requireDateOfDelivery?: boolean | undefined;
2561
+ eligibleShippingZone?: {
2562
+ title: string;
2563
+ price: number;
2564
+ distanceUpto: number;
2565
+ minimumOrderAmount: number | null;
2566
+ eta: string;
2567
+ id?: string | undefined;
2568
+ } | undefined;
2569
+ } | null;
2570
+ fulfilmentMethod: "delivery" | "pickup";
2571
+ payment: {
2572
+ id: string;
2573
+ status: "pending" | "succeeded" | "refunded" | "failed" | "canceled";
2574
+ currency: "USD" | "EUR" | "GBP" | "JPY" | "AUD" | "CAD" | "CHF" | "CNY" | "SEK" | "NZD" | "MXN" | "SGD" | "HKD" | "NOK" | "KRW" | "TRY" | "RUB" | "INR" | "BRL" | "ZAR" | "DKK" | "PLN" | "THB" | "IDR" | "HUF" | "CZK" | "ILS" | "PHP" | "AED" | "COP" | "SAR" | "MYR" | "RON";
2575
+ provider: "stripe" | "revolut" | "payu" | "not_applicable";
2576
+ method: "card" | "blik" | "cash_on_delivery" | "paypal";
2577
+ shipping: number;
2578
+ subtotal: number;
2579
+ total: number;
2580
+ discount: number;
2581
+ };
2582
+ acceptedAt?: Date | null | undefined;
2583
+ dispatchedAt?: Date | null | undefined;
2584
+ readyForDispatchAt?: Date | null | undefined;
2585
+ completedAt?: Date | null | undefined;
2586
+ cancelledAt?: Date | null | undefined;
2587
+ shippingAddress?: {
2588
+ id: string;
2589
+ addressLineOne: string;
2590
+ city: string;
2591
+ country: string;
2592
+ placeId: string;
2593
+ firstname?: string | null | undefined;
2594
+ lastname?: string | null | undefined;
2595
+ phone?: string | null | undefined;
2596
+ doorNumber?: string | null | undefined;
2597
+ addressLineTwo?: string | null | undefined;
2598
+ zipCode?: string | undefined;
2599
+ deliveryInstructions?: string | null | undefined;
2600
+ } | null | undefined;
2601
+ }[];
2602
+ };
2603
+ headers: Headers;
2604
+ } | {
2605
+ status: 400;
2606
+ body: {
2607
+ message: string;
2608
+ status: number;
2609
+ };
2610
+ headers: Headers;
2611
+ } | {
2612
+ status: 401;
2613
+ body: {
2614
+ message: string;
2615
+ status: number;
2616
+ };
2617
+ headers: Headers;
2618
+ } | {
2619
+ status: 404 | 201 | 204 | 500 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
2620
+ body: unknown;
2621
+ headers: Headers;
2622
+ }>;
2623
+ createOrder: (args: {
2624
+ params: {
2625
+ organizationId: string;
2626
+ };
2627
+ body: {
2628
+ items: {
2629
+ modifierGroups: {
2630
+ id: string;
2631
+ modifiers: {
2632
+ id: string;
2633
+ quantity?: number | undefined;
2634
+ }[];
2635
+ }[];
2636
+ productId: string;
2637
+ quantity?: number | undefined;
2638
+ }[];
2639
+ payment: {
2640
+ provider: "stripe" | "revolut" | "payu" | "not_applicable";
2641
+ method: "card" | "blik" | "cash_on_delivery" | "paypal";
2642
+ };
2643
+ checkoutBaseUrl: string;
2644
+ shippingMethodId?: string | undefined;
2645
+ fulfilmentMethod?: "delivery" | "pickup" | undefined;
2646
+ };
2647
+ cache?: RequestCache | undefined;
2648
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
2649
+ extraHeaders?: ({
2650
+ "set-cookie"?: undefined;
2651
+ } & Record<string, string | undefined>) | undefined;
2652
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
2653
+ headers?: {
2654
+ "set-cookie"?: string | undefined;
2655
+ } | undefined;
2656
+ }) => Promise<{
2657
+ status: 404;
2658
+ body: {
2659
+ message: string;
2660
+ status: number;
2661
+ };
2662
+ headers: Headers;
2663
+ } | {
2664
+ status: 400;
2665
+ body: {
2666
+ message: string;
2667
+ status: number;
2668
+ };
2669
+ headers: Headers;
2670
+ } | {
2671
+ status: 401;
2672
+ body: {
2673
+ message: string;
2674
+ status: number;
2675
+ };
2676
+ headers: Headers;
2677
+ } | {
2678
+ status: 201;
2679
+ body: {
2680
+ order: {
2681
+ status: "pending" | "accepted" | "ready-for-dispatch" | "dispatched" | "completed" | "cancelled";
2682
+ id: string;
2683
+ createdAt: Date;
2684
+ currency: "USD" | "EUR" | "GBP" | "JPY" | "AUD" | "CAD" | "CHF" | "CNY" | "SEK" | "NZD" | "MXN" | "SGD" | "HKD" | "NOK" | "KRW" | "TRY" | "RUB" | "INR" | "BRL" | "ZAR" | "DKK" | "PLN" | "THB" | "IDR" | "HUF" | "CZK" | "ILS" | "PHP" | "AED" | "COP" | "SAR" | "MYR" | "RON";
2685
+ items: {
2686
+ translations: {
2687
+ locale: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu";
2688
+ title: string;
2689
+ subtitle: string;
2690
+ }[];
2691
+ quantity: number;
2692
+ rawData: {
2693
+ modifierGroups: {
2694
+ id: string;
2695
+ modifiers: {
2696
+ id: string;
2697
+ quantity: number;
2698
+ }[];
2699
+ }[];
2700
+ productId: string;
2701
+ quantity?: number | undefined;
2702
+ };
2703
+ unitPrice: number;
2704
+ totalPrice: number;
2705
+ productSnapshotId: string;
2706
+ image?: {
2707
+ id: string;
2708
+ mimeType: string;
2709
+ size: number;
2710
+ filename: string;
2711
+ url: string;
2712
+ } | null | undefined;
2713
+ }[];
2714
+ referenceId: string;
2715
+ token: string;
2716
+ expiresAt: Date;
2717
+ shippingMethod: {
2718
+ id: string;
2719
+ createdAt: Date;
2720
+ title: string;
2721
+ providerName: string;
2722
+ shippingZones: {
2723
+ title: string;
2724
+ price: number;
2725
+ distanceUpto: number;
2726
+ minimumOrderAmount: number | null;
2727
+ eta: string;
2728
+ id?: string | undefined;
2729
+ }[];
2730
+ updatedAt: Date;
2731
+ providerLogo?: {
2732
+ id: string;
2733
+ mimeType: string;
2734
+ size: number;
2735
+ filename: string;
2736
+ url: string;
2737
+ } | null | undefined;
2738
+ requireDateOfDelivery?: boolean | undefined;
2739
+ eligibleShippingZone?: {
2740
+ title: string;
2741
+ price: number;
2742
+ distanceUpto: number;
2743
+ minimumOrderAmount: number | null;
2744
+ eta: string;
2745
+ id?: string | undefined;
2746
+ } | undefined;
2747
+ } | null;
2748
+ fulfilmentMethod: "delivery" | "pickup";
2749
+ payment: {
2750
+ id: string;
2751
+ status: "pending" | "succeeded" | "refunded" | "failed" | "canceled";
2752
+ currency: "USD" | "EUR" | "GBP" | "JPY" | "AUD" | "CAD" | "CHF" | "CNY" | "SEK" | "NZD" | "MXN" | "SGD" | "HKD" | "NOK" | "KRW" | "TRY" | "RUB" | "INR" | "BRL" | "ZAR" | "DKK" | "PLN" | "THB" | "IDR" | "HUF" | "CZK" | "ILS" | "PHP" | "AED" | "COP" | "SAR" | "MYR" | "RON";
2753
+ provider: "stripe" | "revolut" | "payu" | "not_applicable";
2754
+ method: "card" | "blik" | "cash_on_delivery" | "paypal";
2755
+ shipping: number;
2756
+ subtotal: number;
2757
+ total: number;
2758
+ discount: number;
2759
+ };
2760
+ acceptedAt?: Date | null | undefined;
2761
+ dispatchedAt?: Date | null | undefined;
2762
+ readyForDispatchAt?: Date | null | undefined;
2763
+ completedAt?: Date | null | undefined;
2764
+ cancelledAt?: Date | null | undefined;
2765
+ shippingAddress?: {
2766
+ id: string;
2767
+ addressLineOne: string;
2768
+ city: string;
2769
+ country: string;
2770
+ placeId: string;
2771
+ firstname?: string | null | undefined;
2772
+ lastname?: string | null | undefined;
2773
+ phone?: string | null | undefined;
2774
+ doorNumber?: string | null | undefined;
2775
+ addressLineTwo?: string | null | undefined;
2776
+ zipCode?: string | undefined;
2777
+ deliveryInstructions?: string | null | undefined;
2778
+ } | null | undefined;
2779
+ };
2780
+ redirectUrl?: string | undefined;
2781
+ };
2782
+ headers: Headers;
2783
+ } | {
2784
+ status: 200 | 204 | 500 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
2785
+ body: unknown;
2786
+ headers: Headers;
2787
+ }>;
2788
+ getOrder: (args: {
2789
+ params: {
2790
+ id: string;
2791
+ organizationId: string;
2792
+ };
2793
+ cache?: RequestCache | undefined;
2794
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
2795
+ extraHeaders?: ({} & Record<string, string | undefined>) | undefined;
2796
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
2797
+ headers?: {} | undefined;
2798
+ }) => Promise<{
2799
+ status: 404;
2800
+ body: {
2801
+ message: string;
2802
+ status: number;
2803
+ };
2804
+ headers: Headers;
2805
+ } | {
2806
+ status: 200;
2807
+ body: {
2808
+ status: "pending" | "accepted" | "ready-for-dispatch" | "dispatched" | "completed" | "cancelled";
2809
+ id: string;
2810
+ createdAt: Date;
2811
+ currency: "USD" | "EUR" | "GBP" | "JPY" | "AUD" | "CAD" | "CHF" | "CNY" | "SEK" | "NZD" | "MXN" | "SGD" | "HKD" | "NOK" | "KRW" | "TRY" | "RUB" | "INR" | "BRL" | "ZAR" | "DKK" | "PLN" | "THB" | "IDR" | "HUF" | "CZK" | "ILS" | "PHP" | "AED" | "COP" | "SAR" | "MYR" | "RON";
2812
+ items: {
2813
+ translations: {
2814
+ locale: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu";
2815
+ title: string;
2816
+ subtitle: string;
2817
+ }[];
2818
+ quantity: number;
2819
+ rawData: {
2820
+ modifierGroups: {
2821
+ id: string;
2822
+ modifiers: {
2823
+ id: string;
2824
+ quantity: number;
2825
+ }[];
2826
+ }[];
2827
+ productId: string;
2828
+ quantity?: number | undefined;
2829
+ };
2830
+ unitPrice: number;
2831
+ totalPrice: number;
2832
+ productSnapshotId: string;
2833
+ image?: {
2834
+ id: string;
2835
+ mimeType: string;
2836
+ size: number;
2837
+ filename: string;
2838
+ url: string;
2839
+ } | null | undefined;
2840
+ }[];
2841
+ referenceId: string;
2842
+ token: string;
2843
+ expiresAt: Date;
2844
+ shippingMethod: {
2845
+ id: string;
2846
+ createdAt: Date;
2847
+ title: string;
2848
+ providerName: string;
2849
+ shippingZones: {
2850
+ title: string;
2851
+ price: number;
2852
+ distanceUpto: number;
2853
+ minimumOrderAmount: number | null;
2854
+ eta: string;
2855
+ id?: string | undefined;
2856
+ }[];
2857
+ updatedAt: Date;
2858
+ providerLogo?: {
2859
+ id: string;
2860
+ mimeType: string;
2861
+ size: number;
2862
+ filename: string;
2863
+ url: string;
2864
+ } | null | undefined;
2865
+ requireDateOfDelivery?: boolean | undefined;
2866
+ eligibleShippingZone?: {
2867
+ title: string;
2868
+ price: number;
2869
+ distanceUpto: number;
2870
+ minimumOrderAmount: number | null;
2871
+ eta: string;
2872
+ id?: string | undefined;
2873
+ } | undefined;
2874
+ } | null;
2875
+ fulfilmentMethod: "delivery" | "pickup";
2876
+ payment: {
2877
+ id: string;
2878
+ status: "pending" | "succeeded" | "refunded" | "failed" | "canceled";
2879
+ currency: "USD" | "EUR" | "GBP" | "JPY" | "AUD" | "CAD" | "CHF" | "CNY" | "SEK" | "NZD" | "MXN" | "SGD" | "HKD" | "NOK" | "KRW" | "TRY" | "RUB" | "INR" | "BRL" | "ZAR" | "DKK" | "PLN" | "THB" | "IDR" | "HUF" | "CZK" | "ILS" | "PHP" | "AED" | "COP" | "SAR" | "MYR" | "RON";
2880
+ provider: "stripe" | "revolut" | "payu" | "not_applicable";
2881
+ method: "card" | "blik" | "cash_on_delivery" | "paypal";
2882
+ shipping: number;
2883
+ subtotal: number;
2884
+ total: number;
2885
+ discount: number;
2886
+ };
2887
+ acceptedAt?: Date | null | undefined;
2888
+ dispatchedAt?: Date | null | undefined;
2889
+ readyForDispatchAt?: Date | null | undefined;
2890
+ completedAt?: Date | null | undefined;
2891
+ cancelledAt?: Date | null | undefined;
2892
+ shippingAddress?: {
2893
+ id: string;
2894
+ addressLineOne: string;
2895
+ city: string;
2896
+ country: string;
2897
+ placeId: string;
2898
+ firstname?: string | null | undefined;
2899
+ lastname?: string | null | undefined;
2900
+ phone?: string | null | undefined;
2901
+ doorNumber?: string | null | undefined;
2902
+ addressLineTwo?: string | null | undefined;
2903
+ zipCode?: string | undefined;
2904
+ deliveryInstructions?: string | null | undefined;
2905
+ } | null | undefined;
2906
+ };
2907
+ headers: Headers;
2908
+ } | {
2909
+ status: 401;
2910
+ body: {
2911
+ message: string;
2912
+ status: number;
2913
+ };
2914
+ headers: Headers;
2915
+ } | {
2916
+ status: 400 | 201 | 204 | 500 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
2917
+ body: unknown;
2918
+ headers: Headers;
2919
+ }>;
2920
+ updateStatus: (args: {
2921
+ params: {
2922
+ id: string;
2923
+ organizationId: string;
2924
+ operation: "pending" | "draft" | "accepted" | "ready-for-dispatch" | "dispatched" | "completed" | "cancelled";
2925
+ };
2926
+ cache?: RequestCache | undefined;
2927
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
2928
+ extraHeaders?: ({} & Record<string, string | undefined>) | undefined;
2929
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
2930
+ headers?: {} | undefined;
2931
+ }) => Promise<{
2932
+ status: 404;
2933
+ body: {
2934
+ message: string;
2935
+ status: number;
2936
+ };
2937
+ headers: Headers;
2938
+ } | {
2939
+ status: 200;
2940
+ body: {
2941
+ status: "pending" | "accepted" | "ready-for-dispatch" | "dispatched" | "completed" | "cancelled";
2942
+ id: string;
2943
+ createdAt: Date;
2944
+ currency: "USD" | "EUR" | "GBP" | "JPY" | "AUD" | "CAD" | "CHF" | "CNY" | "SEK" | "NZD" | "MXN" | "SGD" | "HKD" | "NOK" | "KRW" | "TRY" | "RUB" | "INR" | "BRL" | "ZAR" | "DKK" | "PLN" | "THB" | "IDR" | "HUF" | "CZK" | "ILS" | "PHP" | "AED" | "COP" | "SAR" | "MYR" | "RON";
2945
+ items: {
2946
+ translations: {
2947
+ locale: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu";
2948
+ title: string;
2949
+ subtitle: string;
2950
+ }[];
2951
+ quantity: number;
2952
+ rawData: {
2953
+ modifierGroups: {
2954
+ id: string;
2955
+ modifiers: {
2956
+ id: string;
2957
+ quantity: number;
2958
+ }[];
2959
+ }[];
2960
+ productId: string;
2961
+ quantity?: number | undefined;
2962
+ };
2963
+ unitPrice: number;
2964
+ totalPrice: number;
2965
+ productSnapshotId: string;
2966
+ image?: {
2967
+ id: string;
2968
+ mimeType: string;
2969
+ size: number;
2970
+ filename: string;
2971
+ url: string;
2972
+ } | null | undefined;
2973
+ }[];
2974
+ referenceId: string;
2975
+ token: string;
2976
+ expiresAt: Date;
2977
+ shippingMethod: {
2978
+ id: string;
2979
+ createdAt: Date;
2980
+ title: string;
2981
+ providerName: string;
2982
+ shippingZones: {
2983
+ title: string;
2984
+ price: number;
2985
+ distanceUpto: number;
2986
+ minimumOrderAmount: number | null;
2987
+ eta: string;
2988
+ id?: string | undefined;
2989
+ }[];
2990
+ updatedAt: Date;
2991
+ providerLogo?: {
2992
+ id: string;
2993
+ mimeType: string;
2994
+ size: number;
2995
+ filename: string;
2996
+ url: string;
2997
+ } | null | undefined;
2998
+ requireDateOfDelivery?: boolean | undefined;
2999
+ eligibleShippingZone?: {
3000
+ title: string;
3001
+ price: number;
3002
+ distanceUpto: number;
3003
+ minimumOrderAmount: number | null;
3004
+ eta: string;
3005
+ id?: string | undefined;
3006
+ } | undefined;
3007
+ } | null;
3008
+ fulfilmentMethod: "delivery" | "pickup";
3009
+ payment: {
3010
+ id: string;
3011
+ status: "pending" | "succeeded" | "refunded" | "failed" | "canceled";
3012
+ currency: "USD" | "EUR" | "GBP" | "JPY" | "AUD" | "CAD" | "CHF" | "CNY" | "SEK" | "NZD" | "MXN" | "SGD" | "HKD" | "NOK" | "KRW" | "TRY" | "RUB" | "INR" | "BRL" | "ZAR" | "DKK" | "PLN" | "THB" | "IDR" | "HUF" | "CZK" | "ILS" | "PHP" | "AED" | "COP" | "SAR" | "MYR" | "RON";
3013
+ provider: "stripe" | "revolut" | "payu" | "not_applicable";
3014
+ method: "card" | "blik" | "cash_on_delivery" | "paypal";
3015
+ shipping: number;
3016
+ subtotal: number;
3017
+ total: number;
3018
+ discount: number;
3019
+ };
3020
+ acceptedAt?: Date | null | undefined;
3021
+ dispatchedAt?: Date | null | undefined;
3022
+ readyForDispatchAt?: Date | null | undefined;
3023
+ completedAt?: Date | null | undefined;
3024
+ cancelledAt?: Date | null | undefined;
3025
+ shippingAddress?: {
3026
+ id: string;
3027
+ addressLineOne: string;
3028
+ city: string;
3029
+ country: string;
3030
+ placeId: string;
3031
+ firstname?: string | null | undefined;
3032
+ lastname?: string | null | undefined;
3033
+ phone?: string | null | undefined;
3034
+ doorNumber?: string | null | undefined;
3035
+ addressLineTwo?: string | null | undefined;
3036
+ zipCode?: string | undefined;
3037
+ deliveryInstructions?: string | null | undefined;
3038
+ } | null | undefined;
3039
+ };
3040
+ headers: Headers;
3041
+ } | {
3042
+ status: 400;
3043
+ body: {
3044
+ message: string;
3045
+ status: number;
3046
+ };
3047
+ headers: Headers;
3048
+ } | {
3049
+ status: 401;
3050
+ body: {
3051
+ message: string;
3052
+ status: number;
3053
+ };
3054
+ headers: Headers;
3055
+ } | {
3056
+ status: 201 | 204 | 500 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
3057
+ body: unknown;
3058
+ headers: Headers;
3059
+ }>;
3060
+ deleteOrder: (args: {
3061
+ params: {
3062
+ id: string;
3063
+ organizationId: string;
3064
+ };
3065
+ cache?: RequestCache | undefined;
3066
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
3067
+ extraHeaders?: ({} & Record<string, string | undefined>) | undefined;
3068
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
3069
+ headers?: {} | undefined;
3070
+ }) => Promise<{
3071
+ status: 404;
3072
+ body: {
3073
+ message: string;
3074
+ status: number;
3075
+ };
3076
+ headers: Headers;
3077
+ } | {
3078
+ status: 400;
3079
+ body: {
3080
+ message: string;
3081
+ status: number;
3082
+ };
3083
+ headers: Headers;
3084
+ } | {
3085
+ status: 401;
3086
+ body: {
3087
+ message: string;
3088
+ status: number;
3089
+ };
3090
+ headers: Headers;
3091
+ } | {
3092
+ status: 204;
3093
+ body: undefined;
3094
+ headers: Headers;
3095
+ } | {
3096
+ status: 200 | 201 | 500 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
3097
+ body: unknown;
3098
+ headers: Headers;
3099
+ }>;
3100
+ };
3101
+ cart: {
3102
+ getCartData: (args: {
3103
+ params: {
3104
+ organizationId: string;
3105
+ };
3106
+ body: {
3107
+ items: {
3108
+ modifierGroups: {
3109
+ id: string;
3110
+ modifiers: {
3111
+ id: string;
3112
+ quantity?: number | undefined;
3113
+ }[];
3114
+ }[];
3115
+ productId: string;
3116
+ quantity?: number | undefined;
3117
+ }[];
3118
+ shippingMethodId?: string | undefined;
3119
+ };
3120
+ cache?: RequestCache | undefined;
3121
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
3122
+ extraHeaders?: ({} & Record<string, string | undefined>) | undefined;
3123
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
3124
+ headers?: {} | undefined;
3125
+ query?: {
3126
+ locale?: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu" | undefined;
3127
+ } | undefined;
3128
+ }) => Promise<{
3129
+ status: 200;
3130
+ body: {
3131
+ subtotal: number;
3132
+ total: number;
3133
+ products: Record<string, {
3134
+ id: string;
3135
+ createdAt: Date;
3136
+ title: string;
3137
+ description: string | null;
3138
+ basePrice: number;
3139
+ discountedBasePrice: number | null;
3140
+ currency: string;
3141
+ modifierGroups: {
3142
+ id: string;
3143
+ title: string | null;
3144
+ selectMin: number;
3145
+ selectMax: number;
3146
+ defaultLocale?: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu" | undefined;
3147
+ modifiers?: {
3148
+ title: string;
3149
+ price: number;
3150
+ id?: string | undefined;
3151
+ sku?: string | undefined;
3152
+ }[] | undefined;
3153
+ }[];
3154
+ categories: {
3155
+ id: string;
3156
+ }[];
3157
+ slug?: string | undefined;
3158
+ publishedAt?: Date | null | undefined;
3159
+ sku?: string | undefined;
3160
+ images?: {
3161
+ id: string;
3162
+ mimeType: string;
3163
+ size: number;
3164
+ filename: string;
3165
+ url: string;
3166
+ }[] | undefined;
3167
+ manufacturerId?: string | null | undefined;
3168
+ }>;
3169
+ invalidProductIds: string[];
3170
+ shipping?: number | undefined;
3171
+ };
3172
+ headers: Headers;
3173
+ } | {
3174
+ status: 400;
3175
+ body: {
3176
+ message: string;
3177
+ status: number;
3178
+ };
3179
+ headers: Headers;
3180
+ } | {
3181
+ status: 401;
3182
+ body: {
3183
+ message: string;
3184
+ status: number;
3185
+ };
3186
+ headers: Headers;
3187
+ } | {
3188
+ status: 404 | 201 | 204 | 500 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
3189
+ body: unknown;
3190
+ headers: Headers;
3191
+ }>;
3192
+ };
3193
+ location: {
3194
+ getPredictions: (args: {
3195
+ query: {
3196
+ query: string;
3197
+ radius?: number | undefined;
3198
+ };
3199
+ cache?: RequestCache | undefined;
3200
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
3201
+ extraHeaders?: ({} & Record<string, string | undefined>) | undefined;
3202
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
3203
+ headers?: {} | undefined;
3204
+ }) => Promise<{
3205
+ status: 200;
3206
+ body: {
3207
+ addressLineOne: string;
3208
+ placeId: string;
3209
+ text: string;
3210
+ addressLineTwo?: string | undefined;
3211
+ latitude?: number | undefined;
3212
+ longitude?: number | undefined;
3213
+ }[];
3214
+ headers: Headers;
3215
+ } | {
3216
+ status: 400;
3217
+ body: {
3218
+ message: string;
3219
+ status: number;
3220
+ };
3221
+ headers: Headers;
3222
+ } | {
3223
+ status: 401;
3224
+ body: {
3225
+ message: string;
3226
+ status: number;
3227
+ };
3228
+ headers: Headers;
3229
+ } | {
3230
+ status: 404 | 201 | 204 | 500 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
3231
+ body: unknown;
3232
+ headers: Headers;
3233
+ }>;
3234
+ getPlaceDetails: (args: {
3235
+ params: {
3236
+ placeId: string;
3237
+ };
3238
+ cache?: RequestCache | undefined;
3239
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
3240
+ extraHeaders?: ({} & Record<string, string | undefined>) | undefined;
3241
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
3242
+ headers?: {} | undefined;
3243
+ }) => Promise<{
3244
+ status: 200;
3245
+ body: {
3246
+ addressLineOne: string;
3247
+ city: string;
3248
+ country: string;
3249
+ zipCode?: string | undefined;
3250
+ };
3251
+ headers: Headers;
3252
+ } | {
3253
+ status: 400;
3254
+ body: {
3255
+ message: string;
3256
+ status: number;
3257
+ };
3258
+ headers: Headers;
3259
+ } | {
3260
+ status: 401;
3261
+ body: {
3262
+ message: string;
3263
+ status: number;
3264
+ };
3265
+ headers: Headers;
3266
+ } | {
3267
+ status: 404 | 201 | 204 | 500 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
3268
+ body: unknown;
3269
+ headers: Headers;
3270
+ }>;
3271
+ };
3272
+ shipping: {
3273
+ getShippingAddress: (args?: {
3274
+ cache?: RequestCache | undefined;
3275
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
3276
+ extraHeaders?: ({} & Record<string, string | undefined>) | undefined;
3277
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
3278
+ headers?: {} | undefined;
3279
+ } | undefined) => Promise<{
3280
+ status: 200;
3281
+ body: {
3282
+ id: string;
3283
+ firstname: string;
3284
+ lastname: string;
3285
+ phone: string;
3286
+ addressLineOne: string;
3287
+ city: string;
3288
+ country: string;
3289
+ placeId: string;
3290
+ doorNumber?: string | null | undefined;
3291
+ addressLineTwo?: string | null | undefined;
3292
+ zipCode?: string | undefined;
3293
+ deliveryInstructions?: string | null | undefined;
3294
+ } | null;
3295
+ headers: Headers;
3296
+ } | {
3297
+ status: 401;
3298
+ body: {
3299
+ message: string;
3300
+ status: number;
3301
+ };
3302
+ headers: Headers;
3303
+ } | {
3304
+ status: 404 | 400 | 201 | 204 | 500 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
3305
+ body: unknown;
3306
+ headers: Headers;
3307
+ }>;
3308
+ createShippingAddress: (args: {
3309
+ body: {
3310
+ firstname: string;
3311
+ lastname: string;
3312
+ phone: string;
3313
+ addressLineOne: string;
3314
+ city: string;
3315
+ country: string;
3316
+ placeId: string;
3317
+ doorNumber?: string | null | undefined;
3318
+ addressLineTwo?: string | null | undefined;
3319
+ zipCode?: string | undefined;
3320
+ deliveryInstructions?: string | null | undefined;
3321
+ };
3322
+ cache?: RequestCache | undefined;
3323
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
3324
+ extraHeaders?: ({} & Record<string, string | undefined>) | undefined;
3325
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
3326
+ headers?: {} | undefined;
3327
+ }) => Promise<{
3328
+ status: 400;
3329
+ body: {
3330
+ message: string;
3331
+ status: number;
3332
+ };
3333
+ headers: Headers;
3334
+ } | {
3335
+ status: 401;
3336
+ body: {
3337
+ message: string;
3338
+ status: number;
3339
+ };
3340
+ headers: Headers;
3341
+ } | {
3342
+ status: 201;
3343
+ body: {
3344
+ id: string;
3345
+ firstname: string;
3346
+ lastname: string;
3347
+ phone: string;
3348
+ addressLineOne: string;
3349
+ city: string;
3350
+ country: string;
3351
+ placeId: string;
3352
+ doorNumber?: string | null | undefined;
3353
+ addressLineTwo?: string | null | undefined;
3354
+ zipCode?: string | undefined;
3355
+ deliveryInstructions?: string | null | undefined;
3356
+ };
3357
+ headers: Headers;
3358
+ } | {
3359
+ status: 404 | 200 | 204 | 500 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
3360
+ body: unknown;
3361
+ headers: Headers;
3362
+ }>;
3363
+ updateShippingAddress: (args: {
3364
+ body: {
3365
+ placeId: string;
3366
+ firstname?: string | undefined;
3367
+ lastname?: string | undefined;
3368
+ phone?: string | undefined;
3369
+ addressLineOne?: string | undefined;
3370
+ doorNumber?: string | null | undefined;
3371
+ addressLineTwo?: string | null | undefined;
3372
+ zipCode?: string | undefined;
3373
+ city?: string | undefined;
3374
+ country?: string | undefined;
3375
+ deliveryInstructions?: string | null | undefined;
3376
+ };
3377
+ cache?: RequestCache | undefined;
3378
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
3379
+ extraHeaders?: ({} & Record<string, string | undefined>) | undefined;
3380
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
3381
+ headers?: {} | undefined;
3382
+ }) => Promise<{
3383
+ status: 200;
3384
+ body: {
3385
+ id: string;
3386
+ firstname: string;
3387
+ lastname: string;
3388
+ phone: string;
3389
+ addressLineOne: string;
3390
+ city: string;
3391
+ country: string;
3392
+ placeId: string;
3393
+ doorNumber?: string | null | undefined;
3394
+ addressLineTwo?: string | null | undefined;
3395
+ zipCode?: string | undefined;
3396
+ deliveryInstructions?: string | null | undefined;
3397
+ };
3398
+ headers: Headers;
3399
+ } | {
3400
+ status: 400;
3401
+ body: {
3402
+ message: string;
3403
+ status: number;
3404
+ };
3405
+ headers: Headers;
3406
+ } | {
3407
+ status: 401;
3408
+ body: {
3409
+ message: string;
3410
+ status: number;
3411
+ };
3412
+ headers: Headers;
3413
+ } | {
3414
+ status: 404 | 201 | 204 | 500 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
3415
+ body: unknown;
3416
+ headers: Headers;
3417
+ }>;
3418
+ };
3419
+ payment: {
3420
+ getAvailablePaymentMethods: (args: {
3421
+ params: {
3422
+ organizationId: string;
3423
+ };
3424
+ cache?: RequestCache | undefined;
3425
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
3426
+ extraHeaders?: ({} & Record<string, string | undefined>) | undefined;
3427
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
3428
+ headers?: {} | undefined;
3429
+ }) => Promise<{
3430
+ status: 200;
3431
+ body: {
3432
+ id: string;
3433
+ description: string;
3434
+ provider: "stripe" | "revolut" | "payu" | "not_applicable";
3435
+ method: "card" | "blik" | "cash_on_delivery" | "paypal";
3436
+ }[];
3437
+ headers: Headers;
3438
+ } | {
3439
+ status: 400;
3440
+ body: {
3441
+ message: string;
3442
+ status: number;
3443
+ };
3444
+ headers: Headers;
3445
+ } | {
3446
+ status: 401;
3447
+ body: {
3448
+ message: string;
3449
+ status: number;
3450
+ };
3451
+ headers: Headers;
3452
+ } | {
3453
+ status: 404 | 201 | 204 | 500 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
3454
+ body: unknown;
3455
+ headers: Headers;
3456
+ }>;
3457
+ };
3458
+ webhook: {
3459
+ webhook: (args: {
3460
+ params: {
3461
+ provider: "stripe" | "revolut";
3462
+ };
3463
+ body: any;
3464
+ cache?: RequestCache | undefined;
3465
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
3466
+ extraHeaders?: ({} & Record<string, string | undefined>) | undefined;
3467
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
3468
+ headers?: {} | undefined;
3469
+ }) => Promise<{
3470
+ status: 200;
3471
+ body: {
3472
+ received: boolean;
3473
+ };
3474
+ headers: Headers;
3475
+ } | {
3476
+ status: 400;
3477
+ body: {
3478
+ message: string;
3479
+ status: number;
3480
+ };
3481
+ headers: Headers;
3482
+ } | {
3483
+ status: 401;
3484
+ body: {
3485
+ message: string;
3486
+ status: number;
3487
+ };
3488
+ headers: Headers;
3489
+ } | {
3490
+ status: 500;
3491
+ body: {
3492
+ message: string;
3493
+ status: number;
3494
+ };
3495
+ headers: Headers;
3496
+ } | {
3497
+ status: 404 | 201 | 204 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
3498
+ body: unknown;
3499
+ headers: Headers;
3500
+ }>;
3501
+ };
3502
+ reservation: {
3503
+ createReservation: (args: {
3504
+ params: {
3505
+ organizationId: string;
3506
+ };
3507
+ body: {
3508
+ date: Date;
3509
+ firstname: string;
3510
+ lastname: string;
3511
+ phone: string;
3512
+ guests: number;
3513
+ };
3514
+ cache?: RequestCache | undefined;
3515
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
3516
+ extraHeaders?: ({} & Record<string, string | undefined>) | undefined;
3517
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
3518
+ headers?: {} | undefined;
3519
+ }) => Promise<{
3520
+ status: 400;
3521
+ body: {
3522
+ message: string;
3523
+ status: number;
3524
+ };
3525
+ headers: Headers;
3526
+ } | {
3527
+ status: 401;
3528
+ body: {
3529
+ message: string;
3530
+ status: number;
3531
+ };
3532
+ headers: Headers;
3533
+ } | {
3534
+ status: 201;
3535
+ body: {
3536
+ id: string;
3537
+ date: Date;
3538
+ firstname: string;
3539
+ lastname: string;
3540
+ phone: string;
3541
+ referenceId: string;
3542
+ guests: number;
3543
+ createdAt?: Date | null | undefined;
3544
+ acceptedAt?: Date | null | undefined;
3545
+ cancelledAt?: Date | null | undefined;
3546
+ };
3547
+ headers: Headers;
3548
+ } | {
3549
+ status: 500;
3550
+ body: {
3551
+ message: string;
3552
+ status: number;
3553
+ };
3554
+ headers: Headers;
3555
+ } | {
3556
+ status: 404 | 200 | 204 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
3557
+ body: unknown;
3558
+ headers: Headers;
3559
+ }>;
3560
+ getReservation: (args: {
3561
+ params: {
3562
+ organizationId: string;
3563
+ reservationId: string;
3564
+ };
3565
+ cache?: RequestCache | undefined;
3566
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
3567
+ extraHeaders?: ({} & Record<string, string | undefined>) | undefined;
3568
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
3569
+ headers?: {} | undefined;
3570
+ }) => Promise<{
3571
+ status: 404;
3572
+ body: {
3573
+ message: string;
3574
+ status: number;
3575
+ };
3576
+ headers: Headers;
3577
+ } | {
3578
+ status: 200;
3579
+ body: {
3580
+ id: string;
3581
+ date: Date;
3582
+ firstname: string;
3583
+ lastname: string;
3584
+ phone: string;
3585
+ referenceId: string;
3586
+ guests: number;
3587
+ createdAt?: Date | null | undefined;
3588
+ acceptedAt?: Date | null | undefined;
3589
+ cancelledAt?: Date | null | undefined;
3590
+ };
3591
+ headers: Headers;
3592
+ } | {
3593
+ status: 400;
3594
+ body: {
3595
+ message: string;
3596
+ status: number;
3597
+ };
3598
+ headers: Headers;
3599
+ } | {
3600
+ status: 401;
3601
+ body: {
3602
+ message: string;
3603
+ status: number;
3604
+ };
3605
+ headers: Headers;
3606
+ } | {
3607
+ status: 500;
3608
+ body: {
3609
+ message: string;
3610
+ status: number;
3611
+ };
3612
+ headers: Headers;
3613
+ } | {
3614
+ status: 201 | 204 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
3615
+ body: unknown;
3616
+ headers: Headers;
3617
+ }>;
3618
+ getReservations: (args: {
3619
+ params: {
3620
+ organizationId: string;
3621
+ };
3622
+ cache?: RequestCache | undefined;
3623
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
3624
+ extraHeaders?: ({} & Record<string, string | undefined>) | undefined;
3625
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
3626
+ headers?: {} | undefined;
3627
+ query?: {
3628
+ search?: string | undefined;
3629
+ locale?: "id" | "af" | "sq" | "ar_dz" | "ar_bh" | "ar_eg" | "ar_iq" | "ar_jo" | "ar_kw" | "ar_lb" | "ar_ly" | "ar_ma" | "ar_om" | "ar_qa" | "ar_sa" | "ar_sy" | "ar_tn" | "ar_ae" | "ar_ye" | "eu" | "be" | "bg" | "ca" | "zh_hk" | "zh_cn" | "zh_sg" | "zh_tw" | "hr" | "cs" | "da" | "nl_be" | "nl" | "en" | "en_au" | "en_bz" | "en_ca" | "en_ie" | "en_jm" | "en_nz" | "en_za" | "en_tt" | "en_gb" | "en_us" | "et" | "fo" | "fa" | "fi" | "fr_be" | "fr_ca" | "fr_lu" | "fr" | "fr_ch" | "gd" | "de_at" | "de_li" | "de_lu" | "de" | "de_ch" | "el" | "he" | "hi" | "hu" | "is" | "ga" | "it" | "it_ch" | "ja" | "ko" | "ku" | "lv" | "lt" | "mk" | "ml" | "ms" | "mt" | "no" | "nb" | "nn" | "pl" | "pt_br" | "pt" | "pa" | "rm" | "ro" | "ro_md" | "ru" | "ru_md" | "sr" | "sk" | "sl" | "sb" | "es_ar" | "es_bo" | "es_cl" | "es_co" | "es_cr" | "es_do" | "es_ec" | "es_sv" | "es_gt" | "es_hn" | "es_mx" | "es" | "sv" | "sv_fi" | "th" | "tr" | "uk" | "ur" | "vi" | "cy" | "ji" | "zu" | undefined;
3630
+ page?: number | undefined;
3631
+ limit?: number | undefined;
3632
+ published?: boolean | undefined;
3633
+ } | undefined;
3634
+ }) => Promise<{
3635
+ status: 200;
3636
+ body: {
3637
+ meta: {
3638
+ isFirstPage: boolean;
3639
+ isLastPage: boolean;
3640
+ currentPage: number;
3641
+ previousPage: number | null;
3642
+ nextPage: number | null;
3643
+ pageCount: number;
3644
+ totalCount: number;
3645
+ };
3646
+ list: {
3647
+ id: string;
3648
+ date: Date;
3649
+ firstname: string;
3650
+ lastname: string;
3651
+ phone: string;
3652
+ referenceId: string;
3653
+ guests: number;
3654
+ createdAt?: Date | null | undefined;
3655
+ acceptedAt?: Date | null | undefined;
3656
+ cancelledAt?: Date | null | undefined;
3657
+ }[];
3658
+ };
3659
+ headers: Headers;
3660
+ } | {
3661
+ status: 400;
3662
+ body: {
3663
+ message: string;
3664
+ status: number;
3665
+ };
3666
+ headers: Headers;
3667
+ } | {
3668
+ status: 401;
3669
+ body: {
3670
+ message: string;
3671
+ status: number;
3672
+ };
3673
+ headers: Headers;
3674
+ } | {
3675
+ status: 500;
3676
+ body: {
3677
+ message: string;
3678
+ status: number;
3679
+ };
3680
+ headers: Headers;
3681
+ } | {
3682
+ status: 404 | 201 | 204 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
3683
+ body: unknown;
3684
+ headers: Headers;
3685
+ }>;
3686
+ getUserReservations: (args: {
3687
+ params: {
3688
+ organizationId: string;
3689
+ userId: string;
3690
+ };
3691
+ cache?: RequestCache | undefined;
3692
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
3693
+ extraHeaders?: ({} & Record<string, string | undefined>) | undefined;
3694
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
3695
+ headers?: {} | undefined;
3696
+ }) => Promise<{
3697
+ status: 404;
3698
+ body: {
3699
+ message: string;
3700
+ status: number;
3701
+ };
3702
+ headers: Headers;
3703
+ } | {
3704
+ status: 200;
3705
+ body: {
3706
+ id: string;
3707
+ date: Date;
3708
+ firstname: string;
3709
+ lastname: string;
3710
+ phone: string;
3711
+ referenceId: string;
3712
+ guests: number;
3713
+ createdAt?: Date | null | undefined;
3714
+ acceptedAt?: Date | null | undefined;
3715
+ cancelledAt?: Date | null | undefined;
3716
+ }[];
3717
+ headers: Headers;
3718
+ } | {
3719
+ status: 400;
3720
+ body: {
3721
+ message: string;
3722
+ status: number;
3723
+ };
3724
+ headers: Headers;
3725
+ } | {
3726
+ status: 401;
3727
+ body: {
3728
+ message: string;
3729
+ status: number;
3730
+ };
3731
+ headers: Headers;
3732
+ } | {
3733
+ status: 500;
3734
+ body: {
3735
+ message: string;
3736
+ status: number;
3737
+ };
3738
+ headers: Headers;
3739
+ } | {
3740
+ status: 201 | 204 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
3741
+ body: unknown;
3742
+ headers: Headers;
3743
+ }>;
3744
+ updateReservationStatus: (args: {
3745
+ params: {
3746
+ organizationId: string;
3747
+ operation: "accept" | "cancel";
3748
+ reservationId: string;
3749
+ };
3750
+ body: {} | undefined;
3751
+ cache?: RequestCache | undefined;
3752
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
3753
+ extraHeaders?: ({} & Record<string, string | undefined>) | undefined;
3754
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
3755
+ headers?: {} | undefined;
3756
+ }) => Promise<{
3757
+ status: 404;
3758
+ body: {
3759
+ message: string;
3760
+ status: number;
3761
+ };
3762
+ headers: Headers;
3763
+ } | {
3764
+ status: 200;
3765
+ body: {
3766
+ id: string;
3767
+ date: Date;
3768
+ firstname: string;
3769
+ lastname: string;
3770
+ phone: string;
3771
+ referenceId: string;
3772
+ guests: number;
3773
+ createdAt?: Date | null | undefined;
3774
+ acceptedAt?: Date | null | undefined;
3775
+ cancelledAt?: Date | null | undefined;
3776
+ };
3777
+ headers: Headers;
3778
+ } | {
3779
+ status: 400;
3780
+ body: {
3781
+ message: string;
3782
+ status: number;
3783
+ };
3784
+ headers: Headers;
3785
+ } | {
3786
+ status: 401;
3787
+ body: {
3788
+ message: string;
3789
+ status: number;
3790
+ };
3791
+ headers: Headers;
3792
+ } | {
3793
+ status: 500;
3794
+ body: {
3795
+ message: string;
3796
+ status: number;
3797
+ };
3798
+ headers: Headers;
3799
+ } | {
3800
+ status: 201 | 204 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
3801
+ body: unknown;
3802
+ headers: Headers;
3803
+ }>;
3804
+ deleteReservation: (args: {
3805
+ params: {
3806
+ organizationId: string;
3807
+ reservationId: string;
3808
+ };
3809
+ body: {} | undefined;
3810
+ cache?: RequestCache | undefined;
3811
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
3812
+ extraHeaders?: ({} & Record<string, string | undefined>) | undefined;
3813
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
3814
+ headers?: {} | undefined;
3815
+ }) => Promise<{
3816
+ status: 404;
3817
+ body: {
3818
+ message: string;
3819
+ status: number;
3820
+ };
3821
+ headers: Headers;
3822
+ } | {
3823
+ status: 400;
3824
+ body: {
3825
+ message: string;
3826
+ status: number;
3827
+ };
3828
+ headers: Headers;
3829
+ } | {
3830
+ status: 401;
3831
+ body: {
3832
+ message: string;
3833
+ status: number;
3834
+ };
3835
+ headers: Headers;
3836
+ } | {
3837
+ status: 204;
3838
+ body: null;
3839
+ headers: Headers;
3840
+ } | {
3841
+ status: 500;
3842
+ body: {
3843
+ message: string;
3844
+ status: number;
3845
+ };
3846
+ headers: Headers;
3847
+ } | {
3848
+ status: 200 | 201 | 100 | 101 | 102 | 202 | 203 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
3849
+ body: unknown;
3850
+ headers: Headers;
3851
+ }>;
3852
+ };
3853
+ };