@gigapay-dev/contracts 1.8.6 → 2.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 (333) hide show
  1. package/README.md +1 -0
  2. package/build/client.d.ts +934 -0
  3. package/build/client.d.ts.map +1 -0
  4. package/build/client.js +184 -0
  5. package/build/client.js.map +1 -0
  6. package/build/commands/api-response.d.ts +1 -0
  7. package/build/commands/api-response.d.ts.map +1 -0
  8. package/build/commands/api-response.js +1 -0
  9. package/build/commands/api-response.js.map +1 -0
  10. package/build/commands/auth/confirm.d.ts +1 -0
  11. package/build/commands/auth/confirm.d.ts.map +1 -0
  12. package/build/commands/auth/confirm.js +1 -0
  13. package/build/commands/auth/confirm.js.map +1 -0
  14. package/build/commands/auth/endpoints.d.ts +1 -0
  15. package/build/commands/auth/endpoints.d.ts.map +1 -0
  16. package/build/commands/auth/endpoints.js +1 -0
  17. package/build/commands/auth/endpoints.js.map +1 -0
  18. package/build/commands/auth/index.d.ts +2 -0
  19. package/build/commands/auth/index.d.ts.map +1 -0
  20. package/build/commands/auth/index.js +2 -0
  21. package/build/commands/auth/index.js.map +1 -0
  22. package/build/commands/auth/login.d.ts +1 -0
  23. package/build/commands/auth/login.d.ts.map +1 -0
  24. package/build/commands/auth/login.js +1 -0
  25. package/build/commands/auth/login.js.map +1 -0
  26. package/build/commands/auth/profile.d.ts +1 -0
  27. package/build/commands/auth/profile.d.ts.map +1 -0
  28. package/build/commands/auth/profile.js +1 -0
  29. package/build/commands/auth/profile.js.map +1 -0
  30. package/build/commands/auth/register.d.ts +1 -0
  31. package/build/commands/auth/register.d.ts.map +1 -0
  32. package/build/commands/auth/register.js +1 -0
  33. package/build/commands/auth/register.js.map +1 -0
  34. package/build/commands/auth/reset.d.ts +1 -0
  35. package/build/commands/auth/reset.d.ts.map +1 -0
  36. package/build/commands/auth/reset.js +1 -0
  37. package/build/commands/auth/reset.js.map +1 -0
  38. package/build/commands/common.d.ts +65 -0
  39. package/build/commands/common.d.ts.map +1 -0
  40. package/build/commands/common.js +29 -0
  41. package/build/commands/common.js.map +1 -0
  42. package/build/commands/consts.d.ts +1 -0
  43. package/build/commands/consts.d.ts.map +1 -0
  44. package/build/commands/consts.js +1 -0
  45. package/build/commands/consts.js.map +1 -0
  46. package/build/commands/endpoints.d.ts +4643 -0
  47. package/build/commands/endpoints.d.ts.map +1 -0
  48. package/build/commands/endpoints.js +26 -0
  49. package/build/commands/endpoints.js.map +1 -0
  50. package/build/commands/index.d.ts +3 -0
  51. package/build/commands/index.d.ts.map +1 -0
  52. package/build/commands/index.js +3 -0
  53. package/build/commands/index.js.map +1 -0
  54. package/build/commands/orders/create.d.ts +5 -0
  55. package/build/commands/orders/create.d.ts.map +1 -0
  56. package/build/commands/orders/create.js +3 -0
  57. package/build/commands/orders/create.js.map +1 -0
  58. package/build/commands/orders/endpoints.d.ts +40 -24
  59. package/build/commands/orders/endpoints.d.ts.map +1 -0
  60. package/build/commands/orders/endpoints.js +1 -0
  61. package/build/commands/orders/endpoints.js.map +1 -0
  62. package/build/commands/orders/enums.d.ts +1 -0
  63. package/build/commands/orders/enums.d.ts.map +1 -0
  64. package/build/commands/orders/enums.js +1 -0
  65. package/build/commands/orders/enums.js.map +1 -0
  66. package/build/commands/orders/index.d.ts +1 -0
  67. package/build/commands/orders/index.d.ts.map +1 -0
  68. package/build/commands/orders/index.js +1 -0
  69. package/build/commands/orders/index.js.map +1 -0
  70. package/build/commands/orders/query.d.ts +7 -6
  71. package/build/commands/orders/query.d.ts.map +1 -0
  72. package/build/commands/orders/query.js +1 -0
  73. package/build/commands/orders/query.js.map +1 -0
  74. package/build/commands/orders/read.d.ts +8 -3
  75. package/build/commands/orders/read.d.ts.map +1 -0
  76. package/build/commands/orders/read.js +4 -1
  77. package/build/commands/orders/read.js.map +1 -0
  78. package/build/commands/orders/update.d.ts +1 -0
  79. package/build/commands/orders/update.d.ts.map +1 -0
  80. package/build/commands/orders/update.js +1 -0
  81. package/build/commands/orders/update.js.map +1 -0
  82. package/build/commands/pagination.d.ts +8 -7
  83. package/build/commands/pagination.d.ts.map +1 -0
  84. package/build/commands/pagination.js +5 -7
  85. package/build/commands/pagination.js.map +1 -0
  86. package/build/commands/payment-methods/create.d.ts +1 -0
  87. package/build/commands/payment-methods/create.d.ts.map +1 -0
  88. package/build/commands/payment-methods/create.js +1 -0
  89. package/build/commands/payment-methods/create.js.map +1 -0
  90. package/build/commands/payment-methods/endpoints.d.ts +1 -0
  91. package/build/commands/payment-methods/endpoints.d.ts.map +1 -0
  92. package/build/commands/payment-methods/endpoints.js +1 -0
  93. package/build/commands/payment-methods/endpoints.js.map +1 -0
  94. package/build/commands/payment-methods/index.d.ts +1 -0
  95. package/build/commands/payment-methods/index.d.ts.map +1 -0
  96. package/build/commands/payment-methods/index.js +1 -0
  97. package/build/commands/payment-methods/index.js.map +1 -0
  98. package/build/commands/payment-methods/read.d.ts +1 -0
  99. package/build/commands/payment-methods/read.d.ts.map +1 -0
  100. package/build/commands/payment-methods/read.js +1 -0
  101. package/build/commands/payment-methods/read.js.map +1 -0
  102. package/build/commands/payment-methods/update.d.ts +1 -0
  103. package/build/commands/payment-methods/update.d.ts.map +1 -0
  104. package/build/commands/payment-methods/update.js +1 -0
  105. package/build/commands/payment-methods/update.js.map +1 -0
  106. package/build/commands/products/create.d.ts +13 -0
  107. package/build/commands/products/create.d.ts.map +1 -0
  108. package/build/commands/products/create.js +7 -0
  109. package/build/commands/products/create.js.map +1 -0
  110. package/build/commands/products/endpoints.d.ts +99 -0
  111. package/build/commands/products/endpoints.d.ts.map +1 -0
  112. package/build/commands/products/endpoints.js +1 -0
  113. package/build/commands/products/endpoints.js.map +1 -0
  114. package/build/commands/products/enums.d.ts +1 -0
  115. package/build/commands/products/enums.d.ts.map +1 -0
  116. package/build/commands/products/enums.js +1 -0
  117. package/build/commands/products/enums.js.map +1 -0
  118. package/build/commands/products/index.d.ts +1 -0
  119. package/build/commands/products/index.d.ts.map +1 -0
  120. package/build/commands/products/index.js +1 -0
  121. package/build/commands/products/index.js.map +1 -0
  122. package/build/commands/products/query.d.ts +1 -0
  123. package/build/commands/products/query.d.ts.map +1 -0
  124. package/build/commands/products/query.js +1 -0
  125. package/build/commands/products/query.js.map +1 -0
  126. package/build/commands/products/read.d.ts +55 -0
  127. package/build/commands/products/read.d.ts.map +1 -0
  128. package/build/commands/products/read.js +11 -0
  129. package/build/commands/products/read.js.map +1 -0
  130. package/build/commands/products/update.d.ts +7 -0
  131. package/build/commands/products/update.d.ts.map +1 -0
  132. package/build/commands/products/update.js +1 -0
  133. package/build/commands/products/update.js.map +1 -0
  134. package/build/commands/promocode-activations/create.d.ts +1 -0
  135. package/build/commands/promocode-activations/create.d.ts.map +1 -0
  136. package/build/commands/promocode-activations/create.js +1 -0
  137. package/build/commands/promocode-activations/create.js.map +1 -0
  138. package/build/commands/promocode-activations/endpoints.d.ts +158 -0
  139. package/build/commands/promocode-activations/endpoints.d.ts.map +1 -0
  140. package/build/commands/promocode-activations/endpoints.js +39 -0
  141. package/build/commands/promocode-activations/endpoints.js.map +1 -0
  142. package/build/commands/promocode-activations/index.d.ts +2 -0
  143. package/build/commands/promocode-activations/index.d.ts.map +1 -0
  144. package/build/commands/promocode-activations/index.js +2 -0
  145. package/build/commands/promocode-activations/index.js.map +1 -0
  146. package/build/commands/promocode-activations/read.d.ts +1 -0
  147. package/build/commands/promocode-activations/read.d.ts.map +1 -0
  148. package/build/commands/promocode-activations/read.js +1 -0
  149. package/build/commands/promocode-activations/read.js.map +1 -0
  150. package/build/commands/promocode-activations/update.d.ts +1 -0
  151. package/build/commands/promocode-activations/update.d.ts.map +1 -0
  152. package/build/commands/promocode-activations/update.js +1 -0
  153. package/build/commands/promocode-activations/update.js.map +1 -0
  154. package/build/commands/promocodes/create.d.ts +1 -0
  155. package/build/commands/promocodes/create.d.ts.map +1 -0
  156. package/build/commands/promocodes/create.js +1 -0
  157. package/build/commands/promocodes/create.js.map +1 -0
  158. package/build/commands/promocodes/endpoints.d.ts +1 -0
  159. package/build/commands/promocodes/endpoints.d.ts.map +1 -0
  160. package/build/commands/promocodes/endpoints.js +1 -0
  161. package/build/commands/promocodes/endpoints.js.map +1 -0
  162. package/build/commands/promocodes/enums.d.ts +1 -0
  163. package/build/commands/promocodes/enums.d.ts.map +1 -0
  164. package/build/commands/promocodes/enums.js +1 -0
  165. package/build/commands/promocodes/enums.js.map +1 -0
  166. package/build/commands/promocodes/index.d.ts +1 -0
  167. package/build/commands/promocodes/index.d.ts.map +1 -0
  168. package/build/commands/promocodes/index.js +1 -0
  169. package/build/commands/promocodes/index.js.map +1 -0
  170. package/build/commands/promocodes/read.d.ts +1 -0
  171. package/build/commands/promocodes/read.d.ts.map +1 -0
  172. package/build/commands/promocodes/read.js +1 -0
  173. package/build/commands/promocodes/read.js.map +1 -0
  174. package/build/commands/promocodes/update.d.ts +1 -0
  175. package/build/commands/promocodes/update.d.ts.map +1 -0
  176. package/build/commands/promocodes/update.js +1 -0
  177. package/build/commands/promocodes/update.js.map +1 -0
  178. package/build/commands/refresh-sessions/create.d.ts +1 -0
  179. package/build/commands/refresh-sessions/create.d.ts.map +1 -0
  180. package/build/commands/refresh-sessions/create.js +1 -0
  181. package/build/commands/refresh-sessions/create.js.map +1 -0
  182. package/build/commands/refresh-sessions/endpoints.d.ts +216 -0
  183. package/build/commands/refresh-sessions/endpoints.d.ts.map +1 -0
  184. package/build/commands/refresh-sessions/endpoints.js +47 -0
  185. package/build/commands/refresh-sessions/endpoints.js.map +1 -0
  186. package/build/commands/refresh-sessions/enums.d.ts +1 -0
  187. package/build/commands/refresh-sessions/enums.d.ts.map +1 -0
  188. package/build/commands/refresh-sessions/enums.js +1 -0
  189. package/build/commands/refresh-sessions/enums.js.map +1 -0
  190. package/build/commands/refresh-sessions/index.d.ts +2 -0
  191. package/build/commands/refresh-sessions/index.d.ts.map +1 -0
  192. package/build/commands/refresh-sessions/index.js +2 -0
  193. package/build/commands/refresh-sessions/index.js.map +1 -0
  194. package/build/commands/refresh-sessions/read.d.ts +1 -0
  195. package/build/commands/refresh-sessions/read.d.ts.map +1 -0
  196. package/build/commands/refresh-sessions/read.js +1 -0
  197. package/build/commands/refresh-sessions/read.js.map +1 -0
  198. package/build/commands/refresh-sessions/update.d.ts +1 -0
  199. package/build/commands/refresh-sessions/update.d.ts.map +1 -0
  200. package/build/commands/refresh-sessions/update.js +1 -0
  201. package/build/commands/refresh-sessions/update.js.map +1 -0
  202. package/build/commands/settings/endpoints.d.ts +1 -0
  203. package/build/commands/settings/endpoints.d.ts.map +1 -0
  204. package/build/commands/settings/endpoints.js +1 -0
  205. package/build/commands/settings/endpoints.js.map +1 -0
  206. package/build/commands/settings/index.d.ts +1 -0
  207. package/build/commands/settings/index.d.ts.map +1 -0
  208. package/build/commands/settings/index.js +1 -0
  209. package/build/commands/settings/index.js.map +1 -0
  210. package/build/commands/settings/read.d.ts +1 -0
  211. package/build/commands/settings/read.d.ts.map +1 -0
  212. package/build/commands/settings/read.js +1 -0
  213. package/build/commands/settings/read.js.map +1 -0
  214. package/build/commands/settings/update.d.ts +1 -0
  215. package/build/commands/settings/update.d.ts.map +1 -0
  216. package/build/commands/settings/update.js +1 -0
  217. package/build/commands/settings/update.js.map +1 -0
  218. package/build/commands/stats/endpoints.d.ts +1 -0
  219. package/build/commands/stats/endpoints.d.ts.map +1 -0
  220. package/build/commands/stats/endpoints.js +1 -0
  221. package/build/commands/stats/endpoints.js.map +1 -0
  222. package/build/commands/stats/index.d.ts +1 -0
  223. package/build/commands/stats/index.d.ts.map +1 -0
  224. package/build/commands/stats/index.js +1 -0
  225. package/build/commands/stats/index.js.map +1 -0
  226. package/build/commands/stats/query.d.ts +1 -0
  227. package/build/commands/stats/query.d.ts.map +1 -0
  228. package/build/commands/stats/query.js +1 -0
  229. package/build/commands/stats/query.js.map +1 -0
  230. package/build/commands/stats/read.d.ts +1 -0
  231. package/build/commands/stats/read.d.ts.map +1 -0
  232. package/build/commands/stats/read.js +1 -0
  233. package/build/commands/stats/read.js.map +1 -0
  234. package/build/commands/users/create.d.ts +1 -0
  235. package/build/commands/users/create.d.ts.map +1 -0
  236. package/build/commands/users/create.js +1 -0
  237. package/build/commands/users/create.js.map +1 -0
  238. package/build/commands/users/endpoints.d.ts +7 -6
  239. package/build/commands/users/endpoints.d.ts.map +1 -0
  240. package/build/commands/users/endpoints.js +1 -0
  241. package/build/commands/users/endpoints.js.map +1 -0
  242. package/build/commands/users/enums.d.ts +1 -0
  243. package/build/commands/users/enums.d.ts.map +1 -0
  244. package/build/commands/users/enums.js +1 -0
  245. package/build/commands/users/enums.js.map +1 -0
  246. package/build/commands/users/index.d.ts +1 -0
  247. package/build/commands/users/index.d.ts.map +1 -0
  248. package/build/commands/users/index.js +1 -0
  249. package/build/commands/users/index.js.map +1 -0
  250. package/build/commands/users/query.d.ts +7 -6
  251. package/build/commands/users/query.d.ts.map +1 -0
  252. package/build/commands/users/query.js +1 -0
  253. package/build/commands/users/query.js.map +1 -0
  254. package/build/commands/users/read.d.ts +1 -0
  255. package/build/commands/users/read.d.ts.map +1 -0
  256. package/build/commands/users/read.js +1 -0
  257. package/build/commands/users/read.js.map +1 -0
  258. package/build/commands/users/update.d.ts +1 -0
  259. package/build/commands/users/update.d.ts.map +1 -0
  260. package/build/commands/users/update.js +1 -0
  261. package/build/commands/users/update.js.map +1 -0
  262. package/build/index.d.ts +1 -0
  263. package/build/index.d.ts.map +1 -0
  264. package/build/index.js +1 -0
  265. package/build/index.js.map +1 -0
  266. package/build/types.d.ts +1 -0
  267. package/build/types.d.ts.map +1 -0
  268. package/build/types.js +1 -0
  269. package/build/types.js.map +1 -0
  270. package/package.json +48 -17
  271. package/commands/api-response.ts +0 -10
  272. package/commands/auth/confirm.ts +0 -10
  273. package/commands/auth/endpoints.ts +0 -51
  274. package/commands/auth/index.ts +0 -5
  275. package/commands/auth/login.ts +0 -13
  276. package/commands/auth/profile.ts +0 -10
  277. package/commands/auth/register.ts +0 -8
  278. package/commands/auth/reset.ts +0 -9
  279. package/commands/consts.ts +0 -1
  280. package/commands/index.ts +0 -13
  281. package/commands/orders/create.ts +0 -41
  282. package/commands/orders/endpoints.ts +0 -51
  283. package/commands/orders/enums.ts +0 -25
  284. package/commands/orders/index.ts +0 -6
  285. package/commands/orders/query.ts +0 -46
  286. package/commands/orders/read.ts +0 -83
  287. package/commands/orders/update.ts +0 -16
  288. package/commands/pagination.ts +0 -8
  289. package/commands/payment-methods/create.ts +0 -19
  290. package/commands/payment-methods/endpoints.ts +0 -67
  291. package/commands/payment-methods/index.ts +0 -4
  292. package/commands/payment-methods/read.ts +0 -30
  293. package/commands/payment-methods/update.ts +0 -19
  294. package/commands/products/create.ts +0 -134
  295. package/commands/products/endpoints.ts +0 -108
  296. package/commands/products/enums.ts +0 -33
  297. package/commands/products/index.ts +0 -6
  298. package/commands/products/query.ts +0 -52
  299. package/commands/products/read.ts +0 -268
  300. package/commands/products/update.ts +0 -11
  301. package/commands/promocode-activations/create.ts +0 -10
  302. package/commands/promocode-activations/index.ts +0 -3
  303. package/commands/promocode-activations/read.ts +0 -11
  304. package/commands/promocode-activations/update.ts +0 -10
  305. package/commands/promocodes/create.ts +0 -18
  306. package/commands/promocodes/endpoints.ts +0 -62
  307. package/commands/promocodes/enums.ts +0 -9
  308. package/commands/promocodes/index.ts +0 -5
  309. package/commands/promocodes/read.ts +0 -20
  310. package/commands/promocodes/update.ts +0 -16
  311. package/commands/refresh-sessions/create.ts +0 -13
  312. package/commands/refresh-sessions/enums.ts +0 -4
  313. package/commands/refresh-sessions/index.ts +0 -4
  314. package/commands/refresh-sessions/read.ts +0 -14
  315. package/commands/refresh-sessions/update.ts +0 -13
  316. package/commands/settings/endpoints.ts +0 -52
  317. package/commands/settings/index.ts +0 -3
  318. package/commands/settings/read.ts +0 -10
  319. package/commands/settings/update.ts +0 -10
  320. package/commands/stats/endpoints.ts +0 -23
  321. package/commands/stats/index.ts +0 -3
  322. package/commands/stats/query.ts +0 -18
  323. package/commands/stats/read.ts +0 -14
  324. package/commands/users/create.ts +0 -19
  325. package/commands/users/endpoints.ts +0 -47
  326. package/commands/users/enums.ts +0 -10
  327. package/commands/users/index.ts +0 -6
  328. package/commands/users/query.ts +0 -20
  329. package/commands/users/read.ts +0 -25
  330. package/commands/users/update.ts +0 -19
  331. package/index.ts +0 -1
  332. package/tsconfig.json +0 -111
  333. package/types.ts +0 -9
