@gigapay-dev/contracts 2.0.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (391) hide show
  1. package/build/domains/admin/index.d.ts +150 -0
  2. package/build/domains/admin/index.d.ts.map +1 -0
  3. package/build/domains/admin/index.js +72 -0
  4. package/build/domains/admin/index.js.map +1 -0
  5. package/build/domains/auth/commands.d.ts +294 -0
  6. package/build/domains/auth/commands.d.ts.map +1 -0
  7. package/build/domains/auth/commands.js +116 -0
  8. package/build/domains/auth/commands.js.map +1 -0
  9. package/build/domains/auth/dtos.d.ts +37 -0
  10. package/build/domains/auth/dtos.d.ts.map +1 -0
  11. package/build/domains/auth/dtos.js +26 -0
  12. package/build/domains/auth/dtos.js.map +1 -0
  13. package/build/domains/auth/events.d.ts +35 -0
  14. package/build/domains/auth/events.d.ts.map +1 -0
  15. package/build/domains/auth/events.js +24 -0
  16. package/build/domains/auth/events.js.map +1 -0
  17. package/build/domains/auth/index.d.ts +165 -0
  18. package/build/domains/auth/index.d.ts.map +1 -0
  19. package/build/{commands/products → domains/auth}/index.js +11 -6
  20. package/build/domains/auth/index.js.map +1 -0
  21. package/build/domains/auth/queries.d.ts +75 -0
  22. package/build/domains/auth/queries.d.ts.map +1 -0
  23. package/build/domains/auth/queries.js +25 -0
  24. package/build/domains/auth/queries.js.map +1 -0
  25. package/build/domains/catalog/commands.d.ts +255 -0
  26. package/build/domains/catalog/commands.d.ts.map +1 -0
  27. package/build/domains/catalog/commands.js +82 -0
  28. package/build/domains/catalog/commands.js.map +1 -0
  29. package/build/domains/catalog/dtos.d.ts +89 -0
  30. package/build/domains/catalog/dtos.d.ts.map +1 -0
  31. package/build/domains/catalog/dtos.js +43 -0
  32. package/build/domains/catalog/dtos.js.map +1 -0
  33. package/build/domains/catalog/index.d.ts +194 -0
  34. package/build/domains/catalog/index.d.ts.map +1 -0
  35. package/build/{commands/payment-methods → domains/catalog}/index.js +10 -4
  36. package/build/domains/catalog/index.js.map +1 -0
  37. package/build/domains/catalog/queries.d.ts +168 -0
  38. package/build/domains/catalog/queries.d.ts.map +1 -0
  39. package/build/domains/catalog/queries.js +29 -0
  40. package/build/domains/catalog/queries.js.map +1 -0
  41. package/build/domains/config/index.d.ts +40 -0
  42. package/build/domains/config/index.d.ts.map +1 -0
  43. package/build/domains/config/index.js +18 -0
  44. package/build/domains/config/index.js.map +1 -0
  45. package/build/domains/orders/commands.d.ts +262 -0
  46. package/build/domains/orders/commands.d.ts.map +1 -0
  47. package/build/domains/orders/commands.js +47 -0
  48. package/build/domains/orders/commands.js.map +1 -0
  49. package/build/domains/orders/dtos.d.ts +112 -0
  50. package/build/domains/orders/dtos.d.ts.map +1 -0
  51. package/build/domains/orders/dtos.js +44 -0
  52. package/build/domains/orders/dtos.js.map +1 -0
  53. package/build/domains/orders/events.d.ts +21 -0
  54. package/build/domains/orders/events.d.ts.map +1 -0
  55. package/build/domains/orders/events.js +19 -0
  56. package/build/domains/orders/events.js.map +1 -0
  57. package/build/domains/orders/index.d.ts +381 -0
  58. package/build/domains/orders/index.d.ts.map +1 -0
  59. package/build/domains/orders/index.js +28 -0
  60. package/build/domains/orders/index.js.map +1 -0
  61. package/build/domains/orders/queries.d.ts +532 -0
  62. package/build/domains/orders/queries.d.ts.map +1 -0
  63. package/build/domains/orders/queries.js +40 -0
  64. package/build/domains/orders/queries.js.map +1 -0
  65. package/build/domains/payments/index.d.ts +96 -0
  66. package/build/domains/payments/index.d.ts.map +1 -0
  67. package/build/domains/payments/index.js +34 -0
  68. package/build/domains/payments/index.js.map +1 -0
  69. package/build/domains/products/commands.d.ts +302 -0
  70. package/build/domains/products/commands.d.ts.map +1 -0
  71. package/build/domains/products/commands.js +101 -0
  72. package/build/domains/products/commands.js.map +1 -0
  73. package/build/domains/products/dtos.d.ts +122 -0
  74. package/build/domains/products/dtos.d.ts.map +1 -0
  75. package/build/domains/products/dtos.js +54 -0
  76. package/build/domains/products/dtos.js.map +1 -0
  77. package/build/domains/products/index.d.ts +276 -0
  78. package/build/domains/products/index.d.ts.map +1 -0
  79. package/build/{commands/auth → domains/products}/index.js +10 -6
  80. package/build/domains/products/index.js.map +1 -0
  81. package/build/domains/products/queries.d.ts +334 -0
  82. package/build/domains/products/queries.d.ts.map +1 -0
  83. package/build/domains/products/queries.js +41 -0
  84. package/build/domains/products/queries.js.map +1 -0
  85. package/build/domains/promo-codes/index.d.ts +92 -0
  86. package/build/domains/promo-codes/index.d.ts.map +1 -0
  87. package/build/domains/promo-codes/index.js +40 -0
  88. package/build/domains/promo-codes/index.js.map +1 -0
  89. package/build/domains/stats/index.d.ts +274 -0
  90. package/build/domains/stats/index.d.ts.map +1 -0
  91. package/build/domains/stats/index.js +76 -0
  92. package/build/domains/stats/index.js.map +1 -0
  93. package/build/domains/users/dtos.d.ts +9 -0
  94. package/build/domains/users/dtos.d.ts.map +1 -0
  95. package/build/domains/users/dtos.js +11 -0
  96. package/build/domains/users/dtos.js.map +1 -0
  97. package/build/domains/users/index.d.ts +101 -0
  98. package/build/domains/users/index.d.ts.map +1 -0
  99. package/build/domains/users/index.js +52 -0
  100. package/build/domains/users/index.js.map +1 -0
  101. package/build/index.d.ts +1309 -1
  102. package/build/index.d.ts.map +1 -1
  103. package/build/index.js +34 -1
  104. package/build/index.js.map +1 -1
  105. package/build/shared/api-response.d.ts +17 -0
  106. package/build/shared/api-response.d.ts.map +1 -0
  107. package/build/shared/api-response.js +22 -0
  108. package/build/shared/api-response.js.map +1 -0
  109. package/build/shared/common.d.ts +14 -0
  110. package/build/shared/common.d.ts.map +1 -0
  111. package/build/shared/common.js +8 -0
  112. package/build/shared/common.js.map +1 -0
  113. package/build/shared/errors.d.ts +34 -0
  114. package/build/shared/errors.d.ts.map +1 -0
  115. package/build/shared/errors.js +36 -0
  116. package/build/shared/errors.js.map +1 -0
  117. package/build/shared/index.d.ts +7 -0
  118. package/build/shared/index.d.ts.map +1 -0
  119. package/build/{commands/orders → shared}/index.js +6 -6
  120. package/build/shared/index.js.map +1 -0
  121. package/build/shared/money.d.ts +32 -0
  122. package/build/shared/money.d.ts.map +1 -0
  123. package/build/shared/money.js +20 -0
  124. package/build/shared/money.js.map +1 -0
  125. package/build/shared/pagination.d.ts +27 -0
  126. package/build/shared/pagination.d.ts.map +1 -0
  127. package/build/{commands/common.js → shared/pagination.js} +2 -9
  128. package/build/shared/pagination.js.map +1 -0
  129. package/build/shared/types.d.ts +20 -0
  130. package/build/shared/types.d.ts.map +1 -0
  131. package/build/shared/types.js.map +1 -0
  132. package/package.json +43 -48
  133. package/build/client.d.ts +0 -934
  134. package/build/client.d.ts.map +0 -1
  135. package/build/client.js +0 -184
  136. package/build/client.js.map +0 -1
  137. package/build/commands/api-response.d.ts +0 -19
  138. package/build/commands/api-response.d.ts.map +0 -1
  139. package/build/commands/api-response.js +0 -14
  140. package/build/commands/api-response.js.map +0 -1
  141. package/build/commands/auth/confirm.d.ts +0 -12
  142. package/build/commands/auth/confirm.d.ts.map +0 -1
  143. package/build/commands/auth/confirm.js +0 -12
  144. package/build/commands/auth/confirm.js.map +0 -1
  145. package/build/commands/auth/endpoints.d.ts +0 -115
  146. package/build/commands/auth/endpoints.d.ts.map +0 -1
  147. package/build/commands/auth/endpoints.js +0 -51
  148. package/build/commands/auth/endpoints.js.map +0 -1
  149. package/build/commands/auth/index.d.ts +0 -7
  150. package/build/commands/auth/index.d.ts.map +0 -1
  151. package/build/commands/auth/index.js.map +0 -1
  152. package/build/commands/auth/login.d.ts +0 -21
  153. package/build/commands/auth/login.d.ts.map +0 -1
  154. package/build/commands/auth/login.js +0 -12
  155. package/build/commands/auth/login.js.map +0 -1
  156. package/build/commands/auth/profile.d.ts +0 -19
  157. package/build/commands/auth/profile.d.ts.map +0 -1
  158. package/build/commands/auth/profile.js +0 -11
  159. package/build/commands/auth/profile.js.map +0 -1
  160. package/build/commands/auth/register.d.ts +0 -13
  161. package/build/commands/auth/register.d.ts.map +0 -1
  162. package/build/commands/auth/register.js +0 -12
  163. package/build/commands/auth/register.js.map +0 -1
  164. package/build/commands/auth/reset.d.ts +0 -13
  165. package/build/commands/auth/reset.d.ts.map +0 -1
  166. package/build/commands/auth/reset.js +0 -10
  167. package/build/commands/auth/reset.js.map +0 -1
  168. package/build/commands/common.d.ts +0 -65
  169. package/build/commands/common.d.ts.map +0 -1
  170. package/build/commands/common.js.map +0 -1
  171. package/build/commands/consts.d.ts +0 -2
  172. package/build/commands/consts.d.ts.map +0 -1
  173. package/build/commands/consts.js +0 -5
  174. package/build/commands/consts.js.map +0 -1
  175. package/build/commands/endpoints.d.ts +0 -4643
  176. package/build/commands/endpoints.d.ts.map +0 -1
  177. package/build/commands/endpoints.js +0 -26
  178. package/build/commands/endpoints.js.map +0 -1
  179. package/build/commands/index.d.ts +0 -16
  180. package/build/commands/index.d.ts.map +0 -1
  181. package/build/commands/index.js +0 -32
  182. package/build/commands/index.js.map +0 -1
  183. package/build/commands/orders/create.d.ts +0 -100
  184. package/build/commands/orders/create.d.ts.map +0 -1
  185. package/build/commands/orders/create.js +0 -43
  186. package/build/commands/orders/create.js.map +0 -1
  187. package/build/commands/orders/endpoints.d.ts +0 -742
  188. package/build/commands/orders/endpoints.d.ts.map +0 -1
  189. package/build/commands/orders/endpoints.js +0 -48
  190. package/build/commands/orders/endpoints.js.map +0 -1
  191. package/build/commands/orders/enums.d.ts +0 -8
  192. package/build/commands/orders/enums.d.ts.map +0 -1
  193. package/build/commands/orders/enums.js +0 -26
  194. package/build/commands/orders/enums.js.map +0 -1
  195. package/build/commands/orders/index.d.ts +0 -7
  196. package/build/commands/orders/index.d.ts.map +0 -1
  197. package/build/commands/orders/index.js.map +0 -1
  198. package/build/commands/orders/query.d.ts +0 -104
  199. package/build/commands/orders/query.d.ts.map +0 -1
  200. package/build/commands/orders/query.js +0 -46
  201. package/build/commands/orders/query.js.map +0 -1
  202. package/build/commands/orders/read.d.ts +0 -235
  203. package/build/commands/orders/read.d.ts.map +0 -1
  204. package/build/commands/orders/read.js +0 -84
  205. package/build/commands/orders/read.js.map +0 -1
  206. package/build/commands/orders/update.d.ts +0 -24
  207. package/build/commands/orders/update.d.ts.map +0 -1
  208. package/build/commands/orders/update.js +0 -17
  209. package/build/commands/orders/update.js.map +0 -1
  210. package/build/commands/pagination.d.ts +0 -13
  211. package/build/commands/pagination.d.ts.map +0 -1
  212. package/build/commands/pagination.js +0 -9
  213. package/build/commands/pagination.js.map +0 -1
  214. package/build/commands/payment-methods/create.d.ts +0 -46
  215. package/build/commands/payment-methods/create.d.ts.map +0 -1
  216. package/build/commands/payment-methods/create.js +0 -23
  217. package/build/commands/payment-methods/create.js.map +0 -1
  218. package/build/commands/payment-methods/endpoints.d.ts +0 -537
  219. package/build/commands/payment-methods/endpoints.d.ts.map +0 -1
  220. package/build/commands/payment-methods/endpoints.js +0 -64
  221. package/build/commands/payment-methods/endpoints.js.map +0 -1
  222. package/build/commands/payment-methods/index.d.ts +0 -5
  223. package/build/commands/payment-methods/index.d.ts.map +0 -1
  224. package/build/commands/payment-methods/index.js.map +0 -1
  225. package/build/commands/payment-methods/read.d.ts +0 -72
  226. package/build/commands/payment-methods/read.d.ts.map +0 -1
  227. package/build/commands/payment-methods/read.js +0 -29
  228. package/build/commands/payment-methods/read.js.map +0 -1
  229. package/build/commands/payment-methods/update.d.ts +0 -46
  230. package/build/commands/payment-methods/update.d.ts.map +0 -1
  231. package/build/commands/payment-methods/update.js +0 -20
  232. package/build/commands/payment-methods/update.js.map +0 -1
  233. package/build/commands/products/create.d.ts +0 -242
  234. package/build/commands/products/create.d.ts.map +0 -1
  235. package/build/commands/products/create.js +0 -129
  236. package/build/commands/products/create.js.map +0 -1
  237. package/build/commands/products/endpoints.d.ts +0 -1980
  238. package/build/commands/products/endpoints.d.ts.map +0 -1
  239. package/build/commands/products/endpoints.js +0 -100
  240. package/build/commands/products/endpoints.js.map +0 -1
  241. package/build/commands/products/enums.d.ts +0 -20
  242. package/build/commands/products/enums.d.ts.map +0 -1
  243. package/build/commands/products/enums.js +0 -28
  244. package/build/commands/products/enums.js.map +0 -1
  245. package/build/commands/products/index.d.ts +0 -7
  246. package/build/commands/products/index.d.ts.map +0 -1
  247. package/build/commands/products/index.js.map +0 -1
  248. package/build/commands/products/query.d.ts +0 -80
  249. package/build/commands/products/query.d.ts.map +0 -1
  250. package/build/commands/products/query.js +0 -56
  251. package/build/commands/products/query.js.map +0 -1
  252. package/build/commands/products/read.d.ts +0 -1233
  253. package/build/commands/products/read.d.ts.map +0 -1
  254. package/build/commands/products/read.js +0 -242
  255. package/build/commands/products/read.js.map +0 -1
  256. package/build/commands/products/update.d.ts +0 -85
  257. package/build/commands/products/update.d.ts.map +0 -1
  258. package/build/commands/products/update.js +0 -11
  259. package/build/commands/products/update.js.map +0 -1
  260. package/build/commands/promocode-activations/create.d.ts +0 -19
  261. package/build/commands/promocode-activations/create.d.ts.map +0 -1
  262. package/build/commands/promocode-activations/create.js +0 -11
  263. package/build/commands/promocode-activations/create.js.map +0 -1
  264. package/build/commands/promocode-activations/endpoints.d.ts +0 -158
  265. package/build/commands/promocode-activations/endpoints.d.ts.map +0 -1
  266. package/build/commands/promocode-activations/endpoints.js +0 -39
  267. package/build/commands/promocode-activations/endpoints.js.map +0 -1
  268. package/build/commands/promocode-activations/index.d.ts +0 -5
  269. package/build/commands/promocode-activations/index.d.ts.map +0 -1
  270. package/build/commands/promocode-activations/index.js +0 -21
  271. package/build/commands/promocode-activations/index.js.map +0 -1
  272. package/build/commands/promocode-activations/read.d.ts +0 -22
  273. package/build/commands/promocode-activations/read.d.ts.map +0 -1
  274. package/build/commands/promocode-activations/read.js +0 -15
  275. package/build/commands/promocode-activations/read.js.map +0 -1
  276. package/build/commands/promocode-activations/update.d.ts +0 -19
  277. package/build/commands/promocode-activations/update.d.ts.map +0 -1
  278. package/build/commands/promocode-activations/update.js +0 -11
  279. package/build/commands/promocode-activations/update.js.map +0 -1
  280. package/build/commands/promocodes/create.d.ts +0 -40
  281. package/build/commands/promocodes/create.d.ts.map +0 -1
  282. package/build/commands/promocodes/create.js +0 -19
  283. package/build/commands/promocodes/create.js.map +0 -1
  284. package/build/commands/promocodes/endpoints.d.ts +0 -354
  285. package/build/commands/promocodes/endpoints.d.ts.map +0 -1
  286. package/build/commands/promocodes/endpoints.js +0 -47
  287. package/build/commands/promocodes/endpoints.js.map +0 -1
  288. package/build/commands/promocodes/enums.d.ts +0 -6
  289. package/build/commands/promocodes/enums.d.ts.map +0 -1
  290. package/build/commands/promocodes/enums.js +0 -10
  291. package/build/commands/promocodes/enums.js.map +0 -1
  292. package/build/commands/promocodes/index.d.ts +0 -6
  293. package/build/commands/promocodes/index.d.ts.map +0 -1
  294. package/build/commands/promocodes/index.js +0 -22
  295. package/build/commands/promocodes/index.js.map +0 -1
  296. package/build/commands/promocodes/read.d.ts +0 -46
  297. package/build/commands/promocodes/read.d.ts.map +0 -1
  298. package/build/commands/promocodes/read.js +0 -24
  299. package/build/commands/promocodes/read.js.map +0 -1
  300. package/build/commands/promocodes/update.d.ts +0 -34
  301. package/build/commands/promocodes/update.d.ts.map +0 -1
  302. package/build/commands/promocodes/update.js +0 -17
  303. package/build/commands/promocodes/update.js.map +0 -1
  304. package/build/commands/refresh-sessions/create.d.ts +0 -25
  305. package/build/commands/refresh-sessions/create.d.ts.map +0 -1
  306. package/build/commands/refresh-sessions/create.js +0 -14
  307. package/build/commands/refresh-sessions/create.js.map +0 -1
  308. package/build/commands/refresh-sessions/endpoints.d.ts +0 -216
  309. package/build/commands/refresh-sessions/endpoints.d.ts.map +0 -1
  310. package/build/commands/refresh-sessions/endpoints.js +0 -47
  311. package/build/commands/refresh-sessions/endpoints.js.map +0 -1
  312. package/build/commands/refresh-sessions/enums.d.ts +0 -4
  313. package/build/commands/refresh-sessions/enums.d.ts.map +0 -1
  314. package/build/commands/refresh-sessions/enums.js +0 -9
  315. package/build/commands/refresh-sessions/enums.js.map +0 -1
  316. package/build/commands/refresh-sessions/index.d.ts +0 -6
  317. package/build/commands/refresh-sessions/index.d.ts.map +0 -1
  318. package/build/commands/refresh-sessions/index.js +0 -22
  319. package/build/commands/refresh-sessions/index.js.map +0 -1
  320. package/build/commands/refresh-sessions/read.d.ts +0 -28
  321. package/build/commands/refresh-sessions/read.d.ts.map +0 -1
  322. package/build/commands/refresh-sessions/read.js +0 -18
  323. package/build/commands/refresh-sessions/read.js.map +0 -1
  324. package/build/commands/refresh-sessions/update.d.ts +0 -25
  325. package/build/commands/refresh-sessions/update.d.ts.map +0 -1
  326. package/build/commands/refresh-sessions/update.js +0 -17
  327. package/build/commands/refresh-sessions/update.js.map +0 -1
  328. package/build/commands/settings/endpoints.d.ts +0 -109
  329. package/build/commands/settings/endpoints.d.ts.map +0 -1
  330. package/build/commands/settings/endpoints.js +0 -44
  331. package/build/commands/settings/endpoints.js.map +0 -1
  332. package/build/commands/settings/index.d.ts +0 -4
  333. package/build/commands/settings/index.d.ts.map +0 -1
  334. package/build/commands/settings/index.js +0 -20
  335. package/build/commands/settings/index.js.map +0 -1
  336. package/build/commands/settings/read.d.ts +0 -19
  337. package/build/commands/settings/read.d.ts.map +0 -1
  338. package/build/commands/settings/read.js +0 -11
  339. package/build/commands/settings/read.js.map +0 -1
  340. package/build/commands/settings/update.d.ts +0 -19
  341. package/build/commands/settings/update.d.ts.map +0 -1
  342. package/build/commands/settings/update.js +0 -11
  343. package/build/commands/settings/update.js.map +0 -1
  344. package/build/commands/stats/endpoints.d.ts +0 -68
  345. package/build/commands/stats/endpoints.d.ts.map +0 -1
  346. package/build/commands/stats/endpoints.js +0 -14
  347. package/build/commands/stats/endpoints.js.map +0 -1
  348. package/build/commands/stats/index.d.ts +0 -4
  349. package/build/commands/stats/index.d.ts.map +0 -1
  350. package/build/commands/stats/index.js +0 -20
  351. package/build/commands/stats/index.js.map +0 -1
  352. package/build/commands/stats/query.d.ts +0 -32
  353. package/build/commands/stats/query.d.ts.map +0 -1
  354. package/build/commands/stats/query.js +0 -16
  355. package/build/commands/stats/query.js.map +0 -1
  356. package/build/commands/stats/read.d.ts +0 -31
  357. package/build/commands/stats/read.d.ts.map +0 -1
  358. package/build/commands/stats/read.js +0 -18
  359. package/build/commands/stats/read.js.map +0 -1
  360. package/build/commands/users/create.d.ts +0 -43
  361. package/build/commands/users/create.d.ts.map +0 -1
  362. package/build/commands/users/create.js +0 -20
  363. package/build/commands/users/create.js.map +0 -1
  364. package/build/commands/users/endpoints.d.ts +0 -404
  365. package/build/commands/users/endpoints.d.ts.map +0 -1
  366. package/build/commands/users/endpoints.js +0 -40
  367. package/build/commands/users/endpoints.js.map +0 -1
  368. package/build/commands/users/enums.d.ts +0 -7
  369. package/build/commands/users/enums.d.ts.map +0 -1
  370. package/build/commands/users/enums.js +0 -11
  371. package/build/commands/users/enums.js.map +0 -1
  372. package/build/commands/users/index.d.ts +0 -7
  373. package/build/commands/users/index.d.ts.map +0 -1
  374. package/build/commands/users/index.js +0 -23
  375. package/build/commands/users/index.js.map +0 -1
  376. package/build/commands/users/query.d.ts +0 -53
  377. package/build/commands/users/query.d.ts.map +0 -1
  378. package/build/commands/users/query.js +0 -22
  379. package/build/commands/users/query.js.map +0 -1
  380. package/build/commands/users/read.d.ts +0 -61
  381. package/build/commands/users/read.d.ts.map +0 -1
  382. package/build/commands/users/read.js +0 -29
  383. package/build/commands/users/read.js.map +0 -1
  384. package/build/commands/users/update.d.ts +0 -43
  385. package/build/commands/users/update.d.ts.map +0 -1
  386. package/build/commands/users/update.js +0 -20
  387. package/build/commands/users/update.js.map +0 -1
  388. package/build/types.d.ts +0 -9
  389. package/build/types.d.ts.map +0 -1
  390. package/build/types.js.map +0 -1
  391. /package/build/{types.js → shared/types.js} +0 -0
