@gigapay-dev/contracts 2.0.0 → 3.0.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 (391) hide show
  1. package/build/domains/admin/index.d.ts +150 -0
  2. package/build/domains/admin/index.d.ts.map +1 -0
  3. package/build/domains/admin/index.js +72 -0
  4. package/build/domains/admin/index.js.map +1 -0
  5. package/build/domains/auth/commands.d.ts +294 -0
  6. package/build/domains/auth/commands.d.ts.map +1 -0
  7. package/build/domains/auth/commands.js +116 -0
  8. package/build/domains/auth/commands.js.map +1 -0
  9. package/build/domains/auth/dtos.d.ts +37 -0
  10. package/build/domains/auth/dtos.d.ts.map +1 -0
  11. package/build/domains/auth/dtos.js +26 -0
  12. package/build/domains/auth/dtos.js.map +1 -0
  13. package/build/domains/auth/events.d.ts +35 -0
  14. package/build/domains/auth/events.d.ts.map +1 -0
  15. package/build/domains/auth/events.js +24 -0
  16. package/build/domains/auth/events.js.map +1 -0
  17. package/build/domains/auth/index.d.ts +165 -0
  18. package/build/domains/auth/index.d.ts.map +1 -0
  19. package/build/{commands/products → domains/auth}/index.js +11 -6
  20. package/build/domains/auth/index.js.map +1 -0
  21. package/build/domains/auth/queries.d.ts +75 -0
  22. package/build/domains/auth/queries.d.ts.map +1 -0
  23. package/build/domains/auth/queries.js +25 -0
  24. package/build/domains/auth/queries.js.map +1 -0
  25. package/build/domains/catalog/commands.d.ts +255 -0
  26. package/build/domains/catalog/commands.d.ts.map +1 -0
  27. package/build/domains/catalog/commands.js +82 -0
  28. package/build/domains/catalog/commands.js.map +1 -0
  29. package/build/domains/catalog/dtos.d.ts +89 -0
  30. package/build/domains/catalog/dtos.d.ts.map +1 -0
  31. package/build/domains/catalog/dtos.js +43 -0
  32. package/build/domains/catalog/dtos.js.map +1 -0
  33. package/build/domains/catalog/index.d.ts +194 -0
  34. package/build/domains/catalog/index.d.ts.map +1 -0
  35. package/build/{commands/payment-methods → domains/catalog}/index.js +10 -4
  36. package/build/domains/catalog/index.js.map +1 -0
  37. package/build/domains/catalog/queries.d.ts +168 -0
  38. package/build/domains/catalog/queries.d.ts.map +1 -0
  39. package/build/domains/catalog/queries.js +29 -0
  40. package/build/domains/catalog/queries.js.map +1 -0
  41. package/build/domains/config/index.d.ts +40 -0
  42. package/build/domains/config/index.d.ts.map +1 -0
  43. package/build/domains/config/index.js +18 -0
  44. package/build/domains/config/index.js.map +1 -0
  45. package/build/domains/orders/commands.d.ts +262 -0
  46. package/build/domains/orders/commands.d.ts.map +1 -0
  47. package/build/domains/orders/commands.js +47 -0
  48. package/build/domains/orders/commands.js.map +1 -0
  49. package/build/domains/orders/dtos.d.ts +112 -0
  50. package/build/domains/orders/dtos.d.ts.map +1 -0
  51. package/build/domains/orders/dtos.js +44 -0
  52. package/build/domains/orders/dtos.js.map +1 -0
  53. package/build/domains/orders/events.d.ts +21 -0
  54. package/build/domains/orders/events.d.ts.map +1 -0
  55. package/build/domains/orders/events.js +19 -0
  56. package/build/domains/orders/events.js.map +1 -0
  57. package/build/domains/orders/index.d.ts +381 -0
  58. package/build/domains/orders/index.d.ts.map +1 -0
  59. package/build/domains/orders/index.js +28 -0
  60. package/build/domains/orders/index.js.map +1 -0
  61. package/build/domains/orders/queries.d.ts +532 -0
  62. package/build/domains/orders/queries.d.ts.map +1 -0
  63. package/build/domains/orders/queries.js +40 -0
  64. package/build/domains/orders/queries.js.map +1 -0
  65. package/build/domains/payments/index.d.ts +96 -0
  66. package/build/domains/payments/index.d.ts.map +1 -0
  67. package/build/domains/payments/index.js +34 -0
  68. package/build/domains/payments/index.js.map +1 -0
  69. package/build/domains/products/commands.d.ts +302 -0
  70. package/build/domains/products/commands.d.ts.map +1 -0
  71. package/build/domains/products/commands.js +101 -0
  72. package/build/domains/products/commands.js.map +1 -0
  73. package/build/domains/products/dtos.d.ts +122 -0
  74. package/build/domains/products/dtos.d.ts.map +1 -0
  75. package/build/domains/products/dtos.js +54 -0
  76. package/build/domains/products/dtos.js.map +1 -0
  77. package/build/domains/products/index.d.ts +276 -0
  78. package/build/domains/products/index.d.ts.map +1 -0
  79. package/build/{commands/auth → domains/products}/index.js +10 -6
  80. package/build/domains/products/index.js.map +1 -0
  81. package/build/domains/products/queries.d.ts +334 -0
  82. package/build/domains/products/queries.d.ts.map +1 -0
  83. package/build/domains/products/queries.js +41 -0
  84. package/build/domains/products/queries.js.map +1 -0
  85. package/build/domains/promo-codes/index.d.ts +92 -0
  86. package/build/domains/promo-codes/index.d.ts.map +1 -0
  87. package/build/domains/promo-codes/index.js +40 -0
  88. package/build/domains/promo-codes/index.js.map +1 -0
  89. package/build/domains/stats/index.d.ts +274 -0
  90. package/build/domains/stats/index.d.ts.map +1 -0
  91. package/build/domains/stats/index.js +76 -0
  92. package/build/domains/stats/index.js.map +1 -0
  93. package/build/domains/users/dtos.d.ts +9 -0
  94. package/build/domains/users/dtos.d.ts.map +1 -0
  95. package/build/domains/users/dtos.js +11 -0
  96. package/build/domains/users/dtos.js.map +1 -0
  97. package/build/domains/users/index.d.ts +101 -0
  98. package/build/domains/users/index.d.ts.map +1 -0
  99. package/build/domains/users/index.js +52 -0
  100. package/build/domains/users/index.js.map +1 -0
  101. package/build/index.d.ts +1309 -1
  102. package/build/index.d.ts.map +1 -1
  103. package/build/index.js +34 -1
  104. package/build/index.js.map +1 -1
  105. package/build/shared/api-response.d.ts +17 -0
  106. package/build/shared/api-response.d.ts.map +1 -0
  107. package/build/shared/api-response.js +22 -0
  108. package/build/shared/api-response.js.map +1 -0
  109. package/build/shared/common.d.ts +14 -0
  110. package/build/shared/common.d.ts.map +1 -0
  111. package/build/shared/common.js +8 -0
  112. package/build/shared/common.js.map +1 -0
  113. package/build/shared/errors.d.ts +34 -0
  114. package/build/shared/errors.d.ts.map +1 -0
  115. package/build/shared/errors.js +36 -0
  116. package/build/shared/errors.js.map +1 -0
  117. package/build/shared/index.d.ts +7 -0
  118. package/build/shared/index.d.ts.map +1 -0
  119. package/build/{commands/orders → shared}/index.js +6 -6
  120. package/build/shared/index.js.map +1 -0
  121. package/build/shared/money.d.ts +32 -0
  122. package/build/shared/money.d.ts.map +1 -0
  123. package/build/shared/money.js +20 -0
  124. package/build/shared/money.js.map +1 -0
  125. package/build/shared/pagination.d.ts +27 -0
  126. package/build/shared/pagination.d.ts.map +1 -0
  127. package/build/{commands/common.js → shared/pagination.js} +2 -9
  128. package/build/shared/pagination.js.map +1 -0
  129. package/build/shared/types.d.ts +20 -0
  130. package/build/shared/types.d.ts.map +1 -0
  131. package/build/shared/types.js.map +1 -0
  132. package/package.json +43 -48
  133. package/build/client.d.ts +0 -934
  134. package/build/client.d.ts.map +0 -1
  135. package/build/client.js +0 -184
  136. package/build/client.js.map +0 -1
  137. package/build/commands/api-response.d.ts +0 -19
  138. package/build/commands/api-response.d.ts.map +0 -1
  139. package/build/commands/api-response.js +0 -14
  140. package/build/commands/api-response.js.map +0 -1
  141. package/build/commands/auth/confirm.d.ts +0 -12
  142. package/build/commands/auth/confirm.d.ts.map +0 -1
  143. package/build/commands/auth/confirm.js +0 -12
  144. package/build/commands/auth/confirm.js.map +0 -1
  145. package/build/commands/auth/endpoints.d.ts +0 -115
  146. package/build/commands/auth/endpoints.d.ts.map +0 -1
  147. package/build/commands/auth/endpoints.js +0 -51
  148. package/build/commands/auth/endpoints.js.map +0 -1
  149. package/build/commands/auth/index.d.ts +0 -7
  150. package/build/commands/auth/index.d.ts.map +0 -1
  151. package/build/commands/auth/index.js.map +0 -1
  152. package/build/commands/auth/login.d.ts +0 -21
  153. package/build/commands/auth/login.d.ts.map +0 -1
  154. package/build/commands/auth/login.js +0 -12
  155. package/build/commands/auth/login.js.map +0 -1
  156. package/build/commands/auth/profile.d.ts +0 -19
  157. package/build/commands/auth/profile.d.ts.map +0 -1
  158. package/build/commands/auth/profile.js +0 -11
  159. package/build/commands/auth/profile.js.map +0 -1
  160. package/build/commands/auth/register.d.ts +0 -13
  161. package/build/commands/auth/register.d.ts.map +0 -1
  162. package/build/commands/auth/register.js +0 -12
  163. package/build/commands/auth/register.js.map +0 -1
  164. package/build/commands/auth/reset.d.ts +0 -13
  165. package/build/commands/auth/reset.d.ts.map +0 -1
  166. package/build/commands/auth/reset.js +0 -10
  167. package/build/commands/auth/reset.js.map +0 -1
  168. package/build/commands/common.d.ts +0 -65
  169. package/build/commands/common.d.ts.map +0 -1
  170. package/build/commands/common.js.map +0 -1
  171. package/build/commands/consts.d.ts +0 -2
  172. package/build/commands/consts.d.ts.map +0 -1
  173. package/build/commands/consts.js +0 -5
  174. package/build/commands/consts.js.map +0 -1
  175. package/build/commands/endpoints.d.ts +0 -4643
  176. package/build/commands/endpoints.d.ts.map +0 -1
  177. package/build/commands/endpoints.js +0 -26
  178. package/build/commands/endpoints.js.map +0 -1
  179. package/build/commands/index.d.ts +0 -16
  180. package/build/commands/index.d.ts.map +0 -1
  181. package/build/commands/index.js +0 -32
  182. package/build/commands/index.js.map +0 -1
  183. package/build/commands/orders/create.d.ts +0 -100
  184. package/build/commands/orders/create.d.ts.map +0 -1
  185. package/build/commands/orders/create.js +0 -43
  186. package/build/commands/orders/create.js.map +0 -1
  187. package/build/commands/orders/endpoints.d.ts +0 -742
  188. package/build/commands/orders/endpoints.d.ts.map +0 -1
  189. package/build/commands/orders/endpoints.js +0 -48
  190. package/build/commands/orders/endpoints.js.map +0 -1
  191. package/build/commands/orders/enums.d.ts +0 -8
  192. package/build/commands/orders/enums.d.ts.map +0 -1
  193. package/build/commands/orders/enums.js +0 -26
  194. package/build/commands/orders/enums.js.map +0 -1
  195. package/build/commands/orders/index.d.ts +0 -7
  196. package/build/commands/orders/index.d.ts.map +0 -1
  197. package/build/commands/orders/index.js.map +0 -1
  198. package/build/commands/orders/query.d.ts +0 -104
  199. package/build/commands/orders/query.d.ts.map +0 -1
  200. package/build/commands/orders/query.js +0 -46
  201. package/build/commands/orders/query.js.map +0 -1
  202. package/build/commands/orders/read.d.ts +0 -235
  203. package/build/commands/orders/read.d.ts.map +0 -1
  204. package/build/commands/orders/read.js +0 -84
  205. package/build/commands/orders/read.js.map +0 -1
  206. package/build/commands/orders/update.d.ts +0 -24
  207. package/build/commands/orders/update.d.ts.map +0 -1
  208. package/build/commands/orders/update.js +0 -17
  209. package/build/commands/orders/update.js.map +0 -1
  210. package/build/commands/pagination.d.ts +0 -13
  211. package/build/commands/pagination.d.ts.map +0 -1
  212. package/build/commands/pagination.js +0 -9
  213. package/build/commands/pagination.js.map +0 -1
  214. package/build/commands/payment-methods/create.d.ts +0 -46
  215. package/build/commands/payment-methods/create.d.ts.map +0 -1
  216. package/build/commands/payment-methods/create.js +0 -23
  217. package/build/commands/payment-methods/create.js.map +0 -1
  218. package/build/commands/payment-methods/endpoints.d.ts +0 -537
  219. package/build/commands/payment-methods/endpoints.d.ts.map +0 -1
  220. package/build/commands/payment-methods/endpoints.js +0 -64
  221. package/build/commands/payment-methods/endpoints.js.map +0 -1
  222. package/build/commands/payment-methods/index.d.ts +0 -5
  223. package/build/commands/payment-methods/index.d.ts.map +0 -1
  224. package/build/commands/payment-methods/index.js.map +0 -1
  225. package/build/commands/payment-methods/read.d.ts +0 -72
  226. package/build/commands/payment-methods/read.d.ts.map +0 -1
  227. package/build/commands/payment-methods/read.js +0 -29
  228. package/build/commands/payment-methods/read.js.map +0 -1
  229. package/build/commands/payment-methods/update.d.ts +0 -46
  230. package/build/commands/payment-methods/update.d.ts.map +0 -1
  231. package/build/commands/payment-methods/update.js +0 -20
  232. package/build/commands/payment-methods/update.js.map +0 -1
  233. package/build/commands/products/create.d.ts +0 -242
  234. package/build/commands/products/create.d.ts.map +0 -1
  235. package/build/commands/products/create.js +0 -129
  236. package/build/commands/products/create.js.map +0 -1
  237. package/build/commands/products/endpoints.d.ts +0 -1980
  238. package/build/commands/products/endpoints.d.ts.map +0 -1
  239. package/build/commands/products/endpoints.js +0 -100
  240. package/build/commands/products/endpoints.js.map +0 -1
  241. package/build/commands/products/enums.d.ts +0 -20
  242. package/build/commands/products/enums.d.ts.map +0 -1
  243. package/build/commands/products/enums.js +0 -28
  244. package/build/commands/products/enums.js.map +0 -1
  245. package/build/commands/products/index.d.ts +0 -7
  246. package/build/commands/products/index.d.ts.map +0 -1
  247. package/build/commands/products/index.js.map +0 -1
  248. package/build/commands/products/query.d.ts +0 -80
  249. package/build/commands/products/query.d.ts.map +0 -1
  250. package/build/commands/products/query.js +0 -56
  251. package/build/commands/products/query.js.map +0 -1
  252. package/build/commands/products/read.d.ts +0 -1233
  253. package/build/commands/products/read.d.ts.map +0 -1
  254. package/build/commands/products/read.js +0 -242
  255. package/build/commands/products/read.js.map +0 -1
  256. package/build/commands/products/update.d.ts +0 -85
  257. package/build/commands/products/update.d.ts.map +0 -1
  258. package/build/commands/products/update.js +0 -11
  259. package/build/commands/products/update.js.map +0 -1
  260. package/build/commands/promocode-activations/create.d.ts +0 -19
  261. package/build/commands/promocode-activations/create.d.ts.map +0 -1
  262. package/build/commands/promocode-activations/create.js +0 -11
  263. package/build/commands/promocode-activations/create.js.map +0 -1
  264. package/build/commands/promocode-activations/endpoints.d.ts +0 -158
  265. package/build/commands/promocode-activations/endpoints.d.ts.map +0 -1
  266. package/build/commands/promocode-activations/endpoints.js +0 -39
  267. package/build/commands/promocode-activations/endpoints.js.map +0 -1
  268. package/build/commands/promocode-activations/index.d.ts +0 -5
  269. package/build/commands/promocode-activations/index.d.ts.map +0 -1
  270. package/build/commands/promocode-activations/index.js +0 -21
  271. package/build/commands/promocode-activations/index.js.map +0 -1
  272. package/build/commands/promocode-activations/read.d.ts +0 -22
  273. package/build/commands/promocode-activations/read.d.ts.map +0 -1
  274. package/build/commands/promocode-activations/read.js +0 -15
  275. package/build/commands/promocode-activations/read.js.map +0 -1
  276. package/build/commands/promocode-activations/update.d.ts +0 -19
  277. package/build/commands/promocode-activations/update.d.ts.map +0 -1
  278. package/build/commands/promocode-activations/update.js +0 -11
  279. package/build/commands/promocode-activations/update.js.map +0 -1
  280. package/build/commands/promocodes/create.d.ts +0 -40
  281. package/build/commands/promocodes/create.d.ts.map +0 -1
  282. package/build/commands/promocodes/create.js +0 -19
  283. package/build/commands/promocodes/create.js.map +0 -1
  284. package/build/commands/promocodes/endpoints.d.ts +0 -354
  285. package/build/commands/promocodes/endpoints.d.ts.map +0 -1
  286. package/build/commands/promocodes/endpoints.js +0 -47
  287. package/build/commands/promocodes/endpoints.js.map +0 -1
  288. package/build/commands/promocodes/enums.d.ts +0 -6
  289. package/build/commands/promocodes/enums.d.ts.map +0 -1
  290. package/build/commands/promocodes/enums.js +0 -10
  291. package/build/commands/promocodes/enums.js.map +0 -1
  292. package/build/commands/promocodes/index.d.ts +0 -6
  293. package/build/commands/promocodes/index.d.ts.map +0 -1
  294. package/build/commands/promocodes/index.js +0 -22
  295. package/build/commands/promocodes/index.js.map +0 -1
  296. package/build/commands/promocodes/read.d.ts +0 -46
  297. package/build/commands/promocodes/read.d.ts.map +0 -1
  298. package/build/commands/promocodes/read.js +0 -24
  299. package/build/commands/promocodes/read.js.map +0 -1
  300. package/build/commands/promocodes/update.d.ts +0 -34
  301. package/build/commands/promocodes/update.d.ts.map +0 -1
  302. package/build/commands/promocodes/update.js +0 -17
  303. package/build/commands/promocodes/update.js.map +0 -1
  304. package/build/commands/refresh-sessions/create.d.ts +0 -25
  305. package/build/commands/refresh-sessions/create.d.ts.map +0 -1
  306. package/build/commands/refresh-sessions/create.js +0 -14
  307. package/build/commands/refresh-sessions/create.js.map +0 -1
  308. package/build/commands/refresh-sessions/endpoints.d.ts +0 -216
  309. package/build/commands/refresh-sessions/endpoints.d.ts.map +0 -1
  310. package/build/commands/refresh-sessions/endpoints.js +0 -47
  311. package/build/commands/refresh-sessions/endpoints.js.map +0 -1
  312. package/build/commands/refresh-sessions/enums.d.ts +0 -4
  313. package/build/commands/refresh-sessions/enums.d.ts.map +0 -1
  314. package/build/commands/refresh-sessions/enums.js +0 -9
  315. package/build/commands/refresh-sessions/enums.js.map +0 -1
  316. package/build/commands/refresh-sessions/index.d.ts +0 -6
  317. package/build/commands/refresh-sessions/index.d.ts.map +0 -1
  318. package/build/commands/refresh-sessions/index.js +0 -22
  319. package/build/commands/refresh-sessions/index.js.map +0 -1
  320. package/build/commands/refresh-sessions/read.d.ts +0 -28
  321. package/build/commands/refresh-sessions/read.d.ts.map +0 -1
  322. package/build/commands/refresh-sessions/read.js +0 -18
  323. package/build/commands/refresh-sessions/read.js.map +0 -1
  324. package/build/commands/refresh-sessions/update.d.ts +0 -25
  325. package/build/commands/refresh-sessions/update.d.ts.map +0 -1
  326. package/build/commands/refresh-sessions/update.js +0 -17
  327. package/build/commands/refresh-sessions/update.js.map +0 -1
  328. package/build/commands/settings/endpoints.d.ts +0 -109
  329. package/build/commands/settings/endpoints.d.ts.map +0 -1
  330. package/build/commands/settings/endpoints.js +0 -44
  331. package/build/commands/settings/endpoints.js.map +0 -1
  332. package/build/commands/settings/index.d.ts +0 -4
  333. package/build/commands/settings/index.d.ts.map +0 -1
  334. package/build/commands/settings/index.js +0 -20
  335. package/build/commands/settings/index.js.map +0 -1
  336. package/build/commands/settings/read.d.ts +0 -19
  337. package/build/commands/settings/read.d.ts.map +0 -1
  338. package/build/commands/settings/read.js +0 -11
  339. package/build/commands/settings/read.js.map +0 -1
  340. package/build/commands/settings/update.d.ts +0 -19
  341. package/build/commands/settings/update.d.ts.map +0 -1
  342. package/build/commands/settings/update.js +0 -11
  343. package/build/commands/settings/update.js.map +0 -1
  344. package/build/commands/stats/endpoints.d.ts +0 -68
  345. package/build/commands/stats/endpoints.d.ts.map +0 -1
  346. package/build/commands/stats/endpoints.js +0 -14
  347. package/build/commands/stats/endpoints.js.map +0 -1
  348. package/build/commands/stats/index.d.ts +0 -4
  349. package/build/commands/stats/index.d.ts.map +0 -1
  350. package/build/commands/stats/index.js +0 -20
  351. package/build/commands/stats/index.js.map +0 -1
  352. package/build/commands/stats/query.d.ts +0 -32
  353. package/build/commands/stats/query.d.ts.map +0 -1
  354. package/build/commands/stats/query.js +0 -16
  355. package/build/commands/stats/query.js.map +0 -1
  356. package/build/commands/stats/read.d.ts +0 -31
  357. package/build/commands/stats/read.d.ts.map +0 -1
  358. package/build/commands/stats/read.js +0 -18
  359. package/build/commands/stats/read.js.map +0 -1
  360. package/build/commands/users/create.d.ts +0 -43
  361. package/build/commands/users/create.d.ts.map +0 -1
  362. package/build/commands/users/create.js +0 -20
  363. package/build/commands/users/create.js.map +0 -1
  364. package/build/commands/users/endpoints.d.ts +0 -404
  365. package/build/commands/users/endpoints.d.ts.map +0 -1
  366. package/build/commands/users/endpoints.js +0 -40
  367. package/build/commands/users/endpoints.js.map +0 -1
  368. package/build/commands/users/enums.d.ts +0 -7
  369. package/build/commands/users/enums.d.ts.map +0 -1
  370. package/build/commands/users/enums.js +0 -11
  371. package/build/commands/users/enums.js.map +0 -1
  372. package/build/commands/users/index.d.ts +0 -7
  373. package/build/commands/users/index.d.ts.map +0 -1
  374. package/build/commands/users/index.js +0 -23
  375. package/build/commands/users/index.js.map +0 -1
  376. package/build/commands/users/query.d.ts +0 -53
  377. package/build/commands/users/query.d.ts.map +0 -1
  378. package/build/commands/users/query.js +0 -22
  379. package/build/commands/users/query.js.map +0 -1
  380. package/build/commands/users/read.d.ts +0 -61
  381. package/build/commands/users/read.d.ts.map +0 -1
  382. package/build/commands/users/read.js +0 -29
  383. package/build/commands/users/read.js.map +0 -1
  384. package/build/commands/users/update.d.ts +0 -43
  385. package/build/commands/users/update.d.ts.map +0 -1
  386. package/build/commands/users/update.js +0 -20
  387. package/build/commands/users/update.js.map +0 -1
  388. package/build/types.d.ts +0 -9
  389. package/build/types.d.ts.map +0 -1
  390. package/build/types.js.map +0 -1
  391. /package/build/{types.js → shared/types.js} +0 -0