@@ -0,0 +1,4643 @@
1
+ import { z } from "zod";
2
+ export declare const AllEndpoints: {
3
+ readonly auth: {
4
+ login: {
5
+ method: "POST";
6
+ path: string;
7
+ request: z.ZodObject<{
8
+ email: z.ZodString;
9
+ password: z.ZodString;
10
+ }, "strip", z.ZodTypeAny, {
11
+ email: string;
12
+ password: string;
13
+ }, {
14
+ email: string;
15
+ password: string;
16
+ }>;
17
+ response: z.ZodObject<{
18
+ accessToken: z.ZodString;
19
+ }, "strip", z.ZodTypeAny, {
20
+ accessToken: string;
21
+ }, {
22
+ accessToken: string;
23
+ }>;
24
+ };
25
+ register: {
26
+ method: "POST";
27
+ path: string;
28
+ request: z.ZodObject<{
29
+ email: z.ZodString;
30
+ password: z.ZodString;
31
+ }, "strip", z.ZodTypeAny, {
32
+ email: string;
33
+ password: string;
34
+ }, {
35
+ email: string;
36
+ password: string;
37
+ }>;
38
+ response: z.ZodObject<{
39
+ accessToken: z.ZodString;
40
+ }, "strip", z.ZodTypeAny, {
41
+ accessToken: string;
42
+ }, {
43
+ accessToken: string;
44
+ }>;
45
+ };
46
+ refresh: {
47
+ method: "GET";
48
+ path: string;
49
+ request: z.ZodVoid;
50
+ response: z.ZodObject<{
51
+ accessToken: z.ZodString;
52
+ }, "strip", z.ZodTypeAny, {
53
+ accessToken: string;
54
+ }, {
55
+ accessToken: string;
56
+ }>;
57
+ };
58
+ reset: {
59
+ method: "POST";
60
+ path: string;
61
+ request: z.ZodObject<{
62
+ code: z.ZodString;
63
+ password: z.ZodString;
64
+ }, "strip", z.ZodTypeAny, {
65
+ password: string;
66
+ code: string;
67
+ }, {
68
+ password: string;
69
+ code: string;
70
+ }>;
71
+ response: z.ZodVoid;
72
+ };
73
+ confirm: {
74
+ method: "GET";
75
+ path: string;
76
+ request: z.ZodObject<{
77
+ code: z.ZodString;
78
+ }, "strip", z.ZodTypeAny, {
79
+ code: string;
80
+ }, {
81
+ code: string;
82
+ }>;
83
+ response: z.ZodObject<{
84
+ accessToken: z.ZodString;
85
+ }, "strip", z.ZodTypeAny, {
86
+ accessToken: string;
87
+ }, {
88
+ accessToken: string;
89
+ }>;
90
+ };
91
+ profile: {
92
+ method: "GET";
93
+ path: string;
94
+ request: z.ZodVoid;
95
+ response: z.ZodObject<{
96
+ id: z.ZodNumber;
97
+ username: z.ZodString;
98
+ email: z.ZodString;
99
+ avatar: z.ZodNullable<z.ZodString>;
100
+ }, "strip", z.ZodTypeAny, {
101
+ email: string;
102
+ id: number;
103
+ username: string;
104
+ avatar: string | null;
105
+ }, {
106
+ email: string;
107
+ id: number;
108
+ username: string;
109
+ avatar: string | null;
110
+ }>;
111
+ };
112
+ };
113
+ readonly users: {
114
+ create: {
115
+ method: "POST";
116
+ path: string;
117
+ request: z.ZodObject<{
118
+ username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
119
+ picture: z.ZodOptional<z.ZodNullable<z.ZodString>>;
120
+ email: z.ZodString;
121
+ password: z.ZodOptional<z.ZodNullable<z.ZodString>>;
122
+ steamId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
123
+ telegramId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
124
+ vkId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
125
+ googleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
126
+ isConfirmEmail: z.ZodOptional<z.ZodBoolean>;
127
+ role: z.ZodEnum<["USER", "ADMIN", "NO_AUTH"]>;
128
+ status: z.ZodEnum<["ACTIVE", "BLOCKED"]>;
129
+ utmSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
130
+ }, "strip", z.ZodTypeAny, {
131
+ email: string;
132
+ status: "ACTIVE" | "BLOCKED";
133
+ role: "USER" | "ADMIN" | "NO_AUTH";
134
+ password?: string | null | undefined;
135
+ username?: string | null | undefined;
136
+ telegramId?: string | null | undefined;
137
+ utmSource?: string | null | undefined;
138
+ picture?: string | null | undefined;
139
+ steamId?: string | null | undefined;
140
+ vkId?: string | null | undefined;
141
+ googleId?: string | null | undefined;
142
+ isConfirmEmail?: boolean | undefined;
143
+ }, {
144
+ email: string;
145
+ status: "ACTIVE" | "BLOCKED";
146
+ role: "USER" | "ADMIN" | "NO_AUTH";
147
+ password?: string | null | undefined;
148
+ username?: string | null | undefined;
149
+ telegramId?: string | null | undefined;
150
+ utmSource?: string | null | undefined;
151
+ picture?: string | null | undefined;
152
+ steamId?: string | null | undefined;
153
+ vkId?: string | null | undefined;
154
+ googleId?: string | null | undefined;
155
+ isConfirmEmail?: boolean | undefined;
156
+ }>;
157
+ response: z.ZodObject<{
158
+ id: z.ZodNumber;
159
+ username: z.ZodNullable<z.ZodString>;
160
+ picture: z.ZodNullable<z.ZodString>;
161
+ email: z.ZodNullable<z.ZodString>;
162
+ steamId: z.ZodNullable<z.ZodString>;
163
+ telegramId: z.ZodNullable<z.ZodString>;
164
+ password: z.ZodNullable<z.ZodString>;
165
+ vkId: z.ZodNullable<z.ZodString>;
166
+ googleId: z.ZodNullable<z.ZodString>;
167
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
168
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
169
+ blockedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
170
+ ordersCount: z.ZodOptional<z.ZodNumber>;
171
+ ordersAmount: z.ZodOptional<z.ZodNumber>;
172
+ isConfirmEmail: z.ZodBoolean;
173
+ isOnline: z.ZodBoolean;
174
+ role: z.ZodEnum<["USER", "ADMIN", "NO_AUTH"]>;
175
+ status: z.ZodEnum<["ACTIVE", "BLOCKED"]>;
176
+ }, "strip", z.ZodTypeAny, {
177
+ email: string | null;
178
+ password: string | null;
179
+ status: "ACTIVE" | "BLOCKED";
180
+ id: number;
181
+ username: string | null;
182
+ telegramId: string | null;
183
+ picture: string | null;
184
+ steamId: string | null;
185
+ vkId: string | null;
186
+ googleId: string | null;
187
+ isConfirmEmail: boolean;
188
+ role: "USER" | "ADMIN" | "NO_AUTH";
189
+ isOnline: boolean;
190
+ createdAt?: Date | null | undefined;
191
+ updatedAt?: Date | null | undefined;
192
+ blockedAt?: Date | null | undefined;
193
+ ordersCount?: number | undefined;
194
+ ordersAmount?: number | undefined;
195
+ }, {
196
+ email: string | null;
197
+ password: string | null;
198
+ status: "ACTIVE" | "BLOCKED";
199
+ id: number;
200
+ username: string | null;
201
+ telegramId: string | null;
202
+ picture: string | null;
203
+ steamId: string | null;
204
+ vkId: string | null;
205
+ googleId: string | null;
206
+ isConfirmEmail: boolean;
207
+ role: "USER" | "ADMIN" | "NO_AUTH";
208
+ isOnline: boolean;
209
+ createdAt?: Date | null | undefined;
210
+ updatedAt?: Date | null | undefined;
211
+ blockedAt?: Date | null | undefined;
212
+ ordersCount?: number | undefined;
213
+ ordersAmount?: number | undefined;
214
+ }>;
215
+ };
216
+ list: {
217
+ method: "GET";
218
+ path: string;
219
+ request: z.ZodObject<{
220
+ take: z.ZodOptional<z.ZodNumber>;
221
+ skip: z.ZodOptional<z.ZodNumber>;
222
+ } & {
223
+ email: z.ZodOptional<z.ZodString>;
224
+ id: z.ZodOptional<z.ZodNumber>;
225
+ role: z.ZodOptional<z.ZodEnum<["USER", "ADMIN", "NO_AUTH"]>>;
226
+ } & {
227
+ sortBy: z.ZodDefault<z.ZodString>;
228
+ sortDir: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
229
+ }, "strip", z.ZodTypeAny, {
230
+ sortBy: string;
231
+ sortDir: "asc" | "desc";
232
+ email?: string | undefined;
233
+ id?: number | undefined;
234
+ take?: number | undefined;
235
+ skip?: number | undefined;
236
+ role?: "USER" | "ADMIN" | "NO_AUTH" | undefined;
237
+ }, {
238
+ email?: string | undefined;
239
+ id?: number | undefined;
240
+ take?: number | undefined;
241
+ skip?: number | undefined;
242
+ sortBy?: string | undefined;
243
+ sortDir?: "asc" | "desc" | undefined;
244
+ role?: "USER" | "ADMIN" | "NO_AUTH" | undefined;
245
+ }>;
246
+ response: z.ZodArray<z.ZodObject<{
247
+ id: z.ZodNumber;
248
+ username: z.ZodNullable<z.ZodString>;
249
+ picture: z.ZodNullable<z.ZodString>;
250
+ email: z.ZodNullable<z.ZodString>;
251
+ steamId: z.ZodNullable<z.ZodString>;
252
+ telegramId: z.ZodNullable<z.ZodString>;
253
+ password: z.ZodNullable<z.ZodString>;
254
+ vkId: z.ZodNullable<z.ZodString>;
255
+ googleId: z.ZodNullable<z.ZodString>;
256
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
257
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
258
+ blockedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
259
+ ordersCount: z.ZodOptional<z.ZodNumber>;
260
+ ordersAmount: z.ZodOptional<z.ZodNumber>;
261
+ isConfirmEmail: z.ZodBoolean;
262
+ isOnline: z.ZodBoolean;
263
+ role: z.ZodEnum<["USER", "ADMIN", "NO_AUTH"]>;
264
+ status: z.ZodEnum<["ACTIVE", "BLOCKED"]>;
265
+ }, "strip", z.ZodTypeAny, {
266
+ email: string | null;
267
+ password: string | null;
268
+ status: "ACTIVE" | "BLOCKED";
269
+ id: number;
270
+ username: string | null;
271
+ telegramId: string | null;
272
+ picture: string | null;
273
+ steamId: string | null;
274
+ vkId: string | null;
275
+ googleId: string | null;
276
+ isConfirmEmail: boolean;
277
+ role: "USER" | "ADMIN" | "NO_AUTH";
278
+ isOnline: boolean;
279
+ createdAt?: Date | null | undefined;
280
+ updatedAt?: Date | null | undefined;
281
+ blockedAt?: Date | null | undefined;
282
+ ordersCount?: number | undefined;
283
+ ordersAmount?: number | undefined;
284
+ }, {
285
+ email: string | null;
286
+ password: string | null;
287
+ status: "ACTIVE" | "BLOCKED";
288
+ id: number;
289
+ username: string | null;
290
+ telegramId: string | null;
291
+ picture: string | null;
292
+ steamId: string | null;
293
+ vkId: string | null;
294
+ googleId: string | null;
295
+ isConfirmEmail: boolean;
296
+ role: "USER" | "ADMIN" | "NO_AUTH";
297
+ isOnline: boolean;
298
+ createdAt?: Date | null | undefined;
299
+ updatedAt?: Date | null | undefined;
300
+ blockedAt?: Date | null | undefined;
301
+ ordersCount?: number | undefined;
302
+ ordersAmount?: number | undefined;
303
+ }>, "many">;
304
+ };
305
+ getById: {
306
+ method: "GET";
307
+ path: string;
308
+ request: z.ZodObject<{
309
+ id: z.ZodNumber;
310
+ }, "strip", z.ZodTypeAny, {
311
+ id: number;
312
+ }, {
313
+ id: number;
314
+ }>;
315
+ response: z.ZodObject<{
316
+ id: z.ZodNumber;
317
+ username: z.ZodNullable<z.ZodString>;
318
+ picture: z.ZodNullable<z.ZodString>;
319
+ email: z.ZodNullable<z.ZodString>;
320
+ steamId: z.ZodNullable<z.ZodString>;
321
+ telegramId: z.ZodNullable<z.ZodString>;
322
+ password: z.ZodNullable<z.ZodString>;
323
+ vkId: z.ZodNullable<z.ZodString>;
324
+ googleId: z.ZodNullable<z.ZodString>;
325
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
326
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
327
+ blockedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
328
+ ordersCount: z.ZodOptional<z.ZodNumber>;
329
+ ordersAmount: z.ZodOptional<z.ZodNumber>;
330
+ isConfirmEmail: z.ZodBoolean;
331
+ isOnline: z.ZodBoolean;
332
+ role: z.ZodEnum<["USER", "ADMIN", "NO_AUTH"]>;
333
+ status: z.ZodEnum<["ACTIVE", "BLOCKED"]>;
334
+ }, "strip", z.ZodTypeAny, {
335
+ email: string | null;
336
+ password: string | null;
337
+ status: "ACTIVE" | "BLOCKED";
338
+ id: number;
339
+ username: string | null;
340
+ telegramId: string | null;
341
+ picture: string | null;
342
+ steamId: string | null;
343
+ vkId: string | null;
344
+ googleId: string | null;
345
+ isConfirmEmail: boolean;
346
+ role: "USER" | "ADMIN" | "NO_AUTH";
347
+ isOnline: boolean;
348
+ createdAt?: Date | null | undefined;
349
+ updatedAt?: Date | null | undefined;
350
+ blockedAt?: Date | null | undefined;
351
+ ordersCount?: number | undefined;
352
+ ordersAmount?: number | undefined;
353
+ }, {
354
+ email: string | null;
355
+ password: string | null;
356
+ status: "ACTIVE" | "BLOCKED";
357
+ id: number;
358
+ username: string | null;
359
+ telegramId: string | null;
360
+ picture: string | null;
361
+ steamId: string | null;
362
+ vkId: string | null;
363
+ googleId: string | null;
364
+ isConfirmEmail: boolean;
365
+ role: "USER" | "ADMIN" | "NO_AUTH";
366
+ isOnline: boolean;
367
+ createdAt?: Date | null | undefined;
368
+ updatedAt?: Date | null | undefined;
369
+ blockedAt?: Date | null | undefined;
370
+ ordersCount?: number | undefined;
371
+ ordersAmount?: number | undefined;
372
+ }>;
373
+ };
374
+ update: {
375
+ method: "PATCH";
376
+ path: string;
377
+ request: z.ZodObject<{
378
+ id: z.ZodNumber;
379
+ body: z.ZodObject<{
380
+ username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
381
+ picture: z.ZodOptional<z.ZodNullable<z.ZodString>>;
382
+ email: z.ZodOptional<z.ZodString>;
383
+ password: z.ZodOptional<z.ZodNullable<z.ZodString>>;
384
+ provider: z.ZodOptional<z.ZodEnum<["GOOGLE", "STEAM"]>>;
385
+ steamId: z.ZodOptional<z.ZodString>;
386
+ telegramId: z.ZodOptional<z.ZodString>;
387
+ vkId: z.ZodOptional<z.ZodString>;
388
+ googleId: z.ZodOptional<z.ZodString>;
389
+ isConfirmEmail: z.ZodOptional<z.ZodBoolean>;
390
+ role: z.ZodOptional<z.ZodEnum<["USER", "ADMIN", "NO_AUTH"]>>;
391
+ status: z.ZodOptional<z.ZodEnum<["ACTIVE", "BLOCKED"]>>;
392
+ }, "strip", z.ZodTypeAny, {
393
+ email?: string | undefined;
394
+ password?: string | null | undefined;
395
+ status?: "ACTIVE" | "BLOCKED" | undefined;
396
+ username?: string | null | undefined;
397
+ telegramId?: string | undefined;
398
+ picture?: string | null | undefined;
399
+ steamId?: string | undefined;
400
+ vkId?: string | undefined;
401
+ googleId?: string | undefined;
402
+ isConfirmEmail?: boolean | undefined;
403
+ role?: "USER" | "ADMIN" | "NO_AUTH" | undefined;
404
+ provider?: "GOOGLE" | "STEAM" | undefined;
405
+ }, {
406
+ email?: string | undefined;
407
+ password?: string | null | undefined;
408
+ status?: "ACTIVE" | "BLOCKED" | undefined;
409
+ username?: string | null | undefined;
410
+ telegramId?: string | undefined;
411
+ picture?: string | null | undefined;
412
+ steamId?: string | undefined;
413
+ vkId?: string | undefined;
414
+ googleId?: string | undefined;
415
+ isConfirmEmail?: boolean | undefined;
416
+ role?: "USER" | "ADMIN" | "NO_AUTH" | undefined;
417
+ provider?: "GOOGLE" | "STEAM" | undefined;
418
+ }>;
419
+ }, "strip", z.ZodTypeAny, {
420
+ id: number;
421
+ body: {
422
+ email?: string | undefined;
423
+ password?: string | null | undefined;
424
+ status?: "ACTIVE" | "BLOCKED" | undefined;
425
+ username?: string | null | undefined;
426
+ telegramId?: string | undefined;
427
+ picture?: string | null | undefined;
428
+ steamId?: string | undefined;
429
+ vkId?: string | undefined;
430
+ googleId?: string | undefined;
431
+ isConfirmEmail?: boolean | undefined;
432
+ role?: "USER" | "ADMIN" | "NO_AUTH" | undefined;
433
+ provider?: "GOOGLE" | "STEAM" | undefined;
434
+ };
435
+ }, {
436
+ id: number;
437
+ body: {
438
+ email?: string | undefined;
439
+ password?: string | null | undefined;
440
+ status?: "ACTIVE" | "BLOCKED" | undefined;
441
+ username?: string | null | undefined;
442
+ telegramId?: string | undefined;
443
+ picture?: string | null | undefined;
444
+ steamId?: string | undefined;
445
+ vkId?: string | undefined;
446
+ googleId?: string | undefined;
447
+ isConfirmEmail?: boolean | undefined;
448
+ role?: "USER" | "ADMIN" | "NO_AUTH" | undefined;
449
+ provider?: "GOOGLE" | "STEAM" | undefined;
450
+ };
451
+ }>;
452
+ response: z.ZodObject<{
453
+ id: z.ZodNumber;
454
+ username: z.ZodNullable<z.ZodString>;
455
+ picture: z.ZodNullable<z.ZodString>;
456
+ email: z.ZodNullable<z.ZodString>;
457
+ steamId: z.ZodNullable<z.ZodString>;
458
+ telegramId: z.ZodNullable<z.ZodString>;
459
+ password: z.ZodNullable<z.ZodString>;
460
+ vkId: z.ZodNullable<z.ZodString>;
461
+ googleId: z.ZodNullable<z.ZodString>;
462
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
463
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
464
+ blockedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
465
+ ordersCount: z.ZodOptional<z.ZodNumber>;
466
+ ordersAmount: z.ZodOptional<z.ZodNumber>;
467
+ isConfirmEmail: z.ZodBoolean;
468
+ isOnline: z.ZodBoolean;
469
+ role: z.ZodEnum<["USER", "ADMIN", "NO_AUTH"]>;
470
+ status: z.ZodEnum<["ACTIVE", "BLOCKED"]>;
471
+ }, "strip", z.ZodTypeAny, {
472
+ email: string | null;
473
+ password: string | null;
474
+ status: "ACTIVE" | "BLOCKED";
475
+ id: number;
476
+ username: string | null;
477
+ telegramId: string | null;
478
+ picture: string | null;
479
+ steamId: string | null;
480
+ vkId: string | null;
481
+ googleId: string | null;
482
+ isConfirmEmail: boolean;
483
+ role: "USER" | "ADMIN" | "NO_AUTH";
484
+ isOnline: boolean;
485
+ createdAt?: Date | null | undefined;
486
+ updatedAt?: Date | null | undefined;
487
+ blockedAt?: Date | null | undefined;
488
+ ordersCount?: number | undefined;
489
+ ordersAmount?: number | undefined;
490
+ }, {
491
+ email: string | null;
492
+ password: string | null;
493
+ status: "ACTIVE" | "BLOCKED";
494
+ id: number;
495
+ username: string | null;
496
+ telegramId: string | null;
497
+ picture: string | null;
498
+ steamId: string | null;
499
+ vkId: string | null;
500
+ googleId: string | null;
501
+ isConfirmEmail: boolean;
502
+ role: "USER" | "ADMIN" | "NO_AUTH";
503
+ isOnline: boolean;
504
+ createdAt?: Date | null | undefined;
505
+ updatedAt?: Date | null | undefined;
506
+ blockedAt?: Date | null | undefined;
507
+ ordersCount?: number | undefined;
508
+ ordersAmount?: number | undefined;
509
+ }>;
510
+ };
511
+ };
512
+ readonly orders: {
513
+ create: {
514
+ method: "POST";
515
+ path: string;
516
+ request: z.ZodObject<{
517
+ email: z.ZodString;
518
+ paymentMethodId: z.ZodNumber;
519
+ items: z.ZodArray<z.ZodObject<{
520
+ variantId: z.ZodNumber;
521
+ quantity: z.ZodDefault<z.ZodNumber>;
522
+ gameUsername: z.ZodOptional<z.ZodString>;
523
+ gameUsernameType: z.ZodOptional<z.ZodString>;
524
+ }, "strip", z.ZodTypeAny, {
525
+ variantId: number;
526
+ quantity: number;
527
+ gameUsername?: string | undefined;
528
+ gameUsernameType?: string | undefined;
529
+ }, {
530
+ variantId: number;
531
+ quantity?: number | undefined;
532
+ gameUsername?: string | undefined;
533
+ gameUsernameType?: string | undefined;
534
+ }>, "many">;
535
+ promocodeId: z.ZodOptional<z.ZodNumber>;
536
+ userId: z.ZodOptional<z.ZodNumber>;
537
+ telegramId: z.ZodOptional<z.ZodString>;
538
+ utmSource: z.ZodOptional<z.ZodString>;
539
+ telegramUsername: z.ZodOptional<z.ZodString>;
540
+ designType: z.ZodOptional<z.ZodString>;
541
+ type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["MAIN", "WEBAPP"]>>>;
542
+ }, "strip", z.ZodTypeAny, {
543
+ email: string;
544
+ type: "MAIN" | "WEBAPP";
545
+ paymentMethodId: number;
546
+ items: {
547
+ variantId: number;
548
+ quantity: number;
549
+ gameUsername?: string | undefined;
550
+ gameUsernameType?: string | undefined;
551
+ }[];
552
+ promocodeId?: number | undefined;
553
+ userId?: number | undefined;
554
+ telegramId?: string | undefined;
555
+ utmSource?: string | undefined;
556
+ telegramUsername?: string | undefined;
557
+ designType?: string | undefined;
558
+ }, {
559
+ email: string;
560
+ paymentMethodId: number;
561
+ items: {
562
+ variantId: number;
563
+ quantity?: number | undefined;
564
+ gameUsername?: string | undefined;
565
+ gameUsernameType?: string | undefined;
566
+ }[];
567
+ type?: "MAIN" | "WEBAPP" | undefined;
568
+ promocodeId?: number | undefined;
569
+ userId?: number | undefined;
570
+ telegramId?: string | undefined;
571
+ utmSource?: string | undefined;
572
+ telegramUsername?: string | undefined;
573
+ designType?: string | undefined;
574
+ }>;
575
+ response: z.ZodObject<{
576
+ redirectUrl: z.ZodString;
577
+ }, "strip", z.ZodTypeAny, {
578
+ redirectUrl: string;
579
+ }, {
580
+ redirectUrl: string;
581
+ }>;
582
+ };
583
+ list: {
584
+ method: "GET";
585
+ path: string;
586
+ request: z.ZodObject<{
587
+ take: z.ZodOptional<z.ZodNumber>;
588
+ skip: z.ZodOptional<z.ZodNumber>;
589
+ } & {
590
+ email: z.ZodOptional<z.ZodString>;
591
+ status: z.ZodOptional<z.ZodEnum<["PENDING", "AWAITING_PAYMENT", "PAID", "PROCESSING", "SUCCESS", "FAILED", "REFUNDED", "CANCELLED"]>>;
592
+ } & {
593
+ sortBy: z.ZodDefault<z.ZodEnum<["createdAt", "updatedAt", "total", "subtotal"]>>;
594
+ sortDir: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
595
+ } & {
596
+ period: z.ZodOptional<z.ZodEnum<["day", "week", "month", "year", "custom"]>>;
597
+ start: z.ZodOptional<z.ZodString>;
598
+ end: z.ZodOptional<z.ZodString>;
599
+ }, "strip", z.ZodTypeAny, {
600
+ sortBy: "subtotal" | "total" | "createdAt" | "updatedAt";
601
+ sortDir: "asc" | "desc";
602
+ email?: string | undefined;
603
+ status?: "PENDING" | "AWAITING_PAYMENT" | "PAID" | "PROCESSING" | "SUCCESS" | "FAILED" | "REFUNDED" | "CANCELLED" | undefined;
604
+ take?: number | undefined;
605
+ skip?: number | undefined;
606
+ period?: "day" | "week" | "month" | "year" | "custom" | undefined;
607
+ start?: string | undefined;
608
+ end?: string | undefined;
609
+ }, {
610
+ email?: string | undefined;
611
+ status?: "PENDING" | "AWAITING_PAYMENT" | "PAID" | "PROCESSING" | "SUCCESS" | "FAILED" | "REFUNDED" | "CANCELLED" | undefined;
612
+ take?: number | undefined;
613
+ skip?: number | undefined;
614
+ period?: "day" | "week" | "month" | "year" | "custom" | undefined;
615
+ start?: string | undefined;
616
+ end?: string | undefined;
617
+ sortBy?: "subtotal" | "total" | "createdAt" | "updatedAt" | undefined;
618
+ sortDir?: "asc" | "desc" | undefined;
619
+ }>;
620
+ response: z.ZodArray<z.ZodObject<{
621
+ id: z.ZodNumber;
622
+ userId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
623
+ promocodeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
624
+ paymentMethodId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
625
+ email: z.ZodString;
626
+ status: z.ZodEnum<["PENDING", "AWAITING_PAYMENT", "PAID", "PROCESSING", "SUCCESS", "FAILED", "REFUNDED", "CANCELLED"]>;
627
+ type: z.ZodEnum<["MAIN", "WEBAPP"]>;
628
+ subtotal: z.ZodString;
629
+ discount: z.ZodString;
630
+ commission: z.ZodString;
631
+ serviceCommission: z.ZodString;
632
+ total: z.ZodString;
633
+ ipAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
634
+ utmSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
635
+ telegramUsername: z.ZodOptional<z.ZodNullable<z.ZodString>>;
636
+ designType: z.ZodNullable<z.ZodString>;
637
+ paymentMethodName: z.ZodNullable<z.ZodString>;
638
+ promocodeValue: z.ZodNullable<z.ZodString>;
639
+ promocodeDiscount: z.ZodNullable<z.ZodString>;
640
+ serviceCommissionPercent: z.ZodOptional<z.ZodNumber>;
641
+ acquiringCommissionPercent: z.ZodOptional<z.ZodNumber>;
642
+ items: z.ZodOptional<z.ZodArray<z.ZodObject<{
643
+ id: z.ZodNumber;
644
+ productId: z.ZodNumber;
645
+ variantId: z.ZodNumber;
646
+ quantity: z.ZodNumber;
647
+ price: z.ZodString;
648
+ gameUsername: z.ZodNullable<z.ZodString>;
649
+ gameUsernameType: z.ZodNullable<z.ZodString>;
650
+ deliveredKey: z.ZodNullable<z.ZodString>;
651
+ deliveredAt: z.ZodNullable<z.ZodDate>;
652
+ status: z.ZodEnum<["PENDING", "PROCESSING", "DELIVERED", "FAILED", "REFUNDED"]>;
653
+ productTitle: z.ZodOptional<z.ZodString>;
654
+ variantName: z.ZodOptional<z.ZodString>;
655
+ }, "strip", z.ZodTypeAny, {
656
+ status: "PENDING" | "PROCESSING" | "FAILED" | "REFUNDED" | "DELIVERED";
657
+ id: number;
658
+ variantId: number;
659
+ quantity: number;
660
+ gameUsername: string | null;
661
+ gameUsernameType: string | null;
662
+ productId: number;
663
+ price: string;
664
+ deliveredKey: string | null;
665
+ deliveredAt: Date | null;
666
+ productTitle?: string | undefined;
667
+ variantName?: string | undefined;
668
+ }, {
669
+ status: "PENDING" | "PROCESSING" | "FAILED" | "REFUNDED" | "DELIVERED";
670
+ id: number;
671
+ variantId: number;
672
+ quantity: number;
673
+ gameUsername: string | null;
674
+ gameUsernameType: string | null;
675
+ productId: number;
676
+ price: string;
677
+ deliveredKey: string | null;
678
+ deliveredAt: Date | null;
679
+ productTitle?: string | undefined;
680
+ variantName?: string | undefined;
681
+ }>, "many">>;
682
+ createdAt: z.ZodDefault<z.ZodDate>;
683
+ updatedAt: z.ZodDefault<z.ZodDate>;
684
+ }, "strip", z.ZodTypeAny, {
685
+ email: string;
686
+ type: "MAIN" | "WEBAPP";
687
+ status: "PENDING" | "AWAITING_PAYMENT" | "PAID" | "PROCESSING" | "SUCCESS" | "FAILED" | "REFUNDED" | "CANCELLED";
688
+ id: number;
689
+ designType: string | null;
690
+ subtotal: string;
691
+ discount: string;
692
+ commission: string;
693
+ serviceCommission: string;
694
+ total: string;
695
+ paymentMethodName: string | null;
696
+ promocodeValue: string | null;
697
+ promocodeDiscount: string | null;
698
+ createdAt: Date;
699
+ updatedAt: Date;
700
+ paymentMethodId?: number | null | undefined;
701
+ items?: {
702
+ status: "PENDING" | "PROCESSING" | "FAILED" | "REFUNDED" | "DELIVERED";
703
+ id: number;
704
+ variantId: number;
705
+ quantity: number;
706
+ gameUsername: string | null;
707
+ gameUsernameType: string | null;
708
+ productId: number;
709
+ price: string;
710
+ deliveredKey: string | null;
711
+ deliveredAt: Date | null;
712
+ productTitle?: string | undefined;
713
+ variantName?: string | undefined;
714
+ }[] | undefined;
715
+ promocodeId?: number | null | undefined;
716
+ userId?: number | null | undefined;
717
+ utmSource?: string | null | undefined;
718
+ telegramUsername?: string | null | undefined;
719
+ ipAddress?: string | null | undefined;
720
+ serviceCommissionPercent?: number | undefined;
721
+ acquiringCommissionPercent?: number | undefined;
722
+ }, {
723
+ email: string;
724
+ type: "MAIN" | "WEBAPP";
725
+ status: "PENDING" | "AWAITING_PAYMENT" | "PAID" | "PROCESSING" | "SUCCESS" | "FAILED" | "REFUNDED" | "CANCELLED";
726
+ id: number;
727
+ designType: string | null;
728
+ subtotal: string;
729
+ discount: string;
730
+ commission: string;
731
+ serviceCommission: string;
732
+ total: string;
733
+ paymentMethodName: string | null;
734
+ promocodeValue: string | null;
735
+ promocodeDiscount: string | null;
736
+ paymentMethodId?: number | null | undefined;
737
+ items?: {
738
+ status: "PENDING" | "PROCESSING" | "FAILED" | "REFUNDED" | "DELIVERED";
739
+ id: number;
740
+ variantId: number;
741
+ quantity: number;
742
+ gameUsername: string | null;
743
+ gameUsernameType: string | null;
744
+ productId: number;
745
+ price: string;
746
+ deliveredKey: string | null;
747
+ deliveredAt: Date | null;
748
+ productTitle?: string | undefined;
749
+ variantName?: string | undefined;
750
+ }[] | undefined;
751
+ promocodeId?: number | null | undefined;
752
+ userId?: number | null | undefined;
753
+ utmSource?: string | null | undefined;
754
+ telegramUsername?: string | null | undefined;
755
+ ipAddress?: string | null | undefined;
756
+ serviceCommissionPercent?: number | undefined;
757
+ acquiringCommissionPercent?: number | undefined;
758
+ createdAt?: Date | undefined;
759
+ updatedAt?: Date | undefined;
760
+ }>, "many">;
761
+ };
762
+ getById: {
763
+ method: "GET";
764
+ path: string;
765
+ request: z.ZodObject<{
766
+ id: z.ZodNumber;
767
+ }, "strip", z.ZodTypeAny, {
768
+ id: number;
769
+ }, {
770
+ id: number;
771
+ }>;
772
+ response: z.ZodObject<{
773
+ id: z.ZodNumber;
774
+ userId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
775
+ promocodeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
776
+ paymentMethodId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
777
+ email: z.ZodString;
778
+ status: z.ZodEnum<["PENDING", "AWAITING_PAYMENT", "PAID", "PROCESSING", "SUCCESS", "FAILED", "REFUNDED", "CANCELLED"]>;
779
+ type: z.ZodEnum<["MAIN", "WEBAPP"]>;
780
+ subtotal: z.ZodString;
781
+ discount: z.ZodString;
782
+ commission: z.ZodString;
783
+ serviceCommission: z.ZodString;
784
+ total: z.ZodString;
785
+ ipAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
786
+ utmSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
787
+ telegramUsername: z.ZodOptional<z.ZodNullable<z.ZodString>>;
788
+ designType: z.ZodNullable<z.ZodString>;
789
+ paymentMethodName: z.ZodNullable<z.ZodString>;
790
+ promocodeValue: z.ZodNullable<z.ZodString>;
791
+ promocodeDiscount: z.ZodNullable<z.ZodString>;
792
+ serviceCommissionPercent: z.ZodOptional<z.ZodNumber>;
793
+ acquiringCommissionPercent: z.ZodOptional<z.ZodNumber>;
794
+ items: z.ZodOptional<z.ZodArray<z.ZodObject<{
795
+ id: z.ZodNumber;
796
+ productId: z.ZodNumber;
797
+ variantId: z.ZodNumber;
798
+ quantity: z.ZodNumber;
799
+ price: z.ZodString;
800
+ gameUsername: z.ZodNullable<z.ZodString>;
801
+ gameUsernameType: z.ZodNullable<z.ZodString>;
802
+ deliveredKey: z.ZodNullable<z.ZodString>;
803
+ deliveredAt: z.ZodNullable<z.ZodDate>;
804
+ status: z.ZodEnum<["PENDING", "PROCESSING", "DELIVERED", "FAILED", "REFUNDED"]>;
805
+ productTitle: z.ZodOptional<z.ZodString>;
806
+ variantName: z.ZodOptional<z.ZodString>;
807
+ }, "strip", z.ZodTypeAny, {
808
+ status: "PENDING" | "PROCESSING" | "FAILED" | "REFUNDED" | "DELIVERED";
809
+ id: number;
810
+ variantId: number;
811
+ quantity: number;
812
+ gameUsername: string | null;
813
+ gameUsernameType: string | null;
814
+ productId: number;
815
+ price: string;
816
+ deliveredKey: string | null;
817
+ deliveredAt: Date | null;
818
+ productTitle?: string | undefined;
819
+ variantName?: string | undefined;
820
+ }, {
821
+ status: "PENDING" | "PROCESSING" | "FAILED" | "REFUNDED" | "DELIVERED";
822
+ id: number;
823
+ variantId: number;
824
+ quantity: number;
825
+ gameUsername: string | null;
826
+ gameUsernameType: string | null;
827
+ productId: number;
828
+ price: string;
829
+ deliveredKey: string | null;
830
+ deliveredAt: Date | null;
831
+ productTitle?: string | undefined;
832
+ variantName?: string | undefined;
833
+ }>, "many">>;
834
+ createdAt: z.ZodDefault<z.ZodDate>;
835
+ updatedAt: z.ZodDefault<z.ZodDate>;
836
+ }, "strip", z.ZodTypeAny, {
837
+ email: string;
838
+ type: "MAIN" | "WEBAPP";
839
+ status: "PENDING" | "AWAITING_PAYMENT" | "PAID" | "PROCESSING" | "SUCCESS" | "FAILED" | "REFUNDED" | "CANCELLED";
840
+ id: number;
841
+ designType: string | null;
842
+ subtotal: string;
843
+ discount: string;
844
+ commission: string;
845
+ serviceCommission: string;
846
+ total: string;
847
+ paymentMethodName: string | null;
848
+ promocodeValue: string | null;
849
+ promocodeDiscount: string | null;
850
+ createdAt: Date;
851
+ updatedAt: Date;
852
+ paymentMethodId?: number | null | undefined;
853
+ items?: {
854
+ status: "PENDING" | "PROCESSING" | "FAILED" | "REFUNDED" | "DELIVERED";
855
+ id: number;
856
+ variantId: number;
857
+ quantity: number;
858
+ gameUsername: string | null;
859
+ gameUsernameType: string | null;
860
+ productId: number;
861
+ price: string;
862
+ deliveredKey: string | null;
863
+ deliveredAt: Date | null;
864
+ productTitle?: string | undefined;
865
+ variantName?: string | undefined;
866
+ }[] | undefined;
867
+ promocodeId?: number | null | undefined;
868
+ userId?: number | null | undefined;
869
+ utmSource?: string | null | undefined;
870
+ telegramUsername?: string | null | undefined;
871
+ ipAddress?: string | null | undefined;
872
+ serviceCommissionPercent?: number | undefined;
873
+ acquiringCommissionPercent?: number | undefined;
874
+ }, {
875
+ email: string;
876
+ type: "MAIN" | "WEBAPP";
877
+ status: "PENDING" | "AWAITING_PAYMENT" | "PAID" | "PROCESSING" | "SUCCESS" | "FAILED" | "REFUNDED" | "CANCELLED";
878
+ id: number;
879
+ designType: string | null;
880
+ subtotal: string;
881
+ discount: string;
882
+ commission: string;
883
+ serviceCommission: string;
884
+ total: string;
885
+ paymentMethodName: string | null;
886
+ promocodeValue: string | null;
887
+ promocodeDiscount: string | null;
888
+ paymentMethodId?: number | null | undefined;
889
+ items?: {
890
+ status: "PENDING" | "PROCESSING" | "FAILED" | "REFUNDED" | "DELIVERED";
891
+ id: number;
892
+ variantId: number;
893
+ quantity: number;
894
+ gameUsername: string | null;
895
+ gameUsernameType: string | null;
896
+ productId: number;
897
+ price: string;
898
+ deliveredKey: string | null;
899
+ deliveredAt: Date | null;
900
+ productTitle?: string | undefined;
901
+ variantName?: string | undefined;
902
+ }[] | undefined;
903
+ promocodeId?: number | null | undefined;
904
+ userId?: number | null | undefined;
905
+ utmSource?: string | null | undefined;
906
+ telegramUsername?: string | null | undefined;
907
+ ipAddress?: string | null | undefined;
908
+ serviceCommissionPercent?: number | undefined;
909
+ acquiringCommissionPercent?: number | undefined;
910
+ createdAt?: Date | undefined;
911
+ updatedAt?: Date | undefined;
912
+ }>;
913
+ };
914
+ getUserOrders: {
915
+ method: "GET";
916
+ path: string;
917
+ request: z.ZodObject<{
918
+ take: z.ZodOptional<z.ZodNumber>;
919
+ skip: z.ZodOptional<z.ZodNumber>;
920
+ } & {
921
+ email: z.ZodOptional<z.ZodString>;
922
+ status: z.ZodOptional<z.ZodEnum<["PENDING", "AWAITING_PAYMENT", "PAID", "PROCESSING", "SUCCESS", "FAILED", "REFUNDED", "CANCELLED"]>>;
923
+ } & {
924
+ sortBy: z.ZodDefault<z.ZodEnum<["createdAt", "updatedAt", "total", "subtotal"]>>;
925
+ sortDir: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
926
+ } & {
927
+ period: z.ZodOptional<z.ZodEnum<["day", "week", "month", "year", "custom"]>>;
928
+ start: z.ZodOptional<z.ZodString>;
929
+ end: z.ZodOptional<z.ZodString>;
930
+ }, "strip", z.ZodTypeAny, {
931
+ sortBy: "subtotal" | "total" | "createdAt" | "updatedAt";
932
+ sortDir: "asc" | "desc";
933
+ email?: string | undefined;
934
+ status?: "PENDING" | "AWAITING_PAYMENT" | "PAID" | "PROCESSING" | "SUCCESS" | "FAILED" | "REFUNDED" | "CANCELLED" | undefined;
935
+ take?: number | undefined;
936
+ skip?: number | undefined;
937
+ period?: "day" | "week" | "month" | "year" | "custom" | undefined;
938
+ start?: string | undefined;
939
+ end?: string | undefined;
940
+ }, {
941
+ email?: string | undefined;
942
+ status?: "PENDING" | "AWAITING_PAYMENT" | "PAID" | "PROCESSING" | "SUCCESS" | "FAILED" | "REFUNDED" | "CANCELLED" | undefined;
943
+ take?: number | undefined;
944
+ skip?: number | undefined;
945
+ period?: "day" | "week" | "month" | "year" | "custom" | undefined;
946
+ start?: string | undefined;
947
+ end?: string | undefined;
948
+ sortBy?: "subtotal" | "total" | "createdAt" | "updatedAt" | undefined;
949
+ sortDir?: "asc" | "desc" | undefined;
950
+ }>;
951
+ response: z.ZodArray<z.ZodObject<{
952
+ id: z.ZodNumber;
953
+ userId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
954
+ promocodeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
955
+ paymentMethodId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
956
+ email: z.ZodString;
957
+ status: z.ZodEnum<["PENDING", "AWAITING_PAYMENT", "PAID", "PROCESSING", "SUCCESS", "FAILED", "REFUNDED", "CANCELLED"]>;
958
+ type: z.ZodEnum<["MAIN", "WEBAPP"]>;
959
+ subtotal: z.ZodString;
960
+ discount: z.ZodString;
961
+ commission: z.ZodString;
962
+ serviceCommission: z.ZodString;
963
+ total: z.ZodString;
964
+ ipAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
965
+ utmSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
966
+ telegramUsername: z.ZodOptional<z.ZodNullable<z.ZodString>>;
967
+ designType: z.ZodNullable<z.ZodString>;
968
+ paymentMethodName: z.ZodNullable<z.ZodString>;
969
+ promocodeValue: z.ZodNullable<z.ZodString>;
970
+ promocodeDiscount: z.ZodNullable<z.ZodString>;
971
+ serviceCommissionPercent: z.ZodOptional<z.ZodNumber>;
972
+ acquiringCommissionPercent: z.ZodOptional<z.ZodNumber>;
973
+ items: z.ZodOptional<z.ZodArray<z.ZodObject<{
974
+ id: z.ZodNumber;
975
+ productId: z.ZodNumber;
976
+ variantId: z.ZodNumber;
977
+ quantity: z.ZodNumber;
978
+ price: z.ZodString;
979
+ gameUsername: z.ZodNullable<z.ZodString>;
980
+ gameUsernameType: z.ZodNullable<z.ZodString>;
981
+ deliveredKey: z.ZodNullable<z.ZodString>;
982
+ deliveredAt: z.ZodNullable<z.ZodDate>;
983
+ status: z.ZodEnum<["PENDING", "PROCESSING", "DELIVERED", "FAILED", "REFUNDED"]>;
984
+ productTitle: z.ZodOptional<z.ZodString>;
985
+ variantName: z.ZodOptional<z.ZodString>;
986
+ }, "strip", z.ZodTypeAny, {
987
+ status: "PENDING" | "PROCESSING" | "FAILED" | "REFUNDED" | "DELIVERED";
988
+ id: number;
989
+ variantId: number;
990
+ quantity: number;
991
+ gameUsername: string | null;
992
+ gameUsernameType: string | null;
993
+ productId: number;
994
+ price: string;
995
+ deliveredKey: string | null;
996
+ deliveredAt: Date | null;
997
+ productTitle?: string | undefined;
998
+ variantName?: string | undefined;
999
+ }, {
1000
+ status: "PENDING" | "PROCESSING" | "FAILED" | "REFUNDED" | "DELIVERED";
1001
+ id: number;
1002
+ variantId: number;
1003
+ quantity: number;
1004
+ gameUsername: string | null;
1005
+ gameUsernameType: string | null;
1006
+ productId: number;
1007
+ price: string;
1008
+ deliveredKey: string | null;
1009
+ deliveredAt: Date | null;
1010
+ productTitle?: string | undefined;
1011
+ variantName?: string | undefined;
1012
+ }>, "many">>;
1013
+ createdAt: z.ZodDefault<z.ZodDate>;
1014
+ updatedAt: z.ZodDefault<z.ZodDate>;
1015
+ }, "strip", z.ZodTypeAny, {
1016
+ email: string;
1017
+ type: "MAIN" | "WEBAPP";
1018
+ status: "PENDING" | "AWAITING_PAYMENT" | "PAID" | "PROCESSING" | "SUCCESS" | "FAILED" | "REFUNDED" | "CANCELLED";
1019
+ id: number;
1020
+ designType: string | null;
1021
+ subtotal: string;
1022
+ discount: string;
1023
+ commission: string;
1024
+ serviceCommission: string;
1025
+ total: string;
1026
+ paymentMethodName: string | null;
1027
+ promocodeValue: string | null;
1028
+ promocodeDiscount: string | null;
1029
+ createdAt: Date;
1030
+ updatedAt: Date;
1031
+ paymentMethodId?: number | null | undefined;
1032
+ items?: {
1033
+ status: "PENDING" | "PROCESSING" | "FAILED" | "REFUNDED" | "DELIVERED";
1034
+ id: number;
1035
+ variantId: number;
1036
+ quantity: number;
1037
+ gameUsername: string | null;
1038
+ gameUsernameType: string | null;
1039
+ productId: number;
1040
+ price: string;
1041
+ deliveredKey: string | null;
1042
+ deliveredAt: Date | null;
1043
+ productTitle?: string | undefined;
1044
+ variantName?: string | undefined;
1045
+ }[] | undefined;
1046
+ promocodeId?: number | null | undefined;
1047
+ userId?: number | null | undefined;
1048
+ utmSource?: string | null | undefined;
1049
+ telegramUsername?: string | null | undefined;
1050
+ ipAddress?: string | null | undefined;
1051
+ serviceCommissionPercent?: number | undefined;
1052
+ acquiringCommissionPercent?: number | undefined;
1053
+ }, {
1054
+ email: string;
1055
+ type: "MAIN" | "WEBAPP";
1056
+ status: "PENDING" | "AWAITING_PAYMENT" | "PAID" | "PROCESSING" | "SUCCESS" | "FAILED" | "REFUNDED" | "CANCELLED";
1057
+ id: number;
1058
+ designType: string | null;
1059
+ subtotal: string;
1060
+ discount: string;
1061
+ commission: string;
1062
+ serviceCommission: string;
1063
+ total: string;
1064
+ paymentMethodName: string | null;
1065
+ promocodeValue: string | null;
1066
+ promocodeDiscount: string | null;
1067
+ paymentMethodId?: number | null | undefined;
1068
+ items?: {
1069
+ status: "PENDING" | "PROCESSING" | "FAILED" | "REFUNDED" | "DELIVERED";
1070
+ id: number;
1071
+ variantId: number;
1072
+ quantity: number;
1073
+ gameUsername: string | null;
1074
+ gameUsernameType: string | null;
1075
+ productId: number;
1076
+ price: string;
1077
+ deliveredKey: string | null;
1078
+ deliveredAt: Date | null;
1079
+ productTitle?: string | undefined;
1080
+ variantName?: string | undefined;
1081
+ }[] | undefined;
1082
+ promocodeId?: number | null | undefined;
1083
+ userId?: number | null | undefined;
1084
+ utmSource?: string | null | undefined;
1085
+ telegramUsername?: string | null | undefined;
1086
+ ipAddress?: string | null | undefined;
1087
+ serviceCommissionPercent?: number | undefined;
1088
+ acquiringCommissionPercent?: number | undefined;
1089
+ createdAt?: Date | undefined;
1090
+ updatedAt?: Date | undefined;
1091
+ }>, "many">;
1092
+ };
1093
+ getUserOrderById: {
1094
+ method: "GET";
1095
+ path: string;
1096
+ request: z.ZodObject<{
1097
+ userId: z.ZodNumber;
1098
+ orderId: z.ZodNumber;
1099
+ }, "strip", z.ZodTypeAny, {
1100
+ userId: number;
1101
+ orderId: number;
1102
+ }, {
1103
+ userId: number;
1104
+ orderId: number;
1105
+ }>;
1106
+ response: z.ZodObject<{
1107
+ id: z.ZodNumber;
1108
+ userId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1109
+ promocodeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1110
+ paymentMethodId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1111
+ email: z.ZodString;
1112
+ status: z.ZodEnum<["PENDING", "AWAITING_PAYMENT", "PAID", "PROCESSING", "SUCCESS", "FAILED", "REFUNDED", "CANCELLED"]>;
1113
+ type: z.ZodEnum<["MAIN", "WEBAPP"]>;
1114
+ subtotal: z.ZodString;
1115
+ discount: z.ZodString;
1116
+ commission: z.ZodString;
1117
+ serviceCommission: z.ZodString;
1118
+ total: z.ZodString;
1119
+ ipAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1120
+ utmSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1121
+ telegramUsername: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1122
+ designType: z.ZodNullable<z.ZodString>;
1123
+ paymentMethodName: z.ZodNullable<z.ZodString>;
1124
+ promocodeValue: z.ZodNullable<z.ZodString>;
1125
+ promocodeDiscount: z.ZodNullable<z.ZodString>;
1126
+ serviceCommissionPercent: z.ZodOptional<z.ZodNumber>;
1127
+ acquiringCommissionPercent: z.ZodOptional<z.ZodNumber>;
1128
+ items: z.ZodOptional<z.ZodArray<z.ZodObject<{
1129
+ id: z.ZodNumber;
1130
+ productId: z.ZodNumber;
1131
+ variantId: z.ZodNumber;
1132
+ quantity: z.ZodNumber;
1133
+ price: z.ZodString;
1134
+ gameUsername: z.ZodNullable<z.ZodString>;
1135
+ gameUsernameType: z.ZodNullable<z.ZodString>;
1136
+ deliveredKey: z.ZodNullable<z.ZodString>;
1137
+ deliveredAt: z.ZodNullable<z.ZodDate>;
1138
+ status: z.ZodEnum<["PENDING", "PROCESSING", "DELIVERED", "FAILED", "REFUNDED"]>;
1139
+ productTitle: z.ZodOptional<z.ZodString>;
1140
+ variantName: z.ZodOptional<z.ZodString>;
1141
+ }, "strip", z.ZodTypeAny, {
1142
+ status: "PENDING" | "PROCESSING" | "FAILED" | "REFUNDED" | "DELIVERED";
1143
+ id: number;
1144
+ variantId: number;
1145
+ quantity: number;
1146
+ gameUsername: string | null;
1147
+ gameUsernameType: string | null;
1148
+ productId: number;
1149
+ price: string;
1150
+ deliveredKey: string | null;
1151
+ deliveredAt: Date | null;
1152
+ productTitle?: string | undefined;
1153
+ variantName?: string | undefined;
1154
+ }, {
1155
+ status: "PENDING" | "PROCESSING" | "FAILED" | "REFUNDED" | "DELIVERED";
1156
+ id: number;
1157
+ variantId: number;
1158
+ quantity: number;
1159
+ gameUsername: string | null;
1160
+ gameUsernameType: string | null;
1161
+ productId: number;
1162
+ price: string;
1163
+ deliveredKey: string | null;
1164
+ deliveredAt: Date | null;
1165
+ productTitle?: string | undefined;
1166
+ variantName?: string | undefined;
1167
+ }>, "many">>;
1168
+ createdAt: z.ZodDefault<z.ZodDate>;
1169
+ updatedAt: z.ZodDefault<z.ZodDate>;
1170
+ }, "strip", z.ZodTypeAny, {
1171
+ email: string;
1172
+ type: "MAIN" | "WEBAPP";
1173
+ status: "PENDING" | "AWAITING_PAYMENT" | "PAID" | "PROCESSING" | "SUCCESS" | "FAILED" | "REFUNDED" | "CANCELLED";
1174
+ id: number;
1175
+ designType: string | null;
1176
+ subtotal: string;
1177
+ discount: string;
1178
+ commission: string;
1179
+ serviceCommission: string;
1180
+ total: string;
1181
+ paymentMethodName: string | null;
1182
+ promocodeValue: string | null;
1183
+ promocodeDiscount: string | null;
1184
+ createdAt: Date;
1185
+ updatedAt: Date;
1186
+ paymentMethodId?: number | null | undefined;
1187
+ items?: {
1188
+ status: "PENDING" | "PROCESSING" | "FAILED" | "REFUNDED" | "DELIVERED";
1189
+ id: number;
1190
+ variantId: number;
1191
+ quantity: number;
1192
+ gameUsername: string | null;
1193
+ gameUsernameType: string | null;
1194
+ productId: number;
1195
+ price: string;
1196
+ deliveredKey: string | null;
1197
+ deliveredAt: Date | null;
1198
+ productTitle?: string | undefined;
1199
+ variantName?: string | undefined;
1200
+ }[] | undefined;
1201
+ promocodeId?: number | null | undefined;
1202
+ userId?: number | null | undefined;
1203
+ utmSource?: string | null | undefined;
1204
+ telegramUsername?: string | null | undefined;
1205
+ ipAddress?: string | null | undefined;
1206
+ serviceCommissionPercent?: number | undefined;
1207
+ acquiringCommissionPercent?: number | undefined;
1208
+ }, {
1209
+ email: string;
1210
+ type: "MAIN" | "WEBAPP";
1211
+ status: "PENDING" | "AWAITING_PAYMENT" | "PAID" | "PROCESSING" | "SUCCESS" | "FAILED" | "REFUNDED" | "CANCELLED";
1212
+ id: number;
1213
+ designType: string | null;
1214
+ subtotal: string;
1215
+ discount: string;
1216
+ commission: string;
1217
+ serviceCommission: string;
1218
+ total: string;
1219
+ paymentMethodName: string | null;
1220
+ promocodeValue: string | null;
1221
+ promocodeDiscount: string | null;
1222
+ paymentMethodId?: number | null | undefined;
1223
+ items?: {
1224
+ status: "PENDING" | "PROCESSING" | "FAILED" | "REFUNDED" | "DELIVERED";
1225
+ id: number;
1226
+ variantId: number;
1227
+ quantity: number;
1228
+ gameUsername: string | null;
1229
+ gameUsernameType: string | null;
1230
+ productId: number;
1231
+ price: string;
1232
+ deliveredKey: string | null;
1233
+ deliveredAt: Date | null;
1234
+ productTitle?: string | undefined;
1235
+ variantName?: string | undefined;
1236
+ }[] | undefined;
1237
+ promocodeId?: number | null | undefined;
1238
+ userId?: number | null | undefined;
1239
+ utmSource?: string | null | undefined;
1240
+ telegramUsername?: string | null | undefined;
1241
+ ipAddress?: string | null | undefined;
1242
+ serviceCommissionPercent?: number | undefined;
1243
+ acquiringCommissionPercent?: number | undefined;
1244
+ createdAt?: Date | undefined;
1245
+ updatedAt?: Date | undefined;
1246
+ }>;
1247
+ };
1248
+ };
1249
+ readonly products: {
1250
+ catalog: {
1251
+ method: "GET";
1252
+ path: string;
1253
+ request: z.ZodObject<{
1254
+ category: z.ZodOptional<z.ZodString>;
1255
+ type: z.ZodOptional<z.ZodString>;
1256
+ genre: z.ZodOptional<z.ZodString>;
1257
+ tag: z.ZodOptional<z.ZodString>;
1258
+ region: z.ZodOptional<z.ZodString>;
1259
+ platform: z.ZodOptional<z.ZodString>;
1260
+ minPrice: z.ZodOptional<z.ZodNumber>;
1261
+ maxPrice: z.ZodOptional<z.ZodNumber>;
1262
+ hasMultiplayer: z.ZodOptional<z.ZodEffects<z.ZodEnum<["true", "false"]>, boolean, "true" | "false">>;
1263
+ hasCoop: z.ZodOptional<z.ZodEffects<z.ZodEnum<["true", "false"]>, boolean, "true" | "false">>;
1264
+ publisher: z.ZodOptional<z.ZodString>;
1265
+ minRating: z.ZodOptional<z.ZodNumber>;
1266
+ hasDiscount: z.ZodOptional<z.ZodEffects<z.ZodEnum<["true", "false"]>, boolean, "true" | "false">>;
1267
+ search: z.ZodOptional<z.ZodString>;
1268
+ sortBy: z.ZodDefault<z.ZodEnum<["price", "popularity", "rating", "releaseDate", "title"]>>;
1269
+ sortDir: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
1270
+ skip: z.ZodDefault<z.ZodNumber>;
1271
+ take: z.ZodDefault<z.ZodNumber>;
1272
+ }, "strip", z.ZodTypeAny, {
1273
+ take: number;
1274
+ skip: number;
1275
+ sortBy: "price" | "title" | "releaseDate" | "popularity" | "rating";
1276
+ sortDir: "asc" | "desc";
1277
+ type?: string | undefined;
1278
+ publisher?: string | undefined;
1279
+ hasMultiplayer?: boolean | undefined;
1280
+ hasCoop?: boolean | undefined;
1281
+ platform?: string | undefined;
1282
+ category?: string | undefined;
1283
+ minPrice?: number | undefined;
1284
+ hasDiscount?: boolean | undefined;
1285
+ region?: string | undefined;
1286
+ genre?: string | undefined;
1287
+ tag?: string | undefined;
1288
+ maxPrice?: number | undefined;
1289
+ minRating?: number | undefined;
1290
+ search?: string | undefined;
1291
+ }, {
1292
+ type?: string | undefined;
1293
+ take?: number | undefined;
1294
+ skip?: number | undefined;
1295
+ sortBy?: "price" | "title" | "releaseDate" | "popularity" | "rating" | undefined;
1296
+ sortDir?: "asc" | "desc" | undefined;
1297
+ publisher?: string | undefined;
1298
+ hasMultiplayer?: "true" | "false" | undefined;
1299
+ hasCoop?: "true" | "false" | undefined;
1300
+ platform?: string | undefined;
1301
+ category?: string | undefined;
1302
+ minPrice?: number | undefined;
1303
+ hasDiscount?: "true" | "false" | undefined;
1304
+ region?: string | undefined;
1305
+ genre?: string | undefined;
1306
+ tag?: string | undefined;
1307
+ maxPrice?: number | undefined;
1308
+ minRating?: number | undefined;
1309
+ search?: string | undefined;
1310
+ }>;
1311
+ response: z.ZodObject<{
1312
+ items: z.ZodArray<z.ZodObject<{
1313
+ id: z.ZodNumber;
1314
+ slug: z.ZodString;
1315
+ title: z.ZodString;
1316
+ type: z.ZodString;
1317
+ shortDescription: z.ZodNullable<z.ZodString>;
1318
+ coverImageUrl: z.ZodNullable<z.ZodString>;
1319
+ catalogImageUrl: z.ZodNullable<z.ZodString>;
1320
+ cardImageUrl: z.ZodNullable<z.ZodString>;
1321
+ steamRating: z.ZodNullable<z.ZodNumber>;
1322
+ hasMultiplayer: z.ZodBoolean;
1323
+ hasCoop: z.ZodBoolean;
1324
+ salesCount: z.ZodNumber;
1325
+ publisher: z.ZodNullable<z.ZodString>;
1326
+ releaseDate: z.ZodNullable<z.ZodDate>;
1327
+ category: z.ZodObject<{
1328
+ slug: z.ZodString;
1329
+ name: z.ZodString;
1330
+ }, "strip", z.ZodTypeAny, {
1331
+ name: string;
1332
+ slug: string;
1333
+ }, {
1334
+ name: string;
1335
+ slug: string;
1336
+ }>;
1337
+ genres: z.ZodArray<z.ZodObject<{
1338
+ slug: z.ZodString;
1339
+ name: z.ZodString;
1340
+ }, "strip", z.ZodTypeAny, {
1341
+ name: string;
1342
+ slug: string;
1343
+ }, {
1344
+ name: string;
1345
+ slug: string;
1346
+ }>, "many">;
1347
+ regions: z.ZodArray<z.ZodObject<{
1348
+ code: z.ZodString;
1349
+ name: z.ZodString;
1350
+ }, "strip", z.ZodTypeAny, {
1351
+ code: string;
1352
+ name: string;
1353
+ }, {
1354
+ code: string;
1355
+ name: string;
1356
+ }>, "many">;
1357
+ variants: z.ZodArray<z.ZodObject<{
1358
+ id: z.ZodNumber;
1359
+ name: z.ZodString;
1360
+ imageUrl: z.ZodNullable<z.ZodString>;
1361
+ price: z.ZodString;
1362
+ originalPrice: z.ZodNullable<z.ZodString>;
1363
+ platform: z.ZodNullable<z.ZodString>;
1364
+ regionCode: z.ZodNullable<z.ZodString>;
1365
+ }, "strip", z.ZodTypeAny, {
1366
+ id: number;
1367
+ price: string;
1368
+ name: string;
1369
+ imageUrl: string | null;
1370
+ originalPrice: string | null;
1371
+ platform: string | null;
1372
+ regionCode: string | null;
1373
+ }, {
1374
+ id: number;
1375
+ price: string;
1376
+ name: string;
1377
+ imageUrl: string | null;
1378
+ originalPrice: string | null;
1379
+ platform: string | null;
1380
+ regionCode: string | null;
1381
+ }>, "many">;
1382
+ minPrice: z.ZodNullable<z.ZodString>;
1383
+ hasDiscount: z.ZodBoolean;
1384
+ }, "strip", z.ZodTypeAny, {
1385
+ type: string;
1386
+ id: number;
1387
+ slug: string;
1388
+ title: string;
1389
+ shortDescription: string | null;
1390
+ coverImageUrl: string | null;
1391
+ catalogImageUrl: string | null;
1392
+ cardImageUrl: string | null;
1393
+ publisher: string | null;
1394
+ releaseDate: Date | null;
1395
+ hasMultiplayer: boolean;
1396
+ hasCoop: boolean;
1397
+ variants: {
1398
+ id: number;
1399
+ price: string;
1400
+ name: string;
1401
+ imageUrl: string | null;
1402
+ originalPrice: string | null;
1403
+ platform: string | null;
1404
+ regionCode: string | null;
1405
+ }[];
1406
+ steamRating: number | null;
1407
+ salesCount: number;
1408
+ category: {
1409
+ name: string;
1410
+ slug: string;
1411
+ };
1412
+ genres: {
1413
+ name: string;
1414
+ slug: string;
1415
+ }[];
1416
+ regions: {
1417
+ code: string;
1418
+ name: string;
1419
+ }[];
1420
+ minPrice: string | null;
1421
+ hasDiscount: boolean;
1422
+ }, {
1423
+ type: string;
1424
+ id: number;
1425
+ slug: string;
1426
+ title: string;
1427
+ shortDescription: string | null;
1428
+ coverImageUrl: string | null;
1429
+ catalogImageUrl: string | null;
1430
+ cardImageUrl: string | null;
1431
+ publisher: string | null;
1432
+ releaseDate: Date | null;
1433
+ hasMultiplayer: boolean;
1434
+ hasCoop: boolean;
1435
+ variants: {
1436
+ id: number;
1437
+ price: string;
1438
+ name: string;
1439
+ imageUrl: string | null;
1440
+ originalPrice: string | null;
1441
+ platform: string | null;
1442
+ regionCode: string | null;
1443
+ }[];
1444
+ steamRating: number | null;
1445
+ salesCount: number;
1446
+ category: {
1447
+ name: string;
1448
+ slug: string;
1449
+ };
1450
+ genres: {
1451
+ name: string;
1452
+ slug: string;
1453
+ }[];
1454
+ regions: {
1455
+ code: string;
1456
+ name: string;
1457
+ }[];
1458
+ minPrice: string | null;
1459
+ hasDiscount: boolean;
1460
+ }>, "many">;
1461
+ total: z.ZodNumber;
1462
+ skip: z.ZodNumber;
1463
+ take: z.ZodNumber;
1464
+ }, "strip", z.ZodTypeAny, {
1465
+ items: {
1466
+ type: string;
1467
+ id: number;
1468
+ slug: string;
1469
+ title: string;
1470
+ shortDescription: string | null;
1471
+ coverImageUrl: string | null;
1472
+ catalogImageUrl: string | null;
1473
+ cardImageUrl: string | null;
1474
+ publisher: string | null;
1475
+ releaseDate: Date | null;
1476
+ hasMultiplayer: boolean;
1477
+ hasCoop: boolean;
1478
+ variants: {
1479
+ id: number;
1480
+ price: string;
1481
+ name: string;
1482
+ imageUrl: string | null;
1483
+ originalPrice: string | null;
1484
+ platform: string | null;
1485
+ regionCode: string | null;
1486
+ }[];
1487
+ steamRating: number | null;
1488
+ salesCount: number;
1489
+ category: {
1490
+ name: string;
1491
+ slug: string;
1492
+ };
1493
+ genres: {
1494
+ name: string;
1495
+ slug: string;
1496
+ }[];
1497
+ regions: {
1498
+ code: string;
1499
+ name: string;
1500
+ }[];
1501
+ minPrice: string | null;
1502
+ hasDiscount: boolean;
1503
+ }[];
1504
+ total: number;
1505
+ take: number;
1506
+ skip: number;
1507
+ }, {
1508
+ items: {
1509
+ type: string;
1510
+ id: number;
1511
+ slug: string;
1512
+ title: string;
1513
+ shortDescription: string | null;
1514
+ coverImageUrl: string | null;
1515
+ catalogImageUrl: string | null;
1516
+ cardImageUrl: string | null;
1517
+ publisher: string | null;
1518
+ releaseDate: Date | null;
1519
+ hasMultiplayer: boolean;
1520
+ hasCoop: boolean;
1521
+ variants: {
1522
+ id: number;
1523
+ price: string;
1524
+ name: string;
1525
+ imageUrl: string | null;
1526
+ originalPrice: string | null;
1527
+ platform: string | null;
1528
+ regionCode: string | null;
1529
+ }[];
1530
+ steamRating: number | null;
1531
+ salesCount: number;
1532
+ category: {
1533
+ name: string;
1534
+ slug: string;
1535
+ };
1536
+ genres: {
1537
+ name: string;
1538
+ slug: string;
1539
+ }[];
1540
+ regions: {
1541
+ code: string;
1542
+ name: string;
1543
+ }[];
1544
+ minPrice: string | null;
1545
+ hasDiscount: boolean;
1546
+ }[];
1547
+ total: number;
1548
+ take: number;
1549
+ skip: number;
1550
+ }>;
1551
+ };
1552
+ categories: {
1553
+ method: "GET";
1554
+ path: string;
1555
+ response: z.ZodArray<z.ZodObject<{
1556
+ id: z.ZodNumber;
1557
+ slug: z.ZodString;
1558
+ name: z.ZodString;
1559
+ description: z.ZodNullable<z.ZodString>;
1560
+ iconUrl: z.ZodNullable<z.ZodString>;
1561
+ _count: z.ZodObject<{
1562
+ products: z.ZodNumber;
1563
+ }, "strip", z.ZodTypeAny, {
1564
+ products: number;
1565
+ }, {
1566
+ products: number;
1567
+ }>;
1568
+ }, "strip", z.ZodTypeAny, {
1569
+ id: number;
1570
+ name: string;
1571
+ slug: string;
1572
+ description: string | null;
1573
+ iconUrl: string | null;
1574
+ _count: {
1575
+ products: number;
1576
+ };
1577
+ }, {
1578
+ id: number;
1579
+ name: string;
1580
+ slug: string;
1581
+ description: string | null;
1582
+ iconUrl: string | null;
1583
+ _count: {
1584
+ products: number;
1585
+ };
1586
+ }>, "many">;
1587
+ };
1588
+ genres: {
1589
+ method: "GET";
1590
+ path: string;
1591
+ response: z.ZodArray<z.ZodObject<{
1592
+ id: z.ZodNumber;
1593
+ slug: z.ZodString;
1594
+ name: z.ZodString;
1595
+ _count: z.ZodObject<{
1596
+ products: z.ZodNumber;
1597
+ }, "strip", z.ZodTypeAny, {
1598
+ products: number;
1599
+ }, {
1600
+ products: number;
1601
+ }>;
1602
+ }, "strip", z.ZodTypeAny, {
1603
+ id: number;
1604
+ name: string;
1605
+ slug: string;
1606
+ _count: {
1607
+ products: number;
1608
+ };
1609
+ }, {
1610
+ id: number;
1611
+ name: string;
1612
+ slug: string;
1613
+ _count: {
1614
+ products: number;
1615
+ };
1616
+ }>, "many">;
1617
+ };
1618
+ regions: {
1619
+ method: "GET";
1620
+ path: string;
1621
+ response: z.ZodArray<z.ZodObject<{
1622
+ id: z.ZodNumber;
1623
+ code: z.ZodString;
1624
+ name: z.ZodString;
1625
+ _count: z.ZodObject<{
1626
+ products: z.ZodNumber;
1627
+ }, "strip", z.ZodTypeAny, {
1628
+ products: number;
1629
+ }, {
1630
+ products: number;
1631
+ }>;
1632
+ }, "strip", z.ZodTypeAny, {
1633
+ code: string;
1634
+ id: number;
1635
+ name: string;
1636
+ _count: {
1637
+ products: number;
1638
+ };
1639
+ }, {
1640
+ code: string;
1641
+ id: number;
1642
+ name: string;
1643
+ _count: {
1644
+ products: number;
1645
+ };
1646
+ }>, "many">;
1647
+ };
1648
+ getBySlug: {
1649
+ method: "GET";
1650
+ path: string;
1651
+ request: z.ZodObject<{
1652
+ slug: z.ZodString;
1653
+ }, "strip", z.ZodTypeAny, {
1654
+ slug: string;
1655
+ }, {
1656
+ slug: string;
1657
+ }>;
1658
+ response: z.ZodObject<{
1659
+ id: z.ZodNumber;
1660
+ slug: z.ZodString;
1661
+ title: z.ZodString;
1662
+ originalTitle: z.ZodNullable<z.ZodString>;
1663
+ type: z.ZodString;
1664
+ status: z.ZodString;
1665
+ description: z.ZodNullable<z.ZodString>;
1666
+ customDescription: z.ZodNullable<z.ZodString>;
1667
+ shortDescription: z.ZodNullable<z.ZodString>;
1668
+ coverImageUrl: z.ZodNullable<z.ZodString>;
1669
+ catalogImageUrl: z.ZodNullable<z.ZodString>;
1670
+ cardImageUrl: z.ZodNullable<z.ZodString>;
1671
+ developer: z.ZodNullable<z.ZodString>;
1672
+ publisher: z.ZodNullable<z.ZodString>;
1673
+ releaseDate: z.ZodNullable<z.ZodDate>;
1674
+ steamAppId: z.ZodNullable<z.ZodNumber>;
1675
+ steamRating: z.ZodNullable<z.ZodNumber>;
1676
+ hasMultiplayer: z.ZodBoolean;
1677
+ hasCoop: z.ZodBoolean;
1678
+ hasSinglePlayer: z.ZodBoolean;
1679
+ metaTitle: z.ZodNullable<z.ZodString>;
1680
+ metaDescription: z.ZodNullable<z.ZodString>;
1681
+ salesCount: z.ZodNumber;
1682
+ viewsCount: z.ZodNumber;
1683
+ category: z.ZodObject<{
1684
+ slug: z.ZodString;
1685
+ name: z.ZodString;
1686
+ } & {
1687
+ id: z.ZodNumber;
1688
+ }, "strip", z.ZodTypeAny, {
1689
+ id: number;
1690
+ name: string;
1691
+ slug: string;
1692
+ }, {
1693
+ id: number;
1694
+ name: string;
1695
+ slug: string;
1696
+ }>;
1697
+ variants: z.ZodArray<z.ZodObject<{
1698
+ id: z.ZodNumber;
1699
+ name: z.ZodString;
1700
+ sku: z.ZodString;
1701
+ imageUrl: z.ZodNullable<z.ZodString>;
1702
+ price: z.ZodString;
1703
+ originalPrice: z.ZodNullable<z.ZodString>;
1704
+ topupAmount: z.ZodNullable<z.ZodString>;
1705
+ currency: z.ZodNullable<z.ZodString>;
1706
+ durationDays: z.ZodNullable<z.ZodNumber>;
1707
+ platform: z.ZodNullable<z.ZodString>;
1708
+ regionCode: z.ZodNullable<z.ZodString>;
1709
+ deliveryType: z.ZodString;
1710
+ inStock: z.ZodBoolean;
1711
+ }, "strip", z.ZodTypeAny, {
1712
+ id: number;
1713
+ price: string;
1714
+ name: string;
1715
+ sku: string;
1716
+ imageUrl: string | null;
1717
+ originalPrice: string | null;
1718
+ topupAmount: string | null;
1719
+ currency: string | null;
1720
+ durationDays: number | null;
1721
+ platform: string | null;
1722
+ regionCode: string | null;
1723
+ deliveryType: string;
1724
+ inStock: boolean;
1725
+ }, {
1726
+ id: number;
1727
+ price: string;
1728
+ name: string;
1729
+ sku: string;
1730
+ imageUrl: string | null;
1731
+ originalPrice: string | null;
1732
+ topupAmount: string | null;
1733
+ currency: string | null;
1734
+ durationDays: number | null;
1735
+ platform: string | null;
1736
+ regionCode: string | null;
1737
+ deliveryType: string;
1738
+ inStock: boolean;
1739
+ }>, "many">;
1740
+ media: z.ZodArray<z.ZodObject<{
1741
+ id: z.ZodNumber;
1742
+ type: z.ZodString;
1743
+ url: z.ZodString;
1744
+ alt: z.ZodNullable<z.ZodString>;
1745
+ }, "strip", z.ZodTypeAny, {
1746
+ type: string;
1747
+ id: number;
1748
+ url: string;
1749
+ alt: string | null;
1750
+ }, {
1751
+ type: string;
1752
+ id: number;
1753
+ url: string;
1754
+ alt: string | null;
1755
+ }>, "many">;
1756
+ genres: z.ZodArray<z.ZodObject<{
1757
+ id: z.ZodNumber;
1758
+ slug: z.ZodString;
1759
+ name: z.ZodString;
1760
+ }, "strip", z.ZodTypeAny, {
1761
+ id: number;
1762
+ name: string;
1763
+ slug: string;
1764
+ }, {
1765
+ id: number;
1766
+ name: string;
1767
+ slug: string;
1768
+ }>, "many">;
1769
+ tags: z.ZodArray<z.ZodObject<{
1770
+ id: z.ZodNumber;
1771
+ slug: z.ZodString;
1772
+ name: z.ZodString;
1773
+ }, "strip", z.ZodTypeAny, {
1774
+ id: number;
1775
+ name: string;
1776
+ slug: string;
1777
+ }, {
1778
+ id: number;
1779
+ name: string;
1780
+ slug: string;
1781
+ }>, "many">;
1782
+ regions: z.ZodArray<z.ZodObject<Omit<{
1783
+ id: z.ZodNumber;
1784
+ code: z.ZodString;
1785
+ name: z.ZodString;
1786
+ _count: z.ZodObject<{
1787
+ products: z.ZodNumber;
1788
+ }, "strip", z.ZodTypeAny, {
1789
+ products: number;
1790
+ }, {
1791
+ products: number;
1792
+ }>;
1793
+ }, "_count">, "strip", z.ZodTypeAny, {
1794
+ code: string;
1795
+ id: number;
1796
+ name: string;
1797
+ }, {
1798
+ code: string;
1799
+ id: number;
1800
+ name: string;
1801
+ }>, "many">;
1802
+ systemRequirements: z.ZodArray<z.ZodObject<{
1803
+ type: z.ZodString;
1804
+ os: z.ZodNullable<z.ZodString>;
1805
+ processor: z.ZodNullable<z.ZodString>;
1806
+ memory: z.ZodNullable<z.ZodString>;
1807
+ graphics: z.ZodNullable<z.ZodString>;
1808
+ storage: z.ZodNullable<z.ZodString>;
1809
+ directx: z.ZodNullable<z.ZodString>;
1810
+ network: z.ZodNullable<z.ZodString>;
1811
+ additional: z.ZodNullable<z.ZodString>;
1812
+ }, "strip", z.ZodTypeAny, {
1813
+ type: string;
1814
+ os: string | null;
1815
+ processor: string | null;
1816
+ memory: string | null;
1817
+ graphics: string | null;
1818
+ storage: string | null;
1819
+ directx: string | null;
1820
+ network: string | null;
1821
+ additional: string | null;
1822
+ }, {
1823
+ type: string;
1824
+ os: string | null;
1825
+ processor: string | null;
1826
+ memory: string | null;
1827
+ graphics: string | null;
1828
+ storage: string | null;
1829
+ directx: string | null;
1830
+ network: string | null;
1831
+ additional: string | null;
1832
+ }>, "many">;
1833
+ dlcs: z.ZodArray<z.ZodObject<{
1834
+ id: z.ZodNumber;
1835
+ slug: z.ZodString;
1836
+ title: z.ZodString;
1837
+ coverImageUrl: z.ZodNullable<z.ZodString>;
1838
+ catalogImageUrl: z.ZodNullable<z.ZodString>;
1839
+ cardImageUrl: z.ZodNullable<z.ZodString>;
1840
+ variants: z.ZodArray<z.ZodObject<{
1841
+ price: z.ZodAny;
1842
+ originalPrice: z.ZodAny;
1843
+ }, "strip", z.ZodTypeAny, {
1844
+ price?: any;
1845
+ originalPrice?: any;
1846
+ }, {
1847
+ price?: any;
1848
+ originalPrice?: any;
1849
+ }>, "many">;
1850
+ }, "strip", z.ZodTypeAny, {
1851
+ id: number;
1852
+ slug: string;
1853
+ title: string;
1854
+ coverImageUrl: string | null;
1855
+ catalogImageUrl: string | null;
1856
+ cardImageUrl: string | null;
1857
+ variants: {
1858
+ price?: any;
1859
+ originalPrice?: any;
1860
+ }[];
1861
+ }, {
1862
+ id: number;
1863
+ slug: string;
1864
+ title: string;
1865
+ coverImageUrl: string | null;
1866
+ catalogImageUrl: string | null;
1867
+ cardImageUrl: string | null;
1868
+ variants: {
1869
+ price?: any;
1870
+ originalPrice?: any;
1871
+ }[];
1872
+ }>, "many">;
1873
+ createdAt: z.ZodDate;
1874
+ updatedAt: z.ZodDate;
1875
+ }, "strip", z.ZodTypeAny, {
1876
+ type: string;
1877
+ status: string;
1878
+ id: number;
1879
+ createdAt: Date;
1880
+ updatedAt: Date;
1881
+ slug: string;
1882
+ title: string;
1883
+ originalTitle: string | null;
1884
+ description: string | null;
1885
+ customDescription: string | null;
1886
+ shortDescription: string | null;
1887
+ coverImageUrl: string | null;
1888
+ catalogImageUrl: string | null;
1889
+ cardImageUrl: string | null;
1890
+ developer: string | null;
1891
+ publisher: string | null;
1892
+ releaseDate: Date | null;
1893
+ steamAppId: number | null;
1894
+ hasMultiplayer: boolean;
1895
+ hasCoop: boolean;
1896
+ hasSinglePlayer: boolean;
1897
+ metaTitle: string | null;
1898
+ metaDescription: string | null;
1899
+ variants: {
1900
+ id: number;
1901
+ price: string;
1902
+ name: string;
1903
+ sku: string;
1904
+ imageUrl: string | null;
1905
+ originalPrice: string | null;
1906
+ topupAmount: string | null;
1907
+ currency: string | null;
1908
+ durationDays: number | null;
1909
+ platform: string | null;
1910
+ regionCode: string | null;
1911
+ deliveryType: string;
1912
+ inStock: boolean;
1913
+ }[];
1914
+ steamRating: number | null;
1915
+ salesCount: number;
1916
+ category: {
1917
+ id: number;
1918
+ name: string;
1919
+ slug: string;
1920
+ };
1921
+ genres: {
1922
+ id: number;
1923
+ name: string;
1924
+ slug: string;
1925
+ }[];
1926
+ regions: {
1927
+ code: string;
1928
+ id: number;
1929
+ name: string;
1930
+ }[];
1931
+ viewsCount: number;
1932
+ media: {
1933
+ type: string;
1934
+ id: number;
1935
+ url: string;
1936
+ alt: string | null;
1937
+ }[];
1938
+ tags: {
1939
+ id: number;
1940
+ name: string;
1941
+ slug: string;
1942
+ }[];
1943
+ systemRequirements: {
1944
+ type: string;
1945
+ os: string | null;
1946
+ processor: string | null;
1947
+ memory: string | null;
1948
+ graphics: string | null;
1949
+ storage: string | null;
1950
+ directx: string | null;
1951
+ network: string | null;
1952
+ additional: string | null;
1953
+ }[];
1954
+ dlcs: {
1955
+ id: number;
1956
+ slug: string;
1957
+ title: string;
1958
+ coverImageUrl: string | null;
1959
+ catalogImageUrl: string | null;
1960
+ cardImageUrl: string | null;
1961
+ variants: {
1962
+ price?: any;
1963
+ originalPrice?: any;
1964
+ }[];
1965
+ }[];
1966
+ }, {
1967
+ type: string;
1968
+ status: string;
1969
+ id: number;
1970
+ createdAt: Date;
1971
+ updatedAt: Date;
1972
+ slug: string;
1973
+ title: string;
1974
+ originalTitle: string | null;
1975
+ description: string | null;
1976
+ customDescription: string | null;
1977
+ shortDescription: string | null;
1978
+ coverImageUrl: string | null;
1979
+ catalogImageUrl: string | null;
1980
+ cardImageUrl: string | null;
1981
+ developer: string | null;
1982
+ publisher: string | null;
1983
+ releaseDate: Date | null;
1984
+ steamAppId: number | null;
1985
+ hasMultiplayer: boolean;
1986
+ hasCoop: boolean;
1987
+ hasSinglePlayer: boolean;
1988
+ metaTitle: string | null;
1989
+ metaDescription: string | null;
1990
+ variants: {
1991
+ id: number;
1992
+ price: string;
1993
+ name: string;
1994
+ sku: string;
1995
+ imageUrl: string | null;
1996
+ originalPrice: string | null;
1997
+ topupAmount: string | null;
1998
+ currency: string | null;
1999
+ durationDays: number | null;
2000
+ platform: string | null;
2001
+ regionCode: string | null;
2002
+ deliveryType: string;
2003
+ inStock: boolean;
2004
+ }[];
2005
+ steamRating: number | null;
2006
+ salesCount: number;
2007
+ category: {
2008
+ id: number;
2009
+ name: string;
2010
+ slug: string;
2011
+ };
2012
+ genres: {
2013
+ id: number;
2014
+ name: string;
2015
+ slug: string;
2016
+ }[];
2017
+ regions: {
2018
+ code: string;
2019
+ id: number;
2020
+ name: string;
2021
+ }[];
2022
+ viewsCount: number;
2023
+ media: {
2024
+ type: string;
2025
+ id: number;
2026
+ url: string;
2027
+ alt: string | null;
2028
+ }[];
2029
+ tags: {
2030
+ id: number;
2031
+ name: string;
2032
+ slug: string;
2033
+ }[];
2034
+ systemRequirements: {
2035
+ type: string;
2036
+ os: string | null;
2037
+ processor: string | null;
2038
+ memory: string | null;
2039
+ graphics: string | null;
2040
+ storage: string | null;
2041
+ directx: string | null;
2042
+ network: string | null;
2043
+ additional: string | null;
2044
+ }[];
2045
+ dlcs: {
2046
+ id: number;
2047
+ slug: string;
2048
+ title: string;
2049
+ coverImageUrl: string | null;
2050
+ catalogImageUrl: string | null;
2051
+ cardImageUrl: string | null;
2052
+ variants: {
2053
+ price?: any;
2054
+ originalPrice?: any;
2055
+ }[];
2056
+ }[];
2057
+ }>;
2058
+ };
2059
+ create: {
2060
+ method: "POST";
2061
+ path: string;
2062
+ request: z.ZodObject<{
2063
+ slug: z.ZodString;
2064
+ title: z.ZodString;
2065
+ originalTitle: z.ZodOptional<z.ZodString>;
2066
+ type: z.ZodEnum<["GAME_KEY", "GAME_GIFT", "TOPUP", "SUBSCRIPTION", "IN_GAME_ITEM", "DLC", "CURRENCY"]>;
2067
+ categoryId: z.ZodNumber;
2068
+ parentProductId: z.ZodOptional<z.ZodNumber>;
2069
+ description: z.ZodOptional<z.ZodString>;
2070
+ customDescription: z.ZodOptional<z.ZodString>;
2071
+ shortDescription: z.ZodOptional<z.ZodString>;
2072
+ coverImageUrl: z.ZodOptional<z.ZodString>;
2073
+ catalogImageUrl: z.ZodOptional<z.ZodString>;
2074
+ cardImageUrl: z.ZodOptional<z.ZodString>;
2075
+ developer: z.ZodOptional<z.ZodString>;
2076
+ publisher: z.ZodOptional<z.ZodString>;
2077
+ releaseDate: z.ZodOptional<z.ZodString>;
2078
+ steamAppId: z.ZodOptional<z.ZodNumber>;
2079
+ hasMultiplayer: z.ZodDefault<z.ZodBoolean>;
2080
+ hasCoop: z.ZodDefault<z.ZodBoolean>;
2081
+ hasSinglePlayer: z.ZodDefault<z.ZodBoolean>;
2082
+ metaTitle: z.ZodOptional<z.ZodString>;
2083
+ metaDescription: z.ZodOptional<z.ZodString>;
2084
+ genreIds: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
2085
+ tagIds: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
2086
+ regionIds: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
2087
+ }, "strip", z.ZodTypeAny, {
2088
+ type: "GAME_KEY" | "GAME_GIFT" | "TOPUP" | "SUBSCRIPTION" | "IN_GAME_ITEM" | "DLC" | "CURRENCY";
2089
+ slug: string;
2090
+ title: string;
2091
+ categoryId: number;
2092
+ hasMultiplayer: boolean;
2093
+ hasCoop: boolean;
2094
+ hasSinglePlayer: boolean;
2095
+ originalTitle?: string | undefined;
2096
+ parentProductId?: number | undefined;
2097
+ description?: string | undefined;
2098
+ customDescription?: string | undefined;
2099
+ shortDescription?: string | undefined;
2100
+ coverImageUrl?: string | undefined;
2101
+ catalogImageUrl?: string | undefined;
2102
+ cardImageUrl?: string | undefined;
2103
+ developer?: string | undefined;
2104
+ publisher?: string | undefined;
2105
+ releaseDate?: string | undefined;
2106
+ steamAppId?: number | undefined;
2107
+ metaTitle?: string | undefined;
2108
+ metaDescription?: string | undefined;
2109
+ genreIds?: number[] | undefined;
2110
+ tagIds?: number[] | undefined;
2111
+ regionIds?: number[] | undefined;
2112
+ }, {
2113
+ type: "GAME_KEY" | "GAME_GIFT" | "TOPUP" | "SUBSCRIPTION" | "IN_GAME_ITEM" | "DLC" | "CURRENCY";
2114
+ slug: string;
2115
+ title: string;
2116
+ categoryId: number;
2117
+ originalTitle?: string | undefined;
2118
+ parentProductId?: number | undefined;
2119
+ description?: string | undefined;
2120
+ customDescription?: string | undefined;
2121
+ shortDescription?: string | undefined;
2122
+ coverImageUrl?: string | undefined;
2123
+ catalogImageUrl?: string | undefined;
2124
+ cardImageUrl?: string | undefined;
2125
+ developer?: string | undefined;
2126
+ publisher?: string | undefined;
2127
+ releaseDate?: string | undefined;
2128
+ steamAppId?: number | undefined;
2129
+ hasMultiplayer?: boolean | undefined;
2130
+ hasCoop?: boolean | undefined;
2131
+ hasSinglePlayer?: boolean | undefined;
2132
+ metaTitle?: string | undefined;
2133
+ metaDescription?: string | undefined;
2134
+ genreIds?: number[] | undefined;
2135
+ tagIds?: number[] | undefined;
2136
+ regionIds?: number[] | undefined;
2137
+ }>;
2138
+ response: z.ZodObject<{
2139
+ id: z.ZodNumber;
2140
+ slug: z.ZodString;
2141
+ title: z.ZodString;
2142
+ originalTitle: z.ZodNullable<z.ZodString>;
2143
+ type: z.ZodString;
2144
+ status: z.ZodString;
2145
+ description: z.ZodNullable<z.ZodString>;
2146
+ customDescription: z.ZodNullable<z.ZodString>;
2147
+ shortDescription: z.ZodNullable<z.ZodString>;
2148
+ coverImageUrl: z.ZodNullable<z.ZodString>;
2149
+ catalogImageUrl: z.ZodNullable<z.ZodString>;
2150
+ cardImageUrl: z.ZodNullable<z.ZodString>;
2151
+ developer: z.ZodNullable<z.ZodString>;
2152
+ publisher: z.ZodNullable<z.ZodString>;
2153
+ releaseDate: z.ZodNullable<z.ZodDate>;
2154
+ steamAppId: z.ZodNullable<z.ZodNumber>;
2155
+ steamRating: z.ZodNullable<z.ZodNumber>;
2156
+ hasMultiplayer: z.ZodBoolean;
2157
+ hasCoop: z.ZodBoolean;
2158
+ hasSinglePlayer: z.ZodBoolean;
2159
+ metaTitle: z.ZodNullable<z.ZodString>;
2160
+ metaDescription: z.ZodNullable<z.ZodString>;
2161
+ salesCount: z.ZodNumber;
2162
+ viewsCount: z.ZodNumber;
2163
+ category: z.ZodObject<{
2164
+ slug: z.ZodString;
2165
+ name: z.ZodString;
2166
+ } & {
2167
+ id: z.ZodNumber;
2168
+ }, "strip", z.ZodTypeAny, {
2169
+ id: number;
2170
+ name: string;
2171
+ slug: string;
2172
+ }, {
2173
+ id: number;
2174
+ name: string;
2175
+ slug: string;
2176
+ }>;
2177
+ variants: z.ZodArray<z.ZodObject<{
2178
+ id: z.ZodNumber;
2179
+ name: z.ZodString;
2180
+ sku: z.ZodString;
2181
+ imageUrl: z.ZodNullable<z.ZodString>;
2182
+ price: z.ZodString;
2183
+ originalPrice: z.ZodNullable<z.ZodString>;
2184
+ topupAmount: z.ZodNullable<z.ZodString>;
2185
+ currency: z.ZodNullable<z.ZodString>;
2186
+ durationDays: z.ZodNullable<z.ZodNumber>;
2187
+ platform: z.ZodNullable<z.ZodString>;
2188
+ regionCode: z.ZodNullable<z.ZodString>;
2189
+ deliveryType: z.ZodString;
2190
+ inStock: z.ZodBoolean;
2191
+ }, "strip", z.ZodTypeAny, {
2192
+ id: number;
2193
+ price: string;
2194
+ name: string;
2195
+ sku: string;
2196
+ imageUrl: string | null;
2197
+ originalPrice: string | null;
2198
+ topupAmount: string | null;
2199
+ currency: string | null;
2200
+ durationDays: number | null;
2201
+ platform: string | null;
2202
+ regionCode: string | null;
2203
+ deliveryType: string;
2204
+ inStock: boolean;
2205
+ }, {
2206
+ id: number;
2207
+ price: string;
2208
+ name: string;
2209
+ sku: string;
2210
+ imageUrl: string | null;
2211
+ originalPrice: string | null;
2212
+ topupAmount: string | null;
2213
+ currency: string | null;
2214
+ durationDays: number | null;
2215
+ platform: string | null;
2216
+ regionCode: string | null;
2217
+ deliveryType: string;
2218
+ inStock: boolean;
2219
+ }>, "many">;
2220
+ media: z.ZodArray<z.ZodObject<{
2221
+ id: z.ZodNumber;
2222
+ type: z.ZodString;
2223
+ url: z.ZodString;
2224
+ alt: z.ZodNullable<z.ZodString>;
2225
+ }, "strip", z.ZodTypeAny, {
2226
+ type: string;
2227
+ id: number;
2228
+ url: string;
2229
+ alt: string | null;
2230
+ }, {
2231
+ type: string;
2232
+ id: number;
2233
+ url: string;
2234
+ alt: string | null;
2235
+ }>, "many">;
2236
+ genres: z.ZodArray<z.ZodObject<{
2237
+ id: z.ZodNumber;
2238
+ slug: z.ZodString;
2239
+ name: z.ZodString;
2240
+ }, "strip", z.ZodTypeAny, {
2241
+ id: number;
2242
+ name: string;
2243
+ slug: string;
2244
+ }, {
2245
+ id: number;
2246
+ name: string;
2247
+ slug: string;
2248
+ }>, "many">;
2249
+ tags: z.ZodArray<z.ZodObject<{
2250
+ id: z.ZodNumber;
2251
+ slug: z.ZodString;
2252
+ name: z.ZodString;
2253
+ }, "strip", z.ZodTypeAny, {
2254
+ id: number;
2255
+ name: string;
2256
+ slug: string;
2257
+ }, {
2258
+ id: number;
2259
+ name: string;
2260
+ slug: string;
2261
+ }>, "many">;
2262
+ regions: z.ZodArray<z.ZodObject<Omit<{
2263
+ id: z.ZodNumber;
2264
+ code: z.ZodString;
2265
+ name: z.ZodString;
2266
+ _count: z.ZodObject<{
2267
+ products: z.ZodNumber;
2268
+ }, "strip", z.ZodTypeAny, {
2269
+ products: number;
2270
+ }, {
2271
+ products: number;
2272
+ }>;
2273
+ }, "_count">, "strip", z.ZodTypeAny, {
2274
+ code: string;
2275
+ id: number;
2276
+ name: string;
2277
+ }, {
2278
+ code: string;
2279
+ id: number;
2280
+ name: string;
2281
+ }>, "many">;
2282
+ systemRequirements: z.ZodArray<z.ZodObject<{
2283
+ type: z.ZodString;
2284
+ os: z.ZodNullable<z.ZodString>;
2285
+ processor: z.ZodNullable<z.ZodString>;
2286
+ memory: z.ZodNullable<z.ZodString>;
2287
+ graphics: z.ZodNullable<z.ZodString>;
2288
+ storage: z.ZodNullable<z.ZodString>;
2289
+ directx: z.ZodNullable<z.ZodString>;
2290
+ network: z.ZodNullable<z.ZodString>;
2291
+ additional: z.ZodNullable<z.ZodString>;
2292
+ }, "strip", z.ZodTypeAny, {
2293
+ type: string;
2294
+ os: string | null;
2295
+ processor: string | null;
2296
+ memory: string | null;
2297
+ graphics: string | null;
2298
+ storage: string | null;
2299
+ directx: string | null;
2300
+ network: string | null;
2301
+ additional: string | null;
2302
+ }, {
2303
+ type: string;
2304
+ os: string | null;
2305
+ processor: string | null;
2306
+ memory: string | null;
2307
+ graphics: string | null;
2308
+ storage: string | null;
2309
+ directx: string | null;
2310
+ network: string | null;
2311
+ additional: string | null;
2312
+ }>, "many">;
2313
+ dlcs: z.ZodArray<z.ZodObject<{
2314
+ id: z.ZodNumber;
2315
+ slug: z.ZodString;
2316
+ title: z.ZodString;
2317
+ coverImageUrl: z.ZodNullable<z.ZodString>;
2318
+ catalogImageUrl: z.ZodNullable<z.ZodString>;
2319
+ cardImageUrl: z.ZodNullable<z.ZodString>;
2320
+ variants: z.ZodArray<z.ZodObject<{
2321
+ price: z.ZodAny;
2322
+ originalPrice: z.ZodAny;
2323
+ }, "strip", z.ZodTypeAny, {
2324
+ price?: any;
2325
+ originalPrice?: any;
2326
+ }, {
2327
+ price?: any;
2328
+ originalPrice?: any;
2329
+ }>, "many">;
2330
+ }, "strip", z.ZodTypeAny, {
2331
+ id: number;
2332
+ slug: string;
2333
+ title: string;
2334
+ coverImageUrl: string | null;
2335
+ catalogImageUrl: string | null;
2336
+ cardImageUrl: string | null;
2337
+ variants: {
2338
+ price?: any;
2339
+ originalPrice?: any;
2340
+ }[];
2341
+ }, {
2342
+ id: number;
2343
+ slug: string;
2344
+ title: string;
2345
+ coverImageUrl: string | null;
2346
+ catalogImageUrl: string | null;
2347
+ cardImageUrl: string | null;
2348
+ variants: {
2349
+ price?: any;
2350
+ originalPrice?: any;
2351
+ }[];
2352
+ }>, "many">;
2353
+ createdAt: z.ZodDate;
2354
+ updatedAt: z.ZodDate;
2355
+ }, "strip", z.ZodTypeAny, {
2356
+ type: string;
2357
+ status: string;
2358
+ id: number;
2359
+ createdAt: Date;
2360
+ updatedAt: Date;
2361
+ slug: string;
2362
+ title: string;
2363
+ originalTitle: string | null;
2364
+ description: string | null;
2365
+ customDescription: string | null;
2366
+ shortDescription: string | null;
2367
+ coverImageUrl: string | null;
2368
+ catalogImageUrl: string | null;
2369
+ cardImageUrl: string | null;
2370
+ developer: string | null;
2371
+ publisher: string | null;
2372
+ releaseDate: Date | null;
2373
+ steamAppId: number | null;
2374
+ hasMultiplayer: boolean;
2375
+ hasCoop: boolean;
2376
+ hasSinglePlayer: boolean;
2377
+ metaTitle: string | null;
2378
+ metaDescription: string | null;
2379
+ variants: {
2380
+ id: number;
2381
+ price: string;
2382
+ name: string;
2383
+ sku: string;
2384
+ imageUrl: string | null;
2385
+ originalPrice: string | null;
2386
+ topupAmount: string | null;
2387
+ currency: string | null;
2388
+ durationDays: number | null;
2389
+ platform: string | null;
2390
+ regionCode: string | null;
2391
+ deliveryType: string;
2392
+ inStock: boolean;
2393
+ }[];
2394
+ steamRating: number | null;
2395
+ salesCount: number;
2396
+ category: {
2397
+ id: number;
2398
+ name: string;
2399
+ slug: string;
2400
+ };
2401
+ genres: {
2402
+ id: number;
2403
+ name: string;
2404
+ slug: string;
2405
+ }[];
2406
+ regions: {
2407
+ code: string;
2408
+ id: number;
2409
+ name: string;
2410
+ }[];
2411
+ viewsCount: number;
2412
+ media: {
2413
+ type: string;
2414
+ id: number;
2415
+ url: string;
2416
+ alt: string | null;
2417
+ }[];
2418
+ tags: {
2419
+ id: number;
2420
+ name: string;
2421
+ slug: string;
2422
+ }[];
2423
+ systemRequirements: {
2424
+ type: string;
2425
+ os: string | null;
2426
+ processor: string | null;
2427
+ memory: string | null;
2428
+ graphics: string | null;
2429
+ storage: string | null;
2430
+ directx: string | null;
2431
+ network: string | null;
2432
+ additional: string | null;
2433
+ }[];
2434
+ dlcs: {
2435
+ id: number;
2436
+ slug: string;
2437
+ title: string;
2438
+ coverImageUrl: string | null;
2439
+ catalogImageUrl: string | null;
2440
+ cardImageUrl: string | null;
2441
+ variants: {
2442
+ price?: any;
2443
+ originalPrice?: any;
2444
+ }[];
2445
+ }[];
2446
+ }, {
2447
+ type: string;
2448
+ status: string;
2449
+ id: number;
2450
+ createdAt: Date;
2451
+ updatedAt: Date;
2452
+ slug: string;
2453
+ title: string;
2454
+ originalTitle: string | null;
2455
+ description: string | null;
2456
+ customDescription: string | null;
2457
+ shortDescription: string | null;
2458
+ coverImageUrl: string | null;
2459
+ catalogImageUrl: string | null;
2460
+ cardImageUrl: string | null;
2461
+ developer: string | null;
2462
+ publisher: string | null;
2463
+ releaseDate: Date | null;
2464
+ steamAppId: number | null;
2465
+ hasMultiplayer: boolean;
2466
+ hasCoop: boolean;
2467
+ hasSinglePlayer: boolean;
2468
+ metaTitle: string | null;
2469
+ metaDescription: string | null;
2470
+ variants: {
2471
+ id: number;
2472
+ price: string;
2473
+ name: string;
2474
+ sku: string;
2475
+ imageUrl: string | null;
2476
+ originalPrice: string | null;
2477
+ topupAmount: string | null;
2478
+ currency: string | null;
2479
+ durationDays: number | null;
2480
+ platform: string | null;
2481
+ regionCode: string | null;
2482
+ deliveryType: string;
2483
+ inStock: boolean;
2484
+ }[];
2485
+ steamRating: number | null;
2486
+ salesCount: number;
2487
+ category: {
2488
+ id: number;
2489
+ name: string;
2490
+ slug: string;
2491
+ };
2492
+ genres: {
2493
+ id: number;
2494
+ name: string;
2495
+ slug: string;
2496
+ }[];
2497
+ regions: {
2498
+ code: string;
2499
+ id: number;
2500
+ name: string;
2501
+ }[];
2502
+ viewsCount: number;
2503
+ media: {
2504
+ type: string;
2505
+ id: number;
2506
+ url: string;
2507
+ alt: string | null;
2508
+ }[];
2509
+ tags: {
2510
+ id: number;
2511
+ name: string;
2512
+ slug: string;
2513
+ }[];
2514
+ systemRequirements: {
2515
+ type: string;
2516
+ os: string | null;
2517
+ processor: string | null;
2518
+ memory: string | null;
2519
+ graphics: string | null;
2520
+ storage: string | null;
2521
+ directx: string | null;
2522
+ network: string | null;
2523
+ additional: string | null;
2524
+ }[];
2525
+ dlcs: {
2526
+ id: number;
2527
+ slug: string;
2528
+ title: string;
2529
+ coverImageUrl: string | null;
2530
+ catalogImageUrl: string | null;
2531
+ cardImageUrl: string | null;
2532
+ variants: {
2533
+ price?: any;
2534
+ originalPrice?: any;
2535
+ }[];
2536
+ }[];
2537
+ }>;
2538
+ };
2539
+ update: {
2540
+ method: "PUT";
2541
+ path: string;
2542
+ request: z.ZodObject<{
2543
+ slug: z.ZodOptional<z.ZodString>;
2544
+ title: z.ZodOptional<z.ZodString>;
2545
+ originalTitle: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2546
+ type: z.ZodOptional<z.ZodEnum<["GAME_KEY", "GAME_GIFT", "TOPUP", "SUBSCRIPTION", "IN_GAME_ITEM", "DLC", "CURRENCY"]>>;
2547
+ categoryId: z.ZodOptional<z.ZodNumber>;
2548
+ parentProductId: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
2549
+ description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2550
+ customDescription: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2551
+ shortDescription: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2552
+ coverImageUrl: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2553
+ catalogImageUrl: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2554
+ cardImageUrl: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2555
+ developer: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2556
+ publisher: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2557
+ releaseDate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2558
+ steamAppId: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
2559
+ hasMultiplayer: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2560
+ hasCoop: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2561
+ hasSinglePlayer: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2562
+ metaTitle: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2563
+ metaDescription: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2564
+ genreIds: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
2565
+ tagIds: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
2566
+ regionIds: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
2567
+ } & {
2568
+ status: z.ZodOptional<z.ZodEnum<["DRAFT", "ACTIVE", "OUT_OF_STOCK", "ARCHIVED"]>>;
2569
+ }, "strip", z.ZodTypeAny, {
2570
+ type?: "GAME_KEY" | "GAME_GIFT" | "TOPUP" | "SUBSCRIPTION" | "IN_GAME_ITEM" | "DLC" | "CURRENCY" | undefined;
2571
+ status?: "ACTIVE" | "DRAFT" | "OUT_OF_STOCK" | "ARCHIVED" | undefined;
2572
+ slug?: string | undefined;
2573
+ title?: string | undefined;
2574
+ originalTitle?: string | undefined;
2575
+ categoryId?: number | undefined;
2576
+ parentProductId?: number | undefined;
2577
+ description?: string | undefined;
2578
+ customDescription?: string | undefined;
2579
+ shortDescription?: string | undefined;
2580
+ coverImageUrl?: string | undefined;
2581
+ catalogImageUrl?: string | undefined;
2582
+ cardImageUrl?: string | undefined;
2583
+ developer?: string | undefined;
2584
+ publisher?: string | undefined;
2585
+ releaseDate?: string | undefined;
2586
+ steamAppId?: number | undefined;
2587
+ hasMultiplayer?: boolean | undefined;
2588
+ hasCoop?: boolean | undefined;
2589
+ hasSinglePlayer?: boolean | undefined;
2590
+ metaTitle?: string | undefined;
2591
+ metaDescription?: string | undefined;
2592
+ genreIds?: number[] | undefined;
2593
+ tagIds?: number[] | undefined;
2594
+ regionIds?: number[] | undefined;
2595
+ }, {
2596
+ type?: "GAME_KEY" | "GAME_GIFT" | "TOPUP" | "SUBSCRIPTION" | "IN_GAME_ITEM" | "DLC" | "CURRENCY" | undefined;
2597
+ status?: "ACTIVE" | "DRAFT" | "OUT_OF_STOCK" | "ARCHIVED" | undefined;
2598
+ slug?: string | undefined;
2599
+ title?: string | undefined;
2600
+ originalTitle?: string | undefined;
2601
+ categoryId?: number | undefined;
2602
+ parentProductId?: number | undefined;
2603
+ description?: string | undefined;
2604
+ customDescription?: string | undefined;
2605
+ shortDescription?: string | undefined;
2606
+ coverImageUrl?: string | undefined;
2607
+ catalogImageUrl?: string | undefined;
2608
+ cardImageUrl?: string | undefined;
2609
+ developer?: string | undefined;
2610
+ publisher?: string | undefined;
2611
+ releaseDate?: string | undefined;
2612
+ steamAppId?: number | undefined;
2613
+ hasMultiplayer?: boolean | undefined;
2614
+ hasCoop?: boolean | undefined;
2615
+ hasSinglePlayer?: boolean | undefined;
2616
+ metaTitle?: string | undefined;
2617
+ metaDescription?: string | undefined;
2618
+ genreIds?: number[] | undefined;
2619
+ tagIds?: number[] | undefined;
2620
+ regionIds?: number[] | undefined;
2621
+ }>;
2622
+ response: z.ZodObject<{
2623
+ id: z.ZodNumber;
2624
+ slug: z.ZodString;
2625
+ title: z.ZodString;
2626
+ originalTitle: z.ZodNullable<z.ZodString>;
2627
+ type: z.ZodString;
2628
+ status: z.ZodString;
2629
+ description: z.ZodNullable<z.ZodString>;
2630
+ customDescription: z.ZodNullable<z.ZodString>;
2631
+ shortDescription: z.ZodNullable<z.ZodString>;
2632
+ coverImageUrl: z.ZodNullable<z.ZodString>;
2633
+ catalogImageUrl: z.ZodNullable<z.ZodString>;
2634
+ cardImageUrl: z.ZodNullable<z.ZodString>;
2635
+ developer: z.ZodNullable<z.ZodString>;
2636
+ publisher: z.ZodNullable<z.ZodString>;
2637
+ releaseDate: z.ZodNullable<z.ZodDate>;
2638
+ steamAppId: z.ZodNullable<z.ZodNumber>;
2639
+ steamRating: z.ZodNullable<z.ZodNumber>;
2640
+ hasMultiplayer: z.ZodBoolean;
2641
+ hasCoop: z.ZodBoolean;
2642
+ hasSinglePlayer: z.ZodBoolean;
2643
+ metaTitle: z.ZodNullable<z.ZodString>;
2644
+ metaDescription: z.ZodNullable<z.ZodString>;
2645
+ salesCount: z.ZodNumber;
2646
+ viewsCount: z.ZodNumber;
2647
+ category: z.ZodObject<{
2648
+ slug: z.ZodString;
2649
+ name: z.ZodString;
2650
+ } & {
2651
+ id: z.ZodNumber;
2652
+ }, "strip", z.ZodTypeAny, {
2653
+ id: number;
2654
+ name: string;
2655
+ slug: string;
2656
+ }, {
2657
+ id: number;
2658
+ name: string;
2659
+ slug: string;
2660
+ }>;
2661
+ variants: z.ZodArray<z.ZodObject<{
2662
+ id: z.ZodNumber;
2663
+ name: z.ZodString;
2664
+ sku: z.ZodString;
2665
+ imageUrl: z.ZodNullable<z.ZodString>;
2666
+ price: z.ZodString;
2667
+ originalPrice: z.ZodNullable<z.ZodString>;
2668
+ topupAmount: z.ZodNullable<z.ZodString>;
2669
+ currency: z.ZodNullable<z.ZodString>;
2670
+ durationDays: z.ZodNullable<z.ZodNumber>;
2671
+ platform: z.ZodNullable<z.ZodString>;
2672
+ regionCode: z.ZodNullable<z.ZodString>;
2673
+ deliveryType: z.ZodString;
2674
+ inStock: z.ZodBoolean;
2675
+ }, "strip", z.ZodTypeAny, {
2676
+ id: number;
2677
+ price: string;
2678
+ name: string;
2679
+ sku: string;
2680
+ imageUrl: string | null;
2681
+ originalPrice: string | null;
2682
+ topupAmount: string | null;
2683
+ currency: string | null;
2684
+ durationDays: number | null;
2685
+ platform: string | null;
2686
+ regionCode: string | null;
2687
+ deliveryType: string;
2688
+ inStock: boolean;
2689
+ }, {
2690
+ id: number;
2691
+ price: string;
2692
+ name: string;
2693
+ sku: string;
2694
+ imageUrl: string | null;
2695
+ originalPrice: string | null;
2696
+ topupAmount: string | null;
2697
+ currency: string | null;
2698
+ durationDays: number | null;
2699
+ platform: string | null;
2700
+ regionCode: string | null;
2701
+ deliveryType: string;
2702
+ inStock: boolean;
2703
+ }>, "many">;
2704
+ media: z.ZodArray<z.ZodObject<{
2705
+ id: z.ZodNumber;
2706
+ type: z.ZodString;
2707
+ url: z.ZodString;
2708
+ alt: z.ZodNullable<z.ZodString>;
2709
+ }, "strip", z.ZodTypeAny, {
2710
+ type: string;
2711
+ id: number;
2712
+ url: string;
2713
+ alt: string | null;
2714
+ }, {
2715
+ type: string;
2716
+ id: number;
2717
+ url: string;
2718
+ alt: string | null;
2719
+ }>, "many">;
2720
+ genres: z.ZodArray<z.ZodObject<{
2721
+ id: z.ZodNumber;
2722
+ slug: z.ZodString;
2723
+ name: z.ZodString;
2724
+ }, "strip", z.ZodTypeAny, {
2725
+ id: number;
2726
+ name: string;
2727
+ slug: string;
2728
+ }, {
2729
+ id: number;
2730
+ name: string;
2731
+ slug: string;
2732
+ }>, "many">;
2733
+ tags: z.ZodArray<z.ZodObject<{
2734
+ id: z.ZodNumber;
2735
+ slug: z.ZodString;
2736
+ name: z.ZodString;
2737
+ }, "strip", z.ZodTypeAny, {
2738
+ id: number;
2739
+ name: string;
2740
+ slug: string;
2741
+ }, {
2742
+ id: number;
2743
+ name: string;
2744
+ slug: string;
2745
+ }>, "many">;
2746
+ regions: z.ZodArray<z.ZodObject<Omit<{
2747
+ id: z.ZodNumber;
2748
+ code: z.ZodString;
2749
+ name: z.ZodString;
2750
+ _count: z.ZodObject<{
2751
+ products: z.ZodNumber;
2752
+ }, "strip", z.ZodTypeAny, {
2753
+ products: number;
2754
+ }, {
2755
+ products: number;
2756
+ }>;
2757
+ }, "_count">, "strip", z.ZodTypeAny, {
2758
+ code: string;
2759
+ id: number;
2760
+ name: string;
2761
+ }, {
2762
+ code: string;
2763
+ id: number;
2764
+ name: string;
2765
+ }>, "many">;
2766
+ systemRequirements: z.ZodArray<z.ZodObject<{
2767
+ type: z.ZodString;
2768
+ os: z.ZodNullable<z.ZodString>;
2769
+ processor: z.ZodNullable<z.ZodString>;
2770
+ memory: z.ZodNullable<z.ZodString>;
2771
+ graphics: z.ZodNullable<z.ZodString>;
2772
+ storage: z.ZodNullable<z.ZodString>;
2773
+ directx: z.ZodNullable<z.ZodString>;
2774
+ network: z.ZodNullable<z.ZodString>;
2775
+ additional: z.ZodNullable<z.ZodString>;
2776
+ }, "strip", z.ZodTypeAny, {
2777
+ type: string;
2778
+ os: string | null;
2779
+ processor: string | null;
2780
+ memory: string | null;
2781
+ graphics: string | null;
2782
+ storage: string | null;
2783
+ directx: string | null;
2784
+ network: string | null;
2785
+ additional: string | null;
2786
+ }, {
2787
+ type: string;
2788
+ os: string | null;
2789
+ processor: string | null;
2790
+ memory: string | null;
2791
+ graphics: string | null;
2792
+ storage: string | null;
2793
+ directx: string | null;
2794
+ network: string | null;
2795
+ additional: string | null;
2796
+ }>, "many">;
2797
+ dlcs: z.ZodArray<z.ZodObject<{
2798
+ id: z.ZodNumber;
2799
+ slug: z.ZodString;
2800
+ title: z.ZodString;
2801
+ coverImageUrl: z.ZodNullable<z.ZodString>;
2802
+ catalogImageUrl: z.ZodNullable<z.ZodString>;
2803
+ cardImageUrl: z.ZodNullable<z.ZodString>;
2804
+ variants: z.ZodArray<z.ZodObject<{
2805
+ price: z.ZodAny;
2806
+ originalPrice: z.ZodAny;
2807
+ }, "strip", z.ZodTypeAny, {
2808
+ price?: any;
2809
+ originalPrice?: any;
2810
+ }, {
2811
+ price?: any;
2812
+ originalPrice?: any;
2813
+ }>, "many">;
2814
+ }, "strip", z.ZodTypeAny, {
2815
+ id: number;
2816
+ slug: string;
2817
+ title: string;
2818
+ coverImageUrl: string | null;
2819
+ catalogImageUrl: string | null;
2820
+ cardImageUrl: string | null;
2821
+ variants: {
2822
+ price?: any;
2823
+ originalPrice?: any;
2824
+ }[];
2825
+ }, {
2826
+ id: number;
2827
+ slug: string;
2828
+ title: string;
2829
+ coverImageUrl: string | null;
2830
+ catalogImageUrl: string | null;
2831
+ cardImageUrl: string | null;
2832
+ variants: {
2833
+ price?: any;
2834
+ originalPrice?: any;
2835
+ }[];
2836
+ }>, "many">;
2837
+ createdAt: z.ZodDate;
2838
+ updatedAt: z.ZodDate;
2839
+ }, "strip", z.ZodTypeAny, {
2840
+ type: string;
2841
+ status: string;
2842
+ id: number;
2843
+ createdAt: Date;
2844
+ updatedAt: Date;
2845
+ slug: string;
2846
+ title: string;
2847
+ originalTitle: string | null;
2848
+ description: string | null;
2849
+ customDescription: string | null;
2850
+ shortDescription: string | null;
2851
+ coverImageUrl: string | null;
2852
+ catalogImageUrl: string | null;
2853
+ cardImageUrl: string | null;
2854
+ developer: string | null;
2855
+ publisher: string | null;
2856
+ releaseDate: Date | null;
2857
+ steamAppId: number | null;
2858
+ hasMultiplayer: boolean;
2859
+ hasCoop: boolean;
2860
+ hasSinglePlayer: boolean;
2861
+ metaTitle: string | null;
2862
+ metaDescription: string | null;
2863
+ variants: {
2864
+ id: number;
2865
+ price: string;
2866
+ name: string;
2867
+ sku: string;
2868
+ imageUrl: string | null;
2869
+ originalPrice: string | null;
2870
+ topupAmount: string | null;
2871
+ currency: string | null;
2872
+ durationDays: number | null;
2873
+ platform: string | null;
2874
+ regionCode: string | null;
2875
+ deliveryType: string;
2876
+ inStock: boolean;
2877
+ }[];
2878
+ steamRating: number | null;
2879
+ salesCount: number;
2880
+ category: {
2881
+ id: number;
2882
+ name: string;
2883
+ slug: string;
2884
+ };
2885
+ genres: {
2886
+ id: number;
2887
+ name: string;
2888
+ slug: string;
2889
+ }[];
2890
+ regions: {
2891
+ code: string;
2892
+ id: number;
2893
+ name: string;
2894
+ }[];
2895
+ viewsCount: number;
2896
+ media: {
2897
+ type: string;
2898
+ id: number;
2899
+ url: string;
2900
+ alt: string | null;
2901
+ }[];
2902
+ tags: {
2903
+ id: number;
2904
+ name: string;
2905
+ slug: string;
2906
+ }[];
2907
+ systemRequirements: {
2908
+ type: string;
2909
+ os: string | null;
2910
+ processor: string | null;
2911
+ memory: string | null;
2912
+ graphics: string | null;
2913
+ storage: string | null;
2914
+ directx: string | null;
2915
+ network: string | null;
2916
+ additional: string | null;
2917
+ }[];
2918
+ dlcs: {
2919
+ id: number;
2920
+ slug: string;
2921
+ title: string;
2922
+ coverImageUrl: string | null;
2923
+ catalogImageUrl: string | null;
2924
+ cardImageUrl: string | null;
2925
+ variants: {
2926
+ price?: any;
2927
+ originalPrice?: any;
2928
+ }[];
2929
+ }[];
2930
+ }, {
2931
+ type: string;
2932
+ status: string;
2933
+ id: number;
2934
+ createdAt: Date;
2935
+ updatedAt: Date;
2936
+ slug: string;
2937
+ title: string;
2938
+ originalTitle: string | null;
2939
+ description: string | null;
2940
+ customDescription: string | null;
2941
+ shortDescription: string | null;
2942
+ coverImageUrl: string | null;
2943
+ catalogImageUrl: string | null;
2944
+ cardImageUrl: string | null;
2945
+ developer: string | null;
2946
+ publisher: string | null;
2947
+ releaseDate: Date | null;
2948
+ steamAppId: number | null;
2949
+ hasMultiplayer: boolean;
2950
+ hasCoop: boolean;
2951
+ hasSinglePlayer: boolean;
2952
+ metaTitle: string | null;
2953
+ metaDescription: string | null;
2954
+ variants: {
2955
+ id: number;
2956
+ price: string;
2957
+ name: string;
2958
+ sku: string;
2959
+ imageUrl: string | null;
2960
+ originalPrice: string | null;
2961
+ topupAmount: string | null;
2962
+ currency: string | null;
2963
+ durationDays: number | null;
2964
+ platform: string | null;
2965
+ regionCode: string | null;
2966
+ deliveryType: string;
2967
+ inStock: boolean;
2968
+ }[];
2969
+ steamRating: number | null;
2970
+ salesCount: number;
2971
+ category: {
2972
+ id: number;
2973
+ name: string;
2974
+ slug: string;
2975
+ };
2976
+ genres: {
2977
+ id: number;
2978
+ name: string;
2979
+ slug: string;
2980
+ }[];
2981
+ regions: {
2982
+ code: string;
2983
+ id: number;
2984
+ name: string;
2985
+ }[];
2986
+ viewsCount: number;
2987
+ media: {
2988
+ type: string;
2989
+ id: number;
2990
+ url: string;
2991
+ alt: string | null;
2992
+ }[];
2993
+ tags: {
2994
+ id: number;
2995
+ name: string;
2996
+ slug: string;
2997
+ }[];
2998
+ systemRequirements: {
2999
+ type: string;
3000
+ os: string | null;
3001
+ processor: string | null;
3002
+ memory: string | null;
3003
+ graphics: string | null;
3004
+ storage: string | null;
3005
+ directx: string | null;
3006
+ network: string | null;
3007
+ additional: string | null;
3008
+ }[];
3009
+ dlcs: {
3010
+ id: number;
3011
+ slug: string;
3012
+ title: string;
3013
+ coverImageUrl: string | null;
3014
+ catalogImageUrl: string | null;
3015
+ cardImageUrl: string | null;
3016
+ variants: {
3017
+ price?: any;
3018
+ originalPrice?: any;
3019
+ }[];
3020
+ }[];
3021
+ }>;
3022
+ };
3023
+ archive: {
3024
+ method: "DELETE";
3025
+ path: string;
3026
+ response: z.ZodObject<{
3027
+ status: z.ZodString;
3028
+ }, "strip", z.ZodTypeAny, {
3029
+ status: string;
3030
+ }, {
3031
+ status: string;
3032
+ }>;
3033
+ };
3034
+ createVariant: {
3035
+ method: "POST";
3036
+ path: string;
3037
+ request: z.ZodObject<{
3038
+ name: z.ZodString;
3039
+ sku: z.ZodString;
3040
+ imageUrl: z.ZodOptional<z.ZodString>;
3041
+ price: z.ZodNumber;
3042
+ originalPrice: z.ZodOptional<z.ZodNumber>;
3043
+ costPrice: z.ZodOptional<z.ZodNumber>;
3044
+ topupAmount: z.ZodOptional<z.ZodNumber>;
3045
+ currency: z.ZodOptional<z.ZodString>;
3046
+ durationDays: z.ZodOptional<z.ZodNumber>;
3047
+ platform: z.ZodOptional<z.ZodString>;
3048
+ regionCode: z.ZodOptional<z.ZodString>;
3049
+ deliveryType: z.ZodDefault<z.ZodEnum<["AUTOMATIC", "MANUAL", "BOT"]>>;
3050
+ }, "strip", z.ZodTypeAny, {
3051
+ price: number;
3052
+ name: string;
3053
+ sku: string;
3054
+ deliveryType: "AUTOMATIC" | "MANUAL" | "BOT";
3055
+ imageUrl?: string | undefined;
3056
+ originalPrice?: number | undefined;
3057
+ costPrice?: number | undefined;
3058
+ topupAmount?: number | undefined;
3059
+ currency?: string | undefined;
3060
+ durationDays?: number | undefined;
3061
+ platform?: string | undefined;
3062
+ regionCode?: string | undefined;
3063
+ }, {
3064
+ price: number;
3065
+ name: string;
3066
+ sku: string;
3067
+ imageUrl?: string | undefined;
3068
+ originalPrice?: number | undefined;
3069
+ costPrice?: number | undefined;
3070
+ topupAmount?: number | undefined;
3071
+ currency?: string | undefined;
3072
+ durationDays?: number | undefined;
3073
+ platform?: string | undefined;
3074
+ regionCode?: string | undefined;
3075
+ deliveryType?: "AUTOMATIC" | "MANUAL" | "BOT" | undefined;
3076
+ }>;
3077
+ };
3078
+ updateVariant: {
3079
+ method: "PUT";
3080
+ path: string;
3081
+ request: z.ZodObject<{
3082
+ name: z.ZodString;
3083
+ sku: z.ZodString;
3084
+ imageUrl: z.ZodOptional<z.ZodString>;
3085
+ price: z.ZodNumber;
3086
+ originalPrice: z.ZodOptional<z.ZodNumber>;
3087
+ costPrice: z.ZodOptional<z.ZodNumber>;
3088
+ topupAmount: z.ZodOptional<z.ZodNumber>;
3089
+ currency: z.ZodOptional<z.ZodString>;
3090
+ durationDays: z.ZodOptional<z.ZodNumber>;
3091
+ platform: z.ZodOptional<z.ZodString>;
3092
+ regionCode: z.ZodOptional<z.ZodString>;
3093
+ deliveryType: z.ZodDefault<z.ZodEnum<["AUTOMATIC", "MANUAL", "BOT"]>>;
3094
+ }, "strip", z.ZodTypeAny, {
3095
+ price: number;
3096
+ name: string;
3097
+ sku: string;
3098
+ deliveryType: "AUTOMATIC" | "MANUAL" | "BOT";
3099
+ imageUrl?: string | undefined;
3100
+ originalPrice?: number | undefined;
3101
+ costPrice?: number | undefined;
3102
+ topupAmount?: number | undefined;
3103
+ currency?: string | undefined;
3104
+ durationDays?: number | undefined;
3105
+ platform?: string | undefined;
3106
+ regionCode?: string | undefined;
3107
+ }, {
3108
+ price: number;
3109
+ name: string;
3110
+ sku: string;
3111
+ imageUrl?: string | undefined;
3112
+ originalPrice?: number | undefined;
3113
+ costPrice?: number | undefined;
3114
+ topupAmount?: number | undefined;
3115
+ currency?: string | undefined;
3116
+ durationDays?: number | undefined;
3117
+ platform?: string | undefined;
3118
+ regionCode?: string | undefined;
3119
+ deliveryType?: "AUTOMATIC" | "MANUAL" | "BOT" | undefined;
3120
+ }>;
3121
+ };
3122
+ importKeys: {
3123
+ method: "POST";
3124
+ path: string;
3125
+ request: z.ZodObject<{
3126
+ keys: z.ZodArray<z.ZodString, "many">;
3127
+ }, "strip", z.ZodTypeAny, {
3128
+ keys: string[];
3129
+ }, {
3130
+ keys: string[];
3131
+ }>;
3132
+ response: z.ZodObject<{
3133
+ imported: z.ZodNumber;
3134
+ }, "strip", z.ZodTypeAny, {
3135
+ imported: number;
3136
+ }, {
3137
+ imported: number;
3138
+ }>;
3139
+ };
3140
+ getKeysCount: {
3141
+ method: "GET";
3142
+ path: string;
3143
+ response: z.ZodObject<{
3144
+ available: z.ZodNumber;
3145
+ sold: z.ZodNumber;
3146
+ reserved: z.ZodNumber;
3147
+ total: z.ZodNumber;
3148
+ }, "strip", z.ZodTypeAny, {
3149
+ total: number;
3150
+ available: number;
3151
+ sold: number;
3152
+ reserved: number;
3153
+ }, {
3154
+ total: number;
3155
+ available: number;
3156
+ sold: number;
3157
+ reserved: number;
3158
+ }>;
3159
+ };
3160
+ addMedia: {
3161
+ method: "POST";
3162
+ path: string;
3163
+ request: z.ZodObject<{
3164
+ type: z.ZodEnum<["SCREENSHOT", "SLIDER", "VIDEO", "TRAILER"]>;
3165
+ url: z.ZodString;
3166
+ alt: z.ZodOptional<z.ZodString>;
3167
+ sortOrder: z.ZodDefault<z.ZodNumber>;
3168
+ }, "strip", z.ZodTypeAny, {
3169
+ type: "SCREENSHOT" | "SLIDER" | "VIDEO" | "TRAILER";
3170
+ url: string;
3171
+ sortOrder: number;
3172
+ alt?: string | undefined;
3173
+ }, {
3174
+ type: "SCREENSHOT" | "SLIDER" | "VIDEO" | "TRAILER";
3175
+ url: string;
3176
+ alt?: string | undefined;
3177
+ sortOrder?: number | undefined;
3178
+ }>;
3179
+ };
3180
+ removeMedia: {
3181
+ method: "DELETE";
3182
+ path: string;
3183
+ };
3184
+ upsertSystemRequirements: {
3185
+ method: "POST";
3186
+ path: string;
3187
+ request: z.ZodObject<{
3188
+ type: z.ZodEnum<["minimum", "recommended"]>;
3189
+ os: z.ZodOptional<z.ZodString>;
3190
+ processor: z.ZodOptional<z.ZodString>;
3191
+ memory: z.ZodOptional<z.ZodString>;
3192
+ graphics: z.ZodOptional<z.ZodString>;
3193
+ storage: z.ZodOptional<z.ZodString>;
3194
+ directx: z.ZodOptional<z.ZodString>;
3195
+ network: z.ZodOptional<z.ZodString>;
3196
+ additional: z.ZodOptional<z.ZodString>;
3197
+ }, "strip", z.ZodTypeAny, {
3198
+ type: "minimum" | "recommended";
3199
+ os?: string | undefined;
3200
+ processor?: string | undefined;
3201
+ memory?: string | undefined;
3202
+ graphics?: string | undefined;
3203
+ storage?: string | undefined;
3204
+ directx?: string | undefined;
3205
+ network?: string | undefined;
3206
+ additional?: string | undefined;
3207
+ }, {
3208
+ type: "minimum" | "recommended";
3209
+ os?: string | undefined;
3210
+ processor?: string | undefined;
3211
+ memory?: string | undefined;
3212
+ graphics?: string | undefined;
3213
+ storage?: string | undefined;
3214
+ directx?: string | undefined;
3215
+ network?: string | undefined;
3216
+ additional?: string | undefined;
3217
+ }>;
3218
+ };
3219
+ };
3220
+ readonly paymentMethods: {
3221
+ course: {
3222
+ method: "GET";
3223
+ path: string;
3224
+ request: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
3225
+ response: z.ZodObject<{
3226
+ USD_RUB: z.ZodString;
3227
+ RUB_KZT: z.ZodString;
3228
+ USD_KZT: z.ZodString;
3229
+ KZT_RUB: z.ZodString;
3230
+ }, "strip", z.ZodTypeAny, {
3231
+ USD_RUB: string;
3232
+ RUB_KZT: string;
3233
+ USD_KZT: string;
3234
+ KZT_RUB: string;
3235
+ }, {
3236
+ USD_RUB: string;
3237
+ RUB_KZT: string;
3238
+ USD_KZT: string;
3239
+ KZT_RUB: string;
3240
+ }>;
3241
+ };
3242
+ create: {
3243
+ method: "POST";
3244
+ path: string;
3245
+ request: z.ZodObject<{
3246
+ data: z.ZodObject<{
3247
+ name: z.ZodString;
3248
+ image: z.ZodString;
3249
+ key: z.ZodString;
3250
+ uniqueKey: z.ZodString;
3251
+ isActive: z.ZodDefault<z.ZodBoolean>;
3252
+ type: z.ZodString;
3253
+ maxAmount: z.ZodNumber;
3254
+ minAmount: z.ZodNumber;
3255
+ comission: z.ZodNumber;
3256
+ secretComission: z.ZodNumber;
3257
+ serviceComission: z.ZodNumber;
3258
+ cryptoToken: z.ZodOptional<z.ZodString>;
3259
+ cryptoTokenSecret: z.ZodOptional<z.ZodString>;
3260
+ }, "strip", z.ZodTypeAny, {
3261
+ type: string;
3262
+ name: string;
3263
+ image: string;
3264
+ key: string;
3265
+ uniqueKey: string;
3266
+ isActive: boolean;
3267
+ maxAmount: number;
3268
+ minAmount: number;
3269
+ comission: number;
3270
+ secretComission: number;
3271
+ serviceComission: number;
3272
+ cryptoToken?: string | undefined;
3273
+ cryptoTokenSecret?: string | undefined;
3274
+ }, {
3275
+ type: string;
3276
+ name: string;
3277
+ image: string;
3278
+ key: string;
3279
+ uniqueKey: string;
3280
+ maxAmount: number;
3281
+ minAmount: number;
3282
+ comission: number;
3283
+ secretComission: number;
3284
+ serviceComission: number;
3285
+ isActive?: boolean | undefined;
3286
+ cryptoToken?: string | undefined;
3287
+ cryptoTokenSecret?: string | undefined;
3288
+ }>;
3289
+ }, "strip", z.ZodTypeAny, {
3290
+ data: {
3291
+ type: string;
3292
+ name: string;
3293
+ image: string;
3294
+ key: string;
3295
+ uniqueKey: string;
3296
+ isActive: boolean;
3297
+ maxAmount: number;
3298
+ minAmount: number;
3299
+ comission: number;
3300
+ secretComission: number;
3301
+ serviceComission: number;
3302
+ cryptoToken?: string | undefined;
3303
+ cryptoTokenSecret?: string | undefined;
3304
+ };
3305
+ }, {
3306
+ data: {
3307
+ type: string;
3308
+ name: string;
3309
+ image: string;
3310
+ key: string;
3311
+ uniqueKey: string;
3312
+ maxAmount: number;
3313
+ minAmount: number;
3314
+ comission: number;
3315
+ secretComission: number;
3316
+ serviceComission: number;
3317
+ isActive?: boolean | undefined;
3318
+ cryptoToken?: string | undefined;
3319
+ cryptoTokenSecret?: string | undefined;
3320
+ };
3321
+ }>;
3322
+ response: z.ZodObject<{
3323
+ id: z.ZodNumber;
3324
+ name: z.ZodString;
3325
+ image: z.ZodString;
3326
+ key: z.ZodString;
3327
+ uniqueKey: z.ZodString;
3328
+ isActive: z.ZodBoolean;
3329
+ type: z.ZodString;
3330
+ maxAmount: z.ZodNumber;
3331
+ minAmount: z.ZodNumber;
3332
+ comission: z.ZodNumber;
3333
+ secretComission: z.ZodOptional<z.ZodNumber>;
3334
+ serviceComission: z.ZodNumber;
3335
+ cryptoToken: z.ZodNullable<z.ZodString>;
3336
+ cryptoNetwork: z.ZodNullable<z.ZodString>;
3337
+ updatedAt: z.ZodDate;
3338
+ createdAt: z.ZodDate;
3339
+ }, "strip", z.ZodTypeAny, {
3340
+ type: string;
3341
+ id: number;
3342
+ createdAt: Date;
3343
+ updatedAt: Date;
3344
+ name: string;
3345
+ image: string;
3346
+ key: string;
3347
+ uniqueKey: string;
3348
+ isActive: boolean;
3349
+ maxAmount: number;
3350
+ minAmount: number;
3351
+ comission: number;
3352
+ serviceComission: number;
3353
+ cryptoToken: string | null;
3354
+ cryptoNetwork: string | null;
3355
+ secretComission?: number | undefined;
3356
+ }, {
3357
+ type: string;
3358
+ id: number;
3359
+ createdAt: Date;
3360
+ updatedAt: Date;
3361
+ name: string;
3362
+ image: string;
3363
+ key: string;
3364
+ uniqueKey: string;
3365
+ isActive: boolean;
3366
+ maxAmount: number;
3367
+ minAmount: number;
3368
+ comission: number;
3369
+ serviceComission: number;
3370
+ cryptoToken: string | null;
3371
+ cryptoNetwork: string | null;
3372
+ secretComission?: number | undefined;
3373
+ }>;
3374
+ };
3375
+ update: {
3376
+ method: "PUT";
3377
+ path: string;
3378
+ request: z.ZodObject<{
3379
+ id: z.ZodNumber;
3380
+ data: z.ZodObject<{
3381
+ name: z.ZodOptional<z.ZodString>;
3382
+ image: z.ZodOptional<z.ZodString>;
3383
+ key: z.ZodOptional<z.ZodString>;
3384
+ uniqueKey: z.ZodOptional<z.ZodString>;
3385
+ isActive: z.ZodOptional<z.ZodBoolean>;
3386
+ type: z.ZodOptional<z.ZodString>;
3387
+ maxAmount: z.ZodOptional<z.ZodNumber>;
3388
+ minAmount: z.ZodOptional<z.ZodNumber>;
3389
+ comission: z.ZodOptional<z.ZodNumber>;
3390
+ secretComission: z.ZodOptional<z.ZodNumber>;
3391
+ serviceComission: z.ZodOptional<z.ZodNumber>;
3392
+ cryptoToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3393
+ cryptoTokenSecret: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3394
+ }, "strip", z.ZodTypeAny, {
3395
+ type?: string | undefined;
3396
+ name?: string | undefined;
3397
+ image?: string | undefined;
3398
+ key?: string | undefined;
3399
+ uniqueKey?: string | undefined;
3400
+ isActive?: boolean | undefined;
3401
+ maxAmount?: number | undefined;
3402
+ minAmount?: number | undefined;
3403
+ comission?: number | undefined;
3404
+ secretComission?: number | undefined;
3405
+ serviceComission?: number | undefined;
3406
+ cryptoToken?: string | null | undefined;
3407
+ cryptoTokenSecret?: string | null | undefined;
3408
+ }, {
3409
+ type?: string | undefined;
3410
+ name?: string | undefined;
3411
+ image?: string | undefined;
3412
+ key?: string | undefined;
3413
+ uniqueKey?: string | undefined;
3414
+ isActive?: boolean | undefined;
3415
+ maxAmount?: number | undefined;
3416
+ minAmount?: number | undefined;
3417
+ comission?: number | undefined;
3418
+ secretComission?: number | undefined;
3419
+ serviceComission?: number | undefined;
3420
+ cryptoToken?: string | null | undefined;
3421
+ cryptoTokenSecret?: string | null | undefined;
3422
+ }>;
3423
+ }, "strip", z.ZodTypeAny, {
3424
+ id: number;
3425
+ data: {
3426
+ type?: string | undefined;
3427
+ name?: string | undefined;
3428
+ image?: string | undefined;
3429
+ key?: string | undefined;
3430
+ uniqueKey?: string | undefined;
3431
+ isActive?: boolean | undefined;
3432
+ maxAmount?: number | undefined;
3433
+ minAmount?: number | undefined;
3434
+ comission?: number | undefined;
3435
+ secretComission?: number | undefined;
3436
+ serviceComission?: number | undefined;
3437
+ cryptoToken?: string | null | undefined;
3438
+ cryptoTokenSecret?: string | null | undefined;
3439
+ };
3440
+ }, {
3441
+ id: number;
3442
+ data: {
3443
+ type?: string | undefined;
3444
+ name?: string | undefined;
3445
+ image?: string | undefined;
3446
+ key?: string | undefined;
3447
+ uniqueKey?: string | undefined;
3448
+ isActive?: boolean | undefined;
3449
+ maxAmount?: number | undefined;
3450
+ minAmount?: number | undefined;
3451
+ comission?: number | undefined;
3452
+ secretComission?: number | undefined;
3453
+ serviceComission?: number | undefined;
3454
+ cryptoToken?: string | null | undefined;
3455
+ cryptoTokenSecret?: string | null | undefined;
3456
+ };
3457
+ }>;
3458
+ response: z.ZodObject<{
3459
+ id: z.ZodNumber;
3460
+ name: z.ZodString;
3461
+ image: z.ZodString;
3462
+ key: z.ZodString;
3463
+ uniqueKey: z.ZodString;
3464
+ isActive: z.ZodBoolean;
3465
+ type: z.ZodString;
3466
+ maxAmount: z.ZodNumber;
3467
+ minAmount: z.ZodNumber;
3468
+ comission: z.ZodNumber;
3469
+ secretComission: z.ZodOptional<z.ZodNumber>;
3470
+ serviceComission: z.ZodNumber;
3471
+ cryptoToken: z.ZodNullable<z.ZodString>;
3472
+ cryptoNetwork: z.ZodNullable<z.ZodString>;
3473
+ updatedAt: z.ZodDate;
3474
+ createdAt: z.ZodDate;
3475
+ }, "strip", z.ZodTypeAny, {
3476
+ type: string;
3477
+ id: number;
3478
+ createdAt: Date;
3479
+ updatedAt: Date;
3480
+ name: string;
3481
+ image: string;
3482
+ key: string;
3483
+ uniqueKey: string;
3484
+ isActive: boolean;
3485
+ maxAmount: number;
3486
+ minAmount: number;
3487
+ comission: number;
3488
+ serviceComission: number;
3489
+ cryptoToken: string | null;
3490
+ cryptoNetwork: string | null;
3491
+ secretComission?: number | undefined;
3492
+ }, {
3493
+ type: string;
3494
+ id: number;
3495
+ createdAt: Date;
3496
+ updatedAt: Date;
3497
+ name: string;
3498
+ image: string;
3499
+ key: string;
3500
+ uniqueKey: string;
3501
+ isActive: boolean;
3502
+ maxAmount: number;
3503
+ minAmount: number;
3504
+ comission: number;
3505
+ serviceComission: number;
3506
+ cryptoToken: string | null;
3507
+ cryptoNetwork: string | null;
3508
+ secretComission?: number | undefined;
3509
+ }>;
3510
+ };
3511
+ list: {
3512
+ method: "GET";
3513
+ path: string;
3514
+ request: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
3515
+ response: z.ZodArray<z.ZodObject<{
3516
+ id: z.ZodNumber;
3517
+ name: z.ZodString;
3518
+ image: z.ZodString;
3519
+ key: z.ZodString;
3520
+ uniqueKey: z.ZodString;
3521
+ isActive: z.ZodBoolean;
3522
+ type: z.ZodString;
3523
+ maxAmount: z.ZodNumber;
3524
+ minAmount: z.ZodNumber;
3525
+ comission: z.ZodNumber;
3526
+ secretComission: z.ZodOptional<z.ZodNumber>;
3527
+ serviceComission: z.ZodNumber;
3528
+ cryptoToken: z.ZodNullable<z.ZodString>;
3529
+ cryptoNetwork: z.ZodNullable<z.ZodString>;
3530
+ updatedAt: z.ZodDate;
3531
+ createdAt: z.ZodDate;
3532
+ }, "strip", z.ZodTypeAny, {
3533
+ type: string;
3534
+ id: number;
3535
+ createdAt: Date;
3536
+ updatedAt: Date;
3537
+ name: string;
3538
+ image: string;
3539
+ key: string;
3540
+ uniqueKey: string;
3541
+ isActive: boolean;
3542
+ maxAmount: number;
3543
+ minAmount: number;
3544
+ comission: number;
3545
+ serviceComission: number;
3546
+ cryptoToken: string | null;
3547
+ cryptoNetwork: string | null;
3548
+ secretComission?: number | undefined;
3549
+ }, {
3550
+ type: string;
3551
+ id: number;
3552
+ createdAt: Date;
3553
+ updatedAt: Date;
3554
+ name: string;
3555
+ image: string;
3556
+ key: string;
3557
+ uniqueKey: string;
3558
+ isActive: boolean;
3559
+ maxAmount: number;
3560
+ minAmount: number;
3561
+ comission: number;
3562
+ serviceComission: number;
3563
+ cryptoToken: string | null;
3564
+ cryptoNetwork: string | null;
3565
+ secretComission?: number | undefined;
3566
+ }>, "many">;
3567
+ };
3568
+ listAdmin: {
3569
+ method: "GET";
3570
+ path: string;
3571
+ request: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
3572
+ response: z.ZodArray<z.ZodObject<{
3573
+ id: z.ZodNumber;
3574
+ name: z.ZodString;
3575
+ image: z.ZodString;
3576
+ key: z.ZodString;
3577
+ uniqueKey: z.ZodString;
3578
+ isActive: z.ZodBoolean;
3579
+ type: z.ZodString;
3580
+ maxAmount: z.ZodNumber;
3581
+ minAmount: z.ZodNumber;
3582
+ comission: z.ZodNumber;
3583
+ secretComission: z.ZodOptional<z.ZodNumber>;
3584
+ serviceComission: z.ZodNumber;
3585
+ cryptoToken: z.ZodNullable<z.ZodString>;
3586
+ cryptoNetwork: z.ZodNullable<z.ZodString>;
3587
+ updatedAt: z.ZodDate;
3588
+ createdAt: z.ZodDate;
3589
+ }, "strip", z.ZodTypeAny, {
3590
+ type: string;
3591
+ id: number;
3592
+ createdAt: Date;
3593
+ updatedAt: Date;
3594
+ name: string;
3595
+ image: string;
3596
+ key: string;
3597
+ uniqueKey: string;
3598
+ isActive: boolean;
3599
+ maxAmount: number;
3600
+ minAmount: number;
3601
+ comission: number;
3602
+ serviceComission: number;
3603
+ cryptoToken: string | null;
3604
+ cryptoNetwork: string | null;
3605
+ secretComission?: number | undefined;
3606
+ }, {
3607
+ type: string;
3608
+ id: number;
3609
+ createdAt: Date;
3610
+ updatedAt: Date;
3611
+ name: string;
3612
+ image: string;
3613
+ key: string;
3614
+ uniqueKey: string;
3615
+ isActive: boolean;
3616
+ maxAmount: number;
3617
+ minAmount: number;
3618
+ comission: number;
3619
+ serviceComission: number;
3620
+ cryptoToken: string | null;
3621
+ cryptoNetwork: string | null;
3622
+ secretComission?: number | undefined;
3623
+ }>, "many">;
3624
+ };
3625
+ getById: {
3626
+ method: "GET";
3627
+ path: string;
3628
+ request: z.ZodObject<{
3629
+ id: z.ZodNumber;
3630
+ }, "strip", z.ZodTypeAny, {
3631
+ id: number;
3632
+ }, {
3633
+ id: number;
3634
+ }>;
3635
+ response: z.ZodObject<{
3636
+ id: z.ZodNumber;
3637
+ name: z.ZodString;
3638
+ image: z.ZodString;
3639
+ key: z.ZodString;
3640
+ uniqueKey: z.ZodString;
3641
+ isActive: z.ZodBoolean;
3642
+ type: z.ZodString;
3643
+ maxAmount: z.ZodNumber;
3644
+ minAmount: z.ZodNumber;
3645
+ comission: z.ZodNumber;
3646
+ secretComission: z.ZodOptional<z.ZodNumber>;
3647
+ serviceComission: z.ZodNumber;
3648
+ cryptoToken: z.ZodNullable<z.ZodString>;
3649
+ cryptoNetwork: z.ZodNullable<z.ZodString>;
3650
+ updatedAt: z.ZodDate;
3651
+ createdAt: z.ZodDate;
3652
+ }, "strip", z.ZodTypeAny, {
3653
+ type: string;
3654
+ id: number;
3655
+ createdAt: Date;
3656
+ updatedAt: Date;
3657
+ name: string;
3658
+ image: string;
3659
+ key: string;
3660
+ uniqueKey: string;
3661
+ isActive: boolean;
3662
+ maxAmount: number;
3663
+ minAmount: number;
3664
+ comission: number;
3665
+ serviceComission: number;
3666
+ cryptoToken: string | null;
3667
+ cryptoNetwork: string | null;
3668
+ secretComission?: number | undefined;
3669
+ }, {
3670
+ type: string;
3671
+ id: number;
3672
+ createdAt: Date;
3673
+ updatedAt: Date;
3674
+ name: string;
3675
+ image: string;
3676
+ key: string;
3677
+ uniqueKey: string;
3678
+ isActive: boolean;
3679
+ maxAmount: number;
3680
+ minAmount: number;
3681
+ comission: number;
3682
+ serviceComission: number;
3683
+ cryptoToken: string | null;
3684
+ cryptoNetwork: string | null;
3685
+ secretComission?: number | undefined;
3686
+ }>;
3687
+ };
3688
+ getByIdAdmin: {
3689
+ method: "GET";
3690
+ path: string;
3691
+ request: z.ZodObject<{
3692
+ id: z.ZodNumber;
3693
+ }, "strip", z.ZodTypeAny, {
3694
+ id: number;
3695
+ }, {
3696
+ id: number;
3697
+ }>;
3698
+ response: z.ZodObject<{
3699
+ id: z.ZodNumber;
3700
+ name: z.ZodString;
3701
+ image: z.ZodString;
3702
+ key: z.ZodString;
3703
+ uniqueKey: z.ZodString;
3704
+ isActive: z.ZodBoolean;
3705
+ type: z.ZodString;
3706
+ maxAmount: z.ZodNumber;
3707
+ minAmount: z.ZodNumber;
3708
+ comission: z.ZodNumber;
3709
+ secretComission: z.ZodOptional<z.ZodNumber>;
3710
+ serviceComission: z.ZodNumber;
3711
+ cryptoToken: z.ZodNullable<z.ZodString>;
3712
+ cryptoNetwork: z.ZodNullable<z.ZodString>;
3713
+ updatedAt: z.ZodDate;
3714
+ createdAt: z.ZodDate;
3715
+ }, "strip", z.ZodTypeAny, {
3716
+ type: string;
3717
+ id: number;
3718
+ createdAt: Date;
3719
+ updatedAt: Date;
3720
+ name: string;
3721
+ image: string;
3722
+ key: string;
3723
+ uniqueKey: string;
3724
+ isActive: boolean;
3725
+ maxAmount: number;
3726
+ minAmount: number;
3727
+ comission: number;
3728
+ serviceComission: number;
3729
+ cryptoToken: string | null;
3730
+ cryptoNetwork: string | null;
3731
+ secretComission?: number | undefined;
3732
+ }, {
3733
+ type: string;
3734
+ id: number;
3735
+ createdAt: Date;
3736
+ updatedAt: Date;
3737
+ name: string;
3738
+ image: string;
3739
+ key: string;
3740
+ uniqueKey: string;
3741
+ isActive: boolean;
3742
+ maxAmount: number;
3743
+ minAmount: number;
3744
+ comission: number;
3745
+ serviceComission: number;
3746
+ cryptoToken: string | null;
3747
+ cryptoNetwork: string | null;
3748
+ secretComission?: number | undefined;
3749
+ }>;
3750
+ };
3751
+ };
3752
+ readonly promoCodes: {
3753
+ create: {
3754
+ method: "POST";
3755
+ path: string;
3756
+ request: z.ZodObject<{
3757
+ value: z.ZodString;
3758
+ discountValue: z.ZodString;
3759
+ expiredAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3760
+ startedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3761
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3762
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3763
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3764
+ activationLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3765
+ activationPerUserLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3766
+ type: z.ZodEnum<["USER", "AD", "SYSTEM"]>;
3767
+ status: z.ZodEnum<["ACTIVE", "INACTIVE", "LIMITED", "EXPIRED", "DELETED"]>;
3768
+ }, "strip", z.ZodTypeAny, {
3769
+ value: string;
3770
+ type: "USER" | "AD" | "SYSTEM";
3771
+ status: "ACTIVE" | "INACTIVE" | "LIMITED" | "EXPIRED" | "DELETED";
3772
+ discountValue: string;
3773
+ createdAt?: Date | null | undefined;
3774
+ updatedAt?: Date | null | undefined;
3775
+ expiredAt?: Date | null | undefined;
3776
+ startedAt?: Date | null | undefined;
3777
+ deletedAt?: Date | null | undefined;
3778
+ activationLimit?: number | null | undefined;
3779
+ activationPerUserLimit?: number | null | undefined;
3780
+ }, {
3781
+ value: string;
3782
+ type: "USER" | "AD" | "SYSTEM";
3783
+ status: "ACTIVE" | "INACTIVE" | "LIMITED" | "EXPIRED" | "DELETED";
3784
+ discountValue: string;
3785
+ createdAt?: Date | null | undefined;
3786
+ updatedAt?: Date | null | undefined;
3787
+ expiredAt?: Date | null | undefined;
3788
+ startedAt?: Date | null | undefined;
3789
+ deletedAt?: Date | null | undefined;
3790
+ activationLimit?: number | null | undefined;
3791
+ activationPerUserLimit?: number | null | undefined;
3792
+ }>;
3793
+ response: z.ZodObject<{
3794
+ id: z.ZodNumber;
3795
+ value: z.ZodString;
3796
+ activated: z.ZodNumber;
3797
+ discountValue: z.ZodString;
3798
+ startedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3799
+ expiredAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3800
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3801
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3802
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3803
+ activationLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3804
+ activationPerUserLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3805
+ type: z.ZodEnum<["USER", "AD", "SYSTEM"]>;
3806
+ status: z.ZodEnum<["ACTIVE", "INACTIVE", "LIMITED", "EXPIRED", "DELETED"]>;
3807
+ }, "strip", z.ZodTypeAny, {
3808
+ value: string;
3809
+ type: "USER" | "AD" | "SYSTEM";
3810
+ status: "ACTIVE" | "INACTIVE" | "LIMITED" | "EXPIRED" | "DELETED";
3811
+ id: number;
3812
+ discountValue: string;
3813
+ activated: number;
3814
+ createdAt?: Date | null | undefined;
3815
+ updatedAt?: Date | null | undefined;
3816
+ expiredAt?: Date | null | undefined;
3817
+ startedAt?: Date | null | undefined;
3818
+ deletedAt?: Date | null | undefined;
3819
+ activationLimit?: number | null | undefined;
3820
+ activationPerUserLimit?: number | null | undefined;
3821
+ }, {
3822
+ value: string;
3823
+ type: "USER" | "AD" | "SYSTEM";
3824
+ status: "ACTIVE" | "INACTIVE" | "LIMITED" | "EXPIRED" | "DELETED";
3825
+ id: number;
3826
+ discountValue: string;
3827
+ activated: number;
3828
+ createdAt?: Date | null | undefined;
3829
+ updatedAt?: Date | null | undefined;
3830
+ expiredAt?: Date | null | undefined;
3831
+ startedAt?: Date | null | undefined;
3832
+ deletedAt?: Date | null | undefined;
3833
+ activationLimit?: number | null | undefined;
3834
+ activationPerUserLimit?: number | null | undefined;
3835
+ }>;
3836
+ };
3837
+ list: {
3838
+ method: "GET";
3839
+ path: string;
3840
+ request: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
3841
+ response: z.ZodArray<z.ZodObject<{
3842
+ id: z.ZodNumber;
3843
+ value: z.ZodString;
3844
+ activated: z.ZodNumber;
3845
+ discountValue: z.ZodString;
3846
+ startedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3847
+ expiredAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3848
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3849
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3850
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3851
+ activationLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3852
+ activationPerUserLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3853
+ type: z.ZodEnum<["USER", "AD", "SYSTEM"]>;
3854
+ status: z.ZodEnum<["ACTIVE", "INACTIVE", "LIMITED", "EXPIRED", "DELETED"]>;
3855
+ }, "strip", z.ZodTypeAny, {
3856
+ value: string;
3857
+ type: "USER" | "AD" | "SYSTEM";
3858
+ status: "ACTIVE" | "INACTIVE" | "LIMITED" | "EXPIRED" | "DELETED";
3859
+ id: number;
3860
+ discountValue: string;
3861
+ activated: number;
3862
+ createdAt?: Date | null | undefined;
3863
+ updatedAt?: Date | null | undefined;
3864
+ expiredAt?: Date | null | undefined;
3865
+ startedAt?: Date | null | undefined;
3866
+ deletedAt?: Date | null | undefined;
3867
+ activationLimit?: number | null | undefined;
3868
+ activationPerUserLimit?: number | null | undefined;
3869
+ }, {
3870
+ value: string;
3871
+ type: "USER" | "AD" | "SYSTEM";
3872
+ status: "ACTIVE" | "INACTIVE" | "LIMITED" | "EXPIRED" | "DELETED";
3873
+ id: number;
3874
+ discountValue: string;
3875
+ activated: number;
3876
+ createdAt?: Date | null | undefined;
3877
+ updatedAt?: Date | null | undefined;
3878
+ expiredAt?: Date | null | undefined;
3879
+ startedAt?: Date | null | undefined;
3880
+ deletedAt?: Date | null | undefined;
3881
+ activationLimit?: number | null | undefined;
3882
+ activationPerUserLimit?: number | null | undefined;
3883
+ }>, "many">;
3884
+ };
3885
+ getById: {
3886
+ method: "GET";
3887
+ path: string;
3888
+ request: z.ZodObject<{
3889
+ id: z.ZodNumber;
3890
+ }, "strip", z.ZodTypeAny, {
3891
+ id: number;
3892
+ }, {
3893
+ id: number;
3894
+ }>;
3895
+ response: z.ZodObject<{
3896
+ id: z.ZodNumber;
3897
+ value: z.ZodString;
3898
+ activated: z.ZodNumber;
3899
+ discountValue: z.ZodString;
3900
+ startedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3901
+ expiredAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3902
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3903
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3904
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3905
+ activationLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3906
+ activationPerUserLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3907
+ type: z.ZodEnum<["USER", "AD", "SYSTEM"]>;
3908
+ status: z.ZodEnum<["ACTIVE", "INACTIVE", "LIMITED", "EXPIRED", "DELETED"]>;
3909
+ }, "strip", z.ZodTypeAny, {
3910
+ value: string;
3911
+ type: "USER" | "AD" | "SYSTEM";
3912
+ status: "ACTIVE" | "INACTIVE" | "LIMITED" | "EXPIRED" | "DELETED";
3913
+ id: number;
3914
+ discountValue: string;
3915
+ activated: number;
3916
+ createdAt?: Date | null | undefined;
3917
+ updatedAt?: Date | null | undefined;
3918
+ expiredAt?: Date | null | undefined;
3919
+ startedAt?: Date | null | undefined;
3920
+ deletedAt?: Date | null | undefined;
3921
+ activationLimit?: number | null | undefined;
3922
+ activationPerUserLimit?: number | null | undefined;
3923
+ }, {
3924
+ value: string;
3925
+ type: "USER" | "AD" | "SYSTEM";
3926
+ status: "ACTIVE" | "INACTIVE" | "LIMITED" | "EXPIRED" | "DELETED";
3927
+ id: number;
3928
+ discountValue: string;
3929
+ activated: number;
3930
+ createdAt?: Date | null | undefined;
3931
+ updatedAt?: Date | null | undefined;
3932
+ expiredAt?: Date | null | undefined;
3933
+ startedAt?: Date | null | undefined;
3934
+ deletedAt?: Date | null | undefined;
3935
+ activationLimit?: number | null | undefined;
3936
+ activationPerUserLimit?: number | null | undefined;
3937
+ }>;
3938
+ };
3939
+ getByValue: {
3940
+ method: "GET";
3941
+ path: string;
3942
+ request: z.ZodObject<{
3943
+ value: z.ZodString;
3944
+ }, "strip", z.ZodTypeAny, {
3945
+ value: string;
3946
+ }, {
3947
+ value: string;
3948
+ }>;
3949
+ response: z.ZodObject<{
3950
+ id: z.ZodNumber;
3951
+ value: z.ZodString;
3952
+ activated: z.ZodNumber;
3953
+ discountValue: z.ZodString;
3954
+ startedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3955
+ expiredAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3956
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3957
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3958
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3959
+ activationLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3960
+ activationPerUserLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3961
+ type: z.ZodEnum<["USER", "AD", "SYSTEM"]>;
3962
+ status: z.ZodEnum<["ACTIVE", "INACTIVE", "LIMITED", "EXPIRED", "DELETED"]>;
3963
+ }, "strip", z.ZodTypeAny, {
3964
+ value: string;
3965
+ type: "USER" | "AD" | "SYSTEM";
3966
+ status: "ACTIVE" | "INACTIVE" | "LIMITED" | "EXPIRED" | "DELETED";
3967
+ id: number;
3968
+ discountValue: string;
3969
+ activated: number;
3970
+ createdAt?: Date | null | undefined;
3971
+ updatedAt?: Date | null | undefined;
3972
+ expiredAt?: Date | null | undefined;
3973
+ startedAt?: Date | null | undefined;
3974
+ deletedAt?: Date | null | undefined;
3975
+ activationLimit?: number | null | undefined;
3976
+ activationPerUserLimit?: number | null | undefined;
3977
+ }, {
3978
+ value: string;
3979
+ type: "USER" | "AD" | "SYSTEM";
3980
+ status: "ACTIVE" | "INACTIVE" | "LIMITED" | "EXPIRED" | "DELETED";
3981
+ id: number;
3982
+ discountValue: string;
3983
+ activated: number;
3984
+ createdAt?: Date | null | undefined;
3985
+ updatedAt?: Date | null | undefined;
3986
+ expiredAt?: Date | null | undefined;
3987
+ startedAt?: Date | null | undefined;
3988
+ deletedAt?: Date | null | undefined;
3989
+ activationLimit?: number | null | undefined;
3990
+ activationPerUserLimit?: number | null | undefined;
3991
+ }>;
3992
+ };
3993
+ update: {
3994
+ method: "PATCH";
3995
+ path: string;
3996
+ request: z.ZodObject<{
3997
+ id: z.ZodNumber;
3998
+ body: z.ZodObject<{
3999
+ value: z.ZodOptional<z.ZodString>;
4000
+ discountValue: z.ZodOptional<z.ZodString>;
4001
+ startedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
4002
+ expiredAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
4003
+ activationLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4004
+ activationPerUserLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4005
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
4006
+ type: z.ZodOptional<z.ZodEnum<["USER", "AD", "SYSTEM"]>>;
4007
+ status: z.ZodOptional<z.ZodEnum<["ACTIVE", "INACTIVE", "LIMITED", "EXPIRED", "DELETED"]>>;
4008
+ }, "strip", z.ZodTypeAny, {
4009
+ value?: string | undefined;
4010
+ type?: "USER" | "AD" | "SYSTEM" | undefined;
4011
+ status?: "ACTIVE" | "INACTIVE" | "LIMITED" | "EXPIRED" | "DELETED" | undefined;
4012
+ discountValue?: string | undefined;
4013
+ expiredAt?: Date | null | undefined;
4014
+ startedAt?: Date | null | undefined;
4015
+ deletedAt?: Date | null | undefined;
4016
+ activationLimit?: number | null | undefined;
4017
+ activationPerUserLimit?: number | null | undefined;
4018
+ }, {
4019
+ value?: string | undefined;
4020
+ type?: "USER" | "AD" | "SYSTEM" | undefined;
4021
+ status?: "ACTIVE" | "INACTIVE" | "LIMITED" | "EXPIRED" | "DELETED" | undefined;
4022
+ discountValue?: string | undefined;
4023
+ expiredAt?: Date | null | undefined;
4024
+ startedAt?: Date | null | undefined;
4025
+ deletedAt?: Date | null | undefined;
4026
+ activationLimit?: number | null | undefined;
4027
+ activationPerUserLimit?: number | null | undefined;
4028
+ }>;
4029
+ }, "strip", z.ZodTypeAny, {
4030
+ id: number;
4031
+ body: {
4032
+ value?: string | undefined;
4033
+ type?: "USER" | "AD" | "SYSTEM" | undefined;
4034
+ status?: "ACTIVE" | "INACTIVE" | "LIMITED" | "EXPIRED" | "DELETED" | undefined;
4035
+ discountValue?: string | undefined;
4036
+ expiredAt?: Date | null | undefined;
4037
+ startedAt?: Date | null | undefined;
4038
+ deletedAt?: Date | null | undefined;
4039
+ activationLimit?: number | null | undefined;
4040
+ activationPerUserLimit?: number | null | undefined;
4041
+ };
4042
+ }, {
4043
+ id: number;
4044
+ body: {
4045
+ value?: string | undefined;
4046
+ type?: "USER" | "AD" | "SYSTEM" | undefined;
4047
+ status?: "ACTIVE" | "INACTIVE" | "LIMITED" | "EXPIRED" | "DELETED" | undefined;
4048
+ discountValue?: string | undefined;
4049
+ expiredAt?: Date | null | undefined;
4050
+ startedAt?: Date | null | undefined;
4051
+ deletedAt?: Date | null | undefined;
4052
+ activationLimit?: number | null | undefined;
4053
+ activationPerUserLimit?: number | null | undefined;
4054
+ };
4055
+ }>;
4056
+ response: z.ZodObject<{
4057
+ id: z.ZodNumber;
4058
+ value: z.ZodString;
4059
+ activated: z.ZodNumber;
4060
+ discountValue: z.ZodString;
4061
+ startedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
4062
+ expiredAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
4063
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
4064
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
4065
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
4066
+ activationLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4067
+ activationPerUserLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4068
+ type: z.ZodEnum<["USER", "AD", "SYSTEM"]>;
4069
+ status: z.ZodEnum<["ACTIVE", "INACTIVE", "LIMITED", "EXPIRED", "DELETED"]>;
4070
+ }, "strip", z.ZodTypeAny, {
4071
+ value: string;
4072
+ type: "USER" | "AD" | "SYSTEM";
4073
+ status: "ACTIVE" | "INACTIVE" | "LIMITED" | "EXPIRED" | "DELETED";
4074
+ id: number;
4075
+ discountValue: string;
4076
+ activated: number;
4077
+ createdAt?: Date | null | undefined;
4078
+ updatedAt?: Date | null | undefined;
4079
+ expiredAt?: Date | null | undefined;
4080
+ startedAt?: Date | null | undefined;
4081
+ deletedAt?: Date | null | undefined;
4082
+ activationLimit?: number | null | undefined;
4083
+ activationPerUserLimit?: number | null | undefined;
4084
+ }, {
4085
+ value: string;
4086
+ type: "USER" | "AD" | "SYSTEM";
4087
+ status: "ACTIVE" | "INACTIVE" | "LIMITED" | "EXPIRED" | "DELETED";
4088
+ id: number;
4089
+ discountValue: string;
4090
+ activated: number;
4091
+ createdAt?: Date | null | undefined;
4092
+ updatedAt?: Date | null | undefined;
4093
+ expiredAt?: Date | null | undefined;
4094
+ startedAt?: Date | null | undefined;
4095
+ deletedAt?: Date | null | undefined;
4096
+ activationLimit?: number | null | undefined;
4097
+ activationPerUserLimit?: number | null | undefined;
4098
+ }>;
4099
+ };
4100
+ };
4101
+ readonly promoCodeActivations: {
4102
+ create: {
4103
+ method: "POST";
4104
+ path: string;
4105
+ request: z.ZodObject<{
4106
+ promocodeId: z.ZodNumber;
4107
+ refferalId: z.ZodNumber;
4108
+ discountValue: z.ZodNumber;
4109
+ activatedAt: z.ZodDate;
4110
+ }, "strip", z.ZodTypeAny, {
4111
+ promocodeId: number;
4112
+ discountValue: number;
4113
+ refferalId: number;
4114
+ activatedAt: Date;
4115
+ }, {
4116
+ promocodeId: number;
4117
+ discountValue: number;
4118
+ refferalId: number;
4119
+ activatedAt: Date;
4120
+ }>;
4121
+ response: z.ZodObject<{
4122
+ id: z.ZodNumber;
4123
+ promocodeId: z.ZodNumber;
4124
+ refferalId: z.ZodNumber;
4125
+ discountValue: z.ZodString;
4126
+ activatedAt: z.ZodDate;
4127
+ }, "strip", z.ZodTypeAny, {
4128
+ id: number;
4129
+ promocodeId: number;
4130
+ discountValue: string;
4131
+ refferalId: number;
4132
+ activatedAt: Date;
4133
+ }, {
4134
+ id: number;
4135
+ promocodeId: number;
4136
+ discountValue: string;
4137
+ refferalId: number;
4138
+ activatedAt: Date;
4139
+ }>;
4140
+ };
4141
+ list: {
4142
+ method: "GET";
4143
+ path: string;
4144
+ request: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
4145
+ response: z.ZodArray<z.ZodObject<{
4146
+ id: z.ZodNumber;
4147
+ promocodeId: z.ZodNumber;
4148
+ refferalId: z.ZodNumber;
4149
+ discountValue: z.ZodString;
4150
+ activatedAt: z.ZodDate;
4151
+ }, "strip", z.ZodTypeAny, {
4152
+ id: number;
4153
+ promocodeId: number;
4154
+ discountValue: string;
4155
+ refferalId: number;
4156
+ activatedAt: Date;
4157
+ }, {
4158
+ id: number;
4159
+ promocodeId: number;
4160
+ discountValue: string;
4161
+ refferalId: number;
4162
+ activatedAt: Date;
4163
+ }>, "many">;
4164
+ };
4165
+ getById: {
4166
+ method: "GET";
4167
+ path: string;
4168
+ request: z.ZodObject<{
4169
+ id: z.ZodNumber;
4170
+ }, "strip", z.ZodTypeAny, {
4171
+ id: number;
4172
+ }, {
4173
+ id: number;
4174
+ }>;
4175
+ response: z.ZodObject<{
4176
+ id: z.ZodNumber;
4177
+ promocodeId: z.ZodNumber;
4178
+ refferalId: z.ZodNumber;
4179
+ discountValue: z.ZodString;
4180
+ activatedAt: z.ZodDate;
4181
+ }, "strip", z.ZodTypeAny, {
4182
+ id: number;
4183
+ promocodeId: number;
4184
+ discountValue: string;
4185
+ refferalId: number;
4186
+ activatedAt: Date;
4187
+ }, {
4188
+ id: number;
4189
+ promocodeId: number;
4190
+ discountValue: string;
4191
+ refferalId: number;
4192
+ activatedAt: Date;
4193
+ }>;
4194
+ };
4195
+ update: {
4196
+ method: "PATCH";
4197
+ path: string;
4198
+ request: z.ZodObject<{
4199
+ id: z.ZodNumber;
4200
+ body: z.ZodObject<{
4201
+ promocodeId: z.ZodOptional<z.ZodNumber>;
4202
+ refferalId: z.ZodOptional<z.ZodNumber>;
4203
+ discountValue: z.ZodOptional<z.ZodNumber>;
4204
+ activatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
4205
+ }, "strip", z.ZodTypeAny, {
4206
+ promocodeId?: number | undefined;
4207
+ discountValue?: number | undefined;
4208
+ refferalId?: number | undefined;
4209
+ activatedAt?: Date | null | undefined;
4210
+ }, {
4211
+ promocodeId?: number | undefined;
4212
+ discountValue?: number | undefined;
4213
+ refferalId?: number | undefined;
4214
+ activatedAt?: Date | null | undefined;
4215
+ }>;
4216
+ }, "strip", z.ZodTypeAny, {
4217
+ id: number;
4218
+ body: {
4219
+ promocodeId?: number | undefined;
4220
+ discountValue?: number | undefined;
4221
+ refferalId?: number | undefined;
4222
+ activatedAt?: Date | null | undefined;
4223
+ };
4224
+ }, {
4225
+ id: number;
4226
+ body: {
4227
+ promocodeId?: number | undefined;
4228
+ discountValue?: number | undefined;
4229
+ refferalId?: number | undefined;
4230
+ activatedAt?: Date | null | undefined;
4231
+ };
4232
+ }>;
4233
+ response: z.ZodObject<{
4234
+ id: z.ZodNumber;
4235
+ promocodeId: z.ZodNumber;
4236
+ refferalId: z.ZodNumber;
4237
+ discountValue: z.ZodString;
4238
+ activatedAt: z.ZodDate;
4239
+ }, "strip", z.ZodTypeAny, {
4240
+ id: number;
4241
+ promocodeId: number;
4242
+ discountValue: string;
4243
+ refferalId: number;
4244
+ activatedAt: Date;
4245
+ }, {
4246
+ id: number;
4247
+ promocodeId: number;
4248
+ discountValue: string;
4249
+ refferalId: number;
4250
+ activatedAt: Date;
4251
+ }>;
4252
+ };
4253
+ };
4254
+ readonly refreshSessions: {
4255
+ create: {
4256
+ method: "POST";
4257
+ path: string;
4258
+ request: z.ZodObject<{
4259
+ userId: z.ZodNumber;
4260
+ refreshToken: z.ZodString;
4261
+ expiredAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
4262
+ status: z.ZodEnum<["ACTIVE", "EXPIRED", "BLOCKED", "TERMINATED"]>;
4263
+ IP: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4264
+ UA: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4265
+ }, "strip", z.ZodTypeAny, {
4266
+ status: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED";
4267
+ userId: number;
4268
+ refreshToken: string;
4269
+ expiredAt?: Date | null | undefined;
4270
+ IP?: string | null | undefined;
4271
+ UA?: string | null | undefined;
4272
+ }, {
4273
+ status: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED";
4274
+ userId: number;
4275
+ refreshToken: string;
4276
+ expiredAt?: Date | null | undefined;
4277
+ IP?: string | null | undefined;
4278
+ UA?: string | null | undefined;
4279
+ }>;
4280
+ response: z.ZodObject<{
4281
+ id: z.ZodNumber;
4282
+ userId: z.ZodNumber;
4283
+ refreshToken: z.ZodString;
4284
+ expiredAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
4285
+ status: z.ZodEnum<["ACTIVE", "EXPIRED", "BLOCKED", "TERMINATED"]>;
4286
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
4287
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
4288
+ }, "strip", z.ZodTypeAny, {
4289
+ status: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED";
4290
+ id: number;
4291
+ userId: number;
4292
+ refreshToken: string;
4293
+ createdAt?: Date | null | undefined;
4294
+ updatedAt?: Date | null | undefined;
4295
+ expiredAt?: Date | null | undefined;
4296
+ }, {
4297
+ status: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED";
4298
+ id: number;
4299
+ userId: number;
4300
+ refreshToken: string;
4301
+ createdAt?: Date | null | undefined;
4302
+ updatedAt?: Date | null | undefined;
4303
+ expiredAt?: Date | null | undefined;
4304
+ }>;
4305
+ };
4306
+ list: {
4307
+ method: "GET";
4308
+ path: string;
4309
+ request: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
4310
+ response: z.ZodArray<z.ZodObject<{
4311
+ id: z.ZodNumber;
4312
+ userId: z.ZodNumber;
4313
+ refreshToken: z.ZodString;
4314
+ expiredAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
4315
+ status: z.ZodEnum<["ACTIVE", "EXPIRED", "BLOCKED", "TERMINATED"]>;
4316
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
4317
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
4318
+ }, "strip", z.ZodTypeAny, {
4319
+ status: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED";
4320
+ id: number;
4321
+ userId: number;
4322
+ refreshToken: string;
4323
+ createdAt?: Date | null | undefined;
4324
+ updatedAt?: Date | null | undefined;
4325
+ expiredAt?: Date | null | undefined;
4326
+ }, {
4327
+ status: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED";
4328
+ id: number;
4329
+ userId: number;
4330
+ refreshToken: string;
4331
+ createdAt?: Date | null | undefined;
4332
+ updatedAt?: Date | null | undefined;
4333
+ expiredAt?: Date | null | undefined;
4334
+ }>, "many">;
4335
+ };
4336
+ getById: {
4337
+ method: "GET";
4338
+ path: string;
4339
+ request: z.ZodObject<{
4340
+ id: z.ZodNumber;
4341
+ }, "strip", z.ZodTypeAny, {
4342
+ id: number;
4343
+ }, {
4344
+ id: number;
4345
+ }>;
4346
+ response: z.ZodObject<{
4347
+ id: z.ZodNumber;
4348
+ userId: z.ZodNumber;
4349
+ refreshToken: z.ZodString;
4350
+ expiredAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
4351
+ status: z.ZodEnum<["ACTIVE", "EXPIRED", "BLOCKED", "TERMINATED"]>;
4352
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
4353
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
4354
+ }, "strip", z.ZodTypeAny, {
4355
+ status: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED";
4356
+ id: number;
4357
+ userId: number;
4358
+ refreshToken: string;
4359
+ createdAt?: Date | null | undefined;
4360
+ updatedAt?: Date | null | undefined;
4361
+ expiredAt?: Date | null | undefined;
4362
+ }, {
4363
+ status: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED";
4364
+ id: number;
4365
+ userId: number;
4366
+ refreshToken: string;
4367
+ createdAt?: Date | null | undefined;
4368
+ updatedAt?: Date | null | undefined;
4369
+ expiredAt?: Date | null | undefined;
4370
+ }>;
4371
+ };
4372
+ update: {
4373
+ method: "PATCH";
4374
+ path: string;
4375
+ request: z.ZodObject<{
4376
+ id: z.ZodNumber;
4377
+ body: z.ZodObject<{
4378
+ userId: z.ZodOptional<z.ZodNumber>;
4379
+ refreshToken: z.ZodOptional<z.ZodString>;
4380
+ expiredAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
4381
+ status: z.ZodOptional<z.ZodEnum<["ACTIVE", "EXPIRED", "BLOCKED", "TERMINATED"]>>;
4382
+ IP: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4383
+ UA: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4384
+ }, "strip", z.ZodTypeAny, {
4385
+ status?: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED" | undefined;
4386
+ userId?: number | undefined;
4387
+ expiredAt?: Date | null | undefined;
4388
+ refreshToken?: string | undefined;
4389
+ IP?: string | null | undefined;
4390
+ UA?: string | null | undefined;
4391
+ }, {
4392
+ status?: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED" | undefined;
4393
+ userId?: number | undefined;
4394
+ expiredAt?: Date | null | undefined;
4395
+ refreshToken?: string | undefined;
4396
+ IP?: string | null | undefined;
4397
+ UA?: string | null | undefined;
4398
+ }>;
4399
+ }, "strip", z.ZodTypeAny, {
4400
+ id: number;
4401
+ body: {
4402
+ status?: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED" | undefined;
4403
+ userId?: number | undefined;
4404
+ expiredAt?: Date | null | undefined;
4405
+ refreshToken?: string | undefined;
4406
+ IP?: string | null | undefined;
4407
+ UA?: string | null | undefined;
4408
+ };
4409
+ }, {
4410
+ id: number;
4411
+ body: {
4412
+ status?: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED" | undefined;
4413
+ userId?: number | undefined;
4414
+ expiredAt?: Date | null | undefined;
4415
+ refreshToken?: string | undefined;
4416
+ IP?: string | null | undefined;
4417
+ UA?: string | null | undefined;
4418
+ };
4419
+ }>;
4420
+ response: z.ZodObject<{
4421
+ id: z.ZodNumber;
4422
+ userId: z.ZodNumber;
4423
+ refreshToken: z.ZodString;
4424
+ expiredAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
4425
+ status: z.ZodEnum<["ACTIVE", "EXPIRED", "BLOCKED", "TERMINATED"]>;
4426
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
4427
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
4428
+ }, "strip", z.ZodTypeAny, {
4429
+ status: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED";
4430
+ id: number;
4431
+ userId: number;
4432
+ refreshToken: string;
4433
+ createdAt?: Date | null | undefined;
4434
+ updatedAt?: Date | null | undefined;
4435
+ expiredAt?: Date | null | undefined;
4436
+ }, {
4437
+ status: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED";
4438
+ id: number;
4439
+ userId: number;
4440
+ refreshToken: string;
4441
+ createdAt?: Date | null | undefined;
4442
+ updatedAt?: Date | null | undefined;
4443
+ expiredAt?: Date | null | undefined;
4444
+ }>;
4445
+ };
4446
+ revoke: {
4447
+ method: "DELETE";
4448
+ path: string;
4449
+ request: z.ZodObject<{
4450
+ id: z.ZodNumber;
4451
+ }, "strip", z.ZodTypeAny, {
4452
+ id: number;
4453
+ }, {
4454
+ id: number;
4455
+ }>;
4456
+ response: z.ZodObject<{
4457
+ success: z.ZodBoolean;
4458
+ }, "strip", z.ZodTypeAny, {
4459
+ success: boolean;
4460
+ }, {
4461
+ success: boolean;
4462
+ }>;
4463
+ };
4464
+ };
4465
+ readonly settings: {
4466
+ getAll: {
4467
+ method: "GET";
4468
+ path: string;
4469
+ request: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
4470
+ response: z.ZodObject<{
4471
+ desslyDiscount: z.ZodString;
4472
+ serviceEnabled: z.ZodBoolean;
4473
+ worksEnabled: z.ZodBoolean;
4474
+ paymentsEnabled: z.ZodBoolean;
4475
+ }, "strip", z.ZodTypeAny, {
4476
+ desslyDiscount: string;
4477
+ serviceEnabled: boolean;
4478
+ worksEnabled: boolean;
4479
+ paymentsEnabled: boolean;
4480
+ }, {
4481
+ desslyDiscount: string;
4482
+ serviceEnabled: boolean;
4483
+ worksEnabled: boolean;
4484
+ paymentsEnabled: boolean;
4485
+ }>;
4486
+ };
4487
+ getOne: {
4488
+ method: "GET";
4489
+ path: string;
4490
+ request: z.ZodObject<{
4491
+ key: z.ZodString;
4492
+ }, "strip", z.ZodTypeAny, {
4493
+ key: string;
4494
+ }, {
4495
+ key: string;
4496
+ }>;
4497
+ response: z.ZodObject<{
4498
+ key: z.ZodString;
4499
+ value: z.ZodUnion<[z.ZodString, z.ZodBoolean]>;
4500
+ }, "strip", z.ZodTypeAny, {
4501
+ value: string | boolean;
4502
+ key: string;
4503
+ }, {
4504
+ value: string | boolean;
4505
+ key: string;
4506
+ }>;
4507
+ };
4508
+ updateAll: {
4509
+ method: "PUT";
4510
+ path: string;
4511
+ request: z.ZodObject<{
4512
+ desslyDiscount: z.ZodOptional<z.ZodString>;
4513
+ serviceEnabled: z.ZodOptional<z.ZodBoolean>;
4514
+ worksEnabled: z.ZodOptional<z.ZodBoolean>;
4515
+ paymentsEnabled: z.ZodOptional<z.ZodBoolean>;
4516
+ }, "strip", z.ZodTypeAny, {
4517
+ desslyDiscount?: string | undefined;
4518
+ serviceEnabled?: boolean | undefined;
4519
+ worksEnabled?: boolean | undefined;
4520
+ paymentsEnabled?: boolean | undefined;
4521
+ }, {
4522
+ desslyDiscount?: string | undefined;
4523
+ serviceEnabled?: boolean | undefined;
4524
+ worksEnabled?: boolean | undefined;
4525
+ paymentsEnabled?: boolean | undefined;
4526
+ }>;
4527
+ response: z.ZodObject<{
4528
+ desslyDiscount: z.ZodString;
4529
+ serviceEnabled: z.ZodBoolean;
4530
+ worksEnabled: z.ZodBoolean;
4531
+ paymentsEnabled: z.ZodBoolean;
4532
+ }, "strip", z.ZodTypeAny, {
4533
+ desslyDiscount: string;
4534
+ serviceEnabled: boolean;
4535
+ worksEnabled: boolean;
4536
+ paymentsEnabled: boolean;
4537
+ }, {
4538
+ desslyDiscount: string;
4539
+ serviceEnabled: boolean;
4540
+ worksEnabled: boolean;
4541
+ paymentsEnabled: boolean;
4542
+ }>;
4543
+ };
4544
+ updateOne: {
4545
+ method: "PUT";
4546
+ path: string;
4547
+ request: z.ZodObject<{
4548
+ key: z.ZodString;
4549
+ value: z.ZodUnion<[z.ZodString, z.ZodBoolean]>;
4550
+ }, "strip", z.ZodTypeAny, {
4551
+ value: string | boolean;
4552
+ key: string;
4553
+ }, {
4554
+ value: string | boolean;
4555
+ key: string;
4556
+ }>;
4557
+ response: z.ZodObject<{
4558
+ key: z.ZodString;
4559
+ value: z.ZodUnion<[z.ZodString, z.ZodBoolean]>;
4560
+ }, "strip", z.ZodTypeAny, {
4561
+ value: string | boolean;
4562
+ key: string;
4563
+ }, {
4564
+ value: string | boolean;
4565
+ key: string;
4566
+ }>;
4567
+ };
4568
+ };
4569
+ readonly stats: {
4570
+ list: {
4571
+ method: "GET";
4572
+ path: string;
4573
+ request: z.ZodEffects<z.ZodEffects<z.ZodObject<{
4574
+ period: z.ZodDefault<z.ZodEnum<["day", "week", "month", "year", "custom"]>>;
4575
+ start: z.ZodOptional<z.ZodString>;
4576
+ end: z.ZodOptional<z.ZodString>;
4577
+ }, "strip", z.ZodTypeAny, {
4578
+ period: "day" | "week" | "month" | "year" | "custom";
4579
+ start?: string | undefined;
4580
+ end?: string | undefined;
4581
+ }, {
4582
+ period?: "day" | "week" | "month" | "year" | "custom" | undefined;
4583
+ start?: string | undefined;
4584
+ end?: string | undefined;
4585
+ }>, {
4586
+ period: "day" | "week" | "month" | "year" | "custom";
4587
+ start?: string | undefined;
4588
+ end?: string | undefined;
4589
+ }, {
4590
+ period?: "day" | "week" | "month" | "year" | "custom" | undefined;
4591
+ start?: string | undefined;
4592
+ end?: string | undefined;
4593
+ }>, {
4594
+ period: "day" | "week" | "month" | "year" | "custom";
4595
+ start?: string | undefined;
4596
+ end?: string | undefined;
4597
+ }, {
4598
+ period?: "day" | "week" | "month" | "year" | "custom" | undefined;
4599
+ start?: string | undefined;
4600
+ end?: string | undefined;
4601
+ }>;
4602
+ response: z.ZodObject<{
4603
+ usersCount: z.ZodNumber;
4604
+ ordersCount: z.ZodNumber;
4605
+ totalAmount: z.ZodNumber;
4606
+ acquiringCommission: z.ZodNumber;
4607
+ serviceCommission: z.ZodNumber;
4608
+ totalAmountWithCommission: z.ZodNumber;
4609
+ periodStart: z.ZodOptional<z.ZodString>;
4610
+ periodEnd: z.ZodOptional<z.ZodString>;
4611
+ }, "strip", z.ZodTypeAny, {
4612
+ serviceCommission: number;
4613
+ ordersCount: number;
4614
+ usersCount: number;
4615
+ totalAmount: number;
4616
+ acquiringCommission: number;
4617
+ totalAmountWithCommission: number;
4618
+ periodStart?: string | undefined;
4619
+ periodEnd?: string | undefined;
4620
+ }, {
4621
+ serviceCommission: number;
4622
+ ordersCount: number;
4623
+ usersCount: number;
4624
+ totalAmount: number;
4625
+ acquiringCommission: number;
4626
+ totalAmountWithCommission: number;
4627
+ periodStart?: string | undefined;
4628
+ periodEnd?: string | undefined;
4629
+ }>;
4630
+ };
4631
+ };
4632
+ };
4633
+ export type AllEndpoints = typeof AllEndpoints;
4634
+ export type DomainKey = keyof AllEndpoints;
4635
+ export type EndpointKey<D extends DomainKey> = keyof AllEndpoints[D];
4636
+ export type GetEndpoint<D extends DomainKey, K extends EndpointKey<D>> = AllEndpoints[D][K];
4637
+ export type GetEndpointRequest<D extends DomainKey, K extends EndpointKey<D>> = GetEndpoint<D, K> extends {
4638
+ request: z.ZodTypeAny;
4639
+ } ? z.infer<GetEndpoint<D, K>['request']> : void;
4640
+ export type GetEndpointResponse<D extends DomainKey, K extends EndpointKey<D>> = GetEndpoint<D, K> extends {
4641
+ response: z.ZodTypeAny;
4642
+ } ? z.infer<GetEndpoint<D, K>['response']> : void;
4643
+ //# sourceMappingURL=endpoints.d.ts.map