@@ -1,742 +0,0 @@
1
- import z from "zod";
2
- export declare const OrderEndpoints: {
3
- create: {
4
- method: "POST";
5
- path: string;
6
- request: z.ZodObject<{
7
- email: z.ZodString;
8
- paymentMethodId: z.ZodNumber;
9
- items: z.ZodArray<z.ZodObject<{
10
- variantId: z.ZodNumber;
11
- quantity: z.ZodDefault<z.ZodNumber>;
12
- gameUsername: z.ZodOptional<z.ZodString>;
13
- gameUsernameType: z.ZodOptional<z.ZodString>;
14
- }, "strip", z.ZodTypeAny, {
15
- variantId: number;
16
- quantity: number;
17
- gameUsername?: string | undefined;
18
- gameUsernameType?: string | undefined;
19
- }, {
20
- variantId: number;
21
- quantity?: number | undefined;
22
- gameUsername?: string | undefined;
23
- gameUsernameType?: string | undefined;
24
- }>, "many">;
25
- promocodeId: z.ZodOptional<z.ZodNumber>;
26
- userId: z.ZodOptional<z.ZodNumber>;
27
- telegramId: z.ZodOptional<z.ZodString>;
28
- utmSource: z.ZodOptional<z.ZodString>;
29
- telegramUsername: z.ZodOptional<z.ZodString>;
30
- designType: z.ZodOptional<z.ZodString>;
31
- type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["MAIN", "WEBAPP"]>>>;
32
- }, "strip", z.ZodTypeAny, {
33
- email: string;
34
- type: "MAIN" | "WEBAPP";
35
- paymentMethodId: number;
36
- items: {
37
- variantId: number;
38
- quantity: number;
39
- gameUsername?: string | undefined;
40
- gameUsernameType?: string | undefined;
41
- }[];
42
- promocodeId?: number | undefined;
43
- userId?: number | undefined;
44
- telegramId?: string | undefined;
45
- utmSource?: string | undefined;
46
- telegramUsername?: string | undefined;
47
- designType?: string | undefined;
48
- }, {
49
- email: string;
50
- paymentMethodId: number;
51
- items: {
52
- variantId: number;
53
- quantity?: number | undefined;
54
- gameUsername?: string | undefined;
55
- gameUsernameType?: string | undefined;
56
- }[];
57
- type?: "MAIN" | "WEBAPP" | undefined;
58
- promocodeId?: number | undefined;
59
- userId?: number | undefined;
60
- telegramId?: string | undefined;
61
- utmSource?: string | undefined;
62
- telegramUsername?: string | undefined;
63
- designType?: string | undefined;
64
- }>;
65
- response: z.ZodObject<{
66
- redirectUrl: z.ZodString;
67
- }, "strip", z.ZodTypeAny, {
68
- redirectUrl: string;
69
- }, {
70
- redirectUrl: string;
71
- }>;
72
- };
73
- list: {
74
- method: "GET";
75
- path: string;
76
- request: z.ZodObject<{
77
- take: z.ZodOptional<z.ZodNumber>;
78
- skip: z.ZodOptional<z.ZodNumber>;
79
- } & {
80
- email: z.ZodOptional<z.ZodString>;
81
- status: z.ZodOptional<z.ZodEnum<["PENDING", "AWAITING_PAYMENT", "PAID", "PROCESSING", "SUCCESS", "FAILED", "REFUNDED", "CANCELLED"]>>;
82
- } & {
83
- sortBy: z.ZodDefault<z.ZodEnum<["createdAt", "updatedAt", "total", "subtotal"]>>;
84
- sortDir: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
85
- } & {
86
- period: z.ZodOptional<z.ZodEnum<["day", "week", "month", "year", "custom"]>>;
87
- start: z.ZodOptional<z.ZodString>;
88
- end: z.ZodOptional<z.ZodString>;
89
- }, "strip", z.ZodTypeAny, {
90
- sortBy: "subtotal" | "total" | "createdAt" | "updatedAt";
91
- sortDir: "asc" | "desc";
92
- email?: string | undefined;
93
- status?: "PENDING" | "AWAITING_PAYMENT" | "PAID" | "PROCESSING" | "SUCCESS" | "FAILED" | "REFUNDED" | "CANCELLED" | undefined;
94
- take?: number | undefined;
95
- skip?: number | undefined;
96
- period?: "day" | "week" | "month" | "year" | "custom" | undefined;
97
- start?: string | undefined;
98
- end?: string | undefined;
99
- }, {
100
- email?: string | undefined;
101
- status?: "PENDING" | "AWAITING_PAYMENT" | "PAID" | "PROCESSING" | "SUCCESS" | "FAILED" | "REFUNDED" | "CANCELLED" | undefined;
102
- take?: number | undefined;
103
- skip?: number | undefined;
104
- period?: "day" | "week" | "month" | "year" | "custom" | undefined;
105
- start?: string | undefined;
106
- end?: string | undefined;
107
- sortBy?: "subtotal" | "total" | "createdAt" | "updatedAt" | undefined;
108
- sortDir?: "asc" | "desc" | undefined;
109
- }>;
110
- response: z.ZodArray<z.ZodObject<{
111
- id: z.ZodNumber;
112
- userId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
113
- promocodeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
114
- paymentMethodId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
115
- email: z.ZodString;
116
- status: z.ZodEnum<["PENDING", "AWAITING_PAYMENT", "PAID", "PROCESSING", "SUCCESS", "FAILED", "REFUNDED", "CANCELLED"]>;
117
- type: z.ZodEnum<["MAIN", "WEBAPP"]>;
118
- subtotal: z.ZodString;
119
- discount: z.ZodString;
120
- commission: z.ZodString;
121
- serviceCommission: z.ZodString;
122
- total: z.ZodString;
123
- ipAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
124
- utmSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
125
- telegramUsername: z.ZodOptional<z.ZodNullable<z.ZodString>>;
126
- designType: z.ZodNullable<z.ZodString>;
127
- paymentMethodName: z.ZodNullable<z.ZodString>;
128
- promocodeValue: z.ZodNullable<z.ZodString>;
129
- promocodeDiscount: z.ZodNullable<z.ZodString>;
130
- serviceCommissionPercent: z.ZodOptional<z.ZodNumber>;
131
- acquiringCommissionPercent: z.ZodOptional<z.ZodNumber>;
132
- items: z.ZodOptional<z.ZodArray<z.ZodObject<{
133
- id: z.ZodNumber;
134
- productId: z.ZodNumber;
135
- variantId: z.ZodNumber;
136
- quantity: z.ZodNumber;
137
- price: z.ZodString;
138
- gameUsername: z.ZodNullable<z.ZodString>;
139
- gameUsernameType: z.ZodNullable<z.ZodString>;
140
- deliveredKey: z.ZodNullable<z.ZodString>;
141
- deliveredAt: z.ZodNullable<z.ZodDate>;
142
- status: z.ZodEnum<["PENDING", "PROCESSING", "DELIVERED", "FAILED", "REFUNDED"]>;
143
- productTitle: z.ZodOptional<z.ZodString>;
144
- variantName: z.ZodOptional<z.ZodString>;
145
- }, "strip", z.ZodTypeAny, {
146
- status: "PENDING" | "PROCESSING" | "FAILED" | "REFUNDED" | "DELIVERED";
147
- id: number;
148
- variantId: number;
149
- quantity: number;
150
- gameUsername: string | null;
151
- gameUsernameType: string | null;
152
- productId: number;
153
- price: string;
154
- deliveredKey: string | null;
155
- deliveredAt: Date | null;
156
- productTitle?: string | undefined;
157
- variantName?: string | undefined;
158
- }, {
159
- status: "PENDING" | "PROCESSING" | "FAILED" | "REFUNDED" | "DELIVERED";
160
- id: number;
161
- variantId: number;
162
- quantity: number;
163
- gameUsername: string | null;
164
- gameUsernameType: string | null;
165
- productId: number;
166
- price: string;
167
- deliveredKey: string | null;
168
- deliveredAt: Date | null;
169
- productTitle?: string | undefined;
170
- variantName?: string | undefined;
171
- }>, "many">>;
172
- createdAt: z.ZodDefault<z.ZodDate>;
173
- updatedAt: z.ZodDefault<z.ZodDate>;
174
- }, "strip", z.ZodTypeAny, {
175
- email: string;
176
- type: "MAIN" | "WEBAPP";
177
- status: "PENDING" | "AWAITING_PAYMENT" | "PAID" | "PROCESSING" | "SUCCESS" | "FAILED" | "REFUNDED" | "CANCELLED";
178
- id: number;
179
- designType: string | null;
180
- subtotal: string;
181
- discount: string;
182
- commission: string;
183
- serviceCommission: string;
184
- total: string;
185
- paymentMethodName: string | null;
186
- promocodeValue: string | null;
187
- promocodeDiscount: string | null;
188
- createdAt: Date;
189
- updatedAt: Date;
190
- paymentMethodId?: number | null | undefined;
191
- items?: {
192
- status: "PENDING" | "PROCESSING" | "FAILED" | "REFUNDED" | "DELIVERED";
193
- id: number;
194
- variantId: number;
195
- quantity: number;
196
- gameUsername: string | null;
197
- gameUsernameType: string | null;
198
- productId: number;
199
- price: string;
200
- deliveredKey: string | null;
201
- deliveredAt: Date | null;
202
- productTitle?: string | undefined;
203
- variantName?: string | undefined;
204
- }[] | undefined;
205
- promocodeId?: number | null | undefined;
206
- userId?: number | null | undefined;
207
- utmSource?: string | null | undefined;
208
- telegramUsername?: string | null | undefined;
209
- ipAddress?: string | null | undefined;
210
- serviceCommissionPercent?: number | undefined;
211
- acquiringCommissionPercent?: number | undefined;
212
- }, {
213
- email: string;
214
- type: "MAIN" | "WEBAPP";
215
- status: "PENDING" | "AWAITING_PAYMENT" | "PAID" | "PROCESSING" | "SUCCESS" | "FAILED" | "REFUNDED" | "CANCELLED";
216
- id: number;
217
- designType: string | null;
218
- subtotal: string;
219
- discount: string;
220
- commission: string;
221
- serviceCommission: string;
222
- total: string;
223
- paymentMethodName: string | null;
224
- promocodeValue: string | null;
225
- promocodeDiscount: string | null;
226
- paymentMethodId?: number | null | undefined;
227
- items?: {
228
- status: "PENDING" | "PROCESSING" | "FAILED" | "REFUNDED" | "DELIVERED";
229
- id: number;
230
- variantId: number;
231
- quantity: number;
232
- gameUsername: string | null;
233
- gameUsernameType: string | null;
234
- productId: number;
235
- price: string;
236
- deliveredKey: string | null;
237
- deliveredAt: Date | null;
238
- productTitle?: string | undefined;
239
- variantName?: string | undefined;
240
- }[] | undefined;
241
- promocodeId?: number | null | undefined;
242
- userId?: number | null | undefined;
243
- utmSource?: string | null | undefined;
244
- telegramUsername?: string | null | undefined;
245
- ipAddress?: string | null | undefined;
246
- serviceCommissionPercent?: number | undefined;
247
- acquiringCommissionPercent?: number | undefined;
248
- createdAt?: Date | undefined;
249
- updatedAt?: Date | undefined;
250
- }>, "many">;
251
- };
252
- getById: {
253
- method: "GET";
254
- path: string;
255
- request: z.ZodObject<{
256
- id: z.ZodNumber;
257
- }, "strip", z.ZodTypeAny, {
258
- id: number;
259
- }, {
260
- id: number;
261
- }>;
262
- response: z.ZodObject<{
263
- id: z.ZodNumber;
264
- userId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
265
- promocodeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
266
- paymentMethodId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
267
- email: z.ZodString;
268
- status: z.ZodEnum<["PENDING", "AWAITING_PAYMENT", "PAID", "PROCESSING", "SUCCESS", "FAILED", "REFUNDED", "CANCELLED"]>;
269
- type: z.ZodEnum<["MAIN", "WEBAPP"]>;
270
- subtotal: z.ZodString;
271
- discount: z.ZodString;
272
- commission: z.ZodString;
273
- serviceCommission: z.ZodString;
274
- total: z.ZodString;
275
- ipAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
276
- utmSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
277
- telegramUsername: z.ZodOptional<z.ZodNullable<z.ZodString>>;
278
- designType: z.ZodNullable<z.ZodString>;
279
- paymentMethodName: z.ZodNullable<z.ZodString>;
280
- promocodeValue: z.ZodNullable<z.ZodString>;
281
- promocodeDiscount: z.ZodNullable<z.ZodString>;
282
- serviceCommissionPercent: z.ZodOptional<z.ZodNumber>;
283
- acquiringCommissionPercent: z.ZodOptional<z.ZodNumber>;
284
- items: z.ZodOptional<z.ZodArray<z.ZodObject<{
285
- id: z.ZodNumber;
286
- productId: z.ZodNumber;
287
- variantId: z.ZodNumber;
288
- quantity: z.ZodNumber;
289
- price: z.ZodString;
290
- gameUsername: z.ZodNullable<z.ZodString>;
291
- gameUsernameType: z.ZodNullable<z.ZodString>;
292
- deliveredKey: z.ZodNullable<z.ZodString>;
293
- deliveredAt: z.ZodNullable<z.ZodDate>;
294
- status: z.ZodEnum<["PENDING", "PROCESSING", "DELIVERED", "FAILED", "REFUNDED"]>;
295
- productTitle: z.ZodOptional<z.ZodString>;
296
- variantName: z.ZodOptional<z.ZodString>;
297
- }, "strip", z.ZodTypeAny, {
298
- status: "PENDING" | "PROCESSING" | "FAILED" | "REFUNDED" | "DELIVERED";
299
- id: number;
300
- variantId: number;
301
- quantity: number;
302
- gameUsername: string | null;
303
- gameUsernameType: string | null;
304
- productId: number;
305
- price: string;
306
- deliveredKey: string | null;
307
- deliveredAt: Date | null;
308
- productTitle?: string | undefined;
309
- variantName?: string | undefined;
310
- }, {
311
- status: "PENDING" | "PROCESSING" | "FAILED" | "REFUNDED" | "DELIVERED";
312
- id: number;
313
- variantId: number;
314
- quantity: number;
315
- gameUsername: string | null;
316
- gameUsernameType: string | null;
317
- productId: number;
318
- price: string;
319
- deliveredKey: string | null;
320
- deliveredAt: Date | null;
321
- productTitle?: string | undefined;
322
- variantName?: string | undefined;
323
- }>, "many">>;
324
- createdAt: z.ZodDefault<z.ZodDate>;
325
- updatedAt: z.ZodDefault<z.ZodDate>;
326
- }, "strip", z.ZodTypeAny, {
327
- email: string;
328
- type: "MAIN" | "WEBAPP";
329
- status: "PENDING" | "AWAITING_PAYMENT" | "PAID" | "PROCESSING" | "SUCCESS" | "FAILED" | "REFUNDED" | "CANCELLED";
330
- id: number;
331
- designType: string | null;
332
- subtotal: string;
333
- discount: string;
334
- commission: string;
335
- serviceCommission: string;
336
- total: string;
337
- paymentMethodName: string | null;
338
- promocodeValue: string | null;
339
- promocodeDiscount: string | null;
340
- createdAt: Date;
341
- updatedAt: Date;
342
- paymentMethodId?: number | null | undefined;
343
- items?: {
344
- status: "PENDING" | "PROCESSING" | "FAILED" | "REFUNDED" | "DELIVERED";
345
- id: number;
346
- variantId: number;
347
- quantity: number;
348
- gameUsername: string | null;
349
- gameUsernameType: string | null;
350
- productId: number;
351
- price: string;
352
- deliveredKey: string | null;
353
- deliveredAt: Date | null;
354
- productTitle?: string | undefined;
355
- variantName?: string | undefined;
356
- }[] | undefined;
357
- promocodeId?: number | null | undefined;
358
- userId?: number | null | undefined;
359
- utmSource?: string | null | undefined;
360
- telegramUsername?: string | null | undefined;
361
- ipAddress?: string | null | undefined;
362
- serviceCommissionPercent?: number | undefined;
363
- acquiringCommissionPercent?: number | undefined;
364
- }, {
365
- email: string;
366
- type: "MAIN" | "WEBAPP";
367
- status: "PENDING" | "AWAITING_PAYMENT" | "PAID" | "PROCESSING" | "SUCCESS" | "FAILED" | "REFUNDED" | "CANCELLED";
368
- id: number;
369
- designType: string | null;
370
- subtotal: string;
371
- discount: string;
372
- commission: string;
373
- serviceCommission: string;
374
- total: string;
375
- paymentMethodName: string | null;
376
- promocodeValue: string | null;
377
- promocodeDiscount: string | null;
378
- paymentMethodId?: number | null | undefined;
379
- items?: {
380
- status: "PENDING" | "PROCESSING" | "FAILED" | "REFUNDED" | "DELIVERED";
381
- id: number;
382
- variantId: number;
383
- quantity: number;
384
- gameUsername: string | null;
385
- gameUsernameType: string | null;
386
- productId: number;
387
- price: string;
388
- deliveredKey: string | null;
389
- deliveredAt: Date | null;
390
- productTitle?: string | undefined;
391
- variantName?: string | undefined;
392
- }[] | undefined;
393
- promocodeId?: number | null | undefined;
394
- userId?: number | null | undefined;
395
- utmSource?: string | null | undefined;
396
- telegramUsername?: string | null | undefined;
397
- ipAddress?: string | null | undefined;
398
- serviceCommissionPercent?: number | undefined;
399
- acquiringCommissionPercent?: number | undefined;
400
- createdAt?: Date | undefined;
401
- updatedAt?: Date | undefined;
402
- }>;
403
- };
404
- getUserOrders: {
405
- method: "GET";
406
- path: string;
407
- request: z.ZodObject<{
408
- take: z.ZodOptional<z.ZodNumber>;
409
- skip: z.ZodOptional<z.ZodNumber>;
410
- } & {
411
- email: z.ZodOptional<z.ZodString>;
412
- status: z.ZodOptional<z.ZodEnum<["PENDING", "AWAITING_PAYMENT", "PAID", "PROCESSING", "SUCCESS", "FAILED", "REFUNDED", "CANCELLED"]>>;
413
- } & {
414
- sortBy: z.ZodDefault<z.ZodEnum<["createdAt", "updatedAt", "total", "subtotal"]>>;
415
- sortDir: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
416
- } & {
417
- period: z.ZodOptional<z.ZodEnum<["day", "week", "month", "year", "custom"]>>;
418
- start: z.ZodOptional<z.ZodString>;
419
- end: z.ZodOptional<z.ZodString>;
420
- }, "strip", z.ZodTypeAny, {
421
- sortBy: "subtotal" | "total" | "createdAt" | "updatedAt";
422
- sortDir: "asc" | "desc";
423
- email?: string | undefined;
424
- status?: "PENDING" | "AWAITING_PAYMENT" | "PAID" | "PROCESSING" | "SUCCESS" | "FAILED" | "REFUNDED" | "CANCELLED" | undefined;
425
- take?: number | undefined;
426
- skip?: number | undefined;
427
- period?: "day" | "week" | "month" | "year" | "custom" | undefined;
428
- start?: string | undefined;
429
- end?: string | undefined;
430
- }, {
431
- email?: string | undefined;
432
- status?: "PENDING" | "AWAITING_PAYMENT" | "PAID" | "PROCESSING" | "SUCCESS" | "FAILED" | "REFUNDED" | "CANCELLED" | undefined;
433
- take?: number | undefined;
434
- skip?: number | undefined;
435
- period?: "day" | "week" | "month" | "year" | "custom" | undefined;
436
- start?: string | undefined;
437
- end?: string | undefined;
438
- sortBy?: "subtotal" | "total" | "createdAt" | "updatedAt" | undefined;
439
- sortDir?: "asc" | "desc" | undefined;
440
- }>;
441
- response: z.ZodArray<z.ZodObject<{
442
- id: z.ZodNumber;
443
- userId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
444
- promocodeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
445
- paymentMethodId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
446
- email: z.ZodString;
447
- status: z.ZodEnum<["PENDING", "AWAITING_PAYMENT", "PAID", "PROCESSING", "SUCCESS", "FAILED", "REFUNDED", "CANCELLED"]>;
448
- type: z.ZodEnum<["MAIN", "WEBAPP"]>;
449
- subtotal: z.ZodString;
450
- discount: z.ZodString;
451
- commission: z.ZodString;
452
- serviceCommission: z.ZodString;
453
- total: z.ZodString;
454
- ipAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
455
- utmSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
456
- telegramUsername: z.ZodOptional<z.ZodNullable<z.ZodString>>;
457
- designType: z.ZodNullable<z.ZodString>;
458
- paymentMethodName: z.ZodNullable<z.ZodString>;
459
- promocodeValue: z.ZodNullable<z.ZodString>;
460
- promocodeDiscount: z.ZodNullable<z.ZodString>;
461
- serviceCommissionPercent: z.ZodOptional<z.ZodNumber>;
462
- acquiringCommissionPercent: z.ZodOptional<z.ZodNumber>;
463
- items: z.ZodOptional<z.ZodArray<z.ZodObject<{
464
- id: z.ZodNumber;
465
- productId: z.ZodNumber;
466
- variantId: z.ZodNumber;
467
- quantity: z.ZodNumber;
468
- price: z.ZodString;
469
- gameUsername: z.ZodNullable<z.ZodString>;
470
- gameUsernameType: z.ZodNullable<z.ZodString>;
471
- deliveredKey: z.ZodNullable<z.ZodString>;
472
- deliveredAt: z.ZodNullable<z.ZodDate>;
473
- status: z.ZodEnum<["PENDING", "PROCESSING", "DELIVERED", "FAILED", "REFUNDED"]>;
474
- productTitle: z.ZodOptional<z.ZodString>;
475
- variantName: z.ZodOptional<z.ZodString>;
476
- }, "strip", z.ZodTypeAny, {
477
- status: "PENDING" | "PROCESSING" | "FAILED" | "REFUNDED" | "DELIVERED";
478
- id: number;
479
- variantId: number;
480
- quantity: number;
481
- gameUsername: string | null;
482
- gameUsernameType: string | null;
483
- productId: number;
484
- price: string;
485
- deliveredKey: string | null;
486
- deliveredAt: Date | null;
487
- productTitle?: string | undefined;
488
- variantName?: string | undefined;
489
- }, {
490
- status: "PENDING" | "PROCESSING" | "FAILED" | "REFUNDED" | "DELIVERED";
491
- id: number;
492
- variantId: number;
493
- quantity: number;
494
- gameUsername: string | null;
495
- gameUsernameType: string | null;
496
- productId: number;
497
- price: string;
498
- deliveredKey: string | null;
499
- deliveredAt: Date | null;
500
- productTitle?: string | undefined;
501
- variantName?: string | undefined;
502
- }>, "many">>;
503
- createdAt: z.ZodDefault<z.ZodDate>;
504
- updatedAt: z.ZodDefault<z.ZodDate>;
505
- }, "strip", z.ZodTypeAny, {
506
- email: string;
507
- type: "MAIN" | "WEBAPP";
508
- status: "PENDING" | "AWAITING_PAYMENT" | "PAID" | "PROCESSING" | "SUCCESS" | "FAILED" | "REFUNDED" | "CANCELLED";
509
- id: number;
510
- designType: string | null;
511
- subtotal: string;
512
- discount: string;
513
- commission: string;
514
- serviceCommission: string;
515
- total: string;
516
- paymentMethodName: string | null;
517
- promocodeValue: string | null;
518
- promocodeDiscount: string | null;
519
- createdAt: Date;
520
- updatedAt: Date;
521
- paymentMethodId?: number | null | undefined;
522
- items?: {
523
- status: "PENDING" | "PROCESSING" | "FAILED" | "REFUNDED" | "DELIVERED";
524
- id: number;
525
- variantId: number;
526
- quantity: number;
527
- gameUsername: string | null;
528
- gameUsernameType: string | null;
529
- productId: number;
530
- price: string;
531
- deliveredKey: string | null;
532
- deliveredAt: Date | null;
533
- productTitle?: string | undefined;
534
- variantName?: string | undefined;
535
- }[] | undefined;
536
- promocodeId?: number | null | undefined;
537
- userId?: number | null | undefined;
538
- utmSource?: string | null | undefined;
539
- telegramUsername?: string | null | undefined;
540
- ipAddress?: string | null | undefined;
541
- serviceCommissionPercent?: number | undefined;
542
- acquiringCommissionPercent?: number | undefined;
543
- }, {
544
- email: string;
545
- type: "MAIN" | "WEBAPP";
546
- status: "PENDING" | "AWAITING_PAYMENT" | "PAID" | "PROCESSING" | "SUCCESS" | "FAILED" | "REFUNDED" | "CANCELLED";
547
- id: number;
548
- designType: string | null;
549
- subtotal: string;
550
- discount: string;
551
- commission: string;
552
- serviceCommission: string;
553
- total: string;
554
- paymentMethodName: string | null;
555
- promocodeValue: string | null;
556
- promocodeDiscount: string | null;
557
- paymentMethodId?: number | null | undefined;
558
- items?: {
559
- status: "PENDING" | "PROCESSING" | "FAILED" | "REFUNDED" | "DELIVERED";
560
- id: number;
561
- variantId: number;
562
- quantity: number;
563
- gameUsername: string | null;
564
- gameUsernameType: string | null;
565
- productId: number;
566
- price: string;
567
- deliveredKey: string | null;
568
- deliveredAt: Date | null;
569
- productTitle?: string | undefined;
570
- variantName?: string | undefined;
571
- }[] | undefined;
572
- promocodeId?: number | null | undefined;
573
- userId?: number | null | undefined;
574
- utmSource?: string | null | undefined;
575
- telegramUsername?: string | null | undefined;
576
- ipAddress?: string | null | undefined;
577
- serviceCommissionPercent?: number | undefined;
578
- acquiringCommissionPercent?: number | undefined;
579
- createdAt?: Date | undefined;
580
- updatedAt?: Date | undefined;
581
- }>, "many">;
582
- };
583
- getUserOrderById: {
584
- method: "GET";
585
- path: string;
586
- request: z.ZodObject<{
587
- userId: z.ZodNumber;
588
- orderId: z.ZodNumber;
589
- }, "strip", z.ZodTypeAny, {
590
- userId: number;
591
- orderId: number;
592
- }, {
593
- userId: number;
594
- orderId: number;
595
- }>;
596
- response: z.ZodObject<{
597
- id: z.ZodNumber;
598
- userId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
599
- promocodeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
600
- paymentMethodId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
601
- email: z.ZodString;
602
- status: z.ZodEnum<["PENDING", "AWAITING_PAYMENT", "PAID", "PROCESSING", "SUCCESS", "FAILED", "REFUNDED", "CANCELLED"]>;
603
- type: z.ZodEnum<["MAIN", "WEBAPP"]>;
604
- subtotal: z.ZodString;
605
- discount: z.ZodString;
606
- commission: z.ZodString;
607
- serviceCommission: z.ZodString;
608
- total: z.ZodString;
609
- ipAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
610
- utmSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
611
- telegramUsername: z.ZodOptional<z.ZodNullable<z.ZodString>>;
612
- designType: z.ZodNullable<z.ZodString>;
613
- paymentMethodName: z.ZodNullable<z.ZodString>;
614
- promocodeValue: z.ZodNullable<z.ZodString>;
615
- promocodeDiscount: z.ZodNullable<z.ZodString>;
616
- serviceCommissionPercent: z.ZodOptional<z.ZodNumber>;
617
- acquiringCommissionPercent: z.ZodOptional<z.ZodNumber>;
618
- items: z.ZodOptional<z.ZodArray<z.ZodObject<{
619
- id: z.ZodNumber;
620
- productId: z.ZodNumber;
621
- variantId: z.ZodNumber;
622
- quantity: z.ZodNumber;
623
- price: z.ZodString;
624
- gameUsername: z.ZodNullable<z.ZodString>;
625
- gameUsernameType: z.ZodNullable<z.ZodString>;
626
- deliveredKey: z.ZodNullable<z.ZodString>;
627
- deliveredAt: z.ZodNullable<z.ZodDate>;
628
- status: z.ZodEnum<["PENDING", "PROCESSING", "DELIVERED", "FAILED", "REFUNDED"]>;
629
- productTitle: z.ZodOptional<z.ZodString>;
630
- variantName: z.ZodOptional<z.ZodString>;
631
- }, "strip", z.ZodTypeAny, {
632
- status: "PENDING" | "PROCESSING" | "FAILED" | "REFUNDED" | "DELIVERED";
633
- id: number;
634
- variantId: number;
635
- quantity: number;
636
- gameUsername: string | null;
637
- gameUsernameType: string | null;
638
- productId: number;
639
- price: string;
640
- deliveredKey: string | null;
641
- deliveredAt: Date | null;
642
- productTitle?: string | undefined;
643
- variantName?: string | undefined;
644
- }, {
645
- status: "PENDING" | "PROCESSING" | "FAILED" | "REFUNDED" | "DELIVERED";
646
- id: number;
647
- variantId: number;
648
- quantity: number;
649
- gameUsername: string | null;
650
- gameUsernameType: string | null;
651
- productId: number;
652
- price: string;
653
- deliveredKey: string | null;
654
- deliveredAt: Date | null;
655
- productTitle?: string | undefined;
656
- variantName?: string | undefined;
657
- }>, "many">>;
658
- createdAt: z.ZodDefault<z.ZodDate>;
659
- updatedAt: z.ZodDefault<z.ZodDate>;
660
- }, "strip", z.ZodTypeAny, {
661
- email: string;
662
- type: "MAIN" | "WEBAPP";
663
- status: "PENDING" | "AWAITING_PAYMENT" | "PAID" | "PROCESSING" | "SUCCESS" | "FAILED" | "REFUNDED" | "CANCELLED";
664
- id: number;
665
- designType: string | null;
666
- subtotal: string;
667
- discount: string;
668
- commission: string;
669
- serviceCommission: string;
670
- total: string;
671
- paymentMethodName: string | null;
672
- promocodeValue: string | null;
673
- promocodeDiscount: string | null;
674
- createdAt: Date;
675
- updatedAt: Date;
676
- paymentMethodId?: number | null | undefined;
677
- items?: {
678
- status: "PENDING" | "PROCESSING" | "FAILED" | "REFUNDED" | "DELIVERED";
679
- id: number;
680
- variantId: number;
681
- quantity: number;
682
- gameUsername: string | null;
683
- gameUsernameType: string | null;
684
- productId: number;
685
- price: string;
686
- deliveredKey: string | null;
687
- deliveredAt: Date | null;
688
- productTitle?: string | undefined;
689
- variantName?: string | undefined;
690
- }[] | undefined;
691
- promocodeId?: number | null | undefined;
692
- userId?: number | null | undefined;
693
- utmSource?: string | null | undefined;
694
- telegramUsername?: string | null | undefined;
695
- ipAddress?: string | null | undefined;
696
- serviceCommissionPercent?: number | undefined;
697
- acquiringCommissionPercent?: number | undefined;
698
- }, {
699
- email: string;
700
- type: "MAIN" | "WEBAPP";
701
- status: "PENDING" | "AWAITING_PAYMENT" | "PAID" | "PROCESSING" | "SUCCESS" | "FAILED" | "REFUNDED" | "CANCELLED";
702
- id: number;
703
- designType: string | null;
704
- subtotal: string;
705
- discount: string;
706
- commission: string;
707
- serviceCommission: string;
708
- total: string;
709
- paymentMethodName: string | null;
710
- promocodeValue: string | null;
711
- promocodeDiscount: string | null;
712
- paymentMethodId?: number | null | undefined;
713
- items?: {
714
- status: "PENDING" | "PROCESSING" | "FAILED" | "REFUNDED" | "DELIVERED";
715
- id: number;
716
- variantId: number;
717
- quantity: number;
718
- gameUsername: string | null;
719
- gameUsernameType: string | null;
720
- productId: number;
721
- price: string;
722
- deliveredKey: string | null;
723
- deliveredAt: Date | null;
724
- productTitle?: string | undefined;
725
- variantName?: string | undefined;
726
- }[] | undefined;
727
- promocodeId?: number | null | undefined;
728
- userId?: number | null | undefined;
729
- utmSource?: string | null | undefined;
730
- telegramUsername?: string | null | undefined;
731
- ipAddress?: string | null | undefined;
732
- serviceCommissionPercent?: number | undefined;
733
- acquiringCommissionPercent?: number | undefined;
734
- createdAt?: Date | undefined;
735
- updatedAt?: Date | undefined;
736
- }>;
737
- };
738
- };
739
- export type OrderEndpointKey = keyof typeof OrderEndpoints;
740
- export type GetOrderRequest<K extends OrderEndpointKey> = z.infer<typeof OrderEndpoints[K]["request"]>;
741
- export type GetOrderResponse<K extends OrderEndpointKey> = z.infer<typeof OrderEndpoints[K]["response"]>;
742
- //# sourceMappingURL=endpoints.d.ts.map