@@ -1,1980 +0,0 @@
1
- import z from "zod";
2
- export declare const ProductEndpoints: {
3
- catalog: {
4
- method: "GET";
5
- path: string;
6
- request: z.ZodObject<{
7
- category: z.ZodOptional<z.ZodString>;
8
- type: z.ZodOptional<z.ZodString>;
9
- genre: z.ZodOptional<z.ZodString>;
10
- tag: z.ZodOptional<z.ZodString>;
11
- region: z.ZodOptional<z.ZodString>;
12
- platform: z.ZodOptional<z.ZodString>;
13
- minPrice: z.ZodOptional<z.ZodNumber>;
14
- maxPrice: z.ZodOptional<z.ZodNumber>;
15
- hasMultiplayer: z.ZodOptional<z.ZodEffects<z.ZodEnum<["true", "false"]>, boolean, "true" | "false">>;
16
- hasCoop: z.ZodOptional<z.ZodEffects<z.ZodEnum<["true", "false"]>, boolean, "true" | "false">>;
17
- publisher: z.ZodOptional<z.ZodString>;
18
- minRating: z.ZodOptional<z.ZodNumber>;
19
- hasDiscount: z.ZodOptional<z.ZodEffects<z.ZodEnum<["true", "false"]>, boolean, "true" | "false">>;
20
- search: z.ZodOptional<z.ZodString>;
21
- sortBy: z.ZodDefault<z.ZodEnum<["price", "popularity", "rating", "releaseDate", "title"]>>;
22
- sortDir: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
23
- skip: z.ZodDefault<z.ZodNumber>;
24
- take: z.ZodDefault<z.ZodNumber>;
25
- }, "strip", z.ZodTypeAny, {
26
- take: number;
27
- skip: number;
28
- sortBy: "price" | "title" | "releaseDate" | "popularity" | "rating";
29
- sortDir: "asc" | "desc";
30
- type?: string | undefined;
31
- publisher?: string | undefined;
32
- hasMultiplayer?: boolean | undefined;
33
- hasCoop?: boolean | undefined;
34
- platform?: string | undefined;
35
- category?: string | undefined;
36
- minPrice?: number | undefined;
37
- hasDiscount?: boolean | undefined;
38
- region?: string | undefined;
39
- genre?: string | undefined;
40
- tag?: string | undefined;
41
- maxPrice?: number | undefined;
42
- minRating?: number | undefined;
43
- search?: string | undefined;
44
- }, {
45
- type?: string | undefined;
46
- take?: number | undefined;
47
- skip?: number | undefined;
48
- sortBy?: "price" | "title" | "releaseDate" | "popularity" | "rating" | undefined;
49
- sortDir?: "asc" | "desc" | undefined;
50
- publisher?: string | undefined;
51
- hasMultiplayer?: "true" | "false" | undefined;
52
- hasCoop?: "true" | "false" | undefined;
53
- platform?: string | undefined;
54
- category?: string | undefined;
55
- minPrice?: number | undefined;
56
- hasDiscount?: "true" | "false" | undefined;
57
- region?: string | undefined;
58
- genre?: string | undefined;
59
- tag?: string | undefined;
60
- maxPrice?: number | undefined;
61
- minRating?: number | undefined;
62
- search?: string | undefined;
63
- }>;
64
- response: z.ZodObject<{
65
- items: z.ZodArray<z.ZodObject<{
66
- id: z.ZodNumber;
67
- slug: z.ZodString;
68
- title: z.ZodString;
69
- type: z.ZodString;
70
- shortDescription: z.ZodNullable<z.ZodString>;
71
- coverImageUrl: z.ZodNullable<z.ZodString>;
72
- catalogImageUrl: z.ZodNullable<z.ZodString>;
73
- cardImageUrl: z.ZodNullable<z.ZodString>;
74
- steamRating: z.ZodNullable<z.ZodNumber>;
75
- hasMultiplayer: z.ZodBoolean;
76
- hasCoop: z.ZodBoolean;
77
- salesCount: z.ZodNumber;
78
- publisher: z.ZodNullable<z.ZodString>;
79
- releaseDate: z.ZodNullable<z.ZodDate>;
80
- category: z.ZodObject<{
81
- slug: z.ZodString;
82
- name: z.ZodString;
83
- }, "strip", z.ZodTypeAny, {
84
- name: string;
85
- slug: string;
86
- }, {
87
- name: string;
88
- slug: string;
89
- }>;
90
- genres: z.ZodArray<z.ZodObject<{
91
- slug: z.ZodString;
92
- name: z.ZodString;
93
- }, "strip", z.ZodTypeAny, {
94
- name: string;
95
- slug: string;
96
- }, {
97
- name: string;
98
- slug: string;
99
- }>, "many">;
100
- regions: z.ZodArray<z.ZodObject<{
101
- code: z.ZodString;
102
- name: z.ZodString;
103
- }, "strip", z.ZodTypeAny, {
104
- code: string;
105
- name: string;
106
- }, {
107
- code: string;
108
- name: string;
109
- }>, "many">;
110
- variants: z.ZodArray<z.ZodObject<{
111
- id: z.ZodNumber;
112
- name: z.ZodString;
113
- imageUrl: z.ZodNullable<z.ZodString>;
114
- price: z.ZodString;
115
- originalPrice: z.ZodNullable<z.ZodString>;
116
- platform: z.ZodNullable<z.ZodString>;
117
- regionCode: z.ZodNullable<z.ZodString>;
118
- }, "strip", z.ZodTypeAny, {
119
- id: number;
120
- price: string;
121
- name: string;
122
- imageUrl: string | null;
123
- originalPrice: string | null;
124
- platform: string | null;
125
- regionCode: string | null;
126
- }, {
127
- id: number;
128
- price: string;
129
- name: string;
130
- imageUrl: string | null;
131
- originalPrice: string | null;
132
- platform: string | null;
133
- regionCode: string | null;
134
- }>, "many">;
135
- minPrice: z.ZodNullable<z.ZodString>;
136
- hasDiscount: z.ZodBoolean;
137
- }, "strip", z.ZodTypeAny, {
138
- type: string;
139
- id: number;
140
- slug: string;
141
- title: string;
142
- shortDescription: string | null;
143
- coverImageUrl: string | null;
144
- catalogImageUrl: string | null;
145
- cardImageUrl: string | null;
146
- publisher: string | null;
147
- releaseDate: Date | null;
148
- hasMultiplayer: boolean;
149
- hasCoop: boolean;
150
- variants: {
151
- id: number;
152
- price: string;
153
- name: string;
154
- imageUrl: string | null;
155
- originalPrice: string | null;
156
- platform: string | null;
157
- regionCode: string | null;
158
- }[];
159
- steamRating: number | null;
160
- salesCount: number;
161
- category: {
162
- name: string;
163
- slug: string;
164
- };
165
- genres: {
166
- name: string;
167
- slug: string;
168
- }[];
169
- regions: {
170
- code: string;
171
- name: string;
172
- }[];
173
- minPrice: string | null;
174
- hasDiscount: boolean;
175
- }, {
176
- type: string;
177
- id: number;
178
- slug: string;
179
- title: string;
180
- shortDescription: string | null;
181
- coverImageUrl: string | null;
182
- catalogImageUrl: string | null;
183
- cardImageUrl: string | null;
184
- publisher: string | null;
185
- releaseDate: Date | null;
186
- hasMultiplayer: boolean;
187
- hasCoop: boolean;
188
- variants: {
189
- id: number;
190
- price: string;
191
- name: string;
192
- imageUrl: string | null;
193
- originalPrice: string | null;
194
- platform: string | null;
195
- regionCode: string | null;
196
- }[];
197
- steamRating: number | null;
198
- salesCount: number;
199
- category: {
200
- name: string;
201
- slug: string;
202
- };
203
- genres: {
204
- name: string;
205
- slug: string;
206
- }[];
207
- regions: {
208
- code: string;
209
- name: string;
210
- }[];
211
- minPrice: string | null;
212
- hasDiscount: boolean;
213
- }>, "many">;
214
- total: z.ZodNumber;
215
- skip: z.ZodNumber;
216
- take: z.ZodNumber;
217
- }, "strip", z.ZodTypeAny, {
218
- items: {
219
- type: string;
220
- id: number;
221
- slug: string;
222
- title: string;
223
- shortDescription: string | null;
224
- coverImageUrl: string | null;
225
- catalogImageUrl: string | null;
226
- cardImageUrl: string | null;
227
- publisher: string | null;
228
- releaseDate: Date | null;
229
- hasMultiplayer: boolean;
230
- hasCoop: boolean;
231
- variants: {
232
- id: number;
233
- price: string;
234
- name: string;
235
- imageUrl: string | null;
236
- originalPrice: string | null;
237
- platform: string | null;
238
- regionCode: string | null;
239
- }[];
240
- steamRating: number | null;
241
- salesCount: number;
242
- category: {
243
- name: string;
244
- slug: string;
245
- };
246
- genres: {
247
- name: string;
248
- slug: string;
249
- }[];
250
- regions: {
251
- code: string;
252
- name: string;
253
- }[];
254
- minPrice: string | null;
255
- hasDiscount: boolean;
256
- }[];
257
- total: number;
258
- take: number;
259
- skip: number;
260
- }, {
261
- items: {
262
- type: string;
263
- id: number;
264
- slug: string;
265
- title: string;
266
- shortDescription: string | null;
267
- coverImageUrl: string | null;
268
- catalogImageUrl: string | null;
269
- cardImageUrl: string | null;
270
- publisher: string | null;
271
- releaseDate: Date | null;
272
- hasMultiplayer: boolean;
273
- hasCoop: boolean;
274
- variants: {
275
- id: number;
276
- price: string;
277
- name: string;
278
- imageUrl: string | null;
279
- originalPrice: string | null;
280
- platform: string | null;
281
- regionCode: string | null;
282
- }[];
283
- steamRating: number | null;
284
- salesCount: number;
285
- category: {
286
- name: string;
287
- slug: string;
288
- };
289
- genres: {
290
- name: string;
291
- slug: string;
292
- }[];
293
- regions: {
294
- code: string;
295
- name: string;
296
- }[];
297
- minPrice: string | null;
298
- hasDiscount: boolean;
299
- }[];
300
- total: number;
301
- take: number;
302
- skip: number;
303
- }>;
304
- };
305
- categories: {
306
- method: "GET";
307
- path: string;
308
- response: z.ZodArray<z.ZodObject<{
309
- id: z.ZodNumber;
310
- slug: z.ZodString;
311
- name: z.ZodString;
312
- description: z.ZodNullable<z.ZodString>;
313
- iconUrl: z.ZodNullable<z.ZodString>;
314
- _count: z.ZodObject<{
315
- products: z.ZodNumber;
316
- }, "strip", z.ZodTypeAny, {
317
- products: number;
318
- }, {
319
- products: number;
320
- }>;
321
- }, "strip", z.ZodTypeAny, {
322
- id: number;
323
- name: string;
324
- slug: string;
325
- description: string | null;
326
- iconUrl: string | null;
327
- _count: {
328
- products: number;
329
- };
330
- }, {
331
- id: number;
332
- name: string;
333
- slug: string;
334
- description: string | null;
335
- iconUrl: string | null;
336
- _count: {
337
- products: number;
338
- };
339
- }>, "many">;
340
- };
341
- genres: {
342
- method: "GET";
343
- path: string;
344
- response: z.ZodArray<z.ZodObject<{
345
- id: z.ZodNumber;
346
- slug: z.ZodString;
347
- name: z.ZodString;
348
- _count: z.ZodObject<{
349
- products: z.ZodNumber;
350
- }, "strip", z.ZodTypeAny, {
351
- products: number;
352
- }, {
353
- products: number;
354
- }>;
355
- }, "strip", z.ZodTypeAny, {
356
- id: number;
357
- name: string;
358
- slug: string;
359
- _count: {
360
- products: number;
361
- };
362
- }, {
363
- id: number;
364
- name: string;
365
- slug: string;
366
- _count: {
367
- products: number;
368
- };
369
- }>, "many">;
370
- };
371
- regions: {
372
- method: "GET";
373
- path: string;
374
- response: z.ZodArray<z.ZodObject<{
375
- id: z.ZodNumber;
376
- code: z.ZodString;
377
- name: z.ZodString;
378
- _count: z.ZodObject<{
379
- products: z.ZodNumber;
380
- }, "strip", z.ZodTypeAny, {
381
- products: number;
382
- }, {
383
- products: number;
384
- }>;
385
- }, "strip", z.ZodTypeAny, {
386
- code: string;
387
- id: number;
388
- name: string;
389
- _count: {
390
- products: number;
391
- };
392
- }, {
393
- code: string;
394
- id: number;
395
- name: string;
396
- _count: {
397
- products: number;
398
- };
399
- }>, "many">;
400
- };
401
- getBySlug: {
402
- method: "GET";
403
- path: string;
404
- request: z.ZodObject<{
405
- slug: z.ZodString;
406
- }, "strip", z.ZodTypeAny, {
407
- slug: string;
408
- }, {
409
- slug: string;
410
- }>;
411
- response: z.ZodObject<{
412
- id: z.ZodNumber;
413
- slug: z.ZodString;
414
- title: z.ZodString;
415
- originalTitle: z.ZodNullable<z.ZodString>;
416
- type: z.ZodString;
417
- status: z.ZodString;
418
- description: z.ZodNullable<z.ZodString>;
419
- customDescription: z.ZodNullable<z.ZodString>;
420
- shortDescription: z.ZodNullable<z.ZodString>;
421
- coverImageUrl: z.ZodNullable<z.ZodString>;
422
- catalogImageUrl: z.ZodNullable<z.ZodString>;
423
- cardImageUrl: z.ZodNullable<z.ZodString>;
424
- developer: z.ZodNullable<z.ZodString>;
425
- publisher: z.ZodNullable<z.ZodString>;
426
- releaseDate: z.ZodNullable<z.ZodDate>;
427
- steamAppId: z.ZodNullable<z.ZodNumber>;
428
- steamRating: z.ZodNullable<z.ZodNumber>;
429
- hasMultiplayer: z.ZodBoolean;
430
- hasCoop: z.ZodBoolean;
431
- hasSinglePlayer: z.ZodBoolean;
432
- metaTitle: z.ZodNullable<z.ZodString>;
433
- metaDescription: z.ZodNullable<z.ZodString>;
434
- salesCount: z.ZodNumber;
435
- viewsCount: z.ZodNumber;
436
- category: z.ZodObject<{
437
- slug: z.ZodString;
438
- name: z.ZodString;
439
- } & {
440
- id: z.ZodNumber;
441
- }, "strip", z.ZodTypeAny, {
442
- id: number;
443
- name: string;
444
- slug: string;
445
- }, {
446
- id: number;
447
- name: string;
448
- slug: string;
449
- }>;
450
- variants: z.ZodArray<z.ZodObject<{
451
- id: z.ZodNumber;
452
- name: z.ZodString;
453
- sku: z.ZodString;
454
- imageUrl: z.ZodNullable<z.ZodString>;
455
- price: z.ZodString;
456
- originalPrice: z.ZodNullable<z.ZodString>;
457
- topupAmount: z.ZodNullable<z.ZodString>;
458
- currency: z.ZodNullable<z.ZodString>;
459
- durationDays: z.ZodNullable<z.ZodNumber>;
460
- platform: z.ZodNullable<z.ZodString>;
461
- regionCode: z.ZodNullable<z.ZodString>;
462
- deliveryType: z.ZodString;
463
- inStock: z.ZodBoolean;
464
- }, "strip", z.ZodTypeAny, {
465
- id: number;
466
- price: string;
467
- name: string;
468
- sku: string;
469
- imageUrl: string | null;
470
- originalPrice: string | null;
471
- topupAmount: string | null;
472
- currency: string | null;
473
- durationDays: number | null;
474
- platform: string | null;
475
- regionCode: string | null;
476
- deliveryType: string;
477
- inStock: boolean;
478
- }, {
479
- id: number;
480
- price: string;
481
- name: string;
482
- sku: string;
483
- imageUrl: string | null;
484
- originalPrice: string | null;
485
- topupAmount: string | null;
486
- currency: string | null;
487
- durationDays: number | null;
488
- platform: string | null;
489
- regionCode: string | null;
490
- deliveryType: string;
491
- inStock: boolean;
492
- }>, "many">;
493
- media: z.ZodArray<z.ZodObject<{
494
- id: z.ZodNumber;
495
- type: z.ZodString;
496
- url: z.ZodString;
497
- alt: z.ZodNullable<z.ZodString>;
498
- }, "strip", z.ZodTypeAny, {
499
- type: string;
500
- id: number;
501
- url: string;
502
- alt: string | null;
503
- }, {
504
- type: string;
505
- id: number;
506
- url: string;
507
- alt: string | null;
508
- }>, "many">;
509
- genres: z.ZodArray<z.ZodObject<{
510
- id: z.ZodNumber;
511
- slug: z.ZodString;
512
- name: z.ZodString;
513
- }, "strip", z.ZodTypeAny, {
514
- id: number;
515
- name: string;
516
- slug: string;
517
- }, {
518
- id: number;
519
- name: string;
520
- slug: string;
521
- }>, "many">;
522
- tags: z.ZodArray<z.ZodObject<{
523
- id: z.ZodNumber;
524
- slug: z.ZodString;
525
- name: z.ZodString;
526
- }, "strip", z.ZodTypeAny, {
527
- id: number;
528
- name: string;
529
- slug: string;
530
- }, {
531
- id: number;
532
- name: string;
533
- slug: string;
534
- }>, "many">;
535
- regions: z.ZodArray<z.ZodObject<Omit<{
536
- id: z.ZodNumber;
537
- code: z.ZodString;
538
- name: z.ZodString;
539
- _count: z.ZodObject<{
540
- products: z.ZodNumber;
541
- }, "strip", z.ZodTypeAny, {
542
- products: number;
543
- }, {
544
- products: number;
545
- }>;
546
- }, "_count">, "strip", z.ZodTypeAny, {
547
- code: string;
548
- id: number;
549
- name: string;
550
- }, {
551
- code: string;
552
- id: number;
553
- name: string;
554
- }>, "many">;
555
- systemRequirements: z.ZodArray<z.ZodObject<{
556
- type: z.ZodString;
557
- os: z.ZodNullable<z.ZodString>;
558
- processor: z.ZodNullable<z.ZodString>;
559
- memory: z.ZodNullable<z.ZodString>;
560
- graphics: z.ZodNullable<z.ZodString>;
561
- storage: z.ZodNullable<z.ZodString>;
562
- directx: z.ZodNullable<z.ZodString>;
563
- network: z.ZodNullable<z.ZodString>;
564
- additional: z.ZodNullable<z.ZodString>;
565
- }, "strip", z.ZodTypeAny, {
566
- type: string;
567
- os: string | null;
568
- processor: string | null;
569
- memory: string | null;
570
- graphics: string | null;
571
- storage: string | null;
572
- directx: string | null;
573
- network: string | null;
574
- additional: string | null;
575
- }, {
576
- type: string;
577
- os: string | null;
578
- processor: string | null;
579
- memory: string | null;
580
- graphics: string | null;
581
- storage: string | null;
582
- directx: string | null;
583
- network: string | null;
584
- additional: string | null;
585
- }>, "many">;
586
- dlcs: z.ZodArray<z.ZodObject<{
587
- id: z.ZodNumber;
588
- slug: z.ZodString;
589
- title: z.ZodString;
590
- coverImageUrl: z.ZodNullable<z.ZodString>;
591
- catalogImageUrl: z.ZodNullable<z.ZodString>;
592
- cardImageUrl: z.ZodNullable<z.ZodString>;
593
- variants: z.ZodArray<z.ZodObject<{
594
- price: z.ZodAny;
595
- originalPrice: z.ZodAny;
596
- }, "strip", z.ZodTypeAny, {
597
- price?: any;
598
- originalPrice?: any;
599
- }, {
600
- price?: any;
601
- originalPrice?: any;
602
- }>, "many">;
603
- }, "strip", z.ZodTypeAny, {
604
- id: number;
605
- slug: string;
606
- title: string;
607
- coverImageUrl: string | null;
608
- catalogImageUrl: string | null;
609
- cardImageUrl: string | null;
610
- variants: {
611
- price?: any;
612
- originalPrice?: any;
613
- }[];
614
- }, {
615
- id: number;
616
- slug: string;
617
- title: string;
618
- coverImageUrl: string | null;
619
- catalogImageUrl: string | null;
620
- cardImageUrl: string | null;
621
- variants: {
622
- price?: any;
623
- originalPrice?: any;
624
- }[];
625
- }>, "many">;
626
- createdAt: z.ZodDate;
627
- updatedAt: z.ZodDate;
628
- }, "strip", z.ZodTypeAny, {
629
- type: string;
630
- status: string;
631
- id: number;
632
- createdAt: Date;
633
- updatedAt: Date;
634
- slug: string;
635
- title: string;
636
- originalTitle: string | null;
637
- description: string | null;
638
- customDescription: string | null;
639
- shortDescription: string | null;
640
- coverImageUrl: string | null;
641
- catalogImageUrl: string | null;
642
- cardImageUrl: string | null;
643
- developer: string | null;
644
- publisher: string | null;
645
- releaseDate: Date | null;
646
- steamAppId: number | null;
647
- hasMultiplayer: boolean;
648
- hasCoop: boolean;
649
- hasSinglePlayer: boolean;
650
- metaTitle: string | null;
651
- metaDescription: string | null;
652
- variants: {
653
- id: number;
654
- price: string;
655
- name: string;
656
- sku: string;
657
- imageUrl: string | null;
658
- originalPrice: string | null;
659
- topupAmount: string | null;
660
- currency: string | null;
661
- durationDays: number | null;
662
- platform: string | null;
663
- regionCode: string | null;
664
- deliveryType: string;
665
- inStock: boolean;
666
- }[];
667
- steamRating: number | null;
668
- salesCount: number;
669
- category: {
670
- id: number;
671
- name: string;
672
- slug: string;
673
- };
674
- genres: {
675
- id: number;
676
- name: string;
677
- slug: string;
678
- }[];
679
- regions: {
680
- code: string;
681
- id: number;
682
- name: string;
683
- }[];
684
- viewsCount: number;
685
- media: {
686
- type: string;
687
- id: number;
688
- url: string;
689
- alt: string | null;
690
- }[];
691
- tags: {
692
- id: number;
693
- name: string;
694
- slug: string;
695
- }[];
696
- systemRequirements: {
697
- type: string;
698
- os: string | null;
699
- processor: string | null;
700
- memory: string | null;
701
- graphics: string | null;
702
- storage: string | null;
703
- directx: string | null;
704
- network: string | null;
705
- additional: string | null;
706
- }[];
707
- dlcs: {
708
- id: number;
709
- slug: string;
710
- title: string;
711
- coverImageUrl: string | null;
712
- catalogImageUrl: string | null;
713
- cardImageUrl: string | null;
714
- variants: {
715
- price?: any;
716
- originalPrice?: any;
717
- }[];
718
- }[];
719
- }, {
720
- type: string;
721
- status: string;
722
- id: number;
723
- createdAt: Date;
724
- updatedAt: Date;
725
- slug: string;
726
- title: string;
727
- originalTitle: string | null;
728
- description: string | null;
729
- customDescription: string | null;
730
- shortDescription: string | null;
731
- coverImageUrl: string | null;
732
- catalogImageUrl: string | null;
733
- cardImageUrl: string | null;
734
- developer: string | null;
735
- publisher: string | null;
736
- releaseDate: Date | null;
737
- steamAppId: number | null;
738
- hasMultiplayer: boolean;
739
- hasCoop: boolean;
740
- hasSinglePlayer: boolean;
741
- metaTitle: string | null;
742
- metaDescription: string | null;
743
- variants: {
744
- id: number;
745
- price: string;
746
- name: string;
747
- sku: string;
748
- imageUrl: string | null;
749
- originalPrice: string | null;
750
- topupAmount: string | null;
751
- currency: string | null;
752
- durationDays: number | null;
753
- platform: string | null;
754
- regionCode: string | null;
755
- deliveryType: string;
756
- inStock: boolean;
757
- }[];
758
- steamRating: number | null;
759
- salesCount: number;
760
- category: {
761
- id: number;
762
- name: string;
763
- slug: string;
764
- };
765
- genres: {
766
- id: number;
767
- name: string;
768
- slug: string;
769
- }[];
770
- regions: {
771
- code: string;
772
- id: number;
773
- name: string;
774
- }[];
775
- viewsCount: number;
776
- media: {
777
- type: string;
778
- id: number;
779
- url: string;
780
- alt: string | null;
781
- }[];
782
- tags: {
783
- id: number;
784
- name: string;
785
- slug: string;
786
- }[];
787
- systemRequirements: {
788
- type: string;
789
- os: string | null;
790
- processor: string | null;
791
- memory: string | null;
792
- graphics: string | null;
793
- storage: string | null;
794
- directx: string | null;
795
- network: string | null;
796
- additional: string | null;
797
- }[];
798
- dlcs: {
799
- id: number;
800
- slug: string;
801
- title: string;
802
- coverImageUrl: string | null;
803
- catalogImageUrl: string | null;
804
- cardImageUrl: string | null;
805
- variants: {
806
- price?: any;
807
- originalPrice?: any;
808
- }[];
809
- }[];
810
- }>;
811
- };
812
- create: {
813
- method: "POST";
814
- path: string;
815
- request: z.ZodObject<{
816
- slug: z.ZodString;
817
- title: z.ZodString;
818
- originalTitle: z.ZodOptional<z.ZodString>;
819
- type: z.ZodEnum<["GAME_KEY", "GAME_GIFT", "TOPUP", "SUBSCRIPTION", "IN_GAME_ITEM", "DLC", "CURRENCY"]>;
820
- categoryId: z.ZodNumber;
821
- parentProductId: z.ZodOptional<z.ZodNumber>;
822
- description: z.ZodOptional<z.ZodString>;
823
- customDescription: z.ZodOptional<z.ZodString>;
824
- shortDescription: z.ZodOptional<z.ZodString>;
825
- coverImageUrl: z.ZodOptional<z.ZodString>;
826
- catalogImageUrl: z.ZodOptional<z.ZodString>;
827
- cardImageUrl: z.ZodOptional<z.ZodString>;
828
- developer: z.ZodOptional<z.ZodString>;
829
- publisher: z.ZodOptional<z.ZodString>;
830
- releaseDate: z.ZodOptional<z.ZodString>;
831
- steamAppId: z.ZodOptional<z.ZodNumber>;
832
- hasMultiplayer: z.ZodDefault<z.ZodBoolean>;
833
- hasCoop: z.ZodDefault<z.ZodBoolean>;
834
- hasSinglePlayer: z.ZodDefault<z.ZodBoolean>;
835
- metaTitle: z.ZodOptional<z.ZodString>;
836
- metaDescription: z.ZodOptional<z.ZodString>;
837
- genreIds: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
838
- tagIds: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
839
- regionIds: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
840
- }, "strip", z.ZodTypeAny, {
841
- type: "GAME_KEY" | "GAME_GIFT" | "TOPUP" | "SUBSCRIPTION" | "IN_GAME_ITEM" | "DLC" | "CURRENCY";
842
- slug: string;
843
- title: string;
844
- categoryId: number;
845
- hasMultiplayer: boolean;
846
- hasCoop: boolean;
847
- hasSinglePlayer: boolean;
848
- originalTitle?: string | undefined;
849
- parentProductId?: number | undefined;
850
- description?: string | undefined;
851
- customDescription?: string | undefined;
852
- shortDescription?: string | undefined;
853
- coverImageUrl?: string | undefined;
854
- catalogImageUrl?: string | undefined;
855
- cardImageUrl?: string | undefined;
856
- developer?: string | undefined;
857
- publisher?: string | undefined;
858
- releaseDate?: string | undefined;
859
- steamAppId?: number | undefined;
860
- metaTitle?: string | undefined;
861
- metaDescription?: string | undefined;
862
- genreIds?: number[] | undefined;
863
- tagIds?: number[] | undefined;
864
- regionIds?: number[] | undefined;
865
- }, {
866
- type: "GAME_KEY" | "GAME_GIFT" | "TOPUP" | "SUBSCRIPTION" | "IN_GAME_ITEM" | "DLC" | "CURRENCY";
867
- slug: string;
868
- title: string;
869
- categoryId: number;
870
- originalTitle?: string | undefined;
871
- parentProductId?: number | undefined;
872
- description?: string | undefined;
873
- customDescription?: string | undefined;
874
- shortDescription?: string | undefined;
875
- coverImageUrl?: string | undefined;
876
- catalogImageUrl?: string | undefined;
877
- cardImageUrl?: string | undefined;
878
- developer?: string | undefined;
879
- publisher?: string | undefined;
880
- releaseDate?: string | undefined;
881
- steamAppId?: number | undefined;
882
- hasMultiplayer?: boolean | undefined;
883
- hasCoop?: boolean | undefined;
884
- hasSinglePlayer?: boolean | undefined;
885
- metaTitle?: string | undefined;
886
- metaDescription?: string | undefined;
887
- genreIds?: number[] | undefined;
888
- tagIds?: number[] | undefined;
889
- regionIds?: number[] | undefined;
890
- }>;
891
- response: z.ZodObject<{
892
- id: z.ZodNumber;
893
- slug: z.ZodString;
894
- title: z.ZodString;
895
- originalTitle: z.ZodNullable<z.ZodString>;
896
- type: z.ZodString;
897
- status: z.ZodString;
898
- description: z.ZodNullable<z.ZodString>;
899
- customDescription: z.ZodNullable<z.ZodString>;
900
- shortDescription: z.ZodNullable<z.ZodString>;
901
- coverImageUrl: z.ZodNullable<z.ZodString>;
902
- catalogImageUrl: z.ZodNullable<z.ZodString>;
903
- cardImageUrl: z.ZodNullable<z.ZodString>;
904
- developer: z.ZodNullable<z.ZodString>;
905
- publisher: z.ZodNullable<z.ZodString>;
906
- releaseDate: z.ZodNullable<z.ZodDate>;
907
- steamAppId: z.ZodNullable<z.ZodNumber>;
908
- steamRating: z.ZodNullable<z.ZodNumber>;
909
- hasMultiplayer: z.ZodBoolean;
910
- hasCoop: z.ZodBoolean;
911
- hasSinglePlayer: z.ZodBoolean;
912
- metaTitle: z.ZodNullable<z.ZodString>;
913
- metaDescription: z.ZodNullable<z.ZodString>;
914
- salesCount: z.ZodNumber;
915
- viewsCount: z.ZodNumber;
916
- category: z.ZodObject<{
917
- slug: z.ZodString;
918
- name: z.ZodString;
919
- } & {
920
- id: z.ZodNumber;
921
- }, "strip", z.ZodTypeAny, {
922
- id: number;
923
- name: string;
924
- slug: string;
925
- }, {
926
- id: number;
927
- name: string;
928
- slug: string;
929
- }>;
930
- variants: z.ZodArray<z.ZodObject<{
931
- id: z.ZodNumber;
932
- name: z.ZodString;
933
- sku: z.ZodString;
934
- imageUrl: z.ZodNullable<z.ZodString>;
935
- price: z.ZodString;
936
- originalPrice: z.ZodNullable<z.ZodString>;
937
- topupAmount: z.ZodNullable<z.ZodString>;
938
- currency: z.ZodNullable<z.ZodString>;
939
- durationDays: z.ZodNullable<z.ZodNumber>;
940
- platform: z.ZodNullable<z.ZodString>;
941
- regionCode: z.ZodNullable<z.ZodString>;
942
- deliveryType: z.ZodString;
943
- inStock: z.ZodBoolean;
944
- }, "strip", z.ZodTypeAny, {
945
- id: number;
946
- price: string;
947
- name: string;
948
- sku: string;
949
- imageUrl: string | null;
950
- originalPrice: string | null;
951
- topupAmount: string | null;
952
- currency: string | null;
953
- durationDays: number | null;
954
- platform: string | null;
955
- regionCode: string | null;
956
- deliveryType: string;
957
- inStock: boolean;
958
- }, {
959
- id: number;
960
- price: string;
961
- name: string;
962
- sku: string;
963
- imageUrl: string | null;
964
- originalPrice: string | null;
965
- topupAmount: string | null;
966
- currency: string | null;
967
- durationDays: number | null;
968
- platform: string | null;
969
- regionCode: string | null;
970
- deliveryType: string;
971
- inStock: boolean;
972
- }>, "many">;
973
- media: z.ZodArray<z.ZodObject<{
974
- id: z.ZodNumber;
975
- type: z.ZodString;
976
- url: z.ZodString;
977
- alt: z.ZodNullable<z.ZodString>;
978
- }, "strip", z.ZodTypeAny, {
979
- type: string;
980
- id: number;
981
- url: string;
982
- alt: string | null;
983
- }, {
984
- type: string;
985
- id: number;
986
- url: string;
987
- alt: string | null;
988
- }>, "many">;
989
- genres: z.ZodArray<z.ZodObject<{
990
- id: z.ZodNumber;
991
- slug: z.ZodString;
992
- name: z.ZodString;
993
- }, "strip", z.ZodTypeAny, {
994
- id: number;
995
- name: string;
996
- slug: string;
997
- }, {
998
- id: number;
999
- name: string;
1000
- slug: string;
1001
- }>, "many">;
1002
- tags: z.ZodArray<z.ZodObject<{
1003
- id: z.ZodNumber;
1004
- slug: z.ZodString;
1005
- name: z.ZodString;
1006
- }, "strip", z.ZodTypeAny, {
1007
- id: number;
1008
- name: string;
1009
- slug: string;
1010
- }, {
1011
- id: number;
1012
- name: string;
1013
- slug: string;
1014
- }>, "many">;
1015
- regions: z.ZodArray<z.ZodObject<Omit<{
1016
- id: z.ZodNumber;
1017
- code: z.ZodString;
1018
- name: z.ZodString;
1019
- _count: z.ZodObject<{
1020
- products: z.ZodNumber;
1021
- }, "strip", z.ZodTypeAny, {
1022
- products: number;
1023
- }, {
1024
- products: number;
1025
- }>;
1026
- }, "_count">, "strip", z.ZodTypeAny, {
1027
- code: string;
1028
- id: number;
1029
- name: string;
1030
- }, {
1031
- code: string;
1032
- id: number;
1033
- name: string;
1034
- }>, "many">;
1035
- systemRequirements: z.ZodArray<z.ZodObject<{
1036
- type: z.ZodString;
1037
- os: z.ZodNullable<z.ZodString>;
1038
- processor: z.ZodNullable<z.ZodString>;
1039
- memory: z.ZodNullable<z.ZodString>;
1040
- graphics: z.ZodNullable<z.ZodString>;
1041
- storage: z.ZodNullable<z.ZodString>;
1042
- directx: z.ZodNullable<z.ZodString>;
1043
- network: z.ZodNullable<z.ZodString>;
1044
- additional: z.ZodNullable<z.ZodString>;
1045
- }, "strip", z.ZodTypeAny, {
1046
- type: string;
1047
- os: string | null;
1048
- processor: string | null;
1049
- memory: string | null;
1050
- graphics: string | null;
1051
- storage: string | null;
1052
- directx: string | null;
1053
- network: string | null;
1054
- additional: string | null;
1055
- }, {
1056
- type: string;
1057
- os: string | null;
1058
- processor: string | null;
1059
- memory: string | null;
1060
- graphics: string | null;
1061
- storage: string | null;
1062
- directx: string | null;
1063
- network: string | null;
1064
- additional: string | null;
1065
- }>, "many">;
1066
- dlcs: z.ZodArray<z.ZodObject<{
1067
- id: z.ZodNumber;
1068
- slug: z.ZodString;
1069
- title: z.ZodString;
1070
- coverImageUrl: z.ZodNullable<z.ZodString>;
1071
- catalogImageUrl: z.ZodNullable<z.ZodString>;
1072
- cardImageUrl: z.ZodNullable<z.ZodString>;
1073
- variants: z.ZodArray<z.ZodObject<{
1074
- price: z.ZodAny;
1075
- originalPrice: z.ZodAny;
1076
- }, "strip", z.ZodTypeAny, {
1077
- price?: any;
1078
- originalPrice?: any;
1079
- }, {
1080
- price?: any;
1081
- originalPrice?: any;
1082
- }>, "many">;
1083
- }, "strip", z.ZodTypeAny, {
1084
- id: number;
1085
- slug: string;
1086
- title: string;
1087
- coverImageUrl: string | null;
1088
- catalogImageUrl: string | null;
1089
- cardImageUrl: string | null;
1090
- variants: {
1091
- price?: any;
1092
- originalPrice?: any;
1093
- }[];
1094
- }, {
1095
- id: number;
1096
- slug: string;
1097
- title: string;
1098
- coverImageUrl: string | null;
1099
- catalogImageUrl: string | null;
1100
- cardImageUrl: string | null;
1101
- variants: {
1102
- price?: any;
1103
- originalPrice?: any;
1104
- }[];
1105
- }>, "many">;
1106
- createdAt: z.ZodDate;
1107
- updatedAt: z.ZodDate;
1108
- }, "strip", z.ZodTypeAny, {
1109
- type: string;
1110
- status: string;
1111
- id: number;
1112
- createdAt: Date;
1113
- updatedAt: Date;
1114
- slug: string;
1115
- title: string;
1116
- originalTitle: string | null;
1117
- description: string | null;
1118
- customDescription: string | null;
1119
- shortDescription: string | null;
1120
- coverImageUrl: string | null;
1121
- catalogImageUrl: string | null;
1122
- cardImageUrl: string | null;
1123
- developer: string | null;
1124
- publisher: string | null;
1125
- releaseDate: Date | null;
1126
- steamAppId: number | null;
1127
- hasMultiplayer: boolean;
1128
- hasCoop: boolean;
1129
- hasSinglePlayer: boolean;
1130
- metaTitle: string | null;
1131
- metaDescription: string | null;
1132
- variants: {
1133
- id: number;
1134
- price: string;
1135
- name: string;
1136
- sku: string;
1137
- imageUrl: string | null;
1138
- originalPrice: string | null;
1139
- topupAmount: string | null;
1140
- currency: string | null;
1141
- durationDays: number | null;
1142
- platform: string | null;
1143
- regionCode: string | null;
1144
- deliveryType: string;
1145
- inStock: boolean;
1146
- }[];
1147
- steamRating: number | null;
1148
- salesCount: number;
1149
- category: {
1150
- id: number;
1151
- name: string;
1152
- slug: string;
1153
- };
1154
- genres: {
1155
- id: number;
1156
- name: string;
1157
- slug: string;
1158
- }[];
1159
- regions: {
1160
- code: string;
1161
- id: number;
1162
- name: string;
1163
- }[];
1164
- viewsCount: number;
1165
- media: {
1166
- type: string;
1167
- id: number;
1168
- url: string;
1169
- alt: string | null;
1170
- }[];
1171
- tags: {
1172
- id: number;
1173
- name: string;
1174
- slug: string;
1175
- }[];
1176
- systemRequirements: {
1177
- type: string;
1178
- os: string | null;
1179
- processor: string | null;
1180
- memory: string | null;
1181
- graphics: string | null;
1182
- storage: string | null;
1183
- directx: string | null;
1184
- network: string | null;
1185
- additional: string | null;
1186
- }[];
1187
- dlcs: {
1188
- id: number;
1189
- slug: string;
1190
- title: string;
1191
- coverImageUrl: string | null;
1192
- catalogImageUrl: string | null;
1193
- cardImageUrl: string | null;
1194
- variants: {
1195
- price?: any;
1196
- originalPrice?: any;
1197
- }[];
1198
- }[];
1199
- }, {
1200
- type: string;
1201
- status: string;
1202
- id: number;
1203
- createdAt: Date;
1204
- updatedAt: Date;
1205
- slug: string;
1206
- title: string;
1207
- originalTitle: string | null;
1208
- description: string | null;
1209
- customDescription: string | null;
1210
- shortDescription: string | null;
1211
- coverImageUrl: string | null;
1212
- catalogImageUrl: string | null;
1213
- cardImageUrl: string | null;
1214
- developer: string | null;
1215
- publisher: string | null;
1216
- releaseDate: Date | null;
1217
- steamAppId: number | null;
1218
- hasMultiplayer: boolean;
1219
- hasCoop: boolean;
1220
- hasSinglePlayer: boolean;
1221
- metaTitle: string | null;
1222
- metaDescription: string | null;
1223
- variants: {
1224
- id: number;
1225
- price: string;
1226
- name: string;
1227
- sku: string;
1228
- imageUrl: string | null;
1229
- originalPrice: string | null;
1230
- topupAmount: string | null;
1231
- currency: string | null;
1232
- durationDays: number | null;
1233
- platform: string | null;
1234
- regionCode: string | null;
1235
- deliveryType: string;
1236
- inStock: boolean;
1237
- }[];
1238
- steamRating: number | null;
1239
- salesCount: number;
1240
- category: {
1241
- id: number;
1242
- name: string;
1243
- slug: string;
1244
- };
1245
- genres: {
1246
- id: number;
1247
- name: string;
1248
- slug: string;
1249
- }[];
1250
- regions: {
1251
- code: string;
1252
- id: number;
1253
- name: string;
1254
- }[];
1255
- viewsCount: number;
1256
- media: {
1257
- type: string;
1258
- id: number;
1259
- url: string;
1260
- alt: string | null;
1261
- }[];
1262
- tags: {
1263
- id: number;
1264
- name: string;
1265
- slug: string;
1266
- }[];
1267
- systemRequirements: {
1268
- type: string;
1269
- os: string | null;
1270
- processor: string | null;
1271
- memory: string | null;
1272
- graphics: string | null;
1273
- storage: string | null;
1274
- directx: string | null;
1275
- network: string | null;
1276
- additional: string | null;
1277
- }[];
1278
- dlcs: {
1279
- id: number;
1280
- slug: string;
1281
- title: string;
1282
- coverImageUrl: string | null;
1283
- catalogImageUrl: string | null;
1284
- cardImageUrl: string | null;
1285
- variants: {
1286
- price?: any;
1287
- originalPrice?: any;
1288
- }[];
1289
- }[];
1290
- }>;
1291
- };
1292
- update: {
1293
- method: "PUT";
1294
- path: string;
1295
- request: z.ZodObject<{
1296
- slug: z.ZodOptional<z.ZodString>;
1297
- title: z.ZodOptional<z.ZodString>;
1298
- originalTitle: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1299
- type: z.ZodOptional<z.ZodEnum<["GAME_KEY", "GAME_GIFT", "TOPUP", "SUBSCRIPTION", "IN_GAME_ITEM", "DLC", "CURRENCY"]>>;
1300
- categoryId: z.ZodOptional<z.ZodNumber>;
1301
- parentProductId: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1302
- description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1303
- customDescription: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1304
- shortDescription: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1305
- coverImageUrl: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1306
- catalogImageUrl: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1307
- cardImageUrl: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1308
- developer: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1309
- publisher: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1310
- releaseDate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1311
- steamAppId: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1312
- hasMultiplayer: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1313
- hasCoop: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1314
- hasSinglePlayer: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1315
- metaTitle: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1316
- metaDescription: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1317
- genreIds: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
1318
- tagIds: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
1319
- regionIds: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
1320
- } & {
1321
- status: z.ZodOptional<z.ZodEnum<["DRAFT", "ACTIVE", "OUT_OF_STOCK", "ARCHIVED"]>>;
1322
- }, "strip", z.ZodTypeAny, {
1323
- type?: "GAME_KEY" | "GAME_GIFT" | "TOPUP" | "SUBSCRIPTION" | "IN_GAME_ITEM" | "DLC" | "CURRENCY" | undefined;
1324
- status?: "ACTIVE" | "DRAFT" | "OUT_OF_STOCK" | "ARCHIVED" | undefined;
1325
- slug?: string | undefined;
1326
- title?: string | undefined;
1327
- originalTitle?: string | undefined;
1328
- categoryId?: number | undefined;
1329
- parentProductId?: number | undefined;
1330
- description?: string | undefined;
1331
- customDescription?: string | undefined;
1332
- shortDescription?: string | undefined;
1333
- coverImageUrl?: string | undefined;
1334
- catalogImageUrl?: string | undefined;
1335
- cardImageUrl?: string | undefined;
1336
- developer?: string | undefined;
1337
- publisher?: string | undefined;
1338
- releaseDate?: string | undefined;
1339
- steamAppId?: number | undefined;
1340
- hasMultiplayer?: boolean | undefined;
1341
- hasCoop?: boolean | undefined;
1342
- hasSinglePlayer?: boolean | undefined;
1343
- metaTitle?: string | undefined;
1344
- metaDescription?: string | undefined;
1345
- genreIds?: number[] | undefined;
1346
- tagIds?: number[] | undefined;
1347
- regionIds?: number[] | undefined;
1348
- }, {
1349
- type?: "GAME_KEY" | "GAME_GIFT" | "TOPUP" | "SUBSCRIPTION" | "IN_GAME_ITEM" | "DLC" | "CURRENCY" | undefined;
1350
- status?: "ACTIVE" | "DRAFT" | "OUT_OF_STOCK" | "ARCHIVED" | undefined;
1351
- slug?: string | undefined;
1352
- title?: string | undefined;
1353
- originalTitle?: string | undefined;
1354
- categoryId?: number | undefined;
1355
- parentProductId?: number | undefined;
1356
- description?: string | undefined;
1357
- customDescription?: string | undefined;
1358
- shortDescription?: string | undefined;
1359
- coverImageUrl?: string | undefined;
1360
- catalogImageUrl?: string | undefined;
1361
- cardImageUrl?: string | undefined;
1362
- developer?: string | undefined;
1363
- publisher?: string | undefined;
1364
- releaseDate?: string | undefined;
1365
- steamAppId?: number | undefined;
1366
- hasMultiplayer?: boolean | undefined;
1367
- hasCoop?: boolean | undefined;
1368
- hasSinglePlayer?: boolean | undefined;
1369
- metaTitle?: string | undefined;
1370
- metaDescription?: string | undefined;
1371
- genreIds?: number[] | undefined;
1372
- tagIds?: number[] | undefined;
1373
- regionIds?: number[] | undefined;
1374
- }>;
1375
- response: z.ZodObject<{
1376
- id: z.ZodNumber;
1377
- slug: z.ZodString;
1378
- title: z.ZodString;
1379
- originalTitle: z.ZodNullable<z.ZodString>;
1380
- type: z.ZodString;
1381
- status: z.ZodString;
1382
- description: z.ZodNullable<z.ZodString>;
1383
- customDescription: z.ZodNullable<z.ZodString>;
1384
- shortDescription: z.ZodNullable<z.ZodString>;
1385
- coverImageUrl: z.ZodNullable<z.ZodString>;
1386
- catalogImageUrl: z.ZodNullable<z.ZodString>;
1387
- cardImageUrl: z.ZodNullable<z.ZodString>;
1388
- developer: z.ZodNullable<z.ZodString>;
1389
- publisher: z.ZodNullable<z.ZodString>;
1390
- releaseDate: z.ZodNullable<z.ZodDate>;
1391
- steamAppId: z.ZodNullable<z.ZodNumber>;
1392
- steamRating: z.ZodNullable<z.ZodNumber>;
1393
- hasMultiplayer: z.ZodBoolean;
1394
- hasCoop: z.ZodBoolean;
1395
- hasSinglePlayer: z.ZodBoolean;
1396
- metaTitle: z.ZodNullable<z.ZodString>;
1397
- metaDescription: z.ZodNullable<z.ZodString>;
1398
- salesCount: z.ZodNumber;
1399
- viewsCount: z.ZodNumber;
1400
- category: z.ZodObject<{
1401
- slug: z.ZodString;
1402
- name: z.ZodString;
1403
- } & {
1404
- id: z.ZodNumber;
1405
- }, "strip", z.ZodTypeAny, {
1406
- id: number;
1407
- name: string;
1408
- slug: string;
1409
- }, {
1410
- id: number;
1411
- name: string;
1412
- slug: string;
1413
- }>;
1414
- variants: z.ZodArray<z.ZodObject<{
1415
- id: z.ZodNumber;
1416
- name: z.ZodString;
1417
- sku: z.ZodString;
1418
- imageUrl: z.ZodNullable<z.ZodString>;
1419
- price: z.ZodString;
1420
- originalPrice: z.ZodNullable<z.ZodString>;
1421
- topupAmount: z.ZodNullable<z.ZodString>;
1422
- currency: z.ZodNullable<z.ZodString>;
1423
- durationDays: z.ZodNullable<z.ZodNumber>;
1424
- platform: z.ZodNullable<z.ZodString>;
1425
- regionCode: z.ZodNullable<z.ZodString>;
1426
- deliveryType: z.ZodString;
1427
- inStock: z.ZodBoolean;
1428
- }, "strip", z.ZodTypeAny, {
1429
- id: number;
1430
- price: string;
1431
- name: string;
1432
- sku: string;
1433
- imageUrl: string | null;
1434
- originalPrice: string | null;
1435
- topupAmount: string | null;
1436
- currency: string | null;
1437
- durationDays: number | null;
1438
- platform: string | null;
1439
- regionCode: string | null;
1440
- deliveryType: string;
1441
- inStock: boolean;
1442
- }, {
1443
- id: number;
1444
- price: string;
1445
- name: string;
1446
- sku: string;
1447
- imageUrl: string | null;
1448
- originalPrice: string | null;
1449
- topupAmount: string | null;
1450
- currency: string | null;
1451
- durationDays: number | null;
1452
- platform: string | null;
1453
- regionCode: string | null;
1454
- deliveryType: string;
1455
- inStock: boolean;
1456
- }>, "many">;
1457
- media: z.ZodArray<z.ZodObject<{
1458
- id: z.ZodNumber;
1459
- type: z.ZodString;
1460
- url: z.ZodString;
1461
- alt: z.ZodNullable<z.ZodString>;
1462
- }, "strip", z.ZodTypeAny, {
1463
- type: string;
1464
- id: number;
1465
- url: string;
1466
- alt: string | null;
1467
- }, {
1468
- type: string;
1469
- id: number;
1470
- url: string;
1471
- alt: string | null;
1472
- }>, "many">;
1473
- genres: z.ZodArray<z.ZodObject<{
1474
- id: z.ZodNumber;
1475
- slug: z.ZodString;
1476
- name: z.ZodString;
1477
- }, "strip", z.ZodTypeAny, {
1478
- id: number;
1479
- name: string;
1480
- slug: string;
1481
- }, {
1482
- id: number;
1483
- name: string;
1484
- slug: string;
1485
- }>, "many">;
1486
- tags: z.ZodArray<z.ZodObject<{
1487
- id: z.ZodNumber;
1488
- slug: z.ZodString;
1489
- name: z.ZodString;
1490
- }, "strip", z.ZodTypeAny, {
1491
- id: number;
1492
- name: string;
1493
- slug: string;
1494
- }, {
1495
- id: number;
1496
- name: string;
1497
- slug: string;
1498
- }>, "many">;
1499
- regions: z.ZodArray<z.ZodObject<Omit<{
1500
- id: z.ZodNumber;
1501
- code: z.ZodString;
1502
- name: z.ZodString;
1503
- _count: z.ZodObject<{
1504
- products: z.ZodNumber;
1505
- }, "strip", z.ZodTypeAny, {
1506
- products: number;
1507
- }, {
1508
- products: number;
1509
- }>;
1510
- }, "_count">, "strip", z.ZodTypeAny, {
1511
- code: string;
1512
- id: number;
1513
- name: string;
1514
- }, {
1515
- code: string;
1516
- id: number;
1517
- name: string;
1518
- }>, "many">;
1519
- systemRequirements: z.ZodArray<z.ZodObject<{
1520
- type: z.ZodString;
1521
- os: z.ZodNullable<z.ZodString>;
1522
- processor: z.ZodNullable<z.ZodString>;
1523
- memory: z.ZodNullable<z.ZodString>;
1524
- graphics: z.ZodNullable<z.ZodString>;
1525
- storage: z.ZodNullable<z.ZodString>;
1526
- directx: z.ZodNullable<z.ZodString>;
1527
- network: z.ZodNullable<z.ZodString>;
1528
- additional: z.ZodNullable<z.ZodString>;
1529
- }, "strip", z.ZodTypeAny, {
1530
- type: string;
1531
- os: string | null;
1532
- processor: string | null;
1533
- memory: string | null;
1534
- graphics: string | null;
1535
- storage: string | null;
1536
- directx: string | null;
1537
- network: string | null;
1538
- additional: string | null;
1539
- }, {
1540
- type: string;
1541
- os: string | null;
1542
- processor: string | null;
1543
- memory: string | null;
1544
- graphics: string | null;
1545
- storage: string | null;
1546
- directx: string | null;
1547
- network: string | null;
1548
- additional: string | null;
1549
- }>, "many">;
1550
- dlcs: z.ZodArray<z.ZodObject<{
1551
- id: z.ZodNumber;
1552
- slug: z.ZodString;
1553
- title: z.ZodString;
1554
- coverImageUrl: z.ZodNullable<z.ZodString>;
1555
- catalogImageUrl: z.ZodNullable<z.ZodString>;
1556
- cardImageUrl: z.ZodNullable<z.ZodString>;
1557
- variants: z.ZodArray<z.ZodObject<{
1558
- price: z.ZodAny;
1559
- originalPrice: z.ZodAny;
1560
- }, "strip", z.ZodTypeAny, {
1561
- price?: any;
1562
- originalPrice?: any;
1563
- }, {
1564
- price?: any;
1565
- originalPrice?: any;
1566
- }>, "many">;
1567
- }, "strip", z.ZodTypeAny, {
1568
- id: number;
1569
- slug: string;
1570
- title: string;
1571
- coverImageUrl: string | null;
1572
- catalogImageUrl: string | null;
1573
- cardImageUrl: string | null;
1574
- variants: {
1575
- price?: any;
1576
- originalPrice?: any;
1577
- }[];
1578
- }, {
1579
- id: number;
1580
- slug: string;
1581
- title: string;
1582
- coverImageUrl: string | null;
1583
- catalogImageUrl: string | null;
1584
- cardImageUrl: string | null;
1585
- variants: {
1586
- price?: any;
1587
- originalPrice?: any;
1588
- }[];
1589
- }>, "many">;
1590
- createdAt: z.ZodDate;
1591
- updatedAt: z.ZodDate;
1592
- }, "strip", z.ZodTypeAny, {
1593
- type: string;
1594
- status: string;
1595
- id: number;
1596
- createdAt: Date;
1597
- updatedAt: Date;
1598
- slug: string;
1599
- title: string;
1600
- originalTitle: string | null;
1601
- description: string | null;
1602
- customDescription: string | null;
1603
- shortDescription: string | null;
1604
- coverImageUrl: string | null;
1605
- catalogImageUrl: string | null;
1606
- cardImageUrl: string | null;
1607
- developer: string | null;
1608
- publisher: string | null;
1609
- releaseDate: Date | null;
1610
- steamAppId: number | null;
1611
- hasMultiplayer: boolean;
1612
- hasCoop: boolean;
1613
- hasSinglePlayer: boolean;
1614
- metaTitle: string | null;
1615
- metaDescription: string | null;
1616
- variants: {
1617
- id: number;
1618
- price: string;
1619
- name: string;
1620
- sku: string;
1621
- imageUrl: string | null;
1622
- originalPrice: string | null;
1623
- topupAmount: string | null;
1624
- currency: string | null;
1625
- durationDays: number | null;
1626
- platform: string | null;
1627
- regionCode: string | null;
1628
- deliveryType: string;
1629
- inStock: boolean;
1630
- }[];
1631
- steamRating: number | null;
1632
- salesCount: number;
1633
- category: {
1634
- id: number;
1635
- name: string;
1636
- slug: string;
1637
- };
1638
- genres: {
1639
- id: number;
1640
- name: string;
1641
- slug: string;
1642
- }[];
1643
- regions: {
1644
- code: string;
1645
- id: number;
1646
- name: string;
1647
- }[];
1648
- viewsCount: number;
1649
- media: {
1650
- type: string;
1651
- id: number;
1652
- url: string;
1653
- alt: string | null;
1654
- }[];
1655
- tags: {
1656
- id: number;
1657
- name: string;
1658
- slug: string;
1659
- }[];
1660
- systemRequirements: {
1661
- type: string;
1662
- os: string | null;
1663
- processor: string | null;
1664
- memory: string | null;
1665
- graphics: string | null;
1666
- storage: string | null;
1667
- directx: string | null;
1668
- network: string | null;
1669
- additional: string | null;
1670
- }[];
1671
- dlcs: {
1672
- id: number;
1673
- slug: string;
1674
- title: string;
1675
- coverImageUrl: string | null;
1676
- catalogImageUrl: string | null;
1677
- cardImageUrl: string | null;
1678
- variants: {
1679
- price?: any;
1680
- originalPrice?: any;
1681
- }[];
1682
- }[];
1683
- }, {
1684
- type: string;
1685
- status: string;
1686
- id: number;
1687
- createdAt: Date;
1688
- updatedAt: Date;
1689
- slug: string;
1690
- title: string;
1691
- originalTitle: string | null;
1692
- description: string | null;
1693
- customDescription: string | null;
1694
- shortDescription: string | null;
1695
- coverImageUrl: string | null;
1696
- catalogImageUrl: string | null;
1697
- cardImageUrl: string | null;
1698
- developer: string | null;
1699
- publisher: string | null;
1700
- releaseDate: Date | null;
1701
- steamAppId: number | null;
1702
- hasMultiplayer: boolean;
1703
- hasCoop: boolean;
1704
- hasSinglePlayer: boolean;
1705
- metaTitle: string | null;
1706
- metaDescription: string | null;
1707
- variants: {
1708
- id: number;
1709
- price: string;
1710
- name: string;
1711
- sku: string;
1712
- imageUrl: string | null;
1713
- originalPrice: string | null;
1714
- topupAmount: string | null;
1715
- currency: string | null;
1716
- durationDays: number | null;
1717
- platform: string | null;
1718
- regionCode: string | null;
1719
- deliveryType: string;
1720
- inStock: boolean;
1721
- }[];
1722
- steamRating: number | null;
1723
- salesCount: number;
1724
- category: {
1725
- id: number;
1726
- name: string;
1727
- slug: string;
1728
- };
1729
- genres: {
1730
- id: number;
1731
- name: string;
1732
- slug: string;
1733
- }[];
1734
- regions: {
1735
- code: string;
1736
- id: number;
1737
- name: string;
1738
- }[];
1739
- viewsCount: number;
1740
- media: {
1741
- type: string;
1742
- id: number;
1743
- url: string;
1744
- alt: string | null;
1745
- }[];
1746
- tags: {
1747
- id: number;
1748
- name: string;
1749
- slug: string;
1750
- }[];
1751
- systemRequirements: {
1752
- type: string;
1753
- os: string | null;
1754
- processor: string | null;
1755
- memory: string | null;
1756
- graphics: string | null;
1757
- storage: string | null;
1758
- directx: string | null;
1759
- network: string | null;
1760
- additional: string | null;
1761
- }[];
1762
- dlcs: {
1763
- id: number;
1764
- slug: string;
1765
- title: string;
1766
- coverImageUrl: string | null;
1767
- catalogImageUrl: string | null;
1768
- cardImageUrl: string | null;
1769
- variants: {
1770
- price?: any;
1771
- originalPrice?: any;
1772
- }[];
1773
- }[];
1774
- }>;
1775
- };
1776
- archive: {
1777
- method: "DELETE";
1778
- path: string;
1779
- response: z.ZodObject<{
1780
- status: z.ZodString;
1781
- }, "strip", z.ZodTypeAny, {
1782
- status: string;
1783
- }, {
1784
- status: string;
1785
- }>;
1786
- };
1787
- createVariant: {
1788
- method: "POST";
1789
- path: string;
1790
- request: z.ZodObject<{
1791
- name: z.ZodString;
1792
- sku: z.ZodString;
1793
- imageUrl: z.ZodOptional<z.ZodString>;
1794
- price: z.ZodNumber;
1795
- originalPrice: z.ZodOptional<z.ZodNumber>;
1796
- costPrice: z.ZodOptional<z.ZodNumber>;
1797
- topupAmount: z.ZodOptional<z.ZodNumber>;
1798
- currency: z.ZodOptional<z.ZodString>;
1799
- durationDays: z.ZodOptional<z.ZodNumber>;
1800
- platform: z.ZodOptional<z.ZodString>;
1801
- regionCode: z.ZodOptional<z.ZodString>;
1802
- deliveryType: z.ZodDefault<z.ZodEnum<["AUTOMATIC", "MANUAL", "BOT"]>>;
1803
- }, "strip", z.ZodTypeAny, {
1804
- price: number;
1805
- name: string;
1806
- sku: string;
1807
- deliveryType: "AUTOMATIC" | "MANUAL" | "BOT";
1808
- imageUrl?: string | undefined;
1809
- originalPrice?: number | undefined;
1810
- costPrice?: number | undefined;
1811
- topupAmount?: number | undefined;
1812
- currency?: string | undefined;
1813
- durationDays?: number | undefined;
1814
- platform?: string | undefined;
1815
- regionCode?: string | undefined;
1816
- }, {
1817
- price: number;
1818
- name: string;
1819
- sku: string;
1820
- imageUrl?: string | undefined;
1821
- originalPrice?: number | undefined;
1822
- costPrice?: number | undefined;
1823
- topupAmount?: number | undefined;
1824
- currency?: string | undefined;
1825
- durationDays?: number | undefined;
1826
- platform?: string | undefined;
1827
- regionCode?: string | undefined;
1828
- deliveryType?: "AUTOMATIC" | "MANUAL" | "BOT" | undefined;
1829
- }>;
1830
- };
1831
- updateVariant: {
1832
- method: "PUT";
1833
- path: string;
1834
- request: z.ZodObject<{
1835
- name: z.ZodString;
1836
- sku: z.ZodString;
1837
- imageUrl: z.ZodOptional<z.ZodString>;
1838
- price: z.ZodNumber;
1839
- originalPrice: z.ZodOptional<z.ZodNumber>;
1840
- costPrice: z.ZodOptional<z.ZodNumber>;
1841
- topupAmount: z.ZodOptional<z.ZodNumber>;
1842
- currency: z.ZodOptional<z.ZodString>;
1843
- durationDays: z.ZodOptional<z.ZodNumber>;
1844
- platform: z.ZodOptional<z.ZodString>;
1845
- regionCode: z.ZodOptional<z.ZodString>;
1846
- deliveryType: z.ZodDefault<z.ZodEnum<["AUTOMATIC", "MANUAL", "BOT"]>>;
1847
- }, "strip", z.ZodTypeAny, {
1848
- price: number;
1849
- name: string;
1850
- sku: string;
1851
- deliveryType: "AUTOMATIC" | "MANUAL" | "BOT";
1852
- imageUrl?: string | undefined;
1853
- originalPrice?: number | undefined;
1854
- costPrice?: number | undefined;
1855
- topupAmount?: number | undefined;
1856
- currency?: string | undefined;
1857
- durationDays?: number | undefined;
1858
- platform?: string | undefined;
1859
- regionCode?: string | undefined;
1860
- }, {
1861
- price: number;
1862
- name: string;
1863
- sku: string;
1864
- imageUrl?: string | undefined;
1865
- originalPrice?: number | undefined;
1866
- costPrice?: number | undefined;
1867
- topupAmount?: number | undefined;
1868
- currency?: string | undefined;
1869
- durationDays?: number | undefined;
1870
- platform?: string | undefined;
1871
- regionCode?: string | undefined;
1872
- deliveryType?: "AUTOMATIC" | "MANUAL" | "BOT" | undefined;
1873
- }>;
1874
- };
1875
- importKeys: {
1876
- method: "POST";
1877
- path: string;
1878
- request: z.ZodObject<{
1879
- keys: z.ZodArray<z.ZodString, "many">;
1880
- }, "strip", z.ZodTypeAny, {
1881
- keys: string[];
1882
- }, {
1883
- keys: string[];
1884
- }>;
1885
- response: z.ZodObject<{
1886
- imported: z.ZodNumber;
1887
- }, "strip", z.ZodTypeAny, {
1888
- imported: number;
1889
- }, {
1890
- imported: number;
1891
- }>;
1892
- };
1893
- getKeysCount: {
1894
- method: "GET";
1895
- path: string;
1896
- response: z.ZodObject<{
1897
- available: z.ZodNumber;
1898
- sold: z.ZodNumber;
1899
- reserved: z.ZodNumber;
1900
- total: z.ZodNumber;
1901
- }, "strip", z.ZodTypeAny, {
1902
- total: number;
1903
- available: number;
1904
- sold: number;
1905
- reserved: number;
1906
- }, {
1907
- total: number;
1908
- available: number;
1909
- sold: number;
1910
- reserved: number;
1911
- }>;
1912
- };
1913
- addMedia: {
1914
- method: "POST";
1915
- path: string;
1916
- request: z.ZodObject<{
1917
- type: z.ZodEnum<["SCREENSHOT", "SLIDER", "VIDEO", "TRAILER"]>;
1918
- url: z.ZodString;
1919
- alt: z.ZodOptional<z.ZodString>;
1920
- sortOrder: z.ZodDefault<z.ZodNumber>;
1921
- }, "strip", z.ZodTypeAny, {
1922
- type: "SCREENSHOT" | "SLIDER" | "VIDEO" | "TRAILER";
1923
- url: string;
1924
- sortOrder: number;
1925
- alt?: string | undefined;
1926
- }, {
1927
- type: "SCREENSHOT" | "SLIDER" | "VIDEO" | "TRAILER";
1928
- url: string;
1929
- alt?: string | undefined;
1930
- sortOrder?: number | undefined;
1931
- }>;
1932
- };
1933
- removeMedia: {
1934
- method: "DELETE";
1935
- path: string;
1936
- };
1937
- upsertSystemRequirements: {
1938
- method: "POST";
1939
- path: string;
1940
- request: z.ZodObject<{
1941
- type: z.ZodEnum<["minimum", "recommended"]>;
1942
- os: z.ZodOptional<z.ZodString>;
1943
- processor: z.ZodOptional<z.ZodString>;
1944
- memory: z.ZodOptional<z.ZodString>;
1945
- graphics: z.ZodOptional<z.ZodString>;
1946
- storage: z.ZodOptional<z.ZodString>;
1947
- directx: z.ZodOptional<z.ZodString>;
1948
- network: z.ZodOptional<z.ZodString>;
1949
- additional: z.ZodOptional<z.ZodString>;
1950
- }, "strip", z.ZodTypeAny, {
1951
- type: "minimum" | "recommended";
1952
- os?: string | undefined;
1953
- processor?: string | undefined;
1954
- memory?: string | undefined;
1955
- graphics?: string | undefined;
1956
- storage?: string | undefined;
1957
- directx?: string | undefined;
1958
- network?: string | undefined;
1959
- additional?: string | undefined;
1960
- }, {
1961
- type: "minimum" | "recommended";
1962
- os?: string | undefined;
1963
- processor?: string | undefined;
1964
- memory?: string | undefined;
1965
- graphics?: string | undefined;
1966
- storage?: string | undefined;
1967
- directx?: string | undefined;
1968
- network?: string | undefined;
1969
- additional?: string | undefined;
1970
- }>;
1971
- };
1972
- };
1973
- export type ProductEndpointKey = keyof typeof ProductEndpoints;
1974
- export type GetProductRequest<K extends ProductEndpointKey> = typeof ProductEndpoints[K] extends {
1975
- request: z.ZodTypeAny;
1976
- } ? z.infer<typeof ProductEndpoints[K]["request"]> : never;
1977
- export type GetProductResponse<K extends ProductEndpointKey> = typeof ProductEndpoints[K] extends {
1978
- response: z.ZodTypeAny;
1979
- } ? z.infer<typeof ProductEndpoints[K]["response"]> : never;
1980
- //# sourceMappingURL=endpoints.d.ts.map